2007-06-14 01:55:28 +08:00
|
|
|
/* creat() "system call" */
|
|
|
|
|
|
|
|
/* copied from libc/posix/creat.c */
|
|
|
|
|
|
|
|
/* This is needed by f2c and therefore the SPEC benchmarks. */
|
|
|
|
|
|
|
|
#include <fcntl.h>
|
|
|
|
|
|
|
|
int
|
2017-12-04 11:43:30 +08:00
|
|
|
creat (const char *path,
|
2007-06-14 01:55:28 +08:00
|
|
|
mode_t mode)
|
|
|
|
{
|
|
|
|
return open (path, O_WRONLY | O_CREAT | O_TRUNC, mode);
|
|
|
|
}
|