source: trunk/minix/lib/posix/_mkdir.c@ 22

Last change on this file since 22 was 9, checked in by Mattia Monga, 14 years ago

Minix 3.1.2a

File size: 275 bytes
RevLine 
[9]1#include <lib.h>
2#define mkdir _mkdir
3#include <sys/stat.h>
4#include <string.h>
5
6PUBLIC 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.