From d44f5616a9991e0743bcc79856bad6b2804bdc7e Mon Sep 17 00:00:00 2001 From: Dirk Zimoch Date: Thu, 27 Sep 2018 13:35:45 +0200 Subject: [PATCH] add missing command line functions to vxWorks shell --- modules/libcom/src/iocsh/libComRegister.c | 32 +++++++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/modules/libcom/src/iocsh/libComRegister.c b/modules/libcom/src/iocsh/libComRegister.c index d3a5cfac4..0c8d7ea53 100644 --- a/modules/libcom/src/iocsh/libComRegister.c +++ b/modules/libcom/src/iocsh/libComRegister.c @@ -66,6 +66,17 @@ static void echoCallFunc(const iocshArgBuf *args) printf("%s\n", str); } +#ifdef vxWorks +void echo(char* str) +{ + if (str) + dbTranslateEscape(str, str); + else + str = ""; + printf("%s\n", str); +} +#endif + /* chdir */ static const iocshArg chdirArg0 = { "directory name",iocshArgString}; static const iocshArg * const chdirArgs[1] = {&chdirArg0}; @@ -117,6 +128,13 @@ static void epicsParamShowCallFunc(const iocshArgBuf *args) epicsPrtEnvParams (); } +#ifdef vxWorks +void epicsParamShow() +{ + epicsPrtEnvParams (); +} +#endif + /* epicsPrtEnvParams */ static const iocshFuncDef epicsPrtEnvParamsFuncDef = {"epicsPrtEnvParams",0,0}; static void epicsPrtEnvParamsCallFunc(const iocshArgBuf *args) @@ -156,6 +174,13 @@ static void iocLogDisableCallFunc(const iocshArgBuf *args) iocLogDisable = args[0].ival; } +#ifdef vxWorks +void setIocLogDisable(int val) +{ + iocLogDisable = val; +} +#endif + /* iocLogShow */ static const iocshArg iocLogShowArg0 = {"level",iocshArgInt}; static const iocshArg * const iocLogShowArgs[1] = {&iocLogShowArg0}; @@ -205,6 +230,13 @@ static void errlogCallFunc(const iocshArgBuf *args) errlogPrintfNoConsole("%s\n", args[0].sval); } +#ifdef vxWorks +void errlog(const char *message) +{ + errlogPrintfNoConsole("%s\n", message); +} +#endif + /* iocLogPrefix */ static const iocshArg iocLogPrefixArg0 = { "prefix",iocshArgString}; static const iocshArg * const iocLogPrefixArgs[1] = {&iocLogPrefixArg0};