From owner-man-jp@jp.freebsd.org  Fri Mar 23 13:17:56 2001
Received: (from daemon@localhost)
	by castle.jp.freebsd.org (8.9.3+3.2W/8.7.3) id NAA48158;
	Fri, 23 Mar 2001 13:17:56 +0900 (JST)
	(envelope-from owner-man-jp@jp.FreeBSD.org)
Received: from oasis.sharplabs.com (gatekeeper.sharplabs.com [216.65.151.101])
	by castle.jp.freebsd.org (8.9.3+3.2W/8.7.3) with ESMTP id NAA48153
	for <man-jp@jp.freebsd.org>; Fri, 23 Mar 2001 13:17:53 +0900 (JST)
	(envelope-from kuma@oasis.sharplabs.com)
Received: from oasis.sharplabs.com (localhost.enet.sharplabs.com [127.0.0.1])
	by oasis.sharplabs.com (8.11.0/3.7W) with ESMTP id f2N4Hn706186
	for <man-jp@jp.freebsd.org>; Thu, 22 Mar 2001 20:17:49 -0800 (PST)
Message-Id: <200103230417.f2N4Hn706186@oasis.sharplabs.com>
To: man-jp@jp.freebsd.org
In-reply-to: Your message of "Fri, 23 Mar 2001 11:24:50 JST."
             <3ABAB3F2.F020E785@vc-net.ne.jp>
Date: Thu, 22 Mar 2001 20:17:49 -0800
From: Norihiro Kumagai <kuma@oasis.sharplabs.com>
Reply-To: man-jp@jp.freebsd.org
Precedence: list
X-Distribute: distribute version 2.1 (Alpha) patchlevel 24e+000315
X-Sequence: man-jp 3323
Subject: [man-jp 3323] man2-catchup (was Re: 4.3-RELEASE)
Errors-To: owner-man-jp@jp.freebsd.org
Sender: owner-man-jp@jp.freebsd.org
X-Originator: kuma@oasis.sharplabs.com

$B7'C+$G$9!#(B

In Message <3ABAB3F2.F020E785@vc-net.ne.jp>,
  SUZUKI Koichi <metal@vc-net.ne.jp> writes:
> $BNkLZ(B@$B$G$9!#(B
> # $B;6JbCf$@$C$?$N$G!"@hF|$NFMA3DdEE$K$O1F6A<u$1$:!#(B

$BNkLZ$5$s%+%j%U%)%k%K%"$G$9$+!)(B
$B$J$s$+$^$?DdEE$7$F$$$k$h$&$G$9$M!#(B

> man2 $B$r:G?7$KDI?o$5$;$?$$$G$9$h$M!#(B
> $B:9J,$C$F$I$N$/$i$$$@$C$?$N$G$7$g$&(B? > $B$f!<$3$5$s(B

$BD4$Y$F$_$^$7$?!#(B

man2-20010112-STABLE $B$H(B man2-4.3-BETA2 $B$H$NHf3S(B
[$B>u67(B]
$B:9J,%U%!%$%k(B 38
$BBgJQ99(B mmap.2 ($B?t==9T!"?7Lu4^$`(B)
$BCfJQ99(B shutdown.2 ($B==?t9T!"?7Lu4^$`(B)
$B?tJ8JQ99(B kqueue.2, rfork.2
1$BJ8JQ99(B getlogin.2, getpid.2, kldstat.2, select.2, sigpending.2, write.2

38$B%U%!%$%k$N$&$A$3$3$KL>A0$,=P$J$+$C$?$b$N$O!"%^%/%mJQ99!"2~9T0LCVJQ99!"(B
FILES $BDI2C$J$I!"$[$H$s$I5!3#E*$JJQ99$,2DG=$JItJ,!#(B

[$BBP1~(B]
$BF|DxE*$K$bM>M5$,$"$k$7!";3J,$1$7$^$9$+!#(B
mmap.2
shutdown.2
$B$r$=$l$>$l0l?M$G;}$C$F!"$"$H(B 36 $B%U%!%$%k$r(B 12 $B%U%!%$%k$r(B 3 $B?M$G;3J,$1(B
$B$0$i$$$+!#(B

$B::FI$O!"0lC6A4It=8$a$F!"(B36$B%U%!%$%k$^$H$a$F(B diff $B$r:n$C$F(B
diff $B%U%!%$%k$r(B2$B?MDxEY$G8+$k$H$$$&$N$G$I$&$G$7$g$&$+!#(B

[$B%M%?(B]
$B$H$$$&$3$H$G!"86J8$NF|K\8l%U%!%$%k(B ($B$?$C$?:#(Bcvsup $B$7$F%j%]%8%H%j$+$i<h(B
$B$j=P$7$?$b$N(B($B$G$$$$$s$G$9$h$M!dKY@n$5$s(B)) $B$r(Btar$B6L$K$7$F$^$H$a$F$*$-$^(B
$B$7$?!#(B
http://home.jp.freebsd.org/~kuma/man2-catchup/jman2c1.tgz
http://home.jp.freebsd.org/~kuma/man2-catchup/jman2c2.tgz
http://home.jp.freebsd.org/~kuma/man2-catchup/jman2c3.tgz
http://home.jp.freebsd.org/~kuma/man2-catchup/mmap.2
http://home.jp.freebsd.org/~kuma/man2-catchup/shutdown.2
$B$G$9!#$*9%$-$J$b$N$r$*<h$j2<$5$$!#(B
$B=PMh>e$,$C$?$i;d$N$H$3$m$KAw$C$F2<$5$$!#(B

[$B;29M;qNA(B]
man2-4.2-20010112-STABLE $B$NBP1~%M%?$O!"(B
http://home.jp.freebsd.org/~kuma/man2-catchup/oman2c1.tgz
http://home.jp.freebsd.org/~kuma/man2-catchup/oman2c2.tgz
http://home.jp.freebsd.org/~kuma/man2-catchup/oman2c3.tgz
http://home.jp.freebsd.org/~kuma/man2-catchup/mmap.2-old
http://home.jp.freebsd.org/~kuma/man2-catchup/shutdown.2-old

man2-4.3-BETA2 $B$NBP1~%M%?$O(B
http://home.jp.freebsd.org/~kuma/man2-catchup/nman2c1.tgz
http://home.jp.freebsd.org/~kuma/man2-catchup/nman2c2.tgz
http://home.jp.freebsd.org/~kuma/man2-catchup/nman2c3.tgz
http://home.jp.freebsd.org/~kuma/man2-catchup/mmap.2-new
http://home.jp.freebsd.org/~kuma/man2-catchup/shutdown.2-new

[$B>-Mh$X$NE8K>(B]
$BF|K\8lHG$N(B diff $B%U%!%$%k$r:n$C$F%A%'%C%/MQ$KN.$7$^$9!#(B
$B$^$?JQ99(B 36 $B%U%!%$%k$N(B tar $B6L$r:n$C$F!"M-;V$K%$%s%9%H!<%k$7$F(B
jman $B$G8+$FBN:[$r3NG'$7$F$b$i$($k$HM-Fq$$!#(B

$B85%M%?$N(B diff $B%U%!%$%k$O<!$NDL$j!#(B
--
$B7'C+(B $BE5Bg(B


diff -ur man2-4.2-20010112-STABLE/accept.2 man2-4.3-BETA2/accept.2
--- man2-4.2-20010112-STABLE/accept.2	Mon Jan 15 09:33:24 2001
+++ man2-4.3-BETA2/accept.2	Tue Mar 13 01:39:59 2001
@@ -30,7 +30,7 @@
 .\" SUCH DAMAGE.
 .\"
 .\"     @(#)accept.2	8.2 (Berkeley) 12/11/93
-.\" $FreeBSD: src/lib/libc/sys/accept.2,v 1.10.2.4 2000/08/23 00:24:37 jhb Exp $
+.\" $FreeBSD: src/lib/libc/sys/accept.2,v 1.10.2.6 2001/02/25 23:57:48 olgeni Exp $
 .\"
 .Dd December 11, 1993
 .Dt ACCEPT 2
@@ -189,6 +189,9 @@
 .It Bq Er EWOULDBLOCK
 The socket is marked non-blocking and no connections
 are present to be accepted.
+.It Bq Er ECONNABORTED
+A connection arrived, but it was closed while waiting
+on the listen queue.
 .El
 .Sh SEE ALSO
 .Xr bind 2 ,
diff -ur man2-4.2-20010112-STABLE/aio_cancel.2 man2-4.3-BETA2/aio_cancel.2
--- man2-4.2-20010112-STABLE/aio_cancel.2	Mon Jan 15 09:33:24 2001
+++ man2-4.3-BETA2/aio_cancel.2	Tue Mar 13 01:39:59 2001
@@ -22,7 +22,7 @@
 .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
 .\" SUCH DAMAGE.
 .\"
-.\" $FreeBSD: src/lib/libc/sys/aio_cancel.2,v 1.5.2.4 2000/12/08 13:49:31 ru Exp $
+.\" $FreeBSD: src/lib/libc/sys/aio_cancel.2,v 1.5.2.5 2001/03/06 16:46:05 ru Exp $
 .\"
 .Dd January 19, 2000
 .Dt AIO_CANCEL 2
@@ -46,13 +46,14 @@
 .Fa iocb
 is specified, only that specific asynchronous I/O request is cancelled.
 .Pp
-Normal asynchronous notification occurs for cancelled requests.  Requests
-complete with an error result of
+Normal asynchronous notification occurs for cancelled requests.
+Requests complete with an error result of
 .Er ECANCELED .
 .Sh RESTRICTIONS
 The
 .Fn aio_cancel
-function does not cancel asynchronous I/O requests for raw disk devices.  The
+function does not cancel asynchronous I/O requests for raw disk devices.
+The
 .Fn aio_cancel
 function will always return
 .Dv AIO_NOTCANCELED
@@ -76,7 +77,7 @@
 .Xr aio_read 2 ,
 .Xr aio_return 2 ,
 .Xr aio_suspend 2 ,
-.Xr aio_write 2 .
+.Xr aio_write 2
 .Sh ERRORS
 An error return from
 .Fn aio_cancel
@@ -97,7 +98,7 @@
 .Fn aio_cancel
 function first appeared in
 .Fx 3.0 .
-The first functional implemenation of
+The first functional implementation of
 .Fn aio_cancel
 appeared in
 .Fx 4.0 .
diff -ur man2-4.2-20010112-STABLE/aio_error.2 man2-4.3-BETA2/aio_error.2
--- man2-4.2-20010112-STABLE/aio_error.2	Mon Jan 15 09:33:24 2001
+++ man2-4.3-BETA2/aio_error.2	Tue Mar 13 01:39:59 2001
@@ -22,7 +22,7 @@
 .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
 .\" SUCH DAMAGE.
 .\"
-.\" $FreeBSD: src/lib/libc/sys/aio_error.2,v 1.6.2.3 2000/12/08 13:49:31 ru Exp $
+.\" $FreeBSD: src/lib/libc/sys/aio_error.2,v 1.6.2.4 2001/03/06 16:46:06 ru Exp $
 .\"
 .Dd June 2, 1999
 .Dt AIO_ERROR 2
@@ -78,7 +78,7 @@
 .Xr aio_write 2 ,
 .Xr fsync 2 ,
 .Xr read 2 ,
-.Xr write 2 .
+.Xr write 2
 .Sh STANDARDS
 .Fn aio_error
 is expected to conform to the
diff -ur man2-4.2-20010112-STABLE/aio_return.2 man2-4.3-BETA2/aio_return.2
--- man2-4.2-20010112-STABLE/aio_return.2	Mon Jan 15 09:33:24 2001
+++ man2-4.3-BETA2/aio_return.2	Tue Mar 13 01:39:59 2001
@@ -22,7 +22,7 @@
 .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
 .\" SUCH DAMAGE.
 .\"
-.\" $FreeBSD: src/lib/libc/sys/aio_return.2,v 1.5.2.3 2000/12/08 13:49:31 ru Exp $
+.\" $FreeBSD: src/lib/libc/sys/aio_return.2,v 1.5.2.4 2001/03/06 16:46:06 ru Exp $
 .\"
 .Dd June 2, 1999
 .Dt AIO_RETURN 2
@@ -71,7 +71,7 @@
 .Xr aio_write 2 ,
 .Xr fsync 2 ,
 .Xr read 2 ,
-.Xr write 2 .
+.Xr write 2
 .Sh ERRORS
 The
 .Fn aio_return
diff -ur man2-4.2-20010112-STABLE/aio_suspend.2 man2-4.3-BETA2/aio_suspend.2
--- man2-4.2-20010112-STABLE/aio_suspend.2	Mon Jan 15 09:33:24 2001
+++ man2-4.3-BETA2/aio_suspend.2	Tue Mar 13 01:39:59 2001
@@ -22,7 +22,7 @@
 .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
 .\" SUCH DAMAGE.
 .\"
-.\" $FreeBSD: src/lib/libc/sys/aio_suspend.2,v 1.8.2.2 2000/08/23 00:45:18 jhb Exp $
+.\" $FreeBSD: src/lib/libc/sys/aio_suspend.2,v 1.8.2.3 2001/03/06 16:46:06 ru Exp $
 .\"
 .Dd June 2, 1999
 .Dt AIO_SUSPEND 2
@@ -72,7 +72,7 @@
 .Xr aio_error 2 ,
 .Xr aio_read 2 ,
 .Xr aio_suspend 2 ,
-.Xr aio_write 2 .
+.Xr aio_write 2
 .Sh ERRORS
 The
 .Fn aio_suspend
diff -ur man2-4.2-20010112-STABLE/aio_waitcomplete.2 man2-4.3-BETA2/aio_waitcomplete.2
--- man2-4.2-20010112-STABLE/aio_waitcomplete.2	Mon Jan 15 09:33:24 2001
+++ man2-4.3-BETA2/aio_waitcomplete.2	Tue Mar 13 01:39:59 2001
@@ -22,7 +22,7 @@
 .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
 .\" SUCH DAMAGE.
 .\"
-.\" $FreeBSD: src/lib/libc/sys/aio_waitcomplete.2,v 1.1.2.4 2000/12/08 13:49:31 ru Exp $
+.\" $FreeBSD: src/lib/libc/sys/aio_waitcomplete.2,v 1.1.2.5 2001/03/06 16:46:06 ru Exp $
 .\"
 .Dd January 19, 2000
 .Dt AIO_WAITCOMPLETE 2
@@ -35,27 +35,30 @@
 .Sh SYNOPSIS
 .Fd #include <aio.h>
 .Ft int
-.Fn aio_waitcomplete "struct aiocb **iocbp, struct timeval *timeout"
+.Fn aio_waitcomplete "struct aiocb **iocbp" "struct timespec *timeout"
 .Sh DESCRIPTION
 The
 .Fn aio_waitcomplete
-function waits for completion of an asynchronous I/O request.  Upon completion,
+function waits for completion of an asynchronous I/O request.
+Upon completion,
 .Fn aio_waitcomplete
 returns the result of the function and sets
 .Fa iocbp
-to point to the structure associated with the original request. If an
-asynchronous I/O request is completed before
+to point to the structure associated with the original request.
+If an asynchronous I/O request is completed before
 .Fn aio_waitcomplete
 is called, it returns immediately with the completed request.
 .Pp
 If
 .Fa timeout
 is a non-NULL pointer, it specifies a maximum interval to wait for a
-asynchronous I/O request to complete.  If
+asynchronous I/O request to complete.
+If
 .Fa timeout
 is a NULL pointer,
 .Fn aio_waitcomplete
-waits indefinitely.  To effect a poll, the
+waits indefinitely.
+To effect a poll, the
 .Fa timeout
 argument should be non-NULL, pointing to a zero-valued timeval structure.
 .Pp
@@ -70,8 +73,8 @@
 .Sh RETURN VALUES
 If an asynchronous I/O request has completed,
 .Fa iocbp
-is set to point to the control block passed with the original request, and
-the status is returned as described in
+is set to point to the control block passed with the original request,
+and the status is returned as described in
 .Xr read 2 ,
 .Xr write 2 ,
 or
@@ -82,8 +85,8 @@
 .Dv -1 ,
 sets iocbp to
 .Dv NULL
-and
-.Dv errno
+and sets
+.Va errno
 to indicate the error condition.
 .Sh ERRORS
 The
@@ -114,7 +117,7 @@
 .Xr aio_write 2 ,
 .Xr fsync 2 ,
 .Xr read 2 ,
-.Xr write 2 .
+.Xr write 2
 .Sh STANDARDS
 The
 .Fn aio_waitcomplete
diff -ur man2-4.2-20010112-STABLE/brk.2 man2-4.3-BETA2/brk.2
--- man2-4.2-20010112-STABLE/brk.2	Mon Jan 15 09:33:24 2001
+++ man2-4.3-BETA2/brk.2	Tue Mar 13 01:39:59 2001
@@ -30,7 +30,7 @@
 .\" SUCH DAMAGE.
 .\"
 .\"     @(#)brk.2	8.4 (Berkeley) 5/1/95
-.\" $FreeBSD: src/lib/libc/sys/brk.2,v 1.13.2.3 2000/12/29 14:44:51 ru Exp $
+.\" $FreeBSD: src/lib/libc/sys/brk.2,v 1.13.2.4 2001/03/06 16:46:06 ru Exp $
 .\"
 .Dd May 1, 1995
 .Dt BRK 2
@@ -99,11 +99,11 @@
 value returned from a call to
 .Xr getrlimit 2 ,
 e.g.\&
-.Dq etext + rlp\(->rlim_max.
+.Dq Va etext No + Va rlp\->rlim_max .
 (See
 .Xr end 3
 for the definition of
-.Em etext ) .
+.Va etext ) .
 .Sh RETURN VALUES
 .Fn Brk
 returns 0 if successful;
diff -ur man2-4.2-20010112-STABLE/clock_gettime.2 man2-4.3-BETA2/clock_gettime.2
--- man2-4.2-20010112-STABLE/clock_gettime.2	Mon Jan 15 09:33:24 2001
+++ man2-4.3-BETA2/clock_gettime.2	Tue Mar 13 01:39:59 2001
@@ -1,5 +1,5 @@
 .\"	$OpenBSD: clock_gettime.2,v 1.4 1997/05/08 20:21:16 kstailey Exp $
-.\" $FreeBSD: src/lib/libc/sys/clock_gettime.2,v 1.3.2.3 2000/12/08 13:49:31 ru Exp $
+.\" $FreeBSD: src/lib/libc/sys/clock_gettime.2,v 1.3.2.4 2001/01/16 10:33:28 ru Exp $
 .\"
 .\" Copyright (c) 1980, 1991, 1993
 .\"	The Regents of the University of California.  All rights reserved.
@@ -81,7 +81,7 @@
 .Pp
 Only the super-user may set the time of day.
 If the system securelevel is greater than 1 (see
-.Xr init 8 ),
+.Xr init 8 ) ,
 the time may only be advanced.
 This limitation is imposed to prevent a malicious super-user
 from setting arbitrary time stamps on files.
diff -ur man2-4.2-20010112-STABLE/execve.2 man2-4.3-BETA2/execve.2
--- man2-4.2-20010112-STABLE/execve.2	Mon Jan 15 09:33:24 2001
+++ man2-4.3-BETA2/execve.2	Tue Mar 13 01:39:59 2001
@@ -30,7 +30,7 @@
 .\" SUCH DAMAGE.
 .\"
 .\"     @(#)execve.2	8.5 (Berkeley) 6/1/94
-.\" $FreeBSD: src/lib/libc/sys/execve.2,v 1.16.2.4 2000/12/08 13:49:31 ru Exp $
+.\" $FreeBSD: src/lib/libc/sys/execve.2,v 1.16.2.5 2001/03/06 16:46:06 ru Exp $
 .\"
 .Dd June 1, 1994
 .Dt EXECVE 2
@@ -58,11 +58,13 @@
 followed by pages of data representing the initial program (text)
 and initialized data pages.  Additional pages may be specified
 by the header to be initialized with zero data;  see
+.Xr elf 5
+and
 .Xr a.out 5 .
 .Pp
 An interpreter file begins with a line of the form:
 .Pp
-.Bd -filled -offset indent -compact
+.Bd -ragged -offset indent -compact
 .Sy \&#!
 .Em interpreter
 .Bq Em arg
@@ -103,7 +105,7 @@
 is also a pointer to a null-terminated array of
 character pointers to null-terminated strings.
 A pointer to this array is normally stored in the global variable
-.Va environ.
+.Va environ .
 These strings pass information to the
 new process that is not directly an argument to the command (see
 .Xr environ 7 ) .
@@ -280,6 +282,8 @@
 .Xr execl 3 ,
 .Xr exit 3 ,
 .Xr sysctl 3 ,
+.Xr a.out 5 ,
+.Xr elf 5 ,
 .Xr environ 7 ,
 .Xr mount 8
 .Sh HISTORY
diff -ur man2-4.2-20010112-STABLE/fcntl.2 man2-4.3-BETA2/fcntl.2
--- man2-4.2-20010112-STABLE/fcntl.2	Mon Jan 15 09:33:24 2001
+++ man2-4.3-BETA2/fcntl.2	Tue Mar 13 01:39:59 2001
@@ -30,7 +30,7 @@
 .\" SUCH DAMAGE.
 .\"
 .\"     @(#)fcntl.2	8.2 (Berkeley) 1/12/94
-.\" $FreeBSD: src/lib/libc/sys/fcntl.2,v 1.16.2.3 2000/12/08 13:49:31 ru Exp $
+.\" $FreeBSD: src/lib/libc/sys/fcntl.2,v 1.16.2.4 2001/03/06 16:46:06 ru Exp $
 .\"
 .Dd January 12, 1994
 .Dt FCNTL 2
@@ -193,11 +193,11 @@
 (see above).
 .Dv F_SETLK
 is used to establish shared (or read) locks
-.Dv (F_RDLCK)
+.Pq Dv F_RDLCK
 or exclusive (or write) locks,
-.Dv (F_WRLCK) ,
+.Pq Dv F_WRLCK ,
 as well as remove either type of lock
-.Dv (F_UNLCK) .
+.Pq Dv F_UNLCK .
 If a shared or exclusive lock cannot be set,
 .Fn fcntl
 returns immediately with
@@ -392,11 +392,11 @@
 is
 .Dv F_SETLK ,
 the type of lock
-.Fa (l_type)
+.Pq Fa l_type
 is a shared lock
-.Dv (F_RDLCK)
+.Pq Dv F_RDLCK
 or exclusive lock
-.Dv (F_WRLCK) ,
+.Pq Dv F_WRLCK ,
 and the segment of a file to be locked is already
 exclusive-locked by another process;
 or the type is an exclusive lock and some portion of the
@@ -413,9 +413,9 @@
 or
 .Dv F_SETLKW ,
 the type of lock
-.Fa (l_type)
+.Pq Fa l_type
 is a shared lock
-.Dv (F_RDLCK) ,
+.Pq Dv F_RDLCK ,
 and
 .Fa fildes
 is not a valid file descriptor open for reading.
@@ -427,9 +427,9 @@
 or
 .Dv F_SETLKW ,
 the type of lock
-.Fa (l_type)
+.Pq Fa l_type
 is an exclusive lock
-.Dv (F_WRLCK) ,
+.Pq Dv F_WRLCK ,
 and
 .Fa fildes
 is not a valid file descriptor open for writing.
diff -ur man2-4.2-20010112-STABLE/fhopen.2 man2-4.3-BETA2/fhopen.2
--- man2-4.2-20010112-STABLE/fhopen.2	Mon Jan 15 09:33:24 2001
+++ man2-4.3-BETA2/fhopen.2	Tue Mar 13 01:39:59 2001
@@ -1,5 +1,5 @@
 .\"	$NetBSD: fhopen.2,v 1.1 1999/06/30 01:32:15 wrstuden Exp $
-.\"	$FreeBSD: src/lib/libc/sys/fhopen.2,v 1.4.2.1 2000/04/22 17:06:52 phantom Exp $
+.\"	$FreeBSD: src/lib/libc/sys/fhopen.2,v 1.4.2.2 2001/03/06 16:46:06 ru Exp $
 .\"
 .\" Copyright (c) 1999 National Aeronautics & Space Administration
 .\" All rights reserved.
@@ -54,7 +54,7 @@
 .Fn fhstatfs "const fhandle_t *fhp" "struct statfs *buf"
 .Sh DESCRIPTION
 These functions provide a means to access a file given the file handle
-.Fa fhp.
+.Fa fhp .
 As this method bypasses directory access restrictions, these calls are
 restricted to the superuser.
 .Pp
diff -ur man2-4.2-20010112-STABLE/getdirentries.2 man2-4.3-BETA2/getdirentries.2
--- man2-4.2-20010112-STABLE/getdirentries.2	Mon Jan 15 09:33:24 2001
+++ man2-4.3-BETA2/getdirentries.2	Tue Mar 13 01:39:59 2001
@@ -30,7 +30,7 @@
 .\" SUCH DAMAGE.
 .\"
 .\"	@(#)getdirentries.2	8.2 (Berkeley) 5/3/95
-.\" $FreeBSD: src/lib/libc/sys/getdirentries.2,v 1.12.2.2 2000/08/23 00:45:18 jhb Exp $
+.\" $FreeBSD: src/lib/libc/sys/getdirentries.2,v 1.12.2.3 2001/03/06 16:46:06 ru Exp $
 .\"
 .Dd May 3, 1995
 .Dt GETDIRENTRIES 2
@@ -137,7 +137,8 @@
 The current position pointer should only be set to a value returned by
 .Xr lseek 2 ,
 a value returned in the location pointed to by
-.Fa basep ( Ns Fn getdirentries
+.Fa basep
+.Pf ( Fn getdirentries
 only)
 or zero.
 .Sh IMPLEMENTATION NOTES
diff -ur man2-4.2-20010112-STABLE/getlogin.2 man2-4.3-BETA2/getlogin.2
--- man2-4.2-20010112-STABLE/getlogin.2	Mon Jan 15 09:33:24 2001
+++ man2-4.3-BETA2/getlogin.2	Tue Mar 13 01:39:59 2001
@@ -30,7 +30,7 @@
 .\" SUCH DAMAGE.
 .\"
 .\"	@(#)getlogin.2	8.1 (Berkeley) 6/9/93
-.\" $FreeBSD: src/lib/libc/sys/getlogin.2,v 1.14.2.1 2000/04/22 17:06:54 phantom Exp $
+.\" $FreeBSD: src/lib/libc/sys/getlogin.2,v 1.14.2.3 2001/03/06 16:46:06 ru Exp $
 .\"
 .Dd June 9, 1993
 .Dt GETLOGIN 2
@@ -47,7 +47,7 @@
 .Ft char *
 .Fn getlogin void
 .Fd #include <sys/param.h>
-.Ft char *
+.Ft int
 .Fn getlogin_r "char *name" "int len"
 .Ft int
 .Fn setlogin "const char *name"
@@ -86,8 +86,8 @@
 of the named user
 (for example, at login time, or when a remote shell is invoked).
 .Pp
-.Em NOTE:
-There is only one `login name' per `session .
+.Em NOTE :
+There is only one login name per session.
 .Pp
 It is
 .Em CRITICALLY
@@ -107,9 +107,9 @@
 forking into the background.
 .Pp
 In particular, doing a
-.Fn ioctl ttyfd TIOCNOTTY ...
+.Fn ioctl ttyfd TIOCNOTTY ...\&
 or
-.Fn setpgrp ...
+.Fn setpgrp ...\&
 is
 .Em NOT
 sufficient.
@@ -132,12 +132,12 @@
 .Sh RETURN VALUES
 If a call to
 .Fn getlogin
-succeeds, it returns a pointer to a null-terminated string in a static buffer.
-.Fn getlogin_r
-returns a pointer to the buffer passed in by the caller on success.
-Both return
+succeeds, it returns a pointer to a null-terminated string in a static buffer,
+or
 .Dv NULL
 if the name has not been set.
+.Fn getlogin_r
+returns zero if successful, or the error number upon failure.
 .Pp
 If a call to
 .Fn setlogin
@@ -166,6 +166,8 @@
 characters, currently 17 including null.
 .It Bq Er EPERM
 The caller tried to set the login name and was not the super-user.
+.It Bq Er ERANGE
+The size of the buffer is smaller than the result to be returned.
 .El
 .Sh SEE ALSO
 .Xr setsid 2 ,
@@ -186,3 +188,15 @@
 .Fn getlogin
 function first appeared in
 .Bx 4.4 .
+The return value of
+.Fn getlogin_r
+was changed from earlier versions of
+.Fx
+to be conformant with
+.St -p1003.1-96 .
+.Sh STANDARDS
+.Fn getlogin
+and
+.Fn getlogin_r
+conform to
+.St -p1003.1-96 .
diff -ur man2-4.2-20010112-STABLE/getpid.2 man2-4.3-BETA2/getpid.2
--- man2-4.2-20010112-STABLE/getpid.2	Mon Jan 15 09:33:24 2001
+++ man2-4.3-BETA2/getpid.2	Tue Mar 13 01:39:59 2001
@@ -30,7 +30,7 @@
 .\" SUCH DAMAGE.
 .\"
 .\"     @(#)getpid.2	8.1 (Berkeley) 6/4/93
-.\" $FreeBSD: src/lib/libc/sys/getpid.2,v 1.8.2.1 2000/04/22 17:06:54 phantom Exp $
+.\" $FreeBSD: src/lib/libc/sys/getpid.2,v 1.8.2.2 2001/02/18 02:36:34 kris Exp $
 .\"
 .Dd June 4, 1993
 .Dt GETPID 2
@@ -53,8 +53,12 @@
 returns
 the process ID of
 the calling process.
-The ID is guaranteed to be unique and is
-useful for constructing temporary file names.
+Though the ID is guaranteed to be unique, it should
+.Em NOT
+be used for constructing temporary file names, for
+security reasons; see
+.Xr mkstemp 3
+instead.
 .Pp
 .Fn Getppid
 returns the process ID of the parent
diff -ur man2-4.2-20010112-STABLE/getsid.2 man2-4.3-BETA2/getsid.2
--- man2-4.2-20010112-STABLE/getsid.2	Mon Jan 15 09:33:24 2001
+++ man2-4.3-BETA2/getsid.2	Tue Mar 13 01:39:59 2001
@@ -21,7 +21,7 @@
 .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
 .\" SUCH DAMAGE.
 .\"
-.\" $FreeBSD: src/lib/libc/sys/getsid.2,v 1.3.2.1 2000/04/22 17:06:55 phantom Exp $
+.\" $FreeBSD: src/lib/libc/sys/getsid.2,v 1.3.2.2 2001/03/09 15:14:15 ru Exp $
 .\"
 .Dd August 19, 1997
 .Dt GETSID 2
@@ -70,7 +70,7 @@
 .Xr termios 4
 .Sh HISTORY
 The
-.Fn setsid
+.Fn getsid
 function call appeared in
 .Fx 3.0 .
 The
diff -ur man2-4.2-20010112-STABLE/getsockopt.2 man2-4.3-BETA2/getsockopt.2
--- man2-4.2-20010112-STABLE/getsockopt.2	Mon Jan 15 09:33:24 2001
+++ man2-4.3-BETA2/getsockopt.2	Tue Mar 13 01:39:59 2001
@@ -30,7 +30,7 @@
 .\" SUCH DAMAGE.
 .\"
 .\"     @(#)getsockopt.2	8.4 (Berkeley) 5/2/95
-.\" $FreeBSD: src/lib/libc/sys/getsockopt.2,v 1.12.2.4 2000/08/23 00:45:19 jhb Exp $
+.\" $FreeBSD: src/lib/libc/sys/getsockopt.2,v 1.12.2.5 2001/03/06 16:46:06 ru Exp $
 .\"
 .Dd May 2, 1995
 .Dt GETSOCKOPT 2
@@ -191,7 +191,8 @@
 .Xr close 2
 is performed.
 If the socket promises reliable delivery of data and
-.Dv SO_LINGER is set,
+.Dv SO_LINGER
+is set,
 the system will block the process on the 
 .Xr close 2
 attempt until it is able to transmit the data or until it decides it
diff -ur man2-4.2-20010112-STABLE/gettimeofday.2 man2-4.3-BETA2/gettimeofday.2
--- man2-4.2-20010112-STABLE/gettimeofday.2	Mon Jan 15 09:33:24 2001
+++ man2-4.3-BETA2/gettimeofday.2	Tue Mar 13 01:39:59 2001
@@ -30,7 +30,7 @@
 .\" SUCH DAMAGE.
 .\"
 .\"     @(#)gettimeofday.2	8.2 (Berkeley) 5/26/95
-.\" $FreeBSD: src/lib/libc/sys/gettimeofday.2,v 1.9.2.3 2000/12/08 13:49:31 ru Exp $
+.\" $FreeBSD: src/lib/libc/sys/gettimeofday.2,v 1.9.2.4 2001/01/16 10:33:28 ru Exp $
 .\"
 .Dd May 26, 1995
 .Dt GETTIMEOFDAY 2
@@ -100,7 +100,7 @@
 .Pp
 Only the super-user may set the time of day or time zone.
 If the system is running in secure mode (see
-.Xr init 8 ),
+.Xr init 8 ) ,
 the time may only be advanced.
 This limitation is imposed to prevent a malicious super-user
 from setting arbitrary time stamps on files.
diff -ur man2-4.2-20010112-STABLE/kill.2 man2-4.3-BETA2/kill.2
--- man2-4.2-20010112-STABLE/kill.2	Mon Jan 15 09:33:24 2001
+++ man2-4.3-BETA2/kill.2	Tue Mar 13 01:39:59 2001
@@ -30,7 +30,7 @@
 .\" SUCH DAMAGE.
 .\"
 .\"     @(#)kill.2	8.3 (Berkeley) 4/19/94
-.\" $FreeBSD: src/lib/libc/sys/kill.2,v 1.10.2.2 2000/05/06 13:34:14 phantom Exp $
+.\" $FreeBSD: src/lib/libc/sys/kill.2,v 1.10.2.3 2001/03/06 16:46:06 ru Exp $
 .\"
 .Dd April 19, 1994
 .Dt KILL 2
@@ -75,7 +75,7 @@
 .It \&If Fa pid No \&is greater than zero :
 .Fa Sig
 is sent to the process whose ID is equal to
-.Fa pid.
+.Fa pid .
 .It \&If Fa pid No \&is zero :
 .Fa Sig
 is sent to all processes whose group ID is equal
diff -ur man2-4.2-20010112-STABLE/kldstat.2 man2-4.3-BETA2/kldstat.2
--- man2-4.2-20010112-STABLE/kldstat.2	Mon Jan 15 09:33:24 2001
+++ man2-4.3-BETA2/kldstat.2	Tue Mar 13 01:39:59 2001
@@ -23,7 +23,7 @@
 .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
 .\" SUCH DAMAGE.
 .\"
-.\" $FreeBSD: src/lib/libc/sys/kldstat.2,v 1.5.2.4 2000/12/29 14:44:52 ru Exp $	
+.\" $FreeBSD: src/lib/libc/sys/kldstat.2,v 1.5.2.5 2001/03/06 16:46:06 ru Exp $	
 .\"
 .Dd March 3, 1999
 .Dt KLDSTAT 2
@@ -79,8 +79,12 @@
 The size of the file.
 .El
 .Sh RETURN VALUES
+The function
 .Fn kldstat
-seems to always return 0.
+returns 0 on success.
+It returns -1 on failure, and sets
+.Va errno
+to indicate the error.
 .Sh ERRORS
 The information for the file referred to by
 .Fa fileid
diff -ur man2-4.2-20010112-STABLE/kqueue.2 man2-4.3-BETA2/kqueue.2
--- man2-4.2-20010112-STABLE/kqueue.2	Mon Jan 15 09:33:24 2001
+++ man2-4.3-BETA2/kqueue.2	Tue Mar 13 01:39:59 2001
@@ -22,7 +22,7 @@
 .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
 .\" SUCH DAMAGE.
 .\"
-.\" $FreeBSD: src/lib/libc/sys/kqueue.2,v 1.1.2.8 2000/12/29 14:44:52 ru Exp $
+.\" $FreeBSD: src/lib/libc/sys/kqueue.2,v 1.1.2.9 2001/02/26 04:23:54 jlemon Exp $
 .\"
 .Dd April 14, 2000
 .Dt KQUEUE 2
@@ -36,10 +36,12 @@
 .Sh SYNOPSIS
 .Fd #include <sys/types.h>
 .Fd #include <sys/event.h>
+.Fd #include <sys/time.h>
 .Ft int
 .Fn kqueue "void"
 .Ft int
 .Fn kevent "int kq" "const struct kevent *changelist" "int nchanges" "struct kevent *eventlist" "int nevents" "const struct timespec *timeout"
+.Fn EV_SET "&kev" ident filter flags fflags data udata
 .Sh DESCRIPTION
 .Fn kqueue
 provides a generic method of notifying the user when an event
@@ -73,9 +75,9 @@
 .Xr fork 2 .
 However, if
 .Xr rfork 2
-is called with the
+is called without the
 .Dv RFFDG
-flag, the descriptor table is shared,
+flag, then the descriptor table is shared,
 which will allow sharing of the kqueue between two processes.
 .Pp
 .Fn kevent
@@ -108,7 +110,14 @@
 .Fa timeout
 argument should be non-NULL, pointing to a zero-valued
 .Va timespec
-structure.
+structure.  The same array may be used for the
+.Fa changelist
+and 
+.Fa eventlist .
+.Pp
+.Fn EV_SET
+is a macro which is provided for ease of initializing a
+kevent structure.
 .Pp
 The
 .Va kevent
@@ -195,6 +204,7 @@
 there is data available to read.
 The behavior of the filter is slightly different depending
 on the descriptor type.
+.Pp
 .Bl -tag -width 2n
 .It Sockets
 Sockets which have previously been passed to
@@ -204,13 +214,25 @@
 contains the size of the listen backlog.
 .Pp
 Other socket descriptors return when there is data to be read,
-subject to the SO_RCVLOWAT value of the socket buffer.
+subject to the
+.Dv SO_RCVLOWAT
+value of the socket buffer.
+This may be overridden with a per-filter low water mark at the
+time the filter is added by setting the 
+NOTE_LOWAT 
+flag in 
+.Va fflags ,
+and specifying the new low water mark in
+.Va data .
+On return,
 .Va data
 contains the number of bytes in the socket buffer.
 .Pp
 If the read direction of the socket has shutdown, then the filter
 also sets EV_EOF in
-.Va flags .
+.Va flags ,
+and returns the socket error (if any) in 
+.Va fflags .
 It is possible for EOF to be returned (indicating the connection is gone)
 while there is still data pending in the socket buffer.
 .It Vnodes
@@ -238,21 +260,33 @@
 The filter will set EV_EOF when the reader disconnects, and for
 the fifo case, this may be cleared by use of EV_CLEAR.
 Note that this filter is not supported for vnodes.
+.Pp
+For sockets, the low water mark and socket error handling is 
+identical to the EVFILT_READ case.
 .It EVFILT_AIO
-A kevent structure is initialized, with
-.Va ident
-containing the descriptor of the kqueue that the event should be
-attached to.  The address of the kevent structure is then placed in the
-.Va aio_lio_opcode
-field of the AIO request, and the aio_* function is then called.
-The event will be registered with the specified kqueue, and the
+The sigevent portion of the AIO request is filled in, with
+.Va sigev_notify_kqueue 
+containing the descriptor of the kqueue that the event should
+be attached to,
+.Va sigev_value
+containing the udata value, and 
+.Va sigev_notify
+set to SIGEV_EVENT.
+When the aio_* function is called, the event will be registered
+with the specified kqueue, and the
 .Va ident
 argument set to the
 .Fa struct aiocb
 returned by the aio_* function.
 The filter returns under the same conditions as aio_error.
 .Pp
-NOTE: this interface is unstable and subject to change.
+Alternatively, a kevent structure may be initialized, with 
+.Va ident
+containing the descriptor of the the kqueue, and the
+address of the kevent structure placed in the
+.Va aio_lio_opcode
+field of the AIO request.  However, this approach will not work on
+architectures with 64-bit pointers, and should be considered depreciated.
 .It EVFILT_VNODE
 Takes a file descriptor as the identifier and the events to watch for in 
 .Va fflags ,
@@ -272,6 +306,10 @@
 The link count on the file changed.
 .It NOTE_RENAME
 The file referenced by the descriptor was renamed.
+.It NOTE_REVOKE
+Access to the file was revoked via 
+.Xr revoke 2
+or the underlying fileystem was unmounted.
 .El
 .Pp
 On return,
diff -ur man2-4.2-20010112-STABLE/listen.2 man2-4.3-BETA2/listen.2
--- man2-4.2-20010112-STABLE/listen.2	Mon Jan 15 09:33:24 2001
+++ man2-4.3-BETA2/listen.2	Tue Mar 13 01:39:59 2001
@@ -30,7 +30,7 @@
 .\" SUCH DAMAGE.
 .\"
 .\"	From: @(#)listen.2	8.2 (Berkeley) 12/11/93
-.\" $FreeBSD: src/lib/libc/sys/listen.2,v 1.12.2.3 2000/08/23 00:45:19 jhb Exp $
+.\" $FreeBSD: src/lib/libc/sys/listen.2,v 1.12.2.4 2001/03/06 16:46:06 ru Exp $
 .\"
 .Dd November 3, 1995
 .Dt LISTEN 2
@@ -60,7 +60,7 @@
 call applies only to sockets of type
 .Dv SOCK_STREAM
 or
-.Dv SOCK_SEQPACKET.
+.Dv SOCK_SEQPACKET .
 .Pp
 The
 .Fa backlog
@@ -76,15 +76,15 @@
 The
 .Xr sysctl 3
 MIB variable
-.Dq Li kern.ipc.somaxconn
+.Dq Va kern.ipc.somaxconn
 specifies a hard limit on
 .Fa backlog ;
-if a  value greater than
-.Li kern.ipc.somaxconn
+if a value greater than
+.Va kern.ipc.somaxconn
 or less than zero is specified,
 .Fa backlog
 is silently forced to
-.Li kern.ipc.somaxconn .
+.Va kern.ipc.somaxconn .
 .Sh IMPLEMENTATION NOTES
 .Pp
 In the non-threaded library
diff -ur man2-4.2-20010112-STABLE/lseek.2 man2-4.3-BETA2/lseek.2
--- man2-4.2-20010112-STABLE/lseek.2	Mon Jan 15 09:33:24 2001
+++ man2-4.3-BETA2/lseek.2	Tue Mar 13 01:39:59 2001
@@ -30,7 +30,7 @@
 .\" SUCH DAMAGE.
 .\"
 .\"     @(#)lseek.2	8.3 (Berkeley) 4/19/94
-.\" $FreeBSD: src/lib/libc/sys/lseek.2,v 1.10.2.2 2000/05/06 13:34:14 phantom Exp $
+.\" $FreeBSD: src/lib/libc/sys/lseek.2,v 1.10.2.3 2001/03/06 16:46:06 ru Exp $
 .\"
 .Dd April 19, 1994
 .Dt LSEEK 2
@@ -53,7 +53,7 @@
 argument
 .Fa offset
 according to the directive
-.Fa whence.
+.Fa whence .
 The argument
 .Fa fildes
 must be an open
diff -ur man2-4.2-20010112-STABLE/madvise.2 man2-4.3-BETA2/madvise.2
--- man2-4.2-20010112-STABLE/madvise.2	Mon Jan 15 09:33:24 2001
+++ man2-4.3-BETA2/madvise.2	Tue Mar 13 01:39:59 2001
@@ -30,7 +30,7 @@
 .\" SUCH DAMAGE.
 .\"
 .\"	@(#)madvise.2	8.1 (Berkeley) 6/9/93
-.\" $FreeBSD: src/lib/libc/sys/madvise.2,v 1.17.2.2 2000/12/12 09:55:46 ru Exp $
+.\" $FreeBSD: src/lib/libc/sys/madvise.2,v 1.17.2.3 2001/03/06 16:46:06 ru Exp $
 .\"
 .Dd July 19, 1996
 .Dt MADVISE 2
@@ -154,7 +154,7 @@
 .Xr mincore 2 ,
 .Xr mprotect 2 ,
 .Xr msync 2 ,
-.Xr munmap 2 .
+.Xr munmap 2
 .Sh HISTORY
 The
 .Fn madvise
diff -ur man2-4.2-20010112-STABLE/mmap.2 man2-4.3-BETA2/mmap.2
--- man2-4.2-20010112-STABLE/mmap.2	Mon Jan 15 09:33:24 2001
+++ man2-4.3-BETA2/mmap.2	Tue Mar 13 01:39:59 2001
@@ -30,21 +30,21 @@
 .\" SUCH DAMAGE.
 .\"
 .\"	@(#)mmap.2	8.4 (Berkeley) 5/11/95
-.\" $FreeBSD: src/lib/libc/sys/mmap.2,v 1.22.2.5 2000/12/29 14:44:52 ru Exp $
+.\" $FreeBSD: src/lib/libc/sys/mmap.2,v 1.22.2.6 2001/03/06 16:46:06 ru Exp $
 .\"
 .Dd May 11, 1995
 .Dt MMAP 2
 .Os BSD 4
 .Sh NAME
 .Nm mmap
-.Nd map files or devices into memory
+.Nd allocate memory, or map files or devices into memory
 .Sh LIBRARY
 .Lb libc
 .Sh SYNOPSIS
 .Fd #include <sys/types.h>
 .Fd #include <sys/mman.h>
 .Ft void *
-.Fn mmap "void * addr" "size_t len" "int prot" "int flags" "int fd" "off_t offset"
+.Fn mmap "void *addr" "size_t len" "int prot" "int flags" "int fd" "off_t offset"
 .Sh DESCRIPTION
 The
 .Fn mmap
@@ -81,13 +81,15 @@
 .Em or Ns 'ing
 the following values:
 .Pp
-.Bl -tag -width MAP_FIXEDX
-.It Dv PROT_EXEC
-Pages may be executed.
+.Bl -tag -width PROT_WRITE -compact
+.It Dv PROT_NONE
+Pages may not be accessed.
 .It Dv PROT_READ
 Pages may be read.
 .It Dv PROT_WRITE
 Pages may be written.
+.It Dv PROT_EXEC
+Pages may be executed.
 .El
 .Pp
 The
@@ -100,8 +102,7 @@
 argument by
 .Em or Ns 'ing
 the following values:
-.Pp
-.Bl -tag -width MAP_FIXEDX
+.Bl -tag -width MAP_HASSEMAPHORE
 .It Dv MAP_ANON
 Map anonymous memory not associated with any specific file.
 The file descriptor used for creating
@@ -118,7 +119,9 @@
 If the specified address cannot be used,
 .Fn mmap
 will fail.
-If MAP_FIXED is specified,
+If
+.Dv MAP_FIXED
+is specified,
 .Fa addr
 must be a multiple of the pagesize.
 Use of this option is discouraged.
@@ -129,32 +132,8 @@
 Permit regions to be inherited across
 .Xr execve 2
 system calls.
-.It Dv MAP_PRIVATE
-Modifications are private.
-.It Dv MAP_SHARED
-Modifications are shared.
-.It Dv MAP_STACK
-This option is only available if your system has been compiled with
-VM_STACK defined when compiling the kernel.
-This is the default for
-i386 only.
-Consider adding -DVM_STACK to COPTFLAGS in your /etc/make.conf
-to enable this option for other architechures.
-MAP_STACK implies
-MAP_ANON, and
-.Fa offset 
-of 0.   
-.Fa fd 
-must be -1 and 
-.Fa prot 
-must include at least PROT_READ and PROT_WRITE.  This option creates
-a memory region that grows to at most 
-.Fa len 
-bytes in size, starting from the stack top and growing down.  The
-stack top is the starting address returned by the call, plus 
-.Fa len 
-bytes.  The bottom of the stack at maximum growth is the starting
-address returned by the call.
+.It Dv MAP_NOCORE
+Region is not included in a core file.
 .It Dv MAP_NOSYNC
 Causes data dirtied via this VM map to be flushed to physical media
 only when necessary (usually by the pager) rather then gratuitously.
@@ -165,10 +144,43 @@
 (every 30-60 seconds usually) which can create performance problems if you
 do not need that to occur (such as when you are using shared file-backed
 mmap regions for IPC purposes).  Note that VM/filesystem coherency is
-maintained whether you use MAP_NOSYNC or not.  This option is not portable
-across UNIX platforms (yet), though some may implement the same behavior
+maintained whether you use
+.Dv MAP_NOSYNC
+or not.  This option is not portable
+across
+.Ux
+platforms (yet), though some may implement the same behavior
 by default.
 .Pp
+.Em WARNING !
+Extending a file with
+.Xr ftruncate 2 ,
+thus creating a big hole, and then filling the hole by modifying a shared
+.Fn mmap
+can lead to severe file fragmentation.
+In order to avoid such fragmentation you should always pre-allocate the
+file's backing store by
+.Fn write Ns ing
+zero's into the newly extended area prior to modifying the area via your
+.Fn mmap .
+The fragmentation problem is especially sensitive to
+.Dv MAP_NOSYNC
+pages, because pages may be flushed to disk in a totally random order.
+.Pp
+The same applies when using
+.Dv MAP_NOSYNC
+to implement a file-based shared memory store.
+It is recommended that you create the backing store by
+.Fn write Ns ing
+zero's to the backing file rather then
+.Fn ftruncate Ns ing
+it.
+You can test file fragmentation by observing the KB/t (kilobytes per
+transfer) results from an
+.Dq Li iostat 1
+while reading a large file sequentially, e.g. using
+.Dq Li dd if=filename of=/dev/null bs=32k .
+.Pp
 The
 .Xr fsync 2
 function will flush all dirty data and metadata associated with a file,
@@ -184,8 +196,44 @@
 implements a coherent filesystem buffer cache.  However, it may be 
 used to associate dirty VM pages with filesystem buffers and thus cause
 them to be flushed to physical media sooner rather then later.
-.It Dv MAP_NOCORE
-Region is not included in a core file.
+.It Dv MAP_PRIVATE
+Modifications are private.
+.It Dv MAP_SHARED
+Modifications are shared.
+.It Dv MAP_STACK
+This option is only available if your system has been compiled with
+.Dv VM_STACK
+defined when compiling the kernel.
+This is the default for
+i386 only.
+Consider adding
+.Li -DVM_STACK
+to
+.Va COPTFLAGS
+in your
+.Pa /etc/make.conf
+to enable this option for other architechures.
+.Dv MAP_STACK
+implies
+.Dv MAP_ANON ,
+and
+.Fa offset 
+of 0.   
+.Fa fd 
+must be -1 and 
+.Fa prot 
+must include at least
+.Dv PROT_READ
+and
+.Dv PROT_WRITE .
+This option creates
+a memory region that grows to at most 
+.Fa len 
+bytes in size, starting from the stack top and growing down.  The
+stack top is the starting address returned by the call, plus 
+.Fa len 
+bytes.  The bottom of the stack at maximum growth is the starting
+address returned by the call.
 .El
 .Pp
 The 
@@ -205,7 +253,9 @@
 Upon successful completion,
 .Fn mmap
 returns a pointer to the mapped region.
-Otherwise, a value of MAP_FAILED is returned and
+Otherwise, a value of
+.Dv MAP_FAILED
+is returned and
 .Va errno
 is set to indicate the error.
 .Sh ERRORS
@@ -255,17 +305,22 @@
 did not reference a regular or character special file.
 .It Bq Er EINVAL
 .Fa Offset
-was not page-aligned.  (See BUGS below.)
+was not page-aligned.
+(See
+.Sx BUGS
+below.)
 .It Bq Er ENOMEM
 .Dv MAP_FIXED
 was specified and the
 .Fa addr
 parameter wasn't available, or the system has reached the per-process mmap
-limit specified in the vm.max_proc_mmap sysctl.
+limit specified in the
+.Va vm.max_proc_mmap
+sysctl.
 .Dv MAP_ANON
 was specified and insufficient memory was available.
 .El
-.Sh "SEE ALSO"
+.Sh SEE ALSO
 .Xr madvise 2 ,
 .Xr mincore 2 ,
 .Xr mlock 2 ,
diff -ur man2-4.2-20010112-STABLE/poll.2 man2-4.3-BETA2/poll.2
--- man2-4.2-20010112-STABLE/poll.2	Mon Jan 15 09:33:24 2001
+++ man2-4.3-BETA2/poll.2	Tue Mar 13 01:39:59 2001
@@ -1,5 +1,5 @@
 .\"	$NetBSD: poll.2,v 1.3 1996/09/07 21:53:08 mycroft Exp $
-.\" $FreeBSD: src/lib/libc/sys/poll.2,v 1.4.2.1 2000/04/22 17:07:01 phantom Exp $
+.\" $FreeBSD: src/lib/libc/sys/poll.2,v 1.4.2.2 2001/01/16 10:33:28 ru Exp $
 .\"
 .\" Copyright (c) 1996 Charles M. Hannum.  All rights reserved.
 .\"
@@ -147,7 +147,7 @@
 .Fn poll
 to return with an error.  In cases where this would have happened in
 the historical implementation (e.g. trying to poll a
-.Xr revoke 2 ed
+.Xr revoke 2 Ns ed
 descriptor), this implementation instead copies the
 .Fa events
 bitmask to the
diff -ur man2-4.2-20010112-STABLE/ptrace.2 man2-4.3-BETA2/ptrace.2
--- man2-4.2-20010112-STABLE/ptrace.2	Mon Jan 15 09:33:24 2001
+++ man2-4.3-BETA2/ptrace.2	Tue Mar 13 01:39:59 2001
@@ -1,4 +1,4 @@
-.\" $FreeBSD: src/lib/libc/sys/ptrace.2,v 1.12.2.6 2000/12/29 14:44:53 ru Exp $
+.\" $FreeBSD: src/lib/libc/sys/ptrace.2,v 1.12.2.7 2001/03/06 16:46:06 ru Exp $
 .\"	$NetBSD: ptrace.2,v 1.2 1995/02/27 12:35:37 cgd Exp $
 .\"
 .\" This file is in the public domain.
@@ -54,9 +54,7 @@
 arguments are ignored.  (If the parent process does not expect to trace
 the child, it will probably be rather confused by the results; once the
 traced process stops, it cannot be made to continue except via
-.Eo \&
-.Fn ptrace
-.Ec \&.)
+.Fn ptrace . )
 When a process has used this request and calls
 .Xr execve 2
 or any of the routines built on it
@@ -69,7 +67,7 @@
 be ignored.
 .It Dv PT_READ_I , Dv PT_READ_D
 These requests read a single
-.Li int
+.Vt int
 of data from the traced process' address space.  Traditionally,
 .Fn ptrace
 has allowed for machines with distinct address spaces for instruction
@@ -99,12 +97,12 @@
 argument supplies the value to be written.
 .It Dv PT_READ_U
 This request reads an
-.Li int
+.Vt int
 from the traced process' user structure.  The
 .Fa addr
 argument specifies the location of the int relative to the base of the
 user structure; it will usually be an integer value cast to
-.Li caddr_t
+.Vt caddr_t
 either explicitly or via the presence of a prototype for
 .Eo \&
 .Fn ptrace
@@ -115,14 +113,14 @@
 .Dv PT_READ_D ,
 .Fa addr
 must be aligned on an
-.Li int
+.Vt int
 boundary.  The value read is returned as the return value from
 .Eo \&
 .Fn ptrace
 .Ec .
 .It Dv PT_WRITE_U
 This request writes an
-.Li int
+.Vt int
 into the traced process' user structure.
 .Fa addr
 specifies the offset, just as for
@@ -138,7 +136,9 @@
 .Fa addr
 is an address specifying the place where execution is to be resumed (a
 new value for the program counter), or
-.Li (caddr_t)1
+.Po
+.Vt caddr_t
+.Pc Ns 1
 to indicate that execution is to pick up where it left off.
 .Fa data
 provides a signal number to be delivered to the traced process as it
@@ -180,7 +180,9 @@
 .Bl -tag -width 12n
 .It Dv PT_GETREGS
 This request reads the traced process' machine registers into the
-.Dq Li "struct reg"
+.Do
+.Vt "struct reg"
+.Dc
 (defined in
 .Aq Pa machine/reg.h )
 pointed to by
@@ -189,7 +191,9 @@
 This request is the converse of
 .Dv PT_GETREGS ;
 it loads the traced process' machine registers from the
-.Dq Li "struct reg"
+.Do
+.Vt "struct reg"
+.Dc
 (defined in
 .Aq Pa machine/reg.h )
 pointed to by
@@ -197,7 +201,9 @@
 .It Dv PT_GETFPREGS
 This request reads the traced process' floating-point registers into
 the
-.Dq Li "struct fpreg"
+.Do
+.Vt "struct fpreg"
+.Dc
 (defined in
 .Aq Pa machine/reg.h )
 pointed to by
@@ -206,7 +212,9 @@
 This request is the converse of
 .Dv PT_GETFPREGS ;
 it loads the traced process' floating-point registers from the
-.Dq Li "struct fpreg"
+.Do
+.Vt "struct fpreg"
+.Dc
 (defined in
 .Aq Pa machine/reg.h )
 pointed to by
@@ -214,7 +222,9 @@
 .It Dv PT_GETDBREGS
 This request reads the traced process' debug registers into
 the
-.Dq Li "struct dbreg"
+.Do
+.Vt "struct dbreg"
+.Dc
 (defined in
 .Aq Pa machine/reg.h )
 pointed to by
@@ -223,7 +233,9 @@
 This request is the converse of
 .Dv PT_GETDBREGS ;
 it loads the traced process' debug registers from the
-.Dq Li "struct dbreg"
+.Do
+.Vt "struct dbreg"
+.Dc
 (defined in
 .Aq Pa machine/reg.h )
 pointed to by
@@ -265,7 +277,7 @@
 or
 .Dv PT_WRITE_U
 was not
-.Li int Ns \&-aligned.
+.Vt int Ns \-aligned .
 .It
 The signal number (in
 .Fa data )
diff -ur man2-4.2-20010112-STABLE/recv.2 man2-4.3-BETA2/recv.2
--- man2-4.2-20010112-STABLE/recv.2	Mon Jan 15 09:33:24 2001
+++ man2-4.3-BETA2/recv.2	Tue Mar 13 01:39:59 2001
@@ -30,7 +30,7 @@
 .\" SUCH DAMAGE.
 .\"
 .\"     @(#)recv.2	8.3 (Berkeley) 2/21/94
-.\" $FreeBSD: src/lib/libc/sys/recv.2,v 1.8.2.2 2000/05/06 13:34:14 phantom Exp $
+.\" $FreeBSD: src/lib/libc/sys/recv.2,v 1.8.2.4 2001/03/06 16:46:06 ru Exp $
 .\"
 .Dd February 21, 1994
 .Dt RECV 2
@@ -210,7 +210,7 @@
 domain sockets using a
 .Fa cmsg_type
 of
-.Dv SCM_CREDS.
+.Dv SCM_CREDS .
 In this case,
 .Fa cmsg_data
 should be a structure of type
@@ -266,7 +266,7 @@
 and has not been connected (see
 .Xr connect 2
 and
-.Xr accept 2 ).
+.Xr accept 2 ) .
 .It Bq Er ENOTSOCK
 The argument
 .Fa s
diff -ur man2-4.2-20010112-STABLE/rfork.2 man2-4.3-BETA2/rfork.2
--- man2-4.2-20010112-STABLE/rfork.2	Mon Jan 15 09:33:24 2001
+++ man2-4.3-BETA2/rfork.2	Tue Mar 13 01:39:59 2001
@@ -3,7 +3,7 @@
 .\" describe the actual BSD implementation. Permission for
 .\" use of this page comes from Rob Pike <rob@plan9.att.com>.
 .\"
-.\" $FreeBSD: src/lib/libc/sys/rfork.2,v 1.11.2.5 2000/12/12 09:55:46 ru Exp $
+.\" $FreeBSD: src/lib/libc/sys/rfork.2,v 1.11.2.6 2001/02/07 00:59:41 ps Exp $
 .\"
 .Dd January 12, 1996
 .Dt RFORK 2
@@ -61,10 +61,14 @@
 whether they are normally shareable or not.  The stack segment is
 not split (both the parent and child return on the same stack) and thus
 .Fn rfork
-with the RFMEM flag may not generally be called directly from a high level
-language.  For example, you may not call it directly from C.
+with the RFMEM flag may not generally be called directly from high level
+languages including C.
 May be set only with
 .Dv RFPROC .
+A helper function is provided to assist with this problem and will cause
+the new process to run on the provided stack.  See
+.Fn rfork_thread 3
+for information.
 .It RFSIGSHARE
 If set, the kernel will force sharing the sigacts structure between the
 child and the parent.
@@ -145,7 +149,8 @@
 .Xr fork 2 ,
 .Xr intro 2 ,
 .Xr minherit 2 ,
-.Xr vfork 2
+.Xr vfork 2 ,
+.Xr rfork_thread 3
 .Sh BUGS
 .Fx
 does not yet implement a native
@@ -157,6 +162,10 @@
 contains a working
 .Fn clone
 call that utilizes RFMEM.
+The
+.Fn rfork_thread
+library call can often be used instead of
+.Fn clone .
 .Sh HISTORY
 The
 .Fn rfork
diff -ur man2-4.2-20010112-STABLE/select.2 man2-4.3-BETA2/select.2
--- man2-4.2-20010112-STABLE/select.2	Mon Jan 15 09:33:24 2001
+++ man2-4.3-BETA2/select.2	Tue Mar 13 01:39:59 2001
@@ -30,7 +30,7 @@
 .\" SUCH DAMAGE.
 .\"
 .\"     @(#)select.2	8.2 (Berkeley) 3/25/94
-.\" $FreeBSD: src/lib/libc/sys/select.2,v 1.14.2.1 2000/04/22 17:07:04 phantom Exp $
+.\" $FreeBSD: src/lib/libc/sys/select.2,v 1.14.2.2 2001/03/06 16:46:06 ru Exp $
 .\"
 .Dd March 25, 1994
 .Dt SELECT 2
@@ -186,10 +186,8 @@
 .Fn select
 will always examine the first 256 descriptors.
 .Sh BUGS
-.Fn select
-should probably return the time remaining from the original timeout,
-if any, by modifying the time value in place.
-This may be implemented in future versions of the system.
+.St -susv2 
+allows systems to modify the original timeout in place.
 Thus, it is unwise to assume that the timeout value will be unmodified
 by the
 .Fn select
diff -ur man2-4.2-20010112-STABLE/semget.2 man2-4.3-BETA2/semget.2
--- man2-4.2-20010112-STABLE/semget.2	Mon Jan 15 09:33:25 2001
+++ man2-4.3-BETA2/semget.2	Tue Mar 13 01:39:59 2001
@@ -23,7 +23,7 @@
 .\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
 .\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 .\"
-.\" $FreeBSD: src/lib/libc/sys/semget.2,v 1.7.2.2 2000/12/29 14:44:53 ru Exp $
+.\" $FreeBSD: src/lib/libc/sys/semget.2,v 1.7.2.3 2001/03/06 16:46:06 ru Exp $
 .\"
 .Dd September 12, 1995
 .Dt SEMGET 2
@@ -84,13 +84,13 @@
 Read access for user.
 .It Dv SEM_A
 Alter access for user.
-.It Dv (SEM_R>>3)
+.It Dv ( SEM_R>>3 )
 Read access for group.
-.It Dv (SEM_A>>3)
+.It Dv ( SEM_A>>3 )
 Alter access for group.
-.It Dv (SEM_R>>6)
+.It Dv ( SEM_R>>6 )
 Read access for other.
-.It Dv (SEM_A>>6)
+.It Dv ( SEM_A>>6 )
 Alter access for other.
 .El
 .Pp
diff -ur man2-4.2-20010112-STABLE/send.2 man2-4.3-BETA2/send.2
--- man2-4.2-20010112-STABLE/send.2	Mon Jan 15 09:33:25 2001
+++ man2-4.3-BETA2/send.2	Tue Mar 13 01:39:59 2001
@@ -30,7 +30,7 @@
 .\" SUCH DAMAGE.
 .\"
 .\"     From: @(#)send.2	8.2 (Berkeley) 2/21/94
-.\" $FreeBSD: src/lib/libc/sys/send.2,v 1.10.2.1 2000/04/22 17:07:05 phantom Exp $
+.\" $FreeBSD: src/lib/libc/sys/send.2,v 1.10.2.2 2001/01/17 21:03:24 ben Exp $
 .\"
 .Dd February 15, 1995
 .Dt SEND 2
@@ -172,6 +172,8 @@
 but may be caused by transient congestion.
 .It Bq Er EHOSTUNREACH
 The remote host was unreachable.
+.It Bq Er EHOSTDOWN
+The remote host was down.
 .El
 .Sh BUGS
 Because
diff -ur man2-4.2-20010112-STABLE/sendfile.2 man2-4.3-BETA2/sendfile.2
--- man2-4.2-20010112-STABLE/sendfile.2	Mon Jan 15 09:33:25 2001
+++ man2-4.3-BETA2/sendfile.2	Tue Mar 13 01:39:59 2001
@@ -23,7 +23,7 @@
 .\" 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.6.2.3 2000/12/08 13:49:32 ru Exp $
+.\" $FreeBSD: src/lib/libc/sys/sendfile.2,v 1.6.2.4 2001/03/06 16:46:06 ru Exp $
 .\"
 .Dd November 5, 1998
 .Dt SENDFILE 2
@@ -69,7 +69,7 @@
 The
 .Fa headers
 and
-.Fa tailers
+.Fa trailers
 pointers, if non-NULL, point to arrays of struct iovec structures.
 See the
 .Fn writev
diff -ur man2-4.2-20010112-STABLE/setreuid.2 man2-4.3-BETA2/setreuid.2
--- man2-4.2-20010112-STABLE/setreuid.2	Mon Jan 15 09:33:25 2001
+++ man2-4.3-BETA2/setreuid.2	Tue Mar 13 01:39:59 2001
@@ -30,7 +30,7 @@
 .\" SUCH DAMAGE.
 .\"
 .\"     @(#)setreuid.2	8.2 (Berkeley) 4/16/94
-.\" $FreeBSD: src/lib/libc/sys/setreuid.2,v 1.6.2.2 2000/05/06 13:34:14 phantom Exp $
+.\" $FreeBSD: src/lib/libc/sys/setreuid.2,v 1.6.2.3 2001/03/06 16:46:06 ru Exp $
 .\"
 .Dd April 16, 1994
 .Dt SETREUID 2
@@ -70,10 +70,7 @@
 .Fn setuid
 function is preferred.
 .Sh RETURN VALUES
-Upon successful completion, a value of 0 is returned.  Otherwise,
-a value of -1 is returned and
-.Va errno
-is set to indicate the error.
+.Rv -std setreuid 
 .Sh ERRORS
 .Bl -tag -width Er
 .It Bq Er EPERM
diff -ur man2-4.2-20010112-STABLE/shmget.2 man2-4.3-BETA2/shmget.2
--- man2-4.2-20010112-STABLE/shmget.2	Mon Jan 15 09:33:25 2001
+++ man2-4.3-BETA2/shmget.2	Tue Mar 13 01:39:59 2001
@@ -23,7 +23,7 @@
 .\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
 .\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 .\"
-.\" $FreeBSD: src/lib/libc/sys/shmget.2,v 1.8.2.2 2000/12/29 14:44:54 ru Exp $
+.\" $FreeBSD: src/lib/libc/sys/shmget.2,v 1.8.2.3 2001/03/06 16:46:06 ru Exp $
 .\"
 .Dd July 3, 1995
 .Dt SHMGET 2
@@ -82,13 +82,13 @@
 Read access for user.
 .It Dv SHM_W
 Write access for user.
-.It Dv (SHM_R>>3)
+.It Dv ( SHM_R>>3 )
 Read access for group.
-.It Dv (SHM_W>>3)
+.It Dv ( SHM_W>>3 )
 Write access for group.
-.It Dv (SHM_R>>6)
+.It Dv ( SHM_R>>6 )
 Read access for other.
-.It Dv (SHM_W>>6)
+.It Dv ( SHM_W>>6 )
 Write access for other.
 .El
 .\"
diff -ur man2-4.2-20010112-STABLE/shutdown.2 man2-4.3-BETA2/shutdown.2
--- man2-4.2-20010112-STABLE/shutdown.2	Mon Jan 15 09:33:25 2001
+++ man2-4.3-BETA2/shutdown.2	Tue Mar 13 01:39:59 2001
@@ -30,11 +30,11 @@
 .\" SUCH DAMAGE.
 .\"
 .\"     @(#)shutdown.2	8.1 (Berkeley) 6/4/93
-.\" $FreeBSD: src/lib/libc/sys/shutdown.2,v 1.7.2.3 2000/08/23 00:56:03 jhb Exp $
+.\" $FreeBSD: src/lib/libc/sys/shutdown.2,v 1.7.2.4 2001/03/07 08:43:44 ru Exp $
 .\"
-.Dd June 4, 1993
+.Dd February 27, 2001
 .Dt SHUTDOWN 2
-.Os BSD 4.2
+.Os
 .Sh NAME
 .Nm shutdown
 .Nd shut down part of a full-duplex connection
@@ -49,37 +49,42 @@
 The
 .Fn shutdown
 call causes all or part of a full-duplex connection on
-the socket associated with
+the socket associated with the file descriptor
 .Fa s
 to be shut down.
-If
+The
 .Fa how
-is 
-.No Dv SHUT_RD Pq 0 ,
+argument specifies the type of shutdown.
+Possible values are:
+.Bl -tag -width SHUT_RDWR
+.It Dv SHUT_RD
 further receives will be disallowed.
-If
-.Fa how
-is
-.No Dv SHUT_WR Pq 1 ,
+.It Dv SHUT_WR
 further sends will be disallowed.
-If
-.Fa how
-is 
-.No Dv SHUT_RDWR Pq 2 ,
+.It Dv SHUT_RDWR
 further sends and receives will be disallowed.
+.El
 .Sh RETURN VALUES
-A 0 is returned if the call succeeds, -1 if it fails.
+.Rv -std shutdown .
 .Sh ERRORS
-The call succeeds unless:
+The
+.Fn shutdown
+call fails if:
 .Bl -tag -width Er
 .It Bq Er EBADF
-.Fa S
-is not a valid descriptor.
-.It Bq Er ENOTSOCK
-.Fa S
-is a file, not a socket.
+The
+.Fa s
+argument is not a valid file descriptor.
+.It Bq Er EINVAL
+The
+.Fa how
+argument is invalid.
 .It Bq Er ENOTCONN
-The specified socket is not connected.
+The socket is not connected.
+.It Bq Er ENOTSOCK
+The
+.Fa s
+argument does not refer to a socket.
 .El
 .Sh SEE ALSO
 .Xr connect 2 ,
@@ -96,6 +101,8 @@
 function call appeared in
 .Bx 4.2 .
 The
-.Dv SHUT_
+.Dv SHUT_RD , SHUT_WR ,
+and
+.Dv SHUT_RDWR
 constants appeared in
 .St -p1003.1g .
diff -ur man2-4.2-20010112-STABLE/sigpending.2 man2-4.3-BETA2/sigpending.2
--- man2-4.2-20010112-STABLE/sigpending.2	Mon Jan 15 09:33:25 2001
+++ man2-4.3-BETA2/sigpending.2	Tue Mar 13 01:39:59 2001
@@ -33,7 +33,7 @@
 .\" SUCH DAMAGE.
 .\"
 .\"	@(#)sigpending.2	8.3 (Berkeley) 1/12/94
-.\" $FreeBSD: src/lib/libc/sys/sigpending.2,v 1.5.2.1 2000/04/22 17:07:07 phantom Exp $
+.\" $FreeBSD: src/lib/libc/sys/sigpending.2,v 1.5.2.2 2001/01/16 21:59:22 ben Exp $
 .\"
 .Dd January 12, 1994
 .Dt SIGPENDING 2
@@ -62,9 +62,14 @@
 .Va errno
 is set to indicated the reason.
 .Sh ERRORS
-The
 .Fn sigpending
-function does not currently detect any errors.
+will fail if:
+.Bl -tag -width Er
+.It Bq Er EFAULT
+The
+.Fa set
+argument specified an invalid address.
+.El
 .Sh SEE ALSO
 .Xr sigaction 2 ,
 .Xr sigprocmask 2
diff -ur man2-4.2-20010112-STABLE/socket.2 man2-4.3-BETA2/socket.2
--- man2-4.2-20010112-STABLE/socket.2	Mon Jan 15 09:33:25 2001
+++ man2-4.3-BETA2/socket.2	Tue Mar 13 01:39:59 2001
@@ -30,7 +30,7 @@
 .\" SUCH DAMAGE.
 .\"
 .\"     From: @(#)socket.2	8.1 (Berkeley) 6/4/93
-.\" $FreeBSD: src/lib/libc/sys/socket.2,v 1.12.2.4 2000/12/29 14:44:54 ru Exp $
+.\" $FreeBSD: src/lib/libc/sys/socket.2,v 1.12.2.5 2001/03/06 16:46:06 ru Exp $
 .\"
 .Dd November 24, 1997
 .Dt SOCKET 2
@@ -168,7 +168,7 @@
 calls.
 (Some protocol families, such as the Internet family,
 support the notion of an
-.Dq implied connect,
+.Dq implied connect ,
 which permits data to be sent piggybacked onto a connect operation by
 using the
 .Xr sendto 2
diff -ur man2-4.2-20010112-STABLE/write.2 man2-4.3-BETA2/write.2
--- man2-4.2-20010112-STABLE/write.2	Mon Jan 15 09:33:25 2001
+++ man2-4.3-BETA2/write.2	Tue Mar 13 01:39:59 2001
@@ -30,7 +30,7 @@
 .\" SUCH DAMAGE.
 .\"
 .\"     @(#)write.2	8.5 (Berkeley) 4/2/94
-.\" $FreeBSD: src/lib/libc/sys/write.2,v 1.12.2.2 2000/08/23 00:45:19 jhb Exp $
+.\" $FreeBSD: src/lib/libc/sys/write.2,v 1.12.2.3 2001/03/05 11:44:37 obrien Exp $
 .\"
 .Dd April 2, 1994
 .Dt WRITE 2
@@ -215,6 +215,8 @@
 containing the file has been exhausted.
 .It Bq Er EIO
 An I/O error occurred while reading from or writing to the file system.
+.It Bq Er EINTR
+A signal interrupted the write before it could be completed.
 .It Bq Er EAGAIN
 The file was marked for non-blocking I/O,
 and no data could be written immediately.
