
glibc
The_Hungry_Brain
现在不经意做的一件事,会在未来某个不可预期的时刻回馈自己。越努力,越幸运。
展开
-
glibc源码解读——memset
#include #include #undef memsetvoid *inhibit_loop_to_libcallmemset(void *dstpp, int c, size_t len){ long int dstp = (long int)dstpp; if (len >= 8) { size_t xlen; o原创 2017-07-06 11:23:42 · 1968 阅读 · 0 评论 -
glibc源码解读——malloc
通过宏定义的展开,找到malloc的函数地址:# define C_SYMBOL_NAME(name) name# define ASM_LINE_SEP ;void *__libc_malloc (size_t bytes);libc_hidden_def (__libc_malloc)# define libc_hidden_def(name) hidden_def (nam原创 2017-09-11 20:15:27 · 2550 阅读 · 0 评论