Back to index

glibc  2.9
Functions
getdents.c File Reference
#include <stddef.h>
#include <errno.h>
#include <sys/types.h>
#include <unistd.h>

Go to the source code of this file.

Functions

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

Function Documentation

ssize_t __getdents ( int  fd,
char *  buf,
size_t  nbytes 
)

Definition at line 25 of file getdents.c.

{
  return getdirent (fd, buf, count);
}

Here is the call graph for this function:

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

Definition at line 27 of file getdents.c.

{
  if (basep)
    *basep = __lseek (fd, (off_t) 0, SEEK_CUR);

  return __getdents (fd, buf, nbytes);
}

Here is the call graph for this function: