3 #ifdef HAVE_SYS_SIGNALFD_H
4 # include <sys/signalfd.h>
7 #include "xlat/sfd_flags.h"
10 do_signalfd(struct tcb *tcp, int flags_arg)
12 /* NB: kernel requires arg[2] == NSIG / 8 */
13 printfd(tcp, tcp->u_arg[0]);
15 print_sigset_addr_len(tcp, tcp->u_arg[1], tcp->u_arg[2]);
16 tprintf(", %lu", tcp->u_arg[2]);
19 printflags(sfd_flags, tcp->u_arg[flags_arg], "SFD_???");
22 return RVAL_DECODED | RVAL_FD;
27 return do_signalfd(tcp, -1);
32 return do_signalfd(tcp, 3);