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
libutil: add O_NOCTTY back to old pty open code
[minix.git]
/
lib
/
libc
/
sys-minix
/
mkdir.c
blob
a014868da7b76943dca93ec422d370f1812beaf6
1
#include <sys/cdefs.h>
2
#include
"namespace.h"
3
#include <lib.h>
4
5
#include <sys/stat.h>
6
#include <string.h>
7
8
#ifdef __weak_alias
9
__weak_alias
(
mkdir
,
_mkdir
)
10
#endif
11
12
int
mkdir
(
const char
*
name
,
mode_t mode
)
13
{
14
message m
;
15
16
m
.
m1_i1
=
strlen
(
name
) +
1
;
17
m
.
m1_i2
=
mode
;
18
m
.
m1_p1
= (
char
*)
__UNCONST
(
name
);
19
return
(
_syscall
(
VFS_PROC_NR
,
MKDIR
, &
m
));
20
}