diff options
author | Jeff Dike <jdike@addtoit.com> | 2007-10-16 12:26:40 +0400 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-10-16 20:43:04 +0400 |
commit | 8e2d10e1e76d894ec73d66dd63b641ccf5f5fb67 (patch) | |
tree | 5ae54e7ecfd3b8fca96aa59890b0c0007c4fd242 /arch/um/os-Linux | |
parent | 89fe64766ab76b02c65a806b8b5a864652493bd6 (diff) | |
download | linux-8e2d10e1e76d894ec73d66dd63b641ccf5f5fb67.tar.xz |
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')
-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) return err; } -int os_window_size(int fd, int *rows, int *cols) -{ - struct winsize size; - - if(ioctl(fd, TIOCGWINSZ, &size) < 0) - return -errno; - - *rows = size.ws_row; - *cols = size.ws_col; - - return 0; -} - int os_new_tty_pgrp(int fd, int pid) { if(ioctl(fd, TIOCSCTTY, 0) < 0) |