Subject: Re: lib/35401
To: None <lib-bug-people@netbsd.org, gnats-admin@netbsd.org,>
From: Thorsten Glaser <tg@mirbsd.de>
List: netbsd-bugs
Date: 01/11/2007 21:35:01
The following reply was made to PR lib/35401; it has been noted by GNATS.

From: Thorsten Glaser <tg@mirbsd.de>
To: Felix von Leitner <felix-bsd@fefe.de>
Cc: gnats-bugs@NetBSD.org, Benny Siegert <bsiegert@MirBSD.org>
Subject: Re: lib/35401
Date: Thu, 11 Jan 2007 21:32:09 +0000 (UTC)

 Felix von Leitner dixit:
 
 >Thus spake Thorsten Glaser (tg@mirbsd.de):
 >> (Adding Felix himself to the discussion, maybe he's got
 >> some more ideas.)
 >
 >Uh, I might be missing some context here.
 
 Sorry Felix & Benny: http://news.gmane.org/gmane.os.netbsd.bugs
 Look for lib/35401 in the Subject line, the loom is a little buggy.
 
 >> >Since errno is not set, I think this isn't recognized as an error (even
 >> >with negative return value).  Could be naughty, couldn't it?
 >> According to (my) TFM, only -1 is an error.
 >
 >Nope.  Single Unix Spec v3 says:
 >
 >     If an output error was encountered, these functions shall return a
 >     negative value.
 
 Ah, good to know. (Should've checked myself.) Will fix TFM then.
 
 >> Setting errno to ERANGE sounds feasible, though.
 >
 >Susv3 doesn't say anything about setting errno.
 
 It's still sensible to set one IMHO - if asprintf() is out
 of memory, you'll get ENOMEM (at least on (Mir)BSD).
 
 bye,
 //mirabile
 -- 
   "Using Lynx is like wearing a really good pair of shades: cuts out
    the glare and harmful UV (ultra-vanity), and you feel so-o-o COOL."
                                          -- Henry Nelson, March 1999