118 lines
4.1 KiB
Groff
118 lines
4.1 KiB
Groff
.\" Copyright (c) 1990, 1991, 1993
|
|
.\" The Regents of the University of California. All rights reserved.
|
|
.\"
|
|
.\" Redistribution and use in source and binary forms, with or without
|
|
.\" modification, are permitted provided that the following conditions
|
|
.\" are met:
|
|
.\" 1. Redistributions of source code must retain the above copyright
|
|
.\" notice, this list of conditions and the following disclaimer.
|
|
.\" 2. Redistributions in binary form must reproduce the above copyright
|
|
.\" notice, this list of conditions and the following disclaimer in the
|
|
.\" documentation and/or other materials provided with the distribution.
|
|
.\" 3. All advertising materials mentioning features or use of this software
|
|
.\" must display the following acknowledgement:
|
|
.\" This product includes software developed by the University of
|
|
.\" California, Berkeley and its contributors.
|
|
.\" 4. Neither the name of the University nor the names of its contributors
|
|
.\" may be used to endorse or promote products derived from this software
|
|
.\" without specific prior written permission.
|
|
.\"
|
|
.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
|
|
.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
|
.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
|
.\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
|
|
.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|
.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
|
|
.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
|
|
.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
|
.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
|
|
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
|
.\" SUCH DAMAGE.
|
|
.\"
|
|
.\" @(#)mkfifo.2 8.1 (Berkeley) 6/4/93
|
|
.\" %FreeBSD: src/lib/libc/sys/mkfifo.2,v 1.17 2002/12/19 09:40:25 ru Exp %
|
|
.\"
|
|
.\" $FreeBSD$
|
|
.Dd June 4, 1993
|
|
.Dt MKFIFO 2
|
|
.Os
|
|
.Sh ̾¾Î
|
|
.Nm mkfifo
|
|
.Nd fifo ¥Õ¥¡¥¤¥ë¤òºîÀ®¤¹¤ë
|
|
.Sh ¥é¥¤¥Ö¥é¥ê
|
|
.Lb libc
|
|
.Sh ½ñ¼°
|
|
.In sys/types.h
|
|
.In sys/stat.h
|
|
.Ft int
|
|
.Fn mkfifo "const char *path" "mode_t mode"
|
|
.Sh ²òÀâ
|
|
.Fn mkfifo
|
|
¥·¥¹¥Æ¥à¥³¡¼¥ë¤Ï¡¢
|
|
.Fa path
|
|
¤È¤¤¤¦Ì¾Á°¤Î¿·¤·¤¤ fifo ¥Õ¥¡¥¤¥ë¤òºîÀ®¤·¤Þ¤¹¡£
|
|
¥¢¥¯¥»¥¹µö²Ä¤Ï
|
|
.Fa mode
|
|
¤Ë¤è¤Ã¤Æ»ØÄꤵ¤ì¡¢¸Æ¤Ó½Ð¤·¥×¥í¥»¥¹¤Î
|
|
.Xr umask 2
|
|
¤ÎÀ©Ìó¤ò¼õ¤±¤Þ¤¹¡£
|
|
.Pp
|
|
fifo ¤Î½êÍ¼Ô ID ¤Ï¡¢¥×¥í¥»¥¹¤Î¼Â¸ú¥æ¡¼¥¶ ID ¤ËÀßÄꤵ¤ì¤Þ¤¹¡£
|
|
fifo ¤Î¥°¥ë¡¼¥× ID ¤Ï¡¢¤½¤ì¤¬ºîÀ®¤µ¤ì¤ë¿Æ¥Ç¥£¥ì¥¯¥È¥ê¤Î ID ¤ËÀßÄꤵ¤ì¤Þ¤¹¡£
|
|
.Sh Ìá¤êÃÍ
|
|
.Rv -std mkfifo
|
|
.Sh ¥¨¥é¡¼
|
|
.Fn mkfifo
|
|
¥·¥¹¥Æ¥à¥³¡¼¥ë¤Ï¡¢¼¡¤Î¾ì¹ç¤Ë½èÍý¤ò¼ºÇÔ¤·¡¢fifo ¤ÏºîÀ®¤µ¤ì¤Þ¤»¤ó:
|
|
.Bl -tag -width Er
|
|
.It Bq Er ENOTSUP
|
|
¥«¡¼¥Í¥ë¤¬ fifo ¤ò¥µ¥Ý¡¼¥È¤¹¤ë¤è¤¦¤Ë¹½À®¤µ¤ì¤Æ¤¤¤Þ¤»¤ó¡£
|
|
.It Bq Er ENOTDIR
|
|
¥Ñ¥¹¤Î¹½À®Í×ÁÇÃæ¤Ë¥Ç¥£¥ì¥¯¥È¥ê°Ê³°¤Î¤â¤Î¤¬´Þ¤Þ¤ì¤Æ¤¤¤Þ¤¹¡£
|
|
.It Bq Er ENAMETOOLONG
|
|
¥Ñ¥¹Ì¾¤Î¹½À®Í×ÁǤ¬ 255 ʸ»ú¤ò±Û¤¨¤Æ¤¤¤ë¤«¡¢
|
|
¤Þ¤¿¤Ï¥Ñ¥¹Ì¾Á´ÂΤ¬ 1023 ʸ»ú¤ò±Û¤¨¤Æ¤¤¤Þ¤¹¡£
|
|
.It Bq Er ENOENT
|
|
¥Ñ¥¹¤Î¹½À®Í×ÁǤ¬Â¸ºß¤·¤Þ¤»¤ó¡£
|
|
.It Bq Er EACCES
|
|
»ØÄꤵ¤ì¤¿¥Ñ¥¹¤Ë¤Ï¡¢¸¡º÷¤¬µö²Ä¤µ¤ì¤Æ¤¤¤Ê¤¤¥Ç¥£¥ì¥¯¥È¥ê¤¬´Þ¤Þ¤ì¤Æ¤¤¤Þ¤¹¡£
|
|
.It Bq Er ELOOP
|
|
¥Ñ¥¹Ì¾¤òÊÑ´¹¤¹¤ë¤È¤¤Ë¸¡½Ð¤µ¤ì¤¿¥·¥ó¥Ü¥ê¥Ã¥¯¥ê¥ó¥¯¤¬Â¿¤¹¤®¤Þ¤¹¡£
|
|
.It Bq Er EROFS
|
|
»ØÄꤵ¤ì¤¿¥Õ¥¡¥¤¥ë¤ÏÆÉ¼è¤êÀìÍÑ¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à¾å¤Ë¤¢¤ê¤Þ¤¹¡£
|
|
.It Bq Er EEXIST
|
|
»ØÄê¤Î¥Õ¥¡¥¤¥ë¤¬¤¹¤Ç¤Ë¸ºß¤·¤Þ¤¹¡£
|
|
.It Bq Er ENOSPC
|
|
¿·¤·¤¤ fifo ÍѤΥ¨¥ó¥È¥ê¤òÇÛÃÖ¤¹¤ë¥Ç¥£¥ì¥¯¥È¥ê¤¬³ÈÄ¥¤Ç¤¤Þ¤»¤ó¡£
|
|
¥Ç¥£¥ì¥¯¥È¥ê¤¬Æþ¤Ã¤Æ¤¤¤ë¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à¤Ë¶õ¤ÍÆÎ̤¬»Ä¤Ã¤Æ¤¤¤Þ¤»¤ó¡£
|
|
.It Bq Er ENOSPC
|
|
fifo ¤òºîÀ®¤¹¤ë¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à¾å¤Ë̤»ÈÍѤΠinode ¤¬¤¢¤ê¤Þ¤»¤ó¡£
|
|
.It Bq Er EDQUOT
|
|
¿·¤·¤¤ fifo ÍѤΥ¨¥ó¥È¥ê¤òÇÛÃÖ¤¹¤ë¥Ç¥£¥ì¥¯¥È¥ê¤¬³ÈÄ¥¤Ç¤¤Þ¤»¤ó¡£
|
|
¥Ç¥£¥ì¥¯¥È¥ê¤¬Æþ¤Ã¤Æ¤¤¤ë¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à¾å¤Î¥Ç¥£¥¹¥¯¥Ö¥í¥Ã¥¯¤Î¥æ¡¼¥¶¤Î
|
|
¥¯¥©¡¼¥¿¤¬¸Ï³é¤·¤Þ¤·¤¿¡£
|
|
.It Bq Er EDQUOT
|
|
fifo ¤òºîÀ®Ãæ¤Î¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à¾å¤Î¥æ¡¼¥¶¤Î inode ¤Î¥¯¥©¡¼¥¿¤¬
|
|
¸Ï³é¤·¤Þ¤·¤¿¡£
|
|
.It Bq Er EIO
|
|
¥Ç¥£¥ì¥¯¥È¥ê¥¨¥ó¥È¥ê¤ÎºîÀ®Ãæ¡¢¤¢¤ë¤¤¤Ï inode ¤ò³ä¤êÅö¤ÆÃæ¤Ë
|
|
.Tn I/O
|
|
(Æþ½ÐÎÏ) ¥¨¥é¡¼¤¬È¯À¸¤·¤Þ¤·¤¿¡£
|
|
.It Bq Er EIO
|
|
¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à¤ËÆÉ¤ß½ñ¤¤·¤Æ¤¤¤ë´Ö¤Ë
|
|
.Tn I/O
|
|
(Æþ½ÐÎÏ) ¥¨¥é¡¼¤¬È¯À¸¤·¤Þ¤·¤¿¡£
|
|
.It Bq Er EFAULT
|
|
.Fa path
|
|
°ú¿ô¤¬¡¢¥×¥í¥»¥¹¤Ë³ä¤êÅö¤Æ¤é¤ì¤¿¥¢¥É¥ì¥¹¶õ´Ö¤ÎÈϰϳ°¤ò»Ø¤·¤Æ¤¤¤Þ¤¹¡£
|
|
.El
|
|
.Sh ´ØÏ¢¹àÌÜ
|
|
.Xr chmod 2 ,
|
|
.Xr mknod 2 ,
|
|
.Xr stat 2 ,
|
|
.Xr umask 2
|
|
.Sh µ¬³Ê
|
|
.Fn mkfifo
|
|
¥·¥¹¥Æ¥à¥³¡¼¥ë¤Ï
|
|
.St -p1003.1-90
|
|
¤ËŬ¹ç¤·¤Æ¤¤¤Þ¤¹¡£
|