DragonFly bugs List (threaded) for 2006-12
DragonFly BSD
DragonFly bugs List (threaded) for 2006-12
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

Re: confstr() should return 0, not -1, on errors


From: Joerg Sonnenberger <joerg@xxxxxxxxxxxxxxxxx>
Date: Mon, 04 Dec 2006 12:08:05 +0100
Mail-followup-to: bugs@crater.dragonflybsd.org

On Sat, Dec 02, 2006 at 02:44:56PM -0800, Guy Harris wrote:
> According to
> 
>     http://www.opengroup.org/onlinepubs/009695399/functions/confstr.html
> 
> confstr() should return 0, not (size_t)-1, on errors.  The current 
> DragonFly BSD implementation returns -1 if sysctl() fails.

It should be noted that this is consistent with other BSDs. I don't have
a reference to POSIX.2 to verify the original specification.

Joerg



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