xref: /titanic_44/usr/src/lib/libast/common/features/map.c (revision de6732348404877079e00a1631babd13d8a5ad14)
1 /***********************************************************************
2 *                                                                      *
3 *               This software is part of the ast package               *
4 *          Copyright (c) 1985-2009 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 *                   Phong Vo <kpv@research.att.com>                    *
20 *                                                                      *
21 ***********************************************************************/
22 #pragma prototyped
23 
24 /*
25  * some systems may pull in <ast_common.h> and its <ast_map.h>
26  * which we are in the process of generating ... this prevents it
27  */
28 
29 #define _def_map_ast	1
30 
31 #include "FEATURE/lib"
32 #include "FEATURE/mmap"
33 #include "FEATURE/vmalloc"
34 
35 int
36 main()
37 {
38 	printf("#pragma prototyped\n");
39 	printf("\n");
40 	printf("/*\n");
41 	printf(" * prototypes provided for standard interfaces hijacked\n");
42 	printf(" * by ast and mapped to _ast_* but already prototyped\n");
43 	printf(" * unmapped in native headers included by <ast_std.h>\n");
44 	printf(" */\n");
45 	printf("\n");
46 	printf("#if _BLD_ast && defined(__EXPORT__)\n");
47 	printf("#define extern		__EXPORT__\n");
48 	printf("#endif\n");
49 	printf("\n");
50 #if __MVS__
51 #undef	_map_libc
52 #define _map_libc	1
53 	printf("\n");
54 	printf("/* mvs.390 libc.dll routines can't be intercepted by user dlls */\n");
55 	printf("#undef	_mem_dd_fd_DIR\n");
56 	printf("#undef	_typ_long_double\n");
57 #endif
58 #if _map_libc
59 #undef	_map_malloc
60 #define _map_malloc	1
61 	printf("\n");
62 	printf("#define	_map_libc	1\n");
63 	printf("#undef	basename\n");
64 	printf("#define basename	_ast_basename\n");
65 	printf("#undef	dirname\n");
66 	printf("#define dirname		_ast_dirname\n");
67 	printf("#undef	eaccess\n");
68 	printf("#define eaccess		_ast_eaccess\n");
69 #if !_lib_execvpe
70 	printf("#undef	execvpe\n");
71 	printf("#define execvpe		_ast_execvpe\n");
72 	printf("extern int		execvpe(const char*, char* const[], char* const[]);\n");
73 #endif
74 	printf("#undef	fnmatch\n");
75 	printf("#define fnmatch		_ast_fnmatch\n");
76 	printf("#undef	fts_children\n");
77 	printf("#define fts_children    _ast_fts_children\n");
78 	printf("#undef	fts_close\n");
79 	printf("#define fts_close       _ast_fts_close\n");
80 	printf("#undef	fts_flags\n");
81 	printf("#define fts_flags       _ast_fts_flags\n");
82 	printf("#undef	fts_notify\n");
83 	printf("#define fts_notify      _ast_fts_notify\n");
84 	printf("#undef	fts_open\n");
85 	printf("#define fts_open	_ast_fts_open\n");
86 	printf("#undef	fts_read\n");
87 	printf("#define fts_read	_ast_fts_read\n");
88 	printf("#undef	fts_set\n");
89 	printf("#define fts_set		_ast_fts_set\n");
90 	printf("#undef	ftw\n");
91 	printf("#define ftw		_ast_ftw\n");
92 	printf("#undef	ftwalk\n");
93 	printf("#define ftwalk		_ast_ftwalk\n");
94 	printf("#undef	ftwflags\n");
95 	printf("#define ftwflags	_ast_ftwflags\n");
96 #if !_WINIX
97 	printf("#undef	getcwd\n");
98 	printf("#define getcwd		_ast_getcwd\n");
99 	printf("extern char*		getcwd(char*, size_t);\n");
100 #endif
101 	printf("#undef	getdate\n");
102 	printf("#define getdate		_ast_getdate\n");
103 #if _lib_getopt || _lib_getsubopt || _lib_getopt_long || _lib_getopt_long_only
104 	printf("#undef	getopt\n");
105 	printf("#define getopt		_ast_getopt\n");
106 	printf("#undef	getsubopt\n");
107 	printf("#define getsubopt       _ast_getsubopt\n");
108 	printf("#undef	getopt_long\n");
109 	printf("#define getopt_long	_ast_getopt_long\n");
110 	printf("#undef	getopt_long_only\n");
111 	printf("#define getopt_long_only _ast_getopt_long_only\n");
112 	printf("#undef	optopt\n");
113 	printf("#define optopt		_ast_optopt\n");
114 	printf("#undef	optarg\n");
115 	printf("#define optarg		_ast_optarg\n");
116 	printf("#undef	optind\n");
117 	printf("#define optind		_ast_optind\n");
118 	printf("#undef	opterr\n");
119 	printf("#define opterr		_ast_opterr\n");
120 #endif
121 	printf("#undef	getwd\n");
122 	printf("#define getwd		_ast_getwd\n");
123 	printf("extern char*		getwd(char*);\n");
124 	printf("#undef	glob\n");
125 	printf("#define glob		_ast_glob\n");
126 	printf("#undef	globfree\n");
127 	printf("#define globfree	_ast_globfree\n");
128 	printf("#undef	memdup\n");
129 	printf("#define memdup		_ast_memdup\n");
130 	printf("#undef	memfatal\n");
131 	printf("#define memfatal	_ast_memfatal\n");
132 	printf("#undef	memhash\n");
133 	printf("#define memhash		_ast_memhash\n");
134 	printf("#undef	memsum\n");
135 	printf("#define memsum		_ast_memsum\n");
136 	printf("#undef	mkstemp\n");
137 	printf("#define mkstemp		_ast_mkstemp\n");
138 	printf("extern int		mkstemp(char*);\n");
139 	printf("#undef	mktemp\n");
140 	printf("#define mktemp		_ast_mktemp\n");
141 	printf("extern char*		mktemp(char*);\n");
142 	printf("#undef	mktime\n");
143 	printf("#define mktime		_ast_mktime\n");
144 	printf("#undef	nftw\n");
145 	printf("#define nftw		_ast_nftw\n");
146 	printf("#undef	optctx\n");
147 	printf("#define optctx		_ast_optctx\n");
148 	printf("#undef	optesc\n");
149 	printf("#define optesc		_ast_optesc\n");
150 	printf("#undef	optget\n");
151 	printf("#define optget		_ast_optget\n");
152 	printf("#undef	opthelp\n");
153 	printf("#define opthelp		_ast_opthelp\n");
154 	printf("#undef	optjoin\n");
155 	printf("#define optjoin		_ast_optjoin\n");
156 	printf("#undef	optstr\n");
157 	printf("#define optstr		_ast_optstr\n");
158 	printf("#undef	optusage\n");
159 	printf("#define optusage	_ast_optusage\n");
160 	printf("#undef	pathaccess\n");
161 	printf("#define pathaccess	_ast_pathaccess\n");
162 	printf("#undef	pathbin\n");
163 	printf("#define pathbin		_ast_pathbin\n");
164 	printf("#undef	pathcanon\n");
165 	printf("#define pathcanon	_ast_pathcanon\n");
166 	printf("#undef	pathcat\n");
167 	printf("#define pathcat		_ast_pathcat\n");
168 	printf("#undef	pathcd\n");
169 	printf("#define pathcd		_ast_pathcd\n");
170 	printf("#undef	pathcheck\n");
171 	printf("#define pathcheck	_ast_pathcheck\n");
172 	printf("#undef	pathexists\n");
173 	printf("#define pathexists	_ast_pathexists\n");
174 	printf("#undef	pathfind\n");
175 	printf("#define pathfind	_ast_pathfind\n");
176 	printf("#undef	pathgetlink\n");
177 	printf("#define pathgetlink	_ast_pathgetlink\n");
178 	printf("#undef	pathinclude\n");
179 	printf("#define pathinclude	_ast_pathinclude\n");
180 	printf("#undef	pathkey\n");
181 	printf("#define pathkey		_ast_pathkey\n");
182 	printf("#undef	pathnative\n");
183 	printf("#define pathnative	_ast_pathnative\n");
184 	printf("#undef	pathpath\n");
185 	printf("#define pathpath	_ast_pathpath\n");
186 	printf("#undef	pathposix\n");
187 	printf("#define pathposix	_ast_pathposix\n");
188 	printf("#undef	pathprobe\n");
189 	printf("#define pathprobe	_ast_pathprobe\n");
190 	printf("#undef	pathprog\n");
191 	printf("#define pathprog	_ast_pathprog\n");
192 	printf("#undef	pathrepl\n");
193 	printf("#define pathrepl	_ast_pathrepl\n");
194 	printf("#undef	pathsetlink\n");
195 	printf("#define pathsetlink	_ast_pathsetlink\n");
196 	printf("#undef	pathshell\n");
197 	printf("#define pathshell	_ast_pathshell\n");
198 	printf("#undef	pathstat\n");
199 	printf("#define pathstat	_ast_pathstat\n");
200 	printf("#undef	pathtemp\n");
201 	printf("#define pathtemp	_ast_pathtemp\n");
202 	printf("#undef	pathtmp\n");
203 	printf("#define pathtmp		_ast_pathtmp\n");
204 	printf("#undef	procclose\n");
205 	printf("#define procclose	_ast_procclose\n");
206 	printf("#undef	procfree\n");
207 	printf("#define procfree	_ast_procfree\n");
208 	printf("#undef	procopen\n");
209 	printf("#define procopen	_ast_procopen\n");
210 	printf("#undef	procrun\n");
211 	printf("#define procrun		_ast_procrun\n");
212 	printf("#undef	putenv\n");
213 	printf("#define putenv		_ast_putenv\n");
214 	printf("#undef	re_comp\n");
215 	printf("#define re_comp		_ast_re_comp\n");
216 	printf("#undef	re_exec\n");
217 	printf("#define re_exec		_ast_re_exec\n");
218 	printf("#undef	realpath\n");
219 	printf("#define realpath	_ast_realpath\n");
220 	printf("extern char*		realpath(const char*, char*);\n");
221 	printf("#undef	regaddclass\n");
222 	printf("#define regaddclass	_ast_regaddclass\n");
223 	printf("#undef	regalloc\n");
224 	printf("#define regalloc	_ast_regalloc\n");
225 	printf("#undef	regcache\n");
226 	printf("#define regcache	_ast_regcache\n");
227 	printf("#undef	regclass\n");
228 	printf("#define regclass	_ast_regclass\n");
229 	printf("#undef	regcmp\n");
230 	printf("#define regcmp		_ast_regcmp\n");
231 	printf("#undef	regcollate\n");
232 	printf("#define regcollate      _ast_regcollate\n");
233 	printf("#undef	regcomb\n");
234 	printf("#define regcomb		_ast_regcomb\n");
235 	printf("#undef	regcomp\n");
236 	printf("#define regcomp		_ast_regcomp\n");
237 	printf("#undef	regdecomp\n");
238 	printf("#define regdecomp	_ast_regdecomp\n");
239 	printf("#undef	regdup\n");
240 	printf("#define regdup		_ast_regdup\n");
241 	printf("#undef	regerror\n");
242 	printf("#define regerror	_ast_regerror\n");
243 	printf("#undef	regex\n");
244 	printf("#define regex		_ast_regex\n");
245 	printf("#undef	regexec\n");
246 	printf("#define regexec		_ast_regexec\n");
247 	printf("#undef	regfatal\n");
248 	printf("#define regfatal	_ast_regfatal\n");
249 	printf("#undef	regfatalpat\n");
250 	printf("#define regfatalpat     _ast_regfatalpat\n");
251 	printf("#undef	regfree\n");
252 	printf("#define regfree		_ast_regfree\n");
253 	printf("#undef	regncomp\n");
254 	printf("#define regncomp	_ast_regncomp\n");
255 	printf("#undef	regnexec\n");
256 	printf("#define regnexec	_ast_regnexec\n");
257 	printf("#undef	regrecord\n");
258 	printf("#define regrecord       _ast_regrecord\n");
259 	printf("#undef	regrexec\n");
260 	printf("#define regrexec	_ast_regrexec\n");
261 	printf("#undef	regstat\n");
262 	printf("#define regstat		_ast_regstat\n");
263 	printf("#undef	regsub\n");
264 	printf("#define regsub		_ast_regsub\n");
265 	printf("#undef	regsubcomp\n");
266 	printf("#define regsubcomp	_ast_regsubcomp\n");
267 	printf("#undef	regsubexec\n");
268 	printf("#define regsubexec	_ast_regsubexec\n");
269 	printf("#undef	regsubflags\n");
270 	printf("#define regsubflags	_ast_regsubflags\n");
271 	printf("#undef	regsubfree\n");
272 	printf("#define regsubfree	_ast_regsubfree\n");
273 	printf("#undef	remove\n");
274 	printf("#define remove		_ast_remove\n");
275 	printf("extern int		remove(const char*);\n");
276 	printf("#undef	resolvepath\n");
277 	printf("#define resolvepath	_ast_resolvepath\n");
278 	printf("extern int		resolvepath(const char*, char*, size_t);\n");
279 	printf("#undef	setenv\n");
280 	printf("#define setenv		_ast_setenv\n");
281 	printf("extern int		setenv(const char*, const char*, int);\n");
282 	printf("#undef	setenviron\n");
283 	printf("#define setenviron      _ast_setenviron\n");
284 	printf("#undef	sigcritical\n");
285 	printf("#define sigcritical      _ast_sigcritical\n");
286 	printf("#undef	signal\n");
287 	printf("#define signal      	_ast_signal\n");
288 	printf("#undef	sigunblock\n");
289 	printf("#define sigunblock      _ast_sigunblock\n");
290 	printf("#undef	stracmp\n");
291 	printf("#define stracmp		_ast_stracmp\n");
292 	printf("#undef	strcopy\n");
293 	printf("#define strcopy		_ast_strcopy\n");
294 	printf("#undef	strelapsed\n");
295 	printf("#define strelapsed	_ast_strelapsed\n");
296 	printf("#undef	stresc\n");
297 	printf("#define stresc		_ast_stresc\n");
298 	printf("#undef	streval\n");
299 	printf("#define streval		_ast_streval\n");
300 	printf("#undef	strexpr\n");
301 	printf("#define strexpr		_ast_strexpr\n");
302 	printf("#undef	strftime\n");
303 	printf("#define strftime	_ast_strftime\n");
304 	printf("#undef	strgid\n");
305 	printf("#define strgid		_ast_strgid\n");
306 	printf("#undef	strgrpmatch\n");
307 	printf("#define strgrpmatch	_ast_strgrpmatch\n");
308 	printf("#undef	strhash\n");
309 	printf("#define strhash		_ast_strhash\n");
310 	printf("#undef	strkey\n");
311 	printf("#define strkey		_ast_strkey\n");
312 	printf("#undef	strlcat\n");
313 	printf("#define strlcat		_ast_strlcat\n");
314 	printf("extern size_t		strlcat(char*, const char*, size_t);\n");
315 	printf("#undef	strlcpy\n");
316 	printf("#define strlcpy		_ast_strlcpy\n");
317 	printf("extern size_t		strlcpy(char*, const char*, size_t);\n");
318 	printf("#undef	strlook\n");
319 	printf("#define strlook		_ast_strlook\n");
320 	printf("#undef	strmatch\n");
321 	printf("#define strmatch	_ast_strmatch\n");
322 #endif
323 #if _map_libc || _lib_strmode
324 	printf("#undef	strmode\n");
325 	printf("#define strmode		_ast_strmode\n");
326 #endif
327 #if _map_libc
328 	printf("#undef	strnacmp\n");
329 	printf("#define strnacmp	_ast_strnacmp\n");
330 	printf("#undef	strncopy\n");
331 	printf("#define strncopy	_ast_strncopy\n");
332 	printf("#undef	strntod\n");
333 	printf("#define strntod		_ast_strntod\n");
334 	printf("#undef	strntol\n");
335 	printf("#define strntol		_ast_strntol\n");
336 	printf("#undef	strntold\n");
337 	printf("#define strntold	_ast_strntold\n");
338 	printf("#undef	strntoll\n");
339 	printf("#define strntoll	_ast_strntoll\n");
340 	printf("#undef	strntoul\n");
341 	printf("#define strntoul	_ast_strntoul\n");
342 	printf("#undef	strntoull\n");
343 	printf("#define strntoull	_ast_strntoull\n");
344 	printf("#undef	stropt\n");
345 	printf("#define stropt		_ast_stropt\n");
346 	printf("#undef	strperm\n");
347 	printf("#define strperm		_ast_strperm\n");
348 	printf("#undef	strpsearch\n");
349 	printf("#define strpsearch	_ast_strpsearch\n");
350 #if !_lib_strptime
351 	printf("#undef	strptime\n");
352 	printf("#define strptime	_ast_strptime\n");
353 #endif
354 	printf("#undef	strsearch\n");
355 	printf("#define strsearch	_ast_strsearch\n");
356 	printf("#undef	strsort\n");
357 	printf("#define strsort		_ast_strsort\n");
358 	printf("#undef	strsubmatch\n");
359 	printf("#define strsubmatch	_ast_strsubmatch\n");
360 	printf("#undef	strsum\n");
361 	printf("#define strsum		_ast_strsum\n");
362 	printf("#undef	strtape\n");
363 	printf("#define strtape		_ast_strtape\n");
364 	printf("#undef	strtoip4\n");
365 	printf("#define strtoip4	_ast_strtoip4\n");
366 	printf("#undef	strton\n");
367 	printf("#define strton		_ast_strton\n");
368 	printf("#undef	strtonll\n");
369 	printf("#define strtonll	_ast_strtonll\n");
370 	printf("#undef	struid\n");
371 	printf("#define struid		_ast_struid\n");
372 	printf("#undef	struniq\n");
373 	printf("#define struniq		_ast_struniq\n");
374 	printf("#undef	system\n");
375 	printf("#define system		_ast_system\n");
376 	printf("extern int		system(const char*);\n");
377 	printf("#undef	tempnam\n");
378 	printf("#define tempnam		_ast_tempnam\n");
379 	printf("extern char*		tempnam(const char*, const char*);\n");
380 	printf("#undef	tmpnam\n");
381 	printf("#define tmpnam		_ast_tmpnam\n");
382 	printf("extern char*		tmpnam(char*);\n");
383 	printf("#undef	touch\n");
384 	printf("#define touch		_ast_touch\n");
385 	printf("#undef	wordexp\n");
386 	printf("#define wordexp		_ast_wordexp\n");
387 	printf("#undef	wordfree\n");
388 	printf("#define wordfree	_ast_wordfree\n");
389 	printf("#undef	unsetenv\n");
390 	printf("#define unsetenv	_ast_unsetenv\n");
391 #endif
392 #if _std_malloc
393 	printf("\n");
394 	printf("/* no local malloc override */\n");
395 	printf("#define	_std_malloc	1\n");
396 #else
397 #if _map_malloc
398 	printf("\n");
399 	printf("/* cannot override local malloc */\n");
400 	printf("#define	_map_malloc	1\n");
401 	printf("#undef	calloc\n");
402 	printf("#define calloc		_ast_calloc\n");
403 	printf("extern void*		calloc(size_t, size_t);\n");
404 	printf("#undef	cfree\n");
405 	printf("#define cfree		_ast_cfree\n");
406 	printf("extern void		cfree(void*);\n");
407 	printf("#undef	free\n");
408 	printf("#define free		_ast_free\n");
409 	printf("extern void		free(void*);\n");
410 #if _lib_mallinfo
411 	printf("#undef	mallinfo\n");
412 	printf("#define mallinfo	_ast_mallinfo\n");
413 #endif
414 	printf("#undef	malloc\n");
415 	printf("#define malloc		_ast_malloc\n");
416 	printf("extern void*		malloc(size_t);\n");
417 #if _lib_mallopt
418 	printf("#undef	mallopt\n");
419 	printf("#define mallopt		_ast_mallopt\n");
420 #endif
421 #if _lib_memalign
422 	printf("#undef	memalign\n");
423 	printf("#define memalign	_ast_memalign\n");
424 	printf("extern void*		memalign(size_t, size_t);\n");
425 #endif
426 #if _lib_mstats
427 	printf("#undef	mstats\n");
428 	printf("#define mstats		_ast_mstats\n");
429 #endif
430 #if _lib_pvalloc
431 	printf("#undef	pvalloc\n");
432 	printf("#define pvalloc		_ast_pvalloc\n");
433 #endif
434 	printf("#undef	realloc\n");
435 	printf("#define realloc		_ast_realloc\n");
436 	printf("extern void*		realloc(void*, size_t);\n");
437 	printf("#undef	strdup\n");
438 	printf("#define strdup		_ast_strdup\n");
439 	printf("extern char*		strdup(const char*);\n");
440 #if _lib_valloc
441 	printf("#undef	valloc\n");
442 	printf("#define valloc		_ast_valloc\n");
443 	printf("extern void*		valloc(size_t);\n");
444 #endif
445 #endif
446 #endif
447 
448 	/*
449 	 * overriding <stdlib.h> strto*() is problematic to say the least
450 	 */
451 
452 #if _map_libc || _std_strtol
453 #if !__CYGWIN__
454 	printf("#undef	strtol\n");
455 	printf("#define strtol		_ast_strtol\n");
456 	printf("#undef	strtoul\n");
457 	printf("#define strtoul		_ast_strtoul\n");
458 #endif
459 	printf("#undef	strtoll\n");
460 	printf("#define strtoll		_ast_strtoll\n");
461 	printf("#undef	strtoull\n");
462 	printf("#define strtoull	_ast_strtoull\n");
463 #endif
464 #if _map_libc || _std_strtod
465 	printf("#undef	strtod\n");
466 	printf("#define strtod		_ast_strtod\n");
467 #endif
468 #if _map_libc || _std_strtold
469 	printf("#undef	strtold\n");
470 	printf("#define strtold		_ast_strtold\n");
471 #endif
472 #if !__CYGWIN__
473 #if _npt_strtol || _map_libc || _std_strtol
474 #if _npt_strtol && !_map_libc && !_std_strtol
475 	printf("#ifndef _ISOC99_SOURCE\n");
476 #endif
477 	printf("extern long		strtol(const char*, char**, int);\n");
478 #if _npt_strtol && !_map_libc && !_std_strtol
479 	printf("#endif\n");
480 #endif
481 #endif
482 #if _npt_strtoul || _map_libc || _std_strtol
483 #if _npt_strtoul && !_map_libc && !_std_strtol
484 	printf("#ifndef _ISOC99_SOURCE\n");
485 #endif
486 	printf("extern unsigned long	strtoul(const char*, char**, int);\n");
487 #if _npt_strtoul && !_map_libc && !_std_strtol
488 	printf("#endif\n");
489 #endif
490 #endif
491 #endif
492 #if _npt_strtod || _map_libc || _std_strtod
493 #if _npt_strtod && !_map_libc && !_std_strtod
494 	printf("#ifndef _ISOC99_SOURCE\n");
495 #endif
496 	printf("extern double		strtod(const char*, char**);\n");
497 #if _npt_strtod && !_map_libc && !_std_strtod
498 	printf("#endif\n");
499 #endif
500 #endif
501 	printf("#if !_UWIN\n");
502 	printf("#undef	extern\n");
503 	printf("#endif\n");
504 #if _npt_strtold || _map_libc || _std_strtold
505 #if _npt_strtold && !_map_libc && !_std_strtold
506 	printf("#ifndef _ISOC99_SOURCE\n");
507 #endif
508 	printf("extern _ast_fltmax_t	strtold(const char*, char**);\n");
509 #if _npt_strtold && !_map_libc && !_std_strtold
510 	printf("#endif\n");
511 #endif
512 #endif
513 	printf("#undef	extern\n");
514 #if _npt_strtoll || _map_libc || _std_strtol
515 #if _npt_strtoll && !_map_libc && !_std_strtol
516 	printf("#ifndef _ISOC99_SOURCE\n");
517 #endif
518 	printf("extern _ast_intmax_t		strtoll(const char*, char**, int);\n");
519 #if _npt_strtoll && !_map_libc && !_std_strtol
520 	printf("#endif\n");
521 #endif
522 #endif
523 #if _npt_strtoull || _map_libc || _std_strtol
524 #if _npt_strtoull && !_map_libc && !_std_strtol
525 	printf("#ifndef _ISOC99_SOURCE\n");
526 #endif
527 	printf("extern unsigned _ast_intmax_t	strtoull(const char*, char**, int);\n");
528 #if _npt_strtoull && !_map_libc && !_std_strtoul
529 	printf("#endif\n");
530 #endif
531 #endif
532 	printf("\n");
533 	printf("#undef	extern\n");
534 	return 0;
535 }
536