summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorluther <luther@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2000-07-12 19:30:48 +0000
committerluther <luther@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2000-07-12 19:30:48 +0000
commit2476e045ab2b1f163c141fda0d56eb0b34246812 (patch)
treebfb024750822359c0ce53535e0ca8cd3ce874661
parent93ba677f7ce8929dedd0c37a47ff98e094853e5d (diff)
downloadATCD-2476e045ab2b1f163c141fda0d56eb0b34246812.tar.gz
Wed Jul 12 14:26:10 2000 Luther J Baker <luther@cs.wustl.edu>
-rw-r--r--PACE/ChangeLog7
-rw-r--r--PACE/pace/win32/aio.inl37
2 files changed, 17 insertions, 27 deletions
diff --git a/PACE/ChangeLog b/PACE/ChangeLog
index 67e458a8b8b..a254d2e1044 100644
--- a/PACE/ChangeLog
+++ b/PACE/ChangeLog
@@ -1,3 +1,10 @@
+Wed Jul 12 14:26:10 2000 Luther J Baker <luther@cs.wustl.edu>
+
+ * pace/win32/aio.inl:
+
+ PACE_ERRNO_NO_SUPPORT_RETURN (-1);
+ Emulate support for these latter.
+
Wed Jul 12 14:15:10 2000 Luther J Baker <luther@cs.wustl.edu>
* pace/win32/signal.h:
diff --git a/PACE/pace/win32/aio.inl b/PACE/pace/win32/aio.inl
index 483565a7a49..7e2c61097e1 100644
--- a/PACE/pace/win32/aio.inl
+++ b/PACE/pace/win32/aio.inl
@@ -17,63 +17,51 @@ PACE_INLINE
int
pace_aio_cancel (int fildes, pace_aiocb * aiocbp)
{
- return aio_cancel (fildes, aiocbp);
+ PACE_ERRNO_NO_SUPPORT_RETURN (-1);
}
PACE_INLINE
int
pace_aio_error (const pace_aiocb * aiocbp)
{
-#if PACE_HAS_POSIX == PACE_LYNXOS
- /* Cast away const since LynxOS' prototypes aren't const */
- return aio_error ((struct aiocb *) aiocbp);
-#else
- return aio_error (aiocbp);
-#endif /* ! PACE_HAS_POSIX == PACE_LYNXOS */
+ PACE_ERRNO_NO_SUPPORT_RETURN (-1);
}
PACE_INLINE
int
pace_aio_fsync (int op, pace_aiocb * aiocbp)
{
- return aio_fsync (op, aiocbp);
+ PACE_ERRNO_NO_SUPPORT_RETURN (-1);
}
PACE_INLINE
int
pace_aio_read (pace_aiocb * aiocbp)
{
- return aio_read (aiocbp);
+ PACE_ERRNO_NO_SUPPORT_RETURN (-1);
}
PACE_INLINE
int
pace_aio_return (pace_aiocb * aiocbp)
{
- return aio_return (aiocbp);
+ PACE_ERRNO_NO_SUPPORT_RETURN (-1);
}
PACE_INLINE
int
pace_aio_suspend (const pace_aiocb * const list[],
- int nent,
- const pace_timespec * timeout)
+ int nent,
+ const pace_timespec * timeout)
{
-#if PACE_HAS_POSIX == PACE_LYNXOS
- /* Cast away const since LynxOS' prototypes aren't const */
- return aio_suspend ((struct aiocb **) list,
- nent,
- (struct timespec *) timeout);
-#else
- return aio_suspend (list, nent, timeout);
-#endif /* ! PACE_HAS_POSIX == PACE_LYNXOS */
+ PACE_ERRNO_NO_SUPPORT_RETURN (-1);
}
PACE_INLINE
int
pace_aio_write (pace_aiocb * aiocbp)
{
- return aio_write (aiocbp);
+ PACE_ERRNO_NO_SUPPORT_RETURN (-1);
}
PACE_INLINE
@@ -83,10 +71,5 @@ pace_lio_listio (int mode,
int nent,
pace_sigevent * sig)
{
-#if PACE_HAS_POSIX == PACE_LYNXOS
- /* Cast away const since LynxOS' prototypes aren't const */
- return lio_listio (mode, (struct aiocb **) list, nent, sig);
-#else
- return lio_listio (mode, list, nent, sig);
-#endif /* ! PACE_HAS_POSIX == PACE_LYNXOS */
+ PACE_ERRNO_NO_SUPPORT_RETURN (-1);
}