34 static class errlogDevTimeInit
40 static int errlogOpen ( DEV_HDR *,
const char *,
int )
45 static int errlogWrite ( DEV_HDR *,
const char * pInBuf,
int nbytes )
51 errlogDevTimeInit::errlogDevTimeInit ()
53 int errlogNo = iosDrvInstall (
56 reinterpret_cast < FUNCPTR > ( errlogOpen ),
59 reinterpret_cast < FUNCPTR > ( errlogWrite ),
62 if ( errlogNo == ERROR ) {
64 "Unable to install driver routing the vxWorks " 65 "logging system to the EPICS logging system because \"%s\"\n",
69 DEV_HDR * pDev = static_cast < DEV_HDR * > ( calloc ( 1,
sizeof ( *pDev ) ) );
72 "Unable to create driver data structure for routing the vxWorks " 73 "logging system to the EPICS logging system because \"%s\"\n",
77 int status = iosDevAdd ( pDev,
"/errlog/", errlogNo );
80 "Unable to install device routing the vxWorks " 81 "logging system to the EPICS logging system because \"%s\"\n",
86 int fd = open (
"/errlog/any", O_WRONLY, 0 );
89 "Unable to open fd routing the vxWorks " 90 "logging system to the EPICS logging system because \"%s\"\n",
94 status = logFdAdd ( fd );
97 "Unable to install fd routing the vxWorks " 98 "logging system to the EPICS logging system because \"%s\"\n",
int errlogPrintfNoConsole(const char *pFormat,...)
int errlogPrintf(const char *pFormat,...)