Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 12 Mar 2003 14:07:12 -0600 (CST)
From:      "Sean C. Farley" <sean-freebsd@farley.org>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   bin/49968: ipcs is incorrectly documented
Message-ID:  <200303122007.h2CK7CwK001120@thor.farley.org>

next in thread | raw e-mail | index | archive | help

>Number:         49968
>Category:       bin
>Synopsis:       ipcs is incorrectly documented
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          doc-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Mar 12 12:10:06 PST 2003
>Closed-Date:
>Last-Modified:
>Originator:     Sean C. Farley
>Release:        FreeBSD 4.8-RC i386
>Organization:
>Environment:
System: FreeBSD thor.farley.org 4.8-RC FreeBSD 4.8-RC #1: Mon Mar 10 20:14:00 CST 2003 root@thor.farley.org:/usr/obj/usr/src/sys/THOR i386

>Description:

The built-in usage for ipcs lacks the M, Q, S and T options while the
man page has the description of the C and N options reversed.

I tried to spruce up the man page.  This is the first time I have edited
a man page; I think it still works.

>How-To-Repeat:
>Fix:

Patch for the code and man page:

--- src/usr.bin/ipcs/ipcs.1.orig	Wed Mar 12 12:43:45 2003
+++ src/usr.bin/ipcs/ipcs.1	Wed Mar 12 12:58:15 2003
@@ -38,8 +38,8 @@
 .Sh SYNOPSIS
 .Nm
 .Op Fl abcmopqstMQST
-.Op Fl C Ar system
-.Op Fl N Ar core
+.Op Fl C Ar corefile
+.Op Fl N Ar namelist
 .Sh DESCRIPTION
 The
 .Nm
@@ -97,16 +97,19 @@
 the last send or receive of a message,
 the last attach or detach of a shared memory segment,
 or the last operation on a semaphore.
-.It Fl C Ar system
-Extract the name list from the specified system instead of the
-default
-.Dq Pa /kernel .
-.It Fl M
-Display system information about shared memory.
-.It Fl N Ar core
+.It Fl C Ar corefile
 Extract values associated with the name list from the specified
-core instead of the default
+file
+.Ar corefile
+instead of the default
 .Dq Pa /dev/kmem .
+.It Fl M
+Display system information about shared memory.
+.It Fl N Ar namelist
+Extract the name list from the specified file
+.Ar namelist
+instead of the default
+.Dq Pa /kernel .
 .It Fl Q
 Display system information about messages queues.
 .It Fl S
--- src/usr.bin/ipcs/ipcs.c.orig	Wed Mar 12 12:43:55 2003
+++ src/usr.bin/ipcs/ipcs.c	Wed Mar 12 12:54:12 2003
@@ -482,6 +482,6 @@
 {
 
 	fprintf(stderr,
-	    "usage: ipcs [-abcmopqst] [-C corefile] [-N namelist]\n");
+	    "usage: ipcs [-abcmopqstMQST] [-C corefile] [-N namelist]\n");
 	exit(1);
 }
>Release-Note:
>Audit-Trail:
>Unformatted:

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200303122007.h2CK7CwK001120>