Back to index

glibc  2.9
Defines | Functions
getdirentries.c File Reference
#include <dirent.h>
#include <unistd.h>
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.


#define GETDIRENTRIES   getdirentries
#define __GETDENTS   __getdents


ssize_t GETDIRENTRIES (int fd, char *buf, size_t nbytes, off_t *basep)

Define Documentation

#define __GETDENTS   __getdents

Definition at line 24 of file getdirentries.c.

#define GETDIRENTRIES   getdirentries

Definition at line 23 of file getdirentries.c.

Function Documentation

ssize_t GETDIRENTRIES ( int  fd,
char *  buf,
size_t  nbytes,
off_t basep 

Definition at line 31 of file getdirentries.c.

  off_t base = __lseek (fd, (off_t) 0, SEEK_CUR);
  ssize_t result;

  result = __GETDENTS (fd, buf, nbytes);

  if (result != -1)
    *basep = base;

  return result;

Here is the call graph for this function: