|
|
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: }
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.