From 6bc0b95489067acc56efb0d8e1d88fe18644389f Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Wed, 23 Jul 2003 18:50:26 +0000 Subject: Update. 2003-07-23 Jakub Jelinek * 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. --- sysdeps/pthread/lio_listio.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'sysdeps/pthread/lio_listio.c') 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 , 1997. @@ -18,6 +18,7 @@ Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ +#ifndef lio_listio #include #include #include @@ -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. */ -- cgit v1.2.3