Commit Graph
236 Commits
Author SHA1 Message Date
Andrew Wood 7fcf65e9c3 Address warnings raised by flawfinder. 2023-09-03 18:00:01 +01:00
Andrew Wood befcddc994 Address warnings raised by splint. 2023-09-03 16:02:00 +01:00
Andrew Wood 7d7d5ddf2e Added flawfinder notes. 2023-09-03 01:14:55 +01:00
Andrew Wood 86feafb721 Rename "doc" directory to "docs" to match Debian standards. 2023-09-03 00:40:26 +01:00
Andrew Wood 78bb93b288 Move terminal TOSTOP attribute changes into signal handling functions and only set/unset that attribute rather than saving and restoring the whole terminal state; keep track of whether we have changed it and change cursor positioning IPC data to a structure so the state change can be shared with all "pv -c" instances. 2023-09-02 22:06:31 +01:00
Andrew Wood 2b341c1a7f Minor consistency fixes. 2023-09-02 01:33:11 +01:00
Andrew Wood 14ce832249 New "--error-skip-block" option. 2023-09-02 01:21:18 +01:00
Andrew Wood decae290d4 Improve the comments, and add support in the SI prefix code for negative numbers. 2023-08-31 22:51:23 +01:00
Andrew Wood d51a1b10f0 Corrections to file header comments. 2023-08-31 21:49:27 +01:00
Andrew Wood a6849012a6 Minor automated indentation fixes. 2023-08-30 22:25:51 +01:00
Andrew Wood 1f320dd7a2 Replace all gettimeofday() calls, and elapsed time arithmetic, with a new set of elapsed time functions based on clock_gettime(), to avoid faults due to time zone / DST changes and machine suspend/resume. 2023-08-30 22:23:43 +01:00
Andrew Wood b7eb3c9e90 Record whether the width or height were set manually, and refrain from changing a manually set value when the terminal size changes. 2023-08-28 22:03:14 +01:00
Andrew Wood 9e5bdeb3a4 Added "--discard" option. 2023-08-28 21:05:45 +01:00
Andrew Wood 0bd1b82d3a Move libgen.h out of IPC conditional code since it is not related directly to IPC; adjust IPC configuration so that IPC support is auto-disabled if the relevant header files or library functions are missing. 2023-08-28 17:44:53 +01:00
Andrew Wood 65eac50c21 Alter file processing to silently skip unreadable input files at the size calculation stage, and report - and skip rather than exiting - unreadable files at the point they are needed during the transfer, more like "cat" does; also, more variable name corrections for bad names (single letters). 2023-08-28 17:15:16 +01:00
Andrew Wood 2a092c9495 Rename "null" state boolean to "null_terminated_lines" so it is more descriptive and less confusing. 2023-08-28 16:18:51 +01:00
Andrew Wood 10296f93e4 Use dormant code to calculate total line count in line mode when all inputs are regular files, and fix unwise variable naming in size calculation functions, no more "i" and "j". 2023-08-28 16:12:31 +01:00
Andrew Wood 66cae656d1 Rename state variable "no_op" to the more descriptive "no_display", as pv is not doing nothing when this is set, it is still transferring data. 2023-08-28 15:20:51 +01:00
Andrew Wood b1ef744058 Use posix_fadvise() on input files, where available. 2023-08-28 13:10:38 +01:00
Andrew Wood e99548ea8a Major restructuring to switch build system from old scripts to GNU Automake. 2023-08-28 10:04:39 +01:00
Andrew Wood fb8bea390c Use mkstemp() to write the PID file more safely, avoiding potential symlink issues. 2023-08-26 21:45:31 +01:00
Andrew Wood fe22f0e449 Store name and format string in internal state as their own copies rather than pointers to strings outside the state, for memory safety and to avoid a leak on remote control. 2023-08-26 20:49:30 +01:00
Andrew Wood 4c9f304a46 Adjustments and annotations as per splint and flawfinder reports, and a TODO marker for upcoming memory management cleanup work. 2023-08-15 22:32:13 +01:00
Andrew Wood a9c4c6e049 Add TODO markers for memory management cleanup work to come soon. 2023-08-15 22:30:56 +01:00
Andrew Wood 4cd28b23f0 Adjustments and annotations as per splint and flawfinder reports. 2023-08-14 23:07:37 +01:00
Andrew Wood b2989efd5c Added TODO highlighted by flawfinder. 2023-08-14 22:54:02 +01:00
Andrew Wood cc4d1a15e4 Make the filenames in the list constant. 2023-08-14 22:37:23 +01:00
Andrew Wood 7f25aff91d Adjustments and annotations as per splint and flawfinder reports. 2023-08-14 22:33:06 +01:00
Andrew Wood f01117d84e Adjustments and annotations as per splint and flawfinder reports. 2023-08-14 20:56:11 +01:00
Andrew Wood f3cd9a2664 Spacing changes from "make indent". 2023-08-13 16:19:45 +01:00
Andrew Wood fff425ec61 Added flawfinder notes for getenv(). 2023-08-13 16:18:22 +01:00
Andrew Wood 34c18d47a4 String location auto updates after latest changes. 2023-08-07 21:19:36 +01:00
Andrew Wood ada5748d2f Possible workaround for OS X oddity with fdatasync() - GH#73. 2023-08-06 20:45:46 +01:00
Andrew Wood c2e77cd005 Replaced AC_HEADER_TIOCGWINSZ and always just include sys/ioctl.h if it is available - GH#74. 2023-08-06 20:31:02 +01:00
Andrew Wood b6c797af1a Track position movements due to reformatting. 2023-07-30 19:22:00 +01:00
Andrew Wood 911969c2a8 Cast char to int in isdigit() to satisfy GCC on Cygwin. 2023-07-30 16:52:31 +01:00
Andrew Wood 943c05a8a0 Reformatted with "indent" to a line length of 120. 2023-07-29 22:21:32 +01:00
Andrew Wood 630d92fef6 Added splint annotation. 2023-07-29 22:19:43 +01:00
Andrew Wood 34fe796806 Refactored "--help" to support multi-byte character locales when word wrapping, and clear all "splint" and "flawfinder" warnings. 2023-07-29 21:32:34 +01:00
Andrew Wood 7e374be0d7 Minor spacing changes due to "indent". 2023-07-28 23:15:09 +01:00
Andrew Wood b9f96d9508 Provide new option "--debug" instead of using insecure environment variable DEBUG. 2023-07-28 23:14:14 +01:00
Andrew Wood cd9f057f15 Removed incorrect undef HAVE_STDBOOL_H which caused standard boolean types to be redefined unnecessarily. 2023-07-28 21:55:57 +01:00
Andrew Wood 506ec4a8ec Updating as a result of msgmerge during release. 2023-07-28 17:34:29 +01:00
Andrew Wood ae81f83e9b New option "--direct-io". 2023-07-27 21:44:30 +01:00
Andrew Wood 6cff3c1c2a First draft of new "--sync" option. 2023-07-26 22:17:00 +01:00
Andrew Wood 923ef47056 Progress update 2023-07-24 23:15:09 +01:00
Andrew Wood e0856df8ef Fix rate display width when it is exactly 0 in bytes mode. 2023-07-23 22:29:09 +01:00
Andrew Wood c39e97ec5a Fix byte prefix at low rates so it is two spaces, not one 2023-07-23 17:13:14 +01:00
Andrew Wood a0e5d5e9e7 Rebuild timestamp update 2023-07-23 14:27:19 +01:00
Andrew Wood 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. 2023-07-23 01:57:00 +01:00