kernel - Add fcntl(F_GETPATH)

Operating Systems / DragonFlyBSD - 1338-1 [protonmail.com] - 30 March 2021 19:54 UTC

- 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 also known as dan_

36f3145a09 kernel - Add fcntl(F_GETPATH)
sys/kern/kern_descrip.c | 15 +++++++++++++++
sys/sys/fcntl.h | 5 +++++
2 files changed, 20 insertions(+)

Upstream: gitweb.dragonflybsd.org


  • Share