SYS Module
Application Program Interface
2-451
2.27
SYS Module
The SYS modules manages system settings.
Functions
❏
SYS_abort. Abort program execution
❏
SYS_atexit. Stack an exit handler
❏
SYS_error. Flag error condition
❏
SYS_exit. Terminate program execution
❏
SYS_printf. Formatted output
❏
SYS_putchar. Output a single character
❏
SYS_sprintf. Formatted output to string buffer
❏
SYS_vprintf. Formatted output, variable argument list
❏
SYS_vsprintf. Output formatted data
Constants, Types,
and Structures
#define SYS_FOREVER (Uns)-1 /* wait forever */
#define SYS_POLL (Uns)0 /* don’t wait */
#define SYS_OK 0 /* no error */
#define SYS_EALLOC 1 /* memory alloc error */
#define SYS_EFREE 2 /* memory free error */
#define SYS_ENODEV 3 /* dev driver not found */
#define SYS_EBUSY 4 /* device driver busy */
#define SYS_EINVAL 5 /* invalid parameter */
#define SYS_EBADIO 6 /* I/O failure */
#define SYS_EMODE 7 /* bad mode for driver */
#define SYS_EDOMAIN 8 /* domain error */
#define SYS_ETIMEOUT 9 /* call timed out */
#define SYS_EE0F 10 /* end-of-file */
#define SYS_EDEAD 11 /* deleted obj */
#define SYS_EBADOBJ 12 /* invalid object */
#define SYS_ENOTIMPL 13 /* action not implemented */
#define SYS_ENOTFOUND 14 /* resource not found */
#define SYS_EUSER 256 /* user errors start here */
#define SYS_NUMHANDLERS 8 /* # of atexit handlers */
extern String SYS_errors[]; /* error string array */
Configuration
Properties
The following list shows the properties that can be configured in a Tconf
script, along with their types and default values. For details, see the SYS
Manager Properties heading. For descriptions of data types, see Section
1.4,