blob: 4b1977b71a66ba267504d694f6edfe3d075707aa [file] [log] [blame]
Dmitry V. Levin710b3ae2014-12-06 03:53:16 +00001#include "defs.h"
2
3#include <fcntl.h>
4
5#include "xlat/sync_file_range_flags.h"
6
7int
8sys_sync_file_range(struct tcb *tcp)
9{
10 if (entering(tcp)) {
11 int argn;
12 printfd(tcp, tcp->u_arg[0]);
13 argn = printllval(tcp, ", %lld, ", 1);
14 argn = printllval(tcp, "%lld, ", argn);
15 printflags(sync_file_range_flags, tcp->u_arg[argn],
16 "SYNC_FILE_RANGE_???");
17 }
18 return 0;
19}
20
21int
22sys_sync_file_range2(struct tcb *tcp)
23{
24 if (entering(tcp)) {
25 int argn;
26 printfd(tcp, tcp->u_arg[0]);
27 printflags(sync_file_range_flags, 1,
28 "SYNC_FILE_RANGE_???");
29 argn = printllval(tcp, ", %lld, ", 2);
30 argn = printllval(tcp, "%lld, ", argn);
31 }
32 return 0;
33}