Museum

Home

Lab Overview

Retrotechnology Articles

⇒ Online Manual

Media Vault

Software Library

Restoration Projects

Artifacts Sought



FTW(3C)                  DOMAIN/IX SYS5                   FTW(3C)



NAME
     ftw - walk a file tree

USAGE
     #include <ftw.h>

     int ftw(path, fn, depth)
     char *path;
     int (*fn) ();
     int depth;


DESCRIPTION
     Ftw descends the directory hierarchy rooted in path recur-
     sively.  For each object in the hierarchy, ftw calls fn,
     passing it a pointer to a null-terminated character string
     that contains the name of the object, a pointer to a stat
     structure (see stat(2)) that contains information about the
     object, and an integer.  Possible values of the integer, as
     defined in the <ftw.h> header file, are FTW_F for a file,
     FTW_D for a directory, FTW_DNR for a directory that cannot
     be read, and FTW_NS for an object that stat could not
     operate on.  If the integer is FTW_DNR, descendants of that
     directory will not be processed.  If the integer is FTW_NS,
     the stat




























Printed 12/4/86                                             FTW-1





Typewritten Software • bear@typewritten.org • Edmonds, WA 98026