execerror Command

Purpose

Writes error messages to standard error.

Syntax

execerror

Description

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.

Examples

The execerror command is used as follows:

char *buffer[1024];
buffer[0] = "execerror" ;
buffer[1] = "name of program that failed to load";
loadquery(L_GETMESSAGES, &buffer[2], sizeof buffer -8);
execvp("/usr/sbin/execerror",buffer);

This sample code causes the application to terminate after the messages are written to standard error.

Files

Item Description
/usr/sbin/execerror Contains the execerror command.