aboutsummaryrefslogtreecommitdiff
path: root/win32
diff options
context:
space:
mode:
authorRon Yorston <rmy@pobox.com>2018-04-05 20:31:13 +0100
committerRon Yorston <rmy@pobox.com>2018-04-05 20:31:13 +0100
commitf7c592f6d832602a628008d598a3aa130d89de4d (patch)
tree5b771c3f51bfb51e52f3736f89f7b4b195e13f82 /win32
parent3f18c23c67ea8614f1901265d100d3e49bc7491e (diff)
downloadbusybox-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.c10
-rw-r--r--win32/termios.h4
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
3int tcsetattr(int fd UNUSED_PARAM, int mode UNUSED_PARAM, const struct termios *t UNUSED_PARAM)
4{
5 return -1;
6}
7
8int tcgetattr(int fd UNUSED_PARAM, struct termios *t UNUSED_PARAM)
9{
10 return -1;
11}
12
13int64_t FAST_FUNC read_key(int fd, char *buf UNUSED_PARAM, int timeout) 3int64_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
127int tcflush(int fd, int queue_selector);
128int tcgetattr(int fd, struct termios *t);
129int tcsetattr(int fd, int mode, const struct termios *t);