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