Branch data Line data Source code
1 : : #include "defs.h"
2 : :
3 : : static void
4 : 60 : decode_chmod(struct tcb *tcp, const int offset)
5 : : {
6 : 60 : printpath(tcp, tcp->u_arg[offset]);
7 : 60 : tprints(", ");
8 : 60 : print_numeric_umode_t(tcp->u_arg[offset + 1]);
9 : 60 : }
10 : :
11 : 30 : SYS_FUNC(chmod)
12 : : {
13 : 30 : decode_chmod(tcp, 0);
14 : :
15 : 30 : return RVAL_DECODED;
16 : : }
17 : :
18 : 30 : SYS_FUNC(fchmodat)
19 : : {
20 : 30 : print_dirfd(tcp, tcp->u_arg[0]);
21 : 30 : decode_chmod(tcp, 1);
22 : :
23 : 30 : return RVAL_DECODED;
24 : : }
25 : :
26 : 6 : SYS_FUNC(fchmod)
27 : : {
28 : 6 : printfd(tcp, tcp->u_arg[0]);
29 : 6 : tprints(", ");
30 : 6 : print_numeric_umode_t(tcp->u_arg[1]);
31 : :
32 : 6 : return RVAL_DECODED;
33 : : }
|