IPC
Section: ¸®´ª½º ÇÁ·Î±×·¡¸Ó ¸Þ´º¾ó (5)
Updated: 1993³â 11¿ù 1ÀÏ
Index
Return to Main Contents
À̸§
ipc - System V »óÈ£ÇÁ·Î¼¼½º(interprocess) Åë½Å ¸ÞÄ«´ÏÁò.
»ç¿ë¹ý
# include <sys/types.h>
# include <sys/ipc.h>
# include <sys/msg.h>
# include <sys/sem.h>
# include <sys/shm.h>
¼³¸í
¸Þ´º¾óÀº ¸Þ½ÃÁöÅ¥, ½ÅÈ£¼³Á¤°ú °øÀ¯¸Þ¸ð¸®ºÐÇÒ°ú °°Àº System V »óÈ£ÇÁ·Î¼¼½º(interprocess)
Åë½Å ¸ÞÄ«´ÏÁòÀÇ ¸®´ª½º ±¸ÇöÀ» ÂüÁ¶ÇÑ´Ù.
ÀÚ¿ø
Àº ÀÌ·¯ÇÑ ¸ÞÄ«´ÏÁò¿¡¼ ÇϳªÀÇ ¿¹ÀÌ´Ù.
<sys/ipc.h>
½Ã½ºÅÛ Çì´õÆÄÀÏ¿¡ ÀÇÇØ Á¤ÀǵǴÂ
ipc_perm
±¸Á¶´Â ´ÙÀ½ÀÇ ¸â¹öµéÀ» Æ÷ÇÔÇÑ´Ù:
ushort cuid;
/* ¸¸µç »ç¿ëÀÚ id */
ushort cgid;
/* ¸¸µç ±×·ì id */
ushort uid;
/* ¼ÒÀ¯ÀÚ id */
ushort gid;
/* ¼ÒÀ¯±×·ì id */
ushort mode;
/* Àбâ/¾²±â ±ÇÇÑ */
mode
member of the
ipc_perm
±¸Á¶´Â ipc½Ã½ºÅÛ È£ÃâÀ» ½ÇÇàÇÏ´Â ÇÁ·Î¼¼½º¸¦ À§ÇÑ ÀÚ¿øÀÇ Á¢±Ù ±ÇÇÑÀ» Á¤ÀÇÇÑ´Ù.
±ÇÇÑÀº ´ÙÀ½°ú °°ÀÌ Çؼ®µÈ´Ù:
0400 Read by user.
0200 Write by user.
0040 Read by group.
0020 Write by group.
0004 Read by others.
0002 Write by others.
ºñÆ® 0100, 0010 and 0001 (½ÇÇà ºñÆ®)´Â ½Ã½ºÅÛÀÇ ÀÇÇØ »ç¿ëµÇÁö ¾Ê´Â´Ù.
‰CºÙ¿©
"write"
´Â ½Ã±×³Î ¼³Á¤À» À§ÇÑ "alter"¸¦ ÀǹÌÇÑ´Ù.
°°Àº ½Ã½ºÅÛ Çì´õÆÄÀÏÀº ¶ÇÇÑ ´ÙÀ½ÀÇ ½Éº¼¸¯ »ó¼ö¸¦ Á¤ÀÇÇÑ´Ù.
- IPC_CREAT
-
Å°(key)°¡ ¾ø´Ù¸é entry¸¦ »ý¼ºÇÑ´Ù.
- IPC_EXCL
-
Å°°¡ ÀÖÀ¸¸é ½ÇÆÐÇÑ´Ù.
- IPC_NOWAIT
-
¿äûÀÌ ´ë±âµÇ¾îÁ®¾ß¸¸ ¿¡·¯°¡ ³´Ù.
- IPC_PRIVATE
-
°³ÀÎ Å°.
- IPC_RMID
-
ÀÚ¿ø »èÁ¦.
- IPC_SET
-
ÀÚ¿ø ¿É¼Ç ¼³Á¤.
- IPC_STAT
-
ÀÚ¿ø ¿É¼ÇÀ» °®´Â´Ù.
- msg_perm
-
¸Þ¼¼Áö Å¥¿¡ Á¢±Ù±ÇÇÑÀ» ÁöÁ¤ÇÏ´Â
ipc_perm
±¸Á¶.
- msg_qnum
-
¸Þ¼¼Áö Å¥ÀÇ ¸Þ¼¼Áö ¹øÈ£.
- msg_qbytes
-
¸Þ¼¼Áö Å¥¿¡ Çã¿ëµÈ ¸Þ¼¼Áö ÅؽºÆ®ÀÇ ÃÖ´ëÅ©±â.
- msg_lspid
-
¸¶Áö¸·
msgsnd
½Ã½ºÅÛ È£ÃâÀ» ½ÇÇàÇÏ´Â ÇÁ·Î¼¼½ºÀÇ ID.
- msg_lrpid
-
¸¶Áö¸·
msgrcv
½Ã½ºÅÛ È£ÃâÀ» ½ÇÇàÇÏ´Â ÇÁ·Î¼¼½ºÀÇ ID.
- msg_stime
-
¸¶Áö¸·
msgsnd
½Ã½ºÅÛ È£ÃâÀÇ ½Ã°£.
- msg_rtime
-
¸¶Áö¸·
msgcv
½Ã½ºÅÛ È£ÃâÀÇ ½Ã°£.
- msg_ctime
-
msqid_ds
±¸Á¶ÀÇ ¸â¹ö¸¦ ¹Ù²Ù´Â ¸¶Áö¸· ½Ã½ºÅÛ È£ÃâÀÇ ½Ã°£.
- sem_perm
-
½Ã±×³Î ¼³Á¤ÀÇ Á¢±Ù ±ÇÇÑÀ» ÁöÁ¤ÇÏ´Â
ipc_perm
±¸Á¶.
- sem_otime
-
¸¶Áö¸·
semop
½Ã½ºÅÛ È£ÃâÀÇ ½Ã°£.
- sem_ctime
-
¸¶Áö¸·
semctl
½Ã½ºÅÛ È£ÃâÀÇ ½Ã°£.
- semval
-
½Ã±×³Î °ª: 0À̳ª ¾çÀÇ Á¤¼ö.
- semncnt
-
Áõ°¡ÇÏ´Â
semval
¸¦ À§ÇØ Á¤ÁöµÈ ÇÁ·Î¼¼½ºÀÇ ¼ö.
- shm_perm
-
°íÀ¯¸Þ¸ð¸® ±¸°£¿¡ Á¢±Ù ±ÇÇÑÀ» ÁöÁ¤ÇÏ´Â
ipc_perm
±¸Á¶.
- shm_segsz
-
°øÀ¯¸Þ¸ð¸® ±¸°£ÀÇ Å©±â.
- shm_cpid
-
°øÀ¯¸Þ¸ð¸® ±¸°£À» »ý¼ºÇÏ´Â ÇÁ·Î¼¼½ºÀÇ ID.
- shm_lpid
-
shmat
³ª
shmdt
½Ã½ºÅÛ È£ÃâÀ» ½ÇÇàÇÏ´Â ¸¶Áö¸· ÇÁ·Î¼¼½ºÀÇ ID.
- shm_atime
-
¸¶Áö¸·
shmat
½Ã½ºÅÛ È£ÃâÀÇ ½Ã°£.
- shm_dtime
-
¸¶Áö¸·
shmdt
½Ã½ºÅÛ È£ÃâÀÇ ½Ã°£.
- shm_ctime
-
shmid_ds
À» ¹Ù²Ù´Â ¸¶Áö¸·
shmctl
½Ã½ºÅÛ È£ÃâÀÇ ½Ã°£.
°ü·Ã Ç׸ñ
ftok(3),
msgctl(2),
msgget(2),
msgrcv(2),
msgsnd(2),
semctl(2),
semget(2),
semop(2),
shmat(2),
shmctl(2),
shmget(2),
shmdt(2).
Index
- À̸§
-
- »ç¿ë¹ý
-
- ¼³¸í
-
- °ü·Ã Ç׸ñ
-
This document was created by
man2html,
using the manual pages.
Time: 08:07:01 GMT, March 25, 2004