Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 14 Mar 2009 19:17:00 +0000 (UTC)
From:      David Schultz <das@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r189822 - head/sys/sys
Message-ID:  <200903141917.n2EJH0NA005705@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200903141917.n2EJH0NA005705>