This is the mail archive of the glibc-linux@ricardo.ecn.wfu.edu mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Namespace pollution?


On Mon, 1 Nov 1999, Steve Baker wrote:

> Date: Mon, 1 Nov 1999 18:18:38 -0500
> From: Steve Baker <ice@mama.indstate.edu>
> Reply-To: glibc-linux@ricardo.ecn.wfu.edu
> To: glibc-linux@ricardo.ecn.wfu.edu
> Subject: Namespace pollution?
> 
>   After spending many an hour debugging a program I have been working on
> I've distilled a problem to the following (apologies if this is a known
> problem):
> 
> -------
> #include <stdio.h>
> #include <sys/types.h>
> #include <pwd.h>
> 
> int uname;

This invokes undefined behavior. The above identifier is a reserved external
name in a POSIX application, such as this program, since it refers to the
name of an existing function.

It's more of a problem of the program's non-compliance rather than of namespace
pollution.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]