c7e0bb727e
Introduce strlcat() instead of strcat(), and replace all sizeof() of buffers inside structures with constants where possible, to avoid bugs caused by reading the size of a pointer instead of the size of the buffer it points to.
Andrew Wood2023-07-23 01:57:00 +01:00
ab20f9406f
Corrected path handling which was writing bad dependency files
Andrew Wood2023-07-23 00:35:49 +01:00
e94600d7a4
Put all terminal writes through the same pv_write_retry function for consistency and to clear up compiler warnings.
Andrew Wood2023-07-22 23:22:34 +01:00
9783f7ebef
Cleanups to fscanf() and Apple-specific watchfd code
Andrew Wood2023-07-22 22:53:02 +01:00
b6d1f62979
Centralise all sprintf()/snprintf() calls in a compatibility wrapper pv_snprintf()
Andrew Wood2023-07-22 22:40:07 +01:00
cab177814a
Document the cleanups to "make test".
Andrew Wood2023-07-22 20:49:25 +01:00
2303da77db
Skip the pipe test if GNU head is not available.
Andrew Wood2023-07-22 20:46:51 +01:00
264e3a5879
Format output with printf, allow test scripts to write output to be displayed, and allow test scripts to be skipped.
Andrew Wood2023-07-22 20:46:35 +01:00
3b2e274907
Check for ctags and cproto before starting any work
Andrew Wood2023-07-22 20:20:48 +01:00
a24342a072
Replace backticks in shell scripts with S()
Andrew Wood2023-07-22 20:20:15 +01:00
101294195b
Remove references to 64-bit file functions - stat, lstat, lseek, etc - as part of large file support rewrite.
Andrew Wood2023-07-22 19:55:55 +01:00
8c284d863d
TODO and version update to show unreleased status
Andrew Wood2023-07-22 19:45:57 +01:00
7448c7f320
Rewrote configure.in and replaced header.in with one generated by autoheader, added copyright notice to all source files as per GNU standards, and changed "pv --version" output to conform to GNU standards.
Andrew Wood2023-07-22 19:35:43 +01:00
01f627b2de
Recoded Polish PO file from ISO8859-2 to UTF-8, and removed potentially incorrect fuzzy matches from all PO files
Andrew Wood2023-07-16 23:24:53 +01:00
001dfb71c2
Show elapsed time as D:HH:MM:SS after 1 day, to match the ETA format
Andrew Wood2023-07-16 22:29:18 +01:00
bcb33ce2aa
Honour the --force setting when writing the progress display
Andrew Wood2023-07-16 21:58:08 +01:00
c8090806f9
Added debugging output to pv_in_foreground()
Andrew Wood2023-07-16 21:31:17 +01:00
3403ebd857
Adjust threshold to cope with new ETA calculation mechanism
Andrew Wood2023-07-16 21:16:02 +01:00
4fddf40436
Rename --eta-window to --average-rate-window, since that is what it does, and correct the behaviour of the final update so the final rate shown is the average rate across the whole transfer.
Andrew Wood2023-07-16 21:00:08 +01:00
62b5ac26df
Reverse the average rate history early-return logic to make it easier to understand
Andrew Wood2023-07-16 20:49:59 +01:00
e8c0b6717f
Update documentation regarding ETA issues
Andrew Wood2023-07-16 12:27:20 +01:00
2bf76577dd
Remove assertions from ETA history, set minimum boundary on ETA window, check for history structure allocation success
Andrew Wood2023-07-16 12:14:07 +01:00
90d9638488
Minor format changes as per indent(1) standardisation
Andrew Wood2023-07-16 11:53:36 +01:00