xref: /illumos-gate/usr/src/contrib/ast/src/lib/libcmd/fts_fix.h (revision 379728489ed47862c4927c75771e767b9476c9c4)
1 /***********************************************************************
2 *                                                                      *
3 *               This software is part of the ast package               *
4 *          Copyright (c) 1992-2011 AT&T Intellectual Property          *
5 *                      and is licensed under the                       *
6 *                 Eclipse Public License, Version 1.0                  *
7 *                    by AT&T Intellectual Property                     *
8 *                                                                      *
9 *                A copy of the License is available at                 *
10 *          http://www.eclipse.org/org/documents/epl-v10.html           *
11 *         (with md5 checksum b35adb5213ca9657e911e9befb180842)         *
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 #pragma prototyped
22 /*
23  * -lcmd specific workaround to handle
24  *	fts_namelen
25  *	fts_pathlen
26  *	fts_level
27  * changing from [unsigned] short bit to [s]size_t
28  *
29  * ksh (or any other main application) that pulls in -lcmd
30  * at runtime may result in old -last running with new -lcmd
31  * which is not a good situation (tm)
32  */
33 
34 #ifndef _FTS_FIX_H
35 #define _FTS_FIX_H	1
36 
37 #include <fts.h>
38 
39 #ifdef	fts_read
40 #undef	fts_read
41 #else
42 #define _ast_fts_read	fts_read
43 #endif
44 
45 #define fts_read	_fts_read
46 
47 extern FTSENT*		fts_read(FTS*);
48 
49 #endif
50