
From: Robert Love <rml@tech9.net>

Additional work to make syscalls return longs.


 Documentation/DocBook/kernel-hacking.tmpl |    2 +-
 drivers/macintosh/via-pmu.c               |    2 +-
 drivers/message/fusion/mptctl.c           |    2 +-
 include/asm-parisc/unistd.h               |   10 +++++-----
 include/linux/ioctl32.h                   |    2 +-
 kernel/suspend.c                          |    2 +-
 net/compat.c                              |    6 +++---
 7 files changed, 13 insertions(+), 13 deletions(-)

diff -puN Documentation/DocBook/kernel-hacking.tmpl~syscalls-return-long-2 Documentation/DocBook/kernel-hacking.tmpl
--- 25/Documentation/DocBook/kernel-hacking.tmpl~syscalls-return-long-2	2003-03-20 22:58:45.000000000 -0800
+++ 25-akpm/Documentation/DocBook/kernel-hacking.tmpl	2003-03-20 22:58:45.000000000 -0800
@@ -319,7 +319,7 @@
   </para>
 
   <programlisting>
-asmlinkage int sys_mycall(int arg) 
+asmlinkage long sys_mycall(int arg)
 {
         return 0; 
 }
diff -puN drivers/macintosh/via-pmu.c~syscalls-return-long-2 drivers/macintosh/via-pmu.c
--- 25/drivers/macintosh/via-pmu.c~syscalls-return-long-2	2003-03-20 22:58:45.000000000 -0800
+++ 25-akpm/drivers/macintosh/via-pmu.c	2003-03-20 22:58:45.000000000 -0800
@@ -2002,7 +2002,7 @@ static inline void wakeup_decrementer(vo
 	last_jiffy_stamp(0) = tb_last_stamp = get_tbl();
 }
 
-extern int sys_sync(void);
+extern long sys_sync(void);
 
 #define	GRACKLE_PM	(1<<7)
 #define GRACKLE_DOZE	(1<<5)
diff -puN drivers/message/fusion/mptctl.c~syscalls-return-long-2 drivers/message/fusion/mptctl.c
--- 25/drivers/message/fusion/mptctl.c~syscalls-return-long-2	2003-03-20 22:58:45.000000000 -0800
+++ 25-akpm/drivers/message/fusion/mptctl.c	2003-03-20 22:58:45.000000000 -0800
@@ -2743,7 +2743,7 @@ extern int register_ioctl32_conversion(u
 						      unsigned long,
 						      struct file *));
 int unregister_ioctl32_conversion(unsigned int cmd);
-extern asmlinkage int sys_ioctl(unsigned int fd, unsigned int cmd, unsigned long arg);
+extern long sys_ioctl(unsigned int fd, unsigned int cmd, unsigned long arg);
 
 /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=*/
 /* sparc32_XXX functions are used to provide a conversion between
diff -puN include/asm-parisc/unistd.h~syscalls-return-long-2 include/asm-parisc/unistd.h
--- 25/include/asm-parisc/unistd.h~syscalls-return-long-2	2003-03-20 22:58:45.000000000 -0800
+++ 25-akpm/include/asm-parisc/unistd.h	2003-03-20 22:58:45.000000000 -0800
@@ -842,19 +842,19 @@ type name(type1 arg1, type2 arg2, type3 
 
 static inline pid_t setsid(void)
 {
-	extern int sys_setsid(void);
+	extern long sys_setsid(void);
 	return sys_setsid();
 }
 
 static inline int write(int fd, const char *buf, off_t count)
 {
-	extern int sys_write(int, const char *, int);
+	extern long sys_write(int, const char *, int);
 	return sys_write(fd, buf, count);
 }
 
 static inline int read(int fd, char *buf, off_t count)
 {
-	extern int sys_read(int, char *, int);
+	extern long sys_read(int, char *, int);
 	return sys_read(fd, buf, count);
 }
 
@@ -866,7 +866,7 @@ static inline off_t lseek(int fd, off_t 
 
 static inline int dup(int fd)
 {
-	extern int sys_dup(int);
+	extern long sys_dup(int);
 	return sys_dup(fd);
 }
 
@@ -891,7 +891,7 @@ static inline int close(int fd)
 
 static inline int _exit(int exitcode)
 {
-	extern int sys_exit(int) __attribute__((noreturn));
+	extern long sys_exit(int) __attribute__((noreturn));
 	return sys_exit(exitcode);
 }
 
diff -puN include/linux/ioctl32.h~syscalls-return-long-2 include/linux/ioctl32.h
--- 25/include/linux/ioctl32.h~syscalls-return-long-2	2003-03-20 22:58:45.000000000 -0800
+++ 25-akpm/include/linux/ioctl32.h	2003-03-20 22:58:45.000000000 -0800
@@ -3,7 +3,7 @@
 
 struct file;
 
-int sys_ioctl(unsigned int, unsigned int, unsigned long);
+extern long sys_ioctl(unsigned int, unsigned int, unsigned long);
 
 /* 
  * Register an 32bit ioctl translation handler for ioctl cmd.
diff -puN kernel/suspend.c~syscalls-return-long-2 kernel/suspend.c
--- 25/kernel/suspend.c~syscalls-return-long-2	2003-03-20 22:58:45.000000000 -0800
+++ 25-akpm/kernel/suspend.c	2003-03-20 22:58:45.000000000 -0800
@@ -65,7 +65,7 @@
 #include <asm/pgtable.h>
 #include <asm/io.h>
 
-extern int sys_sync(void);
+extern long sys_sync(void);
 
 unsigned char software_suspend_enabled = 0;
 
diff -puN net/compat.c~syscalls-return-long-2 net/compat.c
--- 25/net/compat.c~syscalls-return-long-2	2003-03-20 22:58:45.000000000 -0800
+++ 25-akpm/net/compat.c	2003-03-20 22:58:45.000000000 -0800
@@ -365,8 +365,8 @@ fail:
 	kmsg->msg_control = (void *) orig_cmsg_uptr;
 }
 
-extern asmlinkage int sys_setsockopt(int fd, int level, int optname,
-				     char *optval, int optlen);
+extern long sys_setsockopt(int fd, int level, int optname,
+			   char *optval, int optlen);
 
 static int do_netfilter_replace(int fd, int level, int optname,
 				char *optval, int optlen)
@@ -530,7 +530,7 @@ static int do_set_sock_timeout(int fd, i
 	return err;
 }
 
-asmlinkage int compat_sys_setsockopt(int fd, int level, int optname,
+asmlinkage long compat_sys_setsockopt(int fd, int level, int optname,
 				char *optval, int optlen)
 {
 	if (optname == IPT_SO_SET_REPLACE)

_
