Example #1
0
int
sys_ppoll(struct tcb *tcp)
{
	int rc = decode_poll(tcp, tcp->u_arg[2]);
	if (entering(tcp)) {
		print_timespec(tcp, tcp->u_arg[2]);
		tprints(", ");
		print_sigset(tcp, tcp->u_arg[3], 0);
		tprintf(", %lu", tcp->u_arg[4]);
	}
	return rc;
}
Example #2
0
int
sys_ppoll(struct tcb *tcp)
{
    int rc = decode_poll(tcp, tcp->u_arg[2]);
    if (entering(tcp)) {
        print_timespec(tcp, tcp->u_arg[2]);
        tprints(", ");
        /* NB: kernel requires arg[4] == NSIG / 8 */
        print_sigset_addr_len(tcp, tcp->u_arg[3], tcp->u_arg[4]);
        tprintf(", %lu", tcp->u_arg[4]);
    }
    return rc;
}
Example #3
0
int
sys_poll(struct tcb *tcp)
{
    int rc = decode_poll(tcp, 0);
    if (entering(tcp)) {
# ifdef INFTIM
        if (tcp->u_arg[2] == INFTIM)
            tprints("INFTIM");
        else
# endif
            tprintf("%ld", tcp->u_arg[2]);
    }
    return rc;
}