source: trunk/libs/newlib/src/newlib/libc/sys/sparc64/creat.c @ 519

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

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

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