diff --git a/src/iocsh/iocUtil.c b/src/iocsh/iocUtil.c index 2afc2eef2..4854dff6f 100644 --- a/src/iocsh/iocUtil.c +++ b/src/iocsh/iocUtil.c @@ -6,6 +6,7 @@ #include #include #include +#include #include "osiUnistd.h" #include "osiThread.h" @@ -126,6 +127,13 @@ static void putenvCallFunc(ioccrfArg **args) printf ("putenv(%s) failed.\n", cp); } +/* iocLogInit */ +static ioccrfFuncDef iocLogInitFuncDef = {"iocLogInit",0,0}; +static void iocLogInitCallFunc(ioccrfArg **args) +{ + iocLogInit (); +} + void epicsShareAPI iocUtilRegister(void) { ioccrfRegister(&runScriptFuncDef,runScriptCallFunc); @@ -134,4 +142,5 @@ void epicsShareAPI iocUtilRegister(void) ioccrfRegister(&showFuncDef,showCallFunc); ioccrfRegister(&threadInitFuncDef,threadInitCallFunc); ioccrfRegister(&putenvFuncDef,putenvCallFunc); + ioccrfRegister(&iocLogInitFuncDef,iocLogInitCallFunc); }