SYNOPSIS
#include <sys/types.h>
#include <dirent.h>
int readdir_r(DIR* dirp, struct dirent *entry, struct dirent **result);
int readdir64_r(DIR* dirp, struct dirent *entry, struct dirent64 **result);
DESCRIPTION
The
The
An entry for dot (.) and dot-dot (..) is returned.
If a file is removed from the directory after the most recent call
to
entry points to a struct dirent that includes the member d_name. The size of the d_name array is not specified; however, the number of bytes preceding the terminating null character cannot exceed NAME_MAX.
After a call to
PARAMETERS
- dirp
-
Points to the directory stream to be read.
- entry
-
Points to the directory entry to be filled.
- result
-
Points to the directory entry pointer which was returned in entry.
RETURN VALUES
If successful,
If one of the values in the structure to be returned cannot be represented
correctly,
CONFORMANCE
POSIX.1 (1996).
MULTITHREAD SAFETY LEVEL
MT-Safe.
PORTING ISSUES
None.
AVAILABILITY
PTC MKS Toolkit for Professional Developers
PTC MKS Toolkit for Professional Developers 64-Bit Edition
PTC MKS Toolkit for Enterprise Developers
PTC MKS Toolkit for Enterprise Developers 64-Bit Edition
SEE ALSO
- Functions:
closedir() ,opendir() ,readdir() ,rewinddir() ,scandir() ,seekdir() ,telldir()
- Miscellaneous:
- lf64
PTC MKS Toolkit 10.5 Documentation Build 40.