mirror of
https://git.rtems.org/rtems-libbsd/
synced 2025-07-24 02:22:03 +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;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
ssize_t
|
|
||||||
send( int s, const void *msg, size_t len, int flags )
|
|
||||||
{
|
|
||||||
return (sendto(s, msg, len, flags, NULL, 0));
|
|
||||||
}
|
|
||||||
|
|
||||||
int
|
int
|
||||||
kern_recvit(td, s, mp, fromseg, controlp)
|
kern_recvit(td, s, mp, fromseg, controlp)
|
||||||
struct thread *td;
|
struct thread *td;
|
||||||
@ -1023,12 +1017,6 @@ done2:
|
|||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
ssize_t
|
|
||||||
recv( int s, void *buf, size_t len, int flags )
|
|
||||||
{
|
|
||||||
return (recvfrom(s, buf, len, flags, NULL, 0));
|
|
||||||
}
|
|
||||||
|
|
||||||
int
|
int
|
||||||
kern_setsockopt(td, s, level, name, val, valseg, valsize)
|
kern_setsockopt(td, s, level, name, val, valseg, valsize)
|
||||||
struct thread *td;
|
struct thread *td;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user