Use send() and recv() from FreeBSD

This commit is contained in:
Sebastian Huber 2013-10-11 13:20:26 +02:00
parent caf8eded60
commit 609df33954

View File

@ -761,12 +761,6 @@ sendto (int s, const void *buf, size_t len, int flags, const struct sockaddr *to
return -1;
}
ssize_t
send( int s, const void *msg, size_t len, int flags )
{
return (sendto(s, msg, len, flags, NULL, 0));
}
int
kern_recvit(td, s, mp, fromseg, controlp)
struct thread *td;
@ -1023,12 +1017,6 @@ done2:
return -1;
}
ssize_t
recv( int s, void *buf, size_t len, int flags )
{
return (recvfrom(s, buf, len, flags, NULL, 0));
}
int
kern_setsockopt(td, s, level, name, val, valseg, valsize)
struct thread *td;