diff options
| author | David Howells <dhowells@redhat.com> | 2012-10-04 13:20:15 -0400 |
|---|---|---|
| committer | David Howells <dhowells@redhat.com> | 2012-10-04 13:20:15 -0400 |
| commit | 8a1ab3155c2ac7fbe5f2038d6e26efeb607a1498 (patch) | |
| tree | 42ef93e164b8b2a01adab30db4b33f370f4280d7 /include/uapi/asm-generic | |
| parent | f3dfd599af993385b40fc7a1c947afc12729bc4d (diff) | |
UAPI: (Scripted) Disintegrate include/asm-generic
Signed-off-by: David Howells <dhowells@redhat.com>
Acked-by: Arnd Bergmann <arnd@arndb.de>
Acked-by: Thomas Gleixner <tglx@linutronix.de>
Acked-by: Michael Kerrisk <mtk.manpages@gmail.com>
Acked-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Acked-by: Dave Jones <davej@redhat.com>
Diffstat (limited to 'include/uapi/asm-generic')
36 files changed, 3065 insertions, 0 deletions
diff --git a/include/uapi/asm-generic/Kbuild b/include/uapi/asm-generic/Kbuild index aafaa5aa54d4..b73de7bb7a62 100644 --- a/include/uapi/asm-generic/Kbuild +++ b/include/uapi/asm-generic/Kbuild | |||
| @@ -1 +1,36 @@ | |||
| 1 | # UAPI Header export list | 1 | # UAPI Header export list |
| 2 | header-y += auxvec.h | ||
| 3 | header-y += bitsperlong.h | ||
| 4 | header-y += errno-base.h | ||
| 5 | header-y += errno.h | ||
| 6 | header-y += fcntl.h | ||
| 7 | header-y += int-l64.h | ||
| 8 | header-y += int-ll64.h | ||
| 9 | header-y += ioctl.h | ||
| 10 | header-y += ioctls.h | ||
| 11 | header-y += ipcbuf.h | ||
| 12 | header-y += kvm_para.h | ||
| 13 | header-y += mman-common.h | ||
| 14 | header-y += mman.h | ||
| 15 | header-y += msgbuf.h | ||
| 16 | header-y += param.h | ||
| 17 | header-y += poll.h | ||
| 18 | header-y += posix_types.h | ||
| 19 | header-y += resource.h | ||
| 20 | header-y += sembuf.h | ||
| 21 | header-y += setup.h | ||
| 22 | header-y += shmbuf.h | ||
| 23 | header-y += shmparam.h | ||
| 24 | header-y += siginfo.h | ||
| 25 | header-y += signal-defs.h | ||
| 26 | header-y += signal.h | ||
| 27 | header-y += socket.h | ||
| 28 | header-y += sockios.h | ||
| 29 | header-y += stat.h | ||
| 30 | header-y += statfs.h | ||
| 31 | header-y += swab.h | ||
| 32 | header-y += termbits.h | ||
| 33 | header-y += termios.h | ||
| 34 | header-y += types.h | ||
| 35 | header-y += ucontext.h | ||
| 36 | header-y += unistd.h | ||
diff --git a/include/uapi/asm-generic/auxvec.h b/include/uapi/asm-generic/auxvec.h new file mode 100644 index 000000000000..b99573b0ad12 --- /dev/null +++ b/include/uapi/asm-generic/auxvec.h | |||
| @@ -0,0 +1,8 @@ | |||
| 1 | #ifndef __ASM_GENERIC_AUXVEC_H | ||
| 2 | #define __ASM_GENERIC_AUXVEC_H | ||
| 3 | /* | ||
| 4 | * Not all architectures need their own auxvec.h, the most | ||
| 5 | * common definitions are already in linux/auxvec.h. | ||
| 6 | */ | ||
| 7 | |||
| 8 | #endif /* __ASM_GENERIC_AUXVEC_H */ | ||
diff --git a/include/uapi/asm-generic/bitsperlong.h b/include/uapi/asm-generic/bitsperlong.h new file mode 100644 index 000000000000..23e6c416b85f --- /dev/null +++ b/include/uapi/asm-generic/bitsperlong.h | |||
| @@ -0,0 +1,15 @@ | |||
| 1 | #ifndef _UAPI__ASM_GENERIC_BITS_PER_LONG | ||
| 2 | #define _UAPI__ASM_GENERIC_BITS_PER_LONG | ||
| 3 | |||
| 4 | /* | ||
| 5 | * There seems to be no way of detecting this automatically from user | ||
| 6 | * space, so 64 bit architectures should override this in their | ||
| 7 | * bitsperlong.h. In particular, an architecture that supports | ||
| 8 | * both 32 and 64 bit user space must not rely on CONFIG_64BIT | ||
| 9 | * to decide it, but rather check a compiler provided macro. | ||
| 10 | */ | ||
| 11 | #ifndef __BITS_PER_LONG | ||
| 12 | #define __BITS_PER_LONG 32 | ||
| 13 | #endif | ||
| 14 | |||
| 15 | #endif /* _UAPI__ASM_GENERIC_BITS_PER_LONG */ | ||
diff --git a/include/uapi/asm-generic/errno-base.h b/include/uapi/asm-generic/errno-base.h new file mode 100644 index 000000000000..65115978510f --- /dev/null +++ b/include/uapi/asm-generic/errno-base.h | |||
| @@ -0,0 +1,39 @@ | |||
| 1 | #ifndef _ASM_GENERIC_ERRNO_BASE_H | ||
| 2 | #define _ASM_GENERIC_ERRNO_BASE_H | ||
| 3 | |||
| 4 | #define EPERM 1 /* Operation not permitted */ | ||
| 5 | #define ENOENT 2 /* No such file or directory */ | ||
| 6 | #define ESRCH 3 /* No such process */ | ||
| 7 | #define EINTR 4 /* Interrupted system call */ | ||
| 8 | #define EIO 5 /* I/O error */ | ||
| 9 | #define ENXIO 6 /* No such device or address */ | ||
| 10 | #define E2BIG 7 /* Argument list too long */ | ||
| 11 | #define ENOEXEC 8 /* Exec format error */ | ||
| 12 | #define EBADF 9 /* Bad file number */ | ||
| 13 | #define ECHILD 10 /* No child processes */ | ||
| 14 | #define EAGAIN 11 /* Try again */ | ||
| 15 | #define ENOMEM 12 /* Out of memory */ | ||
| 16 | #define EACCES 13 /* Permission denied */ | ||
| 17 | #define EFAULT 14 /* Bad address */ | ||
| 18 | #define ENOTBLK 15 /* Block device required */ | ||
| 19 | #define EBUSY 16 /* Device or resource busy */ | ||
| 20 | #define EEXIST 17 /* File exists */ | ||
| 21 | #define EXDEV 18 /* Cross-device link */ | ||
| 22 | #define ENODEV 19 /* No such device */ | ||
| 23 | #define ENOTDIR 20 /* Not a directory */ | ||
| 24 | #define EISDIR 21 /* Is a directory */ | ||
| 25 | #define EINVAL 22 /* Invalid argument */ | ||
| 26 | #define ENFILE 23 /* File table overflow */ | ||
| 27 | #define EMFILE 24 /* Too many open files */ | ||
| 28 | #define ENOTTY 25 /* Not a typewriter */ | ||
| 29 | #define ETXTBSY 26 /* Text file busy */ | ||
| 30 | #define EFBIG 27 /* File too large */ | ||
| 31 | #define ENOSPC 28 /* No space left on device */ | ||
| 32 | #define ESPIPE 29 /* Illegal seek */ | ||
| 33 | #define EROFS 30 /* Read-only file system */ | ||
| 34 | #define EMLINK 31 /* Too many links */ | ||
| 35 | #define EPIPE 32 /* Broken pipe */ | ||
| 36 | #define EDOM 33 /* Math argument out of domain of func */ | ||
| 37 | #define ERANGE 34 /* Math result not representable */ | ||
| 38 | |||
| 39 | #endif | ||
diff --git a/include/uapi/asm-generic/errno.h b/include/uapi/asm-generic/errno.h new file mode 100644 index 000000000000..a1331ce50445 --- /dev/null +++ b/include/uapi/asm-generic/errno.h | |||
| @@ -0,0 +1,113 @@ | |||
| 1 | #ifndef _ASM_GENERIC_ERRNO_H | ||
| 2 | #define _ASM_GENERIC_ERRNO_H | ||
| 3 | |||
| 4 | #include <asm-generic/errno-base.h> | ||
| 5 | |||
| 6 | #define EDEADLK 35 /* Resource deadlock would occur */ | ||
| 7 | #define ENAMETOOLONG 36 /* File name too long */ | ||
| 8 | #define ENOLCK 37 /* No record locks available */ | ||
| 9 | #define ENOSYS 38 /* Function not implemented */ | ||
| 10 | #define ENOTEMPTY 39 /* Directory not empty */ | ||
| 11 | #define ELOOP 40 /* Too many symbolic links encountered */ | ||
| 12 | #define EWOULDBLOCK EAGAIN /* Operation would block */ | ||
| 13 | #define ENOMSG 42 /* No message of desired type */ | ||
| 14 | #define EIDRM 43 /* Identifier removed */ | ||
| 15 | #define ECHRNG 44 /* Channel number out of range */ | ||
| 16 | #define EL2NSYNC 45 /* Level 2 not synchronized */ | ||
| 17 | #define EL3HLT 46 /* Level 3 halted */ | ||
| 18 | #define EL3RST 47 /* Level 3 reset */ | ||
| 19 | #define ELNRNG 48 /* Link number out of range */ | ||
| 20 | #define EUNATCH 49 /* Protocol driver not attached */ | ||
| 21 | #define ENOCSI 50 /* No CSI structure available */ | ||
| 22 | #define EL2HLT 51 /* Level 2 halted */ | ||
