BRLERR_ILLEGAL_INSTRUCTION(3)

BRLERR_ILLEGAL_INSTRUCTION3

How to handle errors which might very well happen

Part of brlapi_error(3).

Detailed Description

Define Documentation

#define brlapi_errno (*brlapi_errno_location ())

cheat about the brlapi_errno C token

#define BRLERR_CONNREFUSED 9

Connection refused

#define BRLERR_GAIERR 11

Getaddrinfo error

#define BRLERR_ILLEGAL_INSTRUCTION 4

Forbiden in current mode

#define BRLERR_INVALID_PACKET 6

Invalid size

#define BRLERR_INVALID_PARAMETER 5

Out of range or have no sense

#define BRLERR_KEYSNOTSUPP 8

Reading of key codes not supported by loaded driver

#define BRLERR_LIBCERR 12

Libc error

#define BRLERR_NOMEM 1

Not enough memory

#define BRLERR_OPNOTSUPP 10

Operation not supported

#define BRLERR_RAWNOTSUPP 7

Raw mode not supported by loaded driver

#define BRLERR_SUCCESS 0

Success

#define BRLERR_TTYBUSY 2

Already a connection running in this tty

#define BRLERR_UNKNOWN_INSTRUCTION 3

Not implemented in protocol

#define BRLERR_UNKNOWNTTY 13

Couldn't find out the tty number

Function Documentation

int* brlapi_errno_location (void)

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

void brlapi_perror (const char * s)

Print a BrlAPI error message

brlapi_perror() reads brlapi_errno, and acts just like perror()

Variable Documentation

const char* brlapi_errlist[]

Error message list

These are the string constants used by brlapi_perror()

int brlapi_errno

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.

const int brlapi_nerr

Number of error messages

From libbrlapi-dev 3.4.1-4 in Debian 3.1 (Sarge). Parsed by carta from the page's man source.