External References =================== This file gathers together a few miscellaneous external references not documented elsewhere. Standard C API -------------- .. type:: bool Standard boolean type, available via ``#include ``. .. type:: pthread_mutex_t Mutex type for thread synchronisation, available via ``#include ``. .. type:: struct timespec Timestamp structure available via ``#include ``. Represents time in seconds to nanosecond resolution. .. type:: va_list Type used to manage variable arguments, available via ``#include ``. .. c:function:: 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 ``. .. var:: int errno Global (thread local) variable set by IO calls to report error status, available via ``#include ``. EPICS API --------- .. c:function:: 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. .. c:function:: int iocsh(const char *script) Interactive IOC shell. This can optionally be called after :func:`iocInit` with a startup script as the `script` argument, or with ``NULL`` to provide an interactive shell for the IOC. Returns -1 on error, 0 on success. .. c:macro:: initHookAtEnd EPICS event triggered at the end of IOC initialisation.