kernel - Add fcntl(F_GETPATH) (3)
authorMatthew Dillon <dillon@apollo.backplane.com>
Tue, 30 Mar 2021 21:14:15 +0000 (14:14 -0700)
committerMatthew Dillon <dillon@apollo.backplane.com>
Tue, 30 Mar 2021 21:14:15 +0000 (14:14 -0700)
commitc022ba7f69efc7609c8a668a7548c3fa7fb4582b
tree8b0a89f7bdd85714f8bf3246cc2af04f6b0dfc66
parent4a80ad8dfe8ad2433ecafb8f7f510f2eda33fbed
kernel - Add fcntl(F_GETPATH) (3)

* cache_fullpath() limits the result to MAXPATHLEN, but we must
  still adjust the error code to match the manual page and netbsd.
lib/libc/sys/fcntl.2
sys/kern/kern_descrip.c