This is the mail archive of the
glibc-linux@ricardo.ecn.wfu.edu
mailing list for the glibc project.
Re: Namespace pollution?
- To: glibc-linux at ricardo dot ecn dot wfu dot edu
- Subject: Re: Namespace pollution?
- From: Kaz Kylheku <kaz at ashi dot footprints dot net>
- Date: Mon, 1 Nov 1999 20:13:40 -0800 (PST)
- Reply-To: glibc-linux at ricardo dot ecn dot wfu dot edu
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.