NetBSD Problem Report #8021
Received: (qmail 9574 invoked from network); 17 Jul 1999 22:48:48 -0000
Message-Id: <199907172248.SAA21699@revenge.stat.cmu.edu>
Date: Sat, 17 Jul 1999 18:48:46 -0400
From: lamj@stat.cmu.edu
Sender: lamj@stat.cmu.edu
Reply-To: jlam@netbsd.org
To: gnats-bugs@gnats.netbsd.org
Subject: [PATCH] man mount_procfs doesn't describe /proc/#/cmdline
X-Send-Pr-Version: 3.95
>Number: 8021
>Category: misc
>Synopsis: [PATCH] man mount_procfs doesn't describe /proc/#/cmdline
>Confidential: no
>Severity: serious
>Priority: low
>Responsible: misc-bug-people
>State: closed
>Class: doc-bug
>Submitter-Id: net
>Arrival-Date: Sat Jul 17 15:50:00 +0000 1999
>Closed-Date: Mon Jul 19 08:03:22 +0000 1999
>Last-Modified: Mon Jul 19 08:05:10 +0000 1999
>Originator: Johnny C. Lam
>Release: NetBSD-1.4F
>Organization:
>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
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed
State-Changed-By: jlam
State-Changed-When: Mon Jul 19 01:03:22 PDT 1999
State-Changed-Why:
Patch applied with modifications.
>Unformatted:
(Contact us)
$NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.