ldfhread(3) [osf1 man page]
ldfhread(3) Library Functions Manual ldfhread(3) NAME
ldfhread - read the file header of a common object file SYNOPSIS
#include <stdio.h> #include <filehdr.h> #include <syms.h> #include <ldfcn.h> int ldfhread (ldptr, filehead) LDFILE *ldptr; FILHDR *filehead; DESCRIPTION
ldfhread reads the file header of the common object file currently associated with ldptr . It reads the file header into the area of mem- ory beginning at filehead. ldfhread returns SUCCESS or FAILURE. If ldfhread cannot read the file header, it fails. Usually, ldfhread can be avoided by using the macro HEADER(ldptr) defined in <ldfcn.h> (see ldfcn(4)). Note that the information in HEADER is swapped, if necessary. The information in any field, fieldname, of the file header can be accessed using HEADER(ldptr).fieldname. The program must be loaded with the object file access routine library libmld.a. RELATED INFORMATION
ldclose(3), ldopen(3), ldfcn(4). delim off ldfhread(3)
Check Out this Related Man Page
ldclose(3) Library Functions Manual ldclose(3) NAME
ldclose, ldaclose - close a common object file SYNOPSIS
#include <stdio.h> #include <filehdr.h> #include <syms.h> #include <ldfcn.h> int ldclose (ldptr) LDFILE *ldptr; int ldaclose (ldptr) LDFILE *ldptr; DESCRIPTION
ldopen(3) and ldclose provide uniform access to simple object files and object files that are members of archive files. An archive of com- mon object files can be processed as if it is a series of simple common object files. If TYPE(ldptr) does not represent an archive file, ldclose closes the file and frees the memory allocated to the LDFILE structure associ- ated with ldptr. If TYPE(ldptr) is the magic number for an archive file and if archive has more files, ldclose reinitializes OFFSET(ldptr) to the file address of the next archive member and returns FAILURE. The LDFILE structure is prepared for a later ldopen(3). In all other cases, ldclose returns SUCCESS. ldaclose closes the file and frees the memory allocated to the LDFILE structure associated with ldptr regardless of the value of TYPE(ldptr). ldaclose always returns SUCCESS. The function is often used with ldaopen. The program must be loaded with the object file access routine library libmld.a. RELATED INFORMATION
fclose(3), ldopen(3), ldfcn(4). delim off ldclose(3)