CREAT(3) Library Functions Manual CREAT(3)
NAME
creat — create a
new file or rewrite an existing one
SYNOPSIS
#include <sys/types.h> #include <sys/stat.h> #include <fcntl.h> int creat(const char *path, mode_t mode);
DESCRIPTION
The function call:
creat(path, mode)
open(path, O_WRONLY|O_CREAT|O_TRUNC, mode)
RETURN VALUE
Refer to open(3) .
ERRORS
Refer to open(3) .
EXAMPLES
None.
APPLICATION USAGE
None.
FUTURE DIRECTIONS
None.
SEE ALSO
open(3) , <fcntl.h> , <sys/stat.h> , <sys/types.h> .
DERIVATION
Derived from Issue 1 of the SVID.
February 1997 posix.fail