nfs.h 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. /*
  2. * This file is part of the UCB release of Plan 9. It is subject to the license
  3. * terms in the LICENSE file found in the top-level directory of this
  4. * distribution and at http://akaros.cs.berkeley.edu/files/Plan9License. No
  5. * part of the UCB release of Plan 9, including this file, may be copied,
  6. * modified, propagated, or distributed except according to the terms contained
  7. * in the LICENSE file.
  8. */
  9. /*
  10. * Cf. /lib/rfc/rfc1094
  11. */
  12. enum NFS_stat
  13. {
  14. NFS_OK = 0,
  15. NFSERR_PERM = 1,
  16. NFSERR_NOENT = 2,
  17. NFSERR_IO = 5,
  18. NFSERR_NXIO = 6,
  19. NFSERR_ACCES = 13,
  20. NFSERR_EXIST = 17,
  21. NFSERR_NODEV = 19,
  22. NFSERR_NOTDIR = 20,
  23. NFSERR_ISDIR = 21,
  24. NFSERR_FBIG = 27,
  25. NFSERR_NOSPC = 28,
  26. NFSERR_ROFS = 30,
  27. NFSERR_NAMETOOLONG = 63,
  28. NFSERR_NOTEMPTY = 66,
  29. NFSERR_DQUOT = 69,
  30. NFSERR_STALE = 70,
  31. NFSERR_WFLUSH = 99
  32. };
  33. enum NFS_ftype
  34. {
  35. NFNON = 0,
  36. NFREG = 1,
  37. NFDIR = 2,
  38. NFBLK = 3,
  39. NFCHR = 4,
  40. NFLNK = 5
  41. };
  42. enum NFS_mode
  43. {
  44. S_IFMT = 0170000, /* mask */
  45. S_IFDIR = 0040000, /* directory */
  46. S_IFREG = 0100000 /* regular */
  47. };
  48. #define NOATTR 0xffffffff