Rivoreo Source Code Repositories
src.rivoreo.one
/
devel
/
celibc
/
cce31f10ce9b78199dcb082d11fef9059266ba8e
/
.
/
posix-io
/
creat.c
blob: e9bb8741073f584bb410817fb938221ca72f1bb2 [
file
] [
log
] [
blame
] [
raw
]
#include
<unistd.h>
#include
<fcntl.h>
int
creat
(
const
char
*
file
,
mode_t
mode
)
{
return
open
(
file
,
O_CREAT
|
O_WRONLY
|
O_TRUNC
,
mode
);
}