2022-08-13 20:11:56 +00:00
|
|
|
#ifndef COSMOPOLITAN_LIBC_SOCK_STRUCT_MSGHDR_INTERNAL_H_
|
|
|
|
#define COSMOPOLITAN_LIBC_SOCK_STRUCT_MSGHDR_INTERNAL_H_
|
2022-08-13 23:02:01 +00:00
|
|
|
#include "libc/sock/struct/msghdr.h"
|
2022-08-13 20:11:56 +00:00
|
|
|
#if !(__ASSEMBLER__ + __LINKER__ + 0)
|
|
|
|
COSMOPOLITAN_C_START_
|
|
|
|
|
|
|
|
struct msghdr_bsd {
|
|
|
|
void *msg_name;
|
|
|
|
uint32_t msg_namelen;
|
|
|
|
struct iovec *msg_iov;
|
|
|
|
uint32_t msg_iovlen; /* « different type */
|
|
|
|
void *msg_control;
|
|
|
|
uint64_t msg_controllen;
|
|
|
|
uint32_t msg_flags; /* « different type */
|
|
|
|
};
|
|
|
|
|
2023-07-24 15:31:54 +00:00
|
|
|
ssize_t sys_sendmsg(int, const struct msghdr *, int);
|
|
|
|
ssize_t sys_recvmsg(int, struct msghdr *, int);
|
2022-08-13 20:11:56 +00:00
|
|
|
bool __asan_is_valid_msghdr(const struct msghdr *);
|
|
|
|
|
|
|
|
COSMOPOLITAN_C_END_
|
|
|
|
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
|
|
|
|
#endif /* COSMOPOLITAN_LIBC_SOCK_STRUCT_MSGHDR_INTERNAL_H_ */
|