creat(2)
_________________________________________________________________
creat System Call
Create a new file or rewrite an existing one.
_________________________________________________________________
SYNTAX
#include <sys/types.h>
#include <sys/stat.h>
int creat (path, mode)
char * path;
int mode;
PARAMETERS
path Address of a pathname.
mode Protection mode of the new file.
DESCRIPTION
Creat(2) is equivalent to
open(path, O_WRONLY | O_CREAT | O_TRUNC, mode).
See open(2) for more details.
ACCESS CONTROL
Same as for the open system call.
RETURN VALUE
See open(2).
EXCEPTIONS
See open(2).
SEE ALSO
The related manual sections: stat(5), chmod(2), close(2),
DG/UX 4.00 Page 1
Licensed material--property of copyright holder(s)
creat(2)
dup(2), fcntl(2), lseek(2), open(2), read(2), umask(2), write(2).
DG/UX 4.00 Page 2
Licensed material--property of copyright holder(s)