int creat(const char *pathname, mode_t mode);
包含路径 创建模式
int open(const char *pathname, int flags);
int open(const char *pathname, int flags, mode_t mode);
打开属性
原文:http://www.cnblogs.com/yixin-shenda/p/5537242.html