Fixed the uart(3) manpage and removed the 't' option from the control messages, as it does nothing in the current kernel. Notes: Mon Jan 23 09:39:24 EST 2006 rsc These fixes aren't correct. uart.orig:1,6 - /n/sources/patch/uart-update/uart:1,6 .TH UART 3 .SH NAME - uart, eia \- serial communication control + uart, eia - serial communication control .SH SYNOPSIS .nf .B bind -a #t /dev The correct one is \-, to get a full en-dash. uart.orig:11,17 - /n/sources/patch/uart-update/uart:11,17 .B /dev/eia1 .B /dev/eia1ctl .B /dev/eia1status - \&... + ... .fi .SH DESCRIPTION .PP This line must begin with \& (a no-op character) in order for troff to treat the ... as text instead of a macro call. uart.orig:20,30 - /n/sources/patch/uart-update/uart:20,35 Device .I n is accessed through - .BI eia n + .B eia + .I n (the data file), - .BI eia n ctl + .B eia + .I n + .I ctl (the control file), and - .BI eia n status + .B eia + .I n + .I status (the read-only status file). Reads of the data file will block until at least one byte is available. The These were right before. The file name is "eian", not "eia n", so you should use BI. It looks like you also alphabetized the control messages. That's great. Please submit that part again. /sys/src/9/port/devuart.c devuart.c.orig:458,467 - /n/sources/patch/uart-update/devuart.c:458,463 if((*p->phys->stop)(p, n) < 0) return -1; break; - case 'T': - case 't': - p->dcdts = n; - break; case 'W': case 'w': if(uarttimer == nil || n < 1) If you remove this, then you should also remove dcdts from uart.h. Thanks. Russ Reference: /n/sources/patch/sorry/uart-update Date: Sat Jan 21 17:00:58 CET 2006 Reviewed-by: rsc --- /sys/man/3/uart Sat Jan 21 17:00:19 2006 +++ /sys/man/3/uart Sat Jan 21 23:18:18 2006 @@ -1,6 +1,6 @@ .TH UART 3 .SH NAME -uart, eia \- serial communication control +uart, eia - serial communication control .SH SYNOPSIS .nf .B bind -a #t /dev @@ -11,7 +11,7 @@ .B /dev/eia1 .B /dev/eia1ctl .B /dev/eia1status -\&... +... .fi .SH DESCRIPTION .PP @@ -20,11 +20,16 @@ Device .I n is accessed through -.BI eia n +.B eia +.I n (the data file), -.BI eia n ctl +.B eia +.I n +.I ctl (the control file), and -.BI eia n status +.B eia +.I n +.I status (the read-only status file). Reads of the data file will block until at least one byte is available. The @@ -32,34 +37,33 @@ configures the port. It accepts the following commands: .TP -.BI b n +.B b n Set the baud rate to .IR n . .TP -.BI d n +.B c n +Do hangup on DCD if +.I n +is non-zero; else clear it. +.TP +.B d n Set DTR if .I n is non-zero; else clear it. .TP -.BI k n -Send a break lasting +.B e n +Do hangup on DSR if .I n -milliseconds. +is non-zero; else clear it. .TP -.BI r n -Set RTS if -.I n -is non-zero; -else clear it. +.B f +Flush output queue. .TP -.BI m n -Obey modem CTS signal if -.I n -is non-zero; -else clear it. +.B h +Hangup input and output queue. .TP -.BI i n +.B i n Enable/disable the FIFOs. If .I n @@ -75,7 +79,26 @@ .I n causes the maximum-supported trigger level to be set. .TP -.BI p c +.B k n +Send a break lasting +.I n +milliseconds. +.TP +.B l n +Set number of bits per byte to +.IR n . +Legal values are 5, 6, 7, or 8. +.TP +.B m n +Obey modem CTS signal if +.I n +is non-zero; +else clear it. +.TP +.B n +Turn off blocking on read. +.TP +.B p c Set parity to odd if .I c is @@ -86,17 +109,22 @@ .BR e ; else set no parity. .TP -.BI s n -Set number of stop bits to +.B q n +Set queue limit to .IR n . -Legal values are 1 or 2. .TP -.BI l n -Set number of bits per byte to +.B r n +Set RTS if +.I n +is non-zero; +else clear it. +.TP +.B s n +Set number of stop bits to .IR n . -Legal values are 5, 6, 7, or 8. +Legal values are 1 or 2. .TP -.BI w n +.B w n Set the uart clock timer to n times 100us. .IP --- /sys/src/9/port/devuart.c Sat Jan 21 17:00:40 2006 +++ /sys/src/9/port/devuart.c Sat Jan 21 17:00:35 2006 @@ -458,10 +458,6 @@ if((*p->phys->stop)(p, n) < 0) return -1; break; - case 'T': - case 't': - p->dcdts = n; - break; case 'W': case 'w': if(uarttimer == nil || n < 1)