From owner-man-jp-reviewer@jp.FreeBSD.org Sat May  7 23:08:35 2005
Received: (from daemon@localhost)
	by castle.jp.FreeBSD.org (8.11.6p2+3.4W/8.11.3) id j47E8ZL70676;
	Sat, 7 May 2005 23:08:35 +0900 (JST)
	(envelope-from owner-man-jp-reviewer@jp.FreeBSD.org)
Received: from t-mta1.odn.ne.jp (mfep1.odn.ne.jp [143.90.131.179])
	by castle.jp.FreeBSD.org (8.11.6p2+3.4W/8.11.3) with ESMTP/inet id j47E8ZX70667
	for <man-jp-reviewer@jp.FreeBSD.org>; Sat, 7 May 2005 23:08:35 +0900 (JST)
	(envelope-from n-kogane@syd.odn.ne.jp)
Received: from kces6.koganemaru.co.jp ([220.212.168.108])
          by t-mta1.odn.ne.jp with ESMTP
          id <20050507140829688.MSFX.8089.t-mta1.odn.ne.jp@mta1.odn.ne.jp>
          for <man-jp-reviewer@jp.FreeBSD.org>;
          Sat, 7 May 2005 23:08:29 +0900
Received: by kces6.koganemaru.co.jp (Postfix, from userid 100)
	id 09350100B5; Sat,  7 May 2005 23:08:58 +0900 (JST)
To: man-jp-reviewer@jp.FreeBSD.org
MIME-Version: 1.0 (generated by MimeKit/1.8)
Content-Type: text/plain; charset=ISO-2022-JP
Message-Id: <20050507140858.09350100B5@kces6.koganemaru.co.jp>
From: n-kogane@syd.odn.ne.jp (Nobuyuki Koganemaru)
Reply-To: man-jp-reviewer@jp.FreeBSD.org
Precedence: list
Date: Sat, 7 May 2005 23:08:58 +0900
X-Sequence: man-jp-reviewer 4780
Subject: [man-jp-reviewer 4780] sendfile.2 Update to 5.4RC4
Sender: owner-man-jp-reviewer@jp.FreeBSD.org
X-Originator: n-kogane@syd.odn.ne.jp
X-Distribute: distribute version 2.1 (Alpha) patchlevel 24e+050320

$B>.6b4]$G$9!#(B

$B8e$m$K1QJ8$N:9J,$bIU$1$^$9!#(B

diff -u /dskg/JMAN4/doc/ja_JP.eucJP/man/man2/sendfile.2 sendfile.2
--- /dskg/JMAN4/doc/ja_JP.eucJP/man/man2/sendfile.2	Wed Sep 22 05:33:15 2004
+++ sendfile.2	Sat May  7 22:52:19 2005
@@ -23,10 +23,10 @@
 .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
 .\" SUCH DAMAGE.
 .\"
-.\" %FreeBSD: src/lib/libc/sys/sendfile.2,v 1.23 2004/06/30 20:09:10 ru Exp %
+.\" %FreeBSD: src/lib/libc/sys/sendfile.2,v 1.23.2.2 2005/02/28 03:32:34 brueffer Exp %
 .\"
 .\" $FreeBSD: doc/ja_JP.eucJP/man/man2/sendfile.2,v 1.17 2004/09/21 20:33:15 metal Exp $
-.Dd November 5, 1998
+.Dd October 16, 2004
 .Dt SENDFILE 2
 .Os
 .Sh $BL>>N(B
@@ -39,7 +39,10 @@
 .In sys/socket.h
 .In sys/uio.h
 .Ft int
-.Fn sendfile "int fd" "int s" "off_t offset" "size_t nbytes" "struct sf_hdtr *hdtr" "off_t *sbytes" "int flags"
+.Fo sendfile
+.Fa "int fd" "int s" "off_t offset" "size_t nbytes"
+.Fa "struct sf_hdtr *hdtr" "off_t *sbytes" "int flags"
+.Fc
 .Sh $B2r@b(B
 .Fn sendfile
 $B%7%9%F%`%3!<%k$O!"5-=R;R(B
@@ -50,13 +53,17 @@
 .Pp
 .Fa offset
 $B0z?t$O%U%!%$%k$N$I$3$+$i3+;O$9$Y$-$+$r;XDj$7$^$9!#(B
+.Fa offset
+$B$,%U%!%$%k$N=*$j$rD6$($F<:GT$9$k$J$i$P!"%7%9%F%`$O(B
+$B<!$K@bL@$5$l$k$h$&$K@.8y$rJV$7$F!"(B0 $B%P%$%H$rAw?.$7$?$HJs9p$7$^$9!#(B
 .Fa nbytes
 $B0z?t$O!"%U%!%$%k$N2?%P%$%H$rAw?.$9$kI,MW$,$"$k$+$r;XDj$7$^$9!#(B
 0 $B$O!"%U%!%$%k$N=*$o$j$^$GAw?.$9$k$H$$$&FC<l$J0UL#$r;}$A$^$9!#(B
 .Pp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=P$7$KBP$7$F!"Be$o$j$K(B
@@ -195,7 +208,7 @@
 $B0z?t$,(B SOCK_STREAM $B7?$N%=%1%C%H$G$O$"$j$^$;$s!#(B
 .It Bq Er EINVAL
 .Fa offset
-$B0z?t$,Ii$G$"$k$+!"$^$?$OHO0O30$G$9!#(B
+$B0z?t$,Ii$G$9!#(B
 .It Bq Er ENOTCONN
 .Fa s
 $B0z?t$,!"L$@\B3$N%=%1%C%H$r;X$7$F$$$^$9!#(B
diff -u /dskg/JMAN4/5.3-RELEASE/man2/sendfile.2 /dskg/JMAN4/5.4-RC4/man2/sendfile.2
--- /dskg/JMAN4/5.3-RELEASE/man2/sendfile.2	Fri Nov  5 10:24:23 2004
+++ /dskg/JMAN4/5.4-RC4/man2/sendfile.2	Mon May  2 05:53:48 2005
@@ -23,9 +23,9 @@
 .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
 .\" SUCH DAMAGE.
 .\"
-.\" $FreeBSD: src/lib/libc/sys/sendfile.2,v 1.23 2004/06/30 20:09:10 ru Exp $
+.\" $FreeBSD: src/lib/libc/sys/sendfile.2,v 1.23.2.2 2005/02/28 03:32:34 brueffer Exp $
 .\"
-.Dd November 5, 1998
+.Dd October 16, 2004
 .Dt SENDFILE 2
 .Os
 .Sh NAME
@@ -38,7 +38,10 @@
 .In sys/socket.h
 .In sys/uio.h
 .Ft int
-.Fn sendfile "int fd" "int s" "off_t offset" "size_t nbytes" "struct sf_hdtr *hdtr" "off_t *sbytes" "int flags"
+.Fo sendfile
+.Fa "int fd" "int s" "off_t offset" "size_t nbytes"
+.Fa "struct sf_hdtr *hdtr" "off_t *sbytes" "int flags"
+.Fc
 .Sh DESCRIPTION
 The
 .Fn sendfile
@@ -51,13 +54,19 @@
 The
 .Fa offset
 argument specifies where to begin in the file.
+Should
+.Fa offset
+fall beyond the end of file, the system will return
+success and report 0 bytes sent as described below.
 The
 .Fa nbytes
 argument specifies how many bytes of the file should be sent, with 0 having the special
 meaning of send until the end of file has been reached.
 .Pp
 An optional header and/or trailer can be sent before and after the file data by specifying
-a pointer to a struct sf_hdtr, which has the following structure:
+a pointer to a
+.Vt "struct sf_hdtr" ,
+which has the following structure:
 .Pp
 .Bd -literal -offset indent -compact
 struct sf_hdtr {
@@ -72,7 +81,11 @@
 .Fa headers
 and
 .Fa trailers
-pointers, if non-NULL, point to arrays of struct iovec structures.
+pointers, if
+.Pf non- Dv NULL ,
+point to arrays of
+.Vt "struct iovec"
+structures.
 See the
 .Fn writev
 system call for information on the iovec structure.
@@ -82,7 +95,9 @@
 and
 .Fa trl_cnt .
 .Pp
-If non-NULL, the system will write the total number of bytes sent on the socket to the
+If
+.Pf non- Dv NULL ,
+the system will write the total number of bytes sent on the socket to the
 variable pointed to by
 .Fa sbytes .
 .Pp
@@ -209,7 +224,7 @@
 The
 .Fa offset
 argument
-is negative or out of range.
+is negative.
 .It Bq Er ENOTCONN
 The
 .Fa s

--
($BM-(B)$B>.6b4]%3%s%T%e!<%?%(%s%8%K%"%j%s%0%5!<%S%9(B ($BJ!2,8)BgLn>k;T(B)
	$B>.6b4](B $B?.9,(B (Nobuyuki Koganemaru)
E-Mail: n-kogane@syd.odn.ne.jp
E-Mail: kogane@jp.FreeBSD.org
E-Mail: kogane@koganemaru.co.jp
URL: http://www.koganemaru.co.jp
