lab 1
摘要:
int father[2],son[2]; int son[2]; if (fork() == 0) { int n; char buf[1]; close(0); dup(father[1]); close(1); dup(son[0]); for(;;) { read(0,buf,n); wri 阅读全文
posted @ 2022-05-10 21:49 thotf 阅读(7) 评论(0) 推荐(0)
posted @ 2022-05-10 21:49 thotf 阅读(7) 评论(0) 推荐(0)
posted @ 2022-05-10 15:40 thotf 阅读(96) 评论(0) 推荐(0)
posted @ 2022-05-10 11:04 thotf 阅读(449) 评论(0) 推荐(0)