Michael Davidsaver
d7269f9d80
Revert "dbBkpt: atexit"
2014-11-18 14:56:45 -05:00
Michael Davidsaver
58cd1d0a71
errlog: Don't free globals.
...
Since the pvtData.atExit flag doesn't prevent all
concurrent use of the pvtData struct we can't safely
free it.
2014-11-18 14:48:15 -05:00
Michael Davidsaver
e4954ba26a
dbLock: remove dbLockExit()
...
No benefit to freeing global locks in unittests,
and this could cause problems with normal IOC
shutdown.
2014-11-18 14:48:15 -05:00
Andrew Johnson
60a5c476b3
Fix single-element array problem
...
An array field with a maximum size of 1 element would not be
treated as an array, so the record's rset::get_array_info()
routine wasn't being called. Fixed in dbAccess for both
dbGet() and dbPut() operations, and in dbEvent for monitors.
Fixes lp:1389298
2014-11-18 11:10:01 -06:00
Michael Davidsaver
9e63a51707
pcas: avoid reinterpret_cast with sockaddr
...
Avoid warning about breaking aliasing rules
2014-11-18 11:48:53 -05:00
Michael Davidsaver
93149071b7
dbNotify: shutdown with exitDatabase
...
Can't cleanup dbNotify while rsrv or scan tasks
are running as there may be operations in progress.
2014-11-18 11:25:15 -05:00
Michael Davidsaver
9c2a62ea96
dbChannel: shutdown from exitDatabase()
...
Can't cleanup dbChannel while rsrv or scan tasks
remain running.
2014-11-18 11:25:15 -05:00
Ralph Lange
ac2ff29abb
libCom/log: make iocLog client unregister its listener from errlog on shutdown
2014-11-18 15:23:14 +01:00
Michael Davidsaver
f9d0fd351d
libCom/test: fix ringPointerTest compile issues on vxWorks and MSVC
...
Remove C GNU-isms
1) mixing code/variable defs
2) arithmetic on void*
2014-11-17 18:55:47 -05:00
Michael Davidsaver
66fbbbb19a
libCom/test: re-write ringPointerTest
2014-11-17 16:51:57 -05:00
Michael Davidsaver
924350b362
epicsExit: add epicsExitLater() to trigger process exit without blocking
2014-11-13 11:58:35 -05:00
Michael Davidsaver
d35780888a
iocInit: only teardown from iocBuildIsolated()
...
iocShutdown() should only stop threads and cleanup
if the IOC was started with iocBuildIsolated().
If iocBuild() is used then only close CA links
as was done previously.
This is needed as some device support calls epicsExit()
(while holding a record lock). This make it impossible
to run the full iocShutdown without deadlocking
in scan/callback shutdown, or segfaulting
in doFreeRecord() or dbLockCleanupRecords()
2014-11-13 11:58:35 -05:00
Andrew Johnson
f7cc0e2d09
Various build system issues
...
* Removed broken Windows source browser rules and 'browse' targets
* Fixed parallel build issue for Make > 3.81
* Other tidying-up in RULES_ARCHS
* Fix the RTEMS override of the ECHO variable
2014-11-12 16:36:39 -06:00
Andrew Johnson
69daab81d5
Fix tests after menuScan changes
2014-11-10 17:27:38 -06:00
Andrew Johnson
3aa5d2adee
ioc/db menu fixes
...
* Move including menuScan.dbd from menuGlobal.dbd to base.dbd.
Menus included in menuGlobal.dbd can't be overridden at build
time since it gets fully expanded before installation.
* Convert .dbd.pod files before generating menuGlobal.dbd.d
* Remove menuCompress.dbd, nothing in Base uses it any more.
The compress record has its own compressALG menu
2014-11-10 16:15:52 -06:00
Andrew Johnson
574bac67b4
CAref reformatting/prettification from 3.14
2014-11-08 10:22:03 -06:00
Andrew Johnson
3d03822043
CAref reformatting/prettification
2014-11-08 10:19:59 -06:00
Andrew Johnson
6f7fc7bf8e
Merged changes from 3.14 branch
...
Up to revno 12504.
2014-11-07 15:57:13 -06:00
J. Lewis Muir
0d0ac88242
doc: Fix typos in CA reference manual
2014-11-07 14:56:41 -06:00
Andrew Johnson
2ab2470317
Fix epicsStrtod() implementation to detect overflow
...
The VxWorks version of strtod() that we use returns Inf
instead of setting errno on overflow.
2014-11-07 13:25:16 -06:00
Andrew Johnson
53d9a07f64
Fix buffer overflow in epicsStrnRawFromEscaped
...
lp:1388313
2014-11-05 10:06:02 -06:00
Andrew Johnson
eae4f60e57
cap5: Fix replace_access_rights_event() channel method
2014-11-04 15:10:50 -06:00
Andrew Johnson
743e3bd387
cap5: Add replace_access_rights_event() channel method
2014-11-02 23:11:44 -06:00
Andrew Johnson
79b70d651c
Flag epicsBoolean with EPICS_DEPRECATED
2014-10-31 17:26:48 -05:00
Andrew Johnson
9d5bffca94
libCom/flex: Default skeleton should be filename only
2014-10-31 16:58:03 -05:00
Andrew Johnson
64bf84169c
dbStatic: Added hook routine for dbLoadRecords()
...
Requested by Tim Mooney for use by Autosave.
See the Release Notes for documentation.
This commit also corrects the decorations for recGblAlarmHook.
2014-10-31 16:18:25 -05:00
Andrew Johnson
647bd334ae
iocsh: Protect echo and cd from NULL arguments
2014-10-31 12:19:09 -05:00
Andrew Johnson
09ff608ca9
libCom: Fix use-after-free bug in macCore.c
2014-10-30 17:55:12 -05:00
Andrew Johnson
6c14dc194c
Replace the epicsBoolean type in epicsTypes.h
2014-10-30 14:40:19 -05:00
J. Lewis Muir
f0156119be
cap5: Fix doc typos
2014-10-22 11:03:40 -05:00
Andrew Johnson
f808e4309d
cap5 Fixes
...
1. Support subscribing for DBR_GR_ENUM or DBR_CTRL_ENUM
2. Fix doc example on how to combine timestamp parts
2014-10-17 15:19:00 -05: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
c5740c0dd0
Add relPaths.sh target to convertRelease.pl
...
This is a /bin/sh syntax version of the dllPath.bat file,
needed to run IOCs under Cygwin when SHARED_LIBRARIES=YES.
2014-10-08 14:18:08 -05:00
Andrew Johnson
3eb6a66f3c
Fix build warnings
2014-10-07 15:59:20 -05:00
Andrew Johnson
bd120c774d
Various fixes
...
* VxWorks 5.5.2 doesn't like C++-style variable declarations in C code
* Older MS compiler doesn't have strto[u]ll
* Wrote release note entry for iocshLoad command.
2014-10-07 00:41:39 -05:00
Andrew Johnson
0a9c5d456b
Merged iocshCmd-with-macros branch
2014-10-06 23:39:23 -05:00
Andrew Johnson
97e445f78d
Merged epicsInt64-library-support branch
2014-10-06 20:28:35 -05:00
Andrew Johnson
b74eb61949
Merged dbca-test branch
2014-10-06 18:04:33 -05:00
Andrew Johnson
f0193d27f3
Clean up warning from clang/MacOS
2014-10-06 18:03:00 -05:00
Andrew Johnson
7b23f50f9d
Fix Windows builds.
...
db_access.h defines things in the CA library, not db...
2014-10-06 16:31:28 -05:00
Andrew Johnson
78a9dd7bc5
Fixes for building on Solaris
...
The SunPro C++ compiler doesn't like osdElfFindAddr, so I converted
it back to C, but then I had to make the osdFindAddr files C to match.
Now elfRead() can't use a static initializer to get the program start
time, so I added a public routine to osiClockTime.c to return that.
Also fixed various indentations in Till's code.
2014-10-06 13:53:21 -05:00
Andrew Johnson
3d6fba6802
dbdToHtml fix to support Perl 5.8
2014-10-06 13:26:37 -05:00
Andrew Johnson
2d0ea1e3bb
Better Makefile for makeBaseApp top dir
2014-10-06 13:25:41 -05:00
Andrew Johnson
9cebc2993b
Fix epicsExportSharedSymbols for MinGW build
...
Include files now in sorted order within each block.
2014-10-06 00:57:02 -05:00
Andrew Johnson
2ce5d61c38
Perl script fixes.
...
This commit should fix the Cygwin build issue, and the
stylesheet link problems.
2014-10-03 18:06:47 -05:00
Andrew Johnson
a4298bec56
Merged dbd2html branch
2014-10-03 14:23:04 -05:00
Andrew Johnson
ec7b0d5737
Merged the loadable-support branch
2014-10-02 16:53:15 -05:00
Andrew Johnson
70feb515c3
Merged parallel-cbthreads-3 branch
2014-10-02 15:07:07 -05:00
Andrew Johnson
565f0e3725
Merged simple-filter-conf branch
2014-10-01 18:11:28 -05:00
Michael Davidsaver
c0a4ebebff
callback: workers wake up peer if necessary.
2014-10-01 18:38:14 -04:00