Update.
[glibc.git] / ChangeLog
blob82d2b82cb705e586f9ce4f0231abe19e8fa81d5a
1 2002-08-25  Andreas Schwab  <schwab@suse.de>
3         * elf/dl-reloc.c (_dl_reloc_bad_type): Nul-terminate message.
5 2002-08-25  Roland McGrath  <roland@redhat.com>
7         * sysdeps/generic/utmp_file.c (UNLOCK_FILE): Clear alarm before
8         resetting handler, to avoid the possibility of a spurious SIGALRM
9         delivered to the user's handler.
10         Reported by Amit D. Chaudhary <amitc@brocade.com>,
12         * misc/Makefile (CFLAGS-init-misc.c): Variable removed.  It served to
13         set -fkeep-inline-functions, which is not needed for the current file.
15         * sysdeps/generic/ldsodefs.h: Add attribute_hidden to *_internal decls.
16         (_dl_setup_hash): Add attribute_hidden.
17         (_dl_sysdep_start, _dl_sysdep_start_cleanup): Likewise.
18         (_dl_sysdep_read_whole_file, _dl_dprintf): Likewise.
19         (_dl_new_object, _dl_map_object_deps): Likewise.
20         (_dl_map_object_deps_internal): Remove decl.
21         * elf/rtld.c (__mempcpy, _exit): Redeclare locally as hidden.
23         * sysdeps/i386/dl-machine.h [PI_STATIC_AND_HIDDEN
24         && HAVE_VISIBILITY_ATTRIBUTE && HAVE_HIDDEN
25         && !HAVE_BROKEN_VISIBILITY_ATTRIBUTE]
26         (elf_machine_dynamic, elf_machine_load_address): Rewritten without asm,
27         instead relying on the compiler to produce only GOTOFF variable refs.
29 2002-08-25  Ulrich Drepper  <drepper@redhat.com>
31         * elf/dl-load.c: Fix typo in comment.  Add a few more __builtin_expect.
33         * sysdeps/generic/dl-cache.h (_dl_cache_libcmp): Define as static
34         inline to avoid defining it in every file which includes this header.
36         * elf/rtld.c: Also test for HAVE_VISIBILITY_ATTRIBUTE before
37         defining DONT_USE_BOOTSTRAP_MAP.
39         * libio/tst-freopen.c (main): Use correct formats for __LINE__.
40         * libio/tst-mmap-setvbuf.c (main): Likewise.
41         * libio/tst-widetext.c (main): Likewise.
43         * libio/tst-mmap-eofsync.c (do_test): Use correct format in error
44         message.
45         * libio/tst-mmap-fflushsync.c (do_test): Likewise.
46         * libio/tst-mmap2-eofsync.c (do_test): Likewise.
48         * sysdeps/i386/elf/configure.in: Unconditionally define
49         PI_STATIC_AND_HIDDEN.
50         * elf/rtld.c (DONT_USE_BOOTSTRAP_MAP): Define only if
51         PI_STATIC_AND_HIDDEN is defined as well.
52         * config.h.in: Add PI_STATIC_AND_HIDDEN entry.
54 2002-08-24  Ulrich Drepper  <drepper@redhat.com>
56         * sysdeps/ia64/bzero.S: Define __bzero as well.
58         * locale/programs/charmap.c (charmap_new_char): Don't use
59         ULONG_MAX as maximum UCS4 value.
61         * sysdeps/unix/sysv/linux/ia64/sys/user.h: New file.
63         * sysdeps/generic/strtol.c: We don't need the isascii test in glibc.
65         * malloc/hooks.c (public_sET_STATe): use size_t as type for i.
66         * malloc/malloc.c (mALLINFo): Likewise.
68         * libio/wstrops.c (_IO_wstr_pbackfail): Use WEOF in comparison.
70         * libio/wfileops.c (_IO_wfile_overflow): Use EOF not WEOF when
71         examining result of _IO_do_flush call.
73         * stdio-common/vfprintf.c (vfprintf): Use correct type in va_arg.
74         Use prec not spec when sizing buffers.
76         * catgets/open_catalog.c (__open_catalog): Add casts to avoid warnings.
77         * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
78         * locale/loadlocale.c (_nl_intern_locale_data): Likewise.
79         * stdio-common/vfscanf.c (inchar): Likewise.
80         * misc/efgcvt_r.c (fcvt_r): Likewise.
81         * elf/dl-misc.c (_dl_debug_vdprintf): Likewise.
82         * elf/readlib.c (process_file): Likewise.
83         * elf/sprof.c (load_profdata): Likewise.
84         * sysdeps/ia64/hp-timing.h (HP_TIMING_PRINT): Likewise.
85         * locale/programs/linereader.c (get_toplvl_escape): Likewise.
86         * locale/programs/charmap.c (charmap_read): Likewise.
87         * libio/fileops.c: Likewise.
88         * libio/fmemopen.c: Likewise.
89         * stdlib/strtod.c: Likewise.
90         * elf/dl-load.c: Likewise.
91         * iconv/iconvconfig.c: Likewise.
92         * iconv/iconv_prog.c (process_block): Likewise.
93         * elf/rtld.c (dl_main): Likewise.
95         * sysdeps/unix/sysv/linux/ia64/Makefile: Define _ASM_IA64_CURRENT_H
96         macro to calm down the compiler.
98         * iconv/gconv_cache.c (__gconv_load_cache): Add cast to avoid warning.
100         * sysdeps/ia64/elf/initfini.c: Don't use newlines embedded in string.
102         * sysdeps/unix/sysv/linux/i386/sysdep.S: Update comment regarding
103         placement of errno definition.
104         * sysdeps/unix/sysv/linux/m68k/sysdep.S: Likewise.
105         * sysdeps/unix/sysv/linux/mips/sysdep.S: Likewise.
106         * sysdeps/unix/sysv/linux/x86_64/sysdep.S: Likewise.
107         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S: Likewise.
108         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S: Likewise.
110         * resolv/nss_dns/dns-host.c (MAXPACKET): Increase minimum value
111         from 1024 to 65536, to avoid buffer overrun.
113 2002-08-16  Paul Eggert  <eggert@twinsun.com>
115         * resolv/gethnamaddr.c (MAXPACKET): Increase minimum value
116         from 1024 to 65536, to avoid buffer overrun.
117         * resolv/res_query.c (MAXPACKET): Likewise.
119 2002-08-24  Andreas Jaeger  <aj@suse.de>
121         * sysdeps/unix/sysv/linux/i386/Versions: Remove *xattr syscalls.
123 2002-08-23  Ulrich Drepper  <drepper@redhat.com>
125         * sysdeps/ieee754/dbl-64/e_pow.c (log1): Define and initialize
126         two52 locally.
127         (log2): Likewise.
128         * sysdeps/ieee754/dbl-64/upow.h: Remove definition of two52.
129         Patch by Simon Gee <simong@agile.tv>.
131         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs_conf):
132         Prefer reading /proc/stat since it is more uniform across
133         architectures.
135         * manual/texinfo.tex: Update to latest official version.
137         * sysvipc/sys/shm.h: Remove SHMLBA definition.
138         * sysdeps/generic/bits/shm.h: Define SHMLBA here.
139         * sysdeps/gnu/bits/shm.h: Likewise.
140         * sysdeps/unix/sysv/linux/alpha/bits/shm.h: Likewise.
141         * sysdeps/unix/sysv/linux/bits/shm.h: Likewise.
142         * sysdeps/unix/sysv/linux/mips/bits/shm.h: Likewise.
143         * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Likewise.
144         * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Likewise.
145         * sysdeps/unix/sysv/linux/s390/bits/shm.h: Likewise.
146         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: Likewise.
147         * sysdeps/unix/sysv/linux/ia64/bits/shm.h: Define SHMLBA to 2^20
148         since this is what the kernel says.
150         * misc/sys/xattr.h: Include <sys/types.h> instead of <stddef.h>
151         since ssize_t is needed as well.  Replace const with __const.
153 2002-08-23  Roland McGrath  <roland@redhat.com>
155         * malloc/hooks.c (__malloc_initialize_hook, __free_hook,
156         __malloc_hook, __realloc_hook, __memalign_hook,
157         __after_morecore_hook): Variable definitions moved to ...
158         * malloc/malloc.c: ... here, so as to be before all references.
160         * sysdeps/i386/dl-machine.h (elf_machine_load_address): Add a dummy
161         global variable reference in an unused asm parameter, to ensure the
162         compiler has set up the GOT register before we use it.
164         * malloc/hooks.c: Move variable definitions ahead of uses.
165         * libio/fileops.c: Move versioned_symbol defns ahead of _IO_jump_t
166         initializers that make reference to variables they define.
168 2002-08-23  Andreas Jaeger  <aj@suse.de>
170         * locale/loadarchive.c: Include <stdlib.h> for prototypes of
171         alloca, free, qsort.
173         * dlfcn/bug-dlsym1-lib1.c (foo): Add prototype to avoid warning.
175         * sysdeps/ieee754/flt-32/e_jnf.c: Remove unused variable.
176         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
178         * misc/sys/xattr.h: New file, contributed by Christoph Hellwig
179         <hch@lst.de>.
180         * sysdeps/generic/fgetxattr.c: New file.
181         * sysdeps/generic/flistxattr.c: New file.
182         * sysdeps/generic/fremovexattr.c: New file.
183         * sysdeps/generic/fsetxattr.c: New file.
184         * sysdeps/generic/getxattr.c: New file.
185         * sysdeps/generic/listxattr.c: New file.
186         * sysdeps/generic/lgetxattr.c: New file.
187         * sysdeps/generic/llistxattr.c: New file.
188         * sysdeps/generic/lremovexattr.c: New file.
189         * sysdeps/generic/lsetxattr.c: New file.
190         * sysdeps/generic/removexattr.c: New file.
191         * sysdeps/generic/setxattr.c: New file.
192         * misc/Makefile (headers): Add sys/xattr.h.
193         (routines): Add *xattr calls.
194         * misc/Versions: Add *xattr calls with version 2.3.
195         * sysdeps/unix/sysv/linux/m68k/Versions: Remove *xattr syscalls.
196         * sysdeps/unix/sysv/linux/s390/s390-32/Versions: Likewise.
197         * sysdeps/unix/sysv/linux/sparc/sparc32/Versions: Likewise.
198         * sysdeps/unix/sysv/linux/sparc/sparc64/Versions: Likewise.
199         * sysdeps/unix/sysv/linux/x86_64/Versions: Likewise.
200         * sysdeps/unix/sysv/linux/ia64/Versions: Likewise.
201         * sysdeps/unix/sysv/linux/alpha/Versions: Likewise.
202         * sysdeps/unix/sysv/linux/arm/Versions: Likewise.
204 2002-08-22  Steven Munroe  <sjmunroe@us.ibm.com>
206         * sysdeps/powerpc/elf/libc-start.c
207         (__cache_line_size): Declare.
208         (__aux_init_cache): New.
209         (__libc_start_main): Change type of `auxvec' parameter to
210         `ElfW(auxv_t) *'.  Correct walking of aux vector.  Call
211         __aux_init_cache.
212         * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c
213         (__cache_line_size): Declare.
214         (__aux_init_cache): New.
215         (DL_PLATFORM_INIT): Define.
216         * sysdeps/powerpc/memset.S: Define __cache_line_size and use its
217         value to select the correct stride for dcbz.
219 2002-08-22  Andreas Jaeger  <aj@suse.de>
221         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Fix arguments of
222         shmat.
224 2002-08-22  Roland McGrath  <roland@redhat.com>
226         * locale/loadarchive.c (_nl_load_locale_from_archive): Check max file
227         position indicated by locrectab against file bounds before rounding to
228         page size.  In mapping loop, always set TO before breaking out of
229         contiguous range coalescing loop.
231         * locale/loadarchive.c (_nl_load_locale_from_archive): Use MAP_PRIVATE
232         (or MAP_COPY if available) instead of MAP_SHARED.
234         * scripts/firstversions.awk: When encountering a version newer than
235         the specified earliest version, be sure to emit the specified earliest
236         version first if any renaming of an older version to that has been.
238 2002-08-21  Roland McGrath  <roland@redhat.com>
240         * configure.in: Make GCC version check require 3.[2-9]* and no others.
241         * manual/install.texi (Tools for Compilation): Say 3.2 is required.
242         (Configuring and compiling): Don't mention older GCC versions any more.
243         * INSTALL: Regenerated.
245         * manual/install.texi (Configuring and compiling, Installation,
246         Running make install, Linux): Linux -> GNU/Linux where appropriate.
248         * elf/rtld.c (_dl_start_final): Move defn before _dl_start so it can
249         be inlined.  Declare it with always_inline if [DONT_USE_BOOTSTRAP_MAP]
250         and with noinline otherwise.  Remove hack alloca use to prevent
251         inlining, we can ask for it explicitly nowadays.
253         * dlfcn/bug-dlsym1.c: New file.
254         * dlfcn/bug-dlsym1-lib1.c, dlfcn/bug-dlsym1-lib2.c: New files.
255         * dlfcn/Makefile (distribute): Add them.
256         (tests): Add bug-dlsym1 here.
257         (modules-names): Add bug-dlsym1-lib1 and bug-dlsym1-lib2 here.
258         ($(objpfx)bug-dlsym1, $(objpfx)bug-dlsym1.out): New targets.
259         ($(objpfx)bug-dlsym1-lib1.so, $(objpfx)bug-dlsym1-lib2.so): Likewise.
261 2002-08-21  Ulrich Drepper  <drepper@redhat.com>
263         * elf/rtld.c (start_time): New global variable.  Moved from _dl_start.
264         (DONT_USE_BOOTSTRAP_MAP): Define if we can use non-exported symbols
265         before relocation.
266         (_dl_start): Don't use local bootstrap_map variable if
267         DONT_USE_BOOTSTRAP_MAP is defined.  Use GL(dl_rtld_map).  Don't
268         pass bootstrap_map to _dl_start_final in this case either.  Don't
269         pass start_time to _dl_start_final ever.
270         (_dl_start_final): Don't copy bootstrap_map if DONT_USE_BOOTSTRAP_MAP.
272         * elf/dl-deps.c (_dl_map_object_deps): Revert patch from 2002-05-28.
273         This cripples the scope lists necessary to search for symbols in
274         dependencies which are not in the global scope.
276         * include/setjmp.h (__libc_longjmp): Add declaration.
278 2002-08-21  Andreas Jaeger  <aj@suse.de>
280         * sysdeps/x86_64/_mcount.S: Fix assembler.
282         * sysdeps/unix/sysv/linux/x86_64/Makefile: Generate bits/syscall.h
283         with biarch support.
285 2002-08-21  Andreas Jaeger  <aj@suse.de>
287         * sysdeps/x86_64/sysdep.h (CALL_MCOUNT): Fix it.
289         * sysdeps/x86_64/Makefile (sysdep_routines): Add _mcount.
291         * sysdeps/x86_64/machine-gmon.h: New file.
292         * sysdeps/x86_64/_mcount.S: New file.
294 2002-08-20  Ulrich Drepper  <drepper@redhat.com>
296         * elf/rtld.c (_dl_start): Pass zero to TLS_INIT_TP.  Set
297         bootstrap_map.l_tls_tp_initialized to 1 if TLS_INIT_TP was called.
298         (_dl_start_final): Copy l_tls_tp_initialized to GL(dl_rtld_map).
299         (dl_main): If HAVE___THREAD is not defined pass l_tls_tp_initialized
300         to TL_INIT_TP.  Otherwise pass 1.
301         * include/link.h (struct link_map): Add l_tls_tp_initialized.
302         * sysdeps/generic/libc-tls.c (__libc_setup_tls): Pass 0 to TL_INIT_TP.
304 2002-08-15  Jakub Jelinek  <jakub@redhat.com>
306         * locale/programs/localedef.c (add_to_readlist): Error about
307         circular dependencies only if the locale in question hasn't
308         been finished.
309         * locale/programs/linereader.c (get_string): Pass LC_CTYPE not
310         CTYPE_LOCALE to load_locale.
311         * locale/programs/locfile.c (locfile_read): Don't include
312         unneeded but available locales in locale_mask.
314         * locale/programs/locarchive.c (enlarge_archive): If quiet, don't
315         print any messages about enlarging archive.
317 2002-08-20  Brian Youmans  <3diff@gnu.org>
319         * manual/contrib.texi: Removed licenses, added acknowledgements
320         for contributions by Intel, IBM, Craig Metz.
321         * LICENSES: New file, contains the text of all non-FSF licenses in the
322         distribution that require putting the notice in the accompanying
323         documentation.
324         * README.template, README: Mention LICENSES.
326         * sysdeps/mach/hurd/net/if_ppp.h: Replaced CMU license with a
327         new one modelled on the modern BSD license, per recent letter
328         of permission from CMU.
329         * sysdeps/unix/sysv/linux/net/if_ppp.h: Likewise.
331         * sysdeps/ieee754/dbl-64/MathLib.h: Changed the copyright holder
332         from IBM to FSF, per the recent Software Letter.  Changed the
333         distribution terms from GPL to LGPL.
335         * sysdeps/ieee754/dbl-64/asincos.tbl: Added FSF copyright and
336         copying permission notice (Lesser GPL), per recent IBM Software Letter.
337         * sysdeps/ieee754/dbl-64/powtwo.tbl: Likewise.
338         * sysdeps/ieee754/dbl-64/root.tbl: Likewise.
339         * sysdeps/ieee754/dbl-64/sincos.tbl: Likewise.
340         * sysdeps/ieee754/dbl-64/uatan.tbl: Likewise.
341         * sysdeps/ieee754/dbl-64/uexp.tbl: Likewise.
342         * sysdeps/ieee754/dbl-64/ulog.tbl: Likewise.
343         * sysdeps/ieee754/dbl-64/upow.tbl: Likewise.
344         * sysdeps/ieee754/dbl-64/utan.tbl: Likewise.
346         * sysdeps/ieee754/dbl-64/atnat.h: Changed the copyright holder
347         from IBM to FSF, per the recent Software Letter.  Corrected the
348         text of the copying permission notice to say Lesser GPL instead
349         of GPL in warranty disclaimer paragraph.
350         * sysdeps/ieee754/dbl-64/atnat2.h: Likewise.
351         * sysdeps/ieee754/dbl-64/branred.h: Likewise.
352         * sysdeps/ieee754/dbl-64/dla.h: Likewise.
353         * sysdeps/ieee754/dbl-64/doasin.h: Likewise.
354         * sysdeps/ieee754/dbl-64/dosincos.h: Likewise.
355         * sysdeps/ieee754/dbl-64/mpa.h: Likewise.
356         * sysdeps/ieee754/dbl-64/mpa2.h: Likewise.
357         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
358         * sysdeps/ieee754/dbl-64/mpexp.h: Likewise.
359         * sysdeps/ieee754/dbl-64/mplog.h: Likewise.
360         * sysdeps/ieee754/dbl-64/mpsqrt.h: Likewise.
361         * sysdeps/ieee754/dbl-64/mydefs.h: Likewise.
362         * sysdeps/ieee754/dbl-64/sincos32.h: Likewise.
363         * sysdeps/ieee754/dbl-64/uasncs.h: Likewise.
364         * sysdeps/ieee754/dbl-64/uexp.h: Likewise.
365         * sysdeps/ieee754/dbl-64/ulog.h: Likewise.
366         * sysdeps/ieee754/dbl-64/upow.h: Likewise.
367         * sysdeps/ieee754/dbl-64/urem.h: Likewise.
368         * sysdeps/ieee754/dbl-64/uroot.h: Likewise.
369         * sysdeps/ieee754/dbl-64/usncs.h: Likewise.
370         * sysdeps/ieee754/dbl-64/utan.h: Likewise.
372         * sysdeps/ieee754/dbl-64/branred.c: Corrected the text of the copying
373         permission notice to say Lesser GPL instead of GPL in warranty
374         disclaimer paragraph.
375         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
376         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
377         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
378         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
379         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
380         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
381         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
382         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
383         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
384         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
385         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
386         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
387         * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
388         * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
389         * sysdeps/ieee754/dbl-64/mplog.c: Likewise.
390         * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
391         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
392         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
393         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
394         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
395         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
396         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
397         * sysdeps/ieee754/dbl-64/slowpow.c:  Likewise.
399 2002-08-20  Roland McGrath  <roland@redhat.com>
401         Fix ABI compatibility with libc compiled with old tools on powerpc.
402         Changes contributed by Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
403         and Jack Howarth <howarth@bromo.med.uc.edu>.
404         * sysdeps/powerpc/Makefile [$(have-protected) = yes]
405         (CPPFLAGS-divdi3.c, CPPFLAGS-libgcc-compat.S): New variables,
406         pass -DHAVE_DOT_HIDDEN for these files.
407         * sysdeps/powerpc/Versions (libc: GLIBC_2.0): Added __floatdidf,
408         __floatdisf.
409         * sysdeps/powerpc/divdi3.c: New file.
410         * sysdeps/powerpc/libgcc-compat.S: New file, replacement for ...
411         * sysdeps/powerpc/libgcc-compat.c: ... this, file removed.
413 2002-08-20  Jakub Jelinek  <jakub@redhat.com>
415         * locale/loadarchive.c (_nl_load_locale_from_archive): Handle
416         partially overlapping mappings.  Remove unneeded (char *) casts.
417         Never allow duplication of ranges in mapped areas.
419 2002-08-20  Roland McGrath  <roland@redhat.com>
421         * elf/Makefile ($(objpfx)ld.so): Separate commands in rule so errors
422         can be detected by make.  Reported by H.J. Lu <hjl@gnu.org>.
424 2002-08-20  Ulrich Drepper  <drepper@redhat.com>
426         * include/unistd.h: Don't hide _exit.
428         * elf/rtld.c (_dl_start): Pass extra argument 1 to TLS_INIT_TP.
429         (dl_main): Pass extra argument 0 to TLS_INIT_TP.
430         * sysdeps/generic/libc-tls.c (__libc_setup_tls): Pass extra
431         argument 1 to TLS_INIT_TP.
432         * sysdeps/generic/tls.h (TLS_INIT_TP): Describe new parameter.
434         * sysdeps/generic/dl-tls.c (allocate_dtv): Optimize a bit.
436         * elf/Versions [ld] (GLIBC_PRIVATE): Add _dl_get_tls_static_info.
437         * sysdeps/generic/dl-tls.c (_dl_allocate_tls_storage): Move dtv
438         memory allocation to...
439         (allocate_dtv): ...here.  New function.
440         (_dl_allocate_tls): Change to take parameter.  If parameter is non-NULL
441         call allocate_dtv instead of _dl_allocate_tls_storage.
442         (_dl_deallocate_tls): New parameter.  Deallocate TCB only if true.
443         (_dl_get_tls_static_info): New function.
444         * sysdeps/generic/ldsodefs.h: Adjust prototypes of _dl_allocate_tls
445         and _dl_deallocate_tls.  Add prototype for _dl_get_tls_static_info.
447 2002-08-19  Ulrich Drepper  <drepper@redhat.com>
449         * sysdeps/generic/dl-tls.c (_dl_allocate_tls_init): Return
450         immediately if result == NULL.
452 2002-08-16  Jakub Jelinek  <jakub@redhat.com>
454         * sysdeps/alpha/fpu/libm-test-ulps: Regenerate.
456 2002-08-18  Roland McGrath  <roland@frob.com>
458         * sysdeps/mach/hurd/mkdir.c (__mkdir): Use __directory_name_split
459         instead of __file_name_split.
460         * sysdeps/mach/hurd/unlink.c (__unlink): Likewise.
462         * sysdeps/mach/hurd/dl-sysdep.c
463         [HP_TIMING_AVAIL] (_dl_cpuclock_offset): New variable.
464         [HP_TIMING_AVAIL] (_dl_sysdep_start): Set it with HP_TIMING_NOW.
466 2002-08-16  Jakub Jelinek  <jakub@redhat.com>
468         * locale/loadarchive.c (_nl_load_locale_from_archive): Braino fix
469         in change before last: MAX -> MIN.
471 2002-08-15  Roland McGrath  <roland@redhat.com>
473         * libio/fileops.c (_IO_file_seekoff_mmap): Leave read pointers at EOF
474         if seek would go past it.
475         (mmap_remap_check): If file position is at or past EOF after check,
476         leave read pointers at EOF and don't seek.
478         * libio/tst-mmap-offend.c: New file.
479         * libio/Makefile (tests): Add it.
481         * locale/loadarchive.c (_nl_load_locale_from_archive): Store strdup of
482         the name as passed, rather than the name in the archive dictionary.
484 2002-08-15  Ulrich Drepper  <drepper@redhat.com>
486         * csu/Makefile: Define elide-routines.os not static-only-routines.
488         * include/sched.h (__clone): Add varargs at the end.
490         * elf/rtld.c (_dl_start): Allow TLS_INIT_TP to fail, and stop in that
491         case.
492         (TLS_INIT_HELPER): If defined, use it.
493         * sysdeps/generic/libc-tls.c (TLS_INIT_HELPER): Likewise.
495 2002-08-15  Roland McGrath  <roland@redhat.com>
497         * elf/dl-load.c (lose): Remove [!SHARED] conditional from null check
498         on L->l_prev; it can happen under rtld --verify too.
500         * locale/loadarchive.c (_nl_load_locale_from_archive): Don't read the
501         header separately, just map an initial window of 2MB from the file
502         and remap if that is not large enough to cover the whole header.
504 2002-08-15  Andreas Jaeger  <aj@suse.de>
506         * sysdeps/unix/sysv/linux/m68k/Versions: Add *xattr syscalls with
507         version 2.3.
508         * sysdeps/unix/sysv/linux/arm/Versions: Likewise.
509         * sysdeps/unix/sysv/linux/alpha/Versions: Likewise.
510         * sysdeps/unix/sysv/linux/ia64/Versions: Likewise.
511         * sysdeps/unix/sysv/linux/x86_64/Versions: Likewise.
512         * sysdeps/unix/sysv/linux/sparc/sparc64/Versions: Likewise.
513         * sysdeps/unix/sysv/linux/sparc/sparc32/Versions: Likewise.
514         * sysdeps/unix/sysv/linux/s390/s390-32/Versions: Likewise.
515         * sysdeps/unix/sysv/linux/powerpc/Versions: Likewise.
516         * sysdeps/unix/sysv/linux/mips/Versions: Likewise.
517         Patch by Andreas Gruenbacher <agruen@suse.de>.
519         * sysdeps/unix/sysv/linux/syscalls.list: Add *xattr syscalls.
521 2002-08-14  Roland McGrath  <roland@redhat.com>
523         * locale/locarchive.h (struct locale_category_data): Give this name to
524         the type of locale_data_t's elements.
525         * locale/programs/locarchive.c (cmpcategorysize): New static function.
526         (add_locale): Use that to sort the categories by size and put all
527         those that fit into two pages into the LC_ALL block, instead of
528         hard-coding it to do everything but LC_CTYPE and LC_COLLATE.
529         (show_archive_content): Detect categories inside LC_ALL block
530         directly, instead of hard-coding.
531         (oldlocrecentcmp): Compare just on file locations used.
533 2002-08-14  Jakub Jelinek  <jakub@redhat.com>
535         * locale/programs/locarchive.c (struct oldlocrecent): New.
536         (oldlocrecentcmp): New.
537         (enlarge_archive): Re-add locales in the order they were added
538         to the archive.
539         (add_locale): Put all the small locale files together, if the small
540         locale file block would occupy less pages if page size aligned, align
541         it.
542         (show_archive_content): Adjust for locale archives optimized for speed.
544 2002-08-14  Roland McGrath  <roland@frob.com>
546         * configure.in: Use "MISSING" as not-found value for MIG.
547         * sysdeps/mach/configure.in: Fatal if mig not found.
548         * configure, sysdeps/mach/configure: Regenerated.
550 2002-08-13  Jakub Jelinek  <jakub@redhat.com>
552         * locale/loadarchive.c (archfname): Add missing slash.
554         * sysdeps/generic/strtold.c (__strtold_internal): Add libc_hidden_def.
555         * wcsmbs/wcstold.c (__wcstold_internal): Add libc_hidden_def.
557 2002-08-12  Roland McGrath  <roland@redhat.com>
559         * include/sys/wait.h (__waitpid): Add libc_hidden_proto.
560         * sysdeps/unix/sysv/sco3.2.4/waitpid.S: Add libc_hidden_def.
561         * sysdeps/unix/sysv/sysv4/waitpid.c: Add libc_hidden_weak.
562         * sysdeps/unix/sysv/linux/waitpid.c: Likewise.
563         * sysdeps/unix/sysv/aix/waitpid.c: Likewise.
564         * sysdeps/unix/bsd/bsd4.4/waitpid.c: Likewise.
565         * sysdeps/generic/waitpid.c: Likewise.
567         * include/net/if.h: New file.  Use libc_hidden_proto
568         for if_nametoindex and if_indextoname.
569         * sysdeps/generic/if_index.c: Add libc_hidden_def.
570         * sysdeps/mach/hurd/if_index.c: Likewise.
571         * sysdeps/unix/sysv/linux/if_index.c: Likewise.
573         * include/grp.h (setgroups): Add libc_hidden_proto.
574         * sysdeps/generic/setgroups.c: Add libc_hidden_def.
575         * sysdeps/mach/hurd/setgroups.c: Likewise.
576         * sysdeps/unix/sysv/irix4/setgroups.c: Likewise.
577         * sysdeps/unix/sysv/linux/i386/setgroups.c: Likewise.
579 2002-08-13  Jakub Jelinek  <jakub@redhat.com>
581         * include/unistd.h (seteuid, setegid): Add libc_hidden_proto.
582         * sysdeps/generic/seteuid.c (seteuid): Add libc_hidden_def.
583         * sysdeps/generic/setegid.c (setegid): Likewise.
584         * sysdeps/mach/hurd/seteuid.c (seteuid): Likewise.
585         * sysdeps/mach/hurd/setegid.c (setegid): Likewise.
586         * sysdeps/unix/bsd/seteuid.c (seteuid): Likewise.
587         * sysdeps/unix/bsd/setegid.c (setegid): Likewise.
588         * sysdeps/unix/sysv/aix/seteuid.c (seteuid): Likewise.
589         * sysdeps/unix/sysv/aix/setegid.c (setegid): Likewise.
590         * sysdeps/unix/sysv/linux/i386/setegid.c (setegid): Likewise.
591         * sysdeps/unix/sysv/linux/sparc/sparc32/seteuid.c (seteuid): Likewise.
592         * sysdeps/unix/sysv/linux/sparc/sparc32/setegid.c (setegid): Likewise.
593         * sysdeps/unix/sysv/linux/seteuid.c (seteuid): Likewise.
594         * sysdeps/unix/sysv/linux/setegid.c (setegid): Likewise.
595         * sysdeps/unix/sysv/linux/i386/seteuid.c (seteuid): Likewise.
596         Remove fallback if __ASSUME_SETRESUID_SYSCALL.
598         * include/sys/stat.h (__fxstat_internal, __fxstat64_internal,
599         __lxstat_internal, __lxstat64_internal): Remove.
600         (__fxstat, __fxstat64, __lxstat, __lxstat64, __xstat, __xstat64):
601         Add hidden_proto.
602         * sysdeps/generic/fxstat.c (__fxstat): Add hidden_def.
603         Remove INTDEF where present, remove #undef at the beginning.
604         * sysdeps/generic/fxstat64.c (__fxstat64): Likewise.
605         * sysdeps/generic/lxstat.c (__lxstat): Likewise.
606         * sysdeps/generic/lxstat64.c (__lxstat64): Likewise.
607         * sysdeps/generic/xstat.c (__xstat): Likewise.
608         * sysdeps/generic/xstat64.c (__xstat64): Likewise.
609         * sysdeps/mach/hurd/dl-sysdep.c (__xstat64, __fxstat64): Likewise.
610         * sysdeps/mach/hurd/fxstat.c (__fxstat): Likewise.
611         * sysdeps/mach/hurd/fxstat64.c (__fxstat64): Likewise.
612         * sysdeps/mach/hurd/lxstat.c (__lxstat): Likewise.
613         * sysdeps/mach/hurd/lxstat64.c (__lxstat64): Likewise.
614         * sysdeps/mach/hurd/xstat.c (__xstat): Likewise.
615         * sysdeps/mach/hurd/xstat64.c (__xstat64): Likewise.
616         * sysdeps/unix/fxstat.c (__fxstat): Likewise.
617         * sysdeps/unix/common/lxstat.c (__lxstat): Likewise.
618         * sysdeps/unix/sysv/aix/fxstat.c (__fxstat): Likewise.
619         * sysdeps/unix/sysv/aix/fxstat64.c (__fxstat64): Likewise.
620         * sysdeps/unix/sysv/aix/lxstat.c (__lxstat): Likewise.
621         * sysdeps/unix/sysv/aix/lxstat64.c (__lxstat64): Likewise.
622         * sysdeps/unix/sysv/aix/xstat.c (__xstat): Likewise.
623         * sysdeps/unix/sysv/aix/xstat64.c (__xstat64): Likewise.
624         * sysdeps/unix/sysv/linux/ia64/fxstat.c (__fxstat): Likewise.
625         * sysdeps/unix/sysv/linux/ia64/lxstat.c (__lxstat): Likewise.
626         * sysdeps/unix/sysv/linux/ia64/xstat.c (__xstat): Likewise.
627         * sysdeps/unix/sysv/linux/s390/s390-64/fxstat.c (__fxstat): Likewise.
628         * sysdeps/unix/sysv/linux/s390/s390-64/lxstat.c (__lxstat): Likewise.
629         * sysdeps/unix/sysv/linux/s390/s390-64/xstat.c (__xstat): Likewise.
630         * sysdeps/unix/sysv/linux/i386/fxstat.c (__fxstat): Likewise.
631         * sysdeps/unix/sysv/linux/i386/lxstat.c (__lxstat): Likewise.
632         * sysdeps/unix/sysv/linux/i386/xstat.c (__xstat): Likewise.
633         * sysdeps/unix/sysv/linux/xstat.c (__xstat): Likewise.
634         * sysdeps/unix/sysv/linux/xstat64.c (__xstat64): Likewise.
635         * sysdeps/unix/sysv/linux/fxstat.c (__fxstat): Likewise.
636         * sysdeps/unix/sysv/linux/fxstat64.c (__fxstat64): Likewise.
637         * sysdeps/unix/sysv/linux/lxstat.c (__lxstat): Likewise.
638         * sysdeps/unix/sysv/linux/lxstat64.c (__lxstat64): Likewise.
639         * sysdeps/unix/xstat.c (__xstat): Likewise.
641         * include/sys/statvfs.h (statvfs, fstatvfs): Add libc_hidden_proto.
642         * sysdeps/generic/statvfs.c (statvfs): Add libc_hidden_def.
643         * sysdeps/generic/fstatvfs.c (fstatvfs): Likewise.
644         * sysdeps/mach/hurd/statvfs.c (statvfs): Likewise.
645         * sysdeps/mach/hurd/fstatvfs.c (fstatvfs): Likewise.
646         * sysdeps/unix/sysv/linux/statvfs.c (statvfs): Likewise.
647         * sysdeps/unix/sysv/linux/fstatvfs.c (fstatvfs): Likewise.
649         * include/unistd.h (tcgetpgrp): Add libc_hidden_proto.
650         * include/termios.h (tcsetattr, cfsetispeed, cfsetospeed): Likewise.
651         * sysdeps/generic/tcgetpgrp.c (tcgetpgrp): Add libc_hidden_def.
652         * sysdeps/generic/tcsetattr.c (tcsetattr): Likewise.
653         * sysdeps/generic/speed.c (cfsetispeed, cfsetospeed): Likewise.
654         * sysdeps/unix/bsd/bsd4.4/tcsetattr.c (tcgetpgrp): Likewise.
655         * sysdeps/unix/bsd/sun/sunos4/tcsetattr.c (tcsetattr): Likewise.
656         * sysdeps/unix/bsd/sun/sunos4/speed.c (cfsetispeed, cfsetospeed):
657         Likewise.
658         * sysdeps/unix/bsd/tcgetpgrp.c (tcgetpgrp): Likewise.
659         * sysdeps/unix/bsd/tcsetattr.c (tcsetattr): Likewise.
660         * sysdeps/unix/sysv/aix/tcsetattr.c (tcsetattr): Likewise.
661         * sysdeps/unix/sysv/aix/speed.c (cfsetispeed, cfsetospeed): Likewise.
662         * sysdeps/unix/sysv/linux/tcsetattr.c (tcsetattr): Likewise.
663         * sysdeps/unix/sysv/linux/speed.c (cfsetispeed, cfsetospeed): Likewise.
664         * sysdeps/unix/sysv/tcgetpgrp.c (tcgetpgrp): Likewise.
665         * sysdeps/unix/sysv/tcsetattr.c (tcsetattr): Likewise.
667         * include/string.h (strcoll): Add libc_hidden_proto.
668         * string/strcoll.c (strcoll): Add libc_hidden_def.
670         * misc/err.c (vwarn): Fix pasto in libc_hidden_def.
672 2002-08-11  Philip Blundell  <philb@gnu.org>
674         * sysdeps/arm/Makefile: New file.
676 2002-08-08  Jakub Jelinek  <jakub@redhat.com>
678         * posix/regcomp.c (parse_reg_exp): If '|' is immediately followed
679         by another '|', end of regex or enclosing ')', clear branch.
680         * posix/bug-regex9.c: New test.
681         * posix/Makefile (tests): Add bug-regex9.
683 2002-08-12  Roland McGrath  <roland@redhat.com>
685         * sysdeps/generic/dl-tls.c (_dl_allocate_tls_init): Fix inner loop
686         start count condition, use TOTAL instead of variable that was never
687         set.  Fix outer loop termination condition to TOTAL >= after update.
689         * sysdeps/generic/libc-tls.c (__libc_setup_tls): Initialize
690         dl_tls_static_align and dl_tls_static_nelem.
692 2002-08-11  Roland McGrath  <roland@redhat.com>
694         * elf/tst-tlsmod4.c (in_dso): Insert a random library call before use
695         of the TLS macros, otherwise the compiler might not have initialized
696         the PIC register yet when we use the PLT via asm.
697         * elf/tst-tlsmod3.c (in_dso2): Likewise.
698         * elf/tst-tlsmod2.c (in_dso): Likewise.
700         * sunrpc/svc_authux.c (_svcauth_unix): Remove spurious printf (ugh!).
702         * sysdeps/i386/bits/byteswap.h (__bswap_16, __bswap_32, __bswap_64):
703         Evaluate argument exactly once.  Remove __volatile__ from asm's.
705         * include/unistd.h: Use libc_hidden_proto for getdomainname
706         and getlogin_r.
707         * sysdeps/generic/getdomain.c: Add libc_hidden_def.
708         * sysdeps/mach/hurd/getdomain.c: Likewise.
709         * sysdeps/unix/getlogin_r.c: Likewise.
710         * sysdeps/mach/hurd/getlogin_r.c: Likewise.
711         * sysdeps/generic/getlogin_r.c: Likewise.
713         * include/rpc/auth_des.h: Use libc_hidden_proto for rtime.
714         * sunrpc/rtime.c: Add libc_hidden_def.
716         * include/string.h: Use libc_hidden_proto for basename.
717         * string/basename.c [_LIBC]: Add libc_hidden_def.
719         * sysdeps/unix/sysv/linux/opensock.c (__opensock): socket -> __socket.
721         * locale/loadarchive.c: munmap -> __munmap throughout.
723         * include/netdb.h: Use libc_hidden_proto for gai_strerror.
724         * sysdeps/posix/gai_strerror.c: Add libc_hidden_def.
725         * sysdeps/generic/gai_strerror.c: Likewise.
727         * include/sys/errno.h: New file.
729         * include/signal.h: No libc_hidden_proto for raise,
730         __libc_current_sigrtmin, __libc_current_sigrtmax.
731         These need to be overridden by linuxthreads.
732         * sysdeps/posix/raise.c: Reverted.
733         * sysdeps/generic/raise.c: Reverted.
734         * signal/allocrtsig.c: Reverted.
736         * locale/loadarchive.c (LOCALEDIR): Remove debugging defn.  Oops.
738 2002-08-10  Roland McGrath  <roland@redhat.com>
740         * locale/loadarchive.c (_nl_archive_subfreeres): New function.
741         * locale/localeinfo.h: Declare it.
742         * locale/setlocale.c (free_mem): Don't call _nl_unload_locale on the
743         current locale if it's not in the file list.
744         Call _nl_archive_subfreeres.
746 2002-08-10  Andreas Jaeger  <aj@suse.de>
748         * sysdeps/i386/strchr.S: Add comment.
750 2002-08-10  Roland McGrath  <roland@redhat.com>
752         * include/wchar.h (putwc): Use libc_hidden_proto.
753         * include/stdio.h (dprintf, fprintf, vfprintf, sprintf,
754         sscanf, fwrite, perror, remove, rewind, open_memstream): Likewise.
755         * stdio-common/dprintf.c: Add libc_hidden_def.
756         * stdio-common/fprintf.c: Likewise.
757         * stdio-common/sprintf.c: Likewise.
758         * stdio-common/sscanf.c: Likewise.
759         * libio/iofwrite.c: Likewise.
760         * libio/memstream.c: Likewise.
761         * libio/putwc.c: Likewise.
762         * stdio-common/perror.c: Likewise.
763         * sysdeps/posix/remove.c: Likewise.
764         * sysdeps/generic/remove.c: Likewise.
765         * libio/rewind.c: Likewise.  Use <stdio.h> instead of "stdio.h".
766         * stdio-common/vfprintf.c: Add libc_hidden_def.  Include <stdio.h>.
768 2002-08-09  Jakub Jelinek  <jakub@redhat.com>
770         * include/wctype.h (iswalpha, iswdigit, iswlower, iswspace, iswxdigit,
771         towlower, towupper): Add prototypes here too.  Add libc_hidden_proto.
772         * wctype/wcfuncs.c (iswalpha, iswdigit, iswlower, iswspace, iswxdigit,
773         towlower, towupper): Add libc_hidden_weak.
775         * include/bits/dlfcn.h: New file.
776         * elf/dl-profstub.c (_dl_mcount_wrapper_check): Add libc_hidden_def.
778         * include/grp.h (_nss_files_parse_grent): Add libc_hidden_proto.
779         * include/netinet/ether.h (_nss_files_parse_etherent): Likewise.
780         * include/rpc/netdb.h (_nss_files_parse_rpcent): Likewise.
781         * include/pwd.h (_nss_files_parse_pwent): Likewise.
782         * include/shadow.h (_nss_files_parse_spent): Likewise.
783         * include/netdb.h (_nss_files_parse_protoent,
784         _nss_files_parse_servent, _nss_files_parse_netent): Likewise.
785         * nss/nss_files/files-parse.c (nss_files_parse_hidden_def): Define.
786         (LINE_PARSER): Use it.
787         * nss/nsswitch.h (__nss_hostname_digits_dots): Add libc_hidden_proto.
788         * nss/digits_dots.c (__nss_hostname_digits_dots): Add libc_hidden_def.
790         * libio/oldiopopen.c: Move #if SHLIB_COMPAT after _IO_HAVE_SYS_WAIT
791         #endif.
793         * manual/debug.texi (%MENU%): Remove trailing dot.
794         Reported by <hayastan132@hotmail.com>.
796         * sysdeps/unix/sysv/linux/ia64/syscalls.list (llseek): Add lseek
797         aliases.
798         (lseek): Dummy.
799         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list (llseek, lseek):
800         Likewise.
802 2002-08-09  Roland McGrath  <roland@redhat.com>
804         * locale/loadarchive.c (_nl_load_locale_from_archive): Parse locale
805         name to find codeset name (if any) and normalize it.  If the
806         normalized name differs, look up only that in the archive.
807         * locale/programs/locarchive.c (add_locale_to_archive): If the name
808         contains a codeset, normalize the codeset store only the normalized
809         name in the archive.  If not, add an alias containing the locale's
810         normalized codeset name.  Apply codeset name normalization when
811         matching entries in the alias file.
813         * locale/programs/locarchive.c (delete_locales_from_archive): Don't
814         decrement HEAD->namehash_used here.
815         (add_locale): Only need to insert name string when name_offset != 0.
817         * locale/programs/localedef.c (options): Add -A/--alias-file.
818         (alias_file): New variable.
819         (parse_opt): Grok -A, set that.
820         * locale/programs/localedef.h: Declare it.
822         * locale/locarchive.h (struct locrecent): Add `refs' member.
823         * locale/programs/locarchive.c (insert_name): New function, broken out
824         of ...
825         (add_locale_to_archive): ... here.  Call that.
826         (add_alias): New function.
827         (add_locale): New static function, add_locale_to_archive renamed.
828         (add_locale_to_archive): Call that and use add_alias to add an alias
829         for the name with codeset if the given name lacks it.
830         (enlarge_archive): Call add_locale instead of add_locale_to_archive.
832         * locale/Makefile (routines): Add loadarchive.
833         * locale/loadarchive.c: New file, started from code by Ulrich Drepper.
834         (_nl_load_locale_from_archive): New function.
835         * locale/localeinfo.h: Declare it.
836         * locale/findlocale.c (_nl_find_locale): If using default locale path,
837         try _nl_load_locale_from_archive first.
839         * locale/loadlocale.c (_nl_intern_locale_data): New function,
840         broken out of _nl_load_locale.
841         (_nl_load_locale): Call that.
842         * locale/localeinfo.h: Declare it.
843         (struct locale_data): Replace member `mmaped' with `alloc', an enum.
844         (struct locale_data): Remove unused member `options'.
845         * locale/findlocale.c (_nl_remove_locale): Update uses.
846         * locale/loadlocale.c (_nl_load_locale, _nl_unload_locale): Likewise.
847         * locale/C-collate.c: Update initializer.
848         * locale/C-identification.c: Likewise.
849         * locale/C-measurement.c: Likewise.
850         * locale/C-telephone.c: Likewise.
851         * locale/C-address.c: Likewise.
852         * locale/C-name.c: Likewise.
853         * locale/C-paper.c: Likewise.
854         * locale/C-time.c: Likewise.
855         * locale/C-numeric.c: Likewise.
856         * locale/C-monetary.c: Likewise.
857         * locale/C-messages.c : Likewise.
858         * locale/C-ctype.c: Likewise.
860         * locale/hashval.h [! LONGBITS]: Include <limits.h> here and
861         use CHAR_BIT instead of BITSPERBYTE.
863         * locale/localeinfo.h (_nl_find_locale, _nl_load_locale,
864         _nl_unload_locale): Add `internal_function attribute_hidden' to decls.
865         * locale/findlocale.c (_nl_find_locale): Add internal_function to defn.
866         (_nl_remove_locale): Likewise.
867         * locale/loadlocale.c (_nl_load_locale, _nl_unload_locale): Likewise.
869         * locale/findlocale.c (_nl_default_locale_path): New variable.
870         (_nl_find_locale): If LOCALE_PATH is null, default to that.
871         * locale/localeinfo.h: Declare it.
872         * locale/setlocale.c (setlocale): Use _nl_default_locale_path
873         in place of LOCALEDIR.  If no LOCPATH, pass null to _nl_find_locale.
874         * locale/newlocale.c (__newlocale): Likewise.
876         * misc/err.c (vwarnx, vwarn): Fix typos in libc_hidden_def uses.
877         * inet/rexec.c (rexec_af): Add libc_hidden_def.
878         * sysdeps/generic/morecore.c: Likewise.
879         * signal/allocrtsig.c (__libc_current_sigrtmin): Likewise.
880         (__libc_current_sigrtmax): Likewise.
882 2002-08-08  Roland McGrath  <roland@redhat.com>
884         * locale/loadlocale.c (_nl_load_locale): Don't use MAP_INHERIT.
885         * catgets/open_catalog.c (__open_catalog): Likewise.
887         * locale/programs/locarchive.c (INITIAL_NUM_NAMES): Renamed
888         from typo INITIAL_NUM_NANES.
889         (create_archive): Update use.
891 2002-08-08  Ulrich Drepper  <drepper@redhat.com>
893         * sysdeps/unix/sysv/linux/sigwait.c: New file.
895 2002-08-08  Roland McGrath  <roland@frob.com>
897         * resolv/netdb.h: Don't declare h_errno as a plain global any more.
899 2002-08-08  Jakub Jelinek  <jakub@redhat.com>
901         * sysdeps/wordsize-64/wcstol_l.c (wcstoll_l): Define to something
902         else and undefine after including wcstol_l.c.
903         * sysdeps/wordsize-64/wcstoul_l.c (wcstoull_l): Similarly.
905 2002-08-08  Ulrich Drepper  <drepper@redhat.com>
907         * gmon/gmon.c (write_gmon): Use O_NOFOLLOW in open calls if available.
909 2002-08-08  Alexandre Oliva  <aoliva@redhat.com>
911         * configure.in: Make the test for broken_alias_attribute stricter.
913 2002-05-24  Robert Love  <rml@tech9.net>
915         * posix/Makefile (routines): Add sched_getaffinity and
916         sched_setaffinity.
917         * posix/sched.h: Add declarations for sched_getaffinity and
918         sched_setaffinity.
919         * sysdeps/generic/sched_getaffinity.c: New file.
920         * sysdeps/generic/sched_setaffinity.c: New file.
921         * sysdeps/unix/sysv/linux/syscalls.list: Add sched_getaffinity and
922         sched_setaffinity.
924 2002-08-06  Andreas Schwab  <schwab@suse.de>
926         * sysdeps/unix/utime.c: If TIMES is NULL pass it through to utimes.
928 2002-08-07  Ulrich Drepper  <drepper@redhat.com>
930         * elf/dl-load.c (_dl_map_object_from_fd): Add missing \n in error
931         message.
933         * stdlib/isomac.c (get_null_defines): Treat NOT_IN_libc special.
934         It is known to be defined.
936         * include/string.h: Define index and rindex only if _ISOMAC is not
937         defined.
939         * elf/rtld.c: Include <errno.h>.
940         * sysdeps/generic/libc-tls.c: Likewise.
942 2002-08-07  Roland McGrath  <roland@redhat.com>
944         * resolv/res_debug.c (latlon2ul): Add const to argument type, and use
945         it internally.
946         (precsize_aton): Likewise.
948         * inet/getnetgrent_r.c (endnetgrent, __getnetgrent_r): Actually call
949         the static symbols added in the last change (doofus is me).
951         * locale/newlocale.c (__newlocale): Use a bit mask instead of a second
952         loop to notice missing categories in a composite name.
954         * locale/locale.h (LC_CTYPE_MASK, LC_NUMERIC_MASK, LC_TIME_MASK,
955         LC_COLLATE_MASK, LC_MONETARY_MASK, LC_MESSAGES_MASK, LC_ALL_MASK,
956         LC_PAPER_MASK, LC_NAME_MASK, LC_ADDRESS_MASK, LC_TELEPHONE_MASK,
957         LC_MEASUREMENT_MASK, LC_IDENTIFICATION_MASK, LC_ALL_MASK): New macros.
959 2002-08-07  Ulrich Drepper  <drepper@redhat.com>
961         * malloc/tst-calloc.c: Add tests for one or both parameters being zero.
963 2002-08-07  Roland McGrath  <roland@redhat.com>
965         * sysdeps/i386/dl-machine.h (elf_machine_rel): Add to, don't clobber,
966         unrelocated initial value for DTPOFF32 and TPOFF32 relocs.
967         Reported by Jakub Jelinek  <jakub@redhat.com>.
969 2002-08-07  Jakub Jelinek  <jakub@redhat.com>
971         * malloc/malloc.c (public_cALLOc): Check ELEM_SIZE != 0 before
972         division.
974 2002-08-06  Roland McGrath  <roland@redhat.com>
976         * include/getopt.h: Put private decls inside [_GETOPT_H].
977         Use libc_hidden_proto for getopt_long, getopt_long_only.
978         * posix/getopt1.c [_LIBC]: Include <getopt.h> instead of "getopt.h".
979         Add libc_hidden_def.
981         * sysdeps/generic/unwind-dw2-fde-glibc.c [_LIBC] (dl_iterate_phdr):
982         Define as a macro for __dl_iterate_phdr.
984         * inet/getnetgrent_r.c (internal_setnetgrent): Renamed from __ name,
985         made static.  Add __ name as a strong alias.
986         (internal_endnetgrent): Likewise.
987         (internal_getnetgrent_r): Likewise.
989         * locale/Versions (libc: GLIBC_2.3): Add all the *_l functions
990         with no __ prefix.
991         * locale/langinfo.h [__USE_GNU]: Declare nl_langinfo_l.
992         * ctype/ctype.h [__USE_GNU]: Add declarations and macros for
993         all *_l functions with no __ prefix.
994         * wctype/wcfuncs_l.c: Define weak aliases without __ for all fns.
995         * ctype/ctype_l.c: Likewise.
996         * locale/nl_langinfo.c: Likewise.
997         * string/string.h [__USE_GNU]: Add decls for all *_l fns with no __.
998         * stdlib/stdlib.h [__USE_GNU]: Likewise.
999         * wcsmbs/wchar.h [__USE_GNU]: Likewise.
1000         * wctype/wctype.h [__USE_GNU]: Likewise.
1001         * string/strcoll_l.c (strcoll_l): Define as weak alias.
1002         * string/strxfrm_l.c (strxfrm_l): Define as weak alias.
1003         * sysdeps/generic/strcasecmp_l.c (strcasecmp_l): Define as weak alias.
1004         * sysdeps/generic/strncase_l.c (strncasecmp_l): Define as weak alias.
1005         * stdlib/strtod_l.c (strtod_l): Define as weak alias.
1006         * stdlib/strtof_l.c (strtof_l): Define as weak alias.
1007         * stdlib/strtold_l.c (strtold_l): Define as weak alias.
1008         * wcsmbs/wcscasecmp_l.c (wcscasecmp_l): Define as weak alias.
1009         (__wcscasecmp_l): Add libc_hidden_def.
1010         * wcsmbs/wcsncase_l.c (wcsncasecmp_l): Define as weak alias.
1011         (__wcsncasecmp_l): Add libc_hidden_def.
1012         * wcsmbs/wcstof_l.c (wcstof_l): Define as weak alias.
1013         * wcsmbs/wcstod_l.c (wcstod_l): Define as weak alias.
1014         * wcsmbs/wcstold_l.c (wcstold_l): Define as weak alias.
1015         * wcsmbs/wcscoll_l.c (wcscoll_l): Define as weak alias.
1016         * wcsmbs/wcsxfrm_l.c (wcsxfrm_l): Define as weak alias.
1017         * sysdeps/generic/wcstol_l.c (wcstol_l): Define as weak alias.
1018         * sysdeps/generic/wcstoll_l.c (wcstoll_l): Define as weak alias.
1019         * sysdeps/generic/wcstoul_l.c (wcstoul_l): Define as weak alias.
1020         * sysdeps/generic/wcstoull_l.c (wcstoull_l): Define as weak alias.
1021         * sysdeps/wordsize-64/wcstol_l.c (wcstoll_l): Define as weak alias.
1022         * sysdeps/wordsize-64/wcstoul_l.c (wcstoull_l): Define as weak alias.
1023         * wctype/wctrans_l.c (wctrans_l) Define as weak alias.
1024         * wctype/towctrans_l.c (towctrans_l) Define as weak alias.
1025         * wctype/wctype_l.c (wctype_l) Define as weak alias.
1027 2002-08-05  Roland McGrath  <roland@redhat.com>
1029         * include/rpc/auth.h: Use libc_hidden_proto for getnetname,
1030         netname2user, host2netname, user2netname, key_gendes.
1031         * sunrpc/netname.c: Add libc_hidden_def.
1032         * sunrpc/key_call.c: Likewise.
1034         * include/netdb.h: Use libc_hidden_proto for getaddrinfo, getnameinfo,
1035         freeaddrinfo.
1036         * inet/getnameinfo.c: Add libc_hidden_def.
1037         * sysdeps/generic/getaddrinfo.c: Likewise.
1038         * sysdeps/posix/getaddrinfo.c: Likewise.
1040         * include/wchar.h: Use libc_hidden_proto for wmemchr, wmemset.
1041         * wcsmbs/wmemchr.c: Add libc_hidden_def.
1042         * wcsmbs/wmemset.c: Add libc_hidden_def.
1044         * include/string.h: Move libc_hidden_proto's inside #ifndef _STRING_H.
1045         (index, rindex): Define as macros for strchr, strrchr.
1047         * string/envz.c (envz_strip): index -> strchr
1049         * include/rpc/rpc_msg.h: Use libc_hidden_proto for _seterr_reply.
1050         * sunrpc/rpc_prot.c: Add libc_hidden_def.
1052         * include/wchar.h: Use libc_hidden_proto for mbrtowc.
1053         * wcsmbs/mbrtowc.c: Add libc_hidden_weak.
1055         * include/stdlib.h: Use libc_hidden_proto for wctomb.
1056         * stdlib/wctomb.c: Add libc_hidden_def.
1058         * include/netdb.h: Use libc_hidden_proto for innetgr, rcmd_af,
1059         rexec_af, rresvport_af, ruserok_af, iruserok_af, ruserpass, hstrerror.
1060         * resolv/herror.c: Likewise.
1061         * inet/rcmd.c: Add libc_hidden_def.
1062         * inet/ruserpass.c: Likewise.
1063         * inet/getnetgrent_r.c: Likewise.
1065         * include/rpc/svc.h: Use libc_hidden_proto for svc_register,
1066         svc_unregister, remove *_internal decls.  Use libc_hidden_proto
1067         for svcerr_auth, svcerr_noprog, svcerr_progvers.
1068         * sunrpc/svc.c (svc_register, svc_unregister): Change INTDEF to
1069         libc_hidden_def.
1070         (svcerr_auth, svcerr_noprog, svcerr_progvers): Add libc_hidden_def.
1071         * sunrpc/svc_simple.c (registerrpc): Nix INTUSE for svc_register.
1073         * sysdeps/posix/system.c (do_system): New function, guts broken out of
1074         __libc_system.
1075         (__libc_system): Call it, putting just the line == NULL test here.
1077         * include/libc-symbols.h (__hidden_proto): Add extern keywords so
1078         variables work right.
1080         * elf/dl-open.c (dl_open_worker): Use _ macro instead of gettext.
1081         * elf/dl-close.c (_dl_close): Likewise.
1083         * include/netinet/in.h: Use libc_hidden_proto for bindresvport,
1084         in6addr_any, in6addr_loopback.  Remove decls for
1085         bindresvport_internal, in6addr_any_internal, in6addr_loopback_internal.
1086         * sunrpc/svc_udp.c (svcudp_bufcreate): Nix INTUSE for bindresvport.
1087         * sunrpc/svc_tcp.c (svctcp_create): Likewise.
1088         * sunrpc/clnt_udp.c (clntudp_bufcreate): Likewise.
1089         * sunrpc/bindrsvprt.c: Change INTDEF to libc_hidden_def.
1090         * inet/in6_addr.c: Change INTVARDEF to libc_hidden_def.
1091         * sysdeps/posix/getaddrinfo.c (gaih_inet): Nix INTUSE for
1092         in6addr_loopback.
1093         * inet/gethstbyad_r.c (PREPROCESS): Nix INTUSE for in6addr_any.
1095         * include/netinet/ether.h: Use libc_hidden_proto for ether_ntoa_r,
1096         ether_aton_r.
1097         * inet/ether_aton_r.c: Add libc_hidden_def.
1098         * inet/ether_ntoa_r.c: Likewise.
1100         * include/rpc/svc.h: Use libc_hidden_proto for xprt_register,
1101         xprt_unregister.
1102         * sunrpc/svc.c: Add libc_hidden_def.
1103         * include/rpc/pmap_clnt.h: Use libc_hidden_proto for pmap_getport,
1104         pmap_set, pmap_unset.
1105         * sunrpc/pmap_clnt.c: Add libc_hidden_def.
1106         * sunrpc/pm_getport.c: Likewise.
1107         * include/rpc/auth_des.h: Use libc_hidden_proto for getpublickey.
1108         * sunrpc/publickey.c: Add libc_hidden_def.
1110 2002-08-05  Ulrich Drepper  <drepper@redhat.com>
1112         * elf/rtld.c (_dl_start): Don't use memset.  Use same tricks as for
1113         the other memset call in this function.
1115         * sysdeps/generic/dl-tls.c (_dl_allocate_tls_init): Store dtv pointer
1116         at correct index.  Clear BSS region now that memalign is used.
1118 2002-08-05  Roland McGrath  <roland@redhat.com>
1120         * include/sys/utsname.h: Use libc_hidden_proto for uname, __uname.
1121         * sysdeps/generic/uname.c: Add libc_hidden_def.
1122         * sysdeps/mach/hurd/uname.c: Likewise.
1124 2002-08-05  Jakub Jelinek  <jakub@redhat.com>
1126         * include/wchar.h (wcrtomb, wcscmp, wcsftime, wcsspn, wcschr, wcscoll,
1127         wcspbrk): Add libc_hidden_proto.
1128         * time/strftime.c (my_strftime): Add libc_hidden_def.
1129         (strftime): Remove libc_hidden_def.
1130         * wcsmbs/wcschr.c (wcschr): Add libc_hidden_def.
1131         * wcsmbs/wcspbrk.c (wcspbrk): Likewise.
1132         * wcsmbs/wcsspn.c (wcsspn): Likewise.
1133         * wcsmbs/wcscmp.c (wcscmp): Likewise.
1134         * wcsmbs/wcrtomb.c (wcrtomb): Add libc_hidden_weak.
1135         * wcsmbs/wcscoll.c (wcscoll): Likewise.
1137         * include/rpc/rpc.h (__rpc_thread_svc_max_pollfd,
1138         __rpc_thread_svc_pollfd, __rpc_thread_svc_fdset,
1139         __rpc_thread_createerr): Add libc_hidden_proto.
1140         * sunrpc/rpc_thread.c (__rpc_thread_svc_max_pollfd,
1141         __rpc_thread_svc_pollfd, __rpc_thread_svc_fdset,
1142         __rpc_thread_createerr): Add libc_hidden_def.
1144         * include/rpc/clnt.h (clnt_sperrno, clnt_spcreateerror,
1145         clnt_perror, clnt_sperror, _rpc_dtablesize): Add libc_hidden_proto.
1146         * sunrpc/clnt_perr.c (clnt_sperrno, clnt_spcreateerror,
1147         clnt_perror, clnt_sperror): Add libc_hidden_def.
1148         * sunrpc/rpc_dtable.c (_rpc_dtablesize): Likewise.
1150         * include/rpc/des_crypt.h (des_setparity, ecb_crypt, cbc_crypt): Add
1151         libc_hidden_proto.
1152         * sunrpc/des_crypt.c (ecb_crypt, cbc_crypt): Add libc_hidden_proto.
1153         * sunrpc/des_soft.c (des_setparity): Likewise.
1155         * include/rpc/auth.h (key_encryptsession_pk, key_decryptsession_pk):
1156         Add libc_hidden_proto.
1157         * sunrpc/key_call.c (key_encryptsession_pk, key_decryptsession_pk):
1158         Add libc_hidden_def.
1160 2002-08-05  Roland McGrath  <roland@redhat.com>
1162         * sysdeps/generic/ldsodefs.h (struct rtld_global): Replace member
1163         `bool _dl_initial_dtv_malloced' with `void *_dl_initial_dtv'.
1164         * elf/rtld.c (dl_main): Set it to the new dtv for the main thread.
1165         * sysdeps/generic/dl-tls.c (__tls_get_addr): When reallocating the
1166         dtv, check if it matches _dl_initial_dtv; if so, malloc and copy the
1167         old data, abandoning the original memory allocated by rtld at startup,
1168         instead of calling realloc normally.
1170 2002-08-05  Ulrich Drepper  <drepper@redhat.com>
1172         * po/fr.po: Update from translation team.
1174 2002-08-04  Roland McGrath  <roland@redhat.com>
1176         * sysdeps/unix/make-syscalls.sh: If the syscall name field is -
1177         then generate a dummy module under the given name, obeying the
1178         normal rules for the "caller" field.
1180         * sysdeps/generic/libc-tls.c (__libc_setup_tls): Make the phdr loop
1181         actually iterate over the elements.  Fix typo p_type -> p_vaddr.
1183         * include/pthread.h: Don't declare __pthread_initialize_minimal as
1184         weak here; we declare it weak or strong in the one place we use it.
1185         * sysdeps/generic/libc-start.c: ... which is here.
1186         Don't make the decl weak if [USE_TLS], since static programs need TLS
1187         setup even when single-threaded.
1189         * stdlib/isomac.c (fmt): Add -DNOT_IN_libc to the compiler command.
1191         * elf/Makefile (test-srcs): Add $(modules-names) to it.
1192         (CFLAGS-vismod2.c, CFLAGS-failobj.c, CFLAGS-constload2.c,
1193         CFLAGS-reldepmod3.c, CFLAGS-reldepmod4.c, CFLAGS-ltglobmod2.c): Remove
1194         all these variables.
1196 2002-08-04  Ulrich Drepper  <drepper@redhat.com>
1198         * include/stdio.h: Don't define macro magic to redirect function
1199         calls if _ISOMAC is defined.
1201         * sysdeps/i386/fpu/libm-test-ulps: Add epsilons for inlined
1202         ldouble asin tests.
1204 2002-08-04  Roland McGrath  <roland@redhat.com>
1206         * stdlib/lrand48_r.c: Add libc_hidden_def.
1208         * sysdeps/generic/dl-tls.c (_dl_allocate_tls_storage): Allocate the
1209         TCB with __libc_memalign instead of mmap.
1210         (_dl_deallocate_tls): Free it with free instead of munmap.
1212         * Makerules (cpp-srcs-left): When setting this to run
1213         cppflags-iterator.mk, must append .c to $(tests) and $(xtests)
1214         words.  Combine the two loops into one on the concatenated list,
1215         including those as well as $(test-srcs).
1217         * elf/dl-minimal.c (__libc_memalign): Guts of malloc moved here,
1218         since we align here with optimally minimal waste anyway.
1219         (malloc): Just call that.
1221         * sysdeps/generic/libc-tls.c (__libc_setup_tls): Set l_tls_offset to
1222         the right variable.
1224         * elf/dl-load.c (_dl_map_object_from_fd): Use p_vaddr, not p_offset,
1225         to compute memory location for l_tls_initimage.
1226         * elf/rtld.c (_dl_start): Likewise.
1227         * sysdeps/generic/libc-tls.c (__libc_setup_tls): Likewise.
1229         * libio/oldiopopen.c: Move #include's before #if SHLIB_COMPAT,
1230         because the .d file is generated in the non-shared case and
1231         so fails to catch them otherwise.
1233         * sysdeps/generic/dl-tls.c (_dl_allocate_tls_storage): New function,
1234         split out of _dl_allocate_tls.
1235         (_dl_allocate_tls_init): Likewise.
1236         (_dl_allocate_tls): Call those.
1237         * sysdeps/generic/ldsodefs.h: Declare them with attribute_hidden.
1238         * elf/rtld.c (dl_main): Call them separately instead of calling
1239         _dl_allocate_tls.  Delay _dl_allocate_tls_init until after relocation
1240         is finished, so that the initializer data has been relocated before we
1241         copy it into the main thread's TLS block.
1243         * sysdeps/generic/dl-tls.c (_dl_allocate_tls): Fix off-by-one error in
1244         loop conditions, prevented the last used module from being initialized.
1246 2002-08-04  Jakub Jelinek  <jakub@redhat.com>
1248         * sysdeps/generic/glob.c (glob, globfree): Only use libc_hidden_def
1249         if glob resp. globfree are not macros.
1250         * sysdeps/gnu/glob64.c (globfree64): Add libc_hidden_def.
1251         * sysdeps/unix/sysv/linux/alpha/glob.c (glob, globfree, globfree64):
1252         Add libc_hidden_ver.
1253         * sysdeps/unix/sysv/linux/i386/glob64.c (globfree64): Add
1254         libc_hidden_def.
1255         * sysdeps/wordsize-64/glob.c (globfree64): Use libc_hidden_ver
1256         instead of libc_hidden_weak.
1257         * sysdeps/wordsize-64/strtol.c (__strtoll_internal): Use
1258         libc_hidden_ver instead of libc_hidden_def.
1259         * sysdeps/wordsize-64/wcstol.c (__wcstoll_internal): Use
1260         libc_hidden_ver instead of libc_hidden_def.
1261         (wcstoll, wcstoq): Remove libc_hidden_weak.
1262         * sysdeps/wordsize-64/strtol_l.c (____strtoll_l_internal): Add
1263         libc_hidden_ver.
1264         * sysdeps/wordsize-64/strtoul.c (__strtoull_internal): Add
1265         libc_hidden_ver.
1266         * sysdeps/wordsize-64/strtoul_l.c (____strtoull_l_internal): Add
1267         libc_hidden_ver.
1268         * sysdeps/wordsize-64/wcstoul.c (__wcstoull_internal): Add
1269         libc_hidden_ver.
1271 2002-08-04  Ulrich Drepper  <drepper@redhat.com>
1273         * stdio-common/psignal.c: Declare _sys_siglist_internal.  Use USEINT
1274         to access _sys_siglist.
1275         * string/strsignal.c: Likewise.
1276         * sysdeps/generic/siglist.c: Add _sys_siglist_internal alias.
1277         * sysdeps/gnu/siglist.c: Likewise.
1278         * sysdeps/unix/siglist.c: Likewise.
1279         * sysdeps/unix/sysv/linux/arm/siglist.c: Likewise.
1281         * libio/fileops.c: Add missing INTUSEs for _IO_file_jumps.
1283         * libio/wfileops.c: Add missing INTUSE for _IO_file_close.
1285         * intl/dcigettext.c: Define _nl_default_dirname_internal as hidden
1286         alias and use it.
1287         * intl/bindtextdom.c: Use _nl_default_dirname_internal.
1289         * include/netinet/in.h: Add declaration of in6addr_loopback_internal.
1290         * inet/in6_addr.c: Add INTVARDEF for in6addr_loopback.
1291         * sysdeps/posix/getaddrinfo.c: Use INTUSE for in6addr_loopback access.
1293         * include/time.h: Add libc_hidden_proto for __gmtime_r.
1294         * time/gmtime.c (__gmtime_r): Add libc_hidden_def.
1296         * iconv/Versions: Replace __gconv_alias_db, __gconv_modules_db,
1297         and __gconv_cache with __gconv_get_alias_db, __gconv_get_modules_db,
1298         and __gconv_get_cache respectively.
1299         * iconv/gconv_cache.c (gconv_cache): Renamed for __gconv_cache and
1300         defined static.  Change all users.
1301         (__gconv_get_cache): New function.
1302         * iconv/gconv_db.c (__gconv_get_modules_db): New function.
1303         (__gconv_get_alias_db): New function.
1304         * iconv/gconv_int.h (__gconv_alias_db): Declare as hidden.
1305         (__conv_modules_db): Likewise.
1306         Add prototypes for __gconv_get_cache, __gconv_get_modules_db,
1307         and __gconv_get_alias_db.
1308         * iconv/iconv_prog.c: Use the new functions instead of accessing the
1309         variables.
1311         * include/stdlib.h: Add prototype and libc_hidden_proto for
1312         __default_morecore.
1313         * sysdeps/generic/morecore.c: Include <stdlib.h>.
1315         * malloc/obstack.c: Remove fputs macro.
1317         * malloc/mtrace.c: Remove fopen macro.
1319 2002-08-04  Jakub Jelinek  <jakub@redhat.com>
1321         * manual/debug.texi: Fix spelling to programmatically.
1322         Reported by <hayastan132@hotmail.com>.
1324 2002-08-04  Ulrich Drepper  <drepper@redhat.com>
1326         * include/libio.h: Add libc_hidden_proto for __uflow.
1327         * include/stdio.h: Map fopen, fdopen, fclose, fputs, fsetpos, and
1328         fgetpos to _IO_* names.
1329         Add libc_hidden_proto for fileno, fwrite, fseek, fflush_unlocked,
1330         fread_unlocked, fwrite_unlocked, fgets_unlocked, fputs_unlocked.
1331         * include/wchar.h: Add libc_hidden_proto for fputws_unlocked,
1332         putwc_unlocked, vswscanf.
1333         * libio/iolibio.h: Add libc_hidden_proto for _IO_fputs.
1334         * libio/fileno.c: Use <stdio.h> and libc_hidden_def.
1335         * libio/fseek.c: Likewise.
1336         * libio/fmemopen.c: Include "libioP.h".  Call _IO_fopencookie and
1337         not fopencookie.
1338         * libio/genops.c (__uflow): Add libc_hidden_def.
1339         * libio/iofflush_u.c (fflush_unlocked): Likewise.
1340         * libio/iofgets_u.c (fgets_unlocked): Likewise.
1341         * libio/iofputs_u.c (fputs_unlocked): Likewise.
1342         * libio/iofputws_u.c (fputws_unlocked): Likewise.
1343         * libio/iofread_u.c (fread_unlocked): Likewise.
1344         * libio/iofwrite_u.c (fwrite_unlocked): Likewise.
1345         * libio/iovswscanf.c (vswscanf): Likewise.
1346         * libio/putwc_u.c (putwc_unlocked): Likewise.
1347         * libio/iofputs.c: Use libc_hidden_def instead of INTDEF.
1348         * malloc/malloc.c: Redirect fwrite calls to _IO_fwrite.
1349         * malloc/mtrace.c: Likewise.
1351         * sunrpc/clnt_perr.c: Remove fputs macro.
1352         * sunrpc/svc_simple.c: Likewise.
1353         * sunrpc/svc_tcp.c: Likewise.
1354         * sunrpc/svc_udp.c: Likewise.
1355         * sunrpc/xdr_rec.c: Likewise.
1356         * sunrpc/xdr_ref.c: Likewise.
1358         * iconv/Makefile: Add CPPFLAGS definitions with -DNOT_in_libc for
1359         iconv_prog, linereader, and charmap-dir.
1360         * locale/Makefile: Likewise for locale and charmap-dir.
1361         * malloc/Makefile: Likewise for memusagestat.
1362         * nscd/Makefile: Likewise for nscd, nscd_conf, and dbg_log.
1363         * sunrpc/Makefile: Likewise for rpc_main.
1364         * sysdeps/unix/sysv/linux/Makefile: Likewise for lddlibc4.
1365         * timezone/Makefile: Likewise for zic.
1367         * stdio-common/perror.c: Avoid multiple calls to fileno_unlocked.
1369         * elf/dl-addr.c (_dl_addr): Add libc_hidden_def.
1370         * elf/dl-close.c (_dl_close): Add libc_hidden_def.
1371         * elf/dl-open.c (_dl_open): Add libc_hidden_def.
1372         * include/dlfcn.h: Add libc_hidden_proto for _dl_addr, _dl_open,
1373         _dl_close.
1375         * include/libio.h: Add libc_hidden_proto for __underflow, __wuflow,
1376         __wunderflow.
1377         * libio/genops.c (__underflow): Add libc_hidden_def.
1378         * libio/wgenops.c (__wuflow): Likewise.
1379         (__wunderflow): Likewise.
1381         * include/obstack.h: Add libc_hidden_proto for _obstack_newchunk.
1382         * malloc/obstack.c (_obstack_newchunk): Add libc_hidden_def.
1384         * include/stdio.h: Add libc_hidden_proto for __vfscanf.
1385         * stdio-common/vfscanf.c (__vfscanf): Add libc_hidden_def.
1387         * include/string.h: Add libc_hidden_proto for __strverscmp.
1388         * string/strverscmp.c (__strverscmp): Add libc_hidden_def.
1390         * include/unistd.h: Add libc_hidden_proto for __sysconf.
1391         * sysdeps/generic/sysconf.c (__sysconf): Add libc_hidden_def.
1392         * sysdeps/posix/sysconf.c: Likewise.
1393         * sysdeps/unix/sysv/irix4/sysconf.c: Likewise.
1394         * sysdeps/unix/sysv/sysv4/sysconf.c: Likewise.
1396         * include/wctype.h: Use libc_hidden_proto for __iswctype, __iswalnum_l,
1397         __iswalpha_l, __iswblank_l, __iswcntrl_l, __iswdigit_l, __iswlower_l,
1398         __iswgraph_l, __iswprint_l, __iswpunct_l, __iswspace_l, __iswupper_l,
1399         __iswxdigit_l, __towlower_l, __towupper_l.
1400         * wcsmbs/wcstype.c (__iswctype): Use libc_hidden_def.
1401         * wcsmbs/wcfuncs_l.c: Use libc_hidden_def for all functions.
1403         * include/sys/wait.h: Add libc_hidden_proto for __xmknod.
1404         * sysdeps/generic/xmknod.c (__xmknod): Add libc_hidden_def.
1405         * sysdeps/mach/hurd/xmknod.c: Likewise.
1406         * sysdeps/unix/xmknod.c: Likewise.
1407         * sysdeps/unix/sysv/linux/xmknod.c: Likewise.
1408         * sysdeps/unix/sysv/linux/alpha/xmknod.c: Likewise.
1409         * sysdeps/unix/sysv/linux/mips/xmknod.c: Likewise.
1411         * sunrpc/svc.c: Add missing INTUSE for _authenticate.
1413 2002-08-03  Roland McGrath  <roland@redhat.com>
1415         * include/sys/resource.h: Use libc_hidden_proto for getpriority,
1416         setpriority.
1417         * sysdeps/unix/sysv/linux/getpriority.c: Add libc_hidden_def.
1418         * sysdeps/unix/sysv/irix4/getpriority.c: Likewise.
1419         * sysdeps/unix/sysv/irix4/setpriority.c: Likewise.
1420         * sysdeps/mach/hurd/setpriority.c: Likewise.
1421         * sysdeps/mach/hurd/getpriority.c: Likewise.
1422         * sysdeps/generic/setpriority.c: Likewise.
1423         * sysdeps/generic/getpriority.c: Likewise.
1425         * include/mcheck.h: Use libc_hidden_proto for mcheck_check_all.
1426         * malloc/mcheck.c: Add libc_hidden_def.
1428         * include/search.h: Use libc_hidden_proto for hcreate_r, hdestroy_r.
1429         * misc/hsearch_r.c: Add libc_hidden_def.
1431         * include/fnmatch.h: Use libc_hidden_proto for fnmatch.
1432         * posix/fnmatch.c: Add libc_hidden_weak.
1434         * include/unistd.h: Use libc_hidden_proto for _exit, alarm, confstr,
1435         execl, execle, execlp, execvp, getpid, getsid.
1436         * sysdeps/generic/alarm.c: Add libc_hidden_def.
1437         * sysdeps/unix/alarm.c: Likewise.
1438         * posix/confstr.c: Likewise.
1439         * posix/execvp.c: Likewise.
1440         * posix/execlp.c: Likewise.
1441         * posix/execle.c: Likewise.
1442         * posix/execl.c: Likewise.
1443         * sysdeps/generic/getsid.c: Likewise.
1444         * sysdeps/mach/hurd/getsid.c: Likewise.
1445         * sysdeps/generic/getpid.c: Add libc_hidden_weak.
1446         * sysdeps/mach/hurd/getpid.c: Likewise.
1448         * include/stdlib.h: Use libc_hidden_proto for ecvt_r, fcvt_r,
1449         qecvt_r, qfcvt_r, lrand48_r.
1450         * misc/efgcvt_r.c: Add libc_hidden_def.
1452         * include/wordexp.h: Use libc_hidden_proto for wordfree.
1453         * sysdeps/generic/wordexp.c: Add libc_hidden_def.
1455         * include/langinfo.h: Use libc_hidden_proto for nl_langinfo.
1456         * locale/nl_langinfo.c: Add libc_hidden_def.
1458         * include/glob.h: Use libc_hidden_proto for glob, globfree, globfree64.
1459         * sysdeps/generic/glob.c: Add libc_hidden_def.
1460         * sysdeps/generic/glob64.c: Likewise.
1461         * sysdeps/wordsize-64/glob.c (globfree64): Add libc_hidden_weak.
1463         * locale/nl_langinfo.c: Use _NL_CURRENT_DATA.
1465         * elf/Makefile (CFLAGS-vismod2.c): New variable.
1467         * locale/setlocale.c (_nl_current_names): Variable moved ...
1468         * locale/localename.c (_nl_current_names): ... here, new file.
1469         Make it global, with attribute_hidden.
1470         * locale/localeinfo.h: Declare it.
1471         * locale/Makefile (aux): Add localename.
1472         * locale/localename.c (__current_locale_name): New function.
1473         * include/locale.h (__current_locale_name): Declare it.
1474         * intl/dcigettext.c (guess_category_value): Use that instead of
1475         calling setlocale.
1477         * locale/locale.h [__USE_GNU] (locale_t): New type alias of __locale_t.
1478         [__USE_GNU] (newlocale, duplocale, freelocale, uselocale): New decls.
1479         [__USE_GNU] (LC_GLOBAL_LOCALE): New macro.
1480         * locale/newlocale.c: Add alias to __ name.
1481         * locale/duplocale.c: Likewise.
1482         * locale/freelocale.c: Likewise.
1483         * locale/uselocale.c: New file.
1484         * locale/Makefile (routines): Add it.
1485         * locale/Versions (libc: GLIBC_2.3): New set.
1486         Add newlocale, duplocale, freelocale, uselocale.
1487         (libc: GLIBC_PRIVATE): Add __uselocale.
1489         * locale/localeinfo.h [SHARED]
1490         (_NL_CURRENT_LOCALE): New macro, defined to fetch a tsd value.
1491         (_NL_CURRENT_DATA): Define using that.
1492         (_NL_CURRENT, _NL_CURRENT_WSTR, _NL_CURRENT_WORD): Define using that.
1493         (_NL_CURRENT_DEFINE): Define to empty.
1494         [! SHARED]: Decls of _nl_current_CATEGORY and _nl_current
1495         conditionalized on this.
1496         * locale/xlocale.c (NL_C_INTIIALIZER): New macro,
1497         taking initializer of _nl_C_locobj.
1498         [SHARED] (_nl_global_locale): New variable, using that initializer.
1499         (_nl_C_locobj): Use new macro for initialzier.
1500         * locale/setlocale.c [! SHARED] (_nl_current): Conditionalize on this.
1501         [! SHARED] (CATEGORY_USED): New macro.
1502         [SHARED] (CATEGORY_USED, _nl_C): New macros.
1503         (setdata, setlocale): Use that macro instead of examining _nl_current.
1504         (setdata): Set the slot in _nl_global_locale.
1505         Conditionalize setting of _nl_current on [! SHARED].
1506         * locale/findlocale.c [SHARED] (_nl_C): Define as a macro instead of
1507         declaration as an extern.
1508         * locale/newlocale.c (__newlocale): Use _nl_C_locobj instead of _nl_C.
1510         * include/locale.h: Use libc_hidden_proto for setlocale.
1511         * locale/setlocale.c: Add libc_hidden_def.
1513         * locale/setlocale.c (free_mem): Use _NL_CURRENT_DATA.
1515         * include/search.h: Use libc_hidden_proto for hsearch_r, lfind.
1516         * misc/hsearch_r.c: Add libc_hidden_def.
1517         * misc/lsearch.c: Likewise.
1519         * include/ttyent.h: Use libc_hidden_proto for getttyent, setttyent,
1520         endttyent.
1521         * misc/getttyent.c: Add libc_hidden_def.
1523         * include/mcheck.h: Use libc_hidden_proto for mcheck.
1524         * malloc/mcheck.c: Add libc_hidden_def.
1526         * include/envz.h: Use libc_hidden_proto for envz_entry, enz_remove.
1527         * include/argz.h: Use libc_hidden_proto for argz_delete.
1528         * string/argz-delete.c: Add libc_hidden_def.
1529         * string/envz.c: Likewise.  Use <envz.h>, not "envz.h".
1531         * sysdeps/unix/sysv/linux/x86_64/clone.S (thread_start): Use
1532         HIDDEN_JUMPTARGET for _exit.
1533         * sysdeps/unix/sysv/linux/m68k/clone.S (thread_start): Likewise.
1534         * sysdeps/unix/sysv/linux/i386/clone.S (thread_start): Likewise.
1535         * sysdeps/unix/sysv/linux/powerpc/clone.S: Likewise.
1536         * sysdeps/unix/_exit.S (_exit): Add libc_hidden_def.
1538         * include/libc-symbols.h: Fix [__ASSEMBLY__] -> [__ASSEMBLER__].
1539         [__ASSEMBLER__] (hidden_weak): Define using hidden_def, or to empty.
1540         [__ASSEMBLER__] (HIDDEN_JUMPTARGET): New macro.
1541         * sysdeps/unix/sysv/linux/i386/makecontext.S: Use it for exit.
1543         * include/stdlib.h: Use libc_hidden_proto for abort,
1544         __strtof_internal, __strtod_internal, __strtold_internal,
1545         __strtol_internal, __strtoll_internal, __strtoul_internal,
1546         __strtoull_internal. __strtof_l_internal, __strtod_l_internal,
1547         __strtold_l_internal, __strtol_l_internal, __strtoll_l_internal,
1548         __strtoul_l_internal, __strtoull_l_internal.
1549         * include/wchar.h: Use libc_hidden_proto for __wcstof_internal,
1550         __wcstod_internal, __wcstold_internal, __wcstol_internal,
1551         __wcstoll_internal, __wcstoul_internal, ____wcstof_l_internal,
1552         ____wcstod_l_internal, ____wcstold_l_internal, ____wcstol_l_internal,
1553         ____wcstoll_l_internal, ____wcstoul_l_internal, __wcscasecmp_l,
1554         __wcsncasecmp_l.
1555         * sysdeps/generic/abort.c: Add libc_hidden_def.
1556         * stdlib/strtod.c: Likewise.
1557         * sysdeps/generic/strtol.c: Likewise.
1558         * sysdeps/wordsize-64/strtol.c: Likewise.
1559         * sysdeps/wordsize-64/wcstol.c: Likewise.
1560         * sysdeps/wordsize-64/wcstol_l.c: Likewise.
1562         * include/stdlib.h: Use libc_hidden_proto for qsort.
1563         * stdlib/msort.c: Add libc_hidden_def.
1565         * include/utime.h: Use libc_hidden_proto for utime.
1566         * sysdeps/generic/utime.c: Add libc_hidden_def.
1567         * sysdeps/unix/utime.c: Likewise.
1569         * sysdeps/generic/utmp_file.c (LOCK_FILE): sigemptyset -> __sigemptyset
1570         * sysdeps/posix/profil.c (__profil): sigfillset -> __sigfillset
1571         * sysdeps/posix/sprofil.c (__sprofil): Likewise.
1572         * shadow/lckpwdf.c (__lckpwdf): Likewise (both).
1573         * sysdeps/posix/spawni.c (__spawni): sigismember -> __sigismember
1575         * include/signal.h: Use libc_hidden_proto for raise, sigemptyset,
1576         sigfillset, sigismember, __sigpause, __libc_current_sigrtmin,
1577         and __libc_current_sigrtmax.
1578         * signal/sigismem.c: Add libc_hidden_def.
1579         * signal/sigfillset.c: Likewise.
1580         * signal/sigempty.c: Likewise.
1581         * sysdeps/generic/sigpause.c (__sigpause): Likewise.
1582         * sysdeps/posix/sigpause.c (__sigpause): Likewise.
1583         * sysdeps/unix/bsd/osf/alpha/sigpause.S: Likewise.
1584         * sysdeps/posix/raise.c: Likewise.
1585         * sysdeps/generic/raise.c: Likewise.
1587 2002-08-03  Ulrich Drepper  <drepper@redhat.com>
1589         * include/string.h: Use libc_hidden_proto for __stpcpy.
1590         * sysdeps/alpha/stpcpy.S (__stpcpy): Add libc_hidden_def.
1591         * sysdeps/alpha/alphaev67/stpcpy.S: Likewise.
1592         * sysdeps/generic/stpcpy.c: Likewise.
1593         * sysdeps/i386/stpcpy.S: Likewise.
1594         * sysdeps/i386/i586/stpcpy.S: Likewise.
1595         * sysdeps/powerpc/stpcpy.S: Likewise.
1596         * sysdeps/sparc/sparc32/stpcpy.S: Likewise.
1597         * sysdeps/sparc/sparc64/stpcpy.S: Likewise.
1599         * include/string.h: Use libc_hidden_proto for __strcasecmp_l,
1600         __strncasecmp_l, __strdup, __strndup, __strerror_r.
1601         * sysdeps/generic/strcasecmp_l.c (__strcasecmp_l): Add
1602         libc_hidden_def.
1603         * string/strdup.c (__strdup): Likewise.
1604         * string/strndup.c (__strndup): Likewise.
1605         * sysdeps/generic/_strerror.c (__strerror_r): Likewise.
1606         * sysdeps/generic/strncase_l.c (__strncasecmp_l): Likewise.
1608 2002-08-03  Jakub Jelinek  <jakub@redhat.com>
1610         * include/libio.h: New file.
1611         * libio/libioP.h (__overflow, __woverflow): Remove libc_hidden_proto.
1612         * libio/iolibio.h: #include <libio.h>, not "libio.h".
1613         * sysdeps/generic/morecore.c (__sbrk): Add libc_hidden_proto.
1614         * sysdeps/unix/bsd/syscalls.list: Remove all __GI_* aliases.
1615         * sysdeps/unix/common/syscalls.list: Likewise.
1616         * sysdeps/unix/inet/syscalls.list: Likewise.
1617         * sysdeps/unix/sysv/irix4/syscalls.list: Likewise.
1618         * sysdeps/unix/sysv/linux/alpha/syscalls.list: Likewise.
1619         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
1620         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
1621         * sysdeps/unix/sysv/linux/hppa/syscalls.list: Likewise.
1622         * sysdeps/unix/sysv/linux/mips/syscalls.list: Likewise.
1623         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
1624         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
1625         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
1626         * sysdeps/unix/sysv/sysv4/solaris2/syscalls.list: Likewise.
1627         * sysdeps/unix/syscalls.list: Likewise.
1629 2002-08-03  Jakub Jelinek  <jakub@redhat.com>
1630             Ulrich Drepper  <drepper@redhat.com>
1632         * malloc/malloc.c (public_cALLOc): Only divide if at least one of
1633         the arguments is big enough to cause an overflow.
1635 2002-08-03  Ulrich Drepper  <drepper@redhat.com>
1637         * assert/assert.c: Use hidden_def not INTDEF.
1639 2002-08-03  Jakub Jelinek  <jakub@redhat.com>
1641         * include/libc-symbols.h: Optimize if HAVE_BROKEN_ALIAS_ATTRIBUTE is
1642         not defined.
1644 2002-08-03  Roland McGrath  <roland@redhat.com>
1646         * include/sys/syslog.h: Use libc_hidden_proto for syslog, vsyslog.
1647         * include/err.h: Use libc_hidden_proto for warn, warnx, vwarn, vwarn,
1648         verr, verrx.
1649         * include/stdlib.h: Use libc_hidden_proto for exit, getenv, bsearch.
1650         * misc/syslog.c: Add libc_hidden_def.
1651         * misc/err.c: Likewise.
1652         * stdlib/exit.c: Likewise.
1653         * stdlib/bsearch.c: Likewise.
1654         * sysdeps/generic/getenv.c: Likewise.
1656         * include/libc-symbols.h (hidden_weak): Define it for [__ASSEMBLER__].
1658         * sysdeps/unix/make-syscalls.sh: Generate libc_hidden_def or
1659         libc_hidden_weak for every system call symbol defined.
1661         * include/time.h: Use libc_hidden_proto for time, asctime, mktime,
1662         timelocal, localtime, strftime.
1663         * time/asctime.c: Add libc_hidden_def.
1664         * time/mktime.c: Likewise.
1665         * time/localtime.c: Likewise.
1666         * time/strftime.c: Likewise.
1667         * time/strptime.c: Likewise.
1668         * sysdeps/generic/time.c: Likewise.
1669         * sysdeps/unix/time.c: Likewise.
1670         * sysdeps/unix/sysv/i386/time.S: Likewise.
1671         * sysdeps/unix/sysv/linux/x86_64/time.S: Likewise.
1673         * include/arpa/inet.h: Use libc_hidden_proto for inet_ntop, inet_pton.
1674         inet_makeaddr, inet_netof, inet_addr, __inet_addr.
1675         * resolv/inet_ntop.c: Likewise.
1676         * resolv/inet_pton.c: Likewise.
1677         * inet/inet_mkadr.c: Add libc_hidden_def.
1678         * inet/inet_netof.c: Likewise.
1679         * resolv/inet_addr.c: Likewise.
1681         * include/libc-symbols.h: Remove `defined HAVE_BROKEN_ALIAS_ATTRIBUTE'
1682         clauses from conditionals for now.  Will have to be fixed later
1683         for older compilers.
1685         * sysdeps/generic/mempcpy.c (__mempcpy): #undef it before defn.
1687 2002-08-02  Ulrich Drepper  <drepper@redhat.com>
1689         * configure.in (HAVE_BROKEN_ALIAS_ATTRIBUTE): Add check for
1690         broken alias attribute handling.
1691         * config.h.in (HAVE_BROKEN_ALIAS_ATTRIBUTE): Add.
1693 2002-08-02  Roland McGrath  <roland@frob.com>
1695         * elf/Makefile ($(objpfx)interp.os): Depend on config.make,
1696         since it sets the variables we use in a -D switch.
1698 2002-08-02  Roland McGrath  <roland@redhat.com>
1700         * posix/bits/posix1_lim.h (SSIZE_MAX): Define to LONG_MAX, not INT_MAX.
1701         On 32-bit platforms they are the same; on 64-bit platforms ssize_t
1702         matches long int, not int.
1704         * locale/localeinfo.h (_NL_CURRENT_DATA): New macro.
1705         * wcsmbs/wcsmbsload.h (update_conversion_ptrs): Use it.
1706         * locale/lc-ctype.c (_nl_postload_ctype): Likewise.
1707         * wctype/wctrans.c (wctrans): Likewise.
1708         * wctype/wctype.c (__wctype): Likewise.
1709         * intl/loadmsgcat.c (_nl_init_domain_conv): Use _NL_CURRENT.
1711 2002-08-02  Ulrich Drepper  <drepper@redhat.com>
1713         * assert/assert.c (__assert_fail): Fix typo in comment.
1715         * include/rpc/rpc.h: Declare RPC_VARS tsd as extern.
1716         * sunrpc/rpc_thread.c: Define it without static.
1717         * sunrpc/Versions [libc] (GLIBC_PRIVATE): Export __libc_tsd_RPC_VARS.
1719 2002-08-02  Jakub Jelinek  <jakub@redhat.com>
1721         * assert/assert.c (__assert_fail): Remove undef.
1722         Replace INTDEF with libc_hidden_def.
1723         * assert/__assert.c (__assert): Remove INTUSE.
1724         * elf/dl-minimal.c (__assert_fail): Replace INTDEF with
1725         libc_hidden_weak.
1726         * include/libc-symbols.h (hidden_proto, hidden_def, hidden_weak,
1727         hidden_ver, libc_hidden_proto, libc_hidden_def, libc_hidden_weak,
1728         libc_hidden_ver, rtld_hidden_proto, rtld_hidden_def, rtld_hidden_weak,
1729         rltd_hidden_ver, libm_hidden_proto, libm_hidden_def, libm_hidden_weak,
1730         libm_hiden_ver): Define.
1731         * include/assert.h (__assert_fail_internal): Remove.
1732         (__assert_fail): Add prototype.  Add hidden_proto.
1733         * include/libc-internal.h (__libc_freeres, __profile_frequency): Add
1734         libc_hidden_proto.
1735         * include/wchar.h (__mbrtowc_internal, __mbrlen_internal): Remove.
1736         (__mbrtowc, __mbrlen): Use libc_hidden_proto.  Remove macros.
1737         * include/string.h (__mempcpy, __stpncpy, __rawmemchr, __strcasecmp):
1738         Add libc_hidden_proto.
1739         * include/fcntl.h (__open64, __libc_open, __libc_fcntl, __open,
1740         __fcntl): Add libc_hidden_proto.  Remove macros.
1741         (__open_internal, __fcntl_internal): Remove.
1742         * libio/iofdopen.c (_IO_fcntl): Remove INTUSE from __fcntl.
1743         * malloc/set-freeres.c (__libc_freeres): Add libc_hidden_def.
1744         * nss/nsswitch.h (__nss_database_lookup, __nss_next): Add
1745         libc_hiden_proto.
1746         * nss/nsswitch.c (__nss_database_lookup, __nss_next): Add
1747         libc_hidden_def.
1748         * sysdeps/generic/mempcpy.c (__mempcpy): Remove undef.
1749         Add libc_hidden_def.
1750         * sysdeps/generic/open64.c (__open64): Add libc_hidden_def.
1751         * sysdeps/generic/open.c (__open): Remove undef.
1752         Add libc_hidden_def.  Remove INTDEF.
1753         * sysdeps/generic/fcntl.c (__fcntl): Remove undef.
1754         Add libc_hidden_def.
1755         * sysdeps/mach/hurd/fcntl.c (__fcntl): Likewise.
1756         * sysdeps/i386/i586/mempcpy.S (__mempcpy): Add libc_hidden_def.
1757         * sysdeps/i386/i686/mempcpy.S (__mempcpy): Likewise.
1758         * sysdeps/mach/hurd/fcntl.c (__libc_fcntl, __fcntl): Remove undef.
1759         (__fcntl): Remove INTDEF2.  Add libc_hidden_weak.
1760         (__libc_fcntl): Add libc_hidden_def.
1761         * sysdeps/mach/hurd/open.c (__libc_open, __open): Remove undef.
1762         (__open): Remove INTDEF2.  Add libc_hidden_weak.
1763         (__libc_open): Add libc_hidden_def.
1764         * sysdeps/posix/open64.c (__open64): Add libc_hidden_weak.
1765         * sysdeps/standalone/open.c (__open): Add libc_hidden_def.
1766         * sysdeps/unix/sysv/aix/fcntl.c (__libc_fcntl, __fcntl): Remove undef.
1767         Add libc_hidden_def.
1768         * sysdeps/unix/sysv/aix/open.c (__libc_open, __open): Remove undef.
1769         Add libc_hidden_def.
1770         * sysdeps/unix/sysv/linux/i386/fcntl.c (__libc_fcntl, __fcntl): Remove
1771         undef.
1772         (__fcntl): Remove INTDEF2.  Add libc_hidden_weak.
1773         (__libc_fcntl): Add libc_hidden_def.
1774         * sysdeps/unix/sysv/linux/syscalls.list (__fcntl_internal,
1775         __getpgid_internal, __chown_internal): Remove.
1776         (__GI___fcntl, __GI___libc_fcntl, __GI___getpgid, __GI___pipe,
1777         __GI___sched_setscheduler, __GI___select, __GI___setpgid,
1778         __GI___chown): Add.
1779         * sysdeps/unix/syscalls.list (__close_internal, __dup2_internal,
1780         __getpid_internal, __open_internal, __write_internal): Remove.
1781         (__GI___fcntl, __GI___libc_fcntl, __GI___open, __GI___libc_open,
1782         __GI___chown, __GI___close, __GI___dup2, __GI___getpid,
1783         __GI___libc_open, __GI___open, __GI___read, __GI___libc_read,
1784         __GI___select, __GI___statfs, __GI___write, __GI___libc_write): Add.
1785         * wcsmbs/mbrlen.c (__mbrlen): Remove undef.
1786         Replace INTDEF with libc_hidden_def.
1787         * wcsmbs/mbrtowc.c (__mbrtowc): Likewise.
1788         * catgets/catgetsinfo.h (__open_catalog): Add libc_hidden_proto.
1789         * catgets/open_catalog.c (__open_catalog): Add libc_hidden_def.
1790         * elf/dl-profile.c (__profile_frequency): Add libc_hidden_proto.
1791         * include/rpc/rpc.h (__rpc_thread_svc_fdset, __rpc_thread_createerr):
1792         Add libc_hidden_proto.
1793         * include/sys/poll.h (__poll): Add libc_hidden_proto.
1794         * include/sys/select.h (__select): Likewise.
1795         * include/sys/socket.h (__send): Likewise.
1796         * include/sys/statfs.h (__statfs): Likewise.
1797         * include/unistd.h (__pwrite64, __libc_read, __pipe, __chown, __dup2,
1798         __getpid, __getpgid, __setpgid, __close, __read, __write,
1799         __getpagesize, __sbrk): Likewise.
1800         (__chown_internal, __dup2_internal, __getpid_internal,
1801         __getpgid_internal, __close_internal, __write_internal,
1802         __getpagesize_internal): Remove.
1803         (__close, __dup2, __getpagesize, __getpgid, __getpid, __libc_write):
1804         Remove macros.
1805         * include/printf.h (__printf_fp): Add libc_hidden_proto.
1806         * include/sched.h (__sched_setscheduler): Likewise.
1807         * include/resolv.h (__res_ninit, __res_randomid): Likewise.
1808         * include/stdlib.h (__secure_getenv): Likewise.
1809         * include/signal.h (__sigaction, __sigsuspend): Likewise.
1810         * inet/getaliasent_r.c (NSS_attribute_hidden): Remove.
1811         * inet/getaliasname_r.c (NSS_attribute_hidden): Remove.
1812         * inet/getnetbyad_r.c (NSS_attribute_hidden): Remove.
1813         * inet/getnetbynm_r.c (NSS_attribute_hidden): Remove.
1814         * inet/getnetent_r.c (NSS_attribute_hidden): Remove.
1815         * inet/getproto_r.c (NSS_attribute_hidden): Remove.
1816         * inet/getprtent_r.c (NSS_attribute_hidden): Remove.
1817         * inet/getprtname_r.c (NSS_attribute_hidden): Remove.
1818         * inet/getrpcbyname_r.c (NSS_attribute_hidden): Remove.
1819         * inet/getrpcbynumber_r.c (NSS_attribute_hidden): Remove.
1820         * inet/getrpcent_r.c (NSS_attribute_hidden): Remove.
1821         * inet/getservent_r.c (NSS_attribute_hidden): Remove.
1822         * inet/getsrvbynm_r.c (NSS_attribute_hidden): Remove.
1823         * inet/getsrvbypt_r.c (NSS_attribute_hidden): Remove.
1824         * inet/gethstbyad_r.c (DB_LOOKUP_FCT): Remove INTUSE.
1825         * inet/gethstbynm2_r.c (DB_LOOKUP_FCT): Likewise.
1826         * inet/gethstbynm_r.c (DB_LOOKUP_FCT): Likewise.
1827         * inet/gethstent_r.c (DB_LOOKUP_FCT): Likewise.
1828         * libio/genops.c (__overflow): Add libc_hidden_def.
1829         * libio/iovdprintf.c: Remove libio.h include.
1830         * libio/libioP.h (libc_hidden_proto, libc_hidden_def,
1831         libc_hidden_weak): Define to nothing if not defined.
1832         (__overflow, __woverflow): Add libc_hidden_proto.
1833         * libio/wgenops.c (__woverflow): Add libc_hidden_def.
1834         * nss/getXXent_r.c (NSS_attribute_hidden): Remove.
1835         (DB_LOOKUP_FCT): Add libc_hidden_proto.
1836         * nss/getXXbyYY_r.c (NSS_attribute_hidden): Remove.
1837         (DB_LOOKUP_FCT): Add libc_hidden_proto.
1838         * nss/XXX-lookup.c (DB_LOOKUP_FCT): Add libc_hidden_proto
1839         and libc_hidden_def.
1840         * nss/hosts-lookup.c (__nss_hosts_lookup): Remove INTDEF.
1841         * posix/bsd-getpgrp.c (__getpgid_internal): Remove.
1842         (__getpgid): Add libc_hidden_proto.
1843         (__bsd_getpgrp): Remove INTUSE.
1844         * resolv/res_init.c (__res_ninit, __res_randomid): Add
1845         libc_hidden_def.
1846         * shadow/getspent_r.c (NSS_attribute_hidden): Remove.
1847         * shadow/getspnam_r.c (NSS_attribute_hidden): Remove.
1848         * stdio-common/printf_fp.c (__printf_fp): Add libc_hidden_def.
1849         * stdlib/strfmon.c (__printf_fp): Add libc_hidden_proto.
1850         * stdlib/secure-getenv.c (__secure_getenv): Add libc_hidden_def.
1851         * sunrpc/rpc_thread.c (__rpc_thread_svc_fdset,
1852         __rpc_thread_createerr): Add libc_hidden_def.
1853         * sysdeps/alpha/alphaev67/rawmemchr.S (__rawmemchr): Add
1854         libc_hidden_def.
1855         * sysdeps/alpha/alphaev67/stpncpy.S (__stpncpy): Likewise.
1856         * sysdeps/alpha/rawmemchr.S (__rawmemchr): Likewise.
1857         * sysdeps/alpha/stpncpy.S (__stpncpy): Likewise.
1858         * sysdeps/generic/chown.c (__chown): Likewise.
1859         * sysdeps/generic/close.c (__close): Likewise.
1860         * sysdeps/generic/dup2.c (__dup2): Likewise.
1861         * sysdeps/generic/pipe.c (__pipe): Likewise.
1862         * sysdeps/generic/prof-freq.c (__profile_frequency): Likewise.
1863         * sysdeps/generic/pwrite64.c (__pwrite64): Likewise.
1864         * sysdeps/generic/rawmemchr.c (__rawmemchr): Likewise.
1865         * sysdeps/generic/read.c (__libc_read): Likewise.
1866         (__read): Add libc_hidden_weak.
1867         * sysdeps/generic/sbrk.c (__sbrk): Add libc_hidden_def.
1868         * sysdeps/generic/sched_sets.c (__sched_setscheduler): Likewise.
1869         * sysdeps/generic/select.c (__select): Likewise.
1870         * sysdeps/generic/send.c (__send): Likewise.
1871         * sysdeps/generic/setpgid.c (__setpgid): Likewise.
1872         * sysdeps/generic/sigaction.c (__sigaction): Likewise.
1873         * sysdeps/generic/sigsuspend.c (__sigsuspend): Likewise.
1874         * sysdeps/generic/statfs.c (__statfs): Likewise.
1875         * sysdeps/generic/stpncpy.c (__stpncpy): Likewise.
1876         * sysdeps/generic/strcasecmp.c (__strcasecmp): Likewise.
1877         * sysdeps/generic/getpagesize.c (__getpagesize): Likewise.
1878         Remove undef and INTDEF.
1879         * sysdeps/generic/getpgid.c (__getpgid): Likewise.
1880         * sysdeps/generic/getpid.c (__getpid): Likewise.
1881         * sysdeps/generic/write.c (__libc_write): Likewise.
1882         (__write): Add libc_hidden_weak.  Remove undef and INTDEF.
1883         * sysdeps/i386/rawmemchr.S (__rawmemchr): Add libc_hidden_def.
1884         * sysdeps/i386/stpncpy.S (__stpncpy): Likewise.
1885         * sysdeps/m68k/rawmemchr.S (__rawmemchr): Likewise.
1886         * sysdeps/mach/hurd/chown.c (__chown): Likewise.  Remove INTDEF.
1887         * sysdeps/mach/hurd/close.c (__close): Add libc_hidden_def.
1888         Remove undef and INTDEF.
1889         * sysdeps/mach/hurd/dup2.c (__dup2): Likewise.
1890         * sysdeps/mach/hurd/getpgid.c (__getpgid): Likewise.
1891         * sysdeps/mach/hurd/getpid.c (__getpid): Likewise.
1892         * sysdeps/mach/getpagesize.c (__getpagesize): Likewise.
1893         * sysdeps/mach/hurd/write.c (__libc_write): Likewise.
1894         (__write): Add libc_hidden_weak.  Remove undef and INTDEF.
1895         * sysdeps/mach/hurd/pipe.c: Include unistd.h.
1896         (__pipe): Add libc_hidden_def.
1897         * sysdeps/mach/hurd/dl-sysdep.c (__libc_read, __libc_write): Add
1898         libc_hidden_weak.
1899         * sysdeps/mach/hurd/poll.c (__poll): Add libc_hidden_def.
1900         * sysdeps/mach/hurd/profil.c (__profile_frequency): Likewise.
1901         * sysdeps/mach/hurd/read.c (__libc_read): Likewise.
1902         (__read): Add libc_hidden_weak.
1903         * sysdeps/mach/hurd/pwrite64.c (__pwrite64): Likewise.
1904         (__libc_pwrite64): Add libc_hidden_def.
1905         * sysdeps/mach/hurd/sbrk.c (__sbrk): Likewise.
1906         * sysdeps/mach/hurd/select.c (__select): Likewise.
1907         * sysdeps/mach/hurd/send.c (__send): Likewise.
1908         * sysdeps/mach/hurd/setpgid.c (__setpgid): Likewise.
1909         * sysdeps/mach/hurd/sigaction.c (__sigaction): Likewise.
1910         * sysdeps/mach/hurd/sigsuspend.c (__sigsuspend): Likewise.
1911         * sysdeps/mach/hurd/statfs.c (__statfs): Likewise.
1912         * sysdeps/posix/dup2.c: Likewise.
1913         Remove undef and INTDEF.
1914         * sysdeps/posix/getpagesize.c (__getpagesize): Likewise.
1915         * sysdeps/posix/pwrite64.c (__libc_pwrite64): Add libc_hidden_def.
1916         (__pwrite64): Add libc_hidden_weak.
1917         * sysdeps/posix/sigsuspend.c (__sigsuspend): Add libc_hidden_def.
1918         * sysdeps/sparc/sparc64/rawmemchr.S (__rawmemchr): Likewise.
1919         * sysdeps/sparc/sparc64/stpncpy.S (__stpncpy): Likewise.
1920         * sysdeps/standalone/close.c (__close): Likewise.
1921         * sysdeps/standalone/write.c (__libc_write): Likewise.
1922         (__write): Add libc_hidden_weak.
1923         * sysdeps/standalone/read.c (__read): Likewise.
1924         (__libc_read): Add libc_hidden_def.
1925         * sysdeps/unix/grantpt.c (grantpt): Remove INTUSE.
1926         * sysdeps/unix/bsd/m68k/pipe.S (__pipe): Add libc_hidden_def.
1927         * sysdeps/unix/bsd/osf/alpha/pipe.S (__pipe): Likewise.
1928         * sysdeps/unix/bsd/vax/pipe.S (__pipe): Likewise.
1929         * sysdeps/unix/bsd/syscalls.list (__GI___getpagesize): Likewise.
1930         * sysdeps/unix/bsd/poll.c (__poll): Likewise.
1931         * sysdeps/unix/bsd/sigaction.c (__sigaction): Likewise.
1932         * sysdeps/unix/bsd/sigsuspend.c (__sigsuspend): Likewise.
1933         * sysdeps/unix/common/syscalls.list (__GI___getpgid, __GI___setpgid,
1934         __GI___sigaction): Add.
1935         * sysdeps/unix/i386/pipe.S (__pipe): Add libc_hidden_def.
1936         * sysdeps/unix/inet/syscalls.list (__GI___send): Add.
1937         * sysdeps/unix/mips/pipe.S (__pipe): Add libc_hidden_def.
1938         * sysdeps/unix/sparc/pipe.S (__pipe): Likewise.
1939         * sysdeps/unix/sysv/irix4/syscalls.list (__GI___getpgid,
1940         __GI___setpgid): Add.
1941         * sysdeps/unix/sysv/aix/chown.c (__chown): Add libc_hidden_def.
1942         Remove undef and INTDEF.
1943         * sysdeps/unix/sysv/aix/getpgid.c (__getpgid): Likewise.
1944         * sysdeps/unix/sysv/aix/write.c (__write, __libc_write): Likewise.
1945         * sysdeps/unix/sysv/aix/close.c (__close): Add libc_hidden_def.
1946         * sysdeps/unix/sysv/aix/getpid.c (__getpid): Likewise.
1947         * sysdeps/unix/sysv/aix/pipe.c (__pipe): Likewise.
1948         * sysdeps/unix/sysv/aix/read.c (__read, __libc_read): Likewise.
1949         * sysdeps/unix/sysv/aix/poll.c (__poll): Likewise.
1950         * sysdeps/unix/sysv/aix/sbrk.c (__sbrk): Likewise.
1951         * sysdeps/unix/sysv/aix/sigaction.c (__sigaction): Likewise.
1952         * sysdeps/unix/sysv/aix/sigsuspend.c (__sigsuspend): Likewise.
1953         * sysdeps/unix/sysv/aix/statfs.c (__statfs): Likewise.
1954         * sysdeps/unix/sysv/aix/select.c (__select): Likewise.
1955         * sysdeps/unix/sysv/aix/setpgid.c (__setpgid): Likewise.
1956         * sysdeps/unix/sysv/linux/alpha/pipe.S (__pipe): Likewise.
1957         * sysdeps/unix/sysv/linux/alpha/syscalls.list (__GI___pwrite64,
1958         __GI___statfs, __GI___send): Add.
1959         * sysdeps/unix/sysv/linux/alpha/select.S (__select): Add
1960         libc_hidden_ver resp. libc_hidden_def.
1961         * sysdeps/unix/sysv/linux/alpha/sigsuspend.S (__sigsuspend): Add
1962         libc_hidden_def.
1963         * sysdeps/unix/sysv/linux/ia64/getpagesize.c (__getpagesize):
1964         Likewise.  Remove undef and INTDEF.
1965         * sysdeps/unix/sysv/linux/ia64/pipe.S (__pipe): Add libc_hidden_def.
1966         * sysdeps/unix/sysv/linux/ia64/syscalls.list (__GI___pwrite64,
1967         __GI___statfs, __GI___send): Add.
1968         * sysdeps/unix/sysv/linux/ia64/sigaction.c (__sigaction): Add
1969         libc_hidden_def.
1970         * sysdeps/unix/sysv/linux/ia64/sigsuspend.c (__sigsuspend):
1971         Likewise.
1972         * sysdeps/unix/sysv/linux/sh/pipe.S (__pipe): Likewise.
1973         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c (__chown): Add
1974         libc_hidden_ver resp. libc_hidden_def.
1975         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list (__GI___pwrite64,
1976         __GI___send): Add.
1977         * sysdeps/unix/sysv/linux/s390/s390-64/sigaction.c (__sigaction):
1978         Add libc_hidden_weak.
1979         * sysdeps/unix/sysv/linux/s390/s390-64/sigsuspend.c (__sigsuspend):
1980         Add libc_hidden_def.
1981         * sysdeps/unix/sysv/linux/hppa/syscalls.list (__GI___send): Add.
1982         * sysdeps/unix/sysv/linux/arm/sigaction.c (__sigaction): Add
1983         libc_hidden_weak.
1984         * sysdeps/unix/sysv/linux/i386/chown.c (__chown): Add libc_hidden_ver
1985         resp. libc_hidden_def.
1986         * sysdeps/unix/sysv/linux/i386/sigaction.c (__sigaction): Add
1987         libc_hidden_weak.
1988         * sysdeps/unix/sysv/linux/m68k/chown.c (__chown): Likewise.  Remove
1989         INTDEF.
1990         * sysdeps/unix/sysv/linux/m68k/getpagesize.c (__getpagesize):
1991         Likewise.  Remove undef.
1992         * sysdeps/unix/sysv/linux/mips/pwrite64.c (__pwrite64): Add
1993         libc_hidden_weak.
1994         * sysdeps/unix/sysv/linux/mips/syscalls.list (__GI___send): Add.
1995         * sysdeps/unix/sysv/linux/mips/sigaction.c (__sigaction): Add
1996         libc_hidden_weak.
1997         * sysdeps/unix/sysv/linux/powerpc/chown.c (__chown): Add
1998         libc_hidden_def.
1999         * sysdeps/unix/sysv/linux/powerpc/pwrite64.c (__pwrite64): Likewise.
2000         * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize.c (__getpagesize):
2001         Likewise.  Remove undef and INTDEF.
2002         * sysdeps/unix/sysv/linux/sparc/sparc32/pipe.S (__pipe): Add
2003         libc_hidden_def.
2004         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c (__sigaction): Add
2005         libc_hidden_weak.
2006         * sysdeps/unix/sysv/linux/sparc/sparc64/pipe.S (__pipe): Add
2007         libc_hidden_def.
2008         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list
2009         (__GI___pwrite64, __GI___statfs, __GI___select, __GI___send): Add.
2010         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c (__sigaction): Add
2011         libc_hidden_weak.
2012         * sysdeps/unix/sysv/linux/sparc/sparc64/sigsuspend.c (__sigsuspend):
2013         Add libc_hidden_def.
2014         * sysdeps/unix/sysv/linux/x86_64/syscalls.list (__GI___pwrite64,
2015         __GI___statfs): Add.
2016         * sysdeps/unix/sysv/linux/x86_64/send.c (__send): Add
2017         libc_hidden_weak.
2018         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (__sigaction): Likewise.
2019         * sysdeps/unix/sysv/linux/getpagesize.c: Add libc_hidden_def.
2020         Remove undef and INTDEF.
2021         * sysdeps/unix/sysv/linux/poll.c (__poll): Add libc_hidden_def.
2022         * sysdeps/unix/sysv/linux/pwrite64.c (__pwrite64): Add
2023         libc_hidden_def.
2024         * sysdeps/unix/sysv/linux/send.S (__send): Likewise.
2025         * sysdeps/unix/sysv/linux/sigaction.c (__sigaction): Add
2026         libc_hidden_weak.
2027         * sysdeps/unix/sysv/linux/sigsuspend.c (__sigsuspend): Add
2028         libc_hidden_def.
2029         * sysdeps/unix/sysv/sco3.2.4/__setpgid.c (__setpgid): Likewise.
2030         * sysdeps/unix/sysv/sco3.2.4/sigaction.S (__sigaction): Likewise.
2031         * sysdeps/unix/sysv/sysv4/solaris2/syscalls.list (__GI___sigaction):
2032         Add.
2033         * sysdeps/unix/sysv/sysv4/__getpgid.c (__getpgid): Add
2034         libc_hidden_def.  Remove undef and INTDEF.
2035         * sysdeps/unix/sysv/sysv4/getpgid.c (__getpgid): Likewise.
2036         * sysdeps/unix/sysv/sysv4/__setpgid.c (__setpgid): Add
2037         libc_hidden_def.
2038         * sysdeps/unix/sysv/sysv4/setpgid.c (__setpgid): Likewise.
2039         * sysdeps/unix/sysv/sysv4/sigaction.c (__sigaction): Likewise.
2040         * sysdeps/unix/sysv/sigaction.c (__sigaction): Likewise.
2041         * sysdeps/unix/getpagesize.c (__getpagesize): Add libc_hidden_def.
2042         Remove undef and INTDEF.
2043         * configure.in (HAVE_BROKEN_VISIBILITY_ATTRIBUTE): Add check for
2044         broken visibility attribute handling.
2045         * config.h.in (HAVE_BROKEN_VISIBILITY_ATTRIBUTE): Add.
2047 2002-08-02  Ulrich Drepper  <drepper@redhat.com>
2049         * locale/iso-639.def: Add entries for Venda and Nothern Sotho.
2050         Reported by Dwayne Bailey <dwayne@obsidian.co.za>.
2052         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr_r): Adapt
2053         previous patch.
2055 2002-06-29  Todd Fries  <todd@openbsd.org>
2057         * resolv/gethnamaddr.c (gethostbyaddr): Try ip6.int if ip6.arpa fails.
2059 2002-08-02  Jakub Jelinek  <jakub@redhat.com>
2061         * include/errno.h: Don't include tls.h if _ISOMAC is defined.
2063 2002-07-30  Roland McGrath  <roland@redhat.com>
2065         * resolv/resolv.h (_res): Define macro unconditionally.
2066         [! _LIBC_REENTRANT] (_res): Move this conditional decl to ...
2067         * include/resolv.h: ... here.
2068         [USE_TLS && HAVE___THREAD] (_res): #undef it and declare
2069         as a __thread variable.
2070         * resolv/res_libc.c [USE_TLS && HAVE___THREAD] (_res): Define it as
2071         a __thread variable instead of a global.
2072         * resolv/res_data.c [_LIBC]: Don't #undef _res.
2074         * include/errno.h: Include <tls.h> to make sure USE_TLS defined by the
2075         time we test it.
2077         * intl/loadmsgcat.c [__GNUC__]: #undef alloca before defining it.
2079         * malloc/malloc.c [_LIBC]: Include <string.h> instead of using local
2080         decls of memset and memcpy.
2082         * sysdeps/generic/sysdep.h (END): Conditionalize on [__ASSEMBLER__].
2083         * sysdeps/unix/sysv/linux/i386/sysdep.h (L): Likewise.
2085         * elf/dl-load.c (_dl_map_object_from_fd): Comment fix.
2087         * sysdeps/generic/bits/libc-tsd.h [USE_TLS && HAVE___THREAD]
2088         (__libc_tsd_define): Define using __thread.
2090         * sunrpc/rpc_thread.c: Use __libc_tsd_define.
2091         (__rpc_thread_variables): Use __libc_tsd_get.
2092         (__rpc_thread_destroy): Use __libc_tsd_get instead of calling
2093         __rpc_thread_variables, which might allocate what we're about to free.
2095         * inet/herrno.c [USE_TLS && HAVE___THREAD] (h_errno): Define as a
2096         thread-local variable.
2097         * resolv/netdb.h (h_errno): Define macro unconditionally.
2098         [_LIBC] (__set_h_errno): Macro moved to ...
2099         * include/netdb.h: ... here.
2100         [USE_TLS && HAVE___THREAD] (h_errno): Declare __thread variable.
2101         [USE_TLS && HAVE___THREAD] (__set_h_errno): Define using that.
2102         [! _LIBC_REENTRANT]: #undef h_errno here.
2104         * include/errno.h: Protect from multiple inclusion.
2106         * misc/sys/select.h (__NFDBITS, __FDELT, __FDMASK): #undef these
2107         before defining them, since Linux's <linux/posix_types.h> might have
2108         defined them.
2110 2002-08-02  Jakub Jelinek  <jakub@redhat.com>
2112         * malloc/malloc.c (public_cALLOc): Check for overflow on
2113         multiplication.
2114         * sunrpc/xdr_array.c (xdr_array): Likewise.
2115         * sunrpc/rpc/types.h (mem_free): Add comment.
2116         Patch by Solar Designer <solar@openwall.com>.
2118 2002-08-02  Jakub Jelinek  <jakub@redhat.com>
2120         * sysdeps/unix/sysv/linux/kernel-features.h
2121         (__ASSUME_SET_THREAD_AREA_SYSCALL): Define.
2123 2002-08-01  Roland McGrath  <roland@redhat.com>
2125         * libio/fileops.c (_IO_file_sync_mmap): New function.
2126         (_IO_file_jumps_mmap): Use it.
2127         (_IO_file_underflow_mmap): Rewritten.  If after EOF or fflush,
2128         repeat the stat check and resize the mapped buffer as necessary.
2130 2002-07-31  Roland McGrath  <roland@redhat.com>
2132         * libio/fileops.c (decide_maybe_mmap): New static function.
2133         Code taken from libio/iofopen.c:__fopen_maybe_mmap to try to
2134         mmap the file contents.  Then switch the jump tables to the mmap
2135         tables if it worked, or the vanilla file tables if not.
2136         (_IO_file_underflow_maybe_mmap): New function.
2137         (_IO_file_seekoff_maybe_mmap): New function.
2138         (_IO_file_xsgetn_maybe_mmap): New function.
2139         (_IO_file_jumps_maybe_mmap): New variable, jump table using those.
2140         * libio/libioP.h: Declare those.
2141         * libio/wfileops.c (_IO_wfile_underflow_maybe_mmap): New function.
2142         (_IO_wfile_jumps_maybe_mmap): New variable, jump table using that.
2143         * libio/iofopen.c (__fopen_maybe_mmap): Don't try to mmap here.
2144         If the stream is read-only, set its jump tables to those new ones.
2145         * libio/iofdopen.c (_IO_new_fdopen) [_G_HAVE_MMAP]: Set the initial
2146         jump tables to the maybe_mmap ones, and don't call __fopen_maybe_mmap.
2147         We need the tables set before _IO_file_attach.
2149         * libio/tst-mmap-eofsync.c: New file.
2150         * libio/tst-mmap-fflushsync.c: New file.
2151         * libio/bug-mmap-fflush.c: New file.
2152         * libio/tst-mmap2-eofsync.c: New file.
2153         * libio/Makefile (tests): Add them.
2155         * libio/wfileops.c (_IO_wfile_underflow_mmap): Don't set EOF bit when
2156         _IO_file_underflow_mmap fails, it already set the appropriate bit.
2158 2002-07-31  Jeff Bailey  <jbailey@gnu.org>
2160         * libio/stdio.h (sys_errlist, sys_nerr, _sys_errlist, _sys_nerr):
2161         Declarations moved to <bits/sys_errlist.h>.  Include that file.
2162         * libio/Makefile (headers): Add bits/sys_errlist.h to the list.
2163         * sysdeps/generic/bits/sys_errlist.h: New file.  This does *not*
2164         declare sys_errlist and sys_nerr.
2165         * sysdeps/unix/sysv/linux/bits/sys_errlist.h: New file.  Does
2166         provide declarations.
2168 2002-07-31  Roland McGrath  <roland@redhat.com>
2170         * elf/rtld.c (dl_main): Fix typo in error message.
2172 2002-07-31  Roland McGrath  <roland@frob.com>
2174         * sysdeps/mach/hurd/Versions (ld: GLIBC_2.0): __fxstat -> __fxstat64,
2175         __xstat -> __xstat64, __lseek -> __libc_lseek64.  Completes 2002-06-09
2176         sysdeps/mach/hurd/dl-sysdep.c change.
2178 2002-07-28  Ulrich Drepper  <drepper@redhat.com>
2180         * sysdeps/unix/sysv/linux/configure.in: Check /lib/modules/`uname
2181         -r`/build/include for kernel headers.
2183         * po/fi.po: New file.
2185 2002-07-15  Alexandre Oliva  <aoliva@redhat.com>
2187         * configure.in (static_nss): Set to `yes' if --disable-shared.
2189 2002-07-23  Bruno Haible  <bruno@clisp.org>
2191         * intl/loadmsgcat.c (PRI*): Redefine the macros if PRI_MACROS_BROKEN
2192         is set.
2194 2002-07-25  Jakub Jelinek  <jakub@redhat.com>
2196         * sysdeps/unix/sysv/linux/ia64/sigcontextinfo.h: New file.
2197         * sysdeps/unix/sysv/linux/ia64/profil-counter.h: Fix profil_counter
2198         arguments.
2200 2002-07-25  Jakub Jelinek  <jakub@redhat.com>
2202         * sysdeps/unix/sysv/linux/alpha/adjtime.c (__adjtimex_internal): Add
2203         alias.
2205 2002-07-21  Bruno Haible  <bruno@clisp.org>
2207         * intl/libintl.h (__GNU_GETTEXT_SUPPORTED_REVISION): New macro.
2208         * intl/gettext.h (struct mo_file_header): New fields n_sysdep_segments,
2209         sysdep_segments_offset, n_sysdep_strings, orig_sysdep_tab_offset,
2210         trans_sysdep_tab_offset.
2211         (struct sysdep_segment): New type.
2212         (struct sysdep_string): New type.
2213         (SEGMENTS_END): New macro.
2214         * intl/gettextP.h (struct sysdep_string_desc): New type.
2215         (struct loaded_domain): New fields malloced, n_sysdep_strings,
2216         orig_sysdep_tab, trans_sysdep_tab, must_swap_hash_tab. Make fields
2217         orig_tab, trans_tab, hash_tab to const pointers because they point
2218         into read-only memory.
2219         * intl/loadmsgcat.c: Include stdint.h, inttypes.h, hash-string.h.
2220         (PRI*): Define fallback values.
2221         (get_sysdep_segment_value): New function.
2222         (_nl_load_domain): Distinguish major and minor revision parts. Add
2223         support for minor revision 1 with system dependent strings.
2224         (_nl_unload_domain): Also free the 'malloced' field.
2225         * intl/dcigettext.c (_nl_find_msg): Remove test for domain->hash_size,
2226         now done in loadmsgcat.c. Add support for system dependent strings.
2228 2002-07-16  Stepan Kasal  <kasal@math.cas.cz>
2230         * posix/bug-regex7.c: New file.
2231         * posix/bug-regex8.c: New file.
2232         * posix/Makefile (tests): Add bug-regex7 and bug-regex8.
2234 2002-07-16  Stepan Kasal  <kasal@math.cas.cz>
2236         * posix/bug-regex4.c (main): Fix typos.
2237         * posix/bug-regex6.c (main): Likewise.
2239 2002-07-27  Ulrich Drepper  <drepper@redhat.com>
2241         * posix/bug-regex6.c (main): Fix warnings.
2243         * iconvdata/Makefile (CPPFLAGS): Add NOT_IN_libc.
2245         * iconv/iconv_prog.c (main): Improve error message for the cases
2246         where -t and/or -f parameter are missing.
2248 2002-07-10  Stepan Kasal  <kasal@math.cas.cz>
2250         * posix/regexec.c (re_match): Reorganize to remove duplicate code.
2251         (re_search): Likewise.
2252         (re_match_2): Likewise.
2253         (re_search_2): Likewise.
2254         (re_search_stub): New function.
2255         (re_search_2_stub): New function.
2256         * regcomp.c (re_compile_pattern): Typo in a comment fixed.
2258 2002-07-10  Isamu Hasegawa  <isamu@yamato.ibm.com>
2260         * posix/regex_internal.h: Add new member STOP to struct re_string_t.
2261         (re_string_eoi): Use STOP instead of LEN.
2262         * posix/regex_internal.c (re_string_allocate): Initialize pstr->len.
2263         (re_string_construct): Likewise.
2264         (re_string_reconstruct): Adjust pstr->stop like pstr->len.
2265         * posix/regexec.c (re_search_internal): Add a new argument STOP
2266         so that it can handle the argument STOP of re_search_2 and re_match_2
2267         correctly.
2268         (regexec): Adapt to new I/F of re_search_internal.
2269         (re_search_stub): Likewise.
2271 2002-07-25  Ulrich Drepper  <drepper@redhat.com>
2273         * sunrpc/clnt_gen.c: Don't include <sys/errno.h>.
2275         * elf/dl-minimal.c: Remove definition of __assert_perror_fail.
2277         * sysdeps/wordsize-32/divdi3.c: Define __divdi3_internal.
2278         * sysdeps/wordsize-32/lldiv.c: Make gcc use __divdi3_internal instead
2279         of __divdi3.
2281         * sysdeps/unix/sysv/linux/adjtime.c: Use __adjtimex_internal.
2282         * sysdeps/unix/sysv/linux/ntp_gettime.c: Likewise.
2283         * sysdeps/unix/sysv/linux/syscalls.list: Add __adjtimex_internal
2284         alias for adjtimex syscall.
2286         * elf/dl-minimal.c: Define __assert_fail_internal.
2287         * assert/assert.c: Likewise.
2288         * include/assert.h: Define __assert_file macro if !SHARED and not
2289         NOT_IN_libc.
2291         * iconv/Makefile: Define NOT_IN_libc for objects in standalone
2292         programs.
2293         * locale/Makefile: Likewise.
2294         * nscd/Makefile: Likewise.
2295         * catgets/Makefile: Likewise.
2297 2002-07-24  Ulrich Drepper  <drepper@redhat.com>
2299         * libio/fileops.c (_IO_file_seekoff_mmap): Do use fp->_offset to
2300         compute current position.
2302         * stdio-common/tst-fseek.c (main): Improve error messages.
2304         * libio/tst-freopen.c (main): Remove unused variable.
2306         * libio/fileops.c (_IO_file_seekoff_mmap): Set fp->_offset after
2307         succesful seek call.  Simplify error checking.
2309 2002-07-25  Jakub Jelinek  <jakub@redhat.com>
2311         * config.h.in: Use __ASSEMBLER__ test macro not ASSEMBLER.
2312         * sysdeps/ia64/fpu/libm_support.h: Likewise.
2314 2002-07-19  Roland McGrath  <roland@frob.com>
2316         * hurd/hurdsig.c (_hurdsig_getenv): Always return null if
2317         __libc_enable_secure is set.
2319 2002-07-24  Roland McGrath  <roland@frob.com>
2321         Added <ifaddrs.h> interface with functions `getifaddrs', `freeifaddrs'.
2322         This implementation supports only IPv4.
2323         * inet/ifaddrs.h: New file.
2324         * sysdeps/generic/ifaddrs.c: New file.
2325         * sysdeps/gnu/ifaddrs.c: New file.
2326         * inet/test-ifaddrs.c: New file.
2327         * inet/Makefile (routines): Add ifaddrs.
2328         (headers): Add ifaddrs.h here.
2329         (tests): Add test-ifaddrs.
2330         * inet/Versions (GLIBC_2.3): New set, add getifaddrs and freeifaddrs.
2332         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Use an explicit
2333         socket call to get an AF_INET socket, instead of using __opensock.
2334         The SIOCGIFNETMASK ioctl will work only with a PF_INET socket.
2336         * sysdeps/generic/ifreq.h (__ifreq): Take third argument SOCKFD,
2337         if not -1 use it instead of calling __opensock.
2338         * sysdeps/unix/sysv/linux/ifreq.h (__ifreq): Likewise.
2339         * sysdeps/mach/hurd/ifreq.h (__ifreq): Take new argument and ignore it.
2340         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Pass new argument.
2342         * sysdeps/mach/hurd/ifreq.h: New file.
2343         * sysdeps/generic/ifreq.h (__if_freereq): Take second argument NUM_IFS.
2344         * sysdeps/unix/sysv/linux/ifreq.h (__if_freereq): Likewise.
2345         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Update caller.
2347         * libio/fileops.c (_IO_file_seekoff_mmap): Don't rely on FP->_offset,
2348         which gets moved around.  Calculate size of mmap'd buffer instead.
2350 2002-07-24  Philip Blundell  <philb@gnu.org>
2352         * sysdeps/unix/arm/brk.S: Improve schedule.
2353         * sysdeps/unix/sysv/linux/arm/socket.S (PUSHARGS_1): Use more
2354         efficient instruction.
2355         (__socket): Optimize return sequence.
2357 2002-07-24  Ulrich Drepper  <drepper@redhat.com>
2359         * sysdeps/unix/sysv/linux/opensock.c (__opensock): Prefer inet
2360         sockets on old kernels.
2362 2002-07-22  Philip Blundell  <philb@gnu.org>
2364         * sysdeps/unix/sysv/linux/arm/errlist.c: Remove extra weak alias
2365         definiton of _old_sys_nerr.  Define _old_sys_errlist as strong
2366         alias.
2368 2002-07-24  Ulrich Drepper  <drepper@redhat.com>
2370         * locale/hashval.h: Make more self-contained by defining LONG_BITS.
2371         * locale/programs/simple-hash.c: Remove LONG_BITS definition.
2373         * locale/programs/locarchive.c (add_locale_to_archive): Correct
2374         test to detect duplicate locales.
2376         * libio/fileops.c (_IO_new_file_seekoff): Fail if relative
2377         position would be before beginning of file.
2378         (_IO_file_seekoff_mmap): Likewise.
2379         * libio/Makefile (tests): Add bug-fseek.
2380         * libio/bug-fseek.c: New file.
2382         * intl/explodename.c: Remove support for CEN-style locale variables.
2383         It was never used and shouldn't be since it's not portable.
2384         * intl/finddomain.c: Likewise.
2385         * intl/l10nflist.c: Likewise.
2386         * intl/loadinfo.h: Likewise.
2387         * locale/findlocale.c: Likewise.
2389 2002-07-24  Roland McGrath  <roland@frob.com>
2391         * libio/fileops.c (_IO_file_seekoff_mmap): When just examining the
2392         position, calculate it to take into account an active pushback buffer.
2394         * libio/Makefile (tests): Add bug-ungetc.
2395         * libio/bug-ungetc.c: New file.
2397 2002-07-23  Ulrich Drepper  <drepper@redhat.com>
2399         * sysdeps/generic/libc-tls.c: New file.
2400         * csu/Makefile (routines): Add libc-tls.
2401         (static-only-routines): Add libc-tls.
2402         * elf/dl-support.c (_dl_phdr): New variable.
2403         (_dl_phnum): New variable.
2404         (_dl_aux_init): Initialize _dl_phdr and _dl_phnum from aux vector.
2405         * sysdeps/generic/libc-start.c (__libc_start_main): Reorganize code
2406         for !SHARED.  First look through auxiliary vector.  If TLS always
2407         call __pthread_initialize_minimal.
2409         * sysdeps/generic/dl-tls.c (_dl_allocate_tls): Make sure size argument
2410         in mmap call is never zero.
2412 2002-07-23  Andreas Jaeger  <aj@suse.de>
2414         * sysdeps/x86_64/fpu/s_copysign.S: Use optimized version.
2415         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
2417 2002-07-22  Ulrich Drepper  <drepper@redhat.com>
2419         * libio/tst-eof.c: Rewrite to let test-skeleton.c deal with
2420         creation and removal of the temp file.
2422         * libio/bug-rewind.c: Use test skeleton.  Use create_temp_file for
2423         file creation.
2424         * test-skeleton.c (create_temp_file): New function.
2426 2002-07-22  Andreas Jaeger  <aj@suse.de>
2428         * sysdeps/x86_64/dl-machine.h (elf_machine_load_address): Use
2429         local label.
2431 2002-07-21  Roland McGrath  <roland@frob.com>
2433         * wcsmbs/Makefile (strtox-CFLAGS): New variable,
2434         put -I../include before -I../stdlib so we get the right errno.h et al.
2435         (CFLAGS-wcstod.c): Use that variable instead of -I../stdlib.
2436         (CFLAGS-wcstof.c): Likewise.
2437         (CFLAGS-wcstold.c): Likewise.
2438         (CFLAGS-wcstod_l.c): Likewise.
2439         (CFLAGS-wcstof_l.c): Likewise.
2440         (CFLAGS-wcstold_l.c): Likewise.
2442 2002-07-19  Roland McGrath  <roland@frob.com>
2444         * sysdeps/mach/hurd/errnos.awk: Remove __set_errno defn from output.
2446 2002-07-20  Ulrich Drepper  <drepper@redhat.com>
2448         * sysdeps/unix/sysv/linux/ldsodefs.h (HAVE_AUX_XID): Define if
2449         __ASSUME_AT_XID is defined.
2450         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_AT_XID): Define
2451         for 2.4.1 and up.
2452         * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Optimize handling
2453         of AT_UID, AT_EUID, AT_GID, and AT_EGID.
2455         * wcsmbs/Makefile (CFLAGS-wcstod.c): Add -I../stdlib.
2456         (CFLAGS-wcstof.c): Likewise.
2457         (CFLAGS-wcstold.c): Likewise.
2458         (CFLAGS-wcstod_l.c): Likewise.
2459         (CFLAGS-wcstof_l.c): Likewise.
2460         (CFLAGS-wcstold_l.c): Likewise.
2462 2002-07-18  Jakub Jelinek  <jakub@redhat.com>
2464         * resource/sys/resource.h (__rlimit_resource_t, __rusage_who_t,
2465         __priority_which_t): Always typedef to int for C++.
2467 2002-07-19  Ulrich Drepper  <drepper@redhat.com>
2469         * configure.in: Add test for __thread support in compiler.
2470         * config.h.in: Add HAVE___THREAD.
2471         * Makefile (headers): Remove errno.h, sys/errno.h, and bits/errno.h.
2472         * include/sys/errno.h: Moved to...
2473         * stdlib/sys/errno.h: ...here.  New file.
2474         * stdlib/errno.h: New file.  Moved from...
2475         * include/errno.h: ...here.  Changed into an internal header defining
2476         libc-local things like __set_errno.
2477         * stdlib/Makefile (headers): Add errno.h, sys/errno.h, and
2478         bits/errno.h.
2479         * elf/dl-minimal.c: Include <tls.h>.  Define errno as thread-local
2480         variable if USE_TLS && HAVE___THREAD.  Don't define __errno_location
2481         either.
2482         * elf/rtld.c (_dl_start): Add code to initialize TLS for ld.so
2483         from...
2484         (_dl_start_final): ...here.  Add code to initialize tls elements from
2485         bootstrap_map.
2486         * sysdeps/generic/errno-loc.c: Define errno as thread-local variable
2487         if USE_TLS && HAVE___THREAD.
2488         * sysdeps/generic/bits/errno.h: Remove __set_errno definition.
2489         * sysdeps/mach/hurd/bits/errno.h: Likewise.
2490         * sysdeps/standalone/arm/bits/errno.h: Likewise.
2491         * sysdeps/standalone/bits/errno.h: Likewise.
2492         * sysdeps/unix/bsd/bsd4.4/bits/errno.h: Likewise.
2493         * sysdeps/unix/sysv/aix/bits/errno.h: Likewise.
2494         * sysdeps/unix/sysv/hpux/bits/errno.h: Likewise.
2495         * sysdeps/unix/sysv/linux/bits/errno.h: Likewise.
2496         * sysdeps/unix/sysv/linux/hppa/bits/errno.h: Likewise.
2497         * sysdeps/unix/sysv/linux/mips/bits/errno.h: Likewise.
2498         * sysdeps/unix/sysv/sysv4/solaris2/bits/errno.h: Likewise.
2499         * sysdeps/i386/dl-machine.c (elf_machine_rel) [RTLD_BOOTSTRAP]: Don't
2500         use GL(dl_rtld_map), use map parameter.
2501         * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
2502         * sysdeps/unix/sysv/linux/i386/sysdep.S: Define errno in .tbss if
2503         USE_TLS && HAVE___THREAD.
2504         * sysdeps/unix/sysv/linux/i386/sysdep.h: Unify SETUP_PIC_REG
2505         definitions.  If USE_TLS && HAVE___THREAD store errooor value using
2506         TLS code sequence.
2507         * sysdeps/unix/sysv/linux/i386/i686/sysdep.h: Likewise.
2509         * sysdeps/unix/sysv/linux/getcwd.c: No real need to restore errno.
2510         * sysdeps/unix/sysv/linux/grantpt.c: Likewise.
2511         * sysdeps/unix/sysv/linux/internal_statvfs.c: Likewise.
2512         * sysdeps/unix/sysv/linux/msgctl.c: Likewise.
2513         * sysdeps/unix/sysv/linux/readv.c: Likewise.
2514         * sysdeps/unix/sysv/linux/writev.c: Likewise.
2516 2002-07-17  Ulrich Drepper  <drepper@redhat.com>
2518         * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Fix MS_SYNC and
2519         MS_INVALIDATE values.
2521 2002-07-17  Andreas Schwab  <schwab@suse.de>
2522             Ulrich Drepper  <drepper@redhat.com>
2524         * sysdeps/unix/sysv/linux/pread.c: Sign extend offset.
2525         * sysdeps/unix/sysv/linux/pwrite.c: Likewise.
2526         * sysdeps/unix/sysv/linux/mips/pread.c: Likewise.
2527         * sysdeps/unix/sysv/linux/mips/pwrite.c: Likewise.
2529 2002-07-01  H.J. Lu  <hjl@gnu.org>
2531         * elf/circleload1.c (load_dso): Call "circlemod1" and check
2532         return value.
2534         * elf/circlemod1.c (circlemod1): Return int.
2535         * elf/circlemod2.c (circlemod2): Likewise.
2536         * elf/circlemod2a.c (circlemod2): Likewise.
2537         * elf/circlemod3.c (circlemod3): Likewise.
2538         (circlemod3a): A new function.
2540 2002-07-16  Ulrich Drepper  <drepper@redhat.com>
2542         * catgets/tst-catgets.c (main): Don't expect results for
2543         untranslated messages.
2545         * glibcbug.in: Fix little typo.  Remove STDIO.
2547         * config.h.in: Fail if __FAST_MATH__ is defined.
2548         * math/Makefile (CPPFLAGS-test-ifloat.c): Also define TEST_FAST_MATH.
2549         (CPPFLAGS-test-idouble.c): Likewise.
2550         (CPPFLAGS-test-ildouble.c): Likewise.
2552 2002-07-15  Ulrich Drepper  <drepper@redhat.com>
2554         * intl/tst-gettext.sh: Pass -f option to msgfmt.
2555         * intl/tst-gettext.c: Correctly handle untranslated messages in
2556         positive tests.
2558         * po/de.po: Update from translation team.
2560 2002-07-02  H.J. Lu  <hjl@gnu.org>
2562         * sysdeps/mips/atomicity.h: Don't include <sgidefs.h>.  Always
2563         use ll/sc.
2564         * sysdeps/unix/sysv/linux/mips/sys/tas.h: Likewise.
2566         * sysdeps/unix/sysv/linux/configure.in: Set arch_minimum_kernel
2567         to 2.4.0 for mips.
2569 2002-07-15  Ulrich Drepper  <drepper@redhat.com>
2571         * elf/dl-load.c (_dl_map_object_from_fd): If loaded object uses
2572         TLS fail if USE_TLS is not defined.
2574         * libio/wfileops.c (_IO_wfile_seekoff): Reposition wide pointers
2575         and adjust state for seek position.  [PR libc/4070]
2576         * libio/Makefile (tests): Add bug-rewind.
2577         * libio/bug-rewind.c: New file.
2579 2002-07-12  Philip Blundell  <philb@gnu.org>
2581         * sysdeps/generic/backtrace.c (FIRST_FRAME_POINTER): New macro.
2582         (__backtrace): Use it.
2583         * sysdeps/arm/frame.h (FIRST_FRAME_POINTER): Define.  [PR libc/2632]
2585 2002-07-12  Philip Blundell  <philb@gnu.org>
2587         * sysdeps/arm/dl-machine.h (elf_machine_rel): Don't handle
2588         R_ARM_RELATIVE if RTLD_BOOTSTRAP and HAVE_Z_COMBRELOC.  Only check
2589         for rtld map if neither RTLD_BOOTSTRAP nor HAVE_Z_COMBRELOC is defined.
2590         (elf_machine_rela): Remove unused variable.
2592         * sysdeps/unix/sysv/linux/arm/Makefile [subdir=elf]
2593         (sysdep-rtld-routines, sysdep_routines, sysdep-dl-routines): Don't
2594         define.
2596 2002-07-12  Ulrich Drepper  <drepper@redhat.com>
2598         * iconvdata/gconv-modules: Add aliases for ISO-8859-11.
2600 2002-07-14  Andreas Jaeger  <aj@suse.de>
2602         * sysdeps/x86_64/bits/link.h: Add biarch support.
2604 2002-07-13  Andreas Jaeger  <aj@suse.de>
2606         * sysdeps/unix/sysv/linux/mips/register-dump.h (register_dump):
2607         Use correct indices.
2608         Patch by Eliot Dresselhaus <eliot@ayrnetworks.com>.
2610 2002-07-09  Martin Schwidefsky  <schwidefsky@de.ibm.com>
2612         * sysdeps/s390/bits/byteswap.h: Unified 31/64 bit byteswap.h.
2613         * sysdeps/s390/s390-32/bits/byteswap.h: Remove.
2614         * sysdeps/s390/s390-64/bits/byteswap.h: Remove.
2615         * sysdeps/s390/bits/link.h: Unified 31/64 bit link.h.
2616         * sysdeps/s390/s390-32/bits/link.h: Remove.
2617         * sysdeps/s390/s390-64/bits/link.h: Remove.
2618         * sysdeps/s390/bits/setjmp.h: Unified 31/64 bit setjmp.h.
2619         * sysdeps/s390/s390-32/bits/setjmp.h: Remove.
2620         * sysdeps/s390/s390-64/bits/setjmp.h: Remove.
2621         * sysdeps/s390/bits/wordsize.h: New file.
2622         * sysdeps/unix/sysv/linux/s390/bits/elfclass.h: Unified 31/64 bit
2623         elfclass.h.
2624         * sysdeps/unix/sysv/linux/s390/s390-64/bits/elfclass.h: Remove.
2625         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Unified 31/64 bit fcntl.h.
2626         * sysdeps/unix/sysv/linux/s390/s390-32/bits/fcntl.h: Remove.
2627         * sysdeps/unix/sysv/linux/s390/s390-64/bits/fcntl.h: Remove.
2628         * sysdeps/unix/sysv/linux/s390/bits/ipc.h: Unified 31/64 bit ipc.h.
2629         * sysdeps/unix/sysv/linux/s390/s390-64/bits/ipc.h: Remove.
2630         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Unified 31/64 bit mman.h.
2631         * sysdeps/unix/sysv/linux/s390/s390-32/bits/mman.h: Remove.
2632         * sysdeps/unix/sysv/linux/s390/s390-64/bits/mman.h: Remove.
2633         * sysdeps/unix/sysv/linux/s390/bits/msq.h: Unified 31/64 bit msq.h.
2634         * ysdeps/unix/sysv/linux/s390/s390-64/bits/msq.h: Remove.
2635         * sysdeps/unix/sysv/linux/s390/bits/resource.h: Unified 31/64 bit
2636         resource.h.
2637         * sysdeps/unix/sysv/linux/s390/s390-32/bits/resource.h: Remove.
2638         * sysdeps/unix/sysv/linux/s390/s390-64/bits/resource.h: Remove.
2639         * sysdeps/unix/sysv/linux/s390/bits/sem.h: Unified 31/64 bit sem.h.
2640         * sysdeps/unix/sysv/linux/s390/s390-64/bits/sem.h: Remove.
2641         * sysdeps/unix/sysv/linux/s390/bits/shm.h: Unified 31/64 bit shm.h.
2642         * sysdeps/unix/sysv/linux/s390/s390-64/bits/shm.h: Remove.
2643         * sysdeps/unix/sysv/linux/s390/bits/sigaction.h: Unified 31/64 bit
2644         sigaction.h.
2645         * sysdeps/unix/sysv/linux/s390/s390-64/bits/sigaction.h: Remove.
2646         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Unified 31/64 bit
2647         siginfo.h.
2648         * sysdeps/unix/sysv/linux/s390/s390-64/bits/siginfo.h: Remove.
2649         * sysdeps/unix/sysv/linux/s390/s390-64/bits/sigstack.h: Remove.
2650         * sysdeps/unix/sysv/linux/s390/bits/socket.h: Unified 31/64 bit
2651         socket.h.
2652         * sysdeps/unix/sysv/linux/s390/s390-64/bits/socket.h: Remove.
2653         * sysdeps/unix/sysv/linux/s390/bits/stat.h: Unified 31/64 bit stat.h.
2654         * sysdeps/unix/sysv/linux/s390/s390-32/bits/stat.h: Remove.
2655         * sysdeps/unix/sysv/linux/s390/s390-64/bits/stat.h: Remove.
2656         * sysdeps/unix/sysv/linux/s390/bits/types.h: Unified 31/64 bit types.h.
2657         * sysdeps/unix/sysv/linux/s390/s390-64/bits/types.h: Remove.
2658         * sysdeps/unix/sysv/linux/s390/net/route.h: New file.
2659         * sysdeps/unix/sysv/linux/s390/sys/procfs.h: Unified 31/64 bit
2660         procfs.h.
2661         * sysdeps/unix/sysv/linux/s390/s390-32/sys/procfs.h: Remove.
2662         * sysdeps/unix/sysv/linux/s390/s390-64/sys/procfs.h: Remove.
2663         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h: Unified 31/64 bit
2664         ucontext.h.
2665         * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Remove.
2666         * sysdeps/unix/sysv/linux/s390/s390-64/sys/ucontext.h: Remove.
2668 2002-07-11  Ulrich Drepper  <drepper@redhat.com>
2670         * Versions.def (libc): Add GLIBC_2.3.
2671         * stdlib/Versions [libc] (GLIBC_2.3): Add realpath.
2672         * stdlib/canonicalize.c: Add compatibility version for realpath
2673         and make new code available in GLIBC_2.3.
2675 2002-07-06  Bruno Haible  <bruno@clisp.org>
2677         * malloc/hooks.c (public_gET_STATe): Access max_total_mem in mp_.
2679 2002-07-11  Ulrich Drepper  <drepper@redhat.com>
2681         * resolv/res_hconf.c (_res_hconf_init): Move code into new
2682         function do_init.  Use __libc_once.
2683         (do_init): New function.
2685         * iconvdata/iso8859-11.h: Removed.
2686         * iconvdata/Makefile (gen-8bit-gap-modules): Add iso8859-11.
2687         (distribute): Remove iso8859-11.h.
2688         * iconvdata/tst-tables.sh: Add ISO-8859-11.
2690         * stdio-common/vfscanf.c (inchar): Restore errno from previous
2691         underflow operation if c == (W)EOF.
2693 2002-07-03  Jakub Jelinek  <jakub@redhat.com>
2695         * stdio-common/printf_fp.c (__printf_fp): If _FPIO_CONST_SHIFT is
2696         non-zero, adjust exponent.
2697         * sysdeps/ieee754/ldbl-128/s_erfl.c (__erfl, erfl, __erfcl, erfcl):
2698         Remove NO_LONG_DOUBLE aliases.
2699         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l, expm1l): Likewise.
2700         * sysdeps/ieee754/ldbl-128/s_log1pl.c (__log1pl, log1pl): Likewise.
2701         (__log1pl): Raise divide by zero and invalid exceptions when needed.
2702         * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Special case
2703         1**y and -1**+-Inf.
2704         * sysdeps/ieee754/ldbl-128/ldbl2mpn.c (__mpn_extract_long_double):
2705         Fix BITS_PER_MP_LIMB 32 extraction.
2706         * sysdeps/ieee754/ldbl-128/e_log2l.c (__ieee754_log2l): Don't raise
2707         exceptions for qNaNs.
2708         * sysdeps/ieee754/ldbl-128/e_log10l.c (__ieee754_log10l): Likewise.
2709         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgamma_r):
2710         Raise exceptions when needed.  Don't recurse unnecessarily.
2711         Special case 1.0L and 2.0L arguments to avoid -0.0L as result.
2712         * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_y0l): Don't raise
2713         exceptions for qNaNs.
2714         * sysdeps/ieee754/ldbl-128/s_remquol.c (__remquol): Make qs 64-bit
2715         to fix *quo return value sign.
2716         * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gamma_r): Special
2717         case -Inf argument.
2718         * soft-fp/op-4.h (_FP_FRAC_CLZ_4): Fix a pasto.
2720 2002-07-01  Jakub Jelinek  <jakub@redhat.com>
2722         * libio/tst-eof.c (do_test): Remove unused ch and tm variables.
2723         * iconvdata/iso-2022-jp-3.c (EMIT_SHIFT_TO_INIT): Kill warnings if
2724         -DNDEBUG.
2726 2002-07-10  Ulrich Drepper  <drepper@redhat.com>
2728         * malloc/hooks.c (realloc_check): If mremap succeeds actually use
2729         the result.
2731         * sysdeps/i386/i486/bits/string.h: Add early clobber for "a"
2732         output parameter.  Reported by Denis Zaitsev <zzz@cd-club.ru>.
2734         * Versions.def (libthread_db): Add GLIBC_2.3.
2736 2002-07-09  Jakub Jelinek  <jakub@redhat.com>
2738         * libio/freopen.c (freopen): Reset jump tables, use mmap stdio for the
2739         new stream if possible.
2740         * libio/freopen64.c (freopen64): Likewise.
2741         * libio/Makefile (tests): Add tst-freopen.
2742         * libio/tst-freopen.c: New file.
2744 2002-07-03  Jakub Jelinek  <jakub@redhat.com>
2746         * libio/stdio.h (obstack_printf): Add format attribute.
2747         (obstack_vprintf): Likewise.
2749 2002-07-04  Jakub Jelinek  <jakub@redhat.com>
2751         * posix/regex_internal.h (re_token_t): Shrink the structure to 8
2752         resp. 16 bytes on 32-bit resp. 64-bit platforms.
2753         (re_charset_t, re_string_t): Reorder structure members for 64-bit
2754         architectures.
2756 2002-07-04  Jakub Jelinek  <jakub@redhat.com>
2758         * posix/regcomp.c (re_compile_internal): Move clearing of dfa...
2759         (init_dfa): ...here.
2761 2002-07-05  Isamu Hasegawa  <isamu@yamato.ibm.com>
2763         * posix/regcomp.c (parse_sub_exp): Add nodes OP_OPEN_SUBEXP and
2764         OP_CLOSE_SUBEXP at both ends of sub expressions instead of SUBEXP
2765         nodes in parse trees.
2766         (calc_first): Fix the Definition of `firsts' of OP_OPEN_SUBEXP
2767         and OP_CLOSE_SUBEXP, and remove the definition of SUBEXP.
2768         (calc_epsdest): Treat OP_OPEN_SUBEXP and OP_CLOSE_SUBEXP as the
2769         nodes which can epsilon transit.
2770         * posix/regex_internal.h: Add OP_OPEN_SUBEXP and OP_CLOSE_SUBEXP
2771         to IS_EPSILON_NODE macro.
2772         * posix/regexec.c (update_regs): New function to update registers
2773         by refering OP_OPEN_SUBEXP and OP_CLOSE_SUBEXP nodes.
2774         (proceed_next_node): Use the entities of the nodes to determine
2775         whether the node can transit to.
2776         (set_regs): Use update_regs function to update registers.
2778 2002-07-03  Jakub Jelinek  <jakub@redhat.com>
2780         * posix/bug-regex4.c (main): Remove duplicate setlocale.
2781         * posix/bug-regex6.c: New file.
2782         * posix/Makefile (tests): Add bug-regex6.
2783         (bug-regex6-ENV): Set LOCPATH.
2785 2002-07-10  Ulrich Drepper  <drepper@redhat.com>
2787         * Versions.def [libpthread]: Add GLIBC_2.2.6.
2788         * posix/Versions [libc] (GLIBC_2.2.6): Add __nanosleep.
2790 2002-07-06  Bruno Haible  <bruno@clisp.org>
2792         * sysdeps/unix/sysv/sysv4/bits/sigset.h (__NSSBITS): Correct value.
2794 2002-07-06  Bruno Haible  <bruno@clisp.org>
2796         * include/sys/socket.h (__libc_sendto, __libc_recvfrom): New
2797         declarations.
2799         * sysdeps/i386/fpu/libm-test-ulps: Add some ulps for AMD K7.
2801         * rt/Makefile (tests): Don't add tst-aio* in a single-threaded build.
2803         * sysdeps/unix/bsd/sun/sunos4/bits/utsname.h: Test for _SYS_UTSNAME_H,
2804         not _UTSNAME_H.
2805         * sysdeps/unix/bsd/ultrix4/bits/utsname.h: Likewise.
2807         * sysdeps/generic/bits/stropts.h: Protect against direct inclusion.
2808         * sysdeps/generic/bits/ustat.h: Likewise.
2810         * sysdeps/unix/sysv/linux/bits/statvfs.h (ST_NODIRATIME): Set to 2048.
2812 2002-07-08  Andreas Jaeger  <aj@suse.de>
2814         * sysdeps/x86_64/elf/initfini.c (__asm__): Call call_gmon_start.
2816 2002-07-08  Andreas Jaeger  <aj@suse.de>
2818         * sysdeps/x86_64/fpu/s_fdiml.S: Fix wrong register name.
2820 2002-07-06  Andreas Jaeger  <aj@suse.de>
2822         * sysdeps/x86_64/fpu/bits/mathinline.h: New.
2823         * sysdeps/x86_64/fpu/s_copysign.S: New.
2824         * sysdeps/x86_64/fpu/s_copysignf.S: New.
2825         * sysdeps/x86_64/fpu/s_copysignl.S: New.
2826         * sysdeps/x86_64/fpu/s_finitel.S: New.
2827         * sysdeps/x86_64/fpu/s_fmax.S: New.
2828         * sysdeps/x86_64/fpu/s_fmaxf.S: New.
2829         * sysdeps/x86_64/fpu/s_fmaxl.S: New.
2830         * sysdeps/x86_64/fpu/s_fmin.S: New.
2831         * sysdeps/x86_64/fpu/s_fminf.S: New.
2832         * sysdeps/x86_64/fpu/s_fminl.S: New.
2834 2002-06-05  Brian Youmans <3diff@gnu.org>
2836         * sysdeps/ia64/fpu/e_acos.S: Added text of Intel license.
2837         * sysdeps/ia64/fpu/e_acosf.S: Likewise.
2838         * sysdeps/ia64/fpu/e_acosl.S: Likewise.
2839         * sysdeps/ia64/fpu/e_asin.S: Likewise.
2840         * sysdeps/ia64/fpu/e_asinf.S: Likewise.
2841         * sysdeps/ia64/fpu/e_asinl.S: Likewise.
2842         * sysdeps/ia64/fpu/e_atan2.S: Likewise.
2843         * sysdeps/ia64/fpu/e_atan2f.S: Likewise.
2844         * sysdeps/ia64/fpu/e_cosh.S: Likewise.
2845         * sysdeps/ia64/fpu/e_coshf.S: Likewise.
2846         * sysdeps/ia64/fpu/e_coshl.S: Likewise.
2847         * sysdeps/ia64/fpu/e_exp.S: Likewise.
2848         * sysdeps/ia64/fpu/e_expf.S: Likewise.
2849         * sysdeps/ia64/fpu/e_fmod.S: Likewise.
2850         * sysdeps/ia64/fpu/e_fmodf.S: Likewise.
2851         * sysdeps/ia64/fpu/e_fmodl.S: Likewise.
2852         * sysdeps/ia64/fpu/e_hypot.S: Likewise.
2853         * sysdeps/ia64/fpu/e_hypotf.S: Likewise.
2854         * sysdeps/ia64/fpu/e_hypotl.S: Likewise.
2855         * sysdeps/ia64/fpu/e_log.S: Likewise.
2856         * sysdeps/ia64/fpu/e_logf.S: Likewise.
2857         * sysdeps/ia64/fpu/e_pow.S: Likewise.
2858         * sysdeps/ia64/fpu/e_powf.S: Likewise.
2859         * sysdeps/ia64/fpu/e_powl.S: Likewise.
2860         * sysdeps/ia64/fpu/e_remainder.S: Likewise.
2861         * sysdeps/ia64/fpu/e_remainderf.S: Likewise.
2862         * sysdeps/ia64/fpu/e_remainderl.S: Likewise.
2863         * sysdeps/ia64/fpu/e_scalb.S: Likewise.
2864         * sysdeps/ia64/fpu/e_scalbf.S: Likewise.
2865         * sysdeps/ia64/fpu/e_scalbl.S: Likewise.
2866         * sysdeps/ia64/fpu/e_sinh.S: Likewise.
2867         * sysdeps/ia64/fpu/e_sinhf.S: Likewise.
2868         * sysdeps/ia64/fpu/e_sinhl.S: Likewise.
2869         * sysdeps/ia64/fpu/e_sqrt.S: Likewise.
2870         * sysdeps/ia64/fpu/e_sqrtf.S: Likewise.
2871         * sysdeps/ia64/fpu/e_sqrtl.S: Likewise.
2872         * sysdeps/ia64/fpu/libm_atan2_req.S: Likewise.
2873         * sysdeps/ia64/fpu/libm_error.c: Likewise.
2874         * sysdeps/ia64/fpu/libm_frexp4.S: Likewise.
2875         * sysdeps/ia64/fpu/libm_frexp4f.S: Likewise.
2876         * sysdeps/ia64/fpu/s_frexpl.c: Likewise.
2877         * sysdeps/ia64/fpu/s_ilogb.S: Likewise.
2878         * sysdeps/ia64/fpu/s_ilogbf.S: Likewise.
2879         * sysdeps/ia64/fpu/s_ilogbl.S: Likewise.
2880         * sysdeps/ia64/fpu/s_ldexp.S: Likewise.
2881         * sysdeps/ia64/fpu/s_ldexpf.S: Likewise.
2882         * sysdeps/ia64/fpu/s_ldexpl.S: Likewise.
2883         * sysdeps/ia64/fpu/s_log1p.S: Likewise.
2884         * sysdeps/ia64/fpu/s_log1pf.S: Likewise.
2885         * sysdeps/ia64/fpu/s_log1pl.S: Likewise.
2886         * sysdeps/ia64/fpu/s_logb.S: Likewise.
2887         * sysdeps/ia64/fpu/s_logbf.S: Likewise.
2888         * sysdeps/ia64/fpu/s_logbl.S: Likewise.
2889         * sysdeps/ia64/fpu/s_modf.S: Likewise.
2890         * sysdeps/ia64/fpu/s_modff.S: Likewise.
2891         * sysdeps/ia64/fpu/s_modfl.S: Likewise.
2892         * sysdeps/ia64/fpu/s_nearbyint.S: Likewise.
2893         * sysdeps/ia64/fpu/s_nearbyintf.S: Likewise.
2894         * sysdeps/ia64/fpu/s_nearbyintl.S: Likewise.
2895         * sysdeps/ia64/fpu/s_rint.S: Likewise.
2896         * sysdeps/ia64/fpu/s_rintf.S: Likewise.
2897         * sysdeps/ia64/fpu/s_rintl.S: Likewise.
2898         * sysdeps/ia64/fpu/s_round.S: Likewise.
2899         * sysdeps/ia64/fpu/s_roundf.S: Likewise.
2900         * sysdeps/ia64/fpu/s_roundl.S: Likewise.
2901         * sysdeps/ia64/fpu/s_scalbn.S: Likewise.
2902         * sysdeps/ia64/fpu/s_scalbnf.S: Likewise.
2903         * sysdeps/ia64/fpu/s_scalbnl.S: Likewise.
2904         * sysdeps/ia64/fpu/s_significand.S: Likewise.
2905         * sysdeps/ia64/fpu/s_significandf.S: Likewise.
2906         * sysdeps/ia64/fpu/s_significandl.S: Likewise.
2907         * sysdeps/ia64/fpu/s_tan.S: Likewise.
2908         * sysdeps/ia64/fpu/s_tanf.S: Likewise.
2909         * sysdeps/ia64/fpu/s_tanl.S: Likewise.
2910         * sysdeps/ia64/fpu/s_trunc.S: Likewise.
2911         * sysdeps/ia64/fpu/s_truncf.S: Likewise.
2912         * sysdeps/ia64/fpu/s_truncl.S: Likewise.
2913         * sysdeps/ieee754/dbl-64/doasin.c: Changed copyright notice to
2914         reflect IBM donation of math library to FSF
2915         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
2916         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
2917         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
2918         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
2919         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
2920         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
2921         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
2922         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
2923         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
2924         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
2925         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
2926         * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
2927         * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
2928         * sysdeps/ieee754/dbl-64/mplog.c: Likewise.
2929         * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
2930         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
2931         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
2932         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
2933         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
2934         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
2935         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
2936         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
2937         * sysdeps/gnu/netinet/udp.h: Added BSD copying permission notice
2938         * sysdeps/vax/__longjmp.c: Likewise.
2939         * sysdeps/vax/setjmp.c: Likewise.
2940         * libio/filedoalloc.c: Fixed BSD copying permission notice to
2941         remove advertising clause
2942         * sysdeps/vax/htonl.s: Likewise.
2943         * sysdeps/vax/htons.s: Likewise.
2944         * libio/wfiledoalloc.c: Likewise.
2945         * stdlib/random.c: Likewise.
2946         * stdlib/random_r.c: Likewise.
2947         * sysdeps/mach/sys/reboot.h: Likewise.
2948         * inet/getnameinfo.c: Deleted advertising clause from Inner Net License
2949         * sysdeps/posix/getaddrinfo.c: Likewise.
2950         * sunrpc/des_impl.c: Updated license permission notice to Lesser
2951         GPL and corrected pointer to point to the correct license.
2953 2002-07-04  Andreas Jaeger  <aj@suse.de>
2955         * scripts/config.guess: New upstream version.
2956         * scripts/config.sub: Likewise.
2958 2002-07-02  Andreas Schwab  <schwab@suse.de>
2960         * resolv/nss_dns/dns-network.c (getanswer_r): Reduce linebuflen
2961         in parallel to bumping up the buffer pointer.
2963 2002-07-01  Jakub Jelinek  <jakub@redhat.com>
2965         * math/libm-test.inc (acos_test): Add missing L suffix for
2966         expected result.
2967         (cpow_test): Likewise.
2968         * sysdeps/i386/fpu/libm-test-ulps: Adjust errors for cpow, remove
2969         error for acos (0.0625).
2971 2002-06-30  Ulrich Drepper  <drepper@redhat.com>
2973         * locale/iso-639.def: Add entry for Ganda.
2974         * locale/programs/ld-address.c (DEFINE_LANGUAGE_CODE3): New
2975         definition.
2976         (address_finish): Handle entries with two letter ISO 639 code.
2978         * iconvdata/Makefile: Recreate gconv-modules.cache file in target
2979         directory if it existed before.
2980         * iconv/iconvconfig.c: Implement --prefix option.
2982         * math/libm-test.inc (cexp_test): Add missing L suffix for
2983         expected result.  Reported by Stephen L Moshier <steve@moshier.net>.
2984         * sysdeps/i386/fpu/libm-test-ulps: Adjust error for cexp (0.75 +
2985         1.25 i).
2987 2002-05-29  H.J. Lu  <hjl@gnu.org>
2989         * elf/dl-error.c (_dl_signal_cerror): Report error if ld.so debug
2990         is turned on.
2992 2002-05-28  H.J. Lu  <hjl@gnu.org>
2994         * elf/dl-deps.c (_dl_map_object_deps): Don't add objects which
2995         are not dlopened on the dependency list of a dlopened object.
2997 2002-06-30  Ulrich Drepper  <drepper@redhat.com>
2999         * elf/dl-lookup.c (add_dependency): It is not necessary to add
3000         dependencies if they are created between objects which are created
3001         while processing RTLD_NOW for objects loaded as part of the same
3002         dlopen call.
3004 2002-06-14  H.J. Lu  <hjl@gnu.org>
3006         * elf/Makefile (tests): Add circleload1.
3007         (modules-names): Add circlemod1, circlemod2, circlemod3,
3008         circlemod1a, circlemod2a and circlemod3a.
3009         ($(objpfx)circleload1): New target.
3010         ($(objpfx)circleload1.out): Likewise.
3011         ($(objpfx)circlemod1.so): Likewise.
3012         ($(objpfx)circlemod2.so): Likewise.
3013         ($(objpfx)circlemod1a.so): Likewise.
3014         ($(objpfx)circlemod2a.so): Likewise.
3015         * elf/circleload1.c: New file.
3016         * elf/circlemod1.c: New file.
3017         * elf/circlemod1a.c: New file.
3018         * elf/circlemod2.c: New file.
3019         * elf/circlemod2a.c: New file.
3020         * elf/circlemod3.c: New file.
3021         * elf/circlemod3a.c: New file.
3023 2002-06-18  Amos Waterland  <apw@us.ibm.com>
3025         * sysdeps/pthread/aio_cancel.c (aio_cancel): Add check for invalid
3026         file descriptor.
3027         * sysdeps/pthread/aio_fsync.c (aio_fsync): Add check for invalid fd;
3028         add check for fd not open for writing.
3030         * sysdeps/pthread/aio_suspend.c (aio_suspend): Add check for
3031         completed element(s) and do not suspend thread if so.  Patch
3032         heavily modified by drepper.
3034         * rt/tst-aio7.c: New file.  Regression test for problems which the
3035         above three changes fix.
3036         * rt/Makefile (tests): Add tst-aio7.
3038 2002-06-29  Ulrich Drepper  <drepper@redhat.com>
3040         * rt/tst-aio6.c: Fix comment.
3042         * catgets/gencat.c (read_input_file): Handle more than one slash
3043         at end of line correctly [PR libc/3926].
3044         Based on a patch by Steven Kim <steven.kim@peregrine.com>.
3046         * catgets/sample.SJIS: Add test case for above bug.
3047         * catgets/test-gencat.c: Adjust test code.
3048         * catgets/test-gencat.sh: Adjust expected results.
3050         * elf/do-rel.h (elf_dynamic_do_rel): Avoid overflow in computation
3051         to skip relative relocations.
3052         Patch by Geoff Keating <geoffk@redhat.com>.
3054 2002-05-26  Bruno Haible  <bruno@clisp.org>
3056         * iconv/loop.c (STANDARD_FROM_LOOP_ERR_HANDLER): New macro.
3057         (STANDARD_TO_LOOP_ERR_HANDLER): Renamed from STANDARD_ERR_HANDLER.
3058         All callers changed.
3059         * iconv/gconv_simple.c (ascii_internal_loop): For error handling use
3060         STANDARD_FROM_LOOP_ERR_HANDLER.
3061         (utf8_internal_loop): Likewise.
3062         (ucs2_internal_loop): Likewise.
3063         (internal_ucs2_loop): Perform error handling like in
3064         STANDARD_FROM_LOOP_ERR_HANDLER.
3065         * iconvdata/unicode.c (BODY for TO_LOOP): Perform error handling like
3066         in STANDARD_FROM_LOOP_ERR_HANDLER.
3067         (BODY for FROM_LOOP): Use STANDARD_FROM_LOOP_ERR_HANDLER for error
3068         handling.
3069         * iconvdata/utf-16.c (BODY for TO_LOOP): Perform error handling like
3070         in STANDARD_FROM_LOOP_ERR_HANDLER.
3071         (BODY for FROM_LOOP): Use STANDARD_FROM_LOOP_ERR_HANDLER for error
3072         handling.
3073         * iconvdata/utf-32.c (BODY for TO_LOOP): Perform error handling like
3074         in STANDARD_FROM_LOOP_ERR_HANDLER.
3075         (BODY for FROM_LOOP): Use STANDARD_FROM_LOOP_ERR_HANDLER for error
3076         handling.
3077         * iconvdata/big5.c (BODY for FROM_LOOP): For error handling use
3078         STANDARD_FROM_LOOP_ERR_HANDLER.
3079         * iconvdata/iso-2022-jp.c (BODY for FROM_LOOP): Likewise.
3080         * iconvdata/8bit-gap.c (BODY for FROM_LOOP): Likewise.
3081         * iconvdata/8bit-generic.c (BODY for FROM_LOOP): Likewise.
3082         * iconvdata/ansi_x3.110.c (BODY for FROM_LOOP): Likewise.
3083         * iconvdata/armscii-8.c (BODY for FROM_LOOP): Likewise.
3084         * iconvdata/cp1255.c (BODY for FROM_LOOP): Likewise.
3085         * iconvdata/cp1258.c (BODY for FROM_LOOP): Likewise.
3086         * iconvdata/euc-cn.c (BODY for FROM_LOOP): Likewise.
3087         * iconvdata/euc-jisx0213.c (BODY for FROM_LOOP): Likewise.
3088         * iconvdata/euc-jp.c (BODY for FROM_LOOP): Likewise.
3089         * iconvdata/euc-kr.c (BODY for FROM_LOOP): Likewise.
3090         * iconvdata/euc-tw.c (BODY for FROM_LOOP): Likewise.
3091         * iconvdata/big5hkscs.c (BODY for FROM_LOOP): Likewise.
3092         * iconvdata/gb18030.c (BODY for FROM_LOOP): Likewise.
3093         * iconvdata/gbk.c (BODY for FROM_LOOP): Likewise.
3094         * iconvdata/iso-2022-cn-ext.c (BODY for FROM_LOOP): Likewise.
3095         * iconvdata/iso-2022-cn.c (BODY for FROM_LOOP): Likewise.
3096         * iconvdata/iso-2022-jp-3.c (BODY for FROM_LOOP): Likewise.
3097         * iconvdata/iso-2022-kr.c (BODY for FROM_LOOP): Likewise.
3098         * iconvdata/iso646.c (BODY for FROM_LOOP): Likewise.
3099         * iconvdata/iso_6937-2.c (BODY for FROM_LOOP): Likewise.
3100         * iconvdata/iso_6937.c (BODY for FROM_LOOP): Likewise.
3101         * iconvdata/johab.c (BODY for FROM_LOOP): Likewise.
3102         * iconvdata/shift_jisx0213.c (BODY for FROM_LOOP): Likewise.
3103         * iconvdata/sjis.c (BODY for FROM_LOOP): Likewise.
3104         * iconvdata/t.61.c (BODY for FROM_LOOP): Likewise.
3105         * iconvdata/uhc.c (BODY for FROM_LOOP): Likewise.
3106         * iconvdata/utf-7.c (BODY for FROM_LOOP): Likewise.
3107         * iconvdata/gbbig5.c (BODY for FROM_LOOP): Likewise.  When ignoring
3108         an error, still set result = __GCONV_ILLEGAL_INPUT.
3109         (BODY for TO_LOOP): Likewise.
3110         * iconvdata/ibm930.c (BODY for FROM_LOOP): For error handling use
3111         STANDARD_FROM_LOOP_ERR_HANDLER.
3112         (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
3113         * iconvdata/ibm932.c: Include <dlfcn.h> and <stdint.h>.
3114         (BODY for FROM_LOOP): Use STANDARD_FROM_LOOP_ERR_HANDLER for error
3115         handling.
3116         (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
3117         * iconvdata/ibm933.c (BODY for FROM_LOOP): For error handling use
3118         STANDARD_FROM_LOOP_ERR_HANDLER.
3119         (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
3120         * iconvdata/ibm935.c (BODY for FROM_LOOP): For error handling use
3121         STANDARD_FROM_LOOP_ERR_HANDLER.
3122         (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
3123         * iconvdata/ibm937.c (BODY for FROM_LOOP): For error handling use
3124         STANDARD_FROM_LOOP_ERR_HANDLER.
3125         (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
3126         * iconvdata/ibm939.c (BODY for FROM_LOOP): For error handling use
3127         STANDARD_FROM_LOOP_ERR_HANDLER.
3128         (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
3129         * iconvdata/ibm943.c: Include <dlfcn.h> and <stdint.h>.
3130         (BODY for FROM_LOOP): Use STANDARD_FROM_LOOP_ERR_HANDLER for error
3131         handling.
3132         (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
3133         * iconvdata/gbgbk.c (BODY for FROM_LOOP): Update.
3134         * iconvdata/iso8859-1.c (BODY for TO_LOOP): Update.
3135         * iconvdata/tcvn5712-1.c (BODY for TO_LOOP): Update.
3137 2002-06-28  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
3139         * sysdeps/sh/dl-machine.h (elf_machine_load_address): Use local
3140         labels in assembler instructions.
3142 2002-06-25  Ulrich Drepper  <drepper@redhat.com>
3144         * libio/fileops.c (_IO_file_xsgetn_mmap): Always set EOF flag if
3145         not enough content is available.
3146         * libio/tst-eof.c: New file.
3147         * libio/Makefile (tests): Add tst-eof.
3149         * libio/fileops.c (_IO_file_underflow_mmap): Read a single byte to
3150         update atime.
3151         * libio/tst-atime.c: New file.
3152         * libio/Makefile (tests): Add tst-atime.
3154         * argp/argp-fmtstream.c (__argp_fmtstream_update): Avoid crash in
3155         handling of overly long words.
3157 2002-06-25  Andreas Jaeger  <aj@suse.de>
3159         * sysdeps/x86-64/dl-machine.h (elf_machine_load_address): Rewrite
3160         to not use 32-bit pc relative relocations.
3161         (elf_machine_dynamic): Likewise.
3163 2002-06-21  Ulrich Drepper  <drepper@redhat.com>
3165         * sysdeps/unix/sysv/linux/getdents.c [__ASSUME_GETDENTS64_SYSCALL]
3166         (__GETDENTS): Check for failed getdents64 syscall.
3167         * dirent/Makefile (tests): Add bug-readdir1.
3168         * dirent/bug-readdir1.c: New file.
3170 2002-06-17  Jakub Jelinek  <jakub@redhat.com>
3172         * elf/dl-lookup.c (_dl_debug_bindings): Use type_class 4 for TLS
3173         lookups.
3174         * elf/rtld.c (dl_main): Move TLS setup code before LD_TRACE_PRELINKING
3175         code.  Print TLS modid and offset for modules containing PT_TLS
3176         segments.
3178 2002-06-09  Jakub Jelinek  <jakub@redhat.com>
3180         * sysdeps/unix/sysv/linux/i386/dl-brk.c: Move...
3181         * sysdeps/unix/sysv/linux/dl-brk.c: ...here.
3182         * sysdeps/unix/sysv/linux/i386/dl-sbrk.c: Move...
3183         * sysdeps/unix/sysv/linux/dl-sbrk.c: ...here.
3185 2002-06-07  Jakub Jelinek  <jakub@redhat.com>
3187         * nss/getXXbyYY_r.c (NEW, NEW1): Define.
3188         (NEW (REENTRANT_NAME)): Strong alias to INTERNAL (REENTRANT_NAME).
3189         (REENTRANT_NAME@@GLIBC_2.1.2): Use NEW (REENTRANT_NAME).
3190         * nss/getXXent_r.c (NEW, NEW1): Define.
3191         (NEW (REENTRANT_GETNAME)): Strong alias to
3192         INTERNAL (REENTRANT_GETNAME).
3193         (REENTRANT_GETNAME@@GLIBC_2.1.2): Use NEW (REENTRANT_GETNAME).
3195 2002-06-21  Ulrich Drepper  <drepper@redhat.com>
3197         * libio/fileops.c (_IO_file_setbuf_mmap): New function.
3198         (_IO_file_jumps_mmap): Use it.
3199         * libio/iosetvbuf.c: Don't call _IO_WSETBUF.
3200         * libio/libioP.h: Remove _IO_wdefault_setbuf and
3201         _IO_wdefault_setbuf_internal prorotypes.  Add _IO_file_setbuf_mmap
3202         prototype.
3203         * libio/wfileops.c (_IO_wfile_setbuf): Removed.
3204         (_IO_wfile_jumps_mmap): Don't use it anymore.
3205         * libio/wgenops.c (_IO_wdefault_setbuf): Removed.
3206         * libio/memstream.c (_IO_wmem_jumps): Use _IO_default_setbuf not
3207         _IO_wdefault_setbuf.
3208         * libio/vswprintf.c (_IO_wstrn_jumps): Likewise.
3209         * libio/wstrops.c (_IO_wstr_jumps): Likewise.
3210         * stdio-common/vfprintf.c (_IO_helper_jumps): Likewise.
3212 2002-06-05  Jakub Jelinek  <jakub@redhat.com>
3214         * libio/Makefile (tests): Add tst-mmap-setvbuf.
3215         * libio/tst-mmap-setvbuf.c: New test.
3217 2002-06-21  Andreas Jaeger  <aj@suse.de>
3219         * sysdeps/i386/fpu/libm-test-ulps: Add some ulps from my P3.
3221 2002-06-18  Jakub Jelinek  <jakub@redhat.com>
3223         * include/unistd.h (__fork_internal): Remove.
3224         (__fork): Don't define to __fork_internal.
3225         * sysdeps/mach/hurd/fork.c (__fork): Remove INTDEF.
3226         * sysdeps/unix/sysv/aix/fork.c (__fork): Likewise.
3227         * sysdeps/unix/sysv/linux/ia64/fork.S (__fork_internal): Remove alias.
3228         * sysdeps/unix/sysv/linux/sparc/fork.S (__fork_internal): Likewise.
3229         * sysdeps/unix/sysv/linux/syscalls.list (__fork_internal): Likewise.
3231 2002-06-20  Ulrich Drepper  <drepper@redhat.com>
3233         * po/hr.po: New file.
3235 2002-06-11  Wolfram Gloger  <wg@malloc.de>
3237         * malloc/malloc.c: Fix error path when new_heap() returns NULL.
3238         Reported by Michael Meissner <meissner@redhat.com>.
3240 2002-06-20  Ulrich Drepper  <drepper@redhat.com>
3242         * sysdeps/unix/sysv/linux/ia64/getcontext.S: Fix typo.
3243         Patch by Hans Boehm <hans_boehm@hp.com>.
3245 2002-06-20  Andreas Jaeger  <aj@suse.de>
3247         * math/libm-test.inc: Use exact values as input parameters,
3248         compute output parameters with 36 digits for 128-bit long doubles.
3249         * sysdeps/i386/fpu/libm-test-ulps: Regenerated.
3250         * sysdeps/x86-64/fpu/libm-test-ulps: Regenerated.
3251         * sysdeps/ia64/fpu/libm-test-ulps: Regenerated.
3253 2002-06-13  Stephen L Moshier  <steve@moshier.net>
3255         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Fix cases in which
3256         argument or result is subnormal.
3258 2002-06-19  Ulrich Drepper  <drepper@redhat.com>
3260         * sysdeps/i386/fpu/s_remquo.S: Fix three mistakes in computing the
3261         quotient.
3262         * sysdeps/i386/fpu/s_remquof.S: Likewise.
3263         * sysdeps/i386/fpu/s_remquol.S: Likewise.
3265         * sysdeps/hppa/dl-machine.h: Don't use multi-line string literals.
3267 2002-06-17  David Mosberger  <davidm@hpl.hp.com>
3269         * sysdeps/unix/sysv/linux/ia64/sys/ucontext.h (uc_sigmask): Fix
3270         typo: corresponding sigcontext field is called sc_mask, not sc_sigmask.
3271         Reported by Peter A. Buhr.
3273 2002-06-15  Roland McGrath  <roland@frob.com>
3275         * sysdeps/mach/hurd/mmap.c (__mmap): Add a dead case that quiets a
3276         warning.
3278         * sysdeps/mach/hurd/getcwd.c
3279         (_hurd_canonicalize_directory_name_internal): unsigned int -> size_t
3281         * sysdeps/unix/sysv/linux/bits/ustat.h: Moved to ...
3282         * sysdeps/generic/bits/ustat.h: ... here (was almost identical).
3284         * sysdeps/alpha/divrem.h: Use local label instead of global one for
3285         jump to local subroutine.
3287 2002-06-14  Roland McGrath  <roland@frob.com>
3289         * sysdeps/mach/hurd/i386/Makeconfig: File moved to ...
3290         * sysdeps/mach/hurd/Makeconfig: ... here.
3292 2002-06-13  Andreas Schwab  <schwab@suse.de>
3294         * sysdeps/m68k/fpu/s_finite.c: Remove INTDEF.
3295         * sysdeps/m68k/fpu/s_finitef.c: Likewise.
3296         * sysdeps/m68k/fpu/s_finitel.c: Likewise.
3298 2002-06-13  Roland McGrath  <roland@frob.com>
3300         * hurd/hurdstartup.h (_hurd_startup): int -> intptr_t in MAIN arg type.
3301         * hurd/hurdstartup.c (_hurd_startup): Likewise.
3302         Use intptr_t instead of int for argc in stack layout.
3303         * sysdeps/mach/hurd/alpha/init-first.c (init): Fix argument type.
3304         (_dl_init_first): Likewise.
3305         (_hurd_stack_setup): Likewise.
3306         (init1): Add a cast.
3307         * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start: go): Fix arg type.
3309         * sysdeps/mach/hurd/if_index.c (if_nameindex): Use size_t for AMOUNT
3310         argument to pfinet_siocgifconf RPC.
3312 2002-06-13  Andreas Schwab  <schwab@suse.de>
3314         * sysdeps/m68k/fpu/s_isinf.c (INTDEFX): Define to get correct
3315         expansion order.
3317 2002-06-12  Roland McGrath  <roland@frob.com>
3319         * sysdeps/generic/tmpfile.c [USE_IN_LIBIO] (tmpfile): Don't #define
3320         if already defined.
3321         [USE_IN_LIBIO]: Conditionalize versioned_symbol use on
3322         [GEN_THIS == __GT_FILE] so that tmpfile64.c's inclusion doesn't get it.
3324 2002-06-11  Roland McGrath  <roland@frob.com>
3326         * sysdeps/mach/hurd/xstat64.c: Conditionalize entire contents of the
3327         file on [!RTLD_STAT64].
3328         * sysdeps/mach/hurd/fxstat64.c: Likewise.
3330         * sysdeps/mach/hurd/tmpfile.c (tmpfile64): Define as alias of tmpfile.
3331         (__fdopen): Use INTUSE.
3332         * sysdeps/mach/hurd/tmpfile64.c: New file, empty placeholder.
3334         * stdio-common/tmpfile64.c: File removed.
3335         * sysdeps/generic/tmpfile64.c: New file.
3336         * sysdeps/generic/tmpfile.c (GEN_THIS): New macro, define to __GT_FILE
3337         if not already defined.
3338         (tmpfile): Use it in place of __GT_FILE.
3340         * include/unistd.h: Declare __chown_internal.
3342         * sysdeps/mach/hurd/sendfile64.c (sendfile64): Do real work here.
3343         * sysdeps/mach/hurd/sendfile.c (sendfile): Call that.
3345 2002-06-09  Roland McGrath  <roland@frob.com>
3347         Update to new Hurd RPC interfaces supporting 64-bit file sizes.
3348         * sysdeps/mach/hurd/configure.in: Check for <hurd/version.h> with
3349         value of HURD_INTERFACE_VERSION >= 20020609.
3350         * sysdeps/mach/hurd/configure: Regenerated.
3351         * shlib-versions (.*-.*-gnu-gnu.*): Set libhurduser=0.3.
3352         * sysdeps/mach/hurd/xstatconv.c (xstat64_conv): Rewritten to
3353         convert a struct stat64 into a struct stat and return 0 or -1
3354         with errno set to EOVERFLOW.
3355         * sysdeps/mach/hurd/statfsconv.c (statfs64_conv): Likewise
3356         for struct statfs64 to struct statfs.
3357         * sysdeps/mach/hurd/xstat.c (__xstat): Use converter and call ...
3358         * sysdeps/mach/hurd/xstat64.c (__xstat64): ... this, real work here.
3359         * sysdeps/mach/hurd/fxstat.c (__fxstat): Likewise.
3360         * sysdeps/mach/hurd/fxstat64.c (__fxstat64): Likewise.
3361         * sysdeps/mach/hurd/lxstat.c (__lxstat): Likewise.
3362         * sysdeps/mach/hurd/lxstat64.c (__lxstat64): Likewise.
3363         * sysdeps/mach/hurd/statfs.c (__statfs): Likewise.
3364         * sysdeps/mach/hurd/statfs64.c (__statfs64): Likewise.
3365         * sysdeps/mach/hurd/fstatfs.c (__fstatfs): Likewise.
3366         * sysdeps/mach/hurd/fstatfs64.c (__fstatfs64): Likewise.
3367         * sysdeps/mach/hurd/pwrite64.c (__libc_pwrite64): Do real work here.
3368         * sysdeps/mach/hurd/pwrite.c (__libc_pwrite): Call that.
3369         * sysdeps/mach/hurd/pread64.c (__libc_pread64): Do real work here.
3370         * sysdeps/mach/hurd/pread.c (__libc_pread): Call that.
3371         * sysdeps/mach/hurd/lseek64.c (__libc_lseek64): Do real work here.
3372         * sysdeps/mach/hurd/lseek.c (__libc_lseek): Call that.
3373         * sysdeps/mach/hurd/readdir64.c (__readdir64): Do real work here.
3374         * sysdeps/mach/hurd/readdir.c (__readdir): Call that.
3375         * sysdeps/mach/hurd/readdir64_r.c (__readdir64_r): Do real work here.
3376         * sysdeps/mach/hurd/readdir_r.c (__readdir64_r): Call that.
3377         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry):
3378         Use struct stat64 for io_stat argument.
3379         * sysdeps/mach/hurd/readlink.c (__readlink): Likewise.
3380         * hurd/fopenport.c (seekio): Remove EOVERFLOW check, pass POS directly
3381         to io_seek.
3382         * hurd/fd-read.c (_hurd_fd_read): Use loff_t for OFFSET argument.
3383         * hurd/fd-write.c (_hurd_fd_write): Likewise.
3384         * hurd/hurd/fd.h: Update decls.
3385         * sysdeps/mach/hurd/getcwd.c
3386         (_hurd_canonicalize_directory_name_internal): Use ino64_t
3387         and struct dirent64.
3388         * sysdeps/mach/hurd/dl-sysdep.c (open_file): Use struct stat64.
3389         (__xstat): Renamed to __xstat64, use struct stat64 for argument.
3390         (__fxstat): Renamed to __fxstat64, use struct stat64 for argument.
3391         (__lseek): Renamed to __libc_lseek64, use off64_t for argument.
3393 2002-06-08  Roland McGrath  <roland@frob.com>
3395         * sysdeps/mach/hurd/dirstream.h (struct __dirstream): Use size_t
3396         instead of unsigned long int for __allocation and __size members.
3398 2002-06-09  Jakub Jelinek  <jakub@redhat.com>
3400         * sysdeps/unix/sysv/linux/i386/dl-brk.c: Move...
3401         * sysdeps/unix/sysv/linux/dl-brk.c: ...here.
3402         * sysdeps/unix/sysv/linux/i386/dl-sbrk.c: Move...
3403         * sysdeps/unix/sysv/linux/dl-sbrk.c: ...here.
3405 2002-06-07  Roland McGrath  <roland@frob.com>
3407         * sysdeps/mach/hurd/bits/environments.h: File removed.
3409 2002-06-07  Jakub Jelinek  <jakub@redhat.com>
3411         * sysdeps/unix/sysv/linux/alpha/sendfile64.c: New file.
3412         * sysdeps/unix/sysv/linux/ia64/sendfile64.c: New file.
3413         * sysdeps/unix/sysv/linux/sparc/sparc64/sendfile64.c: New file.
3414         * sysdeps/unix/sysv/linux/x86_64/sendfile64.c: New file.
3415         * sysdeps/unix/sysv/linux/syscalls.list (sendfile): Remove EXTRA.
3416         (sendfile64): Likewise.
3417         * sysdeps/unix/sysv/linux/alpha/syscalls.list (sendfile): Likewise.
3418         * sysdeps/unix/sysv/linux/ia64/syscalls.list (sendfile): Likewise.
3419         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list (sendfile):
3420         Likewise.
3421         * sysdeps/unix/sysv/linux/x86_64/syscalls.list (sendfile): Likewise.
3423         * include/sys/stat.h (__fxstat64, __lxstat64): Only define if not
3424         already defined.
3426 2002-06-04  Bruno Haible  <bruno@clisp.org>
3428         * sysdeps/cris/stackinfo.h: New file.
3430         * sysdeps/hppa/dl-machine.h (elf_machine_rela): Cast reloc_addr
3431         to an integer type before performing bit operations on it.
3433 2002-06-05  Roland McGrath  <roland@frob.com>
3435         * sysdeps/generic/sendfile.c: Include <errno.h>.
3436         * sysdeps/generic/sendfile64.c: Likewise.
3438         * io/Makefile (routines): Add sendfile and sendfile64.
3439         (headers): Add sys/sendfile.h to the list.
3440         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Don't add it here.
3441         * sysdeps/unix/sysv/linux/sys/sendfile.h: Moved to ...
3442         * io/sys/sendfile.h: ... here.
3443         * sysdeps/generic/sendfile.c: New file.
3444         * sysdeps/generic/sendfile64.c: New file.
3446         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.1, GLIBC_2.3):
3447         Move sendfile, sendfile64 to ...
3448         * io/Versions (GLIBC_2.1, GLIBC_2.3): ... here.
3449         * sysdeps/mach/hurd/sendfile.c: New file.
3450         * sysdeps/mach/hurd/sendfile64.c: New file.
3452         * sysdeps/mach/nanosleep.c: New file.
3454 2002-06-04  Roland McGrath  <roland@frob.com>
3456         * sysdeps/alpha/elf/configure.in: New file.  Check for TLS support.
3457         * sysdeps/alpha/elf/configure: New file (generated).
3459 2002-06-02  Roland McGrath  <roland@frob.com>
3461         * include/link.h: Include <tls.h> to make sure USE_TLS is defined.
3463 2002-06-01  Roland McGrath  <roland@frob.com>
3465         * sysdeps/mach/hurd/alpha/init-first.c: New file, modified from
3466         i386/init-first.c by Andrew M. Miklic <miklic@attglobal.net>.
3468 2002-05-19  Ulrich Drepper  <drepper@redhat.com>
3470         * resolv/resolv.h (struct __res_state): Remove unused nstimes.
3471         Add nsmap.
3472         * resolv/res_init.c (__res_vinit): Initialize nsmap array.
3473         Remove nstimes setting.
3474         (res_nclose): Check all MAXNS nameservers with non-NULL nsaddrs.
3475         * resolv/res_send.c (res_nsend): Don't close unconditionally if
3476         there is mix of IPv6 and IPv4 nameservers.
3477         Use nsmap array to find free slots and preserve nameserver ordering.
3478         Fix RES_ROTATE.
3480 2002-05-30  Ulrich Drepper  <drepper@redhat.com>
3482         * sysdeps/unix/sysv/linux/sys/sendfile.h: It is now possible to
3483         use this header with LFS.
3485         * po/sk.po: Update from translation team.
3487 2002-05-28  Andreas Schwab  <schwab@suse.de>
3489         * sysdeps/generic/readelflib.c (process_elf_file): Give correct
3490         message when finding object of wrong class.
3492 2002-05-28  Jakub Jelinek  <jakub@redhat.com>
3494         * sysdeps/wordsize-32/divdi3.c (__moddi3): Fix pasto.
3495         Patch by <radu@netsoft.ro>.
3497 2002-05-30  Ulrich Drepper  <drepper@redhat.com>
3499         * sysdeps/unix/sysv/linux/Makefile [$(subdir)==misc] (sysdep_routines):
3500         Add readahead.
3501         * sysdeps/unix/sysv/linux/readahead.c: New file.
3502         * sysdeps/unix/sysv/linux/syscalls.list: Add sendfile64 syscall.
3503         * sysdeps/unix/sysv/linux/Versions: Export readahead and sendfile64.
3504         * sysdeps/unix/sysv/linux/alpha/syscalls.list: Add readahead syscall.
3505         Add sendfile64 alias to sendfile syscall.
3506         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
3507         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
3508         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
3509         * sysdeps/unix/sysv/linux/powerpc/syscalls.list: Add s_readahead
3510         syscall.
3512         * sysdeps/unix/sysv/linux/i386/sysdep.h: Use __i686.get_pc_thunk.XX
3513         special section for PIC register loading.
3514         * sysdeps/unix/sysv/linux/i386/i686/sysdep.h: Likewise.
3516         * config.h.in: Define HAVE_HIDDEN.
3517         * configure.in: Also define HAVE_HIDDEN if HAVE_PROTECTED is defined.
3519         * elf/elf.h: Correct Alpha TLS relocations according to last spec.
3521 2002-05-28  Roland McGrath  <roland@frob.com>
3523         * sysdeps/mach/alpha/setfpucw.c: New file.
3525 2002-05-26  Roland McGrath  <roland@frob.com>
3527         * sysdeps/mach/hurd/ioctl.c (__ioctl): Don't use sizeof in _IOTS.
3528         Use integer_t instead of int for IOC_VOID case.
3530 2002-05-27  Alexandre Oliva  <aoliva@redhat.com>
3532         * configure.in (DO_STATIC_NSS): Define if --disable-shared.
3534 2002-05-26  Bruno Haible  <bruno@clisp.org>
3536         * iconvdata/iso-2022-jp.c (BODY for TO_LOOP): Avoid running off the
3537         end of the ISO-8859-7 from idx table.
3539 2002-05-27  Ulrich Drepper  <drepper@redhat.com>
3541         * manual/lang.texi: Fix FLT_EPSILON description [PR libc/3649].
3543 2002-05-24  David S. Miller  <davem@redhat.com>
3545         * string/bits/string2.h (memset): Do not try to optimize when
3546         not _STRING_ARCH_unaligned if GCC will do the right thing.
3548 2002-05-21  Isamu Hasegawa  <isamu@yamato.ibm.com>
3550         * posix/regex.c: Define `inline' as a macro into nothing for the
3551         compilers which lack the keyword.
3552         * posix/regex.h: (RE_SYNTAX_GNU_AWK): Remove RE_CONTEXT_INVALID_OPS
3553         for the compatibility of gawk.
3554         * posix/regcomp.c: Add fake implementation of isblank() for the
3555         environments which lack the function.
3556         Don't use free_charset() in case of non-i18n envs.
3557         (build_range_exp): Don't use i18n related code in case of non-i18n
3558         envs.
3559         (build_collating_symbol): Likewise.
3560         (build_equiv_class): Likewise.
3561         (build_charclass): Likewise.
3562         (re_compile_fastmap_iter): Likewise.
3563         (parse_bracket_exp): Likewise.
3564         (build_word_op): Likewise.
3565         (regfree): Don't use free_charset() in case of non-i18n envs.
3566         * posix/regex_internal.h: Remove COMPLEX_BRACKET from
3567         re_token_type_t in case of non-i18n envs.
3568         Don't define re_charset_t in case of non-i18n envs.
3569         Change the type of wcs of re_string_t from wchar_t to wint_t,
3570         since we store also WEOF.
3571         * posix/regex_internal.c: (re_string_realloc_buffers): Change
3572         the type of wcs of re_string_t from wchar_t to wint_t.
3573         (re_string_reconstruct): Likewise.
3574         (create_ci_newstate): Don't use i18n related code in case of
3575         non-i18n envs.
3576         (create_cd_newstate): Likewise.
3578 2002-05-24  Ulrich Drepper  <drepper@redhat.com>
3580         * iconv/loop.c: Fix typo.
3582 2002-05-23  Jakub Jelinek  <jakub@redhat.com>
3584         * inet/ether_line.c (ether_line): Fix a typo causing only
3585         lower 4 bits of each ethernet address byte being assigned.
3586         Don't modify what line points to.
3587         * inet/tst-ether_aton.c (main): Add ether_line tests.
3589 2002-05-23  Marcus Brinkmann  <marcus@gnu.org>
3591         * manual/filesys.texi: Don't make readlink example leak memory
3592         when readlink fails.
3594 2002-05-20  Ulrich Drepper  <drepper@redhat.com>
3596         * iconv/loop.c: Fix condition for defining unaligned loop.  Add
3597         some more security checks.
3599 2002-05-17  David S. Miller  <davem@redhat.com>
3601         * sysdeps/unix/sysv/linux/sparc/fork.S: Define _internal aliases.
3603 2002-05-16  David S. Miller  <davem@redhat.com>
3605         * sysdeps/sparc/sparc32/dl-machine.h (LOAD_PIC_REG): Define.
3606         (elf_machine_dynamic): Use it to force PIC register to be loaded.
3607         (elf_machine_load_address): Likewise.
3608         * sysdeps/sparc/sparc64/dl-machine.h: Mirror sparc32 changes.
3610         * sysdeps/sparc/sparc64/strncmp.S: When second argument pointer
3611         is unaligned, do not forget to fully initialize %g1 magic value.
3613         * sysdeps/unix/sysv/linux/sparc/sys/procfs.h: Fix 64-bit elf
3614         register definitions and provide 32-bit variants of structures
3615         during 64-bit builds.
3617         * soft-fp/op-1.h (_FP_FRAC_CLEAR_OVERP_1): Define.
3618         * soft-fp/op-2.h (_FP_FRAC_CLEAR_OVERP_2): Define.
3619         * soft-fp/op-4.h (_FP_FRAC_CLEAR_OVERP_4): Define.
3620         * soft-fp/op-common.h (_FP_PACK_CANONICAL): After rounding, if
3621         _FP_FRAC_OVERP_X is set, use _FP_FRAC_CLEAR_OVERP_X to clear it.
3622         (_FP_FROM_INT): Perform right shifts on unsigned integer type.
3623         Do not clear implicit one bit here, it must be done post-rounding.
3624         Only pad to the left using left shift if value uses less than the
3625         available fractional bits.
3627 2002-05-20  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
3629         * sysdeps/powerpc/Makefile (sysdeps_routines): Use libgcc-compat
3630         instead of cmpdi2, shdi3, fixdfdi, fixsfdi in csu dir.
3631         (shared-only-routines): Likewise.
3632         * sysdeps/powerpc/libgcc-compat.c: New file.
3633         * sysdeps/wordsize-32/cmpdi2.c: Removed.
3634         * sysdeps/wordsize-32/fixdfdi.c: Removed.
3635         * sysdeps/wordsize-32/fixsfdi.c: Removed.
3636         * sysdeps/wordsize-32/shdi3.c: Removed.
3638 2002-05-16  Bruno Haible  <bruno@clisp.org>
3640         * MakeTAGS (libc.pot): Don't sort the output.
3641         * po/header.pot: Update to match xgettext 0.11 output.
3643 2002-05-16  Bruno Haible  <bruno@clisp.org>
3645         * MakeTAGS (subdirs): Remove duplicates.
3647 2002-05-19  Ulrich Drepper  <drepper@redhat.com>
3649         * sysdeps/unix/sysv/linux/errlist.c: Remove extra weak alias
3650         definiton of _old_sys_nerr.  Define _old_sys_errlist as strong
3651         alias.
3653 2002-05-19  Andreas Jaeger  <aj@suse.de>
3655         * sysdeps/unix/sysv/linux/configure.in: Warn against an
3656         installation in /usr/local.
3658 2002-05-16  Bruno Haible  <bruno@clisp.org>
3660         * sysdeps/unix/sysv/aix/bits/ioctl-types.h: Don't use multiline
3661         string as argument of #error.
3663 2002-05-15  Ulrich Drepper  <drepper@redhat.com>
3665         * stdlib/canonicalize.c (canonicalize): Rename to __realpath and
3666         don't define static.  Remove old __realpath function.  TC1 of
3667         POSIX 2001 will allow the second parameter to be NULL.
3668         * stdlib/test-canon.c: Comment out test for NULL as second
3669         parameter of realpath.
3671         * time/offtime.c (__offtime): Set errno if overflow is detected.
3673         * elf/Makefile (rtld-routines): Remove dl-brk and dl-sbrk.
3674         * sysdeps/unix/sysv/linux/Makefile (sysdep-rtld-routines): Add
3675         dl-brk and dl-sbrk.
3677         * sysdeps/sparc/fpu/bits/mathinline.h (fdim): Add __THROW.
3678         (fdimf): Likewise.
3680 2002-05-15  Roland McGrath  <roland@frob.com>
3682         * hurd/report-wait.c (_S_msg_report_wait): Use mach_msg_id_t for arg.
3684 2002-05-12  Bruno Haible  <bruno@clisp.org>
3686         * iconvdata/testdata/EUC-JISX0213: New file.
3687         * iconvdata/testdata/EUC-JISX0213..UTF8: New file.
3688         * iconvdata/testdata/SHIFT_JISX0213: New file.
3689         * iconvdata/testdata/SHIFT_JISX0213..UTF8: New file.
3690         * iconvdata/testdata/ISO-2022-JP-3: New file.
3691         * iconvdata/testdata/ISO-2022-JP-3..UTF8: New file.
3692         * iconvdata/TESTS: Add EUC-JISX0213, SHIFT_JISX0213, ISO-2022-JP-3.
3693         * iconvdata/run-iconv-test.sh: Skip the charmap test if the charmap
3694         contains comments indicating precomposed characters.
3696 2002-04-21  Bruno Haible  <bruno@clisp.org>
3698         * iconvdata/iso-2022-jp-3.c: New file.
3699         * iconvdata/gconv-modules (ISO-2022-JP-3): New module.
3700         * iconvdata/Makefile (modules): Add ISO-2022-JP-3.
3701         (LDFLAGS-ISO-2022-JP-3.so): New variable.
3702         (ISO-2022-JP-3.so): Depend on libJIS.so and libJISX0213.so.
3703         (distribute): Add iso-2022-jp-3.c.
3705 2002-05-12  Bruno Haible  <bruno@clisp.org>
3707         * iconvdata/tst-table-to.c (main): Restore handling of
3708         transliterations, broken by last patch.
3710 2002-05-12  Bruno Haible  <bruno@clisp.org>
3712         * iconvdata/TESTS: Add IBM922, IBM1124, IBM1129.
3714 2002-05-12  Bruno Haible  <bruno@clisp.org>
3716         * iconvdata/euc-jisx0213.c (BODY for FROM_LOOP): Don't advance inptr
3717         when there is not enough room in the output buffer.
3718         * iconvdata/shift_jisx0213.c (BODY for FROM_LOOP): Likewise.
3720 2002-04-20  Bruno Haible  <bruno@clisp.org>
3722         * iconv/skeleton.c ({FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO}): New
3723         macros.
3724         (RESET_INPUT_BUFFER): Use them instead of {MIN,MAX}_NEEDED_{FROM,TO}.
3725         Also make this macro work if FROM_DIRECTION evaluates to 0.
3726         (gconv_init): Use the new macros instead of {MIN,MAX}_NEEDED_{FROM,TO}.
3727         (FUNCTION_NAME): Likewise, in the handling of unaligned accesses and
3728         of consume_incomplete.
3729         * iconvdata/cp1255.c: Define {FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO}
3730         instead of {MIN,MAX}_NEEDED_{FROM,TO}. Set FROM_LOOP_MAX_NEEDED_TO to
3731         4, not 8.
3732         * iconvdata/cp1258.c: Likewise.
3733         * iconvdata/ibm930.c: Define {FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO}
3734         instead of {MIN,MAX}_NEEDED_{FROM,TO}. Set TO_LOOP_MAX_NEEDED_TO to 3,
3735         not 2.
3736         * iconvdata/ibm933.c: Likewise.
3737         * iconvdata/ibm935.c: Likewise.
3738         * iconvdata/ibm937.c: Likewise.
3739         * iconvdata/ibm939.c: Likewise.
3740         * iconvdata/iso-2022-cn.c: Define
3741         {FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO} instead of
3742         {MIN,MAX}_NEEDED_{FROM,TO}. Set TO_LOOP_MAX_NEEDED_TO to 6, not 4.
3743         * iconvdata/iso-2022-cn-ext.c: Likewise.
3744         * iconvdata/iso-2022-jp.c: Define
3745         {FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO} instead of
3746         {MIN,MAX}_NEEDED_{FROM,TO}.
3747         * iconvdata/tcvn5712-1.c: Define
3748         {FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO} instead of
3749         {MIN,MAX}_NEEDED_{FROM,TO}. Set FROM_LOOP_MAX_NEEDED_FROM to 1, not 2.
3750         * iconvdata/euc-jisx0213.c: Define
3751         {FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO} instead of
3752         {MIN,MAX}_NEEDED_{FROM,TO}. Set FROM_LOOP_MAX_NEEDED_TO to 8, not 4.
3753         * iconvdata/shift_jisx0213.c: Likewise.
3755 2002-05-14  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
3757         * sysdeps/powerpc/Makefile (sysdeps_routines): Add divdi3, cmpdi2,
3758         shdi3, fixdfdi, fixsfdi in csu dir.
3759         (shared-only-routines): Likewise.
3760         * sysdeps/wordsize-32/cmpdi2.c: New file.
3761         * sysdeps/wordsize-32/shdi3.c: New file.
3762         * sysdeps/wordsize-32/fixdfdi.c: New file.
3763         * sysdeps/wordsize-32/fixsfdi.c: New file.
3764         * sysdeps/powerpc/Versions (__divdi3, __moddi3, __udivdi3, __umoddi3,
3765         __ashldi3, __ashrdi3, __lshrdi3, __cmpdi2, __ucmpdi2, __fixdfdi,
3766         __fixsfdi, __fixunsdfdi, __fixunssfdi): Export at GLIBC_2.0.
3768         * sysdeps/unix/sysv/linux/semctl.c (__old_semctl, __new_semctl):
3769         Only use va_arg if the argument will be used [PR libc/3259].
3771 2002-05-06  Michael A. Schmidt  <mmaass@us.ibm.com>
3773         * catgets/catgets.c (catopen): Free buffer if internal catalog
3774         open fails.
3776 2002-05-14  Ulrich Drepper  <drepper@redhat.com>
3778         * debug/xtrace.sh: Make more robust.  For realtime tracking use
3779         non-buffering methods.
3780         * debug/pcprofiledump.c: Implement -u option.
3781         Patch by Roger Luethi <rl@hellgate.ch>.
3783 2002-05-11  Jakub Jelinek  <jakub@redhat.com>
3785         * include/netinet/in.h (bindresvport_internal): Add prototype.
3786         * include/rpc/auth.h  (authunix_create_internal,
3787         authunix_create_default_internal, authnone_create_internal,
3788         authdes_pk_create_internal): Add prototypes.
3789         * include/rpc/clnt.h (clnt_create_internal, clnttcp_create_internal,
3790         clntudp_create_internal, clntudp_bufcreate_internal,
3791         clntunix_create_internal): Add prototypes.
3792         * include/rpc/svc.h (svc_sendreply_internal, svcerr_decode_internal,
3793         svc_getreq_internal, svc_getreq_common_internal,
3794         svc_getreqset_internal, svc_getreq_poll_internal,
3795         svc_register_internal, svc_unregister_internal,
3796         svcudp_create_internal, svcudp_bufcreate_internal): Add prototypes.
3797         * include/rpc/svc_auth.h (_authenticate_internal): Add prototype.
3798         * include/sys/socket.h (__sendto, __recvfrom, __sendmsg, __recvmsg,
3799         __setsockopt, __getsockname, __bind, __listen): Add prototypes.
3800         * inet/rexec.c (rexec_af): Use __listen and __getsockname.
3801         * inet/rcmd.c (rcmd_af): Use __listen.
3802         (rresvport_af): Use __bind.
3803         * sunrpc/clnt_udp.c: Use INTUSE calls to bindresvport,
3804         authunix_create, authunix_create_default, authnone_create,
3805         authdes_pk_create, clnt_create, clnttcp_create, clntudp_create,
3806         clntudp_bufcreate, clntunix_create svc_sendreply, svcerr_decode,
3807         svc_getreq, svc_getreq_common, svc_getreqset, svc_getreq_poll,
3808         svc_register, svc_unregister, svcudp_create, svcudp_bufcreate,
3809         _authenticate, add INTDEF after such function definitions.
3810         Use __listen, __bind, __sendto, __recvfrom, __sendmsg, __recvmsg,
3811         __setsockopt, __getsockname instead of non-__ variants.
3812         * sunrpc/pmap_rmt.c: Likewise.
3813         * sunrpc/rtime.c: Likewise.
3814         * sunrpc/svc_udp.c: Likewise.
3815         * sunrpc/clnt_unix.c: Likewise.
3816         * sunrpc/svc_unix.c: Likewise.
3817         * sunrpc/bindrsvprt.c: Likewise.
3818         * sunrpc/svc_tcp.c: Likewise.
3819         * sunrpc/auth_none.c: Likewise.
3820         * sunrpc/clnt_raw.c: Likewise.
3821         * sunrpc/clnt_tcp.c: Likewise.
3822         * sunrpc/auth_unix.c: Likewise.
3823         * sunrpc/key_call.c: Likewise.
3824         * sunrpc/clnt_gen.c: Likewise.
3825         * sunrpc/pm_getmaps.c: Likewise.
3826         * sunrpc/clnt_simp.c: Likewise.
3827         * sunrpc/pmap_clnt.c: Likewise.
3828         * sunrpc/svc_run.c: Likewise.
3829         * sunrpc/svc.c: Likewise.
3830         * sunrpc/svc_simple.c: Likewise.
3831         * sunrpc/pm_getport.c: Likewise.
3832         * sunrpc/auth_des.c: Likewise.
3833         * sunrpc/svc_auth.c: Likewise.
3834         * sysdeps/generic/unwind-dw2-fde.c (__register_frame_info_bases,
3835         __register_frame_info_table_bases, __deregister_frame_info_bases):
3836         Add INTDEF.
3837         (__register_frame_info_bases_internal,
3838         __register_frame_info_table_bases_internal,
3839         __deregister_frame_info_bases_internal): Add prototypes.
3840         (__register_frame_info, __register_frame): Use INTUSE in call to
3841         __register_frame_info_bases.
3842         (__register_frame_info_table): Similarly.
3843         (__deregister_frame_info, __deregister_frame): Similarly.
3844         * sysdeps/generic/sendto.c (__sendto): Renamed from sendto, add
3845         sendto as weak alias.
3846         * sysdeps/mach/hurd/sendto.c: Likewise.
3847         * sysdeps/generic/recvfrom.c (__recvfrom): Renamed from recvfrom, add
3848         recvfrom as weak alias.
3849         * sysdeps/mach/hurd/recvfrom.c: Likewise.
3850         * sysdeps/unix/sysv/aix/recvfrom.c: Likewise.
3851         * sysdeps/generic/recvmsg.c (__recvmsg): Renamed from recvmsg, add
3852         recvmsg as weak alias.
3853         * sysdeps/unix/sysv/aix/recvmsg.c: Likewise.
3854         * sysdeps/generic/sendmsg.c (__sendmsg): Renamed from sendmsg, add
3855         sendmsg as weak alias.
3856         * sysdeps/unix/sysv/aix/sendmsg.c: Likewise.
3857         * sysdeps/generic/setsockopt.c (__setsockopt): Renamed from
3858         setsockopt, add setsockopt as weak alias.
3859         * sysdeps/mach/hurd/setsockopt.c: Likewise.
3860         * sysdeps/generic/bind.c (__bind): Renamed from bind, add bind as
3861         weak alias.
3862         * sysdeps/mach/hurd/bind.c: Likewise.
3863         * sysdeps/generic/listen.c (__listen): Renamed from listen, add listen
3864         as weak alias.
3865         * sysdeps/mach/hurd/listen.c: Likewise.
3866         * sysdeps/generic/getsockname.c (__getsockname): Renamed from
3867         getsockname, add getsockname as weak alias.
3868         * sysdeps/mach/hurd/getsockname.c: Likewise.
3869         * sysdeps/unix/sysv/aix/getsockname.c: Likewise.
3870         * sysdeps/mach/hurd/recvmsg.c (__recvmsg): Add weak alias.
3871         * sysdeps/mach/hurd/sendmsg.c (__sendmsg): Add weak alias.
3872         * sysdeps/unix/inet/syscalls.list (__bind, __listen, __recvmsg,
3873         __recvfrom, __sendmsg, __sendto, __setsockopt): Add aliases.
3874         * sysdeps/unix/sysv/linux/alpha/syscalls.list (__recvmsg, __sendmsg):
3875         Add aliases.
3876         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
3877         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
3878         * sysdeps/unix/sysv/linux/hppa/syscalls.list: Likewise.
3879         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
3880         * sysdeps/unix/sysv/linux/recvfrom.S (__recvfrom): Add weak alias.
3881         * sysdeps/unix/sysv/linux/recvmsg.S (__recvmsg): Likewise.
3882         * sysdeps/unix/sysv/linux/sendmsg.S (__sendmsg): Likewise.
3883         * sysdeps/unix/sysv/linux/sendto.S (__sendto): Likewise.
3884         * sysdeps/unix/sysv/linux/setsockopt.S (__setsockopt): Likewise.
3885         * sysdeps/unix/sysv/linux/bind.S (__bind): Likewise.
3886         * sysdeps/unix/sysv/linux/listen.S (__listen): Likewise.
3887         * sysdeps/unix/sysv/linux/getsockname.S (__getsockname): Likewise.
3889 2002-05-10  Jakub Jelinek  <jakub@redhat.com>
3891         * locale/programs/localedef.h (show_archive_content): Add verbose
3892         argument.
3893         * locale/programs/localedef.c (main): Adjust caller.
3894         * locale/programs/locarchive.c (struct nameent, struct dataent): New.
3895         (nameentcmp, dataentcmp): New functions.
3896         (xstrcmp): Remove.
3897         (show_archive_content): Print verbose listing with --list-archive -v.
3899 2002-05-14  Ulrich Drepper  <drepper@redhat.com>
3901         * locale/programs/locarchive.c (open_archive): Take extra argument
3902         readonly.  If true open file with O_RDONLY and don't create the
3903         archive if it doesn't exist.
3904         Adapt all callers.
3905         (close_archive): Don't do anything if fd element is -1.
3906         * locale/programs/localedef.h (open_archive): Adjust prototype.
3907         * locale/programs/locfile.c (write_all_categories): Adjust open_archive
3908         call.
3910         * malloc/malloc.c (__posix_memalign): Correct check for size of
3911         alignment value [PR libc/3444].
3913         * include/stdio.h: Remove references to old stdio implementation.
3915         * libio/Makefile (bug-ungetwc2-ENV): Define.
3917 2002-05-13  Roland McGrath  <roland@frob.com>
3919         * iconv/gconv_charset.h (upstr): Add inline keyword, quiets warning.
3921         * hurd/hurdinit.c (_hurd_init): Use internal name _hurd_new_proc_init.
3923 2002-05-13  Marcus Brinkmann  <marcus@gnu.org>
3925         * hurd/hurdchdir.c (_hurd_change_directory_port_from_name):
3926         Allocate three, not two, more than LEN when appending '/.'.
3927         * sysdeps/mach/hurd/chroot.c (chroot): Likewise.  Don't check
3928         if NAME ends with '/.' if it is shorter than 2 chars.
3930 2002-05-12  Roland McGrath  <roland@frob.com>
3932         * mach/Makefile ($(mach-syscalls:%=$(objpfx)%.S)): Make the generated
3933         files #include <sysdep.h> instead of <mach/machine/syscall_sw.h>.
3935         * hurd/hurdexec.c (_hurd_exec): Reauthenticate ports/dtable used in
3936         file_exec to effect svuid=euid, svgid=egid if that is not a no-op.
3938 2002-05-10  Jakub Jelinek  <jakub@redhat.com>
3940         * sysdeps/ia64/Makefile: Remove extra endif.
3941         * sysdeps/ia64/ia64libgcc.S (__divsf3): Fix typo in symbol version.
3943 2002-05-10  Andreas Schwab  <schwab@suse.de>
3945         * sysdeps/powerpc/fpu/w_sqrt.c: Add sqrtl alias.
3947 2002-05-09  Andreas Jaeger  <aj@suse.de>
3949         * sysdeps/unix/sysv/linux/x86_64/sys/io.h: New.
3950         * sysdeps/unix/sysv/linux/x86_64/Dist: Add it.
3951         * sysdeps/unix/sysv/linux/x86_64/Makefile (sysdep_headers): Add it.
3953         * sysdeps/unix/sysv/linux/ia64/glob.c: Move to ...
3954         * sysdeps/wordsize-64/glob.c: ...here.
3955         * sysdeps/unix/sysv/linux/x86_64/glob.c: Remove.
3956         * sysdeps/unix/sysv/linux/s390/s390-64/glob.c: Remove.
3957         * sysdeps/unix/sysv/linux/sparc/sparc64/glob.c: Remove.
3959 2002-05-08  Roland McGrath  <roland@frob.com>
3961         * hurd/hurdfchdir.c (_hurd_change_directory_port_from_fd): Use
3962         O_NOTRANS flag in "." lookup.
3964 2002-05-05  Ulrich Drepper  <drepper@redhat.com>
3966         * malloc/mtrace.c: Comment out use of _mtrace_file and _mtrace_len.
3968 2002-05-04  Ulrich Drepper  <drepper@redhat.com>
3970         * locale/duplocale.c (__duplocale): Update special members only
3971         when allocation succeeded.
3973 2002-05-03  Roland McGrath  <roland@frob.com>
3975         * shlib-versions (.*-.*-gnu-gnu.*): Remove USE_IN_LIBIO conditionals;
3976         we can only build libc.so.0.3(GLIBC_2.2.6) now.
3978 2002-05-02  Jakub Jelinek  <jakub@redhat.com>
3980         * sysdeps/ia64/Makefile: Add ia64libgcc in csu subdir.
3981         * sysdeps/ia64/Versions (__divtf3, __divdf3, __divsf3, __divdi3,
3982         __moddi3, __udivdi3, __umoddi3, __multi3): Export at GLIBC_2.0.
3983         * sysdeps/ia64/ia64libgcc.S: New file.
3985 2002-05-02  Ulrich Drepper  <drepper@redhat.com>
3987         * sysdeps/generic/dl-tls.c (oom): Implement using _dl_fatal_printf.
3989         * malloc/memusage.c: Distinguish anonymous mmap.
3991 2002-05-01  Roland McGrath  <roland@frob.com>
3993         * sysdeps/mach/hurd/close.c: #undef __close before function defn,
3994         and use INTDEF on it.
3995         * sysdeps/mach/hurd/fcntl.c: Use INTDEF2.
3997         * sysdeps/mach/hurd/dl-sysdep.c (errno): New variable.
3999         * sysdeps/mach/hurd/alpha/static-start.S: New file (unfinished).
4001 2002-05-01  Ulrich Drepper  <drepper@redhat.com>
4003         * malloc/memusage.c: Add support for tracking mmap & friends.
4004         * malloc/memusage.sh: Implement -m/--mmap option.
4006 2002-04-30  Jakub Jelinek  <jakub@redhat.com>
4008         * locale/programs/locarchive.c (create_archive): Add archivefname
4009         argument, create fname from it.
4010         (enlarge_archive): Honour output_prefix.
4011         (open_archive): Likewise.
4013 2002-04-30  Jakub Jelinek  <jakub@redhat.com>
4015         * locale/programs/locarchive.c (add_locales_to_archive): Don't nest
4016         too many stpcpy macros.
4018 2002-04-26  Bruno Haible  <bruno@clisp.org>
4020         * locale/programs/ld-collate.c (collate_read): Cast first argument
4021         for "%.*s" to int.
4023 2002-04-26  Bruno Haible  <bruno@clisp.org>
4025         * include/libintl.h (__ngettext, __dngettext, __dcngettext,
4026         __dcngettext_internal): New declarations.
4027         (__gettext, __dgettext, __dcgettext, __dcgettext_internal): Add
4028         attribute declarations.
4030 2002-04-30  Roland McGrath  <roland@frob.com>
4032         Removed old GNU stdio implementation; GNU libio is now the only option.
4033         * configure.in: Removed --enable-libio option and @stdio@ subst var.
4034         Define USE_IN_LIBIO unconditionally.
4035         * configure: Regenerated.
4036         * Makeconfig (stdio): Set to libio by default.
4037         * config.make.in (stdio): Variable removed.
4038         * sysdeps/unix/sysv/linux/configure.in: Don't set $stdio.
4039         * sysdeps/unix/sysv/linux/configure: Regenerated.
4040         * sysdeps/mach/hurd/configure.in: Don't test $stdio.
4041         * sysdeps/mach/hurd/configure: Regenerated.
4042         * stdio/.cvsignore: File removed.
4043         * stdio/Makefile: File removed.
4044         * stdio/Versions: File removed.
4045         * stdio/__fbufsize.c: File removed.
4046         * stdio/__flbf.c: File removed.
4047         * stdio/__fpending.c: File removed.
4048         * stdio/__fpurge.c: File removed.
4049         * stdio/__freadable.c: File removed.
4050         * stdio/__freading.c: File removed.
4051         * stdio/__fsetlocking.c: File removed.
4052         * stdio/__fwritable.c: File removed.
4053         * stdio/__fwriting.c: File removed.
4054         * stdio/clearerr.c: File removed.
4055         * stdio/fclose.c: File removed.
4056         * stdio/fcloseall.c: File removed.
4057         * stdio/feof.c: File removed.
4058         * stdio/ferror.c: File removed.
4059         * stdio/fflush.c: File removed.
4060         * stdio/fgetc.c: File removed.
4061         * stdio/fgetpos.c: File removed.
4062         * stdio/fgets.c: File removed.
4063         * stdio/fileno.c: File removed.
4064         * stdio/fmemopen.c: File removed.
4065         * stdio/fopen.c: File removed.
4066         * stdio/fopncook.c: File removed.
4067         * stdio/fputc.c: File removed.
4068         * stdio/fputs.c: File removed.
4069         * stdio/fread.c: File removed.
4070         * stdio/freopen.c: File removed.
4071         * stdio/fseek.c: File removed.
4072         * stdio/fsetpos.c: File removed.
4073         * stdio/ftell.c: File removed.
4074         * stdio/fwrite.c: File removed.
4075         * stdio/getc.c: File removed.
4076         * stdio/getchar.c: File removed.
4077         * stdio/getdelim.c: File removed.
4078         * stdio/gets.c: File removed.
4079         * stdio/glue.c: File removed.
4080         * stdio/internals.c: File removed.
4081         * stdio/linewrap.c: File removed.
4082         * stdio/linewrap.h: File removed.
4083         * stdio/memstream.c: File removed.
4084         * stdio/newstream.c: File removed.
4085         * stdio/obstream.c: File removed.
4086         * stdio/putc.c: File removed.
4087         * stdio/putchar.c: File removed.
4088         * stdio/puts.c: File removed.
4089         * stdio/rewind.c: File removed.
4090         * stdio/setbuf.c: File removed.
4091         * stdio/setbuffer.c: File removed.
4092         * stdio/setlinebuf.c: File removed.
4093         * stdio/setvbuf.c: File removed.
4094         * stdio/stdio.h: File removed.
4095         * stdio/ungetc.c: File removed.
4096         * stdio/vasprintf.c: File removed.
4097         * stdio/vscanf.c: File removed.
4098         * stdio/vsnprintf.c: File removed.
4099         * stdio/vsprintf.c: File removed.
4100         * stdio/vsscanf.c: File removed.
4101         * sysdeps/generic/defs.c: File removed.
4102         * sysdeps/generic/fdopen.c: File removed.
4103         * sysdeps/generic/pipestream.c: File removed.
4104         * sysdeps/generic/stdio_init.c: File removed.
4105         * sysdeps/generic/sysd-stdio.c: File removed.
4106         * sysdeps/generic/vdprintf.c: File removed.
4107         * sysdeps/mach/hurd/defs.c: File removed.
4108         * sysdeps/mach/hurd/fdopen.c: File removed.
4109         * sysdeps/mach/hurd/pipestream.c: File removed.
4110         * sysdeps/mach/hurd/stdio_init.c: File removed.
4111         * sysdeps/mach/hurd/sysd-stdio.c: File removed.
4112         * sysdeps/mach/hurd/vdprintf.c: File removed.
4113         * sysdeps/posix/defs.c: File removed.
4114         * sysdeps/posix/fdopen.c: File removed.
4115         * sysdeps/posix/pipestream.c: File removed.
4116         * sysdeps/posix/stdio_init.c: File removed.
4117         * sysdeps/posix/vdprintf.c: File removed.
4118         * sysdeps/unix/pipestream.c: File removed.
4119         * sysdeps/unix/sysv/sysd-stdio.c: File removed.
4120         * sysdeps/unix/sysv/sco3.2.4/pipestream.c: File removed.
4121         * sysdeps/unix/sysv/sysv4/pipestream.c: File removed.
4123 2002-04-29  Roland McGrath  <roland@frob.com>
4125         * include/libc-symbols.h (link_warning): Use `unused' attribute.
4127 2002-04-28  Ulrich Drepper  <drepper@redhat.com>
4129         * sysdeps/generic/tls.h: Describe what must be defined.
4131         * sysdeps/generic/glob.c (glob): Don't pass GLOB_NOMAGIC flag to
4132         glob_in_dir [PR libc/3385].
4133         * posix/globtest.sh: Add test case.
4135         * intl/loadmsgcat.c [!_LIBC] (_nl_init_domain_conv): Don't add
4136         //TRANSLIT twice.
4138 2002-04-27  Ulrich Drepper  <drepper@redhat.com>
4140         * sysdeps/unix/sysv/linux/ia64/fxstat.c: Fix a few issues with the
4141         _internal symbol handling.
4142         * sysdeps/unix/sysv/linux/ia64/lxstat.c: Likewise.
4144 2002-04-26  Ulrich Drepper  <drepper@redhat.com>
4146         * sysdeps/ia64/fpu/s_finite.S: Define _internal aliases.
4147         * sysdeps/unix/sysv/linux/ia64/fork.S: Likewise.
4149 2002-04-26  Isamu Hasegawa  <isamu@yamato.ibm.com>
4151         * posix/regcomp.c (re_compile_fastmap_iter): Fix fastmap in case of
4152         not _LIBC and RE_ENABLE_I18N.
4153         (build_range_exp): Implement for not _LIBC.
4154         (build_collating_symbol): Likewise.
4155         (parse_bracket_exp): Unify redundant error handlings.
4156         Don't erase mbcset for non matching list in multibyte envs.
4157         (build_word_op): Add '_' to matching list for \w operator.
4158         * posix/regex_internal.c (re_string_construct): Invoke
4159         build_upper_buffer in case of not RE_ENABLE_I18N.
4160         (re_string_reconstruct): Don't touch cur_state in case of not
4161         RE_ENABLE_I18N.
4162         * posix/regex_internal.h (attribute_hidden): New macro in case of
4163         not _LIBC.
4164         (re_charset_t): Define range_starts/ends in case of not _LIBC.
4165         * posix/regexec.c (sift_states_iter_mb): Hide in case of not
4166         RE_ENABLE_I18N.
4167         (transit_state_mb): Likewise.
4168         (check_node_accept_bytes): Implement the code evaluating range
4169         expression in case of not _LIBC.
4170         (find_collation_sequence_value): Hide in case of not _LIBC.
4172 2002-04-26  Jakub Jelinek  <jakub@redhat.com>
4174         * sysdeps/unix/sysv/linux/sparc/sparc32/semctl.c: Copied from
4175         i386/semctl.c.
4176         (__old_semctl, __new_semctl): Only use va_arg if the argument will
4177         be used.
4179 2002-04-26  Ulrich Drepper  <drepper@redhat.com>
4181         * sysdeps/ia64/fpu/s_isinf.S: Fix definition of _internal names.
4183         * sysdeps/ia64/strncpy.S: Fix recovery code.
4184         Patch by David Mosberger <davidm@hpl.hp.com>.
4186 2002-04-24  Ulrich Drepper  <drepper@redhat.com>
4188         * sysdeps/unix/sysv/linux/ia64/Versions [libc]: Add getunwind for
4189         GLIBC_2.2.6.
4191 2002-04-14  Bruno Haible  <bruno@clisp.org>
4193         * posix/regex.c (re_max_failures): Add back symbol for binary
4194         compatibility.
4196 2002-04-22  Isamu Hasegawa  <isamu@yamato.ibm.com>
4198         * posix/regcomp.c (re_compile_internal): Adapt it to new interface
4199         of buffer building functions.
4200         * posix/regex_internal.c (re_string_allocate): New function.
4201         (re_string_realloc_buffers): New function.
4202         (re_string_skip_chars): New function.
4203         (re_string_reconstruct): New function.
4204         (re_string_construct): Adapt it to new interface of buffer building
4205         functions.
4206         (re_string_construct_common): Likewise.
4207         (build_wcs_buffer): Likewise.
4208         (build_wcs_upper_buffer): Likewise.
4209         (build_upper_buffer): Likewise.
4210         (re_string_translate_buffer): Likewise.
4211         (re_string_context_at): Adapt it to variable length buffers.
4212         * posix/regex_internal.h (re_string_t): Add new fields to handle
4213         variable length buffers.
4214         (re_match_context_t): Likewise.
4215         * posix/regexec.c (re_search_internal): Adapt it to new interface
4216         of re_string_t and re_match_context_t.
4217         (acquire_init_state_context): Likewise.
4218         (check_matching): Likewise.
4219         (check_halt_state_context): Likewise.
4220         (proceed_next_node): Likewise.
4221         (set_regs): Likewise.
4222         (sift_states_backward): Likewise.
4223         (clean_state_log_if_need): Likewise.
4224         (sift_states_iter_mb): Likewise.
4225         (sift_states_iter_bkref): Likewise.
4226         (add_epsilon_backreference): Likewise.
4227         (transit_state): Likewise.
4228         (transit_state_sb): Likewise.
4229         (transit_state_mb): Likewise.
4230         (transit_state_bkref): Likewise.
4231         (transit_state_bkref_loop): Likewise.
4232         (check_node_accept): Likewise.
4233         (match_ctx_init): Likewise.
4234         (extend_buffers): New function.
4236 2002-04-21  Bruno Haible  <bruno@clisp.org>
4238         * iconvdata/tst-table.sh: For the second check, use the truncated
4239         GB18030 charmap table, like for the first check.
4241 2002-04-24  Ulrich Drepper  <drepper@redhat.com>
4243         * elf/dl-load.c (open_verify): Correct __lseek parameters.
4244         Patch by Simon Hildrew <simon@hildrew.net> [PR libc/3354].
4246 2002-04-23  H.J. Lu  <hjl@gnu.org>
4248         * include/math.h (isfinite): Fix a typo.
4250 2002-04-24  Ulrich Drepper  <drepper@redhat.com>
4252         * libio/bug-ungetwc2.c (test_locale): Use the de_DE.UTF-8 locale
4253         which is created by the test suite.
4255 2002-04-20  Bruno Haible  <bruno@clisp.org>
4257         * iconvdata/iso-2002-kr.c (MAX_NEEDED_FROM): Set to 4.
4258         (BODY for FROM_LOOP): Fix comparisons between inptr and inend.
4260 2002-04-20  Bruno Haible  <bruno@clisp.org>
4262         * iconvdata/johab.c (BODY for FROM_LOOP): Change type of i, m, f,
4263         to avoid gcc warning.
4265 2002-04-20  Bruno Haible  <bruno@clisp.org>
4267         * iconvdata/iso-2022-jp.c (EMIT_SHIFT_TO_INIT): Fix modification mask
4268         of data->__statep->__count.
4270 2002-04-20  Bruno Haible  <bruno@clisp.org>
4272         * iconvdata/euc-jisx0213.c (BODY for TO_LOOP): Really ignore Unicode
4273         tag characters.
4274         * iconvdata/shift_jisx0213.c (BODY for TO_LOOP): Likewise.
4276 2002-04-24  Roland McGrath  <roland@frob.com>
4278         * sysdeps/mach/alpha/syscall.S: Don't use .frame, ENTRY will have it;
4279         use END macro instead of our own .end directive.
4280         Use `callsys' insn mnemonic instead of `call_pal'.
4282         * sysdeps/mach/alpha/sysdep.h (ENTRY): New macro.
4284         * sysdeps/alpha/dl-machine.h (ELF_MACHINE_USER_ADDRESS_MASK): New
4285         macro; we need this for Hurd.
4287         Log entry was missing for 2002/03/24 commit of rev 1.8,
4288         goes with 2002-03-17 changes.
4289         * sysdeps/mach/hurd/i386/Makefile [$(subdir) = misc]
4290         (sysdep_routines): Append ioperm here.
4291         (sysdep_headers): Append sys/io.h here.
4293 2002-04-23  Roland McGrath  <roland@frob.com>
4295         * sysdeps/mach/hurd/send.c: int -> size_t for WROTE.
4296         * sysdeps/mach/hurd/sendto.c: Likewise.
4297         * hurd/hurdioctl.c (siocgifconf): int -> size_t for DATA_LEN.
4298         * sysdeps/mach/hurd/wait4.c (__wait4): natural_t -> int for SIGCODE.
4299         * sysdeps/mach/hurd/getpriority.c: unsigned int -> size_t for PISIZE.
4301 2002-04-22  Roland McGrath  <roland@frob.com>
4303         * sysdeps/mach/hurd/i386/ioperm.c (ioperm): Translate MIG_BAD_ID
4304         failure from i386_io_perm_* RPCs to ENOSYS.
4306 2002-04-22  Andreas Jaeger  <aj@suse.de>
4308         * sysdeps/unix/sysv/linux/x86_64/ldconfig.h: New file.
4310         * sysdeps/unix/sysv/linux/x86_64/dl-cache.h: New file.
4312         * sysdeps/unix/sysv/linux/x86_64/vfork.S: Use %rdi as temp
4313         register instead of destroying %rbx.
4315 2002-04-21  Ulrich Drepper  <drepper@redhat.com>
4317         * string/string.h: Declare strerror_r also for XPG6.
4319 2002-04-19  Roland McGrath  <roland@frob.com>
4321         * sysdeps/mach/hurd/tmpfile.c: Create a file descriptor and use fdopen.
4323 2002-04-20  Ulrich Drepper  <drepper@redhat.com>
4325         * Makefile: Add handling of xtests and xcheck targets.
4326         * MakeTAGS: Likewise.
4327         * Makeconfig: Likewise.
4328         * Makerules: Likewise.
4329         * Rules: Likewise.
4330         * manual/Makefile: Likewise.
4331         * sunrpc/Makefile (xtests): Add thrsvc if thread library available.
4332         * sunrpc/thrsvc.c: New file.  By Zack Weinberg.
4334 2002-04-11  Zack Weinberg  <zack@codesourcery.com>
4336         * include/rpc/rpc.h (struct rpc_thread_variables): Remove
4337         authnone_private_s.
4338         * sunrpc/auth_none.c: Include bits/libc-lock.h.
4339         Delete #ifdef _RPC_THREAD_SAFE_ block.
4340         (authnone_private): Make a struct, not a pointer to struct.
4341         (authnone_private_guard): New once-control variable.
4342         (authnone_create_once): New function, split out of
4343         authnone_create.  No need to allocate memory.
4344         (authnone_create): Just call authnone_create_once via
4345         __libc_once, then return &authnone_private->no_client.
4346         (authnone_marshal): Access private data via CLIENT argument,
4347         not authnone_private pointer.
4348         Fix typo (MAX_MARSHEL_SIZE -> MAX_MARSHAL_SIZE).
4349         * sunrpc/rpc_thread.c (__rpc_thread_destroy): No need to free
4350         authnone_private_s.
4352 2002-04-12  H.J. Lu  <hjl@gnu.org>
4354         * sunrpc/clnt_raw.c (clntraw_create): Properly set xdrs and client.
4356 2002-04-18  Bruno Haible  <bruno@clisp.org>
4358         * iconvdata/euc-jisx0213.c (EMIT_SHIFT_TO_INIT, BODY for
4359         FROM_DIRECTION): Make the FROM direction stateless.
4360         * iconvdata/shift_jisx0213.c (EMIT_SHIFT_TO_INIT, BODY for
4361         FROM_DIRECTION): Likewise.
4363 2002-04-15  Bruno Haible  <bruno@clisp.org>
4365         * iconvdata/JISX0213.TXT: New file.
4366         * iconvdata/jisx0213.h: New file.
4367         * iconvdata/jisx0213.c: New file.
4368         * iconvdata/euc-jisx0213.c: New file.
4369         * iconvdata/shift_jisx0213.c: New file.
4370         * iconvdata/gconv-modules (EUC-JISX0213, SHIFT_JISX0213): New modules.
4371         * iconvdata/EUC-JISX0213.precomposed: New file.
4372         * iconvdata/SHIFT_JISX0213.precomposed: New file.
4373         * iconvdata/SHIFT_JISX0213.irreversible: New file.
4374         * iconvdata/tst-table-to.c (main): Make it work for encodings for
4375         which the "to" direction is stateful.
4376         * iconvdata/tst-tables.sh: Add EUC-JISX0213, SHIFT_JISX0213.
4377         * iconvdata/Makefile (modules): Add libJISX0213, EUC-JISX0213,
4378         SHIFT_JISX0213.
4379         (libJISX0213-routines): New variable.
4380         (LDFLAGS-EUC-JISX0213.so, LDFLAGS-SHIFT_JISX0213.so): New variables.
4381         (EUC-JISX0213.so, SHIFT_JISX0213.so): Depend on libJISX0213.so.
4382         (LDFLAGS-libJISX0213.so): New variable.
4383         (distribute): Add JISX0213.TXT, EUC-JISX0213.precomposed,
4384         SHIFT_JISX0213.precomposed, SHIFT_JISX0213.irreversible,
4385         jisx0213.c, jisx0213.h, euc-jisx0213.c, shift_jisx0213.c.
4387 2002-04-15  Bruno Haible  <bruno@clisp.org>
4389         * iconvdata/big5hkscs.c (big5hkscs_to_ucs): Change element type to
4390         uint32_t.  Update to Unicode 3.2.
4391         (from_ucs4, from_ucs4_idx): Update to Unicode 3.2.
4392         (BODY for TO_LOOP): Handle the ASCII range specially.
4393         * iconvdata/BIG5HKSCS.irreversible: Add one more entry.
4394         * iconvdata/testdata/BIG5HKSCS: Remove a character.
4395         * iconvdata/testdata/BIG5HKSCS..UTF-8: Regenerated.
4397 2002-04-15  Bruno Haible  <bruno@clisp.org>
4399         * iconvdata/gb18030.c (__twobyte_to_ucs, __fourbyte_to_ucs,
4400         __ucs_to_gb18030_tab1, __ucs_to_gb18030_tab2): Update to Unicode 3.2.
4402 2002-04-15  Bruno Haible  <bruno@clisp.org>
4404         * iconvdata/cns11643.h (__cns11643_from_ucs4p2c_tab): New declaration.
4405         (ucs4_to_cns11643): Update.
4406         * iconvdata/cns11643.c: Update to Unicode 3.2.
4407         (__cns11643l2*_to_ucs4_tab, __cns11643_from_ucs4p0_tab,
4408         __cns11643_from_ucs4p2_tab): Regenerated.
4409         (__cns11643_from_ucs4p2c_tab): New array.
4410         * iconvdata/cvs11643l1.c: Update comments.
4411         * iconvdata/EUC-TW.irreversible: Remove two entries.
4413 2002-04-15  Bruno Haible  <bruno@clisp.org>
4415         * locale/C-translit.h.in: Update to Unicode 3.2.
4416         Add <U2047>, <U205F>..<U2063>, <U2145>..<U2149>, <U2A74>..<U2A76>,
4417         <U30A0>, <U3251>..<U325F>, <U32B1>..<U32BF>, <UFE00>..<UFE0F>.
4419 2002-04-15  Bruno Haible  <bruno@clisp.org>
4421         * iconvdata/sjis.c (halfkana_to_ucs4): Remove array.
4422         (BODY for FROM_LOOP): Optimize the JISX0201:GR to Unicode conversion.
4424 2002-04-15  Bruno Haible  <bruno@clisp.org>
4426         * iconvdata/euc-jp.c (BODY for FROM_LOOP): When encountering an
4427         invalid input (e.g. a byte > 0x80 followed by a byte < 0x80), skip
4428         always one byte, not 0 bytes in some cases and 2 bytes in others.
4430         * iconvdata/tst-table-from.c (main): Correct the usage message.
4432 2002-04-19  Isamu Hasegawa  <isamu@yamato.ibm.com>
4434         * posix/regcomp.c (parse_expression): Fix incorrect error code.
4435         (parse_dup_op): Fix error handling like "a{}".
4436         (parse_bracket_exp): Add error handling.
4437         (fetch_number): Add error handling for "a{<very_large_number>}".
4439 2002-04-19  Isamu Hasegawa  <isamu@yamato.ibm.com>
4441         * posix/regcomp.c (parse_bracket_symbol): Add error handling
4442         in case that the symbol name is too long.
4443         (build_charclass): Handle [:lower:]/[:uppper:] correctly
4444         in case of REG_ICASE.
4446 2002-04-19  Andreas Jaeger  <aj@suse.de>
4448         * math/libm-test.inc: Fix comment, suggested by Hartvig Ekner
4449         <hartvige@mips.com>.
4451 2002-04-15  H.J. Lu  <hjl@gnu.org>
4453         * include/math.h (__finitel_internal): Declare only if
4454         __NO_LONG_DOUBLE_MATH is not defined.
4455         (__isinfl_internal): Likewise.
4456         (__isnanl_internal): Likewise.
4458         * sysdeps/unix/sysv/linux/alpha/syscalls.list: Add __connect_internal.
4459         * sysdeps/unix/sysv/linux/hppa/syscalls.list: Likewise.
4460         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
4461         * sysdeps/unix/sysv/linux/mips/syscalls.list: Likewise.
4462         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
4463         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
4464         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
4466         * sysdeps/unix/sysv/linux/syscalls.list: Add __chown_internal and
4467         __fcntl_internal.
4469         * sysdeps/unix/sysv/linux/fxstat.c (__fxstat64_internal): Added.
4470         * sysdeps/unix/sysv/linux/lxstat.c (__lxstat64_internal): Added.
4472 2002-04-15  Bruno Haible  <bruno@clisp.org>
4474         * iconvdata/armscii-8.c (BODY for FROM_LOOP): Fix array access.
4475         (BODY for TO_LOOP): Likewise.
4476         * iconvdata/tcvn5712-1.c (from_ucs4): Map U+0309 to 0xB1.
4477         * iconvdata/tst-table.sh: Add support for encodings which contain
4478         precomposed Unicode characters, known to the iconv converter in both
4479         directions but not listed in the charmap.
4480         * iconvdata/IBM856.irreversible: New file.
4481         * iconvdata/IBM922.irreversible: New file.
4482         * iconvdata/IBM1132.irreversible: New file.
4483         * iconvdata/IBM1133.irreversible: New file.
4484         * iconvdata/IBM1160.irreversible: New file.
4485         * iconvdata/IBM1161.irreversible: New file.
4486         * iconvdata/IBM1163.irreversible: New file.
4487         * iconvdata/IBM1164.irreversible: New file.
4488         * iconvdata/ARMSCII-8.irreversible: New file.
4489         * iconvdata/TCVN5712-1.precomposed: New file.
4490         * iconvdata/tst-tables.sh: Add IBM856, IBM922, IBM1124, IBM1129,
4491         IBM1160, IBM1161, IBM1132, IBM1133, IBM1162, IBM1163, IBM1164,
4492         ARMSCII-8, TCVN5712-1.
4493         * iconvdata/Makefile (distribute): Add IBM856.irreversible,
4494         IBM922.irreversible, IBM1132.irreversible, IBM1133.irreversible,
4495         IBM1160.irreversible, IBM1161.irreversible, IBM1163.irreversible,
4496         IBM1164.irreversible, ARMSCII-8.irreversible, TCVN5712-1.precomposed.
4498 2002-04-17  Jakub Jelinek  <jakub@redhat.com>
4500         * time/tst-mktime.c: Include <stdlib.h>.  Use %d, not %ld format
4501         for EVENING69.  Include offsets in TZ environment variable.
4503 2002-04-18  Ulrich Drepper  <drepper@redhat.com>
4505         * iconv/skeleton.c (RESET_INPUT_BUFFER): Replace ifs with #ifs to
4506         avoid compiler warnings.
4508         * locale/programs/localedef.c (main): Always call
4509         construct_output_path.
4511         * iconv/Makefile (CFLAGS-simple-hash.c): Define to find hashval.h.
4513         * locale/programs/locfile.c (to_archive): New variable.  To collect
4514         data which has to be added to the locale archive.
4515         (write_all_categories): Take new third parameter with locale name.
4516         Unless no_archive flag set add new locale data to the archive
4517         (write_locale_data): Unless no-archive flag set store generated data
4518         in to_archive data structure instead of generation output file.
4519         Add new parameter with locale category index.
4520         * locale/programs/locfile.h: Add new parameters in declaractions of
4521         write_all_categories and write_locale_data.
4522         * locale/programs/localedef.c: Recognize --no-archive, --list-archive,
4523         --add-to-archive, and --delete-from-archive options.  Pass extra
4524         parameter to write_all_categories.
4525         * locale/programs/localedef.h: Add prototypes for functions in
4526         locarchive.c.
4527         * locale/locarchive.h: New file.
4528         * locale/programs/locarchive.c: New file.
4529         * locale/Makefile (distribute): Add programs/locarchive.c and
4530         locarchive.h.
4531         (localedef-modules): Add md5 and locarchive.
4532         Add vpath to crypt subdir for md5.c.
4534         * locale/programs/ld-address.c: Pass locale category ID as new second
4535         parameter to write_locale_data.
4536         * locale/programs/ld-collate.c: Likewise.
4537         * locale/programs/ld-ctype.c: Likewise.
4538         * locale/programs/ld-identification.c: Likewise.
4539         * locale/programs/ld-measurement.c: Likewise.
4540         * locale/programs/ld-messages.c: Likewise.
4541         * locale/programs/ld-monetary.c: Likewise.
4542         * locale/programs/ld-name.c: Likewise.
4543         * locale/programs/ld-numeric.c: Likewise.
4544         * locale/programs/ld-paper.c: Likewise.
4545         * locale/programs/ld-telephone.c: Likewise.
4546         * locale/programs/ld-time.c: Likewise.
4548         * locale/simple-hash.c: Move compute_hashval function from here...
4549         * locale/hashval.h: ...to here.  New file.
4550         * locale/simple-hash.h: Add prototype for compute_hashval.
4552         * include/libintl.h: Minor cleanups.
4554 2002-04-16  Ulrich Drepper  <drepper@redhat.com>
4556         * posix/regcomp.c (gettext): Use INTUSE for _libc_intl_domainname.
4558 2002-04-15  Ulrich Drepper  <drepper@redhat.com>
4560         * include/sys/stat.h: Fix typo.  Patch by HJ Lu.
4562 2002-04-14  Bruno Haible  <bruno@clisp.org>
4564         * locale/programs/charmap.c (charmap_read): Don't access result if
4565         result == NULL.
4567 2002-02-17  Andreas Schwab  <schwab@suse.de>
4569         * elf/reldep7.c: New file.
4570         * elf/reldep7mod1.c: New file.
4571         * elf/reldep7mod2.c: New file.
4572         * elf/Makefile: Add rules to build and run reldep7.
4574 2002-04-14  Jakub Jelinek  <jakub@redhat.com>
4576         * elf/dl-lookup.c (_dl_lookup_symbol): Move add_dependency call to
4577         the end of the function.  Pass original flags to recursive call if
4578         add_dependency failed.
4579         (_dl_lookup_versioned_symbol): Likewise.
4581 2002-04-13  Jakub Jelinek  <jakub@redhat.com>
4583         * time/mktime.c (__mktime_internal): If year is 69, don't bail out
4584         early, but check whether it overflowed afterwards.
4585         * time/tst-mktime.c (main): Add new tests.
4587 2002-04-14  Ulrich Drepper  <drepper@redhat.com>
4589         * debug/xtrace.sh: Fix program name in help message.
4590         Patch by Roger Luethi <rl@hellgate.ch>.
4592         * include/sys/stat.h: Add prototypes for __lxstat_internal and
4593         __lxstat64_internal.  Add macros __lxstat and __lxstat64 if not
4594         NOT_IN_libc.
4595         * sysdeps/generic/lxstat.c: Use INTDEF for __lxstat.
4596         * sysdeps/mach/hurd/lxstat.c: Likewise.
4597         * sysdeps/unix/common/lxstat.c: Likewise.
4598         * sysdeps/unix/sysv/aix/lxstat.c: Likewise.
4599         * sysdeps/unix/sysv/linux/lxstat.c: Likewise.
4600         * sysdeps/unix/sysv/linux/i386/lxstat.c: Likewise.
4601         * sysdeps/unix/sysv/linux/ia64/lxstat.c: Likewise.
4602         * sysdeps/unix/sysv/linux/s390/s390-64/lxstat.c: Likewise.
4603         * sysdeps/generic/lxstat64.c: Use INTDEF for __lxstat64.
4604         * sysdeps/mach/hurd/lxstat64.c: Likewise.
4605         * sysdeps/unix/sysv/aix/lxstat64.c: Likewise.
4606         * sysdeps/unix/sysv/linux/lxstat64.c: Likewise.
4608         * include/wchar.h: Declare __mbrtowc_internal and __mbrlen_internal
4609         prototypes.  Add __mbrlen and __mbrtowc macros.
4610         * wcsmbs/mbrlen.c: Use INTDEF for __mbrlen.
4611         * wcsmbs/mbrtowc.c: Use INTDEF for __mbrtowc.
4613         * include/unistd.h: Add prototype for __write_internal and add
4614         __libc_write macro is SHARED.
4615         * sysdeps/generic/write.c: Use INTDEF for __write.
4616         * sysdeps/mach/hurd/write.c: Likewise.
4617         * sysdeps/unix/sysv/aix/write.c: Likewise.
4618         * sysdeps/unix/syscalls.list: Add __libc_write alias.
4620         * assert/assert.c: Replace STR_N_SIZE with something usable in
4621         macro arguments.
4622         * assert/assert-perr.c: Likewise.
4624         * include/sys/socket.h: Declare __libc_sa_len_internal and define
4625         SA_LEN macro to use it if not NOT_IN_libc.
4626         * sysdeps/unix/sysv/linux/sa_len.c: Use INTDEF for __libc_sa_len.
4628         * include/fcntl.h: Declare __open_internal and define __open and
4629         __libc_open macros if not NOT_IN_libc.
4630         * sysdeps/generic/open.c: Use INTDEF for __open.
4631         * sysdeps/mach/hurd/open.c: Likewise.
4632         * sysdeps/unix/sysv/aix/open.c: Likewise.
4633         * sysdeps/unix/syscalls.list: Add __open_internal alias.
4635         * sysdeps/generic/check_fds.c: Make sure newly opened file descriptor
4636         has correct number.
4638         * include/fcntl.h: Define __libc_fcntl macro if not NOT_IN_libc.
4639         * sysdeps/mach/hurd/fcntl.c: Undefine __libc_fcntl as well.
4640         * sysdeps/unix/sysv/aix/fcntl.c: Likewise.
4641         * sysdeps/unix/sysv/linux/i386/fcntl.c: Likewise.
4643         * include/wctype.h: Declare __iswalpha_l_internal,
4644         __iswdigit_l_internal, __iswspace_l_internal,
4645         __iswxdigit_l_internal, and __iswctype_internal.  Define
4646         __iswalpha_l, __iswctype, __iswdigit_l, __iswspace_l, and
4647         __iswxdigit_l macros if not NOT_IN_libc.
4648         * wctype/iswctype.c: Use INTDEF for __iswctype.
4649         * wctype/wcfuncs_l.c: Use INTDEF for all __iswXXX_l.
4651         * include/math.h: Declare __isinf_internal, __isinfl_internal,
4652         __isnan_internal, and __isnanl_internal.
4653         * stdio-common/printf_fp.c: Use INTUSE for calls to __isinf, __isinfl,
4654         __isnan, and __isnanl.
4655         * stdio-common/printf_size.c: Likewise.
4656         * sysdeps/generic/printf_fphex.c: Likewise.
4657         * sysdeps/i386/fpu/s_isinfl.c: Also define _internal alias.
4658         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
4659         * sysdeps/ia64/fpu/s_isinf.S: Likewise.
4660         * sysdeps/ia64/fpu/s_isnan.S: Likewise.
4661         * sysdeps/ieee754/dbl-64/s_isinf.c: Likewise.
4662         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
4663         * sysdeps/ieee754/flt-32/s_isinff.c: Likewise.
4664         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
4665         * sysdeps/ieee754/ldbl-128/s_isinfl.c: Likewise.
4666         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
4667         * sysdeps/ieee754/ldbl-96/s_isinfl.c: Likewise.
4668         * sysdeps/m68k/s_isinfl.c: Likewise.
4669         * sysdeps/m68k/fpu/s_isinf.c: Likewise.
4670         * sysdeps/powerpc/fpu/s_isnan.c: Likewise.
4672         * include/sys/time.h: Declare __gettimeofday_internal and define
4673         __gettimeofday macro if not NOT_IN_libc.
4674         * sysdeps/generic/gettimeofday.c: Use INTEDEF for __gettimeofday.
4675         * sysdeps/mach/gettimeofday.c: Likewise.
4676         * sysdeps/posix/gettimeofday.c: Likewise.
4677         * sysdeps/unix/sysv/aix/gettimeofday.c: Likewise.
4678         * sysdeps/unix/common/syscalls.list: Define __gettimeofday alias.
4679         * sysdeps/unix/sysv/linux/alpha/gettimeofday.S: Likewise.
4680         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S: Likewise.
4682         * include/sys/stat.h: Declare __fxstat_internal and __fxstat64_internal
4683         and define __fxstate and __fxstat64 macros if not NOT_IN_libc.
4684         Remove __lstat and __fstat inline functions.
4685         * sysdeps/generic/fxstat.c: Use INTDEF for __fxstat.
4686         * sysdeps/mach/hurd/fxstat.c: Likewise.
4687         * sysdeps/unix/fxstat.c: Likewise.
4688         * sysdeps/unix/sysv/aix/fxstat.c: Likewise.
4689         * sysdeps/unix/sysv/linux/fxstat.c: Likewise.
4690         * sysdeps/unix/sysv/linux/i386/fxstat.c: Likewise.
4691         * sysdeps/unix/sysv/linux/ia64/fxstat.c: Likewise.
4692         * sysdeps/unix/sysv/linux/s390/s390-64/fxstat.c: Likewise.
4693         * sysdeps/generic/fxstat64.c: Use INTDEF for __fxstat64.
4694         * sysdeps/mach/hurd/fxstat64.c: Likewise.
4695         * sysdeps/unix/sysv/aix/fxstat64.c: Likewise.
4696         * sysdeps/unix/sysv/linux/fxstat64.c: Likewise.
4698         * include/unistd.h: Declare __getpid_internal and define
4699         __getpid macro if not NOT_IN_libc.
4700         * sysdeps/mach/hurd/getpid.c: Use INTDEF for __getpid.
4701         * sysdeps/generic/getpid.c: Likewise.
4702         * sysdeps/unix/syscalls.list: Add __getpid_internal alias.
4703         * posix/bsd-getpgrp.c: Use INTUSE for __getpgid call.
4705         * include/unistd.h: Declare __getpgid_internal and define
4706         __getpgid macro if not NOT_IN_libc.
4707         * sysdeps/generic/getpgid.c: Use INTDEF for __getpgid.
4708         * sysdeps/mach/hurd/getpgid.c: Likewise.
4709         * sysdeps/unix/sysv/aix/getpgid.c: Likewise.
4710         * sysdeps/unix/sysv/sysv4/__getpgid.c: Likewise.
4711         * sysdeps/unix/sysv/sysv4/getpgid.c: Likewise.
4712         * sysdeps/unix/sysv/linux/syscalls.list: Add _getpgid_internal alias.
4714         * include/unistd.h: Declare __getpagesize_internal and define
4715         __getpagesize macro if not NOT_IN_libc.
4716         * sysdeps/unix/sysv/linux/shmat.c: Include <unistd.h> for
4717         __getpagesize.
4718         * sysdeps/generic/getpagesize.c: Use INTDEF for __getpagesize.
4719         * sysdeps/mach/getpagesize.c: Likewise.
4720         * sysdeps/posix/getpagesize.c: Likewise.
4721         * sysdeps/unix/getpagesize.c: Likewise.
4722         * sysdeps/unix/sysv/linux/getpagesize.c: Likewise.
4723         * sysdeps/unix/sysv/linux/ia64/getpagesize.c: Likewise.
4724         * sysdeps/unix/sysv/linux/m68k/getpagesize.c: Likewise.
4725         * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize.c: Likewise.
4727 2002-04-13  Andreas Jaeger  <aj@suse.de>
4729         * sysdeps/i386/i486/bits/string.h (__strcspn_cg): Use only memory
4730         as clobber to reduce register pressure.
4731         (__strpbrk_cg): Likewise.
4732         (__mempcpy_by4): Likewise.
4733         (__strstr_cg): Likewise.
4734         Add prototype for __memrchr.
4736 2002-04-13  Andreas Schwab  <schwab@suse.de>
4738         * sysdeps/m68k/fpu/s_finite.c: Add internal alias.
4739         * sysdeps/m68k/fpu/s_finitef.c: Likewise.
4740         * sysdeps/m68k/fpu/s_finitel.c: Likewise.
4742 2002-04-13  Ulrich Drepper  <drepper@redhat.com>
4744         * elf/do-lookup.h [!VERSIONED]: Add new parameter flags.  Use it to
4745         check whether the caller prefers getting the most recent version of
4746         a symbol of the earliest version.
4747         * elf/dl-lookup.c: Adjust all callers of do_lookup.  Change
4748         _dl_do_lookup to also take the new parameter and pass it on.
4749         Change 'explicit' parameter of _dl_lookup_symbol and
4750         _dl_lookup_versioned_symbol to flags.  Adjust tests.
4751         * sysdeps/generic/ldsodefs.h: Adjust prototypes.
4752         * elf/dl-libc.c: Adjust all callers of _dl_lookup_symbol and
4753         _dl_lookup_versioned_symbol.
4754         * elf/dl-reloc.c: Likewise.
4755         * elf/dl-runtime.c: Likewise.
4756         * elf/dl-sym.c: Likewise.
4757         * sysdeps/mips/dl-machine.h: Likewise.
4759 2002-04-11  Jakub Jelinek  <jakub@redhat.com>
4761         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h (LOC): Don't paste
4762         in a token.
4763         * sysdeps/unix/sysv/sysv4/solaris2/sparc/sysdep.h (LOC): Likewise.
4765 2002-04-10  Andreas Jaeger  <aj@suse.de>
4767         * sysdeps/unix/sysv/linux/x86_64/glob.c: New file.
4769         * include/argz.h: Remove extra char from last patch.
4771 2002-04-09  Ulrich Drepper  <drepper@redhat.com>
4773         * sysdeps/mach/hurd/chown.c: Use INTDEF for __chown.
4774         * sysdeps/unix/sysv/aix/chown.c: Likewise.
4775         * sysdeps/unix/grantpt.c: Use INTUSE for __chown calls.
4776         * sysdeps/unix/sysv/linux/m68k/chown.c: Likewise.
4777         * sysdeps/unix/sysv/linux/powerpc/chown.c: Likewise.
4778         * sysdeps/unix/sysv/linux/i386/chown.c: Use INTDEF2 to define
4779         __chown_internal.
4780         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Likewise.
4782         * intl/dcngettext.c [_LIBC]: Use INTUSE for __dcngettext.
4783         * intl/dngettext.c [_LIBC] (DCNGETTEXT): Use INTUSE.
4784         * intl/ngettext.c: Likewise.
4786         * include/sys/socket.h: Declare __connect_internal and define
4787         __connect macro if not NOT_IN_libc.
4788         * sysdeps/mach/hurd/connect.c: Use INTDEF for __connect.
4789         * sysdeps/unix/sysv/aix/connect.c: Likewise.
4790         * sysdeps/unix/sysv/linux/connect.S: Add __connect_internal alias.
4792         * include/unistd.h: Declare __close_internal and define __close macro
4793         if not NOT_IN_libc.
4794         * libio/libioP.h (JUMO0, JUMP1, JUMP2, JUMP3, WJUMP0, WJUMP1, WJUMP2,
4795         WJUMP3): Add extra parenthesis to avoid expanding element names with
4796         macors like __close.
4797         * sysdeps/unix/syscalls.list: Add __close_internal alias.
4799         * include/unistd.h: Declare __dup2_internal and define __dup2 macro
4800         if not NOT_IN_libc.
4801         * sysdeps/mach/hurd/dup2.c: Use INTDEF for __dup2.
4802         * sysdeps/posix/dup2.c: Use INTDEF for __dup2.
4803         * sysdeps/unix/syscalls.list: Add __dup2_internal alias.
4805         * include/unistd.h: Declare __fork_internal and define __fork macro
4806         if not NOT_IN_libc.
4807         * sysdeps/mach/hurd/fork.c: Use INTDEF for __fork.
4808         * sysdeps/unix/sysv/aix/fork.c: Likewise.
4809         * sysdeps/unix/sysv/linux/syscalls.list: Add __fork_internal alias.
4811         * include/stdio_ext.h: Declare __fsetlocking_internal and define
4812         __fsetlocking macro to use it if not NOT_IN_libc.
4813         * libio/__fsetlocking.c: Use INTDEF for __fsetlocking.
4815         * libio/__fbufsize.c: Correct copyright.
4816         * libio/__flbf.c: Likewise.
4817         * libio/__fpending.c: Likewise.
4818         * libio/__fpurge.c: Likewise.
4819         * libio/__freadable.c: Likewise.
4820         * libio/__freading.c: Likewise.
4821         * libio/__fsetlocking.c: Likewise.
4822         * libio/__fwritable.c: Likewise.
4823         * libio/__fwriting.c: Likewise.
4825         * include/stdio.h: Declare __asprintf_internal and define __asprintf
4826         macro to use it if not NOT_IN_libc.
4827         * stdio-common/asprintf.c: Use INTDEF for __asprintf.
4829         * include/mntent.h: Declare __setmntent_internal,
4830         __getmntent_r_internal, __endmntent_internal.  Define __setmntent,
4831         __getmntent_r, and __endmntent macros to use these functions if not
4832         NOT_IN_libc.
4833         * misc/mntent_r.c: Use INTDEF for __setmntent, __getmntent_r, and
4834         __endmntent.
4836         * include/math.h: Declare __finite_internal, __finitef_internal, and
4837         __finitel_internal.  Redefine isfinite macro if in libc or libm using
4838         these functions.
4839         * sysdeps/generic/s_ldexp.c: Use INTUSE for __finite calls.
4840         * sysdeps/generic/s_ldexpf.c: Use INTUSE for __finitef calls.
4841         * sysdeps/generic/s_ldexpl.c: Use INTUSE for __finitel calls.
4842         * sysdeps/i386/fpu/s_finite.S: Define _internal alias.
4843         * sysdeps/i386/fpu/s_finitef.S: Likewise.
4844         * sysdeps/i386/fpu/s_finitel.S: Likewise.
4845         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
4846         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
4847         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
4848         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
4850         * include/fcntl.h: Declare __fcntl_internal.  Define __fcntl macro
4851         to use this function if not NOT_IN_libc.
4852         * libio/iofdopen.c (_IO_fcntl): Use INTUSE.
4853         * sysdeps/generic/fcntl.c: Use INTDEF for __fcntl.
4854         * sysdeps/mach/hurd/fcntl.c: Likewise.
4855         * sysdeps/unix/sysv/aix/fcntl.c: Likewise.
4856         * sysdeps/unix/sysv/linux/i386/fcntl.c: Likewise.
4858         * include/argz.h: Declare __argz_count_internal and
4859         __argz_stringify_internal.
4860         * intl/l10nflist.c [_LIBC]: Use INTUSE for __argz_count and
4861         __argz_stringify.
4862         * string/argz-count.c: Use INTDEF for __argz_count.
4863         * string/argz-stringify.c: Use INTDEF for __argz_stringify.
4865         * include/stdlib.h: Declare __cxa_atexit_internal and define
4866         __cxa_atexit macro if not NOT_IN_libc.
4867         * stdlib/cxa_atexit.c: Use INTDEF for __cxa_atexit.
4868         * dlfcn/Makefile: Define NOT_IN_libc when compiling modcxaatexit.c.
4870         * assert/assert.c: Use INTDEF for __assert_fail.
4871         * assert/__assert.c: Use INTUSE for call to __assert_fail.
4872         * include/assert.h: Declare __assert_fail_internal.
4874         * extra-lib.mk: Mark assignment to lib with override.
4876 2002-04-08  Ulrich Drepper  <drepper@redhat.com>
4878         * Makerules: Use cppflags-iterator.mk to add defines for all test
4879         source files.
4881 2002-04-08  kaz Kojima  <kkojima@rr.iij4u.or.jp>
4883         * elf/elf.h: Define R_SH_TLS_xxx macros.
4884         * elf/rtld.c: Remove an extra parenthesis.
4885         * elf/tls-macros.h: Define SH version TLS_LE, TLS_IE, TLS_LD and
4886         TLS_GD macros.
4887         * sysdeps/generic/dl-tls.c: Add a missing semi-colon.
4888         * sysdeps/sh/dl-lookupcfg.h: New file.
4889         * sysdeps/sh/dl-tls.h: New file.
4890         * sysdeps/sh/dl-machine.h (elf_machine_type_class): Set
4891         ELF_RTYPE_CLASS_PLT also for the three TLS relocations.
4892         (elf_machine_rela): Handle R_SH_TLS_DTPMOD32, R_SH_TLS_DTPOFF32 and
4893         R_SH_TLS_TPOFF32 relocations.
4895 2002-04-08  Ulrich Drepper  <drepper@redhat.com>
4897         * cppflags-iterator.mk (cpp-srcs-left): Define NOT_IN_libc instead
4898         of NOT_IN_LIBC.
4899         * include/libintl.h: Test for NOT_IN_libc not NOT_IN_LIBC.
4900         * include/stdlib.h: Likewise.
4902 2002-04-08  Jakub Jelinek  <jakub@redhat.com>
4904         * elf/Makefile (CFLAGS-.os): Define NOT_IN_libc and IS_IN_rtld
4905         instead of _RTLD_LOCAL.
4906         * elf/dl-dst.h: Use IS_IN_rtld instead of _RTLD_LOCAL.
4907         * include/unistd.h: Likewise.
4908         * sysdeps/generic/ldsodefs.h: Likewise.
4910         * stdio-common/_itoa.h (_itoa_word): Only use internal digit arrays
4911         if in libc or ld.so.
4913 2002-04-08  Andreas Jaeger  <aj@suse.de>
4915         * elf/cache.c (print_entry): Support x86-64.
4917 2002-04-08  Ulrich Drepper  <drepper@redhat.com>
4919         * include/stdlib.h: For libc itself replace MB_CUR_MAX definition
4920         with one accessing the locale data structures directly.
4921         * stdio-common/printf-prs.c: Include localeinfo.h for new
4922         MB_CUR_MAX definition.
4924         * Makeconfig (CPPFLAGS): Also add CPPFLAGS-<basename> where <basename>
4925         is the name of the source file without extension.
4926         * Makefile (distribute): Add cppflags-iterator.mk.
4927         * cppflags-iterator.mk: New file.
4928         * extra-lib.mk: For the sources of the library run
4929         cppflags-iterator.mk.
4931         * include/libintl.h: Declare __dcgettext_internal and
4932         _libc_intl_domainname_internal.  Define __dcgettext using these
4933         two symbols if used in libc itself.
4934         * argp/argp-help.c: Define dgettext using __dcgettext_internal and
4935         _libc_intl_domainname_internal.
4936         * argp/argp-parse.c: Likewise.
4937         * intl/dcgettext.c (__dcgettext): Use INTDEF to define alias.
4938         * intl/dgettext.c: Call __dcgettext_internal instead of __dcgettext.
4939         * intl/gettext.c: Likewise.
4940         * locale/SYS_libc.c (_libc_intl_domainname): Use INTDEF to define
4941         alias.
4942         * posix/regcomp.c (gettext): Use __dcgettext_internal instead of
4943         __dcgettext.
4944         * posix/regex_internal.c (gettext): Likewise.
4946 2002-04-08  Andreas Jaeger  <aj@suse.de>
4948         * sysdeps/unix/sysv/linux/x86_64/ldd-rewrite.sed: Fix rewrite rule.
4950         * sysdeps/x86_64/fpu/s_llrint.S: New.
4951         * sysdeps/x86_64/fpu/s_llrintf.S: New.
4952         * sysdeps/x86_64/fpu/s_llrintl.S: New.
4953         * sysdeps/x86_64/fpu/s_lrint.S: New.
4954         * sysdeps/x86_64/fpu/s_lrintf.S: New
4955         * sysdeps/x86_64/fpu/s_lrintl.S: New.
4957 2002-04-08  Roland McGrath  <roland@frob.com>
4959         * sysdeps/mach/hurd/dl-sysdep.c (__mmap): Use MAP_FAILED instead of
4960         widening __hurd_fail value.
4962 2002-04-07  Roland McGrath  <roland@frob.com>
4964         * sysdeps/mach/hurd/alpha/trampoline.c: Don't include
4965         <mach/machine/alpha_instruction.h>.
4966         (_hurd_setup_sighandler): Take proper arguments for current decls.
4967         Update code to use _hurdsig_catch_fault.
4968         Use `callsys' instruction instead of `call_pal'.
4969         * sysdeps/mach/hurd/alpha/intr-msg.h: New file.
4971         * sysdeps/mach/alpha/sysdep.h: Include <mach/alpha/asm.h>.
4972         (ALIGN, at, AT, fp): New macros.
4974 2002-04-06  Roland McGrath  <roland@frob.com>
4976         * mach/setup-thread.c (__mach_setup_thread): int -> natural_t
4978         * sysdeps/mach/hurd/dl-sysdep.c: Use ElfW(TYPE) in place of Elf32_TYPE.
4979         (__mmap): Use MAP_FAILED instead of widening __hurd_fail value.
4981         * sysdeps/mach/hurd/bind.c: Use prototype definition.
4982         * sysdeps/mach/hurd/connect.c: Likewise.
4983         * sysdeps/mach/hurd/getsockopt.c: Likewise.
4984         * sysdeps/mach/hurd/setsockopt.c: Likewise.
4986         * sysdeps/mach/hurd/alpha/sigreturn.c: Pass missing argument to
4987         __msg_sig_post RPC.
4989         * hurd/catch-exc.c: Use integer_t instead of int.
4990         * hurd/hurdfault.c: Likewise.
4992         * sysdeps/mach/hurd/alpha/exc2signal.c
4993         (_hurd_exception2signal): Rewritten.
4994         * sysdeps/mach/hurd/alpha/longjmp-ts.c
4995         (_hurd_longjmp_thread_state): Rewritten.
4997 2002-04-07  Ulrich Drepper  <drepper@redhat.com>
4999         * nss/getXXbyYY_r.c: If NSS_attribute_hidden is defined use it with the
5000         DB_LOOKUP_FCT prototype.
5001         * nss/getXXent_r.c: Likewise.
5002         * inet/getaliasent_r.c: Define NSS_attribute_hidden.
5003         * inet/getaliasname_r.c: Likewise.
5004         * inet/getnetbyad_r.c: Likewise.
5005         * inet/getnetbynm_r.c: Likewise.
5006         * inet/getnetent_r.c: Likewise.
5007         * inet/getproto_r.c: Likewise.
5008         * inet/getprtent_r.c: Likewise.
5009         * inet/getprtname_r.c: Likewise.
5010         * inet/getrpcbyname_r.c: Likewise.
5011         * inet/getrpcbynumber_r.c: Likewise.
5012         * inet/getrpcent_r.c: Likewise.
5013         * inet/getservent_r.c: Likewise.
5014         * inet/getsrvbynm_r.c: Likewise.
5015         * inet/getsrvbypt_r.c: Likewise.
5016         * shadow/getspent_r.c: Likewise.
5017         * shadow/getspnam_r.c: Likewise.
5019         * malloc/thread-m.h: Define __libc_tsd_MALLOC_data as static.
5021         * sysdeps/i386/elf/bsd-setjmp.S: Use GOTOFF for __sigjmp_save access.
5022         Use i686-friendly PIC code.
5023         * sysdeps/i386/elf/setjmp.S: Likewise.
5025         * sysdeps/unix/sysv/linux/i386/sysdep.h: Use i686-friendly PIC code.
5027         * sysdeps/mach/hurd/Versions: Add _dl_init_first to libc and ld export
5028         list.
5029         * elf/Versions: Remove it here.
5031 2002-04-06  Ulrich Drepper  <drepper@redhat.com>
5033         * iconvdata/tcvn5712-1.c (MAX_NEEDED_INPUT): Define for from
5034         direction.  Reported by H . J . Lu <hjl@lucon.org>.
5036 2002-04-05  Ulrich Drepper  <drepper@redhat.com>
5038         * intl/tst-gettext.sh: Set GCONV_PATH and LOCPATH to values for the
5039         test just before the test runs.
5040         * intl/tst-translit.sh: Likewise.
5041         * intl/tst-codeset.sh: Likewise.
5043         * timezone/zic.c: Update from tzcode2002c.
5044         * timezone/asia: Update from tzdata2002c.
5045         * timezone/backward: Likewise.
5046         * timezone/europe: Likewise.
5047         * timezone/northamerica: Likewise.
5048         * timezone/northamerica: Likewise.
5049         * timezone/northamerica: Likewise.
5050         * timezone/southamerica: Likewise.
5051         * timezone/zone.tab: Likewise.
5053 2002-03-23  Jakub Jelinek  <jakub@redhat.com>
5055         * sysdeps/generic/brk.c (__curbrk): Declare.
5056         * sysdeps/generic/dl-brk.c: Add attribute_hidden to __curbrk.
5057         * sysdeps/generic/dl-sbrk.c: Likewise.
5058         * sysdeps/unix/arm/dl-brk.S: New file.
5059         * sysdeps/unix/bsd/hp/m68k/dl-brk.S: New file.
5060         * sysdeps/unix/bsd/osf/alpha/dl-brk.S: New file.
5061         * sysdeps/unix/bsd/sun/m68k/dl-brk.S: New file.
5062         * sysdeps/unix/bsd/vax/dl-brk.S: New file.
5063         * sysdeps/unix/i386/dl-brk.S: New file.
5064         * sysdeps/unix/mips/dl-brk.S: New file.
5065         * sysdeps/unix/sparc/dl-brk.S: New file.
5066         * sysdeps/unix/sysv/linux/alpha/dl-brk.S: New file.
5067         * sysdeps/unix/sysv/linux/ia64/dl-brk.S: New file.
5068         * sysdeps/unix/sysv/linux/powerpc/dl-brk.S: New file.
5069         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-brk.S: New file.
5071 2002-04-03  Andreas Schwab  <schwab@suse.de>
5073         * Makefile (headers): Add gnu/lib-names.h here instead of
5074         install-others.
5075         ($(inst_includedir)/gnu/lib-names.h): Remove explicit
5076         installation rule.
5077         (install-headers): Add dependency on install-headers-nosubdir.
5078         * stdio-common/Makefile (headers): Add bits/stdio_lim.h here
5079         instead of install-others.
5080         ($(inst_includedir)/bits/stdio_lim.h): Remove explicit
5081         installation rule.
5083 2002-04-05  Ulrich Drepper  <drepper@redhat.com>
5085         * manual/users.tex (Enable/Disable Setuid): Fix typo in example.
5086         Reported by Sam Roberts <sroberts@uniserve.com>.
5088 2002-04-03  Jakub Jelinek  <jakub@redhat.com>
5090         * elf/do-rel.h (elf_dynamic_do_rel): Skip relative relocs if
5091         l_addr == 0 and ELF_MACHINE_REL_RELATIVE.
5092         * sysdeps/alpha/dl-machine.h (ELF_MACHINE_REL_RELATIVE): Define.
5093         * sysdeps/ia64/dl-machine.h (ELF_MACHINE_REL_RELATIVE): Define.
5095 2002-04-03  David Mosberger  <davidm@hpl.hp.com>
5097         * sysdeps/ia64/dl-machine.h (TRAMPOLINE_TEMPLATE): Add unwind info.
5098         (RTLD_START): Ditto.
5099         (__ia64_init_bootstrap_fdesc_table): Insert stop bit to avoid RAW
5100         dependency violation.
5102 2002-04-05  Jakub Jelinek  <jakub@redhat.com>
5104         * time/mktime.c (__mktime_internal): Move check for year < 70 below
5105         all variable declarations.
5107 2002-04-04  Andreas Schwab  <schwab@suse.de>
5109         * sysdeps/unix/sysv/linux/ia64/pipe.S: Don't overwrite r8 on error.
5111 2002-04-04  Andreas Jaeger  <aj@suse.de>
5113         * sysdeps/x86_64/fpu/e_sqrt.c: New file.
5114         * sysdeps/x86_64/fpu/e_sqrtf.c: New file.
5116         * sysdeps/x86_64/fpu/s_fabs.c: New file.
5117         * sysdeps/x86_64/fpu/s_fabsf.c: New file.
5118         * sysdeps/x86_64/fpu/s_fabsl.c: New file.
5120         * sysdeps/unix/sysv/linux/x86_64/time.S: New file.
5122         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S: New file.
5124         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: Removed.
5125         * sysdeps/unix/sysv/linux/x86_64/time.c: Removed.
5127         * configure.in: Handle all mips entries the same.
5129         * sysdeps/mips/dec/bits/endian.h: Removed since arch is not supported.
5130         * sysdeps/mips/mips3/*: Likewise.
5131         * sysdeps/mips/p40/bits/endian.h: Likewise.
5133 2002-04-04  Ulrich Drepper  <drepper@redhat.com>
5135         * misc/dirname.c (dirname): Ignore trailing slashes at end of
5136         non-null result [PR libc/2600].
5138         * misc/tst-dirname.c: Add more tests.
5140 2002-04-03  Ulrich Drepper  <drepper@redhat.com>
5142         * locale/programs/charmap.c (charmap_read): If the charmap doesn't
5143         define a code_set_name provide one based on the filename.
5145         * malloc/hooks.c: Define weak_variable correctly for _LIBC.
5147 2001-12-28  Andreas Jaeger  <aj@suse.de>
5149         * time/mktime.c (__mktime_internal): Check for year < 70
5150         [PR libc/2738].
5152 2002-04-03  Andreas Jaeger  <aj@suse.de>
5154         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Fix arguments for
5155         shmat.
5156         Reported by Andi Kleen <ak@suse.de>.
5158 2002-04-03  Ulrich Drepper  <drepper@redhat.com>
5160         * sysdeps/generic/w_lgamma.c: Initialized local_signgam.
5161         * sysdeps/generic/w_lgammaf.c: Likewise.
5162         * sysdeps/generic/w_lgammal.c: Likewise [PR libc/2854].
5164         * debug/catchsegv.sh (exval): Quote [ in pattern [PR libc/2902].
5165         Adjust for new output format of the backtrace functions.
5167         * misc/syslog.c (vsyslog): Only use cleanup handler if
5168         _LIBC_REENTRANT is defined [PR libc/2924].
5170         * libio/Makefile (tests): Add bug-ungetwc2.
5171         * libio/bug-ungetwc2.c: New file.
5173         * manual/install.texi: Typographical and grammatical cleanup.
5174         Patch by Dennis Grace <dgrace@us.ibm.com>.
5176         * sunrpc/rpc_svcout.c (write_real_program): Write "result, "
5177         parameter if mtflag.  Patch by <jeongyun@innovay.com>.
5179         * sunrpc/rpc_svcout.c (printif): Remove third parameter.  It was
5180         always "&".  Adjust callers.
5181         Add "_" prefix to several generated definitions.
5182         Patch by paul@serice.net [PR libc/3158].
5184 2002-04-02  Ulrich Drepper  <drepper@redhat.com>
5186         * sysdeps/unix/sysv/linux/arm/dl-procinfo.c: Completely specify
5187         size of _dl_arm_cap_flags.
5188         Patch by enrico.scholz@informatik.tu-chemnitz.de [PR libc/3155].
5190         * sysdeps/unix/sysv/linux/arm/dl-procinfo.h (_DL_HWCAP_COUNT):
5191         Define as 8.
5193 2002-03-22  H.J. Lu  <hjl@gnu.org>
5195         * scripts/firstversions.awk: Check the first version.
5197 2002-04-02  Ulrich Drepper  <drepper@redhat.com>
5199         * elf/dl-deps.c (_dl_map_object_deps): The sorting of the
5200         dependencies must be stable to work correctly.
5201         Reported by martin.lubich@datacon.at.
5203         * libio/bug-ungetwc1.c: New file.
5204         * libio/Makefile (tests): Add bug-ungetwc1.
5206         * libio/fileops.c (_IO_new_file_close_it): Only call _IO_do_flush
5207         if stream was last used for writing.
5209         * elf/do-lookup.h (do_lookup): 2 is the first user-defined version
5210         number [PR libc/3111].
5212         * libio/iofclose.c (_IO_new_fclose): Move freeing of backup buffer
5213         to ...
5214         * libio/fileops.c (_IO_new_file_close_it): ...here [PR libc/3190].
5216 2002-04-02  Jakub Jelinek  <jakub@redhat.com>
5218         * inet/ether_ntoh.c (__nss_ethers_lookup): Add internal_function.
5219         * inet/ether_hton.c (__nss_ethers_lookup): Likewise.
5220         * inet/getnetgrent_r.c (__nss_netgroup_lookup): Likewise.
5221         * sunrpc/netname.c (__nss_publickey_lookup): Likewise.
5222         * sunrpc/publickey.c (__nss_publickey_lookup): Likewise.
5224 2002-03-30  Jakub Jelinek  <jakub@redhat.com>
5226         * elf/dynamic-link.h (elf_get_dynamic_info): Don't abort on unknown
5227         dynamic tags.
5229 2002-03-29  Jakub Jelinek  <jakub@redhat.com>
5231         * sysdeps/i386/fpu/s_fabs.S: New file.
5232         * sysdeps/i386/fpu/s_fabsf.S: New file.
5233         * sysdeps/i386/fpu/s_fabsl.S: New file.
5234         * sysdeps/sparc/sparc64/fpu/s_fabs.c: New file.
5235         * sysdeps/sparc/sparc64/fpu/s_fabsf.c: New file.
5236         * sysdeps/sparc/sparc64/fpu/s_fabsl.c: New file.
5238 2002-04-02  Ulrich Drepper  <drepper@redhat.com>
5240         * rt/tst-shm.c (do_test): Add one more test for size of shared
5241         memory object.
5243 2002-03-29  Wolfram Gloger  <wg@malloc.de>
5245         * malloc/malloc.c: Add short description and prototypes for
5246         malloc_get_state, malloc_set_state and posix_memalign, for
5247         consistency and to avoid warnings with -Wstrict-prototypes.
5248         Reported by Andreas Jaeger <aj@suse.de>.
5250 2002-04-02  Ulrich Drepper  <drepper@redhat.com>
5252         * po/gl.po: Update from translation team.
5254 2002-03-31  Roland McGrath  <roland@frob.com>
5256         * hurd/hurdselect.c (_hurd_select): Fix
5257         MACH_MSG_TYPE_INTEGER_T -> integer_t in sizeof.
5258         Use a union rather than casts to compare mach_msg_type_t as int.
5260 2002-03-25  Roland McGrath  <roland@frob.com>
5262         * hurd/hurdchdir.c (_hurd_change_directory_port_from_name): Don't
5263         check off the end of NAME when it's shorter than 2 chars.
5264         Reported by Ognyan Kulev <ogi@fmi.uni-sofia.bg>.
5266 2002-03-17  Roland McGrath  <roland@frob.com>
5268         * sysdeps/mach/hurd/i386/sys/io.h: New file.
5269         * sysdeps/mach/hurd/i386/ioperm.c: New file.
5270         * sysdeps/mach/hurd/i386/Dist: Add them.
5271         * sysdeps/mach/hurd/i386/Versions
5272         (libc: GLIBC_2.2.6): New set, add ioperm.
5273         * sysdeps/mach/configure.in: New check to set HAVE_I386_IO_PERM_MODIFY.
5274         (mach_interface_list): Check for mach_i386.defs.
5275         * config.h.in (HAVE_I386_IO_PERM_MODIFY): #undef it.
5276         * sysdeps/mach/configure: Regenerated.
5278 2002-03-22  Ulrich Drepper  <drepper@redhat.com>
5280         * po/fr.po: Update from translation team.
5282 2002-03-21  Martin Schwidefsky  <schwidefsky@de.ibm.com>
5284         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Remove
5285         getpriority from syscalls list.
5287 2002-03-28  Andreas Jaeger  <aj@suse.de>
5289         * sysdeps/unix/sysv/linux/x86_64/swapcontext.S: New file.
5290         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: New file.
5291         * sysdeps/unix/sysv/linux/x86_64/setcontext.S: New file.
5292         * sysdeps/unix/sysv/linux/x86_64/ucontext_i.h: New file.
5294 2002-03-27  Andreas Jaeger  <aj@suse.de>
5296         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (struct
5297         sigcontext): Follow further kernel change.
5299         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Follow further
5300         kernel change.
5302         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h (GET_STACK):
5303         Change for struct sigcontext change.
5305         * sysdeps/unix/sysv/linux/x86_64/register-dump.h (register_dump):
5306         Follow changes in struct sigcontext.
5308         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Remove ptrace
5309         sysycall, use wrapper instead.
5311 2002-03-26  Andreas Jaeger  <aj@suse.de>
5313         * sysdeps/i386/i486/bits/string.h (__memcpy_by4): Describe memory
5314         read and write accesses as detailed as possible.
5315         (__memcpy_by2): Likewise.
5316         (__memcpy_g): Likewise.
5317         (memmove): Likewise.
5318         (memcmp): Likewise.
5319         (__memset_ccn_by4): Likewise.
5320         (__memset_ccn_by2): Likewise.
5321         (__memset_gcn_by4): Likewise.
5322         (__memset_gcn_by2): Likewise.
5323         (memchr): Likewise.
5324         (__memrchr): Likewise.
5325         (rawmemchr): Likewise.
5326         (__strlen_g): Likewise.
5327         (__strcpy_g): Likewise.
5328         (__mempcpy_by4): Likewise.
5329         (__mempcpy_by2): Likewise.
5330         (__mempcpy_byn): Likewise.
5331         (__stpcpy_g): Likewise.
5332         (__strncpy_by4): Likewise.
5333         (__strncpy_by2): Likewise.
5334         (__strncpy_byn): Likewise.
5335         (__strncpy_gg): Likewise.
5336         (__strcat_c): Likewise.
5337         (__strcat_g): Likewise.
5338         (__strncat_g): Likewise.
5339         (__strcmp_gg): Likewise.
5340         (__strncmp_g): Likewise.
5341         (__strchr_c): Likewise.
5342         (__strchr_g): Likewise.
5343         (__strchrnul_c): Likewise.
5344         (__strchrnul_g): Likewise.
5345         (__strrchr_c): Likewise.
5346         (__strrchr_g): Likewise.
5347         (__strrchr_c): Likewise.
5348         (__strrchr_g): Likewise.
5349         (__strcspn_c1): Likewise.
5350         (__strcspn_cg): Likewise.
5351         (__strcspn_g): Likewise.
5352         (__strcspn_g): Likewise.
5353         (__strspn_c1): Likewise.
5354         (__strspn_cg): Likewise.
5355         (__strspn_g): Likewise.
5356         (__strspn_g): Likewise.
5357         (__strpbrk_cg): Likewise.
5358         (__strpbrk_g): Likewise.
5359         (__strstr_cg): Likewise.
5360         (__strstr_g): Likewise.
5362         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Fix typo.  Reported by
5363         Michal Ludvig <mludvig@suse.cz>.
5365         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Add 32-bit
5366         compatibilty, adjust for kernel changes.
5368         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (struct
5369         sigcontext): Adjust for kernel changes.
5371 2002-03-25  Andreas Jaeger  <aj@suse.de>
5373         * iconv/gconv_simple.c (ucs4le_internal_loop_single): Handle
5374         little endian.
5375         Reported by Artur Zaprzala <zybi@talex.com.pl>.
5377 2002-03-24  Andreas Jaeger  <aj@suse.de>
5379         * manual/memory.texi (Aligned Memory Blocks): Fix typo.
5381         * stdio-common/tst-fdopen.c (main): Remove unused variable.
5383         * iconv/tst-iconv3.c (main): Use correct printf strings.
5385 2002-03-18  Roland McGrath  <roland@frob.com>
5387         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (struct cmsgcred): New type.
5388         (CMGROUP_MAX): New macro.
5390 2002-03-23  Roland McGrath  <roland@frob.com>
5392         * sysdeps/posix/shm_open.c (SHMDIR): /var/run/shm -> /dev/shm
5393         * sysdeps/posix/shm_unlink.c: Likewise.
5395 2002-03-22  Roland McGrath  <roland@frob.com>
5397         * shlib-versions [USE_IN_LIBIO] (.*-.*-gnu-gnu.*): Make 2.2.6 default.
5398         * sysdeps/mach/hurd/configure.in: Default oldest ABI is 2.2.6
5399         under --enable-libio.
5400         * sysdeps/mach/hurd/configure: Regenerated.
5402 2002-03-23  Roland McGrath  <roland@frob.com>
5404         * sysdeps/mach/hurd/i386/Makefile
5405         (sysdep_routines, shared-only-routines): Don't add framestate,
5406         reverting 2001-10-02 change.
5407         * sysdeps/unix/sysv/linux/arm/Makefile: Likewise.
5408         * sysdeps/unix/sysv/linux/alpha/Makefile: Likewise.
5409         * sysdeps/unix/sysv/linux/i386/Makefile: Likewise.
5410         * sysdeps/unix/sysv/linux/m68k/Makefile: Likewise.
5411         * sysdeps/unix/sysv/linux/mips/Makefile: Likewise.
5412         * sysdeps/unix/sysv/linux/powerpc/Makefile: Likewise.
5413         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Likewise.
5414         * sysdeps/unix/sysv/linux/sparc/Makefile: Likewise.
5415         * sysdeps/generic/Makefile (sysdep_routines, shared-only-routines):
5416         Do it here instead, only if [$(unwind-find-fde) = yes].
5418 2002-03-23  Andreas Jaeger  <aj@suse.de>
5420         * signal/signal.h: Fix typo. Patch by Steve Kemp
5421         <skx@tardis.ed.ac.uk>.
5423 2002-03-22  Andreas Jaeger  <aj@suse.de>
5425         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Add getresgid and
5426         getresuid.
5428         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (struct
5429         _fpstate): Rename fwd to ftw, use _fpxreg and _xmmreg.
5430         * sysdeps/unix/sysv/linux/x86_64/sys/user.h (struct
5431         user_fpregs_struct): Rename fwd.
5433         * sysdeps/unix/sysv/linux/x86_64/register-dump.h (register_dump):
5434         Follow sigcontext changes.
5436 2002-03-22  Andreas Jaeger  <aj@suse.de>
5438         * sysdeps/mips/bits/nan.h: New file.  Copy from generic one with
5439         changes for NaNs on MIPS.
5440         Patch by Hartvig Ekner <hartvige@mips.com>.
5442 2002-03-21  Ulrich Drepper  <drepper@redhat.com>
5444         * nscd/grpcache.c (addgrbyname): Improve buffer allocate with alloca.
5445         Use realloc if too large.
5446         (addgrbyid): Likewise.
5447         * nscd/hstcache.c (addhstbyname): Likewise.
5448         (addhstbyaddr): Likewise.
5449         (addhstbynamev6): Likewise.
5450         (addhstbyaddrv6): Likewise.
5451         * nscd/pwdcache.c (addpwbyname): Likewise.
5452         (addpwbyuid): Likewise.
5454 2002-03-21  Andreas Jaeger  <aj@suse.de>
5456         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (struct
5457         _fpstate): Add separate struct for x86-64.
5459         * sysdeps/unix/sysv/linux/x86_64/sys/user.h (struct
5460         user_fpregs_struct): Change member names to follow kernel.
5462 2002-03-20  Ulrich Drepper  <drepper@redhat.com>
5464         * nis/ypclnt.c (yp_all): Remove the hack introduced on 1998-09-29.
5465         Correctly close the UDP connection right away [PR libc/3120].
5467 2002-03-20  Andreas Jaeger  <aj@suse.de>
5469         * sysdeps/unix/sysv/linux/x86_64/sys/user.h (struct
5470         user_fpregs_struct): Fix for changed kernel struct.
5471         (struct user_regs_struct): Likewise.
5472         (struct user): Likewise.
5473         Add 32-bit x86 compatibility.
5475         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Add more registers.
5477 2002-03-19  Andreas Jaeger  <aj@suse.de>
5479         * sysdeps/unix/sysv/linux/x86_64/bits/types.h: Cleanup x86 types.
5481 2002-03-18  Andreas Jaeger  <aj@suse.de>
5483         * iconvdata/Makefile: Only run tests when shared libs are
5484         available.
5486 2002-03-17  Andreas Jaeger  <aj@suse.de>
5488         * sysdeps/mips/fpu/fraiseexcpt.c (__feraiseexcept): Set cause bits.
5490         * sysdeps/mips/fpu/fgetexcptflg.c (__fegetexceptflag): Add comment.
5492         * sysdeps/mips/fpu/fclrexcpt.c (__feclearexcept): Clear also cause
5493         bits.
5495         * sysdeps/mips/fpu/fenv_libc.h (CAUSE_MASK): New.
5496         (CAUSE_SHIFT): New.
5497         Patch by Hartvig Ekner <hartvige@mips.com>.
5499         * sysdeps/generic/unwind-dw2-fde-glibc.c: Add prototypes.
5500         * sysdeps/generic/unwind-pe.h: Likewise.
5502         * libio/iofdopen.c (_IO_new_fdopen): Pass parameter of correct
5503         type to _IO_setb.
5505         * libio/stdio.c (AL2): Define variant when visibility attribute is
5506         not supported.
5508         * include/libc-symbols.h (_INTVARDEF): Define variant when
5509         visibility attribute is not supported.
5511 2002-03-16  Ulrich Drepper  <drepper@redhat.com>
5513         * po/fr.po: Update from translation team.
5515 2002-02-25  Bruno Haible  <bruno@clisp.org>
5517         * MakeTAGS (extract): Use --sort-by-file instead of --sort-output.
5519 2002-03-15  Ulrich Drepper  <drepper@redhat.com>
5521         * libio/iofdopen.c (_IO_new_fdopen): Call _IO_setb to deallocate
5522         buffers if _IO_file_attach failed.
5524         * libio/fileops.c (_IO_file_open): Close file descriptor if
5525         _IO_SEEKOFF call failed.
5527 2002-03-15  H.J. Lu  <hjl@gnu.org>
5528             Ulrich Drepper  <drepper@redhat.com>
5530         * configure.in: Check for availability of
5531         init_array/fini_array/preinit_array handling in binutils.
5532         * config.h.in (HAVE_INITFINI_ARRAY): New macro.
5533         * config.make.in (have-initfini-array): New variable.
5535 2002-03-15  Ulrich Drepper  <drepper@redhat.com>
5537         * stdio-common/tst-printf.c (main): Comment out one test which
5538         checked the compiler's ability to fold floating-point constants
5539         but not really printf.
5540         (rfg3): Make s const.
5541         * stdio-common/tst-printf.sh: Adjust for removed test.
5543         * sysdeps/i386/i386-mcount.S: Just call __mcount_internal, it is an
5544         internal function.  Adjust for internal_function calling convention.
5545         * sysdeps/i386/machine-gmon.h: Declare and define __mcount_internal
5546         as internal_function.
5548         * sysdeps/generic/framestate.c: Declare fallback_frame_state_for as
5549         hidden.
5551         * nss/XXX-lookup.c (DB_LOOKUP_FCT): Add internal_function to
5552         declaration and definition.
5553         * nss/getXXbyYY_r.c (DB_LOOKUP_FCT): Add internal_function to
5554         declaration.
5555         * nss/getXXent_r.c: Likewise.
5556         * nss/nsswitch.h (db_lookup_function): Add internal_function to
5557         definition.
5559         * include/time.h: Declare __localtime_r as hidden.
5561         * include/aliases.h: Declare __getaliasent_r as hidden.
5562         * include/grp.h: Declare __getgrent_r as hidden.
5563         * include/netdb.h: Declare __gethostent_r, __getnetent_r,
5564         __getservent_r, and __getprotoent_r as hidden.
5565         * include/pwd.h: Declare __getpwent_r as hidden.
5566         * include/shadow.h: Declare __getspent_r as hidden.
5567         * include/rpc/netdb.h: Declare __getrpcent_r as hidden.
5569         * iconv/gconv_int.h: Declare __gconv_read_conf, __gconv_alias_compare,
5570         and __gconv_transliterate as hidden.
5571         Add internal_function to __gconv_get_path declaration.
5572         * iconv/gconv_conf.c: Add internal_function to __gconv_get_path
5573         definition.  Add attribute_hidden to __gconv_read_conf definition.
5575 2002-03-14  Ulrich Drepper  <drepper@redhat.com>
5577         * elf/rtld.c: Declare _environ as hidden.
5578         * sysdeps/generic/dl-environ.c: Likewise.
5579         * sysdeps/generic/dl-sysdep.c: Likewise.
5581         * sysdeps/generic/ldsodefs.h: Declare _dl_debug_state_internal and
5582         _dl_mcount_internal as hidden.
5584         * elf/Makefile (rtld-routines): Add dl-sbrk and dl-brk.
5585         * sysdeps/generic/dl-brk.c: New file.
5586         * sysdeps/generic/dl-sbrk.c: New file.
5587         * sysdeps/unix/sysv/linux/i386/dl-brk.c: New file.
5588         * sysdeps/unix/sysv/linux/i386/dl-sbrk.c: New file.
5590         * elf/dl-minimal.c (malloc): Declare _end as hidden.
5591         (__errno_location): New function.  Declare errno as hidden.
5592         * elf/rtld.c (_dl_argc): Define as hidden.
5593         (_dl_skip_args): Define as hidden.
5594         (_begin, _end): Declare as hidden.
5595         * sysdeps/generic/dl-sysdep.c (_end): Declare as hidden.
5596         * sysdeps/generic/entry.h (_start): Declare as hidden.
5597         * sysdeps/generic/ldsodefs.h (_dl_argc): Declare as hidden.
5598         * sysdeps/i386/dl-machine.h (elf_machine_runtime_setup): Declare
5599         _dl_runtime_resolve and _dl_runtime_profile as hidden.
5600         (RTLD_START): Use GOTOFF to access _dl_skip_args and _dl_fini.
5602 2002-03-14  Roland McGrath  <roland@frob.com>
5604         * Makerules ($(common-objpfx)Versions.v.i): Depend on abi-versions.h.
5606         * Makeconfig (%.v.i, %.v): New implicit rules.
5607         (preprocess-versions): Variable removed.
5608         ($(common-objpfx)shlib-versions.v.i): New target giving just the
5609         shlib-versions input files as dependencies.
5610         ($(common-objpfx)soversions.i): Depend on that instead of the input
5611         files.  Use it as input instead of using a pipeline.
5612         (postclean-generated): Append soversions.i, shlib-versions.v, and
5613         shlib-versions.v.i here.
5614         * Makerules ($(common-objpfx)Versions.def.v.i): New target giving just
5615         the Versions.def input files as dependencies.
5616         ($(common-objpfx)Versions.v.i): Likewise for Versions files.
5617         ($(common-objpfx)Versions.all): Depend on that instead of the input
5618         files.  Use it as input instead of using a pipeline.
5619         ($(common-objpfx)sysd-versions): Likewise with Versions.v.i.
5620         (postclean-generated): Append those .v and .v.i files here.
5622 2002-03-14  Jakub Jelinek  <jakub@redhat.com>
5624         * locale/broken_cur_max.c (__ctype_get_mb_cur_max): Use nl_langinfo.
5625         * locale/Versions (_nl_current_LC_COLLATE, _nl_current_LC_CTYPE):
5626         Remove.
5628 2002-03-14  Jakub Jelinek  <jakub@redhat.com>
5630         * sysdeps/generic/mp_clz_tab.c: New file.
5631         * sysdeps/i386/mp_clz_tab.c: New file.
5632         * sysdeps/hppa/mp_clz_tab.c: New file.
5633         * sysdeps/powerpc/mp_clz_tab.c: New file.
5634         * stdlib/Makefile (aux): Revert last patch.
5635         * math/Makefile (gmp-objs): Likewise.
5637 2002-03-13  Paul Eggert  <eggert@twinsun.com>
5639         * time/strftime.c: Comment fixes for references to obsolescent
5640         standards, In most cases the simplest fix is to remove the
5641         confusing comments.  Cross-referencing all the standards properly
5642         is a bit of a pain, and it should be enough to put that info in
5643         the documentation as I did in my recent time.texi patch.
5645 2002-03-13  Paul Eggert  <eggert@twinsun.com>
5647         * manual/time.texi (Formatting Calendar Time):
5648         ISO C99 also specifies the E and O modifiers.
5649         %P is a GNU extension, and is not in ISO C99.
5650         Mention that %r is equivalent to %I:%M:%S %p in the POSIX locale.
5651         %T is also in ISO C99.
5652         The RFC 822 example is not valid in arbitrary locales.
5653         Reword the POSIX.2 wording slightly, to make it a bit clearer
5654         that POSIX.2 formats are also supported by later POSIX versions.
5655         If a format was introduced in ISO C99 it is also required by
5656         POSIX.1-2001.
5658 2002-03-13  Ulrich Drepper  <drepper@redhat.com>
5660         * sysdeps/gnu/errlist.awk: Define _sys_errlist_internal and
5661         _sys_nerr_internal with INTVARDEF2.
5662         * include/libc-symbols.h (INTVARDEF2): New macro.
5663         * include/stdio.h (_sys_errlist_internal): Declare as hidden.
5664         (_sys_nerr_internal): Library.
5666         * sysdeps/posix/signal.c (_sigintr): Define as hidden.
5667         * sysdeps/posix/sigintr.c (_sigintr): Declare as hidden.
5669         * stdio-common/tst-printf.sh: Adjust for last change in tst-printf.c.
5671 2002-03-13  Wolfram Gloger  <wg@malloc.de>
5673         * malloc/malloc.c (sYSMALLOc): Don't change brk if mmap failed.
5675 2002-03-02  Andreas Schwab  <schwab@suse.de>
5677         * stdio-common/vfprintf.c (process_arg): Fix decimal format with
5678         'h' flag and positional arg.
5679         * stdio-common/tst-printf.c (rfg3): New function to test
5680         positional arguments.
5681         (main): Fix some warnings.
5683 2002-03-13  Jakub Jelinek  <jakub@redhat.com>
5685         * elf/dl-minimal.c (_itoa): Use _itoa_lower_digits_internal if SHARED.
5686         * elf/dl-reloc.c (_dl_reloc_bad_type): Likewise.
5688 2002-03-13  Ulrich Drepper  <drepper@redhat.com>
5690         * grp/initgroups.c (__nss_group_data): Declare as hidden.
5692         * include/locale.h (_nl_C_locobj): Declare as hidden.
5694         * time/asctime.c (_nl_C_LC_TIME): Declare as hidden.
5695         * time/strptime.c (_nl_C_LC_TIME): Likewise.
5697         * include/netinet/in.h (in6addr_any_internal): Mark as hidden.
5699         * include/sys/gmon.h: Declare _gmonparam as hidden.
5701         * locale/lc-ctype.c (__ctype32_wctype): Declare as hidden.
5702         (__ctype32_wctrans): Likewise.
5703         (__ctype32_width): Likewise.
5705         * sysdeps/unix/sysv/linux/ttyname.c: Comment out definition and
5706         use of __ttyname.
5708         * posix/regcomp.c (__re_error_msgid): Renamed from re_error_msgid.
5709         Define as hidden.
5710         (__re_error_msgid_idx): Renamed from re_error_msgid_idx.  Define as
5711         hidden.  Change all users of these variables.
5713         * posix/regex_internal.h (__re_error_msgid): Renamed from
5714         re_error_msgid.  Declare as hidden.
5715         (__re_error_msgid_idx): Renamed from re_error_msgid_idx.  Declare as
5716         hidden.
5718         * stdio-common/reg-printf.c (__printf_arginfo_table): Define as hidden.
5719         (__printf_function_table): Likewise.
5720         * stdio-common/printf-parse.h (__printf_arginfo_table): Declare as
5721         hidden.
5722         (__printf_function_table): Likewise.
5724         * nscd/nscd_proto.h: Declare __nss_not_use_nscd_passwd,
5725         __nss_not_use_nscd_group, and __nss_not_use_nscd_hosts as hidden.
5727         * nss/XXX-lookup.c (DATABASE_NAME_SYMBOL): Define as hidden.
5728         * nss/nsswitch.c: Declare _nss_*_database as hidden.
5730         * stdlib/wctomb.c (__no_r_state): Declare as hidden.
5731         * stdlib/mbtowc.c (__no_r_state): Define as hidden.
5733 2002-03-12  Ulrich Drepper  <drepper@redhat.com>
5735         * ctype/ctype-info.c: Declare _nl_C_LC_CTYPE_class,
5736         _nl_C_LC_CTYPE_class32, _nl_C_LC_CTYPE_toupper, _nl_C_LC_CTYPE_tolower,
5737         _nl_C_LC_CTYPE_class_upper, _nl_C_LC_CTYPE_class_lower,
5738         _nl_C_LC_CTYPE_class_alpha, _nl_C_LC_CTYPE_class_digit,
5739         _nl_C_LC_CTYPE_class_xdigit, _nl_C_LC_CTYPE_class_space,
5740         _nl_C_LC_CTYPE_class_print, _nl_C_LC_CTYPE_class_graph,
5741         _nl_C_LC_CTYPE_class_blank, _nl_C_LC_CTYPE_class_cntrl,
5742         _nl_C_LC_CTYPE_class_punct, _nl_C_LC_CTYPE_class_alnum,
5743         _nl_C_LC_CTYPE_map_toupper, _nl_C_LC_CTYPE_map_tolower, and
5744         _nl_C_LC_CTYPE_width: Declare as hidden.
5745         * include/locale.h: Declare _nl_locale_file_list.
5746         * locale/C-address.c: Define _nl_C_LC_ADDRESS as hidden.
5747         * locale/C-collate.c: Define _nl_C_LC_COLLATE as hidden.
5748         * locale/C-identification.c: Define _nl_C_LC_IDENTIFICATION as hidden.
5749         * locale/C-measurement.c: Define _nl_C_LC_MEASUREMENT as hidden.
5750         * locale/C-messages.c: Define _nl_C_LC_MESSAGES as hidden.
5751         * locale/C-monetary.c: Define _nl_C_LC_MONETARY as hidden.
5752         * locale/C-name.c: Define _nl_C_LC_NAME as hidden.
5753         * locale/C-numeric.c: Define _nl_C_LC_NUMERIC as hidden.
5754         * locale/C-paper.c: Define _nl_C_LC_PAPER as hidden.
5755         * locale/C-telephone.c: Define _nl_C_LC_TELEPHONE as hidden.
5756         * locale/C-time.c: Define _nl_C_LC_TIME as hidden.
5757         * locale/C-ctype.c: Define _nl_C_LC_CTYPE_class,
5758         _nl_C_LC_CTYPE_class32, _nl_C_LC_CTYPE_toupper, _nl_C_LC_CTYPE_tolower,
5759         _nl_C_LC_CTYPE_class_upper, _nl_C_LC_CTYPE_class_lower,
5760         _nl_C_LC_CTYPE_class_alpha, _nl_C_LC_CTYPE_class_digit,
5761         _nl_C_LC_CTYPE_class_xdigit, _nl_C_LC_CTYPE_class_space,
5762         _nl_C_LC_CTYPE_class_print, _nl_C_LC_CTYPE_class_graph,
5763         _nl_C_LC_CTYPE_class_blank, _nl_C_LC_CTYPE_class_cntrl,
5764         _nl_C_LC_CTYPE_class_punct, _nl_C_LC_CTYPE_class_alnum,
5765         _nl_C_LC_CTYPE_map_toupper, _nl_C_LC_CTYPE_map_tolower,
5766         _nl_C_LC_CTYPE_width, and as hidden.
5767         * locale/findlocale.c: Declare _nl_C as hidden.
5768         * locale/newlocale.c: Likewise.
5769         * locale/setlocale.c: Define _nl_C as hidden.  Remove declaration of
5770         _nl_locale_file_list.
5771         * locale/xlocale.c: Declare _nl_C_LC_CTYPE_class,
5772         _nl_C_LC_CTYPE_toupper, and _nl_C_LC_CTYPE_tolower as hidden.
5773         Define _nl_C_locobj as hidden.
5775         * malloc/mtrace.c (_mtrace_file): Define as hidden.
5776         (_mtrace_line): Likewise.
5778         * include/time.h: Declare __mon_yday as hidden.
5779         * time/strptime.c [_LIBC] (__mon_yday): Remove declaration.
5781         * libio/libioP.h: Declare __libio_codecvt as hidden.
5782         * libio/fileops.c: Declare __libio_translit as hidden.
5783         * libio/iofwide.c: Define __libio_translit as hidden.
5785         * login/getutent_r.c: Define __libc_utmp_lock as hidden.
5786         * login/getutid_r.c: Declare __libc_utmp_lock as hidden.
5787         * login/getutline_r.c: Likewise.
5788         * login/utmpname.c: Likewise.
5790         * login/utmp-private.h: Declare __libc_utmp_file_functions,
5791         __libc_utmp_unknown_functions, __libc_utmp_jump_table, and
5792         __libc_utmp_file_name as hidden.
5794         * locale/setlocale.c (__libc_setlocale_lock): Define as hidden.
5795         * locale/duplocale.c (__libc_setlocale_lock): Declare as hidden.
5796         * locale/freelocale.c: Likewise.
5797         * locale/lc-time.c: Likewise.
5799         * sysdeps/unix/bsd/getpt.c (__libc_ptyname1): Define as hidden.
5800         (__libc_ptyname2): Likewise.
5801         * sysdeps/unix/sysv/linux/ptsname.c (__libc_ptyname1): Declare as
5802         hidden.
5803         (__libc_ptyname2): Likewise.
5805         * sysdeps/generic/sbrk.c: Declare __libc_multiple_libcs as hidden.
5806         * sysdeps/arm/init-first.c (__libc_multiple_libcs): Define as hidden.
5807         * sysdeps/generic/init-first.c: Likewise.
5808         * sysdeps/i386/init-first.c: Likewise.
5809         * sysdeps/mach/hurd/i386/init-first.c: Likewise.
5810         * sysdeps/mach/hurd/mips/init-first.c: Likewise.
5811         * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
5812         * sysdeps/sh/init-first.c: Likewise.
5813         * sysdeps/unix/sysv/aix/init-first.c: Likewise.
5814         * sysdeps/unix/sysv/linux/init-first.c: Likewise.
5816         * stdio-common/itowa-digits.c (_itowa_lower_digits): Define as hidden.
5817         (_itowa_upper_digits): Likewise.
5819         * libio/stdio.c (_IO_stdin, _IO_stdout, _IO_stderr): Define as hidden.
5820         * libio/libio.h [_LIBC] (_IO_stdin, _IO_stdout, _IO_stderr): Declare
5821         as hidden.
5823         * libio/libioP.h: Declare _IO_file_jumps_mmap, _IO_wfile_jumps,
5824         _IO_wfile_jumps_mmap, _IO_proc_jumps, _IO_old_proc_jumps,
5825         _IO_str_jumps, _IO_wstr_jumps, _IO_file_jumps_internal,
5826         _IO_wfile_jumps_internal, and _IO_list_all_internal as hidden.
5828         * gmon/gmon.c (__bb_head): Define as hidden.
5829         * gmon/bb_exit_func.c (__bb_head): Declare as hidden.
5831         * argp/argp-parse.c (_argp_hang): Define as static.
5833         * include/libc-symbols.h (_INTVARDEF): Adjust for visibility
5834         handling in latest compilers.
5836         * inet/in6_addr.c (in6addr_any): Use INTVARDEF not INTDEF to
5837         define alias.
5838         * libio/fileops.c (_IO_file_jumps): Likewise.
5839         * libio/stdfiles.c (_IO_list_all): Likewise.
5840         * libio/wfileops.c (_IO_wfile_jumps): Likewise.
5842         * malloc/malloc.h: Move __libc_malloc_initialized declaration to
5843         include/malloc.h.
5844         * include/malloc.h: Add __libc_malloc_initialized declaration
5845         here.  Mark variable hidden.
5846         * malloc/malloc.c: Include <malloc.h> not "malloc.h".
5848         * elf/dl-open.c (__libc_argc): Declare as hidden.
5849         (__libc_argv): Likewise.
5850         * sysdeps/generic/wordexp.c (__libc_argc): Declare as hidden.
5851         (__libc_argv): Likewise.
5852         * sysdeps/mach/hurd/i386/init-first.c: Define __libc_argc and
5853         __libc_argv as hidden.
5854         * sysdeps/mach/hurd/mips/init-first.c: Likewise.
5855         * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
5856         * sysdeps/unix/sysv/aix/init-first.c: Likewise.
5857         * sysdeps/unix/sysv/linux/init-first.c: Likewise.
5859         * include/stdlib.h (__libc_drand48_data): Declare as hidden.
5860         * stdlib/drand48.c: Remove declaration of __libc_drand48_data here.
5861         * stdlib/erand48.c: Likewise.
5862         * stdlib/jrand48.c: Likewise.
5863         * stdlib/lcong48.c: Likewise.
5864         * stdlib/lrand48.c: Likewise.
5865         * stdlib/mrand48.c: Likewise.
5866         * stdlib/nrand48.c: Likewise.
5867         * stdlib/seed48.c: Likewise.
5868         * stdlib/srand48.c: Likewise.
5870         * stdio-common/_itoa.c (_itoa_base_table): Declare as hidden.
5871         (_itoa_lower_digits_internal): New declaration.
5872         (_itoa_upper_digits_internal): New declaration.
5873         (_itoa): Use INTUSE to acces _itoa_upper_digits and _itoa_lower_digits.
5874         * stdio-common.h (_itoa_lower_digits_internal): New declaration.
5875         (_itoa_upper_digits_internal): New declaration.
5876         (_itoa_word): Use INTUSE to acces _itoa_upper_digits and
5877         _itoa_lower_digits.
5878         * stdio-common/itoa-digits.c: Use INTVARDEF with _itoa_lower_digits.
5879         * stdio-common/itoa-udigits.c: Use INTVARDEF with _itoa_upper_digits.
5881         * elf/dl-minimal.c (_itoa): Declare _itoa_lower_digits as hidden.
5882         * elf/dl-reloc.c (_dl_reloc_bad_type): Likewise.
5884         * stdio-common/_itowa.c (_itoa_base_table): Declare as hidden.
5885         (_itowa_lower_digits): Likewise.
5886         (_itowa_upper_digits): Likewise.
5887         * stdio-common/_itowa.h (_itowa_lower_digits): Likewise.
5888         (_itowa_upper_digits): Likewise.
5890         * intl/plural-exp.h (attribute_hidden): Define as empty macro if
5891         not already defined.
5892         (GERMANIC_PLURAL): Declare as hidden.
5894         * posix/getopt.c (__getopt_initialized): Declare as hidden.
5895         (attribute_hidden): Define as empty macro if not already defined.
5897         * iconv/gconv_int.h (__gconv_path_elem): Declare hidden.
5898         (__gconv_max_path_elem_len): Likewise.
5899         (__gconv_path_envvar): Likewise.
5901         * math/Makefile (gmp-objs): Remove mp_clz_tab.
5902         * stdlib/Makefile (aux): Remove mp_clz_tab.
5903         * stdlib/mp_clz_tab.c: Removed.  Not needed anywhere.
5905         * stdlib/exit.h (__exit_funcs): Declare as hidden.
5907         * posix/bug-regex5.c (main): Use nl_langinfo instead of _NL_CURRENT.
5909         * locale/localeinfo.h: Add attribute_hidden to _nl_current_LC_XXX,
5910         _nl_category_names, _nl_category_name_sizes, _nl_current,
5911         _nl_C_name, _nl_POSIX_name, _nl_C_codeset, and _nl_C_LC_XXX.
5913         * intl/dcigettext.c (_nl_default_default_domain): Define as hidden.
5914         (_nl_current_default_domain): Likewise
5915         (_nl_state_lock): Likewise.
5916         * intl/textdomain.c (_nl_default_default_domain): Declare as hidden.
5917         (_nl_current_default_domain): Likewise
5918         (_nl_state_lock): Likewise.
5919         * intl/bindtextdom.c (_nl_state_lock): Likewise.
5921         * stdlib/fpioconst.h (__tens): Add attribute_hidden.
5922         (_fpioconst_pow10): Likewise.
5924         * include/time.h (_tmbuf): Add attribute_hidden.
5926         * time/tzset.c (tzstring_list): Define as static.
5928         * include/time.h: Add attribute_hidden to __tzname_cur_max and
5929         __use_tzfile declaration.
5931         * wcsmbs/wcsmbsload.h: Add attribute_hidden to __wcsmbs_gconv_fcts
5932         and __wcsmbs_last_locale declaration.
5934 2002-02-25  Paul Eggert  <eggert@twinsun.com>
5936         * timezone/Makefile (tzbases): Move systemv from here...
5937         (tzlinks): to here, since the entries in systemv were all changed
5938         from Zone to Link lines in tz-2001a.  Bug reported (and patch
5939         tested) by Peter Breitenlohner.
5941 2002-03-07  Jakub Jelinek  <jakub@redhat.com>
5943         * time/tst-posixtz.c (tests): Add new tests.
5944         (main): Test whether tzset() sets daylight properly.
5946 2002-03-06  Jakub Jelinek  <jakub@redhat.com>
5948         * time/tzset.c (tz_compute): Move __daylight, __tzname and
5949         __tzname_cur_max setting...
5950         (tzset_internal): ...here.
5952 2002-03-06  Jakub Jelinek  <jakub@redhat.com>
5954         * time/tzset.c (compute_change): Don't return any value.
5955         (tz_compute): Likewise.  Don't handle southern hemisphere here.
5956         (__tz_convert): But here.
5958 2002-03-11  Ulrich Drepper  <drepper@redhat.com>
5960         * manual/examples/mkfsock.c: Include <string.h> as well.
5961         Patch by Alain De Carolis <alaind@wseurope.com>.
5963 2002-03-06  Isamu Hasegawa  <isamu@yamato.ibm.com>
5965         * posix/regexec.c (re_match): Fix incorrect register sizes.
5966         (re_search): Likewise.
5968 2002-03-05  Isamu Hasegawa  <isamu@yamato.ibm.com>
5970         * posix/regcomp.c (regfree): Remove a disused condition.
5971         * posix/regex_internal.c (re_acquire_state): Likewise.
5972         (re_acquire_state_context): Likewise.
5973         (register_state): Remove a redundant malloc invocation.
5974         * posix/regex_internal.h: (re_state_table_entry): Simplify
5975         the structure.
5977 2002-03-05  Isamu Hasegawa  <isamu@yamato.ibm.com>
5979         * posix/regcomp.c (regcomp): Add __builtin_expect to error
5980         handling conditions.
5981         (regerror): Likewise.
5982         (regfree): Likewise.
5983         (re_compile_internal): Likewise.
5984         (init_dfa): Likewise.
5985         (init_word_char): Likewise.
5986         (create_initial_state): Likewise.
5987         (analyze): Likewise.
5988         (analyze_tree): Likewise.
5989         (duplicate_node): Likewise.
5990         (calc_eclosure): Likewise.
5991         (calc_eclosure_iter): Likewise.
5992         (parse): Likewise.
5993         (parse_reg_exp): Likewise.
5994         (parse_branch): Likewise.
5995         (parse_expression): Likewise.
5996         (parse_subexp): Likewise.
5997         (parse_dup_op): Likewise.
5998         (parse_bracket_exp): Likewise.
5999         (build_equiv_class): Likewise.
6000         (build_charclass): Likewise.
6001         (build_word_op): Likewise.
6002         (fetch_number): Likewise.
6003         (create_tree): Likewise.
6004         (duplicate_tree): Likewise.
6005         * posix/regex.c (BE): New macro.
6006         * posix/regexec.c (re_match): Add __builtin_expect to error
6007         handling conditions.
6008         (re_match_2): Likewise.
6009         (re_search): Likewise.
6010         (re_search_internal): Likewise.
6011         (check_matching): Likewise.
6012         (proceed_next_node): Likewise.
6013         (set_regs): Likewise.
6014         (sift_states_backward): Likewise.
6015         (add_epsilon_backreference): Likewise.
6016         (transit_state): Likewise.
6017         (transit_state_sb): Likewise.
6018         (transit_state_mb): Likewise.
6019         (transit_state_bkref): Likewise.
6020         (transit_state_bkref_loop): Likewise.
6021         (build_trtable): Likewise.
6022         (group_nodes_into_DFAstates): Likewise.
6023         (match_ctx_init): Likewise.
6024         (match_ctx_add_entry): Likewise.
6025         * posix/regex_internal.c (re_string_construct): Add __builtin_expect
6026         to error handling conditions.
6027         (re_string_construct_toupper): Likewise.
6028         (build_wcs_buffer): Likewise.
6029         (build_wcs_upper_buffer): Likewise.
6030         (build_upper_buffer): Likewise.
6031         (re_string_translate_buffer): Likewise.
6032         (re_node_set_alloc): Likewise.
6033         (re_node_set_init_1): Likewise.
6034         (re_node_set_init_2): Likewise.
6035         (re_node_set_init_copy): Likewise.
6036         (re_node_set_intersect): Likewise.
6037         (re_node_set_init_union): Likewise.
6038         (re_node_set_merge): Likewise.
6039         (re_node_set_insert): Likewise.
6040         (re_dfa_add_node): Likewise.
6041         (re_acquire_state): Likewise.
6042         (re_acquire_state_context): Likewise.
6043         (create_new_state_common): Likewise.
6044         (register_state): Likewise.
6045         (create_ci_new_state): Likewise.
6046         (create_cd_new_state): Likewise.
6047         (re_string_context_at): Remove redundant condition.
6049 2002-01-16  Roger Sayle  <roger@eyesopen.com>
6051         * sysdeps/i386/i686/strcmp.S: Avoid unconditional jump to a ret.
6053         * sysdeps/i386/i586/strlen.S: Fix typo in comment.
6055 2002-03-11  Jakub Jelinek  <jakub@redhat.com>
6057         * sysdeps/i386/elf/configure.in: Fix comment.
6059         * sysdeps/sparc/sparc64/configure.in: New.
6060         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_load_address): Fix
6061         if .dynamic comes before .got.
6062         * config.h.in (SPARC64_DYNAMIC_BEFORE_GOT): Add.
6064         * sysdeps/sparc/sparc64/hp-timing.h (HP_TIMING_DIFF,
6065         HP_TIMING_ACCUM): Fix typos.
6067 2002-03-11  Ulrich Drepper  <drepper@redhat.com>
6069         * string/strfry.c: Add some more randomness to the seed.
6070         Patch by James A Morrison <ja2morri@student.math.uwaterloo.ca>.
6072         * po/es.po: Update from translation team.
6073         * po/fr.po: Likewise.
6075         * stdio-common/tfformat.c (sprint_doubles): A test for %F format.
6077         * stdio-common/printf_fp.c (__printf_fp): Correct check for %F format
6078         when determining type of format.
6079         Patch by James Antill <james@anqd.org> [PR libc/2787].
6081 2002-03-04  Jakub Jelinek  <jakub@redhat.com>
6083         * sysdeps/unix/bsd/ftime.c (ftime): Don't return 1000 in millitm.
6085 2002-03-11  Roland McGrath  <roland@frob.com>
6087         * hurd/hurd/threadvar.h: Include <features.h> for __THROW macro.
6089         * Versions.def (libc): Add GLIBC_2.2.6.
6090         * hurd/Versions (libc: GLIBC_2.2.6): Add __errno_location.
6091         * sysdeps/mach/hurd/errnos.awk: In generated macro, use
6092         __errno_location instead of __hurd_errno_location, and don't inline it.
6093         * sysdeps/mach/hurd/bits/errno.h: Regenerated.
6094         * hurd/errno.c: New file.
6095         * hurd/Makefile (routines): Add errno.
6097 2002-03-11  Ulrich Drepper  <drepper@redhat.com>
6099         * stdio-common/vfprintf.c (vfprintf): Avoid crashing for
6100         ridiculously large widths and precisions [PR libc/3026].
6102 2002-03-11  Andreas Jaeger  <aj@suse.de>
6104         * sysdeps/unix/sysv/linux/s390/ldd-rewrite.sed: Fix for bi-arch
6105         support.
6106         Patch by Susanne Oberhauser <froh@SuSE.de>.
6108 2002-03-11  Ulrich Drepper  <drepper@redhat.com>
6110         * inet/rexec.c (ahostbuf): Define as static.
6112         * wctype/wcfuncs.c (__ctype32_wctype): Declare as hidden.
6113         (__ctype32_wctrans): Likewise.
6114         * wcsmbs/wcwidth.h (__ctype32_width): Declare as hidden.
6115         * ctype/ctype-info.c (__ctype32_wctype): Add attribute_hidden.
6116         (__ctype32_wctrans): Likewise.
6117         (__ctype32_width): Likewise.
6119         * gmon/Makefile (elide-routines.os): Add bb_init_func and bb_exit_func.
6120         They were never exported anyway.
6122         * gmon/gmon.c (_gmonparam): Add attribute_hidden.
6123         * gmon/sys/gmon.h: Remove declaration of _gmonparam.  It wasn't
6124         exported.
6125         * include/sys/gmon.h: Declare _gmonparam.
6127         * sysdeps/unix/sysv/linux/i386/getdents64.c: Don't define compatibility
6128         symbols for getdents64.  They were never exported.
6130 2002-03-09  Roland McGrath  <roland@frob.com>
6132         * hurd/hurdsig.c (write_corefile): Fix swapped arguments to __dir_link.
6133         Reported by Jon Arney <jarney1@cox.net>.
6135 2002-02-23  Roland McGrath  <roland@frob.com>
6137         * hurd/hurd/threadvar.h (__hurd_threadvar_location): Add __THROW to
6138         declaration.
6139         (__hurd_errno_location): Function removed.
6141 2002-03-06  Andreas Jaeger  <aj@suse.de>
6143         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Add compatibility for
6144         32-bit.
6146 2002-03-04  Andreas Jaeger  <aj@suse.de>
6148         * sysdeps/unix/sysv/linux/x86_64/readelflib.c: New.
6150         * sysdeps/unix/sysv/linux/kernel-features.h: Add defines for
6151         x86-64.
6153         * sysdeps/unix/sysv/linux/x86_64/bits/socket.h: New.
6155         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: New.
6157         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: New.
6159         * sysdeps/x86_64/bits/setjmp.h: New.
6161         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h: New.
6163         * sysdeps/unix/sysv/linux/x86_64/bits/resource.h: New.
6165         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Add compatibilty
6166         for x86.
6167         * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Likewise.
6168         * sysdeps/unix/sysv/linux/x86_64/bits/types.h: Likewise.
6170 2002-02-28  Bo Thorsen  <bo@suse.de>
6172         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Merge with i386
6173         version.
6175 2002-03-03  Andreas Jaeger  <aj@suse.de>
6177         * sysdeps/x86_64/bits/wordsize.h: New file.
6179         * elf/nodlopenmod2.c: Provide prototype to avoid warning.
6180         * elf/tst-tlsmod1.c: Likewise.
6182         * posix/regcomp.c: Get regex.h from include dir for internal
6183         prototypes.
6185         * sysdeps/unix/sysv/linux/init-first.c: Move __init_misc prototype
6186         to libc-internal.h and include it.
6187         * include/libc-internal.h: Add __init_misc.
6189         * misc/init-misc.c: Include libc-internal.h for prototypes.
6191         * sysdeps/wordsize-32/divdi3.c: Add prototypes to avoid warnings.
6193         * misc/error.c [_LIBC]: Include libioP.h for prototype of
6194         _IO_putc_internal.
6196 2002-03-03  Ulrich Drepper  <drepper@redhat.com>
6198         * posix/regcomp.c: Compatibility changes to allow using the code
6199         outside glibc.
6201 2002-02-28  Hartvig Ekner <hartvige@mips.com>
6203         * sysdeps/mips/elf/start.S: Added initialization of GP (to _gp) if
6204         compiled non-PIC.
6206 2002-03-02  Ulrich Drepper  <drepper@redhat.com>
6208         * sysdeps/generic/dl-sysdep.c (_dl_important_hwcaps): Fix creation
6209         of .str elements in the returned data structure.
6211         * elf/elf.h: Add Alpha TLS bits.
6213 2002-02-28  Jakub Jelinek  <jakub@redhat.com>
6215         * sysdeps/unix/sysv/linux/nice.c: New file.
6217 2002-03-01  Ulrich Drepper  <drepper@redhat.com>
6219         * elf/Makefile (dl-routines): Add dl-origin.
6220         (elide-routines.os): Add dl-origin.
6221         * elf/Versions [ld] (GLIBC_PRIVATE): Add _dl_get_origin.
6222         * elf/dl-debug.c (_dl_debug_initialize): Add missing INTUSE around
6223         _dl_debug_state.
6224         * include/libc-symbols.c: Define attribute_hidden depending on
6225         HAVE_VISIBILITY_ATTRIBUTE.  Add definition of INTVARDEF.
6227         * elf/dl-deps.c: Use INTUSE with __libc_enable_secure.
6228         * elf/dl-load.c: Likewise.
6229         * elf/rtld.c: Likewise.
6230         * include/unistd.h: Declare __libc_enable_secure_internal.
6231         * sysdeps/generic/dl-sysdep.c: Use INTVARDEF with __libc_enable_secure.
6232         Use INTUSE with __libc_enable_secure.
6233         * sysdeps/mach/hurd/dl-sysdep.c: Likewise.
6235         * elf/dl-deps.c: Use INTUSE with _dl_out_of_memory.
6236         * elf/dl-error.c: Likewise,
6237         * sysdeps/generic/ldsodefs.h: Declare _dl_out_of_memory_internal.
6239         * elf/dl-dst.h [_RTLD_GLOBAL]: Define _dl_get_origin to use INTUSE.
6240         * sysdeps/generic/dl-origin.c: Undefine _dl_get_origin macro before
6241         function definition.  Use INTDEF with _dl_get_origin.
6242         * sysdeps/unix/sysv/linux/dl-origin.c: Likewise.
6244         * elf/dl-init.c: Use INTUSE with _dl_starting_up.
6245         * elf/rtld.c: Likewise.  Use INTVARDEF for _dl_starting_up.
6247         * elf/dl-profile.c: Use INTDEF for _dl_mcount.
6248         * elf/dl-runtime.c: Use INTUSE with _dl_mcount.
6249         * sysdeps/generic/ldsodefs.h: Declare _dl_mcount_internal.
6251         * elf/dl-conflict.c: Use rtld_progrname instead of _dl_argv[0].
6252         * elf/dl-deps.c: Likewise.
6253         * elf/dl-error.c: Likewise.
6254         * elf/dl-fini.c: Likewise.
6255         * elf/dl-init.c: Likewise.
6256         * elf/dl-load.c: Likewise.
6257         * elf/dl-lookup.c: Likewise.
6258         * elf/dl-reloc.c: Likewise.
6259         * elf/dl-version.c: Likewise.
6260         * elf/do-lookup.h: Likewise.
6261         * sysdeps/arm/dl-machine.h: Likewise.
6262         * sysdeps/cris/dl-machine.h: Likewise.
6263         * sysdeps/hppa/dl-machine.h: Likewise.
6264         * sysdeps/i386/dl-machine.h: Likewise.
6265         * sysdeps/m68k/dl-machine.h: Likewise.
6266         * sysdeps/powerpc/dl-machine.h: Likewise.
6267         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
6268         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
6269         * sysdeps/sh/dl-machine.h: Likewise.
6270         * sysdeps/sparc/sparc-32/dl-machine.h: Likewise.
6271         * sysdeps/sparc/sparc-64/dl-machine.h: Likewise.
6272         * sysdeps/x86_64/dl-machine.h: Likewise.
6273         * elf/rtld.c: Use INTDEF for _dl_argv.  Use rtld_progrname instead of
6274         _dl_argv[0].  Use INTUSE with _dl_argv.
6275         * sysdeps/generic/dl-sysdep.c: Use INTUSE with _dl_argv.
6276         * sysdeps/generic/ldsodefs.h: Define rtld_progname macro.
6278 2002-02-28  Jakub Jelinek  <jakub@redhat.com>
6280         * elf/rtld.c (_rtld_global): Remove .protected.
6281         (_rtld_local): Strong alias to _rtld_global.
6282         * elf/Makefile (CFLAGS-.os): Add -D_RTLD_LOCAL if compiling rtld
6283         only .os object.
6284         * sysdeps/generic/ldsodefs.h (GL): If SHARED and _RTLD_LOCAL, use
6285         _rtld_local instead of _rtld_global.
6286         (_rtld_local): Add hidden extern, possibly in .sdata section.
6287         * configure.in: Add tests for visibility attribute and .sdata.
6288         * config.h.in: Add HAVE_VISIBILITY_ATTRIBUTE and HAVE_SDATA_SECTION.
6289         * sysdeps/alpha/dl-machine.h: Use _rtld_local instead of _rtld_global.
6290         * sysdeps/arm/dl-machine.h: Likewise.
6291         * sysdeps/generic/ldsodefs.h: Likewise.
6292         * sysdeps/hppa/dl-machine.h: Likewise.
6293         * sysdeps/cris/dl-machine.h: Likewise.
6294         * sysdeps/i386/dl-machine.h: Likewise.
6295         * sysdeps/ia64/dl-machine.h: Likewise.
6296         * sysdeps/m68k/dl-machine.h: Likewise.
6297         * sysdeps/mips/mips64/dl-machine.h: Likewise.
6298         * sysdeps/mips/dl-machine.h: Likewise.
6299         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
6300         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
6301         * sysdeps/sh/dl-machine.h: Likewise.
6302         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
6303         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
6304         * sysdeps/x86_64/dl-machine.h: Likewise.
6306 2002-02-28  Ulrich Drepper  <drepper@redhat.com>
6308         * login/login.c (login): Always initialize ut_line field
6309         [PR libc/2991].
6311 2002-02-28  Jakub Jelinek  <jakub@redhat.com>
6313         * sysdeps/i386/Makefile (sysdep_routines): Add
6314         divdi3 in csu dir.
6315         (shared-only-routines): Likewise.
6316         * sysdeps/m68k/Makefile (sysdep_routines): Likewise.
6317         (shared-only-routines): Likewise.
6318         * sysdeps/s390/s390-32/Makefile (sysdep_routines): Likewise.
6319         (shared-only-routines): Likewise.
6320         * sysdeps/wordsize-32/divdi3.c: New file.
6322 2002-02-28  Ulrich Drepper  <drepper@redhat.com>
6324         * locale/iso-4217.def: Remove obsolete currencies for countries
6325         with Euro.
6327 2002-02-28  Isamu Hasegawa  <isamu@yamato.ibm.com>
6329         * posix/regcomp.c (regcomp): Remove a redundant condition.
6330         (init_word_char): Add a check on malloc failure.
6331         (create_initial_state): Likewise.
6332         (duplicate_node): Likewise.
6333         (calc_eclosure): Likewise.
6334         (calc_eclosure_iter): Likewise.
6335         (parse_expression): Likewise.
6336         (parse_bracket_exp): Remove unnecessary malloc invocations.
6337         (build_equiv_class): Likewise.
6338         (build_charclass): Likewise.
6339         * posix/regex_internal.c (re_node_set_intersect): Add a check
6340         on malloc failure.
6341         (re_node_set_add_intersect): Likewise.
6342         (re_node_set_merge): Likewise.
6343         (re_acquire_state): Likewise.
6344         (re_acquire_state_context): Likewise.
6345         (create_newstate_common): Likewise.
6346         (register_state): Likewise.
6347         (create_ci_newstate): Likewise.
6348         (create_cd_newstate): Likewise.
6349         * posix/regex_internal.h: Fix prototypes of re_acquire_state
6350         and re_acquire_state_context.
6351         * posix/regexec.c (regexec): Suit it to the error handling of
6352         re_search_internal.
6353         (re_match): Likewise.
6354         (re_search): Likewise.
6355         (re_search_internal): Add a check on malloc failure.
6356         (acquire_init_state_context): Likewise.
6357         (check_matching): Likewise.
6358         (proceed_next_node): Likewise.
6359         (set_regs): Likewise.
6360         (sift_states_backward): Likewise.
6361         (sift_states_iter_bkref): Likewise.
6362         (add_epsilon_backreference): Likewise.
6363         (transit_state): Likewise.
6364         (transit_state_sb): Likewise.
6365         (transit_state_mb): Likewise.
6366         (transit_state_bkref_loop): Likewise.
6367         (build_trtable): Likewise.
6368         (group_nodes_into_DFAstates): Likewise.
6369         (match_ctx_init): Likewise.
6370         (match_ctx_add_entry): Likewise.
6372 2002-02-27  Ulrich Drepper  <drepper@redhat.com>
6374         * elf/dl-load.c (_dl_map_object_from_fd): Always add SONAME to
6375         l_libname if profiling is enabled [PR libc/2916].
6377         * sysdeps/ia64/dl-tls.h: New file.
6379 2002-02-27  Jakub Jelinek  <jakub@redhat.com>
6381         * sysdeps/alpha/dl-machine.h (elf_machine_load_address, RTLD_START):
6382         Work around an Alpha gas bug.
6384 2002-02-27  Ulrich Drepper  <drepper@redhat.com>
6386         * catgets/open_catalog.c (__open_catalog): Fix typo in code which
6387         uses read to load the catalog.
6388         Patch by Andy Isaacson <adi@unlimitedscale.com> [PR libc/3011].
6390 2002-02-26  Ulrich Drepper  <drepper@redhat.com>
6392         * posix/Makefile (distribute): Add regcomp.c, regexec.c,
6393         regex_internal.c, and regex_internal.h.
6394         (CFLAGS-regex.c): Replace -DMBS_SUPPORT with -DRE_ENABLE_I18N.
6395         * posix/regex.c: Complete rewrite.
6396         * posix/regexec.c: New file.
6397         * posix/regcomp.c: New file.
6398         * posix/regex_internal.c: New file.
6399         * posix/regex_internal.h: New file.
6400         * posix/regex.h (RE_ICASE): New macro.
6401         Contributed by Isamu Hasegawa <isamu@yamato.ibm.com>.
6403         * stdio-common/vfscanf.c (_IO_vfwscanf): Always use ungetc, never
6404         ungetwc.  It's a macro.
6405         * libio/tst-swscanf.c (do_test): Adjust for now fixed wscanf
6406         implementation.
6407         Reported by Jason Merrill <jason@redhat.com>.
6409 2002-02-25  Jakub Jelinek  <jakub@redhat.com>
6411         * libio/iofopen.c (__fopen_maybe_mmap): Set the initial
6412         position to fp->_offset if it is set.
6413         * stdio-common/Makefile (tests): Add tst-fdopen.
6414         * stdio-common/tst-fdopen.c: New test.
6416 2002-02-25  Jakub Jelinek  <jakub@redhat.com>
6418         * libio/fileops.c (_IO_file_xsgetn_mmap): Handle reading from backup.
6419         * stdio-common/tst-ungetc.c (main): Add another test.
6421 2002-02-25  Ulrich Drepper  <drepper@redhat.com>
6423         * assert/assert-perr.c: Use INTUSE to reference functions and variables
6424         inside libc itself.  Use INTDEF and INTDEF2 to define appropriate
6425         aliases.  Add prototypes for the new aliases.
6426         * assert/assert.c: Likewise.
6427         * include/libc-symbols.h: Likewise.
6428         * include/stdio.h: Likewise.
6429         * include/netinet/in.h: Likewise.
6430         * include/rpc/auth.h: Likewise.
6431         * include/rpc/auth_unix.h: Likewise.
6432         * include/rpc/key_prot.h: Likewise.
6433         * include/rpc/pmap_prot.h: Likewise.
6434         * include/rpc/pmap_rmt.h: Likewise.
6435         * include/rpc/rpc_msg.h: Likewise.
6436         * include/rpc/xdr.h: Likewise.
6437         * inet/gethstbyad_r.c: Likewise.
6438         * inet/gethstbynm2_r.c: Likewise.
6439         * inet/gethstbynm_r.c: Likewise.
6440         * inet/gethstent_r.c: Likewise.
6441         * inet/in6_addr.c: Likewise.
6442         * libio/__fpurge.c: Likewise.
6443         * libio/filedoalloc.c: Likewise.
6444         * libio/fileops.c: Likewise.
6445         * libio/ftello.c: Likewise.
6446         * libio/ftello64.c: Likewise.
6447         * libio/genops.c: Likewise.
6448         * libio/iofclose.c: Likewise.
6449         * libio/iofdopen.c: Likewise.
6450         * libio/iofflush.c: Likewise.
6451         * libio/iofflush_u.c: Likewise.
6452         * libio/iofgetpos.c: Likewise.
6453         * libio/iofgetpos64.c: Likewise.
6454         * libio/iofgets.c: Likewise.
6455         * libio/iofgets_u.c: Likewise.
6456         * libio/iofopen.c: Likewise.
6457         * libio/iofopncook.c: Likewise.
6458         * libio/iofputs.c: Likewise.
6459         * libio/iofread.c: Likewise.
6460         * libio/iofread_u.c: Likewise.
6461         * libio/iofsetpos.c: Likewise.
6462         * libio/iofsetpos64.c: Likewise.
6463         * libio/ioftell.c: Likewise.
6464         * libio/iofwrite.c: Likewise.
6465         * libio/iogetline.c: Likewise.
6466         * libio/iogets.c: Likewise.
6467         * libio/iogetwline.c: Likewise.
6468         * libio/iolibio.h: Likewise.
6469         * libio/iopadn.c: Likewise.
6470         * libio/iopopen.c: Likewise.
6471         * libio/ioseekoff.c: Likewise.
6472         * libio/ioseekpos.c: Likewise.
6473         * libio/iosetbuffer.c: Likewise.
6474         * libio/iosetvbuf.c: Likewise.
6475         * libio/ioungetc.c: Likewise.
6476         * libio/ioungetwc.c: Likewise.
6477         * libio/iovdprintf.c: Likewise.
6478         * libio/iovsprintf.c: Likewise.
6479         * libio/iovsscanf.c: Likewise.
6480         * libio/libioP.h: Likewise.
6481         * libio/memstream.c: Likewise.
6482         * libio/obprintf.c: Likewise.
6483         * libio/oldfileops.c: Likewise.
6484         * libio/oldiofclose.c: Likewise.
6485         * libio/oldiofdopen.c: Likewise.
6486         * libio/oldiofgetpos.c: Likewise.
6487         * libio/oldiofgetpos64.c: Likewise.
6488         * libio/oldiofopen.c: Likewise.
6489         * libio/oldiofsetpos.c: Likewise.
6490         * libio/oldiofsetpos64.c: Likewise.
6491         * libio/oldiopopen.c: Likewise.
6492         * libio/oldstdfiles.c: Likewise.
6493         * libio/putc.c: Likewise.
6494         * libio/setbuf.c: Likewise.
6495         * libio/setlinebuf.c: Likewise.
6496         * libio/stdfiles.c: Likewise.
6497         * libio/stdio.c: Likewise.
6498         * libio/strops.c: Likewise.
6499         * libio/vasprintf.c: Likewise.
6500         * libio/vscanf.c: Likewise.
6501         * libio/vsnprintf.c: Likewise.
6502         * libio/vswprintf.c: Likewise.
6503         * libio/wfiledoalloc.c: Likewise.
6504         * libio/wfileops.c: Likewise.
6505         * libio/wgenops.c: Likewise.
6506         * libio/wstrops.c: Likewise.
6507         * malloc/mtrace.c: Likewise.
6508         * misc/error.c: Likewise.
6509         * misc/syslog.c: Likewise.
6510         * nss/getXXbyYY_r.c: Likewise.
6511         * nss/getXXent_r.c: Likewise.
6512         * nss/hosts-lookup.c: Likewise.
6513         * stdio-common/getw.c
6514         * stdio-common/printf-prs.c: Likewise.
6515         * stdio-common/printf_fp.c: Likewise.
6516         * stdio-common/printf_size.c: Likewise.
6517         * stdio-common/putw.c: Likewise.
6518         * stdio-common/scanf.c: Likewise.
6519         * stdio-common/sprintf.c: Likewise.
6520         * stdio-common/tmpfile64.c: Likewise.
6521         * stdio-common/vfprintf.c: Likewise.
6522         * stdio-common/vfscanf.c: Likewise.
6523         * stdlib/strfmon.c: Likewise.
6524         * sunrpc/auth_des.c: Likewise.
6525         * sunrpc/auth_none.c: Likewise.
6526         * sunrpc/auth_unix.c: Likewise.
6527         * sunrpc/authdes_prot.c: Likewise.
6528         * sunrpc/authuxprot.c: Likewise.
6529         * sunrpc/clnt_perr.c: Likewise.
6530         * sunrpc/clnt_raw.c: Likewise.
6531         * sunrpc/clnt_tcp.c: Likewise.
6532         * sunrpc/clnt_udp.c: Likewise.
6533         * sunrpc/clnt_unix.c: Likewise.
6534         * sunrpc/key_call.c: Likewise.
6535         * sunrpc/key_prot.c: Likewise.
6536         * sunrpc/openchild.c: Likewise.
6537         * sunrpc/pm_getmaps.c: Likewise.
6538         * sunrpc/pm_getport.c: Likewise.
6539         * sunrpc/pmap_clnt.c: Likewise.
6540         * sunrpc/pmap_prot.c: Likewise.
6541         * sunrpc/pmap_prot2.c: Likewise.
6542         * sunrpc/pmap_rmt.c: Likewise.
6543         * sunrpc/rpc_cmsg.c: Likewise.
6544         * sunrpc/rpc_prot.c: Likewise.
6545         * sunrpc/svc_authux.c: Likewise.
6546         * sunrpc/svc_raw.c: Likewise.
6547         * sunrpc/svc_simple.c: Likewise.
6548         * sunrpc/svc_tcp.c: Likewise.
6549         * sunrpc/svc_udp.c: Likewise.
6550         * sunrpc/svc_unix.c: Likewise.
6551         * sunrpc/xdr.c: Likewise.
6552         * sunrpc/xdr_array.c: Likewise.
6553         * sunrpc/xdr_mem.c: Likewise.
6554         * sunrpc/xdr_rec.c: Likewise.
6555         * sunrpc/xdr_ref.c: Likewise.
6556         * sunrpc/xdr_stdio.c: Likewise.
6557         * sysdeps/generic/_strerror.c: Likewise.
6558         * sysdeps/generic/printf_fphex.c: Likewise.
6559         * sysdeps/generic/tmpfile.c: Likewise.
6560         * sysdeps/gnu/errlist.awk: Likewise.
6561         * sysdeps/gnu/errlist.c: Likewise.
6563         * libio/Makefile (routines): Remove iosprint.
6564         * libio/iosprintf.c: Removed
6567 2002-02-24  Ulrich Drepper  <drepper@redhat.com>
6569         * elf/dl-support.c (_dl_non_dynamic_init): Renamed from
6570         non_dynamic_init and exported now.
6571         * sysdeps/unix/sysv/linux/ldsodefs.h: Declare _dl_non_dynamic_init.
6572         * sysdeps/unix/sysv/linux/init-first.c: Call _dl_non_dynamic_init for
6573         !SHARED.
6574         * sysdeps/mach/hurd/i386/init-first.c: Likewise.
6575         * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
6576         * sysdeps/mach/hurd/mips/init-first.c: Likewise.
6578 2002-02-23  Ulrich Drepper  <drepper@redhat.com>
6580         * elf/dl-close.c (free_slotinfo): Check for end of list and return
6581         true in this case.
6583         * locale/iso-639.def: Add language codes for Walloon.
6585         * elf/dl-fini.c (_dl_fini): Print some final statistics on the
6586         total number of relocations performed.
6588         * elf/sprof.c (load_profdata): If do_test provide information as
6589         to why loading failed.
6590         * elf/dl-profile.c (_dl_start_profile): Initialize all of
6591         hist_hdr.dimen.
6593         * csu/set-init.c: Moved to...
6594         * sysdeps/mach/hurd/set-init.c: ...here.  New file.
6595         * csu/Makefile: Don't compile set-init.
6596         * sysdeps/mach/hurd/Makefile: Compile set-init for subdir csu.
6597         * sysdeps/mach/hurd/i386/init-first.c: Call __init_misc in addition
6598         to __libc_init.
6599         * sysdeps/mach/hurd/mips/init-first.c: Likewise.
6600         * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
6601         * sysdeps/unix/sysv/linux/init-first.c: Call __init_misc instead of
6602         __libc_init.
6603         * misc/init-misc.c: Always export __init_misc.  Don't define hooks for
6604         __libc_subinit.
6606 2002-02-22  Ulrich Drepper  <drepper@redhat.com>
6608         * elf/Versions: Add _dl_allocate_tls and _dl_deallocate_tls.
6609         * elf/rtld.c (dl_main): Use _dl_allocate_tls with INTUSE.
6610         * sysdeps/generic/dl-tls.c: Add INTDEF for _dl_allocate_tls.
6611         (_dl_deallocate_tls): New function.
6612         * sysdeps/generic/ldsodefs.h: Declare _dl_allocate_tls_internal and
6613         _dl_deallocate_tls.
6615 2002-02-21  Jakub Jelinek  <jakub@redhat.com>
6617         * libio/fileops.c (_IO_file_seekoff_mmap): Fix fseek SEEK_END.
6618         * stdio-common/tst-fseek.c (main): Add test for this.
6620 2002-02-19  Ulrich Drepper  <drepper@redhat.com.>
6622         * stdlib/Versions: Move __on_exit to GLIBC_PRIVATE.
6624 2002-02-19  Jakub Jelinek  <jakub@redhat.com>
6626         * libio/fileops.c (_IO_file_underflow_mmap): Cast to unsigned char
6627         pointer before dereferencing.
6629 2002-02-18  Roland McGrath  <roland@frob.com>
6631         * sysdeps/mach/hurd/times.c: Fix typo in last change.
6633         * sysdeps/mach/hurd/setpriority.c [POLICY_TIMESHARE_BASE_COUNT]:
6634         Use task_policy in place of task_priority.
6636         * sysdeps/generic/bits/mman.h
6637         (MS_ASYNC, MS_SYNC, MS_INVALIDATE): New macros.
6638         * sysdeps/mach/msync.c: New file.
6640         * sysdeps/mach/powerpc/syscall.S: New file.
6642         * mach/msg.c [MACH_MSG_OVERWRITE]
6643         (__mach_msg_trap, __mach_msg_overwrite): New functions.
6644         * mach/Versions (libc: GLIBC_2.0): Add mach_msg_overwrite and __ name.
6646         * sysdeps/mach/configure.in: Check for clock.defs to put into
6647         mach_interface_list.
6648         * sysdeps/mach/configure: Regenerated.
6650         * mach/Makefile (mach-machine): New variable, set from $(base-machine).
6651         ($(objpfx)mach-syscalls.mk): Use it in place of $(base-machine).
6652         ($(mach-syscalls:%=$(objpfx)%.S) static pattern rule):
6653         Use <mach/machine/syscall_sw.h> instead of <sysdep.h>.
6654         (mach-shortcuts): Add device_read_overwrite_request,
6655         device_read_overwrite, vm_read_overwrite, thread_switch.
6657         * configure.in (base_machine): Set to $machine by default.
6658         * configure: Regenerated.
6660         * sysdeps/mach/configure.in: Check for <mach/machine/ndr_def.h>
6661         or <machine/ndr_def.h> and add -DNDR_DEF_HEADER=... to DEFINES.
6662         * sysdeps/mach/configure: Regenerated.
6663         * mach/mach_init.c [NDR_DEF_HEADER]: #include it.
6665         * hurd/hurdfault.c (_hurdsig_fault_init): Add a cast.
6667         * hurd/hurd/signal.h: Include <setjmp.h> for `jmp_buf' decl.
6669         * mach/msgserver.c (__mach_msg_server_timeout) [! MACH_RCV_LARGE]:
6670         Double MAX_SIZE and don't retry on MACH_RCV_TOO_LARGE.
6672 2002-02-17  Roland McGrath  <roland@frob.com>
6674         * sysdeps/mach/hurd/times.c
6675         [NO_CREATION_TIME] (startup_time): New static variable.
6676         [NO_CREATION_TIME] (times_init): New static function in __libc_subinit.
6677         (__times) [NO_CREATION_TIME]: Use startup_time in lieu of task
6678         creation_time from task_basic_info.
6679         (__times): Use __gettimeofday instead of __host_get_time.
6681         * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg) [! MACH_MSG_TYPE_BIT]:
6682         Use untyped Mach IPC message format.
6684         * hurd/catch-exc.c: Include <assert.h>, missing from last change.
6686         * hurd/Versions (libc: GLIBC_2.0): Add _S_catch_exception_raise_state,
6687         _S_catch_exception_raise_state_identity,
6688         _hurdsig_fault_catch_exception_raise_state,
6689         _hurdsig_fault_catch_exception_raise_state_identity.
6691         * mach/shortcut.awk: Don't apply the /^}$/ rule when $proto == "".
6693         * sysdeps/mach/getsysstats.c (__get_avphys_pages) [HOST_VM_INFO]: Use
6694         __host_info with HOST_VM_INFO flavor instead of __vm_statistics.
6696         * sysdeps/mach/hurd/getpriority.c [TASK_SCHED_TIMESHARE_INFO]: Find
6697         `base_priority' in PIP->timeshare_base_info instead of PIP->taskinfo.
6699         * sysdeps/mach/hurd/dl-sysdep.c [FMH]: Define for i386 only.
6700         (fmh, unfmh): Define these functions only #if FMH.  Otherwise define
6701         them as no-op macros.
6702         [FMH] (ELF_MACHINE_USER_ADDRESS_MASK): Redefine it to zero.
6703         (__mmap): Uncomment uses of ELF_MACHINE_USER_ADDRESS_MASK.
6705         * sysdeps/powerpc/dl-machine.h
6706         (ELF_MACHINE_USER_ADDRESS_MASK): New macro.
6708         * hurd/hurdselect.c (_hurd_select) [MACH_MSG_TRAILER_MINIMUM_SIZE]:
6709         Use untyped Mach IPC message format.
6711         * sysdeps/mach/hurd/ioctl.c (__ioctl) [! MACH_MSG_TYPE_BIT]:
6712         Handle untyped Mach IPC message formats.
6714         * hurd/catch-exc.c (_S_catch_exception_raise) [EXC_MASK_ALL]:
6715         Expect different argument conventions when this is defined.
6716         [EXC_MASK_ALL] (_S_catch_exception_raise_state): New stub function.
6717         [EXC_MASK_ALL] (_S_catch_exception_raise_state_identity): Likewise.
6718         * hurd/hurdfault.c: Likewise for _hurdsig_fault_catch_exception_*.
6719         [NDR_CHAR_ASCII] (mig_reply_header_t): #define as mig_reply_error_t
6720         for OSF Mach variant.
6721         (faulted): Use mig_reply_error_t for REPLY.
6722         (_hurdsig_fault_init) [EXC_MASK_ALL]: Use EXCEPTION_STATE_IDENTITY
6723         in __thread_set_exception_ports call.
6724         (_hurdsig_fault_init) [MACH_PORT_RECEIVE_STATUS]: Use
6725         __mach_port_set_attributes in place of __mach_port_set_qlimit.
6727         * sysdeps/mach/powerpc/sysdep.h (_MACH_MACHINE_ASM_H): Define this
6728         before include <sysdeps/mach/sysdep.h>, to inhibit <mach/machine/asm.h>
6729         on Darwin, which includes bogons.
6731         * sysdeps/powerpc/dl-machine.h (elf_machine_rela): Move local
6732         variable LOADBASE so it's not declared when it's not used.
6734 2002-02-16  Roland McGrath  <roland@frob.com>
6736         * sysdeps/mach/hurd/times.c (__times) [NO_CREATION_TIME]: Don't try
6737         to use BI.creation_time.
6739         * mach/Machrules (MIG): Add -x c to CPP value passed down.
6741         * config.h.in: Add #undef HAVE_HOST_PAGE_SIZE.
6742         * sysdeps/mach/configure.in: Check for host_page_size RPC to define it.
6743         * mach/mach_init.c (__mach_init) [HAVE_HOST_PAGE_SIZE]: Use
6744         host_page_size instead of vm_statistics.
6746         * sysdeps/mach/Makefile (mach-before-compile): Don't include
6747         mach_interface.h here, since not all variants use that name.
6749         * sysdeps/mach/configure.in: Add some checks for Mach headers
6750         to ensure a sane installation.
6751         (mach_interface_list): Define this variable by checking for .defs
6752         files found in various variants.
6753         * configure.in (mach_interface_list): AC_SUBST this.
6754         * config.make.in (mach-interface-list): New substituted variable.
6755         * mach/Makefile (user-interfaces): Define this using the value
6756         of $(mach-interface-list) instead of mach, mach4.
6757         Updated other references to mach_interface to use it as well.
6759         * sysdeps/mach/powerpc/machine-lock.h: Avoid multi-line strings.
6761         * mach/msgserver.c [NDR_CHAR_ASCII] (mig_reply_header_t): #define as
6762         mig_reply_error_t for OSF Mach variant.
6764         * mach/Makefile (routines): Remove bootprivport.
6765         * mach/bootprivport.c: File removed.  It has never been used.
6767         * mach/msg-destroy.c (__mach_msg_destroy) [MACH_MSG_PORT_DESCRIPTOR]:
6768         Grok the OSF flavor of message format.
6769         (mach_msg_destroy_port): For MAKE_SEND and
6770         MAKE_SEND_ONCE rights, create an destroy a right to ensure proper
6771         no-senders notification.
6773 2002-02-06  Roland McGrath  <roland@frob.com>
6775         * hurd/Versions (libc: GLIBC_2.0): Move cthread_fork, cthread_detach
6776         to here if 2.0 compatibility enabled ...
6777         (libc: GLIBC_2.1.3): ... from here.
6779 2002-02-15  Ulrich Drepper  <drepper@redhat.com>
6781         * elf/dl-open.c (dl_open_worker): Catch wrap-around of TLS
6782         generation counter.
6783         * elf/dl-close.c (_dl_close): Likewise.
6785 2002-02-14  Ulrich Drepper  <drepper@redhat.com>
6787         * elf/Makefile: Add rules to build and run tst-tls8.
6788         * elf/tst-tls8.c: New file.
6789         * elf/tst-tlsmod4.c: New file.
6791         * stdlib/test-a64l.c (tests): Add more test cases.
6793         * sunrpc/rtime.c (rtime): Change type of thetime to uint32_t.
6794         Reported by Walter Harms <WHarms@bfs.de>.
6796 2002-02-11  Jes Sorensen  <jes@trained-monkey.org>
6798         * sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h: Add sc_flag bit
6799         definitions for struct sigcontext.
6800         Suggested by David Mosberger-Tang.
6802 2002-02-13  Ulrich Drepper  <drepper@redhat.com>
6804         * elf/dl-close.c (remove_slotinfo): New function.  Handles everything
6805         for removing reference of module in slotinfo list.
6806         (_dl_close): Use remove_slotinfo.
6807         * sysdeps/generic/dl-tls.c: General pretty printing.
6808         (oom): Define only if SHARED.
6809         (_dl_next_tls_modid): Correct starting point for the case we assume
6810         there is a gap.  Add missing instruction grouping (doh!).  Correct
6811         tests for reaching maximum index.
6812         * elf/Makefile: Add rules to build and run tst-tls7.
6813         * elf/tst-tls7.c: New file.
6814         * elf/tst-tlsmod3.c: New file.
6816         * elf/tst-tlsmod1.c: Move #include "tls-macros.h" instead #ifdef
6817         USE_TLS.
6818         * elf/tst-tlsmod2.c: Likewise.
6820         * elf/dl-close.c (_dl_close): When closing an object using TLS
6821         either decrement dl_tls_max_dtv_idx or set dl_tls_dtv_gaps to
6822         true.  Increment dl_tls_generation only if we closed any TLS-using
6823         object.
6824         * elf/tst-tls6.c: New file.
6825         * elf/Makefile: Add rules to build and run tst-tls6.
6827         * po/da.po: Update from translation team.
6829         * locale/categories.def: Fix typo [PR libc/2948].
6830         * po/Makefile (BROKEN_LINGUAS): Works with current gettext
6831         [PR libc/2949].
6832         * locale/iso-4217.def: Update from official version [PR libc/2950].
6833         * glibcbug.in: Honor TMPDIR [PR libc/2951].
6834         * locale/programs/ld-collate.c (collate_finish): Bail out with a
6835         message if input is too confusion instead of using assert.
6836         (collate_read): Don't crash on unknown symbol [PR libc/2952].
6837         Patches by Alastair McKinstry <alastair@pdd.3com.com>.
6839         * elf/tst-tls1.c: Move #include "tls-macros.h" instead #ifdef USE_TLS.
6840         * elf/tst-tls2.c: Likewise.
6841         * elf/tst-tls3.c: Likewise.
6843 2002-02-13  Jakub Jelinek  <jakub@redhat.com>
6845         * elf/dl-close.c (free_slotinfo): Only define if TLS supported.
6847 2002-02-13  Ulrich Drepper  <drepper@redhat.com>
6849         * elf/dl-open.c (dl_open_worker): Only bump the generation counter
6850         if this is really necessary.
6852         * elf/dl-close.c (_dl_close): Implement freeing entries in the
6853         slotinfo array.
6854         (free_mem): Free memory for the slotinfo array if possible.
6856 2002-02-12  Andreas Schwab  <schwab@suse.de>
6858         * csu/gmon-start.c (__gmon_start__): Remove '&' from ENTRY_POINT.
6860 2002-02-12  Ulrich Drepper  <drepper@redhat.com>
6862         * sysdeps/generic/dl-tls.c (TLS_DTV_UNALLOCATED): Renamed from
6863         TLS_DTV_UNALLOCATE.
6864         (oom): New function.
6865         (_dl_next_tls_modid): Rewrite to handle dl_tls_dtv_slotinfo_list.
6866         (_dl_determine_tlsoffset): Likewise.
6867         (_dl_allocate_tls): Likewise.
6868         (__TLS_GET_ADDR): Define if not already defined.
6869         (_dl_tls_symaddr): New function.
6870         (allocate_and_init): New function.
6871         (__tls_get_addr): Actually implement handling of generation counter
6872         and deferred allocation.
6873         * sysdeps/generic/ldsodefs.h (_rtld_global): Remove _dl_initimage_list,
6874         add _dl_tls_dtv_slotinfo_list, _dl_tls_static_nelem, and
6875         _dl_tls_generation.
6876         Define TLS_SLOTINFO_SURPLUS and DTV_SURPLUS.
6877         Declare _dl_tls_symaddr.
6878         * sysdeps/i386/dl-tls.h: Disable __tls_get_addr handling unless
6879         SHARED.
6880         * include/link.h (struct link_map):  Remove l_tls_nextimage and
6881         l_tls_previmage.
6882         * elf/dl-sym.c (_dl_sym): After successful lookup call _dl_tls_symaddr
6883         instead of DL_SYMBOL_ADDRESS for STT_TLS symbols.
6884         (_dl_vsym): Likewise.
6885         * elf/rtld.c (_dl_start_final): Adjust initdtv initialization for new
6886         layout.
6887         (dl_main): Allow PT_TLS be present for empty segment.  Remove
6888         nextimage list handling.  Instead add all modules using TLS to
6889         dl_tls_dtv_slotinfo_list.
6890         * elf/dl-open.c (dl_open_worker): After successfully loading all
6891         objects add those with TLS to the dl_tls_dtv_slotinfo_list list.
6892         * elf/dl-load.c (_dl_map_object_from_fd): If PT_TLS entry is for an
6893         empty segment don't do anything.  Remove handling of initimage list.
6894         * elf/Versions [ld] (GLIBC_2.0): Add __libc_memalign.
6895         (GLIBC_PRIVATE): Add _dl_tls_symaddr.
6896         * elf/dl-minimal.c: Define __libc_memalign.
6897         * elf/dl-support.c: Remove _dl_initimage_list.  Add
6898         _dl_tls_dtv_slotinfo_list, _dl_tls_static_nelem, and
6899         _dl_tls_generation.
6900         * include/stdlib.h: Declare __libc_memalign.
6902         * elf/Makefile: Add rules to build and run tst-tls4 and tst-tls5.
6903         * elf/tst-tls4.c: New file.
6904         * elf/tst-tls5.c: New file.
6905         * elf/tst-tlsmod2.c: New file.
6907         * elf/tls-macros.h: asms using ___tls_get_addr destroy %ecx and %edx.
6909         * elf/tst-tlsmod1.c: Don't define variables unles USE_TLS.
6911         * elf/tst-tls1.c: Use test-skeleton.c.
6912         * elf/tst-tls2.c: Likewise.
6913         * elf/tst-tls3.c: Likewise.
6915         * elf/dl-conflict.c (RESOLVE_MAP): Return NULL not 0.
6917 2002-02-08  Daniel Jacobowitz  <drow@mvista.com>
6919         * sysdeps/mips/machine-gmon.h: Update MCOUNT for current GCC behavior.
6921 2002-02-10  Ulrich Drepper  <drepper@redhat.com>
6923         * elf/elf.h: Define R_386_TLS_GD and R_386_TLS_LDM.
6925         * elf/tst-tls3.c: New file.
6926         * elf/tst-tlsmod1.c: New file.
6927         * elf/Makefile: Add rules to build and run tst-tls3.
6929         * sysdeps/i386/dl-machine.h: Include <tls.h>.
6930         (elf_machine_type_class): Set ELF_RTYPE_CLASS_PLT also for the three
6931         TLS relocations.
6933         * elf/do-lookup.h (FCT): st_value can be zero for STT_TLS symbols.
6935         * po/fr.po: Update from translation team.
6937         * elf/tls-macros.h: Add alternative macros for use in PIC.
6939         * elf/dl-lookup.c: Include <tls.h>.
6940         * elf/do-lookup.h (FCT): Don't discard STT_TLS symbols.
6942         * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): More changes
6943         required by passing pointer to last element of the list.
6945         * elf/dl-load.c (_dl_map_object_from_fd): Move adjustment of
6946         l_tls_initimage to a place where it actually is performed.
6948         * sysdeps/generic/glob.c (glob): Explicitly set gl_pathc to zero
6949         after globfree() calls.
6951         * elf/dl-deps.c (struct openaux_args): Add open_mode element.
6952         (openaux): Pass open_mode as new last argument to _dl_map_object.
6953         (_dl_map_object_deps): Add new argument open_mode.  Initialize
6954         open_mode element of args variable with it.
6955         * elf/dl-open.c (dl_open_worker): Pass __RTLD_DLOPEN flag is set to
6956         _dl_map_object_deps.
6957         * elf/rtld.c (dl_main): Add zero as last parameter to
6958         _dl_map_object_deps call.
6959         * sysdeps/generic/ldsodefs.h: Adjust prototype of _dl_map_object_deps.
6960         * elf/nodlopen2.c: New file.
6961         * elf/nodlopenmod2.c: New file.
6962         * elf/Makefile: Add rules to build and run nodlopen2.
6964         * elf/tst-tls1.c: Move TLS helper macros to...
6965         * elf/tls-macros.h: ...here.  New file.
6966         * elf/tst-tls2.c: New file.
6967         * elf/Makefile (tests): Add tst-tls2.
6968         (distribute): Add tls-macros.h.
6970         * po/sv.po: Update from translation team.
6972         * elf/tst-tls1.c (main): Add complete set of tests.  Split
6973         architecture specific definitions from the actual test code.
6975         * po/tr.po: Update from translation team.
6977 2002-02-09  Ulrich Drepper  <drepper@redhat.com>
6979         * elf/Makefile (tests): Add tst-tls1.
6980         * elf/tst-tls1.c: New file.
6982         * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): Don't handle
6983         alignment of TCB for now.
6985         * elf/rtld.c (dl_main): Use p_vaddr as address of TLS
6986         initialization image for the application itself.
6988         * sysdeps/generic/dl-tls.c (_dl_allocate_tls): Correctly terminate
6989         loop to initialize TLS block.
6991 2002-02-08  Richard Henderson  <rth@redhat.com>
6993         * sysdeps/generic/ldsodefs.h (struct rtld_global): Also include
6994         _dl_cpuclock_offset if HP_SMALL_TIMING_AVAIL.
6996         * sysdeps/alpha/elf/initfini.c: Use \n\ for multiline string.
6998 2002-02-09  Jakub Jelinek  <jakub@redhat.com>
7000         * sysdeps/generic/dl-environ.c (unsetenv): Clear cnt before use.
7002 2002-02-08  Ulrich Drepper  <drepper@redhat.com>
7004         * po/ca.po: Update from translation team.
7005         * po/sk.po: Likewise.
7007         * elf/rtld.c (_dl_start_final): Install DTV explicitly.
7008         (dl_main): Move dtv/static TLS handling before relocation.
7009         Unconditionally call _dl_tlsoffset.  Call _dl_allocate_tls and
7010         TLS_INIT_TP to allocate and install the dtv/static TLS block.
7011         * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): If no object
7012         so far uses TLS initialize GL(dl_tls_static_size) and
7013         GL(dl_tls_static_align) to account for the TCB.
7014         (_dl_allocate_tls): New function.
7015         * sysdeps/generic/ldsodefs.h (rtld_global): Add
7016         _dl_initial_dtv_malloced.
7018         * configure.in: Test for __builtin_memset more realistically.
7020         * csu/version.c (banner): If TLS support is available say so.
7022 2002-02-04  H.J. Lu  <hjl@gnu.org>
7024         * sysdeps/mips/dl-machine.h (elf_machine_matches_host): Use
7025         __attribute_used__.
7026         (__dl_runtime_resolve): Likewise.
7028         * sysdeps/mips/machine-gmon.h (_MCOUNT_DECL): Make it a real
7029         declaration.
7031 2001-11-15  H.J. Lu  <hjl@gnu.org>
7033         * sysdeps/unix/sysv/linux/mips/sys/procfs.h: Don't include
7034         <signal.h>, <sys/ucontext.h> nor <asm/elf.h>. Updated for gdb.
7036         * sysdeps/unix/sysv/linux/mips/sys/user.h: New.
7038 2002-02-07  H.J. Lu  <hjl@gnu.org>
7040         * sysdeps/mips/atomicity.h (compare_and_swap): Remove
7041         ".set noreorder".
7042         * sysdeps/unix/sysv/linux/mips/sys/tas.h (_test_and_set):
7043         Likewise.
7045 2002-02-07  Ulrich Drepper  <drepper@redhat.com>
7047         * sysdeps/unix/sysv/linux/bits/stat.h: Undo last patch.
7049         * sysdeps/i386/dl-tls.h (__tls_get_addr): Call
7050         ___tls_get_addr_internal.
7051         (___tls_get_addr_internal): Define as alias for ___tls_get_addr.
7053         * po/ko.po: Update from translation team.
7055 2002-02-07  Jakub Jelinek  <jakub@redhat.com>
7057         * sysdeps/unix/sysv/linux/bits/stat.h (struct stat): Remove packed
7058         attribute, change __pad{1,2} type to unsigned int.
7059         (struct stat64): Remove packed attribute.
7061 2002-02-07  Ulrich Drepper  <drepper@redhat.com>
7063         * sysdeps/i386/dl-tls.h: No need for #ifdef USE_TLS.
7065 2002-02-07  Andreas Schwab  <schwab@suse.de>
7067         * configure.in: Fix check for -zcombreloc.
7069 2002-02-06  H.J. Lu  <hjl@gnu.org>
7071         * config.h.in (HAVE_BUILTIN_MEMSET): New.
7072         * configure.in: Check if __builtin_memset really works.
7073         * elf/rtld.c (_dl_start): Check HAVE_BUILTIN_MEMSET instead of
7074         __GNUC_PREREQ (2, 96) before using __builtin_memset.
7076 2002-02-06  Jakub Jelinek  <jakub@redhat.com>
7078         * io/bug-ftw3.c (main): Don't try the test if root.
7080 2002-02-06  Martin Schwidefsky  <schwidefsky@de.ibm.com>
7082         * sysdeps/unix/sysv/linux/s390/brk.c (__brk): Correct inline assembly
7083         constraints.
7084         * sysdeps/unix/sysv/linux/s390/s390-32/bits/resource.h (RLIMIT_LOCKS):
7085         Add RLIMIT_LOCKS and adjust RLIMIT_NLIMITS.
7086         * sysdeps/unix/sysv/linux/s390/s390-64/bits/resource.h (RLIMIT_LOCKS):
7087         Likewise.
7088         * sysdeps/unix/sysv/linux/s390/s390-32/clone.S (clone): Make clone
7089         a weak alias for __clone.
7090         * sysdeps/unix/sysv/linux/s390/s390-64/clone.S (clone): Likewise.
7091         * sysdeps/unix/sysv/linux/s390/s390-32/profil-counter.h: Fix typo.
7092         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile: Add framestate.
7093         * sysdeps/unix/sysv/linux/s390/s390-64/Versions: New file.
7094         * sysdeps/unix/sysv/linux/s390/s390-64/mmap.S (__mmap64): Make __mmap
7095         a weak alias for __mmap64.
7097 2002-02-05  H.J. Lu  <hjl@gnu.org>
7099         * sysdeps/mips/atomicity.h (exchange_and_add): Not use branch likely.
7100         (atomic_add): Likewise.
7101         (compare_and_swap): Likewise.
7102         * sysdeps/unix/sysv/linux/mips/sys/tas.h (_test_and_set): Likewise.
7104 2002-02-07  Ulrich Drepper  <drepper@redhat.com>
7106         * sysdeps/generic/dl-tls.c: Don't read TLS header if TLS is not needed.
7108         * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): Account for
7109         alignment of the TCB and store total size and alignment of static
7110         TLS block in _dl_tls_static_size and _dl_tls_static_align.
7111         tls_index is a typedef.
7112         * sysdeps/generic/ldsodefs.h: Declare _dl_tls_static_size and
7113         _dl_tls_static_align.
7114         * sysdeps/i386/dl-tls.h: tls_index is a typedef.
7115         * elf/dl-support.c: Define _dl_tls_static_size and
7116         _dl_tls_static_align.
7118 2002-02-06  Ulrich Drepper  <drepper@redhat.com>
7120         * configure.in: Add --without-tls option.
7121         * sysdeps/i386/elf/configure.in: Don't check for TLS support if
7122         --without-tls is given.
7124         * sysdeps/generic/dl-tls.c: Include <tls.h>.
7126         * sysdeps/i386/dl-tls.h: Don't define anything if !USE_TLS.
7128 2002-02-06  Roland McGrath  <roland@frob.com>
7130         * malloc/hooks.c [! HAVE_MREMAP]: Conditionalize unused decls.
7131         * malloc/malloc.c [! HAVE_MREMAP]: Likewise.
7133         * scripts/versions.awk: Improve error message for missing version.
7134         Each version inherits from the last one only if they have the same
7135         nonnumeric prefix, i.e. GLIBC_x.y and GLIBC_x.z or FOO_x and FOO_y
7136         but not GLIBC_x and FOO_y.
7138         * scripts/firstversions.awk: Handle libraries that don't have each
7139         particular version named in the third column of shlib-versions.
7141         * scripts/firstversions.awk: Don't mess with GLIBC_PRIVATE.
7143 2002-02-06  Ulrich Drepper  <drepper@redhat.com>
7145         * Versions.def [ld]: Add GLIBC_2.3.
7146         * elf/Versions [ld]: Add __tls_get_addr to GLIBC_2.3.
7147         * elf/Makefile (dl-routines): Add dl-tls.
7148         (distribute): Add dl-tls.h.
7149         * sysdeps/generic/ldsodefs.h (struct rtld_global): Remove
7150         _dl_tls_module_cnt, add _dl_tls_max_dtv_idx and _dl_tls_dtv_gaps.
7151         Add prototypes for _dl_next_tls_modid and _dl_determine_tlsoffset.
7152         * elf/dl-load.c (_dl_map_object_from_fd): Store alignment requirement
7153         along with the other info in the link map.  Change queueing of init
7154         images for double linked list.  Use _dl_next_tls_modid to compute
7155         l_tls_modid.
7156         * elf/rtld.c (_dl_start_final): Store alignment requirement
7157         along with the other info in rtld map and executable map.
7158         (dl_main): Add ld.so to the init image list if necessary.  Compute
7159         final module ID with _dl_next_tls_modid.
7160         * include/link.h (struct link_map): Add l_tls_previmage and
7161         l_tls_align.
7162         * eld/dl-support.c: Define _dl_tls_max_dtv_idx and _dl_tls_dtv_gaps.
7163         * sysdeps/i386/elf/Versions: New file.
7164         * sysdeps/generic/dl-tls.c: New file.
7165         * sysdeps/generic/dl-tls.h: New file.
7166         * sysdeps/i386/dl-tls.h: New file.
7168 2002-02-06  Roland McGrath  <roland@frob.com>
7170         * sysdeps/unix/sysv/linux/netinet/ip.h: Moved to ...
7171         * sysdeps/generic/netinet/ip.h: ... here, replacing old file.
7173 2002-01-05  Roland McGrath  <roland@frob.com>
7175         * sysdeps/mach/configure.in: New file.
7176         * sysdeps/mach/configure: New generated file.
7178         * mach/Makefile (user-interfaces): Remove default_pager_helper.
7179         It has never been used by anything.
7181 2002-02-06  H.J. Lu  <hjl@gnu.org>
7183         * sysdeps/mips/elf/ldsodefs.h: Make sure the right <ldsodefs.h>
7184         is included.
7186 2002-02-06  Ulrich Drepper  <drepper@redhat.com>
7188         * sysdeps/unix/sysv/linux/bits/stat.h (struct stat): Add
7189         attribute((packed)) to counter stupid people misusing gcc options.
7190         (struct stat64): Likewise.
7192 2002-02-05  Ulrich Drepper  <drepper@redhat.com>
7194         * elf/rtld.c (dl_main): Correct indentation.  Use bool as type for
7195         the variables which are used as booleans.
7197 2002-02-06  Andreas Jaeger  <aj@suse.de>
7199         * include/libc-symbols.h (INTUSE): Renamed from INT.
7200         * elf/dl-deps.c: Change users.
7201         * sysdeps/generic/dl-sysdep.c: Likewise.
7202         * sysdeps/generic/dl-cache.c: Likewise.
7203         * elf/dl-reloc.c: Likewise.
7204         * elf/rtld.c: Likewise.
7205         * elf/dl-version.c: Likewise.
7206         * elf/dl-load.c: Likewise.
7207         * elf/dl-dst.h: Likewise.
7208         * elf/dl-init.c: Likewise.
7209         * elf/dl-error.c: Likewise.
7210         * elf/dl-fini.c: Likewise.
7211         * elf/dl-runtime.c: Likewise.
7212         * elf/do-lookup.h: Likewise.
7214         * stdio-common/_itoa.h: Undefine SPECIAL to avoid duplicate
7215         definition.
7216         * stdio-common/_itowa.h: Likewise.
7218 2002-02-05  Ulrich Drepper  <drepper@redhat.com>
7220         * elf/dl-minimal.c: Define _itoa_lower_digits.
7222         * elf/dynamic-link.h (elf_get_dynamic_info): ld.so can have
7223         DT_FLAGS set.
7225         * elf/dl-load.c (_dl_map_object_from_fd): Prevent dynamically
7226         loading modules with the DF_STATIC_TLS flag set.
7227         * elf/dynamic-link.h (elf_get_dynamic_info): Initialize l_flags
7228         element.
7229         * include/link.h (struct link_map): Add l_flags field.
7230         * elf/elf.h (DF_STATIC_TLS): New definition.
7232         * dlfcn/Makefile: Add rules to build and run bug-dlopen1.
7233         * dlfcn/bug-dlopen1.c: New file.  By Bruno Haible.
7235         * elf/rtld.c (process_dl_debug): Correct printing help message.
7236         * elf/dl-misc.c (_dl_debug_vdprintf): Implement precision handling
7237         for %s.
7239         * inet/getnetgrent_r.c (innetgr): Add int* parameter to getfct
7240         definition and pass &errno in use of this variable.
7241         Reported by Simon Wilkinson <simon@sxw.org.uk> [PR libc/2911].
7243 2002-02-04  Andreas Schwab  <schwab@suse.de>
7245         * locale/programs/localedef.h (WITH_CUR_LOCALE): Define.
7246         * locale/programs/charmap-dir.c: Wrap calls that output messages
7247         with WITH_CUR_LOCALE.  Include "localedef.h" first.
7248         * locale/programs/charmap.c: Likewise.
7249         * locale/programs/ld-address.c: Likewise.
7250         * locale/programs/ld-collate.c: Likewise.
7251         * locale/programs/ld-ctype.c: Likewise.
7252         * locale/programs/ld-identification.c: Likewise.
7253         * locale/programs/ld-measurement.c: Likewise.
7254         * locale/programs/ld-messages.c: Likewise.
7255         * locale/programs/ld-monetary.c: Likewise.
7256         * locale/programs/ld-name.c: Likewise.
7257         * locale/programs/ld-numeric.c: Likewise.
7258         * locale/programs/ld-paper.c: Likewise.
7259         * locale/programs/ld-telephone.c: Likewise.
7260         * locale/programs/ld-time.c: Likewise.
7261         * locale/programs/linereader.c: Likewise.
7262         * locale/programs/linereader.h: Likewise.
7263         * locale/programs/localedef.c: Likewise.
7264         * locale/programs/locfile.c: Likewise.
7265         * locale/programs/repertoire.c: Likewise.
7267 2002-02-05  Ulrich Drepper  <drepper@redhat.com>
7269         * elf/rtld.c (_dl_start_final): Determine load address to locate
7270         ehdr with GL(dl_rtld_map).l_map_start.
7272         * po/ca.po: Update from translation team.
7274         * elf/rtld.c (dl_main): Read PT_TLS entry of the executable.
7275         * elf/dl-load.c (_dl_map_object_from_fd): Handle PT_TLS program
7276         header entry.
7277         * sysdeps/generic/ldsodefs.h (struct rtld_global): Add
7278         _dl_tls_module_cnt.
7279         * elf/dl-support.c: Define _dl_initimage_list and _dl_tls_module_cnt.
7281 2002-02-04  Ulrich Drepper  <drepper@redhat.com>
7283         * elf/rtld.c (_dl_start): Fill TLS values in link map for rtld.
7284         * include/link.h (struct link_map): Add various members for TLS
7285         information.
7286         * sysdeps/generic/ldsodefs.h (struct rtld_global): Remove
7287         _rtld_tlsoffset, add _dl_initimage_list.
7288         * sysdeps/i386/dl-lookupcfg.h: New file.
7289         * sysdeps/i386/dl-machine.h (elf_machine_rel): Implement missing
7290         TLS relocation.  When using TLS we now use RESOLVE_MAP.
7291         (elf_machine_rela): Use RESOLVE_MAP instead of RESOLVE_MAP if TLS
7292         is used.
7294         * sysdeps/generic/dl-cache.c (_dl_cache_libcmp): Mark as possibly
7295         unused.
7297         * elf/rtld.c (_dl_start_final): Allocate TLS and initialize
7298         thread-pointer as soon as possible.
7299         * sysdeps/generic/ldsodefs.h: Include <tls.h>.  Define first TLS
7300         elements in rtld_global.
7301         * sysdeps/generic/tls.h: New file.
7302         * elf/Makefile (distribute): Add tls.h.
7303         * sysdeps/i386/dl-machine.h (elf_machine_rel): Add support for TLS
7304         relocations.  Not complete yet.
7306         * resolv/resolv.h: Allow user to define __need_res_state and only
7307         define __res_start structure then.
7308         * include/resolv.h: Only declare functions if _RESOLV_H_ is defined.
7310         * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Move
7311         dl_cpuclock_offset initialization to _dl_start_final.
7312         (_dl_show_auxv): Avoid unnecessary sign extension.
7313         * elf/rtld.c (_dl_start_final): Initialize dl_cpuclock_offset.
7315 2002-02-03  Ulrich Drepper  <drepper@redhat.com>
7317         * config.h.in: Add HAVE_TLS_SUPPORT.
7318         * sysdeps/i386/elf/configure.in: New file.
7320 2002-02-03  Andreas Schwab  <schwab@suse.de>
7322         * sysdeps/posix/readv.c: Use ssize_t for bytes_read.
7323         * sysdeps/posix/writev.c: Use ssize_t for bytes_written.  Fix comment.
7325 2002-02-03  Thorsten Kukuk  <kukuk@suse.de>
7327         * sysdeps/posix/writev.c: Check for ssize_t overflow, don't use
7328         alloca if the memory reqirements are too high.
7330 2002-02-03  Ulrich Drepper  <drepper@redhat.com>
7332         * elf/dl-load.c (decompose_rpath): Avoid using strstr.
7333         * elf/dl-minimal.c (_strerror_r): Use _itoa instead of _itoa_word since
7334         the former is available anyway and speed isn't important here.
7335         * elf/dl-misc.c (_dl_debug_vdprintf): Likewise.
7336         * elf/dl-version.c (match_symbol): Likewise.
7337         (_dl_check_map_versions): Likewise.
7338         * elf/rtld.c (process_envvars): Likewise.
7339         (print_statistics): Likewise.
7340         * sysdeps/generic/dl-sysdep.c (_dl_show_auxv): Likewise.
7341         * elf/dl-minimal.c (_itoa): Always define it.  Make it work for all
7342         bases.  Add assert to catch uses of unimplemented features.
7343         (__strsep): Add assert to catch uses of unimplemented features.
7344         * elf/dl-object.c (_dl_new_object): Don't use rawmemchr.  Use strchr
7345         and avoid inline optimization.
7346         * elf/rtld.c (process_envvars): Likewise.
7347         * elf/dl-open.c: Don't include <stdio-common/_itoa.h>.
7348         * elf/dl-profile.c (_dl_start_profile): Help compiler to avoid ffs.
7349         * elf/rtld.c (dl_main): Avoid strsep inline optimization.
7351 2002-02-02  Ulrich Drepper  <drepper@redhat.com>
7353         * stdio-common/_itoa.h: Minor simplifications of the code.
7354         * stdio-common/_itoa.c: Likewise.
7356         * elf/dl-reloc.c (_dl_relocate_object): Use _dl_debug_printf
7357         instead of _dl_printf for debugging info output.
7359         * manual/examples/mkfsock.c (make_named_socket): Make sure name is
7360         always NUL-terminated.  Patch by Chris D. Sloan <cds@cs.hmc.edu>.
7362 2002-02-01  H.J. Lu  <hjl@gnu.org>
7364         * sysdeps/mips/atomicity.h (exchange_and_add): Use branch likely.
7365         (atomic_add): Likewise.
7366         (compare_and_swap): Return 0 only when failed to compare. Use
7367         branch likely.
7369         * sysdeps/unix/sysv/linux/mips/sys/tas.h (_test_and_set): Use
7370         branch likely.
7372 2002-02-03  kaz Kojima  <kkojima@rr.iij4u.or.jp>
7374         * sysdeps/sh/dl-machine.h (elf_machine_rela): Fix a typo.
7376 2002-02-02  Ulrich Drepper  <drepper@redhat.com>
7378         * elf/dl-minimal.c (__strsep): New minimal implementation.
7380 2002-02-02  Paul Eggert  <eggert@twinsun.com>
7382         * src/mktime.c [defined DEBUG && STDC_HEADERS]: Include <string.h>.
7383         (__mktime_internal): If no tm_isdst is requested, prefer solutions
7384         with tm_isdst > 0 when the requested time falls within a
7385         spring-forward gap [PR libc/2894].
7387 2002-02-03  Andreas Schwab  <schwab@suse.de>
7389         * stdio-common/tst-rndseek.c: Increase timeout.
7391 2002-02-02  Ulrich Drepper  <drepper@redhat.com>
7393         Change ld.so to not use functions which are exported.  One cannot
7394         interpose them anyway.  Use INT() to mark uses, INTDEF() to mark
7395         definitions.
7396         * include/libc-symbols.h: Define INT and INTDEF.
7397         * sysdeps/generic/ldsodefs.h: Declare _dl_debug_printf_internal,
7398         _dl_signal_error_internal, _dl_map_object_internal,
7399         _dl_map_object_deps_internal, _dl_lookup_symbol_internal,
7400         _dl_lookup_versioned_symbol_internal,
7401         _dl_relocate_object_internal, _dl_debug_state_internal,
7402         _dl_start_profile_internal, and _dl_unload_cache_internal.
7403         * include/dlfcn.h: Declare _dl_catch_error_internal.
7404         * elf/rtld.c: Use INT for calls to any of the *_internal functions
7405         above.  Add INTDEF to function definitions.
7406         * elf/dl-debug.c: Likewise.
7407         * elf/dl-deps.c: Likewise.
7408         * elf/dl-dst.h: Likewise.
7409         * elf/dl-error.c: Likewise.
7410         * elf/dl-fini.c: Likewise.
7411         * elf/dl-init.c: Likewise.
7412         * elf/dl-load.c: Likewise.
7413         * elf/dl-lookup.c: Likewise.
7414         * elf/dl-misc.c: Likewise.
7415         * elf/dl-open.c: Likewise.
7416         * elf/dl-profile.c: Likewise.
7417         * elf/dl-reloc.c: Likewise.
7418         * elf/dl-runtime.c: Likewise.
7419         * elf/dl-version.c: Likewise.
7420         * elf/do-lookup.h: Likewise.
7421         * sysdeps/generic/dl-cache.c: Likewise.
7422         * sysdeps/generic/dl-sysdep.c: Likewise.
7423         * sysdeps/alpha/dl-machine.h (RTLD_START): Call _dl_init_internal
7424         instead of _dl_init.
7425         * sysdeps/arm/dl-machine.h: Likewise.
7426         * sysdeps/cris/dl-machine.h: Likewise.
7427         * sysdeps/hppa/dl-machine.h: Likewise.
7428         * sysdeps/i386/dl-machine.h: Likewise.
7429         * sysdeps/ia64/dl-machine.h: Likewise.
7430         * sysdeps/m68k/dl-machine.h: Likewise.
7431         * sysdeps/mips/dl-machine.h: Likewise.
7432         * sysdeps/mips/mips64/dl-machine.h: Likewise.
7433         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
7434         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
7435         * sysdeps/sh/dl-machine.h: Likewise.
7436         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
7437         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
7438         * sysdeps/x86_64/dl-machine.h: Likewise.
7439         * sysdeps/powerpc/dl-start.S (_dl_start_user): Likewise.
7441         * elf/Versions: Don't export _dl_check_all_versions, _dl_sysdep_start,
7442         and _dl_debug_initialize.
7444         * elf/dl-object.c (_dl_new_object): Avoid using strrchr.  We have
7445         more information.
7446         * elf/rtld.c (dl_main): Avoid strrchr.
7447         * sysdeps/unix/sysv/linux/dl-origin.c (_dl_get_origin): Use the
7448         result of readlink.  Search from the back for '/'.
7450         * elf/dl-profile.c (_dl_start_profile): Help the compiler to avoid
7451         strncpy if possible.
7453         * sysdeps/generic/dl-environ.c (unsetenv): Optimize.  Don't use
7454         strncmp.
7455         * elf/dl-load.c (is_dst): Optimize.  Don't call strncmp twice.
7456         * elf/rtld.c (process_dl_debug): Optimize. Avoid calls to strncmp,
7457         strspn, and strcspn.
7458         (process_envvars): Don't use strcspn.
7460         * elf/dl-load.c (_dl_dst_count): Fix possible endless loop.
7461         (_dl_dst_substitute): Likewise.
7463 2002-02-01  Ulrich Drepper  <drepper@redhat.com>
7465         * elf/do-rel.h (elf_dynamic_do_rel): Help the compiler recognize
7466         code which is never used when relocating ld.so itself.
7468         * elf/dynamic-link.h (elf_get_dynamic_info): Optimize a bit for
7469         starting ld.so itself.  Move l_addr variable initialization closer
7470         to use.
7471         (_ELF_DYNAMIC_DO_RELOC): Help the compiler optimize a bit.
7473 2002-02-01  Jakub Jelinek  <jakub@redhat.com>
7475         * Versions.def (libc): Add GLIBC_PRIVATE.
7476         (libdb, libnss_db, libdb1): Remove.
7477         (libnss_compat, libnss_dns, libnss_files, libnss_hesiod, libnss_nis,
7478         libnss_nisplus): Move all symbols to GLIBC_PRIVATE.
7479         (libpthread): Add GLIBC_PRIVATE.
7480         (libresolv): Likewise, remove GLIBC_2.1.
7481         (ld): Add GLIBC_PRIVATE, remove GLIBC_2.1.1, GLIBC_2.2, GLIBC_2.2.1,
7482         GLIBC_2.2.3, GLIBC_2.3.
7483         * catgets/Versions (__open_catalog): Move to GLIBC_PRIVATE.
7484         * elf/Versions (_dl_open, _dl_close, _dl_addr, _dl_init_first,
7485         _dl_sym, _dl_vsym): Likewise.
7486         (__libc_enable_secure, __libc_stack_end, _dl_argv, _dl_catch_error,
7487         _dl_check_all_versions, _dl_check_map_versions, _dl_debug_initialize,
7488         _dl_debug_printf, _dl_debug_state, _dl_dst_count, _dl_dst_substitute,
7489         _dl_init, _dl_lookup_symbol, _dl_lookup_symbol_skip,
7490         _dl_lookup_versioned_symbol, _dl_lookup_versioned_symbol_skip,
7491         _dl_map_object, _dl_map_object_deps, _dl_out_of_memory,
7492         _dl_relocate_object, _dl_signal_error, _dl_start_profile,
7493         _dl_starting_up, _dl_sysdep_start, _dl_unload_cache, _rtld_global):
7494         Likewise.
7495         (_dl_object_relocation_scope): Remove.
7496         * hesiod/Versions: Move all symbols to GLIBC_PRIVATE.
7497         * iconv/Versions (__gconv_alias_db, __gconv_modules_db,
7498         __gconv_cache): Move to GLIBC_PRIVATE.
7499         * inet/Versions (__internal_endnetgrent, __internal_getnetgrent_r,
7500         __internal_setnetgrent): Likewise.
7501         * io/Versions (__libc_open, __libc_close, __libc_read, __libc_write,
7502         __libc_lseek, __libc_fcntl, __libc_open64, __libc_lseek64): Likewise.
7503         * locale/Versions (__collate_element_hash, __collate_element_strings,
7504         __collate_symbol_classes, __collate_symbol_hash,
7505         __collate_symbol_strings, _nl_current_LC_COLLATE,
7506         _nl_current_LC_CTYPE): Likewise.
7507         * misc/Versions (__libc_fsync, __libc_msync): Likewise.
7508         * nis/Versions (libnss_compat): Move all symbols to GLIBC_PRIVATE.
7509         (libnss_nis, libnss_nisplus): Likewise.
7510         * nss/Versions (_nss_files_parse_grent, _nss_files_parse_pwent,
7511         _nss_files_parse_spent): Move to GLIBC_PRIVATE.
7512         (libnss_files): Move all symbols to GLIBC_PRIVATE.
7513         * posix/Versions (__libc_wait, __libc_waitpid, __libc_pause,
7514         __libc_nanosleep, __libc_fork, __libc_pread, __libc_pread64,
7515         __libc_pwrite, __libc_pwrite64): Move to GLIBC_PRIVATE.
7516         * resolv/Versions (__gai_sigqueue, __ns_name_unpack, __ns_name_ntop,
7517         __ns_get16, __ns_samename): Likewise.
7518         (libnss_dns): Move all symbols to GLIBC_PRIVATE.
7519         * setjmp/Versions (__libc_longjmp, __libc_siglongjmp): Move to
7520         GLIBC_PRIVATE.
7521         * socket/Versions (__libc_accept, __libc_send, __libc_recvfrom,
7522         __libc_recvmsg, __libc_sendmsg, __libc_recv, __libc_sendto,
7523         __libc_connect): Likewise.
7524         * stdio-common/Versions (_itoa_lower_digits, _itoa_upper_digits):
7525         Likewise.
7526         * stdlib/Versions (__libc_system): Likewise.
7527         * sunrpc/Versions (__rpc_thread_destroy): Likewise.
7528         * sysdeps/hppa/Versions: Move all symbols to GLIBC_PRIVATE.
7529         * sysdeps/ia64/fpu/Versions: Likewise.
7530         * sysdeps/ia64/Versions: Likewise.
7531         * sysdeps/unix/sysv/linux/ia64/Versions: Likewise.
7532         * sysdeps/unix/sysv/linux/i386/Versions (__modify_ldt): Move
7533         to GLIBC_PRIVATE.
7534         * sysdeps/unix/sysv/linux/x86_64/Versions (__modify_ldt): Likewise.
7535         * sysdeps/unix/sysv/linux/Versions (__syscall_rt_sigqueueinfo,
7536         __libc_sigaction): Likewise.
7537         * termios/Versions (__libc_tcdrain): Likewise.
7539         * misc/sys/cdefs (__attribute_noinline__): Define.
7540         * elf/dl-lookup.c (_dl_do_lookup, _dl_do_lookup_versioned): Add
7541         __attribute_noinline__.
7543         * elf/Makefile (rtld-routines): Add dl-xstat64, dl-fxstat64.
7544         * elf/dl-xstat64.c: New file.
7545         * elf/dl-fxstat64.c: New file.
7546         * sysdeps/unix/sysv/linux/fxstat64.c: If RTLD_STAT64 is defined,
7547         don't export __fxstat64 at multiple versions.
7548         * sysdeps/unix/sysv/linux/lxstat64.c: Similarly.
7549         * sysdeps/unix/sysv/linux/xstat64.c: Similarly.
7551 2002-01-18  Isamu Hasegawa  <isamu@yamato.ibm.com>
7553         * locale/program/ld-collate.c (collate_finish): Assign a wide
7554         char collation sequence value to multi character collating
7555         elements, and avoid over writing by non-character elements.
7557 2002-02-01  Ulrich Drepper  <drepper@redhat.com>
7559         * elf/Makefile (distribute): Add dl-procinfo.c.
7560         * sysdeps/unix/sysv/linux/i386/Dist: Remove dl-procinfo.c.
7561         * sysdeps/unix/sysv/linux/arm/Dist: Likewise.
7563 2002-02-01  Jakub Jelinek  <jakub@redhat.com>
7565         * sysdeps/generic/ldsodefs.h (_dl_load_lock): Remove duplicate
7566         definition.
7567         * sysdeps/ia64/hp-timing.h: Move _dl_hp_timing_overhead in
7568         _rtld_global struct.
7569         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h: Likewise.
7570         * sysdeps/sparc/sparc64/hp-timing.c: Likewise.
7571         * sysdeps/sparc/sparc64/hp-timing.h: Likewise.
7572         * sysdeps/sparc/sparc64/Makefile: Make hp-timing static only.
7573         * sysdeps/unix/sysv/aix/init-first.c (_dl_fpu_control,
7574         _dl_fpu_control_set): Remove unused externs.
7575         * sysdeps/unix/sysv/linux/sparc/sparc32/dl-procinfo.c: New file.
7576         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-procinfo.c: New file.
7577         * sysdeps/unix/sysv/linux/sparc/sparc32/dl-procinfo.h: Move procinfo
7578         related variables in _rtld_global struct.
7579         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-procinfo.h: Likewise.
7580         * sysdeps/unix/sysv/linux/init-first.c (_dl_fpu_control_set): Remove
7581         unused extern.
7583 2002-02-01  Ulrich Drepper  <drepper@redhat.com>
7585         * sysdeps/generic/dl-procinfo.c: New file.
7587 2002-02-01  Andreas Schwab  <schwab@suse.de>
7589         * sysdeps/m68k/dl-machine.h: Don't use multi-line string literals.
7591 2002-02-01  Ulrich Drepper  <drepper@redhat.com>
7593         * elf/rtld.c (_dl_start): Mark as internal_function.
7594         * sysdeps/i386/dl-machine.h (RTLD_START): Pass parameter for _dl_start
7595         in register.
7596         (elf_machine_rel): Cleanup and minor optimization for RTLD_BOOTSTRAP.
7597         General pretty printing.
7599 2002-01-31  Ulrich Drepper  <drepper@redhat.com>
7601         * elf/dl-minimal.c: Define _itoa for 32-bit machines with HP timing.
7602         * elf/dl-reloc.c: Pretty printing.
7603         * sysdeps/generic/ldsodefs.h: Move _dl_hp_timing_overhead and
7604         procinfo-related variables in rtld_global struct.
7605         * elf/dl-support.c: Likewise.
7606         * elf/rtld.c: Likewise.
7607         * sysdeps/i386/i686/Makefile: Likewise.
7608         * sysdeps/i386/i686/hp-timing.c: Likewise.
7609         * sysdeps/i386/i686/hp-timing.h: Likewise.
7610         * sysdeps/ia64/Makefile: Likewise.
7611         * sysdeps/ia64/hp-timing.c: Likewise.
7612         * sysdeps/sparc/sparc32/sparcv9/Makefile: Likewise.
7613         * sysdeps/sparc/sparc32/sparcv9/hp-timing.c: Likewise.
7614         * sysdeps/unix/sysv/linux/arm/dl-procinfo.c: Likewise.
7615         * sysdeps/unix/sysv/linux/arm/dl-procinfo.h: Likewise.
7616         * sysdeps/unix/sysv/linux/i386/Makefile: Likewise.
7617         * sysdeps/unix/sysv/linux/i386/dl-procinfo.c: Likewise.
7618         * sysdeps/unix/sysv/linux/i386/dl-procinfo.h: Likewise.
7619         * sysdeps/x86_64/Makefile: Likewise.
7621         * sysdeps/generic/ldsodefs.h: Add _dl_load_lock, _dl_lazy,
7622         _dl_dynamic_weak, _dl_fpu_control, _dl_cpuclock_offset, and
7623         _dl_debug_fd to rtld_global.
7624         * elf/Versions: Likewise.
7625         * elf/dl-close.c: Likewise.
7626         * elf/dl-iteratephdr.c: Likewise.
7627         * elf/dl-lookup.c: Likewise.
7628         * elf/dl-misc.c: Likewise.
7629         * elf/dl-open.c: Likewise.
7630         * elf/dl-support.c: Likewise.
7631         * elf/do-lookup.h: Likewise.
7632         * elf/rtld.c: Likewise.
7633         * sysdeps/generic/dl-cache.c: Likewise.
7634         * sysdeps/generic/dl-sysdep.c: Likewise.
7635         * sysdeps/ia64/Versions: Likewise.
7636         * sysdeps/unix/clock_gettime.c: Likewise.
7637         * sysdeps/unix/clock_settime.c: Likewise.
7638         * sysdeps/unix/sysv/linux/init-first.c: Likewise.
7639         * sysdeps/sparc/Versions: Removed.
7640         * sysdeps/i386/i686/Versions : Removed.
7641         * sysdeps/x86_64/Versions: Removed.
7642         * configure.in: Define HAVE_PROTECTED if .protected is available.
7643         * config.h.in: Add entry for HAVE_PROTECTED.
7645 2002-01-31  Jakub Jelinek  <jakub@redhat.com.
7647         * sysdeps/alpha/dl-machine.h: Move global variables for SHARED
7648         code in struct _rtld_global.  Export this struct, remove all
7649         exports for the signal variables.
7650         * sysdeps/arm/dl-machine: Likewise.
7651         * sysdeps/generic/dl-origin: Likewise.
7652         * sysdeps/generic/dl-sysdep: Likewise.
7653         * sysdeps/generic/dl-cache: Likewise.
7654         * sysdeps/hppa/dl-fptr: Likewise.
7655         * sysdeps/hppa/dl-machine: Likewise.
7656         * sysdeps/cris/dl-machine: Likewise.
7657         * sysdeps/i386/dl-machine: Likewise.
7658         * sysdeps/ia64/dl-machine: Likewise.
7659         * sysdeps/m68k/dl-machine: Likewise.
7660         * sysdeps/mach/hurd/dl-sysdep: Likewise.
7661         * sysdeps/mips/mips64/dl-machine: Likewise.
7662         * sysdeps/mips/dl-machine: Likewise.
7663         * sysdeps/powerpc/elf/libc-start: Likewise.
7664         * sysdeps/powerpc/dl-machine: Likewise.
7665         * sysdeps/powerpc/dl-start: Likewise.
7666         * sysdeps/sparc/sparc32/dl-machine: Likewise.
7667         * sysdeps/sparc/sparc64/dl-machine: Likewise.
7668         * sysdeps/sh/dl-machine: Likewise.
7669         * sysdeps/s390/s390-32/dl-machine: Likewise.
7670         * sysdeps/s390/s390-64/dl-machine: Likewise.
7671         * sysdeps/unix/sysv/aix/libc-start: Likewise.
7672         * sysdeps/unix/sysv/aix/start-libc: Likewise.
7673         * sysdeps/unix/sysv/linux/ia64/dl-static: Likewise.
7674         * sysdeps/unix/sysv/linux/m68k/getpagesize: Likewise.
7675         * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize: Likewise.
7676         * sysdeps/x86_64/dl-machine: Likewise.
7678 2002-01-31  Ulrich Drepper  <drepper@redhat.com>
7680         * sysdeps/posix/readv.c: Don't use alloca if the memory requirements
7681         are too high.
7683 2002-01-31  Andreas Schwab  <schwab@suse.de>
7685         * sysdeps/posix/readv.c: Check for ssize_t overflow.
7687 2002-01-31  Andreas Schwab  <schwab@suse.de>
7689         * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Fix leftover
7690         reference to _dl_pagesize.
7692 2002-01-30  Ulrich Drepper  <drepper@redhat.com>
7694         * Versions.def [ld]: Add GLIBC_2.3.
7695         * elf/dl-addr.c: Move global variables for SHARED code in struct
7696         _rtld_global.  Export this struct, remove all exports for the
7697         signal variables.
7698         * elf/dl-close.c: Likewise.
7699         * elf/dl-conflict.c: Likewise.
7700         * elf/dl-debug.c: Likewise.
7701         * elf/dl-deps.c: Likewise.
7702         * elf/dl-dst.h: Likewise.
7703         * elf/dl-error.c: Likewise.
7704         * elf/dl-fini.c: Likewise.
7705         * elf/dl-init.c: Likewise.
7706         * elf/dl-iteratephdr.c: Likewise.
7707         * elf/dl-libc.c: Likewise.
7708         * elf/dl-load.c: Likewise.
7709         * elf/dl-lookup.c: Likewise.
7710         * elf/dl-minimal.c: Likewise.
7711         * elf/dl-object.c: Likewise.
7712         * elf/dl-open.c: Likewise.
7713         * elf/dl-profile.c: Likewise.
7714         * elf/dl-profstub.c: Likewise.
7715         * elf/dl-reloc.c: Likewise.
7716         * elf/dl-runtime.c: Likewise.
7717         * elf/dl-support.c: Likewise.
7718         * elf/dl-sym.c: Likewise.
7719         * elf/dl-version.c: Likewise.
7720         * elf/do-lookup.h: Likewise.
7721         * elf/do-rel.h: Likewise.
7722         * elf/dynamic-link.h: Likewise.
7723         * elf/rtld.c: Likewise.
7724         * sysdeps/generic/dl-cache.c: Likewise.
7725         * sysdeps/generic/dl-sysdep.c: Likewise.
7726         * sysdeps/generic/ldsodefs.h: Likewise.
7727         * sysdeps/generic/libc-start.c: Likewise.
7728         * sysdeps/i386/dl-machine.h: Likewise.
7729         * sysdeps/ia64/dl-fptr.c: Likewise.
7730         * sysdeps/ia64/dl-machine.h: Likewise.
7731         * sysdeps/unix/sysv/linux/dl-librecon.h: Likewise.
7732         * sysdeps/unix/sysv/linux/dl-origin.c: Likewise.
7733         * sysdeps/unix/sysv/linux/dl-osinfo.h: Likewise.
7734         * sysdeps/unix/sysv/linux/getclktck.c: Likewise.
7735         * sysdeps/unix/sysv/linux/getpagesize.c: Likewise.
7736         * sysdeps/unix/sysv/linux/i386/dl-librecon.h: Likewise.
7737         * sysdeps/unix/sysv/linux/ia64/dl-static.c: Likewise.
7738         * sysdeps/unix/sysv/linux/ia64/getpagesize.c: Likewise.
7740 2002-01-29  Ulrich Drepper  <drepper@redhat.com>
7742         * sysdeps/ia64/dl-lookupcfg.h (DL_AUTO_FUNCTION_ADDRESS): Add cast
7743         to avoid warning
7744         (DL_STATIC_FUNCTION_ADDRESS): Likewise.
7746         * elf/dl-lookup.c: Only define or handle _dl_num_relocations for the
7747         SHARED version.
7748         * elf/dl-reloc.c: Likewise for _dl_num_cache_relocations.
7750         * elf/rtld.c (_dl_start): Use __builtin_memset if available.
7752 2002-01-29  Ben Collins  <bcollins@debian.org>
7754         * string/bits/string2.h (__mempcpy): Protect size arg for
7755         addition when using __builtin_memcpy.
7757 2002-01-29  Ulrich Drepper  <drepper@redhat.com>
7759         * stdlib/Makefile (tests): Add tst-qsort.
7760         * stdlib/tst-qsort.c: New file.  Written by Paul Eggert.
7762         * manual/signal.texi (Process Signal Mask): Document that
7763         pthread_sigmask, not sigprocmask, must be used in MT programs.
7764         Patch by Bertold Kolics <Bertold.Kolics@Sun.COM>.
7766         * misc/hsearch_r.c (hsearch_r): Don't insert anything if entry is
7767         found.
7768         * misc/Makefile (tests): Add tst-hsearch.
7769         * misc/tst-hsearch.c: New file.
7771 2002-01-18  Wolfram Gloger  <wg@malloc.de>
7773         * malloc/malloc.c: Rewrite, adapted from Doug Lea's malloc-2.7.0.c.
7774         * malloc/malloc.h: Likewise.
7775         * malloc/thread-m.h: Spinlock definitions for x86/x86_64.
7776         * malloc/arena.c: New file.
7777         * malloc/hooks.c: New file.
7778         * malloc/tst-mallocstate.c: New file.
7779         * malloc/Makefile: Add new testcase tst-mallocstate.
7780         Add arena.c and hooks.c to distribute.  Fix commented CPPFLAGS.
7782 2002-01-28  Ulrich Drepper  <drepper@redhat.com>
7784         * stdlib/msort.c: Remove last patch.  The optimization violates the
7785         same rule which qsort.c had problems with.
7787 2002-01-27  Paul Eggert  <eggert@twinsun.com>
7789         * stdlib/qsort.c (_quicksort): Do not apply the comparison function
7790         to a pivot element that lies outside the array to be sorted, as
7791         ISO C99 requires that the comparison function be called only with
7792         addresses of array elements [PR libc/2880].
7794 2002-01-28  Ulrich Drepper  <drepper@redhat.com>
7796         * elf/dl-load.c (_dl_map_object): Remove incorrect optimization
7797         for SHARED code.  Reported by Ben Collins <bcollins@debian.org>.
7799         * timezone/asia: Update from tzdata2002b.
7800         * timezone/australasia: Likewise.
7801         * timezone/backward: Likewise.
7802         * timezone/europe: Likewise.
7803         * timezone/leapseconds: Likewise.
7804         * timezone/iso3166.tab: Likewise.
7805         * timezone/zone.tab: Likewise.
7807 2002-01-23  Richard Henderson  <rth@redhat.com>
7809         * sysdeps/alpha/Makefile (pic-ccflag): New variable.
7811 2002-01-28  Ulrich Drepper  <drepper@redhat.com>
7813         * string/strxfrm.c: Allocate one more byte for rulearr and clear
7814         this element [PR libc/2855].
7816         * string/strcoll.c: Handle zero-length arguments specially
7817         [PR libc/2856].
7819 2002-01-23  Jakub Jelinek  <jakub@redhat.com>
7821         * string/bits/string2.h (__mempcpy): For gcc 3.0+, don't use
7822         __mempcpy_small but instead use __builtin_memcpy ( , , n) + n for
7823         short lengths and constant src.
7824         (strcpy): Don't optimize for gcc 3.0+.
7825         (__stpcpy): For gcc 3.0+, don't use
7826         __stpcpy_small but instead use __builtin_strcpy (, src) + strlen (src)
7827         for short string literal src.
7829 2002-01-23  Jeroen Dobbelaere  <jeroen.dobbelaere@acunia.com>
7831         * sysdeps/unix/sysv/linux/configure.in (libc_cv_gcc_unwind_find_fde):
7832         Set for arm, too.
7834 2001-01-22  Paul Eggert  <eggert@twinsun.com>
7836         * manual/llio.texi (Linked Channels, Cleaning Streams):
7837         Make it clearer that a just-opened input stream might need cleaning.
7839 2002-01-21  H.J. Lu  <hjl@gnu.org>
7841         * sysdeps/mips/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
7842         Don't use label at end of compound statement.
7844 2002-01-28  Stephen L Moshier  <moshier@mediaone.net>
7846         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (__ieee754_lgammal_r):
7847         Remove test for negative integer arg; sin_pi does it correctly.
7849 2002-01-20  Ulrich Drepper  <drepper@redhat.com>
7851         * nscd/Makefile (distribute): Filter out xmalloc.c.
7853 2002-01-19  Ulrich Drepper  <drepper@redhat.com>
7855         * libio/fileops.c (_IO_file_underflow_mmap): Don't define as static.
7856         Set offset if read end wasn't the buffer end.
7857         (_IO_file_seekoff_mmap): New function.
7858         (_IO_file_xsgetn_mmap): New function.
7859         (_IO_file_jumps_mmap): Use the two new functions.
7860         * libio/wfileops.c (_IO_wfile_underflow_mmap): Handle end read buffer
7861         != end buffer.
7862         * libio/libioP.h: Declare _IO_file_seekoff_mmap and
7863         _IO_file_underflow_mmap.
7864         * libio/iofopen.c: Don't position file descriptor at end of file.
7865         * libio/tst-widetext.c: Improve error messages.
7866         * stdio-common/tst-rndseek.c: Likewise.
7868 2002-01-18  Ulrich Drepper  <drepper@redhat.com>
7870         * sysdeps/unix/sysv/linux/bits/statvfs.h: Avoid warning about comma at
7871         end of enum for !_GNU_SOURCE.
7872         * sysdeps/unix/sysv/linux/alpha/bits/statvfs.h: Likewise.
7873         * sysdeps/unix/sysv/linux/ia64/bits/statvfs.h: Likewise.
7874         * sysdeps/unix/sysv/linux/sparc/bits/statvfs.h: Likewise.
7875         * sysdeps/mach/hurd/bits/statvfs.h: Don't define non-standard ST_*
7876         values unless _GNU_SOURCE.
7878         * iconvdata/tcvn5712-1.c: Minor cleanups.
7880 2002-01-18  Andreas Schwab  <schwab@suse.de>
7882         * sysdeps/unix/sysv/linux/configure.in
7883         (libc_cv_gcc_unwind_find_fde): Set for m68k, too.
7885 2002-01-16  Roger Sayle  <roger@eyesopen.com>
7887         * stdlib/msort.c (msort_with_tmp): Replace implementation with
7888         more efficient "Towers of Hanoi" mergesort.
7889         (hanoi_sort, hanoi_sort_int, hanoi_sort_long): New functions,
7890         for generic, sizeof(int) and sizeof(long) variants respectively.
7892 2002-01-17  Ulrich Drepper  <drepper@redhat.com>
7894         * manual/syslog.texi (openlog): Describe possible problems with
7895         first parameter.
7896         Patch by Christopher Allen Wing <wingc@engin.umich.edu>.
7898         * nscd/nscd.c (drop_privileges): Removed.  Adjust caller.
7899         * nscd/connections.c (begin_drop_privileges): New function.
7900         (finish_drop_privileges): New function.
7901         (nscd_init): Call the new functions which also install all groups
7902         for the server user.
7903         * nscd/Makefile (nscd-modules): Add xmalloc for nscd.
7904         Patch by Christopher Allen Wing <wingc@engin.umich.edu>.
7906 2002-01-17  H.J. Lu  <hjl@gnu.org>
7908         * sysdeps/mips/dl-machine.h (__dl_runtime_resolve): Remove
7909         `const' from `got'.
7911 2002-01-17  Martin Schwidefsky  <schwidefsky@de.ibm.com>
7913         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S: Use 64 bit
7914         instructions for pointer operations.
7915         * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S: Likewise.
7917 2002-01-17  Andreas Jaeger  <aj@suse.de>
7919         * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h: GCC 3.1 has
7920         __uint128_t build-in.
7922         * sysdeps/unix/sysv/linux/configure.in: Fix check for S390 and
7923         PowerPC, sync with 2.2 branch.
7925 2002-01-16  Ulrich Drepper  <drepper@redhat.com>
7927         * posix/getconf.c: Update copyright year.
7928         * nss/getent.c: Likewise.
7929         * nscd/nscd_nischeck.c: Likewise.
7930         * iconv/iconvconfig.c: Likewise.
7931         * iconv/iconv_prog.c: Likewise.
7932         * elf/ldconfig.c: Likewise.
7933         * catgets/gencat.c: Likewise.
7934         * csu/version.c: Likewise.
7935         * elf/ldd.bash.in: Likewise.
7936         * elf/sprof.c (print_version): Likewise.
7937         * locale/programs/locale.c: Likewise.
7938         * locale/programs/localedef.c: Likewise.
7939         * nscd/nscd.c (print_version): Likewise.
7940         * debug/xtrace.sh: Likewise.
7941         * malloc/memusage.sh: Likewise.
7942         * malloc/mtrace.pl: Likewise.
7944 2002-01-16  Andreas Schwab  <schwab@suse.de>
7946         * sysdeps/unix/sysv/linux/ia64/ldd-rewrite.sed: Fix regexp to
7947         reliably remove "-ia64" from rtld name.
7949 2002-01-16  Ulrich Drepper  <drepper@redhat.com>
7951         * iconvdata/gb18030.c: Bug fixes and support for more characters.
7952         Patch by Yu Shao <yshao@redhat.com>.
7954 2002-01-16  Martin Schwidefsky  <schwidefsky@de.ibm.com>
7956         * sysdeps/unix/sysv/linux/s390/swapcontext.c: Remove.
7957         * sysdeps/unix/sysv/linux/s390/s390-32/swapcontext.S: New file.
7958         * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S: New file.
7960 2002-01-14  Martin Schwidefsky  <schwidefsky@de.ibm.com>
7962         * sysdeps/s390/fpu/libm-test-ulps: Update.
7964 2002-01-11  Ulrich Drepper  <drepper@redhat.com>
7966         * elf/elf.h: Update x86 relocations.
7968 2002-01-10  Ulrich Drepper  <drepper@redhat.com>
7970         * locale/programs/charmap.c (new_width): Check whether byte
7971         sequences for both ends of range have the same length.
7973 2002-01-09  Jakub Jelinek  <jakub@redhat.com>
7975         * elf/elf.h (SHN_UNDEF): Remove duplicate definition.
7977 2002-01-09  Jakub Jelinek  <jakub@redhat.com>
7979         * sysdeps/alpha/fpu/e_sqrt.c (__ieee754_sqrt): Don't use multi-line
7980         string literals.
7981         (__full_ieee754_sqrt): Add __attribute_used__.
7983 2002-01-10  Ulrich Drepper  <drepper@redhat.com>
7985         * sysdeps/generic/group_member.c (__group_member): Also check
7986         groups[0] [PR libc/2781].
7988 2002-01-08  Ulrich Drepper  <drepper@redhat.com>
7990         * Makefile (distribute): Add scripts/cpp.
7991         * elf/Makefile (distribute): Add reldep6mod[01234].c,
7992         unwind-dw2.c, unwind-dw2-fde.c, unwind.h, unwind-pe.h,
7993         unwind-dw2-fde.h, and dwarf2.h.
7994         * sysdeps/unix/bsd/bsd4.4/Dist: New file.
7995         * sysdeps/unix/sysv/aix/Dist: Add sysv_termio.h and start-libc.c.
7996         * sysdeps/unix/sysv/linux/ia64/Dist: Add ldd-rewrite.sed.
7997         * sysdeps/unix/sysv/linux/s390/Dist: Likewise.
7999 2002-01-07  Roland McGrath  <roland@frob.com>
8001         * sysdeps/mach/hurd/i386/init-first.c (_hurd_stack_setup): Use
8002         volatile on type of ARGC so the compiler doesn't get clever.
8004 2002-01-07  Andreas Jaeger  <aj@suse.de>
8006         * sysdeps/generic/bits/byteswap.h: Prevent double inclusion.
8007         * sysdeps/i386/bits/byteswap.h: Likewise.
8008         * sysdeps/ia64/bits/byteswap.h: Likewise.
8009         * sysdeps/m68k/bits/byteswap.h: Likewise.
8010         * sysdeps/s390/s390-32/bits/byteswap.h: Likewise.
8011         * sysdeps/s390/s390-64/bits/byteswap.h: Likewise [PR libc/2757].
8013 2002-01-02  Bruno Haible  <bruno@clisp.org>
8015         * intl/plural.y: Fix %expect count.
8017 2002-01-03  Jakub Jelinek  <jakub@redhat.com>
8019         * elf/Makefile (routines, shared-only-routines): Add
8020         unwind-dw2-fde-glibc instead of unwind-dw2-fde.
8021         * elf/elf.h (PT_GNU_EH_FRAME): Define.
8022         * sysdeps/generic/unwind-dw2-fde-glibc.c: New file.
8023         * sysdeps/generic/unwind-dw2-fde.c (__register_frame_info_bases):
8024         Optimize if .eh_frame section contains no FDEs.
8025         (__register_frame, __deregister_frame_info_bases,
8026         __deregister_frame): Likewise.
8027         * sysdeps/generic/unwind-dw2.c (execute_cfa_program): Fix
8028         DW_CFA_restore handling.
8030 2002-01-07  Stephen L Moshier  <moshier@mediaone.net>
8032         * sysdeps/ieee754/ldbl-96/s_erfl.c (erfcl): Fix K&R header.
8034         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (sin_pi): Fix typo in test
8035         for x < 0.25 and restore original range reduction method.
8036         (__ieee754_lgammal_r): Make sure signgam is set before returning.
8038 2002-01-07  Ulrich Drepper  <drepper@redhat.com>
8040         * libio/fileops.c (_IO_file_underflow_mmap): New function.
8041         (_IO_file_close_mmap): New function.
8042         (_IO_file_jumps_mmap): New variable.
8043         * libio/wfileops.c (_IO_wfile_underflow): Reset read pointer before
8044         trying to convert rest of byte buffer.
8045         (_IO_wfile_underflow_mmap): New function.
8046         (_IO_wfile_jumps_mmap): New variable.
8047         * libio/iofopen.c (__fopen_maybe_mmap): New function.
8048         (__fopen_internal): New function.  Split out from _IO_new_fopen.
8049         (_IO_new_fopen): Call __fopen_internal.
8050         * libio/iofopen64.c: Just call __fopen_internal.
8051         * libio/iofdopen.c: Call __fopen_maybe_mmap before returning
8052         successfully.
8053         * libio/iolibio.h: Declare __fopen_internal and __fopen_maybe_mmap.
8054         * libio/libioP.h: Declare _IO_file_jumps_mmap, _IO_wfile_jumps_mmap,
8055         _IO_file_close_mmap.
8057         * sysdeps/gnu/_G_config.h: Define _G_MMAP64.
8058         * sysdeps/unix/sysv/linux/cris/_G_config.h: Likewise.
8060         * stdio-common/Makefile (tests): Add tst-rndseek.
8061         * stdio-common/tst-rndseek.c: New file.
8063 2002-01-05  Roland McGrath  <roland@frob.com>
8065         * config.h.in (HAVE_MIG_RETCODE): New #undef.
8066         * sysdeps/mach/hurd/configure.in (hurd_MIG_RETCODE: New macro
8067         swiped from hurd package's aclocal.m4; use it to set HAVE_MIG_RETCODE.
8068         * sysdeps/mach/hurd/configure: Regenerated.
8070 2002-01-03  Ulrich Drepper  <drepper@redhat.com>
8072         * elf/elf.h: Add more TLS definitions.
8074 2002-01-02  Ulrich Drepper  <drepper@redhat.com>
8076         * include/features.h (__GLIBC_MINOR__): Bump to 3.
8078 2002-01-02  Roland McGrath  <roland@frob.com>
8080         * sysdeps/mach/hurd/sigwait.c (__sigwait): Use __sigandset,
8081         __sigisemptyset.  Don't use MASK uninitialized.
8083         * sysdeps/mach/hurd/sigprocmask.c (__sigprocmask): Use __sigorset.
8084         * hurd/hurdinit.c (_hurd_new_proc_init): Use __sigisemptyset.
8085         * hurd/hurdsig.c (_hurd_internal_post_signal): Use __sigismember,
8086         __sigdelset, __sigaddset, __sigorset.
8088         * sysdeps/generic/htonl.c: Use uint32_t instead of u_int32_t.
8089         * sysdeps/generic/htons.c: Use uint16_t instead of u_int16_t.
8091         * hurd/hurdinit.c (_hurd_ports_use): Return EGRATUITOUS when
8092         _hurd_ports is null.
8094         * hurd/hurdsig.c (_hurdsig_init): Conditionalize exception port setup
8095         for old CMU and new OSF Mach interface flavors.
8096         * hurd/hurdfault.c (_hurdsig_fault_init): Likewise.
8097         * sysdeps/mach/hurd/fork.c (__fork): Likewise.
8099         * hurd/hurdsig.c (_hurd_internal_post_signal): Leave msgh_seqno unset.
8101         * sysdeps/mach/hurd/spawni.c (__spawni) [KERN_INVALID_LEDGER]:
8102         Pass extra arguments to task_create for OSF variant.
8103         * sysdeps/mach/hurd/fork.c (__fork): Likewise.
8105         * sysdeps/powerpc/elf/libc-start.c: Make AUXVEC diddling code
8106         conditional on [HAVE_AUX_VECTOR].
8108         * mach/mach/mach_traps.h (thread_switch, __thread_switch): Use
8109         mach_msg_timeout_t as type of final argument.
8111         * hurd/privports.c (__get_privileged_ports):
8112         Change host_priv_t to mach_port_t in argument type.
8113         * hurd/hurd.h (get_privileged_ports, __get_privileged_ports):
8114         Update decls.
8116         * sysdeps/mach/hurd/i386/bits/sigcontext.h: Protect from
8117         multiple inclusion.  Inhibit #error under [_SYS_UCONTEXT_H].
8118         * sysdeps/mach/hurd/alpha/bits/sigcontext.h: Likewise.
8119         * sysdeps/mach/hurd/hppa/bits/sigcontext.h: Likewise.
8120         * sysdeps/mach/hurd/mips/bits/sigcontext.h: Likewise.
8121         * sysdeps/mach/hurd/powerpc/bits/sigcontext.h: Likewise.
8123 2002-01-01  Roland McGrath  <roland@frob.com>
8125         * sysdeps/mach/hurd/errnos.awk: Tighten up device_types.h matching.
8127 2002-01-01  Ulrich Drepper  <drepper@redhat.com>
8129         * include/stdlib.h: Define inlines for the _l variants of the strto*
8130         functions.
8132 2002-01-01  Roland McGrath  <roland@frob.com>
8134         * sysdeps/mach/hurd/powerpc/intr-msg.h: Remove extraneous backslash.
8136         * mach/Machrules (MIG): Set CPP as well as CC.
8138 2001-12-31  Ulrich Drepper  <drepper@redhat.com>
8140         * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Always use C
8141         locale to parse /proc/loadavg [PR libc/2760].
8143 2001-12-31  Jakub Jelinek  <jakub@redhat.com>
8145         * elf/dl-conflict.c: Include sys/param.h.
8146         (RESOLVE_CONFLICT_FIND_MAP): Cast r_offset to ElfW(Addr).
8147         * sysdeps/alpha/dl-machine.h (elf_machine_runtime_setup): Avoid
8148         warning.
8149         (TRAMPOLINE_TEMPLATE, RTLD_START): Don't use multi-line string
8150         literals to avoid warnings.
8152 2001-12-31  Andreas Jaeger  <aj@suse.de>
8154         * configure.in: Don't check for gsed since we do not use it anywhere.
8156 2001-12-25  Dmitry V. Levin  <ldv@alt-linux.org>
8158         * io/fts.c: Update from BSD to fix memory leaks.
8160 2001-12-25  Dmitry V. Levin  <ldv@alt-linux.org>
8162         * crypt/md5-crypt.c: Realloc error handling memory leak fix.
8163         * elf/chroot_canon.c: Likewise.
8164         * elf/dl-object.c: Likewise.
8165         * iconv/iconv_charmap.c: Likewise.
8166         * iconv/iconv_prog.c: Likewise.
8167         * libio/iogetdelim.c: Likewise.
8168         * locale/lc-time.c: Likewise.
8169         * stdlib/canonicalize.c: Likewise.
8170         * sunrpc/svc.c: Likewise.
8171         * sysdeps/generic/glob.c: Likewise.
8173 2001-12-19  Martin Schwidefsky  <schwidefsky@de.ibm.com>
8175         * sysdeps/unix/sysv/linux/s390/profil-counter.h: Move/copy to ...
8176         * sysdeps/unix/sysv/linux/s390/s390-32/profil-counter.h: ... here,
8177         remove high order bit from the program counter.
8178         * sysdeps/unix/sysv/linux/s390/s390-64/profil-counter.h: ... and here.
8180 2001-12-19  Martin Schwidefsky  <schwidefsky@de.ibm.com>
8182         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): Remove
8183         unnecessary code and add missing reloc types.
8184         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Add empty
8185         case for reloc type R_390_NONE.
8187 2001-12-28  Andreas Jaeger  <aj@suse.de>
8189         * io/bug-ftw3.c: Include string.h for prototypes.
8191         * crypt/md5test.c (main): Remove unused variable.
8193         * dlfcn/modstatic.c: Add prototype to avoid warning.
8195 2001-12-26  Roland McGrath  <roland@frob.com>
8197         * sysdeps/mach/hurd/sigwait.c (__sigwait): When returning immediately,
8198         check only (SS->pending & MASK) for the signal to return.
8199         From Jeroen Dekkers <jeroen@dekkers.cx>.
8201 2001-12-22  Roland McGrath  <roland@frob.com>
8203         * iconv/skeleton.c [!RESET_INPUT_BUFFER && !SAVE_RESET_STATE]:
8204         Use preprocessor #if conditionals instead of `if' to avoid
8205         warnings about divide by zero in dead code.
8207         * hurd/Versions (libc: GLIBC_2.2.5): Add _hurd_port_set,
8208         _hurd_port_init, and __hurd_self_sigstate.
8210         * mach/Versions (libc: GLIBC_2.2.5): Add mig_strncpy.
8212 2001-12-21  Andreas Jaeger  <aj@suse.de>
8214         * elf/dblloadmod1.c: Add prototype to avoid warning.
8215         * elf/dblloadmod2.c: Likewise.
8216         * elf/dblloadmod3.c: Likewise.
8217         * elf/reldepmod5.c: Likewise.
8218         * elf/reldepmod6.c: Likewise.
8220         * elf/dl-conflict.c (_dl_resolve_conflicts): Add unused attribute
8221         for resolve_conflict_map since RESOLVE_CONFLICT_FIND_MAP is not
8222         used on all architectures.
8224         * sunrpc/svc_tcp.c: Add noreturn attribute for
8225         svctcp_rendezvous_abort.
8226         * sunrpc/svc_unix.c: Likewise for svcunix_rendezvous_abort.
8228         * sysdeps/generic/strstr.c (strstr): Add paranthese for assignment
8229         to avoid warning.
8231 2001-12-19  Jakub Jelinek  <jakub@redhat.com>
8233         * manual/llio.texi (aio_fsync): Fix a typo.
8234         Patch by Tammy Fox <tfox@redhat.com>.
8236 2001-12-18  Jakub Jelinek  <jakub@redhat.com>
8238         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (clone): Subtract
8239         stack bias from child stack pointer before passing it to clone syscall.
8241 2001-12-18  Ulrich Drepper  <drepper@redhat.com>
8243         * sysdeps/posix/sysconf.c (__sysconf): Respect POSIX minimum for
8244         _SC_TZNAME_MAX.
8245         * sysdeps/generic/sysconf.c (__sysconf): Likewise.
8246         Reported by Thorsten Kukuk <kukuk@suse.de>.
8248         * sysdeps/unix/grantpt.c (grantpt): Correct typo in comment and
8249         add some casts.
8251         * sysdeps/unix/sysv/linux/grantpt.c: Make __unix_grantpt static.
8253 2001-12-18  Thorsten Kukuk  <kukuk@suse.de>
8255         * sysdeps/unix/sysv/linux/grantpt.c: Make errno results standard
8256         conforming: return EBADF if file descriptor is invalid and EINVAL
8257         if file descriptor is no valid tty.
8258         * login/tst-grantpt.c: New file.
8259         * login/Makefile (tests): Add tst-grantpt.
8261 2001-12-17  Ulrich Drepper  <drepper@redhat.com>
8263         * io/ftw.c (ftw_dir): Handle inaccessibility of toplevel dir
8264         different than implemented in last patch.
8265         * io/bug-ftw3.c: Adjust test for changed handling of
8266         inaccessibility of toplevel dir.
8268 2001-12-16  Roland McGrath  <roland@frob.com>
8270         * nss/nsswitch.c (__nss_next): Don't use __FUNCTION__ as literal.
8271         * grp/initgroups.c (internal_getgrouplist): Likewise.
8273         * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): Add `break' after
8274         `default:' to silence new GCC warning.
8275         Rewrite cast of lvalue to silence new GCC warning.
8277         * sysdeps/mach/hurd/i386/init-first.c: Avoid multi-line strings in asm.
8279         * sysdeps/mach/hurd/spawni.c: New file, by me with a
8280         couple fixes by Neal H Walfield <neal@cs.uml.edu>.
8282 2001-12-14  Ulrich Drepper  <drepper@redhat.com>
8284         * sysdeps/generic/strstr.c (strstr): Update.  New optimized version.
8285         Patch by Stephen R. van den Berg.
8287         * crypt/md5.h: Define md5_uintptr.
8289 2001-12-13  Ulrich Drepper  <drepper@redhat.com>
8291         * libio/tst_swprintf.c (main): Add test for string argument with
8292         zero precision.
8293         * stdio-common/Makefile (tests): Add tst-sprintf.
8294         * stdio-common/tst-sprintf.c: New file.
8296 2001-12-13  Andreas Schwab  <schwab@suse.de>
8298         * stdio-common/vfprintf.c (process_string_arg): Correctly handle
8299         zero precision with wide character string format.
8301 2001-12-13  Thorsten Kukuk  <kukuk@suse.de>
8303         * sysdeps/posix/cuserid.c (cuserid): If we don't find the UID,
8304         but have a user supplied buffer, return the empty buffer, not NULL.
8306 2001-12-13  Ulrich Drepper  <drepper@redhat.com>
8308         * crypt/md5.c (md5_process_bytes): Correct handling of alignment.
8309         Patch by Eric Sharkey <sharkey@netrics.com>.
8311         * crypt/md5test.c (main): Add test for multiple calls to
8312         __md5_process_bytes to itererate over input string.
8314 2001-12-12  Ulrich Drepper  <drepper@redhat.com>
8316         * nis/nis_findserv.c (__nis_findfastest_with_timeout): Mostly the code
8317         from __nis_findfastest.  Take timeout value from parameter.
8318         (__nis_findfastest): Call __nis_findfastest_with_timeout repeatedly.
8319         * nis/nis_intern.h: Define parameters controlling __nis_findfastest
8320         [PR libc/2520].  Patch by Alexander Belopolsky <alexb@rentec.com>.
8322 2001-12-12  Andreas Jaeger  <aj@suse.de>
8324         * configure.in: Use -nostartfiles -nostdlib for linker tests, fix
8325         combreloc test so that it works in this case.
8327         * sysdeps/arm/dl-machine.h (elf_machine_rela): Fix typo in last patch.
8329 2001-12-12  NIIBE Yutaka  <gniibe@m17n.org>
8331         * sysdeps/sh/Makefile: New file.
8332         * sysdeps/sh/_mcount.S: New file.
8333         * sysdeps/sh/sysdep.h (CALL_MCOUNT): Implemented.
8334         * sysdeps/sh/machine-gmon.h: Remove "NOTYET" comment, as we are ready.
8336 2001-12-11  Ulrich Drepper  <drepper@redhat.com>
8338         * resolv/nss_dns/dns-host.c (getanswer_r): Remove MAX_NR_ADDRS
8339         limitation [PR libc/2564].
8341 2001-12-11  Jakub Jelinek  <jakub@redhat.com>
8343         * elf/Makefile (dl-routines): Add conflict.
8344         (rtld-ldscript-in, rtld-ldscript, rtld-parms): Remove.
8345         (ld.so): Add _begin local symbol.
8346         * elf/elf.h (DT_VALTAGIDX, DT_VALNUM, DT_ADDRTAGIDX, DT_ADDRNUM):
8347         Define.
8348         * elf/dl-deps.c (_dl_build_local_scope): New.
8349         (_dl_map_object_deps): If LD_TRACE_PRELINKING, compute local scopes
8350         of all libraries.
8351         * elf/do-rel.h (VALIDX): Define.
8352         (elf_dynamic_do_rel): If ELF_MACHINE_PLT_REL is defined, don't do
8353         lazy binding for RELA.  If DT_GNU_PRELINKED, DT_RELACOUNT relocations
8354         can be skipped.
8355         * elf/dl-conflict.c: New file.
8356         * elf/dl-lookup.c (_dl_debug_bindings): New.
8357         (_dl_lookup_symbol): Use _dl_debug_bindings.  Reference_name is always
8358         non-NULL.
8359         (_dl_lookup_symbol_skip): Likewise.
8360         (_dl_lookup_versioned_symbol): Likewise.
8361         (_dl_lookup_versioned_symbol_skip): Likewise.
8362         * elf/dl-runtime.c (PLTREL): If ELF_MACHINE_PLT_REL is defined,
8363         define to ElfW(Rel).
8364         * elf/dynamic-link.h (elf_get_dynamic_info): Record selected dynamic
8365         tags in the DT_VALRNGLO..DT_VALRNGHI and DT_ADDRRNGLO..DT_ADDRRNGHI
8366         ranges.
8367         Don't adjust address dynamic tags if l_addr is 0.
8368         * elf/rtld.c (_dl_trace_prelink, _dl_trace_prelink_map): New variables.
8369         (_dl_start): Skip ELF_DYNAMIC_RELOCATE if ld.so is prelinked.
8370         (VALIDX, ADDRIDX): Define.
8371         (_dl_start_final): Initialize _dl_rtld_map's l_map_start and l_map_end.
8372         (dl_main): Print library list for LD_TRACE_PRELINKING.
8373         If prelinking information can be used, skip relocating libraries and
8374         call _dl_resolve_conflicts instead.
8375         (process_envvars): Handle LD_TRACE_PRELINKING envvar.
8376         * elf/dl-load.c (_dl_map_object): Don't create fake libs
8377         if LD_TRACE_PRELINKING.
8378         * include/link.h (struct link_map) [l_info]: Add DT_VALNUM
8379         + DT_ADDRNUM.
8380         * sysdeps/generic/ldsodefs.h (_dl_trace_prelink_map): New declaration.
8381         (DL_DEBUG_PRELINK): Define.
8382         (_dl_resolve_conflicts): Add prototype.
8384         * sysdeps/alpha/dl-machine.h (elf_machine_runtime_setup): Reinitialize
8385         .plt for prelinked libraries where prelinking info cannot be used.
8386         (elf_machine_rela): If relocating R_ALPHA_JMP_SLOT in .gnu.conflict
8387         section, use RESOLVE_CONFLICT_FIND_MAP to find out reloc's link_map.
8388         * sysdeps/arm/bits/link.h: New file.
8389         * sysdeps/arm/dl-machine.h (elf_machine_runtime_setup): Save original
8390         content of .got[1].
8391         (ELF_MACHINE_NO_RELA): Only define if RTLD_BOOTSTRAP.
8392         (ELF_MACHINE_PLT_REL): Define.
8393         (elf_machine_rela, elf_machine_rela_relative): New.
8394         (elf_machine_lazy_rel): Reinitialize R_ARM_JUMP_SLOT address instead
8395         of adjusting it if prelinked and prelinking cannot be used.
8396         * sysdeps/i386/bits/link.h: New file.
8397         * sysdeps/i386/dl-machine.h (elf_machine_runtime_setup): Save original
8398         content of .got[1].
8399         (ELF_MACHINE_NO_RELA): Only define if RTLD_BOOTSTRAP.
8400         (ELF_MACHINE_PLT_REL): Define.
8401         (elf_machine_rela, elf_machine_rela_relative): New.
8402         (elf_machine_lazy_rel): Reinitialize R_386_JUMP_SLOT address instead
8403         of adjusting it if prelinked and prelinking cannot be used.
8404         * sysdeps/powerpc/dl-machine.h (elf_machine_rela): If relocating
8405         conflicts, skip finaladdr computation.  Use RESOLVE_CONFLICT_FIND_MAP
8406         to find out map for R_PPC_JMP_SLOT relocs.
8407         * sysdeps/sparc/sparc32/dl-machine.h (VALIDX): Define.
8408         (OPCODE_BA): Define.
8409         (elf_machine_runtime_setup): Reinitialize .plt for prelinked
8410         libraries where prelinking info cannot be used.
8411         (sparc_fixup_plt): Renamed from elf_machine_fixup_plt.
8412         (elf_machine_fixup_plt): Call sparc_fixup_plt.
8413         (elf_machine_rela): Set value to 0 if relocating conflicts.
8414         Call sparc_fixup_plt for R_SPARC_JMP_SLOT.
8415         * sysdeps/sparc/sparc64/dl-machine.h (VALIDX): Define.
8416         (sparc64_fixup_plt): Fix a typo.
8417         (elf_machine_rela): Set value to 0 if relocating conflicts.
8418         Handle R_SPARC_JMP_SLOT relocs when relocating conflicts.
8419         (elf_machine_runtime_setup): Reinitialize .plt for prelinked
8420         libraries where prelinking info cannot be used.
8421         * sysdeps/sh/bits/link.h: New file.
8422         * sysdeps/sh/dl-machine.h (elf_machine_runtime_setup): Save original
8423         content of .got[1].
8424         (elf_machine_lazy_rel): Reinitialize R_SH_JMP_SLOT address instead
8425         of adjusting it if prelinked and prelinking cannot be used.
8426         * sysdeps/s390/s390-32/bits/link.h: New file.
8427         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_runtime_setup):
8428         Save original content of .got[1].
8429         (elf_machine_lazy_rel): Reinitialize R_390_JMP_SLOT address instead
8430         of adjusting it if prelinked and prelinking cannot be used.
8431         * sysdeps/s390/s390-64/bits/link.h: New file.
8432         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_runtime_setup):
8433         Save original content of .got[1].
8434         (elf_machine_lazy_rel): Reinitialize R_390_JMP_SLOT address instead
8435         of adjusting it if prelinked and prelinking cannot be used.
8436         * sysdeps/x86_64/bits/link.h: New file.
8437         * sysdeps/x86_64/dl-machine.h (elf_machine_runtime_setup):
8438         Save original content of .got[1].
8439         (elf_machine_lazy_rel): Reinitialize R_X86_64_JMP_SLOT address instead
8440         of adjusting it if prelinked and prelinking cannot be used.
8442 2001-12-11  Ulrich Drepper  <drepper@redhat.com>
8444         * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_r): Use sizeof
8445         where appropriate instead of numbers.  Little optimizations.
8447 2001-12-10  Roland McGrath  <roland@frob.com>
8449         * sysdeps/mach/hurd/bind.c (bind): Don't deallocate IFSOCK if we never
8450         set it.
8452         * shlib-versions [USE_IN_LIBIO] (.*-.*-gnu-gnu.*): Set default
8453         set to GLIBC_2.2.5, not GLIBC_2.2.4.
8455         * sysdeps/mach/hurd/configure.in (libc_cv_gcc_unwind_find_fde):
8456         Fix conditionals so this is set by default for stdio and not for libio.
8457         * sysdeps/mach/hurd/configure: Regenerated.
8459 2001-12-10  Thorsten Kukuk  <kukuk@suse.de>
8461         * io/ftw.c (ftw_startup): Check, if the path is search and readable.
8463 2001-12-10  Ulrich Drepper  <drepper@redhat.com>
8465         * io/Makefile (tests): Add bug-ftw3.
8466         * io/bug-ftw3.c: New file.
8468         * sysdeps/generic/glob.c (glob): Return only pattern if nothing
8469         matches and GLOB_NOCHECK is set.
8470         * posix/globtest.sh: Correct expected result for NOCHECK test.
8472         * po/ca.po: Update from translation team.
8474 2001-12-09  Ulrich Drepper  <drepper@redhat.com>
8476         Implement transliteration of characters in strings of the locale
8477         definitions.
8478         * locale/programs/linereader.c: Adjust for additional parameter to
8479         lr_token.
8480         (get_string): If character <Uxxxx> is not found try to transliterate
8481         it.
8482         * locale/programs/ld-ctype.c: Adjust for additional parameter to
8483         lr_token.  Add const to charmap parameter of all functions.
8484         (find_translit, find_translit2): New functions.
8485         * locale/programs/charmap.c: Adjust for additional parameter to
8486         lr_token.
8487         * locale/programs/repertoire.c: Likewise.
8488         * locale/programs/linereader.h: Likewise.
8489         * locale/programs/ld-address.c: Likewise.  Add const to charmap
8490         parameter of all functions.
8491         * locale/programs/ld-collate.c: Likewise.
8492         * locale/programs/ld-identification.c: Likewise.
8493         * locale/programs/ld-measurement.c: Likewise.
8494         * locale/programs/ld-messages.c: Likewise.
8495         * locale/programs/ld-monetary.c: Likewise.
8496         * locale/programs/ld-name.c: Likewise.
8497         * locale/programs/ld-numeric.c: Likewise.
8498         * locale/programs/ld-paper.c: Likewise.
8499         * locale/programs/ld-paper.c: Likewise.
8500         * locale/programs/ld-telephone.c: Likewise.
8501         * locale/programs/ld-time.c: Likewise.
8502         * locale/programs/locfile.c: Likewise.
8503         * locale/programs/localedef.c: Likewise.
8504         * locale/programs/localedef.h: Likewise.
8505         * locale/programs/locfile.h: Likewise.  Add declaration for
8506         find_translit.
8507         * locale/programs/simple-hash.c: Add const to first parameter of
8508         find_entry, iterate_table, and lookup.
8509         * locale/programs/simple-hash.h: Likewise.
8510         * locale/localeinfo.h: Don't define __LC_LAST here.  Include <locale.h>
8511         instead.
8512         * include/locale.h: Define __LC_LAST.
8513         * iconv/Makefile (CFLAGS-linereader.c): Define to -DNO_TRANSLITERATION.
8515 2001-12-07  Geoff Keating  <geoffk@redhat.com>
8517         * sysdeps/powerpc/Dist: Update for recent FP changes.
8518         * sysdeps/powerpc/fpu/Dist: Likewise.
8520 2001-12-07  Andreas Schwab  <schwab@suse.de>
8522         * sysdeps/unix/sysv/linux/opensock.c: Include <string.h>.
8524 2001-12-06  Geoff Keating  <geoffk@redhat.com>
8526         * sysdeps/powerpc/Makefile (sysdep_routines): Don't build the fpr
8527         save/restore functions here.
8528         (libm-support): Don't define these functions here.
8529         * sysdeps/powerpc/fpu/Makefile: Build the fpr save/restore
8530         functions here.
8531         * sysdeps/powerpc/fe_nomask.c: Move to...
8532         * sysdeps/powerpc/fpu/fe_nomask.c: ... here.
8533         * sysdeps/powerpc/fprrest.S: Move to...
8534         * sysdeps/powerpc/fpu/fprrest.S: ... here.
8535         * sysdeps/powerpc/fprsave.S: Move to...
8536         * sysdeps/powerpc/fpu/fprsave.S: ... here.
8538 2001-12-06  Ulrich Drepper  <drepper@redhat.com>
8540         * sysdeps/unix/sysv/linux/opensock.c: New file.
8542 2001-12-06  Geoff Keating  <geoffk@redhat.com>
8544         * config.make.in (with-fp): Define from configure.
8545         * configure.in: Substitute with_fp.
8546         * configure: Regenerate.
8547         * sysdeps/powerpc/Makefile: Set -msoft-float when --without-fp is
8548         specified, and don't change FPU environment.
8550 2001-12-06  Ulrich Drepper  <drepper@redhat.com>
8552         * libio/vasprintf.c (_IO_vasprintf): Free buffer on failure.
8553         * assert/assert.c: Check result of __asprintf call and don't use
8554         string if it failed.
8555         * assert/assert-perr.c: Likewise.
8556         * inet/rcmd.c: Likewise.
8557         * locale/programs/localedef.c (main): Check result of
8558         construct_output_path and exit if it failed.
8559         (construct_output_path): Check result of asprintf and mkdir calls and
8560         fail if they failed.
8561         * posix/getopt.c: Check result of __asprintf calls and fail if
8562         they failed.
8563         Patch by Dmitry V. Levin <ldv@alt-linux.org>.
8565 2001-12-05  Ulrich Drepper  <drepper@redhat.com>
8567         * sysdeps/generic/strcasecmp.c (__strcasecmp): Little performance
8568         patch.
8569         * sysdeps/generic/strncase.c: Likewise.
8570         * string/tester.c: Add tests for strcasecmp and strncasecmp.
8572 2001-12-05  Geoff Keating  <geoffk@redhat.com>
8574         * scripts/cpp: Test the exit status from 'type', not 'awk'.
8576         * sysdeps/powerpc/__longjmp.S: Don't restore FP registers.
8577         * sysdeps/powerpc/fpu/__longjmp.S: Do restore FP registers.
8578         * sysdeps/powerpc/setjmp.S: Don't save FP registers.
8579         * sysdeps/powerpc/fpu/setjmp.S: Do save FP registers.
8580         * sysdeps/powerpc/fclrexcpt.c: Move to...
8581         * sysdeps/powerpc/fpu/fclrexcpt.c: ... here.
8582         * sysdeps/powerpc/fpu_control.h: Move to...
8583         * sysdeps/powerpc/fpu/fpu_control.h: ... here.
8585 2001-12-05  Ulrich Drepper  <drepper@redhat.com>
8587         * iconvdata/ibm1129.h: Remove duplicate mappings.
8588         * iconvdata/ibm937.c: Handle overflow errors.  Handle new tables.
8589         * iconvdata/ibm937.h: Reorganize table to safe a lot of space.
8590         Patch by Masahide Washizawa <WASHI@jp.ibm.com>.
8592         * timezone/zic.c: Fix handling of turnaround times.
8593         Patch by Arthur David Olson <olsona@dc37a.nci.nih.gov>.
8595 2001-12-02  Moshe Olshansky  <OLSHANSK@il.ibm.com>
8597         * sysdeps/ieee754/dbl-64/e_remainder.c (__ieee754_remainder): Fix
8598         overflow problem.
8600 2001-12-05  Ulrich Drepper  <drepper@redhat.com>
8602         * posix/regex.c: For use outside glibc defined bounded pointer
8603         macros here.  Patch by Jim Meyering <jim@meyering.net>.
8605         * iconvdata/Makefile (modules): Add TCVN5712-1.
8606         * iconvdata/TESTS: Add TCVN5712-1.
8607         * iconvdata/gconv-modules: Likewise.
8608         * iconvdata/tcvn5712-1.c: New file.
8609         * iconvdata/testdata/TCVN-5712: New file.
8610         * iconvdata/testdata/TCVN-5712..UTF8: New file.
8612 2001-12-04  Ulrich Drepper  <drepper@redhat.com>
8614         * iconvdata/cp1258.c: Optimize conversion from UCS4.
8616 2001-12-02  Roland McGrath  <roland@frob.com>
8618         * mach/Makefile, mach/Machrules: Move comments out of \ continuations.
8620         * hurd/hurd.h (__hurd_fail): Add `break;' to silence new gcc-3 warning.
8621         Reported by Jeff Bailey <jbailey@nisa.net>.
8623         * hurd/hurd.h (_hurd_umask): Remove volatile qualifier from decl.
8624         Reported by Jeff Bailey <jbailey@nisa.net>.
8626         * mach/Makefile ($(objpfx)mach-syscalls.mk): Pass $(CFLAGS) to $(CC).
8627         * mach/Machrules ($(objpfx)%.udeps static pattern rule): Likewise.
8628         Reported by Jeff Bailey <jbailey@nisa.net>.
8630 2001-12-01  Roland McGrath  <roland@frob.com>
8632         * sysdeps/mach/hurd/configure.in (libc_cv_gcc_unwind_find_fde): Add
8633         missing backslash in test arguments.
8634         * sysdeps/mach/hurd/configure: Regenerated.
8636 2001-11-26  Roland McGrath  <roland@frob.com>
8638         * hurd/hurdinit.c (_hurd_ports_use): Check if _hurd_ports is null.
8639         Reported by John Tobey <jtobey@john-edwin-tobey.org>.
8641 2001-11-30  Ulrich Drepper  <drepper@redhat.com>
8643         * iconvdata/Makefile (modules): Add ARMSCII-8.
8644         * iconvdata/gconv-modules: Add entries for ARMSCII-8.
8645         * iconvdata/armscii-8.c: New file.
8647 2001-11-29  Jakub Jelinek  <jakub@redhat.com>
8649         * sysdeps/generic/glob.c (next_brace_sub): Return NULL if braces
8650         don't match, fix {{a,b},c} globbing, clean up.
8651         Patch by Flavio Veloso <flaviovs@magnux.com>.
8652         * posix/globtest.sh: Add new tests.
8654 2001-11-29  Andreas Jaeger  <aj@suse.de>
8656         * sysdeps/unix/sysv/linux/x86_64/Versions: Add arch_prctl.
8657         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Add arch_prctl call.
8659         * sysdeps/generic/abort.c: Include libioP.h for
8660         _IO_flush_all_lockp prototype.
8662 2001-11-29  Ulrich Drepper  <drepper@redhat.com>
8664         * posix/regex.h: Define __restrict_arr correctly.
8666 2001-11-28  Ulrich Drepper  <drepper@redhat.com>
8668         * iconvdata/ibm1163.c: New file.
8669         * iconvdata/ibm1163.h: New file.
8670         * iconvdata/ibm1164.c: New file.
8671         * iconvdata/ibm1164.h: New file.
8672         * iconvdata/TESTS: Add entries for IBM1163 and IBM1164.
8673         * iconvdata/Makefile: Likewise.
8674         * iconvdata/testdata/IBM1163: New file.
8675         * iconvdata/testdata/IBM1163..UTF8: New file.
8676         * iconvdata/testdata/IBM1164: New file.
8677         * iconvdata/testdata/IBM1164..UTF8: New file.
8678         Patch by Masahide Washizawa <WASHI@jp.ibm.com>.
8680         * iconvdata/ibm1046.h: Optimize.  Remove duplicate mappings.
8681         * iconvdata/ibm1124.h: Likewise.
8682         * iconvdata/ibm1132.h: Likewise.
8683         * iconvdata/ibm1133.h: Likewise.
8684         * iconvdata/ibm1160.h: Likewise.
8685         * iconvdata/ibm1161.h: Likewise.
8686         * iconvdata/ibm1162.h: Likewise.
8687         * iconvdata/ibm856.h: Likewise.
8688         * iconvdata/ibm922.h: Likewise.
8689         * iconvdata/ibm930.h: Likewise.
8690         * iconvdata/ibm932.h: Likewise.
8691         * iconvdata/ibm933.h: Likewise.
8692         * iconvdata/ibm935.h: Likewise.
8693         * iconvdata/ibm937.h: Likewise.
8694         * iconvdata/ibm939.h: Likewise.
8695         * iconvdata/ibm943.h: Likewise.
8696         * iconvdata/ibm930.c: Pretty printing.
8697         * iconvdata/ibm937.c: Avoid access accross array boundary.
8699         * iconv/gconv_open.c (__gconv_open): Empty codeset name now means using
8700         the current locale's codeset.
8701         * iconv/iconv_open.c (iconv_open): Don't strip out everything for
8702         empty input string.
8703         * iconv/iconv_prog.c: Pass empty strings as default value for to-
8704         and from-charset.  Don't determine locale's charset here.
8706         * libio/genops.c (_IO_flush_all_lockp): New function.  The same code
8707         as the old _IO_flush_all but lock only if parameter is nonzero.
8708         (_IO_flush_all): Call _IO_flush_all_lockp with 1 as parameter.
8709         * libio/libioP.h: Add prototype for _IO_flush_all_lockp.
8710         * sysdeps/generic/abort.c (fflush): Define to _IO_flush_all_lockp(0)
8711         if libio is used [PR libc/2575].
8713 2001-11-28  Jakub Jelinek  <jakub@redhat.com>
8715         * sysdeps/sparc/fpu/bits/mathinline.h (__signbitf, __signbit,
8716         __signbitl): Only define for ISO C99.
8718 2001-11-22  Thorsten Kukuk  <kukuk@suse.de>
8720         * nss/nss_files/files-hosts.c (_nss_files_get##name##_r): Set
8721         herrnop to NETDB_INTERNAL if we run out of buffer space.
8723 2001-11-28  Ulrich Drepper  <drepper@redhat.com>
8725         * nss/nss_files/files-XXX.c (internal_getent): Correct input
8726         overflow test for platforms with signed char.
8727         Reported by Andrew Haley <aph@cambridge.redhat.com>.
8729 2001-11-28  Bruno Haible  <bruno@clisp.org>
8731         * locale/programs/simple-hash.c (lookup_2): Remove function.
8732         (insert_entry_2): Call lookup instead of lookup_2.
8734 2001-03-04  Bruno Haible  <bruno@clisp.org>
8736         * intl/dcigettext.c (DCIGETTEXT): Increment path_max proportionally.
8738 2001-10-31  Bruno Haible  <bruno@clisp.org>
8740         * intl/plural.y: Include <stddef.h>, needed for NULL with SunOS 4 cc.
8742 2001-03-21  Bruno Haible  <bruno@clisp.org>
8744         * intl/dcigettext.c (_nl_state_lock): Mark as #ifdef _LIBC. AIX 3 xlc
8745         chokes on empty macro arguments.
8746         * intl/plural.y: Add #pragma for alloca on AIX 3.
8748 2001-11-27  Ulrich Drepper  <drepper@redhat.com>
8750         * intl/dcigettext.c (guess_category_value): Only implement for
8751         glibc.  Otherwise rely on function _nl_locale_name which isn't
8752         present in the glibc sources.
8754 2001-09-24  Bruno Haible  <bruno@clisp.org>
8756         * intl/loadmsgcat.c (_nl_init_domain_conv): Also enable
8757         transliteration when building on a glibc system but outside glibc.
8759 2001-09-22  Bruno Haible  <bruno@clisp.org>
8761         * intl/plural-eval.c: New file, extracted from dcigettext.c.
8762         * intl/dcigettext.c (plural_eval): Remove function, moved to
8763         intl/plural-eval.c.
8764         (plural_lookup): Call PLURAL_EVAL instead of plural_eval.
8765         Include plural-eval.c.
8767 2001-09-22  Bruno Haible  <bruno@clisp.org>
8769         * intl/plural-exp.c (EXTRACT_PLURAL_EXPRESSION): Reject numbers that
8770         don't start with a digit; nplurals must be positive.
8772 2001-09-02  Bruno Haible  <bruno@clisp.org>
8774         * intl/plural-exp.h: New file, extracted from gettextP.h.
8775         * intl/plural-exp.c: New file, extracted from loadmsgcat.c.
8776         * intl/gettextP.h (struct expression, struct parse_args,
8777         __gettext_free_exp, __gettextparse): Move to plural-exp.h.
8778         * intl/loadmsgcat.c: Include plural-exp.h.
8779         (PLURAL_PARSE): Move macro to plural-exp.h.
8780         (plvar, plone, germanic_plural, INIT_GERMANIC_PLURAL): Move to
8781         plural-exp.c.
8782         (_nl_load_domain): Move plural handling code to plural-exp.c.  Call
8783         EXTRACT_PLURAL_EXPRESSION.
8784         (_nl_unload_domain): Update.
8785         * intl/dcigettext.c: Include plural-exp.h.
8786         * intl/plural.y: Include plural-exp.h, not gettextP.h.
8787         (FREE_EXPRESSION): Move macro to plural-exp.h.
8788         * intl/Makefile (routines): Add plural-exp.
8789         (distribute): Add plural-exp.h.
8791 2001-07-28  Bruno Haible  <bruno@clisp.org>
8793         * intl/l10nflist.c (_nl_normalize_codeset): Cast isalnum, isalpha,
8794         isdigit, tolower argument to 'unsigned char'.
8795         * intl/loadmsgcat.c (_nl_load_domain): Cast isspace argument to
8796         'unsigned char'.
8797         * intl/localealias.c (read_alias_file): Cast isspace argument to
8798         'unsigned char'.
8800 2001-10-20  Bruno Haible  <bruno@clisp.org>
8802         Assume strchr() exists. (Without it, intl/explodename.c wouldn't link
8803         anyway.)
8804         * intl/dcigettext.c (strchr): Remove fallback definition; it conflicts
8805         with the variable 'index' in plural_lookup.
8806         * intl/l10nflist.c (strchr): Likewise.
8807         * intl/localealias.c (strchr): Likewise.
8809         Assume <stddef.h>, <stdlib.h>, <string.h>, <locale.h> exist.
8810         * intl/bindtextdom.c: Likewise.
8811         * intl/dcigettext.c: Likewise.
8812         * intl/dgettext.c: Likewise.
8813         * intl/dngettext.c: Likewise.
8814         * intl/explodename.c: Likewise.
8815         * intl/finddomain.c: Likewise.
8816         * intl/gettext.c: Likewise.
8817         * intl/l10nflist.c: Likewise.
8818         * intl/loadmsgcat.c: Likewise.
8819         * intl/localealias.c: Likewise.
8820         * intl/ngettext.c: Likewise.
8821         * intl/textdomain.c: Likewise.
8822         * intl/gettext.h: Assume <limits.h> exists.
8824 2001-11-27  Ulrich Drepper  <drepper@redhat.com>
8826         * stdio-common/Makefile (tests): Add scanf11.
8827         * stdio-common/scanf11.c: New file.
8829 2001-11-26  Ulrich Drepper  <drepper@redhat.com>
8831         * version.h (RELEASE): Define as development.
8832         (VERSION): Set to 2.2.90.
8834 2001-11-22  Thorsten Kukuk  <kukuk@suse.de>
8836         * nis/nss_compat/compat-grp.c: Print group id as unsigned long.
8837         * nis/nss_nis/nis-grp.c: Likewise.
8838         * nis/nss_nisplus/nisplus-grp.c: Likewise.
8840         * nis/nss_compat/compat-pwd.c: Print user id as unsigned long.
8841         * nis/nss_nis/nis-pwd.c: Likewise.
8842         * nis/nss_nisplus/nisplus-pwd.c: Likewise.
8844         * nis/nss_nis/nis-publickey.c: Use strtoul instead of atoi.
8845         * nis/nss_nisplus/nisplus-parser.c: Likewise.
8846         * nis/nss_nisplus/nisplus-publickey.c: Likewise.
8848         * nscd/grpcache.c: Use strtoul instead of atol.
8849         * nscd/pwdcache.c: Likewise.
8850         * nss/getent.c: Likewise.
8852 2001-11-27  Paul Eggert  <eggert@twinsun.com>
8854         * sysdeps/posix/tempname.c (__gen_tempname): Try at least
8855         ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
8857 2001-11-19  Bruno Haible  <bruno@clisp.org>
8859         * locale/programs/simple-hash.c (insert_entry_2): Resize at 75%, not
8860         90%.
8861         (compute_hashval): Shift by 9 bits, not by 4 bits. This drastically
8862         improves the quality of the hash function, especially for short
8863         strings.
8865 2001-11-26  Ulrich Drepper  <drepper@redhat.com>
8867         * stdio-common/vfscanf.c: If incomplete nan of inf(inity) strings
8868         are found call conv_error and not input_error [PR libc/2669].
8870         * math/bits/mathcalls.h: Mark ceil and floor as const.
8871         Reported by David Mosberger.
8873 2001-11-21  Jim Meyering  <meyering@lucent.com>
8875         * posix/regex.c (iswctype, mbrtowc, wcslen, wcscoll, wcrtomb) [_LIBC]:
8876         Define to be __-prefixed.
8877         Remove unnecessary duplication in `#ifdef _LIBC' blocks.
8879 2001-11-26  Andreas Jaeger  <aj@suse.de>
8881         * sysdeps/unix/sysv/linux/hppa/brk.c: Remove __brk_addr alias,
8882         avoid warning.
8884 2001-11-26  Stephen L Moshier <moshier@mediaone.net>
8886         * sysdeps/ieee754/ldbl-128/e_log10l.c (L102B): Fix typo in
8887         initialization.
8889         * sysdeps/ieee754/ldbl-128/e_coshl.c (__ieee754_coshl): Remove
8890         unused variables.  Fix threshold for returning 1.0.
8892         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (neval, deval): Constify
8893         argument.
8895         * sysdeps/ieee754/ldbl-128/s_erfl.c (neval, deval): Likewise, and
8896         remove unused variables.
8898         * sysdeps/ieee754/ldbl-128/e_j0l.c (neval, deval): Likewise.
8900         * sysdeps/ieee754/ldbl-128/e_j1l.c (neval, deval): Likewise, and
8901         include local math header files.
8903 2001-11-22  Andreas Jaeger  <aj@suse.de>
8905         * sysdeps/ieee754/ldbl-96/s_ilogbl.c (__ilogbl): Add brace to
8906         avoid warning.
8908 2001-11-21  Andreas Jaeger  <aj@suse.de>
8910         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: New file.
8912         * sysdeps/unix/sysv/linux/x86_64/Makefile (sysdep_headers): Add
8913         sys/debugreg.h
8915 2001-11-15  Andreas Jaeger  <aj@suse.de>
8917         * include/features.h (__GLIBC_HAVE_LONG_LONG): Define for
8918         compilers that support it.
8920         * posix/sys/types.h: Use __GLIBC_HAVE_LONG_LONG.
8921         * sysdeps/unix/sysv/linux/bits/types.h: Likewise.
8922         * stdlib/stdlib.h: Likewise.
8924 2001-11-17  Ulrich Drepper  <drepper@redhat.com>
8926         * posix/regex.c (byte_re_match_2_internal): For gcc replace switch
8927         statement with gotos.
8928         Based on a patch by Paolo Bonzini <bonzini@pc-amo3.elet.polimi.it>.
8930 2001-11-16  Stephen L Moshier  <moshier@mediaone.net>
8932         * sysdeps/ieee754/ldbl-96/s_erfl.c (__erfcl): Fix K&R header.
8934 2001-11-15  Ulrich Drepper  <drepper@redhat.com>
8936         * sysdeps/generic/unwind-dw2-fde.c: Don't use recursive mutexes.
8938 2001-10-02  Jakub Jelinek  <jakub@redhat.com>
8939             H.J. Lu  <hjl@gnu.org>
8941         * Versions.def (libc): Add GCC_3.0.
8942         * configure.in (libc_cv_gcc_static_libgcc): Set to -static-libgcc
8943         if gcc supports this flag.
8944         (EXPORT_UNWIND_FIND_FDE): Define unless target configure disables it.
8945         (gcc3): Allow glibc to be compiled with gcc 3.x.
8946         * config.h.in (EXPORT_UNWIND_FIND_FDE): Add.
8947         * config.make.in (static-libgcc, unwind-find-fde): Add.
8948         * Makerules (build-shlib-helper, build-module-helper): Use it.
8949         * scripts/versions.awk: Make sure GLIBC_ versions come first.
8950         * elf/soinit.c (__libc_global_ctors): Set tbases and dbases if
8951         necessary.
8952         (_fini): Call __deregister_frame_info_bases if
8953         __register_frame_info_bases was used to register.
8954         * elf/Versions (__register_frame_info, __deregister_frame_info): Add
8955         for GLIBC_2.0.
8956         (__register_frame_info_bases, __register_frame_info_table_bases,
8957         __deregister_frame_info_bases, _Unwind_Find_FDE): Add for GCC_3.0.
8958         * elf/Makefile (routines): Add unwind-dw2-fde.
8959         (shared-only-routines): Add unwind-dw2-fde.
8960         * sysdeps/alpha/gccframe.h: New file.
8961         * sysdeps/arm/gccframe.h: New file.
8962         * sysdeps/generic/framestate.c: New file.
8963         * sysdeps/generic/dwarf2.h: New file.
8964         * sysdeps/generic/gccframe.h (struct object): Update from gcc 3.0.
8965         * sysdeps/generic/unwind-dw2-fde.c: New file.
8966         * sysdeps/unix/sysv/linux/ia64/unwind-dw2-fde.c: New file.
8967         * sysdeps/generic/unwind-dw2-fde.h: New file.
8968         * sysdeps/generic/unwind-dw2.c: New file.
8969         * sysdeps/generic/unwind-pe.h: New file.
8970         * sysdeps/generic/unwind.h: New file.
8971         * sysdeps/hppa/gccframe.h: New file.
8972         * sysdeps/i386/gccframe.h: New file.
8973         * sysdeps/m68k/gccframe.h: New file.
8974         * sysdeps/mips/gccframe.h: New file.
8975         * sysdeps/powerpc/gccframe.h: New file.
8976         * sysdeps/s390/gccframe.h: New file.
8977         * sysdeps/sh/gccframe.h: New file.
8978         * sysdeps/sparc/gccframe.h: New file.
8979         * sysdeps/vax/gccframe.h: New file.
8980         * sysdeps/unix/sysv/linux/configure.in (libc_cv_gcc_unwind_find_fde):
8981         Set on all architectures except ia64.
8982         * sysdeps/mach/hurd/configure.in (libc_cv_gcc_unwind_find_fde): Set
8983         for i386.
8984         * sysdeps/mach/hurd/i386/Versions (__register_frame_info,
8985         __deregister_frame_info): Move to elf/Versions.
8986         * sysdeps/unix/sysv/linux/m68k/Versions: Likewise.
8987         * sysdeps/unix/sysv/linux/arm/Versions: Likewise.
8988         * sysdeps/unix/sysv/linux/alpha/Versions: Likewise.
8989         * sysdeps/unix/sysv/linux/i386/Versions: Likewise.
8990         * sysdeps/unix/sysv/linux/mips/Versions: Likewise.
8991         * sysdeps/unix/sysv/linux/powerpc/Versions: Likewise.
8992         * sysdeps/unix/sysv/linux/s390/s390-32/Versions: Likewise.
8993         * sysdeps/unix/sysv/linux/sparc/sparc32/Versions: Likewise.
8994         * sysdeps/unix/sysv/linux/sparc/sparc64/Versions: Likewise.
8995         * sysdeps/mach/hurd/i386/Makefile (sysdep-routines): Add framestate.
8996         * sysdeps/unix/sysv/linux/arm/Makefile: Likewise.
8997         * sysdeps/unix/sysv/linux/alpha/Makefile: Likewise.
8998         * sysdeps/unix/sysv/linux/i386/Makefile: Likewise.
8999         * sysdeps/unix/sysv/linux/m68k/Makefile: Likewise.
9000         * sysdeps/unix/sysv/linux/mips/Makefile: Likewise.
9001         * sysdeps/unix/sysv/linux/powerpc/Makefile: Likewise.
9002         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Likewise.
9003         * sysdeps/unix/sysv/linux/sparc/Makefile: Likewise.
9005 2001-11-15  Jeff Law  <law@redhat.com>
9007         * posix/regex.c (uintptr_t): Do not provide a definition if the
9008         system provided one.
9010 2001-11-13  Roland McGrath  <roland@frob.com>
9012         * stdio-common/tmpfile.c: Moved to ...
9013         * sysdeps/generic/tmpfile.c: ... here.
9014         * sysdeps/mach/hurd/tmpfile.c: New file.
9016         * hurd/fopenport.c (__fopenport): Renamed from fopenport.
9017         [USE_IN_LIBIO] (fopencookie): #define as _IO_fopencookie.
9018         (fopenport): Define as weak alias.
9020         * libio/iofopncook.c (_IO_fopencookie): Move forward declaration ...
9021         * libio/libioP.h: ... to here.
9023 2001-11-12  Ulrich Drepper  <drepper@redhat.com>
9025         * elf/dl-reloc.c (_dl_relocate_object): Avoid iterating over
9026         program header twice.  Construct list with the needed information.
9028 2001-11-10  Ulrich Drepper  <drepper@redhat.com>
9030         * po/ca.po: Update from translation team.
9032         * elf/dl-load.c (_dl_map_object_from_fd): Remove use of
9033         _dl_pf_to_prot.  Use arithmetic operation using PF_TO_PROT macro.
9034         * sysdeps/generic/ldsodefs.h (PF_TO_PROT): New macro.
9035         * elf/dl-reloc.c (_dl_relocate_object): Likewise.
9037 2001-11-10  Andreas Jaeger  <aj@suse.de>
9039         * sysdeps/ieee754/ldbl-128/e_log2l.c: New file.
9040         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
9041         Contributed by Stephen L Moshier <moshier@mediaone.net>.
9043 2001-11-09  Ulrich Drepper  <drepper@redhat.com>
9045         * elf/dl-minimal.c (realloc): Handle NULL for first parameter
9046         correctly.
9047         * elf/dl-load.c (is_dst): New function.
9048         (_dl_dst_count): Use is_dst to check for DST variable.
9049         (_dl_dst_substitute): Likewise.
9051 2001-11-09  Roland McGrath  <roland@frob.com>
9053         Hurd/PowerPC port contributed by Peter Bruin <pjbruin@dds.nl>.
9054         * sysdeps/mach/hurd/powerpc/exc2signal.c: New file.
9055         * sysdeps/mach/hurd/powerpc/init-first.c: New file.
9056         * sysdeps/mach/hurd/powerpc/intr-msg.h: New file.
9057         * sysdeps/mach/hurd/powerpc/longjmp-ts.c: New file.
9058         * sysdeps/mach/hurd/powerpc/register-dump.h: New file.
9059         * sysdeps/mach/hurd/powerpc/sigreturn.c: New file.
9060         * sysdeps/mach/hurd/powerpc/static-start.S: New file.
9061         * sysdeps/mach/hurd/powerpc/trampoline.c: New file.
9062         * sysdeps/mach/hurd/powerpc/bits/sigcontext.h: New file.
9063         * sysdeps/mach/hurd/powerpc/Dist: New file.
9065         * hurd/privports.c (__get_privileged_ports):
9066         Only contact the proc server if necessary for this call.
9067         Suggested by Neal H Walfield <neal@cs.uml.edu>.
9068         Check error return for mach_port_mod_refs.
9070 2001-11-09  Andreas Schwab  <schwab@suse.de>
9072         * sysdeps/unix/sysv/linux/m68k/bits/resource.h: New file.
9074 2001-11-09  Ulrich Drepper  <drepper@redhat.com>
9076         * elf/dl-load.c (lose): Remove some unnecessary code.  The new
9077         object is always the last in the list.
9078         (_dl_map_object_from_fd): Delete code to remove from object list
9079         when DF_1_NOOPEN is seen.  This is done in lose.
9081 2001-11-08  Ulrich Drepper  <drepper@redhat.com>
9083         * elf/dl-object.c (_dl_new_object): Various small optimizations.
9085 2001-11-07  Ulrich Drepper  <drepper@redhat.com>
9087         * sysdeps/generic/dl-cache.c: Optimize SEARCH_CACHE and
9088         HWCAP_CHECK macro code.
9090         * elf/dl-misc.c (_dl_sysdep_read_whole_file): Optimize code a bit.
9091         Now returns MAP_FAILED on error.
9092         * elf/rtld.c: Adjust caller.
9093         * sysdeps/generic/dl-cache.c: Likewise.
9094         * sysdeps/generic/ldsodefs.h: Adjust description.
9096         * elf/dl-version.c (match_symbol): Optimize error handling for size.
9097         (_dl_check_map_versions): Likewise.
9099 2001-11-06  Ulrich Drepper  <drepper@redhat.com>
9101         * elf/dl-load.c (_dl_map_object_from_fd): Don't call
9102         _dl_signal_error directly, always use lose.  Set fd to -1 after
9103         file is closed.
9104         (lose): Don't call close if fd == -1.
9106 2001-11-07  Kaoru Fukui  <k_fukui@highway.ne.jp>
9108         * manual/charset.texi: Fix typo @w[ISO 6937] to  @w{ISO 6937}.
9109          Also fix typo @code {mbsinit} to @code{mbsinit}.
9111 2001-11-06  Ulrich Drepper  <drepper@redhat.com>
9113         * elf/dl-profile.c: Replace state variable with simple flag named
9114         running.  Remove commented-out code.
9116         * elf/dl-load.c (decompose_rpath): Optimize error handling for size.
9117         (_dl_init_paths): Likewise.
9118         (_dl_map_object_from_fd): Likewise.
9119         * elf/dl-reloc.c (_dl_relocate_object): Likewise.
9121 2001-11-06  Roland McGrath  <roland@frob.com>
9123         * sysdeps/mach/powerpc/sysdep.h: Include sysdeps/unix/powerpc/sysdep.h
9124         instead of sysdeps/powerpc/elf/sysdep.h and sysdeps/unix/sysdep.h.
9126         * sysdeps/unix/sysv/linux/powerpc/sysdep.h: Don't include
9127         sysdeps/powerpc/elf/sysdep.h.
9128         Reported by Kaoru Fukui <k_fukui@highway.ne.jp>.
9130 2001-11-05  Ulrich Drepper  <drepper@redhat.com>
9132         * elf/rtld.c (process_dl_debug): Rewritten.  Optimized for size not
9133         speed.
9134         (process_envvars): Some more optimizations.
9135         * sysdeps/generic/ldsodefs.h (DL_DEBUG_HELP): New macro.
9137         * elf/elf.h: Add dynamic tag definitions for prelinking.
9139         * elf/rtld.c (process_envvars): Avoid using array of string pointers.
9140         Rewrite code to remove environment varables for SUID binaries.
9141         Small optimization in LD_PROFILE handling.
9142         * sysdeps/generic/unsecvars.h: Adjust format for process_envvars
9143         changes.
9144         * sysdeps/unix/sysv/linux/i386/dl-librecon.h: Likewise.
9146         * sysdeps/generic/dl-sysdep.c: Don't initialize _dl_cpuclock_offset.
9148         * elf/dl-reloc.c (_dl_reloc_bad_type): Rewrite to not use writable
9149         strings.  Change type of second parameter.
9150         * sysdeps/generic/ldsodefs.h: Adjust _dl_reloc_bad_type prototype
9151         for last change.
9153         * io/fts.h: Prevent using <fts.h> with _FILE_OFFSET_BITS=64.
9155 2001-11-04  Joseph S. Myers  <jsm28@cam.ac.uk>
9157         * manual/string.texi: Fix typos.
9158         * manual/examples/argp-ex2.c: Likewise.
9160 2001-11-05  Roland McGrath  <roland@frob.com>
9162         * sysdeps/powerpc/elf/sysdep.h: Remove this file, because it overrides
9163         the more-specific unix/sysv/linux/powerpc file and breaks everything.
9164         * sysdeps/powerpc/sysdep.h (ALIGNARG, ASM_TYPE_DIRECTIVE,
9165         ASM_SIZE_DIRECTIVE, CALL_MCOUNT, ENTRY, EALIGN, DO_CALL, JUMPTARGET,
9166         PSEUDO, PSEUDO_RET, PSEUDO_END, L, C_TEXT): These macros moved here
9167         here, put under [__ELF__].
9169 2001-11-05  Ulrich Drepper  <drepper@redhat.com>
9171         * manual/charset.texi: Extensive editing work.
9172         * manual/nss.texi: Likewise.
9173         Changes by Dennis Grace <dgrace@us.ibm.com>.
9175 2001-11-04  Roland McGrath  <roland@frob.com>
9177         * hurd/set-host.c (_hurd_set_host_config): Use O_WRONLY in flags
9178         parameter to dir_mkfile.
9180 2001-11-02  Jakub Jelinek  <jakub@redhat.com>
9182         * string/bits/string2.h (__strndup): If n is smaller than len, set
9183         len to n + 1.
9184         * string/tester.c (test_strndup): New function.
9185         (main): Call it.
9187 2001-11-01  Ulrich Drepper  <drepper@redhat.com>
9189         * sunrpc/rpc_main.c: Optimize variable definitions a bit.
9191         * sunrpc/Makefile (rpcgen-cmd): Use ../scripts/cpp in rpcgen calls.
9192         * scripts/cpp: New file.
9194         * elf/dl-load.c (_dl_map_object): Correct test of DF_1_NODEFLIB
9195         for rtld_search_dirs content.  Minor optimizations.
9197 2001-10-31  Ulrich Drepper  <drepper@redhat.com>
9199         * elf/dl-load.c (_dl_map_object): Make code a bit more compact by
9200         avoiding unnecessary duplication.
9202 2001-10-31  Jakub Jelinek  <jakub@redhat.com>
9204         * elf/dl-load.c (_dl_map_object): If library was found using
9205         LD_LIBRARY_PATH, don't try RUNPATH list.
9207 2001-10-31  Martin Schwidefsky  <schwidefsky@de.ibm.com>
9209         * sysdeps/unix/sysv/linux/s390/s390-32/register-dump.h (REGISTER_DUMP):
9210         Correct second argument of register_dump call.
9211         * sysdeps/unix/sysv/linux/s390/s390-64/register-dump.h (REGISTER_DUMP):
9212         Likewise.
9214 2001-10-31  Ulrich Drepper  <drepper@redhat.com>
9216         * iconvdata/Makefile: Add support for IBM1132, IBM1133, and IBM1162
9217         modules.
9218         * iconvdata/TESTS: Likewise.
9219         * iconvdata/gconv-modules: Likewise.
9220         * iconvdata/ibm1132.c: New file.
9221         * iconvdata/ibm1132.h: New file.
9222         * iconvdata/ibm1133.c: New file.
9223         * iconvdata/ibm1133.h: New file.
9224         * iconvdata/ibm1162.c: New file.
9225         * iconvdata/ibm1162.h: New file.
9226         * iconvdata/testdata/IBM1132: New file.
9227         * iconvdata/testdata/IBM1132..UTF8: New file.
9228         * iconvdata/testdata/IBM1133: New file.
9229         * iconvdata/testdata/IBM1133..UTF8: New file.
9230         * iconvdata/testdata/IBM1162: New file.
9231         * iconvdata/testdata/IBM1162..UTF8: New file.
9232         Patches by Masahide Washizawa <WASHI@jp.ibm.com>.
9234         * string/string.h: Fix typo in comment.
9235         * wcsmbs/wchar.h: Likewise.
9237 2001-10-30  Joseph S. Myers  <jsm28@cam.ac.uk>
9239         * manual/getopt.texi (getopt_long, getopt_long_only): Include
9240         const in type of longopts parameter.
9242 2001-10-29  Andreas Jaeger  <aj@suse.de>
9244         * sysdeps/ieee754/dbl-64/mpa.h: Add prototypes for internal functions.
9246 2001-10-29  Kevin Ryde  <user42@zip.com.au>
9248         * manual/stdio.texi (Integer Conversions): Corrections to sample printf
9249         output, clarify `#' behaviour on 0.
9250         (Floating-Point Conversions): Clarify that %g only uses %e when
9251         the exponent would be greater than 1.
9253 2001-10-28  Roland McGrath  <roland@frob.com>
9255         Support for Mach/PowerPC contributed by Peter Bruin <pjbruin@dds.nl>.
9256         * sysdeps/mach/powerpc/machine-sp.h: New file.
9257         * sysdeps/mach/powerpc/sysdep.h: New file.
9258         * sysdeps/mach/powerpc/thread_state.h: New file.
9260         * sysdeps/mach/hurd/i386/Makefile: File removed; crt0.o rules moved ...
9261         * sysdeps/mach/hurd/Makefile: ... to here.  For the time being, we can
9262         expect to need the same thing on every platform.
9264         * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: File moved ...
9265         * sysdeps/generic/sys/ucontext.h: ... to replace this one.
9267         * sysdeps/unix/sysv/linux/powerpc/sysdep.h (ALIGNARG,
9268         ASM_TYPE_DIRECTIVE, ASM_SIZE_DIRECTIVE, CALL_MCOUNT, ENTRY, EALIGN,
9269         DO_CALL, JUMPTARGET, PSEUDO, PSEUDO_RET, PSEUDO_END, L, C_TEXT):
9270         Move all these assembly-related definitions to ...
9271         * sysdeps/powerpc/elf/sysdep.h: ... this new file.
9273         * sysdeps/mach/powerpc/machine-lock.h: Assembly code rewritten
9274         by Peter Bruin <pjbruin@dds.nl>.
9276         * hurd/hurdselect.c (_hurd_select): Check SELECT_RETURNED bit when
9277         packing results for a `poll' call.
9279 2001-10-26  Ulrich Drepper  <drepper@redhat.com>
9281         * posix/fnmatch_loop.c: Recognize - at end of bracket expression
9282         correctly.
9283         * posix/tst-fnmatch.input: Add tests for - at beginning and end of
9284         bracket expression.
9286         * string/strxfrm.c [USE_IN_EXTENDED_LOCALE_MODEL]: Correctly get
9287         nrules value.
9288         * string/tst-strxfrm.c (test): Also test __strxfrm_l.
9290 2001-10-24  H.J. Lu  <hjl@gnu.org>
9292         * sysdeps/generic/bits/dlfcn.h (DL_CALL_FCT): Cast to void *.
9293         Use __BEGIN_DECLS/__END_DECLS around prototypes.
9294         * sysdeps/mips/bits/dlfcn.h (DL_CALL_FCT): Likewise.
9296 2001-10-21  Jim Meyering  <meyering@lucent.com>
9298         * malloc/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
9299         this code would end up calling gettext even in packages built
9300         with --disable-nls.
9301         * posix/getopt.c (_): Likewise.
9302         * posix/regex.c (_): Likewise.
9304 2001-10-26  Ulrich Drepper  <drepper@redhat.com>
9306         * resolv/gethnamaddr.c (gethostbyaddr): Use ip6.addr for reverse
9307         lookup not ip6.int.
9308         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr_r): Likewise.
9309         Reported by Martin.v.Loewis@t-online.de [PR libc/2598].
9311 2001-10-19  Jakub Jelinek  <jakub@redhat.com>
9313         * misc/sys/cdefs.h (__attribute_used__): Define.
9314         * elf/rtld.c (_dl_start): Add __attribute_used__.
9315         * elf/dl-runtime.c (fixup, profile_fixup): Likewise.
9317 2001-10-25  Andreas Schwab  <schwab@suse.de>
9319         * stdlib/a64l.c: Expect least significant digit first.
9320         * stdlib/l64a.c: Produce least significant digit first.
9321         * stdlib/Makefile (tests): Add test-a64l.
9322         * stdlib/test-a64l.c: New file.
9323         Reported by Masaki Hasegawa <masaki-h@pp.iij4u.or.jp>.
9325 2001-10-21  Ulrich Drepper  <drepper@redhat.com>
9327         * po/sk.po: Update from translation team.
9329 2001-10-18  Ulrich Drepper  <drepper@redhat.com>
9331         * sysdeps/i386/elf/start.S (_fp_hw): Define object type.
9333 2001-10-18  Andreas Schwab  <schwab@suse.de>
9335         * math/libm-test.inc (print_ulps): Print ulp values rounded to
9336         next whole number.
9337         (print_function_ulps): Likewise.
9338         (print_complex_function_ulps): Likewise.
9339         (print_max_error): Likewise.
9340         (print_complex_max_error): Likewise.  Handle ignore_max_ulp.
9342 2001-10-16  Andreas Schwab  <schwab@suse.de>
9344         * sysdeps/m68k/fpu/libm-test-ulps: Updated for fixed cbrtl
9345         implementation.
9347         * sysdeps/m68k/setjmp.c: Also define setjmp and _setjmp if
9348         BSD_SETJMP or BSD__SETJMP is defined, resp.
9349         * sysdeps/m68k/bsd-setjmp.c: Inline setjmp code instead of making
9350         a tail call to __sigsetjmp that would require extending the
9351         caller's frame.
9352         * sysdeps/m68k/bsd-_setjmp.c: Likewise.
9353         * sysdeps/m68k/bsd-setjmp.S: Deleted.
9354         * sysdeps/m68k/bsd-_setjmp.S: Deleted.
9355         Reported by Jes Sorensen <jes@trained-monkey.org>.
9357 2001-10-16  Andreas Jaeger  <aj@suse.de>
9359         * sysdeps/ieee754/ldbl-96/s_nextafterl.c (__nextafterl): Fix
9360         parentheses.  Reported by David Byron <dbyron@porto.coactive.com>,
9361         close PR libc/2589.
9363 2001-10-15  Ulrich Drepper  <drepper@redhat.com>
9365         * po/ca.po: New file.  Contributed by the translation team.
9367 2001-10-15  Ralf Baechle  <ralf@gnu.org>
9369         * sysdeps/unix/sysv/linux/mips/sys/sysmips.h: Make sysmips() prototype
9370         a varargs prototype.  Remove dependency from kernel header files.
9372         * sysdeps/unix/sysv/linux/mips/bits/termios.h: General cleanup, use
9373         __USE_MISC / __USE_XOPEN not __USE_BSD where appropriate.
9375 2001-10-14  Ulrich Drepper  <drepper@redhat.com>
9377         * locale/programs/ld-collate.c (handle_ellipsis): Use %lX not %lx
9378         to generate hexadecimal identifier.
9379         Patch by Jungshik Shin <jungshik.shin@yale.edu>.
9381 2001-10-09  Stephen L Moshier  <moshier@mediaone.net>
9383         * sysdeps/ieee754/ldbl-96/s_cbrtl.c (__cbrtl): Fix algorithm.
9385 2001-10-14  Ulrich Drepper  <drepper@redhat.com>
9387         * sysdeps/ieee754/ldbl-128/e_powl.c: New file.
9388         * sysdeps/ieee754/ldbl-128/s_cbrtl.c: New file.
9389         Contributed by Stephen L Moshier <moshier@mediaone.net>.
9391         * sysdeps/ieee754/ldbl-128/e_j0l.c: Constify float variables.
9392         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
9393         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise
9394         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise
9395         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise
9396         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise
9398         * timezone/africa: Update from tzdata2001d.
9399         * timezone/asia: Likewise.
9400         * timezone/australasia: Likewise.
9401         * timezone/backward: Likewise.
9402         * timezone/europe: Likewise.
9403         * timezone/leapseconds: Likewise.
9404         * timezone/northamerica: Likewise.
9405         * timezone/southamerica: Likewise.
9406         * timezone/zone.tab: Likewise.
9408 2001-10-09  Martin Schwidefsky  <schwidefsky@de.ibm.com>
9410         * sysdeps/s390/s390-32/sys/ucontext.h: Correct __psw_t typedef.
9411         * sysdeps/s390/s390-64/sys/ucontext.h: Likewise.
9413 2001-10-12  Ulrich Drepper  <drepper@redhat.com>
9415         * elf/elf.h (PT_TLS): New definition.
9417 2001-10-10  Jeff Bailey  <jbailey@nisa.net>
9419         * sysdeps/mach/hurd/Makefile: Add $(CFLAGS) for generation of
9420         bits/errno.h
9422 2001-10-07  Roland McGrath  <roland@frob.com>
9424         * sysdeps/mach/hurd/setrlimit.c (__setrlimit): Never return ENOSYS.
9426 2001-10-10  Ulrich Drepper  <drepper@redhat.com>
9428         * elf/elf.h: Add more ELFOSABI_* constants.
9430 2001-10-04  Ben Collins  <bcollins@debian.org>
9432         * sysdeps/generic/inttypes.h: Fix typo (define, not defined) in
9433         decleration of __need_wchar_t.
9435 2001-10-03  Jakub Jelinek  <jakub@redhat.com>
9437         * string/bits/string2.h (__strsep_g): Add prototype.
9438         (__strsep): Use it.
9439         * string/Versions (__strsep): Remove.
9440         * sysdeps/generic/strsep.c (__strsep_g): Add alias to __strsep.
9442 2001-10-07  Ulrich Drepper  <drepper@redhat.com>
9444         * manua/llio.texi: Clarify file references added by mmap.
9445         Patch by Marcus Brinkmann <Marcus.Brinkmann@ruhr-uni-bochum.de>.
9447 2001-09-29  Jes Sorensen  <jes@trained-monkey.org>
9449         * sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h (struct sigcontext):
9450         Add sc_loadrs and sc_rbs_bas to match current kernel.
9452 2001-09-27  Jakub Jelinek  <jakub@redhat.com>
9454         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Update.
9456         * sysdeps/ieee754/ldbl-128/s_erfl.c (__erfcl): Fix erfc(-inf).
9458 2001-09-27  Jakub Jelinek  <jakub@redhat.com>
9460         * elf/dl-open.c (dl_open_worker): If l_opencount of freshly loaded
9461         object has been bumped because of relocation dependency, avoid
9462         duplicates in l_scope.
9463         (show_scope): Fix typos.
9464         * elf/Makefile: Add rules to build and run reldep6.
9465         * elf/reldep6.c: New file.
9466         * elf/reldep6mod0.c: New file.
9467         * elf/reldep6mod1.c: New file.
9468         * elf/reldep6mod2.c: New file.
9469         * elf/reldep6mod3.c: New file.
9470         * elf/reldep6mod4.c: New file.
9472 2001-09-26  Jakub Jelinek  <jakub@redhat.com>
9474         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_fixup_plt): Call
9475         sparc64_fixup_plt.
9476         (sparc64_fixup_plt): Moved from elf_machine_fixup_plt.  Optimize
9477         near jumps and 0xfffff800XXXXXXXX target addresses, no thread safety
9478         for non-lazy binding. Fix .plt[32768+] handling.
9479         (elf_machine_plt_value): Don't add addend.
9480         (elf_machine_rela): Call sparc64_fixup_plt instead of
9481         elf_machine_fixup_plt.
9482         (elf_machine_runtime_setup, TRAMPOLINE_TEMPLATE): Optimize for
9483         dynamic linker at 0xfffff800XXXXXXXX.
9485         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Update.
9487 2001-09-28  Ulrich Drepper  <drepper@redhat.com>
9489         * elf/elf.h: Define SHF_GROUP and SHF_TLS.
9491 2001-09-25  Jakub Jelinek  <jakub@redhat.com>
9493         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (struct cmsghdr): Don't
9494         declare __cmsg_data field if its size would be bigger than 0.
9495         (CMSG_DATA): Adjust accordingly.
9496         * sysdeps/unix/sysv/aix/bits/socket.h: Likewise.
9497         * sysdeps/unix/sysv/linux/alpha/bits/socket.h: Likewise.
9498         * sysdeps/unix/sysv/linux/ia64/bits/socket.h: Likewise.
9499         * sysdeps/unix/sysv/linux/s390/s390-64/bits/socket.h: Likewise.
9500         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
9501         * sysdeps/unix/sysv/linux/mips/bits/socket.h: Likewise.
9502         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
9504 2001-09-25  Ulrich Drepper  <drepper@redhat.com>
9506         * iconvdata/TESTS: Add entries for IBM1160 and IBM1161.
9507         * iconvdata/testdata/IBM1160: New file.
9508         * iconvdata/testdata/IBM1160..UTF8: New file.
9509         * iconvdata/testdata/IBM1161: New file.
9510         * iconvdata/testdata/IBM1161..UTF8: New file.
9511         Patch by Masahide Washizawa <WASHI@jp.ibm.com>.
9513 2001-09-24  Ulrich Drepper  <drepper@redhat.com>
9515         * sysdeps/unix/bsd/ulimit.c (ulimit): Handle overflow in
9516         UL_SETFSIZE computations better.
9518         * rt/Makefile: Remove use of filter for librt again.
9520         * sysdeps/unix/sysv/linux/ulimit.c (__ulimit): Handle overflow in
9521         UL_SETFSIZE computations better.
9523         * string/Versions: Export __strsep for GLIBC_2.2.5.
9524         * string/bits/string2.h: Define all __STRING_INLINE functions if
9525         _FORCE_INLINES is defined.
9526         Use int instead of char of parameter types.
9527         (__strsep): Don't use __strsep_g.  Don't define it.
9528         (__strsep_1c, __strsep_2c, __strsep_3c): Optimize.
9529         * sysdeps/i386/i486/string.h (__strcpy_a_small): Renamed from
9530         __strcpy_small.
9531         (__stpcpy_a_small): Renamed from __stpcpy_small.
9532         (__strcspn_c1): Don't define if _FORCE_INLINES.
9533         (__strspn_c1): Likewise.
9535 2001-09-22  Ben Collins  <bcollins@debian.org>
9537         * sysdeps/sparc/bits/sigaction.h: Define SA_RESTART and friends when
9538         _UNIX98_SOURCE is defined too.  Matches generic/bits/sigaction.h.
9539         * sysdeps/ia64/bits/sigaction.h: Likewise.
9540         * sysdeps/s390/s390-64/bits/sigaction.h: Likewise.
9542 2001-09-24  Andrew Haley  <aph@cambridge.redhat.com>
9544         * sysdeps/unix/sysv/linux/sh/Makefile (sysdep_headers): Add sys/io.h.
9546 2001-09-24  Jakub Jelinek  <jakub@redhat.com>
9548         * elf/dl-open.c (dl_open_worker): Update l_scope_max.
9550 2001-09-24  Ulrich Drepper  <drepper@redhat.com>
9552         * wcsmbs/wchar.h: Add __attribute_pure__ to mbsinit prototype.
9554 2001-09-20  H.J. Lu  <hjl@gnu.org>
9556         * include/dlfcn.h (__RTLD_SPROF): New definiton.
9557         * elf/dl-open.c (dl_open_worker): Return immediately after loading
9558         for __RTLD_SPROF.
9559         * elf/sprof.c (main): Default to the filename if soname doesn't exist.
9560         (load_shobj): Call dlopen with `RTLD_LAZY | __RTLD_SPROF'.
9562 2001-09-20  H.J. Lu  <hjl@gnu.org>
9564         * elf/dl-profile.c (_dl_mcount): Use old *narcsp value for newarc,
9565         don't add 1.
9567 2001-09-22  Ulrich Drepper  <drepper@redhat.com>
9569         * nss/getent.c: Accept -s parameter to overwrite rules in
9570         nsswitch.conf.  Patch by Nalin Dahyabhai <nalin@redhat.com>.
9572         * nss/nss_files/files-network.c (LINE_PARSER): Pad addr string
9573         with as many ".0" as necessary to form a complete address
9574         inet_network understands.
9576         * nss/getent.c: Various cleanups.  Use simpler and fewer function
9577         calls.
9579 2001-09-20  Martin Schwidefsky  <schwidefsky@de.ibm.com>
9581         * sysdeps/s390/s390-32/bits/setjmp.h: Correct pointer comparison in
9582         _JMPBUF_UNWINDS.
9583         * sysdeps/s390/s390-64/bits/setjmp.h: Likewise.
9585 2001-09-22  Ulrich Drepper  <drepper@redhat.com>
9587         * iconvdata/Makefile: Add rules to build and distribute IBM1160 and
9588         IBM1161.
9589         * iconvdata/gconv-modules: Add entries for IBM1160 and IBM1161.
9590         * iconvdata/ibm1160.c: New file.
9591         * iconvdata/ibm1160.h: New file.
9592         * iconvdata/ibm1161.c: New file.
9593         * iconvdata/ibm1161.h: New file.
9594         Patch by Masahide Washizawa <WASHI@jp.ibm.com>.
9596 2001-09-19  Jakub Jelinek  <jakub@redhat.com>
9598         * sysdeps/alpha/dl-machine.h (elf_machine_load_address): Compute the
9599         difference between base address and first PT_LOAD's virtual address,
9600         not the base address.
9602 2001-09-11  Tom Rix  <trix@redhat.com>
9604         * sysdeps/unix/sysv/aix/init-first.c (init):  Use USE_NONONPTION_FLAG
9605         ifdef for __getopt_clean_environment.
9606         * sysdeps/unix/sysv/aix/libc-start.c: Add real implementation.
9608 2001-09-22  Andreas Jaeger  <aj@suse.de>
9610         * elf/reldep4.c (main): Add proper prototype to fix warning.
9612         * elf/reldep5.c (main): Remove unused variable.
9614         * math/math_private.h: Add prototypes.
9616 2001-09-21  Andreas Jaeger  <aj@suse.de>
9618         * sysdeps/unix/sysv/linux/x86_64/Dist: New file.
9619         * sysdeps/x86_64/Dist: New file.
9620         * sysdeps/x86_64/soft-fp/Dist: New file.
9622         * sysdeps/gnu/Dist: Remove eval.c.
9624 2001-09-20  Ulrich Drepper  <drepper@redhat.com>
9626         * malloc/memusage.c (realloc): Don't count already allocated
9627         memory in the sums.
9628         (me): Always use dlsym() to find the real implementations.
9630         * malloc/memusage.sh: Make -n option actually do something.
9632 2001-09-20  Andreas Jaeger  <aj@suse.de>
9634         * elf/elf.h (R_390_NUM): Correct value.
9636         * Versions.def: Add missing versions 2.2.3 for libthread_db and
9637         libpthread.
9639         * sysdeps/unix/sysv/linux/configure.in: Add minimal kernel version
9640         for x86-64, install x86-64 into */lib64.
9642         * shlib-versions: Add x86-64.
9644         * elf/elf.h: Add x86-64 relocations.
9646 2001-09-19  Ulrich Drepper  <drepper@redhat.com>
9648         * po/fr.po: Update from translation team.
9650 2001-09-19  Andreas Jaeger  <aj@suse.de>
9652         * sysdeps/unix/sysv/linux/x86_64/Makefile: New file.
9653         * sysdeps/unix/sysv/linux/x86_64/Versions: New file.
9654         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: New file.
9655         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: New file.
9656         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: New file.
9657         * sysdeps/unix/sysv/linux/x86_64/bits/statfs.h: New file.
9658         * sysdeps/unix/sysv/linux/x86_64/bits/time.h: New file.
9659         * sysdeps/unix/sysv/linux/x86_64/bits/types.h: New file.
9660         * sysdeps/unix/sysv/linux/x86_64/brk.c: New file.
9661         * sysdeps/unix/sysv/linux/x86_64/clone.S: New file.
9662         * sysdeps/unix/sysv/linux/x86_64/fstatfs64.c: New file.
9663         * sysdeps/unix/sysv/linux/x86_64/ftruncate64.c: New file.
9664         * sysdeps/unix/sysv/linux/x86_64/fxstat.c: New file.
9665         * sysdeps/unix/sysv/linux/x86_64/fxstat64.c: New file.
9666         * sysdeps/unix/sysv/linux/x86_64/getdents.c: New file.
9667         * sysdeps/unix/sysv/linux/x86_64/getdents64.c: New file.
9668         * sysdeps/unix/sysv/linux/x86_64/getrlimit64.c: New file.
9669         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: New file.
9670         * sysdeps/unix/sysv/linux/x86_64/glob64.c: New file.
9671         * sysdeps/unix/sysv/linux/x86_64/lxstat.c: New file.
9672         * sysdeps/unix/sysv/linux/x86_64/lxstat64.c: New file.
9673         * sysdeps/unix/sysv/linux/x86_64/mmap64.c: New file.
9674         * sysdeps/unix/sysv/linux/x86_64/pread64.c: New file.
9675         * sysdeps/unix/sysv/linux/x86_64/profil-counter.h: New file.
9676         * sysdeps/unix/sysv/linux/x86_64/pwrite64.c: New file.
9677         * sysdeps/unix/sysv/linux/x86_64/readdir.c: New file.
9678         * sysdeps/unix/sysv/linux/x86_64/readdir64.c: New file.
9679         * sysdeps/unix/sysv/linux/x86_64/readdir64_r.c: New file.
9680         * sysdeps/unix/sysv/linux/x86_64/readdir_r.c: New file.
9681         * sysdeps/unix/sysv/linux/x86_64/recv.c: New file.
9682         * sysdeps/unix/sysv/linux/x86_64/register-dump.h: New file.
9683         * sysdeps/unix/sysv/linux/x86_64/send.c: New file.
9684         * sysdeps/unix/sysv/linux/x86_64/setrlimit64.c: New file.
9685         * sysdeps/unix/sysv/linux/x86_64/sigaction.c: New file.
9686         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: New file.
9687         * sysdeps/unix/sysv/linux/x86_64/sigpending.c: New file.
9688         * sysdeps/unix/sysv/linux/x86_64/sigprocmask.c: New file.
9689         * sysdeps/unix/sysv/linux/x86_64/sigsuspend.c: New file.
9690         * sysdeps/unix/sysv/linux/x86_64/statfs64.c: New file.
9691         * sysdeps/unix/sysv/linux/x86_64/sys/perm.h: New file.
9692         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: New file.
9693         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: New file.
9694         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: New file.
9695         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: New file.
9696         * sysdeps/unix/sysv/linux/x86_64/syscall.S: New file.
9697         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: New file.
9698         * sysdeps/unix/sysv/linux/x86_64/sysdep.S: New file.
9699         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: New file.
9700         * sysdeps/unix/sysv/linux/x86_64/time.c: New file.
9701         * sysdeps/unix/sysv/linux/x86_64/truncate64.c: New file.
9702         * sysdeps/unix/sysv/linux/x86_64/umount.c: New file.
9703         * sysdeps/unix/sysv/linux/x86_64/vfork.S: New file.
9704         * sysdeps/unix/sysv/linux/x86_64/xstat.c: New file.
9705         * sysdeps/unix/sysv/linux/x86_64/xstat64.c: New file.
9706         * sysdeps/unix/x86_64/sysdep.S: New file.
9707         * sysdeps/unix/x86_64/sysdep.h: New file.
9708         * sysdeps/x86_64/Implies: New file.
9709         * sysdeps/x86_64/Makefile: New file.
9710         * sysdeps/x86_64/Versions: New file.
9711         * sysdeps/x86_64/__longjmp.S: New file.
9712         * sysdeps/x86_64/abort-instr.h: New file.
9713         * sysdeps/x86_64/atomicity.h: New file.
9714         * sysdeps/x86_64/bits/endian.h: New file.
9715         * sysdeps/x86_64/bits/setjmp.h: New file.
9716         * sysdeps/x86_64/bits/string.h: New file.
9717         * sysdeps/x86_64/bp-asm.h: New file.
9718         * sysdeps/x86_64/bsd-_setjmp.S: New file.
9719         * sysdeps/x86_64/bsd-setjmp.S: New file.
9720         * sysdeps/x86_64/dl-machine.h: New file.
9721         * sysdeps/x86_64/elf/initfini.c: New file.
9722         * sysdeps/x86_64/elf/start.S: New file.
9723         * sysdeps/x86_64/ffs.c: New file.
9724         * sysdeps/x86_64/ffsll.c: New file.
9725         * sysdeps/x86_64/fpu/bits/fenv.h: New file.
9726         * sysdeps/x86_64/fpu/bits/mathdef.h: New file.
9727         * sysdeps/x86_64/fpu/e_acosl.c: New file.
9728         * sysdeps/x86_64/fpu/e_atan2l.c: New file.
9729         * sysdeps/x86_64/fpu/e_exp2l.S: New file.
9730         * sysdeps/x86_64/fpu/e_expl.c: New file.
9731         * sysdeps/x86_64/fpu/e_fmodl.S: New file.
9732         * sysdeps/x86_64/fpu/e_log10l.S: New file.
9733         * sysdeps/x86_64/fpu/e_log2l.S: New file.
9734         * sysdeps/x86_64/fpu/e_logl.S: New file.
9735         * sysdeps/x86_64/fpu/e_powl.S: New file.
9736         * sysdeps/x86_64/fpu/e_rem_pio2l.c: New file.
9737         * sysdeps/x86_64/fpu/e_scalbl.S: New file.
9738         * sysdeps/x86_64/fpu/e_sqrtl.c: New file.
9739         * sysdeps/x86_64/fpu/fclrexcpt.c: New file.
9740         * sysdeps/x86_64/fpu/fedisblxcpt.c: New file.
9741         * sysdeps/x86_64/fpu/feenablxcpt.c: New file.
9742         * sysdeps/x86_64/fpu/fegetenv.c: New file.
9743         * sysdeps/x86_64/fpu/fegetexcept.c: New file.
9744         * sysdeps/x86_64/fpu/fegetround.c: New file.
9745         * sysdeps/x86_64/fpu/feholdexcpt.c: New file.
9746         * sysdeps/x86_64/fpu/fesetenv.c: New file.
9747         * sysdeps/x86_64/fpu/fesetround.c: New file.
9748         * sysdeps/x86_64/fpu/fgetexcptflg.c: New file.
9749         * sysdeps/x86_64/fpu/fraiseexcpt.c: New file.
9750         * sysdeps/x86_64/fpu/fsetexcptflg.c: New file.
9751         * sysdeps/x86_64/fpu/ftestexcept.c: New file.
9752         * sysdeps/x86_64/fpu/libm-test-ulps: New file.
9753         * sysdeps/x86_64/fpu/math_ldbl.h: New file.
9754         * sysdeps/x86_64/fpu/printf_fphex.c: New file.
9755         * sysdeps/x86_64/fpu/s_atanl.c: New file.
9756         * sysdeps/x86_64/fpu/s_cosl.S: New file.
9757         * sysdeps/x86_64/fpu/s_expm1l.S: New file.
9758         * sysdeps/x86_64/fpu/s_fpclassifyl.c: New file.
9759         * sysdeps/x86_64/fpu/s_isinfl.c: New file.
9760         * sysdeps/x86_64/fpu/s_isnanl.c: New file.
9761         * sysdeps/x86_64/fpu/s_log1pl.S: New file.
9762         * sysdeps/x86_64/fpu/s_logbl.c: New file.
9763         * sysdeps/x86_64/fpu/s_nextafterl.c: New file.
9764         * sysdeps/x86_64/fpu/s_nexttoward.c: New file.
9765         * sysdeps/x86_64/fpu/s_nexttowardf.c: New file.
9766         * sysdeps/x86_64/fpu/s_rintl.c: New file.
9767         * sysdeps/x86_64/fpu/s_significandl.c: New file.
9768         * sysdeps/x86_64/fpu/s_sincosl.S: New file.
9769         * sysdeps/x86_64/fpu/s_sinl.S: New file.
9770         * sysdeps/x86_64/fpu/s_tanl.S: New file.
9771         * sysdeps/x86_64/gmp-mparam.h: New file.
9772         * sysdeps/x86_64/hp-timing.c: New file.
9773         * sysdeps/x86_64/hp-timing.h: New file.
9774         * sysdeps/x86_64/htonl.S: New file.
9775         * sysdeps/x86_64/memusage.h: New file.
9776         * sysdeps/x86_64/setjmp.S: New file.
9777         * sysdeps/x86_64/soft-fp/sfp-machine.h: New file.
9778         * sysdeps/x86_64/stackinfo.h: New file.
9779         * sysdeps/x86_64/sysdep.h: New file.
9780         * sysdeps/unix/sysv/linux/x86_64/ldd-rewrite.sed: New file.
9782         * sysdeps/ieee754/ldbl-128/s_erfl.c: New file, contributed Stephen
9783         L Moshier.
9785 2001-09-18  Ulrich Drepper  <drepper@redhat.com>
9787         * malloc/malloc.c (ptmalloc_init): Handle _environ==NULL.
9788         Reported by B. D. Elliott <bde@nwlink.com> [PR libc/2541].
9790 2001-09-18  Andreas Schwab  <schwab@suse.de>
9792         * elf/dl-load.c (_dl_map_object_from_fd): Update handling of scope
9793         list, now that l_scope is a pointer.
9795         * elf/dl-open.c (dl_open_worker): Fix thinko when enlarging the
9796         scope list.
9798 2001-09-18  kaz Kojima  <kkojima@rr.iij4u.or.jp>
9800         * sysdeps/sh/dl-machine.h (elf_machine_rela): Fix reverse condition.
9801         (elf_machine_rela_relative): Add a missing declaration.
9803 2001-09-18  Jakub Jelinek  <jakub@redhat.com>
9805         * sysdeps/unix/sysv/linux/ia64/ldd-rewrite.sed: New file.
9806         * sysdeps/unix/sysv/linux/s390/ldd-rewrite.sed: New file.
9807         * sysdeps/unix/sysv/linux/configure.in: Add ia64 and s390
9808         ldd-rewrite scripts.
9810 2001-09-18  Ulrich Drepper  <drepper@redhat.com>
9812         * elf/ldd.bash.in: Update copyright message.
9814 2001-09-17  H.J. Lu  <hjl@gnu.org>
9816         * hurd/hurdmalloc.c (bcopy): Removed.
9817         (realloc): Replace bcopy with memcpy.
9818         * hurd/path-lookup.c (file_name_path_scan): Likewise.
9819         * resolv/gethnamaddr.c (map_v4v6_address): Likewise.
9820         * sunrpc/rpcinfo.c (pmapdump): Likewise.
9822         * resolv/gethnamaddr.c (getanswer): Replace bcopy with memmove.
9823         (gethostbyaddr): Likewise.
9824         * sunrpc/rpcinfo.c (get_inet_address): Likewise.
9826 2001-09-18  Ulrich Drepper  <drepper@redhat.com>
9828         * sysdeps/gnu/eval.c: Removed.
9830 2001-09-18  Andreas Jaeger  <aj@suse.de>
9832         * sysdeps/i386/fpu/s_logbl.S: Move to ...
9833         * sysdeps/i386/fpu/s_logbl.c: ...here, use inline assembler.
9835         * sysdeps/i386/fpu/s_rintl.S: Move to ...
9836         * sysdeps/i386/fpu/s_rintl.c: ...here, use inline assembler.
9838         * sysdeps/i386/fpu/s_significandl.S: Move to ...
9839         * sysdeps/i386/fpu/s_significandl.c: ...here, use inline assembler.
9841 2001-09-16  Ulrich Drepper  <drepper@redhat.com>
9843         * string/strcoll.c [USE_IN_EXTENDED_LOCALE_MODEL]: Correctly get
9844         nrules value.
9846 2001-09-14  H.J. Lu  <hjl@gnu.org>
9848         * sysdeps/mips/fpu/libm-test-ulps: Updated.
9850 2001-09-14  Ulrich Drepper  <drepper@redhat.com>
9852         * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Fix a typo.
9853         Patch by Florian La Roche <laroche@redhat.com>.
9855         * string/bits/string2.h (__strtok_r_1c): Optimize a bit.
9857         * sysdeps/unix/sysv/linux/net/ethernet.h: Correct references to
9858         ETHER_CRC_LEN.
9860 2001-09-14  Andreas Schwab  <schwab@suse.de>
9862         * posix/execl.c: Fix last argument of memcpy.  Reported by Brian
9863         Sumner <bls@sgi.com>.
9864         * posix/execlp.c: Likewise.
9866 2001-09-13  Jakub Jelinek  <jakub@redhat.com>
9868         * elf/dl-deps.c (_dl_map_object_deps): Fix filter handling if filter
9869         is already found earlier in the search scope.
9871 2001-09-12  Jakub Jelinek  <jakub@redhat.com>
9873         * rt/Makefile (LDFLAGS-rt.so): Use shared thread library as librt's
9874         filter.
9876 2001-09-13  Ulrich Drepper  <drepper@redhat.com>
9878         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust expected errors for j0.
9880 2001-09-12  Ulrich Drepper  <drepper@redhat.com>
9882         * config.h.in: Enforce optimization to be used.
9883         * Makeconfig (preprocess-versions): Define ASSEMBLER.
9884         * stdlib/Makefile (isomac-CFLAGS): Define to -O.
9885         * posix/Makefile (annexc-CFLAGS): Define to -O.
9886         * sysdeps/unix/make-syscalls.sh: Define __OPTIMIZE__ in use of asm_CPP.
9888 2001-09-11  Ulrich Drepper  <drepper@redhat.com>
9890         * nscd/nscd_gethst_r.c: Don't expect IPv6 addresses for IPv4 lookup.
9891         Patch by Stephan Kulow.
9893 2001-09-08  Ben Collins  <bcollins@debian.org>
9895         * sysdeps/arm/dl-machine.h (elf_machine_rel): Fix thinko in
9896         usage of RESOLVE() (r_type, not reloc->r_type).
9898 2001-09-08  Ulrich Drepper  <drepper@redhat.com>
9900         * elf/dl-object.c: Avoid allocating extra memory block for name.
9901         * elf/dl-close.c (_dl_close): Don't free l_libname if it is not
9902         allocated separately.
9903         * elf/dl-load.c (_dl_map_object_from_fd): Likewise.
9905 2001-09-08  H.J. Lu  <hjl@gnu.org>
9907         * po/zh_TW.po: Fix a typo.
9909 2001-09-07  Tom Rix  <trix@redhat.com>
9911         * sysdeps/unix/sysv/aix/sysv_termio.h: New file.
9913 2001-08-26  Tom Rix  <trix@redhat.com>
9915         * sysdeps/unix/sysv/aix/Makefile (aix-syscalls.o): More linker
9916         command line options.
9917         * sysdeps/unix/sysv/aix/start.s: New file, rework of start.c
9918         * sysdeps/unix/sysv/aix/start.c: Removed.
9919         * sysdeps/unix/sysv/aix/start-libc.c: New file.
9920         * sysdeps/unix/sysv/aix/init-first.c: New file.
9921         * sysdeps/unix/sysv/aix/fcntl.c: Alias __libc_fcntl to __fcntl.
9923 2001-09-08  Ben Collins  <bcollins@debian.org>
9925         * sysdeps/arm/dl-machine.h: Fix usage of new _dl_signal_error() format.
9926         * sysdeps/generic/dl-machine.h: Likewise.
9927         * sysdeps/hppa/dl-fptr.c: Likewise.
9928         * sysdeps/ia64/dl-fptr.c: Likewise.
9929         * sysdeps/mach/hurd/dl-sysdep.c: Likewise.
9930         * sysdeps/mips/dl-machine.h: Likewise.
9931         * sysdeps/mips/mips64/dl-machine.h: Likewise.
9932         * sysdeps/powerpc/dl-machine.c: Likewise.
9934 2001-09-07  Ben Collins  <bcollins@debian.org>
9936         * sysdeps/sparc/sparc32/dl-machine.h: Fix typo.
9938         * sysdeps/hppa/dl-lookupcfg.h: Forward declare struct link_map.
9940 2001-09-08  Ulrich Drepper  <drepper@redhat.com>
9942         * elf/dl-lookup.c (add_dependency): Bump l_opencount of all
9943         dependencies if necessary.
9945         * elf/dl-close.c (_dl_close): If object has no r_list (i.e., wasn't
9946         loaded directly) determine length if l_initfini list by iterating
9947         over its elements.  Minor optimizations.
9948         * elf/dl-deps.c (_dl_map_object_deps): Always add own map to l_initfini
9949         for dependency objects.
9950         If object was already loaded check whether any of the dependencies
9951         is already on the relocation dependency list.  If yes, remove the
9952         latter.  Minor optimizations.
9953         * elf/dl-lookup.c (add_dependency): Add check for self reference of
9954         maps here.  Search l_initfini list only if the object was loaded
9955         directly and not only as a dependency.
9956         (_dl_lookup_symbol): Add relocation dependency also if object
9957         is not in global scope.  Remove test for self-reference here.
9958         (_dl_lookup_versioned_symbol): Likewise.
9959         * elf/dl-object (_dl_new_object): Cleanup.  Initialize dont_free
9960         element of first name record.
9961         * elf/loadtest.c: Add some more test to recognize early if an object
9962         wasn't unloaded.
9963         * elf/Makefile: Add rules to build and run reldep5.
9964         * elf/reldep5.c: New file.
9965         * elf/reldepmod5.c: New file.
9966         * elf/reldepmod6.c: New file.
9968         * elf/reldep2.c: Fix typo.
9970 2001-09-07  Ulrich Drepper  <drepper@redhat.com>
9972         * include/link.h (struct link_map): Add l_scope_mem and l_scope_max
9973         elements.  Change l_scope to be a pointer only.
9974         * elf/dl-object.c (_dl_new_object): Initialize l_scope and l_scope_max.
9975         * elf/dl-open.c (dl_open_worker): If dependency wasn't just opened
9976         here add searchlist of newly open file to the dependency's scope.
9977         * elf/dl-close.c (_dl_close): If dependency is used otherwise remove
9978         only searchlist from its scope.  Free own scope array if necessary.
9979         * elf/Makefile (tests): Add dblload and dblunload now.
9981 2001-09-06  Andreas Jaeger  <aj@suse.de>
9983         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: New file, contributed
9984         Stephen L Moshier.
9986 2001-09-05  Ulrich Drepper  <drepper@redhat.com>
9988         * elf/Makefile: Add rules to build new tests.  Don't run them yet since
9989         they both fail.
9990         * elf/dblload.c: New file.
9991         * elf/dblloadmod1.c: New file.
9992         * elf/dblloadmod2.c: New file.
9993         * elf/dblloadmod3.c: New file.
9994         * elf/dblunload.c: New file.
9996 2001-09-04  Richard Henderson  <rth@redhat.com>
9998         * elf/elf.h (R_ALPHA_OP_*, R_ALPHA_IMMED_*): Remove.
9999         (R_ALPHA_GPREL16): Rename from R_ALPHA_IMMED_GP_16.
10001 2001-09-04  Ulrich Drepper  <drepper@redhat.com>
10003         Correct very misleading message for error in failed runtime relocation.
10004         * elf/dl-error.c (_dl_signal_error): Take extra parameter to describe
10005         place of the error.
10006         (_dl_signal_cerror): Likewise.
10007         * sysdeps/generic/ldsodefs.h: Adjust prototypes.
10008         * elf/dl-close.c: Likewise.
10009         * elf/dl-deps.c: Likewise.
10010         * elf/dl-load.c: Likewise.
10011         * elf/dl-lookup.c: Likewise.
10012         * elf/dl-open.c: Likewise.
10013         * elf/dl-reloc.c: Likewise.
10014         * elf/dl-sym.c: Likewise.
10015         * elf/dl-version.c: Likewise.
10016         * sysdeps/generic/dl-sysdep.c: Likewise.
10018 2001-09-04  Jakub Jelinek  <jakub@redhat.com>
10020         * iconv/strtab.c (strtabinit): Initialize null Strent.
10021         (newstring): Move len == 0 handling...
10022         (strtabadd): ...here.
10023         If len == 1, return null Strent.
10024         When inserting a suffix of an existing string, check if
10025         it is not equal to some suffix already recorded.
10026         Copy left and right members over if adding longer string.
10028 2001-09-04  Jakub Jelinek  <jakub@redhat.com>
10030         * sunrpc/rpc_cout.c (upcase): Account for trailing '\0'.
10032         * sysdeps/unix/sysv/linux/alpha/gethostname.c: Include <errno.h>.
10033         (__syscall_gethostname): Add prototype.
10035 2001-09-04  Ulrich Drepper  <drepper@redhat.com>
10037         * elf/dl-object.c (_dl_new_object): Remove unnecessary if.
10039 2001-09-02  Ulrich Drepper  <drepper@redhat.com>
10041         * elf/rtld.c (dl_main): Increment l_opencount for main binary.
10043 2001-08-27  Roland McGrath  <roland@frob.com>
10045         * sysdeps/unix/sysv/gethostname.c (__gethostname): When LEN is too
10046         short, copy that much into NAME anyway before returning error.
10048 2001-09-01  Richard Henderson  <rth@redhat.com>
10050         * sysdeps/alpha/elf/Dist: Remove file.
10051         * sysdeps/alpha/elf/Makefile: Remove file.
10052         * sysdeps/alpha/elf/crtbegin.S: Remove file.
10053         * sysdeps/alpha/elf/crtend.S: Remove file.
10054         * sysdeps/alpha/elf/initfini.c: New file.
10056 2001-09-01  Mark Kettenis  <kettenis@gnu.org>
10058         * iconv/tst-iconv1.c: Include <stddef.h> for wchar_t.
10059         * iconv/tst-iconv3.c: Likewise.
10061 2001-09-01  Jakub Jelinek  <jakub@redhat.com>
10063         * sysdeps/generic/inttypes.h (__gwchar_t): Define to wchar_t for C++.
10065 2001-09-01  Ulrich Drepper  <drepper@redhat.com>
10067         * iconv/gconv_cache.c: Rename variable cache to __gconv_cache and
10068         export it.
10069         * iconv/Versions (libc) [GLIBC_2.2.5]: Export __gconv_cache.
10070         * iconv/iconv_prog.c (insert_cache): New function.
10071         (print_known_names): If cache is used call insert_cache to use the
10072         information from the cache [PR libc/2509].
10074 2001-08-31  Ulrich Drepper  <drepper@redhat.com>
10076         * time/strptime.c (strptime_internal): Recognize 'l' format and
10077         handle it like 'I' for symmetry with strftime.
10079 2001-08-31  Richard Henderson  <rth@redhat.com>
10081         * elf/dl-support.c (_dl_cpuclock_offset): Protect with NONAVAIL.
10082         (HP_TIMING_AVAIL): Set to HP_SMALL_TIMING_AVAIL if present.
10083         * elf/rtld.c (HP_TIMING_AVAIL): Likewise.
10084         (print_statistics): Make scalar unsigned long long.
10085         * sysdeps/alpha/hp-timing.h: New file.
10087 2001-08-31  Jakub Jelinek  <jakub@redhat.com>
10089         * stdio-common/perror.c (perror): Save errno early, pass it
10090         down to perror_internal.
10091         (perror_internal): Add errnum argument.
10093 2001-08-31  Jakub Jelinek  <jakub@redhat.com>
10095         * sysdeps/alpha/dl-machine.h (elf_machine_rela): Remove unused code.
10096         Don't add old memory content for R_ALPHA_REFQUAD.
10098 2001-08-30  Ulrich Drepper  <drepper@redhat.com>
10100         * crypt/md5-crypt.c (__md5_crypt_r): Compute used and required
10101         memory correctly.
10103         * sysdeps/unix/sysv/linux/ia64/ioperm.c (_ioperm): Use __open
10104         instead of open, __close instead of close, __getpagesize instead
10105         of getpagesize.
10107         * string/argz-stringify.c (__argz_stringify): Use __strnlen
10108         instead of strnlen.
10109         * include/string.h (strndupa): Redefine here to use __strnlen
10110         instead of strnlen.
10111         * string/strndup.c (__strndup): Use __strnlen not strnlen.
10113         * misc/syslog.c (vsyslog): Fix typo in last change (connect ->
10114         connected).
10116 2001-08-30  Jakub Jelinek  <jakub@redhat.com>
10118         * sysdeps/alpha/dl-machine.h (elf_machine_rela): Don't handle
10119         R_ALPHA_RELATIVE if RTLD_BOOTSTRAP and HAVE_Z_COMBRELOC.  Only check
10120         for rtld map if neither RTLD_BOOTSTRAP nor HAVE_Z_COMBRELOC is defined.
10121         * sysdeps/i386/dl-machine.h (elf_machine_rel): Similarly.
10122         * sysdeps/ia64/dl-machine.h (elf_machine_rel): Similarly.
10123         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rel): Similarly.
10124         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rel): Similarly.
10126 2001-08-30  Ulrich Drepper  <drepper@redhat.com>
10128         * sysdeps/alpha/fpu/libm-test-ulps: Adjust j0 ULPs.
10130 2001-08-30  Andreas Jaeger  <aj@suse.de>
10132         * sysdeps/ieee754/ldbl-128/e_jnl.c: New file,
10133         contributed Stephen L Moshier.
10135 2001-08-30  Jakub Jelinek  <jakub@redhat.com>
10137         * sunrpc/etc.rpc (sgi_fam): Add.
10139 2001-08-30  Ulrich Drepper  <drepper@redhat.com>
10141         * sysdeps/unix/sysv/linux/alpha/gethostname.c: New file.
10143 2001-08-29  Ulrich Drepper  <drepper@redhat.com>
10145         * nis/nis_findserv.c (__nis_findfastest): Don't fail if reply received
10146         first is from a previous call.
10147         Patch by Alexander Belopolsky <alexb@rentec.com> for [PR libc/3670].
10149 2001-08-29  Andreas Schwab  <schwab@suse.de>
10151         * sysdeps/ia64/fpu/libm-test-ulps: Updated.
10153 2001-08-25  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
10155         * config.make.in (INSTALL_SCRIPT): Define.
10156         * Makeconfig (INSTALL_SCRIPT): Define.
10157         * Makerules (do-install-script): New macro to install scripts using
10158         INSTALL_SCRIPT.
10159         (install-bin-script): New rule to install scripts with
10160         do-install-script.
10161         (install-bin-script-nosubdir): New rule.
10162         (install-no-libc.a-nosubdir): Add install-bin-script-nosubdir.
10163         (distinfo-vars): Add $(install-bin-script).
10164         * Rules (others): Likewise.
10165         * Makefile (glibcbug): Install with install-bin-script.
10166         * debug/Makefile (xtrace): Likewise.
10167         (catchsegv): Likewise.
10168         * elf/Makefile (ldd): Likewise.
10169         * malloc/Makefile (mtrace): Likewise.
10170         * timezone/Makefile (tzselect): Likewise.
10172 2001-08-29  H.J. Lu  <hjl@gnu.org>
10174         * sysdeps/mips/dl-machine.h (__dl_runtime_resolve): Pass
10175         ELF_RTYPE_CLASS_PLT, instead of R_MIPS_REL32, to
10176         _dl_lookup_versioned_symbol () and _dl_lookup_symbol ().
10178 2001-08-29  Andreas Schwab  <schwab@suse.de>
10180         * sysdeps/m68k/fpu/libm-test-ulps: Updated.
10182 2001-08-28  H.J. Lu  <hjl@gnu.org>
10184         * Makeconfig (combreloc-LDFLAGS): New variable.
10185         Add it to LDFLAGS.so, LDFLAGS-rtld, and +link.
10186         * config.make.in (have-z-combreloc): New variable.
10187         * configure.in: Substitute libc_cv_z_combreloc.
10189 2001-08-29  Ulrich Drepper  <drepper@redhat.com>
10191         * po/sv.po: Update from translation team.
10192         * po/fr.po: Likewise.
10193         * po/da.po: Likewise.
10195 2001-08-28  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
10197         * Makerules: Fix a typo: MD% -> MD5.
10199 2001-08-28  Ulrich Drepper  <drepper@redhat.com>
10201         * sunrpc/rpc_hout.c (pargdef): Function must take pointer to object.
10202         Patch by Patrick Duval <Patrick.Duval@devinci.fr>.
10204 2001-08-28  Andreas Jaeger  <aj@suse.de>
10206         * manual/libc-texinfo.sh: Add entry about free manuals.
10208         * manual/contrib.texi (Contributors): Fix cross reference.
10210         * manual/libc.texinfo (Copying): Include freemanuals.
10212         * manual/Makefile (appendices): Add freemanuals.
10214         * manual/freemanuals.texi: New file.
10215         Patch by Brian Youmans <3diff@gnu.org>.
10217         * manual/libm-err-tab.pl: Pretty print more platforms, print a
10218         smaller table.
10220         * manual/math.texi (Errors in Math Functions): Fix grammar, start
10221         table on separate page.
10222         Patch by Brian Youmans <3diff@gnu.org>.
10224 2001-08-27  Ulrich Drepper  <drepper@redhat.com>
10226         * misc/syslog.c (vsyslog): Try a bit harder to use syslogd.  If
10227         the connection went down after we first used it try to connect
10228         again and resend the message before printing to the console.
10229         Reported by Coserea Gh. Tudor <tudore@tudore.gecadsoftware.com>.
10231 2001-08-27  Jakub Jelinek  <jakub@redhat.com>
10233         * string/tst-strlen.c (main): Test strnlen (, -1) too.
10234         * sysdeps/generic/strnlen.c (__strnlen): Fix for maxlens with top
10235         bit set.
10237 2001-08-27  Ulrich Drepper  <drepper@redhat.com>
10239         * iconv/strtab.c (searchstring): Use correct length for comparison.
10240         (strtabadd): Account total size correct if new string has old string as
10241         substring.
10243 2001-08-27  Jakub Jelinek  <jakub@redhat.com>
10245         * elf/rtld.c (dl_main): Update call to _dl_lookup_symbol.
10247 2001-08-27  Andreas Jaeger  <aj@suse.de>
10249         * sysdeps/i386/fpu/libm-test-ulps (float): Add ulps for new tests.
10251         * math/libm-test.inc (j0_test): Add extra tests.
10252         * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_j0l): Use |x|,
10253         not x, in Hankel approximation.
10254         Patches by Stephen L Moshier.
10256 2001-08-26  Ulrich Drepper  <drepper@redhat.com>
10258         * sysdeps/ia64/dl-lookupcfg.h: Add forward declaration for struct
10259         link_map.
10261         * configure.in: Fix test for .rela.dyn section.
10263         * elf/dl-runtime.c: Update calls to _dl_lookup_*.
10265 2001-08-26  Jakub Jelinek  <jakub@redhat.com>
10267         * elf/dl-reloc.c (RESOLVE_MAP, RESOLVE): Use elf_machine_type_class
10268         instead of elf_machine_lookup_noexec_p and elf_machine_lookup_noplt_p.
10269         Pass type_class to _dl_lookup_*.
10270         * elf/dl-lookup.c (_dl_lookup_symbol): Take type_class parameter now.
10271         Pass around just type_class instead of noexec, noplt pair.
10272         (_dl_lookup_versioned_symbol): Likewise.
10273         (_dl_lookup_symbol_skip): Pass around just type_class instead of
10274         noexec, noplt pair.
10275         (_dl_lookup_versioned_symbol_skip): Likewise.
10276         (_dl_do_lookup, _dl_do_lookup_versioned): Likewise.
10277         * elf/do-lookup.h (do_lookup): Likewise.
10278         * include/link.h (struct link_map): Replace noexec and noplt fields
10279         in l_lookup_cache with type_class field.
10280         * sysdeps/generic/ldsodefs.h (ELF_RTYPE_CLASS_PLT,
10281         ELF_RTYPE_CLASS_COPY): Define.
10282         Adjust prototypes for _dl_lookup_symbol and
10283         _dl_lookup_versioned_symbol.
10284         * sysdeps/alpha/dl-machine.h (elf_machine_lookup_noplt_p,
10285         elf_machine_lookup_noexec_p): Remove.
10286         (elf_machine_type_class): Define.
10287         * sysdeps/arm/dl-machine.h: Likewise.
10288         * sysdeps/hppa/dl-machine.h: Likewise.
10289         * sysdeps/cris/dl-machine.h: Likewise.
10290         * sysdeps/i386/dl-machine.h: Likewise.
10291         * sysdeps/ia64/dl-machine.h: Likewise.
10292         * sysdeps/m68k/dl-machine.h: Likewise.
10293         * sysdeps/mips/mips64/dl-machine.h: Likewise.
10294         * sysdeps/mips/dl-machine.h: Likewise.
10295         * sysdeps/powerpc/dl-machine.h: Likewise.
10296         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
10297         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
10298         * sysdeps/sh/dl-machine.h: Likewise.
10299         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
10300         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
10302 2001-08-26  Ulrich Drepper  <drepper@redhat.com>
10304         * manual/message.texi (Advanced gettext functions): Change
10305         description of plural forms for Slovak.
10306         Reported by Marcel Telka <marcel@telka.sk>.
10308         * manuaL/time.texi (Low-Level Time String Parsing): Fix description of
10309         %z.  Reported by C. Scott Ananian <cananian@lesser-magoo.lcs.mit.edu>.
10311 2001-08-26  Jakub Jelinek  <jakub@redhat.com>
10313         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_lazy_rel): Fix a
10314         typo.  Patch by Florian La Roche <laroche@redhat.com>.
10316 2001-08-26  Ulrich Drepper  <drepper@redhat.com>
10318         * include/link.h (struct link_map): Add l_lookup_cache element.
10319         * elf/dl-reloc.c (RESOLVE): Add symbol caching here.
10320         (RESOLVE_MAP): Likewise.
10321         (_dl_relocate_object): Remove cache initialization.
10322         * elf/dl-lookup.c: Rip out cache handling code.
10323         * sysdeps/generic/ldsodefs.h: Remove lookup_cache struct and variable
10324         declarations.
10326         * elf/dl-lookup.c (_dl_lookup_symbol): Reorder some conditions and
10327         remove some __builtin_expect.
10328         (_dl_lookup_versioned_symbol): Likewise.
10330         * config.h.in: Add HAVE_Z_COMBRELOC.
10331         * configure.in: Add test for -z combreloc.
10333         * sysdeps/i386/dl-machine.h (elf_machine_rel): Minor cleanups and
10334         optimizations.  Use HAVE_Z_COMBRELOC to avoid generaton of
10335         R_386_RELATIVE handling for ld.so startup.  Reduce RTLD_BOOTSTRAP
10336         case to almost no code.
10338 2001-08-25  Ulrich Drepper  <drepper@redhat.com>
10340         * po/tr.po: Update from translation team.
10342 2001-08-24  Andreas Jaeger  <aj@suse.de>
10344         * iconv/Makefile (extra-objs): Add iconvconfig-modules so that
10345         make clean works.
10347 2001-08-24  Ulrich Drepper  <drepper@redhat.com>
10349         * elf/rtld.c (print_statistics): Printf % after percent values.
10350         * elf/dl-misc.c (_dl_debug_vdprintf): Implement %%.
10352         * elf/dl-lookup.c (_dl_lookup_symbol): If we use the cache we
10353         don't have to compute the hash value and initialize current_value.
10354         Move reference_name variable to where it is needed.
10355         (_dl_lookup_versioned_symbol): Likewise.
10357 2001-08-24  Roland McGrath  <roland@frob.com>
10359         * string/tester.c (test_strerror): Don't use _sys_errlist/_sys_nerr.
10360         Just test that strerror returns non-null for a few errno codes.
10362 2001-08-23  Roland McGrath  <roland@frob.com>
10364         * hurd/Versions (libc: GLIBC_2.2.5): New set; add _hurd_raise_signal,
10365         _hurdsig_interrupt_timeout, _hurdsig_fault_preemptor.
10367         * sysdeps/posix/shm_unlink.c (shm_unlink): __unlink -> unlink.
10369         * mach/Versions (libc: GLIBC_2.2.5): New set; add __mach_msg_destroy,
10370         __mach_reply_port.
10372 2001-08-24  Ulrich Drepper  <drepper@redhat.com>
10374         * nss/test-netdb.c (test_hosts): Don't segfault if gethostname
10375         returns NULL.
10377         * elf/do-rel.h (elf_dynamic_do_rel): Fix problem with ld.so
10378         startup.  Explicitly remove lazy part for RTLD_BOOTSTRAP since gcc
10379         doesn't do it.
10380         * elf/rtld.c: Include <sys/param.h>.
10381         * elf/dl-reloc.c: Likewise.
10383 2001-08-24  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
10385         * sysdeps/unix/sysv/linux/mips/configure.in: Define AC_SUBST to
10386         empty to prevent junk from being generated.
10387         * sysdeps/unix/sysv/linux/mips/configure: Regenerated.
10389 2001-08-24  Jakub Jelinek  <jakub@redhat.com>
10391         * elf/do-rel.h (elf_dynamic_do_rel): If l_addr is 0, skip relative
10392         records.  Rename endrel to relative, initialize it to r, and use it
10393         in elf_machine_rel_relative calls.  Point r after relative relocs.
10395 2001-08-24  Ulrich Drepper  <drepper@redhat.com>
10397         * sysdeps/i386/dl-machine.h (elf_machine_rel): Correct prediction
10398         of R_386_NONE.
10400 2001-08-24  Jakub Jelinek  <jakub@redhat.com>
10402         * elf/do-rel.h (elf_machine_rel_relative): Define for rela if
10403         necessary.  Undefine newly defined macros at the end.
10404         * sysdeps/hppa/dl-machine.h (elf_machine_rela_relative):
10405         Rename from elf_machine_rel_relative.
10406         * sysdeps/cris/dl-machine.h (elf_machine_rela_relative): Likewise.
10407         * sysdeps/m68k/dl-machine.h (elf_machine_rela_relative): Likewise.
10408         * sysdeps/powerpc/dl-machine.h (elf_machine_rela_relative): Likewise.
10409         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela_relative):
10410         Likewise.
10411         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela_relative):
10412         Likewise.
10413         * sysdeps/ia64/dl-machine.h (elf_machine_rela_relative): Likewise.
10414         Fix argument types.
10415         * sysdeps/alpha/dl-machine.h (elf_machine_rela_relative): Likewise.
10416         Fix argument types.
10417         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela_relative):
10418         Likewise.  Fix argument types.
10419         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela_relative):
10420         Likewise.  Fix argument types.
10421         * sysdeps/sh/dl-machine.h (elf_machine_rela_relative): Likewise.
10422         Fix argument types.
10423         * sysdeps/mips/dl-machine.h (elf_machine_rel_relative): Use
10424         ElfW(Rel) in argument.
10425         * sysdeps/mips/mips64/dl-machine.h (elf_machine_rel_relative): New
10426         function.
10428 2001-08-24  Alexandre Oliva  <aoliva@redhat.com>
10430         * sysdeps/sh/dl-machine.h (elf_machine_rela): Fix typo.
10432 2001-08-24  Andreas Jaeger  <aj@suse.de>
10434         * sysdeps/ieee754/ldbl-128/e_j1l.c: New file, contributed by
10435         Stephen L Moshier <moshier@mediaone.net>.
10437 2001-08-24  Ulrich Drepper  <drepper@redhat.com>
10439         * elf/do-rel.h (elf_dynamic_do_rel): RELATIVE relocations comes
10440         first if RELCOUNT is set.
10442         * elf/do-rel.h (elf_dynamic_do_rel): If not relocating lazily, don't
10443         call elf_machine_rel for the last DT_RELCOUNT relocations but instead
10444         elf_machine_rel_relative.
10445         * sysdeps/alpha/dl-machine.h: Define elf_machine_rel_relative.
10446         Minor optimizations.
10447         * sysdeps/arm/dl-machine.h: Likewise.
10448         * sysdeps/cris/dl-machine.h: Likewise.
10449         * sysdeps/hppa/dl-machine.h: Likewise.
10450         * sysdeps/i386/dl-machine.h: Likewise.
10451         * sysdeps/ia64/dl-machine.h: Likewise.
10452         * sysdeps/m68k/dl-machine.h: Likewise.
10453         * sysdeps/mips/dl-machine.h: Likewise.
10454         * sysdeps/powerpc/dl-machine.h: Likewise.
10455         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
10456         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
10457         * sysdeps/sh/dl-machine.h: Likewise.
10458         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
10459         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
10461 2001-08-23  Roland McGrath  <roland@frob.com>
10463         * rt/tst-aio4.c [! SIGRTMIN] (SIGRTMIN, SIGRTMAX): Define as -1.
10465         * sysdeps/mach/hurd/bits/libc-lock.h: New file, initially copied from
10466         sysdeps/mach version.  Implement counting ("recursive") mutexes
10467         on top of cthreads mutexes.
10468         * sysdeps/mach/hurd/bits/stdio-lock.h: File removed; generic now works.
10470         * sysdeps/generic/bits/stdio-lock.h (_IO_lock_initializer): Define to
10471         _LIBC_LOCK_RECURSIVE_INITIALIZER if defined, else do an #error.
10472         (__libc_cleanup_region_start, __libc_cleanup_region_end,
10473         __libc_clean_end): Define these to call the cleanup function after
10474         normal exit when they're supposed to.
10476         * sysdeps/mach/bits/libc-lock.h (__libc_cleanup_region_start):
10477         Take new first arg DOIT, a boolean saying whether to really install
10478         any cleanup handler.
10479         (__libc_cleanup_region_end): Do nothing if start's DOIT arg was zero.
10480         (__libc_cleanup_end): Likewise.
10481         * sysdeps/generic/bits/libc-lock.h: Same changes.
10482         * stdio-common/vfscanf.c (LOCK_STREAM): Pass new arg.
10483         * stdio-common/vfprintf.c (buffered_vfprintf, vfprintf): Likewise.
10484         * sysdeps/mach/hurd/bits/stdio-lock.h (_IO_cleanup_region_start):
10485         Likewise.
10486         * misc/syslog.c (vsyslog, openlog, closelog): Likewise.
10487         * sysdeps/generic/bits/stdio-lock.h
10488         (_IO_cleanup_region_start, _IO_cleanup_region_start_noarg): Likewise.
10490 2001-08-23  Jakub Jelinek  <jakub@redhat.com>
10492         * elf/ldconfig.c (search_dir): Remove stale symlinks.
10494 2001-08-23  Jakub Jelinek  <jakub@redhat.com>
10496         * elf/dl-lookup.c (lookup_cache, lookup_cache_versioned): New.
10497         (_dl_lookup_symbol): Lookup relocations in cache and store successfull
10498         lookups in cache.
10499         (_dl_lookup_versioned_symbol): Likewise.
10500         * elf/dl-reloc.c (_dl_relocate_object): Initialize cache for
10501         relocation lookup.
10502         * elf/rtld.c (print_statistics): Output _dl_num_cache_relocations.
10503         * sysdeps/generic/ldsodefs.h (struct lookup_cache): New definition.
10504         (lookup_cache, lookup_cache_versioned): Add declarations.
10506 2001-08-23  Ulrich Drepper  <drepper@redhat.com>
10508         * stdlib/tst-random.c (main): Swap parameters in fail call.
10509         Patch by Pete Bevin <pete@petebevin.com>.
10511 2001-08-23  Jakub Jelinek  <jakub@redhat.com>
10513         * sysdeps/generic/inttypes.h: Use __gwchar_t instead of __wchar_t.
10515 2001-08-23  Ulrich Drepper  <drepper@redhat.com>
10517         * malloc/obstack.c: Indent preprocessor directives.
10518         Patch by Jim Meyering <meyering@ascend.com>.
10520         * po/ja.po: Update from translation team.
10522 2001-08-23  Roland McGrath  <roland@frob.com>
10524         * libio/tst-ungetwc1.c (main): Add a const to quiet a warning.
10526         * nss/test-netdb.c (test_hosts): Don't use MAXHOSTNAMELEN.
10527         Instead, use dynamic buffer to test gethostname's ENAMETOOLONG error.
10529 2001-08-22  Roland McGrath  <roland@frob.com>
10531         * sysdeps/generic/ldsodefs.h (_dl_load_lock): Declare it here with
10532         __libc_lock_define_recursive.
10533         * elf/dl-open.c: Don't declare it here any more.
10534         * elf/dl-close.c: Likewise.
10535         * elf/dl-lookup.c: Likewise.
10536         * elf/dl-iteratephdr.c: Likewise.
10537         * elf/dl-lookup.c (add_dependency): Use __libc_lock_lock_recursive and
10538         __libc_lock_unlock_recursive.
10539         * elf/dl-close.c (_dl_close): Likewise
10540         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Likewise
10541         * elf/dl-open.c (_dl_open): Likewise
10543         * sysdeps/generic/bits/libc-lock.h
10544         (__libc_lock_define_recursive): New macro.
10545         * sysdeps/generic/bits/stdio-lock.h (_IO_lock_t): Use it.
10546         (_IO_lock_lock): Use __libc_lock_lock_recursive.
10547         (_IO_lock_unlock): Use __libc_lock_unlock_recursive.
10549         * conform/conformtest.pl (checknamespace): Sort the output list.
10551         * sysdeps/generic/bits/poll.h (POLLWRBAND): New alias for POLLOUT.
10552         (POLLRDNORM, POLLRDBAND, POLLWRNORM, POLLWRBAND): Make these
10553         definitions conditional on [__USE_XOPEN].
10555         * sysdeps/mach/hurd/bits/fcntl.h (O_ASYNC, O_FSYNC, O_SYNC): Define
10556         these unconditionally, not only use [__USE_BSD], so as to match
10557         the sysdeps/unix/sysv/linux files.
10559 2001-08-22  Ulrich Drepper  <drepper@redhat.com>
10561         * test-skeleton.c (add_temp_file): Add __attribute__ ((unused)) to
10562         avoid warnings.
10564         * dlfcn/tst-dladdr.c (do_test): Get address of ref1 using
10565         DL_LOOKUP_ADDRESS.
10567 2001-08-22  Roland McGrath  <roland@frob.com>
10569         * sysdeps/generic/bits/sigaction.h (struct sigaction): Fix up
10570         conditionalization of sa_handler/sa_sigaction member types to
10571         match the sysdeps/unix/sysv/linux file.
10573 2001-08-22  Ulrich Drepper  <drepper@redhat.com>
10575         * elf/dl-addr.c (_dl_addr): Handle broken binaries with zero
10576         symbol sizes a bit better.
10578         * sysdeps/ia64/strncpy.S: Complete rewrite.
10579         Contributed by Jakub Jelinek <jakub@redhat.com>.
10581         * string/stratcliff.c (main): Add strncpy test.
10583 2001-08-22  Roland McGrath  <roland@frob.com>
10585         * sysdeps/generic/dl-environ.c: Include <stdlib.h> and <unistd.h>,
10586         and don't declare unsetenv or _environ directly.
10587         (unsetenv): Return int, not void.  Use __environ instead of _environ.
10589 2001-08-01  Mark Kettenis  <kettenis@gnu.org>
10591         * sysdeps/unix/bsd/bsd4.4/Makefile: New file.
10592         * sysdeps/unix/bsd/bsd4.4/Versions: New file.
10593         * sysdeps/unix/bsd/bsd4.4/cmsg_nxthdr.c: New file.
10594         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (__cmsg_nxthdr): Correct
10595         test for cmsg struct size.
10597 2001-04-23  Paul Eggert  <eggert@twinsun.com>
10599         * posix/getopt.h (getopt_long, getopt_long_only, _getopt_internal):
10600         Rename __argc to ___argc in prototypes to avoid compatibility
10601         problems with systems that reserve the identifier "__argc".
10602         Similarly for __argv.
10604 2001-08-21  Roland McGrath  <roland@frob.com>
10606         * stdio-common/tst-fseek.c: Include <time.h> for `time' declaration.
10608         * mach/Makefile (tests): Removed.
10609         * mach/hello.c: File removed.
10611 2001-08-22  Ulrich Drepper  <drepper@redhat.com>
10613         * po/sv.po: Update from translation team.
10615         * stdio-common/vfscanf.c: Fix handling of %l[].
10616         Reported by Mitsuru Chinen <mchinen@yamato.ibm.com>.
10618         * libio/Makefile (tests): Add tst-sscanf.
10619         * libio/tst-sscanf.c: New file.
10621         * elf/dl-addr.c (_dl_addr): Fix tests to determine dli_sname.
10622         * malloc/mtrace.c (tr_where): dli_sname always points to a
10623         non-empty string if != NULL.
10624         Reported by Tim Janik <timj@gtk.org>.
10626 2001-08-22  Jakub Jelinek  <jakub@redhat.com>
10628         * sunrpc/xdr_rec.c (xdrrec_create): Fix buf sizes before allocating
10629         buf.  Free resources on failure.
10630         * sunrpc/svc_unix.c (svcunix_create): Free resources on failure.
10631         (makefd_xprt): Likewise.
10632         * sunrpc/svc_udp.c (svcudp_bufcreate): Likewise.
10633         * sunrpc/svc_tcp.c (svctcp_create, makefd_xprt): Likewise.
10634         * sunrpc/auth_unix.c (authunix_create): Likewise.
10636 2001-08-21  Jakub Jelinek  <jakub@redhat.com>
10638         * string/strnlen.c: Remove.
10639         * sysdeps/generic/strnlen.c: New file.
10640         * sysdeps/i386/i486/bits/string.h (strnlen): Remove.
10642 2001-08-21  Roland McGrath  <roland@frob.com>
10644         * sysdeps/mach/i386/machine-sp.h (__thread_stack_pointer): Define this
10645         as a macro, not an extern inline function.
10647         * hurd/Versions (GLIBC_2.2.5): New set, define __hurd_fail here.
10648         * Versions.def (libc): Add GLIBC_2.2.5 set.
10649         * hurd/hurd.h (_HURD_H_EXTERN_INLINE): New macro.
10650         (__hurd_fail): Use that instead of _EXTERN_INLINE in decl.
10652 2001-08-20  Roland McGrath  <roland@frob.com>
10654         * hurd/hurdlookup.c (__hurd_file_name_lookup): Fail with ENOENT for "".
10655         (__hurd_file_name_split, __hurd_directory_name_split): Likewise.
10657 2001-08-21  Ulrich Drepper  <drepper@redhat.com>
10659         * string/bits/string2.h: Remove strnlen optimization here.
10660         * sysdeps/i386/i486/bits/string.h: Add it here.
10662 2001-08-21  Wolfram Gloger  <wg@malloc.de>
10664         * malloc/malloc.c: Make access to ..._hook pointers thread-safe.
10666 2001-08-21  Ulrich Drepper  <drepper@redhat.com>
10668         * po/gl.po: Update from translation team.
10670 2001-08-20  Ulrich Drepper  <drepper@redhat.com>
10672         * misc/error.c (error_tail): Use fputws_unlocked instead of fputws.
10673         * misc/err.c (convert_and_print): Likewise.
10675         * malloc/obstack.c (print_and_abort): Use fprintf instead of two
10676         function calls.
10678 2001-08-20  Martin Schwidefsky  <schwidefsky@de.ibm.com>
10680         * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Revert the
10681         change of the gregset_t type.
10682         * sysdeps/unix/sysv/linux/s390/s390-64/sys/ucontext.h: Likewise.
10684 2001-08-20  kaz Kojima  <kkojima@rr.iij4u.or.jp>
10686         * sysdeps/unix/sysv/linux/sh/sysdep.S: Align errno.
10688 2001-08-20  Ulrich Drepper  <drepper@redhat.com>
10690         * posix/regex.c (truncate_wchar): Use wcrtomb not wctomb.
10692         * string/strnlen.c: Fix the implementation.  We cannot use memchr.
10694 2001-08-18  Mark Kettenis  <kettenis@gnu.org>
10696         * sysdeps/mach/hurd/i386/init-first.c (init): Initialize __environ
10697         before calling the cthreads initialization code.
10699 2001-08-20  Ulrich Drepper  <drepper@redhat.com>
10701         * argp/argp-help.c: Fix two problems introduced in last change.
10703         * include/dirent.h: Include <dirstream.h> first.
10705 2001-08-19  Ulrich Drepper  <drepper@redhat.com>
10707         * io/fts.c (fts_safe_changedir): Use __fxstat64 instead of __fstat.
10709         * sunrpc/svcauth_des.c (_svcauth_des): Avoid using bcopy.
10710         * sunrpc/xdr_rec.c: Likewise.
10711         * sunrpc/xdr_mem.c: Likewise.
10712         * sunrpc/svc_authux.c (_svcauth_unix): Likewise.
10713         * sunrpc/rpc_cmsg.c: Likewise.
10714         * sunrpc/getrpcport.c (getrpcport): Likewise.
10715         * sunrpc/clnt_simp.c (callrpc): Likewise.
10716         * sunrpc/clnt_gen.c (clnt_create): Likewise.
10717         * string/envz.c: Likewise.
10719         * po/ko.po: Update from translation team.
10721         * argp/argp-help.c: Handle wide oriented stderr stream.
10723 2001-08-18  Ulrich Drepper  <drepper@redhat.com>
10725         * sysdeps/generic/strtol.c: Little optimizations.  Add some
10726         __builtin_expect.
10728         * conform/conformtest.pl: <inttypes.h> test requires <stddef.h>.
10730         * wcsmbs/wchar.h (wcwdith): Change parameter type to wchar_t.
10731         * wcsmbs/wcwidth.c (wcwdith): Likewise.
10732         * wcsmbs/wcwidth.h (internal_wcwdith): Likewise.
10734         * conform/data/unistd.h-data: Remove _SC_MULTIPLE_PROCESS.
10736         * conform/data/ucontext.h-data: Fix typos in ucontext_t element tests.
10738         * time/time.h (struct timespec): Use __time_t for tv_sec element.
10740         * sysdeps/generic/inttypes.h: Define __wchar_t.  Use it instead of
10741         wchar_t for function declarations and defintions.
10743         * misc/sys/select.h: Define __need_time_t before including <time.h>.
10744         Define suseconds_t if it hasn't happened yet.
10746         * iconv/gconv.h: Define __need_wchar_t before including <stddef.h>.
10748         * conform/data/sys/uio.h-data: Allow UIO_MAXIOV to be defined.
10750         * sysdeps/generic/stdint.h: Don't get definition of wchar_t from
10751         <stddef.h>.
10753         * conform/data/stddef.h-data: Remove wint_t.
10755         * conform/conformtest.pl: Change namespace test to take #undef
10756         lines into account.
10758         * conform/data/netinet/in.h-data: Fix typo in allow-header line.
10760         * conform/data/sys/socket.h-data: Add sockatmark.
10762 2001-08-17  Ulrich Drepper  <drepper@redhat.com>
10764         * io/fts.c: Update from recent BSD source.
10766 2001-08-17  Roland McGrath  <roland@frob.com>
10768         * stdio-common/perror.c (perror) [! USE_IN_LIBIO]: Don't use _IO_fwide.
10769         * misc/error.c (error_tail, error, error_at_line) [! USE_IN_LIBIO]:
10770         Likewise.
10772 2001-08-17  Ulrich Drepper  <drepper@redhat.com>
10774         * locale/duplocale.c (__duplocale): Also initialize the special
10775         __ctype_* elements.
10777         * conform/data/netdb.h-data: Adjust gai_strerror return type.
10779 2001-08-17  Andreas Jaeger  <aj@suse.de>
10781         * misc/getpass.c: Include wchar.h for prototypes.
10782         * malloc/obstack.c: Likewise.
10784 2001-08-17  Ulrich Drepper  <drepper@redhat.com>
10786         * sunrpc/svc_simple.c (universal): Use __write instead of write.
10788         * wcsmbs/wcscoll.c: Also define __wcscoll.
10789         * include/wchar.h: Declare __wcscoll.
10791         * libio/fwprintf.c: Use __vfwprintf instead of vfwprintf.
10792         * libio/vwprintf.c: Likewise.
10793         * libio/wprintf.c: Likewise.
10795         * iconv/gconv_cache.c: Use __munmap instead of munmap.
10797 2001-08-16  Ulrich Drepper  <drepper@redhat.com>
10799         * posix/regex.c [_LIBC] (convert_mbs_to_wcs): Use __mbrtowc
10800         instead of mbrtowc.
10801         [_LIBC]: Use __iswctype instead of iswctype, __wcslen instead of
10802         wcslen, and __wcscoll instead of wcscoll.
10804         * sysdeps/unix/sockatmark.c (sockatmark): Use __ioctl instead of ioctl.
10806         * sysdeps/unix/sysv/linux/gai_sigqueue.c (__gai_sigqueue): Use
10807         __getuid instead of getuid.
10809         * stdio-common/perror.c (perror): Use __close instead of close.
10810         * iconv/gconv_cache.c (__gconv_load_cache): Likewise.
10811         * libio/freopen.c (freopen): Likewise.
10812         * libio/freopen64.c (freopen64): Likewise.
10814         * libio/tst-ungetwc2.c (main): Define str const.
10816         * include/wchar.h: Add prototypes for __fwprintf and __vfwprintf.
10817         * libio/fwprintf.c: Also define __fwprintf.
10818         * stdio-common/vfprintf.c [COMPILE_WPRINTF]: Also define __vfwprintf.
10819         * argp/argp-fmtstream.c: Handle wide oriented stderr stream.
10820         * assert/assert-perr.c: Likewise.
10821         * assert/assert.c: Likewise.
10822         * gmon/gmon.c: Likewise.
10823         * inet/rcmd.c: Likewise.
10824         * malloc/obstack.c: Likewise.
10825         * misc/err.c: Likewise.
10826         * misc/error.c: Likewise.
10827         * misc/getpass.c: Likewise.
10828         * posix/getopt.c: Likewise.
10829         * resolv/res_hconf.c: Likewise.
10830         * stdio-common/perror.c: Likewise.
10831         * stdio-common/psignal.c: Likewise.
10832         * stdlib/fmtmsg.c: Likewise.
10833         * sunrpc/auth_unix.c: Likewise.
10834         * sunrpc/clnt_perr.c: Likewise.
10835         * sunrpc/clnt_tcp.c: Likewise.
10836         * sunrpc/clnt_udp.c: Likewise.
10837         * sunrpc/clnt_unix.c: Likewise.
10838         * sunrpc/svc_simple.c: Likewise.
10839         * sunrpc/svc_tcp.c: Likewise.
10840         * sunrpc/svc_udp.c: Likewise.
10841         * sunrpc/svc_unix.c: Likewise.
10842         * sunrpc/xdr.c: Likewise.
10843         * sunrpc/xdr_array.c: Likewise.
10844         * sunrpc/xdr_rec.c: Likewise.
10845         * sunrpc/xdr_ref.c: Likewise.
10846         * sysdeps/generic/wordexp.c: Likewise.
10848         * po/it.po: Update from translation team.
10850         * misc/err.c: Handle wide oriented stderr stream.
10852 2001-08-14  Tom Rix  <trix@redhat.com>
10854         * iconv/gconv_cache.c (find_module): Add #ifndef STATIC_GCONV.
10855         * iconv/Makefile: Fix gconv_cache.c CFLAGS.
10857 2001-08-13  Tom Rix  <trix@redhat.com>
10859         * sysdeps/unix/sysv/aix/Makefile: Add rule to import kernel symbols.
10860         * sysdeps/unix/sysv/aix/bits/types.h: Fix type of __id_t, __useconds_t
10861         and __intptr_t.
10863 2001-08-15  Martin Schwidefsky  <schwidefsky@de.ibm.com>
10865         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S (__getcontext):
10866         Store the access registers to the ucontext structure.
10867         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S (__getcontext):
10868         Likewise.
10870         * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S (__setcontext):
10871         Load the access registers from the ucontext structure.
10872         * sysdeps/unix/sysv/linux/s390/s390-64/setcontext.S (__setcontext):
10873         Likewise.
10875         * sysdeps/unix/sysv/linux/s390/s390-32/ucontext_i.h: Adjust the SC_xxx
10876         offsets to the new ucontext layout.
10877         * sysdeps/unix/sysv/linux/s390/s390-64/ucontext_i.h: Likewise.
10879         * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Fix the layout
10880         of the ucontext structure.
10881         * sysdeps/unix/sysv/linux/s390/s390-64/sys/ucontext.h: Likewise.
10883 2001-08-15  Ulrich Drepper  <drepper@redhat.com>
10885         * misc/error.c (error): Handle wide oriented stderr stream correctly.
10886         (error_at_line): Likewise.
10888         * stdio-common/perror.c (perror): Implement according to standard.
10889         The stream orientation must not be changed if the stream was not
10890         oriented before the call.
10891         * stdio-common/Makefile (tests): Add tst-perror.
10892         * stdio-common/tst-perror.c: New file.
10895 See ChangeLog.12 for earlier changes.