]> granicus.if.org Git - strace/blob - msghdr.h
tests: add support of multi-line diagnostics to check_h
[strace] / msghdr.h
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
8 #ifndef STRACE_MSGHDR_H
9 # define STRACE_MSGHDR_H
10
11 /* For definitions of struct msghdr and struct mmsghdr. */
12 # include <sys/socket.h>
13
14 # ifndef HAVE_STRUCT_MMSGHDR
15 struct mmsghdr {
16         struct msghdr msg_hdr;
17         unsigned msg_len;
18 };
19 # endif
20
21 struct tcb;
22
23 extern void
24 print_struct_msghdr(struct tcb *, const struct msghdr *,
25                     const int *p_user_msg_namelen, kernel_ulong_t data_size);
26
27 #endif /* !STRACE_MSGHDR_H */