[Bug 211152] benchmarks/iozone: Build fails on typedef redefinition with different types ('long long' vs '__off64_t' (aka 'long'))

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Sun Jul 17 02:36:56 UTC 2016


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=211152

--- Comment #13 from Mark Millard <markmi at dsl-only.net> ---
(In reply to w.schwarzenfeld from comment #12)

It may not have been clear but when I wrote:

"The prints with %lld and a matching (long long) cast for the value likely
survive until long or int happens to be be bigger than 64 bits."

I was indicating that those changes are basically good and would likely survive
for a significant time.

A technical alternative for C code that is allowed to be modern enough is use
of (intmax_t) casts and j based formats for printf variants.

(Similarly for local intmax_t storage and j formats for scan variants, where
the intmax_t value is later range validated and conditionally converted into
the intended storage if the value fits.)

I have no clue how old of a C variant iozone's source code intends to support.
intmax_t might be too modern for simple direct use over iozone's intended C
vintage range, at least viewed for source also spanning outside a FreeBSD
context.

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-ports-bugs mailing list