creat2
Create a new file
Usage
#include <fcntl.h>
int
creat(const char *path, mode_t mode);
Library
Standard C Library (libc, -lc)
Overview
This interface is made obsolete by: open(2).
The creat() function is the same as:
open(path, O_CREAT | O_TRUNC | O_WRONLY, mode);
Releases
155 releases since Mac OS X 10.2; the text changed 2 times.