diff options
author | Andrew Haley <aph@cygnus.com> | 2000-06-19 18:46:45 +0000 |
---|---|---|
committer | Andrew Haley <aph@gcc.gnu.org> | 2000-06-19 18:46:45 +0000 |
commit | 437fa02616ad72dca7eb2ad9ced34bccb849aab0 (patch) | |
tree | 1918c9efb52d1f243cd72f8cbd28b43992f6b151 | |
parent | 35b1567d9e376f670019b87ca5423052b6bbde07 (diff) | |
download | gcc-437fa02616ad72dca7eb2ad9ced34bccb849aab0.zip gcc-437fa02616ad72dca7eb2ad9ced34bccb849aab0.tar.gz gcc-437fa02616ad72dca7eb2ad9ced34bccb849aab0.tar.bz2 |
os_dep.c (read): Pass two dummy args to syscall().
2000-06-19 Andrew Haley <aph@cygnus.com>
* os_dep.c (read): Pass two dummy args to syscall().
From-SVN: r34598
-rw-r--r-- | boehm-gc/ChangeLog | 4 | ||||
-rw-r--r-- | boehm-gc/os_dep.c | 5 |
2 files changed, 8 insertions, 1 deletions
diff --git a/boehm-gc/ChangeLog b/boehm-gc/ChangeLog index 6285590..f5b5fb4 100644 --- a/boehm-gc/ChangeLog +++ b/boehm-gc/ChangeLog @@ -1,3 +1,7 @@ +2000-06-19 Andrew Haley <aph@cygnus.com> + + * os_dep.c (read): Pass two dummy args to syscall(). + 2000-05-11 Bryce McKinlay <bryce@albatross.co.nz> Imported 5.0 release version. diff --git a/boehm-gc/os_dep.c b/boehm-gc/os_dep.c index b169eeb..87f84e7 100644 --- a/boehm-gc/os_dep.c +++ b/boehm-gc/os_dep.c @@ -2236,7 +2236,10 @@ word len; result = readv(fd, &iov, 1); } # else - result = syscall(SYS_read, fd, buf, nbyte); + /* The two zero args at the end of this list are because one + IA-64 syscall() implementation actually requires six args + to be passed, even though they aren't always used. */ + result = syscall(SYS_read, fd, buf, nbyte, 0, 0); # endif GC_end_syscall(); return(result); |