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