Back to index

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

Go to the source code of this file.

Functions

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

Function Documentation

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

Definition at line 24 of file getdents.c.

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

  return (ssize_t) __read (fd, buf, nbytes);
}

Here is the call graph for this function: