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.
This commit is contained in:
Roland McGrath 2004-03-01 20:30:48 +00:00
parent 176ac32167
commit b4ce17690f
3 changed files with 6 additions and 3 deletions

2
defs.h
View File

@ -484,7 +484,7 @@ extern void tv_div P((struct timeval *, struct timeval *, int));
#ifdef SUNOS4
extern int fixvfork P((struct tcb *));
#endif
#if !(defined(LINUX) && !defined(SPARC))
#if !(defined(LINUX) && !defined(SPARC) && !defined(IA64))
extern long getrval2 P((struct tcb *));
#endif
#ifdef USE_PROCFS

4
net.c
View File

@ -1166,7 +1166,7 @@ sys_pipe(tcp)
struct tcb *tcp;
{
#if defined(LINUX) && !defined(SPARC) && !defined(SH)
#if defined(LINUX) && !defined(SPARC) && !defined(SH) && !defined(IA64)
int fds[2];
if (exiting(tcp)) {
@ -1179,7 +1179,7 @@ struct tcb *tcp;
else
tprintf("[%u, %u]", fds[0], fds[1]);
}
#elif defined(SPARC) || defined(SH) || defined(SVR4) || defined(FREEBSD)
#elif defined(SPARC) || defined(SH) || defined(SVR4) || defined(FREEBSD) || defined(IA64)
if (exiting(tcp))
tprintf("[%lu, %lu]", tcp->u_rval, getrval2(tcp));
#endif

View File

@ -2432,6 +2432,9 @@ struct tcb *tcp;
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