New warnings: INT redefined

Ulrich Drepper drepper@redhat.com
Tue Feb 5 12:14:00 GMT 2002


Jakub Jelinek <jakub@redhat.com> writes:

> But either a function is defined in ld.so, in which case only rtld only
> objects should use the _internal variant, or it is defined in libc.so,
> in which case only non-rtld objects should use it.

This is not what I was talking about.  The INT/INTDEF stuff is meant
to be used to call functions defined in libc.so from inside the
libc.so.  This means:

- using macros is really not the scalable.  Defining macros for each
  function will be a nightmare.  We use function pointers occasionally
  which cannot be handled with macros.

- making the mechamism dependent on some symbol related to rtld is wrong
  since the same mechanism must be used in libc.so as well.

-- 
---------------.                          ,-.   1325 Chesapeake Terrace
Ulrich Drepper  \    ,-------------------'   \  Sunnyvale, CA 94089 USA
Red Hat          `--' drepper at redhat.com   `------------------------



More information about the Libc-hacker mailing list