diff options
author | Ron Yorston <rmy@pobox.com> | 2018-04-05 20:31:13 +0100 |
---|---|---|
committer | Ron Yorston <rmy@pobox.com> | 2018-04-05 20:31:13 +0100 |
commit | f7c592f6d832602a628008d598a3aa130d89de4d (patch) | |
tree | 5b771c3f51bfb51e52f3736f89f7b4b195e13f82 /win32 | |
parent | 3f18c23c67ea8614f1901265d100d3e49bc7491e (diff) | |
download | busybox-w32-f7c592f6d832602a628008d598a3aa130d89de4d.tar.gz busybox-w32-f7c592f6d832602a628008d598a3aa130d89de4d.tar.bz2 busybox-w32-f7c592f6d832602a628008d598a3aa130d89de4d.zip |
win32: exclude termios code
The code to manipulate terminal settings serves no purpose in WIN32.
Use conditional compilation to exclude much of it.
Diffstat (limited to 'win32')
-rw-r--r-- | win32/termios.c | 10 | ||||
-rw-r--r-- | win32/termios.h | 4 |
2 files changed, 0 insertions, 14 deletions
diff --git a/win32/termios.c b/win32/termios.c index a1329ceba..7115bc0da 100644 --- a/win32/termios.c +++ b/win32/termios.c | |||
@@ -1,15 +1,5 @@ | |||
1 | #include "libbb.h" | 1 | #include "libbb.h" |
2 | 2 | ||
3 | int tcsetattr(int fd UNUSED_PARAM, int mode UNUSED_PARAM, const struct termios *t UNUSED_PARAM) | ||
4 | { | ||
5 | return -1; | ||
6 | } | ||
7 | |||
8 | int tcgetattr(int fd UNUSED_PARAM, struct termios *t UNUSED_PARAM) | ||
9 | { | ||
10 | return -1; | ||
11 | } | ||
12 | |||
13 | int64_t FAST_FUNC read_key(int fd, char *buf UNUSED_PARAM, int timeout) | 3 | int64_t FAST_FUNC read_key(int fd, char *buf UNUSED_PARAM, int timeout) |
14 | { | 4 | { |
15 | HANDLE cin = GetStdHandle(STD_INPUT_HANDLE); | 5 | HANDLE cin = GetStdHandle(STD_INPUT_HANDLE); |
diff --git a/win32/termios.h b/win32/termios.h index 011a37eb9..c98d414f3 100644 --- a/win32/termios.h +++ b/win32/termios.h | |||
@@ -123,7 +123,3 @@ struct winsize { | |||
123 | unsigned short ws_row, ws_col; | 123 | unsigned short ws_row, ws_col; |
124 | unsigned short ws_xpixel, ws_ypixel; | 124 | unsigned short ws_xpixel, ws_ypixel; |
125 | }; | 125 | }; |
126 | |||
127 | int tcflush(int fd, int queue_selector); | ||
128 | int tcgetattr(int fd, struct termios *t); | ||
129 | int tcsetattr(int fd, int mode, const struct termios *t); | ||