Commit Graph
1508 Commits
Author SHA1 Message Date
Andrew Johnson b5434c1e6b Error message fixes/improvements 2026-04-15 10:09:52 -05:00
Michael Davidsaver ef48298294 dbCa: iocInit wait for all conditions
After connectCallback, need to wait for up to three
concurrent actions.  Native and string subscriptions,
as well as GET of metadata.

Complicated because event_handler_args does not identify
the evid.

see 717d69e1fc
2026-04-15 10:05:07 -05:00
Michael Davidsaver b761beaf0c doc 2026-04-10 19:47:56 -07:00
Michael Davidsaver 77e499ae84 doc dbProcess() 2026-04-10 19:47:56 -07:00
Edmund Blomley c9817fa591 Add AFTC flag for bi record and fix mbbi AFTC bug (#817)
* Add AFTC feature to bi record with tests.

* Fix broken AFTC handling for mbbi record, also fix bug in COSV and LALM handling.

* Add release notes and update record docs.
2026-04-01 11:53:39 -05:00
Freddie Akeroyd 631c8831b9 Fix number of tests 2026-04-01 08:37:29 -07:00
Freddie Akeroyd acf53d31ee Add test case 2026-04-01 08:37:29 -07:00
Freddie Akeroyd fb09dc0df9 Fix memory overwrite in macParseDefns 2026-04-01 08:37:29 -07:00
Andrew Johnson 05c27e453c Color the keywords in macLib errors 2026-04-01 10:26:47 -05:00
Andrew Johnson 1c9ef94818 Fix the bug reported in #834, but behaves differently
Adds tests and checks for unterminated macros,
which are now reported but not expanded.
2026-04-01 10:26:47 -05:00
Evan Daykin 77a3b8110f use (s)rand() to generate RNDM calc values with a system clock nanosecond seed 2026-04-01 10:16:34 -05:00
Érico Nogueira 6ef94d744f Use deterministic timezones in epicsTimeZoneTest
The DST characteristics of the POSIX EST5EDT and CST6CDT timezones
depend on whether the implementation uses the built-in POSIX definition
or reads an updated version from the tzdata files, and for POSIX
timezones, there is no specified behavior [1].

To avoid any plaform-specific behavior, we can specify the desired DST
ourselves. We used the timezone values available in
configure/CONFIG_SITE_ENV, which already included DST information, and
means the tests are consistent with our own usage.

[1] https://www.openwall.com/lists/musl/2024/03/05/2
2026-04-01 10:13:56 -05:00
Michael Davidsaver e181517de1 readline history, clear before append
read_history() appends to the global history array.
Clear before each read to prevent duplication.
2026-04-01 10:01:54 -05:00
Michael Davidsaver 4dfd5c7694 skip readline interactive setup when not interactive 2026-04-01 10:01:54 -05:00
ronaldomercado 2d8a6f91a9 Use consistent language for string termination (#806)
Avoid hyphen, prefer space: "null terminated"
2026-03-18 10:45:25 -05:00
Irie Railton f4ccf7bc8c iocsh command dbCreateRecord (#812)
* skeleton for implementation of dbCreateRecord iocsh exposure

* Add functionality of dbCreateRecordCallFunc
Includes adding dependancy to iocInit.h and a new error type in dbStaticLib.h

* Fix error message for case when adding record to IOC post init

* add new error message for when no record name is passed and check for empty strings

* add release note for dbCreateRecord IOC shell command

* fix issues from codeql in release notes

* fix documentation md based on codacy styling
2026-03-10 12:48:05 -05:00
Andrew Johnson e271752158 Added -d option to caRepeater, sets debug level
Added debug messages for client verification.

With -d the repeater shows client events, e.g.

  $ caRepeater -d
  CA Repeater: Attached and initialized
  New client on port 60307
  Verified 1 active clients
  New client on port 52541
  Verified 2 active clients
  Client on port 60307 refused message
  Deleted client on port 60307
  Client on port 52541 refused message
  Deleted client on port 52541
  ^C

Running "caRepeater -dd" also shows beacon forwarding and
individual client verification:

  $ caRepeater -dd
  CA Repeater: Attached and initialized
  New client on port 49968
  Client on port 49968 is alive
  Verified 1 active clients
  Sent to port 49968
  Sent to port 49968
  Sent to port 49968
  New client on port 65377
  Sent to port 49968
  Client on port 49968 is alive
  Client on port 65377 is alive
  Verified 2 active clients
  Sent to port 49968
  Sent to port 65377
  Sent to port 49968
  Sent to port 65377
  Client on port 49968 refused message
  Deleted client on port 49968
  Sent to port 65377
  Sent to port 65377
  Client on port 65377 refused message
  Deleted client on port 65377
  ^C
2026-03-10 12:42:18 -05:00
Andrew Johnson 01e1073163 Fix editorconfig failure 2026-03-10 12:42:18 -05:00
ReBarsotti-HZB 5b23dcb466 Added Doxygen annotations to iocInit.h (#804)
Doxygen annotations for iocInit.h
2026-03-05 11:43:14 -06:00
ronaldomercado c7b899dca3 Annotate dbbase (#815)
* add doxygen tags

* add dbBase to be processed by sphinx
2026-03-03 18:13:52 -06:00
Michael Davidsaver d44ddf441a configure: ensure output file only updated on success
eg. After running "false > $@", the output file modification
time will be updated.  So a despite failure, a repeated
"make" will not re-run.

Handle this by accumulating output to "$@.tmp", then
move to $@ as a final step.
2026-02-27 16:17:53 +00:00
Michael Davidsaver 717d69e1fc dbCa: iocInit wait for local CA links to connect 2026-02-27 13:01:27 +00:00
Michael Davidsaver c41210c008 whitespace 2026-02-27 11:45:42 +00:00
ReBarsotti-HZB 976ef26381 Added Doxygen annotations to dbLock.h 2026-02-27 11:28:00 +00:00
ReBarsotti-HZB 06ec85be80 Added @file to dbExtractArray
File was already annotated but missing the @file declaration.
2026-02-27 11:25:15 +00:00
Andrew Johnson b5df3e002a Various non-functional fixes/changes
Fix EditorConfig failure in modules/libcom/RTEMS/epicsNtp.c
Add dbDefs to Sphinx API index, move devLib to libcom
Rename internal CA enum tag to fix Doxygen complaint
Set Clang's minimum MacOS version for aarch64 CPUs
2026-02-18 11:23:50 -06:00
zimoch db693d4930 enable trim_trailing_whitespace 2026-02-18 10:34:08 -06:00
zimoch cd36c03da4 Enforce consistent space indent style 2026-02-18 10:34:08 -06:00
zimoch 8c9dd71f6e Fix gcc warning 'stringop-truncation' 2026-02-18 10:06:26 -06:00
zimoch fe39a007d8 Allow percentages for callbackParallelThreads count 2026-02-18 09:50:03 -06:00
zimoch e66bb87909 document change in epicsThreadGetCPUs 2026-02-18 09:50:03 -06:00
zimoch 556de06ff2 avoid overreporting available CPUs 2026-02-18 09:50:03 -06:00
Jakub Wlodek 4fe5f75387 Fixing minor memory leak when dbPutConvertJSON call fails 2026-02-08 08:15:44 -08:00
Simon Rose 7e3255ff8e Add release notes and macros to (generated) header files 2026-02-04 10:15:24 -06:00
Henrique Silva 51c5b8f1ee Post NORD update event during record process for subArray 2026-02-04 10:15:24 -06:00
Henrique Silva 64011ba0f3 Remove NORD post event from subArray device support layer 2026-02-04 10:15:24 -06:00
Henrique Silva 5d1f572cea Remove NORD post event from device support layer
Fixes #280
This event will only be posted in the record support layer, specifically
in the process function.
2026-02-04 10:15:24 -06:00
Henrique Silva aff74638bd Post NORD update event during record process for aai and aao
Applying the same change as #263 did for waveform records
2026-02-04 10:15:24 -06:00
Bruce Hill 08c8f5fd1b Minor comment fix in libcom/src/env/RULES 2026-02-04 09:50:44 -06:00
Bruce Hill fc8319ad10 Use NUM_TIME_EVENTS instead of hard constants for dbScan.c event code. 2026-02-04 09:50:44 -06:00
Hugo Slepicka 005e36258d Add error number to rsrv mcast loopback error msg. 2026-02-04 09:50:44 -06:00
Heinz Junkes d3e414cbec udp socket functions with timeout 2026-01-21 10:04:48 -06:00
Michael Davidsaver 84d4627987 more doc dbEvent.h 2026-01-21 09:55:13 -06:00
Michael Davidsaver 839e7f4959 move dbUnitTest discussion to dbUnitTest.h 2026-01-21 09:55:13 -06:00
Michael Davidsaver d724461f1c doc: remove @page directions
readthedocs build does not include these.
2026-01-21 09:55:13 -06:00
zimoch 80c708fdeb add function attributes __malloc__ and __alloc_size__ for gcc and clang 2026-01-07 09:59:31 -06:00
Michael Davidsaver b2ed8bb98d doc dbEvent.h 2026-01-07 09:54:41 -06:00
Michael Davidsaver 71e4635d34 fix testdbCaWaitForEvent()
sync with CA context thread(s) as well as dbCa worker.
2026-01-01 19:07:10 -08:00
Andrew Johnson bbc4c6358e Update modules/* submodules to HEAD 2026-01-01 15:24:23 -06:00
zimoch 12c56ffc95 upcast int to size_t to prevent overflow 2025-12-17 16:34:58 -08:00