blob: 164c28d72a0e40e1b83d1ee6d423437e7d95236b (
plain) (
tree)
|
|
#include <sys/socket.h>
#include <limits.h>
#include "syscall.h"
#include "libc.h"
ssize_t sendmsg(int fd, const struct msghdr *msg, int flags)
{
#if LONG_MAX > INT_MAX
struct msghdr h;
if (msg) {
h = *msg;
h.__pad1 = h.__pad2 = 0;
msg = &h;
}
#endif
return socketcall_cp(sendmsg, fd, msg, flags, 0, 0, 0);
}
|