libsir
libsir copied to clipboard
Improve _sir_getappfilename on BSD
On DragonFly BSD and NetBSD, _sir_getappfilename
uses only /proc
— we should use the sysctl/MIB method as a fallback, since these systems mount /proc
by default, although they do not require it to be mounted for regular operation, and having it unmounted isn't too unusual.