From 7cee9ef11cc304e57b03042a9f57baa6036dae4b Mon Sep 17 00:00:00 2001 From: Nicolas Pitre Date: Tue, 7 Sep 2004 19:25:43 +0100 Subject: [PATCH] [ARM PATCH] 2068/2: fix more gcc-3.4.1 warnings Patch from Nicolas Pitre This patch removes a bunch of inline functions from unistd.h on ARM. Some of them were conflicting with gcc's idea of how they should normally be declared, and none of them are used anymore. Signed-off-by: Nicolas Pitre --- include/asm-arm/unistd.h | 45 ---------------------------------------- 1 file changed, 45 deletions(-) diff --git a/include/asm-arm/unistd.h b/include/asm-arm/unistd.h index 1435eb396b73a..add553f1eb79e 100644 --- a/include/asm-arm/unistd.h +++ b/include/asm-arm/unistd.h @@ -475,51 +475,6 @@ type name(type1 arg1, type2 arg2, type3 arg3, type4 arg4, type5 arg5, type6 arg6 #include #include -static inline pid_t setsid(void) -{ - return sys_setsid(); -} - -static inline long write(int fd, const char *buf, off_t count) -{ - return sys_write(fd, buf, count); -} - -static inline long read(int fd, char *buf, off_t count) -{ - return sys_read(fd, buf, count); -} - -static inline off_t lseek(int fd, off_t offset, int count) -{ - return sys_lseek(fd, offset, count); -} - -static inline long dup(int fd) -{ - return sys_dup(fd); -} - -static inline long open(const char *file, int flag, int mode) -{ - return sys_open(file, flag, mode); -} - -static inline long close(int fd) -{ - return sys_close(fd); -} - -static inline long _exit(int exitcode) -{ - return sys_exit(exitcode); -} - -static inline pid_t waitpid(pid_t pid, int *wait_stat, int options) -{ - return sys_wait4((int)pid, wait_stat, options, NULL); -} - extern long execve(const char *file, char **argv, char **envp); struct pt_regs; -- 2.53.0