aboutsummaryrefslogtreecommitdiff
path: root/libbb/xfuncs.c
diff options
context:
space:
mode:
authorRon Yorston <rmy@pobox.com>2017-11-03 14:16:08 +0000
committerRon Yorston <rmy@pobox.com>2017-11-03 14:16:08 +0000
commitd6ce08aeb85b3698ddaa281016b70e16aeb9fb35 (patch)
tree02ad9bc0684859515fe891f3d6b0a1086e0db156 /libbb/xfuncs.c
parentab450021a99ba66126cc6d668fb06ec3829a572b (diff)
parenta5060b8364faa7c677c8950f1315c451403b0660 (diff)
downloadbusybox-w32-d6ce08aeb85b3698ddaa281016b70e16aeb9fb35.tar.gz
busybox-w32-d6ce08aeb85b3698ddaa281016b70e16aeb9fb35.tar.bz2
busybox-w32-d6ce08aeb85b3698ddaa281016b70e16aeb9fb35.zip
Merge branch 'busybox' into merge
Diffstat (limited to 'libbb/xfuncs.c')
-rw-r--r--libbb/xfuncs.c11
1 files changed, 9 insertions, 2 deletions
diff --git a/libbb/xfuncs.c b/libbb/xfuncs.c
index 0dfb3e2d9..43ae98065 100644
--- a/libbb/xfuncs.c
+++ b/libbb/xfuncs.c
@@ -8,7 +8,6 @@
8 * 8 *
9 * Licensed under GPLv2, see file LICENSE in this source tree. 9 * Licensed under GPLv2, see file LICENSE in this source tree.
10 */ 10 */
11
12/* We need to have separate xfuncs.c and xfuncs_printf.c because 11/* We need to have separate xfuncs.c and xfuncs_printf.c because
13 * with current linkers, even with section garbage collection, 12 * with current linkers, even with section garbage collection,
14 * if *.o module references any of XXXprintf functions, you pull in 13 * if *.o module references any of XXXprintf functions, you pull in
@@ -21,7 +20,6 @@
21 * 20 *
22 * TODO: move xmalloc() and xatonum() here. 21 * TODO: move xmalloc() and xatonum() here.
23 */ 22 */
24
25#include "libbb.h" 23#include "libbb.h"
26 24
27/* Turn on nonblocking I/O on a fd */ 25/* Turn on nonblocking I/O on a fd */
@@ -357,6 +355,15 @@ int FAST_FUNC get_termios_and_make_raw(int fd, struct termios *newterm, struct t
357 */ 355 */
358 } 356 }
359 if (flags & TERMIOS_RAW_INPUT) { 357 if (flags & TERMIOS_RAW_INPUT) {
358#ifndef IMAXBEL
359# define IMAXBEL 0
360#endif
361#ifndef IUCLC
362# define IUCLC 0
363#endif
364#ifndef IXANY
365# define IXANY 0
366#endif
360 /* IXOFF=0: disable sending XON/XOFF if input buf is full */ 367 /* IXOFF=0: disable sending XON/XOFF if input buf is full */
361 /* IXON=0: input XON/XOFF chars are not special */ 368 /* IXON=0: input XON/XOFF chars are not special */
362 /* dont convert anything on input */ 369 /* dont convert anything on input */