9 lines
154 B
C
9 lines
154 B
C
|
#include <fcntl.h>
|
||
|
|
||
|
int creat(const char *filename, mode_t mode)
|
||
|
{
|
||
|
return open(filename, O_CREAT|O_WRONLY|O_TRUNC, mode);
|
||
|
}
|
||
|
|
||
|
weak_alias(creat, creat64);
|