diff options
| author | David Howells <dhowells@redhat.com> | 2012-12-17 08:47:09 -0500 |
|---|---|---|
| committer | David Howells <dhowells@redhat.com> | 2012-12-17 09:12:19 -0500 |
| commit | 96433f6ee49032d7a8bda76de2b05cfde2914354 (patch) | |
| tree | 8e274f12a098c0cb7010c97f11b5af6463b5c169 /arch/alpha/include/uapi | |
| parent | a4f1de176614f634c367e5994a7bcc428c940df0 (diff) | |
UAPI: (Scripted) Disintegrate arch/alpha/include/asm
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>
Acked-by: Michael Cree <mcree@orcon.net.nz>
Acked-by: Matt Turner <mattst88@gmail.com>
Diffstat (limited to 'arch/alpha/include/uapi')
41 files changed, 2517 insertions, 0 deletions
diff --git a/arch/alpha/include/uapi/asm/Kbuild b/arch/alpha/include/uapi/asm/Kbuild index baebb3da1d44..d96f2ef5b639 100644 --- a/arch/alpha/include/uapi/asm/Kbuild +++ b/arch/alpha/include/uapi/asm/Kbuild | |||
| @@ -1,3 +1,43 @@ | |||
| 1 | # UAPI Header export list | 1 | # UAPI Header export list |
| 2 | include include/uapi/asm-generic/Kbuild.asm | 2 | include include/uapi/asm-generic/Kbuild.asm |
| 3 | 3 | ||
| 4 | header-y += a.out.h | ||
| 5 | header-y += auxvec.h | ||
| 6 | header-y += bitsperlong.h | ||
| 7 | header-y += byteorder.h | ||
| 8 | header-y += compiler.h | ||
| 9 | header-y += console.h | ||
| 10 | header-y += errno.h | ||
| 11 | header-y += fcntl.h | ||
| 12 | header-y += fpu.h | ||
| 13 | header-y += gentrap.h | ||
| 14 | header-y += ioctl.h | ||
| 15 | header-y += ioctls.h | ||
| 16 | header-y += ipcbuf.h | ||
| 17 | header-y += kvm_para.h | ||
| 18 | header-y += mman.h | ||
| 19 | header-y += msgbuf.h | ||
| 20 | header-y += pal.h | ||
| 21 | header-y += param.h | ||
| 22 | header-y += poll.h | ||
| 23 | header-y += posix_types.h | ||
| 24 | header-y += ptrace.h | ||
| 25 | header-y += reg.h | ||
| 26 | header-y += regdef.h | ||
| 27 | header-y += resource.h | ||
| 28 | header-y += sembuf.h | ||
| 29 | header-y += setup.h | ||
| 30 | header-y += shmbuf.h | ||
| 31 | header-y += sigcontext.h | ||
| 32 | header-y += siginfo.h | ||
| 33 | header-y += signal.h | ||
| 34 | header-y += socket.h | ||
| 35 | header-y += sockios.h | ||
| 36 | header-y += stat.h | ||
| 37 | header-y += statfs.h | ||
| 38 | header-y += swab.h | ||
| 39 | header-y += sysinfo.h | ||
| 40 | header-y += termbits.h | ||
| 41 | header-y += termios.h | ||
| 42 | header-y += types.h | ||
| 43 | header-y += unistd.h | ||
diff --git a/arch/alpha/include/uapi/asm/a.out.h b/arch/alpha/include/uapi/asm/a.out.h new file mode 100644 index 000000000000..547707246f63 --- /dev/null +++ b/arch/alpha/include/uapi/asm/a.out.h | |||
| @@ -0,0 +1,91 @@ | |||
| 1 | #ifndef _UAPI__ALPHA_A_OUT_H__ | ||
| 2 | #define _UAPI__ALPHA_A_OUT_H__ | ||
| 3 | |||
| 4 | #include <linux/types.h> | ||
| 5 | |||
| 6 | /* | ||
| 7 | * OSF/1 ECOFF header structs. ECOFF files consist of: | ||
| 8 | * - a file header (struct filehdr), | ||
| 9 | * - an a.out header (struct aouthdr), | ||
| 10 | * - one or more section headers (struct scnhdr). | ||
| 11 | * The filhdr's "f_nscns" field contains the | ||
| 12 | * number of section headers. | ||
| 13 | */ | ||
| 14 | |||
| 15 | struct filehdr | ||
| 16 | { | ||
| 17 | /* OSF/1 "file" header */ | ||
| 18 | __u16 f_magic, f_nscns; | ||
| 19 | __u32 f_timdat; | ||
| 20 | __u64 f_symptr; | ||
| 21 | __u32 f_nsyms; | ||
| 22 | __u16 f_opthdr, f_flags; | ||
| 23 | }; | ||
| 24 | |||
| 25 | struct aouthdr | ||
| 26 | { | ||
| 27 | __u64 info; /* after that it looks quite normal.. */ | ||
| 28 | __u64 tsize; | ||
| 29 | __u64 dsize; | ||
| 30 | __u64 bsize; | ||
| 31 | __u64 entry; | ||
| 32 | __u64 text_start; /* with a few additions that actually make sense */ | ||
| 33 | __u64 data_start; | ||
| 34 | __u64 bss_start; | ||
| 35 | __u32 gprmask, fprmask; /* bitmask of general & floating point regs used in binary */ | ||
| 36 | __u64 gpvalue; | ||
| 37 | }; | ||
| 38 | |||
| 39 | struct scnhdr | ||
| 40 | { | ||
| 41 | char s_name[8]; | ||
| 42 | __u64 s_paddr; | ||
| 43 | __u64 s_vaddr; | ||
| 44 | __u64 s_size; | ||
| 45 | __u64 s_scnptr; | ||
| 46 | __u64 s_relptr; | ||
| 47 | __u64 s_lnnoptr; | ||
| 48 | __u16 s_nreloc; | ||
| 49 | __u16 s_nlnno; | ||
| 50 | __u32 s_flags; | ||
| 51 | }; | ||
| 52 | |||
| 53 | struct exec | ||
| 54 | { | ||
| 55 | /* OSF/1 "file" header */ | ||
| 56 | struct filehdr fh; | ||
| 57 | struct aouthdr ah; | ||
| 58 | }; | ||
| 59 | |||
| 60 | /* | ||
| 61 | * Define's so that the kernel exec code can access the a.out header | ||
| 62 | * fields... | ||
| 63 | */ | ||
| 64 | #define a_info ah.info | ||
| 65 | #define a_text ah.tsize | ||
| 66 | #define a_data ah.dsize | ||
| 67 | #define a_bss ah.bsize | ||
| 68 | #define a_entry ah.entry | ||
| 69 | #define a_textstart ah.text_start | ||
| 70 | #define a_datastart ah.data_start | ||
| 71 | #define a_bssstart ah.bss_start | ||
| 72 | #define a_gprmask ah.gprmask | ||
| 73 | #define a_fprmask ah.fprmask | ||
| 74 | #define a_gpvalue ah.gpvalue | ||
| 75 | |||
| 76 | #define N_TXTADDR(x) ((x).a_textstart) | ||
| 77 | #define N_DATADDR(x) ((x).a_datastart) | ||
| 78 | #define N_BSSADDR(x) ((x).a_bssstart) | ||
| 79 | #define N_DRSIZE(x) 0 | ||
| 80 | #define N_TRSIZE(x) 0 | ||
| 81 | #define N_SYMSIZE(x) 0 | ||
| 82 | |||
| 83 | #define AOUTHSZ sizeof(struct aouthdr) | ||
| 84 | #define SCNHSZ sizeof(struct scnhdr) | ||
| 85 | #define SCNROUND 16 | ||
| 86 | |||
| 87 | #define N_TXTOFF(x) \ | ||
| 88 | ((long) N_MAGIC(x) == ZMAGIC ? 0 : \ | ||
| 89 | (sizeof(struct exec) + (x).fh.f_nscns*SCNHSZ + SCNROUND - 1) & ~(SCNROUND - 1)) | ||
| 90 | |||
| 91 | #endif /* _UAPI__ALPHA_A_OUT_H__ */ | ||
diff --git a/arch/alpha/include/uapi/asm/auxvec.h b/arch/alpha/include/uapi/asm/auxvec.h new file mode 100644 index 000000000000..a3a579dfdb4d --- /dev/null +++ b/arch/alpha/include/uapi/asm/auxvec.h | |||
| @@ -0,0 +1,26 @@ | |||
| 1 | #ifndef __ASM_ALPHA_AUXVEC_H | ||
| 2 | #define __ASM_ALPHA_AUXVEC_H | ||
| 3 | |||
| 4 | /* Reserve these numbers for any future use of a VDSO. */ | ||
| 5 | #if 0 | ||
| 6 | #define AT_SYSINFO 32 | ||
| 7 | #define AT_SYSINFO_EHDR 33 | ||
| 8 | #endif | ||
| 9 | |||
| 10 | /* More complete cache descriptions than AT_[DIU]CACHEBSIZE. If the | ||
| 11 | value is -1, then the cache doesn't exist. Otherwise: | ||
| 12 | |||
| 13 | bit 0-3: Cache set-associativity; 0 means fully associative. | ||
| 14 | bit 4-7: Log2 of cacheline size. | ||
| 15 | bit 8-31: Size of the entire cache >> 8. | ||
| 16 | bit 32-63: Reserved. | ||
| 17 | */ | ||
| 18 | |||
| 19 | #define AT_L1I_CACHESHAPE 34 | ||
| 20 | #define AT_L1D_CACHESHAPE 35 | ||
| 21 | #define AT_L2_CACHESHAPE 36 | ||
| 22 | #define AT_L3_CACHESHAPE 37 | ||
| 23 | |||
| 24 | #define AT_VECTOR_SIZE_ARCH 4 /* entries in ARCH_DLINFO */ | ||
| 25 | |||
| 26 | #endif /* __ASM_ALPHA_AUXVEC_H */ | ||
diff --git a/arch/alpha/include/uapi/asm/bitsperlong.h b/arch/alpha/include/uapi/asm/bitsperlong.h new file mode 100644 index 000000000000..ad57f7868203 --- /dev/null +++ b/arch/alpha/include/uapi/asm/bitsperlong.h | |||
| @@ -0,0 +1,8 @@ | |||
| 1 | #ifndef __ASM_ALPHA_BITSPERLONG_H | ||
| 2 | #define __ASM_ALPHA_BITSPERLONG_H | ||
| 3 | |||
| 4 | #define __BITS_PER_LONG 64 | ||
| 5 | |||
| 6 | #include <asm-generic/bitsperlong.h> | ||
| 7 | |||
| 8 | #endif /* __ASM_ALPHA_BITSPERLONG_H */ | ||
diff --git a/arch/alpha/include/uapi/asm/byteorder.h b/arch/alpha/include/uapi/asm/byteorder.h new file mode 100644 index 000000000000..73683093202d --- /dev/null +++ b/arch/alpha/include/uapi/asm/byteorder.h | |||
| @@ -0,0 +1,6 @@ | |||
| 1 | #ifndef _ALPHA_BYTEORDER_H | ||
| 2 | #define _ALPHA_BYTEORDER_H | ||
| 3 | |||
| 4 | #include <linux/byteorder/little_endian.h> | ||
| 5 | |||
| 6 | #endif /* _ALPHA_BYTEORDER_H */ | ||
diff --git a/arch/alpha/include/uapi/asm/compiler.h b/arch/alpha/include/uapi/asm/compiler.h new file mode 100644 index 000000000000..32cc7833f0c1 --- /dev/null +++ b/arch/alpha/include/uapi/asm/compiler.h | |||
| @@ -0,0 +1,117 @@ | |||
| 1 | #ifndef _UAPI__ALPHA_COMPILER_H | ||
| 2 | #define _UAPI__ALPHA_COMPILER_H | ||
| 3 | |||
| 4 | /* | ||
| 5 | * Herein are macros we use when describing various patterns we want to GCC. | ||
| 6 | * In all cases we can get better schedules out of the compiler if we hide | ||
| 7 | * as little as possible inside inline assembly. However, we want to be | ||
| 8 | * able to know what we'll get out before giving up inline assembly. Thus | ||
| 9 | * these tests and macros. | ||
| 10 | */ | ||
| 11 | |||
| 12 | #if __GNUC__ == 3 && __GNUC_MINOR__ >= 4 || __GNUC__ > 3 | ||
| 13 | # define __kernel_insbl(val, shift) __builtin_alpha_insbl(val, shift) | ||
| 14 | # define __kernel_inswl(val, shift) __builtin_alpha_inswl(val, shift) | ||
| 15 | # define __kernel_insql(val, shift) __builtin_alpha_insql(val, shift) | ||
| 16 | # define __kernel_inslh(val, shift) __builtin_alpha_inslh(val, shift) | ||
| 17 | # define __kernel_extbl(val, shift) __builtin_alpha_extbl(val, shift) | ||
| 18 | # define __kernel_extwl(val, shift) __builtin_alpha_extwl(val, shift) | ||
| 19 | # define __kernel_cmpbge(a, b) __builtin_alpha_cmpbge(a, b) | ||
| 20 | #else | ||
| 21 | # define __kernel_insbl(val, shift) \ | ||
| 22 | ({ unsigned long __kir; \ | ||
| 23 | __asm__("insbl %2,%1,%0" : "=r"(__kir) : "rI"(shift), "r"(val)); \ | ||
| 24 | __kir; }) | ||
| 25 | # define __kernel_inswl(val, shift) \ | ||
| 26 | ({ unsigned long __kir; \ | ||
| 27 | __asm__("inswl %2,%1,%0" : "=r"(__kir) : "rI"(shift), "r"(val)); \ | ||
| 28 | __kir; }) | ||
| 29 | # define __kernel_insql(val, shift) \ | ||
| 30 | ({ unsigned long __kir; \ | ||
| 31 | __asm__("insql %2,%1,%0" : "=r"(__kir) : "rI"(shift), "r"(val)); \ | ||
| 32 | __kir; }) | ||
| 33 | # define __kernel_inslh(val, shift) \ | ||
| 34 | ({ unsigned long __kir; \ | ||
| 35 | __asm__("inslh %2,%1,%0" : "=r"(__kir) : "rI"(shift), "r"(val)); \ | ||
| 36 | __kir; }) | ||
| 37 | # define __kernel_extbl(val, shift) \ | ||
| 38 | ({ unsigned long __kir; \ | ||
| 39 | __asm__("extbl %2,%1,%0" : "=r"(__kir) : "rI"(shift), "r"(val)); \ | ||
| 40 | __kir; }) | ||
| 41 | # define __kernel_extwl(val, shift) \ | ||
| 42 | ({ unsigned long __kir; \ | ||
| 43 | __asm__("extwl %2,%1,%0" : "=r"(__kir) : "rI"(shift), "r"(val)); \ | ||
| 44 | __kir; }) | ||
| 45 | # define __kernel_cmpbge(a, b) \ | ||
| 46 | ({ unsigned long __kir; \ | ||
| 47 | __asm__("cmpbge %r2,%1,%0" : "=r"(__kir) : "rI"(b), "rJ"(a)); \ | ||
| 48 | __kir; }) | ||
| 49 | #endif | ||
| 50 | |||
| 51 | #ifdef __alpha_cix__ | ||
| 52 | # if __GNUC__ == 3 && __GNUC_MINOR__ >= 4 || __GNUC__ > 3 | ||
| 53 | # define __kernel_cttz(x) __builtin_ctzl(x) | ||
| 54 | # define __kernel_ctlz(x) __builtin_clzl(x) | ||
| 55 | # define __kernel_ctpop(x) __builtin_popcountl(x) | ||
| 56 | # else | ||
| 57 | # define __kernel_cttz(x) \ | ||
| 58 | ({ unsigned long __kir; \ | ||
| 59 | __asm__("cttz %1,%0" : "=r"(__kir) : "r"(x)); \ | ||
| 60 | __kir; }) | ||
| 61 | # define __kernel_ctlz(x) \ | ||
| 62 | ({ unsigned long __kir; \ | ||
| 63 | __asm__("ctlz %1,%0" : "=r"(__kir) : "r"(x)); \ | ||
| 64 | __kir; }) | ||
| 65 | # define __kernel_ctpop(x) \ | ||
| 66 | ({ unsigned long __kir; \ | ||
| 67 | __asm__("ctpop %1,%0" : "=r"(__kir) : "r"(x)); \ | ||
| 68 | __kir; }) | ||
| 69 | # endif | ||
| 70 | #else | ||
| 71 | # define __kernel_cttz(x) \ | ||
| 72 | ({ unsigned long __kir; \ | ||
| 73 | __asm__(".arch ev67; cttz %1,%0" : "=r"(__kir) : "r"(x)); \ | ||
| 74 | __kir; }) | ||
| 75 | # define __kernel_ctlz(x) \ | ||
| 76 | ({ unsigned long __kir; \ | ||
| 77 | __asm__(".arch ev67; ctlz %1,%0" : "=r"(__kir) : "r"(x)); \ | ||
| 78 | __kir; }) | ||
| 79 | # define __kernel_ctpop(x) \ | ||
| 80 | ({ unsigned long __kir; \ | ||
| 81 | __asm__(".arch ev67; ctpop %1,%0" : "=r"(__kir) : "r"(x)); \ | ||
| 82 | __kir; }) | ||
| 83 | #endif | ||
| 84 | |||
| 85 | |||
| 86 | /* | ||
| 87 | * Beginning with EGCS 1.1, GCC defines __alpha_bwx__ when the BWX | ||
| 88 | * extension is enabled. Previous versions did not define anything | ||
| 89 | * we could test during compilation -- too bad, so sad. | ||
| 90 | */ | ||
| 91 | |||
| 92 | #if defined(__alpha_bwx__) | ||
| 93 | #define __kernel_ldbu(mem) (mem) | ||
| 94 | #define __kernel_ldwu(mem) (mem) | ||
| 95 | #define __kernel_stb(val,mem) ((mem) = (val)) | ||
| 96 | #define __kernel_stw(val,mem) ((mem) = (val)) | ||
| 97 | #else | ||
| 98 | #define __kernel_ldbu(mem) \ | ||
| 99 | ({ unsigned char __kir; \ | ||
| 100 | __asm__(".arch ev56; \ | ||
| 101 | ldbu %0,%1" : "=r"(__kir) : "m"(mem)); \ | ||
| 102 | __kir; }) | ||
| 103 | #define __kernel_ldwu(mem) \ | ||
| 104 | ({ unsigned short __kir; \ | ||
| 105 | __asm__(".arch ev56; \ | ||
| 106 | ldwu %0,%1" : "=r"(__kir) : "m"(mem)); \ | ||
| 107 | __kir; }) | ||
| 108 | #define __kernel_stb(val,mem) \ | ||
| 109 | __asm__(".arch ev56; \ | ||
| 110 | stb %1,%0" : "=m"(mem) : "r"(val)) | ||
| 111 | #define __kernel_stw(val,mem) \ | ||
| 112 | __asm__(".arch ev56; \ | ||
| 113 | stw %1,%0" : "=m"(mem) : "r"(val)) | ||
| 114 | #endif | ||
| 115 | |||
| 116 | |||
| 117 | #endif /* _UAPI__ALPHA_COMPILER_H */ | ||
diff --git a/arch/alpha/include/uapi/asm/console.h b/arch/alpha/include/uapi/asm/console.h new file mode 100644 index 000000000000..fd08a191f360 --- /dev/null +++ b/arch/alpha/include/uapi/asm/console.h | |||
| @@ -0,0 +1,50 @@ | |||
| 1 | #ifndef _UAPI__AXP_CONSOLE_H | ||
| 2 | #define _UAPI__AXP_CONSOLE_H | ||
| 3 | |||
| 4 | /* | ||
| 5 | * Console callback routine numbers | ||
| 6 | */ | ||
| 7 | #define CCB_GETC 0x01 | ||
| 8 | #define CCB_PUTS 0x02 | ||
| 9 | #define CCB_RESET_TERM 0x03 | ||
| 10 | #define CCB_SET_TERM_INT 0x04 | ||
| 11 | #define CCB_SET_TERM_CTL 0x05 | ||
| 12 | #define CCB_PROCESS_KEYCODE 0x06 | ||
| 13 | #define CCB_OPEN_CONSOLE 0x07 | ||
| 14 | #define CCB_CLOSE_CONSOLE 0x08 | ||
| 15 | |||
| 16 | #define CCB_OPEN 0x10 | ||
| 17 | #define CCB_CLOSE 0x11 | ||
| 18 | #define CCB_IOCTL 0x12 | ||
| 19 | #define CCB_READ 0x13 | ||
| 20 | #define CCB_WRITE 0x14 | ||
| 21 | |||
| 22 | #define CCB_SET_ENV 0x20 | ||
| 23 | #define CCB_RESET_ENV 0x21 | ||
| 24 | #define CCB_GET_ENV 0x22 | ||
| 25 | #define CCB_SAVE_ENV 0x23 | ||
| 26 | |||
| 27 | #define CCB_PSWITCH 0x30 | ||
| 28 | #define CCB_BIOS_EMUL 0x32 | ||
| 29 | |||
| 30 | /* | ||
| 31 | * Environment variable numbers | ||
| 32 | */ | ||
| 33 | #define ENV_AUTO_ACTION 0x01 | ||
| 34 | #define ENV_BOOT_DEV 0x02 | ||
| 35 | #define ENV_BOOTDEF_DEV 0x03 | ||
| 36 | #define ENV_BOOTED_DEV 0x04 | ||
| 37 | #define ENV_BOOT_FILE 0x05 | ||
| 38 | #define ENV_BOOTED_FILE 0x06 | ||
| 39 | #define ENV_BOOT_OSFLAGS 0x07 | ||
| 40 | #define ENV_BOOTED_OSFLAGS 0x08 | ||
| 41 | #define ENV_BOOT_RESET 0x09 | ||
| 42 | #define ENV_DUMP_DEV 0x0A | ||
| 43 | #define ENV_ENABLE_AUDIT 0x0B | ||
| 44 | #define ENV_LICENSE 0x0C | ||
| 45 | #define ENV_CHAR_SET 0x0D | ||
| 46 | #define ENV_LANGUAGE 0x0E | ||
| 47 | #define ENV_TTY_DEV 0x0F | ||
| 48 | |||
| 49 | |||
| 50 | #endif /* _UAPI__AXP_CONSOLE_H */ | ||
diff --git a/arch/alpha/include/uapi/asm/errno.h b/arch/alpha/include/uapi/asm/errno.h new file mode 100644 index 000000000000..e5f29ca28180 --- /dev/null +++ b/arch/alpha/include/uapi/asm/errno.h | |||
| @@ -0,0 +1,127 @@ | |||
| 1 | #ifndef _ALPHA_ERRNO_H | ||
| 2 | #define _ALPHA_ERRNO_H | ||
| 3 | |||
| 4 | #include <asm-generic/errno-base.h> | ||
| 5 | |||
| 6 | #undef EAGAIN /* 11 in errno-base.h */ | ||
| 7 | |||
| 8 | #define EDEADLK 11 /* Resource deadlock would occur */ | ||
| 9 | |||
| 10 | #define EAGAIN 35 /* Try again */ | ||
| 11 | #define EWOULDBLOCK EAGAIN /* Operation would block */ | ||
| 12 | #define EINPROGRESS 36 /* Operation now in progress */ | ||
| 13 | #define EALREADY 37 /* Operation already in progress */ | ||
| 14 | #define ENOTSOCK 38 /* Socket operation on non-socket */ | ||
| 15 | #define EDESTADDRREQ 39 /* Destination address required */ | ||
| 16 | #define EMSGSIZE 40 /* Message too long */ | ||
| 17 | #define EPROTOTYPE 41 /* Protocol wrong type for socket */ | ||
| 18 | #define ENOPROTOOPT 42 /* Protocol not available */ | ||
| 19 | #define EPROTONOSUPPORT 43 /* Protocol not supported */ | ||
| 20 | #define ESOCKTNOSUPPORT 44 /* Socket type not supported */ | ||
| 21 | #define EOPNOTSUPP 45 /* Operation not supported on transport endpoint */ | ||
| 22 | #define EPFNOSUPPORT 46 /* Protocol family not supported */ | ||
| 23 | #define EAFNOSUPPORT 47 /* Address family not supported by protocol */ | ||
| 24 | #define EADDRINUSE 48 /* Address already in use */ | ||
| 25 | #define EADDRNOTAVAIL 49 /* Cannot assign requested address */ | ||
| 26 | #define ENETDOWN 50 /* Network is down */ | ||
| 27 | #define ENETUNREACH 51 /* Network is unreachable */ | ||
| 28 | #define ENETRESET 52 /* Network dropped connection because of reset */ | ||
| 29 | #define ECONNABORTED 53 /* Software caused connection abort */ | ||
| 30 | #define ECONNRESET 54 /* Connection reset by peer */ | ||
| 31 | #define ENOBUFS 55 /* No buffer space available */ | ||
| 32 | #define EISCONN 56 /* Transport endpoint is already connected */ | ||
| 33 | #define ENOTCONN 57 /* Transport endpoint is not connected */ | ||
| 34 | #define ESHUTDOWN 58 /* Cannot send after transport endpoint shutdown */ | ||
| 35 | #define ETOOMANYREFS 59 /* Too many references: cannot splice */ | ||
| 36 | #define ETIMEDOUT 60 /* Connection timed out */ | ||
| 37 | #define ECONNREFUSED 61 /* Connection refused */ | ||
| 38 | #define ELOOP 62 /* Too many symbolic links encountered */ | ||
| 39 | #define ENAMETOOLONG 63 /* File name too long */ | ||
| 40 | #define EHOSTDOWN 64 /* Host is down */ | ||
| 41 | #define EHOSTUNREACH 65 /* No route to host */ | ||
| 42 | #define ENOTEMPTY 66 /* Directory not empty */ | ||
| 43 | |||
| 44 | #define EUSERS 68 /* Too many users */ | ||
| 45 | #define EDQUOT 69 /* Quota exceeded */ | ||
| 46 | #define ESTALE 70 /* Stale NFS file handle */ | ||
| 47 | #define EREMOTE 71 /* Object is remote */ | ||
| 48 | |||
| 49 | #define ENOLCK 77 /* No record locks available */ | ||
| 50 | #define ENOSYS 78 /* Function not implemented */ | ||
| 51 | |||
| 52 | #define ENOMSG 80 /* No message of desired type */ | ||
| 53 | #define EIDRM 81 /* Identifier removed */ | ||
| 54 | #define ENOSR 82 /* Out of streams resources */ | ||
| 55 | #define ETIME 83 /* Timer expired */ | ||
| 56 | #define EBADMSG 84 /* Not a data message */ | ||
| 57 | #define EPROTO 85 /* Protocol error */ | ||
| 58 | #define ENODATA 86 /* No data available */ | ||
| 59 | #define ENOSTR 87 /* Device not a stream */ | ||
| 60 | |||
| 61 | #define ENOPKG 92 /* Package not installed */ | ||
| 62 | |||
| 63 | #define EILSEQ 116 /* Illegal byte sequence */ | ||
| 64 | |||
| 65 | /* The following are just random noise.. */ | ||
| 66 | #define ECHRNG 88 /* Channel number out of range */ | ||
| 67 | #define EL2NSYNC 89 /* Level 2 not synchronized */ | ||
| 68 | #define EL3HLT 90 /* Level 3 halted */ | ||
| 69 | #define EL3RST 91 /* Level 3 reset */ | ||
| 70 | |||
| 71 | #define ELNRNG 93 /* Link number out of range */ | ||
| 72 | #define EUNATCH 94 /* Protocol driver not attached */ | ||
| 73 | #define ENOCSI 95 /* No CSI structure available */ | ||
| 74 | #define EL2HLT 96 /* Level 2 halted */ | ||
| 75 | #define EBADE 97 /* Invalid exchange */ | ||
| 76 | #define EBADR 98 /* Invalid request descriptor */ | ||
| 77 | #define EXFULL 99 /* Exchange full */ | ||
| 78 | #define ENOANO 100 /* No anode */ | ||
| 79 | #define EBADRQC 101 /* Invalid request code */ | ||
| 80 | #define EBADSLT 102 /* Invalid slot */ | ||
| 81 | |||
| 82 | #define EDEADLOCK EDEADLK | ||
| 83 | |||
| 84 | #define EBFONT 104 /* Bad font file format */ | ||
| 85 | #define ENONET 105 /* Machine is not on the network */ | ||
| 86 | #define ENOLINK 106 /* Link has been severed */ | ||
| 87 | #define EADV 107 /* Advertise error */ | ||
| 88 | #define ESRMNT 108 /* Srmount error */ | ||
| 89 | #define ECOMM 109 /* Communication error on send */ | ||
| 90 | #define EMULTIHOP 110 /* Multihop attempted */ | ||
| 91 | #define EDOTDOT 111 /* RFS specific error */ | ||
| 92 | #define EOVERFLOW 112 /* Value too large for defined data type */ | ||
| 93 | #define ENOTUNIQ 113 /* Name not unique on network */ | ||
| 94 | #define EBADFD 114 /* File descriptor in bad state */ | ||
| 95 | #define EREMCHG 115 /* Remote address changed */ | ||
| 96 | |||
| 97 | #define EUCLEAN 117 /* Structure needs cleaning */ | ||
| 98 | #define ENOTNAM 118 /* Not a XENIX named type file */ | ||
| 99 | #define ENAVAIL 119 /* No XENIX semaphores available */ | ||
| 100 | #define EISNAM 120 /* Is a named type file */ | ||
| 101 | #define EREMOTEIO 121 /* Remote I/O error */ | ||
| 102 | |||
| 103 | #define ELIBACC 122 /* Can not access a needed shared library */ | ||
| 104 | #define ELIBBAD 123 /* Accessing a corrupted shared library */ | ||
| 105 | #define ELIBSCN 124 /* .lib section in a.out corrupted */ | ||
| 106 | #define ELIBMAX 125 /* Attempting to link in too many shared libraries */ | ||
| 107 | #define ELIBEXEC 126 /* Cannot exec a shared library directly */ | ||
| 108 | #define ERESTART 127 /* Interrupted system call should be restarted */ | ||
| 109 | #define ESTRPIPE 128 /* Streams pipe error */ | ||
| 110 | |||
| 111 | #define ENOMEDIUM 129 /* No medium found */ | ||
| 112 | #define EMEDIUMTYPE 130 /* Wrong medium type */ | ||
| 113 | #define ECANCELED 131 /* Operation Cancelled */ | ||
| 114 | #define ENOKEY 132 /* Required key not available */ | ||
| 115 | #define EKEYEXPIRED 133 /* Key has expired */ | ||
| 116 | #define EKEYREVOKED 134 /* Key has been revoked */ | ||
| 117 | #define EKEYREJECTED 135 /* Key was rejected by service */ | ||
| 118 | |||
| 119 | /* for robust mutexes */ | ||
| 120 | #define EOWNERDEAD 136 /* Owner died */ | ||
| 121 | #define ENOTRECOVERABLE 137 /* State not recoverable */ | ||
| 122 | |||
| 123 | #define ERFKILL 138 /* Operation not possible due to RF-kill */ | ||
| 124 | |||
| 125 | #define EHWPOISON 139 /* Memory page has hardware error */ | ||
| 126 | |||
| 127 | #endif | ||
diff --git a/arch/alpha/include/uapi/asm/fcntl.h b/arch/alpha/include/uapi/asm/fcntl.h new file mode 100644 index 000000000000..6d9e805f18a7 --- /dev/null +++ b/arch/alpha/include/uapi/asm/fcntl.h | |||
| @@ -0,0 +1,56 @@ | |||
| 1 | #ifndef _ALPHA_FCNTL_H | ||
| 2 | #define _ALPHA_FCNTL_H | ||
| 3 | |||
| 4 | #define O_CREAT 01000 /* not fcntl */ | ||
| 5 | #define O_TRUNC 02000 /* not fcntl */ | ||
| 6 | #define O_EXCL 04000 /* not fcntl */ | ||
| 7 | #define O_NOCTTY 010000 /* not fcntl */ | ||
| 8 | |||
| 9 | #define O_NONBLOCK 00004 | ||
| 10 | #define O_APPEND 00010 | ||
| 11 | #define O_DSYNC 040000 /* used to be O_SYNC, see below */ | ||
| 12 | #define O_DIRECTORY 0100000 /* must be a directory */ | ||
| 13 | #define O_NOFOLLOW 0200000 /* don't follow links */ | ||
| 14 | #define O_LARGEFILE 0400000 /* will be set by the kernel on every open */ | ||
| 15 | #define O_DIRECT 02000000 /* direct disk access - should check with OSF/1 */ | ||
| 16 | #define O_NOATIME 04000000 | ||
| 17 | #define O_CLOEXEC 010000000 /* set close_on_exec */ | ||
| 18 | /* | ||
| 19 | * Before Linux 2.6.33 only O_DSYNC semantics were implemented, but using | ||
| 20 | * the O_SYNC flag. We continue to use the existing numerical value | ||
| 21 | * for O_DSYNC semantics now, but using the correct symbolic name for it. | ||
| 22 | * This new value is used to request true Posix O_SYNC semantics. It is | ||
| 23 | * defined in this strange way to make sure applications compiled against | ||
| 24 | * new headers get at least O_DSYNC semantics on older kernels. | ||
| 25 | * | ||
| 26 | * This has the nice side-effect that we can simply test for O_DSYNC | ||
| 27 | * wherever we do not care if O_DSYNC or O_SYNC is used. | ||
| 28 | * | ||
| 29 | * Note: __O_SYNC must never be used directly. | ||
| 30 | */ | ||
| 31 | #define __O_SYNC 020000000 | ||
| 32 | #define O_SYNC (__O_SYNC|O_DSYNC) | ||
| 33 | |||
| 34 | #define O_PATH 040000000 | ||
| 35 | |||
| 36 | #define F_GETLK 7 | ||
| 37 | #define F_SETLK 8 | ||
| 38 | #define F_SETLKW 9 | ||
| 39 | |||
| 40 | #define F_SETOWN 5 /* for sockets. */ | ||
| 41 | #define F_GETOWN 6 /* for sockets. */ | ||
| 42 | #define F_SETSIG 10 /* for sockets. */ | ||
| 43 | #define F_GETSIG 11 /* for sockets. */ | ||
| 44 | |||
| 45 | /* for posix fcntl() and lockf() */ | ||
| 46 | #define F_RDLCK 1 | ||
| 47 | #define F_WRLCK 2 | ||
| 48 | #define F_UNLCK 8 | ||
| 49 | |||
| 50 | /* for old implementation of bsd flock () */ | ||
| 51 | #define F_EXLCK 16 /* or 3 */ | ||
| 52 | #define F_SHLCK 32 /* or 4 */ | ||
| 53 | |||
| 54 | #include <asm-generic/fcntl.h> | ||
| 55 | |||
| 56 | #endif | ||
diff --git a/arch/alpha/include/uapi/asm/fpu.h b/arch/alpha/include/uapi/asm/fpu.h new file mode 100644 index 000000000000..21a053ca2233 --- /dev/null +++ b/arch/alpha/include/uapi/asm/fpu.h | |||
| @@ -0,0 +1,123 @@ | |||
| 1 | #ifndef _UAPI__ASM_ALPHA_FPU_H | ||
| 2 | #define _UAPI__ASM_ALPHA_FPU_H | ||
| 3 | |||
| 4 | |||
| 5 | /* | ||
| 6 | * Alpha floating-point control register defines: | ||
| 7 | */ | ||
| 8 | #define FPCR_DNOD (1UL<<47) /* denorm INV trap disable */ | ||
| 9 | #define FPCR_DNZ (1UL<<48) /* denorms to zero */ | ||
| 10 | #define FPCR_INVD (1UL<<49) /* invalid op disable (opt.) */ | ||
| 11 | #define FPCR_DZED (1UL<<50) /* division by zero disable (opt.) */ | ||
| 12 | #define FPCR_OVFD (1UL<<51) /* overflow disable (optional) */ | ||
| 13 | #define FPCR_INV (1UL<<52) /* invalid operation */ | ||
| 14 | #define FPCR_DZE (1UL<<53) /* division by zero */ | ||
| 15 | #define FPCR_OVF (1UL<<54) /* overflow */ | ||
| 16 | #define FPCR_UNF (1UL<<55) /* underflow */ | ||
| 17 | #define FPCR_INE (1UL<<56) /* inexact */ | ||
| 18 | #define FPCR_IOV (1UL<<57) /* integer overflow */ | ||
| 19 | #define FPCR_UNDZ (1UL<<60) /* underflow to zero (opt.) */ | ||
| 20 | #define FPCR_UNFD (1UL<<61) /* underflow disable (opt.) */ | ||
| 21 | #define FPCR_INED (1UL<<62) /* inexact disable (opt.) */ | ||
| 22 | #define FPCR_SUM (1UL<<63) /* summary bit */ | ||
| 23 | |||
| 24 | #define FPCR_DYN_SHIFT 58 /* first dynamic rounding mode bit */ | ||
| 25 | #define FPCR_DYN_CHOPPED (0x0UL << FPCR_DYN_SHIFT) /* towards 0 */ | ||
| 26 | #define FPCR_DYN_MINUS (0x1UL << FPCR_DYN_SHIFT) /* towards -INF */ | ||
| 27 | #define FPCR_DYN_NORMAL (0x2UL << FPCR_DYN_SHIFT) /* towards nearest */ | ||
| 28 | #define FPCR_DYN_PLUS (0x3UL << FPCR_DYN_SHIFT) /* towards +INF */ | ||
| 29 | #define FPCR_DYN_MASK (0x3UL << FPCR_DYN_SHIFT) | ||
| 30 | |||
| 31 | #define FPCR_MASK 0xffff800000000000L | ||
| 32 | |||
| 33 | /* | ||
| 34 | * IEEE trap enables are implemented in software. These per-thread | ||
| 35 | * bits are stored in the "ieee_state" field of "struct thread_info". | ||
| 36 | * Thus, the bits are defined so as not to conflict with the | ||
| 37 | * floating-point enable bit (which is architected). On top of that, | ||
| 38 | * we want to make these bits compatible with OSF/1 so | ||
| 39 | * ieee_set_fp_control() etc. can be implemented easily and | ||
| 40 | * compatibly. The corresponding definitions are in | ||
| 41 | * /usr/include/machine/fpu.h under OSF/1. | ||
| 42 | */ | ||
| 43 | #define IEEE_TRAP_ENABLE_INV (1UL<<1) /* invalid op */ | ||
| 44 | #define IEEE_TRAP_ENABLE_DZE (1UL<<2) /* division by zero */ | ||
| 45 | #define IEEE_TRAP_ENABLE_OVF (1UL<<3) /* overflow */ | ||
| 46 | #define IEEE_TRAP_ENABLE_UNF (1UL<<4) /* underflow */ | ||
| 47 | #define IEEE_TRAP_ENABLE_INE (1UL<<5) /* inexact */ | ||
| 48 | #define IEEE_TRAP_ENABLE_DNO (1UL<<6) /* denorm */ | ||
| 49 | #define IEEE_TRAP_ENABLE_MASK (IEEE_TRAP_ENABLE_INV | IEEE_TRAP_ENABLE_DZE |\ | ||
| 50 | IEEE_TRAP_ENABLE_OVF | IEEE_TRAP_ENABLE_UNF |\ | ||
| 51 | IEEE_TRAP_ENABLE_INE | IEEE_TRAP_ENABLE_DNO) | ||
| 52 | |||
| 53 | /* Denorm and Underflow flushing */ | ||
| 54 | #define IEEE_MAP_DMZ (1UL<<12) /* Map denorm inputs to zero */ | ||
| 55 | #define IEEE_MAP_UMZ (1UL<<13) /* Map underflowed outputs to zero */ | ||
| 56 | |||
| 57 | #define IEEE_MAP_MASK (IEEE_MAP_DMZ | IEEE_MAP_UMZ) | ||
| 58 | |||
| 59 | /* status bits coming from fpcr: */ | ||
| 60 | #define IEEE_STATUS_INV (1UL<<17) | ||
| 61 | #define IEEE_STATUS_DZE (1UL<<18) | ||
| 62 | #define IEEE_STATUS_OVF (1UL<<19) | ||
| 63 | #define IEEE_STATUS_UNF (1UL<<20) | ||
| 64 | #define IEEE_STATUS_INE (1UL<<21) | ||
| 65 | #define IEEE_STATUS_DNO (1UL<<22) | ||
| 66 | |||
| 67 | #define IEEE_STATUS_MASK (IEEE_STATUS_INV | IEEE_STATUS_DZE | \ | ||
| 68 | IEEE_STATUS_OVF | IEEE_STATUS_UNF | \ | ||
| 69 | IEEE_STATUS_INE | IEEE_STATUS_DNO) | ||
| 70 | |||
| 71 | #define IEEE_SW_MASK (IEEE_TRAP_ENABLE_MASK | \ | ||
| 72 | IEEE_STATUS_MASK | IEEE_MAP_MASK) | ||
| 73 | |||
| 74 | #define IEEE_CURRENT_RM_SHIFT 32 | ||
| 75 | #define IEEE_CURRENT_RM_MASK (3UL<<IEEE_CURRENT_RM_SHIFT) | ||
| 76 | |||
| 77 | #define IEEE_STATUS_TO_EXCSUM_SHIFT 16 | ||
| 78 | |||
| 79 | #define IEEE_INHERIT (1UL<<63) /* inherit on thread create? */ | ||
| 80 | |||
| 81 | /* | ||
| 82 | * Convert the software IEEE trap enable and status bits into the | ||
| 83 | * hardware fpcr format. | ||
| 84 | * | ||
| 85 | * Digital Unix engineers receive my thanks for not defining the | ||
| 86 | * software bits identical to the hardware bits. The chip designers | ||
| 87 | * receive my thanks for making all the not-implemented fpcr bits | ||
| 88 | * RAZ forcing us to use system calls to read/write this value. | ||
| 89 | */ | ||
| 90 | |||
| 91 | static inline unsigned long | ||
| 92 | ieee_swcr_to_fpcr(unsigned long sw) | ||
| 93 | { | ||
| 94 | unsigned long fp; | ||
| 95 | fp = (sw & IEEE_STATUS_MASK) << 35; | ||
| 96 | fp |= (sw & IEEE_MAP_DMZ) << 36; | ||
| 97 | fp |= (sw & IEEE_STATUS_MASK ? FPCR_SUM : 0); | ||
| 98 | fp |= (~sw & (IEEE_TRAP_ENABLE_INV | ||
| 99 | | IEEE_TRAP_ENABLE_DZE | ||
| 100 | | IEEE_TRAP_ENABLE_OVF)) << 48; | ||
| 101 | fp |= (~sw & (IEEE_TRAP_ENABLE_UNF | IEEE_TRAP_ENABLE_INE)) << 57; | ||
| 102 | fp |= (sw & IEEE_MAP_UMZ ? FPCR_UNDZ | FPCR_UNFD : 0); | ||
| 103 | fp |= (~sw & IEEE_TRAP_ENABLE_DNO) << 41; | ||
| 104 | return fp; | ||
| 105 | } | ||
| 106 | |||
| 107 | static inline unsigned long | ||
| 108 | ieee_fpcr_to_swcr(unsigned long fp) | ||
| 109 | { | ||
| 110 | unsigned long sw; | ||
| 111 | sw = (fp >> 35) & IEEE_STATUS_MASK; | ||
| 112 | sw |= (fp >> 36) & IEEE_MAP_DMZ; | ||
| 113 | sw |= (~fp >> 48) & (IEEE_TRAP_ENABLE_INV | ||
| 114 | | IEEE_TRAP_ENABLE_DZE | ||
| 115 | | IEEE_TRAP_ENABLE_OVF); | ||
| 116 | sw |= (~fp >> 57) & (IEEE_TRAP_ENABLE_UNF | IEEE_TRAP_ENABLE_INE); | ||
| 117 | sw |= (fp >> 47) & IEEE_MAP_UMZ; | ||
| 118 | sw |= (~fp >> 41) & IEEE_TRAP_ENABLE_DNO; | ||
| 119 | return sw; | ||
| 120 | } | ||
| 121 | |||
| 122 | |||
| 123 | #endif /* _UAPI__ASM_ALPHA_FPU_H */ | ||
diff --git a/arch/alpha/include/uapi/asm/gentrap.h b/arch/alpha/include/uapi/asm/gentrap.h new file mode 100644 index 000000000000..ae50cc3192c7 --- /dev/null +++ b/arch/alpha/include/uapi/asm/gentrap.h | |||
| @@ -0,0 +1,37 @@ | |||
| 1 | #ifndef _ASMAXP_GENTRAP_H | ||
| 2 | #define _ASMAXP_GENTRAP_H | ||
| 3 | |||
| 4 | /* | ||
| 5 | * Definitions for gentrap causes. They are generated by user-level | ||
| 6 | * programs and therefore should be compatible with the corresponding | ||
| 7 | * OSF/1 definitions. | ||
| 8 | */ | ||
| 9 | #define GEN_INTOVF -1 /* integer overflow */ | ||
| 10 | #define GEN_INTDIV -2 /* integer division by zero */ | ||
| 11 | #define GEN_FLTOVF -3 /* fp overflow */ | ||
| 12 | #define GEN_FLTDIV -4 /* fp division by zero */ | ||
| 13 | #define GEN_FLTUND -5 /* fp underflow */ | ||
| 14 | #define GEN_FLTINV -6 /* invalid fp operand */ | ||
| 15 | #define GEN_FLTINE -7 /* inexact fp operand */ | ||
| 16 | #define GEN_DECOVF -8 /* decimal overflow (for COBOL??) */ | ||
| 17 | #define GEN_DECDIV -9 /* decimal division by zero */ | ||
| 18 | #define GEN_DECINV -10 /* invalid decimal operand */ | ||
| 19 | #define GEN_ROPRAND -11 /* reserved operand */ | ||
| 20 | #define GEN_ASSERTERR -12 /* assertion error */ | ||
| 21 | #define GEN_NULPTRERR -13 /* null pointer error */ | ||
| 22 | #define GEN_STKOVF -14 /* stack overflow */ | ||
| 23 | #define GEN_STRLENERR -15 /* string length error */ | ||
| 24 | #define GEN_SUBSTRERR -16 /* substring error */ | ||
| 25 | #define GEN_RANGERR -17 /* range error */ | ||
| 26 | #define GEN_SUBRNG -18 | ||
| 27 | #define GEN_SUBRNG1 -19 | ||
| 28 | #define GEN_SUBRNG2 -20 | ||
| 29 | #define GEN_SUBRNG3 -21 /* these report range errors for */ | ||
| 30 | #define GEN_SUBRNG4 -22 /* subscripting (indexing) at levels 0..7 */ | ||
| 31 | #define GEN_SUBRNG5 -23 | ||
| 32 | #define GEN_SUBRNG6 -24 | ||
| 33 | #define GEN_SUBRNG7 -25 | ||
| 34 | |||
| 35 | /* the remaining codes (-26..-1023) are reserved. */ | ||
| 36 | |||
| 37 | #endif /* _ASMAXP_GENTRAP_H */ | ||
diff --git a/arch/alpha/include/uapi/asm/ioctl.h b/arch/alpha/include/uapi/asm/ioctl.h new file mode 100644 index 000000000000..fc63727f4178 --- /dev/null +++ b/arch/alpha/include/uapi/asm/ioctl.h | |||
| @@ -0,0 +1,66 @@ | |||
| 1 | #ifndef _ALPHA_IOCTL_H | ||
| 2 | #define _ALPHA_IOCTL_H | ||
| 3 | |||
| 4 | /* | ||
| 5 | * The original linux ioctl numbering scheme was just a general | ||
| 6 | * "anything goes" setup, where more or less random numbers were | ||
| 7 | * assigned. Sorry, I was clueless when I started out on this. | ||
| 8 | * | ||
| 9 | * On the alpha, we'll try to clean it up a bit, using a more sane | ||
| 10 | * ioctl numbering, and also trying to be compatible with OSF/1 in | ||
| 11 | * the process. I'd like to clean it up for the i386 as well, but | ||
| 12 | * it's so painful recognizing both the new and the old numbers.. | ||
| 13 | */ | ||
| 14 | |||
| 15 | #define _IOC_NRBITS 8 | ||
| 16 | #define _IOC_TYPEBITS 8 | ||
| 17 | #define _IOC_SIZEBITS 13 | ||
| 18 | #define _IOC_DIRBITS 3 | ||
| 19 | |||
| 20 | #define _IOC_NRMASK ((1 << _IOC_NRBITS)-1) | ||
| 21 | #define _IOC_TYPEMASK ((1 << _IOC_TYPEBITS)-1) | ||
| 22 | #define _IOC_SIZEMASK ((1 << _IOC_SIZEBITS)-1) | ||
| 23 | #define _IOC_DIRMASK ((1 << _IOC_DIRBITS)-1) | ||
| 24 | |||
| 25 | #define _IOC_NRSHIFT 0 | ||
| 26 | #define _IOC_TYPESHIFT (_IOC_NRSHIFT+_IOC_NRBITS) | ||
| 27 | #define _IOC_SIZESHIFT (_IOC_TYPESHIFT+_IOC_TYPEBITS) | ||
| 28 | #define _IOC_DIRSHIFT (_IOC_SIZESHIFT+_IOC_SIZEBITS) | ||
| 29 | |||
| 30 | /* | ||
| 31 | * Direction bits _IOC_NONE could be 0, but OSF/1 gives it a bit. | ||
| 32 | * And this turns out useful to catch old ioctl numbers in header | ||
| 33 | * files for us. | ||
| 34 | */ | ||
| 35 | #define _IOC_NONE 1U | ||
| 36 | #define _IOC_READ 2U | ||
| 37 | #define _IOC_WRITE 4U | ||
| 38 | |||
| 39 | #define _IOC(dir,type,nr,size) \ | ||
| 40 | ((unsigned int) \ | ||
| 41 | (((dir) << _IOC_DIRSHIFT) | \ | ||
| 42 | ((type) << _IOC_TYPESHIFT) | \ | ||
| 43 | ((nr) << _IOC_NRSHIFT) | \ | ||
| 44 | ((size) << _IOC_SIZESHIFT))) | ||
| 45 | |||
| 46 | /* used to create numbers */ | ||
| 47 | #define _IO(type,nr) _IOC(_IOC_NONE,(type),(nr),0) | ||
| 48 | #define _IOR(type,nr,size) _IOC(_IOC_READ,(type),(nr),sizeof(size)) | ||
| 49 | #define _IOW(type,nr,size) _IOC(_IOC_WRITE,(type),(nr),sizeof(size)) | ||
| 50 | #define _IOWR(type,nr,size) _IOC(_IOC_READ|_IOC_WRITE,(type),(nr),sizeof(size)) | ||
| 51 | |||
| 52 | /* used to decode them.. */ | ||
| 53 | #define _IOC_DIR(nr) (((nr) >> _IOC_DIRSHIFT) & _IOC_DIRMASK) | ||
| 54 | #define _IOC_TYPE(nr) (((nr) >> _IOC_TYPESHIFT) & _IOC_TYPEMASK) | ||
| 55 | #define _IOC_NR(nr) (((nr) >> _IOC_NRSHIFT) & _IOC_NRMASK) | ||
| 56 | #define _IOC_SIZE(nr) (((nr) >> _IOC_SIZESHIFT) & _IOC_SIZEMASK) | ||
| 57 | |||
| 58 | /* ...and for the drivers/sound files... */ | ||
| 59 | |||
| 60 | #define IOC_IN (_IOC_WRITE << _IOC_DIRSHIFT) | ||
| 61 | #define IOC_OUT (_IOC_READ << _IOC_DIRSHIFT) | ||
| 62 | #define IOC_INOUT ((_IOC_WRITE|_IOC_READ) << _IOC_DIRSHIFT) | ||
| 63 | #define IOCSIZE_MASK (_IOC_SIZEMASK << _IOC_SIZESHIFT) | ||
| 64 | #define IOCSIZE_SHIFT (_IOC_SIZESHIFT) | ||
| 65 | |||
| 66 | #endif /* _ALPHA_IOCTL_H */ | ||
diff --git a/arch/alpha/include/uapi/asm/ioctls.h b/arch/alpha/include/uapi/asm/ioctls.h new file mode 100644 index 000000000000..92c557be49fc --- /dev/null +++ b/arch/alpha/include/uapi/asm/ioctls.h | |||
| @@ -0,0 +1,117 @@ | |||
| 1 | #ifndef _ASM_ALPHA_IOCTLS_H | ||
| 2 | #define _ASM_ALPHA_IOCTLS_H | ||
| 3 | |||
| 4 | #include <asm/ioctl.h> | ||
| 5 | |||
| 6 | #define FIOCLEX _IO('f', 1) | ||
| 7 | #define FIONCLEX _IO('f', 2) | ||
| 8 | #define FIOASYNC _IOW('f', 125, int) | ||
| 9 | #define FIONBIO _IOW('f', 126, int) | ||
| 10 | #define FIONREAD _IOR('f', 127, int) | ||
| 11 | #define TIOCINQ FIONREAD | ||
| 12 | #define FIOQSIZE _IOR('f', 128, loff_t) | ||
| 13 | |||
| 14 | #define TIOCGETP _IOR('t', 8, struct sgttyb) | ||
| 15 | #define TIOCSETP _IOW('t', 9, struct sgttyb) | ||
| 16 | #define TIOCSETN _IOW('t', 10, struct sgttyb) /* TIOCSETP wo flush */ | ||
| 17 | |||
| 18 | #define TIOCSETC _IOW('t', 17, struct tchars) | ||
| 19 | #define TIOCGETC _IOR('t', 18, struct tchars) | ||
| 20 | #define TCGETS _IOR('t', 19, struct termios) | ||
| 21 | #define TCSETS _IOW('t', 20, struct termios) | ||
| 22 | #define TCSETSW _IOW('t', 21, struct termios) | ||
| 23 | #define TCSETSF _IOW('t', 22, struct termios) | ||
| 24 | |||
| 25 | #define TCGETA _IOR('t', 23, struct termio) | ||
| 26 | #define TCSETA _IOW('t', 24, struct termio) | ||
| 27 | #define TCSETAW _IOW('t', 25, struct termio) | ||
| 28 | #define TCSETAF _IOW('t', 28, struct termio) | ||
| 29 | |||
| 30 | #define TCSBRK _IO('t', 29) | ||
| 31 | #define TCXONC _IO('t', 30) | ||
| 32 | #define TCFLSH _IO('t', 31) | ||
| 33 | |||
| 34 | #define TIOCSWINSZ _IOW('t', 103, struct winsize) | ||
| 35 | #define TIOCGWINSZ _IOR('t', 104, struct winsize) | ||
| 36 | #define TIOCSTART _IO('t', 110) /* start output, like ^Q */ | ||
| 37 | #define TIOCSTOP _IO('t', 111) /* stop output, like ^S */ | ||
| 38 | #define TIOCOUTQ _IOR('t', 115, int) /* output queue size */ | ||
| 39 | |||
| 40 | #define TIOCGLTC _IOR('t', 116, struct ltchars) | ||
| 41 | #define TIOCSLTC _IOW('t', 117, struct ltchars) | ||
| 42 | #define TIOCSPGRP _IOW('t', 118, int) | ||
| 43 | #define TIOCGPGRP _IOR('t', 119, int) | ||
| 44 | |||
| 45 | #define TIOCEXCL 0x540C | ||
| 46 | #define TIOCNXCL 0x540D | ||
| 47 | #define TIOCSCTTY 0x540E | ||
| 48 | |||
| 49 | #define TIOCSTI 0x5412 | ||
| 50 | #define TIOCMGET 0x5415 | ||
| 51 | #define TIOCMBIS 0x5416 | ||
| 52 | #define TIOCMBIC 0x5417 | ||
| 53 | #define TIOCMSET 0x5418 | ||
| 54 | # define TIOCM_LE 0x001 | ||
| 55 | # define TIOCM_DTR 0x002 | ||
| 56 | # define TIOCM_RTS 0x004 | ||
| 57 | # define TIOCM_ST 0x008 | ||
| 58 | # define TIOCM_SR 0x010 | ||
| 59 | # define TIOCM_CTS 0x020 | ||
| 60 | # define TIOCM_CAR 0x040 | ||
| 61 | # define TIOCM_RNG 0x080 | ||
| 62 | # define TIOCM_DSR 0x100 | ||
| 63 | # define TIOCM_CD TIOCM_CAR | ||
| 64 | # define TIOCM_RI TIOCM_RNG | ||
| 65 | # define TIOCM_OUT1 0x2000 | ||
| 66 | # define TIOCM_OUT2 0x4000 | ||
| 67 | # define TIOCM_LOOP 0x8000 | ||
| 68 | |||
| 69 | #define TIOCGSOFTCAR 0x5419 | ||
| 70 | #define TIOCSSOFTCAR 0x541A | ||
| 71 | #define TIOCLINUX 0x541C | ||
| 72 | #define TIOCCONS 0x541D | ||
| 73 | #define TIOCGSERIAL 0x541E | ||
| 74 | #define TIOCSSERIAL 0x541F | ||
| 75 | #define TIOCPKT 0x5420 | ||
| 76 | # define TIOCPKT_DATA 0 | ||
| 77 | # define TIOCPKT_FLUSHREAD 1 | ||
| 78 | # define TIOCPKT_FLUSHWRITE 2 | ||
| 79 | # define TIOCPKT_STOP 4 | ||
| 80 | # define TIOCPKT_START 8 | ||
| 81 | # define TIOCPKT_NOSTOP 16 | ||
| 82 | # define TIOCPKT_DOSTOP 32 | ||
| 83 | # define TIOCPKT_IOCTL 64 | ||
| 84 | |||
| 85 | |||
| 86 | #define TIOCNOTTY 0x5422 | ||
| 87 | #define TIOCSETD 0x5423 | ||
| 88 | #define TIOCGETD 0x5424 | ||
| 89 | #define TCSBRKP 0x5425 /* Needed for POSIX tcsendbreak() */ | ||
| 90 | #define TIOCSBRK 0x5427 /* BSD compatibility */ | ||
| 91 | #define TIOCCBRK 0x5428 /* BSD compatibility */ | ||
| 92 | #define TIOCGSID 0x5429 /* Return the session ID of FD */ | ||
| 93 | #define TIOCGPTN _IOR('T',0x30, unsigned int) /* Get Pty Number (of pty-mux device) */ | ||
| 94 | #define TIOCSPTLCK _IOW('T',0x31, int) /* Lock/unlock Pty */ | ||
| 95 | #define TIOCGDEV _IOR('T',0x32, unsigned int) /* Get primary device node of /dev/console */ | ||
| 96 | #define TIOCSIG _IOW('T',0x36, int) /* Generate signal on Pty slave */ | ||
| 97 | #define TIOCVHANGUP 0x5437 | ||
| 98 | #define TIOCGPKT _IOR('T', 0x38, int) /* Get packet mode state */ | ||
| 99 | #define TIOCGPTLCK _IOR('T', 0x39, int) /* Get Pty lock state */ | ||
| 100 | #define TIOCGEXCL _IOR('T', 0x40, int) /* Get exclusive mode state */ | ||
| 101 | |||
| 102 | #define TIOCSERCONFIG 0x5453 | ||
| 103 | #define TIOCSERGWILD 0x5454 | ||
| 104 | #define TIOCSERSWILD 0x5455 | ||
| 105 | #define TIOCGLCKTRMIOS 0x5456 | ||
| 106 | #define TIOCSLCKTRMIOS 0x5457 | ||
| 107 | #define TIOCSERGSTRUCT 0x5458 /* For debugging only */ | ||
| 108 | #define TIOCSERGETLSR 0x5459 /* Get line status register */ | ||
| 109 | /* ioctl (fd, TIOCSERGETLSR, &result) where result may be as below */ | ||
| 110 | # define TIOCSER_TEMT 0x01 /* Transmitter physically empty */ | ||
| 111 | #define TIOCSERGETMULTI 0x545A /* Get multiport config */ | ||
| 112 | #define TIOCSERSETMULTI 0x545B /* Set multiport config */ | ||
| 113 | |||
| 114 | #define TIOCMIWAIT 0x545C /* wait for a change on serial input line(s) */ | ||
| 115 | #define TIOCGICOUNT 0x545D /* read serial port inline interrupt counts */ | ||
| 116 | |||
| 117 | #endif /* _ASM_ALPHA_IOCTLS_H */ | ||
diff --git a/arch/alpha/include/uapi/asm/ipcbuf.h b/arch/alpha/include/uapi/asm/ipcbuf.h new file mode 100644 index 000000000000..84c7e51cb6d0 --- /dev/null +++ b/arch/alpha/include/uapi/asm/ipcbuf.h | |||
| @@ -0,0 +1 @@ | |||
| #include <asm-generic/ipcbuf.h> | |||
diff --git a/arch/alpha/include/uapi/asm/kvm_para.h b/arch/alpha/include/uapi/asm/kvm_para.h new file mode 100644 index 000000000000..14fab8f0b957 --- /dev/null +++ b/arch/alpha/include/uapi/asm/kvm_para.h | |||
| @@ -0,0 +1 @@ | |||
| #include <asm-generic/kvm_para.h> | |||
diff --git a/arch/alpha/include/uapi/asm/mman.h b/arch/alpha/include/uapi/asm/mman.h new file mode 100644 index 000000000000..0086b472bc2b --- /dev/null +++ b/arch/alpha/include/uapi/asm/mman.h | |||
| @@ -0,0 +1,77 @@ | |||
| 1 | #ifndef __ALPHA_MMAN_H__ | ||
| 2 | #define __ALPHA_MMAN_H__ | ||
| 3 | |||
| 4 | #define PROT_READ 0x1 /* page can be read */ | ||
| 5 | #define PROT_WRITE 0x2 /* page can be written */ | ||
| 6 | #define PROT_EXEC 0x4 /* page can be executed */ | ||
| 7 | #define PROT_SEM 0x8 /* page may be used for atomic ops */ | ||
| 8 | #define PROT_NONE 0x0 /* page can not be accessed */ | ||
| 9 | #define PROT_GROWSDOWN 0x01000000 /* mprotect flag: extend change to start of growsdown vma */ | ||
| 10 | #define PROT_GROWSUP 0x02000000 /* mprotect flag: extend change to end of growsup vma */ | ||
| 11 | |||
| 12 | #define MAP_SHARED 0x01 /* Share changes */ | ||
| 13 | #define MAP_PRIVATE 0x02 /* Changes are private */ | ||
| 14 | #define MAP_TYPE 0x0f /* Mask for type of mapping (OSF/1 is _wrong_) */ | ||
| 15 | #define MAP_FIXED 0x100 /* Interpret addr exactly */ | ||
| 16 | #define MAP_ANONYMOUS 0x10 /* don't use a file */ | ||
| 17 | |||
| 18 | /* not used by linux, but here to make sure we don't clash with OSF/1 defines */ | ||
| 19 | #define _MAP_HASSEMAPHORE 0x0200 | ||
| 20 | #define _MAP_INHERIT 0x0400 | ||
| 21 | #define _MAP_UNALIGNED 0x0800 | ||
| 22 | |||
| 23 | /* These are linux-specific */ | ||
| 24 | #define MAP_GROWSDOWN 0x01000 /* stack-like segment */ | ||
| 25 | #define MAP_DENYWRITE 0x02000 /* ETXTBSY */ | ||
| 26 | #define MAP_EXECUTABLE 0x04000 /* mark it as an executable */ | ||
| 27 | #define MAP_LOCKED 0x08000 /* lock the mapping */ | ||
| 28 | #define MAP_NORESERVE 0x10000 /* don't check for reservations */ | ||
| 29 | #define MAP_POPULATE 0x20000 /* populate (prefault) pagetables */ | ||
| 30 | #define MAP_NONBLOCK 0x40000 /* do not block on IO */ | ||
| 31 | #define MAP_STACK 0x80000 /* give out an address that is best suited for process/thread stacks */ | ||
| 32 | #define MAP_HUGETLB 0x100000 /* create a huge page mapping */ | ||
| 33 | |||
| 34 | #define MS_ASYNC 1 /* sync memory asynchronously */ | ||
| 35 | #define MS_SYNC 2 /* synchronous memory sync */ | ||
| 36 | #define MS_INVALIDATE 4 /* invalidate the caches */ | ||
| 37 | |||
| 38 | #define MCL_CURRENT 8192 /* lock all currently mapped pages */ | ||
| 39 | #define MCL_FUTURE 16384 /* lock all additions to address space */ | ||
| 40 | |||
| 41 | #define MADV_NORMAL 0 /* no further special treatment */ | ||
| 42 | #define MADV_RANDOM 1 /* expect random page references */ | ||
| 43 | #define MADV_SEQUENTIAL 2 /* expect sequential page references */ | ||
| 44 | #define MADV_WILLNEED 3 /* will need these pages */ | ||
| 45 | #define MADV_SPACEAVAIL 5 /* ensure resources are available */ | ||
| 46 | #define MADV_DONTNEED 6 /* don't need these pages */ | ||
| 47 | |||
| 48 | /* common/generic parameters */ | ||
| 49 | #define MADV_REMOVE 9 /* remove these pages & resources */ | ||
| 50 | #define MADV_DONTFORK 10 /* don't inherit across fork */ | ||
| 51 | #define MADV_DOFORK 11 /* do inherit across fork */ | ||
| 52 | |||
| 53 | #define MADV_MERGEABLE 12 /* KSM may merge identical pages */ | ||
| 54 | #define MADV_UNMERGEABLE 13 /* KSM may not merge identical pages */ | ||
| 55 | |||
| 56 | #define MADV_HUGEPAGE 14 /* Worth backing with hugepages */ | ||
| 57 | #define MADV_NOHUGEPAGE 15 /* Not worth backing with hugepages */ | ||
| 58 | |||
| 59 | #define MADV_DONTDUMP 16 /* Explicity exclude from the core dump, | ||
| 60 | overrides the coredump filter bits */ | ||
| 61 | #define MADV_DODUMP 17 /* Clear the MADV_NODUMP flag */ | ||
| 62 | |||
| 63 | /* compatibility flags */ | ||
| 64 | #define MAP_FILE 0 | ||
| 65 | |||
| 66 | /* | ||
| 67 | * When MAP_HUGETLB is set bits [26:31] encode the log2 of the huge page size. | ||
| 68 | * This gives us 6 bits, which is enough until someone invents 128 bit address | ||
| 69 | * spaces. | ||
| 70 | * | ||
| 71 | * Assume these are all power of twos. | ||
| 72 | * When 0 use the default page size. | ||
| 73 | */ | ||
| 74 | #define MAP_HUGE_SHIFT 26 | ||
| 75 | #define MAP_HUGE_MASK 0x3f | ||
| 76 | |||
| 77 | #endif /* __ALPHA_MMAN_H__ */ | ||
diff --git a/arch/alpha/include/uapi/asm/msgbuf.h b/arch/alpha/include/uapi/asm/msgbuf.h new file mode 100644 index 000000000000..98496501a2bb --- /dev/null +++ b/arch/alpha/include/uapi/asm/msgbuf.h | |||
| @@ -0,0 +1,27 @@ | |||
| 1 | #ifndef _ALPHA_MSGBUF_H | ||
| 2 | #define _ALPHA_MSGBUF_H | ||
| 3 | |||
| 4 | /* | ||
| 5 | * The msqid64_ds structure for alpha architecture. | ||
| 6 | * Note extra padding because this structure is passed back and forth | ||
| 7 | * between kernel and user space. | ||
| 8 | * | ||
| 9 | * Pad space is left for: | ||
| 10 | * - 2 miscellaneous 64-bit values | ||
| 11 | */ | ||
| 12 | |||
| 13 | struct msqid64_ds { | ||
| 14 | struct ipc64_perm msg_perm; | ||
| 15 | __kernel_time_t msg_stime; /* last msgsnd time */ | ||
| 16 | __kernel_time_t msg_rtime; /* last msgrcv time */ | ||
| 17 | __kernel_time_t msg_ctime; /* last change time */ | ||
| 18 | unsigned long msg_cbytes; /* current number of bytes on queue */ | ||
| 19 | unsigned long msg_qnum; /* number of messages in queue */ | ||
| 20 | unsigned long msg_qbytes; /* max number of bytes on queue */ | ||
| 21 | __kernel_pid_t msg_lspid; /* pid of last msgsnd */ | ||
| 22 | __kernel_pid_t msg_lrpid; /* last receive pid */ | ||
| 23 | unsigned long __unused1; | ||
| 24 | unsigned long __unused2; | ||
| 25 | }; | ||
| 26 | |||
| 27 | #endif /* _ALPHA_MSGBUF_H */ | ||
diff --git a/arch/alpha/include/uapi/asm/pal.h b/arch/alpha/include/uapi/asm/pal.h new file mode 100644 index 000000000000..3c0ce08e5f59 --- /dev/null +++ b/arch/alpha/include/uapi/asm/pal.h | |||
| @@ -0,0 +1,52 @@ | |||
| 1 | #ifndef _UAPI__ALPHA_PAL_H | ||
| 2 | #define _UAPI__ALPHA_PAL_H | ||
| 3 | |||
| 4 | /* | ||
| 5 | * Common PAL-code | ||
| 6 | */ | ||
| 7 | #define PAL_halt 0 | ||
| 8 | #define PAL_cflush 1 | ||
| 9 | #define PAL_draina 2 | ||
| 10 | #define PAL_bpt 128 | ||
| 11 | #define PAL_bugchk 129 | ||
| 12 | #define PAL_chmk 131 | ||
| 13 | #define PAL_callsys 131 | ||
| 14 | #define PAL_imb 134 | ||
| 15 | #define PAL_rduniq 158 | ||
| 16 | #define PAL_wruniq 159 | ||
| 17 | #define PAL_gentrap 170 | ||
| 18 | #define PAL_nphalt 190 | ||
| 19 | |||
| 20 | /* | ||
| 21 | * VMS specific PAL-code | ||
| 22 | */ | ||
| 23 | #define PAL_swppal 10 | ||
| 24 | #define PAL_mfpr_vptb 41 | ||
| 25 | |||
| 26 | /* | ||
| 27 | * OSF specific PAL-code | ||
| 28 | */ | ||
| 29 | #define PAL_cserve 9 | ||
| 30 | #define PAL_wripir 13 | ||
| 31 | #define PAL_rdmces 16 | ||
| 32 | #define PAL_wrmces 17 | ||
| 33 | #define PAL_wrfen 43 | ||
| 34 | #define PAL_wrvptptr 45 | ||
| 35 | #define PAL_jtopal 46 | ||
| 36 | #define PAL_swpctx 48 | ||
| 37 | #define PAL_wrval 49 | ||
| 38 | #define PAL_rdval 50 | ||
| 39 | #define PAL_tbi 51 | ||
| 40 | #define PAL_wrent 52 | ||
| 41 | #define PAL_swpipl 53 | ||
| 42 | #define PAL_rdps 54 | ||
| 43 | #define PAL_wrkgp 55 | ||
| 44 | #define PAL_wrusp 56 | ||
| 45 | #define PAL_wrperfmon 57 | ||
| 46 | #define PAL_rdusp 58 | ||
| 47 | #define PAL_whami 60 | ||
| 48 | #define PAL_retsys 61 | ||
| 49 | #define PAL_rti 63 | ||
| 50 | |||
| 51 | |||
| 52 | #endif /* _UAPI__ALPHA_PAL_H */ | ||
diff --git a/arch/alpha/include/uapi/asm/param.h b/arch/alpha/include/uapi/asm/param.h new file mode 100644 index 000000000000..29daed819ebd --- /dev/null +++ b/arch/alpha/include/uapi/asm/param.h | |||
| @@ -0,0 +1,21 @@ | |||
| 1 | #ifndef _UAPI_ASM_ALPHA_PARAM_H | ||
| 2 | #define _UAPI_ASM_ALPHA_PARAM_H | ||
| 3 | |||
| 4 | /* ??? Gross. I don't want to parameterize this, and supposedly the | ||
| 5 | hardware ignores reprogramming. We also need userland buy-in to the | ||
| 6 | change in HZ, since this is visible in the wait4 resources etc. */ | ||
| 7 | |||
| 8 | #ifndef __KERNEL__ | ||
| 9 | #define HZ 1024 | ||
| 10 | #endif | ||
| 11 | |||
| 12 | #define EXEC_PAGESIZE 8192 | ||
| 13 | |||
| 14 | #ifndef NOGROUP | ||
| 15 | #define NOGROUP (-1) | ||
| 16 | #endif | ||
| 17 | |||
| 18 | #define MAXHOSTNAMELEN 64 /* max length of hostname */ | ||
| 19 | |||
| 20 | |||
| 21 | #endif /* _UAPI_ASM_ALPHA_PARAM_H */ | ||
diff --git a/arch/alpha/include/uapi/asm/poll.h b/arch/alpha/include/uapi/asm/poll.h new file mode 100644 index 000000000000..c98509d3149e --- /dev/null +++ b/arch/alpha/include/uapi/asm/poll.h | |||
| @@ -0,0 +1 @@ | |||
| #include <asm-generic/poll.h> | |||
diff --git a/arch/alpha/include/uapi/asm/posix_types.h b/arch/alpha/include/uapi/asm/posix_types.h new file mode 100644 index 000000000000..5a8a48320efe --- /dev/null +++ b/arch/alpha/include/uapi/asm/posix_types.h | |||
| @@ -0,0 +1,17 @@ | |||
| 1 | #ifndef _ALPHA_POSIX_TYPES_H | ||
| 2 | #define _ALPHA_POSIX_TYPES_H | ||
| 3 | |||
| 4 | /* | ||
| 5 | * This file is generally used by user-level software, so you need to | ||
| 6 | * be a little careful about namespace pollution etc. Also, we cannot | ||
| 7 | * assume GCC is being used. | ||
| 8 | */ | ||
| 9 | |||
| 10 | typedef unsigned int __kernel_ino_t; | ||
| 11 | #define __kernel_ino_t __kernel_ino_t | ||
| 12 | |||
| 13 | typedef unsigned long __kernel_sigset_t; /* at least 32 bits */ | ||
| 14 | |||
| 15 | #include <asm-generic/posix_types.h> | ||
| 16 | |||
| 17 | #endif /* _ALPHA_POSIX_TYPES_H */ | ||
diff --git a/arch/alpha/include/uapi/asm/ptrace.h b/arch/alpha/include/uapi/asm/ptrace.h new file mode 100644 index 000000000000..5ce83fa9a05b --- /dev/null +++ b/arch/alpha/include/uapi/asm/ptrace.h | |||
| @@ -0,0 +1,70 @@ | |||
| 1 | #ifndef _UAPI_ASMAXP_PTRACE_H | ||
| 2 | #define _UAPI_ASMAXP_PTRACE_H | ||
| 3 | |||
| 4 | |||
| 5 | /* | ||
| 6 | * This struct defines the way the registers are stored on the | ||
| 7 | * kernel stack during a system call or other kernel entry | ||
| 8 | * | ||
| 9 | * NOTE! I want to minimize the overhead of system calls, so this | ||
| 10 | * struct has as little information as possible. I does not have | ||
| 11 | * | ||
| 12 | * - floating point regs: the kernel doesn't change those | ||
| 13 | * - r9-15: saved by the C compiler | ||
| 14 | * | ||
| 15 | * This makes "fork()" and "exec()" a bit more complex, but should | ||
| 16 | * give us low system call latency. | ||
| 17 | */ | ||
| 18 | |||
| 19 | struct pt_regs { | ||
| 20 | unsigned long r0; | ||
| 21 | unsigned long r1; | ||
| 22 | unsigned long r2; | ||
| 23 | unsigned long r3; | ||
| 24 | unsigned long r4; | ||
| 25 | unsigned long r5; | ||
| 26 | unsigned long r6; | ||
| 27 | unsigned long r7; | ||
| 28 | unsigned long r8; | ||
| 29 | unsigned long r19; | ||
| 30 | unsigned long r20; | ||
| 31 | unsigned long r21; | ||
| 32 | unsigned long r22; | ||
| 33 | unsigned long r23; | ||
| 34 | unsigned long r24; | ||
| 35 | unsigned long r25; | ||
| 36 | unsigned long r26; | ||
| 37 | unsigned long r27; | ||
| 38 | unsigned long r28; | ||
| 39 | unsigned long hae; | ||
| 40 | /* JRP - These are the values provided to a0-a2 by PALcode */ | ||
| 41 | unsigned long trap_a0; | ||
| 42 | unsigned long trap_a1; | ||
| 43 | unsigned long trap_a2; | ||
| 44 | /* These are saved by PAL-code: */ | ||
| 45 | unsigned long ps; | ||
| 46 | unsigned long pc; | ||
| 47 | unsigned long gp; | ||
| 48 | unsigned long r16; | ||
| 49 | unsigned long r17; | ||
| 50 | unsigned long r18; | ||
| 51 | }; | ||
| 52 | |||
| 53 | /* | ||
| 54 | * This is the extended stack used by signal handlers and the context | ||
| 55 | * switcher: it's pushed after the normal "struct pt_regs". | ||
| 56 | */ | ||
| 57 | struct switch_stack { | ||
| 58 | unsigned long r9; | ||
| 59 | unsigned long r10; | ||
| 60 | unsigned long r11; | ||
| 61 | unsigned long r12; | ||
| 62 | unsigned long r13; | ||
| 63 | unsigned long r14; | ||
| 64 | unsigned long r15; | ||
| 65 | unsigned long r26; | ||
| 66 | unsigned long fp[32]; /* fp[31] is fpcr */ | ||
| 67 | }; | ||
| 68 | |||
| 69 | |||
| 70 | #endif /* _UAPI_ASMAXP_PTRACE_H */ | ||
diff --git a/arch/alpha/include/uapi/asm/reg.h b/arch/alpha/include/uapi/asm/reg.h new file mode 100644 index 000000000000..86ff916fb069 --- /dev/null +++ b/arch/alpha/include/uapi/asm/reg.h | |||
| @@ -0,0 +1,52 @@ | |||
| 1 | #ifndef __reg_h__ | ||
| 2 | #define __reg_h__ | ||
| 3 | |||
| 4 | /* | ||
| 5 | * Exception frame offsets. | ||
| 6 | */ | ||
| 7 | #define EF_V0 0 | ||
| 8 | #define EF_T0 1 | ||
| 9 | #define EF_T1 2 | ||
| 10 | #define EF_T2 3 | ||
| 11 | #define EF_T3 4 | ||
| 12 | #define EF_T4 5 | ||
| 13 | #define EF_T5 6 | ||
| 14 | #define EF_T6 7 | ||
| 15 | #define EF_T7 8 | ||
| 16 | #define EF_S0 9 | ||
| 17 | #define EF_S1 10 | ||
| 18 | #define EF_S2 11 | ||
| 19 | #define EF_S3 12 | ||
| 20 | #define EF_S4 13 | ||
| 21 | #define EF_S5 14 | ||
| 22 | #define EF_S6 15 | ||
| 23 | #define EF_A3 16 | ||
| 24 | #define EF_A4 17 | ||
| 25 | #define EF_A5 18 | ||
| 26 | #define EF_T8 19 | ||
| 27 | #define EF_T9 20 | ||
| 28 | #define EF_T10 21 | ||
| 29 | #define EF_T11 22 | ||
| 30 | #define EF_RA 23 | ||
| 31 | #define EF_T12 24 | ||
| 32 | #define EF_AT 25 | ||
| 33 | #define EF_SP 26 | ||
| 34 | #define EF_PS 27 | ||
| 35 | #define EF_PC 28 | ||
| 36 | #define EF_GP 29 | ||
| 37 | #define EF_A0 30 | ||
| 38 | #define EF_A1 31 | ||
| 39 | #define EF_A2 32 | ||
| 40 | |||
| 41 | #define EF_SIZE (33*8) | ||
| 42 | #define HWEF_SIZE (6*8) /* size of PAL frame (PS-A2) */ | ||
| 43 | |||
| 44 | #define EF_SSIZE (EF_SIZE - HWEF_SIZE) | ||
| 45 | |||
| 46 | /* | ||
| 47 | * Map register number into core file offset. | ||
| 48 | */ | ||
| 49 | #define CORE_REG(reg, ubase) \ | ||
| 50 | (((unsigned long *)((unsigned long)(ubase)))[reg]) | ||
| 51 | |||
| 52 | #endif /* __reg_h__ */ | ||
diff --git a/arch/alpha/include/uapi/asm/regdef.h b/arch/alpha/include/uapi/asm/regdef.h new file mode 100644 index 000000000000..142df9c4f8b8 --- /dev/null +++ b/arch/alpha/include/uapi/asm/regdef.h | |||
| @@ -0,0 +1,44 @@ | |||
| 1 | #ifndef __alpha_regdef_h__ | ||
| 2 | #define __alpha_regdef_h__ | ||
| 3 | |||
| 4 | #define v0 $0 /* function return value */ | ||
| 5 | |||
| 6 | #define t0 $1 /* temporary registers (caller-saved) */ | ||
| 7 | #define t1 $2 | ||
| 8 | #define t2 $3 | ||
| 9 | #define t3 $4 | ||
| 10 | #define t4 $5 | ||
| 11 | #define t5 $6 | ||
| 12 | #define t6 $7 | ||
| 13 | #define t7 $8 | ||
| 14 | |||
| 15 | #define s0 $9 /* saved-registers (callee-saved registers) */ | ||
| 16 | #define s1 $10 | ||
| 17 | #define s2 $11 | ||
| 18 | #define s3 $12 | ||
| 19 | #define s4 $13 | ||
| 20 | #define s5 $14 | ||
| 21 | #define s6 $15 | ||
| 22 | #define fp s6 /* frame-pointer (s6 in frame-less procedures) */ | ||
| 23 | |||
| 24 | #define a0 $16 /* argument registers (caller-saved) */ | ||
| 25 | #define a1 $17 | ||
| 26 | #define a2 $18 | ||
| 27 | #define a3 $19 | ||
| 28 | #define a4 $20 | ||
| 29 | #define a5 $21 | ||
| 30 | |||
| 31 | #define t8 $22 /* more temps (caller-saved) */ | ||
| 32 | #define t9 $23 | ||
| 33 | #define t10 $24 | ||
| 34 | #define t11 $25 | ||
| 35 | #define ra $26 /* return address register */ | ||
| 36 | #define t12 $27 | ||
| 37 | |||
| 38 | #define pv t12 /* procedure-variable register */ | ||
| 39 | #define AT $at /* assembler temporary */ | ||
| 40 | #define gp $29 /* global pointer */ | ||
| 41 | #define sp $30 /* stack pointer */ | ||
| 42 | #define zero $31 /* reads as zero, writes are noops */ | ||
| 43 | |||
| 44 | #endif /* __alpha_regdef_h__ */ | ||
diff --git a/arch/alpha/include/uapi/asm/resource.h b/arch/alpha/include/uapi/asm/resource.h new file mode 100644 index 000000000000..c10874ff5973 --- /dev/null +++ b/arch/alpha/include/uapi/asm/resource.h | |||
| @@ -0,0 +1,22 @@ | |||
| 1 | #ifndef _ALPHA_RESOURCE_H | ||
| 2 | #define _ALPHA_RESOURCE_H | ||
| 3 | |||
| 4 | /* | ||
| 5 | * Alpha/Linux-specific ordering of these four resource limit IDs, | ||
| 6 | * the rest comes from the generic header: | ||
| 7 | */ | ||
| 8 | #define RLIMIT_NOFILE 6 /* max number of open files */ | ||
| 9 | #define RLIMIT_AS 7 /* address space limit */ | ||
| 10 | #define RLIMIT_NPROC 8 /* max number of processes */ | ||
| 11 | #define RLIMIT_MEMLOCK 9 /* max locked-in-memory address space */ | ||
| 12 | |||
| 13 | /* | ||
| 14 | * SuS says limits have to be unsigned. Fine, it's unsigned, but | ||
| 15 | * we retain the old value for compatibility, especially with DU. | ||
| 16 | * When you run into the 2^63 barrier, you call me. | ||
| 17 | */ | ||
| 18 | #define RLIM_INFINITY 0x7ffffffffffffffful | ||
| 19 | |||
| 20 | #include <asm-generic/resource.h> | ||
| 21 | |||
| 22 | #endif /* _ALPHA_RESOURCE_H */ | ||
diff --git a/arch/alpha/include/uapi/asm/sembuf.h b/arch/alpha/include/uapi/asm/sembuf.h new file mode 100644 index 000000000000..7b38b1534784 --- /dev/null +++ b/arch/alpha/include/uapi/asm/sembuf.h | |||
| @@ -0,0 +1,22 @@ | |||
| 1 | #ifndef _ALPHA_SEMBUF_H | ||
| 2 | #define _ALPHA_SEMBUF_H | ||
| 3 | |||
| 4 | /* | ||
| 5 | * The semid64_ds structure for alpha architecture. | ||
| 6 | * Note extra padding because this structure is passed back and forth | ||
| 7 | * between kernel and user space. | ||
| 8 | * | ||
| 9 | * Pad space is left for: | ||
| 10 | * - 2 miscellaneous 64-bit values | ||
| 11 | */ | ||
| 12 | |||
| 13 | struct semid64_ds { | ||
| 14 | struct ipc64_perm sem_perm; /* permissions .. see ipc.h */ | ||
| 15 | __kernel_time_t sem_otime; /* last semop time */ | ||
| 16 | __kernel_time_t sem_ctime; /* last change time */ | ||
| 17 | unsigned long sem_nsems; /* no. of semaphores in array */ | ||
| 18 | unsigned long __unused1; | ||
| 19 | unsigned long __unused2; | ||
| 20 | }; | ||
| 21 | |||
| 22 | #endif /* _ALPHA_SEMBUF_H */ | ||
diff --git a/arch/alpha/include/uapi/asm/setup.h b/arch/alpha/include/uapi/asm/setup.h new file mode 100644 index 000000000000..b50014b30909 --- /dev/null +++ b/arch/alpha/include/uapi/asm/setup.h | |||
| @@ -0,0 +1,42 @@ | |||
| 1 | #ifndef __ALPHA_SETUP_H | ||
| 2 | #define __ALPHA_SETUP_H | ||
| 3 | |||
| 4 | #define COMMAND_LINE_SIZE 256 | ||
| 5 | |||
| 6 | /* | ||
| 7 | * We leave one page for the initial stack page, and one page for | ||
| 8 | * the initial process structure. Also, the console eats 3 MB for | ||
| 9 | * the initial bootloader (one of which we can reclaim later). | ||
| 10 | */ | ||
| 11 | #define BOOT_PCB 0x20000000 | ||
| 12 | #define BOOT_ADDR 0x20000000 | ||
| 13 | /* Remove when official MILO sources have ELF support: */ | ||
| 14 | #define BOOT_SIZE (16*1024) | ||
| 15 | |||
| 16 | #ifdef CONFIG_ALPHA_LEGACY_START_ADDRESS | ||
| 17 | #define KERNEL_START_PHYS 0x300000 /* Old bootloaders hardcoded this. */ | ||
| 18 | #else | ||
| 19 | #define KERNEL_START_PHYS 0x1000000 /* required: Wildfire/Titan/Marvel */ | ||
| 20 | #endif | ||
| 21 | |||
| 22 | #define KERNEL_START (PAGE_OFFSET+KERNEL_START_PHYS) | ||
| 23 | #define SWAPPER_PGD KERNEL_START | ||
| 24 | #define INIT_STACK (PAGE_OFFSET+KERNEL_START_PHYS+0x02000) | ||
| 25 | #define EMPTY_PGT (PAGE_OFFSET+KERNEL_START_PHYS+0x04000) | ||
| 26 | #define EMPTY_PGE (PAGE_OFFSET+KERNEL_START_PHYS+0x08000) | ||
| 27 | #define ZERO_PGE (PAGE_OFFSET+KERNEL_START_PHYS+0x0A000) | ||
| 28 | |||
| 29 | #define START_ADDR (PAGE_OFFSET+KERNEL_START_PHYS+0x10000) | ||
| 30 | |||
| 31 | /* | ||
| 32 | * This is setup by the secondary bootstrap loader. Because | ||
| 33 | * the zero page is zeroed out as soon as the vm system is | ||
| 34 | * initialized, we need to copy things out into a more permanent | ||
| 35 | * place. | ||
| 36 | */ | ||
| 37 | #define PARAM ZERO_PGE | ||
| 38 | #define COMMAND_LINE ((char*)(PARAM + 0x0000)) | ||
| 39 | #define INITRD_START (*(unsigned long *) (PARAM+0x100)) | ||
| 40 | #define INITRD_SIZE (*(unsigned long *) (PARAM+0x108)) | ||
| 41 | |||
| 42 | #endif | ||
diff --git a/arch/alpha/include/uapi/asm/shmbuf.h b/arch/alpha/include/uapi/asm/shmbuf.h new file mode 100644 index 000000000000..37ee84f05085 --- /dev/null +++ b/arch/alpha/include/uapi/asm/shmbuf.h | |||
| @@ -0,0 +1,38 @@ | |||
| 1 | #ifndef _ALPHA_SHMBUF_H | ||
| 2 | #define _ALPHA_SHMBUF_H | ||
| 3 | |||
| 4 | /* | ||
| 5 | * The shmid64_ds structure for alpha architecture. | ||
| 6 | * Note extra padding because this structure is passed back and forth | ||
| 7 | * between kernel and user space. | ||
| 8 | * | ||
| 9 | * Pad space is left for: | ||
| 10 | * - 2 miscellaneous 64-bit values | ||
| 11 | */ | ||
| 12 | |||
| 13 | struct shmid64_ds { | ||
| 14 | struct ipc64_perm shm_perm; /* operation perms */ | ||
| 15 | size_t shm_segsz; /* size of segment (bytes) */ | ||
| 16 | __kernel_time_t shm_atime; /* last attach time */ | ||
| 17 | __kernel_time_t shm_dtime; /* last detach time */ | ||
| 18 | __kernel_time_t shm_ctime; /* last change time */ | ||
| 19 | __kernel_pid_t shm_cpid; /* pid of creator */ | ||
| 20 | __kernel_pid_t shm_lpid; /* pid of last operator */ | ||
| 21 | unsigned long shm_nattch; /* no. of current attaches */ | ||
| 22 | unsigned long __unused1; | ||
| 23 | unsigned long __unused2; | ||
| 24 | }; | ||
| 25 | |||
| 26 | struct shminfo64 { | ||
| 27 | unsigned long shmmax; | ||
| 28 | unsigned long shmmin; | ||
| 29 | unsigned long shmmni; | ||
| 30 | unsigned long shmseg; | ||
| 31 | unsigned long shmall; | ||
| 32 | unsigned long __unused1; | ||
| 33 | unsigned long __unused2; | ||
| 34 | unsigned long __unused3; | ||
| 35 | unsigned long __unused4; | ||
| 36 | }; | ||
| 37 | |||
| 38 | #endif /* _ALPHA_SHMBUF_H */ | ||
diff --git a/arch/alpha/include/uapi/asm/sigcontext.h b/arch/alpha/include/uapi/asm/sigcontext.h new file mode 100644 index 000000000000..323cdb026198 --- /dev/null +++ b/arch/alpha/include/uapi/asm/sigcontext.h | |||
| @@ -0,0 +1,34 @@ | |||
| 1 | #ifndef _ASMAXP_SIGCONTEXT_H | ||
| 2 | #define _ASMAXP_SIGCONTEXT_H | ||
| 3 | |||
| 4 | struct sigcontext { | ||
| 5 | /* | ||
| 6 | * What should we have here? I'd probably better use the same | ||
| 7 | * stack layout as OSF/1, just in case we ever want to try | ||
| 8 | * running their binaries.. | ||
| 9 | * | ||
| 10 | * This is the basic layout, but I don't know if we'll ever | ||
| 11 | * actually fill in all the values.. | ||
| 12 | */ | ||
| 13 | long sc_onstack; | ||
| 14 | long sc_mask; | ||
| 15 | long sc_pc; | ||
| 16 | long sc_ps; | ||
| 17 | long sc_regs[32]; | ||
| 18 | long sc_ownedfp; | ||
| 19 | long sc_fpregs[32]; | ||
| 20 | unsigned long sc_fpcr; | ||
| 21 | unsigned long sc_fp_control; | ||
| 22 | unsigned long sc_reserved1, sc_reserved2; | ||
| 23 | unsigned long sc_ssize; | ||
| 24 | char * sc_sbase; | ||
| 25 | unsigned long sc_traparg_a0; | ||
| 26 | unsigned long sc_traparg_a1; | ||
| 27 | unsigned long sc_traparg_a2; | ||
| 28 | unsigned long sc_fp_trap_pc; | ||
| 29 | unsigned long sc_fp_trigger_sum; | ||
| 30 | unsigned long sc_fp_trigger_inst; | ||
| 31 | }; | ||
| 32 | |||
| 33 | |||
| 34 | #endif | ||
diff --git a/arch/alpha/include/uapi/asm/siginfo.h b/arch/alpha/include/uapi/asm/siginfo.h new file mode 100644 index 000000000000..9822362a8424 --- /dev/null +++ b/arch/alpha/include/uapi/asm/siginfo.h | |||
| @@ -0,0 +1,9 @@ | |||
| 1 | #ifndef _ALPHA_SIGINFO_H | ||
| 2 | #define _ALPHA_SIGINFO_H | ||
| 3 | |||
| 4 | #define __ARCH_SI_PREAMBLE_SIZE (4 * sizeof(int)) | ||
| 5 | #define __ARCH_SI_TRAPNO | ||
| 6 | |||
| 7 | #include <asm-generic/siginfo.h> | ||
| 8 | |||
| 9 | #endif | ||
diff --git a/arch/alpha/include/uapi/asm/signal.h b/arch/alpha/include/uapi/asm/signal.h new file mode 100644 index 000000000000..965bbfa59c65 --- /dev/null +++ b/arch/alpha/include/uapi/asm/signal.h | |||
| @@ -0,0 +1,135 @@ | |||
| 1 | #ifndef _UAPI_ASMAXP_SIGNAL_H | ||
| 2 | #define _UAPI_ASMAXP_SIGNAL_H | ||
| 3 | |||
| 4 | #include <linux/types.h> | ||
| 5 | |||
| 6 | /* Avoid too many header ordering problems. */ | ||
| 7 | struct siginfo; | ||
| 8 | |||
| 9 | #ifndef __KERNEL__ | ||
| 10 | /* Here we must cater to libcs that poke about in kernel headers. */ | ||
| 11 | |||
| 12 | #define NSIG 32 | ||
| 13 | typedef unsigned long sigset_t; | ||
| 14 | |||
| 15 | #endif /* __KERNEL__ */ | ||
| 16 | |||
| 17 | |||
| 18 | /* | ||
| 19 | * Linux/AXP has different signal numbers that Linux/i386: I'm trying | ||
| 20 | * to make it OSF/1 binary compatible, at least for normal binaries. | ||
| 21 | */ | ||
| 22 | #define SIGHUP 1 | ||
| 23 | #define SIGINT 2 | ||
| 24 | #define SIGQUIT 3 | ||
| 25 | #define SIGILL 4 | ||
| 26 | #define SIGTRAP 5 | ||
| 27 | #define SIGABRT 6 | ||
| 28 | #define SIGEMT 7 | ||
| 29 | #define SIGFPE 8 | ||
| 30 | #define SIGKILL 9 | ||
| 31 | #define SIGBUS 10 | ||
| 32 | #define SIGSEGV 11 | ||
| 33 | #define SIGSYS 12 | ||
| 34 | #define SIGPIPE 13 | ||
| 35 | #define SIGALRM 14 | ||
| 36 | #define SIGTERM 15 | ||
| 37 | #define SIGURG 16 | ||
| 38 | #define SIGSTOP 17 | ||
| 39 | #define SIGTSTP 18 | ||
| 40 | #define SIGCONT 19 | ||
| 41 | #define SIGCHLD 20 | ||
| 42 | #define SIGTTIN 21 | ||
| 43 | #define SIGTTOU 22 | ||
| 44 | #define SIGIO 23 | ||
| 45 | #define SIGXCPU 24 | ||
| 46 | #define SIGXFSZ 25 | ||
| 47 | #define SIGVTALRM 26 | ||
| 48 | #define SIGPROF 27 | ||
| 49 | #define SIGWINCH 28 | ||
| 50 | #define SIGINFO 29 | ||
| 51 | #define SIGUSR1 30 | ||
| 52 | #define SIGUSR2 31 | ||
| 53 | |||
| 54 | #define SIGPOLL SIGIO | ||
| 55 | #define SIGPWR SIGINFO | ||
| 56 | #define SIGIOT SIGABRT | ||
| 57 | |||
| 58 | /* These should not be considered constants from userland. */ | ||
| 59 | #define SIGRTMIN 32 | ||
| 60 | #define SIGRTMAX _NSIG | ||
| 61 | |||
| 62 | /* | ||
| 63 | * SA_FLAGS values: | ||
| 64 | * | ||
| 65 | * SA_ONSTACK indicates that a registered stack_t will be used. | ||
| 66 | * SA_RESTART flag to get restarting signals (which were the default long ago) | ||
| 67 | * SA_NOCLDSTOP flag to turn off SIGCHLD when children stop. | ||
| 68 | * SA_RESETHAND clears the handler when the signal is delivered. | ||
| 69 | * SA_NOCLDWAIT flag on SIGCHLD to inhibit zombies. | ||
| 70 | * SA_NODEFER prevents the current signal from being masked in the handler. | ||
| 71 | * | ||
| 72 | * SA_ONESHOT and SA_NOMASK are the historical Linux names for the Single | ||
| 73 | * Unix names RESETHAND and NODEFER respectively. | ||
| 74 | */ | ||
| 75 | |||
| 76 | #define SA_ONSTACK 0x00000001 | ||
| 77 | #define SA_RESTART 0x00000002 | ||
| 78 | #define SA_NOCLDSTOP 0x00000004 | ||
| 79 | #define SA_NODEFER 0x00000008 | ||
| 80 | #define SA_RESETHAND 0x00000010 | ||
| 81 | #define SA_NOCLDWAIT 0x00000020 | ||
| 82 | #define SA_SIGINFO 0x00000040 | ||
| 83 | |||
| 84 | #define SA_ONESHOT SA_RESETHAND | ||
| 85 | #define SA_NOMASK SA_NODEFER | ||
| 86 | |||
| 87 | /* | ||
| 88 | * sigaltstack controls | ||
| 89 | */ | ||
| 90 | #define SS_ONSTACK 1 | ||
| 91 | #define SS_DISABLE 2 | ||
| 92 | |||
| 93 | #define MINSIGSTKSZ 4096 | ||
| 94 | #define SIGSTKSZ 16384 | ||
| 95 | |||
| 96 | #define SIG_BLOCK 1 /* for blocking signals */ | ||
| 97 | #define SIG_UNBLOCK 2 /* for unblocking signals */ | ||
| 98 | #define SIG_SETMASK 3 /* for setting the signal mask */ | ||
| 99 | |||
| 100 | #include <asm-generic/signal-defs.h> | ||
| 101 | |||
| 102 | #ifndef __KERNEL__ | ||
| 103 | /* Here we must cater to libcs that poke about in kernel headers. */ | ||
| 104 | |||
| 105 | struct sigaction { | ||
| 106 | union { | ||
| 107 | __sighandler_t _sa_handler; | ||
| 108 | void (*_sa_sigaction)(int, struct siginfo *, void *); | ||
| 109 | } _u; | ||
| 110 | sigset_t sa_mask; | ||
| 111 | int sa_flags; | ||
| 112 | }; | ||
| 113 | |||
| 114 | #define sa_handler _u._sa_handler | ||
| 115 | #define sa_sigaction _u._sa_sigaction | ||
| 116 | |||
| 117 | #endif /* __KERNEL__ */ | ||
| 118 | |||
| 119 | typedef struct sigaltstack { | ||
| 120 | void __user *ss_sp; | ||
| 121 | int ss_flags; | ||
| 122 | size_t ss_size; | ||
| 123 | } stack_t; | ||
| 124 | |||
| 125 | /* sigstack(2) is deprecated, and will be withdrawn in a future version | ||
| 126 | of the X/Open CAE Specification. Use sigaltstack instead. It is only | ||
| 127 | implemented here for OSF/1 compatibility. */ | ||
| 128 | |||
| 129 | struct sigstack { | ||
| 130 | void __user *ss_sp; | ||
| 131 | int ss_onstack; | ||
| 132 | }; | ||
| 133 | |||
| 134 | |||
| 135 | #endif /* _UAPI_ASMAXP_SIGNAL_H */ | ||
diff --git a/arch/alpha/include/uapi/asm/socket.h b/arch/alpha/include/uapi/asm/socket.h new file mode 100644 index 000000000000..097c1577735a --- /dev/null +++ b/arch/alpha/include/uapi/asm/socket.h | |||
| @@ -0,0 +1,81 @@ | |||
| 1 | #ifndef _UAPI_ASM_SOCKET_H | ||
| 2 | #define _UAPI_ASM_SOCKET_H | ||
| 3 | |||
| 4 | #include <asm/sockios.h> | ||
| 5 | |||
| 6 | /* For setsockopt(2) */ | ||
| 7 | /* | ||
| 8 | * Note: we only bother about making the SOL_SOCKET options | ||
| 9 | * same as OSF/1, as that's all that "normal" programs are | ||
| 10 | * likely to set. We don't necessarily want to be binary | ||
| 11 | * compatible with _everything_. | ||
| 12 | */ | ||
| 13 | #define SOL_SOCKET 0xffff | ||
| 14 | |||
| 15 | #define SO_DEBUG 0x0001 | ||
| 16 | #define SO_REUSEADDR 0x0004 | ||
| 17 | #define SO_KEEPALIVE 0x0008 | ||
| 18 | #define SO_DONTROUTE 0x0010 | ||
| 19 | #define SO_BROADCAST 0x0020 | ||
| 20 | #define SO_LINGER 0x0080 | ||
| 21 | #define SO_OOBINLINE 0x0100 | ||
| 22 | /* To add :#define SO_REUSEPORT 0x0200 */ | ||
| 23 | |||
| 24 | #define SO_TYPE 0x1008 | ||
| 25 | #define SO_ERROR 0x1007 | ||
| 26 | #define SO_SNDBUF 0x1001 | ||
| 27 | #define SO_RCVBUF 0x1002 | ||
| 28 | #define SO_SNDBUFFORCE 0x100a | ||
| 29 | #define SO_RCVBUFFORCE 0x100b | ||
| 30 | #define SO_RCVLOWAT 0x1010 | ||
| 31 | #define SO_SNDLOWAT 0x1011 | ||
| 32 | #define SO_RCVTIMEO 0x1012 | ||
| 33 | #define SO_SNDTIMEO 0x1013 | ||
| 34 | #define SO_ACCEPTCONN 0x1014 | ||
| 35 | #define SO_PROTOCOL 0x1028 | ||
| 36 | #define SO_DOMAIN 0x1029 | ||
| 37 | |||
| 38 | /* linux-specific, might as well be the same as on i386 */ | ||
| 39 | #define SO_NO_CHECK 11 | ||
| 40 | #define SO_PRIORITY 12 | ||
| 41 | #define SO_BSDCOMPAT 14 | ||
| 42 | |||
| 43 | #define SO_PASSCRED 17 | ||
| 44 | #define SO_PEERCRED 18 | ||
| 45 | #define SO_BINDTODEVICE 25 | ||
| 46 | |||
| 47 | /* Socket filtering */ | ||
| 48 | #define SO_ATTACH_FILTER 26 | ||
| 49 | #define SO_DETACH_FILTER 27 | ||
| 50 | #define SO_GET_FILTER SO_ATTACH_FILTER | ||
| 51 | |||
| 52 | #define SO_PEERNAME 28 | ||
| 53 | #define SO_TIMESTAMP 29 | ||
| 54 | #define SCM_TIMESTAMP SO_TIMESTAMP | ||
| 55 | |||
| 56 | #define SO_PEERSEC 30 | ||
| 57 | #define SO_PASSSEC 34 | ||
| 58 | #define SO_TIMESTAMPNS 35 | ||
| 59 | #define SCM_TIMESTAMPNS SO_TIMESTAMPNS | ||
| 60 | |||
| 61 | /* Security levels - as per NRL IPv6 - don't actually do anything */ | ||
| 62 | #define SO_SECURITY_AUTHENTICATION 19 | ||
| 63 | #define SO_SECURITY_ENCRYPTION_TRANSPORT 20 | ||
| 64 | #define SO_SECURITY_ENCRYPTION_NETWORK 21 | ||
| 65 | |||
| 66 | #define SO_MARK 36 | ||
| 67 | |||
| 68 | #define SO_TIMESTAMPING 37 | ||
| 69 | #define SCM_TIMESTAMPING SO_TIMESTAMPING | ||
| 70 | |||
| 71 | #define SO_RXQ_OVFL 40 | ||
| 72 | |||
| 73 | #define SO_WIFI_STATUS 41 | ||
| 74 | #define SCM_WIFI_STATUS SO_WIFI_STATUS | ||
| 75 | #define SO_PEEK_OFF 42 | ||
| 76 | |||
| 77 | /* Instruct lower device to use last 4-bytes of skb data as FCS */ | ||
| 78 | #define SO_NOFCS 43 | ||
| 79 | |||
| 80 | |||
| 81 | #endif /* _UAPI_ASM_SOCKET_H */ | ||
diff --git a/arch/alpha/include/uapi/asm/sockios.h b/arch/alpha/include/uapi/asm/sockios.h new file mode 100644 index 000000000000..7932c7ab4a4d --- /dev/null +++ b/arch/alpha/include/uapi/asm/sockios.h | |||
| @@ -0,0 +1,16 @@ | |||
| 1 | #ifndef _ASM_ALPHA_SOCKIOS_H | ||
| 2 | #define _ASM_ALPHA_SOCKIOS_H | ||
| 3 | |||
| 4 | /* Socket-level I/O control calls. */ | ||
| 5 | |||
| 6 | #define FIOGETOWN _IOR('f', 123, int) | ||
| 7 | #define FIOSETOWN _IOW('f', 124, int) | ||
| 8 | |||
| 9 | #define SIOCATMARK _IOR('s', 7, int) | ||
| 10 | #define SIOCSPGRP _IOW('s', 8, pid_t) | ||
| 11 | #define SIOCGPGRP _IOR('s', 9, pid_t) | ||
| 12 | |||
| 13 | #define SIOCGSTAMP 0x8906 /* Get stamp (timeval) */ | ||
| 14 | #define SIOCGSTAMPNS 0x8907 /* Get stamp (timespec) */ | ||
| 15 | |||
| 16 | #endif /* _ASM_ALPHA_SOCKIOS_H */ | ||
diff --git a/arch/alpha/include/uapi/asm/stat.h b/arch/alpha/include/uapi/asm/stat.h new file mode 100644 index 000000000000..07ad3e6b3f3e --- /dev/null +++ b/arch/alpha/include/uapi/asm/stat.h | |||
| @@ -0,0 +1,48 @@ | |||
| 1 | #ifndef _ALPHA_STAT_H | ||
| 2 | #define _ALPHA_STAT_H | ||
| 3 | |||
| 4 | struct stat { | ||
| 5 | unsigned int st_dev; | ||
| 6 | unsigned int st_ino; | ||
| 7 | unsigned int st_mode; | ||
| 8 | unsigned int st_nlink; | ||
| 9 | unsigned int st_uid; | ||
| 10 | unsigned int st_gid; | ||
| 11 | unsigned int st_rdev; | ||
| 12 | long st_size; | ||
| 13 | unsigned long st_atime; | ||
| 14 | unsigned long st_mtime; | ||
| 15 | unsigned long st_ctime; | ||
| 16 | unsigned int st_blksize; | ||
| 17 | unsigned int st_blocks; | ||
| 18 | unsigned int st_flags; | ||
| 19 | unsigned int st_gen; | ||
| 20 | }; | ||
| 21 | |||
| 22 | /* The stat64 structure increases the size of dev_t, blkcnt_t, adds | ||
| 23 | nanosecond resolution times, and padding for expansion. */ | ||
| 24 | |||
| 25 | struct stat64 { | ||
| 26 | unsigned long st_dev; | ||
| 27 | unsigned long st_ino; | ||
| 28 | unsigned long st_rdev; | ||
| 29 | long st_size; | ||
| 30 | unsigned long st_blocks; | ||
| 31 | |||
| 32 | unsigned int st_mode; | ||
| 33 | unsigned int st_uid; | ||
| 34 | unsigned int st_gid; | ||
| 35 | unsigned int st_blksize; | ||
| 36 | unsigned int st_nlink; | ||
| 37 | unsigned int __pad0; | ||
| 38 | |||
| 39 | unsigned long st_atime; | ||
| 40 | unsigned long st_atime_nsec; | ||
| 41 | unsigned long st_mtime; | ||
| 42 | unsigned long st_mtime_nsec; | ||
| 43 | unsigned long st_ctime; | ||
| 44 | unsigned long st_ctime_nsec; | ||
| 45 | long __unused[3]; | ||
| 46 | }; | ||
| 47 | |||
| 48 | #endif | ||
diff --git a/arch/alpha/include/uapi/asm/statfs.h b/arch/alpha/include/uapi/asm/statfs.h new file mode 100644 index 000000000000..ccd2e186bfd8 --- /dev/null +++ b/arch/alpha/include/uapi/asm/statfs.h | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | #ifndef _ALPHA_STATFS_H | ||
| 2 | #define _ALPHA_STATFS_H | ||
| 3 | |||
| 4 | #include <linux/types.h> | ||
| 5 | |||
| 6 | /* Alpha is the only 64-bit platform with 32-bit statfs. And doesn't | ||
| 7 | even seem to implement statfs64 */ | ||
| 8 | #define __statfs_word __u32 | ||
| 9 | |||
| 10 | #include <asm-generic/statfs.h> | ||
| 11 | |||
| 12 | #endif | ||
diff --git a/arch/alpha/include/uapi/asm/swab.h b/arch/alpha/include/uapi/asm/swab.h new file mode 100644 index 000000000000..4d682b16c7c4 --- /dev/null +++ b/arch/alpha/include/uapi/asm/swab.h | |||
| @@ -0,0 +1,42 @@ | |||
| 1 | #ifndef _ALPHA_SWAB_H | ||
| 2 | #define _ALPHA_SWAB_H | ||
| 3 | |||
| 4 | #include <linux/types.h> | ||
| 5 | #include <linux/compiler.h> | ||
| 6 | #include <asm/compiler.h> | ||
| 7 | |||
| 8 | #ifdef __GNUC__ | ||
| 9 | |||
| 10 | static inline __attribute_const__ __u32 __arch_swab32(__u32 x) | ||
| 11 | { | ||
| 12 | /* | ||
| 13 | * Unfortunately, we can't use the 6 instruction sequence | ||
| 14 | * on ev6 since the latency of the UNPKBW is 3, which is | ||
| 15 | * pretty hard to hide. Just in case a future implementation | ||
| 16 | * has a lower latency, here's the sequence (also by Mike Burrows) | ||
| 17 | * | ||
| 18 | * UNPKBW a0, v0 v0: 00AA00BB00CC00DD | ||
| 19 | * SLL v0, 24, a0 a0: BB00CC00DD000000 | ||
| 20 | * BIS v0, a0, a0 a0: BBAACCBBDDCC00DD | ||
| 21 | * EXTWL a0, 6, v0 v0: 000000000000BBAA | ||
| 22 | * ZAP a0, 0xf3, a0 a0: 00000000DDCC0000 | ||
| 23 | * ADDL a0, v0, v0 v0: ssssssssDDCCBBAA | ||
| 24 | */ | ||
| 25 | |||
| 26 | __u64 t0, t1, t2, t3; | ||
| 27 | |||
| 28 | t0 = __kernel_inslh(x, 7); /* t0 : 0000000000AABBCC */ | ||
| 29 | t1 = __kernel_inswl(x, 3); /* t1 : 000000CCDD000000 */ | ||
| 30 | t1 |= t0; /* t1 : 000000CCDDAABBCC */ | ||
| 31 | t2 = t1 >> 16; /* t2 : 0000000000CCDDAA */ | ||
| 32 | t0 = t1 & 0xFF00FF00; /* t0 : 00000000DD00BB00 */ | ||
| 33 | t3 = t2 & 0x00FF00FF; /* t3 : 0000000000CC00AA */ | ||
| 34 | t1 = t0 + t3; /* t1 : ssssssssDDCCBBAA */ | ||
| 35 | |||
| 36 | return t1; | ||
| 37 | } | ||
| 38 | #define __arch_swab32 __arch_swab32 | ||
| 39 | |||
| 40 | #endif /* __GNUC__ */ | ||
| 41 | |||
| 42 | #endif /* _ALPHA_SWAB_H */ | ||
diff --git a/arch/alpha/include/uapi/asm/sysinfo.h b/arch/alpha/include/uapi/asm/sysinfo.h new file mode 100644 index 000000000000..0b80e79d75e5 --- /dev/null +++ b/arch/alpha/include/uapi/asm/sysinfo.h | |||
| @@ -0,0 +1,31 @@ | |||
| 1 | /* | ||
| 2 | * include/asm-alpha/sysinfo.h | ||
| 3 | */ | ||
| 4 | |||
| 5 | #ifndef __ASM_ALPHA_SYSINFO_H | ||
| 6 | #define __ASM_ALPHA_SYSINFO_H | ||
| 7 | |||
| 8 | /* This defines the subset of the OSF/1 getsysinfo/setsysinfo calls | ||
| 9 | that we support. */ | ||
| 10 | |||
| 11 | #define GSI_UACPROC 8 | ||
| 12 | #define GSI_IEEE_FP_CONTROL 45 | ||
| 13 | #define GSI_IEEE_STATE_AT_SIGNAL 46 | ||
| 14 | #define GSI_PROC_TYPE 60 | ||
| 15 | #define GSI_GET_HWRPB 101 | ||
| 16 | |||
| 17 | #define SSI_NVPAIRS 1 | ||
| 18 | #define SSI_LMF 7 | ||
| 19 | #define SSI_IEEE_FP_CONTROL 14 | ||
| 20 | #define SSI_IEEE_STATE_AT_SIGNAL 15 | ||
| 21 | #define SSI_IEEE_IGNORE_STATE_AT_SIGNAL 16 | ||
| 22 | #define SSI_IEEE_RAISE_EXCEPTION 1001 /* linux specific */ | ||
| 23 | |||
| 24 | #define SSIN_UACPROC 6 | ||
| 25 | |||
| 26 | #define UAC_BITMASK 7 | ||
| 27 | #define UAC_NOPRINT 1 | ||
| 28 | #define UAC_NOFIX 2 | ||
| 29 | #define UAC_SIGBUS 4 | ||
| 30 | |||
| 31 | #endif /* __ASM_ALPHA_SYSINFO_H */ | ||
diff --git a/arch/alpha/include/uapi/asm/termbits.h b/arch/alpha/include/uapi/asm/termbits.h new file mode 100644 index 000000000000..879dd3589921 --- /dev/null +++ b/arch/alpha/include/uapi/asm/termbits.h | |||
| @@ -0,0 +1,201 @@ | |||
| 1 | #ifndef _ALPHA_TERMBITS_H | ||
| 2 | #define _ALPHA_TERMBITS_H | ||
| 3 | |||
| 4 | #include <linux/posix_types.h> | ||
| 5 | |||
| 6 | typedef unsigned char cc_t; | ||
| 7 | typedef unsigned int speed_t; | ||
| 8 | typedef unsigned int tcflag_t; | ||
| 9 | |||
| 10 | /* | ||
| 11 | * termios type and macro definitions. Be careful about adding stuff | ||
| 12 | * to this file since it's used in GNU libc and there are strict rules | ||
| 13 | * concerning namespace pollution. | ||
| 14 | */ | ||
| 15 | |||
| 16 | #define NCCS 19 | ||
| 17 | struct termios { | ||
| 18 | tcflag_t c_iflag; /* input mode flags */ | ||
| 19 | tcflag_t c_oflag; /* output mode flags */ | ||
| 20 | tcflag_t c_cflag; /* control mode flags */ | ||
| 21 | tcflag_t c_lflag; /* local mode flags */ | ||
| 22 | cc_t c_cc[NCCS]; /* control characters */ | ||
| 23 | cc_t c_line; /* line discipline (== c_cc[19]) */ | ||
| 24 | speed_t c_ispeed; /* input speed */ | ||
| 25 | speed_t c_ospeed; /* output speed */ | ||
| 26 | }; | ||
| 27 | |||
| 28 | /* Alpha has matching termios and ktermios */ | ||
| 29 | |||
| 30 | struct ktermios { | ||
| 31 | tcflag_t c_iflag; /* input mode flags */ | ||
| 32 | tcflag_t c_oflag; /* output mode flags */ | ||
| 33 | tcflag_t c_cflag; /* control mode flags */ | ||
| 34 | tcflag_t c_lflag; /* local mode flags */ | ||
| 35 | cc_t c_cc[NCCS]; /* control characters */ | ||
| 36 | cc_t c_line; /* line discipline (== c_cc[19]) */ | ||
| 37 | speed_t c_ispeed; /* input speed */ | ||
| 38 | speed_t c_ospeed; /* output speed */ | ||
| 39 | }; | ||
| 40 | |||
| 41 | /* c_cc characters */ | ||
| 42 | #define VEOF 0 | ||
| 43 | #define VEOL 1 | ||
| 44 | #define VEOL2 2 | ||
| 45 | #define VERASE 3 | ||
| 46 | #define VWERASE 4 | ||
| 47 | #define VKILL 5 | ||
| 48 | #define VREPRINT 6 | ||
| 49 | #define VSWTC 7 | ||
| 50 | #define VINTR 8 | ||
| 51 | #define VQUIT 9 | ||
| 52 | #define VSUSP 10 | ||
| 53 | #define VSTART 12 | ||
| 54 | #define VSTOP 13 | ||
| 55 | #define VLNEXT 14 | ||
| 56 | #define VDISCARD 15 | ||
| 57 | #define VMIN 16 | ||
| 58 | #define VTIME 17 | ||
| 59 | |||
| 60 | /* c_iflag bits */ | ||
| 61 | #define IGNBRK 0000001 | ||
| 62 | #define BRKINT 0000002 | ||
| 63 | #define IGNPAR 0000004 | ||
| 64 | #define PARMRK 0000010 | ||
| 65 | #define INPCK 0000020 | ||
| 66 | #define ISTRIP 0000040 | ||
| 67 | #define INLCR 0000100 | ||
| 68 | #define IGNCR 0000200 | ||
| 69 | #define ICRNL 0000400 | ||
| 70 | #define IXON 0001000 | ||
| 71 | #define IXOFF 0002000 | ||
| 72 | #define IXANY 0004000 | ||
| 73 | #define IUCLC 0010000 | ||
| 74 | #define IMAXBEL 0020000 | ||
| 75 | #define IUTF8 0040000 | ||
| 76 | |||
| 77 | /* c_oflag bits */ | ||
| 78 | #define OPOST 0000001 | ||
| 79 | #define ONLCR 0000002 | ||
| 80 | #define OLCUC 0000004 | ||
| 81 | |||
| 82 | #define OCRNL 0000010 | ||
| 83 | #define ONOCR 0000020 | ||
| 84 | #define ONLRET 0000040 | ||
| 85 | |||
| 86 | #define OFILL 00000100 | ||
| 87 | #define OFDEL 00000200 | ||
| 88 | #define NLDLY 00001400 | ||
| 89 | #define NL0 00000000 | ||
| 90 | #define NL1 00000400 | ||
| 91 | #define NL2 00001000 | ||
| 92 | #define NL3 00001400 | ||
| 93 | #define TABDLY 00006000 | ||
| 94 | #define TAB0 00000000 | ||
| 95 | #define TAB1 00002000 | ||
| 96 | #define TAB2 00004000 | ||
| 97 | #define TAB3 00006000 | ||
| 98 | #define CRDLY 00030000 | ||
| 99 | #define CR0 00000000 | ||
| 100 | #define CR1 00010000 | ||
| 101 | #define CR2 00020000 | ||
| 102 | #define CR3 00030000 | ||
| 103 | #define FFDLY 00040000 | ||
| 104 | #define FF0 00000000 | ||
| 105 | #define FF1 00040000 | ||
| 106 | #define BSDLY 00100000 | ||
| 107 | #define BS0 00000000 | ||
| 108 | #define BS1 00100000 | ||
| 109 | #define VTDLY 00200000 | ||
| 110 | #define VT0 00000000 | ||
| 111 | #define VT1 00200000 | ||
| 112 | #define XTABS 01000000 /* Hmm.. Linux/i386 considers this part of TABDLY.. */ | ||
| 113 | |||
| 114 | /* c_cflag bit meaning */ | ||
| 115 | #define CBAUD 0000037 | ||
| 116 | #define B0 0000000 /* hang up */ | ||
| 117 | #define B50 0000001 | ||
| 118 | #define B75 0000002 | ||
| 119 | #define B110 0000003 | ||
| 120 | #define B134 0000004 | ||
| 121 | #define B150 0000005 | ||
| 122 | #define B200 0000006 | ||
| 123 | #define B300 0000007 | ||
| 124 | #define B600 0000010 | ||
| 125 | #define B1200 0000011 | ||
| 126 | #define B1800 0000012 | ||
| 127 | #define B2400 0000013 | ||
| 128 | #define B4800 0000014 | ||
| 129 | #define B9600 0000015 | ||
| 130 | #define B19200 0000016 | ||
| 131 | #define B38400 0000017 | ||
| 132 | #define EXTA B19200 | ||
| 133 | #define EXTB B38400 | ||
| 134 | #define CBAUDEX 0000000 | ||
| 135 | #define B57600 00020 | ||
| 136 | #define B115200 00021 | ||
| 137 | #define B230400 00022 | ||
| 138 | #define B460800 00023 | ||
| 139 | #define B500000 00024 | ||
| 140 | #define B576000 00025 | ||
| 141 | #define B921600 00026 | ||
| 142 | #define B1000000 00027 | ||
| 143 | #define B1152000 00030 | ||
| 144 | #define B1500000 00031 | ||
| 145 | #define B2000000 00032 | ||
| 146 | #define B2500000 00033 | ||
| 147 | #define B3000000 00034 | ||
| 148 | #define B3500000 00035 | ||
| 149 | #define B4000000 00036 | ||
| 150 | |||
| 151 | #define CSIZE 00001400 | ||
| 152 | #define CS5 00000000 | ||
| 153 | #define CS6 00000400 | ||
| 154 | #define CS7 00001000 | ||
| 155 | #define CS8 00001400 | ||
| 156 | |||
| 157 | #define CSTOPB 00002000 | ||
| 158 | #define CREAD 00004000 | ||
| 159 | #define PARENB 00010000 | ||
| 160 | #define PARODD 00020000 | ||
| 161 | #define HUPCL 00040000 | ||
| 162 | |||
| 163 | #define CLOCAL 00100000 | ||
| 164 | #define CMSPAR 010000000000 /* mark or space (stick) parity */ | ||
| 165 | #define CRTSCTS 020000000000 /* flow control */ | ||
| 166 | |||
| 167 | /* c_lflag bits */ | ||
| 168 | #define ISIG 0x00000080 | ||
| 169 | #define ICANON 0x00000100 | ||
| 170 | #define XCASE 0x00004000 | ||
| 171 | #define ECHO 0x00000008 | ||
| 172 | #define ECHOE 0x00000002 | ||
| 173 | #define ECHOK 0x00000004 | ||
| 174 | #define ECHONL 0x00000010 | ||
| 175 | #define NOFLSH 0x80000000 | ||
| 176 | #define TOSTOP 0x00400000 | ||
| 177 | #define ECHOCTL 0x00000040 | ||
| 178 | #define ECHOPRT 0x00000020 | ||
| 179 | #define ECHOKE 0x00000001 | ||
| 180 | #define FLUSHO 0x00800000 | ||
| 181 | #define PENDIN 0x20000000 | ||
| 182 | #define IEXTEN 0x00000400 | ||
| 183 | #define EXTPROC 0x10000000 | ||
| 184 | |||
| 185 | /* Values for the ACTION argument to `tcflow'. */ | ||
| 186 | #define TCOOFF 0 | ||
| 187 | #define TCOON 1 | ||
| 188 | #define TCIOFF 2 | ||
| 189 | #define TCION 3 | ||
| 190 | |||
| 191 | /* Values for the QUEUE_SELECTOR argument to `tcflush'. */ | ||
| 192 | #define TCIFLUSH 0 | ||
| 193 | #define TCOFLUSH 1 | ||
| 194 | #define TCIOFLUSH 2 | ||
| 195 | |||
| 196 | /* Values for the OPTIONAL_ACTIONS argument to `tcsetattr'. */ | ||
| 197 | #define TCSANOW 0 | ||
| 198 | #define TCSADRAIN 1 | ||
| 199 | #define TCSAFLUSH 2 | ||
| 200 | |||
| 201 | #endif /* _ALPHA_TERMBITS_H */ | ||
diff --git a/arch/alpha/include/uapi/asm/termios.h b/arch/alpha/include/uapi/asm/termios.h new file mode 100644 index 000000000000..580ed1e4854c --- /dev/null +++ b/arch/alpha/include/uapi/asm/termios.h | |||
| @@ -0,0 +1,70 @@ | |||
| 1 | #ifndef _UAPI_ALPHA_TERMIOS_H | ||
| 2 | #define _UAPI_ALPHA_TERMIOS_H | ||
| 3 | |||
| 4 | #include <asm/ioctls.h> | ||
| 5 | #include <asm/termbits.h> | ||
| 6 | |||
| 7 | struct sgttyb { | ||
| 8 | char sg_ispeed; | ||
| 9 | char sg_ospeed; | ||
| 10 | char sg_erase; | ||
| 11 | char sg_kill; | ||
| 12 | short sg_flags; | ||
| 13 | }; | ||
| 14 | |||
| 15 | struct tchars { | ||
| 16 | char t_intrc; | ||
| 17 | char t_quitc; | ||
| 18 | char t_startc; | ||
| 19 | char t_stopc; | ||
| 20 | char t_eofc; | ||
| 21 | char t_brkc; | ||
| 22 | }; | ||
| 23 | |||
| 24 | struct ltchars { | ||
| 25 | char t_suspc; | ||
| 26 | char t_dsuspc; | ||
| 27 | char t_rprntc; | ||
| 28 | char t_flushc; | ||
| 29 | char t_werasc; | ||
| 30 | char t_lnextc; | ||
| 31 | }; | ||
| 32 | |||
| 33 | struct winsize { | ||
| 34 | unsigned short ws_row; | ||
| 35 | unsigned short ws_col; | ||
| 36 | unsigned short ws_xpixel; | ||
| 37 | unsigned short ws_ypixel; | ||
| 38 | }; | ||
| 39 | |||
| 40 | #define NCC 8 | ||
| 41 | struct termio { | ||
| 42 | unsigned short c_iflag; /* input mode flags */ | ||
| 43 | unsigned short c_oflag; /* output mode flags */ | ||
| 44 | unsigned short c_cflag; /* control mode flags */ | ||
| 45 | unsigned short c_lflag; /* local mode flags */ | ||
| 46 | unsigned char c_line; /* line discipline */ | ||
| 47 | unsigned char c_cc[NCC]; /* control characters */ | ||
| 48 | }; | ||
| 49 | |||
| 50 | /* | ||
| 51 | * c_cc characters in the termio structure. Oh, how I love being | ||
| 52 | * backwardly compatible. Notice that character 4 and 5 are | ||
| 53 | * interpreted differently depending on whether ICANON is set in | ||
| 54 | * c_lflag. If it's set, they are used as _VEOF and _VEOL, otherwise | ||
| 55 | * as _VMIN and V_TIME. This is for compatibility with OSF/1 (which | ||
| 56 | * is compatible with sysV)... | ||
| 57 | */ | ||
| 58 | #define _VINTR 0 | ||
| 59 | #define _VQUIT 1 | ||
| 60 | #define _VERASE 2 | ||
| 61 | #define _VKILL 3 | ||
| 62 | #define _VEOF 4 | ||
| 63 | #define _VMIN 4 | ||
| 64 | #define _VEOL 5 | ||
| 65 | #define _VTIME 5 | ||
| 66 | #define _VEOL2 6 | ||
| 67 | #define _VSWTC 7 | ||
| 68 | |||
| 69 | |||
| 70 | #endif /* _UAPI_ALPHA_TERMIOS_H */ | ||
diff --git a/arch/alpha/include/uapi/asm/types.h b/arch/alpha/include/uapi/asm/types.h new file mode 100644 index 000000000000..9fd3cd459777 --- /dev/null +++ b/arch/alpha/include/uapi/asm/types.h | |||
| @@ -0,0 +1,16 @@ | |||
| 1 | #ifndef _UAPI_ALPHA_TYPES_H | ||
| 2 | #define _UAPI_ALPHA_TYPES_H | ||
| 3 | |||
| 4 | /* | ||
| 5 | * This file is never included by application software unless | ||
| 6 | * explicitly requested (e.g., via linux/types.h) in which case the | ||
| 7 | * application is Linux specific so (user-) name space pollution is | ||
| 8 | * not a major issue. However, for interoperability, libraries still | ||
| 9 | * need to be careful to avoid a name clashes. | ||
| 10 | */ | ||
| 11 | |||
| 12 | #ifndef __KERNEL__ | ||
| 13 | #include <asm-generic/int-l64.h> | ||
| 14 | #endif | ||
| 15 | |||
| 16 | #endif /* _UAPI_ALPHA_TYPES_H */ | ||
diff --git a/arch/alpha/include/uapi/asm/unistd.h b/arch/alpha/include/uapi/asm/unistd.h new file mode 100644 index 000000000000..801d28bcea51 --- /dev/null +++ b/arch/alpha/include/uapi/asm/unistd.h | |||
| @@ -0,0 +1,471 @@ | |||
| 1 | #ifndef _UAPI_ALPHA_UNISTD_H | ||
| 2 | #define _UAPI_ALPHA_UNISTD_H | ||
| 3 | |||
| 4 | #define __NR_osf_syscall 0 /* not implemented */ | ||
| 5 | #define __NR_exit 1 | ||
| 6 | #define __NR_fork 2 | ||
| 7 | #define __NR_read 3 | ||
| 8 | #define __NR_write 4 | ||
| 9 | #define __NR_osf_old_open 5 /* not implemented */ | ||
| 10 | #define __NR_close 6 | ||
| 11 | #define __NR_osf_wait4 7 | ||
| 12 | #define __NR_osf_old_creat 8 /* not implemented */ | ||
| 13 | #define __NR_link 9 | ||
| 14 | #define __NR_unlink 10 | ||
| 15 | #define __NR_osf_execve 11 /* not implemented */ | ||
| 16 | #define __NR_chdir 12 | ||
| 17 | #define __NR_fchdir 13 | ||
| 18 | #define __NR_mknod 14 | ||
| 19 | #define __NR_chmod 15 | ||
| 20 | #define __NR_chown 16 | ||
| 21 | #define __NR_brk 17 | ||
| 22 | #define __NR_osf_getfsstat 18 /* not implemented */ | ||
| 23 | #define __NR_lseek 19 | ||
| 24 | #define __NR_getxpid 20 | ||
| 25 | #define __NR_osf_mount 21 | ||
| 26 | #define __NR_umount 22 | ||
| 27 | #define __NR_setuid 23 | ||
| 28 | #define __NR_getxuid 24 | ||
| 29 | #define __NR_exec_with_loader 25 /* not implemented */ | ||
| 30 | #define __NR_ptrace 26 | ||
| 31 | #define __NR_osf_nrecvmsg 27 /* not implemented */ | ||
| 32 | #define __NR_osf_nsendmsg 28 /* not implemented */ | ||
| 33 | #define __NR_osf_nrecvfrom 29 /* not implemented */ | ||
| 34 | #define __NR_osf_naccept 30 /* not implemented */ | ||
| 35 | #define __NR_osf_ngetpeername 31 /* not implemented */ | ||
| 36 | #define __NR_osf_ngetsockname 32 /* not implemented */ | ||
| 37 | #define __NR_access 33 | ||
| 38 | #define __NR_osf_chflags 34 /* not implemented */ | ||
| 39 | #define __NR_osf_fchflags 35 /* not implemented */ | ||
| 40 | #define __NR_sync 36 | ||
| 41 | #define __NR_kill 37 | ||
| 42 | #define __NR_osf_old_stat 38 /* not implemented */ | ||
| 43 | #define __NR_setpgid 39 | ||
| 44 | #define __NR_osf_old_lstat 40 /* not implemented */ | ||
| 45 | #define __NR_dup 41 | ||
| 46 | #define __NR_pipe 42 | ||
| 47 | #define __NR_osf_set_program_attributes 43 | ||
| 48 | #define __NR_osf_profil 44 /* not implemented */ | ||
| 49 | #define __NR_open 45 | ||
| 50 | #define __NR_osf_old_sigaction 46 /* not implemented */ | ||
| 51 | #define __NR_getxgid 47 | ||
| 52 | #define __NR_osf_sigprocmask 48 | ||
| 53 | #define __NR_osf_getlogin 49 /* not implemented */ | ||
| 54 | #define __NR_osf_setlogin 50 /* not implemented */ | ||
| 55 | #define __NR_acct 51 | ||
| 56 | #define __NR_sigpending 52 | ||
| 57 | |||
| 58 | #define __NR_ioctl 54 | ||
| 59 | #define __NR_osf_reboot 55 /* not implemented */ | ||
| 60 | #define __NR_osf_revoke 56 /* not implemented */ | ||
| 61 | #define __NR_symlink 57 | ||
| 62 | #define __NR_readlink 58 | ||
| 63 | #define __NR_execve 59 | ||
| 64 | #define __NR_umask 60 | ||
| 65 | #define __NR_chroot 61 | ||
| 66 | #define __NR_osf_old_fstat 62 /* not implemented */ | ||
| 67 | #define __NR_getpgrp 63 | ||
| 68 | #define __NR_getpagesize 64 | ||
| 69 | #define __NR_osf_mremap 65 /* not implemented */ | ||
| 70 | #define __NR_vfork 66 | ||
| 71 | #define __NR_stat 67 | ||
| 72 | #define __NR_lstat 68 | ||
| 73 | #define __NR_osf_sbrk 69 /* not implemented */ | ||
| 74 | #define __NR_osf_sstk 70 /* not implemented */ | ||
| 75 | #define __NR_mmap 71 /* OSF/1 mmap is superset of Linux */ | ||
| 76 | #define __NR_osf_old_vadvise 72 /* not implemented */ | ||
| 77 | #define __NR_munmap 73 | ||
| 78 | #define __NR_mprotect 74 | ||
| 79 | #define __NR_madvise 75 | ||
| 80 | #define __NR_vhangup 76 | ||
| 81 | #define __NR_osf_kmodcall 77 /* not implemented */ | ||
| 82 | #define __NR_osf_mincore 78 /* not implemented */ | ||
| 83 | #define __NR_getgroups 79 | ||
| 84 | #define __NR_setgroups 80 | ||
| 85 | #define __NR_osf_old_getpgrp 81 /* not implemented */ | ||
| 86 | #define __NR_setpgrp 82 /* BSD alias for setpgid */ | ||
| 87 | #define __NR_osf_setitimer 83 | ||
| 88 | #define __NR_osf_old_wait 84 /* not implemented */ | ||
| 89 | #define __NR_osf_table 85 /* not implemented */ | ||
| 90 | #define __NR_osf_getitimer 86 | ||
| 91 | #define __NR_gethostname 87 | ||
| 92 | #define __NR_sethostname 88 | ||
| 93 | #define __NR_getdtablesize 89 | ||
| 94 | #define __NR_dup2 90 | ||
| 95 | #define __NR_fstat 91 | ||
| 96 | #define __NR_fcntl 92 | ||
| 97 | #define __NR_osf_select 93 | ||
| 98 | #define __NR_poll 94 | ||
| 99 | #define __NR_fsync 95 | ||
| 100 | #define __NR_setpriority 96 | ||
| 101 | #define __NR_socket 97 | ||
| 102 | #define __NR_connect 98 | ||
| 103 | #define __NR_accept 99 | ||
| 104 | #define __NR_getpriority 100 | ||
| 105 | #define __NR_send 101 | ||
| 106 | #define __NR_recv 102 | ||
| 107 | #define __NR_sigreturn 103 | ||
| 108 | #define __NR_bind 104 | ||
| 109 | #define __NR_setsockopt 105 | ||
| 110 | #define __NR_listen 106 | ||
| 111 | #define __NR_osf_plock 107 /* not implemented */ | ||
| 112 | #define __NR_osf_old_sigvec 108 /* not implemented */ | ||
| 113 | #define __NR_osf_old_sigblock 109 /* not implemented */ | ||
| 114 | #define __NR_osf_old_sigsetmask 110 /* not implemented */ | ||
| 115 | #define __NR_sigsuspend 111 | ||
| 116 | #define __NR_osf_sigstack 112 | ||
| 117 | #define __NR_recvmsg 113 | ||
| 118 | #define __NR_sendmsg 114 | ||
| 119 | #define __NR_osf_old_vtrace 115 /* not implemented */ | ||
| 120 | #define __NR_osf_gettimeofday 116 | ||
| 121 | #define __NR_osf_getrusage 117 | ||
| 122 | #define __NR_getsockopt 118 | ||
| 123 | |||
| 124 | #define __NR_readv 120 | ||
| 125 | #define __NR_writev 121 | ||
| 126 | #define __NR_osf_settimeofday 122 | ||
| 127 | #define __NR_fchown 123 | ||
| 128 | #define __NR_fchmod 124 | ||
| 129 | #define __NR_recvfrom 125 | ||
| 130 | #define __NR_setreuid 126 | ||
| 131 | #define __NR_setregid 127 | ||
| 132 | #define __NR_rename 128 | ||
| 133 | #define __NR_truncate 129 | ||
| 134 | #define __NR_ftruncate 130 | ||
| 135 | #define __NR_flock 131 | ||
| 136 | #define __NR_setgid 132 | ||
| 137 | #define __NR_sendto 133 | ||
| 138 | #define __NR_shutdown 134 | ||
| 139 | #define __NR_socketpair 135 | ||
| 140 | #define __NR_mkdir 136 | ||
| 141 | #define __NR_rmdir 137 | ||
| 142 | #define __NR_osf_utimes 138 | ||
| 143 | #define __NR_osf_old_sigreturn 139 /* not implemented */ | ||
| 144 | #define __NR_osf_adjtime 140 /* not implemented */ | ||
| 145 | #define __NR_getpeername 141 | ||
| 146 | #define __NR_osf_gethostid 142 /* not implemented */ | ||
| 147 | #define __NR_osf_sethostid 143 /* not implemented */ | ||
| 148 | #define __NR_getrlimit 144 | ||
| 149 | #define __NR_setrlimit 145 | ||
| 150 | #define __NR_osf_old_killpg 146 /* not implemented */ | ||
| 151 | #define __NR_setsid 147 | ||
| 152 | #define __NR_quotactl 148 | ||
| 153 | #define __NR_osf_oldquota 149 /* not implemented */ | ||
| 154 | #define __NR_getsockname 150 | ||
| 155 | |||
| 156 | #define __NR_osf_pid_block 153 /* not implemented */ | ||
| 157 | #define __NR_osf_pid_unblock 154 /* not implemented */ | ||
| 158 | |||
| 159 | #define __NR_sigaction 156 | ||
| 160 | #define __NR_osf_sigwaitprim 157 /* not implemented */ | ||
| 161 | #define __NR_osf_nfssvc 158 /* not implemented */ | ||
| 162 | #define __NR_osf_getdirentries 159 | ||
| 163 | #define __NR_osf_statfs 160 | ||
| 164 | #define __NR_osf_fstatfs 161 | ||
| 165 | |||
| 166 | #define __NR_osf_asynch_daemon 163 /* not implemented */ | ||
| 167 | #define __NR_osf_getfh 164 /* not implemented */ | ||
| 168 | #define __NR_osf_getdomainname 165 | ||
| 169 | #define __NR_setdomainname 166 | ||
| 170 | |||
| 171 | #define __NR_osf_exportfs 169 /* not implemented */ | ||
| 172 | |||
| 173 | #define __NR_osf_alt_plock 181 /* not implemented */ | ||
| 174 | |||
| 175 | #define __NR_osf_getmnt 184 /* not implemented */ | ||
| 176 | |||
| 177 | #define __NR_osf_alt_sigpending 187 /* not implemented */ | ||
| 178 | #define __NR_osf_alt_setsid 188 /* not implemented */ | ||
| 179 | |||
| 180 | #define __NR_osf_swapon 199 | ||
| 181 | #define __NR_msgctl 200 | ||
| 182 | #define __NR_msgget 201 | ||
| 183 | #define __NR_msgrcv 202 | ||
| 184 | #define __NR_msgsnd 203 | ||
| 185 | #define __NR_semctl 204 | ||
| 186 | #define __NR_semget 205 | ||
| 187 | #define __NR_semop 206 | ||
| 188 | #define __NR_osf_utsname 207 | ||
| 189 | #define __NR_lchown 208 | ||
| 190 | #define __NR_osf_shmat 209 | ||
| 191 | #define __NR_shmctl 210 | ||
| 192 | #define __NR_shmdt 211 | ||
| 193 | #define __NR_shmget 212 | ||
| 194 | #define __NR_osf_mvalid 213 /* not implemented */ | ||
| 195 | #define __NR_osf_getaddressconf 214 /* not implemented */ | ||
| 196 | #define __NR_osf_msleep 215 /* not implemented */ | ||
| 197 | #define __NR_osf_mwakeup 216 /* not implemented */ | ||
| 198 | #define __NR_msync 217 | ||
| 199 | #define __NR_osf_signal 218 /* not implemented */ | ||
| 200 | #define __NR_osf_utc_gettime 219 /* not implemented */ | ||
| 201 | #define __NR_osf_utc_adjtime 220 /* not implemented */ | ||
| 202 | |||
| 203 | #define __NR_osf_security 222 /* not implemented */ | ||
| 204 | #define __NR_osf_kloadcall 223 /* not implemented */ | ||
| 205 | |||
| 206 | #define __NR_osf_stat 224 | ||
| 207 | #define __NR_osf_lstat 225 | ||
| 208 | #define __NR_osf_fstat 226 | ||
| 209 | #define __NR_osf_statfs64 227 | ||
| 210 | #define __NR_osf_fstatfs64 228 | ||
| 211 | |||
| 212 | #define __NR_getpgid 233 | ||
| 213 | #define __NR_getsid 234 | ||
| 214 | #define __NR_sigaltstack 235 | ||
| 215 | #define __NR_osf_waitid 236 /* not implemented */ | ||
| 216 | #define __NR_osf_priocntlset 237 /* not implemented */ | ||
| 217 | #define __NR_osf_sigsendset 238 /* not implemented */ | ||
| 218 | #define __NR_osf_set_speculative 239 /* not implemented */ | ||
| 219 | #define __NR_osf_msfs_syscall 240 /* not implemented */ | ||
| 220 | #define __NR_osf_sysinfo 241 | ||
| 221 | #define __NR_osf_uadmin 242 /* not implemented */ | ||
| 222 | #define __NR_osf_fuser 243 /* not implemented */ | ||
| 223 | #define __NR_osf_proplist_syscall 244 | ||
| 224 | #define __NR_osf_ntp_adjtime 245 /* not implemented */ | ||
| 225 | #define __NR_osf_ntp_gettime 246 /* not implemented */ | ||
| 226 | #define __NR_osf_pathconf 247 /* not implemented */ | ||
| 227 | #define __NR_osf_fpathconf 248 /* not implemented */ | ||
| 228 | |||
| 229 | #define __NR_osf_uswitch 250 /* not implemented */ | ||
| 230 | #define __NR_osf_usleep_thread 251 | ||
| 231 | #define __NR_osf_audcntl 252 /* not implemented */ | ||
| 232 | #define __NR_osf_audgen 253 /* not implemented */ | ||
| 233 | #define __NR_sysfs 254 | ||
| 234 | #define __NR_osf_subsys_info 255 /* not implemented */ | ||
| 235 | #define __NR_osf_getsysinfo 256 | ||
| 236 | #define __NR_osf_setsysinfo 257 | ||
| 237 | #define __NR_osf_afs_syscall 258 /* not implemented */ | ||
| 238 | #define __NR_osf_swapctl 259 /* not implemented */ | ||
| 239 | #define __NR_osf_memcntl 260 /* not implemented */ | ||
| 240 | #define __NR_osf_fdatasync 261 /* not implemented */ | ||
| 241 | |||
| 242 | /* | ||
| 243 | * Ignore legacy syscalls that we don't use. | ||
| 244 | */ | ||
| 245 | #define __IGNORE_alarm | ||
| 246 | #define __IGNORE_creat | ||
| 247 | #define __IGNORE_getegid | ||
| 248 | #define __IGNORE_geteuid | ||
| 249 | #define __IGNORE_getgid | ||
| 250 | #define __IGNORE_getpid | ||
| 251 | #define __IGNORE_getppid | ||
| 252 | #define __IGNORE_getuid | ||
| 253 | #define __IGNORE_pause | ||
| 254 | #define __IGNORE_time | ||
| 255 | #define __IGNORE_utime | ||
| 256 | #define __IGNORE_umount2 | ||
| 257 | |||
| 258 | /* | ||
| 259 | * Linux-specific system calls begin at 300 | ||
| 260 | */ | ||
| 261 | #define __NR_bdflush 300 | ||
| 262 | #define __NR_sethae 301 | ||
| 263 | #define __NR_mount 302 | ||
| 264 | #define __NR_old_adjtimex 303 | ||
| 265 | #define __NR_swapoff 304 | ||
| 266 | #define __NR_getdents 305 | ||
| 267 | #define __NR_create_module 306 | ||
| 268 | #define __NR_init_module 307 | ||
| 269 | #define __NR_delete_module 308 | ||
| 270 | #define __NR_get_kernel_syms 309 | ||
| 271 | #define __NR_syslog 310 | ||
| 272 | #define __NR_reboot 311 | ||
| 273 | #define __NR_clone 312 | ||
| 274 | #define __NR_uselib 313 | ||
| 275 | #define __NR_mlock 314 | ||
| 276 | #define __NR_munlock 315 | ||
| 277 | #define __NR_mlockall 316 | ||
| 278 | #define __NR_munlockall 317 | ||
| 279 | #define __NR_sysinfo 318 | ||
| 280 | #define __NR__sysctl 319 | ||
| 281 | /* 320 was sys_idle. */ | ||
| 282 | #define __NR_oldumount 321 | ||
| 283 | #define __NR_swapon 322 | ||
| 284 | #define __NR_times 323 | ||
| 285 | #define __NR_personality 324 | ||
| 286 | #define __NR_setfsuid 325 | ||
| 287 | #define __NR_setfsgid 326 | ||
| 288 | #define __NR_ustat 327 | ||
| 289 | #define __NR_statfs 328 | ||
| 290 | #define __NR_fstatfs 329 | ||
| 291 | #define __NR_sched_setparam 330 | ||
| 292 | #define __NR_sched_getparam 331 | ||
| 293 | #define __NR_sched_setscheduler 332 | ||
| 294 | #define __NR_sched_getscheduler 333 | ||
| 295 | #define __NR_sched_yield 334 | ||
| 296 | #define __NR_sched_get_priority_max 335 | ||
| 297 | #define __NR_sched_get_priority_min 336 | ||
| 298 | #define __NR_sched_rr_get_interval 337 | ||
| 299 | #define __NR_afs_syscall 338 | ||
| 300 | #define __NR_uname 339 | ||
| 301 | #define __NR_nanosleep 340 | ||
| 302 | #define __NR_mremap 341 | ||
| 303 | #define __NR_nfsservctl 342 | ||
| 304 | #define __NR_setresuid 343 | ||
| 305 | #define __NR_getresuid 344 | ||
| 306 | #define __NR_pciconfig_read 345 | ||
| 307 | #define __NR_pciconfig_write 346 | ||
| 308 | #define __NR_query_module 347 | ||
| 309 | #define __NR_prctl 348 | ||
| 310 | #define __NR_pread64 349 | ||
| 311 | #define __NR_pwrite64 350 | ||
| 312 | #define __NR_rt_sigreturn 351 | ||
| 313 | #define __NR_rt_sigaction 352 | ||
| 314 | #define __NR_rt_sigprocmask 353 | ||
| 315 | #define __NR_rt_sigpending 354 | ||
| 316 | #define __NR_rt_sigtimedwait 355 | ||
| 317 | #define __NR_rt_sigqueueinfo 356 | ||
| 318 | #define __NR_rt_sigsuspend 357 | ||
| 319 | #define __NR_select 358 | ||
| 320 | #define __NR_gettimeofday 359 | ||
| 321 | #define __NR_settimeofday 360 | ||
| 322 | #define __NR_getitimer 361 | ||
| 323 | #define __NR_setitimer 362 | ||
| 324 | #define __NR_utimes 363 | ||
| 325 | #define __NR_getrusage 364 | ||
| 326 | #define __NR_wait4 365 | ||
| 327 | #define __NR_adjtimex 366 | ||
| 328 | #define __NR_getcwd 367 | ||
| 329 | #define __NR_capget 368 | ||
| 330 | #define __NR_capset 369 | ||
| 331 | #define __NR_sendfile 370 | ||
| 332 | #define __NR_setresgid 371 | ||
| 333 | #define __NR_getresgid 372 | ||
| 334 | #define __NR_dipc 373 | ||
| 335 | #define __NR_pivot_root 374 | ||
| 336 | #define __NR_mincore 375 | ||
| 337 | #define __NR_pciconfig_iobase 376 | ||
| 338 | #define __NR_getdents64 377 | ||
| 339 | #define __NR_gettid 378 | ||
| 340 | #define __NR_readahead 379 | ||
| 341 | /* 380 is unused */ | ||
| 342 | #define __NR_tkill 381 | ||
| 343 | #define __NR_setxattr 382 | ||
| 344 | #define __NR_lsetxattr 383 | ||
| 345 | #define __NR_fsetxattr 384 | ||
| 346 | #define __NR_getxattr 385 | ||
| 347 | #define __NR_lgetxattr 386 | ||
| 348 | #define __NR_fgetxattr 387 | ||
| 349 | #define __NR_listxattr 388 | ||
| 350 | #define __NR_llistxattr 389 | ||
| 351 | #define __NR_flistxattr 390 | ||
| 352 | #define __NR_removexattr 391 | ||
| 353 | #define __NR_lremovexattr 392 | ||
| 354 | #define __NR_fremovexattr 393 | ||
| 355 | #define __NR_futex 394 | ||
| 356 | #define __NR_sched_setaffinity 395 | ||
| 357 | #define __NR_sched_getaffinity 396 | ||
| 358 | #define __NR_tuxcall 397 | ||
| 359 | #define __NR_io_setup 398 | ||
| 360 | #define __NR_io_destroy 399 | ||
| 361 | #define __NR_io_getevents 400 | ||
| 362 | #define __NR_io_submit 401 | ||
| 363 | #define __NR_io_cancel 402 | ||
| 364 | #define __NR_exit_group 405 | ||
| 365 | #define __NR_lookup_dcookie 406 | ||
| 366 | #define __NR_epoll_create 407 | ||
| 367 | #define __NR_epoll_ctl 408 | ||
| 368 | #define __NR_epoll_wait 409 | ||
| 369 | /* Feb 2007: These three sys_epoll defines shouldn't be here but culling | ||
| 370 | * them would break userspace apps ... we'll kill them off in 2010 :) */ | ||
| 371 | #define __NR_sys_epoll_create __NR_epoll_create | ||
| 372 | #define __NR_sys_epoll_ctl __NR_epoll_ctl | ||
| 373 | #define __NR_sys_epoll_wait __NR_epoll_wait | ||
| 374 | #define __NR_remap_file_pages 410 | ||
| 375 | #define __NR_set_tid_address 411 | ||
| 376 | #define __NR_restart_syscall 412 | ||
| 377 | #define __NR_fadvise64 413 | ||
| 378 | #define __NR_timer_create 414 | ||
| 379 | #define __NR_timer_settime 415 | ||
| 380 | #define __NR_timer_gettime 416 | ||
| 381 | #define __NR_timer_getoverrun 417 | ||
| 382 | #define __NR_timer_delete 418 | ||
| 383 | #define __NR_clock_settime 419 | ||
| 384 | #define __NR_clock_gettime 420 | ||
| 385 | #define __NR_clock_getres 421 | ||
| 386 | #define __NR_clock_nanosleep 422 | ||
| 387 | #define __NR_semtimedop 423 | ||
| 388 | #define __NR_tgkill 424 | ||
| 389 | #define __NR_stat64 425 | ||
| 390 | #define __NR_lstat64 426 | ||
| 391 | #define __NR_fstat64 427 | ||
| 392 | #define __NR_vserver 428 | ||
| 393 | #define __NR_mbind 429 | ||
| 394 | #define __NR_get_mempolicy 430 | ||
| 395 | #define __NR_set_mempolicy 431 | ||
| 396 | #define __NR_mq_open 432 | ||
| 397 | #define __NR_mq_unlink 433 | ||
| 398 | #define __NR_mq_timedsend 434 | ||
| 399 | #define __NR_mq_timedreceive 435 | ||
| 400 | #define __NR_mq_notify 436 | ||
| 401 | #define __NR_mq_getsetattr 437 | ||
| 402 | #define __NR_waitid 438 | ||
| 403 | #define __NR_add_key 439 | ||
| 404 | #define __NR_request_key 440 | ||
| 405 | #define __NR_keyctl 441 | ||
| 406 | #define __NR_ioprio_set 442 | ||
| 407 | #define __NR_ioprio_get 443 | ||
| 408 | #define __NR_inotify_init 444 | ||
| 409 | #define __NR_inotify_add_watch 445 | ||
| 410 | #define __NR_inotify_rm_watch 446 | ||
| 411 | #define __NR_fdatasync 447 | ||
| 412 | #define __NR_kexec_load 448 | ||
| 413 | #define __NR_migrate_pages 449 | ||
| 414 | #define __NR_openat 450 | ||
| 415 | #define __NR_mkdirat 451 | ||
| 416 | #define __NR_mknodat 452 | ||
| 417 | #define __NR_fchownat 453 | ||
| 418 | #define __NR_futimesat 454 | ||
| 419 | #define __NR_fstatat64 455 | ||
| 420 | #define __NR_unlinkat 456 | ||
| 421 | #define __NR_renameat 457 | ||
| 422 | #define __NR_linkat 458 | ||
| 423 | #define __NR_symlinkat 459 | ||
| 424 | #define __NR_readlinkat 460 | ||
| 425 | #define __NR_fchmodat 461 | ||
| 426 | #define __NR_faccessat 462 | ||
| 427 | #define __NR_pselect6 463 | ||
| 428 | #define __NR_ppoll 464 | ||
| 429 | #define __NR_unshare 465 | ||
| 430 | #define __NR_set_robust_list 466 | ||
| 431 | #define __NR_get_robust_list 467 | ||
| 432 | #define __NR_splice 468 | ||
| 433 | #define __NR_sync_file_range 469 | ||
| 434 | #define __NR_tee 470 | ||
| 435 | #define __NR_vmsplice 471 | ||
| 436 | #define __NR_move_pages 472 | ||
| 437 | #define __NR_getcpu 473 | ||
| 438 | #define __NR_epoll_pwait 474 | ||
| 439 | #define __NR_utimensat 475 | ||
| 440 | #define __NR_signalfd 476 | ||
| 441 | #define __NR_timerfd 477 | ||
| 442 | #define __NR_eventfd 478 | ||
| 443 | #define __NR_recvmmsg 479 | ||
| 444 | #define __NR_fallocate 480 | ||
| 445 | #define __NR_timerfd_create 481 | ||
| 446 | #define __NR_timerfd_settime 482 | ||
| 447 | #define __NR_timerfd_gettime 483 | ||
| 448 | #define __NR_signalfd4 484 | ||
| 449 | #define __NR_eventfd2 485 | ||
| 450 | #define __NR_epoll_create1 486 | ||
| 451 | #define __NR_dup3 487 | ||
| 452 | #define __NR_pipe2 488 | ||
| 453 | #define __NR_inotify_init1 489 | ||
| 454 | #define __NR_preadv 490 | ||
| 455 | #define __NR_pwritev 491 | ||
| 456 | #define __NR_rt_tgsigqueueinfo 492 | ||
| 457 | #define __NR_perf_event_open 493 | ||
| 458 | #define __NR_fanotify_init 494 | ||
| 459 | #define __NR_fanotify_mark 495 | ||
| 460 | #define __NR_prlimit64 496 | ||
| 461 | #define __NR_name_to_handle_at 497 | ||
| 462 | #define __NR_open_by_handle_at 498 | ||
| 463 | #define __NR_clock_adjtime 499 | ||
| 464 | #define __NR_syncfs 500 | ||
| 465 | #define __NR_setns 501 | ||
| 466 | #define __NR_accept4 502 | ||
| 467 | #define __NR_sendmmsg 503 | ||
| 468 | #define __NR_process_vm_readv 504 | ||
| 469 | #define __NR_process_vm_writev 505 | ||
| 470 | |||
| 471 | #endif /* _UAPI_ALPHA_UNISTD_H */ | ||
