Annotation of 42BSD/lib/libc/gen/telldir.c, revision 1.1

1.1     ! root        1: #ifndef lint
        !             2: static char sccsid[] = "@(#)telldir.c  4.5 (Berkeley) 7/1/83";
        !             3: #endif
        !             4: 
        !             5: #include <sys/param.h>
        !             6: #include <sys/dir.h>
        !             7: 
        !             8: /*
        !             9:  * return a pointer into a directory
        !            10:  */
        !            11: long
        !            12: telldir(dirp)
        !            13:        DIR *dirp;
        !            14: {
        !            15:        extern long lseek();
        !            16: 
        !            17:        return (lseek(dirp->dd_fd, 0L, 1) - dirp->dd_size + dirp->dd_loc);
        !            18: }

unix.superglobalmegacorp.com

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