blob: e9bb8741073f584bb410817fb938221ca72f1bb2 [file] [log] [blame] [raw]
#include <unistd.h>
#include <fcntl.h>
int creat(const char *file, mode_t mode) {
return open(file, O_CREAT | O_WRONLY | O_TRUNC, mode);
}