/********************************************************************
 ** NETWORK FILE SYSTEM SERVICE
 **
 ** (c) Spak, Darrell Tam, c9107253@ee.newcastle.edu.au (1994)
 ** phone (Australia) 049-829-710
 **                    49-829-710
 ** (c) SST Jan-Feb-Mar 1994
 **
 ** GLOBAL VARIABLES
 **
 ** TABS to 4
 ********************************************************************/

#include "/snd/everything.h"
#include <st/st_proto.h>
#include "nfsinternal.h"


struct	IntuitionBase *IntuitionBase = NULL;
struct	GfxBase *GfxBase = NULL;

struct	MsgPort
	*ourport = NULL,		/* port "ParServer" sends new packets to */
	*parport = NULL,		/* "ParServer's" very own port */
	*dosport = NULL;		/* port for reply packets from dos things */

long out;

char registered = 0, pad[3];
char *ourname = "FileServer";

struct InternalFH *ifh_first = NULL;	/* keep a list of file handles */
struct InternalLock *il_first = NULL;	/* and a list of locks */

long rwmaxbuf = 4000;					/* max read/write buffer size - actually
										 * twice this is allocated if the read/write
										 * exceeds this */

long majic_code;		/* always incremented, init randomly, used as a "majic code" */

short stillgoing = 1;


/** RETURN MEM WHICH CAN BE USED OVER AND OVER EVEN IN LOW-MEM */
struct NFSStdReturn nfs_res_fail = {
	0, ERROR_ACTION_NOT_KNOWN
};
struct NFSStdReturn nfs_res_nomem = {
	0, ERROR_NO_FREE_STORE
};
struct NFSStdReturn nfs_res_ok = {
	-1, -1
};
struct NFSStdReturn nfs_res_notfound = {
	0, ERROR_OBJECT_NOT_FOUND
};
