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:
parent
cbf130892f
commit
39426a359f
@ -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 */
|
||||
|
10
process.c
10
process.c
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user