fork.c
来自「Axis 221 camera embedded programing inte」· C语言 代码 · 共 13 行
C
13 行
#include <sysdep.h>#define __NR___libc_fork __NR_forkSYSCALL__ (__libc_fork, 0) /* R1 is now 0 for the parent and 1 for the child. Decrement it to make it -1 (all bits set) for the parent, and 0 (no bits set) for the child. Then AND it with R0, so the parent gets R0&-1==R0, and the child gets R0&0==0. */ /* i dunno what the blurb above is useful for. we just return. */__asm__("ret\n\tnop");weak_alias(__libc_fork, fork);
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?