Dmitry V. Levin
30ac0627f2
* configure.ac (AC_CHECK_FUNCS): Add eventfd. (AC_CHECK_HEADERS): Add sys/signalfd.h. * signalfd.c: Include <fcntl.h>. [HAVE_SYS_SIGNALFD_H] Include <sys/signalfd.h>. Include "xlat/sfd_flags.h". (do_signalfd): Use sfd_flags for flags decoding. * xlat/sfd_flags.in: New file. * tests/signalfd.c: Likewise. * tests/signalfd.expected: Likewise. * tests/signalfd.test: New test. * tests/Makefile.am (check_PROGRAMS): Add signalfd. (TESTS): Add signalfd.test. (EXTRA_DIST): Add signalfd.expected. * tests/.gitignore: Add signalfd.
2 lines
85 B
Plaintext
2 lines
85 B
Plaintext
signalfd4\(-1, \[(USR2 CHLD|CHLD USR2)\], (4|8|16), SFD_CLOEXEC\|SFD_NONBLOCK\) += 0
|