[PATCH] add syscalls.h

From: Randy.Dunlap
Date: Mon Feb 02 2004 - 01:26:16 EST


| Date: Tue, 27 Jan 2004 16:46:15 -0800
| From: Andrew Morton <akpm@xxxxxxxx>
| Subject: Re: NGROUPS 2.6.2rc2
|
|
[snip]
| rant. We have soooo many syscalls declared in .c files. We had a bug due
| to this a while back. Problem is, we have no anointed header in which to
| place them. include/linux/syscalls.h would suit. And unistd.h for
| arch-specific syscalls. But that's not appropriate to this patch.


I am working on this. Is anyone else?

I have parts 2.6.1-non-arch* ready for testing, I believe,
except that it will likely require more changes/additions.

I have begun on 2.6.1-arch* but still have a ways to go.

Caveats:
I have only patched 2.6.1. I will update patches for 2.6.2-rc-current.
I have only tested by building allmodconfig on P4.
Have not test-booted yet.

Patch files for 2.6.1 are here:


http://developer.osdl.org/rddunlap/syscalls/2.6.1-arch-syscalls.diff
drivers/macintosh/via-pmu.c | 2
fs/compat.c | 14 ---
include/linux/syscalls.h | 173 ++++++++++++++++++++++++++++++++++++++++++++
include/linux/sysctl.h | 1
init/do_mounts.h | 15 ---
init/do_mounts_devfs.c | 6 -
init/initramfs.c | 12 ---
kernel/compat.c | 31 -------
kernel/power/disk.c | 3
kernel/power/swsusp.c | 3
kernel/sysctl.c | 2
kernel/uid16.c | 13 ---
net/compat.c | 23 -----
13 files changed, 184 insertions(+), 114 deletions(-)


http://developer.osdl.org/rddunlap/syscalls/2.6.1-non-arch-syscalls.diff
arch/alpha/kernel/osf_sys.c | 3 --
arch/ia64/ia32/ia32_ioctl.c | 3 --
arch/ia64/ia32/sys_ia32.c | 26 ---------------------
arch/mips/kernel/ioctl32.c | 3 --
arch/mips/kernel/irixioctl.c | 4 ---
arch/mips/kernel/linux32.c | 13 ----------
arch/mips/kernel/sysirix.c | 15 ------------
arch/parisc/hpux/ioctl.c | 3 --
arch/parisc/kernel/sys_parisc.c | 14 -----------
arch/parisc/kernel/sys_parisc32.c | 7 -----
arch/ppc64/kernel/ppc_ksyms.c | 2 -
arch/ppc64/kernel/sys_ppc32.c | 44 +-----------------------------------
arch/s390/kernel/compat_ioctl.c | 3 --
arch/s390/kernel/compat_linux.c | 28 ----------------------
arch/s390/kernel/sys_s390.c | 3 --
arch/sparc/kernel/sunos_ioctl.c | 2 -
arch/sparc/kernel/sys_sunos.c | 5 ----
arch/sparc64/kernel/sparc64_ksyms.c | 2 -
arch/sparc64/kernel/sunos_ioctl32.c | 3 --
arch/sparc64/kernel/sys_sparc.c | 3 --
arch/sparc64/kernel/sys_sparc32.c | 25 --------------------
arch/sparc64/kernel/sys_sunos32.c | 3 --
arch/sparc64/solaris/ioctl.c | 3 --
arch/sparc64/solaris/socksys.c | 3 --
arch/sparc64/solaris/timod.c | 2 -
arch/x86_64/ia32/ia32_ioctl.c | 3 --
arch/x86_64/ia32/sys_ia32.c | 27 ----------------------
arch/x86_64/kernel/x8664_ksyms.c | 3 --
include/asm-ia64/unistd.h | 5 ++++
include/asm-mips/unistd.h | 5 ++++
include/asm-parisc/unistd.h | 4 +++
include/asm-ppc/unistd.h | 4 +++
include/asm-ppc64/unistd.h | 4 +++
include/asm-sparc/unistd.h | 5 ++++
include/asm-sparc64/unistd.h | 5 ++++
include/asm-v850/unistd.h | 4 +++
include/asm-x86_64/unistd.h | 4 +++
37 files changed, 67 insertions(+), 228 deletions(-)


Do these look OK, as far as they go? or am I way off?

--
~Randy


Haven't addressed these yet:

sys_brk
sys_wait*
sys_setuid/gid etc.
sys_init/delete_module
sys_ni_syscall
sys_get/setpriority
signal-related syscalls
rt-related syscalls
sys_execve
sys_ptrace
sys_newuname
schedule-related syscalls
sys_fadvise64_64
sys_nfsservctl
sys_kill
sys_setgroups
sys_sethost/domainname
sys_umask
sys_modify_ldt
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/