diff options
author | Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> | 2011-02-02 17:47:25 +0100 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2011-02-03 09:54:51 +0100 |
commit | b49e601449d52fb10d8816b5d23644332111d002 (patch) | |
tree | 529d2c1ffce020e95605d21e776840633f3ba667 /arch/sandbox | |
parent | 628a2d1b5bc6b4be6ac10b31a19d920dcefdad75 (diff) | |
download | barebox-b49e601449d52fb10d8816b5d23644332111d002.tar.gz barebox-b49e601449d52fb10d8816b5d23644332111d002.tar.xz |
sandbox: remove non used functions linux_getc/putc
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch/sandbox')
-rw-r--r-- | arch/sandbox/mach-sandbox/include/mach/linux.h | 2 | ||||
-rw-r--r-- | arch/sandbox/os/common.c | 20 |
2 files changed, 0 insertions, 22 deletions
diff --git a/arch/sandbox/mach-sandbox/include/mach/linux.h b/arch/sandbox/mach-sandbox/include/mach/linux.h index b9053d85ae..7c2386d247 100644 --- a/arch/sandbox/mach-sandbox/include/mach/linux.h +++ b/arch/sandbox/mach-sandbox/include/mach/linux.h @@ -8,8 +8,6 @@ int linux_read(int fd, void *buf, size_t count); int linux_read_nonblock(int fd, void *buf, size_t count); ssize_t linux_write(int fd, const void *buf, size_t count); off_t linux_lseek(int fildes, off_t offset); -int linux_getc (void); -void linux_putc (const char c); int linux_tstc(int fd); int barebox_register_console(char *name_template, int stdinfd, int stdoutfd); diff --git a/arch/sandbox/os/common.c b/arch/sandbox/os/common.c index 287be0d13b..dcaf0c837e 100644 --- a/arch/sandbox/os/common.c +++ b/arch/sandbox/os/common.c @@ -73,17 +73,6 @@ static void cookmode(void) tcsetattr(0, TCSANOW, &term_orig); } -void linux_putc(const char c) -{ - fputc(c, stdout); - - /* If \n, also do \r */ - if (c == '\n') - linux_putc ('\r'); - - fflush(stdout); -} - int linux_tstc(int fd) { struct timeval tv = { @@ -117,15 +106,6 @@ int ctrlc(void) return 0; } -int linux_getc(void) -{ - char ret; - - read(0, &ret, 1); - - return ret; -} - uint64_t linux_get_time(void) { struct timespec ts; |