Update.
[glibc.git] / ChangeLog
blob02313718389d1a19aeda30b1906d6effab5f6dbd
1 2002-08-23  Ulrich Drepper  <drepper@redhat.com>
3         * sysdeps/ieee754/dbl-64/e_pow.c (log1): Define and initialize
4         two52 locally.
5         (log2): Likewise.
6         * sysdeps/ieee754/dbl-64/upow.h: Remove definition of two52.
7         Patch by Simon Gee <simong@agile.tv>.
9         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs_conf):
10         Prefer reading /proc/stat since it is more uniform across
11         architectures.1
13         * manual/texinfo.tex: Update to latest official version.
15         * sysvipc/sys/shm.h: Remove SHMLBA definition.
16         * sysdeps/generic/bits/shm.h: Define SHMLBA here.
17         * sysdeps/gnu/bits/shm.h: Likewise.
18         * sysdeps/unix/sysv/linux/alpha/bits/shm.h: Likewise.
19         * sysdeps/unix/sysv/linux/bits/shm.h: Likewise.
20         * sysdeps/unix/sysv/linux/mips/bits/shm.h: Likewise.
21         * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Likewise.
22         * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Likewise.
23         * sysdeps/unix/sysv/linux/s390/bits/shm.h: Likewise.
24         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: Likewise.
25         * sysdeps/unix/sysv/linux/ia64/bits/shm.h: Define SHMLBA to 2^20
26         since this is what the kernel says.
28         * misc/sys/xattr.h: Include <sys/types.h> instead of <stddef.h>
29         since ssize_t is needed as well.  Replace const with __const.
31 2002-08-23  Roland McGrath  <roland@redhat.com>
33         * malloc/hooks.c (__malloc_initialize_hook, __free_hook,
34         __malloc_hook, __realloc_hook, __memalign_hook,
35         __after_morecore_hook): Variable definitions moved to ...
36         * malloc/malloc.c: ... here, so as to be before all references.
38         * sysdeps/i386/dl-machine.h (elf_machine_load_address): Add a dummy
39         global variable reference in an unused asm parameter, to ensure the
40         compiler has set up the GOT register before we use it.
42         * malloc/hooks.c: Move variable definitions ahead of uses.
43         * libio/fileops.c: Move versioned_symbol defns ahead of _IO_jump_t
44         initializers that make reference to variables they define.
46 2002-08-23  Andreas Jaeger  <aj@suse.de>
48         * locale/loadarchive.c: Include <stdlib.h> for prototypes of
49         alloca, free, qsort.
51         * dlfcn/bug-dlsym1-lib1.c (foo): Add prototype to avoid warning.
53         * sysdeps/ieee754/flt-32/e_jnf.c: Remove unused variable.
54         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
56         * misc/sys/xattr.h: New file, contributed by Christoph Hellwig
57         <hch@lst.de>.
58         * sysdeps/generic/fgetxattr.c: New file.
59         * sysdeps/generic/flistxattr.c: New file.
60         * sysdeps/generic/fremovexattr.c: New file.
61         * sysdeps/generic/fsetxattr.c: New file.
62         * sysdeps/generic/getxattr.c: New file.
63         * sysdeps/generic/listxattr.c: New file.
64         * sysdeps/generic/lgetxattr.c: New file.
65         * sysdeps/generic/llistxattr.c: New file.
66         * sysdeps/generic/lremovexattr.c: New file.
67         * sysdeps/generic/lsetxattr.c: New file.
68         * sysdeps/generic/removexattr.c: New file.
69         * sysdeps/generic/setxattr.c: New file.
70         * misc/Makefile (headers): Add sys/xattr.h.
71         (routines): Add *xattr calls.
72         * misc/Versions: Add *xattr calls with version 2.3.
73         * sysdeps/unix/sysv/linux/m68k/Versions: Remove *xattr syscalls.
74         * sysdeps/unix/sysv/linux/s390/s390-32/Versions: Likewise.
75         * sysdeps/unix/sysv/linux/sparc/sparc32/Versions: Likewise.
76         * sysdeps/unix/sysv/linux/sparc/sparc64/Versions: Likewise.
77         * sysdeps/unix/sysv/linux/x86_64/Versions: Likewise.
78         * sysdeps/unix/sysv/linux/ia64/Versions: Likewise.
79         * sysdeps/unix/sysv/linux/alpha/Versions: Likewise.
80         * sysdeps/unix/sysv/linux/arm/Versions: Likewise.
82 2002-08-22  Steven Munroe  <sjmunroe@us.ibm.com>
84         * sysdeps/powerpc/elf/libc-start.c
85         (__cache_line_size): Declare.
86         (__aux_init_cache): New.
87         (__libc_start_main): Change type of `auxvec' parameter to
88         `ElfW(auxv_t) *'.  Correct walking of aux vector.  Call
89         __aux_init_cache.
90         * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c
91         (__cache_line_size): Declare.
92         (__aux_init_cache): New.
93         (DL_PLATFORM_INIT): Define.
94         * sysdeps/powerpc/memset.S: Define __cache_line_size and use its
95         value to select the correct stride for dcbz.
97 2002-08-22  Andreas Jaeger  <aj@suse.de>
99         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Fix arguments of
100         shmat.
102 2002-08-22  Roland McGrath  <roland@redhat.com>
104         * locale/loadarchive.c (_nl_load_locale_from_archive): Check max file
105         position indicated by locrectab against file bounds before rounding to
106         page size.  In mapping loop, always set TO before breaking out of
107         contiguous range coalescing loop.
109         * locale/loadarchive.c (_nl_load_locale_from_archive): Use MAP_PRIVATE
110         (or MAP_COPY if available) instead of MAP_SHARED.
112         * scripts/firstversions.awk: When encountering a version newer than
113         the specified earliest version, be sure to emit the specified earliest
114         version first if any renaming of an older version to that has been.
116 2002-08-21  Roland McGrath  <roland@redhat.com>
118         * configure.in: Make GCC version check require 3.[2-9]* and no others.
119         * configure: Regenerated.
120         * manual/install.texi (Tools for Compilation): Say 3.2 is required.
121         (Configuring and compiling): Don't mention older GCC versions any more.
122         * INSTALL: Regenerated.
124         * manual/install.texi (Configuring and compiling, Installation,
125         Running make install, Linux): Linux -> GNU/Linux where appropriate.
127         * elf/rtld.c (_dl_start_final): Move defn before _dl_start so it can
128         be inlined.  Declare it with always_inline if [DONT_USE_BOOTSTRAP_MAP]
129         and with noinline otherwise.  Remove hack alloca use to prevent
130         inlining, we can ask for it explicitly nowadays.
132         * dlfcn/bug-dlsym1.c: New file.
133         * dlfcn/bug-dlsym1-lib1.c, dlfcn/bug-dlsym1-lib2.c: New files.
134         * dlfcn/Makefile (distribute): Add them.
135         (tests): Add bug-dlsym1 here.
136         (modules-names): Add bug-dlsym1-lib1 and bug-dlsym1-lib2 here.
137         ($(objpfx)bug-dlsym1, $(objpfx)bug-dlsym1.out): New targets.
138         ($(objpfx)bug-dlsym1-lib1.so, $(objpfx)bug-dlsym1-lib2.so): Likewise.
140 2002-08-21  Ulrich Drepper  <drepper@redhat.com>
142         * elf/rtld.c (start_time): New global variable.  Moved from _dl_start.
143         (DONT_USE_BOOTSTRAP_MAP): Define if we can use non-exported symbols
144         before relocation.
145         (_dl_start): Don't use local bootstrap_map variable if
146         DONT_USE_BOOTSTRAP_MAP is defined.  Use GL(dl_rtld_map).  Don't
147         pass bootstrap_map to _dl_start_final in this case either.  Don't
148         pass start_time to _dl_start_final ever.
149         (_dl_start_final): Don't copy bootstrap_map if DONT_USE_BOOTSTRAP_MAP.
151         * elf/dl-deps.c (_dl_map_object_deps): Revert patch from 2002-05-28.
152         This cripples the scope lists necessary to search for symbols in
153         dependencies which are not in the global scope.
155         * include/setjmp.h (__libc_longjmp): Add declaration.
157 2002-08-21  Andreas Jaeger  <aj@suse.de>
159         * sysdeps/x86_64/_mcount.S: Fix assembler.
161         * sysdeps/unix/sysv/linux/x86_64/Makefile: Generate bits/syscall.h
162         with biarch support.
164 2002-08-21  Andreas Jaeger  <aj@suse.de>
166         * sysdeps/x86_64/sysdep.h (CALL_MCOUNT): Fix it.
168         * sysdeps/x86_64/Makefile (sysdep_routines): Add _mcount.
170         * sysdeps/x86_64/machine-gmon.h: New file.
171         * sysdeps/x86_64/_mcount.S: New file.
173 2002-08-20  Ulrich Drepper  <drepper@redhat.com>
175         * elf/rtld.c (_dl_start): Pass zero to TLS_INIT_TP.  Set
176         bootstrap_map.l_tls_tp_initialized to 1 if TLS_INIT_TP was called.
177         (_dl_start_final): Copy l_tls_tp_initialized to GL(dl_rtld_map).
178         (dl_main): If HAVE___THREAD is not defined pass l_tls_tp_initialized
179         to TL_INIT_TP.  Otherwise pass 1.
180         * include/link.h (struct link_map): Add l_tls_tp_initialized.
181         * sysdeps/generic/libc-tls.c (__libc_setup_tls): Pass 0 to TL_INIT_TP.
183 2002-08-15  Jakub Jelinek  <jakub@redhat.com>
185         * locale/programs/localedef.c (add_to_readlist): Error about
186         circular dependencies only if the locale in question hasn't
187         been finished.
188         * locale/programs/linereader.c (get_string): Pass LC_CTYPE not
189         CTYPE_LOCALE to load_locale.
190         * locale/programs/locfile.c (locfile_read): Don't include
191         unneeded but available locales in locale_mask.
193         * locale/programs/locarchive.c (enlarge_archive): If quiet, don't
194         print any messages about enlarging archive.
196 2002-08-20  Brian Youmans  <3diff@gnu.org>
198         * manual/contrib.texi: Removed licenses, added acknowledgements
199         for contributions by Intel, IBM, Craig Metz.
200         * LICENSES: New file, contains the text of all non-FSF licenses in the
201         distribution that require putting the notice in the accompanying
202         documentation.
203         * README.template, README: Mention LICENSES.
205         * sysdeps/mach/hurd/net/if_ppp.h: Replaced CMU license with a
206         new one modelled on the modern BSD license, per recent letter
207         of permission from CMU.
208         * sysdeps/unix/sysv/linux/net/if_ppp.h: Likewise.
210         * sysdeps/ieee754/dbl-64/MathLib.h: Changed the copyright holder
211         from IBM to FSF, per the recent Software Letter.  Changed the
212         distribution terms from GPL to LGPL.
214         * sysdeps/ieee754/dbl-64/asincos.tbl: Added FSF copyright and
215         copying permission notice (Lesser GPL), per recent IBM Software Letter.
216         * sysdeps/ieee754/dbl-64/powtwo.tbl: Likewise.
217         * sysdeps/ieee754/dbl-64/root.tbl: Likewise.
218         * sysdeps/ieee754/dbl-64/sincos.tbl: Likewise.
219         * sysdeps/ieee754/dbl-64/uatan.tbl: Likewise.
220         * sysdeps/ieee754/dbl-64/uexp.tbl: Likewise.
221         * sysdeps/ieee754/dbl-64/ulog.tbl: Likewise.
222         * sysdeps/ieee754/dbl-64/upow.tbl: Likewise.
223         * sysdeps/ieee754/dbl-64/utan.tbl: Likewise.
225         * sysdeps/ieee754/dbl-64/atnat.h: Changed the copyright holder
226         from IBM to FSF, per the recent Software Letter.  Corrected the
227         text of the copying permission notice to say Lesser GPL instead
228         of GPL in warranty disclaimer paragraph.
229         * sysdeps/ieee754/dbl-64/atnat2.h: Likewise.
230         * sysdeps/ieee754/dbl-64/branred.h: Likewise.
231         * sysdeps/ieee754/dbl-64/dla.h: Likewise.
232         * sysdeps/ieee754/dbl-64/doasin.h: Likewise.
233         * sysdeps/ieee754/dbl-64/dosincos.h: Likewise.
234         * sysdeps/ieee754/dbl-64/mpa.h: Likewise.
235         * sysdeps/ieee754/dbl-64/mpa2.h: Likewise.
236         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
237         * sysdeps/ieee754/dbl-64/mpexp.h: Likewise.
238         * sysdeps/ieee754/dbl-64/mplog.h: Likewise.
239         * sysdeps/ieee754/dbl-64/mpsqrt.h: Likewise.
240         * sysdeps/ieee754/dbl-64/mydefs.h: Likewise.
241         * sysdeps/ieee754/dbl-64/sincos32.h: Likewise.
242         * sysdeps/ieee754/dbl-64/uasncs.h: Likewise.
243         * sysdeps/ieee754/dbl-64/uexp.h: Likewise.
244         * sysdeps/ieee754/dbl-64/ulog.h: Likewise.
245         * sysdeps/ieee754/dbl-64/upow.h: Likewise.
246         * sysdeps/ieee754/dbl-64/urem.h: Likewise.
247         * sysdeps/ieee754/dbl-64/uroot.h: Likewise.
248         * sysdeps/ieee754/dbl-64/usncs.h: Likewise.
249         * sysdeps/ieee754/dbl-64/utan.h: Likewise.
251         * sysdeps/ieee754/dbl-64/branred.c: Corrected the text of the copying
252         permission notice to say Lesser GPL instead of GPL in warranty
253         disclaimer paragraph.
254         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
255         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
256         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
257         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
258         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
259         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
260         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
261         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
262         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
263         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
264         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
265         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
266         * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
267         * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
268         * sysdeps/ieee754/dbl-64/mplog.c: Likewise.
269         * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
270         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
271         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
272         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
273         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
274         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
275         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
276         * sysdeps/ieee754/dbl-64/slowpow.c:  Likewise.
278 2002-08-20  Roland McGrath  <roland@redhat.com>
280         Fix ABI compatibility with libc compiled with old tools on powerpc.
281         Changes contributed by Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
282         and Jack Howarth <howarth@bromo.med.uc.edu>.
283         * sysdeps/powerpc/Makefile [$(have-protected) = yes]
284         (CPPFLAGS-divdi3.c, CPPFLAGS-libgcc-compat.S): New variables,
285         pass -DHAVE_DOT_HIDDEN for these files.
286         * sysdeps/powerpc/Versions (libc: GLIBC_2.0): Added __floatdidf,
287         __floatdisf.
288         * sysdeps/powerpc/divdi3.c: New file.
289         * sysdeps/powerpc/libgcc-compat.S: New file, replacement for ...
290         * sysdeps/powerpc/libgcc-compat.c: ... this, file removed.
292 2002-08-20  Jakub Jelinek  <jakub@redhat.com>
294         * locale/loadarchive.c (_nl_load_locale_from_archive): Handle
295         partially overlapping mappings.  Remove unneeded (char *) casts.
296         Never allow duplication of ranges in mapped areas.
298 2002-08-20  Roland McGrath  <roland@redhat.com>
300         * elf/Makefile ($(objpfx)ld.so): Separate commands in rule so errors
301         can be detected by make.  Reported by H.J. Lu <hjl@gnu.org>.
303 2002-08-20  Ulrich Drepper  <drepper@redhat.com>
305         * include/unistd.h: Don't hide _exit.
307         * elf/rtld.c (_dl_start): Pass extra argument 1 to TLS_INIT_TP.
308         (dl_main): Pass extra argument 0 to TLS_INIT_TP.
309         * sysdeps/generic/libc-tls.c (__libc_setup_tls): Pass extra
310         argument 1 to TLS_INIT_TP.
311         * sysdeps/generic/tls.h (TLS_INIT_TP): Describe new parameter.
313         * sysdeps/generic/dl-tls.c (allocate_dtv): Optimize a bit.
315         * elf/Versions [ld] (GLIBC_PRIVATE): Add _dl_get_tls_static_info.
316         * sysdeps/generic/dl-tls.c (_dl_allocate_tls_storage): Move dtv
317         memory allocation to...
318         (allocate_dtv): ...here.  New function.
319         (_dl_allocate_tls): Change to take parameter.  If parameter is non-NULL
320         call allocate_dtv instead of _dl_allocate_tls_storage.
321         (_dl_deallocate_tls): New parameter.  Deallocate TCB only if true.
322         (_dl_get_tls_static_info): New function.
323         * sysdeps/generic/ldsodefs.h: Adjust prototypes of _dl_allocate_tls
324         and _dl_deallocate_tls.  Add prototype for _dl_get_tls_static_info.
326 2002-08-19  Ulrich Drepper  <drepper@redhat.com>
328         * sysdeps/generic/dl-tls.c (_dl_allocate_tls_init): Return
329         immediately if result == NULL.
331 2002-08-16  Jakub Jelinek  <jakub@redhat.com>
333         * sysdeps/alpha/fpu/libm-test-ulps: Regenerate.
335 2002-08-18  Roland McGrath  <roland@frob.com>
337         * sysdeps/mach/hurd/mkdir.c (__mkdir): Use __directory_name_split
338         instead of __file_name_split.
339         * sysdeps/mach/hurd/unlink.c (__unlink): Likewise.
341         * sysdeps/mach/hurd/dl-sysdep.c
342         [HP_TIMING_AVAIL] (_dl_cpuclock_offset): New variable.
343         [HP_TIMING_AVAIL] (_dl_sysdep_start): Set it with HP_TIMING_NOW.
345 2002-08-16  Jakub Jelinek  <jakub@redhat.com>
347         * locale/loadarchive.c (_nl_load_locale_from_archive): Braino fix
348         in change before last: MAX -> MIN.
350 2002-08-15  Roland McGrath  <roland@redhat.com>
352         * libio/fileops.c (_IO_file_seekoff_mmap): Leave read pointers at EOF
353         if seek would go past it.
354         (mmap_remap_check): If file position is at or past EOF after check,
355         leave read pointers at EOF and don't seek.
357         * libio/tst-mmap-offend.c: New file.
358         * libio/Makefile (tests): Add it.
360         * locale/loadarchive.c (_nl_load_locale_from_archive): Store strdup of
361         the name as passed, rather than the name in the archive dictionary.
363 2002-08-15  Ulrich Drepper  <drepper@redhat.com>
365         * csu/Makefile: Define elide-routines.os not static-only-routines.
367         * include/sched.h (__clone): Add varargs at the end.
369         * elf/rtld.c (_dl_start): Allow TLS_INIT_TP to fail, and stop in that
370         case.
371         (TLS_INIT_HELPER): If defined, use it.
372         * sysdeps/generic/libc-tls.c (TLS_INIT_HELPER): Likewise.
374 2002-08-15  Roland McGrath  <roland@redhat.com>
376         * elf/dl-load.c (lose): Remove [!SHARED] conditional from null check
377         on L->l_prev; it can happen under rtld --verify too.
379         * locale/loadarchive.c (_nl_load_locale_from_archive): Don't read the
380         header separately, just map an initial window of 2MB from the file
381         and remap if that is not large enough to cover the whole header.
383 2002-08-15  Andreas Jaeger  <aj@suse.de>
385         * sysdeps/unix/sysv/linux/m68k/Versions: Add *xattr syscalls with
386         version 2.3.
387         * sysdeps/unix/sysv/linux/arm/Versions: Likewise.
388         * sysdeps/unix/sysv/linux/alpha/Versions: Likewise.
389         * sysdeps/unix/sysv/linux/ia64/Versions: Likewise.
390         * sysdeps/unix/sysv/linux/x86_64/Versions: Likewise.
391         * sysdeps/unix/sysv/linux/sparc/sparc64/Versions: Likewise.
392         * sysdeps/unix/sysv/linux/sparc/sparc32/Versions: Likewise.
393         * sysdeps/unix/sysv/linux/s390/s390-32/Versions: Likewise.
394         * sysdeps/unix/sysv/linux/powerpc/Versions: Likewise.
395         * sysdeps/unix/sysv/linux/mips/Versions: Likewise.
396         Patch by Andreas Gruenbacher <agruen@suse.de>.
398         * sysdeps/unix/sysv/linux/syscalls.list: Add *xattr syscalls.
400 2002-08-14  Roland McGrath  <roland@redhat.com>
402         * locale/locarchive.h (struct locale_category_data): Give this name to
403         the type of locale_data_t's elements.
404         * locale/programs/locarchive.c (cmpcategorysize): New static function.
405         (add_locale): Use that to sort the categories by size and put all
406         those that fit into two pages into the LC_ALL block, instead of
407         hard-coding it to do everything but LC_CTYPE and LC_COLLATE.
408         (show_archive_content): Detect categories inside LC_ALL block
409         directly, instead of hard-coding.
410         (oldlocrecentcmp): Compare just on file locations used.
412 2002-08-14  Jakub Jelinek  <jakub@redhat.com>
414         * locale/programs/locarchive.c (struct oldlocrecent): New.
415         (oldlocrecentcmp): New.
416         (enlarge_archive): Re-add locales in the order they were added
417         to the archive.
418         (add_locale): Put all the small locale files together, if the small
419         locale file block would occupy less pages if page size aligned, align
420         it.
421         (show_archive_content): Adjust for locale archives optimized for speed.
423 2002-08-14  Roland McGrath  <roland@frob.com>
425         * configure.in: Use "MISSING" as not-found value for MIG.
426         * sysdeps/mach/configure.in: Fatal if mig not found.
427         * configure, sysdeps/mach/configure: Regenerated.
429 2002-08-13  Jakub Jelinek  <jakub@redhat.com>
431         * locale/loadarchive.c (archfname): Add missing slash.
433         * sysdeps/generic/strtold.c (__strtold_internal): Add libc_hidden_def.
434         * wcsmbs/wcstold.c (__wcstold_internal): Add libc_hidden_def.
436 2002-08-12  Roland McGrath  <roland@redhat.com>
438         * include/sys/wait.h (__waitpid): Add libc_hidden_proto.
439         * sysdeps/unix/sysv/sco3.2.4/waitpid.S: Add libc_hidden_def.
440         * sysdeps/unix/sysv/sysv4/waitpid.c: Add libc_hidden_weak.
441         * sysdeps/unix/sysv/linux/waitpid.c: Likewise.
442         * sysdeps/unix/sysv/aix/waitpid.c: Likewise.
443         * sysdeps/unix/bsd/bsd4.4/waitpid.c: Likewise.
444         * sysdeps/generic/waitpid.c: Likewise.
446         * include/net/if.h: New file.  Use libc_hidden_proto
447         for if_nametoindex and if_indextoname.
448         * sysdeps/generic/if_index.c: Add libc_hidden_def.
449         * sysdeps/mach/hurd/if_index.c: Likewise.
450         * sysdeps/unix/sysv/linux/if_index.c: Likewise.
452         * include/grp.h (setgroups): Add libc_hidden_proto.
453         * sysdeps/generic/setgroups.c: Add libc_hidden_def.
454         * sysdeps/mach/hurd/setgroups.c: Likewise.
455         * sysdeps/unix/sysv/irix4/setgroups.c: Likewise.
456         * sysdeps/unix/sysv/linux/i386/setgroups.c: Likewise.
458 2002-08-13  Jakub Jelinek  <jakub@redhat.com>
460         * include/unistd.h (seteuid, setegid): Add libc_hidden_proto.
461         * sysdeps/generic/seteuid.c (seteuid): Add libc_hidden_def.
462         * sysdeps/generic/setegid.c (setegid): Likewise.
463         * sysdeps/mach/hurd/seteuid.c (seteuid): Likewise.
464         * sysdeps/mach/hurd/setegid.c (setegid): Likewise.
465         * sysdeps/unix/bsd/seteuid.c (seteuid): Likewise.
466         * sysdeps/unix/bsd/setegid.c (setegid): Likewise.
467         * sysdeps/unix/sysv/aix/seteuid.c (seteuid): Likewise.
468         * sysdeps/unix/sysv/aix/setegid.c (setegid): Likewise.
469         * sysdeps/unix/sysv/linux/i386/setegid.c (setegid): Likewise.
470         * sysdeps/unix/sysv/linux/sparc/sparc32/seteuid.c (seteuid): Likewise.
471         * sysdeps/unix/sysv/linux/sparc/sparc32/setegid.c (setegid): Likewise.
472         * sysdeps/unix/sysv/linux/seteuid.c (seteuid): Likewise.
473         * sysdeps/unix/sysv/linux/setegid.c (setegid): Likewise.
474         * sysdeps/unix/sysv/linux/i386/seteuid.c (seteuid): Likewise.
475         Remove fallback if __ASSUME_SETRESUID_SYSCALL.
477         * include/sys/stat.h (__fxstat_internal, __fxstat64_internal,
478         __lxstat_internal, __lxstat64_internal): Remove.
479         (__fxstat, __fxstat64, __lxstat, __lxstat64, __xstat, __xstat64):
480         Add hidden_proto.
481         * sysdeps/generic/fxstat.c (__fxstat): Add hidden_def.
482         Remove INTDEF where present, remove #undef at the beginning.
483         * sysdeps/generic/fxstat64.c (__fxstat64): Likewise.
484         * sysdeps/generic/lxstat.c (__lxstat): Likewise.
485         * sysdeps/generic/lxstat64.c (__lxstat64): Likewise.
486         * sysdeps/generic/xstat.c (__xstat): Likewise.
487         * sysdeps/generic/xstat64.c (__xstat64): Likewise.
488         * sysdeps/mach/hurd/dl-sysdep.c (__xstat64, __fxstat64): Likewise.
489         * sysdeps/mach/hurd/fxstat.c (__fxstat): Likewise.
490         * sysdeps/mach/hurd/fxstat64.c (__fxstat64): Likewise.
491         * sysdeps/mach/hurd/lxstat.c (__lxstat): Likewise.
492         * sysdeps/mach/hurd/lxstat64.c (__lxstat64): Likewise.
493         * sysdeps/mach/hurd/xstat.c (__xstat): Likewise.
494         * sysdeps/mach/hurd/xstat64.c (__xstat64): Likewise.
495         * sysdeps/unix/fxstat.c (__fxstat): Likewise.
496         * sysdeps/unix/common/lxstat.c (__lxstat): Likewise.
497         * sysdeps/unix/sysv/aix/fxstat.c (__fxstat): Likewise.
498         * sysdeps/unix/sysv/aix/fxstat64.c (__fxstat64): Likewise.
499         * sysdeps/unix/sysv/aix/lxstat.c (__lxstat): Likewise.
500         * sysdeps/unix/sysv/aix/lxstat64.c (__lxstat64): Likewise.
501         * sysdeps/unix/sysv/aix/xstat.c (__xstat): Likewise.
502         * sysdeps/unix/sysv/aix/xstat64.c (__xstat64): Likewise.
503         * sysdeps/unix/sysv/linux/ia64/fxstat.c (__fxstat): Likewise.
504         * sysdeps/unix/sysv/linux/ia64/lxstat.c (__lxstat): Likewise.
505         * sysdeps/unix/sysv/linux/ia64/xstat.c (__xstat): Likewise.
506         * sysdeps/unix/sysv/linux/s390/s390-64/fxstat.c (__fxstat): Likewise.
507         * sysdeps/unix/sysv/linux/s390/s390-64/lxstat.c (__lxstat): Likewise.
508         * sysdeps/unix/sysv/linux/s390/s390-64/xstat.c (__xstat): Likewise.
509         * sysdeps/unix/sysv/linux/i386/fxstat.c (__fxstat): Likewise.
510         * sysdeps/unix/sysv/linux/i386/lxstat.c (__lxstat): Likewise.
511         * sysdeps/unix/sysv/linux/i386/xstat.c (__xstat): Likewise.
512         * sysdeps/unix/sysv/linux/xstat.c (__xstat): Likewise.
513         * sysdeps/unix/sysv/linux/xstat64.c (__xstat64): Likewise.
514         * sysdeps/unix/sysv/linux/fxstat.c (__fxstat): Likewise.
515         * sysdeps/unix/sysv/linux/fxstat64.c (__fxstat64): Likewise.
516         * sysdeps/unix/sysv/linux/lxstat.c (__lxstat): Likewise.
517         * sysdeps/unix/sysv/linux/lxstat64.c (__lxstat64): Likewise.
518         * sysdeps/unix/xstat.c (__xstat): Likewise.
520         * include/sys/statvfs.h (statvfs, fstatvfs): Add libc_hidden_proto.
521         * sysdeps/generic/statvfs.c (statvfs): Add libc_hidden_def.
522         * sysdeps/generic/fstatvfs.c (fstatvfs): Likewise.
523         * sysdeps/mach/hurd/statvfs.c (statvfs): Likewise.
524         * sysdeps/mach/hurd/fstatvfs.c (fstatvfs): Likewise.
525         * sysdeps/unix/sysv/linux/statvfs.c (statvfs): Likewise.
526         * sysdeps/unix/sysv/linux/fstatvfs.c (fstatvfs): Likewise.
528         * include/unistd.h (tcgetpgrp): Add libc_hidden_proto.
529         * include/termios.h (tcsetattr, cfsetispeed, cfsetospeed): Likewise.
530         * sysdeps/generic/tcgetpgrp.c (tcgetpgrp): Add libc_hidden_def.
531         * sysdeps/generic/tcsetattr.c (tcsetattr): Likewise.
532         * sysdeps/generic/speed.c (cfsetispeed, cfsetospeed): Likewise.
533         * sysdeps/unix/bsd/bsd4.4/tcsetattr.c (tcgetpgrp): Likewise.
534         * sysdeps/unix/bsd/sun/sunos4/tcsetattr.c (tcsetattr): Likewise.
535         * sysdeps/unix/bsd/sun/sunos4/speed.c (cfsetispeed, cfsetospeed):
536         Likewise.
537         * sysdeps/unix/bsd/tcgetpgrp.c (tcgetpgrp): Likewise.
538         * sysdeps/unix/bsd/tcsetattr.c (tcsetattr): Likewise.
539         * sysdeps/unix/sysv/aix/tcsetattr.c (tcsetattr): Likewise.
540         * sysdeps/unix/sysv/aix/speed.c (cfsetispeed, cfsetospeed): Likewise.
541         * sysdeps/unix/sysv/linux/tcsetattr.c (tcsetattr): Likewise.
542         * sysdeps/unix/sysv/linux/speed.c (cfsetispeed, cfsetospeed): Likewise.
543         * sysdeps/unix/sysv/tcgetpgrp.c (tcgetpgrp): Likewise.
544         * sysdeps/unix/sysv/tcsetattr.c (tcsetattr): Likewise.
546         * include/string.h (strcoll): Add libc_hidden_proto.
547         * string/strcoll.c (strcoll): Add libc_hidden_def.
549         * misc/err.c (vwarn): Fix pasto in libc_hidden_def.
551 2002-08-11  Philip Blundell  <philb@gnu.org>
553         * sysdeps/arm/Makefile: New file.
555 2002-08-08  Jakub Jelinek  <jakub@redhat.com>
557         * posix/regcomp.c (parse_reg_exp): If '|' is immediately followed
558         by another '|', end of regex or enclosing ')', clear branch.
559         * posix/bug-regex9.c: New test.
560         * posix/Makefile (tests): Add bug-regex9.
562 2002-08-12  Roland McGrath  <roland@redhat.com>
564         * sysdeps/generic/dl-tls.c (_dl_allocate_tls_init): Fix inner loop
565         start count condition, use TOTAL instead of variable that was never
566         set.  Fix outer loop termination condition to TOTAL >= after update.
568         * sysdeps/generic/libc-tls.c (__libc_setup_tls): Initialize
569         dl_tls_static_align and dl_tls_static_nelem.
571 2002-08-11  Roland McGrath  <roland@redhat.com>
573         * elf/tst-tlsmod4.c (in_dso): Insert a random library call before use
574         of the TLS macros, otherwise the compiler might not have initialized
575         the PIC register yet when we use the PLT via asm.
576         * elf/tst-tlsmod3.c (in_dso2): Likewise.
577         * elf/tst-tlsmod2.c (in_dso): Likewise.
579         * sunrpc/svc_authux.c (_svcauth_unix): Remove spurious printf (ugh!).
581         * sysdeps/i386/bits/byteswap.h (__bswap_16, __bswap_32, __bswap_64):
582         Evaluate argument exactly once.  Remove __volatile__ from asm's.
584         * include/unistd.h: Use libc_hidden_proto for getdomainname
585         and getlogin_r.
586         * sysdeps/generic/getdomain.c: Add libc_hidden_def.
587         * sysdeps/mach/hurd/getdomain.c: Likewise.
588         * sysdeps/unix/getlogin_r.c: Likewise.
589         * sysdeps/mach/hurd/getlogin_r.c: Likewise.
590         * sysdeps/generic/getlogin_r.c: Likewise.
592         * include/rpc/auth_des.h: Use libc_hidden_proto for rtime.
593         * sunrpc/rtime.c: Add libc_hidden_def.
595         * include/string.h: Use libc_hidden_proto for basename.
596         * string/basename.c [_LIBC]: Add libc_hidden_def.
598         * sysdeps/unix/sysv/linux/opensock.c (__opensock): socket -> __socket.
600         * locale/loadarchive.c: munmap -> __munmap throughout.
602         * include/netdb.h: Use libc_hidden_proto for gai_strerror.
603         * sysdeps/posix/gai_strerror.c: Add libc_hidden_def.
604         * sysdeps/generic/gai_strerror.c: Likewise.
606         * include/sys/errno.h: New file.
608         * include/signal.h: No libc_hidden_proto for raise,
609         __libc_current_sigrtmin, __libc_current_sigrtmax.
610         These need to be overridden by linuxthreads.
611         * sysdeps/posix/raise.c: Reverted.
612         * sysdeps/generic/raise.c: Reverted.
613         * signal/allocrtsig.c: Reverted.
615         * locale/loadarchive.c (LOCALEDIR): Remove debugging defn.  Oops.
617 2002-08-10  Roland McGrath  <roland@redhat.com>
619         * locale/loadarchive.c (_nl_archive_subfreeres): New function.
620         * locale/localeinfo.h: Declare it.
621         * locale/setlocale.c (free_mem): Don't call _nl_unload_locale on the
622         current locale if it's not in the file list.
623         Call _nl_archive_subfreeres.
625 2002-08-10  Andreas Jaeger  <aj@suse.de>
627         * sysdeps/i386/strchr.S: Add comment.
629 2002-08-10  Roland McGrath  <roland@redhat.com>
631         * include/wchar.h (putwc): Use libc_hidden_proto.
632         * include/stdio.h (dprintf, fprintf, vfprintf, sprintf,
633         sscanf, fwrite, perror, remove, rewind, open_memstream): Likewise.
634         * stdio-common/dprintf.c: Add libc_hidden_def.
635         * stdio-common/fprintf.c: Likewise.
636         * stdio-common/sprintf.c: Likewise.
637         * stdio-common/sscanf.c: Likewise.
638         * libio/iofwrite.c: Likewise.
639         * libio/memstream.c: Likewise.
640         * libio/putwc.c: Likewise.
641         * stdio-common/perror.c: Likewise.
642         * sysdeps/posix/remove.c: Likewise.
643         * sysdeps/generic/remove.c: Likewise.
644         * libio/rewind.c: Likewise.  Use <stdio.h> instead of "stdio.h".
645         * stdio-common/vfprintf.c: Add libc_hidden_def.  Include <stdio.h>.
647 2002-08-09  Jakub Jelinek  <jakub@redhat.com>
649         * include/wctype.h (iswalpha, iswdigit, iswlower, iswspace, iswxdigit,
650         towlower, towupper): Add prototypes here too.  Add libc_hidden_proto.
651         * wctype/wcfuncs.c (iswalpha, iswdigit, iswlower, iswspace, iswxdigit,
652         towlower, towupper): Add libc_hidden_weak.
654         * include/bits/dlfcn.h: New file.
655         * elf/dl-profstub.c (_dl_mcount_wrapper_check): Add libc_hidden_def.
657         * include/grp.h (_nss_files_parse_grent): Add libc_hidden_proto.
658         * include/netinet/ether.h (_nss_files_parse_etherent): Likewise.
659         * include/rpc/netdb.h (_nss_files_parse_rpcent): Likewise.
660         * include/pwd.h (_nss_files_parse_pwent): Likewise.
661         * include/shadow.h (_nss_files_parse_spent): Likewise.
662         * include/netdb.h (_nss_files_parse_protoent,
663         _nss_files_parse_servent, _nss_files_parse_netent): Likewise.
664         * nss/nss_files/files-parse.c (nss_files_parse_hidden_def): Define.
665         (LINE_PARSER): Use it.
666         * nss/nsswitch.h (__nss_hostname_digits_dots): Add libc_hidden_proto.
667         * nss/digits_dots.c (__nss_hostname_digits_dots): Add libc_hidden_def.
669         * libio/oldiopopen.c: Move #if SHLIB_COMPAT after _IO_HAVE_SYS_WAIT
670         #endif.
672         * manual/debug.texi (%MENU%): Remove trailing dot.
673         Reported by <hayastan132@hotmail.com>.
675         * sysdeps/unix/sysv/linux/ia64/syscalls.list (llseek): Add lseek
676         aliases.
677         (lseek): Dummy.
678         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list (llseek, lseek):
679         Likewise.
681 2002-08-09  Roland McGrath  <roland@redhat.com>
683         * locale/loadarchive.c (_nl_load_locale_from_archive): Parse locale
684         name to find codeset name (if any) and normalize it.  If the
685         normalized name differs, look up only that in the archive.
686         * locale/programs/locarchive.c (add_locale_to_archive): If the name
687         contains a codeset, normalize the codeset store only the normalized
688         name in the archive.  If not, add an alias containing the locale's
689         normalized codeset name.  Apply codeset name normalization when
690         matching entries in the alias file.
692         * locale/programs/locarchive.c (delete_locales_from_archive): Don't
693         decrement HEAD->namehash_used here.
694         (add_locale): Only need to insert name string when name_offset != 0.
696         * locale/programs/localedef.c (options): Add -A/--alias-file.
697         (alias_file): New variable.
698         (parse_opt): Grok -A, set that.
699         * locale/programs/localedef.h: Declare it.
701         * locale/locarchive.h (struct locrecent): Add `refs' member.
702         * locale/programs/locarchive.c (insert_name): New function, broken out
703         of ...
704         (add_locale_to_archive): ... here.  Call that.
705         (add_alias): New function.
706         (add_locale): New static function, add_locale_to_archive renamed.
707         (add_locale_to_archive): Call that and use add_alias to add an alias
708         for the name with codeset if the given name lacks it.
709         (enlarge_archive): Call add_locale instead of add_locale_to_archive.
711         * locale/Makefile (routines): Add loadarchive.
712         * locale/loadarchive.c: New file, started from code by Ulrich Drepper.
713         (_nl_load_locale_from_archive): New function.
714         * locale/localeinfo.h: Declare it.
715         * locale/findlocale.c (_nl_find_locale): If using default locale path,
716         try _nl_load_locale_from_archive first.
718         * locale/loadlocale.c (_nl_intern_locale_data): New function,
719         broken out of _nl_load_locale.
720         (_nl_load_locale): Call that.
721         * locale/localeinfo.h: Declare it.
722         (struct locale_data): Replace member `mmaped' with `alloc', an enum.
723         (struct locale_data): Remove unused member `options'.
724         * locale/findlocale.c (_nl_remove_locale): Update uses.
725         * locale/loadlocale.c (_nl_load_locale, _nl_unload_locale): Likewise.
726         * locale/C-collate.c: Update initializer.
727         * locale/C-identification.c: Likewise.
728         * locale/C-measurement.c: Likewise.
729         * locale/C-telephone.c: Likewise.
730         * locale/C-address.c: Likewise.
731         * locale/C-name.c: Likewise.
732         * locale/C-paper.c: Likewise.
733         * locale/C-time.c: Likewise.
734         * locale/C-numeric.c: Likewise.
735         * locale/C-monetary.c: Likewise.
736         * locale/C-messages.c : Likewise.
737         * locale/C-ctype.c: Likewise.
739         * locale/hashval.h [! LONGBITS]: Include <limits.h> here and
740         use CHAR_BIT instead of BITSPERBYTE.
742         * locale/localeinfo.h (_nl_find_locale, _nl_load_locale,
743         _nl_unload_locale): Add `internal_function attribute_hidden' to decls.
744         * locale/findlocale.c (_nl_find_locale): Add internal_function to defn.
745         (_nl_remove_locale): Likewise.
746         * locale/loadlocale.c (_nl_load_locale, _nl_unload_locale): Likewise.
748         * locale/findlocale.c (_nl_default_locale_path): New variable.
749         (_nl_find_locale): If LOCALE_PATH is null, default to that.
750         * locale/localeinfo.h: Declare it.
751         * locale/setlocale.c (setlocale): Use _nl_default_locale_path
752         in place of LOCALEDIR.  If no LOCPATH, pass null to _nl_find_locale.
753         * locale/newlocale.c (__newlocale): Likewise.
755         * misc/err.c (vwarnx, vwarn): Fix typos in libc_hidden_def uses.
756         * inet/rexec.c (rexec_af): Add libc_hidden_def.
757         * sysdeps/generic/morecore.c: Likewise.
758         * signal/allocrtsig.c (__libc_current_sigrtmin): Likewise.
759         (__libc_current_sigrtmax): Likewise.
761 2002-08-08  Roland McGrath  <roland@redhat.com>
763         * locale/loadlocale.c (_nl_load_locale): Don't use MAP_INHERIT.
764         * catgets/open_catalog.c (__open_catalog): Likewise.
766         * locale/programs/locarchive.c (INITIAL_NUM_NAMES): Renamed
767         from typo INITIAL_NUM_NANES.
768         (create_archive): Update use.
770 2002-08-08  Ulrich Drepper  <drepper@redhat.com>
772         * sysdeps/unix/sysv/linux/sigwait.c: New file.
774 2002-08-08  Roland McGrath  <roland@frob.com>
776         * resolv/netdb.h: Don't declare h_errno as a plain global any more.
778 2002-08-08  Jakub Jelinek  <jakub@redhat.com>
780         * sysdeps/wordsize-64/wcstol_l.c (wcstoll_l): Define to something
781         else and undefine after including wcstol_l.c.
782         * sysdeps/wordsize-64/wcstoul_l.c (wcstoull_l): Similarly.
784 2002-08-08  Ulrich Drepper  <drepper@redhat.com>
786         * gmon/gmon.c (write_gmon): Use O_NOFOLLOW in open calls if available.
788 2002-08-08  Alexandre Oliva  <aoliva@redhat.com>
790         * configure.in: Make the test for broken_alias_attribute stricter.
792 2002-05-24  Robert Love  <rml@tech9.net>
794         * posix/Makefile (routines): Add sched_getaffinity and
795         sched_setaffinity.
796         * posix/sched.h: Add declarations for sched_getaffinity and
797         sched_setaffinity.
798         * sysdeps/generic/sched_getaffinity.c: New file.
799         * sysdeps/generic/sched_setaffinity.c: New file.
800         * sysdeps/unix/sysv/linux/syscalls.list: Add sched_getaffinity and
801         sched_setaffinity.
803 2002-08-06  Andreas Schwab  <schwab@suse.de>
805         * sysdeps/unix/utime.c: If TIMES is NULL pass it through to utimes.
807 2002-08-07  Ulrich Drepper  <drepper@redhat.com>
809         * elf/dl-load.c (_dl_map_object_from_fd): Add missing \n in error
810         message.
812         * stdlib/isomac.c (get_null_defines): Treat NOT_IN_libc special.
813         It is known to be defined.
815         * include/string.h: Define index and rindex only if _ISOMAC is not
816         defined.
818         * elf/rtld.c: Include <errno.h>.
819         * sysdeps/generic/libc-tls.c: Likewise.
821 2002-08-07  Roland McGrath  <roland@redhat.com>
823         * resolv/res_debug.c (latlon2ul): Add const to argument type, and use
824         it internally.
825         (precsize_aton): Likewise.
827         * inet/getnetgrent_r.c (endnetgrent, __getnetgrent_r): Actually call
828         the static symbols added in the last change (doofus is me).
830         * locale/newlocale.c (__newlocale): Use a bit mask instead of a second
831         loop to notice missing categories in a composite name.
833         * locale/locale.h (LC_CTYPE_MASK, LC_NUMERIC_MASK, LC_TIME_MASK,
834         LC_COLLATE_MASK, LC_MONETARY_MASK, LC_MESSAGES_MASK, LC_ALL_MASK,
835         LC_PAPER_MASK, LC_NAME_MASK, LC_ADDRESS_MASK, LC_TELEPHONE_MASK,
836         LC_MEASUREMENT_MASK, LC_IDENTIFICATION_MASK, LC_ALL_MASK): New macros.
838 2002-08-07  Ulrich Drepper  <drepper@redhat.com>
840         * malloc/tst-calloc.c: Add tests for one or both parameters being zero.
842 2002-08-07  Roland McGrath  <roland@redhat.com>
844         * sysdeps/i386/dl-machine.h (elf_machine_rel): Add to, don't clobber,
845         unrelocated initial value for DTPOFF32 and TPOFF32 relocs.
846         Reported by Jakub Jelinek  <jakub@redhat.com>.
848 2002-08-07  Jakub Jelinek  <jakub@redhat.com>
850         * malloc/malloc.c (public_cALLOc): Check ELEM_SIZE != 0 before
851         division.
853 2002-08-06  Roland McGrath  <roland@redhat.com>
855         * include/getopt.h: Put private decls inside [_GETOPT_H].
856         Use libc_hidden_proto for getopt_long, getopt_long_only.
857         * posix/getopt1.c [_LIBC]: Include <getopt.h> instead of "getopt.h".
858         Add libc_hidden_def.
860         * sysdeps/generic/unwind-dw2-fde-glibc.c [_LIBC] (dl_iterate_phdr):
861         Define as a macro for __dl_iterate_phdr.
863         * inet/getnetgrent_r.c (internal_setnetgrent): Renamed from __ name,
864         made static.  Add __ name as a strong alias.
865         (internal_endnetgrent): Likewise.
866         (internal_getnetgrent_r): Likewise.
868         * locale/Versions (libc: GLIBC_2.3): Add all the *_l functions
869         with no __ prefix.
870         * locale/langinfo.h [__USE_GNU]: Declare nl_langinfo_l.
871         * ctype/ctype.h [__USE_GNU]: Add declarations and macros for
872         all *_l functions with no __ prefix.
873         * wctype/wcfuncs_l.c: Define weak aliases without __ for all fns.
874         * ctype/ctype_l.c: Likewise.
875         * locale/nl_langinfo.c: Likewise.
876         * string/string.h [__USE_GNU]: Add decls for all *_l fns with no __.
877         * stdlib/stdlib.h [__USE_GNU]: Likewise.
878         * wcsmbs/wchar.h [__USE_GNU]: Likewise.
879         * wctype/wctype.h [__USE_GNU]: Likewise.
880         * string/strcoll_l.c (strcoll_l): Define as weak alias.
881         * string/strxfrm_l.c (strxfrm_l): Define as weak alias.
882         * sysdeps/generic/strcasecmp_l.c (strcasecmp_l): Define as weak alias.
883         * sysdeps/generic/strncase_l.c (strncasecmp_l): Define as weak alias.
884         * stdlib/strtod_l.c (strtod_l): Define as weak alias.
885         * stdlib/strtof_l.c (strtof_l): Define as weak alias.
886         * stdlib/strtold_l.c (strtold_l): Define as weak alias.
887         * wcsmbs/wcscasecmp_l.c (wcscasecmp_l): Define as weak alias.
888         (__wcscasecmp_l): Add libc_hidden_def.
889         * wcsmbs/wcsncase_l.c (wcsncasecmp_l): Define as weak alias.
890         (__wcsncasecmp_l): Add libc_hidden_def.
891         * wcsmbs/wcstof_l.c (wcstof_l): Define as weak alias.
892         * wcsmbs/wcstod_l.c (wcstod_l): Define as weak alias.
893         * wcsmbs/wcstold_l.c (wcstold_l): Define as weak alias.
894         * wcsmbs/wcscoll_l.c (wcscoll_l): Define as weak alias.
895         * wcsmbs/wcsxfrm_l.c (wcsxfrm_l): Define as weak alias.
896         * sysdeps/generic/wcstol_l.c (wcstol_l): Define as weak alias.
897         * sysdeps/generic/wcstoll_l.c (wcstoll_l): Define as weak alias.
898         * sysdeps/generic/wcstoul_l.c (wcstoul_l): Define as weak alias.
899         * sysdeps/generic/wcstoull_l.c (wcstoull_l): Define as weak alias.
900         * sysdeps/wordsize-64/wcstol_l.c (wcstoll_l): Define as weak alias.
901         * sysdeps/wordsize-64/wcstoul_l.c (wcstoull_l): Define as weak alias.
902         * wctype/wctrans_l.c (wctrans_l) Define as weak alias.
903         * wctype/towctrans_l.c (towctrans_l) Define as weak alias.
904         * wctype/wctype_l.c (wctype_l) Define as weak alias.
906 2002-08-05  Roland McGrath  <roland@redhat.com>
908         * include/rpc/auth.h: Use libc_hidden_proto for getnetname,
909         netname2user, host2netname, user2netname, key_gendes.
910         * sunrpc/netname.c: Add libc_hidden_def.
911         * sunrpc/key_call.c: Likewise.
913         * include/netdb.h: Use libc_hidden_proto for getaddrinfo, getnameinfo,
914         freeaddrinfo.
915         * inet/getnameinfo.c: Add libc_hidden_def.
916         * sysdeps/generic/getaddrinfo.c: Likewise.
917         * sysdeps/posix/getaddrinfo.c: Likewise.
919         * include/wchar.h: Use libc_hidden_proto for wmemchr, wmemset.
920         * wcsmbs/wmemchr.c: Add libc_hidden_def.
921         * wcsmbs/wmemset.c: Add libc_hidden_def.
923         * include/string.h: Move libc_hidden_proto's inside #ifndef _STRING_H.
924         (index, rindex): Define as macros for strchr, strrchr.
926         * string/envz.c (envz_strip): index -> strchr
928         * include/rpc/rpc_msg.h: Use libc_hidden_proto for _seterr_reply.
929         * sunrpc/rpc_prot.c: Add libc_hidden_def.
931         * include/wchar.h: Use libc_hidden_proto for mbrtowc.
932         * wcsmbs/mbrtowc.c: Add libc_hidden_weak.
934         * include/stdlib.h: Use libc_hidden_proto for wctomb.
935         * stdlib/wctomb.c: Add libc_hidden_def.
937         * include/netdb.h: Use libc_hidden_proto for innetgr, rcmd_af,
938         rexec_af, rresvport_af, ruserok_af, iruserok_af, ruserpass, hstrerror.
939         * resolv/herror.c: Likewise.
940         * inet/rcmd.c: Add libc_hidden_def.
941         * inet/ruserpass.c: Likewise.
942         * inet/getnetgrent_r.c: Likewise.
944         * include/rpc/svc.h: Use libc_hidden_proto for svc_register,
945         svc_unregister, remove *_internal decls.  Use libc_hidden_proto
946         for svcerr_auth, svcerr_noprog, svcerr_progvers.
947         * sunrpc/svc.c (svc_register, svc_unregister): Change INTDEF to
948         libc_hidden_def.
949         (svcerr_auth, svcerr_noprog, svcerr_progvers): Add libc_hidden_def.
950         * sunrpc/svc_simple.c (registerrpc): Nix INTUSE for svc_register.
952         * sysdeps/posix/system.c (do_system): New function, guts broken out of
953         __libc_system.
954         (__libc_system): Call it, putting just the line == NULL test here.
956         * include/libc-symbols.h (__hidden_proto): Add extern keywords so
957         variables work right.
959         * elf/dl-open.c (dl_open_worker): Use _ macro instead of gettext.
960         * elf/dl-close.c (_dl_close): Likewise.
962         * include/netinet/in.h: Use libc_hidden_proto for bindresvport,
963         in6addr_any, in6addr_loopback.  Remove decls for
964         bindresvport_internal, in6addr_any_internal, in6addr_loopback_internal.
965         * sunrpc/svc_udp.c (svcudp_bufcreate): Nix INTUSE for bindresvport.
966         * sunrpc/svc_tcp.c (svctcp_create): Likewise.
967         * sunrpc/clnt_udp.c (clntudp_bufcreate): Likewise.
968         * sunrpc/bindrsvprt.c: Change INTDEF to libc_hidden_def.
969         * inet/in6_addr.c: Change INTVARDEF to libc_hidden_def.
970         * sysdeps/posix/getaddrinfo.c (gaih_inet): Nix INTUSE for
971         in6addr_loopback.
972         * inet/gethstbyad_r.c (PREPROCESS): Nix INTUSE for in6addr_any.
974         * include/netinet/ether.h: Use libc_hidden_proto for ether_ntoa_r,
975         ether_aton_r.
976         * inet/ether_aton_r.c: Add libc_hidden_def.
977         * inet/ether_ntoa_r.c: Likewise.
979         * include/rpc/svc.h: Use libc_hidden_proto for xprt_register,
980         xprt_unregister.
981         * sunrpc/svc.c: Add libc_hidden_def.
982         * include/rpc/pmap_clnt.h: Use libc_hidden_proto for pmap_getport,
983         pmap_set, pmap_unset.
984         * sunrpc/pmap_clnt.c: Add libc_hidden_def.
985         * sunrpc/pm_getport.c: Likewise.
986         * include/rpc/auth_des.h: Use libc_hidden_proto for getpublickey.
987         * sunrpc/publickey.c: Add libc_hidden_def.
989 2002-08-05  Ulrich Drepper  <drepper@redhat.com>
991         * elf/rtld.c (_dl_start): Don't use memset.  Use same tricks as for
992         the other memset call in this function.
994         * sysdeps/generic/dl-tls.c (_dl_allocate_tls_init): Store dtv pointer
995         at correct index.  Clear BSS region now that memalign is used.
997 2002-08-05  Roland McGrath  <roland@redhat.com>
999         * include/sys/utsname.h: Use libc_hidden_proto for uname, __uname.
1000         * sysdeps/generic/uname.c: Add libc_hidden_def.
1001         * sysdeps/mach/hurd/uname.c: Likewise.
1003 2002-08-05  Jakub Jelinek  <jakub@redhat.com>
1005         * include/wchar.h (wcrtomb, wcscmp, wcsftime, wcsspn, wcschr, wcscoll,
1006         wcspbrk): Add libc_hidden_proto.
1007         * time/strftime.c (my_strftime): Add libc_hidden_def.
1008         (strftime): Remove libc_hidden_def.
1009         * wcsmbs/wcschr.c (wcschr): Add libc_hidden_def.
1010         * wcsmbs/wcspbrk.c (wcspbrk): Likewise.
1011         * wcsmbs/wcsspn.c (wcsspn): Likewise.
1012         * wcsmbs/wcscmp.c (wcscmp): Likewise.
1013         * wcsmbs/wcrtomb.c (wcrtomb): Add libc_hidden_weak.
1014         * wcsmbs/wcscoll.c (wcscoll): Likewise.
1016         * include/rpc/rpc.h (__rpc_thread_svc_max_pollfd,
1017         __rpc_thread_svc_pollfd, __rpc_thread_svc_fdset,
1018         __rpc_thread_createerr): Add libc_hidden_proto.
1019         * sunrpc/rpc_thread.c (__rpc_thread_svc_max_pollfd,
1020         __rpc_thread_svc_pollfd, __rpc_thread_svc_fdset,
1021         __rpc_thread_createerr): Add libc_hidden_def.
1023         * include/rpc/clnt.h (clnt_sperrno, clnt_spcreateerror,
1024         clnt_perror, clnt_sperror, _rpc_dtablesize): Add libc_hidden_proto.
1025         * sunrpc/clnt_perr.c (clnt_sperrno, clnt_spcreateerror,
1026         clnt_perror, clnt_sperror): Add libc_hidden_def.
1027         * sunrpc/rpc_dtable.c (_rpc_dtablesize): Likewise.
1029         * include/rpc/des_crypt.h (des_setparity, ecb_crypt, cbc_crypt): Add
1030         libc_hidden_proto.
1031         * sunrpc/des_crypt.c (ecb_crypt, cbc_crypt): Add libc_hidden_proto.
1032         * sunrpc/des_soft.c (des_setparity): Likewise.
1034         * include/rpc/auth.h (key_encryptsession_pk, key_decryptsession_pk):
1035         Add libc_hidden_proto.
1036         * sunrpc/key_call.c (key_encryptsession_pk, key_decryptsession_pk):
1037         Add libc_hidden_def.
1039 2002-08-05  Roland McGrath  <roland@redhat.com>
1041         * sysdeps/generic/ldsodefs.h (struct rtld_global): Replace member
1042         `bool _dl_initial_dtv_malloced' with `void *_dl_initial_dtv'.
1043         * elf/rtld.c (dl_main): Set it to the new dtv for the main thread.
1044         * sysdeps/generic/dl-tls.c (__tls_get_addr): When reallocating the
1045         dtv, check if it matches _dl_initial_dtv; if so, malloc and copy the
1046         old data, abandoning the original memory allocated by rtld at startup,
1047         instead of calling realloc normally.
1049 2002-08-05  Ulrich Drepper  <drepper@redhat.com>
1051         * po/fr.po: Update from translation team.
1053 2002-08-04  Roland McGrath  <roland@redhat.com>
1055         * sysdeps/unix/make-syscalls.sh: If the syscall name field is -
1056         then generate a dummy module under the given name, obeying the
1057         normal rules for the "caller" field.
1059         * sysdeps/generic/libc-tls.c (__libc_setup_tls): Make the phdr loop
1060         actually iterate over the elements.  Fix typo p_type -> p_vaddr.
1062         * include/pthread.h: Don't declare __pthread_initialize_minimal as
1063         weak here; we declare it weak or strong in the one place we use it.
1064         * sysdeps/generic/libc-start.c: ... which is here.
1065         Don't make the decl weak if [USE_TLS], since static programs need TLS
1066         setup even when single-threaded.
1068         * stdlib/isomac.c (fmt): Add -DNOT_IN_libc to the compiler command.
1070         * elf/Makefile (test-srcs): Add $(modules-names) to it.
1071         (CFLAGS-vismod2.c, CFLAGS-failobj.c, CFLAGS-constload2.c,
1072         CFLAGS-reldepmod3.c, CFLAGS-reldepmod4.c, CFLAGS-ltglobmod2.c): Remove
1073         all these variables.
1075 2002-08-04  Ulrich Drepper  <drepper@redhat.com>
1077         * include/stdio.h: Don't define macro magic to redirect function
1078         calls if _ISOMAC is defined.
1080         * sysdeps/i386/fpu/libm-test-ulps: Add epsilons for inlined
1081         ldouble asin tests.
1083 2002-08-04  Roland McGrath  <roland@redhat.com>
1085         * stdlib/lrand48_r.c: Add libc_hidden_def.
1087         * sysdeps/generic/dl-tls.c (_dl_allocate_tls_storage): Allocate the
1088         TCB with __libc_memalign instead of mmap.
1089         (_dl_deallocate_tls): Free it with free instead of munmap.
1091         * Makerules (cpp-srcs-left): When setting this to run
1092         cppflags-iterator.mk, must append .c to $(tests) and $(xtests)
1093         words.  Combine the two loops into one on the concatenated list,
1094         including those as well as $(test-srcs).
1096         * elf/dl-minimal.c (__libc_memalign): Guts of malloc moved here,
1097         since we align here with optimally minimal waste anyway.
1098         (malloc): Just call that.
1100         * sysdeps/generic/libc-tls.c (__libc_setup_tls): Set l_tls_offset to
1101         the right variable.
1103         * elf/dl-load.c (_dl_map_object_from_fd): Use p_vaddr, not p_offset,
1104         to compute memory location for l_tls_initimage.
1105         * elf/rtld.c (_dl_start): Likewise.
1106         * sysdeps/generic/libc-tls.c (__libc_setup_tls): Likewise.
1108         * libio/oldiopopen.c: Move #include's before #if SHLIB_COMPAT,
1109         because the .d file is generated in the non-shared case and
1110         so fails to catch them otherwise.
1112         * sysdeps/generic/dl-tls.c (_dl_allocate_tls_storage): New function,
1113         split out of _dl_allocate_tls.
1114         (_dl_allocate_tls_init): Likewise.
1115         (_dl_allocate_tls): Call those.
1116         * sysdeps/generic/ldsodefs.h: Declare them with attribute_hidden.
1117         * elf/rtld.c (dl_main): Call them separately instead of calling
1118         _dl_allocate_tls.  Delay _dl_allocate_tls_init until after relocation
1119         is finished, so that the initializer data has been relocated before we
1120         copy it into the main thread's TLS block.
1122         * sysdeps/generic/dl-tls.c (_dl_allocate_tls): Fix off-by-one error in
1123         loop conditions, prevented the last used module from being initialized.
1125 2002-08-04  Jakub Jelinek  <jakub@redhat.com>
1127         * sysdeps/generic/glob.c (glob, globfree): Only use libc_hidden_def
1128         if glob resp. globfree are not macros.
1129         * sysdeps/gnu/glob64.c (globfree64): Add libc_hidden_def.
1130         * sysdeps/unix/sysv/linux/alpha/glob.c (glob, globfree, globfree64):
1131         Add libc_hidden_ver.
1132         * sysdeps/unix/sysv/linux/i386/glob64.c (globfree64): Add
1133         libc_hidden_def.
1134         * sysdeps/wordsize-64/glob.c (globfree64): Use libc_hidden_ver
1135         instead of libc_hidden_weak.
1136         * sysdeps/wordsize-64/strtol.c (__strtoll_internal): Use
1137         libc_hidden_ver instead of libc_hidden_def.
1138         * sysdeps/wordsize-64/wcstol.c (__wcstoll_internal): Use
1139         libc_hidden_ver instead of libc_hidden_def.
1140         (wcstoll, wcstoq): Remove libc_hidden_weak.
1141         * sysdeps/wordsize-64/strtol_l.c (____strtoll_l_internal): Add
1142         libc_hidden_ver.
1143         * sysdeps/wordsize-64/strtoul.c (__strtoull_internal): Add
1144         libc_hidden_ver.
1145         * sysdeps/wordsize-64/strtoul_l.c (____strtoull_l_internal): Add
1146         libc_hidden_ver.
1147         * sysdeps/wordsize-64/wcstoul.c (__wcstoull_internal): Add
1148         libc_hidden_ver.
1150 2002-08-04  Ulrich Drepper  <drepper@redhat.com>
1152         * stdio-common/psignal.c: Declare _sys_siglist_internal.  Use USEINT
1153         to access _sys_siglist.
1154         * string/strsignal.c: Likewise.
1155         * sysdeps/generic/siglist.c: Add _sys_siglist_internal alias.
1156         * sysdeps/gnu/siglist.c: Likewise.
1157         * sysdeps/unix/siglist.c: Likewise.
1158         * sysdeps/unix/sysv/linux/arm/siglist.c: Likewise.
1160         * libio/fileops.c: Add missing INTUSEs for _IO_file_jumps.
1162         * libio/wfileops.c: Add missing INTUSE for _IO_file_close.
1164         * intl/dcigettext.c: Define _nl_default_dirname_internal as hidden
1165         alias and use it.
1166         * intl/bindtextdom.c: Use _nl_default_dirname_internal.
1168         * include/netinet/in.h: Add declaration of in6addr_loopback_internal.
1169         * inet/in6_addr.c: Add INTVARDEF for in6addr_loopback.
1170         * sysdeps/posix/getaddrinfo.c: Use INTUSE for in6addr_loopback access.
1172         * include/time.h: Add libc_hidden_proto for __gmtime_r.
1173         * time/gmtime.c (__gmtime_r): Add libc_hidden_def.
1175         * iconv/Versions: Replace __gconv_alias_db, __gconv_modules_db,
1176         and __gconv_cache with __gconv_get_alias_db, __gconv_get_modules_db,
1177         and __gconv_get_cache respectively.
1178         * iconv/gconv_cache.c (gconv_cache): Renamed for __gconv_cache and
1179         defined static.  Change all users.
1180         (__gconv_get_cache): New function.
1181         * iconv/gconv_db.c (__gconv_get_modules_db): New function.
1182         (__gconv_get_alias_db): New function.
1183         * iconv/gconv_int.h (__gconv_alias_db): Declare as hidden.
1184         (__conv_modules_db): Likewise.
1185         Add prototypes for __gconv_get_cache, __gconv_get_modules_db,
1186         and __gconv_get_alias_db.
1187         * iconv/iconv_prog.c: Use the new functions instead of accessing the
1188         variables.
1190         * include/stdlib.h: Add prototype and libc_hidden_proto for
1191         __default_morecore.
1192         * sysdeps/generic/morecore.c: Include <stdlib.h>.
1194         * malloc/obstack.c: Remove fputs macro.
1196         * malloc/mtrace.c: Remove fopen macro.
1198 2002-08-04  Jakub Jelinek  <jakub@redhat.com>
1200         * manual/debug.texi: Fix spelling to programmatically.
1201         Reported by <hayastan132@hotmail.com>.
1203 2002-08-04  Ulrich Drepper  <drepper@redhat.com>
1205         * include/libio.h: Add libc_hidden_proto for __uflow.
1206         * include/stdio.h: Map fopen, fdopen, fclose, fputs, fsetpos, and
1207         fgetpos to _IO_* names.
1208         Add libc_hidden_proto for fileno, fwrite, fseek, fflush_unlocked,
1209         fread_unlocked, fwrite_unlocked, fgets_unlocked, fputs_unlocked.
1210         * include/wchar.h: Add libc_hidden_proto for fputws_unlocked,
1211         putwc_unlocked, vswscanf.
1212         * libio/iolibio.h: Add libc_hidden_proto for _IO_fputs.
1213         * libio/fileno.c: Use <stdio.h> and libc_hidden_def.
1214         * libio/fseek.c: Likewise.
1215         * libio/fmemopen.c: Include "libioP.h".  Call _IO_fopencookie and
1216         not fopencookie.
1217         * libio/genops.c (__uflow): Add libc_hidden_def.
1218         * libio/iofflush_u.c (fflush_unlocked): Likewise.
1219         * libio/iofgets_u.c (fgets_unlocked): Likewise.
1220         * libio/iofputs_u.c (fputs_unlocked): Likewise.
1221         * libio/iofputws_u.c (fputws_unlocked): Likewise.
1222         * libio/iofread_u.c (fread_unlocked): Likewise.
1223         * libio/iofwrite_u.c (fwrite_unlocked): Likewise.
1224         * libio/iovswscanf.c (vswscanf): Likewise.
1225         * libio/putwc_u.c (putwc_unlocked): Likewise.
1226         * libio/iofputs.c: Use libc_hidden_def instead of INTDEF.
1227         * malloc/malloc.c: Redirect fwrite calls to _IO_fwrite.
1228         * malloc/mtrace.c: Likewise.
1230         * sunrpc/clnt_perr.c: Remove fputs macro.
1231         * sunrpc/svc_simple.c: Likewise.
1232         * sunrpc/svc_tcp.c: Likewise.
1233         * sunrpc/svc_udp.c: Likewise.
1234         * sunrpc/xdr_rec.c: Likewise.
1235         * sunrpc/xdr_ref.c: Likewise.
1237         * iconv/Makefile: Add CPPFLAGS definitions with -DNOT_in_libc for
1238         iconv_prog, linereader, and charmap-dir.
1239         * locale/Makefile: Likewise for locale and charmap-dir.
1240         * malloc/Makefile: Likewise for memusagestat.
1241         * nscd/Makefile: Likewise for nscd, nscd_conf, and dbg_log.
1242         * sunrpc/Makefile: Likewise for rpc_main.
1243         * sysdeps/unix/sysv/linux/Makefile: Likewise for lddlibc4.
1244         * timezone/Makefile: Likewise for zic.
1246         * stdio-common/perror.c: Avoid multiple calls to fileno_unlocked.
1248         * elf/dl-addr.c (_dl_addr): Add libc_hidden_def.
1249         * elf/dl-close.c (_dl_close): Add libc_hidden_def.
1250         * elf/dl-open.c (_dl_open): Add libc_hidden_def.
1251         * include/dlfcn.h: Add libc_hidden_proto for _dl_addr, _dl_open,
1252         _dl_close.
1254         * include/libio.h: Add libc_hidden_proto for __underflow, __wuflow,
1255         __wunderflow.
1256         * libio/genops.c (__underflow): Add libc_hidden_def.
1257         * libio/wgenops.c (__wuflow): Likewise.
1258         (__wunderflow): Likewise.
1260         * include/obstack.h: Add libc_hidden_proto for _obstack_newchunk.
1261         * malloc/obstack.c (_obstack_newchunk): Add libc_hidden_def.
1263         * include/stdio.h: Add libc_hidden_proto for __vfscanf.
1264         * stdio-common/vfscanf.c (__vfscanf): Add libc_hidden_def.
1266         * include/string.h: Add libc_hidden_proto for __strverscmp.
1267         * string/strverscmp.c (__strverscmp): Add libc_hidden_def.
1269         * include/unistd.h: Add libc_hidden_proto for __sysconf.
1270         * sysdeps/generic/sysconf.c (__sysconf): Add libc_hidden_def.
1271         * sysdeps/posix/sysconf.c: Likewise.
1272         * sysdeps/unix/sysv/irix4/sysconf.c: Likewise.
1273         * sysdeps/unix/sysv/sysv4/sysconf.c: Likewise.
1275         * include/wctype.h: Use libc_hidden_proto for __iswctype, __iswalnum_l,
1276         __iswalpha_l, __iswblank_l, __iswcntrl_l, __iswdigit_l, __iswlower_l,
1277         __iswgraph_l, __iswprint_l, __iswpunct_l, __iswspace_l, __iswupper_l,
1278         __iswxdigit_l, __towlower_l, __towupper_l.
1279         * wcsmbs/wcstype.c (__iswctype): Use libc_hidden_def.
1280         * wcsmbs/wcfuncs_l.c: Use libc_hidden_def for all functions.
1282         * include/sys/wait.h: Add libc_hidden_proto for __xmknod.
1283         * sysdeps/generic/xmknod.c (__xmknod): Add libc_hidden_def.
1284         * sysdeps/mach/hurd/xmknod.c: Likewise.
1285         * sysdeps/unix/xmknod.c: Likewise.
1286         * sysdeps/unix/sysv/linux/xmknod.c: Likewise.
1287         * sysdeps/unix/sysv/linux/alpha/xmknod.c: Likewise.
1288         * sysdeps/unix/sysv/linux/mips/xmknod.c: Likewise.
1290         * sunrpc/svc.c: Add missing INTUSE for _authenticate.
1292 2002-08-03  Roland McGrath  <roland@redhat.com>
1294         * include/sys/resource.h: Use libc_hidden_proto for getpriority,
1295         setpriority.
1296         * sysdeps/unix/sysv/linux/getpriority.c: Add libc_hidden_def.
1297         * sysdeps/unix/sysv/irix4/getpriority.c: Likewise.
1298         * sysdeps/unix/sysv/irix4/setpriority.c: Likewise.
1299         * sysdeps/mach/hurd/setpriority.c: Likewise.
1300         * sysdeps/mach/hurd/getpriority.c: Likewise.
1301         * sysdeps/generic/setpriority.c: Likewise.
1302         * sysdeps/generic/getpriority.c: Likewise.
1304         * include/mcheck.h: Use libc_hidden_proto for mcheck_check_all.
1305         * malloc/mcheck.c: Add libc_hidden_def.
1307         * include/search.h: Use libc_hidden_proto for hcreate_r, hdestroy_r.
1308         * misc/hsearch_r.c: Add libc_hidden_def.
1310         * include/fnmatch.h: Use libc_hidden_proto for fnmatch.
1311         * posix/fnmatch.c: Add libc_hidden_weak.
1313         * include/unistd.h: Use libc_hidden_proto for _exit, alarm, confstr,
1314         execl, execle, execlp, execvp, getpid, getsid.
1315         * sysdeps/generic/alarm.c: Add libc_hidden_def.
1316         * sysdeps/unix/alarm.c: Likewise.
1317         * posix/confstr.c: Likewise.
1318         * posix/execvp.c: Likewise.
1319         * posix/execlp.c: Likewise.
1320         * posix/execle.c: Likewise.
1321         * posix/execl.c: Likewise.
1322         * sysdeps/generic/getsid.c: Likewise.
1323         * sysdeps/mach/hurd/getsid.c: Likewise.
1324         * sysdeps/generic/getpid.c: Add libc_hidden_weak.
1325         * sysdeps/mach/hurd/getpid.c: Likewise.
1327         * include/stdlib.h: Use libc_hidden_proto for ecvt_r, fcvt_r,
1328         qecvt_r, qfcvt_r, lrand48_r.
1329         * misc/efgcvt_r.c: Add libc_hidden_def.
1331         * include/wordexp.h: Use libc_hidden_proto for wordfree.
1332         * sysdeps/generic/wordexp.c: Add libc_hidden_def.
1334         * include/langinfo.h: Use libc_hidden_proto for nl_langinfo.
1335         * locale/nl_langinfo.c: Add libc_hidden_def.
1337         * include/glob.h: Use libc_hidden_proto for glob, globfree, globfree64.
1338         * sysdeps/generic/glob.c: Add libc_hidden_def.
1339         * sysdeps/generic/glob64.c: Likewise.
1340         * sysdeps/wordsize-64/glob.c (globfree64): Add libc_hidden_weak.
1342         * locale/nl_langinfo.c: Use _NL_CURRENT_DATA.
1344         * elf/Makefile (CFLAGS-vismod2.c): New variable.
1346         * locale/setlocale.c (_nl_current_names): Variable moved ...
1347         * locale/localename.c (_nl_current_names): ... here, new file.
1348         Make it global, with attribute_hidden.
1349         * locale/localeinfo.h: Declare it.
1350         * locale/Makefile (aux): Add localename.
1351         * locale/localename.c (__current_locale_name): New function.
1352         * include/locale.h (__current_locale_name): Declare it.
1353         * intl/dcigettext.c (guess_category_value): Use that instead of
1354         calling setlocale.
1356         * locale/locale.h [__USE_GNU] (locale_t): New type alias of __locale_t.
1357         [__USE_GNU] (newlocale, duplocale, freelocale, uselocale): New decls.
1358         [__USE_GNU] (LC_GLOBAL_LOCALE): New macro.
1359         * locale/newlocale.c: Add alias to __ name.
1360         * locale/duplocale.c: Likewise.
1361         * locale/freelocale.c: Likewise.
1362         * locale/uselocale.c: New file.
1363         * locale/Makefile (routines): Add it.
1364         * locale/Versions (libc: GLIBC_2.3): New set.
1365         Add newlocale, duplocale, freelocale, uselocale.
1366         (libc: GLIBC_PRIVATE): Add __uselocale.
1368         * locale/localeinfo.h [SHARED]
1369         (_NL_CURRENT_LOCALE): New macro, defined to fetch a tsd value.
1370         (_NL_CURRENT_DATA): Define using that.
1371         (_NL_CURRENT, _NL_CURRENT_WSTR, _NL_CURRENT_WORD): Define using that.
1372         (_NL_CURRENT_DEFINE): Define to empty.
1373         [! SHARED]: Decls of _nl_current_CATEGORY and _nl_current
1374         conditionalized on this.
1375         * locale/xlocale.c (NL_C_INTIIALIZER): New macro,
1376         taking initializer of _nl_C_locobj.
1377         [SHARED] (_nl_global_locale): New variable, using that initializer.
1378         (_nl_C_locobj): Use new macro for initialzier.
1379         * locale/setlocale.c [! SHARED] (_nl_current): Conditionalize on this.
1380         [! SHARED] (CATEGORY_USED): New macro.
1381         [SHARED] (CATEGORY_USED, _nl_C): New macros.
1382         (setdata, setlocale): Use that macro instead of examining _nl_current.
1383         (setdata): Set the slot in _nl_global_locale.
1384         Conditionalize setting of _nl_current on [! SHARED].
1385         * locale/findlocale.c [SHARED] (_nl_C): Define as a macro instead of
1386         declaration as an extern.
1387         * locale/newlocale.c (__newlocale): Use _nl_C_locobj instead of _nl_C.
1389         * include/locale.h: Use libc_hidden_proto for setlocale.
1390         * locale/setlocale.c: Add libc_hidden_def.
1392         * locale/setlocale.c (free_mem): Use _NL_CURRENT_DATA.
1394         * include/search.h: Use libc_hidden_proto for hsearch_r, lfind.
1395         * misc/hsearch_r.c: Add libc_hidden_def.
1396         * misc/lsearch.c: Likewise.
1398         * include/ttyent.h: Use libc_hidden_proto for getttyent, setttyent,
1399         endttyent.
1400         * misc/getttyent.c: Add libc_hidden_def.
1402         * include/mcheck.h: Use libc_hidden_proto for mcheck.
1403         * malloc/mcheck.c: Add libc_hidden_def.
1405         * include/envz.h: Use libc_hidden_proto for envz_entry, enz_remove.
1406         * include/argz.h: Use libc_hidden_proto for argz_delete.
1407         * string/argz-delete.c: Add libc_hidden_def.
1408         * string/envz.c: Likewise.  Use <envz.h>, not "envz.h".
1410         * sysdeps/unix/sysv/linux/x86_64/clone.S (thread_start): Use
1411         HIDDEN_JUMPTARGET for _exit.
1412         * sysdeps/unix/sysv/linux/m68k/clone.S (thread_start): Likewise.
1413         * sysdeps/unix/sysv/linux/i386/clone.S (thread_start): Likewise.
1414         * sysdeps/unix/sysv/linux/powerpc/clone.S: Likewise.
1415         * sysdeps/unix/_exit.S (_exit): Add libc_hidden_def.
1417         * include/libc-symbols.h: Fix [__ASSEMBLY__] -> [__ASSEMBLER__].
1418         [__ASSEMBLER__] (hidden_weak): Define using hidden_def, or to empty.
1419         [__ASSEMBLER__] (HIDDEN_JUMPTARGET): New macro.
1420         * sysdeps/unix/sysv/linux/i386/makecontext.S: Use it for exit.
1422         * include/stdlib.h: Use libc_hidden_proto for abort,
1423         __strtof_internal, __strtod_internal, __strtold_internal,
1424         __strtol_internal, __strtoll_internal, __strtoul_internal,
1425         __strtoull_internal. __strtof_l_internal, __strtod_l_internal,
1426         __strtold_l_internal, __strtol_l_internal, __strtoll_l_internal,
1427         __strtoul_l_internal, __strtoull_l_internal.
1428         * include/wchar.h: Use libc_hidden_proto for __wcstof_internal,
1429         __wcstod_internal, __wcstold_internal, __wcstol_internal,
1430         __wcstoll_internal, __wcstoul_internal, ____wcstof_l_internal,
1431         ____wcstod_l_internal, ____wcstold_l_internal, ____wcstol_l_internal,
1432         ____wcstoll_l_internal, ____wcstoul_l_internal, __wcscasecmp_l,
1433         __wcsncasecmp_l.
1434         * sysdeps/generic/abort.c: Add libc_hidden_def.
1435         * stdlib/strtod.c: Likewise.
1436         * sysdeps/generic/strtol.c: Likewise.
1437         * sysdeps/wordsize-64/strtol.c: Likewise.
1438         * sysdeps/wordsize-64/wcstol.c: Likewise.
1439         * sysdeps/wordsize-64/wcstol_l.c: Likewise.
1441         * include/stdlib.h: Use libc_hidden_proto for qsort.
1442         * stdlib/msort.c: Add libc_hidden_def.
1444         * include/utime.h: Use libc_hidden_proto for utime.
1445         * sysdeps/generic/utime.c: Add libc_hidden_def.
1446         * sysdeps/unix/utime.c: Likewise.
1448         * sysdeps/generic/utmp_file.c (LOCK_FILE): sigemptyset -> __sigemptyset
1449         * sysdeps/posix/profil.c (__profil): sigfillset -> __sigfillset
1450         * sysdeps/posix/sprofil.c (__sprofil): Likewise.
1451         * shadow/lckpwdf.c (__lckpwdf): Likewise (both).
1452         * sysdeps/posix/spawni.c (__spawni): sigismember -> __sigismember
1454         * include/signal.h: Use libc_hidden_proto for raise, sigemptyset,
1455         sigfillset, sigismember, __sigpause, __libc_current_sigrtmin,
1456         and __libc_current_sigrtmax.
1457         * signal/sigismem.c: Add libc_hidden_def.
1458         * signal/sigfillset.c: Likewise.
1459         * signal/sigempty.c: Likewise.
1460         * sysdeps/generic/sigpause.c (__sigpause): Likewise.
1461         * sysdeps/posix/sigpause.c (__sigpause): Likewise.
1462         * sysdeps/unix/bsd/osf/alpha/sigpause.S: Likewise.
1463         * sysdeps/posix/raise.c: Likewise.
1464         * sysdeps/generic/raise.c: Likewise.
1466 2002-08-03  Ulrich Drepper  <drepper@redhat.com>
1468         * include/string.h: Use libc_hidden_proto for __stpcpy.
1469         * sysdeps/alpha/stpcpy.S (__stpcpy): Add libc_hidden_def.
1470         * sysdeps/alpha/alphaev67/stpcpy.S: Likewise.
1471         * sysdeps/generic/stpcpy.c: Likewise.
1472         * sysdeps/i386/stpcpy.S: Likewise.
1473         * sysdeps/i386/i586/stpcpy.S: Likewise.
1474         * sysdeps/powerpc/stpcpy.S: Likewise.
1475         * sysdeps/sparc/sparc32/stpcpy.S: Likewise.
1476         * sysdeps/sparc/sparc64/stpcpy.S: Likewise.
1478         * include/string.h: Use libc_hidden_proto for __strcasecmp_l,
1479         __strncasecmp_l, __strdup, __strndup, __strerror_r.
1480         * sysdeps/generic/strcasecmp_l.c (__strcasecmp_l): Add
1481         libc_hidden_def.
1482         * string/strdup.c (__strdup): Likewise.
1483         * string/strndup.c (__strndup): Likewise.
1484         * sysdeps/generic/_strerror.c (__strerror_r): Likewise.
1485         * sysdeps/generic/strncase_l.c (__strncasecmp_l): Likewise.
1487 2002-08-03  Jakub Jelinek  <jakub@redhat.com>
1489         * include/libio.h: New file.
1490         * libio/libioP.h (__overflow, __woverflow): Remove libc_hidden_proto.
1491         * libio/iolibio.h: #include <libio.h>, not "libio.h".
1492         * sysdeps/generic/morecore.c (__sbrk): Add libc_hidden_proto.
1493         * sysdeps/unix/bsd/syscalls.list: Remove all __GI_* aliases.
1494         * sysdeps/unix/common/syscalls.list: Likewise.
1495         * sysdeps/unix/inet/syscalls.list: Likewise.
1496         * sysdeps/unix/sysv/irix4/syscalls.list: Likewise.
1497         * sysdeps/unix/sysv/linux/alpha/syscalls.list: Likewise.
1498         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
1499         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
1500         * sysdeps/unix/sysv/linux/hppa/syscalls.list: Likewise.
1501         * sysdeps/unix/sysv/linux/mips/syscalls.list: Likewise.
1502         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
1503         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
1504         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
1505         * sysdeps/unix/sysv/sysv4/solaris2/syscalls.list: Likewise.
1506         * sysdeps/unix/syscalls.list: Likewise.
1508 2002-08-03  Jakub Jelinek  <jakub@redhat.com>
1509             Ulrich Drepper  <drepper@redhat.com>
1511         * malloc/malloc.c (public_cALLOc): Only divide if at least one of
1512         the arguments is big enough to cause an overflow.
1514 2002-08-03  Ulrich Drepper  <drepper@redhat.com>
1516         * assert/assert.c: Use hidden_def not INTDEF.
1518 2002-08-03  Jakub Jelinek  <jakub@redhat.com>
1520         * include/libc-symbols.h: Optimize if HAVE_BROKEN_ALIAS_ATTRIBUTE is
1521         not defined.
1523 2002-08-03  Roland McGrath  <roland@redhat.com>
1525         * include/sys/syslog.h: Use libc_hidden_proto for syslog, vsyslog.
1526         * include/err.h: Use libc_hidden_proto for warn, warnx, vwarn, vwarn,
1527         verr, verrx.
1528         * include/stdlib.h: Use libc_hidden_proto for exit, getenv, bsearch.
1529         * misc/syslog.c: Add libc_hidden_def.
1530         * misc/err.c: Likewise.
1531         * stdlib/exit.c: Likewise.
1532         * stdlib/bsearch.c: Likewise.
1533         * sysdeps/generic/getenv.c: Likewise.
1535         * include/libc-symbols.h (hidden_weak): Define it for [__ASSEMBLER__].
1537         * sysdeps/unix/make-syscalls.sh: Generate libc_hidden_def or
1538         libc_hidden_weak for every system call symbol defined.
1540         * include/time.h: Use libc_hidden_proto for time, asctime, mktime,
1541         timelocal, localtime, strftime.
1542         * time/asctime.c: Add libc_hidden_def.
1543         * time/mktime.c: Likewise.
1544         * time/localtime.c: Likewise.
1545         * time/strftime.c: Likewise.
1546         * time/strptime.c: Likewise.
1547         * sysdeps/generic/time.c: Likewise.
1548         * sysdeps/unix/time.c: Likewise.
1549         * sysdeps/unix/sysv/i386/time.S: Likewise.
1550         * sysdeps/unix/sysv/linux/x86_64/time.S: Likewise.
1552         * include/arpa/inet.h: Use libc_hidden_proto for inet_ntop, inet_pton.
1553         inet_makeaddr, inet_netof, inet_addr, __inet_addr.
1554         * resolv/inet_ntop.c: Likewise.
1555         * resolv/inet_pton.c: Likewise.
1556         * inet/inet_mkadr.c: Add libc_hidden_def.
1557         * inet/inet_netof.c: Likewise.
1558         * resolv/inet_addr.c: Likewise.
1560         * include/libc-symbols.h: Remove `defined HAVE_BROKEN_ALIAS_ATTRIBUTE'
1561         clauses from conditionals for now.  Will have to be fixed later
1562         for older compilers.
1564         * sysdeps/generic/mempcpy.c (__mempcpy): #undef it before defn.
1566 2002-08-02  Ulrich Drepper  <drepper@redhat.com>
1568         * configure.in (HAVE_BROKEN_ALIAS_ATTRIBUTE): Add check for
1569         broken alias attribute handling.
1570         * config.h.in (HAVE_BROKEN_ALIAS_ATTRIBUTE): Add.
1572 2002-08-02  Roland McGrath  <roland@frob.com>
1574         * elf/Makefile ($(objpfx)interp.os): Depend on config.make,
1575         since it sets the variables we use in a -D switch.
1577 2002-08-02  Roland McGrath  <roland@redhat.com>
1579         * posix/bits/posix1_lim.h (SSIZE_MAX): Define to LONG_MAX, not INT_MAX.
1580         On 32-bit platforms they are the same; on 64-bit platforms ssize_t
1581         matches long int, not int.
1583         * locale/localeinfo.h (_NL_CURRENT_DATA): New macro.
1584         * wcsmbs/wcsmbsload.h (update_conversion_ptrs): Use it.
1585         * locale/lc-ctype.c (_nl_postload_ctype): Likewise.
1586         * wctype/wctrans.c (wctrans): Likewise.
1587         * wctype/wctype.c (__wctype): Likewise.
1588         * intl/loadmsgcat.c (_nl_init_domain_conv): Use _NL_CURRENT.
1590 2002-08-02  Ulrich Drepper  <drepper@redhat.com>
1592         * assert/assert.c (__assert_fail): Fix typo in comment.
1594         * include/rpc/rpc.h: Declare RPC_VARS tsd as extern.
1595         * sunrpc/rpc_thread.c: Define it without static.
1596         * sunrpc/Versions [libc] (GLIBC_PRIVATE): Export __libc_tsd_RPC_VARS.
1598 2002-08-02  Jakub Jelinek  <jakub@redhat.com>
1600         * assert/assert.c (__assert_fail): Remove undef.
1601         Replace INTDEF with libc_hidden_def.
1602         * assert/__assert.c (__assert): Remove INTUSE.
1603         * elf/dl-minimal.c (__assert_fail): Replace INTDEF with
1604         libc_hidden_weak.
1605         * include/libc-symbols.h (hidden_proto, hidden_def, hidden_weak,
1606         hidden_ver, libc_hidden_proto, libc_hidden_def, libc_hidden_weak,
1607         libc_hidden_ver, rtld_hidden_proto, rtld_hidden_def, rtld_hidden_weak,
1608         rltd_hidden_ver, libm_hidden_proto, libm_hidden_def, libm_hidden_weak,
1609         libm_hiden_ver): Define.
1610         * include/assert.h (__assert_fail_internal): Remove.
1611         (__assert_fail): Add prototype.  Add hidden_proto.
1612         * include/libc-internal.h (__libc_freeres, __profile_frequency): Add
1613         libc_hidden_proto.
1614         * include/wchar.h (__mbrtowc_internal, __mbrlen_internal): Remove.
1615         (__mbrtowc, __mbrlen): Use libc_hidden_proto.  Remove macros.
1616         * include/string.h (__mempcpy, __stpncpy, __rawmemchr, __strcasecmp):
1617         Add libc_hidden_proto.
1618         * include/fcntl.h (__open64, __libc_open, __libc_fcntl, __open,
1619         __fcntl): Add libc_hidden_proto.  Remove macros.
1620         (__open_internal, __fcntl_internal): Remove.
1621         * libio/iofdopen.c (_IO_fcntl): Remove INTUSE from __fcntl.
1622         * malloc/set-freeres.c (__libc_freeres): Add libc_hidden_def.
1623         * nss/nsswitch.h (__nss_database_lookup, __nss_next): Add
1624         libc_hiden_proto.
1625         * nss/nsswitch.c (__nss_database_lookup, __nss_next): Add
1626         libc_hidden_def.
1627         * sysdeps/generic/mempcpy.c (__mempcpy): Remove undef.
1628         Add libc_hidden_def.
1629         * sysdeps/generic/open64.c (__open64): Add libc_hidden_def.
1630         * sysdeps/generic/open.c (__open): Remove undef.
1631         Add libc_hidden_def.  Remove INTDEF.
1632         * sysdeps/generic/fcntl.c (__fcntl): Remove undef.
1633         Add libc_hidden_def.
1634         * sysdeps/mach/hurd/fcntl.c (__fcntl): Likewise.
1635         * sysdeps/i386/i586/mempcpy.S (__mempcpy): Add libc_hidden_def.
1636         * sysdeps/i386/i686/mempcpy.S (__mempcpy): Likewise.
1637         * sysdeps/mach/hurd/fcntl.c (__libc_fcntl, __fcntl): Remove undef.
1638         (__fcntl): Remove INTDEF2.  Add libc_hidden_weak.
1639         (__libc_fcntl): Add libc_hidden_def.
1640         * sysdeps/mach/hurd/open.c (__libc_open, __open): Remove undef.
1641         (__open): Remove INTDEF2.  Add libc_hidden_weak.
1642         (__libc_open): Add libc_hidden_def.
1643         * sysdeps/posix/open64.c (__open64): Add libc_hidden_weak.
1644         * sysdeps/standalone/open.c (__open): Add libc_hidden_def.
1645         * sysdeps/unix/sysv/aix/fcntl.c (__libc_fcntl, __fcntl): Remove undef.
1646         Add libc_hidden_def.
1647         * sysdeps/unix/sysv/aix/open.c (__libc_open, __open): Remove undef.
1648         Add libc_hidden_def.
1649         * sysdeps/unix/sysv/linux/i386/fcntl.c (__libc_fcntl, __fcntl): Remove
1650         undef.
1651         (__fcntl): Remove INTDEF2.  Add libc_hidden_weak.
1652         (__libc_fcntl): Add libc_hidden_def.
1653         * sysdeps/unix/sysv/linux/syscalls.list (__fcntl_internal,
1654         __getpgid_internal, __chown_internal): Remove.
1655         (__GI___fcntl, __GI___libc_fcntl, __GI___getpgid, __GI___pipe,
1656         __GI___sched_setscheduler, __GI___select, __GI___setpgid,
1657         __GI___chown): Add.
1658         * sysdeps/unix/syscalls.list (__close_internal, __dup2_internal,
1659         __getpid_internal, __open_internal, __write_internal): Remove.
1660         (__GI___fcntl, __GI___libc_fcntl, __GI___open, __GI___libc_open,
1661         __GI___chown, __GI___close, __GI___dup2, __GI___getpid,
1662         __GI___libc_open, __GI___open, __GI___read, __GI___libc_read,
1663         __GI___select, __GI___statfs, __GI___write, __GI___libc_write): Add.
1664         * wcsmbs/mbrlen.c (__mbrlen): Remove undef.
1665         Replace INTDEF with libc_hidden_def.
1666         * wcsmbs/mbrtowc.c (__mbrtowc): Likewise.
1667         * catgets/catgetsinfo.h (__open_catalog): Add libc_hidden_proto.
1668         * catgets/open_catalog.c (__open_catalog): Add libc_hidden_def.
1669         * elf/dl-profile.c (__profile_frequency): Add libc_hidden_proto.
1670         * include/rpc/rpc.h (__rpc_thread_svc_fdset, __rpc_thread_createerr):
1671         Add libc_hidden_proto.
1672         * include/sys/poll.h (__poll): Add libc_hidden_proto.
1673         * include/sys/select.h (__select): Likewise.
1674         * include/sys/socket.h (__send): Likewise.
1675         * include/sys/statfs.h (__statfs): Likewise.
1676         * include/unistd.h (__pwrite64, __libc_read, __pipe, __chown, __dup2,
1677         __getpid, __getpgid, __setpgid, __close, __read, __write,
1678         __getpagesize, __sbrk): Likewise.
1679         (__chown_internal, __dup2_internal, __getpid_internal,
1680         __getpgid_internal, __close_internal, __write_internal,
1681         __getpagesize_internal): Remove.
1682         (__close, __dup2, __getpagesize, __getpgid, __getpid, __libc_write):
1683         Remove macros.
1684         * include/printf.h (__printf_fp): Add libc_hidden_proto.
1685         * include/sched.h (__sched_setscheduler): Likewise.
1686         * include/resolv.h (__res_ninit, __res_randomid): Likewise.
1687         * include/stdlib.h (__secure_getenv): Likewise.
1688         * include/signal.h (__sigaction, __sigsuspend): Likewise.
1689         * inet/getaliasent_r.c (NSS_attribute_hidden): Remove.
1690         * inet/getaliasname_r.c (NSS_attribute_hidden): Remove.
1691         * inet/getnetbyad_r.c (NSS_attribute_hidden): Remove.
1692         * inet/getnetbynm_r.c (NSS_attribute_hidden): Remove.
1693         * inet/getnetent_r.c (NSS_attribute_hidden): Remove.
1694         * inet/getproto_r.c (NSS_attribute_hidden): Remove.
1695         * inet/getprtent_r.c (NSS_attribute_hidden): Remove.
1696         * inet/getprtname_r.c (NSS_attribute_hidden): Remove.
1697         * inet/getrpcbyname_r.c (NSS_attribute_hidden): Remove.
1698         * inet/getrpcbynumber_r.c (NSS_attribute_hidden): Remove.
1699         * inet/getrpcent_r.c (NSS_attribute_hidden): Remove.
1700         * inet/getservent_r.c (NSS_attribute_hidden): Remove.
1701         * inet/getsrvbynm_r.c (NSS_attribute_hidden): Remove.
1702         * inet/getsrvbypt_r.c (NSS_attribute_hidden): Remove.
1703         * inet/gethstbyad_r.c (DB_LOOKUP_FCT): Remove INTUSE.
1704         * inet/gethstbynm2_r.c (DB_LOOKUP_FCT): Likewise.
1705         * inet/gethstbynm_r.c (DB_LOOKUP_FCT): Likewise.
1706         * inet/gethstent_r.c (DB_LOOKUP_FCT): Likewise.
1707         * libio/genops.c (__overflow): Add libc_hidden_def.
1708         * libio/iovdprintf.c: Remove libio.h include.
1709         * libio/libioP.h (libc_hidden_proto, libc_hidden_def,
1710         libc_hidden_weak): Define to nothing if not defined.
1711         (__overflow, __woverflow): Add libc_hidden_proto.
1712         * libio/wgenops.c (__woverflow): Add libc_hidden_def.
1713         * nss/getXXent_r.c (NSS_attribute_hidden): Remove.
1714         (DB_LOOKUP_FCT): Add libc_hidden_proto.
1715         * nss/getXXbyYY_r.c (NSS_attribute_hidden): Remove.
1716         (DB_LOOKUP_FCT): Add libc_hidden_proto.
1717         * nss/XXX-lookup.c (DB_LOOKUP_FCT): Add libc_hidden_proto
1718         and libc_hidden_def.
1719         * nss/hosts-lookup.c (__nss_hosts_lookup): Remove INTDEF.
1720         * posix/bsd-getpgrp.c (__getpgid_internal): Remove.
1721         (__getpgid): Add libc_hidden_proto.
1722         (__bsd_getpgrp): Remove INTUSE.
1723         * resolv/res_init.c (__res_ninit, __res_randomid): Add
1724         libc_hidden_def.
1725         * shadow/getspent_r.c (NSS_attribute_hidden): Remove.
1726         * shadow/getspnam_r.c (NSS_attribute_hidden): Remove.
1727         * stdio-common/printf_fp.c (__printf_fp): Add libc_hidden_def.
1728         * stdlib/strfmon.c (__printf_fp): Add libc_hidden_proto.
1729         * stdlib/secure-getenv.c (__secure_getenv): Add libc_hidden_def.
1730         * sunrpc/rpc_thread.c (__rpc_thread_svc_fdset,
1731         __rpc_thread_createerr): Add libc_hidden_def.
1732         * sysdeps/alpha/alphaev67/rawmemchr.S (__rawmemchr): Add
1733         libc_hidden_def.
1734         * sysdeps/alpha/alphaev67/stpncpy.S (__stpncpy): Likewise.
1735         * sysdeps/alpha/rawmemchr.S (__rawmemchr): Likewise.
1736         * sysdeps/alpha/stpncpy.S (__stpncpy): Likewise.
1737         * sysdeps/generic/chown.c (__chown): Likewise.
1738         * sysdeps/generic/close.c (__close): Likewise.
1739         * sysdeps/generic/dup2.c (__dup2): Likewise.
1740         * sysdeps/generic/pipe.c (__pipe): Likewise.
1741         * sysdeps/generic/prof-freq.c (__profile_frequency): Likewise.
1742         * sysdeps/generic/pwrite64.c (__pwrite64): Likewise.
1743         * sysdeps/generic/rawmemchr.c (__rawmemchr): Likewise.
1744         * sysdeps/generic/read.c (__libc_read): Likewise.
1745         (__read): Add libc_hidden_weak.
1746         * sysdeps/generic/sbrk.c (__sbrk): Add libc_hidden_def.
1747         * sysdeps/generic/sched_sets.c (__sched_setscheduler): Likewise.
1748         * sysdeps/generic/select.c (__select): Likewise.
1749         * sysdeps/generic/send.c (__send): Likewise.
1750         * sysdeps/generic/setpgid.c (__setpgid): Likewise.
1751         * sysdeps/generic/sigaction.c (__sigaction): Likewise.
1752         * sysdeps/generic/sigsuspend.c (__sigsuspend): Likewise.
1753         * sysdeps/generic/statfs.c (__statfs): Likewise.
1754         * sysdeps/generic/stpncpy.c (__stpncpy): Likewise.
1755         * sysdeps/generic/strcasecmp.c (__strcasecmp): Likewise.
1756         * sysdeps/generic/getpagesize.c (__getpagesize): Likewise.
1757         Remove undef and INTDEF.
1758         * sysdeps/generic/getpgid.c (__getpgid): Likewise.
1759         * sysdeps/generic/getpid.c (__getpid): Likewise.
1760         * sysdeps/generic/write.c (__libc_write): Likewise.
1761         (__write): Add libc_hidden_weak.  Remove undef and INTDEF.
1762         * sysdeps/i386/rawmemchr.S (__rawmemchr): Add libc_hidden_def.
1763         * sysdeps/i386/stpncpy.S (__stpncpy): Likewise.
1764         * sysdeps/m68k/rawmemchr.S (__rawmemchr): Likewise.
1765         * sysdeps/mach/hurd/chown.c (__chown): Likewise.  Remove INTDEF.
1766         * sysdeps/mach/hurd/close.c (__close): Add libc_hidden_def.
1767         Remove undef and INTDEF.
1768         * sysdeps/mach/hurd/dup2.c (__dup2): Likewise.
1769         * sysdeps/mach/hurd/getpgid.c (__getpgid): Likewise.
1770         * sysdeps/mach/hurd/getpid.c (__getpid): Likewise.
1771         * sysdeps/mach/getpagesize.c (__getpagesize): Likewise.
1772         * sysdeps/mach/hurd/write.c (__libc_write): Likewise.
1773         (__write): Add libc_hidden_weak.  Remove undef and INTDEF.
1774         * sysdeps/mach/hurd/pipe.c: Include unistd.h.
1775         (__pipe): Add libc_hidden_def.
1776         * sysdeps/mach/hurd/dl-sysdep.c (__libc_read, __libc_write): Add
1777         libc_hidden_weak.
1778         * sysdeps/mach/hurd/poll.c (__poll): Add libc_hidden_def.
1779         * sysdeps/mach/hurd/profil.c (__profile_frequency): Likewise.
1780         * sysdeps/mach/hurd/read.c (__libc_read): Likewise.
1781         (__read): Add libc_hidden_weak.
1782         * sysdeps/mach/hurd/pwrite64.c (__pwrite64): Likewise.
1783         (__libc_pwrite64): Add libc_hidden_def.
1784         * sysdeps/mach/hurd/sbrk.c (__sbrk): Likewise.
1785         * sysdeps/mach/hurd/select.c (__select): Likewise.
1786         * sysdeps/mach/hurd/send.c (__send): Likewise.
1787         * sysdeps/mach/hurd/setpgid.c (__setpgid): Likewise.
1788         * sysdeps/mach/hurd/sigaction.c (__sigaction): Likewise.
1789         * sysdeps/mach/hurd/sigsuspend.c (__sigsuspend): Likewise.
1790         * sysdeps/mach/hurd/statfs.c (__statfs): Likewise.
1791         * sysdeps/posix/dup2.c: Likewise.
1792         Remove undef and INTDEF.
1793         * sysdeps/posix/getpagesize.c (__getpagesize): Likewise.
1794         * sysdeps/posix/pwrite64.c (__libc_pwrite64): Add libc_hidden_def.
1795         (__pwrite64): Add libc_hidden_weak.
1796         * sysdeps/posix/sigsuspend.c (__sigsuspend): Add libc_hidden_def.
1797         * sysdeps/sparc/sparc64/rawmemchr.S (__rawmemchr): Likewise.
1798         * sysdeps/sparc/sparc64/stpncpy.S (__stpncpy): Likewise.
1799         * sysdeps/standalone/close.c (__close): Likewise.
1800         * sysdeps/standalone/write.c (__libc_write): Likewise.
1801         (__write): Add libc_hidden_weak.
1802         * sysdeps/standalone/read.c (__read): Likewise.
1803         (__libc_read): Add libc_hidden_def.
1804         * sysdeps/unix/grantpt.c (grantpt): Remove INTUSE.
1805         * sysdeps/unix/bsd/m68k/pipe.S (__pipe): Add libc_hidden_def.
1806         * sysdeps/unix/bsd/osf/alpha/pipe.S (__pipe): Likewise.
1807         * sysdeps/unix/bsd/vax/pipe.S (__pipe): Likewise.
1808         * sysdeps/unix/bsd/syscalls.list (__GI___getpagesize): Likewise.
1809         * sysdeps/unix/bsd/poll.c (__poll): Likewise.
1810         * sysdeps/unix/bsd/sigaction.c (__sigaction): Likewise.
1811         * sysdeps/unix/bsd/sigsuspend.c (__sigsuspend): Likewise.
1812         * sysdeps/unix/common/syscalls.list (__GI___getpgid, __GI___setpgid,
1813         __GI___sigaction): Add.
1814         * sysdeps/unix/i386/pipe.S (__pipe): Add libc_hidden_def.
1815         * sysdeps/unix/inet/syscalls.list (__GI___send): Add.
1816         * sysdeps/unix/mips/pipe.S (__pipe): Add libc_hidden_def.
1817         * sysdeps/unix/sparc/pipe.S (__pipe): Likewise.
1818         * sysdeps/unix/sysv/irix4/syscalls.list (__GI___getpgid,
1819         __GI___setpgid): Add.
1820         * sysdeps/unix/sysv/aix/chown.c (__chown): Add libc_hidden_def.
1821         Remove undef and INTDEF.
1822         * sysdeps/unix/sysv/aix/getpgid.c (__getpgid): Likewise.
1823         * sysdeps/unix/sysv/aix/write.c (__write, __libc_write): Likewise.
1824         * sysdeps/unix/sysv/aix/close.c (__close): Add libc_hidden_def.
1825         * sysdeps/unix/sysv/aix/getpid.c (__getpid): Likewise.
1826         * sysdeps/unix/sysv/aix/pipe.c (__pipe): Likewise.
1827         * sysdeps/unix/sysv/aix/read.c (__read, __libc_read): Likewise.
1828         * sysdeps/unix/sysv/aix/poll.c (__poll): Likewise.
1829         * sysdeps/unix/sysv/aix/sbrk.c (__sbrk): Likewise.
1830         * sysdeps/unix/sysv/aix/sigaction.c (__sigaction): Likewise.
1831         * sysdeps/unix/sysv/aix/sigsuspend.c (__sigsuspend): Likewise.
1832         * sysdeps/unix/sysv/aix/statfs.c (__statfs): Likewise.
1833         * sysdeps/unix/sysv/aix/select.c (__select): Likewise.
1834         * sysdeps/unix/sysv/aix/setpgid.c (__setpgid): Likewise.
1835         * sysdeps/unix/sysv/linux/alpha/pipe.S (__pipe): Likewise.
1836         * sysdeps/unix/sysv/linux/alpha/syscalls.list (__GI___pwrite64,
1837         __GI___statfs, __GI___send): Add.
1838         * sysdeps/unix/sysv/linux/alpha/select.S (__select): Add
1839         libc_hidden_ver resp. libc_hidden_def.
1840         * sysdeps/unix/sysv/linux/alpha/sigsuspend.S (__sigsuspend): Add
1841         libc_hidden_def.
1842         * sysdeps/unix/sysv/linux/ia64/getpagesize.c (__getpagesize):
1843         Likewise.  Remove undef and INTDEF.
1844         * sysdeps/unix/sysv/linux/ia64/pipe.S (__pipe): Add libc_hidden_def.
1845         * sysdeps/unix/sysv/linux/ia64/syscalls.list (__GI___pwrite64,
1846         __GI___statfs, __GI___send): Add.
1847         * sysdeps/unix/sysv/linux/ia64/sigaction.c (__sigaction): Add
1848         libc_hidden_def.
1849         * sysdeps/unix/sysv/linux/ia64/sigsuspend.c (__sigsuspend):
1850         Likewise.
1851         * sysdeps/unix/sysv/linux/sh/pipe.S (__pipe): Likewise.
1852         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c (__chown): Add
1853         libc_hidden_ver resp. libc_hidden_def.
1854         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list (__GI___pwrite64,
1855         __GI___send): Add.
1856         * sysdeps/unix/sysv/linux/s390/s390-64/sigaction.c (__sigaction):
1857         Add libc_hidden_weak.
1858         * sysdeps/unix/sysv/linux/s390/s390-64/sigsuspend.c (__sigsuspend):
1859         Add libc_hidden_def.
1860         * sysdeps/unix/sysv/linux/hppa/syscalls.list (__GI___send): Add.
1861         * sysdeps/unix/sysv/linux/arm/sigaction.c (__sigaction): Add
1862         libc_hidden_weak.
1863         * sysdeps/unix/sysv/linux/i386/chown.c (__chown): Add libc_hidden_ver
1864         resp. libc_hidden_def.
1865         * sysdeps/unix/sysv/linux/i386/sigaction.c (__sigaction): Add
1866         libc_hidden_weak.
1867         * sysdeps/unix/sysv/linux/m68k/chown.c (__chown): Likewise.  Remove
1868         INTDEF.
1869         * sysdeps/unix/sysv/linux/m68k/getpagesize.c (__getpagesize):
1870         Likewise.  Remove undef.
1871         * sysdeps/unix/sysv/linux/mips/pwrite64.c (__pwrite64): Add
1872         libc_hidden_weak.
1873         * sysdeps/unix/sysv/linux/mips/syscalls.list (__GI___send): Add.
1874         * sysdeps/unix/sysv/linux/mips/sigaction.c (__sigaction): Add
1875         libc_hidden_weak.
1876         * sysdeps/unix/sysv/linux/powerpc/chown.c (__chown): Add
1877         libc_hidden_def.
1878         * sysdeps/unix/sysv/linux/powerpc/pwrite64.c (__pwrite64): Likewise.
1879         * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize.c (__getpagesize):
1880         Likewise.  Remove undef and INTDEF.
1881         * sysdeps/unix/sysv/linux/sparc/sparc32/pipe.S (__pipe): Add
1882         libc_hidden_def.
1883         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c (__sigaction): Add
1884         libc_hidden_weak.
1885         * sysdeps/unix/sysv/linux/sparc/sparc64/pipe.S (__pipe): Add
1886         libc_hidden_def.
1887         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list
1888         (__GI___pwrite64, __GI___statfs, __GI___select, __GI___send): Add.
1889         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c (__sigaction): Add
1890         libc_hidden_weak.
1891         * sysdeps/unix/sysv/linux/sparc/sparc64/sigsuspend.c (__sigsuspend):
1892         Add libc_hidden_def.
1893         * sysdeps/unix/sysv/linux/x86_64/syscalls.list (__GI___pwrite64,
1894         __GI___statfs): Add.
1895         * sysdeps/unix/sysv/linux/x86_64/send.c (__send): Add
1896         libc_hidden_weak.
1897         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (__sigaction): Likewise.
1898         * sysdeps/unix/sysv/linux/getpagesize.c: Add libc_hidden_def.
1899         Remove undef and INTDEF.
1900         * sysdeps/unix/sysv/linux/poll.c (__poll): Add libc_hidden_def.
1901         * sysdeps/unix/sysv/linux/pwrite64.c (__pwrite64): Add
1902         libc_hidden_def.
1903         * sysdeps/unix/sysv/linux/send.S (__send): Likewise.
1904         * sysdeps/unix/sysv/linux/sigaction.c (__sigaction): Add
1905         libc_hidden_weak.
1906         * sysdeps/unix/sysv/linux/sigsuspend.c (__sigsuspend): Add
1907         libc_hidden_def.
1908         * sysdeps/unix/sysv/sco3.2.4/__setpgid.c (__setpgid): Likewise.
1909         * sysdeps/unix/sysv/sco3.2.4/sigaction.S (__sigaction): Likewise.
1910         * sysdeps/unix/sysv/sysv4/solaris2/syscalls.list (__GI___sigaction):
1911         Add.
1912         * sysdeps/unix/sysv/sysv4/__getpgid.c (__getpgid): Add
1913         libc_hidden_def.  Remove undef and INTDEF.
1914         * sysdeps/unix/sysv/sysv4/getpgid.c (__getpgid): Likewise.
1915         * sysdeps/unix/sysv/sysv4/__setpgid.c (__setpgid): Add
1916         libc_hidden_def.
1917         * sysdeps/unix/sysv/sysv4/setpgid.c (__setpgid): Likewise.
1918         * sysdeps/unix/sysv/sysv4/sigaction.c (__sigaction): Likewise.
1919         * sysdeps/unix/sysv/sigaction.c (__sigaction): Likewise.
1920         * sysdeps/unix/getpagesize.c (__getpagesize): Add libc_hidden_def.
1921         Remove undef and INTDEF.
1922         * configure.in (HAVE_BROKEN_VISIBILITY_ATTRIBUTE): Add check for
1923         broken visibility attribute handling.
1924         * config.h.in (HAVE_BROKEN_VISIBILITY_ATTRIBUTE): Add.
1926 2002-08-02  Ulrich Drepper  <drepper@redhat.com>
1928         * locale/iso-639.def: Add entries for Venda and Nothern Sotho.
1929         Reported by Dwayne Bailey <dwayne@obsidian.co.za>.
1931         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr_r): Adapt
1932         previous patch.
1934 2002-06-29  Todd Fries  <todd@openbsd.org>
1936         * resolv/gethnamaddr.c (gethostbyaddr): Try ip6.int if ip6.arpa fails.
1938 2002-08-02  Jakub Jelinek  <jakub@redhat.com>
1940         * include/errno.h: Don't include tls.h if _ISOMAC is defined.
1942 2002-07-30  Roland McGrath  <roland@redhat.com>
1944         * resolv/resolv.h (_res): Define macro unconditionally.
1945         [! _LIBC_REENTRANT] (_res): Move this conditional decl to ...
1946         * include/resolv.h: ... here.
1947         [USE_TLS && HAVE___THREAD] (_res): #undef it and declare
1948         as a __thread variable.
1949         * resolv/res_libc.c [USE_TLS && HAVE___THREAD] (_res): Define it as
1950         a __thread variable instead of a global.
1951         * resolv/res_data.c [_LIBC]: Don't #undef _res.
1953         * include/errno.h: Include <tls.h> to make sure USE_TLS defined by the
1954         time we test it.
1956         * intl/loadmsgcat.c [__GNUC__]: #undef alloca before defining it.
1958         * malloc/malloc.c [_LIBC]: Include <string.h> instead of using local
1959         decls of memset and memcpy.
1961         * sysdeps/generic/sysdep.h (END): Conditionalize on [__ASSEMBLER__].
1962         * sysdeps/unix/sysv/linux/i386/sysdep.h (L): Likewise.
1964         * elf/dl-load.c (_dl_map_object_from_fd): Comment fix.
1966         * sysdeps/generic/bits/libc-tsd.h [USE_TLS && HAVE___THREAD]
1967         (__libc_tsd_define): Define using __thread.
1969         * sunrpc/rpc_thread.c: Use __libc_tsd_define.
1970         (__rpc_thread_variables): Use __libc_tsd_get.
1971         (__rpc_thread_destroy): Use __libc_tsd_get instead of calling
1972         __rpc_thread_variables, which might allocate what we're about to free.
1974         * inet/herrno.c [USE_TLS && HAVE___THREAD] (h_errno): Define as a
1975         thread-local variable.
1976         * resolv/netdb.h (h_errno): Define macro unconditionally.
1977         [_LIBC] (__set_h_errno): Macro moved to ...
1978         * include/netdb.h: ... here.
1979         [USE_TLS && HAVE___THREAD] (h_errno): Declare __thread variable.
1980         [USE_TLS && HAVE___THREAD] (__set_h_errno): Define using that.
1981         [! _LIBC_REENTRANT]: #undef h_errno here.
1983         * include/errno.h: Protect from multiple inclusion.
1985         * misc/sys/select.h (__NFDBITS, __FDELT, __FDMASK): #undef these
1986         before defining them, since Linux's <linux/posix_types.h> might have
1987         defined them.
1989 2002-08-02  Jakub Jelinek  <jakub@redhat.com>
1991         * malloc/malloc.c (public_cALLOc): Check for overflow on
1992         multiplication.
1993         * sunrpc/xdr_array.c (xdr_array): Likewise.
1994         * sunrpc/rpc/types.h (mem_free): Add comment.
1995         Patch by Solar Designer <solar@openwall.com>.
1997 2002-08-02  Jakub Jelinek  <jakub@redhat.com>
1999         * sysdeps/unix/sysv/linux/kernel-features.h
2000         (__ASSUME_SET_THREAD_AREA_SYSCALL): Define.
2002 2002-08-01  Roland McGrath  <roland@redhat.com>
2004         * libio/fileops.c (_IO_file_sync_mmap): New function.
2005         (_IO_file_jumps_mmap): Use it.
2006         (_IO_file_underflow_mmap): Rewritten.  If after EOF or fflush,
2007         repeat the stat check and resize the mapped buffer as necessary.
2009 2002-07-31  Roland McGrath  <roland@redhat.com>
2011         * libio/fileops.c (decide_maybe_mmap): New static function.
2012         Code taken from libio/iofopen.c:__fopen_maybe_mmap to try to
2013         mmap the file contents.  Then switch the jump tables to the mmap
2014         tables if it worked, or the vanilla file tables if not.
2015         (_IO_file_underflow_maybe_mmap): New function.
2016         (_IO_file_seekoff_maybe_mmap): New function.
2017         (_IO_file_xsgetn_maybe_mmap): New function.
2018         (_IO_file_jumps_maybe_mmap): New variable, jump table using those.
2019         * libio/libioP.h: Declare those.
2020         * libio/wfileops.c (_IO_wfile_underflow_maybe_mmap): New function.
2021         (_IO_wfile_jumps_maybe_mmap): New variable, jump table using that.
2022         * libio/iofopen.c (__fopen_maybe_mmap): Don't try to mmap here.
2023         If the stream is read-only, set its jump tables to those new ones.
2024         * libio/iofdopen.c (_IO_new_fdopen) [_G_HAVE_MMAP]: Set the initial
2025         jump tables to the maybe_mmap ones, and don't call __fopen_maybe_mmap.
2026         We need the tables set before _IO_file_attach.
2028         * libio/tst-mmap-eofsync.c: New file.
2029         * libio/tst-mmap-fflushsync.c: New file.
2030         * libio/bug-mmap-fflush.c: New file.
2031         * libio/tst-mmap2-eofsync.c: New file.
2032         * libio/Makefile (tests): Add them.
2034         * libio/wfileops.c (_IO_wfile_underflow_mmap): Don't set EOF bit when
2035         _IO_file_underflow_mmap fails, it already set the appropriate bit.
2037 2002-07-31  Jeff Bailey  <jbailey@gnu.org>
2039         * libio/stdio.h (sys_errlist, sys_nerr, _sys_errlist, _sys_nerr):
2040         Declarations moved to <bits/sys_errlist.h>.  Include that file.
2041         * libio/Makefile (headers): Add bits/sys_errlist.h to the list.
2042         * sysdeps/generic/bits/sys_errlist.h: New file.  This does *not*
2043         declare sys_errlist and sys_nerr.
2044         * sysdeps/unix/sysv/linux/bits/sys_errlist.h: New file.  Does
2045         provide declarations.
2047 2002-07-31  Roland McGrath  <roland@redhat.com>
2049         * elf/rtld.c (dl_main): Fix typo in error message.
2051 2002-07-31  Roland McGrath  <roland@frob.com>
2053         * sysdeps/mach/hurd/Versions (ld: GLIBC_2.0): __fxstat -> __fxstat64,
2054         __xstat -> __xstat64, __lseek -> __libc_lseek64.  Completes 2002-06-09
2055         sysdeps/mach/hurd/dl-sysdep.c change.
2057 2002-07-28  Ulrich Drepper  <drepper@redhat.com>
2059         * sysdeps/unix/sysv/linux/configure.in: Check /lib/modules/`uname
2060         -r`/build/include for kernel headers.
2062         * po/fi.po: New file.
2064 2002-07-15  Alexandre Oliva  <aoliva@redhat.com>
2066         * configure.in (static_nss): Set to `yes' if --disable-shared.
2068 2002-07-23  Bruno Haible  <bruno@clisp.org>
2070         * intl/loadmsgcat.c (PRI*): Redefine the macros if PRI_MACROS_BROKEN
2071         is set.
2073 2002-07-25  Jakub Jelinek  <jakub@redhat.com>
2075         * sysdeps/unix/sysv/linux/ia64/sigcontextinfo.h: New file.
2076         * sysdeps/unix/sysv/linux/ia64/profil-counter.h: Fix profil_counter
2077         arguments.
2079 2002-07-25  Jakub Jelinek  <jakub@redhat.com>
2081         * sysdeps/unix/sysv/linux/alpha/adjtime.c (__adjtimex_internal): Add
2082         alias.
2084 2002-07-21  Bruno Haible  <bruno@clisp.org>
2086         * intl/libintl.h (__GNU_GETTEXT_SUPPORTED_REVISION): New macro.
2087         * intl/gettext.h (struct mo_file_header): New fields n_sysdep_segments,
2088         sysdep_segments_offset, n_sysdep_strings, orig_sysdep_tab_offset,
2089         trans_sysdep_tab_offset.
2090         (struct sysdep_segment): New type.
2091         (struct sysdep_string): New type.
2092         (SEGMENTS_END): New macro.
2093         * intl/gettextP.h (struct sysdep_string_desc): New type.
2094         (struct loaded_domain): New fields malloced, n_sysdep_strings,
2095         orig_sysdep_tab, trans_sysdep_tab, must_swap_hash_tab. Make fields
2096         orig_tab, trans_tab, hash_tab to const pointers because they point
2097         into read-only memory.
2098         * intl/loadmsgcat.c: Include stdint.h, inttypes.h, hash-string.h.
2099         (PRI*): Define fallback values.
2100         (get_sysdep_segment_value): New function.
2101         (_nl_load_domain): Distinguish major and minor revision parts. Add
2102         support for minor revision 1 with system dependent strings.
2103         (_nl_unload_domain): Also free the 'malloced' field.
2104         * intl/dcigettext.c (_nl_find_msg): Remove test for domain->hash_size,
2105         now done in loadmsgcat.c. Add support for system dependent strings.
2107 2002-07-16  Stepan Kasal  <kasal@math.cas.cz>
2109         * posix/bug-regex7.c: New file.
2110         * posix/bug-regex8.c: New file.
2111         * posix/Makefile (tests): Add bug-regex7 and bug-regex8.
2113 2002-07-16  Stepan Kasal  <kasal@math.cas.cz>
2115         * posix/bug-regex4.c (main): Fix typos.
2116         * posix/bug-regex6.c (main): Likewise.
2118 2002-07-27  Ulrich Drepper  <drepper@redhat.com>
2120         * posix/bug-regex6.c (main): Fix warnings.
2122         * iconvdata/Makefile (CPPFLAGS): Add NOT_IN_libc.
2124         * iconv/iconv_prog.c (main): Improve error message for the cases
2125         where -t and/or -f parameter are missing.
2127 2002-07-10  Stepan Kasal  <kasal@math.cas.cz>
2129         * posix/regexec.c (re_match): Reorganize to remove duplicate code.
2130         (re_search): Likewise.
2131         (re_match_2): Likewise.
2132         (re_search_2): Likewise.
2133         (re_search_stub): New function.
2134         (re_search_2_stub): New function.
2135         * regcomp.c (re_compile_pattern): Typo in a comment fixed.
2137 2002-07-10  Isamu Hasegawa  <isamu@yamato.ibm.com>
2139         * posix/regex_internal.h: Add new member STOP to struct re_string_t.
2140         (re_string_eoi): Use STOP instead of LEN.
2141         * posix/regex_internal.c (re_string_allocate): Initialize pstr->len.
2142         (re_string_construct): Likewise.
2143         (re_string_reconstruct): Adjust pstr->stop like pstr->len.
2144         * posix/regexec.c (re_search_internal): Add a new argument STOP
2145         so that it can handle the argument STOP of re_search_2 and re_match_2
2146         correctly.
2147         (regexec): Adapt to new I/F of re_search_internal.
2148         (re_search_stub): Likewise.
2150 2002-07-25  Ulrich Drepper  <drepper@redhat.com>
2152         * sunrpc/clnt_gen.c: Don't include <sys/errno.h>.
2154         * elf/dl-minimal.c: Remove definition of __assert_perror_fail.
2156         * sysdeps/wordsize-32/divdi3.c: Define __divdi3_internal.
2157         * sysdeps/wordsize-32/lldiv.c: Make gcc use __divdi3_internal instead
2158         of __divdi3.
2160         * sysdeps/unix/sysv/linux/adjtime.c: Use __adjtimex_internal.
2161         * sysdeps/unix/sysv/linux/ntp_gettime.c: Likewise.
2162         * sysdeps/unix/sysv/linux/syscalls.list: Add __adjtimex_internal
2163         alias for adjtimex syscall.
2165         * elf/dl-minimal.c: Define __assert_fail_internal.
2166         * assert/assert.c: Likewise.
2167         * include/assert.h: Define __assert_file macro if !SHARED and not
2168         NOT_IN_libc.
2170         * iconv/Makefile: Define NOT_IN_libc for objects in standalone
2171         programs.
2172         * locale/Makefile: Likewise.
2173         * nscd/Makefile: Likewise.
2174         * catgets/Makefile: Likewise.
2176 2002-07-24  Ulrich Drepper  <drepper@redhat.com>
2178         * libio/fileops.c (_IO_file_seekoff_mmap): Do use fp->_offset to
2179         compute current position.
2181         * stdio-common/tst-fseek.c (main): Improve error messages.
2183         * libio/tst-freopen.c (main): Remove unused variable.
2185         * libio/fileops.c (_IO_file_seekoff_mmap): Set fp->_offset after
2186         succesful seek call.  Simplify error checking.
2188 2002-07-25  Jakub Jelinek  <jakub@redhat.com>
2190         * config.h.in: Use __ASSEMBLER__ test macro not ASSEMBLER.
2191         * sysdeps/ia64/fpu/libm_support.h: Likewise.
2193 2002-07-19  Roland McGrath  <roland@frob.com>
2195         * hurd/hurdsig.c (_hurdsig_getenv): Always return null if
2196         __libc_enable_secure is set.
2198 2002-07-24  Roland McGrath  <roland@frob.com>
2200         Added <ifaddrs.h> interface with functions `getifaddrs', `freeifaddrs'.
2201         This implementation supports only IPv4.
2202         * inet/ifaddrs.h: New file.
2203         * sysdeps/generic/ifaddrs.c: New file.
2204         * sysdeps/gnu/ifaddrs.c: New file.
2205         * inet/test-ifaddrs.c: New file.
2206         * inet/Makefile (routines): Add ifaddrs.
2207         (headers): Add ifaddrs.h here.
2208         (tests): Add test-ifaddrs.
2209         * inet/Versions (GLIBC_2.3): New set, add getifaddrs and freeifaddrs.
2211         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Use an explicit
2212         socket call to get an AF_INET socket, instead of using __opensock.
2213         The SIOCGIFNETMASK ioctl will work only with a PF_INET socket.
2215         * sysdeps/generic/ifreq.h (__ifreq): Take third argument SOCKFD,
2216         if not -1 use it instead of calling __opensock.
2217         * sysdeps/unix/sysv/linux/ifreq.h (__ifreq): Likewise.
2218         * sysdeps/mach/hurd/ifreq.h (__ifreq): Take new argument and ignore it.
2219         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Pass new argument.
2221         * sysdeps/mach/hurd/ifreq.h: New file.
2222         * sysdeps/generic/ifreq.h (__if_freereq): Take second argument NUM_IFS.
2223         * sysdeps/unix/sysv/linux/ifreq.h (__if_freereq): Likewise.
2224         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Update caller.
2226         * libio/fileops.c (_IO_file_seekoff_mmap): Don't rely on FP->_offset,
2227         which gets moved around.  Calculate size of mmap'd buffer instead.
2229 2002-07-24  Philip Blundell  <philb@gnu.org>
2231         * sysdeps/unix/arm/brk.S: Improve schedule.
2232         * sysdeps/unix/sysv/linux/arm/socket.S (PUSHARGS_1): Use more
2233         efficient instruction.
2234         (__socket): Optimize return sequence.
2236 2002-07-24  Ulrich Drepper  <drepper@redhat.com>
2238         * sysdeps/unix/sysv/linux/opensock.c (__opensock): Prefer inet
2239         sockets on old kernels.
2241 2002-07-22  Philip Blundell  <philb@gnu.org>
2243         * sysdeps/unix/sysv/linux/arm/errlist.c: Remove extra weak alias
2244         definiton of _old_sys_nerr.  Define _old_sys_errlist as strong
2245         alias.
2247 2002-07-24  Ulrich Drepper  <drepper@redhat.com>
2249         * locale/hashval.h: Make more self-contained by defining LONG_BITS.
2250         * locale/programs/simple-hash.c: Remove LONG_BITS definition.
2252         * locale/programs/locarchive.c (add_locale_to_archive): Correct
2253         test to detect duplicate locales.
2255         * libio/fileops.c (_IO_new_file_seekoff): Fail if relative
2256         position would be before beginning of file.
2257         (_IO_file_seekoff_mmap): Likewise.
2258         * libio/Makefile (tests): Add bug-fseek.
2259         * libio/bug-fseek.c: New file.
2261         * intl/explodename.c: Remove support for CEN-style locale variables.
2262         It was never used and shouldn't be since it's not portable.
2263         * intl/finddomain.c: Likewise.
2264         * intl/l10nflist.c: Likewise.
2265         * intl/loadinfo.h: Likewise.
2266         * locale/findlocale.c: Likewise.
2268 2002-07-24  Roland McGrath  <roland@frob.com>
2270         * libio/fileops.c (_IO_file_seekoff_mmap): When just examining the
2271         position, calculate it to take into account an active pushback buffer.
2273         * libio/Makefile (tests): Add bug-ungetc.
2274         * libio/bug-ungetc.c: New file.
2276 2002-07-23  Ulrich Drepper  <drepper@redhat.com>
2278         * sysdeps/generic/libc-tls.c: New file.
2279         * csu/Makefile (routines): Add libc-tls.
2280         (static-only-routines): Add libc-tls.
2281         * elf/dl-support.c (_dl_phdr): New variable.
2282         (_dl_phnum): New variable.
2283         (_dl_aux_init): Initialize _dl_phdr and _dl_phnum from aux vector.
2284         * sysdeps/generic/libc-start.c (__libc_start_main): Reorganize code
2285         for !SHARED.  First look through auxiliary vector.  If TLS always
2286         call __pthread_initialize_minimal.
2288         * sysdeps/generic/dl-tls.c (_dl_allocate_tls): Make sure size argument
2289         in mmap call is never zero.
2291 2002-07-23  Andreas Jaeger  <aj@suse.de>
2293         * sysdeps/x86_64/fpu/s_copysign.S: Use optimized version.
2294         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
2296 2002-07-22  Ulrich Drepper  <drepper@redhat.com>
2298         * libio/tst-eof.c: Rewrite to let test-skeleton.c deal with
2299         creation and removal of the temp file.
2301         * libio/bug-rewind.c: Use test skeleton.  Use create_temp_file for
2302         file creation.
2303         * test-skeleton.c (create_temp_file): New function.
2305 2002-07-22  Andreas Jaeger  <aj@suse.de>
2307         * sysdeps/x86_64/dl-machine.h (elf_machine_load_address): Use
2308         local label.
2310 2002-07-21  Roland McGrath  <roland@frob.com>
2312         * wcsmbs/Makefile (strtox-CFLAGS): New variable,
2313         put -I../include before -I../stdlib so we get the right errno.h et al.
2314         (CFLAGS-wcstod.c): Use that variable instead of -I../stdlib.
2315         (CFLAGS-wcstof.c): Likewise.
2316         (CFLAGS-wcstold.c): Likewise.
2317         (CFLAGS-wcstod_l.c): Likewise.
2318         (CFLAGS-wcstof_l.c): Likewise.
2319         (CFLAGS-wcstold_l.c): Likewise.
2321 2002-07-19  Roland McGrath  <roland@frob.com>
2323         * sysdeps/mach/hurd/errnos.awk: Remove __set_errno defn from output.
2325 2002-07-20  Ulrich Drepper  <drepper@redhat.com>
2327         * sysdeps/unix/sysv/linux/ldsodefs.h (HAVE_AUX_XID): Define if
2328         __ASSUME_AT_XID is defined.
2329         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_AT_XID): Define
2330         for 2.4.1 and up.
2331         * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Optimize handling
2332         of AT_UID, AT_EUID, AT_GID, and AT_EGID.
2334         * wcsmbs/Makefile (CFLAGS-wcstod.c): Add -I../stdlib.
2335         (CFLAGS-wcstof.c): Likewise.
2336         (CFLAGS-wcstold.c): Likewise.
2337         (CFLAGS-wcstod_l.c): Likewise.
2338         (CFLAGS-wcstof_l.c): Likewise.
2339         (CFLAGS-wcstold_l.c): Likewise.
2341 2002-07-18  Jakub Jelinek  <jakub@redhat.com>
2343         * resource/sys/resource.h (__rlimit_resource_t, __rusage_who_t,
2344         __priority_which_t): Always typedef to int for C++.
2346 2002-07-19  Ulrich Drepper  <drepper@redhat.com>
2348         * configure.in: Add test for __thread support in compiler.
2349         * config.h.in: Add HAVE___THREAD.
2350         * Makefile (headers): Remove errno.h, sys/errno.h, and bits/errno.h.
2351         * include/sys/errno.h: Moved to...
2352         * stdlib/sys/errno.h: ...here.  New file.
2353         * stdlib/errno.h: New file.  Moved from...
2354         * include/errno.h: ...here.  Changed into an internal header defining
2355         libc-local things like __set_errno.
2356         * stdlib/Makefile (headers): Add errno.h, sys/errno.h, and
2357         bits/errno.h.
2358         * elf/dl-minimal.c: Include <tls.h>.  Define errno as thread-local
2359         variable if USE_TLS && HAVE___THREAD.  Don't define __errno_location
2360         either.
2361         * elf/rtld.c (_dl_start): Add code to initialize TLS for ld.so
2362         from...
2363         (_dl_start_final): ...here.  Add code to initialize tls elements from
2364         bootstrap_map.
2365         * sysdeps/generic/errno-loc.c: Define errno as thread-local variable
2366         if USE_TLS && HAVE___THREAD.
2367         * sysdeps/generic/bits/errno.h: Remove __set_errno definition.
2368         * sysdeps/mach/hurd/bits/errno.h: Likewise.
2369         * sysdeps/standalone/arm/bits/errno.h: Likewise.
2370         * sysdeps/standalone/bits/errno.h: Likewise.
2371         * sysdeps/unix/bsd/bsd4.4/bits/errno.h: Likewise.
2372         * sysdeps/unix/sysv/aix/bits/errno.h: Likewise.
2373         * sysdeps/unix/sysv/hpux/bits/errno.h: Likewise.
2374         * sysdeps/unix/sysv/linux/bits/errno.h: Likewise.
2375         * sysdeps/unix/sysv/linux/hppa/bits/errno.h: Likewise.
2376         * sysdeps/unix/sysv/linux/mips/bits/errno.h: Likewise.
2377         * sysdeps/unix/sysv/sysv4/solaris2/bits/errno.h: Likewise.
2378         * sysdeps/i386/dl-machine.c (elf_machine_rel) [RTLD_BOOTSTRAP]: Don't
2379         use GL(dl_rtld_map), use map parameter.
2380         * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
2381         * sysdeps/unix/sysv/linux/i386/sysdep.S: Define errno in .tbss if
2382         USE_TLS && HAVE___THREAD.
2383         * sysdeps/unix/sysv/linux/i386/sysdep.h: Unify SETUP_PIC_REG
2384         definitions.  If USE_TLS && HAVE___THREAD store errooor value using
2385         TLS code sequence.
2386         * sysdeps/unix/sysv/linux/i386/i686/sysdep.h: Likewise.
2388         * sysdeps/unix/sysv/linux/getcwd.c: No real need to restore errno.
2389         * sysdeps/unix/sysv/linux/grantpt.c: Likewise.
2390         * sysdeps/unix/sysv/linux/internal_statvfs.c: Likewise.
2391         * sysdeps/unix/sysv/linux/msgctl.c: Likewise.
2392         * sysdeps/unix/sysv/linux/readv.c: Likewise.
2393         * sysdeps/unix/sysv/linux/writev.c: Likewise.
2395 2002-07-17  Ulrich Drepper  <drepper@redhat.com>
2397         * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Fix MS_SYNC and
2398         MS_INVALIDATE values.
2400 2002-07-17  Andreas Schwab  <schwab@suse.de>
2401             Ulrich Drepper  <drepper@redhat.com>
2403         * sysdeps/unix/sysv/linux/pread.c: Sign extend offset.
2404         * sysdeps/unix/sysv/linux/pwrite.c: Likewise.
2405         * sysdeps/unix/sysv/linux/mips/pread.c: Likewise.
2406         * sysdeps/unix/sysv/linux/mips/pwrite.c: Likewise.
2408 2002-07-01  H.J. Lu  <hjl@gnu.org>
2410         * elf/circleload1.c (load_dso): Call "circlemod1" and check
2411         return value.
2413         * elf/circlemod1.c (circlemod1): Return int.
2414         * elf/circlemod2.c (circlemod2): Likewise.
2415         * elf/circlemod2a.c (circlemod2): Likewise.
2416         * elf/circlemod3.c (circlemod3): Likewise.
2417         (circlemod3a): A new function.
2419 2002-07-16  Ulrich Drepper  <drepper@redhat.com>
2421         * catgets/tst-catgets.c (main): Don't expect results for
2422         untranslated messages.
2424         * glibcbug.in: Fix little typo.  Remove STDIO.
2426         * config.h.in: Fail if __FAST_MATH__ is defined.
2427         * math/Makefile (CPPFLAGS-test-ifloat.c): Also define TEST_FAST_MATH.
2428         (CPPFLAGS-test-idouble.c): Likewise.
2429         (CPPFLAGS-test-ildouble.c): Likewise.
2431 2002-07-15  Ulrich Drepper  <drepper@redhat.com>
2433         * intl/tst-gettext.sh: Pass -f option to msgfmt.
2434         * intl/tst-gettext.c: Correctly handle untranslated messages in
2435         positive tests.
2437         * po/de.po: Update from translation team.
2439 2002-07-02  H.J. Lu  <hjl@gnu.org>
2441         * sysdeps/mips/atomicity.h: Don't include <sgidefs.h>.  Always
2442         use ll/sc.
2443         * sysdeps/unix/sysv/linux/mips/sys/tas.h: Likewise.
2445         * sysdeps/unix/sysv/linux/configure.in: Set arch_minimum_kernel
2446         to 2.4.0 for mips.
2448 2002-07-15  Ulrich Drepper  <drepper@redhat.com>
2450         * elf/dl-load.c (_dl_map_object_from_fd): If loaded object uses
2451         TLS fail if USE_TLS is not defined.
2453         * libio/wfileops.c (_IO_wfile_seekoff): Reposition wide pointers
2454         and adjust state for seek position.  [PR libc/4070]
2455         * libio/Makefile (tests): Add bug-rewind.
2456         * libio/bug-rewind.c: New file.
2458 2002-07-12  Philip Blundell  <philb@gnu.org>
2460         * sysdeps/generic/backtrace.c (FIRST_FRAME_POINTER): New macro.
2461         (__backtrace): Use it.
2462         * sysdeps/arm/frame.h (FIRST_FRAME_POINTER): Define.  [PR libc/2632]
2464 2002-07-12  Philip Blundell  <philb@gnu.org>
2466         * sysdeps/arm/dl-machine.h (elf_machine_rel): Don't handle
2467         R_ARM_RELATIVE if RTLD_BOOTSTRAP and HAVE_Z_COMBRELOC.  Only check
2468         for rtld map if neither RTLD_BOOTSTRAP nor HAVE_Z_COMBRELOC is defined.
2469         (elf_machine_rela): Remove unused variable.
2471         * sysdeps/unix/sysv/linux/arm/Makefile [subdir=elf]
2472         (sysdep-rtld-routines, sysdep_routines, sysdep-dl-routines): Don't
2473         define.
2475 2002-07-12  Ulrich Drepper  <drepper@redhat.com>
2477         * iconvdata/gconv-modules: Add aliases for ISO-8859-11.
2479 2002-07-14  Andreas Jaeger  <aj@suse.de>
2481         * sysdeps/x86_64/bits/link.h: Add biarch support.
2483 2002-07-13  Andreas Jaeger  <aj@suse.de>
2485         * sysdeps/unix/sysv/linux/mips/register-dump.h (register_dump):
2486         Use correct indices.
2487         Patch by Eliot Dresselhaus <eliot@ayrnetworks.com>.
2489 2002-07-09  Martin Schwidefsky  <schwidefsky@de.ibm.com>
2491         * sysdeps/s390/bits/byteswap.h: Unified 31/64 bit byteswap.h.
2492         * sysdeps/s390/s390-32/bits/byteswap.h: Remove.
2493         * sysdeps/s390/s390-64/bits/byteswap.h: Remove.
2494         * sysdeps/s390/bits/link.h: Unified 31/64 bit link.h.
2495         * sysdeps/s390/s390-32/bits/link.h: Remove.
2496         * sysdeps/s390/s390-64/bits/link.h: Remove.
2497         * sysdeps/s390/bits/setjmp.h: Unified 31/64 bit setjmp.h.
2498         * sysdeps/s390/s390-32/bits/setjmp.h: Remove.
2499         * sysdeps/s390/s390-64/bits/setjmp.h: Remove.
2500         * sysdeps/s390/bits/wordsize.h: New file.
2501         * sysdeps/unix/sysv/linux/s390/bits/elfclass.h: Unified 31/64 bit
2502         elfclass.h.
2503         * sysdeps/unix/sysv/linux/s390/s390-64/bits/elfclass.h: Remove.
2504         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Unified 31/64 bit fcntl.h.
2505         * sysdeps/unix/sysv/linux/s390/s390-32/bits/fcntl.h: Remove.
2506         * sysdeps/unix/sysv/linux/s390/s390-64/bits/fcntl.h: Remove.
2507         * sysdeps/unix/sysv/linux/s390/bits/ipc.h: Unified 31/64 bit ipc.h.
2508         * sysdeps/unix/sysv/linux/s390/s390-64/bits/ipc.h: Remove.
2509         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Unified 31/64 bit mman.h.
2510         * sysdeps/unix/sysv/linux/s390/s390-32/bits/mman.h: Remove.
2511         * sysdeps/unix/sysv/linux/s390/s390-64/bits/mman.h: Remove.
2512         * sysdeps/unix/sysv/linux/s390/bits/msq.h: Unified 31/64 bit msq.h.
2513         * ysdeps/unix/sysv/linux/s390/s390-64/bits/msq.h: Remove.
2514         * sysdeps/unix/sysv/linux/s390/bits/resource.h: Unified 31/64 bit
2515         resource.h.
2516         * sysdeps/unix/sysv/linux/s390/s390-32/bits/resource.h: Remove.
2517         * sysdeps/unix/sysv/linux/s390/s390-64/bits/resource.h: Remove.
2518         * sysdeps/unix/sysv/linux/s390/bits/sem.h: Unified 31/64 bit sem.h.
2519         * sysdeps/unix/sysv/linux/s390/s390-64/bits/sem.h: Remove.
2520         * sysdeps/unix/sysv/linux/s390/bits/shm.h: Unified 31/64 bit shm.h.
2521         * sysdeps/unix/sysv/linux/s390/s390-64/bits/shm.h: Remove.
2522         * sysdeps/unix/sysv/linux/s390/bits/sigaction.h: Unified 31/64 bit
2523         sigaction.h.
2524         * sysdeps/unix/sysv/linux/s390/s390-64/bits/sigaction.h: Remove.
2525         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Unified 31/64 bit
2526         siginfo.h.
2527         * sysdeps/unix/sysv/linux/s390/s390-64/bits/siginfo.h: Remove.
2528         * sysdeps/unix/sysv/linux/s390/s390-64/bits/sigstack.h: Remove.
2529         * sysdeps/unix/sysv/linux/s390/bits/socket.h: Unified 31/64 bit
2530         socket.h.
2531         * sysdeps/unix/sysv/linux/s390/s390-64/bits/socket.h: Remove.
2532         * sysdeps/unix/sysv/linux/s390/bits/stat.h: Unified 31/64 bit stat.h.
2533         * sysdeps/unix/sysv/linux/s390/s390-32/bits/stat.h: Remove.
2534         * sysdeps/unix/sysv/linux/s390/s390-64/bits/stat.h: Remove.
2535         * sysdeps/unix/sysv/linux/s390/bits/types.h: Unified 31/64 bit types.h.
2536         * sysdeps/unix/sysv/linux/s390/s390-64/bits/types.h: Remove.
2537         * sysdeps/unix/sysv/linux/s390/net/route.h: New file.
2538         * sysdeps/unix/sysv/linux/s390/sys/procfs.h: Unified 31/64 bit
2539         procfs.h.
2540         * sysdeps/unix/sysv/linux/s390/s390-32/sys/procfs.h: Remove.
2541         * sysdeps/unix/sysv/linux/s390/s390-64/sys/procfs.h: Remove.
2542         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h: Unified 31/64 bit
2543         ucontext.h.
2544         * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Remove.
2545         * sysdeps/unix/sysv/linux/s390/s390-64/sys/ucontext.h: Remove.
2547 2002-07-11  Ulrich Drepper  <drepper@redhat.com>
2549         * Versions.def (libc): Add GLIBC_2.3.
2550         * stdlib/Versions [libc] (GLIBC_2.3): Add realpath.
2551         * stdlib/canonicalize.c: Add compatibility version for realpath
2552         and make new code available in GLIBC_2.3.
2554 2002-07-06  Bruno Haible  <bruno@clisp.org>
2556         * malloc/hooks.c (public_gET_STATe): Access max_total_mem in mp_.
2558 2002-07-11  Ulrich Drepper  <drepper@redhat.com>
2560         * resolv/res_hconf.c (_res_hconf_init): Move code into new
2561         function do_init.  Use __libc_once.
2562         (do_init): New function.
2564         * iconvdata/iso8859-11.h: Removed.
2565         * iconvdata/Makefile (gen-8bit-gap-modules): Add iso8859-11.
2566         (distribute): Remove iso8859-11.h.
2567         * iconvdata/tst-tables.sh: Add ISO-8859-11.
2569         * stdio-common/vfscanf.c (inchar): Restore errno from previous
2570         underflow operation if c == (W)EOF.
2572 2002-07-03  Jakub Jelinek  <jakub@redhat.com>
2574         * stdio-common/printf_fp.c (__printf_fp): If _FPIO_CONST_SHIFT is
2575         non-zero, adjust exponent.
2576         * sysdeps/ieee754/ldbl-128/s_erfl.c (__erfl, erfl, __erfcl, erfcl):
2577         Remove NO_LONG_DOUBLE aliases.
2578         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l, expm1l): Likewise.
2579         * sysdeps/ieee754/ldbl-128/s_log1pl.c (__log1pl, log1pl): Likewise.
2580         (__log1pl): Raise divide by zero and invalid exceptions when needed.
2581         * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Special case
2582         1**y and -1**+-Inf.
2583         * sysdeps/ieee754/ldbl-128/ldbl2mpn.c (__mpn_extract_long_double):
2584         Fix BITS_PER_MP_LIMB 32 extraction.
2585         * sysdeps/ieee754/ldbl-128/e_log2l.c (__ieee754_log2l): Don't raise
2586         exceptions for qNaNs.
2587         * sysdeps/ieee754/ldbl-128/e_log10l.c (__ieee754_log10l): Likewise.
2588         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgamma_r):
2589         Raise exceptions when needed.  Don't recurse unnecessarily.
2590         Special case 1.0L and 2.0L arguments to avoid -0.0L as result.
2591         * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_y0l): Don't raise
2592         exceptions for qNaNs.
2593         * sysdeps/ieee754/ldbl-128/s_remquol.c (__remquol): Make qs 64-bit
2594         to fix *quo return value sign.
2595         * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gamma_r): Special
2596         case -Inf argument.
2597         * soft-fp/op-4.h (_FP_FRAC_CLZ_4): Fix a pasto.
2599 2002-07-01  Jakub Jelinek  <jakub@redhat.com>
2601         * libio/tst-eof.c (do_test): Remove unused ch and tm variables.
2602         * iconvdata/iso-2022-jp-3.c (EMIT_SHIFT_TO_INIT): Kill warnings if
2603         -DNDEBUG.
2605 2002-07-10  Ulrich Drepper  <drepper@redhat.com>
2607         * malloc/hooks.c (realloc_check): If mremap succeeds actually use
2608         the result.
2610         * sysdeps/i386/i486/bits/string.h: Add early clobber for "a"
2611         output parameter.  Reported by Denis Zaitsev <zzz@cd-club.ru>.
2613         * Versions.def (libthread_db): Add GLIBC_2.3.
2615 2002-07-09  Jakub Jelinek  <jakub@redhat.com>
2617         * libio/freopen.c (freopen): Reset jump tables, use mmap stdio for the
2618         new stream if possible.
2619         * libio/freopen64.c (freopen64): Likewise.
2620         * libio/Makefile (tests): Add tst-freopen.
2621         * libio/tst-freopen.c: New file.
2623 2002-07-03  Jakub Jelinek  <jakub@redhat.com>
2625         * libio/stdio.h (obstack_printf): Add format attribute.
2626         (obstack_vprintf): Likewise.
2628 2002-07-04  Jakub Jelinek  <jakub@redhat.com>
2630         * posix/regex_internal.h (re_token_t): Shrink the structure to 8
2631         resp. 16 bytes on 32-bit resp. 64-bit platforms.
2632         (re_charset_t, re_string_t): Reorder structure members for 64-bit
2633         architectures.
2635 2002-07-04  Jakub Jelinek  <jakub@redhat.com>
2637         * posix/regcomp.c (re_compile_internal): Move clearing of dfa...
2638         (init_dfa): ...here.
2640 2002-07-05  Isamu Hasegawa  <isamu@yamato.ibm.com>
2642         * posix/regcomp.c (parse_sub_exp): Add nodes OP_OPEN_SUBEXP and
2643         OP_CLOSE_SUBEXP at both ends of sub expressions instead of SUBEXP
2644         nodes in parse trees.
2645         (calc_first): Fix the Definition of `firsts' of OP_OPEN_SUBEXP
2646         and OP_CLOSE_SUBEXP, and remove the definition of SUBEXP.
2647         (calc_epsdest): Treat OP_OPEN_SUBEXP and OP_CLOSE_SUBEXP as the
2648         nodes which can epsilon transit.
2649         * posix/regex_internal.h: Add OP_OPEN_SUBEXP and OP_CLOSE_SUBEXP
2650         to IS_EPSILON_NODE macro.
2651         * posix/regexec.c (update_regs): New function to update registers
2652         by refering OP_OPEN_SUBEXP and OP_CLOSE_SUBEXP nodes.
2653         (proceed_next_node): Use the entities of the nodes to determine
2654         whether the node can transit to.
2655         (set_regs): Use update_regs function to update registers.
2657 2002-07-03  Jakub Jelinek  <jakub@redhat.com>
2659         * posix/bug-regex4.c (main): Remove duplicate setlocale.
2660         * posix/bug-regex6.c: New file.
2661         * posix/Makefile (tests): Add bug-regex6.
2662         (bug-regex6-ENV): Set LOCPATH.
2664 2002-07-10  Ulrich Drepper  <drepper@redhat.com>
2666         * Versions.def [libpthread]: Add GLIBC_2.2.6.
2667         * posix/Versions [libc] (GLIBC_2.2.6): Add __nanosleep.
2669 2002-07-06  Bruno Haible  <bruno@clisp.org>
2671         * sysdeps/unix/sysv/sysv4/bits/sigset.h (__NSSBITS): Correct value.
2673 2002-07-06  Bruno Haible  <bruno@clisp.org>
2675         * include/sys/socket.h (__libc_sendto, __libc_recvfrom): New
2676         declarations.
2678         * sysdeps/i386/fpu/libm-test-ulps: Add some ulps for AMD K7.
2680         * rt/Makefile (tests): Don't add tst-aio* in a single-threaded build.
2682         * sysdeps/unix/bsd/sun/sunos4/bits/utsname.h: Test for _SYS_UTSNAME_H,
2683         not _UTSNAME_H.
2684         * sysdeps/unix/bsd/ultrix4/bits/utsname.h: Likewise.
2686         * sysdeps/generic/bits/stropts.h: Protect against direct inclusion.
2687         * sysdeps/generic/bits/ustat.h: Likewise.
2689         * sysdeps/unix/sysv/linux/bits/statvfs.h (ST_NODIRATIME): Set to 2048.
2691 2002-07-08  Andreas Jaeger  <aj@suse.de>
2693         * sysdeps/x86_64/elf/initfini.c (__asm__): Call call_gmon_start.
2695 2002-07-08  Andreas Jaeger  <aj@suse.de>
2697         * sysdeps/x86_64/fpu/s_fdiml.S: Fix wrong register name.
2699 2002-07-06  Andreas Jaeger  <aj@suse.de>
2701         * sysdeps/x86_64/fpu/bits/mathinline.h: New.
2702         * sysdeps/x86_64/fpu/s_copysign.S: New.
2703         * sysdeps/x86_64/fpu/s_copysignf.S: New.
2704         * sysdeps/x86_64/fpu/s_copysignl.S: New.
2705         * sysdeps/x86_64/fpu/s_finitel.S: New.
2706         * sysdeps/x86_64/fpu/s_fmax.S: New.
2707         * sysdeps/x86_64/fpu/s_fmaxf.S: New.
2708         * sysdeps/x86_64/fpu/s_fmaxl.S: New.
2709         * sysdeps/x86_64/fpu/s_fmin.S: New.
2710         * sysdeps/x86_64/fpu/s_fminf.S: New.
2711         * sysdeps/x86_64/fpu/s_fminl.S: New.
2713 2002-06-05  Brian Youmans <3diff@gnu.org>
2715         * sysdeps/ia64/fpu/e_acos.S: Added text of Intel license.
2716         * sysdeps/ia64/fpu/e_acosf.S: Likewise.
2717         * sysdeps/ia64/fpu/e_acosl.S: Likewise.
2718         * sysdeps/ia64/fpu/e_asin.S: Likewise.
2719         * sysdeps/ia64/fpu/e_asinf.S: Likewise.
2720         * sysdeps/ia64/fpu/e_asinl.S: Likewise.
2721         * sysdeps/ia64/fpu/e_atan2.S: Likewise.
2722         * sysdeps/ia64/fpu/e_atan2f.S: Likewise.
2723         * sysdeps/ia64/fpu/e_cosh.S: Likewise.
2724         * sysdeps/ia64/fpu/e_coshf.S: Likewise.
2725         * sysdeps/ia64/fpu/e_coshl.S: Likewise.
2726         * sysdeps/ia64/fpu/e_exp.S: Likewise.
2727         * sysdeps/ia64/fpu/e_expf.S: Likewise.
2728         * sysdeps/ia64/fpu/e_fmod.S: Likewise.
2729         * sysdeps/ia64/fpu/e_fmodf.S: Likewise.
2730         * sysdeps/ia64/fpu/e_fmodl.S: Likewise.
2731         * sysdeps/ia64/fpu/e_hypot.S: Likewise.
2732         * sysdeps/ia64/fpu/e_hypotf.S: Likewise.
2733         * sysdeps/ia64/fpu/e_hypotl.S: Likewise.
2734         * sysdeps/ia64/fpu/e_log.S: Likewise.
2735         * sysdeps/ia64/fpu/e_logf.S: Likewise.
2736         * sysdeps/ia64/fpu/e_pow.S: Likewise.
2737         * sysdeps/ia64/fpu/e_powf.S: Likewise.
2738         * sysdeps/ia64/fpu/e_powl.S: Likewise.
2739         * sysdeps/ia64/fpu/e_remainder.S: Likewise.
2740         * sysdeps/ia64/fpu/e_remainderf.S: Likewise.
2741         * sysdeps/ia64/fpu/e_remainderl.S: Likewise.
2742         * sysdeps/ia64/fpu/e_scalb.S: Likewise.
2743         * sysdeps/ia64/fpu/e_scalbf.S: Likewise.
2744         * sysdeps/ia64/fpu/e_scalbl.S: Likewise.
2745         * sysdeps/ia64/fpu/e_sinh.S: Likewise.
2746         * sysdeps/ia64/fpu/e_sinhf.S: Likewise.
2747         * sysdeps/ia64/fpu/e_sinhl.S: Likewise.
2748         * sysdeps/ia64/fpu/e_sqrt.S: Likewise.
2749         * sysdeps/ia64/fpu/e_sqrtf.S: Likewise.
2750         * sysdeps/ia64/fpu/e_sqrtl.S: Likewise.
2751         * sysdeps/ia64/fpu/libm_atan2_req.S: Likewise.
2752         * sysdeps/ia64/fpu/libm_error.c: Likewise.
2753         * sysdeps/ia64/fpu/libm_frexp4.S: Likewise.
2754         * sysdeps/ia64/fpu/libm_frexp4f.S: Likewise.
2755         * sysdeps/ia64/fpu/s_frexpl.c: Likewise.
2756         * sysdeps/ia64/fpu/s_ilogb.S: Likewise.
2757         * sysdeps/ia64/fpu/s_ilogbf.S: Likewise.
2758         * sysdeps/ia64/fpu/s_ilogbl.S: Likewise.
2759         * sysdeps/ia64/fpu/s_ldexp.S: Likewise.
2760         * sysdeps/ia64/fpu/s_ldexpf.S: Likewise.
2761         * sysdeps/ia64/fpu/s_ldexpl.S: Likewise.
2762         * sysdeps/ia64/fpu/s_log1p.S: Likewise.
2763         * sysdeps/ia64/fpu/s_log1pf.S: Likewise.
2764         * sysdeps/ia64/fpu/s_log1pl.S: Likewise.
2765         * sysdeps/ia64/fpu/s_logb.S: Likewise.
2766         * sysdeps/ia64/fpu/s_logbf.S: Likewise.
2767         * sysdeps/ia64/fpu/s_logbl.S: Likewise.
2768         * sysdeps/ia64/fpu/s_modf.S: Likewise.
2769         * sysdeps/ia64/fpu/s_modff.S: Likewise.
2770         * sysdeps/ia64/fpu/s_modfl.S: Likewise.
2771         * sysdeps/ia64/fpu/s_nearbyint.S: Likewise.
2772         * sysdeps/ia64/fpu/s_nearbyintf.S: Likewise.
2773         * sysdeps/ia64/fpu/s_nearbyintl.S: Likewise.
2774         * sysdeps/ia64/fpu/s_rint.S: Likewise.
2775         * sysdeps/ia64/fpu/s_rintf.S: Likewise.
2776         * sysdeps/ia64/fpu/s_rintl.S: Likewise.
2777         * sysdeps/ia64/fpu/s_round.S: Likewise.
2778         * sysdeps/ia64/fpu/s_roundf.S: Likewise.
2779         * sysdeps/ia64/fpu/s_roundl.S: Likewise.
2780         * sysdeps/ia64/fpu/s_scalbn.S: Likewise.
2781         * sysdeps/ia64/fpu/s_scalbnf.S: Likewise.
2782         * sysdeps/ia64/fpu/s_scalbnl.S: Likewise.
2783         * sysdeps/ia64/fpu/s_significand.S: Likewise.
2784         * sysdeps/ia64/fpu/s_significandf.S: Likewise.
2785         * sysdeps/ia64/fpu/s_significandl.S: Likewise.
2786         * sysdeps/ia64/fpu/s_tan.S: Likewise.
2787         * sysdeps/ia64/fpu/s_tanf.S: Likewise.
2788         * sysdeps/ia64/fpu/s_tanl.S: Likewise.
2789         * sysdeps/ia64/fpu/s_trunc.S: Likewise.
2790         * sysdeps/ia64/fpu/s_truncf.S: Likewise.
2791         * sysdeps/ia64/fpu/s_truncl.S: Likewise.
2792         * sysdeps/ieee754/dbl-64/doasin.c: Changed copyright notice to
2793         reflect IBM donation of math library to FSF
2794         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
2795         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
2796         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
2797         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
2798         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
2799         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
2800         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
2801         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
2802         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
2803         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
2804         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
2805         * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
2806         * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
2807         * sysdeps/ieee754/dbl-64/mplog.c: Likewise.
2808         * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
2809         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
2810         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
2811         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
2812         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
2813         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
2814         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
2815         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
2816         * sysdeps/gnu/netinet/udp.h: Added BSD copying permission notice
2817         * sysdeps/vax/__longjmp.c: Likewise.
2818         * sysdeps/vax/setjmp.c: Likewise.
2819         * libio/filedoalloc.c: Fixed BSD copying permission notice to
2820         remove advertising clause
2821         * sysdeps/vax/htonl.s: Likewise.
2822         * sysdeps/vax/htons.s: Likewise.
2823         * libio/wfiledoalloc.c: Likewise.
2824         * stdlib/random.c: Likewise.
2825         * stdlib/random_r.c: Likewise.
2826         * sysdeps/mach/sys/reboot.h: Likewise.
2827         * inet/getnameinfo.c: Deleted advertising clause from Inner Net License
2828         * sysdeps/posix/getaddrinfo.c: Likewise.
2829         * sunrpc/des_impl.c: Updated license permission notice to Lesser
2830         GPL and corrected pointer to point to the correct license.
2832 2002-07-04  Andreas Jaeger  <aj@suse.de>
2834         * scripts/config.guess: New upstream version.
2835         * scripts/config.sub: Likewise.
2837 2002-07-02  Andreas Schwab  <schwab@suse.de>
2839         * resolv/nss_dns/dns-network.c (getanswer_r): Reduce linebuflen
2840         in parallel to bumping up the buffer pointer.
2842 2002-07-01  Jakub Jelinek  <jakub@redhat.com>
2844         * math/libm-test.inc (acos_test): Add missing L suffix for
2845         expected result.
2846         (cpow_test): Likewise.
2847         * sysdeps/i386/fpu/libm-test-ulps: Adjust errors for cpow, remove
2848         error for acos (0.0625).
2850 2002-06-30  Ulrich Drepper  <drepper@redhat.com>
2852         * locale/iso-639.def: Add entry for Ganda.
2853         * locale/programs/ld-address.c (DEFINE_LANGUAGE_CODE3): New
2854         definition.
2855         (address_finish): Handle entries with two letter ISO 639 code.
2857         * iconvdata/Makefile: Recreate gconv-modules.cache file in target
2858         directory if it existed before.
2859         * iconv/iconvconfig.c: Implement --prefix option.
2861         * math/libm-test.inc (cexp_test): Add missing L suffix for
2862         expected result.  Reported by Stephen L Moshier <steve@moshier.net>.
2863         * sysdeps/i386/fpu/libm-test-ulps: Adjust error for cexp (0.75 +
2864         1.25 i).
2866 2002-05-29  H.J. Lu  <hjl@gnu.org>
2868         * elf/dl-error.c (_dl_signal_cerror): Report error if ld.so debug
2869         is turned on.
2871 2002-05-28  H.J. Lu  <hjl@gnu.org>
2873         * elf/dl-deps.c (_dl_map_object_deps): Don't add objects which
2874         are not dlopened on the dependency list of a dlopened object.
2876 2002-06-30  Ulrich Drepper  <drepper@redhat.com>
2878         * elf/dl-lookup.c (add_dependency): It is not necessary to add
2879         dependencies if they are created between objects which are created
2880         while processing RTLD_NOW for objects loaded as part of the same
2881         dlopen call.
2883 2002-06-14  H.J. Lu  <hjl@gnu.org>
2885         * elf/Makefile (tests): Add circleload1.
2886         (modules-names): Add circlemod1, circlemod2, circlemod3,
2887         circlemod1a, circlemod2a and circlemod3a.
2888         ($(objpfx)circleload1): New target.
2889         ($(objpfx)circleload1.out): Likewise.
2890         ($(objpfx)circlemod1.so): Likewise.
2891         ($(objpfx)circlemod2.so): Likewise.
2892         ($(objpfx)circlemod1a.so): Likewise.
2893         ($(objpfx)circlemod2a.so): Likewise.
2894         * elf/circleload1.c: New file.
2895         * elf/circlemod1.c: New file.
2896         * elf/circlemod1a.c: New file.
2897         * elf/circlemod2.c: New file.
2898         * elf/circlemod2a.c: New file.
2899         * elf/circlemod3.c: New file.
2900         * elf/circlemod3a.c: New file.
2902 2002-06-18  Amos Waterland  <apw@us.ibm.com>
2904         * sysdeps/pthread/aio_cancel.c (aio_cancel): Add check for invalid
2905         file descriptor.
2906         * sysdeps/pthread/aio_fsync.c (aio_fsync): Add check for invalid fd;
2907         add check for fd not open for writing.
2909         * sysdeps/pthread/aio_suspend.c (aio_suspend): Add check for
2910         completed element(s) and do not suspend thread if so.  Patch
2911         heavily modified by drepper.
2913         * rt/tst-aio7.c: New file.  Regression test for problems which the
2914         above three changes fix.
2915         * rt/Makefile (tests): Add tst-aio7.
2917 2002-06-29  Ulrich Drepper  <drepper@redhat.com>
2919         * rt/tst-aio6.c: Fix comment.
2921         * catgets/gencat.c (read_input_file): Handle more than one slash
2922         at end of line correctly [PR libc/3926].
2923         Based on a patch by Steven Kim <steven.kim@peregrine.com>.
2925         * catgets/sample.SJIS: Add test case for above bug.
2926         * catgets/test-gencat.c: Adjust test code.
2927         * catgets/test-gencat.sh: Adjust expected results.
2929         * elf/do-rel.h (elf_dynamic_do_rel): Avoid overflow in computation
2930         to skip relative relocations.
2931         Patch by Geoff Keating <geoffk@redhat.com>.
2933 2002-05-26  Bruno Haible  <bruno@clisp.org>
2935         * iconv/loop.c (STANDARD_FROM_LOOP_ERR_HANDLER): New macro.
2936         (STANDARD_TO_LOOP_ERR_HANDLER): Renamed from STANDARD_ERR_HANDLER.
2937         All callers changed.
2938         * iconv/gconv_simple.c (ascii_internal_loop): For error handling use
2939         STANDARD_FROM_LOOP_ERR_HANDLER.
2940         (utf8_internal_loop): Likewise.
2941         (ucs2_internal_loop): Likewise.
2942         (internal_ucs2_loop): Perform error handling like in
2943         STANDARD_FROM_LOOP_ERR_HANDLER.
2944         * iconvdata/unicode.c (BODY for TO_LOOP): Perform error handling like
2945         in STANDARD_FROM_LOOP_ERR_HANDLER.
2946         (BODY for FROM_LOOP): Use STANDARD_FROM_LOOP_ERR_HANDLER for error
2947         handling.
2948         * iconvdata/utf-16.c (BODY for TO_LOOP): Perform error handling like
2949         in STANDARD_FROM_LOOP_ERR_HANDLER.
2950         (BODY for FROM_LOOP): Use STANDARD_FROM_LOOP_ERR_HANDLER for error
2951         handling.
2952         * iconvdata/utf-32.c (BODY for TO_LOOP): Perform error handling like
2953         in STANDARD_FROM_LOOP_ERR_HANDLER.
2954         (BODY for FROM_LOOP): Use STANDARD_FROM_LOOP_ERR_HANDLER for error
2955         handling.
2956         * iconvdata/big5.c (BODY for FROM_LOOP): For error handling use
2957         STANDARD_FROM_LOOP_ERR_HANDLER.
2958         * iconvdata/iso-2022-jp.c (BODY for FROM_LOOP): Likewise.
2959         * iconvdata/8bit-gap.c (BODY for FROM_LOOP): Likewise.
2960         * iconvdata/8bit-generic.c (BODY for FROM_LOOP): Likewise.
2961         * iconvdata/ansi_x3.110.c (BODY for FROM_LOOP): Likewise.
2962         * iconvdata/armscii-8.c (BODY for FROM_LOOP): Likewise.
2963         * iconvdata/cp1255.c (BODY for FROM_LOOP): Likewise.
2964         * iconvdata/cp1258.c (BODY for FROM_LOOP): Likewise.
2965         * iconvdata/euc-cn.c (BODY for FROM_LOOP): Likewise.
2966         * iconvdata/euc-jisx0213.c (BODY for FROM_LOOP): Likewise.
2967         * iconvdata/euc-jp.c (BODY for FROM_LOOP): Likewise.
2968         * iconvdata/euc-kr.c (BODY for FROM_LOOP): Likewise.
2969         * iconvdata/euc-tw.c (BODY for FROM_LOOP): Likewise.
2970         * iconvdata/big5hkscs.c (BODY for FROM_LOOP): Likewise.
2971         * iconvdata/gb18030.c (BODY for FROM_LOOP): Likewise.
2972         * iconvdata/gbk.c (BODY for FROM_LOOP): Likewise.
2973         * iconvdata/iso-2022-cn-ext.c (BODY for FROM_LOOP): Likewise.
2974         * iconvdata/iso-2022-cn.c (BODY for FROM_LOOP): Likewise.
2975         * iconvdata/iso-2022-jp-3.c (BODY for FROM_LOOP): Likewise.
2976         * iconvdata/iso-2022-kr.c (BODY for FROM_LOOP): Likewise.
2977         * iconvdata/iso646.c (BODY for FROM_LOOP): Likewise.
2978         * iconvdata/iso_6937-2.c (BODY for FROM_LOOP): Likewise.
2979         * iconvdata/iso_6937.c (BODY for FROM_LOOP): Likewise.
2980         * iconvdata/johab.c (BODY for FROM_LOOP): Likewise.
2981         * iconvdata/shift_jisx0213.c (BODY for FROM_LOOP): Likewise.
2982         * iconvdata/sjis.c (BODY for FROM_LOOP): Likewise.
2983         * iconvdata/t.61.c (BODY for FROM_LOOP): Likewise.
2984         * iconvdata/uhc.c (BODY for FROM_LOOP): Likewise.
2985         * iconvdata/utf-7.c (BODY for FROM_LOOP): Likewise.
2986         * iconvdata/gbbig5.c (BODY for FROM_LOOP): Likewise.  When ignoring
2987         an error, still set result = __GCONV_ILLEGAL_INPUT.
2988         (BODY for TO_LOOP): Likewise.
2989         * iconvdata/ibm930.c (BODY for FROM_LOOP): For error handling use
2990         STANDARD_FROM_LOOP_ERR_HANDLER.
2991         (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
2992         * iconvdata/ibm932.c: Include <dlfcn.h> and <stdint.h>.
2993         (BODY for FROM_LOOP): Use STANDARD_FROM_LOOP_ERR_HANDLER for error
2994         handling.
2995         (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
2996         * iconvdata/ibm933.c (BODY for FROM_LOOP): For error handling use
2997         STANDARD_FROM_LOOP_ERR_HANDLER.
2998         (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
2999         * iconvdata/ibm935.c (BODY for FROM_LOOP): For error handling use
3000         STANDARD_FROM_LOOP_ERR_HANDLER.
3001         (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
3002         * iconvdata/ibm937.c (BODY for FROM_LOOP): For error handling use
3003         STANDARD_FROM_LOOP_ERR_HANDLER.
3004         (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
3005         * iconvdata/ibm939.c (BODY for FROM_LOOP): For error handling use
3006         STANDARD_FROM_LOOP_ERR_HANDLER.
3007         (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
3008         * iconvdata/ibm943.c: Include <dlfcn.h> and <stdint.h>.
3009         (BODY for FROM_LOOP): Use STANDARD_FROM_LOOP_ERR_HANDLER for error
3010         handling.
3011         (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
3012         * iconvdata/gbgbk.c (BODY for FROM_LOOP): Update.
3013         * iconvdata/iso8859-1.c (BODY for TO_LOOP): Update.
3014         * iconvdata/tcvn5712-1.c (BODY for TO_LOOP): Update.
3016 2002-06-28  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
3018         * sysdeps/sh/dl-machine.h (elf_machine_load_address): Use local
3019         labels in assembler instructions.
3021 2002-06-25  Ulrich Drepper  <drepper@redhat.com>
3023         * libio/fileops.c (_IO_file_xsgetn_mmap): Always set EOF flag if
3024         not enough content is available.
3025         * libio/tst-eof.c: New file.
3026         * libio/Makefile (tests): Add tst-eof.
3028         * libio/fileops.c (_IO_file_underflow_mmap): Read a single byte to
3029         update atime.
3030         * libio/tst-atime.c: New file.
3031         * libio/Makefile (tests): Add tst-atime.
3033         * argp/argp-fmtstream.c (__argp_fmtstream_update): Avoid crash in
3034         handling of overly long words.
3036 2002-06-25  Andreas Jaeger  <aj@suse.de>
3038         * sysdeps/x86-64/dl-machine.h (elf_machine_load_address): Rewrite
3039         to not use 32-bit pc relative relocations.
3040         (elf_machine_dynamic): Likewise.
3042 2002-06-21  Ulrich Drepper  <drepper@redhat.com>
3044         * sysdeps/unix/sysv/linux/getdents.c [__ASSUME_GETDENTS64_SYSCALL]
3045         (__GETDENTS): Check for failed getdents64 syscall.
3046         * dirent/Makefile (tests): Add bug-readdir1.
3047         * dirent/bug-readdir1.c: New file.
3049 2002-06-17  Jakub Jelinek  <jakub@redhat.com>
3051         * elf/dl-lookup.c (_dl_debug_bindings): Use type_class 4 for TLS
3052         lookups.
3053         * elf/rtld.c (dl_main): Move TLS setup code before LD_TRACE_PRELINKING
3054         code.  Print TLS modid and offset for modules containing PT_TLS
3055         segments.
3057 2002-06-09  Jakub Jelinek  <jakub@redhat.com>
3059         * sysdeps/unix/sysv/linux/i386/dl-brk.c: Move...
3060         * sysdeps/unix/sysv/linux/dl-brk.c: ...here.
3061         * sysdeps/unix/sysv/linux/i386/dl-sbrk.c: Move...
3062         * sysdeps/unix/sysv/linux/dl-sbrk.c: ...here.
3064 2002-06-07  Jakub Jelinek  <jakub@redhat.com>
3066         * nss/getXXbyYY_r.c (NEW, NEW1): Define.
3067         (NEW (REENTRANT_NAME)): Strong alias to INTERNAL (REENTRANT_NAME).
3068         (REENTRANT_NAME@@GLIBC_2.1.2): Use NEW (REENTRANT_NAME).
3069         * nss/getXXent_r.c (NEW, NEW1): Define.
3070         (NEW (REENTRANT_GETNAME)): Strong alias to
3071         INTERNAL (REENTRANT_GETNAME).
3072         (REENTRANT_GETNAME@@GLIBC_2.1.2): Use NEW (REENTRANT_GETNAME).
3074 2002-06-21  Ulrich Drepper  <drepper@redhat.com>
3076         * libio/fileops.c (_IO_file_setbuf_mmap): New function.
3077         (_IO_file_jumps_mmap): Use it.
3078         * libio/iosetvbuf.c: Don't call _IO_WSETBUF.
3079         * libio/libioP.h: Remove _IO_wdefault_setbuf and
3080         _IO_wdefault_setbuf_internal prorotypes.  Add _IO_file_setbuf_mmap
3081         prototype.
3082         * libio/wfileops.c (_IO_wfile_setbuf): Removed.
3083         (_IO_wfile_jumps_mmap): Don't use it anymore.
3084         * libio/wgenops.c (_IO_wdefault_setbuf): Removed.
3085         * libio/memstream.c (_IO_wmem_jumps): Use _IO_default_setbuf not
3086         _IO_wdefault_setbuf.
3087         * libio/vswprintf.c (_IO_wstrn_jumps): Likewise.
3088         * libio/wstrops.c (_IO_wstr_jumps): Likewise.
3089         * stdio-common/vfprintf.c (_IO_helper_jumps): Likewise.
3091 2002-06-05  Jakub Jelinek  <jakub@redhat.com>
3093         * libio/Makefile (tests): Add tst-mmap-setvbuf.
3094         * libio/tst-mmap-setvbuf.c: New test.
3096 2002-06-21  Andreas Jaeger  <aj@suse.de>
3098         * sysdeps/i386/fpu/libm-test-ulps: Add some ulps from my P3.
3100 2002-06-18  Jakub Jelinek  <jakub@redhat.com>
3102         * include/unistd.h (__fork_internal): Remove.
3103         (__fork): Don't define to __fork_internal.
3104         * sysdeps/mach/hurd/fork.c (__fork): Remove INTDEF.
3105         * sysdeps/unix/sysv/aix/fork.c (__fork): Likewise.
3106         * sysdeps/unix/sysv/linux/ia64/fork.S (__fork_internal): Remove alias.
3107         * sysdeps/unix/sysv/linux/sparc/fork.S (__fork_internal): Likewise.
3108         * sysdeps/unix/sysv/linux/syscalls.list (__fork_internal): Likewise.
3110 2002-06-20  Ulrich Drepper  <drepper@redhat.com>
3112         * po/hr.po: New file.
3114 2002-06-11  Wolfram Gloger  <wg@malloc.de>
3116         * malloc/malloc.c: Fix error path when new_heap() returns NULL.
3117         Reported by Michael Meissner <meissner@redhat.com>.
3119 2002-06-20  Ulrich Drepper  <drepper@redhat.com>
3121         * sysdeps/unix/sysv/linux/ia64/getcontext.S: Fix typo.
3122         Patch by Hans Boehm <hans_boehm@hp.com>.
3124 2002-06-20  Andreas Jaeger  <aj@suse.de>
3126         * math/libm-test.inc: Use exact values as input parameters,
3127         compute output parameters with 36 digits for 128-bit long doubles.
3128         * sysdeps/i386/fpu/libm-test-ulps: Regenerated.
3129         * sysdeps/x86-64/fpu/libm-test-ulps: Regenerated.
3130         * sysdeps/ia64/fpu/libm-test-ulps: Regenerated.
3132 2002-06-13  Stephen L Moshier  <steve@moshier.net>
3134         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Fix cases in which
3135         argument or result is subnormal.
3137 2002-06-19  Ulrich Drepper  <drepper@redhat.com>
3139         * sysdeps/i386/fpu/s_remquo.S: Fix three mistakes in computing the
3140         quotient.
3141         * sysdeps/i386/fpu/s_remquof.S: Likewise.
3142         * sysdeps/i386/fpu/s_remquol.S: Likewise.
3144         * sysdeps/hppa/dl-machine.h: Don't use multi-line string literals.
3146 2002-06-17  David Mosberger  <davidm@hpl.hp.com>
3148         * sysdeps/unix/sysv/linux/ia64/sys/ucontext.h (uc_sigmask): Fix
3149         typo: corresponding sigcontext field is called sc_mask, not sc_sigmask.
3150         Reported by Peter A. Buhr.
3152 2002-06-15  Roland McGrath  <roland@frob.com>
3154         * sysdeps/mach/hurd/mmap.c (__mmap): Add a dead case that quiets a
3155         warning.
3157         * sysdeps/mach/hurd/getcwd.c
3158         (_hurd_canonicalize_directory_name_internal): unsigned int -> size_t
3160         * sysdeps/unix/sysv/linux/bits/ustat.h: Moved to ...
3161         * sysdeps/generic/bits/ustat.h: ... here (was almost identical).
3163         * sysdeps/alpha/divrem.h: Use local label instead of global one for
3164         jump to local subroutine.
3166 2002-06-14  Roland McGrath  <roland@frob.com>
3168         * sysdeps/mach/hurd/i386/Makeconfig: File moved to ...
3169         * sysdeps/mach/hurd/Makeconfig: ... here.
3171 2002-06-13  Andreas Schwab  <schwab@suse.de>
3173         * sysdeps/m68k/fpu/s_finite.c: Remove INTDEF.
3174         * sysdeps/m68k/fpu/s_finitef.c: Likewise.
3175         * sysdeps/m68k/fpu/s_finitel.c: Likewise.
3177 2002-06-13  Roland McGrath  <roland@frob.com>
3179         * hurd/hurdstartup.h (_hurd_startup): int -> intptr_t in MAIN arg type.
3180         * hurd/hurdstartup.c (_hurd_startup): Likewise.
3181         Use intptr_t instead of int for argc in stack layout.
3182         * sysdeps/mach/hurd/alpha/init-first.c (init): Fix argument type.
3183         (_dl_init_first): Likewise.
3184         (_hurd_stack_setup): Likewise.
3185         (init1): Add a cast.
3186         * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start: go): Fix arg type.
3188         * sysdeps/mach/hurd/if_index.c (if_nameindex): Use size_t for AMOUNT
3189         argument to pfinet_siocgifconf RPC.
3191 2002-06-13  Andreas Schwab  <schwab@suse.de>
3193         * sysdeps/m68k/fpu/s_isinf.c (INTDEFX): Define to get correct
3194         expansion order.
3196 2002-06-12  Roland McGrath  <roland@frob.com>
3198         * sysdeps/generic/tmpfile.c [USE_IN_LIBIO] (tmpfile): Don't #define
3199         if already defined.
3200         [USE_IN_LIBIO]: Conditionalize versioned_symbol use on
3201         [GEN_THIS == __GT_FILE] so that tmpfile64.c's inclusion doesn't get it.
3203 2002-06-11  Roland McGrath  <roland@frob.com>
3205         * sysdeps/mach/hurd/xstat64.c: Conditionalize entire contents of the
3206         file on [!RTLD_STAT64].
3207         * sysdeps/mach/hurd/fxstat64.c: Likewise.
3209         * sysdeps/mach/hurd/tmpfile.c (tmpfile64): Define as alias of tmpfile.
3210         (__fdopen): Use INTUSE.
3211         * sysdeps/mach/hurd/tmpfile64.c: New file, empty placeholder.
3213         * stdio-common/tmpfile64.c: File removed.
3214         * sysdeps/generic/tmpfile64.c: New file.
3215         * sysdeps/generic/tmpfile.c (GEN_THIS): New macro, define to __GT_FILE
3216         if not already defined.
3217         (tmpfile): Use it in place of __GT_FILE.
3219         * include/unistd.h: Declare __chown_internal.
3221         * sysdeps/mach/hurd/sendfile64.c (sendfile64): Do real work here.
3222         * sysdeps/mach/hurd/sendfile.c (sendfile): Call that.
3224 2002-06-09  Roland McGrath  <roland@frob.com>
3226         Update to new Hurd RPC interfaces supporting 64-bit file sizes.
3227         * sysdeps/mach/hurd/configure.in: Check for <hurd/version.h> with
3228         value of HURD_INTERFACE_VERSION >= 20020609.
3229         * sysdeps/mach/hurd/configure: Regenerated.
3230         * shlib-versions (.*-.*-gnu-gnu.*): Set libhurduser=0.3.
3231         * sysdeps/mach/hurd/xstatconv.c (xstat64_conv): Rewritten to
3232         convert a struct stat64 into a struct stat and return 0 or -1
3233         with errno set to EOVERFLOW.
3234         * sysdeps/mach/hurd/statfsconv.c (statfs64_conv): Likewise
3235         for struct statfs64 to struct statfs.
3236         * sysdeps/mach/hurd/xstat.c (__xstat): Use converter and call ...
3237         * sysdeps/mach/hurd/xstat64.c (__xstat64): ... this, real work here.
3238         * sysdeps/mach/hurd/fxstat.c (__fxstat): Likewise.
3239         * sysdeps/mach/hurd/fxstat64.c (__fxstat64): Likewise.
3240         * sysdeps/mach/hurd/lxstat.c (__lxstat): Likewise.
3241         * sysdeps/mach/hurd/lxstat64.c (__lxstat64): Likewise.
3242         * sysdeps/mach/hurd/statfs.c (__statfs): Likewise.
3243         * sysdeps/mach/hurd/statfs64.c (__statfs64): Likewise.
3244         * sysdeps/mach/hurd/fstatfs.c (__fstatfs): Likewise.
3245         * sysdeps/mach/hurd/fstatfs64.c (__fstatfs64): Likewise.
3246         * sysdeps/mach/hurd/pwrite64.c (__libc_pwrite64): Do real work here.
3247         * sysdeps/mach/hurd/pwrite.c (__libc_pwrite): Call that.
3248         * sysdeps/mach/hurd/pread64.c (__libc_pread64): Do real work here.
3249         * sysdeps/mach/hurd/pread.c (__libc_pread): Call that.
3250         * sysdeps/mach/hurd/lseek64.c (__libc_lseek64): Do real work here.
3251         * sysdeps/mach/hurd/lseek.c (__libc_lseek): Call that.
3252         * sysdeps/mach/hurd/readdir64.c (__readdir64): Do real work here.
3253         * sysdeps/mach/hurd/readdir.c (__readdir): Call that.
3254         * sysdeps/mach/hurd/readdir64_r.c (__readdir64_r): Do real work here.
3255         * sysdeps/mach/hurd/readdir_r.c (__readdir64_r): Call that.
3256         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry):
3257         Use struct stat64 for io_stat argument.
3258         * sysdeps/mach/hurd/readlink.c (__readlink): Likewise.
3259         * hurd/fopenport.c (seekio): Remove EOVERFLOW check, pass POS directly
3260         to io_seek.
3261         * hurd/fd-read.c (_hurd_fd_read): Use loff_t for OFFSET argument.
3262         * hurd/fd-write.c (_hurd_fd_write): Likewise.
3263         * hurd/hurd/fd.h: Update decls.
3264         * sysdeps/mach/hurd/getcwd.c
3265         (_hurd_canonicalize_directory_name_internal): Use ino64_t
3266         and struct dirent64.
3267         * sysdeps/mach/hurd/dl-sysdep.c (open_file): Use struct stat64.
3268         (__xstat): Renamed to __xstat64, use struct stat64 for argument.
3269         (__fxstat): Renamed to __fxstat64, use struct stat64 for argument.
3270         (__lseek): Renamed to __libc_lseek64, use off64_t for argument.
3272 2002-06-08  Roland McGrath  <roland@frob.com>
3274         * sysdeps/mach/hurd/dirstream.h (struct __dirstream): Use size_t
3275         instead of unsigned long int for __allocation and __size members.
3277 2002-06-09  Jakub Jelinek  <jakub@redhat.com>
3279         * sysdeps/unix/sysv/linux/i386/dl-brk.c: Move...
3280         * sysdeps/unix/sysv/linux/dl-brk.c: ...here.
3281         * sysdeps/unix/sysv/linux/i386/dl-sbrk.c: Move...
3282         * sysdeps/unix/sysv/linux/dl-sbrk.c: ...here.
3284 2002-06-07  Roland McGrath  <roland@frob.com>
3286         * sysdeps/mach/hurd/bits/environments.h: File removed.
3288 2002-06-07  Jakub Jelinek  <jakub@redhat.com>
3290         * sysdeps/unix/sysv/linux/alpha/sendfile64.c: New file.
3291         * sysdeps/unix/sysv/linux/ia64/sendfile64.c: New file.
3292         * sysdeps/unix/sysv/linux/sparc/sparc64/sendfile64.c: New file.
3293         * sysdeps/unix/sysv/linux/x86_64/sendfile64.c: New file.
3294         * sysdeps/unix/sysv/linux/syscalls.list (sendfile): Remove EXTRA.
3295         (sendfile64): Likewise.
3296         * sysdeps/unix/sysv/linux/alpha/syscalls.list (sendfile): Likewise.
3297         * sysdeps/unix/sysv/linux/ia64/syscalls.list (sendfile): Likewise.
3298         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list (sendfile):
3299         Likewise.
3300         * sysdeps/unix/sysv/linux/x86_64/syscalls.list (sendfile): Likewise.
3302         * include/sys/stat.h (__fxstat64, __lxstat64): Only define if not
3303         already defined.
3305 2002-06-04  Bruno Haible  <bruno@clisp.org>
3307         * sysdeps/cris/stackinfo.h: New file.
3309         * sysdeps/hppa/dl-machine.h (elf_machine_rela): Cast reloc_addr
3310         to an integer type before performing bit operations on it.
3312 2002-06-05  Roland McGrath  <roland@frob.com>
3314         * sysdeps/generic/sendfile.c: Include <errno.h>.
3315         * sysdeps/generic/sendfile64.c: Likewise.
3317         * io/Makefile (routines): Add sendfile and sendfile64.
3318         (headers): Add sys/sendfile.h to the list.
3319         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Don't add it here.
3320         * sysdeps/unix/sysv/linux/sys/sendfile.h: Moved to ...
3321         * io/sys/sendfile.h: ... here.
3322         * sysdeps/generic/sendfile.c: New file.
3323         * sysdeps/generic/sendfile64.c: New file.
3325         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.1, GLIBC_2.3):
3326         Move sendfile, sendfile64 to ...
3327         * io/Versions (GLIBC_2.1, GLIBC_2.3): ... here.
3328         * sysdeps/mach/hurd/sendfile.c: New file.
3329         * sysdeps/mach/hurd/sendfile64.c: New file.
3331         * sysdeps/mach/nanosleep.c: New file.
3333 2002-06-04  Roland McGrath  <roland@frob.com>
3335         * sysdeps/alpha/elf/configure.in: New file.  Check for TLS support.
3336         * sysdeps/alpha/elf/configure: New file (generated).
3338 2002-06-02  Roland McGrath  <roland@frob.com>
3340         * include/link.h: Include <tls.h> to make sure USE_TLS is defined.
3342 2002-06-01  Roland McGrath  <roland@frob.com>
3344         * sysdeps/mach/hurd/alpha/init-first.c: New file, modified from
3345         i386/init-first.c by Andrew M. Miklic <miklic@attglobal.net>.
3347 2002-05-19  Ulrich Drepper  <drepper@redhat.com>
3349         * resolv/resolv.h (struct __res_state): Remove unused nstimes.
3350         Add nsmap.
3351         * resolv/res_init.c (__res_vinit): Initialize nsmap array.
3352         Remove nstimes setting.
3353         (res_nclose): Check all MAXNS nameservers with non-NULL nsaddrs.
3354         * resolv/res_send.c (res_nsend): Don't close unconditionally if
3355         there is mix of IPv6 and IPv4 nameservers.
3356         Use nsmap array to find free slots and preserve nameserver ordering.
3357         Fix RES_ROTATE.
3359 2002-05-30  Ulrich Drepper  <drepper@redhat.com>
3361         * sysdeps/unix/sysv/linux/sys/sendfile.h: It is now possible to
3362         use this header with LFS.
3364         * po/sk.po: Update from translation team.
3366 2002-05-28  Andreas Schwab  <schwab@suse.de>
3368         * sysdeps/generic/readelflib.c (process_elf_file): Give correct
3369         message when finding object of wrong class.
3371 2002-05-28  Jakub Jelinek  <jakub@redhat.com>
3373         * sysdeps/wordsize-32/divdi3.c (__moddi3): Fix pasto.
3374         Patch by <radu@netsoft.ro>.
3376 2002-05-30  Ulrich Drepper  <drepper@redhat.com>
3378         * sysdeps/unix/sysv/linux/Makefile [$(subdir)==misc] (sysdep_routines):
3379         Add readahead.
3380         * sysdeps/unix/sysv/linux/readahead.c: New file.
3381         * sysdeps/unix/sysv/linux/syscalls.list: Add sendfile64 syscall.
3382         * sysdeps/unix/sysv/linux/Versions: Export readahead and sendfile64.
3383         * sysdeps/unix/sysv/linux/alpha/syscalls.list: Add readahead syscall.
3384         Add sendfile64 alias to sendfile syscall.
3385         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
3386         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
3387         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
3388         * sysdeps/unix/sysv/linux/powerpc/syscalls.list: Add s_readahead
3389         syscall.
3391         * sysdeps/unix/sysv/linux/i386/sysdep.h: Use __i686.get_pc_thunk.XX
3392         special section for PIC register loading.
3393         * sysdeps/unix/sysv/linux/i386/i686/sysdep.h: Likewise.
3395         * config.h.in: Define HAVE_HIDDEN.
3396         * configure.in: Also define HAVE_HIDDEN if HAVE_PROTECTED is defined.
3398         * elf/elf.h: Correct Alpha TLS relocations according to last spec.
3400 2002-05-28  Roland McGrath  <roland@frob.com>
3402         * sysdeps/mach/alpha/setfpucw.c: New file.
3404 2002-05-26  Roland McGrath  <roland@frob.com>
3406         * sysdeps/mach/hurd/ioctl.c (__ioctl): Don't use sizeof in _IOTS.
3407         Use integer_t instead of int for IOC_VOID case.
3409 2002-05-27  Alexandre Oliva  <aoliva@redhat.com>
3411         * configure.in (DO_STATIC_NSS): Define if --disable-shared.
3413 2002-05-26  Bruno Haible  <bruno@clisp.org>
3415         * iconvdata/iso-2022-jp.c (BODY for TO_LOOP): Avoid running off the
3416         end of the ISO-8859-7 from idx table.
3418 2002-05-27  Ulrich Drepper  <drepper@redhat.com>
3420         * manual/lang.texi: Fix FLT_EPSILON description [PR libc/3649].
3422 2002-05-24  David S. Miller  <davem@redhat.com>
3424         * string/bits/string2.h (memset): Do not try to optimize when
3425         not _STRING_ARCH_unaligned if GCC will do the right thing.
3427 2002-05-21  Isamu Hasegawa  <isamu@yamato.ibm.com>
3429         * posix/regex.c: Define `inline' as a macro into nothing for the
3430         compilers which lack the keyword.
3431         * posix/regex.h: (RE_SYNTAX_GNU_AWK): Remove RE_CONTEXT_INVALID_OPS
3432         for the compatibility of gawk.
3433         * posix/regcomp.c: Add fake implementation of isblank() for the
3434         environments which lack the function.
3435         Don't use free_charset() in case of non-i18n envs.
3436         (build_range_exp): Don't use i18n related code in case of non-i18n
3437         envs.
3438         (build_collating_symbol): Likewise.
3439         (build_equiv_class): Likewise.
3440         (build_charclass): Likewise.
3441         (re_compile_fastmap_iter): Likewise.
3442         (parse_bracket_exp): Likewise.
3443         (build_word_op): Likewise.
3444         (regfree): Don't use free_charset() in case of non-i18n envs.
3445         * posix/regex_internal.h: Remove COMPLEX_BRACKET from
3446         re_token_type_t in case of non-i18n envs.
3447         Don't define re_charset_t in case of non-i18n envs.
3448         Change the type of wcs of re_string_t from wchar_t to wint_t,
3449         since we store also WEOF.
3450         * posix/regex_internal.c: (re_string_realloc_buffers): Change
3451         the type of wcs of re_string_t from wchar_t to wint_t.
3452         (re_string_reconstruct): Likewise.
3453         (create_ci_newstate): Don't use i18n related code in case of
3454         non-i18n envs.
3455         (create_cd_newstate): Likewise.
3457 2002-05-24  Ulrich Drepper  <drepper@redhat.com>
3459         * iconv/loop.c: Fix typo.
3461 2002-05-23  Jakub Jelinek  <jakub@redhat.com>
3463         * inet/ether_line.c (ether_line): Fix a typo causing only
3464         lower 4 bits of each ethernet address byte being assigned.
3465         Don't modify what line points to.
3466         * inet/tst-ether_aton.c (main): Add ether_line tests.
3468 2002-05-23  Marcus Brinkmann  <marcus@gnu.org>
3470         * manual/filesys.texi: Don't make readlink example leak memory
3471         when readlink fails.
3473 2002-05-20  Ulrich Drepper  <drepper@redhat.com>
3475         * iconv/loop.c: Fix condition for defining unaligned loop.  Add
3476         some more security checks.
3478 2002-05-17  David S. Miller  <davem@redhat.com>
3480         * sysdeps/unix/sysv/linux/sparc/fork.S: Define _internal aliases.
3482 2002-05-16  David S. Miller  <davem@redhat.com>
3484         * sysdeps/sparc/sparc32/dl-machine.h (LOAD_PIC_REG): Define.
3485         (elf_machine_dynamic): Use it to force PIC register to be loaded.
3486         (elf_machine_load_address): Likewise.
3487         * sysdeps/sparc/sparc64/dl-machine.h: Mirror sparc32 changes.
3489         * sysdeps/sparc/sparc64/strncmp.S: When second argument pointer
3490         is unaligned, do not forget to fully initialize %g1 magic value.
3492         * sysdeps/unix/sysv/linux/sparc/sys/procfs.h: Fix 64-bit elf
3493         register definitions and provide 32-bit variants of structures
3494         during 64-bit builds.
3496         * soft-fp/op-1.h (_FP_FRAC_CLEAR_OVERP_1): Define.
3497         * soft-fp/op-2.h (_FP_FRAC_CLEAR_OVERP_2): Define.
3498         * soft-fp/op-4.h (_FP_FRAC_CLEAR_OVERP_4): Define.
3499         * soft-fp/op-common.h (_FP_PACK_CANONICAL): After rounding, if
3500         _FP_FRAC_OVERP_X is set, use _FP_FRAC_CLEAR_OVERP_X to clear it.
3501         (_FP_FROM_INT): Perform right shifts on unsigned integer type.
3502         Do not clear implicit one bit here, it must be done post-rounding.
3503         Only pad to the left using left shift if value uses less than the
3504         available fractional bits.
3506 2002-05-20  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
3508         * sysdeps/powerpc/Makefile (sysdeps_routines): Use libgcc-compat
3509         instead of cmpdi2, shdi3, fixdfdi, fixsfdi in csu dir.
3510         (shared-only-routines): Likewise.
3511         * sysdeps/powerpc/libgcc-compat.c: New file.
3512         * sysdeps/wordsize-32/cmpdi2.c: Removed.
3513         * sysdeps/wordsize-32/fixdfdi.c: Removed.
3514         * sysdeps/wordsize-32/fixsfdi.c: Removed.
3515         * sysdeps/wordsize-32/shdi3.c: Removed.
3517 2002-05-16  Bruno Haible  <bruno@clisp.org>
3519         * MakeTAGS (libc.pot): Don't sort the output.
3520         * po/header.pot: Update to match xgettext 0.11 output.
3522 2002-05-16  Bruno Haible  <bruno@clisp.org>
3524         * MakeTAGS (subdirs): Remove duplicates.
3526 2002-05-19  Ulrich Drepper  <drepper@redhat.com>
3528         * sysdeps/unix/sysv/linux/errlist.c: Remove extra weak alias
3529         definiton of _old_sys_nerr.  Define _old_sys_errlist as strong
3530         alias.
3532 2002-05-19  Andreas Jaeger  <aj@suse.de>
3534         * sysdeps/unix/sysv/linux/configure.in: Warn against an
3535         installation in /usr/local.
3537 2002-05-16  Bruno Haible  <bruno@clisp.org>
3539         * sysdeps/unix/sysv/aix/bits/ioctl-types.h: Don't use multiline
3540         string as argument of #error.
3542 2002-05-15  Ulrich Drepper  <drepper@redhat.com>
3544         * stdlib/canonicalize.c (canonicalize): Rename to __realpath and
3545         don't define static.  Remove old __realpath function.  TC1 of
3546         POSIX 2001 will allow the second parameter to be NULL.
3547         * stdlib/test-canon.c: Comment out test for NULL as second
3548         parameter of realpath.
3550         * time/offtime.c (__offtime): Set errno if overflow is detected.
3552         * elf/Makefile (rtld-routines): Remove dl-brk and dl-sbrk.
3553         * sysdeps/unix/sysv/linux/Makefile (sysdep-rtld-routines): Add
3554         dl-brk and dl-sbrk.
3556         * sysdeps/sparc/fpu/bits/mathinline.h (fdim): Add __THROW.
3557         (fdimf): Likewise.
3559 2002-05-15  Roland McGrath  <roland@frob.com>
3561         * hurd/report-wait.c (_S_msg_report_wait): Use mach_msg_id_t for arg.
3563 2002-05-12  Bruno Haible  <bruno@clisp.org>
3565         * iconvdata/testdata/EUC-JISX0213: New file.
3566         * iconvdata/testdata/EUC-JISX0213..UTF8: New file.
3567         * iconvdata/testdata/SHIFT_JISX0213: New file.
3568         * iconvdata/testdata/SHIFT_JISX0213..UTF8: New file.
3569         * iconvdata/testdata/ISO-2022-JP-3: New file.
3570         * iconvdata/testdata/ISO-2022-JP-3..UTF8: New file.
3571         * iconvdata/TESTS: Add EUC-JISX0213, SHIFT_JISX0213, ISO-2022-JP-3.
3572         * iconvdata/run-iconv-test.sh: Skip the charmap test if the charmap
3573         contains comments indicating precomposed characters.
3575 2002-04-21  Bruno Haible  <bruno@clisp.org>
3577         * iconvdata/iso-2022-jp-3.c: New file.
3578         * iconvdata/gconv-modules (ISO-2022-JP-3): New module.
3579         * iconvdata/Makefile (modules): Add ISO-2022-JP-3.
3580         (LDFLAGS-ISO-2022-JP-3.so): New variable.
3581         (ISO-2022-JP-3.so): Depend on libJIS.so and libJISX0213.so.
3582         (distribute): Add iso-2022-jp-3.c.
3584 2002-05-12  Bruno Haible  <bruno@clisp.org>
3586         * iconvdata/tst-table-to.c (main): Restore handling of
3587         transliterations, broken by last patch.
3589 2002-05-12  Bruno Haible  <bruno@clisp.org>
3591         * iconvdata/TESTS: Add IBM922, IBM1124, IBM1129.
3593 2002-05-12  Bruno Haible  <bruno@clisp.org>
3595         * iconvdata/euc-jisx0213.c (BODY for FROM_LOOP): Don't advance inptr
3596         when there is not enough room in the output buffer.
3597         * iconvdata/shift_jisx0213.c (BODY for FROM_LOOP): Likewise.
3599 2002-04-20  Bruno Haible  <bruno@clisp.org>
3601         * iconv/skeleton.c ({FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO}): New
3602         macros.
3603         (RESET_INPUT_BUFFER): Use them instead of {MIN,MAX}_NEEDED_{FROM,TO}.
3604         Also make this macro work if FROM_DIRECTION evaluates to 0.
3605         (gconv_init): Use the new macros instead of {MIN,MAX}_NEEDED_{FROM,TO}.
3606         (FUNCTION_NAME): Likewise, in the handling of unaligned accesses and
3607         of consume_incomplete.
3608         * iconvdata/cp1255.c: Define {FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO}
3609         instead of {MIN,MAX}_NEEDED_{FROM,TO}. Set FROM_LOOP_MAX_NEEDED_TO to
3610         4, not 8.
3611         * iconvdata/cp1258.c: Likewise.
3612         * iconvdata/ibm930.c: Define {FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO}
3613         instead of {MIN,MAX}_NEEDED_{FROM,TO}. Set TO_LOOP_MAX_NEEDED_TO to 3,
3614         not 2.
3615         * iconvdata/ibm933.c: Likewise.
3616         * iconvdata/ibm935.c: Likewise.
3617         * iconvdata/ibm937.c: Likewise.
3618         * iconvdata/ibm939.c: Likewise.
3619         * iconvdata/iso-2022-cn.c: Define
3620         {FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO} instead of
3621         {MIN,MAX}_NEEDED_{FROM,TO}. Set TO_LOOP_MAX_NEEDED_TO to 6, not 4.
3622         * iconvdata/iso-2022-cn-ext.c: Likewise.
3623         * iconvdata/iso-2022-jp.c: Define
3624         {FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO} instead of
3625         {MIN,MAX}_NEEDED_{FROM,TO}.
3626         * iconvdata/tcvn5712-1.c: Define
3627         {FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO} instead of
3628         {MIN,MAX}_NEEDED_{FROM,TO}. Set FROM_LOOP_MAX_NEEDED_FROM to 1, not 2.
3629         * iconvdata/euc-jisx0213.c: Define
3630         {FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO} instead of
3631         {MIN,MAX}_NEEDED_{FROM,TO}. Set FROM_LOOP_MAX_NEEDED_TO to 8, not 4.
3632         * iconvdata/shift_jisx0213.c: Likewise.
3634 2002-05-14  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
3636         * sysdeps/powerpc/Makefile (sysdeps_routines): Add divdi3, cmpdi2,
3637         shdi3, fixdfdi, fixsfdi in csu dir.
3638         (shared-only-routines): Likewise.
3639         * sysdeps/wordsize-32/cmpdi2.c: New file.
3640         * sysdeps/wordsize-32/shdi3.c: New file.
3641         * sysdeps/wordsize-32/fixdfdi.c: New file.
3642         * sysdeps/wordsize-32/fixsfdi.c: New file.
3643         * sysdeps/powerpc/Versions (__divdi3, __moddi3, __udivdi3, __umoddi3,
3644         __ashldi3, __ashrdi3, __lshrdi3, __cmpdi2, __ucmpdi2, __fixdfdi,
3645         __fixsfdi, __fixunsdfdi, __fixunssfdi): Export at GLIBC_2.0.
3647         * sysdeps/unix/sysv/linux/semctl.c (__old_semctl, __new_semctl):
3648         Only use va_arg if the argument will be used [PR libc/3259].
3650 2002-05-06  Michael A. Schmidt  <mmaass@us.ibm.com>
3652         * catgets/catgets.c (catopen): Free buffer if internal catalog
3653         open fails.
3655 2002-05-14  Ulrich Drepper  <drepper@redhat.com>
3657         * debug/xtrace.sh: Make more robust.  For realtime tracking use
3658         non-buffering methods.
3659         * debug/pcprofiledump.c: Implement -u option.
3660         Patch by Roger Luethi <rl@hellgate.ch>.
3662 2002-05-11  Jakub Jelinek  <jakub@redhat.com>
3664         * include/netinet/in.h (bindresvport_internal): Add prototype.
3665         * include/rpc/auth.h  (authunix_create_internal,
3666         authunix_create_default_internal, authnone_create_internal,
3667         authdes_pk_create_internal): Add prototypes.
3668         * include/rpc/clnt.h (clnt_create_internal, clnttcp_create_internal,
3669         clntudp_create_internal, clntudp_bufcreate_internal,
3670         clntunix_create_internal): Add prototypes.
3671         * include/rpc/svc.h (svc_sendreply_internal, svcerr_decode_internal,
3672         svc_getreq_internal, svc_getreq_common_internal,
3673         svc_getreqset_internal, svc_getreq_poll_internal,
3674         svc_register_internal, svc_unregister_internal,
3675         svcudp_create_internal, svcudp_bufcreate_internal): Add prototypes.
3676         * include/rpc/svc_auth.h (_authenticate_internal): Add prototype.
3677         * include/sys/socket.h (__sendto, __recvfrom, __sendmsg, __recvmsg,
3678         __setsockopt, __getsockname, __bind, __listen): Add prototypes.
3679         * inet/rexec.c (rexec_af): Use __listen and __getsockname.
3680         * inet/rcmd.c (rcmd_af): Use __listen.
3681         (rresvport_af): Use __bind.
3682         * sunrpc/clnt_udp.c: Use INTUSE calls to bindresvport,
3683         authunix_create, authunix_create_default, authnone_create,
3684         authdes_pk_create, clnt_create, clnttcp_create, clntudp_create,
3685         clntudp_bufcreate, clntunix_create svc_sendreply, svcerr_decode,
3686         svc_getreq, svc_getreq_common, svc_getreqset, svc_getreq_poll,
3687         svc_register, svc_unregister, svcudp_create, svcudp_bufcreate,
3688         _authenticate, add INTDEF after such function definitions.
3689         Use __listen, __bind, __sendto, __recvfrom, __sendmsg, __recvmsg,
3690         __setsockopt, __getsockname instead of non-__ variants.
3691         * sunrpc/pmap_rmt.c: Likewise.
3692         * sunrpc/rtime.c: Likewise.
3693         * sunrpc/svc_udp.c: Likewise.
3694         * sunrpc/clnt_unix.c: Likewise.
3695         * sunrpc/svc_unix.c: Likewise.
3696         * sunrpc/bindrsvprt.c: Likewise.
3697         * sunrpc/svc_tcp.c: Likewise.
3698         * sunrpc/auth_none.c: Likewise.
3699         * sunrpc/clnt_raw.c: Likewise.
3700         * sunrpc/clnt_tcp.c: Likewise.
3701         * sunrpc/auth_unix.c: Likewise.
3702         * sunrpc/key_call.c: Likewise.
3703         * sunrpc/clnt_gen.c: Likewise.
3704         * sunrpc/pm_getmaps.c: Likewise.
3705         * sunrpc/clnt_simp.c: Likewise.
3706         * sunrpc/pmap_clnt.c: Likewise.
3707         * sunrpc/svc_run.c: Likewise.
3708         * sunrpc/svc.c: Likewise.
3709         * sunrpc/svc_simple.c: Likewise.
3710         * sunrpc/pm_getport.c: Likewise.
3711         * sunrpc/auth_des.c: Likewise.
3712         * sunrpc/svc_auth.c: Likewise.
3713         * sysdeps/generic/unwind-dw2-fde.c (__register_frame_info_bases,
3714         __register_frame_info_table_bases, __deregister_frame_info_bases):
3715         Add INTDEF.
3716         (__register_frame_info_bases_internal,
3717         __register_frame_info_table_bases_internal,
3718         __deregister_frame_info_bases_internal): Add prototypes.
3719         (__register_frame_info, __register_frame): Use INTUSE in call to
3720         __register_frame_info_bases.
3721         (__register_frame_info_table): Similarly.
3722         (__deregister_frame_info, __deregister_frame): Similarly.
3723         * sysdeps/generic/sendto.c (__sendto): Renamed from sendto, add
3724         sendto as weak alias.
3725         * sysdeps/mach/hurd/sendto.c: Likewise.
3726         * sysdeps/generic/recvfrom.c (__recvfrom): Renamed from recvfrom, add
3727         recvfrom as weak alias.
3728         * sysdeps/mach/hurd/recvfrom.c: Likewise.
3729         * sysdeps/unix/sysv/aix/recvfrom.c: Likewise.
3730         * sysdeps/generic/recvmsg.c (__recvmsg): Renamed from recvmsg, add
3731         recvmsg as weak alias.
3732         * sysdeps/unix/sysv/aix/recvmsg.c: Likewise.
3733         * sysdeps/generic/sendmsg.c (__sendmsg): Renamed from sendmsg, add
3734         sendmsg as weak alias.
3735         * sysdeps/unix/sysv/aix/sendmsg.c: Likewise.
3736         * sysdeps/generic/setsockopt.c (__setsockopt): Renamed from
3737         setsockopt, add setsockopt as weak alias.
3738         * sysdeps/mach/hurd/setsockopt.c: Likewise.
3739         * sysdeps/generic/bind.c (__bind): Renamed from bind, add bind as
3740         weak alias.
3741         * sysdeps/mach/hurd/bind.c: Likewise.
3742         * sysdeps/generic/listen.c (__listen): Renamed from listen, add listen
3743         as weak alias.
3744         * sysdeps/mach/hurd/listen.c: Likewise.
3745         * sysdeps/generic/getsockname.c (__getsockname): Renamed from
3746         getsockname, add getsockname as weak alias.
3747         * sysdeps/mach/hurd/getsockname.c: Likewise.
3748         * sysdeps/unix/sysv/aix/getsockname.c: Likewise.
3749         * sysdeps/mach/hurd/recvmsg.c (__recvmsg): Add weak alias.
3750         * sysdeps/mach/hurd/sendmsg.c (__sendmsg): Add weak alias.
3751         * sysdeps/unix/inet/syscalls.list (__bind, __listen, __recvmsg,
3752         __recvfrom, __sendmsg, __sendto, __setsockopt): Add aliases.
3753         * sysdeps/unix/sysv/linux/alpha/syscalls.list (__recvmsg, __sendmsg):
3754         Add aliases.
3755         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
3756         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
3757         * sysdeps/unix/sysv/linux/hppa/syscalls.list: Likewise.
3758         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
3759         * sysdeps/unix/sysv/linux/recvfrom.S (__recvfrom): Add weak alias.
3760         * sysdeps/unix/sysv/linux/recvmsg.S (__recvmsg): Likewise.
3761         * sysdeps/unix/sysv/linux/sendmsg.S (__sendmsg): Likewise.
3762         * sysdeps/unix/sysv/linux/sendto.S (__sendto): Likewise.
3763         * sysdeps/unix/sysv/linux/setsockopt.S (__setsockopt): Likewise.
3764         * sysdeps/unix/sysv/linux/bind.S (__bind): Likewise.
3765         * sysdeps/unix/sysv/linux/listen.S (__listen): Likewise.
3766         * sysdeps/unix/sysv/linux/getsockname.S (__getsockname): Likewise.
3768 2002-05-10  Jakub Jelinek  <jakub@redhat.com>
3770         * locale/programs/localedef.h (show_archive_content): Add verbose
3771         argument.
3772         * locale/programs/localedef.c (main): Adjust caller.
3773         * locale/programs/locarchive.c (struct nameent, struct dataent): New.
3774         (nameentcmp, dataentcmp): New functions.
3775         (xstrcmp): Remove.
3776         (show_archive_content): Print verbose listing with --list-archive -v.
3778 2002-05-14  Ulrich Drepper  <drepper@redhat.com>
3780         * locale/programs/locarchive.c (open_archive): Take extra argument
3781         readonly.  If true open file with O_RDONLY and don't create the
3782         archive if it doesn't exist.
3783         Adapt all callers.
3784         (close_archive): Don't do anything if fd element is -1.
3785         * locale/programs/localedef.h (open_archive): Adjust prototype.
3786         * locale/programs/locfile.c (write_all_categories): Adjust open_archive
3787         call.
3789         * malloc/malloc.c (__posix_memalign): Correct check for size of
3790         alignment value [PR libc/3444].
3792         * include/stdio.h: Remove references to old stdio implementation.
3794         * libio/Makefile (bug-ungetwc2-ENV): Define.
3796 2002-05-13  Roland McGrath  <roland@frob.com>
3798         * iconv/gconv_charset.h (upstr): Add inline keyword, quiets warning.
3800         * hurd/hurdinit.c (_hurd_init): Use internal name _hurd_new_proc_init.
3802 2002-05-13  Marcus Brinkmann  <marcus@gnu.org>
3804         * hurd/hurdchdir.c (_hurd_change_directory_port_from_name):
3805         Allocate three, not two, more than LEN when appending '/.'.
3806         * sysdeps/mach/hurd/chroot.c (chroot): Likewise.  Don't check
3807         if NAME ends with '/.' if it is shorter than 2 chars.
3809 2002-05-12  Roland McGrath  <roland@frob.com>
3811         * mach/Makefile ($(mach-syscalls:%=$(objpfx)%.S)): Make the generated
3812         files #include <sysdep.h> instead of <mach/machine/syscall_sw.h>.
3814         * hurd/hurdexec.c (_hurd_exec): Reauthenticate ports/dtable used in
3815         file_exec to effect svuid=euid, svgid=egid if that is not a no-op.
3817 2002-05-10  Jakub Jelinek  <jakub@redhat.com>
3819         * sysdeps/ia64/Makefile: Remove extra endif.
3820         * sysdeps/ia64/ia64libgcc.S (__divsf3): Fix typo in symbol version.
3822 2002-05-10  Andreas Schwab  <schwab@suse.de>
3824         * sysdeps/powerpc/fpu/w_sqrt.c: Add sqrtl alias.
3826 2002-05-09  Andreas Jaeger  <aj@suse.de>
3828         * sysdeps/unix/sysv/linux/x86_64/sys/io.h: New.
3829         * sysdeps/unix/sysv/linux/x86_64/Dist: Add it.
3830         * sysdeps/unix/sysv/linux/x86_64/Makefile (sysdep_headers): Add it.
3832         * sysdeps/unix/sysv/linux/ia64/glob.c: Move to ...
3833         * sysdeps/wordsize-64/glob.c: ...here.
3834         * sysdeps/unix/sysv/linux/x86_64/glob.c: Remove.
3835         * sysdeps/unix/sysv/linux/s390/s390-64/glob.c: Remove.
3836         * sysdeps/unix/sysv/linux/sparc/sparc64/glob.c: Remove.
3838 2002-05-08  Roland McGrath  <roland@frob.com>
3840         * hurd/hurdfchdir.c (_hurd_change_directory_port_from_fd): Use
3841         O_NOTRANS flag in "." lookup.
3843 2002-05-05  Ulrich Drepper  <drepper@redhat.com>
3845         * malloc/mtrace.c: Comment out use of _mtrace_file and _mtrace_len.
3847 2002-05-04  Ulrich Drepper  <drepper@redhat.com>
3849         * locale/duplocale.c (__duplocale): Update special members only
3850         when allocation succeeded.
3852 2002-05-03  Roland McGrath  <roland@frob.com>
3854         * shlib-versions (.*-.*-gnu-gnu.*): Remove USE_IN_LIBIO conditionals;
3855         we can only build libc.so.0.3(GLIBC_2.2.6) now.
3857 2002-05-02  Jakub Jelinek  <jakub@redhat.com>
3859         * sysdeps/ia64/Makefile: Add ia64libgcc in csu subdir.
3860         * sysdeps/ia64/Versions (__divtf3, __divdf3, __divsf3, __divdi3,
3861         __moddi3, __udivdi3, __umoddi3, __multi3): Export at GLIBC_2.0.
3862         * sysdeps/ia64/ia64libgcc.S: New file.
3864 2002-05-02  Ulrich Drepper  <drepper@redhat.com>
3866         * sysdeps/generic/dl-tls.c (oom): Implement using _dl_fatal_printf.
3868         * malloc/memusage.c: Distinguish anonymous mmap.
3870 2002-05-01  Roland McGrath  <roland@frob.com>
3872         * sysdeps/mach/hurd/close.c: #undef __close before function defn,
3873         and use INTDEF on it.
3874         * sysdeps/mach/hurd/fcntl.c: Use INTDEF2.
3876         * sysdeps/mach/hurd/dl-sysdep.c (errno): New variable.
3878         * sysdeps/mach/hurd/alpha/static-start.S: New file (unfinished).
3880 2002-05-01  Ulrich Drepper  <drepper@redhat.com>
3882         * malloc/memusage.c: Add support for tracking mmap & friends.
3883         * malloc/memusage.sh: Implement -m/--mmap option.
3885 2002-04-30  Jakub Jelinek  <jakub@redhat.com>
3887         * locale/programs/locarchive.c (create_archive): Add archivefname
3888         argument, create fname from it.
3889         (enlarge_archive): Honour output_prefix.
3890         (open_archive): Likewise.
3892 2002-04-30  Jakub Jelinek  <jakub@redhat.com>
3894         * locale/programs/locarchive.c (add_locales_to_archive): Don't nest
3895         too many stpcpy macros.
3897 2002-04-26  Bruno Haible  <bruno@clisp.org>
3899         * locale/programs/ld-collate.c (collate_read): Cast first argument
3900         for "%.*s" to int.
3902 2002-04-26  Bruno Haible  <bruno@clisp.org>
3904         * include/libintl.h (__ngettext, __dngettext, __dcngettext,
3905         __dcngettext_internal): New declarations.
3906         (__gettext, __dgettext, __dcgettext, __dcgettext_internal): Add
3907         attribute declarations.
3909 2002-04-30  Roland McGrath  <roland@frob.com>
3911         Removed old GNU stdio implementation; GNU libio is now the only option.
3912         * configure.in: Removed --enable-libio option and @stdio@ subst var.
3913         Define USE_IN_LIBIO unconditionally.
3914         * configure: Regenerated.
3915         * Makeconfig (stdio): Set to libio by default.
3916         * config.make.in (stdio): Variable removed.
3917         * sysdeps/unix/sysv/linux/configure.in: Don't set $stdio.
3918         * sysdeps/unix/sysv/linux/configure: Regenerated.
3919         * sysdeps/mach/hurd/configure.in: Don't test $stdio.
3920         * sysdeps/mach/hurd/configure: Regenerated.
3921         * stdio/.cvsignore: File removed.
3922         * stdio/Makefile: File removed.
3923         * stdio/Versions: File removed.
3924         * stdio/__fbufsize.c: File removed.
3925         * stdio/__flbf.c: File removed.
3926         * stdio/__fpending.c: File removed.
3927         * stdio/__fpurge.c: File removed.
3928         * stdio/__freadable.c: File removed.
3929         * stdio/__freading.c: File removed.
3930         * stdio/__fsetlocking.c: File removed.
3931         * stdio/__fwritable.c: File removed.
3932         * stdio/__fwriting.c: File removed.
3933         * stdio/clearerr.c: File removed.
3934         * stdio/fclose.c: File removed.
3935         * stdio/fcloseall.c: File removed.
3936         * stdio/feof.c: File removed.
3937         * stdio/ferror.c: File removed.
3938         * stdio/fflush.c: File removed.
3939         * stdio/fgetc.c: File removed.
3940         * stdio/fgetpos.c: File removed.
3941         * stdio/fgets.c: File removed.
3942         * stdio/fileno.c: File removed.
3943         * stdio/fmemopen.c: File removed.
3944         * stdio/fopen.c: File removed.
3945         * stdio/fopncook.c: File removed.
3946         * stdio/fputc.c: File removed.
3947         * stdio/fputs.c: File removed.
3948         * stdio/fread.c: File removed.
3949         * stdio/freopen.c: File removed.
3950         * stdio/fseek.c: File removed.
3951         * stdio/fsetpos.c: File removed.
3952         * stdio/ftell.c: File removed.
3953         * stdio/fwrite.c: File removed.
3954         * stdio/getc.c: File removed.
3955         * stdio/getchar.c: File removed.
3956         * stdio/getdelim.c: File removed.
3957         * stdio/gets.c: File removed.
3958         * stdio/glue.c: File removed.
3959         * stdio/internals.c: File removed.
3960         * stdio/linewrap.c: File removed.
3961         * stdio/linewrap.h: File removed.
3962         * stdio/memstream.c: File removed.
3963         * stdio/newstream.c: File removed.
3964         * stdio/obstream.c: File removed.
3965         * stdio/putc.c: File removed.
3966         * stdio/putchar.c: File removed.
3967         * stdio/puts.c: File removed.
3968         * stdio/rewind.c: File removed.
3969         * stdio/setbuf.c: File removed.
3970         * stdio/setbuffer.c: File removed.
3971         * stdio/setlinebuf.c: File removed.
3972         * stdio/setvbuf.c: File removed.
3973         * stdio/stdio.h: File removed.
3974         * stdio/ungetc.c: File removed.
3975         * stdio/vasprintf.c: File removed.
3976         * stdio/vscanf.c: File removed.
3977         * stdio/vsnprintf.c: File removed.
3978         * stdio/vsprintf.c: File removed.
3979         * stdio/vsscanf.c: File removed.
3980         * sysdeps/generic/defs.c: File removed.
3981         * sysdeps/generic/fdopen.c: File removed.
3982         * sysdeps/generic/pipestream.c: File removed.
3983         * sysdeps/generic/stdio_init.c: File removed.
3984         * sysdeps/generic/sysd-stdio.c: File removed.
3985         * sysdeps/generic/vdprintf.c: File removed.
3986         * sysdeps/mach/hurd/defs.c: File removed.
3987         * sysdeps/mach/hurd/fdopen.c: File removed.
3988         * sysdeps/mach/hurd/pipestream.c: File removed.
3989         * sysdeps/mach/hurd/stdio_init.c: File removed.
3990         * sysdeps/mach/hurd/sysd-stdio.c: File removed.
3991         * sysdeps/mach/hurd/vdprintf.c: File removed.
3992         * sysdeps/posix/defs.c: File removed.
3993         * sysdeps/posix/fdopen.c: File removed.
3994         * sysdeps/posix/pipestream.c: File removed.
3995         * sysdeps/posix/stdio_init.c: File removed.
3996         * sysdeps/posix/vdprintf.c: File removed.
3997         * sysdeps/unix/pipestream.c: File removed.
3998         * sysdeps/unix/sysv/sysd-stdio.c: File removed.
3999         * sysdeps/unix/sysv/sco3.2.4/pipestream.c: File removed.
4000         * sysdeps/unix/sysv/sysv4/pipestream.c: File removed.
4002 2002-04-29  Roland McGrath  <roland@frob.com>
4004         * include/libc-symbols.h (link_warning): Use `unused' attribute.
4006 2002-04-28  Ulrich Drepper  <drepper@redhat.com>
4008         * sysdeps/generic/tls.h: Describe what must be defined.
4010         * sysdeps/generic/glob.c (glob): Don't pass GLOB_NOMAGIC flag to
4011         glob_in_dir [PR libc/3385].
4012         * posix/globtest.sh: Add test case.
4014         * intl/loadmsgcat.c [!_LIBC] (_nl_init_domain_conv): Don't add
4015         //TRANSLIT twice.
4017 2002-04-27  Ulrich Drepper  <drepper@redhat.com>
4019         * sysdeps/unix/sysv/linux/ia64/fxstat.c: Fix a few issues with the
4020         _internal symbol handling.
4021         * sysdeps/unix/sysv/linux/ia64/lxstat.c: Likewise.
4023 2002-04-26  Ulrich Drepper  <drepper@redhat.com>
4025         * sysdeps/ia64/fpu/s_finite.S: Define _internal aliases.
4026         * sysdeps/unix/sysv/linux/ia64/fork.S: Likewise.
4028 2002-04-26  Isamu Hasegawa  <isamu@yamato.ibm.com>
4030         * posix/regcomp.c (re_compile_fastmap_iter): Fix fastmap in case of
4031         not _LIBC and RE_ENABLE_I18N.
4032         (build_range_exp): Implement for not _LIBC.
4033         (build_collating_symbol): Likewise.
4034         (parse_bracket_exp): Unify redundant error handlings.
4035         Don't erase mbcset for non matching list in multibyte envs.
4036         (build_word_op): Add '_' to matching list for \w operator.
4037         * posix/regex_internal.c (re_string_construct): Invoke
4038         build_upper_buffer in case of not RE_ENABLE_I18N.
4039         (re_string_reconstruct): Don't touch cur_state in case of not
4040         RE_ENABLE_I18N.
4041         * posix/regex_internal.h (attribute_hidden): New macro in case of
4042         not _LIBC.
4043         (re_charset_t): Define range_starts/ends in case of not _LIBC.
4044         * posix/regexec.c (sift_states_iter_mb): Hide in case of not
4045         RE_ENABLE_I18N.
4046         (transit_state_mb): Likewise.
4047         (check_node_accept_bytes): Implement the code evaluating range
4048         expression in case of not _LIBC.
4049         (find_collation_sequence_value): Hide in case of not _LIBC.
4051 2002-04-26  Jakub Jelinek  <jakub@redhat.com>
4053         * sysdeps/unix/sysv/linux/sparc/sparc32/semctl.c: Copied from
4054         i386/semctl.c.
4055         (__old_semctl, __new_semctl): Only use va_arg if the argument will
4056         be used.
4058 2002-04-26  Ulrich Drepper  <drepper@redhat.com>
4060         * sysdeps/ia64/fpu/s_isinf.S: Fix definition of _internal names.
4062         * sysdeps/ia64/strncpy.S: Fix recovery code.
4063         Patch by David Mosberger <davidm@hpl.hp.com>.
4065 2002-04-24  Ulrich Drepper  <drepper@redhat.com>
4067         * sysdeps/unix/sysv/linux/ia64/Versions [libc]: Add getunwind for
4068         GLIBC_2.2.6.
4070 2002-04-14  Bruno Haible  <bruno@clisp.org>
4072         * posix/regex.c (re_max_failures): Add back symbol for binary
4073         compatibility.
4075 2002-04-22  Isamu Hasegawa  <isamu@yamato.ibm.com>
4077         * posix/regcomp.c (re_compile_internal): Adapt it to new interface
4078         of buffer building functions.
4079         * posix/regex_internal.c (re_string_allocate): New function.
4080         (re_string_realloc_buffers): New function.
4081         (re_string_skip_chars): New function.
4082         (re_string_reconstruct): New function.
4083         (re_string_construct): Adapt it to new interface of buffer building
4084         functions.
4085         (re_string_construct_common): Likewise.
4086         (build_wcs_buffer): Likewise.
4087         (build_wcs_upper_buffer): Likewise.
4088         (build_upper_buffer): Likewise.
4089         (re_string_translate_buffer): Likewise.
4090         (re_string_context_at): Adapt it to variable length buffers.
4091         * posix/regex_internal.h (re_string_t): Add new fields to handle
4092         variable length buffers.
4093         (re_match_context_t): Likewise.
4094         * posix/regexec.c (re_search_internal): Adapt it to new interface
4095         of re_string_t and re_match_context_t.
4096         (acquire_init_state_context): Likewise.
4097         (check_matching): Likewise.
4098         (check_halt_state_context): Likewise.
4099         (proceed_next_node): Likewise.
4100         (set_regs): Likewise.
4101         (sift_states_backward): Likewise.
4102         (clean_state_log_if_need): Likewise.
4103         (sift_states_iter_mb): Likewise.
4104         (sift_states_iter_bkref): Likewise.
4105         (add_epsilon_backreference): Likewise.
4106         (transit_state): Likewise.
4107         (transit_state_sb): Likewise.
4108         (transit_state_mb): Likewise.
4109         (transit_state_bkref): Likewise.
4110         (transit_state_bkref_loop): Likewise.
4111         (check_node_accept): Likewise.
4112         (match_ctx_init): Likewise.
4113         (extend_buffers): New function.
4115 2002-04-21  Bruno Haible  <bruno@clisp.org>
4117         * iconvdata/tst-table.sh: For the second check, use the truncated
4118         GB18030 charmap table, like for the first check.
4120 2002-04-24  Ulrich Drepper  <drepper@redhat.com>
4122         * elf/dl-load.c (open_verify): Correct __lseek parameters.
4123         Patch by Simon Hildrew <simon@hildrew.net> [PR libc/3354].
4125 2002-04-23  H.J. Lu  <hjl@gnu.org>
4127         * include/math.h (isfinite): Fix a typo.
4129 2002-04-24  Ulrich Drepper  <drepper@redhat.com>
4131         * libio/bug-ungetwc2.c (test_locale): Use the de_DE.UTF-8 locale
4132         which is created by the test suite.
4134 2002-04-20  Bruno Haible  <bruno@clisp.org>
4136         * iconvdata/iso-2002-kr.c (MAX_NEEDED_FROM): Set to 4.
4137         (BODY for FROM_LOOP): Fix comparisons between inptr and inend.
4139 2002-04-20  Bruno Haible  <bruno@clisp.org>
4141         * iconvdata/johab.c (BODY for FROM_LOOP): Change type of i, m, f,
4142         to avoid gcc warning.
4144 2002-04-20  Bruno Haible  <bruno@clisp.org>
4146         * iconvdata/iso-2022-jp.c (EMIT_SHIFT_TO_INIT): Fix modification mask
4147         of data->__statep->__count.
4149 2002-04-20  Bruno Haible  <bruno@clisp.org>
4151         * iconvdata/euc-jisx0213.c (BODY for TO_LOOP): Really ignore Unicode
4152         tag characters.
4153         * iconvdata/shift_jisx0213.c (BODY for TO_LOOP): Likewise.
4155 2002-04-24  Roland McGrath  <roland@frob.com>
4157         * sysdeps/mach/alpha/syscall.S: Don't use .frame, ENTRY will have it;
4158         use END macro instead of our own .end directive.
4159         Use `callsys' insn mnemonic instead of `call_pal'.
4161         * sysdeps/mach/alpha/sysdep.h (ENTRY): New macro.
4163         * sysdeps/alpha/dl-machine.h (ELF_MACHINE_USER_ADDRESS_MASK): New
4164         macro; we need this for Hurd.
4166         Log entry was missing for 2002/03/24 commit of rev 1.8,
4167         goes with 2002-03-17 changes.
4168         * sysdeps/mach/hurd/i386/Makefile [$(subdir) = misc]
4169         (sysdep_routines): Append ioperm here.
4170         (sysdep_headers): Append sys/io.h here.
4172 2002-04-23  Roland McGrath  <roland@frob.com>
4174         * sysdeps/mach/hurd/send.c: int -> size_t for WROTE.
4175         * sysdeps/mach/hurd/sendto.c: Likewise.
4176         * hurd/hurdioctl.c (siocgifconf): int -> size_t for DATA_LEN.
4177         * sysdeps/mach/hurd/wait4.c (__wait4): natural_t -> int for SIGCODE.
4178         * sysdeps/mach/hurd/getpriority.c: unsigned int -> size_t for PISIZE.
4180 2002-04-22  Roland McGrath  <roland@frob.com>
4182         * sysdeps/mach/hurd/i386/ioperm.c (ioperm): Translate MIG_BAD_ID
4183         failure from i386_io_perm_* RPCs to ENOSYS.
4185 2002-04-22  Andreas Jaeger  <aj@suse.de>
4187         * sysdeps/unix/sysv/linux/x86_64/ldconfig.h: New file.
4189         * sysdeps/unix/sysv/linux/x86_64/dl-cache.h: New file.
4191         * sysdeps/unix/sysv/linux/x86_64/vfork.S: Use %rdi as temp
4192         register instead of destroying %rbx.
4194 2002-04-21  Ulrich Drepper  <drepper@redhat.com>
4196         * string/string.h: Declare strerror_r also for XPG6.
4198 2002-04-19  Roland McGrath  <roland@frob.com>
4200         * sysdeps/mach/hurd/tmpfile.c: Create a file descriptor and use fdopen.
4202 2002-04-20  Ulrich Drepper  <drepper@redhat.com>
4204         * Makefile: Add handling of xtests and xcheck targets.
4205         * MakeTAGS: Likewise.
4206         * Makeconfig: Likewise.
4207         * Makerules: Likewise.
4208         * Rules: Likewise.
4209         * manual/Makefile: Likewise.
4210         * sunrpc/Makefile (xtests): Add thrsvc if thread library available.
4211         * sunrpc/thrsvc.c: New file.  By Zack Weinberg.
4213 2002-04-11  Zack Weinberg  <zack@codesourcery.com>
4215         * include/rpc/rpc.h (struct rpc_thread_variables): Remove
4216         authnone_private_s.
4217         * sunrpc/auth_none.c: Include bits/libc-lock.h.
4218         Delete #ifdef _RPC_THREAD_SAFE_ block.
4219         (authnone_private): Make a struct, not a pointer to struct.
4220         (authnone_private_guard): New once-control variable.
4221         (authnone_create_once): New function, split out of
4222         authnone_create.  No need to allocate memory.
4223         (authnone_create): Just call authnone_create_once via
4224         __libc_once, then return &authnone_private->no_client.
4225         (authnone_marshal): Access private data via CLIENT argument,
4226         not authnone_private pointer.
4227         Fix typo (MAX_MARSHEL_SIZE -> MAX_MARSHAL_SIZE).
4228         * sunrpc/rpc_thread.c (__rpc_thread_destroy): No need to free
4229         authnone_private_s.
4231 2002-04-12  H.J. Lu  <hjl@gnu.org>
4233         * sunrpc/clnt_raw.c (clntraw_create): Properly set xdrs and client.
4235 2002-04-18  Bruno Haible  <bruno@clisp.org>
4237         * iconvdata/euc-jisx0213.c (EMIT_SHIFT_TO_INIT, BODY for
4238         FROM_DIRECTION): Make the FROM direction stateless.
4239         * iconvdata/shift_jisx0213.c (EMIT_SHIFT_TO_INIT, BODY for
4240         FROM_DIRECTION): Likewise.
4242 2002-04-15  Bruno Haible  <bruno@clisp.org>
4244         * iconvdata/JISX0213.TXT: New file.
4245         * iconvdata/jisx0213.h: New file.
4246         * iconvdata/jisx0213.c: New file.
4247         * iconvdata/euc-jisx0213.c: New file.
4248         * iconvdata/shift_jisx0213.c: New file.
4249         * iconvdata/gconv-modules (EUC-JISX0213, SHIFT_JISX0213): New modules.
4250         * iconvdata/EUC-JISX0213.precomposed: New file.
4251         * iconvdata/SHIFT_JISX0213.precomposed: New file.
4252         * iconvdata/SHIFT_JISX0213.irreversible: New file.
4253         * iconvdata/tst-table-to.c (main): Make it work for encodings for
4254         which the "to" direction is stateful.
4255         * iconvdata/tst-tables.sh: Add EUC-JISX0213, SHIFT_JISX0213.
4256         * iconvdata/Makefile (modules): Add libJISX0213, EUC-JISX0213,
4257         SHIFT_JISX0213.
4258         (libJISX0213-routines): New variable.
4259         (LDFLAGS-EUC-JISX0213.so, LDFLAGS-SHIFT_JISX0213.so): New variables.
4260         (EUC-JISX0213.so, SHIFT_JISX0213.so): Depend on libJISX0213.so.
4261         (LDFLAGS-libJISX0213.so): New variable.
4262         (distribute): Add JISX0213.TXT, EUC-JISX0213.precomposed,
4263         SHIFT_JISX0213.precomposed, SHIFT_JISX0213.irreversible,
4264         jisx0213.c, jisx0213.h, euc-jisx0213.c, shift_jisx0213.c.
4266 2002-04-15  Bruno Haible  <bruno@clisp.org>
4268         * iconvdata/big5hkscs.c (big5hkscs_to_ucs): Change element type to
4269         uint32_t.  Update to Unicode 3.2.
4270         (from_ucs4, from_ucs4_idx): Update to Unicode 3.2.
4271         (BODY for TO_LOOP): Handle the ASCII range specially.
4272         * iconvdata/BIG5HKSCS.irreversible: Add one more entry.
4273         * iconvdata/testdata/BIG5HKSCS: Remove a character.
4274         * iconvdata/testdata/BIG5HKSCS..UTF-8: Regenerated.
4276 2002-04-15  Bruno Haible  <bruno@clisp.org>
4278         * iconvdata/gb18030.c (__twobyte_to_ucs, __fourbyte_to_ucs,
4279         __ucs_to_gb18030_tab1, __ucs_to_gb18030_tab2): Update to Unicode 3.2.
4281 2002-04-15  Bruno Haible  <bruno@clisp.org>
4283         * iconvdata/cns11643.h (__cns11643_from_ucs4p2c_tab): New declaration.
4284         (ucs4_to_cns11643): Update.
4285         * iconvdata/cns11643.c: Update to Unicode 3.2.
4286         (__cns11643l2*_to_ucs4_tab, __cns11643_from_ucs4p0_tab,
4287         __cns11643_from_ucs4p2_tab): Regenerated.
4288         (__cns11643_from_ucs4p2c_tab): New array.
4289         * iconvdata/cvs11643l1.c: Update comments.
4290         * iconvdata/EUC-TW.irreversible: Remove two entries.
4292 2002-04-15  Bruno Haible  <bruno@clisp.org>
4294         * locale/C-translit.h.in: Update to Unicode 3.2.
4295         Add <U2047>, <U205F>..<U2063>, <U2145>..<U2149>, <U2A74>..<U2A76>,
4296         <U30A0>, <U3251>..<U325F>, <U32B1>..<U32BF>, <UFE00>..<UFE0F>.
4298 2002-04-15  Bruno Haible  <bruno@clisp.org>
4300         * iconvdata/sjis.c (halfkana_to_ucs4): Remove array.
4301         (BODY for FROM_LOOP): Optimize the JISX0201:GR to Unicode conversion.
4303 2002-04-15  Bruno Haible  <bruno@clisp.org>
4305         * iconvdata/euc-jp.c (BODY for FROM_LOOP): When encountering an
4306         invalid input (e.g. a byte > 0x80 followed by a byte < 0x80), skip
4307         always one byte, not 0 bytes in some cases and 2 bytes in others.
4309         * iconvdata/tst-table-from.c (main): Correct the usage message.
4311 2002-04-19  Isamu Hasegawa  <isamu@yamato.ibm.com>
4313         * posix/regcomp.c (parse_expression): Fix incorrect error code.
4314         (parse_dup_op): Fix error handling like "a{}".
4315         (parse_bracket_exp): Add error handling.
4316         (fetch_number): Add error handling for "a{<very_large_number>}".
4318 2002-04-19  Isamu Hasegawa  <isamu@yamato.ibm.com>
4320         * posix/regcomp.c (parse_bracket_symbol): Add error handling
4321         in case that the symbol name is too long.
4322         (build_charclass): Handle [:lower:]/[:uppper:] correctly
4323         in case of REG_ICASE.
4325 2002-04-19  Andreas Jaeger  <aj@suse.de>
4327         * math/libm-test.inc: Fix comment, suggested by Hartvig Ekner
4328         <hartvige@mips.com>.
4330 2002-04-15  H.J. Lu  <hjl@gnu.org>
4332         * include/math.h (__finitel_internal): Declare only if
4333         __NO_LONG_DOUBLE_MATH is not defined.
4334         (__isinfl_internal): Likewise.
4335         (__isnanl_internal): Likewise.
4337         * sysdeps/unix/sysv/linux/alpha/syscalls.list: Add __connect_internal.
4338         * sysdeps/unix/sysv/linux/hppa/syscalls.list: Likewise.
4339         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
4340         * sysdeps/unix/sysv/linux/mips/syscalls.list: Likewise.
4341         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
4342         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
4343         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
4345         * sysdeps/unix/sysv/linux/syscalls.list: Add __chown_internal and
4346         __fcntl_internal.
4348         * sysdeps/unix/sysv/linux/fxstat.c (__fxstat64_internal): Added.
4349         * sysdeps/unix/sysv/linux/lxstat.c (__lxstat64_internal): Added.
4351 2002-04-15  Bruno Haible  <bruno@clisp.org>
4353         * iconvdata/armscii-8.c (BODY for FROM_LOOP): Fix array access.
4354         (BODY for TO_LOOP): Likewise.
4355         * iconvdata/tcvn5712-1.c (from_ucs4): Map U+0309 to 0xB1.
4356         * iconvdata/tst-table.sh: Add support for encodings which contain
4357         precomposed Unicode characters, known to the iconv converter in both
4358         directions but not listed in the charmap.
4359         * iconvdata/IBM856.irreversible: New file.
4360         * iconvdata/IBM922.irreversible: New file.
4361         * iconvdata/IBM1132.irreversible: New file.
4362         * iconvdata/IBM1133.irreversible: New file.
4363         * iconvdata/IBM1160.irreversible: New file.
4364         * iconvdata/IBM1161.irreversible: New file.
4365         * iconvdata/IBM1163.irreversible: New file.
4366         * iconvdata/IBM1164.irreversible: New file.
4367         * iconvdata/ARMSCII-8.irreversible: New file.
4368         * iconvdata/TCVN5712-1.precomposed: New file.
4369         * iconvdata/tst-tables.sh: Add IBM856, IBM922, IBM1124, IBM1129,
4370         IBM1160, IBM1161, IBM1132, IBM1133, IBM1162, IBM1163, IBM1164,
4371         ARMSCII-8, TCVN5712-1.
4372         * iconvdata/Makefile (distribute): Add IBM856.irreversible,
4373         IBM922.irreversible, IBM1132.irreversible, IBM1133.irreversible,
4374         IBM1160.irreversible, IBM1161.irreversible, IBM1163.irreversible,
4375         IBM1164.irreversible, ARMSCII-8.irreversible, TCVN5712-1.precomposed.
4377 2002-04-17  Jakub Jelinek  <jakub@redhat.com>
4379         * time/tst-mktime.c: Include <stdlib.h>.  Use %d, not %ld format
4380         for EVENING69.  Include offsets in TZ environment variable.
4382 2002-04-18  Ulrich Drepper  <drepper@redhat.com>
4384         * iconv/skeleton.c (RESET_INPUT_BUFFER): Replace ifs with #ifs to
4385         avoid compiler warnings.
4387         * locale/programs/localedef.c (main): Always call
4388         construct_output_path.
4390         * iconv/Makefile (CFLAGS-simple-hash.c): Define to find hashval.h.
4392         * locale/programs/locfile.c (to_archive): New variable.  To collect
4393         data which has to be added to the locale archive.
4394         (write_all_categories): Take new third parameter with locale name.
4395         Unless no_archive flag set add new locale data to the archive
4396         (write_locale_data): Unless no-archive flag set store generated data
4397         in to_archive data structure instead of generation output file.
4398         Add new parameter with locale category index.
4399         * locale/programs/locfile.h: Add new parameters in declaractions of
4400         write_all_categories and write_locale_data.
4401         * locale/programs/localedef.c: Recognize --no-archive, --list-archive,
4402         --add-to-archive, and --delete-from-archive options.  Pass extra
4403         parameter to write_all_categories.
4404         * locale/programs/localedef.h: Add prototypes for functions in
4405         locarchive.c.
4406         * locale/locarchive.h: New file.
4407         * locale/programs/locarchive.c: New file.
4408         * locale/Makefile (distribute): Add programs/locarchive.c and
4409         locarchive.h.
4410         (localedef-modules): Add md5 and locarchive.
4411         Add vpath to crypt subdir for md5.c.
4413         * locale/programs/ld-address.c: Pass locale category ID as new second
4414         parameter to write_locale_data.
4415         * locale/programs/ld-collate.c: Likewise.
4416         * locale/programs/ld-ctype.c: Likewise.
4417         * locale/programs/ld-identification.c: Likewise.
4418         * locale/programs/ld-measurement.c: Likewise.
4419         * locale/programs/ld-messages.c: Likewise.
4420         * locale/programs/ld-monetary.c: Likewise.
4421         * locale/programs/ld-name.c: Likewise.
4422         * locale/programs/ld-numeric.c: Likewise.
4423         * locale/programs/ld-paper.c: Likewise.
4424         * locale/programs/ld-telephone.c: Likewise.
4425         * locale/programs/ld-time.c: Likewise.
4427         * locale/simple-hash.c: Move compute_hashval function from here...
4428         * locale/hashval.h: ...to here.  New file.
4429         * locale/simple-hash.h: Add prototype for compute_hashval.
4431         * include/libintl.h: Minor cleanups.
4433 2002-04-16  Ulrich Drepper  <drepper@redhat.com>
4435         * posix/regcomp.c (gettext): Use INTUSE for _libc_intl_domainname.
4437 2002-04-15  Ulrich Drepper  <drepper@redhat.com>
4439         * include/sys/stat.h: Fix typo.  Patch by HJ Lu.
4441 2002-04-14  Bruno Haible  <bruno@clisp.org>
4443         * locale/programs/charmap.c (charmap_read): Don't access result if
4444         result == NULL.
4446 2002-02-17  Andreas Schwab  <schwab@suse.de>
4448         * elf/reldep7.c: New file.
4449         * elf/reldep7mod1.c: New file.
4450         * elf/reldep7mod2.c: New file.
4451         * elf/Makefile: Add rules to build and run reldep7.
4453 2002-04-14  Jakub Jelinek  <jakub@redhat.com>
4455         * elf/dl-lookup.c (_dl_lookup_symbol): Move add_dependency call to
4456         the end of the function.  Pass original flags to recursive call if
4457         add_dependency failed.
4458         (_dl_lookup_versioned_symbol): Likewise.
4460 2002-04-13  Jakub Jelinek  <jakub@redhat.com>
4462         * time/mktime.c (__mktime_internal): If year is 69, don't bail out
4463         early, but check whether it overflowed afterwards.
4464         * time/tst-mktime.c (main): Add new tests.
4466 2002-04-14  Ulrich Drepper  <drepper@redhat.com>
4468         * debug/xtrace.sh: Fix program name in help message.
4469         Patch by Roger Luethi <rl@hellgate.ch>.
4471         * include/sys/stat.h: Add prototypes for __lxstat_internal and
4472         __lxstat64_internal.  Add macros __lxstat and __lxstat64 if not
4473         NOT_IN_libc.
4474         * sysdeps/generic/lxstat.c: Use INTDEF for __lxstat.
4475         * sysdeps/mach/hurd/lxstat.c: Likewise.
4476         * sysdeps/unix/common/lxstat.c: Likewise.
4477         * sysdeps/unix/sysv/aix/lxstat.c: Likewise.
4478         * sysdeps/unix/sysv/linux/lxstat.c: Likewise.
4479         * sysdeps/unix/sysv/linux/i386/lxstat.c: Likewise.
4480         * sysdeps/unix/sysv/linux/ia64/lxstat.c: Likewise.
4481         * sysdeps/unix/sysv/linux/s390/s390-64/lxstat.c: Likewise.
4482         * sysdeps/generic/lxstat64.c: Use INTDEF for __lxstat64.
4483         * sysdeps/mach/hurd/lxstat64.c: Likewise.
4484         * sysdeps/unix/sysv/aix/lxstat64.c: Likewise.
4485         * sysdeps/unix/sysv/linux/lxstat64.c: Likewise.
4487         * include/wchar.h: Declare __mbrtowc_internal and __mbrlen_internal
4488         prototypes.  Add __mbrlen and __mbrtowc macros.
4489         * wcsmbs/mbrlen.c: Use INTDEF for __mbrlen.
4490         * wcsmbs/mbrtowc.c: Use INTDEF for __mbrtowc.
4492         * include/unistd.h: Add prototype for __write_internal and add
4493         __libc_write macro is SHARED.
4494         * sysdeps/generic/write.c: Use INTDEF for __write.
4495         * sysdeps/mach/hurd/write.c: Likewise.
4496         * sysdeps/unix/sysv/aix/write.c: Likewise.
4497         * sysdeps/unix/syscalls.list: Add __libc_write alias.
4499         * assert/assert.c: Replace STR_N_SIZE with something usable in
4500         macro arguments.
4501         * assert/assert-perr.c: Likewise.
4503         * include/sys/socket.h: Declare __libc_sa_len_internal and define
4504         SA_LEN macro to use it if not NOT_IN_libc.
4505         * sysdeps/unix/sysv/linux/sa_len.c: Use INTDEF for __libc_sa_len.
4507         * include/fcntl.h: Declare __open_internal and define __open and
4508         __libc_open macros if not NOT_IN_libc.
4509         * sysdeps/generic/open.c: Use INTDEF for __open.
4510         * sysdeps/mach/hurd/open.c: Likewise.
4511         * sysdeps/unix/sysv/aix/open.c: Likewise.
4512         * sysdeps/unix/syscalls.list: Add __open_internal alias.
4514         * sysdeps/generic/check_fds.c: Make sure newly opened file descriptor
4515         has correct number.
4517         * include/fcntl.h: Define __libc_fcntl macro if not NOT_IN_libc.
4518         * sysdeps/mach/hurd/fcntl.c: Undefine __libc_fcntl as well.
4519         * sysdeps/unix/sysv/aix/fcntl.c: Likewise.
4520         * sysdeps/unix/sysv/linux/i386/fcntl.c: Likewise.
4522         * include/wctype.h: Declare __iswalpha_l_internal,
4523         __iswdigit_l_internal, __iswspace_l_internal,
4524         __iswxdigit_l_internal, and __iswctype_internal.  Define
4525         __iswalpha_l, __iswctype, __iswdigit_l, __iswspace_l, and
4526         __iswxdigit_l macros if not NOT_IN_libc.
4527         * wctype/iswctype.c: Use INTDEF for __iswctype.
4528         * wctype/wcfuncs_l.c: Use INTDEF for all __iswXXX_l.
4530         * include/math.h: Declare __isinf_internal, __isinfl_internal,
4531         __isnan_internal, and __isnanl_internal.
4532         * stdio-common/printf_fp.c: Use INTUSE for calls to __isinf, __isinfl,
4533         __isnan, and __isnanl.
4534         * stdio-common/printf_size.c: Likewise.
4535         * sysdeps/generic/printf_fphex.c: Likewise.
4536         * sysdeps/i386/fpu/s_isinfl.c: Also define _internal alias.
4537         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
4538         * sysdeps/ia64/fpu/s_isinf.S: Likewise.
4539         * sysdeps/ia64/fpu/s_isnan.S: Likewise.
4540         * sysdeps/ieee754/dbl-64/s_isinf.c: Likewise.
4541         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
4542         * sysdeps/ieee754/flt-32/s_isinff.c: Likewise.
4543         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
4544         * sysdeps/ieee754/ldbl-128/s_isinfl.c: Likewise.
4545         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
4546         * sysdeps/ieee754/ldbl-96/s_isinfl.c: Likewise.
4547         * sysdeps/m68k/s_isinfl.c: Likewise.
4548         * sysdeps/m68k/fpu/s_isinf.c: Likewise.
4549         * sysdeps/powerpc/fpu/s_isnan.c: Likewise.
4551         * include/sys/time.h: Declare __gettimeofday_internal and define
4552         __gettimeofday macro if not NOT_IN_libc.
4553         * sysdeps/generic/gettimeofday.c: Use INTEDEF for __gettimeofday.
4554         * sysdeps/mach/gettimeofday.c: Likewise.
4555         * sysdeps/posix/gettimeofday.c: Likewise.
4556         * sysdeps/unix/sysv/aix/gettimeofday.c: Likewise.
4557         * sysdeps/unix/common/syscalls.list: Define __gettimeofday alias.
4558         * sysdeps/unix/sysv/linux/alpha/gettimeofday.S: Likewise.
4559         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S: Likewise.
4561         * include/sys/stat.h: Declare __fxstat_internal and __fxstat64_internal
4562         and define __fxstate and __fxstat64 macros if not NOT_IN_libc.
4563         Remove __lstat and __fstat inline functions.
4564         * sysdeps/generic/fxstat.c: Use INTDEF for __fxstat.
4565         * sysdeps/mach/hurd/fxstat.c: Likewise.
4566         * sysdeps/unix/fxstat.c: Likewise.
4567         * sysdeps/unix/sysv/aix/fxstat.c: Likewise.
4568         * sysdeps/unix/sysv/linux/fxstat.c: Likewise.
4569         * sysdeps/unix/sysv/linux/i386/fxstat.c: Likewise.
4570         * sysdeps/unix/sysv/linux/ia64/fxstat.c: Likewise.
4571         * sysdeps/unix/sysv/linux/s390/s390-64/fxstat.c: Likewise.
4572         * sysdeps/generic/fxstat64.c: Use INTDEF for __fxstat64.
4573         * sysdeps/mach/hurd/fxstat64.c: Likewise.
4574         * sysdeps/unix/sysv/aix/fxstat64.c: Likewise.
4575         * sysdeps/unix/sysv/linux/fxstat64.c: Likewise.
4577         * include/unistd.h: Declare __getpid_internal and define
4578         __getpid macro if not NOT_IN_libc.
4579         * sysdeps/mach/hurd/getpid.c: Use INTDEF for __getpid.
4580         * sysdeps/generic/getpid.c: Likewise.
4581         * sysdeps/unix/syscalls.list: Add __getpid_internal alias.
4582         * posix/bsd-getpgrp.c: Use INTUSE for __getpgid call.
4584         * include/unistd.h: Declare __getpgid_internal and define
4585         __getpgid macro if not NOT_IN_libc.
4586         * sysdeps/generic/getpgid.c: Use INTDEF for __getpgid.
4587         * sysdeps/mach/hurd/getpgid.c: Likewise.
4588         * sysdeps/unix/sysv/aix/getpgid.c: Likewise.
4589         * sysdeps/unix/sysv/sysv4/__getpgid.c: Likewise.
4590         * sysdeps/unix/sysv/sysv4/getpgid.c: Likewise.
4591         * sysdeps/unix/sysv/linux/syscalls.list: Add _getpgid_internal alias.
4593         * include/unistd.h: Declare __getpagesize_internal and define
4594         __getpagesize macro if not NOT_IN_libc.
4595         * sysdeps/unix/sysv/linux/shmat.c: Include <unistd.h> for
4596         __getpagesize.
4597         * sysdeps/generic/getpagesize.c: Use INTDEF for __getpagesize.
4598         * sysdeps/mach/getpagesize.c: Likewise.
4599         * sysdeps/posix/getpagesize.c: Likewise.
4600         * sysdeps/unix/getpagesize.c: Likewise.
4601         * sysdeps/unix/sysv/linux/getpagesize.c: Likewise.
4602         * sysdeps/unix/sysv/linux/ia64/getpagesize.c: Likewise.
4603         * sysdeps/unix/sysv/linux/m68k/getpagesize.c: Likewise.
4604         * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize.c: Likewise.
4606 2002-04-13  Andreas Jaeger  <aj@suse.de>
4608         * sysdeps/i386/i486/bits/string.h (__strcspn_cg): Use only memory
4609         as clobber to reduce register pressure.
4610         (__strpbrk_cg): Likewise.
4611         (__mempcpy_by4): Likewise.
4612         (__strstr_cg): Likewise.
4613         Add prototype for __memrchr.
4615 2002-04-13  Andreas Schwab  <schwab@suse.de>
4617         * sysdeps/m68k/fpu/s_finite.c: Add internal alias.
4618         * sysdeps/m68k/fpu/s_finitef.c: Likewise.
4619         * sysdeps/m68k/fpu/s_finitel.c: Likewise.
4621 2002-04-13  Ulrich Drepper  <drepper@redhat.com>
4623         * elf/do-lookup.h [!VERSIONED]: Add new parameter flags.  Use it to
4624         check whether the caller prefers getting the most recent version of
4625         a symbol of the earliest version.
4626         * elf/dl-lookup.c: Adjust all callers of do_lookup.  Change
4627         _dl_do_lookup to also take the new parameter and pass it on.
4628         Change 'explicit' parameter of _dl_lookup_symbol and
4629         _dl_lookup_versioned_symbol to flags.  Adjust tests.
4630         * sysdeps/generic/ldsodefs.h: Adjust prototypes.
4631         * elf/dl-libc.c: Adjust all callers of _dl_lookup_symbol and
4632         _dl_lookup_versioned_symbol.
4633         * elf/dl-reloc.c: Likewise.
4634         * elf/dl-runtime.c: Likewise.
4635         * elf/dl-sym.c: Likewise.
4636         * sysdeps/mips/dl-machine.h: Likewise.
4638 2002-04-11  Jakub Jelinek  <jakub@redhat.com>
4640         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h (LOC): Don't paste
4641         in a token.
4642         * sysdeps/unix/sysv/sysv4/solaris2/sparc/sysdep.h (LOC): Likewise.
4644 2002-04-10  Andreas Jaeger  <aj@suse.de>
4646         * sysdeps/unix/sysv/linux/x86_64/glob.c: New file.
4648         * include/argz.h: Remove extra char from last patch.
4650 2002-04-09  Ulrich Drepper  <drepper@redhat.com>
4652         * sysdeps/mach/hurd/chown.c: Use INTDEF for __chown.
4653         * sysdeps/unix/sysv/aix/chown.c: Likewise.
4654         * sysdeps/unix/grantpt.c: Use INTUSE for __chown calls.
4655         * sysdeps/unix/sysv/linux/m68k/chown.c: Likewise.
4656         * sysdeps/unix/sysv/linux/powerpc/chown.c: Likewise.
4657         * sysdeps/unix/sysv/linux/i386/chown.c: Use INTDEF2 to define
4658         __chown_internal.
4659         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Likewise.
4661         * intl/dcngettext.c [_LIBC]: Use INTUSE for __dcngettext.
4662         * intl/dngettext.c [_LIBC] (DCNGETTEXT): Use INTUSE.
4663         * intl/ngettext.c: Likewise.
4665         * include/sys/socket.h: Declare __connect_internal and define
4666         __connect macro if not NOT_IN_libc.
4667         * sysdeps/mach/hurd/connect.c: Use INTDEF for __connect.
4668         * sysdeps/unix/sysv/aix/connect.c: Likewise.
4669         * sysdeps/unix/sysv/linux/connect.S: Add __connect_internal alias.
4671         * include/unistd.h: Declare __close_internal and define __close macro
4672         if not NOT_IN_libc.
4673         * libio/libioP.h (JUMO0, JUMP1, JUMP2, JUMP3, WJUMP0, WJUMP1, WJUMP2,
4674         WJUMP3): Add extra parenthesis to avoid expanding element names with
4675         macors like __close.
4676         * sysdeps/unix/syscalls.list: Add __close_internal alias.
4678         * include/unistd.h: Declare __dup2_internal and define __dup2 macro
4679         if not NOT_IN_libc.
4680         * sysdeps/mach/hurd/dup2.c: Use INTDEF for __dup2.
4681         * sysdeps/posix/dup2.c: Use INTDEF for __dup2.
4682         * sysdeps/unix/syscalls.list: Add __dup2_internal alias.
4684         * include/unistd.h: Declare __fork_internal and define __fork macro
4685         if not NOT_IN_libc.
4686         * sysdeps/mach/hurd/fork.c: Use INTDEF for __fork.
4687         * sysdeps/unix/sysv/aix/fork.c: Likewise.
4688         * sysdeps/unix/sysv/linux/syscalls.list: Add __fork_internal alias.
4690         * include/stdio_ext.h: Declare __fsetlocking_internal and define
4691         __fsetlocking macro to use it if not NOT_IN_libc.
4692         * libio/__fsetlocking.c: Use INTDEF for __fsetlocking.
4694         * libio/__fbufsize.c: Correct copyright.
4695         * libio/__flbf.c: Likewise.
4696         * libio/__fpending.c: Likewise.
4697         * libio/__fpurge.c: Likewise.
4698         * libio/__freadable.c: Likewise.
4699         * libio/__freading.c: Likewise.
4700         * libio/__fsetlocking.c: Likewise.
4701         * libio/__fwritable.c: Likewise.
4702         * libio/__fwriting.c: Likewise.
4704         * include/stdio.h: Declare __asprintf_internal and define __asprintf
4705         macro to use it if not NOT_IN_libc.
4706         * stdio-common/asprintf.c: Use INTDEF for __asprintf.
4708         * include/mntent.h: Declare __setmntent_internal,
4709         __getmntent_r_internal, __endmntent_internal.  Define __setmntent,
4710         __getmntent_r, and __endmntent macros to use these functions if not
4711         NOT_IN_libc.
4712         * misc/mntent_r.c: Use INTDEF for __setmntent, __getmntent_r, and
4713         __endmntent.
4715         * include/math.h: Declare __finite_internal, __finitef_internal, and
4716         __finitel_internal.  Redefine isfinite macro if in libc or libm using
4717         these functions.
4718         * sysdeps/generic/s_ldexp.c: Use INTUSE for __finite calls.
4719         * sysdeps/generic/s_ldexpf.c: Use INTUSE for __finitef calls.
4720         * sysdeps/generic/s_ldexpl.c: Use INTUSE for __finitel calls.
4721         * sysdeps/i386/fpu/s_finite.S: Define _internal alias.
4722         * sysdeps/i386/fpu/s_finitef.S: Likewise.
4723         * sysdeps/i386/fpu/s_finitel.S: Likewise.
4724         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
4725         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
4726         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
4727         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
4729         * include/fcntl.h: Declare __fcntl_internal.  Define __fcntl macro
4730         to use this function if not NOT_IN_libc.
4731         * libio/iofdopen.c (_IO_fcntl): Use INTUSE.
4732         * sysdeps/generic/fcntl.c: Use INTDEF for __fcntl.
4733         * sysdeps/mach/hurd/fcntl.c: Likewise.
4734         * sysdeps/unix/sysv/aix/fcntl.c: Likewise.
4735         * sysdeps/unix/sysv/linux/i386/fcntl.c: Likewise.
4737         * include/argz.h: Declare __argz_count_internal and
4738         __argz_stringify_internal.
4739         * intl/l10nflist.c [_LIBC]: Use INTUSE for __argz_count and
4740         __argz_stringify.
4741         * string/argz-count.c: Use INTDEF for __argz_count.
4742         * string/argz-stringify.c: Use INTDEF for __argz_stringify.
4744         * include/stdlib.h: Declare __cxa_atexit_internal and define
4745         __cxa_atexit macro if not NOT_IN_libc.
4746         * stdlib/cxa_atexit.c: Use INTDEF for __cxa_atexit.
4747         * dlfcn/Makefile: Define NOT_IN_libc when compiling modcxaatexit.c.
4749         * assert/assert.c: Use INTDEF for __assert_fail.
4750         * assert/__assert.c: Use INTUSE for call to __assert_fail.
4751         * include/assert.h: Declare __assert_fail_internal.
4753         * extra-lib.mk: Mark assignment to lib with override.
4755 2002-04-08  Ulrich Drepper  <drepper@redhat.com>
4757         * Makerules: Use cppflags-iterator.mk to add defines for all test
4758         source files.
4760 2002-04-08  kaz Kojima  <kkojima@rr.iij4u.or.jp>
4762         * elf/elf.h: Define R_SH_TLS_xxx macros.
4763         * elf/rtld.c: Remove an extra parenthesis.
4764         * elf/tls-macros.h: Define SH version TLS_LE, TLS_IE, TLS_LD and
4765         TLS_GD macros.
4766         * sysdeps/generic/dl-tls.c: Add a missing semi-colon.
4767         * sysdeps/sh/dl-lookupcfg.h: New file.
4768         * sysdeps/sh/dl-tls.h: New file.
4769         * sysdeps/sh/dl-machine.h (elf_machine_type_class): Set
4770         ELF_RTYPE_CLASS_PLT also for the three TLS relocations.
4771         (elf_machine_rela): Handle R_SH_TLS_DTPMOD32, R_SH_TLS_DTPOFF32 and
4772         R_SH_TLS_TPOFF32 relocations.
4774 2002-04-08  Ulrich Drepper  <drepper@redhat.com>
4776         * cppflags-iterator.mk (cpp-srcs-left): Define NOT_IN_libc instead
4777         of NOT_IN_LIBC.
4778         * include/libintl.h: Test for NOT_IN_libc not NOT_IN_LIBC.
4779         * include/stdlib.h: Likewise.
4781 2002-04-08  Jakub Jelinek  <jakub@redhat.com>
4783         * elf/Makefile (CFLAGS-.os): Define NOT_IN_libc and IS_IN_rtld
4784         instead of _RTLD_LOCAL.
4785         * elf/dl-dst.h: Use IS_IN_rtld instead of _RTLD_LOCAL.
4786         * include/unistd.h: Likewise.
4787         * sysdeps/generic/ldsodefs.h: Likewise.
4789         * stdio-common/_itoa.h (_itoa_word): Only use internal digit arrays
4790         if in libc or ld.so.
4792 2002-04-08  Andreas Jaeger  <aj@suse.de>
4794         * elf/cache.c (print_entry): Support x86-64.
4796 2002-04-08  Ulrich Drepper  <drepper@redhat.com>
4798         * include/stdlib.h: For libc itself replace MB_CUR_MAX definition
4799         with one accessing the locale data structures directly.
4800         * stdio-common/printf-prs.c: Include localeinfo.h for new
4801         MB_CUR_MAX definition.
4803         * Makeconfig (CPPFLAGS): Also add CPPFLAGS-<basename> where <basename>
4804         is the name of the source file without extension.
4805         * Makefile (distribute): Add cppflags-iterator.mk.
4806         * cppflags-iterator.mk: New file.
4807         * extra-lib.mk: For the sources of the library run
4808         cppflags-iterator.mk.
4810         * include/libintl.h: Declare __dcgettext_internal and
4811         _libc_intl_domainname_internal.  Define __dcgettext using these
4812         two symbols if used in libc itself.
4813         * argp/argp-help.c: Define dgettext using __dcgettext_internal and
4814         _libc_intl_domainname_internal.
4815         * argp/argp-parse.c: Likewise.
4816         * intl/dcgettext.c (__dcgettext): Use INTDEF to define alias.
4817         * intl/dgettext.c: Call __dcgettext_internal instead of __dcgettext.
4818         * intl/gettext.c: Likewise.
4819         * locale/SYS_libc.c (_libc_intl_domainname): Use INTDEF to define
4820         alias.
4821         * posix/regcomp.c (gettext): Use __dcgettext_internal instead of
4822         __dcgettext.
4823         * posix/regex_internal.c (gettext): Likewise.
4825 2002-04-08  Andreas Jaeger  <aj@suse.de>
4827         * sysdeps/unix/sysv/linux/x86_64/ldd-rewrite.sed: Fix rewrite rule.
4829         * sysdeps/x86_64/fpu/s_llrint.S: New.
4830         * sysdeps/x86_64/fpu/s_llrintf.S: New.
4831         * sysdeps/x86_64/fpu/s_llrintl.S: New.
4832         * sysdeps/x86_64/fpu/s_lrint.S: New.
4833         * sysdeps/x86_64/fpu/s_lrintf.S: New
4834         * sysdeps/x86_64/fpu/s_lrintl.S: New.
4836 2002-04-08  Roland McGrath  <roland@frob.com>
4838         * sysdeps/mach/hurd/dl-sysdep.c (__mmap): Use MAP_FAILED instead of
4839         widening __hurd_fail value.
4841 2002-04-07  Roland McGrath  <roland@frob.com>
4843         * sysdeps/mach/hurd/alpha/trampoline.c: Don't include
4844         <mach/machine/alpha_instruction.h>.
4845         (_hurd_setup_sighandler): Take proper arguments for current decls.
4846         Update code to use _hurdsig_catch_fault.
4847         Use `callsys' instruction instead of `call_pal'.
4848         * sysdeps/mach/hurd/alpha/intr-msg.h: New file.
4850         * sysdeps/mach/alpha/sysdep.h: Include <mach/alpha/asm.h>.
4851         (ALIGN, at, AT, fp): New macros.
4853 2002-04-06  Roland McGrath  <roland@frob.com>
4855         * mach/setup-thread.c (__mach_setup_thread): int -> natural_t
4857         * sysdeps/mach/hurd/dl-sysdep.c: Use ElfW(TYPE) in place of Elf32_TYPE.
4858         (__mmap): Use MAP_FAILED instead of widening __hurd_fail value.
4860         * sysdeps/mach/hurd/bind.c: Use prototype definition.
4861         * sysdeps/mach/hurd/connect.c: Likewise.
4862         * sysdeps/mach/hurd/getsockopt.c: Likewise.
4863         * sysdeps/mach/hurd/setsockopt.c: Likewise.
4865         * sysdeps/mach/hurd/alpha/sigreturn.c: Pass missing argument to
4866         __msg_sig_post RPC.
4868         * hurd/catch-exc.c: Use integer_t instead of int.
4869         * hurd/hurdfault.c: Likewise.
4871         * sysdeps/mach/hurd/alpha/exc2signal.c
4872         (_hurd_exception2signal): Rewritten.
4873         * sysdeps/mach/hurd/alpha/longjmp-ts.c
4874         (_hurd_longjmp_thread_state): Rewritten.
4876 2002-04-07  Ulrich Drepper  <drepper@redhat.com>
4878         * nss/getXXbyYY_r.c: If NSS_attribute_hidden is defined use it with the
4879         DB_LOOKUP_FCT prototype.
4880         * nss/getXXent_r.c: Likewise.
4881         * inet/getaliasent_r.c: Define NSS_attribute_hidden.
4882         * inet/getaliasname_r.c: Likewise.
4883         * inet/getnetbyad_r.c: Likewise.
4884         * inet/getnetbynm_r.c: Likewise.
4885         * inet/getnetent_r.c: Likewise.
4886         * inet/getproto_r.c: Likewise.
4887         * inet/getprtent_r.c: Likewise.
4888         * inet/getprtname_r.c: Likewise.
4889         * inet/getrpcbyname_r.c: Likewise.
4890         * inet/getrpcbynumber_r.c: Likewise.
4891         * inet/getrpcent_r.c: Likewise.
4892         * inet/getservent_r.c: Likewise.
4893         * inet/getsrvbynm_r.c: Likewise.
4894         * inet/getsrvbypt_r.c: Likewise.
4895         * shadow/getspent_r.c: Likewise.
4896         * shadow/getspnam_r.c: Likewise.
4898         * malloc/thread-m.h: Define __libc_tsd_MALLOC_data as static.
4900         * sysdeps/i386/elf/bsd-setjmp.S: Use GOTOFF for __sigjmp_save access.
4901         Use i686-friendly PIC code.
4902         * sysdeps/i386/elf/setjmp.S: Likewise.
4904         * sysdeps/unix/sysv/linux/i386/sysdep.h: Use i686-friendly PIC code.
4906         * sysdeps/mach/hurd/Versions: Add _dl_init_first to libc and ld export
4907         list.
4908         * elf/Versions: Remove it here.
4910 2002-04-06  Ulrich Drepper  <drepper@redhat.com>
4912         * iconvdata/tcvn5712-1.c (MAX_NEEDED_INPUT): Define for from
4913         direction.  Reported by H . J . Lu <hjl@lucon.org>.
4915 2002-04-05  Ulrich Drepper  <drepper@redhat.com>
4917         * intl/tst-gettext.sh: Set GCONV_PATH and LOCPATH to values for the
4918         test just before the test runs.
4919         * intl/tst-translit.sh: Likewise.
4920         * intl/tst-codeset.sh: Likewise.
4922         * timezone/zic.c: Update from tzcode2002c.
4923         * timezone/asia: Update from tzdata2002c.
4924         * timezone/backward: Likewise.
4925         * timezone/europe: Likewise.
4926         * timezone/northamerica: Likewise.
4927         * timezone/northamerica: Likewise.
4928         * timezone/northamerica: Likewise.
4929         * timezone/southamerica: Likewise.
4930         * timezone/zone.tab: Likewise.
4932 2002-03-23  Jakub Jelinek  <jakub@redhat.com>
4934         * sysdeps/generic/brk.c (__curbrk): Declare.
4935         * sysdeps/generic/dl-brk.c: Add attribute_hidden to __curbrk.
4936         * sysdeps/generic/dl-sbrk.c: Likewise.
4937         * sysdeps/unix/arm/dl-brk.S: New file.
4938         * sysdeps/unix/bsd/hp/m68k/dl-brk.S: New file.
4939         * sysdeps/unix/bsd/osf/alpha/dl-brk.S: New file.
4940         * sysdeps/unix/bsd/sun/m68k/dl-brk.S: New file.
4941         * sysdeps/unix/bsd/vax/dl-brk.S: New file.
4942         * sysdeps/unix/i386/dl-brk.S: New file.
4943         * sysdeps/unix/mips/dl-brk.S: New file.
4944         * sysdeps/unix/sparc/dl-brk.S: New file.
4945         * sysdeps/unix/sysv/linux/alpha/dl-brk.S: New file.
4946         * sysdeps/unix/sysv/linux/ia64/dl-brk.S: New file.
4947         * sysdeps/unix/sysv/linux/powerpc/dl-brk.S: New file.
4948         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-brk.S: New file.
4950 2002-04-03  Andreas Schwab  <schwab@suse.de>
4952         * Makefile (headers): Add gnu/lib-names.h here instead of
4953         install-others.
4954         ($(inst_includedir)/gnu/lib-names.h): Remove explicit
4955         installation rule.
4956         (install-headers): Add dependency on install-headers-nosubdir.
4957         * stdio-common/Makefile (headers): Add bits/stdio_lim.h here
4958         instead of install-others.
4959         ($(inst_includedir)/bits/stdio_lim.h): Remove explicit
4960         installation rule.
4962 2002-04-05  Ulrich Drepper  <drepper@redhat.com>
4964         * manual/users.tex (Enable/Disable Setuid): Fix typo in example.
4965         Reported by Sam Roberts <sroberts@uniserve.com>.
4967 2002-04-03  Jakub Jelinek  <jakub@redhat.com>
4969         * elf/do-rel.h (elf_dynamic_do_rel): Skip relative relocs if
4970         l_addr == 0 and ELF_MACHINE_REL_RELATIVE.
4971         * sysdeps/alpha/dl-machine.h (ELF_MACHINE_REL_RELATIVE): Define.
4972         * sysdeps/ia64/dl-machine.h (ELF_MACHINE_REL_RELATIVE): Define.
4974 2002-04-03  David Mosberger  <davidm@hpl.hp.com>
4976         * sysdeps/ia64/dl-machine.h (TRAMPOLINE_TEMPLATE): Add unwind info.
4977         (RTLD_START): Ditto.
4978         (__ia64_init_bootstrap_fdesc_table): Insert stop bit to avoid RAW
4979         dependency violation.
4981 2002-04-05  Jakub Jelinek  <jakub@redhat.com>
4983         * time/mktime.c (__mktime_internal): Move check for year < 70 below
4984         all variable declarations.
4986 2002-04-04  Andreas Schwab  <schwab@suse.de>
4988         * sysdeps/unix/sysv/linux/ia64/pipe.S: Don't overwrite r8 on error.
4990 2002-04-04  Andreas Jaeger  <aj@suse.de>
4992         * sysdeps/x86_64/fpu/e_sqrt.c: New file.
4993         * sysdeps/x86_64/fpu/e_sqrtf.c: New file.
4995         * sysdeps/x86_64/fpu/s_fabs.c: New file.
4996         * sysdeps/x86_64/fpu/s_fabsf.c: New file.
4997         * sysdeps/x86_64/fpu/s_fabsl.c: New file.
4999         * sysdeps/unix/sysv/linux/x86_64/time.S: New file.
5001         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S: New file.
5003         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: Removed.
5004         * sysdeps/unix/sysv/linux/x86_64/time.c: Removed.
5006         * configure.in: Handle all mips entries the same.
5008         * sysdeps/mips/dec/bits/endian.h: Removed since arch is not supported.
5009         * sysdeps/mips/mips3/*: Likewise.
5010         * sysdeps/mips/p40/bits/endian.h: Likewise.
5012 2002-04-04  Ulrich Drepper  <drepper@redhat.com>
5014         * misc/dirname.c (dirname): Ignore trailing slashes at end of
5015         non-null result [PR libc/2600].
5017         * misc/tst-dirname.c: Add more tests.
5019 2002-04-03  Ulrich Drepper  <drepper@redhat.com>
5021         * locale/programs/charmap.c (charmap_read): If the charmap doesn't
5022         define a code_set_name provide one based on the filename.
5024         * malloc/hooks.c: Define weak_variable correctly for _LIBC.
5026 2001-12-28  Andreas Jaeger  <aj@suse.de>
5028         * time/mktime.c (__mktime_internal): Check for year < 70
5029         [PR libc/2738].
5031 2002-04-03  Andreas Jaeger  <aj@suse.de>
5033         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Fix arguments for
5034         shmat.
5035         Reported by Andi Kleen <ak@suse.de>.
5037 2002-04-03  Ulrich Drepper  <drepper@redhat.com>
5039         * sysdeps/generic/w_lgamma.c: Initialized local_signgam.
5040         * sysdeps/generic/w_lgammaf.c: Likewise.
5041         * sysdeps/generic/w_lgammal.c: Likewise [PR libc/2854].
5043         * debug/catchsegv.sh (exval): Quote [ in pattern [PR libc/2902].
5044         Adjust for new output format of the backtrace functions.
5046         * misc/syslog.c (vsyslog): Only use cleanup handler if
5047         _LIBC_REENTRANT is defined [PR libc/2924].
5049         * libio/Makefile (tests): Add bug-ungetwc2.
5050         * libio/bug-ungetwc2.c: New file.
5052         * manual/install.texi: Typographical and grammatical cleanup.
5053         Patch by Dennis Grace <dgrace@us.ibm.com>.
5055         * sunrpc/rpc_svcout.c (write_real_program): Write "result, "
5056         parameter if mtflag.  Patch by <jeongyun@innovay.com>.
5058         * sunrpc/rpc_svcout.c (printif): Remove third parameter.  It was
5059         always "&".  Adjust callers.
5060         Add "_" prefix to several generated definitions.
5061         Patch by paul@serice.net [PR libc/3158].
5063 2002-04-02  Ulrich Drepper  <drepper@redhat.com>
5065         * sysdeps/unix/sysv/linux/arm/dl-procinfo.c: Completely specify
5066         size of _dl_arm_cap_flags.
5067         Patch by enrico.scholz@informatik.tu-chemnitz.de [PR libc/3155].
5069         * sysdeps/unix/sysv/linux/arm/dl-procinfo.h (_DL_HWCAP_COUNT):
5070         Define as 8.
5072 2002-03-22  H.J. Lu  <hjl@gnu.org>
5074         * scripts/firstversions.awk: Check the first version.
5076 2002-04-02  Ulrich Drepper  <drepper@redhat.com>
5078         * elf/dl-deps.c (_dl_map_object_deps): The sorting of the
5079         dependencies must be stable to work correctly.
5080         Reported by martin.lubich@datacon.at.
5082         * libio/bug-ungetwc1.c: New file.
5083         * libio/Makefile (tests): Add bug-ungetwc1.
5085         * libio/fileops.c (_IO_new_file_close_it): Only call _IO_do_flush
5086         if stream was last used for writing.
5088         * elf/do-lookup.h (do_lookup): 2 is the first user-defined version
5089         number [PR libc/3111].
5091         * libio/iofclose.c (_IO_new_fclose): Move freeing of backup buffer
5092         to ...
5093         * libio/fileops.c (_IO_new_file_close_it): ...here [PR libc/3190].
5095 2002-04-02  Jakub Jelinek  <jakub@redhat.com>
5097         * inet/ether_ntoh.c (__nss_ethers_lookup): Add internal_function.
5098         * inet/ether_hton.c (__nss_ethers_lookup): Likewise.
5099         * inet/getnetgrent_r.c (__nss_netgroup_lookup): Likewise.
5100         * sunrpc/netname.c (__nss_publickey_lookup): Likewise.
5101         * sunrpc/publickey.c (__nss_publickey_lookup): Likewise.
5103 2002-03-30  Jakub Jelinek  <jakub@redhat.com>
5105         * elf/dynamic-link.h (elf_get_dynamic_info): Don't abort on unknown
5106         dynamic tags.
5108 2002-03-29  Jakub Jelinek  <jakub@redhat.com>
5110         * sysdeps/i386/fpu/s_fabs.S: New file.
5111         * sysdeps/i386/fpu/s_fabsf.S: New file.
5112         * sysdeps/i386/fpu/s_fabsl.S: New file.
5113         * sysdeps/sparc/sparc64/fpu/s_fabs.c: New file.
5114         * sysdeps/sparc/sparc64/fpu/s_fabsf.c: New file.
5115         * sysdeps/sparc/sparc64/fpu/s_fabsl.c: New file.
5117 2002-04-02  Ulrich Drepper  <drepper@redhat.com>
5119         * rt/tst-shm.c (do_test): Add one more test for size of shared
5120         memory object.
5122 2002-03-29  Wolfram Gloger  <wg@malloc.de>
5124         * malloc/malloc.c: Add short description and prototypes for
5125         malloc_get_state, malloc_set_state and posix_memalign, for
5126         consistency and to avoid warnings with -Wstrict-prototypes.
5127         Reported by Andreas Jaeger <aj@suse.de>.
5129 2002-04-02  Ulrich Drepper  <drepper@redhat.com>
5131         * po/gl.po: Update from translation team.
5133 2002-03-31  Roland McGrath  <roland@frob.com>
5135         * hurd/hurdselect.c (_hurd_select): Fix
5136         MACH_MSG_TYPE_INTEGER_T -> integer_t in sizeof.
5137         Use a union rather than casts to compare mach_msg_type_t as int.
5139 2002-03-25  Roland McGrath  <roland@frob.com>
5141         * hurd/hurdchdir.c (_hurd_change_directory_port_from_name): Don't
5142         check off the end of NAME when it's shorter than 2 chars.
5143         Reported by Ognyan Kulev <ogi@fmi.uni-sofia.bg>.
5145 2002-03-17  Roland McGrath  <roland@frob.com>
5147         * sysdeps/mach/hurd/i386/sys/io.h: New file.
5148         * sysdeps/mach/hurd/i386/ioperm.c: New file.
5149         * sysdeps/mach/hurd/i386/Dist: Add them.
5150         * sysdeps/mach/hurd/i386/Versions
5151         (libc: GLIBC_2.2.6): New set, add ioperm.
5152         * sysdeps/mach/configure.in: New check to set HAVE_I386_IO_PERM_MODIFY.
5153         (mach_interface_list): Check for mach_i386.defs.
5154         * config.h.in (HAVE_I386_IO_PERM_MODIFY): #undef it.
5155         * sysdeps/mach/configure: Regenerated.
5157 2002-03-22  Ulrich Drepper  <drepper@redhat.com>
5159         * po/fr.po: Update from translation team.
5161 2002-03-21  Martin Schwidefsky  <schwidefsky@de.ibm.com>
5163         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Remove
5164         getpriority from syscalls list.
5166 2002-03-28  Andreas Jaeger  <aj@suse.de>
5168         * sysdeps/unix/sysv/linux/x86_64/swapcontext.S: New file.
5169         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: New file.
5170         * sysdeps/unix/sysv/linux/x86_64/setcontext.S: New file.
5171         * sysdeps/unix/sysv/linux/x86_64/ucontext_i.h: New file.
5173 2002-03-27  Andreas Jaeger  <aj@suse.de>
5175         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (struct
5176         sigcontext): Follow further kernel change.
5178         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Follow further
5179         kernel change.
5181         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h (GET_STACK):
5182         Change for struct sigcontext change.
5184         * sysdeps/unix/sysv/linux/x86_64/register-dump.h (register_dump):
5185         Follow changes in struct sigcontext.
5187         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Remove ptrace
5188         sysycall, use wrapper instead.
5190 2002-03-26  Andreas Jaeger  <aj@suse.de>
5192         * sysdeps/i386/i486/bits/string.h (__memcpy_by4): Describe memory
5193         read and write accesses as detailed as possible.
5194         (__memcpy_by2): Likewise.
5195         (__memcpy_g): Likewise.
5196         (memmove): Likewise.
5197         (memcmp): Likewise.
5198         (__memset_ccn_by4): Likewise.
5199         (__memset_ccn_by2): Likewise.
5200         (__memset_gcn_by4): Likewise.
5201         (__memset_gcn_by2): Likewise.
5202         (memchr): Likewise.
5203         (__memrchr): Likewise.
5204         (rawmemchr): Likewise.
5205         (__strlen_g): Likewise.
5206         (__strcpy_g): Likewise.
5207         (__mempcpy_by4): Likewise.
5208         (__mempcpy_by2): Likewise.
5209         (__mempcpy_byn): Likewise.
5210         (__stpcpy_g): Likewise.
5211         (__strncpy_by4): Likewise.
5212         (__strncpy_by2): Likewise.
5213         (__strncpy_byn): Likewise.
5214         (__strncpy_gg): Likewise.
5215         (__strcat_c): Likewise.
5216         (__strcat_g): Likewise.
5217         (__strncat_g): Likewise.
5218         (__strcmp_gg): Likewise.
5219         (__strncmp_g): Likewise.
5220         (__strchr_c): Likewise.
5221         (__strchr_g): Likewise.
5222         (__strchrnul_c): Likewise.
5223         (__strchrnul_g): Likewise.
5224         (__strrchr_c): Likewise.
5225         (__strrchr_g): Likewise.
5226         (__strrchr_c): Likewise.
5227         (__strrchr_g): Likewise.
5228         (__strcspn_c1): Likewise.
5229         (__strcspn_cg): Likewise.
5230         (__strcspn_g): Likewise.
5231         (__strcspn_g): Likewise.
5232         (__strspn_c1): Likewise.
5233         (__strspn_cg): Likewise.
5234         (__strspn_g): Likewise.
5235         (__strspn_g): Likewise.
5236         (__strpbrk_cg): Likewise.
5237         (__strpbrk_g): Likewise.
5238         (__strstr_cg): Likewise.
5239         (__strstr_g): Likewise.
5241         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Fix typo.  Reported by
5242         Michal Ludvig <mludvig@suse.cz>.
5244         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Add 32-bit
5245         compatibilty, adjust for kernel changes.
5247         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (struct
5248         sigcontext): Adjust for kernel changes.
5250 2002-03-25  Andreas Jaeger  <aj@suse.de>
5252         * iconv/gconv_simple.c (ucs4le_internal_loop_single): Handle
5253         little endian.
5254         Reported by Artur Zaprzala <zybi@talex.com.pl>.
5256 2002-03-24  Andreas Jaeger  <aj@suse.de>
5258         * manual/memory.texi (Aligned Memory Blocks): Fix typo.
5260         * stdio-common/tst-fdopen.c (main): Remove unused variable.
5262         * iconv/tst-iconv3.c (main): Use correct printf strings.
5264 2002-03-18  Roland McGrath  <roland@frob.com>
5266         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (struct cmsgcred): New type.
5267         (CMGROUP_MAX): New macro.
5269 2002-03-23  Roland McGrath  <roland@frob.com>
5271         * sysdeps/posix/shm_open.c (SHMDIR): /var/run/shm -> /dev/shm
5272         * sysdeps/posix/shm_unlink.c: Likewise.
5274 2002-03-22  Roland McGrath  <roland@frob.com>
5276         * shlib-versions [USE_IN_LIBIO] (.*-.*-gnu-gnu.*): Make 2.2.6 default.
5277         * sysdeps/mach/hurd/configure.in: Default oldest ABI is 2.2.6
5278         under --enable-libio.
5279         * sysdeps/mach/hurd/configure: Regenerated.
5281 2002-03-23  Roland McGrath  <roland@frob.com>
5283         * sysdeps/mach/hurd/i386/Makefile
5284         (sysdep_routines, shared-only-routines): Don't add framestate,
5285         reverting 2001-10-02 change.
5286         * sysdeps/unix/sysv/linux/arm/Makefile: Likewise.
5287         * sysdeps/unix/sysv/linux/alpha/Makefile: Likewise.
5288         * sysdeps/unix/sysv/linux/i386/Makefile: Likewise.
5289         * sysdeps/unix/sysv/linux/m68k/Makefile: Likewise.
5290         * sysdeps/unix/sysv/linux/mips/Makefile: Likewise.
5291         * sysdeps/unix/sysv/linux/powerpc/Makefile: Likewise.
5292         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Likewise.
5293         * sysdeps/unix/sysv/linux/sparc/Makefile: Likewise.
5294         * sysdeps/generic/Makefile (sysdep_routines, shared-only-routines):
5295         Do it here instead, only if [$(unwind-find-fde) = yes].
5297 2002-03-23  Andreas Jaeger  <aj@suse.de>
5299         * signal/signal.h: Fix typo. Patch by Steve Kemp
5300         <skx@tardis.ed.ac.uk>.
5302 2002-03-22  Andreas Jaeger  <aj@suse.de>
5304         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Add getresgid and
5305         getresuid.
5307         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (struct
5308         _fpstate): Rename fwd to ftw, use _fpxreg and _xmmreg.
5309         * sysdeps/unix/sysv/linux/x86_64/sys/user.h (struct
5310         user_fpregs_struct): Rename fwd.
5312         * sysdeps/unix/sysv/linux/x86_64/register-dump.h (register_dump):
5313         Follow sigcontext changes.
5315 2002-03-22  Andreas Jaeger  <aj@suse.de>
5317         * sysdeps/mips/bits/nan.h: New file.  Copy from generic one with
5318         changes for NaNs on MIPS.
5319         Patch by Hartvig Ekner <hartvige@mips.com>.
5321 2002-03-21  Ulrich Drepper  <drepper@redhat.com>
5323         * nscd/grpcache.c (addgrbyname): Improve buffer allocate with alloca.
5324         Use realloc if too large.
5325         (addgrbyid): Likewise.
5326         * nscd/hstcache.c (addhstbyname): Likewise.
5327         (addhstbyaddr): Likewise.
5328         (addhstbynamev6): Likewise.
5329         (addhstbyaddrv6): Likewise.
5330         * nscd/pwdcache.c (addpwbyname): Likewise.
5331         (addpwbyuid): Likewise.
5333 2002-03-21  Andreas Jaeger  <aj@suse.de>
5335         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (struct
5336         _fpstate): Add separate struct for x86-64.
5338         * sysdeps/unix/sysv/linux/x86_64/sys/user.h (struct
5339         user_fpregs_struct): Change member names to follow kernel.
5341 2002-03-20  Ulrich Drepper  <drepper@redhat.com>
5343         * nis/ypclnt.c (yp_all): Remove the hack introduced on 1998-09-29.
5344         Correctly close the UDP connection right away [PR libc/3120].
5346 2002-03-20  Andreas Jaeger  <aj@suse.de>
5348         * sysdeps/unix/sysv/linux/x86_64/sys/user.h (struct
5349         user_fpregs_struct): Fix for changed kernel struct.
5350         (struct user_regs_struct): Likewise.
5351         (struct user): Likewise.
5352         Add 32-bit x86 compatibility.
5354         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Add more registers.
5356 2002-03-19  Andreas Jaeger  <aj@suse.de>
5358         * sysdeps/unix/sysv/linux/x86_64/bits/types.h: Cleanup x86 types.
5360 2002-03-18  Andreas Jaeger  <aj@suse.de>
5362         * iconvdata/Makefile: Only run tests when shared libs are
5363         available.
5365 2002-03-17  Andreas Jaeger  <aj@suse.de>
5367         * sysdeps/mips/fpu/fraiseexcpt.c (__feraiseexcept): Set cause bits.
5369         * sysdeps/mips/fpu/fgetexcptflg.c (__fegetexceptflag): Add comment.
5371         * sysdeps/mips/fpu/fclrexcpt.c (__feclearexcept): Clear also cause
5372         bits.
5374         * sysdeps/mips/fpu/fenv_libc.h (CAUSE_MASK): New.
5375         (CAUSE_SHIFT): New.
5376         Patch by Hartvig Ekner <hartvige@mips.com>.
5378         * sysdeps/generic/unwind-dw2-fde-glibc.c: Add prototypes.
5379         * sysdeps/generic/unwind-pe.h: Likewise.
5381         * libio/iofdopen.c (_IO_new_fdopen): Pass parameter of correct
5382         type to _IO_setb.
5384         * libio/stdio.c (AL2): Define variant when visibility attribute is
5385         not supported.
5387         * include/libc-symbols.h (_INTVARDEF): Define variant when
5388         visibility attribute is not supported.
5390 2002-03-16  Ulrich Drepper  <drepper@redhat.com>
5392         * po/fr.po: Update from translation team.
5394 2002-02-25  Bruno Haible  <bruno@clisp.org>
5396         * MakeTAGS (extract): Use --sort-by-file instead of --sort-output.
5398 2002-03-15  Ulrich Drepper  <drepper@redhat.com>
5400         * libio/iofdopen.c (_IO_new_fdopen): Call _IO_setb to deallocate
5401         buffers if _IO_file_attach failed.
5403         * libio/fileops.c (_IO_file_open): Close file descriptor if
5404         _IO_SEEKOFF call failed.
5406 2002-03-15  H.J. Lu  <hjl@gnu.org>
5407             Ulrich Drepper  <drepper@redhat.com>
5409         * configure.in: Check for availability of
5410         init_array/fini_array/preinit_array handling in binutils.
5411         * config.h.in (HAVE_INITFINI_ARRAY): New macro.
5412         * config.make.in (have-initfini-array): New variable.
5414 2002-03-15  Ulrich Drepper  <drepper@redhat.com>
5416         * stdio-common/tst-printf.c (main): Comment out one test which
5417         checked the compiler's ability to fold floating-point constants
5418         but not really printf.
5419         (rfg3): Make s const.
5420         * stdio-common/tst-printf.sh: Adjust for removed test.
5422         * sysdeps/i386/i386-mcount.S: Just call __mcount_internal, it is an
5423         internal function.  Adjust for internal_function calling convention.
5424         * sysdeps/i386/machine-gmon.h: Declare and define __mcount_internal
5425         as internal_function.
5427         * sysdeps/generic/framestate.c: Declare fallback_frame_state_for as
5428         hidden.
5430         * nss/XXX-lookup.c (DB_LOOKUP_FCT): Add internal_function to
5431         declaration and definition.
5432         * nss/getXXbyYY_r.c (DB_LOOKUP_FCT): Add internal_function to
5433         declaration.
5434         * nss/getXXent_r.c: Likewise.
5435         * nss/nsswitch.h (db_lookup_function): Add internal_function to
5436         definition.
5438         * include/time.h: Declare __localtime_r as hidden.
5440         * include/aliases.h: Declare __getaliasent_r as hidden.
5441         * include/grp.h: Declare __getgrent_r as hidden.
5442         * include/netdb.h: Declare __gethostent_r, __getnetent_r,
5443         __getservent_r, and __getprotoent_r as hidden.
5444         * include/pwd.h: Declare __getpwent_r as hidden.
5445         * include/shadow.h: Declare __getspent_r as hidden.
5446         * include/rpc/netdb.h: Declare __getrpcent_r as hidden.
5448         * iconv/gconv_int.h: Declare __gconv_read_conf, __gconv_alias_compare,
5449         and __gconv_transliterate as hidden.
5450         Add internal_function to __gconv_get_path declaration.
5451         * iconv/gconv_conf.c: Add internal_function to __gconv_get_path
5452         definition.  Add attribute_hidden to __gconv_read_conf definition.
5454 2002-03-14  Ulrich Drepper  <drepper@redhat.com>
5456         * elf/rtld.c: Declare _environ as hidden.
5457         * sysdeps/generic/dl-environ.c: Likewise.
5458         * sysdeps/generic/dl-sysdep.c: Likewise.
5460         * sysdeps/generic/ldsodefs.h: Declare _dl_debug_state_internal and
5461         _dl_mcount_internal as hidden.
5463         * elf/Makefile (rtld-routines): Add dl-sbrk and dl-brk.
5464         * sysdeps/generic/dl-brk.c: New file.
5465         * sysdeps/generic/dl-sbrk.c: New file.
5466         * sysdeps/unix/sysv/linux/i386/dl-brk.c: New file.
5467         * sysdeps/unix/sysv/linux/i386/dl-sbrk.c: New file.
5469         * elf/dl-minimal.c (malloc): Declare _end as hidden.
5470         (__errno_location): New function.  Declare errno as hidden.
5471         * elf/rtld.c (_dl_argc): Define as hidden.
5472         (_dl_skip_args): Define as hidden.
5473         (_begin, _end): Declare as hidden.
5474         * sysdeps/generic/dl-sysdep.c (_end): Declare as hidden.
5475         * sysdeps/generic/entry.h (_start): Declare as hidden.
5476         * sysdeps/generic/ldsodefs.h (_dl_argc): Declare as hidden.
5477         * sysdeps/i386/dl-machine.h (elf_machine_runtime_setup): Declare
5478         _dl_runtime_resolve and _dl_runtime_profile as hidden.
5479         (RTLD_START): Use GOTOFF to access _dl_skip_args and _dl_fini.
5481 2002-03-14  Roland McGrath  <roland@frob.com>
5483         * Makerules ($(common-objpfx)Versions.v.i): Depend on abi-versions.h.
5485         * Makeconfig (%.v.i, %.v): New implicit rules.
5486         (preprocess-versions): Variable removed.
5487         ($(common-objpfx)shlib-versions.v.i): New target giving just the
5488         shlib-versions input files as dependencies.
5489         ($(common-objpfx)soversions.i): Depend on that instead of the input
5490         files.  Use it as input instead of using a pipeline.
5491         (postclean-generated): Append soversions.i, shlib-versions.v, and
5492         shlib-versions.v.i here.
5493         * Makerules ($(common-objpfx)Versions.def.v.i): New target giving just
5494         the Versions.def input files as dependencies.
5495         ($(common-objpfx)Versions.v.i): Likewise for Versions files.
5496         ($(common-objpfx)Versions.all): Depend on that instead of the input
5497         files.  Use it as input instead of using a pipeline.
5498         ($(common-objpfx)sysd-versions): Likewise with Versions.v.i.
5499         (postclean-generated): Append those .v and .v.i files here.
5501 2002-03-14  Jakub Jelinek  <jakub@redhat.com>
5503         * locale/broken_cur_max.c (__ctype_get_mb_cur_max): Use nl_langinfo.
5504         * locale/Versions (_nl_current_LC_COLLATE, _nl_current_LC_CTYPE):
5505         Remove.
5507 2002-03-14  Jakub Jelinek  <jakub@redhat.com>
5509         * sysdeps/generic/mp_clz_tab.c: New file.
5510         * sysdeps/i386/mp_clz_tab.c: New file.
5511         * sysdeps/hppa/mp_clz_tab.c: New file.
5512         * sysdeps/powerpc/mp_clz_tab.c: New file.
5513         * stdlib/Makefile (aux): Revert last patch.
5514         * math/Makefile (gmp-objs): Likewise.
5516 2002-03-13  Paul Eggert  <eggert@twinsun.com>
5518         * time/strftime.c: Comment fixes for references to obsolescent
5519         standards, In most cases the simplest fix is to remove the
5520         confusing comments.  Cross-referencing all the standards properly
5521         is a bit of a pain, and it should be enough to put that info in
5522         the documentation as I did in my recent time.texi patch.
5524 2002-03-13  Paul Eggert  <eggert@twinsun.com>
5526         * manual/time.texi (Formatting Calendar Time):
5527         ISO C99 also specifies the E and O modifiers.
5528         %P is a GNU extension, and is not in ISO C99.
5529         Mention that %r is equivalent to %I:%M:%S %p in the POSIX locale.
5530         %T is also in ISO C99.
5531         The RFC 822 example is not valid in arbitrary locales.
5532         Reword the POSIX.2 wording slightly, to make it a bit clearer
5533         that POSIX.2 formats are also supported by later POSIX versions.
5534         If a format was introduced in ISO C99 it is also required by
5535         POSIX.1-2001.
5537 2002-03-13  Ulrich Drepper  <drepper@redhat.com>
5539         * sysdeps/gnu/errlist.awk: Define _sys_errlist_internal and
5540         _sys_nerr_internal with INTVARDEF2.
5541         * include/libc-symbols.h (INTVARDEF2): New macro.
5542         * include/stdio.h (_sys_errlist_internal): Declare as hidden.
5543         (_sys_nerr_internal): Library.
5545         * sysdeps/posix/signal.c (_sigintr): Define as hidden.
5546         * sysdeps/posix/sigintr.c (_sigintr): Declare as hidden.
5548         * stdio-common/tst-printf.sh: Adjust for last change in tst-printf.c.
5550 2002-03-13  Wolfram Gloger  <wg@malloc.de>
5552         * malloc/malloc.c (sYSMALLOc): Don't change brk if mmap failed.
5554 2002-03-02  Andreas Schwab  <schwab@suse.de>
5556         * stdio-common/vfprintf.c (process_arg): Fix decimal format with
5557         'h' flag and positional arg.
5558         * stdio-common/tst-printf.c (rfg3): New function to test
5559         positional arguments.
5560         (main): Fix some warnings.
5562 2002-03-13  Jakub Jelinek  <jakub@redhat.com>
5564         * elf/dl-minimal.c (_itoa): Use _itoa_lower_digits_internal if SHARED.
5565         * elf/dl-reloc.c (_dl_reloc_bad_type): Likewise.
5567 2002-03-13  Ulrich Drepper  <drepper@redhat.com>
5569         * grp/initgroups.c (__nss_group_data): Declare as hidden.
5571         * include/locale.h (_nl_C_locobj): Declare as hidden.
5573         * time/asctime.c (_nl_C_LC_TIME): Declare as hidden.
5574         * time/strptime.c (_nl_C_LC_TIME): Likewise.
5576         * include/netinet/in.h (in6addr_any_internal): Mark as hidden.
5578         * include/sys/gmon.h: Declare _gmonparam as hidden.
5580         * locale/lc-ctype.c (__ctype32_wctype): Declare as hidden.
5581         (__ctype32_wctrans): Likewise.
5582         (__ctype32_width): Likewise.
5584         * sysdeps/unix/sysv/linux/ttyname.c: Comment out definition and
5585         use of __ttyname.
5587         * posix/regcomp.c (__re_error_msgid): Renamed from re_error_msgid.
5588         Define as hidden.
5589         (__re_error_msgid_idx): Renamed from re_error_msgid_idx.  Define as
5590         hidden.  Change all users of these variables.
5592         * posix/regex_internal.h (__re_error_msgid): Renamed from
5593         re_error_msgid.  Declare as hidden.
5594         (__re_error_msgid_idx): Renamed from re_error_msgid_idx.  Declare as
5595         hidden.
5597         * stdio-common/reg-printf.c (__printf_arginfo_table): Define as hidden.
5598         (__printf_function_table): Likewise.
5599         * stdio-common/printf-parse.h (__printf_arginfo_table): Declare as
5600         hidden.
5601         (__printf_function_table): Likewise.
5603         * nscd/nscd_proto.h: Declare __nss_not_use_nscd_passwd,
5604         __nss_not_use_nscd_group, and __nss_not_use_nscd_hosts as hidden.
5606         * nss/XXX-lookup.c (DATABASE_NAME_SYMBOL): Define as hidden.
5607         * nss/nsswitch.c: Declare _nss_*_database as hidden.
5609         * stdlib/wctomb.c (__no_r_state): Declare as hidden.
5610         * stdlib/mbtowc.c (__no_r_state): Define as hidden.
5612 2002-03-12  Ulrich Drepper  <drepper@redhat.com>
5614         * ctype/ctype-info.c: Declare _nl_C_LC_CTYPE_class,
5615         _nl_C_LC_CTYPE_class32, _nl_C_LC_CTYPE_toupper, _nl_C_LC_CTYPE_tolower,
5616         _nl_C_LC_CTYPE_class_upper, _nl_C_LC_CTYPE_class_lower,
5617         _nl_C_LC_CTYPE_class_alpha, _nl_C_LC_CTYPE_class_digit,
5618         _nl_C_LC_CTYPE_class_xdigit, _nl_C_LC_CTYPE_class_space,
5619         _nl_C_LC_CTYPE_class_print, _nl_C_LC_CTYPE_class_graph,
5620         _nl_C_LC_CTYPE_class_blank, _nl_C_LC_CTYPE_class_cntrl,
5621         _nl_C_LC_CTYPE_class_punct, _nl_C_LC_CTYPE_class_alnum,
5622         _nl_C_LC_CTYPE_map_toupper, _nl_C_LC_CTYPE_map_tolower, and
5623         _nl_C_LC_CTYPE_width: Declare as hidden.
5624         * include/locale.h: Declare _nl_locale_file_list.
5625         * locale/C-address.c: Define _nl_C_LC_ADDRESS as hidden.
5626         * locale/C-collate.c: Define _nl_C_LC_COLLATE as hidden.
5627         * locale/C-identification.c: Define _nl_C_LC_IDENTIFICATION as hidden.
5628         * locale/C-measurement.c: Define _nl_C_LC_MEASUREMENT as hidden.
5629         * locale/C-messages.c: Define _nl_C_LC_MESSAGES as hidden.
5630         * locale/C-monetary.c: Define _nl_C_LC_MONETARY as hidden.
5631         * locale/C-name.c: Define _nl_C_LC_NAME as hidden.
5632         * locale/C-numeric.c: Define _nl_C_LC_NUMERIC as hidden.
5633         * locale/C-paper.c: Define _nl_C_LC_PAPER as hidden.
5634         * locale/C-telephone.c: Define _nl_C_LC_TELEPHONE as hidden.
5635         * locale/C-time.c: Define _nl_C_LC_TIME as hidden.
5636         * locale/C-ctype.c: Define _nl_C_LC_CTYPE_class,
5637         _nl_C_LC_CTYPE_class32, _nl_C_LC_CTYPE_toupper, _nl_C_LC_CTYPE_tolower,
5638         _nl_C_LC_CTYPE_class_upper, _nl_C_LC_CTYPE_class_lower,
5639         _nl_C_LC_CTYPE_class_alpha, _nl_C_LC_CTYPE_class_digit,
5640         _nl_C_LC_CTYPE_class_xdigit, _nl_C_LC_CTYPE_class_space,
5641         _nl_C_LC_CTYPE_class_print, _nl_C_LC_CTYPE_class_graph,
5642         _nl_C_LC_CTYPE_class_blank, _nl_C_LC_CTYPE_class_cntrl,
5643         _nl_C_LC_CTYPE_class_punct, _nl_C_LC_CTYPE_class_alnum,
5644         _nl_C_LC_CTYPE_map_toupper, _nl_C_LC_CTYPE_map_tolower,
5645         _nl_C_LC_CTYPE_width, and as hidden.
5646         * locale/findlocale.c: Declare _nl_C as hidden.
5647         * locale/newlocale.c: Likewise.
5648         * locale/setlocale.c: Define _nl_C as hidden.  Remove declaration of
5649         _nl_locale_file_list.
5650         * locale/xlocale.c: Declare _nl_C_LC_CTYPE_class,
5651         _nl_C_LC_CTYPE_toupper, and _nl_C_LC_CTYPE_tolower as hidden.
5652         Define _nl_C_locobj as hidden.
5654         * malloc/mtrace.c (_mtrace_file): Define as hidden.
5655         (_mtrace_line): Likewise.
5657         * include/time.h: Declare __mon_yday as hidden.
5658         * time/strptime.c [_LIBC] (__mon_yday): Remove declaration.
5660         * libio/libioP.h: Declare __libio_codecvt as hidden.
5661         * libio/fileops.c: Declare __libio_translit as hidden.
5662         * libio/iofwide.c: Define __libio_translit as hidden.
5664         * login/getutent_r.c: Define __libc_utmp_lock as hidden.
5665         * login/getutid_r.c: Declare __libc_utmp_lock as hidden.
5666         * login/getutline_r.c: Likewise.
5667         * login/utmpname.c: Likewise.
5669         * login/utmp-private.h: Declare __libc_utmp_file_functions,
5670         __libc_utmp_unknown_functions, __libc_utmp_jump_table, and
5671         __libc_utmp_file_name as hidden.
5673         * locale/setlocale.c (__libc_setlocale_lock): Define as hidden.
5674         * locale/duplocale.c (__libc_setlocale_lock): Declare as hidden.
5675         * locale/freelocale.c: Likewise.
5676         * locale/lc-time.c: Likewise.
5678         * sysdeps/unix/bsd/getpt.c (__libc_ptyname1): Define as hidden.
5679         (__libc_ptyname2): Likewise.
5680         * sysdeps/unix/sysv/linux/ptsname.c (__libc_ptyname1): Declare as
5681         hidden.
5682         (__libc_ptyname2): Likewise.
5684         * sysdeps/generic/sbrk.c: Declare __libc_multiple_libcs as hidden.
5685         * sysdeps/arm/init-first.c (__libc_multiple_libcs): Define as hidden.
5686         * sysdeps/generic/init-first.c: Likewise.
5687         * sysdeps/i386/init-first.c: Likewise.
5688         * sysdeps/mach/hurd/i386/init-first.c: Likewise.
5689         * sysdeps/mach/hurd/mips/init-first.c: Likewise.
5690         * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
5691         * sysdeps/sh/init-first.c: Likewise.
5692         * sysdeps/unix/sysv/aix/init-first.c: Likewise.
5693         * sysdeps/unix/sysv/linux/init-first.c: Likewise.
5695         * stdio-common/itowa-digits.c (_itowa_lower_digits): Define as hidden.
5696         (_itowa_upper_digits): Likewise.
5698         * libio/stdio.c (_IO_stdin, _IO_stdout, _IO_stderr): Define as hidden.
5699         * libio/libio.h [_LIBC] (_IO_stdin, _IO_stdout, _IO_stderr): Declare
5700         as hidden.
5702         * libio/libioP.h: Declare _IO_file_jumps_mmap, _IO_wfile_jumps,
5703         _IO_wfile_jumps_mmap, _IO_proc_jumps, _IO_old_proc_jumps,
5704         _IO_str_jumps, _IO_wstr_jumps, _IO_file_jumps_internal,
5705         _IO_wfile_jumps_internal, and _IO_list_all_internal as hidden.
5707         * gmon/gmon.c (__bb_head): Define as hidden.
5708         * gmon/bb_exit_func.c (__bb_head): Declare as hidden.
5710         * argp/argp-parse.c (_argp_hang): Define as static.
5712         * include/libc-symbols.h (_INTVARDEF): Adjust for visibility
5713         handling in latest compilers.
5715         * inet/in6_addr.c (in6addr_any): Use INTVARDEF not INTDEF to
5716         define alias.
5717         * libio/fileops.c (_IO_file_jumps): Likewise.
5718         * libio/stdfiles.c (_IO_list_all): Likewise.
5719         * libio/wfileops.c (_IO_wfile_jumps): Likewise.
5721         * malloc/malloc.h: Move __libc_malloc_initialized declaration to
5722         include/malloc.h.
5723         * include/malloc.h: Add __libc_malloc_initialized declaration
5724         here.  Mark variable hidden.
5725         * malloc/malloc.c: Include <malloc.h> not "malloc.h".
5727         * elf/dl-open.c (__libc_argc): Declare as hidden.
5728         (__libc_argv): Likewise.
5729         * sysdeps/generic/wordexp.c (__libc_argc): Declare as hidden.
5730         (__libc_argv): Likewise.
5731         * sysdeps/mach/hurd/i386/init-first.c: Define __libc_argc and
5732         __libc_argv as hidden.
5733         * sysdeps/mach/hurd/mips/init-first.c: Likewise.
5734         * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
5735         * sysdeps/unix/sysv/aix/init-first.c: Likewise.
5736         * sysdeps/unix/sysv/linux/init-first.c: Likewise.
5738         * include/stdlib.h (__libc_drand48_data): Declare as hidden.
5739         * stdlib/drand48.c: Remove declaration of __libc_drand48_data here.
5740         * stdlib/erand48.c: Likewise.
5741         * stdlib/jrand48.c: Likewise.
5742         * stdlib/lcong48.c: Likewise.
5743         * stdlib/lrand48.c: Likewise.
5744         * stdlib/mrand48.c: Likewise.
5745         * stdlib/nrand48.c: Likewise.
5746         * stdlib/seed48.c: Likewise.
5747         * stdlib/srand48.c: Likewise.
5749         * stdio-common/_itoa.c (_itoa_base_table): Declare as hidden.
5750         (_itoa_lower_digits_internal): New declaration.
5751         (_itoa_upper_digits_internal): New declaration.
5752         (_itoa): Use INTUSE to acces _itoa_upper_digits and _itoa_lower_digits.
5753         * stdio-common.h (_itoa_lower_digits_internal): New declaration.
5754         (_itoa_upper_digits_internal): New declaration.
5755         (_itoa_word): Use INTUSE to acces _itoa_upper_digits and
5756         _itoa_lower_digits.
5757         * stdio-common/itoa-digits.c: Use INTVARDEF with _itoa_lower_digits.
5758         * stdio-common/itoa-udigits.c: Use INTVARDEF with _itoa_upper_digits.
5760         * elf/dl-minimal.c (_itoa): Declare _itoa_lower_digits as hidden.
5761         * elf/dl-reloc.c (_dl_reloc_bad_type): Likewise.
5763         * stdio-common/_itowa.c (_itoa_base_table): Declare as hidden.
5764         (_itowa_lower_digits): Likewise.
5765         (_itowa_upper_digits): Likewise.
5766         * stdio-common/_itowa.h (_itowa_lower_digits): Likewise.
5767         (_itowa_upper_digits): Likewise.
5769         * intl/plural-exp.h (attribute_hidden): Define as empty macro if
5770         not already defined.
5771         (GERMANIC_PLURAL): Declare as hidden.
5773         * posix/getopt.c (__getopt_initialized): Declare as hidden.
5774         (attribute_hidden): Define as empty macro if not already defined.
5776         * iconv/gconv_int.h (__gconv_path_elem): Declare hidden.
5777         (__gconv_max_path_elem_len): Likewise.
5778         (__gconv_path_envvar): Likewise.
5780         * math/Makefile (gmp-objs): Remove mp_clz_tab.
5781         * stdlib/Makefile (aux): Remove mp_clz_tab.
5782         * stdlib/mp_clz_tab.c: Removed.  Not needed anywhere.
5784         * stdlib/exit.h (__exit_funcs): Declare as hidden.
5786         * posix/bug-regex5.c (main): Use nl_langinfo instead of _NL_CURRENT.
5788         * locale/localeinfo.h: Add attribute_hidden to _nl_current_LC_XXX,
5789         _nl_category_names, _nl_category_name_sizes, _nl_current,
5790         _nl_C_name, _nl_POSIX_name, _nl_C_codeset, and _nl_C_LC_XXX.
5792         * intl/dcigettext.c (_nl_default_default_domain): Define as hidden.
5793         (_nl_current_default_domain): Likewise
5794         (_nl_state_lock): Likewise.
5795         * intl/textdomain.c (_nl_default_default_domain): Declare as hidden.
5796         (_nl_current_default_domain): Likewise
5797         (_nl_state_lock): Likewise.
5798         * intl/bindtextdom.c (_nl_state_lock): Likewise.
5800         * stdlib/fpioconst.h (__tens): Add attribute_hidden.
5801         (_fpioconst_pow10): Likewise.
5803         * include/time.h (_tmbuf): Add attribute_hidden.
5805         * time/tzset.c (tzstring_list): Define as static.
5807         * include/time.h: Add attribute_hidden to __tzname_cur_max and
5808         __use_tzfile declaration.
5810         * wcsmbs/wcsmbsload.h: Add attribute_hidden to __wcsmbs_gconv_fcts
5811         and __wcsmbs_last_locale declaration.
5813 2002-02-25  Paul Eggert  <eggert@twinsun.com>
5815         * timezone/Makefile (tzbases): Move systemv from here...
5816         (tzlinks): to here, since the entries in systemv were all changed
5817         from Zone to Link lines in tz-2001a.  Bug reported (and patch
5818         tested) by Peter Breitenlohner.
5820 2002-03-07  Jakub Jelinek  <jakub@redhat.com>
5822         * time/tst-posixtz.c (tests): Add new tests.
5823         (main): Test whether tzset() sets daylight properly.
5825 2002-03-06  Jakub Jelinek  <jakub@redhat.com>
5827         * time/tzset.c (tz_compute): Move __daylight, __tzname and
5828         __tzname_cur_max setting...
5829         (tzset_internal): ...here.
5831 2002-03-06  Jakub Jelinek  <jakub@redhat.com>
5833         * time/tzset.c (compute_change): Don't return any value.
5834         (tz_compute): Likewise.  Don't handle southern hemisphere here.
5835         (__tz_convert): But here.
5837 2002-03-11  Ulrich Drepper  <drepper@redhat.com>
5839         * manual/examples/mkfsock.c: Include <string.h> as well.
5840         Patch by Alain De Carolis <alaind@wseurope.com>.
5842 2002-03-06  Isamu Hasegawa  <isamu@yamato.ibm.com>
5844         * posix/regexec.c (re_match): Fix incorrect register sizes.
5845         (re_search): Likewise.
5847 2002-03-05  Isamu Hasegawa  <isamu@yamato.ibm.com>
5849         * posix/regcomp.c (regfree): Remove a disused condition.
5850         * posix/regex_internal.c (re_acquire_state): Likewise.
5851         (re_acquire_state_context): Likewise.
5852         (register_state): Remove a redundant malloc invocation.
5853         * posix/regex_internal.h: (re_state_table_entry): Simplify
5854         the structure.
5856 2002-03-05  Isamu Hasegawa  <isamu@yamato.ibm.com>
5858         * posix/regcomp.c (regcomp): Add __builtin_expect to error
5859         handling conditions.
5860         (regerror): Likewise.
5861         (regfree): Likewise.
5862         (re_compile_internal): Likewise.
5863         (init_dfa): Likewise.
5864         (init_word_char): Likewise.
5865         (create_initial_state): Likewise.
5866         (analyze): Likewise.
5867         (analyze_tree): Likewise.
5868         (duplicate_node): Likewise.
5869         (calc_eclosure): Likewise.
5870         (calc_eclosure_iter): Likewise.
5871         (parse): Likewise.
5872         (parse_reg_exp): Likewise.
5873         (parse_branch): Likewise.
5874         (parse_expression): Likewise.
5875         (parse_subexp): Likewise.
5876         (parse_dup_op): Likewise.
5877         (parse_bracket_exp): Likewise.
5878         (build_equiv_class): Likewise.
5879         (build_charclass): Likewise.
5880         (build_word_op): Likewise.
5881         (fetch_number): Likewise.
5882         (create_tree): Likewise.
5883         (duplicate_tree): Likewise.
5884         * posix/regex.c (BE): New macro.
5885         * posix/regexec.c (re_match): Add __builtin_expect to error
5886         handling conditions.
5887         (re_match_2): Likewise.
5888         (re_search): Likewise.
5889         (re_search_internal): Likewise.
5890         (check_matching): Likewise.
5891         (proceed_next_node): Likewise.
5892         (set_regs): Likewise.
5893         (sift_states_backward): Likewise.
5894         (add_epsilon_backreference): Likewise.
5895         (transit_state): Likewise.
5896         (transit_state_sb): Likewise.
5897         (transit_state_mb): Likewise.
5898         (transit_state_bkref): Likewise.
5899         (transit_state_bkref_loop): Likewise.
5900         (build_trtable): Likewise.
5901         (group_nodes_into_DFAstates): Likewise.
5902         (match_ctx_init): Likewise.
5903         (match_ctx_add_entry): Likewise.
5904         * posix/regex_internal.c (re_string_construct): Add __builtin_expect
5905         to error handling conditions.
5906         (re_string_construct_toupper): Likewise.
5907         (build_wcs_buffer): Likewise.
5908         (build_wcs_upper_buffer): Likewise.
5909         (build_upper_buffer): Likewise.
5910         (re_string_translate_buffer): Likewise.
5911         (re_node_set_alloc): Likewise.
5912         (re_node_set_init_1): Likewise.
5913         (re_node_set_init_2): Likewise.
5914         (re_node_set_init_copy): Likewise.
5915         (re_node_set_intersect): Likewise.
5916         (re_node_set_init_union): Likewise.
5917         (re_node_set_merge): Likewise.
5918         (re_node_set_insert): Likewise.
5919         (re_dfa_add_node): Likewise.
5920         (re_acquire_state): Likewise.
5921         (re_acquire_state_context): Likewise.
5922         (create_new_state_common): Likewise.
5923         (register_state): Likewise.
5924         (create_ci_new_state): Likewise.
5925         (create_cd_new_state): Likewise.
5926         (re_string_context_at): Remove redundant condition.
5928 2002-01-16  Roger Sayle  <roger@eyesopen.com>
5930         * sysdeps/i386/i686/strcmp.S: Avoid unconditional jump to a ret.
5932         * sysdeps/i386/i586/strlen.S: Fix typo in comment.
5934 2002-03-11  Jakub Jelinek  <jakub@redhat.com>
5936         * sysdeps/i386/elf/configure.in: Fix comment.
5938         * sysdeps/sparc/sparc64/configure.in: New.
5939         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_load_address): Fix
5940         if .dynamic comes before .got.
5941         * config.h.in (SPARC64_DYNAMIC_BEFORE_GOT): Add.
5943         * sysdeps/sparc/sparc64/hp-timing.h (HP_TIMING_DIFF,
5944         HP_TIMING_ACCUM): Fix typos.
5946 2002-03-11  Ulrich Drepper  <drepper@redhat.com>
5948         * string/strfry.c: Add some more randomness to the seed.
5949         Patch by James A Morrison <ja2morri@student.math.uwaterloo.ca>.
5951         * po/es.po: Update from translation team.
5952         * po/fr.po: Likewise.
5954         * stdio-common/tfformat.c (sprint_doubles): A test for %F format.
5956         * stdio-common/printf_fp.c (__printf_fp): Correct check for %F format
5957         when determining type of format.
5958         Patch by James Antill <james@anqd.org> [PR libc/2787].
5960 2002-03-04  Jakub Jelinek  <jakub@redhat.com>
5962         * sysdeps/unix/bsd/ftime.c (ftime): Don't return 1000 in millitm.
5964 2002-03-11  Roland McGrath  <roland@frob.com>
5966         * hurd/hurd/threadvar.h: Include <features.h> for __THROW macro.
5968         * Versions.def (libc): Add GLIBC_2.2.6.
5969         * hurd/Versions (libc: GLIBC_2.2.6): Add __errno_location.
5970         * sysdeps/mach/hurd/errnos.awk: In generated macro, use
5971         __errno_location instead of __hurd_errno_location, and don't inline it.
5972         * sysdeps/mach/hurd/bits/errno.h: Regenerated.
5973         * hurd/errno.c: New file.
5974         * hurd/Makefile (routines): Add errno.
5976 2002-03-11  Ulrich Drepper  <drepper@redhat.com>
5978         * stdio-common/vfprintf.c (vfprintf): Avoid crashing for
5979         ridiculously large widths and precisions [PR libc/3026].
5981 2002-03-11  Andreas Jaeger  <aj@suse.de>
5983         * sysdeps/unix/sysv/linux/s390/ldd-rewrite.sed: Fix for bi-arch
5984         support.
5985         Patch by Susanne Oberhauser <froh@SuSE.de>.
5987 2002-03-11  Ulrich Drepper  <drepper@redhat.com>
5989         * inet/rexec.c (ahostbuf): Define as static.
5991         * wctype/wcfuncs.c (__ctype32_wctype): Declare as hidden.
5992         (__ctype32_wctrans): Likewise.
5993         * wcsmbs/wcwidth.h (__ctype32_width): Declare as hidden.
5994         * ctype/ctype-info.c (__ctype32_wctype): Add attribute_hidden.
5995         (__ctype32_wctrans): Likewise.
5996         (__ctype32_width): Likewise.
5998         * gmon/Makefile (elide-routines.os): Add bb_init_func and bb_exit_func.
5999         They were never exported anyway.
6001         * gmon/gmon.c (_gmonparam): Add attribute_hidden.
6002         * gmon/sys/gmon.h: Remove declaration of _gmonparam.  It wasn't
6003         exported.
6004         * include/sys/gmon.h: Declare _gmonparam.
6006         * sysdeps/unix/sysv/linux/i386/getdents64.c: Don't define compatibility
6007         symbols for getdents64.  They were never exported.
6009 2002-03-09  Roland McGrath  <roland@frob.com>
6011         * hurd/hurdsig.c (write_corefile): Fix swapped arguments to __dir_link.
6012         Reported by Jon Arney <jarney1@cox.net>.
6014 2002-02-23  Roland McGrath  <roland@frob.com>
6016         * hurd/hurd/threadvar.h (__hurd_threadvar_location): Add __THROW to
6017         declaration.
6018         (__hurd_errno_location): Function removed.
6020 2002-03-06  Andreas Jaeger  <aj@suse.de>
6022         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Add compatibility for
6023         32-bit.
6025 2002-03-04  Andreas Jaeger  <aj@suse.de>
6027         * sysdeps/unix/sysv/linux/x86_64/readelflib.c: New.
6029         * sysdeps/unix/sysv/linux/kernel-features.h: Add defines for
6030         x86-64.
6032         * sysdeps/unix/sysv/linux/x86_64/bits/socket.h: New.
6034         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: New.
6036         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: New.
6038         * sysdeps/x86_64/bits/setjmp.h: New.
6040         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h: New.
6042         * sysdeps/unix/sysv/linux/x86_64/bits/resource.h: New.
6044         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Add compatibilty
6045         for x86.
6046         * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Likewise.
6047         * sysdeps/unix/sysv/linux/x86_64/bits/types.h: Likewise.
6049 2002-02-28  Bo Thorsen  <bo@suse.de>
6051         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Merge with i386
6052         version.
6054 2002-03-03  Andreas Jaeger  <aj@suse.de>
6056         * sysdeps/x86_64/bits/wordsize.h: New file.
6058         * elf/nodlopenmod2.c: Provide prototype to avoid warning.
6059         * elf/tst-tlsmod1.c: Likewise.
6061         * posix/regcomp.c: Get regex.h from include dir for internal
6062         prototypes.
6064         * sysdeps/unix/sysv/linux/init-first.c: Move __init_misc prototype
6065         to libc-internal.h and include it.
6066         * include/libc-internal.h: Add __init_misc.
6068         * misc/init-misc.c: Include libc-internal.h for prototypes.
6070         * sysdeps/wordsize-32/divdi3.c: Add prototypes to avoid warnings.
6072         * misc/error.c [_LIBC]: Include libioP.h for prototype of
6073         _IO_putc_internal.
6075 2002-03-03  Ulrich Drepper  <drepper@redhat.com>
6077         * posix/regcomp.c: Compatibility changes to allow using the code
6078         outside glibc.
6080 2002-02-28  Hartvig Ekner <hartvige@mips.com>
6082         * sysdeps/mips/elf/start.S: Added initialization of GP (to _gp) if
6083         compiled non-PIC.
6085 2002-03-02  Ulrich Drepper  <drepper@redhat.com>
6087         * sysdeps/generic/dl-sysdep.c (_dl_important_hwcaps): Fix creation
6088         of .str elements in the returned data structure.
6090         * elf/elf.h: Add Alpha TLS bits.
6092 2002-02-28  Jakub Jelinek  <jakub@redhat.com>
6094         * sysdeps/unix/sysv/linux/nice.c: New file.
6096 2002-03-01  Ulrich Drepper  <drepper@redhat.com>
6098         * elf/Makefile (dl-routines): Add dl-origin.
6099         (elide-routines.os): Add dl-origin.
6100         * elf/Versions [ld] (GLIBC_PRIVATE): Add _dl_get_origin.
6101         * elf/dl-debug.c (_dl_debug_initialize): Add missing INTUSE around
6102         _dl_debug_state.
6103         * include/libc-symbols.c: Define attribute_hidden depending on
6104         HAVE_VISIBILITY_ATTRIBUTE.  Add definition of INTVARDEF.
6106         * elf/dl-deps.c: Use INTUSE with __libc_enable_secure.
6107         * elf/dl-load.c: Likewise.
6108         * elf/rtld.c: Likewise.
6109         * include/unistd.h: Declare __libc_enable_secure_internal.
6110         * sysdeps/generic/dl-sysdep.c: Use INTVARDEF with __libc_enable_secure.
6111         Use INTUSE with __libc_enable_secure.
6112         * sysdeps/mach/hurd/dl-sysdep.c: Likewise.
6114         * elf/dl-deps.c: Use INTUSE with _dl_out_of_memory.
6115         * elf/dl-error.c: Likewise,
6116         * sysdeps/generic/ldsodefs.h: Declare _dl_out_of_memory_internal.
6118         * elf/dl-dst.h [_RTLD_GLOBAL]: Define _dl_get_origin to use INTUSE.
6119         * sysdeps/generic/dl-origin.c: Undefine _dl_get_origin macro before
6120         function definition.  Use INTDEF with _dl_get_origin.
6121         * sysdeps/unix/sysv/linux/dl-origin.c: Likewise.
6123         * elf/dl-init.c: Use INTUSE with _dl_starting_up.
6124         * elf/rtld.c: Likewise.  Use INTVARDEF for _dl_starting_up.
6126         * elf/dl-profile.c: Use INTDEF for _dl_mcount.
6127         * elf/dl-runtime.c: Use INTUSE with _dl_mcount.
6128         * sysdeps/generic/ldsodefs.h: Declare _dl_mcount_internal.
6130         * elf/dl-conflict.c: Use rtld_progrname instead of _dl_argv[0].
6131         * elf/dl-deps.c: Likewise.
6132         * elf/dl-error.c: Likewise.
6133         * elf/dl-fini.c: Likewise.
6134         * elf/dl-init.c: Likewise.
6135         * elf/dl-load.c: Likewise.
6136         * elf/dl-lookup.c: Likewise.
6137         * elf/dl-reloc.c: Likewise.
6138         * elf/dl-version.c: Likewise.
6139         * elf/do-lookup.h: Likewise.
6140         * sysdeps/arm/dl-machine.h: Likewise.
6141         * sysdeps/cris/dl-machine.h: Likewise.
6142         * sysdeps/hppa/dl-machine.h: Likewise.
6143         * sysdeps/i386/dl-machine.h: Likewise.
6144         * sysdeps/m68k/dl-machine.h: Likewise.
6145         * sysdeps/powerpc/dl-machine.h: Likewise.
6146         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
6147         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
6148         * sysdeps/sh/dl-machine.h: Likewise.
6149         * sysdeps/sparc/sparc-32/dl-machine.h: Likewise.
6150         * sysdeps/sparc/sparc-64/dl-machine.h: Likewise.
6151         * sysdeps/x86_64/dl-machine.h: Likewise.
6152         * elf/rtld.c: Use INTDEF for _dl_argv.  Use rtld_progrname instead of
6153         _dl_argv[0].  Use INTUSE with _dl_argv.
6154         * sysdeps/generic/dl-sysdep.c: Use INTUSE with _dl_argv.
6155         * sysdeps/generic/ldsodefs.h: Define rtld_progname macro.
6157 2002-02-28  Jakub Jelinek  <jakub@redhat.com>
6159         * elf/rtld.c (_rtld_global): Remove .protected.
6160         (_rtld_local): Strong alias to _rtld_global.
6161         * elf/Makefile (CFLAGS-.os): Add -D_RTLD_LOCAL if compiling rtld
6162         only .os object.
6163         * sysdeps/generic/ldsodefs.h (GL): If SHARED and _RTLD_LOCAL, use
6164         _rtld_local instead of _rtld_global.
6165         (_rtld_local): Add hidden extern, possibly in .sdata section.
6166         * configure.in: Add tests for visibility attribute and .sdata.
6167         * config.h.in: Add HAVE_VISIBILITY_ATTRIBUTE and HAVE_SDATA_SECTION.
6168         * sysdeps/alpha/dl-machine.h: Use _rtld_local instead of _rtld_global.
6169         * sysdeps/arm/dl-machine.h: Likewise.
6170         * sysdeps/generic/ldsodefs.h: Likewise.
6171         * sysdeps/hppa/dl-machine.h: Likewise.
6172         * sysdeps/cris/dl-machine.h: Likewise.
6173         * sysdeps/i386/dl-machine.h: Likewise.
6174         * sysdeps/ia64/dl-machine.h: Likewise.
6175         * sysdeps/m68k/dl-machine.h: Likewise.
6176         * sysdeps/mips/mips64/dl-machine.h: Likewise.
6177         * sysdeps/mips/dl-machine.h: Likewise.
6178         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
6179         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
6180         * sysdeps/sh/dl-machine.h: Likewise.
6181         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
6182         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
6183         * sysdeps/x86_64/dl-machine.h: Likewise.
6185 2002-02-28  Ulrich Drepper  <drepper@redhat.com>
6187         * login/login.c (login): Always initialize ut_line field
6188         [PR libc/2991].
6190 2002-02-28  Jakub Jelinek  <jakub@redhat.com>
6192         * sysdeps/i386/Makefile (sysdep_routines): Add
6193         divdi3 in csu dir.
6194         (shared-only-routines): Likewise.
6195         * sysdeps/m68k/Makefile (sysdep_routines): Likewise.
6196         (shared-only-routines): Likewise.
6197         * sysdeps/s390/s390-32/Makefile (sysdep_routines): Likewise.
6198         (shared-only-routines): Likewise.
6199         * sysdeps/wordsize-32/divdi3.c: New file.
6201 2002-02-28  Ulrich Drepper  <drepper@redhat.com>
6203         * locale/iso-4217.def: Remove obsolete currencies for countries
6204         with Euro.
6206 2002-02-28  Isamu Hasegawa  <isamu@yamato.ibm.com>
6208         * posix/regcomp.c (regcomp): Remove a redundant condition.
6209         (init_word_char): Add a check on malloc failure.
6210         (create_initial_state): Likewise.
6211         (duplicate_node): Likewise.
6212         (calc_eclosure): Likewise.
6213         (calc_eclosure_iter): Likewise.
6214         (parse_expression): Likewise.
6215         (parse_bracket_exp): Remove unnecessary malloc invocations.
6216         (build_equiv_class): Likewise.
6217         (build_charclass): Likewise.
6218         * posix/regex_internal.c (re_node_set_intersect): Add a check
6219         on malloc failure.
6220         (re_node_set_add_intersect): Likewise.
6221         (re_node_set_merge): Likewise.
6222         (re_acquire_state): Likewise.
6223         (re_acquire_state_context): Likewise.
6224         (create_newstate_common): Likewise.
6225         (register_state): Likewise.
6226         (create_ci_newstate): Likewise.
6227         (create_cd_newstate): Likewise.
6228         * posix/regex_internal.h: Fix prototypes of re_acquire_state
6229         and re_acquire_state_context.
6230         * posix/regexec.c (regexec): Suit it to the error handling of
6231         re_search_internal.
6232         (re_match): Likewise.
6233         (re_search): Likewise.
6234         (re_search_internal): Add a check on malloc failure.
6235         (acquire_init_state_context): Likewise.
6236         (check_matching): Likewise.
6237         (proceed_next_node): Likewise.
6238         (set_regs): Likewise.
6239         (sift_states_backward): Likewise.
6240         (sift_states_iter_bkref): Likewise.
6241         (add_epsilon_backreference): Likewise.
6242         (transit_state): Likewise.
6243         (transit_state_sb): Likewise.
6244         (transit_state_mb): Likewise.
6245         (transit_state_bkref_loop): Likewise.
6246         (build_trtable): Likewise.
6247         (group_nodes_into_DFAstates): Likewise.
6248         (match_ctx_init): Likewise.
6249         (match_ctx_add_entry): Likewise.
6251 2002-02-27  Ulrich Drepper  <drepper@redhat.com>
6253         * elf/dl-load.c (_dl_map_object_from_fd): Always add SONAME to
6254         l_libname if profiling is enabled [PR libc/2916].
6256         * sysdeps/ia64/dl-tls.h: New file.
6258 2002-02-27  Jakub Jelinek  <jakub@redhat.com>
6260         * sysdeps/alpha/dl-machine.h (elf_machine_load_address, RTLD_START):
6261         Work around an Alpha gas bug.
6263 2002-02-27  Ulrich Drepper  <drepper@redhat.com>
6265         * catgets/open_catalog.c (__open_catalog): Fix typo in code which
6266         uses read to load the catalog.
6267         Patch by Andy Isaacson <adi@unlimitedscale.com> [PR libc/3011].
6269 2002-02-26  Ulrich Drepper  <drepper@redhat.com>
6271         * posix/Makefile (distribute): Add regcomp.c, regexec.c,
6272         regex_internal.c, and regex_internal.h.
6273         (CFLAGS-regex.c): Replace -DMBS_SUPPORT with -DRE_ENABLE_I18N.
6274         * posix/regex.c: Complete rewrite.
6275         * posix/regexec.c: New file.
6276         * posix/regcomp.c: New file.
6277         * posix/regex_internal.c: New file.
6278         * posix/regex_internal.h: New file.
6279         * posix/regex.h (RE_ICASE): New macro.
6280         Contributed by Isamu Hasegawa <isamu@yamato.ibm.com>.
6282         * stdio-common/vfscanf.c (_IO_vfwscanf): Always use ungetc, never
6283         ungetwc.  It's a macro.
6284         * libio/tst-swscanf.c (do_test): Adjust for now fixed wscanf
6285         implementation.
6286         Reported by Jason Merrill <jason@redhat.com>.
6288 2002-02-25  Jakub Jelinek  <jakub@redhat.com>
6290         * libio/iofopen.c (__fopen_maybe_mmap): Set the initial
6291         position to fp->_offset if it is set.
6292         * stdio-common/Makefile (tests): Add tst-fdopen.
6293         * stdio-common/tst-fdopen.c: New test.
6295 2002-02-25  Jakub Jelinek  <jakub@redhat.com>
6297         * libio/fileops.c (_IO_file_xsgetn_mmap): Handle reading from backup.
6298         * stdio-common/tst-ungetc.c (main): Add another test.
6300 2002-02-25  Ulrich Drepper  <drepper@redhat.com>
6302         * assert/assert-perr.c: Use INTUSE to reference functions and variables
6303         inside libc itself.  Use INTDEF and INTDEF2 to define appropriate
6304         aliases.  Add prototypes for the new aliases.
6305         * assert/assert.c: Likewise.
6306         * include/libc-symbols.h: Likewise.
6307         * include/stdio.h: Likewise.
6308         * include/netinet/in.h: Likewise.
6309         * include/rpc/auth.h: Likewise.
6310         * include/rpc/auth_unix.h: Likewise.
6311         * include/rpc/key_prot.h: Likewise.
6312         * include/rpc/pmap_prot.h: Likewise.
6313         * include/rpc/pmap_rmt.h: Likewise.
6314         * include/rpc/rpc_msg.h: Likewise.
6315         * include/rpc/xdr.h: Likewise.
6316         * inet/gethstbyad_r.c: Likewise.
6317         * inet/gethstbynm2_r.c: Likewise.
6318         * inet/gethstbynm_r.c: Likewise.
6319         * inet/gethstent_r.c: Likewise.
6320         * inet/in6_addr.c: Likewise.
6321         * libio/__fpurge.c: Likewise.
6322         * libio/filedoalloc.c: Likewise.
6323         * libio/fileops.c: Likewise.
6324         * libio/ftello.c: Likewise.
6325         * libio/ftello64.c: Likewise.
6326         * libio/genops.c: Likewise.
6327         * libio/iofclose.c: Likewise.
6328         * libio/iofdopen.c: Likewise.
6329         * libio/iofflush.c: Likewise.
6330         * libio/iofflush_u.c: Likewise.
6331         * libio/iofgetpos.c: Likewise.
6332         * libio/iofgetpos64.c: Likewise.
6333         * libio/iofgets.c: Likewise.
6334         * libio/iofgets_u.c: Likewise.
6335         * libio/iofopen.c: Likewise.
6336         * libio/iofopncook.c: Likewise.
6337         * libio/iofputs.c: Likewise.
6338         * libio/iofread.c: Likewise.
6339         * libio/iofread_u.c: Likewise.
6340         * libio/iofsetpos.c: Likewise.
6341         * libio/iofsetpos64.c: Likewise.
6342         * libio/ioftell.c: Likewise.
6343         * libio/iofwrite.c: Likewise.
6344         * libio/iogetline.c: Likewise.
6345         * libio/iogets.c: Likewise.
6346         * libio/iogetwline.c: Likewise.
6347         * libio/iolibio.h: Likewise.
6348         * libio/iopadn.c: Likewise.
6349         * libio/iopopen.c: Likewise.
6350         * libio/ioseekoff.c: Likewise.
6351         * libio/ioseekpos.c: Likewise.
6352         * libio/iosetbuffer.c: Likewise.
6353         * libio/iosetvbuf.c: Likewise.
6354         * libio/ioungetc.c: Likewise.
6355         * libio/ioungetwc.c: Likewise.
6356         * libio/iovdprintf.c: Likewise.
6357         * libio/iovsprintf.c: Likewise.
6358         * libio/iovsscanf.c: Likewise.
6359         * libio/libioP.h: Likewise.
6360         * libio/memstream.c: Likewise.
6361         * libio/obprintf.c: Likewise.
6362         * libio/oldfileops.c: Likewise.
6363         * libio/oldiofclose.c: Likewise.
6364         * libio/oldiofdopen.c: Likewise.
6365         * libio/oldiofgetpos.c: Likewise.
6366         * libio/oldiofgetpos64.c: Likewise.
6367         * libio/oldiofopen.c: Likewise.
6368         * libio/oldiofsetpos.c: Likewise.
6369         * libio/oldiofsetpos64.c: Likewise.
6370         * libio/oldiopopen.c: Likewise.
6371         * libio/oldstdfiles.c: Likewise.
6372         * libio/putc.c: Likewise.
6373         * libio/setbuf.c: Likewise.
6374         * libio/setlinebuf.c: Likewise.
6375         * libio/stdfiles.c: Likewise.
6376         * libio/stdio.c: Likewise.
6377         * libio/strops.c: Likewise.
6378         * libio/vasprintf.c: Likewise.
6379         * libio/vscanf.c: Likewise.
6380         * libio/vsnprintf.c: Likewise.
6381         * libio/vswprintf.c: Likewise.
6382         * libio/wfiledoalloc.c: Likewise.
6383         * libio/wfileops.c: Likewise.
6384         * libio/wgenops.c: Likewise.
6385         * libio/wstrops.c: Likewise.
6386         * malloc/mtrace.c: Likewise.
6387         * misc/error.c: Likewise.
6388         * misc/syslog.c: Likewise.
6389         * nss/getXXbyYY_r.c: Likewise.
6390         * nss/getXXent_r.c: Likewise.
6391         * nss/hosts-lookup.c: Likewise.
6392         * stdio-common/getw.c
6393         * stdio-common/printf-prs.c: Likewise.
6394         * stdio-common/printf_fp.c: Likewise.
6395         * stdio-common/printf_size.c: Likewise.
6396         * stdio-common/putw.c: Likewise.
6397         * stdio-common/scanf.c: Likewise.
6398         * stdio-common/sprintf.c: Likewise.
6399         * stdio-common/tmpfile64.c: Likewise.
6400         * stdio-common/vfprintf.c: Likewise.
6401         * stdio-common/vfscanf.c: Likewise.
6402         * stdlib/strfmon.c: Likewise.
6403         * sunrpc/auth_des.c: Likewise.
6404         * sunrpc/auth_none.c: Likewise.
6405         * sunrpc/auth_unix.c: Likewise.
6406         * sunrpc/authdes_prot.c: Likewise.
6407         * sunrpc/authuxprot.c: Likewise.
6408         * sunrpc/clnt_perr.c: Likewise.
6409         * sunrpc/clnt_raw.c: Likewise.
6410         * sunrpc/clnt_tcp.c: Likewise.
6411         * sunrpc/clnt_udp.c: Likewise.
6412         * sunrpc/clnt_unix.c: Likewise.
6413         * sunrpc/key_call.c: Likewise.
6414         * sunrpc/key_prot.c: Likewise.
6415         * sunrpc/openchild.c: Likewise.
6416         * sunrpc/pm_getmaps.c: Likewise.
6417         * sunrpc/pm_getport.c: Likewise.
6418         * sunrpc/pmap_clnt.c: Likewise.
6419         * sunrpc/pmap_prot.c: Likewise.
6420         * sunrpc/pmap_prot2.c: Likewise.
6421         * sunrpc/pmap_rmt.c: Likewise.
6422         * sunrpc/rpc_cmsg.c: Likewise.
6423         * sunrpc/rpc_prot.c: Likewise.
6424         * sunrpc/svc_authux.c: Likewise.
6425         * sunrpc/svc_raw.c: Likewise.
6426         * sunrpc/svc_simple.c: Likewise.
6427         * sunrpc/svc_tcp.c: Likewise.
6428         * sunrpc/svc_udp.c: Likewise.
6429         * sunrpc/svc_unix.c: Likewise.
6430         * sunrpc/xdr.c: Likewise.
6431         * sunrpc/xdr_array.c: Likewise.
6432         * sunrpc/xdr_mem.c: Likewise.
6433         * sunrpc/xdr_rec.c: Likewise.
6434         * sunrpc/xdr_ref.c: Likewise.
6435         * sunrpc/xdr_stdio.c: Likewise.
6436         * sysdeps/generic/_strerror.c: Likewise.
6437         * sysdeps/generic/printf_fphex.c: Likewise.
6438         * sysdeps/generic/tmpfile.c: Likewise.
6439         * sysdeps/gnu/errlist.awk: Likewise.
6440         * sysdeps/gnu/errlist.c: Likewise.
6442         * libio/Makefile (routines): Remove iosprint.
6443         * libio/iosprintf.c: Removed
6446 2002-02-24  Ulrich Drepper  <drepper@redhat.com>
6448         * elf/dl-support.c (_dl_non_dynamic_init): Renamed from
6449         non_dynamic_init and exported now.
6450         * sysdeps/unix/sysv/linux/ldsodefs.h: Declare _dl_non_dynamic_init.
6451         * sysdeps/unix/sysv/linux/init-first.c: Call _dl_non_dynamic_init for
6452         !SHARED.
6453         * sysdeps/mach/hurd/i386/init-first.c: Likewise.
6454         * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
6455         * sysdeps/mach/hurd/mips/init-first.c: Likewise.
6457 2002-02-23  Ulrich Drepper  <drepper@redhat.com>
6459         * elf/dl-close.c (free_slotinfo): Check for end of list and return
6460         true in this case.
6462         * locale/iso-639.def: Add language codes for Walloon.
6464         * elf/dl-fini.c (_dl_fini): Print some final statistics on the
6465         total number of relocations performed.
6467         * elf/sprof.c (load_profdata): If do_test provide information as
6468         to why loading failed.
6469         * elf/dl-profile.c (_dl_start_profile): Initialize all of
6470         hist_hdr.dimen.
6472         * csu/set-init.c: Moved to...
6473         * sysdeps/mach/hurd/set-init.c: ...here.  New file.
6474         * csu/Makefile: Don't compile set-init.
6475         * sysdeps/mach/hurd/Makefile: Compile set-init for subdir csu.
6476         * sysdeps/mach/hurd/i386/init-first.c: Call __init_misc in addition
6477         to __libc_init.
6478         * sysdeps/mach/hurd/mips/init-first.c: Likewise.
6479         * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
6480         * sysdeps/unix/sysv/linux/init-first.c: Call __init_misc instead of
6481         __libc_init.
6482         * misc/init-misc.c: Always export __init_misc.  Don't define hooks for
6483         __libc_subinit.
6485 2002-02-22  Ulrich Drepper  <drepper@redhat.com>
6487         * elf/Versions: Add _dl_allocate_tls and _dl_deallocate_tls.
6488         * elf/rtld.c (dl_main): Use _dl_allocate_tls with INTUSE.
6489         * sysdeps/generic/dl-tls.c: Add INTDEF for _dl_allocate_tls.
6490         (_dl_deallocate_tls): New function.
6491         * sysdeps/generic/ldsodefs.h: Declare _dl_allocate_tls_internal and
6492         _dl_deallocate_tls.
6494 2002-02-21  Jakub Jelinek  <jakub@redhat.com>
6496         * libio/fileops.c (_IO_file_seekoff_mmap): Fix fseek SEEK_END.
6497         * stdio-common/tst-fseek.c (main): Add test for this.
6499 2002-02-19  Ulrich Drepper  <drepper@redhat.com.>
6501         * stdlib/Versions: Move __on_exit to GLIBC_PRIVATE.
6503 2002-02-19  Jakub Jelinek  <jakub@redhat.com>
6505         * libio/fileops.c (_IO_file_underflow_mmap): Cast to unsigned char
6506         pointer before dereferencing.
6508 2002-02-18  Roland McGrath  <roland@frob.com>
6510         * sysdeps/mach/hurd/times.c: Fix typo in last change.
6512         * sysdeps/mach/hurd/setpriority.c [POLICY_TIMESHARE_BASE_COUNT]:
6513         Use task_policy in place of task_priority.
6515         * sysdeps/generic/bits/mman.h
6516         (MS_ASYNC, MS_SYNC, MS_INVALIDATE): New macros.
6517         * sysdeps/mach/msync.c: New file.
6519         * sysdeps/mach/powerpc/syscall.S: New file.
6521         * mach/msg.c [MACH_MSG_OVERWRITE]
6522         (__mach_msg_trap, __mach_msg_overwrite): New functions.
6523         * mach/Versions (libc: GLIBC_2.0): Add mach_msg_overwrite and __ name.
6525         * sysdeps/mach/configure.in: Check for clock.defs to put into
6526         mach_interface_list.
6527         * sysdeps/mach/configure: Regenerated.
6529         * mach/Makefile (mach-machine): New variable, set from $(base-machine).
6530         ($(objpfx)mach-syscalls.mk): Use it in place of $(base-machine).
6531         ($(mach-syscalls:%=$(objpfx)%.S) static pattern rule):
6532         Use <mach/machine/syscall_sw.h> instead of <sysdep.h>.
6533         (mach-shortcuts): Add device_read_overwrite_request,
6534         device_read_overwrite, vm_read_overwrite, thread_switch.
6536         * configure.in (base_machine): Set to $machine by default.
6537         * configure: Regenerated.
6539         * sysdeps/mach/configure.in: Check for <mach/machine/ndr_def.h>
6540         or <machine/ndr_def.h> and add -DNDR_DEF_HEADER=... to DEFINES.
6541         * sysdeps/mach/configure: Regenerated.
6542         * mach/mach_init.c [NDR_DEF_HEADER]: #include it.
6544         * hurd/hurdfault.c (_hurdsig_fault_init): Add a cast.
6546         * hurd/hurd/signal.h: Include <setjmp.h> for `jmp_buf' decl.
6548         * mach/msgserver.c (__mach_msg_server_timeout) [! MACH_RCV_LARGE]:
6549         Double MAX_SIZE and don't retry on MACH_RCV_TOO_LARGE.
6551 2002-02-17  Roland McGrath  <roland@frob.com>
6553         * sysdeps/mach/hurd/times.c
6554         [NO_CREATION_TIME] (startup_time): New static variable.
6555         [NO_CREATION_TIME] (times_init): New static function in __libc_subinit.
6556         (__times) [NO_CREATION_TIME]: Use startup_time in lieu of task
6557         creation_time from task_basic_info.
6558         (__times): Use __gettimeofday instead of __host_get_time.
6560         * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg) [! MACH_MSG_TYPE_BIT]:
6561         Use untyped Mach IPC message format.
6563         * hurd/catch-exc.c: Include <assert.h>, missing from last change.
6565         * hurd/Versions (libc: GLIBC_2.0): Add _S_catch_exception_raise_state,
6566         _S_catch_exception_raise_state_identity,
6567         _hurdsig_fault_catch_exception_raise_state,
6568         _hurdsig_fault_catch_exception_raise_state_identity.
6570         * mach/shortcut.awk: Don't apply the /^}$/ rule when $proto == "".
6572         * sysdeps/mach/getsysstats.c (__get_avphys_pages) [HOST_VM_INFO]: Use
6573         __host_info with HOST_VM_INFO flavor instead of __vm_statistics.
6575         * sysdeps/mach/hurd/getpriority.c [TASK_SCHED_TIMESHARE_INFO]: Find
6576         `base_priority' in PIP->timeshare_base_info instead of PIP->taskinfo.
6578         * sysdeps/mach/hurd/dl-sysdep.c [FMH]: Define for i386 only.
6579         (fmh, unfmh): Define these functions only #if FMH.  Otherwise define
6580         them as no-op macros.
6581         [FMH] (ELF_MACHINE_USER_ADDRESS_MASK): Redefine it to zero.
6582         (__mmap): Uncomment uses of ELF_MACHINE_USER_ADDRESS_MASK.
6584         * sysdeps/powerpc/dl-machine.h
6585         (ELF_MACHINE_USER_ADDRESS_MASK): New macro.
6587         * hurd/hurdselect.c (_hurd_select) [MACH_MSG_TRAILER_MINIMUM_SIZE]:
6588         Use untyped Mach IPC message format.
6590         * sysdeps/mach/hurd/ioctl.c (__ioctl) [! MACH_MSG_TYPE_BIT]:
6591         Handle untyped Mach IPC message formats.
6593         * hurd/catch-exc.c (_S_catch_exception_raise) [EXC_MASK_ALL]:
6594         Expect different argument conventions when this is defined.
6595         [EXC_MASK_ALL] (_S_catch_exception_raise_state): New stub function.
6596         [EXC_MASK_ALL] (_S_catch_exception_raise_state_identity): Likewise.
6597         * hurd/hurdfault.c: Likewise for _hurdsig_fault_catch_exception_*.
6598         [NDR_CHAR_ASCII] (mig_reply_header_t): #define as mig_reply_error_t
6599         for OSF Mach variant.
6600         (faulted): Use mig_reply_error_t for REPLY.
6601         (_hurdsig_fault_init) [EXC_MASK_ALL]: Use EXCEPTION_STATE_IDENTITY
6602         in __thread_set_exception_ports call.
6603         (_hurdsig_fault_init) [MACH_PORT_RECEIVE_STATUS]: Use
6604         __mach_port_set_attributes in place of __mach_port_set_qlimit.
6606         * sysdeps/mach/powerpc/sysdep.h (_MACH_MACHINE_ASM_H): Define this
6607         before include <sysdeps/mach/sysdep.h>, to inhibit <mach/machine/asm.h>
6608         on Darwin, which includes bogons.
6610         * sysdeps/powerpc/dl-machine.h (elf_machine_rela): Move local
6611         variable LOADBASE so it's not declared when it's not used.
6613 2002-02-16  Roland McGrath  <roland@frob.com>
6615         * sysdeps/mach/hurd/times.c (__times) [NO_CREATION_TIME]: Don't try
6616         to use BI.creation_time.
6618         * mach/Machrules (MIG): Add -x c to CPP value passed down.
6620         * config.h.in: Add #undef HAVE_HOST_PAGE_SIZE.
6621         * sysdeps/mach/configure.in: Check for host_page_size RPC to define it.
6622         * mach/mach_init.c (__mach_init) [HAVE_HOST_PAGE_SIZE]: Use
6623         host_page_size instead of vm_statistics.
6625         * sysdeps/mach/Makefile (mach-before-compile): Don't include
6626         mach_interface.h here, since not all variants use that name.
6628         * sysdeps/mach/configure.in: Add some checks for Mach headers
6629         to ensure a sane installation.
6630         (mach_interface_list): Define this variable by checking for .defs
6631         files found in various variants.
6632         * configure.in (mach_interface_list): AC_SUBST this.
6633         * config.make.in (mach-interface-list): New substituted variable.
6634         * mach/Makefile (user-interfaces): Define this using the value
6635         of $(mach-interface-list) instead of mach, mach4.
6636         Updated other references to mach_interface to use it as well.
6638         * sysdeps/mach/powerpc/machine-lock.h: Avoid multi-line strings.
6640         * mach/msgserver.c [NDR_CHAR_ASCII] (mig_reply_header_t): #define as
6641         mig_reply_error_t for OSF Mach variant.
6643         * mach/Makefile (routines): Remove bootprivport.
6644         * mach/bootprivport.c: File removed.  It has never been used.
6646         * mach/msg-destroy.c (__mach_msg_destroy) [MACH_MSG_PORT_DESCRIPTOR]:
6647         Grok the OSF flavor of message format.
6648         (mach_msg_destroy_port): For MAKE_SEND and
6649         MAKE_SEND_ONCE rights, create an destroy a right to ensure proper
6650         no-senders notification.
6652 2002-02-06  Roland McGrath  <roland@frob.com>
6654         * hurd/Versions (libc: GLIBC_2.0): Move cthread_fork, cthread_detach
6655         to here if 2.0 compatibility enabled ...
6656         (libc: GLIBC_2.1.3): ... from here.
6658 2002-02-15  Ulrich Drepper  <drepper@redhat.com>
6660         * elf/dl-open.c (dl_open_worker): Catch wrap-around of TLS
6661         generation counter.
6662         * elf/dl-close.c (_dl_close): Likewise.
6664 2002-02-14  Ulrich Drepper  <drepper@redhat.com>
6666         * elf/Makefile: Add rules to build and run tst-tls8.
6667         * elf/tst-tls8.c: New file.
6668         * elf/tst-tlsmod4.c: New file.
6670         * stdlib/test-a64l.c (tests): Add more test cases.
6672         * sunrpc/rtime.c (rtime): Change type of thetime to uint32_t.
6673         Reported by Walter Harms <WHarms@bfs.de>.
6675 2002-02-11  Jes Sorensen  <jes@trained-monkey.org>
6677         * sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h: Add sc_flag bit
6678         definitions for struct sigcontext.
6679         Suggested by David Mosberger-Tang.
6681 2002-02-13  Ulrich Drepper  <drepper@redhat.com>
6683         * elf/dl-close.c (remove_slotinfo): New function.  Handles everything
6684         for removing reference of module in slotinfo list.
6685         (_dl_close): Use remove_slotinfo.
6686         * sysdeps/generic/dl-tls.c: General pretty printing.
6687         (oom): Define only if SHARED.
6688         (_dl_next_tls_modid): Correct starting point for the case we assume
6689         there is a gap.  Add missing instruction grouping (doh!).  Correct
6690         tests for reaching maximum index.
6691         * elf/Makefile: Add rules to build and run tst-tls7.
6692         * elf/tst-tls7.c: New file.
6693         * elf/tst-tlsmod3.c: New file.
6695         * elf/tst-tlsmod1.c: Move #include "tls-macros.h" instead #ifdef
6696         USE_TLS.
6697         * elf/tst-tlsmod2.c: Likewise.
6699         * elf/dl-close.c (_dl_close): When closing an object using TLS
6700         either decrement dl_tls_max_dtv_idx or set dl_tls_dtv_gaps to
6701         true.  Increment dl_tls_generation only if we closed any TLS-using
6702         object.
6703         * elf/tst-tls6.c: New file.
6704         * elf/Makefile: Add rules to build and run tst-tls6.
6706         * po/da.po: Update from translation team.
6708         * locale/categories.def: Fix typo [PR libc/2948].
6709         * po/Makefile (BROKEN_LINGUAS): Works with current gettext
6710         [PR libc/2949].
6711         * locale/iso-4217.def: Update from official version [PR libc/2950].
6712         * glibcbug.in: Honor TMPDIR [PR libc/2951].
6713         * locale/programs/ld-collate.c (collate_finish): Bail out with a
6714         message if input is too confusion instead of using assert.
6715         (collate_read): Don't crash on unknown symbol [PR libc/2952].
6716         Patches by Alastair McKinstry <alastair@pdd.3com.com>.
6718         * elf/tst-tls1.c: Move #include "tls-macros.h" instead #ifdef USE_TLS.
6719         * elf/tst-tls2.c: Likewise.
6720         * elf/tst-tls3.c: Likewise.
6722 2002-02-13  Jakub Jelinek  <jakub@redhat.com>
6724         * elf/dl-close.c (free_slotinfo): Only define if TLS supported.
6726 2002-02-13  Ulrich Drepper  <drepper@redhat.com>
6728         * elf/dl-open.c (dl_open_worker): Only bump the generation counter
6729         if this is really necessary.
6731         * elf/dl-close.c (_dl_close): Implement freeing entries in the
6732         slotinfo array.
6733         (free_mem): Free memory for the slotinfo array if possible.
6735 2002-02-12  Andreas Schwab  <schwab@suse.de>
6737         * csu/gmon-start.c (__gmon_start__): Remove '&' from ENTRY_POINT.
6739 2002-02-12  Ulrich Drepper  <drepper@redhat.com>
6741         * sysdeps/generic/dl-tls.c (TLS_DTV_UNALLOCATED): Renamed from
6742         TLS_DTV_UNALLOCATE.
6743         (oom): New function.
6744         (_dl_next_tls_modid): Rewrite to handle dl_tls_dtv_slotinfo_list.
6745         (_dl_determine_tlsoffset): Likewise.
6746         (_dl_allocate_tls): Likewise.
6747         (__TLS_GET_ADDR): Define if not already defined.
6748         (_dl_tls_symaddr): New function.
6749         (allocate_and_init): New function.
6750         (__tls_get_addr): Actually implement handling of generation counter
6751         and deferred allocation.
6752         * sysdeps/generic/ldsodefs.h (_rtld_global): Remove _dl_initimage_list,
6753         add _dl_tls_dtv_slotinfo_list, _dl_tls_static_nelem, and
6754         _dl_tls_generation.
6755         Define TLS_SLOTINFO_SURPLUS and DTV_SURPLUS.
6756         Declare _dl_tls_symaddr.
6757         * sysdeps/i386/dl-tls.h: Disable __tls_get_addr handling unless
6758         SHARED.
6759         * include/link.h (struct link_map):  Remove l_tls_nextimage and
6760         l_tls_previmage.
6761         * elf/dl-sym.c (_dl_sym): After successful lookup call _dl_tls_symaddr
6762         instead of DL_SYMBOL_ADDRESS for STT_TLS symbols.
6763         (_dl_vsym): Likewise.
6764         * elf/rtld.c (_dl_start_final): Adjust initdtv initialization for new
6765         layout.
6766         (dl_main): Allow PT_TLS be present for empty segment.  Remove
6767         nextimage list handling.  Instead add all modules using TLS to
6768         dl_tls_dtv_slotinfo_list.
6769         * elf/dl-open.c (dl_open_worker): After successfully loading all
6770         objects add those with TLS to the dl_tls_dtv_slotinfo_list list.
6771         * elf/dl-load.c (_dl_map_object_from_fd): If PT_TLS entry is for an
6772         empty segment don't do anything.  Remove handling of initimage list.
6773         * elf/Versions [ld] (GLIBC_2.0): Add __libc_memalign.
6774         (GLIBC_PRIVATE): Add _dl_tls_symaddr.
6775         * elf/dl-minimal.c: Define __libc_memalign.
6776         * elf/dl-support.c: Remove _dl_initimage_list.  Add
6777         _dl_tls_dtv_slotinfo_list, _dl_tls_static_nelem, and
6778         _dl_tls_generation.
6779         * include/stdlib.h: Declare __libc_memalign.
6781         * elf/Makefile: Add rules to build and run tst-tls4 and tst-tls5.
6782         * elf/tst-tls4.c: New file.
6783         * elf/tst-tls5.c: New file.
6784         * elf/tst-tlsmod2.c: New file.
6786         * elf/tls-macros.h: asms using ___tls_get_addr destroy %ecx and %edx.
6788         * elf/tst-tlsmod1.c: Don't define variables unles USE_TLS.
6790         * elf/tst-tls1.c: Use test-skeleton.c.
6791         * elf/tst-tls2.c: Likewise.
6792         * elf/tst-tls3.c: Likewise.
6794         * elf/dl-conflict.c (RESOLVE_MAP): Return NULL not 0.
6796 2002-02-08  Daniel Jacobowitz  <drow@mvista.com>
6798         * sysdeps/mips/machine-gmon.h: Update MCOUNT for current GCC behavior.
6800 2002-02-10  Ulrich Drepper  <drepper@redhat.com>
6802         * elf/elf.h: Define R_386_TLS_GD and R_386_TLS_LDM.
6804         * elf/tst-tls3.c: New file.
6805         * elf/tst-tlsmod1.c: New file.
6806         * elf/Makefile: Add rules to build and run tst-tls3.
6808         * sysdeps/i386/dl-machine.h: Include <tls.h>.
6809         (elf_machine_type_class): Set ELF_RTYPE_CLASS_PLT also for the three
6810         TLS relocations.
6812         * elf/do-lookup.h (FCT): st_value can be zero for STT_TLS symbols.
6814         * po/fr.po: Update from translation team.
6816         * elf/tls-macros.h: Add alternative macros for use in PIC.
6818         * elf/dl-lookup.c: Include <tls.h>.
6819         * elf/do-lookup.h (FCT): Don't discard STT_TLS symbols.
6821         * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): More changes
6822         required by passing pointer to last element of the list.
6824         * elf/dl-load.c (_dl_map_object_from_fd): Move adjustment of
6825         l_tls_initimage to a place where it actually is performed.
6827         * sysdeps/generic/glob.c (glob): Explicitly set gl_pathc to zero
6828         after globfree() calls.
6830         * elf/dl-deps.c (struct openaux_args): Add open_mode element.
6831         (openaux): Pass open_mode as new last argument to _dl_map_object.
6832         (_dl_map_object_deps): Add new argument open_mode.  Initialize
6833         open_mode element of args variable with it.
6834         * elf/dl-open.c (dl_open_worker): Pass __RTLD_DLOPEN flag is set to
6835         _dl_map_object_deps.
6836         * elf/rtld.c (dl_main): Add zero as last parameter to
6837         _dl_map_object_deps call.
6838         * sysdeps/generic/ldsodefs.h: Adjust prototype of _dl_map_object_deps.
6839         * elf/nodlopen2.c: New file.
6840         * elf/nodlopenmod2.c: New file.
6841         * elf/Makefile: Add rules to build and run nodlopen2.
6843         * elf/tst-tls1.c: Move TLS helper macros to...
6844         * elf/tls-macros.h: ...here.  New file.
6845         * elf/tst-tls2.c: New file.
6846         * elf/Makefile (tests): Add tst-tls2.
6847         (distribute): Add tls-macros.h.
6849         * po/sv.po: Update from translation team.
6851         * elf/tst-tls1.c (main): Add complete set of tests.  Split
6852         architecture specific definitions from the actual test code.
6854         * po/tr.po: Update from translation team.
6856 2002-02-09  Ulrich Drepper  <drepper@redhat.com>
6858         * elf/Makefile (tests): Add tst-tls1.
6859         * elf/tst-tls1.c: New file.
6861         * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): Don't handle
6862         alignment of TCB for now.
6864         * elf/rtld.c (dl_main): Use p_vaddr as address of TLS
6865         initialization image for the application itself.
6867         * sysdeps/generic/dl-tls.c (_dl_allocate_tls): Correctly terminate
6868         loop to initialize TLS block.
6870 2002-02-08  Richard Henderson  <rth@redhat.com>
6872         * sysdeps/generic/ldsodefs.h (struct rtld_global): Also include
6873         _dl_cpuclock_offset if HP_SMALL_TIMING_AVAIL.
6875         * sysdeps/alpha/elf/initfini.c: Use \n\ for multiline string.
6877 2002-02-09  Jakub Jelinek  <jakub@redhat.com>
6879         * sysdeps/generic/dl-environ.c (unsetenv): Clear cnt before use.
6881 2002-02-08  Ulrich Drepper  <drepper@redhat.com>
6883         * po/ca.po: Update from translation team.
6884         * po/sk.po: Likewise.
6886         * elf/rtld.c (_dl_start_final): Install DTV explicitly.
6887         (dl_main): Move dtv/static TLS handling before relocation.
6888         Unconditionally call _dl_tlsoffset.  Call _dl_allocate_tls and
6889         TLS_INIT_TP to allocate and install the dtv/static TLS block.
6890         * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): If no object
6891         so far uses TLS initialize GL(dl_tls_static_size) and
6892         GL(dl_tls_static_align) to account for the TCB.
6893         (_dl_allocate_tls): New function.
6894         * sysdeps/generic/ldsodefs.h (rtld_global): Add
6895         _dl_initial_dtv_malloced.
6897         * configure.in: Test for __builtin_memset more realistically.
6899         * csu/version.c (banner): If TLS support is available say so.
6901 2002-02-04  H.J. Lu  <hjl@gnu.org>
6903         * sysdeps/mips/dl-machine.h (elf_machine_matches_host): Use
6904         __attribute_used__.
6905         (__dl_runtime_resolve): Likewise.
6907         * sysdeps/mips/machine-gmon.h (_MCOUNT_DECL): Make it a real
6908         declaration.
6910 2001-11-15  H.J. Lu  <hjl@gnu.org>
6912         * sysdeps/unix/sysv/linux/mips/sys/procfs.h: Don't include
6913         <signal.h>, <sys/ucontext.h> nor <asm/elf.h>. Updated for gdb.
6915         * sysdeps/unix/sysv/linux/mips/sys/user.h: New.
6917 2002-02-07  H.J. Lu  <hjl@gnu.org>
6919         * sysdeps/mips/atomicity.h (compare_and_swap): Remove
6920         ".set noreorder".
6921         * sysdeps/unix/sysv/linux/mips/sys/tas.h (_test_and_set):
6922         Likewise.
6924 2002-02-07  Ulrich Drepper  <drepper@redhat.com>
6926         * sysdeps/unix/sysv/linux/bits/stat.h: Undo last patch.
6928         * sysdeps/i386/dl-tls.h (__tls_get_addr): Call
6929         ___tls_get_addr_internal.
6930         (___tls_get_addr_internal): Define as alias for ___tls_get_addr.
6932         * po/ko.po: Update from translation team.
6934 2002-02-07  Jakub Jelinek  <jakub@redhat.com>
6936         * sysdeps/unix/sysv/linux/bits/stat.h (struct stat): Remove packed
6937         attribute, change __pad{1,2} type to unsigned int.
6938         (struct stat64): Remove packed attribute.
6940 2002-02-07  Ulrich Drepper  <drepper@redhat.com>
6942         * sysdeps/i386/dl-tls.h: No need for #ifdef USE_TLS.
6944 2002-02-07  Andreas Schwab  <schwab@suse.de>
6946         * configure.in: Fix check for -zcombreloc.
6948 2002-02-06  H.J. Lu  <hjl@gnu.org>
6950         * config.h.in (HAVE_BUILTIN_MEMSET): New.
6951         * configure.in: Check if __builtin_memset really works.
6952         * elf/rtld.c (_dl_start): Check HAVE_BUILTIN_MEMSET instead of
6953         __GNUC_PREREQ (2, 96) before using __builtin_memset.
6955 2002-02-06  Jakub Jelinek  <jakub@redhat.com>
6957         * io/bug-ftw3.c (main): Don't try the test if root.
6959 2002-02-06  Martin Schwidefsky  <schwidefsky@de.ibm.com>
6961         * sysdeps/unix/sysv/linux/s390/brk.c (__brk): Correct inline assembly
6962         constraints.
6963         * sysdeps/unix/sysv/linux/s390/s390-32/bits/resource.h (RLIMIT_LOCKS):
6964         Add RLIMIT_LOCKS and adjust RLIMIT_NLIMITS.
6965         * sysdeps/unix/sysv/linux/s390/s390-64/bits/resource.h (RLIMIT_LOCKS):
6966         Likewise.
6967         * sysdeps/unix/sysv/linux/s390/s390-32/clone.S (clone): Make clone
6968         a weak alias for __clone.
6969         * sysdeps/unix/sysv/linux/s390/s390-64/clone.S (clone): Likewise.
6970         * sysdeps/unix/sysv/linux/s390/s390-32/profil-counter.h: Fix typo.
6971         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile: Add framestate.
6972         * sysdeps/unix/sysv/linux/s390/s390-64/Versions: New file.
6973         * sysdeps/unix/sysv/linux/s390/s390-64/mmap.S (__mmap64): Make __mmap
6974         a weak alias for __mmap64.
6976 2002-02-05  H.J. Lu  <hjl@gnu.org>
6978         * sysdeps/mips/atomicity.h (exchange_and_add): Not use branch likely.
6979         (atomic_add): Likewise.
6980         (compare_and_swap): Likewise.
6981         * sysdeps/unix/sysv/linux/mips/sys/tas.h (_test_and_set): Likewise.
6983 2002-02-07  Ulrich Drepper  <drepper@redhat.com>
6985         * sysdeps/generic/dl-tls.c: Don't read TLS header if TLS is not needed.
6987         * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): Account for
6988         alignment of the TCB and store total size and alignment of static
6989         TLS block in _dl_tls_static_size and _dl_tls_static_align.
6990         tls_index is a typedef.
6991         * sysdeps/generic/ldsodefs.h: Declare _dl_tls_static_size and
6992         _dl_tls_static_align.
6993         * sysdeps/i386/dl-tls.h: tls_index is a typedef.
6994         * elf/dl-support.c: Define _dl_tls_static_size and
6995         _dl_tls_static_align.
6997 2002-02-06  Ulrich Drepper  <drepper@redhat.com>
6999         * configure.in: Add --without-tls option.
7000         * sysdeps/i386/elf/configure.in: Don't check for TLS support if
7001         --without-tls is given.
7003         * sysdeps/generic/dl-tls.c: Include <tls.h>.
7005         * sysdeps/i386/dl-tls.h: Don't define anything if !USE_TLS.
7007 2002-02-06  Roland McGrath  <roland@frob.com>
7009         * malloc/hooks.c [! HAVE_MREMAP]: Conditionalize unused decls.
7010         * malloc/malloc.c [! HAVE_MREMAP]: Likewise.
7012         * scripts/versions.awk: Improve error message for missing version.
7013         Each version inherits from the last one only if they have the same
7014         nonnumeric prefix, i.e. GLIBC_x.y and GLIBC_x.z or FOO_x and FOO_y
7015         but not GLIBC_x and FOO_y.
7017         * scripts/firstversions.awk: Handle libraries that don't have each
7018         particular version named in the third column of shlib-versions.
7020         * scripts/firstversions.awk: Don't mess with GLIBC_PRIVATE.
7022 2002-02-06  Ulrich Drepper  <drepper@redhat.com>
7024         * Versions.def [ld]: Add GLIBC_2.3.
7025         * elf/Versions [ld]: Add __tls_get_addr to GLIBC_2.3.
7026         * elf/Makefile (dl-routines): Add dl-tls.
7027         (distribute): Add dl-tls.h.
7028         * sysdeps/generic/ldsodefs.h (struct rtld_global): Remove
7029         _dl_tls_module_cnt, add _dl_tls_max_dtv_idx and _dl_tls_dtv_gaps.
7030         Add prototypes for _dl_next_tls_modid and _dl_determine_tlsoffset.
7031         * elf/dl-load.c (_dl_map_object_from_fd): Store alignment requirement
7032         along with the other info in the link map.  Change queueing of init
7033         images for double linked list.  Use _dl_next_tls_modid to compute
7034         l_tls_modid.
7035         * elf/rtld.c (_dl_start_final): Store alignment requirement
7036         along with the other info in rtld map and executable map.
7037         (dl_main): Add ld.so to the init image list if necessary.  Compute
7038         final module ID with _dl_next_tls_modid.
7039         * include/link.h (struct link_map): Add l_tls_previmage and
7040         l_tls_align.
7041         * eld/dl-support.c: Define _dl_tls_max_dtv_idx and _dl_tls_dtv_gaps.
7042         * sysdeps/i386/elf/Versions: New file.
7043         * sysdeps/generic/dl-tls.c: New file.
7044         * sysdeps/generic/dl-tls.h: New file.
7045         * sysdeps/i386/dl-tls.h: New file.
7047 2002-02-06  Roland McGrath  <roland@frob.com>
7049         * sysdeps/unix/sysv/linux/netinet/ip.h: Moved to ...
7050         * sysdeps/generic/netinet/ip.h: ... here, replacing old file.
7052 2002-01-05  Roland McGrath  <roland@frob.com>
7054         * sysdeps/mach/configure.in: New file.
7055         * sysdeps/mach/configure: New generated file.
7057         * mach/Makefile (user-interfaces): Remove default_pager_helper.
7058         It has never been used by anything.
7060 2002-02-06  H.J. Lu  <hjl@gnu.org>
7062         * sysdeps/mips/elf/ldsodefs.h: Make sure the right <ldsodefs.h>
7063         is included.
7065 2002-02-06  Ulrich Drepper  <drepper@redhat.com>
7067         * sysdeps/unix/sysv/linux/bits/stat.h (struct stat): Add
7068         attribute((packed)) to counter stupid people misusing gcc options.
7069         (struct stat64): Likewise.
7071 2002-02-05  Ulrich Drepper  <drepper@redhat.com>
7073         * elf/rtld.c (dl_main): Correct indentation.  Use bool as type for
7074         the variables which are used as booleans.
7076 2002-02-06  Andreas Jaeger  <aj@suse.de>
7078         * include/libc-symbols.h (INTUSE): Renamed from INT.
7079         * elf/dl-deps.c: Change users.
7080         * sysdeps/generic/dl-sysdep.c: Likewise.
7081         * sysdeps/generic/dl-cache.c: Likewise.
7082         * elf/dl-reloc.c: Likewise.
7083         * elf/rtld.c: Likewise.
7084         * elf/dl-version.c: Likewise.
7085         * elf/dl-load.c: Likewise.
7086         * elf/dl-dst.h: Likewise.
7087         * elf/dl-init.c: Likewise.
7088         * elf/dl-error.c: Likewise.
7089         * elf/dl-fini.c: Likewise.
7090         * elf/dl-runtime.c: Likewise.
7091         * elf/do-lookup.h: Likewise.
7093         * stdio-common/_itoa.h: Undefine SPECIAL to avoid duplicate
7094         definition.
7095         * stdio-common/_itowa.h: Likewise.
7097 2002-02-05  Ulrich Drepper  <drepper@redhat.com>
7099         * elf/dl-minimal.c: Define _itoa_lower_digits.
7101         * elf/dynamic-link.h (elf_get_dynamic_info): ld.so can have
7102         DT_FLAGS set.
7104         * elf/dl-load.c (_dl_map_object_from_fd): Prevent dynamically
7105         loading modules with the DF_STATIC_TLS flag set.
7106         * elf/dynamic-link.h (elf_get_dynamic_info): Initialize l_flags
7107         element.
7108         * include/link.h (struct link_map): Add l_flags field.
7109         * elf/elf.h (DF_STATIC_TLS): New definition.
7111         * dlfcn/Makefile: Add rules to build and run bug-dlopen1.
7112         * dlfcn/bug-dlopen1.c: New file.  By Bruno Haible.
7114         * elf/rtld.c (process_dl_debug): Correct printing help message.
7115         * elf/dl-misc.c (_dl_debug_vdprintf): Implement precision handling
7116         for %s.
7118         * inet/getnetgrent_r.c (innetgr): Add int* parameter to getfct
7119         definition and pass &errno in use of this variable.
7120         Reported by Simon Wilkinson <simon@sxw.org.uk> [PR libc/2911].
7122 2002-02-04  Andreas Schwab  <schwab@suse.de>
7124         * locale/programs/localedef.h (WITH_CUR_LOCALE): Define.
7125         * locale/programs/charmap-dir.c: Wrap calls that output messages
7126         with WITH_CUR_LOCALE.  Include "localedef.h" first.
7127         * locale/programs/charmap.c: Likewise.
7128         * locale/programs/ld-address.c: Likewise.
7129         * locale/programs/ld-collate.c: Likewise.
7130         * locale/programs/ld-ctype.c: Likewise.
7131         * locale/programs/ld-identification.c: Likewise.
7132         * locale/programs/ld-measurement.c: Likewise.
7133         * locale/programs/ld-messages.c: Likewise.
7134         * locale/programs/ld-monetary.c: Likewise.
7135         * locale/programs/ld-name.c: Likewise.
7136         * locale/programs/ld-numeric.c: Likewise.
7137         * locale/programs/ld-paper.c: Likewise.
7138         * locale/programs/ld-telephone.c: Likewise.
7139         * locale/programs/ld-time.c: Likewise.
7140         * locale/programs/linereader.c: Likewise.
7141         * locale/programs/linereader.h: Likewise.
7142         * locale/programs/localedef.c: Likewise.
7143         * locale/programs/locfile.c: Likewise.
7144         * locale/programs/repertoire.c: Likewise.
7146 2002-02-05  Ulrich Drepper  <drepper@redhat.com>
7148         * elf/rtld.c (_dl_start_final): Determine load address to locate
7149         ehdr with GL(dl_rtld_map).l_map_start.
7151         * po/ca.po: Update from translation team.
7153         * elf/rtld.c (dl_main): Read PT_TLS entry of the executable.
7154         * elf/dl-load.c (_dl_map_object_from_fd): Handle PT_TLS program
7155         header entry.
7156         * sysdeps/generic/ldsodefs.h (struct rtld_global): Add
7157         _dl_tls_module_cnt.
7158         * elf/dl-support.c: Define _dl_initimage_list and _dl_tls_module_cnt.
7160 2002-02-04  Ulrich Drepper  <drepper@redhat.com>
7162         * elf/rtld.c (_dl_start): Fill TLS values in link map for rtld.
7163         * include/link.h (struct link_map): Add various members for TLS
7164         information.
7165         * sysdeps/generic/ldsodefs.h (struct rtld_global): Remove
7166         _rtld_tlsoffset, add _dl_initimage_list.
7167         * sysdeps/i386/dl-lookupcfg.h: New file.
7168         * sysdeps/i386/dl-machine.h (elf_machine_rel): Implement missing
7169         TLS relocation.  When using TLS we now use RESOLVE_MAP.
7170         (elf_machine_rela): Use RESOLVE_MAP instead of RESOLVE_MAP if TLS
7171         is used.
7173         * sysdeps/generic/dl-cache.c (_dl_cache_libcmp): Mark as possibly
7174         unused.
7176         * elf/rtld.c (_dl_start_final): Allocate TLS and initialize
7177         thread-pointer as soon as possible.
7178         * sysdeps/generic/ldsodefs.h: Include <tls.h>.  Define first TLS
7179         elements in rtld_global.
7180         * sysdeps/generic/tls.h: New file.
7181         * elf/Makefile (distribute): Add tls.h.
7182         * sysdeps/i386/dl-machine.h (elf_machine_rel): Add support for TLS
7183         relocations.  Not complete yet.
7185         * resolv/resolv.h: Allow user to define __need_res_state and only
7186         define __res_start structure then.
7187         * include/resolv.h: Only declare functions if _RESOLV_H_ is defined.
7189         * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Move
7190         dl_cpuclock_offset initialization to _dl_start_final.
7191         (_dl_show_auxv): Avoid unnecessary sign extension.
7192         * elf/rtld.c (_dl_start_final): Initialize dl_cpuclock_offset.
7194 2002-02-03  Ulrich Drepper  <drepper@redhat.com>
7196         * config.h.in: Add HAVE_TLS_SUPPORT.
7197         * sysdeps/i386/elf/configure.in: New file.
7199 2002-02-03  Andreas Schwab  <schwab@suse.de>
7201         * sysdeps/posix/readv.c: Use ssize_t for bytes_read.
7202         * sysdeps/posix/writev.c: Use ssize_t for bytes_written.  Fix comment.
7204 2002-02-03  Thorsten Kukuk  <kukuk@suse.de>
7206         * sysdeps/posix/writev.c: Check for ssize_t overflow, don't use
7207         alloca if the memory reqirements are too high.
7209 2002-02-03  Ulrich Drepper  <drepper@redhat.com>
7211         * elf/dl-load.c (decompose_rpath): Avoid using strstr.
7212         * elf/dl-minimal.c (_strerror_r): Use _itoa instead of _itoa_word since
7213         the former is available anyway and speed isn't important here.
7214         * elf/dl-misc.c (_dl_debug_vdprintf): Likewise.
7215         * elf/dl-version.c (match_symbol): Likewise.
7216         (_dl_check_map_versions): Likewise.
7217         * elf/rtld.c (process_envvars): Likewise.
7218         (print_statistics): Likewise.
7219         * sysdeps/generic/dl-sysdep.c (_dl_show_auxv): Likewise.
7220         * elf/dl-minimal.c (_itoa): Always define it.  Make it work for all
7221         bases.  Add assert to catch uses of unimplemented features.
7222         (__strsep): Add assert to catch uses of unimplemented features.
7223         * elf/dl-object.c (_dl_new_object): Don't use rawmemchr.  Use strchr
7224         and avoid inline optimization.
7225         * elf/rtld.c (process_envvars): Likewise.
7226         * elf/dl-open.c: Don't include <stdio-common/_itoa.h>.
7227         * elf/dl-profile.c (_dl_start_profile): Help compiler to avoid ffs.
7228         * elf/rtld.c (dl_main): Avoid strsep inline optimization.
7230 2002-02-02  Ulrich Drepper  <drepper@redhat.com>
7232         * stdio-common/_itoa.h: Minor simplifications of the code.
7233         * stdio-common/_itoa.c: Likewise.
7235         * elf/dl-reloc.c (_dl_relocate_object): Use _dl_debug_printf
7236         instead of _dl_printf for debugging info output.
7238         * manual/examples/mkfsock.c (make_named_socket): Make sure name is
7239         always NUL-terminated.  Patch by Chris D. Sloan <cds@cs.hmc.edu>.
7241 2002-02-01  H.J. Lu  <hjl@gnu.org>
7243         * sysdeps/mips/atomicity.h (exchange_and_add): Use branch likely.
7244         (atomic_add): Likewise.
7245         (compare_and_swap): Return 0 only when failed to compare. Use
7246         branch likely.
7248         * sysdeps/unix/sysv/linux/mips/sys/tas.h (_test_and_set): Use
7249         branch likely.
7251 2002-02-03  kaz Kojima  <kkojima@rr.iij4u.or.jp>
7253         * sysdeps/sh/dl-machine.h (elf_machine_rela): Fix a typo.
7255 2002-02-02  Ulrich Drepper  <drepper@redhat.com>
7257         * elf/dl-minimal.c (__strsep): New minimal implementation.
7259 2002-02-02  Paul Eggert  <eggert@twinsun.com>
7261         * src/mktime.c [defined DEBUG && STDC_HEADERS]: Include <string.h>.
7262         (__mktime_internal): If no tm_isdst is requested, prefer solutions
7263         with tm_isdst > 0 when the requested time falls within a
7264         spring-forward gap [PR libc/2894].
7266 2002-02-03  Andreas Schwab  <schwab@suse.de>
7268         * stdio-common/tst-rndseek.c: Increase timeout.
7270 2002-02-02  Ulrich Drepper  <drepper@redhat.com>
7272         Change ld.so to not use functions which are exported.  One cannot
7273         interpose them anyway.  Use INT() to mark uses, INTDEF() to mark
7274         definitions.
7275         * include/libc-symbols.h: Define INT and INTDEF.
7276         * sysdeps/generic/ldsodefs.h: Declare _dl_debug_printf_internal,
7277         _dl_signal_error_internal, _dl_map_object_internal,
7278         _dl_map_object_deps_internal, _dl_lookup_symbol_internal,
7279         _dl_lookup_versioned_symbol_internal,
7280         _dl_relocate_object_internal, _dl_debug_state_internal,
7281         _dl_start_profile_internal, and _dl_unload_cache_internal.
7282         * include/dlfcn.h: Declare _dl_catch_error_internal.
7283         * elf/rtld.c: Use INT for calls to any of the *_internal functions
7284         above.  Add INTDEF to function definitions.
7285         * elf/dl-debug.c: Likewise.
7286         * elf/dl-deps.c: Likewise.
7287         * elf/dl-dst.h: Likewise.
7288         * elf/dl-error.c: Likewise.
7289         * elf/dl-fini.c: Likewise.
7290         * elf/dl-init.c: Likewise.
7291         * elf/dl-load.c: Likewise.
7292         * elf/dl-lookup.c: Likewise.
7293         * elf/dl-misc.c: Likewise.
7294         * elf/dl-open.c: Likewise.
7295         * elf/dl-profile.c: Likewise.
7296         * elf/dl-reloc.c: Likewise.
7297         * elf/dl-runtime.c: Likewise.
7298         * elf/dl-version.c: Likewise.
7299         * elf/do-lookup.h: Likewise.
7300         * sysdeps/generic/dl-cache.c: Likewise.
7301         * sysdeps/generic/dl-sysdep.c: Likewise.
7302         * sysdeps/alpha/dl-machine.h (RTLD_START): Call _dl_init_internal
7303         instead of _dl_init.
7304         * sysdeps/arm/dl-machine.h: Likewise.
7305         * sysdeps/cris/dl-machine.h: Likewise.
7306         * sysdeps/hppa/dl-machine.h: Likewise.
7307         * sysdeps/i386/dl-machine.h: Likewise.
7308         * sysdeps/ia64/dl-machine.h: Likewise.
7309         * sysdeps/m68k/dl-machine.h: Likewise.
7310         * sysdeps/mips/dl-machine.h: Likewise.
7311         * sysdeps/mips/mips64/dl-machine.h: Likewise.
7312         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
7313         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
7314         * sysdeps/sh/dl-machine.h: Likewise.
7315         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
7316         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
7317         * sysdeps/x86_64/dl-machine.h: Likewise.
7318         * sysdeps/powerpc/dl-start.S (_dl_start_user): Likewise.
7320         * elf/Versions: Don't export _dl_check_all_versions, _dl_sysdep_start,
7321         and _dl_debug_initialize.
7323         * elf/dl-object.c (_dl_new_object): Avoid using strrchr.  We have
7324         more information.
7325         * elf/rtld.c (dl_main): Avoid strrchr.
7326         * sysdeps/unix/sysv/linux/dl-origin.c (_dl_get_origin): Use the
7327         result of readlink.  Search from the back for '/'.
7329         * elf/dl-profile.c (_dl_start_profile): Help the compiler to avoid
7330         strncpy if possible.
7332         * sysdeps/generic/dl-environ.c (unsetenv): Optimize.  Don't use
7333         strncmp.
7334         * elf/dl-load.c (is_dst): Optimize.  Don't call strncmp twice.
7335         * elf/rtld.c (process_dl_debug): Optimize. Avoid calls to strncmp,
7336         strspn, and strcspn.
7337         (process_envvars): Don't use strcspn.
7339         * elf/dl-load.c (_dl_dst_count): Fix possible endless loop.
7340         (_dl_dst_substitute): Likewise.
7342 2002-02-01  Ulrich Drepper  <drepper@redhat.com>
7344         * elf/do-rel.h (elf_dynamic_do_rel): Help the compiler recognize
7345         code which is never used when relocating ld.so itself.
7347         * elf/dynamic-link.h (elf_get_dynamic_info): Optimize a bit for
7348         starting ld.so itself.  Move l_addr variable initialization closer
7349         to use.
7350         (_ELF_DYNAMIC_DO_RELOC): Help the compiler optimize a bit.
7352 2002-02-01  Jakub Jelinek  <jakub@redhat.com>
7354         * Versions.def (libc): Add GLIBC_PRIVATE.
7355         (libdb, libnss_db, libdb1): Remove.
7356         (libnss_compat, libnss_dns, libnss_files, libnss_hesiod, libnss_nis,
7357         libnss_nisplus): Move all symbols to GLIBC_PRIVATE.
7358         (libpthread): Add GLIBC_PRIVATE.
7359         (libresolv): Likewise, remove GLIBC_2.1.
7360         (ld): Add GLIBC_PRIVATE, remove GLIBC_2.1.1, GLIBC_2.2, GLIBC_2.2.1,
7361         GLIBC_2.2.3, GLIBC_2.3.
7362         * catgets/Versions (__open_catalog): Move to GLIBC_PRIVATE.
7363         * elf/Versions (_dl_open, _dl_close, _dl_addr, _dl_init_first,
7364         _dl_sym, _dl_vsym): Likewise.
7365         (__libc_enable_secure, __libc_stack_end, _dl_argv, _dl_catch_error,
7366         _dl_check_all_versions, _dl_check_map_versions, _dl_debug_initialize,
7367         _dl_debug_printf, _dl_debug_state, _dl_dst_count, _dl_dst_substitute,
7368         _dl_init, _dl_lookup_symbol, _dl_lookup_symbol_skip,
7369         _dl_lookup_versioned_symbol, _dl_lookup_versioned_symbol_skip,
7370         _dl_map_object, _dl_map_object_deps, _dl_out_of_memory,
7371         _dl_relocate_object, _dl_signal_error, _dl_start_profile,
7372         _dl_starting_up, _dl_sysdep_start, _dl_unload_cache, _rtld_global):
7373         Likewise.
7374         (_dl_object_relocation_scope): Remove.
7375         * hesiod/Versions: Move all symbols to GLIBC_PRIVATE.
7376         * iconv/Versions (__gconv_alias_db, __gconv_modules_db,
7377         __gconv_cache): Move to GLIBC_PRIVATE.
7378         * inet/Versions (__internal_endnetgrent, __internal_getnetgrent_r,
7379         __internal_setnetgrent): Likewise.
7380         * io/Versions (__libc_open, __libc_close, __libc_read, __libc_write,
7381         __libc_lseek, __libc_fcntl, __libc_open64, __libc_lseek64): Likewise.
7382         * locale/Versions (__collate_element_hash, __collate_element_strings,
7383         __collate_symbol_classes, __collate_symbol_hash,
7384         __collate_symbol_strings, _nl_current_LC_COLLATE,
7385         _nl_current_LC_CTYPE): Likewise.
7386         * misc/Versions (__libc_fsync, __libc_msync): Likewise.
7387         * nis/Versions (libnss_compat): Move all symbols to GLIBC_PRIVATE.
7388         (libnss_nis, libnss_nisplus): Likewise.
7389         * nss/Versions (_nss_files_parse_grent, _nss_files_parse_pwent,
7390         _nss_files_parse_spent): Move to GLIBC_PRIVATE.
7391         (libnss_files): Move all symbols to GLIBC_PRIVATE.
7392         * posix/Versions (__libc_wait, __libc_waitpid, __libc_pause,
7393         __libc_nanosleep, __libc_fork, __libc_pread, __libc_pread64,
7394         __libc_pwrite, __libc_pwrite64): Move to GLIBC_PRIVATE.
7395         * resolv/Versions (__gai_sigqueue, __ns_name_unpack, __ns_name_ntop,
7396         __ns_get16, __ns_samename): Likewise.
7397         (libnss_dns): Move all symbols to GLIBC_PRIVATE.
7398         * setjmp/Versions (__libc_longjmp, __libc_siglongjmp): Move to
7399         GLIBC_PRIVATE.
7400         * socket/Versions (__libc_accept, __libc_send, __libc_recvfrom,
7401         __libc_recvmsg, __libc_sendmsg, __libc_recv, __libc_sendto,
7402         __libc_connect): Likewise.
7403         * stdio-common/Versions (_itoa_lower_digits, _itoa_upper_digits):
7404         Likewise.
7405         * stdlib/Versions (__libc_system): Likewise.
7406         * sunrpc/Versions (__rpc_thread_destroy): Likewise.
7407         * sysdeps/hppa/Versions: Move all symbols to GLIBC_PRIVATE.
7408         * sysdeps/ia64/fpu/Versions: Likewise.
7409         * sysdeps/ia64/Versions: Likewise.
7410         * sysdeps/unix/sysv/linux/ia64/Versions: Likewise.
7411         * sysdeps/unix/sysv/linux/i386/Versions (__modify_ldt): Move
7412         to GLIBC_PRIVATE.
7413         * sysdeps/unix/sysv/linux/x86_64/Versions (__modify_ldt): Likewise.
7414         * sysdeps/unix/sysv/linux/Versions (__syscall_rt_sigqueueinfo,
7415         __libc_sigaction): Likewise.
7416         * termios/Versions (__libc_tcdrain): Likewise.
7418         * misc/sys/cdefs (__attribute_noinline__): Define.
7419         * elf/dl-lookup.c (_dl_do_lookup, _dl_do_lookup_versioned): Add
7420         __attribute_noinline__.
7422         * elf/Makefile (rtld-routines): Add dl-xstat64, dl-fxstat64.
7423         * elf/dl-xstat64.c: New file.
7424         * elf/dl-fxstat64.c: New file.
7425         * sysdeps/unix/sysv/linux/fxstat64.c: If RTLD_STAT64 is defined,
7426         don't export __fxstat64 at multiple versions.
7427         * sysdeps/unix/sysv/linux/lxstat64.c: Similarly.
7428         * sysdeps/unix/sysv/linux/xstat64.c: Similarly.
7430 2002-01-18  Isamu Hasegawa  <isamu@yamato.ibm.com>
7432         * locale/program/ld-collate.c (collate_finish): Assign a wide
7433         char collation sequence value to multi character collating
7434         elements, and avoid over writing by non-character elements.
7436 2002-02-01  Ulrich Drepper  <drepper@redhat.com>
7438         * elf/Makefile (distribute): Add dl-procinfo.c.
7439         * sysdeps/unix/sysv/linux/i386/Dist: Remove dl-procinfo.c.
7440         * sysdeps/unix/sysv/linux/arm/Dist: Likewise.
7442 2002-02-01  Jakub Jelinek  <jakub@redhat.com>
7444         * sysdeps/generic/ldsodefs.h (_dl_load_lock): Remove duplicate
7445         definition.
7446         * sysdeps/ia64/hp-timing.h: Move _dl_hp_timing_overhead in
7447         _rtld_global struct.
7448         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h: Likewise.
7449         * sysdeps/sparc/sparc64/hp-timing.c: Likewise.
7450         * sysdeps/sparc/sparc64/hp-timing.h: Likewise.
7451         * sysdeps/sparc/sparc64/Makefile: Make hp-timing static only.
7452         * sysdeps/unix/sysv/aix/init-first.c (_dl_fpu_control,
7453         _dl_fpu_control_set): Remove unused externs.
7454         * sysdeps/unix/sysv/linux/sparc/sparc32/dl-procinfo.c: New file.
7455         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-procinfo.c: New file.
7456         * sysdeps/unix/sysv/linux/sparc/sparc32/dl-procinfo.h: Move procinfo
7457         related variables in _rtld_global struct.
7458         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-procinfo.h: Likewise.
7459         * sysdeps/unix/sysv/linux/init-first.c (_dl_fpu_control_set): Remove
7460         unused extern.
7462 2002-02-01  Ulrich Drepper  <drepper@redhat.com>
7464         * sysdeps/generic/dl-procinfo.c: New file.
7466 2002-02-01  Andreas Schwab  <schwab@suse.de>
7468         * sysdeps/m68k/dl-machine.h: Don't use multi-line string literals.
7470 2002-02-01  Ulrich Drepper  <drepper@redhat.com>
7472         * elf/rtld.c (_dl_start): Mark as internal_function.
7473         * sysdeps/i386/dl-machine.h (RTLD_START): Pass parameter for _dl_start
7474         in register.
7475         (elf_machine_rel): Cleanup and minor optimization for RTLD_BOOTSTRAP.
7476         General pretty printing.
7478 2002-01-31  Ulrich Drepper  <drepper@redhat.com>
7480         * elf/dl-minimal.c: Define _itoa for 32-bit machines with HP timing.
7481         * elf/dl-reloc.c: Pretty printing.
7482         * sysdeps/generic/ldsodefs.h: Move _dl_hp_timing_overhead and
7483         procinfo-related variables in rtld_global struct.
7484         * elf/dl-support.c: Likewise.
7485         * elf/rtld.c: Likewise.
7486         * sysdeps/i386/i686/Makefile: Likewise.
7487         * sysdeps/i386/i686/hp-timing.c: Likewise.
7488         * sysdeps/i386/i686/hp-timing.h: Likewise.
7489         * sysdeps/ia64/Makefile: Likewise.
7490         * sysdeps/ia64/hp-timing.c: Likewise.
7491         * sysdeps/sparc/sparc32/sparcv9/Makefile: Likewise.
7492         * sysdeps/sparc/sparc32/sparcv9/hp-timing.c: Likewise.
7493         * sysdeps/unix/sysv/linux/arm/dl-procinfo.c: Likewise.
7494         * sysdeps/unix/sysv/linux/arm/dl-procinfo.h: Likewise.
7495         * sysdeps/unix/sysv/linux/i386/Makefile: Likewise.
7496         * sysdeps/unix/sysv/linux/i386/dl-procinfo.c: Likewise.
7497         * sysdeps/unix/sysv/linux/i386/dl-procinfo.h: Likewise.
7498         * sysdeps/x86_64/Makefile: Likewise.
7500         * sysdeps/generic/ldsodefs.h: Add _dl_load_lock, _dl_lazy,
7501         _dl_dynamic_weak, _dl_fpu_control, _dl_cpuclock_offset, and
7502         _dl_debug_fd to rtld_global.
7503         * elf/Versions: Likewise.
7504         * elf/dl-close.c: Likewise.
7505         * elf/dl-iteratephdr.c: Likewise.
7506         * elf/dl-lookup.c: Likewise.
7507         * elf/dl-misc.c: Likewise.
7508         * elf/dl-open.c: Likewise.
7509         * elf/dl-support.c: Likewise.
7510         * elf/do-lookup.h: Likewise.
7511         * elf/rtld.c: Likewise.
7512         * sysdeps/generic/dl-cache.c: Likewise.
7513         * sysdeps/generic/dl-sysdep.c: Likewise.
7514         * sysdeps/ia64/Versions: Likewise.
7515         * sysdeps/unix/clock_gettime.c: Likewise.
7516         * sysdeps/unix/clock_settime.c: Likewise.
7517         * sysdeps/unix/sysv/linux/init-first.c: Likewise.
7518         * sysdeps/sparc/Versions: Removed.
7519         * sysdeps/i386/i686/Versions : Removed.
7520         * sysdeps/x86_64/Versions: Removed.
7521         * configure.in: Define HAVE_PROTECTED if .protected is available.
7522         * config.h.in: Add entry for HAVE_PROTECTED.
7524 2002-01-31  Jakub Jelinek  <jakub@redhat.com.
7526         * sysdeps/alpha/dl-machine.h: Move global variables for SHARED
7527         code in struct _rtld_global.  Export this struct, remove all
7528         exports for the signal variables.
7529         * sysdeps/arm/dl-machine: Likewise.
7530         * sysdeps/generic/dl-origin: Likewise.
7531         * sysdeps/generic/dl-sysdep: Likewise.
7532         * sysdeps/generic/dl-cache: Likewise.
7533         * sysdeps/hppa/dl-fptr: Likewise.
7534         * sysdeps/hppa/dl-machine: Likewise.
7535         * sysdeps/cris/dl-machine: Likewise.
7536         * sysdeps/i386/dl-machine: Likewise.
7537         * sysdeps/ia64/dl-machine: Likewise.
7538         * sysdeps/m68k/dl-machine: Likewise.
7539         * sysdeps/mach/hurd/dl-sysdep: Likewise.
7540         * sysdeps/mips/mips64/dl-machine: Likewise.
7541         * sysdeps/mips/dl-machine: Likewise.
7542         * sysdeps/powerpc/elf/libc-start: Likewise.
7543         * sysdeps/powerpc/dl-machine: Likewise.
7544         * sysdeps/powerpc/dl-start: Likewise.
7545         * sysdeps/sparc/sparc32/dl-machine: Likewise.
7546         * sysdeps/sparc/sparc64/dl-machine: Likewise.
7547         * sysdeps/sh/dl-machine: Likewise.
7548         * sysdeps/s390/s390-32/dl-machine: Likewise.
7549         * sysdeps/s390/s390-64/dl-machine: Likewise.
7550         * sysdeps/unix/sysv/aix/libc-start: Likewise.
7551         * sysdeps/unix/sysv/aix/start-libc: Likewise.
7552         * sysdeps/unix/sysv/linux/ia64/dl-static: Likewise.
7553         * sysdeps/unix/sysv/linux/m68k/getpagesize: Likewise.
7554         * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize: Likewise.
7555         * sysdeps/x86_64/dl-machine: Likewise.
7557 2002-01-31  Ulrich Drepper  <drepper@redhat.com>
7559         * sysdeps/posix/readv.c: Don't use alloca if the memory requirements
7560         are too high.
7562 2002-01-31  Andreas Schwab  <schwab@suse.de>
7564         * sysdeps/posix/readv.c: Check for ssize_t overflow.
7566 2002-01-31  Andreas Schwab  <schwab@suse.de>
7568         * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Fix leftover
7569         reference to _dl_pagesize.
7571 2002-01-30  Ulrich Drepper  <drepper@redhat.com>
7573         * Versions.def [ld]: Add GLIBC_2.3.
7574         * elf/dl-addr.c: Move global variables for SHARED code in struct
7575         _rtld_global.  Export this struct, remove all exports for the
7576         signal variables.
7577         * elf/dl-close.c: Likewise.
7578         * elf/dl-conflict.c: Likewise.
7579         * elf/dl-debug.c: Likewise.
7580         * elf/dl-deps.c: Likewise.
7581         * elf/dl-dst.h: Likewise.
7582         * elf/dl-error.c: Likewise.
7583         * elf/dl-fini.c: Likewise.
7584         * elf/dl-init.c: Likewise.
7585         * elf/dl-iteratephdr.c: Likewise.
7586         * elf/dl-libc.c: Likewise.
7587         * elf/dl-load.c: Likewise.
7588         * elf/dl-lookup.c: Likewise.
7589         * elf/dl-minimal.c: Likewise.
7590         * elf/dl-object.c: Likewise.
7591         * elf/dl-open.c: Likewise.
7592         * elf/dl-profile.c: Likewise.
7593         * elf/dl-profstub.c: Likewise.
7594         * elf/dl-reloc.c: Likewise.
7595         * elf/dl-runtime.c: Likewise.
7596         * elf/dl-support.c: Likewise.
7597         * elf/dl-sym.c: Likewise.
7598         * elf/dl-version.c: Likewise.
7599         * elf/do-lookup.h: Likewise.
7600         * elf/do-rel.h: Likewise.
7601         * elf/dynamic-link.h: Likewise.
7602         * elf/rtld.c: Likewise.
7603         * sysdeps/generic/dl-cache.c: Likewise.
7604         * sysdeps/generic/dl-sysdep.c: Likewise.
7605         * sysdeps/generic/ldsodefs.h: Likewise.
7606         * sysdeps/generic/libc-start.c: Likewise.
7607         * sysdeps/i386/dl-machine.h: Likewise.
7608         * sysdeps/ia64/dl-fptr.c: Likewise.
7609         * sysdeps/ia64/dl-machine.h: Likewise.
7610         * sysdeps/unix/sysv/linux/dl-librecon.h: Likewise.
7611         * sysdeps/unix/sysv/linux/dl-origin.c: Likewise.
7612         * sysdeps/unix/sysv/linux/dl-osinfo.h: Likewise.
7613         * sysdeps/unix/sysv/linux/getclktck.c: Likewise.
7614         * sysdeps/unix/sysv/linux/getpagesize.c: Likewise.
7615         * sysdeps/unix/sysv/linux/i386/dl-librecon.h: Likewise.
7616         * sysdeps/unix/sysv/linux/ia64/dl-static.c: Likewise.
7617         * sysdeps/unix/sysv/linux/ia64/getpagesize.c: Likewise.
7619 2002-01-29  Ulrich Drepper  <drepper@redhat.com>
7621         * sysdeps/ia64/dl-lookupcfg.h (DL_AUTO_FUNCTION_ADDRESS): Add cast
7622         to avoid warning
7623         (DL_STATIC_FUNCTION_ADDRESS): Likewise.
7625         * elf/dl-lookup.c: Only define or handle _dl_num_relocations for the
7626         SHARED version.
7627         * elf/dl-reloc.c: Likewise for _dl_num_cache_relocations.
7629         * elf/rtld.c (_dl_start): Use __builtin_memset if available.
7631 2002-01-29  Ben Collins  <bcollins@debian.org>
7633         * string/bits/string2.h (__mempcpy): Protect size arg for
7634         addition when using __builtin_memcpy.
7636 2002-01-29  Ulrich Drepper  <drepper@redhat.com>
7638         * stdlib/Makefile (tests): Add tst-qsort.
7639         * stdlib/tst-qsort.c: New file.  Written by Paul Eggert.
7641         * manual/signal.texi (Process Signal Mask): Document that
7642         pthread_sigmask, not sigprocmask, must be used in MT programs.
7643         Patch by Bertold Kolics <Bertold.Kolics@Sun.COM>.
7645         * misc/hsearch_r.c (hsearch_r): Don't insert anything if entry is
7646         found.
7647         * misc/Makefile (tests): Add tst-hsearch.
7648         * misc/tst-hsearch.c: New file.
7650 2002-01-18  Wolfram Gloger  <wg@malloc.de>
7652         * malloc/malloc.c: Rewrite, adapted from Doug Lea's malloc-2.7.0.c.
7653         * malloc/malloc.h: Likewise.
7654         * malloc/thread-m.h: Spinlock definitions for x86/x86_64.
7655         * malloc/arena.c: New file.
7656         * malloc/hooks.c: New file.
7657         * malloc/tst-mallocstate.c: New file.
7658         * malloc/Makefile: Add new testcase tst-mallocstate.
7659         Add arena.c and hooks.c to distribute.  Fix commented CPPFLAGS.
7661 2002-01-28  Ulrich Drepper  <drepper@redhat.com>
7663         * stdlib/msort.c: Remove last patch.  The optimization violates the
7664         same rule which qsort.c had problems with.
7666 2002-01-27  Paul Eggert  <eggert@twinsun.com>
7668         * stdlib/qsort.c (_quicksort): Do not apply the comparison function
7669         to a pivot element that lies outside the array to be sorted, as
7670         ISO C99 requires that the comparison function be called only with
7671         addresses of array elements [PR libc/2880].
7673 2002-01-28  Ulrich Drepper  <drepper@redhat.com>
7675         * elf/dl-load.c (_dl_map_object): Remove incorrect optimization
7676         for SHARED code.  Reported by Ben Collins <bcollins@debian.org>.
7678         * timezone/asia: Update from tzdata2002b.
7679         * timezone/australasia: Likewise.
7680         * timezone/backward: Likewise.
7681         * timezone/europe: Likewise.
7682         * timezone/leapseconds: Likewise.
7683         * timezone/iso3166.tab: Likewise.
7684         * timezone/zone.tab: Likewise.
7686 2002-01-23  Richard Henderson  <rth@redhat.com>
7688         * sysdeps/alpha/Makefile (pic-ccflag): New variable.
7690 2002-01-28  Ulrich Drepper  <drepper@redhat.com>
7692         * string/strxfrm.c: Allocate one more byte for rulearr and clear
7693         this element [PR libc/2855].
7695         * string/strcoll.c: Handle zero-length arguments specially
7696         [PR libc/2856].
7698 2002-01-23  Jakub Jelinek  <jakub@redhat.com>
7700         * string/bits/string2.h (__mempcpy): For gcc 3.0+, don't use
7701         __mempcpy_small but instead use __builtin_memcpy ( , , n) + n for
7702         short lengths and constant src.
7703         (strcpy): Don't optimize for gcc 3.0+.
7704         (__stpcpy): For gcc 3.0+, don't use
7705         __stpcpy_small but instead use __builtin_strcpy (, src) + strlen (src)
7706         for short string literal src.
7708 2002-01-23  Jeroen Dobbelaere  <jeroen.dobbelaere@acunia.com>
7710         * sysdeps/unix/sysv/linux/configure.in (libc_cv_gcc_unwind_find_fde):
7711         Set for arm, too.
7713 2001-01-22  Paul Eggert  <eggert@twinsun.com>
7715         * manual/llio.texi (Linked Channels, Cleaning Streams):
7716         Make it clearer that a just-opened input stream might need cleaning.
7718 2002-01-21  H.J. Lu  <hjl@gnu.org>
7720         * sysdeps/mips/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
7721         Don't use label at end of compound statement.
7723 2002-01-28  Stephen L Moshier  <moshier@mediaone.net>
7725         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (__ieee754_lgammal_r):
7726         Remove test for negative integer arg; sin_pi does it correctly.
7728 2002-01-20  Ulrich Drepper  <drepper@redhat.com>
7730         * nscd/Makefile (distribute): Filter out xmalloc.c.
7732 2002-01-19  Ulrich Drepper  <drepper@redhat.com>
7734         * libio/fileops.c (_IO_file_underflow_mmap): Don't define as static.
7735         Set offset if read end wasn't the buffer end.
7736         (_IO_file_seekoff_mmap): New function.
7737         (_IO_file_xsgetn_mmap): New function.
7738         (_IO_file_jumps_mmap): Use the two new functions.
7739         * libio/wfileops.c (_IO_wfile_underflow_mmap): Handle end read buffer
7740         != end buffer.
7741         * libio/libioP.h: Declare _IO_file_seekoff_mmap and
7742         _IO_file_underflow_mmap.
7743         * libio/iofopen.c: Don't position file descriptor at end of file.
7744         * libio/tst-widetext.c: Improve error messages.
7745         * stdio-common/tst-rndseek.c: Likewise.
7747 2002-01-18  Ulrich Drepper  <drepper@redhat.com>
7749         * sysdeps/unix/sysv/linux/bits/statvfs.h: Avoid warning about comma at
7750         end of enum for !_GNU_SOURCE.
7751         * sysdeps/unix/sysv/linux/alpha/bits/statvfs.h: Likewise.
7752         * sysdeps/unix/sysv/linux/ia64/bits/statvfs.h: Likewise.
7753         * sysdeps/unix/sysv/linux/sparc/bits/statvfs.h: Likewise.
7754         * sysdeps/mach/hurd/bits/statvfs.h: Don't define non-standard ST_*
7755         values unless _GNU_SOURCE.
7757         * iconvdata/tcvn5712-1.c: Minor cleanups.
7759 2002-01-18  Andreas Schwab  <schwab@suse.de>
7761         * sysdeps/unix/sysv/linux/configure.in
7762         (libc_cv_gcc_unwind_find_fde): Set for m68k, too.
7764 2002-01-16  Roger Sayle  <roger@eyesopen.com>
7766         * stdlib/msort.c (msort_with_tmp): Replace implementation with
7767         more efficient "Towers of Hanoi" mergesort.
7768         (hanoi_sort, hanoi_sort_int, hanoi_sort_long): New functions,
7769         for generic, sizeof(int) and sizeof(long) variants respectively.
7771 2002-01-17  Ulrich Drepper  <drepper@redhat.com>
7773         * manual/syslog.texi (openlog): Describe possible problems with
7774         first parameter.
7775         Patch by Christopher Allen Wing <wingc@engin.umich.edu>.
7777         * nscd/nscd.c (drop_privileges): Removed.  Adjust caller.
7778         * nscd/connections.c (begin_drop_privileges): New function.
7779         (finish_drop_privileges): New function.
7780         (nscd_init): Call the new functions which also install all groups
7781         for the server user.
7782         * nscd/Makefile (nscd-modules): Add xmalloc for nscd.
7783         Patch by Christopher Allen Wing <wingc@engin.umich.edu>.
7785 2002-01-17  H.J. Lu  <hjl@gnu.org>
7787         * sysdeps/mips/dl-machine.h (__dl_runtime_resolve): Remove
7788         `const' from `got'.
7790 2002-01-17  Martin Schwidefsky  <schwidefsky@de.ibm.com>
7792         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S: Use 64 bit
7793         instructions for pointer operations.
7794         * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S: Likewise.
7796 2002-01-17  Andreas Jaeger  <aj@suse.de>
7798         * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h: GCC 3.1 has
7799         __uint128_t build-in.
7801         * sysdeps/unix/sysv/linux/configure.in: Fix check for S390 and
7802         PowerPC, sync with 2.2 branch.
7804 2002-01-16  Ulrich Drepper  <drepper@redhat.com>
7806         * posix/getconf.c: Update copyright year.
7807         * nss/getent.c: Likewise.
7808         * nscd/nscd_nischeck.c: Likewise.
7809         * iconv/iconvconfig.c: Likewise.
7810         * iconv/iconv_prog.c: Likewise.
7811         * elf/ldconfig.c: Likewise.
7812         * catgets/gencat.c: Likewise.
7813         * csu/version.c: Likewise.
7814         * elf/ldd.bash.in: Likewise.
7815         * elf/sprof.c (print_version): Likewise.
7816         * locale/programs/locale.c: Likewise.
7817         * locale/programs/localedef.c: Likewise.
7818         * nscd/nscd.c (print_version): Likewise.
7819         * debug/xtrace.sh: Likewise.
7820         * malloc/memusage.sh: Likewise.
7821         * malloc/mtrace.pl: Likewise.
7823 2002-01-16  Andreas Schwab  <schwab@suse.de>
7825         * sysdeps/unix/sysv/linux/ia64/ldd-rewrite.sed: Fix regexp to
7826         reliably remove "-ia64" from rtld name.
7828 2002-01-16  Ulrich Drepper  <drepper@redhat.com>
7830         * iconvdata/gb18030.c: Bug fixes and support for more characters.
7831         Patch by Yu Shao <yshao@redhat.com>.
7833 2002-01-16  Martin Schwidefsky  <schwidefsky@de.ibm.com>
7835         * sysdeps/unix/sysv/linux/s390/swapcontext.c: Remove.
7836         * sysdeps/unix/sysv/linux/s390/s390-32/swapcontext.S: New file.
7837         * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S: New file.
7839 2002-01-14  Martin Schwidefsky  <schwidefsky@de.ibm.com>
7841         * sysdeps/s390/fpu/libm-test-ulps: Update.
7843 2002-01-11  Ulrich Drepper  <drepper@redhat.com>
7845         * elf/elf.h: Update x86 relocations.
7847 2002-01-10  Ulrich Drepper  <drepper@redhat.com>
7849         * locale/programs/charmap.c (new_width): Check whether byte
7850         sequences for both ends of range have the same length.
7852 2002-01-09  Jakub Jelinek  <jakub@redhat.com>
7854         * elf/elf.h (SHN_UNDEF): Remove duplicate definition.
7856 2002-01-09  Jakub Jelinek  <jakub@redhat.com>
7858         * sysdeps/alpha/fpu/e_sqrt.c (__ieee754_sqrt): Don't use multi-line
7859         string literals.
7860         (__full_ieee754_sqrt): Add __attribute_used__.
7862 2002-01-10  Ulrich Drepper  <drepper@redhat.com>
7864         * sysdeps/generic/group_member.c (__group_member): Also check
7865         groups[0] [PR libc/2781].
7867 2002-01-08  Ulrich Drepper  <drepper@redhat.com>
7869         * Makefile (distribute): Add scripts/cpp.
7870         * elf/Makefile (distribute): Add reldep6mod[01234].c,
7871         unwind-dw2.c, unwind-dw2-fde.c, unwind.h, unwind-pe.h,
7872         unwind-dw2-fde.h, and dwarf2.h.
7873         * sysdeps/unix/bsd/bsd4.4/Dist: New file.
7874         * sysdeps/unix/sysv/aix/Dist: Add sysv_termio.h and start-libc.c.
7875         * sysdeps/unix/sysv/linux/ia64/Dist: Add ldd-rewrite.sed.
7876         * sysdeps/unix/sysv/linux/s390/Dist: Likewise.
7878 2002-01-07  Roland McGrath  <roland@frob.com>
7880         * sysdeps/mach/hurd/i386/init-first.c (_hurd_stack_setup): Use
7881         volatile on type of ARGC so the compiler doesn't get clever.
7883 2002-01-07  Andreas Jaeger  <aj@suse.de>
7885         * sysdeps/generic/bits/byteswap.h: Prevent double inclusion.
7886         * sysdeps/i386/bits/byteswap.h: Likewise.
7887         * sysdeps/ia64/bits/byteswap.h: Likewise.
7888         * sysdeps/m68k/bits/byteswap.h: Likewise.
7889         * sysdeps/s390/s390-32/bits/byteswap.h: Likewise.
7890         * sysdeps/s390/s390-64/bits/byteswap.h: Likewise [PR libc/2757].
7892 2002-01-02  Bruno Haible  <bruno@clisp.org>
7894         * intl/plural.y: Fix %expect count.
7896 2002-01-03  Jakub Jelinek  <jakub@redhat.com>
7898         * elf/Makefile (routines, shared-only-routines): Add
7899         unwind-dw2-fde-glibc instead of unwind-dw2-fde.
7900         * elf/elf.h (PT_GNU_EH_FRAME): Define.
7901         * sysdeps/generic/unwind-dw2-fde-glibc.c: New file.
7902         * sysdeps/generic/unwind-dw2-fde.c (__register_frame_info_bases):
7903         Optimize if .eh_frame section contains no FDEs.
7904         (__register_frame, __deregister_frame_info_bases,
7905         __deregister_frame): Likewise.
7906         * sysdeps/generic/unwind-dw2.c (execute_cfa_program): Fix
7907         DW_CFA_restore handling.
7909 2002-01-07  Stephen L Moshier  <moshier@mediaone.net>
7911         * sysdeps/ieee754/ldbl-96/s_erfl.c (erfcl): Fix K&R header.
7913         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (sin_pi): Fix typo in test
7914         for x < 0.25 and restore original range reduction method.
7915         (__ieee754_lgammal_r): Make sure signgam is set before returning.
7917 2002-01-07  Ulrich Drepper  <drepper@redhat.com>
7919         * libio/fileops.c (_IO_file_underflow_mmap): New function.
7920         (_IO_file_close_mmap): New function.
7921         (_IO_file_jumps_mmap): New variable.
7922         * libio/wfileops.c (_IO_wfile_underflow): Reset read pointer before
7923         trying to convert rest of byte buffer.
7924         (_IO_wfile_underflow_mmap): New function.
7925         (_IO_wfile_jumps_mmap): New variable.
7926         * libio/iofopen.c (__fopen_maybe_mmap): New function.
7927         (__fopen_internal): New function.  Split out from _IO_new_fopen.
7928         (_IO_new_fopen): Call __fopen_internal.
7929         * libio/iofopen64.c: Just call __fopen_internal.
7930         * libio/iofdopen.c: Call __fopen_maybe_mmap before returning
7931         successfully.
7932         * libio/iolibio.h: Declare __fopen_internal and __fopen_maybe_mmap.
7933         * libio/libioP.h: Declare _IO_file_jumps_mmap, _IO_wfile_jumps_mmap,
7934         _IO_file_close_mmap.
7936         * sysdeps/gnu/_G_config.h: Define _G_MMAP64.
7937         * sysdeps/unix/sysv/linux/cris/_G_config.h: Likewise.
7939         * stdio-common/Makefile (tests): Add tst-rndseek.
7940         * stdio-common/tst-rndseek.c: New file.
7942 2002-01-05  Roland McGrath  <roland@frob.com>
7944         * config.h.in (HAVE_MIG_RETCODE): New #undef.
7945         * sysdeps/mach/hurd/configure.in (hurd_MIG_RETCODE: New macro
7946         swiped from hurd package's aclocal.m4; use it to set HAVE_MIG_RETCODE.
7947         * sysdeps/mach/hurd/configure: Regenerated.
7949 2002-01-03  Ulrich Drepper  <drepper@redhat.com>
7951         * elf/elf.h: Add more TLS definitions.
7953 2002-01-02  Ulrich Drepper  <drepper@redhat.com>
7955         * include/features.h (__GLIBC_MINOR__): Bump to 3.
7957 2002-01-02  Roland McGrath  <roland@frob.com>
7959         * sysdeps/mach/hurd/sigwait.c (__sigwait): Use __sigandset,
7960         __sigisemptyset.  Don't use MASK uninitialized.
7962         * sysdeps/mach/hurd/sigprocmask.c (__sigprocmask): Use __sigorset.
7963         * hurd/hurdinit.c (_hurd_new_proc_init): Use __sigisemptyset.
7964         * hurd/hurdsig.c (_hurd_internal_post_signal): Use __sigismember,
7965         __sigdelset, __sigaddset, __sigorset.
7967         * sysdeps/generic/htonl.c: Use uint32_t instead of u_int32_t.
7968         * sysdeps/generic/htons.c: Use uint16_t instead of u_int16_t.
7970         * hurd/hurdinit.c (_hurd_ports_use): Return EGRATUITOUS when
7971         _hurd_ports is null.
7973         * hurd/hurdsig.c (_hurdsig_init): Conditionalize exception port setup
7974         for old CMU and new OSF Mach interface flavors.
7975         * hurd/hurdfault.c (_hurdsig_fault_init): Likewise.
7976         * sysdeps/mach/hurd/fork.c (__fork): Likewise.
7978         * hurd/hurdsig.c (_hurd_internal_post_signal): Leave msgh_seqno unset.
7980         * sysdeps/mach/hurd/spawni.c (__spawni) [KERN_INVALID_LEDGER]:
7981         Pass extra arguments to task_create for OSF variant.
7982         * sysdeps/mach/hurd/fork.c (__fork): Likewise.
7984         * sysdeps/powerpc/elf/libc-start.c: Make AUXVEC diddling code
7985         conditional on [HAVE_AUX_VECTOR].
7987         * mach/mach/mach_traps.h (thread_switch, __thread_switch): Use
7988         mach_msg_timeout_t as type of final argument.
7990         * hurd/privports.c (__get_privileged_ports):
7991         Change host_priv_t to mach_port_t in argument type.
7992         * hurd/hurd.h (get_privileged_ports, __get_privileged_ports):
7993         Update decls.
7995         * sysdeps/mach/hurd/i386/bits/sigcontext.h: Protect from
7996         multiple inclusion.  Inhibit #error under [_SYS_UCONTEXT_H].
7997         * sysdeps/mach/hurd/alpha/bits/sigcontext.h: Likewise.
7998         * sysdeps/mach/hurd/hppa/bits/sigcontext.h: Likewise.
7999         * sysdeps/mach/hurd/mips/bits/sigcontext.h: Likewise.
8000         * sysdeps/mach/hurd/powerpc/bits/sigcontext.h: Likewise.
8002 2002-01-01  Roland McGrath  <roland@frob.com>
8004         * sysdeps/mach/hurd/errnos.awk: Tighten up device_types.h matching.
8006 2002-01-01  Ulrich Drepper  <drepper@redhat.com>
8008         * include/stdlib.h: Define inlines for the _l variants of the strto*
8009         functions.
8011 2002-01-01  Roland McGrath  <roland@frob.com>
8013         * sysdeps/mach/hurd/powerpc/intr-msg.h: Remove extraneous backslash.
8015         * mach/Machrules (MIG): Set CPP as well as CC.
8017 2001-12-31  Ulrich Drepper  <drepper@redhat.com>
8019         * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Always use C
8020         locale to parse /proc/loadavg [PR libc/2760].
8022 2001-12-31  Jakub Jelinek  <jakub@redhat.com>
8024         * elf/dl-conflict.c: Include sys/param.h.
8025         (RESOLVE_CONFLICT_FIND_MAP): Cast r_offset to ElfW(Addr).
8026         * sysdeps/alpha/dl-machine.h (elf_machine_runtime_setup): Avoid
8027         warning.
8028         (TRAMPOLINE_TEMPLATE, RTLD_START): Don't use multi-line string
8029         literals to avoid warnings.
8031 2001-12-31  Andreas Jaeger  <aj@suse.de>
8033         * configure.in: Don't check for gsed since we do not use it anywhere.
8035 2001-12-25  Dmitry V. Levin  <ldv@alt-linux.org>
8037         * io/fts.c: Update from BSD to fix memory leaks.
8039 2001-12-25  Dmitry V. Levin  <ldv@alt-linux.org>
8041         * crypt/md5-crypt.c: Realloc error handling memory leak fix.
8042         * elf/chroot_canon.c: Likewise.
8043         * elf/dl-object.c: Likewise.
8044         * iconv/iconv_charmap.c: Likewise.
8045         * iconv/iconv_prog.c: Likewise.
8046         * libio/iogetdelim.c: Likewise.
8047         * locale/lc-time.c: Likewise.
8048         * stdlib/canonicalize.c: Likewise.
8049         * sunrpc/svc.c: Likewise.
8050         * sysdeps/generic/glob.c: Likewise.
8052 2001-12-19  Martin Schwidefsky  <schwidefsky@de.ibm.com>
8054         * sysdeps/unix/sysv/linux/s390/profil-counter.h: Move/copy to ...
8055         * sysdeps/unix/sysv/linux/s390/s390-32/profil-counter.h: ... here,
8056         remove high order bit from the program counter.
8057         * sysdeps/unix/sysv/linux/s390/s390-64/profil-counter.h: ... and here.
8059 2001-12-19  Martin Schwidefsky  <schwidefsky@de.ibm.com>
8061         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): Remove
8062         unnecessary code and add missing reloc types.
8063         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Add empty
8064         case for reloc type R_390_NONE.
8066 2001-12-28  Andreas Jaeger  <aj@suse.de>
8068         * io/bug-ftw3.c: Include string.h for prototypes.
8070         * crypt/md5test.c (main): Remove unused variable.
8072         * dlfcn/modstatic.c: Add prototype to avoid warning.
8074 2001-12-26  Roland McGrath  <roland@frob.com>
8076         * sysdeps/mach/hurd/sigwait.c (__sigwait): When returning immediately,
8077         check only (SS->pending & MASK) for the signal to return.
8078         From Jeroen Dekkers <jeroen@dekkers.cx>.
8080 2001-12-22  Roland McGrath  <roland@frob.com>
8082         * iconv/skeleton.c [!RESET_INPUT_BUFFER && !SAVE_RESET_STATE]:
8083         Use preprocessor #if conditionals instead of `if' to avoid
8084         warnings about divide by zero in dead code.
8086         * hurd/Versions (libc: GLIBC_2.2.5): Add _hurd_port_set,
8087         _hurd_port_init, and __hurd_self_sigstate.
8089         * mach/Versions (libc: GLIBC_2.2.5): Add mig_strncpy.
8091 2001-12-21  Andreas Jaeger  <aj@suse.de>
8093         * elf/dblloadmod1.c: Add prototype to avoid warning.
8094         * elf/dblloadmod2.c: Likewise.
8095         * elf/dblloadmod3.c: Likewise.
8096         * elf/reldepmod5.c: Likewise.
8097         * elf/reldepmod6.c: Likewise.
8099         * elf/dl-conflict.c (_dl_resolve_conflicts): Add unused attribute
8100         for resolve_conflict_map since RESOLVE_CONFLICT_FIND_MAP is not
8101         used on all architectures.
8103         * sunrpc/svc_tcp.c: Add noreturn attribute for
8104         svctcp_rendezvous_abort.
8105         * sunrpc/svc_unix.c: Likewise for svcunix_rendezvous_abort.
8107         * sysdeps/generic/strstr.c (strstr): Add paranthese for assignment
8108         to avoid warning.
8110 2001-12-19  Jakub Jelinek  <jakub@redhat.com>
8112         * manual/llio.texi (aio_fsync): Fix a typo.
8113         Patch by Tammy Fox <tfox@redhat.com>.
8115 2001-12-18  Jakub Jelinek  <jakub@redhat.com>
8117         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (clone): Subtract
8118         stack bias from child stack pointer before passing it to clone syscall.
8120 2001-12-18  Ulrich Drepper  <drepper@redhat.com>
8122         * sysdeps/posix/sysconf.c (__sysconf): Respect POSIX minimum for
8123         _SC_TZNAME_MAX.
8124         * sysdeps/generic/sysconf.c (__sysconf): Likewise.
8125         Reported by Thorsten Kukuk <kukuk@suse.de>.
8127         * sysdeps/unix/grantpt.c (grantpt): Correct typo in comment and
8128         add some casts.
8130         * sysdeps/unix/sysv/linux/grantpt.c: Make __unix_grantpt static.
8132 2001-12-18  Thorsten Kukuk  <kukuk@suse.de>
8134         * sysdeps/unix/sysv/linux/grantpt.c: Make errno results standard
8135         conforming: return EBADF if file descriptor is invalid and EINVAL
8136         if file descriptor is no valid tty.
8137         * login/tst-grantpt.c: New file.
8138         * login/Makefile (tests): Add tst-grantpt.
8140 2001-12-17  Ulrich Drepper  <drepper@redhat.com>
8142         * io/ftw.c (ftw_dir): Handle inaccessibility of toplevel dir
8143         different than implemented in last patch.
8144         * io/bug-ftw3.c: Adjust test for changed handling of
8145         inaccessibility of toplevel dir.
8147 2001-12-16  Roland McGrath  <roland@frob.com>
8149         * nss/nsswitch.c (__nss_next): Don't use __FUNCTION__ as literal.
8150         * grp/initgroups.c (internal_getgrouplist): Likewise.
8152         * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): Add `break' after
8153         `default:' to silence new GCC warning.
8154         Rewrite cast of lvalue to silence new GCC warning.
8156         * sysdeps/mach/hurd/i386/init-first.c: Avoid multi-line strings in asm.
8158         * sysdeps/mach/hurd/spawni.c: New file, by me with a
8159         couple fixes by Neal H Walfield <neal@cs.uml.edu>.
8161 2001-12-14  Ulrich Drepper  <drepper@redhat.com>
8163         * sysdeps/generic/strstr.c (strstr): Update.  New optimized version.
8164         Patch by Stephen R. van den Berg.
8166         * crypt/md5.h: Define md5_uintptr.
8168 2001-12-13  Ulrich Drepper  <drepper@redhat.com>
8170         * libio/tst_swprintf.c (main): Add test for string argument with
8171         zero precision.
8172         * stdio-common/Makefile (tests): Add tst-sprintf.
8173         * stdio-common/tst-sprintf.c: New file.
8175 2001-12-13  Andreas Schwab  <schwab@suse.de>
8177         * stdio-common/vfprintf.c (process_string_arg): Correctly handle
8178         zero precision with wide character string format.
8180 2001-12-13  Thorsten Kukuk  <kukuk@suse.de>
8182         * sysdeps/posix/cuserid.c (cuserid): If we don't find the UID,
8183         but have a user supplied buffer, return the empty buffer, not NULL.
8185 2001-12-13  Ulrich Drepper  <drepper@redhat.com>
8187         * crypt/md5.c (md5_process_bytes): Correct handling of alignment.
8188         Patch by Eric Sharkey <sharkey@netrics.com>.
8190         * crypt/md5test.c (main): Add test for multiple calls to
8191         __md5_process_bytes to itererate over input string.
8193 2001-12-12  Ulrich Drepper  <drepper@redhat.com>
8195         * nis/nis_findserv.c (__nis_findfastest_with_timeout): Mostly the code
8196         from __nis_findfastest.  Take timeout value from parameter.
8197         (__nis_findfastest): Call __nis_findfastest_with_timeout repeatedly.
8198         * nis/nis_intern.h: Define parameters controlling __nis_findfastest
8199         [PR libc/2520].  Patch by Alexander Belopolsky <alexb@rentec.com>.
8201 2001-12-12  Andreas Jaeger  <aj@suse.de>
8203         * configure.in: Use -nostartfiles -nostdlib for linker tests, fix
8204         combreloc test so that it works in this case.
8206         * sysdeps/arm/dl-machine.h (elf_machine_rela): Fix typo in last patch.
8208 2001-12-12  NIIBE Yutaka  <gniibe@m17n.org>
8210         * sysdeps/sh/Makefile: New file.
8211         * sysdeps/sh/_mcount.S: New file.
8212         * sysdeps/sh/sysdep.h (CALL_MCOUNT): Implemented.
8213         * sysdeps/sh/machine-gmon.h: Remove "NOTYET" comment, as we are ready.
8215 2001-12-11  Ulrich Drepper  <drepper@redhat.com>
8217         * resolv/nss_dns/dns-host.c (getanswer_r): Remove MAX_NR_ADDRS
8218         limitation [PR libc/2564].
8220 2001-12-11  Jakub Jelinek  <jakub@redhat.com>
8222         * elf/Makefile (dl-routines): Add conflict.
8223         (rtld-ldscript-in, rtld-ldscript, rtld-parms): Remove.
8224         (ld.so): Add _begin local symbol.
8225         * elf/elf.h (DT_VALTAGIDX, DT_VALNUM, DT_ADDRTAGIDX, DT_ADDRNUM):
8226         Define.
8227         * elf/dl-deps.c (_dl_build_local_scope): New.
8228         (_dl_map_object_deps): If LD_TRACE_PRELINKING, compute local scopes
8229         of all libraries.
8230         * elf/do-rel.h (VALIDX): Define.
8231         (elf_dynamic_do_rel): If ELF_MACHINE_PLT_REL is defined, don't do
8232         lazy binding for RELA.  If DT_GNU_PRELINKED, DT_RELACOUNT relocations
8233         can be skipped.
8234         * elf/dl-conflict.c: New file.
8235         * elf/dl-lookup.c (_dl_debug_bindings): New.
8236         (_dl_lookup_symbol): Use _dl_debug_bindings.  Reference_name is always
8237         non-NULL.
8238         (_dl_lookup_symbol_skip): Likewise.
8239         (_dl_lookup_versioned_symbol): Likewise.
8240         (_dl_lookup_versioned_symbol_skip): Likewise.
8241         * elf/dl-runtime.c (PLTREL): If ELF_MACHINE_PLT_REL is defined,
8242         define to ElfW(Rel).
8243         * elf/dynamic-link.h (elf_get_dynamic_info): Record selected dynamic
8244         tags in the DT_VALRNGLO..DT_VALRNGHI and DT_ADDRRNGLO..DT_ADDRRNGHI
8245         ranges.
8246         Don't adjust address dynamic tags if l_addr is 0.
8247         * elf/rtld.c (_dl_trace_prelink, _dl_trace_prelink_map): New variables.
8248         (_dl_start): Skip ELF_DYNAMIC_RELOCATE if ld.so is prelinked.
8249         (VALIDX, ADDRIDX): Define.
8250         (_dl_start_final): Initialize _dl_rtld_map's l_map_start and l_map_end.
8251         (dl_main): Print library list for LD_TRACE_PRELINKING.
8252         If prelinking information can be used, skip relocating libraries and
8253         call _dl_resolve_conflicts instead.
8254         (process_envvars): Handle LD_TRACE_PRELINKING envvar.
8255         * elf/dl-load.c (_dl_map_object): Don't create fake libs
8256         if LD_TRACE_PRELINKING.
8257         * include/link.h (struct link_map) [l_info]: Add DT_VALNUM
8258         + DT_ADDRNUM.
8259         * sysdeps/generic/ldsodefs.h (_dl_trace_prelink_map): New declaration.
8260         (DL_DEBUG_PRELINK): Define.
8261         (_dl_resolve_conflicts): Add prototype.
8263         * sysdeps/alpha/dl-machine.h (elf_machine_runtime_setup): Reinitialize
8264         .plt for prelinked libraries where prelinking info cannot be used.
8265         (elf_machine_rela): If relocating R_ALPHA_JMP_SLOT in .gnu.conflict
8266         section, use RESOLVE_CONFLICT_FIND_MAP to find out reloc's link_map.
8267         * sysdeps/arm/bits/link.h: New file.
8268         * sysdeps/arm/dl-machine.h (elf_machine_runtime_setup): Save original
8269         content of .got[1].
8270         (ELF_MACHINE_NO_RELA): Only define if RTLD_BOOTSTRAP.
8271         (ELF_MACHINE_PLT_REL): Define.
8272         (elf_machine_rela, elf_machine_rela_relative): New.
8273         (elf_machine_lazy_rel): Reinitialize R_ARM_JUMP_SLOT address instead
8274         of adjusting it if prelinked and prelinking cannot be used.
8275         * sysdeps/i386/bits/link.h: New file.
8276         * sysdeps/i386/dl-machine.h (elf_machine_runtime_setup): Save original
8277         content of .got[1].
8278         (ELF_MACHINE_NO_RELA): Only define if RTLD_BOOTSTRAP.
8279         (ELF_MACHINE_PLT_REL): Define.
8280         (elf_machine_rela, elf_machine_rela_relative): New.
8281         (elf_machine_lazy_rel): Reinitialize R_386_JUMP_SLOT address instead
8282         of adjusting it if prelinked and prelinking cannot be used.
8283         * sysdeps/powerpc/dl-machine.h (elf_machine_rela): If relocating
8284         conflicts, skip finaladdr computation.  Use RESOLVE_CONFLICT_FIND_MAP
8285         to find out map for R_PPC_JMP_SLOT relocs.
8286         * sysdeps/sparc/sparc32/dl-machine.h (VALIDX): Define.
8287         (OPCODE_BA): Define.
8288         (elf_machine_runtime_setup): Reinitialize .plt for prelinked
8289         libraries where prelinking info cannot be used.
8290         (sparc_fixup_plt): Renamed from elf_machine_fixup_plt.
8291         (elf_machine_fixup_plt): Call sparc_fixup_plt.
8292         (elf_machine_rela): Set value to 0 if relocating conflicts.
8293         Call sparc_fixup_plt for R_SPARC_JMP_SLOT.
8294         * sysdeps/sparc/sparc64/dl-machine.h (VALIDX): Define.
8295         (sparc64_fixup_plt): Fix a typo.
8296         (elf_machine_rela): Set value to 0 if relocating conflicts.
8297         Handle R_SPARC_JMP_SLOT relocs when relocating conflicts.
8298         (elf_machine_runtime_setup): Reinitialize .plt for prelinked
8299         libraries where prelinking info cannot be used.
8300         * sysdeps/sh/bits/link.h: New file.
8301         * sysdeps/sh/dl-machine.h (elf_machine_runtime_setup): Save original
8302         content of .got[1].
8303         (elf_machine_lazy_rel): Reinitialize R_SH_JMP_SLOT address instead
8304         of adjusting it if prelinked and prelinking cannot be used.
8305         * sysdeps/s390/s390-32/bits/link.h: New file.
8306         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_runtime_setup):
8307         Save original content of .got[1].
8308         (elf_machine_lazy_rel): Reinitialize R_390_JMP_SLOT address instead
8309         of adjusting it if prelinked and prelinking cannot be used.
8310         * sysdeps/s390/s390-64/bits/link.h: New file.
8311         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_runtime_setup):
8312         Save original content of .got[1].
8313         (elf_machine_lazy_rel): Reinitialize R_390_JMP_SLOT address instead
8314         of adjusting it if prelinked and prelinking cannot be used.
8315         * sysdeps/x86_64/bits/link.h: New file.
8316         * sysdeps/x86_64/dl-machine.h (elf_machine_runtime_setup):
8317         Save original content of .got[1].
8318         (elf_machine_lazy_rel): Reinitialize R_X86_64_JMP_SLOT address instead
8319         of adjusting it if prelinked and prelinking cannot be used.
8321 2001-12-11  Ulrich Drepper  <drepper@redhat.com>
8323         * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_r): Use sizeof
8324         where appropriate instead of numbers.  Little optimizations.
8326 2001-12-10  Roland McGrath  <roland@frob.com>
8328         * sysdeps/mach/hurd/bind.c (bind): Don't deallocate IFSOCK if we never
8329         set it.
8331         * shlib-versions [USE_IN_LIBIO] (.*-.*-gnu-gnu.*): Set default
8332         set to GLIBC_2.2.5, not GLIBC_2.2.4.
8334         * sysdeps/mach/hurd/configure.in (libc_cv_gcc_unwind_find_fde):
8335         Fix conditionals so this is set by default for stdio and not for libio.
8336         * sysdeps/mach/hurd/configure: Regenerated.
8338 2001-12-10  Thorsten Kukuk  <kukuk@suse.de>
8340         * io/ftw.c (ftw_startup): Check, if the path is search and readable.
8342 2001-12-10  Ulrich Drepper  <drepper@redhat.com>
8344         * io/Makefile (tests): Add bug-ftw3.
8345         * io/bug-ftw3.c: New file.
8347         * sysdeps/generic/glob.c (glob): Return only pattern if nothing
8348         matches and GLOB_NOCHECK is set.
8349         * posix/globtest.sh: Correct expected result for NOCHECK test.
8351         * po/ca.po: Update from translation team.
8353 2001-12-09  Ulrich Drepper  <drepper@redhat.com>
8355         Implement transliteration of characters in strings of the locale
8356         definitions.
8357         * locale/programs/linereader.c: Adjust for additional parameter to
8358         lr_token.
8359         (get_string): If character <Uxxxx> is not found try to transliterate
8360         it.
8361         * locale/programs/ld-ctype.c: Adjust for additional parameter to
8362         lr_token.  Add const to charmap parameter of all functions.
8363         (find_translit, find_translit2): New functions.
8364         * locale/programs/charmap.c: Adjust for additional parameter to
8365         lr_token.
8366         * locale/programs/repertoire.c: Likewise.
8367         * locale/programs/linereader.h: Likewise.
8368         * locale/programs/ld-address.c: Likewise.  Add const to charmap
8369         parameter of all functions.
8370         * locale/programs/ld-collate.c: Likewise.
8371         * locale/programs/ld-identification.c: Likewise.
8372         * locale/programs/ld-measurement.c: Likewise.
8373         * locale/programs/ld-messages.c: Likewise.
8374         * locale/programs/ld-monetary.c: Likewise.
8375         * locale/programs/ld-name.c: Likewise.
8376         * locale/programs/ld-numeric.c: Likewise.
8377         * locale/programs/ld-paper.c: Likewise.
8378         * locale/programs/ld-paper.c: Likewise.
8379         * locale/programs/ld-telephone.c: Likewise.
8380         * locale/programs/ld-time.c: Likewise.
8381         * locale/programs/locfile.c: Likewise.
8382         * locale/programs/localedef.c: Likewise.
8383         * locale/programs/localedef.h: Likewise.
8384         * locale/programs/locfile.h: Likewise.  Add declaration for
8385         find_translit.
8386         * locale/programs/simple-hash.c: Add const to first parameter of
8387         find_entry, iterate_table, and lookup.
8388         * locale/programs/simple-hash.h: Likewise.
8389         * locale/localeinfo.h: Don't define __LC_LAST here.  Include <locale.h>
8390         instead.
8391         * include/locale.h: Define __LC_LAST.
8392         * iconv/Makefile (CFLAGS-linereader.c): Define to -DNO_TRANSLITERATION.
8394 2001-12-07  Geoff Keating  <geoffk@redhat.com>
8396         * sysdeps/powerpc/Dist: Update for recent FP changes.
8397         * sysdeps/powerpc/fpu/Dist: Likewise.
8399 2001-12-07  Andreas Schwab  <schwab@suse.de>
8401         * sysdeps/unix/sysv/linux/opensock.c: Include <string.h>.
8403 2001-12-06  Geoff Keating  <geoffk@redhat.com>
8405         * sysdeps/powerpc/Makefile (sysdep_routines): Don't build the fpr
8406         save/restore functions here.
8407         (libm-support): Don't define these functions here.
8408         * sysdeps/powerpc/fpu/Makefile: Build the fpr save/restore
8409         functions here.
8410         * sysdeps/powerpc/fe_nomask.c: Move to...
8411         * sysdeps/powerpc/fpu/fe_nomask.c: ... here.
8412         * sysdeps/powerpc/fprrest.S: Move to...
8413         * sysdeps/powerpc/fpu/fprrest.S: ... here.
8414         * sysdeps/powerpc/fprsave.S: Move to...
8415         * sysdeps/powerpc/fpu/fprsave.S: ... here.
8417 2001-12-06  Ulrich Drepper  <drepper@redhat.com>
8419         * sysdeps/unix/sysv/linux/opensock.c: New file.
8421 2001-12-06  Geoff Keating  <geoffk@redhat.com>
8423         * config.make.in (with-fp): Define from configure.
8424         * configure.in: Substitute with_fp.
8425         * configure: Regenerate.
8426         * sysdeps/powerpc/Makefile: Set -msoft-float when --without-fp is
8427         specified, and don't change FPU environment.
8429 2001-12-06  Ulrich Drepper  <drepper@redhat.com>
8431         * libio/vasprintf.c (_IO_vasprintf): Free buffer on failure.
8432         * assert/assert.c: Check result of __asprintf call and don't use
8433         string if it failed.
8434         * assert/assert-perr.c: Likewise.
8435         * inet/rcmd.c: Likewise.
8436         * locale/programs/localedef.c (main): Check result of
8437         construct_output_path and exit if it failed.
8438         (construct_output_path): Check result of asprintf and mkdir calls and
8439         fail if they failed.
8440         * posix/getopt.c: Check result of __asprintf calls and fail if
8441         they failed.
8442         Patch by Dmitry V. Levin <ldv@alt-linux.org>.
8444 2001-12-05  Ulrich Drepper  <drepper@redhat.com>
8446         * sysdeps/generic/strcasecmp.c (__strcasecmp): Little performance
8447         patch.
8448         * sysdeps/generic/strncase.c: Likewise.
8449         * string/tester.c: Add tests for strcasecmp and strncasecmp.
8451 2001-12-05  Geoff Keating  <geoffk@redhat.com>
8453         * scripts/cpp: Test the exit status from 'type', not 'awk'.
8455         * sysdeps/powerpc/__longjmp.S: Don't restore FP registers.
8456         * sysdeps/powerpc/fpu/__longjmp.S: Do restore FP registers.
8457         * sysdeps/powerpc/setjmp.S: Don't save FP registers.
8458         * sysdeps/powerpc/fpu/setjmp.S: Do save FP registers.
8459         * sysdeps/powerpc/fclrexcpt.c: Move to...
8460         * sysdeps/powerpc/fpu/fclrexcpt.c: ... here.
8461         * sysdeps/powerpc/fpu_control.h: Move to...
8462         * sysdeps/powerpc/fpu/fpu_control.h: ... here.
8464 2001-12-05  Ulrich Drepper  <drepper@redhat.com>
8466         * iconvdata/ibm1129.h: Remove duplicate mappings.
8467         * iconvdata/ibm937.c: Handle overflow errors.  Handle new tables.
8468         * iconvdata/ibm937.h: Reorganize table to safe a lot of space.
8469         Patch by Masahide Washizawa <WASHI@jp.ibm.com>.
8471         * timezone/zic.c: Fix handling of turnaround times.
8472         Patch by Arthur David Olson <olsona@dc37a.nci.nih.gov>.
8474 2001-12-02  Moshe Olshansky  <OLSHANSK@il.ibm.com>
8476         * sysdeps/ieee754/dbl-64/e_remainder.c (__ieee754_remainder): Fix
8477         overflow problem.
8479 2001-12-05  Ulrich Drepper  <drepper@redhat.com>
8481         * posix/regex.c: For use outside glibc defined bounded pointer
8482         macros here.  Patch by Jim Meyering <jim@meyering.net>.
8484         * iconvdata/Makefile (modules): Add TCVN5712-1.
8485         * iconvdata/TESTS: Add TCVN5712-1.
8486         * iconvdata/gconv-modules: Likewise.
8487         * iconvdata/tcvn5712-1.c: New file.
8488         * iconvdata/testdata/TCVN-5712: New file.
8489         * iconvdata/testdata/TCVN-5712..UTF8: New file.
8491 2001-12-04  Ulrich Drepper  <drepper@redhat.com>
8493         * iconvdata/cp1258.c: Optimize conversion from UCS4.
8495 2001-12-02  Roland McGrath  <roland@frob.com>
8497         * mach/Makefile, mach/Machrules: Move comments out of \ continuations.
8499         * hurd/hurd.h (__hurd_fail): Add `break;' to silence new gcc-3 warning.
8500         Reported by Jeff Bailey <jbailey@nisa.net>.
8502         * hurd/hurd.h (_hurd_umask): Remove volatile qualifier from decl.
8503         Reported by Jeff Bailey <jbailey@nisa.net>.
8505         * mach/Makefile ($(objpfx)mach-syscalls.mk): Pass $(CFLAGS) to $(CC).
8506         * mach/Machrules ($(objpfx)%.udeps static pattern rule): Likewise.
8507         Reported by Jeff Bailey <jbailey@nisa.net>.
8509 2001-12-01  Roland McGrath  <roland@frob.com>
8511         * sysdeps/mach/hurd/configure.in (libc_cv_gcc_unwind_find_fde): Add
8512         missing backslash in test arguments.
8513         * sysdeps/mach/hurd/configure: Regenerated.
8515 2001-11-26  Roland McGrath  <roland@frob.com>
8517         * hurd/hurdinit.c (_hurd_ports_use): Check if _hurd_ports is null.
8518         Reported by John Tobey <jtobey@john-edwin-tobey.org>.
8520 2001-11-30  Ulrich Drepper  <drepper@redhat.com>
8522         * iconvdata/Makefile (modules): Add ARMSCII-8.
8523         * iconvdata/gconv-modules: Add entries for ARMSCII-8.
8524         * iconvdata/armscii-8.c: New file.
8526 2001-11-29  Jakub Jelinek  <jakub@redhat.com>
8528         * sysdeps/generic/glob.c (next_brace_sub): Return NULL if braces
8529         don't match, fix {{a,b},c} globbing, clean up.
8530         Patch by Flavio Veloso <flaviovs@magnux.com>.
8531         * posix/globtest.sh: Add new tests.
8533 2001-11-29  Andreas Jaeger  <aj@suse.de>
8535         * sysdeps/unix/sysv/linux/x86_64/Versions: Add arch_prctl.
8536         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Add arch_prctl call.
8538         * sysdeps/generic/abort.c: Include libioP.h for
8539         _IO_flush_all_lockp prototype.
8541 2001-11-29  Ulrich Drepper  <drepper@redhat.com>
8543         * posix/regex.h: Define __restrict_arr correctly.
8545 2001-11-28  Ulrich Drepper  <drepper@redhat.com>
8547         * iconvdata/ibm1163.c: New file.
8548         * iconvdata/ibm1163.h: New file.
8549         * iconvdata/ibm1164.c: New file.
8550         * iconvdata/ibm1164.h: New file.
8551         * iconvdata/TESTS: Add entries for IBM1163 and IBM1164.
8552         * iconvdata/Makefile: Likewise.
8553         * iconvdata/testdata/IBM1163: New file.
8554         * iconvdata/testdata/IBM1163..UTF8: New file.
8555         * iconvdata/testdata/IBM1164: New file.
8556         * iconvdata/testdata/IBM1164..UTF8: New file.
8557         Patch by Masahide Washizawa <WASHI@jp.ibm.com>.
8559         * iconvdata/ibm1046.h: Optimize.  Remove duplicate mappings.
8560         * iconvdata/ibm1124.h: Likewise.
8561         * iconvdata/ibm1132.h: Likewise.
8562         * iconvdata/ibm1133.h: Likewise.
8563         * iconvdata/ibm1160.h: Likewise.
8564         * iconvdata/ibm1161.h: Likewise.
8565         * iconvdata/ibm1162.h: Likewise.
8566         * iconvdata/ibm856.h: Likewise.
8567         * iconvdata/ibm922.h: Likewise.
8568         * iconvdata/ibm930.h: Likewise.
8569         * iconvdata/ibm932.h: Likewise.
8570         * iconvdata/ibm933.h: Likewise.
8571         * iconvdata/ibm935.h: Likewise.
8572         * iconvdata/ibm937.h: Likewise.
8573         * iconvdata/ibm939.h: Likewise.
8574         * iconvdata/ibm943.h: Likewise.
8575         * iconvdata/ibm930.c: Pretty printing.
8576         * iconvdata/ibm937.c: Avoid access accross array boundary.
8578         * iconv/gconv_open.c (__gconv_open): Empty codeset name now means using
8579         the current locale's codeset.
8580         * iconv/iconv_open.c (iconv_open): Don't strip out everything for
8581         empty input string.
8582         * iconv/iconv_prog.c: Pass empty strings as default value for to-
8583         and from-charset.  Don't determine locale's charset here.
8585         * libio/genops.c (_IO_flush_all_lockp): New function.  The same code
8586         as the old _IO_flush_all but lock only if parameter is nonzero.
8587         (_IO_flush_all): Call _IO_flush_all_lockp with 1 as parameter.
8588         * libio/libioP.h: Add prototype for _IO_flush_all_lockp.
8589         * sysdeps/generic/abort.c (fflush): Define to _IO_flush_all_lockp(0)
8590         if libio is used [PR libc/2575].
8592 2001-11-28  Jakub Jelinek  <jakub@redhat.com>
8594         * sysdeps/sparc/fpu/bits/mathinline.h (__signbitf, __signbit,
8595         __signbitl): Only define for ISO C99.
8597 2001-11-22  Thorsten Kukuk  <kukuk@suse.de>
8599         * nss/nss_files/files-hosts.c (_nss_files_get##name##_r): Set
8600         herrnop to NETDB_INTERNAL if we run out of buffer space.
8602 2001-11-28  Ulrich Drepper  <drepper@redhat.com>
8604         * nss/nss_files/files-XXX.c (internal_getent): Correct input
8605         overflow test for platforms with signed char.
8606         Reported by Andrew Haley <aph@cambridge.redhat.com>.
8608 2001-11-28  Bruno Haible  <bruno@clisp.org>
8610         * locale/programs/simple-hash.c (lookup_2): Remove function.
8611         (insert_entry_2): Call lookup instead of lookup_2.
8613 2001-03-04  Bruno Haible  <bruno@clisp.org>
8615         * intl/dcigettext.c (DCIGETTEXT): Increment path_max proportionally.
8617 2001-10-31  Bruno Haible  <bruno@clisp.org>
8619         * intl/plural.y: Include <stddef.h>, needed for NULL with SunOS 4 cc.
8621 2001-03-21  Bruno Haible  <bruno@clisp.org>
8623         * intl/dcigettext.c (_nl_state_lock): Mark as #ifdef _LIBC. AIX 3 xlc
8624         chokes on empty macro arguments.
8625         * intl/plural.y: Add #pragma for alloca on AIX 3.
8627 2001-11-27  Ulrich Drepper  <drepper@redhat.com>
8629         * intl/dcigettext.c (guess_category_value): Only implement for
8630         glibc.  Otherwise rely on function _nl_locale_name which isn't
8631         present in the glibc sources.
8633 2001-09-24  Bruno Haible  <bruno@clisp.org>
8635         * intl/loadmsgcat.c (_nl_init_domain_conv): Also enable
8636         transliteration when building on a glibc system but outside glibc.
8638 2001-09-22  Bruno Haible  <bruno@clisp.org>
8640         * intl/plural-eval.c: New file, extracted from dcigettext.c.
8641         * intl/dcigettext.c (plural_eval): Remove function, moved to
8642         intl/plural-eval.c.
8643         (plural_lookup): Call PLURAL_EVAL instead of plural_eval.
8644         Include plural-eval.c.
8646 2001-09-22  Bruno Haible  <bruno@clisp.org>
8648         * intl/plural-exp.c (EXTRACT_PLURAL_EXPRESSION): Reject numbers that
8649         don't start with a digit; nplurals must be positive.
8651 2001-09-02  Bruno Haible  <bruno@clisp.org>
8653         * intl/plural-exp.h: New file, extracted from gettextP.h.
8654         * intl/plural-exp.c: New file, extracted from loadmsgcat.c.
8655         * intl/gettextP.h (struct expression, struct parse_args,
8656         __gettext_free_exp, __gettextparse): Move to plural-exp.h.
8657         * intl/loadmsgcat.c: Include plural-exp.h.
8658         (PLURAL_PARSE): Move macro to plural-exp.h.
8659         (plvar, plone, germanic_plural, INIT_GERMANIC_PLURAL): Move to
8660         plural-exp.c.
8661         (_nl_load_domain): Move plural handling code to plural-exp.c.  Call
8662         EXTRACT_PLURAL_EXPRESSION.
8663         (_nl_unload_domain): Update.
8664         * intl/dcigettext.c: Include plural-exp.h.
8665         * intl/plural.y: Include plural-exp.h, not gettextP.h.
8666         (FREE_EXPRESSION): Move macro to plural-exp.h.
8667         * intl/Makefile (routines): Add plural-exp.
8668         (distribute): Add plural-exp.h.
8670 2001-07-28  Bruno Haible  <bruno@clisp.org>
8672         * intl/l10nflist.c (_nl_normalize_codeset): Cast isalnum, isalpha,
8673         isdigit, tolower argument to 'unsigned char'.
8674         * intl/loadmsgcat.c (_nl_load_domain): Cast isspace argument to
8675         'unsigned char'.
8676         * intl/localealias.c (read_alias_file): Cast isspace argument to
8677         'unsigned char'.
8679 2001-10-20  Bruno Haible  <bruno@clisp.org>
8681         Assume strchr() exists. (Without it, intl/explodename.c wouldn't link
8682         anyway.)
8683         * intl/dcigettext.c (strchr): Remove fallback definition; it conflicts
8684         with the variable 'index' in plural_lookup.
8685         * intl/l10nflist.c (strchr): Likewise.
8686         * intl/localealias.c (strchr): Likewise.
8688         Assume <stddef.h>, <stdlib.h>, <string.h>, <locale.h> exist.
8689         * intl/bindtextdom.c: Likewise.
8690         * intl/dcigettext.c: Likewise.
8691         * intl/dgettext.c: Likewise.
8692         * intl/dngettext.c: Likewise.
8693         * intl/explodename.c: Likewise.
8694         * intl/finddomain.c: Likewise.
8695         * intl/gettext.c: Likewise.
8696         * intl/l10nflist.c: Likewise.
8697         * intl/loadmsgcat.c: Likewise.
8698         * intl/localealias.c: Likewise.
8699         * intl/ngettext.c: Likewise.
8700         * intl/textdomain.c: Likewise.
8701         * intl/gettext.h: Assume <limits.h> exists.
8703 2001-11-27  Ulrich Drepper  <drepper@redhat.com>
8705         * stdio-common/Makefile (tests): Add scanf11.
8706         * stdio-common/scanf11.c: New file.
8708 2001-11-26  Ulrich Drepper  <drepper@redhat.com>
8710         * version.h (RELEASE): Define as development.
8711         (VERSION): Set to 2.2.90.
8713 2001-11-22  Thorsten Kukuk  <kukuk@suse.de>
8715         * nis/nss_compat/compat-grp.c: Print group id as unsigned long.
8716         * nis/nss_nis/nis-grp.c: Likewise.
8717         * nis/nss_nisplus/nisplus-grp.c: Likewise.
8719         * nis/nss_compat/compat-pwd.c: Print user id as unsigned long.
8720         * nis/nss_nis/nis-pwd.c: Likewise.
8721         * nis/nss_nisplus/nisplus-pwd.c: Likewise.
8723         * nis/nss_nis/nis-publickey.c: Use strtoul instead of atoi.
8724         * nis/nss_nisplus/nisplus-parser.c: Likewise.
8725         * nis/nss_nisplus/nisplus-publickey.c: Likewise.
8727         * nscd/grpcache.c: Use strtoul instead of atol.
8728         * nscd/pwdcache.c: Likewise.
8729         * nss/getent.c: Likewise.
8731 2001-11-27  Paul Eggert  <eggert@twinsun.com>
8733         * sysdeps/posix/tempname.c (__gen_tempname): Try at least
8734         ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
8736 2001-11-19  Bruno Haible  <bruno@clisp.org>
8738         * locale/programs/simple-hash.c (insert_entry_2): Resize at 75%, not
8739         90%.
8740         (compute_hashval): Shift by 9 bits, not by 4 bits. This drastically
8741         improves the quality of the hash function, especially for short
8742         strings.
8744 2001-11-26  Ulrich Drepper  <drepper@redhat.com>
8746         * stdio-common/vfscanf.c: If incomplete nan of inf(inity) strings
8747         are found call conv_error and not input_error [PR libc/2669].
8749         * math/bits/mathcalls.h: Mark ceil and floor as const.
8750         Reported by David Mosberger.
8752 2001-11-21  Jim Meyering  <meyering@lucent.com>
8754         * posix/regex.c (iswctype, mbrtowc, wcslen, wcscoll, wcrtomb) [_LIBC]:
8755         Define to be __-prefixed.
8756         Remove unnecessary duplication in `#ifdef _LIBC' blocks.
8758 2001-11-26  Andreas Jaeger  <aj@suse.de>
8760         * sysdeps/unix/sysv/linux/hppa/brk.c: Remove __brk_addr alias,
8761         avoid warning.
8763 2001-11-26  Stephen L Moshier <moshier@mediaone.net>
8765         * sysdeps/ieee754/ldbl-128/e_log10l.c (L102B): Fix typo in
8766         initialization.
8768         * sysdeps/ieee754/ldbl-128/e_coshl.c (__ieee754_coshl): Remove
8769         unused variables.  Fix threshold for returning 1.0.
8771         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (neval, deval): Constify
8772         argument.
8774         * sysdeps/ieee754/ldbl-128/s_erfl.c (neval, deval): Likewise, and
8775         remove unused variables.
8777         * sysdeps/ieee754/ldbl-128/e_j0l.c (neval, deval): Likewise.
8779         * sysdeps/ieee754/ldbl-128/e_j1l.c (neval, deval): Likewise, and
8780         include local math header files.
8782 2001-11-22  Andreas Jaeger  <aj@suse.de>
8784         * sysdeps/ieee754/ldbl-96/s_ilogbl.c (__ilogbl): Add brace to
8785         avoid warning.
8787 2001-11-21  Andreas Jaeger  <aj@suse.de>
8789         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: New file.
8791         * sysdeps/unix/sysv/linux/x86_64/Makefile (sysdep_headers): Add
8792         sys/debugreg.h
8794 2001-11-15  Andreas Jaeger  <aj@suse.de>
8796         * include/features.h (__GLIBC_HAVE_LONG_LONG): Define for
8797         compilers that support it.
8799         * posix/sys/types.h: Use __GLIBC_HAVE_LONG_LONG.
8800         * sysdeps/unix/sysv/linux/bits/types.h: Likewise.
8801         * stdlib/stdlib.h: Likewise.
8803 2001-11-17  Ulrich Drepper  <drepper@redhat.com>
8805         * posix/regex.c (byte_re_match_2_internal): For gcc replace switch
8806         statement with gotos.
8807         Based on a patch by Paolo Bonzini <bonzini@pc-amo3.elet.polimi.it>.
8809 2001-11-16  Stephen L Moshier  <moshier@mediaone.net>
8811         * sysdeps/ieee754/ldbl-96/s_erfl.c (__erfcl): Fix K&R header.
8813 2001-11-15  Ulrich Drepper  <drepper@redhat.com>
8815         * sysdeps/generic/unwind-dw2-fde.c: Don't use recursive mutexes.
8817 2001-10-02  Jakub Jelinek  <jakub@redhat.com>
8818             H.J. Lu  <hjl@gnu.org>
8820         * Versions.def (libc): Add GCC_3.0.
8821         * configure.in (libc_cv_gcc_static_libgcc): Set to -static-libgcc
8822         if gcc supports this flag.
8823         (EXPORT_UNWIND_FIND_FDE): Define unless target configure disables it.
8824         (gcc3): Allow glibc to be compiled with gcc 3.x.
8825         * config.h.in (EXPORT_UNWIND_FIND_FDE): Add.
8826         * config.make.in (static-libgcc, unwind-find-fde): Add.
8827         * Makerules (build-shlib-helper, build-module-helper): Use it.
8828         * scripts/versions.awk: Make sure GLIBC_ versions come first.
8829         * elf/soinit.c (__libc_global_ctors): Set tbases and dbases if
8830         necessary.
8831         (_fini): Call __deregister_frame_info_bases if
8832         __register_frame_info_bases was used to register.
8833         * elf/Versions (__register_frame_info, __deregister_frame_info): Add
8834         for GLIBC_2.0.
8835         (__register_frame_info_bases, __register_frame_info_table_bases,
8836         __deregister_frame_info_bases, _Unwind_Find_FDE): Add for GCC_3.0.
8837         * elf/Makefile (routines): Add unwind-dw2-fde.
8838         (shared-only-routines): Add unwind-dw2-fde.
8839         * sysdeps/alpha/gccframe.h: New file.
8840         * sysdeps/arm/gccframe.h: New file.
8841         * sysdeps/generic/framestate.c: New file.
8842         * sysdeps/generic/dwarf2.h: New file.
8843         * sysdeps/generic/gccframe.h (struct object): Update from gcc 3.0.
8844         * sysdeps/generic/unwind-dw2-fde.c: New file.
8845         * sysdeps/unix/sysv/linux/ia64/unwind-dw2-fde.c: New file.
8846         * sysdeps/generic/unwind-dw2-fde.h: New file.
8847         * sysdeps/generic/unwind-dw2.c: New file.
8848         * sysdeps/generic/unwind-pe.h: New file.
8849         * sysdeps/generic/unwind.h: New file.
8850         * sysdeps/hppa/gccframe.h: New file.
8851         * sysdeps/i386/gccframe.h: New file.
8852         * sysdeps/m68k/gccframe.h: New file.
8853         * sysdeps/mips/gccframe.h: New file.
8854         * sysdeps/powerpc/gccframe.h: New file.
8855         * sysdeps/s390/gccframe.h: New file.
8856         * sysdeps/sh/gccframe.h: New file.
8857         * sysdeps/sparc/gccframe.h: New file.
8858         * sysdeps/vax/gccframe.h: New file.
8859         * sysdeps/unix/sysv/linux/configure.in (libc_cv_gcc_unwind_find_fde):
8860         Set on all architectures except ia64.
8861         * sysdeps/mach/hurd/configure.in (libc_cv_gcc_unwind_find_fde): Set
8862         for i386.
8863         * sysdeps/mach/hurd/i386/Versions (__register_frame_info,
8864         __deregister_frame_info): Move to elf/Versions.
8865         * sysdeps/unix/sysv/linux/m68k/Versions: Likewise.
8866         * sysdeps/unix/sysv/linux/arm/Versions: Likewise.
8867         * sysdeps/unix/sysv/linux/alpha/Versions: Likewise.
8868         * sysdeps/unix/sysv/linux/i386/Versions: Likewise.
8869         * sysdeps/unix/sysv/linux/mips/Versions: Likewise.
8870         * sysdeps/unix/sysv/linux/powerpc/Versions: Likewise.
8871         * sysdeps/unix/sysv/linux/s390/s390-32/Versions: Likewise.
8872         * sysdeps/unix/sysv/linux/sparc/sparc32/Versions: Likewise.
8873         * sysdeps/unix/sysv/linux/sparc/sparc64/Versions: Likewise.
8874         * sysdeps/mach/hurd/i386/Makefile (sysdep-routines): Add framestate.
8875         * sysdeps/unix/sysv/linux/arm/Makefile: Likewise.
8876         * sysdeps/unix/sysv/linux/alpha/Makefile: Likewise.
8877         * sysdeps/unix/sysv/linux/i386/Makefile: Likewise.
8878         * sysdeps/unix/sysv/linux/m68k/Makefile: Likewise.
8879         * sysdeps/unix/sysv/linux/mips/Makefile: Likewise.
8880         * sysdeps/unix/sysv/linux/powerpc/Makefile: Likewise.
8881         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Likewise.
8882         * sysdeps/unix/sysv/linux/sparc/Makefile: Likewise.
8884 2001-11-15  Jeff Law  <law@redhat.com>
8886         * posix/regex.c (uintptr_t): Do not provide a definition if the
8887         system provided one.
8889 2001-11-13  Roland McGrath  <roland@frob.com>
8891         * stdio-common/tmpfile.c: Moved to ...
8892         * sysdeps/generic/tmpfile.c: ... here.
8893         * sysdeps/mach/hurd/tmpfile.c: New file.
8895         * hurd/fopenport.c (__fopenport): Renamed from fopenport.
8896         [USE_IN_LIBIO] (fopencookie): #define as _IO_fopencookie.
8897         (fopenport): Define as weak alias.
8899         * libio/iofopncook.c (_IO_fopencookie): Move forward declaration ...
8900         * libio/libioP.h: ... to here.
8902 2001-11-12  Ulrich Drepper  <drepper@redhat.com>
8904         * elf/dl-reloc.c (_dl_relocate_object): Avoid iterating over
8905         program header twice.  Construct list with the needed information.
8907 2001-11-10  Ulrich Drepper  <drepper@redhat.com>
8909         * po/ca.po: Update from translation team.
8911         * elf/dl-load.c (_dl_map_object_from_fd): Remove use of
8912         _dl_pf_to_prot.  Use arithmetic operation using PF_TO_PROT macro.
8913         * sysdeps/generic/ldsodefs.h (PF_TO_PROT): New macro.
8914         * elf/dl-reloc.c (_dl_relocate_object): Likewise.
8916 2001-11-10  Andreas Jaeger  <aj@suse.de>
8918         * sysdeps/ieee754/ldbl-128/e_log2l.c: New file.
8919         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
8920         Contributed by Stephen L Moshier <moshier@mediaone.net>.
8922 2001-11-09  Ulrich Drepper  <drepper@redhat.com>
8924         * elf/dl-minimal.c (realloc): Handle NULL for first parameter
8925         correctly.
8926         * elf/dl-load.c (is_dst): New function.
8927         (_dl_dst_count): Use is_dst to check for DST variable.
8928         (_dl_dst_substitute): Likewise.
8930 2001-11-09  Roland McGrath  <roland@frob.com>
8932         Hurd/PowerPC port contributed by Peter Bruin <pjbruin@dds.nl>.
8933         * sysdeps/mach/hurd/powerpc/exc2signal.c: New file.
8934         * sysdeps/mach/hurd/powerpc/init-first.c: New file.
8935         * sysdeps/mach/hurd/powerpc/intr-msg.h: New file.
8936         * sysdeps/mach/hurd/powerpc/longjmp-ts.c: New file.
8937         * sysdeps/mach/hurd/powerpc/register-dump.h: New file.
8938         * sysdeps/mach/hurd/powerpc/sigreturn.c: New file.
8939         * sysdeps/mach/hurd/powerpc/static-start.S: New file.
8940         * sysdeps/mach/hurd/powerpc/trampoline.c: New file.
8941         * sysdeps/mach/hurd/powerpc/bits/sigcontext.h: New file.
8942         * sysdeps/mach/hurd/powerpc/Dist: New file.
8944         * hurd/privports.c (__get_privileged_ports):
8945         Only contact the proc server if necessary for this call.
8946         Suggested by Neal H Walfield <neal@cs.uml.edu>.
8947         Check error return for mach_port_mod_refs.
8949 2001-11-09  Andreas Schwab  <schwab@suse.de>
8951         * sysdeps/unix/sysv/linux/m68k/bits/resource.h: New file.
8953 2001-11-09  Ulrich Drepper  <drepper@redhat.com>
8955         * elf/dl-load.c (lose): Remove some unnecessary code.  The new
8956         object is always the last in the list.
8957         (_dl_map_object_from_fd): Delete code to remove from object list
8958         when DF_1_NOOPEN is seen.  This is done in lose.
8960 2001-11-08  Ulrich Drepper  <drepper@redhat.com>
8962         * elf/dl-object.c (_dl_new_object): Various small optimizations.
8964 2001-11-07  Ulrich Drepper  <drepper@redhat.com>
8966         * sysdeps/generic/dl-cache.c: Optimize SEARCH_CACHE and
8967         HWCAP_CHECK macro code.
8969         * elf/dl-misc.c (_dl_sysdep_read_whole_file): Optimize code a bit.
8970         Now returns MAP_FAILED on error.
8971         * elf/rtld.c: Adjust caller.
8972         * sysdeps/generic/dl-cache.c: Likewise.
8973         * sysdeps/generic/ldsodefs.h: Adjust description.
8975         * elf/dl-version.c (match_symbol): Optimize error handling for size.
8976         (_dl_check_map_versions): Likewise.
8978 2001-11-06  Ulrich Drepper  <drepper@redhat.com>
8980         * elf/dl-load.c (_dl_map_object_from_fd): Don't call
8981         _dl_signal_error directly, always use lose.  Set fd to -1 after
8982         file is closed.
8983         (lose): Don't call close if fd == -1.
8985 2001-11-07  Kaoru Fukui  <k_fukui@highway.ne.jp>
8987         * manual/charset.texi: Fix typo @w[ISO 6937] to  @w{ISO 6937}.
8988          Also fix typo @code {mbsinit} to @code{mbsinit}.
8990 2001-11-06  Ulrich Drepper  <drepper@redhat.com>
8992         * elf/dl-profile.c: Replace state variable with simple flag named
8993         running.  Remove commented-out code.
8995         * elf/dl-load.c (decompose_rpath): Optimize error handling for size.
8996         (_dl_init_paths): Likewise.
8997         (_dl_map_object_from_fd): Likewise.
8998         * elf/dl-reloc.c (_dl_relocate_object): Likewise.
9000 2001-11-06  Roland McGrath  <roland@frob.com>
9002         * sysdeps/mach/powerpc/sysdep.h: Include sysdeps/unix/powerpc/sysdep.h
9003         instead of sysdeps/powerpc/elf/sysdep.h and sysdeps/unix/sysdep.h.
9005         * sysdeps/unix/sysv/linux/powerpc/sysdep.h: Don't include
9006         sysdeps/powerpc/elf/sysdep.h.
9007         Reported by Kaoru Fukui <k_fukui@highway.ne.jp>.
9009 2001-11-05  Ulrich Drepper  <drepper@redhat.com>
9011         * elf/rtld.c (process_dl_debug): Rewritten.  Optimized for size not
9012         speed.
9013         (process_envvars): Some more optimizations.
9014         * sysdeps/generic/ldsodefs.h (DL_DEBUG_HELP): New macro.
9016         * elf/elf.h: Add dynamic tag definitions for prelinking.
9018         * elf/rtld.c (process_envvars): Avoid using array of string pointers.
9019         Rewrite code to remove environment varables for SUID binaries.
9020         Small optimization in LD_PROFILE handling.
9021         * sysdeps/generic/unsecvars.h: Adjust format for process_envvars
9022         changes.
9023         * sysdeps/unix/sysv/linux/i386/dl-librecon.h: Likewise.
9025         * sysdeps/generic/dl-sysdep.c: Don't initialize _dl_cpuclock_offset.
9027         * elf/dl-reloc.c (_dl_reloc_bad_type): Rewrite to not use writable
9028         strings.  Change type of second parameter.
9029         * sysdeps/generic/ldsodefs.h: Adjust _dl_reloc_bad_type prototype
9030         for last change.
9032         * io/fts.h: Prevent using <fts.h> with _FILE_OFFSET_BITS=64.
9034 2001-11-04  Joseph S. Myers  <jsm28@cam.ac.uk>
9036         * manual/string.texi: Fix typos.
9037         * manual/examples/argp-ex2.c: Likewise.
9039 2001-11-05  Roland McGrath  <roland@frob.com>
9041         * sysdeps/powerpc/elf/sysdep.h: Remove this file, because it overrides
9042         the more-specific unix/sysv/linux/powerpc file and breaks everything.
9043         * sysdeps/powerpc/sysdep.h (ALIGNARG, ASM_TYPE_DIRECTIVE,
9044         ASM_SIZE_DIRECTIVE, CALL_MCOUNT, ENTRY, EALIGN, DO_CALL, JUMPTARGET,
9045         PSEUDO, PSEUDO_RET, PSEUDO_END, L, C_TEXT): These macros moved here
9046         here, put under [__ELF__].
9048 2001-11-05  Ulrich Drepper  <drepper@redhat.com>
9050         * manual/charset.texi: Extensive editing work.
9051         * manual/nss.texi: Likewise.
9052         Changes by Dennis Grace <dgrace@us.ibm.com>.
9054 2001-11-04  Roland McGrath  <roland@frob.com>
9056         * hurd/set-host.c (_hurd_set_host_config): Use O_WRONLY in flags
9057         parameter to dir_mkfile.
9059 2001-11-02  Jakub Jelinek  <jakub@redhat.com>
9061         * string/bits/string2.h (__strndup): If n is smaller than len, set
9062         len to n + 1.
9063         * string/tester.c (test_strndup): New function.
9064         (main): Call it.
9066 2001-11-01  Ulrich Drepper  <drepper@redhat.com>
9068         * sunrpc/rpc_main.c: Optimize variable definitions a bit.
9070         * sunrpc/Makefile (rpcgen-cmd): Use ../scripts/cpp in rpcgen calls.
9071         * scripts/cpp: New file.
9073         * elf/dl-load.c (_dl_map_object): Correct test of DF_1_NODEFLIB
9074         for rtld_search_dirs content.  Minor optimizations.
9076 2001-10-31  Ulrich Drepper  <drepper@redhat.com>
9078         * elf/dl-load.c (_dl_map_object): Make code a bit more compact by
9079         avoiding unnecessary duplication.
9081 2001-10-31  Jakub Jelinek  <jakub@redhat.com>
9083         * elf/dl-load.c (_dl_map_object): If library was found using
9084         LD_LIBRARY_PATH, don't try RUNPATH list.
9086 2001-10-31  Martin Schwidefsky  <schwidefsky@de.ibm.com>
9088         * sysdeps/unix/sysv/linux/s390/s390-32/register-dump.h (REGISTER_DUMP):
9089         Correct second argument of register_dump call.
9090         * sysdeps/unix/sysv/linux/s390/s390-64/register-dump.h (REGISTER_DUMP):
9091         Likewise.
9093 2001-10-31  Ulrich Drepper  <drepper@redhat.com>
9095         * iconvdata/Makefile: Add support for IBM1132, IBM1133, and IBM1162
9096         modules.
9097         * iconvdata/TESTS: Likewise.
9098         * iconvdata/gconv-modules: Likewise.
9099         * iconvdata/ibm1132.c: New file.
9100         * iconvdata/ibm1132.h: New file.
9101         * iconvdata/ibm1133.c: New file.
9102         * iconvdata/ibm1133.h: New file.
9103         * iconvdata/ibm1162.c: New file.
9104         * iconvdata/ibm1162.h: New file.
9105         * iconvdata/testdata/IBM1132: New file.
9106         * iconvdata/testdata/IBM1132..UTF8: New file.
9107         * iconvdata/testdata/IBM1133: New file.
9108         * iconvdata/testdata/IBM1133..UTF8: New file.
9109         * iconvdata/testdata/IBM1162: New file.
9110         * iconvdata/testdata/IBM1162..UTF8: New file.
9111         Patches by Masahide Washizawa <WASHI@jp.ibm.com>.
9113         * string/string.h: Fix typo in comment.
9114         * wcsmbs/wchar.h: Likewise.
9116 2001-10-30  Joseph S. Myers  <jsm28@cam.ac.uk>
9118         * manual/getopt.texi (getopt_long, getopt_long_only): Include
9119         const in type of longopts parameter.
9121 2001-10-29  Andreas Jaeger  <aj@suse.de>
9123         * sysdeps/ieee754/dbl-64/mpa.h: Add prototypes for internal functions.
9125 2001-10-29  Kevin Ryde  <user42@zip.com.au>
9127         * manual/stdio.texi (Integer Conversions): Corrections to sample printf
9128         output, clarify `#' behaviour on 0.
9129         (Floating-Point Conversions): Clarify that %g only uses %e when
9130         the exponent would be greater than 1.
9132 2001-10-28  Roland McGrath  <roland@frob.com>
9134         Support for Mach/PowerPC contributed by Peter Bruin <pjbruin@dds.nl>.
9135         * sysdeps/mach/powerpc/machine-sp.h: New file.
9136         * sysdeps/mach/powerpc/sysdep.h: New file.
9137         * sysdeps/mach/powerpc/thread_state.h: New file.
9139         * sysdeps/mach/hurd/i386/Makefile: File removed; crt0.o rules moved ...
9140         * sysdeps/mach/hurd/Makefile: ... to here.  For the time being, we can
9141         expect to need the same thing on every platform.
9143         * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: File moved ...
9144         * sysdeps/generic/sys/ucontext.h: ... to replace this one.
9146         * sysdeps/unix/sysv/linux/powerpc/sysdep.h (ALIGNARG,
9147         ASM_TYPE_DIRECTIVE, ASM_SIZE_DIRECTIVE, CALL_MCOUNT, ENTRY, EALIGN,
9148         DO_CALL, JUMPTARGET, PSEUDO, PSEUDO_RET, PSEUDO_END, L, C_TEXT):
9149         Move all these assembly-related definitions to ...
9150         * sysdeps/powerpc/elf/sysdep.h: ... this new file.
9152         * sysdeps/mach/powerpc/machine-lock.h: Assembly code rewritten
9153         by Peter Bruin <pjbruin@dds.nl>.
9155         * hurd/hurdselect.c (_hurd_select): Check SELECT_RETURNED bit when
9156         packing results for a `poll' call.
9158 2001-10-26  Ulrich Drepper  <drepper@redhat.com>
9160         * posix/fnmatch_loop.c: Recognize - at end of bracket expression
9161         correctly.
9162         * posix/tst-fnmatch.input: Add tests for - at beginning and end of
9163         bracket expression.
9165         * string/strxfrm.c [USE_IN_EXTENDED_LOCALE_MODEL]: Correctly get
9166         nrules value.
9167         * string/tst-strxfrm.c (test): Also test __strxfrm_l.
9169 2001-10-24  H.J. Lu  <hjl@gnu.org>
9171         * sysdeps/generic/bits/dlfcn.h (DL_CALL_FCT): Cast to void *.
9172         Use __BEGIN_DECLS/__END_DECLS around prototypes.
9173         * sysdeps/mips/bits/dlfcn.h (DL_CALL_FCT): Likewise.
9175 2001-10-21  Jim Meyering  <meyering@lucent.com>
9177         * malloc/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
9178         this code would end up calling gettext even in packages built
9179         with --disable-nls.
9180         * posix/getopt.c (_): Likewise.
9181         * posix/regex.c (_): Likewise.
9183 2001-10-26  Ulrich Drepper  <drepper@redhat.com>
9185         * resolv/gethnamaddr.c (gethostbyaddr): Use ip6.addr for reverse
9186         lookup not ip6.int.
9187         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr_r): Likewise.
9188         Reported by Martin.v.Loewis@t-online.de [PR libc/2598].
9190 2001-10-19  Jakub Jelinek  <jakub@redhat.com>
9192         * misc/sys/cdefs.h (__attribute_used__): Define.
9193         * elf/rtld.c (_dl_start): Add __attribute_used__.
9194         * elf/dl-runtime.c (fixup, profile_fixup): Likewise.
9196 2001-10-25  Andreas Schwab  <schwab@suse.de>
9198         * stdlib/a64l.c: Expect least significant digit first.
9199         * stdlib/l64a.c: Produce least significant digit first.
9200         * stdlib/Makefile (tests): Add test-a64l.
9201         * stdlib/test-a64l.c: New file.
9202         Reported by Masaki Hasegawa <masaki-h@pp.iij4u.or.jp>.
9204 2001-10-21  Ulrich Drepper  <drepper@redhat.com>
9206         * po/sk.po: Update from translation team.
9208 2001-10-18  Ulrich Drepper  <drepper@redhat.com>
9210         * sysdeps/i386/elf/start.S (_fp_hw): Define object type.
9212 2001-10-18  Andreas Schwab  <schwab@suse.de>
9214         * math/libm-test.inc (print_ulps): Print ulp values rounded to
9215         next whole number.
9216         (print_function_ulps): Likewise.
9217         (print_complex_function_ulps): Likewise.
9218         (print_max_error): Likewise.
9219         (print_complex_max_error): Likewise.  Handle ignore_max_ulp.
9221 2001-10-16  Andreas Schwab  <schwab@suse.de>
9223         * sysdeps/m68k/fpu/libm-test-ulps: Updated for fixed cbrtl
9224         implementation.
9226         * sysdeps/m68k/setjmp.c: Also define setjmp and _setjmp if
9227         BSD_SETJMP or BSD__SETJMP is defined, resp.
9228         * sysdeps/m68k/bsd-setjmp.c: Inline setjmp code instead of making
9229         a tail call to __sigsetjmp that would require extending the
9230         caller's frame.
9231         * sysdeps/m68k/bsd-_setjmp.c: Likewise.
9232         * sysdeps/m68k/bsd-setjmp.S: Deleted.
9233         * sysdeps/m68k/bsd-_setjmp.S: Deleted.
9234         Reported by Jes Sorensen <jes@trained-monkey.org>.
9236 2001-10-16  Andreas Jaeger  <aj@suse.de>
9238         * sysdeps/ieee754/ldbl-96/s_nextafterl.c (__nextafterl): Fix
9239         parentheses.  Reported by David Byron <dbyron@porto.coactive.com>,
9240         close PR libc/2589.
9242 2001-10-15  Ulrich Drepper  <drepper@redhat.com>
9244         * po/ca.po: New file.  Contributed by the translation team.
9246 2001-10-15  Ralf Baechle  <ralf@gnu.org>
9248         * sysdeps/unix/sysv/linux/mips/sys/sysmips.h: Make sysmips() prototype
9249         a varargs prototype.  Remove dependency from kernel header files.
9251         * sysdeps/unix/sysv/linux/mips/bits/termios.h: General cleanup, use
9252         __USE_MISC / __USE_XOPEN not __USE_BSD where appropriate.
9254 2001-10-14  Ulrich Drepper  <drepper@redhat.com>
9256         * locale/programs/ld-collate.c (handle_ellipsis): Use %lX not %lx
9257         to generate hexadecimal identifier.
9258         Patch by Jungshik Shin <jungshik.shin@yale.edu>.
9260 2001-10-09  Stephen L Moshier  <moshier@mediaone.net>
9262         * sysdeps/ieee754/ldbl-96/s_cbrtl.c (__cbrtl): Fix algorithm.
9264 2001-10-14  Ulrich Drepper  <drepper@redhat.com>
9266         * sysdeps/ieee754/ldbl-128/e_powl.c: New file.
9267         * sysdeps/ieee754/ldbl-128/s_cbrtl.c: New file.
9268         Contributed by Stephen L Moshier <moshier@mediaone.net>.
9270         * sysdeps/ieee754/ldbl-128/e_j0l.c: Constify float variables.
9271         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
9272         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise
9273         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise
9274         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise
9275         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise
9277         * timezone/africa: Update from tzdata2001d.
9278         * timezone/asia: Likewise.
9279         * timezone/australasia: Likewise.
9280         * timezone/backward: Likewise.
9281         * timezone/europe: Likewise.
9282         * timezone/leapseconds: Likewise.
9283         * timezone/northamerica: Likewise.
9284         * timezone/southamerica: Likewise.
9285         * timezone/zone.tab: Likewise.
9287 2001-10-09  Martin Schwidefsky  <schwidefsky@de.ibm.com>
9289         * sysdeps/s390/s390-32/sys/ucontext.h: Correct __psw_t typedef.
9290         * sysdeps/s390/s390-64/sys/ucontext.h: Likewise.
9292 2001-10-12  Ulrich Drepper  <drepper@redhat.com>
9294         * elf/elf.h (PT_TLS): New definition.
9296 2001-10-10  Jeff Bailey  <jbailey@nisa.net>
9298         * sysdeps/mach/hurd/Makefile: Add $(CFLAGS) for generation of
9299         bits/errno.h
9301 2001-10-07  Roland McGrath  <roland@frob.com>
9303         * sysdeps/mach/hurd/setrlimit.c (__setrlimit): Never return ENOSYS.
9305 2001-10-10  Ulrich Drepper  <drepper@redhat.com>
9307         * elf/elf.h: Add more ELFOSABI_* constants.
9309 2001-10-04  Ben Collins  <bcollins@debian.org>
9311         * sysdeps/generic/inttypes.h: Fix typo (define, not defined) in
9312         decleration of __need_wchar_t.
9314 2001-10-03  Jakub Jelinek  <jakub@redhat.com>
9316         * string/bits/string2.h (__strsep_g): Add prototype.
9317         (__strsep): Use it.
9318         * string/Versions (__strsep): Remove.
9319         * sysdeps/generic/strsep.c (__strsep_g): Add alias to __strsep.
9321 2001-10-07  Ulrich Drepper  <drepper@redhat.com>
9323         * manua/llio.texi: Clarify file references added by mmap.
9324         Patch by Marcus Brinkmann <Marcus.Brinkmann@ruhr-uni-bochum.de>.
9326 2001-09-29  Jes Sorensen  <jes@trained-monkey.org>
9328         * sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h (struct sigcontext):
9329         Add sc_loadrs and sc_rbs_bas to match current kernel.
9331 2001-09-27  Jakub Jelinek  <jakub@redhat.com>
9333         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Update.
9335         * sysdeps/ieee754/ldbl-128/s_erfl.c (__erfcl): Fix erfc(-inf).
9337 2001-09-27  Jakub Jelinek  <jakub@redhat.com>
9339         * elf/dl-open.c (dl_open_worker): If l_opencount of freshly loaded
9340         object has been bumped because of relocation dependency, avoid
9341         duplicates in l_scope.
9342         (show_scope): Fix typos.
9343         * elf/Makefile: Add rules to build and run reldep6.
9344         * elf/reldep6.c: New file.
9345         * elf/reldep6mod0.c: New file.
9346         * elf/reldep6mod1.c: New file.
9347         * elf/reldep6mod2.c: New file.
9348         * elf/reldep6mod3.c: New file.
9349         * elf/reldep6mod4.c: New file.
9351 2001-09-26  Jakub Jelinek  <jakub@redhat.com>
9353         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_fixup_plt): Call
9354         sparc64_fixup_plt.
9355         (sparc64_fixup_plt): Moved from elf_machine_fixup_plt.  Optimize
9356         near jumps and 0xfffff800XXXXXXXX target addresses, no thread safety
9357         for non-lazy binding. Fix .plt[32768+] handling.
9358         (elf_machine_plt_value): Don't add addend.
9359         (elf_machine_rela): Call sparc64_fixup_plt instead of
9360         elf_machine_fixup_plt.
9361         (elf_machine_runtime_setup, TRAMPOLINE_TEMPLATE): Optimize for
9362         dynamic linker at 0xfffff800XXXXXXXX.
9364         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Update.
9366 2001-09-28  Ulrich Drepper  <drepper@redhat.com>
9368         * elf/elf.h: Define SHF_GROUP and SHF_TLS.
9370 2001-09-25  Jakub Jelinek  <jakub@redhat.com>
9372         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (struct cmsghdr): Don't
9373         declare __cmsg_data field if its size would be bigger than 0.
9374         (CMSG_DATA): Adjust accordingly.
9375         * sysdeps/unix/sysv/aix/bits/socket.h: Likewise.
9376         * sysdeps/unix/sysv/linux/alpha/bits/socket.h: Likewise.
9377         * sysdeps/unix/sysv/linux/ia64/bits/socket.h: Likewise.
9378         * sysdeps/unix/sysv/linux/s390/s390-64/bits/socket.h: Likewise.
9379         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
9380         * sysdeps/unix/sysv/linux/mips/bits/socket.h: Likewise.
9381         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
9383 2001-09-25  Ulrich Drepper  <drepper@redhat.com>
9385         * iconvdata/TESTS: Add entries for IBM1160 and IBM1161.
9386         * iconvdata/testdata/IBM1160: New file.
9387         * iconvdata/testdata/IBM1160..UTF8: New file.
9388         * iconvdata/testdata/IBM1161: New file.
9389         * iconvdata/testdata/IBM1161..UTF8: New file.
9390         Patch by Masahide Washizawa <WASHI@jp.ibm.com>.
9392 2001-09-24  Ulrich Drepper  <drepper@redhat.com>
9394         * sysdeps/unix/bsd/ulimit.c (ulimit): Handle overflow in
9395         UL_SETFSIZE computations better.
9397         * rt/Makefile: Remove use of filter for librt again.
9399         * sysdeps/unix/sysv/linux/ulimit.c (__ulimit): Handle overflow in
9400         UL_SETFSIZE computations better.
9402         * string/Versions: Export __strsep for GLIBC_2.2.5.
9403         * string/bits/string2.h: Define all __STRING_INLINE functions if
9404         _FORCE_INLINES is defined.
9405         Use int instead of char of parameter types.
9406         (__strsep): Don't use __strsep_g.  Don't define it.
9407         (__strsep_1c, __strsep_2c, __strsep_3c): Optimize.
9408         * sysdeps/i386/i486/string.h (__strcpy_a_small): Renamed from
9409         __strcpy_small.
9410         (__stpcpy_a_small): Renamed from __stpcpy_small.
9411         (__strcspn_c1): Don't define if _FORCE_INLINES.
9412         (__strspn_c1): Likewise.
9414 2001-09-22  Ben Collins  <bcollins@debian.org>
9416         * sysdeps/sparc/bits/sigaction.h: Define SA_RESTART and friends when
9417         _UNIX98_SOURCE is defined too.  Matches generic/bits/sigaction.h.
9418         * sysdeps/ia64/bits/sigaction.h: Likewise.
9419         * sysdeps/s390/s390-64/bits/sigaction.h: Likewise.
9421 2001-09-24  Andrew Haley  <aph@cambridge.redhat.com>
9423         * sysdeps/unix/sysv/linux/sh/Makefile (sysdep_headers): Add sys/io.h.
9425 2001-09-24  Jakub Jelinek  <jakub@redhat.com>
9427         * elf/dl-open.c (dl_open_worker): Update l_scope_max.
9429 2001-09-24  Ulrich Drepper  <drepper@redhat.com>
9431         * wcsmbs/wchar.h: Add __attribute_pure__ to mbsinit prototype.
9433 2001-09-20  H.J. Lu  <hjl@gnu.org>
9435         * include/dlfcn.h (__RTLD_SPROF): New definiton.
9436         * elf/dl-open.c (dl_open_worker): Return immediately after loading
9437         for __RTLD_SPROF.
9438         * elf/sprof.c (main): Default to the filename if soname doesn't exist.
9439         (load_shobj): Call dlopen with `RTLD_LAZY | __RTLD_SPROF'.
9441 2001-09-20  H.J. Lu  <hjl@gnu.org>
9443         * elf/dl-profile.c (_dl_mcount): Use old *narcsp value for newarc,
9444         don't add 1.
9446 2001-09-22  Ulrich Drepper  <drepper@redhat.com>
9448         * nss/getent.c: Accept -s parameter to overwrite rules in
9449         nsswitch.conf.  Patch by Nalin Dahyabhai <nalin@redhat.com>.
9451         * nss/nss_files/files-network.c (LINE_PARSER): Pad addr string
9452         with as many ".0" as necessary to form a complete address
9453         inet_network understands.
9455         * nss/getent.c: Various cleanups.  Use simpler and fewer function
9456         calls.
9458 2001-09-20  Martin Schwidefsky  <schwidefsky@de.ibm.com>
9460         * sysdeps/s390/s390-32/bits/setjmp.h: Correct pointer comparison in
9461         _JMPBUF_UNWINDS.
9462         * sysdeps/s390/s390-64/bits/setjmp.h: Likewise.
9464 2001-09-22  Ulrich Drepper  <drepper@redhat.com>
9466         * iconvdata/Makefile: Add rules to build and distribute IBM1160 and
9467         IBM1161.
9468         * iconvdata/gconv-modules: Add entries for IBM1160 and IBM1161.
9469         * iconvdata/ibm1160.c: New file.
9470         * iconvdata/ibm1160.h: New file.
9471         * iconvdata/ibm1161.c: New file.
9472         * iconvdata/ibm1161.h: New file.
9473         Patch by Masahide Washizawa <WASHI@jp.ibm.com>.
9475 2001-09-19  Jakub Jelinek  <jakub@redhat.com>
9477         * sysdeps/alpha/dl-machine.h (elf_machine_load_address): Compute the
9478         difference between base address and first PT_LOAD's virtual address,
9479         not the base address.
9481 2001-09-11  Tom Rix  <trix@redhat.com>
9483         * sysdeps/unix/sysv/aix/init-first.c (init):  Use USE_NONONPTION_FLAG
9484         ifdef for __getopt_clean_environment.
9485         * sysdeps/unix/sysv/aix/libc-start.c: Add real implementation.
9487 2001-09-22  Andreas Jaeger  <aj@suse.de>
9489         * elf/reldep4.c (main): Add proper prototype to fix warning.
9491         * elf/reldep5.c (main): Remove unused variable.
9493         * math/math_private.h: Add prototypes.
9495 2001-09-21  Andreas Jaeger  <aj@suse.de>
9497         * sysdeps/unix/sysv/linux/x86_64/Dist: New file.
9498         * sysdeps/x86_64/Dist: New file.
9499         * sysdeps/x86_64/soft-fp/Dist: New file.
9501         * sysdeps/gnu/Dist: Remove eval.c.
9503 2001-09-20  Ulrich Drepper  <drepper@redhat.com>
9505         * malloc/memusage.c (realloc): Don't count already allocated
9506         memory in the sums.
9507         (me): Always use dlsym() to find the real implementations.
9509         * malloc/memusage.sh: Make -n option actually do something.
9511 2001-09-20  Andreas Jaeger  <aj@suse.de>
9513         * elf/elf.h (R_390_NUM): Correct value.
9515         * Versions.def: Add missing versions 2.2.3 for libthread_db and
9516         libpthread.
9518         * sysdeps/unix/sysv/linux/configure.in: Add minimal kernel version
9519         for x86-64, install x86-64 into */lib64.
9521         * shlib-versions: Add x86-64.
9523         * elf/elf.h: Add x86-64 relocations.
9525 2001-09-19  Ulrich Drepper  <drepper@redhat.com>
9527         * po/fr.po: Update from translation team.
9529 2001-09-19  Andreas Jaeger  <aj@suse.de>
9531         * sysdeps/unix/sysv/linux/x86_64/Makefile: New file.
9532         * sysdeps/unix/sysv/linux/x86_64/Versions: New file.
9533         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: New file.
9534         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: New file.
9535         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: New file.
9536         * sysdeps/unix/sysv/linux/x86_64/bits/statfs.h: New file.
9537         * sysdeps/unix/sysv/linux/x86_64/bits/time.h: New file.
9538         * sysdeps/unix/sysv/linux/x86_64/bits/types.h: New file.
9539         * sysdeps/unix/sysv/linux/x86_64/brk.c: New file.
9540         * sysdeps/unix/sysv/linux/x86_64/clone.S: New file.
9541         * sysdeps/unix/sysv/linux/x86_64/fstatfs64.c: New file.
9542         * sysdeps/unix/sysv/linux/x86_64/ftruncate64.c: New file.
9543         * sysdeps/unix/sysv/linux/x86_64/fxstat.c: New file.
9544         * sysdeps/unix/sysv/linux/x86_64/fxstat64.c: New file.
9545         * sysdeps/unix/sysv/linux/x86_64/getdents.c: New file.
9546         * sysdeps/unix/sysv/linux/x86_64/getdents64.c: New file.
9547         * sysdeps/unix/sysv/linux/x86_64/getrlimit64.c: New file.
9548         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: New file.
9549         * sysdeps/unix/sysv/linux/x86_64/glob64.c: New file.
9550         * sysdeps/unix/sysv/linux/x86_64/lxstat.c: New file.
9551         * sysdeps/unix/sysv/linux/x86_64/lxstat64.c: New file.
9552         * sysdeps/unix/sysv/linux/x86_64/mmap64.c: New file.
9553         * sysdeps/unix/sysv/linux/x86_64/pread64.c: New file.
9554         * sysdeps/unix/sysv/linux/x86_64/profil-counter.h: New file.
9555         * sysdeps/unix/sysv/linux/x86_64/pwrite64.c: New file.
9556         * sysdeps/unix/sysv/linux/x86_64/readdir.c: New file.
9557         * sysdeps/unix/sysv/linux/x86_64/readdir64.c: New file.
9558         * sysdeps/unix/sysv/linux/x86_64/readdir64_r.c: New file.
9559         * sysdeps/unix/sysv/linux/x86_64/readdir_r.c: New file.
9560         * sysdeps/unix/sysv/linux/x86_64/recv.c: New file.
9561         * sysdeps/unix/sysv/linux/x86_64/register-dump.h: New file.
9562         * sysdeps/unix/sysv/linux/x86_64/send.c: New file.
9563         * sysdeps/unix/sysv/linux/x86_64/setrlimit64.c: New file.
9564         * sysdeps/unix/sysv/linux/x86_64/sigaction.c: New file.
9565         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: New file.
9566         * sysdeps/unix/sysv/linux/x86_64/sigpending.c: New file.
9567         * sysdeps/unix/sysv/linux/x86_64/sigprocmask.c: New file.
9568         * sysdeps/unix/sysv/linux/x86_64/sigsuspend.c: New file.
9569         * sysdeps/unix/sysv/linux/x86_64/statfs64.c: New file.
9570         * sysdeps/unix/sysv/linux/x86_64/sys/perm.h: New file.
9571         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: New file.
9572         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: New file.
9573         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: New file.
9574         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: New file.
9575         * sysdeps/unix/sysv/linux/x86_64/syscall.S: New file.
9576         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: New file.
9577         * sysdeps/unix/sysv/linux/x86_64/sysdep.S: New file.
9578         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: New file.
9579         * sysdeps/unix/sysv/linux/x86_64/time.c: New file.
9580         * sysdeps/unix/sysv/linux/x86_64/truncate64.c: New file.
9581         * sysdeps/unix/sysv/linux/x86_64/umount.c: New file.
9582         * sysdeps/unix/sysv/linux/x86_64/vfork.S: New file.
9583         * sysdeps/unix/sysv/linux/x86_64/xstat.c: New file.
9584         * sysdeps/unix/sysv/linux/x86_64/xstat64.c: New file.
9585         * sysdeps/unix/x86_64/sysdep.S: New file.
9586         * sysdeps/unix/x86_64/sysdep.h: New file.
9587         * sysdeps/x86_64/Implies: New file.
9588         * sysdeps/x86_64/Makefile: New file.
9589         * sysdeps/x86_64/Versions: New file.
9590         * sysdeps/x86_64/__longjmp.S: New file.
9591         * sysdeps/x86_64/abort-instr.h: New file.
9592         * sysdeps/x86_64/atomicity.h: New file.
9593         * sysdeps/x86_64/bits/endian.h: New file.
9594         * sysdeps/x86_64/bits/setjmp.h: New file.
9595         * sysdeps/x86_64/bits/string.h: New file.
9596         * sysdeps/x86_64/bp-asm.h: New file.
9597         * sysdeps/x86_64/bsd-_setjmp.S: New file.
9598         * sysdeps/x86_64/bsd-setjmp.S: New file.
9599         * sysdeps/x86_64/dl-machine.h: New file.
9600         * sysdeps/x86_64/elf/initfini.c: New file.
9601         * sysdeps/x86_64/elf/start.S: New file.
9602         * sysdeps/x86_64/ffs.c: New file.
9603         * sysdeps/x86_64/ffsll.c: New file.
9604         * sysdeps/x86_64/fpu/bits/fenv.h: New file.
9605         * sysdeps/x86_64/fpu/bits/mathdef.h: New file.
9606         * sysdeps/x86_64/fpu/e_acosl.c: New file.
9607         * sysdeps/x86_64/fpu/e_atan2l.c: New file.
9608         * sysdeps/x86_64/fpu/e_exp2l.S: New file.
9609         * sysdeps/x86_64/fpu/e_expl.c: New file.
9610         * sysdeps/x86_64/fpu/e_fmodl.S: New file.
9611         * sysdeps/x86_64/fpu/e_log10l.S: New file.
9612         * sysdeps/x86_64/fpu/e_log2l.S: New file.
9613         * sysdeps/x86_64/fpu/e_logl.S: New file.
9614         * sysdeps/x86_64/fpu/e_powl.S: New file.
9615         * sysdeps/x86_64/fpu/e_rem_pio2l.c: New file.
9616         * sysdeps/x86_64/fpu/e_scalbl.S: New file.
9617         * sysdeps/x86_64/fpu/e_sqrtl.c: New file.
9618         * sysdeps/x86_64/fpu/fclrexcpt.c: New file.
9619         * sysdeps/x86_64/fpu/fedisblxcpt.c: New file.
9620         * sysdeps/x86_64/fpu/feenablxcpt.c: New file.
9621         * sysdeps/x86_64/fpu/fegetenv.c: New file.
9622         * sysdeps/x86_64/fpu/fegetexcept.c: New file.
9623         * sysdeps/x86_64/fpu/fegetround.c: New file.
9624         * sysdeps/x86_64/fpu/feholdexcpt.c: New file.
9625         * sysdeps/x86_64/fpu/fesetenv.c: New file.
9626         * sysdeps/x86_64/fpu/fesetround.c: New file.
9627         * sysdeps/x86_64/fpu/fgetexcptflg.c: New file.
9628         * sysdeps/x86_64/fpu/fraiseexcpt.c: New file.
9629         * sysdeps/x86_64/fpu/fsetexcptflg.c: New file.
9630         * sysdeps/x86_64/fpu/ftestexcept.c: New file.
9631         * sysdeps/x86_64/fpu/libm-test-ulps: New file.
9632         * sysdeps/x86_64/fpu/math_ldbl.h: New file.
9633         * sysdeps/x86_64/fpu/printf_fphex.c: New file.
9634         * sysdeps/x86_64/fpu/s_atanl.c: New file.
9635         * sysdeps/x86_64/fpu/s_cosl.S: New file.
9636         * sysdeps/x86_64/fpu/s_expm1l.S: New file.
9637         * sysdeps/x86_64/fpu/s_fpclassifyl.c: New file.
9638         * sysdeps/x86_64/fpu/s_isinfl.c: New file.
9639         * sysdeps/x86_64/fpu/s_isnanl.c: New file.
9640         * sysdeps/x86_64/fpu/s_log1pl.S: New file.
9641         * sysdeps/x86_64/fpu/s_logbl.c: New file.
9642         * sysdeps/x86_64/fpu/s_nextafterl.c: New file.
9643         * sysdeps/x86_64/fpu/s_nexttoward.c: New file.
9644         * sysdeps/x86_64/fpu/s_nexttowardf.c: New file.
9645         * sysdeps/x86_64/fpu/s_rintl.c: New file.
9646         * sysdeps/x86_64/fpu/s_significandl.c: New file.
9647         * sysdeps/x86_64/fpu/s_sincosl.S: New file.
9648         * sysdeps/x86_64/fpu/s_sinl.S: New file.
9649         * sysdeps/x86_64/fpu/s_tanl.S: New file.
9650         * sysdeps/x86_64/gmp-mparam.h: New file.
9651         * sysdeps/x86_64/hp-timing.c: New file.
9652         * sysdeps/x86_64/hp-timing.h: New file.
9653         * sysdeps/x86_64/htonl.S: New file.
9654         * sysdeps/x86_64/memusage.h: New file.
9655         * sysdeps/x86_64/setjmp.S: New file.
9656         * sysdeps/x86_64/soft-fp/sfp-machine.h: New file.
9657         * sysdeps/x86_64/stackinfo.h: New file.
9658         * sysdeps/x86_64/sysdep.h: New file.
9659         * sysdeps/unix/sysv/linux/x86_64/ldd-rewrite.sed: New file.
9661         * sysdeps/ieee754/ldbl-128/s_erfl.c: New file, contributed Stephen
9662         L Moshier.
9664 2001-09-18  Ulrich Drepper  <drepper@redhat.com>
9666         * malloc/malloc.c (ptmalloc_init): Handle _environ==NULL.
9667         Reported by B. D. Elliott <bde@nwlink.com> [PR libc/2541].
9669 2001-09-18  Andreas Schwab  <schwab@suse.de>
9671         * elf/dl-load.c (_dl_map_object_from_fd): Update handling of scope
9672         list, now that l_scope is a pointer.
9674         * elf/dl-open.c (dl_open_worker): Fix thinko when enlarging the
9675         scope list.
9677 2001-09-18  kaz Kojima  <kkojima@rr.iij4u.or.jp>
9679         * sysdeps/sh/dl-machine.h (elf_machine_rela): Fix reverse condition.
9680         (elf_machine_rela_relative): Add a missing declaration.
9682 2001-09-18  Jakub Jelinek  <jakub@redhat.com>
9684         * sysdeps/unix/sysv/linux/ia64/ldd-rewrite.sed: New file.
9685         * sysdeps/unix/sysv/linux/s390/ldd-rewrite.sed: New file.
9686         * sysdeps/unix/sysv/linux/configure.in: Add ia64 and s390
9687         ldd-rewrite scripts.
9689 2001-09-18  Ulrich Drepper  <drepper@redhat.com>
9691         * elf/ldd.bash.in: Update copyright message.
9693 2001-09-17  H.J. Lu  <hjl@gnu.org>
9695         * hurd/hurdmalloc.c (bcopy): Removed.
9696         (realloc): Replace bcopy with memcpy.
9697         * hurd/path-lookup.c (file_name_path_scan): Likewise.
9698         * resolv/gethnamaddr.c (map_v4v6_address): Likewise.
9699         * sunrpc/rpcinfo.c (pmapdump): Likewise.
9701         * resolv/gethnamaddr.c (getanswer): Replace bcopy with memmove.
9702         (gethostbyaddr): Likewise.
9703         * sunrpc/rpcinfo.c (get_inet_address): Likewise.
9705 2001-09-18  Ulrich Drepper  <drepper@redhat.com>
9707         * sysdeps/gnu/eval.c: Removed.
9709 2001-09-18  Andreas Jaeger  <aj@suse.de>
9711         * sysdeps/i386/fpu/s_logbl.S: Move to ...
9712         * sysdeps/i386/fpu/s_logbl.c: ...here, use inline assembler.
9714         * sysdeps/i386/fpu/s_rintl.S: Move to ...
9715         * sysdeps/i386/fpu/s_rintl.c: ...here, use inline assembler.
9717         * sysdeps/i386/fpu/s_significandl.S: Move to ...
9718         * sysdeps/i386/fpu/s_significandl.c: ...here, use inline assembler.
9720 2001-09-16  Ulrich Drepper  <drepper@redhat.com>
9722         * string/strcoll.c [USE_IN_EXTENDED_LOCALE_MODEL]: Correctly get
9723         nrules value.
9725 2001-09-14  H.J. Lu  <hjl@gnu.org>
9727         * sysdeps/mips/fpu/libm-test-ulps: Updated.
9729 2001-09-14  Ulrich Drepper  <drepper@redhat.com>
9731         * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Fix a typo.
9732         Patch by Florian La Roche <laroche@redhat.com>.
9734         * string/bits/string2.h (__strtok_r_1c): Optimize a bit.
9736         * sysdeps/unix/sysv/linux/net/ethernet.h: Correct references to
9737         ETHER_CRC_LEN.
9739 2001-09-14  Andreas Schwab  <schwab@suse.de>
9741         * posix/execl.c: Fix last argument of memcpy.  Reported by Brian
9742         Sumner <bls@sgi.com>.
9743         * posix/execlp.c: Likewise.
9745 2001-09-13  Jakub Jelinek  <jakub@redhat.com>
9747         * elf/dl-deps.c (_dl_map_object_deps): Fix filter handling if filter
9748         is already found earlier in the search scope.
9750 2001-09-12  Jakub Jelinek  <jakub@redhat.com>
9752         * rt/Makefile (LDFLAGS-rt.so): Use shared thread library as librt's
9753         filter.
9755 2001-09-13  Ulrich Drepper  <drepper@redhat.com>
9757         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust expected errors for j0.
9759 2001-09-12  Ulrich Drepper  <drepper@redhat.com>
9761         * config.h.in: Enforce optimization to be used.
9762         * Makeconfig (preprocess-versions): Define ASSEMBLER.
9763         * stdlib/Makefile (isomac-CFLAGS): Define to -O.
9764         * posix/Makefile (annexc-CFLAGS): Define to -O.
9765         * sysdeps/unix/make-syscalls.sh: Define __OPTIMIZE__ in use of asm_CPP.
9767 2001-09-11  Ulrich Drepper  <drepper@redhat.com>
9769         * nscd/nscd_gethst_r.c: Don't expect IPv6 addresses for IPv4 lookup.
9770         Patch by Stephan Kulow.
9772 2001-09-08  Ben Collins  <bcollins@debian.org>
9774         * sysdeps/arm/dl-machine.h (elf_machine_rel): Fix thinko in
9775         usage of RESOLVE() (r_type, not reloc->r_type).
9777 2001-09-08  Ulrich Drepper  <drepper@redhat.com>
9779         * elf/dl-object.c: Avoid allocating extra memory block for name.
9780         * elf/dl-close.c (_dl_close): Don't free l_libname if it is not
9781         allocated separately.
9782         * elf/dl-load.c (_dl_map_object_from_fd): Likewise.
9784 2001-09-08  H.J. Lu  <hjl@gnu.org>
9786         * po/zh_TW.po: Fix a typo.
9788 2001-09-07  Tom Rix  <trix@redhat.com>
9790         * sysdeps/unix/sysv/aix/sysv_termio.h: New file.
9792 2001-08-26  Tom Rix  <trix@redhat.com>
9794         * sysdeps/unix/sysv/aix/Makefile (aix-syscalls.o): More linker
9795         command line options.
9796         * sysdeps/unix/sysv/aix/start.s: New file, rework of start.c
9797         * sysdeps/unix/sysv/aix/start.c: Removed.
9798         * sysdeps/unix/sysv/aix/start-libc.c: New file.
9799         * sysdeps/unix/sysv/aix/init-first.c: New file.
9800         * sysdeps/unix/sysv/aix/fcntl.c: Alias __libc_fcntl to __fcntl.
9802 2001-09-08  Ben Collins  <bcollins@debian.org>
9804         * sysdeps/arm/dl-machine.h: Fix usage of new _dl_signal_error() format.
9805         * sysdeps/generic/dl-machine.h: Likewise.
9806         * sysdeps/hppa/dl-fptr.c: Likewise.
9807         * sysdeps/ia64/dl-fptr.c: Likewise.
9808         * sysdeps/mach/hurd/dl-sysdep.c: Likewise.
9809         * sysdeps/mips/dl-machine.h: Likewise.
9810         * sysdeps/mips/mips64/dl-machine.h: Likewise.
9811         * sysdeps/powerpc/dl-machine.c: Likewise.
9813 2001-09-07  Ben Collins  <bcollins@debian.org>
9815         * sysdeps/sparc/sparc32/dl-machine.h: Fix typo.
9817         * sysdeps/hppa/dl-lookupcfg.h: Forward declare struct link_map.
9819 2001-09-08  Ulrich Drepper  <drepper@redhat.com>
9821         * elf/dl-lookup.c (add_dependency): Bump l_opencount of all
9822         dependencies if necessary.
9824         * elf/dl-close.c (_dl_close): If object has no r_list (i.e., wasn't
9825         loaded directly) determine length if l_initfini list by iterating
9826         over its elements.  Minor optimizations.
9827         * elf/dl-deps.c (_dl_map_object_deps): Always add own map to l_initfini
9828         for dependency objects.
9829         If object was already loaded check whether any of the dependencies
9830         is already on the relocation dependency list.  If yes, remove the
9831         latter.  Minor optimizations.
9832         * elf/dl-lookup.c (add_dependency): Add check for self reference of
9833         maps here.  Search l_initfini list only if the object was loaded
9834         directly and not only as a dependency.
9835         (_dl_lookup_symbol): Add relocation dependency also if object
9836         is not in global scope.  Remove test for self-reference here.
9837         (_dl_lookup_versioned_symbol): Likewise.
9838         * elf/dl-object (_dl_new_object): Cleanup.  Initialize dont_free
9839         element of first name record.
9840         * elf/loadtest.c: Add some more test to recognize early if an object
9841         wasn't unloaded.
9842         * elf/Makefile: Add rules to build and run reldep5.
9843         * elf/reldep5.c: New file.
9844         * elf/reldepmod5.c: New file.
9845         * elf/reldepmod6.c: New file.
9847         * elf/reldep2.c: Fix typo.
9849 2001-09-07  Ulrich Drepper  <drepper@redhat.com>
9851         * include/link.h (struct link_map): Add l_scope_mem and l_scope_max
9852         elements.  Change l_scope to be a pointer only.
9853         * elf/dl-object.c (_dl_new_object): Initialize l_scope and l_scope_max.
9854         * elf/dl-open.c (dl_open_worker): If dependency wasn't just opened
9855         here add searchlist of newly open file to the dependency's scope.
9856         * elf/dl-close.c (_dl_close): If dependency is used otherwise remove
9857         only searchlist from its scope.  Free own scope array if necessary.
9858         * elf/Makefile (tests): Add dblload and dblunload now.
9860 2001-09-06  Andreas Jaeger  <aj@suse.de>
9862         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: New file, contributed
9863         Stephen L Moshier.
9865 2001-09-05  Ulrich Drepper  <drepper@redhat.com>
9867         * elf/Makefile: Add rules to build new tests.  Don't run them yet since
9868         they both fail.
9869         * elf/dblload.c: New file.
9870         * elf/dblloadmod1.c: New file.
9871         * elf/dblloadmod2.c: New file.
9872         * elf/dblloadmod3.c: New file.
9873         * elf/dblunload.c: New file.
9875 2001-09-04  Richard Henderson  <rth@redhat.com>
9877         * elf/elf.h (R_ALPHA_OP_*, R_ALPHA_IMMED_*): Remove.
9878         (R_ALPHA_GPREL16): Rename from R_ALPHA_IMMED_GP_16.
9880 2001-09-04  Ulrich Drepper  <drepper@redhat.com>
9882         Correct very misleading message for error in failed runtime relocation.
9883         * elf/dl-error.c (_dl_signal_error): Take extra parameter to describe
9884         place of the error.
9885         (_dl_signal_cerror): Likewise.
9886         * sysdeps/generic/ldsodefs.h: Adjust prototypes.
9887         * elf/dl-close.c: Likewise.
9888         * elf/dl-deps.c: Likewise.
9889         * elf/dl-load.c: Likewise.
9890         * elf/dl-lookup.c: Likewise.
9891         * elf/dl-open.c: Likewise.
9892         * elf/dl-reloc.c: Likewise.
9893         * elf/dl-sym.c: Likewise.
9894         * elf/dl-version.c: Likewise.
9895         * sysdeps/generic/dl-sysdep.c: Likewise.
9897 2001-09-04  Jakub Jelinek  <jakub@redhat.com>
9899         * iconv/strtab.c (strtabinit): Initialize null Strent.
9900         (newstring): Move len == 0 handling...
9901         (strtabadd): ...here.
9902         If len == 1, return null Strent.
9903         When inserting a suffix of an existing string, check if
9904         it is not equal to some suffix already recorded.
9905         Copy left and right members over if adding longer string.
9907 2001-09-04  Jakub Jelinek  <jakub@redhat.com>
9909         * sunrpc/rpc_cout.c (upcase): Account for trailing '\0'.
9911         * sysdeps/unix/sysv/linux/alpha/gethostname.c: Include <errno.h>.
9912         (__syscall_gethostname): Add prototype.
9914 2001-09-04  Ulrich Drepper  <drepper@redhat.com>
9916         * elf/dl-object.c (_dl_new_object): Remove unnecessary if.
9918 2001-09-02  Ulrich Drepper  <drepper@redhat.com>
9920         * elf/rtld.c (dl_main): Increment l_opencount for main binary.
9922 2001-08-27  Roland McGrath  <roland@frob.com>
9924         * sysdeps/unix/sysv/gethostname.c (__gethostname): When LEN is too
9925         short, copy that much into NAME anyway before returning error.
9927 2001-09-01  Richard Henderson  <rth@redhat.com>
9929         * sysdeps/alpha/elf/Dist: Remove file.
9930         * sysdeps/alpha/elf/Makefile: Remove file.
9931         * sysdeps/alpha/elf/crtbegin.S: Remove file.
9932         * sysdeps/alpha/elf/crtend.S: Remove file.
9933         * sysdeps/alpha/elf/initfini.c: New file.
9935 2001-09-01  Mark Kettenis  <kettenis@gnu.org>
9937         * iconv/tst-iconv1.c: Include <stddef.h> for wchar_t.
9938         * iconv/tst-iconv3.c: Likewise.
9940 2001-09-01  Jakub Jelinek  <jakub@redhat.com>
9942         * sysdeps/generic/inttypes.h (__gwchar_t): Define to wchar_t for C++.
9944 2001-09-01  Ulrich Drepper  <drepper@redhat.com>
9946         * iconv/gconv_cache.c: Rename variable cache to __gconv_cache and
9947         export it.
9948         * iconv/Versions (libc) [GLIBC_2.2.5]: Export __gconv_cache.
9949         * iconv/iconv_prog.c (insert_cache): New function.
9950         (print_known_names): If cache is used call insert_cache to use the
9951         information from the cache [PR libc/2509].
9953 2001-08-31  Ulrich Drepper  <drepper@redhat.com>
9955         * time/strptime.c (strptime_internal): Recognize 'l' format and
9956         handle it like 'I' for symmetry with strftime.
9958 2001-08-31  Richard Henderson  <rth@redhat.com>
9960         * elf/dl-support.c (_dl_cpuclock_offset): Protect with NONAVAIL.
9961         (HP_TIMING_AVAIL): Set to HP_SMALL_TIMING_AVAIL if present.
9962         * elf/rtld.c (HP_TIMING_AVAIL): Likewise.
9963         (print_statistics): Make scalar unsigned long long.
9964         * sysdeps/alpha/hp-timing.h: New file.
9966 2001-08-31  Jakub Jelinek  <jakub@redhat.com>
9968         * stdio-common/perror.c (perror): Save errno early, pass it
9969         down to perror_internal.
9970         (perror_internal): Add errnum argument.
9972 2001-08-31  Jakub Jelinek  <jakub@redhat.com>
9974         * sysdeps/alpha/dl-machine.h (elf_machine_rela): Remove unused code.
9975         Don't add old memory content for R_ALPHA_REFQUAD.
9977 2001-08-30  Ulrich Drepper  <drepper@redhat.com>
9979         * crypt/md5-crypt.c (__md5_crypt_r): Compute used and required
9980         memory correctly.
9982         * sysdeps/unix/sysv/linux/ia64/ioperm.c (_ioperm): Use __open
9983         instead of open, __close instead of close, __getpagesize instead
9984         of getpagesize.
9986         * string/argz-stringify.c (__argz_stringify): Use __strnlen
9987         instead of strnlen.
9988         * include/string.h (strndupa): Redefine here to use __strnlen
9989         instead of strnlen.
9990         * string/strndup.c (__strndup): Use __strnlen not strnlen.
9992         * misc/syslog.c (vsyslog): Fix typo in last change (connect ->
9993         connected).
9995 2001-08-30  Jakub Jelinek  <jakub@redhat.com>
9997         * sysdeps/alpha/dl-machine.h (elf_machine_rela): Don't handle
9998         R_ALPHA_RELATIVE if RTLD_BOOTSTRAP and HAVE_Z_COMBRELOC.  Only check
9999         for rtld map if neither RTLD_BOOTSTRAP nor HAVE_Z_COMBRELOC is defined.
10000         * sysdeps/i386/dl-machine.h (elf_machine_rel): Similarly.
10001         * sysdeps/ia64/dl-machine.h (elf_machine_rel): Similarly.
10002         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rel): Similarly.
10003         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rel): Similarly.
10005 2001-08-30  Ulrich Drepper  <drepper@redhat.com>
10007         * sysdeps/alpha/fpu/libm-test-ulps: Adjust j0 ULPs.
10009 2001-08-30  Andreas Jaeger  <aj@suse.de>
10011         * sysdeps/ieee754/ldbl-128/e_jnl.c: New file,
10012         contributed Stephen L Moshier.
10014 2001-08-30  Jakub Jelinek  <jakub@redhat.com>
10016         * sunrpc/etc.rpc (sgi_fam): Add.
10018 2001-08-30  Ulrich Drepper  <drepper@redhat.com>
10020         * sysdeps/unix/sysv/linux/alpha/gethostname.c: New file.
10022 2001-08-29  Ulrich Drepper  <drepper@redhat.com>
10024         * nis/nis_findserv.c (__nis_findfastest): Don't fail if reply received
10025         first is from a previous call.
10026         Patch by Alexander Belopolsky <alexb@rentec.com> for [PR libc/3670].
10028 2001-08-29  Andreas Schwab  <schwab@suse.de>
10030         * sysdeps/ia64/fpu/libm-test-ulps: Updated.
10032 2001-08-25  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
10034         * config.make.in (INSTALL_SCRIPT): Define.
10035         * Makeconfig (INSTALL_SCRIPT): Define.
10036         * Makerules (do-install-script): New macro to install scripts using
10037         INSTALL_SCRIPT.
10038         (install-bin-script): New rule to install scripts with
10039         do-install-script.
10040         (install-bin-script-nosubdir): New rule.
10041         (install-no-libc.a-nosubdir): Add install-bin-script-nosubdir.
10042         (distinfo-vars): Add $(install-bin-script).
10043         * Rules (others): Likewise.
10044         * Makefile (glibcbug): Install with install-bin-script.
10045         * debug/Makefile (xtrace): Likewise.
10046         (catchsegv): Likewise.
10047         * elf/Makefile (ldd): Likewise.
10048         * malloc/Makefile (mtrace): Likewise.
10049         * timezone/Makefile (tzselect): Likewise.
10051 2001-08-29  H.J. Lu  <hjl@gnu.org>
10053         * sysdeps/mips/dl-machine.h (__dl_runtime_resolve): Pass
10054         ELF_RTYPE_CLASS_PLT, instead of R_MIPS_REL32, to
10055         _dl_lookup_versioned_symbol () and _dl_lookup_symbol ().
10057 2001-08-29  Andreas Schwab  <schwab@suse.de>
10059         * sysdeps/m68k/fpu/libm-test-ulps: Updated.
10061 2001-08-28  H.J. Lu  <hjl@gnu.org>
10063         * Makeconfig (combreloc-LDFLAGS): New variable.
10064         Add it to LDFLAGS.so, LDFLAGS-rtld, and +link.
10065         * config.make.in (have-z-combreloc): New variable.
10066         * configure.in: Substitute libc_cv_z_combreloc.
10068 2001-08-29  Ulrich Drepper  <drepper@redhat.com>
10070         * po/sv.po: Update from translation team.
10071         * po/fr.po: Likewise.
10072         * po/da.po: Likewise.
10074 2001-08-28  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
10076         * Makerules: Fix a typo: MD% -> MD5.
10078 2001-08-28  Ulrich Drepper  <drepper@redhat.com>
10080         * sunrpc/rpc_hout.c (pargdef): Function must take pointer to object.
10081         Patch by Patrick Duval <Patrick.Duval@devinci.fr>.
10083 2001-08-28  Andreas Jaeger  <aj@suse.de>
10085         * manual/libc-texinfo.sh: Add entry about free manuals.
10087         * manual/contrib.texi (Contributors): Fix cross reference.
10089         * manual/libc.texinfo (Copying): Include freemanuals.
10091         * manual/Makefile (appendices): Add freemanuals.
10093         * manual/freemanuals.texi: New file.
10094         Patch by Brian Youmans <3diff@gnu.org>.
10096         * manual/libm-err-tab.pl: Pretty print more platforms, print a
10097         smaller table.
10099         * manual/math.texi (Errors in Math Functions): Fix grammar, start
10100         table on separate page.
10101         Patch by Brian Youmans <3diff@gnu.org>.
10103 2001-08-27  Ulrich Drepper  <drepper@redhat.com>
10105         * misc/syslog.c (vsyslog): Try a bit harder to use syslogd.  If
10106         the connection went down after we first used it try to connect
10107         again and resend the message before printing to the console.
10108         Reported by Coserea Gh. Tudor <tudore@tudore.gecadsoftware.com>.
10110 2001-08-27  Jakub Jelinek  <jakub@redhat.com>
10112         * string/tst-strlen.c (main): Test strnlen (, -1) too.
10113         * sysdeps/generic/strnlen.c (__strnlen): Fix for maxlens with top
10114         bit set.
10116 2001-08-27  Ulrich Drepper  <drepper@redhat.com>
10118         * iconv/strtab.c (searchstring): Use correct length for comparison.
10119         (strtabadd): Account total size correct if new string has old string as
10120         substring.
10122 2001-08-27  Jakub Jelinek  <jakub@redhat.com>
10124         * elf/rtld.c (dl_main): Update call to _dl_lookup_symbol.
10126 2001-08-27  Andreas Jaeger  <aj@suse.de>
10128         * sysdeps/i386/fpu/libm-test-ulps (float): Add ulps for new tests.
10130         * math/libm-test.inc (j0_test): Add extra tests.
10131         * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_j0l): Use |x|,
10132         not x, in Hankel approximation.
10133         Patches by Stephen L Moshier.
10135 2001-08-26  Ulrich Drepper  <drepper@redhat.com>
10137         * sysdeps/ia64/dl-lookupcfg.h: Add forward declaration for struct
10138         link_map.
10140         * configure.in: Fix test for .rela.dyn section.
10142         * elf/dl-runtime.c: Update calls to _dl_lookup_*.
10144 2001-08-26  Jakub Jelinek  <jakub@redhat.com>
10146         * elf/dl-reloc.c (RESOLVE_MAP, RESOLVE): Use elf_machine_type_class
10147         instead of elf_machine_lookup_noexec_p and elf_machine_lookup_noplt_p.
10148         Pass type_class to _dl_lookup_*.
10149         * elf/dl-lookup.c (_dl_lookup_symbol): Take type_class parameter now.
10150         Pass around just type_class instead of noexec, noplt pair.
10151         (_dl_lookup_versioned_symbol): Likewise.
10152         (_dl_lookup_symbol_skip): Pass around just type_class instead of
10153         noexec, noplt pair.
10154         (_dl_lookup_versioned_symbol_skip): Likewise.
10155         (_dl_do_lookup, _dl_do_lookup_versioned): Likewise.
10156         * elf/do-lookup.h (do_lookup): Likewise.
10157         * include/link.h (struct link_map): Replace noexec and noplt fields
10158         in l_lookup_cache with type_class field.
10159         * sysdeps/generic/ldsodefs.h (ELF_RTYPE_CLASS_PLT,
10160         ELF_RTYPE_CLASS_COPY): Define.
10161         Adjust prototypes for _dl_lookup_symbol and
10162         _dl_lookup_versioned_symbol.
10163         * sysdeps/alpha/dl-machine.h (elf_machine_lookup_noplt_p,
10164         elf_machine_lookup_noexec_p): Remove.
10165         (elf_machine_type_class): Define.
10166         * sysdeps/arm/dl-machine.h: Likewise.
10167         * sysdeps/hppa/dl-machine.h: Likewise.
10168         * sysdeps/cris/dl-machine.h: Likewise.
10169         * sysdeps/i386/dl-machine.h: Likewise.
10170         * sysdeps/ia64/dl-machine.h: Likewise.
10171         * sysdeps/m68k/dl-machine.h: Likewise.
10172         * sysdeps/mips/mips64/dl-machine.h: Likewise.
10173         * sysdeps/mips/dl-machine.h: Likewise.
10174         * sysdeps/powerpc/dl-machine.h: Likewise.
10175         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
10176         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
10177         * sysdeps/sh/dl-machine.h: Likewise.
10178         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
10179         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
10181 2001-08-26  Ulrich Drepper  <drepper@redhat.com>
10183         * manual/message.texi (Advanced gettext functions): Change
10184         description of plural forms for Slovak.
10185         Reported by Marcel Telka <marcel@telka.sk>.
10187         * manuaL/time.texi (Low-Level Time String Parsing): Fix description of
10188         %z.  Reported by C. Scott Ananian <cananian@lesser-magoo.lcs.mit.edu>.
10190 2001-08-26  Jakub Jelinek  <jakub@redhat.com>
10192         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_lazy_rel): Fix a
10193         typo.  Patch by Florian La Roche <laroche@redhat.com>.
10195 2001-08-26  Ulrich Drepper  <drepper@redhat.com>
10197         * include/link.h (struct link_map): Add l_lookup_cache element.
10198         * elf/dl-reloc.c (RESOLVE): Add symbol caching here.
10199         (RESOLVE_MAP): Likewise.
10200         (_dl_relocate_object): Remove cache initialization.
10201         * elf/dl-lookup.c: Rip out cache handling code.
10202         * sysdeps/generic/ldsodefs.h: Remove lookup_cache struct and variable
10203         declarations.
10205         * elf/dl-lookup.c (_dl_lookup_symbol): Reorder some conditions and
10206         remove some __builtin_expect.
10207         (_dl_lookup_versioned_symbol): Likewise.
10209         * config.h.in: Add HAVE_Z_COMBRELOC.
10210         * configure.in: Add test for -z combreloc.
10212         * sysdeps/i386/dl-machine.h (elf_machine_rel): Minor cleanups and
10213         optimizations.  Use HAVE_Z_COMBRELOC to avoid generaton of
10214         R_386_RELATIVE handling for ld.so startup.  Reduce RTLD_BOOTSTRAP
10215         case to almost no code.
10217 2001-08-25  Ulrich Drepper  <drepper@redhat.com>
10219         * po/tr.po: Update from translation team.
10221 2001-08-24  Andreas Jaeger  <aj@suse.de>
10223         * iconv/Makefile (extra-objs): Add iconvconfig-modules so that
10224         make clean works.
10226 2001-08-24  Ulrich Drepper  <drepper@redhat.com>
10228         * elf/rtld.c (print_statistics): Printf % after percent values.
10229         * elf/dl-misc.c (_dl_debug_vdprintf): Implement %%.
10231         * elf/dl-lookup.c (_dl_lookup_symbol): If we use the cache we
10232         don't have to compute the hash value and initialize current_value.
10233         Move reference_name variable to where it is needed.
10234         (_dl_lookup_versioned_symbol): Likewise.
10236 2001-08-24  Roland McGrath  <roland@frob.com>
10238         * string/tester.c (test_strerror): Don't use _sys_errlist/_sys_nerr.
10239         Just test that strerror returns non-null for a few errno codes.
10241 2001-08-23  Roland McGrath  <roland@frob.com>
10243         * hurd/Versions (libc: GLIBC_2.2.5): New set; add _hurd_raise_signal,
10244         _hurdsig_interrupt_timeout, _hurdsig_fault_preemptor.
10246         * sysdeps/posix/shm_unlink.c (shm_unlink): __unlink -> unlink.
10248         * mach/Versions (libc: GLIBC_2.2.5): New set; add __mach_msg_destroy,
10249         __mach_reply_port.
10251 2001-08-24  Ulrich Drepper  <drepper@redhat.com>
10253         * nss/test-netdb.c (test_hosts): Don't segfault if gethostname
10254         returns NULL.
10256         * elf/do-rel.h (elf_dynamic_do_rel): Fix problem with ld.so
10257         startup.  Explicitly remove lazy part for RTLD_BOOTSTRAP since gcc
10258         doesn't do it.
10259         * elf/rtld.c: Include <sys/param.h>.
10260         * elf/dl-reloc.c: Likewise.
10262 2001-08-24  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
10264         * sysdeps/unix/sysv/linux/mips/configure.in: Define AC_SUBST to
10265         empty to prevent junk from being generated.
10266         * sysdeps/unix/sysv/linux/mips/configure: Regenerated.
10268 2001-08-24  Jakub Jelinek  <jakub@redhat.com>
10270         * elf/do-rel.h (elf_dynamic_do_rel): If l_addr is 0, skip relative
10271         records.  Rename endrel to relative, initialize it to r, and use it
10272         in elf_machine_rel_relative calls.  Point r after relative relocs.
10274 2001-08-24  Ulrich Drepper  <drepper@redhat.com>
10276         * sysdeps/i386/dl-machine.h (elf_machine_rel): Correct prediction
10277         of R_386_NONE.
10279 2001-08-24  Jakub Jelinek  <jakub@redhat.com>
10281         * elf/do-rel.h (elf_machine_rel_relative): Define for rela if
10282         necessary.  Undefine newly defined macros at the end.
10283         * sysdeps/hppa/dl-machine.h (elf_machine_rela_relative):
10284         Rename from elf_machine_rel_relative.
10285         * sysdeps/cris/dl-machine.h (elf_machine_rela_relative): Likewise.
10286         * sysdeps/m68k/dl-machine.h (elf_machine_rela_relative): Likewise.
10287         * sysdeps/powerpc/dl-machine.h (elf_machine_rela_relative): Likewise.
10288         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela_relative):
10289         Likewise.
10290         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela_relative):
10291         Likewise.
10292         * sysdeps/ia64/dl-machine.h (elf_machine_rela_relative): Likewise.
10293         Fix argument types.
10294         * sysdeps/alpha/dl-machine.h (elf_machine_rela_relative): Likewise.
10295         Fix argument types.
10296         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela_relative):
10297         Likewise.  Fix argument types.
10298         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela_relative):
10299         Likewise.  Fix argument types.
10300         * sysdeps/sh/dl-machine.h (elf_machine_rela_relative): Likewise.
10301         Fix argument types.
10302         * sysdeps/mips/dl-machine.h (elf_machine_rel_relative): Use
10303         ElfW(Rel) in argument.
10304         * sysdeps/mips/mips64/dl-machine.h (elf_machine_rel_relative): New
10305         function.
10307 2001-08-24  Alexandre Oliva  <aoliva@redhat.com>
10309         * sysdeps/sh/dl-machine.h (elf_machine_rela): Fix typo.
10311 2001-08-24  Andreas Jaeger  <aj@suse.de>
10313         * sysdeps/ieee754/ldbl-128/e_j1l.c: New file, contributed by
10314         Stephen L Moshier <moshier@mediaone.net>.
10316 2001-08-24  Ulrich Drepper  <drepper@redhat.com>
10318         * elf/do-rel.h (elf_dynamic_do_rel): RELATIVE relocations comes
10319         first if RELCOUNT is set.
10321         * elf/do-rel.h (elf_dynamic_do_rel): If not relocating lazily, don't
10322         call elf_machine_rel for the last DT_RELCOUNT relocations but instead
10323         elf_machine_rel_relative.
10324         * sysdeps/alpha/dl-machine.h: Define elf_machine_rel_relative.
10325         Minor optimizations.
10326         * sysdeps/arm/dl-machine.h: Likewise.
10327         * sysdeps/cris/dl-machine.h: Likewise.
10328         * sysdeps/hppa/dl-machine.h: Likewise.
10329         * sysdeps/i386/dl-machine.h: Likewise.
10330         * sysdeps/ia64/dl-machine.h: Likewise.
10331         * sysdeps/m68k/dl-machine.h: Likewise.
10332         * sysdeps/mips/dl-machine.h: Likewise.
10333         * sysdeps/powerpc/dl-machine.h: Likewise.
10334         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
10335         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
10336         * sysdeps/sh/dl-machine.h: Likewise.
10337         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
10338         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
10340 2001-08-23  Roland McGrath  <roland@frob.com>
10342         * rt/tst-aio4.c [! SIGRTMIN] (SIGRTMIN, SIGRTMAX): Define as -1.
10344         * sysdeps/mach/hurd/bits/libc-lock.h: New file, initially copied from
10345         sysdeps/mach version.  Implement counting ("recursive") mutexes
10346         on top of cthreads mutexes.
10347         * sysdeps/mach/hurd/bits/stdio-lock.h: File removed; generic now works.
10349         * sysdeps/generic/bits/stdio-lock.h (_IO_lock_initializer): Define to
10350         _LIBC_LOCK_RECURSIVE_INITIALIZER if defined, else do an #error.
10351         (__libc_cleanup_region_start, __libc_cleanup_region_end,
10352         __libc_clean_end): Define these to call the cleanup function after
10353         normal exit when they're supposed to.
10355         * sysdeps/mach/bits/libc-lock.h (__libc_cleanup_region_start):
10356         Take new first arg DOIT, a boolean saying whether to really install
10357         any cleanup handler.
10358         (__libc_cleanup_region_end): Do nothing if start's DOIT arg was zero.
10359         (__libc_cleanup_end): Likewise.
10360         * sysdeps/generic/bits/libc-lock.h: Same changes.
10361         * stdio-common/vfscanf.c (LOCK_STREAM): Pass new arg.
10362         * stdio-common/vfprintf.c (buffered_vfprintf, vfprintf): Likewise.
10363         * sysdeps/mach/hurd/bits/stdio-lock.h (_IO_cleanup_region_start):
10364         Likewise.
10365         * misc/syslog.c (vsyslog, openlog, closelog): Likewise.
10366         * sysdeps/generic/bits/stdio-lock.h
10367         (_IO_cleanup_region_start, _IO_cleanup_region_start_noarg): Likewise.
10369 2001-08-23  Jakub Jelinek  <jakub@redhat.com>
10371         * elf/ldconfig.c (search_dir): Remove stale symlinks.
10373 2001-08-23  Jakub Jelinek  <jakub@redhat.com>
10375         * elf/dl-lookup.c (lookup_cache, lookup_cache_versioned): New.
10376         (_dl_lookup_symbol): Lookup relocations in cache and store successfull
10377         lookups in cache.
10378         (_dl_lookup_versioned_symbol): Likewise.
10379         * elf/dl-reloc.c (_dl_relocate_object): Initialize cache for
10380         relocation lookup.
10381         * elf/rtld.c (print_statistics): Output _dl_num_cache_relocations.
10382         * sysdeps/generic/ldsodefs.h (struct lookup_cache): New definition.
10383         (lookup_cache, lookup_cache_versioned): Add declarations.
10385 2001-08-23  Ulrich Drepper  <drepper@redhat.com>
10387         * stdlib/tst-random.c (main): Swap parameters in fail call.
10388         Patch by Pete Bevin <pete@petebevin.com>.
10390 2001-08-23  Jakub Jelinek  <jakub@redhat.com>
10392         * sysdeps/generic/inttypes.h: Use __gwchar_t instead of __wchar_t.
10394 2001-08-23  Ulrich Drepper  <drepper@redhat.com>
10396         * malloc/obstack.c: Indent preprocessor directives.
10397         Patch by Jim Meyering <meyering@ascend.com>.
10399         * po/ja.po: Update from translation team.
10401 2001-08-23  Roland McGrath  <roland@frob.com>
10403         * libio/tst-ungetwc1.c (main): Add a const to quiet a warning.
10405         * nss/test-netdb.c (test_hosts): Don't use MAXHOSTNAMELEN.
10406         Instead, use dynamic buffer to test gethostname's ENAMETOOLONG error.
10408 2001-08-22  Roland McGrath  <roland@frob.com>
10410         * sysdeps/generic/ldsodefs.h (_dl_load_lock): Declare it here with
10411         __libc_lock_define_recursive.
10412         * elf/dl-open.c: Don't declare it here any more.
10413         * elf/dl-close.c: Likewise.
10414         * elf/dl-lookup.c: Likewise.
10415         * elf/dl-iteratephdr.c: Likewise.
10416         * elf/dl-lookup.c (add_dependency): Use __libc_lock_lock_recursive and
10417         __libc_lock_unlock_recursive.
10418         * elf/dl-close.c (_dl_close): Likewise
10419         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Likewise
10420         * elf/dl-open.c (_dl_open): Likewise
10422         * sysdeps/generic/bits/libc-lock.h
10423         (__libc_lock_define_recursive): New macro.
10424         * sysdeps/generic/bits/stdio-lock.h (_IO_lock_t): Use it.
10425         (_IO_lock_lock): Use __libc_lock_lock_recursive.
10426         (_IO_lock_unlock): Use __libc_lock_unlock_recursive.
10428         * conform/conformtest.pl (checknamespace): Sort the output list.
10430         * sysdeps/generic/bits/poll.h (POLLWRBAND): New alias for POLLOUT.
10431         (POLLRDNORM, POLLRDBAND, POLLWRNORM, POLLWRBAND): Make these
10432         definitions conditional on [__USE_XOPEN].
10434         * sysdeps/mach/hurd/bits/fcntl.h (O_ASYNC, O_FSYNC, O_SYNC): Define
10435         these unconditionally, not only use [__USE_BSD], so as to match
10436         the sysdeps/unix/sysv/linux files.
10438 2001-08-22  Ulrich Drepper  <drepper@redhat.com>
10440         * test-skeleton.c (add_temp_file): Add __attribute__ ((unused)) to
10441         avoid warnings.
10443         * dlfcn/tst-dladdr.c (do_test): Get address of ref1 using
10444         DL_LOOKUP_ADDRESS.
10446 2001-08-22  Roland McGrath  <roland@frob.com>
10448         * sysdeps/generic/bits/sigaction.h (struct sigaction): Fix up
10449         conditionalization of sa_handler/sa_sigaction member types to
10450         match the sysdeps/unix/sysv/linux file.
10452 2001-08-22  Ulrich Drepper  <drepper@redhat.com>
10454         * elf/dl-addr.c (_dl_addr): Handle broken binaries with zero
10455         symbol sizes a bit better.
10457         * sysdeps/ia64/strncpy.S: Complete rewrite.
10458         Contributed by Jakub Jelinek <jakub@redhat.com>.
10460         * string/stratcliff.c (main): Add strncpy test.
10462 2001-08-22  Roland McGrath  <roland@frob.com>
10464         * sysdeps/generic/dl-environ.c: Include <stdlib.h> and <unistd.h>,
10465         and don't declare unsetenv or _environ directly.
10466         (unsetenv): Return int, not void.  Use __environ instead of _environ.
10468 2001-08-01  Mark Kettenis  <kettenis@gnu.org>
10470         * sysdeps/unix/bsd/bsd4.4/Makefile: New file.
10471         * sysdeps/unix/bsd/bsd4.4/Versions: New file.
10472         * sysdeps/unix/bsd/bsd4.4/cmsg_nxthdr.c: New file.
10473         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (__cmsg_nxthdr): Correct
10474         test for cmsg struct size.
10476 2001-04-23  Paul Eggert  <eggert@twinsun.com>
10478         * posix/getopt.h (getopt_long, getopt_long_only, _getopt_internal):
10479         Rename __argc to ___argc in prototypes to avoid compatibility
10480         problems with systems that reserve the identifier "__argc".
10481         Similarly for __argv.
10483 2001-08-21  Roland McGrath  <roland@frob.com>
10485         * stdio-common/tst-fseek.c: Include <time.h> for `time' declaration.
10487         * mach/Makefile (tests): Removed.
10488         * mach/hello.c: File removed.
10490 2001-08-22  Ulrich Drepper  <drepper@redhat.com>
10492         * po/sv.po: Update from translation team.
10494         * stdio-common/vfscanf.c: Fix handling of %l[].
10495         Reported by Mitsuru Chinen <mchinen@yamato.ibm.com>.
10497         * libio/Makefile (tests): Add tst-sscanf.
10498         * libio/tst-sscanf.c: New file.
10500         * elf/dl-addr.c (_dl_addr): Fix tests to determine dli_sname.
10501         * malloc/mtrace.c (tr_where): dli_sname always points to a
10502         non-empty string if != NULL.
10503         Reported by Tim Janik <timj@gtk.org>.
10505 2001-08-22  Jakub Jelinek  <jakub@redhat.com>
10507         * sunrpc/xdr_rec.c (xdrrec_create): Fix buf sizes before allocating
10508         buf.  Free resources on failure.
10509         * sunrpc/svc_unix.c (svcunix_create): Free resources on failure.
10510         (makefd_xprt): Likewise.
10511         * sunrpc/svc_udp.c (svcudp_bufcreate): Likewise.
10512         * sunrpc/svc_tcp.c (svctcp_create, makefd_xprt): Likewise.
10513         * sunrpc/auth_unix.c (authunix_create): Likewise.
10515 2001-08-21  Jakub Jelinek  <jakub@redhat.com>
10517         * string/strnlen.c: Remove.
10518         * sysdeps/generic/strnlen.c: New file.
10519         * sysdeps/i386/i486/bits/string.h (strnlen): Remove.
10521 2001-08-21  Roland McGrath  <roland@frob.com>
10523         * sysdeps/mach/i386/machine-sp.h (__thread_stack_pointer): Define this
10524         as a macro, not an extern inline function.
10526         * hurd/Versions (GLIBC_2.2.5): New set, define __hurd_fail here.
10527         * Versions.def (libc): Add GLIBC_2.2.5 set.
10528         * hurd/hurd.h (_HURD_H_EXTERN_INLINE): New macro.
10529         (__hurd_fail): Use that instead of _EXTERN_INLINE in decl.
10531 2001-08-20  Roland McGrath  <roland@frob.com>
10533         * hurd/hurdlookup.c (__hurd_file_name_lookup): Fail with ENOENT for "".
10534         (__hurd_file_name_split, __hurd_directory_name_split): Likewise.
10536 2001-08-21  Ulrich Drepper  <drepper@redhat.com>
10538         * string/bits/string2.h: Remove strnlen optimization here.
10539         * sysdeps/i386/i486/bits/string.h: Add it here.
10541 2001-08-21  Wolfram Gloger  <wg@malloc.de>
10543         * malloc/malloc.c: Make access to ..._hook pointers thread-safe.
10545 2001-08-21  Ulrich Drepper  <drepper@redhat.com>
10547         * po/gl.po: Update from translation team.
10549 2001-08-20  Ulrich Drepper  <drepper@redhat.com>
10551         * misc/error.c (error_tail): Use fputws_unlocked instead of fputws.
10552         * misc/err.c (convert_and_print): Likewise.
10554         * malloc/obstack.c (print_and_abort): Use fprintf instead of two
10555         function calls.
10557 2001-08-20  Martin Schwidefsky  <schwidefsky@de.ibm.com>
10559         * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Revert the
10560         change of the gregset_t type.
10561         * sysdeps/unix/sysv/linux/s390/s390-64/sys/ucontext.h: Likewise.
10563 2001-08-20  kaz Kojima  <kkojima@rr.iij4u.or.jp>
10565         * sysdeps/unix/sysv/linux/sh/sysdep.S: Align errno.
10567 2001-08-20  Ulrich Drepper  <drepper@redhat.com>
10569         * posix/regex.c (truncate_wchar): Use wcrtomb not wctomb.
10571         * string/strnlen.c: Fix the implementation.  We cannot use memchr.
10573 2001-08-18  Mark Kettenis  <kettenis@gnu.org>
10575         * sysdeps/mach/hurd/i386/init-first.c (init): Initialize __environ
10576         before calling the cthreads initialization code.
10578 2001-08-20  Ulrich Drepper  <drepper@redhat.com>
10580         * argp/argp-help.c: Fix two problems introduced in last change.
10582         * include/dirent.h: Include <dirstream.h> first.
10584 2001-08-19  Ulrich Drepper  <drepper@redhat.com>
10586         * io/fts.c (fts_safe_changedir): Use __fxstat64 instead of __fstat.
10588         * sunrpc/svcauth_des.c (_svcauth_des): Avoid using bcopy.
10589         * sunrpc/xdr_rec.c: Likewise.
10590         * sunrpc/xdr_mem.c: Likewise.
10591         * sunrpc/svc_authux.c (_svcauth_unix): Likewise.
10592         * sunrpc/rpc_cmsg.c: Likewise.
10593         * sunrpc/getrpcport.c (getrpcport): Likewise.
10594         * sunrpc/clnt_simp.c (callrpc): Likewise.
10595         * sunrpc/clnt_gen.c (clnt_create): Likewise.
10596         * string/envz.c: Likewise.
10598         * po/ko.po: Update from translation team.
10600         * argp/argp-help.c: Handle wide oriented stderr stream.
10602 2001-08-18  Ulrich Drepper  <drepper@redhat.com>
10604         * sysdeps/generic/strtol.c: Little optimizations.  Add some
10605         __builtin_expect.
10607         * conform/conformtest.pl: <inttypes.h> test requires <stddef.h>.
10609         * wcsmbs/wchar.h (wcwdith): Change parameter type to wchar_t.
10610         * wcsmbs/wcwidth.c (wcwdith): Likewise.
10611         * wcsmbs/wcwidth.h (internal_wcwdith): Likewise.
10613         * conform/data/unistd.h-data: Remove _SC_MULTIPLE_PROCESS.
10615         * conform/data/ucontext.h-data: Fix typos in ucontext_t element tests.
10617         * time/time.h (struct timespec): Use __time_t for tv_sec element.
10619         * sysdeps/generic/inttypes.h: Define __wchar_t.  Use it instead of
10620         wchar_t for function declarations and defintions.
10622         * misc/sys/select.h: Define __need_time_t before including <time.h>.
10623         Define suseconds_t if it hasn't happened yet.
10625         * iconv/gconv.h: Define __need_wchar_t before including <stddef.h>.
10627         * conform/data/sys/uio.h-data: Allow UIO_MAXIOV to be defined.
10629         * sysdeps/generic/stdint.h: Don't get definition of wchar_t from
10630         <stddef.h>.
10632         * conform/data/stddef.h-data: Remove wint_t.
10634         * conform/conformtest.pl: Change namespace test to take #undef
10635         lines into account.
10637         * conform/data/netinet/in.h-data: Fix typo in allow-header line.
10639         * conform/data/sys/socket.h-data: Add sockatmark.
10641 2001-08-17  Ulrich Drepper  <drepper@redhat.com>
10643         * io/fts.c: Update from recent BSD source.
10645 2001-08-17  Roland McGrath  <roland@frob.com>
10647         * stdio-common/perror.c (perror) [! USE_IN_LIBIO]: Don't use _IO_fwide.
10648         * misc/error.c (error_tail, error, error_at_line) [! USE_IN_LIBIO]:
10649         Likewise.
10651 2001-08-17  Ulrich Drepper  <drepper@redhat.com>
10653         * locale/duplocale.c (__duplocale): Also initialize the special
10654         __ctype_* elements.
10656         * conform/data/netdb.h-data: Adjust gai_strerror return type.
10658 2001-08-17  Andreas Jaeger  <aj@suse.de>
10660         * misc/getpass.c: Include wchar.h for prototypes.
10661         * malloc/obstack.c: Likewise.
10663 2001-08-17  Ulrich Drepper  <drepper@redhat.com>
10665         * sunrpc/svc_simple.c (universal): Use __write instead of write.
10667         * wcsmbs/wcscoll.c: Also define __wcscoll.
10668         * include/wchar.h: Declare __wcscoll.
10670         * libio/fwprintf.c: Use __vfwprintf instead of vfwprintf.
10671         * libio/vwprintf.c: Likewise.
10672         * libio/wprintf.c: Likewise.
10674         * iconv/gconv_cache.c: Use __munmap instead of munmap.
10676 2001-08-16  Ulrich Drepper  <drepper@redhat.com>
10678         * posix/regex.c [_LIBC] (convert_mbs_to_wcs): Use __mbrtowc
10679         instead of mbrtowc.
10680         [_LIBC]: Use __iswctype instead of iswctype, __wcslen instead of
10681         wcslen, and __wcscoll instead of wcscoll.
10683         * sysdeps/unix/sockatmark.c (sockatmark): Use __ioctl instead of ioctl.
10685         * sysdeps/unix/sysv/linux/gai_sigqueue.c (__gai_sigqueue): Use
10686         __getuid instead of getuid.
10688         * stdio-common/perror.c (perror): Use __close instead of close.
10689         * iconv/gconv_cache.c (__gconv_load_cache): Likewise.
10690         * libio/freopen.c (freopen): Likewise.
10691         * libio/freopen64.c (freopen64): Likewise.
10693         * libio/tst-ungetwc2.c (main): Define str const.
10695         * include/wchar.h: Add prototypes for __fwprintf and __vfwprintf.
10696         * libio/fwprintf.c: Also define __fwprintf.
10697         * stdio-common/vfprintf.c [COMPILE_WPRINTF]: Also define __vfwprintf.
10698         * argp/argp-fmtstream.c: Handle wide oriented stderr stream.
10699         * assert/assert-perr.c: Likewise.
10700         * assert/assert.c: Likewise.
10701         * gmon/gmon.c: Likewise.
10702         * inet/rcmd.c: Likewise.
10703         * malloc/obstack.c: Likewise.
10704         * misc/err.c: Likewise.
10705         * misc/error.c: Likewise.
10706         * misc/getpass.c: Likewise.
10707         * posix/getopt.c: Likewise.
10708         * resolv/res_hconf.c: Likewise.
10709         * stdio-common/perror.c: Likewise.
10710         * stdio-common/psignal.c: Likewise.
10711         * stdlib/fmtmsg.c: Likewise.
10712         * sunrpc/auth_unix.c: Likewise.
10713         * sunrpc/clnt_perr.c: Likewise.
10714         * sunrpc/clnt_tcp.c: Likewise.
10715         * sunrpc/clnt_udp.c: Likewise.
10716         * sunrpc/clnt_unix.c: Likewise.
10717         * sunrpc/svc_simple.c: Likewise.
10718         * sunrpc/svc_tcp.c: Likewise.
10719         * sunrpc/svc_udp.c: Likewise.
10720         * sunrpc/svc_unix.c: Likewise.
10721         * sunrpc/xdr.c: Likewise.
10722         * sunrpc/xdr_array.c: Likewise.
10723         * sunrpc/xdr_rec.c: Likewise.
10724         * sunrpc/xdr_ref.c: Likewise.
10725         * sysdeps/generic/wordexp.c: Likewise.
10727         * po/it.po: Update from translation team.
10729         * misc/err.c: Handle wide oriented stderr stream.
10731 2001-08-14  Tom Rix  <trix@redhat.com>
10733         * iconv/gconv_cache.c (find_module): Add #ifndef STATIC_GCONV.
10734         * iconv/Makefile: Fix gconv_cache.c CFLAGS.
10736 2001-08-13  Tom Rix  <trix@redhat.com>
10738         * sysdeps/unix/sysv/aix/Makefile: Add rule to import kernel symbols.
10739         * sysdeps/unix/sysv/aix/bits/types.h: Fix type of __id_t, __useconds_t
10740         and __intptr_t.
10742 2001-08-15  Martin Schwidefsky  <schwidefsky@de.ibm.com>
10744         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S (__getcontext):
10745         Store the access registers to the ucontext structure.
10746         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S (__getcontext):
10747         Likewise.
10749         * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S (__setcontext):
10750         Load the access registers from the ucontext structure.
10751         * sysdeps/unix/sysv/linux/s390/s390-64/setcontext.S (__setcontext):
10752         Likewise.
10754         * sysdeps/unix/sysv/linux/s390/s390-32/ucontext_i.h: Adjust the SC_xxx
10755         offsets to the new ucontext layout.
10756         * sysdeps/unix/sysv/linux/s390/s390-64/ucontext_i.h: Likewise.
10758         * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Fix the layout
10759         of the ucontext structure.
10760         * sysdeps/unix/sysv/linux/s390/s390-64/sys/ucontext.h: Likewise.
10762 2001-08-15  Ulrich Drepper  <drepper@redhat.com>
10764         * misc/error.c (error): Handle wide oriented stderr stream correctly.
10765         (error_at_line): Likewise.
10767         * stdio-common/perror.c (perror): Implement according to standard.
10768         The stream orientation must not be changed if the stream was not
10769         oriented before the call.
10770         * stdio-common/Makefile (tests): Add tst-perror.
10771         * stdio-common/tst-perror.c: New file.
10774 See ChangeLog.12 for earlier changes.