Michael Davidsaver
872009336e
OSX fix osdFindSymbol
...
RTLD_DEFAULT isn't zero on OSX
2020-03-24 08:38:29 -07:00
Michael Davidsaver
a8b2bc5c3b
asCa.c normalize indentation
...
whitespace only
2020-03-23 18:24:44 -07:00
Michael Davidsaver
bac8851132
Revert "asCaStop() join worker thread"
...
This reverts commit afc31f2f06 .
# Conflicts:
# modules/database/src/ioc/as/asCa.c
2020-03-23 18:22:16 -07:00
Michael Davidsaver
46fa31020e
Com: (WIN32) fix handling of thread joinable flag and refcnt
...
Analogous changes for windows
cf. 02a24a144d
2020-03-23 09:57:14 -07:00
Andrew Johnson
5009f288ae
Generate module version files with new RULES_EXPAND facilities
...
Also removes the separate *VersionNum.h@ templates
2020-03-20 12:03:14 -05:00
Andrew Johnson
25bb966cbc
Use the dbChannel*() accessor macros in the array filter code
...
instead of exposing the dbChannel innards unnecessarily.
2020-03-14 16:19:26 -05:00
Andrew Johnson
0f35d0c3f9
Improve epicsEventTest delay checks
2020-03-12 13:59:41 -05:00
Andrew Johnson
b4625a0c1f
Fix osiSockTest on VxWorks
2020-03-12 13:49:55 -05:00
Andrew Johnson
33c3b1c89a
Convert epicsShareAPI to epicsStdCall in modules/ca
2020-03-10 23:42:42 -05:00
Andrew Johnson
18402f0354
Convert modules/ca to use LIBCA_API instead of epicsShare
...
Also unified the header exclusion guard names,
removed a couple of files that are no longer used,
dropped the '3.13.7' from the Copyright header.
2020-03-09 23:53:22 -05:00
Michael Davidsaver
02a24a144d
Com: fix handling of thread joinable flag and refcnt
...
The second increment of refcnt must occur before pthread_create
or a subtle possibility of a double free() occurs if the thread
runs immediately and self-joins before the second inc.
Also use atomic ops for joinable flag to ensure that
concurrent joins will error properly.
2020-03-08 22:27:06 -07:00
Andrew Johnson
0cf38bfb29
Try out a representative sample of APIs from multiple libraries
2020-03-07 01:32:36 -06:00
Andrew Johnson
e13b01208b
Bump database version to 3.18.0, use in SHRLIB_VERSION
2020-03-06 23:28:57 -06:00
Andrew Johnson
048689d6db
Adjust example code in devSup.h
2020-03-06 23:20:55 -06:00
Andrew Johnson
23cac3c1a8
Set USE_TYPED_DSET centrally now everything uses it
2020-03-06 22:49:58 -06:00
Andrew Johnson
227a749105
Properly convert epicsTempFile to old-style C
2020-03-04 21:49:17 -06:00
Andrew Johnson
fdacb6b92e
MSVC <= 11.0 doesn't like 'const int' in C code
2020-03-03 00:53:16 -06:00
Andrew Johnson
5361888997
Have antelope.c include epicsTempFile.c directly
2020-02-29 14:46:13 -06:00
Andrew Johnson
cc4d888ae8
Convert epicsTempFile.cpp to .c
2020-02-29 14:42:54 -06:00
Gabriel Fedel
90c0f5c48d
Fix seq to work correctly on "Specified" mode
...
On Specified mode is expected that when seq is processed the value from
DOL0 (fixed or links) is set on LNK0, if SELN = 0 (and OFFS = 0).
2020-02-14 15:09:11 +00:00
Gabriel Fedel
d82529058a
Add a test to record seq in "Specified" mode
2020-02-14 15:09:11 +00:00
Michael Davidsaver
8668cc1267
testTodoEnd() needs to lock
...
when NULLing
2020-02-14 13:28:44 +00:00
Michael Davidsaver
3465c0c8b0
simmTest imprecise
2020-02-14 13:25:43 +00:00
Michael Davidsaver
b5be8b2eaf
update PVA
2020-02-14 11:58:17 +00:00
hanlet
97bf9171c6
Added Multicast to caRepeater
...
Modifications to allow for CA multicast listening by adding multicast address
from EPICS_CA_BEACON_ADDR_LIST (or EPICS_CA_ADDR_LIST if beacon list is empty).
Original modifications from Jim Smedinghoff, with further changes by Pierrick Hanlet.
2020-02-14 11:42:17 +00:00
gabadinho
c54237e34a
- Record updates:
...
. histogramRecord
. eventRecord
. aaiRecord
. aaoRecord
- Device support updates:
. devHistogramSoft (histogramRecord)
. devEventSoft (eventRecord)
. devAaiSoft (aaiRecord)
. devAaoSoft (aaoRecord)
- Fixes in already-migrated records
. lsiRecord: replaced 'struct lsidset' with typedef(ed) 'lsidset'
. int64inRecord (similar as above)
. int64outRecord (similar as above)
. calcRecord: minor fix in init_record() prototype declaration
- Note: the comments about return values in dset structs were outright copied from .c to .pod/.dbd files without confirmation if they are indeed correct!
2020-02-14 11:07:11 +01:00
Michael Davidsaver
bf533ac195
win32 epicsSocketEnableAddressUseForDatagramFanout call spec
...
apparently epicsShareAPI is required on both declaration and definition.
2020-02-14 09:00:49 +00:00
Michael Davidsaver
6dba2ec1d7
caRepeater /dev/null
2020-02-14 09:00:22 +00:00
Michael Davidsaver
819b0de65b
epicsTimerTest testImpreciseTiming()
2020-02-14 09:00:17 +00:00
gabadinho
754eb73334
- Record updates:
...
. aoRecord
. biRecord
. boRecord
. mbbiRecord
. mbbiDirectRecord
. mbboRecord
. mbboDirectRecord
. longinRecord
. longoutRecord
. stringoutRecord
. stringinRecord
. waveformRecord
. calcoutRecord
. subArrayRecord
- Device support updates:
. devAoSoft, devAoSoftCallback, devAoSoftRaw (aoRecord)
. devBiSoft, devBiSoftCallback, devBiSoftRaw, devBiDbState (biRecord)
. devBoSoft, devBoSoftCallback, devBoSoftRaw, devBoDbState, devGeneralTime (boRecord)
. devMbbiSoft, devMbbiSoftCallback, devMbbiSoftRaw (mbbiRecord)
. devMbboSoft, devMbboSoftCallback, devMbboSoftRaw (mbboRecord)
. devMbbiDirectSoft, devMbbiDirectSoftCallback, devMbbiDirectSoftRaw (mbbiDirectRecord)
. devMbboDirectSoft, devMbboDirectSoftCallback, devMbboDirectSoftRaw (mbboDirectRecord)
. devGeneralTime, devLiSoft, devLiSoftCallback (longinRecord)
. devLoSoft, devLoSoftCallback (longoutRecord)
. devSoSoft, devSoSoftCallback, devStdio (stringoutRecord)
. devSiSoft, devSiSoftCallback, devEnviron, devGeneralTime, devTimestamp (stringinRecord)
. devWfSoft (waveformRecord)
. devCalcoutSoft, devCalcoutSoftCallback (recordCalcout)
. devSASoft (subArrayRecord)
2020-02-13 17:40:22 +01:00
Karl Vestin
8075b3c316
Added a null check in epicsWin32ThreadEntry to prevent dereferencing a null pointer in case fetchWin32ThreadGlobal fails.
...
LP: #1863118
2020-02-13 16:16:56 +00:00
Gabriel Fedel
6feb1c788d
Add extern C for all c headers
...
This allow that these files could be imported to c++ correctly
2020-02-13 14:21:54 +00:00
Aaron
6e0706a312
Set argBuff->sval to NULL if arg is NULL
2020-02-13 13:22:26 +00:00
Aaron
45bbe274e9
Error case for NULL arg causing segfault in iocshPersistentString
2020-02-13 13:22:19 +00:00
Karl Vestin
2bcaa5448c
Added null check in modules/ca/src/client/udpiiu.cpp to prevent possible dereferencing of null pointer. Flagged as error by Codacy static code analysis.
...
Codacy link: https://app.codacy.com/gh/epics-base/epics-base/file/42103575495/issues/source?bid=16430872&fileBranchId=16430872#l950
Launchpad bug: https://bugs.launchpad.net/epics-base/+bug/1862916
LP: #1862916
2020-02-13 13:22:04 +00:00
Karl Vestin
66f2a509db
Added initialization of alarm severity on probe. This value is not used, but should be initialized regardless. This was flagged as an error by the Codacy static code analysis.
...
Codacy link: https://app.codacy.com/gh/epics-base/epics-base/file/42103575016/issues/source?bid=16430872&fileBranchId=16430872#l604
Launchpad bug: https://bugs.launchpad.net/epics-base/+bug/1862918
LP: #1862918
2020-02-13 13:22:00 +00:00
Karl Vestin
538f532184
Added a free statement to release memory allocated for postbuf if the memory allocation for inbuf fails. Resolves an error level issue generated by the Codacy static code analysis.
...
Codacy link: https://app.codacy.com/gh/epics-base/epics-base/file/42098735308/issues/source?bid=16430872&fileBranchId=16430872#l201
Launchpad bug: https://bugs.launchpad.net/epics-base/+bug/1862917
LP: #1862917
2020-02-13 13:21:58 +00:00
gabadinho
55ec813908
initial typed-dset changes for ao record
2020-02-12 15:32:13 +01:00
Michael Davidsaver
e6810a4224
processTarget() remove unnecessary NULL test
...
psrc and pdst will always be non-NULL
2020-02-12 11:16:33 +00:00
Michael Davidsaver
7b6e48f4e0
casw shouldn't use monotonic
2020-02-12 11:16:29 +00:00
Michael Davidsaver
f0bf61b4cb
rsrv: improve monitor/get error message
2020-02-12 11:16:26 +00:00
Michael Davidsaver
db6e7c7a22
use one osdSockAddrReuse impl for all targets
...
drop win32 specialization of osdSockAddrReuse
2020-02-12 10:52:51 +00:00
Michael Davidsaver
5064931aa6
try both to set both SO_REUSEPORT and SO_REUSEADDR
...
It seems that on Linux, SO_REUSEPORT shares with SO_REUSEPORT
and SO_REUSEADDR with SO_REUSEADDR, but not each other.
Setting both allows full sharing
2020-02-12 10:52:15 +00:00
Michael Davidsaver
d0c4cc0cec
Darwin/iOS use posix osdSockAddrReuse.cpp
...
Redundant now that the posix version prefers SO_REUSEPORT
if defined.
2020-01-12 11:49:48 -08:00
Michael Davidsaver
65ef6e9d59
posix epicsSocketEnableAddressUseForDatagramFanout() prefer SO_REUSEPORT
...
prefer SO_REUSEPORT on targets which define it.
Linux defines both, and seems to treat
SO_REUSEPORT and SO_REUSEADDR as equivalent.
BSD derivatives need SO_REUSEPORT.
2020-01-12 11:49:26 -08:00
Michael Davidsaver
8dc131dc4c
osiSockTest test epicsSocketEnableAddressUseForDatagramFanout()
2020-01-12 11:48:20 -08:00
Michael Davidsaver
468f965dc2
dbLoadTemplate.h missing extern "C"
2020-01-05 17:52:43 -08:00
Andrew Johnson
8f358f4dd8
VxWorks::osdThread: Rename createFunction => epicsThreadEntry
...
and make it visible (non-static) so it appears in back-traces.
2020-01-02 16:41:55 -06:00
Andrew Johnson
05e0381b19
Fix VxWorks epicsThreadMustJoin() problems
...
taskWait() actually returns OK on timeout, so drop the timeout warning
(the other implementations don't have one).
The taskWait() may return ERROR with S_objLib_OBJ_ID_ERROR if the target
thread has higher priority; this indicates a successful join, because
we already did a rendezvous using joinSem.
Delete joinSem *after* calling taskSpareFieldSet(), in case it matters.
2020-01-02 16:39:10 -06:00
Andrew Johnson
06728e0e0b
Run epicsThreadTest::testJoining with different priorities
...
A problem in the VxWorks epicsThreadMustJoin() only occurs when
the joining thread runs at a higher priority than its supervisor.
2020-01-02 16:22:35 -06:00