Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/lib/libc/gen Add _SC_TIMER_MAX
details: https://anonhg.NetBSD.org/src/rev/20dfca0b9911
branches: trunk
changeset: 813920:20dfca0b9911
user: christos <christos%NetBSD.org@localhost>
date: Fri Feb 26 17:13:01 2016 +0000
description:
Add _SC_TIMER_MAX
diffstat:
lib/libc/gen/sysconf.3 | 9 +++++++--
lib/libc/gen/sysconf.c | 6 ++++--
2 files changed, 11 insertions(+), 4 deletions(-)
diffs (57 lines):
diff -r b362e44e9636 -r 20dfca0b9911 lib/libc/gen/sysconf.3
--- a/lib/libc/gen/sysconf.3 Fri Feb 26 17:12:53 2016 +0000
+++ b/lib/libc/gen/sysconf.3 Fri Feb 26 17:13:01 2016 +0000
@@ -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 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
diff -r b362e44e9636 -r 20dfca0b9911 lib/libc/gen/sysconf.c
--- a/lib/libc/gen/sysconf.c Fri Feb 26 17:12:53 2016 +0000
+++ b/lib/libc/gen/sysconf.c Fri Feb 26 17:13:01 2016 +0000
@@ -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 @@
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);
Home |
Main Index |
Thread Index |
Old Index