On Thu, May 06, 2010 at 08:51:29AM +0000, David Holland wrote: > On Thu, May 06, 2010 at 08:14:08AM +0000, Jukka Ruohonen wrote: > > Correct the discussion about return values: fileno() may fail and return > -1. > > Note that in such cases the NetBSD implementation does not set errno to > > EBADF, hence diverging from the standard in this small detail. > > How is that not just a bug?
-1 is a valid answer for not file-backed FILEs. I don't think it is an error. Joerg