Commit Graph

  • 09a55ef62a Put the constant on the left hand side to avoid accidental assignment if an "=" is omitted (#67). Andrew Wood 2026-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 Wood 2026-03-20 22:12:14 +00:00
  • f647b12a2d Pass through "make indent" for consistency (#67). Andrew Wood 2026-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 Wood 2026-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 Wood 2026-03-19 22:57:41 +00:00
  • 29c65ad9e1 Set up stdin/stdout for the monitored command (#67). Andrew Wood 2026-03-18 22:28:51 +00:00
  • f84a668098 Fork for the command to monitor (#67). Andrew Wood 2026-03-17 23:41:23 +00:00
  • 06721c7be1 Create pipes for monitoring (#67). Andrew Wood 2026-03-14 22:34:17 +00:00
  • bd70b0c6cb Set exit status for --monitor errors (#67). Andrew Wood 2026-03-14 22:33:52 +00:00
  • 220625f370 Add TODO markers for the next steps of monitor mode (#67). Andrew Wood 2026-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 Wood 2026-03-14 17:20:30 +00:00
  • 882428883a Remember both -N and -F values if two were given (#67). Andrew Wood 2026-03-14 14:54:53 +00:00
  • c2bbb8eef1 Parse the monitoring side setting from "--monitor" (#67). Andrew Wood 2026-03-14 14:28:30 +00:00
  • 111b687449 Give "--monitor" a parameter to set which side(s) of the command to monitor (#67). Andrew Wood 2026-03-13 23:06:43 +00:00
  • 547b52a313 Specify which command since pv is also a command. Andrew Wood 2026-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 Wood 2026-03-11 23:37:09 +00:00
  • a33ee8ef26 Avoid a comparison of signed and unsigned values. Andrew Wood 2026-03-09 20:28:05 +00:00
  • 6d8fbbf848 fix discard const qualifier from pointers heitbaum 2026-03-09 01:27:04 +01:00
  • d28d2f3155 Address the splint warning due to not recognising strlcat(). v1.10.4 Andrew Wood 2026-03-08 11:23:08 +00:00
  • 9566e7d7ea Run through "make indent" for consistency. Andrew Wood 2026-03-08 11:21:38 +00:00
  • c39601bbb2 Datestamp updates. Andrew Wood 2026-03-08 11:20:54 +00:00
  • e3fcc6ae71 Commit to release date. Andrew Wood 2026-03-08 11:19:21 +00:00
  • 9c18fecb98 Acknowledge #179. Andrew Wood 2026-03-08 11:10:10 +00:00
  • 521391a495 Version bump. Andrew Wood 2026-03-07 23:23:35 +00:00
  • f65caacfca Version bump, and note the change to "--size @x" (#179). Andrew Wood 2026-03-07 23:23:13 +00:00
  • 0a27a85b4a Update the copyright years. Andrew Wood 2026-03-07 23:20:20 +00:00
  • d186d618e3 Look up the right maxfds value to use with nftw() for the current system (#179). Andrew Wood 2026-03-07 23:15:09 +00:00
  • ae97565e13 Message line number updates. Andrew Wood 2026-03-07 23:14:23 +00:00
  • d028d5165c Make the gettext macros behave on Debian 13. Andrew Wood 2026-03-07 22:34:28 +00:00
  • e17f64fce7 Allow "--size @dir" to read the size of all files under "dir" (#179). Andrew Wood 2026-03-07 22:23:10 +00:00
  • e4bc770054 Timestamp update. v1.10.3 Andrew Wood 2025-12-15 20:11:17 +00:00
  • a890e8e0c8 Update version and release date. Andrew Wood 2025-12-15 20:09:56 +00:00
  • 3af38221ee Correct the process title truncation. Andrew Wood 2025-12-12 23:12:03 +00:00
  • 579aebf6a7 Date update. v1.10.2 Andrew Wood 2025-11-22 15:08:13 +00:00
  • d91bf78cac Timestamp update. Andrew Wood 2025-11-22 15:08:00 +00:00
  • 6e45fe0f8d Update translations count for Finnish. Andrew Wood 2025-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 Wood 2025-11-22 16:07:08 +01:00
  • cae6049edd Translated using Weblate (Finnish) artnayandCodeberg Translate 2025-11-22 07:28:15 +00:00
  • 1293f70575 Link to the Debian bug as well, and commit to a release date. Andrew Wood 2025-11-22 15:03:53 +00:00
  • ff412009da Version bump for #174. Andrew Wood 2025-11-21 23:27:47 +00:00
  • 10bc46af6e Suppress by source file name rather than function name, since in an LTO build the function name is optimised out (#174). Andrew Wood 2025-11-21 23:26:52 +00:00
  • 1e5fae3b7b Note the Finnish translations. Andrew Wood 2025-11-21 05:53:21 +00:00
  • a6f72cf985 Merge pull request 'Translations update from Codeberg Translate' (#173) from translate/pv:weblate-pv-pv into main Andrew Wood 2025-11-21 06:46:29 +01:00
  • e617b92f2b Translated using Weblate (Finnish) artnayandCodeberg Translate 2025-11-20 22:05:39 +00:00
  • b24771d224 Added empty Georgian language file as requested. Andrew Wood 2025-11-20 21:18:50 +00:00
  • 6de160192a Renamed to something more specific. Andrew Wood 2025-11-15 15:37:43 +00:00
  • 72774e34ff Timestamp update. v1.10.1 Andrew Wood 2025-11-12 15:03:02 +00:00
  • 4ab9536733 Set the release date. Andrew Wood 2025-11-12 14:56:16 +00:00
  • bd9af0421c Note the fix for --watchfd with multiple arguments (#170). Andrew Wood 2025-11-12 14:32:49 +00:00
  • 7ba474509c Version bump. Andrew Wood 2025-11-12 14:32:39 +00:00
  • ac13765fa5 Test --watchfd with more than one argument (#170). Andrew Wood 2025-11-12 14:31:57 +00: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 Wood 2025-11-12 14:31:22 +00:00
  • 22b729f9ea Datestamp update. Andrew Wood 2025-11-09 22:27:57 +00:00
  • 864895f8f2 Commit to release date. v1.10.0 Andrew Wood 2025-11-07 23:08:21 +00:00
  • 5d185398ac Position updates. Andrew Wood 2025-10-31 19:48:12 +00:00
  • 94b8b8625f Bump minor version, since there is a new feature. Andrew Wood 2025-10-31 19:47:07 +00:00
  • 282823f660 Correct the stub functions used when PV_REMOTE_CONTROL is not set. Andrew Wood 2025-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 Wood 2025-10-30 21:18:26 +00:00
  • 2904eacefe Use the per-fd stoppage time rather than the global one (#169). Andrew Wood 2025-10-29 21:31:23 +00:00
  • 5d538da63a Add the stoppage time to the each of currently watched fds' counters (#169). Andrew Wood 2025-10-29 21:30:43 +00:00
  • fdfceb79c6 Add a TODO marker for next planned steps. Andrew Wood 2025-10-28 23:34:42 +00:00
  • 5aff62414a Add a total stoppage time counter to the per-fd watchfd structure (#169). Andrew Wood 2025-10-28 23:34:26 +00:00
  • c7a6f85dd2 Remove unnecessary splint annotation. Andrew Wood 2025-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 Wood 2025-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 Wood 2025-10-27 19:20:22 +00:00
  • 8c440b5417 Move remote.c, line position updates, and new strings for --query / --remote option parsing. Andrew Wood 2025-10-26 13:19:43 +00:00
  • 07e6255e7e Version bump, and mention the new "--query" option (#101). Andrew Wood 2025-10-26 13:14:28 +00:00
  • 82283ee434 Remove the TODO now it is done. Andrew Wood 2025-10-26 12:56:28 +00:00
  • 42cf7ed628 Move the remote control code into the pv library. Andrew Wood 2025-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 Wood 2025-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 Wood 2025-10-26 12:06:32 +00:00
  • e6e6ab3b6d Consolidate repeated code into new pv__elapsed_transfer_time function. Andrew Wood 2025-10-26 11:49:35 +00:00
  • d2d3ec1cde Add a TODO marker for the next step. Andrew Wood 2025-10-26 01:35:53 +01:00
  • f518257bc9 Consolidate repeated code into new pv__show_stats function. Andrew Wood 2025-10-25 22:49:33 +01:00
  • 96a411671c Consolidate repeated code into new pv__resize_display_on_signal function. Andrew Wood 2025-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 Wood 2025-10-24 09:24:31 +01:00
  • 7598b4d46c Add pv_query_loop() to run a main loop watching another pv (#101). Andrew Wood 2025-10-24 09:00:10 +01:00
  • 15ed99eee7 Implement --query message send/receive (#101). Andrew Wood 2025-10-23 23:27:34 +01:00
  • 4df6fbf6f7 Mention that the --query PID needs to be owned by the same user (#101). Andrew Wood 2025-10-23 22:02:59 +01:00
  • f125f41428 Correct the comment naming pv__target_bufsize, which should be control.target_buffer_size. Andrew Wood 2025-10-23 21:26:34 +01:00
  • 2e9fc77ccd Add -Q to the remote check comments (#101). Andrew Wood 2025-10-22 17:55:43 +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 Wood 2025-10-21 23:39:17 +01:00
  • b34bba8b4a Remove unused pv_remote_init, pv_remote_fini functions; add initial stubs for -Q (#101). Andrew Wood 2025-10-21 23:17:23 +01:00
  • 4f82525c39 Correct the comment at the end of the conditional. Andrew Wood 2025-10-21 23:03:30 +01:00
  • a2191ff270 Mention --query where --remote was mentioned, since it has the same requirements (#101). Andrew Wood 2025-10-21 23:01:46 +01:00
  • 8361ed1fe2 Rename signal.sender to signal.sender_usr2 so it is specific to SIGUSR2 (#101). Andrew Wood 2025-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 Wood 2025-10-21 22:11:10 +01:00
  • d27672b7a3 Declare pv_open_controlfile so it can be used for the query action (#101). Andrew Wood 2025-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 Wood 2025-10-21 22:09:44 +01:00
  • 8b3b61e2d3 Separate the data transfer modifier options from the alternative operating mode options. Andrew Wood 2025-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 Wood 2025-10-21 20:59:32 +01:00
  • de71cc2389 Prevent the use of any non-option arguments with -R or -Q (#101). Andrew Wood 2025-10-21 20:48:44 +01:00
  • 3f1782a573 Draft manual entry, help text, and option parsing for "--query" option (#101). Andrew Wood 2025-10-20 21:17:59 +01:00
  • fc379727cc Add empty unreleased line for next changes. Andrew Wood 2025-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 Wood 2025-10-19 00:20:03 +01:00
  • 546074853e Datestamp update. v1.9.44 Andrew Wood 2025-10-18 19:35:10 +01:00
  • 7deef78ea5 Set the release date. Andrew Wood 2025-10-18 19:32:44 +01:00
  • a38e05e749 Datestamp update. Andrew Wood 2025-10-18 17:09:30 +01:00
  • 493634e26c Cover more of the features in the description. Andrew Wood 2025-10-17 23:49:08 +01:00
  • f96a43e366 Line number updates. Andrew Wood 2025-10-17 23:22:33 +01:00