Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > gnu.bash.bug > #14565 > unrolled thread

Re: examples/loadables/finfo.c type problems

Started byChristian Weisgerber <naddy@mips.inka.de>
First post2018-09-09 21:54 +0200
Last post2018-09-09 21:54 +0200
Articles 1 — 1 participant

Back to article view | Back to gnu.bash.bug

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: examples/loadables/finfo.c type problems Christian Weisgerber <naddy@mips.inka.de> - 2018-09-09 21:54 +0200

#14565 — Re: examples/loadables/finfo.c type problems

FromChristian Weisgerber <naddy@mips.inka.de>
Date2018-09-09 21:54 +0200
SubjectRe: examples/loadables/finfo.c type problems
Message-ID<mailman.565.1536523044.1284.bug-bash@gnu.org>
Chet Ramey:

> >                 printf("%ld\n", (long) st->st_size);
> > 
> > which potentially truncate values.
> 
> Pretty much all the systems bash runs on these days have 64-bit longs.
> How big a file do you have? But the fix is the same as above.

32-bit platforms (IA-32, ARMv7) are still around.  And BSD has had
64-bit off_t on 32-bit architectures for about a quarter century.

-- 
Christian "naddy" Weisgerber                          naddy@mips.inka.de

[toc] | [standalone]


Back to top | Article view | gnu.bash.bug


csiph-web