]> granicus.if.org Git - strace/blob - pidfd_open.c
tests: add support of multi-line diagnostics to check_h
[strace] / pidfd_open.c
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
8 #include "defs.h"
9
10 SYS_FUNC(pidfd_open)
11 {
12         /* pid_t pid */
13         tprintf("%d", (int) tcp->u_arg[0]);
14
15         /* unsigned int flags */
16         tprintf(", %#x", (unsigned int) tcp->u_arg[1]);
17
18         return RVAL_DECODED | RVAL_FD;
19 }