/*	@(#)ftw.h	13.1 (RC International) 91/02/01 	*/

#ifndef _FTW_H
#define _FTW_H

/*
 *	Codes for the third argument to the user-supplied function
 *	which is passed as the second argument to ftw
 */

#define	FTW_F	0	/* file */
#define	FTW_D	1	/* directory */
#define	FTW_DNR	2	/* directory without read permission */
#define	FTW_NS	3	/* unknown type, stat failed */

#if defined(__STDC__)

#include <sys/types.h>
#include <sys/stat.h>
extern int 
ftw(char *, int (*)(char *, struct stat *, int), int);

#else /* Not __STDC__ */

extern int ftw();

#endif /* __STDC__ */

#endif /* _FTW_H */
