[Bug 214338] [PATCH] devel/glib20: new kqueue() backend for file monitoring
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Mon Jul 30 22:41:03 UTC 2018
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=214338
--- Comment #60 from lightside <lightside at gmx.com> ---
(In reply to comment #59)
> In other words, if kfnm->s.rate_limit_time_init was assigned to 1000 value,
> then kfnm->rate_lim_time_init maybe assigned to -1 instead of 4294967295, if
> compiled without fix for MSTOSBT macro (attachment #195598) with using
> Clang 3.4.1 base compiler on FreeBSD 10.4 amd64.
Looks like, my testcase in comment #56 wasn't correct, because
rate_limit_time_init has type uint32_t, while I used int64_t as for
"mstosbt(int64_t _ms)" function:
uint32_t rate_limit_time_init; /* Fire events for dir min interval,
mseconds. */
If change "int64_t" to "uint32_t" in "for (int64_t i = 0; i < 1000; ++i) {"
(and "%ld: funct" to "%u: funct" for printf function), then results are ok for
Clang 3.4.1 and 6.0.1 compilers, including for new (attachment #195649) and
previous (attachment #195598) MSTOSBT macro.
--
You are receiving this mail because:
You are on the CC list for the bug.
More information about the freebsd-gnome
mailing list