c9dede08d4
Adjust the decimal units flag variable name from "si" to "decimal_units" so it does not overlap with other words like "size" and "signal"; add man page entry and adjust the "-L" man page entry; and allow this flag to also change how input prefixes are processed.
Andrew Wood2024-03-19 22:17:43 +00:00
3eee7a1409
Addressed more issues raised by flawfinder.
Andrew Wood2023-10-22 17:43:40 +01:00
e446782c1f
Addressed more issues raised by splint, and refactored out state_array so that state is part of info_array and each state is allocated and deallocated properly instead of referencing pointers multiple times.
Andrew Wood2023-10-22 16:23:53 +01:00
b4d6c5ed2a
Addressed more issues raised by splint, and improved variable names and comments.
Andrew Wood2023-10-15 23:42:04 +01:00
d8e0674da0
Move locally scoped variables from "switch" statement into outer "for" loop, to avoid triggering a crash in the "splint" code analyser.
Andrew Wood2023-10-15 22:29:37 +01:00
b0df2e53a8
Replace str_* in state structure with an array of components of enumerated types, to avoid pointers everywhere in the format array and to allow for later expansion which will separate "string length" from "displayed width" to allow for wide character support.
Andrew Wood2023-10-14 17:18:20 +01:00
94ffdaf60d
Group state structure into sub-structures to allow future changes to watchpid code that will do a better job of duplicating the relevant parts of the internal state for each fd.
Andrew Wood2023-10-14 01:23:54 +01:00
dbf55eff3c
For message passing for "--remote", fall back to $HOME/.pv instead of /tmp if /run/user/<uid> is unavailable.
Andrew Wood2023-10-01 12:41:27 +01:00
07f894f66c
Minor formatting change from "indent".
Andrew Wood2023-10-01 12:40:22 +01:00
a9737ca05e
Correct the test skip reason message, if "--remote" is not supported.
Andrew Wood2023-10-01 01:50:52 +01:00
0e1750835e
Rewrite of "--remote", to use a temporary file for information exchange instead of a SysV IPC message queue, to correct the fault where "make check -j32" would fail due to every PV exit removing the message queue.
Andrew Wood2023-10-01 01:20:16 +01:00
b0a144fd54
Move variable declarations into the blocks in which they are used, to avoid compilation warnings on MacOS, as per patch from Benoit Pierre.
Andrew Wood2023-09-25 21:14:30 +01:00
bfa4a23751
Move struct stat in pv_main_loop inside the #if HAVE_STRUCT_STAT_ST_BLKSIZE block to avoid compilation warnings, as per patch from Benoit Pierre.
Andrew Wood2023-09-25 21:07:24 +01:00
7c6568865c
Move smb_bug in pv_crs_fini inside the #if HAVE_IPC block so the code can compile on non IPC systems, as per patch from Benoit Pierre.
Andrew Wood2023-09-25 21:03:19 +01:00
20b8c9700a
Rename the functions to better describe what they do, remove single-letter variable names, add more explanatory comments, remove "_t" suffix from typedef as per FreeBSD style guide.
Andrew Wood2023-09-16 00:55:40 +01:00
b1b5e9197a
Version and string position updates.
Andrew Wood2023-09-14 22:40:52 +01:00
252213fbc2
Addressed more issues raised by splint, and corrected some type confusion between off_t and size_t / ssize_t.
Andrew Wood2023-09-14 22:19:49 +01:00
e696b737e3
Addressed more issues raised by splint.
Andrew Wood2023-09-13 23:50:20 +01:00
153285bec0
Use off_t for file sizes, size_t for buffer sizes.
Andrew Wood2023-09-13 23:17:53 +01:00
89f81bb7d6
Reverted bug report address to the email address, keeping it independent of the development repository in case we have to move again; made some minor man page corrections; updated po files to match changes in source.
Andrew Wood2023-09-04 20:39:04 +01:00
52399ee812
Address some of the warnings raised by splint.
Andrew Wood2023-09-03 22:12:18 +01:00
7f735b7282
Added TODO to re-check timespec casting.
Andrew Wood2023-09-03 21:42:46 +01:00
8e781e0b51
Enforce zero-termination of dst even if system strlcat() is available.
Andrew Wood2023-09-03 21:42:09 +01:00