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
MSGRCV(3) FreeBSD Library Functions Manual MSGRCV(3)

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

msgtyp ???ͤˤϰʲ??Τ褦?ʰ?̣???????ޤ???

  • msgtyp ?? 0 ?????礭?????硢?????פ? msgtyp ?Ǥ????ǽ??Υ??å????????????????ޤ???
  • msgtyp ?? 0 ???????????硢???塼?κǽ??Υ??å????????????????ޤ???
  • msgtyp ?? 0 ???꾮???????硢???????å??????????פ? msgtyp ???????Ͱʲ??Ǥ??????å??????Τ????ǽ??Τ??Τ??????????ޤ???

msgsz ?ϡ??׵ᤷ?????å??????κ???Ĺ?????ꤷ?ޤ??????????????å??????? msgsz ????Ĺ?????硢 msgflg ?? MSG_NOERROR ?ե饰?????ꤵ???Ƥ????ȡ????å??????ϥ??顼???Τʤ????ڤ??ΤƤ????ޤ??? MSG_NOERROR ?ե饰?????ꤵ???Ƥ??ʤ??ȡ????顼???ᤵ???ޤ???

msqid ?????ꤹ?????å????????塼?ˡ????פ??????å???????¸?ߤ??ʤ????硢 msgrcv() ??ư???ϡ? msgflg ?? IPC_NOWAIT ?ե饰?????ꤵ???Ƥ??뤫?ɤ????ˤ??äƷ??ޤ??ޤ??? IPC_NOWAIT ?????ꤵ???Ƥ????ȡ? msgrcv() ?Ϥ????? -1 ???ᤷ?? errno ?? EAGAIN ?????ꤷ?ޤ??? IPC_NOWAIT ?????ꤵ???Ƥ??ʤ??ȡ??ƤӽФ??ץ??????ϡ??ʲ??ξ??֤ˤʤ??ޤǥ֥??å? ?????ޤ???

  • ?׵ᤵ?줿?????פΥ??å??????????å????????塼?? ???ѤǤ????褦?ˤʤ??ޤǡ?
  • ???å????????塼?????????????ޤǡ????ξ????? -1 ???ᤵ?졢 errno ?? EINVAL ?????ꤵ???ޤ???
  • ?????ʥ뤬???????????ޤǡ????ξ????? -1 ???ᤵ?졢 errno ?? EINTR ?????ꤵ???ޤ???

???å????????????ʤ????????????ȡ? msqid ?˴?Ϣ?????ǡ?????¤?Τϡ??ʲ??Τ褦?˹????????ޤ???

  • msg_cbytes ???????Υ??å??????Υ????????????????ʤ??ޤ???
  • msg_lrpid ?????ƽФ?¦?Υץ????? ID ?????ꤵ???ޤ???
  • msg_lrtime ???????ߤλ????????ꤵ???ޤ???
  • msg_qnum ???? 1 ?????????ޤ???

?????ʤ???λ?????ȡ? msgrcv() ?ϡ? msgp ???ؤ???¤?Τ? mtext ?ե??????ɤ˼????????Х??ȿ????ᤷ?ޤ??? ?????ʤ???λ???ʤ????? -1 ???ᤵ?졢 errno ?????Υ??顼?򼨤??褦?????ꤵ???ޤ???

msgrcv() ?ϡ??ʲ??Τ褦?ʾ????˥??顼?Ȥʤ??ޤ???
[EINVAL]
msqid ???????????å????????塼 ID ?Ǥʤ????硣

?׵ᤵ?줿?????פΥ??å??????????ѤǤ????褦?ˤʤ????֤? msgrcv() ???ԤäƤ????֤˥??å????????塼?????????줿???硣

msgsz ?? 0 ???꾮???????硣

[E2BIG]
???פ??????å??????????????줿???????????? msgsz ?????礭???? msgflg ?? MSG_NOERROR ?ե饰?????ꤵ???Ƥ??ʤ????硣
[EACCES]
?ƤӽФ??ץ??????ˡ????å????????塼???ɹ??߸????ʤ????硣
[EFAULT]
msgp ?????????????ɥ쥹???ؤ??Ƥ??ʤ????硣
[EINTR]
?????ƥॳ???뤬???????ʥ????????ˤ??äƳ??????ޤ줿???硣
[EAGAIN]
?׵ᤵ?줿?????פΥ??å??????????å????????塼?ˤʤ??? msgflg ?? IPC_NOWAIT ?????ꤵ???Ƥ??????硣

msgctl(3), msgget(3), msgsnd(3)

NetBSD ?? FreeBSD ?Ǥϡ????å????????塼?????????줿?????˻??Ѥ??٤????顼?? EIDRM ???????????Ƥ??ޤ??󡣤ޤ??????Ѳ?ǽ?ʥ??å????????ʤ????֤? IPC_NOWAIT ?????ꤵ???Ƥ????????˻??Ѥ??٤????顼?? ENOMSG ???????????Ƥ??ޤ?????

???å????????塼?ϡ? 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.