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.
12 lines
131 B
Bash
Executable File
12 lines
131 B
Bash
Executable File
#!/bin/sh
|
|
|
|
# Check signalfd4 syscall decoding.
|
|
|
|
. "${srcdir=.}/init.sh"
|
|
|
|
run_prog
|
|
run_strace -e signalfd4 $args
|
|
match_grep
|
|
|
|
exit 0
|