FreeBSD 13 : wrong kernel version and size of kevent_t
rempas
rempas at tutanota.com
Mon Dec 20 21:19:43 UTC 2021
On Sunday, 19 December 2021 at 09:49:29 UTC, eugene wrote:
> test program:
>
> ```d
> import std.stdio;
> import core.sys.freebsd.config;
> import core.sys.freebsd.sys.event;
>
> void main(string[] args) {
> writefln("FreeBSD_version = %s", __FreeBSD_version);
> writefln("sizeof(kevent_t) = %s", kevent_t.sizeof);
> }
> ```
>
> output:
>
> @bsd:~/d> ./freebsdver
> FreeBSD_version = 1104000
> sizeof(kevent_t) = 32
>
> @bsd:~/d> uname -K
> 1300139
>
> /usr/include/d/dmd/core/sys/freebsd/sys/event.h **do** contain
> correct definition of kevent_t for versions 12+ (with ulong[4]
> ext field), but because of wrong kernel version size of
> kevent_t is also incorrect.
I don't have FreeBSD and I can't check the output and header
files myself but from what you are saying this seems to me as a
bug. I would recommend you to file an
[issue](https://issues.dlang.org/) just so the developers
themself can notice it. We have nothing to loss in any case
More information about the Digitalmars-d-learn
mailing list