1 /* -*- buffer-read-only: t -*- vi: set ro: */ 2 /* DO NOT EDIT! GENERATED AUTOMATICALLY! */ 3 /* Name frobnication for compiling argp outside of glibc 4 Copyright (C) 1997, 2003, 2007 Free Software Foundation, Inc. 5 This file is part of the GNU C Library. 6 Written by Miles Bader <miles@gnu.ai.mit.edu>. 7 8 This program is free software: you can redistribute it and/or modify 9 it under the terms of the GNU General Public License as published by 10 the Free Software Foundation; either version 3 of the License, or 11 (at your option) any later version. 12 13 This program is distributed in the hope that it will be useful, 14 but WITHOUT ANY WARRANTY; without even the implied warranty of 15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 16 GNU General Public License for more details. 17 18 You should have received a copy of the GNU General Public License 19 along with this program. If not, see <http://www.gnu.org/licenses/>. */ 20 21 #if !_LIBC 22 /* This code is written for inclusion in gnu-libc, and uses names in the 23 namespace reserved for libc. If we're not compiling in libc, define those 24 names to be the normal ones instead. */ 25 26 /* argp-parse functions */ 27 #undef __argp_parse 28 #define __argp_parse argp_parse 29 #undef __option_is_end 30 #define __option_is_end _option_is_end 31 #undef __option_is_short 32 #define __option_is_short _option_is_short 33 #undef __argp_input 34 #define __argp_input _argp_input 35 36 /* argp-help functions */ 37 #undef __argp_help 38 #define __argp_help argp_help 39 #undef __argp_error 40 #define __argp_error argp_error 41 #undef __argp_failure 42 #define __argp_failure argp_failure 43 #undef __argp_state_help 44 #define __argp_state_help argp_state_help 45 #undef __argp_usage 46 #define __argp_usage argp_usage 47 48 /* argp-fmtstream functions */ 49 #undef __argp_make_fmtstream 50 #define __argp_make_fmtstream argp_make_fmtstream 51 #undef __argp_fmtstream_free 52 #define __argp_fmtstream_free argp_fmtstream_free 53 #undef __argp_fmtstream_putc 54 #define __argp_fmtstream_putc argp_fmtstream_putc 55 #undef __argp_fmtstream_puts 56 #define __argp_fmtstream_puts argp_fmtstream_puts 57 #undef __argp_fmtstream_write 58 #define __argp_fmtstream_write argp_fmtstream_write 59 #undef __argp_fmtstream_printf 60 #define __argp_fmtstream_printf argp_fmtstream_printf 61 #undef __argp_fmtstream_set_lmargin 62 #define __argp_fmtstream_set_lmargin argp_fmtstream_set_lmargin 63 #undef __argp_fmtstream_set_rmargin 64 #define __argp_fmtstream_set_rmargin argp_fmtstream_set_rmargin 65 #undef __argp_fmtstream_set_wmargin 66 #define __argp_fmtstream_set_wmargin argp_fmtstream_set_wmargin 67 #undef __argp_fmtstream_point 68 #define __argp_fmtstream_point argp_fmtstream_point 69 #undef __argp_fmtstream_update 70 #define __argp_fmtstream_update _argp_fmtstream_update 71 #undef __argp_fmtstream_ensure 72 #define __argp_fmtstream_ensure _argp_fmtstream_ensure 73 #undef __argp_fmtstream_lmargin 74 #define __argp_fmtstream_lmargin argp_fmtstream_lmargin 75 #undef __argp_fmtstream_rmargin 76 #define __argp_fmtstream_rmargin argp_fmtstream_rmargin 77 #undef __argp_fmtstream_wmargin 78 #define __argp_fmtstream_wmargin argp_fmtstream_wmargin 79 80 /* normal libc functions we call */ 81 #undef __flockfile 82 #define __flockfile flockfile 83 #undef __funlockfile 84 #define __funlockfile funlockfile 85 #undef __mempcpy 86 #define __mempcpy mempcpy 87 #undef __sleep 88 #define __sleep sleep 89 #undef __strcasecmp 90 #define __strcasecmp strcasecmp 91 #undef __strchrnul 92 #define __strchrnul strchrnul 93 #undef __strerror_r 94 #define __strerror_r strerror_r 95 #undef __strndup 96 #define __strndup strndup 97 #undef __vsnprintf 98 #define __vsnprintf vsnprintf 99 100 #if defined(HAVE_DECL_CLEARERR_UNLOCKED) && !HAVE_DECL_CLEARERR_UNLOCKED 101 # define clearerr_unlocked(x) clearerr (x) 102 #endif 103 #if defined(HAVE_DECL_FEOF_UNLOCKED) && !HAVE_DECL_FEOF_UNLOCKED 104 # define feof_unlocked(x) feof (x) 105 # endif 106 #if defined(HAVE_DECL_FERROR_UNLOCKED) && !HAVE_DECL_FERROR_UNLOCKED 107 # define ferror_unlocked(x) ferror (x) 108 # endif 109 #if defined(HAVE_DECL_FFLUSH_UNLOCKED) && !HAVE_DECL_FFLUSH_UNLOCKED 110 # define fflush_unlocked(x) fflush (x) 111 # endif 112 #if defined(HAVE_DECL_FGETS_UNLOCKED) && !HAVE_DECL_FGETS_UNLOCKED 113 # define fgets_unlocked(x,y,z) fgets (x,y,z) 114 # endif 115 #if defined(HAVE_DECL_FPUTC_UNLOCKED) && !HAVE_DECL_FPUTC_UNLOCKED 116 # define fputc_unlocked(x,y) fputc (x,y) 117 # endif 118 #if defined(HAVE_DECL_FPUTS_UNLOCKED) && !HAVE_DECL_FPUTS_UNLOCKED 119 # define fputs_unlocked(x,y) fputs (x,y) 120 # endif 121 #if defined(HAVE_DECL_FREAD_UNLOCKED) && !HAVE_DECL_FREAD_UNLOCKED 122 # define fread_unlocked(w,x,y,z) fread (w,x,y,z) 123 # endif 124 #if defined(HAVE_DECL_FWRITE_UNLOCKED) && !HAVE_DECL_FWRITE_UNLOCKED 125 # define fwrite_unlocked(w,x,y,z) fwrite (w,x,y,z) 126 # endif 127 #if defined(HAVE_DECL_GETC_UNLOCKED) && !HAVE_DECL_GETC_UNLOCKED 128 # define getc_unlocked(x) getc (x) 129 # endif 130 #if defined(HAVE_DECL_GETCHAR_UNLOCKED) && !HAVE_DECL_GETCHAR_UNLOCKED 131 # define getchar_unlocked() getchar () 132 # endif 133 #if defined(HAVE_DECL_PUTC_UNLOCKED) && !HAVE_DECL_PUTC_UNLOCKED 134 # define putc_unlocked(x,y) putc (x,y) 135 # endif 136 #if defined(HAVE_DECL_PUTCHAR_UNLOCKED) && !HAVE_DECL_PUTCHAR_UNLOCKED 137 # define putchar_unlocked(x) putchar (x) 138 # endif 139 140 #endif /* !_LIBC */ 141 142 #ifndef __set_errno 143 #define __set_errno(e) (errno = (e)) 144 #endif 145 146 #if defined GNULIB_ARGP_DISABLE_DIRNAME 147 # define __argp_base_name(arg) arg 148 #elif defined GNULIB_ARGP_EXTERN_BASENAME 149 extern char *__argp_base_name(const char *arg); 150 #else 151 # include "dirname.h" 152 # define __argp_base_name base_name 153 #endif 154 155 #if defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME 156 # define __argp_short_program_name() (program_invocation_short_name) 157 #else 158 extern char *__argp_short_program_name (void); 159 #endif 160