summaryrefslogtreecommitdiffstats
path: root/lib/libc/gen/sysconf.3
diff options
context:
space:
mode:
authorajacoutot <ajacoutot@openbsd.org>2012-03-06 11:38:26 +0000
committerajacoutot <ajacoutot@openbsd.org>2012-03-06 11:38:26 +0000
commit4869696d63a295e296127757b79ecd902068dccc (patch)
tree55647994fb907ab862c50854a7ff89c69a953d49 /lib/libc/gen/sysconf.3
parentFill in default values for rtableid/onrdomain/prio when creating PF rules, (diff)
downloadwireguard-openbsd-4869696d63a295e296127757b79ecd902068dccc.tar.xz
wireguard-openbsd-4869696d63a295e296127757b79ecd902068dccc.zip
Add the _POSIX_MONOTONIC_CLOCK symbol and the sysconf(3)
_SC_MONOTONIC_CLOCK variable. from Brad No libc minor crank needed, as no API has been changed, per se (deraadt). ports bulk testing by landry@ small man rewording from thib@ ok millert@ otto@ deraadt@
Diffstat (limited to 'lib/libc/gen/sysconf.3')
-rw-r--r--lib/libc/gen/sysconf.37
1 files changed, 5 insertions, 2 deletions
diff --git a/lib/libc/gen/sysconf.3 b/lib/libc/gen/sysconf.3
index 801461ee7f4..b4a0711f3b4 100644
--- a/lib/libc/gen/sysconf.3
+++ b/lib/libc/gen/sysconf.3
@@ -1,4 +1,4 @@
-.\" $OpenBSD: sysconf.3,v 1.28 2010/10/28 02:06:00 deraadt Exp $
+.\" $OpenBSD: sysconf.3,v 1.29 2012/03/06 11:38:26 ajacoutot 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: October 28 2010 $
+.Dd $Mdocdate: March 6 2012 $
.Dt SYSCONF 3
.Os
.Sh NAME
@@ -174,6 +174,9 @@ The number of processors configured.
The number of processors online (capable of running processes).
.It Li _SC_HOST_NAME_MAX
The maximum size of a hostname, not counting NULL.
+.It Li _SC_MONOTONIC_CLOCK
+Return the POSIX version of the implementation of the Monotinic Clock
+Option that this system conforms to, or \-1 if unavailable.
.El
.Sh RETURN VALUES
If the call to