142383Sbostic /*- 2*62735Sbostic * Copyright (c) 1990, 1993 3*62735Sbostic * The Regents of the University of California. All rights reserved. 442383Sbostic * 542383Sbostic * %sccs.include.redist.c% 642383Sbostic */ 742383Sbostic 842383Sbostic #if defined(LIBC_SCCS) && !defined(lint) 9*62735Sbostic static char sccsid[] = "@(#)rewinddir.c 8.1 (Berkeley) 06/08/93"; 1042383Sbostic #endif /* LIBC_SCCS and not lint */ 1142383Sbostic 1242383Sbostic #include <sys/types.h> 1342383Sbostic #include <dirent.h> 1442383Sbostic 1542383Sbostic void rewinddir(dirp)1642383Sbosticrewinddir(dirp) 1742383Sbostic DIR *dirp; 1842383Sbostic { 1942383Sbostic 2062720Smckusick _seekdir(dirp, dirp->dd_rewind); 2162720Smckusick dirp->dd_rewind = telldir(dirp); 2242383Sbostic } 23