FatalError(D3nfb)
FatalError --
handle fatal error for NFB drivers
Synopsis
void
FatalError(
#if NeedVarargsPrototypes
char *f, ...)
#else
f, s0, s1, s2, s3, s4, s5, s6, s7, s8, s9) /* limit of ten args */
char *f;
char *s0, *s1, *s2, *s3, *s4, *s5, *s6, *s7, *s8, *s9;
#endif
Description
FatalError( )
outputs an error message
and then immediately aborts the X server.
On SVR5 and SCO OpenServer 5,
this error message is written to to stderr.
On AIX 5L,
this error message is written
to the /tmp/logfile file.
Arguments
f
-
format string.
s0...s9
-
variable number of arguments.
Up to ten args can be specified.
Exit codes
None
Usage notes
FatalError( )
is used to handle fatal errors that occur
in an NFB driver.
It is similar to the
ErrorF(D3nfb)
routine except that it aborts the X server
after it outputs the error message.
The following example comes from the
sample nte8 driver:
if(scoPointerInitialize(pScreen, &ntePointerFuncs, NULL, TRUE) == 0)
FatalError("Cannot initialize Hardware Cursor\n");
For non-fatal errors, use the
ErrorF( )
function.
For non-fatal errors that are associated
with an errno return, use the
Error(D3nfb)
function.
Version applicability
This function is supported for NFB drivers
on all releases of SCO OpenServer 5, SVR5, and AIX 5L.
Source files
Routine source-
./os/utils.c
Driver source file-
Any driver source file.
References
Error(D3nfb),
ErrorF(D3nfb)
19 June 2005
© 2005 The SCO Group, Inc. All rights reserved.
OpenServer 6 and UnixWare (SVR5) HDK - June 2005