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
/
_mkdir.c
blob
8b9db73647ebc7b827e7444fdfee88007770ac60
1
#include <lib.h>
2
#define mkdir _mkdir
3
#include <sys/stat.h>
4
#include <string.h>
5
6
PUBLIC
int
mkdir
(
const char
*
name
,
mode_t mode
)
7
{
8
message m
;
9
10
m
.
m1_i1
=
strlen
(
name
) +
1
;
11
m
.
m1_i2
=
mode
;
12
m
.
m1_p1
= (
char
*)
name
;
13
return
(
_syscall
(
FS
,
MKDIR
, &
m
));
14
}