statx struct's stx_size pointer compatibility with uint64_t/size_t

David Howells
Tue Dec 17 18:13:00 GMT 2019

Dominique Martinet <> wrote:

> A coworker ran into an incompatible-pointer-type compiler warning when
> trying to pass &statxbuf.stx_size to a function expecting a size_t,
> which boils down to this:

sizeof(size_t) != sizeof(__u64) on some arches, so you can't simply
interchange them.  But that's not what your example code is doing.


More information about the Libc-help mailing list