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