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.

fspick.c 457B

12345678910111213141516171819202122232425
  1. /*
  2. * Copyright (c) 2019 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. #ifdef HAVE_LINUX_MOUNT_H
  9. # include <linux/mount.h>
  10. #endif
  11. #include "xlat/fspick_flags.h"
  12. SYS_FUNC(fspick)
  13. {
  14. print_dirfd(tcp, tcp->u_arg[0]);
  15. tprints(", ");
  16. printpath(tcp, tcp->u_arg[1]);
  17. tprints(", ");
  18. printflags(fspick_flags, tcp->u_arg[2], "FSPICK_???");
  19. return RVAL_DECODED | RVAL_FD;
  20. }