1 diff -Naurp -X /home/rddunlap/doc/dontdiff-osdl linux-262-rc3/arch/alpha/kernel/osf_sys.c linux-262-rc3-syscalls/arch/alpha/kernel/osf_sys.c
2 --- linux-262-rc3/arch/alpha/kernel/osf_sys.c 2004-01-08 22:59:02.000000000 -0800
3 +++ linux-262-rc3-syscalls/arch/alpha/kernel/osf_sys.c 2004-02-02 10:17:22.000000000 -0800
6 #include <linux/smp_lock.h>
7 #include <linux/stddef.h>
8 +#include <linux/syscalls.h>
9 #include <linux/unistd.h>
10 #include <linux/ptrace.h>
11 #include <linux/slab.h>
12 @@ -1315,8 +1316,6 @@ arch_get_unmapped_area(struct file *filp
15 #ifdef CONFIG_OSF4_COMPAT
16 -extern ssize_t sys_readv(unsigned long, const struct iovec *, unsigned long);
17 -extern ssize_t sys_writev(unsigned long, const struct iovec *, unsigned long);
19 /* Clear top 32 bits of iov_len in the user's buffer for
20 compatibility with old versions of OSF/1 where iov_len
21 diff -Naurp -X /home/rddunlap/doc/dontdiff-osdl linux-262-rc3/arch/ia64/ia32/ia32_ioctl.c linux-262-rc3-syscalls/arch/ia64/ia32/ia32_ioctl.c
22 --- linux-262-rc3/arch/ia64/ia32/ia32_ioctl.c 2004-01-08 22:59:48.000000000 -0800
23 +++ linux-262-rc3-syscalls/arch/ia64/ia32/ia32_ioctl.c 2004-02-02 10:17:22.000000000 -0800
27 #include <linux/signal.h> /* argh, msdos_fs.h isn't self-contained... */
28 +#include <linux/syscalls.h>
36 -asmlinkage long sys_ioctl(unsigned int fd, unsigned int cmd, unsigned long arg);
39 #include "compat_ioctl.c"
41 diff -Naurp -X /home/rddunlap/doc/dontdiff-osdl linux-262-rc3/arch/ia64/ia32/sys_ia32.c linux-262-rc3-syscalls/arch/ia64/ia32/sys_ia32.c
42 --- linux-262-rc3/arch/ia64/ia32/sys_ia32.c 2004-02-02 09:54:09.000000000 -0800
43 +++ linux-262-rc3-syscalls/arch/ia64/ia32/sys_ia32.c 2004-02-02 20:05:23.000000000 -0800
46 #include <linux/config.h>
47 #include <linux/kernel.h>
48 +#include <linux/syscalls.h>
49 #include <linux/sysctl.h>
50 #include <linux/sched.h>
53 #define high2lowgid(gid) ((gid) > 65535 ? 65534 : (gid))
55 extern asmlinkage long sys_execve (char *, char **, char **, struct pt_regs *);
56 -extern asmlinkage long sys_mprotect (unsigned long, size_t, unsigned long);
57 -extern asmlinkage long sys_munmap (unsigned long, size_t);
58 extern unsigned long arch_get_unmapped_area (struct file *, unsigned long, unsigned long,
59 unsigned long, unsigned long);
61 @@ -949,9 +948,6 @@ sys32_old_select (struct sel_arg_struct
62 (struct compat_timeval *) A(a.tvp));
65 -asmlinkage ssize_t sys_readv (unsigned long,const struct iovec *,unsigned long);
66 -asmlinkage ssize_t sys_writev (unsigned long,const struct iovec *,unsigned long);
69 get_compat_iovec (struct compat_iovec *iov32, struct iovec *iov_buf, u32 count, int type)
71 @@ -2307,8 +2303,6 @@ struct sysctl32 {
72 unsigned int __unused[4];
75 -extern asmlinkage long sys_sysctl(struct __sysctl_args *args);
78 sys32_sysctl (struct sysctl32 *args)
80 @@ -2456,16 +2450,12 @@ sys32_setgroups16 (int gidsetsize, short
82 sys32_truncate64 (unsigned int path, unsigned int len_lo, unsigned int len_hi)
84 - extern asmlinkage long sys_truncate (const char *path, unsigned long length);
86 return sys_truncate((const char *) A(path), ((unsigned long) len_hi << 32) | len_lo);
90 sys32_ftruncate64 (int fd, unsigned int len_lo, unsigned int len_hi)
92 - extern asmlinkage long sys_ftruncate (int fd, unsigned long length);
94 return sys_ftruncate(fd, ((unsigned long) len_hi << 32) | len_lo);
97 @@ -2554,7 +2544,6 @@ struct sysinfo32 {
99 sys32_sysinfo (struct sysinfo32 *info)
101 - extern asmlinkage long sys_sysinfo (struct sysinfo *);
105 @@ -2636,7 +2625,6 @@ sys32_pwrite (unsigned int fd, void *buf
107 sys32_sendfile (int out_fd, int in_fd, int *offset, unsigned int count)
109 - extern asmlinkage long sys_sendfile (int, int, off_t *, size_t);
110 mm_segment_t old_fs = get_fs();
113 @@ -2657,7 +2645,6 @@ sys32_sendfile (int out_fd, int in_fd, i
115 sys32_personality (unsigned int personality)
117 - extern asmlinkage long sys_personality (unsigned long);
120 if (current->personality == PER_LINUX32 && personality == PER_LINUX)
121 @@ -3049,9 +3036,6 @@ copy_mount_stuff_to_kernel(const void *u
125 -extern asmlinkage long sys_mount(char * dev_name, char * dir_name, char * type,
126 - unsigned long new_flags, void *data);
128 #define SMBFS_NAME "smbfs"
129 #define NCPFS_NAME "ncpfs"
131 @@ -3116,8 +3100,6 @@ sys32_mount(char *dev_name, char *dir_na
135 -extern asmlinkage long sys_setreuid(uid_t ruid, uid_t euid);
137 asmlinkage long sys32_setreuid(compat_uid_t ruid, compat_uid_t euid)
140 @@ -3127,8 +3109,6 @@ asmlinkage long sys32_setreuid(compat_ui
141 return sys_setreuid(sruid, seuid);
144 -extern asmlinkage long sys_setresuid(uid_t ruid, uid_t euid, uid_t suid);
147 sys32_setresuid(compat_uid_t ruid, compat_uid_t euid,
149 @@ -3141,8 +3121,6 @@ sys32_setresuid(compat_uid_t ruid, compa
150 return sys_setresuid(sruid, seuid, ssuid);
153 -extern asmlinkage long sys_setregid(gid_t rgid, gid_t egid);
156 sys32_setregid(compat_gid_t rgid, compat_gid_t egid)
158 @@ -3153,8 +3131,6 @@ sys32_setregid(compat_gid_t rgid, compat
159 return sys_setregid(srgid, segid);
162 -extern asmlinkage long sys_setresgid(gid_t rgid, gid_t egid, gid_t sgid);
165 sys32_setresgid(compat_gid_t rgid, compat_gid_t egid,
167 @@ -3284,8 +3260,6 @@ nfs_getfh32_res_trans(union nfsctl_res *
171 -extern asmlinkage long sys_nfsservctl(int cmd, void *arg, void *resp);
174 sys32_nfsservctl(int cmd, struct nfsctl_arg32 *arg32, union nfsctl_res32 *res32)
176 diff -Naurp -X /home/rddunlap/doc/dontdiff-osdl linux-262-rc3/arch/mips/kernel/ioctl32.c linux-262-rc3-syscalls/arch/mips/kernel/ioctl32.c
177 --- linux-262-rc3/arch/mips/kernel/ioctl32.c 2004-01-08 22:59:33.000000000 -0800
178 +++ linux-262-rc3-syscalls/arch/mips/kernel/ioctl32.c 2004-02-02 10:17:22.000000000 -0800
180 #include <linux/ethtool.h>
181 #include <linux/mii.h>
182 #include <linux/if_bonding.h>
183 +#include <linux/syscalls.h>
184 #include <linux/watchdog.h>
186 #include <asm/ioctls.h>
188 #include <asm/sibyte/trace_prof.h>
191 -long sys_ioctl(unsigned int fd, unsigned int cmd, unsigned long arg);
193 static int w_long(unsigned int fd, unsigned int cmd, unsigned long arg)
195 mm_segment_t old_fs = get_fs();
196 diff -Naurp -X /home/rddunlap/doc/dontdiff-osdl linux-262-rc3/arch/mips/kernel/irixioctl.c linux-262-rc3-syscalls/arch/mips/kernel/irixioctl.c
197 --- linux-262-rc3/arch/mips/kernel/irixioctl.c 2004-01-08 22:59:46.000000000 -0800
198 +++ linux-262-rc3-syscalls/arch/mips/kernel/irixioctl.c 2004-02-02 10:17:22.000000000 -0800
200 #include <linux/smp.h>
201 #include <linux/smp_lock.h>
202 #include <linux/sockios.h>
203 +#include <linux/syscalls.h>
204 #include <linux/tty.h>
205 #include <linux/file.h>
207 @@ -26,9 +27,6 @@ struct irix_termios {
211 -extern asmlinkage int sys_ioctl(unsigned int fd, unsigned int cmd,
212 - unsigned long arg);
213 -extern asmlinkage int sys_write(unsigned int fd,char * buf,unsigned int count);
214 extern void start_tty(struct tty_struct *tty);
215 static struct tty_struct *get_tty(int fd)
217 diff -Naurp -X /home/rddunlap/doc/dontdiff-osdl linux-262-rc3/arch/mips/kernel/linux32.c linux-262-rc3-syscalls/arch/mips/kernel/linux32.c
218 --- linux-262-rc3/arch/mips/kernel/linux32.c 2004-01-08 22:59:45.000000000 -0800
219 +++ linux-262-rc3-syscalls/arch/mips/kernel/linux32.c 2004-02-02 10:17:22.000000000 -0800
221 #include <linux/sem.h>
222 #include <linux/msg.h>
223 #include <linux/icmpv6.h>
224 +#include <linux/syscalls.h>
225 #include <linux/sysctl.h>
226 #include <linux/utime.h>
227 #include <linux/utsname.h>
228 @@ -133,8 +134,6 @@ asmlinkage int sys_truncate64(const char
229 return sys_truncate(path, ((long) high << 32) | low);
232 -asmlinkage long sys_ftruncate(unsigned int fd, unsigned long length);
234 asmlinkage int sys_ftruncate64(unsigned int fd, unsigned int high,
237 @@ -633,10 +632,6 @@ sys32_settimeofday(struct compat_timeval
238 return do_sys_settimeofday(tv ? &kts : NULL, tz ? &ktz : NULL);
241 -extern asmlinkage long sys_llseek(unsigned int fd, unsigned long offset_high,
242 - unsigned long offset_low, loff_t * result,
243 - unsigned int origin);
245 asmlinkage int sys32_llseek(unsigned int fd, unsigned int offset_high,
246 unsigned int offset_low, loff_t * result,
248 @@ -1734,8 +1729,6 @@ asmlinkage long sys32_newuname(struct ne
252 -extern asmlinkage long sys_personality(unsigned long);
254 asmlinkage int sys32_personality(unsigned long personality)
257 @@ -1820,8 +1813,6 @@ asmlinkage int sys32_adjtimex(struct tim
261 -extern asmlinkage ssize_t sys_sendfile(int out_fd, int in_fd, off_t *offset, size_t count);
263 asmlinkage int sys32_sendfile(int out_fd, int in_fd, compat_off_t *offset,
266 @@ -1842,8 +1833,6 @@ asmlinkage int sys32_sendfile(int out_fd
270 -asmlinkage ssize_t sys_readahead(int fd, loff_t offset, size_t count);
272 asmlinkage ssize_t sys32_readahead(int fd, u32 pad0, u64 a2, u64 a3,
275 diff -Naurp -X /home/rddunlap/doc/dontdiff-osdl linux-262-rc3/arch/mips/kernel/sysirix.c linux-262-rc3-syscalls/arch/mips/kernel/sysirix.c
276 --- linux-262-rc3/arch/mips/kernel/sysirix.c 2004-01-08 23:00:02.000000000 -0800
277 +++ linux-262-rc3-syscalls/arch/mips/kernel/sysirix.c 2004-02-02 10:17:22.000000000 -0800
279 #include <linux/namei.h>
280 #include <linux/socket.h>
281 #include <linux/security.h>
282 +#include <linux/syscalls.h>
284 #include <asm/ptrace.h>
285 #include <asm/page.h>
286 @@ -238,8 +239,6 @@ extern unsigned long irix_mapelf(int fd,
287 extern asmlinkage int sys_setpgid(pid_t pid, pid_t pgid);
288 extern void sys_sync(void);
289 extern asmlinkage int sys_getsid(pid_t pid);
290 -extern asmlinkage long sys_write (unsigned int fd, const char *buf, unsigned long count);
291 -extern asmlinkage long sys_lseek (unsigned int fd, off_t offset, unsigned int origin);
292 extern asmlinkage int sys_getgroups(int gidsetsize, gid_t *grouplist);
293 extern asmlinkage int sys_setgroups(int gidsetsize, gid_t *grouplist);
294 extern int getrusage(struct task_struct *p, int who, struct rusage *ru);
295 @@ -694,9 +693,6 @@ asmlinkage int irix_pause(void)
299 -extern asmlinkage long sys_mount(char * dev_name, char * dir_name, char * type,
300 - unsigned long new_flags, void * data);
302 /* XXX need more than this... */
303 asmlinkage int irix_mount(char *dev_name, char *dir_name, unsigned long flags,
304 char *type, void *data, int datalen)
305 @@ -1356,8 +1352,6 @@ asmlinkage int irix_fxstat(int version,
309 -extern asmlinkage int sys_mknod(const char * filename, int mode, unsigned dev);
311 asmlinkage int irix_xmknod(int ver, char *filename, int mode, unsigned dev)
314 @@ -1532,10 +1526,6 @@ out:
318 -extern asmlinkage unsigned long
319 -sys_mmap(unsigned long addr, size_t len, int prot, int flags, int fd,
322 asmlinkage int irix_mmap64(struct pt_regs *regs)
324 int len, prot, flags, fd, off1, off2, error, base = 0;
325 @@ -2106,9 +2096,6 @@ out:
329 -extern asmlinkage long sys_fcntl(unsigned int fd, unsigned int cmd,
330 - unsigned long arg);
332 #define IRIX_F_ALLOCSP 10
334 asmlinkage int irix_fcntl(int fd, int cmd, int arg)
335 diff -Naurp -X /home/rddunlap/doc/dontdiff-osdl linux-262-rc3/arch/parisc/hpux/ioctl.c linux-262-rc3-syscalls/arch/parisc/hpux/ioctl.c
336 --- linux-262-rc3/arch/parisc/hpux/ioctl.c 2004-01-08 22:59:10.000000000 -0800
337 +++ linux-262-rc3-syscalls/arch/parisc/hpux/ioctl.c 2004-02-02 10:17:22.000000000 -0800
340 #include <linux/sched.h>
341 #include <linux/smp_lock.h>
342 +#include <linux/syscalls.h>
343 #include <asm/errno.h>
344 #include <asm/ioctl.h>
345 #include <asm/termios.h>
346 #include <asm/uaccess.h>
348 -int sys_ioctl(unsigned int, unsigned int, unsigned long);
350 static int hpux_ioctl_t(int fd, unsigned long cmd, unsigned long arg)
352 int result = -EOPNOTSUPP;
353 diff -Naurp -X /home/rddunlap/doc/dontdiff-osdl linux-262-rc3/arch/parisc/hpux/sys_hpux.c linux-262-rc3-syscalls/arch/parisc/hpux/sys_hpux.c
354 --- linux-262-rc3/arch/parisc/hpux/sys_hpux.c 2004-01-08 22:59:42.000000000 -0800
355 +++ linux-262-rc3-syscalls/arch/parisc/hpux/sys_hpux.c 2004-02-02 11:08:14.000000000 -0800
357 #include <linux/sched.h>
358 #include <linux/slab.h>
359 #include <linux/smp_lock.h>
360 +#include <linux/syscalls.h>
361 #include <linux/utsname.h>
362 #include <linux/vmalloc.h>
363 #include <linux/vfs.h>
364 @@ -251,9 +252,6 @@ static int hpux_uname(struct hpux_utsnam
368 -int sys_sethostname(char *, int);
369 -int sys_gethostname(char *, int);
371 /* Note: HP-UX just uses the old suser() function to check perms
372 * in this system call. We'll use capable(CAP_SYS_ADMIN).
374 diff -Naurp -X /home/rddunlap/doc/dontdiff-osdl linux-262-rc3/arch/parisc/kernel/sys_parisc32.c linux-262-rc3-syscalls/arch/parisc/kernel/sys_parisc32.c
375 --- linux-262-rc3/arch/parisc/kernel/sys_parisc32.c 2004-01-08 22:59:19.000000000 -0800
376 +++ linux-262-rc3-syscalls/arch/parisc/kernel/sys_parisc32.c 2004-02-02 10:17:22.000000000 -0800
378 #include <linux/vfs.h>
379 #include <linux/ptrace.h>
380 #include <linux/swap.h>
381 +#include <linux/syscalls.h>
383 #include <asm/types.h>
384 #include <asm/uaccess.h>
385 @@ -1089,7 +1090,6 @@ asmlinkage long sys32_msgrcv(int msqid,
389 -extern asmlinkage ssize_t sys_sendfile(int out_fd, int in_fd, off_t *offset, size_t count);
390 asmlinkage int sys32_sendfile(int out_fd, int in_fd, compat_off_t *offset, s32 count)
392 mm_segment_t old_fs = get_fs();
393 @@ -1197,7 +1197,6 @@ asmlinkage int sys32_nfsservctl(int cmd,
397 -extern asmlinkage ssize_t sys_sendfile64(int out_fd, int in_fd, loff_t *offset, size_t count);
398 typedef long __kernel_loff_t32; /* move this to asm/posix_types.h? */
400 asmlinkage int sys32_sendfile64(int out_fd, int in_fd, __kernel_loff_t32 *offset, s32 count)
401 @@ -1345,8 +1344,6 @@ asmlinkage int sys32_sysinfo(struct sysi
402 * half of the argument has been zeroed by syscall.S.
405 -extern asmlinkage off_t sys_lseek(unsigned int fd, off_t offset, unsigned int origin);
407 asmlinkage int sys32_lseek(unsigned int fd, int offset, unsigned int origin)
409 return sys_lseek(fd, offset, origin);
410 @@ -1367,8 +1364,6 @@ asmlinkage long sys32_semctl(int semid,
411 return sys_semctl (semid, semnum, cmd, arg);
414 -extern long sys_lookup_dcookie(u64 cookie64, char *buf, size_t len);
416 long sys32_lookup_dcookie(u32 cookie_high, u32 cookie_low, char *buf,
419 diff -Naurp -X /home/rddunlap/doc/dontdiff-osdl linux-262-rc3/arch/parisc/kernel/sys_parisc.c linux-262-rc3-syscalls/arch/parisc/kernel/sys_parisc.c
420 --- linux-262-rc3/arch/parisc/kernel/sys_parisc.c 2004-02-02 09:54:10.000000000 -0800
421 +++ linux-262-rc3-syscalls/arch/parisc/kernel/sys_parisc.c 2004-02-02 10:17:22.000000000 -0800
423 #include <linux/mman.h>
424 #include <linux/shm.h>
425 #include <linux/smp_lock.h>
426 +#include <linux/syscalls.h>
428 int sys_pipe(int *fildes)
430 @@ -164,10 +165,6 @@ long sys_shmat_wrapper(int shmid, char *
431 /* Fucking broken ABI */
433 #ifdef CONFIG_PARISC64
434 -extern asmlinkage long sys_truncate(const char *, unsigned long);
435 -extern asmlinkage long sys_ftruncate(unsigned int, unsigned long);
436 -extern asmlinkage long sys_fcntl(unsigned int, unsigned int, unsigned long);
438 asmlinkage long parisc_truncate64(const char * path,
439 unsigned int high, unsigned int low)
441 @@ -196,9 +193,6 @@ asmlinkage long sys_fcntl64(unsigned int
445 -extern asmlinkage long sys_truncate64(const char *, loff_t);
446 -extern asmlinkage long sys_ftruncate64(unsigned int, loff_t);
448 asmlinkage long parisc_truncate64(const char * path,
449 unsigned int high, unsigned int low)
451 @@ -212,12 +206,6 @@ asmlinkage long parisc_ftruncate64(unsig
455 -extern asmlinkage ssize_t sys_pread64(unsigned int fd, char *buf,
456 - size_t count, loff_t pos);
457 -extern asmlinkage ssize_t sys_pwrite64(unsigned int fd, const char *buf,
458 - size_t count, loff_t pos);
459 -extern asmlinkage ssize_t sys_readahead(int fd, loff_t offset, size_t count);
461 asmlinkage ssize_t parisc_pread64(unsigned int fd, char *buf, size_t count,
462 unsigned int high, unsigned int low)
464 diff -Naurp -X /home/rddunlap/doc/dontdiff-osdl linux-262-rc3/arch/ppc64/kernel/ppc_ksyms.c linux-262-rc3-syscalls/arch/ppc64/kernel/ppc_ksyms.c
465 --- linux-262-rc3/arch/ppc64/kernel/ppc_ksyms.c 2004-02-02 09:54:11.000000000 -0800
466 +++ linux-262-rc3-syscalls/arch/ppc64/kernel/ppc_ksyms.c 2004-02-02 10:17:22.000000000 -0800
468 #include <linux/pci.h>
469 #include <linux/delay.h>
470 #include <linux/smp_lock.h>
471 +#include <linux/syscalls.h>
473 #include <asm/page.h>
474 #include <asm/semaphore.h>
476 #include <asm/iSeries/HvLpConfig.h>
479 -extern int sys_ioctl(unsigned int fd, unsigned int cmd, unsigned long arg);
480 extern int do_signal(sigset_t *, struct pt_regs *);
483 diff -Naurp -X /home/rddunlap/doc/dontdiff-osdl linux-262-rc3/arch/ppc64/kernel/sys_ppc32.c linux-262-rc3-syscalls/arch/ppc64/kernel/sys_ppc32.c
484 --- linux-262-rc3/arch/ppc64/kernel/sys_ppc32.c 2004-02-02 09:54:11.000000000 -0800
485 +++ linux-262-rc3-syscalls/arch/ppc64/kernel/sys_ppc32.c 2004-02-02 20:38:33.000000000 -0800
487 #include <linux/ipv6.h>
488 #include <linux/in.h>
489 #include <linux/icmpv6.h>
490 +#include <linux/syscalls.h>
491 +#include <linux/unistd.h>
492 #include <linux/sysctl.h>
493 #include <linux/binfmts.h>
494 #include <linux/dnotify.h>
495 @@ -775,8 +777,6 @@ int cp_compat_stat(struct kstat *stat, s
499 -extern asmlinkage long sys_sysfs(int option, unsigned long arg1, unsigned long arg2);
501 /* Note: it is necessary to treat option as an unsigned int,
502 * with the corresponding cast to a signed int to insure that the
503 * proper conversion (sign extension) between the register representation of a signed int (msr in 32-bit mode)
504 @@ -1152,8 +1152,6 @@ struct sysinfo32 {
505 char _f[20-2*sizeof(int)-sizeof(int)];
508 -extern asmlinkage long sys_sysinfo(struct sysinfo *info);
510 asmlinkage long sys32_sysinfo(struct sysinfo32 *info)
513 @@ -1865,8 +1863,6 @@ asmlinkage long sys32_ipc(u32 call, u32
517 -extern asmlinkage ssize_t sys_sendfile(int out_fd, int in_fd, off_t* offset, size_t count);
519 /* Note: it is necessary to treat out_fd and in_fd as unsigned ints,
520 * with the corresponding cast to a signed int to insure that the
521 * proper conversion (sign extension) between the register representation of a signed int (msr in 32-bit mode)
522 @@ -1891,8 +1887,6 @@ asmlinkage long sys32_sendfile(u32 out_f
526 -extern asmlinkage ssize_t sys_sendfile64(int out_fd, int in_fd, loff_t *offset, size_t count);
528 asmlinkage int sys32_sendfile64(int out_fd, int in_fd, compat_loff_t *offset, s32 count)
530 mm_segment_t old_fs = get_fs();
531 @@ -2193,9 +2187,6 @@ asmlinkage int sys32_sched_rr_get_interv
535 -extern asmlinkage int sys_pciconfig_read(unsigned long bus, unsigned long dfn, unsigned long off,
536 - unsigned long len, unsigned char *buf);
538 asmlinkage int sys32_pciconfig_read(u32 bus, u32 dfn, u32 off, u32 len, u32 ubuf)
540 return sys_pciconfig_read((unsigned long) bus,
541 @@ -2205,12 +2196,6 @@ asmlinkage int sys32_pciconfig_read(u32
542 (unsigned char *)AA(ubuf));
548 -extern asmlinkage int sys_pciconfig_write(unsigned long bus, unsigned long dfn, unsigned long off,
549 - unsigned long len, unsigned char *buf);
551 asmlinkage int sys32_pciconfig_write(u32 bus, u32 dfn, u32 off, u32 len, u32 ubuf)
553 return sys_pciconfig_write((unsigned long) bus,
554 @@ -2234,8 +2219,6 @@ asmlinkage int ppc64_newuname(struct new
558 -extern asmlinkage long sys_personality(unsigned long);
560 asmlinkage int ppc64_personality(unsigned long personality)
563 @@ -2249,8 +2232,6 @@ asmlinkage int ppc64_personality(unsigne
567 -extern asmlinkage long sys_access(const char * filename, int mode);
569 /* Note: it is necessary to treat mode as an unsigned int,
570 * with the corresponding cast to a signed int to insure that the
571 * proper conversion (sign extension) between the register representation of a signed int (msr in 32-bit mode)
572 @@ -2262,8 +2243,6 @@ asmlinkage long sys32_access(const char
576 -extern asmlinkage long sys_creat(const char * pathname, int mode);
578 /* Note: it is necessary to treat mode as an unsigned int,
579 * with the corresponding cast to a signed int to insure that the
580 * proper conversion (sign extension) between the register representation of a signed int (msr in 32-bit mode)
581 @@ -2352,8 +2331,6 @@ asmlinkage long sys32_kill(u32 pid, u32
585 -extern asmlinkage long sys_mkdir(const char * pathname, int mode);
587 /* Note: it is necessary to treat mode as an unsigned int,
588 * with the corresponding cast to a signed int to insure that the
589 * proper conversion (sign extension) between the register representation of a signed int (msr in 32-bit mode)
590 @@ -2372,8 +2349,6 @@ long sys32_nice(u32 increment)
591 return sys_nice((int)increment);
594 -extern off_t sys_lseek(unsigned int fd, off_t offset, unsigned int origin);
596 off_t ppc32_lseek(unsigned int fd, u32 offset, unsigned int origin)
599 @@ -2411,8 +2386,6 @@ out_error:
603 -extern asmlinkage long sys_readlink(const char * path, char * buf, int bufsiz);
605 /* Note: it is necessary to treat bufsiz as an unsigned int,
606 * with the corresponding cast to a signed int to insure that the
607 * proper conversion (sign extension) between the register representation of a signed int (msr in 32-bit mode)
608 @@ -2501,8 +2474,6 @@ asmlinkage long sys32_sched_setscheduler
612 -extern asmlinkage long sys_setdomainname(char *name, int len);
614 /* Note: it is necessary to treat len as an unsigned int,
615 * with the corresponding cast to a signed int to insure that the
616 * proper conversion (sign extension) between the register representation of a signed int (msr in 32-bit mode)
617 @@ -2527,8 +2498,6 @@ asmlinkage long sys32_setgroups(u32 gids
621 -extern asmlinkage long sys_sethostname(char *name, int len);
623 asmlinkage long sys32_sethostname(char *name, u32 len)
625 /* sign extend len */
626 @@ -2569,8 +2538,6 @@ asmlinkage long sys32_ssetmask(u32 newma
627 return sys_ssetmask((int) newmask);
630 -extern asmlinkage long sys_syslog(int type, char * buf, int len);
632 long sys32_syslog(u32 type, char * buf, u32 len)
634 /* sign extend len */
635 @@ -2591,8 +2558,6 @@ asmlinkage long sys32_umask(u32 mask)
639 -extern asmlinkage long sys_umount(char * name, int flags);
641 /* Note: it is necessary to treat flags as an unsigned int,
642 * with the corresponding cast to a signed int to insure that the
643 * proper conversion (sign extension) between the register representation of a signed int (msr in 32-bit mode)
644 @@ -2695,10 +2660,6 @@ int sys32_olduname(struct oldold_utsname
648 -extern unsigned long sys_mmap(unsigned long addr, size_t len,
649 - unsigned long prot, unsigned long flags,
650 - unsigned long fd, off_t offset);
652 unsigned long sys32_mmap2(unsigned long addr, size_t len,
653 unsigned long prot, unsigned long flags,
654 unsigned long fd, unsigned long pgoff)
655 @@ -2752,11 +2713,6 @@ long sys32_tgkill(u32 tgid, u32 pid, int
657 * The 32 bit ABI passes long longs in an odd even register pair.
659 -extern ssize_t sys_pread64(unsigned int fd, char *buf, size_t count,
662 -extern ssize_t sys_pwrite64(unsigned int fd, const char *buf, size_t count,
665 compat_ssize_t sys32_pread64(unsigned int fd, char *ubuf, compat_size_t count,
666 u32 reg6, u32 poshi, u32 poslo)
667 @@ -2770,16 +2726,11 @@ compat_ssize_t sys32_pwrite64(unsigned i
668 return sys_pwrite64(fd, ubuf, count, ((loff_t)poshi << 32) | poslo);
671 -extern ssize_t sys_readahead(int fd, loff_t offset, size_t count);
673 compat_ssize_t sys32_readahead(int fd, u32 r4, u32 offhi, u32 offlo, u32 count)
675 return sys_readahead(fd, ((loff_t)offhi << 32) | offlo, count);
678 -extern asmlinkage long sys_truncate(const char * path, unsigned long length);
679 -extern asmlinkage long sys_ftruncate(unsigned int fd, unsigned long length);
681 asmlinkage int sys32_truncate64(const char * path, u32 reg4,
682 unsigned long high, unsigned long low)
684 @@ -2792,8 +2743,6 @@ asmlinkage int sys32_ftruncate64(unsigne
685 return sys_ftruncate(fd, (high << 32) | low);
688 -extern long sys_lookup_dcookie(u64 cookie64, char *buf, size_t len);
690 long ppc32_lookup_dcookie(u32 cookie_high, u32 cookie_low, char *buf,
693 diff -Naurp -X /home/rddunlap/doc/dontdiff-osdl linux-262-rc3/arch/s390/kernel/compat_linux.c linux-262-rc3-syscalls/arch/s390/kernel/compat_linux.c
694 --- linux-262-rc3/arch/s390/kernel/compat_linux.c 2004-02-02 09:54:11.000000000 -0800
695 +++ linux-262-rc3-syscalls/arch/s390/kernel/compat_linux.c 2004-02-02 10:17:22.000000000 -0800
697 #include <linux/ipv6.h>
698 #include <linux/in.h>
699 #include <linux/icmpv6.h>
700 +#include <linux/syscalls.h>
701 #include <linux/sysctl.h>
702 #include <linux/binfmts.h>
703 #include <linux/compat.h>
706 #include "compat_linux.h"
708 -extern asmlinkage long sys_chown(const char *, uid_t,gid_t);
709 -extern asmlinkage long sys_lchown(const char *, uid_t,gid_t);
710 -extern asmlinkage long sys_fchown(unsigned int, uid_t,gid_t);
711 -extern asmlinkage long sys_setregid(gid_t, gid_t);
712 extern asmlinkage long sys_setgid(gid_t);
713 -extern asmlinkage long sys_setreuid(uid_t, uid_t);
714 extern asmlinkage long sys_setuid(uid_t);
715 -extern asmlinkage long sys_setresuid(uid_t, uid_t, uid_t);
716 -extern asmlinkage long sys_setresgid(gid_t, gid_t, gid_t);
717 extern asmlinkage long sys_setfsuid(uid_t);
718 extern asmlinkage long sys_setfsgid(gid_t);
720 @@ -884,9 +878,6 @@ out:
724 -extern asmlinkage long sys_truncate(const char * path, unsigned long length);
725 -extern asmlinkage long sys_ftruncate(unsigned int fd, unsigned long length);
727 asmlinkage int sys32_truncate64(const char * path, unsigned long high, unsigned long low)
730 @@ -2319,12 +2310,6 @@ asmlinkage int sys32_prctl(int option, u
734 -extern asmlinkage ssize_t sys_pread64(unsigned int fd, char * buf,
735 - size_t count, loff_t pos);
737 -extern asmlinkage ssize_t sys_pwrite64(unsigned int fd, const char * buf,
738 - size_t count, loff_t pos);
740 asmlinkage compat_ssize_t sys32_pread64(unsigned int fd, char *ubuf,
741 compat_size_t count, u32 poshi, u32 poslo)
743 @@ -2341,15 +2326,11 @@ asmlinkage compat_ssize_t sys32_pwrite64
744 return sys_pwrite64(fd, ubuf, count, ((loff_t)AA(poshi) << 32) | AA(poslo));
747 -extern asmlinkage ssize_t sys_readahead(int fd, loff_t offset, size_t count);
749 asmlinkage compat_ssize_t sys32_readahead(int fd, u32 offhi, u32 offlo, s32 count)
751 return sys_readahead(fd, ((loff_t)AA(offhi) << 32) | AA(offlo), count);
754 -extern asmlinkage ssize_t sys_sendfile(int out_fd, int in_fd, off_t *offset, size_t count);
756 asmlinkage int sys32_sendfile(int out_fd, int in_fd, compat_off_t *offset, s32 count)
758 mm_segment_t old_fs = get_fs();
759 @@ -2369,9 +2350,6 @@ asmlinkage int sys32_sendfile(int out_fd
763 -extern asmlinkage ssize_t sys_sendfile64(int out_fd, int in_fd,
764 - loff_t *offset, size_t count);
766 asmlinkage int sys32_sendfile64(int out_fd, int in_fd,
767 compat_loff_t *offset, s32 count)
769 @@ -2676,8 +2654,6 @@ out:
773 -asmlinkage ssize_t sys_read(unsigned int fd, char * buf, size_t count);
775 asmlinkage compat_ssize_t sys32_read(unsigned int fd, char * buf, size_t count)
777 if ((compat_ssize_t) count < 0)
778 @@ -2686,8 +2662,6 @@ asmlinkage compat_ssize_t sys32_read(uns
779 return sys_read(fd, buf, count);
782 -asmlinkage ssize_t sys_write(unsigned int fd, const char * buf, size_t count);
784 asmlinkage compat_ssize_t sys32_write(unsigned int fd, char * buf, size_t count)
786 if ((compat_ssize_t) count < 0)
787 diff -Naurp -X /home/rddunlap/doc/dontdiff-osdl linux-262-rc3/arch/s390/kernel/compat_linux.h linux-262-rc3-syscalls/arch/s390/kernel/compat_linux.h
788 --- linux-262-rc3/arch/s390/kernel/compat_linux.h 2004-02-02 09:54:11.000000000 -0800
789 +++ linux-262-rc3-syscalls/arch/s390/kernel/compat_linux.h 2004-02-02 10:20:45.000000000 -0800
791 #include <linux/config.h>
792 #include <linux/compat.h>
793 #include <linux/socket.h>
794 +#include <linux/syscalls.h>
795 #include <linux/nfs_fs.h>
796 #include <linux/sunrpc/svc.h>
797 #include <linux/nfsd/nfsd.h>
798 diff -Naurp -X /home/rddunlap/doc/dontdiff-osdl linux-262-rc3/arch/s390/kernel/sys_s390.c linux-262-rc3-syscalls/arch/s390/kernel/sys_s390.c
799 --- linux-262-rc3/arch/s390/kernel/sys_s390.c 2004-02-02 09:54:11.000000000 -0800
800 +++ linux-262-rc3-syscalls/arch/s390/kernel/sys_s390.c 2004-02-02 10:17:22.000000000 -0800
802 #include <linux/msg.h>
803 #include <linux/shm.h>
804 #include <linux/stat.h>
805 +#include <linux/syscalls.h>
806 #include <linux/mman.h>
807 #include <linux/file.h>
808 #include <linux/utsname.h>
809 @@ -310,8 +311,6 @@ asmlinkage int s390x_newuname(struct new
813 -extern asmlinkage long sys_personality(unsigned long);
815 asmlinkage int s390x_personality(unsigned long personality)
818 diff -Naurp -X /home/rddunlap/doc/dontdiff-osdl linux-262-rc3/arch/sparc/kernel/sunos_ioctl.c linux-262-rc3-syscalls/arch/sparc/kernel/sunos_ioctl.c
819 --- linux-262-rc3/arch/sparc/kernel/sunos_ioctl.c 2004-01-08 23:00:02.000000000 -0800
820 +++ linux-262-rc3-syscalls/arch/sparc/kernel/sunos_ioctl.c 2004-02-02 10:17:22.000000000 -0800
822 #include <linux/mm.h>
823 #include <linux/smp.h>
824 #include <linux/smp_lock.h>
825 +#include <linux/syscalls.h>
826 #include <linux/file.h>
827 #include <asm/kbio.h>
829 @@ -32,7 +33,6 @@ extern char sunkbd_layout;
830 /* NR_OPEN is now larger and dynamic in recent kernels. */
831 #define SUNOS_NR_OPEN 256
833 -extern asmlinkage int sys_ioctl(unsigned int, unsigned int, unsigned long);
834 extern asmlinkage int sys_setsid(void);
836 asmlinkage int sunos_ioctl (int fd, unsigned long cmd, unsigned long arg)
837 diff -Naurp -X /home/rddunlap/doc/dontdiff-osdl linux-262-rc3/arch/sparc/kernel/sys_sunos.c linux-262-rc3-syscalls/arch/sparc/kernel/sys_sunos.c
838 --- linux-262-rc3/arch/sparc/kernel/sys_sunos.c 2004-01-08 22:59:26.000000000 -0800
839 +++ linux-262-rc3-syscalls/arch/sparc/kernel/sys_sunos.c 2004-02-02 10:17:22.000000000 -0800
841 #include <linux/errno.h>
842 #include <linux/smp.h>
843 #include <linux/smp_lock.h>
844 +#include <linux/syscalls.h>
846 #include <net/sock.h>
848 @@ -1050,13 +1051,9 @@ static inline int check_nonblock(int ret
852 -extern asmlinkage ssize_t sys_read(unsigned int fd,char *buf,int count);
853 -extern asmlinkage ssize_t sys_write(unsigned int fd,char *buf,int count);
854 extern asmlinkage int sys_recv(int fd, void * ubuf, int size, unsigned flags);
855 extern asmlinkage int sys_send(int fd, void * buff, int len, unsigned flags);
856 extern asmlinkage int sys_accept(int fd, struct sockaddr *sa, int *addrlen);
857 -extern asmlinkage int sys_readv(unsigned long fd, const struct iovec * vector, long count);
858 -extern asmlinkage int sys_writev(unsigned long fd, const struct iovec * vector, long count);
861 asmlinkage int sunos_read(unsigned int fd,char *buf,int count)
862 diff -Naurp -X /home/rddunlap/doc/dontdiff-osdl linux-262-rc3/arch/sparc64/kernel/sparc64_ksyms.c linux-262-rc3-syscalls/arch/sparc64/kernel/sparc64_ksyms.c
863 --- linux-262-rc3/arch/sparc64/kernel/sparc64_ksyms.c 2004-01-08 22:59:56.000000000 -0800
864 +++ linux-262-rc3-syscalls/arch/sparc64/kernel/sparc64_ksyms.c 2004-02-02 10:17:22.000000000 -0800
866 #include <linux/fs.h>
867 #include <linux/mm.h>
868 #include <linux/socket.h>
869 +#include <linux/syscalls.h>
870 #include <linux/percpu.h>
871 #include <net/compat.h>
873 @@ -92,7 +93,6 @@ extern int sys_getegid(void);
874 extern int sys_getgid(void);
875 extern int svr4_getcontext(svr4_ucontext_t *uc, struct pt_regs *regs);
876 extern int svr4_setcontext(svr4_ucontext_t *uc, struct pt_regs *regs);
877 -extern int sys_ioctl(unsigned int fd, unsigned int cmd, unsigned long arg);
878 extern int compat_sys_ioctl(unsigned int fd, unsigned int cmd, u32 arg);
879 extern int (*handle_mathemu)(struct pt_regs *, struct fpustate *);
880 extern long sparc32_open(const char * filename, int flags, int mode);
881 diff -Naurp -X /home/rddunlap/doc/dontdiff-osdl linux-262-rc3/arch/sparc64/kernel/sunos_ioctl32.c linux-262-rc3-syscalls/arch/sparc64/kernel/sunos_ioctl32.c
882 --- linux-262-rc3/arch/sparc64/kernel/sunos_ioctl32.c 2004-01-08 23:00:03.000000000 -0800
883 +++ linux-262-rc3-syscalls/arch/sparc64/kernel/sunos_ioctl32.c 2004-02-02 10:17:22.000000000 -0800
885 #include <linux/mm.h>
886 #include <linux/smp.h>
887 #include <linux/smp_lock.h>
888 +#include <linux/syscalls.h>
889 #include <linux/compat.h>
890 #include <asm/kbio.h>
892 @@ -90,8 +91,6 @@ struct ifconf32 {
893 compat_caddr_t ifcbuf;
896 -extern asmlinkage int sys_ioctl(unsigned int fd, unsigned int cmd, unsigned long arg);
898 extern asmlinkage int compat_sys_ioctl(unsigned int, unsigned int, u32);
899 extern asmlinkage int sys_setsid(void);
901 diff -Naurp -X /home/rddunlap/doc/dontdiff-osdl linux-262-rc3/arch/sparc64/kernel/sys_sparc32.c linux-262-rc3-syscalls/arch/sparc64/kernel/sys_sparc32.c
902 --- linux-262-rc3/arch/sparc64/kernel/sys_sparc32.c 2004-02-02 09:54:12.000000000 -0800
903 +++ linux-262-rc3-syscalls/arch/sparc64/kernel/sys_sparc32.c 2004-02-02 20:39:40.000000000 -0800
905 #include <linux/ipv6.h>
906 #include <linux/in.h>
907 #include <linux/icmpv6.h>
908 +#include <linux/syscalls.h>
909 #include <linux/sysctl.h>
910 #include <linux/binfmts.h>
911 #include <linux/dnotify.h>
916 -extern asmlinkage long sys_chown(const char *, uid_t,gid_t);
917 -extern asmlinkage long sys_lchown(const char *, uid_t,gid_t);
918 -extern asmlinkage long sys_fchown(unsigned int, uid_t,gid_t);
919 -extern asmlinkage long sys_setregid(gid_t, gid_t);
920 extern asmlinkage long sys_setgid(gid_t);
921 -extern asmlinkage long sys_setreuid(uid_t, uid_t);
922 extern asmlinkage long sys_setuid(uid_t);
923 -extern asmlinkage long sys_setresuid(uid_t, uid_t, uid_t);
924 -extern asmlinkage long sys_setresgid(gid_t, gid_t, gid_t);
925 extern asmlinkage long sys_setfsuid(uid_t);
926 extern asmlinkage long sys_setfsgid(gid_t);
928 @@ -795,9 +789,6 @@ out:
932 -extern asmlinkage long sys_truncate(const char * path, unsigned long length);
933 -extern asmlinkage long sys_ftruncate(unsigned int fd, unsigned long length);
935 asmlinkage int sys32_truncate64(const char * path, unsigned long high, unsigned long low)
938 @@ -2416,17 +2407,6 @@ asmlinkage int sys32_pause(void)
941 /* PCI config space poking. */
942 -extern asmlinkage int sys_pciconfig_read(unsigned long bus,
946 - unsigned char *buf);
948 -extern asmlinkage int sys_pciconfig_write(unsigned long bus,
952 - unsigned char *buf);
954 asmlinkage int sys32_pciconfig_read(u32 bus, u32 dfn, u32 off, u32 len, u32 ubuf)
956 @@ -2446,9 +2426,6 @@ asmlinkage int sys32_pciconfig_write(u32
957 (unsigned char *)AA(ubuf));
960 -extern asmlinkage int sys_prctl(int option, unsigned long arg2, unsigned long arg3,
961 - unsigned long arg4, unsigned long arg5);
963 asmlinkage int sys32_prctl(int option, u32 arg2, u32 arg3, u32 arg4, u32 arg5)
965 return sys_prctl(option,
966 @@ -2459,12 +2436,6 @@ asmlinkage int sys32_prctl(int option, u
970 -extern asmlinkage ssize_t sys_pread64(unsigned int fd, char * buf,
971 - size_t count, loff_t pos);
973 -extern asmlinkage ssize_t sys_pwrite64(unsigned int fd, const char * buf,
974 - size_t count, loff_t pos);
976 asmlinkage compat_ssize_t sys32_pread64(unsigned int fd, char *ubuf,
977 compat_size_t count, u32 poshi, u32 poslo)
979 @@ -2477,8 +2448,6 @@ asmlinkage compat_ssize_t sys32_pwrite64
980 return sys_pwrite64(fd, ubuf, count, ((loff_t)AA(poshi) << 32) | AA(poslo));
983 -extern asmlinkage ssize_t sys_readahead(int fd, loff_t offset, size_t count);
985 asmlinkage compat_ssize_t sys32_readahead(int fd, u32 offhi, u32 offlo, s32 count)
987 return sys_readahead(fd, ((loff_t)AA(offhi) << 32) | AA(offlo), count);
988 @@ -2495,8 +2464,6 @@ long sys32_fadvise64_64(int fd, u32 offh
989 ((loff_t)AA(lenhi)<<32)|AA(lenlo), advice);
992 -extern asmlinkage ssize_t sys_sendfile(int out_fd, int in_fd, off_t *offset, size_t count);
994 asmlinkage int sys32_sendfile(int out_fd, int in_fd, compat_off_t *offset, s32 count)
996 mm_segment_t old_fs = get_fs();
997 @@ -2516,8 +2483,6 @@ asmlinkage int sys32_sendfile(int out_fd
1001 -extern asmlinkage ssize_t sys_sendfile64(int out_fd, int in_fd, loff_t *offset, size_t count);
1003 asmlinkage int sys32_sendfile64(int out_fd, int in_fd, compat_loff_t *offset, s32 count)
1005 mm_segment_t old_fs = get_fs();
1006 @@ -2749,8 +2714,6 @@ asmlinkage long sys32_sysctl(struct __sy
1010 -extern long sys_lookup_dcookie(u64 cookie64, char *buf, size_t len);
1012 long sys32_lookup_dcookie(u32 cookie_high, u32 cookie_low, char *buf, size_t len)
1014 return sys_lookup_dcookie((u64)cookie_high << 32 | cookie_low,
1015 diff -Naurp -X /home/rddunlap/doc/dontdiff-osdl linux-262-rc3/arch/sparc64/kernel/sys_sparc.c linux-262-rc3-syscalls/arch/sparc64/kernel/sys_sparc.c
1016 --- linux-262-rc3/arch/sparc64/kernel/sys_sparc.c 2004-01-08 22:59:43.000000000 -0800
1017 +++ linux-262-rc3-syscalls/arch/sparc64/kernel/sys_sparc.c 2004-02-02 10:17:22.000000000 -0800
1019 #include <linux/smp.h>
1020 #include <linux/smp_lock.h>
1021 #include <linux/slab.h>
1022 +#include <linux/syscalls.h>
1023 #include <linux/ipc.h>
1024 #include <linux/personality.h>
1026 @@ -292,8 +293,6 @@ asmlinkage int sparc64_newuname(struct n
1030 -extern asmlinkage long sys_personality(unsigned long);
1032 asmlinkage int sparc64_personality(unsigned long personality)
1035 diff -Naurp -X /home/rddunlap/doc/dontdiff-osdl linux-262-rc3/arch/sparc64/kernel/sys_sunos32.c linux-262-rc3-syscalls/arch/sparc64/kernel/sys_sunos32.c
1036 --- linux-262-rc3/arch/sparc64/kernel/sys_sunos32.c 2004-01-08 22:59:45.000000000 -0800
1037 +++ linux-262-rc3-syscalls/arch/sparc64/kernel/sys_sunos32.c 2004-02-02 10:17:22.000000000 -0800
1039 #include <linux/errno.h>
1040 #include <linux/smp.h>
1041 #include <linux/smp_lock.h>
1042 +#include <linux/syscalls.h>
1044 #include <asm/uaccess.h>
1045 #include <asm/page.h>
1046 @@ -1200,8 +1201,6 @@ static inline int check_nonblock(int ret
1050 -extern asmlinkage ssize_t sys_read(unsigned int fd, char *buf, unsigned long count);
1051 -extern asmlinkage ssize_t sys_write(unsigned int fd, char *buf, unsigned long count);
1052 extern asmlinkage int sys_recv(int fd, void *ubuf, size_t size, unsigned flags);
1053 extern asmlinkage int sys_send(int fd, void *buff, size_t len, unsigned flags);
1054 extern asmlinkage int sys_accept(int fd, struct sockaddr *sa, int *addrlen);
1055 diff -Naurp -X /home/rddunlap/doc/dontdiff-osdl linux-262-rc3/arch/sparc64/solaris/ioctl.c linux-262-rc3-syscalls/arch/sparc64/solaris/ioctl.c
1056 --- linux-262-rc3/arch/sparc64/solaris/ioctl.c 2004-01-08 22:59:44.000000000 -0800
1057 +++ linux-262-rc3-syscalls/arch/sparc64/solaris/ioctl.c 2004-02-02 10:17:22.000000000 -0800
1059 #include <linux/sched.h>
1060 #include <linux/smp.h>
1061 #include <linux/smp_lock.h>
1062 +#include <linux/syscalls.h>
1063 #include <linux/ioctl.h>
1064 #include <linux/fs.h>
1065 #include <linux/file.h>
1068 #include "socksys.h"
1070 -extern asmlinkage int sys_ioctl(unsigned int fd, unsigned int cmd,
1071 - unsigned long arg);
1072 extern asmlinkage int compat_sys_ioctl(unsigned int fd, unsigned int cmd,
1074 asmlinkage int solaris_ioctl(unsigned int fd, unsigned int cmd, u32 arg);
1075 diff -Naurp -X /home/rddunlap/doc/dontdiff-osdl linux-262-rc3/arch/sparc64/solaris/socksys.c linux-262-rc3-syscalls/arch/sparc64/solaris/socksys.c
1076 --- linux-262-rc3/arch/sparc64/solaris/socksys.c 2004-01-08 22:59:26.000000000 -0800
1077 +++ linux-262-rc3-syscalls/arch/sparc64/solaris/socksys.c 2004-02-02 10:17:22.000000000 -0800
1080 #include "socksys.h"
1082 -extern asmlinkage int sys_ioctl(unsigned int fd, unsigned int cmd,
1083 - unsigned long arg);
1085 static int af_inet_protocols[] = {
1086 IPPROTO_ICMP, IPPROTO_ICMP, IPPROTO_IGMP, IPPROTO_IPIP, IPPROTO_TCP,
1087 IPPROTO_EGP, IPPROTO_PUP, IPPROTO_UDP, IPPROTO_IDP, IPPROTO_RAW,
1088 diff -Naurp -X /home/rddunlap/doc/dontdiff-osdl linux-262-rc3/arch/sparc64/solaris/timod.c linux-262-rc3-syscalls/arch/sparc64/solaris/timod.c
1089 --- linux-262-rc3/arch/sparc64/solaris/timod.c 2004-01-08 22:59:26.000000000 -0800
1090 +++ linux-262-rc3-syscalls/arch/sparc64/solaris/timod.c 2004-02-02 10:17:22.000000000 -0800
1093 #include "socksys.h"
1095 -extern asmlinkage int sys_ioctl(unsigned int fd, unsigned int cmd,
1096 - unsigned long arg);
1097 asmlinkage int solaris_ioctl(unsigned int fd, unsigned int cmd, u32 arg);
1099 static spinlock_t timod_pagelock = SPIN_LOCK_UNLOCKED;
1100 diff -Naurp -X /home/rddunlap/doc/dontdiff-osdl linux-262-rc3/arch/x86_64/ia32/ia32_ioctl.c linux-262-rc3-syscalls/arch/x86_64/ia32/ia32_ioctl.c
1101 --- linux-262-rc3/arch/x86_64/ia32/ia32_ioctl.c 2004-01-08 22:59:42.000000000 -0800
1102 +++ linux-262-rc3-syscalls/arch/x86_64/ia32/ia32_ioctl.c 2004-02-02 10:17:22.000000000 -0800
1107 +#include <linux/syscalls.h>
1108 #include "compat_ioctl.c"
1109 #include <asm/mtrr.h>
1110 #include <asm/ia32.h>
1112 -extern asmlinkage long sys_ioctl(unsigned int fd, unsigned int cmd, unsigned long arg);
1115 #include "compat_ioctl.c"
1117 diff -Naurp -X /home/rddunlap/doc/dontdiff-osdl linux-262-rc3/arch/x86_64/ia32/sys_ia32.c linux-262-rc3-syscalls/arch/x86_64/ia32/sys_ia32.c
1118 --- linux-262-rc3/arch/x86_64/ia32/sys_ia32.c 2004-02-02 09:54:13.000000000 -0800
1119 +++ linux-262-rc3-syscalls/arch/x86_64/ia32/sys_ia32.c 2004-02-02 10:17:22.000000000 -0800
1121 #include <linux/fs.h>
1122 #include <linux/file.h>
1123 #include <linux/signal.h>
1124 +#include <linux/syscalls.h>
1125 #include <linux/resource.h>
1126 #include <linux/times.h>
1127 #include <linux/utsname.h>
1128 @@ -236,8 +237,6 @@ sys32_mmap(struct mmap_arg_struct *arg)
1132 -extern asmlinkage long sys_mprotect(unsigned long start,size_t len,unsigned long prot);
1135 sys32_mprotect(unsigned long start, size_t len, unsigned long prot)
1137 @@ -726,9 +725,6 @@ sys32_old_select(struct sel_arg_struct *
1138 (struct compat_timeval *)A(a.tvp));
1141 -asmlinkage ssize_t sys_readv(unsigned long,const struct iovec *,unsigned long);
1142 -asmlinkage ssize_t sys_writev(unsigned long,const struct iovec *,unsigned long);
1144 static struct iovec *
1145 get_compat_iovec(struct compat_iovec *iov32, struct iovec *iov_buf, u32 *count, int type, int *errp)
1147 @@ -870,18 +866,12 @@ int sys32_ni_syscall(int call)
1149 /* 32-bit timeval and related flotsam. */
1151 -extern asmlinkage long sys_sysfs(int option, unsigned long arg1,
1152 - unsigned long arg2);
1155 sys32_sysfs(int option, u32 arg1, u32 arg2)
1157 return sys_sysfs(option, arg1, arg2);
1160 -extern asmlinkage long sys_mount(char * dev_name, char * dir_name, char * type,
1161 - unsigned long new_flags, void *data);
1163 static char *badfs[] = {
1164 "smbfs", "ncpfs", NULL
1166 @@ -932,8 +922,6 @@ struct sysinfo32 {
1167 char _f[20-2*sizeof(u32)-sizeof(int)];
1170 -extern asmlinkage long sys_sysinfo(struct sysinfo *info);
1173 sys32_sysinfo(struct sysinfo32 *info)
1175 @@ -1157,12 +1145,6 @@ sys32_sysctl(struct sysctl_ia32 *args32)
1179 -extern asmlinkage ssize_t sys_pread64(unsigned int fd, char * buf,
1180 - size_t count, loff_t pos);
1182 -extern asmlinkage ssize_t sys_pwrite64(unsigned int fd, const char * buf,
1183 - size_t count, loff_t pos);
1185 /* warning: next two assume little endian */
1187 sys32_pread(unsigned int fd, char *ubuf, u32 count, u32 poslo, u32 poshi)
1188 @@ -1179,8 +1161,6 @@ sys32_pwrite(unsigned int fd, char *ubuf
1192 -extern asmlinkage long sys_personality(unsigned long);
1195 sys32_personality(unsigned long personality)
1197 @@ -1194,9 +1174,6 @@ sys32_personality(unsigned long personal
1201 -extern asmlinkage ssize_t sys_sendfile(int out_fd, int in_fd, off_t *offset,
1205 sys32_sendfile(int out_fd, int in_fd, compat_off_t *offset, s32 count)
1207 @@ -1492,8 +1469,6 @@ asmlinkage long sys32_clone(unsigned int
1208 * Some system calls that need sign extended arguments. This could be done by a generic wrapper.
1211 -extern off_t sys_lseek (unsigned int fd, off_t offset, unsigned int origin);
1213 long sys32_lseek (unsigned int fd, int offset, unsigned int whence)
1215 return sys_lseek(fd, offset, whence);
1216 diff -Naurp -X /home/rddunlap/doc/dontdiff-osdl linux-262-rc3/arch/x86_64/kernel/x8664_ksyms.c linux-262-rc3-syscalls/arch/x86_64/kernel/x8664_ksyms.c
1217 --- linux-262-rc3/arch/x86_64/kernel/x8664_ksyms.c 2004-02-02 09:54:13.000000000 -0800
1218 +++ linux-262-rc3-syscalls/arch/x86_64/kernel/x8664_ksyms.c 2004-02-02 10:17:22.000000000 -0800
1220 #include <linux/apm_bios.h>
1221 #include <linux/kernel.h>
1222 #include <linux/string.h>
1223 +#include <linux/syscalls.h>
1224 #include <linux/tty.h>
1226 #include <asm/semaphore.h>
1227 @@ -180,8 +181,6 @@ EXPORT_SYMBOL_NOVERS(memcpy);
1228 EXPORT_SYMBOL_NOVERS(__memcpy);
1230 /* syscall export needed for misdesigned sound drivers. */
1231 -extern ssize_t sys_read(unsigned int fd, char * buf, size_t count);
1232 -extern off_t sys_lseek(unsigned int fd, off_t offset, unsigned int origin);
1233 EXPORT_SYMBOL(sys_read);
1234 EXPORT_SYMBOL(sys_lseek);
1235 EXPORT_SYMBOL(sys_open);
1236 diff -Naurp -X /home/rddunlap/doc/dontdiff-osdl linux-262-rc3/drivers/macintosh/via-pmu.c linux-262-rc3-syscalls/drivers/macintosh/via-pmu.c
1237 --- linux-262-rc3/drivers/macintosh/via-pmu.c 2004-01-08 23:00:02.000000000 -0800
1238 +++ linux-262-rc3-syscalls/drivers/macintosh/via-pmu.c 2004-02-02 10:13:13.000000000 -0800
1240 #include <linux/interrupt.h>
1241 #include <linux/device.h>
1242 #include <linux/suspend.h>
1243 +#include <linux/syscalls.h>
1244 #include <asm/prom.h>
1245 #include <asm/machdep.h>
1247 @@ -2287,7 +2288,6 @@ restore_via_state(void)
1248 out_8(&via[IER], IER_SET | SR_INT | CB1_INT);
1251 -extern long sys_sync(void);
1252 extern void pm_prepare_console(void);
1253 extern void pm_restore_console(void);
1255 diff -Naurp -X /home/rddunlap/doc/dontdiff-osdl linux-262-rc3/fs/compat.c linux-262-rc3-syscalls/fs/compat.c
1256 --- linux-262-rc3/fs/compat.c 2004-01-08 22:59:33.000000000 -0800
1257 +++ linux-262-rc3-syscalls/fs/compat.c 2004-02-02 10:13:13.000000000 -0800
1259 #include <linux/init.h>
1260 #include <linux/sockios.h> /* for SIOCDEVPRIVATE */
1261 #include <linux/smp_lock.h>
1262 +#include <linux/syscalls.h>
1263 #include <linux/ctype.h>
1264 #include <linux/module.h>
1265 #include <net/sock.h> /* siocdevprivate_ioctl */
1266 @@ -494,8 +495,6 @@ static int put_compat_flock64(struct flo
1270 -extern asmlinkage long sys_fcntl(unsigned int, unsigned int, unsigned long);
1272 asmlinkage long compat_sys_fcntl64(unsigned int fd, unsigned int cmd,
1275 @@ -559,8 +558,6 @@ asmlinkage long compat_sys_fcntl(unsigne
1276 return compat_sys_fcntl64(fd, cmd, arg);
1279 -extern asmlinkage long sys_io_setup(unsigned nr_reqs, aio_context_t *ctx);
1282 compat_sys_io_setup(unsigned nr_reqs, u32 *ctx32p)
1284 @@ -580,12 +577,6 @@ compat_sys_io_setup(unsigned nr_reqs, u3
1288 -extern asmlinkage long sys_io_getevents(aio_context_t ctx_id,
1291 - struct io_event *events,
1292 - struct timespec *timeout);
1295 compat_sys_io_getevents(aio_context_t ctx_id,
1296 unsigned long min_nr,
1297 @@ -614,9 +605,6 @@ out:
1301 -extern asmlinkage long sys_io_submit(aio_context_t, long,
1302 - struct iocb __user **);
1305 copy_iocb(long nr, u32 *ptr32, u64 *ptr64)
1307 diff -Naurp -X /home/rddunlap/doc/dontdiff-osdl linux-262-rc3/include/asm-i386/unistd.h linux-262-rc3-syscalls/include/asm-i386/unistd.h
1308 --- linux-262-rc3/include/asm-i386/unistd.h 2004-01-08 22:59:45.000000000 -0800
1309 +++ linux-262-rc3-syscalls/include/asm-i386/unistd.h 2004-02-02 10:56:29.000000000 -0800
1310 @@ -397,6 +397,7 @@ static inline _syscall1(int,close,int,fd
1311 static inline _syscall1(int,_exit,int,exitcode)
1312 static inline _syscall3(pid_t,waitpid,pid_t,pid,int *,wait_stat,int,options)
1314 +asmlinkage int sys_modify_ldt(int func, void __user *ptr, unsigned long bytecount);
1318 diff -Naurp -X /home/rddunlap/doc/dontdiff-osdl linux-262-rc3/include/asm-ia64/unistd.h linux-262-rc3-syscalls/include/asm-ia64/unistd.h
1319 --- linux-262-rc3/include/asm-ia64/unistd.h 2004-01-08 22:59:09.000000000 -0800
1320 +++ linux-262-rc3-syscalls/include/asm-ia64/unistd.h 2004-02-02 10:17:22.000000000 -0800
1321 @@ -337,6 +337,11 @@ waitpid (int pid, int * wait_stat, int f
1322 extern int execve (const char *filename, char *const av[], char *const ep[]);
1323 extern pid_t clone (unsigned long flags, void *sp);
1325 +extern asmlinkage unsigned long sys_mmap(
1326 + unsigned long addr, unsigned long len,
1327 + int prot, int flags,
1328 + int fd, long off);
1330 #endif /* __KERNEL_SYSCALLS__ */
1333 diff -Naurp -X /home/rddunlap/doc/dontdiff-osdl linux-262-rc3/include/asm-mips/unistd.h linux-262-rc3-syscalls/include/asm-mips/unistd.h
1334 --- linux-262-rc3/include/asm-mips/unistd.h 2004-01-08 22:59:05.000000000 -0800
1335 +++ linux-262-rc3-syscalls/include/asm-mips/unistd.h 2004-02-02 10:17:22.000000000 -0800
1336 @@ -1077,6 +1077,11 @@ static inline pid_t waitpid(int pid, int
1337 return wait4(pid, wait_stat, flags, NULL);
1340 +extern asmlinkage unsigned long sys_mmap(
1341 + unsigned long addr, size_t len,
1342 + int prot, int flags,
1343 + int fd, off_t offset);
1345 #endif /* __KERNEL_SYSCALLS__ */
1346 #endif /* !__ASSEMBLY__ */
1348 diff -Naurp -X /home/rddunlap/doc/dontdiff-osdl linux-262-rc3/include/asm-parisc/unistd.h linux-262-rc3-syscalls/include/asm-parisc/unistd.h
1349 --- linux-262-rc3/include/asm-parisc/unistd.h 2004-01-08 22:59:03.000000000 -0800
1350 +++ linux-262-rc3-syscalls/include/asm-parisc/unistd.h 2004-02-02 10:17:22.000000000 -0800
1351 @@ -904,6 +904,10 @@ static inline pid_t waitpid(pid_t pid, i
1352 return sys_wait4(pid, wait_stat, options, NULL);
1355 +extern asmlinkage unsigned long sys_mmap(unsigned long addr, unsigned long len,
1356 + unsigned long prot, unsigned long flags,
1357 + unsigned long fd, unsigned long offset);
1359 #endif /* __KERNEL_SYSCALLS__ */
1361 #endif /* __ASSEMBLY__ */
1362 diff -Naurp -X /home/rddunlap/doc/dontdiff-osdl linux-262-rc3/include/asm-ppc/unistd.h linux-262-rc3-syscalls/include/asm-ppc/unistd.h
1363 --- linux-262-rc3/include/asm-ppc/unistd.h 2004-02-02 09:54:22.000000000 -0800
1364 +++ linux-262-rc3-syscalls/include/asm-ppc/unistd.h 2004-02-02 10:17:22.000000000 -0800
1365 @@ -390,6 +390,10 @@ extern int open(const char *file, int fl
1366 extern int close(int fd);
1367 extern pid_t waitpid(pid_t pid, int *wait_stat, int options);
1369 +extern unsigned long sys_mmap(unsigned long addr, size_t len,
1370 + unsigned long prot, unsigned long flags,
1371 + unsigned long fd, off_t offset);
1373 #endif /* __KERNEL_SYSCALLS__ */
1376 diff -Naurp -X /home/rddunlap/doc/dontdiff-osdl linux-262-rc3/include/asm-ppc64/unistd.h linux-262-rc3-syscalls/include/asm-ppc64/unistd.h
1377 --- linux-262-rc3/include/asm-ppc64/unistd.h 2004-02-02 09:54:23.000000000 -0800
1378 +++ linux-262-rc3-syscalls/include/asm-ppc64/unistd.h 2004-02-02 10:17:22.000000000 -0800
1379 @@ -405,6 +405,10 @@ extern int open(const char *file, int fl
1380 extern int close(int fd);
1381 extern pid_t waitpid(pid_t pid, int *wait_stat, int options);
1383 +extern unsigned long sys_mmap(unsigned long addr, size_t len,
1384 + unsigned long prot, unsigned long flags,
1385 + unsigned long fd, off_t offset);
1387 #endif /* __KERNEL_SYSCALLS__ */
1390 diff -Naurp -X /home/rddunlap/doc/dontdiff-osdl linux-262-rc3/include/asm-sparc/unistd.h linux-262-rc3-syscalls/include/asm-sparc/unistd.h
1391 --- linux-262-rc3/include/asm-sparc/unistd.h 2004-01-08 22:59:08.000000000 -0800
1392 +++ linux-262-rc3-syscalls/include/asm-sparc/unistd.h 2004-02-02 10:17:22.000000000 -0800
1393 @@ -450,6 +450,11 @@ static __inline__ _syscall1(int,close,in
1394 static __inline__ _syscall1(int,_exit,int,exitcode)
1395 static __inline__ _syscall3(pid_t,waitpid,pid_t,pid,int *,wait_stat,int,options)
1397 +extern asmlinkage unsigned long sys_mmap(
1398 + unsigned long addr, unsigned long len,
1399 + unsigned long prot, unsigned long flags,
1400 + unsigned long fd, unsigned long off);
1402 #endif /* __KERNEL_SYSCALLS__ */
1405 diff -Naurp -X /home/rddunlap/doc/dontdiff-osdl linux-262-rc3/include/asm-sparc64/unistd.h linux-262-rc3-syscalls/include/asm-sparc64/unistd.h
1406 --- linux-262-rc3/include/asm-sparc64/unistd.h 2004-01-08 22:59:10.000000000 -0800
1407 +++ linux-262-rc3-syscalls/include/asm-sparc64/unistd.h 2004-02-02 10:17:22.000000000 -0800
1408 @@ -440,6 +440,11 @@ static __inline__ _syscall1(int,close,in
1409 static __inline__ _syscall1(int,_exit,int,exitcode)
1410 static __inline__ _syscall3(pid_t,waitpid,pid_t,pid,int *,wait_stat,int,options)
1412 +extern asmlinkage unsigned long sys_mmap(
1413 + unsigned long addr, unsigned long len,
1414 + unsigned long prot, unsigned long flags,
1415 + unsigned long fd, unsigned long off);
1417 #endif /* __KERNEL_SYSCALLS__ */
1420 diff -Naurp -X /home/rddunlap/doc/dontdiff-osdl linux-262-rc3/include/asm-v850/unistd.h linux-262-rc3-syscalls/include/asm-v850/unistd.h
1421 --- linux-262-rc3/include/asm-v850/unistd.h 2004-01-08 23:00:04.000000000 -0800
1422 +++ linux-262-rc3-syscalls/include/asm-v850/unistd.h 2004-02-02 10:17:22.000000000 -0800
1423 @@ -417,6 +417,10 @@ extern inline pid_t wait(int * wait_stat
1424 return waitpid (-1, wait_stat, 0);
1427 +extern unsigned long sys_mmap(unsigned long addr, size_t len,
1428 + unsigned long prot, unsigned long flags,
1429 + unsigned long fd, off_t offset);
1434 diff -Naurp -X /home/rddunlap/doc/dontdiff-osdl linux-262-rc3/include/asm-x86_64/unistd.h linux-262-rc3-syscalls/include/asm-x86_64/unistd.h
1435 --- linux-262-rc3/include/asm-x86_64/unistd.h 2004-02-02 09:54:23.000000000 -0800
1436 +++ linux-262-rc3-syscalls/include/asm-x86_64/unistd.h 2004-02-02 10:55:41.000000000 -0800
1437 @@ -709,6 +709,12 @@ static inline pid_t waitpid(int pid, int
1438 return sys_wait4(pid, wait_stat, flags, NULL);
1441 +extern long sys_mmap(unsigned long addr, unsigned long len,
1442 + unsigned long prot, unsigned long flags,
1443 + unsigned long fd, unsigned long off);
1445 +extern int sys_modify_ldt(int func, void *ptr, unsigned long bytecount);
1447 #endif /* __KERNEL_SYSCALLS__ */
1449 #endif /* __NO_STUBS */
1450 diff -Naurp -X /home/rddunlap/doc/dontdiff-osdl linux-262-rc3/include/linux/syscalls.h linux-262-rc3-syscalls/include/linux/syscalls.h
1451 --- linux-262-rc3/include/linux/syscalls.h 1969-12-31 16:00:00.000000000 -0800
1452 +++ linux-262-rc3-syscalls/include/linux/syscalls.h 2004-02-02 20:43:23.000000000 -0800
1455 + * syscalls.h - Linux syscall interfaces (non-arch-specific)
1457 + * Copyright (c) 2004 Randy Dunlap
1458 + * Copyright (c) 2004 Open Source Development Labs
1460 + * This file is released under the GPLv2.
1461 + * See the file COPYING for more details.
1464 +#ifndef _LINUX_SYSCALLS_H
1465 +#define _LINUX_SYSCALLS_H
1467 +struct compat_timespec;
1468 +struct epoll_event;
1476 +struct linux_dirent;
1477 +struct linux_dirent64;
1480 +struct new_utsname;
1482 +struct __old_kernel_stat;
1486 +struct sched_param;
1491 +struct __sysctl_args;
1500 +#include <linux/types.h>
1501 +#include <linux/aio_abi.h>
1502 +#include <linux/capability.h>
1503 +#include <linux/list.h>
1504 +#include <asm/semaphore.h>
1505 +#include <asm/siginfo.h>
1506 +#include <asm/signal.h>
1507 +#include <linux/quota.h>
1509 +asmlinkage long sys_time(int *tloc);
1510 +asmlinkage long sys_stime(time_t *tptr);
1511 +asmlinkage long sys_gettimeofday(struct timeval __user *tv,
1512 + struct timezone __user *tz);
1513 +asmlinkage long sys_settimeofday(struct timeval __user *tv,
1514 + struct timezone __user *tz);
1515 +asmlinkage long sys_adjtimex(struct timex __user *txc_p);
1517 +asmlinkage long sys_times(struct tms __user *tbuf);
1519 +asmlinkage long sys_gettid(void);
1520 +asmlinkage long sys_nanosleep(struct timespec *rqtp, struct timespec *rmtp);
1521 +#if !defined(__alpha__) && !defined(__ia64__)
1522 +asmlinkage unsigned long sys_alarm(unsigned int seconds);
1524 +asmlinkage long sys_getpid(void);
1525 +asmlinkage long sys_getppid(void);
1526 +asmlinkage long sys_getuid(void);
1527 +asmlinkage long sys_geteuid(void);
1528 +asmlinkage long sys_getgid(void);
1529 +asmlinkage long sys_getegid(void);
1530 +asmlinkage long sys_getresuid(uid_t *ruid, uid_t *euid, uid_t *suid);
1531 +asmlinkage long sys_getresgid(gid_t *rgid, gid_t *egid, gid_t *sgid);
1532 +asmlinkage long sys_getpgid(pid_t pid);
1533 +asmlinkage long sys_getpgrp(void);
1534 +asmlinkage long sys_getsid(pid_t pid);
1535 +asmlinkage long sys_getgroups(int gidsetsize, gid_t __user *grouplist);
1537 +asmlinkage long sys_setregid(gid_t rgid, gid_t egid);
1538 +asmlinkage long sys_setgid(gid_t gid);
1539 +asmlinkage long sys_setreuid(uid_t ruid, uid_t euid);
1540 +asmlinkage long sys_setuid(uid_t uid);
1541 +asmlinkage long sys_setresuid(uid_t ruid, uid_t euid, uid_t suid);
1542 +asmlinkage long sys_setresgid(gid_t rgid, gid_t egid, gid_t sgid);
1543 +asmlinkage long sys_setfsuid(uid_t uid);
1544 +asmlinkage long sys_setfsgid(gid_t gid);
1545 +asmlinkage long sys_setpgid(pid_t pid, pid_t pgid);
1546 +asmlinkage long sys_setsid(void);
1547 +asmlinkage long sys_setgroups(int gidsetsize, gid_t __user *grouplist);
1549 +asmlinkage long sys_acct(const char *name);
1550 +asmlinkage long sys_capget(cap_user_header_t header,
1551 + cap_user_data_t dataptr);
1552 +asmlinkage long sys_capset(cap_user_header_t header,
1553 + const cap_user_data_t data);
1554 +asmlinkage long sys_personality(u_long personality);
1556 +asmlinkage long sys_sigpending(old_sigset_t *);
1557 +asmlinkage long sys_sigprocmask(int, old_sigset_t *, old_sigset_t *);
1558 +asmlinkage long sys_getitimer(int which, struct itimerval __user *value);
1559 +asmlinkage long sys_setitimer(int which,
1560 + struct itimerval __user *value,
1561 + struct itimerval __user *ovalue);
1562 +asmlinkage long sys_timer_gettime(timer_t timer_id,
1563 + struct itimerspec __user *setting);
1564 +asmlinkage long sys_timer_getoverrun(timer_t timer_id);
1565 +asmlinkage long sys_timer_settime(timer_t timer_id, int flags,
1566 + const struct itimerspec __user *new_setting,
1567 + struct itimerspec __user *old_setting);
1568 +asmlinkage long sys_timer_delete(timer_t timer_id);
1569 +asmlinkage long sys_clock_settime(clockid_t which_clock,
1570 + const struct timespec __user *tp);
1571 +asmlinkage long sys_clock_gettime(clockid_t which_clock,
1572 + struct timespec __user *tp);
1573 +asmlinkage long sys_clock_getres(clockid_t which_clock,
1574 + struct timespec __user *tp);
1575 +asmlinkage long sys_clock_nanosleep(clockid_t which_clock, int flags,
1576 + const struct timespec __user *rqtp,
1577 + struct timespec __user *rmtp);
1580 +asmlinkage long sys_nice(int increment);
1582 +asmlinkage long sys_sched_setscheduler(pid_t pid, int policy,
1583 + struct sched_param __user *param);
1584 +asmlinkage long sys_sched_setparam(pid_t pid,
1585 + struct sched_param __user *param);
1586 +asmlinkage long sys_sched_getscheduler(pid_t pid);
1587 +asmlinkage long sys_sched_getparam(pid_t pid,
1588 + struct sched_param __user *param);
1589 +asmlinkage long sys_sched_setaffinity(pid_t pid, unsigned int len,
1590 + unsigned long __user *user_mask_ptr);
1591 +asmlinkage long sys_sched_getaffinity(pid_t pid, unsigned int len,
1592 + unsigned long __user *user_mask_ptr);
1593 +asmlinkage long sys_sched_yield(void);
1594 +asmlinkage long sys_sched_get_priority_max(int policy);
1595 +asmlinkage long sys_sched_get_priority_min(int policy);
1596 +asmlinkage long sys_sched_rr_get_interval(pid_t pid,
1597 + struct timespec __user *interval);
1598 +asmlinkage long sys_setpriority(int which, int who, int niceval);
1599 +asmlinkage long sys_getpriority(int which, int who);
1601 +asmlinkage long sys_reboot(int magic1, int magic2, unsigned int cmd,
1602 + void __user *arg);
1604 +asmlinkage long sys_exit(int error_code);
1605 +asmlinkage void sys_exit_group(int error_code);
1606 +asmlinkage long sys_wait4(pid_t pid, unsigned int *stat_addr,
1607 + int options, struct rusage *ru);
1608 +#if !defined(__alpha__) && !defined(__ia64__) && !defined(__arm__)
1609 +asmlinkage long sys_waitpid(pid_t pid, unsigned int *stat_addr, int options);
1611 +asmlinkage long sys_set_tid_address(int __user *tidptr);
1612 +asmlinkage long sys_futex(u32 __user *uaddr, int op, int val,
1613 + struct timespec __user *utime, u32 __user *uaddr2);
1614 +#ifdef CONFIG_FUTEX
1615 +asmlinkage long compat_sys_futex(u32 *uaddr, int op, int val,
1616 + struct compat_timespec *utime, u32 *uaddr2);
1619 +asmlinkage long sys_init_module(void __user *umod, unsigned long len,
1620 + const char __user *uargs);
1621 +asmlinkage long sys_delete_module(const char __user *name_user,
1622 + unsigned int flags);
1624 +asmlinkage long sys_restart_syscall(void);
1625 +asmlinkage long sys_rt_sigprocmask(int how, sigset_t __user *set,
1626 + sigset_t __user *oset, size_t sigsetsize);
1627 +asmlinkage long sys_rt_sigpending(sigset_t __user *set, size_t sigsetsize);
1628 +asmlinkage long sys_rt_sigtimedwait(const sigset_t __user *uthese,
1629 + siginfo_t __user *uinfo,
1630 + const struct timespec __user *uts,
1631 + size_t sigsetsize);
1632 +asmlinkage long sys_kill(int pid, int sig);
1633 +asmlinkage long sys_tgkill(int tgid, int pid, int sig);
1634 +asmlinkage long sys_tkill(int pid, int sig);
1635 +asmlinkage long sys_rt_sigqueueinfo(int pid, int sig, siginfo_t __user *uinfo);
1636 +asmlinkage long sys_sigpending(old_sigset_t __user *set);
1637 +#if !defined(__alpha__)
1638 +asmlinkage long sys_sigprocmask(int how, old_sigset_t __user *set,
1639 + old_sigset_t __user *oset);
1642 +asmlinkage long sys_rt_sigaction(int sig,
1643 + const struct sigaction __user *act,
1644 + struct sigaction __user *oact,
1645 + size_t sigsetsize);
1647 +#if !defined(__alpha__) && !defined(__ia64__) && !defined(__arm__)
1648 +asmlinkage long sys_sgetmask(void);
1649 +asmlinkage long sys_ssetmask(int newmask);
1651 +#if !defined(__alpha__) && !defined(__ia64__) && !defined(__mips__) && \
1653 +asmlinkage unsigned long
1654 +sys_signal(int sig, __sighandler_t handler);
1656 +#ifndef HAVE_ARCH_SYS_PAUSE
1657 +asmlinkage long sys_pause(void);
1660 +asmlinkage long sys_sync(void);
1661 +asmlinkage long sys_fsync(unsigned int fd);
1662 +asmlinkage long sys_fdatasync(unsigned int fd);
1663 +asmlinkage long sys_bdflush(int func, long data);
1664 +asmlinkage long sys_mount(char __user *dev_name, char __user *dir_name,
1665 + char __user *type, unsigned long flags,
1666 + void __user *data);
1667 +asmlinkage long sys_umount(char __user *name, int flags);
1668 +asmlinkage long sys_oldumount(char __user *name);
1669 +asmlinkage long sys_pivot_root(const char __user *new_root,
1670 + const char __user *put_old);
1671 +asmlinkage long sys_truncate(const char __user *path,
1672 + unsigned long length);
1673 +asmlinkage long sys_ftruncate(unsigned int fd, unsigned long length);
1674 +asmlinkage long sys_stat(char __user *filename,
1675 + struct __old_kernel_stat __user *statbuf);
1676 +asmlinkage long sys_lstat(char __user *filename,
1677 + struct __old_kernel_stat __user *statbuf);
1678 +asmlinkage long sys_fstat(unsigned int fd,
1679 + struct __old_kernel_stat __user *statbuf);
1680 +asmlinkage long sys_newstat(char __user *filename,
1681 + struct stat __user *statbuf);
1682 +asmlinkage long sys_newlstat(char __user *filename,
1683 + struct stat __user *statbuf);
1684 +asmlinkage long sys_newfstat(unsigned int fd, struct stat __user *statbuf);
1685 +asmlinkage long sys_ustat(unsigned dev, struct ustat __user *ubuf);
1686 +#if BITS_PER_LONG == 32
1687 +asmlinkage long sys_stat64(char __user *filename,
1688 + struct stat64 __user *statbuf);
1689 +asmlinkage long sys_fstat64(unsigned long fd, struct stat64 __user *statbuf);
1690 +asmlinkage long sys_lstat64(char __user *filename,
1691 + struct stat64 __user *statbuf);
1692 +asmlinkage long sys_truncate64(const char __user *path, loff_t length);
1693 +asmlinkage long sys_ftruncate64(unsigned int fd, loff_t length);
1696 +asmlinkage long sys_setxattr(char __user *path, char __user *name,
1697 + void __user *value, size_t size, int flags);
1698 +asmlinkage long sys_lsetxattr(char __user *path, char __user *name,
1699 + void __user *value, size_t size, int flags);
1700 +asmlinkage long sys_fsetxattr(int fd, char __user *name, void __user *value,
1701 + size_t size, int flags);
1702 +asmlinkage ssize_t sys_getxattr(char __user *path, char __user *name,
1703 + void __user *value, size_t size);
1704 +asmlinkage ssize_t sys_lgetxattr(char __user *path, char __user *name,
1705 + void __user *value, size_t size);
1706 +asmlinkage ssize_t sys_fgetxattr(int fd, char __user *name,
1707 + void __user *value, size_t size);
1708 +asmlinkage ssize_t sys_listxattr(char __user *path, char __user *list,
1710 +asmlinkage ssize_t sys_llistxattr(char __user *path, char __user *list,
1712 +asmlinkage ssize_t sys_flistxattr(int fd, char __user *list, size_t size);
1713 +asmlinkage long sys_removexattr(char __user *path, char __user *name);
1714 +asmlinkage long sys_lremovexattr(char __user *path, char __user *name);
1715 +asmlinkage long sys_fremovexattr(int fd, char __user *name);
1717 +asmlinkage long sys_mprotect(unsigned long start, size_t len,
1718 + unsigned long prot);
1719 +/////extern asmlinkage long sys_mmap(); ///// <<<<<<<<<<<<<<<<<<<<<<<< ?????
1720 +///// do some unistd.h need to #include syscalls.h ?
1721 +///// check asm-*/unistd.h for externs that need to be removed.
1722 +asmlinkage unsigned long sys_mremap(unsigned long addr,
1723 + unsigned long old_len, unsigned long new_len,
1724 + unsigned long flags, unsigned long new_addr);
1725 +asmlinkage long sys_munmap(unsigned long addr, size_t len);
1726 +asmlinkage long sys_chroot(const char __user *filename);
1727 +asmlinkage long sys_mknod(const char __user *filename, int mode,
1729 +asmlinkage long sys_link(const char __user *oldname,
1730 + const char __user *newname);
1731 +asmlinkage long sys_symlink(const char *old, const char *new);
1732 +asmlinkage long sys_unlink(const char __user *pathname);
1733 +asmlinkage long sys_rename(const char __user *oldname,
1734 + const char __user *newname);
1735 +asmlinkage long sys_chmod(const char __user *filename, mode_t mode);
1736 +asmlinkage long sys_fchmod(unsigned int fd, mode_t mode);
1738 +asmlinkage long sys_fcntl(unsigned int fd, unsigned int cmd, unsigned long arg);
1739 +#if BITS_PER_LONG == 32
1740 +asmlinkage long sys_fcntl64(unsigned int fd,
1741 + unsigned int cmd, unsigned long arg);
1743 +asmlinkage long sys_dup(unsigned int fildes);
1744 +asmlinkage long sys_dup2(unsigned int oldfd, unsigned int newfd);
1745 +asmlinkage long sys_ioctl(unsigned int fd, unsigned int cmd,
1746 + unsigned long arg);
1747 +asmlinkage long sys_flock(unsigned int fd, unsigned int cmd);
1748 +asmlinkage long sys_io_setup(unsigned nr_reqs, aio_context_t *ctx);
1749 +asmlinkage long sys_io_destroy(aio_context_t ctx);
1750 +asmlinkage long sys_io_getevents(aio_context_t ctx_id,
1753 + struct io_event *events,
1754 + struct timespec *timeout);
1755 +asmlinkage long sys_io_submit(aio_context_t, long,
1756 + struct iocb __user **);
1757 +asmlinkage long sys_io_cancel(aio_context_t ctx_id, struct iocb *iocb,
1758 + struct io_event *result);
1759 +asmlinkage ssize_t sys_sendfile(int out_fd, int in_fd,
1760 + off_t __user *offset, size_t count);
1761 +asmlinkage ssize_t sys_sendfile64(int out_fd, int in_fd,
1762 + loff_t __user *offset, size_t count);
1763 +asmlinkage long sys_readlink(const char __user *path,
1764 + char __user *buf, int bufsiz);
1765 +asmlinkage long sys_creat(const char __user *pathname, int mode);
1766 +asmlinkage long sys_open(const char __user *filename,
1767 + int flags, int mode);
1768 +asmlinkage long sys_close(unsigned int fd);
1769 +asmlinkage long sys_access(const char __user *filename, int mode);
1770 +asmlinkage long sys_vhangup(void);
1771 +asmlinkage long sys_chown(const char __user *filename,
1772 + uid_t user, gid_t group);
1773 +asmlinkage long sys_lchown(const char __user *filename,
1774 + uid_t user, gid_t group);
1775 +asmlinkage long sys_fchown(unsigned int fd, uid_t user, gid_t group);
1776 +asmlinkage long sys_chown16(const char *filename,
1777 + old_uid_t user, old_gid_t group);
1778 +asmlinkage long sys_lchown16(const char *filename,
1779 + old_uid_t user, old_gid_t group);
1780 +asmlinkage long sys_fchown16(unsigned int fd, old_uid_t user, old_gid_t group);
1781 +asmlinkage long sys_setregid16(old_gid_t rgid, old_gid_t egid);
1782 +asmlinkage long sys_setgid16(old_gid_t gid);
1783 +asmlinkage long sys_setreuid16(old_uid_t ruid, old_uid_t euid);
1784 +asmlinkage long sys_setuid16(old_uid_t uid);
1785 +asmlinkage long sys_setresuid16(old_uid_t ruid, old_uid_t euid, old_uid_t suid);
1786 +asmlinkage long sys_getresuid16(old_uid_t *ruid,
1787 + old_uid_t *euid, old_uid_t *suid);
1788 +asmlinkage long sys_setresgid16(old_gid_t rgid, old_gid_t egid, old_gid_t sgid);
1789 +asmlinkage long sys_getresgid16(old_gid_t *rgid,
1790 + old_gid_t *egid, old_gid_t *sgid);
1791 +asmlinkage long sys_setfsuid16(old_uid_t uid);
1792 +asmlinkage long sys_setfsgid16(old_gid_t gid);
1793 +asmlinkage long sys_getgroups16(int gidsetsize, old_gid_t __user *grouplist);
1794 +asmlinkage long sys_setgroups16(int gidsetsize, old_gid_t __user *grouplist);
1795 +asmlinkage long sys_getuid16(void);
1796 +asmlinkage long sys_geteuid16(void);
1797 +asmlinkage long sys_getgid16(void);
1798 +asmlinkage long sys_getegid16(void);
1800 +asmlinkage long sys_utime(char __user *filename,
1801 + struct utimbuf __user *times);
1802 +asmlinkage long sys_utimes(char __user *filename,
1803 + struct timeval __user *utimes);
1804 +asmlinkage off_t sys_lseek(unsigned int fd, off_t offset,
1805 + unsigned int origin);
1806 +#if !defined(__alpha__)
1807 +asmlinkage long sys_llseek(unsigned int fd, unsigned long offset_high,
1808 + unsigned long offset_low, loff_t __user *result,
1809 + unsigned int origin);
1811 +asmlinkage ssize_t sys_read(unsigned int fd, char __user *buf,
1813 +asmlinkage ssize_t sys_readahead(int fd, loff_t offset, size_t count);
1814 +asmlinkage ssize_t sys_readv(unsigned long fd,
1815 + const struct iovec __user *vec,
1816 + unsigned long vlen);
1817 +asmlinkage ssize_t sys_write(unsigned int fd, const char __user *buf,
1819 +asmlinkage ssize_t sys_writev(unsigned long fd,
1820 + const struct iovec __user *vec,
1821 + unsigned long vlen);
1822 +asmlinkage ssize_t sys_pread64(unsigned int fd, char __user *buf,
1823 + size_t count, loff_t pos);
1824 +asmlinkage ssize_t sys_pwrite64(unsigned int fd, const char __user *buf,
1825 + size_t count, loff_t pos);
1826 +asmlinkage long sys_getcwd(char __user *buf, unsigned long size);
1827 +asmlinkage long sys_mkdir(const char __user *pathname, int mode);
1828 +asmlinkage long sys_chdir(const char __user *filename);
1829 +asmlinkage long sys_fchdir(unsigned int fd);
1830 +asmlinkage long sys_rmdir(const char __user *pathname);
1831 +asmlinkage long sys_lookup_dcookie(u64 cookie64, char *buf, size_t len);
1832 +asmlinkage long sys_quotactl(unsigned int cmd, const char *special,
1833 + qid_t id, caddr_t addr);
1834 +asmlinkage long sys_getdents(unsigned int fd,
1835 + struct linux_dirent __user *dirent,
1836 + unsigned int count);
1837 +asmlinkage long sys_getdents64(unsigned int fd,
1838 + struct linux_dirent64 __user *dirent,
1839 + unsigned int count);
1841 +asmlinkage long sys_setsockopt(int fd, int level, int optname,
1842 + char *optval, int optlen);
1843 +asmlinkage long sys_getsockopt(int fd, int level, int optname,
1844 + void *optval, int *optlen);
1845 +asmlinkage long sys_bind(int, struct sockaddr *, int);
1846 +asmlinkage long sys_connect(int, struct sockaddr *, int);
1847 +asmlinkage long sys_accept(int, struct sockaddr *, int *);
1848 +asmlinkage long sys_getsockname(int, struct sockaddr *, int *);
1849 +asmlinkage long sys_getpeername(int, struct sockaddr *, int *);
1850 +asmlinkage long sys_send(int, void *, size_t, unsigned);
1851 +asmlinkage long sys_sendto(int, void *, size_t, unsigned,
1852 + struct sockaddr *, int);
1853 +asmlinkage long sys_sendmsg(int fd, struct msghdr __user *msg, unsigned flags);
1854 +asmlinkage long sys_recv(int, void *, size_t, unsigned);
1855 +asmlinkage long sys_recvfrom(int, void *, size_t, unsigned,
1856 + struct sockaddr *, int *);
1857 +asmlinkage long sys_recvmsg(int fd, struct msghdr __user *msg,
1858 + unsigned int flags);
1859 +asmlinkage long sys_socket(int, int, int);
1860 +asmlinkage long sys_socketpair(int, int, int, int [2]);
1861 +asmlinkage long sys_socketcall(int call, unsigned long __user *args);
1862 +asmlinkage long sys_shutdown(int, int);
1863 +asmlinkage long sys_listen(int, int);
1864 +asmlinkage long sys_poll(struct pollfd __user *ufds, unsigned int nfds,
1866 +asmlinkage long sys_select(int n, fd_set __user *inp, fd_set __user *outp,
1867 + fd_set __user *exp, struct timeval __user *tvp);
1868 +asmlinkage long sys_epoll_create(int size);
1869 +asmlinkage long sys_epoll_ctl(int epfd, int op, int fd,
1870 + struct epoll_event __user *event);
1871 +asmlinkage long sys_epoll_wait(int epfd, struct epoll_event __user *events,
1872 + int maxevents, int timeout);
1873 +asmlinkage long sys_gethostname(char __user *name, int len);
1874 +asmlinkage long sys_sethostname(char __user *name, int len);
1875 +asmlinkage long sys_setdomainname(char __user *name, int len);
1876 +asmlinkage long sys_newuname(struct new_utsname __user *name);
1878 +asmlinkage long sys_getrlimit(unsigned int resource,
1879 + struct rlimit __user *rlim);
1880 +#if defined(COMPAT_RLIM_OLD_INFINITY) || !(defined(CONFIG_IA64) || defined(CONFIG_V850))
1881 +asmlinkage long sys_old_getrlimit(unsigned int resource, struct rlimit __user *rlim);
1883 +asmlinkage long sys_setrlimit(unsigned int resource,
1884 + struct rlimit __user *rlim);
1885 +asmlinkage long sys_getrusage(int who, struct rusage __user *ru);
1886 +asmlinkage long sys_umask(int mask);
1887 +asmlinkage long sys_prctl(int option, unsigned long arg2, unsigned long arg3,
1888 + unsigned long arg4, unsigned long arg5);
1890 +asmlinkage long sys_pciconfig_iobase(long which, unsigned long bus, unsigned long devfn);
1891 +asmlinkage long sys_pciconfig_read(unsigned long bus, unsigned long dfn,
1892 + unsigned long off, unsigned long len,
1894 +asmlinkage long sys_pciconfig_write(unsigned long bus, unsigned long dfn,
1895 + unsigned long off, unsigned long len,
1898 +asmlinkage long sys_swapon(const char __user *specialfile, int swap_flags);
1899 +asmlinkage long sys_swapoff(const char __user *specialfile);
1900 +asmlinkage long sys_sysctl(struct __sysctl_args __user *args);
1901 +asmlinkage long sys_sysinfo(struct sysinfo __user *info);
1902 +asmlinkage long sys_sysfs(int option,
1903 + unsigned long arg1, unsigned long arg2);
1904 +asmlinkage long sys_nfsservctl(int cmd,
1905 + struct nfsctl_arg __user *arg,
1906 + void __user *res);
1907 +asmlinkage long sys_syslog(int type, char __user *buf, int len);
1908 +asmlinkage long sys_uselib(const char __user *library);
1909 +asmlinkage long sys_ni_syscall(void);
1912 diff -Naurp -X /home/rddunlap/doc/dontdiff-osdl linux-262-rc3/include/linux/sysctl.h linux-262-rc3-syscalls/include/linux/sysctl.h
1913 --- linux-262-rc3/include/linux/sysctl.h 2004-02-02 09:54:24.000000000 -0800
1914 +++ linux-262-rc3-syscalls/include/linux/sysctl.h 2004-02-02 10:13:13.000000000 -0800
1915 @@ -715,7 +715,6 @@ enum
1919 -extern asmlinkage long sys_sysctl(struct __sysctl_args __user *);
1920 extern void sysctl_init(void);
1922 typedef struct ctl_table ctl_table;
1923 diff -Naurp -X /home/rddunlap/doc/dontdiff-osdl linux-262-rc3/init/do_mounts_devfs.c linux-262-rc3-syscalls/init/do_mounts_devfs.c
1924 --- linux-262-rc3/init/do_mounts_devfs.c 2004-01-08 22:59:48.000000000 -0800
1925 +++ linux-262-rc3-syscalls/init/do_mounts_devfs.c 2004-02-02 14:55:28.000000000 -0800
1927 #include <linux/kernel.h>
1928 #include <linux/dirent.h>
1929 #include <linux/string.h>
1930 +#include <linux/syscalls.h>
1932 #include "do_mounts.h"
1934 -extern asmlinkage long sys_symlink(const char *old, const char *new);
1935 -extern asmlinkage long sys_access(const char * filename, int mode);
1936 -extern asmlinkage long sys_getdents64(unsigned int fd, void * dirent,
1937 - unsigned int count);
1939 void __init mount_devfs(void)
1941 sys_mount("devfs", "/dev", "devfs", 0, NULL);
1942 @@ -31,7 +27,8 @@ static int __init do_read_dir(int fd, vo
1945 for (bytes = 0; bytes < len; bytes += n) {
1946 - n = sys_getdents64(fd, p + bytes, len - bytes);
1947 + n = sys_getdents64(fd, (struct linux_dirent64 *)(p + bytes),
1952 diff -Naurp -X /home/rddunlap/doc/dontdiff-osdl linux-262-rc3/init/do_mounts.h linux-262-rc3-syscalls/init/do_mounts.h
1953 --- linux-262-rc3/init/do_mounts.h 2004-01-08 22:59:45.000000000 -0800
1954 +++ linux-262-rc3-syscalls/init/do_mounts.h 2004-02-02 10:13:13.000000000 -0800
1956 #include <linux/kernel.h>
1957 #include <linux/devfs_fs_kernel.h>
1958 #include <linux/init.h>
1959 +#include <linux/syscalls.h>
1960 #include <linux/unistd.h>
1961 #include <linux/slab.h>
1962 #include <linux/mount.h>
1963 #include <linux/major.h>
1964 #include <linux/root_dev.h>
1966 -asmlinkage long sys_unlink(const char *name);
1967 -asmlinkage long sys_mknod(const char *name, int mode, unsigned dev);
1968 -asmlinkage long sys_newstat(char * filename, struct stat * statbuf);
1969 -asmlinkage long sys_ioctl(int fd, int cmd, unsigned long arg);
1970 -asmlinkage long sys_mkdir(const char *name, int mode);
1971 -asmlinkage long sys_rmdir(const char *name);
1972 -asmlinkage long sys_chdir(const char *name);
1973 -asmlinkage long sys_fchdir(int fd);
1974 -asmlinkage long sys_chroot(const char *name);
1975 -asmlinkage long sys_mount(char *dev_name, char *dir_name, char *type,
1976 - unsigned long flags, void *data);
1977 -asmlinkage long sys_umount(char *name, int flags);
1979 dev_t name_to_dev_t(char *name);
1980 void change_floppy(char *fmt, ...);
1981 void mount_block_root(char *name, int flags);
1982 @@ -49,7 +37,6 @@ static inline int create_dev(char *name,
1985 #if BITS_PER_LONG == 32
1986 -asmlinkage long sys_stat64(char *name, struct stat64 *stat);
1987 static inline u32 bstat(char *name)
1990 diff -Naurp -X /home/rddunlap/doc/dontdiff-osdl linux-262-rc3/init/initramfs.c linux-262-rc3-syscalls/init/initramfs.c
1991 --- linux-262-rc3/init/initramfs.c 2004-01-08 22:59:07.000000000 -0800
1992 +++ linux-262-rc3-syscalls/init/initramfs.c 2004-02-02 10:13:13.000000000 -0800
1994 #include <linux/unistd.h>
1995 #include <linux/delay.h>
1996 #include <linux/string.h>
1997 +#include <linux/syscalls.h>
1999 static __initdata char *message;
2000 static void __init error(char *x)
2001 @@ -25,17 +26,6 @@ static void __init free(void *where)
2005 -asmlinkage long sys_mkdir(char *name, int mode);
2006 -asmlinkage long sys_mknod(char *name, int mode, unsigned dev);
2007 -asmlinkage long sys_symlink(char *old, char *new);
2008 -asmlinkage long sys_link(char *old, char *new);
2009 -asmlinkage long sys_write(int fd, const char *buf, size_t size);
2010 -asmlinkage long sys_chown(char *name, uid_t uid, gid_t gid);
2011 -asmlinkage long sys_lchown(char *name, uid_t uid, gid_t gid);
2012 -asmlinkage long sys_fchown(int fd, uid_t uid, gid_t gid);
2013 -asmlinkage long sys_chmod(char *name, mode_t mode);
2014 -asmlinkage long sys_fchmod(int fd, mode_t mode);
2018 static struct hash {
2019 diff -Naurp -X /home/rddunlap/doc/dontdiff-osdl linux-262-rc3/kernel/compat.c linux-262-rc3-syscalls/kernel/compat.c
2020 --- linux-262-rc3/kernel/compat.c 2004-01-08 22:59:34.000000000 -0800
2021 +++ linux-262-rc3-syscalls/kernel/compat.c 2004-02-02 10:13:13.000000000 -0800
2023 #include <linux/signal.h>
2024 #include <linux/sched.h> /* for MAX_SCHEDULE_TIMEOUT */
2025 #include <linux/futex.h> /* for FUTEX_WAIT */
2026 +#include <linux/syscalls.h>
2027 #include <linux/unistd.h>
2029 #include <asm/uaccess.h>
2030 @@ -172,8 +173,6 @@ asmlinkage long compat_sys_times(struct
2031 * types that can be passed to put_user()/get_user().
2034 -extern asmlinkage long sys_sigpending(old_sigset_t *);
2036 asmlinkage long compat_sys_sigpending(compat_old_sigset_t *set)
2039 @@ -188,8 +187,6 @@ asmlinkage long compat_sys_sigpending(co
2043 -extern asmlinkage long sys_sigprocmask(int, old_sigset_t *, old_sigset_t *);
2045 asmlinkage long compat_sys_sigprocmask(int how, compat_old_sigset_t *set,
2046 compat_old_sigset_t *oset)
2048 @@ -381,9 +378,6 @@ compat_sys_wait4(compat_pid_t pid, compa
2052 -extern asmlinkage long sys_sched_setaffinity(pid_t pid, unsigned int len,
2053 - unsigned long *user_mask_ptr);
2055 asmlinkage long compat_sys_sched_setaffinity(compat_pid_t pid,
2057 compat_ulong_t *user_mask_ptr)
2058 @@ -405,9 +399,6 @@ asmlinkage long compat_sys_sched_setaffi
2062 -extern asmlinkage long sys_sched_getaffinity(pid_t pid, unsigned int len,
2063 - unsigned long *user_mask_ptr);
2065 asmlinkage int compat_sys_sched_getaffinity(compat_pid_t pid, unsigned int len,
2066 compat_ulong_t *user_mask_ptr)
2068 @@ -449,12 +440,6 @@ static int put_compat_itimerspec(struct
2072 -extern asmlinkage long sys_timer_settime(timer_t timer_id, int flags,
2073 - struct itimerspec __user *new_setting,
2074 - struct itimerspec __user *old_setting);
2075 -extern asmlinkage long sys_timer_gettime(timer_t timer_id,
2076 - struct itimerspec __user *setting);
2078 long compat_timer_settime(timer_t timer_id, int flags,
2079 struct compat_itimerspec *new,
2080 struct compat_itimerspec *old)
2081 @@ -487,9 +472,6 @@ long compat_timer_gettime(timer_t timer_
2085 -extern asmlinkage long
2086 -sys_clock_settime(clockid_t which_clock, struct timespec __user *tp);
2088 long compat_clock_settime(clockid_t which_clock, struct compat_timespec *tp)
2091 @@ -504,9 +486,6 @@ long compat_clock_settime(clockid_t whic
2095 -extern asmlinkage long
2096 -sys_clock_gettime(clockid_t which_clock, struct timespec __user *tp);
2098 long compat_clock_gettime(clockid_t which_clock, struct compat_timespec *tp)
2101 @@ -521,9 +500,6 @@ long compat_clock_gettime(clockid_t whic
2105 -extern asmlinkage long
2106 -sys_clock_getres(clockid_t which_clock, struct timespec __user *tp);
2108 long compat_clock_getres(clockid_t which_clock, struct compat_timespec *tp)
2111 @@ -538,11 +514,6 @@ long compat_clock_getres(clockid_t which
2115 -extern asmlinkage long
2116 -sys_clock_nanosleep(clockid_t which_clock, int flags,
2117 - struct timespec __user *rqtp,
2118 - struct timespec __user *rmtp);
2120 long compat_clock_nanosleep(clockid_t which_clock, int flags,
2121 struct compat_timespec __user *rqtp,
2122 struct compat_timespec __user *rmtp)
2123 diff -Naurp -X /home/rddunlap/doc/dontdiff-osdl linux-262-rc3/kernel/panic.c linux-262-rc3-syscalls/kernel/panic.c
2124 --- linux-262-rc3/kernel/panic.c 2004-01-08 23:00:03.000000000 -0800
2125 +++ linux-262-rc3-syscalls/kernel/panic.c 2004-02-02 15:49:22.000000000 -0800
2127 #include <linux/notifier.h>
2128 #include <linux/init.h>
2129 #include <linux/sysrq.h>
2130 +#include <linux/syscalls.h>
2131 #include <linux/interrupt.h>
2132 #include <linux/nmi.h>
2134 -asmlinkage void sys_sync(void); /* it's really int */
2139 diff -Naurp -X /home/rddunlap/doc/dontdiff-osdl linux-262-rc3/kernel/power/disk.c linux-262-rc3-syscalls/kernel/power/disk.c
2140 --- linux-262-rc3/kernel/power/disk.c 2004-01-08 22:59:06.000000000 -0800
2141 +++ linux-262-rc3-syscalls/kernel/power/disk.c 2004-02-02 10:13:13.000000000 -0800
2145 #include <linux/suspend.h>
2146 +#include <linux/syscalls.h>
2147 #include <linux/reboot.h>
2148 #include <linux/string.h>
2149 #include <linux/delay.h>
2150 @@ -28,8 +29,6 @@ extern int pmdisk_read(void);
2151 extern int pmdisk_restore(void);
2152 extern int pmdisk_free(void);
2154 -extern long sys_sync(void);
2158 * power_down - Shut machine down for hibernate.
2159 diff -Naurp -X /home/rddunlap/doc/dontdiff-osdl linux-262-rc3/kernel/power/swsusp.c linux-262-rc3-syscalls/kernel/power/swsusp.c
2160 --- linux-262-rc3/kernel/power/swsusp.c 2004-01-08 22:59:19.000000000 -0800
2161 +++ linux-262-rc3-syscalls/kernel/power/swsusp.c 2004-02-02 10:13:13.000000000 -0800
2163 #include <linux/buffer_head.h>
2164 #include <linux/swapops.h>
2165 #include <linux/bootmem.h>
2166 +#include <linux/syscalls.h>
2168 #include <asm/uaccess.h>
2169 #include <asm/mmu_context.h>
2174 -extern long sys_sync(void);
2176 unsigned char software_suspend_enabled = 0;
2178 extern void do_magic(int resume);
2179 diff -Naurp -X /home/rddunlap/doc/dontdiff-osdl linux-262-rc3/kernel/sysctl.c linux-262-rc3-syscalls/kernel/sysctl.c
2180 --- linux-262-rc3/kernel/sysctl.c 2004-02-02 09:54:24.000000000 -0800
2181 +++ linux-262-rc3-syscalls/kernel/sysctl.c 2004-02-02 10:13:13.000000000 -0800
2182 @@ -2015,7 +2015,7 @@ int sysctl_jiffies(ctl_table *table, int
2183 #else /* CONFIG_SYSCTL */
2186 -extern asmlinkage long sys_sysctl(struct __sysctl_args __user *args)
2187 +asmlinkage long sys_sysctl(struct __sysctl_args __user *args)
2191 diff -Naurp -X /home/rddunlap/doc/dontdiff-osdl linux-262-rc3/kernel/uid16.c linux-262-rc3-syscalls/kernel/uid16.c
2192 --- linux-262-rc3/kernel/uid16.c 2004-01-08 22:59:43.000000000 -0800
2193 +++ linux-262-rc3-syscalls/kernel/uid16.c 2004-02-02 10:13:13.000000000 -0800
2195 #include <linux/init.h>
2196 #include <linux/highuid.h>
2197 #include <linux/security.h>
2198 +#include <linux/syscalls.h>
2200 #include <asm/uaccess.h>
2202 -extern asmlinkage long sys_chown(const char *, uid_t,gid_t);
2203 -extern asmlinkage long sys_lchown(const char *, uid_t,gid_t);
2204 -extern asmlinkage long sys_fchown(unsigned int, uid_t,gid_t);
2205 -extern asmlinkage long sys_setregid(gid_t, gid_t);
2206 -extern asmlinkage long sys_setgid(gid_t);
2207 -extern asmlinkage long sys_setreuid(uid_t, uid_t);
2208 -extern asmlinkage long sys_setuid(uid_t);
2209 -extern asmlinkage long sys_setresuid(uid_t, uid_t, uid_t);
2210 -extern asmlinkage long sys_setresgid(gid_t, gid_t, gid_t);
2211 -extern asmlinkage long sys_setfsuid(uid_t);
2212 -extern asmlinkage long sys_setfsgid(gid_t);
2214 asmlinkage long sys_chown16(const char * filename, old_uid_t user, old_gid_t group)
2216 return sys_chown(filename, low2highuid(user), low2highgid(group));
2217 diff -Naurp -X /home/rddunlap/doc/dontdiff-osdl linux-262-rc3/net/compat.c linux-262-rc3-syscalls/net/compat.c
2218 --- linux-262-rc3/net/compat.c 2004-01-08 22:59:44.000000000 -0800
2219 +++ linux-262-rc3-syscalls/net/compat.c 2004-02-02 10:13:13.000000000 -0800
2221 #include <linux/file.h>
2222 #include <linux/icmpv6.h>
2223 #include <linux/socket.h>
2224 +#include <linux/syscalls.h>
2225 #include <linux/filter.h>
2226 #include <linux/compat.h>
2227 #include <linux/netfilter_ipv4/ip_tables.h>
2228 @@ -304,9 +305,6 @@ void scm_detach_fds_compat(struct msghdr
2232 -extern asmlinkage long sys_setsockopt(int fd, int level, int optname,
2233 - char *optval, int optlen);
2236 * For now, we assume that the compatibility and native version
2237 * of struct ipt_entry are the same - sfr. FIXME
2238 @@ -471,9 +469,6 @@ asmlinkage long compat_sys_setsockopt(in
2239 return sys_setsockopt(fd, level, optname, optval, optlen);
2242 -extern asmlinkage long sys_getsockopt(int fd, int level, int optname,
2243 - void * optval, int *optlen);
2245 static int do_get_sock_timeout(int fd, int level, int optname, char *optval,
2248 @@ -517,22 +512,6 @@ static unsigned char nas[18]={AL(0),AL(3
2249 AL(6),AL(2),AL(5),AL(5),AL(3),AL(3)};
2252 -extern asmlinkage long sys_bind(int, struct sockaddr *, int);
2253 -extern asmlinkage long sys_connect(int, struct sockaddr *, int);
2254 -extern asmlinkage long sys_accept(int, struct sockaddr *, int *);
2255 -extern asmlinkage long sys_getsockname(int, struct sockaddr *, int *);
2256 -extern asmlinkage long sys_getpeername(int, struct sockaddr *, int *);
2257 -extern asmlinkage long sys_send(int, void *, size_t, unsigned);
2258 -extern asmlinkage long sys_sendto(int, void *, size_t, unsigned,
2259 - struct sockaddr *, int);
2260 -extern asmlinkage long sys_recv(int, void *, size_t, unsigned);
2261 -extern asmlinkage long sys_recvfrom(int, void *, size_t, unsigned,
2262 - struct sockaddr *, int *);
2263 -extern asmlinkage long sys_socket(int, int, int);
2264 -extern asmlinkage long sys_socketpair(int, int, int, int [2]);
2265 -extern asmlinkage long sys_shutdown(int, int);
2266 -extern asmlinkage long sys_listen(int, int);
2268 asmlinkage long compat_sys_sendmsg(int fd, struct compat_msghdr *msg, unsigned flags)
2270 return sys_sendmsg(fd, (struct msghdr *)msg, flags | MSG_CMSG_COMPAT);