libc
How to call kernel code in libc ? (windows or linux)
I mean, how the kernel expose its function to user lan开发者_StackOverflow中文版d application.Kernel functions are called using syscalls, which usually take form of filling some registers (type of sys[详细]
2023-02-06 16:52 分类:问答How to make lseek64 _actually_ return 64-bit offset?
#define _FILE_OFFSET_BITS 64 #define _LARGEFILE64_SOURCE ... off64_t st_开发者_StackOverflow中文版size;[详细]
2023-02-06 00:37 分类:问答IsBadReadPtr analogue on Unix
Is there a function analogous to IsBadReadPtr in Unix? At least some functionalities of IsBadReadPtr?[详细]
2023-02-02 12:31 分类:问答Where to find my system's implementation of standard C library functions?
for example, the strrev() function. i know that it\'s declared in string.h, and i wanna to figure out how it is implemented. so where could i the sourc开发者_如何学运维e code?[详细]
2023-02-01 19:42 分类:问答Should I free/delete char* returned by getenv()?
char * val; val = getenv(\"ENV_VAR_NAME\"); above is a code to get environment variable, will it cause memory leak if I dont free memory returned by getenv(char*) ? If 开发者_如何学运维no then ple[详细]
2023-01-26 07:57 分类:问答return to libc works in gdb but not when running alone
I am trying return to libc trick with the following simple code: #define SYSTEM_CALL_ADDR 开发者_如何转开发0xb7ec5e50/*my system call addr*/[详细]
2023-01-25 05:09 分类:问答How to do the equivalent of "ulimit -n 400" from within C?
I must run the command \"ulimit -n 400\" to raise number of allowed open files before I start my program written in C, but is there a way to do the equivalent from within the C pr开发者_如何学编程ogra[详细]
2023-01-23 07:01 分类:问答Linking against an old version of libc to provide greater application coverage
Linux binaries are usually dynamically linked to the core system library (libc). This keeps the memory footprint of the binary quite small but binaries which are dependent on the latest libraries will[详细]
2023-01-22 08:31 分类:问答strsep segmentation faults on different string pointer/array types
Platform: Linux, OSX Compiler: GCC I\'ve got a simple program which is currently confounding me - I know that I\'m messing with a couple different kinds of arrays/pointers to produce this problem - i[详细]
2023-01-21 00:27 分类:问答Why is the endptr parameter to strtof and strtod a pointer to a non-const char pointer?
The standard C library functions strtof and strtod have the following signatures: float strtof(const char *str, char **endptr);开发者_StackOverflow中文版[详细]
2023-01-19 11:19 分类:问答