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
isblank() implementation.
[minix.git]
/
lib
/
libc
/
posix
/
_mknod.c
blob
6c221306f6e55b4df748c513f0da6d7d22d6be83
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
(
name
,
mode
,
dev
)
8
_CONST
char
*
name
;
9
_mnx_Mode_t mode
;
10
Dev_t dev
;
11
{
12
message m
;
13
14
m
.
m1_i1
=
strlen
(
name
) +
1
;
15
m
.
m1_i2
=
mode
;
16
m
.
m1_i3
=
dev
;
17
m
.
m1_p1
= (
char
*)
name
;
18
m
.
m1_p2
= (
char
*) ((
int
)
0
);
/* obsolete size field */
19
return
(
_syscall
(
FS
,
MKNOD
, &
m
));
20
}