.
[kopensolaris-gnu/glibc.git] / ChangeLog
1 2002-08-04  Roland McGrath  <roland@redhat.com>
2
3         * Makerules (cpp-srcs-left): When setting this to run
4         cppflags-iterator.mk, must append .c to $(tests) and $(xtests)
5         words.  Combine the two loops into one on the concatenated list,
6         including those as well as $(test-srcs).
7
8         * elf/dl-minimal.c (__libc_memalign): Guts of malloc moved here,
9         since we align here with optimally minimal waste anyway.
10         (malloc): Just call that.
11
12         * sysdeps/generic/libc-tls.c (__libc_setup_tls): Set l_tls_offset to
13         the right variable.
14
15         * elf/dl-load.c (_dl_map_object_from_fd): Use p_vaddr, not p_offset,
16         to compute memory location for l_tls_initimage.
17         * elf/rtld.c (_dl_start): Likewise.
18         * sysdeps/generic/libc-tls.c (__libc_setup_tls): Likewise.
19
20         * libio/oldiopopen.c: Move #include's before #if SHLIB_COMPAT,
21         because the .d file is generated in the non-shared case and
22         so fails to catch them otherwise.
23
24         * sysdeps/generic/dl-tls.c (_dl_allocate_tls_storage): New function,
25         split out of _dl_allocate_tls.
26         (_dl_allocate_tls_init): Likewise.
27         (_dl_allocate_tls): Call those.
28         * sysdeps/generic/ldsodefs.h: Declare them with attribute_hidden.
29         * elf/rtld.c (dl_main): Call them separately instead of calling
30         _dl_allocate_tls.  Delay _dl_allocate_tls_init until after relocation
31         is finished, so that the initializer data has been relocated before we
32         copy it into the main thread's TLS block.
33
34         * sysdeps/generic/dl-tls.c (_dl_allocate_tls): Fix off-by-one error in
35         loop conditions, prevented the last used module from being initialized.
36
37 2002-08-04  Jakub Jelinek  <jakub@redhat.com>
38
39         * sysdeps/generic/glob.c (glob, globfree): Only use libc_hidden_def
40         if glob resp. globfree are not macros.
41         * sysdeps/gnu/glob64.c (globfree64): Add libc_hidden_def.
42         * sysdeps/unix/sysv/linux/alpha/glob.c (glob, globfree, globfree64):
43         Add libc_hidden_ver.
44         * sysdeps/unix/sysv/linux/i386/glob64.c (globfree64): Add
45         libc_hidden_def.
46         * sysdeps/wordsize-64/glob.c (globfree64): Use libc_hidden_ver
47         instead of libc_hidden_weak.
48         * sysdeps/wordsize-64/strtol.c (__strtoll_internal): Use
49         libc_hidden_ver instead of libc_hidden_def.
50         * sysdeps/wordsize-64/wcstol.c (__wcstoll_internal): Use
51         libc_hidden_ver instead of libc_hidden_def.
52         (wcstoll, wcstoq): Remove libc_hidden_weak.
53         * sysdeps/wordsize-64/strtol_l.c (____strtoll_l_internal): Add
54         libc_hidden_ver.
55         * sysdeps/wordsize-64/strtoul.c (__strtoull_internal): Add
56         libc_hidden_ver.
57         * sysdeps/wordsize-64/strtoul_l.c (____strtoull_l_internal): Add
58         libc_hidden_ver.
59         * sysdeps/wordsize-64/wcstoul.c (__wcstoull_internal): Add
60         libc_hidden_ver.
61
62 2002-08-04  Ulrich Drepper  <drepper@redhat.com>
63
64         * stdio-common/psignal.c: Declare _sys_siglist_internal.  Use USEINT
65         to access _sys_siglist.
66         * string/strsignal.c: Likewise.
67         * sysdeps/generic/siglist.c: Add _sys_siglist_internal alias.
68         * sysdeps/gnu/siglist.c: Likewise.
69         * sysdeps/unix/siglist.c: Likewise.
70         * sysdeps/unix/sysv/linux/arm/siglist.c: Likewise.
71
72         * libio/fileops.c: Add missing INTUSEs for _IO_file_jumps.
73
74         * libio/wfileops.c: Add missing INTUSE for _IO_file_close.
75
76         * intl/dcigettext.c: Define _nl_default_dirname_internal as hidden
77         alias and use it.
78         * intl/bindtextdom.c: Use _nl_default_dirname_internal.
79
80         * include/netinet/in.h: Add declaration of in6addr_loopback_internal.
81         * inet/in6_addr.c: Add INTVARDEF for in6addr_loopback.
82         * sysdeps/posix/getaddrinfo.c: Use INTUSE for in6addr_loopback access.
83
84         * include/time.h: Add libc_hidden_proto for __gmtime_r.
85         * time/gmtime.c (__gmtime_r): Add libc_hidden_def.
86
87         * iconv/Versions: Replace __gconv_alias_db, __gconv_modules_db,
88         and __gconv_cache with __gconv_get_alias_db, __gconv_get_modules_db,
89         and __gconv_get_cache respectively.
90         * iconv/gconv_cache.c (gconv_cache): Renamed for __gconv_cache and
91         defined static.  Change all users.
92         (__gconv_get_cache): New function.
93         * iconv/gconv_db.c (__gconv_get_modules_db): New function.
94         (__gconv_get_alias_db): New function.
95         * iconv/gconv_int.h (__gconv_alias_db): Declare as hidden.
96         (__conv_modules_db): Likewise.
97         Add prototypes for __gconv_get_cache, __gconv_get_modules_db,
98         and __gconv_get_alias_db.
99         * iconv/iconv_prog.c: Use the new functions instead of accessing the
100         variables.
101
102         * include/stdlib.h: Add prototype and libc_hidden_proto for
103         __default_morecore.
104         * sysdeps/generic/morecore.c: Include <stdlib.h>.
105
106         * malloc/obstack.c: Remove fputs macro.
107
108         * malloc/mtrace.c: Remove fopen macro.
109
110 2002-08-04  Jakub Jelinek  <jakub@redhat.com>
111
112         * manual/debug.texi: Fix spelling to programmatically.
113         Reported by <hayastan132@hotmail.com>.
114
115 2002-08-04  Ulrich Drepper  <drepper@redhat.com>
116
117         * include/libio.h: Add libc_hidden_proto for __uflow.
118         * include/stdio.h: Map fopen, fdopen, fclose, fputs, fsetpos, and
119         fgetpos to _IO_* names.
120         Add libc_hidden_proto for fileno, fwrite, fseek, fflush_unlocked,
121         fread_unlocked, fwrite_unlocked, fgets_unlocked, fputs_unlocked.
122         * include/wchar.h: Add libc_hidden_proto for fputws_unlocked,
123         putwc_unlocked, vswscanf.
124         * libio/iolibio.h: Add libc_hidden_proto for _IO_fputs.
125         * libio/fileno.c: Use <stdio.h> and libc_hidden_def.
126         * libio/fseek.c: Likewise.
127         * libio/fmemopen.c: Include "libioP.h".  Call _IO_fopencookie and
128         not fopencookie.
129         * libio/genops.c (__uflow): Add libc_hidden_def.
130         * libio/iofflush_u.c (fflush_unlocked): Likewise.
131         * libio/iofgets_u.c (fgets_unlocked): Likewise.
132         * libio/iofputs_u.c (fputs_unlocked): Likewise.
133         * libio/iofputws_u.c (fputws_unlocked): Likewise.
134         * libio/iofread_u.c (fread_unlocked): Likewise.
135         * libio/iofwrite_u.c (fwrite_unlocked): Likewise.
136         * libio/iovswscanf.c (vswscanf): Likewise.
137         * libio/putwc_u.c (putwc_unlocked): Likewise.
138         * libio/iofputs.c: Use libc_hidden_def instead of INTDEF.
139         * malloc/malloc.c: Redirect fwrite calls to _IO_fwrite.
140         * malloc/mtrace.c: Likewise.
141
142         * sunrpc/clnt_perr.c: Remove fputs macro.
143         * sunrpc/svc_simple.c: Likewise.
144         * sunrpc/svc_tcp.c: Likewise.
145         * sunrpc/svc_udp.c: Likewise.
146         * sunrpc/xdr_rec.c: Likewise.
147         * sunrpc/xdr_ref.c: Likewise.
148
149         * iconv/Makefile: Add CPPFLAGS definitions with -DNOT_in_libc for
150         iconv_prog, linereader, and charmap-dir.
151         * locale/Makefile: Likewise for locale and charmap-dir.
152         * malloc/Makefile: Likewise for memusagestat.
153         * nscd/Makefile: Likewise for nscd, nscd_conf, and dbg_log.
154         * sunrpc/Makefile: Likewise for rpc_main.
155         * sysdeps/unix/sysv/linux/Makefile: Likewise for lddlibc4.
156         * timezone/Makefile: Likewise for zic.
157
158         * stdio-common/perror.c: Avoid multiple calls to fileno_unlocked.
159
160         * elf/dl-addr.c (_dl_addr): Add libc_hidden_def.
161         * elf/dl-close.c (_dl_close): Add libc_hidden_def.
162         * elf/dl-open.c (_dl_open): Add libc_hidden_def.
163         * include/dlfcn.h: Add libc_hidden_proto for _dl_addr, _dl_open,
164         _dl_close.
165
166         * include/libio.h: Add libc_hidden_proto for __underflow, __wuflow,
167         __wunderflow.
168         * libio/genops.c (__underflow): Add libc_hidden_def.
169         * libio/wgenops.c (__wuflow): Likewise.
170         (__wunderflow): Likewise.
171
172         * include/obstack.h: Add libc_hidden_proto for _obstack_newchunk.
173         * malloc/obstack.c (_obstack_newchunk): Add libc_hidden_def.
174
175         * include/stdio.h: Add libc_hidden_proto for __vfscanf.
176         * stdio-common/vfscanf.c (__vfscanf): Add libc_hidden_def.
177
178         * include/string.h: Add libc_hidden_proto for __strverscmp.
179         * string/strverscmp.c (__strverscmp): Add libc_hidden_def.
180
181         * include/unistd.h: Add libc_hidden_proto for __sysconf.
182         * sysdeps/generic/sysconf.c (__sysconf): Add libc_hidden_def.
183         * sysdeps/posix/sysconf.c: Likewise.
184         * sysdeps/unix/sysv/irix4/sysconf.c: Likewise.
185         * sysdeps/unix/sysv/sysv4/sysconf.c: Likewise.
186
187         * include/wctype.h: Use libc_hidden_proto for __iswctype, __iswalnum_l,
188         __iswalpha_l, __iswblank_l, __iswcntrl_l, __iswdigit_l, __iswlower_l,
189         __iswgraph_l, __iswprint_l, __iswpunct_l, __iswspace_l, __iswupper_l,
190         __iswxdigit_l, __towlower_l, __towupper_l.
191         * wcsmbs/wcstype.c (__iswctype): Use libc_hidden_def.
192         * wcsmbs/wcfuncs_l.c: Use libc_hidden_def for all functions.
193
194         * include/sys/wait.h: Add libc_hidden_proto for __xmknod.
195         * sysdeps/generic/xmknod.c (__xmknod): Add libc_hidden_def.
196         * sysdeps/mach/hurd/xmknod.c: Likewise.
197         * sysdeps/unix/xmknod.c: Likewise.
198         * sysdeps/unix/sysv/linux/xmknod.c: Likewise.
199         * sysdeps/unix/sysv/linux/alpha/xmknod.c: Likewise.
200         * sysdeps/unix/sysv/linux/mips/xmknod.c: Likewise.
201
202         * sunrpc/svc.c: Add missing INTUSE for _authenticate.
203
204 2002-08-03  Roland McGrath  <roland@redhat.com>
205
206         * include/sys/resource.h: Use libc_hidden_proto for getpriority,
207         setpriority.
208         * sysdeps/unix/sysv/linux/getpriority.c: Add libc_hidden_def.
209         * sysdeps/unix/sysv/irix4/getpriority.c: Likewise.
210         * sysdeps/mach/hurd/setpriority.c: Likewise.
211         * sysdeps/mach/hurd/getpriority.c: Likewise.
212         * sysdeps/generic/setpriority.c: Likewise.
213         * sysdeps/generic/getpriority.c: Likewise.
214
215         * include/mcheck.h: Use libc_hidden_proto for mcheck_check_all.
216         * malloc/mcheck.c: Add libc_hidden_def.
217
218         * include/search.h: Use libc_hidden_proto for hcreate_r, hdestroy_r.
219         * misc/hsearch_r.c: Add libc_hidden_def.
220
221         * include/fnmatch.h: Use libc_hidden_proto for fnmatch.
222         * posix/fnmatch.c: Add libc_hidden_weak.
223
224         * include/unistd.h: Use libc_hidden_proto for _exit, alarm, confstr,
225         execl, execle, execlp, execvp, getpid, getsid.
226         * sysdeps/generic/alarm.c: Add libc_hidden_def.
227         * sysdeps/unix/alarm.c: Likewise.
228         * posix/confstr.c: Likewise.
229         * posix/execvp.c: Likewise.
230         * posix/execlp.c: Likewise.
231         * posix/execle.c: Likewise.
232         * posix/execl.c: Likewise.
233         * sysdeps/generic/getsid.c: Likewise.
234         * sysdeps/mach/hurd/getsid.c: Likewise.
235         * sysdeps/generic/getpid.c: Add libc_hidden_weak.
236         * sysdeps/mach/hurd/getpid.c: Likewise.
237
238         * include/stdlib.h: Use libc_hidden_proto for ecvt_r, fcvt_r,
239         qecvt_r, qfcvt_r, lrand48_r.
240         * misc/efgcvt_r.c: Add libc_hidden_def.
241
242         * include/wordexp.h: Use libc_hidden_proto for wordfree.
243         * sysdeps/generic/wordexp.c: Add libc_hidden_def.
244
245         * include/langinfo.h: Use libc_hidden_proto for nl_langinfo.
246         * locale/nl_langinfo.c: Add libc_hidden_def.
247
248         * include/glob.h: Use libc_hidden_proto for glob, globfree, globfree64.
249         * sysdeps/generic/glob.c: Add libc_hidden_def.
250         * sysdeps/generic/glob64.c: Likewise.
251         * sysdeps/wordsize-64/glob.c (globfree64): Add libc_hidden_weak.
252
253         * locale/nl_langinfo.c: Use _NL_CURRENT_DATA.
254
255         * elf/Makefile (CFLAGS-vismod2.c): New variable.
256
257         * locale/setlocale.c (_nl_current_names): Variable moved ...
258         * locale/localename.c (_nl_current_names): ... here, new file.
259         Make it global, with attribute_hidden.
260         * locale/localeinfo.h: Declare it.
261         * locale/Makefile (aux): Add localename.
262         * locale/localename.c (__current_locale_name): New function.
263         * include/locale.h (__current_locale_name): Declare it.
264         * intl/dcigettext.c (guess_category_value): Use that instead of
265         calling setlocale.
266
267         * locale/locale.h [__USE_GNU] (locale_t): New type alias of __locale_t.
268         [__USE_GNU] (newlocale, duplocale, freelocale, uselocale): New decls.
269         [__USE_GNU] (LC_GLOBAL_LOCALE): New macro.
270         * locale/newlocale.c: Add alias to __ name.
271         * locale/duplocale.c: Likewise.
272         * locale/freelocale.c: Likewise.
273         * locale/uselocale.c: New file.
274         * locale/Makefile (routines): Add it.
275         * locale/Versions (libc: GLIBC_2.3): New set.
276         Add newlocale, duplocale, freelocale, uselocale.
277         (libc: GLIBC_PRIVATE): Add __uselocale.
278
279         * locale/localeinfo.h [SHARED]
280         (_NL_CURRENT_LOCALE): New macro, defined to fetch a tsd value.
281         (_NL_CURRENT_DATA): Define using that.
282         (_NL_CURRENT, _NL_CURRENT_WSTR, _NL_CURRENT_WORD): Define using that.
283         (_NL_CURRENT_DEFINE): Define to empty.
284         [! SHARED]: Decls of _nl_current_CATEGORY and _nl_current
285         conditionalized on this.
286         * locale/xlocale.c (NL_C_INTIIALIZER): New macro,
287         taking initializer of _nl_C_locobj.
288         [SHARED] (_nl_global_locale): New variable, using that initializer.
289         (_nl_C_locobj): Use new macro for initialzier.
290         * locale/setlocale.c [! SHARED] (_nl_current): Conditionalize on this.
291         [! SHARED] (CATEGORY_USED): New macro.
292         [SHARED] (CATEGORY_USED, _nl_C): New macros.
293         (setdata, setlocale): Use that macro instead of examining _nl_current.
294         (setdata): Set the slot in _nl_global_locale.
295         Conditionalize setting of _nl_current on [! SHARED].
296         * locale/findlocale.c [SHARED] (_nl_C): Define as a macro instead of
297         declaration as an extern.
298         * locale/newlocale.c (__newlocale): Use _nl_C_locobj instead of _nl_C.
299
300         * include/locale.h: Use libc_hidden_proto for setlocale.
301         * locale/setlocale.c: Add libc_hidden_def.
302
303         * locale/setlocale.c (free_mem): Use _NL_CURRENT_DATA.
304
305         * include/search.h: Use libc_hidden_proto for hsearch_r, lfind.
306         * misc/hsearch_r.c: Add libc_hidden_def.
307         * misc/lsearch.c: Likewise.
308
309         * include/ttyent.h: Use libc_hidden_proto for getttyent, setttyent,
310         endttyent.
311         * misc/getttyent.c: Add libc_hidden_def.
312
313         * include/mcheck.h: Use libc_hidden_proto for mcheck.
314         * malloc/mcheck.c: Add libc_hidden_def.
315
316         * include/envz.h: Use libc_hidden_proto for envz_entry, enz_remove.
317         * include/argz.h: Use libc_hidden_proto for argz_delete.
318         * string/argz-delete.c: Add libc_hidden_def.
319         * string/envz.c: Likewise.  Use <envz.h>, not "envz.h".
320
321         * sysdeps/unix/sysv/linux/x86_64/clone.S (thread_start): Use
322         HIDDEN_JUMPTARGET for _exit.
323         * sysdeps/unix/sysv/linux/m68k/clone.S (thread_start): Likewise.
324         * sysdeps/unix/sysv/linux/i386/clone.S (thread_start): Likewise.
325         * sysdeps/unix/sysv/linux/powerpc/clone.S: Likewise.
326         * sysdeps/unix/_exit.S (_exit): Add libc_hidden_def.
327
328         * include/libc-symbols.h: Fix [__ASSEMBLY__] -> [__ASSEMBLER__].
329         [__ASSEMBLER__] (hidden_weak): Define using hidden_def, or to empty.
330         [__ASSEMBLER__] (HIDDEN_JUMPTARGET): New macro.
331         * sysdeps/unix/sysv/linux/i386/makecontext.S: Use it for exit.
332
333         * include/stdlib.h: Use libc_hidden_proto for abort,
334         __strtof_internal, __strtod_internal, __strtold_internal,
335         __strtol_internal, __strtoll_internal, __strtoul_internal,
336         __strtoull_internal. __strtof_l_internal, __strtod_l_internal,
337         __strtold_l_internal, __strtol_l_internal, __strtoll_l_internal,
338         __strtoul_l_internal, __strtoull_l_internal.
339         * include/wchar.h: Use libc_hidden_proto for __wcstof_internal,
340         __wcstod_internal, __wcstold_internal, __wcstol_internal,
341         __wcstoll_internal, __wcstoul_internal, ____wcstof_l_internal,
342         ____wcstod_l_internal, ____wcstold_l_internal, ____wcstol_l_internal,
343         ____wcstoll_l_internal, ____wcstoul_l_internal, __wcscasecmp_l,
344         __wcsncasecmp_l.
345         * sysdeps/generic/abort.c: Add libc_hidden_def.
346         * stdlib/strtod.c: Likewise.
347         * sysdeps/generic/strtol.c: Likewise.
348         * sysdeps/wordsize-64/strtol.c: Likewise.
349         * sysdeps/wordsize-64/wcstol.c: Likewise.
350         * sysdeps/wordsize-64/wcstol_l.c: Likewise.
351
352         * include/stdlib.h: Use libc_hidden_proto for qsort.
353         * stdlib/msort.c: Add libc_hidden_def.
354
355         * include/utime.h: Use libc_hidden_proto for utime.
356         * sysdeps/generic/utime.c: Add libc_hidden_def.
357         * sysdeps/unix/utime.c: Likewise.
358
359         * sysdeps/generic/utmp_file.c (LOCK_FILE): sigemptyset -> __sigemptyset
360         * sysdeps/posix/profil.c (__profil): sigfillset -> __sigfillset
361         * sysdeps/posix/sprofil.c (__sprofil): Likewise.
362         * shadow/lckpwdf.c (__lckpwdf): Likewise (both).
363         * sysdeps/posix/spawni.c (__spawni): sigismember -> __sigismember
364
365         * include/signal.h: Use libc_hidden_proto for raise, sigemptyset,
366         sigfillset, sigismember, __sigpause, __libc_current_sigrtmin,
367         and __libc_current_sigrtmax.
368         * signal/sigismem.c: Add libc_hidden_def.
369         * signal/sigfillset.c: Likewise.
370         * signal/sigempty.c: Likewise.
371         * sysdeps/generic/sigpause.c (__sigpause): Likewise.
372         * sysdeps/posix/sigpause.c (__sigpause): Likewise.
373         * sysdeps/unix/bsd/osf/alpha/sigpause.S: Likewise.
374         * sysdeps/posix/raise.c: Likewise.
375         * sysdeps/generic/raise.c: Likewise.
376
377 2002-08-03  Ulrich Drepper  <drepper@redhat.com>
378
379         * include/string.h: Use libc_hidden_proto for __stpcpy.
380         * sysdeps/alpha/stpcpy.S (__stpcpy): Add libc_hidden_def.
381         * sysdeps/alpha/alphaev67/stpcpy.S: Likewise.
382         * sysdeps/generic/stpcpy.c: Likewise.
383         * sysdeps/i386/stpcpy.S: Likewise.
384         * sysdeps/i386/i586/stpcpy.S: Likewise.
385         * sysdeps/powerpc/stpcpy.S: Likewise.
386         * sysdeps/sparc/sparc32/stpcpy.S: Likewise.
387         * sysdeps/sparc/sparc64/stpcpy.S: Likewise.
388
389         * include/string.h: Use libc_hidden_proto for __strcasecmp_l,
390         __strncasecmp_l, __strdup, __strndup, __strerror_r.
391         * sysdeps/generic/strcasecmp_l.c (__strcasecmp_l): Add
392         libc_hidden_def.
393         * string/strdup.c (__strdup): Likewise.
394         * string/strndup.c (__strndup): Likewise.
395         * sysdeps/generic/_strerror.c (__strerror_r): Likewise.
396         * sysdeps/generic/strncase_l.c (__strncasecmp_l): Likewise.
397
398 2002-08-03  Jakub Jelinek  <jakub@redhat.com>
399
400         * include/libio.h: New file.
401         * libio/libioP.h (__overflow, __woverflow): Remove libc_hidden_proto.
402         * libio/iolibio.h: #include <libio.h>, not "libio.h".
403         * sysdeps/generic/morecore.c (__sbrk): Add libc_hidden_proto.
404         * sysdeps/unix/bsd/syscalls.list: Remove all __GI_* aliases.
405         * sysdeps/unix/common/syscalls.list: Likewise.
406         * sysdeps/unix/inet/syscalls.list: Likewise.
407         * sysdeps/unix/sysv/irix4/syscalls.list: Likewise.
408         * sysdeps/unix/sysv/linux/alpha/syscalls.list: Likewise.
409         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
410         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
411         * sysdeps/unix/sysv/linux/hppa/syscalls.list: Likewise.
412         * sysdeps/unix/sysv/linux/mips/syscalls.list: Likewise.
413         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
414         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
415         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
416         * sysdeps/unix/sysv/sysv4/solaris2/syscalls.list: Likewise.
417         * sysdeps/unix/syscalls.list: Likewise.
418
419 2002-08-03  Jakub Jelinek  <jakub@redhat.com>
420             Ulrich Drepper  <drepper@redhat.com>
421
422         * malloc/malloc.c (public_cALLOc): Only divide if at least one of
423         the arguments is big enough to cause an overflow.
424
425 2002-08-03  Ulrich Drepper  <drepper@redhat.com>
426
427         * assert/assert.c: Use hidden_def not INTDEF.
428
429 2002-08-03  Jakub Jelinek  <jakub@redhat.com>
430
431         * include/libc-symbols.h: Optimize if HAVE_BROKEN_ALIAS_ATTRIBUTE is
432         not defined.
433
434 2002-08-03  Roland McGrath  <roland@redhat.com>
435
436         * include/sys/syslog.h: Use libc_hidden_proto for syslog, vsyslog.
437         * include/err.h: Use libc_hidden_proto for warn, warnx, vwarn, vwarn,
438         verr, verrx.
439         * include/stdlib.h: Use libc_hidden_proto for exit, getenv, bsearch.
440         * misc/syslog.c: Add libc_hidden_def.
441         * misc/err.c: Likewise.
442         * stdlib/exit.c: Likewise.
443         * stdlib/bsearch.c: Likewise.
444         * sysdeps/generic/getenv.c: Likewise.
445
446         * include/libc-symbols.h (hidden_weak): Define it for [__ASSEMBLER__].
447
448         * sysdeps/unix/make-syscalls.sh: Generate libc_hidden_def or
449         libc_hidden_weak for every system call symbol defined.
450
451         * include/time.h: Use libc_hidden_proto for time, asctime, mktime,
452         timelocal, localtime, strftime.
453         * time/asctime.c: Add libc_hidden_def.
454         * time/mktime.c: Likewise.
455         * time/localtime.c: Likewise.
456         * time/strftime.c: Likewise.
457         * time/strptime.c: Likewise.
458         * sysdeps/generic/time.c: Likewise.
459         * sysdeps/unix/time.c: Likewise.
460         * sysdeps/unix/sysv/i386/time.S: Likewise.
461         * sysdeps/unix/sysv/linux/x86_64/time.S: Likewise.
462
463         * include/arpa/inet.h: Use libc_hidden_proto for inet_ntop, inet_pton.
464         inet_makeaddr, inet_netof, inet_addr, __inet_addr.
465         * resolv/inet_ntop.c: Likewise.
466         * resolv/inet_pton.c: Likewise.
467         * inet/inet_mkadr.c: Add libc_hidden_def.
468         * inet/inet_netof.c: Likewise.
469         * resolv/inet_addr.c: Likewise.
470
471         * include/libc-symbols.h: Remove `defined HAVE_BROKEN_ALIAS_ATTRIBUTE'
472         clauses from conditionals for now.  Will have to be fixed later
473         for older compilers.
474
475         * sysdeps/generic/mempcpy.c (__mempcpy): #undef it before defn.
476
477 2002-08-02  Ulrich Drepper  <drepper@redhat.com>
478
479         * configure.in (HAVE_BROKEN_ALIAS_ATTRIBUTE): Add check for
480         broken alias attribute handling.
481         * config.h.in (HAVE_BROKEN_ALIAS_ATTRIBUTE): Add.
482
483 2002-08-02  Roland McGrath  <roland@frob.com>
484
485         * elf/Makefile ($(objpfx)interp.os): Depend on config.make,
486         since it sets the variables we use in a -D switch.
487
488 2002-08-02  Roland McGrath  <roland@redhat.com>
489
490         * posix/bits/posix1_lim.h (SSIZE_MAX): Define to LONG_MAX, not INT_MAX.
491         On 32-bit platforms they are the same; on 64-bit platforms ssize_t
492         matches long int, not int.
493
494         * locale/localeinfo.h (_NL_CURRENT_DATA): New macro.
495         * wcsmbs/wcsmbsload.h (update_conversion_ptrs): Use it.
496         * locale/lc-ctype.c (_nl_postload_ctype): Likewise.
497         * wctype/wctrans.c (wctrans): Likewise.
498         * wctype/wctype.c (__wctype): Likewise.
499         * intl/loadmsgcat.c (_nl_init_domain_conv): Use _NL_CURRENT.
500
501 2002-08-02  Ulrich Drepper  <drepper@redhat.com>
502
503         * assert/assert.c (__assert_fail): Fix typo in comment.
504
505         * include/rpc/rpc.h: Declare RPC_VARS tsd as extern.
506         * sunrpc/rpc_thread.c: Define it without static.
507         * sunrpc/Versions [libc] (GLIBC_PRIVATE): Export __libc_tsd_RPC_VARS.
508
509 2002-08-02  Jakub Jelinek  <jakub@redhat.com>
510
511         * assert/assert.c (__assert_fail): Remove undef.
512         Replace INTDEF with libc_hidden_def.
513         * assert/__assert.c (__assert): Remove INTUSE.
514         * elf/dl-minimal.c (__assert_fail): Replace INTDEF with
515         libc_hidden_weak.
516         * include/libc-symbols.h (hidden_proto, hidden_def, hidden_weak,
517         hidden_ver, libc_hidden_proto, libc_hidden_def, libc_hidden_weak,
518         libc_hidden_ver, rtld_hidden_proto, rtld_hidden_def, rtld_hidden_weak,
519         rltd_hidden_ver, libm_hidden_proto, libm_hidden_def, libm_hidden_weak,
520         libm_hiden_ver): Define.
521         * include/assert.h (__assert_fail_internal): Remove.
522         (__assert_fail): Add prototype.  Add hidden_proto.
523         * include/libc-internal.h (__libc_freeres, __profile_frequency): Add
524         libc_hidden_proto.
525         * include/wchar.h (__mbrtowc_internal, __mbrlen_internal): Remove.
526         (__mbrtowc, __mbrlen): Use libc_hidden_proto.  Remove macros.
527         * include/string.h (__mempcpy, __stpncpy, __rawmemchr, __strcasecmp):
528         Add libc_hidden_proto.
529         * include/fcntl.h (__open64, __libc_open, __libc_fcntl, __open,
530         __fcntl): Add libc_hidden_proto.  Remove macros.
531         (__open_internal, __fcntl_internal): Remove.
532         * libio/iofdopen.c (_IO_fcntl): Remove INTUSE from __fcntl.
533         * malloc/set-freeres.c (__libc_freeres): Add libc_hidden_def.
534         * nss/nsswitch.h (__nss_database_lookup, __nss_next): Add
535         libc_hiden_proto.
536         * nss/nsswitch.c (__nss_database_lookup, __nss_next): Add
537         libc_hidden_def.
538         * sysdeps/generic/mempcpy.c (__mempcpy): Remove undef.
539         Add libc_hidden_def.
540         * sysdeps/generic/open64.c (__open64): Add libc_hidden_def.
541         * sysdeps/generic/open.c (__open): Remove undef.
542         Add libc_hidden_def.  Remove INTDEF.
543         * sysdeps/generic/fcntl.c (__fcntl): Remove undef.
544         Add libc_hidden_def.
545         * sysdeps/mach/hurd/fcntl.c (__fcntl): Likewise.
546         * sysdeps/i386/i586/mempcpy.S (__mempcpy): Add libc_hidden_def.
547         * sysdeps/i386/i686/mempcpy.S (__mempcpy): Likewise.
548         * sysdeps/mach/hurd/fcntl.c (__libc_fcntl, __fcntl): Remove undef.
549         (__fcntl): Remove INTDEF2.  Add libc_hidden_weak.
550         (__libc_fcntl): Add libc_hidden_def.
551         * sysdeps/mach/hurd/open.c (__libc_open, __open): Remove undef.
552         (__open): Remove INTDEF2.  Add libc_hidden_weak.
553         (__libc_open): Add libc_hidden_def.
554         * sysdeps/posix/open64.c (__open64): Add libc_hidden_weak.
555         * sysdeps/standalone/open.c (__open): Add libc_hidden_def.
556         * sysdeps/unix/sysv/aix/fcntl.c (__libc_fcntl, __fcntl): Remove undef.
557         Add libc_hidden_def.
558         * sysdeps/unix/sysv/aix/open.c (__libc_open, __open): Remove undef.
559         Add libc_hidden_def.
560         * sysdeps/unix/sysv/linux/i386/fcntl.c (__libc_fcntl, __fcntl): Remove
561         undef.
562         (__fcntl): Remove INTDEF2.  Add libc_hidden_weak.
563         (__libc_fcntl): Add libc_hidden_def.
564         * sysdeps/unix/sysv/linux/syscalls.list (__fcntl_internal,
565         __getpgid_internal, __chown_internal): Remove.
566         (__GI___fcntl, __GI___libc_fcntl, __GI___getpgid, __GI___pipe,
567         __GI___sched_setscheduler, __GI___select, __GI___setpgid,
568         __GI___chown): Add.
569         * sysdeps/unix/syscalls.list (__close_internal, __dup2_internal,
570         __getpid_internal, __open_internal, __write_internal): Remove.
571         (__GI___fcntl, __GI___libc_fcntl, __GI___open, __GI___libc_open,
572         __GI___chown, __GI___close, __GI___dup2, __GI___getpid,
573         __GI___libc_open, __GI___open, __GI___read, __GI___libc_read,
574         __GI___select, __GI___statfs, __GI___write, __GI___libc_write): Add.
575         * wcsmbs/mbrlen.c (__mbrlen): Remove undef.
576         Replace INTDEF with libc_hidden_def.
577         * wcsmbs/mbrtowc.c (__mbrtowc): Likewise.
578         * catgets/catgetsinfo.h (__open_catalog): Add libc_hidden_proto.
579         * catgets/open_catalog.c (__open_catalog): Add libc_hidden_def.
580         * elf/dl-profile.c (__profile_frequency): Add libc_hidden_proto.
581         * include/rpc/rpc.h (__rpc_thread_svc_fdset, __rpc_thread_createerr):
582         Add libc_hidden_proto.
583         * include/sys/poll.h (__poll): Add libc_hidden_proto.
584         * include/sys/select.h (__select): Likewise.
585         * include/sys/socket.h (__send): Likewise.
586         * include/sys/statfs.h (__statfs): Likewise.
587         * include/unistd.h (__pwrite64, __libc_read, __pipe, __chown, __dup2,
588         __getpid, __getpgid, __setpgid, __close, __read, __write,
589         __getpagesize, __sbrk): Likewise.
590         (__chown_internal, __dup2_internal, __getpid_internal,
591         __getpgid_internal, __close_internal, __write_internal,
592         __getpagesize_internal): Remove.
593         (__close, __dup2, __getpagesize, __getpgid, __getpid, __libc_write):
594         Remove macros.
595         * include/printf.h (__printf_fp): Add libc_hidden_proto.
596         * include/sched.h (__sched_setscheduler): Likewise.
597         * include/resolv.h (__res_ninit, __res_randomid): Likewise.
598         * include/stdlib.h (__secure_getenv): Likewise.
599         * include/signal.h (__sigaction, __sigsuspend): Likewise.
600         * inet/getaliasent_r.c (NSS_attribute_hidden): Remove.
601         * inet/getaliasname_r.c (NSS_attribute_hidden): Remove.
602         * inet/getnetbyad_r.c (NSS_attribute_hidden): Remove.
603         * inet/getnetbynm_r.c (NSS_attribute_hidden): Remove.
604         * inet/getnetent_r.c (NSS_attribute_hidden): Remove.
605         * inet/getproto_r.c (NSS_attribute_hidden): Remove.
606         * inet/getprtent_r.c (NSS_attribute_hidden): Remove.
607         * inet/getprtname_r.c (NSS_attribute_hidden): Remove.
608         * inet/getrpcbyname_r.c (NSS_attribute_hidden): Remove.
609         * inet/getrpcbynumber_r.c (NSS_attribute_hidden): Remove.
610         * inet/getrpcent_r.c (NSS_attribute_hidden): Remove.
611         * inet/getservent_r.c (NSS_attribute_hidden): Remove.
612         * inet/getsrvbynm_r.c (NSS_attribute_hidden): Remove.
613         * inet/getsrvbypt_r.c (NSS_attribute_hidden): Remove.
614         * inet/gethstbyad_r.c (DB_LOOKUP_FCT): Remove INTUSE.
615         * inet/gethstbynm2_r.c (DB_LOOKUP_FCT): Likewise.
616         * inet/gethstbynm_r.c (DB_LOOKUP_FCT): Likewise.
617         * inet/gethstent_r.c (DB_LOOKUP_FCT): Likewise.
618         * libio/genops.c (__overflow): Add libc_hidden_def.
619         * libio/iovdprintf.c: Remove libio.h include.
620         * libio/libioP.h (libc_hidden_proto, libc_hidden_def,
621         libc_hidden_weak): Define to nothing if not defined.
622         (__overflow, __woverflow): Add libc_hidden_proto.
623         * libio/wgenops.c (__woverflow): Add libc_hidden_def.
624         * nss/getXXent_r.c (NSS_attribute_hidden): Remove.
625         (DB_LOOKUP_FCT): Add libc_hidden_proto.
626         * nss/getXXbyYY_r.c (NSS_attribute_hidden): Remove.
627         (DB_LOOKUP_FCT): Add libc_hidden_proto.
628         * nss/XXX-lookup.c (DB_LOOKUP_FCT): Add libc_hidden_proto
629         and libc_hidden_def.
630         * nss/hosts-lookup.c (__nss_hosts_lookup): Remove INTDEF.
631         * posix/bsd-getpgrp.c (__getpgid_internal): Remove.
632         (__getpgid): Add libc_hidden_proto.
633         (__bsd_getpgrp): Remove INTUSE.
634         * resolv/res_init.c (__res_ninit, __res_randomid): Add
635         libc_hidden_def.
636         * shadow/getspent_r.c (NSS_attribute_hidden): Remove.
637         * shadow/getspnam_r.c (NSS_attribute_hidden): Remove.
638         * stdio-common/printf_fp.c (__printf_fp): Add libc_hidden_def.
639         * stdlib/strfmon.c (__printf_fp): Add libc_hidden_proto.
640         * stdlib/secure-getenv.c (__secure_getenv): Add libc_hidden_def.
641         * sunrpc/rpc_thread.c (__rpc_thread_svc_fdset,
642         __rpc_thread_createerr): Add libc_hidden_def.
643         * sysdeps/alpha/alphaev67/rawmemchr.S (__rawmemchr): Add
644         libc_hidden_def.
645         * sysdeps/alpha/alphaev67/stpncpy.S (__stpncpy): Likewise.
646         * sysdeps/alpha/rawmemchr.S (__rawmemchr): Likewise.
647         * sysdeps/alpha/stpncpy.S (__stpncpy): Likewise.
648         * sysdeps/generic/chown.c (__chown): Likewise.
649         * sysdeps/generic/close.c (__close): Likewise.
650         * sysdeps/generic/dup2.c (__dup2): Likewise.
651         * sysdeps/generic/pipe.c (__pipe): Likewise.
652         * sysdeps/generic/prof-freq.c (__profile_frequency): Likewise.
653         * sysdeps/generic/pwrite64.c (__pwrite64): Likewise.
654         * sysdeps/generic/rawmemchr.c (__rawmemchr): Likewise.
655         * sysdeps/generic/read.c (__libc_read): Likewise.
656         (__read): Add libc_hidden_weak.
657         * sysdeps/generic/sbrk.c (__sbrk): Add libc_hidden_def.
658         * sysdeps/generic/sched_sets.c (__sched_setscheduler): Likewise.
659         * sysdeps/generic/select.c (__select): Likewise.
660         * sysdeps/generic/send.c (__send): Likewise.
661         * sysdeps/generic/setpgid.c (__setpgid): Likewise.
662         * sysdeps/generic/sigaction.c (__sigaction): Likewise.
663         * sysdeps/generic/sigsuspend.c (__sigsuspend): Likewise.
664         * sysdeps/generic/statfs.c (__statfs): Likewise.
665         * sysdeps/generic/stpncpy.c (__stpncpy): Likewise.
666         * sysdeps/generic/strcasecmp.c (__strcasecmp): Likewise.
667         * sysdeps/generic/getpagesize.c (__getpagesize): Likewise.
668         Remove undef and INTDEF.
669         * sysdeps/generic/getpgid.c (__getpgid): Likewise.
670         * sysdeps/generic/getpid.c (__getpid): Likewise.
671         * sysdeps/generic/write.c (__libc_write): Likewise.
672         (__write): Add libc_hidden_weak.  Remove undef and INTDEF.
673         * sysdeps/i386/rawmemchr.S (__rawmemchr): Add libc_hidden_def.
674         * sysdeps/i386/stpncpy.S (__stpncpy): Likewise.
675         * sysdeps/m68k/rawmemchr.S (__rawmemchr): Likewise.
676         * sysdeps/mach/hurd/chown.c (__chown): Likewise.  Remove INTDEF.
677         * sysdeps/mach/hurd/close.c (__close): Add libc_hidden_def.
678         Remove undef and INTDEF.
679         * sysdeps/mach/hurd/dup2.c (__dup2): Likewise.
680         * sysdeps/mach/hurd/getpgid.c (__getpgid): Likewise.
681         * sysdeps/mach/hurd/getpid.c (__getpid): Likewise.
682         * sysdeps/mach/getpagesize.c (__getpagesize): Likewise.
683         * sysdeps/mach/hurd/write.c (__libc_write): Likewise.
684         (__write): Add libc_hidden_weak.  Remove undef and INTDEF.
685         * sysdeps/mach/hurd/pipe.c: Include unistd.h.
686         (__pipe): Add libc_hidden_def.
687         * sysdeps/mach/hurd/dl-sysdep.c (__libc_read, __libc_write): Add
688         libc_hidden_weak.
689         * sysdeps/mach/hurd/poll.c (__poll): Add libc_hidden_def.
690         * sysdeps/mach/hurd/profil.c (__profile_frequency): Likewise.
691         * sysdeps/mach/hurd/read.c (__libc_read): Likewise.
692         (__read): Add libc_hidden_weak.
693         * sysdeps/mach/hurd/pwrite64.c (__pwrite64): Likewise.
694         (__libc_pwrite64): Add libc_hidden_def.
695         * sysdeps/mach/hurd/sbrk.c (__sbrk): Likewise.
696         * sysdeps/mach/hurd/select.c (__select): Likewise.
697         * sysdeps/mach/hurd/send.c (__send): Likewise.
698         * sysdeps/mach/hurd/setpgid.c (__setpgid): Likewise.
699         * sysdeps/mach/hurd/sigaction.c (__sigaction): Likewise.
700         * sysdeps/mach/hurd/sigsuspend.c (__sigsuspend): Likewise.
701         * sysdeps/mach/hurd/statfs.c (__statfs): Likewise.
702         * sysdeps/posix/dup2.c: Likewise.
703         Remove undef and INTDEF.
704         * sysdeps/posix/getpagesize.c (__getpagesize): Likewise.
705         * sysdeps/posix/pwrite64.c (__libc_pwrite64): Add libc_hidden_def.
706         (__pwrite64): Add libc_hidden_weak.
707         * sysdeps/posix/sigsuspend.c (__sigsuspend): Add libc_hidden_def.
708         * sysdeps/sparc/sparc64/rawmemchr.S (__rawmemchr): Likewise.
709         * sysdeps/sparc/sparc64/stpncpy.S (__stpncpy): Likewise.
710         * sysdeps/standalone/close.c (__close): Likewise.
711         * sysdeps/standalone/write.c (__libc_write): Likewise.
712         (__write): Add libc_hidden_weak.
713         * sysdeps/standalone/read.c (__read): Likewise.
714         (__libc_read): Add libc_hidden_def.
715         * sysdeps/unix/grantpt.c (grantpt): Remove INTUSE.
716         * sysdeps/unix/bsd/m68k/pipe.S (__pipe): Add libc_hidden_def.
717         * sysdeps/unix/bsd/osf/alpha/pipe.S (__pipe): Likewise.
718         * sysdeps/unix/bsd/vax/pipe.S (__pipe): Likewise.
719         * sysdeps/unix/bsd/syscalls.list (__GI___getpagesize): Likewise.
720         * sysdeps/unix/bsd/poll.c (__poll): Likewise.
721         * sysdeps/unix/bsd/sigaction.c (__sigaction): Likewise.
722         * sysdeps/unix/bsd/sigsuspend.c (__sigsuspend): Likewise.
723         * sysdeps/unix/common/syscalls.list (__GI___getpgid, __GI___setpgid,
724         __GI___sigaction): Add.
725         * sysdeps/unix/i386/pipe.S (__pipe): Add libc_hidden_def.
726         * sysdeps/unix/inet/syscalls.list (__GI___send): Add.
727         * sysdeps/unix/mips/pipe.S (__pipe): Add libc_hidden_def.
728         * sysdeps/unix/sparc/pipe.S (__pipe): Likewise.
729         * sysdeps/unix/sysv/irix4/syscalls.list (__GI___getpgid,
730         __GI___setpgid): Add.
731         * sysdeps/unix/sysv/aix/chown.c (__chown): Add libc_hidden_def.
732         Remove undef and INTDEF.
733         * sysdeps/unix/sysv/aix/getpgid.c (__getpgid): Likewise.
734         * sysdeps/unix/sysv/aix/write.c (__write, __libc_write): Likewise.
735         * sysdeps/unix/sysv/aix/close.c (__close): Add libc_hidden_def.
736         * sysdeps/unix/sysv/aix/getpid.c (__getpid): Likewise.
737         * sysdeps/unix/sysv/aix/pipe.c (__pipe): Likewise.
738         * sysdeps/unix/sysv/aix/read.c (__read, __libc_read): Likewise.
739         * sysdeps/unix/sysv/aix/poll.c (__poll): Likewise.
740         * sysdeps/unix/sysv/aix/sbrk.c (__sbrk): Likewise.
741         * sysdeps/unix/sysv/aix/sigaction.c (__sigaction): Likewise.
742         * sysdeps/unix/sysv/aix/sigsuspend.c (__sigsuspend): Likewise.
743         * sysdeps/unix/sysv/aix/statfs.c (__statfs): Likewise.
744         * sysdeps/unix/sysv/aix/select.c (__select): Likewise.
745         * sysdeps/unix/sysv/aix/setpgid.c (__setpgid): Likewise.
746         * sysdeps/unix/sysv/linux/alpha/pipe.S (__pipe): Likewise.
747         * sysdeps/unix/sysv/linux/alpha/syscalls.list (__GI___pwrite64,
748         __GI___statfs, __GI___send): Add.
749         * sysdeps/unix/sysv/linux/alpha/select.S (__select): Add
750         libc_hidden_ver resp. libc_hidden_def.
751         * sysdeps/unix/sysv/linux/alpha/sigsuspend.S (__sigsuspend): Add
752         libc_hidden_def.
753         * sysdeps/unix/sysv/linux/ia64/getpagesize.c (__getpagesize):
754         Likewise.  Remove undef and INTDEF.
755         * sysdeps/unix/sysv/linux/ia64/pipe.S (__pipe): Add libc_hidden_def.
756         * sysdeps/unix/sysv/linux/ia64/syscalls.list (__GI___pwrite64,
757         __GI___statfs, __GI___send): Add.
758         * sysdeps/unix/sysv/linux/ia64/sigaction.c (__sigaction): Add
759         libc_hidden_def.
760         * sysdeps/unix/sysv/linux/ia64/sigsuspend.c (__sigsuspend):
761         Likewise.
762         * sysdeps/unix/sysv/linux/sh/pipe.S (__pipe): Likewise.
763         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c (__chown): Add
764         libc_hidden_ver resp. libc_hidden_def.
765         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list (__GI___pwrite64,
766         __GI___send): Add.
767         * sysdeps/unix/sysv/linux/s390/s390-64/sigaction.c (__sigaction):
768         Add libc_hidden_weak.
769         * sysdeps/unix/sysv/linux/s390/s390-64/sigsuspend.c (__sigsuspend):
770         Add libc_hidden_def.
771         * sysdeps/unix/sysv/linux/hppa/syscalls.list (__GI___send): Add.
772         * sysdeps/unix/sysv/linux/arm/sigaction.c (__sigaction): Add
773         libc_hidden_weak.
774         * sysdeps/unix/sysv/linux/i386/chown.c (__chown): Add libc_hidden_ver
775         resp. libc_hidden_def.
776         * sysdeps/unix/sysv/linux/i386/sigaction.c (__sigaction): Add
777         libc_hidden_weak.
778         * sysdeps/unix/sysv/linux/m68k/chown.c (__chown): Likewise.  Remove
779         INTDEF.
780         * sysdeps/unix/sysv/linux/m68k/getpagesize.c (__getpagesize):
781         Likewise.  Remove undef.
782         * sysdeps/unix/sysv/linux/mips/pwrite64.c (__pwrite64): Add
783         libc_hidden_weak.
784         * sysdeps/unix/sysv/linux/mips/syscalls.list (__GI___send): Add.
785         * sysdeps/unix/sysv/linux/mips/sigaction.c (__sigaction): Add
786         libc_hidden_weak.
787         * sysdeps/unix/sysv/linux/powerpc/chown.c (__chown): Add
788         libc_hidden_def.
789         * sysdeps/unix/sysv/linux/powerpc/pwrite64.c (__pwrite64): Likewise.
790         * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize.c (__getpagesize):
791         Likewise.  Remove undef and INTDEF.
792         * sysdeps/unix/sysv/linux/sparc/sparc32/pipe.S (__pipe): Add
793         libc_hidden_def.
794         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c (__sigaction): Add
795         libc_hidden_weak.
796         * sysdeps/unix/sysv/linux/sparc/sparc64/pipe.S (__pipe): Add
797         libc_hidden_def.
798         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list
799         (__GI___pwrite64, __GI___statfs, __GI___select, __GI___send): Add.
800         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c (__sigaction): Add
801         libc_hidden_weak.
802         * sysdeps/unix/sysv/linux/sparc/sparc64/sigsuspend.c (__sigsuspend):
803         Add libc_hidden_def.
804         * sysdeps/unix/sysv/linux/x86_64/syscalls.list (__GI___pwrite64,
805         __GI___statfs): Add.
806         * sysdeps/unix/sysv/linux/x86_64/send.c (__send): Add
807         libc_hidden_weak.
808         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (__sigaction): Likewise.
809         * sysdeps/unix/sysv/linux/getpagesize.c: Add libc_hidden_def.
810         Remove undef and INTDEF.
811         * sysdeps/unix/sysv/linux/poll.c (__poll): Add libc_hidden_def.
812         * sysdeps/unix/sysv/linux/pwrite64.c (__pwrite64): Add
813         libc_hidden_def.
814         * sysdeps/unix/sysv/linux/send.S (__send): Likewise.
815         * sysdeps/unix/sysv/linux/sigaction.c (__sigaction): Add
816         libc_hidden_weak.
817         * sysdeps/unix/sysv/linux/sigsuspend.c (__sigsuspend): Add
818         libc_hidden_def.
819         * sysdeps/unix/sysv/sco3.2.4/__setpgid.c (__setpgid): Likewise.
820         * sysdeps/unix/sysv/sco3.2.4/sigaction.S (__sigaction): Likewise.
821         * sysdeps/unix/sysv/sysv4/solaris2/syscalls.list (__GI___sigaction):
822         Add.
823         * sysdeps/unix/sysv/sysv4/__getpgid.c (__getpgid): Add
824         libc_hidden_def.  Remove undef and INTDEF.
825         * sysdeps/unix/sysv/sysv4/getpgid.c (__getpgid): Likewise.
826         * sysdeps/unix/sysv/sysv4/__setpgid.c (__setpgid): Add
827         libc_hidden_def.
828         * sysdeps/unix/sysv/sysv4/setpgid.c (__setpgid): Likewise.
829         * sysdeps/unix/sysv/sysv4/sigaction.c (__sigaction): Likewise.
830         * sysdeps/unix/sysv/sigaction.c (__sigaction): Likewise.
831         * sysdeps/unix/getpagesize.c (__getpagesize): Add libc_hidden_def.
832         Remove undef and INTDEF.
833         * configure.in (HAVE_BROKEN_VISIBILITY_ATTRIBUTE): Add check for
834         broken visibility attribute handling.
835         * config.h.in (HAVE_BROKEN_VISIBILITY_ATTRIBUTE): Add.
836
837 2002-08-02  Ulrich Drepper  <drepper@redhat.com>
838
839         * locale/iso-639.def: Add entries for Venda and Nothern Sotho.
840         Reported by Dwayne Bailey <dwayne@obsidian.co.za>.
841
842         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr_r): Adapt
843         previous patch.
844
845 2002-06-29  Todd Fries  <todd@openbsd.org>
846
847         * resolv/gethnamaddr.c (gethostbyaddr): Try ip6.int if ip6.arpa fails.
848
849 2002-08-02  Jakub Jelinek  <jakub@redhat.com>
850
851         * include/errno.h: Don't include tls.h if _ISOMAC is defined.
852
853 2002-07-30  Roland McGrath  <roland@redhat.com>
854
855         * resolv/resolv.h (_res): Define macro unconditionally.
856         [! _LIBC_REENTRANT] (_res): Move this conditional decl to ...
857         * include/resolv.h: ... here.
858         [USE_TLS && HAVE___THREAD] (_res): #undef it and declare
859         as a __thread variable.
860         * resolv/res_libc.c [USE_TLS && HAVE___THREAD] (_res): Define it as
861         a __thread variable instead of a global.
862         * resolv/res_data.c [_LIBC]: Don't #undef _res.
863
864         * include/errno.h: Include <tls.h> to make sure USE_TLS defined by the
865         time we test it.
866
867         * intl/loadmsgcat.c [__GNUC__]: #undef alloca before defining it.
868
869         * malloc/malloc.c [_LIBC]: Include <string.h> instead of using local
870         decls of memset and memcpy.
871
872         * sysdeps/generic/sysdep.h (END): Conditionalize on [__ASSEMBLER__].
873         * sysdeps/unix/sysv/linux/i386/sysdep.h (L): Likewise.
874
875         * elf/dl-load.c (_dl_map_object_from_fd): Comment fix.
876
877         * sysdeps/generic/bits/libc-tsd.h [USE_TLS && HAVE___THREAD]
878         (__libc_tsd_define): Define using __thread.
879
880         * sunrpc/rpc_thread.c: Use __libc_tsd_define.
881         (__rpc_thread_variables): Use __libc_tsd_get.
882         (__rpc_thread_destroy): Use __libc_tsd_get instead of calling
883         __rpc_thread_variables, which might allocate what we're about to free.
884
885         * inet/herrno.c [USE_TLS && HAVE___THREAD] (h_errno): Define as a
886         thread-local variable.
887         * resolv/netdb.h (h_errno): Define macro unconditionally.
888         [_LIBC] (__set_h_errno): Macro moved to ...
889         * include/netdb.h: ... here.
890         [USE_TLS && HAVE___THREAD] (h_errno): Declare __thread variable.
891         [USE_TLS && HAVE___THREAD] (__set_h_errno): Define using that.
892         [! _LIBC_REENTRANT]: #undef h_errno here.
893
894         * include/errno.h: Protect from multiple inclusion.
895
896         * misc/sys/select.h (__NFDBITS, __FDELT, __FDMASK): #undef these
897         before defining them, since Linux's <linux/posix_types.h> might have
898         defined them.
899
900 2002-08-02  Jakub Jelinek  <jakub@redhat.com>
901
902         * malloc/malloc.c (public_cALLOc): Check for overflow on
903         multiplication.
904         * sunrpc/xdr_array.c (xdr_array): Likewise.
905         * sunrpc/rpc/types.h (mem_free): Add comment.
906         Patch by Solar Designer <solar@openwall.com>.
907
908 2002-08-02  Jakub Jelinek  <jakub@redhat.com>
909
910         * sysdeps/unix/sysv/linux/kernel-features.h
911         (__ASSUME_SET_THREAD_AREA_SYSCALL): Define.
912
913 2002-08-01  Roland McGrath  <roland@redhat.com>
914
915         * libio/fileops.c (_IO_file_sync_mmap): New function.
916         (_IO_file_jumps_mmap): Use it.
917         (_IO_file_underflow_mmap): Rewritten.  If after EOF or fflush,
918         repeat the stat check and resize the mapped buffer as necessary.
919
920 2002-07-31  Roland McGrath  <roland@redhat.com>
921
922         * libio/fileops.c (decide_maybe_mmap): New static function.
923         Code taken from libio/iofopen.c:__fopen_maybe_mmap to try to
924         mmap the file contents.  Then switch the jump tables to the mmap
925         tables if it worked, or the vanilla file tables if not.
926         (_IO_file_underflow_maybe_mmap): New function.
927         (_IO_file_seekoff_maybe_mmap): New function.
928         (_IO_file_xsgetn_maybe_mmap): New function.
929         (_IO_file_jumps_maybe_mmap): New variable, jump table using those.
930         * libio/libioP.h: Declare those.
931         * libio/wfileops.c (_IO_wfile_underflow_maybe_mmap): New function.
932         (_IO_wfile_jumps_maybe_mmap): New variable, jump table using that.
933         * libio/iofopen.c (__fopen_maybe_mmap): Don't try to mmap here.
934         If the stream is read-only, set its jump tables to those new ones.
935         * libio/iofdopen.c (_IO_new_fdopen) [_G_HAVE_MMAP]: Set the initial
936         jump tables to the maybe_mmap ones, and don't call __fopen_maybe_mmap.
937         We need the tables set before _IO_file_attach.
938
939         * libio/tst-mmap-eofsync.c: New file.
940         * libio/tst-mmap-fflushsync.c: New file.
941         * libio/bug-mmap-fflush.c: New file.
942         * libio/tst-mmap2-eofsync.c: New file.
943         * libio/Makefile (tests): Add them.
944
945         * libio/wfileops.c (_IO_wfile_underflow_mmap): Don't set EOF bit when
946         _IO_file_underflow_mmap fails, it already set the appropriate bit.
947
948 2002-07-31  Jeff Bailey  <jbailey@gnu.org>
949
950         * libio/stdio.h (sys_errlist, sys_nerr, _sys_errlist, _sys_nerr):
951         Declarations moved to <bits/sys_errlist.h>.  Include that file.
952         * libio/Makefile (headers): Add bits/sys_errlist.h to the list.
953         * sysdeps/generic/bits/sys_errlist.h: New file.  This does *not*
954         declare sys_errlist and sys_nerr.
955         * sysdeps/unix/sysv/linux/bits/sys_errlist.h: New file.  Does
956         provide declarations.
957
958 2002-07-31  Roland McGrath  <roland@redhat.com>
959
960         * elf/rtld.c (dl_main): Fix typo in error message.
961
962 2002-07-31  Roland McGrath  <roland@frob.com>
963
964         * sysdeps/mach/hurd/Versions (ld: GLIBC_2.0): __fxstat -> __fxstat64,
965         __xstat -> __xstat64, __lseek -> __libc_lseek64.  Completes 2002-06-09
966         sysdeps/mach/hurd/dl-sysdep.c change.
967
968 2002-07-28  Ulrich Drepper  <drepper@redhat.com>
969
970         * sysdeps/unix/sysv/linux/configure.in: Check /lib/modules/`uname
971         -r`/build/include for kernel headers.
972
973         * po/fi.po: New file.
974
975 2002-07-15  Alexandre Oliva  <aoliva@redhat.com>
976
977         * configure.in (static_nss): Set to `yes' if --disable-shared.
978
979 2002-07-23  Bruno Haible  <bruno@clisp.org>
980
981         * intl/loadmsgcat.c (PRI*): Redefine the macros if PRI_MACROS_BROKEN
982         is set.
983
984 2002-07-25  Jakub Jelinek  <jakub@redhat.com>
985
986         * sysdeps/unix/sysv/linux/ia64/sigcontextinfo.h: New file.
987         * sysdeps/unix/sysv/linux/ia64/profil-counter.h: Fix profil_counter
988         arguments.
989
990 2002-07-25  Jakub Jelinek  <jakub@redhat.com>
991
992         * sysdeps/unix/sysv/linux/alpha/adjtime.c (__adjtimex_internal): Add
993         alias.
994
995 2002-07-21  Bruno Haible  <bruno@clisp.org>
996
997         * intl/libintl.h (__GNU_GETTEXT_SUPPORTED_REVISION): New macro.
998         * intl/gettext.h (struct mo_file_header): New fields n_sysdep_segments,
999         sysdep_segments_offset, n_sysdep_strings, orig_sysdep_tab_offset,
1000         trans_sysdep_tab_offset.
1001         (struct sysdep_segment): New type.
1002         (struct sysdep_string): New type.
1003         (SEGMENTS_END): New macro.
1004         * intl/gettextP.h (struct sysdep_string_desc): New type.
1005         (struct loaded_domain): New fields malloced, n_sysdep_strings,
1006         orig_sysdep_tab, trans_sysdep_tab, must_swap_hash_tab. Make fields
1007         orig_tab, trans_tab, hash_tab to const pointers because they point
1008         into read-only memory.
1009         * intl/loadmsgcat.c: Include stdint.h, inttypes.h, hash-string.h.
1010         (PRI*): Define fallback values.
1011         (get_sysdep_segment_value): New function.
1012         (_nl_load_domain): Distinguish major and minor revision parts. Add
1013         support for minor revision 1 with system dependent strings.
1014         (_nl_unload_domain): Also free the 'malloced' field.
1015         * intl/dcigettext.c (_nl_find_msg): Remove test for domain->hash_size,
1016         now done in loadmsgcat.c. Add support for system dependent strings.
1017
1018 2002-07-16  Stepan Kasal  <kasal@math.cas.cz>
1019
1020         * posix/bug-regex7.c: New file.
1021         * posix/bug-regex8.c: New file.
1022         * posix/Makefile (tests): Add bug-regex7 and bug-regex8.
1023
1024 2002-07-16  Stepan Kasal  <kasal@math.cas.cz>
1025
1026         * posix/bug-regex4.c (main): Fix typos.
1027         * posix/bug-regex6.c (main): Likewise.
1028
1029 2002-07-27  Ulrich Drepper  <drepper@redhat.com>
1030
1031         * posix/bug-regex6.c (main): Fix warnings.
1032
1033         * iconvdata/Makefile (CPPFLAGS): Add NOT_IN_libc.
1034
1035         * iconv/iconv_prog.c (main): Improve error message for the cases
1036         where -t and/or -f parameter are missing.
1037
1038 2002-07-10  Stepan Kasal  <kasal@math.cas.cz>
1039
1040         * posix/regexec.c (re_match): Reorganize to remove duplicate code.
1041         (re_search): Likewise.
1042         (re_match_2): Likewise.
1043         (re_search_2): Likewise.
1044         (re_search_stub): New function.
1045         (re_search_2_stub): New function.
1046         * regcomp.c (re_compile_pattern): Typo in a comment fixed.
1047
1048 2002-07-10  Isamu Hasegawa  <isamu@yamato.ibm.com>
1049
1050         * posix/regex_internal.h: Add new member STOP to struct re_string_t.
1051         (re_string_eoi): Use STOP instead of LEN.
1052         * posix/regex_internal.c (re_string_allocate): Initialize pstr->len.
1053         (re_string_construct): Likewise.
1054         (re_string_reconstruct): Adjust pstr->stop like pstr->len.
1055         * posix/regexec.c (re_search_internal): Add a new argument STOP
1056         so that it can handle the argument STOP of re_search_2 and re_match_2
1057         correctly.
1058         (regexec): Adapt to new I/F of re_search_internal.
1059         (re_search_stub): Likewise.
1060
1061 2002-07-25  Ulrich Drepper  <drepper@redhat.com>
1062
1063         * sunrpc/clnt_gen.c: Don't include <sys/errno.h>.
1064
1065         * elf/dl-minimal.c: Remove definition of __assert_perror_fail.
1066
1067         * sysdeps/wordsize-32/divdi3.c: Define __divdi3_internal.
1068         * sysdeps/wordsize-32/lldiv.c: Make gcc use __divdi3_internal instead
1069         of __divdi3.
1070
1071         * sysdeps/unix/sysv/linux/adjtime.c: Use __adjtimex_internal.
1072         * sysdeps/unix/sysv/linux/ntp_gettime.c: Likewise.
1073         * sysdeps/unix/sysv/linux/syscalls.list: Add __adjtimex_internal
1074         alias for adjtimex syscall.
1075
1076         * elf/dl-minimal.c: Define __assert_fail_internal.
1077         * assert/assert.c: Likewise.
1078         * include/assert.h: Define __assert_file macro if !SHARED and not
1079         NOT_IN_libc.
1080
1081         * iconv/Makefile: Define NOT_IN_libc for objects in standalone
1082         programs.
1083         * locale/Makefile: Likewise.
1084         * nscd/Makefile: Likewise.
1085         * catgets/Makefile: Likewise.
1086
1087 2002-07-24  Ulrich Drepper  <drepper@redhat.com>
1088
1089         * libio/fileops.c (_IO_file_seekoff_mmap): Do use fp->_offset to
1090         compute current position.
1091
1092         * stdio-common/tst-fseek.c (main): Improve error messages.
1093
1094         * libio/tst-freopen.c (main): Remove unused variable.
1095
1096         * libio/fileops.c (_IO_file_seekoff_mmap): Set fp->_offset after
1097         succesful seek call.  Simplify error checking.
1098
1099 2002-07-25  Jakub Jelinek  <jakub@redhat.com>
1100
1101         * config.h.in: Use __ASSEMBLER__ test macro not ASSEMBLER.
1102         * sysdeps/ia64/fpu/libm_support.h: Likewise.
1103
1104 2002-07-19  Roland McGrath  <roland@frob.com>
1105
1106         * hurd/hurdsig.c (_hurdsig_getenv): Always return null if
1107         __libc_enable_secure is set.
1108
1109 2002-07-24  Roland McGrath  <roland@frob.com>
1110
1111         Added <ifaddrs.h> interface with functions `getifaddrs', `freeifaddrs'.
1112         This implementation supports only IPv4.
1113         * inet/ifaddrs.h: New file.
1114         * sysdeps/generic/ifaddrs.c: New file.
1115         * sysdeps/gnu/ifaddrs.c: New file.
1116         * inet/test-ifaddrs.c: New file.
1117         * inet/Makefile (routines): Add ifaddrs.
1118         (headers): Add ifaddrs.h here.
1119         (tests): Add test-ifaddrs.
1120         * inet/Versions (GLIBC_2.3): New set, add getifaddrs and freeifaddrs.
1121
1122         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Use an explicit
1123         socket call to get an AF_INET socket, instead of using __opensock.
1124         The SIOCGIFNETMASK ioctl will work only with a PF_INET socket.
1125
1126         * sysdeps/generic/ifreq.h (__ifreq): Take third argument SOCKFD,
1127         if not -1 use it instead of calling __opensock.
1128         * sysdeps/unix/sysv/linux/ifreq.h (__ifreq): Likewise.
1129         * sysdeps/mach/hurd/ifreq.h (__ifreq): Take new argument and ignore it.
1130         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Pass new argument.
1131
1132         * sysdeps/mach/hurd/ifreq.h: New file.
1133         * sysdeps/generic/ifreq.h (__if_freereq): Take second argument NUM_IFS.
1134         * sysdeps/unix/sysv/linux/ifreq.h (__if_freereq): Likewise.
1135         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Update caller.
1136
1137         * libio/fileops.c (_IO_file_seekoff_mmap): Don't rely on FP->_offset,
1138         which gets moved around.  Calculate size of mmap'd buffer instead.
1139
1140 2002-07-24  Philip Blundell  <philb@gnu.org>
1141
1142         * sysdeps/unix/arm/brk.S: Improve schedule.
1143         * sysdeps/unix/sysv/linux/arm/socket.S (PUSHARGS_1): Use more
1144         efficient instruction.
1145         (__socket): Optimize return sequence.
1146
1147 2002-07-24  Ulrich Drepper  <drepper@redhat.com>
1148
1149         * sysdeps/unix/sysv/linux/opensock.c (__opensock): Prefer inet
1150         sockets on old kernels.
1151
1152 2002-07-22  Philip Blundell  <philb@gnu.org>
1153
1154         * sysdeps/unix/sysv/linux/arm/errlist.c: Remove extra weak alias
1155         definiton of _old_sys_nerr.  Define _old_sys_errlist as strong
1156         alias.
1157
1158 2002-07-24  Ulrich Drepper  <drepper@redhat.com>
1159
1160         * locale/hashval.h: Make more self-contained by defining LONG_BITS.
1161         * locale/programs/simple-hash.c: Remove LONG_BITS definition.
1162
1163         * locale/programs/locarchive.c (add_locale_to_archive): Correct
1164         test to detect duplicate locales.
1165
1166         * libio/fileops.c (_IO_new_file_seekoff): Fail if relative
1167         position would be before beginning of file.
1168         (_IO_file_seekoff_mmap): Likewise.
1169         * libio/Makefile (tests): Add bug-fseek.
1170         * libio/bug-fseek.c: New file.
1171
1172         * intl/explodename.c: Remove support for CEN-style locale variables.
1173         It was never used and shouldn't be since it's not portable.
1174         * intl/finddomain.c: Likewise.
1175         * intl/l10nflist.c: Likewise.
1176         * intl/loadinfo.h: Likewise.
1177         * locale/findlocale.c: Likewise.
1178
1179 2002-07-24  Roland McGrath  <roland@frob.com>
1180
1181         * libio/fileops.c (_IO_file_seekoff_mmap): When just examining the
1182         position, calculate it to take into account an active pushback buffer.
1183
1184         * libio/Makefile (tests): Add bug-ungetc.
1185         * libio/bug-ungetc.c: New file.
1186
1187 2002-07-23  Ulrich Drepper  <drepper@redhat.com>
1188
1189         * sysdeps/generic/libc-tls.c: New file.
1190         * csu/Makefile (routines): Add libc-tls.
1191         (static-only-routines): Add libc-tls.
1192         * elf/dl-support.c (_dl_phdr): New variable.
1193         (_dl_phnum): New variable.
1194         (_dl_aux_init): Initialize _dl_phdr and _dl_phnum from aux vector.
1195         * sysdeps/generic/libc-start.c (__libc_start_main): Reorganize code
1196         for !SHARED.  First look through auxiliary vector.  If TLS always
1197         call __pthread_initialize_minimal.
1198
1199         * sysdeps/generic/dl-tls.c (_dl_allocate_tls): Make sure size argument
1200         in mmap call is never zero.
1201
1202 2002-07-23  Andreas Jaeger  <aj@suse.de>
1203
1204         * sysdeps/x86_64/fpu/s_copysign.S: Use optimized version.
1205         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
1206
1207 2002-07-22  Ulrich Drepper  <drepper@redhat.com>
1208
1209         * libio/tst-eof.c: Rewrite to let test-skeleton.c deal with
1210         creation and removal of the temp file.
1211
1212         * libio/bug-rewind.c: Use test skeleton.  Use create_temp_file for
1213         file creation.
1214         * test-skeleton.c (create_temp_file): New function.
1215
1216 2002-07-22  Andreas Jaeger  <aj@suse.de>
1217
1218         * sysdeps/x86_64/dl-machine.h (elf_machine_load_address): Use
1219         local label.
1220
1221 2002-07-21  Roland McGrath  <roland@frob.com>
1222
1223         * wcsmbs/Makefile (strtox-CFLAGS): New variable,
1224         put -I../include before -I../stdlib so we get the right errno.h et al.
1225         (CFLAGS-wcstod.c): Use that variable instead of -I../stdlib.
1226         (CFLAGS-wcstof.c): Likewise.
1227         (CFLAGS-wcstold.c): Likewise.
1228         (CFLAGS-wcstod_l.c): Likewise.
1229         (CFLAGS-wcstof_l.c): Likewise.
1230         (CFLAGS-wcstold_l.c): Likewise.
1231
1232 2002-07-19  Roland McGrath  <roland@frob.com>
1233
1234         * sysdeps/mach/hurd/errnos.awk: Remove __set_errno defn from output.
1235
1236 2002-07-20  Ulrich Drepper  <drepper@redhat.com>
1237
1238         * sysdeps/unix/sysv/linux/ldsodefs.h (HAVE_AUX_XID): Define if
1239         __ASSUME_AT_XID is defined.
1240         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_AT_XID): Define
1241         for 2.4.1 and up.
1242         * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Optimize handling
1243         of AT_UID, AT_EUID, AT_GID, and AT_EGID.
1244
1245         * wcsmbs/Makefile (CFLAGS-wcstod.c): Add -I../stdlib.
1246         (CFLAGS-wcstof.c): Likewise.
1247         (CFLAGS-wcstold.c): Likewise.
1248         (CFLAGS-wcstod_l.c): Likewise.
1249         (CFLAGS-wcstof_l.c): Likewise.
1250         (CFLAGS-wcstold_l.c): Likewise.
1251
1252 2002-07-18  Jakub Jelinek  <jakub@redhat.com>
1253
1254         * resource/sys/resource.h (__rlimit_resource_t, __rusage_who_t,
1255         __priority_which_t): Always typedef to int for C++.
1256
1257 2002-07-19  Ulrich Drepper  <drepper@redhat.com>
1258
1259         * configure.in: Add test for __thread support in compiler.
1260         * config.h.in: Add HAVE___THREAD.
1261         * Makefile (headers): Remove errno.h, sys/errno.h, and bits/errno.h.
1262         * include/sys/errno.h: Moved to...
1263         * stdlib/sys/errno.h: ...here.  New file.
1264         * stdlib/errno.h: New file.  Moved from...
1265         * include/errno.h: ...here.  Changed into an internal header defining
1266         libc-local things like __set_errno.
1267         * stdlib/Makefile (headers): Add errno.h, sys/errno.h, and
1268         bits/errno.h.
1269         * elf/dl-minimal.c: Include <tls.h>.  Define errno as thread-local
1270         variable if USE_TLS && HAVE___THREAD.  Don't define __errno_location
1271         either.
1272         * elf/rtld.c (_dl_start): Add code to initialize TLS for ld.so
1273         from...
1274         (_dl_start_final): ...here.  Add code to initialize tls elements from
1275         bootstrap_map.
1276         * sysdeps/generic/errno-loc.c: Define errno as thread-local variable
1277         if USE_TLS && HAVE___THREAD.
1278         * sysdeps/generic/bits/errno.h: Remove __set_errno definition.
1279         * sysdeps/mach/hurd/bits/errno.h: Likewise.
1280         * sysdeps/standalone/arm/bits/errno.h: Likewise.
1281         * sysdeps/standalone/bits/errno.h: Likewise.
1282         * sysdeps/unix/bsd/bsd4.4/bits/errno.h: Likewise.
1283         * sysdeps/unix/sysv/aix/bits/errno.h: Likewise.
1284         * sysdeps/unix/sysv/hpux/bits/errno.h: Likewise.
1285         * sysdeps/unix/sysv/linux/bits/errno.h: Likewise.
1286         * sysdeps/unix/sysv/linux/hppa/bits/errno.h: Likewise.
1287         * sysdeps/unix/sysv/linux/mips/bits/errno.h: Likewise.
1288         * sysdeps/unix/sysv/sysv4/solaris2/bits/errno.h: Likewise.
1289         * sysdeps/i386/dl-machine.c (elf_machine_rel) [RTLD_BOOTSTRAP]: Don't
1290         use GL(dl_rtld_map), use map parameter.
1291         * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
1292         * sysdeps/unix/sysv/linux/i386/sysdep.S: Define errno in .tbss if
1293         USE_TLS && HAVE___THREAD.
1294         * sysdeps/unix/sysv/linux/i386/sysdep.h: Unify SETUP_PIC_REG
1295         definitions.  If USE_TLS && HAVE___THREAD store errooor value using
1296         TLS code sequence.
1297         * sysdeps/unix/sysv/linux/i386/i686/sysdep.h: Likewise.
1298
1299         * sysdeps/unix/sysv/linux/getcwd.c: No real need to restore errno.
1300         * sysdeps/unix/sysv/linux/grantpt.c: Likewise.
1301         * sysdeps/unix/sysv/linux/internal_statvfs.c: Likewise.
1302         * sysdeps/unix/sysv/linux/msgctl.c: Likewise.
1303         * sysdeps/unix/sysv/linux/readv.c: Likewise.
1304         * sysdeps/unix/sysv/linux/writev.c: Likewise.
1305
1306 2002-07-17  Ulrich Drepper  <drepper@redhat.com>
1307
1308         * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Fix MS_SYNC and
1309         MS_INVALIDATE values.
1310
1311 2002-07-17  Andreas Schwab  <schwab@suse.de>
1312             Ulrich Drepper  <drepper@redhat.com>
1313
1314         * sysdeps/unix/sysv/linux/pread.c: Sign extend offset.
1315         * sysdeps/unix/sysv/linux/pwrite.c: Likewise.
1316         * sysdeps/unix/sysv/linux/mips/pread.c: Likewise.
1317         * sysdeps/unix/sysv/linux/mips/pwrite.c: Likewise.
1318
1319 2002-07-01  H.J. Lu  <hjl@gnu.org>
1320
1321         * elf/circleload1.c (load_dso): Call "circlemod1" and check
1322         return value.
1323
1324         * elf/circlemod1.c (circlemod1): Return int.
1325         * elf/circlemod2.c (circlemod2): Likewise.
1326         * elf/circlemod2a.c (circlemod2): Likewise.
1327         * elf/circlemod3.c (circlemod3): Likewise.
1328         (circlemod3a): A new function.
1329
1330 2002-07-16  Ulrich Drepper  <drepper@redhat.com>
1331
1332         * catgets/tst-catgets.c (main): Don't expect results for
1333         untranslated messages.
1334
1335         * glibcbug.in: Fix little typo.  Remove STDIO.
1336
1337         * config.h.in: Fail if __FAST_MATH__ is defined.
1338         * math/Makefile (CPPFLAGS-test-ifloat.c): Also define TEST_FAST_MATH.
1339         (CPPFLAGS-test-idouble.c): Likewise.
1340         (CPPFLAGS-test-ildouble.c): Likewise.
1341
1342 2002-07-15  Ulrich Drepper  <drepper@redhat.com>
1343
1344         * intl/tst-gettext.sh: Pass -f option to msgfmt.
1345         * intl/tst-gettext.c: Correctly handle untranslated messages in
1346         positive tests.
1347
1348         * po/de.po: Update from translation team.
1349
1350 2002-07-02  H.J. Lu  <hjl@gnu.org>
1351
1352         * sysdeps/mips/atomicity.h: Don't include <sgidefs.h>.  Always
1353         use ll/sc.
1354         * sysdeps/unix/sysv/linux/mips/sys/tas.h: Likewise.
1355
1356         * sysdeps/unix/sysv/linux/configure.in: Set arch_minimum_kernel
1357         to 2.4.0 for mips.
1358
1359 2002-07-15  Ulrich Drepper  <drepper@redhat.com>
1360
1361         * elf/dl-load.c (_dl_map_object_from_fd): If loaded object uses
1362         TLS fail if USE_TLS is not defined.
1363
1364         * libio/wfileops.c (_IO_wfile_seekoff): Reposition wide pointers
1365         and adjust state for seek position.  [PR libc/4070]
1366         * libio/Makefile (tests): Add bug-rewind.
1367         * libio/bug-rewind.c: New file.
1368
1369 2002-07-12  Philip Blundell  <philb@gnu.org>
1370
1371         * sysdeps/generic/backtrace.c (FIRST_FRAME_POINTER): New macro.
1372         (__backtrace): Use it.
1373         * sysdeps/arm/frame.h (FIRST_FRAME_POINTER): Define.  [PR libc/2632]
1374
1375 2002-07-12  Philip Blundell  <philb@gnu.org>
1376
1377         * sysdeps/arm/dl-machine.h (elf_machine_rel): Don't handle
1378         R_ARM_RELATIVE if RTLD_BOOTSTRAP and HAVE_Z_COMBRELOC.  Only check
1379         for rtld map if neither RTLD_BOOTSTRAP nor HAVE_Z_COMBRELOC is defined.
1380         (elf_machine_rela): Remove unused variable.
1381
1382         * sysdeps/unix/sysv/linux/arm/Makefile [subdir=elf]
1383         (sysdep-rtld-routines, sysdep_routines, sysdep-dl-routines): Don't
1384         define.
1385
1386 2002-07-12  Ulrich Drepper  <drepper@redhat.com>
1387
1388         * iconvdata/gconv-modules: Add aliases for ISO-8859-11.
1389
1390 2002-07-14  Andreas Jaeger  <aj@suse.de>
1391
1392         * sysdeps/x86_64/bits/link.h: Add biarch support.
1393
1394 2002-07-13  Andreas Jaeger  <aj@suse.de>
1395
1396         * sysdeps/unix/sysv/linux/mips/register-dump.h (register_dump):
1397         Use correct indices.
1398         Patch by Eliot Dresselhaus <eliot@ayrnetworks.com>.
1399
1400 2002-07-09  Martin Schwidefsky  <schwidefsky@de.ibm.com>
1401
1402         * sysdeps/s390/bits/byteswap.h: Unified 31/64 bit byteswap.h.
1403         * sysdeps/s390/s390-32/bits/byteswap.h: Remove.
1404         * sysdeps/s390/s390-64/bits/byteswap.h: Remove.
1405         * sysdeps/s390/bits/link.h: Unified 31/64 bit link.h.
1406         * sysdeps/s390/s390-32/bits/link.h: Remove.
1407         * sysdeps/s390/s390-64/bits/link.h: Remove.
1408         * sysdeps/s390/bits/setjmp.h: Unified 31/64 bit setjmp.h.
1409         * sysdeps/s390/s390-32/bits/setjmp.h: Remove.
1410         * sysdeps/s390/s390-64/bits/setjmp.h: Remove.
1411         * sysdeps/s390/bits/wordsize.h: New file.
1412         * sysdeps/unix/sysv/linux/s390/bits/elfclass.h: Unified 31/64 bit
1413         elfclass.h.
1414         * sysdeps/unix/sysv/linux/s390/s390-64/bits/elfclass.h: Remove.
1415         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Unified 31/64 bit fcntl.h.
1416         * sysdeps/unix/sysv/linux/s390/s390-32/bits/fcntl.h: Remove.
1417         * sysdeps/unix/sysv/linux/s390/s390-64/bits/fcntl.h: Remove.
1418         * sysdeps/unix/sysv/linux/s390/bits/ipc.h: Unified 31/64 bit ipc.h.
1419         * sysdeps/unix/sysv/linux/s390/s390-64/bits/ipc.h: Remove.
1420         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Unified 31/64 bit mman.h.
1421         * sysdeps/unix/sysv/linux/s390/s390-32/bits/mman.h: Remove.
1422         * sysdeps/unix/sysv/linux/s390/s390-64/bits/mman.h: Remove.
1423         * sysdeps/unix/sysv/linux/s390/bits/msq.h: Unified 31/64 bit msq.h.
1424         * ysdeps/unix/sysv/linux/s390/s390-64/bits/msq.h: Remove.
1425         * sysdeps/unix/sysv/linux/s390/bits/resource.h: Unified 31/64 bit
1426         resource.h.
1427         * sysdeps/unix/sysv/linux/s390/s390-32/bits/resource.h: Remove.
1428         * sysdeps/unix/sysv/linux/s390/s390-64/bits/resource.h: Remove.
1429         * sysdeps/unix/sysv/linux/s390/bits/sem.h: Unified 31/64 bit sem.h.
1430         * sysdeps/unix/sysv/linux/s390/s390-64/bits/sem.h: Remove.
1431         * sysdeps/unix/sysv/linux/s390/bits/shm.h: Unified 31/64 bit shm.h.
1432         * sysdeps/unix/sysv/linux/s390/s390-64/bits/shm.h: Remove.
1433         * sysdeps/unix/sysv/linux/s390/bits/sigaction.h: Unified 31/64 bit
1434         sigaction.h.
1435         * sysdeps/unix/sysv/linux/s390/s390-64/bits/sigaction.h: Remove.
1436         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Unified 31/64 bit
1437         siginfo.h.
1438         * sysdeps/unix/sysv/linux/s390/s390-64/bits/siginfo.h: Remove.
1439         * sysdeps/unix/sysv/linux/s390/s390-64/bits/sigstack.h: Remove.
1440         * sysdeps/unix/sysv/linux/s390/bits/socket.h: Unified 31/64 bit
1441         socket.h.
1442         * sysdeps/unix/sysv/linux/s390/s390-64/bits/socket.h: Remove.
1443         * sysdeps/unix/sysv/linux/s390/bits/stat.h: Unified 31/64 bit stat.h.
1444         * sysdeps/unix/sysv/linux/s390/s390-32/bits/stat.h: Remove.
1445         * sysdeps/unix/sysv/linux/s390/s390-64/bits/stat.h: Remove.
1446         * sysdeps/unix/sysv/linux/s390/bits/types.h: Unified 31/64 bit types.h.
1447         * sysdeps/unix/sysv/linux/s390/s390-64/bits/types.h: Remove.
1448         * sysdeps/unix/sysv/linux/s390/net/route.h: New file.
1449         * sysdeps/unix/sysv/linux/s390/sys/procfs.h: Unified 31/64 bit
1450         procfs.h.
1451         * sysdeps/unix/sysv/linux/s390/s390-32/sys/procfs.h: Remove.
1452         * sysdeps/unix/sysv/linux/s390/s390-64/sys/procfs.h: Remove.
1453         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h: Unified 31/64 bit
1454         ucontext.h.
1455         * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Remove.
1456         * sysdeps/unix/sysv/linux/s390/s390-64/sys/ucontext.h: Remove.
1457
1458 2002-07-11  Ulrich Drepper  <drepper@redhat.com>
1459
1460         * Versions.def (libc): Add GLIBC_2.3.
1461         * stdlib/Versions [libc] (GLIBC_2.3): Add realpath.
1462         * stdlib/canonicalize.c: Add compatibility version for realpath
1463         and make new code available in GLIBC_2.3.
1464
1465 2002-07-06  Bruno Haible  <bruno@clisp.org>
1466
1467         * malloc/hooks.c (public_gET_STATe): Access max_total_mem in mp_.
1468
1469 2002-07-11  Ulrich Drepper  <drepper@redhat.com>
1470
1471         * resolv/res_hconf.c (_res_hconf_init): Move code into new
1472         function do_init.  Use __libc_once.
1473         (do_init): New function.
1474
1475         * iconvdata/iso8859-11.h: Removed.
1476         * iconvdata/Makefile (gen-8bit-gap-modules): Add iso8859-11.
1477         (distribute): Remove iso8859-11.h.
1478         * iconvdata/tst-tables.sh: Add ISO-8859-11.
1479
1480         * stdio-common/vfscanf.c (inchar): Restore errno from previous
1481         underflow operation if c == (W)EOF.
1482
1483 2002-07-03  Jakub Jelinek  <jakub@redhat.com>
1484
1485         * stdio-common/printf_fp.c (__printf_fp): If _FPIO_CONST_SHIFT is
1486         non-zero, adjust exponent.
1487         * sysdeps/ieee754/ldbl-128/s_erfl.c (__erfl, erfl, __erfcl, erfcl):
1488         Remove NO_LONG_DOUBLE aliases.
1489         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l, expm1l): Likewise.
1490         * sysdeps/ieee754/ldbl-128/s_log1pl.c (__log1pl, log1pl): Likewise.
1491         (__log1pl): Raise divide by zero and invalid exceptions when needed.
1492         * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Special case
1493         1**y and -1**+-Inf.
1494         * sysdeps/ieee754/ldbl-128/ldbl2mpn.c (__mpn_extract_long_double):
1495         Fix BITS_PER_MP_LIMB 32 extraction.
1496         * sysdeps/ieee754/ldbl-128/e_log2l.c (__ieee754_log2l): Don't raise
1497         exceptions for qNaNs.
1498         * sysdeps/ieee754/ldbl-128/e_log10l.c (__ieee754_log10l): Likewise.
1499         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgamma_r):
1500         Raise exceptions when needed.  Don't recurse unnecessarily.
1501         Special case 1.0L and 2.0L arguments to avoid -0.0L as result.
1502         * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_y0l): Don't raise
1503         exceptions for qNaNs.
1504         * sysdeps/ieee754/ldbl-128/s_remquol.c (__remquol): Make qs 64-bit
1505         to fix *quo return value sign.
1506         * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gamma_r): Special
1507         case -Inf argument.
1508         * soft-fp/op-4.h (_FP_FRAC_CLZ_4): Fix a pasto.
1509
1510 2002-07-01  Jakub Jelinek  <jakub@redhat.com>
1511
1512         * libio/tst-eof.c (do_test): Remove unused ch and tm variables.
1513         * iconvdata/iso-2022-jp-3.c (EMIT_SHIFT_TO_INIT): Kill warnings if
1514         -DNDEBUG.
1515
1516 2002-07-10  Ulrich Drepper  <drepper@redhat.com>
1517
1518         * malloc/hooks.c (realloc_check): If mremap succeeds actually use
1519         the result.
1520
1521         * sysdeps/i386/i486/bits/string.h: Add early clobber for "a"
1522         output parameter.  Reported by Denis Zaitsev <zzz@cd-club.ru>.
1523
1524         * Versions.def (libthread_db): Add GLIBC_2.3.
1525
1526 2002-07-09  Jakub Jelinek  <jakub@redhat.com>
1527
1528         * libio/freopen.c (freopen): Reset jump tables, use mmap stdio for the
1529         new stream if possible.
1530         * libio/freopen64.c (freopen64): Likewise.
1531         * libio/Makefile (tests): Add tst-freopen.
1532         * libio/tst-freopen.c: New file.
1533
1534 2002-07-03  Jakub Jelinek  <jakub@redhat.com>
1535
1536         * libio/stdio.h (obstack_printf): Add format attribute.
1537         (obstack_vprintf): Likewise.
1538
1539 2002-07-04  Jakub Jelinek  <jakub@redhat.com>
1540
1541         * posix/regex_internal.h (re_token_t): Shrink the structure to 8
1542         resp. 16 bytes on 32-bit resp. 64-bit platforms.
1543         (re_charset_t, re_string_t): Reorder structure members for 64-bit
1544         architectures.
1545
1546 2002-07-04  Jakub Jelinek  <jakub@redhat.com>
1547
1548         * posix/regcomp.c (re_compile_internal): Move clearing of dfa...
1549         (init_dfa): ...here.
1550
1551 2002-07-05  Isamu Hasegawa  <isamu@yamato.ibm.com>
1552
1553         * posix/regcomp.c (parse_sub_exp): Add nodes OP_OPEN_SUBEXP and
1554         OP_CLOSE_SUBEXP at both ends of sub expressions instead of SUBEXP
1555         nodes in parse trees.
1556         (calc_first): Fix the Definition of `firsts' of OP_OPEN_SUBEXP
1557         and OP_CLOSE_SUBEXP, and remove the definition of SUBEXP.
1558         (calc_epsdest): Treat OP_OPEN_SUBEXP and OP_CLOSE_SUBEXP as the
1559         nodes which can epsilon transit.
1560         * posix/regex_internal.h: Add OP_OPEN_SUBEXP and OP_CLOSE_SUBEXP
1561         to IS_EPSILON_NODE macro.
1562         * posix/regexec.c (update_regs): New function to update registers
1563         by refering OP_OPEN_SUBEXP and OP_CLOSE_SUBEXP nodes.
1564         (proceed_next_node): Use the entities of the nodes to determine
1565         whether the node can transit to.
1566         (set_regs): Use update_regs function to update registers.
1567
1568 2002-07-03  Jakub Jelinek  <jakub@redhat.com>
1569
1570         * posix/bug-regex4.c (main): Remove duplicate setlocale.
1571         * posix/bug-regex6.c: New file.
1572         * posix/Makefile (tests): Add bug-regex6.
1573         (bug-regex6-ENV): Set LOCPATH.
1574
1575 2002-07-10  Ulrich Drepper  <drepper@redhat.com>
1576
1577         * Versions.def [libpthread]: Add GLIBC_2.2.6.
1578         * posix/Versions [libc] (GLIBC_2.2.6): Add __nanosleep.
1579
1580 2002-07-06  Bruno Haible  <bruno@clisp.org>
1581
1582         * sysdeps/unix/sysv/sysv4/bits/sigset.h (__NSSBITS): Correct value.
1583
1584 2002-07-06  Bruno Haible  <bruno@clisp.org>
1585
1586         * include/sys/socket.h (__libc_sendto, __libc_recvfrom): New
1587         declarations.
1588
1589         * sysdeps/i386/fpu/libm-test-ulps: Add some ulps for AMD K7.
1590
1591         * rt/Makefile (tests): Don't add tst-aio* in a single-threaded build.
1592
1593         * sysdeps/unix/bsd/sun/sunos4/bits/utsname.h: Test for _SYS_UTSNAME_H,
1594         not _UTSNAME_H.
1595         * sysdeps/unix/bsd/ultrix4/bits/utsname.h: Likewise.
1596
1597         * sysdeps/generic/bits/stropts.h: Protect against direct inclusion.
1598         * sysdeps/generic/bits/ustat.h: Likewise.
1599
1600         * sysdeps/unix/sysv/linux/bits/statvfs.h (ST_NODIRATIME): Set to 2048.
1601
1602 2002-07-08  Andreas Jaeger  <aj@suse.de>
1603
1604         * sysdeps/x86_64/elf/initfini.c (__asm__): Call call_gmon_start.
1605
1606 2002-07-08  Andreas Jaeger  <aj@suse.de>
1607
1608         * sysdeps/x86_64/fpu/s_fdiml.S: Fix wrong register name.
1609
1610 2002-07-06  Andreas Jaeger  <aj@suse.de>
1611
1612         * sysdeps/x86_64/fpu/bits/mathinline.h: New.
1613         * sysdeps/x86_64/fpu/s_copysign.S: New.
1614         * sysdeps/x86_64/fpu/s_copysignf.S: New.
1615         * sysdeps/x86_64/fpu/s_copysignl.S: New.
1616         * sysdeps/x86_64/fpu/s_finitel.S: New.
1617         * sysdeps/x86_64/fpu/s_fmax.S: New.
1618         * sysdeps/x86_64/fpu/s_fmaxf.S: New.
1619         * sysdeps/x86_64/fpu/s_fmaxl.S: New.
1620         * sysdeps/x86_64/fpu/s_fmin.S: New.
1621         * sysdeps/x86_64/fpu/s_fminf.S: New.
1622         * sysdeps/x86_64/fpu/s_fminl.S: New.
1623
1624 2002-06-05  Brian Youmans <3diff@gnu.org>
1625
1626         * sysdeps/ia64/fpu/e_acos.S: Added text of Intel license.
1627         * sysdeps/ia64/fpu/e_acosf.S: Likewise.
1628         * sysdeps/ia64/fpu/e_acosl.S: Likewise.
1629         * sysdeps/ia64/fpu/e_asin.S: Likewise.
1630         * sysdeps/ia64/fpu/e_asinf.S: Likewise.
1631         * sysdeps/ia64/fpu/e_asinl.S: Likewise.
1632         * sysdeps/ia64/fpu/e_atan2.S: Likewise.
1633         * sysdeps/ia64/fpu/e_atan2f.S: Likewise.
1634         * sysdeps/ia64/fpu/e_cosh.S: Likewise.
1635         * sysdeps/ia64/fpu/e_coshf.S: Likewise.
1636         * sysdeps/ia64/fpu/e_coshl.S: Likewise.
1637         * sysdeps/ia64/fpu/e_exp.S: Likewise.
1638         * sysdeps/ia64/fpu/e_expf.S: Likewise.
1639         * sysdeps/ia64/fpu/e_fmod.S: Likewise.
1640         * sysdeps/ia64/fpu/e_fmodf.S: Likewise.
1641         * sysdeps/ia64/fpu/e_fmodl.S: Likewise.
1642         * sysdeps/ia64/fpu/e_hypot.S: Likewise.
1643         * sysdeps/ia64/fpu/e_hypotf.S: Likewise.
1644         * sysdeps/ia64/fpu/e_hypotl.S: Likewise.
1645         * sysdeps/ia64/fpu/e_log.S: Likewise.
1646         * sysdeps/ia64/fpu/e_logf.S: Likewise.
1647         * sysdeps/ia64/fpu/e_pow.S: Likewise.
1648         * sysdeps/ia64/fpu/e_powf.S: Likewise.
1649         * sysdeps/ia64/fpu/e_powl.S: Likewise.
1650         * sysdeps/ia64/fpu/e_remainder.S: Likewise.
1651         * sysdeps/ia64/fpu/e_remainderf.S: Likewise.
1652         * sysdeps/ia64/fpu/e_remainderl.S: Likewise.
1653         * sysdeps/ia64/fpu/e_scalb.S: Likewise.
1654         * sysdeps/ia64/fpu/e_scalbf.S: Likewise.
1655         * sysdeps/ia64/fpu/e_scalbl.S: Likewise.
1656         * sysdeps/ia64/fpu/e_sinh.S: Likewise.
1657         * sysdeps/ia64/fpu/e_sinhf.S: Likewise.
1658         * sysdeps/ia64/fpu/e_sinhl.S: Likewise.
1659         * sysdeps/ia64/fpu/e_sqrt.S: Likewise.
1660         * sysdeps/ia64/fpu/e_sqrtf.S: Likewise.
1661         * sysdeps/ia64/fpu/e_sqrtl.S: Likewise.
1662         * sysdeps/ia64/fpu/libm_atan2_req.S: Likewise.
1663         * sysdeps/ia64/fpu/libm_error.c: Likewise.
1664         * sysdeps/ia64/fpu/libm_frexp4.S: Likewise.
1665         * sysdeps/ia64/fpu/libm_frexp4f.S: Likewise.
1666         * sysdeps/ia64/fpu/s_frexpl.c: Likewise.
1667         * sysdeps/ia64/fpu/s_ilogb.S: Likewise.
1668         * sysdeps/ia64/fpu/s_ilogbf.S: Likewise.
1669         * sysdeps/ia64/fpu/s_ilogbl.S: Likewise.
1670         * sysdeps/ia64/fpu/s_ldexp.S: Likewise.
1671         * sysdeps/ia64/fpu/s_ldexpf.S: Likewise.
1672         * sysdeps/ia64/fpu/s_ldexpl.S: Likewise.
1673         * sysdeps/ia64/fpu/s_log1p.S: Likewise.
1674         * sysdeps/ia64/fpu/s_log1pf.S: Likewise.
1675         * sysdeps/ia64/fpu/s_log1pl.S: Likewise.
1676         * sysdeps/ia64/fpu/s_logb.S: Likewise.
1677         * sysdeps/ia64/fpu/s_logbf.S: Likewise.
1678         * sysdeps/ia64/fpu/s_logbl.S: Likewise.
1679         * sysdeps/ia64/fpu/s_modf.S: Likewise.
1680         * sysdeps/ia64/fpu/s_modff.S: Likewise.
1681         * sysdeps/ia64/fpu/s_modfl.S: Likewise.
1682         * sysdeps/ia64/fpu/s_nearbyint.S: Likewise.
1683         * sysdeps/ia64/fpu/s_nearbyintf.S: Likewise.
1684         * sysdeps/ia64/fpu/s_nearbyintl.S: Likewise.
1685         * sysdeps/ia64/fpu/s_rint.S: Likewise.
1686         * sysdeps/ia64/fpu/s_rintf.S: Likewise.
1687         * sysdeps/ia64/fpu/s_rintl.S: Likewise.
1688         * sysdeps/ia64/fpu/s_round.S: Likewise.
1689         * sysdeps/ia64/fpu/s_roundf.S: Likewise.
1690         * sysdeps/ia64/fpu/s_roundl.S: Likewise.
1691         * sysdeps/ia64/fpu/s_scalbn.S: Likewise.
1692         * sysdeps/ia64/fpu/s_scalbnf.S: Likewise.
1693         * sysdeps/ia64/fpu/s_scalbnl.S: Likewise.
1694         * sysdeps/ia64/fpu/s_significand.S: Likewise.
1695         * sysdeps/ia64/fpu/s_significandf.S: Likewise.
1696         * sysdeps/ia64/fpu/s_significandl.S: Likewise.
1697         * sysdeps/ia64/fpu/s_tan.S: Likewise.
1698         * sysdeps/ia64/fpu/s_tanf.S: Likewise.
1699         * sysdeps/ia64/fpu/s_tanl.S: Likewise.
1700         * sysdeps/ia64/fpu/s_trunc.S: Likewise.
1701         * sysdeps/ia64/fpu/s_truncf.S: Likewise.
1702         * sysdeps/ia64/fpu/s_truncl.S: Likewise.
1703         * sysdeps/ieee754/dbl-64/doasin.c: Changed copyright notice to
1704         reflect IBM donation of math library to FSF
1705         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
1706         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
1707         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
1708         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
1709         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
1710         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
1711         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
1712         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
1713         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
1714         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
1715         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
1716         * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
1717         * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
1718         * sysdeps/ieee754/dbl-64/mplog.c: Likewise.
1719         * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
1720         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
1721         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
1722         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
1723         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
1724         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
1725         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
1726         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
1727         * sysdeps/gnu/netinet/udp.h: Added BSD copying permission notice
1728         * sysdeps/vax/__longjmp.c: Likewise.
1729         * sysdeps/vax/setjmp.c: Likewise.
1730         * libio/filedoalloc.c: Fixed BSD copying permission notice to
1731         remove advertising clause
1732         * sysdeps/vax/htonl.s: Likewise.
1733         * sysdeps/vax/htons.s: Likewise.
1734         * libio/wfiledoalloc.c: Likewise.
1735         * stdlib/random.c: Likewise.
1736         * stdlib/random_r.c: Likewise.
1737         * sysdeps/mach/sys/reboot.h: Likewise.
1738         * inet/getnameinfo.c: Deleted advertising clause from Inner Net License
1739         * sysdeps/posix/getaddrinfo.c: Likewise.
1740         * sunrpc/des_impl.c: Updated license permission notice to Lesser
1741         GPL and corrected pointer to point to the correct license.
1742
1743 2002-07-04  Andreas Jaeger  <aj@suse.de>
1744
1745         * scripts/config.guess: New upstream version.
1746         * scripts/config.sub: Likewise.
1747
1748 2002-07-02  Andreas Schwab  <schwab@suse.de>
1749
1750         * resolv/nss_dns/dns-network.c (getanswer_r): Reduce linebuflen
1751         in parallel to bumping up the buffer pointer.
1752
1753 2002-07-01  Jakub Jelinek  <jakub@redhat.com>
1754
1755         * math/libm-test.inc (acos_test): Add missing L suffix for
1756         expected result.
1757         (cpow_test): Likewise.
1758         * sysdeps/i386/fpu/libm-test-ulps: Adjust errors for cpow, remove
1759         error for acos (0.0625).
1760
1761 2002-06-30  Ulrich Drepper  <drepper@redhat.com>
1762
1763         * locale/iso-639.def: Add entry for Ganda.
1764         * locale/programs/ld-address.c (DEFINE_LANGUAGE_CODE3): New
1765         definition.
1766         (address_finish): Handle entries with two letter ISO 639 code.
1767
1768         * iconvdata/Makefile: Recreate gconv-modules.cache file in target
1769         directory if it existed before.
1770         * iconv/iconvconfig.c: Implement --prefix option.
1771
1772         * math/libm-test.inc (cexp_test): Add missing L suffix for
1773         expected result.  Reported by Stephen L Moshier <steve@moshier.net>.
1774         * sysdeps/i386/fpu/libm-test-ulps: Adjust error for cexp (0.75 +
1775         1.25 i).
1776
1777 2002-05-29  H.J. Lu  <hjl@gnu.org>
1778
1779         * elf/dl-error.c (_dl_signal_cerror): Report error if ld.so debug
1780         is turned on.
1781
1782 2002-05-28  H.J. Lu  <hjl@gnu.org>
1783
1784         * elf/dl-deps.c (_dl_map_object_deps): Don't add objects which
1785         are not dlopened on the dependency list of a dlopened object.
1786
1787 2002-06-30  Ulrich Drepper  <drepper@redhat.com>
1788
1789         * elf/dl-lookup.c (add_dependency): It is not necessary to add
1790         dependencies if they are created between objects which are created
1791         while processing RTLD_NOW for objects loaded as part of the same
1792         dlopen call.
1793
1794 2002-06-14  H.J. Lu  <hjl@gnu.org>
1795
1796         * elf/Makefile (tests): Add circleload1.
1797         (modules-names): Add circlemod1, circlemod2, circlemod3,
1798         circlemod1a, circlemod2a and circlemod3a.
1799         ($(objpfx)circleload1): New target.
1800         ($(objpfx)circleload1.out): Likewise.
1801         ($(objpfx)circlemod1.so): Likewise.
1802         ($(objpfx)circlemod2.so): Likewise.
1803         ($(objpfx)circlemod1a.so): Likewise.
1804         ($(objpfx)circlemod2a.so): Likewise.
1805         * elf/circleload1.c: New file.
1806         * elf/circlemod1.c: New file.
1807         * elf/circlemod1a.c: New file.
1808         * elf/circlemod2.c: New file.
1809         * elf/circlemod2a.c: New file.
1810         * elf/circlemod3.c: New file.
1811         * elf/circlemod3a.c: New file.
1812
1813 2002-06-18  Amos Waterland  <apw@us.ibm.com>
1814
1815         * sysdeps/pthread/aio_cancel.c (aio_cancel): Add check for invalid
1816         file descriptor.
1817         * sysdeps/pthread/aio_fsync.c (aio_fsync): Add check for invalid fd;
1818         add check for fd not open for writing.
1819
1820         * sysdeps/pthread/aio_suspend.c (aio_suspend): Add check for
1821         completed element(s) and do not suspend thread if so.  Patch
1822         heavily modified by drepper.
1823
1824         * rt/tst-aio7.c: New file.  Regression test for problems which the
1825         above three changes fix.
1826         * rt/Makefile (tests): Add tst-aio7.
1827
1828 2002-06-29  Ulrich Drepper  <drepper@redhat.com>
1829
1830         * rt/tst-aio6.c: Fix comment.
1831
1832         * catgets/gencat.c (read_input_file): Handle more than one slash
1833         at end of line correctly [PR libc/3926].
1834         Based on a patch by Steven Kim <steven.kim@peregrine.com>.
1835
1836         * catgets/sample.SJIS: Add test case for above bug.
1837         * catgets/test-gencat.c: Adjust test code.
1838         * catgets/test-gencat.sh: Adjust expected results.
1839
1840         * elf/do-rel.h (elf_dynamic_do_rel): Avoid overflow in computation
1841         to skip relative relocations.
1842         Patch by Geoff Keating <geoffk@redhat.com>.
1843
1844 2002-05-26  Bruno Haible  <bruno@clisp.org>
1845
1846         * iconv/loop.c (STANDARD_FROM_LOOP_ERR_HANDLER): New macro.
1847         (STANDARD_TO_LOOP_ERR_HANDLER): Renamed from STANDARD_ERR_HANDLER.
1848         All callers changed.
1849         * iconv/gconv_simple.c (ascii_internal_loop): For error handling use
1850         STANDARD_FROM_LOOP_ERR_HANDLER.
1851         (utf8_internal_loop): Likewise.
1852         (ucs2_internal_loop): Likewise.
1853         (internal_ucs2_loop): Perform error handling like in
1854         STANDARD_FROM_LOOP_ERR_HANDLER.
1855         * iconvdata/unicode.c (BODY for TO_LOOP): Perform error handling like
1856         in STANDARD_FROM_LOOP_ERR_HANDLER.
1857         (BODY for FROM_LOOP): Use STANDARD_FROM_LOOP_ERR_HANDLER for error
1858         handling.
1859         * iconvdata/utf-16.c (BODY for TO_LOOP): Perform error handling like
1860         in STANDARD_FROM_LOOP_ERR_HANDLER.
1861         (BODY for FROM_LOOP): Use STANDARD_FROM_LOOP_ERR_HANDLER for error
1862         handling.
1863         * iconvdata/utf-32.c (BODY for TO_LOOP): Perform error handling like
1864         in STANDARD_FROM_LOOP_ERR_HANDLER.
1865         (BODY for FROM_LOOP): Use STANDARD_FROM_LOOP_ERR_HANDLER for error
1866         handling.
1867         * iconvdata/big5.c (BODY for FROM_LOOP): For error handling use
1868         STANDARD_FROM_LOOP_ERR_HANDLER.
1869         * iconvdata/iso-2022-jp.c (BODY for FROM_LOOP): Likewise.
1870         * iconvdata/8bit-gap.c (BODY for FROM_LOOP): Likewise.
1871         * iconvdata/8bit-generic.c (BODY for FROM_LOOP): Likewise.
1872         * iconvdata/ansi_x3.110.c (BODY for FROM_LOOP): Likewise.
1873         * iconvdata/armscii-8.c (BODY for FROM_LOOP): Likewise.
1874         * iconvdata/cp1255.c (BODY for FROM_LOOP): Likewise.
1875         * iconvdata/cp1258.c (BODY for FROM_LOOP): Likewise.
1876         * iconvdata/euc-cn.c (BODY for FROM_LOOP): Likewise.
1877         * iconvdata/euc-jisx0213.c (BODY for FROM_LOOP): Likewise.
1878         * iconvdata/euc-jp.c (BODY for FROM_LOOP): Likewise.
1879         * iconvdata/euc-kr.c (BODY for FROM_LOOP): Likewise.
1880         * iconvdata/euc-tw.c (BODY for FROM_LOOP): Likewise.
1881         * iconvdata/big5hkscs.c (BODY for FROM_LOOP): Likewise.
1882         * iconvdata/gb18030.c (BODY for FROM_LOOP): Likewise.
1883         * iconvdata/gbk.c (BODY for FROM_LOOP): Likewise.
1884         * iconvdata/iso-2022-cn-ext.c (BODY for FROM_LOOP): Likewise.
1885         * iconvdata/iso-2022-cn.c (BODY for FROM_LOOP): Likewise.
1886         * iconvdata/iso-2022-jp-3.c (BODY for FROM_LOOP): Likewise.
1887         * iconvdata/iso-2022-kr.c (BODY for FROM_LOOP): Likewise.
1888         * iconvdata/iso646.c (BODY for FROM_LOOP): Likewise.
1889         * iconvdata/iso_6937-2.c (BODY for FROM_LOOP): Likewise.
1890         * iconvdata/iso_6937.c (BODY for FROM_LOOP): Likewise.
1891         * iconvdata/johab.c (BODY for FROM_LOOP): Likewise.
1892         * iconvdata/shift_jisx0213.c (BODY for FROM_LOOP): Likewise.
1893         * iconvdata/sjis.c (BODY for FROM_LOOP): Likewise.
1894         * iconvdata/t.61.c (BODY for FROM_LOOP): Likewise.
1895         * iconvdata/uhc.c (BODY for FROM_LOOP): Likewise.
1896         * iconvdata/utf-7.c (BODY for FROM_LOOP): Likewise.
1897         * iconvdata/gbbig5.c (BODY for FROM_LOOP): Likewise.  When ignoring
1898         an error, still set result = __GCONV_ILLEGAL_INPUT.
1899         (BODY for TO_LOOP): Likewise.
1900         * iconvdata/ibm930.c (BODY for FROM_LOOP): For error handling use
1901         STANDARD_FROM_LOOP_ERR_HANDLER.
1902         (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
1903         * iconvdata/ibm932.c: Include <dlfcn.h> and <stdint.h>.
1904         (BODY for FROM_LOOP): Use STANDARD_FROM_LOOP_ERR_HANDLER for error
1905         handling.
1906         (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
1907         * iconvdata/ibm933.c (BODY for FROM_LOOP): For error handling use
1908         STANDARD_FROM_LOOP_ERR_HANDLER.
1909         (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
1910         * iconvdata/ibm935.c (BODY for FROM_LOOP): For error handling use
1911         STANDARD_FROM_LOOP_ERR_HANDLER.
1912         (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
1913         * iconvdata/ibm937.c (BODY for FROM_LOOP): For error handling use
1914         STANDARD_FROM_LOOP_ERR_HANDLER.
1915         (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
1916         * iconvdata/ibm939.c (BODY for FROM_LOOP): For error handling use
1917         STANDARD_FROM_LOOP_ERR_HANDLER.
1918         (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
1919         * iconvdata/ibm943.c: Include <dlfcn.h> and <stdint.h>.
1920         (BODY for FROM_LOOP): Use STANDARD_FROM_LOOP_ERR_HANDLER for error
1921         handling.
1922         (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
1923         * iconvdata/gbgbk.c (BODY for FROM_LOOP): Update.
1924         * iconvdata/iso8859-1.c (BODY for TO_LOOP): Update.
1925         * iconvdata/tcvn5712-1.c (BODY for TO_LOOP): Update.
1926
1927 2002-06-28  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
1928
1929         * sysdeps/sh/dl-machine.h (elf_machine_load_address): Use local
1930         labels in assembler instructions.
1931
1932 2002-06-25  Ulrich Drepper  <drepper@redhat.com>
1933
1934         * libio/fileops.c (_IO_file_xsgetn_mmap): Always set EOF flag if
1935         not enough content is available.
1936         * libio/tst-eof.c: New file.
1937         * libio/Makefile (tests): Add tst-eof.
1938
1939         * libio/fileops.c (_IO_file_underflow_mmap): Read a single byte to
1940         update atime.
1941         * libio/tst-atime.c: New file.
1942         * libio/Makefile (tests): Add tst-atime.
1943
1944         * argp/argp-fmtstream.c (__argp_fmtstream_update): Avoid crash in
1945         handling of overly long words.
1946
1947 2002-06-25  Andreas Jaeger  <aj@suse.de>
1948
1949         * sysdeps/x86-64/dl-machine.h (elf_machine_load_address): Rewrite
1950         to not use 32-bit pc relative relocations.
1951         (elf_machine_dynamic): Likewise.
1952
1953 2002-06-21  Ulrich Drepper  <drepper@redhat.com>
1954
1955         * sysdeps/unix/sysv/linux/getdents.c [__ASSUME_GETDENTS64_SYSCALL]
1956         (__GETDENTS): Check for failed getdents64 syscall.
1957         * dirent/Makefile (tests): Add bug-readdir1.
1958         * dirent/bug-readdir1.c: New file.
1959
1960 2002-06-17  Jakub Jelinek  <jakub@redhat.com>
1961
1962         * elf/dl-lookup.c (_dl_debug_bindings): Use type_class 4 for TLS
1963         lookups.
1964         * elf/rtld.c (dl_main): Move TLS setup code before LD_TRACE_PRELINKING
1965         code.  Print TLS modid and offset for modules containing PT_TLS
1966         segments.
1967
1968 2002-06-09  Jakub Jelinek  <jakub@redhat.com>
1969
1970         * sysdeps/unix/sysv/linux/i386/dl-brk.c: Move...
1971         * sysdeps/unix/sysv/linux/dl-brk.c: ...here.
1972         * sysdeps/unix/sysv/linux/i386/dl-sbrk.c: Move...
1973         * sysdeps/unix/sysv/linux/dl-sbrk.c: ...here.
1974
1975 2002-06-07  Jakub Jelinek  <jakub@redhat.com>
1976
1977         * nss/getXXbyYY_r.c (NEW, NEW1): Define.
1978         (NEW (REENTRANT_NAME)): Strong alias to INTERNAL (REENTRANT_NAME).
1979         (REENTRANT_NAME@@GLIBC_2.1.2): Use NEW (REENTRANT_NAME).
1980         * nss/getXXent_r.c (NEW, NEW1): Define.
1981         (NEW (REENTRANT_GETNAME)): Strong alias to
1982         INTERNAL (REENTRANT_GETNAME).
1983         (REENTRANT_GETNAME@@GLIBC_2.1.2): Use NEW (REENTRANT_GETNAME).
1984
1985 2002-06-21  Ulrich Drepper  <drepper@redhat.com>
1986
1987         * libio/fileops.c (_IO_file_setbuf_mmap): New function.
1988         (_IO_file_jumps_mmap): Use it.
1989         * libio/iosetvbuf.c: Don't call _IO_WSETBUF.
1990         * libio/libioP.h: Remove _IO_wdefault_setbuf and
1991         _IO_wdefault_setbuf_internal prorotypes.  Add _IO_file_setbuf_mmap
1992         prototype.
1993         * libio/wfileops.c (_IO_wfile_setbuf): Removed.
1994         (_IO_wfile_jumps_mmap): Don't use it anymore.
1995         * libio/wgenops.c (_IO_wdefault_setbuf): Removed.
1996         * libio/memstream.c (_IO_wmem_jumps): Use _IO_default_setbuf not
1997         _IO_wdefault_setbuf.
1998         * libio/vswprintf.c (_IO_wstrn_jumps): Likewise.
1999         * libio/wstrops.c (_IO_wstr_jumps): Likewise.
2000         * stdio-common/vfprintf.c (_IO_helper_jumps): Likewise.
2001
2002 2002-06-05  Jakub Jelinek  <jakub@redhat.com>
2003
2004         * libio/Makefile (tests): Add tst-mmap-setvbuf.
2005         * libio/tst-mmap-setvbuf.c: New test.
2006
2007 2002-06-21  Andreas Jaeger  <aj@suse.de>
2008
2009         * sysdeps/i386/fpu/libm-test-ulps: Add some ulps from my P3.
2010
2011 2002-06-18  Jakub Jelinek  <jakub@redhat.com>
2012
2013         * include/unistd.h (__fork_internal): Remove.
2014         (__fork): Don't define to __fork_internal.
2015         * sysdeps/mach/hurd/fork.c (__fork): Remove INTDEF.
2016         * sysdeps/unix/sysv/aix/fork.c (__fork): Likewise.
2017         * sysdeps/unix/sysv/linux/ia64/fork.S (__fork_internal): Remove alias.
2018         * sysdeps/unix/sysv/linux/sparc/fork.S (__fork_internal): Likewise.
2019         * sysdeps/unix/sysv/linux/syscalls.list (__fork_internal): Likewise.
2020
2021 2002-06-20  Ulrich Drepper  <drepper@redhat.com>
2022
2023         * po/hr.po: New file.
2024
2025 2002-06-11  Wolfram Gloger  <wg@malloc.de>
2026
2027         * malloc/malloc.c: Fix error path when new_heap() returns NULL.
2028         Reported by Michael Meissner <meissner@redhat.com>.
2029
2030 2002-06-20  Ulrich Drepper  <drepper@redhat.com>
2031
2032         * sysdeps/unix/sysv/linux/ia64/getcontext.S: Fix typo.
2033         Patch by Hans Boehm <hans_boehm@hp.com>.
2034
2035 2002-06-20  Andreas Jaeger  <aj@suse.de>
2036
2037         * math/libm-test.inc: Use exact values as input parameters,
2038         compute output parameters with 36 digits for 128-bit long doubles.
2039         * sysdeps/i386/fpu/libm-test-ulps: Regenerated.
2040         * sysdeps/x86-64/fpu/libm-test-ulps: Regenerated.
2041         * sysdeps/ia64/fpu/libm-test-ulps: Regenerated.
2042
2043 2002-06-13  Stephen L Moshier  <steve@moshier.net>
2044
2045         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Fix cases in which
2046         argument or result is subnormal.
2047
2048 2002-06-19  Ulrich Drepper  <drepper@redhat.com>
2049
2050         * sysdeps/i386/fpu/s_remquo.S: Fix three mistakes in computing the
2051         quotient.
2052         * sysdeps/i386/fpu/s_remquof.S: Likewise.
2053         * sysdeps/i386/fpu/s_remquol.S: Likewise.
2054
2055         * sysdeps/hppa/dl-machine.h: Don't use multi-line string literals.
2056
2057 2002-06-17  David Mosberger  <davidm@hpl.hp.com>
2058
2059         * sysdeps/unix/sysv/linux/ia64/sys/ucontext.h (uc_sigmask): Fix
2060         typo: corresponding sigcontext field is called sc_mask, not sc_sigmask.
2061         Reported by Peter A. Buhr.
2062
2063 2002-06-15  Roland McGrath  <roland@frob.com>
2064
2065         * sysdeps/mach/hurd/mmap.c (__mmap): Add a dead case that quiets a
2066         warning.
2067
2068         * sysdeps/mach/hurd/getcwd.c
2069         (_hurd_canonicalize_directory_name_internal): unsigned int -> size_t
2070
2071         * sysdeps/unix/sysv/linux/bits/ustat.h: Moved to ...
2072         * sysdeps/generic/bits/ustat.h: ... here (was almost identical).
2073
2074         * sysdeps/alpha/divrem.h: Use local label instead of global one for
2075         jump to local subroutine.
2076
2077 2002-06-14  Roland McGrath  <roland@frob.com>
2078
2079         * sysdeps/mach/hurd/i386/Makeconfig: File moved to ...
2080         * sysdeps/mach/hurd/Makeconfig: ... here.
2081
2082 2002-06-13  Andreas Schwab  <schwab@suse.de>
2083
2084         * sysdeps/m68k/fpu/s_finite.c: Remove INTDEF.
2085         * sysdeps/m68k/fpu/s_finitef.c: Likewise.
2086         * sysdeps/m68k/fpu/s_finitel.c: Likewise.
2087
2088 2002-06-13  Roland McGrath  <roland@frob.com>
2089
2090         * hurd/hurdstartup.h (_hurd_startup): int -> intptr_t in MAIN arg type.
2091         * hurd/hurdstartup.c (_hurd_startup): Likewise.
2092         Use intptr_t instead of int for argc in stack layout.
2093         * sysdeps/mach/hurd/alpha/init-first.c (init): Fix argument type.
2094         (_dl_init_first): Likewise.
2095         (_hurd_stack_setup): Likewise.
2096         (init1): Add a cast.
2097         * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start: go): Fix arg type.
2098
2099         * sysdeps/mach/hurd/if_index.c (if_nameindex): Use size_t for AMOUNT
2100         argument to pfinet_siocgifconf RPC.
2101
2102 2002-06-13  Andreas Schwab  <schwab@suse.de>
2103
2104         * sysdeps/m68k/fpu/s_isinf.c (INTDEFX): Define to get correct
2105         expansion order.
2106
2107 2002-06-12  Roland McGrath  <roland@frob.com>
2108
2109         * sysdeps/generic/tmpfile.c [USE_IN_LIBIO] (tmpfile): Don't #define
2110         if already defined.
2111         [USE_IN_LIBIO]: Conditionalize versioned_symbol use on
2112         [GEN_THIS == __GT_FILE] so that tmpfile64.c's inclusion doesn't get it.
2113
2114 2002-06-11  Roland McGrath  <roland@frob.com>
2115
2116         * sysdeps/mach/hurd/xstat64.c: Conditionalize entire contents of the
2117         file on [!RTLD_STAT64].
2118         * sysdeps/mach/hurd/fxstat64.c: Likewise.
2119
2120         * sysdeps/mach/hurd/tmpfile.c (tmpfile64): Define as alias of tmpfile.
2121         (__fdopen): Use INTUSE.
2122         * sysdeps/mach/hurd/tmpfile64.c: New file, empty placeholder.
2123
2124         * stdio-common/tmpfile64.c: File removed.
2125         * sysdeps/generic/tmpfile64.c: New file.
2126         * sysdeps/generic/tmpfile.c (GEN_THIS): New macro, define to __GT_FILE
2127         if not already defined.
2128         (tmpfile): Use it in place of __GT_FILE.
2129
2130         * include/unistd.h: Declare __chown_internal.
2131
2132         * sysdeps/mach/hurd/sendfile64.c (sendfile64): Do real work here.
2133         * sysdeps/mach/hurd/sendfile.c (sendfile): Call that.
2134
2135 2002-06-09  Roland McGrath  <roland@frob.com>
2136
2137         Update to new Hurd RPC interfaces supporting 64-bit file sizes.
2138         * sysdeps/mach/hurd/configure.in: Check for <hurd/version.h> with
2139         value of HURD_INTERFACE_VERSION >= 20020609.
2140         * sysdeps/mach/hurd/configure: Regenerated.
2141         * shlib-versions (.*-.*-gnu-gnu.*): Set libhurduser=0.3.
2142         * sysdeps/mach/hurd/xstatconv.c (xstat64_conv): Rewritten to
2143         convert a struct stat64 into a struct stat and return 0 or -1
2144         with errno set to EOVERFLOW.
2145         * sysdeps/mach/hurd/statfsconv.c (statfs64_conv): Likewise
2146         for struct statfs64 to struct statfs.
2147         * sysdeps/mach/hurd/xstat.c (__xstat): Use converter and call ...
2148         * sysdeps/mach/hurd/xstat64.c (__xstat64): ... this, real work here.
2149         * sysdeps/mach/hurd/fxstat.c (__fxstat): Likewise.
2150         * sysdeps/mach/hurd/fxstat64.c (__fxstat64): Likewise.
2151         * sysdeps/mach/hurd/lxstat.c (__lxstat): Likewise.
2152         * sysdeps/mach/hurd/lxstat64.c (__lxstat64): Likewise.
2153         * sysdeps/mach/hurd/statfs.c (__statfs): Likewise.
2154         * sysdeps/mach/hurd/statfs64.c (__statfs64): Likewise.
2155         * sysdeps/mach/hurd/fstatfs.c (__fstatfs): Likewise.
2156         * sysdeps/mach/hurd/fstatfs64.c (__fstatfs64): Likewise.
2157         * sysdeps/mach/hurd/pwrite64.c (__libc_pwrite64): Do real work here.
2158         * sysdeps/mach/hurd/pwrite.c (__libc_pwrite): Call that.
2159         * sysdeps/mach/hurd/pread64.c (__libc_pread64): Do real work here.
2160         * sysdeps/mach/hurd/pread.c (__libc_pread): Call that.
2161         * sysdeps/mach/hurd/lseek64.c (__libc_lseek64): Do real work here.
2162         * sysdeps/mach/hurd/lseek.c (__libc_lseek): Call that.
2163         * sysdeps/mach/hurd/readdir64.c (__readdir64): Do real work here.
2164         * sysdeps/mach/hurd/readdir.c (__readdir): Call that.
2165         * sysdeps/mach/hurd/readdir64_r.c (__readdir64_r): Do real work here.
2166         * sysdeps/mach/hurd/readdir_r.c (__readdir64_r): Call that.
2167         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry):
2168         Use struct stat64 for io_stat argument.
2169         * sysdeps/mach/hurd/readlink.c (__readlink): Likewise.
2170         * hurd/fopenport.c (seekio): Remove EOVERFLOW check, pass POS directly
2171         to io_seek.
2172         * hurd/fd-read.c (_hurd_fd_read): Use loff_t for OFFSET argument.
2173         * hurd/fd-write.c (_hurd_fd_write): Likewise.
2174         * hurd/hurd/fd.h: Update decls.
2175         * sysdeps/mach/hurd/getcwd.c
2176         (_hurd_canonicalize_directory_name_internal): Use ino64_t
2177         and struct dirent64.
2178         * sysdeps/mach/hurd/dl-sysdep.c (open_file): Use struct stat64.
2179         (__xstat): Renamed to __xstat64, use struct stat64 for argument.
2180         (__fxstat): Renamed to __fxstat64, use struct stat64 for argument.
2181         (__lseek): Renamed to __libc_lseek64, use off64_t for argument.
2182
2183 2002-06-08  Roland McGrath  <roland@frob.com>
2184
2185         * sysdeps/mach/hurd/dirstream.h (struct __dirstream): Use size_t
2186         instead of unsigned long int for __allocation and __size members.
2187
2188 2002-06-09  Jakub Jelinek  <jakub@redhat.com>
2189
2190         * sysdeps/unix/sysv/linux/i386/dl-brk.c: Move...
2191         * sysdeps/unix/sysv/linux/dl-brk.c: ...here.
2192         * sysdeps/unix/sysv/linux/i386/dl-sbrk.c: Move...
2193         * sysdeps/unix/sysv/linux/dl-sbrk.c: ...here.
2194
2195 2002-06-07  Roland McGrath  <roland@frob.com>
2196
2197         * sysdeps/mach/hurd/bits/environments.h: File removed.
2198
2199 2002-06-07  Jakub Jelinek  <jakub@redhat.com>
2200
2201         * sysdeps/unix/sysv/linux/alpha/sendfile64.c: New file.
2202         * sysdeps/unix/sysv/linux/ia64/sendfile64.c: New file.
2203         * sysdeps/unix/sysv/linux/sparc/sparc64/sendfile64.c: New file.
2204         * sysdeps/unix/sysv/linux/x86_64/sendfile64.c: New file.
2205         * sysdeps/unix/sysv/linux/syscalls.list (sendfile): Remove EXTRA.
2206         (sendfile64): Likewise.
2207         * sysdeps/unix/sysv/linux/alpha/syscalls.list (sendfile): Likewise.
2208         * sysdeps/unix/sysv/linux/ia64/syscalls.list (sendfile): Likewise.
2209         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list (sendfile):
2210         Likewise.
2211         * sysdeps/unix/sysv/linux/x86_64/syscalls.list (sendfile): Likewise.
2212
2213         * include/sys/stat.h (__fxstat64, __lxstat64): Only define if not
2214         already defined.
2215
2216 2002-06-04  Bruno Haible  <bruno@clisp.org>
2217
2218         * sysdeps/cris/stackinfo.h: New file.
2219
2220         * sysdeps/hppa/dl-machine.h (elf_machine_rela): Cast reloc_addr
2221         to an integer type before performing bit operations on it.
2222
2223 2002-06-05  Roland McGrath  <roland@frob.com>
2224
2225         * sysdeps/generic/sendfile.c: Include <errno.h>.
2226         * sysdeps/generic/sendfile64.c: Likewise.
2227
2228         * io/Makefile (routines): Add sendfile and sendfile64.
2229         (headers): Add sys/sendfile.h to the list.
2230         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Don't add it here.
2231         * sysdeps/unix/sysv/linux/sys/sendfile.h: Moved to ...
2232         * io/sys/sendfile.h: ... here.
2233         * sysdeps/generic/sendfile.c: New file.
2234         * sysdeps/generic/sendfile64.c: New file.
2235
2236         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.1, GLIBC_2.3):
2237         Move sendfile, sendfile64 to ...
2238         * io/Versions (GLIBC_2.1, GLIBC_2.3): ... here.
2239         * sysdeps/mach/hurd/sendfile.c: New file.
2240         * sysdeps/mach/hurd/sendfile64.c: New file.
2241
2242         * sysdeps/mach/nanosleep.c: New file.
2243
2244 2002-06-04  Roland McGrath  <roland@frob.com>
2245
2246         * sysdeps/alpha/elf/configure.in: New file.  Check for TLS support.
2247         * sysdeps/alpha/elf/configure: New file (generated).
2248
2249 2002-06-02  Roland McGrath  <roland@frob.com>
2250
2251         * include/link.h: Include <tls.h> to make sure USE_TLS is defined.
2252
2253 2002-06-01  Roland McGrath  <roland@frob.com>
2254
2255         * sysdeps/mach/hurd/alpha/init-first.c: New file, modified from
2256         i386/init-first.c by Andrew M. Miklic <miklic@attglobal.net>.
2257
2258 2002-05-19  Ulrich Drepper  <drepper@redhat.com>
2259
2260         * resolv/resolv.h (struct __res_state): Remove unused nstimes.
2261         Add nsmap.
2262         * resolv/res_init.c (__res_vinit): Initialize nsmap array.
2263         Remove nstimes setting.
2264         (res_nclose): Check all MAXNS nameservers with non-NULL nsaddrs.
2265         * resolv/res_send.c (res_nsend): Don't close unconditionally if
2266         there is mix of IPv6 and IPv4 nameservers.
2267         Use nsmap array to find free slots and preserve nameserver ordering.
2268         Fix RES_ROTATE.
2269
2270 2002-05-30  Ulrich Drepper  <drepper@redhat.com>
2271
2272         * sysdeps/unix/sysv/linux/sys/sendfile.h: It is now possible to
2273         use this header with LFS.
2274
2275         * po/sk.po: Update from translation team.
2276
2277 2002-05-28  Andreas Schwab  <schwab@suse.de>
2278
2279         * sysdeps/generic/readelflib.c (process_elf_file): Give correct
2280         message when finding object of wrong class.
2281
2282 2002-05-28  Jakub Jelinek  <jakub@redhat.com>
2283
2284         * sysdeps/wordsize-32/divdi3.c (__moddi3): Fix pasto.
2285         Patch by <radu@netsoft.ro>.
2286
2287 2002-05-30  Ulrich Drepper  <drepper@redhat.com>
2288
2289         * sysdeps/unix/sysv/linux/Makefile [$(subdir)==misc] (sysdep_routines):
2290         Add readahead.
2291         * sysdeps/unix/sysv/linux/readahead.c: New file.
2292         * sysdeps/unix/sysv/linux/syscalls.list: Add sendfile64 syscall.
2293         * sysdeps/unix/sysv/linux/Versions: Export readahead and sendfile64.
2294         * sysdeps/unix/sysv/linux/alpha/syscalls.list: Add readahead syscall.
2295         Add sendfile64 alias to sendfile syscall.
2296         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
2297         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
2298         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
2299         * sysdeps/unix/sysv/linux/powerpc/syscalls.list: Add s_readahead
2300         syscall.
2301
2302         * sysdeps/unix/sysv/linux/i386/sysdep.h: Use __i686.get_pc_thunk.XX
2303         special section for PIC register loading.
2304         * sysdeps/unix/sysv/linux/i386/i686/sysdep.h: Likewise.
2305
2306         * config.h.in: Define HAVE_HIDDEN.
2307         * configure.in: Also define HAVE_HIDDEN if HAVE_PROTECTED is defined.
2308
2309         * elf/elf.h: Correct Alpha TLS relocations according to last spec.
2310
2311 2002-05-28  Roland McGrath  <roland@frob.com>
2312
2313         * sysdeps/mach/alpha/setfpucw.c: New file.
2314
2315 2002-05-26  Roland McGrath  <roland@frob.com>
2316
2317         * sysdeps/mach/hurd/ioctl.c (__ioctl): Don't use sizeof in _IOTS.
2318         Use integer_t instead of int for IOC_VOID case.
2319
2320 2002-05-27  Alexandre Oliva  <aoliva@redhat.com>
2321
2322         * configure.in (DO_STATIC_NSS): Define if --disable-shared.
2323
2324 2002-05-26  Bruno Haible  <bruno@clisp.org>
2325
2326         * iconvdata/iso-2022-jp.c (BODY for TO_LOOP): Avoid running off the
2327         end of the ISO-8859-7 from idx table.
2328
2329 2002-05-27  Ulrich Drepper  <drepper@redhat.com>
2330
2331         * manual/lang.texi: Fix FLT_EPSILON description [PR libc/3649].
2332
2333 2002-05-24  David S. Miller  <davem@redhat.com>
2334
2335         * string/bits/string2.h (memset): Do not try to optimize when
2336         not _STRING_ARCH_unaligned if GCC will do the right thing.
2337
2338 2002-05-21  Isamu Hasegawa  <isamu@yamato.ibm.com>
2339
2340         * posix/regex.c: Define `inline' as a macro into nothing for the
2341         compilers which lack the keyword.
2342         * posix/regex.h: (RE_SYNTAX_GNU_AWK): Remove RE_CONTEXT_INVALID_OPS
2343         for the compatibility of gawk.
2344         * posix/regcomp.c: Add fake implementation of isblank() for the
2345         environments which lack the function.
2346         Don't use free_charset() in case of non-i18n envs.
2347         (build_range_exp): Don't use i18n related code in case of non-i18n
2348         envs.
2349         (build_collating_symbol): Likewise.
2350         (build_equiv_class): Likewise.
2351         (build_charclass): Likewise.
2352         (re_compile_fastmap_iter): Likewise.
2353         (parse_bracket_exp): Likewise.
2354         (build_word_op): Likewise.
2355         (regfree): Don't use free_charset() in case of non-i18n envs.
2356         * posix/regex_internal.h: Remove COMPLEX_BRACKET from
2357         re_token_type_t in case of non-i18n envs.
2358         Don't define re_charset_t in case of non-i18n envs.
2359         Change the type of wcs of re_string_t from wchar_t to wint_t,
2360         since we store also WEOF.
2361         * posix/regex_internal.c: (re_string_realloc_buffers): Change
2362         the type of wcs of re_string_t from wchar_t to wint_t.
2363         (re_string_reconstruct): Likewise.
2364         (create_ci_newstate): Don't use i18n related code in case of
2365         non-i18n envs.
2366         (create_cd_newstate): Likewise.
2367
2368 2002-05-24  Ulrich Drepper  <drepper@redhat.com>
2369
2370         * iconv/loop.c: Fix typo.
2371
2372 2002-05-23  Jakub Jelinek  <jakub@redhat.com>
2373
2374         * inet/ether_line.c (ether_line): Fix a typo causing only
2375         lower 4 bits of each ethernet address byte being assigned.
2376         Don't modify what line points to.
2377         * inet/tst-ether_aton.c (main): Add ether_line tests.
2378
2379 2002-05-23  Marcus Brinkmann  <marcus@gnu.org>
2380
2381         * manual/filesys.texi: Don't make readlink example leak memory
2382         when readlink fails.
2383
2384 2002-05-20  Ulrich Drepper  <drepper@redhat.com>
2385
2386         * iconv/loop.c: Fix condition for defining unaligned loop.  Add
2387         some more security checks.
2388
2389 2002-05-17  David S. Miller  <davem@redhat.com>
2390
2391         * sysdeps/unix/sysv/linux/sparc/fork.S: Define _internal aliases.
2392
2393 2002-05-16  David S. Miller  <davem@redhat.com>
2394
2395         * sysdeps/sparc/sparc32/dl-machine.h (LOAD_PIC_REG): Define.
2396         (elf_machine_dynamic): Use it to force PIC register to be loaded.
2397         (elf_machine_load_address): Likewise.
2398         * sysdeps/sparc/sparc64/dl-machine.h: Mirror sparc32 changes.
2399
2400         * sysdeps/sparc/sparc64/strncmp.S: When second argument pointer
2401         is unaligned, do not forget to fully initialize %g1 magic value.
2402
2403         * sysdeps/unix/sysv/linux/sparc/sys/procfs.h: Fix 64-bit elf
2404         register definitions and provide 32-bit variants of structures
2405         during 64-bit builds.
2406
2407         * soft-fp/op-1.h (_FP_FRAC_CLEAR_OVERP_1): Define.
2408         * soft-fp/op-2.h (_FP_FRAC_CLEAR_OVERP_2): Define.
2409         * soft-fp/op-4.h (_FP_FRAC_CLEAR_OVERP_4): Define.
2410         * soft-fp/op-common.h (_FP_PACK_CANONICAL): After rounding, if
2411         _FP_FRAC_OVERP_X is set, use _FP_FRAC_CLEAR_OVERP_X to clear it.
2412         (_FP_FROM_INT): Perform right shifts on unsigned integer type.
2413         Do not clear implicit one bit here, it must be done post-rounding.
2414         Only pad to the left using left shift if value uses less than the
2415         available fractional bits.
2416
2417 2002-05-20  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
2418
2419         * sysdeps/powerpc/Makefile (sysdeps_routines): Use libgcc-compat
2420         instead of cmpdi2, shdi3, fixdfdi, fixsfdi in csu dir.
2421         (shared-only-routines): Likewise.
2422         * sysdeps/powerpc/libgcc-compat.c: New file.
2423         * sysdeps/wordsize-32/cmpdi2.c: Removed.
2424         * sysdeps/wordsize-32/fixdfdi.c: Removed.
2425         * sysdeps/wordsize-32/fixsfdi.c: Removed.
2426         * sysdeps/wordsize-32/shdi3.c: Removed.
2427
2428 2002-05-16  Bruno Haible  <bruno@clisp.org>
2429
2430         * MakeTAGS (libc.pot): Don't sort the output.
2431         * po/header.pot: Update to match xgettext 0.11 output.
2432
2433 2002-05-16  Bruno Haible  <bruno@clisp.org>
2434
2435         * MakeTAGS (subdirs): Remove duplicates.
2436
2437 2002-05-19  Ulrich Drepper  <drepper@redhat.com>
2438
2439         * sysdeps/unix/sysv/linux/errlist.c: Remove extra weak alias
2440         definiton of _old_sys_nerr.  Define _old_sys_errlist as strong
2441         alias.
2442
2443 2002-05-19  Andreas Jaeger  <aj@suse.de>
2444
2445         * sysdeps/unix/sysv/linux/configure.in: Warn against an
2446         installation in /usr/local.
2447
2448 2002-05-16  Bruno Haible  <bruno@clisp.org>
2449
2450         * sysdeps/unix/sysv/aix/bits/ioctl-types.h: Don't use multiline
2451         string as argument of #error.
2452
2453 2002-05-15  Ulrich Drepper  <drepper@redhat.com>
2454
2455         * stdlib/canonicalize.c (canonicalize): Rename to __realpath and
2456         don't define static.  Remove old __realpath function.  TC1 of
2457         POSIX 2001 will allow the second parameter to be NULL.
2458         * stdlib/test-canon.c: Comment out test for NULL as second
2459         parameter of realpath.
2460
2461         * time/offtime.c (__offtime): Set errno if overflow is detected.
2462
2463         * elf/Makefile (rtld-routines): Remove dl-brk and dl-sbrk.
2464         * sysdeps/unix/sysv/linux/Makefile (sysdep-rtld-routines): Add
2465         dl-brk and dl-sbrk.
2466
2467         * sysdeps/sparc/fpu/bits/mathinline.h (fdim): Add __THROW.
2468         (fdimf): Likewise.
2469
2470 2002-05-15  Roland McGrath  <roland@frob.com>
2471
2472         * hurd/report-wait.c (_S_msg_report_wait): Use mach_msg_id_t for arg.
2473
2474 2002-05-12  Bruno Haible  <bruno@clisp.org>
2475
2476         * iconvdata/testdata/EUC-JISX0213: New file.
2477         * iconvdata/testdata/EUC-JISX0213..UTF8: New file.
2478         * iconvdata/testdata/SHIFT_JISX0213: New file.
2479         * iconvdata/testdata/SHIFT_JISX0213..UTF8: New file.
2480         * iconvdata/testdata/ISO-2022-JP-3: New file.
2481         * iconvdata/testdata/ISO-2022-JP-3..UTF8: New file.
2482         * iconvdata/TESTS: Add EUC-JISX0213, SHIFT_JISX0213, ISO-2022-JP-3.
2483         * iconvdata/run-iconv-test.sh: Skip the charmap test if the charmap
2484         contains comments indicating precomposed characters.
2485
2486 2002-04-21  Bruno Haible  <bruno@clisp.org>
2487
2488         * iconvdata/iso-2022-jp-3.c: New file.
2489         * iconvdata/gconv-modules (ISO-2022-JP-3): New module.
2490         * iconvdata/Makefile (modules): Add ISO-2022-JP-3.
2491         (LDFLAGS-ISO-2022-JP-3.so): New variable.
2492         (ISO-2022-JP-3.so): Depend on libJIS.so and libJISX0213.so.
2493         (distribute): Add iso-2022-jp-3.c.
2494
2495 2002-05-12  Bruno Haible  <bruno@clisp.org>
2496
2497         * iconvdata/tst-table-to.c (main): Restore handling of
2498         transliterations, broken by last patch.
2499
2500 2002-05-12  Bruno Haible  <bruno@clisp.org>
2501
2502         * iconvdata/TESTS: Add IBM922, IBM1124, IBM1129.
2503
2504 2002-05-12  Bruno Haible  <bruno@clisp.org>
2505
2506         * iconvdata/euc-jisx0213.c (BODY for FROM_LOOP): Don't advance inptr
2507         when there is not enough room in the output buffer.
2508         * iconvdata/shift_jisx0213.c (BODY for FROM_LOOP): Likewise.
2509
2510 2002-04-20  Bruno Haible  <bruno@clisp.org>
2511
2512         * iconv/skeleton.c ({FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO}): New
2513         macros.
2514         (RESET_INPUT_BUFFER): Use them instead of {MIN,MAX}_NEEDED_{FROM,TO}.
2515         Also make this macro work if FROM_DIRECTION evaluates to 0.
2516         (gconv_init): Use the new macros instead of {MIN,MAX}_NEEDED_{FROM,TO}.
2517         (FUNCTION_NAME): Likewise, in the handling of unaligned accesses and
2518         of consume_incomplete.
2519         * iconvdata/cp1255.c: Define {FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO}
2520         instead of {MIN,MAX}_NEEDED_{FROM,TO}. Set FROM_LOOP_MAX_NEEDED_TO to
2521         4, not 8.
2522         * iconvdata/cp1258.c: Likewise.
2523         * iconvdata/ibm930.c: Define {FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO}
2524         instead of {MIN,MAX}_NEEDED_{FROM,TO}. Set TO_LOOP_MAX_NEEDED_TO to 3,
2525         not 2.
2526         * iconvdata/ibm933.c: Likewise.
2527         * iconvdata/ibm935.c: Likewise.
2528         * iconvdata/ibm937.c: Likewise.
2529         * iconvdata/ibm939.c: Likewise.
2530         * iconvdata/iso-2022-cn.c: Define
2531         {FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO} instead of
2532         {MIN,MAX}_NEEDED_{FROM,TO}. Set TO_LOOP_MAX_NEEDED_TO to 6, not 4.
2533         * iconvdata/iso-2022-cn-ext.c: Likewise.
2534         * iconvdata/iso-2022-jp.c: Define
2535         {FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO} instead of
2536         {MIN,MAX}_NEEDED_{FROM,TO}.
2537         * iconvdata/tcvn5712-1.c: Define
2538         {FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO} instead of
2539         {MIN,MAX}_NEEDED_{FROM,TO}. Set FROM_LOOP_MAX_NEEDED_FROM to 1, not 2.
2540         * iconvdata/euc-jisx0213.c: Define
2541         {FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO} instead of
2542         {MIN,MAX}_NEEDED_{FROM,TO}. Set FROM_LOOP_MAX_NEEDED_TO to 8, not 4.
2543         * iconvdata/shift_jisx0213.c: Likewise.
2544
2545 2002-05-14  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
2546
2547         * sysdeps/powerpc/Makefile (sysdeps_routines): Add divdi3, cmpdi2,
2548         shdi3, fixdfdi, fixsfdi in csu dir.
2549         (shared-only-routines): Likewise.
2550         * sysdeps/wordsize-32/cmpdi2.c: New file.
2551         * sysdeps/wordsize-32/shdi3.c: New file.
2552         * sysdeps/wordsize-32/fixdfdi.c: New file.
2553         * sysdeps/wordsize-32/fixsfdi.c: New file.
2554         * sysdeps/powerpc/Versions (__divdi3, __moddi3, __udivdi3, __umoddi3,
2555         __ashldi3, __ashrdi3, __lshrdi3, __cmpdi2, __ucmpdi2, __fixdfdi,
2556         __fixsfdi, __fixunsdfdi, __fixunssfdi): Export at GLIBC_2.0.
2557
2558         * sysdeps/unix/sysv/linux/semctl.c (__old_semctl, __new_semctl):
2559         Only use va_arg if the argument will be used [PR libc/3259].
2560
2561 2002-05-06  Michael A. Schmidt  <mmaass@us.ibm.com>
2562
2563         * catgets/catgets.c (catopen): Free buffer if internal catalog
2564         open fails.
2565
2566 2002-05-14  Ulrich Drepper  <drepper@redhat.com>
2567
2568         * debug/xtrace.sh: Make more robust.  For realtime tracking use
2569         non-buffering methods.
2570         * debug/pcprofiledump.c: Implement -u option.
2571         Patch by Roger Luethi <rl@hellgate.ch>.
2572
2573 2002-05-11  Jakub Jelinek  <jakub@redhat.com>
2574
2575         * include/netinet/in.h (bindresvport_internal): Add prototype.
2576         * include/rpc/auth.h  (authunix_create_internal,
2577         authunix_create_default_internal, authnone_create_internal,
2578         authdes_pk_create_internal): Add prototypes.
2579         * include/rpc/clnt.h (clnt_create_internal, clnttcp_create_internal,
2580         clntudp_create_internal, clntudp_bufcreate_internal,
2581         clntunix_create_internal): Add prototypes.
2582         * include/rpc/svc.h (svc_sendreply_internal, svcerr_decode_internal,
2583         svc_getreq_internal, svc_getreq_common_internal,
2584         svc_getreqset_internal, svc_getreq_poll_internal,
2585         svc_register_internal, svc_unregister_internal,
2586         svcudp_create_internal, svcudp_bufcreate_internal): Add prototypes.
2587         * include/rpc/svc_auth.h (_authenticate_internal): Add prototype.
2588         * include/sys/socket.h (__sendto, __recvfrom, __sendmsg, __recvmsg,
2589         __setsockopt, __getsockname, __bind, __listen): Add prototypes.
2590         * inet/rexec.c (rexec_af): Use __listen and __getsockname.
2591         * inet/rcmd.c (rcmd_af): Use __listen.
2592         (rresvport_af): Use __bind.
2593         * sunrpc/clnt_udp.c: Use INTUSE calls to bindresvport,
2594         authunix_create, authunix_create_default, authnone_create,
2595         authdes_pk_create, clnt_create, clnttcp_create, clntudp_create,
2596         clntudp_bufcreate, clntunix_create svc_sendreply, svcerr_decode,
2597         svc_getreq, svc_getreq_common, svc_getreqset, svc_getreq_poll,
2598         svc_register, svc_unregister, svcudp_create, svcudp_bufcreate,
2599         _authenticate, add INTDEF after such function definitions.
2600         Use __listen, __bind, __sendto, __recvfrom, __sendmsg, __recvmsg,
2601         __setsockopt, __getsockname instead of non-__ variants.
2602         * sunrpc/pmap_rmt.c: Likewise.
2603         * sunrpc/rtime.c: Likewise.
2604         * sunrpc/svc_udp.c: Likewise.
2605         * sunrpc/clnt_unix.c: Likewise.
2606         * sunrpc/svc_unix.c: Likewise.
2607         * sunrpc/bindrsvprt.c: Likewise.
2608         * sunrpc/svc_tcp.c: Likewise.
2609         * sunrpc/auth_none.c: Likewise.
2610         * sunrpc/clnt_raw.c: Likewise.
2611         * sunrpc/clnt_tcp.c: Likewise.
2612         * sunrpc/auth_unix.c: Likewise.
2613         * sunrpc/key_call.c: Likewise.
2614         * sunrpc/clnt_gen.c: Likewise.
2615         * sunrpc/pm_getmaps.c: Likewise.
2616         * sunrpc/clnt_simp.c: Likewise.
2617         * sunrpc/pmap_clnt.c: Likewise.
2618         * sunrpc/svc_run.c: Likewise.
2619         * sunrpc/svc.c: Likewise.
2620         * sunrpc/svc_simple.c: Likewise.
2621         * sunrpc/pm_getport.c: Likewise.
2622         * sunrpc/auth_des.c: Likewise.
2623         * sunrpc/svc_auth.c: Likewise.
2624         * sysdeps/generic/unwind-dw2-fde.c (__register_frame_info_bases,
2625         __register_frame_info_table_bases, __deregister_frame_info_bases):
2626         Add INTDEF.
2627         (__register_frame_info_bases_internal,
2628         __register_frame_info_table_bases_internal,
2629         __deregister_frame_info_bases_internal): Add prototypes.
2630         (__register_frame_info, __register_frame): Use INTUSE in call to
2631         __register_frame_info_bases.
2632         (__register_frame_info_table): Similarly.
2633         (__deregister_frame_info, __deregister_frame): Similarly.
2634         * sysdeps/generic/sendto.c (__sendto): Renamed from sendto, add
2635         sendto as weak alias.
2636         * sysdeps/mach/hurd/sendto.c: Likewise.
2637         * sysdeps/generic/recvfrom.c (__recvfrom): Renamed from recvfrom, add
2638         recvfrom as weak alias.
2639         * sysdeps/mach/hurd/recvfrom.c: Likewise.
2640         * sysdeps/unix/sysv/aix/recvfrom.c: Likewise.
2641         * sysdeps/generic/recvmsg.c (__recvmsg): Renamed from recvmsg, add
2642         recvmsg as weak alias.
2643         * sysdeps/unix/sysv/aix/recvmsg.c: Likewise.
2644         * sysdeps/generic/sendmsg.c (__sendmsg): Renamed from sendmsg, add
2645         sendmsg as weak alias.
2646         * sysdeps/unix/sysv/aix/sendmsg.c: Likewise.
2647         * sysdeps/generic/setsockopt.c (__setsockopt): Renamed from
2648         setsockopt, add setsockopt as weak alias.
2649         * sysdeps/mach/hurd/setsockopt.c: Likewise.
2650         * sysdeps/generic/bind.c (__bind): Renamed from bind, add bind as
2651         weak alias.
2652         * sysdeps/mach/hurd/bind.c: Likewise.
2653         * sysdeps/generic/listen.c (__listen): Renamed from listen, add listen
2654         as weak alias.
2655         * sysdeps/mach/hurd/listen.c: Likewise.
2656         * sysdeps/generic/getsockname.c (__getsockname): Renamed from
2657         getsockname, add getsockname as weak alias.
2658         * sysdeps/mach/hurd/getsockname.c: Likewise.
2659         * sysdeps/unix/sysv/aix/getsockname.c: Likewise.
2660         * sysdeps/mach/hurd/recvmsg.c (__recvmsg): Add weak alias.
2661         * sysdeps/mach/hurd/sendmsg.c (__sendmsg): Add weak alias.
2662         * sysdeps/unix/inet/syscalls.list (__bind, __listen, __recvmsg,
2663         __recvfrom, __sendmsg, __sendto, __setsockopt): Add aliases.
2664         * sysdeps/unix/sysv/linux/alpha/syscalls.list (__recvmsg, __sendmsg):
2665         Add aliases.
2666         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
2667         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
2668         * sysdeps/unix/sysv/linux/hppa/syscalls.list: Likewise.
2669         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
2670         * sysdeps/unix/sysv/linux/recvfrom.S (__recvfrom): Add weak alias.
2671         * sysdeps/unix/sysv/linux/recvmsg.S (__recvmsg): Likewise.
2672         * sysdeps/unix/sysv/linux/sendmsg.S (__sendmsg): Likewise.
2673         * sysdeps/unix/sysv/linux/sendto.S (__sendto): Likewise.
2674         * sysdeps/unix/sysv/linux/setsockopt.S (__setsockopt): Likewise.
2675         * sysdeps/unix/sysv/linux/bind.S (__bind): Likewise.
2676         * sysdeps/unix/sysv/linux/listen.S (__listen): Likewise.
2677         * sysdeps/unix/sysv/linux/getsockname.S (__getsockname): Likewise.
2678
2679 2002-05-10  Jakub Jelinek  <jakub@redhat.com>
2680
2681         * locale/programs/localedef.h (show_archive_content): Add verbose
2682         argument.
2683         * locale/programs/localedef.c (main): Adjust caller.
2684         * locale/programs/locarchive.c (struct nameent, struct dataent): New.
2685         (nameentcmp, dataentcmp): New functions.
2686         (xstrcmp): Remove.
2687         (show_archive_content): Print verbose listing with --list-archive -v.
2688
2689 2002-05-14  Ulrich Drepper  <drepper@redhat.com>
2690
2691         * locale/programs/locarchive.c (open_archive): Take extra argument
2692         readonly.  If true open file with O_RDONLY and don't create the
2693         archive if it doesn't exist.
2694         Adapt all callers.
2695         (close_archive): Don't do anything if fd element is -1.
2696         * locale/programs/localedef.h (open_archive): Adjust prototype.
2697         * locale/programs/locfile.c (write_all_categories): Adjust open_archive
2698         call.
2699
2700         * malloc/malloc.c (__posix_memalign): Correct check for size of
2701         alignment value [PR libc/3444].
2702
2703         * include/stdio.h: Remove references to old stdio implementation.
2704
2705         * libio/Makefile (bug-ungetwc2-ENV): Define.
2706
2707 2002-05-13  Roland McGrath  <roland@frob.com>
2708
2709         * iconv/gconv_charset.h (upstr): Add inline keyword, quiets warning.
2710
2711         * hurd/hurdinit.c (_hurd_init): Use internal name _hurd_new_proc_init.
2712
2713 2002-05-13  Marcus Brinkmann  <marcus@gnu.org>
2714
2715         * hurd/hurdchdir.c (_hurd_change_directory_port_from_name):
2716         Allocate three, not two, more than LEN when appending '/.'.
2717         * sysdeps/mach/hurd/chroot.c (chroot): Likewise.  Don't check
2718         if NAME ends with '/.' if it is shorter than 2 chars.
2719
2720 2002-05-12  Roland McGrath  <roland@frob.com>
2721
2722         * mach/Makefile ($(mach-syscalls:%=$(objpfx)%.S)): Make the generated
2723         files #include <sysdep.h> instead of <mach/machine/syscall_sw.h>.
2724
2725         * hurd/hurdexec.c (_hurd_exec): Reauthenticate ports/dtable used in
2726         file_exec to effect svuid=euid, svgid=egid if that is not a no-op.
2727
2728 2002-05-10  Jakub Jelinek  <jakub@redhat.com>
2729
2730         * sysdeps/ia64/Makefile: Remove extra endif.
2731         * sysdeps/ia64/ia64libgcc.S (__divsf3): Fix typo in symbol version.
2732
2733 2002-05-10  Andreas Schwab  <schwab@suse.de>
2734
2735         * sysdeps/powerpc/fpu/w_sqrt.c: Add sqrtl alias.
2736
2737 2002-05-09  Andreas Jaeger  <aj@suse.de>
2738
2739         * sysdeps/unix/sysv/linux/x86_64/sys/io.h: New.
2740         * sysdeps/unix/sysv/linux/x86_64/Dist: Add it.
2741         * sysdeps/unix/sysv/linux/x86_64/Makefile (sysdep_headers): Add it.
2742
2743         * sysdeps/unix/sysv/linux/ia64/glob.c: Move to ...
2744         * sysdeps/wordsize-64/glob.c: ...here.
2745         * sysdeps/unix/sysv/linux/x86_64/glob.c: Remove.
2746         * sysdeps/unix/sysv/linux/s390/s390-64/glob.c: Remove.
2747         * sysdeps/unix/sysv/linux/sparc/sparc64/glob.c: Remove.
2748
2749 2002-05-08  Roland McGrath  <roland@frob.com>
2750
2751         * hurd/hurdfchdir.c (_hurd_change_directory_port_from_fd): Use
2752         O_NOTRANS flag in "." lookup.
2753
2754 2002-05-05  Ulrich Drepper  <drepper@redhat.com>
2755
2756         * malloc/mtrace.c: Comment out use of _mtrace_file and _mtrace_len.
2757
2758 2002-05-04  Ulrich Drepper  <drepper@redhat.com>
2759
2760         * locale/duplocale.c (__duplocale): Update special members only
2761         when allocation succeeded.
2762
2763 2002-05-03  Roland McGrath  <roland@frob.com>
2764
2765         * shlib-versions (.*-.*-gnu-gnu.*): Remove USE_IN_LIBIO conditionals;
2766         we can only build libc.so.0.3(GLIBC_2.2.6) now.
2767
2768 2002-05-02  Jakub Jelinek  <jakub@redhat.com>
2769
2770         * sysdeps/ia64/Makefile: Add ia64libgcc in csu subdir.
2771         * sysdeps/ia64/Versions (__divtf3, __divdf3, __divsf3, __divdi3,
2772         __moddi3, __udivdi3, __umoddi3, __multi3): Export at GLIBC_2.0.
2773         * sysdeps/ia64/ia64libgcc.S: New file.
2774
2775 2002-05-02  Ulrich Drepper  <drepper@redhat.com>
2776
2777         * sysdeps/generic/dl-tls.c (oom): Implement using _dl_fatal_printf.
2778
2779         * malloc/memusage.c: Distinguish anonymous mmap.
2780
2781 2002-05-01  Roland McGrath  <roland@frob.com>
2782
2783         * sysdeps/mach/hurd/close.c: #undef __close before function defn,
2784         and use INTDEF on it.
2785         * sysdeps/mach/hurd/fcntl.c: Use INTDEF2.
2786
2787         * sysdeps/mach/hurd/dl-sysdep.c (errno): New variable.
2788
2789         * sysdeps/mach/hurd/alpha/static-start.S: New file (unfinished).
2790
2791 2002-05-01  Ulrich Drepper  <drepper@redhat.com>
2792
2793         * malloc/memusage.c: Add support for tracking mmap & friends.
2794         * malloc/memusage.sh: Implement -m/--mmap option.
2795
2796 2002-04-30  Jakub Jelinek  <jakub@redhat.com>
2797
2798         * locale/programs/locarchive.c (create_archive): Add archivefname
2799         argument, create fname from it.
2800         (enlarge_archive): Honour output_prefix.
2801         (open_archive): Likewise.
2802
2803 2002-04-30  Jakub Jelinek  <jakub@redhat.com>
2804
2805         * locale/programs/locarchive.c (add_locales_to_archive): Don't nest
2806         too many stpcpy macros.
2807
2808 2002-04-26  Bruno Haible  <bruno@clisp.org>
2809
2810         * locale/programs/ld-collate.c (collate_read): Cast first argument
2811         for "%.*s" to int.
2812
2813 2002-04-26  Bruno Haible  <bruno@clisp.org>
2814
2815         * include/libintl.h (__ngettext, __dngettext, __dcngettext,
2816         __dcngettext_internal): New declarations.
2817         (__gettext, __dgettext, __dcgettext, __dcgettext_internal): Add
2818         attribute declarations.
2819
2820 2002-04-30  Roland McGrath  <roland@frob.com>
2821
2822         Removed old GNU stdio implementation; GNU libio is now the only option.
2823         * configure.in: Removed --enable-libio option and @stdio@ subst var.
2824         Define USE_IN_LIBIO unconditionally.
2825         * configure: Regenerated.
2826         * Makeconfig (stdio): Set to libio by default.
2827         * config.make.in (stdio): Variable removed.
2828         * sysdeps/unix/sysv/linux/configure.in: Don't set $stdio.
2829         * sysdeps/unix/sysv/linux/configure: Regenerated.
2830         * sysdeps/mach/hurd/configure.in: Don't test $stdio.
2831         * sysdeps/mach/hurd/configure: Regenerated.
2832         * stdio/.cvsignore: File removed.
2833         * stdio/Makefile: File removed.
2834         * stdio/Versions: File removed.
2835         * stdio/__fbufsize.c: File removed.
2836         * stdio/__flbf.c: File removed.
2837         * stdio/__fpending.c: File removed.
2838         * stdio/__fpurge.c: File removed.
2839         * stdio/__freadable.c: File removed.
2840         * stdio/__freading.c: File removed.
2841         * stdio/__fsetlocking.c: File removed.
2842         * stdio/__fwritable.c: File removed.
2843         * stdio/__fwriting.c: File removed.
2844         * stdio/clearerr.c: File removed.
2845         * stdio/fclose.c: File removed.
2846         * stdio/fcloseall.c: File removed.
2847         * stdio/feof.c: File removed.
2848         * stdio/ferror.c: File removed.
2849         * stdio/fflush.c: File removed.
2850         * stdio/fgetc.c: File removed.
2851         * stdio/fgetpos.c: File removed.
2852         * stdio/fgets.c: File removed.
2853         * stdio/fileno.c: File removed.
2854         * stdio/fmemopen.c: File removed.
2855         * stdio/fopen.c: File removed.
2856         * stdio/fopncook.c: File removed.
2857         * stdio/fputc.c: File removed.
2858         * stdio/fputs.c: File removed.
2859         * stdio/fread.c: File removed.
2860         * stdio/freopen.c: File removed.
2861         * stdio/fseek.c: File removed.
2862         * stdio/fsetpos.c: File removed.
2863         * stdio/ftell.c: File removed.
2864         * stdio/fwrite.c: File removed.
2865         * stdio/getc.c: File removed.
2866         * stdio/getchar.c: File removed.
2867         * stdio/getdelim.c: File removed.
2868         * stdio/gets.c: File removed.
2869         * stdio/glue.c: File removed.
2870         * stdio/internals.c: File removed.
2871         * stdio/linewrap.c: File removed.
2872         * stdio/linewrap.h: File removed.
2873         * stdio/memstream.c: File removed.
2874         * stdio/newstream.c: File removed.
2875         * stdio/obstream.c: File removed.
2876         * stdio/putc.c: File removed.
2877         * stdio/putchar.c: File removed.
2878         * stdio/puts.c: File removed.
2879         * stdio/rewind.c: File removed.
2880         * stdio/setbuf.c: File removed.
2881         * stdio/setbuffer.c: File removed.
2882         * stdio/setlinebuf.c: File removed.
2883         * stdio/setvbuf.c: File removed.
2884         * stdio/stdio.h: File removed.
2885         * stdio/ungetc.c: File removed.
2886         * stdio/vasprintf.c: File removed.
2887         * stdio/vscanf.c: File removed.
2888         * stdio/vsnprintf.c: File removed.
2889         * stdio/vsprintf.c: File removed.
2890         * stdio/vsscanf.c: File removed.
2891         * sysdeps/generic/defs.c: File removed.
2892         * sysdeps/generic/fdopen.c: File removed.
2893         * sysdeps/generic/pipestream.c: File removed.
2894         * sysdeps/generic/stdio_init.c: File removed.
2895         * sysdeps/generic/sysd-stdio.c: File removed.
2896         * sysdeps/generic/vdprintf.c: File removed.
2897         * sysdeps/mach/hurd/defs.c: File removed.
2898         * sysdeps/mach/hurd/fdopen.c: File removed.
2899         * sysdeps/mach/hurd/pipestream.c: File removed.
2900         * sysdeps/mach/hurd/stdio_init.c: File removed.
2901         * sysdeps/mach/hurd/sysd-stdio.c: File removed.
2902         * sysdeps/mach/hurd/vdprintf.c: File removed.
2903         * sysdeps/posix/defs.c: File removed.
2904         * sysdeps/posix/fdopen.c: File removed.
2905         * sysdeps/posix/pipestream.c: File removed.
2906         * sysdeps/posix/stdio_init.c: File removed.
2907         * sysdeps/posix/vdprintf.c: File removed.
2908         * sysdeps/unix/pipestream.c: File removed.
2909         * sysdeps/unix/sysv/sysd-stdio.c: File removed.
2910         * sysdeps/unix/sysv/sco3.2.4/pipestream.c: File removed.
2911         * sysdeps/unix/sysv/sysv4/pipestream.c: File removed.
2912
2913 2002-04-29  Roland McGrath  <roland@frob.com>
2914
2915         * include/libc-symbols.h (link_warning): Use `unused' attribute.
2916
2917 2002-04-28  Ulrich Drepper  <drepper@redhat.com>
2918
2919         * sysdeps/generic/tls.h: Describe what must be defined.
2920
2921         * sysdeps/generic/glob.c (glob): Don't pass GLOB_NOMAGIC flag to
2922         glob_in_dir [PR libc/3385].
2923         * posix/globtest.sh: Add test case.
2924
2925         * intl/loadmsgcat.c [!_LIBC] (_nl_init_domain_conv): Don't add
2926         //TRANSLIT twice.
2927
2928 2002-04-27  Ulrich Drepper  <drepper@redhat.com>
2929
2930         * sysdeps/unix/sysv/linux/ia64/fxstat.c: Fix a few issues with the
2931         _internal symbol handling.
2932         * sysdeps/unix/sysv/linux/ia64/lxstat.c: Likewise.
2933
2934 2002-04-26  Ulrich Drepper  <drepper@redhat.com>
2935
2936         * sysdeps/ia64/fpu/s_finite.S: Define _internal aliases.
2937         * sysdeps/unix/sysv/linux/ia64/fork.S: Likewise.
2938
2939 2002-04-26  Isamu Hasegawa  <isamu@yamato.ibm.com>
2940
2941         * posix/regcomp.c (re_compile_fastmap_iter): Fix fastmap in case of
2942         not _LIBC and RE_ENABLE_I18N.
2943         (build_range_exp): Implement for not _LIBC.
2944         (build_collating_symbol): Likewise.
2945         (parse_bracket_exp): Unify redundant error handlings.
2946         Don't erase mbcset for non matching list in multibyte envs.
2947         (build_word_op): Add '_' to matching list for \w operator.
2948         * posix/regex_internal.c (re_string_construct): Invoke
2949         build_upper_buffer in case of not RE_ENABLE_I18N.
2950         (re_string_reconstruct): Don't touch cur_state in case of not
2951         RE_ENABLE_I18N.
2952         * posix/regex_internal.h (attribute_hidden): New macro in case of
2953         not _LIBC.
2954         (re_charset_t): Define range_starts/ends in case of not _LIBC.
2955         * posix/regexec.c (sift_states_iter_mb): Hide in case of not
2956         RE_ENABLE_I18N.
2957         (transit_state_mb): Likewise.
2958         (check_node_accept_bytes): Implement the code evaluating range
2959         expression in case of not _LIBC.
2960         (find_collation_sequence_value): Hide in case of not _LIBC.
2961
2962 2002-04-26  Jakub Jelinek  <jakub@redhat.com>
2963
2964         * sysdeps/unix/sysv/linux/sparc/sparc32/semctl.c: Copied from
2965         i386/semctl.c.
2966         (__old_semctl, __new_semctl): Only use va_arg if the argument will
2967         be used.
2968
2969 2002-04-26  Ulrich Drepper  <drepper@redhat.com>
2970
2971         * sysdeps/ia64/fpu/s_isinf.S: Fix definition of _internal names.
2972
2973         * sysdeps/ia64/strncpy.S: Fix recovery code.
2974         Patch by David Mosberger <davidm@hpl.hp.com>.
2975
2976 2002-04-24  Ulrich Drepper  <drepper@redhat.com>
2977
2978         * sysdeps/unix/sysv/linux/ia64/Versions [libc]: Add getunwind for
2979         GLIBC_2.2.6.
2980
2981 2002-04-14  Bruno Haible  <bruno@clisp.org>
2982
2983         * posix/regex.c (re_max_failures): Add back symbol for binary
2984         compatibility.
2985
2986 2002-04-22  Isamu Hasegawa  <isamu@yamato.ibm.com>
2987
2988         * posix/regcomp.c (re_compile_internal): Adapt it to new interface
2989         of buffer building functions.
2990         * posix/regex_internal.c (re_string_allocate): New function.
2991         (re_string_realloc_buffers): New function.
2992         (re_string_skip_chars): New function.
2993         (re_string_reconstruct): New function.
2994         (re_string_construct): Adapt it to new interface of buffer building
2995         functions.
2996         (re_string_construct_common): Likewise.
2997         (build_wcs_buffer): Likewise.
2998         (build_wcs_upper_buffer): Likewise.
2999         (build_upper_buffer): Likewise.
3000         (re_string_translate_buffer): Likewise.
3001         (re_string_context_at): Adapt it to variable length buffers.
3002         * posix/regex_internal.h (re_string_t): Add new fields to handle
3003         variable length buffers.
3004         (re_match_context_t): Likewise.
3005         * posix/regexec.c (re_search_internal): Adapt it to new interface
3006         of re_string_t and re_match_context_t.
3007         (acquire_init_state_context): Likewise.
3008         (check_matching): Likewise.
3009         (check_halt_state_context): Likewise.
3010         (proceed_next_node): Likewise.
3011         (set_regs): Likewise.
3012         (sift_states_backward): Likewise.
3013         (clean_state_log_if_need): Likewise.
3014         (sift_states_iter_mb): Likewise.
3015         (sift_states_iter_bkref): Likewise.
3016         (add_epsilon_backreference): Likewise.
3017         (transit_state): Likewise.
3018         (transit_state_sb): Likewise.
3019         (transit_state_mb): Likewise.
3020         (transit_state_bkref): Likewise.
3021         (transit_state_bkref_loop): Likewise.
3022         (check_node_accept): Likewise.
3023         (match_ctx_init): Likewise.
3024         (extend_buffers): New function.
3025
3026 2002-04-21  Bruno Haible  <bruno@clisp.org>
3027
3028         * iconvdata/tst-table.sh: For the second check, use the truncated
3029         GB18030 charmap table, like for the first check.
3030
3031 2002-04-24  Ulrich Drepper  <drepper@redhat.com>
3032
3033         * elf/dl-load.c (open_verify): Correct __lseek parameters.
3034         Patch by Simon Hildrew <simon@hildrew.net> [PR libc/3354].
3035
3036 2002-04-23  H.J. Lu  <hjl@gnu.org>
3037
3038         * include/math.h (isfinite): Fix a typo.
3039
3040 2002-04-24  Ulrich Drepper  <drepper@redhat.com>
3041
3042         * libio/bug-ungetwc2.c (test_locale): Use the de_DE.UTF-8 locale
3043         which is created by the test suite.
3044
3045 2002-04-20  Bruno Haible  <bruno@clisp.org>
3046
3047         * iconvdata/iso-2002-kr.c (MAX_NEEDED_FROM): Set to 4.
3048         (BODY for FROM_LOOP): Fix comparisons between inptr and inend.
3049
3050 2002-04-20  Bruno Haible  <bruno@clisp.org>
3051
3052         * iconvdata/johab.c (BODY for FROM_LOOP): Change type of i, m, f,
3053         to avoid gcc warning.
3054
3055 2002-04-20  Bruno Haible  <bruno@clisp.org>
3056
3057         * iconvdata/iso-2022-jp.c (EMIT_SHIFT_TO_INIT): Fix modification mask
3058         of data->__statep->__count.
3059
3060 2002-04-20  Bruno Haible  <bruno@clisp.org>
3061
3062         * iconvdata/euc-jisx0213.c (BODY for TO_LOOP): Really ignore Unicode
3063         tag characters.
3064         * iconvdata/shift_jisx0213.c (BODY for TO_LOOP): Likewise.
3065
3066 2002-04-24  Roland McGrath  <roland@frob.com>
3067
3068         * sysdeps/mach/alpha/syscall.S: Don't use .frame, ENTRY will have it;
3069         use END macro instead of our own .end directive.
3070         Use `callsys' insn mnemonic instead of `call_pal'.
3071
3072         * sysdeps/mach/alpha/sysdep.h (ENTRY): New macro.
3073
3074         * sysdeps/alpha/dl-machine.h (ELF_MACHINE_USER_ADDRESS_MASK): New
3075         macro; we need this for Hurd.
3076
3077         Log entry was missing for 2002/03/24 commit of rev 1.8,
3078         goes with 2002-03-17 changes.
3079         * sysdeps/mach/hurd/i386/Makefile [$(subdir) = misc]
3080         (sysdep_routines): Append ioperm here.
3081         (sysdep_headers): Append sys/io.h here.
3082
3083 2002-04-23  Roland McGrath  <roland@frob.com>
3084
3085         * sysdeps/mach/hurd/send.c: int -> size_t for WROTE.
3086         * sysdeps/mach/hurd/sendto.c: Likewise.
3087         * hurd/hurdioctl.c (siocgifconf): int -> size_t for DATA_LEN.
3088         * sysdeps/mach/hurd/wait4.c (__wait4): natural_t -> int for SIGCODE.
3089         * sysdeps/mach/hurd/getpriority.c: unsigned int -> size_t for PISIZE.
3090
3091 2002-04-22  Roland McGrath  <roland@frob.com>
3092
3093         * sysdeps/mach/hurd/i386/ioperm.c (ioperm): Translate MIG_BAD_ID
3094         failure from i386_io_perm_* RPCs to ENOSYS.
3095
3096 2002-04-22  Andreas Jaeger  <aj@suse.de>
3097
3098         * sysdeps/unix/sysv/linux/x86_64/ldconfig.h: New file.
3099
3100         * sysdeps/unix/sysv/linux/x86_64/dl-cache.h: New file.
3101
3102         * sysdeps/unix/sysv/linux/x86_64/vfork.S: Use %rdi as temp
3103         register instead of destroying %rbx.
3104
3105 2002-04-21  Ulrich Drepper  <drepper@redhat.com>
3106
3107         * string/string.h: Declare strerror_r also for XPG6.
3108
3109 2002-04-19  Roland McGrath  <roland@frob.com>
3110
3111         * sysdeps/mach/hurd/tmpfile.c: Create a file descriptor and use fdopen.
3112
3113 2002-04-20  Ulrich Drepper  <drepper@redhat.com>
3114
3115         * Makefile: Add handling of xtests and xcheck targets.
3116         * MakeTAGS: Likewise.
3117         * Makeconfig: Likewise.
3118         * Makerules: Likewise.
3119         * Rules: Likewise.
3120         * manual/Makefile: Likewise.
3121         * sunrpc/Makefile (xtests): Add thrsvc if thread library available.
3122         * sunrpc/thrsvc.c: New file.  By Zack Weinberg.
3123
3124 2002-04-11  Zack Weinberg  <zack@codesourcery.com>
3125
3126         * include/rpc/rpc.h (struct rpc_thread_variables): Remove
3127         authnone_private_s.
3128         * sunrpc/auth_none.c: Include bits/libc-lock.h.
3129         Delete #ifdef _RPC_THREAD_SAFE_ block.
3130         (authnone_private): Make a struct, not a pointer to struct.
3131         (authnone_private_guard): New once-control variable.
3132         (authnone_create_once): New function, split out of
3133         authnone_create.  No need to allocate memory.
3134         (authnone_create): Just call authnone_create_once via
3135         __libc_once, then return &authnone_private->no_client.
3136         (authnone_marshal): Access private data via CLIENT argument,
3137         not authnone_private pointer.
3138         Fix typo (MAX_MARSHEL_SIZE -> MAX_MARSHAL_SIZE).
3139         * sunrpc/rpc_thread.c (__rpc_thread_destroy): No need to free
3140         authnone_private_s.
3141
3142 2002-04-12  H.J. Lu  <hjl@gnu.org>
3143
3144         * sunrpc/clnt_raw.c (clntraw_create): Properly set xdrs and client.
3145
3146 2002-04-18  Bruno Haible  <bruno@clisp.org>
3147
3148         * iconvdata/euc-jisx0213.c (EMIT_SHIFT_TO_INIT, BODY for
3149         FROM_DIRECTION): Make the FROM direction stateless.
3150         * iconvdata/shift_jisx0213.c (EMIT_SHIFT_TO_INIT, BODY for
3151         FROM_DIRECTION): Likewise.
3152
3153 2002-04-15  Bruno Haible  <bruno@clisp.org>
3154
3155         * iconvdata/JISX0213.TXT: New file.
3156         * iconvdata/jisx0213.h: New file.
3157         * iconvdata/jisx0213.c: New file.
3158         * iconvdata/euc-jisx0213.c: New file.
3159         * iconvdata/shift_jisx0213.c: New file.
3160         * iconvdata/gconv-modules (EUC-JISX0213, SHIFT_JISX0213): New modules.
3161         * iconvdata/EUC-JISX0213.precomposed: New file.
3162         * iconvdata/SHIFT_JISX0213.precomposed: New file.
3163         * iconvdata/SHIFT_JISX0213.irreversible: New file.
3164         * iconvdata/tst-table-to.c (main): Make it work for encodings for
3165         which the "to" direction is stateful.
3166         * iconvdata/tst-tables.sh: Add EUC-JISX0213, SHIFT_JISX0213.
3167         * iconvdata/Makefile (modules): Add libJISX0213, EUC-JISX0213,
3168         SHIFT_JISX0213.
3169         (libJISX0213-routines): New variable.
3170         (LDFLAGS-EUC-JISX0213.so, LDFLAGS-SHIFT_JISX0213.so): New variables.
3171         (EUC-JISX0213.so, SHIFT_JISX0213.so): Depend on libJISX0213.so.
3172         (LDFLAGS-libJISX0213.so): New variable.
3173         (distribute): Add JISX0213.TXT, EUC-JISX0213.precomposed,
3174         SHIFT_JISX0213.precomposed, SHIFT_JISX0213.irreversible,
3175         jisx0213.c, jisx0213.h, euc-jisx0213.c, shift_jisx0213.c.
3176
3177 2002-04-15  Bruno Haible  <bruno@clisp.org>
3178
3179         * iconvdata/big5hkscs.c (big5hkscs_to_ucs): Change element type to
3180         uint32_t.  Update to Unicode 3.2.
3181         (from_ucs4, from_ucs4_idx): Update to Unicode 3.2.
3182         (BODY for TO_LOOP): Handle the ASCII range specially.
3183         * iconvdata/BIG5HKSCS.irreversible: Add one more entry.
3184         * iconvdata/testdata/BIG5HKSCS: Remove a character.
3185         * iconvdata/testdata/BIG5HKSCS..UTF-8: Regenerated.
3186
3187 2002-04-15  Bruno Haible  <bruno@clisp.org>
3188
3189         * iconvdata/gb18030.c (__twobyte_to_ucs, __fourbyte_to_ucs,
3190         __ucs_to_gb18030_tab1, __ucs_to_gb18030_tab2): Update to Unicode 3.2.
3191
3192 2002-04-15  Bruno Haible  <bruno@clisp.org>
3193
3194         * iconvdata/cns11643.h (__cns11643_from_ucs4p2c_tab): New declaration.
3195         (ucs4_to_cns11643): Update.
3196         * iconvdata/cns11643.c: Update to Unicode 3.2.
3197         (__cns11643l2*_to_ucs4_tab, __cns11643_from_ucs4p0_tab,
3198         __cns11643_from_ucs4p2_tab): Regenerated.
3199         (__cns11643_from_ucs4p2c_tab): New array.
3200         * iconvdata/cvs11643l1.c: Update comments.
3201         * iconvdata/EUC-TW.irreversible: Remove two entries.
3202
3203 2002-04-15  Bruno Haible  <bruno@clisp.org>
3204
3205         * locale/C-translit.h.in: Update to Unicode 3.2.
3206         Add <U2047>, <U205F>..<U2063>, <U2145>..<U2149>, <U2A74>..<U2A76>,
3207         <U30A0>, <U3251>..<U325F>, <U32B1>..<U32BF>, <UFE00>..<UFE0F>.
3208
3209 2002-04-15  Bruno Haible  <bruno@clisp.org>
3210
3211         * iconvdata/sjis.c (halfkana_to_ucs4): Remove array.
3212         (BODY for FROM_LOOP): Optimize the JISX0201:GR to Unicode conversion.
3213
3214 2002-04-15  Bruno Haible  <bruno@clisp.org>
3215
3216         * iconvdata/euc-jp.c (BODY for FROM_LOOP): When encountering an
3217         invalid input (e.g. a byte > 0x80 followed by a byte < 0x80), skip
3218         always one byte, not 0 bytes in some cases and 2 bytes in others.
3219
3220         * iconvdata/tst-table-from.c (main): Correct the usage message.
3221
3222 2002-04-19  Isamu Hasegawa  <isamu@yamato.ibm.com>
3223
3224         * posix/regcomp.c (parse_expression): Fix incorrect error code.
3225         (parse_dup_op): Fix error handling like "a{}".
3226         (parse_bracket_exp): Add error handling.
3227         (fetch_number): Add error handling for "a{<very_large_number>}".
3228
3229 2002-04-19  Isamu Hasegawa  <isamu@yamato.ibm.com>
3230
3231         * posix/regcomp.c (parse_bracket_symbol): Add error handling
3232         in case that the symbol name is too long.
3233         (build_charclass): Handle [:lower:]/[:uppper:] correctly
3234         in case of REG_ICASE.
3235
3236 2002-04-19  Andreas Jaeger  <aj@suse.de>
3237
3238         * math/libm-test.inc: Fix comment, suggested by Hartvig Ekner
3239         <hartvige@mips.com>.
3240
3241 2002-04-15  H.J. Lu  <hjl@gnu.org>
3242
3243         * include/math.h (__finitel_internal): Declare only if
3244         __NO_LONG_DOUBLE_MATH is not defined.
3245         (__isinfl_internal): Likewise.
3246         (__isnanl_internal): Likewise.
3247
3248         * sysdeps/unix/sysv/linux/alpha/syscalls.list: Add __connect_internal.
3249         * sysdeps/unix/sysv/linux/hppa/syscalls.list: Likewise.
3250         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
3251         * sysdeps/unix/sysv/linux/mips/syscalls.list: Likewise.
3252         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
3253         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
3254         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
3255
3256         * sysdeps/unix/sysv/linux/syscalls.list: Add __chown_internal and
3257         __fcntl_internal.
3258
3259         * sysdeps/unix/sysv/linux/fxstat.c (__fxstat64_internal): Added.
3260         * sysdeps/unix/sysv/linux/lxstat.c (__lxstat64_internal): Added.
3261
3262 2002-04-15  Bruno Haible  <bruno@clisp.org>
3263
3264         * iconvdata/armscii-8.c (BODY for FROM_LOOP): Fix array access.
3265         (BODY for TO_LOOP): Likewise.
3266         * iconvdata/tcvn5712-1.c (from_ucs4): Map U+0309 to 0xB1.
3267         * iconvdata/tst-table.sh: Add support for encodings which contain
3268         precomposed Unicode characters, known to the iconv converter in both
3269         directions but not listed in the charmap.
3270         * iconvdata/IBM856.irreversible: New file.
3271         * iconvdata/IBM922.irreversible: New file.
3272         * iconvdata/IBM1132.irreversible: New file.
3273         * iconvdata/IBM1133.irreversible: New file.
3274         * iconvdata/IBM1160.irreversible: New file.
3275         * iconvdata/IBM1161.irreversible: New file.
3276         * iconvdata/IBM1163.irreversible: New file.
3277         * iconvdata/IBM1164.irreversible: New file.
3278         * iconvdata/ARMSCII-8.irreversible: New file.
3279         * iconvdata/TCVN5712-1.precomposed: New file.
3280         * iconvdata/tst-tables.sh: Add IBM856, IBM922, IBM1124, IBM1129,
3281         IBM1160, IBM1161, IBM1132, IBM1133, IBM1162, IBM1163, IBM1164,
3282         ARMSCII-8, TCVN5712-1.
3283         * iconvdata/Makefile (distribute): Add IBM856.irreversible,
3284         IBM922.irreversible, IBM1132.irreversible, IBM1133.irreversible,
3285         IBM1160.irreversible, IBM1161.irreversible, IBM1163.irreversible,
3286         IBM1164.irreversible, ARMSCII-8.irreversible, TCVN5712-1.precomposed.
3287
3288 2002-04-17  Jakub Jelinek  <jakub@redhat.com>
3289
3290         * time/tst-mktime.c: Include <stdlib.h>.  Use %d, not %ld format
3291         for EVENING69.  Include offsets in TZ environment variable.
3292
3293 2002-04-18  Ulrich Drepper  <drepper@redhat.com>
3294
3295         * iconv/skeleton.c (RESET_INPUT_BUFFER): Replace ifs with #ifs to
3296         avoid compiler warnings.
3297
3298         * locale/programs/localedef.c (main): Always call
3299         construct_output_path.
3300
3301         * iconv/Makefile (CFLAGS-simple-hash.c): Define to find hashval.h.
3302
3303         * locale/programs/locfile.c (to_archive): New variable.  To collect
3304         data which has to be added to the locale archive.
3305         (write_all_categories): Take new third parameter with locale name.
3306         Unless no_archive flag set add new locale data to the archive
3307         (write_locale_data): Unless no-archive flag set store generated data
3308         in to_archive data structure instead of generation output file.
3309         Add new parameter with locale category index.
3310         * locale/programs/locfile.h: Add new parameters in declaractions of
3311         write_all_categories and write_locale_data.
3312         * locale/programs/localedef.c: Recognize --no-archive, --list-archive,
3313         --add-to-archive, and --delete-from-archive options.  Pass extra
3314         parameter to write_all_categories.
3315         * locale/programs/localedef.h: Add prototypes for functions in
3316         locarchive.c.
3317         * locale/locarchive.h: New file.
3318         * locale/programs/locarchive.c: New file.
3319         * locale/Makefile (distribute): Add programs/locarchive.c and
3320         locarchive.h.
3321         (localedef-modules): Add md5 and locarchive.
3322         Add vpath to crypt subdir for md5.c.
3323
3324         * locale/programs/ld-address.c: Pass locale category ID as new second
3325         parameter to write_locale_data.
3326         * locale/programs/ld-collate.c: Likewise.
3327         * locale/programs/ld-ctype.c: Likewise.
3328         * locale/programs/ld-identification.c: Likewise.
3329         * locale/programs/ld-measurement.c: Likewise.
3330         * locale/programs/ld-messages.c: Likewise.
3331         * locale/programs/ld-monetary.c: Likewise.
3332         * locale/programs/ld-name.c: Likewise.
3333         * locale/programs/ld-numeric.c: Likewise.
3334         * locale/programs/ld-paper.c: Likewise.
3335         * locale/programs/ld-telephone.c: Likewise.
3336         * locale/programs/ld-time.c: Likewise.
3337
3338         * locale/simple-hash.c: Move compute_hashval function from here...
3339         * locale/hashval.h: ...to here.  New file.
3340         * locale/simple-hash.h: Add prototype for compute_hashval.
3341
3342         * include/libintl.h: Minor cleanups.
3343
3344 2002-04-16  Ulrich Drepper  <drepper@redhat.com>
3345
3346         * posix/regcomp.c (gettext): Use INTUSE for _libc_intl_domainname.
3347
3348 2002-04-15  Ulrich Drepper  <drepper@redhat.com>
3349
3350         * include/sys/stat.h: Fix typo.  Patch by HJ Lu.
3351
3352 2002-04-14  Bruno Haible  <bruno@clisp.org>
3353
3354         * locale/programs/charmap.c (charmap_read): Don't access result if
3355         result == NULL.
3356
3357 2002-02-17  Andreas Schwab  <schwab@suse.de>
3358
3359         * elf/reldep7.c: New file.
3360         * elf/reldep7mod1.c: New file.
3361         * elf/reldep7mod2.c: New file.
3362         * elf/Makefile: Add rules to build and run reldep7.
3363
3364 2002-04-14  Jakub Jelinek  <jakub@redhat.com>
3365
3366         * elf/dl-lookup.c (_dl_lookup_symbol): Move add_dependency call to
3367         the end of the function.  Pass original flags to recursive call if
3368         add_dependency failed.
3369         (_dl_lookup_versioned_symbol): Likewise.
3370
3371 2002-04-13  Jakub Jelinek  <jakub@redhat.com>
3372
3373         * time/mktime.c (__mktime_internal): If year is 69, don't bail out
3374         early, but check whether it overflowed afterwards.
3375         * time/tst-mktime.c (main): Add new tests.
3376
3377 2002-04-14  Ulrich Drepper  <drepper@redhat.com>
3378
3379         * debug/xtrace.sh: Fix program name in help message.
3380         Patch by Roger Luethi <rl@hellgate.ch>.
3381
3382         * include/sys/stat.h: Add prototypes for __lxstat_internal and
3383         __lxstat64_internal.  Add macros __lxstat and __lxstat64 if not
3384         NOT_IN_libc.
3385         * sysdeps/generic/lxstat.c: Use INTDEF for __lxstat.
3386         * sysdeps/mach/hurd/lxstat.c: Likewise.
3387         * sysdeps/unix/common/lxstat.c: Likewise.
3388         * sysdeps/unix/sysv/aix/lxstat.c: Likewise.
3389         * sysdeps/unix/sysv/linux/lxstat.c: Likewise.
3390         * sysdeps/unix/sysv/linux/i386/lxstat.c: Likewise.
3391         * sysdeps/unix/sysv/linux/ia64/lxstat.c: Likewise.
3392         * sysdeps/unix/sysv/linux/s390/s390-64/lxstat.c: Likewise.
3393         * sysdeps/generic/lxstat64.c: Use INTDEF for __lxstat64.
3394         * sysdeps/mach/hurd/lxstat64.c: Likewise.
3395         * sysdeps/unix/sysv/aix/lxstat64.c: Likewise.
3396         * sysdeps/unix/sysv/linux/lxstat64.c: Likewise.
3397
3398         * include/wchar.h: Declare __mbrtowc_internal and __mbrlen_internal
3399         prototypes.  Add __mbrlen and __mbrtowc macros.
3400         * wcsmbs/mbrlen.c: Use INTDEF for __mbrlen.
3401         * wcsmbs/mbrtowc.c: Use INTDEF for __mbrtowc.
3402
3403         * include/unistd.h: Add prototype for __write_internal and add
3404         __libc_write macro is SHARED.
3405         * sysdeps/generic/write.c: Use INTDEF for __write.
3406         * sysdeps/mach/hurd/write.c: Likewise.
3407         * sysdeps/unix/sysv/aix/write.c: Likewise.
3408         * sysdeps/unix/syscalls.list: Add __libc_write alias.
3409
3410         * assert/assert.c: Replace STR_N_SIZE with something usable in
3411         macro arguments.
3412         * assert/assert-perr.c: Likewise.
3413
3414         * include/sys/socket.h: Declare __libc_sa_len_internal and define
3415         SA_LEN macro to use it if not NOT_IN_libc.
3416         * sysdeps/unix/sysv/linux/sa_len.c: Use INTDEF for __libc_sa_len.
3417
3418         * include/fcntl.h: Declare __open_internal and define __open and
3419         __libc_open macros if not NOT_IN_libc.
3420         * sysdeps/generic/open.c: Use INTDEF for __open.
3421         * sysdeps/mach/hurd/open.c: Likewise.
3422         * sysdeps/unix/sysv/aix/open.c: Likewise.
3423         * sysdeps/unix/syscalls.list: Add __open_internal alias.
3424
3425         * sysdeps/generic/check_fds.c: Make sure newly opened file descriptor
3426         has correct number.
3427
3428         * include/fcntl.h: Define __libc_fcntl macro if not NOT_IN_libc.
3429         * sysdeps/mach/hurd/fcntl.c: Undefine __libc_fcntl as well.
3430         * sysdeps/unix/sysv/aix/fcntl.c: Likewise.
3431         * sysdeps/unix/sysv/linux/i386/fcntl.c: Likewise.
3432
3433         * include/wctype.h: Declare __iswalpha_l_internal,
3434         __iswdigit_l_internal, __iswspace_l_internal,
3435         __iswxdigit_l_internal, and __iswctype_internal.  Define
3436         __iswalpha_l, __iswctype, __iswdigit_l, __iswspace_l, and
3437         __iswxdigit_l macros if not NOT_IN_libc.
3438         * wctype/iswctype.c: Use INTDEF for __iswctype.
3439         * wctype/wcfuncs_l.c: Use INTDEF for all __iswXXX_l.
3440
3441         * include/math.h: Declare __isinf_internal, __isinfl_internal,
3442         __isnan_internal, and __isnanl_internal.
3443         * stdio-common/printf_fp.c: Use INTUSE for calls to __isinf, __isinfl,
3444         __isnan, and __isnanl.
3445         * stdio-common/printf_size.c: Likewise.
3446         * sysdeps/generic/printf_fphex.c: Likewise.
3447         * sysdeps/i386/fpu/s_isinfl.c: Also define _internal alias.
3448         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
3449         * sysdeps/ia64/fpu/s_isinf.S: Likewise.
3450         * sysdeps/ia64/fpu/s_isnan.S: Likewise.
3451         * sysdeps/ieee754/dbl-64/s_isinf.c: Likewise.
3452         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
3453         * sysdeps/ieee754/flt-32/s_isinff.c: Likewise.
3454         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
3455         * sysdeps/ieee754/ldbl-128/s_isinfl.c: Likewise.
3456         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
3457         * sysdeps/ieee754/ldbl-96/s_isinfl.c: Likewise.
3458         * sysdeps/m68k/s_isinfl.c: Likewise.
3459         * sysdeps/m68k/fpu/s_isinf.c: Likewise.
3460         * sysdeps/powerpc/fpu/s_isnan.c: Likewise.
3461
3462         * include/sys/time.h: Declare __gettimeofday_internal and define
3463         __gettimeofday macro if not NOT_IN_libc.
3464         * sysdeps/generic/gettimeofday.c: Use INTEDEF for __gettimeofday.
3465         * sysdeps/mach/gettimeofday.c: Likewise.
3466         * sysdeps/posix/gettimeofday.c: Likewise.
3467         * sysdeps/unix/sysv/aix/gettimeofday.c: Likewise.
3468         * sysdeps/unix/common/syscalls.list: Define __gettimeofday alias.
3469         * sysdeps/unix/sysv/linux/alpha/gettimeofday.S: Likewise.
3470         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S: Likewise.