Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ ldahread(3x) — DG/UX 4.00

Media Vault

Software Library

Restoration Projects

Artifacts Sought



                                                             ldahread(3x)



        _________________________________________________________________
        ldahread                                               Subroutine
        Read the archive header of a member of an archive file
        _________________________________________________________________


        SYNTAX

        #include <stdio.h>
        #include <ar.h>
        #include <sys/types.h>
        #include <filehdr.h>
        #include <ldfcn.h>

        int ldahread (ldptr, arhead)
        LDFILE *ldptr;
        ARCHDR *arhead;


        DESCRIPTION

        If TYPE(ldptr) is the archive file magic number, ldahread reads
        the archive header of the executable file currently associated
        with ldptr into the area of memory beginning at arhead.

        Ldahread returns SUCCESS or FAILURE.  Ldahread will fail if
        TYPE(ldptr) does not represent an archive file or if it cannot
        read the archive header.

        The program must be loaded with the executable file access
        routine library libld.a.


        SEE ALSO

        ldclose (3X), ldopen(3X), ldfcn(4), ar(4).


        CAVEATS

        The executable file format is used only for executable files
        (load modules), not for object files.












        DG/UX 4.00                                                 Page 1
               Licensed material--property of copyright holder(s)



Typewritten Software • bear@typewritten.org • Edmonds, WA 98026