Linxu中的系统调用函数—open函数(详解)

zh_bx 16 0 PDF 2021-01-16 11:01:29

下面是man手册的章节号 我们可以通过man手册来查询系统函数man 2 open open函数 //头文件: #include #include #include //功能:打开和创建文件(建立一个文件描述符,其他的函数可以通过文 件描述符对指定文件进行读取与写入的操作。) 原型 int open(const char*pathname,int flags); //文件存在 int open(const char*pathname,int flags,mode_t mode);//文件不存在 参数说明: 1.pathname 要打开或创建的

用户评论
请输入评论内容
评分:
暂无评论