/*	rfs.h (UKC) 1.2 24/5/85	*/

/* defines for rfsufile[].where */
#define CLOSED	-1
#define LOCAL	-2	/* this file is on the local host (this one) */

#define NULLP	( (char *) 0)	/* Handy null pointer */

typedef struct {
	int where;
	int fd;
} rfsufile_t;

struct rfsfile {
	int tsfd;
	char *name;
};

struct rfsfile rfsparse();

#define	WHERE(ufd)	(rfsufile[ufd].where)
#define REALFD(ufd)	(rfsufile[ufd].fd)
#define ISLOCAL(ufd)	(WHERE(ufd) < 0)	/* includes CLOSED */
#define ISREMOTE(ufd)	(WHERE(ufd) >= 0)

char * rfsisrhost();
