source:
trunk/minix/lib/posix/_mkdir.c@
22
Last change on this file since 22 was 9, checked in by , 14 years ago | |
---|---|
File size: 275 bytes |
Rev | Line | |
---|---|---|
[9] | 1 | #include <lib.h> |
2 | #define mkdir _mkdir | |
3 | #include <sys/stat.h> | |
4 | #include <string.h> | |
5 | ||
6 | PUBLIC int mkdir(name, mode) | |
7 | _CONST char *name; | |
8 | _mnx_Mode_t mode; | |
9 | { | |
10 | message m; | |
11 | ||
12 | m.m1_i1 = strlen(name) + 1; | |
13 | m.m1_i2 = mode; | |
14 | m.m1_p1 = (char *) name; | |
15 | return(_syscall(FS, MKDIR, &m)); | |
16 | } |
Note:
See TracBrowser
for help on using the repository browser.