Re: [PATCH] stat.2: fixed inode printing in example program

Konstantin Bukin
2020-09-13T18:05:05Z

I didn’t know _FILE_OFFSET_BITS also affects size of ino_t. Do you see
any issues printing ino_t with %lld ?

On Sun, Sep 13, 2020 at 10:38 AM Dmitry V. Levin <ldv@altlinux.org> wrote:
>
> On Sun, Sep 13, 2020 at 10:24:23AM -0700, Konstantin Bukin wrote:
> > On x86 the size of ino_t does not appear to be larger than long.
>
> It depends. For example, with glibc on all architectures ino_t is 64-bit
> when the code is compiled using -D_FILE_OFFSET_BITS=64.
>
>
> --
> ldv