This header file contains all the function prototypes for the executable loading functions described below, and all other symbol definitions required to use the executable program interpreter functions. Ths exec.h header file also defines the following error codes, returned from the executable loading functions:
- EX_NOT_EXECUTABLE
- Indicates that the file is not in any recognized executable format.
- EX_WRONG_ARCH
- Indicates that the file is in a recognized executable file format, but it is an executable for a different processor architecture.
- EX_CORRUPT
- Indicates that the file appears to be an executable file in a recognized format, but something is seriously wrong with it (e.g., the file was truncated or mangled).
- EX_BAD_LAYOUT
- Indicates that something is wrong with the memory or file image layout described by the executable file.