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_range.c 595B

12345678910111213141516171819202122232425
  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) 2014-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_range)
  13. {
  14. int argn;
  15. printfd(tcp, tcp->u_arg[0]);
  16. argn = printllval(tcp, ", %lld, ", 1);
  17. argn = printllval(tcp, "%lld, ", argn);
  18. printflags(sync_file_range_flags, tcp->u_arg[argn],
  19. "SYNC_FILE_RANGE_???");
  20. return RVAL_DECODED;
  21. }