SYSTEM CALL: shmat(); PROTOTYPE: int shmat ( int shmid, char *shmaddr, int shmflg); RETURNS: address at which segment was attached to the process, or -1 on error: errno = EINVAL (Invalid IPC ID value or attach address passed) ENOMEM (Not enough memory to attach segment) EACCES (Permission denied) NOTES:
°Ô´Ù°¡, SHM_RDONLY Ç÷¡±×°¡ Ç÷¡±× ¾Æ±Ô¸ÕÆ®¿¡ ORµÇ¸é, °øÀ¯ ¸Þ¸ð¸® ¼¼±×¸ÕÆ®´Â ¸ÅÇεǾîÁöÁö¸¸, ÀбâÀü¿ë(readonly)·Î Ç¥½ÃµÈ´Ù.
ÀÌ È£ÃâÀº ¾Æ¸¶µµ »ç¿ëÇϱ⿡ °¡Àå ½¬¿ï °ÍÀÌ´Ù. ¼¼±×¸ÕÆ®¸¦ À§ÇÑ À¯È¿ÇÑ IPC È®ÀÎÀÚ°¡ ³Ñ°ÜÁö°í ¼¼±×¸ÕÆ®°¡ ºÙ¿©Áø ÁÖ¼Ò¸¦ ¹ÝȯÇÏ´Â wrapper ÇÔ¼ö¸¦ »ý°¢ÇØ º¸ÀÚ.
char *attach_segment( int shmid ) { return(shmat(shmid, 0, 0)); }
Copyright (c) 1996,1997 by Euibeom.Hwang & SangEun.Oh All Rights Reserved
Email To:Webmaster ,
Another address
LAST UPDATE Nov 28,1997
Created Nov 28,1997