Annotation of researchv9/jerq/sgs/libld/ldfhread.c, revision 1.1

1.1     ! root        1: #include    <stdio.h>
        !             2: #include    "filehdr.h"
        !             3: #include    "ldfcn.h"
        !             4: 
        !             5: int
        !             6: ldfhread(ldptr, filehead)
        !             7: 
        !             8: LDFILE    *ldptr;
        !             9: FILHDR    *filehead; 
        !            10: 
        !            11: {
        !            12:     extern int         fread( );
        !            13:     extern int         fseek( );
        !            14: 
        !            15:     extern int         vldldptr( );
        !            16: 
        !            17:     if (vldldptr(ldptr) == SUCCESS) {
        !            18:        if (FSEEK(ldptr, 0L, BEGINNING) == OKFSEEK) {
        !            19:            if (FREAD(filehead, FILHSZ, 1, ldptr) == 1) {
        !            20:                return(SUCCESS);
        !            21:            }
        !            22:        }
        !            23:     }
        !            24: 
        !            25:     return(FAILURE);
        !            26: }
        !            27: 
        !            28: static char ID[ ] = "@(#) ldfhread.c: 1.1 1/7/82";

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.