Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ ldfhread(3x) — DG/UX 4.00

Media Vault

Software Library

Restoration Projects

Artifacts Sought



                                                             ldfhread(3x)



        _________________________________________________________________
        ldfhread                                               Subroutine
        read the file header of an executable file in DG/UX
        _________________________________________________________________


        SYNTAX

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

        int ldfhread (ldptr, filehead)
        LDFILE *ldptr;
        FILHDR *filehead;


        DESCRIPTION

        Ldfhread reads the file header of the executable file currently
        associated with ldptr into the area of memory beginning at
        filehead.

        Ldfhread returns SUCCESS or FAILURE.  Ldfhread will fail if it
        cannot read the file header.

        In most cases you can avoid using ldfhread by using the macro
        HEADER(ldptr) defined in ldfcn.h (see ldfcn (4)).  The
        information in any field, fieldname, of the file header may be
        accessed using HEADER(ldptr).fieldname or
        HEADER.(ldptr)sectionname.fieldname (for a field within a section
        descriptor).

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


        SEE ALSO

        ldclose(3X), ldopen(3X), ldshread(3X), ldsyshread(3X),
        filehdr(4), ldfcn(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