getdirentries(3) Library Functions Manual getdirentries(3) getdirentries - , C (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 , Kirill Rekhov ; GNU (GNU General Public License - GPL, 3 ) , - . - , , () () () <>. Linux 6.9.1 2 2024 . getdirentries(3)