16.12.2012 Views

z/OS V1R9.0 UNIX System Services Command ... - Christian Grothoff

z/OS V1R9.0 UNIX System Services Command ... - Christian Grothoff

z/OS V1R9.0 UNIX System Services Command ... - Christian Grothoff

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Description<br />

ipcs writes to the standard output information about active interprocess<br />

communication facilities. If you do not specify any flags, ipcs writes information in a<br />

short form about currently active message queues, shared memory segments, and<br />

semaphores.<br />

The column headings and the meaning of the columns in an ipcs command listing<br />

are listed in Table 14. The letters in parentheses indicate the command flags that<br />

cause the corresponding heading to appear. (all) means that the heading is always<br />

displayed. These flags determine what information is provided for each facility. They<br />

do not determine which facilities are listed.<br />

Table 14. Explanation of the ipcs <strong>Command</strong> Listing<br />

Column Heading Meaning of the Column<br />

T<br />

(all except y)<br />

ID<br />

(all except x,w,y,S,B)<br />

KEY<br />

(all except y,S,B)<br />

MODE<br />

(all except x,w,y,S,B)<br />

The type of facility:<br />

q Message queue<br />

m Shared memory segment<br />

s Semaphore<br />

S Map Memory Service<br />

The identifier for the facility entry<br />

The key used as a parameter to the msgget subroutine, the<br />

semget subroutine, or the shmget subroutine to make the<br />

facility entry. (The key of a shared memory segment is<br />

changed to IPC_PRIVATE when the segment is removed<br />

until all processes attached to the segment detach it.)<br />

The facility access modes and flags. The mode consists of<br />

11 characters that are interpreted as follows:<br />

The first two characters can be the following:<br />

R If a process is waiting in a msgrcv() system call.<br />

S If a process is waiting in a msgsnd() system call.<br />

D If the associated shared memory segment has<br />

been removed. It disappears when the last process<br />

attached to the segment detaches it.<br />

The next nine characters are interpreted as three sets of<br />

three characters each. The first set refers to the owner’s<br />

permissions; the next to permissions of others in the user<br />

group of the facility entry; and the last to all others. Within<br />

each set, the first character indicates permission to read,<br />

the second character indicates permission to write or alter<br />

the facility entry, and the last character is currently unused.<br />

The permissions are indicated as follows:<br />

r If read permission is granted<br />

w If write permission is granted<br />

a If alter permission is granted<br />

– If the indicated permission is not granted<br />

OWNER (all, except S,B) The login name or user ID of the owner of the facility entry.<br />

GROUP (all) The name or group ID of the group that owns the facility<br />

entry.<br />

CREATOR (a,c) The login name or user ID of the creator of the facility entry.<br />

ipcs<br />

Chapter 2. Shell command descriptions 321

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!