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

msgget
¸Þ½ÃÁö Å¥ÀÇ Ãëµæ

Standard C Library (libc, -lc)

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

msgget() (Àº)´Â, key ¿¡ °ü·ÃÇÏ´Â ¸Þ½ÃÁö Å¥ ID ¸¦ µÇµ¹¸³´Ï´Ù. ¸Þ½ÃÁö Å¥ ID ´Â, 0 º¸´Ù Å« ÀÏÀÇÀûÀÎ Á¤¼öÀÔ´Ï´Ù.
¸Þ½ÃÁö Å¥´Â, key ÇÏÁö¸¸ IPC_PRIVATE (¿Í)°ú µ¿ÀÏÇÑ °æ¿ì, ¶Ç´Â key ¿¡ °ü·ÃÇÏ´Â ¸Þ½ÃÁö Å¥ ID °¡ Á¸ÀçÇÏÁö ¾Ê°í, ÇÑÆí, IPC_CREAT ºñÆ®°¡ msgflg ±×¸®°í ¼³Á¤µÇ¾î ÀÖ´Â °æ¿ì¿¡ ÀÛ¼ºµË´Ï´Ù.
»õ·Î¿î ¸Þ½ÃÁö Å¥°¡ ÀÛ¼ºµÇ¾úÀ» °æ¿ì, °ü·ÃÇÏ´Â µ¥ÀÌÅÍ ±¸Á¶ ( msqid_ds ±¸Á¶Ã¼. msgctl(3) ÂüÁ¶)´Â, ÀÌÇÏ¿Í °°ÀÌ ÃʱâÈ­µË´Ï´Ù.
  • msg_perm.cuid (¿Í)°ú msg_perm.uid (Àº)´Â, È£Ãâ ÇÁ·Î¼¼½ºÀÇ ½ÇÈ¿ À¯Àú ID ·Î ¼³Á¤µË´Ï´Ù.
  • msg_perm.gid (¿Í)°ú msg_perm.cgid (Àº)´Â, È£Ãâ ÇÁ·Î¼¼½ºÀÇ ½ÇÈ¿ ±×·ì ID ·Î ¼³Á¤µË´Ï´Ù.
  • msg_perm.mode (Àº)´Â, msgflg ÀÇ ÇÏÀ§ 9 ºñÆ®°¡ ¼³Á¤µË´Ï´Ù.
  • msg_cbytes, msg_qnum, msg_lspid, msg_lrpid, msg_rtime, msg_stime ¿¡´Â 0 ÀÌ ¼³Á¤µË´Ï´Ù.
  • msg_qbytes (Àº)´Â, Å¥ÀÇ ¹ÙÀÌÆ®¼ö (MSGMNB) ¿¡ ´ëÇÑ ½Ã½ºÅÛÀÇ ÃÖ´ëÄ¡°¡ ¼³Á¤µË´Ï´Ù.
  • msg_ctime (Àº)´Â, ÇöÀçÀÇ ½Ã°¢À¸·Î ¼³Á¤µË´Ï´Ù.

¹®Á¦ ¾ø°Ô Á¾·áÇϸé(ÀÚ), Á¤ÀÇ ¸Þ½ÃÁö Å¥ ID °¡ µÇµ¹·ÁÁý´Ï´Ù. ¹®Á¦ ¾ø°í Á¾·áÇÏÁö ¾ÊÀ¸¸é -1 ÀÌ µÇµ¹·ÁÁ® ±Û·Î¹ú º¯¼ö errno ÇÏÁö¸¸ ±× ¿¡·¯¸¦ ³ªÅ¸³»µµ·Ï(µíÀÌ) ¼³Á¤µË´Ï´Ù.

[EACESS]
¸Þ½ÃÁö Å¥°¡ key (¿Í)°ú ¹ú½á °ü·ÃÇÏ°í ÀÖ½À´Ï´Ù¸¸, ¼Òȯ Ãø¿¡ ¾×¼¼½º±ÇÀÌ ¾ø½À´Ï´Ù.
[EEXIST]
(¿Í)°ú IPC_EXCL ÀÇ ¾çÂÊ ¸ðµÎ°¡ msgflg ±×¸®°í ¼³Á¤µÇ¾î ÀÖ¾î ¸Þ½ÃÁö Å¥°¡ key (¿Í)°ú ¹ú½á °ü·ÃÇÏ°í ÀÖ½À´Ï´Ù.
[ENOSPC]
¸Þ½ÃÁö Å¥ÀÇ ¼ö¿¡ °üÇÑ ½Ã½ºÅÛ Á¦ÇÑ¿¡ À̸£°í ÀÖ±â (À§ÇØ)¶§¹®¿¡, »õ·Î¿î ¸Þ½ÃÁö Å¥¸¦ ÀÛ¼ºÇÒ ¼ö ¾ø½À´Ï´Ù.
[ENOENT]
msgflg ¿¡ IPC_CREAT ÇÏÁö¸¸ ¼³Á¤µÇ¾î ÀÖÁö ¾ÊÀº »óȲÀ¸·Î, key ¿¡ °ü·ÃÇÏ´Â ¸Þ½ÃÁö Å¥°¡ ¹ß°ßµÇÁö ¾Ê½À´Ï´Ù.

msgctl(3), msgrcv(3), msgsnd(3)

¸Þ½ÃÁö Å¥´Â, AT&T System V UNIX ÀÇ ÃÖÃÊÀÇ ¸±¸®½º¿¡ Ãß°¡µÇ¾ú½À´Ï´Ù.
August 17, 1995 FreeBSD 12.0-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.