From 4a0435ab344f478731934f3751f0b9c68ac6916c Mon Sep 17 00:00:00 2001 From: anton Date: Thu, 29 Jun 2017 16:20:49 +0000 Subject: [PATCH] Mention TIOCSTAT in tty(4). ok deraadt@ millert@ --- share/man/man4/tty.4 | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/share/man/man4/tty.4 b/share/man/man4/tty.4 index d7174600c0a..82877fe09be 100644 --- a/share/man/man4/tty.4 +++ b/share/man/man4/tty.4 @@ -1,4 +1,4 @@ -.\" $OpenBSD: tty.4,v 1.48 2017/06/29 04:10:07 deraadt Exp $ +.\" $OpenBSD: tty.4,v 1.49 2017/06/29 16:20:49 anton Exp $ .\" $NetBSD: tty.4,v 1.4 1996/03/19 04:26:01 paulus Exp $ .\" .\" Copyright (c) 1991, 1992, 1993 @@ -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 -- 2.20.1