mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-24 02:03:35 +08:00
Update.
* rt/aio_fsync.c: Likewise.
This commit is contained in:
parent
f6948bdc7c
commit
d65ddb3495
@ -6,6 +6,7 @@
|
||||
|
||||
* 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.
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
/* 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.
|
||||
|
||||
@ -35,8 +35,9 @@
|
||||
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)
|
||||
|
@ -1,5 +1,5 @@
|
||||
/* Asynchronous read.
|
||||
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.
|
||||
|
||||
@ -27,5 +27,6 @@ int
|
||||
aio_read (aiocbp)
|
||||
struct aiocb *aiocbp;
|
||||
{
|
||||
return __aio_enqueue_request ((aiocb_union *) aiocbp, LIO_READ) != NULL;
|
||||
return (__aio_enqueue_request ((aiocb_union *) aiocbp, LIO_READ) == NULL
|
||||
? -1 : 0);
|
||||
}
|
||||
|
@ -1,5 +1,5 @@
|
||||
/* Asynchronous read, 64bit offset version.
|
||||
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.
|
||||
|
||||
@ -27,5 +27,6 @@ int
|
||||
aio_read64 (aiocbp)
|
||||
struct aiocb64 *aiocbp;
|
||||
{
|
||||
return __aio_enqueue_request ((aiocb_union *) aiocbp, LIO_READ64) != NULL;
|
||||
return (__aio_enqueue_request ((aiocb_union *) aiocbp, LIO_READ64) == NULL
|
||||
? -1 : 0);
|
||||
}
|
||||
|
@ -1,5 +1,5 @@
|
||||
/* Asynchronous write.
|
||||
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.
|
||||
|
||||
@ -27,5 +27,6 @@ int
|
||||
aio_write (aiocbp)
|
||||
struct aiocb *aiocbp;
|
||||
{
|
||||
return __aio_enqueue_request ((aiocb_union *) aiocbp, LIO_WRITE) != NULL;
|
||||
return (__aio_enqueue_request ((aiocb_union *) aiocbp, LIO_WRITE) == NULL
|
||||
? -1 : 0);
|
||||
}
|
||||
|
@ -1,5 +1,5 @@
|
||||
/* Asynchronous write, 64bit offset version.
|
||||
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.
|
||||
|
||||
@ -27,5 +27,6 @@ int
|
||||
aio_write64 (aiocbp)
|
||||
struct aiocb64 *aiocbp;
|
||||
{
|
||||
return __aio_enqueue_request ((aiocb_union *) aiocbp, LIO_WRITE64) != NULL;
|
||||
return (__aio_enqueue_request ((aiocb_union *) aiocbp, LIO_WRITE64) == NULL
|
||||
? -1 : 0);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user