creat(2) DG/UX R4.11MU05 creat(2)
NAME
creat - create a new file or rewrite an existing one
SYNOPSIS
#include <fcntl.h>
#include <sys/types.h>
#include <sys/stat.h>
int creat (path, mode)
const char * path;
int mode;
where:
path Address of a pathname
mode Protection mode of the new file
DESCRIPTION
Creat(2) is equivalent to:
open(path, OWRONLY | OCREAT | OTRUNC, mode).
See open(2) for more details.
ACCESS CONTROL
Same as for the open system call.
RETURN VALUE
See open(2).
DIAGNOSTICS
See open(2).
SEE ALSO
chmod(2), close(2), dup(2), fcntl(2), lseek(2), open(2), read(2),
umask(2), write(2), stat(5).
Licensed material--property of copyright holder(s)