source:
trunk/minix/lib/posix/_mknod.c@
12
Last change on this file since 12 was 9, checked in by , 14 years ago | |
---|---|
File size: 385 bytes |
Rev | Line | |
---|---|---|
[9] | 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 | } |
Note:
See TracBrowser
for help on using the repository browser.