source: trunk/libs/newlib/src/newlib/libc/machine/spu/creat.c @ 444

Last change on this file since 444 was 444, checked in by satin@…, 6 years ago

add newlib,libalmos-mkh, restructure shared_syscalls.h and mini-libc

File size: 263 bytes
Line 
1/* creat() "system call" */
2
3/* copied from libc/posix/creat.c */
4
5/* This is needed by f2c and therefore the SPEC benchmarks.  */
6
7#include <fcntl.h>
8
9int
10creat (const char *path,
11       mode_t mode)
12{
13  return open (path, O_WRONLY | O_CREAT | O_TRUNC, mode);
14}
Note: See TracBrowser for help on using the repository browser.