diff options
Diffstat (limited to 'sys/compat/svr4/svr4_stream.c')
-rw-r--r-- | sys/compat/svr4/svr4_stream.c | 32 |
1 files changed, 20 insertions, 12 deletions
diff --git a/sys/compat/svr4/svr4_stream.c b/sys/compat/svr4/svr4_stream.c index ddf082b..68abf58 100644 --- a/sys/compat/svr4/svr4_stream.c +++ b/sys/compat/svr4/svr4_stream.c @@ -1985,24 +1985,32 @@ int svr4_sys_send(td, uap) struct thread *td; struct svr4_sys_send_args *uap; { - struct osend_args osa; - osa.s = uap->s; - osa.buf = uap->buf; - osa.len = uap->len; - osa.flags = uap->flags; - return osend(td, &osa); + struct sendto_args sta; + + sta.s = uap->s; + sta.buf = uap->buf; + sta.len = uap->len; + sta.flags = uap->flags; + sta.to = NULL; + sta.tolen = 0; + + return (sendto(td, &sta)); } int svr4_sys_recv(td, uap) struct thread *td; struct svr4_sys_recv_args *uap; { - struct orecv_args ora; - ora.s = uap->s; - ora.buf = uap->buf; - ora.len = uap->len; - ora.flags = uap->flags; - return orecv(td, &ora); + struct recvfrom_args rfa; + + rfa.s = uap->s; + rfa.buf = uap->buf; + rfa.len = uap->len; + rfa.flags = uap->flags; + rfa.from = NULL; + rfa.fromlenaddr = NULL; + + return (recvfrom(td, &rfa)); } /* |