09a55ef62a
Put the constant on the left hand side to avoid accidental assignment if an "=" is omitted (#67).
Andrew Wood2026-03-20 22:14:35 +00:00
149be3f9ab
Run the transfer main loop for the in and out monitoring sides, using another process for "out" if monitoring both (#67).
Andrew Wood2026-03-20 22:12:14 +00:00
f647b12a2d
Pass through "make indent" for consistency (#67).
Andrew Wood2026-03-20 22:11:19 +00:00
ff8e396500
Do not add the monitor command arguments as PV input files; and execute the monitor command in the monitor process (#67).
Andrew Wood2026-03-19 22:58:47 +00:00
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).
Andrew Wood2026-03-19 22:57:41 +00:00
29c65ad9e1
Set up stdin/stdout for the monitored command (#67).
Andrew Wood2026-03-18 22:28:51 +00:00
220625f370
Add TODO markers for the next steps of monitor mode (#67).
Andrew Wood2026-03-14 21:50:50 +00:00
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).
Andrew Wood2026-03-14 17:20:30 +00:00
882428883a
Remember both -N and -F values if two were given (#67).
Andrew Wood2026-03-14 14:54:53 +00:00
c2bbb8eef1
Parse the monitoring side setting from "--monitor" (#67).
Andrew Wood2026-03-14 14:28:30 +00:00
111b687449
Give "--monitor" a parameter to set which side(s) of the command to monitor (#67).
Andrew Wood2026-03-13 23:06:43 +00:00
547b52a313
Specify which command since pv is also a command.
Andrew Wood2026-03-12 21:59:01 +00:00
5f1893f094
Draft documentation and option parsing for a "--monitor" option to run a command and monitor its input and output (#67).
Andrew Wood2026-03-11 23:37:09 +00:00
a33ee8ef26
Avoid a comparison of signed and unsigned values.
Andrew Wood2026-03-09 20:28:05 +00:00
6d8fbbf848
fix discard const qualifier from pointers
heitbaum2026-03-09 01:27:04 +01:00
6e45fe0f8d
Update translations count for Finnish.
Andrew Wood2025-11-22 15:07:31 +00:00
8d7ced4195
Merge pull request 'Translations update from Codeberg Translate' (#175) from translate/pv:weblate-pv-pv into main
Andrew Wood2025-11-22 16:07:08 +01:00
10bc46af6e
Suppress by source file name rather than function name, since in an LTO build the function name is optimised out (#174).
Andrew Wood2025-11-21 23:26:52 +00:00
a6f72cf985
Merge pull request 'Translations update from Codeberg Translate' (#173) from translate/pv:weblate-pv-pv into main
Andrew Wood2025-11-21 06:46:29 +01:00
ca7997fe7d
Use the new watchfd_count to size the array, not the one we just zeroed, otherwise multiple --watchfd arguments result in a memory error (#170)
Andrew Wood2025-11-12 14:31:22 +00:00
94b8b8625f
Bump minor version, since there is a new feature.
Andrew Wood2025-10-31 19:47:07 +00:00
282823f660
Correct the stub functions used when PV_REMOTE_CONTROL is not set.
Andrew Wood2025-10-30 22:54:02 +00:00
a5fd8d662e
Version bump, and mention the fix to timer behaviour when "--watchfd" is paused and resumed (#169).
Andrew Wood2025-10-30 21:18:26 +00:00
2904eacefe
Use the per-fd stoppage time rather than the global one (#169).
Andrew Wood2025-10-29 21:31:23 +00:00
5d538da63a
Add the stoppage time to the each of currently watched fds' counters (#169).
Andrew Wood2025-10-29 21:30:43 +00:00
fdfceb79c6
Add a TODO marker for next planned steps.
Andrew Wood2025-10-28 23:34:42 +00:00
5aff62414a
Add a total stoppage time counter to the per-fd watchfd structure (#169).
Andrew Wood2025-10-28 23:34:26 +00:00
c7a6f85dd2
Remove unnecessary splint annotation.
Andrew Wood2025-10-28 21:39:54 +00:00
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).
Andrew Wood2025-10-27 20:41:32 +00:00
60ca91209a
Rename structure members for clarity - "tstp_time" becomes "when_tstp_arrived", and "toffset" becomes "total_stoppage_time".
Andrew Wood2025-10-27 19:20:22 +00:00
8c440b5417
Move remote.c, line position updates, and new strings for --query / --remote option parsing.
Andrew Wood2025-10-26 13:19:43 +00:00
07e6255e7e
Version bump, and mention the new "--query" option (#101).
Andrew Wood2025-10-26 13:14:28 +00:00
42cf7ed628
Move the remote control code into the pv library.
Andrew Wood2025-10-26 12:55:15 +00:00
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.
Andrew Wood2025-10-26 12:53:51 +00:00
528889888c
Always calculate the elapsed transfer time every time around the loop, even if not displaying anything; and take -W into account so the elapsed time doesn't start ticking up until the first byte or line transferred, even if not displaying anything - so that -Q will report the right thing when querying a "pv -n" (#101).
Andrew Wood2025-10-26 12:06:32 +00:00
e6e6ab3b6d
Consolidate repeated code into new pv__elapsed_transfer_time function.
Andrew Wood2025-10-26 11:49:35 +00:00
d2d3ec1cde
Add a TODO marker for the next step.
Andrew Wood2025-10-26 01:35:53 +01:00
f518257bc9
Consolidate repeated code into new pv__show_stats function.
Andrew Wood2025-10-25 22:49:33 +01:00
96a411671c
Consolidate repeated code into new pv__resize_display_on_signal function.
Andrew Wood2025-10-25 00:43:59 +01:00
f07a7b1c87
Correct the noise interrupting the display of the original pv if the querying pv is terminated. Correct the transfer of size information to main() so that ETA can still be shown. (#101)
Andrew Wood2025-10-24 09:24:31 +01:00
7598b4d46c
Add pv_query_loop() to run a main loop watching another pv (#101).
Andrew Wood2025-10-24 09:00:10 +01:00
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).
Andrew Wood2025-10-21 23:39:17 +01:00
b34bba8b4a
Remove unused pv_remote_init, pv_remote_fini functions; add initial stubs for -Q (#101).
Andrew Wood2025-10-21 23:17:23 +01:00
4f82525c39
Correct the comment at the end of the conditional.
Andrew Wood2025-10-21 23:03:30 +01:00
a2191ff270
Mention --query where --remote was mentioned, since it has the same requirements (#101).
Andrew Wood2025-10-21 23:01:46 +01:00
8361ed1fe2
Rename signal.sender to signal.sender_usr2 so it is specific to SIGUSR2 (#101).
Andrew Wood2025-10-21 22:15:23 +01:00
9bd96614b3
Add an action type for query mode, and more TODOs to plan how it will work (#101).
Andrew Wood2025-10-21 22:11:10 +01:00
d27672b7a3
Declare pv_open_controlfile so it can be used for the query action (#101).
Andrew Wood2025-10-21 22:10:38 +01:00
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).
Andrew Wood2025-10-21 22:09:44 +01:00
8b3b61e2d3
Separate the data transfer modifier options from the alternative operating mode options.
Andrew Wood2025-10-21 21:13:27 +01:00
60067ed4ea
Define whether --query should be available, based on the same criteria as --remote for now (#101).
Andrew Wood2025-10-21 20:59:32 +01:00
de71cc2389
Prevent the use of any non-option arguments with -R or -Q (#101).
Andrew Wood2025-10-21 20:48:44 +01:00
3f1782a573
Draft manual entry, help text, and option parsing for "--query" option (#101).
Andrew Wood2025-10-20 21:17:59 +01:00
fc379727cc
Add empty unreleased line for next changes.
Andrew Wood2025-10-19 23:47:28 +01:00
0b687edfbe
Remove the obsolete build-package script, and the scripts for the release process and lab testing (which are now maintained separately at https://codeberg.org/ivarch/scripts), and add a release config file for the new release script under the same location.
Andrew Wood2025-10-19 00:20:03 +01:00