ctypes list library

Nick Craig-Wood nick at craig-wood.com
Mon Jun 22 05:29:28 EDT 2009


luca72 <lucaberto at libero.it> wrote:
>  There is a command for ctypes that help me to know the entry points
>  inside a library.

I don't know..

However nm on the library works quite well on the command line

$ nm --defined-only -D /usr/lib/libdl.so
00000000 A GLIBC_2.0
00000000 A GLIBC_2.1
00000000 A GLIBC_2.3.3
00000000 A GLIBC_2.3.4
00000000 A GLIBC_PRIVATE
0000304c B _dlfcn_hook
000013b0 T dladdr
00001400 T dladdr1
00000ca0 T dlclose
00001170 T dlerror
00001490 T dlinfo
00001760 T dlmopen
00000ae0 T dlopen
000018d0 T dlopen
00000cf0 T dlsym
00000dd0 W dlvsym

nm from the mingw distribution works on Windows too IIRC.

-- 
Nick Craig-Wood <nick at craig-wood.com> -- http://www.craig-wood.com/nick



More information about the Python-list mailing list