摘要: 父子进程是共享文件表(文件状态标志、当前文件偏移量和v节点指针)的,和相互独立进程不一样。详细见Unix高级环境编程p175.#include <stdio.h>#include <stdlib.h>#include <sys/types.h>#include <unistd.h>#include <fcntl.h>#include <string.h>int main(void){ int fd = open("test.txt", O_RDWR | O_CREAT | O_TRUNC); char 阅读全文
posted @ 2012-10-29 21:48 helloweworld 阅读(595) 评论(0) 推荐(0) 编辑