diff options
author | David Howells <dhowells@redhat.com> | 2012-10-13 05:46:48 -0400 |
---|---|---|
committer | David Howells <dhowells@redhat.com> | 2012-10-13 05:46:48 -0400 |
commit | 607ca46e97a1b6594b29647d98a32d545c24bdff (patch) | |
tree | 30f4c0784bfddb57332cdc0678bd06d1e77fa185 /include/uapi/linux/signalfd.h | |
parent | 08cce05c5a91f5017f4edc9866cf026908c73f9f (diff) |
UAPI: (Scripted) Disintegrate include/linux
Signed-off-by: David Howells <dhowells@redhat.com>
Acked-by: Arnd Bergmann <arnd@arndb.de>
Acked-by: Thomas Gleixner <tglx@linutronix.de>
Acked-by: Michael Kerrisk <mtk.manpages@gmail.com>
Acked-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Acked-by: Dave Jones <davej@redhat.com>
Diffstat (limited to 'include/uapi/linux/signalfd.h')
-rw-r--r-- | include/uapi/linux/signalfd.h | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/include/uapi/linux/signalfd.h b/include/uapi/linux/signalfd.h new file mode 100644 index 000000000000..492c6def340d --- /dev/null +++ b/include/uapi/linux/signalfd.h | |||
@@ -0,0 +1,52 @@ | |||
1 | /* | ||
2 | * include/linux/signalfd.h | ||
3 | * | ||
4 | * Copyright (C) 2007 Davide Libenzi <davidel@xmailserver.org> | ||
5 | * | ||
6 | */ | ||
7 | |||
8 | #ifndef _UAPI_LINUX_SIGNALFD_H | ||
9 | #define _UAPI_LINUX_SIGNALFD_H | ||
10 | |||
11 | #include <linux/types.h> | ||
12 | /* For O_CLOEXEC and O_NONBLOCK */ | ||
13 | #include <linux/fcntl.h> | ||
14 | |||
15 | /* Flags for signalfd4. */ | ||
16 | #define SFD_CLOEXEC O_CLOEXEC | ||
17 | #define SFD_NONBLOCK O_NONBLOCK | ||
18 | |||
19 | struct signalfd_siginfo { | ||
20 | __u32 ssi_signo; | ||
21 | __s32 ssi_errno; | ||
22 | __s32 ssi_code; | ||
23 | __u32 ssi_pid; | ||
24 | __u32 ssi_uid; | ||
25 | __s32 ssi_fd; | ||
26 | __u32 ssi_tid; | ||
27 | __u32 ssi_band; | ||
28 | __u32 ssi_overrun; | ||
29 | __u32 ssi_trapno; | ||
30 | __s32 ssi_status; | ||
31 | __s32 ssi_int; | ||
32 | __u64 ssi_ptr; | ||
33 | __u64 ssi_utime; | ||
34 | __u64 ssi_stime; | ||
35 | __u64 ssi_addr; | ||
36 | __u16 ssi_addr_lsb; | ||
37 | |||
38 | /* | ||
39 | * Pad strcture to 128 bytes. Remember to update the | ||
40 | * pad size when you add new members. We use a fixed | ||
41 | * size structure to avoid compatibility problems with | ||
42 | * future versions, and we leave extra space for additional | ||
43 | * members. We use fixed size members because this strcture | ||
44 | * comes out of a read(2) and we really don't want to have | ||
45 | * a compat on read(2). | ||
46 | */ | ||
47 | __u8 __pad[46]; | ||
48 | }; | ||
49 | |||
50 | |||
51 | |||
52 | #endif /* _UAPI_LINUX_SIGNALFD_H */ | ||