From owner-cvs-all Sat Nov 16 20:18:21 2002 Delivered-To: cvs-all@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3F67737B401; Sat, 16 Nov 2002 20:18:20 -0800 (PST) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id F349343E77; Sat, 16 Nov 2002 20:18:19 -0800 (PST) (envelope-from alfred@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.12.6/8.12.6) with ESMTP id gAH4FYmV022646; Sat, 16 Nov 2002 20:15:34 -0800 (PST) (envelope-from alfred@repoman.freebsd.org) Received: (from alfred@localhost) by repoman.freebsd.org (8.12.6/8.12.6/Submit) id gAH4FYwL022645; Sat, 16 Nov 2002 20:15:34 -0800 (PST) Message-Id: <200211170415.gAH4FYwL022645@repoman.freebsd.org> From: Alfred Perlstein Date: Sat, 16 Nov 2002 20:15:34 -0800 (PST) To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/kern vfs_aio.c src/lib/libc/gen sysconf.c src/sys/posix4 posix4.h posix4_mib.c X-FreeBSD-CVS-Branch: HEAD Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG alfred 2002/11/16 20:15:34 PST Modified files: sys/kern vfs_aio.c lib/libc/gen sysconf.c sys/posix4 posix4.h posix4_mib.c Log: Rework the sysconf(3) interaction with aio: sysconf.c: Use 'break' rather than 'goto yesno' in sysconf.c so that we report a '0' return value from the kernel sysctl. vfs_aio.c: Make aio reset its configuration parameters to -1 after unloading instead of 0. posix4_mib.c: Initialize the aio configuration parameters to -1 to indicate that it is not loaded. Add a facility (p31b_iscfg()) to determine if a posix4 facility has been initialized to avoid having to re-order the SYSINITs. Use p31b_iscfg() to determine if aio has had a chance to run yet which is likely if it is compiled into the kernel and avoid spamming its values. Introduce a macro P31B_VALID() instead of doing the same comparison over and over. posix4.h: Prototype p31b_iscfg(). Revision Changes Path 1.19 +3 -6 src/lib/libc/gen/sysconf.c 1.146 +3 -3 src/sys/kern/vfs_aio.c 1.11 +1 -0 src/sys/posix4/posix4.h 1.7 +22 -2 src/sys/posix4/posix4_mib.c To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message