summaryrefslogtreecommitdiff
path: root/lib/libc
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libc')
-rw-r--r--lib/libc/compat-43/getdtablesize.36
-rw-r--r--lib/libc/compat-43/gethostid.38
-rw-r--r--lib/libc/gen/getdomainname.36
-rw-r--r--lib/libc/gen/gethostname.36
-rw-r--r--lib/libc/gen/getloadavg.38
-rw-r--r--lib/libc/gen/sysconf.38
-rw-r--r--lib/libc/gen/uname.38
-rw-r--r--lib/libc/net/getifaddrs.38
-rw-r--r--lib/libc/sys/getrlimit.26
-rw-r--r--lib/libc/sys/intro.26
-rw-r--r--lib/libc/sys/mmap.26
-rw-r--r--lib/libc/sys/mprotect.26
-rw-r--r--lib/libc/sys/pathconf.26
-rw-r--r--lib/libc/sys/pledge.210
14 files changed, 49 insertions, 49 deletions
diff --git a/lib/libc/compat-43/getdtablesize.3 b/lib/libc/compat-43/getdtablesize.3
index 18627a0c13a..32e7cd333e6 100644
--- a/lib/libc/compat-43/getdtablesize.3
+++ b/lib/libc/compat-43/getdtablesize.3
@@ -25,9 +25,9 @@
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
-.\" $OpenBSD: getdtablesize.3,v 1.12 2014/12/12 01:40:04 deraadt Exp $
+.\" $OpenBSD: getdtablesize.3,v 1.13 2018/01/12 04:36:44 deraadt Exp $
.\"
-.Dd $Mdocdate: December 12 2014 $
+.Dd $Mdocdate: January 12 2018 $
.Dt GETDTABLESIZE 3
.Os
.Sh NAME
@@ -54,7 +54,7 @@ returns the size of this table.
.Xr select 2 ,
.Xr setrlimit 2 ,
.Xr sysconf 3 ,
-.Xr sysctl 3
+.Xr sysctl 2
.Sh HISTORY
The
.Fn getdtablesize
diff --git a/lib/libc/compat-43/gethostid.3 b/lib/libc/compat-43/gethostid.3
index b4cc3b786d9..edd4a9e8b44 100644
--- a/lib/libc/compat-43/gethostid.3
+++ b/lib/libc/compat-43/gethostid.3
@@ -25,9 +25,9 @@
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
-.\" $OpenBSD: gethostid.3,v 1.13 2013/07/17 05:42:10 schwarze Exp $
+.\" $OpenBSD: gethostid.3,v 1.14 2018/01/12 04:36:44 deraadt Exp $
.\"
-.Dd $Mdocdate: July 17 2013 $
+.Dd $Mdocdate: January 12 2018 $
.Dt GETHOSTID 3
.Os
.Sh NAME
@@ -55,10 +55,10 @@ returns the 32-bit identifier for the current processor.
.Pp
This function has been deprecated.
The hostid should be set or retrieved by use of
-.Xr sysctl 3 .
+.Xr sysctl 2 .
.Sh SEE ALSO
.Xr gethostname 3 ,
-.Xr sysctl 3 ,
+.Xr sysctl 2 ,
.Xr sysctl 8
.Sh HISTORY
The
diff --git a/lib/libc/gen/getdomainname.3 b/lib/libc/gen/getdomainname.3
index d3d35376727..727b4b0345c 100644
--- a/lib/libc/gen/getdomainname.3
+++ b/lib/libc/gen/getdomainname.3
@@ -1,4 +1,4 @@
-.\" $OpenBSD: getdomainname.3,v 1.25 2014/01/21 03:15:45 schwarze Exp $
+.\" $OpenBSD: getdomainname.3,v 1.26 2018/01/12 04:36:44 deraadt Exp $
.\"
.\" Copyright (c) 1983, 1991, 1993
.\" The Regents of the University of California. All rights reserved.
@@ -27,7 +27,7 @@
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
-.Dd $Mdocdate: January 21 2014 $
+.Dd $Mdocdate: January 12 2018 $
.Dt GETDOMAINNAME 3
.Os
.Sh NAME
@@ -81,7 +81,7 @@ The caller tried to set the domain name and was not the superuser.
.Xr domainname 1 ,
.Xr gethostid 3 ,
.Xr gethostname 3 ,
-.Xr sysctl 3 ,
+.Xr sysctl 2 ,
.Xr sysctl 8 ,
.Xr yp 8
.Sh HISTORY
diff --git a/lib/libc/gen/gethostname.3 b/lib/libc/gen/gethostname.3
index 5fe3cd40cdf..9c267f10bfd 100644
--- a/lib/libc/gen/gethostname.3
+++ b/lib/libc/gen/gethostname.3
@@ -1,4 +1,4 @@
-.\" $OpenBSD: gethostname.3,v 1.27 2015/09/04 12:34:22 jmc Exp $
+.\" $OpenBSD: gethostname.3,v 1.28 2018/01/12 04:36:44 deraadt Exp $
.\"
.\" Copyright (c) 1983, 1991, 1993
.\" The Regents of the University of California. All rights reserved.
@@ -27,7 +27,7 @@
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
-.Dd $Mdocdate: September 4 2015 $
+.Dd $Mdocdate: January 12 2018 $
.Dt GETHOSTNAME 3
.Os
.Sh NAME
@@ -85,7 +85,7 @@ The caller tried to set the hostname and was not the superuser.
.Xr hostname 1 ,
.Xr getdomainname 3 ,
.Xr gethostid 3 ,
-.Xr sysctl 3 ,
+.Xr sysctl 2 ,
.Xr sysctl 8 ,
.Xr yp 8
.Sh STANDARDS
diff --git a/lib/libc/gen/getloadavg.3 b/lib/libc/gen/getloadavg.3
index 81b2217911a..914a1b18b69 100644
--- a/lib/libc/gen/getloadavg.3
+++ b/lib/libc/gen/getloadavg.3
@@ -1,4 +1,4 @@
-.\" $OpenBSD: getloadavg.3,v 1.13 2013/06/05 03:39:22 tedu Exp $
+.\" $OpenBSD: getloadavg.3,v 1.14 2018/01/12 04:36:44 deraadt Exp $
.\"
.\" Copyright (c) 1989, 1991, 1993
.\" The Regents of the University of California. All rights reserved.
@@ -27,7 +27,7 @@
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
-.Dd $Mdocdate: June 5 2013 $
+.Dd $Mdocdate: January 12 2018 $
.Dt GETLOADAVG 3
.Os
.Sh NAME
@@ -55,12 +55,12 @@ If an error occurs, \-1 is returned and the global variable
is set to indicate the error.
.Sh ERRORS
Please see
-.Xr sysctl 3
+.Xr sysctl 2
for a list of possible errors.
.Sh SEE ALSO
.Xr uptime 1 ,
.Xr kvm_getloadavg 3 ,
-.Xr sysctl 3
+.Xr sysctl 2
.Sh HISTORY
The
.Fn getloadavg
diff --git a/lib/libc/gen/sysconf.3 b/lib/libc/gen/sysconf.3
index 5350a2358c9..35de14e4ed3 100644
--- a/lib/libc/gen/sysconf.3
+++ b/lib/libc/gen/sysconf.3
@@ -1,4 +1,4 @@
-.\" $OpenBSD: sysconf.3,v 1.33 2014/01/21 03:15:45 schwarze Exp $
+.\" $OpenBSD: sysconf.3,v 1.34 2018/01/12 04:36:44 deraadt Exp $
.\"
.\" Copyright (c) 1993
.\" The Regents of the University of California. All rights reserved.
@@ -27,7 +27,7 @@
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
-.Dd $Mdocdate: January 21 2014 $
+.Dd $Mdocdate: January 12 2018 $
.Dt SYSCONF 3
.Os
.Sh NAME
@@ -190,7 +190,7 @@ The
function may fail and set
.Va errno
for any of the errors specified for the library function
-.Xr sysctl 3 .
+.Xr sysctl 2 .
In addition, the following error may be reported:
.Bl -tag -width Er
.It Bq Er EINVAL
@@ -200,7 +200,7 @@ argument is invalid.
.El
.Sh SEE ALSO
.Xr pathconf 2 ,
-.Xr sysctl 3
+.Xr sysctl 2
.Sh STANDARDS
The
.Fn sysconf
diff --git a/lib/libc/gen/uname.3 b/lib/libc/gen/uname.3
index 5c6cb200413..373524448d6 100644
--- a/lib/libc/gen/uname.3
+++ b/lib/libc/gen/uname.3
@@ -1,4 +1,4 @@
-.\" $OpenBSD: uname.3,v 1.15 2014/01/21 03:15:45 schwarze Exp $
+.\" $OpenBSD: uname.3,v 1.16 2018/01/12 04:36:44 deraadt Exp $
.\"
.\" Copyright (c) 1994
.\" The Regents of the University of California. All rights reserved.
@@ -27,7 +27,7 @@
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
-.Dd $Mdocdate: January 21 2014 $
+.Dd $Mdocdate: January 12 2018 $
.Dt UNAME 3
.Os
.Sh NAME
@@ -75,10 +75,10 @@ The
function may fail and set
.Va errno
for any of the errors specified for the library function
-.Xr sysctl 3 .
+.Xr sysctl 2 .
.Sh SEE ALSO
.Xr uname 1 ,
-.Xr sysctl 3
+.Xr sysctl 2
.Sh STANDARDS
The
.Fn uname
diff --git a/lib/libc/net/getifaddrs.3 b/lib/libc/net/getifaddrs.3
index ee1df725e47..26eac493202 100644
--- a/lib/libc/net/getifaddrs.3
+++ b/lib/libc/net/getifaddrs.3
@@ -1,4 +1,4 @@
-.\" $OpenBSD: getifaddrs.3,v 1.21 2015/11/21 07:48:10 jmc Exp $
+.\" $OpenBSD: getifaddrs.3,v 1.22 2018/01/12 04:36:44 deraadt Exp $
.\" BSDI getifaddrs.3,v 2.5 2000/02/23 14:51:59 dab Exp
.\"
.\" Copyright (c) 1995, 1999
@@ -21,7 +21,7 @@
.\" 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 $Mdocdate: November 21 2015 $
+.Dd $Mdocdate: January 12 2018 $
.Dt GETIFADDRS 3
.Os
.Sh NAME
@@ -129,11 +129,11 @@ for any of the errors specified for the library routines
.Xr socket 2 ,
.Xr malloc 3 ,
or
-.Xr sysctl 3 .
+.Xr sysctl 2 .
.Sh SEE ALSO
.Xr ioctl 2 ,
.Xr socket 2 ,
-.Xr sysctl 3 ,
+.Xr sysctl 2 ,
.Xr netintro 4 ,
.Xr ifconfig 8
.Sh HISTORY
diff --git a/lib/libc/sys/getrlimit.2 b/lib/libc/sys/getrlimit.2
index 5c22a00c9b7..14d5b06e6ca 100644
--- a/lib/libc/sys/getrlimit.2
+++ b/lib/libc/sys/getrlimit.2
@@ -1,4 +1,4 @@
-.\" $OpenBSD: getrlimit.2,v 1.27 2016/10/07 15:48:55 tedu Exp $
+.\" $OpenBSD: getrlimit.2,v 1.28 2018/01/12 04:36:44 deraadt Exp $
.\" $NetBSD: getrlimit.2,v 1.8 1995/10/12 15:40:58 jtc Exp $
.\"
.\" Copyright (c) 1980, 1991, 1993
@@ -30,7 +30,7 @@
.\"
.\" @(#)getrlimit.2 8.1 (Berkeley) 6/4/93
.\"
-.Dd $Mdocdate: October 7 2016 $
+.Dd $Mdocdate: January 12 2018 $
.Dt GETRLIMIT 2
.Os
.Sh NAME
@@ -210,7 +210,7 @@ and the caller is not the superuser.
.Xr quotactl 2 ,
.Xr sigaction 2 ,
.Xr sigaltstack 2 ,
-.Xr sysctl 3
+.Xr sysctl 2
.Sh STANDARDS
The
.Fn getrlimit
diff --git a/lib/libc/sys/intro.2 b/lib/libc/sys/intro.2
index b888c3eea4f..f7ea9b3882f 100644
--- a/lib/libc/sys/intro.2
+++ b/lib/libc/sys/intro.2
@@ -1,4 +1,4 @@
-.\" $OpenBSD: intro.2,v 1.66 2017/12/12 18:41:44 schwarze Exp $
+.\" $OpenBSD: intro.2,v 1.67 2018/01/12 04:36:44 deraadt Exp $
.\" $NetBSD: intro.2,v 1.6 1995/02/27 12:33:41 cgd Exp $
.\"
.\" Copyright (c) 1980, 1983, 1986, 1991, 1993
@@ -30,7 +30,7 @@
.\"
.\" @(#)intro.2 8.3 (Berkeley) 12/11/93
.\"
-.Dd $Mdocdate: December 12 2017 $
+.Dd $Mdocdate: January 12 2018 $
.Dt INTRO 2
.Os
.Sh NAME
@@ -174,7 +174,7 @@ Maximum number of file descriptors allowable on the system
has been reached and a request for an open cannot be satisfied
until at least one has been closed.
The
-.Xr sysctl 3
+.Xr sysctl 2
variable
.Va kern.maxfiles
contains the current limit.
diff --git a/lib/libc/sys/mmap.2 b/lib/libc/sys/mmap.2
index cd796385838..37c82d786df 100644
--- a/lib/libc/sys/mmap.2
+++ b/lib/libc/sys/mmap.2
@@ -1,4 +1,4 @@
-.\" $OpenBSD: mmap.2,v 1.56 2017/07/20 18:22:25 bluhm Exp $
+.\" $OpenBSD: mmap.2,v 1.57 2018/01/12 04:36:44 deraadt Exp $
.\" $NetBSD: mmap.2,v 1.5 1995/06/24 10:48:59 cgd Exp $
.\"
.\" Copyright (c) 1991, 1993
@@ -30,7 +30,7 @@
.\"
.\" @(#)mmap.2 8.1 (Berkeley) 6/4/93
.\"
-.Dd $Mdocdate: July 20 2017 $
+.Dd $Mdocdate: January 12 2018 $
.Dt MMAP 2
.Os
.Sh NAME
@@ -286,7 +286,7 @@ In particular,
mappings are not permitted in most binaries (see
.Dv kern.wxabort
in
-.Xr sysctl 3
+.Xr sysctl 2
for more information).
.El
.Sh SEE ALSO
diff --git a/lib/libc/sys/mprotect.2 b/lib/libc/sys/mprotect.2
index 9ee149015fb..50c5b809c83 100644
--- a/lib/libc/sys/mprotect.2
+++ b/lib/libc/sys/mprotect.2
@@ -1,4 +1,4 @@
-.\" $OpenBSD: mprotect.2,v 1.22 2017/03/11 22:58:46 jmc Exp $
+.\" $OpenBSD: mprotect.2,v 1.23 2018/01/12 04:36:44 deraadt Exp $
.\" $NetBSD: mprotect.2,v 1.6 1995/10/12 15:41:08 jtc Exp $
.\"
.\" Copyright (c) 1991, 1993
@@ -30,7 +30,7 @@
.\"
.\" @(#)mprotect.2 8.1 (Berkeley) 6/9/93
.\"
-.Dd $Mdocdate: March 11 2017 $
+.Dd $Mdocdate: January 12 2018 $
.Dt MPROTECT 2
.Os
.Sh NAME
@@ -105,7 +105,7 @@ In particular,
mappings are not permitted in most binaries (see
.Dv kern.wxabort
in
-.Xr sysctl 3
+.Xr sysctl 2
for more information).
.It Bq Er EINVAL
The
diff --git a/lib/libc/sys/pathconf.2 b/lib/libc/sys/pathconf.2
index 5a5b909e593..6a18bd5d432 100644
--- a/lib/libc/sys/pathconf.2
+++ b/lib/libc/sys/pathconf.2
@@ -1,4 +1,4 @@
-.\" $OpenBSD: pathconf.2,v 1.23 2015/05/31 23:54:25 schwarze Exp $
+.\" $OpenBSD: pathconf.2,v 1.24 2018/01/12 04:36:44 deraadt Exp $
.\" $NetBSD: pathconf.2,v 1.2 1995/02/27 12:35:22 cgd Exp $
.\"
.\" Copyright (c) 1993
@@ -30,7 +30,7 @@
.\"
.\" @(#)pathconf.2 8.1 (Berkeley) 6/4/93
.\"
-.Dd $Mdocdate: May 31 2015 $
+.Dd $Mdocdate: January 12 2018 $
.Dt PATHCONF 2
.Os
.Sh NAME
@@ -199,7 +199,7 @@ is not a valid open file descriptor.
.El
.Sh SEE ALSO
.Xr sysconf 3 ,
-.Xr sysctl 3
+.Xr sysctl 2
.Sh STANDARDS
The
.Fn pathconf
diff --git a/lib/libc/sys/pledge.2 b/lib/libc/sys/pledge.2
index 309a46a27e6..64a12bc1f15 100644
--- a/lib/libc/sys/pledge.2
+++ b/lib/libc/sys/pledge.2
@@ -1,4 +1,4 @@
-.\" $OpenBSD: pledge.2,v 1.49 2018/01/08 12:02:42 mpi Exp $
+.\" $OpenBSD: pledge.2,v 1.50 2018/01/12 04:36:44 deraadt Exp $
.\"
.\" Copyright (c) 2015 Nicholas Marriott <nicm@openbsd.org>
.\"
@@ -14,7 +14,7 @@
.\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
.\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
.\"
-.Dd $Mdocdate: January 8 2018 $
+.Dd $Mdocdate: January 12 2018 $
.Dt PLEDGE 2
.Os
.Sh NAME
@@ -133,7 +133,7 @@ and any files below
May operate on
.Pa /etc/malloc.conf .
.Pp
-.It Xr sysctl 3
+.It Xr sysctl 2
A small set of read-only operations are allowed, sufficient to
support:
.Xr getdomainname 3 ,
@@ -493,13 +493,13 @@ and
system calls.
.It Va ps
Allows enough
-.Xr sysctl 3
+.Xr sysctl 2
interfaces to allow inspection of processes operating on the system using
programs like
.Xr ps 1 .
.It Va vminfo
Allows enough
-.Xr sysctl 3
+.Xr sysctl 2
interfaces to allow inspection of the system's virtual memory by
programs like
.Xr top 1