aboutsummaryrefslogtreecommitdiff
path: root/sysdeps/pthread/lio_listio.c
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2003-07-23 18:50:26 +0000
committerUlrich Drepper <drepper@redhat.com>2003-07-23 18:50:26 +0000
commit6bc0b95489067acc56efb0d8e1d88fe18644389f (patch)
tree43d353c9c585b610c2c72458033737833143ecaf /sysdeps/pthread/lio_listio.c
parent9d79e0377b08773ec4f7ec38479b1563606f7ef7 (diff)
downloadglibc-6bc0b95489067acc56efb0d8e1d88fe18644389f.tar
glibc-6bc0b95489067acc56efb0d8e1d88fe18644389f.tar.gz
glibc-6bc0b95489067acc56efb0d8e1d88fe18644389f.tar.bz2
glibc-6bc0b95489067acc56efb0d8e1d88fe18644389f.zip
Update.
2003-07-23 Jakub Jelinek <jakub@redhat.com> * sysdeps/pthread/lio_listio.c (LIO_OPCODE_BASE): Define. (lio_listio): Use it. * sysdeps/pthread/lio_listio64.c: Include lio_listio.c instead of after few defines to avoid duplication.
Diffstat (limited to 'sysdeps/pthread/lio_listio.c')
-rw-r--r--sysdeps/pthread/lio_listio.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/sysdeps/pthread/lio_listio.c b/sysdeps/pthread/lio_listio.c
index 9540566e21..0ea3d92414 100644
--- a/sysdeps/pthread/lio_listio.c
+++ b/sysdeps/pthread/lio_listio.c
@@ -1,5 +1,5 @@
/* Enqueue and list of read or write requests.
- Copyright (C) 1997, 1998, 1999, 2000, 2001 Free Software Foundation, Inc.
+ Copyright (C) 1997,1998,1999,2000,2001,2003 Free Software Foundation, Inc.
This file is part of the GNU C Library.
Contributed by Ulrich Drepper <drepper@cygnus.com>, 1997.
@@ -18,6 +18,7 @@
Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
02111-1307 USA. */
+#ifndef lio_listio
#include <aio.h>
#include <assert.h>
#include <errno.h>
@@ -26,6 +27,8 @@
#include "aio_misc.h"
+#define LIO_OPCODE_BASE 0
+#endif
/* We need this special structure to handle asynchronous I/O. */
struct async_waitlist
@@ -72,7 +75,8 @@ lio_listio (mode, list, nent, sig)
{
list[cnt]->aio_sigevent.sigev_notify = SIGEV_NONE;
requests[cnt] = __aio_enqueue_request ((aiocb_union *) list[cnt],
- list[cnt]->aio_lio_opcode);
+ (list[cnt]->aio_lio_opcode
+ | LIO_OPCODE_BASE));
if (requests[cnt] != NULL)
/* Successfully enqueued. */