摘要: open():#include<fcntl.h>#include<types.h>#include<sys/stat.h>/*此头文件里面定义了mode标志*/int open(const char *path, int oflags);int open(const char *path, int oflags, mode_t mode);函数描述:open建立了一条到文件或设备的访问路径。如果操作成功,它将返回一个文件描述符,如果失败,返回-1。此函数说明:第一个参数表示:路径名或者文件名。路径名为绝对路径名,文件则是在当前工作目录下的。 第二个参数表示: 阅读全文
posted @ 2012-02-23 15:56 beishuai 阅读(800) 评论(0) 推荐(0) 编辑