Unix Notes.

原子读写:pread/pwrite

文件描述符拷贝:

  dup  =>  fcntl(fd, F_DUPFD, 0)

  dup2 => close(fd2); fcntl(fd, F_DUPFD, fd2);

sync/fsync/fdatasync

posted on 2012-01-24 22:27  leaving  阅读(174)  评论(0)    收藏  举报