git: kernel - Add fcntl(F_GETPATH)

Matthew Dillon dillon at crater.dragonflybsd.org
Tue Mar 30 12:57:18 PDT 2021


commit 36f3145a09c3116a47b91be101b802c2106eaad1
Author: 1338-1 <1338minus1 at protonmail.com>
Date:   Tue Mar 30 21:31:32 2021 +0200

    kernel - Add fcntl(F_GETPATH)
    
    * Implement fcntl(F_GETPATH).  For now limit to fp's representing
      vnodes only.  Use cache_fullpath().
    
    * This fcntl() allows a program to retrieve the file path related to
      an open descriptor.
    
    Author:    1338-1 <1338minus1 at protonmail.com> also known as dan_
    Tested-by: dillon

Summary of changes:
 sys/kern/kern_descrip.c | 15 +++++++++++++++
 sys/sys/fcntl.h         |  5 +++++
 2 files changed, 20 insertions(+)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/36f3145a09c3116a47b91be101b802c2106eaad1


-- 
DragonFly BSD source repository



More information about the Commits mailing list