Commit Graph

7 Commits

Author SHA1 Message Date
Denys Vlasenko
a6d91ded3f Tidy up includes and copyright notices, fix indentation
The files not mentioned in changelog below had only
copyright notices fixes and indentation fixes.

* defs.h: Include <stdint.h> and <inttypes.h>.
* file.c: Do not include <inttypes.h>.
Move struct kernel_dirent declaration below top include block.
* block.c: Do not include <stdint.h> and <inttypes.h>.
* quota.c: Likewise.
* desc.c: Likewise.
* signal.c: Likewise.

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2012-03-16 12:02:22 +01:00
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