AT&T UNIX™PC Unix System V Users Manual - tenox
AT&T UNIX™PC Unix System V Users Manual - tenox AT&T UNIX™PC Unix System V Users Manual - tenox
MSGCTL(2) MSGCTL ( 2 ) user ID of the calling process is not equal to that of super user. IEPERMI Buf points to an illegal address. IEFAULTI RETURN VALUE Upon successful completion, a value of 0 is returned. Otherwise, a value of -1 is returned and errno is set to indicate the error. SEE ALSO msgget(2), msgop(2), stdipc(3C). - 2-
MSGGET (2) MSGGET (2) NAME msgget - get message queue SYNOPSIS #include #include #include int msgget {key, msgflg) key_t key; int msgflg; DESCRIPTION Msgget returns the message queue identifier associated with key. A message queue identifier and associated message queue and data structure (see intro(2)) are created for key if one of the following are true: Key is equal to IPC_PRIVATE. Key does not already have a message queue identifier associated with it, and (msgftg & IPC_CREAT) is "true". Upon creation, the data structure associated with the new message queue identifier is initialized as follows: Msg_perm.cuid, msg_perm.uid, msg_perm.cgid, and msg_perm.gid are set equal to the effective user ID and effective group ID, respectively, of the calling process. The low-order 9 bits of msg_perm.mode are set equal to the low-order 9 bits of msgftg . Msg_qnum, msg_lspid, msg_lrpid, msg_stime, and msg_rtime are set equal to 0. Msg_ctime is set equal to the current time. Msg_qbytes is set equal to the system limit. Msgget will fail if one or more of the following are true: A message queue identifier exists for key but operation permission (see intro(2)) as specified by the low-order 9 bits of msgftg would not be granted. [EACCESI A message queue identifier does not exist for key and (msgftg & IPC_CREAT) is "false". [ENOENTI A message queue identifier is to be created but the system imposed limit on the maximum number of allowed message queue identifiers system wide would be exceeded. [ENOSPCI A message queue identifier exists for key but ( ( msgftg & IPC_CREAT) & { msgftg & IPC_EXCL) ) is "true". [EEXISTI RETURN VALUE Upon successful completion, a non-negative integer, namely a message queue identifier, is returned. Otherwise, a value of - 1 is returned and errno is set to indicate the error. - 1 -
- Page 657: ACCESS (2} ACCESS (2} NAME access -
- Page 661 and 662: ALARM (2) ALARM (2) NAME alarm - se
- Page 663: BRK(2) BRK ( 2 ) NAME brk, sbrk - c
- Page 667 and 668: CHMOD (2) CHMOD (2) NAME chmod - ch
- Page 669: CHOWN(2) CHOWN(2) NAME chown - chan
- Page 673 and 674: CLOSE ( 2) CLOSE (2) NAME close - c
- Page 675 and 676: CREAT ( 2 ) CREAT ( 2 ) NAME creat
- Page 677 and 678: DUP (2) DUP (2) NAME dup - duplicat
- Page 679 and 680: EXEC (2) EXEC (2) NAME execl, execv
- Page 681: EXEC (2) EXEC (2) Search perm1ss10n
- Page 684 and 685: EXIT (2) EXIT (2) WARNING See WARNI
- Page 686 and 687: FCNTL (2) FCNTL (2) immediately wit
- Page 689 and 690: FORK(2) FORK(2) NAME fork - create
- Page 691: GETPID ( 2} GETPID (2) NAME getpid,
- Page 694 and 695: I I I I I I I I I I I I I I I I I I
- Page 696 and 697: �-
- Page 699: LINK ( 2 ) LINK ( 2 ) NAME link - l
- Page 703 and 704: MKNOD (2) MKNOD (2) NAME mknod - ma
- Page 705: MOUNT (2) MOUNT (2) NAME mount - mo
- Page 710 and 711: MSGGET (2) MSGGET (2) SEE ALSO msgc
- Page 712 and 713: MSGOP ( 2) MSGOP (2) the calling pr
- Page 714 and 715: If)
- Page 717 and 718: OPEN ( 2 ) OPEN ( 2 ) NAME open - o
- Page 719: OPEN(2) OPEN(2) O_NDELAY is set, th
- Page 722 and 723: I�
- Page 725 and 726: PLOCK(2) PLOCK(2) NAME plock - lock
- Page 727: PROFIL ( 2 ) PROFIL ( 2 ) NAME prof
- Page 730 and 731: PTRACE (2) PTRACE (2) 4, 5 With the
- Page 732 and 733: (� �--- .
- Page 735 and 736: SEMCTL ( 2 ) SEMCTL ( 2 ) NAME semc
- Page 737 and 738: SEMGET (2) SEMGET (2) NAME semget -
- Page 739 and 740: SEMOP ( 2) SEMOP {2) NAME semop - s
- Page 741 and 742: SEMOP (2) SEMOP (2) Operation permi
- Page 743: SETPGRP (2) SETPGRP (2) NAME setpgr
- Page 747 and 748: SHMCTL (2) SHMCTL (2) NAME shmctl -
- Page 749 and 750: � ! SHMGET (2) SHMGET (2) NAME sh
- Page 751 and 752: SHMOP ( 2 ) SHMOP ( 2 ) NAME shmop
- Page 753 and 754: SIGNAL (2) SIGNAL (2) NAME signal -
- Page 755 and 756: SIGNAL (2) SIGNAL (2) Sig is an ill
- Page 757 and 758: STAT ( 2 ) STAT ( 2 ) NAME stat, fs
MSGCTL(2) MSGCTL ( 2 )<br />
user ID of the calling process is not equal to that of super<br />
user. IEPERMI<br />
Buf points to an illegal address. IEFAULTI<br />
RETURN VALUE<br />
Upon successful completion, a value of 0 is returned. Otherwise, a<br />
value of -1 is returned and errno is set to indicate the error.<br />
SEE ALSO<br />
msgget(2), msgop(2), stdipc(3C).<br />
- 2-