Sign in
googlers
/
maze
/
klibc
/
56df17a094f4a1b8e2e02e5be2dcd60afd52e764
/
.
/
klibc
/
creat.c
blob: 9bd22172d484f49819f972190c62a41b300e8279 [
file
] [
log
] [
blame
]
/*
* creat.c
*/
#include
<sys/types.h>
#include
<sys/stat.h>
#include
<fcntl.h>
int
creat
(
const
char
*
pathname
,
mode_t
mode
)
{
return
open
(
pathname
,
O_CREAT
|
O_WRONLY
|
O_TRUNC
,
mode
);
}