repo.or.cz
/
minix.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
secondary cache feature in vm.
[minix.git]
/
lib
/
libc
/
posix
/
_creat.c
blob
a862e8cfd966d45b32ad2f17e6c0320dab687354
1
#include <lib.h>
2
#define creat _creat
3
#include <fcntl.h>
4
5
PUBLIC
int
creat
(
const char
*
name
,
mode_t mode
)
6
{
7
message m
;
8
9
m
.
m3_i2
=
mode
;
10
_loadname
(
name
, &
m
);
11
return
(
_syscall
(
FS
,
CREAT
, &
m
));
12
}