Thread (4 messages) 4 messages, 3 authors, 2019-12-18

Re: statx struct's stx_size pointer compatibility with uint64_t/size_t

flat view

From: David Howells <dhowells@redhat.com>
Date: 2019-12-17 18:17:59

Dominique Martinet [off-list ref] wrote:
Looking at this from a kernel's point of view, it looks like there
really was a will to simplify 64-bit ints handling over all arches and
have them all define 64-bit ints as long long a few years back.
Think printk() too.  Do you use "%lu", "%Lu" or "%llu"?  It's a lot easier if
__u64 is consistently unsigned long long - then it's always "%llu".

The problem with defining it as "unsigned long" on some platforms and
"unsigned long long" on others is that you're guaranteed warnings on one arch
or another.

David
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help