mknod(2): Restrict functionality to creating FIFOs.
authorSascha Wildner <saw@online.de>
Thu, 20 Dec 2012 02:57:05 +0000 (03:57 +0100)
committerSascha Wildner <saw@online.de>
Thu, 20 Dec 2012 02:57:05 +0000 (03:57 +0100)
commitd5056fe0532f6e09c1c52b6384f3ef6e6db77a68
tree6d1d8a642ede80f13d2f4d156c37039c4e71a605
parent93be9aac686bc8f77ac5fc9245a8fedcfafc3c3f
mknod(2): Restrict functionality to creating FIFOs.

Now that we have devfs(5) for handling our device nodes, we can retire
part of mknod(2) functionality and restrict it to what POSIX requires:

"The only portable use of mknod() is to create a FIFO-special file.
 If mode is not S_IFIFO or dev is not 0, the behavior of mknod() is
 unspecified."

In-discussion-with: beket
sys/emulation/linux/linux_misc.c
sys/kern/vfs_syscalls.c
sys/sys/kern_syscall.h