Add _SC_TIMER_MAX
This commit is contained in:
parent
77126bb261
commit
f98000db53
|
@ -1,4 +1,4 @@
|
|||
.\" $NetBSD: sysconf.3,v 1.44 2015/08/20 11:05:39 wiz Exp $
|
||||
.\" $NetBSD: sysconf.3,v 1.45 2016/02/26 17:13:01 christos Exp $
|
||||
.\"
|
||||
.\" Copyright (c) 1993
|
||||
.\" The Regents of the University of California. All rights reserved.
|
||||
|
@ -29,7 +29,7 @@
|
|||
.\"
|
||||
.\" @(#)sysconf.3 8.3 (Berkeley) 4/19/94
|
||||
.\"
|
||||
.Dd August 20, 2015
|
||||
.Dd February 28, 2016
|
||||
.Dt SYSCONF 3
|
||||
.Os
|
||||
.Sh NAME
|
||||
|
@ -280,6 +280,11 @@ The number of processors online (capable of running processes).
|
|||
The amount of physical memory on the system in
|
||||
.Li _SC_PAGESIZE
|
||||
bytes.
|
||||
.Li _SC_TIMER_MAX
|
||||
The number of timers available for
|
||||
.Xr timer_create 2 .
|
||||
This is also known as
|
||||
.Dv _POSIX_TIMER_MAX .
|
||||
.El
|
||||
.Sh RETURN VALUES
|
||||
If the call to
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: sysconf.c,v 1.36 2013/12/19 19:11:50 rmind Exp $ */
|
||||
/* $NetBSD: sysconf.c,v 1.37 2016/02/26 17:13:01 christos Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1993
|
||||
|
@ -37,7 +37,7 @@
|
|||
#if 0
|
||||
static char sccsid[] = "@(#)sysconf.c 8.2 (Berkeley) 3/20/94";
|
||||
#else
|
||||
__RCSID("$NetBSD: sysconf.c,v 1.36 2013/12/19 19:11:50 rmind Exp $");
|
||||
__RCSID("$NetBSD: sysconf.c,v 1.37 2016/02/26 17:13:01 christos Exp $");
|
||||
#endif
|
||||
#endif /* LIBC_SCCS and not lint */
|
||||
|
||||
|
@ -418,6 +418,8 @@ yesno: if (sysctl(mib, mib_len, &value, &len, NULL, 0) == -1)
|
|||
return -1;
|
||||
case _SC_TTY_NAME_MAX:
|
||||
return pathconf(_PATH_DEV, _PC_NAME_MAX);
|
||||
case _SC_TIMER_MAX:
|
||||
return _POSIX_TIMER_MAX;
|
||||
default:
|
||||
errno = EINVAL;
|
||||
return (-1);
|
||||
|
|
Loading…
Reference in New Issue