NetBSD-Bugs archive

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

Re: lib/41567



The following reply was made to PR lib/41567; it has been noted by GNATS.

From: Stathis Kamperis <ekamperi%gmail.com@localhost>
To: gnats-bugs%netbsd.org@localhost
Cc: 
Subject: Re: lib/41567
Date: Wed, 10 Jun 2009 12:02:50 +0300

 Strictly speaking the spec doesn't say that the errno shouldn't be
 touched. Though, usually, when errno is expected to be set, it is
 explicitly mentioned. Moreover, what's the use of returning an error
 code and setting errno at the same time ? As far as I know, glibc
 doesn't set errno, nor DragonFly's libc. On the other hand, sun OS
 5.10 and NetBSD do. Again, this is not a bug, but I think it would be
 nice to have. At the very least it should be documented in
 posix_memalign(3) that the function sets errno.
 
 Cheers,
 Stathis
 


Home | Main Index | Thread Index | Old Index