|
|
1.1 ! root 1: /* Copyright (c) 1982 Regents of the University of California */ ! 2: ! 3: static char sccsid[] = "@(#)telldir.c 4.1 2/21/82"; ! 4: ! 5: static char SCCSID[] = "@(#)telldir.c 2.1 DKHOST 85/01/15"; ! 6: ! 7: #include <sys/types.h> ! 8: #include "ndir.h" ! 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: }
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.