一、首先需要看一下这两个函数的作用: 1 #include <unistd.h> 2 3 int dup(int oldfd); 4 int dup2(int oldfd, ...

关注我们的公众号

微信公众号