Dmitry V. Levin | 710b3ae | 2014-12-06 03:53:16 +0000 | [diff] [blame] | 1 | #include "defs.h" |
| 2 | |
| 3 | #include <fcntl.h> |
| 4 | |
| 5 | #include "xlat/sync_file_range_flags.h" |
| 6 | |
| 7 | int |
| 8 | sys_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 | |
| 21 | int |
| 22 | sys_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 | } |