*nix Documentation Project
·  Home
 +   man pages
·  Linux HOWTOs
·  FreeBSD Tips
·  *niX Forums

  man pages->Linux man pages -> getdirentries (3)              
Title
Content
Arch
Section
 

GETDIRENTRIES(3)

Contents


NAME    [Toc]    [Back]

       getdirentries  - get directory entries in a filesystem independent format

SYNOPSIS    [Toc]    [Back]

       #define _BSD_SOURCE or #define _SVID_SOURCE
       #include <dirent.h>

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

DESCRIPTION    [Toc]    [Back]

       Read directory entries from the directory specified by fd into buf.  At
       most nbytes are read.  Reading starts at offset *basep, and  *basep  is
       updated with the new position after reading.

RETURN VALUE    [Toc]    [Back]

       getdirentries  returns the number of bytes read or zero when at the end
       of the directory.  If an error occurs, -1 is returned, and errno is set
       appropriately.

ERRORS    [Toc]    [Back]

       See the Linux library source code for details.

SEE ALSO    [Toc]    [Back]

      
      
       open(2), lseek(2)



BSD/MISC			  1993-07-22		      GETDIRENTRIES(3)
[ Back ]
 Similar pages
Name OS Title
getdents FreeBSD get directory entries in a file system independent format
getdirentries FreeBSD get directory entries in a file system independent format
getdirentries Tru64 Get directory entries in a file-system independent format.
getdents IRIX read directory entries and put in a file system independent format
dirent HP-UX format of directory streams and directory entries
getdirentri HP-UX get entries from a directory in a file-systemindependent format
sharefs IRIX enable a filesystem/directory to be accessible by another host.
dirent IRIX file system independent directory entry
getdents Linux get directory entries
rm FreeBSD remove directory entries
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service