2009-03-04 04:28:35 +01:00
|
|
|
/****************************************************************************
|
|
|
|
****************************************************************************
|
|
|
|
***
|
|
|
|
*** This header was automatically generated from a Linux kernel header
|
|
|
|
*** of the same name, to make information necessary for userspace to
|
|
|
|
*** call into the kernel available to libc. It contains only constants,
|
|
|
|
*** structures, and macros generated from the original header, and thus,
|
|
|
|
*** contains no copyrightable information.
|
|
|
|
***
|
2012-03-08 06:13:49 +01:00
|
|
|
*** To edit the content of this header, modify the corresponding
|
|
|
|
*** source file (e.g. under external/kernel-headers/original/) then
|
|
|
|
*** run bionic/libc/kernel/tools/update_all.py
|
|
|
|
***
|
|
|
|
*** Any manual change here will be lost the next time this script will
|
|
|
|
*** be run. You've been warned!
|
|
|
|
***
|
2009-03-04 04:28:35 +01:00
|
|
|
****************************************************************************
|
|
|
|
****************************************************************************/
|
|
|
|
#ifndef _LINUX_NFS_H
|
|
|
|
#define _LINUX_NFS_H
|
|
|
|
#define NFS_PROGRAM 100003
|
|
|
|
#define NFS_PORT 2049
|
2012-03-08 06:13:49 +01:00
|
|
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
|
2009-03-04 04:28:35 +01:00
|
|
|
#define NFS_MAXDATA 8192
|
|
|
|
#define NFS_MAXPATHLEN 1024
|
|
|
|
#define NFS_MAXNAMLEN 255
|
|
|
|
#define NFS_MAXGROUPS 16
|
2012-03-08 06:13:49 +01:00
|
|
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
|
2009-03-04 04:28:35 +01:00
|
|
|
#define NFS_FHSIZE 32
|
|
|
|
#define NFS_COOKIESIZE 4
|
|
|
|
#define NFS_FIFO_DEV (-1)
|
|
|
|
#define NFSMODE_FMT 0170000
|
2012-03-08 06:13:49 +01:00
|
|
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
|
2009-03-04 04:28:35 +01:00
|
|
|
#define NFSMODE_DIR 0040000
|
|
|
|
#define NFSMODE_CHR 0020000
|
|
|
|
#define NFSMODE_BLK 0060000
|
|
|
|
#define NFSMODE_REG 0100000
|
2012-03-08 06:13:49 +01:00
|
|
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
|
2009-03-04 04:28:35 +01:00
|
|
|
#define NFSMODE_LNK 0120000
|
|
|
|
#define NFSMODE_SOCK 0140000
|
|
|
|
#define NFSMODE_FIFO 0010000
|
|
|
|
#define NFS_MNT_PROGRAM 100005
|
2012-03-08 06:13:49 +01:00
|
|
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
|
2009-03-04 04:28:35 +01:00
|
|
|
#define NFS_MNT_PORT 627
|
|
|
|
enum nfs_stat {
|
|
|
|
NFS_OK = 0,
|
|
|
|
NFSERR_PERM = 1,
|
2012-03-08 06:13:49 +01:00
|
|
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
|
2009-03-04 04:28:35 +01:00
|
|
|
NFSERR_NOENT = 2,
|
|
|
|
NFSERR_IO = 5,
|
|
|
|
NFSERR_NXIO = 6,
|
|
|
|
NFSERR_EAGAIN = 11,
|
2012-03-08 06:13:49 +01:00
|
|
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
|
2009-03-04 04:28:35 +01:00
|
|
|
NFSERR_ACCES = 13,
|
|
|
|
NFSERR_EXIST = 17,
|
|
|
|
NFSERR_XDEV = 18,
|
|
|
|
NFSERR_NODEV = 19,
|
2012-03-08 06:13:49 +01:00
|
|
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
|
2009-03-04 04:28:35 +01:00
|
|
|
NFSERR_NOTDIR = 20,
|
|
|
|
NFSERR_ISDIR = 21,
|
|
|
|
NFSERR_INVAL = 22,
|
|
|
|
NFSERR_FBIG = 27,
|
2012-03-08 06:13:49 +01:00
|
|
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
|
2009-03-04 04:28:35 +01:00
|
|
|
NFSERR_NOSPC = 28,
|
|
|
|
NFSERR_ROFS = 30,
|
|
|
|
NFSERR_MLINK = 31,
|
|
|
|
NFSERR_OPNOTSUPP = 45,
|
2012-03-08 06:13:49 +01:00
|
|
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
|
2009-03-04 04:28:35 +01:00
|
|
|
NFSERR_NAMETOOLONG = 63,
|
|
|
|
NFSERR_NOTEMPTY = 66,
|
|
|
|
NFSERR_DQUOT = 69,
|
|
|
|
NFSERR_STALE = 70,
|
2012-03-08 06:13:49 +01:00
|
|
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
|
2009-03-04 04:28:35 +01:00
|
|
|
NFSERR_REMOTE = 71,
|
|
|
|
NFSERR_WFLUSH = 99,
|
|
|
|
NFSERR_BADHANDLE = 10001,
|
|
|
|
NFSERR_NOT_SYNC = 10002,
|
2012-03-08 06:13:49 +01:00
|
|
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
|
2009-03-04 04:28:35 +01:00
|
|
|
NFSERR_BAD_COOKIE = 10003,
|
|
|
|
NFSERR_NOTSUPP = 10004,
|
|
|
|
NFSERR_TOOSMALL = 10005,
|
|
|
|
NFSERR_SERVERFAULT = 10006,
|
2012-03-08 06:13:49 +01:00
|
|
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
|
2009-03-04 04:28:35 +01:00
|
|
|
NFSERR_BADTYPE = 10007,
|
|
|
|
NFSERR_JUKEBOX = 10008,
|
|
|
|
NFSERR_SAME = 10009,
|
|
|
|
NFSERR_DENIED = 10010,
|
2012-03-08 06:13:49 +01:00
|
|
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
|
2009-03-04 04:28:35 +01:00
|
|
|
NFSERR_EXPIRED = 10011,
|
|
|
|
NFSERR_LOCKED = 10012,
|
|
|
|
NFSERR_GRACE = 10013,
|
|
|
|
NFSERR_FHEXPIRED = 10014,
|
2012-03-08 06:13:49 +01:00
|
|
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
|
2009-03-04 04:28:35 +01:00
|
|
|
NFSERR_SHARE_DENIED = 10015,
|
|
|
|
NFSERR_WRONGSEC = 10016,
|
|
|
|
NFSERR_CLID_INUSE = 10017,
|
|
|
|
NFSERR_RESOURCE = 10018,
|
2012-03-08 06:13:49 +01:00
|
|
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
|
2009-03-04 04:28:35 +01:00
|
|
|
NFSERR_MOVED = 10019,
|
|
|
|
NFSERR_NOFILEHANDLE = 10020,
|
|
|
|
NFSERR_MINOR_VERS_MISMATCH = 10021,
|
|
|
|
NFSERR_STALE_CLIENTID = 10022,
|
2012-03-08 06:13:49 +01:00
|
|
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
|
2009-03-04 04:28:35 +01:00
|
|
|
NFSERR_STALE_STATEID = 10023,
|
|
|
|
NFSERR_OLD_STATEID = 10024,
|
|
|
|
NFSERR_BAD_STATEID = 10025,
|
|
|
|
NFSERR_BAD_SEQID = 10026,
|
2012-03-08 06:13:49 +01:00
|
|
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
|
2009-03-04 04:28:35 +01:00
|
|
|
NFSERR_NOT_SAME = 10027,
|
|
|
|
NFSERR_LOCK_RANGE = 10028,
|
|
|
|
NFSERR_SYMLINK = 10029,
|
|
|
|
NFSERR_RESTOREFH = 10030,
|
2012-03-08 06:13:49 +01:00
|
|
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
|
2009-03-04 04:28:35 +01:00
|
|
|
NFSERR_LEASE_MOVED = 10031,
|
|
|
|
NFSERR_ATTRNOTSUPP = 10032,
|
|
|
|
NFSERR_NO_GRACE = 10033,
|
|
|
|
NFSERR_RECLAIM_BAD = 10034,
|
2012-03-08 06:13:49 +01:00
|
|
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
|
2009-03-04 04:28:35 +01:00
|
|
|
NFSERR_RECLAIM_CONFLICT = 10035,
|
|
|
|
NFSERR_BAD_XDR = 10036,
|
|
|
|
NFSERR_LOCKS_HELD = 10037,
|
|
|
|
NFSERR_OPENMODE = 10038,
|
2012-03-08 06:13:49 +01:00
|
|
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
|
2009-03-04 04:28:35 +01:00
|
|
|
NFSERR_BADOWNER = 10039,
|
|
|
|
NFSERR_BADCHAR = 10040,
|
|
|
|
NFSERR_BADNAME = 10041,
|
|
|
|
NFSERR_BAD_RANGE = 10042,
|
2012-03-08 06:13:49 +01:00
|
|
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
|
2009-03-04 04:28:35 +01:00
|
|
|
NFSERR_LOCK_NOTSUPP = 10043,
|
|
|
|
NFSERR_OP_ILLEGAL = 10044,
|
|
|
|
NFSERR_DEADLOCK = 10045,
|
|
|
|
NFSERR_FILE_OPEN = 10046,
|
2012-03-08 06:13:49 +01:00
|
|
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
|
2009-03-04 04:28:35 +01:00
|
|
|
NFSERR_ADMIN_REVOKED = 10047,
|
|
|
|
NFSERR_CB_PATH_DOWN = 10048,
|
|
|
|
NFSERR_REPLAY_ME = 10049
|
|
|
|
};
|
2012-03-08 06:13:49 +01:00
|
|
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
|
2009-03-04 04:28:35 +01:00
|
|
|
enum nfs_ftype {
|
|
|
|
NFNON = 0,
|
|
|
|
NFREG = 1,
|
|
|
|
NFDIR = 2,
|
2012-03-08 06:13:49 +01:00
|
|
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
|
2009-03-04 04:28:35 +01:00
|
|
|
NFBLK = 3,
|
|
|
|
NFCHR = 4,
|
|
|
|
NFLNK = 5,
|
|
|
|
NFSOCK = 6,
|
2012-03-08 06:13:49 +01:00
|
|
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
|
2009-03-04 04:28:35 +01:00
|
|
|
NFBAD = 7,
|
|
|
|
NFFIFO = 8
|
|
|
|
};
|
|
|
|
#endif
|
2012-03-08 06:13:49 +01:00
|
|
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
|