PIPE

Section: ¸®´ª½º ÇÁ·Î±×·¡¸Ó ¸Å´º¾ó (2)
Updated: 1993³â 7¿ù 23ÀÏ
Index
Return to Main Contents
 

À̸§

pipe - ÆÄÀÌÇÁ¸¦ »ý¼ºÇÑ´Ù.  

»ç¿ë¹ý

#include <unistd.h>

int pipe(int filedes[2]);  

¼³¸í

pipe´Â ÆÄÀÌÇÁ inode¸¦ °¡¸£Å°´Â ÆÄÀÏ µð½ºÅ©¸³ÅͽÖÀ» »ý¼ºÇÏ°í, filedes°¡ °¡¸£Å°´Â ¹è¿­¿¡ ÀÌ »ý¼ºµÈ ÆÄÀÏ µð½ºÅ©¸³ÅͽÖÀ» ÀúÀåÇÑ´Ù. filedes[0]´Â Àбâ À§ÇÑ °ÍÀÌ°í, filedes[1]´Â ¾²±â À§ÇÑ °ÍÀÌ´Ù.  

¹Ýȯ°ª

¼º°ø½Ã 0ÀÌ ¸®ÅϵȴÙ. ¿¡·¯½Ã -1ÀÌ ¸®Åϵǰí errno°¡ ÀûÀýÈ÷ ¼³Á¤µÈ´Ù.  

¿¡·¯

EMFILE
³Ê¹« ¸¹Àº ÆÄÀÏ µð½ºÅ©¸³ÅÍ°¡ ÇÁ·Î¼¼½º¿¡ ÀÇÇØ »ç¿ëµÇ°í ÀÖ´Ù.
ENFILE
½Ã½ºÅÛ ÆÄÀÏ Å×À̺íÀÌ ²Ë á´Ù.
EFAULT
filedes°¡ À¯È¿ÇÏÁö ¸øÇÏ´Ù.
 

ȣȯ

SVr4, SVID, AT&T, POSIX, X/OPEN, BSD 4.3  

°ü·Ã Ç׸ñ

read(2), write(2), fork(2), socketpair(2)  

¿ªÀÚ

Á¤µ¿Çö <dhjung@serome.co.kr>, 2000³â 4¿ù 20ÀÏ


 

Index

À̸§
»ç¿ë¹ý
¼³¸í
¹Ýȯ°ª
¿¡·¯
ȣȯ
°ü·Ã Ç׸ñ
¿ªÀÚ

This document was created by man2html, using the manual pages.
Time: 08:07:00 GMT, March 25, 2004