inotify_c.py 文件源码

python
阅读 19 收藏 0 点赞 0 评论 0

项目:hacker-scripts 作者: restran 项目源码 文件源码
def _load_libc():
    libc_path = None
    try:
        libc_path = ctypes.util.find_library('c')
    except (OSError, IOError):
        # Note: find_library will on some platforms raise these undocumented
        # errors, e.g.on android IOError "No usable temporary directory found"
        # will be raised.
        pass

    if libc_path is not None:
        return ctypes.CDLL(libc_path)

    # Fallbacks
    try:
        return ctypes.CDLL('libc.so')
    except (OSError, IOError):
        return ctypes.CDLL('libc.so.6')
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号