On 2020/12/29 05:57, Dimitri Karamazov wrote: > Apart from this, the following code is giving me grief. > I see no way but to circumvent it's use, or is there? > This code tries to get a file Name from a file Pointer.
There's no way to retrieve this with OpenBSD. It's similar to the problem of finding the path to the executable that the current process was loaded from: it's not really possible to provide a "current" name for the file (which may have changed due to rename, or no longer exist at all due to unlink). AFAIK the OS which do support this do it by caching the name it was loaded as. I believe that it is unlikely that a diff to do this in OpenBSD would be accepted. So if you want to get this to work I think you'll need to continue with your approach of modifying the code some way or other. (I can't really help with making that work myself though).