creat — 创建新文件
creat
Lb libc
#include <fcntl.h>
int creat(const char *path, mode_t mode);
此接口由 open(2) 取代。
creat() 函数等同于:
creat()
open(path, O_CREAT | O_TRUNC | O_WRONLY, mode);
open(2)
creat() 函数出现于 Version 1 AT&T UNIX。
最后更新于 4个月前
这有帮助吗?