OSDN Git Service

2000-06-19 Andrew Haley <aph@cygnus.com>
authoraph <aph@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 19 Jun 2000 18:46:45 +0000 (18:46 +0000)
committeraph <aph@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 19 Jun 2000 18:46:45 +0000 (18:46 +0000)
        * os_dep.c (read): Pass two dummy args to syscall().

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@34598 138bc75d-0d04-0410-961f-82ee72b054a4

boehm-gc/ChangeLog
boehm-gc/os_dep.c

index 6285590..f5b5fb4 100644 (file)
@@ -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.
index b169eeb..87f84e7 100644 (file)
@@ -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);