git: mknod(2): Restrict functionality to creating FIFOs.

Sascha Wildner swildner at crater.dragonflybsd.org
Wed Dec 19 19:11:04 PST 2012


commit d5056fe0532f6e09c1c52b6384f3ef6e6db77a68
Author: Sascha Wildner <saw at online.de>
Date:   Thu Dec 20 03:57:05 2012 +0100

    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

Summary of changes:
 sys/emulation/linux/linux_misc.c |   32 +++++--------
 sys/kern/vfs_syscalls.c          |   93 ++++++-------------------------------
 sys/sys/kern_syscall.h           |    1 -
 3 files changed, 28 insertions(+), 98 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/d5056fe0532f6e09c1c52b6384f3ef6e6db77a68


-- 
DragonFly BSD source repository



More information about the Commits mailing list