diff options
author | Jeff Dike <jdike@addtoit.com> | 2007-02-10 04:44:20 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-02-11 13:51:23 -0500 |
commit | 73c8f4441f07dd3b9d198ec0e97ce83138a6224c (patch) | |
tree | 88af71fd8d091cab9c8f05994202221f9f42e2d4 /arch/um/os-Linux/file.c | |
parent | 9eae9b132cd2cebf98cc45550049d421302b9aba (diff) |
[PATCH] uml: libc-dependent code should call libc directly
We shouldn't be using the os wrappers from os code - we can use libc directly.
This patch replaces wrapper calls with libc calls.
It turns out that os_sigio_async had only one caller, which was in startup.c,
so that function is moved there and its name changed.
Signed-off-by: Jeff Dike <jdike@addtoit.com>
Cc: Paolo 'Blaisorblade' Giarrusso <blaisorblade@yahoo.it>
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/file.c')
-rw-r--r-- | arch/um/os-Linux/file.c | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/arch/um/os-Linux/file.c b/arch/um/os-Linux/file.c index 189fa677085a..371b4335f46d 100644 --- a/arch/um/os-Linux/file.c +++ b/arch/um/os-Linux/file.c | |||
@@ -162,25 +162,6 @@ int os_set_owner(int fd, int pid) | |||
162 | return 0; | 162 | return 0; |
163 | } | 163 | } |
164 | 164 | ||
165 | /* FIXME? moved wholesale from sigio_user.c to get fcntls out of that file */ | ||
166 | int os_sigio_async(int master, int slave) | ||
167 | { | ||
168 | int flags; | ||
169 | |||
170 | flags = fcntl(master, F_GETFL); | ||
171 | if(flags < 0) | ||
172 | return -errno; | ||
173 | |||
174 | if((fcntl(master, F_SETFL, flags | O_NONBLOCK | O_ASYNC) < 0) || | ||
175 | (fcntl(master, F_SETOWN, os_getpid()) < 0)) | ||
176 | return -errno; | ||
177 | |||
178 | if((fcntl(slave, F_SETFL, flags | O_NONBLOCK) < 0)) | ||
179 | return -errno; | ||
180 | |||
181 | return(0); | ||
182 | } | ||
183 | |||
184 | int os_mode_fd(int fd, int mode) | 165 | int os_mode_fd(int fd, int mode) |
185 | { | 166 | { |
186 | int err; | 167 | int err; |