Subject: Re: gethostname and getdomainname
To: Christos Zoulas <email@example.com>
From: Ignatios Souvatzis <firstname.lastname@example.org>
Date: 11/14/1999 23:09:51
On Sun, Nov 14, 1999 at 05:01:26PM -0500, Christos Zoulas wrote:
> On Nov 14, 10:54pm, email@example.com (Ignatios Souvatzis) wrote:
> -- Subject: Re: gethostname and getdomainname
> | I don't know wether XPGwhatwasit specifies an error, but SUSV2 does not, and
> | no other system does, so it wouldn't be portable.
> | I guess nobody else really cared...
> Most of the code either does not check or specifies a large enough buffer.
> I think that XPG3 is right to return an error code here. I don't expect
> things to break, that were not already broken before (when the bug was
Software might check for -1 return, do a perror() and exit(), without checking
what error occured, because about every OS only mentions EFAULT.