Andrew Wood
|
9bd96614b3
|
Add an action type for query mode, and more TODOs to plan how it will work (#101).
|
2025-10-21 22:11:10 +01:00 |
|
Andrew Wood
|
36d82e313a
|
Rename pv__control_file to pv_open_controlfile, and move it in with the other file functions so it can be used by both the remote-control and the remote-query code (#101).
|
2025-10-21 22:09:44 +01:00 |
|
Andrew Wood
|
8b3b61e2d3
|
Separate the data transfer modifier options from the alternative operating mode options.
|
2025-10-21 21:13:27 +01:00 |
|
Andrew Wood
|
de71cc2389
|
Prevent the use of any non-option arguments with -R or -Q (#101).
|
2025-10-21 20:48:44 +01:00 |
|
Andrew Wood
|
3f1782a573
|
Draft manual entry, help text, and option parsing for "--query" option (#101).
|
2025-10-20 21:17:59 +01:00 |
|
Andrew Wood
|
a40bdfb55f
|
Merge branch 'issue45_sparse' (#45).
|
2025-10-15 23:17:05 +01:00 |
|
Andrew Wood
|
3c9ab822fe
|
Call lseek() at the start if output is appending, so that future lseek()s are relative to the right position, fixing the issue with incorrect truncation size (#45).
|
2025-10-15 23:08:33 +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
|
023cf22a59
|
Add --sparse / -O to the manual, to --help, and to option processing (#45).
|
2025-10-13 21:26:24 +01:00 |
|
Andrew Wood
|
164d7f7738
|
Add the extra --watchfd syntax to the help for that option.
|
2025-10-13 17:58:37 +01:00 |
|
Andrew Wood
|
f83aa2272b
|
Fix incorrect usage of "optarg".
|
2025-10-04 21:51:26 +01:00 |
|
Andrew Wood
|
fb7c05c262
|
Implement the "pgrep" call for --watchfd =NAME (#95).
|
2025-10-04 21:50:25 +01:00 |
|
Andrew Wood
|
bd4ca7301c
|
Document the new "=NAME" (#95) and "@FILE" (#12) syntax for --watchfd options.
|
2025-10-04 20:17:46 +01:00 |
|
Andrew Wood
|
242297a3c6
|
Partial draft of "-d @filename" (#12) and "-d =processname" syntax (#95).
|
2025-10-04 17:46:43 +01:00 |
|
Andrew Wood
|
d903a7d188
|
Add a return value to pv_remote_check() so its caller can know whether a message was received.
|
2025-09-29 21:31:05 +01:00 |
|
Andrew Wood
|
0b2f9ec397
|
Only call pv_watchfd_loop() from main, so that eventually pv_watchpid_loop() can be removed and multiple "-d" values supported (#12).
|
2025-09-24 22:11:44 +01:00 |
|
Andrew Wood
|
a0a9d682ca
|
Reject "-o" when using "-d".
|
2025-09-23 05:45:43 +01:00 |
|
Andrew Wood
|
22bf08f8e4
|
Accept additional arguments when -d is specified, expecting them to be more pid[:fd] values (#12).
|
2025-09-22 21:50:35 +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
|
db80f838ff
|
Explicitly set an action variable to say which action to perform, instead of inferring it from other settings like whether a watch PID was set (#12).
|
2025-09-18 06:18:18 +01:00 |
|
Andrew Wood
|
8c2e934768
|
Add a TODO marker for the next step to take.
|
2025-09-18 05:47:15 +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
|
12cc996d32
|
Add --watchfd option values to an array as well as to the currently used variables (#12).
|
2025-09-17 22:12:45 +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
|
2171f40703
|
Address the splint warning.
|
2025-07-27 00:34:09 +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
|
025577a13f
|
Free default_bar_style on exit.
|
2025-07-25 23:46:24 +01:00 |
|
Andrew Wood
|
505a91a6ed
|
In --numeric mode, still call the same formatting functions, only with a different default string, and end with a newline rather than a carriage return (#127).
|
2025-01-25 21:15:05 +00:00 |
|
Andrew Wood
|
8721d285ce
|
Add TODO markers at possible touch points for "--numeric --format" implementation (#127).
|
2025-01-23 21:56:57 +00:00 |
|
Andrew Wood
|
7d6c7d0735
|
Copyright note update for 2025.
|
2025-01-03 16:11:08 +00:00 |
|
Andrew Wood
|
43e2eaa4db
|
Removed misplaced splint annotation.
|
2024-12-15 22:54:15 +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
|
35d5b9efab
|
Handle wide characters and ECMA-48 CSI sequences in the format string when calculating string widths.
|
2024-12-08 21:38:38 +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
|
ebb209a371
|
Add support for --extra-display to --remote (#123).
|
2024-12-03 23:48:44 +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
|
503a559b2a
|
Move "--extra-display" and "--stats" to the "Output modifiers" section, since they are not really display switches that directly affect the terminal progress display.
|
2024-12-02 17:36:16 +00:00 |
|
Andrew Wood
|
d7d87fed76
|
Restructure and reformat the manual to be more in line with man-pages(7), with some small wording changes; move -8 and -k to the modifiers section rather than display switches; adjust "--help" output to report the options in the same order the manual lists them.
|
2024-12-02 00:02:18 +00:00 |
|
Andrew Wood
|
dccc7345ab
|
New option "--extra-display" (#3, #4).
|
2024-12-01 19:39:59 +00:00 |
|
Andrew Wood
|
0d7c9ac091
|
Address splint warnings.
|
2024-12-01 16:05:17 +00:00 |
|
Andrew Wood
|
aee34fce32
|
Address splint warnings when debugging is turned off.
|
2024-12-01 15:55:48 +00:00 |
|
Andrew Wood
|
c29d306d10
|
Additional configure.ac cleanups.
|
2024-12-01 15:42:59 +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
|
c3fae61dda
|
Include the control filename in the error message when a SIGUSR2 is received and the control file cannot be opened.
|
2024-12-01 01:10:47 +00:00 |
|
Andrew Wood
|
0d618efd0d
|
Remove pointless EOF lines from all sources.
|
2024-11-30 16:40:50 +00:00 |
|
Andrew Wood
|
b4438bbdfb
|
Explain exactly what pv__write_pidfile is intended to do, in its header comment. As per reviewer suggestions, replace the unexplained constant buffer size padding with a static template string and an extra strlen(), and explain why the flawfinder check is being bypassed.
|
2024-10-20 13:40:37 +01: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 |
|