4f294c247f
This patch mainly copies and modifies files existing in the current libc implementing minix specific functions. To keep consisten with the NetBSD libc, we remove namespace stubs and we use "namespace.h" and weak links.
20 lines
348 B
C
20 lines
348 B
C
#include <sys/cdefs.h>
|
|
#include "namespace.h"
|
|
#include <lib.h>
|
|
|
|
#include <sys/stat.h>
|
|
#include <string.h>
|
|
|
|
#ifdef __weak_alias
|
|
__weak_alias(mkdir, _mkdir)
|
|
#endif
|
|
|
|
PUBLIC int mkdir(const char *name, mode_t mode)
|
|
{
|
|
message m;
|
|
|
|
m.m1_i1 = strlen(name) + 1;
|
|
m.m1_i2 = mode;
|
|
m.m1_p1 = (char *) name;
|
|
return(_syscall(VFS_PROC_NR, MKDIR, &m));
|
|
}
|