2004-09-15 Roland McGrath <roland@redhat.com>

* linux/syscallent.h: waitid takes 5 arguments, and is in TP category.
	* process.c (sys_waitid): Handle fifth argument (struct rusage *).
This commit is contained in:
Roland McGrath 2004-10-06 22:02:59 +00:00
parent cbf130892f
commit 39426a359f
2 changed files with 11 additions and 1 deletions

View File

@ -330,7 +330,7 @@
{ 2, 0, sys_mq_notify, "mq_notify" }, /* 281 */
{ 3, 0, sys_mq_getsetattr, "mq_getsetattr" }, /* 282 */
{ 5, 0, printargs, "SYS_283" }, /* 283 */
{ 4, 0, sys_waitid, "waitid" }, /* 284 */
{ 5, TP, sys_waitid, "waitid" }, /* 284 */
{ 5, 0, printargs, "SYS_285" }, /* 285 */
{ 5, 0, printargs, "SYS_286" }, /* 286 */
{ 5, 0, printargs, "SYS_287" }, /* 287 */

View File

@ -2066,6 +2066,16 @@ struct tcb *tcp;
tprintf(", ");
if (!printflags(wait4_options, tcp->u_arg[3]))
tprintf("0");
if (tcp->u_nargs > 4) {
/* usage */
tprintf(", ");
if (!tcp->u_arg[4])
tprintf("NULL");
else if (tcp->u_error)
tprintf("%#lx", tcp->u_arg[4]);
else
printrusage(tcp, tcp->u_arg[4]);
}
}
return 0;
}