On Wed, Jun 28, 2017 at 03:41:29PM -0600, Todd C. Miller wrote:
> On Wed, 28 Jun 2017 15:35:36 -0600, "Theo de Raadt" wrote:
> 
> > Nope.  It requires a parameter.  lukem messed this up two decades ago,
> > he should have used _IO but used the wrong one.
> 
> Ah right, I missed that it is _IOW.  OK millert@ as-is then.
> 
>  - todd

Updated diff to cope with the latest change to TIOCSTAT.

Index: tty.4
===================================================================
RCS file: /cvs/src/share/man/man4/tty.4,v
retrieving revision 1.48
diff -u -p -r1.48 tty.4
--- tty.4       29 Jun 2017 04:10:07 -0000      1.48
+++ tty.4       29 Jun 2017 06:50:50 -0000
@@ -487,6 +487,15 @@ Not all serial ports may support this.
 Return the current state of the serial port as represented
 above in the integer pointed to by
 .Fa state .
+.It Dv TIOCSTAT Fa void
+Causes the kernel to write a status message to the terminal that displays the
+current load average,
+the name of the command in the foreground,
+its process ID,
+the symbolic wait channel,
+the number of user and system seconds used,
+the percentage of CPU the process is getting,
+and the resident set size of the process.
 .El
 .Sh FILES
 .Bl -tag -width /dev/tty -compact

Reply via email to