Server for Information Technologies

(095) 932-9212, 932-9213, 939-0783
E-mail: info@citforum.ru
(!) CIT Forum CD-ROM

MSGGET(3)
XENIX System V (21 1987)


msgget - coae oepe cooe

	#include <sys/types.h>
	#include <sys/ipc.h>
	#include <sys/msg.h>
	
	int msgget (key, msgflg)
	key_t key;
	int msgflg;


msgget aaoo key opaae eaop oepe cooe.

eaop oepe cooe, cae c oepe cpyypa ax (c. intro(3)) coac aoo key, ec oec oo ceyx yco:

     key pae IPC_PRIVATE.
	
     key e ee caoo c  eaopa oepe
     cooe  (msgflg&IPC_CREAT) oo o y.

o cpyyp ax, cao c o eaopo oepe cooe, apyc cey opao:

     msg_perm.cuid  msg_perm.uid ycaaac pa
     eoy ooaecoy ID eyeo poecca.
     msg_perm.cgid  msg_perm.gid ycaaac pa
     eoy pyooy ID eyeo poecca.
	
     Mae 9  msg_perm.mode ycaaac pa
     a 9- a msgflg.
	
     msg_qnum, msg_lspid, msg_lrpid  msg_rtime
     ycaaac pa 0.
	
     msg_ctime ycaaaec pa eyey pee.
	
     msg_qbytes ycaaaec pa cceoy
     opae.

msgget aapo aepaec, ec oec xo oo ceyx yco:
[EACCES] eaop oepe cooe cyecye key, o paa, aae a 9- a msgflg, e oy peocae (c. intro(3)).
[ENOENT] eaop oepe cooe e cyecye key (msgflg&IPC_CREAT) pao 0.
[ENOSPC] eaop oepe cooe e oe coa y opae a oee co ax eaopo ccee.
[EEXIST] eaop oepe cooe cyecye key, o (msgflg&IPC_CREAT)&(msgflg&IPC_EXCL) oo o 0.

BOPAAEOE AEE
B cyae yceoo aepe opaaec eaop oepe cooe a eopaeoe eoe co. ae opaaec aee -1 errno aocc o o.

.
intro(3), msgctl(3), msgop(3)

AEA
popaa, coya y y, oa opoac c ao -Me.
Comments: info@citmgu.ru
Designed by Andrey Novikov
Copyright © CIT