[BusyBox] [Patch] __getgrent already used in some libraries

Manuel Novoa III mjn3 at codepoet.org
Mon Dec 15 18:26:27 UTC 2003


On Mon, Dec 15, 2003 at 11:14:00AM -0700, Russ Dill wrote:
> On Mon, 2003-12-15 at 10:49, Manuel Novoa III wrote:
> > Strictly speaking, any indentifier starting with a double underscore
> > is reserved for use by the C library.  Busybox shouldn't define any
> > such symbol names.
> 
> how about _fd_getgrent then?

No.  Quoting from the ANSI/ISO C99 standard:

  All identifiers that begin with an underscore and either an uppercase
  letter or another underscore are always reserved for any use.
  
  All identifiers that begin with an underscore are always reserved
  for use as identifiers with file scope in both the ordinary and tag
  name spaces.

So application-defined identifiers should never start with an
underscore.

Manuel



More information about the busybox mailing list