summaryrefslogtreecommitdiffstats
path: root/sys/kern/vfs_aio.c
diff options
context:
space:
mode:
authorwollman <wollman@FreeBSD.org>2002-10-27 18:07:41 +0000
committerwollman <wollman@FreeBSD.org>2002-10-27 18:07:41 +0000
commit7e9d4df21f95c33c9f6ee36ceffeb83ea7bcbe61 (patch)
tree2822b6cd0c488f5c61a84aca6c46f88a41665440 /sys/kern/vfs_aio.c
parent17bae0e5c0378e3bd58d79dec5a359f2d1b8347d (diff)
downloadFreeBSD-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/vfs_aio.c')
-rw-r--r--sys/kern/vfs_aio.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/kern/vfs_aio.c b/sys/kern/vfs_aio.c
index e105cbd..556f37c 100644
--- a/sys/kern/vfs_aio.c
+++ b/sys/kern/vfs_aio.c
@@ -348,6 +348,7 @@ aio_onceonly(void)
aiod_timeout = AIOD_TIMEOUT_DEFAULT;
aiod_lifetime = AIOD_LIFETIME_DEFAULT;
jobrefid = 1;
+ async_io_version = _POSIX_VERSION;
}
/*
@@ -365,6 +366,7 @@ aio_unload(void)
if (!unloadable)
return (EOPNOTSUPP);
+ async_io_version = 0;
aio_swake = NULL;
rm_at_exit(aio_proc_rundown);
rm_at_exec(aio_proc_rundown);
OpenPOWER on IntegriCloud