OSDN Git Service

(split) LDP: draft snapshot generated from latest ja.po files.
[linuxjm/LDP_man-pages.git] / draft / man2 / tee.2
index a384bb9..2e27c35 100644 (file)
 .\" Formatted or processed versions of this manual, if unaccompanied by
 .\" the source, must acknowledge the copyright and authors of this work.
 .\"
-.\" Japanese Version Copyright (c) 2007  Akihiro MOTOKI
-.\"         all rights reserved.
-.\" Translated 2007-02-04, Akihiro MOTOKI <amotoki@dd.iij4u.or.jp>
-.\" 
-.TH TEE 2 2009-09-15 "Linux" "Linux Programmer's Manual"
-.\"O .SH NAME
+.\"*******************************************************************
+.\"
+.\" This file was generated with po4a. Translate the source file.
+.\"
+.\"*******************************************************************
+.TH TEE 2 2009\-09\-15 Linux "Linux Programmer's Manual"
 .SH 名前
-.\"O tee \- duplicating pipe content
 tee \- パイプの中身を複製する
-.\"O .SH SYNOPSIS
 .SH 書式
 .nf
-.\"O .BR "#define _GNU_SOURCE" "         /* See feature_test_macros(7) */"
-.BR "#define _GNU_SOURCE" "         /* feature_test_macros(7) 参照 */"
-.B #include <fcntl.h>
+\fB#define _GNU_SOURCE\fP         /* feature_test_macros(7) 参照 */
+\fB#include <fcntl.h>\fP
 
-.BI "ssize_t tee(int " fd_in ", int " fd_out ", size_t " len \
-", unsigned int " flags );
+\fBssize_t tee(int \fP\fIfd_in\fP\fB, int \fP\fIfd_out\fP\fB, size_t \fP\fIlen\fP\fB, unsigned int \fP\fIflags\fP\fB);\fP
 .fi
 .\" Return type was long before glibc 2.7
-.\"O .SH DESCRIPTION
 .SH 説明
 .\" Example programs http://brick.kernel.dk/snaps
 .\"
@@ -51,178 +46,46 @@ tee \- パイプの中身を複製する
 .\" add a "tee(in, out1, out2)" system call that duplicates the pages
 .\" (again, incrementing their reference count, not copying the data) from
 .\" one pipe to two other pipes.
-.\"O .BR tee ()
-.\"O duplicates up to
-.\"O .I len
-.\"O bytes of data from the pipe referred to by the file descriptor
-.\"O .I fd_in
-.\"O to the pipe referred to by the file descriptor
-.\"O .IR fd_out .
-.\"O It does not consume the data that is duplicated from
-.\"O .IR fd_in ;
-.\"O therefore, that data can be copied by a subsequent
-.\"O .BR splice (2).
-.BR tee ()
-は、ファイルディスクリプタ
-.I fd_in
-が参照するパイプからファイルディスクリプタ
-.I fd_out
-が参照するパイプへ最大
-.I len
-バイトのデータを複製する。
-この操作では、複製されるデータは
-.I fd_in
-からは消費されない。したがって、これらのデータをこの後の
-.BR splice (2)
-でコピーすることができる。
+\fBtee\fP()  は、ファイルディスクリプタ \fIfd_in\fP が参照するパイプからファイルディスクリプタ \fIfd_out\fP が参照するパイプへ最大
+\fIlen\fP バイトのデータを複製する。 この操作では、複製されるデータは \fIfd_in\fP からは消費されない。したがって、これらのデータをこの後の
+\fBsplice\fP(2)  でコピーすることができる。
 
-.\"O .I flags
-.\"O is a series of modifier flags, which share the name space with
-.\"O .BR splice (2)
-.\"O and
-.\"O .BR vmsplice (2):
-.I flags
-は一連の修飾フラグであり、
-.BR splice (2)
-や
-.BR vmsplice (2)
-と共通の名前である。
-.TP 1.9i
-.B SPLICE_F_MOVE
-.\"O Currently has no effect for
-.\"O .BR tee ();
-.\"O see
-.\"O .BR splice (2).
-現在のところ
-.BR tee ()
-では何の効果もない。
-.BR splice (2)
-参照。
-.TP
-.B SPLICE_F_NONBLOCK
-.\"O Do not block on I/O; see
-.\"O .BR splice (2)
-.\"O for further details.
-入出力時に停止 (block) しない。
-詳細は
-.BR splice (2)
-参照。
-.TP
-.B SPLICE_F_MORE
-.\"O Currently has no effect for
-.\"O .BR tee (),
-.\"O but may be implemented in the future; see
-.\"O .BR splice (2).
-現在のところ
-.BR tee ()
-では何の効果もないが、将来的には実装される可能性がある。
-.BR splice (2)
-参照。
-.TP
-.B SPLICE_F_GIFT
-.\"O Unused for
-.\"O .BR tee ();
-.\"O see
-.\"O .BR vmsplice (2).
-.BR tee ()
-では未使用。
-.BR vmsplice (2)
-参照。
-.\"O .SH RETURN VALUE
+\fIflags\fP は一連の修飾フラグであり、 \fBsplice\fP(2)  や \fBvmsplice\fP(2)  と共通の名前である。
+.TP  1.9i
+\fBSPLICE_F_MOVE\fP
+現在のところ \fBtee\fP()  では何の効果もない。 \fBsplice\fP(2)  参照。
+.TP 
+\fBSPLICE_F_NONBLOCK\fP
+入出力で停止 (block) しない。詳細は \fBsplice\fP(2)  参照。
+.TP 
+\fBSPLICE_F_MORE\fP
+現在のところ \fBtee\fP()  では何の効果もないが、将来的には実装される可能性がある。 \fBsplice\fP(2)  参照。
+.TP 
+\fBSPLICE_F_GIFT\fP
+\fBtee\fP()  では未使用。 \fBvmsplice\fP(2)  参照。
 .SH 返り値
-.\"O Upon successful completion,
-.\"O .BR tee ()
-.\"O returns the number of bytes that were duplicated between the input
-.\"O and output.
-.\"O A return value of 0 means that there was no data to transfer,
-.\"O and it would not make sense to block, because there are no
-.\"O writers connected to the write end of the pipe referred to by
-.\"O .IR fd_in .
-成功して完了すると、
-.BR tee ()
-は入出力間で複製されたバイト数を返す。
-返り値 0 はデータの転送が行われなかったことを示す。
-この場合、処理を停止 (block) しても無意味である。
-なぜなら、
-.I fd_in
+成功して完了すると、 \fBtee\fP()  は入出力間で複製されたバイト数を返す。 返り値 0 はデータの転送が行われなかったことを示す。
+この場合、処理を停止 (block) しても無意味である。 なぜなら、 \fIfd_in\fP
 が参照するパイプの書き込み側に接続されている者がいないからである。
 
-.\"O On error,
-.\"O .BR tee ()
-.\"O returns \-1 and
-.\"O .I errno
-.\"O is set to indicate the error.
-エラーの場合、
-.BR tee ()
-は \-1 を返し、
-.I errno
-にエラーを示す値を設定する。
-.\"O .SH ERRORS
+エラーの場合、 \fBtee\fP()  は \-1 を返し、 \fIerrno\fP にエラーを示す値を設定する。
 .SH エラー
-.TP
-.B EINVAL
-.\"O .I fd_in
-.\"O or
-.\"O .I fd_out
-.\"O does not refer to a pipe; or
-.\"O .I fd_in
-.\"O and
-.\"O .I fd_out
-.\"O refer to the same pipe.
-.I fd_in
-と
-.I fd_out
-のどちらかがパイプを参照していない。もしくは
-.I fd_in
-と
-.I fd_out
+.TP 
+\fBEINVAL\fP
+\fIfd_in\fP と \fIfd_out\fP のどちらかがパイプを参照していない。もしくは \fIfd_in\fP と \fIfd_out\fP
 が同じパイプを参照している。
-.TP
-.B ENOMEM
-.\"O Out of memory.
+.TP 
+\fBENOMEM\fP
 メモリ不足。
-.\"O .SH VERSIONS
 .SH バージョン
-.\"O The
-.\"O .BR tee ()
-.\"O system call first appeared in Linux 2.6.17.
-.BR tee ()
-システムコールは Linux 2.6.17 で初めて登場した。
-.\"O .SH "CONFORMING TO"
+\fBtee\fP()  システムコールは Linux 2.6.17 で初めて登場した。
 .SH 準拠
-.\"O This system call is Linux-specific.
 このシステムコールは Linux 固有である。
-.\"O .SH NOTES
 .SH 注意
-.\"O Conceptually,
-.\"O .BR tee ()
-.\"O copies the data between the two pipes.
-.\"O In reality no real data copying takes place though:
-.\"O under the covers,
-.\"O .BR tee ()
-.\"O assigns data in the output by merely grabbing
-.\"O a reference to the input.
-概念としては、
-.BR tee ()
-は二つのパイプ間でデータのコピーを行う。
-しかし、実際には実データのコピーは行われない。
-内部では、
-.BR tee ()
-は入力側に対する参照だけを作成することで出力側にデータを
-追加する。
-.\"O .SH EXAMPLE
+概念としては、 \fBtee\fP()  は二つのパイプ間でデータのコピーを行う。 しかし、実際には実データのコピーは行われない。 内部では、
+\fBtee\fP()  は入力側に対する参照だけを作成することで出力側にデータを 追加する。
 .SH 例
-.\"O The following example implements a basic
-.\"O .BR tee (1)
-.\"O program using the
-.\"O .BR tee ()
-.\"O system call.
-以下の例は、
-.BR tee ()
-システムコールを使って、
-基本的な
-.BR tee (1)
-プログラムを実装したものである。
+以下の例は、 \fBtee\fP()  システムコールを使って、 基本的な \fBtee\fP(1)  プログラムを実装したものである。
 .nf
 
 #define _GNU_SOURCE
@@ -240,7 +103,7 @@ main(int argc, char *argv[])
     int len, slen;
 
     if (argc != 2) {
-        fprintf(stderr, "Usage: %s <file>\\n", argv[0]);
+        fprintf(stderr, "Usage: %s <file>\en", argv[0]);
         exit(EXIT_FAILURE);
     }
 
@@ -284,7 +147,5 @@ main(int argc, char *argv[])
     exit(EXIT_SUCCESS);
 }
 .fi
-.\"O .SH SEE ALSO
 .SH 関連項目
-.BR splice (2),
-.BR vmsplice (2)
+\fBsplice\fP(2), \fBvmsplice\fP(2)