Mirror of strace – the linux syscall tracer
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

sync_file_range2.c 607B

1234567891011121314151617181920212223242526
  1. /*
  2. * Copyright (c) 2013 William Manley <william.manley@youview.com>
  3. * Copyright (c) 2014-2015 Dmitry V. Levin <ldv@altlinux.org>
  4. * Copyright (c) 2015-2018 The strace developers.
  5. * All rights reserved.
  6. *
  7. * SPDX-License-Identifier: LGPL-2.1-or-later
  8. */
  9. #include "defs.h"
  10. #include <fcntl.h>
  11. #include "xlat/sync_file_range_flags.h"
  12. SYS_FUNC(sync_file_range2)
  13. {
  14. int argn;
  15. printfd(tcp, tcp->u_arg[0]);
  16. tprints(", ");
  17. printflags(sync_file_range_flags, tcp->u_arg[1],
  18. "SYNC_FILE_RANGE_???");
  19. argn = printllval(tcp, ", %lld, ", 2);
  20. argn = printllval(tcp, "%lld", argn);
  21. return RVAL_DECODED;
  22. }