summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorwollman <wollman@FreeBSD.org>2002-07-15 20:42:05 +0000
committerwollman <wollman@FreeBSD.org>2002-07-15 20:42:05 +0000
commitd1ed324a35261a2efceeaa22ec6aea4c92e0c7a6 (patch)
tree5ca9d242503394eb6991c97a5091585c50494387 /lib
parent0caa79f7e4bceef8b22d24dc1725a009a7093b36 (diff)
downloadFreeBSD-src-d1ed324a35261a2efceeaa22ec6aea4c92e0c7a6.zip
FreeBSD-src-d1ed324a35261a2efceeaa22ec6aea4c92e0c7a6.tar.gz
Don't bother asking the kernel about _SC_FSYNC; it's not optional.
Diffstat (limited to 'lib')
-rw-r--r--lib/libc/gen/sysconf.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/lib/libc/gen/sysconf.c b/lib/libc/gen/sysconf.c
index 9d4bce5..e62c53f 100644
--- a/lib/libc/gen/sysconf.c
+++ b/lib/libc/gen/sysconf.c
@@ -224,10 +224,6 @@ sysconf(name)
mib[0] = CTL_P1003_1B;
mib[1] = CTL_P1003_1B_SEMAPHORES;
goto yesno;
- case _SC_FSYNC:
- mib[0] = CTL_P1003_1B;
- mib[1] = CTL_P1003_1B_FSYNC;
- goto yesno;
case _SC_SHARED_MEMORY_OBJECTS:
mib[0] = CTL_P1003_1B;
mib[1] = CTL_P1003_1B_SHARED_MEMORY_OBJECTS;
@@ -287,6 +283,9 @@ sysconf(name)
goto yesno;
#endif /* _P1003_1B_VISIBLE */
+ case _SC_FSYNC:
+ return (_POSIX_FSYNC);
+
#if defined(_SC_NPROCESSORS_CONF) && defined(_SC_NPROCESSORS_ONLN)
case _SC_NPROCESSORS_CONF:
case _SC_NPROCESSORS_ONLN:
OpenPOWER on IntegriCloud