OSDN Git Service

(split) LDP: Update release pages based on LDP 3.54 release
[linuxjm/LDP_man-pages.git] / release / man3 / mkfifo.3
1 .\" This manpage is Copyright (C) 1995 James R. Van Zandt <jrv@vanzandt.mv.com>
2 .\"
3 .\" %%%LICENSE_START(VERBATIM)
4 .\" Permission is granted to make and distribute verbatim copies of this
5 .\" manual provided the copyright notice and this permission notice are
6 .\" preserved on all copies.
7 .\"
8 .\" Permission is granted to copy and distribute modified versions of this
9 .\" manual under the conditions for verbatim copying, provided that the
10 .\" entire resulting derived work is distributed under the terms of a
11 .\" permission notice identical to this one.
12 .\"
13 .\" Since the Linux kernel and libraries are constantly changing, this
14 .\" manual page may be incorrect or out-of-date.  The author(s) assume no
15 .\" responsibility for errors or omissions, or for damages resulting from
16 .\" the use of the information contained herein.  The author(s) may not
17 .\" have taken the same level of care in the production of this manual,
18 .\" which is licensed free of charge, as they might when working
19 .\" professionally.
20 .\"
21 .\" Formatted or processed versions of this manual, if unaccompanied by
22 .\" the source, must acknowledge the copyright and authors of this work.
23 .\" %%%LICENSE_END
24 .\"
25 .\" changed section from 2 to 3, aeb, 950919
26 .\"
27 .\"*******************************************************************
28 .\"
29 .\" This file was generated with po4a. Translate the source file.
30 .\"
31 .\"*******************************************************************
32 .\"
33 .\" Japanese Version Copyright (c) 1998 George Momma
34 .\"         all rights reserved.
35 .\" Translated Mon May 25 23:11:03 JST 1998
36 .\"         by George Momma <momma@wakhok.ac.jp>
37 .\" Updated 1999-12-11 by Kentaro Shirakata <argrath@ub32.org>
38 .\" Updated 2008-07-30 by Kentaro Shirakata <argrath@ub32.org>
39 .\" Updated 2013-05-06, Akihiro MOTOKI <amotoki@gmail.com>
40 .\"
41 .TH MKFIFO 3 2013\-01\-27 GNU "Linux Programmer's Manual"
42 .SH 名前
43 mkfifo \- FIFOスペシャルファイル(名前付きパイプ)を作成する
44 .SH 書式
45 .nf
46 \fB#include <sys/types.h>\fP
47 \fB#include <sys/stat.h>\fP
48 .sp
49 \fBint mkfifo(const char *\fP\fIpathname\fP\fB, mode_t \fP\fImode\fP\fB);\fP
50 .fi
51 .SH 説明
52 \fBmkfifo\fP()  は名前 \fIpathname\fP を持つFIFOスペシャルファイルを作成 する。FIFOの許可モードは \fImode\fP
53 で指定され、プロセスの \fBumask\fP によって通常の方式で変更を受ける: 作成されたファイルの許可 モードは \fB(\fP\fImode\fP\fB &
54 ~umask)\fP となる。
55 .PP
56 A FIFO special file is similar to a pipe, except that it is created in a
57 different way.  Instead of being an anonymous communications channel, a FIFO
58 special file is entered into the filesystem by calling \fBmkfifo\fP().
59 .PP
60 ひとたびこのようにしてFIFOスペシャルファイルが作成されると、通常のファ イルと同じように、どのプロセスからでも読み出し、書き込み用にこれをオー
61 プンすることができる。ただし、これに対する全ての入出力操作に先立って その両端がオープンされている必要がある。FIFOを読み出し用にオープンする
62 と、通常他のプロセスによって同じFIFOが書き込み用にオープンされるまでブ ロックされ、逆の場合も同様である。
63 FIFOスペシャルファイルをブロックせずに扱う方法については \fBfifo\fP(7)  を参照のこと。
64 .SH 返り値
65 成功した場合 \fBmkfifo\fP()  は 0 を返す。 エラーの場合 \-1 を返す (また \fIerrno\fP が適切に設定される)。
66 .SH エラー
67 .TP 
68 \fBEACCES\fP
69 \fIpathname\fP の中のディレクトリの一つに対し検索(実行)許可がない。
70 .TP 
71 \fBEDQUOT\fP
72 The user's quota of disk blocks or inodes on the filesystem has been
73 exhausted.
74 .TP 
75 \fBEEXIST\fP
76 \fIpathname\fP がすでに存在する。 これには \fIpathname\fP がシンボリックリンクである場合も含まれる
77 (シンボリックリンクがリンク切れか (dangling) どうかは関係ない)。
78 .TP 
79 \fBENAMETOOLONG\fP
80 Either the total length of \fIpathname\fP is greater than \fBPATH_MAX\fP, or an
81 individual filename component has a length greater than \fBNAME_MAX\fP.  In the
82 GNU system, there is no imposed limit on overall filename length, but some
83 filesystems may place limits on the length of a component.
84 .TP 
85 \fBENOENT\fP
86 \fIpathname\fP 中のディレクトリ部分が存在しない、 もしくはリンク先の無いシンボリックリンクである。
87 .TP 
88 \fBENOSPC\fP
89 The directory or filesystem has no room for the new file.
90 .TP 
91 \fBENOTDIR\fP
92 \fIpathname\fP 中のディレクトリ要素が、実際にはディレクトリでない。
93 .TP 
94 \fBEROFS\fP
95 \fIpathname\fP refers to a read\-only filesystem.
96 .SH 準拠
97 POSIX.1\-2001.
98 .SH 関連項目
99 \fBmkfifo\fP(1), \fBclose\fP(2), \fBopen\fP(2), \fBread\fP(2), \fBstat\fP(2), \fBumask\fP(2),
100 \fBwrite\fP(2), \fBmkfifoat\fP(3), \fBfifo\fP(7)
101 .SH この文書について
102 この man ページは Linux \fIman\-pages\fP プロジェクトのリリース 3.54 の一部
103 である。プロジェクトの説明とバグ報告に関する情報は
104 http://www.kernel.org/doc/man\-pages/ に書かれている。