函数原型:函数
#include<fcntl.h>spa
#include<sys/types.h>orm
#include<sys/star.h>原型
int open(const char *path,int oflags);it
int open(const char *path,int oflags,mode_t mode);权限
*path:要建立的文件名称文件
oflags:制定打开文件时所采起的动做co
mode:当用O_CREAT标志的open来创造文件时,要用到此参数,访问权限的初始值。path