diff options
Diffstat (limited to 'termios')
-rw-r--r-- | termios/cfmakeraw.c | 3 | ||||
-rw-r--r-- | termios/speed.c | 14 | ||||
-rw-r--r-- | termios/tcflow.c | 4 | ||||
-rw-r--r-- | termios/tcflush.c | 4 | ||||
-rw-r--r-- | termios/tcgetattr.c | 4 | ||||
-rw-r--r-- | termios/tcgetpgrp.c | 3 | ||||
-rw-r--r-- | termios/tcgetsid.c | 3 | ||||
-rw-r--r-- | termios/tcsendbrk.c | 4 | ||||
-rw-r--r-- | termios/tcsetpgrp.c | 4 |
9 files changed, 12 insertions, 31 deletions
diff --git a/termios/cfmakeraw.c b/termios/cfmakeraw.c index 035a6d6ce4..0f955a3c2a 100644 --- a/termios/cfmakeraw.c +++ b/termios/cfmakeraw.c @@ -19,8 +19,7 @@ /* Set *T to indicate raw mode. */ void -cfmakeraw (t) - struct termios *t; +cfmakeraw (struct termios *t) { t->c_iflag &= ~(IGNBRK|BRKINT|PARMRK|ISTRIP|INLCR|IGNCR|ICRNL|IXON); t->c_oflag &= ~OPOST; diff --git a/termios/speed.c b/termios/speed.c index a6380a948f..b3d81c2c37 100644 --- a/termios/speed.c +++ b/termios/speed.c @@ -22,25 +22,21 @@ /* Return the output baud rate stored in *TERMIOS_P. */ speed_t -cfgetospeed (termios_p) - const struct termios *termios_p; +cfgetospeed (const struct termios *termios_p) { return termios_p->__ospeed; } /* Return the input baud rate stored in *TERMIOS_P. */ speed_t -cfgetispeed (termios_p) - const struct termios *termios_p; +cfgetispeed (const struct termios *termios_p) { return termios_p->__ispeed; } /* Set the output baud rate stored in *TERMIOS_P to SPEED. */ int -cfsetospeed (termios_p, speed) - struct termios *termios_p; - speed_t speed; +cfsetospeed (struct termios *termios_p, speed_t speed) { if (termios_p == NULL) { @@ -55,9 +51,7 @@ libc_hidden_def (cfsetospeed) /* Set the input baud rate stored in *TERMIOS_P to SPEED. */ int -cfsetispeed (termios_p, speed) - struct termios *termios_p; - speed_t speed; +cfsetispeed (struct termios *termios_p, speed_t speed) { if (termios_p == NULL) { diff --git a/termios/tcflow.c b/termios/tcflow.c index a86fe8bd54..c505b7d669 100644 --- a/termios/tcflow.c +++ b/termios/tcflow.c @@ -20,9 +20,7 @@ /* Suspend or restart transmission on FD. */ int -tcflow (fd, action) - int fd; - int action; +tcflow (int fd, int action) { if (fd < 0) { diff --git a/termios/tcflush.c b/termios/tcflush.c index db3c945f98..4bb085b2b9 100644 --- a/termios/tcflush.c +++ b/termios/tcflush.c @@ -20,9 +20,7 @@ /* Flush pending data on FD. */ int -tcflush (fd, queue_selector) - int fd; - int queue_selector; +tcflush (int fd, int queue_selector) { switch (queue_selector) { diff --git a/termios/tcgetattr.c b/termios/tcgetattr.c index badbb59965..b512e68c22 100644 --- a/termios/tcgetattr.c +++ b/termios/tcgetattr.c @@ -21,9 +21,7 @@ /* Put the state of FD into *TERMIOS_P. */ int -__tcgetattr (fd, termios_p) - int fd; - struct termios *termios_p; +__tcgetattr (int fd, struct termios *termios_p) { if (fd < 0) { diff --git a/termios/tcgetpgrp.c b/termios/tcgetpgrp.c index b1a05476f3..71019745dd 100644 --- a/termios/tcgetpgrp.c +++ b/termios/tcgetpgrp.c @@ -21,8 +21,7 @@ /* Return the foreground process group ID of FD. */ pid_t -tcgetpgrp (fd) - int fd; +tcgetpgrp (int fd) { if (fd < 0) { diff --git a/termios/tcgetsid.c b/termios/tcgetsid.c index fcf4d7f32f..59e2a7c8da 100644 --- a/termios/tcgetsid.c +++ b/termios/tcgetsid.c @@ -23,8 +23,7 @@ /* Return the session ID of FD. */ pid_t -tcgetsid (fd) - int fd; +tcgetsid (int fd) { pid_t pgrp; pid_t sid; diff --git a/termios/tcsendbrk.c b/termios/tcsendbrk.c index abd4d11a19..ff8b4dd267 100644 --- a/termios/tcsendbrk.c +++ b/termios/tcsendbrk.c @@ -20,9 +20,7 @@ /* Send zero bits on FD. */ int -tcsendbreak (fd, duration) - int fd; - int duration; +tcsendbreak (int fd, int duration) { if (fd < 0) { diff --git a/termios/tcsetpgrp.c b/termios/tcsetpgrp.c index e6205c53e9..cec1e98010 100644 --- a/termios/tcsetpgrp.c +++ b/termios/tcsetpgrp.c @@ -21,9 +21,7 @@ /* Set the foreground process group ID of FD set PGRP_ID. */ int -tcsetpgrp (fd, pgrp_id) - int fd; - pid_t pgrp_id; +tcsetpgrp (int fd, pid_t pgrp_id) { if (fd < 0) { |