rewrite core of the glob implementation for correctness & optimization
[musl.git] / include / sys / signalfd.h
blob55431b91673c0a16a8731920d94fe0d711287d6d
1 #ifndef _SYS_SIGNALFD_H
2 #define _SYS_SIGNALFD_H
4 #ifdef __cplusplus
5 extern "C" {
6 #endif
8 #include <stdint.h>
9 #include <fcntl.h>
11 #define __NEED_sigset_t
13 #include <bits/alltypes.h>
15 #define SFD_CLOEXEC O_CLOEXEC
16 #define SFD_NONBLOCK O_NONBLOCK
18 int signalfd(int, const sigset_t *, int);
20 struct signalfd_siginfo {
21 uint32_t ssi_signo;
22 int32_t ssi_errno;
23 int32_t ssi_code;
24 uint32_t ssi_pid;
25 uint32_t ssi_uid;
26 int32_t ssi_fd;
27 uint32_t ssi_tid;
28 uint32_t ssi_band;
29 uint32_t ssi_overrun;
30 uint32_t ssi_trapno;
31 int32_t ssi_status;
32 int32_t ssi_int;
33 uint64_t ssi_ptr;
34 uint64_t ssi_utime;
35 uint64_t ssi_stime;
36 uint64_t ssi_addr;
37 uint16_t ssi_addr_lsb;
38 uint8_t pad[128-12*4-4*8-2];
41 #ifdef __cplusplus
43 #endif
45 #endif