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 |
|
Andrew Wood
|
10ef5a8596
|
If watching more than one distinct PID with --watchfd, display the PID as well as the FD number (#12).
|
2025-09-28 16:36:06 +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
|
c49fc4aa57
|
Eliminate the fd_to_idx array in --watchfd, so that file descriptors aren't constrained to FD_SETSIZE and so we don't have to track another array.
|
2025-09-26 23:40:39 +01:00 |
|
Andrew Wood
|
7fdb6716e1
|
In the pvwatchfd_s structure, use booleans "displayable" and "unused" instead of having values of watch_pid=0 for unused and watch_fd=-1 for not displayable, so that each item only means one thing.
|
2025-09-26 23:01:07 +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
|
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
|
4a0f9e713c
|
Define struct pvwatchspec_s for future use in an array for --watchfd, and add a comment defining nullable_string_t.
|
2025-09-16 23:05:41 +01:00 |
|
Andrew Wood
|
8771b901d9
|
Add TODO markers as part of looking at supporting multiple "-d" options (#12).
|
2025-09-15 20:12:55 +01:00 |
|
Andrew Wood
|
1e6c9704b1
|
Adjustments to remove the need for the unqualifiedtrans and nullstate splint workarounds.
|
2025-09-14 16:39:47 +01:00 |
|
Andrew Wood
|
ad1d0e1c9a
|
In the watchfd info array, instead of using copies of the global state, each fd has its own flags, transfer, calc, and display sub-structures (#165).
|
2025-07-28 00:25:14 +01:00 |
|