1*42383Sbostic /*- 2*42383Sbostic * Copyright (c) 1990 The Regents of the University of California. 3*42383Sbostic * All rights reserved. 4*42383Sbostic * 5*42383Sbostic * %sccs.include.redist.c% 6*42383Sbostic */ 7*42383Sbostic 8*42383Sbostic #if defined(LIBC_SCCS) && !defined(lint) 9*42383Sbostic static char sccsid[] = "@(#)rewinddir.c 5.1 (Berkeley) 05/25/90"; 10*42383Sbostic #endif /* LIBC_SCCS and not lint */ 11*42383Sbostic 12*42383Sbostic #include <sys/types.h> 13*42383Sbostic #include <dirent.h> 14*42383Sbostic 15*42383Sbostic void 16*42383Sbostic rewinddir(dirp) 17*42383Sbostic DIR *dirp; 18*42383Sbostic { 19*42383Sbostic extern long _rewinddir; 20*42383Sbostic 21*42383Sbostic _seekdir((dirp), _rewinddir); 22*42383Sbostic _rewinddir = telldir(dirp); 23*42383Sbostic } 24