• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1  /****************************************************************************
2   ****************************************************************************
3   ***
4   ***   This header was automatically generated from a Linux kernel header
5   ***   of the same name, to make information necessary for userspace to
6   ***   call into the kernel available to libc.  It contains only constants,
7   ***   structures, and macros generated from the original header, and thus,
8   ***   contains no copyrightable information.
9   ***
10   ****************************************************************************
11   ****************************************************************************/
12  #ifndef _LINUX_NFS_H
13  #define _LINUX_NFS_H
14  
15  #define NFS_PROGRAM 100003
16  #define NFS_PORT 2049
17  #define NFS_MAXDATA 8192
18  #define NFS_MAXPATHLEN 1024
19  #define NFS_MAXNAMLEN 255
20  #define NFS_MAXGROUPS 16
21  #define NFS_FHSIZE 32
22  #define NFS_COOKIESIZE 4
23  #define NFS_FIFO_DEV (-1)
24  #define NFSMODE_FMT 0170000
25  #define NFSMODE_DIR 0040000
26  #define NFSMODE_CHR 0020000
27  #define NFSMODE_BLK 0060000
28  #define NFSMODE_REG 0100000
29  #define NFSMODE_LNK 0120000
30  #define NFSMODE_SOCK 0140000
31  #define NFSMODE_FIFO 0010000
32  
33  #define NFS_MNT_PROGRAM 100005
34  #define NFS_MNT_PORT 627
35  
36   enum nfs_stat {
37   NFS_OK = 0,
38   NFSERR_PERM = 1,
39   NFSERR_NOENT = 2,
40   NFSERR_IO = 5,
41   NFSERR_NXIO = 6,
42   NFSERR_EAGAIN = 11,
43   NFSERR_ACCES = 13,
44   NFSERR_EXIST = 17,
45   NFSERR_XDEV = 18,
46   NFSERR_NODEV = 19,
47   NFSERR_NOTDIR = 20,
48   NFSERR_ISDIR = 21,
49   NFSERR_INVAL = 22,
50   NFSERR_FBIG = 27,
51   NFSERR_NOSPC = 28,
52   NFSERR_ROFS = 30,
53   NFSERR_MLINK = 31,
54   NFSERR_OPNOTSUPP = 45,
55   NFSERR_NAMETOOLONG = 63,
56   NFSERR_NOTEMPTY = 66,
57   NFSERR_DQUOT = 69,
58   NFSERR_STALE = 70,
59   NFSERR_REMOTE = 71,
60   NFSERR_WFLUSH = 99,
61   NFSERR_BADHANDLE = 10001,
62   NFSERR_NOT_SYNC = 10002,
63   NFSERR_BAD_COOKIE = 10003,
64   NFSERR_NOTSUPP = 10004,
65   NFSERR_TOOSMALL = 10005,
66   NFSERR_SERVERFAULT = 10006,
67   NFSERR_BADTYPE = 10007,
68   NFSERR_JUKEBOX = 10008,
69   NFSERR_SAME = 10009,
70   NFSERR_DENIED = 10010,
71   NFSERR_EXPIRED = 10011,
72   NFSERR_LOCKED = 10012,
73   NFSERR_GRACE = 10013,
74   NFSERR_FHEXPIRED = 10014,
75   NFSERR_SHARE_DENIED = 10015,
76   NFSERR_WRONGSEC = 10016,
77   NFSERR_CLID_INUSE = 10017,
78   NFSERR_RESOURCE = 10018,
79   NFSERR_MOVED = 10019,
80   NFSERR_NOFILEHANDLE = 10020,
81   NFSERR_MINOR_VERS_MISMATCH = 10021,
82   NFSERR_STALE_CLIENTID = 10022,
83   NFSERR_STALE_STATEID = 10023,
84   NFSERR_OLD_STATEID = 10024,
85   NFSERR_BAD_STATEID = 10025,
86   NFSERR_BAD_SEQID = 10026,
87   NFSERR_NOT_SAME = 10027,
88   NFSERR_LOCK_RANGE = 10028,
89   NFSERR_SYMLINK = 10029,
90   NFSERR_RESTOREFH = 10030,
91   NFSERR_LEASE_MOVED = 10031,
92   NFSERR_ATTRNOTSUPP = 10032,
93   NFSERR_NO_GRACE = 10033,
94   NFSERR_RECLAIM_BAD = 10034,
95   NFSERR_RECLAIM_CONFLICT = 10035,
96   NFSERR_BAD_XDR = 10036,
97   NFSERR_LOCKS_HELD = 10037,
98   NFSERR_OPENMODE = 10038,
99   NFSERR_BADOWNER = 10039,
100   NFSERR_BADCHAR = 10040,
101   NFSERR_BADNAME = 10041,
102   NFSERR_BAD_RANGE = 10042,
103   NFSERR_LOCK_NOTSUPP = 10043,
104   NFSERR_OP_ILLEGAL = 10044,
105   NFSERR_DEADLOCK = 10045,
106   NFSERR_FILE_OPEN = 10046,
107   NFSERR_ADMIN_REVOKED = 10047,
108   NFSERR_CB_PATH_DOWN = 10048,
109   NFSERR_REPLAY_ME = 10049
110  };
111  
112  enum nfs_ftype {
113   NFNON = 0,
114   NFREG = 1,
115   NFDIR = 2,
116   NFBLK = 3,
117   NFCHR = 4,
118   NFLNK = 5,
119   NFSOCK = 6,
120   NFBAD = 7,
121   NFFIFO = 8
122  };
123  
124  #endif
125