OSDN Git Service

Import translated manuals from JM CVS Repository.
[linuxjm/jm.git] / manual / LDP_man-pages / release / man3 / mkfifo.3
1 .\" Hey Emacs! This file is -*- nroff -*- source.
2 .\"
3 .\" This manpage is Copyright (C) 1995 James R. Van Zandt <jrv@vanzandt.mv.com>
4 .\"
5 .\" Permission is granted to make and distribute verbatim copies of this
6 .\" manual provided the copyright notice and this permission notice are
7 .\" preserved on all copies.
8 .\"
9 .\" Permission is granted to copy and distribute modified versions of this
10 .\" manual under the conditions for verbatim copying, provided that the
11 .\" entire resulting derived work is distributed under the terms of a
12 .\" permission notice identical to this one.
13 .\"
14 .\" Since the Linux kernel and libraries are constantly changing, this
15 .\" manual page may be incorrect or out-of-date.  The author(s) assume no
16 .\" responsibility for errors or omissions, or for damages resulting from
17 .\" the use of the information contained herein.  The author(s) may not
18 .\" have taken the same level of care in the production of this manual,
19 .\" which is licensed free of charge, as they might when working
20 .\" professionally.
21 .\"
22 .\" Formatted or processed versions of this manual, if unaccompanied by
23 .\" the source, must acknowledge the copyright and authors of this work.
24 .\"
25 .\" changed section from 2 to 3, aeb, 950919
26 .\"
27 .\" Japanese Version Copyright (c) 1998 George Momma
28 .\"         all rights reserved.
29 .\" Translated Mon May 25 23:11:03 JST 1998
30 .\"         by George Momma <momma@wakhok.ac.jp>
31 .\" Updated 1999-12-11 by Kentaro Shirakata <argrath@ub32.org>
32 .\" Updated 2008-07-30 by Kentaro Shirakata <argrath@ub32.org>
33 .\"
34 .\"WORD:        named pipe              Ì¾Á°ÉÕ¤­¥Ñ¥¤¥×
35 .\"WORD:        permission              µö²Ä¥â¡¼¥É
36 .\"WORD:        filename                ¥Õ¥¡¥¤¥ë̾
37 .\"WORD:        filename component      ¥Õ¥¡¥¤¥ë̾Éôʬ
38 .\"WORD:        directory component     ¥Ç¥£¥ì¥¯¥È¥êÉôʬ
39 .TH MKFIFO 3 2008-06-12 "GNU" "Linux Programmer's Manual"
40 .SH Ì¾Á°
41 mkfifo \- FIFO¥¹¥Ú¥·¥ã¥ë¥Õ¥¡¥¤¥ë(̾Á°ÉÕ¤­¥Ñ¥¤¥×)¤òºîÀ®¤¹¤ë
42 .SH ½ñ¼°
43 .nf
44 .B #include <sys/types.h>
45 .B #include <sys/stat.h>
46 .sp
47 .BI "int mkfifo(const char *" pathname ", mode_t " mode );
48 .fi
49 .SH ÀâÌÀ
50 .BR mkfifo ()
51 ¤Ï̾Á° \fIpathname\fP ¤ò»ý¤ÄFIFO¥¹¥Ú¥·¥ã¥ë¥Õ¥¡¥¤¥ë¤òºîÀ®
52 ¤¹¤ë¡£FIFO¤Îµö²Ä¥â¡¼¥É¤Ï \fImode\fP ¤Ç»ØÄꤵ¤ì¡¢¥×¥í¥»¥¹¤Î
53 \fBumask\fP ¤Ë¤è¤Ã¤ÆÄ̾ï¤ÎÊý¼°¤ÇÊѹ¹¤ò¼õ¤±¤ë: ºîÀ®¤µ¤ì¤¿¥Õ¥¡¥¤¥ë¤Îµö²Ä
54 ¥â¡¼¥É¤Ï \fB(\fP\fImode\fP\fB & ~umask)\fP ¤È¤Ê¤ë¡£
55 .PP
56 FIFO¥¹¥Ú¥·¥ã¥ë¥Õ¥¡¥¤¥ë¤Ï¥Ñ¥¤¥×¤Ë»÷¤Æ¤¤¤ë¤¬¡¢ºîÀ®¤Î¤µ¤ìÊý¤Î¤ß¤¬°Û¤Ê¤Ã¤Æ
57 ¤¤¤ë¡£FIFO¥¹¥Ú¥·¥ã¥ë¥Õ¥¡¥¤¥ë¤Ï̾Á°¤Î¤Ê¤¤ÄÌ¿®Ï©¤Ç¤Ï¤Ê¤¯¡¢
58 .BR mkfifo ()
59 ¤Î¸Æ¤Ó½Ð¤·¤Ë¤è¤ê¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à¤ÎÃæ¤Ë²Ã¤¨¤é¤ì¤ë¡£
60 .PP
61 ¤Ò¤È¤¿¤Ó¤³¤Î¤è¤¦¤Ë¤·¤ÆFIFO¥¹¥Ú¥·¥ã¥ë¥Õ¥¡¥¤¥ë¤¬ºîÀ®¤µ¤ì¤ë¤È¡¢Ä̾ï¤Î¥Õ¥¡
62 ¥¤¥ë¤ÈƱ¤¸¤è¤¦¤Ë¡¢¤É¤Î¥×¥í¥»¥¹¤«¤é¤Ç¤âÆɤ߽Ф·¡¢½ñ¤­¹þ¤ßÍѤˤ³¤ì¤ò¥ª¡¼
63 ¥×¥ó¤¹¤ë¤³¤È¤¬¤Ç¤­¤ë¡£¤¿¤À¤·¡¢¤³¤ì¤ËÂФ¹¤ëÁ´¤Æ¤ÎÆþ½ÐÎÏÁàºî¤ËÀèΩ¤Ã¤Æ
64 ¤½¤Îξü¤¬¥ª¡¼¥×¥ó¤µ¤ì¤Æ¤¤¤ëɬÍפ¬¤¢¤ë¡£FIFO¤òÆɤ߽Ф·ÍѤ˥ª¡¼¥×¥ó¤¹¤ë
65 ¤È¡¢Ä̾ï¾¤Î¥×¥í¥»¥¹¤Ë¤è¤Ã¤ÆƱ¤¸FIFO¤¬½ñ¤­¹þ¤ßÍѤ˥ª¡¼¥×¥ó¤µ¤ì¤ë¤Þ¤Ç¥Ö
66 ¥í¥Ã¥¯¤µ¤ì¡¢µÕ¤Î¾ì¹ç¤âƱÍͤǤ¢¤ë¡£
67 FIFO¥¹¥Ú¥·¥ã¥ë¥Õ¥¡¥¤¥ë¤ò¥Ö¥í¥Ã¥¯¤»¤º¤Ë°·¤¦ÊýË¡¤Ë¤Ä¤¤¤Æ¤Ï
68 .BR fifo (7)
69 ¤ò»²¾È¤Î¤³¤È¡£
70 .SH ÊÖ¤êÃÍ
71 À®¸ù¤·¤¿¾ì¹ç
72 .BR mkfifo ()
73 ¤Ï 0 ¤òÊÖ¤¹¡£
74 ¥¨¥é¡¼¤Î¾ì¹ç \-1 ¤òÊÖ¤¹ (¤Þ¤¿ \fIerrno\fP ¤¬Å¬ÀÚ¤ËÀßÄꤵ¤ì¤ë)¡£
75 .SH ¥¨¥é¡¼
76 .TP
77 .B EACCES
78 \fIpathname\fP ¤ÎÃæ¤Î¥Ç¥£¥ì¥¯¥È¥ê¤Î°ì¤Ä¤ËÂФ·¸¡º÷(¼Â¹Ô)µö²Ä¤¬¤Ê¤¤¡£
79 .TP
80 .B EEXIST
81 \fIpathname\fP ¤¬¤¹¤Ç¤Ë¸ºß¤¹¤ë¡£
82 ¤³¤ì¤Ë¤Ï¡¢
83 .I pathname
84 ¤¬(¥ê¥ó¥¯Àڤ줫¤É¤¦¤«¤Ë´Ø¤ï¤é¤º)¥·¥ó¥Ü¥ê¥Ã¥¯¥ê¥ó¥¯¤Ç¤¢¤ë¾ì¹ç¤â´Þ¤à¡£
85 .TP
86 .B ENAMETOOLONG
87 \fIpathname\fP ¤ÎŤµ¤¬ \fBPATH_MAX\fP ¤òĶ¤¨¤Æ¤¤¤ë¤«¡¢¸Ä¡¹¤Î¥Õ¥¡¥¤¥ë
88 ̾Éôʬ¤ÎŤµ¤¬ \fBNAME_MAX\fP ¤òĶ¤¨¤Æ¤¤¤ë¡£GNU¥·¥¹¥Æ¥à¤Ë¤ª¤¤¤Æ¤Ï¡¢¥Õ¥¡
89 ¥¤¥ë̾¤ÎÁ´ÂΤÎŤµ¤ËÂФ·¤Æ¤ÏÀ©¸Â¤Ï²Ý¤»¤é¤ì¤Æ¤¤¤Ê¤¤¤¬¡¢¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à
90 ¤Ë¤è¤Ã¤Æ¤Ï³ÆÉôʬ¤ÎŤµ¤ËÀ©¸Â¤Î¤¢¤ë²ÄǽÀ­¤¬¤¢¤ë¡£
91 .TP
92 .B ENOENT
93 \fIpathname\fP ¤ÎÃæ¤Î¥Ç¥£¥ì¥¯¥È¥êÉôʬ¤¬Â¸ºß¤·¤Ê¤¤¤«¡¢¥ê¥ó¥¯Àè¤Î¤Ê¤¤¥·
94 ¥ó¥Ü¥ê¥Ã¥¯¥ê¥ó¥¯¤Ç¤¢¤ë¡£
95 .TP
96 .B ENOSPC
97 ¥Ç¥£¥ì¥¯¥È¥ê¤Þ¤¿¤Ï¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à¤Ë¿·µ¬¥Õ¥¡¥¤¥ë¤òºîÀ®¤¹¤ë;ÃϤ¬¤Ê¤¤¡£
98 .TP
99 .B ENOTDIR
100 \fIpathname\fP Ãæ¤Ç¥Ç¥£¥ì¥¯¥È¥ê¤È¤·¤Æ»ÈÍѤµ¤ì¤Æ¤¤¤ëÉôʬ¤¬¼ÂºÝ¤Ë¤Ï¥Ç¥£
101 ¥ì¥¯¥È¥ê¤Ç¤Ï¤Ê¤¤¡£
102 .TP
103 .B EROFS
104 \fIpathname\fP ¤¬Æɤ߼è¤êÀìÍѤΥե¡¥¤¥ë¥·¥¹¥Æ¥à¤ò»Ø¤·¤Æ¤¤¤ë¡£
105 .SH ½àµò
106 POSIX.1-2001.
107 .SH ´ØÏ¢¹àÌÜ
108 .BR mkfifo (1),
109 .BR close (2),
110 .BR open (2),
111 .BR read (2),
112 .BR stat (2),
113 .BR umask (2),
114 .BR write (2),
115 .BR mkfifoat (3),
116 .BR fifo (7)