1 #include "defs.h"
2
3 #include <fcntl.h>
4
5 #include "xlat/sync_file_range_flags.h"
6
SYS_FUNC(sync_file_range)7 SYS_FUNC(sync_file_range)
8 {
9 if (entering(tcp)) {
10 int argn;
11 printfd(tcp, tcp->u_arg[0]);
12 argn = printllval(tcp, ", %lld, ", 1);
13 argn = printllval(tcp, "%lld, ", argn);
14 printflags(sync_file_range_flags, tcp->u_arg[argn],
15 "SYNC_FILE_RANGE_???");
16 }
17 return 0;
18 }
19
SYS_FUNC(sync_file_range2)20 SYS_FUNC(sync_file_range2)
21 {
22 if (entering(tcp)) {
23 int argn;
24 printfd(tcp, tcp->u_arg[0]);
25 printflags(sync_file_range_flags, 1,
26 "SYNC_FILE_RANGE_???");
27 argn = printllval(tcp, ", %lld, ", 2);
28 argn = printllval(tcp, "%lld, ", argn);
29 }
30 return 0;
31 }
32