This is the mail archive of the
glibc-linux@ricardo.ecn.wfu.edu
mailing list for the glibc project.
Re: Namespace pollution?
"Martin v. Loewis" <martin@mira.isdn.cs.tu-berlin.de> writes:
|> > KK> Identifiers that begin with an underscore and a lower case letter
|> > KK> or digit are merely reserved as file scope identifiers in the
|> > KK> ordinary and tag namespace. At least in C89.
|> >
|> > Posix agrees From the same page:
|> > 2. All identifiers that begin with an underscore are always
|> > reserved for use as identifiers with file scope in both the
|> > ordinary identifier and tag name spaces.
|> >
|> > More inbreeding :]
|> >
|> > Wow, this is a real interesting discrepncy between the API atandards
|> > and the ABI spec.
|> >
|>
|> Not really. It says "identifiers with file scope", i.e. functions and
|> variables declared "static", and macros. I think this goes beyond the
|> set of reserved names in ISO C, but still it does not make "_write"
|> (or "_uname") reserved as a global symbol.
Huh? Global symbols *are* in file scope.
Andreas.
--
Andreas Schwab "And now for something
SuSE Labs completely different."
schwab@suse.de
SuSE GmbH, Schanzäckerstr. 10, D-90443 Nürnberg