Andrew Wood
|
00f06f2b2c
|
Pass the othermonitor_* values into the main state, and add TODO markers for next steps (#67).
|
2026-03-29 21:49:47 +01:00 |
|
Andrew Wood
|
bd70b0c6cb
|
Set exit status for --monitor errors (#67).
|
2026-03-14 22:33:52 +00:00 |
|
Andrew Wood
|
0a27a85b4a
|
Update the copyright years.
|
2026-03-07 23:20:20 +00:00 |
|
Andrew Wood
|
b1cac9b78d
|
Record all old-style formatting options, and the full string for the extra display spec, in the control structure; make pv_remote_set only use internal pv state structures so it can be part of the internal pv library where it belongs, and not need to know about main()'s options array.
|
2025-10-26 12:53:51 +00:00 |
|
Andrew Wood
|
7598b4d46c
|
Add pv_query_loop() to run a main loop watching another pv (#101).
|
2025-10-24 09:00:10 +01:00 |
|
Andrew Wood
|
590a3535d8
|
Don't keep PV_REMOTE_QUERY separate from PV_REMOTE_CONTROL after all since they will need to work together; extend pv_remote_check() so it will check for both -R and -Q signals (#101).
|
2025-10-21 23:39:17 +01:00 |
|
Andrew Wood
|
d27672b7a3
|
Declare pv_open_controlfile so it can be used for the query action (#101).
|
2025-10-21 22:10:38 +01:00 |
|
Andrew Wood
|
54913fddbe
|
First working draft of --sparse transfers, tests still needed (#45).
|
2025-10-13 22:13:54 +01:00 |
|
Andrew Wood
|
3ea19829d7
|
Merge pv_watchpid_loop into pv_watchfd_loop, and allow multiple PID / PID:FD sets to be watched at once (#12).
|
2025-09-27 17:55:18 +01:00 |
|
Andrew Wood
|
b5fbd1978e
|
Replace watch_pid, watch_fd with arrays, though for now only use the first item in the arrays (#12).
|
2025-09-21 19:50:56 +01:00 |
|
Andrew Wood
|
dbce5b355e
|
Add --watchfd option values to an array in the main state, as well as to the currently used variables (#12).
|
2025-09-17 23:12:13 +01:00 |
|
Andrew Wood
|
f79bed3cb8
|
Rename "can_display_colour" and "can_display_utf8" to "terminal_supports_colour" and "terminal_supports_utf8" to make it clearer that these are not operator-supplied option settings, they are derived from terminal capabilities (colour) and the environment (UTF-8).
|
2025-07-27 15:20:05 +01:00 |
|
Andrew Wood
|
da2a2e6fd2
|
Remove the state from the pv_error arguments, by adding a new function pv_set_error_prefix to call on startup, eliminating the need for a state program_name string; and add a private boolean to track whether there has been any output which means errors need preceding by a newline, which is updated by pv_display directly (#165).
|
2025-07-27 00:22:57 +01:00 |
|
Andrew Wood
|
7d6c7d0735
|
Copyright note update for 2025.
|
2025-01-03 16:11:08 +00:00 |
|
Andrew Wood
|
f0aca0a2ce
|
Store the calculated percentage as a double rather than an int, so the granular progress bar is still granular on wide displays.
|
2024-12-14 17:06:37 +00:00 |
|
Andrew Wood
|
8fa9df6e7a
|
New --bar-style option; replace "default" with "plain" or with a lookup against the selected default, as appropriate.
|
2024-12-14 00:06:30 +00:00 |
|
Andrew Wood
|
1d76c0bc64
|
Permit decimals with suffix for --size, --rate-limit, --buffer-size, and --error-skip-block (#35); and document the types of numbers allowed in the manual.
|
2024-12-10 22:09:32 +00:00 |
|
Andrew Wood
|
51a5de71c1
|
Add a "can_display_utf8" flag based on the current locale, for future use.
|
2024-12-09 23:23:07 +00:00 |
|
Andrew Wood
|
c95e25776e
|
Move the formatter functions into separate files so that display.c is less of a monolith; and replace the ctype.h macros with internal versions.
|
2024-12-09 21:42:16 +00:00 |
|
Andrew Wood
|
f495303177
|
List all supported format sequences in the output of "--help".
|
2024-12-08 20:40:05 +00:00 |
|
Andrew Wood
|
4ffdee0002
|
Introduce the pv_strwidth() function so that in future we can add support for escape sequences and UTF-8 in format strings.
|
2024-12-08 17:40:12 +00:00 |
|
Andrew Wood
|
d51c57379a
|
When cross-compiling, we cannot run a test program to check whether a siginfo_t provides the signal sender PID, so we fall back to assuming that it does, and also check that SA_SIGINFO is declared so compilation will not fail on systems without it (#120).
|
2024-12-03 21:04:58 +00:00 |
|
Andrew Wood
|
dccc7345ab
|
New option "--extra-display" (#3, #4).
|
2024-12-01 19:39:59 +00:00 |
|
Andrew Wood
|
aee34fce32
|
Address splint warnings when debugging is turned off.
|
2024-12-01 15:55:48 +00:00 |
|
Andrew Wood
|
106a673ba8
|
Test at compile time whether siginfo_t is usable for --remote (#119).
|
2024-12-01 15:26:59 +00:00 |
|
Andrew Wood
|
0d618efd0d
|
Remove pointless EOF lines from all sources.
|
2024-11-30 16:40:50 +00:00 |
|
Andrew Wood
|
d9a0041870
|
New --store-and-forward option (#100), including refactoring several areas to allow PV to run in two passes, and the ability to look at the output pipe buffer utilisation to more accurately reflect the total data transferred to the receiving end, rather than just the total amount written to the output buffer.
|
2024-10-05 16:21:59 +01:00 |
|
Andrew Wood
|
c548d1f2d8
|
Add a "--gauge" option which alters the progress bar to show the current rate as a percentage of the max rate seen, if the size is unknown (#46).
|
2024-10-04 22:15:14 +01:00 |
|
Andrew Wood
|
cd696e60ab
|
Make pv__calc_percentage() into pv_percentage() in number.c instead of a static function in display.c, so it can be used in multiple places in future.
|
2024-10-04 17:15:18 +01:00 |
|
Andrew Wood
|
9bd5a518ea
|
New option "--stats", to show a line of statistics about the transfer once it has ended (issue #49).
|
2024-10-04 15:12:22 +01:00 |
|
Andrew Wood
|
01e0290d6e
|
More replacement of hard-coded exit status bitmask values with named constants.
|
2024-06-08 21:57:36 +01:00 |
|
Andrew Wood
|
1c61154206
|
Replace hard-coded exit status bitmask values with named constants.
|
2024-06-08 21:49:46 +01:00 |
|
Martin Dørum
|
30763684b7
|
add -o/--output option
|
2024-06-08 14:31:19 +02:00 |
|
Andrew Wood
|
c9dede08d4
|
Adjust the decimal units flag variable name from "si" to "decimal_units" so it does not overlap with other words like "size" and "signal"; add man page entry and adjust the "-L" man page entry; and allow this flag to also change how input prefixes are processed.
|
2024-03-19 22:17:43 +00:00 |
|
kevinruddy
|
fe8137521a
|
Support for decimal SI units
|
2024-03-19 16:57:57 -04:00 |
|
Andrew Wood
|
41b223a757
|
Addressed more issues raised by splint.
|
2023-10-13 23:31:28 +01:00 |
|
Andrew Wood
|
0e1750835e
|
Rewrite of "--remote", to use a temporary file for information exchange instead of a SysV IPC message queue, to correct the fault where "make check -j32" would fail due to every PV exit removing the message queue.
|
2023-10-01 01:20:16 +01:00 |
|
Andrew Wood
|
e5cc71b4d2
|
Switched licensing to GPLv3+.
|
2023-09-24 21:09:52 +01:00 |
|
Andrew Wood
|
2033c6085f
|
Addressed more issues raised by splint.
|
2023-09-23 21:53:31 +01:00 |
|
Andrew Wood
|
780b65a648
|
More type corrections.
|
2023-09-16 23:14:16 +01:00 |
|
Andrew Wood
|
20b8c9700a
|
Rename the functions to better describe what they do, remove single-letter variable names, add more explanatory comments, remove "_t" suffix from typedef as per FreeBSD style guide.
|
2023-09-16 00:55:40 +01:00 |
|
Andrew Wood
|
252213fbc2
|
Addressed more issues raised by splint, and corrected some type confusion between off_t and size_t / ssize_t.
|
2023-09-14 22:19:49 +01:00 |
|
Andrew Wood
|
153285bec0
|
Use off_t for file sizes, size_t for buffer sizes.
|
2023-09-13 23:17:53 +01:00 |
|
Andrew Wood
|
8a2ddac50e
|
Type consistency corrections - use booleans for boolean operations, use size_t for byte counts.
|
2023-09-12 23:42:23 +01:00 |
|
Andrew Wood
|
896727b664
|
Addressed the issues raised by splint and flawfinder.
|
2023-09-10 23:04:43 +01:00 |
|
Andrew Wood
|
86feafb721
|
Rename "doc" directory to "docs" to match Debian standards.
|
2023-09-03 00:40:26 +01:00 |
|
Andrew Wood
|
14ce832249
|
New "--error-skip-block" option.
|
2023-09-02 01:21:18 +01:00 |
|
Andrew Wood
|
d51a1b10f0
|
Corrections to file header comments.
|
2023-08-31 21:49:27 +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 |
|