体验新版 GitCode,发现更多精彩内容 >>
#include <unistd.h> #include "syscall.h" int dup(int fd) { return syscall1(__NR_dup, fd); }