fts_set()

set further processing options on file 

Function


SYNOPSIS

#include <fts.h>

int fts_set(FTS *sp, FTSENT *p, int instr);


DESCRIPTION

The fts_set() function sets further processing options on a given file.


PARAMETERS

sp 

Represents the file hierarchy itself.

p 

Represents the file in the hierarchy to set options on.

instr 

Must be a set of the following file processing options:

FTS_AGAIN 

This causes the file to be re-visited. Any file type may be revisited. This option is normally used for post-order directory visits and is only meaningful for the last file returned from fts_read().

FTS_FOLLOW 

This option is ignored because there are no symbolic links on Windows.

FTS_SKIP 

No decedents of this file are visited. The file may be one of the last files returned by fts_read() or fts_children().


RETURN VALUES

The fts_set() function returns 0 if successful, and -1, if an error occurred.

EINVAL 

The option list was invalid.


CONFORMANCE

4.4BSD


MULTITHREAD SAFETY LEVEL

Unsafe.


PORTING ISSUES

FTS_FOLLOW is ignored because there are no symbolic links on Windows.


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_read(), qsort(), stat()


PTC MKS Toolkit 10.5 Documentation Build 40.