]> cygwin.com Git - cygwin-apps/setup.git/commit
Use off_t more consistently for file offsets and file size
authorCorinna Vinschen <corinna@vinschen.de>
Sat, 4 Feb 2023 21:12:34 +0000 (22:12 +0100)
committerCorinna Vinschen <corinna@vinschen.de>
Sun, 5 Feb 2023 11:24:12 +0000 (12:24 +0100)
commit44d31ea07407104d2317e31800704538d0c3093a
tree4af7c609a1a98cd24c648e1a1d35f0421d54b09a
parent4e30c4f6248fefa439a5b4e34dae260d01b25408
Use off_t more consistently for file offsets and file size

- Change the seek and tell methods to off_t in the first place,
  and use fseeko/ftello throughout.
- Change class members holding file sizes and offsets to off_t,
  use matching casts.
- Use strtoll rather than sscanf to read octal file length
  in tar archives.  It's faster and typesafe.
- Use off_t as argument types for progress bar functions.

Additionally:

- Reformat io_stream_memory.h, which was next to unreadable
  due to bad formatting.
25 files changed:
UserSettings.cc
archive.h
archive_tar.cc
archive_tar.h
archive_tar_file.cc
compress.h
compress_bz.cc
compress_bz.h
compress_gz.cc
compress_gz.h
compress_xz.cc
compress_xz.h
compress_zstd.cc
compress_zstd.h
gpg-packet.cc
install.cc
io_stream.h
io_stream_cygfile.cc
io_stream_cygfile.h
io_stream_file.cc
io_stream_file.h
io_stream_memory.cc
io_stream_memory.h
threebar.cc
threebar.h
This page took 0.032228 seconds and 5 git commands to generate.