Michael Davidsaver
2f0e9172a4
tool_lib.c: ensure output string is always set
...
Ensure that val2str always writes to its output buffer,
which is static and shared between all PVs.
Should make bugs like lp:1418526 more obvious.
2015-02-17 10:45:30 -05:00
Andrew Johnson
727a3af59d
Merged Richard Fearn's caget-lb-zero-fix branch
...
... after some modification.
2015-02-05 11:19:30 -06:00
Richard Fearn
1a094f5971
catools: make caget -lb output '0' instead of empty string for zero value
2015-02-05 11:53:33 +01:00
Ralph Lange
49a9d64946
catools: better out-of-bounds handling when printing enums as DBR_GR/DBR_CTRL
2014-10-09 14:12:39 +02:00
Andrew Johnson
5bdd9ddca6
Windows: Fix static builds on MinGW
...
Xiaoqiang Wang proposed some fixes that allow static builds on
the MinGW targets to succeed. Some additional changes made to
blockingSockTest.cpp also clean that up.
2014-02-25 15:56:13 -06:00
Andrew Johnson
c574722a9b
catools: Fix syntax error from vxWorks gcc.
2012-09-11 15:19:29 -05:00
Ralph Lange
7e6e38060f
catools: Change behaviour of camonitor when printing array of chars as string
...
camonitor was using strlen() to find out the length of the array to print as %s string,
which led to printing old buffer contents when the array-string was not null terminated.
Now uses the minimum of strlen(), elements received, and elements requested.
Suggested by Mark Rivers on tech-talk (11 Sep 2012)
2012-09-11 16:58:43 +02:00
Ralph Lange
709b6ef2f3
catools: Fix off-by-one bug in caput
...
An internal buffer was allocated one char too short, when caput was used
with the '-S' (send string as array of chars) option.
Reported by J. Lewis Muir (tech-talk on 17-Aug-2012)
2012-09-03 21:25:44 +02:00
Andrew Johnson
8ed86967d1
Don't build command-line programs for iOS targets.
2012-03-30 15:52:19 -05:00
Andrew Johnson
b5ec6e2448
catools: Edited camonitor help text.
2011-11-21 12:30:02 -06:00
Andrew Johnson
b36b07db9e
Clean up some compiler warnings reported by J. Lewis Muir.
2011-11-07 11:58:09 -06:00
Andrew Johnson
ee95f0c4b7
catools: Fix array handling in caget and camonitor.
...
Fixes lp:794749
2011-11-02 11:26:29 -05:00
Ralph Lange
14e7111e72
catools: Fixed caget (w/o -c) always fetching max. array count
2011-08-25 17:41:53 +02:00
Andrew Johnson
1584f98e26
catools: Disable stdout buffering on Windows
...
Line buffering is not supported on Windows 7.
2011-04-19 14:21:38 -05:00
Ralph Lange
3ca705752a
catools: Fix help text for "-s" option (also in CA RefMan)
2010-11-24 13:31:47 -05:00
Andrew Johnson
a5d4572691
catools: Build on all archs except vxWorks and RTEMS.
...
Was only building on HOST, now does cross-builds too.
2010-10-27 10:30:41 -05:00
Ralph Lange
cbe2938628
catools: Fix caput so it can write enums w/o strings
2010-09-28 13:38:59 -04:00
Michael Abbott
aa23ab63f1
Add autosizing array support for caget and camonitor.
2010-08-11 16:39:52 -05:00
Ralph Lange
c8470a2473
Added -l.. commandline options to catools (by Stephanie Allison)
2009-12-15 22:05:55 +00:00
Andrew Johnson
1ea4b4414a
Memory allocation checks from Micheal Davidsaver.
2009-05-05 15:35:05 +00:00
Ralph Lange
2e8595f17f
Fix: caput quits when connection fails (catools)
2009-04-03 19:46:32 +00:00
Ralph Lange
f30a89d249
Remove CVS Id that causes just too much trouble.
2009-04-03 14:37:59 +00:00
Ralph Lange
40d0942a81
Remove fake BNL copyright notice until we have a license agreement.
2009-04-03 14:33:37 +00:00
Ralph Lange
e18eb714a8
Print OFS for empty (suppressed) STAT/SEVR fields (catools)
2009-04-02 18:52:59 +00:00
Ralph Lange
b1556bd871
New DBE_PROPERTY event type and support in catools and mbbi/mbbo records
2009-04-02 15:51:30 +00:00
Ralph Lange
f156474714
Fix: Print indentation (catools)
2009-04-02 15:39:13 +00:00
Ralph Lange
e484093493
Bugfixes plus added support for escaping non-printables and field separator to CA commandline tools.
2009-04-02 02:14:33 +00:00
Ralph Lange
6a17b86743
Added support for handling strings as arrays of char (aka long strings); new -S option switches this feature.
...
Fixed some inconsistencies with data print formats for enums and arrays.
2009-03-31 19:39:06 +00:00
Ralph Lange
c5773eafb4
Added -p option to specify CA priority.
2008-11-14 13:03:25 +00:00
Ralph Lange
af2b7a3ef2
Fix: Don't print space after single value, only between values of an array
2008-10-06 15:51:51 +00:00
Ralph Lange
442633fc87
Minor fix in help message.
2008-09-29 14:11:59 +00:00
Ralph Lange
84f56e57f4
Changed timestamp related commandline options, added choice of client and/or server timestamps.
2008-09-29 14:10:51 +00:00
Andrew Johnson
aa9b36d7f9
Cosmetic.
2008-09-23 20:23:30 +00:00
Andrew Johnson
9c106ce023
Fixed possible race condition storing callback status.
2008-07-23 16:31:10 +00:00
Ralph Lange
73e17ac32a
Applied caput patches from Andy Foster; updated usage infos to match
2008-04-17 02:31:36 +00:00
Andrew Johnson
cda58de74a
Win32 doesn't support line buffering, so fflush after every printf.
2007-01-25 21:21:05 +00:00
Ralph Lange
402d22eac6
Patches for max array size determination as suggested by Malcolm Waters (Diamond).
2006-06-07 07:24:19 +00:00
Ralph Lange
2bed5dd8bf
Fixed comment.
2006-06-07 07:20:01 +00:00
Ralph Lange
85eacf584c
Integrating change by Malcolm Waters: fix for "-c -w 0" hanging forever
2006-02-06 16:08:04 +00:00
Ralph Lange
d6b6955903
Integrating change by Malcolm Waters: += put_callback option - heavily based on caget
2006-02-06 16:04:55 +00:00
Jeff Hill
5d31c721ad
fixed msvc++ 8 assert failure.
...
I had a closer look at the MS and the POSIX doc. It appears that
there is confusion between the two related to how the arguments
are interpreted when the user buffer pointer is null. In the POSIX
doc it clearly states that the count only applies if the user pointer
isn't nill. In the MS doc it clearly states that the count is also the
size of the internally allocated buffer when the user pointer is nill.
It seems that a reasonable compromise will be to specify a buffer
size of BUFSIZ (defined by POSIX and fortunately also by windows).
2005-11-29 17:05:00 +00:00
Ralph Lange
4c302621e2
Use separate flag for once_connected state; += as-string option.
2004-10-19 15:27:51 +00:00
Ralph Lange
22ef6a9653
Use separate flag for once_connected state.
2004-10-19 15:20:34 +00:00
W. Eric Norum
0dc034962c
Use epicsScanFloat/epicsScanDouble rather than sscanf.
...
This allows proper handling of Nan/Inf on all architectures.
2004-10-12 17:45:31 +00:00
W. Eric Norum
4f731caf14
Add os-independent epicsStrtod() routine.
2004-10-11 18:22:12 +00:00
Ralph Lange
b04811e146
Use correct option character. optopt is valid only when getopt returns '?'.
2004-09-24 11:38:10 +00:00
Ralph Lange
6c12088e2a
+= connection status reporting (based on Jeff's suggestions plus timestamps for connection loss events)
2004-09-23 15:47:57 +00:00
cvs2svn
ce1be263d5
This commit was manufactured by cvs2svn to create branch 'B3.14'.
2004-07-07 16:03:49 +00:00
W. Eric Norum
44c358d6bd
Use correct option character. optopt is valid only when getopt returns '?'.
2004-07-06 03:01:11 +00:00
Ralph Lange
1c594c2522
Warning fix.
2004-05-28 11:33:11 +00:00