poll tests: Avoid test failure on BSD and Solaris systems.
[gnulib.git] / doc / posix-functions / mknod.texi
blob81957eed77640631bda45866b08d65f64db6e361
1 @node mknod
2 @section @code{mknod}
3 @findex mknod
5 POSIX specification:@* @url{https://pubs.opengroup.org/onlinepubs/9699919799/functions/mknod.html}
7 Gnulib module: mknod
9 Portability problems fixed by Gnulib:
10 @itemize
11 @item
12 This function requires super-user privileges to create a fifo:
13 FreeBSD 7.2, NetBSD 8.0, OpenBSD 6.7.
14 @item
15 This function mishandles trailing slash on some platforms:
16 FreeBSD 7.2, Solaris 9.
17 @item
18 This function is missing on some platforms; however, the replacement
19 always fails with @code{ENOSYS}:
20 mingw, MSVC 14.
21 @end itemize
23 Portability problems not fixed by Gnulib:
24 @itemize
25 @item
26 Use of this function for anything except fifos is not portable,
27 generally requiring super-user privileges and knowledge of supported
28 device numbers.
29 @item
30 If the argument exists and is a directory, this function fails with
31 @code{EISDIR} instead of the correct @code{EEXIST}:
32 HP-UX 11.11.
33 @end itemize