cvs commit: src/sys/sys errno.h

Jeroen Ruigrok/asmodai asmodai at in-nomine.org
Sat Jul 2 15:45:32 PDT 2005


-On [20050703 00:24], Andreas Hauser (andy at xxxxxxxxxxxxxxx) wrote:
>Please keep it or come up with something better.

How about ANSI C?

"There shall be no more than one external definition for each identifier
declared with internal linkage in a translation unit. Moreover, if an
identifier declared with internal linkage is used in an expression (other
than as a part of the operand of a sizeof operator), there shall be
exactly one external definition for the identifier in the translation
unit."

and

"If an identifier declared with external linkage is used in an expression
(other than as part of the operand of a sizeof operator), somewhere in the
entire program there shall be exactly one external definition for the
identifier; otherwise, there shall be no more than one."

This external definition is already satisfied by including errno.h and
SHOULD NOT be repeated.

-- 
Jeroen Ruigrok van der Werven <asmodai(at)wxs.nl> / asmodai / kita no mono
Free Tibet! http://www.savetibet.org/ | http://ashemedai.deviantart.com/
http://www.tendra.org/   | http://www.in-nomine.org/
When others, out of envy, treat me badly with abuse, slander and the like,
may I suffer the defeat and offer the victory to others...





More information about the Commits mailing list