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