Is it possible to determine the open file path based on the file descriptor?
Mateusz Guzik
mjguzik at gmail.com
Wed Jul 8 17:22:13 UTC 2020
llvm is an example reason why I'm reluctant to add this. llvm
currently will perform realpath, which was converted to a syscall and
with other upcoming changed will be quite cheap, but most importantly
reliable. F_GETPATH can easily fail which makes me really wary of this
without always adding names to the namecache.
On 7/8/20, Yuri <yuri at rawbw.com> wrote:
> On 2020-07-08 09:59, Mateusz Guzik wrote:
>> I can't be arsed to find all the proper headers, but you get the idea.
>> If this makes the program work well enough I can commit and merge to
>> stable/12.
>
>
> This particular project (watchman) looks for F_GETPATH and fails because
> it isn't defined. If you would add it to 12.1 this would be great.
>
> llvm sources also contain references to F_GETPATH.
>
>
> Thank you,
>
> Yuri
>
>
>
--
Mateusz Guzik <mjguzik gmail.com>
More information about the freebsd-hackers
mailing list