blob: 3b4dc61ed5ea1faf2d35e4ae2a3dc6b904c051b0 (
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);
}
|