Back to index

glibc  2.9
seekdir.c File Reference
#include <errno.h>
#include <stddef.h>
#include <dirent.h>
#include <unistd.h>
#include <dirstream.h>

Go to the source code of this file.


void seekdir (DIR *dirp, long int pos)

Function Documentation

void seekdir ( DIR *  dirp,
long int  pos 

Definition at line 28 of file seekdir.c.

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

Here is the call graph for this function: