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.

pidfd_open.c 345B

12345678910111213141516171819
  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. SYS_FUNC(pidfd_open)
  9. {
  10. /* pid_t pid */
  11. tprintf("%d", (int) tcp->u_arg[0]);
  12. /* unsigned int flags */
  13. tprintf(", %#x", (unsigned int) tcp->u_arg[1]);
  14. return RVAL_DECODED | RVAL_FD;
  15. }