Annotation of researchv9/jerq/sgs/libld/ldohseek.c, revision 1.1.1.1

1.1       root        1: #include       <stdio.h>
                      2: #include       "filehdr.h"
                      3: #include       "ldfcn.h"
                      4: 
                      5: int
                      6: ldohseek(ldptr)
                      7: 
                      8: LDFILE         *ldptr;
                      9: 
                     10: {
                     11:     extern int         fseek( );
                     12: 
                     13:     extern int         vldldptr( );
                     14: 
                     15:     if (vldldptr(ldptr) == SUCCESS) {
                     16:        if (HEADER(ldptr).f_opthdr != 0) {
                     17:            if (FSEEK(ldptr, (long) FILHSZ, BEGINNING) == OKFSEEK) {
                     18:                return(SUCCESS);
                     19:            }
                     20:        }
                     21:     }
                     22: 
                     23:     return(FAILURE);
                     24: }
                     25: 
                     26: static char ID[ ] = "@(#) ldohseek.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.