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.

open_tree.c 485B

1234567891011121314151617181920212223
  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. #include <fcntl.h>
  9. #ifdef HAVE_LINUX_MOUNT_H
  10. # include <linux/mount.h>
  11. #endif
  12. #include "xlat/open_tree_flags.h"
  13. SYS_FUNC(open_tree)
  14. {
  15. print_dirfd(tcp, tcp->u_arg[0]);
  16. tprints(", ");
  17. printpath(tcp, tcp->u_arg[1]);
  18. tprints(", ");
  19. printflags(open_tree_flags, tcp->u_arg[2], "OPEN_TREE_???");
  20. return RVAL_DECODED | RVAL_FD;
  21. }