blob: 46fd4b5b6059a9569e4c113b1b5651a3ebe6b59d (
plain) (
tree)
|
|
/*
* $Id$
*/
/* creat() "system call" */
#if HAVE_CONFIG_H
#include "config.h"
#endif
#ifndef HAVE_CREAT
/* This is needed by f2c and therefore the SPEC benchmarks. */
#include <fcntl.h>
int
creat (const char *path, mode_t mode)
{
return open (path, O_WRONLY | O_CREAT | O_TRUNC, mode);
}
#endif
|