minix/lib/ip/send.c

12 lines
233 B
C
Raw Normal View History

2005-07-27 13:57:59 +02:00
#include <stdlib.h>
#include <sys/socket.h>
ssize_t send(int socket, const void *buffer, size_t length, int flags)
{
struct sockaddr sa;
sa.sa_family= AF_UNSPEC;
return sendto(socket, buffer, length, flags, &sa, sizeof(sa));
}