xref: /titanic_44/usr/src/lib/libast/amd64/include/ast/ftw.h (revision 54925bf60766fbb4f1f2d7c843721406a7b7a3fb)
1 
2 /* : : generated by proto : : */
3 /***********************************************************************
4 *                                                                      *
5 *               This software is part of the ast package               *
6 *           Copyright (c) 1985-2007 AT&T Knowledge Ventures            *
7 *                      and is licensed under the                       *
8 *                  Common Public License, Version 1.0                  *
9 *                      by AT&T Knowledge Ventures                      *
10 *                                                                      *
11 *                A copy of the License is available at                 *
12 *            http://www.opensource.org/licenses/cpl1.0.txt             *
13 *         (with md5 checksum 059e8cd6165cb4c31e351f2b69388fd9)         *
14 *                                                                      *
15 *              Information and Software Systems Research               *
16 *                            AT&T Research                             *
17 *                           Florham Park NJ                            *
18 *                                                                      *
19 *                 Glenn Fowler <gsf@research.att.com>                  *
20 *                  David Korn <dgk@research.att.com>                   *
21 *                   Phong Vo <kpv@research.att.com>                    *
22 *                                                                      *
23 ***********************************************************************/
24 
25 /*
26  * ftw,nftw over ftwalk
27  */
28 
29 #ifndef _FTW_H
30 #if !defined(__PROTO__)
31 #include <prototyped.h>
32 #endif
33 #if !defined(__LINKAGE__)
34 #define __LINKAGE__		/* 2004-08-11 transition */
35 #endif
36 
37 #define _FTW_H
38 
39 #define FTW		FTWALK
40 #include <ftwalk.h>
41 #undef			FTW
42 
43 #define FTW_SLN		(FTW_SL|FTW_NR)
44 
45 #define FTW_PHYS	(FTW_PHYSICAL)
46 #define FTW_CHDIR	(FTW_DOT)
47 #define FTW_DEPTH	(FTW_POST)
48 #define FTW_OPEN	(0)
49 
50 struct FTW
51 {
52 	int		quit;
53 	int		base;
54 	int		level;
55 };
56 
57 #define FTW_SKD		FTW_SKIP
58 #define FTW_PRUNE	FTW_SKIP
59 
60 #if _BLD_ast && defined(__EXPORT__)
61 #undef __MANGLE__
62 #define __MANGLE__ __LINKAGE__		__EXPORT__
63 #endif
64 
65 extern __MANGLE__ int	ftw __PROTO__((const char*, int(*)(const char*, const struct stat*, int), int));
66 extern __MANGLE__ int	nftw __PROTO__((const char*, int(*)(const char*, const struct stat*, int, struct FTW*), int, int));
67 
68 #undef __MANGLE__
69 #define __MANGLE__ __LINKAGE__
70 
71 #endif
72