mirror of
https://git.rtems.org/rtems-libbsd/
synced 2025-07-23 04:46:12 +08:00
Use send() and recv() from FreeBSD
This commit is contained in:
parent
caf8eded60
commit
609df33954
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user