fts.h revision 3e14f97f673e8a630f076077de35afdd43dc1587
/* : : generated by proto : : */
/***********************************************************************
* *
* This software is part of the ast package *
* Copyright (c) 1985-2010 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 <ast_std.h>
#include <ast_fs.h>
#include <ast_mode.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; /* old fts_namelen */
unsigned short _fts_pathlen; /* old fts_pathlen */
short _fts_level; /* old fts_level */
short _fts_status; /* <ftwalk.h> compatibility */
#ifdef _FTSENT_PRIVATE_
#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