Seeks to an indexed or named section of a common object file.
Object File Access Routine Library (libld.a)
#include <stdio.h> #include <filehdr.h> #include <ldfcn.h> int ldsseek (ldPointer, SectionIndex) LDFILE *ldPointer; unsigned short SectionIndex; int ldnsseek (ldPointer, SectionName) LDFILE *ldPointer; char *SectionName;
The ldsseek subroutine seeks to the section specified by the SectionIndex parameter of the common object file currently associated with the ldPointer parameter.
The ldnsseek subroutine seeks to the section specified by the SectionName parameter.
The ldsseek and ldnsseek subroutines return a success or failure value.
The ldsseek subroutine fails if the SectionIndex parameter is greater than the number of sections in the object file. The ldnsseek subroutine fails if there is no section name corresponding with the SectionName parameter. Either function fails if there is no section data for the specified section or if it cannot seek to the specified section.
Note: The first section has an index of 1.
These subroutines are part of Base Operating System (BOS) Runtime.
The ldlseek or ldnlseek subroutine, ldohseek subroutine, ldrseek or ldnrseek subroutine, ldtbseek subroutine.
Subroutines Overview in AIX Version 4.3 General Programming Concepts: Writing and Debugging Programs.