/***********************************************************************1* *2* This software is part of the ast package *3* Copyright (c) 1985-2011 AT&T Intellectual Property *4* and is licensed under the *5* Eclipse Public License, Version 1.0 *6* by AT&T Intellectual Property *7* *8* A copy of the License is available at *9* http://www.eclipse.org/org/documents/epl-v10.html *10* (with md5 checksum b35adb5213ca9657e911e9befb180842) *11* *12* Information and Software Systems Research *13* AT&T Research *14* Florham Park NJ *15* *16* Glenn Fowler <[email protected]> *17* David Korn <[email protected]> *18* Phong Vo <[email protected]> *19* *20***********************************************************************/21#pragma prototyped22/*23* ftw,nftw over ftwalk24*/2526#ifndef _FTW_H27#define _FTW_H2829#define FTW FTWALK30#include <ftwalk.h>31#undef FTW3233#define FTW_SLN (FTW_SL|FTW_NR)3435#define FTW_PHYS (FTW_PHYSICAL)36#define FTW_CHDIR (FTW_DOT)37#define FTW_DEPTH (FTW_POST)38#define FTW_OPEN (0)3940struct FTW41{42int quit;43int base;44int level;45};4647#define FTW_SKD FTW_SKIP48#define FTW_PRUNE FTW_SKIP4950#if _BLD_ast && defined(__EXPORT__)51#define extern __EXPORT__52#endif5354extern int ftw(const char*, int(*)(const char*, const struct stat*, int), int);55extern int nftw(const char*, int(*)(const char*, const struct stat*, int, struct FTW*), int, int);5657#undef extern5859#endif606162