Files
rtems/cpukit/libcsupport/src/creat.c
Joel Sherrill 662678d1d9 2000-08-25 Joel Sherrill <joel.sherrill@OARcorp.com>
* libc/isatty.c, libc/imfs_handlers_directory.c, libc/creat.c,
	libc/imfs_directory.c: Fixed style issues.
2000-08-25 13:13:57 +00:00

16 lines
235 B
C

/*
* $Id$
*/
/* creat() "system call" */
/* 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);
}