Defines | |
#define | BRLERR_SUCCESS 0 |
#define | BRLERR_NOMEM 1 |
#define | BRLERR_TTYBUSY 2 |
#define | BRLERR_UNKNOWN_INSTRUCTION 3 |
#define | BRLERR_ILLEGAL_INSTRUCTION 4 |
#define | BRLERR_INVALID_PARAMETER 5 |
#define | BRLERR_INVALID_PACKET 6 |
#define | BRLERR_RAWNOTSUPP 7 |
#define | BRLERR_KEYSNOTSUPP 8 |
#define | BRLERR_CONNREFUSED 9 |
#define | BRLERR_OPNOTSUPP 10 |
#define | BRLERR_GAIERR 11 |
#define | BRLERR_LIBCERR 12 |
#define | BRLERR_UNKNOWNTTY 13 |
#define | BRLERR_PROTOCOL_VERSION 14 |
#define | BRLERR_EOF 15 |
Functions | |
void | brlapi_perror (const char *s) |
int * | brlapi_errno_location (void) |
const char * | brlapi_strerror (void) |
Variables | |
const char * | brlapi_errlist [] |
const int | brlapi_nerr |
int | brlapi_errno |
|
Connection refused |
|
Unexpected end of file |
|
Getaddrinfo error |
|
Forbiden in current mode |
|
Invalid size |
|
Out of range or have no sense |
|
Reading of key codes not supported by loaded driver |
|
Libc error |
|
Not enough memory |
|
Operation not supported |
|
Bad protocol version |
|
Raw mode not supported by loaded driver |
|
Success |
|
Already a connection running in this tty |
|
Not implemented in protocol |
|
Couldn't find out the tty number |
|
Get per-thread errno location In multithreaded software, brlapi_errno is thread specific, so api.h cheats about the brlapi_errno token and actually calls brlapi_errno_location() This gets the thread specific location of global variable brlapi_errno |
|
Print a BrlAPI error message brlapi_perror() reads brlapi_errno, and acts just like perror() |
|
Get plain error message brlapi_strerror reads brlapi_errno, and returns the corresponding plain error message. |
|
Error message list These are the string constants used by brlapi_perror() |
|
Global variable brlapi_errno brlapi_errno is a global left-value containing the last error code. It is not reset to BRLERR_SUCCESS on success. |
|
Number of error messages |