open,lseek,read,write,close系统调用《unix环境高级编程读书笔记》(1)
int open(const char *pathname, int flags); //如果只是单纯的打开一个已经存在的文件,可以使用这个int open(const char *pathname, int flags, mode_t mode)//mode一般是你要创建文件的时候需要填写,一般是0664表示用户和组用户均有可读写权限,其他用户只有可读权限int creat(const
原创
2013-03-18 17:18:39 ·
1536 阅读 ·
0 评论