diff options
| author | Andrew Morton <akpm@digeo.com> | 2003-03-22 07:35:43 -0800 |
|---|---|---|
| committer | David S. Miller <davem@kernel.bkbits.net> | 2003-03-22 07:35:43 -0800 |
| commit | 6ada8a9c2f021fd071948431b4e0ca051fd8721e (patch) | |
| tree | 22b3fd8df31302f2da103c7cb6e83422f328327a /include | |
| parent | cf59843bed891f87726abac576adcf2775b235af (diff) | |
[PATCH] More syscalls-returning-long
From: Robert Love <rml@tech9.net>
Additional work to make syscalls return longs.
Diffstat (limited to 'include')
| -rw-r--r-- | include/asm-parisc/unistd.h | 10 | ||||
| -rw-r--r-- | include/linux/ioctl32.h | 2 |
2 files changed, 6 insertions, 6 deletions
diff --git a/include/asm-parisc/unistd.h b/include/asm-parisc/unistd.h index dc8979b6eb2b..9aa3ef58c78b 100644 --- a/include/asm-parisc/unistd.h +++ b/include/asm-parisc/unistd.h @@ -842,19 +842,19 @@ type name(type1 arg1, type2 arg2, type3 arg3, type4 arg4, type5 arg5, type6 arg6 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 offset, int count) 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 --git a/include/linux/ioctl32.h b/include/linux/ioctl32.h index b7abfe6eae10..456494591a51 100644 --- a/include/linux/ioctl32.h +++ b/include/linux/ioctl32.h @@ -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. |
