摘要: 一、open#include <sys/types.h>#include <sys/stat.h>#include <fcntl.h>int open(const char *pathname, int flags);int open(const char *pathname, int flags, mode_t mode);//返回值:成功返回新分配的文件描述符,出错返回-1并设置errnoopen函数在C代码里面的实际声明为int open(const char *pathname, int flags, ...);其中flags的主先参数有,O_RDO 阅读全文
posted @ 2012-10-23 22:22 林德伟 阅读(287) 评论(0) 推荐(0) 编辑