Defines | |
#define | BRLERR_SUCCESS 0 /**< Success */ |
#define | BRLERR_NOMEM 1 /**< Not enough memory */ |
#define | BRLERR_TTYBUSY 2 /**< Already a connection running in this tty */ |
#define | BRLERR_UNKNOWN_INSTRUCTION 3 /**< Not implemented in protocol */ |
#define | BRLERR_ILLEGAL_INSTRUCTION 4 /**< Forbiden in current mode */ |
#define | BRLERR_INVALID_PARAMETER 5 /**< Out of range or have no sense */ |
#define | BRLERR_INVALID_PACKET 6 /**< Invalid size */ |
#define | BRLERR_RAWNOTSUPP 7 /**< Raw mode not supported by loaded driver */ |
#define | BRLERR_KEYSNOTSUPP 8 /**< Reading of key codes not supported by loaded driver */ |
#define | BRLERR_CONNREFUSED 9 /**< Connection refused */ |
#define | BRLERR_OPNOTSUPP 10 /**< Operation not supported */ |
#define | BRLERR_GAIERR 11 /**< Getaddrinfo error */ |
#define | BRLERR_LIBCERR 12 /**< Libc error */ |
#define | BRLERR_UNKNOWNTTY 13 /**< Couldn't find out the tty number */ |
#define | brlapi_errno (*brlapi_errno_location ()) |
Functions | |
void | brlapi_perror (const char *s) |
int * | brlapi_errno_location (void) |
Variables | |
const char * | brlapi_errlist [] |
const int | brlapi_nerr |
int | brlapi_errno |
|
cheat about the brlapi_errno C token |
|
Connection refused |
|
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 |
|
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 brlapi.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() |
|
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 |