git: kernel: Add three new commands to fctnl

John Marino marino at crater.dragonflybsd.org
Wed Jun 12 16:21:22 PDT 2013


commit a2988f1b83fa9cb2f86aec6ae08e5df76f0bf8ec
Author: John Marino <draco at marino.st>
Date:   Wed Jun 12 21:42:21 2013 +0200

    kernel: Add three new commands to fctnl
    
    This commit adds the following new commands to fcntl():
      F_DUP2FD         - non-portable functional equivalent of dup2(fd, arg)
      F_DUPFD_CLOEXEC  - A version of F_DUPFD that sets the close-on-exec
                         on the new file descriptor
      F_DUP2FD_CLOEXEC - A version of F_DUP2FD that sets the close-on-exec
                         on the new file descriptor.  It is non-portable
    
    It also adds a missing break in a case statement for F_GETOWN in
    sys_fnctl(), spotted by dillon.
    
    reviewed-by: dillon

Summary of changes:
 lib/libc/sys/fcntl.2    | 148 ++++++++++++++++++++++++++++++++++++++----------
 sys/kern/kern_descrip.c |  49 ++++++++++++----
 sys/sys/fcntl.h         |   9 ++-
 sys/sys/kern_syscall.h  |   6 +-
 4 files changed, 168 insertions(+), 44 deletions(-)

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


-- 
DragonFly BSD source repository



More information about the Commits mailing list