getdirentries(3) Library Functions Manual getdirentries(3) getdirentries - , LIBRARY Standard C library (libc, -lc) #include ssize_t getdirentries(int fd, char buf[restrict .nbytes], size_t nbytes, off_t *restrict basep); glibc (. feature_test_macros(7)): getdirentries(): glibc 2.19: _DEFAULT_SOURCE glibc 2.19 : _BSD_SOURCE || _SVID_SOURCE ( nbytes ) , fd, buf. *basep *basep . 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 to indicate the error. Linux. attributes(7). +----------------------------+----------------------------------------------------------+--------------------------+ | | | | +----------------------------+----------------------------------------------------------+--------------------------+ |getdirentries() | | MT-Safe | +----------------------------+----------------------------------------------------------+--------------------------+ BSD. Use opendir(3) and readdir(3) instead. . lseek(2), open(2) Azamat Hackimov , Dmitry Bolkhovskikh , Vladislav , Yuri Kozlov ; GNU 3 , . . , , . Linux man-pages 6.06 31 2023 . getdirentries(3)