diff options
author | Ulrich Drepper <drepper@redhat.com> | 2003-05-10 08:39:58 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 2003-05-10 08:39:58 +0000 |
commit | d9997a45eeba745384e3591978186debd5883be7 (patch) | |
tree | 9a204e82d9dbdc451984f5e8e1801cf49940394d /sysdeps/pthread | |
parent | d067c97eb5c0d019608c51310d8f1bafecd77513 (diff) | |
download | glibc-d9997a45eeba745384e3591978186debd5883be7.tar.gz glibc-d9997a45eeba745384e3591978186debd5883be7.tar.xz glibc-d9997a45eeba745384e3591978186debd5883be7.zip |
Update.
2003-05-09 Thorsten Kukuk <kukuk@suse.de> * sysdeps/unix/sysv/linux/netinet/igmp.h: Don't include kernel headers, add defines from kernel header, move it from here... * inet/netinet/igmp.h: ... to here. * inet/Makefile (headers): Add netinet/igmp.h. * sysdeps/unix/sysv/linux/Makefile: Remove netinet/igmp.h. * sysdeps/unix/sysv/linux/Dist: Remove netinet/igmp.h. 2003-05-10 Ulrich Drepper <drepper@redhat.com> * sysdeps/pthread/lio_listio64.c (lio_listio64): If SIG == NULL, use dummy sigevent structure with SIGEV_NONE [PR libc/5015]. 2003-05-09 Thorsten Kukuk <kukuk@suse.de> * libio/bits/stdio.h: Sync prototypes with libio/stdio.h (remove __THROW from possible cancellation points).
Diffstat (limited to 'sysdeps/pthread')
-rw-r--r-- | sysdeps/pthread/lio_listio64.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/sysdeps/pthread/lio_listio64.c b/sysdeps/pthread/lio_listio64.c index 0249a05c13..165ce05b48 100644 --- a/sysdeps/pthread/lio_listio64.c +++ b/sysdeps/pthread/lio_listio64.c @@ -1,5 +1,5 @@ /* Enqueue and list of read or write requests, 64bit offset version. - Copyright (C) 1997, 1998, 1999 Free Software Foundation, Inc. + Copyright (C) 1997, 1998, 1999, 2003 Free Software Foundation, Inc. This file is part of the GNU C Library. Contributed by Ulrich Drepper <drepper@cygnus.com>, 1997. @@ -42,6 +42,7 @@ lio_listio64 (mode, list, nent, sig) int nent; struct sigevent *sig; { + struct sigevent defsigev; struct requestlist *requests[nent]; int cnt; volatile int total = 0; @@ -54,6 +55,12 @@ lio_listio64 (mode, list, nent, sig) return -1; } + if (sig == NULL) + { + defsigev.sigev_notify = SIGEV_NONE; + sig = &defsigev; + } + /* Request the mutex. */ pthread_mutex_lock (&__aio_requests_mutex); |