Eugene Syromyatnikov | 1890792 | 2016-08-07 06:44:19 +0300 | [diff] [blame] | 1 | #ifndef STRACE_MSGHDR_H |
| 2 | #define STRACE_MSGHDR_H |
Dmitry V. Levin | 4b38ce9 | 2016-06-27 00:02:41 +0000 | [diff] [blame] | 3 | |
| 4 | /* For definitions of struct msghdr and struct mmsghdr. */ |
| 5 | # include <sys/socket.h> |
| 6 | |
| 7 | # ifndef HAVE_STRUCT_MMSGHDR |
| 8 | struct mmsghdr { |
| 9 | struct msghdr msg_hdr; |
| 10 | unsigned msg_len; |
| 11 | }; |
| 12 | # endif |
| 13 | |
Dmitry V. Levin | 7c37ce4 | 2016-07-14 22:13:58 +0000 | [diff] [blame] | 14 | struct tcb; |
Elliott Hughes | d35df49 | 2017-02-15 15:19:05 -0800 | [diff] [blame] | 15 | |
| 16 | extern void |
| 17 | print_struct_msghdr(struct tcb *, const struct msghdr *, |
| 18 | const int *p_user_msg_namelen, kernel_ulong_t data_size); |
Dmitry V. Levin | 7c37ce4 | 2016-07-14 22:13:58 +0000 | [diff] [blame] | 19 | |
Dmitry V. Levin | 42ceb0f | 2016-08-07 22:02:46 +0000 | [diff] [blame] | 20 | #endif /* !STRACE_MSGHDR_H */ |