PERFORCE change 31673 for review

Marcel Moolenaar marcel at FreeBSD.org
Thu May 22 20:49:40 PDT 2003


http://perforce.freebsd.org/chv.cgi?CH=31673

Change 31673 by marcel at marcel_nfs on 2003/05/22 20:48:36

	IFC @31661

Affected files ...

.. //depot/projects/ia64/Makefile.inc1#63 integrate
.. //depot/projects/ia64/lib/libc/gen/arc4random.3#3 integrate
.. //depot/projects/ia64/lib/libc/gen/getfsent.3#4 integrate
.. //depot/projects/ia64/lib/libc/gen/getpwent.3#5 integrate
.. //depot/projects/ia64/lib/libc/i386/sys/i386_vm86.2#6 integrate
.. //depot/projects/ia64/lib/libc/locale/setlocale.3#6 integrate
.. //depot/projects/ia64/lib/libc/locale/wcstod.3#4 integrate
.. //depot/projects/ia64/lib/libc/net/nsdispatch.3#7 integrate
.. //depot/projects/ia64/lib/libc/posix1e/mac.3#10 integrate
.. //depot/projects/ia64/lib/libc/stdio/fputws.3#5 integrate
.. //depot/projects/ia64/lib/libc/stdlib/strtod.3#7 integrate
.. //depot/projects/ia64/lib/libc/sys/jail.2#5 integrate
.. //depot/projects/ia64/lib/libc/sys/sendfile.2#5 integrate
.. //depot/projects/ia64/lib/libc/sys/stat.2#7 integrate
.. //depot/projects/ia64/lib/libdevstat/devstat.3#4 integrate
.. //depot/projects/ia64/lib/libfetch/fetch.3#7 integrate
.. //depot/projects/ia64/lib/libthr/arch/i386/i386/_setcurthread.c#3 integrate
.. //depot/projects/ia64/lib/libthr/thread/thr_cond.c#3 integrate
.. //depot/projects/ia64/lib/libthr/thread/thr_create.c#4 integrate
.. //depot/projects/ia64/lib/libthr/thread/thr_exit.c#2 integrate
.. //depot/projects/ia64/lib/libthr/thread/thr_init.c#2 integrate
.. //depot/projects/ia64/lib/libthr/thread/thr_join.c#2 integrate
.. //depot/projects/ia64/lib/libthr/thread/thr_mutex.c#4 integrate
.. //depot/projects/ia64/lib/libusbhid/usbhid.3#4 integrate
.. //depot/projects/ia64/lib/msun/src/math.h#14 integrate
.. //depot/projects/ia64/release/Makefile#53 integrate
.. //depot/projects/ia64/release/doc/en_US.ISO8859-1/hardware/common/dev.sgml#51 integrate
.. //depot/projects/ia64/release/doc/en_US.ISO8859-1/hardware/common/intro.sgml#4 integrate
.. //depot/projects/ia64/release/doc/en_US.ISO8859-1/hardware/ia64/article.sgml#3 integrate
.. //depot/projects/ia64/release/doc/en_US.ISO8859-1/hardware/ia64/proc-ia64.sgml#4 integrate
.. //depot/projects/ia64/release/doc/en_US.ISO8859-1/relnotes/common/new.sgml#93 integrate
.. //depot/projects/ia64/sbin/newfs/mkfs.c#29 integrate
.. //depot/projects/ia64/share/examples/etc/make.conf#32 integrate
.. //depot/projects/ia64/share/man/man4/acpi.4#8 integrate
.. //depot/projects/ia64/share/man/man4/agp.4#4 integrate
.. //depot/projects/ia64/share/man/man4/bge.4#6 integrate
.. //depot/projects/ia64/share/man/man4/dpt.4#4 integrate
.. //depot/projects/ia64/share/man/man4/em.4#9 integrate
.. //depot/projects/ia64/share/man/man4/geom.4#8 integrate
.. //depot/projects/ia64/share/man/man4/ip.4#8 integrate
.. //depot/projects/ia64/share/man/man4/mac.4#7 integrate
.. //depot/projects/ia64/share/man/man4/mac_bsdextended.4#8 integrate
.. //depot/projects/ia64/share/man/man4/mac_ifoff.4#5 integrate
.. //depot/projects/ia64/share/man/man4/mac_lomac.4#5 integrate
.. //depot/projects/ia64/share/man/man4/mac_mls.4#11 integrate
.. //depot/projects/ia64/share/man/man4/mac_none.4#6 integrate
.. //depot/projects/ia64/share/man/man4/mac_partition.4#6 integrate
.. //depot/projects/ia64/share/man/man4/mac_seeotheruids.4#6 integrate
.. //depot/projects/ia64/share/man/man4/mac_test.4#6 integrate
.. //depot/projects/ia64/share/man/man4/ng_bluetooth.4#5 integrate
.. //depot/projects/ia64/share/man/man4/ng_bt3c.4#4 integrate
.. //depot/projects/ia64/share/man/man4/ng_btsocket.4#5 integrate
.. //depot/projects/ia64/share/man/man4/ng_h4.4#4 integrate
.. //depot/projects/ia64/share/man/man4/ng_hci.4#5 integrate
.. //depot/projects/ia64/share/man/man4/ng_l2cap.4#4 integrate
.. //depot/projects/ia64/share/man/man4/ng_ubt.4#4 integrate
.. //depot/projects/ia64/share/man/man4/oldcard.4#3 integrate
.. //depot/projects/ia64/share/man/man4/raid.4#3 integrate
.. //depot/projects/ia64/share/man/man4/syscons.4#6 integrate
.. //depot/projects/ia64/share/man/man4/ubtbcmfw.4#2 integrate
.. //depot/projects/ia64/share/man/man4/umass.4#9 integrate
.. //depot/projects/ia64/share/man/man4/wi.4#20 integrate
.. //depot/projects/ia64/share/man/man5/fs.5#6 integrate
.. //depot/projects/ia64/share/man/man5/make.conf.5#35 integrate
.. //depot/projects/ia64/share/man/man5/procfs.5#6 integrate
.. //depot/projects/ia64/share/man/man5/rc.conf.5#38 integrate
.. //depot/projects/ia64/share/man/man7/development.7#3 integrate
.. //depot/projects/ia64/share/man/man7/maclabel.7#3 integrate
.. //depot/projects/ia64/share/man/man7/release.7#21 integrate
.. //depot/projects/ia64/share/man/man7/tuning.7#20 integrate
.. //depot/projects/ia64/share/man/man9/BUS_SETUP_INTR.9#4 integrate
.. //depot/projects/ia64/share/man/man9/Makefile#23 integrate
.. //depot/projects/ia64/share/man/man9/bus_alloc_resource.9#3 integrate
.. //depot/projects/ia64/share/man/man9/byteorder.9#5 integrate
.. //depot/projects/ia64/share/man/man9/device_get_ivars.9#3 integrate
.. //depot/projects/ia64/share/man/man9/device_get_softc.9#3 integrate
.. //depot/projects/ia64/share/man/man9/malloc.9#11 integrate
.. //depot/projects/ia64/share/man/man9/mbuf.9#10 integrate
.. //depot/projects/ia64/share/man/man9/mutex.9#10 integrate
.. //depot/projects/ia64/share/man/man9/signal.9#4 integrate
.. //depot/projects/ia64/share/mk/bsd.cpu.mk#15 integrate
.. //depot/projects/ia64/share/mk/bsd.info.mk#6 integrate
.. //depot/projects/ia64/sys/amd64/amd64/trap.c#4 integrate
.. //depot/projects/ia64/sys/dev/bge/if_bge.c#31 integrate
.. //depot/projects/ia64/sys/dev/bge/if_bgereg.h#16 integrate
.. //depot/projects/ia64/sys/dev/ciss/ciss.c#18 integrate
.. //depot/projects/ia64/sys/dev/pci/pci_pci.c#15 integrate
.. //depot/projects/ia64/sys/dev/usb/umass.c#27 integrate
.. //depot/projects/ia64/sys/dev/usb/usbdevs#36 integrate
.. //depot/projects/ia64/sys/dev/usb/usbdevs.h#35 integrate
.. //depot/projects/ia64/sys/dev/usb/usbdevs_data.h#35 integrate
.. //depot/projects/ia64/sys/dev/vinum/vinum.c#11 integrate
.. //depot/projects/ia64/sys/dev/vinum/vinumconfig.c#11 integrate
.. //depot/projects/ia64/sys/dev/vinum/vinumext.h#9 integrate
.. //depot/projects/ia64/sys/dev/vinum/vinumioctl.c#14 integrate
.. //depot/projects/ia64/sys/dev/vinum/vinumlock.c#4 integrate
.. //depot/projects/ia64/sys/dev/vinum/vinummemory.c#5 integrate
.. //depot/projects/ia64/sys/dev/vinum/vinumobj.h#5 integrate
.. //depot/projects/ia64/sys/dev/vinum/vinumvar.h#3 integrate
.. //depot/projects/ia64/sys/geom/geom_disk.c#33 integrate
.. //depot/projects/ia64/sys/i386/conf/PAE#4 integrate
.. //depot/projects/ia64/sys/i386/i386/trap.c#31 integrate
.. //depot/projects/ia64/sys/kern/kern_switch.c#24 integrate
.. //depot/projects/ia64/sys/sys/stat.h#14 integrate
.. //depot/projects/ia64/usr.bin/bluetooth/btsockstat/btsockstat.1#6 integrate
.. //depot/projects/ia64/usr.bin/bluetooth/rfcomm_sppd/rfcomm_sppd.1#2 integrate
.. //depot/projects/ia64/usr.bin/catman/catman.c#6 integrate
.. //depot/projects/ia64/usr.bin/ipcs/ipcs.1#5 integrate
.. //depot/projects/ia64/usr.bin/logger/logger.1#3 integrate
.. //depot/projects/ia64/usr.bin/mt/mt.1#8 integrate
.. //depot/projects/ia64/usr.bin/netstat/netstat.1#3 integrate
.. //depot/projects/ia64/usr.bin/stat/stat.1#4 integrate
.. //depot/projects/ia64/usr.bin/uuidgen/uuidgen.1#7 integrate
.. //depot/projects/ia64/usr.bin/xargs/xargs.1#15 integrate
.. //depot/projects/ia64/usr.sbin/apm/apm.8#7 integrate
.. //depot/projects/ia64/usr.sbin/bluetooth/bcmfw/bcmfw.8#2 integrate
.. //depot/projects/ia64/usr.sbin/bluetooth/bt3cfw/bt3cfw.8#4 integrate
.. //depot/projects/ia64/usr.sbin/bluetooth/hccontrol/hccontrol.8#6 integrate
.. //depot/projects/ia64/usr.sbin/bluetooth/hcsecd/hcsecd.8#2 integrate
.. //depot/projects/ia64/usr.sbin/bluetooth/hcseriald/hcseriald.8#6 integrate
.. //depot/projects/ia64/usr.sbin/bluetooth/l2control/l2control.8#6 integrate
.. //depot/projects/ia64/usr.sbin/bluetooth/l2ping/l2ping.8#6 integrate
.. //depot/projects/ia64/usr.sbin/bluetooth/rfcomm_pppd/rfcomm_pppd.8#2 integrate
.. //depot/projects/ia64/usr.sbin/burncd/burncd.8#14 integrate
.. //depot/projects/ia64/usr.sbin/chown/chgrp.1#3 integrate
.. //depot/projects/ia64/usr.sbin/fwcontrol/fwcontrol.8#6 integrate
.. //depot/projects/ia64/usr.sbin/mixer/mixer.8#4 integrate
.. //depot/projects/ia64/usr.sbin/pciconf/pciconf.8#10 integrate
.. //depot/projects/ia64/usr.sbin/pkg_install/add/pkg_add.1#9 integrate
.. //depot/projects/ia64/usr.sbin/ppp/Makefile#4 integrate
.. //depot/projects/ia64/usr.sbin/ppp/ppp.8.m4#16 integrate
.. //depot/projects/ia64/usr.sbin/sysinstall/dist.c#19 integrate
.. //depot/projects/ia64/usr.sbin/sysinstall/dist.h#7 integrate
.. //depot/projects/ia64/usr.sbin/sysinstall/menus.c#29 integrate
.. //depot/projects/ia64/usr.sbin/sysinstall/sysinstall.8#10 integrate
.. //depot/projects/ia64/usr.sbin/wicontrol/wicontrol.8#13 integrate

Differences ...

==== //depot/projects/ia64/Makefile.inc1#63 (text+ko) ====

@@ -1,5 +1,5 @@
 #
-# $FreeBSD: src/Makefile.inc1,v 1.361 2003/05/19 15:51:58 des Exp $
+# $FreeBSD: src/Makefile.inc1,v 1.362 2003/05/21 21:47:20 ru Exp $
 #
 # Make command line options:
 #	-DNO_KERBEROS Do not build Heimdal (Kerberos 5)
@@ -695,7 +695,7 @@
 .endif
 
 .if exists(${.CURDIR}/kerberos5) && exists(${.CURDIR}/crypto) && \
-    !defined(NOCRYPT) && !defined(NO_KERBEROS)
+    !defined(NOCRYPT) && !defined(NO_OPENSSL) && !defined(NO_KERBEROS)
 _libkrb5= kerberos5/lib/libroken kerberos5/lib/libvers \
     kerberos5/lib/libasn1 kerberos5/lib/libhdb kerberos5/lib/libsl
 .endif
@@ -782,7 +782,8 @@
 
 _generic_libs=	gnu/lib
 
-.if !defined(NOCRYPT) && !defined(NO_KERBEROS)
+.if exists(${.CURDIR}/kerberos5) && exists(${.CURDIR}/crypto) && \
+    !defined(NOCRYPT) && !defined(NO_OPENSSL) && !defined(NO_KERBEROS)
 _prebuild_libs+=	kerberos5/lib/libasn1
 _prebuild_libs+=	kerberos5/lib/libgssapi
 _prebuild_libs+=	kerberos5/lib/libkrb5

==== //depot/projects/ia64/lib/libc/gen/arc4random.3#3 (text+ko) ====

@@ -28,7 +28,7 @@
 .\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 .\"
 .\" Manual page, using -mandoc macros
-.\" $FreeBSD: src/lib/libc/gen/arc4random.3,v 1.14 2003/05/01 20:27:59 trhodes Exp $
+.\" $FreeBSD: src/lib/libc/gen/arc4random.3,v 1.15 2003/05/22 13:02:26 ru Exp $
 .\"
 .Dd April 15, 1997
 .Dt ARC4RANDOM 3
@@ -57,7 +57,8 @@
 can be in about
 .if t 2\u\s71700\s10\d
 .if n (2**1700)
-states. The
+states.
+The
 .Fn arc4random
 function returns pseudo-random numbers in the range of 0 to
 .if t 2\u\s731\s10\d\(mi1,
@@ -87,7 +88,7 @@
 functions using
 .Fn arc4random :
 .Pp
-.Dl #define foo4random() (arc4random()  % ((unsigned)RAND_MAX + 1))
+.Dl "#define foo4random() (arc4random() % ((unsigned)RAND_MAX + 1))"
 .Sh SEE ALSO
 .Xr rand 3 ,
 .Xr random 3 ,

==== //depot/projects/ia64/lib/libc/gen/getfsent.3#4 (text+ko) ====

@@ -30,7 +30,7 @@
 .\" SUCH DAMAGE.
 .\"
 .\"     @(#)getfsent.3	8.1 (Berkeley) 6/4/93
-.\" $FreeBSD: src/lib/libc/gen/getfsent.3,v 1.13 2003/05/18 21:05:21 ru Exp $
+.\" $FreeBSD: src/lib/libc/gen/getfsent.3,v 1.14 2003/05/22 13:02:26 ru Exp $
 .\"
 .Dd April 7, 2003
 .Dt GETFSENT 3
@@ -46,11 +46,11 @@
 .Lb libc
 .Sh SYNOPSIS
 .In fstab.h
-.Ft struct fstab *
+.Ft "struct fstab *"
 .Fn getfsent void
-.Ft struct fstab *
+.Ft "struct fstab *"
 .Fn getfsspec "const char *spec"
-.Ft struct fstab *
+.Ft "struct fstab *"
 .Fn getfsfile "const char *file"
 .Ft int
 .Fn setfsent void
@@ -58,7 +58,7 @@
 .Fn endfsent void
 .Ft void
 .Fn setfstab "const char *file"
-.Ft const char *
+.Ft "const char *"
 .Fn getfstab void
 .Sh DESCRIPTION
 The
@@ -103,11 +103,11 @@
 The value set by
 .Fn setfstab
 does not persist across calls to
-.Fn endfsent
+.Fn endfsent .
 .Pp
 The
 .Fn getfstab
-function returns the name of the file that that will be used.
+function returns the name of the file that will be used.
 .Pp
 The
 .Fn getfsspec
@@ -145,17 +145,17 @@
 function
 returns nothing.
 .Sh ENVIRONMENT
-.Bl -tag -width PATH_FSTAB
-.It Pa PATH_FSTAB
+.Bl -tag -width ".Ev PATH_FSTAB"
+.It Ev PATH_FSTAB
 If the environment variable
-.Pa PATH_FSTAB
-is set all operations are performed against the specified file.
-.Pa PATH_FSTAB
+.Ev PATH_FSTAB
+is set, all operations are performed against the specified file.
+.Ev PATH_FSTAB
 will not be honored if the process environment or memory address space is
 considred
 .Dq tainted .
 (See
-.Fn issetugid
+.Xr issetugid 2
 for more information.)
 .El
 .Sh FILES

==== //depot/projects/ia64/lib/libc/gen/getpwent.3#5 (text+ko) ====

@@ -30,7 +30,7 @@
 .\" SUCH DAMAGE.
 .\"
 .\"     From: @(#)getpwent.3	8.2 (Berkeley) 12/11/93
-.\" $FreeBSD: src/lib/libc/gen/getpwent.3,v 1.22 2003/04/17 14:15:26 nectar Exp $
+.\" $FreeBSD: src/lib/libc/gen/getpwent.3,v 1.23 2003/05/22 13:02:26 ru Exp $
 .\"
 .Dd April 16, 2003
 .Dt GETPWENT 3
@@ -194,7 +194,8 @@
 and
 .Fn getpwuid_r
 return 0 if no error occurred, or an error number to indicate failure.
-It is not an error if a matching entry is not found.  (Thus, if
+It is not an error if a matching entry is not found.
+(Thus, if
 .Fa result
 is
 .Dv NULL

==== //depot/projects/ia64/lib/libc/i386/sys/i386_vm86.2#6 (text+ko) ====

@@ -22,7 +22,7 @@
 .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
 .\" SUCH DAMAGE.
 .\"
-.\" $FreeBSD: src/lib/libc/i386/sys/i386_vm86.2,v 1.14 2003/05/18 21:05:21 ru Exp $
+.\" $FreeBSD: src/lib/libc/i386/sys/i386_vm86.2,v 1.15 2003/05/22 13:02:27 ru Exp $
 .\"
 .Dd July 27, 1998
 .Os
@@ -75,13 +75,14 @@
 .Fa int_map
 argument
 is a bitmap which determines whether vm86 interrupts should be handled
-in vm86 mode, or reflected back to the process.  If the
+in vm86 mode, or reflected back to the process.
+If the
 .Em Nth
 bit is set, the interrupt will be reflected to the process, otherwise
 it will be dispatched by the vm86 interrupt table.
 .It Dv VM86_INTCALL
-This allows calls to be made to vm86 interrupt handlers by the process. It
-effectively simulates an INT instruction.
+This allows calls to be made to vm86 interrupt handlers by the process.
+It effectively simulates an INT instruction.
 .Fa data
 should point to the following structure:
 .Bd -literal
@@ -92,8 +93,8 @@
 .Ed
 .Pp
 .Fa intnum
-specifies the operand of INT for the simulated call. A value of 0x10, for
-example, would often be used to call into the VGA BIOS.
+specifies the operand of INT for the simulated call.
+A value of 0x10, for example, would often be used to call into the VGA BIOS.
 .Fa vmf
 is used to initialize CPU registers according to the calling convention for
 the interrupt handler.
@@ -117,7 +118,8 @@
 .Xr sigreturn 2
 with the correct machine context for vm86, and with the
 .Dv PSL_VM
-bit set.  Control returns to the process upon delivery of a signal.
+bit set.
+Control returns to the process upon delivery of a signal.
 .Sh RETURN VALUES
 .Rv -std i386_vm86
 .Sh ERRORS
@@ -132,6 +134,7 @@
 There is not enough memory to initialize the kernel data structures.
 .El
 .Sh AUTHORS
+.An -nosplit
 This man page was written by
 .An Jonathan Lemon ,
 and updated by

==== //depot/projects/ia64/lib/libc/locale/setlocale.3#6 (text+ko) ====

@@ -33,7 +33,7 @@
 .\" SUCH DAMAGE.
 .\"
 .\"	@(#)setlocale.3	8.1 (Berkeley) 6/9/93
-.\" $FreeBSD: src/lib/libc/locale/setlocale.3,v 1.26 2003/03/20 08:13:34 ache Exp $
+.\" $FreeBSD: src/lib/libc/locale/setlocale.3,v 1.27 2003/05/22 13:02:27 ru Exp $
 .\"
 .Dd October 5, 2002
 .Dt SETLOCALE 3
@@ -177,7 +177,7 @@
 .Bl -tag -width mon_decimal_point
 .It Fa decimal_point
 The decimal point character, except for currency values,
-can't be the empty string.
+cannot be an empty string.
 .It Fa thousands_sep
 The separator between groups of digits
 before the decimal point, except for currency values.

==== //depot/projects/ia64/lib/libc/locale/wcstod.3#4 (text+ko) ====

@@ -22,7 +22,7 @@
 .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
 .\" SUCH DAMAGE.
 .\"
-.\" $FreeBSD: src/lib/libc/locale/wcstod.3,v 1.3 2003/03/13 06:29:53 tjr Exp $
+.\" $FreeBSD: src/lib/libc/locale/wcstod.3,v 1.4 2003/05/22 13:02:27 ru Exp $
 .\"
 .Dd February 22, 2003
 .Dt WCSTOD 3
@@ -31,14 +31,17 @@
 .Nm wcstof ,
 .Nm wcstod ,
 .Nm wcstold
-.Nd "convert string to float, double or long double"
+.Nd convert string to
+.Vt float , double
+or
+.Vt "long double"
 .Sh LIBRARY
 .Lb libc
 .Sh SYNOPSIS
 .In wchar.h
 .Ft float
 .Fn wcstof "const wchar_t * restrict nptr" "wchar_t ** restrict endptr"
-.Ft long double
+.Ft "long double"
 .Fn wcstold "const wchar_t * restrict nptr" "wchar_t ** restrict endptr"
 .Ft double
 .Fn wcstod "const wchar_t * restrict nptr" "wchar_t ** restrict endptr"
@@ -53,13 +56,13 @@
 .Fn strtod
 and
 .Fn strtold
-functios.
+functions.
 Refer to
 .Xr strtod 3
 for details.
 .Sh SEE ALSO
 .Xr strtod 3 ,
-.Xr wcstol 3 ,
+.Xr wcstol 3
 .Sh STANDARDS
 The
 .Fn wcstof ,

==== //depot/projects/ia64/lib/libc/net/nsdispatch.3#7 (text+ko) ====

@@ -1,5 +1,5 @@
 .\"	$NetBSD: nsdispatch.3,v 1.8 1999/03/22 19:44:53 garbled Exp $
-.\"	$FreeBSD: src/lib/libc/net/nsdispatch.3,v 1.10 2003/05/18 21:05:21 ru Exp $
+.\"	$FreeBSD: src/lib/libc/net/nsdispatch.3,v 1.11 2003/05/22 13:02:27 ru Exp $
 .\"
 .\" Copyright (c) 1997, 1998, 1999 The NetBSD Foundation, Inc.
 .\" All rights reserved.
@@ -74,7 +74,8 @@
 .Pp
 Each method has the function signature described by the typedef:
 .Pp
-.Ft typedef "int \*(lp*nss_method\*(rp\*(lpvoid *retval, void *mdata, va_list *ap\*(rp" ;
+.Ft typedef int
+.Fn \*(lp*nss_method\*(rp "void *retval" "void *mdata" "va_list *ap" ;
 .Pp
 .Va dtab
 is an array of
@@ -175,12 +176,12 @@
 .Ss Valid source types
 While there is support for arbitrary sources, the following
 #defines for commonly implemented sources are available:
-.Bl -column NS_COMPAT COMPAT -offset indent
+.Bl -column NSSRC_COMPAT compat -offset indent
 .It Sy "#define	value"
-.It "NSSRC_FILES	""files"""
-.It "NSSRC_DNS	""dns"""
-.It "NSSRC_NIS	""nis"""
-.It "NSSRC_COMPAT	""compat"""
+.It Dv NSSRC_FILES Ta """files""
+.It Dv NSSRC_DNS Ta """dns""
+.It Dv NSSRC_NIS Ta """nis""
+.It Dv NSSRC_COMPAT Ta """compat""
 .El
 .Pp
 Refer to
@@ -192,13 +193,13 @@
 .Vt nss_method
 functions must return one of the following values depending upon status
 of the lookup:
-.Bl -column "RETURN VALUE" "STATUS CODE"
+.Bl -column "Return value" "Status code"
 .It Sy "Return value	Status code"
-.It "NS_SUCCESS	success"
-.It "NS_NOTFOUND	notfound"
-.It "NS_UNAVAIL	unavail"
-.It "NS_TRYAGAIN	tryagain"
-.It "NS_RETURN	-none-"
+.It Dv NS_SUCCESS Ta success
+.It Dv NS_NOTFOUND Ta notfound
+.It Dv NS_UNAVAIL Ta unavail
+.It Dv NS_TRYAGAIN Ta tryagain
+.It Dv NS_RETURN Ta -none-
 .El
 .Pp
 Refer to
@@ -208,12 +209,14 @@
 The
 .Fn nsdispatch
 function returns the value of the method that caused the dispatcher to
-terminate, or NS_NOTFOUND otherwise.
+terminate, or
+.Dv NS_NOTFOUND
+otherwise.
 .Sh SEE ALSO
 .Xr hesiod 3 ,
 .Xr stdarg 3 ,
-.Xr yp 8 ,
-.Xr nsswitch.conf 5
+.Xr nsswitch.conf 5 ,
+.Xr yp 8
 .Sh HISTORY
 The
 .Fn nsdispatch
@@ -232,10 +235,10 @@
 wrote this freely-distributable name-service switch implementation,
 using ideas from the
 .Tn ULTRIX
-"svc.conf\*(lp5\*(rp"
+svc.conf(5)
 and
 .Tn Solaris
-"nsswitch.conf\*(lp4\*(rp"
+nsswitch.conf(4)
 manual pages.
 The
 .Fx

==== //depot/projects/ia64/lib/libc/posix1e/mac.3#10 (text+ko) ====

@@ -28,14 +28,14 @@
 .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
 .\" SUCH DAMAGE.
 .\"
-.\" $FreeBSD: src/lib/libc/posix1e/mac.3,v 1.12 2003/04/20 04:43:56 rwatson Exp $
+.\" $FreeBSD: src/lib/libc/posix1e/mac.3,v 1.13 2003/05/22 13:02:27 ru Exp $
 .\"
 .Dd April 19, 2003
 .Dt MAC 3
 .Os
 .Sh NAME
 .Nm mac
-.Nd Introduction to the MAC security API
+.Nd introduction to the MAC security API
 .Sh LIBRARY
 .Lb libc
 .Sh SYNOPSIS

==== //depot/projects/ia64/lib/libc/stdio/fputws.3#5 (text+ko) ====

@@ -35,7 +35,7 @@
 .\"
 .\"     @(#)fputs.3	8.1 (Berkeley) 6/4/93
 .\" FreeBSD: src/lib/libc/stdio/fputs.3,v 1.8 2001/10/01 16:08:59 ru Exp
-.\" $FreeBSD: src/lib/libc/stdio/fputws.3,v 1.4 2003/03/09 02:56:54 tjr Exp $
+.\" $FreeBSD: src/lib/libc/stdio/fputws.3,v 1.5 2003/05/22 13:02:27 ru Exp $
 .\"
 .Dd August 6, 2002
 .Dt FPUTWS 3
@@ -63,10 +63,10 @@
 function
 returns 0 on success and \-1 on error.
 .Sh ERRORS
-.Bl -tag -width Er
 The
 .Fn fputws
 function will fail if:
+.Bl -tag -width Er
 .It Bq Er EBADF
 The
 .Fa fp

==== //depot/projects/ia64/lib/libc/stdlib/strtod.3#7 (text+ko) ====

@@ -34,7 +34,7 @@
 .\" SUCH DAMAGE.
 .\"
 .\"     @(#)strtod.3	8.1 (Berkeley) 6/4/93
-.\" $FreeBSD: src/lib/libc/stdlib/strtod.3,v 1.18 2003/03/12 20:31:05 das Exp $
+.\" $FreeBSD: src/lib/libc/stdlib/strtod.3,v 1.19 2003/05/22 13:02:28 ru Exp $
 .\"
 .Dd March 2, 2003
 .Dt STRTOD 3
@@ -52,7 +52,7 @@
 .Fn strtod "const char * restrict nptr" "char ** restrict endptr"
 .Ft float
 .Fn strtof "const char * restrict nptr" "char ** restrict endptr"
-.Ft long double
+.Ft "long double"
 .Fn strtold "const char * restrict nptr" "char ** restrict endptr"
 .Sh DESCRIPTION
 These conversion
@@ -63,7 +63,7 @@
 .Vt double ,
 .Vt float ,
 and
-.Vt long double
+.Vt "long double"
 representation, respectively.
 .Pp
 The expected form of the string is an optional plus (``+'') or minus
@@ -160,10 +160,10 @@
 The author of this software is
 .An David M. Gay .
 .Pp
+.Bd -literal
 Copyright (c) 1998 by Lucent Technologies
-.br
 All Rights Reserved
-.Pp
+
 Permission to use, copy, modify, and distribute this software and
 its documentation for any purpose and without fee is hereby
 granted, provided that the above copyright notice appear in all
@@ -173,7 +173,7 @@
 not be used in advertising or publicity pertaining to
 distribution of the software without specific, written prior
 permission.
-.Pp
+
 LUCENT DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
 INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS.
 IN NO EVENT SHALL LUCENT OR ANY OF ITS ENTITIES BE LIABLE FOR ANY
@@ -182,3 +182,4 @@
 IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
 ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF
 THIS SOFTWARE.
+.Ed

==== //depot/projects/ia64/lib/libc/sys/jail.2#5 (text+ko) ====

@@ -6,13 +6,13 @@
 .\"this stuff is worth it, you can buy me a beer in return.   Poul-Henning Kamp
 .\"----------------------------------------------------------------------------
 .\"
-.\"$FreeBSD: src/lib/libc/sys/jail.2,v 1.23 2003/04/09 02:55:17 mike Exp $
+.\"$FreeBSD: src/lib/libc/sys/jail.2,v 1.24 2003/05/22 13:02:28 ru Exp $
 .\"
 .Dd April 8, 2003
 .Dt JAIL 2
 .Os
 .Sh NAME
-.Nm jail
+.Nm jail , jail_attach
 .Nd imprison current process and future decendants
 .Sh LIBRARY
 .Lb libc
@@ -59,21 +59,16 @@
 .Fn jail_attach
 system call attaches the current process to an existing jail,
 identified by
-.Va jid .
+.Fa jid .
 .Sh RETURN VALUES
 If successful,
 .Fn jail
 returns a non-negative integer, termed the jail identifier (JID).
-It returns -1 on failure, and sets
+It returns \-1 on failure, and sets
 .Va errno
 to indicate the error.
 .Pp
-If successful,
-.Fn jail_attach
-returns 0.
-It returns -1 on failure, and sets
-.Va errno
-to indicate the error.
+.Rv -std jail_attach
 .Sh PRISON?
 Once a process has been put in a prison, it and its decendants cannot escape
 the prison.

==== //depot/projects/ia64/lib/libc/sys/sendfile.2#5 (text+ko) ====

@@ -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.17 2003/03/12 09:28:44 seanc Exp $
+.\" $FreeBSD: src/lib/libc/sys/sendfile.2,v 1.18 2003/05/22 13:02:28 ru Exp $
 .\"
 .Dd November 5, 1998
 .Dt SENDFILE 2
@@ -107,22 +107,22 @@
 .Fn sendfile
 is "zero-copy", meaning that it has been optimized so that copying of the file data is avoided.
 .Sh TUNING
-Internally this system call uses a special
+Internally, this system call uses a special
 .Xr sendfile 2
 buffer
-.Pq Fa "struct sf_buf"
+.Pq Vt "struct sf_buf"
 to handle sending file data to the client.
 If the sending socket is
-blocking and there are not enough sendfile buffers available,
+blocking, and there are not enough sendfile buffers available,
 .Xr sendfile 2
 will block and report a state of
-.Dq sfbufa .
+.Dq Li sfbufa .
 If the sending socket is non-blocking and there are not enough
 sendfile buffers available, the call will block and wait for the
 necessary buffers to become available before finishing the call.
 .Pp
 The number of
-.Fa sf_buf Ns 's
+.Vt sf_buf Ns 's
 allocated should be proportional to the number of nmbclusters used to
 send data to a client via
 .Xr sendfile 2 .
@@ -130,19 +130,21 @@
 Busy installations that make extensive use of
 .Xr sendfile 2
 may want to increase these values to be inline with their
-.Ar kern.ipc.nmbclusters
-.Pq see Xr tuning 7 for details .
+.Va kern.ipc.nmbclusters
+(see
+.Xr tuning 7
+for details).
 .Pp
 The number of
 .Xr sendfile 2
 buffers in use is determined at boot time by either the
-.Em kern.ipc.nsfbufs
+.Va kern.ipc.nsfbufs
 .Xr loader.conf 5
 variable or the
-.Em NSFBUFS
+.Dv NSFBUFS
 kernel configuration tunable.
 The number of sendfile buffers scales with
-.Em kern.maxusers .
+.Va kern.maxusers .
 .Sh RETURN VALUES
 .Rv -std sendfile
 .Sh ERRORS
@@ -198,8 +200,8 @@
 .Xr open 2 ,
 .Xr send 2 ,
 .Xr socket 2 ,
-.Xr tuning 7 ,
-.Xr writev 2
+.Xr writev 2 ,
+.Xr tuning 7
 .Sh HISTORY
 The
 .Fn sendfile

==== //depot/projects/ia64/lib/libc/sys/stat.2#7 (text+ko) ====

@@ -30,7 +30,7 @@
 .\" SUCH DAMAGE.
 .\"
 .\"     @(#)stat.2	8.4 (Berkeley) 5/1/95
-.\" $FreeBSD: src/lib/libc/sys/stat.2,v 1.32 2003/05/13 08:10:05 dougb Exp $
+.\" $FreeBSD: src/lib/libc/sys/stat.2,v 1.33 2003/05/22 13:02:28 ru Exp $
 .\"
 .Dd February 15, 2002
 .Dt STAT 2
@@ -90,8 +90,8 @@
 The time-related fields of
 .Fa struct stat
 are as follows:
-.Bl -tag -width XXXst_mtime
-.It st_atime
+.Bl -tag -width ".Va st_birthtime"
+.It Va st_atime
 Time when file data last accessed.
 Changed by the
 .Xr mknod 2 ,
@@ -99,7 +99,7 @@
 and
 .Xr read 2
 system calls.
-.It st_mtime
+.It Va st_mtime
 Time when file data last modified.
 Changed by the
 .Xr mknod 2 ,
@@ -107,7 +107,7 @@
 and
 .Xr write 2
 system calls.
-.It st_ctime
+.It Va st_ctime
 Time when file status was last changed (inode data modification).
 Changed by the
 .Xr chmod 2 ,
@@ -120,7 +120,7 @@
 and
 .Xr write 2
 system calls.
-.It st_birthtime
+.It Va st_birthtime
 Time when the inode was created.
 .El
 .Pp

==== //depot/projects/ia64/lib/libdevstat/devstat.3#4 (text+ko) ====

@@ -25,7 +25,7 @@
 .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
 .\" SUCH DAMAGE.
 .\"
-.\" $FreeBSD: src/lib/libdevstat/devstat.3,v 1.22 2003/03/18 13:45:08 phk Exp $
+.\" $FreeBSD: src/lib/libdevstat/devstat.3,v 1.23 2003/05/22 13:02:28 ru Exp $
 .\"
 .Dd July 15, 2001
 .Dt DEVSTAT 3
@@ -40,7 +40,7 @@
 .Nm devstat_selectdevs ,
 .Nm devstat_buildmatch ,
 .Nm devstat_compute_statistics ,
-.Nm devstat_compute_etime ,
+.Nm devstat_compute_etime
 .Nd device statistics utility library
 .Sh LIBRARY
 .Lb libdevstat
@@ -553,7 +553,7 @@
 .It DSM_MB_PER_SECOND_FREE
 type: long double *
 .Pp
-The average number of megabytesper second in the specified type of
+The average number of megabytes per second in the specified type of
 transaction between the acquisition of
 .Va previous
 and
@@ -600,7 +600,7 @@
 and
 .Va current .
 .It DSM_BUSY_PCT
-type long double *
+type: long double *
 .Pp
 The percentage of time the device had one or more transactions outstanding
 between the acquisition of

==== //depot/projects/ia64/lib/libfetch/fetch.3#7 (text+ko) ====

@@ -22,7 +22,7 @@
 .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
 .\" SUCH DAMAGE.
 .\"
-.\" $FreeBSD: src/lib/libfetch/fetch.3,v 1.52 2003/03/03 12:35:03 des Exp $
+.\" $FreeBSD: src/lib/libfetch/fetch.3,v 1.53 2003/05/22 13:02:28 ru Exp $
 .\"
 .Dd July 1, 1998
 .Dt FETCH 3
@@ -444,7 +444,7 @@
 The accompanying error message includes a protocol-specific error code
 and message, e.g. "File is not available (404 Not Found)"
 .Sh ENVIRONMENT
-.Bl -tag -width FETCH_BIND_ADDRESS
+.Bl -tag -width ".Ev FETCH_BIND_ADDRESS"
 .It Ev FETCH_BIND_ADDRESS
 Specifies a hostname or IP address to which sockets used for outgoing
 connections will be bound.

==== //depot/projects/ia64/lib/libthr/arch/i386/i386/_setcurthread.c#3 (text+ko) ====

@@ -23,27 +23,35 @@
  * (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/libthr/arch/i386/i386/_setcurthread.c,v 1.4 2003/05/06 02:33:49 mtm Exp $
+ * $FreeBSD: src/lib/libthr/arch/i386/i386/_setcurthread.c,v 1.5 2003/05/21 08:21:24 mtm Exp $
  */
 
 #include <sys/types.h>
 #include <sys/ucontext.h>
 
+#include <pthread.h>
 #include <stdio.h>
 
 #include <machine/sysarch.h>
 #include <machine/segments.h>
 
+#include "thr_private.h"
+
 #define	MAXTHR	128
 
 #define	LDT_INDEX(x)	(((long)(x) - (long)ldt_entries) / sizeof(ldt_entries[0]))
 
-void **ldt_free = NULL;
-static int ldt_inited = 0;
-void *ldt_entries[MAXTHR];
+void		**ldt_free = NULL;
+void		 *ldt_entries[MAXTHR];
+static int	  ldt_inited = 0;
+static spinlock_t ldt_lock = _SPINLOCK_INITIALIZER;
 
 static void ldt_init(void);
 
+/*
+ * Initialize the array of ldt_entries and the next free slot.
+ * This routine must be called with the global ldt lock held.
+ */
 static void
 ldt_init(void)
 {
@@ -62,21 +70,32 @@
 void
 _retire_thread(void *entry)
 {
+	_SPINLOCK(&ldt_lock);
 	if (ldt_free == NULL)
 		*(void **)entry = NULL;
 	else
 		*(void **)entry = *ldt_free;
 	ldt_free = entry;
+	_SPINUNLOCK(&ldt_lock);
 }
 
 void *
-_set_curthread(ucontext_t *uc, void *thr)
+_set_curthread(ucontext_t *uc, struct pthread *thr)
 {
 	union descriptor desc;
 	void **ldt_entry;
 	int ldt_index;
 	int error;
 
+	/*
+	 * If we are setting up the initial thread, the gs register
+	 * won't be setup for the current thread. In any case, we
+	 * don't need protection from re-entrancy at this point in
+	 * the life of the program.
+	 */
+	if (thr != _thread_initial)
+		_SPINLOCK(&ldt_lock);
+
 	if (ldt_inited == NULL)
 		ldt_init();
 
@@ -89,11 +108,14 @@
 	ldt_entry = ldt_free;
 	ldt_free = (void **)*ldt_entry;
 
+	if (thr != _thread_initial)
+		_SPINUNLOCK(&ldt_lock);
+
 	/*
 	 * Cache the address of the thread structure here.  This is
 	 * what the gs register will point to.
 	 */
-	*ldt_entry = thr;
+	*ldt_entry = (void *)thr;
 	ldt_index = LDT_INDEX(ldt_entry);
 
 	bzero(&desc, sizeof(desc));

==== //depot/projects/ia64/lib/libthr/thread/thr_cond.c#3 (text+ko) ====

@@ -29,7 +29,7 @@
  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  * SUCH DAMAGE.
  *
- * $FreeBSD: src/lib/libthr/thread/thr_cond.c,v 1.4 2003/05/15 18:17:13 mtm Exp $
+ * $FreeBSD: src/lib/libthr/thread/thr_cond.c,v 1.5 2003/05/21 03:41:07 mtm Exp $
  */
 #include <stdlib.h>
 #include <errno.h>
@@ -518,7 +518,15 @@
 cond_queue_enq(pthread_cond_t cond, pthread_t pthread)
 {
 	pthread_t tid = TAILQ_LAST(&cond->c_queue, cond_head);
+	char *name;
 
+	name = pthread->name ? pthread->name : "unknown";
+	if ((pthread->flags & PTHREAD_FLAGS_IN_CONDQ) != 0)
+		_thread_printf(2, "Thread (%s:%u) already on condq\n",
+		    pthread->name, pthread->uniqueid);
+	if ((pthread->flags & PTHREAD_FLAGS_IN_MUTEXQ) != 0)
+		_thread_printf(2, "Thread (%s:%u) already on mutexq\n",
+		    pthread->name, pthread->uniqueid);
 	PTHREAD_ASSERT_NOT_IN_SYNCQ(pthread);
 
 	/*

==== //depot/projects/ia64/lib/libthr/thread/thr_create.c#4 (text+ko) ====

@@ -29,7 +29,7 @@
  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  * SUCH DAMAGE.
  *
- * $FreeBSD: src/lib/libthr/thread/thr_create.c,v 1.4 2003/04/20 02:56:12 marcel Exp $
+ * $FreeBSD: src/lib/libthr/thread/thr_create.c,v 1.5 2003/05/21 03:34:54 mtm Exp $
  */
 #include <errno.h>
 #include <stdlib.h>
@@ -200,10 +200,8 @@
 	 * Start a garbage collector thread
 	 * if necessary.
 	 */
-#if 0
 	if (f_gc && pthread_create(&gc_thread,NULL, _thread_gc,NULL) != 0)
 		PANIC("Can't create gc thread");
-#endif
 
 	return (0);
 }

==== //depot/projects/ia64/lib/libthr/thread/thr_exit.c#2 (text+ko) ====

@@ -29,7 +29,7 @@
  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  * SUCH DAMAGE.

>>> TRUNCATED FOR MAIL (1000 lines) <<<


More information about the p4-projects mailing list