|
̾??msgrcv —
???å????????塼???????å???????????
?饤?֥???Standard C Library (libc, -lc)????<sys/types.h>
<sys/ipc.h>
<sys/msg.h>
int msgrcv (int
msqid, void *msgp, size_t
msgsz, long msgtyp, int
msgflg)
????msgrcv () ?ؿ??ϡ?
msqid
?ǻ??ꤷ?????å????????塼???????å???????????????
msgp
???ؤ???¤?Τ????֤??ޤ??????ι?¤?Τϡ??ʲ??Υ????Ф???
?????????Ƥ???ɬ?פ??????ޤ???
long mtype; /* ???å??????????? */ char mtext[1]; /* ???å????????? */ mtype ?? 0
?????礭???????ǡ????å????????????˻??Ѥ????ޤ???
mtext
?ϥХ??Ȥ??????ǡ??????ƥ?????
( msgtyp ???ͤˤϰʲ??Τ褦?ʰ?̣???????ޤ???
msgsz
?ϡ??ᤷ?????å??????κ???Ĺ?????ꤷ?ޤ??????????????å???????
msgsz ????Ĺ?????硢
msgflg ?? msqid
?????ꤹ?????å????????塼?ˡ????פ??????å???????¸?ߤ??ʤ????硢
???å????????????ʤ????????????ȡ? msqid ?˴?Ϣ?????ǡ?????¤?Τϡ??ʲ??Τ褦?˹????????ޤ???
???????????ʤ???λ?????ȡ?msgrcv ()
?ϡ? msgp ???ؤ???¤?Τ?
mtext
?ե??????ɤ˼????????Х??ȿ????ᤷ?ޤ???
?????ʤ???λ???ʤ????? -1 ???ᤵ?졢
errno
?????Υ??顼???褦?????ꤵ???ޤ???
???顼msgrcv ()
?ϡ??ʲ??Τ褦?ʾ????˥??顼?Ȥʤ??ޤ???
??Ϣ????msgctl(3), msgget(3), msgsnd(3)?Х?NetBSD ?? FreeBSD ?Ǥϡ????å????????塼?????????줿?????˻??Ѥ??٤????顼??EIDRM
???????????Ƥ??ޤ??ޤ??????Ѳ?ǽ?ʥ??å????????ʤ????֤?
IPC_NOWAIT
?????ꤵ???Ƥ????????˻??Ѥ??٤????顼??
ENOMSG ???????????Ƥ??ޤ?????
???????å????????塼?ϡ? AT&T Unix System V ?κǽ??Υ?????? ?ɲä????ޤ?????
Visit the GSP FreeBSD Man Page Interface. |