This is the mail archive of the gdb@sources.redhat.com mailing list for the GDB project.


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

Re: Is GDB using reserved TYPEDEF identifiers? [REPOST]



On Sat, 23 Jun 2001, Michael Elizabeth Chastain wrote:

> John Kallal writes:
> 
> > I think that POSIX reserves all identifiers defined with a typedef statement 
> > that that end with the characters "_t" for use within the POSIX header files.
> 
> The C standard (ISO/IEC 9899:1999) does not reserve these names,
> but the Single Unix Specification does reserve all names with the
> suffix "_t".  Here's the reference:
> 
>   http://www.opengroup.org/onlinepubs/7908799/xsh/compilation.html

Note that Posix (at least the draft I have) does not explicitly say that 
the names with the suffix _t are reserved.  It just says that all Posix 
headers use such names, which therefore might conflict with the 
application.  By contrast, the above Single unix Spec _does_ in fact say 
such names are reserved.

> My opinion is that we should do nothing until someone demonstrates
> an actual problem on a specific configuration (specific host system,
> specific Ansi C compiler, specific host triple, specific target triple).

I agree.


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