Subject: Re: An errno for all seasons
To: Ty Sarna <endicor.com!tsarna@werple.net.au>
From: John Birrell <cimaxp1!jb@werple.net.au>
List: tech-userlevel
Date: 10/31/1995 10:10:32
> The above does makes errno writable, since the function returns a
> pointer to it, not the value. The question is, is this safe in other
> cases, and do POSIX or other standards allow errno to be a macro?

See ANSI 7.1.4

"... which expands to a modifiable lvalue that has type int ... It is
unspecified whether errno is a macro or an identifier with external linkage."


-- 
John Birrell                                CIMlogic Pty Ltd
jb@cimlogic.com.au                          119 Cecil Street
Ph  +61  3 9690 9600                        South Melbourne Vic 3205
Fax +61  3 9690 6650                        Australia
Mob +61 18  353  137