[Issue 21113] New: std.file.thisExePath on NetBSD depends upon th /proc filesystem
    d-bugmail at puremagic.com 
    d-bugmail at puremagic.com
       
    Tue Aug  4 19:41:05 UTC 2020
    
    
  
https://issues.dlang.org/show_bug.cgi?id=21113
          Issue ID: 21113
           Summary: std.file.thisExePath on NetBSD depends upon th /proc
                    filesystem
           Product: D
           Version: D2
          Hardware: x86
                OS: Mac OS X
            Status: NEW
          Severity: enhancement
          Priority: P1
         Component: phobos
          Assignee: nobody at puremagic.com
          Reporter: euan+dlang-bugzilla at torano.co.uk
The function `std.file.thisExPath` depends upon the process filesystem being
mounted, which isn't the case by default.
However, NetBSD provides a sysctl to get the path name similar to FreeBSD, as
can be sen in this C snippet:
    int mib[4] = { CTL_KERN, KERN_PROC_ARGS, -1, KERN_PROC_PATHNAME };
Documentation can be found at:
https://netbsd.gw.com/cgi-bin/man-cgi?sysctl+7+NetBSD-current
It would be nice to alter the code to make use of this sysctl call instead.
--
    
    
More information about the Digitalmars-d-bugs
mailing list