diff options
author | Jeff Dike <jdike@addtoit.com> | 2007-10-16 04:26:40 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-10-16 12:43:04 -0400 |
commit | 8e2d10e1e76d894ec73d66dd63b641ccf5f5fb67 (patch) | |
tree | 5ae54e7ecfd3b8fca96aa59890b0c0007c4fd242 /arch/um/os-Linux/file.c | |
parent | 89fe64766ab76b02c65a806b8b5a864652493bd6 (diff) |
uml: tidy recently-moved code
Now that the generic console operations are in a userspace file, we
can do the following:
directly call into libc instead of through the os_* wrappers
eliminate os_window_size since it has only one user
Signed-off-by: Jeff Dike <jdike@linux.intel.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 | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/arch/um/os-Linux/file.c b/arch/um/os-Linux/file.c index c3ecc2a84e0c..f52006ee70e8 100644 --- a/arch/um/os-Linux/file.c +++ b/arch/um/os-Linux/file.c | |||
@@ -101,19 +101,6 @@ int os_ioctl_generic(int fd, unsigned int cmd, unsigned long arg) | |||
101 | return err; | 101 | return err; |
102 | } | 102 | } |
103 | 103 | ||
104 | int os_window_size(int fd, int *rows, int *cols) | ||
105 | { | ||
106 | struct winsize size; | ||
107 | |||
108 | if(ioctl(fd, TIOCGWINSZ, &size) < 0) | ||
109 | return -errno; | ||
110 | |||
111 | *rows = size.ws_row; | ||
112 | *cols = size.ws_col; | ||
113 | |||
114 | return 0; | ||
115 | } | ||
116 | |||
117 | int os_new_tty_pgrp(int fd, int pid) | 104 | int os_new_tty_pgrp(int fd, int pid) |
118 | { | 105 | { |
119 | if(ioctl(fd, TIOCSCTTY, 0) < 0) | 106 | if(ioctl(fd, TIOCSCTTY, 0) < 0) |