From 4b8de8b8ccd96e1f987b1cf5923e2aef5d55f8a3 Mon Sep 17 00:00:00 2001 From: Nicolas Joly Date: Wed, 9 Apr 2008 18:37:04 +0000 Subject: [PATCH] Fix _SC_MQ_OPEN_MAX/_SC_MQ_PRIO_MAX sysctlgetmibinfo calls. The corresponding sysctl nodes are available under kern.mqueue tree. --- lib/libc/gen/sysconf.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/lib/libc/gen/sysconf.c b/lib/libc/gen/sysconf.c index f1d236104e0..eea7d4b4169 100644 --- a/lib/libc/gen/sysconf.c +++ b/lib/libc/gen/sysconf.c @@ -1,4 +1,4 @@ -/* $NetBSD: sysconf.c,v 1.27 2008/01/26 17:55:30 rmind Exp $ */ +/* $NetBSD: sysconf.c,v 1.28 2008/03/08 13:34:40 yamt 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.27 2008/01/26 17:55:30 rmind Exp $"); +__RCSID("$NetBSD: sysconf.c,v 1.28 2008/03/08 13:34:40 yamt Exp $"); #endif #endif /* LIBC_SCCS and not lint */ @@ -310,13 +310,13 @@ sysconf(int name) return -1; goto yesno; case _SC_MQ_OPEN_MAX: - if (sysctlgetmibinfo("kern.mq_open_max", &mib[0], &mib_len, - NULL, NULL, NULL, SYSCTL_VERSION)) + if (sysctlgetmibinfo("kern.mqueue.mq_open_max", &mib[0], + &mib_len, NULL, NULL, NULL, SYSCTL_VERSION)) return -1; break; case _SC_MQ_PRIO_MAX: - if (sysctlgetmibinfo("kern.mq_prio_max", &mib[0], &mib_len, - NULL, NULL, NULL, SYSCTL_VERSION)) + if (sysctlgetmibinfo("kern.mqueue.mq_prio_max", &mib[0], + &mib_len, NULL, NULL, NULL, SYSCTL_VERSION)) return -1; break; case _SC_PRIORITY_SCHEDULING: -- 2.11.4.GIT