Plan 9 from Bell Labs’s /usr/web/sources/plan9/sys/src/cmd/9nfs/nfs.h

Copyright © 2021 Plan 9 Foundation.
Distributed under the MIT License.
Download the Plan 9 distribution.


/*
 *	Cf. /lib/rfc/rfc1094
 */

enum NFS_stat
{
	NFS_OK		= 0,
	NFSERR_PERM	= 1,
	NFSERR_NOENT	= 2,
	NFSERR_IO	= 5,
	NFSERR_NXIO	= 6,
	NFSERR_ACCES	= 13,
	NFSERR_EXIST	= 17,
	NFSERR_NODEV	= 19,
	NFSERR_NOTDIR	= 20,
	NFSERR_ISDIR	= 21,
	NFSERR_FBIG	= 27,
	NFSERR_NOSPC	= 28,
	NFSERR_ROFS	= 30,
	NFSERR_NAMETOOLONG	= 63,
	NFSERR_NOTEMPTY	= 66,
	NFSERR_DQUOT	= 69,
	NFSERR_STALE	= 70,
	NFSERR_WFLUSH	= 99
};

enum NFS_ftype
{
	NFNON	= 0,
	NFREG	= 1,
	NFDIR	= 2,
	NFBLK	= 3,
	NFCHR	= 4,
	NFLNK	= 5
};

enum NFS_mode
{
	S_IFMT	= 0170000,	/* mask */
	S_IFDIR	= 0040000,	/* directory */
	S_IFREG	= 0100000	/* regular */
};

#define	NOATTR	0xffffffff

Bell Labs OSI certified Powered by Plan 9

(Return to Plan 9 Home Page)

Copyright © 2021 Plan 9 Foundation. All Rights Reserved.
Comments to [email protected].