Date: Sat, 16 Nov 2002 20:15:34 -0800 (PST) From: Alfred Perlstein <alfred@FreeBSD.org> 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 Message-ID: <200211170415.gAH4FYwL022645@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200211170415.gAH4FYwL022645>