[ Previous | Next | Table of Contents | Index | Library Home | Legal | Search ]

Technical Reference: Base Operating System and Extensions, Volume 1

ldohseek Subroutine


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.


ldPointer Points to the LDFILE structure that was returned as the result of a successful call to ldopen or ldaopen subroutine.

Return Values

The ldohseek subroutine returns a SUCCESS or FAILURE value.

Error Codes

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.

Implementation Specifics

This subroutine is part of Base Operating System (BOS) Runtime.

Related Information

The ldlseek or ldnlseek (ldlseek or ldnlseek Subroutine) subroutine, ldrseek or ldnrseek (ldrseek or ldnrseek Subroutine)subroutine, ldsseek or ldnsseek (ldsseek or ldnsseek Subroutine) subroutine, ldtbseek (ldtbseek Subroutine) subroutine.

Subroutines, Example Programs, and Libraries in AIX 5L Version 5.1 General Programming Concepts: Writing and Debugging Programs.

[ Previous | Next | Table of Contents | Index | Library Home | Legal | Search ]