From 437fa02616ad72dca7eb2ad9ced34bccb849aab0 Mon Sep 17 00:00:00 2001 From: Andrew Haley Date: Mon, 19 Jun 2000 18:46:45 +0000 Subject: [PATCH] os_dep.c (read): Pass two dummy args to syscall(). 2000-06-19 Andrew Haley * os_dep.c (read): Pass two dummy args to syscall(). From-SVN: r34598 --- boehm-gc/ChangeLog | 4 ++++ boehm-gc/os_dep.c | 5 ++++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/boehm-gc/ChangeLog b/boehm-gc/ChangeLog index 628559087a04..f5b5fb4488e7 100644 --- a/boehm-gc/ChangeLog +++ b/boehm-gc/ChangeLog @@ -1,3 +1,7 @@ +2000-06-19 Andrew Haley + + * os_dep.c (read): Pass two dummy args to syscall(). + 2000-05-11 Bryce McKinlay Imported 5.0 release version. diff --git a/boehm-gc/os_dep.c b/boehm-gc/os_dep.c index b169eebcbcf8..87f84e7bccdc 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);