summaryrefslogtreecommitdiffstats
path: root/usr.bin/ipcrm
diff options
context:
space:
mode:
authorcharnier <charnier@FreeBSD.org>1997-07-15 09:54:34 +0000
committercharnier <charnier@FreeBSD.org>1997-07-15 09:54:34 +0000
commit59438faa4f3256f5f366795ac7977f9113626afc (patch)
tree35465491094894aaa46fef68d3e888a464b5009a /usr.bin/ipcrm
parentbc62cc22d428b8bf365811ff033a3696292c0300 (diff)
downloadFreeBSD-src-59438faa4f3256f5f366795ac7977f9113626afc.zip
FreeBSD-src-59438faa4f3256f5f366795ac7977f9113626afc.tar.gz
Add rcsid. Cosmetic in usage string. Typo in man page.
Diffstat (limited to 'usr.bin/ipcrm')
-rw-r--r--usr.bin/ipcrm/ipcrm.16
-rw-r--r--usr.bin/ipcrm/ipcrm.c17
2 files changed, 14 insertions, 9 deletions
diff --git a/usr.bin/ipcrm/ipcrm.1 b/usr.bin/ipcrm/ipcrm.1
index 8a3a532..f7652ab 100644
--- a/usr.bin/ipcrm/ipcrm.1
+++ b/usr.bin/ipcrm/ipcrm.1
@@ -21,7 +21,7 @@
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
-.\" $Id: ipcrm.1,v 1.3 1997/02/22 19:55:11 peter Exp $
+.\" $Id: ipcrm.1,v 1.4 1997/06/23 04:52:05 steve Exp $
.\""
.Dd August 8, 1994
.Dt ipcrm 1
@@ -31,7 +31,7 @@
.Nd remove the specified message queues, semaphore sets, and shared memory
segments
.Sh SYNOPSIS
-.Nm ipcrm
+.Nm
.Op Fl q Ar msqid
.Op Fl m Ar shmid
.Op Fl s Ar semid
@@ -40,7 +40,7 @@ segments
.Op Fl S Ar semkey
.Ar ...
.Sh DESCRIPTION
-.Nm ipcrm
+.Nm Ipcrm
removes the specified message queues, semaphores and shared memory
segments. These System V IPC objects can be specified by their
creation id or any associated key.
diff --git a/usr.bin/ipcrm/ipcrm.c b/usr.bin/ipcrm/ipcrm.c
index 717c826..cca197e 100644
--- a/usr.bin/ipcrm/ipcrm.c
+++ b/usr.bin/ipcrm/ipcrm.c
@@ -27,15 +27,19 @@
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
- *
- * $Id$
*/
+#ifndef lint
+static const char rcsid[] =
+ "$Id$";
+#endif /* not lint */
+
+#include <ctype.h>
+#include <err.h>
+#include <signal.h>
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
-#include <err.h>
-#include <signal.h>
#include <sys/types.h>
#include <sys/ipc.h>
#include <sys/msg.h>
@@ -50,8 +54,9 @@ int signaled;
void usage()
{
- fprintf(stderr, "usage: ipcrm [ [-q msqid] [-m shmid] [-s semid]\n");
- fprintf(stderr, " [-Q msgkey] [-M shmkey] [-S semkey] ...]\n");
+ fprintf(stderr, "%s\n%s\n",
+ "usage: ipcrm [-q msqid] [-m shmid] [-s semid]",
+ " [-Q msgkey] [-M shmkey] [-S semkey] ...");
exit(1);
}
OpenPOWER on IntegriCloud