'\" te .\" Copyright 1989 AT&T .\" Copyright (c) 2008, Sun Microsystems, Inc. All Rights Reserved .\" The contents of this file are subject to the terms of the Common Development and Distribution License (the "License"). You may not use this file except in compliance with the License. .\" You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE or http://www.opensolaris.org/os/licensing. See the License for the specific language governing permissions and limitations under the License. .\" When distributing Covered Code, include this CDDL HEADER in each file and include the License file at usr/src/OPENSOLARIS.LICENSE. If applicable, add the following below this CDDL HEADER, with the fields enclosed by brackets "[]" replaced with your own identifying information: Portions Copyright [yyyy] [name of copyright owner] .TH ipcs 1 "17 Jan 2008" "SunOS 5.11" "User Commands" .SH NAME ipcs \- report inter-process communication facilities status .SH SYNOPSIS .LP .nf \fBipcs\fR [\fB-aAbciJmopqstZ\fR] [\fB-D\fR \fImtype\fR] [\fB-z\fR \fIzone\fR] .fi .SH DESCRIPTION .sp .LP The \fBipcs\fR utility prints information about active inter-process communication facilities. The information that is displayed is controlled by the options supplied. Without options, information is printed in short format for message queues, shared memory, and semaphores that are currently active in the system. .SH OPTIONS .sp .LP The following options are supported: .sp .ne 2 .mk .na \fB\fB-m\fR\fR .ad .RS 6n .rt Prints information about active shared memory segments. .RE .sp .ne 2 .mk .na \fB\fB-q\fR\fR .ad .RS 6n .rt Prints information about active message queues. .RE .sp .ne 2 .mk .na \fB\fB-s\fR\fR .ad .RS 6n .rt Prints information about active semaphores. .RE .sp .LP If \fB-m\fR, \fB-q\fR, or \fB-s\fR are specified, information about only those indicated is printed. If none of these three is specified, information about all three is printed subject to these options: .sp .ne 2 .mk .na \fB\fB-a\fR\fR .ad .RS 12n .rt Uses all XCU5 print options. (This is a shorthand notation for \fB-b\fR, \fB-c\fR, \fB-o\fR, \fB-p\fR, and \fB-t\fR.) .RE .sp .ne 2 .mk .na \fB\fB-A\fR\fR .ad .RS 12n .rt Uses all print options. (This is a shorthand notation for \fB-b\fR, \fB-c\fR, \fB-i\fR, \fB-J\fR, \fB-o\fR, \fB-p\fR, and \fB-t\fR.) .RE .sp .ne 2 .mk .na \fB\fB-b\fR\fR .ad .RS 12n .rt Prints information on biggest allowable size: maximum number of bytes in messages on queue for message queues, size of segments for shared memory, and number of semaphores in each set for semaphores. See below for meaning of columns in a listing. .RE .sp .ne 2 .mk .na \fB\fB-c\fR\fR .ad .RS 12n .rt Prints creator's login name and group name. See below. .RE .sp .ne 2 .mk .na \fB\fB-D\fR \fImtype\fR\fR .ad .RS 12n .rt Displays, in hexadecimal and \fBASCII\fR, the contents of all messages of type \fImtype\fR found on any message queue that the user invoking \fBipcs\fR has permission to read. If \fImtype\fR is \fB0\fR, all messages are displayed. If \fImtype\fR is negative, all messages with type less than or equal to the absolute value of \fImtype\fR are displayed. (See \fBmsgrcv\fR(2) and \fBmsgsnap\fR(2)). .RE .sp .ne 2 .mk .na \fB\fB-i\fR\fR .ad .RS 12n .rt Prints number of \fBISM\fR attaches to shared memory segments. .RE .sp .ne 2 .mk .na \fB\fB-J\fR\fR .ad .RS 12n .rt Prints the creator's project. .RE .sp .ne 2 .mk .na \fB\fB-o\fR\fR .ad .RS 12n .rt Prints information on outstanding usage: number of messages on queue and total number of bytes in messages on queue for message queues and number of processes attached to shared memory segments. .RE .sp .ne 2 .mk .na \fB\fB-p\fR\fR .ad .RS 12n .rt Prints process number information: process \fBID\fR of last process to send a message, process \fBID\fR of last process to receive a message on message queues, process \fBID\fR of creating process, and process \fBID\fR of last process to attach or detach on shared memory segments. See below. .RE .sp .ne 2 .mk .na \fB\fB-t\fR\fR .ad .RS 12n .rt Prints time information: time of the last control operation that changed the access permissions for all facilities, time of last \fBmsgsnd\fR(2) and last \fBmsgrcv\fR(2) on message queues, time of last \fBshmat\fR(2) and last \fBshmdt\fR(2) on shared memory (see \fBshmop\fR(2)), time of last \fBsemop\fR(2) on semaphores. See below. .RE .sp .ne 2 .mk .na \fB\fB-z\fR \fIzone\fR\fR .ad .RS 12n .rt Prints information about facilities associated with the specified zone (see \fBzones\fR(5)). The zone can be specified as either a name or a numeric id. The default is to display information about the zone in which the command is executing. Notice that this option is only useful when executing in the global zone. .RE .sp .ne 2 .mk .na \fB\fB-Z\fR\fR .ad .RS 12n .rt When executing in the global zone, prints information about all zones. Otherwise, prints information about the zone in which the command is executing. The output includes the zone associated with each facility. .RE .sp .LP The column headings and the meaning of the columns in an \fBipcs\fR listing are given below. The letters in parentheses indicate the options that cause the corresponding heading to appear and "all" means that the heading always appears. \fBNote:\fR These options only determine what information is provided for each facility; they do not determine which facilities are listed. .sp .ne 2 .mk .na \fB\fBT\fR (all)\fR .ad .RS 19n .rt Type of the facility: .sp .ne 2 .mk .na \fB\fBq\fR\fR .ad .RS 5n .rt message queue .RE .sp .ne 2 .mk .na \fB\fBm\fR\fR .ad .RS 5n .rt shared memory segment .RE .sp .ne 2 .mk .na \fB\fBs\fR\fR .ad .RS 5n .rt semaphore .RE .RE .sp .ne 2 .mk .na \fB\fBID\fR (all)\fR .ad .RS 19n .rt The identifier for the facility entry. .RE .sp .ne 2 .mk .na \fB\fBKEY\fR (all)\fR .ad .RS 19n .rt The key used as an argument to \fBmsgget\fR(2), \fBsemget\fR(2), or \fBshmget\fR(2) to create the facility entry. (\fBNote:\fR The key of a shared memory segment is changed to \fBIPC_PRIVATE\fR when the segment has been removed until all processes attached to the segment detach it.) .RE .sp .ne 2 .mk .na \fB\fBMODE\fR (all)\fR .ad .RS 19n .rt The facility access modes and flags: The mode consists of 11 characters that are interpreted as follows. The first two characters are: .sp .ne 2 .mk .na \fB\fBR\fR\fR .ad .RS 5n .rt A process is waiting on a \fBmsgrcv\fR(2). .RE .sp .ne 2 .mk .na \fB\fBS\fR\fR .ad .RS 5n .rt A process is waiting on a \fBmsgsnd\fR(2). .RE .sp .ne 2 .mk .na \fB\fB-\fR\fR .ad .RS 5n .rt The corresponding special flag is not set. .RE The next nine characters are interpreted as three sets of three bits each. The first set refers to the owner's permissions; the next to permissions of others in the user-group of the facility entry; and the last to all others. Within each set, the first character indicates permission to read, the second character indicates permission to write or alter the facility entry, and the last character is currently unused. .sp The permissions are indicated as follows: .sp .ne 2 .mk .na \fB\fBr\fR\fR .ad .RS 8n .rt Read permission is granted. .RE .sp .ne 2 .mk .na \fB\fBw\fR\fR .ad .RS 8n .rt Write permission is granted. .RE .sp .ne 2 .mk .na \fB\fBa\fR\fR .ad .RS 8n .rt Alter permission is granted. .RE .sp .ne 2 .mk .na \fB\fB\(mi\fR\fR .ad .RS 8n .rt The indicated permission is not granted. .RE .RE .sp .ne 2 .mk .na \fB\fBOWNER\fR (all)\fR .ad .RS 19n .rt The login name of the owner of the facility entry. .RE .sp .ne 2 .mk .na \fB\fBGROUP\fR (all)\fR .ad .RS 19n .rt The group name of the group of the owner of the facility entry. .RE .sp .ne 2 .mk .na \fB\fBCREATOR\fR (a,A,c)\fR .ad .RS 19n .rt The login name of the creator of the facility entry. .RE .sp .ne 2 .mk .na \fB\fBCGROUP\fR (a,A,c)\fR .ad .RS 19n .rt The group name of the group of the creator of the facility entry. .RE .sp .ne 2 .mk .na \fB\fBCBYTES\fR (a,A,o)\fR .ad .RS 19n .rt The number of bytes in messages currently outstanding on the associated message queue. .RE .sp .ne 2 .mk .na \fB\fBQNUM\fR (a,A,o)\fR .ad .RS 19n .rt The number of messages currently outstanding on the associated message queue. .RE .sp .ne 2 .mk .na \fB\fBQBYTES\fR (a,A,b)\fR .ad .RS 19n .rt The maximum number of bytes allowed in messages outstanding on the associated message queue. .RE .sp .ne 2 .mk .na \fB\fBLSPID\fR (a,A,p)\fR .ad .RS 19n .rt The process \fBID\fR of the last process to send a message to the associated queue. .RE .sp .ne 2 .mk .na \fB\fBLRPID\fR (a,A,p)\fR .ad .RS 19n .rt The process \fBID\fR of the last process to receive a message from the associated queue. .RE .sp .ne 2 .mk .na \fB\fBSTIME\fR (a,A,t)\fR .ad .RS 19n .rt The time the last message was sent to the associated queue. .RE .sp .ne 2 .mk .na \fB\fBRTIME\fR (a,A,t)\fR .ad .RS 19n .rt The time the last message was received from the associated queue. .RE .sp .ne 2 .mk .na \fB\fBCTIME\fR (a,A,t)\fR .ad .RS 19n .rt The time when the associated entry was created or changed. .RE .sp .ne 2 .mk .na \fB\fBISMATTCH\fR (a,i)\fR .ad .RS 19n .rt The number of \fBISM\fR attaches to the associated shared memory segments. .RE .sp .ne 2 .mk .na \fB\fBNATTCH\fR (a,A,o)\fR .ad .RS 19n .rt The number of processes attached to the associated shared memory segment. .RE .sp .ne 2 .mk .na \fB\fBSEGSZ\fR (a,A,b)\fR .ad .RS 19n .rt The size of the associated shared memory segment. .RE .sp .ne 2 .mk .na \fB\fBCPID\fR (a,A,p)\fR .ad .RS 19n .rt The process \fBID\fR of the creator of the shared memory entry. .RE .sp .ne 2 .mk .na \fB\fBLPID\fR (a,A,p)\fR .ad .RS 19n .rt The process \fBID\fR of the last process to attach or detach the shared memory segment. .RE .sp .ne 2 .mk .na \fB\fBATIME\fR (a,A,t)\fR .ad .RS 19n .rt The time the last attach was completed to the associated shared memory segment. .RE .sp .ne 2 .mk .na \fB\fBDTIME\fR (a,A,t)\fR .ad .RS 19n .rt The time the last detach was completed on the associated shared memory segment. .RE .sp .ne 2 .mk .na \fB\fBNSEMS\fR (a,A,b)\fR .ad .RS 19n .rt The number of semaphores in the set associated with the semaphore entry. .RE .sp .ne 2 .mk .na \fB\fBOTIME\fR (a,A,t)\fR .ad .RS 19n .rt The time the last semaphore operation was completed on the set associated with the semaphore entry. .RE .sp .ne 2 .mk .na \fB\fBPROJECT\fR (J,A)\fR .ad .RS 19n .rt The project name of the creator of the facility entry. .RE .sp .ne 2 .mk .na \fB\fBZONE\fR (Z)\fR .ad .RS 19n .rt The zone with which the facility is associated. .RE .SH ENVIRONMENT VARIABLES .sp .LP See \fBenviron\fR(5) for descriptions of the following environment variables that affect the execution of \fBipcs\fR: \fBLANG\fR, \fBLC_ALL\fR, \fBLC_CTYPE\fR, \fBLC_MESSAGES\fR, and \fBNLSPATH\fR. .sp .ne 2 .mk .na \fB\fBTZ\fR\fR .ad .RS 6n .rt Determine the timezone for the time strings written by \fBipcs\fR. .RE .SH FILES .sp .ne 2 .mk .na \fB\fB/etc/group\fR\fR .ad .RS 15n .rt group names .RE .sp .ne 2 .mk .na \fB\fB/etc/passwd\fR\fR .ad .RS 15n .rt user names .RE .SH ATTRIBUTES .sp .LP See \fBattributes\fR(5) for descriptions of the following attributes: .sp .sp .TS tab() box; cw(2.75i) |cw(2.75i) lw(2.75i) |lw(2.75i) . ATTRIBUTE TYPEATTRIBUTE VALUE _ Interface StabilityCommitted _ StandardSee \fBstandards\fR(5). .TE .SH SEE ALSO .sp .LP \fBipcrm\fR(1), \fBmsgget\fR(2), \fBmsgids\fR(2), \fBmsgrcv\fR(2), \fBmsgsnap\fR(2), \fBmsgsnd\fR(2), \fBsemget\fR(2), \fBsemids\fR(2), \fBsemop\fR(2), \fBshmctl\fR(2), \fBshmget\fR(2), \fBshmids\fR(2), \fBshmop\fR(2), \fBattributes\fR(5), \fBenviron\fR(5), \fBstandards\fR(5), \fBzones\fR(5) .SH NOTES .sp .LP Things can change while \fBipcs\fR is running. The information it gives is guaranteed to be accurate only when it was retrieved.