fts.h revision 7c2fbfb345896881c631598ee3852ce9ce33fb07
/* : : generated by proto : : */
/***********************************************************************
* *
* This software is part of the ast package *
* Copyright (c) 1985-2008 AT&T Intellectual Property *
* and is licensed under the *
* Common Public License, Version 1.0 *
* by AT&T Intellectual Property *
* *
* 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> *
* *
***********************************************************************/
/*
* Glenn Fowler
* David Korn
* Phong Vo
* AT&T Research
*
* fts interface definitions
*/
#ifndef _FTS_H
#if !defined(__PROTO__)
#include <prototyped.h>
#endif
#if !defined(__LINKAGE__)
#define __LINKAGE__ /* 2004-08-11 transition */
#endif
#define _FTS_H
#include <ls.h>
/*
* fts_open flags
*/
#define FTS_LOGICAL 0 /* logical traversal, follow symlinks */
#define FTS_COMFOLLOW FTS_META
/*
* fts_info flags
*/
#define FTS_DEFAULT 0 /* ok, someone must have wanted this */
/*
* fts_set flags
*/
struct Ftsent
{
char* fts_accpath; /* path relative to . */
char* fts_name; /* file name */
char* fts_path; /* path relative to top dir */
#ifdef _FTSENT_LOCAL_PRIVATE_
#else
#endif
long fts_number; /* local numeric value */
int fts_errno; /* errno for this entry */
unsigned short fts_info; /* info flags */
unsigned short fts_namelen; /* strlen(fts_name) */
unsigned short fts_pathlen; /* strlen(fts_path) */
short fts_level; /* file tree depth, 0 at top */
#ifdef _FTSENT_PRIVATE_
#else
short _fts_pad_1; /* <ftwalk.h> compatibility */
#endif
};
struct Fts
{
int fts_errno; /* last errno */
#ifdef _FTS_PRIVATE_
#endif
};
#if _BLD_ast && defined(__EXPORT__)
#endif
extern __MANGLE__ FTS* fts_open __PROTO__((char* const*, int, int(*)(FTSENT* const*, FTSENT* const*)));
#define __MANGLE__ __LINKAGE__
#endif