Current-Users archive

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

Re: HEADS-UP: prop_{array,dictionary}_send_syscall(3) incompatible change in -current



On 01.10.2011 03:35, Matthew Mondor wrote:
On Sat, 01 Oct 2011 00:43:52 +0200
Jean-Yves Migeon<jeanyves.migeon%free.fr@localhost>  wrote:

Given prior art with the prop_*_{send,recv}_ioctl(3) functions, I
adopted the same convention for these new functions: return an int, with
0 being "no error" and "!= 0" indicating error (with errno set).

If errno is set and it returns 0 on success, it probably would be best
to return -1 for error (and document it as such, rather than != 0, just
like most other syscalls and libc functions)?  Unless, of course it
returns an errno value as error (i.e. like POSIX threads functions
do)...

It returns an errno value as error and sets errno.

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


Home | Main Index | Thread Index | Old Index