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
/
_mknod.c
blob
a6c266523e22e57ba2fd2cca4e6a5c84d77cc3c6
1
#include <lib.h>
2
#define mknod _mknod
3
#include <string.h>
4
#include <stdlib.h>
5
#include <unistd.h>
6
7
PUBLIC
int
mknod
(
const char
*
name
,
mode_t mode
,
dev_t dev
)
8
{
9
message m
;
10
11
m
.
m1_i1
=
strlen
(
name
) +
1
;
12
m
.
m1_i2
=
mode
;
13
m
.
m1_i3
=
dev
;
14
m
.
m1_p1
= (
char
*)
name
;
15
m
.
m1_p2
= (
char
*) ((
int
)
0
);
/* obsolete size field */
16
return
(
_syscall
(
FS
,
MKNOD
, &
m
));
17
}