Date: Sun, 5 May 2013 22:03:13 +0100 From: David Chisnall <theraven@FreeBSD.org> To: Andrey Chernov <ache@FreeBSD.org> Cc: svn-src-head@FreeBSD.org, svn-src-all@FreeBSD.org, Sergey Kandaurov <pluknet@FreeBSD.org>, src-committers@FreeBSD.org Subject: Re: svn commit: r250245 - head/lib/libc/locale Message-ID: <90B8EC0D-C669-4345-AAB7-DE880E667260@FreeBSD.org> In-Reply-To: <5186A598.8040403@freebsd.org> References: <201305041721.r44HLiXb066291@svn.freebsd.org> <5186A598.8040403@freebsd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
On 5 May 2013, at 19:31, Andrey Chernov <ache@FreeBSD.org> wrote: > It is better to fix this function return type to match POSIX standard > rather than to document its non-standard behavior. We try to follow > POSIX when possible and this is the case. We follow Darwin in this case, which returns 0 on success or -1 on = error. 'Fixing' this will break code written for Darwin and testing the = return value. Not fixing it will not break POSIX code that ignores the = (unexpected) return value. David
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?90B8EC0D-C669-4345-AAB7-DE880E667260>