GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
MSGSND(3) FreeBSD Library Functions Manual MSGSND(3)

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 ?ϥХ??Ȥ??????ǡ??????ƥ????? (MSGMAX) ?ޤǤΥ??????Ǥ???

???å????????塼?ˤ??Ǥ?¸?ߤ????Х??ȿ??? msgsz ?ι??פ??????å????????塼?κ????Х??ȿ? (msg_qbytes ?? msgctl(3) ????) ?????礭?????硢?ޤ??ϥ????ƥ????ΤΤ??٤ƤΥ??塼??¸?ߤ??? ???å??????????????ƥ????¤ˤ??Ǥ????????ʤäƤ????????ϡ? msgflg ?? msgsnd() ??ư?????????ޤ??? msgflg ?? IPC_NOWAIT ?ޥ????????ꤵ???Ƥ??????硢?ƤӽФ??Ϥ??????ᤵ???ޤ??? msgflg ?? IPC_NOWAIT ?????ꤵ???Ƥ??ʤ????硢?ƽФ??ϰʲ??ξ??֤ˤʤ??ޤǥ֥??å??????ޤ???

  • ?ƽФ????֥??å??????????郎?ʤ??ʤ??ޤǡ????ξ??郎?ʤ??ʤ??ȡ? ???å????????????????ޤ???
  • ???å????????塼?????????????ޤǡ????ξ????? -1 ???ᤵ?졢 errno ?? EINVAL ?????ꤵ???ޤ???
  • ?ƤӽФ?¦???????ʥ????????????ޤǡ??ƤӽФ??ϡ? errno ?? EINTR ?????ꤵ?줿???֤??????ޤ???

?ƤӽФ??????꤬ȯ?????ʤ??ä????硢???å????????塼?˴?Ϣ???? ?ǡ?????¤?ϰʲ??Τ褦?˹????????ޤ???

  • msg_cbytes ???????å??????Υ??????????礭???ʤ??ޤ???
  • msg_qnum ?? 1 ???ä??????ޤ???
  • msg_lspid ???ƤӽФ??ץ??????Υץ????? ID ?????ꤵ???ޤ???
  • msg_stime ?????ߤλ????????ꤵ???ޤ???

The msgsnd() 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() ?ϡ??ʲ??Τ褦?ʾ????˥??顼?Ȥʤ??ޤ???
[EINVAL]
msqid ???????????å????????塼 ID ?Ǥʤ????硣

?꥽?????????ѤǤ????褦?ˤʤꡢ???å????????????Ǥ??? ???֤ˤʤ뤳?Ȥ? msgsnd() ???ԤäƤ????֤ˡ????å????????塼?????????줿???硣

msgsz ?? 0 ???꾮???????? msg_qbytes ?????礭?????硣

mtype ?? 0 ?????礭???ʤ????硣

[EACCES]
?ƽФ??ץ??????˥??å????????塼?ν????߸????ʤ????硣
[EAGAIN]
???塼???????ƥ????Τ˥??å??????ѤΥ??ڡ??????ʤ??? msgflg ?? IPC_NOWAIT ?????ꤵ???Ƥ??????硣
[EFAULT]
msgp ???????????ɥ쥹???ؤ??Ƥ??ʤ????硣
[EINTR]
?????ƥॳ???뤬???????ʥ????????ˤ??äƳ??????ޤ줿???硣

NetBSD ?? FreeBSD ?ϡ????å????????塼?????????줿?????˻??Ѥ??٤????顼?? EIDRM ?????????Ƥ??ޤ?????

???å????????塼?ϡ? AT&T Unix System V ?κǽ??Υ??꡼???? ?ɲä????ޤ?????
November 24, 1997 FreeBSD 13.1-RELEASE

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.