[Issue 22440] New: OpenBSD: Sync sysctl.d
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Wed Oct 27 00:44:38 UTC 2021
https://issues.dlang.org/show_bug.cgi?id=22440
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 at puremagic.com
Reporter: bcallah at 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:
https://github.com/openbsd/src/blob/master/sys/sys/sysctl.h#L1084
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.
--
More information about the Digitalmars-d-bugs
mailing list