zimoch
88bfd6f378
Allow hex and octal strings in dbPut and dbGet
...
Setting EPICS_DB_CONVERT_DECIMAL_ONLY to YES/yes change the dbPut() and dbGet()
string to integer conversions to the original decimal only policy.
2025-11-05 10:11:06 -06:00
DW
a2e01c2929
fix: stdint.h is not available before vw6.9
2025-10-08 18:40:04 -07:00
Jerzy Jamroz
8752372af1
build: atInit module moved to libcom.
2025-06-20 15:42:47 -05:00
Jerzy Jamroz
41f19bd798
build: atInit build-in without the selection capability.
2025-06-20 15:42:47 -05:00
Jerzy Jamroz
a89b12f9ef
fix: free(item->cmd) not necessary due to the single allocation.
2025-06-20 15:42:47 -05:00
Jerzy Jamroz
132cc8b90a
refactor: Introducing "__AT_INIT_LOG" consistency.
2025-06-20 15:42:47 -05:00
Jerzy Jamroz
bdb3744e7e
perf: mallocMustSucceed upgraded with the single allocation.
2025-06-20 15:42:47 -05:00
Jerzy Jamroz
124f7b9d9b
refactor: afterInit changed to atInit.
2025-06-20 15:42:47 -05:00
Jerzy Jamroz
579c15e4f2
feat: afterInit ELLLIST implementation.
2025-06-20 15:42:47 -05:00
Jerzy Jamroz
326c8d588f
feat: Refining the afterInit.
...
* Better error handling
* help message added
* version added
* afterInit=YES build var required to enable
2025-06-20 15:42:47 -05:00
Jerzy Jamroz
77140abe70
feat: afterInit integration to the IOC shell.
...
The command allows to define boot routines before the iocInit.
2025-06-20 15:42:47 -05:00
JJL772
144f9756ea
Add iocshSetError in a bunch of places
2025-02-05 10:16:16 -06:00
Michael Davidsaver
ead8b7e82b
doc getIocState()
2024-12-09 17:00:03 -08:00
Andrew Johnson
3dae29b7e8
Oops, needed stdint.h
2024-08-10 14:45:28 -05:00
Andrew Johnson
9d393c4437
Cast sizeOffset to uintptr_t for ordered comparison
...
Issue report & fix by Dirk Zimoch.
2024-08-10 13:21:30 -05:00
Andrew Johnson
856f345d2c
Fix Codacy complaint about C-style casts
2024-08-07 09:54:16 -05:00
Andrew Johnson
7890e67d37
Various misc warnings
2024-08-07 09:54:16 -05:00
Andrew Johnson
918a188285
Define USE_TYPED_DRVET, use drvet * instead of struct drvet *
2024-08-07 09:54:16 -05:00
Michael Davidsaver
aa77b1c04a
iocInit errors say ERROR
2024-06-11 11:14:07 -07:00
Michael Davidsaver
a352865df9
print ANSI escapes to stderr
...
unconditionally print ANSI some escapes (to colorize errors)
to the stderr stream.
2023-11-07 15:53:22 -08:00
Michael Davidsaver
63740f2edd
colorize more errlog messages
2023-11-07 15:53:22 -08:00
AlexWells
6de82bb0fd
Additional help messages for iocsh
...
Henrique Silva <henrique.silva@ess.eu >
2023-08-28 13:24:16 +02:00
Michael Davidsaver
f430389ee7
iocShutdown(): Always stop worker threads
2023-03-10 09:52:08 +00:00
Michael Davidsaver
d9ca8a70f0
Com: iocsh: Tab completion
...
Add tab completion for "help ...", record names, and "pdbbase"
2022-12-20 20:12:04 -08:00
Andrew Johnson
1fa98d489f
Merge Pierrick's VersionHeaderDate branch into 7.0
2022-08-23 11:54:07 -05:00
Minijackson
a722bb9289
treewide: add usage help to various iocsh functions
2022-06-20 08:09:42 -07:00
hanlet
f0c86c5cb3
Added repository name
...
Changed git date from epoch to present commit date
2022-05-13 13:25:47 -07:00
hanlet
8e4ffd46a0
Changed descriptive text to identify new commit date information.
2022-05-13 11:38:32 -07:00
hanlet
f109371268
Added revision release time to ioc startup message.
2022-05-13 11:30:26 -07:00
Michael Davidsaver
0f428ea334
use DBCORE_API
...
git ls-files modules/database/src/ioc|egrep '\.[hc]p*$' | xargs sed -i \
-e 's|epicsShareFunc|DBCORE_API|g' \
-e 's|epicsShareClass|DBCORE_API|g' \
-e 's|epicsShareExtern|DBCORE_API extern|g' \
-e 's|epicsShareDef\s*||g' \
-e 's|shareLib\.h|dbCoreAPI.h|g' \
-e 's|epicsShareAPI|epicsStdCall|g' \
-e '/#define\s*epicsExportSharedSymbols/d'
2021-04-01 10:57:19 -07:00
Oksana Ivashkevych
7eb7988e55
Add usage to miscIocRegister.c and dbStaticIocRegister.c
2021-03-14 16:30:28 -07:00
Michael Davidsaver
e881cb15c4
registerAllRecordDeviceDrivers() handle function
2021-02-26 07:42:17 -08:00
Michael Davidsaver
051ba20fe1
fix registerAllRecordDeviceDrivers() prints
2020-08-22 07:50:40 -07:00
Michael Davidsaver
d6cf29e942
add HAS_registerAllRecordDeviceDrivers
2020-08-22 07:50:40 -07:00
Michael Davidsaver
e40970bd5e
rename dynamic_registerRecordDeviceDriver -> registerAllRecordDeviceDrivers
2020-08-22 07:50:40 -07:00
Michael Davidsaver
8d98387245
add dynamic_registerRecordDeviceDriver()
...
Use epicsFindSymbol() to build a dynamic and idempotent equivalent
to the code generated by registerRecordDeviceDriver.pl
Also add runRegistrarOnce() to prevent registrars
from running multiple times, except from unittest code.
2020-08-22 07:50:40 -07:00
Andrew Johnson
3c99391d93
Added SPDX License ID to all EPICS-original source files
...
In some cases the license-identification header was missing,
so I added that as well. Replaced the remaining headers that
specifically identified "Versions 3.13.7 and higher".
Makefiles and the build system were deliberately excluded.
2020-08-03 11:53:01 -05:00
zimoch
36a8b51d8e
CleanupWhitespace
...
removed spaces at end of line
replaced tabs with spaces
2020-05-20 14:48:09 -07:00
Michael Davidsaver
5d5e552a7e
de-init hooks
2020-04-29 16:40:16 -07:00
Andrew Johnson
85d1982890
Merge changes from 3.15 branch into 7.0
2020-04-15 21:39:54 -05:00
Michael Davidsaver
156b137af0
avoid 'struct dset'
...
doesn't work if -DUSE_TYPED_DSET
2019-11-15 21:11:27 -08:00
Michael Davidsaver
b43aafae70
VCS version instead of __DATE__
...
Use reproducable VCS version instead of date.
Of course, this falls back to a date if not
version controlled.
2019-11-13 10:18:12 -08:00
Michael Davidsaver
fc04d12578
Merge remote-tracking branch 'zimoch/iocLogClientFixesTry2' into 7.0
...
* zimoch/iocLogClientFixesTry2: (22 commits)
use EPICS_PRIVATE_API macro and fix bug with darwin/ios
renamed epicsSocketCountUnsentBytes to epicsSocketUnsentCount and moved it to osi/os/
fix bug from commit f85454. Apparently epicsExportSharedSymbols is needed even though epicsExport.h is included
epicsSocketCountUnsentBytes returns -1 on failure
bugfix: memmove'ed to much
epicsSockCountUnsentBytes renamed to epicsSocketCountUnsentBytes
moved logClientSendMessage and made it static
fix wrong function name in comment
sending 0 bytes helps to detect broken connections on some systems (but is undefined behavior on Linux, fails on vxWorks and is a documented no-op on Windows)
cannot print sockets with %d in Windows, they are not small ints but maybe pointers.
ask logClient socket how many bytes are still in the send queue and don't discard them in case the connection turns out broken.
use dynamic debug flag for logClient
increase error message buffer size for long (Windows) error messges
improve logClientShow to show unsent bytes on level 2 (and fix level 1)
removed unneeded include
no need to delay startup only because log server is currently not available
send pending log messages directly after connecting
avoid needless memmove calls
elimitate duplicate code in logClient
do not discard unsent messages when log server has closed connection, instead try to send them after reconnect
...
2019-10-24 10:22:07 -07:00
zimoch
f85454a8d6
use dynamic debug flag for logClient
2019-09-17 17:12:58 +02:00
Michael Davidsaver
4d5a677239
use iocshSetError()
2019-05-02 20:38:45 -07:00
Andrew Johnson
f0bbae1767
Merge Dirk's FixShellCommands branch into 7.0
2018-10-30 09:51:02 -05:00
Andrew Johnson
2efe56c6d1
Merge 3.16 (after 3.16.2-rc1) into 7.0
2018-10-26 17:04:53 -05:00
zimoch
4190f38db0
add macro IOCSH_STATIC_FUNC to avoid '#ifdef vxWorks' in code
2018-10-23 17:51:46 +02:00
zimoch
1cb0c5b4d0
Fix command line functions: print error if required arguments are missing
2018-09-27 13:35:10 +02:00
Ralph Lange
568c405165
Move all under modules/database
2018-06-19 11:31:13 +02:00