blob: b503bca706450d86bcd435ae7bf6630d207bf4dc (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
/*
* 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);
}
|