Re: C API Suggestion: Get Hard Link Path and Filename From File Descriptor

2022-01-18 Thread Claudio Jeker
UNIX does not let you get the path from an open file descriptor. It is not possible to give this information reliably so you can't provide an API. While a inode may exist a path to that inode may not. This is the case for a file that is replaced or deleted while open. Some systems give people a be

C API Suggestion: Get Hard Link Path and Filename From File Descriptor

2022-01-17 Thread Samuel Venable
Hello, OpenBSD Developers! Here's my code which implements this new feature, however it doesn't always work as intended: - https://github.com/time-killer-games/bugs/blob/679d333cd947cb4cbec7c45485157b305aa0757b/apifilesystem/filesystem.cpp#L55-L62 - https://github.com/time-killer-games/bugs/blo

C API Suggestion: Get Hard Link Path and Filename From File Descriptor

2022-01-15 Thread Samuel Venable
Hello, OpenBSD Developers! Here's my code which implements this new feature, however it doesn't always work as intended: - https://github.com/time-killer-games/bugs/blob/679d333cd947cb4cbec7c45485157b305aa0757b/apifilesystem/filesystem.cpp#L55-L62 - https://github.com/time-killer-games/bugs/blo