1GETDIRENTRIES(3)           Linux Programmer's Manual          GETDIRENTRIES(3)
2
3
4

NAME

6       getdirentries  - get directory entries in a filesystem independent for‐
7       mat
8

SYNOPSIS

10       #define _BSD_SOURCE or #define _SVID_SOURCE
11       #include <dirent.h>
12
13       ssize_t getdirentries(int fd, char *buf, size_t nbytes , off_t *basep);
14

DESCRIPTION

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

RETURN VALUE

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

ERRORS

26       See the Linux library source code for details.
27

CONFORMING TO

29       Not in POSIX.1-2001.  Present on the BSDs, and  a  few  other  systems.
30       Use opendir(3) and readdir(3) instead.
31

SEE ALSO

33       lseek(2), open(2), feature_test_macros(7)
34
35
36
37BSD/MISC                          1993-07-22                  GETDIRENTRIES(3)
Impressum