svn commit: r189822 - head/sys/sys
David Schultz
das at FreeBSD.org
Sat Mar 14 12:17:00 PDT 2009
Author: das
Date: Sat Mar 14 19:17:00 2009
New Revision: 189822
URL: http://svn.freebsd.org/changeset/base/189822
Log:
Namespace: aio_waitcomplete() is a BSD extension.
Also, don't pollute the namespace by including <sys/time.h>.
Modified:
head/sys/sys/aio.h
Modified: head/sys/sys/aio.h
==============================================================================
--- head/sys/sys/aio.h Sat Mar 14 19:15:13 2009 (r189821)
+++ head/sys/sys/aio.h Sat Mar 14 19:17:00 2009 (r189822)
@@ -19,7 +19,6 @@
#ifndef _SYS_AIO_H_
#define _SYS_AIO_H_
-#include <sys/time.h>
#include <sys/types.h>
#include <sys/signal.h>
@@ -79,6 +78,8 @@ typedef struct aiocb {
#ifndef _KERNEL
+struct timespec;
+
__BEGIN_DECLS
/*
* Asynchronously read from a file
@@ -123,7 +124,9 @@ int aio_cancel(int, struct aiocb *);
*/
int aio_suspend(const struct aiocb * const[], int, const struct timespec *);
+#ifdef __BSD_VISIBLE
int aio_waitcomplete(struct aiocb **, struct timespec *);
+#endif
int aio_fsync(int op, struct aiocb *aiocbp);
__END_DECLS
More information about the svn-src-head
mailing list