syscall wrapper asm C
问题 Can someone explain this code snippet to me? Also please give me some link/URL where i can know more about this? This code is used as a wrapper to override the "extern int errno" in our library. Can someone explain me this function, and tell why is wrapper needed in some syscalls? Which are also called WeakSYSCALLS? #define ASM_ARGS_1 ASM_ARGS_0, "r" (_a1) #define ASM_ARGS_2 ASM_ARGS_1, "r" (_a2) #define ASM_ARGS_3 ASM_ARGS_2, "r" (_a3) #define LOADREGS_5(a1, a2, a3, a4, a5) \ register int