* rt/aio_read64.c: Likewise.
Reported by Christian Gafton.
+ * rt/aio_write.c: Fix return value.
+ * rt/aio_write64.c: Likewise.
+ * rt/aio_fsync.c: Likewise.
+
* rt/aio_misc.c: Set errno at correct place.
1999-08-04 Andreas Schwab <schwab@suse.de>
/* Synchronize I/O in given file descriptor.
- Copyright (C) 1997 Free Software Foundation, Inc.
+ Copyright (C) 1997, 1999 Free Software Foundation, Inc.
This file is part of the GNU C Library.
Contributed by Ulrich Drepper <drepper@cygnus.com>, 1997.
int
aio_fsync (int op, struct aiocb *aiocbp)
{
- return __aio_enqueue_request ((aiocb_union *) aiocbp,
- op == O_SYNC ? LIO_SYNC : LIO_DSYNC) != NULL;
+ return (__aio_enqueue_request ((aiocb_union *) aiocbp,
+ op == O_SYNC ? LIO_SYNC : LIO_DSYNC) == NULL
+ ? -1 : 0);
}
weak_alias (aio_fsync, aio_fsync64)