Update.
[glibc.git] / ChangeLog
blobe35cf64d9d1c318d09e1f0c314d93c5418ab1564
1 2002-08-25  Ulrich Drepper  <drepper@redhat.com>
3         * elf/rtld.c: Also test for HAVE_VISIBILITY_ATTRIBUTE before
4         defining DONT_USE_BOOTSTRAP_MAP.
6         * libio/tst-freopen.c (main): Use correct formats for __LINE__.
7         * libio/tst-mmap-setvbuf.c (main): Likewise.
8         * libio/tst-widetext.c (main): Likewise.
10         * libio/tst-mmap-eofsync.c (do_test): Use correct format in error
11         message.
12         * libio/tst-mmap-fflushsync.c (do_test): Likewise.
13         * libio/tst-mmap2-eofsync.c (do_test): Likewise.
15         * sysdeps/i386/elf/configure.in: Unconditionally define
16         PI_STATIC_AND_HIDDEN.
17         * elf/rtld.c (DONT_USE_BOOTSTRAP_MAP): Define only if
18         PI_STATIC_AND_HIDDEN is defined as well.
19         * config.h.in: Add PI_STATIC_AND_HIDDEN entry.
21 2002-08-24  Ulrich Drepper  <drepper@redhat.com>
23         * sysdeps/ia64/bzero.S: Define __bzero as well.
25         * locale/programs/charmap.c (charmap_new_char): Don't use
26         ULONG_MAX as maximum UCS4 value.
28         * sysdeps/unix/sysv/linux/ia64/sys/user.h: New file.
30         * sysdeps/generic/strtol.c: We don't need the isascii test in glibc.
32         * malloc/hooks.c (public_sET_STATe): use size_t as type for i.
33         * malloc/malloc.c (mALLINFo): Likewise.
35         * libio/wstrops.c (_IO_wstr_pbackfail): Use WEOF in comparison.
37         * libio/wfileops.c (_IO_wfile_overflow): Use EOF not WEOF when
38         examining result of _IO_do_flush call.
40         * stdio-common/vfprintf.c (vfprintf): Use correct type in va_arg.
41         Use prec not spec when sizing buffers.
43         * catgets/open_catalog.c (__open_catalog): Add casts to avoid warnings.
44         * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
45         * locale/loadlocale.c (_nl_intern_locale_data): Likewise.
46         * stdio-common/vfscanf.c (inchar): Likewise.
47         * misc/efgcvt_r.c (fcvt_r): Likewise.
48         * elf/dl-misc.c (_dl_debug_vdprintf): Likewise.
49         * elf/readlib.c (process_file): Likewise.
50         * elf/sprof.c (load_profdata): Likewise.
51         * sysdeps/ia64/hp-timing.h (HP_TIMING_PRINT): Likewise.
52         * locale/programs/linereader.c (get_toplvl_escape): Likewise.
53         * locale/programs/charmap.c (charmap_read): Likewise.
54         * libio/fileops.c: Likewise.
55         * libio/fmemopen.c: Likewise.
56         * stdlib/strtod.c: Likewise.
57         * elf/dl-load.c: Likewise.
58         * iconv/iconvconfig.c: Likewise.
59         * iconv/iconv_prog.c (process_block): Likewise.
60         * elf/rtld.c (dl_main): Likewise.
62         * sysdeps/unix/sysv/linux/ia64/Makefile: Define _ASM_IA64_CURRENT_H
63         macro to calm down the compiler.
65         * iconv/gconv_cache.c (__gconv_load_cache): Add cast to avoid warning.
67         * sysdeps/ia64/elf/initfini.c: Don't use newlines embedded in string.
69         * sysdeps/unix/sysv/linux/i386/sysdep.S: Update comment regarding
70         placement of errno definition.
71         * sysdeps/unix/sysv/linux/m68k/sysdep.S: Likewise.
72         * sysdeps/unix/sysv/linux/mips/sysdep.S: Likewise.
73         * sysdeps/unix/sysv/linux/x86_64/sysdep.S: Likewise.
74         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S: Likewise.
75         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S: Likewise.
77         * resolv/nss_dns/dns-host.c (MAXPACKET): Increase minimum value
78         from 1024 to 65536, to avoid buffer overrun.
80 2002-08-16  Paul Eggert  <eggert@twinsun.com>
82         * resolv/gethnamaddr.c (MAXPACKET): Increase minimum value
83         from 1024 to 65536, to avoid buffer overrun.
84         * resolv/res_query.c (MAXPACKET): Likewise.
86 2002-08-24  Andreas Jaeger  <aj@suse.de>
88         * sysdeps/unix/sysv/linux/i386/Versions: Remove *xattr syscalls.
90 2002-08-23  Ulrich Drepper  <drepper@redhat.com>
92         * sysdeps/ieee754/dbl-64/e_pow.c (log1): Define and initialize
93         two52 locally.
94         (log2): Likewise.
95         * sysdeps/ieee754/dbl-64/upow.h: Remove definition of two52.
96         Patch by Simon Gee <simong@agile.tv>.
98         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs_conf):
99         Prefer reading /proc/stat since it is more uniform across
100         architectures.
102         * manual/texinfo.tex: Update to latest official version.
104         * sysvipc/sys/shm.h: Remove SHMLBA definition.
105         * sysdeps/generic/bits/shm.h: Define SHMLBA here.
106         * sysdeps/gnu/bits/shm.h: Likewise.
107         * sysdeps/unix/sysv/linux/alpha/bits/shm.h: Likewise.
108         * sysdeps/unix/sysv/linux/bits/shm.h: Likewise.
109         * sysdeps/unix/sysv/linux/mips/bits/shm.h: Likewise.
110         * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Likewise.
111         * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Likewise.
112         * sysdeps/unix/sysv/linux/s390/bits/shm.h: Likewise.
113         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: Likewise.
114         * sysdeps/unix/sysv/linux/ia64/bits/shm.h: Define SHMLBA to 2^20
115         since this is what the kernel says.
117         * misc/sys/xattr.h: Include <sys/types.h> instead of <stddef.h>
118         since ssize_t is needed as well.  Replace const with __const.
120 2002-08-23  Roland McGrath  <roland@redhat.com>
122         * malloc/hooks.c (__malloc_initialize_hook, __free_hook,
123         __malloc_hook, __realloc_hook, __memalign_hook,
124         __after_morecore_hook): Variable definitions moved to ...
125         * malloc/malloc.c: ... here, so as to be before all references.
127         * sysdeps/i386/dl-machine.h (elf_machine_load_address): Add a dummy
128         global variable reference in an unused asm parameter, to ensure the
129         compiler has set up the GOT register before we use it.
131         * malloc/hooks.c: Move variable definitions ahead of uses.
132         * libio/fileops.c: Move versioned_symbol defns ahead of _IO_jump_t
133         initializers that make reference to variables they define.
135 2002-08-23  Andreas Jaeger  <aj@suse.de>
137         * locale/loadarchive.c: Include <stdlib.h> for prototypes of
138         alloca, free, qsort.
140         * dlfcn/bug-dlsym1-lib1.c (foo): Add prototype to avoid warning.
142         * sysdeps/ieee754/flt-32/e_jnf.c: Remove unused variable.
143         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
145         * misc/sys/xattr.h: New file, contributed by Christoph Hellwig
146         <hch@lst.de>.
147         * sysdeps/generic/fgetxattr.c: New file.
148         * sysdeps/generic/flistxattr.c: New file.
149         * sysdeps/generic/fremovexattr.c: New file.
150         * sysdeps/generic/fsetxattr.c: New file.
151         * sysdeps/generic/getxattr.c: New file.
152         * sysdeps/generic/listxattr.c: New file.
153         * sysdeps/generic/lgetxattr.c: New file.
154         * sysdeps/generic/llistxattr.c: New file.
155         * sysdeps/generic/lremovexattr.c: New file.
156         * sysdeps/generic/lsetxattr.c: New file.
157         * sysdeps/generic/removexattr.c: New file.
158         * sysdeps/generic/setxattr.c: New file.
159         * misc/Makefile (headers): Add sys/xattr.h.
160         (routines): Add *xattr calls.
161         * misc/Versions: Add *xattr calls with version 2.3.
162         * sysdeps/unix/sysv/linux/m68k/Versions: Remove *xattr syscalls.
163         * sysdeps/unix/sysv/linux/s390/s390-32/Versions: Likewise.
164         * sysdeps/unix/sysv/linux/sparc/sparc32/Versions: Likewise.
165         * sysdeps/unix/sysv/linux/sparc/sparc64/Versions: Likewise.
166         * sysdeps/unix/sysv/linux/x86_64/Versions: Likewise.
167         * sysdeps/unix/sysv/linux/ia64/Versions: Likewise.
168         * sysdeps/unix/sysv/linux/alpha/Versions: Likewise.
169         * sysdeps/unix/sysv/linux/arm/Versions: Likewise.
171 2002-08-22  Steven Munroe  <sjmunroe@us.ibm.com>
173         * sysdeps/powerpc/elf/libc-start.c
174         (__cache_line_size): Declare.
175         (__aux_init_cache): New.
176         (__libc_start_main): Change type of `auxvec' parameter to
177         `ElfW(auxv_t) *'.  Correct walking of aux vector.  Call
178         __aux_init_cache.
179         * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c
180         (__cache_line_size): Declare.
181         (__aux_init_cache): New.
182         (DL_PLATFORM_INIT): Define.
183         * sysdeps/powerpc/memset.S: Define __cache_line_size and use its
184         value to select the correct stride for dcbz.
186 2002-08-22  Andreas Jaeger  <aj@suse.de>
188         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Fix arguments of
189         shmat.
191 2002-08-22  Roland McGrath  <roland@redhat.com>
193         * locale/loadarchive.c (_nl_load_locale_from_archive): Check max file
194         position indicated by locrectab against file bounds before rounding to
195         page size.  In mapping loop, always set TO before breaking out of
196         contiguous range coalescing loop.
198         * locale/loadarchive.c (_nl_load_locale_from_archive): Use MAP_PRIVATE
199         (or MAP_COPY if available) instead of MAP_SHARED.
201         * scripts/firstversions.awk: When encountering a version newer than
202         the specified earliest version, be sure to emit the specified earliest
203         version first if any renaming of an older version to that has been.
205 2002-08-21  Roland McGrath  <roland@redhat.com>
207         * configure.in: Make GCC version check require 3.[2-9]* and no others.
208         * manual/install.texi (Tools for Compilation): Say 3.2 is required.
209         (Configuring and compiling): Don't mention older GCC versions any more.
210         * INSTALL: Regenerated.
212         * manual/install.texi (Configuring and compiling, Installation,
213         Running make install, Linux): Linux -> GNU/Linux where appropriate.
215         * elf/rtld.c (_dl_start_final): Move defn before _dl_start so it can
216         be inlined.  Declare it with always_inline if [DONT_USE_BOOTSTRAP_MAP]
217         and with noinline otherwise.  Remove hack alloca use to prevent
218         inlining, we can ask for it explicitly nowadays.
220         * dlfcn/bug-dlsym1.c: New file.
221         * dlfcn/bug-dlsym1-lib1.c, dlfcn/bug-dlsym1-lib2.c: New files.
222         * dlfcn/Makefile (distribute): Add them.
223         (tests): Add bug-dlsym1 here.
224         (modules-names): Add bug-dlsym1-lib1 and bug-dlsym1-lib2 here.
225         ($(objpfx)bug-dlsym1, $(objpfx)bug-dlsym1.out): New targets.
226         ($(objpfx)bug-dlsym1-lib1.so, $(objpfx)bug-dlsym1-lib2.so): Likewise.
228 2002-08-21  Ulrich Drepper  <drepper@redhat.com>
230         * elf/rtld.c (start_time): New global variable.  Moved from _dl_start.
231         (DONT_USE_BOOTSTRAP_MAP): Define if we can use non-exported symbols
232         before relocation.
233         (_dl_start): Don't use local bootstrap_map variable if
234         DONT_USE_BOOTSTRAP_MAP is defined.  Use GL(dl_rtld_map).  Don't
235         pass bootstrap_map to _dl_start_final in this case either.  Don't
236         pass start_time to _dl_start_final ever.
237         (_dl_start_final): Don't copy bootstrap_map if DONT_USE_BOOTSTRAP_MAP.
239         * elf/dl-deps.c (_dl_map_object_deps): Revert patch from 2002-05-28.
240         This cripples the scope lists necessary to search for symbols in
241         dependencies which are not in the global scope.
243         * include/setjmp.h (__libc_longjmp): Add declaration.
245 2002-08-21  Andreas Jaeger  <aj@suse.de>
247         * sysdeps/x86_64/_mcount.S: Fix assembler.
249         * sysdeps/unix/sysv/linux/x86_64/Makefile: Generate bits/syscall.h
250         with biarch support.
252 2002-08-21  Andreas Jaeger  <aj@suse.de>
254         * sysdeps/x86_64/sysdep.h (CALL_MCOUNT): Fix it.
256         * sysdeps/x86_64/Makefile (sysdep_routines): Add _mcount.
258         * sysdeps/x86_64/machine-gmon.h: New file.
259         * sysdeps/x86_64/_mcount.S: New file.
261 2002-08-20  Ulrich Drepper  <drepper@redhat.com>
263         * elf/rtld.c (_dl_start): Pass zero to TLS_INIT_TP.  Set
264         bootstrap_map.l_tls_tp_initialized to 1 if TLS_INIT_TP was called.
265         (_dl_start_final): Copy l_tls_tp_initialized to GL(dl_rtld_map).
266         (dl_main): If HAVE___THREAD is not defined pass l_tls_tp_initialized
267         to TL_INIT_TP.  Otherwise pass 1.
268         * include/link.h (struct link_map): Add l_tls_tp_initialized.
269         * sysdeps/generic/libc-tls.c (__libc_setup_tls): Pass 0 to TL_INIT_TP.
271 2002-08-15  Jakub Jelinek  <jakub@redhat.com>
273         * locale/programs/localedef.c (add_to_readlist): Error about
274         circular dependencies only if the locale in question hasn't
275         been finished.
276         * locale/programs/linereader.c (get_string): Pass LC_CTYPE not
277         CTYPE_LOCALE to load_locale.
278         * locale/programs/locfile.c (locfile_read): Don't include
279         unneeded but available locales in locale_mask.
281         * locale/programs/locarchive.c (enlarge_archive): If quiet, don't
282         print any messages about enlarging archive.
284 2002-08-20  Brian Youmans  <3diff@gnu.org>
286         * manual/contrib.texi: Removed licenses, added acknowledgements
287         for contributions by Intel, IBM, Craig Metz.
288         * LICENSES: New file, contains the text of all non-FSF licenses in the
289         distribution that require putting the notice in the accompanying
290         documentation.
291         * README.template, README: Mention LICENSES.
293         * sysdeps/mach/hurd/net/if_ppp.h: Replaced CMU license with a
294         new one modelled on the modern BSD license, per recent letter
295         of permission from CMU.
296         * sysdeps/unix/sysv/linux/net/if_ppp.h: Likewise.
298         * sysdeps/ieee754/dbl-64/MathLib.h: Changed the copyright holder
299         from IBM to FSF, per the recent Software Letter.  Changed the
300         distribution terms from GPL to LGPL.
302         * sysdeps/ieee754/dbl-64/asincos.tbl: Added FSF copyright and
303         copying permission notice (Lesser GPL), per recent IBM Software Letter.
304         * sysdeps/ieee754/dbl-64/powtwo.tbl: Likewise.
305         * sysdeps/ieee754/dbl-64/root.tbl: Likewise.
306         * sysdeps/ieee754/dbl-64/sincos.tbl: Likewise.
307         * sysdeps/ieee754/dbl-64/uatan.tbl: Likewise.
308         * sysdeps/ieee754/dbl-64/uexp.tbl: Likewise.
309         * sysdeps/ieee754/dbl-64/ulog.tbl: Likewise.
310         * sysdeps/ieee754/dbl-64/upow.tbl: Likewise.
311         * sysdeps/ieee754/dbl-64/utan.tbl: Likewise.
313         * sysdeps/ieee754/dbl-64/atnat.h: Changed the copyright holder
314         from IBM to FSF, per the recent Software Letter.  Corrected the
315         text of the copying permission notice to say Lesser GPL instead
316         of GPL in warranty disclaimer paragraph.
317         * sysdeps/ieee754/dbl-64/atnat2.h: Likewise.
318         * sysdeps/ieee754/dbl-64/branred.h: Likewise.
319         * sysdeps/ieee754/dbl-64/dla.h: Likewise.
320         * sysdeps/ieee754/dbl-64/doasin.h: Likewise.
321         * sysdeps/ieee754/dbl-64/dosincos.h: Likewise.
322         * sysdeps/ieee754/dbl-64/mpa.h: Likewise.
323         * sysdeps/ieee754/dbl-64/mpa2.h: Likewise.
324         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
325         * sysdeps/ieee754/dbl-64/mpexp.h: Likewise.
326         * sysdeps/ieee754/dbl-64/mplog.h: Likewise.
327         * sysdeps/ieee754/dbl-64/mpsqrt.h: Likewise.
328         * sysdeps/ieee754/dbl-64/mydefs.h: Likewise.
329         * sysdeps/ieee754/dbl-64/sincos32.h: Likewise.
330         * sysdeps/ieee754/dbl-64/uasncs.h: Likewise.
331         * sysdeps/ieee754/dbl-64/uexp.h: Likewise.
332         * sysdeps/ieee754/dbl-64/ulog.h: Likewise.
333         * sysdeps/ieee754/dbl-64/upow.h: Likewise.
334         * sysdeps/ieee754/dbl-64/urem.h: Likewise.
335         * sysdeps/ieee754/dbl-64/uroot.h: Likewise.
336         * sysdeps/ieee754/dbl-64/usncs.h: Likewise.
337         * sysdeps/ieee754/dbl-64/utan.h: Likewise.
339         * sysdeps/ieee754/dbl-64/branred.c: Corrected the text of the copying
340         permission notice to say Lesser GPL instead of GPL in warranty
341         disclaimer paragraph.
342         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
343         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
344         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
345         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
346         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
347         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
348         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
349         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
350         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
351         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
352         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
353         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
354         * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
355         * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
356         * sysdeps/ieee754/dbl-64/mplog.c: Likewise.
357         * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
358         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
359         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
360         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
361         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
362         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
363         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
364         * sysdeps/ieee754/dbl-64/slowpow.c:  Likewise.
366 2002-08-20  Roland McGrath  <roland@redhat.com>
368         Fix ABI compatibility with libc compiled with old tools on powerpc.
369         Changes contributed by Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
370         and Jack Howarth <howarth@bromo.med.uc.edu>.
371         * sysdeps/powerpc/Makefile [$(have-protected) = yes]
372         (CPPFLAGS-divdi3.c, CPPFLAGS-libgcc-compat.S): New variables,
373         pass -DHAVE_DOT_HIDDEN for these files.
374         * sysdeps/powerpc/Versions (libc: GLIBC_2.0): Added __floatdidf,
375         __floatdisf.
376         * sysdeps/powerpc/divdi3.c: New file.
377         * sysdeps/powerpc/libgcc-compat.S: New file, replacement for ...
378         * sysdeps/powerpc/libgcc-compat.c: ... this, file removed.
380 2002-08-20  Jakub Jelinek  <jakub@redhat.com>
382         * locale/loadarchive.c (_nl_load_locale_from_archive): Handle
383         partially overlapping mappings.  Remove unneeded (char *) casts.
384         Never allow duplication of ranges in mapped areas.
386 2002-08-20  Roland McGrath  <roland@redhat.com>
388         * elf/Makefile ($(objpfx)ld.so): Separate commands in rule so errors
389         can be detected by make.  Reported by H.J. Lu <hjl@gnu.org>.
391 2002-08-20  Ulrich Drepper  <drepper@redhat.com>
393         * include/unistd.h: Don't hide _exit.
395         * elf/rtld.c (_dl_start): Pass extra argument 1 to TLS_INIT_TP.
396         (dl_main): Pass extra argument 0 to TLS_INIT_TP.
397         * sysdeps/generic/libc-tls.c (__libc_setup_tls): Pass extra
398         argument 1 to TLS_INIT_TP.
399         * sysdeps/generic/tls.h (TLS_INIT_TP): Describe new parameter.
401         * sysdeps/generic/dl-tls.c (allocate_dtv): Optimize a bit.
403         * elf/Versions [ld] (GLIBC_PRIVATE): Add _dl_get_tls_static_info.
404         * sysdeps/generic/dl-tls.c (_dl_allocate_tls_storage): Move dtv
405         memory allocation to...
406         (allocate_dtv): ...here.  New function.
407         (_dl_allocate_tls): Change to take parameter.  If parameter is non-NULL
408         call allocate_dtv instead of _dl_allocate_tls_storage.
409         (_dl_deallocate_tls): New parameter.  Deallocate TCB only if true.
410         (_dl_get_tls_static_info): New function.
411         * sysdeps/generic/ldsodefs.h: Adjust prototypes of _dl_allocate_tls
412         and _dl_deallocate_tls.  Add prototype for _dl_get_tls_static_info.
414 2002-08-19  Ulrich Drepper  <drepper@redhat.com>
416         * sysdeps/generic/dl-tls.c (_dl_allocate_tls_init): Return
417         immediately if result == NULL.
419 2002-08-16  Jakub Jelinek  <jakub@redhat.com>
421         * sysdeps/alpha/fpu/libm-test-ulps: Regenerate.
423 2002-08-18  Roland McGrath  <roland@frob.com>
425         * sysdeps/mach/hurd/mkdir.c (__mkdir): Use __directory_name_split
426         instead of __file_name_split.
427         * sysdeps/mach/hurd/unlink.c (__unlink): Likewise.
429         * sysdeps/mach/hurd/dl-sysdep.c
430         [HP_TIMING_AVAIL] (_dl_cpuclock_offset): New variable.
431         [HP_TIMING_AVAIL] (_dl_sysdep_start): Set it with HP_TIMING_NOW.
433 2002-08-16  Jakub Jelinek  <jakub@redhat.com>
435         * locale/loadarchive.c (_nl_load_locale_from_archive): Braino fix
436         in change before last: MAX -> MIN.
438 2002-08-15  Roland McGrath  <roland@redhat.com>
440         * libio/fileops.c (_IO_file_seekoff_mmap): Leave read pointers at EOF
441         if seek would go past it.
442         (mmap_remap_check): If file position is at or past EOF after check,
443         leave read pointers at EOF and don't seek.
445         * libio/tst-mmap-offend.c: New file.
446         * libio/Makefile (tests): Add it.
448         * locale/loadarchive.c (_nl_load_locale_from_archive): Store strdup of
449         the name as passed, rather than the name in the archive dictionary.
451 2002-08-15  Ulrich Drepper  <drepper@redhat.com>
453         * csu/Makefile: Define elide-routines.os not static-only-routines.
455         * include/sched.h (__clone): Add varargs at the end.
457         * elf/rtld.c (_dl_start): Allow TLS_INIT_TP to fail, and stop in that
458         case.
459         (TLS_INIT_HELPER): If defined, use it.
460         * sysdeps/generic/libc-tls.c (TLS_INIT_HELPER): Likewise.
462 2002-08-15  Roland McGrath  <roland@redhat.com>
464         * elf/dl-load.c (lose): Remove [!SHARED] conditional from null check
465         on L->l_prev; it can happen under rtld --verify too.
467         * locale/loadarchive.c (_nl_load_locale_from_archive): Don't read the
468         header separately, just map an initial window of 2MB from the file
469         and remap if that is not large enough to cover the whole header.
471 2002-08-15  Andreas Jaeger  <aj@suse.de>
473         * sysdeps/unix/sysv/linux/m68k/Versions: Add *xattr syscalls with
474         version 2.3.
475         * sysdeps/unix/sysv/linux/arm/Versions: Likewise.
476         * sysdeps/unix/sysv/linux/alpha/Versions: Likewise.
477         * sysdeps/unix/sysv/linux/ia64/Versions: Likewise.
478         * sysdeps/unix/sysv/linux/x86_64/Versions: Likewise.
479         * sysdeps/unix/sysv/linux/sparc/sparc64/Versions: Likewise.
480         * sysdeps/unix/sysv/linux/sparc/sparc32/Versions: Likewise.
481         * sysdeps/unix/sysv/linux/s390/s390-32/Versions: Likewise.
482         * sysdeps/unix/sysv/linux/powerpc/Versions: Likewise.
483         * sysdeps/unix/sysv/linux/mips/Versions: Likewise.
484         Patch by Andreas Gruenbacher <agruen@suse.de>.
486         * sysdeps/unix/sysv/linux/syscalls.list: Add *xattr syscalls.
488 2002-08-14  Roland McGrath  <roland@redhat.com>
490         * locale/locarchive.h (struct locale_category_data): Give this name to
491         the type of locale_data_t's elements.
492         * locale/programs/locarchive.c (cmpcategorysize): New static function.
493         (add_locale): Use that to sort the categories by size and put all
494         those that fit into two pages into the LC_ALL block, instead of
495         hard-coding it to do everything but LC_CTYPE and LC_COLLATE.
496         (show_archive_content): Detect categories inside LC_ALL block
497         directly, instead of hard-coding.
498         (oldlocrecentcmp): Compare just on file locations used.
500 2002-08-14  Jakub Jelinek  <jakub@redhat.com>
502         * locale/programs/locarchive.c (struct oldlocrecent): New.
503         (oldlocrecentcmp): New.
504         (enlarge_archive): Re-add locales in the order they were added
505         to the archive.
506         (add_locale): Put all the small locale files together, if the small
507         locale file block would occupy less pages if page size aligned, align
508         it.
509         (show_archive_content): Adjust for locale archives optimized for speed.
511 2002-08-14  Roland McGrath  <roland@frob.com>
513         * configure.in: Use "MISSING" as not-found value for MIG.
514         * sysdeps/mach/configure.in: Fatal if mig not found.
515         * configure, sysdeps/mach/configure: Regenerated.
517 2002-08-13  Jakub Jelinek  <jakub@redhat.com>
519         * locale/loadarchive.c (archfname): Add missing slash.
521         * sysdeps/generic/strtold.c (__strtold_internal): Add libc_hidden_def.
522         * wcsmbs/wcstold.c (__wcstold_internal): Add libc_hidden_def.
524 2002-08-12  Roland McGrath  <roland@redhat.com>
526         * include/sys/wait.h (__waitpid): Add libc_hidden_proto.
527         * sysdeps/unix/sysv/sco3.2.4/waitpid.S: Add libc_hidden_def.
528         * sysdeps/unix/sysv/sysv4/waitpid.c: Add libc_hidden_weak.
529         * sysdeps/unix/sysv/linux/waitpid.c: Likewise.
530         * sysdeps/unix/sysv/aix/waitpid.c: Likewise.
531         * sysdeps/unix/bsd/bsd4.4/waitpid.c: Likewise.
532         * sysdeps/generic/waitpid.c: Likewise.
534         * include/net/if.h: New file.  Use libc_hidden_proto
535         for if_nametoindex and if_indextoname.
536         * sysdeps/generic/if_index.c: Add libc_hidden_def.
537         * sysdeps/mach/hurd/if_index.c: Likewise.
538         * sysdeps/unix/sysv/linux/if_index.c: Likewise.
540         * include/grp.h (setgroups): Add libc_hidden_proto.
541         * sysdeps/generic/setgroups.c: Add libc_hidden_def.
542         * sysdeps/mach/hurd/setgroups.c: Likewise.
543         * sysdeps/unix/sysv/irix4/setgroups.c: Likewise.
544         * sysdeps/unix/sysv/linux/i386/setgroups.c: Likewise.
546 2002-08-13  Jakub Jelinek  <jakub@redhat.com>
548         * include/unistd.h (seteuid, setegid): Add libc_hidden_proto.
549         * sysdeps/generic/seteuid.c (seteuid): Add libc_hidden_def.
550         * sysdeps/generic/setegid.c (setegid): Likewise.
551         * sysdeps/mach/hurd/seteuid.c (seteuid): Likewise.
552         * sysdeps/mach/hurd/setegid.c (setegid): Likewise.
553         * sysdeps/unix/bsd/seteuid.c (seteuid): Likewise.
554         * sysdeps/unix/bsd/setegid.c (setegid): Likewise.
555         * sysdeps/unix/sysv/aix/seteuid.c (seteuid): Likewise.
556         * sysdeps/unix/sysv/aix/setegid.c (setegid): Likewise.
557         * sysdeps/unix/sysv/linux/i386/setegid.c (setegid): Likewise.
558         * sysdeps/unix/sysv/linux/sparc/sparc32/seteuid.c (seteuid): Likewise.
559         * sysdeps/unix/sysv/linux/sparc/sparc32/setegid.c (setegid): Likewise.
560         * sysdeps/unix/sysv/linux/seteuid.c (seteuid): Likewise.
561         * sysdeps/unix/sysv/linux/setegid.c (setegid): Likewise.
562         * sysdeps/unix/sysv/linux/i386/seteuid.c (seteuid): Likewise.
563         Remove fallback if __ASSUME_SETRESUID_SYSCALL.
565         * include/sys/stat.h (__fxstat_internal, __fxstat64_internal,
566         __lxstat_internal, __lxstat64_internal): Remove.
567         (__fxstat, __fxstat64, __lxstat, __lxstat64, __xstat, __xstat64):
568         Add hidden_proto.
569         * sysdeps/generic/fxstat.c (__fxstat): Add hidden_def.
570         Remove INTDEF where present, remove #undef at the beginning.
571         * sysdeps/generic/fxstat64.c (__fxstat64): Likewise.
572         * sysdeps/generic/lxstat.c (__lxstat): Likewise.
573         * sysdeps/generic/lxstat64.c (__lxstat64): Likewise.
574         * sysdeps/generic/xstat.c (__xstat): Likewise.
575         * sysdeps/generic/xstat64.c (__xstat64): Likewise.
576         * sysdeps/mach/hurd/dl-sysdep.c (__xstat64, __fxstat64): Likewise.
577         * sysdeps/mach/hurd/fxstat.c (__fxstat): Likewise.
578         * sysdeps/mach/hurd/fxstat64.c (__fxstat64): Likewise.
579         * sysdeps/mach/hurd/lxstat.c (__lxstat): Likewise.
580         * sysdeps/mach/hurd/lxstat64.c (__lxstat64): Likewise.
581         * sysdeps/mach/hurd/xstat.c (__xstat): Likewise.
582         * sysdeps/mach/hurd/xstat64.c (__xstat64): Likewise.
583         * sysdeps/unix/fxstat.c (__fxstat): Likewise.
584         * sysdeps/unix/common/lxstat.c (__lxstat): Likewise.
585         * sysdeps/unix/sysv/aix/fxstat.c (__fxstat): Likewise.
586         * sysdeps/unix/sysv/aix/fxstat64.c (__fxstat64): Likewise.
587         * sysdeps/unix/sysv/aix/lxstat.c (__lxstat): Likewise.
588         * sysdeps/unix/sysv/aix/lxstat64.c (__lxstat64): Likewise.
589         * sysdeps/unix/sysv/aix/xstat.c (__xstat): Likewise.
590         * sysdeps/unix/sysv/aix/xstat64.c (__xstat64): Likewise.
591         * sysdeps/unix/sysv/linux/ia64/fxstat.c (__fxstat): Likewise.
592         * sysdeps/unix/sysv/linux/ia64/lxstat.c (__lxstat): Likewise.
593         * sysdeps/unix/sysv/linux/ia64/xstat.c (__xstat): Likewise.
594         * sysdeps/unix/sysv/linux/s390/s390-64/fxstat.c (__fxstat): Likewise.
595         * sysdeps/unix/sysv/linux/s390/s390-64/lxstat.c (__lxstat): Likewise.
596         * sysdeps/unix/sysv/linux/s390/s390-64/xstat.c (__xstat): Likewise.
597         * sysdeps/unix/sysv/linux/i386/fxstat.c (__fxstat): Likewise.
598         * sysdeps/unix/sysv/linux/i386/lxstat.c (__lxstat): Likewise.
599         * sysdeps/unix/sysv/linux/i386/xstat.c (__xstat): Likewise.
600         * sysdeps/unix/sysv/linux/xstat.c (__xstat): Likewise.
601         * sysdeps/unix/sysv/linux/xstat64.c (__xstat64): Likewise.
602         * sysdeps/unix/sysv/linux/fxstat.c (__fxstat): Likewise.
603         * sysdeps/unix/sysv/linux/fxstat64.c (__fxstat64): Likewise.
604         * sysdeps/unix/sysv/linux/lxstat.c (__lxstat): Likewise.
605         * sysdeps/unix/sysv/linux/lxstat64.c (__lxstat64): Likewise.
606         * sysdeps/unix/xstat.c (__xstat): Likewise.
608         * include/sys/statvfs.h (statvfs, fstatvfs): Add libc_hidden_proto.
609         * sysdeps/generic/statvfs.c (statvfs): Add libc_hidden_def.
610         * sysdeps/generic/fstatvfs.c (fstatvfs): Likewise.
611         * sysdeps/mach/hurd/statvfs.c (statvfs): Likewise.
612         * sysdeps/mach/hurd/fstatvfs.c (fstatvfs): Likewise.
613         * sysdeps/unix/sysv/linux/statvfs.c (statvfs): Likewise.
614         * sysdeps/unix/sysv/linux/fstatvfs.c (fstatvfs): Likewise.
616         * include/unistd.h (tcgetpgrp): Add libc_hidden_proto.
617         * include/termios.h (tcsetattr, cfsetispeed, cfsetospeed): Likewise.
618         * sysdeps/generic/tcgetpgrp.c (tcgetpgrp): Add libc_hidden_def.
619         * sysdeps/generic/tcsetattr.c (tcsetattr): Likewise.
620         * sysdeps/generic/speed.c (cfsetispeed, cfsetospeed): Likewise.
621         * sysdeps/unix/bsd/bsd4.4/tcsetattr.c (tcgetpgrp): Likewise.
622         * sysdeps/unix/bsd/sun/sunos4/tcsetattr.c (tcsetattr): Likewise.
623         * sysdeps/unix/bsd/sun/sunos4/speed.c (cfsetispeed, cfsetospeed):
624         Likewise.
625         * sysdeps/unix/bsd/tcgetpgrp.c (tcgetpgrp): Likewise.
626         * sysdeps/unix/bsd/tcsetattr.c (tcsetattr): Likewise.
627         * sysdeps/unix/sysv/aix/tcsetattr.c (tcsetattr): Likewise.
628         * sysdeps/unix/sysv/aix/speed.c (cfsetispeed, cfsetospeed): Likewise.
629         * sysdeps/unix/sysv/linux/tcsetattr.c (tcsetattr): Likewise.
630         * sysdeps/unix/sysv/linux/speed.c (cfsetispeed, cfsetospeed): Likewise.
631         * sysdeps/unix/sysv/tcgetpgrp.c (tcgetpgrp): Likewise.
632         * sysdeps/unix/sysv/tcsetattr.c (tcsetattr): Likewise.
634         * include/string.h (strcoll): Add libc_hidden_proto.
635         * string/strcoll.c (strcoll): Add libc_hidden_def.
637         * misc/err.c (vwarn): Fix pasto in libc_hidden_def.
639 2002-08-11  Philip Blundell  <philb@gnu.org>
641         * sysdeps/arm/Makefile: New file.
643 2002-08-08  Jakub Jelinek  <jakub@redhat.com>
645         * posix/regcomp.c (parse_reg_exp): If '|' is immediately followed
646         by another '|', end of regex or enclosing ')', clear branch.
647         * posix/bug-regex9.c: New test.
648         * posix/Makefile (tests): Add bug-regex9.
650 2002-08-12  Roland McGrath  <roland@redhat.com>
652         * sysdeps/generic/dl-tls.c (_dl_allocate_tls_init): Fix inner loop
653         start count condition, use TOTAL instead of variable that was never
654         set.  Fix outer loop termination condition to TOTAL >= after update.
656         * sysdeps/generic/libc-tls.c (__libc_setup_tls): Initialize
657         dl_tls_static_align and dl_tls_static_nelem.
659 2002-08-11  Roland McGrath  <roland@redhat.com>
661         * elf/tst-tlsmod4.c (in_dso): Insert a random library call before use
662         of the TLS macros, otherwise the compiler might not have initialized
663         the PIC register yet when we use the PLT via asm.
664         * elf/tst-tlsmod3.c (in_dso2): Likewise.
665         * elf/tst-tlsmod2.c (in_dso): Likewise.
667         * sunrpc/svc_authux.c (_svcauth_unix): Remove spurious printf (ugh!).
669         * sysdeps/i386/bits/byteswap.h (__bswap_16, __bswap_32, __bswap_64):
670         Evaluate argument exactly once.  Remove __volatile__ from asm's.
672         * include/unistd.h: Use libc_hidden_proto for getdomainname
673         and getlogin_r.
674         * sysdeps/generic/getdomain.c: Add libc_hidden_def.
675         * sysdeps/mach/hurd/getdomain.c: Likewise.
676         * sysdeps/unix/getlogin_r.c: Likewise.
677         * sysdeps/mach/hurd/getlogin_r.c: Likewise.
678         * sysdeps/generic/getlogin_r.c: Likewise.
680         * include/rpc/auth_des.h: Use libc_hidden_proto for rtime.
681         * sunrpc/rtime.c: Add libc_hidden_def.
683         * include/string.h: Use libc_hidden_proto for basename.
684         * string/basename.c [_LIBC]: Add libc_hidden_def.
686         * sysdeps/unix/sysv/linux/opensock.c (__opensock): socket -> __socket.
688         * locale/loadarchive.c: munmap -> __munmap throughout.
690         * include/netdb.h: Use libc_hidden_proto for gai_strerror.
691         * sysdeps/posix/gai_strerror.c: Add libc_hidden_def.
692         * sysdeps/generic/gai_strerror.c: Likewise.
694         * include/sys/errno.h: New file.
696         * include/signal.h: No libc_hidden_proto for raise,
697         __libc_current_sigrtmin, __libc_current_sigrtmax.
698         These need to be overridden by linuxthreads.
699         * sysdeps/posix/raise.c: Reverted.
700         * sysdeps/generic/raise.c: Reverted.
701         * signal/allocrtsig.c: Reverted.
703         * locale/loadarchive.c (LOCALEDIR): Remove debugging defn.  Oops.
705 2002-08-10  Roland McGrath  <roland@redhat.com>
707         * locale/loadarchive.c (_nl_archive_subfreeres): New function.
708         * locale/localeinfo.h: Declare it.
709         * locale/setlocale.c (free_mem): Don't call _nl_unload_locale on the
710         current locale if it's not in the file list.
711         Call _nl_archive_subfreeres.
713 2002-08-10  Andreas Jaeger  <aj@suse.de>
715         * sysdeps/i386/strchr.S: Add comment.
717 2002-08-10  Roland McGrath  <roland@redhat.com>
719         * include/wchar.h (putwc): Use libc_hidden_proto.
720         * include/stdio.h (dprintf, fprintf, vfprintf, sprintf,
721         sscanf, fwrite, perror, remove, rewind, open_memstream): Likewise.
722         * stdio-common/dprintf.c: Add libc_hidden_def.
723         * stdio-common/fprintf.c: Likewise.
724         * stdio-common/sprintf.c: Likewise.
725         * stdio-common/sscanf.c: Likewise.
726         * libio/iofwrite.c: Likewise.
727         * libio/memstream.c: Likewise.
728         * libio/putwc.c: Likewise.
729         * stdio-common/perror.c: Likewise.
730         * sysdeps/posix/remove.c: Likewise.
731         * sysdeps/generic/remove.c: Likewise.
732         * libio/rewind.c: Likewise.  Use <stdio.h> instead of "stdio.h".
733         * stdio-common/vfprintf.c: Add libc_hidden_def.  Include <stdio.h>.
735 2002-08-09  Jakub Jelinek  <jakub@redhat.com>
737         * include/wctype.h (iswalpha, iswdigit, iswlower, iswspace, iswxdigit,
738         towlower, towupper): Add prototypes here too.  Add libc_hidden_proto.
739         * wctype/wcfuncs.c (iswalpha, iswdigit, iswlower, iswspace, iswxdigit,
740         towlower, towupper): Add libc_hidden_weak.
742         * include/bits/dlfcn.h: New file.
743         * elf/dl-profstub.c (_dl_mcount_wrapper_check): Add libc_hidden_def.
745         * include/grp.h (_nss_files_parse_grent): Add libc_hidden_proto.
746         * include/netinet/ether.h (_nss_files_parse_etherent): Likewise.
747         * include/rpc/netdb.h (_nss_files_parse_rpcent): Likewise.
748         * include/pwd.h (_nss_files_parse_pwent): Likewise.
749         * include/shadow.h (_nss_files_parse_spent): Likewise.
750         * include/netdb.h (_nss_files_parse_protoent,
751         _nss_files_parse_servent, _nss_files_parse_netent): Likewise.
752         * nss/nss_files/files-parse.c (nss_files_parse_hidden_def): Define.
753         (LINE_PARSER): Use it.
754         * nss/nsswitch.h (__nss_hostname_digits_dots): Add libc_hidden_proto.
755         * nss/digits_dots.c (__nss_hostname_digits_dots): Add libc_hidden_def.
757         * libio/oldiopopen.c: Move #if SHLIB_COMPAT after _IO_HAVE_SYS_WAIT
758         #endif.
760         * manual/debug.texi (%MENU%): Remove trailing dot.
761         Reported by <hayastan132@hotmail.com>.
763         * sysdeps/unix/sysv/linux/ia64/syscalls.list (llseek): Add lseek
764         aliases.
765         (lseek): Dummy.
766         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list (llseek, lseek):
767         Likewise.
769 2002-08-09  Roland McGrath  <roland@redhat.com>
771         * locale/loadarchive.c (_nl_load_locale_from_archive): Parse locale
772         name to find codeset name (if any) and normalize it.  If the
773         normalized name differs, look up only that in the archive.
774         * locale/programs/locarchive.c (add_locale_to_archive): If the name
775         contains a codeset, normalize the codeset store only the normalized
776         name in the archive.  If not, add an alias containing the locale's
777         normalized codeset name.  Apply codeset name normalization when
778         matching entries in the alias file.
780         * locale/programs/locarchive.c (delete_locales_from_archive): Don't
781         decrement HEAD->namehash_used here.
782         (add_locale): Only need to insert name string when name_offset != 0.
784         * locale/programs/localedef.c (options): Add -A/--alias-file.
785         (alias_file): New variable.
786         (parse_opt): Grok -A, set that.
787         * locale/programs/localedef.h: Declare it.
789         * locale/locarchive.h (struct locrecent): Add `refs' member.
790         * locale/programs/locarchive.c (insert_name): New function, broken out
791         of ...
792         (add_locale_to_archive): ... here.  Call that.
793         (add_alias): New function.
794         (add_locale): New static function, add_locale_to_archive renamed.
795         (add_locale_to_archive): Call that and use add_alias to add an alias
796         for the name with codeset if the given name lacks it.
797         (enlarge_archive): Call add_locale instead of add_locale_to_archive.
799         * locale/Makefile (routines): Add loadarchive.
800         * locale/loadarchive.c: New file, started from code by Ulrich Drepper.
801         (_nl_load_locale_from_archive): New function.
802         * locale/localeinfo.h: Declare it.
803         * locale/findlocale.c (_nl_find_locale): If using default locale path,
804         try _nl_load_locale_from_archive first.
806         * locale/loadlocale.c (_nl_intern_locale_data): New function,
807         broken out of _nl_load_locale.
808         (_nl_load_locale): Call that.
809         * locale/localeinfo.h: Declare it.
810         (struct locale_data): Replace member `mmaped' with `alloc', an enum.
811         (struct locale_data): Remove unused member `options'.
812         * locale/findlocale.c (_nl_remove_locale): Update uses.
813         * locale/loadlocale.c (_nl_load_locale, _nl_unload_locale): Likewise.
814         * locale/C-collate.c: Update initializer.
815         * locale/C-identification.c: Likewise.
816         * locale/C-measurement.c: Likewise.
817         * locale/C-telephone.c: Likewise.
818         * locale/C-address.c: Likewise.
819         * locale/C-name.c: Likewise.
820         * locale/C-paper.c: Likewise.
821         * locale/C-time.c: Likewise.
822         * locale/C-numeric.c: Likewise.
823         * locale/C-monetary.c: Likewise.
824         * locale/C-messages.c : Likewise.
825         * locale/C-ctype.c: Likewise.
827         * locale/hashval.h [! LONGBITS]: Include <limits.h> here and
828         use CHAR_BIT instead of BITSPERBYTE.
830         * locale/localeinfo.h (_nl_find_locale, _nl_load_locale,
831         _nl_unload_locale): Add `internal_function attribute_hidden' to decls.
832         * locale/findlocale.c (_nl_find_locale): Add internal_function to defn.
833         (_nl_remove_locale): Likewise.
834         * locale/loadlocale.c (_nl_load_locale, _nl_unload_locale): Likewise.
836         * locale/findlocale.c (_nl_default_locale_path): New variable.
837         (_nl_find_locale): If LOCALE_PATH is null, default to that.
838         * locale/localeinfo.h: Declare it.
839         * locale/setlocale.c (setlocale): Use _nl_default_locale_path
840         in place of LOCALEDIR.  If no LOCPATH, pass null to _nl_find_locale.
841         * locale/newlocale.c (__newlocale): Likewise.
843         * misc/err.c (vwarnx, vwarn): Fix typos in libc_hidden_def uses.
844         * inet/rexec.c (rexec_af): Add libc_hidden_def.
845         * sysdeps/generic/morecore.c: Likewise.
846         * signal/allocrtsig.c (__libc_current_sigrtmin): Likewise.
847         (__libc_current_sigrtmax): Likewise.
849 2002-08-08  Roland McGrath  <roland@redhat.com>
851         * locale/loadlocale.c (_nl_load_locale): Don't use MAP_INHERIT.
852         * catgets/open_catalog.c (__open_catalog): Likewise.
854         * locale/programs/locarchive.c (INITIAL_NUM_NAMES): Renamed
855         from typo INITIAL_NUM_NANES.
856         (create_archive): Update use.
858 2002-08-08  Ulrich Drepper  <drepper@redhat.com>
860         * sysdeps/unix/sysv/linux/sigwait.c: New file.
862 2002-08-08  Roland McGrath  <roland@frob.com>
864         * resolv/netdb.h: Don't declare h_errno as a plain global any more.
866 2002-08-08  Jakub Jelinek  <jakub@redhat.com>
868         * sysdeps/wordsize-64/wcstol_l.c (wcstoll_l): Define to something
869         else and undefine after including wcstol_l.c.
870         * sysdeps/wordsize-64/wcstoul_l.c (wcstoull_l): Similarly.
872 2002-08-08  Ulrich Drepper  <drepper@redhat.com>
874         * gmon/gmon.c (write_gmon): Use O_NOFOLLOW in open calls if available.
876 2002-08-08  Alexandre Oliva  <aoliva@redhat.com>
878         * configure.in: Make the test for broken_alias_attribute stricter.
880 2002-05-24  Robert Love  <rml@tech9.net>
882         * posix/Makefile (routines): Add sched_getaffinity and
883         sched_setaffinity.
884         * posix/sched.h: Add declarations for sched_getaffinity and
885         sched_setaffinity.
886         * sysdeps/generic/sched_getaffinity.c: New file.
887         * sysdeps/generic/sched_setaffinity.c: New file.
888         * sysdeps/unix/sysv/linux/syscalls.list: Add sched_getaffinity and
889         sched_setaffinity.
891 2002-08-06  Andreas Schwab  <schwab@suse.de>
893         * sysdeps/unix/utime.c: If TIMES is NULL pass it through to utimes.
895 2002-08-07  Ulrich Drepper  <drepper@redhat.com>
897         * elf/dl-load.c (_dl_map_object_from_fd): Add missing \n in error
898         message.
900         * stdlib/isomac.c (get_null_defines): Treat NOT_IN_libc special.
901         It is known to be defined.
903         * include/string.h: Define index and rindex only if _ISOMAC is not
904         defined.
906         * elf/rtld.c: Include <errno.h>.
907         * sysdeps/generic/libc-tls.c: Likewise.
909 2002-08-07  Roland McGrath  <roland@redhat.com>
911         * resolv/res_debug.c (latlon2ul): Add const to argument type, and use
912         it internally.
913         (precsize_aton): Likewise.
915         * inet/getnetgrent_r.c (endnetgrent, __getnetgrent_r): Actually call
916         the static symbols added in the last change (doofus is me).
918         * locale/newlocale.c (__newlocale): Use a bit mask instead of a second
919         loop to notice missing categories in a composite name.
921         * locale/locale.h (LC_CTYPE_MASK, LC_NUMERIC_MASK, LC_TIME_MASK,
922         LC_COLLATE_MASK, LC_MONETARY_MASK, LC_MESSAGES_MASK, LC_ALL_MASK,
923         LC_PAPER_MASK, LC_NAME_MASK, LC_ADDRESS_MASK, LC_TELEPHONE_MASK,
924         LC_MEASUREMENT_MASK, LC_IDENTIFICATION_MASK, LC_ALL_MASK): New macros.
926 2002-08-07  Ulrich Drepper  <drepper@redhat.com>
928         * malloc/tst-calloc.c: Add tests for one or both parameters being zero.
930 2002-08-07  Roland McGrath  <roland@redhat.com>
932         * sysdeps/i386/dl-machine.h (elf_machine_rel): Add to, don't clobber,
933         unrelocated initial value for DTPOFF32 and TPOFF32 relocs.
934         Reported by Jakub Jelinek  <jakub@redhat.com>.
936 2002-08-07  Jakub Jelinek  <jakub@redhat.com>
938         * malloc/malloc.c (public_cALLOc): Check ELEM_SIZE != 0 before
939         division.
941 2002-08-06  Roland McGrath  <roland@redhat.com>
943         * include/getopt.h: Put private decls inside [_GETOPT_H].
944         Use libc_hidden_proto for getopt_long, getopt_long_only.
945         * posix/getopt1.c [_LIBC]: Include <getopt.h> instead of "getopt.h".
946         Add libc_hidden_def.
948         * sysdeps/generic/unwind-dw2-fde-glibc.c [_LIBC] (dl_iterate_phdr):
949         Define as a macro for __dl_iterate_phdr.
951         * inet/getnetgrent_r.c (internal_setnetgrent): Renamed from __ name,
952         made static.  Add __ name as a strong alias.
953         (internal_endnetgrent): Likewise.
954         (internal_getnetgrent_r): Likewise.
956         * locale/Versions (libc: GLIBC_2.3): Add all the *_l functions
957         with no __ prefix.
958         * locale/langinfo.h [__USE_GNU]: Declare nl_langinfo_l.
959         * ctype/ctype.h [__USE_GNU]: Add declarations and macros for
960         all *_l functions with no __ prefix.
961         * wctype/wcfuncs_l.c: Define weak aliases without __ for all fns.
962         * ctype/ctype_l.c: Likewise.
963         * locale/nl_langinfo.c: Likewise.
964         * string/string.h [__USE_GNU]: Add decls for all *_l fns with no __.
965         * stdlib/stdlib.h [__USE_GNU]: Likewise.
966         * wcsmbs/wchar.h [__USE_GNU]: Likewise.
967         * wctype/wctype.h [__USE_GNU]: Likewise.
968         * string/strcoll_l.c (strcoll_l): Define as weak alias.
969         * string/strxfrm_l.c (strxfrm_l): Define as weak alias.
970         * sysdeps/generic/strcasecmp_l.c (strcasecmp_l): Define as weak alias.
971         * sysdeps/generic/strncase_l.c (strncasecmp_l): Define as weak alias.
972         * stdlib/strtod_l.c (strtod_l): Define as weak alias.
973         * stdlib/strtof_l.c (strtof_l): Define as weak alias.
974         * stdlib/strtold_l.c (strtold_l): Define as weak alias.
975         * wcsmbs/wcscasecmp_l.c (wcscasecmp_l): Define as weak alias.
976         (__wcscasecmp_l): Add libc_hidden_def.
977         * wcsmbs/wcsncase_l.c (wcsncasecmp_l): Define as weak alias.
978         (__wcsncasecmp_l): Add libc_hidden_def.
979         * wcsmbs/wcstof_l.c (wcstof_l): Define as weak alias.
980         * wcsmbs/wcstod_l.c (wcstod_l): Define as weak alias.
981         * wcsmbs/wcstold_l.c (wcstold_l): Define as weak alias.
982         * wcsmbs/wcscoll_l.c (wcscoll_l): Define as weak alias.
983         * wcsmbs/wcsxfrm_l.c (wcsxfrm_l): Define as weak alias.
984         * sysdeps/generic/wcstol_l.c (wcstol_l): Define as weak alias.
985         * sysdeps/generic/wcstoll_l.c (wcstoll_l): Define as weak alias.
986         * sysdeps/generic/wcstoul_l.c (wcstoul_l): Define as weak alias.
987         * sysdeps/generic/wcstoull_l.c (wcstoull_l): Define as weak alias.
988         * sysdeps/wordsize-64/wcstol_l.c (wcstoll_l): Define as weak alias.
989         * sysdeps/wordsize-64/wcstoul_l.c (wcstoull_l): Define as weak alias.
990         * wctype/wctrans_l.c (wctrans_l) Define as weak alias.
991         * wctype/towctrans_l.c (towctrans_l) Define as weak alias.
992         * wctype/wctype_l.c (wctype_l) Define as weak alias.
994 2002-08-05  Roland McGrath  <roland@redhat.com>
996         * include/rpc/auth.h: Use libc_hidden_proto for getnetname,
997         netname2user, host2netname, user2netname, key_gendes.
998         * sunrpc/netname.c: Add libc_hidden_def.
999         * sunrpc/key_call.c: Likewise.
1001         * include/netdb.h: Use libc_hidden_proto for getaddrinfo, getnameinfo,
1002         freeaddrinfo.
1003         * inet/getnameinfo.c: Add libc_hidden_def.
1004         * sysdeps/generic/getaddrinfo.c: Likewise.
1005         * sysdeps/posix/getaddrinfo.c: Likewise.
1007         * include/wchar.h: Use libc_hidden_proto for wmemchr, wmemset.
1008         * wcsmbs/wmemchr.c: Add libc_hidden_def.
1009         * wcsmbs/wmemset.c: Add libc_hidden_def.
1011         * include/string.h: Move libc_hidden_proto's inside #ifndef _STRING_H.
1012         (index, rindex): Define as macros for strchr, strrchr.
1014         * string/envz.c (envz_strip): index -> strchr
1016         * include/rpc/rpc_msg.h: Use libc_hidden_proto for _seterr_reply.
1017         * sunrpc/rpc_prot.c: Add libc_hidden_def.
1019         * include/wchar.h: Use libc_hidden_proto for mbrtowc.
1020         * wcsmbs/mbrtowc.c: Add libc_hidden_weak.
1022         * include/stdlib.h: Use libc_hidden_proto for wctomb.
1023         * stdlib/wctomb.c: Add libc_hidden_def.
1025         * include/netdb.h: Use libc_hidden_proto for innetgr, rcmd_af,
1026         rexec_af, rresvport_af, ruserok_af, iruserok_af, ruserpass, hstrerror.
1027         * resolv/herror.c: Likewise.
1028         * inet/rcmd.c: Add libc_hidden_def.
1029         * inet/ruserpass.c: Likewise.
1030         * inet/getnetgrent_r.c: Likewise.
1032         * include/rpc/svc.h: Use libc_hidden_proto for svc_register,
1033         svc_unregister, remove *_internal decls.  Use libc_hidden_proto
1034         for svcerr_auth, svcerr_noprog, svcerr_progvers.
1035         * sunrpc/svc.c (svc_register, svc_unregister): Change INTDEF to
1036         libc_hidden_def.
1037         (svcerr_auth, svcerr_noprog, svcerr_progvers): Add libc_hidden_def.
1038         * sunrpc/svc_simple.c (registerrpc): Nix INTUSE for svc_register.
1040         * sysdeps/posix/system.c (do_system): New function, guts broken out of
1041         __libc_system.
1042         (__libc_system): Call it, putting just the line == NULL test here.
1044         * include/libc-symbols.h (__hidden_proto): Add extern keywords so
1045         variables work right.
1047         * elf/dl-open.c (dl_open_worker): Use _ macro instead of gettext.
1048         * elf/dl-close.c (_dl_close): Likewise.
1050         * include/netinet/in.h: Use libc_hidden_proto for bindresvport,
1051         in6addr_any, in6addr_loopback.  Remove decls for
1052         bindresvport_internal, in6addr_any_internal, in6addr_loopback_internal.
1053         * sunrpc/svc_udp.c (svcudp_bufcreate): Nix INTUSE for bindresvport.
1054         * sunrpc/svc_tcp.c (svctcp_create): Likewise.
1055         * sunrpc/clnt_udp.c (clntudp_bufcreate): Likewise.
1056         * sunrpc/bindrsvprt.c: Change INTDEF to libc_hidden_def.
1057         * inet/in6_addr.c: Change INTVARDEF to libc_hidden_def.
1058         * sysdeps/posix/getaddrinfo.c (gaih_inet): Nix INTUSE for
1059         in6addr_loopback.
1060         * inet/gethstbyad_r.c (PREPROCESS): Nix INTUSE for in6addr_any.
1062         * include/netinet/ether.h: Use libc_hidden_proto for ether_ntoa_r,
1063         ether_aton_r.
1064         * inet/ether_aton_r.c: Add libc_hidden_def.
1065         * inet/ether_ntoa_r.c: Likewise.
1067         * include/rpc/svc.h: Use libc_hidden_proto for xprt_register,
1068         xprt_unregister.
1069         * sunrpc/svc.c: Add libc_hidden_def.
1070         * include/rpc/pmap_clnt.h: Use libc_hidden_proto for pmap_getport,
1071         pmap_set, pmap_unset.
1072         * sunrpc/pmap_clnt.c: Add libc_hidden_def.
1073         * sunrpc/pm_getport.c: Likewise.
1074         * include/rpc/auth_des.h: Use libc_hidden_proto for getpublickey.
1075         * sunrpc/publickey.c: Add libc_hidden_def.
1077 2002-08-05  Ulrich Drepper  <drepper@redhat.com>
1079         * elf/rtld.c (_dl_start): Don't use memset.  Use same tricks as for
1080         the other memset call in this function.
1082         * sysdeps/generic/dl-tls.c (_dl_allocate_tls_init): Store dtv pointer
1083         at correct index.  Clear BSS region now that memalign is used.
1085 2002-08-05  Roland McGrath  <roland@redhat.com>
1087         * include/sys/utsname.h: Use libc_hidden_proto for uname, __uname.
1088         * sysdeps/generic/uname.c: Add libc_hidden_def.
1089         * sysdeps/mach/hurd/uname.c: Likewise.
1091 2002-08-05  Jakub Jelinek  <jakub@redhat.com>
1093         * include/wchar.h (wcrtomb, wcscmp, wcsftime, wcsspn, wcschr, wcscoll,
1094         wcspbrk): Add libc_hidden_proto.
1095         * time/strftime.c (my_strftime): Add libc_hidden_def.
1096         (strftime): Remove libc_hidden_def.
1097         * wcsmbs/wcschr.c (wcschr): Add libc_hidden_def.
1098         * wcsmbs/wcspbrk.c (wcspbrk): Likewise.
1099         * wcsmbs/wcsspn.c (wcsspn): Likewise.
1100         * wcsmbs/wcscmp.c (wcscmp): Likewise.
1101         * wcsmbs/wcrtomb.c (wcrtomb): Add libc_hidden_weak.
1102         * wcsmbs/wcscoll.c (wcscoll): Likewise.
1104         * include/rpc/rpc.h (__rpc_thread_svc_max_pollfd,
1105         __rpc_thread_svc_pollfd, __rpc_thread_svc_fdset,
1106         __rpc_thread_createerr): Add libc_hidden_proto.
1107         * sunrpc/rpc_thread.c (__rpc_thread_svc_max_pollfd,
1108         __rpc_thread_svc_pollfd, __rpc_thread_svc_fdset,
1109         __rpc_thread_createerr): Add libc_hidden_def.
1111         * include/rpc/clnt.h (clnt_sperrno, clnt_spcreateerror,
1112         clnt_perror, clnt_sperror, _rpc_dtablesize): Add libc_hidden_proto.
1113         * sunrpc/clnt_perr.c (clnt_sperrno, clnt_spcreateerror,
1114         clnt_perror, clnt_sperror): Add libc_hidden_def.
1115         * sunrpc/rpc_dtable.c (_rpc_dtablesize): Likewise.
1117         * include/rpc/des_crypt.h (des_setparity, ecb_crypt, cbc_crypt): Add
1118         libc_hidden_proto.
1119         * sunrpc/des_crypt.c (ecb_crypt, cbc_crypt): Add libc_hidden_proto.
1120         * sunrpc/des_soft.c (des_setparity): Likewise.
1122         * include/rpc/auth.h (key_encryptsession_pk, key_decryptsession_pk):
1123         Add libc_hidden_proto.
1124         * sunrpc/key_call.c (key_encryptsession_pk, key_decryptsession_pk):
1125         Add libc_hidden_def.
1127 2002-08-05  Roland McGrath  <roland@redhat.com>
1129         * sysdeps/generic/ldsodefs.h (struct rtld_global): Replace member
1130         `bool _dl_initial_dtv_malloced' with `void *_dl_initial_dtv'.
1131         * elf/rtld.c (dl_main): Set it to the new dtv for the main thread.
1132         * sysdeps/generic/dl-tls.c (__tls_get_addr): When reallocating the
1133         dtv, check if it matches _dl_initial_dtv; if so, malloc and copy the
1134         old data, abandoning the original memory allocated by rtld at startup,
1135         instead of calling realloc normally.
1137 2002-08-05  Ulrich Drepper  <drepper@redhat.com>
1139         * po/fr.po: Update from translation team.
1141 2002-08-04  Roland McGrath  <roland@redhat.com>
1143         * sysdeps/unix/make-syscalls.sh: If the syscall name field is -
1144         then generate a dummy module under the given name, obeying the
1145         normal rules for the "caller" field.
1147         * sysdeps/generic/libc-tls.c (__libc_setup_tls): Make the phdr loop
1148         actually iterate over the elements.  Fix typo p_type -> p_vaddr.
1150         * include/pthread.h: Don't declare __pthread_initialize_minimal as
1151         weak here; we declare it weak or strong in the one place we use it.
1152         * sysdeps/generic/libc-start.c: ... which is here.
1153         Don't make the decl weak if [USE_TLS], since static programs need TLS
1154         setup even when single-threaded.
1156         * stdlib/isomac.c (fmt): Add -DNOT_IN_libc to the compiler command.
1158         * elf/Makefile (test-srcs): Add $(modules-names) to it.
1159         (CFLAGS-vismod2.c, CFLAGS-failobj.c, CFLAGS-constload2.c,
1160         CFLAGS-reldepmod3.c, CFLAGS-reldepmod4.c, CFLAGS-ltglobmod2.c): Remove
1161         all these variables.
1163 2002-08-04  Ulrich Drepper  <drepper@redhat.com>
1165         * include/stdio.h: Don't define macro magic to redirect function
1166         calls if _ISOMAC is defined.
1168         * sysdeps/i386/fpu/libm-test-ulps: Add epsilons for inlined
1169         ldouble asin tests.
1171 2002-08-04  Roland McGrath  <roland@redhat.com>
1173         * stdlib/lrand48_r.c: Add libc_hidden_def.
1175         * sysdeps/generic/dl-tls.c (_dl_allocate_tls_storage): Allocate the
1176         TCB with __libc_memalign instead of mmap.
1177         (_dl_deallocate_tls): Free it with free instead of munmap.
1179         * Makerules (cpp-srcs-left): When setting this to run
1180         cppflags-iterator.mk, must append .c to $(tests) and $(xtests)
1181         words.  Combine the two loops into one on the concatenated list,
1182         including those as well as $(test-srcs).
1184         * elf/dl-minimal.c (__libc_memalign): Guts of malloc moved here,
1185         since we align here with optimally minimal waste anyway.
1186         (malloc): Just call that.
1188         * sysdeps/generic/libc-tls.c (__libc_setup_tls): Set l_tls_offset to
1189         the right variable.
1191         * elf/dl-load.c (_dl_map_object_from_fd): Use p_vaddr, not p_offset,
1192         to compute memory location for l_tls_initimage.
1193         * elf/rtld.c (_dl_start): Likewise.
1194         * sysdeps/generic/libc-tls.c (__libc_setup_tls): Likewise.
1196         * libio/oldiopopen.c: Move #include's before #if SHLIB_COMPAT,
1197         because the .d file is generated in the non-shared case and
1198         so fails to catch them otherwise.
1200         * sysdeps/generic/dl-tls.c (_dl_allocate_tls_storage): New function,
1201         split out of _dl_allocate_tls.
1202         (_dl_allocate_tls_init): Likewise.
1203         (_dl_allocate_tls): Call those.
1204         * sysdeps/generic/ldsodefs.h: Declare them with attribute_hidden.
1205         * elf/rtld.c (dl_main): Call them separately instead of calling
1206         _dl_allocate_tls.  Delay _dl_allocate_tls_init until after relocation
1207         is finished, so that the initializer data has been relocated before we
1208         copy it into the main thread's TLS block.
1210         * sysdeps/generic/dl-tls.c (_dl_allocate_tls): Fix off-by-one error in
1211         loop conditions, prevented the last used module from being initialized.
1213 2002-08-04  Jakub Jelinek  <jakub@redhat.com>
1215         * sysdeps/generic/glob.c (glob, globfree): Only use libc_hidden_def
1216         if glob resp. globfree are not macros.
1217         * sysdeps/gnu/glob64.c (globfree64): Add libc_hidden_def.
1218         * sysdeps/unix/sysv/linux/alpha/glob.c (glob, globfree, globfree64):
1219         Add libc_hidden_ver.
1220         * sysdeps/unix/sysv/linux/i386/glob64.c (globfree64): Add
1221         libc_hidden_def.
1222         * sysdeps/wordsize-64/glob.c (globfree64): Use libc_hidden_ver
1223         instead of libc_hidden_weak.
1224         * sysdeps/wordsize-64/strtol.c (__strtoll_internal): Use
1225         libc_hidden_ver instead of libc_hidden_def.
1226         * sysdeps/wordsize-64/wcstol.c (__wcstoll_internal): Use
1227         libc_hidden_ver instead of libc_hidden_def.
1228         (wcstoll, wcstoq): Remove libc_hidden_weak.
1229         * sysdeps/wordsize-64/strtol_l.c (____strtoll_l_internal): Add
1230         libc_hidden_ver.
1231         * sysdeps/wordsize-64/strtoul.c (__strtoull_internal): Add
1232         libc_hidden_ver.
1233         * sysdeps/wordsize-64/strtoul_l.c (____strtoull_l_internal): Add
1234         libc_hidden_ver.
1235         * sysdeps/wordsize-64/wcstoul.c (__wcstoull_internal): Add
1236         libc_hidden_ver.
1238 2002-08-04  Ulrich Drepper  <drepper@redhat.com>
1240         * stdio-common/psignal.c: Declare _sys_siglist_internal.  Use USEINT
1241         to access _sys_siglist.
1242         * string/strsignal.c: Likewise.
1243         * sysdeps/generic/siglist.c: Add _sys_siglist_internal alias.
1244         * sysdeps/gnu/siglist.c: Likewise.
1245         * sysdeps/unix/siglist.c: Likewise.
1246         * sysdeps/unix/sysv/linux/arm/siglist.c: Likewise.
1248         * libio/fileops.c: Add missing INTUSEs for _IO_file_jumps.
1250         * libio/wfileops.c: Add missing INTUSE for _IO_file_close.
1252         * intl/dcigettext.c: Define _nl_default_dirname_internal as hidden
1253         alias and use it.
1254         * intl/bindtextdom.c: Use _nl_default_dirname_internal.
1256         * include/netinet/in.h: Add declaration of in6addr_loopback_internal.
1257         * inet/in6_addr.c: Add INTVARDEF for in6addr_loopback.
1258         * sysdeps/posix/getaddrinfo.c: Use INTUSE for in6addr_loopback access.
1260         * include/time.h: Add libc_hidden_proto for __gmtime_r.
1261         * time/gmtime.c (__gmtime_r): Add libc_hidden_def.
1263         * iconv/Versions: Replace __gconv_alias_db, __gconv_modules_db,
1264         and __gconv_cache with __gconv_get_alias_db, __gconv_get_modules_db,
1265         and __gconv_get_cache respectively.
1266         * iconv/gconv_cache.c (gconv_cache): Renamed for __gconv_cache and
1267         defined static.  Change all users.
1268         (__gconv_get_cache): New function.
1269         * iconv/gconv_db.c (__gconv_get_modules_db): New function.
1270         (__gconv_get_alias_db): New function.
1271         * iconv/gconv_int.h (__gconv_alias_db): Declare as hidden.
1272         (__conv_modules_db): Likewise.
1273         Add prototypes for __gconv_get_cache, __gconv_get_modules_db,
1274         and __gconv_get_alias_db.
1275         * iconv/iconv_prog.c: Use the new functions instead of accessing the
1276         variables.
1278         * include/stdlib.h: Add prototype and libc_hidden_proto for
1279         __default_morecore.
1280         * sysdeps/generic/morecore.c: Include <stdlib.h>.
1282         * malloc/obstack.c: Remove fputs macro.
1284         * malloc/mtrace.c: Remove fopen macro.
1286 2002-08-04  Jakub Jelinek  <jakub@redhat.com>
1288         * manual/debug.texi: Fix spelling to programmatically.
1289         Reported by <hayastan132@hotmail.com>.
1291 2002-08-04  Ulrich Drepper  <drepper@redhat.com>
1293         * include/libio.h: Add libc_hidden_proto for __uflow.
1294         * include/stdio.h: Map fopen, fdopen, fclose, fputs, fsetpos, and
1295         fgetpos to _IO_* names.
1296         Add libc_hidden_proto for fileno, fwrite, fseek, fflush_unlocked,
1297         fread_unlocked, fwrite_unlocked, fgets_unlocked, fputs_unlocked.
1298         * include/wchar.h: Add libc_hidden_proto for fputws_unlocked,
1299         putwc_unlocked, vswscanf.
1300         * libio/iolibio.h: Add libc_hidden_proto for _IO_fputs.
1301         * libio/fileno.c: Use <stdio.h> and libc_hidden_def.
1302         * libio/fseek.c: Likewise.
1303         * libio/fmemopen.c: Include "libioP.h".  Call _IO_fopencookie and
1304         not fopencookie.
1305         * libio/genops.c (__uflow): Add libc_hidden_def.
1306         * libio/iofflush_u.c (fflush_unlocked): Likewise.
1307         * libio/iofgets_u.c (fgets_unlocked): Likewise.
1308         * libio/iofputs_u.c (fputs_unlocked): Likewise.
1309         * libio/iofputws_u.c (fputws_unlocked): Likewise.
1310         * libio/iofread_u.c (fread_unlocked): Likewise.
1311         * libio/iofwrite_u.c (fwrite_unlocked): Likewise.
1312         * libio/iovswscanf.c (vswscanf): Likewise.
1313         * libio/putwc_u.c (putwc_unlocked): Likewise.
1314         * libio/iofputs.c: Use libc_hidden_def instead of INTDEF.
1315         * malloc/malloc.c: Redirect fwrite calls to _IO_fwrite.
1316         * malloc/mtrace.c: Likewise.
1318         * sunrpc/clnt_perr.c: Remove fputs macro.
1319         * sunrpc/svc_simple.c: Likewise.
1320         * sunrpc/svc_tcp.c: Likewise.
1321         * sunrpc/svc_udp.c: Likewise.
1322         * sunrpc/xdr_rec.c: Likewise.
1323         * sunrpc/xdr_ref.c: Likewise.
1325         * iconv/Makefile: Add CPPFLAGS definitions with -DNOT_in_libc for
1326         iconv_prog, linereader, and charmap-dir.
1327         * locale/Makefile: Likewise for locale and charmap-dir.
1328         * malloc/Makefile: Likewise for memusagestat.
1329         * nscd/Makefile: Likewise for nscd, nscd_conf, and dbg_log.
1330         * sunrpc/Makefile: Likewise for rpc_main.
1331         * sysdeps/unix/sysv/linux/Makefile: Likewise for lddlibc4.
1332         * timezone/Makefile: Likewise for zic.
1334         * stdio-common/perror.c: Avoid multiple calls to fileno_unlocked.
1336         * elf/dl-addr.c (_dl_addr): Add libc_hidden_def.
1337         * elf/dl-close.c (_dl_close): Add libc_hidden_def.
1338         * elf/dl-open.c (_dl_open): Add libc_hidden_def.
1339         * include/dlfcn.h: Add libc_hidden_proto for _dl_addr, _dl_open,
1340         _dl_close.
1342         * include/libio.h: Add libc_hidden_proto for __underflow, __wuflow,
1343         __wunderflow.
1344         * libio/genops.c (__underflow): Add libc_hidden_def.
1345         * libio/wgenops.c (__wuflow): Likewise.
1346         (__wunderflow): Likewise.
1348         * include/obstack.h: Add libc_hidden_proto for _obstack_newchunk.
1349         * malloc/obstack.c (_obstack_newchunk): Add libc_hidden_def.
1351         * include/stdio.h: Add libc_hidden_proto for __vfscanf.
1352         * stdio-common/vfscanf.c (__vfscanf): Add libc_hidden_def.
1354         * include/string.h: Add libc_hidden_proto for __strverscmp.
1355         * string/strverscmp.c (__strverscmp): Add libc_hidden_def.
1357         * include/unistd.h: Add libc_hidden_proto for __sysconf.
1358         * sysdeps/generic/sysconf.c (__sysconf): Add libc_hidden_def.
1359         * sysdeps/posix/sysconf.c: Likewise.
1360         * sysdeps/unix/sysv/irix4/sysconf.c: Likewise.
1361         * sysdeps/unix/sysv/sysv4/sysconf.c: Likewise.
1363         * include/wctype.h: Use libc_hidden_proto for __iswctype, __iswalnum_l,
1364         __iswalpha_l, __iswblank_l, __iswcntrl_l, __iswdigit_l, __iswlower_l,
1365         __iswgraph_l, __iswprint_l, __iswpunct_l, __iswspace_l, __iswupper_l,
1366         __iswxdigit_l, __towlower_l, __towupper_l.
1367         * wcsmbs/wcstype.c (__iswctype): Use libc_hidden_def.
1368         * wcsmbs/wcfuncs_l.c: Use libc_hidden_def for all functions.
1370         * include/sys/wait.h: Add libc_hidden_proto for __xmknod.
1371         * sysdeps/generic/xmknod.c (__xmknod): Add libc_hidden_def.
1372         * sysdeps/mach/hurd/xmknod.c: Likewise.
1373         * sysdeps/unix/xmknod.c: Likewise.
1374         * sysdeps/unix/sysv/linux/xmknod.c: Likewise.
1375         * sysdeps/unix/sysv/linux/alpha/xmknod.c: Likewise.
1376         * sysdeps/unix/sysv/linux/mips/xmknod.c: Likewise.
1378         * sunrpc/svc.c: Add missing INTUSE for _authenticate.
1380 2002-08-03  Roland McGrath  <roland@redhat.com>
1382         * include/sys/resource.h: Use libc_hidden_proto for getpriority,
1383         setpriority.
1384         * sysdeps/unix/sysv/linux/getpriority.c: Add libc_hidden_def.
1385         * sysdeps/unix/sysv/irix4/getpriority.c: Likewise.
1386         * sysdeps/unix/sysv/irix4/setpriority.c: Likewise.
1387         * sysdeps/mach/hurd/setpriority.c: Likewise.
1388         * sysdeps/mach/hurd/getpriority.c: Likewise.
1389         * sysdeps/generic/setpriority.c: Likewise.
1390         * sysdeps/generic/getpriority.c: Likewise.
1392         * include/mcheck.h: Use libc_hidden_proto for mcheck_check_all.
1393         * malloc/mcheck.c: Add libc_hidden_def.
1395         * include/search.h: Use libc_hidden_proto for hcreate_r, hdestroy_r.
1396         * misc/hsearch_r.c: Add libc_hidden_def.
1398         * include/fnmatch.h: Use libc_hidden_proto for fnmatch.
1399         * posix/fnmatch.c: Add libc_hidden_weak.
1401         * include/unistd.h: Use libc_hidden_proto for _exit, alarm, confstr,
1402         execl, execle, execlp, execvp, getpid, getsid.
1403         * sysdeps/generic/alarm.c: Add libc_hidden_def.
1404         * sysdeps/unix/alarm.c: Likewise.
1405         * posix/confstr.c: Likewise.
1406         * posix/execvp.c: Likewise.
1407         * posix/execlp.c: Likewise.
1408         * posix/execle.c: Likewise.
1409         * posix/execl.c: Likewise.
1410         * sysdeps/generic/getsid.c: Likewise.
1411         * sysdeps/mach/hurd/getsid.c: Likewise.
1412         * sysdeps/generic/getpid.c: Add libc_hidden_weak.
1413         * sysdeps/mach/hurd/getpid.c: Likewise.
1415         * include/stdlib.h: Use libc_hidden_proto for ecvt_r, fcvt_r,
1416         qecvt_r, qfcvt_r, lrand48_r.
1417         * misc/efgcvt_r.c: Add libc_hidden_def.
1419         * include/wordexp.h: Use libc_hidden_proto for wordfree.
1420         * sysdeps/generic/wordexp.c: Add libc_hidden_def.
1422         * include/langinfo.h: Use libc_hidden_proto for nl_langinfo.
1423         * locale/nl_langinfo.c: Add libc_hidden_def.
1425         * include/glob.h: Use libc_hidden_proto for glob, globfree, globfree64.
1426         * sysdeps/generic/glob.c: Add libc_hidden_def.
1427         * sysdeps/generic/glob64.c: Likewise.
1428         * sysdeps/wordsize-64/glob.c (globfree64): Add libc_hidden_weak.
1430         * locale/nl_langinfo.c: Use _NL_CURRENT_DATA.
1432         * elf/Makefile (CFLAGS-vismod2.c): New variable.
1434         * locale/setlocale.c (_nl_current_names): Variable moved ...
1435         * locale/localename.c (_nl_current_names): ... here, new file.
1436         Make it global, with attribute_hidden.
1437         * locale/localeinfo.h: Declare it.
1438         * locale/Makefile (aux): Add localename.
1439         * locale/localename.c (__current_locale_name): New function.
1440         * include/locale.h (__current_locale_name): Declare it.
1441         * intl/dcigettext.c (guess_category_value): Use that instead of
1442         calling setlocale.
1444         * locale/locale.h [__USE_GNU] (locale_t): New type alias of __locale_t.
1445         [__USE_GNU] (newlocale, duplocale, freelocale, uselocale): New decls.
1446         [__USE_GNU] (LC_GLOBAL_LOCALE): New macro.
1447         * locale/newlocale.c: Add alias to __ name.
1448         * locale/duplocale.c: Likewise.
1449         * locale/freelocale.c: Likewise.
1450         * locale/uselocale.c: New file.
1451         * locale/Makefile (routines): Add it.
1452         * locale/Versions (libc: GLIBC_2.3): New set.
1453         Add newlocale, duplocale, freelocale, uselocale.
1454         (libc: GLIBC_PRIVATE): Add __uselocale.
1456         * locale/localeinfo.h [SHARED]
1457         (_NL_CURRENT_LOCALE): New macro, defined to fetch a tsd value.
1458         (_NL_CURRENT_DATA): Define using that.
1459         (_NL_CURRENT, _NL_CURRENT_WSTR, _NL_CURRENT_WORD): Define using that.
1460         (_NL_CURRENT_DEFINE): Define to empty.
1461         [! SHARED]: Decls of _nl_current_CATEGORY and _nl_current
1462         conditionalized on this.
1463         * locale/xlocale.c (NL_C_INTIIALIZER): New macro,
1464         taking initializer of _nl_C_locobj.
1465         [SHARED] (_nl_global_locale): New variable, using that initializer.
1466         (_nl_C_locobj): Use new macro for initialzier.
1467         * locale/setlocale.c [! SHARED] (_nl_current): Conditionalize on this.
1468         [! SHARED] (CATEGORY_USED): New macro.
1469         [SHARED] (CATEGORY_USED, _nl_C): New macros.
1470         (setdata, setlocale): Use that macro instead of examining _nl_current.
1471         (setdata): Set the slot in _nl_global_locale.
1472         Conditionalize setting of _nl_current on [! SHARED].
1473         * locale/findlocale.c [SHARED] (_nl_C): Define as a macro instead of
1474         declaration as an extern.
1475         * locale/newlocale.c (__newlocale): Use _nl_C_locobj instead of _nl_C.
1477         * include/locale.h: Use libc_hidden_proto for setlocale.
1478         * locale/setlocale.c: Add libc_hidden_def.
1480         * locale/setlocale.c (free_mem): Use _NL_CURRENT_DATA.
1482         * include/search.h: Use libc_hidden_proto for hsearch_r, lfind.
1483         * misc/hsearch_r.c: Add libc_hidden_def.
1484         * misc/lsearch.c: Likewise.
1486         * include/ttyent.h: Use libc_hidden_proto for getttyent, setttyent,
1487         endttyent.
1488         * misc/getttyent.c: Add libc_hidden_def.
1490         * include/mcheck.h: Use libc_hidden_proto for mcheck.
1491         * malloc/mcheck.c: Add libc_hidden_def.
1493         * include/envz.h: Use libc_hidden_proto for envz_entry, enz_remove.
1494         * include/argz.h: Use libc_hidden_proto for argz_delete.
1495         * string/argz-delete.c: Add libc_hidden_def.
1496         * string/envz.c: Likewise.  Use <envz.h>, not "envz.h".
1498         * sysdeps/unix/sysv/linux/x86_64/clone.S (thread_start): Use
1499         HIDDEN_JUMPTARGET for _exit.
1500         * sysdeps/unix/sysv/linux/m68k/clone.S (thread_start): Likewise.
1501         * sysdeps/unix/sysv/linux/i386/clone.S (thread_start): Likewise.
1502         * sysdeps/unix/sysv/linux/powerpc/clone.S: Likewise.
1503         * sysdeps/unix/_exit.S (_exit): Add libc_hidden_def.
1505         * include/libc-symbols.h: Fix [__ASSEMBLY__] -> [__ASSEMBLER__].
1506         [__ASSEMBLER__] (hidden_weak): Define using hidden_def, or to empty.
1507         [__ASSEMBLER__] (HIDDEN_JUMPTARGET): New macro.
1508         * sysdeps/unix/sysv/linux/i386/makecontext.S: Use it for exit.
1510         * include/stdlib.h: Use libc_hidden_proto for abort,
1511         __strtof_internal, __strtod_internal, __strtold_internal,
1512         __strtol_internal, __strtoll_internal, __strtoul_internal,
1513         __strtoull_internal. __strtof_l_internal, __strtod_l_internal,
1514         __strtold_l_internal, __strtol_l_internal, __strtoll_l_internal,
1515         __strtoul_l_internal, __strtoull_l_internal.
1516         * include/wchar.h: Use libc_hidden_proto for __wcstof_internal,
1517         __wcstod_internal, __wcstold_internal, __wcstol_internal,
1518         __wcstoll_internal, __wcstoul_internal, ____wcstof_l_internal,
1519         ____wcstod_l_internal, ____wcstold_l_internal, ____wcstol_l_internal,
1520         ____wcstoll_l_internal, ____wcstoul_l_internal, __wcscasecmp_l,
1521         __wcsncasecmp_l.
1522         * sysdeps/generic/abort.c: Add libc_hidden_def.
1523         * stdlib/strtod.c: Likewise.
1524         * sysdeps/generic/strtol.c: Likewise.
1525         * sysdeps/wordsize-64/strtol.c: Likewise.
1526         * sysdeps/wordsize-64/wcstol.c: Likewise.
1527         * sysdeps/wordsize-64/wcstol_l.c: Likewise.
1529         * include/stdlib.h: Use libc_hidden_proto for qsort.
1530         * stdlib/msort.c: Add libc_hidden_def.
1532         * include/utime.h: Use libc_hidden_proto for utime.
1533         * sysdeps/generic/utime.c: Add libc_hidden_def.
1534         * sysdeps/unix/utime.c: Likewise.
1536         * sysdeps/generic/utmp_file.c (LOCK_FILE): sigemptyset -> __sigemptyset
1537         * sysdeps/posix/profil.c (__profil): sigfillset -> __sigfillset
1538         * sysdeps/posix/sprofil.c (__sprofil): Likewise.
1539         * shadow/lckpwdf.c (__lckpwdf): Likewise (both).
1540         * sysdeps/posix/spawni.c (__spawni): sigismember -> __sigismember
1542         * include/signal.h: Use libc_hidden_proto for raise, sigemptyset,
1543         sigfillset, sigismember, __sigpause, __libc_current_sigrtmin,
1544         and __libc_current_sigrtmax.
1545         * signal/sigismem.c: Add libc_hidden_def.
1546         * signal/sigfillset.c: Likewise.
1547         * signal/sigempty.c: Likewise.
1548         * sysdeps/generic/sigpause.c (__sigpause): Likewise.
1549         * sysdeps/posix/sigpause.c (__sigpause): Likewise.
1550         * sysdeps/unix/bsd/osf/alpha/sigpause.S: Likewise.
1551         * sysdeps/posix/raise.c: Likewise.
1552         * sysdeps/generic/raise.c: Likewise.
1554 2002-08-03  Ulrich Drepper  <drepper@redhat.com>
1556         * include/string.h: Use libc_hidden_proto for __stpcpy.
1557         * sysdeps/alpha/stpcpy.S (__stpcpy): Add libc_hidden_def.
1558         * sysdeps/alpha/alphaev67/stpcpy.S: Likewise.
1559         * sysdeps/generic/stpcpy.c: Likewise.
1560         * sysdeps/i386/stpcpy.S: Likewise.
1561         * sysdeps/i386/i586/stpcpy.S: Likewise.
1562         * sysdeps/powerpc/stpcpy.S: Likewise.
1563         * sysdeps/sparc/sparc32/stpcpy.S: Likewise.
1564         * sysdeps/sparc/sparc64/stpcpy.S: Likewise.
1566         * include/string.h: Use libc_hidden_proto for __strcasecmp_l,
1567         __strncasecmp_l, __strdup, __strndup, __strerror_r.
1568         * sysdeps/generic/strcasecmp_l.c (__strcasecmp_l): Add
1569         libc_hidden_def.
1570         * string/strdup.c (__strdup): Likewise.
1571         * string/strndup.c (__strndup): Likewise.
1572         * sysdeps/generic/_strerror.c (__strerror_r): Likewise.
1573         * sysdeps/generic/strncase_l.c (__strncasecmp_l): Likewise.
1575 2002-08-03  Jakub Jelinek  <jakub@redhat.com>
1577         * include/libio.h: New file.
1578         * libio/libioP.h (__overflow, __woverflow): Remove libc_hidden_proto.
1579         * libio/iolibio.h: #include <libio.h>, not "libio.h".
1580         * sysdeps/generic/morecore.c (__sbrk): Add libc_hidden_proto.
1581         * sysdeps/unix/bsd/syscalls.list: Remove all __GI_* aliases.
1582         * sysdeps/unix/common/syscalls.list: Likewise.
1583         * sysdeps/unix/inet/syscalls.list: Likewise.
1584         * sysdeps/unix/sysv/irix4/syscalls.list: Likewise.
1585         * sysdeps/unix/sysv/linux/alpha/syscalls.list: Likewise.
1586         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
1587         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
1588         * sysdeps/unix/sysv/linux/hppa/syscalls.list: Likewise.
1589         * sysdeps/unix/sysv/linux/mips/syscalls.list: Likewise.
1590         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
1591         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
1592         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
1593         * sysdeps/unix/sysv/sysv4/solaris2/syscalls.list: Likewise.
1594         * sysdeps/unix/syscalls.list: Likewise.
1596 2002-08-03  Jakub Jelinek  <jakub@redhat.com>
1597             Ulrich Drepper  <drepper@redhat.com>
1599         * malloc/malloc.c (public_cALLOc): Only divide if at least one of
1600         the arguments is big enough to cause an overflow.
1602 2002-08-03  Ulrich Drepper  <drepper@redhat.com>
1604         * assert/assert.c: Use hidden_def not INTDEF.
1606 2002-08-03  Jakub Jelinek  <jakub@redhat.com>
1608         * include/libc-symbols.h: Optimize if HAVE_BROKEN_ALIAS_ATTRIBUTE is
1609         not defined.
1611 2002-08-03  Roland McGrath  <roland@redhat.com>
1613         * include/sys/syslog.h: Use libc_hidden_proto for syslog, vsyslog.
1614         * include/err.h: Use libc_hidden_proto for warn, warnx, vwarn, vwarn,
1615         verr, verrx.
1616         * include/stdlib.h: Use libc_hidden_proto for exit, getenv, bsearch.
1617         * misc/syslog.c: Add libc_hidden_def.
1618         * misc/err.c: Likewise.
1619         * stdlib/exit.c: Likewise.
1620         * stdlib/bsearch.c: Likewise.
1621         * sysdeps/generic/getenv.c: Likewise.
1623         * include/libc-symbols.h (hidden_weak): Define it for [__ASSEMBLER__].
1625         * sysdeps/unix/make-syscalls.sh: Generate libc_hidden_def or
1626         libc_hidden_weak for every system call symbol defined.
1628         * include/time.h: Use libc_hidden_proto for time, asctime, mktime,
1629         timelocal, localtime, strftime.
1630         * time/asctime.c: Add libc_hidden_def.
1631         * time/mktime.c: Likewise.
1632         * time/localtime.c: Likewise.
1633         * time/strftime.c: Likewise.
1634         * time/strptime.c: Likewise.
1635         * sysdeps/generic/time.c: Likewise.
1636         * sysdeps/unix/time.c: Likewise.
1637         * sysdeps/unix/sysv/i386/time.S: Likewise.
1638         * sysdeps/unix/sysv/linux/x86_64/time.S: Likewise.
1640         * include/arpa/inet.h: Use libc_hidden_proto for inet_ntop, inet_pton.
1641         inet_makeaddr, inet_netof, inet_addr, __inet_addr.
1642         * resolv/inet_ntop.c: Likewise.
1643         * resolv/inet_pton.c: Likewise.
1644         * inet/inet_mkadr.c: Add libc_hidden_def.
1645         * inet/inet_netof.c: Likewise.
1646         * resolv/inet_addr.c: Likewise.
1648         * include/libc-symbols.h: Remove `defined HAVE_BROKEN_ALIAS_ATTRIBUTE'
1649         clauses from conditionals for now.  Will have to be fixed later
1650         for older compilers.
1652         * sysdeps/generic/mempcpy.c (__mempcpy): #undef it before defn.
1654 2002-08-02  Ulrich Drepper  <drepper@redhat.com>
1656         * configure.in (HAVE_BROKEN_ALIAS_ATTRIBUTE): Add check for
1657         broken alias attribute handling.
1658         * config.h.in (HAVE_BROKEN_ALIAS_ATTRIBUTE): Add.
1660 2002-08-02  Roland McGrath  <roland@frob.com>
1662         * elf/Makefile ($(objpfx)interp.os): Depend on config.make,
1663         since it sets the variables we use in a -D switch.
1665 2002-08-02  Roland McGrath  <roland@redhat.com>
1667         * posix/bits/posix1_lim.h (SSIZE_MAX): Define to LONG_MAX, not INT_MAX.
1668         On 32-bit platforms they are the same; on 64-bit platforms ssize_t
1669         matches long int, not int.
1671         * locale/localeinfo.h (_NL_CURRENT_DATA): New macro.
1672         * wcsmbs/wcsmbsload.h (update_conversion_ptrs): Use it.
1673         * locale/lc-ctype.c (_nl_postload_ctype): Likewise.
1674         * wctype/wctrans.c (wctrans): Likewise.
1675         * wctype/wctype.c (__wctype): Likewise.
1676         * intl/loadmsgcat.c (_nl_init_domain_conv): Use _NL_CURRENT.
1678 2002-08-02  Ulrich Drepper  <drepper@redhat.com>
1680         * assert/assert.c (__assert_fail): Fix typo in comment.
1682         * include/rpc/rpc.h: Declare RPC_VARS tsd as extern.
1683         * sunrpc/rpc_thread.c: Define it without static.
1684         * sunrpc/Versions [libc] (GLIBC_PRIVATE): Export __libc_tsd_RPC_VARS.
1686 2002-08-02  Jakub Jelinek  <jakub@redhat.com>
1688         * assert/assert.c (__assert_fail): Remove undef.
1689         Replace INTDEF with libc_hidden_def.
1690         * assert/__assert.c (__assert): Remove INTUSE.
1691         * elf/dl-minimal.c (__assert_fail): Replace INTDEF with
1692         libc_hidden_weak.
1693         * include/libc-symbols.h (hidden_proto, hidden_def, hidden_weak,
1694         hidden_ver, libc_hidden_proto, libc_hidden_def, libc_hidden_weak,
1695         libc_hidden_ver, rtld_hidden_proto, rtld_hidden_def, rtld_hidden_weak,
1696         rltd_hidden_ver, libm_hidden_proto, libm_hidden_def, libm_hidden_weak,
1697         libm_hiden_ver): Define.
1698         * include/assert.h (__assert_fail_internal): Remove.
1699         (__assert_fail): Add prototype.  Add hidden_proto.
1700         * include/libc-internal.h (__libc_freeres, __profile_frequency): Add
1701         libc_hidden_proto.
1702         * include/wchar.h (__mbrtowc_internal, __mbrlen_internal): Remove.
1703         (__mbrtowc, __mbrlen): Use libc_hidden_proto.  Remove macros.
1704         * include/string.h (__mempcpy, __stpncpy, __rawmemchr, __strcasecmp):
1705         Add libc_hidden_proto.
1706         * include/fcntl.h (__open64, __libc_open, __libc_fcntl, __open,
1707         __fcntl): Add libc_hidden_proto.  Remove macros.
1708         (__open_internal, __fcntl_internal): Remove.
1709         * libio/iofdopen.c (_IO_fcntl): Remove INTUSE from __fcntl.
1710         * malloc/set-freeres.c (__libc_freeres): Add libc_hidden_def.
1711         * nss/nsswitch.h (__nss_database_lookup, __nss_next): Add
1712         libc_hiden_proto.
1713         * nss/nsswitch.c (__nss_database_lookup, __nss_next): Add
1714         libc_hidden_def.
1715         * sysdeps/generic/mempcpy.c (__mempcpy): Remove undef.
1716         Add libc_hidden_def.
1717         * sysdeps/generic/open64.c (__open64): Add libc_hidden_def.
1718         * sysdeps/generic/open.c (__open): Remove undef.
1719         Add libc_hidden_def.  Remove INTDEF.
1720         * sysdeps/generic/fcntl.c (__fcntl): Remove undef.
1721         Add libc_hidden_def.
1722         * sysdeps/mach/hurd/fcntl.c (__fcntl): Likewise.
1723         * sysdeps/i386/i586/mempcpy.S (__mempcpy): Add libc_hidden_def.
1724         * sysdeps/i386/i686/mempcpy.S (__mempcpy): Likewise.
1725         * sysdeps/mach/hurd/fcntl.c (__libc_fcntl, __fcntl): Remove undef.
1726         (__fcntl): Remove INTDEF2.  Add libc_hidden_weak.
1727         (__libc_fcntl): Add libc_hidden_def.
1728         * sysdeps/mach/hurd/open.c (__libc_open, __open): Remove undef.
1729         (__open): Remove INTDEF2.  Add libc_hidden_weak.
1730         (__libc_open): Add libc_hidden_def.
1731         * sysdeps/posix/open64.c (__open64): Add libc_hidden_weak.
1732         * sysdeps/standalone/open.c (__open): Add libc_hidden_def.
1733         * sysdeps/unix/sysv/aix/fcntl.c (__libc_fcntl, __fcntl): Remove undef.
1734         Add libc_hidden_def.
1735         * sysdeps/unix/sysv/aix/open.c (__libc_open, __open): Remove undef.
1736         Add libc_hidden_def.
1737         * sysdeps/unix/sysv/linux/i386/fcntl.c (__libc_fcntl, __fcntl): Remove
1738         undef.
1739         (__fcntl): Remove INTDEF2.  Add libc_hidden_weak.
1740         (__libc_fcntl): Add libc_hidden_def.
1741         * sysdeps/unix/sysv/linux/syscalls.list (__fcntl_internal,
1742         __getpgid_internal, __chown_internal): Remove.
1743         (__GI___fcntl, __GI___libc_fcntl, __GI___getpgid, __GI___pipe,
1744         __GI___sched_setscheduler, __GI___select, __GI___setpgid,
1745         __GI___chown): Add.
1746         * sysdeps/unix/syscalls.list (__close_internal, __dup2_internal,
1747         __getpid_internal, __open_internal, __write_internal): Remove.
1748         (__GI___fcntl, __GI___libc_fcntl, __GI___open, __GI___libc_open,
1749         __GI___chown, __GI___close, __GI___dup2, __GI___getpid,
1750         __GI___libc_open, __GI___open, __GI___read, __GI___libc_read,
1751         __GI___select, __GI___statfs, __GI___write, __GI___libc_write): Add.
1752         * wcsmbs/mbrlen.c (__mbrlen): Remove undef.
1753         Replace INTDEF with libc_hidden_def.
1754         * wcsmbs/mbrtowc.c (__mbrtowc): Likewise.
1755         * catgets/catgetsinfo.h (__open_catalog): Add libc_hidden_proto.
1756         * catgets/open_catalog.c (__open_catalog): Add libc_hidden_def.
1757         * elf/dl-profile.c (__profile_frequency): Add libc_hidden_proto.
1758         * include/rpc/rpc.h (__rpc_thread_svc_fdset, __rpc_thread_createerr):
1759         Add libc_hidden_proto.
1760         * include/sys/poll.h (__poll): Add libc_hidden_proto.
1761         * include/sys/select.h (__select): Likewise.
1762         * include/sys/socket.h (__send): Likewise.
1763         * include/sys/statfs.h (__statfs): Likewise.
1764         * include/unistd.h (__pwrite64, __libc_read, __pipe, __chown, __dup2,
1765         __getpid, __getpgid, __setpgid, __close, __read, __write,
1766         __getpagesize, __sbrk): Likewise.
1767         (__chown_internal, __dup2_internal, __getpid_internal,
1768         __getpgid_internal, __close_internal, __write_internal,
1769         __getpagesize_internal): Remove.
1770         (__close, __dup2, __getpagesize, __getpgid, __getpid, __libc_write):
1771         Remove macros.
1772         * include/printf.h (__printf_fp): Add libc_hidden_proto.
1773         * include/sched.h (__sched_setscheduler): Likewise.
1774         * include/resolv.h (__res_ninit, __res_randomid): Likewise.
1775         * include/stdlib.h (__secure_getenv): Likewise.
1776         * include/signal.h (__sigaction, __sigsuspend): Likewise.
1777         * inet/getaliasent_r.c (NSS_attribute_hidden): Remove.
1778         * inet/getaliasname_r.c (NSS_attribute_hidden): Remove.
1779         * inet/getnetbyad_r.c (NSS_attribute_hidden): Remove.
1780         * inet/getnetbynm_r.c (NSS_attribute_hidden): Remove.
1781         * inet/getnetent_r.c (NSS_attribute_hidden): Remove.
1782         * inet/getproto_r.c (NSS_attribute_hidden): Remove.
1783         * inet/getprtent_r.c (NSS_attribute_hidden): Remove.
1784         * inet/getprtname_r.c (NSS_attribute_hidden): Remove.
1785         * inet/getrpcbyname_r.c (NSS_attribute_hidden): Remove.
1786         * inet/getrpcbynumber_r.c (NSS_attribute_hidden): Remove.
1787         * inet/getrpcent_r.c (NSS_attribute_hidden): Remove.
1788         * inet/getservent_r.c (NSS_attribute_hidden): Remove.
1789         * inet/getsrvbynm_r.c (NSS_attribute_hidden): Remove.
1790         * inet/getsrvbypt_r.c (NSS_attribute_hidden): Remove.
1791         * inet/gethstbyad_r.c (DB_LOOKUP_FCT): Remove INTUSE.
1792         * inet/gethstbynm2_r.c (DB_LOOKUP_FCT): Likewise.
1793         * inet/gethstbynm_r.c (DB_LOOKUP_FCT): Likewise.
1794         * inet/gethstent_r.c (DB_LOOKUP_FCT): Likewise.
1795         * libio/genops.c (__overflow): Add libc_hidden_def.
1796         * libio/iovdprintf.c: Remove libio.h include.
1797         * libio/libioP.h (libc_hidden_proto, libc_hidden_def,
1798         libc_hidden_weak): Define to nothing if not defined.
1799         (__overflow, __woverflow): Add libc_hidden_proto.
1800         * libio/wgenops.c (__woverflow): Add libc_hidden_def.
1801         * nss/getXXent_r.c (NSS_attribute_hidden): Remove.
1802         (DB_LOOKUP_FCT): Add libc_hidden_proto.
1803         * nss/getXXbyYY_r.c (NSS_attribute_hidden): Remove.
1804         (DB_LOOKUP_FCT): Add libc_hidden_proto.
1805         * nss/XXX-lookup.c (DB_LOOKUP_FCT): Add libc_hidden_proto
1806         and libc_hidden_def.
1807         * nss/hosts-lookup.c (__nss_hosts_lookup): Remove INTDEF.
1808         * posix/bsd-getpgrp.c (__getpgid_internal): Remove.
1809         (__getpgid): Add libc_hidden_proto.
1810         (__bsd_getpgrp): Remove INTUSE.
1811         * resolv/res_init.c (__res_ninit, __res_randomid): Add
1812         libc_hidden_def.
1813         * shadow/getspent_r.c (NSS_attribute_hidden): Remove.
1814         * shadow/getspnam_r.c (NSS_attribute_hidden): Remove.
1815         * stdio-common/printf_fp.c (__printf_fp): Add libc_hidden_def.
1816         * stdlib/strfmon.c (__printf_fp): Add libc_hidden_proto.
1817         * stdlib/secure-getenv.c (__secure_getenv): Add libc_hidden_def.
1818         * sunrpc/rpc_thread.c (__rpc_thread_svc_fdset,
1819         __rpc_thread_createerr): Add libc_hidden_def.
1820         * sysdeps/alpha/alphaev67/rawmemchr.S (__rawmemchr): Add
1821         libc_hidden_def.
1822         * sysdeps/alpha/alphaev67/stpncpy.S (__stpncpy): Likewise.
1823         * sysdeps/alpha/rawmemchr.S (__rawmemchr): Likewise.
1824         * sysdeps/alpha/stpncpy.S (__stpncpy): Likewise.
1825         * sysdeps/generic/chown.c (__chown): Likewise.
1826         * sysdeps/generic/close.c (__close): Likewise.
1827         * sysdeps/generic/dup2.c (__dup2): Likewise.
1828         * sysdeps/generic/pipe.c (__pipe): Likewise.
1829         * sysdeps/generic/prof-freq.c (__profile_frequency): Likewise.
1830         * sysdeps/generic/pwrite64.c (__pwrite64): Likewise.
1831         * sysdeps/generic/rawmemchr.c (__rawmemchr): Likewise.
1832         * sysdeps/generic/read.c (__libc_read): Likewise.
1833         (__read): Add libc_hidden_weak.
1834         * sysdeps/generic/sbrk.c (__sbrk): Add libc_hidden_def.
1835         * sysdeps/generic/sched_sets.c (__sched_setscheduler): Likewise.
1836         * sysdeps/generic/select.c (__select): Likewise.
1837         * sysdeps/generic/send.c (__send): Likewise.
1838         * sysdeps/generic/setpgid.c (__setpgid): Likewise.
1839         * sysdeps/generic/sigaction.c (__sigaction): Likewise.
1840         * sysdeps/generic/sigsuspend.c (__sigsuspend): Likewise.
1841         * sysdeps/generic/statfs.c (__statfs): Likewise.
1842         * sysdeps/generic/stpncpy.c (__stpncpy): Likewise.
1843         * sysdeps/generic/strcasecmp.c (__strcasecmp): Likewise.
1844         * sysdeps/generic/getpagesize.c (__getpagesize): Likewise.
1845         Remove undef and INTDEF.
1846         * sysdeps/generic/getpgid.c (__getpgid): Likewise.
1847         * sysdeps/generic/getpid.c (__getpid): Likewise.
1848         * sysdeps/generic/write.c (__libc_write): Likewise.
1849         (__write): Add libc_hidden_weak.  Remove undef and INTDEF.
1850         * sysdeps/i386/rawmemchr.S (__rawmemchr): Add libc_hidden_def.
1851         * sysdeps/i386/stpncpy.S (__stpncpy): Likewise.
1852         * sysdeps/m68k/rawmemchr.S (__rawmemchr): Likewise.
1853         * sysdeps/mach/hurd/chown.c (__chown): Likewise.  Remove INTDEF.
1854         * sysdeps/mach/hurd/close.c (__close): Add libc_hidden_def.
1855         Remove undef and INTDEF.
1856         * sysdeps/mach/hurd/dup2.c (__dup2): Likewise.
1857         * sysdeps/mach/hurd/getpgid.c (__getpgid): Likewise.
1858         * sysdeps/mach/hurd/getpid.c (__getpid): Likewise.
1859         * sysdeps/mach/getpagesize.c (__getpagesize): Likewise.
1860         * sysdeps/mach/hurd/write.c (__libc_write): Likewise.
1861         (__write): Add libc_hidden_weak.  Remove undef and INTDEF.
1862         * sysdeps/mach/hurd/pipe.c: Include unistd.h.
1863         (__pipe): Add libc_hidden_def.
1864         * sysdeps/mach/hurd/dl-sysdep.c (__libc_read, __libc_write): Add
1865         libc_hidden_weak.
1866         * sysdeps/mach/hurd/poll.c (__poll): Add libc_hidden_def.
1867         * sysdeps/mach/hurd/profil.c (__profile_frequency): Likewise.
1868         * sysdeps/mach/hurd/read.c (__libc_read): Likewise.
1869         (__read): Add libc_hidden_weak.
1870         * sysdeps/mach/hurd/pwrite64.c (__pwrite64): Likewise.
1871         (__libc_pwrite64): Add libc_hidden_def.
1872         * sysdeps/mach/hurd/sbrk.c (__sbrk): Likewise.
1873         * sysdeps/mach/hurd/select.c (__select): Likewise.
1874         * sysdeps/mach/hurd/send.c (__send): Likewise.
1875         * sysdeps/mach/hurd/setpgid.c (__setpgid): Likewise.
1876         * sysdeps/mach/hurd/sigaction.c (__sigaction): Likewise.
1877         * sysdeps/mach/hurd/sigsuspend.c (__sigsuspend): Likewise.
1878         * sysdeps/mach/hurd/statfs.c (__statfs): Likewise.
1879         * sysdeps/posix/dup2.c: Likewise.
1880         Remove undef and INTDEF.
1881         * sysdeps/posix/getpagesize.c (__getpagesize): Likewise.
1882         * sysdeps/posix/pwrite64.c (__libc_pwrite64): Add libc_hidden_def.
1883         (__pwrite64): Add libc_hidden_weak.
1884         * sysdeps/posix/sigsuspend.c (__sigsuspend): Add libc_hidden_def.
1885         * sysdeps/sparc/sparc64/rawmemchr.S (__rawmemchr): Likewise.
1886         * sysdeps/sparc/sparc64/stpncpy.S (__stpncpy): Likewise.
1887         * sysdeps/standalone/close.c (__close): Likewise.
1888         * sysdeps/standalone/write.c (__libc_write): Likewise.
1889         (__write): Add libc_hidden_weak.
1890         * sysdeps/standalone/read.c (__read): Likewise.
1891         (__libc_read): Add libc_hidden_def.
1892         * sysdeps/unix/grantpt.c (grantpt): Remove INTUSE.
1893         * sysdeps/unix/bsd/m68k/pipe.S (__pipe): Add libc_hidden_def.
1894         * sysdeps/unix/bsd/osf/alpha/pipe.S (__pipe): Likewise.
1895         * sysdeps/unix/bsd/vax/pipe.S (__pipe): Likewise.
1896         * sysdeps/unix/bsd/syscalls.list (__GI___getpagesize): Likewise.
1897         * sysdeps/unix/bsd/poll.c (__poll): Likewise.
1898         * sysdeps/unix/bsd/sigaction.c (__sigaction): Likewise.
1899         * sysdeps/unix/bsd/sigsuspend.c (__sigsuspend): Likewise.
1900         * sysdeps/unix/common/syscalls.list (__GI___getpgid, __GI___setpgid,
1901         __GI___sigaction): Add.
1902         * sysdeps/unix/i386/pipe.S (__pipe): Add libc_hidden_def.
1903         * sysdeps/unix/inet/syscalls.list (__GI___send): Add.
1904         * sysdeps/unix/mips/pipe.S (__pipe): Add libc_hidden_def.
1905         * sysdeps/unix/sparc/pipe.S (__pipe): Likewise.
1906         * sysdeps/unix/sysv/irix4/syscalls.list (__GI___getpgid,
1907         __GI___setpgid): Add.
1908         * sysdeps/unix/sysv/aix/chown.c (__chown): Add libc_hidden_def.
1909         Remove undef and INTDEF.
1910         * sysdeps/unix/sysv/aix/getpgid.c (__getpgid): Likewise.
1911         * sysdeps/unix/sysv/aix/write.c (__write, __libc_write): Likewise.
1912         * sysdeps/unix/sysv/aix/close.c (__close): Add libc_hidden_def.
1913         * sysdeps/unix/sysv/aix/getpid.c (__getpid): Likewise.
1914         * sysdeps/unix/sysv/aix/pipe.c (__pipe): Likewise.
1915         * sysdeps/unix/sysv/aix/read.c (__read, __libc_read): Likewise.
1916         * sysdeps/unix/sysv/aix/poll.c (__poll): Likewise.
1917         * sysdeps/unix/sysv/aix/sbrk.c (__sbrk): Likewise.
1918         * sysdeps/unix/sysv/aix/sigaction.c (__sigaction): Likewise.
1919         * sysdeps/unix/sysv/aix/sigsuspend.c (__sigsuspend): Likewise.
1920         * sysdeps/unix/sysv/aix/statfs.c (__statfs): Likewise.
1921         * sysdeps/unix/sysv/aix/select.c (__select): Likewise.
1922         * sysdeps/unix/sysv/aix/setpgid.c (__setpgid): Likewise.
1923         * sysdeps/unix/sysv/linux/alpha/pipe.S (__pipe): Likewise.
1924         * sysdeps/unix/sysv/linux/alpha/syscalls.list (__GI___pwrite64,
1925         __GI___statfs, __GI___send): Add.
1926         * sysdeps/unix/sysv/linux/alpha/select.S (__select): Add
1927         libc_hidden_ver resp. libc_hidden_def.
1928         * sysdeps/unix/sysv/linux/alpha/sigsuspend.S (__sigsuspend): Add
1929         libc_hidden_def.
1930         * sysdeps/unix/sysv/linux/ia64/getpagesize.c (__getpagesize):
1931         Likewise.  Remove undef and INTDEF.
1932         * sysdeps/unix/sysv/linux/ia64/pipe.S (__pipe): Add libc_hidden_def.
1933         * sysdeps/unix/sysv/linux/ia64/syscalls.list (__GI___pwrite64,
1934         __GI___statfs, __GI___send): Add.
1935         * sysdeps/unix/sysv/linux/ia64/sigaction.c (__sigaction): Add
1936         libc_hidden_def.
1937         * sysdeps/unix/sysv/linux/ia64/sigsuspend.c (__sigsuspend):
1938         Likewise.
1939         * sysdeps/unix/sysv/linux/sh/pipe.S (__pipe): Likewise.
1940         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c (__chown): Add
1941         libc_hidden_ver resp. libc_hidden_def.
1942         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list (__GI___pwrite64,
1943         __GI___send): Add.
1944         * sysdeps/unix/sysv/linux/s390/s390-64/sigaction.c (__sigaction):
1945         Add libc_hidden_weak.
1946         * sysdeps/unix/sysv/linux/s390/s390-64/sigsuspend.c (__sigsuspend):
1947         Add libc_hidden_def.
1948         * sysdeps/unix/sysv/linux/hppa/syscalls.list (__GI___send): Add.
1949         * sysdeps/unix/sysv/linux/arm/sigaction.c (__sigaction): Add
1950         libc_hidden_weak.
1951         * sysdeps/unix/sysv/linux/i386/chown.c (__chown): Add libc_hidden_ver
1952         resp. libc_hidden_def.
1953         * sysdeps/unix/sysv/linux/i386/sigaction.c (__sigaction): Add
1954         libc_hidden_weak.
1955         * sysdeps/unix/sysv/linux/m68k/chown.c (__chown): Likewise.  Remove
1956         INTDEF.
1957         * sysdeps/unix/sysv/linux/m68k/getpagesize.c (__getpagesize):
1958         Likewise.  Remove undef.
1959         * sysdeps/unix/sysv/linux/mips/pwrite64.c (__pwrite64): Add
1960         libc_hidden_weak.
1961         * sysdeps/unix/sysv/linux/mips/syscalls.list (__GI___send): Add.
1962         * sysdeps/unix/sysv/linux/mips/sigaction.c (__sigaction): Add
1963         libc_hidden_weak.
1964         * sysdeps/unix/sysv/linux/powerpc/chown.c (__chown): Add
1965         libc_hidden_def.
1966         * sysdeps/unix/sysv/linux/powerpc/pwrite64.c (__pwrite64): Likewise.
1967         * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize.c (__getpagesize):
1968         Likewise.  Remove undef and INTDEF.
1969         * sysdeps/unix/sysv/linux/sparc/sparc32/pipe.S (__pipe): Add
1970         libc_hidden_def.
1971         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c (__sigaction): Add
1972         libc_hidden_weak.
1973         * sysdeps/unix/sysv/linux/sparc/sparc64/pipe.S (__pipe): Add
1974         libc_hidden_def.
1975         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list
1976         (__GI___pwrite64, __GI___statfs, __GI___select, __GI___send): Add.
1977         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c (__sigaction): Add
1978         libc_hidden_weak.
1979         * sysdeps/unix/sysv/linux/sparc/sparc64/sigsuspend.c (__sigsuspend):
1980         Add libc_hidden_def.
1981         * sysdeps/unix/sysv/linux/x86_64/syscalls.list (__GI___pwrite64,
1982         __GI___statfs): Add.
1983         * sysdeps/unix/sysv/linux/x86_64/send.c (__send): Add
1984         libc_hidden_weak.
1985         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (__sigaction): Likewise.
1986         * sysdeps/unix/sysv/linux/getpagesize.c: Add libc_hidden_def.
1987         Remove undef and INTDEF.
1988         * sysdeps/unix/sysv/linux/poll.c (__poll): Add libc_hidden_def.
1989         * sysdeps/unix/sysv/linux/pwrite64.c (__pwrite64): Add
1990         libc_hidden_def.
1991         * sysdeps/unix/sysv/linux/send.S (__send): Likewise.
1992         * sysdeps/unix/sysv/linux/sigaction.c (__sigaction): Add
1993         libc_hidden_weak.
1994         * sysdeps/unix/sysv/linux/sigsuspend.c (__sigsuspend): Add
1995         libc_hidden_def.
1996         * sysdeps/unix/sysv/sco3.2.4/__setpgid.c (__setpgid): Likewise.
1997         * sysdeps/unix/sysv/sco3.2.4/sigaction.S (__sigaction): Likewise.
1998         * sysdeps/unix/sysv/sysv4/solaris2/syscalls.list (__GI___sigaction):
1999         Add.
2000         * sysdeps/unix/sysv/sysv4/__getpgid.c (__getpgid): Add
2001         libc_hidden_def.  Remove undef and INTDEF.
2002         * sysdeps/unix/sysv/sysv4/getpgid.c (__getpgid): Likewise.
2003         * sysdeps/unix/sysv/sysv4/__setpgid.c (__setpgid): Add
2004         libc_hidden_def.
2005         * sysdeps/unix/sysv/sysv4/setpgid.c (__setpgid): Likewise.
2006         * sysdeps/unix/sysv/sysv4/sigaction.c (__sigaction): Likewise.
2007         * sysdeps/unix/sysv/sigaction.c (__sigaction): Likewise.
2008         * sysdeps/unix/getpagesize.c (__getpagesize): Add libc_hidden_def.
2009         Remove undef and INTDEF.
2010         * configure.in (HAVE_BROKEN_VISIBILITY_ATTRIBUTE): Add check for
2011         broken visibility attribute handling.
2012         * config.h.in (HAVE_BROKEN_VISIBILITY_ATTRIBUTE): Add.
2014 2002-08-02  Ulrich Drepper  <drepper@redhat.com>
2016         * locale/iso-639.def: Add entries for Venda and Nothern Sotho.
2017         Reported by Dwayne Bailey <dwayne@obsidian.co.za>.
2019         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr_r): Adapt
2020         previous patch.
2022 2002-06-29  Todd Fries  <todd@openbsd.org>
2024         * resolv/gethnamaddr.c (gethostbyaddr): Try ip6.int if ip6.arpa fails.
2026 2002-08-02  Jakub Jelinek  <jakub@redhat.com>
2028         * include/errno.h: Don't include tls.h if _ISOMAC is defined.
2030 2002-07-30  Roland McGrath  <roland@redhat.com>
2032         * resolv/resolv.h (_res): Define macro unconditionally.
2033         [! _LIBC_REENTRANT] (_res): Move this conditional decl to ...
2034         * include/resolv.h: ... here.
2035         [USE_TLS && HAVE___THREAD] (_res): #undef it and declare
2036         as a __thread variable.
2037         * resolv/res_libc.c [USE_TLS && HAVE___THREAD] (_res): Define it as
2038         a __thread variable instead of a global.
2039         * resolv/res_data.c [_LIBC]: Don't #undef _res.
2041         * include/errno.h: Include <tls.h> to make sure USE_TLS defined by the
2042         time we test it.
2044         * intl/loadmsgcat.c [__GNUC__]: #undef alloca before defining it.
2046         * malloc/malloc.c [_LIBC]: Include <string.h> instead of using local
2047         decls of memset and memcpy.
2049         * sysdeps/generic/sysdep.h (END): Conditionalize on [__ASSEMBLER__].
2050         * sysdeps/unix/sysv/linux/i386/sysdep.h (L): Likewise.
2052         * elf/dl-load.c (_dl_map_object_from_fd): Comment fix.
2054         * sysdeps/generic/bits/libc-tsd.h [USE_TLS && HAVE___THREAD]
2055         (__libc_tsd_define): Define using __thread.
2057         * sunrpc/rpc_thread.c: Use __libc_tsd_define.
2058         (__rpc_thread_variables): Use __libc_tsd_get.
2059         (__rpc_thread_destroy): Use __libc_tsd_get instead of calling
2060         __rpc_thread_variables, which might allocate what we're about to free.
2062         * inet/herrno.c [USE_TLS && HAVE___THREAD] (h_errno): Define as a
2063         thread-local variable.
2064         * resolv/netdb.h (h_errno): Define macro unconditionally.
2065         [_LIBC] (__set_h_errno): Macro moved to ...
2066         * include/netdb.h: ... here.
2067         [USE_TLS && HAVE___THREAD] (h_errno): Declare __thread variable.
2068         [USE_TLS && HAVE___THREAD] (__set_h_errno): Define using that.
2069         [! _LIBC_REENTRANT]: #undef h_errno here.
2071         * include/errno.h: Protect from multiple inclusion.
2073         * misc/sys/select.h (__NFDBITS, __FDELT, __FDMASK): #undef these
2074         before defining them, since Linux's <linux/posix_types.h> might have
2075         defined them.
2077 2002-08-02  Jakub Jelinek  <jakub@redhat.com>
2079         * malloc/malloc.c (public_cALLOc): Check for overflow on
2080         multiplication.
2081         * sunrpc/xdr_array.c (xdr_array): Likewise.
2082         * sunrpc/rpc/types.h (mem_free): Add comment.
2083         Patch by Solar Designer <solar@openwall.com>.
2085 2002-08-02  Jakub Jelinek  <jakub@redhat.com>
2087         * sysdeps/unix/sysv/linux/kernel-features.h
2088         (__ASSUME_SET_THREAD_AREA_SYSCALL): Define.
2090 2002-08-01  Roland McGrath  <roland@redhat.com>
2092         * libio/fileops.c (_IO_file_sync_mmap): New function.
2093         (_IO_file_jumps_mmap): Use it.
2094         (_IO_file_underflow_mmap): Rewritten.  If after EOF or fflush,
2095         repeat the stat check and resize the mapped buffer as necessary.
2097 2002-07-31  Roland McGrath  <roland@redhat.com>
2099         * libio/fileops.c (decide_maybe_mmap): New static function.
2100         Code taken from libio/iofopen.c:__fopen_maybe_mmap to try to
2101         mmap the file contents.  Then switch the jump tables to the mmap
2102         tables if it worked, or the vanilla file tables if not.
2103         (_IO_file_underflow_maybe_mmap): New function.
2104         (_IO_file_seekoff_maybe_mmap): New function.
2105         (_IO_file_xsgetn_maybe_mmap): New function.
2106         (_IO_file_jumps_maybe_mmap): New variable, jump table using those.
2107         * libio/libioP.h: Declare those.
2108         * libio/wfileops.c (_IO_wfile_underflow_maybe_mmap): New function.
2109         (_IO_wfile_jumps_maybe_mmap): New variable, jump table using that.
2110         * libio/iofopen.c (__fopen_maybe_mmap): Don't try to mmap here.
2111         If the stream is read-only, set its jump tables to those new ones.
2112         * libio/iofdopen.c (_IO_new_fdopen) [_G_HAVE_MMAP]: Set the initial
2113         jump tables to the maybe_mmap ones, and don't call __fopen_maybe_mmap.
2114         We need the tables set before _IO_file_attach.
2116         * libio/tst-mmap-eofsync.c: New file.
2117         * libio/tst-mmap-fflushsync.c: New file.
2118         * libio/bug-mmap-fflush.c: New file.
2119         * libio/tst-mmap2-eofsync.c: New file.
2120         * libio/Makefile (tests): Add them.
2122         * libio/wfileops.c (_IO_wfile_underflow_mmap): Don't set EOF bit when
2123         _IO_file_underflow_mmap fails, it already set the appropriate bit.
2125 2002-07-31  Jeff Bailey  <jbailey@gnu.org>
2127         * libio/stdio.h (sys_errlist, sys_nerr, _sys_errlist, _sys_nerr):
2128         Declarations moved to <bits/sys_errlist.h>.  Include that file.
2129         * libio/Makefile (headers): Add bits/sys_errlist.h to the list.
2130         * sysdeps/generic/bits/sys_errlist.h: New file.  This does *not*
2131         declare sys_errlist and sys_nerr.
2132         * sysdeps/unix/sysv/linux/bits/sys_errlist.h: New file.  Does
2133         provide declarations.
2135 2002-07-31  Roland McGrath  <roland@redhat.com>
2137         * elf/rtld.c (dl_main): Fix typo in error message.
2139 2002-07-31  Roland McGrath  <roland@frob.com>
2141         * sysdeps/mach/hurd/Versions (ld: GLIBC_2.0): __fxstat -> __fxstat64,
2142         __xstat -> __xstat64, __lseek -> __libc_lseek64.  Completes 2002-06-09
2143         sysdeps/mach/hurd/dl-sysdep.c change.
2145 2002-07-28  Ulrich Drepper  <drepper@redhat.com>
2147         * sysdeps/unix/sysv/linux/configure.in: Check /lib/modules/`uname
2148         -r`/build/include for kernel headers.
2150         * po/fi.po: New file.
2152 2002-07-15  Alexandre Oliva  <aoliva@redhat.com>
2154         * configure.in (static_nss): Set to `yes' if --disable-shared.
2156 2002-07-23  Bruno Haible  <bruno@clisp.org>
2158         * intl/loadmsgcat.c (PRI*): Redefine the macros if PRI_MACROS_BROKEN
2159         is set.
2161 2002-07-25  Jakub Jelinek  <jakub@redhat.com>
2163         * sysdeps/unix/sysv/linux/ia64/sigcontextinfo.h: New file.
2164         * sysdeps/unix/sysv/linux/ia64/profil-counter.h: Fix profil_counter
2165         arguments.
2167 2002-07-25  Jakub Jelinek  <jakub@redhat.com>
2169         * sysdeps/unix/sysv/linux/alpha/adjtime.c (__adjtimex_internal): Add
2170         alias.
2172 2002-07-21  Bruno Haible  <bruno@clisp.org>
2174         * intl/libintl.h (__GNU_GETTEXT_SUPPORTED_REVISION): New macro.
2175         * intl/gettext.h (struct mo_file_header): New fields n_sysdep_segments,
2176         sysdep_segments_offset, n_sysdep_strings, orig_sysdep_tab_offset,
2177         trans_sysdep_tab_offset.
2178         (struct sysdep_segment): New type.
2179         (struct sysdep_string): New type.
2180         (SEGMENTS_END): New macro.
2181         * intl/gettextP.h (struct sysdep_string_desc): New type.
2182         (struct loaded_domain): New fields malloced, n_sysdep_strings,
2183         orig_sysdep_tab, trans_sysdep_tab, must_swap_hash_tab. Make fields
2184         orig_tab, trans_tab, hash_tab to const pointers because they point
2185         into read-only memory.
2186         * intl/loadmsgcat.c: Include stdint.h, inttypes.h, hash-string.h.
2187         (PRI*): Define fallback values.
2188         (get_sysdep_segment_value): New function.
2189         (_nl_load_domain): Distinguish major and minor revision parts. Add
2190         support for minor revision 1 with system dependent strings.
2191         (_nl_unload_domain): Also free the 'malloced' field.
2192         * intl/dcigettext.c (_nl_find_msg): Remove test for domain->hash_size,
2193         now done in loadmsgcat.c. Add support for system dependent strings.
2195 2002-07-16  Stepan Kasal  <kasal@math.cas.cz>
2197         * posix/bug-regex7.c: New file.
2198         * posix/bug-regex8.c: New file.
2199         * posix/Makefile (tests): Add bug-regex7 and bug-regex8.
2201 2002-07-16  Stepan Kasal  <kasal@math.cas.cz>
2203         * posix/bug-regex4.c (main): Fix typos.
2204         * posix/bug-regex6.c (main): Likewise.
2206 2002-07-27  Ulrich Drepper  <drepper@redhat.com>
2208         * posix/bug-regex6.c (main): Fix warnings.
2210         * iconvdata/Makefile (CPPFLAGS): Add NOT_IN_libc.
2212         * iconv/iconv_prog.c (main): Improve error message for the cases
2213         where -t and/or -f parameter are missing.
2215 2002-07-10  Stepan Kasal  <kasal@math.cas.cz>
2217         * posix/regexec.c (re_match): Reorganize to remove duplicate code.
2218         (re_search): Likewise.
2219         (re_match_2): Likewise.
2220         (re_search_2): Likewise.
2221         (re_search_stub): New function.
2222         (re_search_2_stub): New function.
2223         * regcomp.c (re_compile_pattern): Typo in a comment fixed.
2225 2002-07-10  Isamu Hasegawa  <isamu@yamato.ibm.com>
2227         * posix/regex_internal.h: Add new member STOP to struct re_string_t.
2228         (re_string_eoi): Use STOP instead of LEN.
2229         * posix/regex_internal.c (re_string_allocate): Initialize pstr->len.
2230         (re_string_construct): Likewise.
2231         (re_string_reconstruct): Adjust pstr->stop like pstr->len.
2232         * posix/regexec.c (re_search_internal): Add a new argument STOP
2233         so that it can handle the argument STOP of re_search_2 and re_match_2
2234         correctly.
2235         (regexec): Adapt to new I/F of re_search_internal.
2236         (re_search_stub): Likewise.
2238 2002-07-25  Ulrich Drepper  <drepper@redhat.com>
2240         * sunrpc/clnt_gen.c: Don't include <sys/errno.h>.
2242         * elf/dl-minimal.c: Remove definition of __assert_perror_fail.
2244         * sysdeps/wordsize-32/divdi3.c: Define __divdi3_internal.
2245         * sysdeps/wordsize-32/lldiv.c: Make gcc use __divdi3_internal instead
2246         of __divdi3.
2248         * sysdeps/unix/sysv/linux/adjtime.c: Use __adjtimex_internal.
2249         * sysdeps/unix/sysv/linux/ntp_gettime.c: Likewise.
2250         * sysdeps/unix/sysv/linux/syscalls.list: Add __adjtimex_internal
2251         alias for adjtimex syscall.
2253         * elf/dl-minimal.c: Define __assert_fail_internal.
2254         * assert/assert.c: Likewise.
2255         * include/assert.h: Define __assert_file macro if !SHARED and not
2256         NOT_IN_libc.
2258         * iconv/Makefile: Define NOT_IN_libc for objects in standalone
2259         programs.
2260         * locale/Makefile: Likewise.
2261         * nscd/Makefile: Likewise.
2262         * catgets/Makefile: Likewise.
2264 2002-07-24  Ulrich Drepper  <drepper@redhat.com>
2266         * libio/fileops.c (_IO_file_seekoff_mmap): Do use fp->_offset to
2267         compute current position.
2269         * stdio-common/tst-fseek.c (main): Improve error messages.
2271         * libio/tst-freopen.c (main): Remove unused variable.
2273         * libio/fileops.c (_IO_file_seekoff_mmap): Set fp->_offset after
2274         succesful seek call.  Simplify error checking.
2276 2002-07-25  Jakub Jelinek  <jakub@redhat.com>
2278         * config.h.in: Use __ASSEMBLER__ test macro not ASSEMBLER.
2279         * sysdeps/ia64/fpu/libm_support.h: Likewise.
2281 2002-07-19  Roland McGrath  <roland@frob.com>
2283         * hurd/hurdsig.c (_hurdsig_getenv): Always return null if
2284         __libc_enable_secure is set.
2286 2002-07-24  Roland McGrath  <roland@frob.com>
2288         Added <ifaddrs.h> interface with functions `getifaddrs', `freeifaddrs'.
2289         This implementation supports only IPv4.
2290         * inet/ifaddrs.h: New file.
2291         * sysdeps/generic/ifaddrs.c: New file.
2292         * sysdeps/gnu/ifaddrs.c: New file.
2293         * inet/test-ifaddrs.c: New file.
2294         * inet/Makefile (routines): Add ifaddrs.
2295         (headers): Add ifaddrs.h here.
2296         (tests): Add test-ifaddrs.
2297         * inet/Versions (GLIBC_2.3): New set, add getifaddrs and freeifaddrs.
2299         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Use an explicit
2300         socket call to get an AF_INET socket, instead of using __opensock.
2301         The SIOCGIFNETMASK ioctl will work only with a PF_INET socket.
2303         * sysdeps/generic/ifreq.h (__ifreq): Take third argument SOCKFD,
2304         if not -1 use it instead of calling __opensock.
2305         * sysdeps/unix/sysv/linux/ifreq.h (__ifreq): Likewise.
2306         * sysdeps/mach/hurd/ifreq.h (__ifreq): Take new argument and ignore it.
2307         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Pass new argument.
2309         * sysdeps/mach/hurd/ifreq.h: New file.
2310         * sysdeps/generic/ifreq.h (__if_freereq): Take second argument NUM_IFS.
2311         * sysdeps/unix/sysv/linux/ifreq.h (__if_freereq): Likewise.
2312         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Update caller.
2314         * libio/fileops.c (_IO_file_seekoff_mmap): Don't rely on FP->_offset,
2315         which gets moved around.  Calculate size of mmap'd buffer instead.
2317 2002-07-24  Philip Blundell  <philb@gnu.org>
2319         * sysdeps/unix/arm/brk.S: Improve schedule.
2320         * sysdeps/unix/sysv/linux/arm/socket.S (PUSHARGS_1): Use more
2321         efficient instruction.
2322         (__socket): Optimize return sequence.
2324 2002-07-24  Ulrich Drepper  <drepper@redhat.com>
2326         * sysdeps/unix/sysv/linux/opensock.c (__opensock): Prefer inet
2327         sockets on old kernels.
2329 2002-07-22  Philip Blundell  <philb@gnu.org>
2331         * sysdeps/unix/sysv/linux/arm/errlist.c: Remove extra weak alias
2332         definiton of _old_sys_nerr.  Define _old_sys_errlist as strong
2333         alias.
2335 2002-07-24  Ulrich Drepper  <drepper@redhat.com>
2337         * locale/hashval.h: Make more self-contained by defining LONG_BITS.
2338         * locale/programs/simple-hash.c: Remove LONG_BITS definition.
2340         * locale/programs/locarchive.c (add_locale_to_archive): Correct
2341         test to detect duplicate locales.
2343         * libio/fileops.c (_IO_new_file_seekoff): Fail if relative
2344         position would be before beginning of file.
2345         (_IO_file_seekoff_mmap): Likewise.
2346         * libio/Makefile (tests): Add bug-fseek.
2347         * libio/bug-fseek.c: New file.
2349         * intl/explodename.c: Remove support for CEN-style locale variables.
2350         It was never used and shouldn't be since it's not portable.
2351         * intl/finddomain.c: Likewise.
2352         * intl/l10nflist.c: Likewise.
2353         * intl/loadinfo.h: Likewise.
2354         * locale/findlocale.c: Likewise.
2356 2002-07-24  Roland McGrath  <roland@frob.com>
2358         * libio/fileops.c (_IO_file_seekoff_mmap): When just examining the
2359         position, calculate it to take into account an active pushback buffer.
2361         * libio/Makefile (tests): Add bug-ungetc.
2362         * libio/bug-ungetc.c: New file.
2364 2002-07-23  Ulrich Drepper  <drepper@redhat.com>
2366         * sysdeps/generic/libc-tls.c: New file.
2367         * csu/Makefile (routines): Add libc-tls.
2368         (static-only-routines): Add libc-tls.
2369         * elf/dl-support.c (_dl_phdr): New variable.
2370         (_dl_phnum): New variable.
2371         (_dl_aux_init): Initialize _dl_phdr and _dl_phnum from aux vector.
2372         * sysdeps/generic/libc-start.c (__libc_start_main): Reorganize code
2373         for !SHARED.  First look through auxiliary vector.  If TLS always
2374         call __pthread_initialize_minimal.
2376         * sysdeps/generic/dl-tls.c (_dl_allocate_tls): Make sure size argument
2377         in mmap call is never zero.
2379 2002-07-23  Andreas Jaeger  <aj@suse.de>
2381         * sysdeps/x86_64/fpu/s_copysign.S: Use optimized version.
2382         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
2384 2002-07-22  Ulrich Drepper  <drepper@redhat.com>
2386         * libio/tst-eof.c: Rewrite to let test-skeleton.c deal with
2387         creation and removal of the temp file.
2389         * libio/bug-rewind.c: Use test skeleton.  Use create_temp_file for
2390         file creation.
2391         * test-skeleton.c (create_temp_file): New function.
2393 2002-07-22  Andreas Jaeger  <aj@suse.de>
2395         * sysdeps/x86_64/dl-machine.h (elf_machine_load_address): Use
2396         local label.
2398 2002-07-21  Roland McGrath  <roland@frob.com>
2400         * wcsmbs/Makefile (strtox-CFLAGS): New variable,
2401         put -I../include before -I../stdlib so we get the right errno.h et al.
2402         (CFLAGS-wcstod.c): Use that variable instead of -I../stdlib.
2403         (CFLAGS-wcstof.c): Likewise.
2404         (CFLAGS-wcstold.c): Likewise.
2405         (CFLAGS-wcstod_l.c): Likewise.
2406         (CFLAGS-wcstof_l.c): Likewise.
2407         (CFLAGS-wcstold_l.c): Likewise.
2409 2002-07-19  Roland McGrath  <roland@frob.com>
2411         * sysdeps/mach/hurd/errnos.awk: Remove __set_errno defn from output.
2413 2002-07-20  Ulrich Drepper  <drepper@redhat.com>
2415         * sysdeps/unix/sysv/linux/ldsodefs.h (HAVE_AUX_XID): Define if
2416         __ASSUME_AT_XID is defined.
2417         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_AT_XID): Define
2418         for 2.4.1 and up.
2419         * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Optimize handling
2420         of AT_UID, AT_EUID, AT_GID, and AT_EGID.
2422         * wcsmbs/Makefile (CFLAGS-wcstod.c): Add -I../stdlib.
2423         (CFLAGS-wcstof.c): Likewise.
2424         (CFLAGS-wcstold.c): Likewise.
2425         (CFLAGS-wcstod_l.c): Likewise.
2426         (CFLAGS-wcstof_l.c): Likewise.
2427         (CFLAGS-wcstold_l.c): Likewise.
2429 2002-07-18  Jakub Jelinek  <jakub@redhat.com>
2431         * resource/sys/resource.h (__rlimit_resource_t, __rusage_who_t,
2432         __priority_which_t): Always typedef to int for C++.
2434 2002-07-19  Ulrich Drepper  <drepper@redhat.com>
2436         * configure.in: Add test for __thread support in compiler.
2437         * config.h.in: Add HAVE___THREAD.
2438         * Makefile (headers): Remove errno.h, sys/errno.h, and bits/errno.h.
2439         * include/sys/errno.h: Moved to...
2440         * stdlib/sys/errno.h: ...here.  New file.
2441         * stdlib/errno.h: New file.  Moved from...
2442         * include/errno.h: ...here.  Changed into an internal header defining
2443         libc-local things like __set_errno.
2444         * stdlib/Makefile (headers): Add errno.h, sys/errno.h, and
2445         bits/errno.h.
2446         * elf/dl-minimal.c: Include <tls.h>.  Define errno as thread-local
2447         variable if USE_TLS && HAVE___THREAD.  Don't define __errno_location
2448         either.
2449         * elf/rtld.c (_dl_start): Add code to initialize TLS for ld.so
2450         from...
2451         (_dl_start_final): ...here.  Add code to initialize tls elements from
2452         bootstrap_map.
2453         * sysdeps/generic/errno-loc.c: Define errno as thread-local variable
2454         if USE_TLS && HAVE___THREAD.
2455         * sysdeps/generic/bits/errno.h: Remove __set_errno definition.
2456         * sysdeps/mach/hurd/bits/errno.h: Likewise.
2457         * sysdeps/standalone/arm/bits/errno.h: Likewise.
2458         * sysdeps/standalone/bits/errno.h: Likewise.
2459         * sysdeps/unix/bsd/bsd4.4/bits/errno.h: Likewise.
2460         * sysdeps/unix/sysv/aix/bits/errno.h: Likewise.
2461         * sysdeps/unix/sysv/hpux/bits/errno.h: Likewise.
2462         * sysdeps/unix/sysv/linux/bits/errno.h: Likewise.
2463         * sysdeps/unix/sysv/linux/hppa/bits/errno.h: Likewise.
2464         * sysdeps/unix/sysv/linux/mips/bits/errno.h: Likewise.
2465         * sysdeps/unix/sysv/sysv4/solaris2/bits/errno.h: Likewise.
2466         * sysdeps/i386/dl-machine.c (elf_machine_rel) [RTLD_BOOTSTRAP]: Don't
2467         use GL(dl_rtld_map), use map parameter.
2468         * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
2469         * sysdeps/unix/sysv/linux/i386/sysdep.S: Define errno in .tbss if
2470         USE_TLS && HAVE___THREAD.
2471         * sysdeps/unix/sysv/linux/i386/sysdep.h: Unify SETUP_PIC_REG
2472         definitions.  If USE_TLS && HAVE___THREAD store errooor value using
2473         TLS code sequence.
2474         * sysdeps/unix/sysv/linux/i386/i686/sysdep.h: Likewise.
2476         * sysdeps/unix/sysv/linux/getcwd.c: No real need to restore errno.
2477         * sysdeps/unix/sysv/linux/grantpt.c: Likewise.
2478         * sysdeps/unix/sysv/linux/internal_statvfs.c: Likewise.
2479         * sysdeps/unix/sysv/linux/msgctl.c: Likewise.
2480         * sysdeps/unix/sysv/linux/readv.c: Likewise.
2481         * sysdeps/unix/sysv/linux/writev.c: Likewise.
2483 2002-07-17  Ulrich Drepper  <drepper@redhat.com>
2485         * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Fix MS_SYNC and
2486         MS_INVALIDATE values.
2488 2002-07-17  Andreas Schwab  <schwab@suse.de>
2489             Ulrich Drepper  <drepper@redhat.com>
2491         * sysdeps/unix/sysv/linux/pread.c: Sign extend offset.
2492         * sysdeps/unix/sysv/linux/pwrite.c: Likewise.
2493         * sysdeps/unix/sysv/linux/mips/pread.c: Likewise.
2494         * sysdeps/unix/sysv/linux/mips/pwrite.c: Likewise.
2496 2002-07-01  H.J. Lu  <hjl@gnu.org>
2498         * elf/circleload1.c (load_dso): Call "circlemod1" and check
2499         return value.
2501         * elf/circlemod1.c (circlemod1): Return int.
2502         * elf/circlemod2.c (circlemod2): Likewise.
2503         * elf/circlemod2a.c (circlemod2): Likewise.
2504         * elf/circlemod3.c (circlemod3): Likewise.
2505         (circlemod3a): A new function.
2507 2002-07-16  Ulrich Drepper  <drepper@redhat.com>
2509         * catgets/tst-catgets.c (main): Don't expect results for
2510         untranslated messages.
2512         * glibcbug.in: Fix little typo.  Remove STDIO.
2514         * config.h.in: Fail if __FAST_MATH__ is defined.
2515         * math/Makefile (CPPFLAGS-test-ifloat.c): Also define TEST_FAST_MATH.
2516         (CPPFLAGS-test-idouble.c): Likewise.
2517         (CPPFLAGS-test-ildouble.c): Likewise.
2519 2002-07-15  Ulrich Drepper  <drepper@redhat.com>
2521         * intl/tst-gettext.sh: Pass -f option to msgfmt.
2522         * intl/tst-gettext.c: Correctly handle untranslated messages in
2523         positive tests.
2525         * po/de.po: Update from translation team.
2527 2002-07-02  H.J. Lu  <hjl@gnu.org>
2529         * sysdeps/mips/atomicity.h: Don't include <sgidefs.h>.  Always
2530         use ll/sc.
2531         * sysdeps/unix/sysv/linux/mips/sys/tas.h: Likewise.
2533         * sysdeps/unix/sysv/linux/configure.in: Set arch_minimum_kernel
2534         to 2.4.0 for mips.
2536 2002-07-15  Ulrich Drepper  <drepper@redhat.com>
2538         * elf/dl-load.c (_dl_map_object_from_fd): If loaded object uses
2539         TLS fail if USE_TLS is not defined.
2541         * libio/wfileops.c (_IO_wfile_seekoff): Reposition wide pointers
2542         and adjust state for seek position.  [PR libc/4070]
2543         * libio/Makefile (tests): Add bug-rewind.
2544         * libio/bug-rewind.c: New file.
2546 2002-07-12  Philip Blundell  <philb@gnu.org>
2548         * sysdeps/generic/backtrace.c (FIRST_FRAME_POINTER): New macro.
2549         (__backtrace): Use it.
2550         * sysdeps/arm/frame.h (FIRST_FRAME_POINTER): Define.  [PR libc/2632]
2552 2002-07-12  Philip Blundell  <philb@gnu.org>
2554         * sysdeps/arm/dl-machine.h (elf_machine_rel): Don't handle
2555         R_ARM_RELATIVE if RTLD_BOOTSTRAP and HAVE_Z_COMBRELOC.  Only check
2556         for rtld map if neither RTLD_BOOTSTRAP nor HAVE_Z_COMBRELOC is defined.
2557         (elf_machine_rela): Remove unused variable.
2559         * sysdeps/unix/sysv/linux/arm/Makefile [subdir=elf]
2560         (sysdep-rtld-routines, sysdep_routines, sysdep-dl-routines): Don't
2561         define.
2563 2002-07-12  Ulrich Drepper  <drepper@redhat.com>
2565         * iconvdata/gconv-modules: Add aliases for ISO-8859-11.
2567 2002-07-14  Andreas Jaeger  <aj@suse.de>
2569         * sysdeps/x86_64/bits/link.h: Add biarch support.
2571 2002-07-13  Andreas Jaeger  <aj@suse.de>
2573         * sysdeps/unix/sysv/linux/mips/register-dump.h (register_dump):
2574         Use correct indices.
2575         Patch by Eliot Dresselhaus <eliot@ayrnetworks.com>.
2577 2002-07-09  Martin Schwidefsky  <schwidefsky@de.ibm.com>
2579         * sysdeps/s390/bits/byteswap.h: Unified 31/64 bit byteswap.h.
2580         * sysdeps/s390/s390-32/bits/byteswap.h: Remove.
2581         * sysdeps/s390/s390-64/bits/byteswap.h: Remove.
2582         * sysdeps/s390/bits/link.h: Unified 31/64 bit link.h.
2583         * sysdeps/s390/s390-32/bits/link.h: Remove.
2584         * sysdeps/s390/s390-64/bits/link.h: Remove.
2585         * sysdeps/s390/bits/setjmp.h: Unified 31/64 bit setjmp.h.
2586         * sysdeps/s390/s390-32/bits/setjmp.h: Remove.
2587         * sysdeps/s390/s390-64/bits/setjmp.h: Remove.
2588         * sysdeps/s390/bits/wordsize.h: New file.
2589         * sysdeps/unix/sysv/linux/s390/bits/elfclass.h: Unified 31/64 bit
2590         elfclass.h.
2591         * sysdeps/unix/sysv/linux/s390/s390-64/bits/elfclass.h: Remove.
2592         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Unified 31/64 bit fcntl.h.
2593         * sysdeps/unix/sysv/linux/s390/s390-32/bits/fcntl.h: Remove.
2594         * sysdeps/unix/sysv/linux/s390/s390-64/bits/fcntl.h: Remove.
2595         * sysdeps/unix/sysv/linux/s390/bits/ipc.h: Unified 31/64 bit ipc.h.
2596         * sysdeps/unix/sysv/linux/s390/s390-64/bits/ipc.h: Remove.
2597         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Unified 31/64 bit mman.h.
2598         * sysdeps/unix/sysv/linux/s390/s390-32/bits/mman.h: Remove.
2599         * sysdeps/unix/sysv/linux/s390/s390-64/bits/mman.h: Remove.
2600         * sysdeps/unix/sysv/linux/s390/bits/msq.h: Unified 31/64 bit msq.h.
2601         * ysdeps/unix/sysv/linux/s390/s390-64/bits/msq.h: Remove.
2602         * sysdeps/unix/sysv/linux/s390/bits/resource.h: Unified 31/64 bit
2603         resource.h.
2604         * sysdeps/unix/sysv/linux/s390/s390-32/bits/resource.h: Remove.
2605         * sysdeps/unix/sysv/linux/s390/s390-64/bits/resource.h: Remove.
2606         * sysdeps/unix/sysv/linux/s390/bits/sem.h: Unified 31/64 bit sem.h.
2607         * sysdeps/unix/sysv/linux/s390/s390-64/bits/sem.h: Remove.
2608         * sysdeps/unix/sysv/linux/s390/bits/shm.h: Unified 31/64 bit shm.h.
2609         * sysdeps/unix/sysv/linux/s390/s390-64/bits/shm.h: Remove.
2610         * sysdeps/unix/sysv/linux/s390/bits/sigaction.h: Unified 31/64 bit
2611         sigaction.h.
2612         * sysdeps/unix/sysv/linux/s390/s390-64/bits/sigaction.h: Remove.
2613         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Unified 31/64 bit
2614         siginfo.h.
2615         * sysdeps/unix/sysv/linux/s390/s390-64/bits/siginfo.h: Remove.
2616         * sysdeps/unix/sysv/linux/s390/s390-64/bits/sigstack.h: Remove.
2617         * sysdeps/unix/sysv/linux/s390/bits/socket.h: Unified 31/64 bit
2618         socket.h.
2619         * sysdeps/unix/sysv/linux/s390/s390-64/bits/socket.h: Remove.
2620         * sysdeps/unix/sysv/linux/s390/bits/stat.h: Unified 31/64 bit stat.h.
2621         * sysdeps/unix/sysv/linux/s390/s390-32/bits/stat.h: Remove.
2622         * sysdeps/unix/sysv/linux/s390/s390-64/bits/stat.h: Remove.
2623         * sysdeps/unix/sysv/linux/s390/bits/types.h: Unified 31/64 bit types.h.
2624         * sysdeps/unix/sysv/linux/s390/s390-64/bits/types.h: Remove.
2625         * sysdeps/unix/sysv/linux/s390/net/route.h: New file.
2626         * sysdeps/unix/sysv/linux/s390/sys/procfs.h: Unified 31/64 bit
2627         procfs.h.
2628         * sysdeps/unix/sysv/linux/s390/s390-32/sys/procfs.h: Remove.
2629         * sysdeps/unix/sysv/linux/s390/s390-64/sys/procfs.h: Remove.
2630         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h: Unified 31/64 bit
2631         ucontext.h.
2632         * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Remove.
2633         * sysdeps/unix/sysv/linux/s390/s390-64/sys/ucontext.h: Remove.
2635 2002-07-11  Ulrich Drepper  <drepper@redhat.com>
2637         * Versions.def (libc): Add GLIBC_2.3.
2638         * stdlib/Versions [libc] (GLIBC_2.3): Add realpath.
2639         * stdlib/canonicalize.c: Add compatibility version for realpath
2640         and make new code available in GLIBC_2.3.
2642 2002-07-06  Bruno Haible  <bruno@clisp.org>
2644         * malloc/hooks.c (public_gET_STATe): Access max_total_mem in mp_.
2646 2002-07-11  Ulrich Drepper  <drepper@redhat.com>
2648         * resolv/res_hconf.c (_res_hconf_init): Move code into new
2649         function do_init.  Use __libc_once.
2650         (do_init): New function.
2652         * iconvdata/iso8859-11.h: Removed.
2653         * iconvdata/Makefile (gen-8bit-gap-modules): Add iso8859-11.
2654         (distribute): Remove iso8859-11.h.
2655         * iconvdata/tst-tables.sh: Add ISO-8859-11.
2657         * stdio-common/vfscanf.c (inchar): Restore errno from previous
2658         underflow operation if c == (W)EOF.
2660 2002-07-03  Jakub Jelinek  <jakub@redhat.com>
2662         * stdio-common/printf_fp.c (__printf_fp): If _FPIO_CONST_SHIFT is
2663         non-zero, adjust exponent.
2664         * sysdeps/ieee754/ldbl-128/s_erfl.c (__erfl, erfl, __erfcl, erfcl):
2665         Remove NO_LONG_DOUBLE aliases.
2666         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l, expm1l): Likewise.
2667         * sysdeps/ieee754/ldbl-128/s_log1pl.c (__log1pl, log1pl): Likewise.
2668         (__log1pl): Raise divide by zero and invalid exceptions when needed.
2669         * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Special case
2670         1**y and -1**+-Inf.
2671         * sysdeps/ieee754/ldbl-128/ldbl2mpn.c (__mpn_extract_long_double):
2672         Fix BITS_PER_MP_LIMB 32 extraction.
2673         * sysdeps/ieee754/ldbl-128/e_log2l.c (__ieee754_log2l): Don't raise
2674         exceptions for qNaNs.
2675         * sysdeps/ieee754/ldbl-128/e_log10l.c (__ieee754_log10l): Likewise.
2676         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgamma_r):
2677         Raise exceptions when needed.  Don't recurse unnecessarily.
2678         Special case 1.0L and 2.0L arguments to avoid -0.0L as result.
2679         * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_y0l): Don't raise
2680         exceptions for qNaNs.
2681         * sysdeps/ieee754/ldbl-128/s_remquol.c (__remquol): Make qs 64-bit
2682         to fix *quo return value sign.
2683         * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gamma_r): Special
2684         case -Inf argument.
2685         * soft-fp/op-4.h (_FP_FRAC_CLZ_4): Fix a pasto.
2687 2002-07-01  Jakub Jelinek  <jakub@redhat.com>
2689         * libio/tst-eof.c (do_test): Remove unused ch and tm variables.
2690         * iconvdata/iso-2022-jp-3.c (EMIT_SHIFT_TO_INIT): Kill warnings if
2691         -DNDEBUG.
2693 2002-07-10  Ulrich Drepper  <drepper@redhat.com>
2695         * malloc/hooks.c (realloc_check): If mremap succeeds actually use
2696         the result.
2698         * sysdeps/i386/i486/bits/string.h: Add early clobber for "a"
2699         output parameter.  Reported by Denis Zaitsev <zzz@cd-club.ru>.
2701         * Versions.def (libthread_db): Add GLIBC_2.3.
2703 2002-07-09  Jakub Jelinek  <jakub@redhat.com>
2705         * libio/freopen.c (freopen): Reset jump tables, use mmap stdio for the
2706         new stream if possible.
2707         * libio/freopen64.c (freopen64): Likewise.
2708         * libio/Makefile (tests): Add tst-freopen.
2709         * libio/tst-freopen.c: New file.
2711 2002-07-03  Jakub Jelinek  <jakub@redhat.com>
2713         * libio/stdio.h (obstack_printf): Add format attribute.
2714         (obstack_vprintf): Likewise.
2716 2002-07-04  Jakub Jelinek  <jakub@redhat.com>
2718         * posix/regex_internal.h (re_token_t): Shrink the structure to 8
2719         resp. 16 bytes on 32-bit resp. 64-bit platforms.
2720         (re_charset_t, re_string_t): Reorder structure members for 64-bit
2721         architectures.
2723 2002-07-04  Jakub Jelinek  <jakub@redhat.com>
2725         * posix/regcomp.c (re_compile_internal): Move clearing of dfa...
2726         (init_dfa): ...here.
2728 2002-07-05  Isamu Hasegawa  <isamu@yamato.ibm.com>
2730         * posix/regcomp.c (parse_sub_exp): Add nodes OP_OPEN_SUBEXP and
2731         OP_CLOSE_SUBEXP at both ends of sub expressions instead of SUBEXP
2732         nodes in parse trees.
2733         (calc_first): Fix the Definition of `firsts' of OP_OPEN_SUBEXP
2734         and OP_CLOSE_SUBEXP, and remove the definition of SUBEXP.
2735         (calc_epsdest): Treat OP_OPEN_SUBEXP and OP_CLOSE_SUBEXP as the
2736         nodes which can epsilon transit.
2737         * posix/regex_internal.h: Add OP_OPEN_SUBEXP and OP_CLOSE_SUBEXP
2738         to IS_EPSILON_NODE macro.
2739         * posix/regexec.c (update_regs): New function to update registers
2740         by refering OP_OPEN_SUBEXP and OP_CLOSE_SUBEXP nodes.
2741         (proceed_next_node): Use the entities of the nodes to determine
2742         whether the node can transit to.
2743         (set_regs): Use update_regs function to update registers.
2745 2002-07-03  Jakub Jelinek  <jakub@redhat.com>
2747         * posix/bug-regex4.c (main): Remove duplicate setlocale.
2748         * posix/bug-regex6.c: New file.
2749         * posix/Makefile (tests): Add bug-regex6.
2750         (bug-regex6-ENV): Set LOCPATH.
2752 2002-07-10  Ulrich Drepper  <drepper@redhat.com>
2754         * Versions.def [libpthread]: Add GLIBC_2.2.6.
2755         * posix/Versions [libc] (GLIBC_2.2.6): Add __nanosleep.
2757 2002-07-06  Bruno Haible  <bruno@clisp.org>
2759         * sysdeps/unix/sysv/sysv4/bits/sigset.h (__NSSBITS): Correct value.
2761 2002-07-06  Bruno Haible  <bruno@clisp.org>
2763         * include/sys/socket.h (__libc_sendto, __libc_recvfrom): New
2764         declarations.
2766         * sysdeps/i386/fpu/libm-test-ulps: Add some ulps for AMD K7.
2768         * rt/Makefile (tests): Don't add tst-aio* in a single-threaded build.
2770         * sysdeps/unix/bsd/sun/sunos4/bits/utsname.h: Test for _SYS_UTSNAME_H,
2771         not _UTSNAME_H.
2772         * sysdeps/unix/bsd/ultrix4/bits/utsname.h: Likewise.
2774         * sysdeps/generic/bits/stropts.h: Protect against direct inclusion.
2775         * sysdeps/generic/bits/ustat.h: Likewise.
2777         * sysdeps/unix/sysv/linux/bits/statvfs.h (ST_NODIRATIME): Set to 2048.
2779 2002-07-08  Andreas Jaeger  <aj@suse.de>
2781         * sysdeps/x86_64/elf/initfini.c (__asm__): Call call_gmon_start.
2783 2002-07-08  Andreas Jaeger  <aj@suse.de>
2785         * sysdeps/x86_64/fpu/s_fdiml.S: Fix wrong register name.
2787 2002-07-06  Andreas Jaeger  <aj@suse.de>
2789         * sysdeps/x86_64/fpu/bits/mathinline.h: New.
2790         * sysdeps/x86_64/fpu/s_copysign.S: New.
2791         * sysdeps/x86_64/fpu/s_copysignf.S: New.
2792         * sysdeps/x86_64/fpu/s_copysignl.S: New.
2793         * sysdeps/x86_64/fpu/s_finitel.S: New.
2794         * sysdeps/x86_64/fpu/s_fmax.S: New.
2795         * sysdeps/x86_64/fpu/s_fmaxf.S: New.
2796         * sysdeps/x86_64/fpu/s_fmaxl.S: New.
2797         * sysdeps/x86_64/fpu/s_fmin.S: New.
2798         * sysdeps/x86_64/fpu/s_fminf.S: New.
2799         * sysdeps/x86_64/fpu/s_fminl.S: New.
2801 2002-06-05  Brian Youmans <3diff@gnu.org>
2803         * sysdeps/ia64/fpu/e_acos.S: Added text of Intel license.
2804         * sysdeps/ia64/fpu/e_acosf.S: Likewise.
2805         * sysdeps/ia64/fpu/e_acosl.S: Likewise.
2806         * sysdeps/ia64/fpu/e_asin.S: Likewise.
2807         * sysdeps/ia64/fpu/e_asinf.S: Likewise.
2808         * sysdeps/ia64/fpu/e_asinl.S: Likewise.
2809         * sysdeps/ia64/fpu/e_atan2.S: Likewise.
2810         * sysdeps/ia64/fpu/e_atan2f.S: Likewise.
2811         * sysdeps/ia64/fpu/e_cosh.S: Likewise.
2812         * sysdeps/ia64/fpu/e_coshf.S: Likewise.
2813         * sysdeps/ia64/fpu/e_coshl.S: Likewise.
2814         * sysdeps/ia64/fpu/e_exp.S: Likewise.
2815         * sysdeps/ia64/fpu/e_expf.S: Likewise.
2816         * sysdeps/ia64/fpu/e_fmod.S: Likewise.
2817         * sysdeps/ia64/fpu/e_fmodf.S: Likewise.
2818         * sysdeps/ia64/fpu/e_fmodl.S: Likewise.
2819         * sysdeps/ia64/fpu/e_hypot.S: Likewise.
2820         * sysdeps/ia64/fpu/e_hypotf.S: Likewise.
2821         * sysdeps/ia64/fpu/e_hypotl.S: Likewise.
2822         * sysdeps/ia64/fpu/e_log.S: Likewise.
2823         * sysdeps/ia64/fpu/e_logf.S: Likewise.
2824         * sysdeps/ia64/fpu/e_pow.S: Likewise.
2825         * sysdeps/ia64/fpu/e_powf.S: Likewise.
2826         * sysdeps/ia64/fpu/e_powl.S: Likewise.
2827         * sysdeps/ia64/fpu/e_remainder.S: Likewise.
2828         * sysdeps/ia64/fpu/e_remainderf.S: Likewise.
2829         * sysdeps/ia64/fpu/e_remainderl.S: Likewise.
2830         * sysdeps/ia64/fpu/e_scalb.S: Likewise.
2831         * sysdeps/ia64/fpu/e_scalbf.S: Likewise.
2832         * sysdeps/ia64/fpu/e_scalbl.S: Likewise.
2833         * sysdeps/ia64/fpu/e_sinh.S: Likewise.
2834         * sysdeps/ia64/fpu/e_sinhf.S: Likewise.
2835         * sysdeps/ia64/fpu/e_sinhl.S: Likewise.
2836         * sysdeps/ia64/fpu/e_sqrt.S: Likewise.
2837         * sysdeps/ia64/fpu/e_sqrtf.S: Likewise.
2838         * sysdeps/ia64/fpu/e_sqrtl.S: Likewise.
2839         * sysdeps/ia64/fpu/libm_atan2_req.S: Likewise.
2840         * sysdeps/ia64/fpu/libm_error.c: Likewise.
2841         * sysdeps/ia64/fpu/libm_frexp4.S: Likewise.
2842         * sysdeps/ia64/fpu/libm_frexp4f.S: Likewise.
2843         * sysdeps/ia64/fpu/s_frexpl.c: Likewise.
2844         * sysdeps/ia64/fpu/s_ilogb.S: Likewise.
2845         * sysdeps/ia64/fpu/s_ilogbf.S: Likewise.
2846         * sysdeps/ia64/fpu/s_ilogbl.S: Likewise.
2847         * sysdeps/ia64/fpu/s_ldexp.S: Likewise.
2848         * sysdeps/ia64/fpu/s_ldexpf.S: Likewise.
2849         * sysdeps/ia64/fpu/s_ldexpl.S: Likewise.
2850         * sysdeps/ia64/fpu/s_log1p.S: Likewise.
2851         * sysdeps/ia64/fpu/s_log1pf.S: Likewise.
2852         * sysdeps/ia64/fpu/s_log1pl.S: Likewise.
2853         * sysdeps/ia64/fpu/s_logb.S: Likewise.
2854         * sysdeps/ia64/fpu/s_logbf.S: Likewise.
2855         * sysdeps/ia64/fpu/s_logbl.S: Likewise.
2856         * sysdeps/ia64/fpu/s_modf.S: Likewise.
2857         * sysdeps/ia64/fpu/s_modff.S: Likewise.
2858         * sysdeps/ia64/fpu/s_modfl.S: Likewise.
2859         * sysdeps/ia64/fpu/s_nearbyint.S: Likewise.
2860         * sysdeps/ia64/fpu/s_nearbyintf.S: Likewise.
2861         * sysdeps/ia64/fpu/s_nearbyintl.S: Likewise.
2862         * sysdeps/ia64/fpu/s_rint.S: Likewise.
2863         * sysdeps/ia64/fpu/s_rintf.S: Likewise.
2864         * sysdeps/ia64/fpu/s_rintl.S: Likewise.
2865         * sysdeps/ia64/fpu/s_round.S: Likewise.
2866         * sysdeps/ia64/fpu/s_roundf.S: Likewise.
2867         * sysdeps/ia64/fpu/s_roundl.S: Likewise.
2868         * sysdeps/ia64/fpu/s_scalbn.S: Likewise.
2869         * sysdeps/ia64/fpu/s_scalbnf.S: Likewise.
2870         * sysdeps/ia64/fpu/s_scalbnl.S: Likewise.
2871         * sysdeps/ia64/fpu/s_significand.S: Likewise.
2872         * sysdeps/ia64/fpu/s_significandf.S: Likewise.
2873         * sysdeps/ia64/fpu/s_significandl.S: Likewise.
2874         * sysdeps/ia64/fpu/s_tan.S: Likewise.
2875         * sysdeps/ia64/fpu/s_tanf.S: Likewise.
2876         * sysdeps/ia64/fpu/s_tanl.S: Likewise.
2877         * sysdeps/ia64/fpu/s_trunc.S: Likewise.
2878         * sysdeps/ia64/fpu/s_truncf.S: Likewise.
2879         * sysdeps/ia64/fpu/s_truncl.S: Likewise.
2880         * sysdeps/ieee754/dbl-64/doasin.c: Changed copyright notice to
2881         reflect IBM donation of math library to FSF
2882         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
2883         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
2884         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
2885         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
2886         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
2887         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
2888         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
2889         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
2890         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
2891         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
2892         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
2893         * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
2894         * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
2895         * sysdeps/ieee754/dbl-64/mplog.c: Likewise.
2896         * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
2897         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
2898         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
2899         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
2900         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
2901         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
2902         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
2903         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
2904         * sysdeps/gnu/netinet/udp.h: Added BSD copying permission notice
2905         * sysdeps/vax/__longjmp.c: Likewise.
2906         * sysdeps/vax/setjmp.c: Likewise.
2907         * libio/filedoalloc.c: Fixed BSD copying permission notice to
2908         remove advertising clause
2909         * sysdeps/vax/htonl.s: Likewise.
2910         * sysdeps/vax/htons.s: Likewise.
2911         * libio/wfiledoalloc.c: Likewise.
2912         * stdlib/random.c: Likewise.
2913         * stdlib/random_r.c: Likewise.
2914         * sysdeps/mach/sys/reboot.h: Likewise.
2915         * inet/getnameinfo.c: Deleted advertising clause from Inner Net License
2916         * sysdeps/posix/getaddrinfo.c: Likewise.
2917         * sunrpc/des_impl.c: Updated license permission notice to Lesser
2918         GPL and corrected pointer to point to the correct license.
2920 2002-07-04  Andreas Jaeger  <aj@suse.de>
2922         * scripts/config.guess: New upstream version.
2923         * scripts/config.sub: Likewise.
2925 2002-07-02  Andreas Schwab  <schwab@suse.de>
2927         * resolv/nss_dns/dns-network.c (getanswer_r): Reduce linebuflen
2928         in parallel to bumping up the buffer pointer.
2930 2002-07-01  Jakub Jelinek  <jakub@redhat.com>
2932         * math/libm-test.inc (acos_test): Add missing L suffix for
2933         expected result.
2934         (cpow_test): Likewise.
2935         * sysdeps/i386/fpu/libm-test-ulps: Adjust errors for cpow, remove
2936         error for acos (0.0625).
2938 2002-06-30  Ulrich Drepper  <drepper@redhat.com>
2940         * locale/iso-639.def: Add entry for Ganda.
2941         * locale/programs/ld-address.c (DEFINE_LANGUAGE_CODE3): New
2942         definition.
2943         (address_finish): Handle entries with two letter ISO 639 code.
2945         * iconvdata/Makefile: Recreate gconv-modules.cache file in target
2946         directory if it existed before.
2947         * iconv/iconvconfig.c: Implement --prefix option.
2949         * math/libm-test.inc (cexp_test): Add missing L suffix for
2950         expected result.  Reported by Stephen L Moshier <steve@moshier.net>.
2951         * sysdeps/i386/fpu/libm-test-ulps: Adjust error for cexp (0.75 +
2952         1.25 i).
2954 2002-05-29  H.J. Lu  <hjl@gnu.org>
2956         * elf/dl-error.c (_dl_signal_cerror): Report error if ld.so debug
2957         is turned on.
2959 2002-05-28  H.J. Lu  <hjl@gnu.org>
2961         * elf/dl-deps.c (_dl_map_object_deps): Don't add objects which
2962         are not dlopened on the dependency list of a dlopened object.
2964 2002-06-30  Ulrich Drepper  <drepper@redhat.com>
2966         * elf/dl-lookup.c (add_dependency): It is not necessary to add
2967         dependencies if they are created between objects which are created
2968         while processing RTLD_NOW for objects loaded as part of the same
2969         dlopen call.
2971 2002-06-14  H.J. Lu  <hjl@gnu.org>
2973         * elf/Makefile (tests): Add circleload1.
2974         (modules-names): Add circlemod1, circlemod2, circlemod3,
2975         circlemod1a, circlemod2a and circlemod3a.
2976         ($(objpfx)circleload1): New target.
2977         ($(objpfx)circleload1.out): Likewise.
2978         ($(objpfx)circlemod1.so): Likewise.
2979         ($(objpfx)circlemod2.so): Likewise.
2980         ($(objpfx)circlemod1a.so): Likewise.
2981         ($(objpfx)circlemod2a.so): Likewise.
2982         * elf/circleload1.c: New file.
2983         * elf/circlemod1.c: New file.
2984         * elf/circlemod1a.c: New file.
2985         * elf/circlemod2.c: New file.
2986         * elf/circlemod2a.c: New file.
2987         * elf/circlemod3.c: New file.
2988         * elf/circlemod3a.c: New file.
2990 2002-06-18  Amos Waterland  <apw@us.ibm.com>
2992         * sysdeps/pthread/aio_cancel.c (aio_cancel): Add check for invalid
2993         file descriptor.
2994         * sysdeps/pthread/aio_fsync.c (aio_fsync): Add check for invalid fd;
2995         add check for fd not open for writing.
2997         * sysdeps/pthread/aio_suspend.c (aio_suspend): Add check for
2998         completed element(s) and do not suspend thread if so.  Patch
2999         heavily modified by drepper.
3001         * rt/tst-aio7.c: New file.  Regression test for problems which the
3002         above three changes fix.
3003         * rt/Makefile (tests): Add tst-aio7.
3005 2002-06-29  Ulrich Drepper  <drepper@redhat.com>
3007         * rt/tst-aio6.c: Fix comment.
3009         * catgets/gencat.c (read_input_file): Handle more than one slash
3010         at end of line correctly [PR libc/3926].
3011         Based on a patch by Steven Kim <steven.kim@peregrine.com>.
3013         * catgets/sample.SJIS: Add test case for above bug.
3014         * catgets/test-gencat.c: Adjust test code.
3015         * catgets/test-gencat.sh: Adjust expected results.
3017         * elf/do-rel.h (elf_dynamic_do_rel): Avoid overflow in computation
3018         to skip relative relocations.
3019         Patch by Geoff Keating <geoffk@redhat.com>.
3021 2002-05-26  Bruno Haible  <bruno@clisp.org>
3023         * iconv/loop.c (STANDARD_FROM_LOOP_ERR_HANDLER): New macro.
3024         (STANDARD_TO_LOOP_ERR_HANDLER): Renamed from STANDARD_ERR_HANDLER.
3025         All callers changed.
3026         * iconv/gconv_simple.c (ascii_internal_loop): For error handling use
3027         STANDARD_FROM_LOOP_ERR_HANDLER.
3028         (utf8_internal_loop): Likewise.
3029         (ucs2_internal_loop): Likewise.
3030         (internal_ucs2_loop): Perform error handling like in
3031         STANDARD_FROM_LOOP_ERR_HANDLER.
3032         * iconvdata/unicode.c (BODY for TO_LOOP): Perform error handling like
3033         in STANDARD_FROM_LOOP_ERR_HANDLER.
3034         (BODY for FROM_LOOP): Use STANDARD_FROM_LOOP_ERR_HANDLER for error
3035         handling.
3036         * iconvdata/utf-16.c (BODY for TO_LOOP): Perform error handling like
3037         in STANDARD_FROM_LOOP_ERR_HANDLER.
3038         (BODY for FROM_LOOP): Use STANDARD_FROM_LOOP_ERR_HANDLER for error
3039         handling.
3040         * iconvdata/utf-32.c (BODY for TO_LOOP): Perform error handling like
3041         in STANDARD_FROM_LOOP_ERR_HANDLER.
3042         (BODY for FROM_LOOP): Use STANDARD_FROM_LOOP_ERR_HANDLER for error
3043         handling.
3044         * iconvdata/big5.c (BODY for FROM_LOOP): For error handling use
3045         STANDARD_FROM_LOOP_ERR_HANDLER.
3046         * iconvdata/iso-2022-jp.c (BODY for FROM_LOOP): Likewise.
3047         * iconvdata/8bit-gap.c (BODY for FROM_LOOP): Likewise.
3048         * iconvdata/8bit-generic.c (BODY for FROM_LOOP): Likewise.
3049         * iconvdata/ansi_x3.110.c (BODY for FROM_LOOP): Likewise.
3050         * iconvdata/armscii-8.c (BODY for FROM_LOOP): Likewise.
3051         * iconvdata/cp1255.c (BODY for FROM_LOOP): Likewise.
3052         * iconvdata/cp1258.c (BODY for FROM_LOOP): Likewise.
3053         * iconvdata/euc-cn.c (BODY for FROM_LOOP): Likewise.
3054         * iconvdata/euc-jisx0213.c (BODY for FROM_LOOP): Likewise.
3055         * iconvdata/euc-jp.c (BODY for FROM_LOOP): Likewise.
3056         * iconvdata/euc-kr.c (BODY for FROM_LOOP): Likewise.
3057         * iconvdata/euc-tw.c (BODY for FROM_LOOP): Likewise.
3058         * iconvdata/big5hkscs.c (BODY for FROM_LOOP): Likewise.
3059         * iconvdata/gb18030.c (BODY for FROM_LOOP): Likewise.
3060         * iconvdata/gbk.c (BODY for FROM_LOOP): Likewise.
3061         * iconvdata/iso-2022-cn-ext.c (BODY for FROM_LOOP): Likewise.
3062         * iconvdata/iso-2022-cn.c (BODY for FROM_LOOP): Likewise.
3063         * iconvdata/iso-2022-jp-3.c (BODY for FROM_LOOP): Likewise.
3064         * iconvdata/iso-2022-kr.c (BODY for FROM_LOOP): Likewise.
3065         * iconvdata/iso646.c (BODY for FROM_LOOP): Likewise.
3066         * iconvdata/iso_6937-2.c (BODY for FROM_LOOP): Likewise.
3067         * iconvdata/iso_6937.c (BODY for FROM_LOOP): Likewise.
3068         * iconvdata/johab.c (BODY for FROM_LOOP): Likewise.
3069         * iconvdata/shift_jisx0213.c (BODY for FROM_LOOP): Likewise.
3070         * iconvdata/sjis.c (BODY for FROM_LOOP): Likewise.
3071         * iconvdata/t.61.c (BODY for FROM_LOOP): Likewise.
3072         * iconvdata/uhc.c (BODY for FROM_LOOP): Likewise.
3073         * iconvdata/utf-7.c (BODY for FROM_LOOP): Likewise.
3074         * iconvdata/gbbig5.c (BODY for FROM_LOOP): Likewise.  When ignoring
3075         an error, still set result = __GCONV_ILLEGAL_INPUT.
3076         (BODY for TO_LOOP): Likewise.
3077         * iconvdata/ibm930.c (BODY for FROM_LOOP): For error handling use
3078         STANDARD_FROM_LOOP_ERR_HANDLER.
3079         (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
3080         * iconvdata/ibm932.c: Include <dlfcn.h> and <stdint.h>.
3081         (BODY for FROM_LOOP): Use STANDARD_FROM_LOOP_ERR_HANDLER for error
3082         handling.
3083         (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
3084         * iconvdata/ibm933.c (BODY for FROM_LOOP): For error handling use
3085         STANDARD_FROM_LOOP_ERR_HANDLER.
3086         (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
3087         * iconvdata/ibm935.c (BODY for FROM_LOOP): For error handling use
3088         STANDARD_FROM_LOOP_ERR_HANDLER.
3089         (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
3090         * iconvdata/ibm937.c (BODY for FROM_LOOP): For error handling use
3091         STANDARD_FROM_LOOP_ERR_HANDLER.
3092         (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
3093         * iconvdata/ibm939.c (BODY for FROM_LOOP): For error handling use
3094         STANDARD_FROM_LOOP_ERR_HANDLER.
3095         (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
3096         * iconvdata/ibm943.c: Include <dlfcn.h> and <stdint.h>.
3097         (BODY for FROM_LOOP): Use STANDARD_FROM_LOOP_ERR_HANDLER for error
3098         handling.
3099         (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
3100         * iconvdata/gbgbk.c (BODY for FROM_LOOP): Update.
3101         * iconvdata/iso8859-1.c (BODY for TO_LOOP): Update.
3102         * iconvdata/tcvn5712-1.c (BODY for TO_LOOP): Update.
3104 2002-06-28  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
3106         * sysdeps/sh/dl-machine.h (elf_machine_load_address): Use local
3107         labels in assembler instructions.
3109 2002-06-25  Ulrich Drepper  <drepper@redhat.com>
3111         * libio/fileops.c (_IO_file_xsgetn_mmap): Always set EOF flag if
3112         not enough content is available.
3113         * libio/tst-eof.c: New file.
3114         * libio/Makefile (tests): Add tst-eof.
3116         * libio/fileops.c (_IO_file_underflow_mmap): Read a single byte to
3117         update atime.
3118         * libio/tst-atime.c: New file.
3119         * libio/Makefile (tests): Add tst-atime.
3121         * argp/argp-fmtstream.c (__argp_fmtstream_update): Avoid crash in
3122         handling of overly long words.
3124 2002-06-25  Andreas Jaeger  <aj@suse.de>
3126         * sysdeps/x86-64/dl-machine.h (elf_machine_load_address): Rewrite
3127         to not use 32-bit pc relative relocations.
3128         (elf_machine_dynamic): Likewise.
3130 2002-06-21  Ulrich Drepper  <drepper@redhat.com>
3132         * sysdeps/unix/sysv/linux/getdents.c [__ASSUME_GETDENTS64_SYSCALL]
3133         (__GETDENTS): Check for failed getdents64 syscall.
3134         * dirent/Makefile (tests): Add bug-readdir1.
3135         * dirent/bug-readdir1.c: New file.
3137 2002-06-17  Jakub Jelinek  <jakub@redhat.com>
3139         * elf/dl-lookup.c (_dl_debug_bindings): Use type_class 4 for TLS
3140         lookups.
3141         * elf/rtld.c (dl_main): Move TLS setup code before LD_TRACE_PRELINKING
3142         code.  Print TLS modid and offset for modules containing PT_TLS
3143         segments.
3145 2002-06-09  Jakub Jelinek  <jakub@redhat.com>
3147         * sysdeps/unix/sysv/linux/i386/dl-brk.c: Move...
3148         * sysdeps/unix/sysv/linux/dl-brk.c: ...here.
3149         * sysdeps/unix/sysv/linux/i386/dl-sbrk.c: Move...
3150         * sysdeps/unix/sysv/linux/dl-sbrk.c: ...here.
3152 2002-06-07  Jakub Jelinek  <jakub@redhat.com>
3154         * nss/getXXbyYY_r.c (NEW, NEW1): Define.
3155         (NEW (REENTRANT_NAME)): Strong alias to INTERNAL (REENTRANT_NAME).
3156         (REENTRANT_NAME@@GLIBC_2.1.2): Use NEW (REENTRANT_NAME).
3157         * nss/getXXent_r.c (NEW, NEW1): Define.
3158         (NEW (REENTRANT_GETNAME)): Strong alias to
3159         INTERNAL (REENTRANT_GETNAME).
3160         (REENTRANT_GETNAME@@GLIBC_2.1.2): Use NEW (REENTRANT_GETNAME).
3162 2002-06-21  Ulrich Drepper  <drepper@redhat.com>
3164         * libio/fileops.c (_IO_file_setbuf_mmap): New function.
3165         (_IO_file_jumps_mmap): Use it.
3166         * libio/iosetvbuf.c: Don't call _IO_WSETBUF.
3167         * libio/libioP.h: Remove _IO_wdefault_setbuf and
3168         _IO_wdefault_setbuf_internal prorotypes.  Add _IO_file_setbuf_mmap
3169         prototype.
3170         * libio/wfileops.c (_IO_wfile_setbuf): Removed.
3171         (_IO_wfile_jumps_mmap): Don't use it anymore.
3172         * libio/wgenops.c (_IO_wdefault_setbuf): Removed.
3173         * libio/memstream.c (_IO_wmem_jumps): Use _IO_default_setbuf not
3174         _IO_wdefault_setbuf.
3175         * libio/vswprintf.c (_IO_wstrn_jumps): Likewise.
3176         * libio/wstrops.c (_IO_wstr_jumps): Likewise.
3177         * stdio-common/vfprintf.c (_IO_helper_jumps): Likewise.
3179 2002-06-05  Jakub Jelinek  <jakub@redhat.com>
3181         * libio/Makefile (tests): Add tst-mmap-setvbuf.
3182         * libio/tst-mmap-setvbuf.c: New test.
3184 2002-06-21  Andreas Jaeger  <aj@suse.de>
3186         * sysdeps/i386/fpu/libm-test-ulps: Add some ulps from my P3.
3188 2002-06-18  Jakub Jelinek  <jakub@redhat.com>
3190         * include/unistd.h (__fork_internal): Remove.
3191         (__fork): Don't define to __fork_internal.
3192         * sysdeps/mach/hurd/fork.c (__fork): Remove INTDEF.
3193         * sysdeps/unix/sysv/aix/fork.c (__fork): Likewise.
3194         * sysdeps/unix/sysv/linux/ia64/fork.S (__fork_internal): Remove alias.
3195         * sysdeps/unix/sysv/linux/sparc/fork.S (__fork_internal): Likewise.
3196         * sysdeps/unix/sysv/linux/syscalls.list (__fork_internal): Likewise.
3198 2002-06-20  Ulrich Drepper  <drepper@redhat.com>
3200         * po/hr.po: New file.
3202 2002-06-11  Wolfram Gloger  <wg@malloc.de>
3204         * malloc/malloc.c: Fix error path when new_heap() returns NULL.
3205         Reported by Michael Meissner <meissner@redhat.com>.
3207 2002-06-20  Ulrich Drepper  <drepper@redhat.com>
3209         * sysdeps/unix/sysv/linux/ia64/getcontext.S: Fix typo.
3210         Patch by Hans Boehm <hans_boehm@hp.com>.
3212 2002-06-20  Andreas Jaeger  <aj@suse.de>
3214         * math/libm-test.inc: Use exact values as input parameters,
3215         compute output parameters with 36 digits for 128-bit long doubles.
3216         * sysdeps/i386/fpu/libm-test-ulps: Regenerated.
3217         * sysdeps/x86-64/fpu/libm-test-ulps: Regenerated.
3218         * sysdeps/ia64/fpu/libm-test-ulps: Regenerated.
3220 2002-06-13  Stephen L Moshier  <steve@moshier.net>
3222         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Fix cases in which
3223         argument or result is subnormal.
3225 2002-06-19  Ulrich Drepper  <drepper@redhat.com>
3227         * sysdeps/i386/fpu/s_remquo.S: Fix three mistakes in computing the
3228         quotient.
3229         * sysdeps/i386/fpu/s_remquof.S: Likewise.
3230         * sysdeps/i386/fpu/s_remquol.S: Likewise.
3232         * sysdeps/hppa/dl-machine.h: Don't use multi-line string literals.
3234 2002-06-17  David Mosberger  <davidm@hpl.hp.com>
3236         * sysdeps/unix/sysv/linux/ia64/sys/ucontext.h (uc_sigmask): Fix
3237         typo: corresponding sigcontext field is called sc_mask, not sc_sigmask.
3238         Reported by Peter A. Buhr.
3240 2002-06-15  Roland McGrath  <roland@frob.com>
3242         * sysdeps/mach/hurd/mmap.c (__mmap): Add a dead case that quiets a
3243         warning.
3245         * sysdeps/mach/hurd/getcwd.c
3246         (_hurd_canonicalize_directory_name_internal): unsigned int -> size_t
3248         * sysdeps/unix/sysv/linux/bits/ustat.h: Moved to ...
3249         * sysdeps/generic/bits/ustat.h: ... here (was almost identical).
3251         * sysdeps/alpha/divrem.h: Use local label instead of global one for
3252         jump to local subroutine.
3254 2002-06-14  Roland McGrath  <roland@frob.com>
3256         * sysdeps/mach/hurd/i386/Makeconfig: File moved to ...
3257         * sysdeps/mach/hurd/Makeconfig: ... here.
3259 2002-06-13  Andreas Schwab  <schwab@suse.de>
3261         * sysdeps/m68k/fpu/s_finite.c: Remove INTDEF.
3262         * sysdeps/m68k/fpu/s_finitef.c: Likewise.
3263         * sysdeps/m68k/fpu/s_finitel.c: Likewise.
3265 2002-06-13  Roland McGrath  <roland@frob.com>
3267         * hurd/hurdstartup.h (_hurd_startup): int -> intptr_t in MAIN arg type.
3268         * hurd/hurdstartup.c (_hurd_startup): Likewise.
3269         Use intptr_t instead of int for argc in stack layout.
3270         * sysdeps/mach/hurd/alpha/init-first.c (init): Fix argument type.
3271         (_dl_init_first): Likewise.
3272         (_hurd_stack_setup): Likewise.
3273         (init1): Add a cast.
3274         * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start: go): Fix arg type.
3276         * sysdeps/mach/hurd/if_index.c (if_nameindex): Use size_t for AMOUNT
3277         argument to pfinet_siocgifconf RPC.
3279 2002-06-13  Andreas Schwab  <schwab@suse.de>
3281         * sysdeps/m68k/fpu/s_isinf.c (INTDEFX): Define to get correct
3282         expansion order.
3284 2002-06-12  Roland McGrath  <roland@frob.com>
3286         * sysdeps/generic/tmpfile.c [USE_IN_LIBIO] (tmpfile): Don't #define
3287         if already defined.
3288         [USE_IN_LIBIO]: Conditionalize versioned_symbol use on
3289         [GEN_THIS == __GT_FILE] so that tmpfile64.c's inclusion doesn't get it.
3291 2002-06-11  Roland McGrath  <roland@frob.com>
3293         * sysdeps/mach/hurd/xstat64.c: Conditionalize entire contents of the
3294         file on [!RTLD_STAT64].
3295         * sysdeps/mach/hurd/fxstat64.c: Likewise.
3297         * sysdeps/mach/hurd/tmpfile.c (tmpfile64): Define as alias of tmpfile.
3298         (__fdopen): Use INTUSE.
3299         * sysdeps/mach/hurd/tmpfile64.c: New file, empty placeholder.
3301         * stdio-common/tmpfile64.c: File removed.
3302         * sysdeps/generic/tmpfile64.c: New file.
3303         * sysdeps/generic/tmpfile.c (GEN_THIS): New macro, define to __GT_FILE
3304         if not already defined.
3305         (tmpfile): Use it in place of __GT_FILE.
3307         * include/unistd.h: Declare __chown_internal.
3309         * sysdeps/mach/hurd/sendfile64.c (sendfile64): Do real work here.
3310         * sysdeps/mach/hurd/sendfile.c (sendfile): Call that.
3312 2002-06-09  Roland McGrath  <roland@frob.com>
3314         Update to new Hurd RPC interfaces supporting 64-bit file sizes.
3315         * sysdeps/mach/hurd/configure.in: Check for <hurd/version.h> with
3316         value of HURD_INTERFACE_VERSION >= 20020609.
3317         * sysdeps/mach/hurd/configure: Regenerated.
3318         * shlib-versions (.*-.*-gnu-gnu.*): Set libhurduser=0.3.
3319         * sysdeps/mach/hurd/xstatconv.c (xstat64_conv): Rewritten to
3320         convert a struct stat64 into a struct stat and return 0 or -1
3321         with errno set to EOVERFLOW.
3322         * sysdeps/mach/hurd/statfsconv.c (statfs64_conv): Likewise
3323         for struct statfs64 to struct statfs.
3324         * sysdeps/mach/hurd/xstat.c (__xstat): Use converter and call ...
3325         * sysdeps/mach/hurd/xstat64.c (__xstat64): ... this, real work here.
3326         * sysdeps/mach/hurd/fxstat.c (__fxstat): Likewise.
3327         * sysdeps/mach/hurd/fxstat64.c (__fxstat64): Likewise.
3328         * sysdeps/mach/hurd/lxstat.c (__lxstat): Likewise.
3329         * sysdeps/mach/hurd/lxstat64.c (__lxstat64): Likewise.
3330         * sysdeps/mach/hurd/statfs.c (__statfs): Likewise.
3331         * sysdeps/mach/hurd/statfs64.c (__statfs64): Likewise.
3332         * sysdeps/mach/hurd/fstatfs.c (__fstatfs): Likewise.
3333         * sysdeps/mach/hurd/fstatfs64.c (__fstatfs64): Likewise.
3334         * sysdeps/mach/hurd/pwrite64.c (__libc_pwrite64): Do real work here.
3335         * sysdeps/mach/hurd/pwrite.c (__libc_pwrite): Call that.
3336         * sysdeps/mach/hurd/pread64.c (__libc_pread64): Do real work here.
3337         * sysdeps/mach/hurd/pread.c (__libc_pread): Call that.
3338         * sysdeps/mach/hurd/lseek64.c (__libc_lseek64): Do real work here.
3339         * sysdeps/mach/hurd/lseek.c (__libc_lseek): Call that.
3340         * sysdeps/mach/hurd/readdir64.c (__readdir64): Do real work here.
3341         * sysdeps/mach/hurd/readdir.c (__readdir): Call that.
3342         * sysdeps/mach/hurd/readdir64_r.c (__readdir64_r): Do real work here.
3343         * sysdeps/mach/hurd/readdir_r.c (__readdir64_r): Call that.
3344         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry):
3345         Use struct stat64 for io_stat argument.
3346         * sysdeps/mach/hurd/readlink.c (__readlink): Likewise.
3347         * hurd/fopenport.c (seekio): Remove EOVERFLOW check, pass POS directly
3348         to io_seek.
3349         * hurd/fd-read.c (_hurd_fd_read): Use loff_t for OFFSET argument.
3350         * hurd/fd-write.c (_hurd_fd_write): Likewise.
3351         * hurd/hurd/fd.h: Update decls.
3352         * sysdeps/mach/hurd/getcwd.c
3353         (_hurd_canonicalize_directory_name_internal): Use ino64_t
3354         and struct dirent64.
3355         * sysdeps/mach/hurd/dl-sysdep.c (open_file): Use struct stat64.
3356         (__xstat): Renamed to __xstat64, use struct stat64 for argument.
3357         (__fxstat): Renamed to __fxstat64, use struct stat64 for argument.
3358         (__lseek): Renamed to __libc_lseek64, use off64_t for argument.
3360 2002-06-08  Roland McGrath  <roland@frob.com>
3362         * sysdeps/mach/hurd/dirstream.h (struct __dirstream): Use size_t
3363         instead of unsigned long int for __allocation and __size members.
3365 2002-06-09  Jakub Jelinek  <jakub@redhat.com>
3367         * sysdeps/unix/sysv/linux/i386/dl-brk.c: Move...
3368         * sysdeps/unix/sysv/linux/dl-brk.c: ...here.
3369         * sysdeps/unix/sysv/linux/i386/dl-sbrk.c: Move...
3370         * sysdeps/unix/sysv/linux/dl-sbrk.c: ...here.
3372 2002-06-07  Roland McGrath  <roland@frob.com>
3374         * sysdeps/mach/hurd/bits/environments.h: File removed.
3376 2002-06-07  Jakub Jelinek  <jakub@redhat.com>
3378         * sysdeps/unix/sysv/linux/alpha/sendfile64.c: New file.
3379         * sysdeps/unix/sysv/linux/ia64/sendfile64.c: New file.
3380         * sysdeps/unix/sysv/linux/sparc/sparc64/sendfile64.c: New file.
3381         * sysdeps/unix/sysv/linux/x86_64/sendfile64.c: New file.
3382         * sysdeps/unix/sysv/linux/syscalls.list (sendfile): Remove EXTRA.
3383         (sendfile64): Likewise.
3384         * sysdeps/unix/sysv/linux/alpha/syscalls.list (sendfile): Likewise.
3385         * sysdeps/unix/sysv/linux/ia64/syscalls.list (sendfile): Likewise.
3386         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list (sendfile):
3387         Likewise.
3388         * sysdeps/unix/sysv/linux/x86_64/syscalls.list (sendfile): Likewise.
3390         * include/sys/stat.h (__fxstat64, __lxstat64): Only define if not
3391         already defined.
3393 2002-06-04  Bruno Haible  <bruno@clisp.org>
3395         * sysdeps/cris/stackinfo.h: New file.
3397         * sysdeps/hppa/dl-machine.h (elf_machine_rela): Cast reloc_addr
3398         to an integer type before performing bit operations on it.
3400 2002-06-05  Roland McGrath  <roland@frob.com>
3402         * sysdeps/generic/sendfile.c: Include <errno.h>.
3403         * sysdeps/generic/sendfile64.c: Likewise.
3405         * io/Makefile (routines): Add sendfile and sendfile64.
3406         (headers): Add sys/sendfile.h to the list.
3407         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Don't add it here.
3408         * sysdeps/unix/sysv/linux/sys/sendfile.h: Moved to ...
3409         * io/sys/sendfile.h: ... here.
3410         * sysdeps/generic/sendfile.c: New file.
3411         * sysdeps/generic/sendfile64.c: New file.
3413         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.1, GLIBC_2.3):
3414         Move sendfile, sendfile64 to ...
3415         * io/Versions (GLIBC_2.1, GLIBC_2.3): ... here.
3416         * sysdeps/mach/hurd/sendfile.c: New file.
3417         * sysdeps/mach/hurd/sendfile64.c: New file.
3419         * sysdeps/mach/nanosleep.c: New file.
3421 2002-06-04  Roland McGrath  <roland@frob.com>
3423         * sysdeps/alpha/elf/configure.in: New file.  Check for TLS support.
3424         * sysdeps/alpha/elf/configure: New file (generated).
3426 2002-06-02  Roland McGrath  <roland@frob.com>
3428         * include/link.h: Include <tls.h> to make sure USE_TLS is defined.
3430 2002-06-01  Roland McGrath  <roland@frob.com>
3432         * sysdeps/mach/hurd/alpha/init-first.c: New file, modified from
3433         i386/init-first.c by Andrew M. Miklic <miklic@attglobal.net>.
3435 2002-05-19  Ulrich Drepper  <drepper@redhat.com>
3437         * resolv/resolv.h (struct __res_state): Remove unused nstimes.
3438         Add nsmap.
3439         * resolv/res_init.c (__res_vinit): Initialize nsmap array.
3440         Remove nstimes setting.
3441         (res_nclose): Check all MAXNS nameservers with non-NULL nsaddrs.
3442         * resolv/res_send.c (res_nsend): Don't close unconditionally if
3443         there is mix of IPv6 and IPv4 nameservers.
3444         Use nsmap array to find free slots and preserve nameserver ordering.
3445         Fix RES_ROTATE.
3447 2002-05-30  Ulrich Drepper  <drepper@redhat.com>
3449         * sysdeps/unix/sysv/linux/sys/sendfile.h: It is now possible to
3450         use this header with LFS.
3452         * po/sk.po: Update from translation team.
3454 2002-05-28  Andreas Schwab  <schwab@suse.de>
3456         * sysdeps/generic/readelflib.c (process_elf_file): Give correct
3457         message when finding object of wrong class.
3459 2002-05-28  Jakub Jelinek  <jakub@redhat.com>
3461         * sysdeps/wordsize-32/divdi3.c (__moddi3): Fix pasto.
3462         Patch by <radu@netsoft.ro>.
3464 2002-05-30  Ulrich Drepper  <drepper@redhat.com>
3466         * sysdeps/unix/sysv/linux/Makefile [$(subdir)==misc] (sysdep_routines):
3467         Add readahead.
3468         * sysdeps/unix/sysv/linux/readahead.c: New file.
3469         * sysdeps/unix/sysv/linux/syscalls.list: Add sendfile64 syscall.
3470         * sysdeps/unix/sysv/linux/Versions: Export readahead and sendfile64.
3471         * sysdeps/unix/sysv/linux/alpha/syscalls.list: Add readahead syscall.
3472         Add sendfile64 alias to sendfile syscall.
3473         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
3474         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
3475         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
3476         * sysdeps/unix/sysv/linux/powerpc/syscalls.list: Add s_readahead
3477         syscall.
3479         * sysdeps/unix/sysv/linux/i386/sysdep.h: Use __i686.get_pc_thunk.XX
3480         special section for PIC register loading.
3481         * sysdeps/unix/sysv/linux/i386/i686/sysdep.h: Likewise.
3483         * config.h.in: Define HAVE_HIDDEN.
3484         * configure.in: Also define HAVE_HIDDEN if HAVE_PROTECTED is defined.
3486         * elf/elf.h: Correct Alpha TLS relocations according to last spec.
3488 2002-05-28  Roland McGrath  <roland@frob.com>
3490         * sysdeps/mach/alpha/setfpucw.c: New file.
3492 2002-05-26  Roland McGrath  <roland@frob.com>
3494         * sysdeps/mach/hurd/ioctl.c (__ioctl): Don't use sizeof in _IOTS.
3495         Use integer_t instead of int for IOC_VOID case.
3497 2002-05-27  Alexandre Oliva  <aoliva@redhat.com>
3499         * configure.in (DO_STATIC_NSS): Define if --disable-shared.
3501 2002-05-26  Bruno Haible  <bruno@clisp.org>
3503         * iconvdata/iso-2022-jp.c (BODY for TO_LOOP): Avoid running off the
3504         end of the ISO-8859-7 from idx table.
3506 2002-05-27  Ulrich Drepper  <drepper@redhat.com>
3508         * manual/lang.texi: Fix FLT_EPSILON description [PR libc/3649].
3510 2002-05-24  David S. Miller  <davem@redhat.com>
3512         * string/bits/string2.h (memset): Do not try to optimize when
3513         not _STRING_ARCH_unaligned if GCC will do the right thing.
3515 2002-05-21  Isamu Hasegawa  <isamu@yamato.ibm.com>
3517         * posix/regex.c: Define `inline' as a macro into nothing for the
3518         compilers which lack the keyword.
3519         * posix/regex.h: (RE_SYNTAX_GNU_AWK): Remove RE_CONTEXT_INVALID_OPS
3520         for the compatibility of gawk.
3521         * posix/regcomp.c: Add fake implementation of isblank() for the
3522         environments which lack the function.
3523         Don't use free_charset() in case of non-i18n envs.
3524         (build_range_exp): Don't use i18n related code in case of non-i18n
3525         envs.
3526         (build_collating_symbol): Likewise.
3527         (build_equiv_class): Likewise.
3528         (build_charclass): Likewise.
3529         (re_compile_fastmap_iter): Likewise.
3530         (parse_bracket_exp): Likewise.
3531         (build_word_op): Likewise.
3532         (regfree): Don't use free_charset() in case of non-i18n envs.
3533         * posix/regex_internal.h: Remove COMPLEX_BRACKET from
3534         re_token_type_t in case of non-i18n envs.
3535         Don't define re_charset_t in case of non-i18n envs.
3536         Change the type of wcs of re_string_t from wchar_t to wint_t,
3537         since we store also WEOF.
3538         * posix/regex_internal.c: (re_string_realloc_buffers): Change
3539         the type of wcs of re_string_t from wchar_t to wint_t.
3540         (re_string_reconstruct): Likewise.
3541         (create_ci_newstate): Don't use i18n related code in case of
3542         non-i18n envs.
3543         (create_cd_newstate): Likewise.
3545 2002-05-24  Ulrich Drepper  <drepper@redhat.com>
3547         * iconv/loop.c: Fix typo.
3549 2002-05-23  Jakub Jelinek  <jakub@redhat.com>
3551         * inet/ether_line.c (ether_line): Fix a typo causing only
3552         lower 4 bits of each ethernet address byte being assigned.
3553         Don't modify what line points to.
3554         * inet/tst-ether_aton.c (main): Add ether_line tests.
3556 2002-05-23  Marcus Brinkmann  <marcus@gnu.org>
3558         * manual/filesys.texi: Don't make readlink example leak memory
3559         when readlink fails.
3561 2002-05-20  Ulrich Drepper  <drepper@redhat.com>
3563         * iconv/loop.c: Fix condition for defining unaligned loop.  Add
3564         some more security checks.
3566 2002-05-17  David S. Miller  <davem@redhat.com>
3568         * sysdeps/unix/sysv/linux/sparc/fork.S: Define _internal aliases.
3570 2002-05-16  David S. Miller  <davem@redhat.com>
3572         * sysdeps/sparc/sparc32/dl-machine.h (LOAD_PIC_REG): Define.
3573         (elf_machine_dynamic): Use it to force PIC register to be loaded.
3574         (elf_machine_load_address): Likewise.
3575         * sysdeps/sparc/sparc64/dl-machine.h: Mirror sparc32 changes.
3577         * sysdeps/sparc/sparc64/strncmp.S: When second argument pointer
3578         is unaligned, do not forget to fully initialize %g1 magic value.
3580         * sysdeps/unix/sysv/linux/sparc/sys/procfs.h: Fix 64-bit elf
3581         register definitions and provide 32-bit variants of structures
3582         during 64-bit builds.
3584         * soft-fp/op-1.h (_FP_FRAC_CLEAR_OVERP_1): Define.
3585         * soft-fp/op-2.h (_FP_FRAC_CLEAR_OVERP_2): Define.
3586         * soft-fp/op-4.h (_FP_FRAC_CLEAR_OVERP_4): Define.
3587         * soft-fp/op-common.h (_FP_PACK_CANONICAL): After rounding, if
3588         _FP_FRAC_OVERP_X is set, use _FP_FRAC_CLEAR_OVERP_X to clear it.
3589         (_FP_FROM_INT): Perform right shifts on unsigned integer type.
3590         Do not clear implicit one bit here, it must be done post-rounding.
3591         Only pad to the left using left shift if value uses less than the
3592         available fractional bits.
3594 2002-05-20  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
3596         * sysdeps/powerpc/Makefile (sysdeps_routines): Use libgcc-compat
3597         instead of cmpdi2, shdi3, fixdfdi, fixsfdi in csu dir.
3598         (shared-only-routines): Likewise.
3599         * sysdeps/powerpc/libgcc-compat.c: New file.
3600         * sysdeps/wordsize-32/cmpdi2.c: Removed.
3601         * sysdeps/wordsize-32/fixdfdi.c: Removed.
3602         * sysdeps/wordsize-32/fixsfdi.c: Removed.
3603         * sysdeps/wordsize-32/shdi3.c: Removed.
3605 2002-05-16  Bruno Haible  <bruno@clisp.org>
3607         * MakeTAGS (libc.pot): Don't sort the output.
3608         * po/header.pot: Update to match xgettext 0.11 output.
3610 2002-05-16  Bruno Haible  <bruno@clisp.org>
3612         * MakeTAGS (subdirs): Remove duplicates.
3614 2002-05-19  Ulrich Drepper  <drepper@redhat.com>
3616         * sysdeps/unix/sysv/linux/errlist.c: Remove extra weak alias
3617         definiton of _old_sys_nerr.  Define _old_sys_errlist as strong
3618         alias.
3620 2002-05-19  Andreas Jaeger  <aj@suse.de>
3622         * sysdeps/unix/sysv/linux/configure.in: Warn against an
3623         installation in /usr/local.
3625 2002-05-16  Bruno Haible  <bruno@clisp.org>
3627         * sysdeps/unix/sysv/aix/bits/ioctl-types.h: Don't use multiline
3628         string as argument of #error.
3630 2002-05-15  Ulrich Drepper  <drepper@redhat.com>
3632         * stdlib/canonicalize.c (canonicalize): Rename to __realpath and
3633         don't define static.  Remove old __realpath function.  TC1 of
3634         POSIX 2001 will allow the second parameter to be NULL.
3635         * stdlib/test-canon.c: Comment out test for NULL as second
3636         parameter of realpath.
3638         * time/offtime.c (__offtime): Set errno if overflow is detected.
3640         * elf/Makefile (rtld-routines): Remove dl-brk and dl-sbrk.
3641         * sysdeps/unix/sysv/linux/Makefile (sysdep-rtld-routines): Add
3642         dl-brk and dl-sbrk.
3644         * sysdeps/sparc/fpu/bits/mathinline.h (fdim): Add __THROW.
3645         (fdimf): Likewise.
3647 2002-05-15  Roland McGrath  <roland@frob.com>
3649         * hurd/report-wait.c (_S_msg_report_wait): Use mach_msg_id_t for arg.
3651 2002-05-12  Bruno Haible  <bruno@clisp.org>
3653         * iconvdata/testdata/EUC-JISX0213: New file.
3654         * iconvdata/testdata/EUC-JISX0213..UTF8: New file.
3655         * iconvdata/testdata/SHIFT_JISX0213: New file.
3656         * iconvdata/testdata/SHIFT_JISX0213..UTF8: New file.
3657         * iconvdata/testdata/ISO-2022-JP-3: New file.
3658         * iconvdata/testdata/ISO-2022-JP-3..UTF8: New file.
3659         * iconvdata/TESTS: Add EUC-JISX0213, SHIFT_JISX0213, ISO-2022-JP-3.
3660         * iconvdata/run-iconv-test.sh: Skip the charmap test if the charmap
3661         contains comments indicating precomposed characters.
3663 2002-04-21  Bruno Haible  <bruno@clisp.org>
3665         * iconvdata/iso-2022-jp-3.c: New file.
3666         * iconvdata/gconv-modules (ISO-2022-JP-3): New module.
3667         * iconvdata/Makefile (modules): Add ISO-2022-JP-3.
3668         (LDFLAGS-ISO-2022-JP-3.so): New variable.
3669         (ISO-2022-JP-3.so): Depend on libJIS.so and libJISX0213.so.
3670         (distribute): Add iso-2022-jp-3.c.
3672 2002-05-12  Bruno Haible  <bruno@clisp.org>
3674         * iconvdata/tst-table-to.c (main): Restore handling of
3675         transliterations, broken by last patch.
3677 2002-05-12  Bruno Haible  <bruno@clisp.org>
3679         * iconvdata/TESTS: Add IBM922, IBM1124, IBM1129.
3681 2002-05-12  Bruno Haible  <bruno@clisp.org>
3683         * iconvdata/euc-jisx0213.c (BODY for FROM_LOOP): Don't advance inptr
3684         when there is not enough room in the output buffer.
3685         * iconvdata/shift_jisx0213.c (BODY for FROM_LOOP): Likewise.
3687 2002-04-20  Bruno Haible  <bruno@clisp.org>
3689         * iconv/skeleton.c ({FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO}): New
3690         macros.
3691         (RESET_INPUT_BUFFER): Use them instead of {MIN,MAX}_NEEDED_{FROM,TO}.
3692         Also make this macro work if FROM_DIRECTION evaluates to 0.
3693         (gconv_init): Use the new macros instead of {MIN,MAX}_NEEDED_{FROM,TO}.
3694         (FUNCTION_NAME): Likewise, in the handling of unaligned accesses and
3695         of consume_incomplete.
3696         * iconvdata/cp1255.c: Define {FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO}
3697         instead of {MIN,MAX}_NEEDED_{FROM,TO}. Set FROM_LOOP_MAX_NEEDED_TO to
3698         4, not 8.
3699         * iconvdata/cp1258.c: Likewise.
3700         * iconvdata/ibm930.c: Define {FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO}
3701         instead of {MIN,MAX}_NEEDED_{FROM,TO}. Set TO_LOOP_MAX_NEEDED_TO to 3,
3702         not 2.
3703         * iconvdata/ibm933.c: Likewise.
3704         * iconvdata/ibm935.c: Likewise.
3705         * iconvdata/ibm937.c: Likewise.
3706         * iconvdata/ibm939.c: Likewise.
3707         * iconvdata/iso-2022-cn.c: Define
3708         {FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO} instead of
3709         {MIN,MAX}_NEEDED_{FROM,TO}. Set TO_LOOP_MAX_NEEDED_TO to 6, not 4.
3710         * iconvdata/iso-2022-cn-ext.c: Likewise.
3711         * iconvdata/iso-2022-jp.c: Define
3712         {FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO} instead of
3713         {MIN,MAX}_NEEDED_{FROM,TO}.
3714         * iconvdata/tcvn5712-1.c: Define
3715         {FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO} instead of
3716         {MIN,MAX}_NEEDED_{FROM,TO}. Set FROM_LOOP_MAX_NEEDED_FROM to 1, not 2.
3717         * iconvdata/euc-jisx0213.c: Define
3718         {FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO} instead of
3719         {MIN,MAX}_NEEDED_{FROM,TO}. Set FROM_LOOP_MAX_NEEDED_TO to 8, not 4.
3720         * iconvdata/shift_jisx0213.c: Likewise.
3722 2002-05-14  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
3724         * sysdeps/powerpc/Makefile (sysdeps_routines): Add divdi3, cmpdi2,
3725         shdi3, fixdfdi, fixsfdi in csu dir.
3726         (shared-only-routines): Likewise.
3727         * sysdeps/wordsize-32/cmpdi2.c: New file.
3728         * sysdeps/wordsize-32/shdi3.c: New file.
3729         * sysdeps/wordsize-32/fixdfdi.c: New file.
3730         * sysdeps/wordsize-32/fixsfdi.c: New file.
3731         * sysdeps/powerpc/Versions (__divdi3, __moddi3, __udivdi3, __umoddi3,
3732         __ashldi3, __ashrdi3, __lshrdi3, __cmpdi2, __ucmpdi2, __fixdfdi,
3733         __fixsfdi, __fixunsdfdi, __fixunssfdi): Export at GLIBC_2.0.
3735         * sysdeps/unix/sysv/linux/semctl.c (__old_semctl, __new_semctl):
3736         Only use va_arg if the argument will be used [PR libc/3259].
3738 2002-05-06  Michael A. Schmidt  <mmaass@us.ibm.com>
3740         * catgets/catgets.c (catopen): Free buffer if internal catalog
3741         open fails.
3743 2002-05-14  Ulrich Drepper  <drepper@redhat.com>
3745         * debug/xtrace.sh: Make more robust.  For realtime tracking use
3746         non-buffering methods.
3747         * debug/pcprofiledump.c: Implement -u option.
3748         Patch by Roger Luethi <rl@hellgate.ch>.
3750 2002-05-11  Jakub Jelinek  <jakub@redhat.com>
3752         * include/netinet/in.h (bindresvport_internal): Add prototype.
3753         * include/rpc/auth.h  (authunix_create_internal,
3754         authunix_create_default_internal, authnone_create_internal,
3755         authdes_pk_create_internal): Add prototypes.
3756         * include/rpc/clnt.h (clnt_create_internal, clnttcp_create_internal,
3757         clntudp_create_internal, clntudp_bufcreate_internal,
3758         clntunix_create_internal): Add prototypes.
3759         * include/rpc/svc.h (svc_sendreply_internal, svcerr_decode_internal,
3760         svc_getreq_internal, svc_getreq_common_internal,
3761         svc_getreqset_internal, svc_getreq_poll_internal,
3762         svc_register_internal, svc_unregister_internal,
3763         svcudp_create_internal, svcudp_bufcreate_internal): Add prototypes.
3764         * include/rpc/svc_auth.h (_authenticate_internal): Add prototype.
3765         * include/sys/socket.h (__sendto, __recvfrom, __sendmsg, __recvmsg,
3766         __setsockopt, __getsockname, __bind, __listen): Add prototypes.
3767         * inet/rexec.c (rexec_af): Use __listen and __getsockname.
3768         * inet/rcmd.c (rcmd_af): Use __listen.
3769         (rresvport_af): Use __bind.
3770         * sunrpc/clnt_udp.c: Use INTUSE calls to bindresvport,
3771         authunix_create, authunix_create_default, authnone_create,
3772         authdes_pk_create, clnt_create, clnttcp_create, clntudp_create,
3773         clntudp_bufcreate, clntunix_create svc_sendreply, svcerr_decode,
3774         svc_getreq, svc_getreq_common, svc_getreqset, svc_getreq_poll,
3775         svc_register, svc_unregister, svcudp_create, svcudp_bufcreate,
3776         _authenticate, add INTDEF after such function definitions.
3777         Use __listen, __bind, __sendto, __recvfrom, __sendmsg, __recvmsg,
3778         __setsockopt, __getsockname instead of non-__ variants.
3779         * sunrpc/pmap_rmt.c: Likewise.
3780         * sunrpc/rtime.c: Likewise.
3781         * sunrpc/svc_udp.c: Likewise.
3782         * sunrpc/clnt_unix.c: Likewise.
3783         * sunrpc/svc_unix.c: Likewise.
3784         * sunrpc/bindrsvprt.c: Likewise.
3785         * sunrpc/svc_tcp.c: Likewise.
3786         * sunrpc/auth_none.c: Likewise.
3787         * sunrpc/clnt_raw.c: Likewise.
3788         * sunrpc/clnt_tcp.c: Likewise.
3789         * sunrpc/auth_unix.c: Likewise.
3790         * sunrpc/key_call.c: Likewise.
3791         * sunrpc/clnt_gen.c: Likewise.
3792         * sunrpc/pm_getmaps.c: Likewise.
3793         * sunrpc/clnt_simp.c: Likewise.
3794         * sunrpc/pmap_clnt.c: Likewise.
3795         * sunrpc/svc_run.c: Likewise.
3796         * sunrpc/svc.c: Likewise.
3797         * sunrpc/svc_simple.c: Likewise.
3798         * sunrpc/pm_getport.c: Likewise.
3799         * sunrpc/auth_des.c: Likewise.
3800         * sunrpc/svc_auth.c: Likewise.
3801         * sysdeps/generic/unwind-dw2-fde.c (__register_frame_info_bases,
3802         __register_frame_info_table_bases, __deregister_frame_info_bases):
3803         Add INTDEF.
3804         (__register_frame_info_bases_internal,
3805         __register_frame_info_table_bases_internal,
3806         __deregister_frame_info_bases_internal): Add prototypes.
3807         (__register_frame_info, __register_frame): Use INTUSE in call to
3808         __register_frame_info_bases.
3809         (__register_frame_info_table): Similarly.
3810         (__deregister_frame_info, __deregister_frame): Similarly.
3811         * sysdeps/generic/sendto.c (__sendto): Renamed from sendto, add
3812         sendto as weak alias.
3813         * sysdeps/mach/hurd/sendto.c: Likewise.
3814         * sysdeps/generic/recvfrom.c (__recvfrom): Renamed from recvfrom, add
3815         recvfrom as weak alias.
3816         * sysdeps/mach/hurd/recvfrom.c: Likewise.
3817         * sysdeps/unix/sysv/aix/recvfrom.c: Likewise.
3818         * sysdeps/generic/recvmsg.c (__recvmsg): Renamed from recvmsg, add
3819         recvmsg as weak alias.
3820         * sysdeps/unix/sysv/aix/recvmsg.c: Likewise.
3821         * sysdeps/generic/sendmsg.c (__sendmsg): Renamed from sendmsg, add
3822         sendmsg as weak alias.
3823         * sysdeps/unix/sysv/aix/sendmsg.c: Likewise.
3824         * sysdeps/generic/setsockopt.c (__setsockopt): Renamed from
3825         setsockopt, add setsockopt as weak alias.
3826         * sysdeps/mach/hurd/setsockopt.c: Likewise.
3827         * sysdeps/generic/bind.c (__bind): Renamed from bind, add bind as
3828         weak alias.
3829         * sysdeps/mach/hurd/bind.c: Likewise.
3830         * sysdeps/generic/listen.c (__listen): Renamed from listen, add listen
3831         as weak alias.
3832         * sysdeps/mach/hurd/listen.c: Likewise.
3833         * sysdeps/generic/getsockname.c (__getsockname): Renamed from
3834         getsockname, add getsockname as weak alias.
3835         * sysdeps/mach/hurd/getsockname.c: Likewise.
3836         * sysdeps/unix/sysv/aix/getsockname.c: Likewise.
3837         * sysdeps/mach/hurd/recvmsg.c (__recvmsg): Add weak alias.
3838         * sysdeps/mach/hurd/sendmsg.c (__sendmsg): Add weak alias.
3839         * sysdeps/unix/inet/syscalls.list (__bind, __listen, __recvmsg,
3840         __recvfrom, __sendmsg, __sendto, __setsockopt): Add aliases.
3841         * sysdeps/unix/sysv/linux/alpha/syscalls.list (__recvmsg, __sendmsg):
3842         Add aliases.
3843         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
3844         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
3845         * sysdeps/unix/sysv/linux/hppa/syscalls.list: Likewise.
3846         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
3847         * sysdeps/unix/sysv/linux/recvfrom.S (__recvfrom): Add weak alias.
3848         * sysdeps/unix/sysv/linux/recvmsg.S (__recvmsg): Likewise.
3849         * sysdeps/unix/sysv/linux/sendmsg.S (__sendmsg): Likewise.
3850         * sysdeps/unix/sysv/linux/sendto.S (__sendto): Likewise.
3851         * sysdeps/unix/sysv/linux/setsockopt.S (__setsockopt): Likewise.
3852         * sysdeps/unix/sysv/linux/bind.S (__bind): Likewise.
3853         * sysdeps/unix/sysv/linux/listen.S (__listen): Likewise.
3854         * sysdeps/unix/sysv/linux/getsockname.S (__getsockname): Likewise.
3856 2002-05-10  Jakub Jelinek  <jakub@redhat.com>
3858         * locale/programs/localedef.h (show_archive_content): Add verbose
3859         argument.
3860         * locale/programs/localedef.c (main): Adjust caller.
3861         * locale/programs/locarchive.c (struct nameent, struct dataent): New.
3862         (nameentcmp, dataentcmp): New functions.
3863         (xstrcmp): Remove.
3864         (show_archive_content): Print verbose listing with --list-archive -v.
3866 2002-05-14  Ulrich Drepper  <drepper@redhat.com>
3868         * locale/programs/locarchive.c (open_archive): Take extra argument
3869         readonly.  If true open file with O_RDONLY and don't create the
3870         archive if it doesn't exist.
3871         Adapt all callers.
3872         (close_archive): Don't do anything if fd element is -1.
3873         * locale/programs/localedef.h (open_archive): Adjust prototype.
3874         * locale/programs/locfile.c (write_all_categories): Adjust open_archive
3875         call.
3877         * malloc/malloc.c (__posix_memalign): Correct check for size of
3878         alignment value [PR libc/3444].
3880         * include/stdio.h: Remove references to old stdio implementation.
3882         * libio/Makefile (bug-ungetwc2-ENV): Define.
3884 2002-05-13  Roland McGrath  <roland@frob.com>
3886         * iconv/gconv_charset.h (upstr): Add inline keyword, quiets warning.
3888         * hurd/hurdinit.c (_hurd_init): Use internal name _hurd_new_proc_init.
3890 2002-05-13  Marcus Brinkmann  <marcus@gnu.org>
3892         * hurd/hurdchdir.c (_hurd_change_directory_port_from_name):
3893         Allocate three, not two, more than LEN when appending '/.'.
3894         * sysdeps/mach/hurd/chroot.c (chroot): Likewise.  Don't check
3895         if NAME ends with '/.' if it is shorter than 2 chars.
3897 2002-05-12  Roland McGrath  <roland@frob.com>
3899         * mach/Makefile ($(mach-syscalls:%=$(objpfx)%.S)): Make the generated
3900         files #include <sysdep.h> instead of <mach/machine/syscall_sw.h>.
3902         * hurd/hurdexec.c (_hurd_exec): Reauthenticate ports/dtable used in
3903         file_exec to effect svuid=euid, svgid=egid if that is not a no-op.
3905 2002-05-10  Jakub Jelinek  <jakub@redhat.com>
3907         * sysdeps/ia64/Makefile: Remove extra endif.
3908         * sysdeps/ia64/ia64libgcc.S (__divsf3): Fix typo in symbol version.
3910 2002-05-10  Andreas Schwab  <schwab@suse.de>
3912         * sysdeps/powerpc/fpu/w_sqrt.c: Add sqrtl alias.
3914 2002-05-09  Andreas Jaeger  <aj@suse.de>
3916         * sysdeps/unix/sysv/linux/x86_64/sys/io.h: New.
3917         * sysdeps/unix/sysv/linux/x86_64/Dist: Add it.
3918         * sysdeps/unix/sysv/linux/x86_64/Makefile (sysdep_headers): Add it.
3920         * sysdeps/unix/sysv/linux/ia64/glob.c: Move to ...
3921         * sysdeps/wordsize-64/glob.c: ...here.
3922         * sysdeps/unix/sysv/linux/x86_64/glob.c: Remove.
3923         * sysdeps/unix/sysv/linux/s390/s390-64/glob.c: Remove.
3924         * sysdeps/unix/sysv/linux/sparc/sparc64/glob.c: Remove.
3926 2002-05-08  Roland McGrath  <roland@frob.com>
3928         * hurd/hurdfchdir.c (_hurd_change_directory_port_from_fd): Use
3929         O_NOTRANS flag in "." lookup.
3931 2002-05-05  Ulrich Drepper  <drepper@redhat.com>
3933         * malloc/mtrace.c: Comment out use of _mtrace_file and _mtrace_len.
3935 2002-05-04  Ulrich Drepper  <drepper@redhat.com>
3937         * locale/duplocale.c (__duplocale): Update special members only
3938         when allocation succeeded.
3940 2002-05-03  Roland McGrath  <roland@frob.com>
3942         * shlib-versions (.*-.*-gnu-gnu.*): Remove USE_IN_LIBIO conditionals;
3943         we can only build libc.so.0.3(GLIBC_2.2.6) now.
3945 2002-05-02  Jakub Jelinek  <jakub@redhat.com>
3947         * sysdeps/ia64/Makefile: Add ia64libgcc in csu subdir.
3948         * sysdeps/ia64/Versions (__divtf3, __divdf3, __divsf3, __divdi3,
3949         __moddi3, __udivdi3, __umoddi3, __multi3): Export at GLIBC_2.0.
3950         * sysdeps/ia64/ia64libgcc.S: New file.
3952 2002-05-02  Ulrich Drepper  <drepper@redhat.com>
3954         * sysdeps/generic/dl-tls.c (oom): Implement using _dl_fatal_printf.
3956         * malloc/memusage.c: Distinguish anonymous mmap.
3958 2002-05-01  Roland McGrath  <roland@frob.com>
3960         * sysdeps/mach/hurd/close.c: #undef __close before function defn,
3961         and use INTDEF on it.
3962         * sysdeps/mach/hurd/fcntl.c: Use INTDEF2.
3964         * sysdeps/mach/hurd/dl-sysdep.c (errno): New variable.
3966         * sysdeps/mach/hurd/alpha/static-start.S: New file (unfinished).
3968 2002-05-01  Ulrich Drepper  <drepper@redhat.com>
3970         * malloc/memusage.c: Add support for tracking mmap & friends.
3971         * malloc/memusage.sh: Implement -m/--mmap option.
3973 2002-04-30  Jakub Jelinek  <jakub@redhat.com>
3975         * locale/programs/locarchive.c (create_archive): Add archivefname
3976         argument, create fname from it.
3977         (enlarge_archive): Honour output_prefix.
3978         (open_archive): Likewise.
3980 2002-04-30  Jakub Jelinek  <jakub@redhat.com>
3982         * locale/programs/locarchive.c (add_locales_to_archive): Don't nest
3983         too many stpcpy macros.
3985 2002-04-26  Bruno Haible  <bruno@clisp.org>
3987         * locale/programs/ld-collate.c (collate_read): Cast first argument
3988         for "%.*s" to int.
3990 2002-04-26  Bruno Haible  <bruno@clisp.org>
3992         * include/libintl.h (__ngettext, __dngettext, __dcngettext,
3993         __dcngettext_internal): New declarations.
3994         (__gettext, __dgettext, __dcgettext, __dcgettext_internal): Add
3995         attribute declarations.
3997 2002-04-30  Roland McGrath  <roland@frob.com>
3999         Removed old GNU stdio implementation; GNU libio is now the only option.
4000         * configure.in: Removed --enable-libio option and @stdio@ subst var.
4001         Define USE_IN_LIBIO unconditionally.
4002         * configure: Regenerated.
4003         * Makeconfig (stdio): Set to libio by default.
4004         * config.make.in (stdio): Variable removed.
4005         * sysdeps/unix/sysv/linux/configure.in: Don't set $stdio.
4006         * sysdeps/unix/sysv/linux/configure: Regenerated.
4007         * sysdeps/mach/hurd/configure.in: Don't test $stdio.
4008         * sysdeps/mach/hurd/configure: Regenerated.
4009         * stdio/.cvsignore: File removed.
4010         * stdio/Makefile: File removed.
4011         * stdio/Versions: File removed.
4012         * stdio/__fbufsize.c: File removed.
4013         * stdio/__flbf.c: File removed.
4014         * stdio/__fpending.c: File removed.
4015         * stdio/__fpurge.c: File removed.
4016         * stdio/__freadable.c: File removed.
4017         * stdio/__freading.c: File removed.
4018         * stdio/__fsetlocking.c: File removed.
4019         * stdio/__fwritable.c: File removed.
4020         * stdio/__fwriting.c: File removed.
4021         * stdio/clearerr.c: File removed.
4022         * stdio/fclose.c: File removed.
4023         * stdio/fcloseall.c: File removed.
4024         * stdio/feof.c: File removed.
4025         * stdio/ferror.c: File removed.
4026         * stdio/fflush.c: File removed.
4027         * stdio/fgetc.c: File removed.
4028         * stdio/fgetpos.c: File removed.
4029         * stdio/fgets.c: File removed.
4030         * stdio/fileno.c: File removed.
4031         * stdio/fmemopen.c: File removed.
4032         * stdio/fopen.c: File removed.
4033         * stdio/fopncook.c: File removed.
4034         * stdio/fputc.c: File removed.
4035         * stdio/fputs.c: File removed.
4036         * stdio/fread.c: File removed.
4037         * stdio/freopen.c: File removed.
4038         * stdio/fseek.c: File removed.
4039         * stdio/fsetpos.c: File removed.
4040         * stdio/ftell.c: File removed.
4041         * stdio/fwrite.c: File removed.
4042         * stdio/getc.c: File removed.
4043         * stdio/getchar.c: File removed.
4044         * stdio/getdelim.c: File removed.
4045         * stdio/gets.c: File removed.
4046         * stdio/glue.c: File removed.
4047         * stdio/internals.c: File removed.
4048         * stdio/linewrap.c: File removed.
4049         * stdio/linewrap.h: File removed.
4050         * stdio/memstream.c: File removed.
4051         * stdio/newstream.c: File removed.
4052         * stdio/obstream.c: File removed.
4053         * stdio/putc.c: File removed.
4054         * stdio/putchar.c: File removed.
4055         * stdio/puts.c: File removed.
4056         * stdio/rewind.c: File removed.
4057         * stdio/setbuf.c: File removed.
4058         * stdio/setbuffer.c: File removed.
4059         * stdio/setlinebuf.c: File removed.
4060         * stdio/setvbuf.c: File removed.
4061         * stdio/stdio.h: File removed.
4062         * stdio/ungetc.c: File removed.
4063         * stdio/vasprintf.c: File removed.
4064         * stdio/vscanf.c: File removed.
4065         * stdio/vsnprintf.c: File removed.
4066         * stdio/vsprintf.c: File removed.
4067         * stdio/vsscanf.c: File removed.
4068         * sysdeps/generic/defs.c: File removed.
4069         * sysdeps/generic/fdopen.c: File removed.
4070         * sysdeps/generic/pipestream.c: File removed.
4071         * sysdeps/generic/stdio_init.c: File removed.
4072         * sysdeps/generic/sysd-stdio.c: File removed.
4073         * sysdeps/generic/vdprintf.c: File removed.
4074         * sysdeps/mach/hurd/defs.c: File removed.
4075         * sysdeps/mach/hurd/fdopen.c: File removed.
4076         * sysdeps/mach/hurd/pipestream.c: File removed.
4077         * sysdeps/mach/hurd/stdio_init.c: File removed.
4078         * sysdeps/mach/hurd/sysd-stdio.c: File removed.
4079         * sysdeps/mach/hurd/vdprintf.c: File removed.
4080         * sysdeps/posix/defs.c: File removed.
4081         * sysdeps/posix/fdopen.c: File removed.
4082         * sysdeps/posix/pipestream.c: File removed.
4083         * sysdeps/posix/stdio_init.c: File removed.
4084         * sysdeps/posix/vdprintf.c: File removed.
4085         * sysdeps/unix/pipestream.c: File removed.
4086         * sysdeps/unix/sysv/sysd-stdio.c: File removed.
4087         * sysdeps/unix/sysv/sco3.2.4/pipestream.c: File removed.
4088         * sysdeps/unix/sysv/sysv4/pipestream.c: File removed.
4090 2002-04-29  Roland McGrath  <roland@frob.com>
4092         * include/libc-symbols.h (link_warning): Use `unused' attribute.
4094 2002-04-28  Ulrich Drepper  <drepper@redhat.com>
4096         * sysdeps/generic/tls.h: Describe what must be defined.
4098         * sysdeps/generic/glob.c (glob): Don't pass GLOB_NOMAGIC flag to
4099         glob_in_dir [PR libc/3385].
4100         * posix/globtest.sh: Add test case.
4102         * intl/loadmsgcat.c [!_LIBC] (_nl_init_domain_conv): Don't add
4103         //TRANSLIT twice.
4105 2002-04-27  Ulrich Drepper  <drepper@redhat.com>
4107         * sysdeps/unix/sysv/linux/ia64/fxstat.c: Fix a few issues with the
4108         _internal symbol handling.
4109         * sysdeps/unix/sysv/linux/ia64/lxstat.c: Likewise.
4111 2002-04-26  Ulrich Drepper  <drepper@redhat.com>
4113         * sysdeps/ia64/fpu/s_finite.S: Define _internal aliases.
4114         * sysdeps/unix/sysv/linux/ia64/fork.S: Likewise.
4116 2002-04-26  Isamu Hasegawa  <isamu@yamato.ibm.com>
4118         * posix/regcomp.c (re_compile_fastmap_iter): Fix fastmap in case of
4119         not _LIBC and RE_ENABLE_I18N.
4120         (build_range_exp): Implement for not _LIBC.
4121         (build_collating_symbol): Likewise.
4122         (parse_bracket_exp): Unify redundant error handlings.
4123         Don't erase mbcset for non matching list in multibyte envs.
4124         (build_word_op): Add '_' to matching list for \w operator.
4125         * posix/regex_internal.c (re_string_construct): Invoke
4126         build_upper_buffer in case of not RE_ENABLE_I18N.
4127         (re_string_reconstruct): Don't touch cur_state in case of not
4128         RE_ENABLE_I18N.
4129         * posix/regex_internal.h (attribute_hidden): New macro in case of
4130         not _LIBC.
4131         (re_charset_t): Define range_starts/ends in case of not _LIBC.
4132         * posix/regexec.c (sift_states_iter_mb): Hide in case of not
4133         RE_ENABLE_I18N.
4134         (transit_state_mb): Likewise.
4135         (check_node_accept_bytes): Implement the code evaluating range
4136         expression in case of not _LIBC.
4137         (find_collation_sequence_value): Hide in case of not _LIBC.
4139 2002-04-26  Jakub Jelinek  <jakub@redhat.com>
4141         * sysdeps/unix/sysv/linux/sparc/sparc32/semctl.c: Copied from
4142         i386/semctl.c.
4143         (__old_semctl, __new_semctl): Only use va_arg if the argument will
4144         be used.
4146 2002-04-26  Ulrich Drepper  <drepper@redhat.com>
4148         * sysdeps/ia64/fpu/s_isinf.S: Fix definition of _internal names.
4150         * sysdeps/ia64/strncpy.S: Fix recovery code.
4151         Patch by David Mosberger <davidm@hpl.hp.com>.
4153 2002-04-24  Ulrich Drepper  <drepper@redhat.com>
4155         * sysdeps/unix/sysv/linux/ia64/Versions [libc]: Add getunwind for
4156         GLIBC_2.2.6.
4158 2002-04-14  Bruno Haible  <bruno@clisp.org>
4160         * posix/regex.c (re_max_failures): Add back symbol for binary
4161         compatibility.
4163 2002-04-22  Isamu Hasegawa  <isamu@yamato.ibm.com>
4165         * posix/regcomp.c (re_compile_internal): Adapt it to new interface
4166         of buffer building functions.
4167         * posix/regex_internal.c (re_string_allocate): New function.
4168         (re_string_realloc_buffers): New function.
4169         (re_string_skip_chars): New function.
4170         (re_string_reconstruct): New function.
4171         (re_string_construct): Adapt it to new interface of buffer building
4172         functions.
4173         (re_string_construct_common): Likewise.
4174         (build_wcs_buffer): Likewise.
4175         (build_wcs_upper_buffer): Likewise.
4176         (build_upper_buffer): Likewise.
4177         (re_string_translate_buffer): Likewise.
4178         (re_string_context_at): Adapt it to variable length buffers.
4179         * posix/regex_internal.h (re_string_t): Add new fields to handle
4180         variable length buffers.
4181         (re_match_context_t): Likewise.
4182         * posix/regexec.c (re_search_internal): Adapt it to new interface
4183         of re_string_t and re_match_context_t.
4184         (acquire_init_state_context): Likewise.
4185         (check_matching): Likewise.
4186         (check_halt_state_context): Likewise.
4187         (proceed_next_node): Likewise.
4188         (set_regs): Likewise.
4189         (sift_states_backward): Likewise.
4190         (clean_state_log_if_need): Likewise.
4191         (sift_states_iter_mb): Likewise.
4192         (sift_states_iter_bkref): Likewise.
4193         (add_epsilon_backreference): Likewise.
4194         (transit_state): Likewise.
4195         (transit_state_sb): Likewise.
4196         (transit_state_mb): Likewise.
4197         (transit_state_bkref): Likewise.
4198         (transit_state_bkref_loop): Likewise.
4199         (check_node_accept): Likewise.
4200         (match_ctx_init): Likewise.
4201         (extend_buffers): New function.
4203 2002-04-21  Bruno Haible  <bruno@clisp.org>
4205         * iconvdata/tst-table.sh: For the second check, use the truncated
4206         GB18030 charmap table, like for the first check.
4208 2002-04-24  Ulrich Drepper  <drepper@redhat.com>
4210         * elf/dl-load.c (open_verify): Correct __lseek parameters.
4211         Patch by Simon Hildrew <simon@hildrew.net> [PR libc/3354].
4213 2002-04-23  H.J. Lu  <hjl@gnu.org>
4215         * include/math.h (isfinite): Fix a typo.
4217 2002-04-24  Ulrich Drepper  <drepper@redhat.com>
4219         * libio/bug-ungetwc2.c (test_locale): Use the de_DE.UTF-8 locale
4220         which is created by the test suite.
4222 2002-04-20  Bruno Haible  <bruno@clisp.org>
4224         * iconvdata/iso-2002-kr.c (MAX_NEEDED_FROM): Set to 4.
4225         (BODY for FROM_LOOP): Fix comparisons between inptr and inend.
4227 2002-04-20  Bruno Haible  <bruno@clisp.org>
4229         * iconvdata/johab.c (BODY for FROM_LOOP): Change type of i, m, f,
4230         to avoid gcc warning.
4232 2002-04-20  Bruno Haible  <bruno@clisp.org>
4234         * iconvdata/iso-2022-jp.c (EMIT_SHIFT_TO_INIT): Fix modification mask
4235         of data->__statep->__count.
4237 2002-04-20  Bruno Haible  <bruno@clisp.org>
4239         * iconvdata/euc-jisx0213.c (BODY for TO_LOOP): Really ignore Unicode
4240         tag characters.
4241         * iconvdata/shift_jisx0213.c (BODY for TO_LOOP): Likewise.
4243 2002-04-24  Roland McGrath  <roland@frob.com>
4245         * sysdeps/mach/alpha/syscall.S: Don't use .frame, ENTRY will have it;
4246         use END macro instead of our own .end directive.
4247         Use `callsys' insn mnemonic instead of `call_pal'.
4249         * sysdeps/mach/alpha/sysdep.h (ENTRY): New macro.
4251         * sysdeps/alpha/dl-machine.h (ELF_MACHINE_USER_ADDRESS_MASK): New
4252         macro; we need this for Hurd.
4254         Log entry was missing for 2002/03/24 commit of rev 1.8,
4255         goes with 2002-03-17 changes.
4256         * sysdeps/mach/hurd/i386/Makefile [$(subdir) = misc]
4257         (sysdep_routines): Append ioperm here.
4258         (sysdep_headers): Append sys/io.h here.
4260 2002-04-23  Roland McGrath  <roland@frob.com>
4262         * sysdeps/mach/hurd/send.c: int -> size_t for WROTE.
4263         * sysdeps/mach/hurd/sendto.c: Likewise.
4264         * hurd/hurdioctl.c (siocgifconf): int -> size_t for DATA_LEN.
4265         * sysdeps/mach/hurd/wait4.c (__wait4): natural_t -> int for SIGCODE.
4266         * sysdeps/mach/hurd/getpriority.c: unsigned int -> size_t for PISIZE.
4268 2002-04-22  Roland McGrath  <roland@frob.com>
4270         * sysdeps/mach/hurd/i386/ioperm.c (ioperm): Translate MIG_BAD_ID
4271         failure from i386_io_perm_* RPCs to ENOSYS.
4273 2002-04-22  Andreas Jaeger  <aj@suse.de>
4275         * sysdeps/unix/sysv/linux/x86_64/ldconfig.h: New file.
4277         * sysdeps/unix/sysv/linux/x86_64/dl-cache.h: New file.
4279         * sysdeps/unix/sysv/linux/x86_64/vfork.S: Use %rdi as temp
4280         register instead of destroying %rbx.
4282 2002-04-21  Ulrich Drepper  <drepper@redhat.com>
4284         * string/string.h: Declare strerror_r also for XPG6.
4286 2002-04-19  Roland McGrath  <roland@frob.com>
4288         * sysdeps/mach/hurd/tmpfile.c: Create a file descriptor and use fdopen.
4290 2002-04-20  Ulrich Drepper  <drepper@redhat.com>
4292         * Makefile: Add handling of xtests and xcheck targets.
4293         * MakeTAGS: Likewise.
4294         * Makeconfig: Likewise.
4295         * Makerules: Likewise.
4296         * Rules: Likewise.
4297         * manual/Makefile: Likewise.
4298         * sunrpc/Makefile (xtests): Add thrsvc if thread library available.
4299         * sunrpc/thrsvc.c: New file.  By Zack Weinberg.
4301 2002-04-11  Zack Weinberg  <zack@codesourcery.com>
4303         * include/rpc/rpc.h (struct rpc_thread_variables): Remove
4304         authnone_private_s.
4305         * sunrpc/auth_none.c: Include bits/libc-lock.h.
4306         Delete #ifdef _RPC_THREAD_SAFE_ block.
4307         (authnone_private): Make a struct, not a pointer to struct.
4308         (authnone_private_guard): New once-control variable.
4309         (authnone_create_once): New function, split out of
4310         authnone_create.  No need to allocate memory.
4311         (authnone_create): Just call authnone_create_once via
4312         __libc_once, then return &authnone_private->no_client.
4313         (authnone_marshal): Access private data via CLIENT argument,
4314         not authnone_private pointer.
4315         Fix typo (MAX_MARSHEL_SIZE -> MAX_MARSHAL_SIZE).
4316         * sunrpc/rpc_thread.c (__rpc_thread_destroy): No need to free
4317         authnone_private_s.
4319 2002-04-12  H.J. Lu  <hjl@gnu.org>
4321         * sunrpc/clnt_raw.c (clntraw_create): Properly set xdrs and client.
4323 2002-04-18  Bruno Haible  <bruno@clisp.org>
4325         * iconvdata/euc-jisx0213.c (EMIT_SHIFT_TO_INIT, BODY for
4326         FROM_DIRECTION): Make the FROM direction stateless.
4327         * iconvdata/shift_jisx0213.c (EMIT_SHIFT_TO_INIT, BODY for
4328         FROM_DIRECTION): Likewise.
4330 2002-04-15  Bruno Haible  <bruno@clisp.org>
4332         * iconvdata/JISX0213.TXT: New file.
4333         * iconvdata/jisx0213.h: New file.
4334         * iconvdata/jisx0213.c: New file.
4335         * iconvdata/euc-jisx0213.c: New file.
4336         * iconvdata/shift_jisx0213.c: New file.
4337         * iconvdata/gconv-modules (EUC-JISX0213, SHIFT_JISX0213): New modules.
4338         * iconvdata/EUC-JISX0213.precomposed: New file.
4339         * iconvdata/SHIFT_JISX0213.precomposed: New file.
4340         * iconvdata/SHIFT_JISX0213.irreversible: New file.
4341         * iconvdata/tst-table-to.c (main): Make it work for encodings for
4342         which the "to" direction is stateful.
4343         * iconvdata/tst-tables.sh: Add EUC-JISX0213, SHIFT_JISX0213.
4344         * iconvdata/Makefile (modules): Add libJISX0213, EUC-JISX0213,
4345         SHIFT_JISX0213.
4346         (libJISX0213-routines): New variable.
4347         (LDFLAGS-EUC-JISX0213.so, LDFLAGS-SHIFT_JISX0213.so): New variables.
4348         (EUC-JISX0213.so, SHIFT_JISX0213.so): Depend on libJISX0213.so.
4349         (LDFLAGS-libJISX0213.so): New variable.
4350         (distribute): Add JISX0213.TXT, EUC-JISX0213.precomposed,
4351         SHIFT_JISX0213.precomposed, SHIFT_JISX0213.irreversible,
4352         jisx0213.c, jisx0213.h, euc-jisx0213.c, shift_jisx0213.c.
4354 2002-04-15  Bruno Haible  <bruno@clisp.org>
4356         * iconvdata/big5hkscs.c (big5hkscs_to_ucs): Change element type to
4357         uint32_t.  Update to Unicode 3.2.
4358         (from_ucs4, from_ucs4_idx): Update to Unicode 3.2.
4359         (BODY for TO_LOOP): Handle the ASCII range specially.
4360         * iconvdata/BIG5HKSCS.irreversible: Add one more entry.
4361         * iconvdata/testdata/BIG5HKSCS: Remove a character.
4362         * iconvdata/testdata/BIG5HKSCS..UTF-8: Regenerated.
4364 2002-04-15  Bruno Haible  <bruno@clisp.org>
4366         * iconvdata/gb18030.c (__twobyte_to_ucs, __fourbyte_to_ucs,
4367         __ucs_to_gb18030_tab1, __ucs_to_gb18030_tab2): Update to Unicode 3.2.
4369 2002-04-15  Bruno Haible  <bruno@clisp.org>
4371         * iconvdata/cns11643.h (__cns11643_from_ucs4p2c_tab): New declaration.
4372         (ucs4_to_cns11643): Update.
4373         * iconvdata/cns11643.c: Update to Unicode 3.2.
4374         (__cns11643l2*_to_ucs4_tab, __cns11643_from_ucs4p0_tab,
4375         __cns11643_from_ucs4p2_tab): Regenerated.
4376         (__cns11643_from_ucs4p2c_tab): New array.
4377         * iconvdata/cvs11643l1.c: Update comments.
4378         * iconvdata/EUC-TW.irreversible: Remove two entries.
4380 2002-04-15  Bruno Haible  <bruno@clisp.org>
4382         * locale/C-translit.h.in: Update to Unicode 3.2.
4383         Add <U2047>, <U205F>..<U2063>, <U2145>..<U2149>, <U2A74>..<U2A76>,
4384         <U30A0>, <U3251>..<U325F>, <U32B1>..<U32BF>, <UFE00>..<UFE0F>.
4386 2002-04-15  Bruno Haible  <bruno@clisp.org>
4388         * iconvdata/sjis.c (halfkana_to_ucs4): Remove array.
4389         (BODY for FROM_LOOP): Optimize the JISX0201:GR to Unicode conversion.
4391 2002-04-15  Bruno Haible  <bruno@clisp.org>
4393         * iconvdata/euc-jp.c (BODY for FROM_LOOP): When encountering an
4394         invalid input (e.g. a byte > 0x80 followed by a byte < 0x80), skip
4395         always one byte, not 0 bytes in some cases and 2 bytes in others.
4397         * iconvdata/tst-table-from.c (main): Correct the usage message.
4399 2002-04-19  Isamu Hasegawa  <isamu@yamato.ibm.com>
4401         * posix/regcomp.c (parse_expression): Fix incorrect error code.
4402         (parse_dup_op): Fix error handling like "a{}".
4403         (parse_bracket_exp): Add error handling.
4404         (fetch_number): Add error handling for "a{<very_large_number>}".
4406 2002-04-19  Isamu Hasegawa  <isamu@yamato.ibm.com>
4408         * posix/regcomp.c (parse_bracket_symbol): Add error handling
4409         in case that the symbol name is too long.
4410         (build_charclass): Handle [:lower:]/[:uppper:] correctly
4411         in case of REG_ICASE.
4413 2002-04-19  Andreas Jaeger  <aj@suse.de>
4415         * math/libm-test.inc: Fix comment, suggested by Hartvig Ekner
4416         <hartvige@mips.com>.
4418 2002-04-15  H.J. Lu  <hjl@gnu.org>
4420         * include/math.h (__finitel_internal): Declare only if
4421         __NO_LONG_DOUBLE_MATH is not defined.
4422         (__isinfl_internal): Likewise.
4423         (__isnanl_internal): Likewise.
4425         * sysdeps/unix/sysv/linux/alpha/syscalls.list: Add __connect_internal.
4426         * sysdeps/unix/sysv/linux/hppa/syscalls.list: Likewise.
4427         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
4428         * sysdeps/unix/sysv/linux/mips/syscalls.list: Likewise.
4429         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
4430         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
4431         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
4433         * sysdeps/unix/sysv/linux/syscalls.list: Add __chown_internal and
4434         __fcntl_internal.
4436         * sysdeps/unix/sysv/linux/fxstat.c (__fxstat64_internal): Added.
4437         * sysdeps/unix/sysv/linux/lxstat.c (__lxstat64_internal): Added.
4439 2002-04-15  Bruno Haible  <bruno@clisp.org>
4441         * iconvdata/armscii-8.c (BODY for FROM_LOOP): Fix array access.
4442         (BODY for TO_LOOP): Likewise.
4443         * iconvdata/tcvn5712-1.c (from_ucs4): Map U+0309 to 0xB1.
4444         * iconvdata/tst-table.sh: Add support for encodings which contain
4445         precomposed Unicode characters, known to the iconv converter in both
4446         directions but not listed in the charmap.
4447         * iconvdata/IBM856.irreversible: New file.
4448         * iconvdata/IBM922.irreversible: New file.
4449         * iconvdata/IBM1132.irreversible: New file.
4450         * iconvdata/IBM1133.irreversible: New file.
4451         * iconvdata/IBM1160.irreversible: New file.
4452         * iconvdata/IBM1161.irreversible: New file.
4453         * iconvdata/IBM1163.irreversible: New file.
4454         * iconvdata/IBM1164.irreversible: New file.
4455         * iconvdata/ARMSCII-8.irreversible: New file.
4456         * iconvdata/TCVN5712-1.precomposed: New file.
4457         * iconvdata/tst-tables.sh: Add IBM856, IBM922, IBM1124, IBM1129,
4458         IBM1160, IBM1161, IBM1132, IBM1133, IBM1162, IBM1163, IBM1164,
4459         ARMSCII-8, TCVN5712-1.
4460         * iconvdata/Makefile (distribute): Add IBM856.irreversible,
4461         IBM922.irreversible, IBM1132.irreversible, IBM1133.irreversible,
4462         IBM1160.irreversible, IBM1161.irreversible, IBM1163.irreversible,
4463         IBM1164.irreversible, ARMSCII-8.irreversible, TCVN5712-1.precomposed.
4465 2002-04-17  Jakub Jelinek  <jakub@redhat.com>
4467         * time/tst-mktime.c: Include <stdlib.h>.  Use %d, not %ld format
4468         for EVENING69.  Include offsets in TZ environment variable.
4470 2002-04-18  Ulrich Drepper  <drepper@redhat.com>
4472         * iconv/skeleton.c (RESET_INPUT_BUFFER): Replace ifs with #ifs to
4473         avoid compiler warnings.
4475         * locale/programs/localedef.c (main): Always call
4476         construct_output_path.
4478         * iconv/Makefile (CFLAGS-simple-hash.c): Define to find hashval.h.
4480         * locale/programs/locfile.c (to_archive): New variable.  To collect
4481         data which has to be added to the locale archive.
4482         (write_all_categories): Take new third parameter with locale name.
4483         Unless no_archive flag set add new locale data to the archive
4484         (write_locale_data): Unless no-archive flag set store generated data
4485         in to_archive data structure instead of generation output file.
4486         Add new parameter with locale category index.
4487         * locale/programs/locfile.h: Add new parameters in declaractions of
4488         write_all_categories and write_locale_data.
4489         * locale/programs/localedef.c: Recognize --no-archive, --list-archive,
4490         --add-to-archive, and --delete-from-archive options.  Pass extra
4491         parameter to write_all_categories.
4492         * locale/programs/localedef.h: Add prototypes for functions in
4493         locarchive.c.
4494         * locale/locarchive.h: New file.
4495         * locale/programs/locarchive.c: New file.
4496         * locale/Makefile (distribute): Add programs/locarchive.c and
4497         locarchive.h.
4498         (localedef-modules): Add md5 and locarchive.
4499         Add vpath to crypt subdir for md5.c.
4501         * locale/programs/ld-address.c: Pass locale category ID as new second
4502         parameter to write_locale_data.
4503         * locale/programs/ld-collate.c: Likewise.
4504         * locale/programs/ld-ctype.c: Likewise.
4505         * locale/programs/ld-identification.c: Likewise.
4506         * locale/programs/ld-measurement.c: Likewise.
4507         * locale/programs/ld-messages.c: Likewise.
4508         * locale/programs/ld-monetary.c: Likewise.
4509         * locale/programs/ld-name.c: Likewise.
4510         * locale/programs/ld-numeric.c: Likewise.
4511         * locale/programs/ld-paper.c: Likewise.
4512         * locale/programs/ld-telephone.c: Likewise.
4513         * locale/programs/ld-time.c: Likewise.
4515         * locale/simple-hash.c: Move compute_hashval function from here...
4516         * locale/hashval.h: ...to here.  New file.
4517         * locale/simple-hash.h: Add prototype for compute_hashval.
4519         * include/libintl.h: Minor cleanups.
4521 2002-04-16  Ulrich Drepper  <drepper@redhat.com>
4523         * posix/regcomp.c (gettext): Use INTUSE for _libc_intl_domainname.
4525 2002-04-15  Ulrich Drepper  <drepper@redhat.com>
4527         * include/sys/stat.h: Fix typo.  Patch by HJ Lu.
4529 2002-04-14  Bruno Haible  <bruno@clisp.org>
4531         * locale/programs/charmap.c (charmap_read): Don't access result if
4532         result == NULL.
4534 2002-02-17  Andreas Schwab  <schwab@suse.de>
4536         * elf/reldep7.c: New file.
4537         * elf/reldep7mod1.c: New file.
4538         * elf/reldep7mod2.c: New file.
4539         * elf/Makefile: Add rules to build and run reldep7.
4541 2002-04-14  Jakub Jelinek  <jakub@redhat.com>
4543         * elf/dl-lookup.c (_dl_lookup_symbol): Move add_dependency call to
4544         the end of the function.  Pass original flags to recursive call if
4545         add_dependency failed.
4546         (_dl_lookup_versioned_symbol): Likewise.
4548 2002-04-13  Jakub Jelinek  <jakub@redhat.com>
4550         * time/mktime.c (__mktime_internal): If year is 69, don't bail out
4551         early, but check whether it overflowed afterwards.
4552         * time/tst-mktime.c (main): Add new tests.
4554 2002-04-14  Ulrich Drepper  <drepper@redhat.com>
4556         * debug/xtrace.sh: Fix program name in help message.
4557         Patch by Roger Luethi <rl@hellgate.ch>.
4559         * include/sys/stat.h: Add prototypes for __lxstat_internal and
4560         __lxstat64_internal.  Add macros __lxstat and __lxstat64 if not
4561         NOT_IN_libc.
4562         * sysdeps/generic/lxstat.c: Use INTDEF for __lxstat.
4563         * sysdeps/mach/hurd/lxstat.c: Likewise.
4564         * sysdeps/unix/common/lxstat.c: Likewise.
4565         * sysdeps/unix/sysv/aix/lxstat.c: Likewise.
4566         * sysdeps/unix/sysv/linux/lxstat.c: Likewise.
4567         * sysdeps/unix/sysv/linux/i386/lxstat.c: Likewise.
4568         * sysdeps/unix/sysv/linux/ia64/lxstat.c: Likewise.
4569         * sysdeps/unix/sysv/linux/s390/s390-64/lxstat.c: Likewise.
4570         * sysdeps/generic/lxstat64.c: Use INTDEF for __lxstat64.
4571         * sysdeps/mach/hurd/lxstat64.c: Likewise.
4572         * sysdeps/unix/sysv/aix/lxstat64.c: Likewise.
4573         * sysdeps/unix/sysv/linux/lxstat64.c: Likewise.
4575         * include/wchar.h: Declare __mbrtowc_internal and __mbrlen_internal
4576         prototypes.  Add __mbrlen and __mbrtowc macros.
4577         * wcsmbs/mbrlen.c: Use INTDEF for __mbrlen.
4578         * wcsmbs/mbrtowc.c: Use INTDEF for __mbrtowc.
4580         * include/unistd.h: Add prototype for __write_internal and add
4581         __libc_write macro is SHARED.
4582         * sysdeps/generic/write.c: Use INTDEF for __write.
4583         * sysdeps/mach/hurd/write.c: Likewise.
4584         * sysdeps/unix/sysv/aix/write.c: Likewise.
4585         * sysdeps/unix/syscalls.list: Add __libc_write alias.
4587         * assert/assert.c: Replace STR_N_SIZE with something usable in
4588         macro arguments.
4589         * assert/assert-perr.c: Likewise.
4591         * include/sys/socket.h: Declare __libc_sa_len_internal and define
4592         SA_LEN macro to use it if not NOT_IN_libc.
4593         * sysdeps/unix/sysv/linux/sa_len.c: Use INTDEF for __libc_sa_len.
4595         * include/fcntl.h: Declare __open_internal and define __open and
4596         __libc_open macros if not NOT_IN_libc.
4597         * sysdeps/generic/open.c: Use INTDEF for __open.
4598         * sysdeps/mach/hurd/open.c: Likewise.
4599         * sysdeps/unix/sysv/aix/open.c: Likewise.
4600         * sysdeps/unix/syscalls.list: Add __open_internal alias.
4602         * sysdeps/generic/check_fds.c: Make sure newly opened file descriptor
4603         has correct number.
4605         * include/fcntl.h: Define __libc_fcntl macro if not NOT_IN_libc.
4606         * sysdeps/mach/hurd/fcntl.c: Undefine __libc_fcntl as well.
4607         * sysdeps/unix/sysv/aix/fcntl.c: Likewise.
4608         * sysdeps/unix/sysv/linux/i386/fcntl.c: Likewise.
4610         * include/wctype.h: Declare __iswalpha_l_internal,
4611         __iswdigit_l_internal, __iswspace_l_internal,
4612         __iswxdigit_l_internal, and __iswctype_internal.  Define
4613         __iswalpha_l, __iswctype, __iswdigit_l, __iswspace_l, and
4614         __iswxdigit_l macros if not NOT_IN_libc.
4615         * wctype/iswctype.c: Use INTDEF for __iswctype.
4616         * wctype/wcfuncs_l.c: Use INTDEF for all __iswXXX_l.
4618         * include/math.h: Declare __isinf_internal, __isinfl_internal,
4619         __isnan_internal, and __isnanl_internal.
4620         * stdio-common/printf_fp.c: Use INTUSE for calls to __isinf, __isinfl,
4621         __isnan, and __isnanl.
4622         * stdio-common/printf_size.c: Likewise.
4623         * sysdeps/generic/printf_fphex.c: Likewise.
4624         * sysdeps/i386/fpu/s_isinfl.c: Also define _internal alias.
4625         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
4626         * sysdeps/ia64/fpu/s_isinf.S: Likewise.
4627         * sysdeps/ia64/fpu/s_isnan.S: Likewise.
4628         * sysdeps/ieee754/dbl-64/s_isinf.c: Likewise.
4629         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
4630         * sysdeps/ieee754/flt-32/s_isinff.c: Likewise.
4631         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
4632         * sysdeps/ieee754/ldbl-128/s_isinfl.c: Likewise.
4633         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
4634         * sysdeps/ieee754/ldbl-96/s_isinfl.c: Likewise.
4635         * sysdeps/m68k/s_isinfl.c: Likewise.
4636         * sysdeps/m68k/fpu/s_isinf.c: Likewise.
4637         * sysdeps/powerpc/fpu/s_isnan.c: Likewise.
4639         * include/sys/time.h: Declare __gettimeofday_internal and define
4640         __gettimeofday macro if not NOT_IN_libc.
4641         * sysdeps/generic/gettimeofday.c: Use INTEDEF for __gettimeofday.
4642         * sysdeps/mach/gettimeofday.c: Likewise.
4643         * sysdeps/posix/gettimeofday.c: Likewise.
4644         * sysdeps/unix/sysv/aix/gettimeofday.c: Likewise.
4645         * sysdeps/unix/common/syscalls.list: Define __gettimeofday alias.
4646         * sysdeps/unix/sysv/linux/alpha/gettimeofday.S: Likewise.
4647         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S: Likewise.
4649         * include/sys/stat.h: Declare __fxstat_internal and __fxstat64_internal
4650         and define __fxstate and __fxstat64 macros if not NOT_IN_libc.
4651         Remove __lstat and __fstat inline functions.
4652         * sysdeps/generic/fxstat.c: Use INTDEF for __fxstat.
4653         * sysdeps/mach/hurd/fxstat.c: Likewise.
4654         * sysdeps/unix/fxstat.c: Likewise.
4655         * sysdeps/unix/sysv/aix/fxstat.c: Likewise.
4656         * sysdeps/unix/sysv/linux/fxstat.c: Likewise.
4657         * sysdeps/unix/sysv/linux/i386/fxstat.c: Likewise.
4658         * sysdeps/unix/sysv/linux/ia64/fxstat.c: Likewise.
4659         * sysdeps/unix/sysv/linux/s390/s390-64/fxstat.c: Likewise.
4660         * sysdeps/generic/fxstat64.c: Use INTDEF for __fxstat64.
4661         * sysdeps/mach/hurd/fxstat64.c: Likewise.
4662         * sysdeps/unix/sysv/aix/fxstat64.c: Likewise.
4663         * sysdeps/unix/sysv/linux/fxstat64.c: Likewise.
4665         * include/unistd.h: Declare __getpid_internal and define
4666         __getpid macro if not NOT_IN_libc.
4667         * sysdeps/mach/hurd/getpid.c: Use INTDEF for __getpid.
4668         * sysdeps/generic/getpid.c: Likewise.
4669         * sysdeps/unix/syscalls.list: Add __getpid_internal alias.
4670         * posix/bsd-getpgrp.c: Use INTUSE for __getpgid call.
4672         * include/unistd.h: Declare __getpgid_internal and define
4673         __getpgid macro if not NOT_IN_libc.
4674         * sysdeps/generic/getpgid.c: Use INTDEF for __getpgid.
4675         * sysdeps/mach/hurd/getpgid.c: Likewise.
4676         * sysdeps/unix/sysv/aix/getpgid.c: Likewise.
4677         * sysdeps/unix/sysv/sysv4/__getpgid.c: Likewise.
4678         * sysdeps/unix/sysv/sysv4/getpgid.c: Likewise.
4679         * sysdeps/unix/sysv/linux/syscalls.list: Add _getpgid_internal alias.
4681         * include/unistd.h: Declare __getpagesize_internal and define
4682         __getpagesize macro if not NOT_IN_libc.
4683         * sysdeps/unix/sysv/linux/shmat.c: Include <unistd.h> for
4684         __getpagesize.
4685         * sysdeps/generic/getpagesize.c: Use INTDEF for __getpagesize.
4686         * sysdeps/mach/getpagesize.c: Likewise.
4687         * sysdeps/posix/getpagesize.c: Likewise.
4688         * sysdeps/unix/getpagesize.c: Likewise.
4689         * sysdeps/unix/sysv/linux/getpagesize.c: Likewise.
4690         * sysdeps/unix/sysv/linux/ia64/getpagesize.c: Likewise.
4691         * sysdeps/unix/sysv/linux/m68k/getpagesize.c: Likewise.
4692         * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize.c: Likewise.
4694 2002-04-13  Andreas Jaeger  <aj@suse.de>
4696         * sysdeps/i386/i486/bits/string.h (__strcspn_cg): Use only memory
4697         as clobber to reduce register pressure.
4698         (__strpbrk_cg): Likewise.
4699         (__mempcpy_by4): Likewise.
4700         (__strstr_cg): Likewise.
4701         Add prototype for __memrchr.
4703 2002-04-13  Andreas Schwab  <schwab@suse.de>
4705         * sysdeps/m68k/fpu/s_finite.c: Add internal alias.
4706         * sysdeps/m68k/fpu/s_finitef.c: Likewise.
4707         * sysdeps/m68k/fpu/s_finitel.c: Likewise.
4709 2002-04-13  Ulrich Drepper  <drepper@redhat.com>
4711         * elf/do-lookup.h [!VERSIONED]: Add new parameter flags.  Use it to
4712         check whether the caller prefers getting the most recent version of
4713         a symbol of the earliest version.
4714         * elf/dl-lookup.c: Adjust all callers of do_lookup.  Change
4715         _dl_do_lookup to also take the new parameter and pass it on.
4716         Change 'explicit' parameter of _dl_lookup_symbol and
4717         _dl_lookup_versioned_symbol to flags.  Adjust tests.
4718         * sysdeps/generic/ldsodefs.h: Adjust prototypes.
4719         * elf/dl-libc.c: Adjust all callers of _dl_lookup_symbol and
4720         _dl_lookup_versioned_symbol.
4721         * elf/dl-reloc.c: Likewise.
4722         * elf/dl-runtime.c: Likewise.
4723         * elf/dl-sym.c: Likewise.
4724         * sysdeps/mips/dl-machine.h: Likewise.
4726 2002-04-11  Jakub Jelinek  <jakub@redhat.com>
4728         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h (LOC): Don't paste
4729         in a token.
4730         * sysdeps/unix/sysv/sysv4/solaris2/sparc/sysdep.h (LOC): Likewise.
4732 2002-04-10  Andreas Jaeger  <aj@suse.de>
4734         * sysdeps/unix/sysv/linux/x86_64/glob.c: New file.
4736         * include/argz.h: Remove extra char from last patch.
4738 2002-04-09  Ulrich Drepper  <drepper@redhat.com>
4740         * sysdeps/mach/hurd/chown.c: Use INTDEF for __chown.
4741         * sysdeps/unix/sysv/aix/chown.c: Likewise.
4742         * sysdeps/unix/grantpt.c: Use INTUSE for __chown calls.
4743         * sysdeps/unix/sysv/linux/m68k/chown.c: Likewise.
4744         * sysdeps/unix/sysv/linux/powerpc/chown.c: Likewise.
4745         * sysdeps/unix/sysv/linux/i386/chown.c: Use INTDEF2 to define
4746         __chown_internal.
4747         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Likewise.
4749         * intl/dcngettext.c [_LIBC]: Use INTUSE for __dcngettext.
4750         * intl/dngettext.c [_LIBC] (DCNGETTEXT): Use INTUSE.
4751         * intl/ngettext.c: Likewise.
4753         * include/sys/socket.h: Declare __connect_internal and define
4754         __connect macro if not NOT_IN_libc.
4755         * sysdeps/mach/hurd/connect.c: Use INTDEF for __connect.
4756         * sysdeps/unix/sysv/aix/connect.c: Likewise.
4757         * sysdeps/unix/sysv/linux/connect.S: Add __connect_internal alias.
4759         * include/unistd.h: Declare __close_internal and define __close macro
4760         if not NOT_IN_libc.
4761         * libio/libioP.h (JUMO0, JUMP1, JUMP2, JUMP3, WJUMP0, WJUMP1, WJUMP2,
4762         WJUMP3): Add extra parenthesis to avoid expanding element names with
4763         macors like __close.
4764         * sysdeps/unix/syscalls.list: Add __close_internal alias.
4766         * include/unistd.h: Declare __dup2_internal and define __dup2 macro
4767         if not NOT_IN_libc.
4768         * sysdeps/mach/hurd/dup2.c: Use INTDEF for __dup2.
4769         * sysdeps/posix/dup2.c: Use INTDEF for __dup2.
4770         * sysdeps/unix/syscalls.list: Add __dup2_internal alias.
4772         * include/unistd.h: Declare __fork_internal and define __fork macro
4773         if not NOT_IN_libc.
4774         * sysdeps/mach/hurd/fork.c: Use INTDEF for __fork.
4775         * sysdeps/unix/sysv/aix/fork.c: Likewise.
4776         * sysdeps/unix/sysv/linux/syscalls.list: Add __fork_internal alias.
4778         * include/stdio_ext.h: Declare __fsetlocking_internal and define
4779         __fsetlocking macro to use it if not NOT_IN_libc.
4780         * libio/__fsetlocking.c: Use INTDEF for __fsetlocking.
4782         * libio/__fbufsize.c: Correct copyright.
4783         * libio/__flbf.c: Likewise.
4784         * libio/__fpending.c: Likewise.
4785         * libio/__fpurge.c: Likewise.
4786         * libio/__freadable.c: Likewise.
4787         * libio/__freading.c: Likewise.
4788         * libio/__fsetlocking.c: Likewise.
4789         * libio/__fwritable.c: Likewise.
4790         * libio/__fwriting.c: Likewise.
4792         * include/stdio.h: Declare __asprintf_internal and define __asprintf
4793         macro to use it if not NOT_IN_libc.
4794         * stdio-common/asprintf.c: Use INTDEF for __asprintf.
4796         * include/mntent.h: Declare __setmntent_internal,
4797         __getmntent_r_internal, __endmntent_internal.  Define __setmntent,
4798         __getmntent_r, and __endmntent macros to use these functions if not
4799         NOT_IN_libc.
4800         * misc/mntent_r.c: Use INTDEF for __setmntent, __getmntent_r, and
4801         __endmntent.
4803         * include/math.h: Declare __finite_internal, __finitef_internal, and
4804         __finitel_internal.  Redefine isfinite macro if in libc or libm using
4805         these functions.
4806         * sysdeps/generic/s_ldexp.c: Use INTUSE for __finite calls.
4807         * sysdeps/generic/s_ldexpf.c: Use INTUSE for __finitef calls.
4808         * sysdeps/generic/s_ldexpl.c: Use INTUSE for __finitel calls.
4809         * sysdeps/i386/fpu/s_finite.S: Define _internal alias.
4810         * sysdeps/i386/fpu/s_finitef.S: Likewise.
4811         * sysdeps/i386/fpu/s_finitel.S: Likewise.
4812         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
4813         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
4814         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
4815         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
4817         * include/fcntl.h: Declare __fcntl_internal.  Define __fcntl macro
4818         to use this function if not NOT_IN_libc.
4819         * libio/iofdopen.c (_IO_fcntl): Use INTUSE.
4820         * sysdeps/generic/fcntl.c: Use INTDEF for __fcntl.
4821         * sysdeps/mach/hurd/fcntl.c: Likewise.
4822         * sysdeps/unix/sysv/aix/fcntl.c: Likewise.
4823         * sysdeps/unix/sysv/linux/i386/fcntl.c: Likewise.
4825         * include/argz.h: Declare __argz_count_internal and
4826         __argz_stringify_internal.
4827         * intl/l10nflist.c [_LIBC]: Use INTUSE for __argz_count and
4828         __argz_stringify.
4829         * string/argz-count.c: Use INTDEF for __argz_count.
4830         * string/argz-stringify.c: Use INTDEF for __argz_stringify.
4832         * include/stdlib.h: Declare __cxa_atexit_internal and define
4833         __cxa_atexit macro if not NOT_IN_libc.
4834         * stdlib/cxa_atexit.c: Use INTDEF for __cxa_atexit.
4835         * dlfcn/Makefile: Define NOT_IN_libc when compiling modcxaatexit.c.
4837         * assert/assert.c: Use INTDEF for __assert_fail.
4838         * assert/__assert.c: Use INTUSE for call to __assert_fail.
4839         * include/assert.h: Declare __assert_fail_internal.
4841         * extra-lib.mk: Mark assignment to lib with override.
4843 2002-04-08  Ulrich Drepper  <drepper@redhat.com>
4845         * Makerules: Use cppflags-iterator.mk to add defines for all test
4846         source files.
4848 2002-04-08  kaz Kojima  <kkojima@rr.iij4u.or.jp>
4850         * elf/elf.h: Define R_SH_TLS_xxx macros.
4851         * elf/rtld.c: Remove an extra parenthesis.
4852         * elf/tls-macros.h: Define SH version TLS_LE, TLS_IE, TLS_LD and
4853         TLS_GD macros.
4854         * sysdeps/generic/dl-tls.c: Add a missing semi-colon.
4855         * sysdeps/sh/dl-lookupcfg.h: New file.
4856         * sysdeps/sh/dl-tls.h: New file.
4857         * sysdeps/sh/dl-machine.h (elf_machine_type_class): Set
4858         ELF_RTYPE_CLASS_PLT also for the three TLS relocations.
4859         (elf_machine_rela): Handle R_SH_TLS_DTPMOD32, R_SH_TLS_DTPOFF32 and
4860         R_SH_TLS_TPOFF32 relocations.
4862 2002-04-08  Ulrich Drepper  <drepper@redhat.com>
4864         * cppflags-iterator.mk (cpp-srcs-left): Define NOT_IN_libc instead
4865         of NOT_IN_LIBC.
4866         * include/libintl.h: Test for NOT_IN_libc not NOT_IN_LIBC.
4867         * include/stdlib.h: Likewise.
4869 2002-04-08  Jakub Jelinek  <jakub@redhat.com>
4871         * elf/Makefile (CFLAGS-.os): Define NOT_IN_libc and IS_IN_rtld
4872         instead of _RTLD_LOCAL.
4873         * elf/dl-dst.h: Use IS_IN_rtld instead of _RTLD_LOCAL.
4874         * include/unistd.h: Likewise.
4875         * sysdeps/generic/ldsodefs.h: Likewise.
4877         * stdio-common/_itoa.h (_itoa_word): Only use internal digit arrays
4878         if in libc or ld.so.
4880 2002-04-08  Andreas Jaeger  <aj@suse.de>
4882         * elf/cache.c (print_entry): Support x86-64.
4884 2002-04-08  Ulrich Drepper  <drepper@redhat.com>
4886         * include/stdlib.h: For libc itself replace MB_CUR_MAX definition
4887         with one accessing the locale data structures directly.
4888         * stdio-common/printf-prs.c: Include localeinfo.h for new
4889         MB_CUR_MAX definition.
4891         * Makeconfig (CPPFLAGS): Also add CPPFLAGS-<basename> where <basename>
4892         is the name of the source file without extension.
4893         * Makefile (distribute): Add cppflags-iterator.mk.
4894         * cppflags-iterator.mk: New file.
4895         * extra-lib.mk: For the sources of the library run
4896         cppflags-iterator.mk.
4898         * include/libintl.h: Declare __dcgettext_internal and
4899         _libc_intl_domainname_internal.  Define __dcgettext using these
4900         two symbols if used in libc itself.
4901         * argp/argp-help.c: Define dgettext using __dcgettext_internal and
4902         _libc_intl_domainname_internal.
4903         * argp/argp-parse.c: Likewise.
4904         * intl/dcgettext.c (__dcgettext): Use INTDEF to define alias.
4905         * intl/dgettext.c: Call __dcgettext_internal instead of __dcgettext.
4906         * intl/gettext.c: Likewise.
4907         * locale/SYS_libc.c (_libc_intl_domainname): Use INTDEF to define
4908         alias.
4909         * posix/regcomp.c (gettext): Use __dcgettext_internal instead of
4910         __dcgettext.
4911         * posix/regex_internal.c (gettext): Likewise.
4913 2002-04-08  Andreas Jaeger  <aj@suse.de>
4915         * sysdeps/unix/sysv/linux/x86_64/ldd-rewrite.sed: Fix rewrite rule.
4917         * sysdeps/x86_64/fpu/s_llrint.S: New.
4918         * sysdeps/x86_64/fpu/s_llrintf.S: New.
4919         * sysdeps/x86_64/fpu/s_llrintl.S: New.
4920         * sysdeps/x86_64/fpu/s_lrint.S: New.
4921         * sysdeps/x86_64/fpu/s_lrintf.S: New
4922         * sysdeps/x86_64/fpu/s_lrintl.S: New.
4924 2002-04-08  Roland McGrath  <roland@frob.com>
4926         * sysdeps/mach/hurd/dl-sysdep.c (__mmap): Use MAP_FAILED instead of
4927         widening __hurd_fail value.
4929 2002-04-07  Roland McGrath  <roland@frob.com>
4931         * sysdeps/mach/hurd/alpha/trampoline.c: Don't include
4932         <mach/machine/alpha_instruction.h>.
4933         (_hurd_setup_sighandler): Take proper arguments for current decls.
4934         Update code to use _hurdsig_catch_fault.
4935         Use `callsys' instruction instead of `call_pal'.
4936         * sysdeps/mach/hurd/alpha/intr-msg.h: New file.
4938         * sysdeps/mach/alpha/sysdep.h: Include <mach/alpha/asm.h>.
4939         (ALIGN, at, AT, fp): New macros.
4941 2002-04-06  Roland McGrath  <roland@frob.com>
4943         * mach/setup-thread.c (__mach_setup_thread): int -> natural_t
4945         * sysdeps/mach/hurd/dl-sysdep.c: Use ElfW(TYPE) in place of Elf32_TYPE.
4946         (__mmap): Use MAP_FAILED instead of widening __hurd_fail value.
4948         * sysdeps/mach/hurd/bind.c: Use prototype definition.
4949         * sysdeps/mach/hurd/connect.c: Likewise.
4950         * sysdeps/mach/hurd/getsockopt.c: Likewise.
4951         * sysdeps/mach/hurd/setsockopt.c: Likewise.
4953         * sysdeps/mach/hurd/alpha/sigreturn.c: Pass missing argument to
4954         __msg_sig_post RPC.
4956         * hurd/catch-exc.c: Use integer_t instead of int.
4957         * hurd/hurdfault.c: Likewise.
4959         * sysdeps/mach/hurd/alpha/exc2signal.c
4960         (_hurd_exception2signal): Rewritten.
4961         * sysdeps/mach/hurd/alpha/longjmp-ts.c
4962         (_hurd_longjmp_thread_state): Rewritten.
4964 2002-04-07  Ulrich Drepper  <drepper@redhat.com>
4966         * nss/getXXbyYY_r.c: If NSS_attribute_hidden is defined use it with the
4967         DB_LOOKUP_FCT prototype.
4968         * nss/getXXent_r.c: Likewise.
4969         * inet/getaliasent_r.c: Define NSS_attribute_hidden.
4970         * inet/getaliasname_r.c: Likewise.
4971         * inet/getnetbyad_r.c: Likewise.
4972         * inet/getnetbynm_r.c: Likewise.
4973         * inet/getnetent_r.c: Likewise.
4974         * inet/getproto_r.c: Likewise.
4975         * inet/getprtent_r.c: Likewise.
4976         * inet/getprtname_r.c: Likewise.
4977         * inet/getrpcbyname_r.c: Likewise.
4978         * inet/getrpcbynumber_r.c: Likewise.
4979         * inet/getrpcent_r.c: Likewise.
4980         * inet/getservent_r.c: Likewise.
4981         * inet/getsrvbynm_r.c: Likewise.
4982         * inet/getsrvbypt_r.c: Likewise.
4983         * shadow/getspent_r.c: Likewise.
4984         * shadow/getspnam_r.c: Likewise.
4986         * malloc/thread-m.h: Define __libc_tsd_MALLOC_data as static.
4988         * sysdeps/i386/elf/bsd-setjmp.S: Use GOTOFF for __sigjmp_save access.
4989         Use i686-friendly PIC code.
4990         * sysdeps/i386/elf/setjmp.S: Likewise.
4992         * sysdeps/unix/sysv/linux/i386/sysdep.h: Use i686-friendly PIC code.
4994         * sysdeps/mach/hurd/Versions: Add _dl_init_first to libc and ld export
4995         list.
4996         * elf/Versions: Remove it here.
4998 2002-04-06  Ulrich Drepper  <drepper@redhat.com>
5000         * iconvdata/tcvn5712-1.c (MAX_NEEDED_INPUT): Define for from
5001         direction.  Reported by H . J . Lu <hjl@lucon.org>.
5003 2002-04-05  Ulrich Drepper  <drepper@redhat.com>
5005         * intl/tst-gettext.sh: Set GCONV_PATH and LOCPATH to values for the
5006         test just before the test runs.
5007         * intl/tst-translit.sh: Likewise.
5008         * intl/tst-codeset.sh: Likewise.
5010         * timezone/zic.c: Update from tzcode2002c.
5011         * timezone/asia: Update from tzdata2002c.
5012         * timezone/backward: Likewise.
5013         * timezone/europe: Likewise.
5014         * timezone/northamerica: Likewise.
5015         * timezone/northamerica: Likewise.
5016         * timezone/northamerica: Likewise.
5017         * timezone/southamerica: Likewise.
5018         * timezone/zone.tab: Likewise.
5020 2002-03-23  Jakub Jelinek  <jakub@redhat.com>
5022         * sysdeps/generic/brk.c (__curbrk): Declare.
5023         * sysdeps/generic/dl-brk.c: Add attribute_hidden to __curbrk.
5024         * sysdeps/generic/dl-sbrk.c: Likewise.
5025         * sysdeps/unix/arm/dl-brk.S: New file.
5026         * sysdeps/unix/bsd/hp/m68k/dl-brk.S: New file.
5027         * sysdeps/unix/bsd/osf/alpha/dl-brk.S: New file.
5028         * sysdeps/unix/bsd/sun/m68k/dl-brk.S: New file.
5029         * sysdeps/unix/bsd/vax/dl-brk.S: New file.
5030         * sysdeps/unix/i386/dl-brk.S: New file.
5031         * sysdeps/unix/mips/dl-brk.S: New file.
5032         * sysdeps/unix/sparc/dl-brk.S: New file.
5033         * sysdeps/unix/sysv/linux/alpha/dl-brk.S: New file.
5034         * sysdeps/unix/sysv/linux/ia64/dl-brk.S: New file.
5035         * sysdeps/unix/sysv/linux/powerpc/dl-brk.S: New file.
5036         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-brk.S: New file.
5038 2002-04-03  Andreas Schwab  <schwab@suse.de>
5040         * Makefile (headers): Add gnu/lib-names.h here instead of
5041         install-others.
5042         ($(inst_includedir)/gnu/lib-names.h): Remove explicit
5043         installation rule.
5044         (install-headers): Add dependency on install-headers-nosubdir.
5045         * stdio-common/Makefile (headers): Add bits/stdio_lim.h here
5046         instead of install-others.
5047         ($(inst_includedir)/bits/stdio_lim.h): Remove explicit
5048         installation rule.
5050 2002-04-05  Ulrich Drepper  <drepper@redhat.com>
5052         * manual/users.tex (Enable/Disable Setuid): Fix typo in example.
5053         Reported by Sam Roberts <sroberts@uniserve.com>.
5055 2002-04-03  Jakub Jelinek  <jakub@redhat.com>
5057         * elf/do-rel.h (elf_dynamic_do_rel): Skip relative relocs if
5058         l_addr == 0 and ELF_MACHINE_REL_RELATIVE.
5059         * sysdeps/alpha/dl-machine.h (ELF_MACHINE_REL_RELATIVE): Define.
5060         * sysdeps/ia64/dl-machine.h (ELF_MACHINE_REL_RELATIVE): Define.
5062 2002-04-03  David Mosberger  <davidm@hpl.hp.com>
5064         * sysdeps/ia64/dl-machine.h (TRAMPOLINE_TEMPLATE): Add unwind info.
5065         (RTLD_START): Ditto.
5066         (__ia64_init_bootstrap_fdesc_table): Insert stop bit to avoid RAW
5067         dependency violation.
5069 2002-04-05  Jakub Jelinek  <jakub@redhat.com>
5071         * time/mktime.c (__mktime_internal): Move check for year < 70 below
5072         all variable declarations.
5074 2002-04-04  Andreas Schwab  <schwab@suse.de>
5076         * sysdeps/unix/sysv/linux/ia64/pipe.S: Don't overwrite r8 on error.
5078 2002-04-04  Andreas Jaeger  <aj@suse.de>
5080         * sysdeps/x86_64/fpu/e_sqrt.c: New file.
5081         * sysdeps/x86_64/fpu/e_sqrtf.c: New file.
5083         * sysdeps/x86_64/fpu/s_fabs.c: New file.
5084         * sysdeps/x86_64/fpu/s_fabsf.c: New file.
5085         * sysdeps/x86_64/fpu/s_fabsl.c: New file.
5087         * sysdeps/unix/sysv/linux/x86_64/time.S: New file.
5089         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S: New file.
5091         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: Removed.
5092         * sysdeps/unix/sysv/linux/x86_64/time.c: Removed.
5094         * configure.in: Handle all mips entries the same.
5096         * sysdeps/mips/dec/bits/endian.h: Removed since arch is not supported.
5097         * sysdeps/mips/mips3/*: Likewise.
5098         * sysdeps/mips/p40/bits/endian.h: Likewise.
5100 2002-04-04  Ulrich Drepper  <drepper@redhat.com>
5102         * misc/dirname.c (dirname): Ignore trailing slashes at end of
5103         non-null result [PR libc/2600].
5105         * misc/tst-dirname.c: Add more tests.
5107 2002-04-03  Ulrich Drepper  <drepper@redhat.com>
5109         * locale/programs/charmap.c (charmap_read): If the charmap doesn't
5110         define a code_set_name provide one based on the filename.
5112         * malloc/hooks.c: Define weak_variable correctly for _LIBC.
5114 2001-12-28  Andreas Jaeger  <aj@suse.de>
5116         * time/mktime.c (__mktime_internal): Check for year < 70
5117         [PR libc/2738].
5119 2002-04-03  Andreas Jaeger  <aj@suse.de>
5121         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Fix arguments for
5122         shmat.
5123         Reported by Andi Kleen <ak@suse.de>.
5125 2002-04-03  Ulrich Drepper  <drepper@redhat.com>
5127         * sysdeps/generic/w_lgamma.c: Initialized local_signgam.
5128         * sysdeps/generic/w_lgammaf.c: Likewise.
5129         * sysdeps/generic/w_lgammal.c: Likewise [PR libc/2854].
5131         * debug/catchsegv.sh (exval): Quote [ in pattern [PR libc/2902].
5132         Adjust for new output format of the backtrace functions.
5134         * misc/syslog.c (vsyslog): Only use cleanup handler if
5135         _LIBC_REENTRANT is defined [PR libc/2924].
5137         * libio/Makefile (tests): Add bug-ungetwc2.
5138         * libio/bug-ungetwc2.c: New file.
5140         * manual/install.texi: Typographical and grammatical cleanup.
5141         Patch by Dennis Grace <dgrace@us.ibm.com>.
5143         * sunrpc/rpc_svcout.c (write_real_program): Write "result, "
5144         parameter if mtflag.  Patch by <jeongyun@innovay.com>.
5146         * sunrpc/rpc_svcout.c (printif): Remove third parameter.  It was
5147         always "&".  Adjust callers.
5148         Add "_" prefix to several generated definitions.
5149         Patch by paul@serice.net [PR libc/3158].
5151 2002-04-02  Ulrich Drepper  <drepper@redhat.com>
5153         * sysdeps/unix/sysv/linux/arm/dl-procinfo.c: Completely specify
5154         size of _dl_arm_cap_flags.
5155         Patch by enrico.scholz@informatik.tu-chemnitz.de [PR libc/3155].
5157         * sysdeps/unix/sysv/linux/arm/dl-procinfo.h (_DL_HWCAP_COUNT):
5158         Define as 8.
5160 2002-03-22  H.J. Lu  <hjl@gnu.org>
5162         * scripts/firstversions.awk: Check the first version.
5164 2002-04-02  Ulrich Drepper  <drepper@redhat.com>
5166         * elf/dl-deps.c (_dl_map_object_deps): The sorting of the
5167         dependencies must be stable to work correctly.
5168         Reported by martin.lubich@datacon.at.
5170         * libio/bug-ungetwc1.c: New file.
5171         * libio/Makefile (tests): Add bug-ungetwc1.
5173         * libio/fileops.c (_IO_new_file_close_it): Only call _IO_do_flush
5174         if stream was last used for writing.
5176         * elf/do-lookup.h (do_lookup): 2 is the first user-defined version
5177         number [PR libc/3111].
5179         * libio/iofclose.c (_IO_new_fclose): Move freeing of backup buffer
5180         to ...
5181         * libio/fileops.c (_IO_new_file_close_it): ...here [PR libc/3190].
5183 2002-04-02  Jakub Jelinek  <jakub@redhat.com>
5185         * inet/ether_ntoh.c (__nss_ethers_lookup): Add internal_function.
5186         * inet/ether_hton.c (__nss_ethers_lookup): Likewise.
5187         * inet/getnetgrent_r.c (__nss_netgroup_lookup): Likewise.
5188         * sunrpc/netname.c (__nss_publickey_lookup): Likewise.
5189         * sunrpc/publickey.c (__nss_publickey_lookup): Likewise.
5191 2002-03-30  Jakub Jelinek  <jakub@redhat.com>
5193         * elf/dynamic-link.h (elf_get_dynamic_info): Don't abort on unknown
5194         dynamic tags.
5196 2002-03-29  Jakub Jelinek  <jakub@redhat.com>
5198         * sysdeps/i386/fpu/s_fabs.S: New file.
5199         * sysdeps/i386/fpu/s_fabsf.S: New file.
5200         * sysdeps/i386/fpu/s_fabsl.S: New file.
5201         * sysdeps/sparc/sparc64/fpu/s_fabs.c: New file.
5202         * sysdeps/sparc/sparc64/fpu/s_fabsf.c: New file.
5203         * sysdeps/sparc/sparc64/fpu/s_fabsl.c: New file.
5205 2002-04-02  Ulrich Drepper  <drepper@redhat.com>
5207         * rt/tst-shm.c (do_test): Add one more test for size of shared
5208         memory object.
5210 2002-03-29  Wolfram Gloger  <wg@malloc.de>
5212         * malloc/malloc.c: Add short description and prototypes for
5213         malloc_get_state, malloc_set_state and posix_memalign, for
5214         consistency and to avoid warnings with -Wstrict-prototypes.
5215         Reported by Andreas Jaeger <aj@suse.de>.
5217 2002-04-02  Ulrich Drepper  <drepper@redhat.com>
5219         * po/gl.po: Update from translation team.
5221 2002-03-31  Roland McGrath  <roland@frob.com>
5223         * hurd/hurdselect.c (_hurd_select): Fix
5224         MACH_MSG_TYPE_INTEGER_T -> integer_t in sizeof.
5225         Use a union rather than casts to compare mach_msg_type_t as int.
5227 2002-03-25  Roland McGrath  <roland@frob.com>
5229         * hurd/hurdchdir.c (_hurd_change_directory_port_from_name): Don't
5230         check off the end of NAME when it's shorter than 2 chars.
5231         Reported by Ognyan Kulev <ogi@fmi.uni-sofia.bg>.
5233 2002-03-17  Roland McGrath  <roland@frob.com>
5235         * sysdeps/mach/hurd/i386/sys/io.h: New file.
5236         * sysdeps/mach/hurd/i386/ioperm.c: New file.
5237         * sysdeps/mach/hurd/i386/Dist: Add them.
5238         * sysdeps/mach/hurd/i386/Versions
5239         (libc: GLIBC_2.2.6): New set, add ioperm.
5240         * sysdeps/mach/configure.in: New check to set HAVE_I386_IO_PERM_MODIFY.
5241         (mach_interface_list): Check for mach_i386.defs.
5242         * config.h.in (HAVE_I386_IO_PERM_MODIFY): #undef it.
5243         * sysdeps/mach/configure: Regenerated.
5245 2002-03-22  Ulrich Drepper  <drepper@redhat.com>
5247         * po/fr.po: Update from translation team.
5249 2002-03-21  Martin Schwidefsky  <schwidefsky@de.ibm.com>
5251         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Remove
5252         getpriority from syscalls list.
5254 2002-03-28  Andreas Jaeger  <aj@suse.de>
5256         * sysdeps/unix/sysv/linux/x86_64/swapcontext.S: New file.
5257         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: New file.
5258         * sysdeps/unix/sysv/linux/x86_64/setcontext.S: New file.
5259         * sysdeps/unix/sysv/linux/x86_64/ucontext_i.h: New file.
5261 2002-03-27  Andreas Jaeger  <aj@suse.de>
5263         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (struct
5264         sigcontext): Follow further kernel change.
5266         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Follow further
5267         kernel change.
5269         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h (GET_STACK):
5270         Change for struct sigcontext change.
5272         * sysdeps/unix/sysv/linux/x86_64/register-dump.h (register_dump):
5273         Follow changes in struct sigcontext.
5275         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Remove ptrace
5276         sysycall, use wrapper instead.
5278 2002-03-26  Andreas Jaeger  <aj@suse.de>
5280         * sysdeps/i386/i486/bits/string.h (__memcpy_by4): Describe memory
5281         read and write accesses as detailed as possible.
5282         (__memcpy_by2): Likewise.
5283         (__memcpy_g): Likewise.
5284         (memmove): Likewise.
5285         (memcmp): Likewise.
5286         (__memset_ccn_by4): Likewise.
5287         (__memset_ccn_by2): Likewise.
5288         (__memset_gcn_by4): Likewise.
5289         (__memset_gcn_by2): Likewise.
5290         (memchr): Likewise.
5291         (__memrchr): Likewise.
5292         (rawmemchr): Likewise.
5293         (__strlen_g): Likewise.
5294         (__strcpy_g): Likewise.
5295         (__mempcpy_by4): Likewise.
5296         (__mempcpy_by2): Likewise.
5297         (__mempcpy_byn): Likewise.
5298         (__stpcpy_g): Likewise.
5299         (__strncpy_by4): Likewise.
5300         (__strncpy_by2): Likewise.
5301         (__strncpy_byn): Likewise.
5302         (__strncpy_gg): Likewise.
5303         (__strcat_c): Likewise.
5304         (__strcat_g): Likewise.
5305         (__strncat_g): Likewise.
5306         (__strcmp_gg): Likewise.
5307         (__strncmp_g): Likewise.
5308         (__strchr_c): Likewise.
5309         (__strchr_g): Likewise.
5310         (__strchrnul_c): Likewise.
5311         (__strchrnul_g): Likewise.
5312         (__strrchr_c): Likewise.
5313         (__strrchr_g): Likewise.
5314         (__strrchr_c): Likewise.
5315         (__strrchr_g): Likewise.
5316         (__strcspn_c1): Likewise.
5317         (__strcspn_cg): Likewise.
5318         (__strcspn_g): Likewise.
5319         (__strcspn_g): Likewise.
5320         (__strspn_c1): Likewise.
5321         (__strspn_cg): Likewise.
5322         (__strspn_g): Likewise.
5323         (__strspn_g): Likewise.
5324         (__strpbrk_cg): Likewise.
5325         (__strpbrk_g): Likewise.
5326         (__strstr_cg): Likewise.
5327         (__strstr_g): Likewise.
5329         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Fix typo.  Reported by
5330         Michal Ludvig <mludvig@suse.cz>.
5332         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Add 32-bit
5333         compatibilty, adjust for kernel changes.
5335         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (struct
5336         sigcontext): Adjust for kernel changes.
5338 2002-03-25  Andreas Jaeger  <aj@suse.de>
5340         * iconv/gconv_simple.c (ucs4le_internal_loop_single): Handle
5341         little endian.
5342         Reported by Artur Zaprzala <zybi@talex.com.pl>.
5344 2002-03-24  Andreas Jaeger  <aj@suse.de>
5346         * manual/memory.texi (Aligned Memory Blocks): Fix typo.
5348         * stdio-common/tst-fdopen.c (main): Remove unused variable.
5350         * iconv/tst-iconv3.c (main): Use correct printf strings.
5352 2002-03-18  Roland McGrath  <roland@frob.com>
5354         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (struct cmsgcred): New type.
5355         (CMGROUP_MAX): New macro.
5357 2002-03-23  Roland McGrath  <roland@frob.com>
5359         * sysdeps/posix/shm_open.c (SHMDIR): /var/run/shm -> /dev/shm
5360         * sysdeps/posix/shm_unlink.c: Likewise.
5362 2002-03-22  Roland McGrath  <roland@frob.com>
5364         * shlib-versions [USE_IN_LIBIO] (.*-.*-gnu-gnu.*): Make 2.2.6 default.
5365         * sysdeps/mach/hurd/configure.in: Default oldest ABI is 2.2.6
5366         under --enable-libio.
5367         * sysdeps/mach/hurd/configure: Regenerated.
5369 2002-03-23  Roland McGrath  <roland@frob.com>
5371         * sysdeps/mach/hurd/i386/Makefile
5372         (sysdep_routines, shared-only-routines): Don't add framestate,
5373         reverting 2001-10-02 change.
5374         * sysdeps/unix/sysv/linux/arm/Makefile: Likewise.
5375         * sysdeps/unix/sysv/linux/alpha/Makefile: Likewise.
5376         * sysdeps/unix/sysv/linux/i386/Makefile: Likewise.
5377         * sysdeps/unix/sysv/linux/m68k/Makefile: Likewise.
5378         * sysdeps/unix/sysv/linux/mips/Makefile: Likewise.
5379         * sysdeps/unix/sysv/linux/powerpc/Makefile: Likewise.
5380         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Likewise.
5381         * sysdeps/unix/sysv/linux/sparc/Makefile: Likewise.
5382         * sysdeps/generic/Makefile (sysdep_routines, shared-only-routines):
5383         Do it here instead, only if [$(unwind-find-fde) = yes].
5385 2002-03-23  Andreas Jaeger  <aj@suse.de>
5387         * signal/signal.h: Fix typo. Patch by Steve Kemp
5388         <skx@tardis.ed.ac.uk>.
5390 2002-03-22  Andreas Jaeger  <aj@suse.de>
5392         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Add getresgid and
5393         getresuid.
5395         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (struct
5396         _fpstate): Rename fwd to ftw, use _fpxreg and _xmmreg.
5397         * sysdeps/unix/sysv/linux/x86_64/sys/user.h (struct
5398         user_fpregs_struct): Rename fwd.
5400         * sysdeps/unix/sysv/linux/x86_64/register-dump.h (register_dump):
5401         Follow sigcontext changes.
5403 2002-03-22  Andreas Jaeger  <aj@suse.de>
5405         * sysdeps/mips/bits/nan.h: New file.  Copy from generic one with
5406         changes for NaNs on MIPS.
5407         Patch by Hartvig Ekner <hartvige@mips.com>.
5409 2002-03-21  Ulrich Drepper  <drepper@redhat.com>
5411         * nscd/grpcache.c (addgrbyname): Improve buffer allocate with alloca.
5412         Use realloc if too large.
5413         (addgrbyid): Likewise.
5414         * nscd/hstcache.c (addhstbyname): Likewise.
5415         (addhstbyaddr): Likewise.
5416         (addhstbynamev6): Likewise.
5417         (addhstbyaddrv6): Likewise.
5418         * nscd/pwdcache.c (addpwbyname): Likewise.
5419         (addpwbyuid): Likewise.
5421 2002-03-21  Andreas Jaeger  <aj@suse.de>
5423         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (struct
5424         _fpstate): Add separate struct for x86-64.
5426         * sysdeps/unix/sysv/linux/x86_64/sys/user.h (struct
5427         user_fpregs_struct): Change member names to follow kernel.
5429 2002-03-20  Ulrich Drepper  <drepper@redhat.com>
5431         * nis/ypclnt.c (yp_all): Remove the hack introduced on 1998-09-29.
5432         Correctly close the UDP connection right away [PR libc/3120].
5434 2002-03-20  Andreas Jaeger  <aj@suse.de>
5436         * sysdeps/unix/sysv/linux/x86_64/sys/user.h (struct
5437         user_fpregs_struct): Fix for changed kernel struct.
5438         (struct user_regs_struct): Likewise.
5439         (struct user): Likewise.
5440         Add 32-bit x86 compatibility.
5442         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Add more registers.
5444 2002-03-19  Andreas Jaeger  <aj@suse.de>
5446         * sysdeps/unix/sysv/linux/x86_64/bits/types.h: Cleanup x86 types.
5448 2002-03-18  Andreas Jaeger  <aj@suse.de>
5450         * iconvdata/Makefile: Only run tests when shared libs are
5451         available.
5453 2002-03-17  Andreas Jaeger  <aj@suse.de>
5455         * sysdeps/mips/fpu/fraiseexcpt.c (__feraiseexcept): Set cause bits.
5457         * sysdeps/mips/fpu/fgetexcptflg.c (__fegetexceptflag): Add comment.
5459         * sysdeps/mips/fpu/fclrexcpt.c (__feclearexcept): Clear also cause
5460         bits.
5462         * sysdeps/mips/fpu/fenv_libc.h (CAUSE_MASK): New.
5463         (CAUSE_SHIFT): New.
5464         Patch by Hartvig Ekner <hartvige@mips.com>.
5466         * sysdeps/generic/unwind-dw2-fde-glibc.c: Add prototypes.
5467         * sysdeps/generic/unwind-pe.h: Likewise.
5469         * libio/iofdopen.c (_IO_new_fdopen): Pass parameter of correct
5470         type to _IO_setb.
5472         * libio/stdio.c (AL2): Define variant when visibility attribute is
5473         not supported.
5475         * include/libc-symbols.h (_INTVARDEF): Define variant when
5476         visibility attribute is not supported.
5478 2002-03-16  Ulrich Drepper  <drepper@redhat.com>
5480         * po/fr.po: Update from translation team.
5482 2002-02-25  Bruno Haible  <bruno@clisp.org>
5484         * MakeTAGS (extract): Use --sort-by-file instead of --sort-output.
5486 2002-03-15  Ulrich Drepper  <drepper@redhat.com>
5488         * libio/iofdopen.c (_IO_new_fdopen): Call _IO_setb to deallocate
5489         buffers if _IO_file_attach failed.
5491         * libio/fileops.c (_IO_file_open): Close file descriptor if
5492         _IO_SEEKOFF call failed.
5494 2002-03-15  H.J. Lu  <hjl@gnu.org>
5495             Ulrich Drepper  <drepper@redhat.com>
5497         * configure.in: Check for availability of
5498         init_array/fini_array/preinit_array handling in binutils.
5499         * config.h.in (HAVE_INITFINI_ARRAY): New macro.
5500         * config.make.in (have-initfini-array): New variable.
5502 2002-03-15  Ulrich Drepper  <drepper@redhat.com>
5504         * stdio-common/tst-printf.c (main): Comment out one test which
5505         checked the compiler's ability to fold floating-point constants
5506         but not really printf.
5507         (rfg3): Make s const.
5508         * stdio-common/tst-printf.sh: Adjust for removed test.
5510         * sysdeps/i386/i386-mcount.S: Just call __mcount_internal, it is an
5511         internal function.  Adjust for internal_function calling convention.
5512         * sysdeps/i386/machine-gmon.h: Declare and define __mcount_internal
5513         as internal_function.
5515         * sysdeps/generic/framestate.c: Declare fallback_frame_state_for as
5516         hidden.
5518         * nss/XXX-lookup.c (DB_LOOKUP_FCT): Add internal_function to
5519         declaration and definition.
5520         * nss/getXXbyYY_r.c (DB_LOOKUP_FCT): Add internal_function to
5521         declaration.
5522         * nss/getXXent_r.c: Likewise.
5523         * nss/nsswitch.h (db_lookup_function): Add internal_function to
5524         definition.
5526         * include/time.h: Declare __localtime_r as hidden.
5528         * include/aliases.h: Declare __getaliasent_r as hidden.
5529         * include/grp.h: Declare __getgrent_r as hidden.
5530         * include/netdb.h: Declare __gethostent_r, __getnetent_r,
5531         __getservent_r, and __getprotoent_r as hidden.
5532         * include/pwd.h: Declare __getpwent_r as hidden.
5533         * include/shadow.h: Declare __getspent_r as hidden.
5534         * include/rpc/netdb.h: Declare __getrpcent_r as hidden.
5536         * iconv/gconv_int.h: Declare __gconv_read_conf, __gconv_alias_compare,
5537         and __gconv_transliterate as hidden.
5538         Add internal_function to __gconv_get_path declaration.
5539         * iconv/gconv_conf.c: Add internal_function to __gconv_get_path
5540         definition.  Add attribute_hidden to __gconv_read_conf definition.
5542 2002-03-14  Ulrich Drepper  <drepper@redhat.com>
5544         * elf/rtld.c: Declare _environ as hidden.
5545         * sysdeps/generic/dl-environ.c: Likewise.
5546         * sysdeps/generic/dl-sysdep.c: Likewise.
5548         * sysdeps/generic/ldsodefs.h: Declare _dl_debug_state_internal and
5549         _dl_mcount_internal as hidden.
5551         * elf/Makefile (rtld-routines): Add dl-sbrk and dl-brk.
5552         * sysdeps/generic/dl-brk.c: New file.
5553         * sysdeps/generic/dl-sbrk.c: New file.
5554         * sysdeps/unix/sysv/linux/i386/dl-brk.c: New file.
5555         * sysdeps/unix/sysv/linux/i386/dl-sbrk.c: New file.
5557         * elf/dl-minimal.c (malloc): Declare _end as hidden.
5558         (__errno_location): New function.  Declare errno as hidden.
5559         * elf/rtld.c (_dl_argc): Define as hidden.
5560         (_dl_skip_args): Define as hidden.
5561         (_begin, _end): Declare as hidden.
5562         * sysdeps/generic/dl-sysdep.c (_end): Declare as hidden.
5563         * sysdeps/generic/entry.h (_start): Declare as hidden.
5564         * sysdeps/generic/ldsodefs.h (_dl_argc): Declare as hidden.
5565         * sysdeps/i386/dl-machine.h (elf_machine_runtime_setup): Declare
5566         _dl_runtime_resolve and _dl_runtime_profile as hidden.
5567         (RTLD_START): Use GOTOFF to access _dl_skip_args and _dl_fini.
5569 2002-03-14  Roland McGrath  <roland@frob.com>
5571         * Makerules ($(common-objpfx)Versions.v.i): Depend on abi-versions.h.
5573         * Makeconfig (%.v.i, %.v): New implicit rules.
5574         (preprocess-versions): Variable removed.
5575         ($(common-objpfx)shlib-versions.v.i): New target giving just the
5576         shlib-versions input files as dependencies.
5577         ($(common-objpfx)soversions.i): Depend on that instead of the input
5578         files.  Use it as input instead of using a pipeline.
5579         (postclean-generated): Append soversions.i, shlib-versions.v, and
5580         shlib-versions.v.i here.
5581         * Makerules ($(common-objpfx)Versions.def.v.i): New target giving just
5582         the Versions.def input files as dependencies.
5583         ($(common-objpfx)Versions.v.i): Likewise for Versions files.
5584         ($(common-objpfx)Versions.all): Depend on that instead of the input
5585         files.  Use it as input instead of using a pipeline.
5586         ($(common-objpfx)sysd-versions): Likewise with Versions.v.i.
5587         (postclean-generated): Append those .v and .v.i files here.
5589 2002-03-14  Jakub Jelinek  <jakub@redhat.com>
5591         * locale/broken_cur_max.c (__ctype_get_mb_cur_max): Use nl_langinfo.
5592         * locale/Versions (_nl_current_LC_COLLATE, _nl_current_LC_CTYPE):
5593         Remove.
5595 2002-03-14  Jakub Jelinek  <jakub@redhat.com>
5597         * sysdeps/generic/mp_clz_tab.c: New file.
5598         * sysdeps/i386/mp_clz_tab.c: New file.
5599         * sysdeps/hppa/mp_clz_tab.c: New file.
5600         * sysdeps/powerpc/mp_clz_tab.c: New file.
5601         * stdlib/Makefile (aux): Revert last patch.
5602         * math/Makefile (gmp-objs): Likewise.
5604 2002-03-13  Paul Eggert  <eggert@twinsun.com>
5606         * time/strftime.c: Comment fixes for references to obsolescent
5607         standards, In most cases the simplest fix is to remove the
5608         confusing comments.  Cross-referencing all the standards properly
5609         is a bit of a pain, and it should be enough to put that info in
5610         the documentation as I did in my recent time.texi patch.
5612 2002-03-13  Paul Eggert  <eggert@twinsun.com>
5614         * manual/time.texi (Formatting Calendar Time):
5615         ISO C99 also specifies the E and O modifiers.
5616         %P is a GNU extension, and is not in ISO C99.
5617         Mention that %r is equivalent to %I:%M:%S %p in the POSIX locale.
5618         %T is also in ISO C99.
5619         The RFC 822 example is not valid in arbitrary locales.
5620         Reword the POSIX.2 wording slightly, to make it a bit clearer
5621         that POSIX.2 formats are also supported by later POSIX versions.
5622         If a format was introduced in ISO C99 it is also required by
5623         POSIX.1-2001.
5625 2002-03-13  Ulrich Drepper  <drepper@redhat.com>
5627         * sysdeps/gnu/errlist.awk: Define _sys_errlist_internal and
5628         _sys_nerr_internal with INTVARDEF2.
5629         * include/libc-symbols.h (INTVARDEF2): New macro.
5630         * include/stdio.h (_sys_errlist_internal): Declare as hidden.
5631         (_sys_nerr_internal): Library.
5633         * sysdeps/posix/signal.c (_sigintr): Define as hidden.
5634         * sysdeps/posix/sigintr.c (_sigintr): Declare as hidden.
5636         * stdio-common/tst-printf.sh: Adjust for last change in tst-printf.c.
5638 2002-03-13  Wolfram Gloger  <wg@malloc.de>
5640         * malloc/malloc.c (sYSMALLOc): Don't change brk if mmap failed.
5642 2002-03-02  Andreas Schwab  <schwab@suse.de>
5644         * stdio-common/vfprintf.c (process_arg): Fix decimal format with
5645         'h' flag and positional arg.
5646         * stdio-common/tst-printf.c (rfg3): New function to test
5647         positional arguments.
5648         (main): Fix some warnings.
5650 2002-03-13  Jakub Jelinek  <jakub@redhat.com>
5652         * elf/dl-minimal.c (_itoa): Use _itoa_lower_digits_internal if SHARED.
5653         * elf/dl-reloc.c (_dl_reloc_bad_type): Likewise.
5655 2002-03-13  Ulrich Drepper  <drepper@redhat.com>
5657         * grp/initgroups.c (__nss_group_data): Declare as hidden.
5659         * include/locale.h (_nl_C_locobj): Declare as hidden.
5661         * time/asctime.c (_nl_C_LC_TIME): Declare as hidden.
5662         * time/strptime.c (_nl_C_LC_TIME): Likewise.
5664         * include/netinet/in.h (in6addr_any_internal): Mark as hidden.
5666         * include/sys/gmon.h: Declare _gmonparam as hidden.
5668         * locale/lc-ctype.c (__ctype32_wctype): Declare as hidden.
5669         (__ctype32_wctrans): Likewise.
5670         (__ctype32_width): Likewise.
5672         * sysdeps/unix/sysv/linux/ttyname.c: Comment out definition and
5673         use of __ttyname.
5675         * posix/regcomp.c (__re_error_msgid): Renamed from re_error_msgid.
5676         Define as hidden.
5677         (__re_error_msgid_idx): Renamed from re_error_msgid_idx.  Define as
5678         hidden.  Change all users of these variables.
5680         * posix/regex_internal.h (__re_error_msgid): Renamed from
5681         re_error_msgid.  Declare as hidden.
5682         (__re_error_msgid_idx): Renamed from re_error_msgid_idx.  Declare as
5683         hidden.
5685         * stdio-common/reg-printf.c (__printf_arginfo_table): Define as hidden.
5686         (__printf_function_table): Likewise.
5687         * stdio-common/printf-parse.h (__printf_arginfo_table): Declare as
5688         hidden.
5689         (__printf_function_table): Likewise.
5691         * nscd/nscd_proto.h: Declare __nss_not_use_nscd_passwd,
5692         __nss_not_use_nscd_group, and __nss_not_use_nscd_hosts as hidden.
5694         * nss/XXX-lookup.c (DATABASE_NAME_SYMBOL): Define as hidden.
5695         * nss/nsswitch.c: Declare _nss_*_database as hidden.
5697         * stdlib/wctomb.c (__no_r_state): Declare as hidden.
5698         * stdlib/mbtowc.c (__no_r_state): Define as hidden.
5700 2002-03-12  Ulrich Drepper  <drepper@redhat.com>
5702         * ctype/ctype-info.c: Declare _nl_C_LC_CTYPE_class,
5703         _nl_C_LC_CTYPE_class32, _nl_C_LC_CTYPE_toupper, _nl_C_LC_CTYPE_tolower,
5704         _nl_C_LC_CTYPE_class_upper, _nl_C_LC_CTYPE_class_lower,
5705         _nl_C_LC_CTYPE_class_alpha, _nl_C_LC_CTYPE_class_digit,
5706         _nl_C_LC_CTYPE_class_xdigit, _nl_C_LC_CTYPE_class_space,
5707         _nl_C_LC_CTYPE_class_print, _nl_C_LC_CTYPE_class_graph,
5708         _nl_C_LC_CTYPE_class_blank, _nl_C_LC_CTYPE_class_cntrl,
5709         _nl_C_LC_CTYPE_class_punct, _nl_C_LC_CTYPE_class_alnum,
5710         _nl_C_LC_CTYPE_map_toupper, _nl_C_LC_CTYPE_map_tolower, and
5711         _nl_C_LC_CTYPE_width: Declare as hidden.
5712         * include/locale.h: Declare _nl_locale_file_list.
5713         * locale/C-address.c: Define _nl_C_LC_ADDRESS as hidden.
5714         * locale/C-collate.c: Define _nl_C_LC_COLLATE as hidden.
5715         * locale/C-identification.c: Define _nl_C_LC_IDENTIFICATION as hidden.
5716         * locale/C-measurement.c: Define _nl_C_LC_MEASUREMENT as hidden.
5717         * locale/C-messages.c: Define _nl_C_LC_MESSAGES as hidden.
5718         * locale/C-monetary.c: Define _nl_C_LC_MONETARY as hidden.
5719         * locale/C-name.c: Define _nl_C_LC_NAME as hidden.
5720         * locale/C-numeric.c: Define _nl_C_LC_NUMERIC as hidden.
5721         * locale/C-paper.c: Define _nl_C_LC_PAPER as hidden.
5722         * locale/C-telephone.c: Define _nl_C_LC_TELEPHONE as hidden.
5723         * locale/C-time.c: Define _nl_C_LC_TIME as hidden.
5724         * locale/C-ctype.c: Define _nl_C_LC_CTYPE_class,
5725         _nl_C_LC_CTYPE_class32, _nl_C_LC_CTYPE_toupper, _nl_C_LC_CTYPE_tolower,
5726         _nl_C_LC_CTYPE_class_upper, _nl_C_LC_CTYPE_class_lower,
5727         _nl_C_LC_CTYPE_class_alpha, _nl_C_LC_CTYPE_class_digit,
5728         _nl_C_LC_CTYPE_class_xdigit, _nl_C_LC_CTYPE_class_space,
5729         _nl_C_LC_CTYPE_class_print, _nl_C_LC_CTYPE_class_graph,
5730         _nl_C_LC_CTYPE_class_blank, _nl_C_LC_CTYPE_class_cntrl,
5731         _nl_C_LC_CTYPE_class_punct, _nl_C_LC_CTYPE_class_alnum,
5732         _nl_C_LC_CTYPE_map_toupper, _nl_C_LC_CTYPE_map_tolower,
5733         _nl_C_LC_CTYPE_width, and as hidden.
5734         * locale/findlocale.c: Declare _nl_C as hidden.
5735         * locale/newlocale.c: Likewise.
5736         * locale/setlocale.c: Define _nl_C as hidden.  Remove declaration of
5737         _nl_locale_file_list.
5738         * locale/xlocale.c: Declare _nl_C_LC_CTYPE_class,
5739         _nl_C_LC_CTYPE_toupper, and _nl_C_LC_CTYPE_tolower as hidden.
5740         Define _nl_C_locobj as hidden.
5742         * malloc/mtrace.c (_mtrace_file): Define as hidden.
5743         (_mtrace_line): Likewise.
5745         * include/time.h: Declare __mon_yday as hidden.
5746         * time/strptime.c [_LIBC] (__mon_yday): Remove declaration.
5748         * libio/libioP.h: Declare __libio_codecvt as hidden.
5749         * libio/fileops.c: Declare __libio_translit as hidden.
5750         * libio/iofwide.c: Define __libio_translit as hidden.
5752         * login/getutent_r.c: Define __libc_utmp_lock as hidden.
5753         * login/getutid_r.c: Declare __libc_utmp_lock as hidden.
5754         * login/getutline_r.c: Likewise.
5755         * login/utmpname.c: Likewise.
5757         * login/utmp-private.h: Declare __libc_utmp_file_functions,
5758         __libc_utmp_unknown_functions, __libc_utmp_jump_table, and
5759         __libc_utmp_file_name as hidden.
5761         * locale/setlocale.c (__libc_setlocale_lock): Define as hidden.
5762         * locale/duplocale.c (__libc_setlocale_lock): Declare as hidden.
5763         * locale/freelocale.c: Likewise.
5764         * locale/lc-time.c: Likewise.
5766         * sysdeps/unix/bsd/getpt.c (__libc_ptyname1): Define as hidden.
5767         (__libc_ptyname2): Likewise.
5768         * sysdeps/unix/sysv/linux/ptsname.c (__libc_ptyname1): Declare as
5769         hidden.
5770         (__libc_ptyname2): Likewise.
5772         * sysdeps/generic/sbrk.c: Declare __libc_multiple_libcs as hidden.
5773         * sysdeps/arm/init-first.c (__libc_multiple_libcs): Define as hidden.
5774         * sysdeps/generic/init-first.c: Likewise.
5775         * sysdeps/i386/init-first.c: Likewise.
5776         * sysdeps/mach/hurd/i386/init-first.c: Likewise.
5777         * sysdeps/mach/hurd/mips/init-first.c: Likewise.
5778         * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
5779         * sysdeps/sh/init-first.c: Likewise.
5780         * sysdeps/unix/sysv/aix/init-first.c: Likewise.
5781         * sysdeps/unix/sysv/linux/init-first.c: Likewise.
5783         * stdio-common/itowa-digits.c (_itowa_lower_digits): Define as hidden.
5784         (_itowa_upper_digits): Likewise.
5786         * libio/stdio.c (_IO_stdin, _IO_stdout, _IO_stderr): Define as hidden.
5787         * libio/libio.h [_LIBC] (_IO_stdin, _IO_stdout, _IO_stderr): Declare
5788         as hidden.
5790         * libio/libioP.h: Declare _IO_file_jumps_mmap, _IO_wfile_jumps,
5791         _IO_wfile_jumps_mmap, _IO_proc_jumps, _IO_old_proc_jumps,
5792         _IO_str_jumps, _IO_wstr_jumps, _IO_file_jumps_internal,
5793         _IO_wfile_jumps_internal, and _IO_list_all_internal as hidden.
5795         * gmon/gmon.c (__bb_head): Define as hidden.
5796         * gmon/bb_exit_func.c (__bb_head): Declare as hidden.
5798         * argp/argp-parse.c (_argp_hang): Define as static.
5800         * include/libc-symbols.h (_INTVARDEF): Adjust for visibility
5801         handling in latest compilers.
5803         * inet/in6_addr.c (in6addr_any): Use INTVARDEF not INTDEF to
5804         define alias.
5805         * libio/fileops.c (_IO_file_jumps): Likewise.
5806         * libio/stdfiles.c (_IO_list_all): Likewise.
5807         * libio/wfileops.c (_IO_wfile_jumps): Likewise.
5809         * malloc/malloc.h: Move __libc_malloc_initialized declaration to
5810         include/malloc.h.
5811         * include/malloc.h: Add __libc_malloc_initialized declaration
5812         here.  Mark variable hidden.
5813         * malloc/malloc.c: Include <malloc.h> not "malloc.h".
5815         * elf/dl-open.c (__libc_argc): Declare as hidden.
5816         (__libc_argv): Likewise.
5817         * sysdeps/generic/wordexp.c (__libc_argc): Declare as hidden.
5818         (__libc_argv): Likewise.
5819         * sysdeps/mach/hurd/i386/init-first.c: Define __libc_argc and
5820         __libc_argv as hidden.
5821         * sysdeps/mach/hurd/mips/init-first.c: Likewise.
5822         * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
5823         * sysdeps/unix/sysv/aix/init-first.c: Likewise.
5824         * sysdeps/unix/sysv/linux/init-first.c: Likewise.
5826         * include/stdlib.h (__libc_drand48_data): Declare as hidden.
5827         * stdlib/drand48.c: Remove declaration of __libc_drand48_data here.
5828         * stdlib/erand48.c: Likewise.
5829         * stdlib/jrand48.c: Likewise.
5830         * stdlib/lcong48.c: Likewise.
5831         * stdlib/lrand48.c: Likewise.
5832         * stdlib/mrand48.c: Likewise.
5833         * stdlib/nrand48.c: Likewise.
5834         * stdlib/seed48.c: Likewise.
5835         * stdlib/srand48.c: Likewise.
5837         * stdio-common/_itoa.c (_itoa_base_table): Declare as hidden.
5838         (_itoa_lower_digits_internal): New declaration.
5839         (_itoa_upper_digits_internal): New declaration.
5840         (_itoa): Use INTUSE to acces _itoa_upper_digits and _itoa_lower_digits.
5841         * stdio-common.h (_itoa_lower_digits_internal): New declaration.
5842         (_itoa_upper_digits_internal): New declaration.
5843         (_itoa_word): Use INTUSE to acces _itoa_upper_digits and
5844         _itoa_lower_digits.
5845         * stdio-common/itoa-digits.c: Use INTVARDEF with _itoa_lower_digits.
5846         * stdio-common/itoa-udigits.c: Use INTVARDEF with _itoa_upper_digits.
5848         * elf/dl-minimal.c (_itoa): Declare _itoa_lower_digits as hidden.
5849         * elf/dl-reloc.c (_dl_reloc_bad_type): Likewise.
5851         * stdio-common/_itowa.c (_itoa_base_table): Declare as hidden.
5852         (_itowa_lower_digits): Likewise.
5853         (_itowa_upper_digits): Likewise.
5854         * stdio-common/_itowa.h (_itowa_lower_digits): Likewise.
5855         (_itowa_upper_digits): Likewise.
5857         * intl/plural-exp.h (attribute_hidden): Define as empty macro if
5858         not already defined.
5859         (GERMANIC_PLURAL): Declare as hidden.
5861         * posix/getopt.c (__getopt_initialized): Declare as hidden.
5862         (attribute_hidden): Define as empty macro if not already defined.
5864         * iconv/gconv_int.h (__gconv_path_elem): Declare hidden.
5865         (__gconv_max_path_elem_len): Likewise.
5866         (__gconv_path_envvar): Likewise.
5868         * math/Makefile (gmp-objs): Remove mp_clz_tab.
5869         * stdlib/Makefile (aux): Remove mp_clz_tab.
5870         * stdlib/mp_clz_tab.c: Removed.  Not needed anywhere.
5872         * stdlib/exit.h (__exit_funcs): Declare as hidden.
5874         * posix/bug-regex5.c (main): Use nl_langinfo instead of _NL_CURRENT.
5876         * locale/localeinfo.h: Add attribute_hidden to _nl_current_LC_XXX,
5877         _nl_category_names, _nl_category_name_sizes, _nl_current,
5878         _nl_C_name, _nl_POSIX_name, _nl_C_codeset, and _nl_C_LC_XXX.
5880         * intl/dcigettext.c (_nl_default_default_domain): Define as hidden.
5881         (_nl_current_default_domain): Likewise
5882         (_nl_state_lock): Likewise.
5883         * intl/textdomain.c (_nl_default_default_domain): Declare as hidden.
5884         (_nl_current_default_domain): Likewise
5885         (_nl_state_lock): Likewise.
5886         * intl/bindtextdom.c (_nl_state_lock): Likewise.
5888         * stdlib/fpioconst.h (__tens): Add attribute_hidden.
5889         (_fpioconst_pow10): Likewise.
5891         * include/time.h (_tmbuf): Add attribute_hidden.
5893         * time/tzset.c (tzstring_list): Define as static.
5895         * include/time.h: Add attribute_hidden to __tzname_cur_max and
5896         __use_tzfile declaration.
5898         * wcsmbs/wcsmbsload.h: Add attribute_hidden to __wcsmbs_gconv_fcts
5899         and __wcsmbs_last_locale declaration.
5901 2002-02-25  Paul Eggert  <eggert@twinsun.com>
5903         * timezone/Makefile (tzbases): Move systemv from here...
5904         (tzlinks): to here, since the entries in systemv were all changed
5905         from Zone to Link lines in tz-2001a.  Bug reported (and patch
5906         tested) by Peter Breitenlohner.
5908 2002-03-07  Jakub Jelinek  <jakub@redhat.com>
5910         * time/tst-posixtz.c (tests): Add new tests.
5911         (main): Test whether tzset() sets daylight properly.
5913 2002-03-06  Jakub Jelinek  <jakub@redhat.com>
5915         * time/tzset.c (tz_compute): Move __daylight, __tzname and
5916         __tzname_cur_max setting...
5917         (tzset_internal): ...here.
5919 2002-03-06  Jakub Jelinek  <jakub@redhat.com>
5921         * time/tzset.c (compute_change): Don't return any value.
5922         (tz_compute): Likewise.  Don't handle southern hemisphere here.
5923         (__tz_convert): But here.
5925 2002-03-11  Ulrich Drepper  <drepper@redhat.com>
5927         * manual/examples/mkfsock.c: Include <string.h> as well.
5928         Patch by Alain De Carolis <alaind@wseurope.com>.
5930 2002-03-06  Isamu Hasegawa  <isamu@yamato.ibm.com>
5932         * posix/regexec.c (re_match): Fix incorrect register sizes.
5933         (re_search): Likewise.
5935 2002-03-05  Isamu Hasegawa  <isamu@yamato.ibm.com>
5937         * posix/regcomp.c (regfree): Remove a disused condition.
5938         * posix/regex_internal.c (re_acquire_state): Likewise.
5939         (re_acquire_state_context): Likewise.
5940         (register_state): Remove a redundant malloc invocation.
5941         * posix/regex_internal.h: (re_state_table_entry): Simplify
5942         the structure.
5944 2002-03-05  Isamu Hasegawa  <isamu@yamato.ibm.com>
5946         * posix/regcomp.c (regcomp): Add __builtin_expect to error
5947         handling conditions.
5948         (regerror): Likewise.
5949         (regfree): Likewise.
5950         (re_compile_internal): Likewise.
5951         (init_dfa): Likewise.
5952         (init_word_char): Likewise.
5953         (create_initial_state): Likewise.
5954         (analyze): Likewise.
5955         (analyze_tree): Likewise.
5956         (duplicate_node): Likewise.
5957         (calc_eclosure): Likewise.
5958         (calc_eclosure_iter): Likewise.
5959         (parse): Likewise.
5960         (parse_reg_exp): Likewise.
5961         (parse_branch): Likewise.
5962         (parse_expression): Likewise.
5963         (parse_subexp): Likewise.
5964         (parse_dup_op): Likewise.
5965         (parse_bracket_exp): Likewise.
5966         (build_equiv_class): Likewise.
5967         (build_charclass): Likewise.
5968         (build_word_op): Likewise.
5969         (fetch_number): Likewise.
5970         (create_tree): Likewise.
5971         (duplicate_tree): Likewise.
5972         * posix/regex.c (BE): New macro.
5973         * posix/regexec.c (re_match): Add __builtin_expect to error
5974         handling conditions.
5975         (re_match_2): Likewise.
5976         (re_search): Likewise.
5977         (re_search_internal): Likewise.
5978         (check_matching): Likewise.
5979         (proceed_next_node): Likewise.
5980         (set_regs): Likewise.
5981         (sift_states_backward): Likewise.
5982         (add_epsilon_backreference): Likewise.
5983         (transit_state): Likewise.
5984         (transit_state_sb): Likewise.
5985         (transit_state_mb): Likewise.
5986         (transit_state_bkref): Likewise.
5987         (transit_state_bkref_loop): Likewise.
5988         (build_trtable): Likewise.
5989         (group_nodes_into_DFAstates): Likewise.
5990         (match_ctx_init): Likewise.
5991         (match_ctx_add_entry): Likewise.
5992         * posix/regex_internal.c (re_string_construct): Add __builtin_expect
5993         to error handling conditions.
5994         (re_string_construct_toupper): Likewise.
5995         (build_wcs_buffer): Likewise.
5996         (build_wcs_upper_buffer): Likewise.
5997         (build_upper_buffer): Likewise.
5998         (re_string_translate_buffer): Likewise.
5999         (re_node_set_alloc): Likewise.
6000         (re_node_set_init_1): Likewise.
6001         (re_node_set_init_2): Likewise.
6002         (re_node_set_init_copy): Likewise.
6003         (re_node_set_intersect): Likewise.
6004         (re_node_set_init_union): Likewise.
6005         (re_node_set_merge): Likewise.
6006         (re_node_set_insert): Likewise.
6007         (re_dfa_add_node): Likewise.
6008         (re_acquire_state): Likewise.
6009         (re_acquire_state_context): Likewise.
6010         (create_new_state_common): Likewise.
6011         (register_state): Likewise.
6012         (create_ci_new_state): Likewise.
6013         (create_cd_new_state): Likewise.
6014         (re_string_context_at): Remove redundant condition.
6016 2002-01-16  Roger Sayle  <roger@eyesopen.com>
6018         * sysdeps/i386/i686/strcmp.S: Avoid unconditional jump to a ret.
6020         * sysdeps/i386/i586/strlen.S: Fix typo in comment.
6022 2002-03-11  Jakub Jelinek  <jakub@redhat.com>
6024         * sysdeps/i386/elf/configure.in: Fix comment.
6026         * sysdeps/sparc/sparc64/configure.in: New.
6027         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_load_address): Fix
6028         if .dynamic comes before .got.
6029         * config.h.in (SPARC64_DYNAMIC_BEFORE_GOT): Add.
6031         * sysdeps/sparc/sparc64/hp-timing.h (HP_TIMING_DIFF,
6032         HP_TIMING_ACCUM): Fix typos.
6034 2002-03-11  Ulrich Drepper  <drepper@redhat.com>
6036         * string/strfry.c: Add some more randomness to the seed.
6037         Patch by James A Morrison <ja2morri@student.math.uwaterloo.ca>.
6039         * po/es.po: Update from translation team.
6040         * po/fr.po: Likewise.
6042         * stdio-common/tfformat.c (sprint_doubles): A test for %F format.
6044         * stdio-common/printf_fp.c (__printf_fp): Correct check for %F format
6045         when determining type of format.
6046         Patch by James Antill <james@anqd.org> [PR libc/2787].
6048 2002-03-04  Jakub Jelinek  <jakub@redhat.com>
6050         * sysdeps/unix/bsd/ftime.c (ftime): Don't return 1000 in millitm.
6052 2002-03-11  Roland McGrath  <roland@frob.com>
6054         * hurd/hurd/threadvar.h: Include <features.h> for __THROW macro.
6056         * Versions.def (libc): Add GLIBC_2.2.6.
6057         * hurd/Versions (libc: GLIBC_2.2.6): Add __errno_location.
6058         * sysdeps/mach/hurd/errnos.awk: In generated macro, use
6059         __errno_location instead of __hurd_errno_location, and don't inline it.
6060         * sysdeps/mach/hurd/bits/errno.h: Regenerated.
6061         * hurd/errno.c: New file.
6062         * hurd/Makefile (routines): Add errno.
6064 2002-03-11  Ulrich Drepper  <drepper@redhat.com>
6066         * stdio-common/vfprintf.c (vfprintf): Avoid crashing for
6067         ridiculously large widths and precisions [PR libc/3026].
6069 2002-03-11  Andreas Jaeger  <aj@suse.de>
6071         * sysdeps/unix/sysv/linux/s390/ldd-rewrite.sed: Fix for bi-arch
6072         support.
6073         Patch by Susanne Oberhauser <froh@SuSE.de>.
6075 2002-03-11  Ulrich Drepper  <drepper@redhat.com>
6077         * inet/rexec.c (ahostbuf): Define as static.
6079         * wctype/wcfuncs.c (__ctype32_wctype): Declare as hidden.
6080         (__ctype32_wctrans): Likewise.
6081         * wcsmbs/wcwidth.h (__ctype32_width): Declare as hidden.
6082         * ctype/ctype-info.c (__ctype32_wctype): Add attribute_hidden.
6083         (__ctype32_wctrans): Likewise.
6084         (__ctype32_width): Likewise.
6086         * gmon/Makefile (elide-routines.os): Add bb_init_func and bb_exit_func.
6087         They were never exported anyway.
6089         * gmon/gmon.c (_gmonparam): Add attribute_hidden.
6090         * gmon/sys/gmon.h: Remove declaration of _gmonparam.  It wasn't
6091         exported.
6092         * include/sys/gmon.h: Declare _gmonparam.
6094         * sysdeps/unix/sysv/linux/i386/getdents64.c: Don't define compatibility
6095         symbols for getdents64.  They were never exported.
6097 2002-03-09  Roland McGrath  <roland@frob.com>
6099         * hurd/hurdsig.c (write_corefile): Fix swapped arguments to __dir_link.
6100         Reported by Jon Arney <jarney1@cox.net>.
6102 2002-02-23  Roland McGrath  <roland@frob.com>
6104         * hurd/hurd/threadvar.h (__hurd_threadvar_location): Add __THROW to
6105         declaration.
6106         (__hurd_errno_location): Function removed.
6108 2002-03-06  Andreas Jaeger  <aj@suse.de>
6110         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Add compatibility for
6111         32-bit.
6113 2002-03-04  Andreas Jaeger  <aj@suse.de>
6115         * sysdeps/unix/sysv/linux/x86_64/readelflib.c: New.
6117         * sysdeps/unix/sysv/linux/kernel-features.h: Add defines for
6118         x86-64.
6120         * sysdeps/unix/sysv/linux/x86_64/bits/socket.h: New.
6122         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: New.
6124         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: New.
6126         * sysdeps/x86_64/bits/setjmp.h: New.
6128         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h: New.
6130         * sysdeps/unix/sysv/linux/x86_64/bits/resource.h: New.
6132         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Add compatibilty
6133         for x86.
6134         * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Likewise.
6135         * sysdeps/unix/sysv/linux/x86_64/bits/types.h: Likewise.
6137 2002-02-28  Bo Thorsen  <bo@suse.de>
6139         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Merge with i386
6140         version.
6142 2002-03-03  Andreas Jaeger  <aj@suse.de>
6144         * sysdeps/x86_64/bits/wordsize.h: New file.
6146         * elf/nodlopenmod2.c: Provide prototype to avoid warning.
6147         * elf/tst-tlsmod1.c: Likewise.
6149         * posix/regcomp.c: Get regex.h from include dir for internal
6150         prototypes.
6152         * sysdeps/unix/sysv/linux/init-first.c: Move __init_misc prototype
6153         to libc-internal.h and include it.
6154         * include/libc-internal.h: Add __init_misc.
6156         * misc/init-misc.c: Include libc-internal.h for prototypes.
6158         * sysdeps/wordsize-32/divdi3.c: Add prototypes to avoid warnings.
6160         * misc/error.c [_LIBC]: Include libioP.h for prototype of
6161         _IO_putc_internal.
6163 2002-03-03  Ulrich Drepper  <drepper@redhat.com>
6165         * posix/regcomp.c: Compatibility changes to allow using the code
6166         outside glibc.
6168 2002-02-28  Hartvig Ekner <hartvige@mips.com>
6170         * sysdeps/mips/elf/start.S: Added initialization of GP (to _gp) if
6171         compiled non-PIC.
6173 2002-03-02  Ulrich Drepper  <drepper@redhat.com>
6175         * sysdeps/generic/dl-sysdep.c (_dl_important_hwcaps): Fix creation
6176         of .str elements in the returned data structure.
6178         * elf/elf.h: Add Alpha TLS bits.
6180 2002-02-28  Jakub Jelinek  <jakub@redhat.com>
6182         * sysdeps/unix/sysv/linux/nice.c: New file.
6184 2002-03-01  Ulrich Drepper  <drepper@redhat.com>
6186         * elf/Makefile (dl-routines): Add dl-origin.
6187         (elide-routines.os): Add dl-origin.
6188         * elf/Versions [ld] (GLIBC_PRIVATE): Add _dl_get_origin.
6189         * elf/dl-debug.c (_dl_debug_initialize): Add missing INTUSE around
6190         _dl_debug_state.
6191         * include/libc-symbols.c: Define attribute_hidden depending on
6192         HAVE_VISIBILITY_ATTRIBUTE.  Add definition of INTVARDEF.
6194         * elf/dl-deps.c: Use INTUSE with __libc_enable_secure.
6195         * elf/dl-load.c: Likewise.
6196         * elf/rtld.c: Likewise.
6197         * include/unistd.h: Declare __libc_enable_secure_internal.
6198         * sysdeps/generic/dl-sysdep.c: Use INTVARDEF with __libc_enable_secure.
6199         Use INTUSE with __libc_enable_secure.
6200         * sysdeps/mach/hurd/dl-sysdep.c: Likewise.
6202         * elf/dl-deps.c: Use INTUSE with _dl_out_of_memory.
6203         * elf/dl-error.c: Likewise,
6204         * sysdeps/generic/ldsodefs.h: Declare _dl_out_of_memory_internal.
6206         * elf/dl-dst.h [_RTLD_GLOBAL]: Define _dl_get_origin to use INTUSE.
6207         * sysdeps/generic/dl-origin.c: Undefine _dl_get_origin macro before
6208         function definition.  Use INTDEF with _dl_get_origin.
6209         * sysdeps/unix/sysv/linux/dl-origin.c: Likewise.
6211         * elf/dl-init.c: Use INTUSE with _dl_starting_up.
6212         * elf/rtld.c: Likewise.  Use INTVARDEF for _dl_starting_up.
6214         * elf/dl-profile.c: Use INTDEF for _dl_mcount.
6215         * elf/dl-runtime.c: Use INTUSE with _dl_mcount.
6216         * sysdeps/generic/ldsodefs.h: Declare _dl_mcount_internal.
6218         * elf/dl-conflict.c: Use rtld_progrname instead of _dl_argv[0].
6219         * elf/dl-deps.c: Likewise.
6220         * elf/dl-error.c: Likewise.
6221         * elf/dl-fini.c: Likewise.
6222         * elf/dl-init.c: Likewise.
6223         * elf/dl-load.c: Likewise.
6224         * elf/dl-lookup.c: Likewise.
6225         * elf/dl-reloc.c: Likewise.
6226         * elf/dl-version.c: Likewise.
6227         * elf/do-lookup.h: Likewise.
6228         * sysdeps/arm/dl-machine.h: Likewise.
6229         * sysdeps/cris/dl-machine.h: Likewise.
6230         * sysdeps/hppa/dl-machine.h: Likewise.
6231         * sysdeps/i386/dl-machine.h: Likewise.
6232         * sysdeps/m68k/dl-machine.h: Likewise.
6233         * sysdeps/powerpc/dl-machine.h: Likewise.
6234         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
6235         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
6236         * sysdeps/sh/dl-machine.h: Likewise.
6237         * sysdeps/sparc/sparc-32/dl-machine.h: Likewise.
6238         * sysdeps/sparc/sparc-64/dl-machine.h: Likewise.
6239         * sysdeps/x86_64/dl-machine.h: Likewise.
6240         * elf/rtld.c: Use INTDEF for _dl_argv.  Use rtld_progrname instead of
6241         _dl_argv[0].  Use INTUSE with _dl_argv.
6242         * sysdeps/generic/dl-sysdep.c: Use INTUSE with _dl_argv.
6243         * sysdeps/generic/ldsodefs.h: Define rtld_progname macro.
6245 2002-02-28  Jakub Jelinek  <jakub@redhat.com>
6247         * elf/rtld.c (_rtld_global): Remove .protected.
6248         (_rtld_local): Strong alias to _rtld_global.
6249         * elf/Makefile (CFLAGS-.os): Add -D_RTLD_LOCAL if compiling rtld
6250         only .os object.
6251         * sysdeps/generic/ldsodefs.h (GL): If SHARED and _RTLD_LOCAL, use
6252         _rtld_local instead of _rtld_global.
6253         (_rtld_local): Add hidden extern, possibly in .sdata section.
6254         * configure.in: Add tests for visibility attribute and .sdata.
6255         * config.h.in: Add HAVE_VISIBILITY_ATTRIBUTE and HAVE_SDATA_SECTION.
6256         * sysdeps/alpha/dl-machine.h: Use _rtld_local instead of _rtld_global.
6257         * sysdeps/arm/dl-machine.h: Likewise.
6258         * sysdeps/generic/ldsodefs.h: Likewise.
6259         * sysdeps/hppa/dl-machine.h: Likewise.
6260         * sysdeps/cris/dl-machine.h: Likewise.
6261         * sysdeps/i386/dl-machine.h: Likewise.
6262         * sysdeps/ia64/dl-machine.h: Likewise.
6263         * sysdeps/m68k/dl-machine.h: Likewise.
6264         * sysdeps/mips/mips64/dl-machine.h: Likewise.
6265         * sysdeps/mips/dl-machine.h: Likewise.
6266         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
6267         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
6268         * sysdeps/sh/dl-machine.h: Likewise.
6269         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
6270         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
6271         * sysdeps/x86_64/dl-machine.h: Likewise.
6273 2002-02-28  Ulrich Drepper  <drepper@redhat.com>
6275         * login/login.c (login): Always initialize ut_line field
6276         [PR libc/2991].
6278 2002-02-28  Jakub Jelinek  <jakub@redhat.com>
6280         * sysdeps/i386/Makefile (sysdep_routines): Add
6281         divdi3 in csu dir.
6282         (shared-only-routines): Likewise.
6283         * sysdeps/m68k/Makefile (sysdep_routines): Likewise.
6284         (shared-only-routines): Likewise.
6285         * sysdeps/s390/s390-32/Makefile (sysdep_routines): Likewise.
6286         (shared-only-routines): Likewise.
6287         * sysdeps/wordsize-32/divdi3.c: New file.
6289 2002-02-28  Ulrich Drepper  <drepper@redhat.com>
6291         * locale/iso-4217.def: Remove obsolete currencies for countries
6292         with Euro.
6294 2002-02-28  Isamu Hasegawa  <isamu@yamato.ibm.com>
6296         * posix/regcomp.c (regcomp): Remove a redundant condition.
6297         (init_word_char): Add a check on malloc failure.
6298         (create_initial_state): Likewise.
6299         (duplicate_node): Likewise.
6300         (calc_eclosure): Likewise.
6301         (calc_eclosure_iter): Likewise.
6302         (parse_expression): Likewise.
6303         (parse_bracket_exp): Remove unnecessary malloc invocations.
6304         (build_equiv_class): Likewise.
6305         (build_charclass): Likewise.
6306         * posix/regex_internal.c (re_node_set_intersect): Add a check
6307         on malloc failure.
6308         (re_node_set_add_intersect): Likewise.
6309         (re_node_set_merge): Likewise.
6310         (re_acquire_state): Likewise.
6311         (re_acquire_state_context): Likewise.
6312         (create_newstate_common): Likewise.
6313         (register_state): Likewise.
6314         (create_ci_newstate): Likewise.
6315         (create_cd_newstate): Likewise.
6316         * posix/regex_internal.h: Fix prototypes of re_acquire_state
6317         and re_acquire_state_context.
6318         * posix/regexec.c (regexec): Suit it to the error handling of
6319         re_search_internal.
6320         (re_match): Likewise.
6321         (re_search): Likewise.
6322         (re_search_internal): Add a check on malloc failure.
6323         (acquire_init_state_context): Likewise.
6324         (check_matching): Likewise.
6325         (proceed_next_node): Likewise.
6326         (set_regs): Likewise.
6327         (sift_states_backward): Likewise.
6328         (sift_states_iter_bkref): Likewise.
6329         (add_epsilon_backreference): Likewise.
6330         (transit_state): Likewise.
6331         (transit_state_sb): Likewise.
6332         (transit_state_mb): Likewise.
6333         (transit_state_bkref_loop): Likewise.
6334         (build_trtable): Likewise.
6335         (group_nodes_into_DFAstates): Likewise.
6336         (match_ctx_init): Likewise.
6337         (match_ctx_add_entry): Likewise.
6339 2002-02-27  Ulrich Drepper  <drepper@redhat.com>
6341         * elf/dl-load.c (_dl_map_object_from_fd): Always add SONAME to
6342         l_libname if profiling is enabled [PR libc/2916].
6344         * sysdeps/ia64/dl-tls.h: New file.
6346 2002-02-27  Jakub Jelinek  <jakub@redhat.com>
6348         * sysdeps/alpha/dl-machine.h (elf_machine_load_address, RTLD_START):
6349         Work around an Alpha gas bug.
6351 2002-02-27  Ulrich Drepper  <drepper@redhat.com>
6353         * catgets/open_catalog.c (__open_catalog): Fix typo in code which
6354         uses read to load the catalog.
6355         Patch by Andy Isaacson <adi@unlimitedscale.com> [PR libc/3011].
6357 2002-02-26  Ulrich Drepper  <drepper@redhat.com>
6359         * posix/Makefile (distribute): Add regcomp.c, regexec.c,
6360         regex_internal.c, and regex_internal.h.
6361         (CFLAGS-regex.c): Replace -DMBS_SUPPORT with -DRE_ENABLE_I18N.
6362         * posix/regex.c: Complete rewrite.
6363         * posix/regexec.c: New file.
6364         * posix/regcomp.c: New file.
6365         * posix/regex_internal.c: New file.
6366         * posix/regex_internal.h: New file.
6367         * posix/regex.h (RE_ICASE): New macro.
6368         Contributed by Isamu Hasegawa <isamu@yamato.ibm.com>.
6370         * stdio-common/vfscanf.c (_IO_vfwscanf): Always use ungetc, never
6371         ungetwc.  It's a macro.
6372         * libio/tst-swscanf.c (do_test): Adjust for now fixed wscanf
6373         implementation.
6374         Reported by Jason Merrill <jason@redhat.com>.
6376 2002-02-25  Jakub Jelinek  <jakub@redhat.com>
6378         * libio/iofopen.c (__fopen_maybe_mmap): Set the initial
6379         position to fp->_offset if it is set.
6380         * stdio-common/Makefile (tests): Add tst-fdopen.
6381         * stdio-common/tst-fdopen.c: New test.
6383 2002-02-25  Jakub Jelinek  <jakub@redhat.com>
6385         * libio/fileops.c (_IO_file_xsgetn_mmap): Handle reading from backup.
6386         * stdio-common/tst-ungetc.c (main): Add another test.
6388 2002-02-25  Ulrich Drepper  <drepper@redhat.com>
6390         * assert/assert-perr.c: Use INTUSE to reference functions and variables
6391         inside libc itself.  Use INTDEF and INTDEF2 to define appropriate
6392         aliases.  Add prototypes for the new aliases.
6393         * assert/assert.c: Likewise.
6394         * include/libc-symbols.h: Likewise.
6395         * include/stdio.h: Likewise.
6396         * include/netinet/in.h: Likewise.
6397         * include/rpc/auth.h: Likewise.
6398         * include/rpc/auth_unix.h: Likewise.
6399         * include/rpc/key_prot.h: Likewise.
6400         * include/rpc/pmap_prot.h: Likewise.
6401         * include/rpc/pmap_rmt.h: Likewise.
6402         * include/rpc/rpc_msg.h: Likewise.
6403         * include/rpc/xdr.h: Likewise.
6404         * inet/gethstbyad_r.c: Likewise.
6405         * inet/gethstbynm2_r.c: Likewise.
6406         * inet/gethstbynm_r.c: Likewise.
6407         * inet/gethstent_r.c: Likewise.
6408         * inet/in6_addr.c: Likewise.
6409         * libio/__fpurge.c: Likewise.
6410         * libio/filedoalloc.c: Likewise.
6411         * libio/fileops.c: Likewise.
6412         * libio/ftello.c: Likewise.
6413         * libio/ftello64.c: Likewise.
6414         * libio/genops.c: Likewise.
6415         * libio/iofclose.c: Likewise.
6416         * libio/iofdopen.c: Likewise.
6417         * libio/iofflush.c: Likewise.
6418         * libio/iofflush_u.c: Likewise.
6419         * libio/iofgetpos.c: Likewise.
6420         * libio/iofgetpos64.c: Likewise.
6421         * libio/iofgets.c: Likewise.
6422         * libio/iofgets_u.c: Likewise.
6423         * libio/iofopen.c: Likewise.
6424         * libio/iofopncook.c: Likewise.
6425         * libio/iofputs.c: Likewise.
6426         * libio/iofread.c: Likewise.
6427         * libio/iofread_u.c: Likewise.
6428         * libio/iofsetpos.c: Likewise.
6429         * libio/iofsetpos64.c: Likewise.
6430         * libio/ioftell.c: Likewise.
6431         * libio/iofwrite.c: Likewise.
6432         * libio/iogetline.c: Likewise.
6433         * libio/iogets.c: Likewise.
6434         * libio/iogetwline.c: Likewise.
6435         * libio/iolibio.h: Likewise.
6436         * libio/iopadn.c: Likewise.
6437         * libio/iopopen.c: Likewise.
6438         * libio/ioseekoff.c: Likewise.
6439         * libio/ioseekpos.c: Likewise.
6440         * libio/iosetbuffer.c: Likewise.
6441         * libio/iosetvbuf.c: Likewise.
6442         * libio/ioungetc.c: Likewise.
6443         * libio/ioungetwc.c: Likewise.
6444         * libio/iovdprintf.c: Likewise.
6445         * libio/iovsprintf.c: Likewise.
6446         * libio/iovsscanf.c: Likewise.
6447         * libio/libioP.h: Likewise.
6448         * libio/memstream.c: Likewise.
6449         * libio/obprintf.c: Likewise.
6450         * libio/oldfileops.c: Likewise.
6451         * libio/oldiofclose.c: Likewise.
6452         * libio/oldiofdopen.c: Likewise.
6453         * libio/oldiofgetpos.c: Likewise.
6454         * libio/oldiofgetpos64.c: Likewise.
6455         * libio/oldiofopen.c: Likewise.
6456         * libio/oldiofsetpos.c: Likewise.
6457         * libio/oldiofsetpos64.c: Likewise.
6458         * libio/oldiopopen.c: Likewise.
6459         * libio/oldstdfiles.c: Likewise.
6460         * libio/putc.c: Likewise.
6461         * libio/setbuf.c: Likewise.
6462         * libio/setlinebuf.c: Likewise.
6463         * libio/stdfiles.c: Likewise.
6464         * libio/stdio.c: Likewise.
6465         * libio/strops.c: Likewise.
6466         * libio/vasprintf.c: Likewise.
6467         * libio/vscanf.c: Likewise.
6468         * libio/vsnprintf.c: Likewise.
6469         * libio/vswprintf.c: Likewise.
6470         * libio/wfiledoalloc.c: Likewise.
6471         * libio/wfileops.c: Likewise.
6472         * libio/wgenops.c: Likewise.
6473         * libio/wstrops.c: Likewise.
6474         * malloc/mtrace.c: Likewise.
6475         * misc/error.c: Likewise.
6476         * misc/syslog.c: Likewise.
6477         * nss/getXXbyYY_r.c: Likewise.
6478         * nss/getXXent_r.c: Likewise.
6479         * nss/hosts-lookup.c: Likewise.
6480         * stdio-common/getw.c
6481         * stdio-common/printf-prs.c: Likewise.
6482         * stdio-common/printf_fp.c: Likewise.
6483         * stdio-common/printf_size.c: Likewise.
6484         * stdio-common/putw.c: Likewise.
6485         * stdio-common/scanf.c: Likewise.
6486         * stdio-common/sprintf.c: Likewise.
6487         * stdio-common/tmpfile64.c: Likewise.
6488         * stdio-common/vfprintf.c: Likewise.
6489         * stdio-common/vfscanf.c: Likewise.
6490         * stdlib/strfmon.c: Likewise.
6491         * sunrpc/auth_des.c: Likewise.
6492         * sunrpc/auth_none.c: Likewise.
6493         * sunrpc/auth_unix.c: Likewise.
6494         * sunrpc/authdes_prot.c: Likewise.
6495         * sunrpc/authuxprot.c: Likewise.
6496         * sunrpc/clnt_perr.c: Likewise.
6497         * sunrpc/clnt_raw.c: Likewise.
6498         * sunrpc/clnt_tcp.c: Likewise.
6499         * sunrpc/clnt_udp.c: Likewise.
6500         * sunrpc/clnt_unix.c: Likewise.
6501         * sunrpc/key_call.c: Likewise.
6502         * sunrpc/key_prot.c: Likewise.
6503         * sunrpc/openchild.c: Likewise.
6504         * sunrpc/pm_getmaps.c: Likewise.
6505         * sunrpc/pm_getport.c: Likewise.
6506         * sunrpc/pmap_clnt.c: Likewise.
6507         * sunrpc/pmap_prot.c: Likewise.
6508         * sunrpc/pmap_prot2.c: Likewise.
6509         * sunrpc/pmap_rmt.c: Likewise.
6510         * sunrpc/rpc_cmsg.c: Likewise.
6511         * sunrpc/rpc_prot.c: Likewise.
6512         * sunrpc/svc_authux.c: Likewise.
6513         * sunrpc/svc_raw.c: Likewise.
6514         * sunrpc/svc_simple.c: Likewise.
6515         * sunrpc/svc_tcp.c: Likewise.
6516         * sunrpc/svc_udp.c: Likewise.
6517         * sunrpc/svc_unix.c: Likewise.
6518         * sunrpc/xdr.c: Likewise.
6519         * sunrpc/xdr_array.c: Likewise.
6520         * sunrpc/xdr_mem.c: Likewise.
6521         * sunrpc/xdr_rec.c: Likewise.
6522         * sunrpc/xdr_ref.c: Likewise.
6523         * sunrpc/xdr_stdio.c: Likewise.
6524         * sysdeps/generic/_strerror.c: Likewise.
6525         * sysdeps/generic/printf_fphex.c: Likewise.
6526         * sysdeps/generic/tmpfile.c: Likewise.
6527         * sysdeps/gnu/errlist.awk: Likewise.
6528         * sysdeps/gnu/errlist.c: Likewise.
6530         * libio/Makefile (routines): Remove iosprint.
6531         * libio/iosprintf.c: Removed
6534 2002-02-24  Ulrich Drepper  <drepper@redhat.com>
6536         * elf/dl-support.c (_dl_non_dynamic_init): Renamed from
6537         non_dynamic_init and exported now.
6538         * sysdeps/unix/sysv/linux/ldsodefs.h: Declare _dl_non_dynamic_init.
6539         * sysdeps/unix/sysv/linux/init-first.c: Call _dl_non_dynamic_init for
6540         !SHARED.
6541         * sysdeps/mach/hurd/i386/init-first.c: Likewise.
6542         * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
6543         * sysdeps/mach/hurd/mips/init-first.c: Likewise.
6545 2002-02-23  Ulrich Drepper  <drepper@redhat.com>
6547         * elf/dl-close.c (free_slotinfo): Check for end of list and return
6548         true in this case.
6550         * locale/iso-639.def: Add language codes for Walloon.
6552         * elf/dl-fini.c (_dl_fini): Print some final statistics on the
6553         total number of relocations performed.
6555         * elf/sprof.c (load_profdata): If do_test provide information as
6556         to why loading failed.
6557         * elf/dl-profile.c (_dl_start_profile): Initialize all of
6558         hist_hdr.dimen.
6560         * csu/set-init.c: Moved to...
6561         * sysdeps/mach/hurd/set-init.c: ...here.  New file.
6562         * csu/Makefile: Don't compile set-init.
6563         * sysdeps/mach/hurd/Makefile: Compile set-init for subdir csu.
6564         * sysdeps/mach/hurd/i386/init-first.c: Call __init_misc in addition
6565         to __libc_init.
6566         * sysdeps/mach/hurd/mips/init-first.c: Likewise.
6567         * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
6568         * sysdeps/unix/sysv/linux/init-first.c: Call __init_misc instead of
6569         __libc_init.
6570         * misc/init-misc.c: Always export __init_misc.  Don't define hooks for
6571         __libc_subinit.
6573 2002-02-22  Ulrich Drepper  <drepper@redhat.com>
6575         * elf/Versions: Add _dl_allocate_tls and _dl_deallocate_tls.
6576         * elf/rtld.c (dl_main): Use _dl_allocate_tls with INTUSE.
6577         * sysdeps/generic/dl-tls.c: Add INTDEF for _dl_allocate_tls.
6578         (_dl_deallocate_tls): New function.
6579         * sysdeps/generic/ldsodefs.h: Declare _dl_allocate_tls_internal and
6580         _dl_deallocate_tls.
6582 2002-02-21  Jakub Jelinek  <jakub@redhat.com>
6584         * libio/fileops.c (_IO_file_seekoff_mmap): Fix fseek SEEK_END.
6585         * stdio-common/tst-fseek.c (main): Add test for this.
6587 2002-02-19  Ulrich Drepper  <drepper@redhat.com.>
6589         * stdlib/Versions: Move __on_exit to GLIBC_PRIVATE.
6591 2002-02-19  Jakub Jelinek  <jakub@redhat.com>
6593         * libio/fileops.c (_IO_file_underflow_mmap): Cast to unsigned char
6594         pointer before dereferencing.
6596 2002-02-18  Roland McGrath  <roland@frob.com>
6598         * sysdeps/mach/hurd/times.c: Fix typo in last change.
6600         * sysdeps/mach/hurd/setpriority.c [POLICY_TIMESHARE_BASE_COUNT]:
6601         Use task_policy in place of task_priority.
6603         * sysdeps/generic/bits/mman.h
6604         (MS_ASYNC, MS_SYNC, MS_INVALIDATE): New macros.
6605         * sysdeps/mach/msync.c: New file.
6607         * sysdeps/mach/powerpc/syscall.S: New file.
6609         * mach/msg.c [MACH_MSG_OVERWRITE]
6610         (__mach_msg_trap, __mach_msg_overwrite): New functions.
6611         * mach/Versions (libc: GLIBC_2.0): Add mach_msg_overwrite and __ name.
6613         * sysdeps/mach/configure.in: Check for clock.defs to put into
6614         mach_interface_list.
6615         * sysdeps/mach/configure: Regenerated.
6617         * mach/Makefile (mach-machine): New variable, set from $(base-machine).
6618         ($(objpfx)mach-syscalls.mk): Use it in place of $(base-machine).
6619         ($(mach-syscalls:%=$(objpfx)%.S) static pattern rule):
6620         Use <mach/machine/syscall_sw.h> instead of <sysdep.h>.
6621         (mach-shortcuts): Add device_read_overwrite_request,
6622         device_read_overwrite, vm_read_overwrite, thread_switch.
6624         * configure.in (base_machine): Set to $machine by default.
6625         * configure: Regenerated.
6627         * sysdeps/mach/configure.in: Check for <mach/machine/ndr_def.h>
6628         or <machine/ndr_def.h> and add -DNDR_DEF_HEADER=... to DEFINES.
6629         * sysdeps/mach/configure: Regenerated.
6630         * mach/mach_init.c [NDR_DEF_HEADER]: #include it.
6632         * hurd/hurdfault.c (_hurdsig_fault_init): Add a cast.
6634         * hurd/hurd/signal.h: Include <setjmp.h> for `jmp_buf' decl.
6636         * mach/msgserver.c (__mach_msg_server_timeout) [! MACH_RCV_LARGE]:
6637         Double MAX_SIZE and don't retry on MACH_RCV_TOO_LARGE.
6639 2002-02-17  Roland McGrath  <roland@frob.com>
6641         * sysdeps/mach/hurd/times.c
6642         [NO_CREATION_TIME] (startup_time): New static variable.
6643         [NO_CREATION_TIME] (times_init): New static function in __libc_subinit.
6644         (__times) [NO_CREATION_TIME]: Use startup_time in lieu of task
6645         creation_time from task_basic_info.
6646         (__times): Use __gettimeofday instead of __host_get_time.
6648         * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg) [! MACH_MSG_TYPE_BIT]:
6649         Use untyped Mach IPC message format.
6651         * hurd/catch-exc.c: Include <assert.h>, missing from last change.
6653         * hurd/Versions (libc: GLIBC_2.0): Add _S_catch_exception_raise_state,
6654         _S_catch_exception_raise_state_identity,
6655         _hurdsig_fault_catch_exception_raise_state,
6656         _hurdsig_fault_catch_exception_raise_state_identity.
6658         * mach/shortcut.awk: Don't apply the /^}$/ rule when $proto == "".
6660         * sysdeps/mach/getsysstats.c (__get_avphys_pages) [HOST_VM_INFO]: Use
6661         __host_info with HOST_VM_INFO flavor instead of __vm_statistics.
6663         * sysdeps/mach/hurd/getpriority.c [TASK_SCHED_TIMESHARE_INFO]: Find
6664         `base_priority' in PIP->timeshare_base_info instead of PIP->taskinfo.
6666         * sysdeps/mach/hurd/dl-sysdep.c [FMH]: Define for i386 only.
6667         (fmh, unfmh): Define these functions only #if FMH.  Otherwise define
6668         them as no-op macros.
6669         [FMH] (ELF_MACHINE_USER_ADDRESS_MASK): Redefine it to zero.
6670         (__mmap): Uncomment uses of ELF_MACHINE_USER_ADDRESS_MASK.
6672         * sysdeps/powerpc/dl-machine.h
6673         (ELF_MACHINE_USER_ADDRESS_MASK): New macro.
6675         * hurd/hurdselect.c (_hurd_select) [MACH_MSG_TRAILER_MINIMUM_SIZE]:
6676         Use untyped Mach IPC message format.
6678         * sysdeps/mach/hurd/ioctl.c (__ioctl) [! MACH_MSG_TYPE_BIT]:
6679         Handle untyped Mach IPC message formats.
6681         * hurd/catch-exc.c (_S_catch_exception_raise) [EXC_MASK_ALL]:
6682         Expect different argument conventions when this is defined.
6683         [EXC_MASK_ALL] (_S_catch_exception_raise_state): New stub function.
6684         [EXC_MASK_ALL] (_S_catch_exception_raise_state_identity): Likewise.
6685         * hurd/hurdfault.c: Likewise for _hurdsig_fault_catch_exception_*.
6686         [NDR_CHAR_ASCII] (mig_reply_header_t): #define as mig_reply_error_t
6687         for OSF Mach variant.
6688         (faulted): Use mig_reply_error_t for REPLY.
6689         (_hurdsig_fault_init) [EXC_MASK_ALL]: Use EXCEPTION_STATE_IDENTITY
6690         in __thread_set_exception_ports call.
6691         (_hurdsig_fault_init) [MACH_PORT_RECEIVE_STATUS]: Use
6692         __mach_port_set_attributes in place of __mach_port_set_qlimit.
6694         * sysdeps/mach/powerpc/sysdep.h (_MACH_MACHINE_ASM_H): Define this
6695         before include <sysdeps/mach/sysdep.h>, to inhibit <mach/machine/asm.h>
6696         on Darwin, which includes bogons.
6698         * sysdeps/powerpc/dl-machine.h (elf_machine_rela): Move local
6699         variable LOADBASE so it's not declared when it's not used.
6701 2002-02-16  Roland McGrath  <roland@frob.com>
6703         * sysdeps/mach/hurd/times.c (__times) [NO_CREATION_TIME]: Don't try
6704         to use BI.creation_time.
6706         * mach/Machrules (MIG): Add -x c to CPP value passed down.
6708         * config.h.in: Add #undef HAVE_HOST_PAGE_SIZE.
6709         * sysdeps/mach/configure.in: Check for host_page_size RPC to define it.
6710         * mach/mach_init.c (__mach_init) [HAVE_HOST_PAGE_SIZE]: Use
6711         host_page_size instead of vm_statistics.
6713         * sysdeps/mach/Makefile (mach-before-compile): Don't include
6714         mach_interface.h here, since not all variants use that name.
6716         * sysdeps/mach/configure.in: Add some checks for Mach headers
6717         to ensure a sane installation.
6718         (mach_interface_list): Define this variable by checking for .defs
6719         files found in various variants.
6720         * configure.in (mach_interface_list): AC_SUBST this.
6721         * config.make.in (mach-interface-list): New substituted variable.
6722         * mach/Makefile (user-interfaces): Define this using the value
6723         of $(mach-interface-list) instead of mach, mach4.
6724         Updated other references to mach_interface to use it as well.
6726         * sysdeps/mach/powerpc/machine-lock.h: Avoid multi-line strings.
6728         * mach/msgserver.c [NDR_CHAR_ASCII] (mig_reply_header_t): #define as
6729         mig_reply_error_t for OSF Mach variant.
6731         * mach/Makefile (routines): Remove bootprivport.
6732         * mach/bootprivport.c: File removed.  It has never been used.
6734         * mach/msg-destroy.c (__mach_msg_destroy) [MACH_MSG_PORT_DESCRIPTOR]:
6735         Grok the OSF flavor of message format.
6736         (mach_msg_destroy_port): For MAKE_SEND and
6737         MAKE_SEND_ONCE rights, create an destroy a right to ensure proper
6738         no-senders notification.
6740 2002-02-06  Roland McGrath  <roland@frob.com>
6742         * hurd/Versions (libc: GLIBC_2.0): Move cthread_fork, cthread_detach
6743         to here if 2.0 compatibility enabled ...
6744         (libc: GLIBC_2.1.3): ... from here.
6746 2002-02-15  Ulrich Drepper  <drepper@redhat.com>
6748         * elf/dl-open.c (dl_open_worker): Catch wrap-around of TLS
6749         generation counter.
6750         * elf/dl-close.c (_dl_close): Likewise.
6752 2002-02-14  Ulrich Drepper  <drepper@redhat.com>
6754         * elf/Makefile: Add rules to build and run tst-tls8.
6755         * elf/tst-tls8.c: New file.
6756         * elf/tst-tlsmod4.c: New file.
6758         * stdlib/test-a64l.c (tests): Add more test cases.
6760         * sunrpc/rtime.c (rtime): Change type of thetime to uint32_t.
6761         Reported by Walter Harms <WHarms@bfs.de>.
6763 2002-02-11  Jes Sorensen  <jes@trained-monkey.org>
6765         * sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h: Add sc_flag bit
6766         definitions for struct sigcontext.
6767         Suggested by David Mosberger-Tang.
6769 2002-02-13  Ulrich Drepper  <drepper@redhat.com>
6771         * elf/dl-close.c (remove_slotinfo): New function.  Handles everything
6772         for removing reference of module in slotinfo list.
6773         (_dl_close): Use remove_slotinfo.
6774         * sysdeps/generic/dl-tls.c: General pretty printing.
6775         (oom): Define only if SHARED.
6776         (_dl_next_tls_modid): Correct starting point for the case we assume
6777         there is a gap.  Add missing instruction grouping (doh!).  Correct
6778         tests for reaching maximum index.
6779         * elf/Makefile: Add rules to build and run tst-tls7.
6780         * elf/tst-tls7.c: New file.
6781         * elf/tst-tlsmod3.c: New file.
6783         * elf/tst-tlsmod1.c: Move #include "tls-macros.h" instead #ifdef
6784         USE_TLS.
6785         * elf/tst-tlsmod2.c: Likewise.
6787         * elf/dl-close.c (_dl_close): When closing an object using TLS
6788         either decrement dl_tls_max_dtv_idx or set dl_tls_dtv_gaps to
6789         true.  Increment dl_tls_generation only if we closed any TLS-using
6790         object.
6791         * elf/tst-tls6.c: New file.
6792         * elf/Makefile: Add rules to build and run tst-tls6.
6794         * po/da.po: Update from translation team.
6796         * locale/categories.def: Fix typo [PR libc/2948].
6797         * po/Makefile (BROKEN_LINGUAS): Works with current gettext
6798         [PR libc/2949].
6799         * locale/iso-4217.def: Update from official version [PR libc/2950].
6800         * glibcbug.in: Honor TMPDIR [PR libc/2951].
6801         * locale/programs/ld-collate.c (collate_finish): Bail out with a
6802         message if input is too confusion instead of using assert.
6803         (collate_read): Don't crash on unknown symbol [PR libc/2952].
6804         Patches by Alastair McKinstry <alastair@pdd.3com.com>.
6806         * elf/tst-tls1.c: Move #include "tls-macros.h" instead #ifdef USE_TLS.
6807         * elf/tst-tls2.c: Likewise.
6808         * elf/tst-tls3.c: Likewise.
6810 2002-02-13  Jakub Jelinek  <jakub@redhat.com>
6812         * elf/dl-close.c (free_slotinfo): Only define if TLS supported.
6814 2002-02-13  Ulrich Drepper  <drepper@redhat.com>
6816         * elf/dl-open.c (dl_open_worker): Only bump the generation counter
6817         if this is really necessary.
6819         * elf/dl-close.c (_dl_close): Implement freeing entries in the
6820         slotinfo array.
6821         (free_mem): Free memory for the slotinfo array if possible.
6823 2002-02-12  Andreas Schwab  <schwab@suse.de>
6825         * csu/gmon-start.c (__gmon_start__): Remove '&' from ENTRY_POINT.
6827 2002-02-12  Ulrich Drepper  <drepper@redhat.com>
6829         * sysdeps/generic/dl-tls.c (TLS_DTV_UNALLOCATED): Renamed from
6830         TLS_DTV_UNALLOCATE.
6831         (oom): New function.
6832         (_dl_next_tls_modid): Rewrite to handle dl_tls_dtv_slotinfo_list.
6833         (_dl_determine_tlsoffset): Likewise.
6834         (_dl_allocate_tls): Likewise.
6835         (__TLS_GET_ADDR): Define if not already defined.
6836         (_dl_tls_symaddr): New function.
6837         (allocate_and_init): New function.
6838         (__tls_get_addr): Actually implement handling of generation counter
6839         and deferred allocation.
6840         * sysdeps/generic/ldsodefs.h (_rtld_global): Remove _dl_initimage_list,
6841         add _dl_tls_dtv_slotinfo_list, _dl_tls_static_nelem, and
6842         _dl_tls_generation.
6843         Define TLS_SLOTINFO_SURPLUS and DTV_SURPLUS.
6844         Declare _dl_tls_symaddr.
6845         * sysdeps/i386/dl-tls.h: Disable __tls_get_addr handling unless
6846         SHARED.
6847         * include/link.h (struct link_map):  Remove l_tls_nextimage and
6848         l_tls_previmage.
6849         * elf/dl-sym.c (_dl_sym): After successful lookup call _dl_tls_symaddr
6850         instead of DL_SYMBOL_ADDRESS for STT_TLS symbols.
6851         (_dl_vsym): Likewise.
6852         * elf/rtld.c (_dl_start_final): Adjust initdtv initialization for new
6853         layout.
6854         (dl_main): Allow PT_TLS be present for empty segment.  Remove
6855         nextimage list handling.  Instead add all modules using TLS to
6856         dl_tls_dtv_slotinfo_list.
6857         * elf/dl-open.c (dl_open_worker): After successfully loading all
6858         objects add those with TLS to the dl_tls_dtv_slotinfo_list list.
6859         * elf/dl-load.c (_dl_map_object_from_fd): If PT_TLS entry is for an
6860         empty segment don't do anything.  Remove handling of initimage list.
6861         * elf/Versions [ld] (GLIBC_2.0): Add __libc_memalign.
6862         (GLIBC_PRIVATE): Add _dl_tls_symaddr.
6863         * elf/dl-minimal.c: Define __libc_memalign.
6864         * elf/dl-support.c: Remove _dl_initimage_list.  Add
6865         _dl_tls_dtv_slotinfo_list, _dl_tls_static_nelem, and
6866         _dl_tls_generation.
6867         * include/stdlib.h: Declare __libc_memalign.
6869         * elf/Makefile: Add rules to build and run tst-tls4 and tst-tls5.
6870         * elf/tst-tls4.c: New file.
6871         * elf/tst-tls5.c: New file.
6872         * elf/tst-tlsmod2.c: New file.
6874         * elf/tls-macros.h: asms using ___tls_get_addr destroy %ecx and %edx.
6876         * elf/tst-tlsmod1.c: Don't define variables unles USE_TLS.
6878         * elf/tst-tls1.c: Use test-skeleton.c.
6879         * elf/tst-tls2.c: Likewise.
6880         * elf/tst-tls3.c: Likewise.
6882         * elf/dl-conflict.c (RESOLVE_MAP): Return NULL not 0.
6884 2002-02-08  Daniel Jacobowitz  <drow@mvista.com>
6886         * sysdeps/mips/machine-gmon.h: Update MCOUNT for current GCC behavior.
6888 2002-02-10  Ulrich Drepper  <drepper@redhat.com>
6890         * elf/elf.h: Define R_386_TLS_GD and R_386_TLS_LDM.
6892         * elf/tst-tls3.c: New file.
6893         * elf/tst-tlsmod1.c: New file.
6894         * elf/Makefile: Add rules to build and run tst-tls3.
6896         * sysdeps/i386/dl-machine.h: Include <tls.h>.
6897         (elf_machine_type_class): Set ELF_RTYPE_CLASS_PLT also for the three
6898         TLS relocations.
6900         * elf/do-lookup.h (FCT): st_value can be zero for STT_TLS symbols.
6902         * po/fr.po: Update from translation team.
6904         * elf/tls-macros.h: Add alternative macros for use in PIC.
6906         * elf/dl-lookup.c: Include <tls.h>.
6907         * elf/do-lookup.h (FCT): Don't discard STT_TLS symbols.
6909         * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): More changes
6910         required by passing pointer to last element of the list.
6912         * elf/dl-load.c (_dl_map_object_from_fd): Move adjustment of
6913         l_tls_initimage to a place where it actually is performed.
6915         * sysdeps/generic/glob.c (glob): Explicitly set gl_pathc to zero
6916         after globfree() calls.
6918         * elf/dl-deps.c (struct openaux_args): Add open_mode element.
6919         (openaux): Pass open_mode as new last argument to _dl_map_object.
6920         (_dl_map_object_deps): Add new argument open_mode.  Initialize
6921         open_mode element of args variable with it.
6922         * elf/dl-open.c (dl_open_worker): Pass __RTLD_DLOPEN flag is set to
6923         _dl_map_object_deps.
6924         * elf/rtld.c (dl_main): Add zero as last parameter to
6925         _dl_map_object_deps call.
6926         * sysdeps/generic/ldsodefs.h: Adjust prototype of _dl_map_object_deps.
6927         * elf/nodlopen2.c: New file.
6928         * elf/nodlopenmod2.c: New file.
6929         * elf/Makefile: Add rules to build and run nodlopen2.
6931         * elf/tst-tls1.c: Move TLS helper macros to...
6932         * elf/tls-macros.h: ...here.  New file.
6933         * elf/tst-tls2.c: New file.
6934         * elf/Makefile (tests): Add tst-tls2.
6935         (distribute): Add tls-macros.h.
6937         * po/sv.po: Update from translation team.
6939         * elf/tst-tls1.c (main): Add complete set of tests.  Split
6940         architecture specific definitions from the actual test code.
6942         * po/tr.po: Update from translation team.
6944 2002-02-09  Ulrich Drepper  <drepper@redhat.com>
6946         * elf/Makefile (tests): Add tst-tls1.
6947         * elf/tst-tls1.c: New file.
6949         * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): Don't handle
6950         alignment of TCB for now.
6952         * elf/rtld.c (dl_main): Use p_vaddr as address of TLS
6953         initialization image for the application itself.
6955         * sysdeps/generic/dl-tls.c (_dl_allocate_tls): Correctly terminate
6956         loop to initialize TLS block.
6958 2002-02-08  Richard Henderson  <rth@redhat.com>
6960         * sysdeps/generic/ldsodefs.h (struct rtld_global): Also include
6961         _dl_cpuclock_offset if HP_SMALL_TIMING_AVAIL.
6963         * sysdeps/alpha/elf/initfini.c: Use \n\ for multiline string.
6965 2002-02-09  Jakub Jelinek  <jakub@redhat.com>
6967         * sysdeps/generic/dl-environ.c (unsetenv): Clear cnt before use.
6969 2002-02-08  Ulrich Drepper  <drepper@redhat.com>
6971         * po/ca.po: Update from translation team.
6972         * po/sk.po: Likewise.
6974         * elf/rtld.c (_dl_start_final): Install DTV explicitly.
6975         (dl_main): Move dtv/static TLS handling before relocation.
6976         Unconditionally call _dl_tlsoffset.  Call _dl_allocate_tls and
6977         TLS_INIT_TP to allocate and install the dtv/static TLS block.
6978         * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): If no object
6979         so far uses TLS initialize GL(dl_tls_static_size) and
6980         GL(dl_tls_static_align) to account for the TCB.
6981         (_dl_allocate_tls): New function.
6982         * sysdeps/generic/ldsodefs.h (rtld_global): Add
6983         _dl_initial_dtv_malloced.
6985         * configure.in: Test for __builtin_memset more realistically.
6987         * csu/version.c (banner): If TLS support is available say so.
6989 2002-02-04  H.J. Lu  <hjl@gnu.org>
6991         * sysdeps/mips/dl-machine.h (elf_machine_matches_host): Use
6992         __attribute_used__.
6993         (__dl_runtime_resolve): Likewise.
6995         * sysdeps/mips/machine-gmon.h (_MCOUNT_DECL): Make it a real
6996         declaration.
6998 2001-11-15  H.J. Lu  <hjl@gnu.org>
7000         * sysdeps/unix/sysv/linux/mips/sys/procfs.h: Don't include
7001         <signal.h>, <sys/ucontext.h> nor <asm/elf.h>. Updated for gdb.
7003         * sysdeps/unix/sysv/linux/mips/sys/user.h: New.
7005 2002-02-07  H.J. Lu  <hjl@gnu.org>
7007         * sysdeps/mips/atomicity.h (compare_and_swap): Remove
7008         ".set noreorder".
7009         * sysdeps/unix/sysv/linux/mips/sys/tas.h (_test_and_set):
7010         Likewise.
7012 2002-02-07  Ulrich Drepper  <drepper@redhat.com>
7014         * sysdeps/unix/sysv/linux/bits/stat.h: Undo last patch.
7016         * sysdeps/i386/dl-tls.h (__tls_get_addr): Call
7017         ___tls_get_addr_internal.
7018         (___tls_get_addr_internal): Define as alias for ___tls_get_addr.
7020         * po/ko.po: Update from translation team.
7022 2002-02-07  Jakub Jelinek  <jakub@redhat.com>
7024         * sysdeps/unix/sysv/linux/bits/stat.h (struct stat): Remove packed
7025         attribute, change __pad{1,2} type to unsigned int.
7026         (struct stat64): Remove packed attribute.
7028 2002-02-07  Ulrich Drepper  <drepper@redhat.com>
7030         * sysdeps/i386/dl-tls.h: No need for #ifdef USE_TLS.
7032 2002-02-07  Andreas Schwab  <schwab@suse.de>
7034         * configure.in: Fix check for -zcombreloc.
7036 2002-02-06  H.J. Lu  <hjl@gnu.org>
7038         * config.h.in (HAVE_BUILTIN_MEMSET): New.
7039         * configure.in: Check if __builtin_memset really works.
7040         * elf/rtld.c (_dl_start): Check HAVE_BUILTIN_MEMSET instead of
7041         __GNUC_PREREQ (2, 96) before using __builtin_memset.
7043 2002-02-06  Jakub Jelinek  <jakub@redhat.com>
7045         * io/bug-ftw3.c (main): Don't try the test if root.
7047 2002-02-06  Martin Schwidefsky  <schwidefsky@de.ibm.com>
7049         * sysdeps/unix/sysv/linux/s390/brk.c (__brk): Correct inline assembly
7050         constraints.
7051         * sysdeps/unix/sysv/linux/s390/s390-32/bits/resource.h (RLIMIT_LOCKS):
7052         Add RLIMIT_LOCKS and adjust RLIMIT_NLIMITS.
7053         * sysdeps/unix/sysv/linux/s390/s390-64/bits/resource.h (RLIMIT_LOCKS):
7054         Likewise.
7055         * sysdeps/unix/sysv/linux/s390/s390-32/clone.S (clone): Make clone
7056         a weak alias for __clone.
7057         * sysdeps/unix/sysv/linux/s390/s390-64/clone.S (clone): Likewise.
7058         * sysdeps/unix/sysv/linux/s390/s390-32/profil-counter.h: Fix typo.
7059         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile: Add framestate.
7060         * sysdeps/unix/sysv/linux/s390/s390-64/Versions: New file.
7061         * sysdeps/unix/sysv/linux/s390/s390-64/mmap.S (__mmap64): Make __mmap
7062         a weak alias for __mmap64.
7064 2002-02-05  H.J. Lu  <hjl@gnu.org>
7066         * sysdeps/mips/atomicity.h (exchange_and_add): Not use branch likely.
7067         (atomic_add): Likewise.
7068         (compare_and_swap): Likewise.
7069         * sysdeps/unix/sysv/linux/mips/sys/tas.h (_test_and_set): Likewise.
7071 2002-02-07  Ulrich Drepper  <drepper@redhat.com>
7073         * sysdeps/generic/dl-tls.c: Don't read TLS header if TLS is not needed.
7075         * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): Account for
7076         alignment of the TCB and store total size and alignment of static
7077         TLS block in _dl_tls_static_size and _dl_tls_static_align.
7078         tls_index is a typedef.
7079         * sysdeps/generic/ldsodefs.h: Declare _dl_tls_static_size and
7080         _dl_tls_static_align.
7081         * sysdeps/i386/dl-tls.h: tls_index is a typedef.
7082         * elf/dl-support.c: Define _dl_tls_static_size and
7083         _dl_tls_static_align.
7085 2002-02-06  Ulrich Drepper  <drepper@redhat.com>
7087         * configure.in: Add --without-tls option.
7088         * sysdeps/i386/elf/configure.in: Don't check for TLS support if
7089         --without-tls is given.
7091         * sysdeps/generic/dl-tls.c: Include <tls.h>.
7093         * sysdeps/i386/dl-tls.h: Don't define anything if !USE_TLS.
7095 2002-02-06  Roland McGrath  <roland@frob.com>
7097         * malloc/hooks.c [! HAVE_MREMAP]: Conditionalize unused decls.
7098         * malloc/malloc.c [! HAVE_MREMAP]: Likewise.
7100         * scripts/versions.awk: Improve error message for missing version.
7101         Each version inherits from the last one only if they have the same
7102         nonnumeric prefix, i.e. GLIBC_x.y and GLIBC_x.z or FOO_x and FOO_y
7103         but not GLIBC_x and FOO_y.
7105         * scripts/firstversions.awk: Handle libraries that don't have each
7106         particular version named in the third column of shlib-versions.
7108         * scripts/firstversions.awk: Don't mess with GLIBC_PRIVATE.
7110 2002-02-06  Ulrich Drepper  <drepper@redhat.com>
7112         * Versions.def [ld]: Add GLIBC_2.3.
7113         * elf/Versions [ld]: Add __tls_get_addr to GLIBC_2.3.
7114         * elf/Makefile (dl-routines): Add dl-tls.
7115         (distribute): Add dl-tls.h.
7116         * sysdeps/generic/ldsodefs.h (struct rtld_global): Remove
7117         _dl_tls_module_cnt, add _dl_tls_max_dtv_idx and _dl_tls_dtv_gaps.
7118         Add prototypes for _dl_next_tls_modid and _dl_determine_tlsoffset.
7119         * elf/dl-load.c (_dl_map_object_from_fd): Store alignment requirement
7120         along with the other info in the link map.  Change queueing of init
7121         images for double linked list.  Use _dl_next_tls_modid to compute
7122         l_tls_modid.
7123         * elf/rtld.c (_dl_start_final): Store alignment requirement
7124         along with the other info in rtld map and executable map.
7125         (dl_main): Add ld.so to the init image list if necessary.  Compute
7126         final module ID with _dl_next_tls_modid.
7127         * include/link.h (struct link_map): Add l_tls_previmage and
7128         l_tls_align.
7129         * eld/dl-support.c: Define _dl_tls_max_dtv_idx and _dl_tls_dtv_gaps.
7130         * sysdeps/i386/elf/Versions: New file.
7131         * sysdeps/generic/dl-tls.c: New file.
7132         * sysdeps/generic/dl-tls.h: New file.
7133         * sysdeps/i386/dl-tls.h: New file.
7135 2002-02-06  Roland McGrath  <roland@frob.com>
7137         * sysdeps/unix/sysv/linux/netinet/ip.h: Moved to ...
7138         * sysdeps/generic/netinet/ip.h: ... here, replacing old file.
7140 2002-01-05  Roland McGrath  <roland@frob.com>
7142         * sysdeps/mach/configure.in: New file.
7143         * sysdeps/mach/configure: New generated file.
7145         * mach/Makefile (user-interfaces): Remove default_pager_helper.
7146         It has never been used by anything.
7148 2002-02-06  H.J. Lu  <hjl@gnu.org>
7150         * sysdeps/mips/elf/ldsodefs.h: Make sure the right <ldsodefs.h>
7151         is included.
7153 2002-02-06  Ulrich Drepper  <drepper@redhat.com>
7155         * sysdeps/unix/sysv/linux/bits/stat.h (struct stat): Add
7156         attribute((packed)) to counter stupid people misusing gcc options.
7157         (struct stat64): Likewise.
7159 2002-02-05  Ulrich Drepper  <drepper@redhat.com>
7161         * elf/rtld.c (dl_main): Correct indentation.  Use bool as type for
7162         the variables which are used as booleans.
7164 2002-02-06  Andreas Jaeger  <aj@suse.de>
7166         * include/libc-symbols.h (INTUSE): Renamed from INT.
7167         * elf/dl-deps.c: Change users.
7168         * sysdeps/generic/dl-sysdep.c: Likewise.
7169         * sysdeps/generic/dl-cache.c: Likewise.
7170         * elf/dl-reloc.c: Likewise.
7171         * elf/rtld.c: Likewise.
7172         * elf/dl-version.c: Likewise.
7173         * elf/dl-load.c: Likewise.
7174         * elf/dl-dst.h: Likewise.
7175         * elf/dl-init.c: Likewise.
7176         * elf/dl-error.c: Likewise.
7177         * elf/dl-fini.c: Likewise.
7178         * elf/dl-runtime.c: Likewise.
7179         * elf/do-lookup.h: Likewise.
7181         * stdio-common/_itoa.h: Undefine SPECIAL to avoid duplicate
7182         definition.
7183         * stdio-common/_itowa.h: Likewise.
7185 2002-02-05  Ulrich Drepper  <drepper@redhat.com>
7187         * elf/dl-minimal.c: Define _itoa_lower_digits.
7189         * elf/dynamic-link.h (elf_get_dynamic_info): ld.so can have
7190         DT_FLAGS set.
7192         * elf/dl-load.c (_dl_map_object_from_fd): Prevent dynamically
7193         loading modules with the DF_STATIC_TLS flag set.
7194         * elf/dynamic-link.h (elf_get_dynamic_info): Initialize l_flags
7195         element.
7196         * include/link.h (struct link_map): Add l_flags field.
7197         * elf/elf.h (DF_STATIC_TLS): New definition.
7199         * dlfcn/Makefile: Add rules to build and run bug-dlopen1.
7200         * dlfcn/bug-dlopen1.c: New file.  By Bruno Haible.
7202         * elf/rtld.c (process_dl_debug): Correct printing help message.
7203         * elf/dl-misc.c (_dl_debug_vdprintf): Implement precision handling
7204         for %s.
7206         * inet/getnetgrent_r.c (innetgr): Add int* parameter to getfct
7207         definition and pass &errno in use of this variable.
7208         Reported by Simon Wilkinson <simon@sxw.org.uk> [PR libc/2911].
7210 2002-02-04  Andreas Schwab  <schwab@suse.de>
7212         * locale/programs/localedef.h (WITH_CUR_LOCALE): Define.
7213         * locale/programs/charmap-dir.c: Wrap calls that output messages
7214         with WITH_CUR_LOCALE.  Include "localedef.h" first.
7215         * locale/programs/charmap.c: Likewise.
7216         * locale/programs/ld-address.c: Likewise.
7217         * locale/programs/ld-collate.c: Likewise.
7218         * locale/programs/ld-ctype.c: Likewise.
7219         * locale/programs/ld-identification.c: Likewise.
7220         * locale/programs/ld-measurement.c: Likewise.
7221         * locale/programs/ld-messages.c: Likewise.
7222         * locale/programs/ld-monetary.c: Likewise.
7223         * locale/programs/ld-name.c: Likewise.
7224         * locale/programs/ld-numeric.c: Likewise.
7225         * locale/programs/ld-paper.c: Likewise.
7226         * locale/programs/ld-telephone.c: Likewise.
7227         * locale/programs/ld-time.c: Likewise.
7228         * locale/programs/linereader.c: Likewise.
7229         * locale/programs/linereader.h: Likewise.
7230         * locale/programs/localedef.c: Likewise.
7231         * locale/programs/locfile.c: Likewise.
7232         * locale/programs/repertoire.c: Likewise.
7234 2002-02-05  Ulrich Drepper  <drepper@redhat.com>
7236         * elf/rtld.c (_dl_start_final): Determine load address to locate
7237         ehdr with GL(dl_rtld_map).l_map_start.
7239         * po/ca.po: Update from translation team.
7241         * elf/rtld.c (dl_main): Read PT_TLS entry of the executable.
7242         * elf/dl-load.c (_dl_map_object_from_fd): Handle PT_TLS program
7243         header entry.
7244         * sysdeps/generic/ldsodefs.h (struct rtld_global): Add
7245         _dl_tls_module_cnt.
7246         * elf/dl-support.c: Define _dl_initimage_list and _dl_tls_module_cnt.
7248 2002-02-04  Ulrich Drepper  <drepper@redhat.com>
7250         * elf/rtld.c (_dl_start): Fill TLS values in link map for rtld.
7251         * include/link.h (struct link_map): Add various members for TLS
7252         information.
7253         * sysdeps/generic/ldsodefs.h (struct rtld_global): Remove
7254         _rtld_tlsoffset, add _dl_initimage_list.
7255         * sysdeps/i386/dl-lookupcfg.h: New file.
7256         * sysdeps/i386/dl-machine.h (elf_machine_rel): Implement missing
7257         TLS relocation.  When using TLS we now use RESOLVE_MAP.
7258         (elf_machine_rela): Use RESOLVE_MAP instead of RESOLVE_MAP if TLS
7259         is used.
7261         * sysdeps/generic/dl-cache.c (_dl_cache_libcmp): Mark as possibly
7262         unused.
7264         * elf/rtld.c (_dl_start_final): Allocate TLS and initialize
7265         thread-pointer as soon as possible.
7266         * sysdeps/generic/ldsodefs.h: Include <tls.h>.  Define first TLS
7267         elements in rtld_global.
7268         * sysdeps/generic/tls.h: New file.
7269         * elf/Makefile (distribute): Add tls.h.
7270         * sysdeps/i386/dl-machine.h (elf_machine_rel): Add support for TLS
7271         relocations.  Not complete yet.
7273         * resolv/resolv.h: Allow user to define __need_res_state and only
7274         define __res_start structure then.
7275         * include/resolv.h: Only declare functions if _RESOLV_H_ is defined.
7277         * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Move
7278         dl_cpuclock_offset initialization to _dl_start_final.
7279         (_dl_show_auxv): Avoid unnecessary sign extension.
7280         * elf/rtld.c (_dl_start_final): Initialize dl_cpuclock_offset.
7282 2002-02-03  Ulrich Drepper  <drepper@redhat.com>
7284         * config.h.in: Add HAVE_TLS_SUPPORT.
7285         * sysdeps/i386/elf/configure.in: New file.
7287 2002-02-03  Andreas Schwab  <schwab@suse.de>
7289         * sysdeps/posix/readv.c: Use ssize_t for bytes_read.
7290         * sysdeps/posix/writev.c: Use ssize_t for bytes_written.  Fix comment.
7292 2002-02-03  Thorsten Kukuk  <kukuk@suse.de>
7294         * sysdeps/posix/writev.c: Check for ssize_t overflow, don't use
7295         alloca if the memory reqirements are too high.
7297 2002-02-03  Ulrich Drepper  <drepper@redhat.com>
7299         * elf/dl-load.c (decompose_rpath): Avoid using strstr.
7300         * elf/dl-minimal.c (_strerror_r): Use _itoa instead of _itoa_word since
7301         the former is available anyway and speed isn't important here.
7302         * elf/dl-misc.c (_dl_debug_vdprintf): Likewise.
7303         * elf/dl-version.c (match_symbol): Likewise.
7304         (_dl_check_map_versions): Likewise.
7305         * elf/rtld.c (process_envvars): Likewise.
7306         (print_statistics): Likewise.
7307         * sysdeps/generic/dl-sysdep.c (_dl_show_auxv): Likewise.
7308         * elf/dl-minimal.c (_itoa): Always define it.  Make it work for all
7309         bases.  Add assert to catch uses of unimplemented features.
7310         (__strsep): Add assert to catch uses of unimplemented features.
7311         * elf/dl-object.c (_dl_new_object): Don't use rawmemchr.  Use strchr
7312         and avoid inline optimization.
7313         * elf/rtld.c (process_envvars): Likewise.
7314         * elf/dl-open.c: Don't include <stdio-common/_itoa.h>.
7315         * elf/dl-profile.c (_dl_start_profile): Help compiler to avoid ffs.
7316         * elf/rtld.c (dl_main): Avoid strsep inline optimization.
7318 2002-02-02  Ulrich Drepper  <drepper@redhat.com>
7320         * stdio-common/_itoa.h: Minor simplifications of the code.
7321         * stdio-common/_itoa.c: Likewise.
7323         * elf/dl-reloc.c (_dl_relocate_object): Use _dl_debug_printf
7324         instead of _dl_printf for debugging info output.
7326         * manual/examples/mkfsock.c (make_named_socket): Make sure name is
7327         always NUL-terminated.  Patch by Chris D. Sloan <cds@cs.hmc.edu>.
7329 2002-02-01  H.J. Lu  <hjl@gnu.org>
7331         * sysdeps/mips/atomicity.h (exchange_and_add): Use branch likely.
7332         (atomic_add): Likewise.
7333         (compare_and_swap): Return 0 only when failed to compare. Use
7334         branch likely.
7336         * sysdeps/unix/sysv/linux/mips/sys/tas.h (_test_and_set): Use
7337         branch likely.
7339 2002-02-03  kaz Kojima  <kkojima@rr.iij4u.or.jp>
7341         * sysdeps/sh/dl-machine.h (elf_machine_rela): Fix a typo.
7343 2002-02-02  Ulrich Drepper  <drepper@redhat.com>
7345         * elf/dl-minimal.c (__strsep): New minimal implementation.
7347 2002-02-02  Paul Eggert  <eggert@twinsun.com>
7349         * src/mktime.c [defined DEBUG && STDC_HEADERS]: Include <string.h>.
7350         (__mktime_internal): If no tm_isdst is requested, prefer solutions
7351         with tm_isdst > 0 when the requested time falls within a
7352         spring-forward gap [PR libc/2894].
7354 2002-02-03  Andreas Schwab  <schwab@suse.de>
7356         * stdio-common/tst-rndseek.c: Increase timeout.
7358 2002-02-02  Ulrich Drepper  <drepper@redhat.com>
7360         Change ld.so to not use functions which are exported.  One cannot
7361         interpose them anyway.  Use INT() to mark uses, INTDEF() to mark
7362         definitions.
7363         * include/libc-symbols.h: Define INT and INTDEF.
7364         * sysdeps/generic/ldsodefs.h: Declare _dl_debug_printf_internal,
7365         _dl_signal_error_internal, _dl_map_object_internal,
7366         _dl_map_object_deps_internal, _dl_lookup_symbol_internal,
7367         _dl_lookup_versioned_symbol_internal,
7368         _dl_relocate_object_internal, _dl_debug_state_internal,
7369         _dl_start_profile_internal, and _dl_unload_cache_internal.
7370         * include/dlfcn.h: Declare _dl_catch_error_internal.
7371         * elf/rtld.c: Use INT for calls to any of the *_internal functions
7372         above.  Add INTDEF to function definitions.
7373         * elf/dl-debug.c: Likewise.
7374         * elf/dl-deps.c: Likewise.
7375         * elf/dl-dst.h: Likewise.
7376         * elf/dl-error.c: Likewise.
7377         * elf/dl-fini.c: Likewise.
7378         * elf/dl-init.c: Likewise.
7379         * elf/dl-load.c: Likewise.
7380         * elf/dl-lookup.c: Likewise.
7381         * elf/dl-misc.c: Likewise.
7382         * elf/dl-open.c: Likewise.
7383         * elf/dl-profile.c: Likewise.
7384         * elf/dl-reloc.c: Likewise.
7385         * elf/dl-runtime.c: Likewise.
7386         * elf/dl-version.c: Likewise.
7387         * elf/do-lookup.h: Likewise.
7388         * sysdeps/generic/dl-cache.c: Likewise.
7389         * sysdeps/generic/dl-sysdep.c: Likewise.
7390         * sysdeps/alpha/dl-machine.h (RTLD_START): Call _dl_init_internal
7391         instead of _dl_init.
7392         * sysdeps/arm/dl-machine.h: Likewise.
7393         * sysdeps/cris/dl-machine.h: Likewise.
7394         * sysdeps/hppa/dl-machine.h: Likewise.
7395         * sysdeps/i386/dl-machine.h: Likewise.
7396         * sysdeps/ia64/dl-machine.h: Likewise.
7397         * sysdeps/m68k/dl-machine.h: Likewise.
7398         * sysdeps/mips/dl-machine.h: Likewise.
7399         * sysdeps/mips/mips64/dl-machine.h: Likewise.
7400         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
7401         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
7402         * sysdeps/sh/dl-machine.h: Likewise.
7403         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
7404         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
7405         * sysdeps/x86_64/dl-machine.h: Likewise.
7406         * sysdeps/powerpc/dl-start.S (_dl_start_user): Likewise.
7408         * elf/Versions: Don't export _dl_check_all_versions, _dl_sysdep_start,
7409         and _dl_debug_initialize.
7411         * elf/dl-object.c (_dl_new_object): Avoid using strrchr.  We have
7412         more information.
7413         * elf/rtld.c (dl_main): Avoid strrchr.
7414         * sysdeps/unix/sysv/linux/dl-origin.c (_dl_get_origin): Use the
7415         result of readlink.  Search from the back for '/'.
7417         * elf/dl-profile.c (_dl_start_profile): Help the compiler to avoid
7418         strncpy if possible.
7420         * sysdeps/generic/dl-environ.c (unsetenv): Optimize.  Don't use
7421         strncmp.
7422         * elf/dl-load.c (is_dst): Optimize.  Don't call strncmp twice.
7423         * elf/rtld.c (process_dl_debug): Optimize. Avoid calls to strncmp,
7424         strspn, and strcspn.
7425         (process_envvars): Don't use strcspn.
7427         * elf/dl-load.c (_dl_dst_count): Fix possible endless loop.
7428         (_dl_dst_substitute): Likewise.
7430 2002-02-01  Ulrich Drepper  <drepper@redhat.com>
7432         * elf/do-rel.h (elf_dynamic_do_rel): Help the compiler recognize
7433         code which is never used when relocating ld.so itself.
7435         * elf/dynamic-link.h (elf_get_dynamic_info): Optimize a bit for
7436         starting ld.so itself.  Move l_addr variable initialization closer
7437         to use.
7438         (_ELF_DYNAMIC_DO_RELOC): Help the compiler optimize a bit.
7440 2002-02-01  Jakub Jelinek  <jakub@redhat.com>
7442         * Versions.def (libc): Add GLIBC_PRIVATE.
7443         (libdb, libnss_db, libdb1): Remove.
7444         (libnss_compat, libnss_dns, libnss_files, libnss_hesiod, libnss_nis,
7445         libnss_nisplus): Move all symbols to GLIBC_PRIVATE.
7446         (libpthread): Add GLIBC_PRIVATE.
7447         (libresolv): Likewise, remove GLIBC_2.1.
7448         (ld): Add GLIBC_PRIVATE, remove GLIBC_2.1.1, GLIBC_2.2, GLIBC_2.2.1,
7449         GLIBC_2.2.3, GLIBC_2.3.
7450         * catgets/Versions (__open_catalog): Move to GLIBC_PRIVATE.
7451         * elf/Versions (_dl_open, _dl_close, _dl_addr, _dl_init_first,
7452         _dl_sym, _dl_vsym): Likewise.
7453         (__libc_enable_secure, __libc_stack_end, _dl_argv, _dl_catch_error,
7454         _dl_check_all_versions, _dl_check_map_versions, _dl_debug_initialize,
7455         _dl_debug_printf, _dl_debug_state, _dl_dst_count, _dl_dst_substitute,
7456         _dl_init, _dl_lookup_symbol, _dl_lookup_symbol_skip,
7457         _dl_lookup_versioned_symbol, _dl_lookup_versioned_symbol_skip,
7458         _dl_map_object, _dl_map_object_deps, _dl_out_of_memory,
7459         _dl_relocate_object, _dl_signal_error, _dl_start_profile,
7460         _dl_starting_up, _dl_sysdep_start, _dl_unload_cache, _rtld_global):
7461         Likewise.
7462         (_dl_object_relocation_scope): Remove.
7463         * hesiod/Versions: Move all symbols to GLIBC_PRIVATE.
7464         * iconv/Versions (__gconv_alias_db, __gconv_modules_db,
7465         __gconv_cache): Move to GLIBC_PRIVATE.
7466         * inet/Versions (__internal_endnetgrent, __internal_getnetgrent_r,
7467         __internal_setnetgrent): Likewise.
7468         * io/Versions (__libc_open, __libc_close, __libc_read, __libc_write,
7469         __libc_lseek, __libc_fcntl, __libc_open64, __libc_lseek64): Likewise.
7470         * locale/Versions (__collate_element_hash, __collate_element_strings,
7471         __collate_symbol_classes, __collate_symbol_hash,
7472         __collate_symbol_strings, _nl_current_LC_COLLATE,
7473         _nl_current_LC_CTYPE): Likewise.
7474         * misc/Versions (__libc_fsync, __libc_msync): Likewise.
7475         * nis/Versions (libnss_compat): Move all symbols to GLIBC_PRIVATE.
7476         (libnss_nis, libnss_nisplus): Likewise.
7477         * nss/Versions (_nss_files_parse_grent, _nss_files_parse_pwent,
7478         _nss_files_parse_spent): Move to GLIBC_PRIVATE.
7479         (libnss_files): Move all symbols to GLIBC_PRIVATE.
7480         * posix/Versions (__libc_wait, __libc_waitpid, __libc_pause,
7481         __libc_nanosleep, __libc_fork, __libc_pread, __libc_pread64,
7482         __libc_pwrite, __libc_pwrite64): Move to GLIBC_PRIVATE.
7483         * resolv/Versions (__gai_sigqueue, __ns_name_unpack, __ns_name_ntop,
7484         __ns_get16, __ns_samename): Likewise.
7485         (libnss_dns): Move all symbols to GLIBC_PRIVATE.
7486         * setjmp/Versions (__libc_longjmp, __libc_siglongjmp): Move to
7487         GLIBC_PRIVATE.
7488         * socket/Versions (__libc_accept, __libc_send, __libc_recvfrom,
7489         __libc_recvmsg, __libc_sendmsg, __libc_recv, __libc_sendto,
7490         __libc_connect): Likewise.
7491         * stdio-common/Versions (_itoa_lower_digits, _itoa_upper_digits):
7492         Likewise.
7493         * stdlib/Versions (__libc_system): Likewise.
7494         * sunrpc/Versions (__rpc_thread_destroy): Likewise.
7495         * sysdeps/hppa/Versions: Move all symbols to GLIBC_PRIVATE.
7496         * sysdeps/ia64/fpu/Versions: Likewise.
7497         * sysdeps/ia64/Versions: Likewise.
7498         * sysdeps/unix/sysv/linux/ia64/Versions: Likewise.
7499         * sysdeps/unix/sysv/linux/i386/Versions (__modify_ldt): Move
7500         to GLIBC_PRIVATE.
7501         * sysdeps/unix/sysv/linux/x86_64/Versions (__modify_ldt): Likewise.
7502         * sysdeps/unix/sysv/linux/Versions (__syscall_rt_sigqueueinfo,
7503         __libc_sigaction): Likewise.
7504         * termios/Versions (__libc_tcdrain): Likewise.
7506         * misc/sys/cdefs (__attribute_noinline__): Define.
7507         * elf/dl-lookup.c (_dl_do_lookup, _dl_do_lookup_versioned): Add
7508         __attribute_noinline__.
7510         * elf/Makefile (rtld-routines): Add dl-xstat64, dl-fxstat64.
7511         * elf/dl-xstat64.c: New file.
7512         * elf/dl-fxstat64.c: New file.
7513         * sysdeps/unix/sysv/linux/fxstat64.c: If RTLD_STAT64 is defined,
7514         don't export __fxstat64 at multiple versions.
7515         * sysdeps/unix/sysv/linux/lxstat64.c: Similarly.
7516         * sysdeps/unix/sysv/linux/xstat64.c: Similarly.
7518 2002-01-18  Isamu Hasegawa  <isamu@yamato.ibm.com>
7520         * locale/program/ld-collate.c (collate_finish): Assign a wide
7521         char collation sequence value to multi character collating
7522         elements, and avoid over writing by non-character elements.
7524 2002-02-01  Ulrich Drepper  <drepper@redhat.com>
7526         * elf/Makefile (distribute): Add dl-procinfo.c.
7527         * sysdeps/unix/sysv/linux/i386/Dist: Remove dl-procinfo.c.
7528         * sysdeps/unix/sysv/linux/arm/Dist: Likewise.
7530 2002-02-01  Jakub Jelinek  <jakub@redhat.com>
7532         * sysdeps/generic/ldsodefs.h (_dl_load_lock): Remove duplicate
7533         definition.
7534         * sysdeps/ia64/hp-timing.h: Move _dl_hp_timing_overhead in
7535         _rtld_global struct.
7536         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h: Likewise.
7537         * sysdeps/sparc/sparc64/hp-timing.c: Likewise.
7538         * sysdeps/sparc/sparc64/hp-timing.h: Likewise.
7539         * sysdeps/sparc/sparc64/Makefile: Make hp-timing static only.
7540         * sysdeps/unix/sysv/aix/init-first.c (_dl_fpu_control,
7541         _dl_fpu_control_set): Remove unused externs.
7542         * sysdeps/unix/sysv/linux/sparc/sparc32/dl-procinfo.c: New file.
7543         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-procinfo.c: New file.
7544         * sysdeps/unix/sysv/linux/sparc/sparc32/dl-procinfo.h: Move procinfo
7545         related variables in _rtld_global struct.
7546         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-procinfo.h: Likewise.
7547         * sysdeps/unix/sysv/linux/init-first.c (_dl_fpu_control_set): Remove
7548         unused extern.
7550 2002-02-01  Ulrich Drepper  <drepper@redhat.com>
7552         * sysdeps/generic/dl-procinfo.c: New file.
7554 2002-02-01  Andreas Schwab  <schwab@suse.de>
7556         * sysdeps/m68k/dl-machine.h: Don't use multi-line string literals.
7558 2002-02-01  Ulrich Drepper  <drepper@redhat.com>
7560         * elf/rtld.c (_dl_start): Mark as internal_function.
7561         * sysdeps/i386/dl-machine.h (RTLD_START): Pass parameter for _dl_start
7562         in register.
7563         (elf_machine_rel): Cleanup and minor optimization for RTLD_BOOTSTRAP.
7564         General pretty printing.
7566 2002-01-31  Ulrich Drepper  <drepper@redhat.com>
7568         * elf/dl-minimal.c: Define _itoa for 32-bit machines with HP timing.
7569         * elf/dl-reloc.c: Pretty printing.
7570         * sysdeps/generic/ldsodefs.h: Move _dl_hp_timing_overhead and
7571         procinfo-related variables in rtld_global struct.
7572         * elf/dl-support.c: Likewise.
7573         * elf/rtld.c: Likewise.
7574         * sysdeps/i386/i686/Makefile: Likewise.
7575         * sysdeps/i386/i686/hp-timing.c: Likewise.
7576         * sysdeps/i386/i686/hp-timing.h: Likewise.
7577         * sysdeps/ia64/Makefile: Likewise.
7578         * sysdeps/ia64/hp-timing.c: Likewise.
7579         * sysdeps/sparc/sparc32/sparcv9/Makefile: Likewise.
7580         * sysdeps/sparc/sparc32/sparcv9/hp-timing.c: Likewise.
7581         * sysdeps/unix/sysv/linux/arm/dl-procinfo.c: Likewise.
7582         * sysdeps/unix/sysv/linux/arm/dl-procinfo.h: Likewise.
7583         * sysdeps/unix/sysv/linux/i386/Makefile: Likewise.
7584         * sysdeps/unix/sysv/linux/i386/dl-procinfo.c: Likewise.
7585         * sysdeps/unix/sysv/linux/i386/dl-procinfo.h: Likewise.
7586         * sysdeps/x86_64/Makefile: Likewise.
7588         * sysdeps/generic/ldsodefs.h: Add _dl_load_lock, _dl_lazy,
7589         _dl_dynamic_weak, _dl_fpu_control, _dl_cpuclock_offset, and
7590         _dl_debug_fd to rtld_global.
7591         * elf/Versions: Likewise.
7592         * elf/dl-close.c: Likewise.
7593         * elf/dl-iteratephdr.c: Likewise.
7594         * elf/dl-lookup.c: Likewise.
7595         * elf/dl-misc.c: Likewise.
7596         * elf/dl-open.c: Likewise.
7597         * elf/dl-support.c: Likewise.
7598         * elf/do-lookup.h: Likewise.
7599         * elf/rtld.c: Likewise.
7600         * sysdeps/generic/dl-cache.c: Likewise.
7601         * sysdeps/generic/dl-sysdep.c: Likewise.
7602         * sysdeps/ia64/Versions: Likewise.
7603         * sysdeps/unix/clock_gettime.c: Likewise.
7604         * sysdeps/unix/clock_settime.c: Likewise.
7605         * sysdeps/unix/sysv/linux/init-first.c: Likewise.
7606         * sysdeps/sparc/Versions: Removed.
7607         * sysdeps/i386/i686/Versions : Removed.
7608         * sysdeps/x86_64/Versions: Removed.
7609         * configure.in: Define HAVE_PROTECTED if .protected is available.
7610         * config.h.in: Add entry for HAVE_PROTECTED.
7612 2002-01-31  Jakub Jelinek  <jakub@redhat.com.
7614         * sysdeps/alpha/dl-machine.h: Move global variables for SHARED
7615         code in struct _rtld_global.  Export this struct, remove all
7616         exports for the signal variables.
7617         * sysdeps/arm/dl-machine: Likewise.
7618         * sysdeps/generic/dl-origin: Likewise.
7619         * sysdeps/generic/dl-sysdep: Likewise.
7620         * sysdeps/generic/dl-cache: Likewise.
7621         * sysdeps/hppa/dl-fptr: Likewise.
7622         * sysdeps/hppa/dl-machine: Likewise.
7623         * sysdeps/cris/dl-machine: Likewise.
7624         * sysdeps/i386/dl-machine: Likewise.
7625         * sysdeps/ia64/dl-machine: Likewise.
7626         * sysdeps/m68k/dl-machine: Likewise.
7627         * sysdeps/mach/hurd/dl-sysdep: Likewise.
7628         * sysdeps/mips/mips64/dl-machine: Likewise.
7629         * sysdeps/mips/dl-machine: Likewise.
7630         * sysdeps/powerpc/elf/libc-start: Likewise.
7631         * sysdeps/powerpc/dl-machine: Likewise.
7632         * sysdeps/powerpc/dl-start: Likewise.
7633         * sysdeps/sparc/sparc32/dl-machine: Likewise.
7634         * sysdeps/sparc/sparc64/dl-machine: Likewise.
7635         * sysdeps/sh/dl-machine: Likewise.
7636         * sysdeps/s390/s390-32/dl-machine: Likewise.
7637         * sysdeps/s390/s390-64/dl-machine: Likewise.
7638         * sysdeps/unix/sysv/aix/libc-start: Likewise.
7639         * sysdeps/unix/sysv/aix/start-libc: Likewise.
7640         * sysdeps/unix/sysv/linux/ia64/dl-static: Likewise.
7641         * sysdeps/unix/sysv/linux/m68k/getpagesize: Likewise.
7642         * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize: Likewise.
7643         * sysdeps/x86_64/dl-machine: Likewise.
7645 2002-01-31  Ulrich Drepper  <drepper@redhat.com>
7647         * sysdeps/posix/readv.c: Don't use alloca if the memory requirements
7648         are too high.
7650 2002-01-31  Andreas Schwab  <schwab@suse.de>
7652         * sysdeps/posix/readv.c: Check for ssize_t overflow.
7654 2002-01-31  Andreas Schwab  <schwab@suse.de>
7656         * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Fix leftover
7657         reference to _dl_pagesize.
7659 2002-01-30  Ulrich Drepper  <drepper@redhat.com>
7661         * Versions.def [ld]: Add GLIBC_2.3.
7662         * elf/dl-addr.c: Move global variables for SHARED code in struct
7663         _rtld_global.  Export this struct, remove all exports for the
7664         signal variables.
7665         * elf/dl-close.c: Likewise.
7666         * elf/dl-conflict.c: Likewise.
7667         * elf/dl-debug.c: Likewise.
7668         * elf/dl-deps.c: Likewise.
7669         * elf/dl-dst.h: Likewise.
7670         * elf/dl-error.c: Likewise.
7671         * elf/dl-fini.c: Likewise.
7672         * elf/dl-init.c: Likewise.
7673         * elf/dl-iteratephdr.c: Likewise.
7674         * elf/dl-libc.c: Likewise.
7675         * elf/dl-load.c: Likewise.
7676         * elf/dl-lookup.c: Likewise.
7677         * elf/dl-minimal.c: Likewise.
7678         * elf/dl-object.c: Likewise.
7679         * elf/dl-open.c: Likewise.
7680         * elf/dl-profile.c: Likewise.
7681         * elf/dl-profstub.c: Likewise.
7682         * elf/dl-reloc.c: Likewise.
7683         * elf/dl-runtime.c: Likewise.
7684         * elf/dl-support.c: Likewise.
7685         * elf/dl-sym.c: Likewise.
7686         * elf/dl-version.c: Likewise.
7687         * elf/do-lookup.h: Likewise.
7688         * elf/do-rel.h: Likewise.
7689         * elf/dynamic-link.h: Likewise.
7690         * elf/rtld.c: Likewise.
7691         * sysdeps/generic/dl-cache.c: Likewise.
7692         * sysdeps/generic/dl-sysdep.c: Likewise.
7693         * sysdeps/generic/ldsodefs.h: Likewise.
7694         * sysdeps/generic/libc-start.c: Likewise.
7695         * sysdeps/i386/dl-machine.h: Likewise.
7696         * sysdeps/ia64/dl-fptr.c: Likewise.
7697         * sysdeps/ia64/dl-machine.h: Likewise.
7698         * sysdeps/unix/sysv/linux/dl-librecon.h: Likewise.
7699         * sysdeps/unix/sysv/linux/dl-origin.c: Likewise.
7700         * sysdeps/unix/sysv/linux/dl-osinfo.h: Likewise.
7701         * sysdeps/unix/sysv/linux/getclktck.c: Likewise.
7702         * sysdeps/unix/sysv/linux/getpagesize.c: Likewise.
7703         * sysdeps/unix/sysv/linux/i386/dl-librecon.h: Likewise.
7704         * sysdeps/unix/sysv/linux/ia64/dl-static.c: Likewise.
7705         * sysdeps/unix/sysv/linux/ia64/getpagesize.c: Likewise.
7707 2002-01-29  Ulrich Drepper  <drepper@redhat.com>
7709         * sysdeps/ia64/dl-lookupcfg.h (DL_AUTO_FUNCTION_ADDRESS): Add cast
7710         to avoid warning
7711         (DL_STATIC_FUNCTION_ADDRESS): Likewise.
7713         * elf/dl-lookup.c: Only define or handle _dl_num_relocations for the
7714         SHARED version.
7715         * elf/dl-reloc.c: Likewise for _dl_num_cache_relocations.
7717         * elf/rtld.c (_dl_start): Use __builtin_memset if available.
7719 2002-01-29  Ben Collins  <bcollins@debian.org>
7721         * string/bits/string2.h (__mempcpy): Protect size arg for
7722         addition when using __builtin_memcpy.
7724 2002-01-29  Ulrich Drepper  <drepper@redhat.com>
7726         * stdlib/Makefile (tests): Add tst-qsort.
7727         * stdlib/tst-qsort.c: New file.  Written by Paul Eggert.
7729         * manual/signal.texi (Process Signal Mask): Document that
7730         pthread_sigmask, not sigprocmask, must be used in MT programs.
7731         Patch by Bertold Kolics <Bertold.Kolics@Sun.COM>.
7733         * misc/hsearch_r.c (hsearch_r): Don't insert anything if entry is
7734         found.
7735         * misc/Makefile (tests): Add tst-hsearch.
7736         * misc/tst-hsearch.c: New file.
7738 2002-01-18  Wolfram Gloger  <wg@malloc.de>
7740         * malloc/malloc.c: Rewrite, adapted from Doug Lea's malloc-2.7.0.c.
7741         * malloc/malloc.h: Likewise.
7742         * malloc/thread-m.h: Spinlock definitions for x86/x86_64.
7743         * malloc/arena.c: New file.
7744         * malloc/hooks.c: New file.
7745         * malloc/tst-mallocstate.c: New file.
7746         * malloc/Makefile: Add new testcase tst-mallocstate.
7747         Add arena.c and hooks.c to distribute.  Fix commented CPPFLAGS.
7749 2002-01-28  Ulrich Drepper  <drepper@redhat.com>
7751         * stdlib/msort.c: Remove last patch.  The optimization violates the
7752         same rule which qsort.c had problems with.
7754 2002-01-27  Paul Eggert  <eggert@twinsun.com>
7756         * stdlib/qsort.c (_quicksort): Do not apply the comparison function
7757         to a pivot element that lies outside the array to be sorted, as
7758         ISO C99 requires that the comparison function be called only with
7759         addresses of array elements [PR libc/2880].
7761 2002-01-28  Ulrich Drepper  <drepper@redhat.com>
7763         * elf/dl-load.c (_dl_map_object): Remove incorrect optimization
7764         for SHARED code.  Reported by Ben Collins <bcollins@debian.org>.
7766         * timezone/asia: Update from tzdata2002b.
7767         * timezone/australasia: Likewise.
7768         * timezone/backward: Likewise.
7769         * timezone/europe: Likewise.
7770         * timezone/leapseconds: Likewise.
7771         * timezone/iso3166.tab: Likewise.
7772         * timezone/zone.tab: Likewise.
7774 2002-01-23  Richard Henderson  <rth@redhat.com>
7776         * sysdeps/alpha/Makefile (pic-ccflag): New variable.
7778 2002-01-28  Ulrich Drepper  <drepper@redhat.com>
7780         * string/strxfrm.c: Allocate one more byte for rulearr and clear
7781         this element [PR libc/2855].
7783         * string/strcoll.c: Handle zero-length arguments specially
7784         [PR libc/2856].
7786 2002-01-23  Jakub Jelinek  <jakub@redhat.com>
7788         * string/bits/string2.h (__mempcpy): For gcc 3.0+, don't use
7789         __mempcpy_small but instead use __builtin_memcpy ( , , n) + n for
7790         short lengths and constant src.
7791         (strcpy): Don't optimize for gcc 3.0+.
7792         (__stpcpy): For gcc 3.0+, don't use
7793         __stpcpy_small but instead use __builtin_strcpy (, src) + strlen (src)
7794         for short string literal src.
7796 2002-01-23  Jeroen Dobbelaere  <jeroen.dobbelaere@acunia.com>
7798         * sysdeps/unix/sysv/linux/configure.in (libc_cv_gcc_unwind_find_fde):
7799         Set for arm, too.
7801 2001-01-22  Paul Eggert  <eggert@twinsun.com>
7803         * manual/llio.texi (Linked Channels, Cleaning Streams):
7804         Make it clearer that a just-opened input stream might need cleaning.
7806 2002-01-21  H.J. Lu  <hjl@gnu.org>
7808         * sysdeps/mips/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
7809         Don't use label at end of compound statement.
7811 2002-01-28  Stephen L Moshier  <moshier@mediaone.net>
7813         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (__ieee754_lgammal_r):
7814         Remove test for negative integer arg; sin_pi does it correctly.
7816 2002-01-20  Ulrich Drepper  <drepper@redhat.com>
7818         * nscd/Makefile (distribute): Filter out xmalloc.c.
7820 2002-01-19  Ulrich Drepper  <drepper@redhat.com>
7822         * libio/fileops.c (_IO_file_underflow_mmap): Don't define as static.
7823         Set offset if read end wasn't the buffer end.
7824         (_IO_file_seekoff_mmap): New function.
7825         (_IO_file_xsgetn_mmap): New function.
7826         (_IO_file_jumps_mmap): Use the two new functions.
7827         * libio/wfileops.c (_IO_wfile_underflow_mmap): Handle end read buffer
7828         != end buffer.
7829         * libio/libioP.h: Declare _IO_file_seekoff_mmap and
7830         _IO_file_underflow_mmap.
7831         * libio/iofopen.c: Don't position file descriptor at end of file.
7832         * libio/tst-widetext.c: Improve error messages.
7833         * stdio-common/tst-rndseek.c: Likewise.
7835 2002-01-18  Ulrich Drepper  <drepper@redhat.com>
7837         * sysdeps/unix/sysv/linux/bits/statvfs.h: Avoid warning about comma at
7838         end of enum for !_GNU_SOURCE.
7839         * sysdeps/unix/sysv/linux/alpha/bits/statvfs.h: Likewise.
7840         * sysdeps/unix/sysv/linux/ia64/bits/statvfs.h: Likewise.
7841         * sysdeps/unix/sysv/linux/sparc/bits/statvfs.h: Likewise.
7842         * sysdeps/mach/hurd/bits/statvfs.h: Don't define non-standard ST_*
7843         values unless _GNU_SOURCE.
7845         * iconvdata/tcvn5712-1.c: Minor cleanups.
7847 2002-01-18  Andreas Schwab  <schwab@suse.de>
7849         * sysdeps/unix/sysv/linux/configure.in
7850         (libc_cv_gcc_unwind_find_fde): Set for m68k, too.
7852 2002-01-16  Roger Sayle  <roger@eyesopen.com>
7854         * stdlib/msort.c (msort_with_tmp): Replace implementation with
7855         more efficient "Towers of Hanoi" mergesort.
7856         (hanoi_sort, hanoi_sort_int, hanoi_sort_long): New functions,
7857         for generic, sizeof(int) and sizeof(long) variants respectively.
7859 2002-01-17  Ulrich Drepper  <drepper@redhat.com>
7861         * manual/syslog.texi (openlog): Describe possible problems with
7862         first parameter.
7863         Patch by Christopher Allen Wing <wingc@engin.umich.edu>.
7865         * nscd/nscd.c (drop_privileges): Removed.  Adjust caller.
7866         * nscd/connections.c (begin_drop_privileges): New function.
7867         (finish_drop_privileges): New function.
7868         (nscd_init): Call the new functions which also install all groups
7869         for the server user.
7870         * nscd/Makefile (nscd-modules): Add xmalloc for nscd.
7871         Patch by Christopher Allen Wing <wingc@engin.umich.edu>.
7873 2002-01-17  H.J. Lu  <hjl@gnu.org>
7875         * sysdeps/mips/dl-machine.h (__dl_runtime_resolve): Remove
7876         `const' from `got'.
7878 2002-01-17  Martin Schwidefsky  <schwidefsky@de.ibm.com>
7880         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S: Use 64 bit
7881         instructions for pointer operations.
7882         * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S: Likewise.
7884 2002-01-17  Andreas Jaeger  <aj@suse.de>
7886         * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h: GCC 3.1 has
7887         __uint128_t build-in.
7889         * sysdeps/unix/sysv/linux/configure.in: Fix check for S390 and
7890         PowerPC, sync with 2.2 branch.
7892 2002-01-16  Ulrich Drepper  <drepper@redhat.com>
7894         * posix/getconf.c: Update copyright year.
7895         * nss/getent.c: Likewise.
7896         * nscd/nscd_nischeck.c: Likewise.
7897         * iconv/iconvconfig.c: Likewise.
7898         * iconv/iconv_prog.c: Likewise.
7899         * elf/ldconfig.c: Likewise.
7900         * catgets/gencat.c: Likewise.
7901         * csu/version.c: Likewise.
7902         * elf/ldd.bash.in: Likewise.
7903         * elf/sprof.c (print_version): Likewise.
7904         * locale/programs/locale.c: Likewise.
7905         * locale/programs/localedef.c: Likewise.
7906         * nscd/nscd.c (print_version): Likewise.
7907         * debug/xtrace.sh: Likewise.
7908         * malloc/memusage.sh: Likewise.
7909         * malloc/mtrace.pl: Likewise.
7911 2002-01-16  Andreas Schwab  <schwab@suse.de>
7913         * sysdeps/unix/sysv/linux/ia64/ldd-rewrite.sed: Fix regexp to
7914         reliably remove "-ia64" from rtld name.
7916 2002-01-16  Ulrich Drepper  <drepper@redhat.com>
7918         * iconvdata/gb18030.c: Bug fixes and support for more characters.
7919         Patch by Yu Shao <yshao@redhat.com>.
7921 2002-01-16  Martin Schwidefsky  <schwidefsky@de.ibm.com>
7923         * sysdeps/unix/sysv/linux/s390/swapcontext.c: Remove.
7924         * sysdeps/unix/sysv/linux/s390/s390-32/swapcontext.S: New file.
7925         * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S: New file.
7927 2002-01-14  Martin Schwidefsky  <schwidefsky@de.ibm.com>
7929         * sysdeps/s390/fpu/libm-test-ulps: Update.
7931 2002-01-11  Ulrich Drepper  <drepper@redhat.com>
7933         * elf/elf.h: Update x86 relocations.
7935 2002-01-10  Ulrich Drepper  <drepper@redhat.com>
7937         * locale/programs/charmap.c (new_width): Check whether byte
7938         sequences for both ends of range have the same length.
7940 2002-01-09  Jakub Jelinek  <jakub@redhat.com>
7942         * elf/elf.h (SHN_UNDEF): Remove duplicate definition.
7944 2002-01-09  Jakub Jelinek  <jakub@redhat.com>
7946         * sysdeps/alpha/fpu/e_sqrt.c (__ieee754_sqrt): Don't use multi-line
7947         string literals.
7948         (__full_ieee754_sqrt): Add __attribute_used__.
7950 2002-01-10  Ulrich Drepper  <drepper@redhat.com>
7952         * sysdeps/generic/group_member.c (__group_member): Also check
7953         groups[0] [PR libc/2781].
7955 2002-01-08  Ulrich Drepper  <drepper@redhat.com>
7957         * Makefile (distribute): Add scripts/cpp.
7958         * elf/Makefile (distribute): Add reldep6mod[01234].c,
7959         unwind-dw2.c, unwind-dw2-fde.c, unwind.h, unwind-pe.h,
7960         unwind-dw2-fde.h, and dwarf2.h.
7961         * sysdeps/unix/bsd/bsd4.4/Dist: New file.
7962         * sysdeps/unix/sysv/aix/Dist: Add sysv_termio.h and start-libc.c.
7963         * sysdeps/unix/sysv/linux/ia64/Dist: Add ldd-rewrite.sed.
7964         * sysdeps/unix/sysv/linux/s390/Dist: Likewise.
7966 2002-01-07  Roland McGrath  <roland@frob.com>
7968         * sysdeps/mach/hurd/i386/init-first.c (_hurd_stack_setup): Use
7969         volatile on type of ARGC so the compiler doesn't get clever.
7971 2002-01-07  Andreas Jaeger  <aj@suse.de>
7973         * sysdeps/generic/bits/byteswap.h: Prevent double inclusion.
7974         * sysdeps/i386/bits/byteswap.h: Likewise.
7975         * sysdeps/ia64/bits/byteswap.h: Likewise.
7976         * sysdeps/m68k/bits/byteswap.h: Likewise.
7977         * sysdeps/s390/s390-32/bits/byteswap.h: Likewise.
7978         * sysdeps/s390/s390-64/bits/byteswap.h: Likewise [PR libc/2757].
7980 2002-01-02  Bruno Haible  <bruno@clisp.org>
7982         * intl/plural.y: Fix %expect count.
7984 2002-01-03  Jakub Jelinek  <jakub@redhat.com>
7986         * elf/Makefile (routines, shared-only-routines): Add
7987         unwind-dw2-fde-glibc instead of unwind-dw2-fde.
7988         * elf/elf.h (PT_GNU_EH_FRAME): Define.
7989         * sysdeps/generic/unwind-dw2-fde-glibc.c: New file.
7990         * sysdeps/generic/unwind-dw2-fde.c (__register_frame_info_bases):
7991         Optimize if .eh_frame section contains no FDEs.
7992         (__register_frame, __deregister_frame_info_bases,
7993         __deregister_frame): Likewise.
7994         * sysdeps/generic/unwind-dw2.c (execute_cfa_program): Fix
7995         DW_CFA_restore handling.
7997 2002-01-07  Stephen L Moshier  <moshier@mediaone.net>
7999         * sysdeps/ieee754/ldbl-96/s_erfl.c (erfcl): Fix K&R header.
8001         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (sin_pi): Fix typo in test
8002         for x < 0.25 and restore original range reduction method.
8003         (__ieee754_lgammal_r): Make sure signgam is set before returning.
8005 2002-01-07  Ulrich Drepper  <drepper@redhat.com>
8007         * libio/fileops.c (_IO_file_underflow_mmap): New function.
8008         (_IO_file_close_mmap): New function.
8009         (_IO_file_jumps_mmap): New variable.
8010         * libio/wfileops.c (_IO_wfile_underflow): Reset read pointer before
8011         trying to convert rest of byte buffer.
8012         (_IO_wfile_underflow_mmap): New function.
8013         (_IO_wfile_jumps_mmap): New variable.
8014         * libio/iofopen.c (__fopen_maybe_mmap): New function.
8015         (__fopen_internal): New function.  Split out from _IO_new_fopen.
8016         (_IO_new_fopen): Call __fopen_internal.
8017         * libio/iofopen64.c: Just call __fopen_internal.
8018         * libio/iofdopen.c: Call __fopen_maybe_mmap before returning
8019         successfully.
8020         * libio/iolibio.h: Declare __fopen_internal and __fopen_maybe_mmap.
8021         * libio/libioP.h: Declare _IO_file_jumps_mmap, _IO_wfile_jumps_mmap,
8022         _IO_file_close_mmap.
8024         * sysdeps/gnu/_G_config.h: Define _G_MMAP64.
8025         * sysdeps/unix/sysv/linux/cris/_G_config.h: Likewise.
8027         * stdio-common/Makefile (tests): Add tst-rndseek.
8028         * stdio-common/tst-rndseek.c: New file.
8030 2002-01-05  Roland McGrath  <roland@frob.com>
8032         * config.h.in (HAVE_MIG_RETCODE): New #undef.
8033         * sysdeps/mach/hurd/configure.in (hurd_MIG_RETCODE: New macro
8034         swiped from hurd package's aclocal.m4; use it to set HAVE_MIG_RETCODE.
8035         * sysdeps/mach/hurd/configure: Regenerated.
8037 2002-01-03  Ulrich Drepper  <drepper@redhat.com>
8039         * elf/elf.h: Add more TLS definitions.
8041 2002-01-02  Ulrich Drepper  <drepper@redhat.com>
8043         * include/features.h (__GLIBC_MINOR__): Bump to 3.
8045 2002-01-02  Roland McGrath  <roland@frob.com>
8047         * sysdeps/mach/hurd/sigwait.c (__sigwait): Use __sigandset,
8048         __sigisemptyset.  Don't use MASK uninitialized.
8050         * sysdeps/mach/hurd/sigprocmask.c (__sigprocmask): Use __sigorset.
8051         * hurd/hurdinit.c (_hurd_new_proc_init): Use __sigisemptyset.
8052         * hurd/hurdsig.c (_hurd_internal_post_signal): Use __sigismember,
8053         __sigdelset, __sigaddset, __sigorset.
8055         * sysdeps/generic/htonl.c: Use uint32_t instead of u_int32_t.
8056         * sysdeps/generic/htons.c: Use uint16_t instead of u_int16_t.
8058         * hurd/hurdinit.c (_hurd_ports_use): Return EGRATUITOUS when
8059         _hurd_ports is null.
8061         * hurd/hurdsig.c (_hurdsig_init): Conditionalize exception port setup
8062         for old CMU and new OSF Mach interface flavors.
8063         * hurd/hurdfault.c (_hurdsig_fault_init): Likewise.
8064         * sysdeps/mach/hurd/fork.c (__fork): Likewise.
8066         * hurd/hurdsig.c (_hurd_internal_post_signal): Leave msgh_seqno unset.
8068         * sysdeps/mach/hurd/spawni.c (__spawni) [KERN_INVALID_LEDGER]:
8069         Pass extra arguments to task_create for OSF variant.
8070         * sysdeps/mach/hurd/fork.c (__fork): Likewise.
8072         * sysdeps/powerpc/elf/libc-start.c: Make AUXVEC diddling code
8073         conditional on [HAVE_AUX_VECTOR].
8075         * mach/mach/mach_traps.h (thread_switch, __thread_switch): Use
8076         mach_msg_timeout_t as type of final argument.
8078         * hurd/privports.c (__get_privileged_ports):
8079         Change host_priv_t to mach_port_t in argument type.
8080         * hurd/hurd.h (get_privileged_ports, __get_privileged_ports):
8081         Update decls.
8083         * sysdeps/mach/hurd/i386/bits/sigcontext.h: Protect from
8084         multiple inclusion.  Inhibit #error under [_SYS_UCONTEXT_H].
8085         * sysdeps/mach/hurd/alpha/bits/sigcontext.h: Likewise.
8086         * sysdeps/mach/hurd/hppa/bits/sigcontext.h: Likewise.
8087         * sysdeps/mach/hurd/mips/bits/sigcontext.h: Likewise.
8088         * sysdeps/mach/hurd/powerpc/bits/sigcontext.h: Likewise.
8090 2002-01-01  Roland McGrath  <roland@frob.com>
8092         * sysdeps/mach/hurd/errnos.awk: Tighten up device_types.h matching.
8094 2002-01-01  Ulrich Drepper  <drepper@redhat.com>
8096         * include/stdlib.h: Define inlines for the _l variants of the strto*
8097         functions.
8099 2002-01-01  Roland McGrath  <roland@frob.com>
8101         * sysdeps/mach/hurd/powerpc/intr-msg.h: Remove extraneous backslash.
8103         * mach/Machrules (MIG): Set CPP as well as CC.
8105 2001-12-31  Ulrich Drepper  <drepper@redhat.com>
8107         * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Always use C
8108         locale to parse /proc/loadavg [PR libc/2760].
8110 2001-12-31  Jakub Jelinek  <jakub@redhat.com>
8112         * elf/dl-conflict.c: Include sys/param.h.
8113         (RESOLVE_CONFLICT_FIND_MAP): Cast r_offset to ElfW(Addr).
8114         * sysdeps/alpha/dl-machine.h (elf_machine_runtime_setup): Avoid
8115         warning.
8116         (TRAMPOLINE_TEMPLATE, RTLD_START): Don't use multi-line string
8117         literals to avoid warnings.
8119 2001-12-31  Andreas Jaeger  <aj@suse.de>
8121         * configure.in: Don't check for gsed since we do not use it anywhere.
8123 2001-12-25  Dmitry V. Levin  <ldv@alt-linux.org>
8125         * io/fts.c: Update from BSD to fix memory leaks.
8127 2001-12-25  Dmitry V. Levin  <ldv@alt-linux.org>
8129         * crypt/md5-crypt.c: Realloc error handling memory leak fix.
8130         * elf/chroot_canon.c: Likewise.
8131         * elf/dl-object.c: Likewise.
8132         * iconv/iconv_charmap.c: Likewise.
8133         * iconv/iconv_prog.c: Likewise.
8134         * libio/iogetdelim.c: Likewise.
8135         * locale/lc-time.c: Likewise.
8136         * stdlib/canonicalize.c: Likewise.
8137         * sunrpc/svc.c: Likewise.
8138         * sysdeps/generic/glob.c: Likewise.
8140 2001-12-19  Martin Schwidefsky  <schwidefsky@de.ibm.com>
8142         * sysdeps/unix/sysv/linux/s390/profil-counter.h: Move/copy to ...
8143         * sysdeps/unix/sysv/linux/s390/s390-32/profil-counter.h: ... here,
8144         remove high order bit from the program counter.
8145         * sysdeps/unix/sysv/linux/s390/s390-64/profil-counter.h: ... and here.
8147 2001-12-19  Martin Schwidefsky  <schwidefsky@de.ibm.com>
8149         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): Remove
8150         unnecessary code and add missing reloc types.
8151         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Add empty
8152         case for reloc type R_390_NONE.
8154 2001-12-28  Andreas Jaeger  <aj@suse.de>
8156         * io/bug-ftw3.c: Include string.h for prototypes.
8158         * crypt/md5test.c (main): Remove unused variable.
8160         * dlfcn/modstatic.c: Add prototype to avoid warning.
8162 2001-12-26  Roland McGrath  <roland@frob.com>
8164         * sysdeps/mach/hurd/sigwait.c (__sigwait): When returning immediately,
8165         check only (SS->pending & MASK) for the signal to return.
8166         From Jeroen Dekkers <jeroen@dekkers.cx>.
8168 2001-12-22  Roland McGrath  <roland@frob.com>
8170         * iconv/skeleton.c [!RESET_INPUT_BUFFER && !SAVE_RESET_STATE]:
8171         Use preprocessor #if conditionals instead of `if' to avoid
8172         warnings about divide by zero in dead code.
8174         * hurd/Versions (libc: GLIBC_2.2.5): Add _hurd_port_set,
8175         _hurd_port_init, and __hurd_self_sigstate.
8177         * mach/Versions (libc: GLIBC_2.2.5): Add mig_strncpy.
8179 2001-12-21  Andreas Jaeger  <aj@suse.de>
8181         * elf/dblloadmod1.c: Add prototype to avoid warning.
8182         * elf/dblloadmod2.c: Likewise.
8183         * elf/dblloadmod3.c: Likewise.
8184         * elf/reldepmod5.c: Likewise.
8185         * elf/reldepmod6.c: Likewise.
8187         * elf/dl-conflict.c (_dl_resolve_conflicts): Add unused attribute
8188         for resolve_conflict_map since RESOLVE_CONFLICT_FIND_MAP is not
8189         used on all architectures.
8191         * sunrpc/svc_tcp.c: Add noreturn attribute for
8192         svctcp_rendezvous_abort.
8193         * sunrpc/svc_unix.c: Likewise for svcunix_rendezvous_abort.
8195         * sysdeps/generic/strstr.c (strstr): Add paranthese for assignment
8196         to avoid warning.
8198 2001-12-19  Jakub Jelinek  <jakub@redhat.com>
8200         * manual/llio.texi (aio_fsync): Fix a typo.
8201         Patch by Tammy Fox <tfox@redhat.com>.
8203 2001-12-18  Jakub Jelinek  <jakub@redhat.com>
8205         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (clone): Subtract
8206         stack bias from child stack pointer before passing it to clone syscall.
8208 2001-12-18  Ulrich Drepper  <drepper@redhat.com>
8210         * sysdeps/posix/sysconf.c (__sysconf): Respect POSIX minimum for
8211         _SC_TZNAME_MAX.
8212         * sysdeps/generic/sysconf.c (__sysconf): Likewise.
8213         Reported by Thorsten Kukuk <kukuk@suse.de>.
8215         * sysdeps/unix/grantpt.c (grantpt): Correct typo in comment and
8216         add some casts.
8218         * sysdeps/unix/sysv/linux/grantpt.c: Make __unix_grantpt static.
8220 2001-12-18  Thorsten Kukuk  <kukuk@suse.de>
8222         * sysdeps/unix/sysv/linux/grantpt.c: Make errno results standard
8223         conforming: return EBADF if file descriptor is invalid and EINVAL
8224         if file descriptor is no valid tty.
8225         * login/tst-grantpt.c: New file.
8226         * login/Makefile (tests): Add tst-grantpt.
8228 2001-12-17  Ulrich Drepper  <drepper@redhat.com>
8230         * io/ftw.c (ftw_dir): Handle inaccessibility of toplevel dir
8231         different than implemented in last patch.
8232         * io/bug-ftw3.c: Adjust test for changed handling of
8233         inaccessibility of toplevel dir.
8235 2001-12-16  Roland McGrath  <roland@frob.com>
8237         * nss/nsswitch.c (__nss_next): Don't use __FUNCTION__ as literal.
8238         * grp/initgroups.c (internal_getgrouplist): Likewise.
8240         * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): Add `break' after
8241         `default:' to silence new GCC warning.
8242         Rewrite cast of lvalue to silence new GCC warning.
8244         * sysdeps/mach/hurd/i386/init-first.c: Avoid multi-line strings in asm.
8246         * sysdeps/mach/hurd/spawni.c: New file, by me with a
8247         couple fixes by Neal H Walfield <neal@cs.uml.edu>.
8249 2001-12-14  Ulrich Drepper  <drepper@redhat.com>
8251         * sysdeps/generic/strstr.c (strstr): Update.  New optimized version.
8252         Patch by Stephen R. van den Berg.
8254         * crypt/md5.h: Define md5_uintptr.
8256 2001-12-13  Ulrich Drepper  <drepper@redhat.com>
8258         * libio/tst_swprintf.c (main): Add test for string argument with
8259         zero precision.
8260         * stdio-common/Makefile (tests): Add tst-sprintf.
8261         * stdio-common/tst-sprintf.c: New file.
8263 2001-12-13  Andreas Schwab  <schwab@suse.de>
8265         * stdio-common/vfprintf.c (process_string_arg): Correctly handle
8266         zero precision with wide character string format.
8268 2001-12-13  Thorsten Kukuk  <kukuk@suse.de>
8270         * sysdeps/posix/cuserid.c (cuserid): If we don't find the UID,
8271         but have a user supplied buffer, return the empty buffer, not NULL.
8273 2001-12-13  Ulrich Drepper  <drepper@redhat.com>
8275         * crypt/md5.c (md5_process_bytes): Correct handling of alignment.
8276         Patch by Eric Sharkey <sharkey@netrics.com>.
8278         * crypt/md5test.c (main): Add test for multiple calls to
8279         __md5_process_bytes to itererate over input string.
8281 2001-12-12  Ulrich Drepper  <drepper@redhat.com>
8283         * nis/nis_findserv.c (__nis_findfastest_with_timeout): Mostly the code
8284         from __nis_findfastest.  Take timeout value from parameter.
8285         (__nis_findfastest): Call __nis_findfastest_with_timeout repeatedly.
8286         * nis/nis_intern.h: Define parameters controlling __nis_findfastest
8287         [PR libc/2520].  Patch by Alexander Belopolsky <alexb@rentec.com>.
8289 2001-12-12  Andreas Jaeger  <aj@suse.de>
8291         * configure.in: Use -nostartfiles -nostdlib for linker tests, fix
8292         combreloc test so that it works in this case.
8294         * sysdeps/arm/dl-machine.h (elf_machine_rela): Fix typo in last patch.
8296 2001-12-12  NIIBE Yutaka  <gniibe@m17n.org>
8298         * sysdeps/sh/Makefile: New file.
8299         * sysdeps/sh/_mcount.S: New file.
8300         * sysdeps/sh/sysdep.h (CALL_MCOUNT): Implemented.
8301         * sysdeps/sh/machine-gmon.h: Remove "NOTYET" comment, as we are ready.
8303 2001-12-11  Ulrich Drepper  <drepper@redhat.com>
8305         * resolv/nss_dns/dns-host.c (getanswer_r): Remove MAX_NR_ADDRS
8306         limitation [PR libc/2564].
8308 2001-12-11  Jakub Jelinek  <jakub@redhat.com>
8310         * elf/Makefile (dl-routines): Add conflict.
8311         (rtld-ldscript-in, rtld-ldscript, rtld-parms): Remove.
8312         (ld.so): Add _begin local symbol.
8313         * elf/elf.h (DT_VALTAGIDX, DT_VALNUM, DT_ADDRTAGIDX, DT_ADDRNUM):
8314         Define.
8315         * elf/dl-deps.c (_dl_build_local_scope): New.
8316         (_dl_map_object_deps): If LD_TRACE_PRELINKING, compute local scopes
8317         of all libraries.
8318         * elf/do-rel.h (VALIDX): Define.
8319         (elf_dynamic_do_rel): If ELF_MACHINE_PLT_REL is defined, don't do
8320         lazy binding for RELA.  If DT_GNU_PRELINKED, DT_RELACOUNT relocations
8321         can be skipped.
8322         * elf/dl-conflict.c: New file.
8323         * elf/dl-lookup.c (_dl_debug_bindings): New.
8324         (_dl_lookup_symbol): Use _dl_debug_bindings.  Reference_name is always
8325         non-NULL.
8326         (_dl_lookup_symbol_skip): Likewise.
8327         (_dl_lookup_versioned_symbol): Likewise.
8328         (_dl_lookup_versioned_symbol_skip): Likewise.
8329         * elf/dl-runtime.c (PLTREL): If ELF_MACHINE_PLT_REL is defined,
8330         define to ElfW(Rel).
8331         * elf/dynamic-link.h (elf_get_dynamic_info): Record selected dynamic
8332         tags in the DT_VALRNGLO..DT_VALRNGHI and DT_ADDRRNGLO..DT_ADDRRNGHI
8333         ranges.
8334         Don't adjust address dynamic tags if l_addr is 0.
8335         * elf/rtld.c (_dl_trace_prelink, _dl_trace_prelink_map): New variables.
8336         (_dl_start): Skip ELF_DYNAMIC_RELOCATE if ld.so is prelinked.
8337         (VALIDX, ADDRIDX): Define.
8338         (_dl_start_final): Initialize _dl_rtld_map's l_map_start and l_map_end.
8339         (dl_main): Print library list for LD_TRACE_PRELINKING.
8340         If prelinking information can be used, skip relocating libraries and
8341         call _dl_resolve_conflicts instead.
8342         (process_envvars): Handle LD_TRACE_PRELINKING envvar.
8343         * elf/dl-load.c (_dl_map_object): Don't create fake libs
8344         if LD_TRACE_PRELINKING.
8345         * include/link.h (struct link_map) [l_info]: Add DT_VALNUM
8346         + DT_ADDRNUM.
8347         * sysdeps/generic/ldsodefs.h (_dl_trace_prelink_map): New declaration.
8348         (DL_DEBUG_PRELINK): Define.
8349         (_dl_resolve_conflicts): Add prototype.
8351         * sysdeps/alpha/dl-machine.h (elf_machine_runtime_setup): Reinitialize
8352         .plt for prelinked libraries where prelinking info cannot be used.
8353         (elf_machine_rela): If relocating R_ALPHA_JMP_SLOT in .gnu.conflict
8354         section, use RESOLVE_CONFLICT_FIND_MAP to find out reloc's link_map.
8355         * sysdeps/arm/bits/link.h: New file.
8356         * sysdeps/arm/dl-machine.h (elf_machine_runtime_setup): Save original
8357         content of .got[1].
8358         (ELF_MACHINE_NO_RELA): Only define if RTLD_BOOTSTRAP.
8359         (ELF_MACHINE_PLT_REL): Define.
8360         (elf_machine_rela, elf_machine_rela_relative): New.
8361         (elf_machine_lazy_rel): Reinitialize R_ARM_JUMP_SLOT address instead
8362         of adjusting it if prelinked and prelinking cannot be used.
8363         * sysdeps/i386/bits/link.h: New file.
8364         * sysdeps/i386/dl-machine.h (elf_machine_runtime_setup): Save original
8365         content of .got[1].
8366         (ELF_MACHINE_NO_RELA): Only define if RTLD_BOOTSTRAP.
8367         (ELF_MACHINE_PLT_REL): Define.
8368         (elf_machine_rela, elf_machine_rela_relative): New.
8369         (elf_machine_lazy_rel): Reinitialize R_386_JUMP_SLOT address instead
8370         of adjusting it if prelinked and prelinking cannot be used.
8371         * sysdeps/powerpc/dl-machine.h (elf_machine_rela): If relocating
8372         conflicts, skip finaladdr computation.  Use RESOLVE_CONFLICT_FIND_MAP
8373         to find out map for R_PPC_JMP_SLOT relocs.
8374         * sysdeps/sparc/sparc32/dl-machine.h (VALIDX): Define.
8375         (OPCODE_BA): Define.
8376         (elf_machine_runtime_setup): Reinitialize .plt for prelinked
8377         libraries where prelinking info cannot be used.
8378         (sparc_fixup_plt): Renamed from elf_machine_fixup_plt.
8379         (elf_machine_fixup_plt): Call sparc_fixup_plt.
8380         (elf_machine_rela): Set value to 0 if relocating conflicts.
8381         Call sparc_fixup_plt for R_SPARC_JMP_SLOT.
8382         * sysdeps/sparc/sparc64/dl-machine.h (VALIDX): Define.
8383         (sparc64_fixup_plt): Fix a typo.
8384         (elf_machine_rela): Set value to 0 if relocating conflicts.
8385         Handle R_SPARC_JMP_SLOT relocs when relocating conflicts.
8386         (elf_machine_runtime_setup): Reinitialize .plt for prelinked
8387         libraries where prelinking info cannot be used.
8388         * sysdeps/sh/bits/link.h: New file.
8389         * sysdeps/sh/dl-machine.h (elf_machine_runtime_setup): Save original
8390         content of .got[1].
8391         (elf_machine_lazy_rel): Reinitialize R_SH_JMP_SLOT address instead
8392         of adjusting it if prelinked and prelinking cannot be used.
8393         * sysdeps/s390/s390-32/bits/link.h: New file.
8394         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_runtime_setup):
8395         Save original content of .got[1].
8396         (elf_machine_lazy_rel): Reinitialize R_390_JMP_SLOT address instead
8397         of adjusting it if prelinked and prelinking cannot be used.
8398         * sysdeps/s390/s390-64/bits/link.h: New file.
8399         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_runtime_setup):
8400         Save original content of .got[1].
8401         (elf_machine_lazy_rel): Reinitialize R_390_JMP_SLOT address instead
8402         of adjusting it if prelinked and prelinking cannot be used.
8403         * sysdeps/x86_64/bits/link.h: New file.
8404         * sysdeps/x86_64/dl-machine.h (elf_machine_runtime_setup):
8405         Save original content of .got[1].
8406         (elf_machine_lazy_rel): Reinitialize R_X86_64_JMP_SLOT address instead
8407         of adjusting it if prelinked and prelinking cannot be used.
8409 2001-12-11  Ulrich Drepper  <drepper@redhat.com>
8411         * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_r): Use sizeof
8412         where appropriate instead of numbers.  Little optimizations.
8414 2001-12-10  Roland McGrath  <roland@frob.com>
8416         * sysdeps/mach/hurd/bind.c (bind): Don't deallocate IFSOCK if we never
8417         set it.
8419         * shlib-versions [USE_IN_LIBIO] (.*-.*-gnu-gnu.*): Set default
8420         set to GLIBC_2.2.5, not GLIBC_2.2.4.
8422         * sysdeps/mach/hurd/configure.in (libc_cv_gcc_unwind_find_fde):
8423         Fix conditionals so this is set by default for stdio and not for libio.
8424         * sysdeps/mach/hurd/configure: Regenerated.
8426 2001-12-10  Thorsten Kukuk  <kukuk@suse.de>
8428         * io/ftw.c (ftw_startup): Check, if the path is search and readable.
8430 2001-12-10  Ulrich Drepper  <drepper@redhat.com>
8432         * io/Makefile (tests): Add bug-ftw3.
8433         * io/bug-ftw3.c: New file.
8435         * sysdeps/generic/glob.c (glob): Return only pattern if nothing
8436         matches and GLOB_NOCHECK is set.
8437         * posix/globtest.sh: Correct expected result for NOCHECK test.
8439         * po/ca.po: Update from translation team.
8441 2001-12-09  Ulrich Drepper  <drepper@redhat.com>
8443         Implement transliteration of characters in strings of the locale
8444         definitions.
8445         * locale/programs/linereader.c: Adjust for additional parameter to
8446         lr_token.
8447         (get_string): If character <Uxxxx> is not found try to transliterate
8448         it.
8449         * locale/programs/ld-ctype.c: Adjust for additional parameter to
8450         lr_token.  Add const to charmap parameter of all functions.
8451         (find_translit, find_translit2): New functions.
8452         * locale/programs/charmap.c: Adjust for additional parameter to
8453         lr_token.
8454         * locale/programs/repertoire.c: Likewise.
8455         * locale/programs/linereader.h: Likewise.
8456         * locale/programs/ld-address.c: Likewise.  Add const to charmap
8457         parameter of all functions.
8458         * locale/programs/ld-collate.c: Likewise.
8459         * locale/programs/ld-identification.c: Likewise.
8460         * locale/programs/ld-measurement.c: Likewise.
8461         * locale/programs/ld-messages.c: Likewise.
8462         * locale/programs/ld-monetary.c: Likewise.
8463         * locale/programs/ld-name.c: Likewise.
8464         * locale/programs/ld-numeric.c: Likewise.
8465         * locale/programs/ld-paper.c: Likewise.
8466         * locale/programs/ld-paper.c: Likewise.
8467         * locale/programs/ld-telephone.c: Likewise.
8468         * locale/programs/ld-time.c: Likewise.
8469         * locale/programs/locfile.c: Likewise.
8470         * locale/programs/localedef.c: Likewise.
8471         * locale/programs/localedef.h: Likewise.
8472         * locale/programs/locfile.h: Likewise.  Add declaration for
8473         find_translit.
8474         * locale/programs/simple-hash.c: Add const to first parameter of
8475         find_entry, iterate_table, and lookup.
8476         * locale/programs/simple-hash.h: Likewise.
8477         * locale/localeinfo.h: Don't define __LC_LAST here.  Include <locale.h>
8478         instead.
8479         * include/locale.h: Define __LC_LAST.
8480         * iconv/Makefile (CFLAGS-linereader.c): Define to -DNO_TRANSLITERATION.
8482 2001-12-07  Geoff Keating  <geoffk@redhat.com>
8484         * sysdeps/powerpc/Dist: Update for recent FP changes.
8485         * sysdeps/powerpc/fpu/Dist: Likewise.
8487 2001-12-07  Andreas Schwab  <schwab@suse.de>
8489         * sysdeps/unix/sysv/linux/opensock.c: Include <string.h>.
8491 2001-12-06  Geoff Keating  <geoffk@redhat.com>
8493         * sysdeps/powerpc/Makefile (sysdep_routines): Don't build the fpr
8494         save/restore functions here.
8495         (libm-support): Don't define these functions here.
8496         * sysdeps/powerpc/fpu/Makefile: Build the fpr save/restore
8497         functions here.
8498         * sysdeps/powerpc/fe_nomask.c: Move to...
8499         * sysdeps/powerpc/fpu/fe_nomask.c: ... here.
8500         * sysdeps/powerpc/fprrest.S: Move to...
8501         * sysdeps/powerpc/fpu/fprrest.S: ... here.
8502         * sysdeps/powerpc/fprsave.S: Move to...
8503         * sysdeps/powerpc/fpu/fprsave.S: ... here.
8505 2001-12-06  Ulrich Drepper  <drepper@redhat.com>
8507         * sysdeps/unix/sysv/linux/opensock.c: New file.
8509 2001-12-06  Geoff Keating  <geoffk@redhat.com>
8511         * config.make.in (with-fp): Define from configure.
8512         * configure.in: Substitute with_fp.
8513         * configure: Regenerate.
8514         * sysdeps/powerpc/Makefile: Set -msoft-float when --without-fp is
8515         specified, and don't change FPU environment.
8517 2001-12-06  Ulrich Drepper  <drepper@redhat.com>
8519         * libio/vasprintf.c (_IO_vasprintf): Free buffer on failure.
8520         * assert/assert.c: Check result of __asprintf call and don't use
8521         string if it failed.
8522         * assert/assert-perr.c: Likewise.
8523         * inet/rcmd.c: Likewise.
8524         * locale/programs/localedef.c (main): Check result of
8525         construct_output_path and exit if it failed.
8526         (construct_output_path): Check result of asprintf and mkdir calls and
8527         fail if they failed.
8528         * posix/getopt.c: Check result of __asprintf calls and fail if
8529         they failed.
8530         Patch by Dmitry V. Levin <ldv@alt-linux.org>.
8532 2001-12-05  Ulrich Drepper  <drepper@redhat.com>
8534         * sysdeps/generic/strcasecmp.c (__strcasecmp): Little performance
8535         patch.
8536         * sysdeps/generic/strncase.c: Likewise.
8537         * string/tester.c: Add tests for strcasecmp and strncasecmp.
8539 2001-12-05  Geoff Keating  <geoffk@redhat.com>
8541         * scripts/cpp: Test the exit status from 'type', not 'awk'.
8543         * sysdeps/powerpc/__longjmp.S: Don't restore FP registers.
8544         * sysdeps/powerpc/fpu/__longjmp.S: Do restore FP registers.
8545         * sysdeps/powerpc/setjmp.S: Don't save FP registers.
8546         * sysdeps/powerpc/fpu/setjmp.S: Do save FP registers.
8547         * sysdeps/powerpc/fclrexcpt.c: Move to...
8548         * sysdeps/powerpc/fpu/fclrexcpt.c: ... here.
8549         * sysdeps/powerpc/fpu_control.h: Move to...
8550         * sysdeps/powerpc/fpu/fpu_control.h: ... here.
8552 2001-12-05  Ulrich Drepper  <drepper@redhat.com>
8554         * iconvdata/ibm1129.h: Remove duplicate mappings.
8555         * iconvdata/ibm937.c: Handle overflow errors.  Handle new tables.
8556         * iconvdata/ibm937.h: Reorganize table to safe a lot of space.
8557         Patch by Masahide Washizawa <WASHI@jp.ibm.com>.
8559         * timezone/zic.c: Fix handling of turnaround times.
8560         Patch by Arthur David Olson <olsona@dc37a.nci.nih.gov>.
8562 2001-12-02  Moshe Olshansky  <OLSHANSK@il.ibm.com>
8564         * sysdeps/ieee754/dbl-64/e_remainder.c (__ieee754_remainder): Fix
8565         overflow problem.
8567 2001-12-05  Ulrich Drepper  <drepper@redhat.com>
8569         * posix/regex.c: For use outside glibc defined bounded pointer
8570         macros here.  Patch by Jim Meyering <jim@meyering.net>.
8572         * iconvdata/Makefile (modules): Add TCVN5712-1.
8573         * iconvdata/TESTS: Add TCVN5712-1.
8574         * iconvdata/gconv-modules: Likewise.
8575         * iconvdata/tcvn5712-1.c: New file.
8576         * iconvdata/testdata/TCVN-5712: New file.
8577         * iconvdata/testdata/TCVN-5712..UTF8: New file.
8579 2001-12-04  Ulrich Drepper  <drepper@redhat.com>
8581         * iconvdata/cp1258.c: Optimize conversion from UCS4.
8583 2001-12-02  Roland McGrath  <roland@frob.com>
8585         * mach/Makefile, mach/Machrules: Move comments out of \ continuations.
8587         * hurd/hurd.h (__hurd_fail): Add `break;' to silence new gcc-3 warning.
8588         Reported by Jeff Bailey <jbailey@nisa.net>.
8590         * hurd/hurd.h (_hurd_umask): Remove volatile qualifier from decl.
8591         Reported by Jeff Bailey <jbailey@nisa.net>.
8593         * mach/Makefile ($(objpfx)mach-syscalls.mk): Pass $(CFLAGS) to $(CC).
8594         * mach/Machrules ($(objpfx)%.udeps static pattern rule): Likewise.
8595         Reported by Jeff Bailey <jbailey@nisa.net>.
8597 2001-12-01  Roland McGrath  <roland@frob.com>
8599         * sysdeps/mach/hurd/configure.in (libc_cv_gcc_unwind_find_fde): Add
8600         missing backslash in test arguments.
8601         * sysdeps/mach/hurd/configure: Regenerated.
8603 2001-11-26  Roland McGrath  <roland@frob.com>
8605         * hurd/hurdinit.c (_hurd_ports_use): Check if _hurd_ports is null.
8606         Reported by John Tobey <jtobey@john-edwin-tobey.org>.
8608 2001-11-30  Ulrich Drepper  <drepper@redhat.com>
8610         * iconvdata/Makefile (modules): Add ARMSCII-8.
8611         * iconvdata/gconv-modules: Add entries for ARMSCII-8.
8612         * iconvdata/armscii-8.c: New file.
8614 2001-11-29  Jakub Jelinek  <jakub@redhat.com>
8616         * sysdeps/generic/glob.c (next_brace_sub): Return NULL if braces
8617         don't match, fix {{a,b},c} globbing, clean up.
8618         Patch by Flavio Veloso <flaviovs@magnux.com>.
8619         * posix/globtest.sh: Add new tests.
8621 2001-11-29  Andreas Jaeger  <aj@suse.de>
8623         * sysdeps/unix/sysv/linux/x86_64/Versions: Add arch_prctl.
8624         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Add arch_prctl call.
8626         * sysdeps/generic/abort.c: Include libioP.h for
8627         _IO_flush_all_lockp prototype.
8629 2001-11-29  Ulrich Drepper  <drepper@redhat.com>
8631         * posix/regex.h: Define __restrict_arr correctly.
8633 2001-11-28  Ulrich Drepper  <drepper@redhat.com>
8635         * iconvdata/ibm1163.c: New file.
8636         * iconvdata/ibm1163.h: New file.
8637         * iconvdata/ibm1164.c: New file.
8638         * iconvdata/ibm1164.h: New file.
8639         * iconvdata/TESTS: Add entries for IBM1163 and IBM1164.
8640         * iconvdata/Makefile: Likewise.
8641         * iconvdata/testdata/IBM1163: New file.
8642         * iconvdata/testdata/IBM1163..UTF8: New file.
8643         * iconvdata/testdata/IBM1164: New file.
8644         * iconvdata/testdata/IBM1164..UTF8: New file.
8645         Patch by Masahide Washizawa <WASHI@jp.ibm.com>.
8647         * iconvdata/ibm1046.h: Optimize.  Remove duplicate mappings.
8648         * iconvdata/ibm1124.h: Likewise.
8649         * iconvdata/ibm1132.h: Likewise.
8650         * iconvdata/ibm1133.h: Likewise.
8651         * iconvdata/ibm1160.h: Likewise.
8652         * iconvdata/ibm1161.h: Likewise.
8653         * iconvdata/ibm1162.h: Likewise.
8654         * iconvdata/ibm856.h: Likewise.
8655         * iconvdata/ibm922.h: Likewise.
8656         * iconvdata/ibm930.h: Likewise.
8657         * iconvdata/ibm932.h: Likewise.
8658         * iconvdata/ibm933.h: Likewise.
8659         * iconvdata/ibm935.h: Likewise.
8660         * iconvdata/ibm937.h: Likewise.
8661         * iconvdata/ibm939.h: Likewise.
8662         * iconvdata/ibm943.h: Likewise.
8663         * iconvdata/ibm930.c: Pretty printing.
8664         * iconvdata/ibm937.c: Avoid access accross array boundary.
8666         * iconv/gconv_open.c (__gconv_open): Empty codeset name now means using
8667         the current locale's codeset.
8668         * iconv/iconv_open.c (iconv_open): Don't strip out everything for
8669         empty input string.
8670         * iconv/iconv_prog.c: Pass empty strings as default value for to-
8671         and from-charset.  Don't determine locale's charset here.
8673         * libio/genops.c (_IO_flush_all_lockp): New function.  The same code
8674         as the old _IO_flush_all but lock only if parameter is nonzero.
8675         (_IO_flush_all): Call _IO_flush_all_lockp with 1 as parameter.
8676         * libio/libioP.h: Add prototype for _IO_flush_all_lockp.
8677         * sysdeps/generic/abort.c (fflush): Define to _IO_flush_all_lockp(0)
8678         if libio is used [PR libc/2575].
8680 2001-11-28  Jakub Jelinek  <jakub@redhat.com>
8682         * sysdeps/sparc/fpu/bits/mathinline.h (__signbitf, __signbit,
8683         __signbitl): Only define for ISO C99.
8685 2001-11-22  Thorsten Kukuk  <kukuk@suse.de>
8687         * nss/nss_files/files-hosts.c (_nss_files_get##name##_r): Set
8688         herrnop to NETDB_INTERNAL if we run out of buffer space.
8690 2001-11-28  Ulrich Drepper  <drepper@redhat.com>
8692         * nss/nss_files/files-XXX.c (internal_getent): Correct input
8693         overflow test for platforms with signed char.
8694         Reported by Andrew Haley <aph@cambridge.redhat.com>.
8696 2001-11-28  Bruno Haible  <bruno@clisp.org>
8698         * locale/programs/simple-hash.c (lookup_2): Remove function.
8699         (insert_entry_2): Call lookup instead of lookup_2.
8701 2001-03-04  Bruno Haible  <bruno@clisp.org>
8703         * intl/dcigettext.c (DCIGETTEXT): Increment path_max proportionally.
8705 2001-10-31  Bruno Haible  <bruno@clisp.org>
8707         * intl/plural.y: Include <stddef.h>, needed for NULL with SunOS 4 cc.
8709 2001-03-21  Bruno Haible  <bruno@clisp.org>
8711         * intl/dcigettext.c (_nl_state_lock): Mark as #ifdef _LIBC. AIX 3 xlc
8712         chokes on empty macro arguments.
8713         * intl/plural.y: Add #pragma for alloca on AIX 3.
8715 2001-11-27  Ulrich Drepper  <drepper@redhat.com>
8717         * intl/dcigettext.c (guess_category_value): Only implement for
8718         glibc.  Otherwise rely on function _nl_locale_name which isn't
8719         present in the glibc sources.
8721 2001-09-24  Bruno Haible  <bruno@clisp.org>
8723         * intl/loadmsgcat.c (_nl_init_domain_conv): Also enable
8724         transliteration when building on a glibc system but outside glibc.
8726 2001-09-22  Bruno Haible  <bruno@clisp.org>
8728         * intl/plural-eval.c: New file, extracted from dcigettext.c.
8729         * intl/dcigettext.c (plural_eval): Remove function, moved to
8730         intl/plural-eval.c.
8731         (plural_lookup): Call PLURAL_EVAL instead of plural_eval.
8732         Include plural-eval.c.
8734 2001-09-22  Bruno Haible  <bruno@clisp.org>
8736         * intl/plural-exp.c (EXTRACT_PLURAL_EXPRESSION): Reject numbers that
8737         don't start with a digit; nplurals must be positive.
8739 2001-09-02  Bruno Haible  <bruno@clisp.org>
8741         * intl/plural-exp.h: New file, extracted from gettextP.h.
8742         * intl/plural-exp.c: New file, extracted from loadmsgcat.c.
8743         * intl/gettextP.h (struct expression, struct parse_args,
8744         __gettext_free_exp, __gettextparse): Move to plural-exp.h.
8745         * intl/loadmsgcat.c: Include plural-exp.h.
8746         (PLURAL_PARSE): Move macro to plural-exp.h.
8747         (plvar, plone, germanic_plural, INIT_GERMANIC_PLURAL): Move to
8748         plural-exp.c.
8749         (_nl_load_domain): Move plural handling code to plural-exp.c.  Call
8750         EXTRACT_PLURAL_EXPRESSION.
8751         (_nl_unload_domain): Update.
8752         * intl/dcigettext.c: Include plural-exp.h.
8753         * intl/plural.y: Include plural-exp.h, not gettextP.h.
8754         (FREE_EXPRESSION): Move macro to plural-exp.h.
8755         * intl/Makefile (routines): Add plural-exp.
8756         (distribute): Add plural-exp.h.
8758 2001-07-28  Bruno Haible  <bruno@clisp.org>
8760         * intl/l10nflist.c (_nl_normalize_codeset): Cast isalnum, isalpha,
8761         isdigit, tolower argument to 'unsigned char'.
8762         * intl/loadmsgcat.c (_nl_load_domain): Cast isspace argument to
8763         'unsigned char'.
8764         * intl/localealias.c (read_alias_file): Cast isspace argument to
8765         'unsigned char'.
8767 2001-10-20  Bruno Haible  <bruno@clisp.org>
8769         Assume strchr() exists. (Without it, intl/explodename.c wouldn't link
8770         anyway.)
8771         * intl/dcigettext.c (strchr): Remove fallback definition; it conflicts
8772         with the variable 'index' in plural_lookup.
8773         * intl/l10nflist.c (strchr): Likewise.
8774         * intl/localealias.c (strchr): Likewise.
8776         Assume <stddef.h>, <stdlib.h>, <string.h>, <locale.h> exist.
8777         * intl/bindtextdom.c: Likewise.
8778         * intl/dcigettext.c: Likewise.
8779         * intl/dgettext.c: Likewise.
8780         * intl/dngettext.c: Likewise.
8781         * intl/explodename.c: Likewise.
8782         * intl/finddomain.c: Likewise.
8783         * intl/gettext.c: Likewise.
8784         * intl/l10nflist.c: Likewise.
8785         * intl/loadmsgcat.c: Likewise.
8786         * intl/localealias.c: Likewise.
8787         * intl/ngettext.c: Likewise.
8788         * intl/textdomain.c: Likewise.
8789         * intl/gettext.h: Assume <limits.h> exists.
8791 2001-11-27  Ulrich Drepper  <drepper@redhat.com>
8793         * stdio-common/Makefile (tests): Add scanf11.
8794         * stdio-common/scanf11.c: New file.
8796 2001-11-26  Ulrich Drepper  <drepper@redhat.com>
8798         * version.h (RELEASE): Define as development.
8799         (VERSION): Set to 2.2.90.
8801 2001-11-22  Thorsten Kukuk  <kukuk@suse.de>
8803         * nis/nss_compat/compat-grp.c: Print group id as unsigned long.
8804         * nis/nss_nis/nis-grp.c: Likewise.
8805         * nis/nss_nisplus/nisplus-grp.c: Likewise.
8807         * nis/nss_compat/compat-pwd.c: Print user id as unsigned long.
8808         * nis/nss_nis/nis-pwd.c: Likewise.
8809         * nis/nss_nisplus/nisplus-pwd.c: Likewise.
8811         * nis/nss_nis/nis-publickey.c: Use strtoul instead of atoi.
8812         * nis/nss_nisplus/nisplus-parser.c: Likewise.
8813         * nis/nss_nisplus/nisplus-publickey.c: Likewise.
8815         * nscd/grpcache.c: Use strtoul instead of atol.
8816         * nscd/pwdcache.c: Likewise.
8817         * nss/getent.c: Likewise.
8819 2001-11-27  Paul Eggert  <eggert@twinsun.com>
8821         * sysdeps/posix/tempname.c (__gen_tempname): Try at least
8822         ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
8824 2001-11-19  Bruno Haible  <bruno@clisp.org>
8826         * locale/programs/simple-hash.c (insert_entry_2): Resize at 75%, not
8827         90%.
8828         (compute_hashval): Shift by 9 bits, not by 4 bits. This drastically
8829         improves the quality of the hash function, especially for short
8830         strings.
8832 2001-11-26  Ulrich Drepper  <drepper@redhat.com>
8834         * stdio-common/vfscanf.c: If incomplete nan of inf(inity) strings
8835         are found call conv_error and not input_error [PR libc/2669].
8837         * math/bits/mathcalls.h: Mark ceil and floor as const.
8838         Reported by David Mosberger.
8840 2001-11-21  Jim Meyering  <meyering@lucent.com>
8842         * posix/regex.c (iswctype, mbrtowc, wcslen, wcscoll, wcrtomb) [_LIBC]:
8843         Define to be __-prefixed.
8844         Remove unnecessary duplication in `#ifdef _LIBC' blocks.
8846 2001-11-26  Andreas Jaeger  <aj@suse.de>
8848         * sysdeps/unix/sysv/linux/hppa/brk.c: Remove __brk_addr alias,
8849         avoid warning.
8851 2001-11-26  Stephen L Moshier <moshier@mediaone.net>
8853         * sysdeps/ieee754/ldbl-128/e_log10l.c (L102B): Fix typo in
8854         initialization.
8856         * sysdeps/ieee754/ldbl-128/e_coshl.c (__ieee754_coshl): Remove
8857         unused variables.  Fix threshold for returning 1.0.
8859         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (neval, deval): Constify
8860         argument.
8862         * sysdeps/ieee754/ldbl-128/s_erfl.c (neval, deval): Likewise, and
8863         remove unused variables.
8865         * sysdeps/ieee754/ldbl-128/e_j0l.c (neval, deval): Likewise.
8867         * sysdeps/ieee754/ldbl-128/e_j1l.c (neval, deval): Likewise, and
8868         include local math header files.
8870 2001-11-22  Andreas Jaeger  <aj@suse.de>
8872         * sysdeps/ieee754/ldbl-96/s_ilogbl.c (__ilogbl): Add brace to
8873         avoid warning.
8875 2001-11-21  Andreas Jaeger  <aj@suse.de>
8877         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: New file.
8879         * sysdeps/unix/sysv/linux/x86_64/Makefile (sysdep_headers): Add
8880         sys/debugreg.h
8882 2001-11-15  Andreas Jaeger  <aj@suse.de>
8884         * include/features.h (__GLIBC_HAVE_LONG_LONG): Define for
8885         compilers that support it.
8887         * posix/sys/types.h: Use __GLIBC_HAVE_LONG_LONG.
8888         * sysdeps/unix/sysv/linux/bits/types.h: Likewise.
8889         * stdlib/stdlib.h: Likewise.
8891 2001-11-17  Ulrich Drepper  <drepper@redhat.com>
8893         * posix/regex.c (byte_re_match_2_internal): For gcc replace switch
8894         statement with gotos.
8895         Based on a patch by Paolo Bonzini <bonzini@pc-amo3.elet.polimi.it>.
8897 2001-11-16  Stephen L Moshier  <moshier@mediaone.net>
8899         * sysdeps/ieee754/ldbl-96/s_erfl.c (__erfcl): Fix K&R header.
8901 2001-11-15  Ulrich Drepper  <drepper@redhat.com>
8903         * sysdeps/generic/unwind-dw2-fde.c: Don't use recursive mutexes.
8905 2001-10-02  Jakub Jelinek  <jakub@redhat.com>
8906             H.J. Lu  <hjl@gnu.org>
8908         * Versions.def (libc): Add GCC_3.0.
8909         * configure.in (libc_cv_gcc_static_libgcc): Set to -static-libgcc
8910         if gcc supports this flag.
8911         (EXPORT_UNWIND_FIND_FDE): Define unless target configure disables it.
8912         (gcc3): Allow glibc to be compiled with gcc 3.x.
8913         * config.h.in (EXPORT_UNWIND_FIND_FDE): Add.
8914         * config.make.in (static-libgcc, unwind-find-fde): Add.
8915         * Makerules (build-shlib-helper, build-module-helper): Use it.
8916         * scripts/versions.awk: Make sure GLIBC_ versions come first.
8917         * elf/soinit.c (__libc_global_ctors): Set tbases and dbases if
8918         necessary.
8919         (_fini): Call __deregister_frame_info_bases if
8920         __register_frame_info_bases was used to register.
8921         * elf/Versions (__register_frame_info, __deregister_frame_info): Add
8922         for GLIBC_2.0.
8923         (__register_frame_info_bases, __register_frame_info_table_bases,
8924         __deregister_frame_info_bases, _Unwind_Find_FDE): Add for GCC_3.0.
8925         * elf/Makefile (routines): Add unwind-dw2-fde.
8926         (shared-only-routines): Add unwind-dw2-fde.
8927         * sysdeps/alpha/gccframe.h: New file.
8928         * sysdeps/arm/gccframe.h: New file.
8929         * sysdeps/generic/framestate.c: New file.
8930         * sysdeps/generic/dwarf2.h: New file.
8931         * sysdeps/generic/gccframe.h (struct object): Update from gcc 3.0.
8932         * sysdeps/generic/unwind-dw2-fde.c: New file.
8933         * sysdeps/unix/sysv/linux/ia64/unwind-dw2-fde.c: New file.
8934         * sysdeps/generic/unwind-dw2-fde.h: New file.
8935         * sysdeps/generic/unwind-dw2.c: New file.
8936         * sysdeps/generic/unwind-pe.h: New file.
8937         * sysdeps/generic/unwind.h: New file.
8938         * sysdeps/hppa/gccframe.h: New file.
8939         * sysdeps/i386/gccframe.h: New file.
8940         * sysdeps/m68k/gccframe.h: New file.
8941         * sysdeps/mips/gccframe.h: New file.
8942         * sysdeps/powerpc/gccframe.h: New file.
8943         * sysdeps/s390/gccframe.h: New file.
8944         * sysdeps/sh/gccframe.h: New file.
8945         * sysdeps/sparc/gccframe.h: New file.
8946         * sysdeps/vax/gccframe.h: New file.
8947         * sysdeps/unix/sysv/linux/configure.in (libc_cv_gcc_unwind_find_fde):
8948         Set on all architectures except ia64.
8949         * sysdeps/mach/hurd/configure.in (libc_cv_gcc_unwind_find_fde): Set
8950         for i386.
8951         * sysdeps/mach/hurd/i386/Versions (__register_frame_info,
8952         __deregister_frame_info): Move to elf/Versions.
8953         * sysdeps/unix/sysv/linux/m68k/Versions: Likewise.
8954         * sysdeps/unix/sysv/linux/arm/Versions: Likewise.
8955         * sysdeps/unix/sysv/linux/alpha/Versions: Likewise.
8956         * sysdeps/unix/sysv/linux/i386/Versions: Likewise.
8957         * sysdeps/unix/sysv/linux/mips/Versions: Likewise.
8958         * sysdeps/unix/sysv/linux/powerpc/Versions: Likewise.
8959         * sysdeps/unix/sysv/linux/s390/s390-32/Versions: Likewise.
8960         * sysdeps/unix/sysv/linux/sparc/sparc32/Versions: Likewise.
8961         * sysdeps/unix/sysv/linux/sparc/sparc64/Versions: Likewise.
8962         * sysdeps/mach/hurd/i386/Makefile (sysdep-routines): Add framestate.
8963         * sysdeps/unix/sysv/linux/arm/Makefile: Likewise.
8964         * sysdeps/unix/sysv/linux/alpha/Makefile: Likewise.
8965         * sysdeps/unix/sysv/linux/i386/Makefile: Likewise.
8966         * sysdeps/unix/sysv/linux/m68k/Makefile: Likewise.
8967         * sysdeps/unix/sysv/linux/mips/Makefile: Likewise.
8968         * sysdeps/unix/sysv/linux/powerpc/Makefile: Likewise.
8969         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Likewise.
8970         * sysdeps/unix/sysv/linux/sparc/Makefile: Likewise.
8972 2001-11-15  Jeff Law  <law@redhat.com>
8974         * posix/regex.c (uintptr_t): Do not provide a definition if the
8975         system provided one.
8977 2001-11-13  Roland McGrath  <roland@frob.com>
8979         * stdio-common/tmpfile.c: Moved to ...
8980         * sysdeps/generic/tmpfile.c: ... here.
8981         * sysdeps/mach/hurd/tmpfile.c: New file.
8983         * hurd/fopenport.c (__fopenport): Renamed from fopenport.
8984         [USE_IN_LIBIO] (fopencookie): #define as _IO_fopencookie.
8985         (fopenport): Define as weak alias.
8987         * libio/iofopncook.c (_IO_fopencookie): Move forward declaration ...
8988         * libio/libioP.h: ... to here.
8990 2001-11-12  Ulrich Drepper  <drepper@redhat.com>
8992         * elf/dl-reloc.c (_dl_relocate_object): Avoid iterating over
8993         program header twice.  Construct list with the needed information.
8995 2001-11-10  Ulrich Drepper  <drepper@redhat.com>
8997         * po/ca.po: Update from translation team.
8999         * elf/dl-load.c (_dl_map_object_from_fd): Remove use of
9000         _dl_pf_to_prot.  Use arithmetic operation using PF_TO_PROT macro.
9001         * sysdeps/generic/ldsodefs.h (PF_TO_PROT): New macro.
9002         * elf/dl-reloc.c (_dl_relocate_object): Likewise.
9004 2001-11-10  Andreas Jaeger  <aj@suse.de>
9006         * sysdeps/ieee754/ldbl-128/e_log2l.c: New file.
9007         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
9008         Contributed by Stephen L Moshier <moshier@mediaone.net>.
9010 2001-11-09  Ulrich Drepper  <drepper@redhat.com>
9012         * elf/dl-minimal.c (realloc): Handle NULL for first parameter
9013         correctly.
9014         * elf/dl-load.c (is_dst): New function.
9015         (_dl_dst_count): Use is_dst to check for DST variable.
9016         (_dl_dst_substitute): Likewise.
9018 2001-11-09  Roland McGrath  <roland@frob.com>
9020         Hurd/PowerPC port contributed by Peter Bruin <pjbruin@dds.nl>.
9021         * sysdeps/mach/hurd/powerpc/exc2signal.c: New file.
9022         * sysdeps/mach/hurd/powerpc/init-first.c: New file.
9023         * sysdeps/mach/hurd/powerpc/intr-msg.h: New file.
9024         * sysdeps/mach/hurd/powerpc/longjmp-ts.c: New file.
9025         * sysdeps/mach/hurd/powerpc/register-dump.h: New file.
9026         * sysdeps/mach/hurd/powerpc/sigreturn.c: New file.
9027         * sysdeps/mach/hurd/powerpc/static-start.S: New file.
9028         * sysdeps/mach/hurd/powerpc/trampoline.c: New file.
9029         * sysdeps/mach/hurd/powerpc/bits/sigcontext.h: New file.
9030         * sysdeps/mach/hurd/powerpc/Dist: New file.
9032         * hurd/privports.c (__get_privileged_ports):
9033         Only contact the proc server if necessary for this call.
9034         Suggested by Neal H Walfield <neal@cs.uml.edu>.
9035         Check error return for mach_port_mod_refs.
9037 2001-11-09  Andreas Schwab  <schwab@suse.de>
9039         * sysdeps/unix/sysv/linux/m68k/bits/resource.h: New file.
9041 2001-11-09  Ulrich Drepper  <drepper@redhat.com>
9043         * elf/dl-load.c (lose): Remove some unnecessary code.  The new
9044         object is always the last in the list.
9045         (_dl_map_object_from_fd): Delete code to remove from object list
9046         when DF_1_NOOPEN is seen.  This is done in lose.
9048 2001-11-08  Ulrich Drepper  <drepper@redhat.com>
9050         * elf/dl-object.c (_dl_new_object): Various small optimizations.
9052 2001-11-07  Ulrich Drepper  <drepper@redhat.com>
9054         * sysdeps/generic/dl-cache.c: Optimize SEARCH_CACHE and
9055         HWCAP_CHECK macro code.
9057         * elf/dl-misc.c (_dl_sysdep_read_whole_file): Optimize code a bit.
9058         Now returns MAP_FAILED on error.
9059         * elf/rtld.c: Adjust caller.
9060         * sysdeps/generic/dl-cache.c: Likewise.
9061         * sysdeps/generic/ldsodefs.h: Adjust description.
9063         * elf/dl-version.c (match_symbol): Optimize error handling for size.
9064         (_dl_check_map_versions): Likewise.
9066 2001-11-06  Ulrich Drepper  <drepper@redhat.com>
9068         * elf/dl-load.c (_dl_map_object_from_fd): Don't call
9069         _dl_signal_error directly, always use lose.  Set fd to -1 after
9070         file is closed.
9071         (lose): Don't call close if fd == -1.
9073 2001-11-07  Kaoru Fukui  <k_fukui@highway.ne.jp>
9075         * manual/charset.texi: Fix typo @w[ISO 6937] to  @w{ISO 6937}.
9076          Also fix typo @code {mbsinit} to @code{mbsinit}.
9078 2001-11-06  Ulrich Drepper  <drepper@redhat.com>
9080         * elf/dl-profile.c: Replace state variable with simple flag named
9081         running.  Remove commented-out code.
9083         * elf/dl-load.c (decompose_rpath): Optimize error handling for size.
9084         (_dl_init_paths): Likewise.
9085         (_dl_map_object_from_fd): Likewise.
9086         * elf/dl-reloc.c (_dl_relocate_object): Likewise.
9088 2001-11-06  Roland McGrath  <roland@frob.com>
9090         * sysdeps/mach/powerpc/sysdep.h: Include sysdeps/unix/powerpc/sysdep.h
9091         instead of sysdeps/powerpc/elf/sysdep.h and sysdeps/unix/sysdep.h.
9093         * sysdeps/unix/sysv/linux/powerpc/sysdep.h: Don't include
9094         sysdeps/powerpc/elf/sysdep.h.
9095         Reported by Kaoru Fukui <k_fukui@highway.ne.jp>.
9097 2001-11-05  Ulrich Drepper  <drepper@redhat.com>
9099         * elf/rtld.c (process_dl_debug): Rewritten.  Optimized for size not
9100         speed.
9101         (process_envvars): Some more optimizations.
9102         * sysdeps/generic/ldsodefs.h (DL_DEBUG_HELP): New macro.
9104         * elf/elf.h: Add dynamic tag definitions for prelinking.
9106         * elf/rtld.c (process_envvars): Avoid using array of string pointers.
9107         Rewrite code to remove environment varables for SUID binaries.
9108         Small optimization in LD_PROFILE handling.
9109         * sysdeps/generic/unsecvars.h: Adjust format for process_envvars
9110         changes.
9111         * sysdeps/unix/sysv/linux/i386/dl-librecon.h: Likewise.
9113         * sysdeps/generic/dl-sysdep.c: Don't initialize _dl_cpuclock_offset.
9115         * elf/dl-reloc.c (_dl_reloc_bad_type): Rewrite to not use writable
9116         strings.  Change type of second parameter.
9117         * sysdeps/generic/ldsodefs.h: Adjust _dl_reloc_bad_type prototype
9118         for last change.
9120         * io/fts.h: Prevent using <fts.h> with _FILE_OFFSET_BITS=64.
9122 2001-11-04  Joseph S. Myers  <jsm28@cam.ac.uk>
9124         * manual/string.texi: Fix typos.
9125         * manual/examples/argp-ex2.c: Likewise.
9127 2001-11-05  Roland McGrath  <roland@frob.com>
9129         * sysdeps/powerpc/elf/sysdep.h: Remove this file, because it overrides
9130         the more-specific unix/sysv/linux/powerpc file and breaks everything.
9131         * sysdeps/powerpc/sysdep.h (ALIGNARG, ASM_TYPE_DIRECTIVE,
9132         ASM_SIZE_DIRECTIVE, CALL_MCOUNT, ENTRY, EALIGN, DO_CALL, JUMPTARGET,
9133         PSEUDO, PSEUDO_RET, PSEUDO_END, L, C_TEXT): These macros moved here
9134         here, put under [__ELF__].
9136 2001-11-05  Ulrich Drepper  <drepper@redhat.com>
9138         * manual/charset.texi: Extensive editing work.
9139         * manual/nss.texi: Likewise.
9140         Changes by Dennis Grace <dgrace@us.ibm.com>.
9142 2001-11-04  Roland McGrath  <roland@frob.com>
9144         * hurd/set-host.c (_hurd_set_host_config): Use O_WRONLY in flags
9145         parameter to dir_mkfile.
9147 2001-11-02  Jakub Jelinek  <jakub@redhat.com>
9149         * string/bits/string2.h (__strndup): If n is smaller than len, set
9150         len to n + 1.
9151         * string/tester.c (test_strndup): New function.
9152         (main): Call it.
9154 2001-11-01  Ulrich Drepper  <drepper@redhat.com>
9156         * sunrpc/rpc_main.c: Optimize variable definitions a bit.
9158         * sunrpc/Makefile (rpcgen-cmd): Use ../scripts/cpp in rpcgen calls.
9159         * scripts/cpp: New file.
9161         * elf/dl-load.c (_dl_map_object): Correct test of DF_1_NODEFLIB
9162         for rtld_search_dirs content.  Minor optimizations.
9164 2001-10-31  Ulrich Drepper  <drepper@redhat.com>
9166         * elf/dl-load.c (_dl_map_object): Make code a bit more compact by
9167         avoiding unnecessary duplication.
9169 2001-10-31  Jakub Jelinek  <jakub@redhat.com>
9171         * elf/dl-load.c (_dl_map_object): If library was found using
9172         LD_LIBRARY_PATH, don't try RUNPATH list.
9174 2001-10-31  Martin Schwidefsky  <schwidefsky@de.ibm.com>
9176         * sysdeps/unix/sysv/linux/s390/s390-32/register-dump.h (REGISTER_DUMP):
9177         Correct second argument of register_dump call.
9178         * sysdeps/unix/sysv/linux/s390/s390-64/register-dump.h (REGISTER_DUMP):
9179         Likewise.
9181 2001-10-31  Ulrich Drepper  <drepper@redhat.com>
9183         * iconvdata/Makefile: Add support for IBM1132, IBM1133, and IBM1162
9184         modules.
9185         * iconvdata/TESTS: Likewise.
9186         * iconvdata/gconv-modules: Likewise.
9187         * iconvdata/ibm1132.c: New file.
9188         * iconvdata/ibm1132.h: New file.
9189         * iconvdata/ibm1133.c: New file.
9190         * iconvdata/ibm1133.h: New file.
9191         * iconvdata/ibm1162.c: New file.
9192         * iconvdata/ibm1162.h: New file.
9193         * iconvdata/testdata/IBM1132: New file.
9194         * iconvdata/testdata/IBM1132..UTF8: New file.
9195         * iconvdata/testdata/IBM1133: New file.
9196         * iconvdata/testdata/IBM1133..UTF8: New file.
9197         * iconvdata/testdata/IBM1162: New file.
9198         * iconvdata/testdata/IBM1162..UTF8: New file.
9199         Patches by Masahide Washizawa <WASHI@jp.ibm.com>.
9201         * string/string.h: Fix typo in comment.
9202         * wcsmbs/wchar.h: Likewise.
9204 2001-10-30  Joseph S. Myers  <jsm28@cam.ac.uk>
9206         * manual/getopt.texi (getopt_long, getopt_long_only): Include
9207         const in type of longopts parameter.
9209 2001-10-29  Andreas Jaeger  <aj@suse.de>
9211         * sysdeps/ieee754/dbl-64/mpa.h: Add prototypes for internal functions.
9213 2001-10-29  Kevin Ryde  <user42@zip.com.au>
9215         * manual/stdio.texi (Integer Conversions): Corrections to sample printf
9216         output, clarify `#' behaviour on 0.
9217         (Floating-Point Conversions): Clarify that %g only uses %e when
9218         the exponent would be greater than 1.
9220 2001-10-28  Roland McGrath  <roland@frob.com>
9222         Support for Mach/PowerPC contributed by Peter Bruin <pjbruin@dds.nl>.
9223         * sysdeps/mach/powerpc/machine-sp.h: New file.
9224         * sysdeps/mach/powerpc/sysdep.h: New file.
9225         * sysdeps/mach/powerpc/thread_state.h: New file.
9227         * sysdeps/mach/hurd/i386/Makefile: File removed; crt0.o rules moved ...
9228         * sysdeps/mach/hurd/Makefile: ... to here.  For the time being, we can
9229         expect to need the same thing on every platform.
9231         * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: File moved ...
9232         * sysdeps/generic/sys/ucontext.h: ... to replace this one.
9234         * sysdeps/unix/sysv/linux/powerpc/sysdep.h (ALIGNARG,
9235         ASM_TYPE_DIRECTIVE, ASM_SIZE_DIRECTIVE, CALL_MCOUNT, ENTRY, EALIGN,
9236         DO_CALL, JUMPTARGET, PSEUDO, PSEUDO_RET, PSEUDO_END, L, C_TEXT):
9237         Move all these assembly-related definitions to ...
9238         * sysdeps/powerpc/elf/sysdep.h: ... this new file.
9240         * sysdeps/mach/powerpc/machine-lock.h: Assembly code rewritten
9241         by Peter Bruin <pjbruin@dds.nl>.
9243         * hurd/hurdselect.c (_hurd_select): Check SELECT_RETURNED bit when
9244         packing results for a `poll' call.
9246 2001-10-26  Ulrich Drepper  <drepper@redhat.com>
9248         * posix/fnmatch_loop.c: Recognize - at end of bracket expression
9249         correctly.
9250         * posix/tst-fnmatch.input: Add tests for - at beginning and end of
9251         bracket expression.
9253         * string/strxfrm.c [USE_IN_EXTENDED_LOCALE_MODEL]: Correctly get
9254         nrules value.
9255         * string/tst-strxfrm.c (test): Also test __strxfrm_l.
9257 2001-10-24  H.J. Lu  <hjl@gnu.org>
9259         * sysdeps/generic/bits/dlfcn.h (DL_CALL_FCT): Cast to void *.
9260         Use __BEGIN_DECLS/__END_DECLS around prototypes.
9261         * sysdeps/mips/bits/dlfcn.h (DL_CALL_FCT): Likewise.
9263 2001-10-21  Jim Meyering  <meyering@lucent.com>
9265         * malloc/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
9266         this code would end up calling gettext even in packages built
9267         with --disable-nls.
9268         * posix/getopt.c (_): Likewise.
9269         * posix/regex.c (_): Likewise.
9271 2001-10-26  Ulrich Drepper  <drepper@redhat.com>
9273         * resolv/gethnamaddr.c (gethostbyaddr): Use ip6.addr for reverse
9274         lookup not ip6.int.
9275         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr_r): Likewise.
9276         Reported by Martin.v.Loewis@t-online.de [PR libc/2598].
9278 2001-10-19  Jakub Jelinek  <jakub@redhat.com>
9280         * misc/sys/cdefs.h (__attribute_used__): Define.
9281         * elf/rtld.c (_dl_start): Add __attribute_used__.
9282         * elf/dl-runtime.c (fixup, profile_fixup): Likewise.
9284 2001-10-25  Andreas Schwab  <schwab@suse.de>
9286         * stdlib/a64l.c: Expect least significant digit first.
9287         * stdlib/l64a.c: Produce least significant digit first.
9288         * stdlib/Makefile (tests): Add test-a64l.
9289         * stdlib/test-a64l.c: New file.
9290         Reported by Masaki Hasegawa <masaki-h@pp.iij4u.or.jp>.
9292 2001-10-21  Ulrich Drepper  <drepper@redhat.com>
9294         * po/sk.po: Update from translation team.
9296 2001-10-18  Ulrich Drepper  <drepper@redhat.com>
9298         * sysdeps/i386/elf/start.S (_fp_hw): Define object type.
9300 2001-10-18  Andreas Schwab  <schwab@suse.de>
9302         * math/libm-test.inc (print_ulps): Print ulp values rounded to
9303         next whole number.
9304         (print_function_ulps): Likewise.
9305         (print_complex_function_ulps): Likewise.
9306         (print_max_error): Likewise.
9307         (print_complex_max_error): Likewise.  Handle ignore_max_ulp.
9309 2001-10-16  Andreas Schwab  <schwab@suse.de>
9311         * sysdeps/m68k/fpu/libm-test-ulps: Updated for fixed cbrtl
9312         implementation.
9314         * sysdeps/m68k/setjmp.c: Also define setjmp and _setjmp if
9315         BSD_SETJMP or BSD__SETJMP is defined, resp.
9316         * sysdeps/m68k/bsd-setjmp.c: Inline setjmp code instead of making
9317         a tail call to __sigsetjmp that would require extending the
9318         caller's frame.
9319         * sysdeps/m68k/bsd-_setjmp.c: Likewise.
9320         * sysdeps/m68k/bsd-setjmp.S: Deleted.
9321         * sysdeps/m68k/bsd-_setjmp.S: Deleted.
9322         Reported by Jes Sorensen <jes@trained-monkey.org>.
9324 2001-10-16  Andreas Jaeger  <aj@suse.de>
9326         * sysdeps/ieee754/ldbl-96/s_nextafterl.c (__nextafterl): Fix
9327         parentheses.  Reported by David Byron <dbyron@porto.coactive.com>,
9328         close PR libc/2589.
9330 2001-10-15  Ulrich Drepper  <drepper@redhat.com>
9332         * po/ca.po: New file.  Contributed by the translation team.
9334 2001-10-15  Ralf Baechle  <ralf@gnu.org>
9336         * sysdeps/unix/sysv/linux/mips/sys/sysmips.h: Make sysmips() prototype
9337         a varargs prototype.  Remove dependency from kernel header files.
9339         * sysdeps/unix/sysv/linux/mips/bits/termios.h: General cleanup, use
9340         __USE_MISC / __USE_XOPEN not __USE_BSD where appropriate.
9342 2001-10-14  Ulrich Drepper  <drepper@redhat.com>
9344         * locale/programs/ld-collate.c (handle_ellipsis): Use %lX not %lx
9345         to generate hexadecimal identifier.
9346         Patch by Jungshik Shin <jungshik.shin@yale.edu>.
9348 2001-10-09  Stephen L Moshier  <moshier@mediaone.net>
9350         * sysdeps/ieee754/ldbl-96/s_cbrtl.c (__cbrtl): Fix algorithm.
9352 2001-10-14  Ulrich Drepper  <drepper@redhat.com>
9354         * sysdeps/ieee754/ldbl-128/e_powl.c: New file.
9355         * sysdeps/ieee754/ldbl-128/s_cbrtl.c: New file.
9356         Contributed by Stephen L Moshier <moshier@mediaone.net>.
9358         * sysdeps/ieee754/ldbl-128/e_j0l.c: Constify float variables.
9359         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
9360         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise
9361         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise
9362         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise
9363         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise
9365         * timezone/africa: Update from tzdata2001d.
9366         * timezone/asia: Likewise.
9367         * timezone/australasia: Likewise.
9368         * timezone/backward: Likewise.
9369         * timezone/europe: Likewise.
9370         * timezone/leapseconds: Likewise.
9371         * timezone/northamerica: Likewise.
9372         * timezone/southamerica: Likewise.
9373         * timezone/zone.tab: Likewise.
9375 2001-10-09  Martin Schwidefsky  <schwidefsky@de.ibm.com>
9377         * sysdeps/s390/s390-32/sys/ucontext.h: Correct __psw_t typedef.
9378         * sysdeps/s390/s390-64/sys/ucontext.h: Likewise.
9380 2001-10-12  Ulrich Drepper  <drepper@redhat.com>
9382         * elf/elf.h (PT_TLS): New definition.
9384 2001-10-10  Jeff Bailey  <jbailey@nisa.net>
9386         * sysdeps/mach/hurd/Makefile: Add $(CFLAGS) for generation of
9387         bits/errno.h
9389 2001-10-07  Roland McGrath  <roland@frob.com>
9391         * sysdeps/mach/hurd/setrlimit.c (__setrlimit): Never return ENOSYS.
9393 2001-10-10  Ulrich Drepper  <drepper@redhat.com>
9395         * elf/elf.h: Add more ELFOSABI_* constants.
9397 2001-10-04  Ben Collins  <bcollins@debian.org>
9399         * sysdeps/generic/inttypes.h: Fix typo (define, not defined) in
9400         decleration of __need_wchar_t.
9402 2001-10-03  Jakub Jelinek  <jakub@redhat.com>
9404         * string/bits/string2.h (__strsep_g): Add prototype.
9405         (__strsep): Use it.
9406         * string/Versions (__strsep): Remove.
9407         * sysdeps/generic/strsep.c (__strsep_g): Add alias to __strsep.
9409 2001-10-07  Ulrich Drepper  <drepper@redhat.com>
9411         * manua/llio.texi: Clarify file references added by mmap.
9412         Patch by Marcus Brinkmann <Marcus.Brinkmann@ruhr-uni-bochum.de>.
9414 2001-09-29  Jes Sorensen  <jes@trained-monkey.org>
9416         * sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h (struct sigcontext):
9417         Add sc_loadrs and sc_rbs_bas to match current kernel.
9419 2001-09-27  Jakub Jelinek  <jakub@redhat.com>
9421         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Update.
9423         * sysdeps/ieee754/ldbl-128/s_erfl.c (__erfcl): Fix erfc(-inf).
9425 2001-09-27  Jakub Jelinek  <jakub@redhat.com>
9427         * elf/dl-open.c (dl_open_worker): If l_opencount of freshly loaded
9428         object has been bumped because of relocation dependency, avoid
9429         duplicates in l_scope.
9430         (show_scope): Fix typos.
9431         * elf/Makefile: Add rules to build and run reldep6.
9432         * elf/reldep6.c: New file.
9433         * elf/reldep6mod0.c: New file.
9434         * elf/reldep6mod1.c: New file.
9435         * elf/reldep6mod2.c: New file.
9436         * elf/reldep6mod3.c: New file.
9437         * elf/reldep6mod4.c: New file.
9439 2001-09-26  Jakub Jelinek  <jakub@redhat.com>
9441         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_fixup_plt): Call
9442         sparc64_fixup_plt.
9443         (sparc64_fixup_plt): Moved from elf_machine_fixup_plt.  Optimize
9444         near jumps and 0xfffff800XXXXXXXX target addresses, no thread safety
9445         for non-lazy binding. Fix .plt[32768+] handling.
9446         (elf_machine_plt_value): Don't add addend.
9447         (elf_machine_rela): Call sparc64_fixup_plt instead of
9448         elf_machine_fixup_plt.
9449         (elf_machine_runtime_setup, TRAMPOLINE_TEMPLATE): Optimize for
9450         dynamic linker at 0xfffff800XXXXXXXX.
9452         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Update.
9454 2001-09-28  Ulrich Drepper  <drepper@redhat.com>
9456         * elf/elf.h: Define SHF_GROUP and SHF_TLS.
9458 2001-09-25  Jakub Jelinek  <jakub@redhat.com>
9460         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (struct cmsghdr): Don't
9461         declare __cmsg_data field if its size would be bigger than 0.
9462         (CMSG_DATA): Adjust accordingly.
9463         * sysdeps/unix/sysv/aix/bits/socket.h: Likewise.
9464         * sysdeps/unix/sysv/linux/alpha/bits/socket.h: Likewise.
9465         * sysdeps/unix/sysv/linux/ia64/bits/socket.h: Likewise.
9466         * sysdeps/unix/sysv/linux/s390/s390-64/bits/socket.h: Likewise.
9467         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
9468         * sysdeps/unix/sysv/linux/mips/bits/socket.h: Likewise.
9469         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
9471 2001-09-25  Ulrich Drepper  <drepper@redhat.com>
9473         * iconvdata/TESTS: Add entries for IBM1160 and IBM1161.
9474         * iconvdata/testdata/IBM1160: New file.
9475         * iconvdata/testdata/IBM1160..UTF8: New file.
9476         * iconvdata/testdata/IBM1161: New file.
9477         * iconvdata/testdata/IBM1161..UTF8: New file.
9478         Patch by Masahide Washizawa <WASHI@jp.ibm.com>.
9480 2001-09-24  Ulrich Drepper  <drepper@redhat.com>
9482         * sysdeps/unix/bsd/ulimit.c (ulimit): Handle overflow in
9483         UL_SETFSIZE computations better.
9485         * rt/Makefile: Remove use of filter for librt again.
9487         * sysdeps/unix/sysv/linux/ulimit.c (__ulimit): Handle overflow in
9488         UL_SETFSIZE computations better.
9490         * string/Versions: Export __strsep for GLIBC_2.2.5.
9491         * string/bits/string2.h: Define all __STRING_INLINE functions if
9492         _FORCE_INLINES is defined.
9493         Use int instead of char of parameter types.
9494         (__strsep): Don't use __strsep_g.  Don't define it.
9495         (__strsep_1c, __strsep_2c, __strsep_3c): Optimize.
9496         * sysdeps/i386/i486/string.h (__strcpy_a_small): Renamed from
9497         __strcpy_small.
9498         (__stpcpy_a_small): Renamed from __stpcpy_small.
9499         (__strcspn_c1): Don't define if _FORCE_INLINES.
9500         (__strspn_c1): Likewise.
9502 2001-09-22  Ben Collins  <bcollins@debian.org>
9504         * sysdeps/sparc/bits/sigaction.h: Define SA_RESTART and friends when
9505         _UNIX98_SOURCE is defined too.  Matches generic/bits/sigaction.h.
9506         * sysdeps/ia64/bits/sigaction.h: Likewise.
9507         * sysdeps/s390/s390-64/bits/sigaction.h: Likewise.
9509 2001-09-24  Andrew Haley  <aph@cambridge.redhat.com>
9511         * sysdeps/unix/sysv/linux/sh/Makefile (sysdep_headers): Add sys/io.h.
9513 2001-09-24  Jakub Jelinek  <jakub@redhat.com>
9515         * elf/dl-open.c (dl_open_worker): Update l_scope_max.
9517 2001-09-24  Ulrich Drepper  <drepper@redhat.com>
9519         * wcsmbs/wchar.h: Add __attribute_pure__ to mbsinit prototype.
9521 2001-09-20  H.J. Lu  <hjl@gnu.org>
9523         * include/dlfcn.h (__RTLD_SPROF): New definiton.
9524         * elf/dl-open.c (dl_open_worker): Return immediately after loading
9525         for __RTLD_SPROF.
9526         * elf/sprof.c (main): Default to the filename if soname doesn't exist.
9527         (load_shobj): Call dlopen with `RTLD_LAZY | __RTLD_SPROF'.
9529 2001-09-20  H.J. Lu  <hjl@gnu.org>
9531         * elf/dl-profile.c (_dl_mcount): Use old *narcsp value for newarc,
9532         don't add 1.
9534 2001-09-22  Ulrich Drepper  <drepper@redhat.com>
9536         * nss/getent.c: Accept -s parameter to overwrite rules in
9537         nsswitch.conf.  Patch by Nalin Dahyabhai <nalin@redhat.com>.
9539         * nss/nss_files/files-network.c (LINE_PARSER): Pad addr string
9540         with as many ".0" as necessary to form a complete address
9541         inet_network understands.
9543         * nss/getent.c: Various cleanups.  Use simpler and fewer function
9544         calls.
9546 2001-09-20  Martin Schwidefsky  <schwidefsky@de.ibm.com>
9548         * sysdeps/s390/s390-32/bits/setjmp.h: Correct pointer comparison in
9549         _JMPBUF_UNWINDS.
9550         * sysdeps/s390/s390-64/bits/setjmp.h: Likewise.
9552 2001-09-22  Ulrich Drepper  <drepper@redhat.com>
9554         * iconvdata/Makefile: Add rules to build and distribute IBM1160 and
9555         IBM1161.
9556         * iconvdata/gconv-modules: Add entries for IBM1160 and IBM1161.
9557         * iconvdata/ibm1160.c: New file.
9558         * iconvdata/ibm1160.h: New file.
9559         * iconvdata/ibm1161.c: New file.
9560         * iconvdata/ibm1161.h: New file.
9561         Patch by Masahide Washizawa <WASHI@jp.ibm.com>.
9563 2001-09-19  Jakub Jelinek  <jakub@redhat.com>
9565         * sysdeps/alpha/dl-machine.h (elf_machine_load_address): Compute the
9566         difference between base address and first PT_LOAD's virtual address,
9567         not the base address.
9569 2001-09-11  Tom Rix  <trix@redhat.com>
9571         * sysdeps/unix/sysv/aix/init-first.c (init):  Use USE_NONONPTION_FLAG
9572         ifdef for __getopt_clean_environment.
9573         * sysdeps/unix/sysv/aix/libc-start.c: Add real implementation.
9575 2001-09-22  Andreas Jaeger  <aj@suse.de>
9577         * elf/reldep4.c (main): Add proper prototype to fix warning.
9579         * elf/reldep5.c (main): Remove unused variable.
9581         * math/math_private.h: Add prototypes.
9583 2001-09-21  Andreas Jaeger  <aj@suse.de>
9585         * sysdeps/unix/sysv/linux/x86_64/Dist: New file.
9586         * sysdeps/x86_64/Dist: New file.
9587         * sysdeps/x86_64/soft-fp/Dist: New file.
9589         * sysdeps/gnu/Dist: Remove eval.c.
9591 2001-09-20  Ulrich Drepper  <drepper@redhat.com>
9593         * malloc/memusage.c (realloc): Don't count already allocated
9594         memory in the sums.
9595         (me): Always use dlsym() to find the real implementations.
9597         * malloc/memusage.sh: Make -n option actually do something.
9599 2001-09-20  Andreas Jaeger  <aj@suse.de>
9601         * elf/elf.h (R_390_NUM): Correct value.
9603         * Versions.def: Add missing versions 2.2.3 for libthread_db and
9604         libpthread.
9606         * sysdeps/unix/sysv/linux/configure.in: Add minimal kernel version
9607         for x86-64, install x86-64 into */lib64.
9609         * shlib-versions: Add x86-64.
9611         * elf/elf.h: Add x86-64 relocations.
9613 2001-09-19  Ulrich Drepper  <drepper@redhat.com>
9615         * po/fr.po: Update from translation team.
9617 2001-09-19  Andreas Jaeger  <aj@suse.de>
9619         * sysdeps/unix/sysv/linux/x86_64/Makefile: New file.
9620         * sysdeps/unix/sysv/linux/x86_64/Versions: New file.
9621         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: New file.
9622         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: New file.
9623         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: New file.
9624         * sysdeps/unix/sysv/linux/x86_64/bits/statfs.h: New file.
9625         * sysdeps/unix/sysv/linux/x86_64/bits/time.h: New file.
9626         * sysdeps/unix/sysv/linux/x86_64/bits/types.h: New file.
9627         * sysdeps/unix/sysv/linux/x86_64/brk.c: New file.
9628         * sysdeps/unix/sysv/linux/x86_64/clone.S: New file.
9629         * sysdeps/unix/sysv/linux/x86_64/fstatfs64.c: New file.
9630         * sysdeps/unix/sysv/linux/x86_64/ftruncate64.c: New file.
9631         * sysdeps/unix/sysv/linux/x86_64/fxstat.c: New file.
9632         * sysdeps/unix/sysv/linux/x86_64/fxstat64.c: New file.
9633         * sysdeps/unix/sysv/linux/x86_64/getdents.c: New file.
9634         * sysdeps/unix/sysv/linux/x86_64/getdents64.c: New file.
9635         * sysdeps/unix/sysv/linux/x86_64/getrlimit64.c: New file.
9636         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: New file.
9637         * sysdeps/unix/sysv/linux/x86_64/glob64.c: New file.
9638         * sysdeps/unix/sysv/linux/x86_64/lxstat.c: New file.
9639         * sysdeps/unix/sysv/linux/x86_64/lxstat64.c: New file.
9640         * sysdeps/unix/sysv/linux/x86_64/mmap64.c: New file.
9641         * sysdeps/unix/sysv/linux/x86_64/pread64.c: New file.
9642         * sysdeps/unix/sysv/linux/x86_64/profil-counter.h: New file.
9643         * sysdeps/unix/sysv/linux/x86_64/pwrite64.c: New file.
9644         * sysdeps/unix/sysv/linux/x86_64/readdir.c: New file.
9645         * sysdeps/unix/sysv/linux/x86_64/readdir64.c: New file.
9646         * sysdeps/unix/sysv/linux/x86_64/readdir64_r.c: New file.
9647         * sysdeps/unix/sysv/linux/x86_64/readdir_r.c: New file.
9648         * sysdeps/unix/sysv/linux/x86_64/recv.c: New file.
9649         * sysdeps/unix/sysv/linux/x86_64/register-dump.h: New file.
9650         * sysdeps/unix/sysv/linux/x86_64/send.c: New file.
9651         * sysdeps/unix/sysv/linux/x86_64/setrlimit64.c: New file.
9652         * sysdeps/unix/sysv/linux/x86_64/sigaction.c: New file.
9653         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: New file.
9654         * sysdeps/unix/sysv/linux/x86_64/sigpending.c: New file.
9655         * sysdeps/unix/sysv/linux/x86_64/sigprocmask.c: New file.
9656         * sysdeps/unix/sysv/linux/x86_64/sigsuspend.c: New file.
9657         * sysdeps/unix/sysv/linux/x86_64/statfs64.c: New file.
9658         * sysdeps/unix/sysv/linux/x86_64/sys/perm.h: New file.
9659         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: New file.
9660         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: New file.
9661         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: New file.
9662         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: New file.
9663         * sysdeps/unix/sysv/linux/x86_64/syscall.S: New file.
9664         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: New file.
9665         * sysdeps/unix/sysv/linux/x86_64/sysdep.S: New file.
9666         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: New file.
9667         * sysdeps/unix/sysv/linux/x86_64/time.c: New file.
9668         * sysdeps/unix/sysv/linux/x86_64/truncate64.c: New file.
9669         * sysdeps/unix/sysv/linux/x86_64/umount.c: New file.
9670         * sysdeps/unix/sysv/linux/x86_64/vfork.S: New file.
9671         * sysdeps/unix/sysv/linux/x86_64/xstat.c: New file.
9672         * sysdeps/unix/sysv/linux/x86_64/xstat64.c: New file.
9673         * sysdeps/unix/x86_64/sysdep.S: New file.
9674         * sysdeps/unix/x86_64/sysdep.h: New file.
9675         * sysdeps/x86_64/Implies: New file.
9676         * sysdeps/x86_64/Makefile: New file.
9677         * sysdeps/x86_64/Versions: New file.
9678         * sysdeps/x86_64/__longjmp.S: New file.
9679         * sysdeps/x86_64/abort-instr.h: New file.
9680         * sysdeps/x86_64/atomicity.h: New file.
9681         * sysdeps/x86_64/bits/endian.h: New file.
9682         * sysdeps/x86_64/bits/setjmp.h: New file.
9683         * sysdeps/x86_64/bits/string.h: New file.
9684         * sysdeps/x86_64/bp-asm.h: New file.
9685         * sysdeps/x86_64/bsd-_setjmp.S: New file.
9686         * sysdeps/x86_64/bsd-setjmp.S: New file.
9687         * sysdeps/x86_64/dl-machine.h: New file.
9688         * sysdeps/x86_64/elf/initfini.c: New file.
9689         * sysdeps/x86_64/elf/start.S: New file.
9690         * sysdeps/x86_64/ffs.c: New file.
9691         * sysdeps/x86_64/ffsll.c: New file.
9692         * sysdeps/x86_64/fpu/bits/fenv.h: New file.
9693         * sysdeps/x86_64/fpu/bits/mathdef.h: New file.
9694         * sysdeps/x86_64/fpu/e_acosl.c: New file.
9695         * sysdeps/x86_64/fpu/e_atan2l.c: New file.
9696         * sysdeps/x86_64/fpu/e_exp2l.S: New file.
9697         * sysdeps/x86_64/fpu/e_expl.c: New file.
9698         * sysdeps/x86_64/fpu/e_fmodl.S: New file.
9699         * sysdeps/x86_64/fpu/e_log10l.S: New file.
9700         * sysdeps/x86_64/fpu/e_log2l.S: New file.
9701         * sysdeps/x86_64/fpu/e_logl.S: New file.
9702         * sysdeps/x86_64/fpu/e_powl.S: New file.
9703         * sysdeps/x86_64/fpu/e_rem_pio2l.c: New file.
9704         * sysdeps/x86_64/fpu/e_scalbl.S: New file.
9705         * sysdeps/x86_64/fpu/e_sqrtl.c: New file.
9706         * sysdeps/x86_64/fpu/fclrexcpt.c: New file.
9707         * sysdeps/x86_64/fpu/fedisblxcpt.c: New file.
9708         * sysdeps/x86_64/fpu/feenablxcpt.c: New file.
9709         * sysdeps/x86_64/fpu/fegetenv.c: New file.
9710         * sysdeps/x86_64/fpu/fegetexcept.c: New file.
9711         * sysdeps/x86_64/fpu/fegetround.c: New file.
9712         * sysdeps/x86_64/fpu/feholdexcpt.c: New file.
9713         * sysdeps/x86_64/fpu/fesetenv.c: New file.
9714         * sysdeps/x86_64/fpu/fesetround.c: New file.
9715         * sysdeps/x86_64/fpu/fgetexcptflg.c: New file.
9716         * sysdeps/x86_64/fpu/fraiseexcpt.c: New file.
9717         * sysdeps/x86_64/fpu/fsetexcptflg.c: New file.
9718         * sysdeps/x86_64/fpu/ftestexcept.c: New file.
9719         * sysdeps/x86_64/fpu/libm-test-ulps: New file.
9720         * sysdeps/x86_64/fpu/math_ldbl.h: New file.
9721         * sysdeps/x86_64/fpu/printf_fphex.c: New file.
9722         * sysdeps/x86_64/fpu/s_atanl.c: New file.
9723         * sysdeps/x86_64/fpu/s_cosl.S: New file.
9724         * sysdeps/x86_64/fpu/s_expm1l.S: New file.
9725         * sysdeps/x86_64/fpu/s_fpclassifyl.c: New file.
9726         * sysdeps/x86_64/fpu/s_isinfl.c: New file.
9727         * sysdeps/x86_64/fpu/s_isnanl.c: New file.
9728         * sysdeps/x86_64/fpu/s_log1pl.S: New file.
9729         * sysdeps/x86_64/fpu/s_logbl.c: New file.
9730         * sysdeps/x86_64/fpu/s_nextafterl.c: New file.
9731         * sysdeps/x86_64/fpu/s_nexttoward.c: New file.
9732         * sysdeps/x86_64/fpu/s_nexttowardf.c: New file.
9733         * sysdeps/x86_64/fpu/s_rintl.c: New file.
9734         * sysdeps/x86_64/fpu/s_significandl.c: New file.
9735         * sysdeps/x86_64/fpu/s_sincosl.S: New file.
9736         * sysdeps/x86_64/fpu/s_sinl.S: New file.
9737         * sysdeps/x86_64/fpu/s_tanl.S: New file.
9738         * sysdeps/x86_64/gmp-mparam.h: New file.
9739         * sysdeps/x86_64/hp-timing.c: New file.
9740         * sysdeps/x86_64/hp-timing.h: New file.
9741         * sysdeps/x86_64/htonl.S: New file.
9742         * sysdeps/x86_64/memusage.h: New file.
9743         * sysdeps/x86_64/setjmp.S: New file.
9744         * sysdeps/x86_64/soft-fp/sfp-machine.h: New file.
9745         * sysdeps/x86_64/stackinfo.h: New file.
9746         * sysdeps/x86_64/sysdep.h: New file.
9747         * sysdeps/unix/sysv/linux/x86_64/ldd-rewrite.sed: New file.
9749         * sysdeps/ieee754/ldbl-128/s_erfl.c: New file, contributed Stephen
9750         L Moshier.
9752 2001-09-18  Ulrich Drepper  <drepper@redhat.com>
9754         * malloc/malloc.c (ptmalloc_init): Handle _environ==NULL.
9755         Reported by B. D. Elliott <bde@nwlink.com> [PR libc/2541].
9757 2001-09-18  Andreas Schwab  <schwab@suse.de>
9759         * elf/dl-load.c (_dl_map_object_from_fd): Update handling of scope
9760         list, now that l_scope is a pointer.
9762         * elf/dl-open.c (dl_open_worker): Fix thinko when enlarging the
9763         scope list.
9765 2001-09-18  kaz Kojima  <kkojima@rr.iij4u.or.jp>
9767         * sysdeps/sh/dl-machine.h (elf_machine_rela): Fix reverse condition.
9768         (elf_machine_rela_relative): Add a missing declaration.
9770 2001-09-18  Jakub Jelinek  <jakub@redhat.com>
9772         * sysdeps/unix/sysv/linux/ia64/ldd-rewrite.sed: New file.
9773         * sysdeps/unix/sysv/linux/s390/ldd-rewrite.sed: New file.
9774         * sysdeps/unix/sysv/linux/configure.in: Add ia64 and s390
9775         ldd-rewrite scripts.
9777 2001-09-18  Ulrich Drepper  <drepper@redhat.com>
9779         * elf/ldd.bash.in: Update copyright message.
9781 2001-09-17  H.J. Lu  <hjl@gnu.org>
9783         * hurd/hurdmalloc.c (bcopy): Removed.
9784         (realloc): Replace bcopy with memcpy.
9785         * hurd/path-lookup.c (file_name_path_scan): Likewise.
9786         * resolv/gethnamaddr.c (map_v4v6_address): Likewise.
9787         * sunrpc/rpcinfo.c (pmapdump): Likewise.
9789         * resolv/gethnamaddr.c (getanswer): Replace bcopy with memmove.
9790         (gethostbyaddr): Likewise.
9791         * sunrpc/rpcinfo.c (get_inet_address): Likewise.
9793 2001-09-18  Ulrich Drepper  <drepper@redhat.com>
9795         * sysdeps/gnu/eval.c: Removed.
9797 2001-09-18  Andreas Jaeger  <aj@suse.de>
9799         * sysdeps/i386/fpu/s_logbl.S: Move to ...
9800         * sysdeps/i386/fpu/s_logbl.c: ...here, use inline assembler.
9802         * sysdeps/i386/fpu/s_rintl.S: Move to ...
9803         * sysdeps/i386/fpu/s_rintl.c: ...here, use inline assembler.
9805         * sysdeps/i386/fpu/s_significandl.S: Move to ...
9806         * sysdeps/i386/fpu/s_significandl.c: ...here, use inline assembler.
9808 2001-09-16  Ulrich Drepper  <drepper@redhat.com>
9810         * string/strcoll.c [USE_IN_EXTENDED_LOCALE_MODEL]: Correctly get
9811         nrules value.
9813 2001-09-14  H.J. Lu  <hjl@gnu.org>
9815         * sysdeps/mips/fpu/libm-test-ulps: Updated.
9817 2001-09-14  Ulrich Drepper  <drepper@redhat.com>
9819         * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Fix a typo.
9820         Patch by Florian La Roche <laroche@redhat.com>.
9822         * string/bits/string2.h (__strtok_r_1c): Optimize a bit.
9824         * sysdeps/unix/sysv/linux/net/ethernet.h: Correct references to
9825         ETHER_CRC_LEN.
9827 2001-09-14  Andreas Schwab  <schwab@suse.de>
9829         * posix/execl.c: Fix last argument of memcpy.  Reported by Brian
9830         Sumner <bls@sgi.com>.
9831         * posix/execlp.c: Likewise.
9833 2001-09-13  Jakub Jelinek  <jakub@redhat.com>
9835         * elf/dl-deps.c (_dl_map_object_deps): Fix filter handling if filter
9836         is already found earlier in the search scope.
9838 2001-09-12  Jakub Jelinek  <jakub@redhat.com>
9840         * rt/Makefile (LDFLAGS-rt.so): Use shared thread library as librt's
9841         filter.
9843 2001-09-13  Ulrich Drepper  <drepper@redhat.com>
9845         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust expected errors for j0.
9847 2001-09-12  Ulrich Drepper  <drepper@redhat.com>
9849         * config.h.in: Enforce optimization to be used.
9850         * Makeconfig (preprocess-versions): Define ASSEMBLER.
9851         * stdlib/Makefile (isomac-CFLAGS): Define to -O.
9852         * posix/Makefile (annexc-CFLAGS): Define to -O.
9853         * sysdeps/unix/make-syscalls.sh: Define __OPTIMIZE__ in use of asm_CPP.
9855 2001-09-11  Ulrich Drepper  <drepper@redhat.com>
9857         * nscd/nscd_gethst_r.c: Don't expect IPv6 addresses for IPv4 lookup.
9858         Patch by Stephan Kulow.
9860 2001-09-08  Ben Collins  <bcollins@debian.org>
9862         * sysdeps/arm/dl-machine.h (elf_machine_rel): Fix thinko in
9863         usage of RESOLVE() (r_type, not reloc->r_type).
9865 2001-09-08  Ulrich Drepper  <drepper@redhat.com>
9867         * elf/dl-object.c: Avoid allocating extra memory block for name.
9868         * elf/dl-close.c (_dl_close): Don't free l_libname if it is not
9869         allocated separately.
9870         * elf/dl-load.c (_dl_map_object_from_fd): Likewise.
9872 2001-09-08  H.J. Lu  <hjl@gnu.org>
9874         * po/zh_TW.po: Fix a typo.
9876 2001-09-07  Tom Rix  <trix@redhat.com>
9878         * sysdeps/unix/sysv/aix/sysv_termio.h: New file.
9880 2001-08-26  Tom Rix  <trix@redhat.com>
9882         * sysdeps/unix/sysv/aix/Makefile (aix-syscalls.o): More linker
9883         command line options.
9884         * sysdeps/unix/sysv/aix/start.s: New file, rework of start.c
9885         * sysdeps/unix/sysv/aix/start.c: Removed.
9886         * sysdeps/unix/sysv/aix/start-libc.c: New file.
9887         * sysdeps/unix/sysv/aix/init-first.c: New file.
9888         * sysdeps/unix/sysv/aix/fcntl.c: Alias __libc_fcntl to __fcntl.
9890 2001-09-08  Ben Collins  <bcollins@debian.org>
9892         * sysdeps/arm/dl-machine.h: Fix usage of new _dl_signal_error() format.
9893         * sysdeps/generic/dl-machine.h: Likewise.
9894         * sysdeps/hppa/dl-fptr.c: Likewise.
9895         * sysdeps/ia64/dl-fptr.c: Likewise.
9896         * sysdeps/mach/hurd/dl-sysdep.c: Likewise.
9897         * sysdeps/mips/dl-machine.h: Likewise.
9898         * sysdeps/mips/mips64/dl-machine.h: Likewise.
9899         * sysdeps/powerpc/dl-machine.c: Likewise.
9901 2001-09-07  Ben Collins  <bcollins@debian.org>
9903         * sysdeps/sparc/sparc32/dl-machine.h: Fix typo.
9905         * sysdeps/hppa/dl-lookupcfg.h: Forward declare struct link_map.
9907 2001-09-08  Ulrich Drepper  <drepper@redhat.com>
9909         * elf/dl-lookup.c (add_dependency): Bump l_opencount of all
9910         dependencies if necessary.
9912         * elf/dl-close.c (_dl_close): If object has no r_list (i.e., wasn't
9913         loaded directly) determine length if l_initfini list by iterating
9914         over its elements.  Minor optimizations.
9915         * elf/dl-deps.c (_dl_map_object_deps): Always add own map to l_initfini
9916         for dependency objects.
9917         If object was already loaded check whether any of the dependencies
9918         is already on the relocation dependency list.  If yes, remove the
9919         latter.  Minor optimizations.
9920         * elf/dl-lookup.c (add_dependency): Add check for self reference of
9921         maps here.  Search l_initfini list only if the object was loaded
9922         directly and not only as a dependency.
9923         (_dl_lookup_symbol): Add relocation dependency also if object
9924         is not in global scope.  Remove test for self-reference here.
9925         (_dl_lookup_versioned_symbol): Likewise.
9926         * elf/dl-object (_dl_new_object): Cleanup.  Initialize dont_free
9927         element of first name record.
9928         * elf/loadtest.c: Add some more test to recognize early if an object
9929         wasn't unloaded.
9930         * elf/Makefile: Add rules to build and run reldep5.
9931         * elf/reldep5.c: New file.
9932         * elf/reldepmod5.c: New file.
9933         * elf/reldepmod6.c: New file.
9935         * elf/reldep2.c: Fix typo.
9937 2001-09-07  Ulrich Drepper  <drepper@redhat.com>
9939         * include/link.h (struct link_map): Add l_scope_mem and l_scope_max
9940         elements.  Change l_scope to be a pointer only.
9941         * elf/dl-object.c (_dl_new_object): Initialize l_scope and l_scope_max.
9942         * elf/dl-open.c (dl_open_worker): If dependency wasn't just opened
9943         here add searchlist of newly open file to the dependency's scope.
9944         * elf/dl-close.c (_dl_close): If dependency is used otherwise remove
9945         only searchlist from its scope.  Free own scope array if necessary.
9946         * elf/Makefile (tests): Add dblload and dblunload now.
9948 2001-09-06  Andreas Jaeger  <aj@suse.de>
9950         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: New file, contributed
9951         Stephen L Moshier.
9953 2001-09-05  Ulrich Drepper  <drepper@redhat.com>
9955         * elf/Makefile: Add rules to build new tests.  Don't run them yet since
9956         they both fail.
9957         * elf/dblload.c: New file.
9958         * elf/dblloadmod1.c: New file.
9959         * elf/dblloadmod2.c: New file.
9960         * elf/dblloadmod3.c: New file.
9961         * elf/dblunload.c: New file.
9963 2001-09-04  Richard Henderson  <rth@redhat.com>
9965         * elf/elf.h (R_ALPHA_OP_*, R_ALPHA_IMMED_*): Remove.
9966         (R_ALPHA_GPREL16): Rename from R_ALPHA_IMMED_GP_16.
9968 2001-09-04  Ulrich Drepper  <drepper@redhat.com>
9970         Correct very misleading message for error in failed runtime relocation.
9971         * elf/dl-error.c (_dl_signal_error): Take extra parameter to describe
9972         place of the error.
9973         (_dl_signal_cerror): Likewise.
9974         * sysdeps/generic/ldsodefs.h: Adjust prototypes.
9975         * elf/dl-close.c: Likewise.
9976         * elf/dl-deps.c: Likewise.
9977         * elf/dl-load.c: Likewise.
9978         * elf/dl-lookup.c: Likewise.
9979         * elf/dl-open.c: Likewise.
9980         * elf/dl-reloc.c: Likewise.
9981         * elf/dl-sym.c: Likewise.
9982         * elf/dl-version.c: Likewise.
9983         * sysdeps/generic/dl-sysdep.c: Likewise.
9985 2001-09-04  Jakub Jelinek  <jakub@redhat.com>
9987         * iconv/strtab.c (strtabinit): Initialize null Strent.
9988         (newstring): Move len == 0 handling...
9989         (strtabadd): ...here.
9990         If len == 1, return null Strent.
9991         When inserting a suffix of an existing string, check if
9992         it is not equal to some suffix already recorded.
9993         Copy left and right members over if adding longer string.
9995 2001-09-04  Jakub Jelinek  <jakub@redhat.com>
9997         * sunrpc/rpc_cout.c (upcase): Account for trailing '\0'.
9999         * sysdeps/unix/sysv/linux/alpha/gethostname.c: Include <errno.h>.
10000         (__syscall_gethostname): Add prototype.
10002 2001-09-04  Ulrich Drepper  <drepper@redhat.com>
10004         * elf/dl-object.c (_dl_new_object): Remove unnecessary if.
10006 2001-09-02  Ulrich Drepper  <drepper@redhat.com>
10008         * elf/rtld.c (dl_main): Increment l_opencount for main binary.
10010 2001-08-27  Roland McGrath  <roland@frob.com>
10012         * sysdeps/unix/sysv/gethostname.c (__gethostname): When LEN is too
10013         short, copy that much into NAME anyway before returning error.
10015 2001-09-01  Richard Henderson  <rth@redhat.com>
10017         * sysdeps/alpha/elf/Dist: Remove file.
10018         * sysdeps/alpha/elf/Makefile: Remove file.
10019         * sysdeps/alpha/elf/crtbegin.S: Remove file.
10020         * sysdeps/alpha/elf/crtend.S: Remove file.
10021         * sysdeps/alpha/elf/initfini.c: New file.
10023 2001-09-01  Mark Kettenis  <kettenis@gnu.org>
10025         * iconv/tst-iconv1.c: Include <stddef.h> for wchar_t.
10026         * iconv/tst-iconv3.c: Likewise.
10028 2001-09-01  Jakub Jelinek  <jakub@redhat.com>
10030         * sysdeps/generic/inttypes.h (__gwchar_t): Define to wchar_t for C++.
10032 2001-09-01  Ulrich Drepper  <drepper@redhat.com>
10034         * iconv/gconv_cache.c: Rename variable cache to __gconv_cache and
10035         export it.
10036         * iconv/Versions (libc) [GLIBC_2.2.5]: Export __gconv_cache.
10037         * iconv/iconv_prog.c (insert_cache): New function.
10038         (print_known_names): If cache is used call insert_cache to use the
10039         information from the cache [PR libc/2509].
10041 2001-08-31  Ulrich Drepper  <drepper@redhat.com>
10043         * time/strptime.c (strptime_internal): Recognize 'l' format and
10044         handle it like 'I' for symmetry with strftime.
10046 2001-08-31  Richard Henderson  <rth@redhat.com>
10048         * elf/dl-support.c (_dl_cpuclock_offset): Protect with NONAVAIL.
10049         (HP_TIMING_AVAIL): Set to HP_SMALL_TIMING_AVAIL if present.
10050         * elf/rtld.c (HP_TIMING_AVAIL): Likewise.
10051         (print_statistics): Make scalar unsigned long long.
10052         * sysdeps/alpha/hp-timing.h: New file.
10054 2001-08-31  Jakub Jelinek  <jakub@redhat.com>
10056         * stdio-common/perror.c (perror): Save errno early, pass it
10057         down to perror_internal.
10058         (perror_internal): Add errnum argument.
10060 2001-08-31  Jakub Jelinek  <jakub@redhat.com>
10062         * sysdeps/alpha/dl-machine.h (elf_machine_rela): Remove unused code.
10063         Don't add old memory content for R_ALPHA_REFQUAD.
10065 2001-08-30  Ulrich Drepper  <drepper@redhat.com>
10067         * crypt/md5-crypt.c (__md5_crypt_r): Compute used and required
10068         memory correctly.
10070         * sysdeps/unix/sysv/linux/ia64/ioperm.c (_ioperm): Use __open
10071         instead of open, __close instead of close, __getpagesize instead
10072         of getpagesize.
10074         * string/argz-stringify.c (__argz_stringify): Use __strnlen
10075         instead of strnlen.
10076         * include/string.h (strndupa): Redefine here to use __strnlen
10077         instead of strnlen.
10078         * string/strndup.c (__strndup): Use __strnlen not strnlen.
10080         * misc/syslog.c (vsyslog): Fix typo in last change (connect ->
10081         connected).
10083 2001-08-30  Jakub Jelinek  <jakub@redhat.com>
10085         * sysdeps/alpha/dl-machine.h (elf_machine_rela): Don't handle
10086         R_ALPHA_RELATIVE if RTLD_BOOTSTRAP and HAVE_Z_COMBRELOC.  Only check
10087         for rtld map if neither RTLD_BOOTSTRAP nor HAVE_Z_COMBRELOC is defined.
10088         * sysdeps/i386/dl-machine.h (elf_machine_rel): Similarly.
10089         * sysdeps/ia64/dl-machine.h (elf_machine_rel): Similarly.
10090         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rel): Similarly.
10091         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rel): Similarly.
10093 2001-08-30  Ulrich Drepper  <drepper@redhat.com>
10095         * sysdeps/alpha/fpu/libm-test-ulps: Adjust j0 ULPs.
10097 2001-08-30  Andreas Jaeger  <aj@suse.de>
10099         * sysdeps/ieee754/ldbl-128/e_jnl.c: New file,
10100         contributed Stephen L Moshier.
10102 2001-08-30  Jakub Jelinek  <jakub@redhat.com>
10104         * sunrpc/etc.rpc (sgi_fam): Add.
10106 2001-08-30  Ulrich Drepper  <drepper@redhat.com>
10108         * sysdeps/unix/sysv/linux/alpha/gethostname.c: New file.
10110 2001-08-29  Ulrich Drepper  <drepper@redhat.com>
10112         * nis/nis_findserv.c (__nis_findfastest): Don't fail if reply received
10113         first is from a previous call.
10114         Patch by Alexander Belopolsky <alexb@rentec.com> for [PR libc/3670].
10116 2001-08-29  Andreas Schwab  <schwab@suse.de>
10118         * sysdeps/ia64/fpu/libm-test-ulps: Updated.
10120 2001-08-25  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
10122         * config.make.in (INSTALL_SCRIPT): Define.
10123         * Makeconfig (INSTALL_SCRIPT): Define.
10124         * Makerules (do-install-script): New macro to install scripts using
10125         INSTALL_SCRIPT.
10126         (install-bin-script): New rule to install scripts with
10127         do-install-script.
10128         (install-bin-script-nosubdir): New rule.
10129         (install-no-libc.a-nosubdir): Add install-bin-script-nosubdir.
10130         (distinfo-vars): Add $(install-bin-script).
10131         * Rules (others): Likewise.
10132         * Makefile (glibcbug): Install with install-bin-script.
10133         * debug/Makefile (xtrace): Likewise.
10134         (catchsegv): Likewise.
10135         * elf/Makefile (ldd): Likewise.
10136         * malloc/Makefile (mtrace): Likewise.
10137         * timezone/Makefile (tzselect): Likewise.
10139 2001-08-29  H.J. Lu  <hjl@gnu.org>
10141         * sysdeps/mips/dl-machine.h (__dl_runtime_resolve): Pass
10142         ELF_RTYPE_CLASS_PLT, instead of R_MIPS_REL32, to
10143         _dl_lookup_versioned_symbol () and _dl_lookup_symbol ().
10145 2001-08-29  Andreas Schwab  <schwab@suse.de>
10147         * sysdeps/m68k/fpu/libm-test-ulps: Updated.
10149 2001-08-28  H.J. Lu  <hjl@gnu.org>
10151         * Makeconfig (combreloc-LDFLAGS): New variable.
10152         Add it to LDFLAGS.so, LDFLAGS-rtld, and +link.
10153         * config.make.in (have-z-combreloc): New variable.
10154         * configure.in: Substitute libc_cv_z_combreloc.
10156 2001-08-29  Ulrich Drepper  <drepper@redhat.com>
10158         * po/sv.po: Update from translation team.
10159         * po/fr.po: Likewise.
10160         * po/da.po: Likewise.
10162 2001-08-28  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
10164         * Makerules: Fix a typo: MD% -> MD5.
10166 2001-08-28  Ulrich Drepper  <drepper@redhat.com>
10168         * sunrpc/rpc_hout.c (pargdef): Function must take pointer to object.
10169         Patch by Patrick Duval <Patrick.Duval@devinci.fr>.
10171 2001-08-28  Andreas Jaeger  <aj@suse.de>
10173         * manual/libc-texinfo.sh: Add entry about free manuals.
10175         * manual/contrib.texi (Contributors): Fix cross reference.
10177         * manual/libc.texinfo (Copying): Include freemanuals.
10179         * manual/Makefile (appendices): Add freemanuals.
10181         * manual/freemanuals.texi: New file.
10182         Patch by Brian Youmans <3diff@gnu.org>.
10184         * manual/libm-err-tab.pl: Pretty print more platforms, print a
10185         smaller table.
10187         * manual/math.texi (Errors in Math Functions): Fix grammar, start
10188         table on separate page.
10189         Patch by Brian Youmans <3diff@gnu.org>.
10191 2001-08-27  Ulrich Drepper  <drepper@redhat.com>
10193         * misc/syslog.c (vsyslog): Try a bit harder to use syslogd.  If
10194         the connection went down after we first used it try to connect
10195         again and resend the message before printing to the console.
10196         Reported by Coserea Gh. Tudor <tudore@tudore.gecadsoftware.com>.
10198 2001-08-27  Jakub Jelinek  <jakub@redhat.com>
10200         * string/tst-strlen.c (main): Test strnlen (, -1) too.
10201         * sysdeps/generic/strnlen.c (__strnlen): Fix for maxlens with top
10202         bit set.
10204 2001-08-27  Ulrich Drepper  <drepper@redhat.com>
10206         * iconv/strtab.c (searchstring): Use correct length for comparison.
10207         (strtabadd): Account total size correct if new string has old string as
10208         substring.
10210 2001-08-27  Jakub Jelinek  <jakub@redhat.com>
10212         * elf/rtld.c (dl_main): Update call to _dl_lookup_symbol.
10214 2001-08-27  Andreas Jaeger  <aj@suse.de>
10216         * sysdeps/i386/fpu/libm-test-ulps (float): Add ulps for new tests.
10218         * math/libm-test.inc (j0_test): Add extra tests.
10219         * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_j0l): Use |x|,
10220         not x, in Hankel approximation.
10221         Patches by Stephen L Moshier.
10223 2001-08-26  Ulrich Drepper  <drepper@redhat.com>
10225         * sysdeps/ia64/dl-lookupcfg.h: Add forward declaration for struct
10226         link_map.
10228         * configure.in: Fix test for .rela.dyn section.
10230         * elf/dl-runtime.c: Update calls to _dl_lookup_*.
10232 2001-08-26  Jakub Jelinek  <jakub@redhat.com>
10234         * elf/dl-reloc.c (RESOLVE_MAP, RESOLVE): Use elf_machine_type_class
10235         instead of elf_machine_lookup_noexec_p and elf_machine_lookup_noplt_p.
10236         Pass type_class to _dl_lookup_*.
10237         * elf/dl-lookup.c (_dl_lookup_symbol): Take type_class parameter now.
10238         Pass around just type_class instead of noexec, noplt pair.
10239         (_dl_lookup_versioned_symbol): Likewise.
10240         (_dl_lookup_symbol_skip): Pass around just type_class instead of
10241         noexec, noplt pair.
10242         (_dl_lookup_versioned_symbol_skip): Likewise.
10243         (_dl_do_lookup, _dl_do_lookup_versioned): Likewise.
10244         * elf/do-lookup.h (do_lookup): Likewise.
10245         * include/link.h (struct link_map): Replace noexec and noplt fields
10246         in l_lookup_cache with type_class field.
10247         * sysdeps/generic/ldsodefs.h (ELF_RTYPE_CLASS_PLT,
10248         ELF_RTYPE_CLASS_COPY): Define.
10249         Adjust prototypes for _dl_lookup_symbol and
10250         _dl_lookup_versioned_symbol.
10251         * sysdeps/alpha/dl-machine.h (elf_machine_lookup_noplt_p,
10252         elf_machine_lookup_noexec_p): Remove.
10253         (elf_machine_type_class): Define.
10254         * sysdeps/arm/dl-machine.h: Likewise.
10255         * sysdeps/hppa/dl-machine.h: Likewise.
10256         * sysdeps/cris/dl-machine.h: Likewise.
10257         * sysdeps/i386/dl-machine.h: Likewise.
10258         * sysdeps/ia64/dl-machine.h: Likewise.
10259         * sysdeps/m68k/dl-machine.h: Likewise.
10260         * sysdeps/mips/mips64/dl-machine.h: Likewise.
10261         * sysdeps/mips/dl-machine.h: Likewise.
10262         * sysdeps/powerpc/dl-machine.h: Likewise.
10263         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
10264         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
10265         * sysdeps/sh/dl-machine.h: Likewise.
10266         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
10267         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
10269 2001-08-26  Ulrich Drepper  <drepper@redhat.com>
10271         * manual/message.texi (Advanced gettext functions): Change
10272         description of plural forms for Slovak.
10273         Reported by Marcel Telka <marcel@telka.sk>.
10275         * manuaL/time.texi (Low-Level Time String Parsing): Fix description of
10276         %z.  Reported by C. Scott Ananian <cananian@lesser-magoo.lcs.mit.edu>.
10278 2001-08-26  Jakub Jelinek  <jakub@redhat.com>
10280         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_lazy_rel): Fix a
10281         typo.  Patch by Florian La Roche <laroche@redhat.com>.
10283 2001-08-26  Ulrich Drepper  <drepper@redhat.com>
10285         * include/link.h (struct link_map): Add l_lookup_cache element.
10286         * elf/dl-reloc.c (RESOLVE): Add symbol caching here.
10287         (RESOLVE_MAP): Likewise.
10288         (_dl_relocate_object): Remove cache initialization.
10289         * elf/dl-lookup.c: Rip out cache handling code.
10290         * sysdeps/generic/ldsodefs.h: Remove lookup_cache struct and variable
10291         declarations.
10293         * elf/dl-lookup.c (_dl_lookup_symbol): Reorder some conditions and
10294         remove some __builtin_expect.
10295         (_dl_lookup_versioned_symbol): Likewise.
10297         * config.h.in: Add HAVE_Z_COMBRELOC.
10298         * configure.in: Add test for -z combreloc.
10300         * sysdeps/i386/dl-machine.h (elf_machine_rel): Minor cleanups and
10301         optimizations.  Use HAVE_Z_COMBRELOC to avoid generaton of
10302         R_386_RELATIVE handling for ld.so startup.  Reduce RTLD_BOOTSTRAP
10303         case to almost no code.
10305 2001-08-25  Ulrich Drepper  <drepper@redhat.com>
10307         * po/tr.po: Update from translation team.
10309 2001-08-24  Andreas Jaeger  <aj@suse.de>
10311         * iconv/Makefile (extra-objs): Add iconvconfig-modules so that
10312         make clean works.
10314 2001-08-24  Ulrich Drepper  <drepper@redhat.com>
10316         * elf/rtld.c (print_statistics): Printf % after percent values.
10317         * elf/dl-misc.c (_dl_debug_vdprintf): Implement %%.
10319         * elf/dl-lookup.c (_dl_lookup_symbol): If we use the cache we
10320         don't have to compute the hash value and initialize current_value.
10321         Move reference_name variable to where it is needed.
10322         (_dl_lookup_versioned_symbol): Likewise.
10324 2001-08-24  Roland McGrath  <roland@frob.com>
10326         * string/tester.c (test_strerror): Don't use _sys_errlist/_sys_nerr.
10327         Just test that strerror returns non-null for a few errno codes.
10329 2001-08-23  Roland McGrath  <roland@frob.com>
10331         * hurd/Versions (libc: GLIBC_2.2.5): New set; add _hurd_raise_signal,
10332         _hurdsig_interrupt_timeout, _hurdsig_fault_preemptor.
10334         * sysdeps/posix/shm_unlink.c (shm_unlink): __unlink -> unlink.
10336         * mach/Versions (libc: GLIBC_2.2.5): New set; add __mach_msg_destroy,
10337         __mach_reply_port.
10339 2001-08-24  Ulrich Drepper  <drepper@redhat.com>
10341         * nss/test-netdb.c (test_hosts): Don't segfault if gethostname
10342         returns NULL.
10344         * elf/do-rel.h (elf_dynamic_do_rel): Fix problem with ld.so
10345         startup.  Explicitly remove lazy part for RTLD_BOOTSTRAP since gcc
10346         doesn't do it.
10347         * elf/rtld.c: Include <sys/param.h>.
10348         * elf/dl-reloc.c: Likewise.
10350 2001-08-24  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
10352         * sysdeps/unix/sysv/linux/mips/configure.in: Define AC_SUBST to
10353         empty to prevent junk from being generated.
10354         * sysdeps/unix/sysv/linux/mips/configure: Regenerated.
10356 2001-08-24  Jakub Jelinek  <jakub@redhat.com>
10358         * elf/do-rel.h (elf_dynamic_do_rel): If l_addr is 0, skip relative
10359         records.  Rename endrel to relative, initialize it to r, and use it
10360         in elf_machine_rel_relative calls.  Point r after relative relocs.
10362 2001-08-24  Ulrich Drepper  <drepper@redhat.com>
10364         * sysdeps/i386/dl-machine.h (elf_machine_rel): Correct prediction
10365         of R_386_NONE.
10367 2001-08-24  Jakub Jelinek  <jakub@redhat.com>
10369         * elf/do-rel.h (elf_machine_rel_relative): Define for rela if
10370         necessary.  Undefine newly defined macros at the end.
10371         * sysdeps/hppa/dl-machine.h (elf_machine_rela_relative):
10372         Rename from elf_machine_rel_relative.
10373         * sysdeps/cris/dl-machine.h (elf_machine_rela_relative): Likewise.
10374         * sysdeps/m68k/dl-machine.h (elf_machine_rela_relative): Likewise.
10375         * sysdeps/powerpc/dl-machine.h (elf_machine_rela_relative): Likewise.
10376         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela_relative):
10377         Likewise.
10378         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela_relative):
10379         Likewise.
10380         * sysdeps/ia64/dl-machine.h (elf_machine_rela_relative): Likewise.
10381         Fix argument types.
10382         * sysdeps/alpha/dl-machine.h (elf_machine_rela_relative): Likewise.
10383         Fix argument types.
10384         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela_relative):
10385         Likewise.  Fix argument types.
10386         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela_relative):
10387         Likewise.  Fix argument types.
10388         * sysdeps/sh/dl-machine.h (elf_machine_rela_relative): Likewise.
10389         Fix argument types.
10390         * sysdeps/mips/dl-machine.h (elf_machine_rel_relative): Use
10391         ElfW(Rel) in argument.
10392         * sysdeps/mips/mips64/dl-machine.h (elf_machine_rel_relative): New
10393         function.
10395 2001-08-24  Alexandre Oliva  <aoliva@redhat.com>
10397         * sysdeps/sh/dl-machine.h (elf_machine_rela): Fix typo.
10399 2001-08-24  Andreas Jaeger  <aj@suse.de>
10401         * sysdeps/ieee754/ldbl-128/e_j1l.c: New file, contributed by
10402         Stephen L Moshier <moshier@mediaone.net>.
10404 2001-08-24  Ulrich Drepper  <drepper@redhat.com>
10406         * elf/do-rel.h (elf_dynamic_do_rel): RELATIVE relocations comes
10407         first if RELCOUNT is set.
10409         * elf/do-rel.h (elf_dynamic_do_rel): If not relocating lazily, don't
10410         call elf_machine_rel for the last DT_RELCOUNT relocations but instead
10411         elf_machine_rel_relative.
10412         * sysdeps/alpha/dl-machine.h: Define elf_machine_rel_relative.
10413         Minor optimizations.
10414         * sysdeps/arm/dl-machine.h: Likewise.
10415         * sysdeps/cris/dl-machine.h: Likewise.
10416         * sysdeps/hppa/dl-machine.h: Likewise.
10417         * sysdeps/i386/dl-machine.h: Likewise.
10418         * sysdeps/ia64/dl-machine.h: Likewise.
10419         * sysdeps/m68k/dl-machine.h: Likewise.
10420         * sysdeps/mips/dl-machine.h: Likewise.
10421         * sysdeps/powerpc/dl-machine.h: Likewise.
10422         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
10423         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
10424         * sysdeps/sh/dl-machine.h: Likewise.
10425         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
10426         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
10428 2001-08-23  Roland McGrath  <roland@frob.com>
10430         * rt/tst-aio4.c [! SIGRTMIN] (SIGRTMIN, SIGRTMAX): Define as -1.
10432         * sysdeps/mach/hurd/bits/libc-lock.h: New file, initially copied from
10433         sysdeps/mach version.  Implement counting ("recursive") mutexes
10434         on top of cthreads mutexes.
10435         * sysdeps/mach/hurd/bits/stdio-lock.h: File removed; generic now works.
10437         * sysdeps/generic/bits/stdio-lock.h (_IO_lock_initializer): Define to
10438         _LIBC_LOCK_RECURSIVE_INITIALIZER if defined, else do an #error.
10439         (__libc_cleanup_region_start, __libc_cleanup_region_end,
10440         __libc_clean_end): Define these to call the cleanup function after
10441         normal exit when they're supposed to.
10443         * sysdeps/mach/bits/libc-lock.h (__libc_cleanup_region_start):
10444         Take new first arg DOIT, a boolean saying whether to really install
10445         any cleanup handler.
10446         (__libc_cleanup_region_end): Do nothing if start's DOIT arg was zero.
10447         (__libc_cleanup_end): Likewise.
10448         * sysdeps/generic/bits/libc-lock.h: Same changes.
10449         * stdio-common/vfscanf.c (LOCK_STREAM): Pass new arg.
10450         * stdio-common/vfprintf.c (buffered_vfprintf, vfprintf): Likewise.
10451         * sysdeps/mach/hurd/bits/stdio-lock.h (_IO_cleanup_region_start):
10452         Likewise.
10453         * misc/syslog.c (vsyslog, openlog, closelog): Likewise.
10454         * sysdeps/generic/bits/stdio-lock.h
10455         (_IO_cleanup_region_start, _IO_cleanup_region_start_noarg): Likewise.
10457 2001-08-23  Jakub Jelinek  <jakub@redhat.com>
10459         * elf/ldconfig.c (search_dir): Remove stale symlinks.
10461 2001-08-23  Jakub Jelinek  <jakub@redhat.com>
10463         * elf/dl-lookup.c (lookup_cache, lookup_cache_versioned): New.
10464         (_dl_lookup_symbol): Lookup relocations in cache and store successfull
10465         lookups in cache.
10466         (_dl_lookup_versioned_symbol): Likewise.
10467         * elf/dl-reloc.c (_dl_relocate_object): Initialize cache for
10468         relocation lookup.
10469         * elf/rtld.c (print_statistics): Output _dl_num_cache_relocations.
10470         * sysdeps/generic/ldsodefs.h (struct lookup_cache): New definition.
10471         (lookup_cache, lookup_cache_versioned): Add declarations.
10473 2001-08-23  Ulrich Drepper  <drepper@redhat.com>
10475         * stdlib/tst-random.c (main): Swap parameters in fail call.
10476         Patch by Pete Bevin <pete@petebevin.com>.
10478 2001-08-23  Jakub Jelinek  <jakub@redhat.com>
10480         * sysdeps/generic/inttypes.h: Use __gwchar_t instead of __wchar_t.
10482 2001-08-23  Ulrich Drepper  <drepper@redhat.com>
10484         * malloc/obstack.c: Indent preprocessor directives.
10485         Patch by Jim Meyering <meyering@ascend.com>.
10487         * po/ja.po: Update from translation team.
10489 2001-08-23  Roland McGrath  <roland@frob.com>
10491         * libio/tst-ungetwc1.c (main): Add a const to quiet a warning.
10493         * nss/test-netdb.c (test_hosts): Don't use MAXHOSTNAMELEN.
10494         Instead, use dynamic buffer to test gethostname's ENAMETOOLONG error.
10496 2001-08-22  Roland McGrath  <roland@frob.com>
10498         * sysdeps/generic/ldsodefs.h (_dl_load_lock): Declare it here with
10499         __libc_lock_define_recursive.
10500         * elf/dl-open.c: Don't declare it here any more.
10501         * elf/dl-close.c: Likewise.
10502         * elf/dl-lookup.c: Likewise.
10503         * elf/dl-iteratephdr.c: Likewise.
10504         * elf/dl-lookup.c (add_dependency): Use __libc_lock_lock_recursive and
10505         __libc_lock_unlock_recursive.
10506         * elf/dl-close.c (_dl_close): Likewise
10507         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Likewise
10508         * elf/dl-open.c (_dl_open): Likewise
10510         * sysdeps/generic/bits/libc-lock.h
10511         (__libc_lock_define_recursive): New macro.
10512         * sysdeps/generic/bits/stdio-lock.h (_IO_lock_t): Use it.
10513         (_IO_lock_lock): Use __libc_lock_lock_recursive.
10514         (_IO_lock_unlock): Use __libc_lock_unlock_recursive.
10516         * conform/conformtest.pl (checknamespace): Sort the output list.
10518         * sysdeps/generic/bits/poll.h (POLLWRBAND): New alias for POLLOUT.
10519         (POLLRDNORM, POLLRDBAND, POLLWRNORM, POLLWRBAND): Make these
10520         definitions conditional on [__USE_XOPEN].
10522         * sysdeps/mach/hurd/bits/fcntl.h (O_ASYNC, O_FSYNC, O_SYNC): Define
10523         these unconditionally, not only use [__USE_BSD], so as to match
10524         the sysdeps/unix/sysv/linux files.
10526 2001-08-22  Ulrich Drepper  <drepper@redhat.com>
10528         * test-skeleton.c (add_temp_file): Add __attribute__ ((unused)) to
10529         avoid warnings.
10531         * dlfcn/tst-dladdr.c (do_test): Get address of ref1 using
10532         DL_LOOKUP_ADDRESS.
10534 2001-08-22  Roland McGrath  <roland@frob.com>
10536         * sysdeps/generic/bits/sigaction.h (struct sigaction): Fix up
10537         conditionalization of sa_handler/sa_sigaction member types to
10538         match the sysdeps/unix/sysv/linux file.
10540 2001-08-22  Ulrich Drepper  <drepper@redhat.com>
10542         * elf/dl-addr.c (_dl_addr): Handle broken binaries with zero
10543         symbol sizes a bit better.
10545         * sysdeps/ia64/strncpy.S: Complete rewrite.
10546         Contributed by Jakub Jelinek <jakub@redhat.com>.
10548         * string/stratcliff.c (main): Add strncpy test.
10550 2001-08-22  Roland McGrath  <roland@frob.com>
10552         * sysdeps/generic/dl-environ.c: Include <stdlib.h> and <unistd.h>,
10553         and don't declare unsetenv or _environ directly.
10554         (unsetenv): Return int, not void.  Use __environ instead of _environ.
10556 2001-08-01  Mark Kettenis  <kettenis@gnu.org>
10558         * sysdeps/unix/bsd/bsd4.4/Makefile: New file.
10559         * sysdeps/unix/bsd/bsd4.4/Versions: New file.
10560         * sysdeps/unix/bsd/bsd4.4/cmsg_nxthdr.c: New file.
10561         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (__cmsg_nxthdr): Correct
10562         test for cmsg struct size.
10564 2001-04-23  Paul Eggert  <eggert@twinsun.com>
10566         * posix/getopt.h (getopt_long, getopt_long_only, _getopt_internal):
10567         Rename __argc to ___argc in prototypes to avoid compatibility
10568         problems with systems that reserve the identifier "__argc".
10569         Similarly for __argv.
10571 2001-08-21  Roland McGrath  <roland@frob.com>
10573         * stdio-common/tst-fseek.c: Include <time.h> for `time' declaration.
10575         * mach/Makefile (tests): Removed.
10576         * mach/hello.c: File removed.
10578 2001-08-22  Ulrich Drepper  <drepper@redhat.com>
10580         * po/sv.po: Update from translation team.
10582         * stdio-common/vfscanf.c: Fix handling of %l[].
10583         Reported by Mitsuru Chinen <mchinen@yamato.ibm.com>.
10585         * libio/Makefile (tests): Add tst-sscanf.
10586         * libio/tst-sscanf.c: New file.
10588         * elf/dl-addr.c (_dl_addr): Fix tests to determine dli_sname.
10589         * malloc/mtrace.c (tr_where): dli_sname always points to a
10590         non-empty string if != NULL.
10591         Reported by Tim Janik <timj@gtk.org>.
10593 2001-08-22  Jakub Jelinek  <jakub@redhat.com>
10595         * sunrpc/xdr_rec.c (xdrrec_create): Fix buf sizes before allocating
10596         buf.  Free resources on failure.
10597         * sunrpc/svc_unix.c (svcunix_create): Free resources on failure.
10598         (makefd_xprt): Likewise.
10599         * sunrpc/svc_udp.c (svcudp_bufcreate): Likewise.
10600         * sunrpc/svc_tcp.c (svctcp_create, makefd_xprt): Likewise.
10601         * sunrpc/auth_unix.c (authunix_create): Likewise.
10603 2001-08-21  Jakub Jelinek  <jakub@redhat.com>
10605         * string/strnlen.c: Remove.
10606         * sysdeps/generic/strnlen.c: New file.
10607         * sysdeps/i386/i486/bits/string.h (strnlen): Remove.
10609 2001-08-21  Roland McGrath  <roland@frob.com>
10611         * sysdeps/mach/i386/machine-sp.h (__thread_stack_pointer): Define this
10612         as a macro, not an extern inline function.
10614         * hurd/Versions (GLIBC_2.2.5): New set, define __hurd_fail here.
10615         * Versions.def (libc): Add GLIBC_2.2.5 set.
10616         * hurd/hurd.h (_HURD_H_EXTERN_INLINE): New macro.
10617         (__hurd_fail): Use that instead of _EXTERN_INLINE in decl.
10619 2001-08-20  Roland McGrath  <roland@frob.com>
10621         * hurd/hurdlookup.c (__hurd_file_name_lookup): Fail with ENOENT for "".
10622         (__hurd_file_name_split, __hurd_directory_name_split): Likewise.
10624 2001-08-21  Ulrich Drepper  <drepper@redhat.com>
10626         * string/bits/string2.h: Remove strnlen optimization here.
10627         * sysdeps/i386/i486/bits/string.h: Add it here.
10629 2001-08-21  Wolfram Gloger  <wg@malloc.de>
10631         * malloc/malloc.c: Make access to ..._hook pointers thread-safe.
10633 2001-08-21  Ulrich Drepper  <drepper@redhat.com>
10635         * po/gl.po: Update from translation team.
10637 2001-08-20  Ulrich Drepper  <drepper@redhat.com>
10639         * misc/error.c (error_tail): Use fputws_unlocked instead of fputws.
10640         * misc/err.c (convert_and_print): Likewise.
10642         * malloc/obstack.c (print_and_abort): Use fprintf instead of two
10643         function calls.
10645 2001-08-20  Martin Schwidefsky  <schwidefsky@de.ibm.com>
10647         * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Revert the
10648         change of the gregset_t type.
10649         * sysdeps/unix/sysv/linux/s390/s390-64/sys/ucontext.h: Likewise.
10651 2001-08-20  kaz Kojima  <kkojima@rr.iij4u.or.jp>
10653         * sysdeps/unix/sysv/linux/sh/sysdep.S: Align errno.
10655 2001-08-20  Ulrich Drepper  <drepper@redhat.com>
10657         * posix/regex.c (truncate_wchar): Use wcrtomb not wctomb.
10659         * string/strnlen.c: Fix the implementation.  We cannot use memchr.
10661 2001-08-18  Mark Kettenis  <kettenis@gnu.org>
10663         * sysdeps/mach/hurd/i386/init-first.c (init): Initialize __environ
10664         before calling the cthreads initialization code.
10666 2001-08-20  Ulrich Drepper  <drepper@redhat.com>
10668         * argp/argp-help.c: Fix two problems introduced in last change.
10670         * include/dirent.h: Include <dirstream.h> first.
10672 2001-08-19  Ulrich Drepper  <drepper@redhat.com>
10674         * io/fts.c (fts_safe_changedir): Use __fxstat64 instead of __fstat.
10676         * sunrpc/svcauth_des.c (_svcauth_des): Avoid using bcopy.
10677         * sunrpc/xdr_rec.c: Likewise.
10678         * sunrpc/xdr_mem.c: Likewise.
10679         * sunrpc/svc_authux.c (_svcauth_unix): Likewise.
10680         * sunrpc/rpc_cmsg.c: Likewise.
10681         * sunrpc/getrpcport.c (getrpcport): Likewise.
10682         * sunrpc/clnt_simp.c (callrpc): Likewise.
10683         * sunrpc/clnt_gen.c (clnt_create): Likewise.
10684         * string/envz.c: Likewise.
10686         * po/ko.po: Update from translation team.
10688         * argp/argp-help.c: Handle wide oriented stderr stream.
10690 2001-08-18  Ulrich Drepper  <drepper@redhat.com>
10692         * sysdeps/generic/strtol.c: Little optimizations.  Add some
10693         __builtin_expect.
10695         * conform/conformtest.pl: <inttypes.h> test requires <stddef.h>.
10697         * wcsmbs/wchar.h (wcwdith): Change parameter type to wchar_t.
10698         * wcsmbs/wcwidth.c (wcwdith): Likewise.
10699         * wcsmbs/wcwidth.h (internal_wcwdith): Likewise.
10701         * conform/data/unistd.h-data: Remove _SC_MULTIPLE_PROCESS.
10703         * conform/data/ucontext.h-data: Fix typos in ucontext_t element tests.
10705         * time/time.h (struct timespec): Use __time_t for tv_sec element.
10707         * sysdeps/generic/inttypes.h: Define __wchar_t.  Use it instead of
10708         wchar_t for function declarations and defintions.
10710         * misc/sys/select.h: Define __need_time_t before including <time.h>.
10711         Define suseconds_t if it hasn't happened yet.
10713         * iconv/gconv.h: Define __need_wchar_t before including <stddef.h>.
10715         * conform/data/sys/uio.h-data: Allow UIO_MAXIOV to be defined.
10717         * sysdeps/generic/stdint.h: Don't get definition of wchar_t from
10718         <stddef.h>.
10720         * conform/data/stddef.h-data: Remove wint_t.
10722         * conform/conformtest.pl: Change namespace test to take #undef
10723         lines into account.
10725         * conform/data/netinet/in.h-data: Fix typo in allow-header line.
10727         * conform/data/sys/socket.h-data: Add sockatmark.
10729 2001-08-17  Ulrich Drepper  <drepper@redhat.com>
10731         * io/fts.c: Update from recent BSD source.
10733 2001-08-17  Roland McGrath  <roland@frob.com>
10735         * stdio-common/perror.c (perror) [! USE_IN_LIBIO]: Don't use _IO_fwide.
10736         * misc/error.c (error_tail, error, error_at_line) [! USE_IN_LIBIO]:
10737         Likewise.
10739 2001-08-17  Ulrich Drepper  <drepper@redhat.com>
10741         * locale/duplocale.c (__duplocale): Also initialize the special
10742         __ctype_* elements.
10744         * conform/data/netdb.h-data: Adjust gai_strerror return type.
10746 2001-08-17  Andreas Jaeger  <aj@suse.de>
10748         * misc/getpass.c: Include wchar.h for prototypes.
10749         * malloc/obstack.c: Likewise.
10751 2001-08-17  Ulrich Drepper  <drepper@redhat.com>
10753         * sunrpc/svc_simple.c (universal): Use __write instead of write.
10755         * wcsmbs/wcscoll.c: Also define __wcscoll.
10756         * include/wchar.h: Declare __wcscoll.
10758         * libio/fwprintf.c: Use __vfwprintf instead of vfwprintf.
10759         * libio/vwprintf.c: Likewise.
10760         * libio/wprintf.c: Likewise.
10762         * iconv/gconv_cache.c: Use __munmap instead of munmap.
10764 2001-08-16  Ulrich Drepper  <drepper@redhat.com>
10766         * posix/regex.c [_LIBC] (convert_mbs_to_wcs): Use __mbrtowc
10767         instead of mbrtowc.
10768         [_LIBC]: Use __iswctype instead of iswctype, __wcslen instead of
10769         wcslen, and __wcscoll instead of wcscoll.
10771         * sysdeps/unix/sockatmark.c (sockatmark): Use __ioctl instead of ioctl.
10773         * sysdeps/unix/sysv/linux/gai_sigqueue.c (__gai_sigqueue): Use
10774         __getuid instead of getuid.
10776         * stdio-common/perror.c (perror): Use __close instead of close.
10777         * iconv/gconv_cache.c (__gconv_load_cache): Likewise.
10778         * libio/freopen.c (freopen): Likewise.
10779         * libio/freopen64.c (freopen64): Likewise.
10781         * libio/tst-ungetwc2.c (main): Define str const.
10783         * include/wchar.h: Add prototypes for __fwprintf and __vfwprintf.
10784         * libio/fwprintf.c: Also define __fwprintf.
10785         * stdio-common/vfprintf.c [COMPILE_WPRINTF]: Also define __vfwprintf.
10786         * argp/argp-fmtstream.c: Handle wide oriented stderr stream.
10787         * assert/assert-perr.c: Likewise.
10788         * assert/assert.c: Likewise.
10789         * gmon/gmon.c: Likewise.
10790         * inet/rcmd.c: Likewise.
10791         * malloc/obstack.c: Likewise.
10792         * misc/err.c: Likewise.
10793         * misc/error.c: Likewise.
10794         * misc/getpass.c: Likewise.
10795         * posix/getopt.c: Likewise.
10796         * resolv/res_hconf.c: Likewise.
10797         * stdio-common/perror.c: Likewise.
10798         * stdio-common/psignal.c: Likewise.
10799         * stdlib/fmtmsg.c: Likewise.
10800         * sunrpc/auth_unix.c: Likewise.
10801         * sunrpc/clnt_perr.c: Likewise.
10802         * sunrpc/clnt_tcp.c: Likewise.
10803         * sunrpc/clnt_udp.c: Likewise.
10804         * sunrpc/clnt_unix.c: Likewise.
10805         * sunrpc/svc_simple.c: Likewise.
10806         * sunrpc/svc_tcp.c: Likewise.
10807         * sunrpc/svc_udp.c: Likewise.
10808         * sunrpc/svc_unix.c: Likewise.
10809         * sunrpc/xdr.c: Likewise.
10810         * sunrpc/xdr_array.c: Likewise.
10811         * sunrpc/xdr_rec.c: Likewise.
10812         * sunrpc/xdr_ref.c: Likewise.
10813         * sysdeps/generic/wordexp.c: Likewise.
10815         * po/it.po: Update from translation team.
10817         * misc/err.c: Handle wide oriented stderr stream.
10819 2001-08-14  Tom Rix  <trix@redhat.com>
10821         * iconv/gconv_cache.c (find_module): Add #ifndef STATIC_GCONV.
10822         * iconv/Makefile: Fix gconv_cache.c CFLAGS.
10824 2001-08-13  Tom Rix  <trix@redhat.com>
10826         * sysdeps/unix/sysv/aix/Makefile: Add rule to import kernel symbols.
10827         * sysdeps/unix/sysv/aix/bits/types.h: Fix type of __id_t, __useconds_t
10828         and __intptr_t.
10830 2001-08-15  Martin Schwidefsky  <schwidefsky@de.ibm.com>
10832         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S (__getcontext):
10833         Store the access registers to the ucontext structure.
10834         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S (__getcontext):
10835         Likewise.
10837         * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S (__setcontext):
10838         Load the access registers from the ucontext structure.
10839         * sysdeps/unix/sysv/linux/s390/s390-64/setcontext.S (__setcontext):
10840         Likewise.
10842         * sysdeps/unix/sysv/linux/s390/s390-32/ucontext_i.h: Adjust the SC_xxx
10843         offsets to the new ucontext layout.
10844         * sysdeps/unix/sysv/linux/s390/s390-64/ucontext_i.h: Likewise.
10846         * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Fix the layout
10847         of the ucontext structure.
10848         * sysdeps/unix/sysv/linux/s390/s390-64/sys/ucontext.h: Likewise.
10850 2001-08-15  Ulrich Drepper  <drepper@redhat.com>
10852         * misc/error.c (error): Handle wide oriented stderr stream correctly.
10853         (error_at_line): Likewise.
10855         * stdio-common/perror.c (perror): Implement according to standard.
10856         The stream orientation must not be changed if the stream was not
10857         oriented before the call.
10858         * stdio-common/Makefile (tests): Add tst-perror.
10859         * stdio-common/tst-perror.c: New file.
10862 See ChangeLog.12 for earlier changes.