1570af302Sopenharmony_ci#ifndef _SYS_SIGNALFD_H
2570af302Sopenharmony_ci#define _SYS_SIGNALFD_H
3570af302Sopenharmony_ci
4570af302Sopenharmony_ci#ifdef __cplusplus
5570af302Sopenharmony_ciextern "C" {
6570af302Sopenharmony_ci#endif
7570af302Sopenharmony_ci
8570af302Sopenharmony_ci#include <stdint.h>
9570af302Sopenharmony_ci#include <fcntl.h>
10570af302Sopenharmony_ci
11570af302Sopenharmony_ci#define __NEED_sigset_t
12570af302Sopenharmony_ci
13570af302Sopenharmony_ci#include <bits/alltypes.h>
14570af302Sopenharmony_ci
15570af302Sopenharmony_ci#define SFD_CLOEXEC O_CLOEXEC
16570af302Sopenharmony_ci#define SFD_NONBLOCK O_NONBLOCK
17570af302Sopenharmony_ci
18570af302Sopenharmony_ciint signalfd(int, const sigset_t *, int);
19570af302Sopenharmony_ci
20570af302Sopenharmony_cistruct signalfd_siginfo {
21570af302Sopenharmony_ci	uint32_t  ssi_signo;
22570af302Sopenharmony_ci	int32_t   ssi_errno;
23570af302Sopenharmony_ci	int32_t   ssi_code;
24570af302Sopenharmony_ci	uint32_t  ssi_pid;
25570af302Sopenharmony_ci	uint32_t  ssi_uid;
26570af302Sopenharmony_ci	int32_t   ssi_fd;
27570af302Sopenharmony_ci	uint32_t  ssi_tid;
28570af302Sopenharmony_ci	uint32_t  ssi_band;
29570af302Sopenharmony_ci	uint32_t  ssi_overrun;
30570af302Sopenharmony_ci	uint32_t  ssi_trapno;
31570af302Sopenharmony_ci	int32_t   ssi_status;
32570af302Sopenharmony_ci	int32_t   ssi_int;
33570af302Sopenharmony_ci	uint64_t  ssi_ptr;
34570af302Sopenharmony_ci	uint64_t  ssi_utime;
35570af302Sopenharmony_ci	uint64_t  ssi_stime;
36570af302Sopenharmony_ci	uint64_t  ssi_addr;
37570af302Sopenharmony_ci	uint16_t  ssi_addr_lsb;
38570af302Sopenharmony_ci	uint16_t  __pad2;
39570af302Sopenharmony_ci	int32_t   ssi_syscall;
40570af302Sopenharmony_ci	uint64_t  ssi_call_addr;
41570af302Sopenharmony_ci	uint32_t  ssi_arch;
42570af302Sopenharmony_ci	uint8_t   __pad[128-14*4-5*8-2*2];
43570af302Sopenharmony_ci};
44570af302Sopenharmony_ci
45570af302Sopenharmony_ci#ifdef __cplusplus
46570af302Sopenharmony_ci}
47570af302Sopenharmony_ci#endif
48570af302Sopenharmony_ci
49570af302Sopenharmony_ci#endif
50