2004-02-26 Andreas Schwab <schwab@suse.de>
* defs.h [LINUX && IA64]: Declare getrval2 also on IA64.
* net.c (sys_pipe) [LINUX && IA64]: For IA64 use the two return values.
* syscall.c (getrval2) [LINUX && IA64]: Implement for IA64.
diff --git a/syscall.c b/syscall.c
index d2981b7..214e38b 100644
--- a/syscall.c
+++ b/syscall.c
@@ -2432,6 +2432,9 @@
if (upeek(tcp->pid, 4*(REG_REG0+1), &val) < 0)
return -1;
#endif /* SPARC */
+#elif defined(IA64)
+ if (upeek(tcp->pid, PT_R9, &val) < 0)
+ return -1;
#endif /* LINUX */
#ifdef SUNOS4