15929Smckusick /* Copyright (c) 1982 Regents of the University of California */ 25929Smckusick 3*6370Smckusic static char sccsid[] = "@(#)telldir.c 4.2 03/30/82"; 45929Smckusick 5*6370Smckusic #include <sys/param.h> 65929Smckusick #include <ndir.h> 75929Smckusick 85929Smckusick /* 95929Smckusick * return a pointer into a directory 105929Smckusick */ 115929Smckusick long 125929Smckusick telldir(dirp) 135929Smckusick DIR *dirp; 145929Smckusick { 155929Smckusick return (lseek(dirp->dd_fd, 0L, 1) - dirp->dd_size + dirp->dd_loc); 165929Smckusick } 17