strace/freebsd
Denys Vlasenko ac1ce77a23 Stop using nargs == -1 in syscallent tables
Usage -1 as argument count in syscallent tables
necessitates the check for it, a-la:
if (sysent[tcp->scno].nargs != -1)
    tcp->u_nargs = sysent[tcp->scno].nargs;
else
    tcp->u_nargs = MAX_ARGS;
which is stupid: we waste cycles checking something which
is constant and known at compile time.

* defs.h: Make struct sysent::nargs unsigned.
* freebsd/i386/syscallent.h: Replace nargs of -1 with MA.
* linux/s390/syscallent.h: Likewise.
* linux/s390x/syscallent.h: Likewise.
* svr4/syscallent.h: Likewise.
* freebsd/syscalls.pl: Likewise in generator script.
* syscallent.sh: Likewise in generator script.
* syscall.c: Add define MA MAX_ARGS / undef MA around includes
of syscallent[N].h.

Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
2011-08-23 13:24:17 +02:00
..
i386 Stop using nargs == -1 in syscallent tables 2011-08-23 13:24:17 +02:00
ioctlent.sh Mark shell scripts as executable 2009-09-18 12:07:03 +00:00
syscalls.cat Add FreeBSD support 2000-09-01 21:03:06 +00:00
syscalls.pl Stop using nargs == -1 in syscallent tables 2011-08-23 13:24:17 +02:00
syscalls.print Use configure to detect 64bit off_t and rlim_t 2001-03-08 13:59:00 +00:00