aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2017-09-15 17:19:55 +0200
committerDenys Vlasenko <vda.linux@googlemail.com>2017-09-15 17:19:55 +0200
commit7735e52df440411ccaeb5df2824e5ba1ce4c161e (patch)
tree080a547ee29c5246626f11ad27ca3badfae09d80
parentaaaaaa5ad6a93101d38800467fe3750b35fed6ea (diff)
downloadbusybox-w32-7735e52df440411ccaeb5df2824e5ba1ce4c161e.tar.gz
busybox-w32-7735e52df440411ccaeb5df2824e5ba1ce4c161e.tar.bz2
busybox-w32-7735e52df440411ccaeb5df2824e5ba1ce4c161e.zip
Clarify OPOST bit meaning
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
-rw-r--r--libbb/xfuncs.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/libbb/xfuncs.c b/libbb/xfuncs.c
index d7647704e..0dfb3e2d9 100644
--- a/libbb/xfuncs.c
+++ b/libbb/xfuncs.c
@@ -348,8 +348,8 @@ int FAST_FUNC get_termios_and_make_raw(int fd, struct termios *newterm, struct t
348 newterm->c_iflag &= ~(IXON | ICRNL); 348 newterm->c_iflag &= ~(IXON | ICRNL);
349 /* dont convert NL to CR+NL on output */ 349 /* dont convert NL to CR+NL on output */
350 newterm->c_oflag &= ~(ONLCR); 350 newterm->c_oflag &= ~(ONLCR);
351 /* Maybe clear more c_oflag bits? usually, only OPOST and ONLCR are set. 351 /* Maybe clear more c_oflag bits? Usually, only OPOST and ONLCR are set.
352 * OPOST Enable implementation-defined output processing (is this reqd for all other bits to work?) 352 * OPOST Enable output processing (reqd for OLCUC and *NL* bits to work)
353 * OLCUC Map lowercase characters to uppercase on output. 353 * OLCUC Map lowercase characters to uppercase on output.
354 * OCRNL Map CR to NL on output. 354 * OCRNL Map CR to NL on output.
355 * ONOCR Don't output CR at column 0. 355 * ONOCR Don't output CR at column 0.
@@ -358,7 +358,7 @@ int FAST_FUNC get_termios_and_make_raw(int fd, struct termios *newterm, struct t
358 } 358 }
359 if (flags & TERMIOS_RAW_INPUT) { 359 if (flags & TERMIOS_RAW_INPUT) {
360 /* IXOFF=0: disable sending XON/XOFF if input buf is full */ 360 /* IXOFF=0: disable sending XON/XOFF if input buf is full */
361 /* IXON=0: XON/XOFF chars are treated as normal chars */ 361 /* IXON=0: input XON/XOFF chars are not special */
362 /* dont convert anything on input */ 362 /* dont convert anything on input */
363 newterm->c_iflag &= ~(IXOFF|IXON|IXANY|BRKINT|INLCR|ICRNL|IUCLC|IMAXBEL); 363 newterm->c_iflag &= ~(IXOFF|IXON|IXANY|BRKINT|INLCR|ICRNL|IUCLC|IMAXBEL);
364 } 364 }