// 打开open函数的帮助文档
man 2 open

头文件

#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>

Untitled

open打开文件

int open(const char *pathname, int flags);

参数

Untitled

返回值

Untitled

open创建新文件

int open(const char *pathname, int flags, mode_t mode);

Untitled

参数