diff options
Diffstat (limited to 'linuxthreads')
-rw-r--r-- | linuxthreads/ChangeLog | 6 | ||||
-rw-r--r-- | linuxthreads/wrapsyscall.c | 9 |
2 files changed, 12 insertions, 3 deletions
diff --git a/linuxthreads/ChangeLog b/linuxthreads/ChangeLog index 32b0159701..92c4492692 100644 --- a/linuxthreads/ChangeLog +++ b/linuxthreads/ChangeLog @@ -1,3 +1,9 @@ +1998-12-01 Andreas Jaeger <aj@arthur.rhein-neckar.de> + + * wrapsyscall.c: Include <sys/mman.h> for msync, + <stdlib.h> for system and <termios.h> for tcdrain prototype. + Correct msync declaration. + 1998-11-29 Roland McGrath <roland@baalperazim.frob.com> * sysdeps/pthread/bits/libc-tsd.h (__libc_tsd_define, __libc_tsd_get, diff --git a/linuxthreads/wrapsyscall.c b/linuxthreads/wrapsyscall.c index 4659692d56..d55e6cca61 100644 --- a/linuxthreads/wrapsyscall.c +++ b/linuxthreads/wrapsyscall.c @@ -1,5 +1,5 @@ /* Wrapper arpund system calls to provide cancelation points. - Copyright (C) 1996, 1997 Free Software Foundation, Inc. + Copyright (C) 1996, 1997, 1998 Free Software Foundation, Inc. This file is part of the GNU C Library. Contributed by Ulrich Drepper <drepper@cygnus.com>, 1996. @@ -19,10 +19,13 @@ Boston, MA 02111-1307, USA. */ #include <fcntl.h> +#include <sys/mman.h> #include <pthread.h> #include <unistd.h> #include <stdarg.h> #include <stddef.h> +#include <stdlib.h> +#include <termios.h> #include <sys/resource.h> #include <sys/wait.h> #include <sys/socket.h> @@ -87,8 +90,8 @@ strong_alias (lseek, __lseek) /* msync(2). */ -CANCELABLE_SYSCALL (int, msync, (const void *start, size_t length, int flags), - (start, length, flags)) +CANCELABLE_SYSCALL (int, msync, (__ptr_t addr, size_t length, int flags), + (addr, length, flags)) /* nanosleep(2). */ |