define __KERNEL_STRICT_NAMES to avoid inclusion of kernel types on systems that carry...
[cake.git] / compiler / clib / mknod.c
blob5eec468073ab08936cc3d8192ae1419a93364e63
1 /*
2 Copyright © 2004, The AROS Development Team. All rights reserved.
3 $Id$
5 POSIX function mknod().
6 */
8 #include "__errno.h"
10 #include <sys/types.h>
11 #include <sys/stat.h>
12 #include <fcntl.h>
13 #include <unistd.h>
15 /*****************************************************************************
17 NAME */
19 int mknod(
21 /* SYNOPSIS */
22 const char *pathname,
23 mode_t mode,
24 dev_t dev)
26 /* FUNCTION
28 INPUTS
30 RESULT
32 NOTES
34 EXAMPLE
36 BUGS
38 SEE ALSO
40 INTERNALS
42 ******************************************************************************/
44 errno = EPERM;
45 return -1;
46 } /* mknod */