Hi,
A first stab at documenting the TIOCSTAT ioctl. The paragraph is taken
from termios(4) as is and could might be reworked. The parameter is as
stated unused but consistent with the definition of TIOCSTAT in
sys/sys/ttycom.h.

Comments? OK?

Index: tty.4
===================================================================
RCS file: /cvs/src/share/man/man4/tty.4,v
retrieving revision 1.47
diff -u -p -r1.47 tty.4
--- tty.4       26 Nov 2016 11:18:43 -0000      1.47
+++ tty.4       28 Jun 2017 20:44:39 -0000
@@ -488,6 +488,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 int *unused
+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