fts_read()

get information on file in a directory hierarchy 

Function


SYNOPSIS

#include <fts.h>

FTSENT *fts_read(register FTS *sp);


DESCRIPTION

The fts_read() function is used to get information on a particular file in a directory hierarchy. Directories are visited at least twice, once in pre-order, before any of their descendants are visited, and once in post-order, after all of their descendants are visited. All other files are visited at least once.


PARAMETERS

sp 

Represents the file hierarchy itself.


RETURN VALUES

The fts_read() function returns a pointer to an FTSENT structure describing a file in the hierarchy if successful. The fts_read() function may also fail and set errno for any of the errors that the chdir(), malloc(), opendir(), readdir(), and stat() functions specify.

0 

EOF was reached.


CONFORMANCE

4.4BSD


MULTITHREAD SAFETY LEVEL

Unsafe.


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:
chdir(), fts_children(), fts_close(), fts_open(), fts_set(), qsort(), stat()


PTC MKS Toolkit 10.4 Documentation Build 39.