CVS commit: src/share/man/man3

2024-03-09 Thread David H. Gutteridge
Module Name:src
Committed By:   gutteridge
Date:   Sat Mar  9 18:43:39 UTC 2024

Modified Files:
src/share/man/man3: dlfcn.3

Log Message:
dlfcn.3: remove duplicated dlopen() entry


To generate a diff of this commit:
cvs rdiff -u -r1.41 -r1.42 src/share/man/man3/dlfcn.3

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/share/man/man3

2024-03-09 Thread David H. Gutteridge
Module Name:src
Committed By:   gutteridge
Date:   Sat Mar  9 18:43:39 UTC 2024

Modified Files:
src/share/man/man3: dlfcn.3

Log Message:
dlfcn.3: remove duplicated dlopen() entry


To generate a diff of this commit:
cvs rdiff -u -r1.41 -r1.42 src/share/man/man3/dlfcn.3

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/share/man/man3/dlfcn.3
diff -u src/share/man/man3/dlfcn.3:1.41 src/share/man/man3/dlfcn.3:1.42
--- src/share/man/man3/dlfcn.3:1.41	Sat Mar  9 15:21:38 2024
+++ src/share/man/man3/dlfcn.3	Sat Mar  9 18:43:39 2024
@@ -1,4 +1,4 @@
-.\"	$NetBSD: dlfcn.3,v 1.41 2024/03/09 15:21:38 uwe Exp $
+.\"	$NetBSD: dlfcn.3,v 1.42 2024/03/09 18:43:39 gutteridge Exp $
 .\"
 .\" Copyright (c) 1998 The NetBSD Foundation, Inc.
 .\" All rights reserved.
@@ -50,8 +50,6 @@ dynamically linked program automatically
 .Fn _dlauxinfo "void"
 .Ft "void *"
 .Fn dlopen "const char *path" "int mode"
-.Ft "void *"
-.Fn dlopen "const char *path" "int mode"
 .Ft "int"
 .Fn dlclose "void *handle"
 .Ft "void *"



CVS commit: src/share/man/man3

2024-03-09 Thread Valery Ushakov
Module Name:src
Committed By:   uwe
Date:   Sat Mar  9 15:21:38 UTC 2024

Modified Files:
src/share/man/man3: dlfcn.3

Log Message:
dlfcn(3): touch up markup


To generate a diff of this commit:
cvs rdiff -u -r1.40 -r1.41 src/share/man/man3/dlfcn.3

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/share/man/man3/dlfcn.3
diff -u src/share/man/man3/dlfcn.3:1.40 src/share/man/man3/dlfcn.3:1.41
--- src/share/man/man3/dlfcn.3:1.40	Thu Mar  7 22:14:20 2024
+++ src/share/man/man3/dlfcn.3	Sat Mar  9 15:21:38 2024
@@ -1,4 +1,4 @@
-.\"	$NetBSD: dlfcn.3,v 1.40 2024/03/07 22:14:20 christos Exp $
+.\"	$NetBSD: dlfcn.3,v 1.41 2024/03/09 15:21:38 uwe Exp $
 .\"
 .\" Copyright (c) 1998 The NetBSD Foundation, Inc.
 .\" All rights reserved.
@@ -74,7 +74,9 @@ The
 .Fn _dlauxinfo
 function returns a pointer to the
 .Xr elf 5
-array of AuxInfo structures for the current executable.
+array of
+.Vt AuxInfo
+structures for the current executable.
 .Pp
 The
 .Fn dlopen
@@ -88,14 +90,16 @@ only the path provided will be searched.
 When just a shared object name is specified, the same search rules apply that
 are used for
 .Dq intrinsic
-shared object searches.
+shared object searches
 .Po
 see
 .Xr ld.elf_so 1
-.Pc
+.Pc .
 .Pp
 Shared libraries take the following form:
-.Do lib Ns Ao name Ac Ns .so Ns Oo .xx Ns Oo .yy Oc Oc Dc .
+.Sm off
+.Ic lib\^ Ao Ar name Ac Ic .so Oo Ic \&. Ar xx\^ Oo Ic \&. Ar yy\^ Oc Oc .
+.Sm on
 .Pp
 The shared object is mapped into the address space, relocated, and
 its external references are resolved in the same way as is done
@@ -134,8 +138,9 @@ other objects.
 This is the default value if visibility is unspecified.
 .El
 .Pp
-To specify both resolution time and visibility, bitwise inclusive OR one of
-each of the above values together.
+To specify both resolution time and visibility, bitwise inclusive
+.Tn OR
+one of each of the above values together.
 If an object was opened with
 .Dv RTLD_LOCAL
 and later opened with
@@ -143,7 +148,9 @@ and later opened with
 then it is promoted to
 .Dv RTLD_GLOBAL .
 .Pp
-Additionally, one of the following flags may be ORed into the
+Additionally, one of the following flags may be
+.Tn OR Ap ed
+into the
 .Fa mode
 argument:
 .Bl -tag -width ".Dv RTLD_NODELETE" -offset indent
@@ -272,8 +279,7 @@ is between the base address of the share
 symbol
 .Va _end
 in the same shared object.
-If no object for which this condition holds
-true can be found,
+If no object for which this condition holds true can be found,
 .Fn dladdr
 will return 0.
 Otherwise, a non-zero value is returned and the
@@ -295,11 +301,11 @@ typedef struct {
 .Ed
 .Pp
 The structure members are further described as follows:
-.Bl -tag -width "Va"
-.It Va dli_fname
+.Bl -tag -width Fa
+.It Fa dli_fname
 The pathname of the shared object containing the address
 .Fa addr .
-.It Va dli_fbase
+.It Fa dli_fbase
 The base address at which this shared object is loaded in the process
 address space.
 This may be zero if the symbol was found in the internally generated
@@ -310,18 +316,19 @@ see
 .Xr link 5
 .Pc
 which is not associated with a file.
-.It Va dli_sname
+.It Fa dli_sname
 points at the nul-terminated name of the selected symbol
-.It Va dli_saddr
+.It Fa dli_saddr
 is the actual address
 .Pq as it appears in the process address space
 of the symbol.
 .El
 .Pp
-Note: both strings pointed at by
-.Va dli_fname
+.Em Note :
+both strings pointed at by
+.Fa dli_fname
 and
-.Va dli_sname
+.Fa dli_sname
 reside in memory private to the run-time linker module and should not
 be modified by the caller.
 .Pp
@@ -353,11 +360,14 @@ a second time, immediately following a p
 .Dv NULL
 being returned.
 .Sh ERRORS
-The error
-.Dq Cannot dlopen non-loadable /usr/lib/libpthread.so.1
-is generated when a program
-.Fn dlopen Ns No s
-a module that needs libpthread but isn't linked against it itself.
+.Bl -diag
+.It Cannot dlopen non-loadable /usr/lib/libpthread.so.1
+A program tries to
+.Fn dlopen
+a module that needs
+.Lb libpthread
+but the program isn't linked against it itself.
+.El
 .Sh SEE ALSO
 .Xr ld 1 ,
 .Xr rtld 1 ,
@@ -366,4 +376,4 @@ a module that needs libpthread but isn't
 .Sh HISTORY
 Some of the
 .Nm dl*
-functions first appeared in SunOS 4.
+functions first appeared in SunOS\~4.



CVS commit: src/share/man/man3

2024-03-09 Thread Valery Ushakov
Module Name:src
Committed By:   uwe
Date:   Sat Mar  9 15:21:38 UTC 2024

Modified Files:
src/share/man/man3: dlfcn.3

Log Message:
dlfcn(3): touch up markup


To generate a diff of this commit:
cvs rdiff -u -r1.40 -r1.41 src/share/man/man3/dlfcn.3

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/share/man/man3

2024-03-07 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Thu Mar  7 22:14:20 UTC 2024

Modified Files:
src/share/man/man3: Makefile dlfcn.3

Log Message:
Add _dlauxinfo


To generate a diff of this commit:
cvs rdiff -u -r1.91 -r1.92 src/share/man/man3/Makefile
cvs rdiff -u -r1.39 -r1.40 src/share/man/man3/dlfcn.3

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/share/man/man3

2024-03-07 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Thu Mar  7 22:14:20 UTC 2024

Modified Files:
src/share/man/man3: Makefile dlfcn.3

Log Message:
Add _dlauxinfo


To generate a diff of this commit:
cvs rdiff -u -r1.91 -r1.92 src/share/man/man3/Makefile
cvs rdiff -u -r1.39 -r1.40 src/share/man/man3/dlfcn.3

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/share/man/man3/Makefile
diff -u src/share/man/man3/Makefile:1.91 src/share/man/man3/Makefile:1.92
--- src/share/man/man3/Makefile:1.91	Sat Jan 22 03:58:48 2022
+++ src/share/man/man3/Makefile	Thu Mar  7 17:14:20 2024
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile,v 1.91 2022/01/22 08:58:48 skrll Exp $
+#	$NetBSD: Makefile,v 1.92 2024/03/07 22:14:20 christos Exp $
 #	@(#)Makefile	8.2 (Berkeley) 12/13/93
 
 MAN=	_DIAGASSERT.3 __CONCAT.3 __FPTRCAST.3 __UNCONST.3 __USE.3 CMSG_DATA.3 \
@@ -243,7 +243,8 @@ MLINKS+=param.3 MAX.3 \
 MLINKS+=dirent.3 dir.3 \
 	dirent.3 IFTODT.3 \
 	dirent.3 DTTOIF.3
-MLINKS+=dlfcn.3 dlopen.3 dlfcn.3 dlclose.3 dlfcn.3 dlsym.3 dlfcn.3 dlctl.3 \
+MLINKS+=dlfcn.3 _dlauxinfo.3 dlfcn.3 dlopen.3 dlfcn.3 \
+	dlclose.3 dlfcn.3 dlsym.3 dlfcn.3 dlctl.3 \
 	dlfcn.3 dlerror.3 dlfcn.3 dladdr.3 dlfcn.3 dlvsym.3
 MLINKS+=timeradd.3 timersub.3 \
 	timeradd.3 timerclear.3 \

Index: src/share/man/man3/dlfcn.3
diff -u src/share/man/man3/dlfcn.3:1.39 src/share/man/man3/dlfcn.3:1.40
--- src/share/man/man3/dlfcn.3:1.39	Mon Jan 13 11:01:37 2020
+++ src/share/man/man3/dlfcn.3	Thu Mar  7 17:14:20 2024
@@ -1,4 +1,4 @@
-.\"	$NetBSD: dlfcn.3,v 1.39 2020/01/13 16:01:37 uwe Exp $
+.\"	$NetBSD: dlfcn.3,v 1.40 2024/03/07 22:14:20 christos Exp $
 .\"
 .\" Copyright (c) 1998 The NetBSD Foundation, Inc.
 .\" All rights reserved.
@@ -27,10 +27,11 @@
 .\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
 .\" POSSIBILITY OF SUCH DAMAGE.
 .\"
-.Dd January 13, 2020
+.Dd March 7, 2024
 .Dt DLFCN 3
 .Os
 .Sh NAME
+.Nm _dlauxinfo ,
 .Nm dlopen ,
 .Nm dlclose ,
 .Nm dlsym ,
@@ -46,6 +47,10 @@ dynamically linked program automatically
 .Sh SYNOPSIS
 .In dlfcn.h
 .Ft "void *"
+.Fn _dlauxinfo "void"
+.Ft "void *"
+.Fn dlopen "const char *path" "int mode"
+.Ft "void *"
 .Fn dlopen "const char *path" "int mode"
 .Ft "int"
 .Fn dlclose "void *handle"
@@ -66,6 +71,12 @@ They allow new shared objects to be load
 under program control.
 .Pp
 The
+.Fn _dlauxinfo
+function returns a pointer to the
+.Xr elf 5
+array of AuxInfo structures for the current executable.
+.Pp
+The
 .Fn dlopen
 function takes the name of a shared object as the first argument.
 The



CVS commit: src/share/man/man3

2022-03-06 Thread Andrius Varanavicius
Module Name:src
Committed By:   andvar
Date:   Sun Mar  6 23:36:01 UTC 2022

Modified Files:
src/share/man/man3: dlinfo.3

Log Message:
s/sarch/search/ in commented part.


To generate a diff of this commit:
cvs rdiff -u -r1.6 -r1.7 src/share/man/man3/dlinfo.3

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/share/man/man3/dlinfo.3
diff -u src/share/man/man3/dlinfo.3:1.6 src/share/man/man3/dlinfo.3:1.7
--- src/share/man/man3/dlinfo.3:1.6	Mon Jan 13 14:25:06 2020
+++ src/share/man/man3/dlinfo.3	Sun Mar  6 23:36:01 2022
@@ -1,4 +1,4 @@
-.\"	$NetBSD: dlinfo.3,v 1.6 2020/01/13 14:25:06 kamil Exp $
+.\"	$NetBSD: dlinfo.3,v 1.7 2022/03/06 23:36:01 andvar Exp $
 .\"
 .\" Copyright (c) 2003 Alexey Zelkin 
 .\" All rights reserved.
@@ -246,7 +246,7 @@ while (map != NULL) {
 .\" info->dls_size = _info.dls_size;
 .\" info->dls_cnt = _info.dls_cnt;
 .\"
-.\" /* obtain sarch path information */
+.\" /* obtain search path information */
 .\" dlinfo(RTLD_SELF, RTLD_DI_SERINFO, (void *)info);
 .\"
 .\" path = >dls_serpath[0];



CVS commit: src/share/man/man3

2022-03-06 Thread Andrius Varanavicius
Module Name:src
Committed By:   andvar
Date:   Sun Mar  6 23:36:01 UTC 2022

Modified Files:
src/share/man/man3: dlinfo.3

Log Message:
s/sarch/search/ in commented part.


To generate a diff of this commit:
cvs rdiff -u -r1.6 -r1.7 src/share/man/man3/dlinfo.3

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/share/man/man3

2022-01-22 Thread Thomas Klausner
Module Name:src
Committed By:   wiz
Date:   Sat Jan 22 09:22:41 UTC 2022

Modified Files:
src/share/man/man3: bits.3

Log Message:
New sentence, new line.


To generate a diff of this commit:
cvs rdiff -u -r1.21 -r1.22 src/share/man/man3/bits.3

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/share/man/man3

2022-01-22 Thread Thomas Klausner
Module Name:src
Committed By:   wiz
Date:   Sat Jan 22 09:22:41 UTC 2022

Modified Files:
src/share/man/man3: bits.3

Log Message:
New sentence, new line.


To generate a diff of this commit:
cvs rdiff -u -r1.21 -r1.22 src/share/man/man3/bits.3

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/share/man/man3/bits.3
diff -u src/share/man/man3/bits.3:1.21 src/share/man/man3/bits.3:1.22
--- src/share/man/man3/bits.3:1.21	Sat Jan 22 08:58:48 2022
+++ src/share/man/man3/bits.3	Sat Jan 22 09:22:41 2022
@@ -1,4 +1,4 @@
-.\"	$NetBSD: bits.3,v 1.21 2022/01/22 08:58:48 skrll Exp $
+.\"	$NetBSD: bits.3,v 1.22 2022/01/22 09:22:41 wiz Exp $
 .\"
 .\" Copyright (c) 2006, 2010 David Young.  All rights reserved.
 .\"
@@ -84,7 +84,8 @@ The least significant bit is bit 0.
 .It Fn __MASK "n"
 Return a bitmask with the first
 .Fa n
-bits set. That is, bits 0 through
+bits set.
+That is, bits 0 through
 .Fa n
 - 1, inclusive, set.
 .El



CVS commit: src/share/man/man3

2022-01-19 Thread Nick Hudson
Module Name:src
Committed By:   skrll
Date:   Thu Jan 20 07:30:25 UTC 2022

Modified Files:
src/share/man/man3: bits.3

Log Message:
Add return type of the __SHIFT* macros.  Bump date.

"looks right to me" from mrg@


To generate a diff of this commit:
cvs rdiff -u -r1.19 -r1.20 src/share/man/man3/bits.3

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/share/man/man3/bits.3
diff -u src/share/man/man3/bits.3:1.19 src/share/man/man3/bits.3:1.20
--- src/share/man/man3/bits.3:1.19	Mon Jun  8 17:28:10 2020
+++ src/share/man/man3/bits.3	Thu Jan 20 07:30:25 2022
@@ -1,4 +1,4 @@
-.\"	$NetBSD: bits.3,v 1.19 2020/06/08 17:28:10 sevan Exp $
+.\"	$NetBSD: bits.3,v 1.20 2022/01/20 07:30:25 skrll Exp $
 .\"
 .\" Copyright (c) 2006, 2010 David Young.  All rights reserved.
 .\"
@@ -25,7 +25,7 @@
 .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
 .\" POSSIBILITY OF SUCH DAMAGE.
 .\"
-.Dd November 6, 2016
+.Dd January 20, 2022
 .Dt BITS 3
 .Os
 .Sh NAME
@@ -42,8 +42,11 @@
 .Fn __BIT "n"
 .Ft uintmax_t
 .Fn __BITS "m" "n"
+.Ft uintmax_t
 .Fn __SHIFTIN "v" "mask"
+.Ft uintmax_t
 .Fn __SHIFTOUT "v" "mask"
+.Ft uintmax_t
 .Fn __SHIFTOUT_MASK "mask"
 .Sh DESCRIPTION
 These macros prepare bitmasks, extract bitfields from words, and



CVS commit: src/share/man/man3

2022-01-19 Thread Nick Hudson
Module Name:src
Committed By:   skrll
Date:   Thu Jan 20 07:30:25 UTC 2022

Modified Files:
src/share/man/man3: bits.3

Log Message:
Add return type of the __SHIFT* macros.  Bump date.

"looks right to me" from mrg@


To generate a diff of this commit:
cvs rdiff -u -r1.19 -r1.20 src/share/man/man3/bits.3

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/share/man/man3

2021-11-05 Thread Taylor R Campbell
Module Name:src
Committed By:   riastradh
Date:   Fri Nov  5 22:39:36 UTC 2021

Modified Files:
src/share/man/man3: ilog2.3

Log Message:
Rework ilog2(3) man page.

- Tweak title.
- Clarify semantics -- round down, not any other way.
- xref ffs(3)
- Fix return type: int.
- Fix language about input type.
  . Any unsigned type is fine.
  . Types smaller than uint32_t will be safely converted to uint32_t.
- Note that it is a constant expression if x is constant.


To generate a diff of this commit:
cvs rdiff -u -r1.5 -r1.6 src/share/man/man3/ilog2.3

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/share/man/man3/ilog2.3
diff -u src/share/man/man3/ilog2.3:1.5 src/share/man/man3/ilog2.3:1.6
--- src/share/man/man3/ilog2.3:1.5	Tue May 10 06:39:45 2011
+++ src/share/man/man3/ilog2.3	Fri Nov  5 22:39:35 2021
@@ -1,4 +1,4 @@
-.\" $NetBSD: ilog2.3,v 1.5 2011/05/10 06:39:45 jruoho Exp $ $
+.\" $NetBSD: ilog2.3,v 1.6 2021/11/05 22:39:35 riastradh Exp $ $
 .\"
 .\" Copyright (c) 2010 The NetBSD Foundation, Inc.
 .\" All rights reserved.
@@ -27,34 +27,53 @@
 .\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
 .\" POSSIBILITY OF SUCH DAMAGE.
 .\"
-.Dd May 10, 2011
+.Dd November 5, 2021
 .Dt ILOG2 3
 .Os
 .Sh NAME
 .Nm ilog2
-.Nd integer logarithm
+.Nd integer base-2 logarithm
 .Sh SYNOPSIS
 .In sys/bitops.h
-.Ft size
+.Ft int
 .Fn ilog2 "size x"
 .Sh DESCRIPTION
-The
+For positive
+.Fa x ,
+the
 .Fn ilog2
-macro returns an integer (binary) logarithm of
-.Fa x .
-It is the logarithm for base 2; the binary logarithm of
-.Fa x
-is the power to which the number 2 must be raised to obtain the value
+macro returns the integer part of the base-2 logarithm of
+.Fa x ;
+that is,
+.Fo floor
+.Fn log_2 x
+.Fc .
+If
+.Fa n Li = Fn ilog2 x ,
+then
+.Fa n
+is the largest integer such that
+.No 2** Ns Fa n Li <= Fa x ;
+in other words,
+.Fn ilog2
+returns the largest integer to which 2 can be raised to obtain a value
+at most
 .Fa x .
 .Pp
-The type of the input parameter should be either
-.Vt uint32_t
-or
-.Vt uint64_t .
+The type of the input parameter must be unsigned.
+.Pp
+If
+.Fa x
+is a constant expression, then so is
+.Fn ilog2 x .
 .Sh ERRORS
-A value \-1 is returned on error.
+.Fn ilog2
+returns \-1 when
+.Fa x
+is zero.
 .Sh SEE ALSO
 .Xr bitops 3 ,
+.Xr ffs 3 ,
 .Xr ilogb 3 ,
 .Xr log2 3 ,
 .Xr imax 9 ,



CVS commit: src/share/man/man3

2021-11-05 Thread Taylor R Campbell
Module Name:src
Committed By:   riastradh
Date:   Fri Nov  5 22:39:36 UTC 2021

Modified Files:
src/share/man/man3: ilog2.3

Log Message:
Rework ilog2(3) man page.

- Tweak title.
- Clarify semantics -- round down, not any other way.
- xref ffs(3)
- Fix return type: int.
- Fix language about input type.
  . Any unsigned type is fine.
  . Types smaller than uint32_t will be safely converted to uint32_t.
- Note that it is a constant expression if x is constant.


To generate a diff of this commit:
cvs rdiff -u -r1.5 -r1.6 src/share/man/man3/ilog2.3

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/share/man/man3

2021-04-14 Thread Nia Alarie
Module Name:src
Committed By:   nia
Date:   Wed Apr 14 07:56:23 UTC 2021

Modified Files:
src/share/man/man3: intro.3

Log Message:
OpenSSL man pages have moved


To generate a diff of this commit:
cvs rdiff -u -r1.35 -r1.36 src/share/man/man3/intro.3

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/share/man/man3/intro.3
diff -u src/share/man/man3/intro.3:1.35 src/share/man/man3/intro.3:1.36
--- src/share/man/man3/intro.3:1.35	Wed Apr 14 07:52:53 2021
+++ src/share/man/man3/intro.3	Wed Apr 14 07:56:23 2021
@@ -1,4 +1,4 @@
-.\"	$NetBSD: intro.3,v 1.35 2021/04/14 07:52:53 nia Exp $
+.\"	$NetBSD: intro.3,v 1.36 2021/04/14 07:56:23 nia Exp $
 .\"
 .\" Copyright (c) 1980, 1991, 1993
 .\"	The Regents of the University of California.  All rights reserved.
@@ -123,7 +123,7 @@ See
 .It Em libcrypto Pq Fl l Ns Ar crypto
 The OpenSSL cryptographic library.
 See
-.Xr crypto 3 .
+.Xr crypto 7 .
 .It Em libcurses Pq Fl l Ns Ar curses Fl l Ns Ar terminfo
 Terminal independent screen management routines
 for two dimensional non-bitmap display terminals.
@@ -281,7 +281,7 @@ See
 .It Em libssl Pq Fl l Ns Ar ssl
 The secure sockets layer (SSL) library.
 See
-.Xr ssl 3 .
+.Xr ssl 7 .
 .It Em libtelnet Pq Fl l Ns Ar telnet
 The telnet library.
 .It Em libterminfo Pq Fl l Ns Ar terminfo



CVS commit: src/share/man/man3

2021-04-14 Thread Nia Alarie
Module Name:src
Committed By:   nia
Date:   Wed Apr 14 07:56:23 UTC 2021

Modified Files:
src/share/man/man3: intro.3

Log Message:
OpenSSL man pages have moved


To generate a diff of this commit:
cvs rdiff -u -r1.35 -r1.36 src/share/man/man3/intro.3

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/share/man/man3

2021-04-14 Thread Nia Alarie
Module Name:src
Committed By:   nia
Date:   Wed Apr 14 07:52:53 UTC 2021

Modified Files:
src/share/man/man3: intro.3

Log Message:
intro.3: add a few


To generate a diff of this commit:
cvs rdiff -u -r1.34 -r1.35 src/share/man/man3/intro.3

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/share/man/man3/intro.3
diff -u src/share/man/man3/intro.3:1.34 src/share/man/man3/intro.3:1.35
--- src/share/man/man3/intro.3:1.34	Fri May 11 12:54:56 2018
+++ src/share/man/man3/intro.3	Wed Apr 14 07:52:53 2021
@@ -1,4 +1,4 @@
-.\"	$NetBSD: intro.3,v 1.34 2018/05/11 12:54:56 sevan Exp $
+.\"	$NetBSD: intro.3,v 1.35 2021/04/14 07:52:53 nia Exp $
 .\"
 .\" Copyright (c) 1980, 1991, 1993
 .\"	The Regents of the University of California.  All rights reserved.
@@ -29,7 +29,7 @@
 .\"
 .\" @(#)intro.3	8.1 (Berkeley) 6/5/93
 .\"
-.Dd May 11, 2018
+.Dd April 14, 2021
 .Dt INTRO 3
 .Os
 .Sh NAME
@@ -228,6 +228,15 @@ See
 The curses menu library.
 See
 .Xr menus 3 .
+.It Em libnvmm Pq Fl l Ns Ar nvmm
+.Nx
+Virtualization API.
+See
+.Xr libnvmm 3 .
+.It Em libossaudio Pq Fl l Ns Ar ossaudio
+Open Sound System compatibility library.
+See
+.Xr ossaudio 3 .
 .It Em libpanel Pq Fl l Ns Ar panel
 The curses panel library.
 See



CVS commit: src/share/man/man3

2021-04-14 Thread Nia Alarie
Module Name:src
Committed By:   nia
Date:   Wed Apr 14 07:52:53 UTC 2021

Modified Files:
src/share/man/man3: intro.3

Log Message:
intro.3: add a few


To generate a diff of this commit:
cvs rdiff -u -r1.34 -r1.35 src/share/man/man3/intro.3

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/share/man/man3

2021-02-23 Thread Roland Illig
Module Name:src
Committed By:   rillig
Date:   Tue Feb 23 16:47:04 UTC 2021

Modified Files:
src/share/man/man3: timeradd.3

Log Message:
timeradd.3: declare timespeccmp parameters as const

Comparison is implemented as a read-only operation.


To generate a diff of this commit:
cvs rdiff -u -r1.9 -r1.10 src/share/man/man3/timeradd.3

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/share/man/man3/timeradd.3
diff -u src/share/man/man3/timeradd.3:1.9 src/share/man/man3/timeradd.3:1.10
--- src/share/man/man3/timeradd.3:1.9	Tue Feb 23 09:28:00 2021
+++ src/share/man/man3/timeradd.3	Tue Feb 23 16:47:04 2021
@@ -1,4 +1,4 @@
-.\" $NetBSD: timeradd.3,v 1.9 2021/02/23 09:28:00 wiz Exp $
+.\" $NetBSD: timeradd.3,v 1.10 2021/02/23 16:47:04 rillig Exp $
 .\"
 .\" Copyright (c) 2009 Jukka Ruohonen 
 .\" Copyright (c) 1999 Kelly Yancey 
@@ -59,7 +59,7 @@
 .Ft int
 .Fn timespecisset "struct timespec *ts"
 .Ft int
-.Fn timespeccmp "struct timespec *a" "struct timespec *b" CMP
+.Fn timespeccmp "const struct timespec *a" "const struct timespec *b" CMP
 .Sh DESCRIPTION
 These macros are provided for manipulating the
 .Fa timeval



CVS commit: src/share/man/man3

2021-02-23 Thread Roland Illig
Module Name:src
Committed By:   rillig
Date:   Tue Feb 23 16:47:04 UTC 2021

Modified Files:
src/share/man/man3: timeradd.3

Log Message:
timeradd.3: declare timespeccmp parameters as const

Comparison is implemented as a read-only operation.


To generate a diff of this commit:
cvs rdiff -u -r1.9 -r1.10 src/share/man/man3/timeradd.3

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/share/man/man3

2021-02-23 Thread Thomas Klausner
Module Name:src
Committed By:   wiz
Date:   Tue Feb 23 09:28:00 UTC 2021

Modified Files:
src/share/man/man3: timeradd.3

Log Message:
Fix timespeccmp declaration.

>From Kouichi Hashikawa in PR 56010.


To generate a diff of this commit:
cvs rdiff -u -r1.8 -r1.9 src/share/man/man3/timeradd.3

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/share/man/man3/timeradd.3
diff -u src/share/man/man3/timeradd.3:1.8 src/share/man/man3/timeradd.3:1.9
--- src/share/man/man3/timeradd.3:1.8	Mon Jun  7 18:40:16 2010
+++ src/share/man/man3/timeradd.3	Tue Feb 23 09:28:00 2021
@@ -1,4 +1,4 @@
-.\" $NetBSD: timeradd.3,v 1.8 2010/06/07 18:40:16 jruoho Exp $
+.\" $NetBSD: timeradd.3,v 1.9 2021/02/23 09:28:00 wiz Exp $
 .\"
 .\" Copyright (c) 2009 Jukka Ruohonen 
 .\" Copyright (c) 1999 Kelly Yancey 
@@ -59,7 +59,7 @@
 .Ft int
 .Fn timespecisset "struct timespec *ts"
 .Ft int
-.Fn timespeccmp "struct timespec *a" "struct timespec b" CMP
+.Fn timespeccmp "struct timespec *a" "struct timespec *b" CMP
 .Sh DESCRIPTION
 These macros are provided for manipulating the
 .Fa timeval



CVS commit: src/share/man/man3

2021-02-23 Thread Thomas Klausner
Module Name:src
Committed By:   wiz
Date:   Tue Feb 23 09:28:00 UTC 2021

Modified Files:
src/share/man/man3: timeradd.3

Log Message:
Fix timespeccmp declaration.

>From Kouichi Hashikawa in PR 56010.


To generate a diff of this commit:
cvs rdiff -u -r1.8 -r1.9 src/share/man/man3/timeradd.3

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/share/man/man3

2020-06-08 Thread Sevan Janiyan
Module Name:src
Committed By:   sevan
Date:   Mon Jun  8 17:28:10 UTC 2020

Modified Files:
src/share/man/man3: bits.3 types.3

Log Message:
Pp before Bl


To generate a diff of this commit:
cvs rdiff -u -r1.18 -r1.19 src/share/man/man3/bits.3
cvs rdiff -u -r1.6 -r1.7 src/share/man/man3/types.3

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/share/man/man3/bits.3
diff -u src/share/man/man3/bits.3:1.18 src/share/man/man3/bits.3:1.19
--- src/share/man/man3/bits.3:1.18	Mon Jul  3 21:30:58 2017
+++ src/share/man/man3/bits.3	Mon Jun  8 17:28:10 2020
@@ -1,4 +1,4 @@
-.\"	$NetBSD: bits.3,v 1.18 2017/07/03 21:30:58 wiz Exp $
+.\"	$NetBSD: bits.3,v 1.19 2020/06/08 17:28:10 sevan Exp $
 .\"
 .\" Copyright (c) 2006, 2010 David Young.  All rights reserved.
 .\"
@@ -58,7 +58,6 @@ Use
 and
 .Fn __BITS
 to define bitmasks:
-.Pp
 .Bl -tag -width __BITS -offset indent
 .It Fn __BIT "n"
 Return a bitmask with bit
@@ -82,7 +81,6 @@ The least significant bit is bit 0.
 and
 .Fn __SHIFTOUT_MASK
 help read and write bitfields from words:
-.Pp
 .Bl -tag -width __SHIFTOUT_MASK -offset indent
 .It Fn __SHIFTIN "v" "mask"
 Left-shift bits

Index: src/share/man/man3/types.3
diff -u src/share/man/man3/types.3:1.6 src/share/man/man3/types.3:1.7
--- src/share/man/man3/types.3:1.6	Sun Apr 10 10:02:34 2011
+++ src/share/man/man3/types.3	Mon Jun  8 17:28:10 2020
@@ -1,4 +1,4 @@
-.\"	$NetBSD: types.3,v 1.6 2011/04/10 10:02:34 jruoho Exp $
+.\"	$NetBSD: types.3,v 1.7 2020/06/08 17:28:10 sevan Exp $
 .\"
 .\" Copyright (c) 2010 The NetBSD Foundation, Inc.
 .\" All rights reserved.
@@ -79,7 +79,6 @@ and provides additional types as well as
 .Xr param 3 ) .
 .Ss Standard Types
 The following standards-compliant system data types are defined:
-.Pp
 .Bl -column -offset indent \
 "suseconds_t " "process and process group IDs " "clock_settime(3) "
 .It Sy Type Ta Sy Typical use Ta Sy Example



CVS commit: src/share/man/man3

2020-06-08 Thread Sevan Janiyan
Module Name:src
Committed By:   sevan
Date:   Mon Jun  8 17:28:10 UTC 2020

Modified Files:
src/share/man/man3: bits.3 types.3

Log Message:
Pp before Bl


To generate a diff of this commit:
cvs rdiff -u -r1.18 -r1.19 src/share/man/man3/bits.3
cvs rdiff -u -r1.6 -r1.7 src/share/man/man3/types.3

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/share/man/man3

2020-01-13 Thread Valeriy E. Ushakov
Module Name:src
Committed By:   uwe
Date:   Mon Jan 13 16:11:54 UTC 2020

Modified Files:
src/share/man/man3: bitops.3

Log Message:
Sort the list.  Minor markup and wording tweaks.


To generate a diff of this commit:
cvs rdiff -u -r1.5 -r1.6 src/share/man/man3/bitops.3

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/share/man/man3

2020-01-13 Thread Valeriy E. Ushakov
Module Name:src
Committed By:   uwe
Date:   Mon Jan 13 16:11:54 UTC 2020

Modified Files:
src/share/man/man3: bitops.3

Log Message:
Sort the list.  Minor markup and wording tweaks.


To generate a diff of this commit:
cvs rdiff -u -r1.5 -r1.6 src/share/man/man3/bitops.3

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/share/man/man3/bitops.3
diff -u src/share/man/man3/bitops.3:1.5 src/share/man/man3/bitops.3:1.6
--- src/share/man/man3/bitops.3:1.5	Fri Dec 16 17:20:52 2016
+++ src/share/man/man3/bitops.3	Mon Jan 13 16:11:53 2020
@@ -1,4 +1,4 @@
-.\" $NetBSD: bitops.3,v 1.5 2016/12/16 17:20:52 abhinav Exp $
+.\" $NetBSD: bitops.3,v 1.6 2020/01/13 16:11:53 uwe Exp $
 .\"
 .\" Copyright (c) 2011 Jukka Ruohonen 
 .\" All rights reserved.
@@ -35,22 +35,22 @@
 .Sh DESCRIPTION
 The
 .In sys/bitops.h
-header includes macros and
-.Em static inline
+header provides macros and
+.Vt static inline
 functions related to bits and integers.
 Among these are:
-.Bl -tag -width "fast_divide32(3) " -offset indent
+.Bl -tag -width ".Xr fast_divide32 3" -offset indent
 .It Xr bitmap 3
 bitmap manipulation macros
+.It Xr fast_divide32 3
+a function for fast 32-bit division
 .It Xr ffs32 3
-functions to find the first and last bit in integers of type
+functions to find the first and last set bit in integers of type
 .Vt uint32_t
 and
 .Vt uint64_t
 .It Xr ilog2 3
 a macro for binary logarithm
-.It Xr fast_divide32 3
-a function for fast 32-bit division
 .El
 .Sh SEE ALSO
 .Xr bits 3 ,



CVS commit: src/share/man/man3

2020-01-13 Thread Valeriy E. Ushakov
Module Name:src
Committed By:   uwe
Date:   Mon Jan 13 16:01:37 UTC 2020

Modified Files:
src/share/man/man3: dlfcn.3

Log Message:
Oops.  Restore the dot lost in -width ".Dv ..."


To generate a diff of this commit:
cvs rdiff -u -r1.38 -r1.39 src/share/man/man3/dlfcn.3

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/share/man/man3/dlfcn.3
diff -u src/share/man/man3/dlfcn.3:1.38 src/share/man/man3/dlfcn.3:1.39
--- src/share/man/man3/dlfcn.3:1.38	Mon Jan 13 15:59:11 2020
+++ src/share/man/man3/dlfcn.3	Mon Jan 13 16:01:37 2020
@@ -1,4 +1,4 @@
-.\"	$NetBSD: dlfcn.3,v 1.38 2020/01/13 15:59:11 uwe Exp $
+.\"	$NetBSD: dlfcn.3,v 1.39 2020/01/13 16:01:37 uwe Exp $
 .\"
 .\" Copyright (c) 1998 The NetBSD Foundation, Inc.
 .\" All rights reserved.
@@ -104,7 +104,7 @@ The
 .Fa mode
 parameter specifies symbol resolution time and symbol visibility.
 One of the following values may be used to specify symbol resolution time:
-.Bl -tag -width "Dv RTLD_NODELETE" -offset indent
+.Bl -tag -width ".Dv RTLD_NODELETE" -offset indent
 .It Dv RTLD_NOW
 Symbols are resolved immediately.
 .It Dv RTLD_LAZY
@@ -113,7 +113,7 @@ This is the default value if resolution 
 .El
 .Pp
 One of the following values may be used to specify symbol visibility:
-.Bl -tag -width "Dv RTLD_NODELETE" -offset indent
+.Bl -tag -width ".Dv RTLD_NODELETE" -offset indent
 .It Dv RTLD_GLOBAL
 The object's symbols and the symbols of its dependencies will be visible to
 other objects.
@@ -135,7 +135,7 @@ then it is promoted to
 Additionally, one of the following flags may be ORed into the
 .Fa mode
 argument:
-.Bl -tag -width "Dv RTLD_NODELETE" -offset indent
+.Bl -tag -width ".Dv RTLD_NODELETE" -offset indent
 .It Dv RTLD_NODELETE
 Prevents unload of the loaded object on
 .Fn dlclose .



CVS commit: src/share/man/man3

2020-01-13 Thread Valeriy E. Ushakov
Module Name:src
Committed By:   uwe
Date:   Mon Jan 13 16:01:37 UTC 2020

Modified Files:
src/share/man/man3: dlfcn.3

Log Message:
Oops.  Restore the dot lost in -width ".Dv ..."


To generate a diff of this commit:
cvs rdiff -u -r1.38 -r1.39 src/share/man/man3/dlfcn.3

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/share/man/man3

2020-01-13 Thread Valeriy E. Ushakov
Module Name:src
Committed By:   uwe
Date:   Mon Jan 13 15:59:12 UTC 2020

Modified Files:
src/share/man/man3: dlfcn.3

Log Message:
Fix -width in the tagged list of special "handle" values.


To generate a diff of this commit:
cvs rdiff -u -r1.37 -r1.38 src/share/man/man3/dlfcn.3

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/share/man/man3/dlfcn.3
diff -u src/share/man/man3/dlfcn.3:1.37 src/share/man/man3/dlfcn.3:1.38
--- src/share/man/man3/dlfcn.3:1.37	Mon Jan 13 15:54:48 2020
+++ src/share/man/man3/dlfcn.3	Mon Jan 13 15:59:11 2020
@@ -1,4 +1,4 @@
-.\"	$NetBSD: dlfcn.3,v 1.37 2020/01/13 15:54:48 uwe Exp $
+.\"	$NetBSD: dlfcn.3,v 1.38 2020/01/13 15:59:11 uwe Exp $
 .\"
 .\" Copyright (c) 1998 The NetBSD Foundation, Inc.
 .\" All rights reserved.
@@ -209,7 +209,7 @@ The following special
 .Fa handle
 values may be used with
 .Fn dlsym :
-.Bl -tag -width "RTLD_DEFAULTXX" -offset indent
+.Bl -tag -width ".Dv RTLD_DEFAULT" -offset indent
 .It Dv NULL
 Interpreted as a reference to the executable or shared object
 from which the call is being made.



CVS commit: src/share/man/man3

2020-01-13 Thread Valeriy E. Ushakov
Module Name:src
Committed By:   uwe
Date:   Mon Jan 13 15:59:12 UTC 2020

Modified Files:
src/share/man/man3: dlfcn.3

Log Message:
Fix -width in the tagged list of special "handle" values.


To generate a diff of this commit:
cvs rdiff -u -r1.37 -r1.38 src/share/man/man3/dlfcn.3

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/share/man/man3

2020-01-13 Thread Valeriy E. Ushakov
Module Name:src
Committed By:   uwe
Date:   Mon Jan 13 15:54:48 UTC 2020

Modified Files:
src/share/man/man3: dlfcn.3

Log Message:
Minor tweaks.

Use same -indent for lists of values that are OR'ed as one argument.
Use consistent markup for dli_* member names.
Untabify Dl_info definition so that it lines up in PS output.


To generate a diff of this commit:
cvs rdiff -u -r1.36 -r1.37 src/share/man/man3/dlfcn.3

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/share/man/man3/dlfcn.3
diff -u src/share/man/man3/dlfcn.3:1.36 src/share/man/man3/dlfcn.3:1.37
--- src/share/man/man3/dlfcn.3:1.36	Mon Jan 13 11:44:02 2020
+++ src/share/man/man3/dlfcn.3	Mon Jan 13 15:54:48 2020
@@ -1,4 +1,4 @@
-.\"	$NetBSD: dlfcn.3,v 1.36 2020/01/13 11:44:02 wiz Exp $
+.\"	$NetBSD: dlfcn.3,v 1.37 2020/01/13 15:54:48 uwe Exp $
 .\"
 .\" Copyright (c) 1998 The NetBSD Foundation, Inc.
 .\" All rights reserved.
@@ -104,7 +104,7 @@ The
 .Fa mode
 parameter specifies symbol resolution time and symbol visibility.
 One of the following values may be used to specify symbol resolution time:
-.Bl -tag -width "RTLD_GLOBALXX" -offset indent
+.Bl -tag -width "Dv RTLD_NODELETE" -offset indent
 .It Dv RTLD_NOW
 Symbols are resolved immediately.
 .It Dv RTLD_LAZY
@@ -113,7 +113,7 @@ This is the default value if resolution 
 .El
 .Pp
 One of the following values may be used to specify symbol visibility:
-.Bl -tag -width "RTLD_GLOBALXX" -offset indent
+.Bl -tag -width "Dv RTLD_NODELETE" -offset indent
 .It Dv RTLD_GLOBAL
 The object's symbols and the symbols of its dependencies will be visible to
 other objects.
@@ -135,12 +135,12 @@ then it is promoted to
 Additionally, one of the following flags may be ORed into the
 .Fa mode
 argument:
-.Bl -tag -width "RTLD_NODELETEXX" -offset indent
+.Bl -tag -width "Dv RTLD_NODELETE" -offset indent
 .It Dv RTLD_NODELETE
 Prevents unload of the loaded object on
 .Fn dlclose .
 The same behaviour may be requested by
-.Fl "z nodelete"
+.Fl z Cm nodelete
 option of the static linker
 .Xr ld 1 .
 .It Dv RTLD_NOLOAD
@@ -256,10 +256,10 @@ as mapped in the process address space \
 the value passed in the first argument
 .Fa addr .
 The symbols of a shared object are only eligible if
-.Va addr
+.Fa addr
 is between the base address of the shared object and the value of the
 symbol
-.Dq _end
+.Va _end
 in the same shared object.
 If no object for which this condition holds
 true can be found,
@@ -272,23 +272,23 @@ and the shared object it is contained in
 The
 .Fa dli
 argument points at a caller-provided
-.Va Dl_info
+.Vt Dl_info
 structure defined as follows:
 .Bd -literal -offset indent
 typedef struct {
-	const char  *dli_fname; /* File defining the symbol */
-	void	*dli_fbase; /* Base address */
-	const char  *dli_sname; /* Symbol name */
-	const void  *dli_saddr; /* Symbol address */
+const char  *dli_fname; /* File defining the symbol */
+void*dli_fbase; /* Base address */
+const char  *dli_sname; /* Symbol name */
+const void  *dli_saddr; /* Symbol address */
 } Dl_info;
 .Ed
 .Pp
 The structure members are further described as follows:
-.Bl -tag -width "dli_fnameXX"
-.It Li "dli_fname"
+.Bl -tag -width "Va"
+.It Va dli_fname
 The pathname of the shared object containing the address
 .Fa addr .
-.It Li "dli_fbase"
+.It Va dli_fbase
 The base address at which this shared object is loaded in the process
 address space.
 This may be zero if the symbol was found in the internally generated
@@ -299,9 +299,9 @@ see
 .Xr link 5
 .Pc
 which is not associated with a file.
-.It Li "dli_sname"
+.It Va dli_sname
 points at the nul-terminated name of the selected symbol
-.It Li "dli_saddr"
+.It Va dli_saddr
 is the actual address
 .Pq as it appears in the process address space
 of the symbol.



CVS commit: src/share/man/man3

2020-01-13 Thread Valeriy E. Ushakov
Module Name:src
Committed By:   uwe
Date:   Mon Jan 13 15:54:48 UTC 2020

Modified Files:
src/share/man/man3: dlfcn.3

Log Message:
Minor tweaks.

Use same -indent for lists of values that are OR'ed as one argument.
Use consistent markup for dli_* member names.
Untabify Dl_info definition so that it lines up in PS output.


To generate a diff of this commit:
cvs rdiff -u -r1.36 -r1.37 src/share/man/man3/dlfcn.3

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/share/man/man3

2020-01-13 Thread Kamil Rytarowski
Module Name:src
Committed By:   kamil
Date:   Mon Jan 13 14:25:06 UTC 2020

Modified Files:
src/share/man/man3: dlinfo.3

Log Message:
Fix a typo


To generate a diff of this commit:
cvs rdiff -u -r1.5 -r1.6 src/share/man/man3/dlinfo.3

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/share/man/man3/dlinfo.3
diff -u src/share/man/man3/dlinfo.3:1.5 src/share/man/man3/dlinfo.3:1.6
--- src/share/man/man3/dlinfo.3:1.5	Mon Jan 13 14:24:16 2020
+++ src/share/man/man3/dlinfo.3	Mon Jan 13 14:25:06 2020
@@ -1,4 +1,4 @@
-.\"	$NetBSD: dlinfo.3,v 1.5 2020/01/13 14:24:16 kamil Exp $
+.\"	$NetBSD: dlinfo.3,v 1.6 2020/01/13 14:25:06 kamil Exp $
 .\"
 .\" Copyright (c) 2003 Alexey Zelkin 
 .\" All rights reserved.
@@ -271,7 +271,7 @@ it first appeared in
 .Sh AUTHORS
 .An -nosplit
 The
-.Bx
+.Nx
 implementation of the
 .Fn dlinfo
 function was written by



CVS commit: src/share/man/man3

2020-01-13 Thread Kamil Rytarowski
Module Name:src
Committed By:   kamil
Date:   Mon Jan 13 14:25:06 UTC 2020

Modified Files:
src/share/man/man3: dlinfo.3

Log Message:
Fix a typo


To generate a diff of this commit:
cvs rdiff -u -r1.5 -r1.6 src/share/man/man3/dlinfo.3

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/share/man/man3

2020-01-13 Thread Kamil Rytarowski
Module Name:src
Committed By:   kamil
Date:   Mon Jan 13 14:24:16 UTC 2020

Modified Files:
src/share/man/man3: dlinfo.3

Log Message:
Correct the authorship note of dlinfo(3)


To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 src/share/man/man3/dlinfo.3

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/share/man/man3

2020-01-13 Thread Kamil Rytarowski
Module Name:src
Committed By:   kamil
Date:   Mon Jan 13 14:24:16 UTC 2020

Modified Files:
src/share/man/man3: dlinfo.3

Log Message:
Correct the authorship note of dlinfo(3)


To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 src/share/man/man3/dlinfo.3

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/share/man/man3/dlinfo.3
diff -u src/share/man/man3/dlinfo.3:1.4 src/share/man/man3/dlinfo.3:1.5
--- src/share/man/man3/dlinfo.3:1.4	Mon Jan 13 14:10:52 2020
+++ src/share/man/man3/dlinfo.3	Mon Jan 13 14:24:16 2020
@@ -1,4 +1,4 @@
-.\"	$NetBSD: dlinfo.3,v 1.4 2020/01/13 14:10:52 uwe Exp $
+.\"	$NetBSD: dlinfo.3,v 1.5 2020/01/13 14:24:16 kamil Exp $
 .\"
 .\" Copyright (c) 2003 Alexey Zelkin 
 .\" All rights reserved.
@@ -271,10 +271,10 @@ it first appeared in
 .Sh AUTHORS
 .An -nosplit
 The
-.Fx
+.Bx
 implementation of the
 .Fn dlinfo
-function was originally written by
+function was written by
 .An Antti Kantee Aq Mt po...@netbsd.org .
 .Pp
 The manual page for this function was written by



CVS commit: src/share/man/man3

2020-01-13 Thread Valeriy E. Ushakov
Module Name:src
Committed By:   uwe
Date:   Mon Jan 13 14:10:52 UTC 2020

Modified Files:
src/share/man/man3: dlinfo.3

Log Message:
Miscellaneous fixes.

No space after asterisk in "type *arg".
There's no "-width indent", use something relevant instead.
Do not document the structure tag of the Link_map typedef.
Give the Link_map members a paragraph of their own for readability.
Give them a bit more breathing space in the tagged list.
Spell pooka's name correctly.

TODO: The text is pleonastic in several places ("Do foo.  On success
does foo." etc) and could use some copy editing.


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/share/man/man3/dlinfo.3

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/share/man/man3

2020-01-13 Thread Valeriy E. Ushakov
Module Name:src
Committed By:   uwe
Date:   Mon Jan 13 14:10:52 UTC 2020

Modified Files:
src/share/man/man3: dlinfo.3

Log Message:
Miscellaneous fixes.

No space after asterisk in "type *arg".
There's no "-width indent", use something relevant instead.
Do not document the structure tag of the Link_map typedef.
Give the Link_map members a paragraph of their own for readability.
Give them a bit more breathing space in the tagged list.
Spell pooka's name correctly.

TODO: The text is pleonastic in several places ("Do foo.  On success
does foo." etc) and could use some copy editing.


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/share/man/man3/dlinfo.3

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/share/man/man3/dlinfo.3
diff -u src/share/man/man3/dlinfo.3:1.3 src/share/man/man3/dlinfo.3:1.4
--- src/share/man/man3/dlinfo.3:1.3	Mon Jan 13 11:47:06 2020
+++ src/share/man/man3/dlinfo.3	Mon Jan 13 14:10:52 2020
@@ -1,4 +1,4 @@
-.\"	$NetBSD: dlinfo.3,v 1.3 2020/01/13 11:47:06 wiz Exp $
+.\"	$NetBSD: dlinfo.3,v 1.4 2020/01/13 14:10:52 uwe Exp $
 .\"
 .\" Copyright (c) 2003 Alexey Zelkin 
 .\" All rights reserved.
@@ -40,7 +40,7 @@ dynamically linked program automatically
 .In link.h
 .In dlfcn.h
 .Ft int
-.Fn dlinfo "void * handle" "int request" "void * p"
+.Fn dlinfo "void *handle" "int request" "void *p"
 .Sh DESCRIPTION
 The
 .Fn dlinfo
@@ -66,19 +66,20 @@ is the value returned from
 the information returned by the
 .Fn dlinfo
 function pertains to the specified object.
-If handle is the special handle
+If
+.Fa handle
+is the special handle
 .Dv RTLD_SELF ,
 the information returned pertains to the caller itself.
 .Pp
 Possible values for the
 .Fa request
 argument are:
-.Bl -tag -width indent
+.Bl -tag -width "Dv RTLD_"
 .It Dv RTLD_DI_LINKMAP
-Retrieve the
+Retrieve the pointer to the
 .Vt Link_map
-.Pq Vt "struct link_map"
-structure pointer for the specified
+for the specified
 .Fa handle .
 On successful return, the
 .Fa p
@@ -98,6 +99,7 @@ in the same order as
 and
 .Xr dlclose 3
 are called.
+.Pp
 The
 .Vt Link_map
 structure is defined in
@@ -113,11 +115,11 @@ void*l_ld; /* Pointer to
 struct link_map *l_next,   /* linked list of mapped libs */
 *l_prev;
 .Ed
-.Bl -tag -width ".Va l_addr"
+.Bl -tag -width Va
 .It Va l_addr
 The base address of the object loaded into memory.
 .It Va l_name
-The full name of the loaded shared object.
+The absolute pathname of the loaded shared object.
 .It Va l_ld
 The address of the dynamic linking information segment
 .Pq Dv PT_DYNAMIC
@@ -273,7 +275,7 @@ The
 implementation of the
 .Fn dlinfo
 function was originally written by
-.An Antii Kantee Aq Mt po...@netbsd.org .
+.An Antti Kantee Aq Mt po...@netbsd.org .
 .Pp
 The manual page for this function was written by
 .An Alexey Zelkin Aq Mt phan...@freebsd.org



CVS commit: src/share/man/man3

2020-01-13 Thread Thomas Klausner
Module Name:src
Committed By:   wiz
Date:   Mon Jan 13 11:47:06 UTC 2020

Modified Files:
src/share/man/man3: dlinfo.3

Log Message:
Add missing El. Fix grammar.


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 src/share/man/man3/dlinfo.3

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/share/man/man3/dlinfo.3
diff -u src/share/man/man3/dlinfo.3:1.2 src/share/man/man3/dlinfo.3:1.3
--- src/share/man/man3/dlinfo.3:1.2	Mon Jan 13 09:00:20 2020
+++ src/share/man/man3/dlinfo.3	Mon Jan 13 11:47:06 2020
@@ -1,4 +1,4 @@
-.\"	$NetBSD: dlinfo.3,v 1.2 2020/01/13 09:00:20 kamil Exp $
+.\"	$NetBSD: dlinfo.3,v 1.3 2020/01/13 11:47:06 wiz Exp $
 .\"
 .\" Copyright (c) 2003 Alexey Zelkin 
 .\" All rights reserved.
@@ -31,7 +31,7 @@
 .Os
 .Sh NAME
 .Nm dlinfo
-.Nd information about dynamically loaded object
+.Nd information about a dynamically loaded object
 .Sh LIBRARY
 (These functions are not in a library.
 They are included in every
@@ -44,7 +44,7 @@ dynamically linked program automatically
 .Sh DESCRIPTION
 The
 .Fn dlinfo
-function provides information about dynamically loaded object.
+function provides information about a dynamically loaded object.
 The action taken by
 .Fn dlinfo
 and exact meaning and type of
@@ -194,7 +194,7 @@ structure on the link-map list.
 .\" .Vt char
 .\" pointer
 .\" .Pq Fa "char *p" .
-.\" .El
+.El
 .Sh RETURN VALUES
 The
 .Fn dlinfo
@@ -235,20 +235,20 @@ while (map != NULL) {
 .\" Dl_serinfo	 _info, *info = &_info;
 .\" Dl_serpath	*path;
 .\" unsigned int	 cnt;
-.\" 
+.\"
 .\" /* determine search path count and required buffer size */
 .\" dlinfo(RTLD_SELF, RTLD_DI_SERINFOSIZE, (void *)info);
-.\" 
+.\"
 .\" /* allocate new buffer and initialize */
 .\" info = malloc(_info.dls_size);
 .\" info->dls_size = _info.dls_size;
 .\" info->dls_cnt = _info.dls_cnt;
-.\" 
+.\"
 .\" /* obtain sarch path information */
 .\" dlinfo(RTLD_SELF, RTLD_DI_SERINFO, (void *)info);
-.\" 
+.\"
 .\" path = >dls_serpath[0];
-.\" 
+.\"
 .\" for (cnt = 1; cnt <= info->dls_cnt; cnt++, path++) {
 .\" 	(void) printf("%2d: %s\\n", cnt, path->dls_name);
 .\" }



CVS commit: src/share/man/man3

2020-01-13 Thread Thomas Klausner
Module Name:src
Committed By:   wiz
Date:   Mon Jan 13 11:47:06 UTC 2020

Modified Files:
src/share/man/man3: dlinfo.3

Log Message:
Add missing El. Fix grammar.


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 src/share/man/man3/dlinfo.3

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/share/man/man3

2020-01-13 Thread Thomas Klausner
Module Name:src
Committed By:   wiz
Date:   Mon Jan 13 11:44:02 UTC 2020

Modified Files:
src/share/man/man3: dlfcn.3

Log Message:
Clean up dash use. Remove superfluous Pp.


To generate a diff of this commit:
cvs rdiff -u -r1.35 -r1.36 src/share/man/man3/dlfcn.3

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/share/man/man3/dlfcn.3
diff -u src/share/man/man3/dlfcn.3:1.35 src/share/man/man3/dlfcn.3:1.36
--- src/share/man/man3/dlfcn.3:1.35	Mon Jan 13 09:00:59 2020
+++ src/share/man/man3/dlfcn.3	Mon Jan 13 11:44:02 2020
@@ -1,4 +1,4 @@
-.\"	$NetBSD: dlfcn.3,v 1.35 2020/01/13 09:00:59 kamil Exp $
+.\"	$NetBSD: dlfcn.3,v 1.36 2020/01/13 11:44:02 wiz Exp $
 .\"
 .\" Copyright (c) 1998 The NetBSD Foundation, Inc.
 .\" All rights reserved.
@@ -113,7 +113,6 @@ This is the default value if resolution 
 .El
 .Pp
 One of the following values may be used to specify symbol visibility:
-.Pp
 .Bl -tag -width "RTLD_GLOBALXX" -offset indent
 .It Dv RTLD_GLOBAL
 The object's symbols and the symbols of its dependencies will be visible to
@@ -203,8 +202,9 @@ However, the symbols of an object's depe
 All shared objects loaded at program startup are globally visible.
 Only the symbols in the main executable that are referenced by a
 shared object at link time will be visible unless it has been linked
-with the --export-dynamic option where all of its symbols will be
-visible.
+with the
+.Fl Fl export-dynamic
+option where all of its symbols will be visible.
 The following special
 .Fa handle
 values may be used with
@@ -251,8 +251,8 @@ and the
 must match in order for the symbol to be resolved.
 .Pp
 .Fn dladdr
-examines all currently mapped shared objects for a symbol whose address --
-as mapped in the process address space -- is closest to but not exceeding
+examines all currently mapped shared objects for a symbol whose address \(em
+as mapped in the process address space \(em is closest to but not exceeding
 the value passed in the first argument
 .Fa addr .
 The symbols of a shared object are only eligible if



CVS commit: src/share/man/man3

2020-01-13 Thread Thomas Klausner
Module Name:src
Committed By:   wiz
Date:   Mon Jan 13 11:44:02 UTC 2020

Modified Files:
src/share/man/man3: dlfcn.3

Log Message:
Clean up dash use. Remove superfluous Pp.


To generate a diff of this commit:
cvs rdiff -u -r1.35 -r1.36 src/share/man/man3/dlfcn.3

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/share/man/man3

2020-01-13 Thread Kamil Rytarowski
Module Name:src
Committed By:   kamil
Date:   Mon Jan 13 09:00:59 UTC 2020

Modified Files:
src/share/man/man3: dlfcn.3

Log Message:
Bump date in dlfcn(3)


To generate a diff of this commit:
cvs rdiff -u -r1.34 -r1.35 src/share/man/man3/dlfcn.3

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/share/man/man3/dlfcn.3
diff -u src/share/man/man3/dlfcn.3:1.34 src/share/man/man3/dlfcn.3:1.35
--- src/share/man/man3/dlfcn.3:1.34	Mon Jan 13 08:29:05 2020
+++ src/share/man/man3/dlfcn.3	Mon Jan 13 09:00:59 2020
@@ -1,4 +1,4 @@
-.\"	$NetBSD: dlfcn.3,v 1.34 2020/01/13 08:29:05 kamil Exp $
+.\"	$NetBSD: dlfcn.3,v 1.35 2020/01/13 09:00:59 kamil Exp $
 .\"
 .\" Copyright (c) 1998 The NetBSD Foundation, Inc.
 .\" All rights reserved.
@@ -27,7 +27,7 @@
 .\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
 .\" POSSIBILITY OF SUCH DAMAGE.
 .\"
-.Dd June 25, 2011
+.Dd January 13, 2020
 .Dt DLFCN 3
 .Os
 .Sh NAME



CVS commit: src/share/man/man3

2020-01-13 Thread Kamil Rytarowski
Module Name:src
Committed By:   kamil
Date:   Mon Jan 13 09:00:59 UTC 2020

Modified Files:
src/share/man/man3: dlfcn.3

Log Message:
Bump date in dlfcn(3)


To generate a diff of this commit:
cvs rdiff -u -r1.34 -r1.35 src/share/man/man3/dlfcn.3

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/share/man/man3

2020-01-13 Thread Kamil Rytarowski
Module Name:src
Committed By:   kamil
Date:   Mon Jan 13 09:00:20 UTC 2020

Modified Files:
src/share/man/man3: dlinfo.3

Log Message:
Bump date in dlinfo(3)


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/share/man/man3/dlinfo.3

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/share/man/man3/dlinfo.3
diff -u src/share/man/man3/dlinfo.3:1.1 src/share/man/man3/dlinfo.3:1.2
--- src/share/man/man3/dlinfo.3:1.1	Mon Jan 13 08:25:02 2020
+++ src/share/man/man3/dlinfo.3	Mon Jan 13 09:00:20 2020
@@ -1,4 +1,4 @@
-.\"	$NetBSD: dlinfo.3,v 1.1 2020/01/13 08:25:02 kamil Exp $
+.\"	$NetBSD: dlinfo.3,v 1.2 2020/01/13 09:00:20 kamil Exp $
 .\"
 .\" Copyright (c) 2003 Alexey Zelkin 
 .\" All rights reserved.
@@ -26,7 +26,7 @@
 .\"
 .\" $FreeBSD: head/lib/libc/gen/dlinfo.3 267774 2014-06-23 08:25:03Z bapt $
 .\"
-.Dd February 14, 2003
+.Dd January 13, 2020
 .Dt DLINFO 3
 .Os
 .Sh NAME



CVS commit: src/share/man/man3

2020-01-13 Thread Kamil Rytarowski
Module Name:src
Committed By:   kamil
Date:   Mon Jan 13 09:00:20 UTC 2020

Modified Files:
src/share/man/man3: dlinfo.3

Log Message:
Bump date in dlinfo(3)


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/share/man/man3/dlinfo.3

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/share/man/man3

2020-01-13 Thread Kamil Rytarowski
Module Name:src
Committed By:   kamil
Date:   Mon Jan 13 08:29:05 UTC 2020

Modified Files:
src/share/man/man3: dlfcn.3

Log Message:
Cross-Link from dlfcn(3) to dlinfo(3)


To generate a diff of this commit:
cvs rdiff -u -r1.33 -r1.34 src/share/man/man3/dlfcn.3

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/share/man/man3

2020-01-13 Thread Kamil Rytarowski
Module Name:src
Committed By:   kamil
Date:   Mon Jan 13 08:29:05 UTC 2020

Modified Files:
src/share/man/man3: dlfcn.3

Log Message:
Cross-Link from dlfcn(3) to dlinfo(3)


To generate a diff of this commit:
cvs rdiff -u -r1.33 -r1.34 src/share/man/man3/dlfcn.3

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/share/man/man3/dlfcn.3
diff -u src/share/man/man3/dlfcn.3:1.33 src/share/man/man3/dlfcn.3:1.34
--- src/share/man/man3/dlfcn.3:1.33	Sat Jun 25 12:44:37 2011
+++ src/share/man/man3/dlfcn.3	Mon Jan 13 08:29:05 2020
@@ -1,4 +1,4 @@
-.\"	$NetBSD: dlfcn.3,v 1.33 2011/06/25 12:44:37 wiz Exp $
+.\"	$NetBSD: dlfcn.3,v 1.34 2020/01/13 08:29:05 kamil Exp $
 .\"
 .\" Copyright (c) 1998 The NetBSD Foundation, Inc.
 .\" All rights reserved.
@@ -350,6 +350,7 @@ a module that needs libpthread but isn't
 .Sh SEE ALSO
 .Xr ld 1 ,
 .Xr rtld 1 ,
+.Xr dlinfo 3 ,
 .Xr link 5
 .Sh HISTORY
 Some of the



CVS commit: src/share/man/man3

2019-11-11 Thread Thomas Klausner
Module Name:src
Committed By:   wiz
Date:   Mon Nov 11 11:06:27 UTC 2019

Modified Files:
src/share/man/man3: __FPTRCAST.3

Log Message:
Make a sentence easier to read, and fix some nits.


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/share/man/man3/__FPTRCAST.3

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/share/man/man3/__FPTRCAST.3
diff -u src/share/man/man3/__FPTRCAST.3:1.1 src/share/man/man3/__FPTRCAST.3:1.2
--- src/share/man/man3/__FPTRCAST.3:1.1	Sun Nov 10 18:45:09 2019
+++ src/share/man/man3/__FPTRCAST.3	Mon Nov 11 11:06:27 2019
@@ -1,4 +1,4 @@
-.\"	$NetBSD: __FPTRCAST.3,v 1.1 2019/11/10 18:45:09 christos Exp $ $
+.\"	$NetBSD: __FPTRCAST.3,v 1.2 2019/11/11 11:06:27 wiz Exp $ $
 .\"
 .\" Copyright (c) 2019 The NetBSD Foundation, Inc.
 .\" All rights reserved.
@@ -31,7 +31,7 @@
 .Dt __FPTRCAST 3
 .Os
 .Sh NAME
-.Nm __FPTRCAST ,
+.Nm __FPTRCAST
 .Nd function pointer cast
 .Sh SYNOPSIS
 .In sys/cdefs.h
@@ -44,7 +44,8 @@ macro can be used to silence warnings pr
 converting from one function pointer type to another.
 The
 .Fa ftype
-argument is the function pointer type to cast the function pointer in
+argument is the function pointer type to which to cast the function
+pointer in
 .Fa fname .
 .Pp
 This cast should be used sparingly and it is typically used in the following
@@ -53,7 +54,7 @@ situations:
 .It
 We know that the function prototypes don't match at all, but we don't care
 because we point it to a function that does not take arguments and returns
-an error. 
+an error.
 .It
 We only care about the first few arguments and we don't care about the rest.
 .It



CVS commit: src/share/man/man3

2019-11-11 Thread Thomas Klausner
Module Name:src
Committed By:   wiz
Date:   Mon Nov 11 11:06:27 UTC 2019

Modified Files:
src/share/man/man3: __FPTRCAST.3

Log Message:
Make a sentence easier to read, and fix some nits.


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/share/man/man3/__FPTRCAST.3

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/share/man/man3

2019-11-10 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Sun Nov 10 18:45:09 UTC 2019

Modified Files:
src/share/man/man3: Makefile cdefs.3
Added Files:
src/share/man/man3: __FPTRCAST.3

Log Message:
Document __FPTRCAST
XXX: more macros need documentation (__CAST etc.)


To generate a diff of this commit:
cvs rdiff -u -r1.88 -r1.89 src/share/man/man3/Makefile
cvs rdiff -u -r0 -r1.1 src/share/man/man3/__FPTRCAST.3
cvs rdiff -u -r1.4 -r1.5 src/share/man/man3/cdefs.3

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/share/man/man3/Makefile
diff -u src/share/man/man3/Makefile:1.88 src/share/man/man3/Makefile:1.89
--- src/share/man/man3/Makefile:1.88	Wed Nov 27 11:30:12 2013
+++ src/share/man/man3/Makefile	Sun Nov 10 13:45:09 2019
@@ -1,7 +1,7 @@
-#	$NetBSD: Makefile,v 1.88 2013/11/27 16:30:12 christos Exp $
+#	$NetBSD: Makefile,v 1.89 2019/11/10 18:45:09 christos Exp $
 #	@(#)Makefile	8.2 (Berkeley) 12/13/93
 
-MAN=	_DIAGASSERT.3 __CONCAT.3 __UNCONST.3 __USE.3 CMSG_DATA.3 \
+MAN=	_DIAGASSERT.3 __CONCAT.3 __FPTRCAST.3 __UNCONST.3 __USE.3 CMSG_DATA.3 \
 	__alignof__.3 __arraycount.3 \
 	__builtin_constant_p.3 __builtin_prefetch.3 \
 	__builtin_return_address.3 \

Index: src/share/man/man3/cdefs.3
diff -u src/share/man/man3/cdefs.3:1.4 src/share/man/man3/cdefs.3:1.5
--- src/share/man/man3/cdefs.3:1.4	Sun Oct 27 06:05:15 2013
+++ src/share/man/man3/cdefs.3	Sun Nov 10 13:45:09 2019
@@ -1,4 +1,4 @@
-.\" $NetBSD: cdefs.3,v 1.4 2013/10/27 10:05:15 apb Exp $
+.\" $NetBSD: cdefs.3,v 1.5 2019/11/10 18:45:09 christos Exp $
 .\"
 .\" Copyright (c) 2010 The NetBSD Foundation, Inc.
 .\" All rights reserved.
@@ -27,7 +27,7 @@
 .\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
 .\" POSSIBILITY OF SUCH DAMAGE.
 .\"
-.Dd April 8, 2011
+.Dd November 10, 2019
 .Dt CDEFS 3
 .Os
 .Sh NAME
@@ -54,8 +54,15 @@ type qualifier from
 .Tn C99 .
 .It
 Macros and definitions specific to compilers, preprocessors, and linkers; see
+.Xr __BIT 3 ,
+.Xr __BITS 3 ,
 .Xr __CONCAT 3 ,
+.Xr __FPTRCAST 3 ,
+.Xr __SHIFTIN 3 ,
+.Xr __SHIFTOUT 3 ,
+.Xr __SHIFTOUT_MASK 3 ,
 .Xr __UNCONST 3 ,
+.Xr __UNVOLATILE 3 ,
 .Xr __USE 3 ,
 .Xr __insn_barrier 3 ,
 and
@@ -89,7 +96,7 @@ included as the first thing right after 
  */
 
 #include 
-__RCSID("$NetBSD: cdefs.3,v 1.4 2013/10/27 10:05:15 apb Exp $");
+__RCSID("$NetBSD: cdefs.3,v 1.5 2019/11/10 18:45:09 christos Exp $");
 .Ed
 .Pp
 It is possible to identify the

Added files:

Index: src/share/man/man3/__FPTRCAST.3
diff -u /dev/null src/share/man/man3/__FPTRCAST.3:1.1
--- /dev/null	Sun Nov 10 13:45:09 2019
+++ src/share/man/man3/__FPTRCAST.3	Sun Nov 10 13:45:09 2019
@@ -0,0 +1,79 @@
+.\"	$NetBSD: __FPTRCAST.3,v 1.1 2019/11/10 18:45:09 christos Exp $ $
+.\"
+.\" Copyright (c) 2019 The NetBSD Foundation, Inc.
+.\" All rights reserved.
+.\"
+.\" This code is derived from software contributed to The NetBSD Foundation
+.\" by Christos Zoulas
+.\"
+.\" Redistribution and use in source and binary forms, with or without
+.\" modification, are permitted provided that the following conditions
+.\" are met:
+.\" 1. Redistributions of source code must retain the above copyright
+.\"notice, this list of conditions and the following disclaimer.
+.\" 2. Redistributions in binary form must reproduce the above copyright
+.\"notice, this list of conditions and the following disclaimer in the
+.\"documentation and/or other materials provided with the distribution.
+.\"
+.\" THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
+.\" ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
+.\" TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+.\" PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
+.\" BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+.\" CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
+.\" SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+.\" INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
+.\" CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
+.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
+.\" POSSIBILITY OF SUCH DAMAGE.
+.\"
+.Dd October 17, 2013
+.Dt __FPTRCAST 3
+.Os
+.Sh NAME
+.Nm __FPTRCAST ,
+.Nd function pointer cast
+.Sh SYNOPSIS
+.In sys/cdefs.h
+.Ft ftype
+.Fn __FPTRCAST ftype fname
+.Sh DESCRIPTION
+The
+.Fn __FPTRCAST
+macro can be used to silence warnings produced by certain compilers when
+converting from one function pointer type to another.
+The
+.Fa ftype
+argument is the function pointer type to cast the function pointer in
+.Fa fname .
+.Pp
+This cast should be used sparingly and it is typically used in the following
+situations:
+.Bl -bullet -offset indent -compact
+.It
+We know that the function prototypes don't 

CVS commit: src/share/man/man3

2019-11-10 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Sun Nov 10 18:45:09 UTC 2019

Modified Files:
src/share/man/man3: Makefile cdefs.3
Added Files:
src/share/man/man3: __FPTRCAST.3

Log Message:
Document __FPTRCAST
XXX: more macros need documentation (__CAST etc.)


To generate a diff of this commit:
cvs rdiff -u -r1.88 -r1.89 src/share/man/man3/Makefile
cvs rdiff -u -r0 -r1.1 src/share/man/man3/__FPTRCAST.3
cvs rdiff -u -r1.4 -r1.5 src/share/man/man3/cdefs.3

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/share/man/man3

2019-09-07 Thread Sevan Janiyan
Module Name:src
Committed By:   sevan
Date:   Sat Sep  7 12:17:10 UTC 2019

Modified Files:
src/share/man/man3: dirent.3

Log Message:
I missread a diff before making the change for the previous commit.
Drop the reference to v7 and the direct struct.
https://www.bell-labs.com/usr/dmr/www/man51.pdf


To generate a diff of this commit:
cvs rdiff -u -r1.5 -r1.6 src/share/man/man3/dirent.3

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/share/man/man3/dirent.3
diff -u src/share/man/man3/dirent.3:1.5 src/share/man/man3/dirent.3:1.6
--- src/share/man/man3/dirent.3:1.5	Sat Sep  7 11:35:01 2019
+++ src/share/man/man3/dirent.3	Sat Sep  7 12:17:10 2019
@@ -1,4 +1,4 @@
-.\" $NetBSD: dirent.3,v 1.5 2019/09/07 11:35:01 sevan Exp $
+.\" $NetBSD: dirent.3,v 1.6 2019/09/07 12:17:10 sevan Exp $
 .\"
 .\" Copyright (c) 1983, 1991, 1993
 .\"	The Regents of the University of California.  All rights reserved.
@@ -206,10 +206,8 @@ operator.
 .\" .St -p1003.1-2001 .
 .Sh HISTORY
 A
-dir file format alongside a
-.Em direct
-structure appeared in
-.At v7 .
+directry file format appeared in
+.At v1 .
 The
 .Em dirent
 structure appeared in



CVS commit: src/share/man/man3

2019-09-07 Thread Sevan Janiyan
Module Name:src
Committed By:   sevan
Date:   Sat Sep  7 12:17:10 UTC 2019

Modified Files:
src/share/man/man3: dirent.3

Log Message:
I missread a diff before making the change for the previous commit.
Drop the reference to v7 and the direct struct.
https://www.bell-labs.com/usr/dmr/www/man51.pdf


To generate a diff of this commit:
cvs rdiff -u -r1.5 -r1.6 src/share/man/man3/dirent.3

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/share/man/man3

2019-09-07 Thread Sevan Janiyan
Module Name:src
Committed By:   sevan
Date:   Sat Sep  7 11:35:01 UTC 2019

Modified Files:
src/share/man/man3: dirent.3

Log Message:
dir(5) was what appeared in v7, the struct was called direct.
Fix history for dirent.

via Ingo Schwarze 


To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 src/share/man/man3/dirent.3

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/share/man/man3/dirent.3
diff -u src/share/man/man3/dirent.3:1.4 src/share/man/man3/dirent.3:1.5
--- src/share/man/man3/dirent.3:1.4	Fri Apr  8 08:50:52 2011
+++ src/share/man/man3/dirent.3	Sat Sep  7 11:35:01 2019
@@ -1,4 +1,4 @@
-.\" $NetBSD: dirent.3,v 1.4 2011/04/08 08:50:52 wiz Exp $
+.\" $NetBSD: dirent.3,v 1.5 2019/09/07 11:35:01 sevan Exp $
 .\"
 .\" Copyright (c) 1983, 1991, 1993
 .\"	The Regents of the University of California.  All rights reserved.
@@ -29,7 +29,7 @@
 .\"
 .\" @(#)dir.5	8.3 (Berkeley) 4/19/94
 .\"
-.Dd May 16, 2010
+.Dd September 7, 2019
 .Dt DIRENT 3
 .Os
 .Sh NAME
@@ -206,9 +206,11 @@ operator.
 .\" .St -p1003.1-2001 .
 .Sh HISTORY
 A
-dir structure appeared in
+dir file format alongside a
+.Em direct
+structure appeared in
 .At v7 .
 The
 .Em dirent
 structure appeared in
-.Nx 1.3 .
+.Bx 4.3 reno .



CVS commit: src/share/man/man3

2019-09-07 Thread Sevan Janiyan
Module Name:src
Committed By:   sevan
Date:   Sat Sep  7 11:35:01 UTC 2019

Modified Files:
src/share/man/man3: dirent.3

Log Message:
dir(5) was what appeared in v7, the struct was called direct.
Fix history for dirent.

via Ingo Schwarze 


To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 src/share/man/man3/dirent.3

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/share/man/man3

2019-05-24 Thread Thomas Klausner
Module Name:src
Committed By:   wiz
Date:   Fri May 24 21:32:06 UTC 2019

Modified Files:
src/share/man/man3: tree.3

Log Message:
Remove empty line.


To generate a diff of this commit:
cvs rdiff -u -r1.13 -r1.14 src/share/man/man3/tree.3

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/share/man/man3

2019-05-24 Thread Thomas Klausner
Module Name:src
Committed By:   wiz
Date:   Fri May 24 21:32:06 UTC 2019

Modified Files:
src/share/man/man3: tree.3

Log Message:
Remove empty line.


To generate a diff of this commit:
cvs rdiff -u -r1.13 -r1.14 src/share/man/man3/tree.3

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/share/man/man3/tree.3
diff -u src/share/man/man3/tree.3:1.13 src/share/man/man3/tree.3:1.14
--- src/share/man/man3/tree.3:1.13	Fri May 24 15:50:59 2019
+++ src/share/man/man3/tree.3	Fri May 24 21:32:05 2019
@@ -1,4 +1,4 @@
-.\"	$NetBSD: tree.3,v 1.13 2019/05/24 15:50:59 ryoon Exp $
+.\"	$NetBSD: tree.3,v 1.14 2019/05/24 21:32:05 wiz Exp $
 .\"	$OpenBSD: tree.3,v 1.23 2011/07/09 08:43:01 jmc Exp $
 .\"/*
 .\" * Copyright 2002 Niels Provos 
@@ -605,7 +605,6 @@ for (var = SPLAY_MIN(NAME, ); var !
 .\"to indicate an error.
 .Sh SEE ALSO
 .Xr rbtree 3
-
 .Sh AUTHORS
 The author of the tree macros is
 .An Niels Provos .



CVS commit: src/share/man/man3

2019-05-24 Thread Ryo ONODERA
Module Name:src
Committed By:   ryoon
Date:   Fri May 24 15:51:00 UTC 2019

Modified Files:
src/share/man/man3: tree.3

Log Message:
Add rbtree(3) to SEE ALSO


To generate a diff of this commit:
cvs rdiff -u -r1.12 -r1.13 src/share/man/man3/tree.3

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/share/man/man3/tree.3
diff -u src/share/man/man3/tree.3:1.12 src/share/man/man3/tree.3:1.13
--- src/share/man/man3/tree.3:1.12	Mon Jul  3 21:30:58 2017
+++ src/share/man/man3/tree.3	Fri May 24 15:50:59 2019
@@ -1,4 +1,4 @@
-.\"	$NetBSD: tree.3,v 1.12 2017/07/03 21:30:58 wiz Exp $
+.\"	$NetBSD: tree.3,v 1.13 2019/05/24 15:50:59 ryoon Exp $
 .\"	$OpenBSD: tree.3,v 1.23 2011/07/09 08:43:01 jmc Exp $
 .\"/*
 .\" * Copyright 2002 Niels Provos 
@@ -24,7 +24,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.
 .\" */
-.Dd July 9, 2011
+.Dd May 25, 2019
 .Dt TREE 3
 .Os
 .Sh NAME
@@ -603,6 +603,9 @@ for (var = SPLAY_MIN(NAME, ); var !
 .\"return the pointer to the removed element, otherwise they return
 .\".Dv NULL
 .\"to indicate an error.
+.Sh SEE ALSO
+.Xr rbtree 3
+
 .Sh AUTHORS
 The author of the tree macros is
 .An Niels Provos .



CVS commit: src/share/man/man3

2019-05-24 Thread Ryo ONODERA
Module Name:src
Committed By:   ryoon
Date:   Fri May 24 15:51:00 UTC 2019

Modified Files:
src/share/man/man3: tree.3

Log Message:
Add rbtree(3) to SEE ALSO


To generate a diff of this commit:
cvs rdiff -u -r1.12 -r1.13 src/share/man/man3/tree.3

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/share/man/man3

2018-09-14 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Fri Sep 14 20:53:49 UTC 2018

Modified Files:
src/share/man/man3: attribute.3

Log Message:
PR/53608: Ian Bruene: document __{printf,syslog}like.


To generate a diff of this commit:
cvs rdiff -u -r1.17 -r1.18 src/share/man/man3/attribute.3

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/share/man/man3/attribute.3
diff -u src/share/man/man3/attribute.3:1.17 src/share/man/man3/attribute.3:1.18
--- src/share/man/man3/attribute.3:1.17	Fri Sep 14 16:38:38 2018
+++ src/share/man/man3/attribute.3	Fri Sep 14 16:53:49 2018
@@ -1,4 +1,4 @@
-.\" $NetBSD: attribute.3,v 1.17 2018/09/14 20:38:38 joerg Exp $
+.\" $NetBSD: attribute.3,v 1.18 2018/09/14 20:53:49 christos Exp $
 .\"
 .\" Copyright (c) 2010 The NetBSD Foundation, Inc.
 .\" All rights reserved.
@@ -27,7 +27,7 @@
 .\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
 .\" POSSIBILITY OF SUCH DAMAGE.
 .\"
-.Dd October 25, 2013
+.Dd September 14, 2018
 .Dt ATTRIBUTE 3
 .Os
 .Sh NAME
@@ -64,6 +64,10 @@
 .Fn __predict_true "exp"
 .Pp
 .Fn __predict_false "exp"
+.Pp
+.Fn __printflike "fmtarg" "firstvararg"
+.Pp
+.Fn __sysloglike "fmtarg" "firstvararg"
 .Sh DESCRIPTION
 As an extension to the C standard, some compilers allow non-standard
 attributes to be associated with functions, variables, or types, to
@@ -357,6 +361,22 @@ empirical evidence should precede the us
 .Ic __predict_false
 and
 .Ic __predict_true .
+.It Fn __printflike "fmtarg" "firstvararg"
+Marks a function as taking printf-like arguments.
+.Fa fmtarg
+is the index of the format string in the argument list, and
+.Fa firstvararg
+is the index of the first item of the vararg list.
+.It Fn __sysloglike "fmtarg" "firstvararg"
+Marks a function as taking syslog-like arguments.
+Allows use of the %m formatting code.
+.Fa fmtarg
+is the index of the format string in the argument list, and
+.Fa firstvararg
+is the index of the first item of the vararg list, or
+.Dv 0
+if the argument is a
+.Ft va_list .
 .El
 .Sh SEE ALSO
 .Xr clang 1 ,



CVS commit: src/share/man/man3

2018-09-14 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Fri Sep 14 20:53:49 UTC 2018

Modified Files:
src/share/man/man3: attribute.3

Log Message:
PR/53608: Ian Bruene: document __{printf,syslog}like.


To generate a diff of this commit:
cvs rdiff -u -r1.17 -r1.18 src/share/man/man3/attribute.3

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/share/man/man3

2018-09-14 Thread Joerg Sonnenberger
Module Name:src
Committed By:   joerg
Date:   Fri Sep 14 20:38:38 UTC 2018

Modified Files:
src/share/man/man3: attribute.3

Log Message:
__dead functions can not return, which is different from not returning a
value.


To generate a diff of this commit:
cvs rdiff -u -r1.16 -r1.17 src/share/man/man3/attribute.3

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/share/man/man3

2018-09-14 Thread Joerg Sonnenberger
Module Name:src
Committed By:   joerg
Date:   Fri Sep 14 20:38:38 UTC 2018

Modified Files:
src/share/man/man3: attribute.3

Log Message:
__dead functions can not return, which is different from not returning a
value.


To generate a diff of this commit:
cvs rdiff -u -r1.16 -r1.17 src/share/man/man3/attribute.3

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/share/man/man3/attribute.3
diff -u src/share/man/man3/attribute.3:1.16 src/share/man/man3/attribute.3:1.17
--- src/share/man/man3/attribute.3:1.16	Mon Apr 21 15:52:27 2014
+++ src/share/man/man3/attribute.3	Fri Sep 14 20:38:38 2018
@@ -1,4 +1,4 @@
-.\" $NetBSD: attribute.3,v 1.16 2014/04/21 15:52:27 riastradh Exp $
+.\" $NetBSD: attribute.3,v 1.17 2018/09/14 20:38:38 joerg Exp $
 .\"
 .\" Copyright (c) 2010 The NetBSD Foundation, Inc.
 .\" All rights reserved.
@@ -99,10 +99,11 @@ Certain functions, such as
 .Xr abort 3
 and
 .Xr exit 3 ,
-can never return any value.
+can never return.
 When such a function is declared with
 .Ic __dead ,
-certain optimizations are possible.
+certain optimizations are possible and warnings sensitive to the code flow graph
+may be pruned.
 Obviously a
 .Ic __dead
 function can never have return type other than



CVS commit: src/share/man/man3

2018-06-17 Thread Eitan Adler
Module Name:src
Committed By:   eadler
Date:   Mon Jun 18 02:48:56 UTC 2018

Modified Files:
src/share/man/man3: queue.3

Log Message:
queue.3: deduplicate deduplicate a a word word


To generate a diff of this commit:
cvs rdiff -u -r1.59 -r1.60 src/share/man/man3/queue.3

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/share/man/man3/queue.3
diff -u src/share/man/man3/queue.3:1.59 src/share/man/man3/queue.3:1.60
--- src/share/man/man3/queue.3:1.59	Mon Oct  2 05:16:41 2017
+++ src/share/man/man3/queue.3	Mon Jun 18 02:48:56 2018
@@ -1,4 +1,4 @@
-.\"	$NetBSD: queue.3,v 1.59 2017/10/02 05:16:41 pgoyette Exp $
+.\"	$NetBSD: queue.3,v 1.60 2018/06/18 02:48:56 eadler Exp $
 .\"
 .\" Copyright (c) 2000, 2002 The NetBSD Foundation, Inc.
 .\" All rights reserved.
@@ -951,7 +951,7 @@ and
 .Fn TAILQ_FOREACH_REVERSE_SAFE
 traverse the tail queue referenced by
 .Fa head
-in the forward or reverse direction direction, assigning each element in turn to
+in the forward or reverse direction, assigning each element in turn to
 .Fa var .
 .Pp
 The SAFE versions use



CVS commit: src/share/man/man3

2018-06-17 Thread Eitan Adler
Module Name:src
Committed By:   eadler
Date:   Mon Jun 18 02:48:56 UTC 2018

Modified Files:
src/share/man/man3: queue.3

Log Message:
queue.3: deduplicate deduplicate a a word word


To generate a diff of this commit:
cvs rdiff -u -r1.59 -r1.60 src/share/man/man3/queue.3

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/share/man/man3

2018-05-11 Thread Sevan Janiyan
Module Name:src
Committed By:   sevan
Date:   Fri May 11 12:54:56 UTC 2018

Modified Files:
src/share/man/man3: intro.3

Log Message:
Pass through mandoc -Tlint, drop Pp before Bl.
Remove reference to libkadm, it is no longer present in NetBSD.
Direct reader to kadm5_pwcheck(3) for libkadm5srv.


To generate a diff of this commit:
cvs rdiff -u -r1.33 -r1.34 src/share/man/man3/intro.3

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/share/man/man3/intro.3
diff -u src/share/man/man3/intro.3:1.33 src/share/man/man3/intro.3:1.34
--- src/share/man/man3/intro.3:1.33	Sun May 21 14:24:05 2017
+++ src/share/man/man3/intro.3	Fri May 11 12:54:56 2018
@@ -1,4 +1,4 @@
-.\"	$NetBSD: intro.3,v 1.33 2017/05/21 14:24:05 riastradh Exp $
+.\"	$NetBSD: intro.3,v 1.34 2018/05/11 12:54:56 sevan Exp $
 .\"
 .\" Copyright (c) 1980, 1991, 1993
 .\"	The Regents of the University of California.  All rights reserved.
@@ -29,7 +29,7 @@
 .\"
 .\" @(#)intro.3	8.1 (Berkeley) 6/5/93
 .\"
-.Dd November 22, 2015
+.Dd May 11, 2018
 .Dt INTRO 3
 .Os
 .Sh NAME
@@ -71,7 +71,6 @@ it is not necessary to supply the linker
 for these functions.
 There are several subsystems included inside
 .Em libc :
-.Pp
 .Bl -tag -width "XX"
 .It standard I/O routines
 see
@@ -177,12 +176,12 @@ See
 .Xr ipsec_set_policy 3
 and
 .Xr ipsec_strerror 3 .
-.It Em libkadm Pq Fl l Ns Ar kadm
-The Kerberos IV administration server and client library.
 .It Em libkadm5clnt Pq Fl l Ns Ar kadm5clnt
 The Kerberos 5 administration client library.
 .It Em libkadm5srv Pq Fl l Ns Ar kadm5srv
 The Kerberos 5 administration server library.
+See
+.Xr kadm5_pwcheck 3 .
 .It Em libkafs Pq Fl l Ns Ar kafs
 The Kerberos IV AFS library.
 See



CVS commit: src/share/man/man3

2018-05-11 Thread Sevan Janiyan
Module Name:src
Committed By:   sevan
Date:   Fri May 11 12:54:56 UTC 2018

Modified Files:
src/share/man/man3: intro.3

Log Message:
Pass through mandoc -Tlint, drop Pp before Bl.
Remove reference to libkadm, it is no longer present in NetBSD.
Direct reader to kadm5_pwcheck(3) for libkadm5srv.


To generate a diff of this commit:
cvs rdiff -u -r1.33 -r1.34 src/share/man/man3/intro.3

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/share/man/man3

2018-03-07 Thread Thomas Klausner
Module Name:src
Committed By:   wiz
Date:   Thu Mar  8 06:47:30 UTC 2018

Modified Files:
src/share/man/man3: bitmap.3

Log Message:
Bump date for previous.


To generate a diff of this commit:
cvs rdiff -u -r1.11 -r1.12 src/share/man/man3/bitmap.3

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/share/man/man3

2018-03-07 Thread Thomas Klausner
Module Name:src
Committed By:   wiz
Date:   Thu Mar  8 06:47:30 UTC 2018

Modified Files:
src/share/man/man3: bitmap.3

Log Message:
Bump date for previous.


To generate a diff of this commit:
cvs rdiff -u -r1.11 -r1.12 src/share/man/man3/bitmap.3

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/share/man/man3/bitmap.3
diff -u src/share/man/man3/bitmap.3:1.11 src/share/man/man3/bitmap.3:1.12
--- src/share/man/man3/bitmap.3:1.11	Thu Mar  8 05:50:13 2018
+++ src/share/man/man3/bitmap.3	Thu Mar  8 06:47:30 2018
@@ -1,4 +1,4 @@
-.\"	$NetBSD: bitmap.3,v 1.11 2018/03/08 05:50:13 martin Exp $
+.\"	$NetBSD: bitmap.3,v 1.12 2018/03/08 06:47:30 wiz Exp $
 .\"
 .\" Copyright (c) 2012 The NetBSD Foundation, Inc.
 .\" All rights reserved.
@@ -27,7 +27,7 @@
 .\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
 .\" POSSIBILITY OF SUCH DAMAGE.
 .\"
-.Dd December 6, 2012
+.Dd March 8, 2018
 .Dt BITMAP 3
 .Os
 .Sh NAME



CVS commit: src/share/man/man3

2018-03-07 Thread Martin Husemann
Module Name:src
Committed By:   martin
Date:   Thu Mar  8 05:50:14 UTC 2018

Modified Files:
src/share/man/man3: bitmap.3

Log Message:
__BITMAP_ZERO() only takes the pointer to the bitmap as an argument


To generate a diff of this commit:
cvs rdiff -u -r1.10 -r1.11 src/share/man/man3/bitmap.3

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/share/man/man3

2018-03-07 Thread Martin Husemann
Module Name:src
Committed By:   martin
Date:   Thu Mar  8 05:50:14 UTC 2018

Modified Files:
src/share/man/man3: bitmap.3

Log Message:
__BITMAP_ZERO() only takes the pointer to the bitmap as an argument


To generate a diff of this commit:
cvs rdiff -u -r1.10 -r1.11 src/share/man/man3/bitmap.3

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/share/man/man3/bitmap.3
diff -u src/share/man/man3/bitmap.3:1.10 src/share/man/man3/bitmap.3:1.11
--- src/share/man/man3/bitmap.3:1.10	Mon Jul  3 21:30:58 2017
+++ src/share/man/man3/bitmap.3	Thu Mar  8 05:50:13 2018
@@ -1,4 +1,4 @@
-.\"	$NetBSD: bitmap.3,v 1.10 2017/07/03 21:30:58 wiz Exp $
+.\"	$NetBSD: bitmap.3,v 1.11 2018/03/08 05:50:13 martin Exp $
 .\"
 .\" Copyright (c) 2012 The NetBSD Foundation, Inc.
 .\" All rights reserved.
@@ -106,7 +106,7 @@ that holds
 and is named
 .Fa name .
 .Pp
-.Fn __BITMAP_ZERO bit bitmap
+.Fn __BITMAP_ZERO bitmap
 initializes a descriptor set pointed to by
 .Fa bitmap
 to the null set.



CVS commit: src/share/man/man3

2017-11-13 Thread Thomas Klausner
Module Name:src
Committed By:   wiz
Date:   Mon Nov 13 09:11:16 UTC 2017

Modified Files:
src/share/man/man3: __insn_barrier.3

Log Message:
Remove Tn.


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/share/man/man3/__insn_barrier.3

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/share/man/man3

2017-11-13 Thread Thomas Klausner
Module Name:src
Committed By:   wiz
Date:   Mon Nov 13 09:11:16 UTC 2017

Modified Files:
src/share/man/man3: __insn_barrier.3

Log Message:
Remove Tn.


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/share/man/man3/__insn_barrier.3

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/share/man/man3/__insn_barrier.3
diff -u src/share/man/man3/__insn_barrier.3:1.3 src/share/man/man3/__insn_barrier.3:1.4
--- src/share/man/man3/__insn_barrier.3:1.3	Sun Nov 12 21:15:22 2017
+++ src/share/man/man3/__insn_barrier.3	Mon Nov 13 09:11:16 2017
@@ -1,4 +1,4 @@
-.\" $NetBSD: __insn_barrier.3,v 1.3 2017/11/12 21:15:22 riastradh Exp $
+.\" $NetBSD: __insn_barrier.3,v 1.4 2017/11/13 09:11:16 wiz Exp $
 .\"
 .\" Copyright (c) 2010 Jukka Ruohonen 
 .\" All rights reserved.
@@ -37,9 +37,7 @@
 .Sh DESCRIPTION
 The
 .Fn __insn_barrier
-macro prevents
-.Tn GCC
-from moving code across the barrier.
+macro prevents GCC from moving code across the barrier.
 In other words, the compiler is not allowed to reorder read and write
 commands below the barrier with the code preceding the barrier.
 Like with the



CVS commit: src/share/man/man3

2017-11-12 Thread Taylor R Campbell
Module Name:src
Committed By:   riastradh
Date:   Sun Nov 12 21:15:22 UTC 2017

Modified Files:
src/share/man/man3: __insn_barrier.3

Log Message:
Replace xref mb(9) by xref membar_ops(3).


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 src/share/man/man3/__insn_barrier.3

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/share/man/man3

2017-11-12 Thread Taylor R Campbell
Module Name:src
Committed By:   riastradh
Date:   Sun Nov 12 21:15:22 UTC 2017

Modified Files:
src/share/man/man3: __insn_barrier.3

Log Message:
Replace xref mb(9) by xref membar_ops(3).


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 src/share/man/man3/__insn_barrier.3

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/share/man/man3/__insn_barrier.3
diff -u src/share/man/man3/__insn_barrier.3:1.2 src/share/man/man3/__insn_barrier.3:1.3
--- src/share/man/man3/__insn_barrier.3:1.2	Sun Jan  2 07:14:02 2011
+++ src/share/man/man3/__insn_barrier.3	Sun Nov 12 21:15:22 2017
@@ -1,4 +1,4 @@
-.\" $NetBSD: __insn_barrier.3,v 1.2 2011/01/02 07:14:02 jruoho Exp $
+.\" $NetBSD: __insn_barrier.3,v 1.3 2017/11/12 21:15:22 riastradh Exp $
 .\"
 .\" Copyright (c) 2010 Jukka Ruohonen 
 .\" All rights reserved.
@@ -51,7 +51,7 @@ from misoptimizing.
 .Sh SEE ALSO
 .Xr gcc 1 ,
 .Xr cdefs 3 ,
-.Xr mb 9
+.Xr membar_ops 3
 .Rs
 .%A Paul E. McKenney
 .%T Memory Barriers: a Hardware View for Software Hackers



CVS commit: src/share/man/man3

2017-10-01 Thread Paul Goyette
Module Name:src
Committed By:   pgoyette
Date:   Mon Oct  2 05:16:41 UTC 2017

Modified Files:
src/share/man/man3: queue.3

Log Message:
Update for new signature for LIST_MOVE()


To generate a diff of this commit:
cvs rdiff -u -r1.58 -r1.59 src/share/man/man3/queue.3

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/share/man/man3/queue.3
diff -u src/share/man/man3/queue.3:1.58 src/share/man/man3/queue.3:1.59
--- src/share/man/man3/queue.3:1.58	Tue Aug  8 03:58:43 2017
+++ src/share/man/man3/queue.3	Mon Oct  2 05:16:41 2017
@@ -1,4 +1,4 @@
-.\"	$NetBSD: queue.3,v 1.58 2017/08/08 03:58:43 isaki Exp $
+.\"	$NetBSD: queue.3,v 1.59 2017/10/02 05:16:41 pgoyette Exp $
 .\"
 .\" Copyright (c) 2000, 2002 The NetBSD Foundation, Inc.
 .\" All rights reserved.
@@ -53,7 +53,7 @@
 .\"
 .\"	@(#)queue.3	8.1 (Berkeley) 12/13/93
 .\"
-.Dd October 15, 2016
+.Dd October 1, 2017
 .Dt QUEUE 3
 .Os
 .Sh NAME
@@ -177,7 +177,7 @@
 .Fn LIST_INSERT_HEAD "LIST_HEAD *head" "TYPE *elm" "LIST_ENTRY NAME"
 .Fn LIST_REMOVE "TYPE *elm" "LIST_ENTRY NAME"
 .Fn LIST_REPLACE "TYPE *elm" "TYPE *new" "LIST_ENTRY NAME"
-.Fn LIST_MOVE "LIST_HEAD *head1" "LIST_HEAD *head2"
+.Fn LIST_MOVE "LIST_HEAD *head1" "LIST_HEAD *head2" "LIST_ENTRY NAME"
 .Pp
 .Fn SIMPLEQ_HEAD "HEADNAME" "TYPE"
 .Fn SIMPLEQ_HEAD_INITIALIZER "head"



CVS commit: src/share/man/man3

2017-10-01 Thread Paul Goyette
Module Name:src
Committed By:   pgoyette
Date:   Mon Oct  2 05:16:41 UTC 2017

Modified Files:
src/share/man/man3: queue.3

Log Message:
Update for new signature for LIST_MOVE()


To generate a diff of this commit:
cvs rdiff -u -r1.58 -r1.59 src/share/man/man3/queue.3

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/share/man/man3

2017-08-07 Thread Tetsuya Isaki
Module Name:src
Committed By:   isaki
Date:   Tue Aug  8 03:58:43 UTC 2017

Modified Files:
src/share/man/man3: queue.3

Log Message:
s/tail queue/simple queue/ in SIMPLE QUEUES section.


To generate a diff of this commit:
cvs rdiff -u -r1.57 -r1.58 src/share/man/man3/queue.3

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/share/man/man3/queue.3
diff -u src/share/man/man3/queue.3:1.57 src/share/man/man3/queue.3:1.58
--- src/share/man/man3/queue.3:1.57	Mon Jul  3 21:30:58 2017
+++ src/share/man/man3/queue.3	Tue Aug  8 03:58:43 2017
@@ -1,4 +1,4 @@
-.\"	$NetBSD: queue.3,v 1.57 2017/07/03 21:30:58 wiz Exp $
+.\"	$NetBSD: queue.3,v 1.58 2017/08/08 03:58:43 isaki Exp $
 .\"
 .\" Copyright (c) 2000, 2002 The NetBSD Foundation, Inc.
 .\" All rights reserved.
@@ -764,13 +764,13 @@ returns the element after the element
 .Pp
 The macro
 .Fn SIMPLEQ_LAST
-returns the last item on the tail queue.
-If the tail queue is empty the return value is
+returns the last item on the simple queue.
+If the simple queue is empty the return value is
 .Dv NULL .
 .Pp
 The macro
 .Fn SIMPLEQ_FOREACH
-traverses the tail queue referenced by
+traverses the simple queue referenced by
 .Fa head
 in the forward direction, assigning each element
 in turn to
@@ -832,7 +832,7 @@ from the simple queue.
 .Pp
 The macro
 .Fn SIMPLEQ_CONCAT
-concatenates the tail queue headed by
+concatenates the simple queue headed by
 .Fa head2
 onto the end of the one headed by
 .Fa head1 ,



CVS commit: src/share/man/man3

2017-08-07 Thread Tetsuya Isaki
Module Name:src
Committed By:   isaki
Date:   Tue Aug  8 03:58:43 UTC 2017

Modified Files:
src/share/man/man3: queue.3

Log Message:
s/tail queue/simple queue/ in SIMPLE QUEUES section.


To generate a diff of this commit:
cvs rdiff -u -r1.57 -r1.58 src/share/man/man3/queue.3

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/share/man/man3

2017-04-25 Thread Abhinav Upadhyay
Module Name:src
Committed By:   abhinav
Date:   Tue Apr 25 06:08:24 UTC 2017

Modified Files:
src/share/man/man3: queue.3

Log Message:
Use Fn instead of Nm to refer the macros in the body of the man page.

Thanks to wiz@ for reviewing.


To generate a diff of this commit:
cvs rdiff -u -r1.55 -r1.56 src/share/man/man3/queue.3

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/share/man/man3/queue.3
diff -u src/share/man/man3/queue.3:1.55 src/share/man/man3/queue.3:1.56
--- src/share/man/man3/queue.3:1.55	Sat Apr 22 22:36:00 2017
+++ src/share/man/man3/queue.3	Tue Apr 25 06:08:24 2017
@@ -1,4 +1,4 @@
-.\"	$NetBSD: queue.3,v 1.55 2017/04/22 22:36:00 abhinav Exp $
+.\"	$NetBSD: queue.3,v 1.56 2017/04/25 06:08:24 abhinav Exp $
 .\"
 .\" Copyright (c) 2000, 2002 The NetBSD Foundation, Inc.
 .\" All rights reserved.
@@ -406,7 +406,7 @@ _CONCAT:-:-:+:+:+
 .TE
 .Sh SINGLY-LINKED LISTS
 A singly-linked list is headed by a structure defined by the
-.Nm SLIST_HEAD
+.Fn SLIST_HEAD
 macro.
 This structure contains a single pointer to the first element
 on the list.
@@ -438,28 +438,28 @@ and
 are user selectable.)
 .Pp
 The macro
-.Nm SLIST_HEAD_INITIALIZER
+.Fn SLIST_HEAD_INITIALIZER
 evaluates to an initializer for the list
 .Fa head .
 .Pp
 The macro
-.Nm SLIST_ENTRY
+.Fn SLIST_ENTRY
 declares a structure that connects the elements in
 the list.
 .Pp
 The macro
-.Nm SLIST_FIRST
+.Fn SLIST_FIRST
 returns the first element in the list or NULL if the list is empty.
 .Pp
 The macro
-.Nm SLIST_EMPTY
+.Fn SLIST_EMPTY
 evaluates to true if there are no elements in the list.
 .Pp
 The macro
-.Nm SLIST_NEXT
+.Fn SLIST_NEXT
 returns the next element in the list.
 .Pp
-.Nm SLIST_FOREACH
+.Fn SLIST_FOREACH
 traverses the list referenced by
 .Fa head
 in the forward direction, assigning each element in
@@ -473,45 +473,45 @@ to hold the next element, so
 may be freed or removed from the list.
 .Pp
 The macro
-.Nm SLIST_INIT
+.Fn SLIST_INIT
 initializes the list referenced by
 .Fa head .
 .Pp
 The macro
-.Nm SLIST_INSERT_HEAD
+.Fn SLIST_INSERT_HEAD
 inserts the new element
 .Fa elm
 at the head of the list.
 .Pp
 The macro
-.Nm SLIST_INSERT_AFTER
+.Fn SLIST_INSERT_AFTER
 inserts the new element
 .Fa elm
 after the element
 .Fa listelm .
 .Pp
 The macro
-.Nm SLIST_REMOVE
+.Fn SLIST_REMOVE
 removes the element
 .Fa elm
 from the list.
 .Pp
 The macro
-.Nm SLIST_REMOVE_HEAD
+.Fn SLIST_REMOVE_HEAD
 removes the first element from the head of the list.
 For optimum efficiency,
 elements being removed from the head of the list should explicitly use
 this macro instead of the generic
-.Nm SLIST_REMOVE
+.Fn SLIST_REMOVE
 macro.
 .Pp
 The macro
-.Nm SLIST_REMOVE_AFTER
+.Fn SLIST_REMOVE_AFTER
 removes the element after the one specified.
 For optimum efficiency,
 elements being removed after a specified one should explicitly use
 this macro instead of the generic
-.Nm SLIST_REMOVE
+.Fn SLIST_REMOVE
 .Sh SINGLY-LINKED LIST EXAMPLE
 .Bd -literal
 SLIST_HEAD(slisthead, entry) head =
@@ -549,7 +549,7 @@ while (!SLIST_EMPTY(\*[Am]head)) {  
 .Ed
 .Sh LISTS
 A list is headed by a structure defined by the
-.Nm LIST_HEAD
+.Fn LIST_HEAD
 macro.
 This structure contains a single pointer to the first element
 on the list.
@@ -581,12 +581,12 @@ and
 are user selectable.)
 .Pp
 The macro
-.Nm LIST_ENTRY
+.Fn LIST_ENTRY
 declares a structure that connects the elements in
 the list.
 .Pp
 The macro
-.Nm LIST_HEAD_INITIALIZER
+.Fn LIST_HEAD_INITIALIZER
 provides a value which can be used to initialize a list head at
 compile time, and is used at the point that the list head
 variable is declared, like:
@@ -595,23 +595,23 @@ struct HEADNAME head = LIST_HEAD_INITIAL
 .Ed
 .Pp
 The macro
-.Nm LIST_FIRST
+.Fn LIST_FIRST
 returns the first element of the list
 .Fa head .
 .Pp
 The macro
-.Nm LIST_EMPTY
+.Fn LIST_EMPTY
 returns true if the list
 .Fa head
 has no elements.
 .Pp
 The macro
-.Nm LIST_NEXT
+.Fn LIST_NEXT
 returns the element after the element
 .Fa elm .
 .Pp
 The macro
-.Nm LIST_FOREACH
+.Fn LIST_FOREACH
 traverses the list referenced by
 .Fa head
 in the forward direction, assigning each element in turn to
@@ -624,38 +624,38 @@ to hold the next element, so
 may be freed or removed from the list.
 .Pp
 The macro
-.Nm LIST_INIT
+.Fn LIST_INIT
 initializes the list referenced by
 .Fa head .
 .Pp
 The macro
-.Nm LIST_INSERT_AFTER
+.Fn LIST_INSERT_AFTER
 inserts the new element
 .Fa elm
 after the element
 .Fa listelm .
 .Pp
 The macro
-.Nm LIST_INSERT_BEFORE
+.Fn LIST_INSERT_BEFORE
 inserts the new element
 .Fa elm
 before the element
 .Fa listelm .
 .Pp
 The macro
-.Nm LIST_INSERT_HEAD
+.Fn LIST_INSERT_HEAD
 inserts the new element
 .Fa elm
 at the head of the list.
 .Pp
 The macro
-.Nm LIST_REMOVE
+.Fn LIST_REMOVE
 removes the element
 .Fa elm
 from the list.
 .Pp
 The macro
-.Nm LIST_REPLACE
+.Fn LIST_REPLACE
 replaces the element
 .Fa 

CVS commit: src/share/man/man3

2017-04-25 Thread Abhinav Upadhyay
Module Name:src
Committed By:   abhinav
Date:   Tue Apr 25 06:08:24 UTC 2017

Modified Files:
src/share/man/man3: queue.3

Log Message:
Use Fn instead of Nm to refer the macros in the body of the man page.

Thanks to wiz@ for reviewing.


To generate a diff of this commit:
cvs rdiff -u -r1.55 -r1.56 src/share/man/man3/queue.3

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/share/man/man3

2017-04-22 Thread Abhinav Upadhyay
Module Name:src
Committed By:   abhinav
Date:   Sat Apr 22 22:36:00 UTC 2017

Modified Files:
src/share/man/man3: queue.3

Log Message:
Remove comma after the last Nm entry.


To generate a diff of this commit:
cvs rdiff -u -r1.54 -r1.55 src/share/man/man3/queue.3

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/share/man/man3/queue.3
diff -u src/share/man/man3/queue.3:1.54 src/share/man/man3/queue.3:1.55
--- src/share/man/man3/queue.3:1.54	Sat Oct 15 16:31:16 2016
+++ src/share/man/man3/queue.3	Sat Apr 22 22:36:00 2017
@@ -1,4 +1,4 @@
-.\"	$NetBSD: queue.3,v 1.54 2016/10/15 16:31:16 jdolecek Exp $
+.\"	$NetBSD: queue.3,v 1.55 2017/04/22 22:36:00 abhinav Exp $
 .\"
 .\" Copyright (c) 2000, 2002 The NetBSD Foundation, Inc.
 .\" All rights reserved.
@@ -138,7 +138,7 @@
 .Nm STAILQ_INSERT_TAIL ,
 .Nm STAILQ_REMOVE_HEAD ,
 .Nm STAILQ_REMOVE ,
-.Nm STAILQ_CONCAT ,
+.Nm STAILQ_CONCAT
 .Nd implementations of singly-linked lists, lists, simple queues, tail queues, and singly-linked tail queues
 .Sh SYNOPSIS
 .In sys/queue.h



CVS commit: src/share/man/man3

2017-04-22 Thread Abhinav Upadhyay
Module Name:src
Committed By:   abhinav
Date:   Sat Apr 22 22:36:00 UTC 2017

Modified Files:
src/share/man/man3: queue.3

Log Message:
Remove comma after the last Nm entry.


To generate a diff of this commit:
cvs rdiff -u -r1.54 -r1.55 src/share/man/man3/queue.3

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/share/man/man3

2016-12-29 Thread Thomas Klausner
Module Name:src
Committed By:   wiz
Date:   Thu Dec 29 23:55:28 UTC 2016

Modified Files:
src/share/man/man3: bitstring.3

Log Message:
bitstring.h does not provide size_t; include sys/types.h for that.
Bump date.


To generate a diff of this commit:
cvs rdiff -u -r1.16 -r1.17 src/share/man/man3/bitstring.3

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/share/man/man3

2016-12-16 Thread Abhinav Upadhyay
Module Name:src
Committed By:   abhinav
Date:   Fri Dec 16 17:20:52 UTC 2016

Modified Files:
src/share/man/man3: bitops.3

Log Message:
Fix sentence.


To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 src/share/man/man3/bitops.3

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/share/man/man3/bitops.3
diff -u src/share/man/man3/bitops.3:1.4 src/share/man/man3/bitops.3:1.5
--- src/share/man/man3/bitops.3:1.4	Tue Dec  4 06:57:45 2012
+++ src/share/man/man3/bitops.3	Fri Dec 16 17:20:52 2016
@@ -1,4 +1,4 @@
-.\" $NetBSD: bitops.3,v 1.4 2012/12/04 06:57:45 jruoho Exp $
+.\" $NetBSD: bitops.3,v 1.5 2016/12/16 17:20:52 abhinav Exp $
 .\"
 .\" Copyright (c) 2011 Jukka Ruohonen 
 .\" All rights reserved.
@@ -37,7 +37,7 @@ The
 .In sys/bitops.h
 header includes macros and
 .Em static inline
-functions related bits and integers.
+functions related to bits and integers.
 Among these are:
 .Bl -tag -width "fast_divide32(3) " -offset indent
 .It Xr bitmap 3



CVS commit: src/share/man/man3

2016-12-16 Thread Abhinav Upadhyay
Module Name:src
Committed By:   abhinav
Date:   Fri Dec 16 17:20:52 UTC 2016

Modified Files:
src/share/man/man3: bitops.3

Log Message:
Fix sentence.


To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 src/share/man/man3/bitops.3

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/share/man/man3

2016-11-06 Thread Taylor R Campbell
Module Name:src
Committed By:   riastradh
Date:   Mon Nov  7 03:12:54 UTC 2016

Modified Files:
src/share/man/man3: bits.3

Log Message:
These have been able to handle uintmax-width masks since creation.

XXX pullup-6
XXX pullup-7


To generate a diff of this commit:
cvs rdiff -u -r1.16 -r1.17 src/share/man/man3/bits.3

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/share/man/man3/bits.3
diff -u src/share/man/man3/bits.3:1.16 src/share/man/man3/bits.3:1.17
--- src/share/man/man3/bits.3:1.16	Tue Mar 18 18:20:39 2014
+++ src/share/man/man3/bits.3	Mon Nov  7 03:12:54 2016
@@ -1,4 +1,4 @@
-.\"	$NetBSD: bits.3,v 1.16 2014/03/18 18:20:39 riastradh Exp $
+.\"	$NetBSD: bits.3,v 1.17 2016/11/07 03:12:54 riastradh Exp $
 .\"
 .\" Copyright (c) 2006, 2010 David Young.  All rights reserved.
 .\"
@@ -25,7 +25,7 @@
 .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
 .\" POSSIBILITY OF SUCH DAMAGE.
 .\"
-.Dd October 17, 2012
+.Dd November 6, 2016
 .Dt BITS 3
 .Os
 .Sh NAME
@@ -146,8 +146,3 @@ contributed the macro names
 .Fn SHIFTIN
 and
 .Fn SHIFTOUT .
-.Sh BUGS
-.Fn __BIT
-and
-.Fn __BITS
-can only express 32-bit bitmasks.



CVS commit: src/share/man/man3

2016-11-06 Thread Taylor R Campbell
Module Name:src
Committed By:   riastradh
Date:   Mon Nov  7 03:12:54 UTC 2016

Modified Files:
src/share/man/man3: bits.3

Log Message:
These have been able to handle uintmax-width masks since creation.

XXX pullup-6
XXX pullup-7


To generate a diff of this commit:
cvs rdiff -u -r1.16 -r1.17 src/share/man/man3/bits.3

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/share/man/man3

2016-10-15 Thread Jaromir Dolecek
Module Name:src
Committed By:   jdolecek
Date:   Sat Oct 15 16:31:16 UTC 2016

Modified Files:
src/share/man/man3: queue.3

Log Message:
fix tyop


To generate a diff of this commit:
cvs rdiff -u -r1.53 -r1.54 src/share/man/man3/queue.3

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/share/man/man3

2016-10-15 Thread Jaromir Dolecek
Module Name:src
Committed By:   jdolecek
Date:   Sat Oct 15 16:31:16 UTC 2016

Modified Files:
src/share/man/man3: queue.3

Log Message:
fix tyop


To generate a diff of this commit:
cvs rdiff -u -r1.53 -r1.54 src/share/man/man3/queue.3

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/share/man/man3/queue.3
diff -u src/share/man/man3/queue.3:1.53 src/share/man/man3/queue.3:1.54
--- src/share/man/man3/queue.3:1.53	Tue May 31 08:24:43 2016
+++ src/share/man/man3/queue.3	Sat Oct 15 16:31:16 2016
@@ -1,4 +1,4 @@
-.\"	$NetBSD: queue.3,v 1.53 2016/05/31 08:24:43 wiz Exp $
+.\"	$NetBSD: queue.3,v 1.54 2016/10/15 16:31:16 jdolecek Exp $
 .\"
 .\" Copyright (c) 2000, 2002 The NetBSD Foundation, Inc.
 .\" All rights reserved.
@@ -53,7 +53,7 @@
 .\"
 .\"	@(#)queue.3	8.1 (Berkeley) 12/13/93
 .\"
-.Dd May 31, 2016
+.Dd October 15, 2016
 .Dt QUEUE 3
 .Os
 .Sh NAME
@@ -812,7 +812,7 @@ removes the first element from the head 
 For optimum efficiency,
 elements being removed from the head of the queue should explicitly use
 this macro instead of the generic
-.Nm SIMPLQ_REMOVE
+.Nm SIMPLEQ_REMOVE
 macro.
 .Pp
 The macro
@@ -821,7 +821,7 @@ removes the element after the one specif
 For optimum efficiency,
 elements being removed after specified elements should explicitly use
 this macro instead of the generic
-.Nm SIMPLQ_REMOVE
+.Nm SIMPLEQ_REMOVE
 macro.
 .Pp
 The macro



CVS commit: src/share/man/man3

2016-08-29 Thread David A. Holland
Module Name:src
Committed By:   dholland
Date:   Tue Aug 30 05:12:00 UTC 2016

Modified Files:
src/share/man/man3: rbtree.3

Log Message:
Use only "function" for the comparison functions, not both that and
"operator". Noted by riastradh.


To generate a diff of this commit:
cvs rdiff -u -r1.11 -r1.12 src/share/man/man3/rbtree.3

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/share/man/man3/rbtree.3
diff -u src/share/man/man3/rbtree.3:1.11 src/share/man/man3/rbtree.3:1.12
--- src/share/man/man3/rbtree.3:1.11	Mon Aug 29 03:50:05 2016
+++ src/share/man/man3/rbtree.3	Tue Aug 30 05:12:00 2016
@@ -1,4 +1,4 @@
-.\" $NetBSD: rbtree.3,v 1.11 2016/08/29 03:50:05 dholland Exp $
+.\" $NetBSD: rbtree.3,v 1.12 2016/08/30 05:12:00 dholland Exp $
 .\"
 .\" Copyright (c) 2010 The NetBSD Foundation, Inc.
 .\" All rights reserved.
@@ -81,7 +81,7 @@ The maximum height of a red-black tree i
 A red-black tree.
 .It Vt typedef signed int \
 (* rbto_compare_nodes_fn)(void *context, const void *node1, const void *node2);
-The node-comparison operator.
+The node-comparison function.
 Defines an ordering on nodes.
 Returns a negative value if the first node
 .Ar node1
@@ -98,7 +98,7 @@ and the second node
 are identical according to the ordering.
 .It Vt typedef signed int \
 (* rbto_compare_key_fn)(void *context, const void *node, const void *key);
-The node-key comparison operator.
+The node-key comparison function.
 Defines the order of nodes and keys.
 Returns a negative value if the node
 .Ar node
@@ -114,8 +114,8 @@ is identical to the key
 .Ar key
 according to the ordering.
 .It Vt rb_tree_ops_t
-Defines the operator for comparing two nodes in the same tree,
-the operator for comparing a node in the tree with a key,
+Defines the function for comparing two nodes in the same tree,
+the function for comparing a node in the tree with a key,
 the offset of member
 .Vt rb_node_t
 within the node type,
@@ -146,7 +146,7 @@ member.)
 .It Fn rb_tree_init "rbt" "ops"
 Initialize the red-black tree
 .Fa rbt .
-Let the comparison operators given by
+Let the comparison functions given by
 .Fa ops
 define the order of nodes in the tree for
 the purposes of insertion, search, and iteration.



CVS commit: src/share/man/man3

2016-08-29 Thread David A. Holland
Module Name:src
Committed By:   dholland
Date:   Tue Aug 30 05:12:00 UTC 2016

Modified Files:
src/share/man/man3: rbtree.3

Log Message:
Use only "function" for the comparison functions, not both that and
"operator". Noted by riastradh.


To generate a diff of this commit:
cvs rdiff -u -r1.11 -r1.12 src/share/man/man3/rbtree.3

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/share/man/man3

2016-08-28 Thread David A. Holland
Module Name:src
Committed By:   dholland
Date:   Mon Aug 29 03:50:05 UTC 2016

Modified Files:
src/share/man/man3: rbtree.3

Log Message:
Clarify the usage, so hopefully nobody else makes the set of wrong
assumptions I just did.


To generate a diff of this commit:
cvs rdiff -u -r1.10 -r1.11 src/share/man/man3/rbtree.3

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/share/man/man3/rbtree.3
diff -u src/share/man/man3/rbtree.3:1.10 src/share/man/man3/rbtree.3:1.11
--- src/share/man/man3/rbtree.3:1.10	Tue Mar 18 18:20:39 2014
+++ src/share/man/man3/rbtree.3	Mon Aug 29 03:50:05 2016
@@ -1,4 +1,4 @@
-.\" $NetBSD: rbtree.3,v 1.10 2014/03/18 18:20:39 riastradh Exp $
+.\" $NetBSD: rbtree.3,v 1.11 2016/08/29 03:50:05 dholland Exp $
 .\"
 .\" Copyright (c) 2010 The NetBSD Foundation, Inc.
 .\" All rights reserved.
@@ -27,7 +27,7 @@
 .\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
 .\" POSSIBILITY OF SUCH DAMAGE.
 .\"
-.Dd March 13, 2013
+.Dd August 29, 2016
 .Dt RBTREE 3
 .Os
 .Sh NAME
@@ -118,8 +118,8 @@ Defines the operator for comparing two n
 the operator for comparing a node in the tree with a key,
 the offset of member
 .Vt rb_node_t
-within a node,
-and the opaque context passed to the operators.
+within the node type,
+and the opaque context pointer passed to the comparison functions.
 Members of
 .Vt rb_tree_ops_t
 are
@@ -131,6 +131,15 @@ are
 .Ed
 .It Vt rb_node_t
 A node in a red-black tree has this structure as a member.
+The offset of the
+.Vt rb_node_t
+member in the caller's node structure should be provided as
+.Va rbto_node_offset .
+(None of the functions in the
+.Nm
+interface are meant to take pointers directly to the
+.Vt rb_node_t
+member.)
 .El
 .Sh FUNCTIONS
 .Bl -tag -width compact



CVS commit: src/share/man/man3

2016-08-28 Thread David A. Holland
Module Name:src
Committed By:   dholland
Date:   Mon Aug 29 03:50:05 UTC 2016

Modified Files:
src/share/man/man3: rbtree.3

Log Message:
Clarify the usage, so hopefully nobody else makes the set of wrong
assumptions I just did.


To generate a diff of this commit:
cvs rdiff -u -r1.10 -r1.11 src/share/man/man3/rbtree.3

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/share/man/man3

2016-05-31 Thread Paul Goyette
Module Name:src
Committed By:   pgoyette
Date:   Wed Jun  1 01:31:11 UTC 2016

Modified Files:
src/share/man/man3: assert.3

Log Message:
Fix AT version reference.  From PR misc/49519


To generate a diff of this commit:
cvs rdiff -u -r1.13 -r1.14 src/share/man/man3/assert.3

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/share/man/man3/assert.3
diff -u src/share/man/man3/assert.3:1.13 src/share/man/man3/assert.3:1.14
--- src/share/man/man3/assert.3:1.13	Tue Jan 23 20:32:05 2007
+++ src/share/man/man3/assert.3	Wed Jun  1 01:31:11 2016
@@ -1,4 +1,4 @@
-.\"	$NetBSD: assert.3,v 1.13 2007/01/23 20:32:05 wiz Exp $
+.\"	$NetBSD: assert.3,v 1.14 2016/06/01 01:31:11 pgoyette Exp $
 .\"
 .\" Copyright (c) 1991, 1993
 .\"	The Regents of the University of California.  All rights reserved.
@@ -29,7 +29,7 @@
 .\"
 .\" @(#)assert.3	8.1 (Berkeley) 6/9/93
 .\"
-.Dd January 22, 2007
+.Dd June 1, 2016
 .Dt ASSERT 3
 .Os
 .Sh NAME
@@ -92,7 +92,7 @@ macro conforms to
 A
 .Nm
 macro appeared in
-.At v6 .
+.At v7 .
 .Pp
 Information on the name of the enclosing function appeared in
 .St -isoC-99 .



CVS commit: src/share/man/man3

2016-05-31 Thread Paul Goyette
Module Name:src
Committed By:   pgoyette
Date:   Wed Jun  1 01:31:11 UTC 2016

Modified Files:
src/share/man/man3: assert.3

Log Message:
Fix AT version reference.  From PR misc/49519


To generate a diff of this commit:
cvs rdiff -u -r1.13 -r1.14 src/share/man/man3/assert.3

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/share/man/man3

2016-05-31 Thread Thomas Klausner
Module Name:src
Committed By:   wiz
Date:   Tue May 31 08:24:43 UTC 2016

Modified Files:
src/share/man/man3: queue.3

Log Message:
Remove trailing whitespace.


To generate a diff of this commit:
cvs rdiff -u -r1.52 -r1.53 src/share/man/man3/queue.3

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/share/man/man3

2016-05-31 Thread Thomas Klausner
Module Name:src
Committed By:   wiz
Date:   Tue May 31 08:24:43 UTC 2016

Modified Files:
src/share/man/man3: queue.3

Log Message:
Remove trailing whitespace.


To generate a diff of this commit:
cvs rdiff -u -r1.52 -r1.53 src/share/man/man3/queue.3

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/share/man/man3/queue.3
diff -u src/share/man/man3/queue.3:1.52 src/share/man/man3/queue.3:1.53
--- src/share/man/man3/queue.3:1.52	Tue May 31 06:00:38 2016
+++ src/share/man/man3/queue.3	Tue May 31 08:24:43 2016
@@ -1,4 +1,4 @@
-.\"	$NetBSD: queue.3,v 1.52 2016/05/31 06:00:38 pgoyette Exp $
+.\"	$NetBSD: queue.3,v 1.53 2016/05/31 08:24:43 wiz Exp $
 .\"
 .\" Copyright (c) 2000, 2002 The NetBSD Foundation, Inc.
 .\" All rights reserved.
@@ -1041,7 +1041,7 @@ TAILQ_FOREACH(np, \*[Am]head, entries)	/
 	/* Reverse traversal. */
 TAILQ_FOREACH_REVERSE(np, \*[Am]head, tailhead, entries)
 	np-\*[Gt] ...
-	
+
 while (TAILQ_FIRST(\*[Am]head) != NULL)	/* Delete. */
 	TAILQ_REMOVE(\*[Am]head, TAILQ_FIRST(\*[Am]head), entries);
 if (TAILQ_EMPTY(\*[Am]head))			/* Test for emptiness. */



CVS commit: src/share/man/man3

2016-05-31 Thread Paul Goyette
Module Name:src
Committed By:   pgoyette
Date:   Tue May 31 06:00:39 UTC 2016

Modified Files:
src/share/man/man3: queue.3

Log Message:
Correct list of operations to note that SLISTs and SIMPLEQs cannot insert
entries before existing entries.  This can only be done for LISTs and
TAILQs.

Fixes PR kern/50845


To generate a diff of this commit:
cvs rdiff -u -r1.51 -r1.52 src/share/man/man3/queue.3

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/share/man/man3/queue.3
diff -u src/share/man/man3/queue.3:1.51 src/share/man/man3/queue.3:1.52
--- src/share/man/man3/queue.3:1.51	Tue Feb  2 12:25:24 2016
+++ src/share/man/man3/queue.3	Tue May 31 06:00:38 2016
@@ -1,4 +1,4 @@
-.\"	$NetBSD: queue.3,v 1.51 2016/02/02 12:25:24 ryoon Exp $
+.\"	$NetBSD: queue.3,v 1.52 2016/05/31 06:00:38 pgoyette Exp $
 .\"
 .\" Copyright (c) 2000, 2002 The NetBSD Foundation, Inc.
 .\" All rights reserved.
@@ -53,7 +53,7 @@
 .\"
 .\"	@(#)queue.3	8.1 (Berkeley) 12/13/93
 .\"
-.Dd February 2, 2016
+.Dd May 31, 2016
 .Dt QUEUE 3
 .Os
 .Sh NAME
@@ -256,7 +256,7 @@ All five structures support the followin
 .It
 Insertion of a new entry at the head of the list.
 .It
-Insertion of a new entry before or after any element in the list.
+Insertion of a new entry after any element in the list.
 .It
 Removal of any entry in the list.
 .It



  1   2   3   4   5   >