summaryrefslogtreecommitdiff
path: root/usr/src/man/man1/ipcs.1
blob: 0148b190ecc0cfdd105a2607e8ee56f2bffbd64a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
'\" 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 "Jan 17, 2008"
.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
.na
\fB\fB-m\fR\fR
.ad
.RS 6n
Prints information about active shared memory segments.
.RE

.sp
.ne 2
.na
\fB\fB-q\fR\fR
.ad
.RS 6n
Prints information about active message queues.
.RE

.sp
.ne 2
.na
\fB\fB-s\fR\fR
.ad
.RS 6n
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
.na
\fB\fB-a\fR\fR
.ad
.RS 12n
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
.na
\fB\fB-A\fR\fR
.ad
.RS 12n
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
.na
\fB\fB-b\fR\fR
.ad
.RS 12n
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
.na
\fB\fB-c\fR\fR
.ad
.RS 12n
Prints creator's login name and group name. See below.
.RE

.sp
.ne 2
.na
\fB\fB-D\fR \fImtype\fR\fR
.ad
.RS 12n
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
.na
\fB\fB-i\fR\fR
.ad
.RS 12n
Prints number of \fBISM\fR attaches to shared memory segments.
.RE

.sp
.ne 2
.na
\fB\fB-J\fR\fR
.ad
.RS 12n
Prints the creator's project.
.RE

.sp
.ne 2
.na
\fB\fB-o\fR\fR
.ad
.RS 12n
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
.na
\fB\fB-p\fR\fR
.ad
.RS 12n
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
.na
\fB\fB-t\fR\fR
.ad
.RS 12n
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
.na
\fB\fB-z\fR \fIzone\fR\fR
.ad
.RS 12n
Prints information about facilities associated with the specified zone (see
\fBzones\fR(7)). 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
.na
\fB\fB-Z\fR\fR
.ad
.RS 12n
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
.na
\fB\fBT\fR (all)\fR
.ad
.RS 19n
Type of the facility:
.sp
.ne 2
.na
\fB\fBq\fR\fR
.ad
.RS 5n
message queue
.RE

.sp
.ne 2
.na
\fB\fBm\fR\fR
.ad
.RS 5n
shared memory segment
.RE

.sp
.ne 2
.na
\fB\fBs\fR\fR
.ad
.RS 5n
semaphore
.RE

.RE

.sp
.ne 2
.na
\fB\fBID\fR (all)\fR
.ad
.RS 19n
The identifier for the facility entry.
.RE

.sp
.ne 2
.na
\fB\fBKEY\fR (all)\fR
.ad
.RS 19n
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
.na
\fB\fBMODE\fR (all)\fR
.ad
.RS 19n
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
.na
\fB\fBR\fR\fR
.ad
.RS 5n
A process is waiting on a \fBmsgrcv\fR(2).
.RE

.sp
.ne 2
.na
\fB\fBS\fR\fR
.ad
.RS 5n
A process is waiting on a \fBmsgsnd\fR(2).
.RE

.sp
.ne 2
.na
\fB\fB-\fR\fR
.ad
.RS 5n
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
.na
\fB\fBr\fR\fR
.ad
.RS 8n
Read permission is granted.
.RE

.sp
.ne 2
.na
\fB\fBw\fR\fR
.ad
.RS 8n
Write permission is granted.
.RE

.sp
.ne 2
.na
\fB\fBa\fR\fR
.ad
.RS 8n
Alter permission is granted.
.RE

.sp
.ne 2
.na
\fB\fB\(mi\fR\fR
.ad
.RS 8n
The indicated permission is not granted.
.RE

.RE

.sp
.ne 2
.na
\fB\fBOWNER\fR (all)\fR
.ad
.RS 19n
The login name of the owner of the facility entry.
.RE

.sp
.ne 2
.na
\fB\fBGROUP\fR (all)\fR
.ad
.RS 19n
The group name of the group of the owner of the facility entry.
.RE

.sp
.ne 2
.na
\fB\fBCREATOR\fR (a,A,c)\fR
.ad
.RS 19n
The login name of the creator of the facility entry.
.RE

.sp
.ne 2
.na
\fB\fBCGROUP\fR (a,A,c)\fR
.ad
.RS 19n
The group name of the group of the creator of the facility entry.
.RE

.sp
.ne 2
.na
\fB\fBCBYTES\fR (a,A,o)\fR
.ad
.RS 19n
The number of bytes in messages currently outstanding on the associated message
queue.
.RE

.sp
.ne 2
.na
\fB\fBQNUM\fR (a,A,o)\fR
.ad
.RS 19n
The number of messages currently outstanding on the associated message queue.
.RE

.sp
.ne 2
.na
\fB\fBQBYTES\fR (a,A,b)\fR
.ad
.RS 19n
The maximum number of bytes allowed in messages outstanding on the associated
message queue.
.RE

.sp
.ne 2
.na
\fB\fBLSPID\fR (a,A,p)\fR
.ad
.RS 19n
The process \fBID\fR of the last process to send a message to the associated
queue.
.RE

.sp
.ne 2
.na
\fB\fBLRPID\fR (a,A,p)\fR
.ad
.RS 19n
The process \fBID\fR of the last process to receive a message from the
associated queue.
.RE

.sp
.ne 2
.na
\fB\fBSTIME\fR (a,A,t)\fR
.ad
.RS 19n
The time the last message was sent to the associated queue.
.RE

.sp
.ne 2
.na
\fB\fBRTIME\fR (a,A,t)\fR
.ad
.RS 19n
The time the last message was received from the associated queue.
.RE

.sp
.ne 2
.na
\fB\fBCTIME\fR (a,A,t)\fR
.ad
.RS 19n
The time when the associated entry was created or changed.
.RE

.sp
.ne 2
.na
\fB\fBISMATTCH\fR (a,i)\fR
.ad
.RS 19n
The number of \fBISM\fR attaches to the associated shared memory segments.
.RE

.sp
.ne 2
.na
\fB\fBNATTCH\fR (a,A,o)\fR
.ad
.RS 19n
The number of processes attached to the associated shared memory segment.
.RE

.sp
.ne 2
.na
\fB\fBSEGSZ\fR (a,A,b)\fR
.ad
.RS 19n
The size of the associated shared memory segment.
.RE

.sp
.ne 2
.na
\fB\fBCPID\fR (a,A,p)\fR
.ad
.RS 19n
The process \fBID\fR of the creator of the shared memory entry.
.RE

.sp
.ne 2
.na
\fB\fBLPID\fR (a,A,p)\fR
.ad
.RS 19n
The process \fBID\fR of the last process to attach or detach the shared memory
segment.
.RE

.sp
.ne 2
.na
\fB\fBATIME\fR (a,A,t)\fR
.ad
.RS 19n
The time the last attach was completed to the associated shared memory segment.
.RE

.sp
.ne 2
.na
\fB\fBDTIME\fR (a,A,t)\fR
.ad
.RS 19n
The time the last detach was completed on the associated shared memory segment.
.RE

.sp
.ne 2
.na
\fB\fBNSEMS\fR (a,A,b)\fR
.ad
.RS 19n
The number of semaphores in the set associated with the semaphore entry.
.RE

.sp
.ne 2
.na
\fB\fBOTIME\fR (a,A,t)\fR
.ad
.RS 19n
The time the last semaphore operation was completed on the set associated with
the semaphore entry.
.RE

.sp
.ne 2
.na
\fB\fBPROJECT\fR (J,A)\fR
.ad
.RS 19n
The project name of the creator of the facility entry.
.RE

.sp
.ne 2
.na
\fB\fBZONE\fR (Z)\fR
.ad
.RS 19n
The zone with which the facility is associated.
.RE

.SH ENVIRONMENT VARIABLES
.sp
.LP
See \fBenviron\fR(7) 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
.na
\fB\fBTZ\fR\fR
.ad
.RS 6n
Determine the timezone for the time strings written by \fBipcs\fR.
.RE

.SH FILES
.sp
.ne 2
.na
\fB\fB/etc/group\fR\fR
.ad
.RS 15n
group names
.RE

.sp
.ne 2
.na
\fB\fB/etc/passwd\fR\fR
.ad
.RS 15n
user names
.RE

.SH ATTRIBUTES
.sp
.LP
See \fBattributes\fR(7) for descriptions of the following attributes:
.sp

.sp
.TS
box;
c | c
l | l .
ATTRIBUTE TYPE	ATTRIBUTE VALUE
_
Interface Stability	Committed
_
Standard	See \fBstandards\fR(7).
.TE

.SH SEE ALSO
.sp
.LP
.BR ipcrm (1),
.BR msgget (2),
.BR msgids (2),
.BR msgrcv (2),
.BR msgsnap (2),
.BR msgsnd (2),
.BR semget (2),
.BR semids (2),
.BR semop (2),
.BR shmctl (2),
.BR shmget (2),
.BR shmids (2),
.BR shmop (2),
.BR attributes (7),
.BR environ (7),
.BR standards (7),
.BR zones (7)
.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.