Andrew Johnson
e889336458
db: Undefined alarm limits should return NaN
...
Where the record doesn't provide get_alarm_double() or for fields
where the default applies, we were still returning 0.
2012-10-17 18:08:39 -05:00
Michael Davidsaver
7cac267a4b
db: Fix possible error handling in dbPut
2012-10-11 18:10:00 -05:00
Andrew Johnson
4982a6308b
db: Don't call epicsPrintf() from callbackRequest()
...
The callbackRequest() routine can be called from an ISR,
so use epicsInterruptContextMessage() to print errors.
2012-05-04 17:34:48 -05:00
Andrew Johnson
243baddbf6
Add an Init stat to all thread control variables
...
This makes the uninitilized value not the Run state.
2012-05-04 13:38:59 -05:00
Andrew Johnson
dffe203856
db: Another modification to fix lp:907761
...
From Dirk Zimoch.
2012-03-19 12:31:11 -05:00
Andrew Johnson
7435a9831b
db: Reject trailing space in numeric => enum/menu/device conversion
...
This is really a workaround for a Win32/MinGW bug in sscanf, which
will only set the %n argument for the format "%u %n" when there is
a space following the unsigned number.
This changes the IOC's behavior very slightly.
2012-03-06 14:14:39 -06:00
Andrew Johnson
f86cf730e9
db: fix dbpf to enum from integer bug
2012-01-27 09:41:37 -06:00
Andrew Johnson
7cc8a552a3
db: Allow single-char accesses as long strings
...
Clients try to use long string support to fetch DBF_STRING
fields use DBF_CTRL_CHAR with a 1-element array, but the IOC
was rejecting that. This permits it, and also ensures that
the resulting strings are zero-terminated.
Fixes lp:907761
2012-01-11 16:47:37 -06:00
Jeff Hill johill@lanl.gov
96cad82a2a
o fixed launchpad epics base bug 878372
...
o fixed launchpad epics base bug 878387
o added regression test for bug 878372
o build the optional test and diagnostic codes for all (not just vxWorks) IOCs
o added acctstRegister optional IOC shell registration for regression tests
2011-10-19 12:07:00 -06:00
unknown
5649e15842
ca: Remove unnecessary mutable qualifiers
...
These references are never actually "mutated", and break builds
with a recent C++ compiler.
Fixes lp:736273
2011-06-01 17:22:12 -05:00
Andrew Johnson
2bb3074fab
db: Fix db_get_field() on an empty array field.
...
This fixes a bug introduced with the dynamic-array branch.
The new version of db_get_field() was using the dbr_size_n() macro to
calculate the offset to the start of the buffer area to be zeroed, but
when nRequest is zero this gives the wrong result; the dbr_ structures
always contain at least one value element, and dbr_size_n() thus has
to include that in its size calculation.
2010-10-27 13:26:56 -05:00
Andrew Johnson
fbda9f3280
RCS keyword updates for Bazaar
...
Replaced $Id$ and $Header$ keywords with $Revision-Id$
Deleted $Log$ keywords and any log messages
2010-10-05 14:27:37 -05:00
Andrew Johnson
d4814f1395
db/test: On vxWorks make a callbackTest.munch that works.
2010-09-29 16:00:46 -05:00
Janet Anderson
3489c93e32
Added missing epicsShareAPI for db_get_field_and_count.
2010-09-27 11:41:53 -05:00
Michael Abbott
e87bbef75c
Update rsrv to support V4.13 protocol extension.
...
The rsrv server is updated in this commit to deliver variable sized
waveforms in response to a zero length request, implementing an
extension to the v4 EPICS protocol tied to minor version 13.
The core of the changes are in read_reply, rsrv/camessage.c, which first
reserves packet space for the largest possible response, but then resizes
the packet according to how much data is actually returned from the
database.
2010-08-11 16:38:49 -05:00
Andrew Johnson
cc95161af0
Merged base-tests branch from epics-base-testing team.
...
Modified testspec output to omit Tests: line when empty
Added testspec generation to src/db/test/Makefile.
2010-08-04 14:16:14 -05:00
unknown
1660dcac9c
Removed trailing ';' from dbGetSevr macro definition.
2010-07-19 09:49:01 -05:00
Ralph Lange
60be4921c8
Fix: Replaced C++ reserved word 'new' as variable name.
2010-06-16 15:58:00 -04:00
Kukhee Kim
fa564fbfdf
BUG 572589: Make dbl emit empty strings for non-existent fields
2010-05-25 07:57:49 -07:00
Michael Davidsaver
244796bbaa
remove STATIC
2010-03-16 21:09:51 -04:00
Michael Davidsaver
36980c5a1a
doc: note for dbScanLock
2010-03-16 21:09:51 -04:00
Andrew Johnson
b55cad9c16
Disable "redo last put on reconnection" for STRING writing to ENUM.
2009-12-22 23:43:52 +00:00
Janet B. Anderson
68b62dd4b3
Add rule to create depends file in O.<T_A> dir. Simplify Makefile.
2009-12-21 19:45:12 +00:00
Andrew Johnson
d0466179b0
dbNameToAddr() needs to adjust paddr->field_size when a $ modifier is used.
2009-11-18 16:55:04 +00:00
Andrew Johnson
534ca2c86e
Make ellFree() a 1-argument macro, calls ellFree2() with free as freeFunc.
2009-08-28 18:34:38 +00:00
Andrew Johnson
0fb320c263
(M. Davidsaver): Use ELLLIST init macros.
2009-07-09 18:37:26 +00:00
Andrew Johnson
4e0ab97038
(M. Davidsaver): static keyword is part of C89,
...
remove all uses and internal definitions of LOCAL macro
2009-07-09 16:37:24 +00:00
Andrew Johnson
d6fcbe14ab
Cleaned up dbDefs.h and errMdef.h
...
Added various #include lines needed in other sources.
2009-07-09 15:27:43 +00:00
Andrew Johnson
bf39f9935c
Cosmetic.
2009-07-08 19:08:22 +00:00
Jeff Hill
162fa000c8
fix for compiler warnings in mantis 337
2009-07-07 23:54:41 +00:00
Andrew Johnson
68dbf8addd
Added PINI values RUNNING and PAUSED, needed for Asyn.
2009-07-02 20:05:32 +00:00
Andrew Johnson
957c869c87
Fix off-by-1 error in dbPutFieldLink() when checking long input string.
2009-06-15 22:30:27 +00:00
Andrew Johnson
3c19da6b3b
Allow INP/OUT to be set if DSET is NULL.
2009-06-15 20:52:36 +00:00
Andrew Johnson
917e83e391
Use epicsStrDup for allocation check.
2009-05-05 15:02:35 +00:00
Andrew Johnson
6e364ace47
Changed arg to dbCaCallbackProcess() to make it match dbCaCallback.
...
Removed matching unnecessary casts in softDev support routines.
2009-04-29 18:24:25 +00:00
Andrew Johnson
365389437c
Removed epicsShareAPI decorator from all functions, to fix WIN32 problem
...
found by Mark Rivers: The dbCaCallback typename was not decorated, but the
functions being called through it apparently are.
2009-04-29 17:26:25 +00:00
Andrew Johnson
f5f1c51b80
make dbMalloc and dbCalloc macros
2009-04-23 21:56:22 +00:00
Andrew Johnson
c13dc77564
Make PINI field into its own menu, adding RUN and PAUSE choices.
2009-04-23 20:35:02 +00:00
Andrew Johnson
31d149d8d9
Fixed 64 bit compiler warnings from Tom Palaia/MacOS.
2009-04-23 18:49:40 +00:00
Andrew Johnson
8015df9e1f
Added new initHook states for iocPause and iocRun commands.
...
Added a mutex to protect the initHook.c routines.
2009-04-16 18:38:20 +00:00
Andrew Johnson
f3d07ad12f
ellLib changes: ANSIfication patch; moved test code out of ellLib.c into
...
its own unit test program in libCom/test; changed ellFree() to take a
function pointer for the free() routine, so it can be used on Windows;
modified epicsExit and dbBkpt to use it and pass in the free routine.
2009-04-09 16:51:05 +00:00
Andrew Johnson
f357fd3b13
Include DBE_PROPERTY in dbel output.
2009-04-09 16:42:02 +00:00
Ralph Lange
990ba62e0b
Added support for new MSI and MSS link flags
2009-04-03 20:54:00 +00:00
Ralph Lange
7fccc59fe9
ANSIfication of stuff (mostly missing argument types in declarations)
2009-04-03 17:46:26 +00:00
Andrew Johnson
88971886c5
PINI Processing support for PHAS.
2009-04-02 14:11:27 +00:00
Andrew Johnson
776b8855fd
Attributes and LINK fields only provide one DBF_STRING element.
2009-04-01 22:02:48 +00:00
Andrew Johnson
58b1017397
Ensure getOptions() gets called for structured DBR types.
2009-03-31 19:09:58 +00:00
Andrew Johnson
ed4a2972d6
Long string support:
...
In dbStatic, split record and field search to make parsing easier.
In dbAccess, '$' field name suffix makes field an array of DBF_CHAR.
2009-03-25 23:02:28 +00:00
Andrew Johnson
f8c921e6a0
Mark struct dbAddr arg's const.
2009-03-10 18:54:47 +00:00
Andrew Johnson
aacee9c584
Cosmetic only.
2009-03-10 18:51:03 +00:00