xref: /titanic_44/usr/src/lib/libast/common/comp/transition.c (revision 986fd29a0dc13f7608ef7f508f6e700bd7bc2720)
1 /***********************************************************************
2 *                                                                      *
3 *               This software is part of the ast package               *
4 *           Copyright (c) 1985-2007 AT&T Knowledge Ventures            *
5 *                      and is licensed under the                       *
6 *                  Common Public License, Version 1.0                  *
7 *                      by AT&T Knowledge Ventures                      *
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 *                   Phong Vo <kpv@research.att.com>                    *
20 *                                                                      *
21 ***********************************************************************/
22 #pragma prototyped
23 
24 /*
25  * transient code to aid transition between releases
26  */
27 
28 #include <ast.h>
29 
30 #if defined(__EXPORT__)
31 #define extern	__EXPORT__
32 #endif
33 
34 #define STUB		1
35 
36 /*
37  * 2006-09-28
38  *
39  *	on some systems the _std_strtol iffe changed (due to a faulty
40  *	test prototype) and the cause programs dynamically linked to
41  *	an updated -last to fail at runtime with missing _ast_strtol etc.
42  */
43 
44 #if !_std_strtol
45 
46 #ifndef strtol
47 #undef	STUB
48 extern long
49 _ast_strtol(const char* a, char** b, int c)
50 {
51 	return strtol(a, b, c);
52 }
53 #endif
54 
55 #ifndef strtoul
56 #undef	STUB
57 extern unsigned long
58 _ast_strtoul(const char* a, char** b, int c)
59 {
60 	return strtoul(a, b, c);
61 }
62 #endif
63 
64 #ifndef strtoll
65 #undef	STUB
66 extern intmax_t
67 _ast_strtoll(const char* a, char** b, int c)
68 {
69 	return strtoll(a, b, c);
70 }
71 #endif
72 
73 #ifndef strtoull
74 #undef	STUB
75 extern uintmax_t
76 _ast_strtoull(const char* a, char** b, int c)
77 {
78 	return strtoull(a, b, c);
79 }
80 #endif
81 
82 #endif
83 
84 #if STUB
85 NoN(transition)
86 #endif
87