creat - create a new file or rewrite an existing one
#include <sys/types.h> #include <sys/stat.h> #include <fcntl.h> int creat(const char *path, mode_t mode);
The function call:is equivalent to:creat(path, mode)
open(path, O_WRONLY|O_CREAT|O_TRUNC, mode)
Refer to open().
Refer to open().
None.
None.
None.
open(), <fcntl.h>, <sys/stat.h>, <sys/types.h>.
Derived from Issue 1 of the SVID.