Writes error messages to standard error.
The execerror command is executed by an exec subroutine when the load of the real program is unsuccessful. It is passed the name of the file being executed and zero or more loader error message strings. Each loader error message string contains an error number followed by error data.
The execerror command is used as follows:
char *buffer; buffer = "execerror" ; buffer = "name of program that failed to load"; loadquery(L_GETMESSAGES, &buffer, sizeof buffer -8); execvp("/usr/sbin/execerror",buffer);
This sample code causes the application to terminate after the messages are written to standard error.
|/usr/sbin/execerror||Contains the execerror command.|
The exec subroutine, loadquery subroutine.