syscalls.h update #9 (open/close)
Subsystems (8)
PATCH 1/1 syscalls.h update #9 (open/close)
Hi,
Here's the next installment in moving syscall prototypes to linux/syscalls.h and removing the ad hoc instances of them.
Built on ia32, ia64, and x86_64.
(patch archive is at:
http://developer.osdl.org/rddunlap/syscalls/)
This is my last planned patch, but I'll be looking for syscalls that I've missed. I expect that there will be a few.
I'm going to ask DaveJ or Arnd to take over on the __KERNEL_SYSCALLS_ patches... please.
--
~Randy
applies_to: linux-263-rc2-mm1
description: remove sys_open() & sys_close() from linux/fs.h; add linux/syscalls.h to several files that use sys_open() / sys_close();
diffstat:=
arch/alpha/kernel/alpha_ksyms.c | 1 + arch/sparc64/solaris/socksys.c | 1 + drivers/media/dvb/frontends/alps_tdlb7.c | 1 + drivers/media/dvb/frontends/sp887x.c | 1 + drivers/media/dvb/frontends/tda1004x.c | 1 + fs/binfmt_elf.c | 1 + fs/binfmt_misc.c | 1 + fs/eventpoll.c | 1 + fs/exec.c | 1 + include/linux/fs.h | 3 --- include/linux/syscalls.h | 2 +- net/socket.c | 1 + security/selinux/hooks.c | 1 + 13 files changed, 12 insertions(+), 4 deletions(-)
fs/binfmt_misc.c renamed from fs/binfmt_misc.c~openclose +1 -0
@@ -26,6 +26,7 @@#include <linux/pagemap.h> #include <linux/namei.h> #include <linux/mount.h> +#include <linux/syscalls.h> #include <asm/uaccess.h>
fs/exec.c renamed from fs/exec.c~openclose +1 -0
@@ -44,6 +44,7 @@#include <linux/ptrace.h> #include <linux/mount.h> #include <linux/security.h> +#include <linux/syscalls.h> #include <linux/rmap-locking.h> #include <asm/uaccess.h>
fs/eventpoll.c renamed from fs/eventpoll.c~openclose +1 -0
@@ -27,6 +27,7 @@#include <linux/list.h> #include <linux/hash.h> #include <linux/spinlock.h> +#include <linux/syscalls.h> #include <linux/rwsem.h> #include <linux/wait.h> #include <linux/eventpoll.h>
fs/binfmt_elf.c renamed from fs/binfmt_elf.c~openclose +1 -0
@@ -36,6 +36,7 @@#include <linux/highmem.h> #include <linux/pagemap.h> #include <linux/security.h> +#include <linux/syscalls.h> #include <asm/uaccess.h> #include <asm/param.h>
arch/sparc64/solaris/socksys.c renamed from arch/sparc64/solaris/socksys.c~openclose +1 -0
@@ -24,6 +24,7 @@#include <linux/init.h> #include <linux/poll.h> #include <linux/slab.h> +#include <linux/syscalls.h> #include <linux/in.h> #include <linux/devfs_fs_kernel.h>
arch/alpha/kernel/alpha_ksyms.c renamed from arch/alpha/kernel/alpha_ksyms.c~openclose +1 -0
@@ -11,6 +11,7 @@#include <linux/user.h> #include <linux/elfcore.h> #include <linux/socket.h> +#include <linux/syscalls.h> #include <linux/in.h> #include <linux/in6.h> #include <linux/pci.h>
drivers/media/dvb/frontends/tda1004x.c renamed from drivers/media/dvb/frontends/tda1004x.c~openclose +1 -0
@@ -37,6 +37,7 @@#include <linux/init.h> #include <linux/string.h> #include <linux/slab.h> +#include <linux/syscalls.h> #include <linux/fs.h> #include <linux/unistd.h> #include <linux/fcntl.h>
drivers/media/dvb/frontends/alps_tdlb7.c renamed from drivers/media/dvb/frontends/alps_tdlb7.c~openclose +1 -0
@@ -35,6 +35,7 @@#include <linux/init.h> #include <linux/vmalloc.h> #include <linux/fs.h> +#include <linux/syscalls.h> #include <linux/unistd.h> #include <linux/delay.h>
drivers/media/dvb/frontends/sp887x.c renamed from drivers/media/dvb/frontends/sp887x.c~openclose +1 -0
@@ -19,6 +19,7 @@#include <linux/init.h> #include <linux/string.h> #include <linux/slab.h> +#include <linux/syscalls.h> #include <linux/fs.h> #include <linux/unistd.h> #include <linux/fcntl.h>
include/linux/fs.h renamed from include/linux/fs.h~openclose +0 -3
@@ -1125,10 +1125,7 @@ static inline int break_lease(struct ino/* fs/open.c */ -asmlinkage long sys_open (const char __user *,int ,int ); -asmlinkage long sys_close (unsigned int );/* yes, it's really unsigned */ extern int do_truncate (struct dentry *,loff_t start); -extern struct file *filp_open (const char *,int ,int );extern struct file *dentry_open (struct dentry *,struct vfsmount *,int );extern int filp_close (struct file *,fl_owner_t id);
include/linux/syscalls.h renamed from include/linux/syscalls.h~openclose +1 -1
@@ -380,7 +380,7 @@ asmlinkage long sys_getdents64(unsignedasmlinkage long sys_setsockopt (int fd,int level,int optname,char *optval,int optlen);asmlinkage long sys_getsockopt (int fd,int level,int optname, -void *optval,int *optlen); +char __user *optval,int __user *optlen);asmlinkage long sys_bind (int ,struct sockaddr *,int );asmlinkage long sys_connect (int ,struct sockaddr *,int );asmlinkage long sys_accept (int ,struct sockaddr *,int *);
net/socket.c renamed from net/socket.c~openclose +1 -0
@@ -78,6 +78,7 @@#include <linux/divert.h> #include <linux/mount.h> #include <linux/security.h> +#include <linux/syscalls.h> #include <linux/compat.h> #include <linux/kmod.h>
security/selinux/hooks.c renamed from security/selinux/hooks.c~openclose +1 -0
@@ -34,6 +34,7 @@#include <linux/swap.h> #include <linux/smp_lock.h> #include <linux/spinlock.h> +#include <linux/syscalls.h> #include <linux/file.h> #include <linux/namei.h> #include <linux/mount.h>
Quoted 3 lines · Randy.Dunlap
Here's the next installment in moving syscall prototypes to
linux/syscalls.hand removing the ad hoc instances of them.
Thanks, Randy. I am astonished at how much there was to do.