首页| JavaScript| HTML/CSS| Matlab| PHP| Python| Java| C/C++/VC++| C#| ASP| 其他|
购买积分 购买会员 激活码充值

您现在的位置是:虫虫源码 > C/C++/VC++ > 百度C / C++连接框架

百度C / C++连接框架

资 源 简 介

BHook BHook is a hooking framework for the C/C++ program on Linux platform. * It can dynamically replace the original function to change the program logic at runtime. * Supports for replacing any function, including shared library function(such as system function), static library function and program function. * Provides the default hooking library for system function. * It can be used for debugging, mocking, testing and so on. * Baidu C/C++ Mocking Framework is based on the BHook. Install $ ./configure --prefix={your install path}$ make$ make install # Getting Started # ## Use the default hooking library ## Let the program produce the disk full exception by hooking write function that set errno to ENOSPC(#define ENOSPC 28) with 80% probability: $ bhook -e write -p 80 -i 28 ./a.out ## User-defined system function ## 1. Source code: ``` //main.cpp #include

文 件 列 表

bhook-1.0.0
build-aux
include
scripts
test
configure.ac
aclocal.m4
Makefile.am
Makefile.in
configure
src
preload

相 关 资 源

您 可 能 感 兴 趣 的

同 类 别 推 荐

VIP VIP
  • 晋财 19分钟前 成为了本站会员

  • WYG 1天前 成为了本站会员

  • Shine 1天前 成为了本站会员

  • 柳贻 1天前 成为了本站会员

  • hallelujah_HL 1天前 成为了本站会员

  • 焦昱贺 1天前 成为了本站会员

  • Rubin 1天前 成为了本站会员

  • Li 2天前 成为了本站会员

  • bigfatcat1977 3天前 成为了本站会员

  • just4down 3天前 成为了本站会员

0.159982s