Dmitry V. Levin
7c37ce4055
* msghdr.h (print_struct_msghdr): New prototype. * msghdr.c (print_msghdr): Rename to print_struct_msghdr, remove static qualifier, all callers changed. (decode_mmsghdr, decode_mmsgvec, dumpiov_in_mmsghdr): Move to ... * mmsghdr.c: ... new file. * Makefile.am (strace_SOURCES): Add it.
18 lines
358 B
C
18 lines
358 B
C
#ifndef MSGHDR_H_
|
|
# define MSGHDR_H_
|
|
|
|
/* For definitions of struct msghdr and struct mmsghdr. */
|
|
# include <sys/socket.h>
|
|
|
|
# ifndef HAVE_STRUCT_MMSGHDR
|
|
struct mmsghdr {
|
|
struct msghdr msg_hdr;
|
|
unsigned msg_len;
|
|
};
|
|
# endif
|
|
|
|
struct tcb;
|
|
extern void print_struct_msghdr(struct tcb *, const struct msghdr *, const int *, unsigned long);
|
|
|
|
#endif /* MSGHDR_H_ */
|