blob: 9bd22172d484f49819f972190c62a41b300e8279 [file] [log] [blame]
/*
* creat.c
*/
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
int creat(const char *pathname, mode_t mode)
{
return open(pathname, O_CREAT|O_WRONLY|O_TRUNC, mode);
}