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.

copy_file_range.c 650B

123456789101112131415161718192021222324252627282930
  1. /*
  2. * Copyright (c) 2016-2018 Dmitry V. Levin <ldv@altlinux.org>
  3. * All rights reserved.
  4. *
  5. * SPDX-License-Identifier: LGPL-2.1-or-later
  6. */
  7. #include "defs.h"
  8. SYS_FUNC(copy_file_range)
  9. {
  10. /* int fd_in */
  11. printfd(tcp, tcp->u_arg[0]);
  12. tprints(", ");
  13. /* loff_t *off_in */
  14. printnum_int64(tcp, tcp->u_arg[1], "%" PRId64);
  15. tprints(", ");
  16. /* int fd_out */
  17. printfd(tcp, tcp->u_arg[2]);
  18. tprints(", ");
  19. /* loff_t *off_out */
  20. printnum_int64(tcp, tcp->u_arg[3], "%" PRId64);
  21. tprints(", ");
  22. /* size_t len */
  23. tprintf("%" PRI_klu ", ", tcp->u_arg[4]);
  24. /* unsigned int flags */
  25. tprintf("%u", (unsigned int) tcp->u_arg[5]);
  26. return RVAL_DECODED;
  27. }