10. External References¶
This file gathers together a few miscellaneous external references not documented elsewhere.
10.1. Standard C API¶
-
bool¶ Standard boolean type, available via
#include <stdbool.h>.
-
pthread_mutex_t¶ Mutex type for thread synchronisation, available via
#include <pthread.h>.
-
struct
timespec¶ Timestamp structure available via
#include <time.h>. Represents time in seconds to nanosecond resolution.
-
va_list¶ Type used to manage variable arguments, available via
#include <stdarg.h>.
-
int
snprintf(char *str, size_t size, const char *format, ...)¶ -
int
sprintf(char *str, const char *format, ...)¶ -
int
printf(const char *format, ...)¶ Standard functions for printing and formatting strings, available via
#include <stdio.h>.
-
int
errno¶ Global (thread local) variable set by IO calls to report error status, available via
#include <errno.h>.
10.2. EPICS API¶
-
int
iocInit(void)¶ EPICS function used to start the IOC. This must be called to start the IOC after publishing all PVs and loading all EPICS databases.
-
int
iocsh(const char *script)¶ Interactive IOC shell. This can optionally be called after
iocInit()with a startup script as the script argument, or withNULLto provide an interactive shell for the IOC. Returns -1 on error, 0 on success.
-
initHookAtEnd¶ EPICS event triggered at the end of IOC initialisation.