blob: 264ba7616f0be9ac591ee897bf9110dd095b1e98 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
#include <fcntl.h>
int creat(const char *filename, mode_t mode)
{
return open(filename, O_CREAT|O_WRONLY|O_TRUNC, mode);
}
#ifdef TEST
int
main(void) {
return 0;
}
#endif
|