[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Included Interfaces without documentation update



Dan Kegel <dank@kegel.com> writes:

> As far as I can tell, the prefixed names are internal to glibc.
> User programs don't import them.
> Here's a test case.   I compiled the following code with gcc 2.96 (the 
> "Red Hat 7 suprise" release):
>   #include <stdio.h>
>   main() { fputs("howdy", stdout); }
> Running 'nm a.out | grep puts' shows
>            U fputs@@GLIBC_2.0  
> so indeed, user programs don't see to reference the internal symbols.

  $ grep _IO_putc /usr/include/stdio.h 
  #define putc(_ch, _fp) _IO_putc (_ch, _fp)
  $ nm --dynamic /bin/ls|grep putc
           U _IO_putc
  $ 

(Debian 2.2 and Red hat 7.0)

-- 
http://www.greenend.org.uk/rjk/



Reply to: