Andrew Wood
|
7dc02a475e
|
Make pv_error() and pv_perror() available outside of src/pv/, and use them throughout the program.
|
2026-04-18 22:23:28 +01:00 |
|
Andrew Wood
|
b12681d667
|
Add a pv_perror() function to remove all the repeated strerror(errno) calls from pv_error() arguments, and standardise the error lines so the filename in question always comes first.
|
2026-04-18 21:07:08 +01:00 |
|
Andrew Wood
|
fc364d381f
|
Dynamically allocate the error message prefix, instead of copying it into a static buffer.
|
2026-04-18 20:30:39 +01:00 |
|
Andrew Wood
|
9427d210d8
|
Remove the "ratio" option flag, as it is not needed (#67).
|
2026-04-05 15:10:53 +01:00 |
|
Andrew Wood
|
74de4e9a01
|
Merge branch 'wrap_process'
|
2026-04-04 13:30:50 +01:00 |
|
Andrew Wood
|
d8cc637b56
|
Add the "%{ratio}" formatter (#67).
|
2026-04-03 21:49:41 +01:00 |
|
Andrew Wood
|
8f19633dd7
|
In "-M both" mode, exchange information about the total amount transferred with the other side (#67).
|
2026-04-03 21:12:13 +01:00 |
|
Andrew Wood
|
7892e54d7e
|
Rather than setting an option flag for ratio, add it to the default format string on the "out" side (#67).
|
2026-04-03 20:20:50 +01:00 |
|
Andrew Wood
|
d7327aaf95
|
Replace pv_state_set_format() with pv_set_format_options(), which takes a structure rather than a long list of arguments, to make it easier to pass around - and rely on pv_state_name_set() being called first rather than doing it within this function, so it is only doing one job (#67).
|
2026-04-03 20:00:42 +01:00 |
|
Andrew Wood
|
80358e84f3
|
If no display options are passed and "-M both" is active, set a "ratio" option flag to display the in:out ratio as well (#67).
|
2026-04-02 23:08:49 +01:00 |
|
Andrew Wood
|
002780fbaf
|
Ignore files autogenerated by "autoreconf" (#185).
|
2026-04-01 22:14:57 +01:00 |
|
Andrew Wood
|
1003bbb121
|
Remove src/include/config.h.in from the repository as it is generated by "autoreconf" and causes conflicts (#185).
|
2026-04-01 22:11:40 +01:00 |
|
Andrew Wood
|
8ef4ff2e84
|
If an empty format string is supplied, such as -F "", make that imply -q and cancel -c, so that -F "" -F "%b %t %r %p %e" -M both will monitor both sides but only display the output side - which will be useful when ratio is added (#67).
|
2026-03-30 21:41:16 +01:00 |
|
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
|
5c84305817
|
Hide the __attribute__() definition from splint so it doesn't generate spurious warnings.
|
2026-03-21 15:48:35 +00:00 |
|
Andrew Wood
|
6a20139f5c
|
Add a macro to remove __attribute__(()) if not compiling with GCC.
|
2026-03-20 23:48:28 +00:00 |
|
Andrew Wood
|
04f99c4951
|
Use a special type for opts->argv[] so that the whole array, and array entries, can both be NULL, and the array entries pointers to constant strings; and ensure that argv[] always has a NULL pointer on the end - all so argv can be passed to execvp() (#67).
|
2026-03-19 22:57:41 +00:00 |
|
Andrew Wood
|
bd70b0c6cb
|
Set exit status for --monitor errors (#67).
|
2026-03-14 22:33:52 +00:00 |
|
Andrew Wood
|
4606638567
|
Constrain the options so that -M cannot be used with -U (as it is a different action) and -M will report the right error message if mixed with -R or -Q (#67).
|
2026-03-14 17:20:30 +00:00 |
|
Andrew Wood
|
882428883a
|
Remember both -N and -F values if two were given (#67).
|
2026-03-14 14:54:53 +00:00 |
|
Andrew Wood
|
c2bbb8eef1
|
Parse the monitoring side setting from "--monitor" (#67).
|
2026-03-14 14:28:30 +00:00 |
|
Andrew Wood
|
5f1893f094
|
Draft documentation and option parsing for a "--monitor" option to run a command and monitor its input and output (#67).
|
2026-03-11 23:37:09 +00:00 |
|
Andrew Wood
|
0a27a85b4a
|
Update the copyright years.
|
2026-03-07 23:20:20 +00:00 |
|
Andrew Wood
|
e17f64fce7
|
Allow "--size @dir" to read the size of all files under "dir" (#179).
|
2026-03-07 22:23:10 +00:00 |
|
Andrew Wood
|
5aff62414a
|
Add a total stoppage time counter to the per-fd watchfd structure (#169).
|
2025-10-28 23:34:26 +00:00 |
|
Andrew Wood
|
c7a6f85dd2
|
Remove unnecessary splint annotation.
|
2025-10-28 21:39:54 +00:00 |
|
Andrew Wood
|
22e9e00f63
|
Move the array of watchfd item information into the main state, instead of being local to the watchfd loop, so that in future we can add stoppage time to individual fd info and it will be accessible to the signal handler (#169).
|
2025-10-27 20:41:32 +00:00 |
|
Andrew Wood
|
60ca91209a
|
Rename structure members for clarity - "tstp_time" becomes "when_tstp_arrived", and "toffset" becomes "total_stoppage_time".
|
2025-10-27 19:20:22 +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
|
15ed99eee7
|
Implement --query message send/receive (#101).
|
2025-10-23 23:27:34 +01:00 |
|
Andrew Wood
|
f125f41428
|
Correct the comment naming pv__target_bufsize, which should be control.target_buffer_size.
|
2025-10-23 21:26:34 +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
|
b34bba8b4a
|
Remove unused pv_remote_init, pv_remote_fini functions; add initial stubs for -Q (#101).
|
2025-10-21 23:17:23 +01:00 |
|
Andrew Wood
|
8361ed1fe2
|
Rename signal.sender to signal.sender_usr2 so it is specific to SIGUSR2 (#101).
|
2025-10-21 22:15:23 +01:00 |
|
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
|
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
|
60067ed4ea
|
Define whether --query should be available, based on the same criteria as --remote for now (#101).
|
2025-10-21 20:59:32 +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
|
17ca4fc9c9
|
Keep displaying --watchfd fds for a short time after they are closed, and don't clear the display at the end but just move the cursor past it (#81).
|
2025-10-17 20:40:14 +01:00 |
|
Andrew Wood
|
0aac6d6aac
|
Add comments and "pid_last_seen", "fd_last_seen" structure members for proposed new logic that will hold fd info on-screen a short time after closure, to retain the progress display when a watched process exits (#81).
|
2025-10-17 19:09:46 +01:00 |
|
Andrew Wood
|
61021eab6b
|
Remove the TODO markers for #81 as this work will be done in a separate branch.
|
2025-10-17 17:52:33 +01:00 |
|
Andrew Wood
|
972f8b7df8
|
Re-order no_splice and sparse_output relative to other flags to more closely match the order they appear in the manual.
|
2025-10-15 23:23:16 +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
|
6b8acd9e01
|
Add sparse_output option and control flags, and an output_not_seekable transfer flag, to structures for "sparse output" mode in future (#45).
|
2025-10-12 18:12:43 +01:00 |
|
Andrew Wood
|
72d9efc993
|
More specific TODOs for one way of implementing #81.
|
2025-10-07 22:17:10 +01:00 |
|
Andrew Wood
|
64c4e8efb9
|
Add TODO markers for one way of implementing #81.
|
2025-10-06 18:03:46 +01:00 |
|
Andrew Wood
|
25dadb2bfd
|
Add a comment describing what this structure is for.
|
2025-10-06 18:01:57 +01:00 |
|
Andrew Wood
|
be066f6c8c
|
Restrict the amount to read when --stop-at-size is active so that reads, as well as writes, never go past --size bytes (#166).
|
2025-09-30 22:27:25 +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 |
|