* dir.cc (rewinddir): Always set __d_position = 0, so next
call to readdir() will restart the directory scan.
This commit is contained in:
parent
a4785603b8
commit
fe8c097112
|
@ -1,3 +1,8 @@
|
|||
Tue Nov 14 17:05:00 2000 Eric Fifer <efifer@dircon.co.uk>
|
||||
|
||||
* dir.cc (rewinddir): Always set __d_position = 0, so next
|
||||
call to readdir() will restart the directory scan.
|
||||
|
||||
Tue Nov 14 00:51:28 2000 Christopher Faylor <cgf@cygnus.com>
|
||||
|
||||
* cygheap.h (init_cygheap): New struct holding values that live in the
|
||||
|
|
|
@ -245,8 +245,8 @@ rewinddir (DIR * dir)
|
|||
{
|
||||
(void) FindClose (dir->__d_u.__d_data.__handle);
|
||||
dir->__d_u.__d_data.__handle = INVALID_HANDLE_VALUE;
|
||||
dir->__d_position = 0;
|
||||
}
|
||||
dir->__d_position = 0;
|
||||
}
|
||||
|
||||
/* closedir: POSIX 5.1.2.1 */
|
||||
|
|
Loading…
Reference in New Issue