source: trunk/minix/lib/posix/_mknod.c@ 10

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

Minix 3.1.2a

File size: 385 bytes
Line 
1#include <lib.h>
2#define mknod _mknod
3#include <string.h>
4#include <stdlib.h>
5#include <unistd.h>
6
7PUBLIC int mknod(name, mode, dev)
8_CONST char *name;
9_mnx_Mode_t mode;
10Dev_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.