Commit Graph

16599 Commits

Author SHA1 Message Date
Andrew Johnson 0dc2746d68 libCom: Added echo command to iocsh 2014-02-21 15:49:15 -06:00
Andrew Johnson 1a70f1e347 libCom: Added macro EPICS_UNUSED to compilerDependencies.h
Stop unnecessary warnings.
2014-02-20 18:05:42 -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
Janet Anderson b24d7c6da6 Allow user specified db substitution file suffix. 2014-02-20 15:03:23 -06:00
Andrew Johnson 84426ea334 templates: Unify PV name prefixes, remove "Host"
The difference between host IOCs and embedded ones does not
justify having a different prefix.
2014-02-18 18:32:29 -06:00
Eric Norum 52f654a5a3 templates: Make st.cmd templates safe against spaces in TOP. 2014-02-18 18:21:15 -06:00
Janet Anderson 83fa03dd40 Allow user specified substitution file suffix (from Dirk Zimoch) 2014-02-17 10:20:00 -06:00
Andrew Johnson a591857c30 configure: Fixes to iOS build rules
From Tom Pelaia, these should now allow compiles for the
x86-based simulator as well as for ARM-based devices.
2014-02-17 10:12:53 -06:00
Ralph Lange 6ad30c92bb ca/legacy/pcas: fix compiler warnings (different signedness in comparison) 2014-02-16 19:29:58 +01:00
zimoch a3354f5db9 libCom: NTP Time Provider adjusts to OS tick rate changes
Allow the NTP Time provider (used on VxWorks and RTEMS only)
to adapt to changes in the OS clock tick rate after the provider
has been initialized.

Changing the tick rate after iocInit() is not advisable,
other software might still misbehave if initialized before
an OS tick rate change.
2014-02-13 10:09:12 -06:00
Andrew Johnson 0b374ef8a6 doc: Add newEpicsMutex to Release Notes. 2014-02-13 09:59:10 -06:00
Andrew Johnson 6ad61aea32 Fix missing spaces in ADDR_LIST formats. 2014-02-11 17:44:14 -06:00
Andrew Johnson e1e389a2dd Low-memory behaviour fixes.
Fix unchecked buffer allocation in dbChannel.c
Replace calls to epicsStrDup() with checked malloc() for
things that happen often after iocInit.

Michael Davidsaver pointed out this issue.
2014-02-07 17:19:28 -06:00
Andrew Johnson 502366fdc3 epicsMutex C++ API: New constructor and newEpicsMutex macro
The new constructor accepts source file & line number.
The macro passes these in.
2014-02-07 14:13:12 -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
Michael Davidsaver 428268a71e rsrv: avoid strlen() on possible unterminated strings
Detect these w/o risk of SIGSEGV
2014-01-11 10:59:57 -05:00
Michael Davidsaver 746c739769 add epicsStrnLen()
Base currently requires only POSIX 2001 while
strnlen() is part of POSIX 2008.
2014-01-11 10:58:39 -05:00
Andrew Johnson 3f0e633fd1 dbStatic: Clean up warning on darwin 2013-12-20 09:59:49 -06:00
Andrew Johnson d35447fa0d configure: 3.14 merge broke darwin builds, fixing... 2013-12-20 09:57:39 -06:00
Andrew Johnson 0c52d41e95 db/test: Tell Win32 to only print 2-digit exponents
By default the MS libraries print 3-digit exponents,
whereas the ANSI standard is for 2-digits.
2013-12-17 17:41:13 -06:00
Andrew Johnson dbb8d232ee libCom/test: Losen the timer error threshold.
Windows was consistently failing the fastest timer tests.
2013-12-17 17:13:27 -06:00
unknown b93601bc22 libCom/test: epicsStrGlobMatch() tests 2013-12-17 16:37:46 -06:00
Andrew Johnson 9e37ab649b libCom: Clear up warnings from VxWorks 6.9. 2013-12-17 14:19:18 -06:00
Andrew Johnson 0a2020e2fc Merged changes from 3.14 branch
Up to 3.14.12.4 release.
2013-12-17 12:54:04 -06:00
Andrew Johnson bfde24907c doc: Prepare release notes for 3.14.12.5
In case there ever is one.
2013-12-16 17:29:30 -06:00
Janet Anderson da6228f135 Set snapshot to 3.14.12.4-DEV 2013-12-16 16:16:34 -06:00
Janet Anderson 3009091875 Creating R3.14.12.3 R3.14.12.4 2013-12-16 15:51:45 -06:00
Janet Anderson 6a0d5e0e87 Changed EPICS to Release 3.14.12.4 2013-12-16 15:48:54 -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 88ae947c84 configure: Refined how/when we pull in <top>/cfg files
Only read CONFIG* and RULES* files,
and only do so in build dirs, i.e. when T_A is defined.
2013-12-13 16:04:01 -06:00
Andrew Johnson 22540ac743 docs: Release note update.
Credit Peter Heesterman with windows build updates.
2013-12-11 18:11:51 -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 b0cf5c256a startup: Add cygwin-x86_64 to EpicsHostArch.pl script 2013-12-10 16:28:08 -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 25f70a1bd7 Merged Michael's postdbeprop branch. 2013-12-04 12:58:31 -06:00
Andrew Johnson 4ac35ab85c docs: iPhone Simulator builds broken by Xcode 5
From Mark Engbretson, no known solution yet.
2013-12-04 10:37:44 -06:00
Janet Anderson 4209abe2cf Set snapshot to 3.14.12.4-rc1-DEV 2013-12-02 14:12:45 -06:00
Janet Anderson 90d1d9568c Creating 3.14.12.4-rc1 R3.14.12.4-rc1 2013-12-02 13:56:17 -06:00
Janet Anderson 082df89090 Creating 3.14.12.4-rc1 2013-12-02 13:54:20 -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
Michael Davidsaver 841d66993a test epicsMMIO.h
Check byte order swapping.
2013-11-30 16:40:07 -05:00
Michael Davidsaver d24ed309e9 fix copyright header 2013-11-30 15:31:59 -05:00
Michael Davidsaver 7adb9c3881 update release notes 2013-11-30 15:29:10 -05:00
Michael Davidsaver 55c89335fd update release notes 2013-11-30 14:47:01 -05:00
Andrew Johnson aab841e279 configure: Added 'host' make target.
Builds only the current host architecture, so this is
equivalent to the target install.$EPISC_HOST_ARCH
2013-11-22 11:44:42 -06:00
Jeff Hill b38e48642e probably fixed PPC build (its not easy to test this here) 2013-11-20 17:55:44 -07:00
Andrew Johnson bd82554299 Set snapshot to 3.14.12.4-pre1-DEV 2013-11-20 18:03:16 -06:00
Andrew Johnson 1a3e7414b3 Creating 3.14.12.4-pre1 R3.14.12.4-pre1 2013-11-20 18:02:28 -06:00
Andrew Johnson 773eb1b33d Clean up array subscript has type ‘char’ warnings. 2013-11-20 17:28:41 -06:00