|
̾??msgsnd
?饤?֥???Standard C Library (libc, -lc) —???å????????塼?˥??å???????????
????<sys/types.h>
<sys/ipc.h>
<sys/msg.h>
int msgsnd (int
msqid, void *msgp, size_t
msgsz, int msgflg)
????msgsnd () ?ؿ??ϡ?
msqid
?ǻ??ꤵ???Ƥ??????å????????塼?إ??å?????
?????????ޤ??? msgp
?ϡ????å????????ޤ¤?Τ??ؤ??ޤ??????ι?¤?Τϡ?
?ʲ??Υ????Ф??鹽???????Ƥ???ɬ?פ??????ޤ???
long mtype; /* ???å??????????? */ char mtext[1]; /* ???å????????? */ mtype ?? 0
?????礭???????ǡ????å????????????˻??Ѥ????ޤ?
(
msgrcv(3)
????)?? mtext
?ϥХ??Ȥ??????ǡ??????ƥ?????
( ???å????????塼?ˤ??Ǥ?¸?ߤ????Х??ȿ???
msgsz
?ι??פ??????å????????塼?κ????Х??ȿ?
(msg_qbytes ??
msgctl(3)
????)
?????礭?????硢?ޤ??ϥ????ƥ????ΤΤ??٤ƤΥ??塼??¸?ߤ???
???å??????????????ƥ????¤ˤ??Ǥ????????ʤäƤ????????ϡ?
msgflg ??
?ƤӽФ??????꤬ȯ?????ʤ??ä????硢???å????????塼?˴?Ϣ???? ?ǡ?????¤?ϰʲ??Τ褦?˹????????ޤ???
??????Themsgsnd () function returns the value 0 if
successful; otherwise the value -1 is returned and the global variable
errno is set to indicate the error.
???顼msgsnd ()
?ϡ??ʲ??Τ褦?ʾ????˥??顼?Ȥʤ??ޤ???
?Х?NetBSD ?? FreeBSD ?ϡ????å????????塼?????????줿?????˻??Ѥ??٤????顼??EIDRM ?????????Ƥ??ޤ?????
???????å????????塼?ϡ? AT&T Unix System V ?κǽ??Υ?????? ?ɲä????ޤ?????
Visit the GSP FreeBSD Man Page Interface. |