1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109
|
.\" Hey Emacs! This file is -*- nroff -*- source.
.\"
.\" This manpage is Copyright (C) 1995 James R. Van Zandt <jrv@vanzandt.mv.com>
.\"
.\" Permission is granted to make and distribute verbatim copies of this
.\" manual provided the copyright notice and this permission notice are
.\" preserved on all copies.
.\"
.\" Permission is granted to copy and distribute modified versions of this
.\" manual under the conditions for verbatim copying, provided that the
.\" entire resulting derived work is distributed under the terms of a
.\" permission notice identical to this one
.\"
.\" Since the Linux kernel and libraries are constantly changing, this
.\" manual page may be incorrect or out-of-date. The author(s) assume no
.\" responsibility for errors or omissions, or for damages resulting from
.\" the use of the information contained herein. The author(s) may not
.\" have taken the same level of care in the production of this manual,
.\" which is licensed free of charge, as they might when working
.\" professionally.
.\"
.\" Formatted or processed versions of this manual, if unaccompanied by
.\" the source, must acknowledge the copyright and authors of this work.
.\"
.\" changed section from 2 to 3, aeb, 950919
.\"
.\" Japanese Version Copyright (c) 1998 George Momma
.\" all rights reserved.
.\" Translated Mon May 25 23:11:03 JST 1998
.\" by George Momma <momma@wakhok.ac.jp>
.\" Updated Sat Dec 11 00:43:50 JST 1999
.\" by Kentaro Shirakata <argrath@yo.rim.or.jp>
.\"
.\"WORD: named pipe ̾դѥ
.\"WORD: permission ĥ⡼
.\"WORD: file name ե̾
.\"WORD: file name component ե̾ʬ
.\"WORD: directory component ǥ쥯ȥʬ
.TH MKFIFO 3 "3 September 1995" "Linux 1.2.13" "Linux Programmer's Manual"
.SH ̾
mkfifo \- FIFOڥե(̾դѥ)
.SH
.nf
.B #include <sys/types.h>
.B #include <sys/stat.h>
.sp
.BI "int mkfifo(const char *" pathname ", mode_t " mode );
.fi
.SH
\fBmkfifo\fP ̾ \fIpathname\fP FIFOڥե
롣FIFOεĥ⡼ɤ \fImode\fP ǻꤵ졢ץ
\fBumask\fP ˤä̾ѹ: 줿եε
⡼ɤ \fB(\fP\fImode\fP\fB & ~umask)\fP Ȥʤ롣
.PP
FIFOڥեϥѥפ˻Ƥ뤬ΤΤߤۤʤä
롣FIFOڥե̾Τʤ̿ϩǤϤʤ\fBmkfifo\fP
θƤӽФˤե륷ƥ˲ä롣
.PP
ҤȤӤΤ褦ˤFIFOڥե뤬ȡ̾Υե
Ʊ褦ˡɤΥץǤɤ߽ФѤˤ
ץ뤳ȤǤ롣ФƤΩä
ξüץƤɬפ롣FIFOɤ߽ФѤ˥ץ
ȡ̾¾ΥץˤäƱFIFOѤ˥ץޤǥ
å졢դξƱͤǤ롣
FIFOڥե֥å˰ˡˤĤƤ
.BR fifo (4)
ȤΤȡ
.SH ֤
ʡ \fImkfifo\fP ֤ͤ \fB0\fP Ǥ롣顼
ξ(ξ硢\fIerrno\fP ˱ƥåȤ)ϡ\fB-1\fP
֤롣
.SH 顼
.TP
.B EACCES
\fIpathname\fP Υǥ쥯ȥΰĤФ(¹)Ĥʤ
.TP
.B EEXIST
\fIpathname\fP Ǥ¸ߤ롣
.TP
.B ENAMETOOLONG
\fIpathname\fP Ĺ \fBPATH_MAX\fP ĶƤ뤫ġΥե
̾ʬĹ \fBNAME_MAX\fP ĶƤ롣GNUƥˤƤϡե
̾ΤĹФƤ¤ϲݤƤʤե륷ƥ
ˤäƤϳʬŤΤǽ롣
.TP
.B ENOENT
\fIpathname\fP Υǥ쥯ȥʬ¸ߤʤΤʤ
ܥåǤ롣
.TP
.B ENOSPC
ǥ쥯ȥޤϥե륷ƥ˿ե;Ϥʤ
.TP
.B ENOTDIR
\fIpathname\fP ǥǥ쥯ȥȤƻѤƤʬºݤˤϥǥ
쥯ȥǤϤʤ
.TP
.B EROFS
\fIpathname\fP ɤѤΥե륷ƥؤƤ롣
.SH
POSIX.1
.SH Ϣ
.BR mkfifo (1),
.BR read (2),
.BR write (2),
.BR open (2),
.BR close (2),
.BR stat (2),
.BR umask (2),
.BR fifo (4)
|