Rivoreo Source Code Repositories
src.rivoreo.one
/
devel
/
celibc
/
a257a02110908bacfec9ae6e5933ad3450db0b76
/
.
/
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
);
}