xref: /onnv-gate/usr/src/lib/libast/common/comp/transition.c (revision 12068:08a39a083754)
14887Schin /***********************************************************************
24887Schin *                                                                      *
34887Schin *               This software is part of the ast package               *
4*12068SRoger.Faulkner@Oracle.COM *          Copyright (c) 1985-2010 AT&T Intellectual Property          *
54887Schin *                      and is licensed under the                       *
64887Schin *                  Common Public License, Version 1.0                  *
78462SApril.Chin@Sun.COM *                    by AT&T Intellectual Property                     *
84887Schin *                                                                      *
94887Schin *                A copy of the License is available at                 *
104887Schin *            http://www.opensource.org/licenses/cpl1.0.txt             *
114887Schin *         (with md5 checksum 059e8cd6165cb4c31e351f2b69388fd9)         *
124887Schin *                                                                      *
134887Schin *              Information and Software Systems Research               *
144887Schin *                            AT&T Research                             *
154887Schin *                           Florham Park NJ                            *
164887Schin *                                                                      *
174887Schin *                 Glenn Fowler <gsf@research.att.com>                  *
184887Schin *                  David Korn <dgk@research.att.com>                   *
194887Schin *                   Phong Vo <kpv@research.att.com>                    *
204887Schin *                                                                      *
214887Schin ***********************************************************************/
224887Schin #pragma prototyped
234887Schin 
244887Schin /*
254887Schin  * transient code to aid transition between releases
264887Schin  */
274887Schin 
284887Schin #include <ast.h>
294887Schin 
304887Schin #if defined(__EXPORT__)
314887Schin #define extern	__EXPORT__
324887Schin #endif
334887Schin 
344887Schin #define STUB		1
354887Schin 
364887Schin /*
374887Schin  * 2006-09-28
384887Schin  *
394887Schin  *	on some systems the _std_strtol iffe changed (due to a faulty
404887Schin  *	test prototype) and the cause programs dynamically linked to
414887Schin  *	an updated -last to fail at runtime with missing _ast_strtol etc.
424887Schin  */
434887Schin 
444887Schin #if !_std_strtol
454887Schin 
464887Schin #ifndef strtol
474887Schin #undef	STUB
484887Schin extern long
_ast_strtol(const char * a,char ** b,int c)494887Schin _ast_strtol(const char* a, char** b, int c)
504887Schin {
514887Schin 	return strtol(a, b, c);
524887Schin }
534887Schin #endif
544887Schin 
554887Schin #ifndef strtoul
564887Schin #undef	STUB
574887Schin extern unsigned long
_ast_strtoul(const char * a,char ** b,int c)584887Schin _ast_strtoul(const char* a, char** b, int c)
594887Schin {
604887Schin 	return strtoul(a, b, c);
614887Schin }
624887Schin #endif
634887Schin 
644887Schin #ifndef strtoll
654887Schin #undef	STUB
664887Schin extern intmax_t
_ast_strtoll(const char * a,char ** b,int c)674887Schin _ast_strtoll(const char* a, char** b, int c)
684887Schin {
694887Schin 	return strtoll(a, b, c);
704887Schin }
714887Schin #endif
724887Schin 
734887Schin #ifndef strtoull
744887Schin #undef	STUB
754887Schin extern uintmax_t
_ast_strtoull(const char * a,char ** b,int c)764887Schin _ast_strtoull(const char* a, char** b, int c)
774887Schin {
784887Schin 	return strtoull(a, b, c);
794887Schin }
804887Schin #endif
814887Schin 
824887Schin #endif
834887Schin 
844887Schin #if STUB
854887Schin NoN(transition)
864887Schin #endif
87