This commit removes duplication of system headers per platform, i.e. remove
copies of common headers like <stdlib.h> from arch-arm/usr/include and arch-x86/usr/include
and move them to a common include directory. More specifically:
- common headers: android-N/arch-A/usr/include --> android-N/include
- arch-specific headers: android-N/arch-A/usr-include --> android-N/arch-A/include
- arch-specific libs: android-N/arch-A/usr/lib --> android-N/arch-A/lib
Change-Id: Ifdba5038d108901931f3e3a7c14ebe6270d2d276
NOTE: This also contains careful separation of API-level-specific headers.
For example, platforms/android-5/include/pthread.h contains new function
declarations that are not available when using platforms/android-3/include/pthread.h
NOTE: The NDK's build-platforms.sh script has been updated to understand the new
layout. This change in develeopment/ndk does not change the layout of
platform files under $NDK/platforms after build-platforms.sh is called.
76 lines
1.9 KiB
C
76 lines
1.9 KiB
C
/****************************************************************************
|
|
****************************************************************************
|
|
***
|
|
*** 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.
|
|
***
|
|
****************************************************************************
|
|
****************************************************************************/
|
|
#ifndef _LINUX_NFS2_H
|
|
#define _LINUX_NFS2_H
|
|
|
|
#define NFS2_PORT 2049
|
|
#define NFS2_MAXDATA 8192
|
|
#define NFS2_MAXPATHLEN 1024
|
|
#define NFS2_MAXNAMLEN 255
|
|
#define NFS2_MAXGROUPS 16
|
|
#define NFS2_FHSIZE 32
|
|
#define NFS2_COOKIESIZE 4
|
|
#define NFS2_FIFO_DEV (-1)
|
|
#define NFS2MODE_FMT 0170000
|
|
#define NFS2MODE_DIR 0040000
|
|
#define NFS2MODE_CHR 0020000
|
|
#define NFS2MODE_BLK 0060000
|
|
#define NFS2MODE_REG 0100000
|
|
#define NFS2MODE_LNK 0120000
|
|
#define NFS2MODE_SOCK 0140000
|
|
#define NFS2MODE_FIFO 0010000
|
|
|
|
enum nfs2_ftype {
|
|
NF2NON = 0,
|
|
NF2REG = 1,
|
|
NF2DIR = 2,
|
|
NF2BLK = 3,
|
|
NF2CHR = 4,
|
|
NF2LNK = 5,
|
|
NF2SOCK = 6,
|
|
NF2BAD = 7,
|
|
NF2FIFO = 8
|
|
};
|
|
|
|
struct nfs2_fh {
|
|
char data[NFS2_FHSIZE];
|
|
};
|
|
|
|
#define NFS2_VERSION 2
|
|
#define NFSPROC_NULL 0
|
|
#define NFSPROC_GETATTR 1
|
|
#define NFSPROC_SETATTR 2
|
|
#define NFSPROC_ROOT 3
|
|
#define NFSPROC_LOOKUP 4
|
|
#define NFSPROC_READLINK 5
|
|
#define NFSPROC_READ 6
|
|
#define NFSPROC_WRITECACHE 7
|
|
#define NFSPROC_WRITE 8
|
|
#define NFSPROC_CREATE 9
|
|
#define NFSPROC_REMOVE 10
|
|
#define NFSPROC_RENAME 11
|
|
#define NFSPROC_LINK 12
|
|
#define NFSPROC_SYMLINK 13
|
|
#define NFSPROC_MKDIR 14
|
|
#define NFSPROC_RMDIR 15
|
|
#define NFSPROC_READDIR 16
|
|
#define NFSPROC_STATFS 17
|
|
|
|
#define NFS_MNT_PROGRAM 100005
|
|
#define NFS_MNT_VERSION 1
|
|
#define MNTPROC_NULL 0
|
|
#define MNTPROC_MNT 1
|
|
#define MNTPROC_UMNT 3
|
|
#define MNTPROC_UMNTALL 4
|
|
|
|
#endif
|