NetBSD Problem Report #44660

From njoly@lanfeust.sis.pasteur.fr  Tue Mar  1 19:51:35 2011
Return-Path: <njoly@lanfeust.sis.pasteur.fr>
Received: from mail.netbsd.org (mail.netbsd.org [204.152.190.11])
	by www.NetBSD.org (Postfix) with ESMTP id DB22963B8CE
	for <gnats-bugs@gnats.NetBSD.org>; Tue,  1 Mar 2011 19:51:34 +0000 (UTC)
Message-Id: <20110301195128.2409CDC9BB@lanfeust.sis.pasteur.fr>
Date: Tue,  1 Mar 2011 20:51:28 +0100 (CET)
From: njoly@pasteur.fr
Reply-To: njoly@pasteur.fr
To: gnats-bugs@gnats.NetBSD.org
Subject: sysconf(3) plays badly with modules autoloading
X-Send-Pr-Version: 3.95

>Number:         44660
>Category:       lib
>Synopsis:       sysconf(3) plays badly with modules autoloading
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    lib-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Mar 01 19:55:00 +0000 2011
>Originator:     Nicolas Joly
>Release:        NetBSD 5.99.47
>Organization:
Insitut Pasteur
>Environment:
System: NetBSD lanfeust.sis.pasteur.fr 5.99.47 NetBSD 5.99.47 (LANFEUST) #13: Tue Mar 1 11:53:45 CET 2011 njoly@lanfeust.sis.pasteur.fr:/local/src/NetBSD/obj.amd64/sys/arch/amd64/compile/LANFEUST amd64
Architecture: x86_64
Machine: amd64
>Description:
sysconf(3) does not work when some kernel subsystems are available with
modules autoloading system. By example, aio and mqueue ... now
the default on both i386 and amd64 GENERIC kernels.

sysconf(_SC_AIO_MAX) do query the `kern.aio_max' sysctl node, which do not
exists until the module is loaded.

njoly@lanfeust [~]> getconf -a >/dev/null
getconf: sysconf(51): No such file or directory
njoly@lanfeust [~]> getconf AIO_LISTIO_MAX
getconf: sysconf(51): No such file or directory
njoly@lanfeust [~]> getconf AIO_MAX
getconf: sysconf(52): No such file or directory

>How-To-Repeat:
>Fix:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2007 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.