Andrew Johnson
f5b9db9583
libCom: Fix epicsString.h comparison functions
...
The string comparison functions epicsStrCaseCmp() and
epicsStrnCaseCmp() were returning incorrect results
when the strings did not match.
These functions now match their BSD equivalents, and
have working tests to confirm their operation.
2014-03-11 17:12:41 -05: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
3fd8d4515c
libCom/test: Finish converting blockingSockTest to epicsUnitTest
...
Don't call assert() from a test program,
it stops the tests from running if the assert fails.
2014-02-20 16:36:58 -06:00
Andrew Johnson
6ad61aea32
Fix missing spaces in ADDR_LIST formats.
2014-02-11 17:44:14 -06:00
Andrew Johnson
b32127c5de
libCom: Fix epicsTime::strftime() roll-over bug
...
Fractional seconds could round-up to .000 without
incrementing the integer seconds.
We can't actually do the latter, so we prevent the
roll-over and clamp at all 9's instead.
Idea from Eric Norum.
2014-01-29 16:52:22 -06:00
Andrew Johnson
97636a45e0
libCom: Remove epicsShareAPI from epicsExit APIs
...
Passing epicsExitCallAtExits into atexit() was generating
a warning about passing in a __stdcall routine pointer.
2013-12-16 14:52:29 -06:00
Andrew Johnson
a50c66b6ff
libCom/test: Added epicsEnvTest.c
...
VxWorks 6.x can make environment variables private to each
thread, which doesn't work too well.
A test failure on VxWorks explains how to change the image
configuration to fix this.
2013-12-16 12:48:25 -06:00
Andrew Johnson
197e992241
Fixed iocsh stream redirection for several commands
...
Eric provided the fixes to iocsh (empty commands would not reset
redirected streams), I fixed various commands.
2013-12-11 17:50:29 -06:00
Andrew Johnson
76e967c960
dbStatic: Fixed crash loading record of unknown type
...
Fixed segfault when dbLoadRecords tried to load a record of a
type that was not defined in its DBD files.
2013-12-04 17:37:42 -06:00
Andrew Johnson
78a4e462d5
libCom: Recognize hex literals in epicsStrtod()
...
Allows Windows and VxWorks to accept hex integers as a double.
2013-12-02 11:12:19 -06:00
Andrew Johnson
9ab6f89604
Clean up epicsExport.h includes
...
Mostly in record and device support, this commit puts
the include in the right place and moves some other
includes around to get the order right.
2013-11-20 16:21:10 -06:00
Andrew Johnson
93be1400c1
Fixed various 64-bit windows build issues.
2013-11-19 18:42:45 -06:00
Andrew Johnson
176ee926ad
cygwin: Fixed SocketSystemCallInterruptMechanism
...
Cygwin changed it back again.
2013-11-19 18:41:03 -06:00
Andrew Johnson
2d52067484
libCom: Clean up build warnings from Visual Studio.
2013-11-19 15:26:22 -06:00
Andrew Johnson
66209118f6
libCom/macLib: Don't use unsigned chars in macParseDefns()
...
These pointers are really pointing to standard chars.
2013-11-13 12:39:23 -06:00
Andrew Johnson
d6dab34ae9
Merged changes from Jeff Hill's ca-ref-man-maint branch.
...
This contains only text changes to the CA reference manual.
2013-11-07 17:57:09 -06:00
Andrew Johnson
4b44881744
db: Fixed bogus dbScan overrun warnings
...
Penalizing the 0.1 second scan thread by 0.1 seconds
guarantees another overrun in most cases...
Warning message improved.
Also added a release note for Jeff's CAS commit.
2013-10-17 17:21:26 -05:00
Jeff Hill
42f4c3a0a5
fixed potential memory leak
2013-10-17 09:23:47 -06:00
Andrew Johnson
2ad468dd38
CAref: Fix returns from ca_attach_context()
...
ECA_NORMAL was missing, ECA_ISATTACHED given twice.
2013-09-27 09:59:34 -05:00
Andrew Johnson
2d3a828acd
Fixed read-back of TSEL link
...
Reading back a .TSEL field that was originally pointed to
another record's .TIME field was exposing internal details
that didn't need to be made visible. This commit hides the
.TIME => .VAL change completely, and allows a .TSEL link
field to be saved and restored properly using autosave.
2013-09-13 11:57:18 -05:00
Andrew Johnson
4ae048572a
Added dbTemplateMaxVars variable
...
Allows users to configure dbLoadTemplate command to accept more than
100 variables or a larger string buffer for variables.
2013-09-13 11:36:52 -05:00
Andrew Johnson
01f0fdbf1e
More file permission fixes.
2013-08-19 15:46:51 -05:00
Ralph Lange
fb983fe382
CAref: typos, replace ..._event() calls with ..._subscription() (by J. Lewis Muir)
2013-08-16 17:00:13 +02:00
Andrew Johnson
ffa96d36e1
db: dbpf can now put strings to UCHAR arrays
...
Also improved the dbpf error message on value conversion failures.
Source code reformatting inside dbTest.c as well.
2013-08-01 18:10:18 -05:00
Janet Anderson
d3b6d01807
Added WIN32 system library for epicsSockResolveTest
2013-07-17 15:55:49 -05:00
Andrew Johnson
f2891d72e5
ca: Add missing template instances for VxWorks 5.5.x
2013-07-10 14:55:34 -05:00
Andrew Johnson
75a5f19d2e
IOCS_APPL_TOP must be absolute path
...
Fix a recently introduced problem where cdCommands and envParams
had TOP as a relative path (which actually worked by chance).
Also fixed a problem with convertRelease hanging when the -t
argument matched the absolute path to TOP.
2013-07-10 14:13:31 -05:00
Andrew Johnson
c187d8c13a
CAref: typo's, added missing ca_put_callback
2013-07-05 13:26:26 -05:00
Andrew Johnson
1289f99e30
rec: Additional dependencies for parallel builds.
2013-06-21 10:36:26 -05:00
Andrew Johnson
ef5d88d3e5
libCom: Back-ported aToIPAddr fix from 3.15 branch.
...
Cherry-picked 3.15 revno 12398 with some changes.
2013-06-07 17:03:55 -05:00
Andrew Johnson
93449dccb8
ca: Fix acctst.c for older C compilers
...
All declarations must still precede other statements within a block...
2013-06-07 16:08:57 -05:00
Andrew Johnson
863e8fdd3b
libCom: Fix VxWorks localtime_r() and gmtime_r() wrappers
...
Wind River changed the return value between VxWorks 6.8 and 6.9.
2013-06-07 14:35:45 -05:00
Andrew Johnson
ee9c0ba409
ca: Minor reference manual tweaks.
2013-05-28 15:07:33 -05:00
Andrew Johnson
7f82c2f32e
libCom: Added osi/os/WIN32/osdFindSymbol.c
...
Implemented by Dirk Zimoch.
2013-05-28 14:16:22 -05:00
Jeff Hill johill@lanl.gov
e0bc071de3
merged in fix for https://bugs.launchpad.net/epics-base/+bug/1179642
...
also merged in removal of c++ support for old HPUX compiler
2013-05-16 12:33:31 -06:00
Andrew Johnson
593e313fab
dbStatic: More commands accept "" or "*" to mean 'all'
...
dbDumpRecordType, dbDumpMenu and dbDumpRecord commands improved.
2013-05-09 15:48:49 -05:00
Andrew Johnson
34744264e1
libCom: Fix win32 handle leak
...
Closing an epicsThread would leak one Win32 handle.
Reported by Giles Knap, Diamond.
2013-05-06 17:29:10 -05:00
Andrew Johnson
5ac686fafd
tools: Munch support for module destructors
...
Added in VxWorks 6.9
2013-04-25 17:00:36 -05:00
Andrew Johnson
7e347b2de9
libCom: Fix sysAtReboot registration on vxWorks 6.8+
...
Removed C++ static constructor, do it from epicsThreadInit()
2013-04-24 12:52:05 -05:00
Andrew Johnson
5bc15b72a1
libCom: Add some missing #include guards.
...
There are still quite a few missing in libCom/osi/os/*
2013-04-11 12:56:56 -05:00
Andrew Johnson
f9a0c82a63
libCom/osi: Resolve bcopyLongs() conflict on vxWorks 6.9
2013-03-28 17:17:41 -05:00
Andrew Johnson
a4edc46a5f
dbStatic: Allow empty DB & DBD files
...
They used to cause a Syntax error with a bad context string.
2013-03-20 16:53:10 -05:00
Andrew Johnson
738b8ca55f
libCom: Add a High-Resolution Time Provider on MacOS
...
Since Apple don't support clock_gettime(CLOCK_REALTIME) I added a
new time provider that uses the Mach kernel Clock service to get
nanosecond resolution time.
2013-03-13 14:48:34 -05:00
Andrew Johnson
c767958539
gdd: Build tweaks
...
Remove obselete HPUX warning flags
Disable strict-aliasing to suppress warnings (RTEMS, Linux)
2013-02-11 17:49:05 -06:00
Andrew Johnson
8400e74606
Fix epicsRingPointerGetSize()
...
Definition name didn't match declaration.
Fixes lp:1109785 reported by Martin Konrad.
2013-01-29 18:02:51 -06:00
Andrew Johnson
451c4cc854
Unify #! line for Perl scripts
...
/usr/bin/env exists on all current workstation OSs.
2013-01-23 07:29:07 -06:00
Andrew Johnson
038a1140f4
Fix drift in periodic scan times.
...
Method from Eric Norum, with warnings added by me.
Fixes lp:597054
2013-01-09 18:12:30 -06:00
Jeff Hill
89d000be08
fixed problems with ca clear channel protocol during reload of the access security file.
...
See https://bugs.launchpad.net/epics-base/+bug/1091401 .
2012-12-18 14:32:12 -07:00
Jeff Hill
75e32c9086
fix for https://bugs.launchpad.net/epics-base/+bug/1090009
2012-12-13 09:35:18 -07:00
Ralph Lange
b7018dd16d
ca: Fix bug in "Firewalls" section of Channel Access reference manual
2012-12-11 23:38:42 +01:00