1 /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
3 * include/linux/signalfd.h
5 * Copyright (C) 2007 Davide Libenzi <davidel@xmailserver.org>
9 #ifndef _UAPI_LINUX_SIGNALFD_H
10 #define _UAPI_LINUX_SIGNALFD_H
12 #include <linux/types.h>
13 /* For O_CLOEXEC and O_NONBLOCK */
14 #include <linux/fcntl.h>
16 /* Flags for signalfd4. */
17 #define SFD_CLOEXEC O_CLOEXEC
18 #define SFD_NONBLOCK O_NONBLOCK
20 struct signalfd_siginfo {
44 * Pad strcture to 128 bytes. Remember to update the
45 * pad size when you add new members. We use a fixed
46 * size structure to avoid compatibility problems with
47 * future versions, and we leave extra space for additional
48 * members. We use fixed size members because this strcture
49 * comes out of a read(2) and we really don't want to have
50 * a compat on read(2).
57 #endif /* _UAPI_LINUX_SIGNALFD_H */