creat
Synopsis
#include <sys/stat.h>
#include <fcntl.h>
int creat(const char *path, mode_t mode);
Status
Partially implemented
Conformance
IEEE Std 1003.1-2017
Description
The purpose is to create a new file or rewrite an existing one. The creat()
function shall behave as if it is
implemented as follows:
int creat(const char *path, mode_t mode)
{
return open(path, O_WRONLY|O_CREAT|O_TRUNC, mode);
}
Return value
Refer to open.
Errors
Refer to open.
Tests
Untested
Known bugs
None