[brandz-discuss] Incompliance of lx with Linux in sendto emulation

Wei Shen cquark at gmail.com
Mon Jun 30 08:37:02 PDT 2008


Hi,

I am checking the socket API emulation code of lx recent days, and found the
*sendto* emulation does not strictly follow Linux.
I list the incompliance below, in case people here may be interested in it,
though it is in fact rather minor.

*ssize_t sendto(int s, const void *buf, size_t len, int flags, const
sockaddr *to, socklen_t to_len)*

When *sendto* is called with argument *to_len *equals zero, lx will report
an error and return -EINVAL; when sendto is called with argument *to* equals
NULL, lx will report EFAULT.
However, both cases are legal *sento* calls in Linux, and they are
equivalent to *send(s, buf, len, flags)*.

Regards,
Jianjun Shen
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.opensolaris.org/pipermail/brandz-discuss/attachments/20080630/86e80968/attachment.html 


More information about the brandz-discuss mailing list