summaryrefslogtreecommitdiffstats
path: root/sys/sys/posix4.h
diff options
context:
space:
mode:
authoralfred <alfred@FreeBSD.org>2002-11-17 04:15:34 +0000
committeralfred <alfred@FreeBSD.org>2002-11-17 04:15:34 +0000
commit404161b0ebc663732ff605fa1cec5fc6f2cbf76d (patch)
treee2dfa1f642b4d621b045178bb552f0214e31be7a /sys/sys/posix4.h
parent788d21c22efba82ded14c4c83035501ce6be4936 (diff)
downloadFreeBSD-src-404161b0ebc663732ff605fa1cec5fc6f2cbf76d.zip
FreeBSD-src-404161b0ebc663732ff605fa1cec5fc6f2cbf76d.tar.gz
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().
Diffstat (limited to 'sys/sys/posix4.h')
-rw-r--r--sys/sys/posix4.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/sys/posix4.h b/sys/sys/posix4.h
index e597370..b17e927 100644
--- a/sys/sys/posix4.h
+++ b/sys/sys/posix4.h
@@ -63,6 +63,7 @@ int p31b_proc(struct proc *, pid_t, struct proc **);
void p31b_setcfg(int, int);
int p31b_getcfg(int);
+int p31b_iscfg(int);
#ifdef _KPOSIX_PRIORITY_SCHEDULING
OpenPOWER on IntegriCloud