1: /* 2: * static char sccsid[] = "@(#)telldir.c 4.1 2/21/82"; 3: */ 4: 5: #include <sys/types.h> 6: #include <ndir.h> 7: 8: extern long lseek(); /* needed for pdp 11s -- ikonas!mcm */ 9: 10: /* 11: * return a pointer into a directory 12: */ 13: long 14: telldir(dirp) 15: DIR *dirp; 16: { 17: return (lseek(dirp->dd_fd, 0L, 1) - dirp->dd_size + dirp->dd_loc); 18: }