Debian Codegraph @

ptrace/ctypes_libc.py

raw
1 """
2 Load the system C library. Variables:
3 - LIBC_FILENAME: the C library filename
4 - libc: the loaded library
5 """
6
7 from ctypes import CDLL
8 from ctypes.util import find_library
9
10 LIBC_FILENAME = find_library('c')
11 libc = CDLL(LIBC_FILENAME, use_errno=True)