Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > gnu.bash.bug > #14565
| From | Christian Weisgerber <naddy@mips.inka.de> |
|---|---|
| Newsgroups | gnu.bash.bug |
| Subject | Re: examples/loadables/finfo.c type problems |
| Date | 2018-09-09 21:54 +0200 |
| Message-ID | <mailman.565.1536523044.1284.bug-bash@gnu.org> (permalink) |
| References | <20180907212804.GC60818@lorvorc.mips.inka.de> <91961426-1804-5ea3-521d-f2253e5c9eb7@case.edu> |
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
Back to gnu.bash.bug | Previous | Next | Find similar | Unroll thread
Re: examples/loadables/finfo.c type problems Christian Weisgerber <naddy@mips.inka.de> - 2018-09-09 21:54 +0200
csiph-web