1 /***********************************************************************
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 *
9 * A copy of the License is available at *
10 * http://www.opensource.org/licenses/cpl1.0.txt *
11 * (with md5 checksum 059e8cd6165cb4c31e351f2b69388fd9) *
13 * Information and Software Systems Research *
17 * Glenn Fowler <gsf@research.att.com> *
18 * David Korn <dgk@research.att.com> *
19 * Phong Vo <kpv@research.att.com> *
21 ***********************************************************************/
23 /* : : generated by proto : : */
24 /* : : generated from /home/gisburn/ksh93/ast_ksh_20100309/build_i386_32bit/src/lib/libast/features/map.c by iffe version 2009-12-04 : : */
26 #if !defined(__PROTO__)
27 # if defined(__STDC__) || defined(__cplusplus) || defined(_proto) || defined(c_plusplus)
28 # if defined(__cplusplus)
29 # define __LINKAGE__ "C"
34 # define __PROTO__(x) x
36 # define __PARAM__(n,o) n
37 # if !defined(__STDC__) && !defined(__cplusplus)
38 # if !defined(c_plusplus)
49 # define __PROTO__(x) ()
50 # define __OTORP__(x) x
51 # define __PARAM__(n,o) o
59 # define __MANGLE__ __LINKAGE__
60 # if defined(__cplusplus) || defined(c_plusplus)
61 # define __VARARG__ ...
65 # if defined(__STDARG__)
66 # define __VA_START__(p,a) va_start(p,a)
68 # define __VA_START__(p,a) va_start(p)
70 # if !defined(__INLINE__)
71 # if defined(__cplusplus)
72 # define __INLINE__ extern __MANGLE__ inline
74 # if defined(_WIN32) && !defined(__GNUC__)
75 # define __INLINE__ __inline
80 #if !defined(__LINKAGE__)
81 #define __LINKAGE__ /* 2004-08-11 transition */
84 #define _def_map_ast 1
85 #define _sys_types 1 /* #include <sys/types.h> ok */
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>
94 #if _BLD_ast && defined(__EXPORT__)
96 #define __MANGLE__ __LINKAGE__ __EXPORT__
102 #define basename _ast_basename
104 #define dirname _ast_dirname
106 #define eaccess _ast_eaccess
108 #define execvpe _ast_execvpe
109 extern __MANGLE__
int execvpe
__PROTO__((const char*, char* const[], char* const[]));
111 #define fnmatch _ast_fnmatch
113 #define fts_children _ast_fts_children
115 #define fts_close _ast_fts_close
117 #define fts_flags _ast_fts_flags
119 #define fts_notify _ast_fts_notify
121 #define fts_open _ast_fts_open
123 #define fts_read _ast_fts_read
125 #define fts_set _ast_fts_set
129 #define ftwalk _ast_ftwalk
131 #define ftwflags _ast_ftwflags
133 #define getcwd _ast_getcwd
134 extern __MANGLE__
char* getcwd
__PROTO__((char*, size_t));
136 #define getdate _ast_getdate
138 #define getopt _ast_getopt
140 #define getsubopt _ast_getsubopt
142 #define getopt_long _ast_getopt_long
143 #undef getopt_long_only
144 #define getopt_long_only _ast_getopt_long_only
146 #define optopt _ast_optopt
148 #define optarg _ast_optarg
150 #define optind _ast_optind
152 #define opterr _ast_opterr
154 #define getwd _ast_getwd
155 extern __MANGLE__
char* getwd
__PROTO__((char*));
157 #define glob _ast_glob
159 #define globfree _ast_globfree
161 #define memdup _ast_memdup
163 #define memfatal _ast_memfatal
165 #define memhash _ast_memhash
167 #define memsum _ast_memsum
169 #define mkstemp _ast_mkstemp
170 extern __MANGLE__
int mkstemp
__PROTO__((char*));
172 #define mktemp _ast_mktemp
173 extern __MANGLE__
char* mktemp
__PROTO__((char*));
175 #define mktime _ast_mktime
177 #define nftw _ast_nftw
179 #define optctx _ast_optctx
181 #define optesc _ast_optesc
183 #define optget _ast_optget
185 #define opthelp _ast_opthelp
187 #define optjoin _ast_optjoin
189 #define optstr _ast_optstr
191 #define optusage _ast_optusage
193 #define pathaccess _ast_pathaccess
195 #define pathbin _ast_pathbin
197 #define pathcanon _ast_pathcanon
199 #define pathcat _ast_pathcat
201 #define pathcd _ast_pathcd
203 #define pathcheck _ast_pathcheck
205 #define pathexists _ast_pathexists
207 #define pathfind _ast_pathfind
209 #define pathgetlink _ast_pathgetlink
211 #define pathinclude _ast_pathinclude
213 #define pathkey _ast_pathkey
215 #define pathnative _ast_pathnative
217 #define pathpath _ast_pathpath
219 #define pathposix _ast_pathposix
221 #define pathprobe _ast_pathprobe
223 #define pathprog _ast_pathprog
225 #define pathrepl _ast_pathrepl
227 #define pathsetlink _ast_pathsetlink
229 #define pathshell _ast_pathshell
231 #define pathstat _ast_pathstat
233 #define pathtemp _ast_pathtemp
235 #define pathtmp _ast_pathtmp
237 #define procclose _ast_procclose
239 #define procfree _ast_procfree
241 #define procopen _ast_procopen
243 #define procrun _ast_procrun
245 #define putenv _ast_putenv
247 #define re_comp _ast_re_comp
249 #define re_exec _ast_re_exec
251 #define realpath _ast_realpath
252 extern __MANGLE__
char* realpath
__PROTO__((const char*, char*));
254 #define regaddclass _ast_regaddclass
256 #define regalloc _ast_regalloc
258 #define regcache _ast_regcache
260 #define regclass _ast_regclass
262 #define regcmp _ast_regcmp
264 #define regcollate _ast_regcollate
266 #define regcomb _ast_regcomb
268 #define regcomp _ast_regcomp
270 #define regdecomp _ast_regdecomp
272 #define regdup _ast_regdup
274 #define regerror _ast_regerror
276 #define regex _ast_regex
278 #define regexec _ast_regexec
280 #define regfatal _ast_regfatal
282 #define regfatalpat _ast_regfatalpat
284 #define regfree _ast_regfree
286 #define regncomp _ast_regncomp
288 #define regnexec _ast_regnexec
290 #define regrecord _ast_regrecord
292 #define regrexec _ast_regrexec
294 #define regstat _ast_regstat
296 #define regsub _ast_regsub
298 #define regsubcomp _ast_regsubcomp
300 #define regsubexec _ast_regsubexec
302 #define regsubflags _ast_regsubflags
304 #define regsubfree _ast_regsubfree
306 #define remove _ast_remove
307 extern __MANGLE__
int remove
__PROTO__((const char*));
309 #define resolvepath _ast_resolvepath
310 extern __MANGLE__
int resolvepath
__PROTO__((const char*, char*, size_t));
312 #define setenv _ast_setenv
313 extern __MANGLE__
int setenv
__PROTO__((const char*, const char*, int));
315 #define setenviron _ast_setenviron
317 #define sigcritical _ast_sigcritical
319 #define signal _ast_signal
321 #define sigunblock _ast_sigunblock
323 #define stracmp _ast_stracmp
325 #define strcopy _ast_strcopy
327 #define strelapsed _ast_strelapsed
329 #define stresc _ast_stresc
331 #define streval _ast_streval
333 #define strexpr _ast_strexpr
335 #define strftime _ast_strftime
337 #define strgid _ast_strgid
339 #define strgrpmatch _ast_strgrpmatch
341 #define strhash _ast_strhash
343 #define strkey _ast_strkey
345 #define strlcat _ast_strlcat
346 extern __MANGLE__
size_t strlcat
__PROTO__((char*, const char*, size_t));
348 #define strlcpy _ast_strlcpy
349 extern __MANGLE__
size_t strlcpy
__PROTO__((char*, const char*, size_t));
351 #define strlook _ast_strlook
353 #define strmatch _ast_strmatch
355 #define strmode _ast_strmode
357 #define strnacmp _ast_strnacmp
359 #define strncopy _ast_strncopy
361 #define strntod _ast_strntod
363 #define strntol _ast_strntol
365 #define strntold _ast_strntold
367 #define strntoll _ast_strntoll
369 #define strntoul _ast_strntoul
371 #define strntoull _ast_strntoull
373 #define stropt _ast_stropt
375 #define strperm _ast_strperm
377 #define strpsearch _ast_strpsearch
379 #define strptime _ast_strptime
381 #define strsearch _ast_strsearch
383 #define strsort _ast_strsort
385 #define strsubmatch _ast_strsubmatch
387 #define strsum _ast_strsum
389 #define strtape _ast_strtape
391 #define strtoip4 _ast_strtoip4
393 #define strton _ast_strton
395 #define strtonll _ast_strtonll
397 #define struid _ast_struid
399 #define struniq _ast_struniq
401 #define system _ast_system
402 extern __MANGLE__
int system
__PROTO__((const char*));
404 #define tempnam _ast_tempnam
405 extern __MANGLE__
char* tempnam
__PROTO__((const char*, const char*));
407 #define tmpnam _ast_tmpnam
408 extern __MANGLE__
char* tmpnam
__PROTO__((char*));
410 #define touch _ast_touch
412 #define wordexp _ast_wordexp
414 #define wordfree _ast_wordfree
416 #define unsetenv _ast_unsetenv
418 /* cannot override local malloc */
419 #define _map_malloc 1
421 #define calloc _ast_calloc
422 extern __MANGLE__ __V_
* calloc
__PROTO__((size_t, size_t));
424 #define cfree _ast_cfree
425 extern __MANGLE__
void cfree
__PROTO__((__V_
*));
427 #define free _ast_free
428 extern __MANGLE__
void free
__PROTO__((__V_
*));
430 #define malloc _ast_malloc
431 extern __MANGLE__ __V_
* malloc
__PROTO__((size_t));
433 #define memalign _ast_memalign
434 extern __MANGLE__ __V_
* memalign
__PROTO__((size_t, size_t));
436 #define realloc _ast_realloc
437 extern __MANGLE__ __V_
* realloc
__PROTO__((__V_
*, size_t));
439 #define strdup _ast_strdup
440 extern __MANGLE__
char* strdup
__PROTO__((const char*));
442 #define valloc _ast_valloc
443 extern __MANGLE__ __V_
* valloc
__PROTO__((size_t));
445 #define strtol _ast_strtol
447 #define strtoul _ast_strtoul
449 #define strtoll _ast_strtoll
451 #define strtoull _ast_strtoull
453 #define strtod _ast_strtod
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**));
461 #define __MANGLE__ __LINKAGE__
463 extern __MANGLE__ _ast_fltmax_t strtold
__PROTO__((const char*, char**));
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));
470 #define __MANGLE__ __LINKAGE__