Subject: misc/8021: [PATCH] man mount_procfs doesn't describe /proc/#/cmdline
To: None <gnats-bugs@gnats.netbsd.org>
From: None <lamj@stat.cmu.edu>
List: netbsd-bugs
Date: 07/17/1999 15:50:48
>Number: 8021
>Category: misc
>Synopsis: [PATCH] man mount_procfs doesn't describe /proc/#/cmdline
>Confidential: no
>Severity: serious
>Priority: low
>Responsible: misc-bug-people (Misc Bug People)
>State: open
>Class: doc-bug
>Submitter-Id: net
>Arrival-Date: Sat Jul 17 15:50:00 1999
>Last-Modified:
>Originator: Johnny C. Lam
>Organization:
>Release: NetBSD-1.4F
>Environment:
System: NetBSD harm 1.4F NetBSD 1.4F (RIVEN) #1: Thu Jul 15 17:49:50 EDT 1999 root@riven.home.net:/usr/src/sys/arch/i386/compile/RIVEN i386
>Description:
man mount_procfs fails to describe /proc/#/cmdline.
>How-To-Repeat:
man mount_procfs
>Fix:
The following is my best guess at the contents of /proc/#/cmdline.
I admit to not understanding the system structure grovelling done in
src/sys/miscfs/procfs/procfs_cmdline.c.
--- mount_procfs.8.orig Sat Jul 17 18:38:15 1999
+++ mount_procfs.8 Sat Jul 17 18:38:36 1999
@@ -81,6 +81,11 @@
.Pp
Each directory contains several files.
.Bl -tag -width status
+.It Pa cmdline
+This file is readonly and returns null-terminated strings
+corresponding to the process' command line arguments. For
+a system or zombie process, this file contains only a string
+with name of the process.
.It Pa ctl
a writeonly file which supports a variety
of control operations.
@@ -216,6 +221,7 @@
.Sh FILES
.Bl -tag -width /proc/curproc -compact
.It Pa /proc/#
+.It Pa /proc/#/cmdline
.It Pa /proc/#/ctl
.It Pa /proc/#/file
.It Pa /proc/#/map
>Audit-Trail:
>Unformatted: