repo.or.cz
/
zpugcc
/
jano.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
fixed more binutils issues (newer gcc/libc)
[zpugcc/jano.git]
/
toolchain
/
gcc
/
newlib
/
libc
/
sys
/
sparc64
/
creat.c
blob
6b111620602b36e98b381eaac97a0308bea2b85d
1
/* creat() "system call" */
2
3
/* This is needed by f2c and therefore the SPEC benchmarks. */
4
5
#include <fcntl.h>
6
7
int
8
creat
(
const char
*
path
,
mode_t mode
)
9
{
10
return
open
(
path
,
O_WRONLY
|
O_CREAT
|
O_TRUNC
,
mode
);
11
}