diff options
author | wollman <wollman@FreeBSD.org> | 2002-10-27 18:07:41 +0000 |
---|---|---|
committer | wollman <wollman@FreeBSD.org> | 2002-10-27 18:07:41 +0000 |
commit | 7e9d4df21f95c33c9f6ee36ceffeb83ea7bcbe61 (patch) | |
tree | 2822b6cd0c488f5c61a84aca6c46f88a41665440 /sys/kern/posix4_mib.c | |
parent | 17bae0e5c0378e3bd58d79dec5a359f2d1b8347d (diff) | |
download | FreeBSD-src-7e9d4df21f95c33c9f6ee36ceffeb83ea7bcbe61.zip FreeBSD-src-7e9d4df21f95c33c9f6ee36ceffeb83ea7bcbe61.tar.gz |
Change the way support for asynchronous I/O is indicated to applications
to conform to 1003.1-2001. Make it possible for applications to actually
tell whether or not asynchronous I/O is supported.
Since FreeBSD's aio implementation works on all descriptor types, don't
call down into file or vnode ops when [f]pathconf() is asked about
_PC_ASYNC_IO; this avoids the need for every file and vnode op to know about
it.
Diffstat (limited to 'sys/kern/posix4_mib.c')
-rw-r--r-- | sys/kern/posix4_mib.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/kern/posix4_mib.c b/sys/kern/posix4_mib.c index d368593..6f1fe46 100644 --- a/sys/kern/posix4_mib.c +++ b/sys/kern/posix4_mib.c @@ -36,6 +36,7 @@ #include <sys/kernel.h> #include <sys/queue.h> #include <sys/sysctl.h> +#include <sys/vnode.h> #include <posix4/posix4.h> static int facility[CTL_P1003_1B_MAXID - 1]; @@ -64,7 +65,8 @@ SYSCTL_NODE(_kern, OID_AUTO, p1003_1b, CTLFLAG_RW, 0, "P1003.1B"); #endif -P1B_SYSCTL(CTL_P1003_1B_ASYNCHRONOUS_IO, asynchronous_io); +SYSCTL_INT(_p1003_1b, CTL_P1003_1B_ASYNCHRONOUS_IO, \ + asynchronous_io, CTLFLAG_RD, &async_io_version, 0, ""); P1B_SYSCTL(CTL_P1003_1B_MAPPED_FILES, mapped_files); P1B_SYSCTL(CTL_P1003_1B_MEMLOCK, memlock); P1B_SYSCTL(CTL_P1003_1B_MEMLOCK_RANGE, memlock_range); |