diff options
author | Jeff Dike <jdike@addtoit.com> | 2007-10-16 04:27:11 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-10-16 12:43:06 -0400 |
commit | 512b6fb1c14d4c34f23a3419b0789ad01914a899 (patch) | |
tree | 29e51c256dde41db297cff28767bf4dc4a1dc73f /arch/um/os-Linux/start_up.c | |
parent | b21d4b08b6686fa13bf9d4cae1ae08cb23ea3d53 (diff) |
uml: userspace files should call libc directly
A number of files that were changed in the recent removal of tt mode
are userspace files which call the os_* wrappers instead of calling
libc directly. A few other files were affected by this, through
This patch makes these call glibc directly.
There are also style fixes in the affected areas.
os_print_error has no remaining callers, so it is deleted.
There is a interface change to os_set_exec_close, eliminating a
parameter which was always the same. The callers are fixed as well.
os_process_pc got its error path cleaned up.
Signed-off-by: Jeff Dike <jdike@linux.intel.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'arch/um/os-Linux/start_up.c')
-rw-r--r-- | arch/um/os-Linux/start_up.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/arch/um/os-Linux/start_up.c b/arch/um/os-Linux/start_up.c index c5c36dbe819b..7b81f6c08a5e 100644 --- a/arch/um/os-Linux/start_up.c +++ b/arch/um/os-Linux/start_up.c | |||
@@ -28,13 +28,14 @@ | |||
28 | static int ptrace_child(void) | 28 | static int ptrace_child(void) |
29 | { | 29 | { |
30 | int ret; | 30 | int ret; |
31 | /* Calling os_getpid because some libcs cached getpid incorrectly */ | ||
31 | int pid = os_getpid(), ppid = getppid(); | 32 | int pid = os_getpid(), ppid = getppid(); |
32 | int sc_result; | 33 | int sc_result; |
33 | 34 | ||
34 | change_sig(SIGWINCH, 0); | 35 | change_sig(SIGWINCH, 0); |
35 | if (ptrace(PTRACE_TRACEME, 0, 0, 0) < 0) { | 36 | if (ptrace(PTRACE_TRACEME, 0, 0, 0) < 0) { |
36 | perror("ptrace"); | 37 | perror("ptrace"); |
37 | os_kill_process(pid, 0); | 38 | kill(pid, SIGKILL); |
38 | } | 39 | } |
39 | kill(pid, SIGSTOP); | 40 | kill(pid, SIGSTOP); |
40 | 41 | ||
@@ -496,7 +497,7 @@ int __init parse_iomem(char *str, int *add) | |||
496 | file++; | 497 | file++; |
497 | fd = open(file, O_RDWR, 0); | 498 | fd = open(file, O_RDWR, 0); |
498 | if (fd < 0) { | 499 | if (fd < 0) { |
499 | os_print_error(fd, "parse_iomem - Couldn't open io file"); | 500 | perror("parse_iomem - Couldn't open io file"); |
500 | goto out; | 501 | goto out; |
501 | } | 502 | } |
502 | 503 | ||