xref: /titanic_41/usr/src/lib/libcmd/common/fts_fix.h (revision 5203bc321053fb87d7073c7640548fab73634793)
1 /***********************************************************************
2 *                                                                      *
3 *               This software is part of the ast package               *
4 *          Copyright (c) 1992-2010 AT&T Intellectual Property          *
5 *                      and is licensed under the                       *
6 *                  Common Public License, Version 1.0                  *
7 *                    by AT&T Intellectual Property                     *
8 *                                                                      *
9 *                A copy of the License is available at                 *
10 *            http://www.opensource.org/licenses/cpl1.0.txt             *
11 *         (with md5 checksum 059e8cd6165cb4c31e351f2b69388fd9)         *
12 *                                                                      *
13 *              Information and Software Systems Research               *
14 *                            AT&T Research                             *
15 *                           Florham Park NJ                            *
16 *                                                                      *
17 *                 Glenn Fowler <gsf@research.att.com>                  *
18 *                  David Korn <dgk@research.att.com>                   *
19 *                                                                      *
20 ***********************************************************************/
21 /*
22  * -lcmd specific workaround to handle
23  *	fts_namelen
24  *	fts_pathlen
25  *	fts_level
26  * changing from [unsigned] short bit to [s]size_t
27  *
28  * ksh (or any other main application) that pulls in -lcmd
29  * at runtime may result in old -last running with new -lcmd
30  * which is not a good situation (tm)
31  */
32 
33 #ifndef _FTS_FIX_H
34 #define _FTS_FIX_H	1
35 
36 #include <fts.h>
37 
38 #ifdef	fts_read
39 #undef	fts_read
40 #else
41 #define _ast_fts_read	fts_read
42 #endif
43 
44 #define fts_read	_fts_read
45 
46 extern FTSENT*		fts_read(FTS*);
47 
48 #endif
49