Dmitry V. Levin
a4d45720d0
* chmod.c (decode_chmod): Change to return void. (sys_chmod, sys_fchmodat): Update callers. Update for RVAL_DECODED. (sys_fchmod): Update for RVAL_DECODED.
32 lines
445 B
C
32 lines
445 B
C
#include "defs.h"
|
|
|
|
static void
|
|
decode_chmod(struct tcb *tcp, const int offset)
|
|
{
|
|
printpath(tcp, tcp->u_arg[offset]);
|
|
tprintf(", %#lo", tcp->u_arg[offset + 1]);
|
|
}
|
|
|
|
SYS_FUNC(chmod)
|
|
{
|
|
decode_chmod(tcp, 0);
|
|
|
|
return RVAL_DECODED;
|
|
}
|
|
|
|
SYS_FUNC(fchmodat)
|
|
{
|
|
print_dirfd(tcp, tcp->u_arg[0]);
|
|
decode_chmod(tcp, 1);
|
|
|
|
return RVAL_DECODED;
|
|
}
|
|
|
|
SYS_FUNC(fchmod)
|
|
{
|
|
printfd(tcp, tcp->u_arg[0]);
|
|
tprintf(", %#lo", tcp->u_arg[1]);
|
|
|
|
return RVAL_DECODED;
|
|
}
|