/* | |
* This file has no copyright assigned and is placed in the Public Domain. | |
* No warranty is given. | |
* | |
* Written by PC GO | |
* | |
*/ | |
#include <unistd.h> | |
#include <fcntl.h> | |
int _creat(const char *file, mode_t mode) { | |
return open(file, O_CREAT | O_WRONLY | O_TRUNC, mode); | |
} | |
int creat(const char *file, mode_t mode) { | |
return _creat(file, mode); | |
} |