summaryrefslogtreecommitdiffstats
path: root/sys/sys/user.h
diff options
context:
space:
mode:
authorjulian <julian@FreeBSD.org>2006-01-18 20:27:43 +0000
committerjulian <julian@FreeBSD.org>2006-01-18 20:27:43 +0000
commit7e4664b0c30ad2ab36b196af2e02847cec202700 (patch)
treed8f34c4e4d6bdf40a339a8bdac20316749866083 /sys/sys/user.h
parent1d7a7aaf0f73341b132f44aec06c9530865ea6df (diff)
downloadFreeBSD-src-7e4664b0c30ad2ab36b196af2e02847cec202700.zip
FreeBSD-src-7e4664b0c30ad2ab36b196af2e02847cec202700.tar.gz
Return the thread name in the kinfo_proc structure.
Also correct the comment describing what the value is.
Diffstat (limited to 'sys/sys/user.h')
-rw-r--r--sys/sys/user.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/sys/user.h b/sys/sys/user.h
index 5c84837..1acf346 100644
--- a/sys/sys/user.h
+++ b/sys/sys/user.h
@@ -109,7 +109,7 @@
#define WMESGLEN 8 /* size of returned wchan message */
#define LOCKNAMELEN 8 /* size of returned lock name */
-#define OCOMMLEN 16 /* size of returned ki_ocomm name */
+#define OCOMMLEN 16 /* size of returned thread name */
#define COMMLEN 19 /* size of returned ki_comm name */
#define KI_EMULNAMELEN 16 /* size of returned ki_emul */
#define KI_NGROUPS 16 /* number of groups in ki_groups */
@@ -172,7 +172,7 @@ struct kinfo_proc {
char ki_rqindex; /* Run queue index */
u_char ki_oncpu; /* Which cpu we are on */
u_char ki_lastcpu; /* Last cpu we were on */
- char ki_ocomm[OCOMMLEN+1]; /* command name */
+ char ki_ocomm[OCOMMLEN+1]; /* thread name */
char ki_wmesg[WMESGLEN+1]; /* wchan message */
char ki_login[LOGNAMELEN+1]; /* setlogin name */
char ki_lockname[LOCKNAMELEN+1]; /* lock name */
OpenPOWER on IntegriCloud