mirror of
https://sourceware.org/git/glibc.git
synced 2025-07-30 22:43:12 +03:00
Update.
* rt/aio_fsync.c: Test OP parameter for correct values.
This commit is contained in:
@ -10,6 +10,8 @@
|
|||||||
|
|
||||||
* rt/aio_misc.c: Set errno at correct place.
|
* rt/aio_misc.c: Set errno at correct place.
|
||||||
|
|
||||||
|
* rt/aio_fsync.c: Test OP parameter for correct values.
|
||||||
|
|
||||||
1999-08-04 Andreas Schwab <schwab@suse.de>
|
1999-08-04 Andreas Schwab <schwab@suse.de>
|
||||||
|
|
||||||
* sysdeps/unix/sysv/linux/alpha/getsysstats.c (GET_NPROCS_PARSER):
|
* sysdeps/unix/sysv/linux/alpha/getsysstats.c (GET_NPROCS_PARSER):
|
||||||
|
@ -28,6 +28,7 @@
|
|||||||
#include <aio.h>
|
#include <aio.h>
|
||||||
/* And undo the hack. */
|
/* And undo the hack. */
|
||||||
#undef aio_fsync64
|
#undef aio_fsync64
|
||||||
|
#include <errno.h>
|
||||||
|
|
||||||
#include "aio_misc.h"
|
#include "aio_misc.h"
|
||||||
|
|
||||||
@ -35,6 +36,12 @@
|
|||||||
int
|
int
|
||||||
aio_fsync (int op, struct aiocb *aiocbp)
|
aio_fsync (int op, struct aiocb *aiocbp)
|
||||||
{
|
{
|
||||||
|
if (op != O_DSYNC && op != O_SYNC)
|
||||||
|
{
|
||||||
|
__set_errno (EINVAL);
|
||||||
|
return -1;
|
||||||
|
}
|
||||||
|
|
||||||
return (__aio_enqueue_request ((aiocb_union *) aiocbp,
|
return (__aio_enqueue_request ((aiocb_union *) aiocbp,
|
||||||
op == O_SYNC ? LIO_SYNC : LIO_DSYNC) == NULL
|
op == O_SYNC ? LIO_SYNC : LIO_DSYNC) == NULL
|
||||||
? -1 : 0);
|
? -1 : 0);
|
||||||
|
Reference in New Issue
Block a user