Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

x86, um: get rid of uml unistd.h

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: H. Peter Anvin <hpa@zytor.com>

authored by

Al Viro and committed by
H. Peter Anvin
ff64b4c1 6a0eec82

+4 -41
-41
arch/um/include/asm/unistd.h
··· 1 - /* 2 - * Copyright (C) 2000 - 2004 Jeff Dike (jdike@karaya.com) 3 - * Licensed under the GPL 4 - */ 5 - 6 - #ifndef _UM_UNISTD_H_ 7 - #define _UM_UNISTD_H_ 8 - 9 - #include <linux/syscalls.h> 10 - #include "linux/resource.h" 11 - #include "asm/uaccess.h" 12 - 13 - extern int um_execve(const char *file, char *const argv[], char *const env[]); 14 - 15 - #ifdef __KERNEL__ 16 - /* We get __ARCH_WANT_OLD_STAT and __ARCH_WANT_STAT64 from the base arch */ 17 - #define __ARCH_WANT_OLD_READDIR 18 - #define __ARCH_WANT_SYS_ALARM 19 - #define __ARCH_WANT_SYS_GETHOSTNAME 20 - #define __ARCH_WANT_SYS_PAUSE 21 - #define __ARCH_WANT_SYS_SGETMASK 22 - #define __ARCH_WANT_SYS_SIGNAL 23 - #define __ARCH_WANT_SYS_TIME 24 - #define __ARCH_WANT_SYS_UTIME 25 - #define __ARCH_WANT_SYS_WAITPID 26 - #define __ARCH_WANT_SYS_SOCKETCALL 27 - #define __ARCH_WANT_SYS_FADVISE64 28 - #define __ARCH_WANT_SYS_GETPGRP 29 - #define __ARCH_WANT_SYS_LLSEEK 30 - #define __ARCH_WANT_SYS_NICE 31 - #define __ARCH_WANT_SYS_OLD_GETRLIMIT 32 - #define __ARCH_WANT_SYS_OLDUMOUNT 33 - #define __ARCH_WANT_SYS_SIGPENDING 34 - #define __ARCH_WANT_SYS_SIGPROCMASK 35 - #define __ARCH_WANT_SYS_RT_SIGACTION 36 - #define __ARCH_WANT_SYS_RT_SIGSUSPEND 37 - #endif 38 - 39 - #include "asm/arch/unistd.h" 40 - 41 - #endif /* _UM_UNISTD_H_*/
+1
arch/um/kernel/exec.c
··· 15 15 #include "mem_user.h" 16 16 #include "skas.h" 17 17 #include "os.h" 18 + #include "internal.h" 18 19 19 20 void flush_thread(void) 20 21 {
+1
arch/um/kernel/internal.h
··· 1 + extern long um_execve(char *file, char __user *__user *argv, char __user *__user *env);
+1
arch/um/kernel/syscall.c
··· 12 12 #include "asm/mman.h" 13 13 #include "asm/uaccess.h" 14 14 #include "asm/unistd.h" 15 + #include "internal.h" 15 16 16 17 long sys_fork(void) 17 18 {
+1
arch/um/sys-i386/syscalls.c
··· 6 6 #include "linux/sched.h" 7 7 #include "linux/shm.h" 8 8 #include "linux/ipc.h" 9 + #include "linux/syscalls.h" 9 10 #include "asm/mman.h" 10 11 #include "asm/uaccess.h" 11 12 #include "asm/unistd.h"