Retro68/gcc/newlib/libc/posix/creat.c

13 lines
225 B
C
Raw Normal View History

2017-04-11 21:13:36 +00:00
/* creat() "system call" */
/* This is needed by f2c and therefore the SPEC benchmarks. */
#include <fcntl.h>
int
2018-12-28 15:30:48 +00:00
creat (const char *path,
mode_t mode)
2017-04-11 21:13:36 +00:00
{
return open (path, O_WRONLY | O_CREAT | O_TRUNC, mode);
}