www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 22440] New: OpenBSD: Sync sysctl.d


          Issue ID: 22440
           Summary: OpenBSD: Sync sysctl.d
           Product: D
           Version: D2
          Hardware: All
                OS: Other
            Status: NEW
          Severity: trivial
          Priority: P1
         Component: druntime
          Assignee: nobody puremagic.com
          Reporter: bcallah openbsd.org

The sysctl(2) prototype in OpenBSD sysctl.d is subtly incorrect: the fifth
parameter is marked const in sysctl.d but it is not actually const in OpenBSD.
It may not matter so much in practice, but why not get it correct?

See here for the OpenBSD prototype:

The mismatch may be because OpenBSD sysctl.d derives from FreeBSD sysctl.d --
on FreeBSD, the fifth parameter is marked const.

While here, removed the parameter names; nothing else in this directory uses
named parameters in their prototypes.

Oct 26 2021