Print this page
8158 Want named threads API
9857 proc manpages should have LIBRARY section

@@ -42,13 +42,13 @@
 .\"
 .\" Copyright 1989 AT&T
 .\" Portions Copyright (c) 1992, X/Open Company Limited All Rights Reserved
 .\" Copyright (c) 2009, Sun Microsystems, Inc. All Rights Reserved
 .\" Copyright (c) 2013 Gary Mills
-.\" Copyright (c) 2017, Joyent, Inc.
+.\" Copyright (c) 2018, Joyent, Inc.
 .\"
-.TH PS 1 "Jun 13, 2017"
+.TH PS 1 "August 22, 2018"
 .SH NAME
 ps \- report process status
 .SH SYNOPSIS
 .LP
 .nf

@@ -1047,10 +1047,20 @@
 .RE
 
 .sp
 .ne 2
 .na
+\fB\fBlwpname\fR\fR
+.ad
+.RS 11n
+The name of the lwp, if set. Requesting this formatting option causes
+one line to be printed for each lwp in the process.
+.RE
+
+.sp
+.ne 2
+.na
 \fB\fBnlwp\fR\fR
 .ad
 .RS 11n
 The number of lwps in the process.
 .RE

@@ -1171,12 +1181,12 @@
 \fBpflags\fR(1). The currently supported data models are _ILP32 and _LP64.
 .RE
 
 .sp
 .LP
-Only \fBcomm\fR and \fBargs\fR are allowed to contain blank characters; all
-others, including the Solaris implementation variables, are not.
+Only \fBcomm\fR, \fBlwpname\fR, and \fBargs\fR are allowed to contain blank
+characters; all others, including the Solaris implementation variables, are not.
 .sp
 .LP
 The following table specifies the default header to be used in the POSIX locale
 corresponding to each format specifier.
 .sp

@@ -1219,16 +1229,17 @@
 f       F       rgid    RGID
 fname   COMMAND rss     RSS
 gid     GID     ruid    RUID
 lgrp    LGRP    s       S
 lwp     LWP     sid     SID
-nlwp    NLWP    stime   STIME
-opri    PRI     taskid  TASKID
-osz     SZ      uid     UID
-pmem    %MEM    wchan   WCHAN
-pri     PRI     zone    ZONE
-ctid    CTID    zoneid  ZONEID
+lwpname LWPNAME stime   STIME
+nlwp    NLWP    taskid  TASKID
+opri    PRI     uid     UID
+osz     SZ      wchan   WCHAN
+pmem    %MEM    zone    ZONE
+pri     PRI     zoneid  ZONEID
+ctid    CTID
 .TE
 
 .SH EXAMPLES
 .LP
 \fBExample 1 \fRUsing \fBps\fR Command