comparison lib/argp-namefrob.h @ 5978:ee280efaa0fb

autoupdate
author Karl Berry <karl@freefriends.org>
date Sun, 10 Jul 2005 12:38:11 +0000
parents ee25ff34c720
children 8ba920b5206b
comparison
equal deleted inserted replaced
5977:044f3909fcee 5978:ee280efaa0fb
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 GNU General Public License for more details. 14 GNU General Public License for more details.
15 15
16 You should have received a copy of the GNU General Public License along 16 You should have received a copy of the GNU General Public License along
17 with this program; if not, write to the Free Software Foundation, 17 with this program; if not, write to the Free Software Foundation,
18 Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ 18 Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */
19 19
20 #if !_LIBC 20 #if !_LIBC
21 /* This code is written for inclusion in gnu-libc, and uses names in the 21 /* This code is written for inclusion in gnu-libc, and uses names in the
22 namespace reserved for libc. If we're not compiling in libc, define those 22 namespace reserved for libc. If we're not compiling in libc, define those
23 names to be the normal ones instead. */ 23 names to be the normal ones instead. */
78 78
79 #include "mempcpy.h" 79 #include "mempcpy.h"
80 #include "strcase.h" 80 #include "strcase.h"
81 #include "strchrnul.h" 81 #include "strchrnul.h"
82 #include "strndup.h" 82 #include "strndup.h"
83 #include "unlocked-io.h"
84 83
85 /* normal libc functions we call */ 84 /* normal libc functions we call */
86 #undef __flockfile 85 #undef __flockfile
87 #define __flockfile flockfile 86 #define __flockfile flockfile
88 #undef __funlockfile 87 #undef __funlockfile
100 #undef __strndup 99 #undef __strndup
101 #define __strndup strndup 100 #define __strndup strndup
102 #undef __vsnprintf 101 #undef __vsnprintf
103 #define __vsnprintf vsnprintf 102 #define __vsnprintf vsnprintf
104 103
104 #if defined(HAVE_DECL_CLEARERR_UNLOCKED) && !HAVE_DECL_CLEARERR_UNLOCKED
105 # define clearerr_unlocked(x) clearerr (x)
106 #endif
107 #if defined(HAVE_DECL_FEOF_UNLOCKED) && !HAVE_DECL_FEOF_UNLOCKED
108 # define feof_unlocked(x) feof (x)
109 # endif
110 #if defined(HAVE_DECL_FERROR_UNLOCKED) && !HAVE_DECL_FERROR_UNLOCKED
111 # define ferror_unlocked(x) ferror (x)
112 # endif
113 #if defined(HAVE_DECL_FFLUSH_UNLOCKED) && !HAVE_DECL_FFLUSH_UNLOCKED
114 # define fflush_unlocked(x) fflush (x)
115 # endif
116 #if defined(HAVE_DECL_FGETS_UNLOCKED) && !HAVE_DECL_FGETS_UNLOCKED
117 # define fgets_unlocked(x,y,z) fgets (x,y,z)
118 # endif
119 #if defined(HAVE_DECL_FPUTC_UNLOCKED) && !HAVE_DECL_FPUTC_UNLOCKED
120 # define fputc_unlocked(x,y) fputc (x,y)
121 # endif
122 #if defined(HAVE_DECL_FPUTS_UNLOCKED) && !HAVE_DECL_FPUTS_UNLOCKED
123 # define fputs_unlocked(x,y) fputs (x,y)
124 # endif
125 #if defined(HAVE_DECL_FREAD_UNLOCKED) && !HAVE_DECL_FREAD_UNLOCKED
126 # define fread_unlocked(w,x,y,z) fread (w,x,y,z)
127 # endif
128 #if defined(HAVE_DECL_FWRITE_UNLOCKED) && !HAVE_DECL_FWRITE_UNLOCKED
129 # define fwrite_unlocked(w,x,y,z) fwrite (w,x,y,z)
130 # endif
131 #if defined(HAVE_DECL_GETC_UNLOCKED) && !HAVE_DECL_GETC_UNLOCKED
132 # define getc_unlocked(x) getc (x)
133 # endif
134 #if defined(HAVE_DECL_GETCHAR_UNLOCKED) && !HAVE_DECL_GETCHAR_UNLOCKED
135 # define getchar_unlocked() getchar ()
136 # endif
137 #if defined(HAVE_DECL_PUTC_UNLOCKED) && !HAVE_DECL_PUTC_UNLOCKED
138 # define putc_unlocked(x,y) putc (x,y)
139 # endif
140 #if defined(HAVE_DECL_PUTCHAR_UNLOCKED) && !HAVE_DECL_PUTCHAR_UNLOCKED
141 # define putchar_unlocked(x) putchar (x)
142 # endif
143
105 extern char *__argp_basename (char *name); 144 extern char *__argp_basename (char *name);
106 145
107 #endif /* !_LIBC */ 146 #endif /* !_LIBC */
108 147
109 #ifndef __set_errno 148 #ifndef __set_errno