NetBSD-Bugs archive

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

Re: lib/41567 (posix_memalign(3) taints errno when it shouldn't.)

Synopsis: posix_memalign(3) taints errno when it shouldn't.

State-Changed-From-To: open->analyzed
State-Changed-When: Sun, 19 Jul 2009 07:27:04 +0000
The standard (ISO/IEC 9899:1999, 7.5#3) is clear on this issue:

  The value of errno may be set to nonzero by a library
  function call whether or not there is an error, provided
  the use of errno is not documented in the description
  of the function in this International Standard.

Documenting this in posix_memalign(3) alone would be taking
the wrong road, too; this is a general concept which fits
errno(2) better, with the issue of errno(2) currently
addressing the behavior if system calls only.

In any case, "nice to have" in this case boils down to
encouragement of non-portable use of the interface.

Home | Main Index | Thread Index | Old Index