blob: 1053a1af87a1ea509c61ff4223b5773dc26591a9 [file] [log] [blame] [raw]
/*
* 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);
}