Seeks to the optional file header of a common object file.
Object File Access Routine Library (libld.a)
#include <stdio.h>
#include <ldfcn.h>
int ldohseek ( ldPointer)
LDFILE *ldPointer;
The ldohseek subroutine seeks to the optional auxiliary header of the common object file currently associated with the ldPointer parameter. The subroutine determines the object mode of the associated file before seeking to the end of its file header.
Item | Description |
---|---|
ldPointer | Points to the LDFILE structure that was returned as the result of a successful call to ldopen or ldaopen subroutine. |
The ldohseek subroutine returns a SUCCESS or FAILURE value.
The ldohseek subroutine fails if the object file has no optional header, if the file is not a 32-bit or 64-bit object file, or if it cannot seek to the optional header.