ftwalk.h revision da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968
/* : : generated by proto : : */
/***********************************************************************
* *
* This software is part of the ast package *
* Copyright (c) 1985-2007 AT&T Knowledge Ventures *
* and is licensed under the *
* Common Public License, Version 1.0 *
* by AT&T Knowledge Ventures *
* *
* A copy of the License is available at *
* (with md5 checksum 059e8cd6165cb4c31e351f2b69388fd9) *
* *
* Information and Software Systems Research *
* AT&T Research *
* Florham Park NJ *
* *
* Glenn Fowler <gsf@research.att.com> *
* David Korn <dgk@research.att.com> *
* Phong Vo <kpv@research.att.com> *
* *
***********************************************************************/
/*
* Phong Vo
* Glenn Fowler
* AT&T Research
*
* ast ftwalk interface definitions
* ftwalk was the initial improvement on ftw and nftw
* which formed the basis for the POSIX fts proposal
*
* NOTE: this file is in cahoots with the fts implementation
*/
#ifndef _FTWALK_H
#if !defined(__PROTO__)
#include <prototyped.h>
#endif
#if !defined(__LINKAGE__)
#define __LINKAGE__ /* 2004-08-11 transition */
#endif
#define _FTWALK_H
#define fts_namelen namelen
#define fts_parent parent
#define fts_pathlen pathlen
#define _FTSENT_LOCAL_PRIVATE_ /* <fts.h> internal */ \
union \
{ \
long number; /* local numeric value */ \
} local;
#define _FTSENT_PRIVATE_ /* fts internal */ \
short status; /* internal status */ \
#include <fts.h>
/*
* ftwalk() argument flags
*/
#define FTW_CHILDREN (FTS_USER<<0)
#define FTW_DELAY FTS_NOSTAT
#define FTW_DOT FTS_NOCHDIR
#define FTW_MULTIPLE FTS_ONEPATH
#define FTW_NOSEEDOTDIR FTS_NOSEEDOTDIR
#define FTW_PHYSICAL FTS_PHYSICAL
#define FTW_SEEDOTDIR FTS_SEEDOTDIR
/*
* Ftw_t.info type bits
*/
/*
* Ftw_t.status entry values
*/
/*
* Ftw_t.status return values
*/
#define FTW_FOLLOW FTS_FOLLOW
#define FTW_NOPOST FTS_NOPOSTORDER
#if _BLD_ast && defined(__EXPORT__)
#endif
#define __MANGLE__ __LINKAGE__
#endif