X-Git-Url: http://git.osdn.net/view?p=linuxjm%2FLDP_man-pages.git;a=blobdiff_plain;f=original%2Fman2%2Ftee.2;h=ac7f3861eecbfeca65c7bca5746c885f4ab6111a;hp=77b99f5d261e0db512821d219cf0248fe831d509;hb=83f9e5d087c3464d5131604d3c9893479e6228eb;hpb=c22bb444e1a8f4a0e08a82e80ea4ad06593869da diff --git a/original/man2/tee.2 b/original/man2/tee.2 index 77b99f5d..ac7f3861 100644 --- a/original/man2/tee.2 +++ b/original/man2/tee.2 @@ -23,7 +23,7 @@ .\" the source, must acknowledge the copyright and authors of this work. .\" %%%LICENSE_END .\" -.TH TEE 2 2012-05-04 "Linux" "Linux Programmer's Manual" +.TH TEE 2 2014-12-31 "Linux" "Linux Programmer's Manual" .SH NAME tee \- duplicating pipe content .SH SYNOPSIS @@ -99,6 +99,12 @@ returns \-1 and is set to indicate the error. .SH ERRORS .TP +.B EAGAIN +.B SPLICE_F_NONBLOCK +was specified in +.IR flags , +and the operation would block. +.TP .B EINVAL .I fd_in or @@ -128,11 +134,22 @@ under the covers, assigns data in the output by merely grabbing a reference to the input. .SH EXAMPLE -The following example implements a basic +The example below implements a basic .BR tee (1) program using the .BR tee () system call. +Here is an example of its use: + +.in +4n +.nf +$ \fBdate |./a.out out.log | cat\fP +Tue Oct 28 10:06:00 CET 2014 +$ \fBcat out.log\fP +Tue Oct 28 10:06:00 CET 2014 +.fi +.in +.SS Program source .nf #define _GNU_SOURCE @@ -198,7 +215,7 @@ main(int argc, char *argv[]) .BR splice (2), .BR vmsplice (2) .SH COLOPHON -This page is part of release 3.67 of the Linux +This page is part of release 3.79 of the Linux .I man-pages project. A description of the project,