Back to index

glibc  2.9
rewinddir.c File Reference
#include <stddef.h>
#include <dirent.h>
#include <sys/types.h>
#include <unistd.h>
#include <dirstream.h>

Go to the source code of this file.


void rewinddir (DIR *dirp)

Function Documentation

void rewinddir ( DIR *  dirp)

Definition at line 28 of file rewinddir.c.

  __libc_lock_lock (dirp->lock);
  (void) __lseek (dirp->fd, (off_t) 0, SEEK_SET);
  dirp->filepos = 0;
  dirp->offset = 0;
  dirp->size = 0;
  __libc_lock_unlock (dirp->lock);

Here is the call graph for this function:

Here is the caller graph for this function: