Commit Graph

6 Commits

Author SHA1 Message Date
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
Mike Frysinger
86b23b73b8 Mark shell scripts as executable
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2009-09-18 12:07:03 +00:00
48e7c6e29a 2008-04-19 Dmitry V. Levin <ldv@altlinux.org>
* signalent.sh: Fix sort(1) old-style options.
	* syscallent.sh: Likewise.
	Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2008-04-19 14:18:23 +00:00
Roland McGrath
1e1b61d077 2003-02-26 Stuart Menefy <stuart.menefy@st.com>
* linux/ioctlent.sh: Take an arg for location of header files
	* syscallent.sh: Replaced lost $
2003-03-31 01:03:34 +00:00
Roland McGrath
270b449179 2002-12-26 Roland McGrath <roland@redhat.com>
* syscallent.sh: Grok three flavors of #define line, uniquify.
	* linux/hppa/syscallent.sh: File removed.
	* linux/powerpc/syscallent.sh: File removed.
2002-12-30 00:51:32 +00:00
Wichert Akkerman
76baf7c9f6 Initial revision 1999-02-19 00:21:36 +00:00