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 *** To edit the content of this header, modify the corresponding 11 *** source file (e.g. under external/kernel-headers/original/) then 12 *** run bionic/libc/kernel/tools/update_all.py 13 *** 14 *** Any manual change here will be lost the next time this script will 15 *** be run. You've been warned! 16 *** 17 **************************************************************************** 18 ****************************************************************************/ 19#ifndef _UAPI_LINUX_NFS_H 20#define _UAPI_LINUX_NFS_H 21#include <linux/types.h> 22#define NFS_PROGRAM 100003 23#define NFS_PORT 2049 24#define NFS_MAXDATA 8192 25#define NFS_MAXPATHLEN 1024 26#define NFS_MAXNAMLEN 255 27#define NFS_MAXGROUPS 16 28#define NFS_FHSIZE 32 29#define NFS_COOKIESIZE 4 30#define NFS_FIFO_DEV (- 1) 31#define NFSMODE_FMT 0170000 32#define NFSMODE_DIR 0040000 33#define NFSMODE_CHR 0020000 34#define NFSMODE_BLK 0060000 35#define NFSMODE_REG 0100000 36#define NFSMODE_LNK 0120000 37#define NFSMODE_SOCK 0140000 38#define NFSMODE_FIFO 0010000 39#define NFS_MNT_PROGRAM 100005 40#define NFS_MNT_VERSION 1 41#define NFS_MNT3_VERSION 3 42#define NFS_PIPE_DIRNAME "nfs" 43enum nfs_stat { 44 NFS_OK = 0, 45 NFSERR_PERM = 1, 46 NFSERR_NOENT = 2, 47 NFSERR_IO = 5, 48 NFSERR_NXIO = 6, 49 NFSERR_EAGAIN = 11, 50 NFSERR_ACCES = 13, 51 NFSERR_EXIST = 17, 52 NFSERR_XDEV = 18, 53 NFSERR_NODEV = 19, 54 NFSERR_NOTDIR = 20, 55 NFSERR_ISDIR = 21, 56 NFSERR_INVAL = 22, 57 NFSERR_FBIG = 27, 58 NFSERR_NOSPC = 28, 59 NFSERR_ROFS = 30, 60 NFSERR_MLINK = 31, 61 NFSERR_OPNOTSUPP = 45, 62 NFSERR_NAMETOOLONG = 63, 63 NFSERR_NOTEMPTY = 66, 64 NFSERR_DQUOT = 69, 65 NFSERR_STALE = 70, 66 NFSERR_REMOTE = 71, 67 NFSERR_WFLUSH = 99, 68 NFSERR_BADHANDLE = 10001, 69 NFSERR_NOT_SYNC = 10002, 70 NFSERR_BAD_COOKIE = 10003, 71 NFSERR_NOTSUPP = 10004, 72 NFSERR_TOOSMALL = 10005, 73 NFSERR_SERVERFAULT = 10006, 74 NFSERR_BADTYPE = 10007, 75 NFSERR_JUKEBOX = 10008, 76 NFSERR_SAME = 10009, 77 NFSERR_DENIED = 10010, 78 NFSERR_EXPIRED = 10011, 79 NFSERR_LOCKED = 10012, 80 NFSERR_GRACE = 10013, 81 NFSERR_FHEXPIRED = 10014, 82 NFSERR_SHARE_DENIED = 10015, 83 NFSERR_WRONGSEC = 10016, 84 NFSERR_CLID_INUSE = 10017, 85 NFSERR_RESOURCE = 10018, 86 NFSERR_MOVED = 10019, 87 NFSERR_NOFILEHANDLE = 10020, 88 NFSERR_MINOR_VERS_MISMATCH = 10021, 89 NFSERR_STALE_CLIENTID = 10022, 90 NFSERR_STALE_STATEID = 10023, 91 NFSERR_OLD_STATEID = 10024, 92 NFSERR_BAD_STATEID = 10025, 93 NFSERR_BAD_SEQID = 10026, 94 NFSERR_NOT_SAME = 10027, 95 NFSERR_LOCK_RANGE = 10028, 96 NFSERR_SYMLINK = 10029, 97 NFSERR_RESTOREFH = 10030, 98 NFSERR_LEASE_MOVED = 10031, 99 NFSERR_ATTRNOTSUPP = 10032, 100 NFSERR_NO_GRACE = 10033, 101 NFSERR_RECLAIM_BAD = 10034, 102 NFSERR_RECLAIM_CONFLICT = 10035, 103 NFSERR_BAD_XDR = 10036, 104 NFSERR_LOCKS_HELD = 10037, 105 NFSERR_OPENMODE = 10038, 106 NFSERR_BADOWNER = 10039, 107 NFSERR_BADCHAR = 10040, 108 NFSERR_BADNAME = 10041, 109 NFSERR_BAD_RANGE = 10042, 110 NFSERR_LOCK_NOTSUPP = 10043, 111 NFSERR_OP_ILLEGAL = 10044, 112 NFSERR_DEADLOCK = 10045, 113 NFSERR_FILE_OPEN = 10046, 114 NFSERR_ADMIN_REVOKED = 10047, 115 NFSERR_CB_PATH_DOWN = 10048, 116}; 117enum nfs_ftype { 118 NFNON = 0, 119 NFREG = 1, 120 NFDIR = 2, 121 NFBLK = 3, 122 NFCHR = 4, 123 NFLNK = 5, 124 NFSOCK = 6, 125 NFBAD = 7, 126 NFFIFO = 8 127}; 128#endif 129