tech-kern archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: return value of prop_*_recv_syscall()



On 27.09.2011 12:23, Manuel Bouyer wrote:
On Sat, Sep 24, 2011 at 10:35:41PM +0200, Francois Tigeot wrote:
Since DragonFly's proplib implementation comes from NetBSD, I figured it
would be best to ask here what to do:
fix the documentation or fix the implementation ?

The documentation. The implementation can't be exactly the same between
kernel and userland for this kind of functions, because in kernel we have
to return an errno.h value, while in userland the traditionnal way to go
it to return a boolean, and get the error number from a global variable
if we care.

FWIW I am currently clarifying this API divergence with Manuel. We should have something ready in a day or two. Stay tuned.

--
Jean-Yves Migeon
jeanyves.migeon%free.fr@localhost


Home | Main Index | Thread Index | Old Index