uderror(3X)
NAME
uderror, ud_errmsg − user-level device driver error messages
SYNOPSIS
void uderror (error, s)
int error;
char ∗s;
extern char ∗ud_errmsg[ ];
extern int udmaxerr;
DESCRIPTION
uderror produces a message on the standard error output, describing the generic user-level device driver error code provided as an argument. This error code is returned from a call to a user-level device driver service. The argument string s is printed first, then a colon and a blank, then the message and a new-line. To be of most use, the argument string should include the name of the program that incurred the error.
To simplify variant formatting of messages, the array of message strings ud_errmsg is provided; a user-level device driver error code can be used as an index in this table to get the message string without the new-line. Udmaxerr is the largest message number provided for in the table; it should be checked because new error codes may be added to the system before they are added to the table.
SEE ALSO
CX/UX Programmer’s Reference Manual