1 2002-08-23 Roland McGrath <roland@redhat.com>
3 * malloc/hooks.c (__malloc_initialize_hook, __free_hook,
4 __malloc_hook, __realloc_hook, __memalign_hook,
5 __after_morecore_hook): Variable definitions moved to ...
6 * malloc/malloc.c: ... here, so as to be before all references.
8 * sysdeps/i386/dl-machine.h (elf_machine_load_address): Add a dummy
9 global variable reference in an unused asm parameter, to ensure the
10 compiler has set up the GOT register before we use it.
12 * malloc/hooks.c: Move variable definitions ahead of uses.
13 * libio/fileops.c: Move versioned_symbol defns ahead of _IO_jump_t
14 initializers that make reference to variables they define.
16 2002-08-23 Andreas Jaeger <aj@suse.de>
18 * locale/loadarchive.c: Include <stdlib.h> for prototypes of
21 * dlfcn/bug-dlsym1-lib1.c (foo): Add prototype to avoid warning.
23 * sysdeps/ieee754/flt-32/e_jnf.c: Remove unused variable.
24 * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
26 * misc/sys/xattr.h: New file, contributed by Christoph Hellwig
28 * sysdeps/generic/fgetxattr.c: New file.
29 * sysdeps/generic/flistxattr.c: New file.
30 * sysdeps/generic/fremovexattr.c: New file.
31 * sysdeps/generic/fsetxattr.c: New file.
32 * sysdeps/generic/getxattr.c: New file.
33 * sysdeps/generic/listxattr.c: New file.
34 * sysdeps/generic/lgetxattr.c: New file.
35 * sysdeps/generic/llistxattr.c: New file.
36 * sysdeps/generic/lremovexattr.c: New file.
37 * sysdeps/generic/lsetxattr.c: New file.
38 * sysdeps/generic/removexattr.c: New file.
39 * sysdeps/generic/setxattr.c: New file.
40 * misc/Makefile (headers): Add sys/xattr.h.
41 (routines): Add *xattr calls.
42 * misc/Versions: Add *xattr calls with version 2.3.
43 * sysdeps/unix/sysv/linux/m68k/Versions: Remove *xattr syscalls.
44 * sysdeps/unix/sysv/linux/s390/s390-32/Versions: Likewise.
45 * sysdeps/unix/sysv/linux/sparc/sparc32/Versions: Likewise.
46 * sysdeps/unix/sysv/linux/sparc/sparc64/Versions: Likewise.
47 * sysdeps/unix/sysv/linux/x86_64/Versions: Likewise.
48 * sysdeps/unix/sysv/linux/ia64/Versions: Likewise.
49 * sysdeps/unix/sysv/linux/alpha/Versions: Likewise.
50 * sysdeps/unix/sysv/linux/arm/Versions: Likewise.
52 2002-08-22 Steven Munroe <sjmunroe@us.ibm.com>
54 * sysdeps/powerpc/elf/libc-start.c
55 (__cache_line_size): Declare.
56 (__aux_init_cache): New.
57 (__libc_start_main): Change type of `auxvec' parameter to
58 `ElfW(auxv_t) *'. Correct walking of aux vector. Call
60 * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c
61 (__cache_line_size): Declare.
62 (__aux_init_cache): New.
63 (DL_PLATFORM_INIT): Define.
64 * sysdeps/powerpc/memset.S: Define __cache_line_size and use its
65 value to select the correct stride for dcbz.
67 2002-08-22 Andreas Jaeger <aj@suse.de>
69 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Fix arguments of
72 2002-08-22 Roland McGrath <roland@redhat.com>
74 * locale/loadarchive.c (_nl_load_locale_from_archive): Check max file
75 position indicated by locrectab against file bounds before rounding to
76 page size. In mapping loop, always set TO before breaking out of
77 contiguous range coalescing loop.
79 * locale/loadarchive.c (_nl_load_locale_from_archive): Use MAP_PRIVATE
80 (or MAP_COPY if available) instead of MAP_SHARED.
82 * scripts/firstversions.awk: When encountering a version newer than
83 the specified earliest version, be sure to emit the specified earliest
84 version first if any renaming of an older version to that has been.
86 2002-08-21 Roland McGrath <roland@redhat.com>
88 * configure.in: Make GCC version check require 3.[2-9]* and no others.
89 * configure: Regenerated.
90 * manual/install.texi (Tools for Compilation): Say 3.2 is required.
91 (Configuring and compiling): Don't mention older GCC versions any more.
92 * INSTALL: Regenerated.
94 * manual/install.texi (Configuring and compiling, Installation,
95 Running make install, Linux): Linux -> GNU/Linux where appropriate.
97 * elf/rtld.c (_dl_start_final): Move defn before _dl_start so it can
98 be inlined. Declare it with always_inline if [DONT_USE_BOOTSTRAP_MAP]
99 and with noinline otherwise. Remove hack alloca use to prevent
100 inlining, we can ask for it explicitly nowadays.
102 * dlfcn/bug-dlsym1.c: New file.
103 * dlfcn/bug-dlsym1-lib1.c, dlfcn/bug-dlsym1-lib2.c: New files.
104 * dlfcn/Makefile (distribute): Add them.
105 (tests): Add bug-dlsym1 here.
106 (modules-names): Add bug-dlsym1-lib1 and bug-dlsym1-lib2 here.
107 ($(objpfx)bug-dlsym1, $(objpfx)bug-dlsym1.out): New targets.
108 ($(objpfx)bug-dlsym1-lib1.so, $(objpfx)bug-dlsym1-lib2.so): Likewise.
110 2002-08-21 Ulrich Drepper <drepper@redhat.com>
112 * elf/rtld.c (start_time): New global variable. Moved from _dl_start.
113 (DONT_USE_BOOTSTRAP_MAP): Define if we can use non-exported symbols
115 (_dl_start): Don't use local bootstrap_map variable if
116 DONT_USE_BOOTSTRAP_MAP is defined. Use GL(dl_rtld_map). Don't
117 pass bootstrap_map to _dl_start_final in this case either. Don't
118 pass start_time to _dl_start_final ever.
119 (_dl_start_final): Don't copy bootstrap_map if DONT_USE_BOOTSTRAP_MAP.
121 * elf/dl-deps.c (_dl_map_object_deps): Revert patch from 2002-05-28.
122 This cripples the scope lists necessary to search for symbols in
123 dependencies which are not in the global scope.
125 * include/setjmp.h (__libc_longjmp): Add declaration.
127 2002-08-21 Andreas Jaeger <aj@suse.de>
129 * sysdeps/x86_64/_mcount.S: Fix assembler.
131 * sysdeps/unix/sysv/linux/x86_64/Makefile: Generate bits/syscall.h
134 2002-08-21 Andreas Jaeger <aj@suse.de>
136 * sysdeps/x86_64/sysdep.h (CALL_MCOUNT): Fix it.
138 * sysdeps/x86_64/Makefile (sysdep_routines): Add _mcount.
140 * sysdeps/x86_64/machine-gmon.h: New file.
141 * sysdeps/x86_64/_mcount.S: New file.
143 2002-08-20 Ulrich Drepper <drepper@redhat.com>
145 * elf/rtld.c (_dl_start): Pass zero to TLS_INIT_TP. Set
146 bootstrap_map.l_tls_tp_initialized to 1 if TLS_INIT_TP was called.
147 (_dl_start_final): Copy l_tls_tp_initialized to GL(dl_rtld_map).
148 (dl_main): If HAVE___THREAD is not defined pass l_tls_tp_initialized
149 to TL_INIT_TP. Otherwise pass 1.
150 * include/link.h (struct link_map): Add l_tls_tp_initialized.
151 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Pass 0 to TL_INIT_TP.
153 2002-08-15 Jakub Jelinek <jakub@redhat.com>
155 * locale/programs/localedef.c (add_to_readlist): Error about
156 circular dependencies only if the locale in question hasn't
158 * locale/programs/linereader.c (get_string): Pass LC_CTYPE not
159 CTYPE_LOCALE to load_locale.
160 * locale/programs/locfile.c (locfile_read): Don't include
161 unneeded but available locales in locale_mask.
163 * locale/programs/locarchive.c (enlarge_archive): If quiet, don't
164 print any messages about enlarging archive.
166 2002-08-20 Brian Youmans <3diff@gnu.org>
168 * manual/contrib.texi: Removed licenses, added acknowledgements
169 for contributions by Intel, IBM, Craig Metz.
170 * LICENSES: New file, contains the text of all non-FSF licenses in the
171 distribution that require putting the notice in the accompanying
173 * README.template, README: Mention LICENSES.
175 * sysdeps/mach/hurd/net/if_ppp.h: Replaced CMU license with a
176 new one modelled on the modern BSD license, per recent letter
177 of permission from CMU.
178 * sysdeps/unix/sysv/linux/net/if_ppp.h: Likewise.
180 * sysdeps/ieee754/dbl-64/MathLib.h: Changed the copyright holder
181 from IBM to FSF, per the recent Software Letter. Changed the
182 distribution terms from GPL to LGPL.
184 * sysdeps/ieee754/dbl-64/asincos.tbl: Added FSF copyright and
185 copying permission notice (Lesser GPL), per recent IBM Software Letter.
186 * sysdeps/ieee754/dbl-64/powtwo.tbl: Likewise.
187 * sysdeps/ieee754/dbl-64/root.tbl: Likewise.
188 * sysdeps/ieee754/dbl-64/sincos.tbl: Likewise.
189 * sysdeps/ieee754/dbl-64/uatan.tbl: Likewise.
190 * sysdeps/ieee754/dbl-64/uexp.tbl: Likewise.
191 * sysdeps/ieee754/dbl-64/ulog.tbl: Likewise.
192 * sysdeps/ieee754/dbl-64/upow.tbl: Likewise.
193 * sysdeps/ieee754/dbl-64/utan.tbl: Likewise.
195 * sysdeps/ieee754/dbl-64/atnat.h: Changed the copyright holder
196 from IBM to FSF, per the recent Software Letter. Corrected the
197 text of the copying permission notice to say Lesser GPL instead
198 of GPL in warranty disclaimer paragraph.
199 * sysdeps/ieee754/dbl-64/atnat2.h: Likewise.
200 * sysdeps/ieee754/dbl-64/branred.h: Likewise.
201 * sysdeps/ieee754/dbl-64/dla.h: Likewise.
202 * sysdeps/ieee754/dbl-64/doasin.h: Likewise.
203 * sysdeps/ieee754/dbl-64/dosincos.h: Likewise.
204 * sysdeps/ieee754/dbl-64/mpa.h: Likewise.
205 * sysdeps/ieee754/dbl-64/mpa2.h: Likewise.
206 * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
207 * sysdeps/ieee754/dbl-64/mpexp.h: Likewise.
208 * sysdeps/ieee754/dbl-64/mplog.h: Likewise.
209 * sysdeps/ieee754/dbl-64/mpsqrt.h: Likewise.
210 * sysdeps/ieee754/dbl-64/mydefs.h: Likewise.
211 * sysdeps/ieee754/dbl-64/sincos32.h: Likewise.
212 * sysdeps/ieee754/dbl-64/uasncs.h: Likewise.
213 * sysdeps/ieee754/dbl-64/uexp.h: Likewise.
214 * sysdeps/ieee754/dbl-64/ulog.h: Likewise.
215 * sysdeps/ieee754/dbl-64/upow.h: Likewise.
216 * sysdeps/ieee754/dbl-64/urem.h: Likewise.
217 * sysdeps/ieee754/dbl-64/uroot.h: Likewise.
218 * sysdeps/ieee754/dbl-64/usncs.h: Likewise.
219 * sysdeps/ieee754/dbl-64/utan.h: Likewise.
221 * sysdeps/ieee754/dbl-64/branred.c: Corrected the text of the copying
222 permission notice to say Lesser GPL instead of GPL in warranty
223 disclaimer paragraph.
224 * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
225 * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
226 * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
227 * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
228 * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
229 * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
230 * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
231 * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
232 * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
233 * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
234 * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
235 * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
236 * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
237 * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
238 * sysdeps/ieee754/dbl-64/mplog.c: Likewise.
239 * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
240 * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
241 * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
242 * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
243 * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
244 * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
245 * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
246 * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
248 2002-08-20 Roland McGrath <roland@redhat.com>
250 Fix ABI compatibility with libc compiled with old tools on powerpc.
251 Changes contributed by Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
252 and Jack Howarth <howarth@bromo.med.uc.edu>.
253 * sysdeps/powerpc/Makefile [$(have-protected) = yes]
254 (CPPFLAGS-divdi3.c, CPPFLAGS-libgcc-compat.S): New variables,
255 pass -DHAVE_DOT_HIDDEN for these files.
256 * sysdeps/powerpc/Versions (libc: GLIBC_2.0): Added __floatdidf,
258 * sysdeps/powerpc/divdi3.c: New file.
259 * sysdeps/powerpc/libgcc-compat.S: New file, replacement for ...
260 * sysdeps/powerpc/libgcc-compat.c: ... this, file removed.
262 2002-08-20 Jakub Jelinek <jakub@redhat.com>
264 * locale/loadarchive.c (_nl_load_locale_from_archive): Handle
265 partially overlapping mappings. Remove unneeded (char *) casts.
266 Never allow duplication of ranges in mapped areas.
268 2002-08-20 Roland McGrath <roland@redhat.com>
270 * elf/Makefile ($(objpfx)ld.so): Separate commands in rule so errors
271 can be detected by make. Reported by H.J. Lu <hjl@gnu.org>.
273 2002-08-20 Ulrich Drepper <drepper@redhat.com>
275 * include/unistd.h: Don't hide _exit.
277 * elf/rtld.c (_dl_start): Pass extra argument 1 to TLS_INIT_TP.
278 (dl_main): Pass extra argument 0 to TLS_INIT_TP.
279 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Pass extra
280 argument 1 to TLS_INIT_TP.
281 * sysdeps/generic/tls.h (TLS_INIT_TP): Describe new parameter.
283 * sysdeps/generic/dl-tls.c (allocate_dtv): Optimize a bit.
285 * elf/Versions [ld] (GLIBC_PRIVATE): Add _dl_get_tls_static_info.
286 * sysdeps/generic/dl-tls.c (_dl_allocate_tls_storage): Move dtv
287 memory allocation to...
288 (allocate_dtv): ...here. New function.
289 (_dl_allocate_tls): Change to take parameter. If parameter is non-NULL
290 call allocate_dtv instead of _dl_allocate_tls_storage.
291 (_dl_deallocate_tls): New parameter. Deallocate TCB only if true.
292 (_dl_get_tls_static_info): New function.
293 * sysdeps/generic/ldsodefs.h: Adjust prototypes of _dl_allocate_tls
294 and _dl_deallocate_tls. Add prototype for _dl_get_tls_static_info.
296 2002-08-19 Ulrich Drepper <drepper@redhat.com>
298 * sysdeps/generic/dl-tls.c (_dl_allocate_tls_init): Return
299 immediately if result == NULL.
301 2002-08-16 Jakub Jelinek <jakub@redhat.com>
303 * sysdeps/alpha/fpu/libm-test-ulps: Regenerate.
305 2002-08-18 Roland McGrath <roland@frob.com>
307 * sysdeps/mach/hurd/mkdir.c (__mkdir): Use __directory_name_split
308 instead of __file_name_split.
309 * sysdeps/mach/hurd/unlink.c (__unlink): Likewise.
311 * sysdeps/mach/hurd/dl-sysdep.c
312 [HP_TIMING_AVAIL] (_dl_cpuclock_offset): New variable.
313 [HP_TIMING_AVAIL] (_dl_sysdep_start): Set it with HP_TIMING_NOW.
315 2002-08-16 Jakub Jelinek <jakub@redhat.com>
317 * locale/loadarchive.c (_nl_load_locale_from_archive): Braino fix
318 in change before last: MAX -> MIN.
320 2002-08-15 Roland McGrath <roland@redhat.com>
322 * libio/fileops.c (_IO_file_seekoff_mmap): Leave read pointers at EOF
323 if seek would go past it.
324 (mmap_remap_check): If file position is at or past EOF after check,
325 leave read pointers at EOF and don't seek.
327 * libio/tst-mmap-offend.c: New file.
328 * libio/Makefile (tests): Add it.
330 * locale/loadarchive.c (_nl_load_locale_from_archive): Store strdup of
331 the name as passed, rather than the name in the archive dictionary.
333 2002-08-15 Ulrich Drepper <drepper@redhat.com>
335 * csu/Makefile: Define elide-routines.os not static-only-routines.
337 * include/sched.h (__clone): Add varargs at the end.
339 * elf/rtld.c (_dl_start): Allow TLS_INIT_TP to fail, and stop in that
341 (TLS_INIT_HELPER): If defined, use it.
342 * sysdeps/generic/libc-tls.c (TLS_INIT_HELPER): Likewise.
344 2002-08-15 Roland McGrath <roland@redhat.com>
346 * elf/dl-load.c (lose): Remove [!SHARED] conditional from null check
347 on L->l_prev; it can happen under rtld --verify too.
349 * locale/loadarchive.c (_nl_load_locale_from_archive): Don't read the
350 header separately, just map an initial window of 2MB from the file
351 and remap if that is not large enough to cover the whole header.
353 2002-08-15 Andreas Jaeger <aj@suse.de>
355 * sysdeps/unix/sysv/linux/m68k/Versions: Add *xattr syscalls with
357 * sysdeps/unix/sysv/linux/arm/Versions: Likewise.
358 * sysdeps/unix/sysv/linux/alpha/Versions: Likewise.
359 * sysdeps/unix/sysv/linux/ia64/Versions: Likewise.
360 * sysdeps/unix/sysv/linux/x86_64/Versions: Likewise.
361 * sysdeps/unix/sysv/linux/sparc/sparc64/Versions: Likewise.
362 * sysdeps/unix/sysv/linux/sparc/sparc32/Versions: Likewise.
363 * sysdeps/unix/sysv/linux/s390/s390-32/Versions: Likewise.
364 * sysdeps/unix/sysv/linux/powerpc/Versions: Likewise.
365 * sysdeps/unix/sysv/linux/mips/Versions: Likewise.
366 Patch by Andreas Gruenbacher <agruen@suse.de>.
368 * sysdeps/unix/sysv/linux/syscalls.list: Add *xattr syscalls.
370 2002-08-14 Roland McGrath <roland@redhat.com>
372 * locale/locarchive.h (struct locale_category_data): Give this name to
373 the type of locale_data_t's elements.
374 * locale/programs/locarchive.c (cmpcategorysize): New static function.
375 (add_locale): Use that to sort the categories by size and put all
376 those that fit into two pages into the LC_ALL block, instead of
377 hard-coding it to do everything but LC_CTYPE and LC_COLLATE.
378 (show_archive_content): Detect categories inside LC_ALL block
379 directly, instead of hard-coding.
380 (oldlocrecentcmp): Compare just on file locations used.
382 2002-08-14 Jakub Jelinek <jakub@redhat.com>
384 * locale/programs/locarchive.c (struct oldlocrecent): New.
385 (oldlocrecentcmp): New.
386 (enlarge_archive): Re-add locales in the order they were added
388 (add_locale): Put all the small locale files together, if the small
389 locale file block would occupy less pages if page size aligned, align
391 (show_archive_content): Adjust for locale archives optimized for speed.
393 2002-08-14 Roland McGrath <roland@frob.com>
395 * configure.in: Use "MISSING" as not-found value for MIG.
396 * sysdeps/mach/configure.in: Fatal if mig not found.
397 * configure, sysdeps/mach/configure: Regenerated.
399 2002-08-13 Jakub Jelinek <jakub@redhat.com>
401 * locale/loadarchive.c (archfname): Add missing slash.
403 * sysdeps/generic/strtold.c (__strtold_internal): Add libc_hidden_def.
404 * wcsmbs/wcstold.c (__wcstold_internal): Add libc_hidden_def.
406 2002-08-12 Roland McGrath <roland@redhat.com>
408 * include/sys/wait.h (__waitpid): Add libc_hidden_proto.
409 * sysdeps/unix/sysv/sco3.2.4/waitpid.S: Add libc_hidden_def.
410 * sysdeps/unix/sysv/sysv4/waitpid.c: Add libc_hidden_weak.
411 * sysdeps/unix/sysv/linux/waitpid.c: Likewise.
412 * sysdeps/unix/sysv/aix/waitpid.c: Likewise.
413 * sysdeps/unix/bsd/bsd4.4/waitpid.c: Likewise.
414 * sysdeps/generic/waitpid.c: Likewise.
416 * include/net/if.h: New file. Use libc_hidden_proto
417 for if_nametoindex and if_indextoname.
418 * sysdeps/generic/if_index.c: Add libc_hidden_def.
419 * sysdeps/mach/hurd/if_index.c: Likewise.
420 * sysdeps/unix/sysv/linux/if_index.c: Likewise.
422 * include/grp.h (setgroups): Add libc_hidden_proto.
423 * sysdeps/generic/setgroups.c: Add libc_hidden_def.
424 * sysdeps/mach/hurd/setgroups.c: Likewise.
425 * sysdeps/unix/sysv/irix4/setgroups.c: Likewise.
426 * sysdeps/unix/sysv/linux/i386/setgroups.c: Likewise.
428 2002-08-13 Jakub Jelinek <jakub@redhat.com>
430 * include/unistd.h (seteuid, setegid): Add libc_hidden_proto.
431 * sysdeps/generic/seteuid.c (seteuid): Add libc_hidden_def.
432 * sysdeps/generic/setegid.c (setegid): Likewise.
433 * sysdeps/mach/hurd/seteuid.c (seteuid): Likewise.
434 * sysdeps/mach/hurd/setegid.c (setegid): Likewise.
435 * sysdeps/unix/bsd/seteuid.c (seteuid): Likewise.
436 * sysdeps/unix/bsd/setegid.c (setegid): Likewise.
437 * sysdeps/unix/sysv/aix/seteuid.c (seteuid): Likewise.
438 * sysdeps/unix/sysv/aix/setegid.c (setegid): Likewise.
439 * sysdeps/unix/sysv/linux/i386/setegid.c (setegid): Likewise.
440 * sysdeps/unix/sysv/linux/sparc/sparc32/seteuid.c (seteuid): Likewise.
441 * sysdeps/unix/sysv/linux/sparc/sparc32/setegid.c (setegid): Likewise.
442 * sysdeps/unix/sysv/linux/seteuid.c (seteuid): Likewise.
443 * sysdeps/unix/sysv/linux/setegid.c (setegid): Likewise.
444 * sysdeps/unix/sysv/linux/i386/seteuid.c (seteuid): Likewise.
445 Remove fallback if __ASSUME_SETRESUID_SYSCALL.
447 * include/sys/stat.h (__fxstat_internal, __fxstat64_internal,
448 __lxstat_internal, __lxstat64_internal): Remove.
449 (__fxstat, __fxstat64, __lxstat, __lxstat64, __xstat, __xstat64):
451 * sysdeps/generic/fxstat.c (__fxstat): Add hidden_def.
452 Remove INTDEF where present, remove #undef at the beginning.
453 * sysdeps/generic/fxstat64.c (__fxstat64): Likewise.
454 * sysdeps/generic/lxstat.c (__lxstat): Likewise.
455 * sysdeps/generic/lxstat64.c (__lxstat64): Likewise.
456 * sysdeps/generic/xstat.c (__xstat): Likewise.
457 * sysdeps/generic/xstat64.c (__xstat64): Likewise.
458 * sysdeps/mach/hurd/dl-sysdep.c (__xstat64, __fxstat64): Likewise.
459 * sysdeps/mach/hurd/fxstat.c (__fxstat): Likewise.
460 * sysdeps/mach/hurd/fxstat64.c (__fxstat64): Likewise.
461 * sysdeps/mach/hurd/lxstat.c (__lxstat): Likewise.
462 * sysdeps/mach/hurd/lxstat64.c (__lxstat64): Likewise.
463 * sysdeps/mach/hurd/xstat.c (__xstat): Likewise.
464 * sysdeps/mach/hurd/xstat64.c (__xstat64): Likewise.
465 * sysdeps/unix/fxstat.c (__fxstat): Likewise.
466 * sysdeps/unix/common/lxstat.c (__lxstat): Likewise.
467 * sysdeps/unix/sysv/aix/fxstat.c (__fxstat): Likewise.
468 * sysdeps/unix/sysv/aix/fxstat64.c (__fxstat64): Likewise.
469 * sysdeps/unix/sysv/aix/lxstat.c (__lxstat): Likewise.
470 * sysdeps/unix/sysv/aix/lxstat64.c (__lxstat64): Likewise.
471 * sysdeps/unix/sysv/aix/xstat.c (__xstat): Likewise.
472 * sysdeps/unix/sysv/aix/xstat64.c (__xstat64): Likewise.
473 * sysdeps/unix/sysv/linux/ia64/fxstat.c (__fxstat): Likewise.
474 * sysdeps/unix/sysv/linux/ia64/lxstat.c (__lxstat): Likewise.
475 * sysdeps/unix/sysv/linux/ia64/xstat.c (__xstat): Likewise.
476 * sysdeps/unix/sysv/linux/s390/s390-64/fxstat.c (__fxstat): Likewise.
477 * sysdeps/unix/sysv/linux/s390/s390-64/lxstat.c (__lxstat): Likewise.
478 * sysdeps/unix/sysv/linux/s390/s390-64/xstat.c (__xstat): Likewise.
479 * sysdeps/unix/sysv/linux/i386/fxstat.c (__fxstat): Likewise.
480 * sysdeps/unix/sysv/linux/i386/lxstat.c (__lxstat): Likewise.
481 * sysdeps/unix/sysv/linux/i386/xstat.c (__xstat): Likewise.
482 * sysdeps/unix/sysv/linux/xstat.c (__xstat): Likewise.
483 * sysdeps/unix/sysv/linux/xstat64.c (__xstat64): Likewise.
484 * sysdeps/unix/sysv/linux/fxstat.c (__fxstat): Likewise.
485 * sysdeps/unix/sysv/linux/fxstat64.c (__fxstat64): Likewise.
486 * sysdeps/unix/sysv/linux/lxstat.c (__lxstat): Likewise.
487 * sysdeps/unix/sysv/linux/lxstat64.c (__lxstat64): Likewise.
488 * sysdeps/unix/xstat.c (__xstat): Likewise.
490 * include/sys/statvfs.h (statvfs, fstatvfs): Add libc_hidden_proto.
491 * sysdeps/generic/statvfs.c (statvfs): Add libc_hidden_def.
492 * sysdeps/generic/fstatvfs.c (fstatvfs): Likewise.
493 * sysdeps/mach/hurd/statvfs.c (statvfs): Likewise.
494 * sysdeps/mach/hurd/fstatvfs.c (fstatvfs): Likewise.
495 * sysdeps/unix/sysv/linux/statvfs.c (statvfs): Likewise.
496 * sysdeps/unix/sysv/linux/fstatvfs.c (fstatvfs): Likewise.
498 * include/unistd.h (tcgetpgrp): Add libc_hidden_proto.
499 * include/termios.h (tcsetattr, cfsetispeed, cfsetospeed): Likewise.
500 * sysdeps/generic/tcgetpgrp.c (tcgetpgrp): Add libc_hidden_def.
501 * sysdeps/generic/tcsetattr.c (tcsetattr): Likewise.
502 * sysdeps/generic/speed.c (cfsetispeed, cfsetospeed): Likewise.
503 * sysdeps/unix/bsd/bsd4.4/tcsetattr.c (tcgetpgrp): Likewise.
504 * sysdeps/unix/bsd/sun/sunos4/tcsetattr.c (tcsetattr): Likewise.
505 * sysdeps/unix/bsd/sun/sunos4/speed.c (cfsetispeed, cfsetospeed):
507 * sysdeps/unix/bsd/tcgetpgrp.c (tcgetpgrp): Likewise.
508 * sysdeps/unix/bsd/tcsetattr.c (tcsetattr): Likewise.
509 * sysdeps/unix/sysv/aix/tcsetattr.c (tcsetattr): Likewise.
510 * sysdeps/unix/sysv/aix/speed.c (cfsetispeed, cfsetospeed): Likewise.
511 * sysdeps/unix/sysv/linux/tcsetattr.c (tcsetattr): Likewise.
512 * sysdeps/unix/sysv/linux/speed.c (cfsetispeed, cfsetospeed): Likewise.
513 * sysdeps/unix/sysv/tcgetpgrp.c (tcgetpgrp): Likewise.
514 * sysdeps/unix/sysv/tcsetattr.c (tcsetattr): Likewise.
516 * include/string.h (strcoll): Add libc_hidden_proto.
517 * string/strcoll.c (strcoll): Add libc_hidden_def.
519 * misc/err.c (vwarn): Fix pasto in libc_hidden_def.
521 2002-08-11 Philip Blundell <philb@gnu.org>
523 * sysdeps/arm/Makefile: New file.
525 2002-08-08 Jakub Jelinek <jakub@redhat.com>
527 * posix/regcomp.c (parse_reg_exp): If '|' is immediately followed
528 by another '|', end of regex or enclosing ')', clear branch.
529 * posix/bug-regex9.c: New test.
530 * posix/Makefile (tests): Add bug-regex9.
532 2002-08-12 Roland McGrath <roland@redhat.com>
534 * sysdeps/generic/dl-tls.c (_dl_allocate_tls_init): Fix inner loop
535 start count condition, use TOTAL instead of variable that was never
536 set. Fix outer loop termination condition to TOTAL >= after update.
538 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Initialize
539 dl_tls_static_align and dl_tls_static_nelem.
541 2002-08-11 Roland McGrath <roland@redhat.com>
543 * elf/tst-tlsmod4.c (in_dso): Insert a random library call before use
544 of the TLS macros, otherwise the compiler might not have initialized
545 the PIC register yet when we use the PLT via asm.
546 * elf/tst-tlsmod3.c (in_dso2): Likewise.
547 * elf/tst-tlsmod2.c (in_dso): Likewise.
549 * sunrpc/svc_authux.c (_svcauth_unix): Remove spurious printf (ugh!).
551 * sysdeps/i386/bits/byteswap.h (__bswap_16, __bswap_32, __bswap_64):
552 Evaluate argument exactly once. Remove __volatile__ from asm's.
554 * include/unistd.h: Use libc_hidden_proto for getdomainname
556 * sysdeps/generic/getdomain.c: Add libc_hidden_def.
557 * sysdeps/mach/hurd/getdomain.c: Likewise.
558 * sysdeps/unix/getlogin_r.c: Likewise.
559 * sysdeps/mach/hurd/getlogin_r.c: Likewise.
560 * sysdeps/generic/getlogin_r.c: Likewise.
562 * include/rpc/auth_des.h: Use libc_hidden_proto for rtime.
563 * sunrpc/rtime.c: Add libc_hidden_def.
565 * include/string.h: Use libc_hidden_proto for basename.
566 * string/basename.c [_LIBC]: Add libc_hidden_def.
568 * sysdeps/unix/sysv/linux/opensock.c (__opensock): socket -> __socket.
570 * locale/loadarchive.c: munmap -> __munmap throughout.
572 * include/netdb.h: Use libc_hidden_proto for gai_strerror.
573 * sysdeps/posix/gai_strerror.c: Add libc_hidden_def.
574 * sysdeps/generic/gai_strerror.c: Likewise.
576 * include/sys/errno.h: New file.
578 * include/signal.h: No libc_hidden_proto for raise,
579 __libc_current_sigrtmin, __libc_current_sigrtmax.
580 These need to be overridden by linuxthreads.
581 * sysdeps/posix/raise.c: Reverted.
582 * sysdeps/generic/raise.c: Reverted.
583 * signal/allocrtsig.c: Reverted.
585 * locale/loadarchive.c (LOCALEDIR): Remove debugging defn. Oops.
587 2002-08-10 Roland McGrath <roland@redhat.com>
589 * locale/loadarchive.c (_nl_archive_subfreeres): New function.
590 * locale/localeinfo.h: Declare it.
591 * locale/setlocale.c (free_mem): Don't call _nl_unload_locale on the
592 current locale if it's not in the file list.
593 Call _nl_archive_subfreeres.
595 2002-08-10 Andreas Jaeger <aj@suse.de>
597 * sysdeps/i386/strchr.S: Add comment.
599 2002-08-10 Roland McGrath <roland@redhat.com>
601 * include/wchar.h (putwc): Use libc_hidden_proto.
602 * include/stdio.h (dprintf, fprintf, vfprintf, sprintf,
603 sscanf, fwrite, perror, remove, rewind, open_memstream): Likewise.
604 * stdio-common/dprintf.c: Add libc_hidden_def.
605 * stdio-common/fprintf.c: Likewise.
606 * stdio-common/sprintf.c: Likewise.
607 * stdio-common/sscanf.c: Likewise.
608 * libio/iofwrite.c: Likewise.
609 * libio/memstream.c: Likewise.
610 * libio/putwc.c: Likewise.
611 * stdio-common/perror.c: Likewise.
612 * sysdeps/posix/remove.c: Likewise.
613 * sysdeps/generic/remove.c: Likewise.
614 * libio/rewind.c: Likewise. Use <stdio.h> instead of "stdio.h".
615 * stdio-common/vfprintf.c: Add libc_hidden_def. Include <stdio.h>.
617 2002-08-09 Jakub Jelinek <jakub@redhat.com>
619 * include/wctype.h (iswalpha, iswdigit, iswlower, iswspace, iswxdigit,
620 towlower, towupper): Add prototypes here too. Add libc_hidden_proto.
621 * wctype/wcfuncs.c (iswalpha, iswdigit, iswlower, iswspace, iswxdigit,
622 towlower, towupper): Add libc_hidden_weak.
624 * include/bits/dlfcn.h: New file.
625 * elf/dl-profstub.c (_dl_mcount_wrapper_check): Add libc_hidden_def.
627 * include/grp.h (_nss_files_parse_grent): Add libc_hidden_proto.
628 * include/netinet/ether.h (_nss_files_parse_etherent): Likewise.
629 * include/rpc/netdb.h (_nss_files_parse_rpcent): Likewise.
630 * include/pwd.h (_nss_files_parse_pwent): Likewise.
631 * include/shadow.h (_nss_files_parse_spent): Likewise.
632 * include/netdb.h (_nss_files_parse_protoent,
633 _nss_files_parse_servent, _nss_files_parse_netent): Likewise.
634 * nss/nss_files/files-parse.c (nss_files_parse_hidden_def): Define.
635 (LINE_PARSER): Use it.
636 * nss/nsswitch.h (__nss_hostname_digits_dots): Add libc_hidden_proto.
637 * nss/digits_dots.c (__nss_hostname_digits_dots): Add libc_hidden_def.
639 * libio/oldiopopen.c: Move #if SHLIB_COMPAT after _IO_HAVE_SYS_WAIT
642 * manual/debug.texi (%MENU%): Remove trailing dot.
643 Reported by <hayastan132@hotmail.com>.
645 * sysdeps/unix/sysv/linux/ia64/syscalls.list (llseek): Add lseek
648 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list (llseek, lseek):
651 2002-08-09 Roland McGrath <roland@redhat.com>
653 * locale/loadarchive.c (_nl_load_locale_from_archive): Parse locale
654 name to find codeset name (if any) and normalize it. If the
655 normalized name differs, look up only that in the archive.
656 * locale/programs/locarchive.c (add_locale_to_archive): If the name
657 contains a codeset, normalize the codeset store only the normalized
658 name in the archive. If not, add an alias containing the locale's
659 normalized codeset name. Apply codeset name normalization when
660 matching entries in the alias file.
662 * locale/programs/locarchive.c (delete_locales_from_archive): Don't
663 decrement HEAD->namehash_used here.
664 (add_locale): Only need to insert name string when name_offset != 0.
666 * locale/programs/localedef.c (options): Add -A/--alias-file.
667 (alias_file): New variable.
668 (parse_opt): Grok -A, set that.
669 * locale/programs/localedef.h: Declare it.
671 * locale/locarchive.h (struct locrecent): Add `refs' member.
672 * locale/programs/locarchive.c (insert_name): New function, broken out
674 (add_locale_to_archive): ... here. Call that.
675 (add_alias): New function.
676 (add_locale): New static function, add_locale_to_archive renamed.
677 (add_locale_to_archive): Call that and use add_alias to add an alias
678 for the name with codeset if the given name lacks it.
679 (enlarge_archive): Call add_locale instead of add_locale_to_archive.
681 * locale/Makefile (routines): Add loadarchive.
682 * locale/loadarchive.c: New file, started from code by Ulrich Drepper.
683 (_nl_load_locale_from_archive): New function.
684 * locale/localeinfo.h: Declare it.
685 * locale/findlocale.c (_nl_find_locale): If using default locale path,
686 try _nl_load_locale_from_archive first.
688 * locale/loadlocale.c (_nl_intern_locale_data): New function,
689 broken out of _nl_load_locale.
690 (_nl_load_locale): Call that.
691 * locale/localeinfo.h: Declare it.
692 (struct locale_data): Replace member `mmaped' with `alloc', an enum.
693 (struct locale_data): Remove unused member `options'.
694 * locale/findlocale.c (_nl_remove_locale): Update uses.
695 * locale/loadlocale.c (_nl_load_locale, _nl_unload_locale): Likewise.
696 * locale/C-collate.c: Update initializer.
697 * locale/C-identification.c: Likewise.
698 * locale/C-measurement.c: Likewise.
699 * locale/C-telephone.c: Likewise.
700 * locale/C-address.c: Likewise.
701 * locale/C-name.c: Likewise.
702 * locale/C-paper.c: Likewise.
703 * locale/C-time.c: Likewise.
704 * locale/C-numeric.c: Likewise.
705 * locale/C-monetary.c: Likewise.
706 * locale/C-messages.c : Likewise.
707 * locale/C-ctype.c: Likewise.
709 * locale/hashval.h [! LONGBITS]: Include <limits.h> here and
710 use CHAR_BIT instead of BITSPERBYTE.
712 * locale/localeinfo.h (_nl_find_locale, _nl_load_locale,
713 _nl_unload_locale): Add `internal_function attribute_hidden' to decls.
714 * locale/findlocale.c (_nl_find_locale): Add internal_function to defn.
715 (_nl_remove_locale): Likewise.
716 * locale/loadlocale.c (_nl_load_locale, _nl_unload_locale): Likewise.
718 * locale/findlocale.c (_nl_default_locale_path): New variable.
719 (_nl_find_locale): If LOCALE_PATH is null, default to that.
720 * locale/localeinfo.h: Declare it.
721 * locale/setlocale.c (setlocale): Use _nl_default_locale_path
722 in place of LOCALEDIR. If no LOCPATH, pass null to _nl_find_locale.
723 * locale/newlocale.c (__newlocale): Likewise.
725 * misc/err.c (vwarnx, vwarn): Fix typos in libc_hidden_def uses.
726 * inet/rexec.c (rexec_af): Add libc_hidden_def.
727 * sysdeps/generic/morecore.c: Likewise.
728 * signal/allocrtsig.c (__libc_current_sigrtmin): Likewise.
729 (__libc_current_sigrtmax): Likewise.
731 2002-08-08 Roland McGrath <roland@redhat.com>
733 * locale/loadlocale.c (_nl_load_locale): Don't use MAP_INHERIT.
734 * catgets/open_catalog.c (__open_catalog): Likewise.
736 * locale/programs/locarchive.c (INITIAL_NUM_NAMES): Renamed
737 from typo INITIAL_NUM_NANES.
738 (create_archive): Update use.
740 2002-08-08 Ulrich Drepper <drepper@redhat.com>
742 * sysdeps/unix/sysv/linux/sigwait.c: New file.
744 2002-08-08 Roland McGrath <roland@frob.com>
746 * resolv/netdb.h: Don't declare h_errno as a plain global any more.
748 2002-08-08 Jakub Jelinek <jakub@redhat.com>
750 * sysdeps/wordsize-64/wcstol_l.c (wcstoll_l): Define to something
751 else and undefine after including wcstol_l.c.
752 * sysdeps/wordsize-64/wcstoul_l.c (wcstoull_l): Similarly.
754 2002-08-08 Ulrich Drepper <drepper@redhat.com>
756 * gmon/gmon.c (write_gmon): Use O_NOFOLLOW in open calls if available.
758 2002-08-08 Alexandre Oliva <aoliva@redhat.com>
760 * configure.in: Make the test for broken_alias_attribute stricter.
762 2002-05-24 Robert Love <rml@tech9.net>
764 * posix/Makefile (routines): Add sched_getaffinity and
766 * posix/sched.h: Add declarations for sched_getaffinity and
768 * sysdeps/generic/sched_getaffinity.c: New file.
769 * sysdeps/generic/sched_setaffinity.c: New file.
770 * sysdeps/unix/sysv/linux/syscalls.list: Add sched_getaffinity and
773 2002-08-06 Andreas Schwab <schwab@suse.de>
775 * sysdeps/unix/utime.c: If TIMES is NULL pass it through to utimes.
777 2002-08-07 Ulrich Drepper <drepper@redhat.com>
779 * elf/dl-load.c (_dl_map_object_from_fd): Add missing \n in error
782 * stdlib/isomac.c (get_null_defines): Treat NOT_IN_libc special.
783 It is known to be defined.
785 * include/string.h: Define index and rindex only if _ISOMAC is not
788 * elf/rtld.c: Include <errno.h>.
789 * sysdeps/generic/libc-tls.c: Likewise.
791 2002-08-07 Roland McGrath <roland@redhat.com>
793 * resolv/res_debug.c (latlon2ul): Add const to argument type, and use
795 (precsize_aton): Likewise.
797 * inet/getnetgrent_r.c (endnetgrent, __getnetgrent_r): Actually call
798 the static symbols added in the last change (doofus is me).
800 * locale/newlocale.c (__newlocale): Use a bit mask instead of a second
801 loop to notice missing categories in a composite name.
803 * locale/locale.h (LC_CTYPE_MASK, LC_NUMERIC_MASK, LC_TIME_MASK,
804 LC_COLLATE_MASK, LC_MONETARY_MASK, LC_MESSAGES_MASK, LC_ALL_MASK,
805 LC_PAPER_MASK, LC_NAME_MASK, LC_ADDRESS_MASK, LC_TELEPHONE_MASK,
806 LC_MEASUREMENT_MASK, LC_IDENTIFICATION_MASK, LC_ALL_MASK): New macros.
808 2002-08-07 Ulrich Drepper <drepper@redhat.com>
810 * malloc/tst-calloc.c: Add tests for one or both parameters being zero.
812 2002-08-07 Roland McGrath <roland@redhat.com>
814 * sysdeps/i386/dl-machine.h (elf_machine_rel): Add to, don't clobber,
815 unrelocated initial value for DTPOFF32 and TPOFF32 relocs.
816 Reported by Jakub Jelinek <jakub@redhat.com>.
818 2002-08-07 Jakub Jelinek <jakub@redhat.com>
820 * malloc/malloc.c (public_cALLOc): Check ELEM_SIZE != 0 before
823 2002-08-06 Roland McGrath <roland@redhat.com>
825 * include/getopt.h: Put private decls inside [_GETOPT_H].
826 Use libc_hidden_proto for getopt_long, getopt_long_only.
827 * posix/getopt1.c [_LIBC]: Include <getopt.h> instead of "getopt.h".
830 * sysdeps/generic/unwind-dw2-fde-glibc.c [_LIBC] (dl_iterate_phdr):
831 Define as a macro for __dl_iterate_phdr.
833 * inet/getnetgrent_r.c (internal_setnetgrent): Renamed from __ name,
834 made static. Add __ name as a strong alias.
835 (internal_endnetgrent): Likewise.
836 (internal_getnetgrent_r): Likewise.
838 * locale/Versions (libc: GLIBC_2.3): Add all the *_l functions
840 * locale/langinfo.h [__USE_GNU]: Declare nl_langinfo_l.
841 * ctype/ctype.h [__USE_GNU]: Add declarations and macros for
842 all *_l functions with no __ prefix.
843 * wctype/wcfuncs_l.c: Define weak aliases without __ for all fns.
844 * ctype/ctype_l.c: Likewise.
845 * locale/nl_langinfo.c: Likewise.
846 * string/string.h [__USE_GNU]: Add decls for all *_l fns with no __.
847 * stdlib/stdlib.h [__USE_GNU]: Likewise.
848 * wcsmbs/wchar.h [__USE_GNU]: Likewise.
849 * wctype/wctype.h [__USE_GNU]: Likewise.
850 * string/strcoll_l.c (strcoll_l): Define as weak alias.
851 * string/strxfrm_l.c (strxfrm_l): Define as weak alias.
852 * sysdeps/generic/strcasecmp_l.c (strcasecmp_l): Define as weak alias.
853 * sysdeps/generic/strncase_l.c (strncasecmp_l): Define as weak alias.
854 * stdlib/strtod_l.c (strtod_l): Define as weak alias.
855 * stdlib/strtof_l.c (strtof_l): Define as weak alias.
856 * stdlib/strtold_l.c (strtold_l): Define as weak alias.
857 * wcsmbs/wcscasecmp_l.c (wcscasecmp_l): Define as weak alias.
858 (__wcscasecmp_l): Add libc_hidden_def.
859 * wcsmbs/wcsncase_l.c (wcsncasecmp_l): Define as weak alias.
860 (__wcsncasecmp_l): Add libc_hidden_def.
861 * wcsmbs/wcstof_l.c (wcstof_l): Define as weak alias.
862 * wcsmbs/wcstod_l.c (wcstod_l): Define as weak alias.
863 * wcsmbs/wcstold_l.c (wcstold_l): Define as weak alias.
864 * wcsmbs/wcscoll_l.c (wcscoll_l): Define as weak alias.
865 * wcsmbs/wcsxfrm_l.c (wcsxfrm_l): Define as weak alias.
866 * sysdeps/generic/wcstol_l.c (wcstol_l): Define as weak alias.
867 * sysdeps/generic/wcstoll_l.c (wcstoll_l): Define as weak alias.
868 * sysdeps/generic/wcstoul_l.c (wcstoul_l): Define as weak alias.
869 * sysdeps/generic/wcstoull_l.c (wcstoull_l): Define as weak alias.
870 * sysdeps/wordsize-64/wcstol_l.c (wcstoll_l): Define as weak alias.
871 * sysdeps/wordsize-64/wcstoul_l.c (wcstoull_l): Define as weak alias.
872 * wctype/wctrans_l.c (wctrans_l) Define as weak alias.
873 * wctype/towctrans_l.c (towctrans_l) Define as weak alias.
874 * wctype/wctype_l.c (wctype_l) Define as weak alias.
876 2002-08-05 Roland McGrath <roland@redhat.com>
878 * include/rpc/auth.h: Use libc_hidden_proto for getnetname,
879 netname2user, host2netname, user2netname, key_gendes.
880 * sunrpc/netname.c: Add libc_hidden_def.
881 * sunrpc/key_call.c: Likewise.
883 * include/netdb.h: Use libc_hidden_proto for getaddrinfo, getnameinfo,
885 * inet/getnameinfo.c: Add libc_hidden_def.
886 * sysdeps/generic/getaddrinfo.c: Likewise.
887 * sysdeps/posix/getaddrinfo.c: Likewise.
889 * include/wchar.h: Use libc_hidden_proto for wmemchr, wmemset.
890 * wcsmbs/wmemchr.c: Add libc_hidden_def.
891 * wcsmbs/wmemset.c: Add libc_hidden_def.
893 * include/string.h: Move libc_hidden_proto's inside #ifndef _STRING_H.
894 (index, rindex): Define as macros for strchr, strrchr.
896 * string/envz.c (envz_strip): index -> strchr
898 * include/rpc/rpc_msg.h: Use libc_hidden_proto for _seterr_reply.
899 * sunrpc/rpc_prot.c: Add libc_hidden_def.
901 * include/wchar.h: Use libc_hidden_proto for mbrtowc.
902 * wcsmbs/mbrtowc.c: Add libc_hidden_weak.
904 * include/stdlib.h: Use libc_hidden_proto for wctomb.
905 * stdlib/wctomb.c: Add libc_hidden_def.
907 * include/netdb.h: Use libc_hidden_proto for innetgr, rcmd_af,
908 rexec_af, rresvport_af, ruserok_af, iruserok_af, ruserpass, hstrerror.
909 * resolv/herror.c: Likewise.
910 * inet/rcmd.c: Add libc_hidden_def.
911 * inet/ruserpass.c: Likewise.
912 * inet/getnetgrent_r.c: Likewise.
914 * include/rpc/svc.h: Use libc_hidden_proto for svc_register,
915 svc_unregister, remove *_internal decls. Use libc_hidden_proto
916 for svcerr_auth, svcerr_noprog, svcerr_progvers.
917 * sunrpc/svc.c (svc_register, svc_unregister): Change INTDEF to
919 (svcerr_auth, svcerr_noprog, svcerr_progvers): Add libc_hidden_def.
920 * sunrpc/svc_simple.c (registerrpc): Nix INTUSE for svc_register.
922 * sysdeps/posix/system.c (do_system): New function, guts broken out of
924 (__libc_system): Call it, putting just the line == NULL test here.
926 * include/libc-symbols.h (__hidden_proto): Add extern keywords so
927 variables work right.
929 * elf/dl-open.c (dl_open_worker): Use _ macro instead of gettext.
930 * elf/dl-close.c (_dl_close): Likewise.
932 * include/netinet/in.h: Use libc_hidden_proto for bindresvport,
933 in6addr_any, in6addr_loopback. Remove decls for
934 bindresvport_internal, in6addr_any_internal, in6addr_loopback_internal.
935 * sunrpc/svc_udp.c (svcudp_bufcreate): Nix INTUSE for bindresvport.
936 * sunrpc/svc_tcp.c (svctcp_create): Likewise.
937 * sunrpc/clnt_udp.c (clntudp_bufcreate): Likewise.
938 * sunrpc/bindrsvprt.c: Change INTDEF to libc_hidden_def.
939 * inet/in6_addr.c: Change INTVARDEF to libc_hidden_def.
940 * sysdeps/posix/getaddrinfo.c (gaih_inet): Nix INTUSE for
942 * inet/gethstbyad_r.c (PREPROCESS): Nix INTUSE for in6addr_any.
944 * include/netinet/ether.h: Use libc_hidden_proto for ether_ntoa_r,
946 * inet/ether_aton_r.c: Add libc_hidden_def.
947 * inet/ether_ntoa_r.c: Likewise.
949 * include/rpc/svc.h: Use libc_hidden_proto for xprt_register,
951 * sunrpc/svc.c: Add libc_hidden_def.
952 * include/rpc/pmap_clnt.h: Use libc_hidden_proto for pmap_getport,
953 pmap_set, pmap_unset.
954 * sunrpc/pmap_clnt.c: Add libc_hidden_def.
955 * sunrpc/pm_getport.c: Likewise.
956 * include/rpc/auth_des.h: Use libc_hidden_proto for getpublickey.
957 * sunrpc/publickey.c: Add libc_hidden_def.
959 2002-08-05 Ulrich Drepper <drepper@redhat.com>
961 * elf/rtld.c (_dl_start): Don't use memset. Use same tricks as for
962 the other memset call in this function.
964 * sysdeps/generic/dl-tls.c (_dl_allocate_tls_init): Store dtv pointer
965 at correct index. Clear BSS region now that memalign is used.
967 2002-08-05 Roland McGrath <roland@redhat.com>
969 * include/sys/utsname.h: Use libc_hidden_proto for uname, __uname.
970 * sysdeps/generic/uname.c: Add libc_hidden_def.
971 * sysdeps/mach/hurd/uname.c: Likewise.
973 2002-08-05 Jakub Jelinek <jakub@redhat.com>
975 * include/wchar.h (wcrtomb, wcscmp, wcsftime, wcsspn, wcschr, wcscoll,
976 wcspbrk): Add libc_hidden_proto.
977 * time/strftime.c (my_strftime): Add libc_hidden_def.
978 (strftime): Remove libc_hidden_def.
979 * wcsmbs/wcschr.c (wcschr): Add libc_hidden_def.
980 * wcsmbs/wcspbrk.c (wcspbrk): Likewise.
981 * wcsmbs/wcsspn.c (wcsspn): Likewise.
982 * wcsmbs/wcscmp.c (wcscmp): Likewise.
983 * wcsmbs/wcrtomb.c (wcrtomb): Add libc_hidden_weak.
984 * wcsmbs/wcscoll.c (wcscoll): Likewise.
986 * include/rpc/rpc.h (__rpc_thread_svc_max_pollfd,
987 __rpc_thread_svc_pollfd, __rpc_thread_svc_fdset,
988 __rpc_thread_createerr): Add libc_hidden_proto.
989 * sunrpc/rpc_thread.c (__rpc_thread_svc_max_pollfd,
990 __rpc_thread_svc_pollfd, __rpc_thread_svc_fdset,
991 __rpc_thread_createerr): Add libc_hidden_def.
993 * include/rpc/clnt.h (clnt_sperrno, clnt_spcreateerror,
994 clnt_perror, clnt_sperror, _rpc_dtablesize): Add libc_hidden_proto.
995 * sunrpc/clnt_perr.c (clnt_sperrno, clnt_spcreateerror,
996 clnt_perror, clnt_sperror): Add libc_hidden_def.
997 * sunrpc/rpc_dtable.c (_rpc_dtablesize): Likewise.
999 * include/rpc/des_crypt.h (des_setparity, ecb_crypt, cbc_crypt): Add
1001 * sunrpc/des_crypt.c (ecb_crypt, cbc_crypt): Add libc_hidden_proto.
1002 * sunrpc/des_soft.c (des_setparity): Likewise.
1004 * include/rpc/auth.h (key_encryptsession_pk, key_decryptsession_pk):
1005 Add libc_hidden_proto.
1006 * sunrpc/key_call.c (key_encryptsession_pk, key_decryptsession_pk):
1007 Add libc_hidden_def.
1009 2002-08-05 Roland McGrath <roland@redhat.com>
1011 * sysdeps/generic/ldsodefs.h (struct rtld_global): Replace member
1012 `bool _dl_initial_dtv_malloced' with `void *_dl_initial_dtv'.
1013 * elf/rtld.c (dl_main): Set it to the new dtv for the main thread.
1014 * sysdeps/generic/dl-tls.c (__tls_get_addr): When reallocating the
1015 dtv, check if it matches _dl_initial_dtv; if so, malloc and copy the
1016 old data, abandoning the original memory allocated by rtld at startup,
1017 instead of calling realloc normally.
1019 2002-08-05 Ulrich Drepper <drepper@redhat.com>
1021 * po/fr.po: Update from translation team.
1023 2002-08-04 Roland McGrath <roland@redhat.com>
1025 * sysdeps/unix/make-syscalls.sh: If the syscall name field is -
1026 then generate a dummy module under the given name, obeying the
1027 normal rules for the "caller" field.
1029 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Make the phdr loop
1030 actually iterate over the elements. Fix typo p_type -> p_vaddr.
1032 * include/pthread.h: Don't declare __pthread_initialize_minimal as
1033 weak here; we declare it weak or strong in the one place we use it.
1034 * sysdeps/generic/libc-start.c: ... which is here.
1035 Don't make the decl weak if [USE_TLS], since static programs need TLS
1036 setup even when single-threaded.
1038 * stdlib/isomac.c (fmt): Add -DNOT_IN_libc to the compiler command.
1040 * elf/Makefile (test-srcs): Add $(modules-names) to it.
1041 (CFLAGS-vismod2.c, CFLAGS-failobj.c, CFLAGS-constload2.c,
1042 CFLAGS-reldepmod3.c, CFLAGS-reldepmod4.c, CFLAGS-ltglobmod2.c): Remove
1043 all these variables.
1045 2002-08-04 Ulrich Drepper <drepper@redhat.com>
1047 * include/stdio.h: Don't define macro magic to redirect function
1048 calls if _ISOMAC is defined.
1050 * sysdeps/i386/fpu/libm-test-ulps: Add epsilons for inlined
1053 2002-08-04 Roland McGrath <roland@redhat.com>
1055 * stdlib/lrand48_r.c: Add libc_hidden_def.
1057 * sysdeps/generic/dl-tls.c (_dl_allocate_tls_storage): Allocate the
1058 TCB with __libc_memalign instead of mmap.
1059 (_dl_deallocate_tls): Free it with free instead of munmap.
1061 * Makerules (cpp-srcs-left): When setting this to run
1062 cppflags-iterator.mk, must append .c to $(tests) and $(xtests)
1063 words. Combine the two loops into one on the concatenated list,
1064 including those as well as $(test-srcs).
1066 * elf/dl-minimal.c (__libc_memalign): Guts of malloc moved here,
1067 since we align here with optimally minimal waste anyway.
1068 (malloc): Just call that.
1070 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Set l_tls_offset to
1073 * elf/dl-load.c (_dl_map_object_from_fd): Use p_vaddr, not p_offset,
1074 to compute memory location for l_tls_initimage.
1075 * elf/rtld.c (_dl_start): Likewise.
1076 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Likewise.
1078 * libio/oldiopopen.c: Move #include's before #if SHLIB_COMPAT,
1079 because the .d file is generated in the non-shared case and
1080 so fails to catch them otherwise.
1082 * sysdeps/generic/dl-tls.c (_dl_allocate_tls_storage): New function,
1083 split out of _dl_allocate_tls.
1084 (_dl_allocate_tls_init): Likewise.
1085 (_dl_allocate_tls): Call those.
1086 * sysdeps/generic/ldsodefs.h: Declare them with attribute_hidden.
1087 * elf/rtld.c (dl_main): Call them separately instead of calling
1088 _dl_allocate_tls. Delay _dl_allocate_tls_init until after relocation
1089 is finished, so that the initializer data has been relocated before we
1090 copy it into the main thread's TLS block.
1092 * sysdeps/generic/dl-tls.c (_dl_allocate_tls): Fix off-by-one error in
1093 loop conditions, prevented the last used module from being initialized.
1095 2002-08-04 Jakub Jelinek <jakub@redhat.com>
1097 * sysdeps/generic/glob.c (glob, globfree): Only use libc_hidden_def
1098 if glob resp. globfree are not macros.
1099 * sysdeps/gnu/glob64.c (globfree64): Add libc_hidden_def.
1100 * sysdeps/unix/sysv/linux/alpha/glob.c (glob, globfree, globfree64):
1101 Add libc_hidden_ver.
1102 * sysdeps/unix/sysv/linux/i386/glob64.c (globfree64): Add
1104 * sysdeps/wordsize-64/glob.c (globfree64): Use libc_hidden_ver
1105 instead of libc_hidden_weak.
1106 * sysdeps/wordsize-64/strtol.c (__strtoll_internal): Use
1107 libc_hidden_ver instead of libc_hidden_def.
1108 * sysdeps/wordsize-64/wcstol.c (__wcstoll_internal): Use
1109 libc_hidden_ver instead of libc_hidden_def.
1110 (wcstoll, wcstoq): Remove libc_hidden_weak.
1111 * sysdeps/wordsize-64/strtol_l.c (____strtoll_l_internal): Add
1113 * sysdeps/wordsize-64/strtoul.c (__strtoull_internal): Add
1115 * sysdeps/wordsize-64/strtoul_l.c (____strtoull_l_internal): Add
1117 * sysdeps/wordsize-64/wcstoul.c (__wcstoull_internal): Add
1120 2002-08-04 Ulrich Drepper <drepper@redhat.com>
1122 * stdio-common/psignal.c: Declare _sys_siglist_internal. Use USEINT
1123 to access _sys_siglist.
1124 * string/strsignal.c: Likewise.
1125 * sysdeps/generic/siglist.c: Add _sys_siglist_internal alias.
1126 * sysdeps/gnu/siglist.c: Likewise.
1127 * sysdeps/unix/siglist.c: Likewise.
1128 * sysdeps/unix/sysv/linux/arm/siglist.c: Likewise.
1130 * libio/fileops.c: Add missing INTUSEs for _IO_file_jumps.
1132 * libio/wfileops.c: Add missing INTUSE for _IO_file_close.
1134 * intl/dcigettext.c: Define _nl_default_dirname_internal as hidden
1136 * intl/bindtextdom.c: Use _nl_default_dirname_internal.
1138 * include/netinet/in.h: Add declaration of in6addr_loopback_internal.
1139 * inet/in6_addr.c: Add INTVARDEF for in6addr_loopback.
1140 * sysdeps/posix/getaddrinfo.c: Use INTUSE for in6addr_loopback access.
1142 * include/time.h: Add libc_hidden_proto for __gmtime_r.
1143 * time/gmtime.c (__gmtime_r): Add libc_hidden_def.
1145 * iconv/Versions: Replace __gconv_alias_db, __gconv_modules_db,
1146 and __gconv_cache with __gconv_get_alias_db, __gconv_get_modules_db,
1147 and __gconv_get_cache respectively.
1148 * iconv/gconv_cache.c (gconv_cache): Renamed for __gconv_cache and
1149 defined static. Change all users.
1150 (__gconv_get_cache): New function.
1151 * iconv/gconv_db.c (__gconv_get_modules_db): New function.
1152 (__gconv_get_alias_db): New function.
1153 * iconv/gconv_int.h (__gconv_alias_db): Declare as hidden.
1154 (__conv_modules_db): Likewise.
1155 Add prototypes for __gconv_get_cache, __gconv_get_modules_db,
1156 and __gconv_get_alias_db.
1157 * iconv/iconv_prog.c: Use the new functions instead of accessing the
1160 * include/stdlib.h: Add prototype and libc_hidden_proto for
1162 * sysdeps/generic/morecore.c: Include <stdlib.h>.
1164 * malloc/obstack.c: Remove fputs macro.
1166 * malloc/mtrace.c: Remove fopen macro.
1168 2002-08-04 Jakub Jelinek <jakub@redhat.com>
1170 * manual/debug.texi: Fix spelling to programmatically.
1171 Reported by <hayastan132@hotmail.com>.
1173 2002-08-04 Ulrich Drepper <drepper@redhat.com>
1175 * include/libio.h: Add libc_hidden_proto for __uflow.
1176 * include/stdio.h: Map fopen, fdopen, fclose, fputs, fsetpos, and
1177 fgetpos to _IO_* names.
1178 Add libc_hidden_proto for fileno, fwrite, fseek, fflush_unlocked,
1179 fread_unlocked, fwrite_unlocked, fgets_unlocked, fputs_unlocked.
1180 * include/wchar.h: Add libc_hidden_proto for fputws_unlocked,
1181 putwc_unlocked, vswscanf.
1182 * libio/iolibio.h: Add libc_hidden_proto for _IO_fputs.
1183 * libio/fileno.c: Use <stdio.h> and libc_hidden_def.
1184 * libio/fseek.c: Likewise.
1185 * libio/fmemopen.c: Include "libioP.h". Call _IO_fopencookie and
1187 * libio/genops.c (__uflow): Add libc_hidden_def.
1188 * libio/iofflush_u.c (fflush_unlocked): Likewise.
1189 * libio/iofgets_u.c (fgets_unlocked): Likewise.
1190 * libio/iofputs_u.c (fputs_unlocked): Likewise.
1191 * libio/iofputws_u.c (fputws_unlocked): Likewise.
1192 * libio/iofread_u.c (fread_unlocked): Likewise.
1193 * libio/iofwrite_u.c (fwrite_unlocked): Likewise.
1194 * libio/iovswscanf.c (vswscanf): Likewise.
1195 * libio/putwc_u.c (putwc_unlocked): Likewise.
1196 * libio/iofputs.c: Use libc_hidden_def instead of INTDEF.
1197 * malloc/malloc.c: Redirect fwrite calls to _IO_fwrite.
1198 * malloc/mtrace.c: Likewise.
1200 * sunrpc/clnt_perr.c: Remove fputs macro.
1201 * sunrpc/svc_simple.c: Likewise.
1202 * sunrpc/svc_tcp.c: Likewise.
1203 * sunrpc/svc_udp.c: Likewise.
1204 * sunrpc/xdr_rec.c: Likewise.
1205 * sunrpc/xdr_ref.c: Likewise.
1207 * iconv/Makefile: Add CPPFLAGS definitions with -DNOT_in_libc for
1208 iconv_prog, linereader, and charmap-dir.
1209 * locale/Makefile: Likewise for locale and charmap-dir.
1210 * malloc/Makefile: Likewise for memusagestat.
1211 * nscd/Makefile: Likewise for nscd, nscd_conf, and dbg_log.
1212 * sunrpc/Makefile: Likewise for rpc_main.
1213 * sysdeps/unix/sysv/linux/Makefile: Likewise for lddlibc4.
1214 * timezone/Makefile: Likewise for zic.
1216 * stdio-common/perror.c: Avoid multiple calls to fileno_unlocked.
1218 * elf/dl-addr.c (_dl_addr): Add libc_hidden_def.
1219 * elf/dl-close.c (_dl_close): Add libc_hidden_def.
1220 * elf/dl-open.c (_dl_open): Add libc_hidden_def.
1221 * include/dlfcn.h: Add libc_hidden_proto for _dl_addr, _dl_open,
1224 * include/libio.h: Add libc_hidden_proto for __underflow, __wuflow,
1226 * libio/genops.c (__underflow): Add libc_hidden_def.
1227 * libio/wgenops.c (__wuflow): Likewise.
1228 (__wunderflow): Likewise.
1230 * include/obstack.h: Add libc_hidden_proto for _obstack_newchunk.
1231 * malloc/obstack.c (_obstack_newchunk): Add libc_hidden_def.
1233 * include/stdio.h: Add libc_hidden_proto for __vfscanf.
1234 * stdio-common/vfscanf.c (__vfscanf): Add libc_hidden_def.
1236 * include/string.h: Add libc_hidden_proto for __strverscmp.
1237 * string/strverscmp.c (__strverscmp): Add libc_hidden_def.
1239 * include/unistd.h: Add libc_hidden_proto for __sysconf.
1240 * sysdeps/generic/sysconf.c (__sysconf): Add libc_hidden_def.
1241 * sysdeps/posix/sysconf.c: Likewise.
1242 * sysdeps/unix/sysv/irix4/sysconf.c: Likewise.
1243 * sysdeps/unix/sysv/sysv4/sysconf.c: Likewise.
1245 * include/wctype.h: Use libc_hidden_proto for __iswctype, __iswalnum_l,
1246 __iswalpha_l, __iswblank_l, __iswcntrl_l, __iswdigit_l, __iswlower_l,
1247 __iswgraph_l, __iswprint_l, __iswpunct_l, __iswspace_l, __iswupper_l,
1248 __iswxdigit_l, __towlower_l, __towupper_l.
1249 * wcsmbs/wcstype.c (__iswctype): Use libc_hidden_def.
1250 * wcsmbs/wcfuncs_l.c: Use libc_hidden_def for all functions.
1252 * include/sys/wait.h: Add libc_hidden_proto for __xmknod.
1253 * sysdeps/generic/xmknod.c (__xmknod): Add libc_hidden_def.
1254 * sysdeps/mach/hurd/xmknod.c: Likewise.
1255 * sysdeps/unix/xmknod.c: Likewise.
1256 * sysdeps/unix/sysv/linux/xmknod.c: Likewise.
1257 * sysdeps/unix/sysv/linux/alpha/xmknod.c: Likewise.
1258 * sysdeps/unix/sysv/linux/mips/xmknod.c: Likewise.
1260 * sunrpc/svc.c: Add missing INTUSE for _authenticate.
1262 2002-08-03 Roland McGrath <roland@redhat.com>
1264 * include/sys/resource.h: Use libc_hidden_proto for getpriority,
1266 * sysdeps/unix/sysv/linux/getpriority.c: Add libc_hidden_def.
1267 * sysdeps/unix/sysv/irix4/getpriority.c: Likewise.
1268 * sysdeps/unix/sysv/irix4/setpriority.c: Likewise.
1269 * sysdeps/mach/hurd/setpriority.c: Likewise.
1270 * sysdeps/mach/hurd/getpriority.c: Likewise.
1271 * sysdeps/generic/setpriority.c: Likewise.
1272 * sysdeps/generic/getpriority.c: Likewise.
1274 * include/mcheck.h: Use libc_hidden_proto for mcheck_check_all.
1275 * malloc/mcheck.c: Add libc_hidden_def.
1277 * include/search.h: Use libc_hidden_proto for hcreate_r, hdestroy_r.
1278 * misc/hsearch_r.c: Add libc_hidden_def.
1280 * include/fnmatch.h: Use libc_hidden_proto for fnmatch.
1281 * posix/fnmatch.c: Add libc_hidden_weak.
1283 * include/unistd.h: Use libc_hidden_proto for _exit, alarm, confstr,
1284 execl, execle, execlp, execvp, getpid, getsid.
1285 * sysdeps/generic/alarm.c: Add libc_hidden_def.
1286 * sysdeps/unix/alarm.c: Likewise.
1287 * posix/confstr.c: Likewise.
1288 * posix/execvp.c: Likewise.
1289 * posix/execlp.c: Likewise.
1290 * posix/execle.c: Likewise.
1291 * posix/execl.c: Likewise.
1292 * sysdeps/generic/getsid.c: Likewise.
1293 * sysdeps/mach/hurd/getsid.c: Likewise.
1294 * sysdeps/generic/getpid.c: Add libc_hidden_weak.
1295 * sysdeps/mach/hurd/getpid.c: Likewise.
1297 * include/stdlib.h: Use libc_hidden_proto for ecvt_r, fcvt_r,
1298 qecvt_r, qfcvt_r, lrand48_r.
1299 * misc/efgcvt_r.c: Add libc_hidden_def.
1301 * include/wordexp.h: Use libc_hidden_proto for wordfree.
1302 * sysdeps/generic/wordexp.c: Add libc_hidden_def.
1304 * include/langinfo.h: Use libc_hidden_proto for nl_langinfo.
1305 * locale/nl_langinfo.c: Add libc_hidden_def.
1307 * include/glob.h: Use libc_hidden_proto for glob, globfree, globfree64.
1308 * sysdeps/generic/glob.c: Add libc_hidden_def.
1309 * sysdeps/generic/glob64.c: Likewise.
1310 * sysdeps/wordsize-64/glob.c (globfree64): Add libc_hidden_weak.
1312 * locale/nl_langinfo.c: Use _NL_CURRENT_DATA.
1314 * elf/Makefile (CFLAGS-vismod2.c): New variable.
1316 * locale/setlocale.c (_nl_current_names): Variable moved ...
1317 * locale/localename.c (_nl_current_names): ... here, new file.
1318 Make it global, with attribute_hidden.
1319 * locale/localeinfo.h: Declare it.
1320 * locale/Makefile (aux): Add localename.
1321 * locale/localename.c (__current_locale_name): New function.
1322 * include/locale.h (__current_locale_name): Declare it.
1323 * intl/dcigettext.c (guess_category_value): Use that instead of
1326 * locale/locale.h [__USE_GNU] (locale_t): New type alias of __locale_t.
1327 [__USE_GNU] (newlocale, duplocale, freelocale, uselocale): New decls.
1328 [__USE_GNU] (LC_GLOBAL_LOCALE): New macro.
1329 * locale/newlocale.c: Add alias to __ name.
1330 * locale/duplocale.c: Likewise.
1331 * locale/freelocale.c: Likewise.
1332 * locale/uselocale.c: New file.
1333 * locale/Makefile (routines): Add it.
1334 * locale/Versions (libc: GLIBC_2.3): New set.
1335 Add newlocale, duplocale, freelocale, uselocale.
1336 (libc: GLIBC_PRIVATE): Add __uselocale.
1338 * locale/localeinfo.h [SHARED]
1339 (_NL_CURRENT_LOCALE): New macro, defined to fetch a tsd value.
1340 (_NL_CURRENT_DATA): Define using that.
1341 (_NL_CURRENT, _NL_CURRENT_WSTR, _NL_CURRENT_WORD): Define using that.
1342 (_NL_CURRENT_DEFINE): Define to empty.
1343 [! SHARED]: Decls of _nl_current_CATEGORY and _nl_current
1344 conditionalized on this.
1345 * locale/xlocale.c (NL_C_INTIIALIZER): New macro,
1346 taking initializer of _nl_C_locobj.
1347 [SHARED] (_nl_global_locale): New variable, using that initializer.
1348 (_nl_C_locobj): Use new macro for initialzier.
1349 * locale/setlocale.c [! SHARED] (_nl_current): Conditionalize on this.
1350 [! SHARED] (CATEGORY_USED): New macro.
1351 [SHARED] (CATEGORY_USED, _nl_C): New macros.
1352 (setdata, setlocale): Use that macro instead of examining _nl_current.
1353 (setdata): Set the slot in _nl_global_locale.
1354 Conditionalize setting of _nl_current on [! SHARED].
1355 * locale/findlocale.c [SHARED] (_nl_C): Define as a macro instead of
1356 declaration as an extern.
1357 * locale/newlocale.c (__newlocale): Use _nl_C_locobj instead of _nl_C.
1359 * include/locale.h: Use libc_hidden_proto for setlocale.
1360 * locale/setlocale.c: Add libc_hidden_def.
1362 * locale/setlocale.c (free_mem): Use _NL_CURRENT_DATA.
1364 * include/search.h: Use libc_hidden_proto for hsearch_r, lfind.
1365 * misc/hsearch_r.c: Add libc_hidden_def.
1366 * misc/lsearch.c: Likewise.
1368 * include/ttyent.h: Use libc_hidden_proto for getttyent, setttyent,
1370 * misc/getttyent.c: Add libc_hidden_def.
1372 * include/mcheck.h: Use libc_hidden_proto for mcheck.
1373 * malloc/mcheck.c: Add libc_hidden_def.
1375 * include/envz.h: Use libc_hidden_proto for envz_entry, enz_remove.
1376 * include/argz.h: Use libc_hidden_proto for argz_delete.
1377 * string/argz-delete.c: Add libc_hidden_def.
1378 * string/envz.c: Likewise. Use <envz.h>, not "envz.h".
1380 * sysdeps/unix/sysv/linux/x86_64/clone.S (thread_start): Use
1381 HIDDEN_JUMPTARGET for _exit.
1382 * sysdeps/unix/sysv/linux/m68k/clone.S (thread_start): Likewise.
1383 * sysdeps/unix/sysv/linux/i386/clone.S (thread_start): Likewise.
1384 * sysdeps/unix/sysv/linux/powerpc/clone.S: Likewise.
1385 * sysdeps/unix/_exit.S (_exit): Add libc_hidden_def.
1387 * include/libc-symbols.h: Fix [__ASSEMBLY__] -> [__ASSEMBLER__].
1388 [__ASSEMBLER__] (hidden_weak): Define using hidden_def, or to empty.
1389 [__ASSEMBLER__] (HIDDEN_JUMPTARGET): New macro.
1390 * sysdeps/unix/sysv/linux/i386/makecontext.S: Use it for exit.
1392 * include/stdlib.h: Use libc_hidden_proto for abort,
1393 __strtof_internal, __strtod_internal, __strtold_internal,
1394 __strtol_internal, __strtoll_internal, __strtoul_internal,
1395 __strtoull_internal. __strtof_l_internal, __strtod_l_internal,
1396 __strtold_l_internal, __strtol_l_internal, __strtoll_l_internal,
1397 __strtoul_l_internal, __strtoull_l_internal.
1398 * include/wchar.h: Use libc_hidden_proto for __wcstof_internal,
1399 __wcstod_internal, __wcstold_internal, __wcstol_internal,
1400 __wcstoll_internal, __wcstoul_internal, ____wcstof_l_internal,
1401 ____wcstod_l_internal, ____wcstold_l_internal, ____wcstol_l_internal,
1402 ____wcstoll_l_internal, ____wcstoul_l_internal, __wcscasecmp_l,
1404 * sysdeps/generic/abort.c: Add libc_hidden_def.
1405 * stdlib/strtod.c: Likewise.
1406 * sysdeps/generic/strtol.c: Likewise.
1407 * sysdeps/wordsize-64/strtol.c: Likewise.
1408 * sysdeps/wordsize-64/wcstol.c: Likewise.
1409 * sysdeps/wordsize-64/wcstol_l.c: Likewise.
1411 * include/stdlib.h: Use libc_hidden_proto for qsort.
1412 * stdlib/msort.c: Add libc_hidden_def.
1414 * include/utime.h: Use libc_hidden_proto for utime.
1415 * sysdeps/generic/utime.c: Add libc_hidden_def.
1416 * sysdeps/unix/utime.c: Likewise.
1418 * sysdeps/generic/utmp_file.c (LOCK_FILE): sigemptyset -> __sigemptyset
1419 * sysdeps/posix/profil.c (__profil): sigfillset -> __sigfillset
1420 * sysdeps/posix/sprofil.c (__sprofil): Likewise.
1421 * shadow/lckpwdf.c (__lckpwdf): Likewise (both).
1422 * sysdeps/posix/spawni.c (__spawni): sigismember -> __sigismember
1424 * include/signal.h: Use libc_hidden_proto for raise, sigemptyset,
1425 sigfillset, sigismember, __sigpause, __libc_current_sigrtmin,
1426 and __libc_current_sigrtmax.
1427 * signal/sigismem.c: Add libc_hidden_def.
1428 * signal/sigfillset.c: Likewise.
1429 * signal/sigempty.c: Likewise.
1430 * sysdeps/generic/sigpause.c (__sigpause): Likewise.
1431 * sysdeps/posix/sigpause.c (__sigpause): Likewise.
1432 * sysdeps/unix/bsd/osf/alpha/sigpause.S: Likewise.
1433 * sysdeps/posix/raise.c: Likewise.
1434 * sysdeps/generic/raise.c: Likewise.
1436 2002-08-03 Ulrich Drepper <drepper@redhat.com>
1438 * include/string.h: Use libc_hidden_proto for __stpcpy.
1439 * sysdeps/alpha/stpcpy.S (__stpcpy): Add libc_hidden_def.
1440 * sysdeps/alpha/alphaev67/stpcpy.S: Likewise.
1441 * sysdeps/generic/stpcpy.c: Likewise.
1442 * sysdeps/i386/stpcpy.S: Likewise.
1443 * sysdeps/i386/i586/stpcpy.S: Likewise.
1444 * sysdeps/powerpc/stpcpy.S: Likewise.
1445 * sysdeps/sparc/sparc32/stpcpy.S: Likewise.
1446 * sysdeps/sparc/sparc64/stpcpy.S: Likewise.
1448 * include/string.h: Use libc_hidden_proto for __strcasecmp_l,
1449 __strncasecmp_l, __strdup, __strndup, __strerror_r.
1450 * sysdeps/generic/strcasecmp_l.c (__strcasecmp_l): Add
1452 * string/strdup.c (__strdup): Likewise.
1453 * string/strndup.c (__strndup): Likewise.
1454 * sysdeps/generic/_strerror.c (__strerror_r): Likewise.
1455 * sysdeps/generic/strncase_l.c (__strncasecmp_l): Likewise.
1457 2002-08-03 Jakub Jelinek <jakub@redhat.com>
1459 * include/libio.h: New file.
1460 * libio/libioP.h (__overflow, __woverflow): Remove libc_hidden_proto.
1461 * libio/iolibio.h: #include <libio.h>, not "libio.h".
1462 * sysdeps/generic/morecore.c (__sbrk): Add libc_hidden_proto.
1463 * sysdeps/unix/bsd/syscalls.list: Remove all __GI_* aliases.
1464 * sysdeps/unix/common/syscalls.list: Likewise.
1465 * sysdeps/unix/inet/syscalls.list: Likewise.
1466 * sysdeps/unix/sysv/irix4/syscalls.list: Likewise.
1467 * sysdeps/unix/sysv/linux/alpha/syscalls.list: Likewise.
1468 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
1469 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
1470 * sysdeps/unix/sysv/linux/hppa/syscalls.list: Likewise.
1471 * sysdeps/unix/sysv/linux/mips/syscalls.list: Likewise.
1472 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
1473 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
1474 * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
1475 * sysdeps/unix/sysv/sysv4/solaris2/syscalls.list: Likewise.
1476 * sysdeps/unix/syscalls.list: Likewise.
1478 2002-08-03 Jakub Jelinek <jakub@redhat.com>
1479 Ulrich Drepper <drepper@redhat.com>
1481 * malloc/malloc.c (public_cALLOc): Only divide if at least one of
1482 the arguments is big enough to cause an overflow.
1484 2002-08-03 Ulrich Drepper <drepper@redhat.com>
1486 * assert/assert.c: Use hidden_def not INTDEF.
1488 2002-08-03 Jakub Jelinek <jakub@redhat.com>
1490 * include/libc-symbols.h: Optimize if HAVE_BROKEN_ALIAS_ATTRIBUTE is
1493 2002-08-03 Roland McGrath <roland@redhat.com>
1495 * include/sys/syslog.h: Use libc_hidden_proto for syslog, vsyslog.
1496 * include/err.h: Use libc_hidden_proto for warn, warnx, vwarn, vwarn,
1498 * include/stdlib.h: Use libc_hidden_proto for exit, getenv, bsearch.
1499 * misc/syslog.c: Add libc_hidden_def.
1500 * misc/err.c: Likewise.
1501 * stdlib/exit.c: Likewise.
1502 * stdlib/bsearch.c: Likewise.
1503 * sysdeps/generic/getenv.c: Likewise.
1505 * include/libc-symbols.h (hidden_weak): Define it for [__ASSEMBLER__].
1507 * sysdeps/unix/make-syscalls.sh: Generate libc_hidden_def or
1508 libc_hidden_weak for every system call symbol defined.
1510 * include/time.h: Use libc_hidden_proto for time, asctime, mktime,
1511 timelocal, localtime, strftime.
1512 * time/asctime.c: Add libc_hidden_def.
1513 * time/mktime.c: Likewise.
1514 * time/localtime.c: Likewise.
1515 * time/strftime.c: Likewise.
1516 * time/strptime.c: Likewise.
1517 * sysdeps/generic/time.c: Likewise.
1518 * sysdeps/unix/time.c: Likewise.
1519 * sysdeps/unix/sysv/i386/time.S: Likewise.
1520 * sysdeps/unix/sysv/linux/x86_64/time.S: Likewise.
1522 * include/arpa/inet.h: Use libc_hidden_proto for inet_ntop, inet_pton.
1523 inet_makeaddr, inet_netof, inet_addr, __inet_addr.
1524 * resolv/inet_ntop.c: Likewise.
1525 * resolv/inet_pton.c: Likewise.
1526 * inet/inet_mkadr.c: Add libc_hidden_def.
1527 * inet/inet_netof.c: Likewise.
1528 * resolv/inet_addr.c: Likewise.
1530 * include/libc-symbols.h: Remove `defined HAVE_BROKEN_ALIAS_ATTRIBUTE'
1531 clauses from conditionals for now. Will have to be fixed later
1532 for older compilers.
1534 * sysdeps/generic/mempcpy.c (__mempcpy): #undef it before defn.
1536 2002-08-02 Ulrich Drepper <drepper@redhat.com>
1538 * configure.in (HAVE_BROKEN_ALIAS_ATTRIBUTE): Add check for
1539 broken alias attribute handling.
1540 * config.h.in (HAVE_BROKEN_ALIAS_ATTRIBUTE): Add.
1542 2002-08-02 Roland McGrath <roland@frob.com>
1544 * elf/Makefile ($(objpfx)interp.os): Depend on config.make,
1545 since it sets the variables we use in a -D switch.
1547 2002-08-02 Roland McGrath <roland@redhat.com>
1549 * posix/bits/posix1_lim.h (SSIZE_MAX): Define to LONG_MAX, not INT_MAX.
1550 On 32-bit platforms they are the same; on 64-bit platforms ssize_t
1551 matches long int, not int.
1553 * locale/localeinfo.h (_NL_CURRENT_DATA): New macro.
1554 * wcsmbs/wcsmbsload.h (update_conversion_ptrs): Use it.
1555 * locale/lc-ctype.c (_nl_postload_ctype): Likewise.
1556 * wctype/wctrans.c (wctrans): Likewise.
1557 * wctype/wctype.c (__wctype): Likewise.
1558 * intl/loadmsgcat.c (_nl_init_domain_conv): Use _NL_CURRENT.
1560 2002-08-02 Ulrich Drepper <drepper@redhat.com>
1562 * assert/assert.c (__assert_fail): Fix typo in comment.
1564 * include/rpc/rpc.h: Declare RPC_VARS tsd as extern.
1565 * sunrpc/rpc_thread.c: Define it without static.
1566 * sunrpc/Versions [libc] (GLIBC_PRIVATE): Export __libc_tsd_RPC_VARS.
1568 2002-08-02 Jakub Jelinek <jakub@redhat.com>
1570 * assert/assert.c (__assert_fail): Remove undef.
1571 Replace INTDEF with libc_hidden_def.
1572 * assert/__assert.c (__assert): Remove INTUSE.
1573 * elf/dl-minimal.c (__assert_fail): Replace INTDEF with
1575 * include/libc-symbols.h (hidden_proto, hidden_def, hidden_weak,
1576 hidden_ver, libc_hidden_proto, libc_hidden_def, libc_hidden_weak,
1577 libc_hidden_ver, rtld_hidden_proto, rtld_hidden_def, rtld_hidden_weak,
1578 rltd_hidden_ver, libm_hidden_proto, libm_hidden_def, libm_hidden_weak,
1579 libm_hiden_ver): Define.
1580 * include/assert.h (__assert_fail_internal): Remove.
1581 (__assert_fail): Add prototype. Add hidden_proto.
1582 * include/libc-internal.h (__libc_freeres, __profile_frequency): Add
1584 * include/wchar.h (__mbrtowc_internal, __mbrlen_internal): Remove.
1585 (__mbrtowc, __mbrlen): Use libc_hidden_proto. Remove macros.
1586 * include/string.h (__mempcpy, __stpncpy, __rawmemchr, __strcasecmp):
1587 Add libc_hidden_proto.
1588 * include/fcntl.h (__open64, __libc_open, __libc_fcntl, __open,
1589 __fcntl): Add libc_hidden_proto. Remove macros.
1590 (__open_internal, __fcntl_internal): Remove.
1591 * libio/iofdopen.c (_IO_fcntl): Remove INTUSE from __fcntl.
1592 * malloc/set-freeres.c (__libc_freeres): Add libc_hidden_def.
1593 * nss/nsswitch.h (__nss_database_lookup, __nss_next): Add
1595 * nss/nsswitch.c (__nss_database_lookup, __nss_next): Add
1597 * sysdeps/generic/mempcpy.c (__mempcpy): Remove undef.
1598 Add libc_hidden_def.
1599 * sysdeps/generic/open64.c (__open64): Add libc_hidden_def.
1600 * sysdeps/generic/open.c (__open): Remove undef.
1601 Add libc_hidden_def. Remove INTDEF.
1602 * sysdeps/generic/fcntl.c (__fcntl): Remove undef.
1603 Add libc_hidden_def.
1604 * sysdeps/mach/hurd/fcntl.c (__fcntl): Likewise.
1605 * sysdeps/i386/i586/mempcpy.S (__mempcpy): Add libc_hidden_def.
1606 * sysdeps/i386/i686/mempcpy.S (__mempcpy): Likewise.
1607 * sysdeps/mach/hurd/fcntl.c (__libc_fcntl, __fcntl): Remove undef.
1608 (__fcntl): Remove INTDEF2. Add libc_hidden_weak.
1609 (__libc_fcntl): Add libc_hidden_def.
1610 * sysdeps/mach/hurd/open.c (__libc_open, __open): Remove undef.
1611 (__open): Remove INTDEF2. Add libc_hidden_weak.
1612 (__libc_open): Add libc_hidden_def.
1613 * sysdeps/posix/open64.c (__open64): Add libc_hidden_weak.
1614 * sysdeps/standalone/open.c (__open): Add libc_hidden_def.
1615 * sysdeps/unix/sysv/aix/fcntl.c (__libc_fcntl, __fcntl): Remove undef.
1616 Add libc_hidden_def.
1617 * sysdeps/unix/sysv/aix/open.c (__libc_open, __open): Remove undef.
1618 Add libc_hidden_def.
1619 * sysdeps/unix/sysv/linux/i386/fcntl.c (__libc_fcntl, __fcntl): Remove
1621 (__fcntl): Remove INTDEF2. Add libc_hidden_weak.
1622 (__libc_fcntl): Add libc_hidden_def.
1623 * sysdeps/unix/sysv/linux/syscalls.list (__fcntl_internal,
1624 __getpgid_internal, __chown_internal): Remove.
1625 (__GI___fcntl, __GI___libc_fcntl, __GI___getpgid, __GI___pipe,
1626 __GI___sched_setscheduler, __GI___select, __GI___setpgid,
1628 * sysdeps/unix/syscalls.list (__close_internal, __dup2_internal,
1629 __getpid_internal, __open_internal, __write_internal): Remove.
1630 (__GI___fcntl, __GI___libc_fcntl, __GI___open, __GI___libc_open,
1631 __GI___chown, __GI___close, __GI___dup2, __GI___getpid,
1632 __GI___libc_open, __GI___open, __GI___read, __GI___libc_read,
1633 __GI___select, __GI___statfs, __GI___write, __GI___libc_write): Add.
1634 * wcsmbs/mbrlen.c (__mbrlen): Remove undef.
1635 Replace INTDEF with libc_hidden_def.
1636 * wcsmbs/mbrtowc.c (__mbrtowc): Likewise.
1637 * catgets/catgetsinfo.h (__open_catalog): Add libc_hidden_proto.
1638 * catgets/open_catalog.c (__open_catalog): Add libc_hidden_def.
1639 * elf/dl-profile.c (__profile_frequency): Add libc_hidden_proto.
1640 * include/rpc/rpc.h (__rpc_thread_svc_fdset, __rpc_thread_createerr):
1641 Add libc_hidden_proto.
1642 * include/sys/poll.h (__poll): Add libc_hidden_proto.
1643 * include/sys/select.h (__select): Likewise.
1644 * include/sys/socket.h (__send): Likewise.
1645 * include/sys/statfs.h (__statfs): Likewise.
1646 * include/unistd.h (__pwrite64, __libc_read, __pipe, __chown, __dup2,
1647 __getpid, __getpgid, __setpgid, __close, __read, __write,
1648 __getpagesize, __sbrk): Likewise.
1649 (__chown_internal, __dup2_internal, __getpid_internal,
1650 __getpgid_internal, __close_internal, __write_internal,
1651 __getpagesize_internal): Remove.
1652 (__close, __dup2, __getpagesize, __getpgid, __getpid, __libc_write):
1654 * include/printf.h (__printf_fp): Add libc_hidden_proto.
1655 * include/sched.h (__sched_setscheduler): Likewise.
1656 * include/resolv.h (__res_ninit, __res_randomid): Likewise.
1657 * include/stdlib.h (__secure_getenv): Likewise.
1658 * include/signal.h (__sigaction, __sigsuspend): Likewise.
1659 * inet/getaliasent_r.c (NSS_attribute_hidden): Remove.
1660 * inet/getaliasname_r.c (NSS_attribute_hidden): Remove.
1661 * inet/getnetbyad_r.c (NSS_attribute_hidden): Remove.
1662 * inet/getnetbynm_r.c (NSS_attribute_hidden): Remove.
1663 * inet/getnetent_r.c (NSS_attribute_hidden): Remove.
1664 * inet/getproto_r.c (NSS_attribute_hidden): Remove.
1665 * inet/getprtent_r.c (NSS_attribute_hidden): Remove.
1666 * inet/getprtname_r.c (NSS_attribute_hidden): Remove.
1667 * inet/getrpcbyname_r.c (NSS_attribute_hidden): Remove.
1668 * inet/getrpcbynumber_r.c (NSS_attribute_hidden): Remove.
1669 * inet/getrpcent_r.c (NSS_attribute_hidden): Remove.
1670 * inet/getservent_r.c (NSS_attribute_hidden): Remove.
1671 * inet/getsrvbynm_r.c (NSS_attribute_hidden): Remove.
1672 * inet/getsrvbypt_r.c (NSS_attribute_hidden): Remove.
1673 * inet/gethstbyad_r.c (DB_LOOKUP_FCT): Remove INTUSE.
1674 * inet/gethstbynm2_r.c (DB_LOOKUP_FCT): Likewise.
1675 * inet/gethstbynm_r.c (DB_LOOKUP_FCT): Likewise.
1676 * inet/gethstent_r.c (DB_LOOKUP_FCT): Likewise.
1677 * libio/genops.c (__overflow): Add libc_hidden_def.
1678 * libio/iovdprintf.c: Remove libio.h include.
1679 * libio/libioP.h (libc_hidden_proto, libc_hidden_def,
1680 libc_hidden_weak): Define to nothing if not defined.
1681 (__overflow, __woverflow): Add libc_hidden_proto.
1682 * libio/wgenops.c (__woverflow): Add libc_hidden_def.
1683 * nss/getXXent_r.c (NSS_attribute_hidden): Remove.
1684 (DB_LOOKUP_FCT): Add libc_hidden_proto.
1685 * nss/getXXbyYY_r.c (NSS_attribute_hidden): Remove.
1686 (DB_LOOKUP_FCT): Add libc_hidden_proto.
1687 * nss/XXX-lookup.c (DB_LOOKUP_FCT): Add libc_hidden_proto
1688 and libc_hidden_def.
1689 * nss/hosts-lookup.c (__nss_hosts_lookup): Remove INTDEF.
1690 * posix/bsd-getpgrp.c (__getpgid_internal): Remove.
1691 (__getpgid): Add libc_hidden_proto.
1692 (__bsd_getpgrp): Remove INTUSE.
1693 * resolv/res_init.c (__res_ninit, __res_randomid): Add
1695 * shadow/getspent_r.c (NSS_attribute_hidden): Remove.
1696 * shadow/getspnam_r.c (NSS_attribute_hidden): Remove.
1697 * stdio-common/printf_fp.c (__printf_fp): Add libc_hidden_def.
1698 * stdlib/strfmon.c (__printf_fp): Add libc_hidden_proto.
1699 * stdlib/secure-getenv.c (__secure_getenv): Add libc_hidden_def.
1700 * sunrpc/rpc_thread.c (__rpc_thread_svc_fdset,
1701 __rpc_thread_createerr): Add libc_hidden_def.
1702 * sysdeps/alpha/alphaev67/rawmemchr.S (__rawmemchr): Add
1704 * sysdeps/alpha/alphaev67/stpncpy.S (__stpncpy): Likewise.
1705 * sysdeps/alpha/rawmemchr.S (__rawmemchr): Likewise.
1706 * sysdeps/alpha/stpncpy.S (__stpncpy): Likewise.
1707 * sysdeps/generic/chown.c (__chown): Likewise.
1708 * sysdeps/generic/close.c (__close): Likewise.
1709 * sysdeps/generic/dup2.c (__dup2): Likewise.
1710 * sysdeps/generic/pipe.c (__pipe): Likewise.
1711 * sysdeps/generic/prof-freq.c (__profile_frequency): Likewise.
1712 * sysdeps/generic/pwrite64.c (__pwrite64): Likewise.
1713 * sysdeps/generic/rawmemchr.c (__rawmemchr): Likewise.
1714 * sysdeps/generic/read.c (__libc_read): Likewise.
1715 (__read): Add libc_hidden_weak.
1716 * sysdeps/generic/sbrk.c (__sbrk): Add libc_hidden_def.
1717 * sysdeps/generic/sched_sets.c (__sched_setscheduler): Likewise.
1718 * sysdeps/generic/select.c (__select): Likewise.
1719 * sysdeps/generic/send.c (__send): Likewise.
1720 * sysdeps/generic/setpgid.c (__setpgid): Likewise.
1721 * sysdeps/generic/sigaction.c (__sigaction): Likewise.
1722 * sysdeps/generic/sigsuspend.c (__sigsuspend): Likewise.
1723 * sysdeps/generic/statfs.c (__statfs): Likewise.
1724 * sysdeps/generic/stpncpy.c (__stpncpy): Likewise.
1725 * sysdeps/generic/strcasecmp.c (__strcasecmp): Likewise.
1726 * sysdeps/generic/getpagesize.c (__getpagesize): Likewise.
1727 Remove undef and INTDEF.
1728 * sysdeps/generic/getpgid.c (__getpgid): Likewise.
1729 * sysdeps/generic/getpid.c (__getpid): Likewise.
1730 * sysdeps/generic/write.c (__libc_write): Likewise.
1731 (__write): Add libc_hidden_weak. Remove undef and INTDEF.
1732 * sysdeps/i386/rawmemchr.S (__rawmemchr): Add libc_hidden_def.
1733 * sysdeps/i386/stpncpy.S (__stpncpy): Likewise.
1734 * sysdeps/m68k/rawmemchr.S (__rawmemchr): Likewise.
1735 * sysdeps/mach/hurd/chown.c (__chown): Likewise. Remove INTDEF.
1736 * sysdeps/mach/hurd/close.c (__close): Add libc_hidden_def.
1737 Remove undef and INTDEF.
1738 * sysdeps/mach/hurd/dup2.c (__dup2): Likewise.
1739 * sysdeps/mach/hurd/getpgid.c (__getpgid): Likewise.
1740 * sysdeps/mach/hurd/getpid.c (__getpid): Likewise.
1741 * sysdeps/mach/getpagesize.c (__getpagesize): Likewise.
1742 * sysdeps/mach/hurd/write.c (__libc_write): Likewise.
1743 (__write): Add libc_hidden_weak. Remove undef and INTDEF.
1744 * sysdeps/mach/hurd/pipe.c: Include unistd.h.
1745 (__pipe): Add libc_hidden_def.
1746 * sysdeps/mach/hurd/dl-sysdep.c (__libc_read, __libc_write): Add
1748 * sysdeps/mach/hurd/poll.c (__poll): Add libc_hidden_def.
1749 * sysdeps/mach/hurd/profil.c (__profile_frequency): Likewise.
1750 * sysdeps/mach/hurd/read.c (__libc_read): Likewise.
1751 (__read): Add libc_hidden_weak.
1752 * sysdeps/mach/hurd/pwrite64.c (__pwrite64): Likewise.
1753 (__libc_pwrite64): Add libc_hidden_def.
1754 * sysdeps/mach/hurd/sbrk.c (__sbrk): Likewise.
1755 * sysdeps/mach/hurd/select.c (__select): Likewise.
1756 * sysdeps/mach/hurd/send.c (__send): Likewise.
1757 * sysdeps/mach/hurd/setpgid.c (__setpgid): Likewise.
1758 * sysdeps/mach/hurd/sigaction.c (__sigaction): Likewise.
1759 * sysdeps/mach/hurd/sigsuspend.c (__sigsuspend): Likewise.
1760 * sysdeps/mach/hurd/statfs.c (__statfs): Likewise.
1761 * sysdeps/posix/dup2.c: Likewise.
1762 Remove undef and INTDEF.
1763 * sysdeps/posix/getpagesize.c (__getpagesize): Likewise.
1764 * sysdeps/posix/pwrite64.c (__libc_pwrite64): Add libc_hidden_def.
1765 (__pwrite64): Add libc_hidden_weak.
1766 * sysdeps/posix/sigsuspend.c (__sigsuspend): Add libc_hidden_def.
1767 * sysdeps/sparc/sparc64/rawmemchr.S (__rawmemchr): Likewise.
1768 * sysdeps/sparc/sparc64/stpncpy.S (__stpncpy): Likewise.
1769 * sysdeps/standalone/close.c (__close): Likewise.
1770 * sysdeps/standalone/write.c (__libc_write): Likewise.
1771 (__write): Add libc_hidden_weak.
1772 * sysdeps/standalone/read.c (__read): Likewise.
1773 (__libc_read): Add libc_hidden_def.
1774 * sysdeps/unix/grantpt.c (grantpt): Remove INTUSE.
1775 * sysdeps/unix/bsd/m68k/pipe.S (__pipe): Add libc_hidden_def.
1776 * sysdeps/unix/bsd/osf/alpha/pipe.S (__pipe): Likewise.
1777 * sysdeps/unix/bsd/vax/pipe.S (__pipe): Likewise.
1778 * sysdeps/unix/bsd/syscalls.list (__GI___getpagesize): Likewise.
1779 * sysdeps/unix/bsd/poll.c (__poll): Likewise.
1780 * sysdeps/unix/bsd/sigaction.c (__sigaction): Likewise.
1781 * sysdeps/unix/bsd/sigsuspend.c (__sigsuspend): Likewise.
1782 * sysdeps/unix/common/syscalls.list (__GI___getpgid, __GI___setpgid,
1783 __GI___sigaction): Add.
1784 * sysdeps/unix/i386/pipe.S (__pipe): Add libc_hidden_def.
1785 * sysdeps/unix/inet/syscalls.list (__GI___send): Add.
1786 * sysdeps/unix/mips/pipe.S (__pipe): Add libc_hidden_def.
1787 * sysdeps/unix/sparc/pipe.S (__pipe): Likewise.
1788 * sysdeps/unix/sysv/irix4/syscalls.list (__GI___getpgid,
1789 __GI___setpgid): Add.
1790 * sysdeps/unix/sysv/aix/chown.c (__chown): Add libc_hidden_def.
1791 Remove undef and INTDEF.
1792 * sysdeps/unix/sysv/aix/getpgid.c (__getpgid): Likewise.
1793 * sysdeps/unix/sysv/aix/write.c (__write, __libc_write): Likewise.
1794 * sysdeps/unix/sysv/aix/close.c (__close): Add libc_hidden_def.
1795 * sysdeps/unix/sysv/aix/getpid.c (__getpid): Likewise.
1796 * sysdeps/unix/sysv/aix/pipe.c (__pipe): Likewise.
1797 * sysdeps/unix/sysv/aix/read.c (__read, __libc_read): Likewise.
1798 * sysdeps/unix/sysv/aix/poll.c (__poll): Likewise.
1799 * sysdeps/unix/sysv/aix/sbrk.c (__sbrk): Likewise.
1800 * sysdeps/unix/sysv/aix/sigaction.c (__sigaction): Likewise.
1801 * sysdeps/unix/sysv/aix/sigsuspend.c (__sigsuspend): Likewise.
1802 * sysdeps/unix/sysv/aix/statfs.c (__statfs): Likewise.
1803 * sysdeps/unix/sysv/aix/select.c (__select): Likewise.
1804 * sysdeps/unix/sysv/aix/setpgid.c (__setpgid): Likewise.
1805 * sysdeps/unix/sysv/linux/alpha/pipe.S (__pipe): Likewise.
1806 * sysdeps/unix/sysv/linux/alpha/syscalls.list (__GI___pwrite64,
1807 __GI___statfs, __GI___send): Add.
1808 * sysdeps/unix/sysv/linux/alpha/select.S (__select): Add
1809 libc_hidden_ver resp. libc_hidden_def.
1810 * sysdeps/unix/sysv/linux/alpha/sigsuspend.S (__sigsuspend): Add
1812 * sysdeps/unix/sysv/linux/ia64/getpagesize.c (__getpagesize):
1813 Likewise. Remove undef and INTDEF.
1814 * sysdeps/unix/sysv/linux/ia64/pipe.S (__pipe): Add libc_hidden_def.
1815 * sysdeps/unix/sysv/linux/ia64/syscalls.list (__GI___pwrite64,
1816 __GI___statfs, __GI___send): Add.
1817 * sysdeps/unix/sysv/linux/ia64/sigaction.c (__sigaction): Add
1819 * sysdeps/unix/sysv/linux/ia64/sigsuspend.c (__sigsuspend):
1821 * sysdeps/unix/sysv/linux/sh/pipe.S (__pipe): Likewise.
1822 * sysdeps/unix/sysv/linux/s390/s390-32/chown.c (__chown): Add
1823 libc_hidden_ver resp. libc_hidden_def.
1824 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list (__GI___pwrite64,
1826 * sysdeps/unix/sysv/linux/s390/s390-64/sigaction.c (__sigaction):
1827 Add libc_hidden_weak.
1828 * sysdeps/unix/sysv/linux/s390/s390-64/sigsuspend.c (__sigsuspend):
1829 Add libc_hidden_def.
1830 * sysdeps/unix/sysv/linux/hppa/syscalls.list (__GI___send): Add.
1831 * sysdeps/unix/sysv/linux/arm/sigaction.c (__sigaction): Add
1833 * sysdeps/unix/sysv/linux/i386/chown.c (__chown): Add libc_hidden_ver
1834 resp. libc_hidden_def.
1835 * sysdeps/unix/sysv/linux/i386/sigaction.c (__sigaction): Add
1837 * sysdeps/unix/sysv/linux/m68k/chown.c (__chown): Likewise. Remove
1839 * sysdeps/unix/sysv/linux/m68k/getpagesize.c (__getpagesize):
1840 Likewise. Remove undef.
1841 * sysdeps/unix/sysv/linux/mips/pwrite64.c (__pwrite64): Add
1843 * sysdeps/unix/sysv/linux/mips/syscalls.list (__GI___send): Add.
1844 * sysdeps/unix/sysv/linux/mips/sigaction.c (__sigaction): Add
1846 * sysdeps/unix/sysv/linux/powerpc/chown.c (__chown): Add
1848 * sysdeps/unix/sysv/linux/powerpc/pwrite64.c (__pwrite64): Likewise.
1849 * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize.c (__getpagesize):
1850 Likewise. Remove undef and INTDEF.
1851 * sysdeps/unix/sysv/linux/sparc/sparc32/pipe.S (__pipe): Add
1853 * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c (__sigaction): Add
1855 * sysdeps/unix/sysv/linux/sparc/sparc64/pipe.S (__pipe): Add
1857 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list
1858 (__GI___pwrite64, __GI___statfs, __GI___select, __GI___send): Add.
1859 * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c (__sigaction): Add
1861 * sysdeps/unix/sysv/linux/sparc/sparc64/sigsuspend.c (__sigsuspend):
1862 Add libc_hidden_def.
1863 * sysdeps/unix/sysv/linux/x86_64/syscalls.list (__GI___pwrite64,
1864 __GI___statfs): Add.
1865 * sysdeps/unix/sysv/linux/x86_64/send.c (__send): Add
1867 * sysdeps/unix/sysv/linux/x86_64/sigaction.c (__sigaction): Likewise.
1868 * sysdeps/unix/sysv/linux/getpagesize.c: Add libc_hidden_def.
1869 Remove undef and INTDEF.
1870 * sysdeps/unix/sysv/linux/poll.c (__poll): Add libc_hidden_def.
1871 * sysdeps/unix/sysv/linux/pwrite64.c (__pwrite64): Add
1873 * sysdeps/unix/sysv/linux/send.S (__send): Likewise.
1874 * sysdeps/unix/sysv/linux/sigaction.c (__sigaction): Add
1876 * sysdeps/unix/sysv/linux/sigsuspend.c (__sigsuspend): Add
1878 * sysdeps/unix/sysv/sco3.2.4/__setpgid.c (__setpgid): Likewise.
1879 * sysdeps/unix/sysv/sco3.2.4/sigaction.S (__sigaction): Likewise.
1880 * sysdeps/unix/sysv/sysv4/solaris2/syscalls.list (__GI___sigaction):
1882 * sysdeps/unix/sysv/sysv4/__getpgid.c (__getpgid): Add
1883 libc_hidden_def. Remove undef and INTDEF.
1884 * sysdeps/unix/sysv/sysv4/getpgid.c (__getpgid): Likewise.
1885 * sysdeps/unix/sysv/sysv4/__setpgid.c (__setpgid): Add
1887 * sysdeps/unix/sysv/sysv4/setpgid.c (__setpgid): Likewise.
1888 * sysdeps/unix/sysv/sysv4/sigaction.c (__sigaction): Likewise.
1889 * sysdeps/unix/sysv/sigaction.c (__sigaction): Likewise.
1890 * sysdeps/unix/getpagesize.c (__getpagesize): Add libc_hidden_def.
1891 Remove undef and INTDEF.
1892 * configure.in (HAVE_BROKEN_VISIBILITY_ATTRIBUTE): Add check for
1893 broken visibility attribute handling.
1894 * config.h.in (HAVE_BROKEN_VISIBILITY_ATTRIBUTE): Add.
1896 2002-08-02 Ulrich Drepper <drepper@redhat.com>
1898 * locale/iso-639.def: Add entries for Venda and Nothern Sotho.
1899 Reported by Dwayne Bailey <dwayne@obsidian.co.za>.
1901 * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr_r): Adapt
1904 2002-06-29 Todd Fries <todd@openbsd.org>
1906 * resolv/gethnamaddr.c (gethostbyaddr): Try ip6.int if ip6.arpa fails.
1908 2002-08-02 Jakub Jelinek <jakub@redhat.com>
1910 * include/errno.h: Don't include tls.h if _ISOMAC is defined.
1912 2002-07-30 Roland McGrath <roland@redhat.com>
1914 * resolv/resolv.h (_res): Define macro unconditionally.
1915 [! _LIBC_REENTRANT] (_res): Move this conditional decl to ...
1916 * include/resolv.h: ... here.
1917 [USE_TLS && HAVE___THREAD] (_res): #undef it and declare
1918 as a __thread variable.
1919 * resolv/res_libc.c [USE_TLS && HAVE___THREAD] (_res): Define it as
1920 a __thread variable instead of a global.
1921 * resolv/res_data.c [_LIBC]: Don't #undef _res.
1923 * include/errno.h: Include <tls.h> to make sure USE_TLS defined by the
1926 * intl/loadmsgcat.c [__GNUC__]: #undef alloca before defining it.
1928 * malloc/malloc.c [_LIBC]: Include <string.h> instead of using local
1929 decls of memset and memcpy.
1931 * sysdeps/generic/sysdep.h (END): Conditionalize on [__ASSEMBLER__].
1932 * sysdeps/unix/sysv/linux/i386/sysdep.h (L): Likewise.
1934 * elf/dl-load.c (_dl_map_object_from_fd): Comment fix.
1936 * sysdeps/generic/bits/libc-tsd.h [USE_TLS && HAVE___THREAD]
1937 (__libc_tsd_define): Define using __thread.
1939 * sunrpc/rpc_thread.c: Use __libc_tsd_define.
1940 (__rpc_thread_variables): Use __libc_tsd_get.
1941 (__rpc_thread_destroy): Use __libc_tsd_get instead of calling
1942 __rpc_thread_variables, which might allocate what we're about to free.
1944 * inet/herrno.c [USE_TLS && HAVE___THREAD] (h_errno): Define as a
1945 thread-local variable.
1946 * resolv/netdb.h (h_errno): Define macro unconditionally.
1947 [_LIBC] (__set_h_errno): Macro moved to ...
1948 * include/netdb.h: ... here.
1949 [USE_TLS && HAVE___THREAD] (h_errno): Declare __thread variable.
1950 [USE_TLS && HAVE___THREAD] (__set_h_errno): Define using that.
1951 [! _LIBC_REENTRANT]: #undef h_errno here.
1953 * include/errno.h: Protect from multiple inclusion.
1955 * misc/sys/select.h (__NFDBITS, __FDELT, __FDMASK): #undef these
1956 before defining them, since Linux's <linux/posix_types.h> might have
1959 2002-08-02 Jakub Jelinek <jakub@redhat.com>
1961 * malloc/malloc.c (public_cALLOc): Check for overflow on
1963 * sunrpc/xdr_array.c (xdr_array): Likewise.
1964 * sunrpc/rpc/types.h (mem_free): Add comment.
1965 Patch by Solar Designer <solar@openwall.com>.
1967 2002-08-02 Jakub Jelinek <jakub@redhat.com>
1969 * sysdeps/unix/sysv/linux/kernel-features.h
1970 (__ASSUME_SET_THREAD_AREA_SYSCALL): Define.
1972 2002-08-01 Roland McGrath <roland@redhat.com>
1974 * libio/fileops.c (_IO_file_sync_mmap): New function.
1975 (_IO_file_jumps_mmap): Use it.
1976 (_IO_file_underflow_mmap): Rewritten. If after EOF or fflush,
1977 repeat the stat check and resize the mapped buffer as necessary.
1979 2002-07-31 Roland McGrath <roland@redhat.com>
1981 * libio/fileops.c (decide_maybe_mmap): New static function.
1982 Code taken from libio/iofopen.c:__fopen_maybe_mmap to try to
1983 mmap the file contents. Then switch the jump tables to the mmap
1984 tables if it worked, or the vanilla file tables if not.
1985 (_IO_file_underflow_maybe_mmap): New function.
1986 (_IO_file_seekoff_maybe_mmap): New function.
1987 (_IO_file_xsgetn_maybe_mmap): New function.
1988 (_IO_file_jumps_maybe_mmap): New variable, jump table using those.
1989 * libio/libioP.h: Declare those.
1990 * libio/wfileops.c (_IO_wfile_underflow_maybe_mmap): New function.
1991 (_IO_wfile_jumps_maybe_mmap): New variable, jump table using that.
1992 * libio/iofopen.c (__fopen_maybe_mmap): Don't try to mmap here.
1993 If the stream is read-only, set its jump tables to those new ones.
1994 * libio/iofdopen.c (_IO_new_fdopen) [_G_HAVE_MMAP]: Set the initial
1995 jump tables to the maybe_mmap ones, and don't call __fopen_maybe_mmap.
1996 We need the tables set before _IO_file_attach.
1998 * libio/tst-mmap-eofsync.c: New file.
1999 * libio/tst-mmap-fflushsync.c: New file.
2000 * libio/bug-mmap-fflush.c: New file.
2001 * libio/tst-mmap2-eofsync.c: New file.
2002 * libio/Makefile (tests): Add them.
2004 * libio/wfileops.c (_IO_wfile_underflow_mmap): Don't set EOF bit when
2005 _IO_file_underflow_mmap fails, it already set the appropriate bit.
2007 2002-07-31 Jeff Bailey <jbailey@gnu.org>
2009 * libio/stdio.h (sys_errlist, sys_nerr, _sys_errlist, _sys_nerr):
2010 Declarations moved to <bits/sys_errlist.h>. Include that file.
2011 * libio/Makefile (headers): Add bits/sys_errlist.h to the list.
2012 * sysdeps/generic/bits/sys_errlist.h: New file. This does *not*
2013 declare sys_errlist and sys_nerr.
2014 * sysdeps/unix/sysv/linux/bits/sys_errlist.h: New file. Does
2015 provide declarations.
2017 2002-07-31 Roland McGrath <roland@redhat.com>
2019 * elf/rtld.c (dl_main): Fix typo in error message.
2021 2002-07-31 Roland McGrath <roland@frob.com>
2023 * sysdeps/mach/hurd/Versions (ld: GLIBC_2.0): __fxstat -> __fxstat64,
2024 __xstat -> __xstat64, __lseek -> __libc_lseek64. Completes 2002-06-09
2025 sysdeps/mach/hurd/dl-sysdep.c change.
2027 2002-07-28 Ulrich Drepper <drepper@redhat.com>
2029 * sysdeps/unix/sysv/linux/configure.in: Check /lib/modules/`uname
2030 -r`/build/include for kernel headers.
2032 * po/fi.po: New file.
2034 2002-07-15 Alexandre Oliva <aoliva@redhat.com>
2036 * configure.in (static_nss): Set to `yes' if --disable-shared.
2038 2002-07-23 Bruno Haible <bruno@clisp.org>
2040 * intl/loadmsgcat.c (PRI*): Redefine the macros if PRI_MACROS_BROKEN
2043 2002-07-25 Jakub Jelinek <jakub@redhat.com>
2045 * sysdeps/unix/sysv/linux/ia64/sigcontextinfo.h: New file.
2046 * sysdeps/unix/sysv/linux/ia64/profil-counter.h: Fix profil_counter
2049 2002-07-25 Jakub Jelinek <jakub@redhat.com>
2051 * sysdeps/unix/sysv/linux/alpha/adjtime.c (__adjtimex_internal): Add
2054 2002-07-21 Bruno Haible <bruno@clisp.org>
2056 * intl/libintl.h (__GNU_GETTEXT_SUPPORTED_REVISION): New macro.
2057 * intl/gettext.h (struct mo_file_header): New fields n_sysdep_segments,
2058 sysdep_segments_offset, n_sysdep_strings, orig_sysdep_tab_offset,
2059 trans_sysdep_tab_offset.
2060 (struct sysdep_segment): New type.
2061 (struct sysdep_string): New type.
2062 (SEGMENTS_END): New macro.
2063 * intl/gettextP.h (struct sysdep_string_desc): New type.
2064 (struct loaded_domain): New fields malloced, n_sysdep_strings,
2065 orig_sysdep_tab, trans_sysdep_tab, must_swap_hash_tab. Make fields
2066 orig_tab, trans_tab, hash_tab to const pointers because they point
2067 into read-only memory.
2068 * intl/loadmsgcat.c: Include stdint.h, inttypes.h, hash-string.h.
2069 (PRI*): Define fallback values.
2070 (get_sysdep_segment_value): New function.
2071 (_nl_load_domain): Distinguish major and minor revision parts. Add
2072 support for minor revision 1 with system dependent strings.
2073 (_nl_unload_domain): Also free the 'malloced' field.
2074 * intl/dcigettext.c (_nl_find_msg): Remove test for domain->hash_size,
2075 now done in loadmsgcat.c. Add support for system dependent strings.
2077 2002-07-16 Stepan Kasal <kasal@math.cas.cz>
2079 * posix/bug-regex7.c: New file.
2080 * posix/bug-regex8.c: New file.
2081 * posix/Makefile (tests): Add bug-regex7 and bug-regex8.
2083 2002-07-16 Stepan Kasal <kasal@math.cas.cz>
2085 * posix/bug-regex4.c (main): Fix typos.
2086 * posix/bug-regex6.c (main): Likewise.
2088 2002-07-27 Ulrich Drepper <drepper@redhat.com>
2090 * posix/bug-regex6.c (main): Fix warnings.
2092 * iconvdata/Makefile (CPPFLAGS): Add NOT_IN_libc.
2094 * iconv/iconv_prog.c (main): Improve error message for the cases
2095 where -t and/or -f parameter are missing.
2097 2002-07-10 Stepan Kasal <kasal@math.cas.cz>
2099 * posix/regexec.c (re_match): Reorganize to remove duplicate code.
2100 (re_search): Likewise.
2101 (re_match_2): Likewise.
2102 (re_search_2): Likewise.
2103 (re_search_stub): New function.
2104 (re_search_2_stub): New function.
2105 * regcomp.c (re_compile_pattern): Typo in a comment fixed.
2107 2002-07-10 Isamu Hasegawa <isamu@yamato.ibm.com>
2109 * posix/regex_internal.h: Add new member STOP to struct re_string_t.
2110 (re_string_eoi): Use STOP instead of LEN.
2111 * posix/regex_internal.c (re_string_allocate): Initialize pstr->len.
2112 (re_string_construct): Likewise.
2113 (re_string_reconstruct): Adjust pstr->stop like pstr->len.
2114 * posix/regexec.c (re_search_internal): Add a new argument STOP
2115 so that it can handle the argument STOP of re_search_2 and re_match_2
2117 (regexec): Adapt to new I/F of re_search_internal.
2118 (re_search_stub): Likewise.
2120 2002-07-25 Ulrich Drepper <drepper@redhat.com>
2122 * sunrpc/clnt_gen.c: Don't include <sys/errno.h>.
2124 * elf/dl-minimal.c: Remove definition of __assert_perror_fail.
2126 * sysdeps/wordsize-32/divdi3.c: Define __divdi3_internal.
2127 * sysdeps/wordsize-32/lldiv.c: Make gcc use __divdi3_internal instead
2130 * sysdeps/unix/sysv/linux/adjtime.c: Use __adjtimex_internal.
2131 * sysdeps/unix/sysv/linux/ntp_gettime.c: Likewise.
2132 * sysdeps/unix/sysv/linux/syscalls.list: Add __adjtimex_internal
2133 alias for adjtimex syscall.
2135 * elf/dl-minimal.c: Define __assert_fail_internal.
2136 * assert/assert.c: Likewise.
2137 * include/assert.h: Define __assert_file macro if !SHARED and not
2140 * iconv/Makefile: Define NOT_IN_libc for objects in standalone
2142 * locale/Makefile: Likewise.
2143 * nscd/Makefile: Likewise.
2144 * catgets/Makefile: Likewise.
2146 2002-07-24 Ulrich Drepper <drepper@redhat.com>
2148 * libio/fileops.c (_IO_file_seekoff_mmap): Do use fp->_offset to
2149 compute current position.
2151 * stdio-common/tst-fseek.c (main): Improve error messages.
2153 * libio/tst-freopen.c (main): Remove unused variable.
2155 * libio/fileops.c (_IO_file_seekoff_mmap): Set fp->_offset after
2156 succesful seek call. Simplify error checking.
2158 2002-07-25 Jakub Jelinek <jakub@redhat.com>
2160 * config.h.in: Use __ASSEMBLER__ test macro not ASSEMBLER.
2161 * sysdeps/ia64/fpu/libm_support.h: Likewise.
2163 2002-07-19 Roland McGrath <roland@frob.com>
2165 * hurd/hurdsig.c (_hurdsig_getenv): Always return null if
2166 __libc_enable_secure is set.
2168 2002-07-24 Roland McGrath <roland@frob.com>
2170 Added <ifaddrs.h> interface with functions `getifaddrs', `freeifaddrs'.
2171 This implementation supports only IPv4.
2172 * inet/ifaddrs.h: New file.
2173 * sysdeps/generic/ifaddrs.c: New file.
2174 * sysdeps/gnu/ifaddrs.c: New file.
2175 * inet/test-ifaddrs.c: New file.
2176 * inet/Makefile (routines): Add ifaddrs.
2177 (headers): Add ifaddrs.h here.
2178 (tests): Add test-ifaddrs.
2179 * inet/Versions (GLIBC_2.3): New set, add getifaddrs and freeifaddrs.
2181 * resolv/res_hconf.c (_res_hconf_reorder_addrs): Use an explicit
2182 socket call to get an AF_INET socket, instead of using __opensock.
2183 The SIOCGIFNETMASK ioctl will work only with a PF_INET socket.
2185 * sysdeps/generic/ifreq.h (__ifreq): Take third argument SOCKFD,
2186 if not -1 use it instead of calling __opensock.
2187 * sysdeps/unix/sysv/linux/ifreq.h (__ifreq): Likewise.
2188 * sysdeps/mach/hurd/ifreq.h (__ifreq): Take new argument and ignore it.
2189 * resolv/res_hconf.c (_res_hconf_reorder_addrs): Pass new argument.
2191 * sysdeps/mach/hurd/ifreq.h: New file.
2192 * sysdeps/generic/ifreq.h (__if_freereq): Take second argument NUM_IFS.
2193 * sysdeps/unix/sysv/linux/ifreq.h (__if_freereq): Likewise.
2194 * resolv/res_hconf.c (_res_hconf_reorder_addrs): Update caller.
2196 * libio/fileops.c (_IO_file_seekoff_mmap): Don't rely on FP->_offset,
2197 which gets moved around. Calculate size of mmap'd buffer instead.
2199 2002-07-24 Philip Blundell <philb@gnu.org>
2201 * sysdeps/unix/arm/brk.S: Improve schedule.
2202 * sysdeps/unix/sysv/linux/arm/socket.S (PUSHARGS_1): Use more
2203 efficient instruction.
2204 (__socket): Optimize return sequence.
2206 2002-07-24 Ulrich Drepper <drepper@redhat.com>
2208 * sysdeps/unix/sysv/linux/opensock.c (__opensock): Prefer inet
2209 sockets on old kernels.
2211 2002-07-22 Philip Blundell <philb@gnu.org>
2213 * sysdeps/unix/sysv/linux/arm/errlist.c: Remove extra weak alias
2214 definiton of _old_sys_nerr. Define _old_sys_errlist as strong
2217 2002-07-24 Ulrich Drepper <drepper@redhat.com>
2219 * locale/hashval.h: Make more self-contained by defining LONG_BITS.
2220 * locale/programs/simple-hash.c: Remove LONG_BITS definition.
2222 * locale/programs/locarchive.c (add_locale_to_archive): Correct
2223 test to detect duplicate locales.
2225 * libio/fileops.c (_IO_new_file_seekoff): Fail if relative
2226 position would be before beginning of file.
2227 (_IO_file_seekoff_mmap): Likewise.
2228 * libio/Makefile (tests): Add bug-fseek.
2229 * libio/bug-fseek.c: New file.
2231 * intl/explodename.c: Remove support for CEN-style locale variables.
2232 It was never used and shouldn't be since it's not portable.
2233 * intl/finddomain.c: Likewise.
2234 * intl/l10nflist.c: Likewise.
2235 * intl/loadinfo.h: Likewise.
2236 * locale/findlocale.c: Likewise.
2238 2002-07-24 Roland McGrath <roland@frob.com>
2240 * libio/fileops.c (_IO_file_seekoff_mmap): When just examining the
2241 position, calculate it to take into account an active pushback buffer.
2243 * libio/Makefile (tests): Add bug-ungetc.
2244 * libio/bug-ungetc.c: New file.
2246 2002-07-23 Ulrich Drepper <drepper@redhat.com>
2248 * sysdeps/generic/libc-tls.c: New file.
2249 * csu/Makefile (routines): Add libc-tls.
2250 (static-only-routines): Add libc-tls.
2251 * elf/dl-support.c (_dl_phdr): New variable.
2252 (_dl_phnum): New variable.
2253 (_dl_aux_init): Initialize _dl_phdr and _dl_phnum from aux vector.
2254 * sysdeps/generic/libc-start.c (__libc_start_main): Reorganize code
2255 for !SHARED. First look through auxiliary vector. If TLS always
2256 call __pthread_initialize_minimal.
2258 * sysdeps/generic/dl-tls.c (_dl_allocate_tls): Make sure size argument
2259 in mmap call is never zero.
2261 2002-07-23 Andreas Jaeger <aj@suse.de>
2263 * sysdeps/x86_64/fpu/s_copysign.S: Use optimized version.
2264 * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
2266 2002-07-22 Ulrich Drepper <drepper@redhat.com>
2268 * libio/tst-eof.c: Rewrite to let test-skeleton.c deal with
2269 creation and removal of the temp file.
2271 * libio/bug-rewind.c: Use test skeleton. Use create_temp_file for
2273 * test-skeleton.c (create_temp_file): New function.
2275 2002-07-22 Andreas Jaeger <aj@suse.de>
2277 * sysdeps/x86_64/dl-machine.h (elf_machine_load_address): Use
2280 2002-07-21 Roland McGrath <roland@frob.com>
2282 * wcsmbs/Makefile (strtox-CFLAGS): New variable,
2283 put -I../include before -I../stdlib so we get the right errno.h et al.
2284 (CFLAGS-wcstod.c): Use that variable instead of -I../stdlib.
2285 (CFLAGS-wcstof.c): Likewise.
2286 (CFLAGS-wcstold.c): Likewise.
2287 (CFLAGS-wcstod_l.c): Likewise.
2288 (CFLAGS-wcstof_l.c): Likewise.
2289 (CFLAGS-wcstold_l.c): Likewise.
2291 2002-07-19 Roland McGrath <roland@frob.com>
2293 * sysdeps/mach/hurd/errnos.awk: Remove __set_errno defn from output.
2295 2002-07-20 Ulrich Drepper <drepper@redhat.com>
2297 * sysdeps/unix/sysv/linux/ldsodefs.h (HAVE_AUX_XID): Define if
2298 __ASSUME_AT_XID is defined.
2299 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_AT_XID): Define
2301 * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Optimize handling
2302 of AT_UID, AT_EUID, AT_GID, and AT_EGID.
2304 * wcsmbs/Makefile (CFLAGS-wcstod.c): Add -I../stdlib.
2305 (CFLAGS-wcstof.c): Likewise.
2306 (CFLAGS-wcstold.c): Likewise.
2307 (CFLAGS-wcstod_l.c): Likewise.
2308 (CFLAGS-wcstof_l.c): Likewise.
2309 (CFLAGS-wcstold_l.c): Likewise.
2311 2002-07-18 Jakub Jelinek <jakub@redhat.com>
2313 * resource/sys/resource.h (__rlimit_resource_t, __rusage_who_t,
2314 __priority_which_t): Always typedef to int for C++.
2316 2002-07-19 Ulrich Drepper <drepper@redhat.com>
2318 * configure.in: Add test for __thread support in compiler.
2319 * config.h.in: Add HAVE___THREAD.
2320 * Makefile (headers): Remove errno.h, sys/errno.h, and bits/errno.h.
2321 * include/sys/errno.h: Moved to...
2322 * stdlib/sys/errno.h: ...here. New file.
2323 * stdlib/errno.h: New file. Moved from...
2324 * include/errno.h: ...here. Changed into an internal header defining
2325 libc-local things like __set_errno.
2326 * stdlib/Makefile (headers): Add errno.h, sys/errno.h, and
2328 * elf/dl-minimal.c: Include <tls.h>. Define errno as thread-local
2329 variable if USE_TLS && HAVE___THREAD. Don't define __errno_location
2331 * elf/rtld.c (_dl_start): Add code to initialize TLS for ld.so
2333 (_dl_start_final): ...here. Add code to initialize tls elements from
2335 * sysdeps/generic/errno-loc.c: Define errno as thread-local variable
2336 if USE_TLS && HAVE___THREAD.
2337 * sysdeps/generic/bits/errno.h: Remove __set_errno definition.
2338 * sysdeps/mach/hurd/bits/errno.h: Likewise.
2339 * sysdeps/standalone/arm/bits/errno.h: Likewise.
2340 * sysdeps/standalone/bits/errno.h: Likewise.
2341 * sysdeps/unix/bsd/bsd4.4/bits/errno.h: Likewise.
2342 * sysdeps/unix/sysv/aix/bits/errno.h: Likewise.
2343 * sysdeps/unix/sysv/hpux/bits/errno.h: Likewise.
2344 * sysdeps/unix/sysv/linux/bits/errno.h: Likewise.
2345 * sysdeps/unix/sysv/linux/hppa/bits/errno.h: Likewise.
2346 * sysdeps/unix/sysv/linux/mips/bits/errno.h: Likewise.
2347 * sysdeps/unix/sysv/sysv4/solaris2/bits/errno.h: Likewise.
2348 * sysdeps/i386/dl-machine.c (elf_machine_rel) [RTLD_BOOTSTRAP]: Don't
2349 use GL(dl_rtld_map), use map parameter.
2350 * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
2351 * sysdeps/unix/sysv/linux/i386/sysdep.S: Define errno in .tbss if
2352 USE_TLS && HAVE___THREAD.
2353 * sysdeps/unix/sysv/linux/i386/sysdep.h: Unify SETUP_PIC_REG
2354 definitions. If USE_TLS && HAVE___THREAD store errooor value using
2356 * sysdeps/unix/sysv/linux/i386/i686/sysdep.h: Likewise.
2358 * sysdeps/unix/sysv/linux/getcwd.c: No real need to restore errno.
2359 * sysdeps/unix/sysv/linux/grantpt.c: Likewise.
2360 * sysdeps/unix/sysv/linux/internal_statvfs.c: Likewise.
2361 * sysdeps/unix/sysv/linux/msgctl.c: Likewise.
2362 * sysdeps/unix/sysv/linux/readv.c: Likewise.
2363 * sysdeps/unix/sysv/linux/writev.c: Likewise.
2365 2002-07-17 Ulrich Drepper <drepper@redhat.com>
2367 * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Fix MS_SYNC and
2368 MS_INVALIDATE values.
2370 2002-07-17 Andreas Schwab <schwab@suse.de>
2371 Ulrich Drepper <drepper@redhat.com>
2373 * sysdeps/unix/sysv/linux/pread.c: Sign extend offset.
2374 * sysdeps/unix/sysv/linux/pwrite.c: Likewise.
2375 * sysdeps/unix/sysv/linux/mips/pread.c: Likewise.
2376 * sysdeps/unix/sysv/linux/mips/pwrite.c: Likewise.
2378 2002-07-01 H.J. Lu <hjl@gnu.org>
2380 * elf/circleload1.c (load_dso): Call "circlemod1" and check
2383 * elf/circlemod1.c (circlemod1): Return int.
2384 * elf/circlemod2.c (circlemod2): Likewise.
2385 * elf/circlemod2a.c (circlemod2): Likewise.
2386 * elf/circlemod3.c (circlemod3): Likewise.
2387 (circlemod3a): A new function.
2389 2002-07-16 Ulrich Drepper <drepper@redhat.com>
2391 * catgets/tst-catgets.c (main): Don't expect results for
2392 untranslated messages.
2394 * glibcbug.in: Fix little typo. Remove STDIO.
2396 * config.h.in: Fail if __FAST_MATH__ is defined.
2397 * math/Makefile (CPPFLAGS-test-ifloat.c): Also define TEST_FAST_MATH.
2398 (CPPFLAGS-test-idouble.c): Likewise.
2399 (CPPFLAGS-test-ildouble.c): Likewise.
2401 2002-07-15 Ulrich Drepper <drepper@redhat.com>
2403 * intl/tst-gettext.sh: Pass -f option to msgfmt.
2404 * intl/tst-gettext.c: Correctly handle untranslated messages in
2407 * po/de.po: Update from translation team.
2409 2002-07-02 H.J. Lu <hjl@gnu.org>
2411 * sysdeps/mips/atomicity.h: Don't include <sgidefs.h>. Always
2413 * sysdeps/unix/sysv/linux/mips/sys/tas.h: Likewise.
2415 * sysdeps/unix/sysv/linux/configure.in: Set arch_minimum_kernel
2418 2002-07-15 Ulrich Drepper <drepper@redhat.com>
2420 * elf/dl-load.c (_dl_map_object_from_fd): If loaded object uses
2421 TLS fail if USE_TLS is not defined.
2423 * libio/wfileops.c (_IO_wfile_seekoff): Reposition wide pointers
2424 and adjust state for seek position. [PR libc/4070]
2425 * libio/Makefile (tests): Add bug-rewind.
2426 * libio/bug-rewind.c: New file.
2428 2002-07-12 Philip Blundell <philb@gnu.org>
2430 * sysdeps/generic/backtrace.c (FIRST_FRAME_POINTER): New macro.
2431 (__backtrace): Use it.
2432 * sysdeps/arm/frame.h (FIRST_FRAME_POINTER): Define. [PR libc/2632]
2434 2002-07-12 Philip Blundell <philb@gnu.org>
2436 * sysdeps/arm/dl-machine.h (elf_machine_rel): Don't handle
2437 R_ARM_RELATIVE if RTLD_BOOTSTRAP and HAVE_Z_COMBRELOC. Only check
2438 for rtld map if neither RTLD_BOOTSTRAP nor HAVE_Z_COMBRELOC is defined.
2439 (elf_machine_rela): Remove unused variable.
2441 * sysdeps/unix/sysv/linux/arm/Makefile [subdir=elf]
2442 (sysdep-rtld-routines, sysdep_routines, sysdep-dl-routines): Don't
2445 2002-07-12 Ulrich Drepper <drepper@redhat.com>
2447 * iconvdata/gconv-modules: Add aliases for ISO-8859-11.
2449 2002-07-14 Andreas Jaeger <aj@suse.de>
2451 * sysdeps/x86_64/bits/link.h: Add biarch support.
2453 2002-07-13 Andreas Jaeger <aj@suse.de>
2455 * sysdeps/unix/sysv/linux/mips/register-dump.h (register_dump):
2456 Use correct indices.
2457 Patch by Eliot Dresselhaus <eliot@ayrnetworks.com>.
2459 2002-07-09 Martin Schwidefsky <schwidefsky@de.ibm.com>
2461 * sysdeps/s390/bits/byteswap.h: Unified 31/64 bit byteswap.h.
2462 * sysdeps/s390/s390-32/bits/byteswap.h: Remove.
2463 * sysdeps/s390/s390-64/bits/byteswap.h: Remove.
2464 * sysdeps/s390/bits/link.h: Unified 31/64 bit link.h.
2465 * sysdeps/s390/s390-32/bits/link.h: Remove.
2466 * sysdeps/s390/s390-64/bits/link.h: Remove.
2467 * sysdeps/s390/bits/setjmp.h: Unified 31/64 bit setjmp.h.
2468 * sysdeps/s390/s390-32/bits/setjmp.h: Remove.
2469 * sysdeps/s390/s390-64/bits/setjmp.h: Remove.
2470 * sysdeps/s390/bits/wordsize.h: New file.
2471 * sysdeps/unix/sysv/linux/s390/bits/elfclass.h: Unified 31/64 bit
2473 * sysdeps/unix/sysv/linux/s390/s390-64/bits/elfclass.h: Remove.
2474 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Unified 31/64 bit fcntl.h.
2475 * sysdeps/unix/sysv/linux/s390/s390-32/bits/fcntl.h: Remove.
2476 * sysdeps/unix/sysv/linux/s390/s390-64/bits/fcntl.h: Remove.
2477 * sysdeps/unix/sysv/linux/s390/bits/ipc.h: Unified 31/64 bit ipc.h.
2478 * sysdeps/unix/sysv/linux/s390/s390-64/bits/ipc.h: Remove.
2479 * sysdeps/unix/sysv/linux/s390/bits/mman.h: Unified 31/64 bit mman.h.
2480 * sysdeps/unix/sysv/linux/s390/s390-32/bits/mman.h: Remove.
2481 * sysdeps/unix/sysv/linux/s390/s390-64/bits/mman.h: Remove.
2482 * sysdeps/unix/sysv/linux/s390/bits/msq.h: Unified 31/64 bit msq.h.
2483 * ysdeps/unix/sysv/linux/s390/s390-64/bits/msq.h: Remove.
2484 * sysdeps/unix/sysv/linux/s390/bits/resource.h: Unified 31/64 bit
2486 * sysdeps/unix/sysv/linux/s390/s390-32/bits/resource.h: Remove.
2487 * sysdeps/unix/sysv/linux/s390/s390-64/bits/resource.h: Remove.
2488 * sysdeps/unix/sysv/linux/s390/bits/sem.h: Unified 31/64 bit sem.h.
2489 * sysdeps/unix/sysv/linux/s390/s390-64/bits/sem.h: Remove.
2490 * sysdeps/unix/sysv/linux/s390/bits/shm.h: Unified 31/64 bit shm.h.
2491 * sysdeps/unix/sysv/linux/s390/s390-64/bits/shm.h: Remove.
2492 * sysdeps/unix/sysv/linux/s390/bits/sigaction.h: Unified 31/64 bit
2494 * sysdeps/unix/sysv/linux/s390/s390-64/bits/sigaction.h: Remove.
2495 * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Unified 31/64 bit
2497 * sysdeps/unix/sysv/linux/s390/s390-64/bits/siginfo.h: Remove.
2498 * sysdeps/unix/sysv/linux/s390/s390-64/bits/sigstack.h: Remove.
2499 * sysdeps/unix/sysv/linux/s390/bits/socket.h: Unified 31/64 bit
2501 * sysdeps/unix/sysv/linux/s390/s390-64/bits/socket.h: Remove.
2502 * sysdeps/unix/sysv/linux/s390/bits/stat.h: Unified 31/64 bit stat.h.
2503 * sysdeps/unix/sysv/linux/s390/s390-32/bits/stat.h: Remove.
2504 * sysdeps/unix/sysv/linux/s390/s390-64/bits/stat.h: Remove.
2505 * sysdeps/unix/sysv/linux/s390/bits/types.h: Unified 31/64 bit types.h.
2506 * sysdeps/unix/sysv/linux/s390/s390-64/bits/types.h: Remove.
2507 * sysdeps/unix/sysv/linux/s390/net/route.h: New file.
2508 * sysdeps/unix/sysv/linux/s390/sys/procfs.h: Unified 31/64 bit
2510 * sysdeps/unix/sysv/linux/s390/s390-32/sys/procfs.h: Remove.
2511 * sysdeps/unix/sysv/linux/s390/s390-64/sys/procfs.h: Remove.
2512 * sysdeps/unix/sysv/linux/s390/sys/ucontext.h: Unified 31/64 bit
2514 * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Remove.
2515 * sysdeps/unix/sysv/linux/s390/s390-64/sys/ucontext.h: Remove.
2517 2002-07-11 Ulrich Drepper <drepper@redhat.com>
2519 * Versions.def (libc): Add GLIBC_2.3.
2520 * stdlib/Versions [libc] (GLIBC_2.3): Add realpath.
2521 * stdlib/canonicalize.c: Add compatibility version for realpath
2522 and make new code available in GLIBC_2.3.
2524 2002-07-06 Bruno Haible <bruno@clisp.org>
2526 * malloc/hooks.c (public_gET_STATe): Access max_total_mem in mp_.
2528 2002-07-11 Ulrich Drepper <drepper@redhat.com>
2530 * resolv/res_hconf.c (_res_hconf_init): Move code into new
2531 function do_init. Use __libc_once.
2532 (do_init): New function.
2534 * iconvdata/iso8859-11.h: Removed.
2535 * iconvdata/Makefile (gen-8bit-gap-modules): Add iso8859-11.
2536 (distribute): Remove iso8859-11.h.
2537 * iconvdata/tst-tables.sh: Add ISO-8859-11.
2539 * stdio-common/vfscanf.c (inchar): Restore errno from previous
2540 underflow operation if c == (W)EOF.
2542 2002-07-03 Jakub Jelinek <jakub@redhat.com>
2544 * stdio-common/printf_fp.c (__printf_fp): If _FPIO_CONST_SHIFT is
2545 non-zero, adjust exponent.
2546 * sysdeps/ieee754/ldbl-128/s_erfl.c (__erfl, erfl, __erfcl, erfcl):
2547 Remove NO_LONG_DOUBLE aliases.
2548 * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l, expm1l): Likewise.
2549 * sysdeps/ieee754/ldbl-128/s_log1pl.c (__log1pl, log1pl): Likewise.
2550 (__log1pl): Raise divide by zero and invalid exceptions when needed.
2551 * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Special case
2553 * sysdeps/ieee754/ldbl-128/ldbl2mpn.c (__mpn_extract_long_double):
2554 Fix BITS_PER_MP_LIMB 32 extraction.
2555 * sysdeps/ieee754/ldbl-128/e_log2l.c (__ieee754_log2l): Don't raise
2556 exceptions for qNaNs.
2557 * sysdeps/ieee754/ldbl-128/e_log10l.c (__ieee754_log10l): Likewise.
2558 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgamma_r):
2559 Raise exceptions when needed. Don't recurse unnecessarily.
2560 Special case 1.0L and 2.0L arguments to avoid -0.0L as result.
2561 * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_y0l): Don't raise
2562 exceptions for qNaNs.
2563 * sysdeps/ieee754/ldbl-128/s_remquol.c (__remquol): Make qs 64-bit
2564 to fix *quo return value sign.
2565 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gamma_r): Special
2567 * soft-fp/op-4.h (_FP_FRAC_CLZ_4): Fix a pasto.
2569 2002-07-01 Jakub Jelinek <jakub@redhat.com>
2571 * libio/tst-eof.c (do_test): Remove unused ch and tm variables.
2572 * iconvdata/iso-2022-jp-3.c (EMIT_SHIFT_TO_INIT): Kill warnings if
2575 2002-07-10 Ulrich Drepper <drepper@redhat.com>
2577 * malloc/hooks.c (realloc_check): If mremap succeeds actually use
2580 * sysdeps/i386/i486/bits/string.h: Add early clobber for "a"
2581 output parameter. Reported by Denis Zaitsev <zzz@cd-club.ru>.
2583 * Versions.def (libthread_db): Add GLIBC_2.3.
2585 2002-07-09 Jakub Jelinek <jakub@redhat.com>
2587 * libio/freopen.c (freopen): Reset jump tables, use mmap stdio for the
2588 new stream if possible.
2589 * libio/freopen64.c (freopen64): Likewise.
2590 * libio/Makefile (tests): Add tst-freopen.
2591 * libio/tst-freopen.c: New file.
2593 2002-07-03 Jakub Jelinek <jakub@redhat.com>
2595 * libio/stdio.h (obstack_printf): Add format attribute.
2596 (obstack_vprintf): Likewise.
2598 2002-07-04 Jakub Jelinek <jakub@redhat.com>
2600 * posix/regex_internal.h (re_token_t): Shrink the structure to 8
2601 resp. 16 bytes on 32-bit resp. 64-bit platforms.
2602 (re_charset_t, re_string_t): Reorder structure members for 64-bit
2605 2002-07-04 Jakub Jelinek <jakub@redhat.com>
2607 * posix/regcomp.c (re_compile_internal): Move clearing of dfa...
2608 (init_dfa): ...here.
2610 2002-07-05 Isamu Hasegawa <isamu@yamato.ibm.com>
2612 * posix/regcomp.c (parse_sub_exp): Add nodes OP_OPEN_SUBEXP and
2613 OP_CLOSE_SUBEXP at both ends of sub expressions instead of SUBEXP
2614 nodes in parse trees.
2615 (calc_first): Fix the Definition of `firsts' of OP_OPEN_SUBEXP
2616 and OP_CLOSE_SUBEXP, and remove the definition of SUBEXP.
2617 (calc_epsdest): Treat OP_OPEN_SUBEXP and OP_CLOSE_SUBEXP as the
2618 nodes which can epsilon transit.
2619 * posix/regex_internal.h: Add OP_OPEN_SUBEXP and OP_CLOSE_SUBEXP
2620 to IS_EPSILON_NODE macro.
2621 * posix/regexec.c (update_regs): New function to update registers
2622 by refering OP_OPEN_SUBEXP and OP_CLOSE_SUBEXP nodes.
2623 (proceed_next_node): Use the entities of the nodes to determine
2624 whether the node can transit to.
2625 (set_regs): Use update_regs function to update registers.
2627 2002-07-03 Jakub Jelinek <jakub@redhat.com>
2629 * posix/bug-regex4.c (main): Remove duplicate setlocale.
2630 * posix/bug-regex6.c: New file.
2631 * posix/Makefile (tests): Add bug-regex6.
2632 (bug-regex6-ENV): Set LOCPATH.
2634 2002-07-10 Ulrich Drepper <drepper@redhat.com>
2636 * Versions.def [libpthread]: Add GLIBC_2.2.6.
2637 * posix/Versions [libc] (GLIBC_2.2.6): Add __nanosleep.
2639 2002-07-06 Bruno Haible <bruno@clisp.org>
2641 * sysdeps/unix/sysv/sysv4/bits/sigset.h (__NSSBITS): Correct value.
2643 2002-07-06 Bruno Haible <bruno@clisp.org>
2645 * include/sys/socket.h (__libc_sendto, __libc_recvfrom): New
2648 * sysdeps/i386/fpu/libm-test-ulps: Add some ulps for AMD K7.
2650 * rt/Makefile (tests): Don't add tst-aio* in a single-threaded build.
2652 * sysdeps/unix/bsd/sun/sunos4/bits/utsname.h: Test for _SYS_UTSNAME_H,
2654 * sysdeps/unix/bsd/ultrix4/bits/utsname.h: Likewise.
2656 * sysdeps/generic/bits/stropts.h: Protect against direct inclusion.
2657 * sysdeps/generic/bits/ustat.h: Likewise.
2659 * sysdeps/unix/sysv/linux/bits/statvfs.h (ST_NODIRATIME): Set to 2048.
2661 2002-07-08 Andreas Jaeger <aj@suse.de>
2663 * sysdeps/x86_64/elf/initfini.c (__asm__): Call call_gmon_start.
2665 2002-07-08 Andreas Jaeger <aj@suse.de>
2667 * sysdeps/x86_64/fpu/s_fdiml.S: Fix wrong register name.
2669 2002-07-06 Andreas Jaeger <aj@suse.de>
2671 * sysdeps/x86_64/fpu/bits/mathinline.h: New.
2672 * sysdeps/x86_64/fpu/s_copysign.S: New.
2673 * sysdeps/x86_64/fpu/s_copysignf.S: New.
2674 * sysdeps/x86_64/fpu/s_copysignl.S: New.
2675 * sysdeps/x86_64/fpu/s_finitel.S: New.
2676 * sysdeps/x86_64/fpu/s_fmax.S: New.
2677 * sysdeps/x86_64/fpu/s_fmaxf.S: New.
2678 * sysdeps/x86_64/fpu/s_fmaxl.S: New.
2679 * sysdeps/x86_64/fpu/s_fmin.S: New.
2680 * sysdeps/x86_64/fpu/s_fminf.S: New.
2681 * sysdeps/x86_64/fpu/s_fminl.S: New.
2683 2002-06-05 Brian Youmans <3diff@gnu.org>
2685 * sysdeps/ia64/fpu/e_acos.S: Added text of Intel license.
2686 * sysdeps/ia64/fpu/e_acosf.S: Likewise.
2687 * sysdeps/ia64/fpu/e_acosl.S: Likewise.
2688 * sysdeps/ia64/fpu/e_asin.S: Likewise.
2689 * sysdeps/ia64/fpu/e_asinf.S: Likewise.
2690 * sysdeps/ia64/fpu/e_asinl.S: Likewise.
2691 * sysdeps/ia64/fpu/e_atan2.S: Likewise.
2692 * sysdeps/ia64/fpu/e_atan2f.S: Likewise.
2693 * sysdeps/ia64/fpu/e_cosh.S: Likewise.
2694 * sysdeps/ia64/fpu/e_coshf.S: Likewise.
2695 * sysdeps/ia64/fpu/e_coshl.S: Likewise.
2696 * sysdeps/ia64/fpu/e_exp.S: Likewise.
2697 * sysdeps/ia64/fpu/e_expf.S: Likewise.
2698 * sysdeps/ia64/fpu/e_fmod.S: Likewise.
2699 * sysdeps/ia64/fpu/e_fmodf.S: Likewise.
2700 * sysdeps/ia64/fpu/e_fmodl.S: Likewise.
2701 * sysdeps/ia64/fpu/e_hypot.S: Likewise.
2702 * sysdeps/ia64/fpu/e_hypotf.S: Likewise.
2703 * sysdeps/ia64/fpu/e_hypotl.S: Likewise.
2704 * sysdeps/ia64/fpu/e_log.S: Likewise.
2705 * sysdeps/ia64/fpu/e_logf.S: Likewise.
2706 * sysdeps/ia64/fpu/e_pow.S: Likewise.
2707 * sysdeps/ia64/fpu/e_powf.S: Likewise.
2708 * sysdeps/ia64/fpu/e_powl.S: Likewise.
2709 * sysdeps/ia64/fpu/e_remainder.S: Likewise.
2710 * sysdeps/ia64/fpu/e_remainderf.S: Likewise.
2711 * sysdeps/ia64/fpu/e_remainderl.S: Likewise.
2712 * sysdeps/ia64/fpu/e_scalb.S: Likewise.
2713 * sysdeps/ia64/fpu/e_scalbf.S: Likewise.
2714 * sysdeps/ia64/fpu/e_scalbl.S: Likewise.
2715 * sysdeps/ia64/fpu/e_sinh.S: Likewise.
2716 * sysdeps/ia64/fpu/e_sinhf.S: Likewise.
2717 * sysdeps/ia64/fpu/e_sinhl.S: Likewise.
2718 * sysdeps/ia64/fpu/e_sqrt.S: Likewise.
2719 * sysdeps/ia64/fpu/e_sqrtf.S: Likewise.
2720 * sysdeps/ia64/fpu/e_sqrtl.S: Likewise.
2721 * sysdeps/ia64/fpu/libm_atan2_req.S: Likewise.
2722 * sysdeps/ia64/fpu/libm_error.c: Likewise.
2723 * sysdeps/ia64/fpu/libm_frexp4.S: Likewise.
2724 * sysdeps/ia64/fpu/libm_frexp4f.S: Likewise.
2725 * sysdeps/ia64/fpu/s_frexpl.c: Likewise.
2726 * sysdeps/ia64/fpu/s_ilogb.S: Likewise.
2727 * sysdeps/ia64/fpu/s_ilogbf.S: Likewise.
2728 * sysdeps/ia64/fpu/s_ilogbl.S: Likewise.
2729 * sysdeps/ia64/fpu/s_ldexp.S: Likewise.
2730 * sysdeps/ia64/fpu/s_ldexpf.S: Likewise.
2731 * sysdeps/ia64/fpu/s_ldexpl.S: Likewise.
2732 * sysdeps/ia64/fpu/s_log1p.S: Likewise.
2733 * sysdeps/ia64/fpu/s_log1pf.S: Likewise.
2734 * sysdeps/ia64/fpu/s_log1pl.S: Likewise.
2735 * sysdeps/ia64/fpu/s_logb.S: Likewise.
2736 * sysdeps/ia64/fpu/s_logbf.S: Likewise.
2737 * sysdeps/ia64/fpu/s_logbl.S: Likewise.
2738 * sysdeps/ia64/fpu/s_modf.S: Likewise.
2739 * sysdeps/ia64/fpu/s_modff.S: Likewise.
2740 * sysdeps/ia64/fpu/s_modfl.S: Likewise.
2741 * sysdeps/ia64/fpu/s_nearbyint.S: Likewise.
2742 * sysdeps/ia64/fpu/s_nearbyintf.S: Likewise.
2743 * sysdeps/ia64/fpu/s_nearbyintl.S: Likewise.
2744 * sysdeps/ia64/fpu/s_rint.S: Likewise.
2745 * sysdeps/ia64/fpu/s_rintf.S: Likewise.
2746 * sysdeps/ia64/fpu/s_rintl.S: Likewise.
2747 * sysdeps/ia64/fpu/s_round.S: Likewise.
2748 * sysdeps/ia64/fpu/s_roundf.S: Likewise.
2749 * sysdeps/ia64/fpu/s_roundl.S: Likewise.
2750 * sysdeps/ia64/fpu/s_scalbn.S: Likewise.
2751 * sysdeps/ia64/fpu/s_scalbnf.S: Likewise.
2752 * sysdeps/ia64/fpu/s_scalbnl.S: Likewise.
2753 * sysdeps/ia64/fpu/s_significand.S: Likewise.
2754 * sysdeps/ia64/fpu/s_significandf.S: Likewise.
2755 * sysdeps/ia64/fpu/s_significandl.S: Likewise.
2756 * sysdeps/ia64/fpu/s_tan.S: Likewise.
2757 * sysdeps/ia64/fpu/s_tanf.S: Likewise.
2758 * sysdeps/ia64/fpu/s_tanl.S: Likewise.
2759 * sysdeps/ia64/fpu/s_trunc.S: Likewise.
2760 * sysdeps/ia64/fpu/s_truncf.S: Likewise.
2761 * sysdeps/ia64/fpu/s_truncl.S: Likewise.
2762 * sysdeps/ieee754/dbl-64/doasin.c: Changed copyright notice to
2763 reflect IBM donation of math library to FSF
2764 * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
2765 * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
2766 * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
2767 * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
2768 * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
2769 * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
2770 * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
2771 * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
2772 * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
2773 * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
2774 * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
2775 * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
2776 * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
2777 * sysdeps/ieee754/dbl-64/mplog.c: Likewise.
2778 * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
2779 * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
2780 * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
2781 * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
2782 * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
2783 * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
2784 * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
2785 * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
2786 * sysdeps/gnu/netinet/udp.h: Added BSD copying permission notice
2787 * sysdeps/vax/__longjmp.c: Likewise.
2788 * sysdeps/vax/setjmp.c: Likewise.
2789 * libio/filedoalloc.c: Fixed BSD copying permission notice to
2790 remove advertising clause
2791 * sysdeps/vax/htonl.s: Likewise.
2792 * sysdeps/vax/htons.s: Likewise.
2793 * libio/wfiledoalloc.c: Likewise.
2794 * stdlib/random.c: Likewise.
2795 * stdlib/random_r.c: Likewise.
2796 * sysdeps/mach/sys/reboot.h: Likewise.
2797 * inet/getnameinfo.c: Deleted advertising clause from Inner Net License
2798 * sysdeps/posix/getaddrinfo.c: Likewise.
2799 * sunrpc/des_impl.c: Updated license permission notice to Lesser
2800 GPL and corrected pointer to point to the correct license.
2802 2002-07-04 Andreas Jaeger <aj@suse.de>
2804 * scripts/config.guess: New upstream version.
2805 * scripts/config.sub: Likewise.
2807 2002-07-02 Andreas Schwab <schwab@suse.de>
2809 * resolv/nss_dns/dns-network.c (getanswer_r): Reduce linebuflen
2810 in parallel to bumping up the buffer pointer.
2812 2002-07-01 Jakub Jelinek <jakub@redhat.com>
2814 * math/libm-test.inc (acos_test): Add missing L suffix for
2816 (cpow_test): Likewise.
2817 * sysdeps/i386/fpu/libm-test-ulps: Adjust errors for cpow, remove
2818 error for acos (0.0625).
2820 2002-06-30 Ulrich Drepper <drepper@redhat.com>
2822 * locale/iso-639.def: Add entry for Ganda.
2823 * locale/programs/ld-address.c (DEFINE_LANGUAGE_CODE3): New
2825 (address_finish): Handle entries with two letter ISO 639 code.
2827 * iconvdata/Makefile: Recreate gconv-modules.cache file in target
2828 directory if it existed before.
2829 * iconv/iconvconfig.c: Implement --prefix option.
2831 * math/libm-test.inc (cexp_test): Add missing L suffix for
2832 expected result. Reported by Stephen L Moshier <steve@moshier.net>.
2833 * sysdeps/i386/fpu/libm-test-ulps: Adjust error for cexp (0.75 +
2836 2002-05-29 H.J. Lu <hjl@gnu.org>
2838 * elf/dl-error.c (_dl_signal_cerror): Report error if ld.so debug
2841 2002-05-28 H.J. Lu <hjl@gnu.org>
2843 * elf/dl-deps.c (_dl_map_object_deps): Don't add objects which
2844 are not dlopened on the dependency list of a dlopened object.
2846 2002-06-30 Ulrich Drepper <drepper@redhat.com>
2848 * elf/dl-lookup.c (add_dependency): It is not necessary to add
2849 dependencies if they are created between objects which are created
2850 while processing RTLD_NOW for objects loaded as part of the same
2853 2002-06-14 H.J. Lu <hjl@gnu.org>
2855 * elf/Makefile (tests): Add circleload1.
2856 (modules-names): Add circlemod1, circlemod2, circlemod3,
2857 circlemod1a, circlemod2a and circlemod3a.
2858 ($(objpfx)circleload1): New target.
2859 ($(objpfx)circleload1.out): Likewise.
2860 ($(objpfx)circlemod1.so): Likewise.
2861 ($(objpfx)circlemod2.so): Likewise.
2862 ($(objpfx)circlemod1a.so): Likewise.
2863 ($(objpfx)circlemod2a.so): Likewise.
2864 * elf/circleload1.c: New file.
2865 * elf/circlemod1.c: New file.
2866 * elf/circlemod1a.c: New file.
2867 * elf/circlemod2.c: New file.
2868 * elf/circlemod2a.c: New file.
2869 * elf/circlemod3.c: New file.
2870 * elf/circlemod3a.c: New file.
2872 2002-06-18 Amos Waterland <apw@us.ibm.com>
2874 * sysdeps/pthread/aio_cancel.c (aio_cancel): Add check for invalid
2876 * sysdeps/pthread/aio_fsync.c (aio_fsync): Add check for invalid fd;
2877 add check for fd not open for writing.
2879 * sysdeps/pthread/aio_suspend.c (aio_suspend): Add check for
2880 completed element(s) and do not suspend thread if so. Patch
2881 heavily modified by drepper.
2883 * rt/tst-aio7.c: New file. Regression test for problems which the
2884 above three changes fix.
2885 * rt/Makefile (tests): Add tst-aio7.
2887 2002-06-29 Ulrich Drepper <drepper@redhat.com>
2889 * rt/tst-aio6.c: Fix comment.
2891 * catgets/gencat.c (read_input_file): Handle more than one slash
2892 at end of line correctly [PR libc/3926].
2893 Based on a patch by Steven Kim <steven.kim@peregrine.com>.
2895 * catgets/sample.SJIS: Add test case for above bug.
2896 * catgets/test-gencat.c: Adjust test code.
2897 * catgets/test-gencat.sh: Adjust expected results.
2899 * elf/do-rel.h (elf_dynamic_do_rel): Avoid overflow in computation
2900 to skip relative relocations.
2901 Patch by Geoff Keating <geoffk@redhat.com>.
2903 2002-05-26 Bruno Haible <bruno@clisp.org>
2905 * iconv/loop.c (STANDARD_FROM_LOOP_ERR_HANDLER): New macro.
2906 (STANDARD_TO_LOOP_ERR_HANDLER): Renamed from STANDARD_ERR_HANDLER.
2907 All callers changed.
2908 * iconv/gconv_simple.c (ascii_internal_loop): For error handling use
2909 STANDARD_FROM_LOOP_ERR_HANDLER.
2910 (utf8_internal_loop): Likewise.
2911 (ucs2_internal_loop): Likewise.
2912 (internal_ucs2_loop): Perform error handling like in
2913 STANDARD_FROM_LOOP_ERR_HANDLER.
2914 * iconvdata/unicode.c (BODY for TO_LOOP): Perform error handling like
2915 in STANDARD_FROM_LOOP_ERR_HANDLER.
2916 (BODY for FROM_LOOP): Use STANDARD_FROM_LOOP_ERR_HANDLER for error
2918 * iconvdata/utf-16.c (BODY for TO_LOOP): Perform error handling like
2919 in STANDARD_FROM_LOOP_ERR_HANDLER.
2920 (BODY for FROM_LOOP): Use STANDARD_FROM_LOOP_ERR_HANDLER for error
2922 * iconvdata/utf-32.c (BODY for TO_LOOP): Perform error handling like
2923 in STANDARD_FROM_LOOP_ERR_HANDLER.
2924 (BODY for FROM_LOOP): Use STANDARD_FROM_LOOP_ERR_HANDLER for error
2926 * iconvdata/big5.c (BODY for FROM_LOOP): For error handling use
2927 STANDARD_FROM_LOOP_ERR_HANDLER.
2928 * iconvdata/iso-2022-jp.c (BODY for FROM_LOOP): Likewise.
2929 * iconvdata/8bit-gap.c (BODY for FROM_LOOP): Likewise.
2930 * iconvdata/8bit-generic.c (BODY for FROM_LOOP): Likewise.
2931 * iconvdata/ansi_x3.110.c (BODY for FROM_LOOP): Likewise.
2932 * iconvdata/armscii-8.c (BODY for FROM_LOOP): Likewise.
2933 * iconvdata/cp1255.c (BODY for FROM_LOOP): Likewise.
2934 * iconvdata/cp1258.c (BODY for FROM_LOOP): Likewise.
2935 * iconvdata/euc-cn.c (BODY for FROM_LOOP): Likewise.
2936 * iconvdata/euc-jisx0213.c (BODY for FROM_LOOP): Likewise.
2937 * iconvdata/euc-jp.c (BODY for FROM_LOOP): Likewise.
2938 * iconvdata/euc-kr.c (BODY for FROM_LOOP): Likewise.
2939 * iconvdata/euc-tw.c (BODY for FROM_LOOP): Likewise.
2940 * iconvdata/big5hkscs.c (BODY for FROM_LOOP): Likewise.
2941 * iconvdata/gb18030.c (BODY for FROM_LOOP): Likewise.
2942 * iconvdata/gbk.c (BODY for FROM_LOOP): Likewise.
2943 * iconvdata/iso-2022-cn-ext.c (BODY for FROM_LOOP): Likewise.
2944 * iconvdata/iso-2022-cn.c (BODY for FROM_LOOP): Likewise.
2945 * iconvdata/iso-2022-jp-3.c (BODY for FROM_LOOP): Likewise.
2946 * iconvdata/iso-2022-kr.c (BODY for FROM_LOOP): Likewise.
2947 * iconvdata/iso646.c (BODY for FROM_LOOP): Likewise.
2948 * iconvdata/iso_6937-2.c (BODY for FROM_LOOP): Likewise.
2949 * iconvdata/iso_6937.c (BODY for FROM_LOOP): Likewise.
2950 * iconvdata/johab.c (BODY for FROM_LOOP): Likewise.
2951 * iconvdata/shift_jisx0213.c (BODY for FROM_LOOP): Likewise.
2952 * iconvdata/sjis.c (BODY for FROM_LOOP): Likewise.
2953 * iconvdata/t.61.c (BODY for FROM_LOOP): Likewise.
2954 * iconvdata/uhc.c (BODY for FROM_LOOP): Likewise.
2955 * iconvdata/utf-7.c (BODY for FROM_LOOP): Likewise.
2956 * iconvdata/gbbig5.c (BODY for FROM_LOOP): Likewise. When ignoring
2957 an error, still set result = __GCONV_ILLEGAL_INPUT.
2958 (BODY for TO_LOOP): Likewise.
2959 * iconvdata/ibm930.c (BODY for FROM_LOOP): For error handling use
2960 STANDARD_FROM_LOOP_ERR_HANDLER.
2961 (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
2962 * iconvdata/ibm932.c: Include <dlfcn.h> and <stdint.h>.
2963 (BODY for FROM_LOOP): Use STANDARD_FROM_LOOP_ERR_HANDLER for error
2965 (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
2966 * iconvdata/ibm933.c (BODY for FROM_LOOP): For error handling use
2967 STANDARD_FROM_LOOP_ERR_HANDLER.
2968 (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
2969 * iconvdata/ibm935.c (BODY for FROM_LOOP): For error handling use
2970 STANDARD_FROM_LOOP_ERR_HANDLER.
2971 (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
2972 * iconvdata/ibm937.c (BODY for FROM_LOOP): For error handling use
2973 STANDARD_FROM_LOOP_ERR_HANDLER.
2974 (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
2975 * iconvdata/ibm939.c (BODY for FROM_LOOP): For error handling use
2976 STANDARD_FROM_LOOP_ERR_HANDLER.
2977 (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
2978 * iconvdata/ibm943.c: Include <dlfcn.h> and <stdint.h>.
2979 (BODY for FROM_LOOP): Use STANDARD_FROM_LOOP_ERR_HANDLER for error
2981 (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
2982 * iconvdata/gbgbk.c (BODY for FROM_LOOP): Update.
2983 * iconvdata/iso8859-1.c (BODY for TO_LOOP): Update.
2984 * iconvdata/tcvn5712-1.c (BODY for TO_LOOP): Update.
2986 2002-06-28 Kaz Kojima <kkojima@rr.iij4u.or.jp>
2988 * sysdeps/sh/dl-machine.h (elf_machine_load_address): Use local
2989 labels in assembler instructions.
2991 2002-06-25 Ulrich Drepper <drepper@redhat.com>
2993 * libio/fileops.c (_IO_file_xsgetn_mmap): Always set EOF flag if
2994 not enough content is available.
2995 * libio/tst-eof.c: New file.
2996 * libio/Makefile (tests): Add tst-eof.
2998 * libio/fileops.c (_IO_file_underflow_mmap): Read a single byte to
3000 * libio/tst-atime.c: New file.
3001 * libio/Makefile (tests): Add tst-atime.
3003 * argp/argp-fmtstream.c (__argp_fmtstream_update): Avoid crash in
3004 handling of overly long words.
3006 2002-06-25 Andreas Jaeger <aj@suse.de>
3008 * sysdeps/x86-64/dl-machine.h (elf_machine_load_address): Rewrite
3009 to not use 32-bit pc relative relocations.
3010 (elf_machine_dynamic): Likewise.
3012 2002-06-21 Ulrich Drepper <drepper@redhat.com>
3014 * sysdeps/unix/sysv/linux/getdents.c [__ASSUME_GETDENTS64_SYSCALL]
3015 (__GETDENTS): Check for failed getdents64 syscall.
3016 * dirent/Makefile (tests): Add bug-readdir1.
3017 * dirent/bug-readdir1.c: New file.
3019 2002-06-17 Jakub Jelinek <jakub@redhat.com>
3021 * elf/dl-lookup.c (_dl_debug_bindings): Use type_class 4 for TLS
3023 * elf/rtld.c (dl_main): Move TLS setup code before LD_TRACE_PRELINKING
3024 code. Print TLS modid and offset for modules containing PT_TLS
3027 2002-06-09 Jakub Jelinek <jakub@redhat.com>
3029 * sysdeps/unix/sysv/linux/i386/dl-brk.c: Move...
3030 * sysdeps/unix/sysv/linux/dl-brk.c: ...here.
3031 * sysdeps/unix/sysv/linux/i386/dl-sbrk.c: Move...
3032 * sysdeps/unix/sysv/linux/dl-sbrk.c: ...here.
3034 2002-06-07 Jakub Jelinek <jakub@redhat.com>
3036 * nss/getXXbyYY_r.c (NEW, NEW1): Define.
3037 (NEW (REENTRANT_NAME)): Strong alias to INTERNAL (REENTRANT_NAME).
3038 (REENTRANT_NAME@@GLIBC_2.1.2): Use NEW (REENTRANT_NAME).
3039 * nss/getXXent_r.c (NEW, NEW1): Define.
3040 (NEW (REENTRANT_GETNAME)): Strong alias to
3041 INTERNAL (REENTRANT_GETNAME).
3042 (REENTRANT_GETNAME@@GLIBC_2.1.2): Use NEW (REENTRANT_GETNAME).
3044 2002-06-21 Ulrich Drepper <drepper@redhat.com>
3046 * libio/fileops.c (_IO_file_setbuf_mmap): New function.
3047 (_IO_file_jumps_mmap): Use it.
3048 * libio/iosetvbuf.c: Don't call _IO_WSETBUF.
3049 * libio/libioP.h: Remove _IO_wdefault_setbuf and
3050 _IO_wdefault_setbuf_internal prorotypes. Add _IO_file_setbuf_mmap
3052 * libio/wfileops.c (_IO_wfile_setbuf): Removed.
3053 (_IO_wfile_jumps_mmap): Don't use it anymore.
3054 * libio/wgenops.c (_IO_wdefault_setbuf): Removed.
3055 * libio/memstream.c (_IO_wmem_jumps): Use _IO_default_setbuf not
3056 _IO_wdefault_setbuf.
3057 * libio/vswprintf.c (_IO_wstrn_jumps): Likewise.
3058 * libio/wstrops.c (_IO_wstr_jumps): Likewise.
3059 * stdio-common/vfprintf.c (_IO_helper_jumps): Likewise.
3061 2002-06-05 Jakub Jelinek <jakub@redhat.com>
3063 * libio/Makefile (tests): Add tst-mmap-setvbuf.
3064 * libio/tst-mmap-setvbuf.c: New test.
3066 2002-06-21 Andreas Jaeger <aj@suse.de>
3068 * sysdeps/i386/fpu/libm-test-ulps: Add some ulps from my P3.
3070 2002-06-18 Jakub Jelinek <jakub@redhat.com>
3072 * include/unistd.h (__fork_internal): Remove.
3073 (__fork): Don't define to __fork_internal.
3074 * sysdeps/mach/hurd/fork.c (__fork): Remove INTDEF.
3075 * sysdeps/unix/sysv/aix/fork.c (__fork): Likewise.
3076 * sysdeps/unix/sysv/linux/ia64/fork.S (__fork_internal): Remove alias.
3077 * sysdeps/unix/sysv/linux/sparc/fork.S (__fork_internal): Likewise.
3078 * sysdeps/unix/sysv/linux/syscalls.list (__fork_internal): Likewise.
3080 2002-06-20 Ulrich Drepper <drepper@redhat.com>
3082 * po/hr.po: New file.
3084 2002-06-11 Wolfram Gloger <wg@malloc.de>
3086 * malloc/malloc.c: Fix error path when new_heap() returns NULL.
3087 Reported by Michael Meissner <meissner@redhat.com>.
3089 2002-06-20 Ulrich Drepper <drepper@redhat.com>
3091 * sysdeps/unix/sysv/linux/ia64/getcontext.S: Fix typo.
3092 Patch by Hans Boehm <hans_boehm@hp.com>.
3094 2002-06-20 Andreas Jaeger <aj@suse.de>
3096 * math/libm-test.inc: Use exact values as input parameters,
3097 compute output parameters with 36 digits for 128-bit long doubles.
3098 * sysdeps/i386/fpu/libm-test-ulps: Regenerated.
3099 * sysdeps/x86-64/fpu/libm-test-ulps: Regenerated.
3100 * sysdeps/ia64/fpu/libm-test-ulps: Regenerated.
3102 2002-06-13 Stephen L Moshier <steve@moshier.net>
3104 * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Fix cases in which
3105 argument or result is subnormal.
3107 2002-06-19 Ulrich Drepper <drepper@redhat.com>
3109 * sysdeps/i386/fpu/s_remquo.S: Fix three mistakes in computing the
3111 * sysdeps/i386/fpu/s_remquof.S: Likewise.
3112 * sysdeps/i386/fpu/s_remquol.S: Likewise.
3114 * sysdeps/hppa/dl-machine.h: Don't use multi-line string literals.
3116 2002-06-17 David Mosberger <davidm@hpl.hp.com>
3118 * sysdeps/unix/sysv/linux/ia64/sys/ucontext.h (uc_sigmask): Fix
3119 typo: corresponding sigcontext field is called sc_mask, not sc_sigmask.
3120 Reported by Peter A. Buhr.
3122 2002-06-15 Roland McGrath <roland@frob.com>
3124 * sysdeps/mach/hurd/mmap.c (__mmap): Add a dead case that quiets a
3127 * sysdeps/mach/hurd/getcwd.c
3128 (_hurd_canonicalize_directory_name_internal): unsigned int -> size_t
3130 * sysdeps/unix/sysv/linux/bits/ustat.h: Moved to ...
3131 * sysdeps/generic/bits/ustat.h: ... here (was almost identical).
3133 * sysdeps/alpha/divrem.h: Use local label instead of global one for
3134 jump to local subroutine.
3136 2002-06-14 Roland McGrath <roland@frob.com>
3138 * sysdeps/mach/hurd/i386/Makeconfig: File moved to ...
3139 * sysdeps/mach/hurd/Makeconfig: ... here.
3141 2002-06-13 Andreas Schwab <schwab@suse.de>
3143 * sysdeps/m68k/fpu/s_finite.c: Remove INTDEF.
3144 * sysdeps/m68k/fpu/s_finitef.c: Likewise.
3145 * sysdeps/m68k/fpu/s_finitel.c: Likewise.
3147 2002-06-13 Roland McGrath <roland@frob.com>
3149 * hurd/hurdstartup.h (_hurd_startup): int -> intptr_t in MAIN arg type.
3150 * hurd/hurdstartup.c (_hurd_startup): Likewise.
3151 Use intptr_t instead of int for argc in stack layout.
3152 * sysdeps/mach/hurd/alpha/init-first.c (init): Fix argument type.
3153 (_dl_init_first): Likewise.
3154 (_hurd_stack_setup): Likewise.
3155 (init1): Add a cast.
3156 * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start: go): Fix arg type.
3158 * sysdeps/mach/hurd/if_index.c (if_nameindex): Use size_t for AMOUNT
3159 argument to pfinet_siocgifconf RPC.
3161 2002-06-13 Andreas Schwab <schwab@suse.de>
3163 * sysdeps/m68k/fpu/s_isinf.c (INTDEFX): Define to get correct
3166 2002-06-12 Roland McGrath <roland@frob.com>
3168 * sysdeps/generic/tmpfile.c [USE_IN_LIBIO] (tmpfile): Don't #define
3170 [USE_IN_LIBIO]: Conditionalize versioned_symbol use on
3171 [GEN_THIS == __GT_FILE] so that tmpfile64.c's inclusion doesn't get it.
3173 2002-06-11 Roland McGrath <roland@frob.com>
3175 * sysdeps/mach/hurd/xstat64.c: Conditionalize entire contents of the
3176 file on [!RTLD_STAT64].
3177 * sysdeps/mach/hurd/fxstat64.c: Likewise.
3179 * sysdeps/mach/hurd/tmpfile.c (tmpfile64): Define as alias of tmpfile.
3180 (__fdopen): Use INTUSE.
3181 * sysdeps/mach/hurd/tmpfile64.c: New file, empty placeholder.
3183 * stdio-common/tmpfile64.c: File removed.
3184 * sysdeps/generic/tmpfile64.c: New file.
3185 * sysdeps/generic/tmpfile.c (GEN_THIS): New macro, define to __GT_FILE
3186 if not already defined.
3187 (tmpfile): Use it in place of __GT_FILE.
3189 * include/unistd.h: Declare __chown_internal.
3191 * sysdeps/mach/hurd/sendfile64.c (sendfile64): Do real work here.
3192 * sysdeps/mach/hurd/sendfile.c (sendfile): Call that.
3194 2002-06-09 Roland McGrath <roland@frob.com>
3196 Update to new Hurd RPC interfaces supporting 64-bit file sizes.
3197 * sysdeps/mach/hurd/configure.in: Check for <hurd/version.h> with
3198 value of HURD_INTERFACE_VERSION >= 20020609.
3199 * sysdeps/mach/hurd/configure: Regenerated.
3200 * shlib-versions (.*-.*-gnu-gnu.*): Set libhurduser=0.3.
3201 * sysdeps/mach/hurd/xstatconv.c (xstat64_conv): Rewritten to
3202 convert a struct stat64 into a struct stat and return 0 or -1
3203 with errno set to EOVERFLOW.
3204 * sysdeps/mach/hurd/statfsconv.c (statfs64_conv): Likewise
3205 for struct statfs64 to struct statfs.
3206 * sysdeps/mach/hurd/xstat.c (__xstat): Use converter and call ...
3207 * sysdeps/mach/hurd/xstat64.c (__xstat64): ... this, real work here.
3208 * sysdeps/mach/hurd/fxstat.c (__fxstat): Likewise.
3209 * sysdeps/mach/hurd/fxstat64.c (__fxstat64): Likewise.
3210 * sysdeps/mach/hurd/lxstat.c (__lxstat): Likewise.
3211 * sysdeps/mach/hurd/lxstat64.c (__lxstat64): Likewise.
3212 * sysdeps/mach/hurd/statfs.c (__statfs): Likewise.
3213 * sysdeps/mach/hurd/statfs64.c (__statfs64): Likewise.
3214 * sysdeps/mach/hurd/fstatfs.c (__fstatfs): Likewise.
3215 * sysdeps/mach/hurd/fstatfs64.c (__fstatfs64): Likewise.
3216 * sysdeps/mach/hurd/pwrite64.c (__libc_pwrite64): Do real work here.
3217 * sysdeps/mach/hurd/pwrite.c (__libc_pwrite): Call that.
3218 * sysdeps/mach/hurd/pread64.c (__libc_pread64): Do real work here.
3219 * sysdeps/mach/hurd/pread.c (__libc_pread): Call that.
3220 * sysdeps/mach/hurd/lseek64.c (__libc_lseek64): Do real work here.
3221 * sysdeps/mach/hurd/lseek.c (__libc_lseek): Call that.
3222 * sysdeps/mach/hurd/readdir64.c (__readdir64): Do real work here.
3223 * sysdeps/mach/hurd/readdir.c (__readdir): Call that.
3224 * sysdeps/mach/hurd/readdir64_r.c (__readdir64_r): Do real work here.
3225 * sysdeps/mach/hurd/readdir_r.c (__readdir64_r): Call that.
3226 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry):
3227 Use struct stat64 for io_stat argument.
3228 * sysdeps/mach/hurd/readlink.c (__readlink): Likewise.
3229 * hurd/fopenport.c (seekio): Remove EOVERFLOW check, pass POS directly
3231 * hurd/fd-read.c (_hurd_fd_read): Use loff_t for OFFSET argument.
3232 * hurd/fd-write.c (_hurd_fd_write): Likewise.
3233 * hurd/hurd/fd.h: Update decls.
3234 * sysdeps/mach/hurd/getcwd.c
3235 (_hurd_canonicalize_directory_name_internal): Use ino64_t
3236 and struct dirent64.
3237 * sysdeps/mach/hurd/dl-sysdep.c (open_file): Use struct stat64.
3238 (__xstat): Renamed to __xstat64, use struct stat64 for argument.
3239 (__fxstat): Renamed to __fxstat64, use struct stat64 for argument.
3240 (__lseek): Renamed to __libc_lseek64, use off64_t for argument.
3242 2002-06-08 Roland McGrath <roland@frob.com>
3244 * sysdeps/mach/hurd/dirstream.h (struct __dirstream): Use size_t
3245 instead of unsigned long int for __allocation and __size members.
3247 2002-06-09 Jakub Jelinek <jakub@redhat.com>
3249 * sysdeps/unix/sysv/linux/i386/dl-brk.c: Move...
3250 * sysdeps/unix/sysv/linux/dl-brk.c: ...here.
3251 * sysdeps/unix/sysv/linux/i386/dl-sbrk.c: Move...
3252 * sysdeps/unix/sysv/linux/dl-sbrk.c: ...here.
3254 2002-06-07 Roland McGrath <roland@frob.com>
3256 * sysdeps/mach/hurd/bits/environments.h: File removed.
3258 2002-06-07 Jakub Jelinek <jakub@redhat.com>
3260 * sysdeps/unix/sysv/linux/alpha/sendfile64.c: New file.
3261 * sysdeps/unix/sysv/linux/ia64/sendfile64.c: New file.
3262 * sysdeps/unix/sysv/linux/sparc/sparc64/sendfile64.c: New file.
3263 * sysdeps/unix/sysv/linux/x86_64/sendfile64.c: New file.
3264 * sysdeps/unix/sysv/linux/syscalls.list (sendfile): Remove EXTRA.
3265 (sendfile64): Likewise.
3266 * sysdeps/unix/sysv/linux/alpha/syscalls.list (sendfile): Likewise.
3267 * sysdeps/unix/sysv/linux/ia64/syscalls.list (sendfile): Likewise.
3268 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list (sendfile):
3270 * sysdeps/unix/sysv/linux/x86_64/syscalls.list (sendfile): Likewise.
3272 * include/sys/stat.h (__fxstat64, __lxstat64): Only define if not
3275 2002-06-04 Bruno Haible <bruno@clisp.org>
3277 * sysdeps/cris/stackinfo.h: New file.
3279 * sysdeps/hppa/dl-machine.h (elf_machine_rela): Cast reloc_addr
3280 to an integer type before performing bit operations on it.
3282 2002-06-05 Roland McGrath <roland@frob.com>
3284 * sysdeps/generic/sendfile.c: Include <errno.h>.
3285 * sysdeps/generic/sendfile64.c: Likewise.
3287 * io/Makefile (routines): Add sendfile and sendfile64.
3288 (headers): Add sys/sendfile.h to the list.
3289 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Don't add it here.
3290 * sysdeps/unix/sysv/linux/sys/sendfile.h: Moved to ...
3291 * io/sys/sendfile.h: ... here.
3292 * sysdeps/generic/sendfile.c: New file.
3293 * sysdeps/generic/sendfile64.c: New file.
3295 * sysdeps/unix/sysv/linux/Versions (GLIBC_2.1, GLIBC_2.3):
3296 Move sendfile, sendfile64 to ...
3297 * io/Versions (GLIBC_2.1, GLIBC_2.3): ... here.
3298 * sysdeps/mach/hurd/sendfile.c: New file.
3299 * sysdeps/mach/hurd/sendfile64.c: New file.
3301 * sysdeps/mach/nanosleep.c: New file.
3303 2002-06-04 Roland McGrath <roland@frob.com>
3305 * sysdeps/alpha/elf/configure.in: New file. Check for TLS support.
3306 * sysdeps/alpha/elf/configure: New file (generated).
3308 2002-06-02 Roland McGrath <roland@frob.com>
3310 * include/link.h: Include <tls.h> to make sure USE_TLS is defined.
3312 2002-06-01 Roland McGrath <roland@frob.com>
3314 * sysdeps/mach/hurd/alpha/init-first.c: New file, modified from
3315 i386/init-first.c by Andrew M. Miklic <miklic@attglobal.net>.
3317 2002-05-19 Ulrich Drepper <drepper@redhat.com>
3319 * resolv/resolv.h (struct __res_state): Remove unused nstimes.
3321 * resolv/res_init.c (__res_vinit): Initialize nsmap array.
3322 Remove nstimes setting.
3323 (res_nclose): Check all MAXNS nameservers with non-NULL nsaddrs.
3324 * resolv/res_send.c (res_nsend): Don't close unconditionally if
3325 there is mix of IPv6 and IPv4 nameservers.
3326 Use nsmap array to find free slots and preserve nameserver ordering.
3329 2002-05-30 Ulrich Drepper <drepper@redhat.com>
3331 * sysdeps/unix/sysv/linux/sys/sendfile.h: It is now possible to
3332 use this header with LFS.
3334 * po/sk.po: Update from translation team.
3336 2002-05-28 Andreas Schwab <schwab@suse.de>
3338 * sysdeps/generic/readelflib.c (process_elf_file): Give correct
3339 message when finding object of wrong class.
3341 2002-05-28 Jakub Jelinek <jakub@redhat.com>
3343 * sysdeps/wordsize-32/divdi3.c (__moddi3): Fix pasto.
3344 Patch by <radu@netsoft.ro>.
3346 2002-05-30 Ulrich Drepper <drepper@redhat.com>
3348 * sysdeps/unix/sysv/linux/Makefile [$(subdir)==misc] (sysdep_routines):
3350 * sysdeps/unix/sysv/linux/readahead.c: New file.
3351 * sysdeps/unix/sysv/linux/syscalls.list: Add sendfile64 syscall.
3352 * sysdeps/unix/sysv/linux/Versions: Export readahead and sendfile64.
3353 * sysdeps/unix/sysv/linux/alpha/syscalls.list: Add readahead syscall.
3354 Add sendfile64 alias to sendfile syscall.
3355 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
3356 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
3357 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
3358 * sysdeps/unix/sysv/linux/powerpc/syscalls.list: Add s_readahead
3361 * sysdeps/unix/sysv/linux/i386/sysdep.h: Use __i686.get_pc_thunk.XX
3362 special section for PIC register loading.
3363 * sysdeps/unix/sysv/linux/i386/i686/sysdep.h: Likewise.
3365 * config.h.in: Define HAVE_HIDDEN.
3366 * configure.in: Also define HAVE_HIDDEN if HAVE_PROTECTED is defined.
3368 * elf/elf.h: Correct Alpha TLS relocations according to last spec.
3370 2002-05-28 Roland McGrath <roland@frob.com>
3372 * sysdeps/mach/alpha/setfpucw.c: New file.
3374 2002-05-26 Roland McGrath <roland@frob.com>
3376 * sysdeps/mach/hurd/ioctl.c (__ioctl): Don't use sizeof in _IOTS.
3377 Use integer_t instead of int for IOC_VOID case.
3379 2002-05-27 Alexandre Oliva <aoliva@redhat.com>
3381 * configure.in (DO_STATIC_NSS): Define if --disable-shared.
3383 2002-05-26 Bruno Haible <bruno@clisp.org>
3385 * iconvdata/iso-2022-jp.c (BODY for TO_LOOP): Avoid running off the
3386 end of the ISO-8859-7 from idx table.
3388 2002-05-27 Ulrich Drepper <drepper@redhat.com>
3390 * manual/lang.texi: Fix FLT_EPSILON description [PR libc/3649].
3392 2002-05-24 David S. Miller <davem@redhat.com>
3394 * string/bits/string2.h (memset): Do not try to optimize when
3395 not _STRING_ARCH_unaligned if GCC will do the right thing.
3397 2002-05-21 Isamu Hasegawa <isamu@yamato.ibm.com>
3399 * posix/regex.c: Define `inline' as a macro into nothing for the
3400 compilers which lack the keyword.
3401 * posix/regex.h: (RE_SYNTAX_GNU_AWK): Remove RE_CONTEXT_INVALID_OPS
3402 for the compatibility of gawk.
3403 * posix/regcomp.c: Add fake implementation of isblank() for the
3404 environments which lack the function.
3405 Don't use free_charset() in case of non-i18n envs.
3406 (build_range_exp): Don't use i18n related code in case of non-i18n
3408 (build_collating_symbol): Likewise.
3409 (build_equiv_class): Likewise.
3410 (build_charclass): Likewise.
3411 (re_compile_fastmap_iter): Likewise.
3412 (parse_bracket_exp): Likewise.
3413 (build_word_op): Likewise.
3414 (regfree): Don't use free_charset() in case of non-i18n envs.
3415 * posix/regex_internal.h: Remove COMPLEX_BRACKET from
3416 re_token_type_t in case of non-i18n envs.
3417 Don't define re_charset_t in case of non-i18n envs.
3418 Change the type of wcs of re_string_t from wchar_t to wint_t,
3419 since we store also WEOF.
3420 * posix/regex_internal.c: (re_string_realloc_buffers): Change
3421 the type of wcs of re_string_t from wchar_t to wint_t.
3422 (re_string_reconstruct): Likewise.
3423 (create_ci_newstate): Don't use i18n related code in case of
3425 (create_cd_newstate): Likewise.
3427 2002-05-24 Ulrich Drepper <drepper@redhat.com>
3429 * iconv/loop.c: Fix typo.
3431 2002-05-23 Jakub Jelinek <jakub@redhat.com>
3433 * inet/ether_line.c (ether_line): Fix a typo causing only
3434 lower 4 bits of each ethernet address byte being assigned.
3435 Don't modify what line points to.
3436 * inet/tst-ether_aton.c (main): Add ether_line tests.
3438 2002-05-23 Marcus Brinkmann <marcus@gnu.org>
3440 * manual/filesys.texi: Don't make readlink example leak memory
3441 when readlink fails.
3443 2002-05-20 Ulrich Drepper <drepper@redhat.com>
3445 * iconv/loop.c: Fix condition for defining unaligned loop. Add
3446 some more security checks.
3448 2002-05-17 David S. Miller <davem@redhat.com>
3450 * sysdeps/unix/sysv/linux/sparc/fork.S: Define _internal aliases.
3452 2002-05-16 David S. Miller <davem@redhat.com>
3454 * sysdeps/sparc/sparc32/dl-machine.h (LOAD_PIC_REG): Define.
3455 (elf_machine_dynamic): Use it to force PIC register to be loaded.
3456 (elf_machine_load_address): Likewise.
3457 * sysdeps/sparc/sparc64/dl-machine.h: Mirror sparc32 changes.
3459 * sysdeps/sparc/sparc64/strncmp.S: When second argument pointer
3460 is unaligned, do not forget to fully initialize %g1 magic value.
3462 * sysdeps/unix/sysv/linux/sparc/sys/procfs.h: Fix 64-bit elf
3463 register definitions and provide 32-bit variants of structures
3464 during 64-bit builds.
3466 * soft-fp/op-1.h (_FP_FRAC_CLEAR_OVERP_1): Define.
3467 * soft-fp/op-2.h (_FP_FRAC_CLEAR_OVERP_2): Define.
3468 * soft-fp/op-4.h (_FP_FRAC_CLEAR_OVERP_4): Define.
3469 * soft-fp/op-common.h (_FP_PACK_CANONICAL): After rounding, if
3470 _FP_FRAC_OVERP_X is set, use _FP_FRAC_CLEAR_OVERP_X to clear it.
3471 (_FP_FROM_INT): Perform right shifts on unsigned integer type.
3472 Do not clear implicit one bit here, it must be done post-rounding.
3473 Only pad to the left using left shift if value uses less than the
3474 available fractional bits.
3476 2002-05-20 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
3478 * sysdeps/powerpc/Makefile (sysdeps_routines): Use libgcc-compat
3479 instead of cmpdi2, shdi3, fixdfdi, fixsfdi in csu dir.
3480 (shared-only-routines): Likewise.
3481 * sysdeps/powerpc/libgcc-compat.c: New file.
3482 * sysdeps/wordsize-32/cmpdi2.c: Removed.
3483 * sysdeps/wordsize-32/fixdfdi.c: Removed.
3484 * sysdeps/wordsize-32/fixsfdi.c: Removed.
3485 * sysdeps/wordsize-32/shdi3.c: Removed.
3487 2002-05-16 Bruno Haible <bruno@clisp.org>
3489 * MakeTAGS (libc.pot): Don't sort the output.
3490 * po/header.pot: Update to match xgettext 0.11 output.
3492 2002-05-16 Bruno Haible <bruno@clisp.org>
3494 * MakeTAGS (subdirs): Remove duplicates.
3496 2002-05-19 Ulrich Drepper <drepper@redhat.com>
3498 * sysdeps/unix/sysv/linux/errlist.c: Remove extra weak alias
3499 definiton of _old_sys_nerr. Define _old_sys_errlist as strong
3502 2002-05-19 Andreas Jaeger <aj@suse.de>
3504 * sysdeps/unix/sysv/linux/configure.in: Warn against an
3505 installation in /usr/local.
3507 2002-05-16 Bruno Haible <bruno@clisp.org>
3509 * sysdeps/unix/sysv/aix/bits/ioctl-types.h: Don't use multiline
3510 string as argument of #error.
3512 2002-05-15 Ulrich Drepper <drepper@redhat.com>
3514 * stdlib/canonicalize.c (canonicalize): Rename to __realpath and
3515 don't define static. Remove old __realpath function. TC1 of
3516 POSIX 2001 will allow the second parameter to be NULL.
3517 * stdlib/test-canon.c: Comment out test for NULL as second
3518 parameter of realpath.
3520 * time/offtime.c (__offtime): Set errno if overflow is detected.
3522 * elf/Makefile (rtld-routines): Remove dl-brk and dl-sbrk.
3523 * sysdeps/unix/sysv/linux/Makefile (sysdep-rtld-routines): Add
3526 * sysdeps/sparc/fpu/bits/mathinline.h (fdim): Add __THROW.
3529 2002-05-15 Roland McGrath <roland@frob.com>
3531 * hurd/report-wait.c (_S_msg_report_wait): Use mach_msg_id_t for arg.
3533 2002-05-12 Bruno Haible <bruno@clisp.org>
3535 * iconvdata/testdata/EUC-JISX0213: New file.
3536 * iconvdata/testdata/EUC-JISX0213..UTF8: New file.
3537 * iconvdata/testdata/SHIFT_JISX0213: New file.
3538 * iconvdata/testdata/SHIFT_JISX0213..UTF8: New file.
3539 * iconvdata/testdata/ISO-2022-JP-3: New file.
3540 * iconvdata/testdata/ISO-2022-JP-3..UTF8: New file.
3541 * iconvdata/TESTS: Add EUC-JISX0213, SHIFT_JISX0213, ISO-2022-JP-3.
3542 * iconvdata/run-iconv-test.sh: Skip the charmap test if the charmap
3543 contains comments indicating precomposed characters.
3545 2002-04-21 Bruno Haible <bruno@clisp.org>
3547 * iconvdata/iso-2022-jp-3.c: New file.
3548 * iconvdata/gconv-modules (ISO-2022-JP-3): New module.
3549 * iconvdata/Makefile (modules): Add ISO-2022-JP-3.
3550 (LDFLAGS-ISO-2022-JP-3.so): New variable.
3551 (ISO-2022-JP-3.so): Depend on libJIS.so and libJISX0213.so.
3552 (distribute): Add iso-2022-jp-3.c.
3554 2002-05-12 Bruno Haible <bruno@clisp.org>
3556 * iconvdata/tst-table-to.c (main): Restore handling of
3557 transliterations, broken by last patch.
3559 2002-05-12 Bruno Haible <bruno@clisp.org>
3561 * iconvdata/TESTS: Add IBM922, IBM1124, IBM1129.
3563 2002-05-12 Bruno Haible <bruno@clisp.org>
3565 * iconvdata/euc-jisx0213.c (BODY for FROM_LOOP): Don't advance inptr
3566 when there is not enough room in the output buffer.
3567 * iconvdata/shift_jisx0213.c (BODY for FROM_LOOP): Likewise.
3569 2002-04-20 Bruno Haible <bruno@clisp.org>
3571 * iconv/skeleton.c ({FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO}): New
3573 (RESET_INPUT_BUFFER): Use them instead of {MIN,MAX}_NEEDED_{FROM,TO}.
3574 Also make this macro work if FROM_DIRECTION evaluates to 0.
3575 (gconv_init): Use the new macros instead of {MIN,MAX}_NEEDED_{FROM,TO}.
3576 (FUNCTION_NAME): Likewise, in the handling of unaligned accesses and
3577 of consume_incomplete.
3578 * iconvdata/cp1255.c: Define {FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO}
3579 instead of {MIN,MAX}_NEEDED_{FROM,TO}. Set FROM_LOOP_MAX_NEEDED_TO to
3581 * iconvdata/cp1258.c: Likewise.
3582 * iconvdata/ibm930.c: Define {FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO}
3583 instead of {MIN,MAX}_NEEDED_{FROM,TO}. Set TO_LOOP_MAX_NEEDED_TO to 3,
3585 * iconvdata/ibm933.c: Likewise.
3586 * iconvdata/ibm935.c: Likewise.
3587 * iconvdata/ibm937.c: Likewise.
3588 * iconvdata/ibm939.c: Likewise.
3589 * iconvdata/iso-2022-cn.c: Define
3590 {FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO} instead of
3591 {MIN,MAX}_NEEDED_{FROM,TO}. Set TO_LOOP_MAX_NEEDED_TO to 6, not 4.
3592 * iconvdata/iso-2022-cn-ext.c: Likewise.
3593 * iconvdata/iso-2022-jp.c: Define
3594 {FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO} instead of
3595 {MIN,MAX}_NEEDED_{FROM,TO}.
3596 * iconvdata/tcvn5712-1.c: Define
3597 {FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO} instead of
3598 {MIN,MAX}_NEEDED_{FROM,TO}. Set FROM_LOOP_MAX_NEEDED_FROM to 1, not 2.
3599 * iconvdata/euc-jisx0213.c: Define
3600 {FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO} instead of
3601 {MIN,MAX}_NEEDED_{FROM,TO}. Set FROM_LOOP_MAX_NEEDED_TO to 8, not 4.
3602 * iconvdata/shift_jisx0213.c: Likewise.
3604 2002-05-14 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
3606 * sysdeps/powerpc/Makefile (sysdeps_routines): Add divdi3, cmpdi2,
3607 shdi3, fixdfdi, fixsfdi in csu dir.
3608 (shared-only-routines): Likewise.
3609 * sysdeps/wordsize-32/cmpdi2.c: New file.
3610 * sysdeps/wordsize-32/shdi3.c: New file.
3611 * sysdeps/wordsize-32/fixdfdi.c: New file.
3612 * sysdeps/wordsize-32/fixsfdi.c: New file.
3613 * sysdeps/powerpc/Versions (__divdi3, __moddi3, __udivdi3, __umoddi3,
3614 __ashldi3, __ashrdi3, __lshrdi3, __cmpdi2, __ucmpdi2, __fixdfdi,
3615 __fixsfdi, __fixunsdfdi, __fixunssfdi): Export at GLIBC_2.0.
3617 * sysdeps/unix/sysv/linux/semctl.c (__old_semctl, __new_semctl):
3618 Only use va_arg if the argument will be used [PR libc/3259].
3620 2002-05-06 Michael A. Schmidt <mmaass@us.ibm.com>
3622 * catgets/catgets.c (catopen): Free buffer if internal catalog
3625 2002-05-14 Ulrich Drepper <drepper@redhat.com>
3627 * debug/xtrace.sh: Make more robust. For realtime tracking use
3628 non-buffering methods.
3629 * debug/pcprofiledump.c: Implement -u option.
3630 Patch by Roger Luethi <rl@hellgate.ch>.
3632 2002-05-11 Jakub Jelinek <jakub@redhat.com>
3634 * include/netinet/in.h (bindresvport_internal): Add prototype.
3635 * include/rpc/auth.h (authunix_create_internal,
3636 authunix_create_default_internal, authnone_create_internal,
3637 authdes_pk_create_internal): Add prototypes.
3638 * include/rpc/clnt.h (clnt_create_internal, clnttcp_create_internal,
3639 clntudp_create_internal, clntudp_bufcreate_internal,
3640 clntunix_create_internal): Add prototypes.
3641 * include/rpc/svc.h (svc_sendreply_internal, svcerr_decode_internal,
3642 svc_getreq_internal, svc_getreq_common_internal,
3643 svc_getreqset_internal, svc_getreq_poll_internal,
3644 svc_register_internal, svc_unregister_internal,
3645 svcudp_create_internal, svcudp_bufcreate_internal): Add prototypes.
3646 * include/rpc/svc_auth.h (_authenticate_internal): Add prototype.
3647 * include/sys/socket.h (__sendto, __recvfrom, __sendmsg, __recvmsg,
3648 __setsockopt, __getsockname, __bind, __listen): Add prototypes.
3649 * inet/rexec.c (rexec_af): Use __listen and __getsockname.
3650 * inet/rcmd.c (rcmd_af): Use __listen.
3651 (rresvport_af): Use __bind.
3652 * sunrpc/clnt_udp.c: Use INTUSE calls to bindresvport,
3653 authunix_create, authunix_create_default, authnone_create,
3654 authdes_pk_create, clnt_create, clnttcp_create, clntudp_create,
3655 clntudp_bufcreate, clntunix_create svc_sendreply, svcerr_decode,
3656 svc_getreq, svc_getreq_common, svc_getreqset, svc_getreq_poll,
3657 svc_register, svc_unregister, svcudp_create, svcudp_bufcreate,
3658 _authenticate, add INTDEF after such function definitions.
3659 Use __listen, __bind, __sendto, __recvfrom, __sendmsg, __recvmsg,
3660 __setsockopt, __getsockname instead of non-__ variants.
3661 * sunrpc/pmap_rmt.c: Likewise.
3662 * sunrpc/rtime.c: Likewise.
3663 * sunrpc/svc_udp.c: Likewise.
3664 * sunrpc/clnt_unix.c: Likewise.
3665 * sunrpc/svc_unix.c: Likewise.
3666 * sunrpc/bindrsvprt.c: Likewise.
3667 * sunrpc/svc_tcp.c: Likewise.
3668 * sunrpc/auth_none.c: Likewise.
3669 * sunrpc/clnt_raw.c: Likewise.
3670 * sunrpc/clnt_tcp.c: Likewise.
3671 * sunrpc/auth_unix.c: Likewise.
3672 * sunrpc/key_call.c: Likewise.
3673 * sunrpc/clnt_gen.c: Likewise.
3674 * sunrpc/pm_getmaps.c: Likewise.
3675 * sunrpc/clnt_simp.c: Likewise.
3676 * sunrpc/pmap_clnt.c: Likewise.
3677 * sunrpc/svc_run.c: Likewise.
3678 * sunrpc/svc.c: Likewise.
3679 * sunrpc/svc_simple.c: Likewise.
3680 * sunrpc/pm_getport.c: Likewise.
3681 * sunrpc/auth_des.c: Likewise.
3682 * sunrpc/svc_auth.c: Likewise.
3683 * sysdeps/generic/unwind-dw2-fde.c (__register_frame_info_bases,
3684 __register_frame_info_table_bases, __deregister_frame_info_bases):
3686 (__register_frame_info_bases_internal,
3687 __register_frame_info_table_bases_internal,
3688 __deregister_frame_info_bases_internal): Add prototypes.
3689 (__register_frame_info, __register_frame): Use INTUSE in call to
3690 __register_frame_info_bases.
3691 (__register_frame_info_table): Similarly.
3692 (__deregister_frame_info, __deregister_frame): Similarly.
3693 * sysdeps/generic/sendto.c (__sendto): Renamed from sendto, add
3694 sendto as weak alias.
3695 * sysdeps/mach/hurd/sendto.c: Likewise.
3696 * sysdeps/generic/recvfrom.c (__recvfrom): Renamed from recvfrom, add
3697 recvfrom as weak alias.
3698 * sysdeps/mach/hurd/recvfrom.c: Likewise.
3699 * sysdeps/unix/sysv/aix/recvfrom.c: Likewise.
3700 * sysdeps/generic/recvmsg.c (__recvmsg): Renamed from recvmsg, add
3701 recvmsg as weak alias.
3702 * sysdeps/unix/sysv/aix/recvmsg.c: Likewise.
3703 * sysdeps/generic/sendmsg.c (__sendmsg): Renamed from sendmsg, add
3704 sendmsg as weak alias.
3705 * sysdeps/unix/sysv/aix/sendmsg.c: Likewise.
3706 * sysdeps/generic/setsockopt.c (__setsockopt): Renamed from
3707 setsockopt, add setsockopt as weak alias.
3708 * sysdeps/mach/hurd/setsockopt.c: Likewise.
3709 * sysdeps/generic/bind.c (__bind): Renamed from bind, add bind as
3711 * sysdeps/mach/hurd/bind.c: Likewise.
3712 * sysdeps/generic/listen.c (__listen): Renamed from listen, add listen
3714 * sysdeps/mach/hurd/listen.c: Likewise.
3715 * sysdeps/generic/getsockname.c (__getsockname): Renamed from
3716 getsockname, add getsockname as weak alias.
3717 * sysdeps/mach/hurd/getsockname.c: Likewise.
3718 * sysdeps/unix/sysv/aix/getsockname.c: Likewise.
3719 * sysdeps/mach/hurd/recvmsg.c (__recvmsg): Add weak alias.
3720 * sysdeps/mach/hurd/sendmsg.c (__sendmsg): Add weak alias.
3721 * sysdeps/unix/inet/syscalls.list (__bind, __listen, __recvmsg,
3722 __recvfrom, __sendmsg, __sendto, __setsockopt): Add aliases.
3723 * sysdeps/unix/sysv/linux/alpha/syscalls.list (__recvmsg, __sendmsg):
3725 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
3726 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
3727 * sysdeps/unix/sysv/linux/hppa/syscalls.list: Likewise.
3728 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
3729 * sysdeps/unix/sysv/linux/recvfrom.S (__recvfrom): Add weak alias.
3730 * sysdeps/unix/sysv/linux/recvmsg.S (__recvmsg): Likewise.
3731 * sysdeps/unix/sysv/linux/sendmsg.S (__sendmsg): Likewise.
3732 * sysdeps/unix/sysv/linux/sendto.S (__sendto): Likewise.
3733 * sysdeps/unix/sysv/linux/setsockopt.S (__setsockopt): Likewise.
3734 * sysdeps/unix/sysv/linux/bind.S (__bind): Likewise.
3735 * sysdeps/unix/sysv/linux/listen.S (__listen): Likewise.
3736 * sysdeps/unix/sysv/linux/getsockname.S (__getsockname): Likewise.
3738 2002-05-10 Jakub Jelinek <jakub@redhat.com>
3740 * locale/programs/localedef.h (show_archive_content): Add verbose
3742 * locale/programs/localedef.c (main): Adjust caller.
3743 * locale/programs/locarchive.c (struct nameent, struct dataent): New.
3744 (nameentcmp, dataentcmp): New functions.
3746 (show_archive_content): Print verbose listing with --list-archive -v.
3748 2002-05-14 Ulrich Drepper <drepper@redhat.com>
3750 * locale/programs/locarchive.c (open_archive): Take extra argument
3751 readonly. If true open file with O_RDONLY and don't create the
3752 archive if it doesn't exist.
3754 (close_archive): Don't do anything if fd element is -1.
3755 * locale/programs/localedef.h (open_archive): Adjust prototype.
3756 * locale/programs/locfile.c (write_all_categories): Adjust open_archive
3759 * malloc/malloc.c (__posix_memalign): Correct check for size of
3760 alignment value [PR libc/3444].
3762 * include/stdio.h: Remove references to old stdio implementation.
3764 * libio/Makefile (bug-ungetwc2-ENV): Define.
3766 2002-05-13 Roland McGrath <roland@frob.com>
3768 * iconv/gconv_charset.h (upstr): Add inline keyword, quiets warning.
3770 * hurd/hurdinit.c (_hurd_init): Use internal name _hurd_new_proc_init.
3772 2002-05-13 Marcus Brinkmann <marcus@gnu.org>
3774 * hurd/hurdchdir.c (_hurd_change_directory_port_from_name):
3775 Allocate three, not two, more than LEN when appending '/.'.
3776 * sysdeps/mach/hurd/chroot.c (chroot): Likewise. Don't check
3777 if NAME ends with '/.' if it is shorter than 2 chars.
3779 2002-05-12 Roland McGrath <roland@frob.com>
3781 * mach/Makefile ($(mach-syscalls:%=$(objpfx)%.S)): Make the generated
3782 files #include <sysdep.h> instead of <mach/machine/syscall_sw.h>.
3784 * hurd/hurdexec.c (_hurd_exec): Reauthenticate ports/dtable used in
3785 file_exec to effect svuid=euid, svgid=egid if that is not a no-op.
3787 2002-05-10 Jakub Jelinek <jakub@redhat.com>
3789 * sysdeps/ia64/Makefile: Remove extra endif.
3790 * sysdeps/ia64/ia64libgcc.S (__divsf3): Fix typo in symbol version.
3792 2002-05-10 Andreas Schwab <schwab@suse.de>
3794 * sysdeps/powerpc/fpu/w_sqrt.c: Add sqrtl alias.
3796 2002-05-09 Andreas Jaeger <aj@suse.de>
3798 * sysdeps/unix/sysv/linux/x86_64/sys/io.h: New.
3799 * sysdeps/unix/sysv/linux/x86_64/Dist: Add it.
3800 * sysdeps/unix/sysv/linux/x86_64/Makefile (sysdep_headers): Add it.
3802 * sysdeps/unix/sysv/linux/ia64/glob.c: Move to ...
3803 * sysdeps/wordsize-64/glob.c: ...here.
3804 * sysdeps/unix/sysv/linux/x86_64/glob.c: Remove.
3805 * sysdeps/unix/sysv/linux/s390/s390-64/glob.c: Remove.
3806 * sysdeps/unix/sysv/linux/sparc/sparc64/glob.c: Remove.
3808 2002-05-08 Roland McGrath <roland@frob.com>
3810 * hurd/hurdfchdir.c (_hurd_change_directory_port_from_fd): Use
3811 O_NOTRANS flag in "." lookup.
3813 2002-05-05 Ulrich Drepper <drepper@redhat.com>
3815 * malloc/mtrace.c: Comment out use of _mtrace_file and _mtrace_len.
3817 2002-05-04 Ulrich Drepper <drepper@redhat.com>
3819 * locale/duplocale.c (__duplocale): Update special members only
3820 when allocation succeeded.
3822 2002-05-03 Roland McGrath <roland@frob.com>
3824 * shlib-versions (.*-.*-gnu-gnu.*): Remove USE_IN_LIBIO conditionals;
3825 we can only build libc.so.0.3(GLIBC_2.2.6) now.
3827 2002-05-02 Jakub Jelinek <jakub@redhat.com>
3829 * sysdeps/ia64/Makefile: Add ia64libgcc in csu subdir.
3830 * sysdeps/ia64/Versions (__divtf3, __divdf3, __divsf3, __divdi3,
3831 __moddi3, __udivdi3, __umoddi3, __multi3): Export at GLIBC_2.0.
3832 * sysdeps/ia64/ia64libgcc.S: New file.
3834 2002-05-02 Ulrich Drepper <drepper@redhat.com>
3836 * sysdeps/generic/dl-tls.c (oom): Implement using _dl_fatal_printf.
3838 * malloc/memusage.c: Distinguish anonymous mmap.
3840 2002-05-01 Roland McGrath <roland@frob.com>
3842 * sysdeps/mach/hurd/close.c: #undef __close before function defn,
3843 and use INTDEF on it.
3844 * sysdeps/mach/hurd/fcntl.c: Use INTDEF2.
3846 * sysdeps/mach/hurd/dl-sysdep.c (errno): New variable.
3848 * sysdeps/mach/hurd/alpha/static-start.S: New file (unfinished).
3850 2002-05-01 Ulrich Drepper <drepper@redhat.com>
3852 * malloc/memusage.c: Add support for tracking mmap & friends.
3853 * malloc/memusage.sh: Implement -m/--mmap option.
3855 2002-04-30 Jakub Jelinek <jakub@redhat.com>
3857 * locale/programs/locarchive.c (create_archive): Add archivefname
3858 argument, create fname from it.
3859 (enlarge_archive): Honour output_prefix.
3860 (open_archive): Likewise.
3862 2002-04-30 Jakub Jelinek <jakub@redhat.com>
3864 * locale/programs/locarchive.c (add_locales_to_archive): Don't nest
3865 too many stpcpy macros.
3867 2002-04-26 Bruno Haible <bruno@clisp.org>
3869 * locale/programs/ld-collate.c (collate_read): Cast first argument
3872 2002-04-26 Bruno Haible <bruno@clisp.org>
3874 * include/libintl.h (__ngettext, __dngettext, __dcngettext,
3875 __dcngettext_internal): New declarations.
3876 (__gettext, __dgettext, __dcgettext, __dcgettext_internal): Add
3877 attribute declarations.
3879 2002-04-30 Roland McGrath <roland@frob.com>
3881 Removed old GNU stdio implementation; GNU libio is now the only option.
3882 * configure.in: Removed --enable-libio option and @stdio@ subst var.
3883 Define USE_IN_LIBIO unconditionally.
3884 * configure: Regenerated.
3885 * Makeconfig (stdio): Set to libio by default.
3886 * config.make.in (stdio): Variable removed.
3887 * sysdeps/unix/sysv/linux/configure.in: Don't set $stdio.
3888 * sysdeps/unix/sysv/linux/configure: Regenerated.
3889 * sysdeps/mach/hurd/configure.in: Don't test $stdio.
3890 * sysdeps/mach/hurd/configure: Regenerated.
3891 * stdio/.cvsignore: File removed.
3892 * stdio/Makefile: File removed.
3893 * stdio/Versions: File removed.
3894 * stdio/__fbufsize.c: File removed.
3895 * stdio/__flbf.c: File removed.
3896 * stdio/__fpending.c: File removed.
3897 * stdio/__fpurge.c: File removed.
3898 * stdio/__freadable.c: File removed.
3899 * stdio/__freading.c: File removed.
3900 * stdio/__fsetlocking.c: File removed.
3901 * stdio/__fwritable.c: File removed.
3902 * stdio/__fwriting.c: File removed.
3903 * stdio/clearerr.c: File removed.
3904 * stdio/fclose.c: File removed.
3905 * stdio/fcloseall.c: File removed.
3906 * stdio/feof.c: File removed.
3907 * stdio/ferror.c: File removed.
3908 * stdio/fflush.c: File removed.
3909 * stdio/fgetc.c: File removed.
3910 * stdio/fgetpos.c: File removed.
3911 * stdio/fgets.c: File removed.
3912 * stdio/fileno.c: File removed.
3913 * stdio/fmemopen.c: File removed.
3914 * stdio/fopen.c: File removed.
3915 * stdio/fopncook.c: File removed.
3916 * stdio/fputc.c: File removed.
3917 * stdio/fputs.c: File removed.
3918 * stdio/fread.c: File removed.
3919 * stdio/freopen.c: File removed.
3920 * stdio/fseek.c: File removed.
3921 * stdio/fsetpos.c: File removed.
3922 * stdio/ftell.c: File removed.
3923 * stdio/fwrite.c: File removed.
3924 * stdio/getc.c: File removed.
3925 * stdio/getchar.c: File removed.
3926 * stdio/getdelim.c: File removed.
3927 * stdio/gets.c: File removed.
3928 * stdio/glue.c: File removed.
3929 * stdio/internals.c: File removed.
3930 * stdio/linewrap.c: File removed.
3931 * stdio/linewrap.h: File removed.
3932 * stdio/memstream.c: File removed.
3933 * stdio/newstream.c: File removed.
3934 * stdio/obstream.c: File removed.
3935 * stdio/putc.c: File removed.
3936 * stdio/putchar.c: File removed.
3937 * stdio/puts.c: File removed.
3938 * stdio/rewind.c: File removed.
3939 * stdio/setbuf.c: File removed.
3940 * stdio/setbuffer.c: File removed.
3941 * stdio/setlinebuf.c: File removed.
3942 * stdio/setvbuf.c: File removed.
3943 * stdio/stdio.h: File removed.
3944 * stdio/ungetc.c: File removed.
3945 * stdio/vasprintf.c: File removed.
3946 * stdio/vscanf.c: File removed.
3947 * stdio/vsnprintf.c: File removed.
3948 * stdio/vsprintf.c: File removed.
3949 * stdio/vsscanf.c: File removed.
3950 * sysdeps/generic/defs.c: File removed.
3951 * sysdeps/generic/fdopen.c: File removed.
3952 * sysdeps/generic/pipestream.c: File removed.
3953 * sysdeps/generic/stdio_init.c: File removed.
3954 * sysdeps/generic/sysd-stdio.c: File removed.
3955 * sysdeps/generic/vdprintf.c: File removed.
3956 * sysdeps/mach/hurd/defs.c: File removed.
3957 * sysdeps/mach/hurd/fdopen.c: File removed.
3958 * sysdeps/mach/hurd/pipestream.c: File removed.
3959 * sysdeps/mach/hurd/stdio_init.c: File removed.
3960 * sysdeps/mach/hurd/sysd-stdio.c: File removed.
3961 * sysdeps/mach/hurd/vdprintf.c: File removed.
3962 * sysdeps/posix/defs.c: File removed.
3963 * sysdeps/posix/fdopen.c: File removed.
3964 * sysdeps/posix/pipestream.c: File removed.
3965 * sysdeps/posix/stdio_init.c: File removed.
3966 * sysdeps/posix/vdprintf.c: File removed.
3967 * sysdeps/unix/pipestream.c: File removed.
3968 * sysdeps/unix/sysv/sysd-stdio.c: File removed.
3969 * sysdeps/unix/sysv/sco3.2.4/pipestream.c: File removed.
3970 * sysdeps/unix/sysv/sysv4/pipestream.c: File removed.
3972 2002-04-29 Roland McGrath <roland@frob.com>
3974 * include/libc-symbols.h (link_warning): Use `unused' attribute.
3976 2002-04-28 Ulrich Drepper <drepper@redhat.com>
3978 * sysdeps/generic/tls.h: Describe what must be defined.
3980 * sysdeps/generic/glob.c (glob): Don't pass GLOB_NOMAGIC flag to
3981 glob_in_dir [PR libc/3385].
3982 * posix/globtest.sh: Add test case.
3984 * intl/loadmsgcat.c [!_LIBC] (_nl_init_domain_conv): Don't add
3987 2002-04-27 Ulrich Drepper <drepper@redhat.com>
3989 * sysdeps/unix/sysv/linux/ia64/fxstat.c: Fix a few issues with the
3990 _internal symbol handling.
3991 * sysdeps/unix/sysv/linux/ia64/lxstat.c: Likewise.
3993 2002-04-26 Ulrich Drepper <drepper@redhat.com>
3995 * sysdeps/ia64/fpu/s_finite.S: Define _internal aliases.
3996 * sysdeps/unix/sysv/linux/ia64/fork.S: Likewise.
3998 2002-04-26 Isamu Hasegawa <isamu@yamato.ibm.com>
4000 * posix/regcomp.c (re_compile_fastmap_iter): Fix fastmap in case of
4001 not _LIBC and RE_ENABLE_I18N.
4002 (build_range_exp): Implement for not _LIBC.
4003 (build_collating_symbol): Likewise.
4004 (parse_bracket_exp): Unify redundant error handlings.
4005 Don't erase mbcset for non matching list in multibyte envs.
4006 (build_word_op): Add '_' to matching list for \w operator.
4007 * posix/regex_internal.c (re_string_construct): Invoke
4008 build_upper_buffer in case of not RE_ENABLE_I18N.
4009 (re_string_reconstruct): Don't touch cur_state in case of not
4011 * posix/regex_internal.h (attribute_hidden): New macro in case of
4013 (re_charset_t): Define range_starts/ends in case of not _LIBC.
4014 * posix/regexec.c (sift_states_iter_mb): Hide in case of not
4016 (transit_state_mb): Likewise.
4017 (check_node_accept_bytes): Implement the code evaluating range
4018 expression in case of not _LIBC.
4019 (find_collation_sequence_value): Hide in case of not _LIBC.
4021 2002-04-26 Jakub Jelinek <jakub@redhat.com>
4023 * sysdeps/unix/sysv/linux/sparc/sparc32/semctl.c: Copied from
4025 (__old_semctl, __new_semctl): Only use va_arg if the argument will
4028 2002-04-26 Ulrich Drepper <drepper@redhat.com>
4030 * sysdeps/ia64/fpu/s_isinf.S: Fix definition of _internal names.
4032 * sysdeps/ia64/strncpy.S: Fix recovery code.
4033 Patch by David Mosberger <davidm@hpl.hp.com>.
4035 2002-04-24 Ulrich Drepper <drepper@redhat.com>
4037 * sysdeps/unix/sysv/linux/ia64/Versions [libc]: Add getunwind for
4040 2002-04-14 Bruno Haible <bruno@clisp.org>
4042 * posix/regex.c (re_max_failures): Add back symbol for binary
4045 2002-04-22 Isamu Hasegawa <isamu@yamato.ibm.com>
4047 * posix/regcomp.c (re_compile_internal): Adapt it to new interface
4048 of buffer building functions.
4049 * posix/regex_internal.c (re_string_allocate): New function.
4050 (re_string_realloc_buffers): New function.
4051 (re_string_skip_chars): New function.
4052 (re_string_reconstruct): New function.
4053 (re_string_construct): Adapt it to new interface of buffer building
4055 (re_string_construct_common): Likewise.
4056 (build_wcs_buffer): Likewise.
4057 (build_wcs_upper_buffer): Likewise.
4058 (build_upper_buffer): Likewise.
4059 (re_string_translate_buffer): Likewise.
4060 (re_string_context_at): Adapt it to variable length buffers.
4061 * posix/regex_internal.h (re_string_t): Add new fields to handle
4062 variable length buffers.
4063 (re_match_context_t): Likewise.
4064 * posix/regexec.c (re_search_internal): Adapt it to new interface
4065 of re_string_t and re_match_context_t.
4066 (acquire_init_state_context): Likewise.
4067 (check_matching): Likewise.
4068 (check_halt_state_context): Likewise.
4069 (proceed_next_node): Likewise.
4070 (set_regs): Likewise.
4071 (sift_states_backward): Likewise.
4072 (clean_state_log_if_need): Likewise.
4073 (sift_states_iter_mb): Likewise.
4074 (sift_states_iter_bkref): Likewise.
4075 (add_epsilon_backreference): Likewise.
4076 (transit_state): Likewise.
4077 (transit_state_sb): Likewise.
4078 (transit_state_mb): Likewise.
4079 (transit_state_bkref): Likewise.
4080 (transit_state_bkref_loop): Likewise.
4081 (check_node_accept): Likewise.
4082 (match_ctx_init): Likewise.
4083 (extend_buffers): New function.
4085 2002-04-21 Bruno Haible <bruno@clisp.org>
4087 * iconvdata/tst-table.sh: For the second check, use the truncated
4088 GB18030 charmap table, like for the first check.
4090 2002-04-24 Ulrich Drepper <drepper@redhat.com>
4092 * elf/dl-load.c (open_verify): Correct __lseek parameters.
4093 Patch by Simon Hildrew <simon@hildrew.net> [PR libc/3354].
4095 2002-04-23 H.J. Lu <hjl@gnu.org>
4097 * include/math.h (isfinite): Fix a typo.
4099 2002-04-24 Ulrich Drepper <drepper@redhat.com>
4101 * libio/bug-ungetwc2.c (test_locale): Use the de_DE.UTF-8 locale
4102 which is created by the test suite.
4104 2002-04-20 Bruno Haible <bruno@clisp.org>
4106 * iconvdata/iso-2002-kr.c (MAX_NEEDED_FROM): Set to 4.
4107 (BODY for FROM_LOOP): Fix comparisons between inptr and inend.
4109 2002-04-20 Bruno Haible <bruno@clisp.org>
4111 * iconvdata/johab.c (BODY for FROM_LOOP): Change type of i, m, f,
4112 to avoid gcc warning.
4114 2002-04-20 Bruno Haible <bruno@clisp.org>
4116 * iconvdata/iso-2022-jp.c (EMIT_SHIFT_TO_INIT): Fix modification mask
4117 of data->__statep->__count.
4119 2002-04-20 Bruno Haible <bruno@clisp.org>
4121 * iconvdata/euc-jisx0213.c (BODY for TO_LOOP): Really ignore Unicode
4123 * iconvdata/shift_jisx0213.c (BODY for TO_LOOP): Likewise.
4125 2002-04-24 Roland McGrath <roland@frob.com>
4127 * sysdeps/mach/alpha/syscall.S: Don't use .frame, ENTRY will have it;
4128 use END macro instead of our own .end directive.
4129 Use `callsys' insn mnemonic instead of `call_pal'.
4131 * sysdeps/mach/alpha/sysdep.h (ENTRY): New macro.
4133 * sysdeps/alpha/dl-machine.h (ELF_MACHINE_USER_ADDRESS_MASK): New
4134 macro; we need this for Hurd.
4136 Log entry was missing for 2002/03/24 commit of rev 1.8,
4137 goes with 2002-03-17 changes.
4138 * sysdeps/mach/hurd/i386/Makefile [$(subdir) = misc]
4139 (sysdep_routines): Append ioperm here.
4140 (sysdep_headers): Append sys/io.h here.
4142 2002-04-23 Roland McGrath <roland@frob.com>
4144 * sysdeps/mach/hurd/send.c: int -> size_t for WROTE.
4145 * sysdeps/mach/hurd/sendto.c: Likewise.
4146 * hurd/hurdioctl.c (siocgifconf): int -> size_t for DATA_LEN.
4147 * sysdeps/mach/hurd/wait4.c (__wait4): natural_t -> int for SIGCODE.
4148 * sysdeps/mach/hurd/getpriority.c: unsigned int -> size_t for PISIZE.
4150 2002-04-22 Roland McGrath <roland@frob.com>
4152 * sysdeps/mach/hurd/i386/ioperm.c (ioperm): Translate MIG_BAD_ID
4153 failure from i386_io_perm_* RPCs to ENOSYS.
4155 2002-04-22 Andreas Jaeger <aj@suse.de>
4157 * sysdeps/unix/sysv/linux/x86_64/ldconfig.h: New file.
4159 * sysdeps/unix/sysv/linux/x86_64/dl-cache.h: New file.
4161 * sysdeps/unix/sysv/linux/x86_64/vfork.S: Use %rdi as temp
4162 register instead of destroying %rbx.
4164 2002-04-21 Ulrich Drepper <drepper@redhat.com>
4166 * string/string.h: Declare strerror_r also for XPG6.
4168 2002-04-19 Roland McGrath <roland@frob.com>
4170 * sysdeps/mach/hurd/tmpfile.c: Create a file descriptor and use fdopen.
4172 2002-04-20 Ulrich Drepper <drepper@redhat.com>
4174 * Makefile: Add handling of xtests and xcheck targets.
4175 * MakeTAGS: Likewise.
4176 * Makeconfig: Likewise.
4177 * Makerules: Likewise.
4179 * manual/Makefile: Likewise.
4180 * sunrpc/Makefile (xtests): Add thrsvc if thread library available.
4181 * sunrpc/thrsvc.c: New file. By Zack Weinberg.
4183 2002-04-11 Zack Weinberg <zack@codesourcery.com>
4185 * include/rpc/rpc.h (struct rpc_thread_variables): Remove
4187 * sunrpc/auth_none.c: Include bits/libc-lock.h.
4188 Delete #ifdef _RPC_THREAD_SAFE_ block.
4189 (authnone_private): Make a struct, not a pointer to struct.
4190 (authnone_private_guard): New once-control variable.
4191 (authnone_create_once): New function, split out of
4192 authnone_create. No need to allocate memory.
4193 (authnone_create): Just call authnone_create_once via
4194 __libc_once, then return &authnone_private->no_client.
4195 (authnone_marshal): Access private data via CLIENT argument,
4196 not authnone_private pointer.
4197 Fix typo (MAX_MARSHEL_SIZE -> MAX_MARSHAL_SIZE).
4198 * sunrpc/rpc_thread.c (__rpc_thread_destroy): No need to free
4201 2002-04-12 H.J. Lu <hjl@gnu.org>
4203 * sunrpc/clnt_raw.c (clntraw_create): Properly set xdrs and client.
4205 2002-04-18 Bruno Haible <bruno@clisp.org>
4207 * iconvdata/euc-jisx0213.c (EMIT_SHIFT_TO_INIT, BODY for
4208 FROM_DIRECTION): Make the FROM direction stateless.
4209 * iconvdata/shift_jisx0213.c (EMIT_SHIFT_TO_INIT, BODY for
4210 FROM_DIRECTION): Likewise.
4212 2002-04-15 Bruno Haible <bruno@clisp.org>
4214 * iconvdata/JISX0213.TXT: New file.
4215 * iconvdata/jisx0213.h: New file.
4216 * iconvdata/jisx0213.c: New file.
4217 * iconvdata/euc-jisx0213.c: New file.
4218 * iconvdata/shift_jisx0213.c: New file.
4219 * iconvdata/gconv-modules (EUC-JISX0213, SHIFT_JISX0213): New modules.
4220 * iconvdata/EUC-JISX0213.precomposed: New file.
4221 * iconvdata/SHIFT_JISX0213.precomposed: New file.
4222 * iconvdata/SHIFT_JISX0213.irreversible: New file.
4223 * iconvdata/tst-table-to.c (main): Make it work for encodings for
4224 which the "to" direction is stateful.
4225 * iconvdata/tst-tables.sh: Add EUC-JISX0213, SHIFT_JISX0213.
4226 * iconvdata/Makefile (modules): Add libJISX0213, EUC-JISX0213,
4228 (libJISX0213-routines): New variable.
4229 (LDFLAGS-EUC-JISX0213.so, LDFLAGS-SHIFT_JISX0213.so): New variables.
4230 (EUC-JISX0213.so, SHIFT_JISX0213.so): Depend on libJISX0213.so.
4231 (LDFLAGS-libJISX0213.so): New variable.
4232 (distribute): Add JISX0213.TXT, EUC-JISX0213.precomposed,
4233 SHIFT_JISX0213.precomposed, SHIFT_JISX0213.irreversible,
4234 jisx0213.c, jisx0213.h, euc-jisx0213.c, shift_jisx0213.c.
4236 2002-04-15 Bruno Haible <bruno@clisp.org>
4238 * iconvdata/big5hkscs.c (big5hkscs_to_ucs): Change element type to
4239 uint32_t. Update to Unicode 3.2.
4240 (from_ucs4, from_ucs4_idx): Update to Unicode 3.2.
4241 (BODY for TO_LOOP): Handle the ASCII range specially.
4242 * iconvdata/BIG5HKSCS.irreversible: Add one more entry.
4243 * iconvdata/testdata/BIG5HKSCS: Remove a character.
4244 * iconvdata/testdata/BIG5HKSCS..UTF-8: Regenerated.
4246 2002-04-15 Bruno Haible <bruno@clisp.org>
4248 * iconvdata/gb18030.c (__twobyte_to_ucs, __fourbyte_to_ucs,
4249 __ucs_to_gb18030_tab1, __ucs_to_gb18030_tab2): Update to Unicode 3.2.
4251 2002-04-15 Bruno Haible <bruno@clisp.org>
4253 * iconvdata/cns11643.h (__cns11643_from_ucs4p2c_tab): New declaration.
4254 (ucs4_to_cns11643): Update.
4255 * iconvdata/cns11643.c: Update to Unicode 3.2.
4256 (__cns11643l2*_to_ucs4_tab, __cns11643_from_ucs4p0_tab,
4257 __cns11643_from_ucs4p2_tab): Regenerated.
4258 (__cns11643_from_ucs4p2c_tab): New array.
4259 * iconvdata/cvs11643l1.c: Update comments.
4260 * iconvdata/EUC-TW.irreversible: Remove two entries.
4262 2002-04-15 Bruno Haible <bruno@clisp.org>
4264 * locale/C-translit.h.in: Update to Unicode 3.2.
4265 Add <U2047>, <U205F>..<U2063>, <U2145>..<U2149>, <U2A74>..<U2A76>,
4266 <U30A0>, <U3251>..<U325F>, <U32B1>..<U32BF>, <UFE00>..<UFE0F>.
4268 2002-04-15 Bruno Haible <bruno@clisp.org>
4270 * iconvdata/sjis.c (halfkana_to_ucs4): Remove array.
4271 (BODY for FROM_LOOP): Optimize the JISX0201:GR to Unicode conversion.
4273 2002-04-15 Bruno Haible <bruno@clisp.org>
4275 * iconvdata/euc-jp.c (BODY for FROM_LOOP): When encountering an
4276 invalid input (e.g. a byte > 0x80 followed by a byte < 0x80), skip
4277 always one byte, not 0 bytes in some cases and 2 bytes in others.
4279 * iconvdata/tst-table-from.c (main): Correct the usage message.
4281 2002-04-19 Isamu Hasegawa <isamu@yamato.ibm.com>
4283 * posix/regcomp.c (parse_expression): Fix incorrect error code.
4284 (parse_dup_op): Fix error handling like "a{}".
4285 (parse_bracket_exp): Add error handling.
4286 (fetch_number): Add error handling for "a{<very_large_number>}".
4288 2002-04-19 Isamu Hasegawa <isamu@yamato.ibm.com>
4290 * posix/regcomp.c (parse_bracket_symbol): Add error handling
4291 in case that the symbol name is too long.
4292 (build_charclass): Handle [:lower:]/[:uppper:] correctly
4293 in case of REG_ICASE.
4295 2002-04-19 Andreas Jaeger <aj@suse.de>
4297 * math/libm-test.inc: Fix comment, suggested by Hartvig Ekner
4298 <hartvige@mips.com>.
4300 2002-04-15 H.J. Lu <hjl@gnu.org>
4302 * include/math.h (__finitel_internal): Declare only if
4303 __NO_LONG_DOUBLE_MATH is not defined.
4304 (__isinfl_internal): Likewise.
4305 (__isnanl_internal): Likewise.
4307 * sysdeps/unix/sysv/linux/alpha/syscalls.list: Add __connect_internal.
4308 * sysdeps/unix/sysv/linux/hppa/syscalls.list: Likewise.
4309 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
4310 * sysdeps/unix/sysv/linux/mips/syscalls.list: Likewise.
4311 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
4312 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
4313 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
4315 * sysdeps/unix/sysv/linux/syscalls.list: Add __chown_internal and
4318 * sysdeps/unix/sysv/linux/fxstat.c (__fxstat64_internal): Added.
4319 * sysdeps/unix/sysv/linux/lxstat.c (__lxstat64_internal): Added.
4321 2002-04-15 Bruno Haible <bruno@clisp.org>
4323 * iconvdata/armscii-8.c (BODY for FROM_LOOP): Fix array access.
4324 (BODY for TO_LOOP): Likewise.
4325 * iconvdata/tcvn5712-1.c (from_ucs4): Map U+0309 to 0xB1.
4326 * iconvdata/tst-table.sh: Add support for encodings which contain
4327 precomposed Unicode characters, known to the iconv converter in both
4328 directions but not listed in the charmap.
4329 * iconvdata/IBM856.irreversible: New file.
4330 * iconvdata/IBM922.irreversible: New file.
4331 * iconvdata/IBM1132.irreversible: New file.
4332 * iconvdata/IBM1133.irreversible: New file.
4333 * iconvdata/IBM1160.irreversible: New file.
4334 * iconvdata/IBM1161.irreversible: New file.
4335 * iconvdata/IBM1163.irreversible: New file.
4336 * iconvdata/IBM1164.irreversible: New file.
4337 * iconvdata/ARMSCII-8.irreversible: New file.
4338 * iconvdata/TCVN5712-1.precomposed: New file.
4339 * iconvdata/tst-tables.sh: Add IBM856, IBM922, IBM1124, IBM1129,
4340 IBM1160, IBM1161, IBM1132, IBM1133, IBM1162, IBM1163, IBM1164,
4341 ARMSCII-8, TCVN5712-1.
4342 * iconvdata/Makefile (distribute): Add IBM856.irreversible,
4343 IBM922.irreversible, IBM1132.irreversible, IBM1133.irreversible,
4344 IBM1160.irreversible, IBM1161.irreversible, IBM1163.irreversible,
4345 IBM1164.irreversible, ARMSCII-8.irreversible, TCVN5712-1.precomposed.
4347 2002-04-17 Jakub Jelinek <jakub@redhat.com>
4349 * time/tst-mktime.c: Include <stdlib.h>. Use %d, not %ld format
4350 for EVENING69. Include offsets in TZ environment variable.
4352 2002-04-18 Ulrich Drepper <drepper@redhat.com>
4354 * iconv/skeleton.c (RESET_INPUT_BUFFER): Replace ifs with #ifs to
4355 avoid compiler warnings.
4357 * locale/programs/localedef.c (main): Always call
4358 construct_output_path.
4360 * iconv/Makefile (CFLAGS-simple-hash.c): Define to find hashval.h.
4362 * locale/programs/locfile.c (to_archive): New variable. To collect
4363 data which has to be added to the locale archive.
4364 (write_all_categories): Take new third parameter with locale name.
4365 Unless no_archive flag set add new locale data to the archive
4366 (write_locale_data): Unless no-archive flag set store generated data
4367 in to_archive data structure instead of generation output file.
4368 Add new parameter with locale category index.
4369 * locale/programs/locfile.h: Add new parameters in declaractions of
4370 write_all_categories and write_locale_data.
4371 * locale/programs/localedef.c: Recognize --no-archive, --list-archive,
4372 --add-to-archive, and --delete-from-archive options. Pass extra
4373 parameter to write_all_categories.
4374 * locale/programs/localedef.h: Add prototypes for functions in
4376 * locale/locarchive.h: New file.
4377 * locale/programs/locarchive.c: New file.
4378 * locale/Makefile (distribute): Add programs/locarchive.c and
4380 (localedef-modules): Add md5 and locarchive.
4381 Add vpath to crypt subdir for md5.c.
4383 * locale/programs/ld-address.c: Pass locale category ID as new second
4384 parameter to write_locale_data.
4385 * locale/programs/ld-collate.c: Likewise.
4386 * locale/programs/ld-ctype.c: Likewise.
4387 * locale/programs/ld-identification.c: Likewise.
4388 * locale/programs/ld-measurement.c: Likewise.
4389 * locale/programs/ld-messages.c: Likewise.
4390 * locale/programs/ld-monetary.c: Likewise.
4391 * locale/programs/ld-name.c: Likewise.
4392 * locale/programs/ld-numeric.c: Likewise.
4393 * locale/programs/ld-paper.c: Likewise.
4394 * locale/programs/ld-telephone.c: Likewise.
4395 * locale/programs/ld-time.c: Likewise.
4397 * locale/simple-hash.c: Move compute_hashval function from here...
4398 * locale/hashval.h: ...to here. New file.
4399 * locale/simple-hash.h: Add prototype for compute_hashval.
4401 * include/libintl.h: Minor cleanups.
4403 2002-04-16 Ulrich Drepper <drepper@redhat.com>
4405 * posix/regcomp.c (gettext): Use INTUSE for _libc_intl_domainname.
4407 2002-04-15 Ulrich Drepper <drepper@redhat.com>
4409 * include/sys/stat.h: Fix typo. Patch by HJ Lu.
4411 2002-04-14 Bruno Haible <bruno@clisp.org>
4413 * locale/programs/charmap.c (charmap_read): Don't access result if
4416 2002-02-17 Andreas Schwab <schwab@suse.de>
4418 * elf/reldep7.c: New file.
4419 * elf/reldep7mod1.c: New file.
4420 * elf/reldep7mod2.c: New file.
4421 * elf/Makefile: Add rules to build and run reldep7.
4423 2002-04-14 Jakub Jelinek <jakub@redhat.com>
4425 * elf/dl-lookup.c (_dl_lookup_symbol): Move add_dependency call to
4426 the end of the function. Pass original flags to recursive call if
4427 add_dependency failed.
4428 (_dl_lookup_versioned_symbol): Likewise.
4430 2002-04-13 Jakub Jelinek <jakub@redhat.com>
4432 * time/mktime.c (__mktime_internal): If year is 69, don't bail out
4433 early, but check whether it overflowed afterwards.
4434 * time/tst-mktime.c (main): Add new tests.
4436 2002-04-14 Ulrich Drepper <drepper@redhat.com>
4438 * debug/xtrace.sh: Fix program name in help message.
4439 Patch by Roger Luethi <rl@hellgate.ch>.
4441 * include/sys/stat.h: Add prototypes for __lxstat_internal and
4442 __lxstat64_internal. Add macros __lxstat and __lxstat64 if not
4444 * sysdeps/generic/lxstat.c: Use INTDEF for __lxstat.
4445 * sysdeps/mach/hurd/lxstat.c: Likewise.
4446 * sysdeps/unix/common/lxstat.c: Likewise.
4447 * sysdeps/unix/sysv/aix/lxstat.c: Likewise.
4448 * sysdeps/unix/sysv/linux/lxstat.c: Likewise.
4449 * sysdeps/unix/sysv/linux/i386/lxstat.c: Likewise.
4450 * sysdeps/unix/sysv/linux/ia64/lxstat.c: Likewise.
4451 * sysdeps/unix/sysv/linux/s390/s390-64/lxstat.c: Likewise.
4452 * sysdeps/generic/lxstat64.c: Use INTDEF for __lxstat64.
4453 * sysdeps/mach/hurd/lxstat64.c: Likewise.
4454 * sysdeps/unix/sysv/aix/lxstat64.c: Likewise.
4455 * sysdeps/unix/sysv/linux/lxstat64.c: Likewise.
4457 * include/wchar.h: Declare __mbrtowc_internal and __mbrlen_internal
4458 prototypes. Add __mbrlen and __mbrtowc macros.
4459 * wcsmbs/mbrlen.c: Use INTDEF for __mbrlen.
4460 * wcsmbs/mbrtowc.c: Use INTDEF for __mbrtowc.
4462 * include/unistd.h: Add prototype for __write_internal and add
4463 __libc_write macro is SHARED.
4464 * sysdeps/generic/write.c: Use INTDEF for __write.
4465 * sysdeps/mach/hurd/write.c: Likewise.
4466 * sysdeps/unix/sysv/aix/write.c: Likewise.
4467 * sysdeps/unix/syscalls.list: Add __libc_write alias.
4469 * assert/assert.c: Replace STR_N_SIZE with something usable in
4471 * assert/assert-perr.c: Likewise.
4473 * include/sys/socket.h: Declare __libc_sa_len_internal and define
4474 SA_LEN macro to use it if not NOT_IN_libc.
4475 * sysdeps/unix/sysv/linux/sa_len.c: Use INTDEF for __libc_sa_len.
4477 * include/fcntl.h: Declare __open_internal and define __open and
4478 __libc_open macros if not NOT_IN_libc.
4479 * sysdeps/generic/open.c: Use INTDEF for __open.
4480 * sysdeps/mach/hurd/open.c: Likewise.
4481 * sysdeps/unix/sysv/aix/open.c: Likewise.
4482 * sysdeps/unix/syscalls.list: Add __open_internal alias.
4484 * sysdeps/generic/check_fds.c: Make sure newly opened file descriptor
4487 * include/fcntl.h: Define __libc_fcntl macro if not NOT_IN_libc.
4488 * sysdeps/mach/hurd/fcntl.c: Undefine __libc_fcntl as well.
4489 * sysdeps/unix/sysv/aix/fcntl.c: Likewise.
4490 * sysdeps/unix/sysv/linux/i386/fcntl.c: Likewise.
4492 * include/wctype.h: Declare __iswalpha_l_internal,
4493 __iswdigit_l_internal, __iswspace_l_internal,
4494 __iswxdigit_l_internal, and __iswctype_internal. Define
4495 __iswalpha_l, __iswctype, __iswdigit_l, __iswspace_l, and
4496 __iswxdigit_l macros if not NOT_IN_libc.
4497 * wctype/iswctype.c: Use INTDEF for __iswctype.
4498 * wctype/wcfuncs_l.c: Use INTDEF for all __iswXXX_l.
4500 * include/math.h: Declare __isinf_internal, __isinfl_internal,
4501 __isnan_internal, and __isnanl_internal.
4502 * stdio-common/printf_fp.c: Use INTUSE for calls to __isinf, __isinfl,
4503 __isnan, and __isnanl.
4504 * stdio-common/printf_size.c: Likewise.
4505 * sysdeps/generic/printf_fphex.c: Likewise.
4506 * sysdeps/i386/fpu/s_isinfl.c: Also define _internal alias.
4507 * sysdeps/i386/fpu/s_isnanl.c: Likewise.
4508 * sysdeps/ia64/fpu/s_isinf.S: Likewise.
4509 * sysdeps/ia64/fpu/s_isnan.S: Likewise.
4510 * sysdeps/ieee754/dbl-64/s_isinf.c: Likewise.
4511 * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
4512 * sysdeps/ieee754/flt-32/s_isinff.c: Likewise.
4513 * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
4514 * sysdeps/ieee754/ldbl-128/s_isinfl.c: Likewise.
4515 * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
4516 * sysdeps/ieee754/ldbl-96/s_isinfl.c: Likewise.
4517 * sysdeps/m68k/s_isinfl.c: Likewise.
4518 * sysdeps/m68k/fpu/s_isinf.c: Likewise.
4519 * sysdeps/powerpc/fpu/s_isnan.c: Likewise.
4521 * include/sys/time.h: Declare __gettimeofday_internal and define
4522 __gettimeofday macro if not NOT_IN_libc.
4523 * sysdeps/generic/gettimeofday.c: Use INTEDEF for __gettimeofday.
4524 * sysdeps/mach/gettimeofday.c: Likewise.
4525 * sysdeps/posix/gettimeofday.c: Likewise.
4526 * sysdeps/unix/sysv/aix/gettimeofday.c: Likewise.
4527 * sysdeps/unix/common/syscalls.list: Define __gettimeofday alias.
4528 * sysdeps/unix/sysv/linux/alpha/gettimeofday.S: Likewise.
4529 * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S: Likewise.
4531 * include/sys/stat.h: Declare __fxstat_internal and __fxstat64_internal
4532 and define __fxstate and __fxstat64 macros if not NOT_IN_libc.
4533 Remove __lstat and __fstat inline functions.
4534 * sysdeps/generic/fxstat.c: Use INTDEF for __fxstat.
4535 * sysdeps/mach/hurd/fxstat.c: Likewise.
4536 * sysdeps/unix/fxstat.c: Likewise.
4537 * sysdeps/unix/sysv/aix/fxstat.c: Likewise.
4538 * sysdeps/unix/sysv/linux/fxstat.c: Likewise.
4539 * sysdeps/unix/sysv/linux/i386/fxstat.c: Likewise.
4540 * sysdeps/unix/sysv/linux/ia64/fxstat.c: Likewise.
4541 * sysdeps/unix/sysv/linux/s390/s390-64/fxstat.c: Likewise.
4542 * sysdeps/generic/fxstat64.c: Use INTDEF for __fxstat64.
4543 * sysdeps/mach/hurd/fxstat64.c: Likewise.
4544 * sysdeps/unix/sysv/aix/fxstat64.c: Likewise.
4545 * sysdeps/unix/sysv/linux/fxstat64.c: Likewise.
4547 * include/unistd.h: Declare __getpid_internal and define
4548 __getpid macro if not NOT_IN_libc.
4549 * sysdeps/mach/hurd/getpid.c: Use INTDEF for __getpid.
4550 * sysdeps/generic/getpid.c: Likewise.
4551 * sysdeps/unix/syscalls.list: Add __getpid_internal alias.
4552 * posix/bsd-getpgrp.c: Use INTUSE for __getpgid call.
4554 * include/unistd.h: Declare __getpgid_internal and define
4555 __getpgid macro if not NOT_IN_libc.
4556 * sysdeps/generic/getpgid.c: Use INTDEF for __getpgid.
4557 * sysdeps/mach/hurd/getpgid.c: Likewise.
4558 * sysdeps/unix/sysv/aix/getpgid.c: Likewise.
4559 * sysdeps/unix/sysv/sysv4/__getpgid.c: Likewise.
4560 * sysdeps/unix/sysv/sysv4/getpgid.c: Likewise.
4561 * sysdeps/unix/sysv/linux/syscalls.list: Add _getpgid_internal alias.
4563 * include/unistd.h: Declare __getpagesize_internal and define
4564 __getpagesize macro if not NOT_IN_libc.
4565 * sysdeps/unix/sysv/linux/shmat.c: Include <unistd.h> for
4567 * sysdeps/generic/getpagesize.c: Use INTDEF for __getpagesize.
4568 * sysdeps/mach/getpagesize.c: Likewise.
4569 * sysdeps/posix/getpagesize.c: Likewise.
4570 * sysdeps/unix/getpagesize.c: Likewise.
4571 * sysdeps/unix/sysv/linux/getpagesize.c: Likewise.
4572 * sysdeps/unix/sysv/linux/ia64/getpagesize.c: Likewise.
4573 * sysdeps/unix/sysv/linux/m68k/getpagesize.c: Likewise.
4574 * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize.c: Likewise.
4576 2002-04-13 Andreas Jaeger <aj@suse.de>
4578 * sysdeps/i386/i486/bits/string.h (__strcspn_cg): Use only memory
4579 as clobber to reduce register pressure.
4580 (__strpbrk_cg): Likewise.
4581 (__mempcpy_by4): Likewise.
4582 (__strstr_cg): Likewise.
4583 Add prototype for __memrchr.
4585 2002-04-13 Andreas Schwab <schwab@suse.de>
4587 * sysdeps/m68k/fpu/s_finite.c: Add internal alias.
4588 * sysdeps/m68k/fpu/s_finitef.c: Likewise.
4589 * sysdeps/m68k/fpu/s_finitel.c: Likewise.
4591 2002-04-13 Ulrich Drepper <drepper@redhat.com>
4593 * elf/do-lookup.h [!VERSIONED]: Add new parameter flags. Use it to
4594 check whether the caller prefers getting the most recent version of
4595 a symbol of the earliest version.
4596 * elf/dl-lookup.c: Adjust all callers of do_lookup. Change
4597 _dl_do_lookup to also take the new parameter and pass it on.
4598 Change 'explicit' parameter of _dl_lookup_symbol and
4599 _dl_lookup_versioned_symbol to flags. Adjust tests.
4600 * sysdeps/generic/ldsodefs.h: Adjust prototypes.
4601 * elf/dl-libc.c: Adjust all callers of _dl_lookup_symbol and
4602 _dl_lookup_versioned_symbol.
4603 * elf/dl-reloc.c: Likewise.
4604 * elf/dl-runtime.c: Likewise.
4605 * elf/dl-sym.c: Likewise.
4606 * sysdeps/mips/dl-machine.h: Likewise.
4608 2002-04-11 Jakub Jelinek <jakub@redhat.com>
4610 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h (LOC): Don't paste
4612 * sysdeps/unix/sysv/sysv4/solaris2/sparc/sysdep.h (LOC): Likewise.
4614 2002-04-10 Andreas Jaeger <aj@suse.de>
4616 * sysdeps/unix/sysv/linux/x86_64/glob.c: New file.
4618 * include/argz.h: Remove extra char from last patch.
4620 2002-04-09 Ulrich Drepper <drepper@redhat.com>
4622 * sysdeps/mach/hurd/chown.c: Use INTDEF for __chown.
4623 * sysdeps/unix/sysv/aix/chown.c: Likewise.
4624 * sysdeps/unix/grantpt.c: Use INTUSE for __chown calls.
4625 * sysdeps/unix/sysv/linux/m68k/chown.c: Likewise.
4626 * sysdeps/unix/sysv/linux/powerpc/chown.c: Likewise.
4627 * sysdeps/unix/sysv/linux/i386/chown.c: Use INTDEF2 to define
4629 * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Likewise.
4631 * intl/dcngettext.c [_LIBC]: Use INTUSE for __dcngettext.
4632 * intl/dngettext.c [_LIBC] (DCNGETTEXT): Use INTUSE.
4633 * intl/ngettext.c: Likewise.
4635 * include/sys/socket.h: Declare __connect_internal and define
4636 __connect macro if not NOT_IN_libc.
4637 * sysdeps/mach/hurd/connect.c: Use INTDEF for __connect.
4638 * sysdeps/unix/sysv/aix/connect.c: Likewise.
4639 * sysdeps/unix/sysv/linux/connect.S: Add __connect_internal alias.
4641 * include/unistd.h: Declare __close_internal and define __close macro
4643 * libio/libioP.h (JUMO0, JUMP1, JUMP2, JUMP3, WJUMP0, WJUMP1, WJUMP2,
4644 WJUMP3): Add extra parenthesis to avoid expanding element names with
4645 macors like __close.
4646 * sysdeps/unix/syscalls.list: Add __close_internal alias.
4648 * include/unistd.h: Declare __dup2_internal and define __dup2 macro
4650 * sysdeps/mach/hurd/dup2.c: Use INTDEF for __dup2.
4651 * sysdeps/posix/dup2.c: Use INTDEF for __dup2.
4652 * sysdeps/unix/syscalls.list: Add __dup2_internal alias.
4654 * include/unistd.h: Declare __fork_internal and define __fork macro
4656 * sysdeps/mach/hurd/fork.c: Use INTDEF for __fork.
4657 * sysdeps/unix/sysv/aix/fork.c: Likewise.
4658 * sysdeps/unix/sysv/linux/syscalls.list: Add __fork_internal alias.
4660 * include/stdio_ext.h: Declare __fsetlocking_internal and define
4661 __fsetlocking macro to use it if not NOT_IN_libc.
4662 * libio/__fsetlocking.c: Use INTDEF for __fsetlocking.
4664 * libio/__fbufsize.c: Correct copyright.
4665 * libio/__flbf.c: Likewise.
4666 * libio/__fpending.c: Likewise.
4667 * libio/__fpurge.c: Likewise.
4668 * libio/__freadable.c: Likewise.
4669 * libio/__freading.c: Likewise.
4670 * libio/__fsetlocking.c: Likewise.
4671 * libio/__fwritable.c: Likewise.
4672 * libio/__fwriting.c: Likewise.
4674 * include/stdio.h: Declare __asprintf_internal and define __asprintf
4675 macro to use it if not NOT_IN_libc.
4676 * stdio-common/asprintf.c: Use INTDEF for __asprintf.
4678 * include/mntent.h: Declare __setmntent_internal,
4679 __getmntent_r_internal, __endmntent_internal. Define __setmntent,
4680 __getmntent_r, and __endmntent macros to use these functions if not
4682 * misc/mntent_r.c: Use INTDEF for __setmntent, __getmntent_r, and
4685 * include/math.h: Declare __finite_internal, __finitef_internal, and
4686 __finitel_internal. Redefine isfinite macro if in libc or libm using
4688 * sysdeps/generic/s_ldexp.c: Use INTUSE for __finite calls.
4689 * sysdeps/generic/s_ldexpf.c: Use INTUSE for __finitef calls.
4690 * sysdeps/generic/s_ldexpl.c: Use INTUSE for __finitel calls.
4691 * sysdeps/i386/fpu/s_finite.S: Define _internal alias.
4692 * sysdeps/i386/fpu/s_finitef.S: Likewise.
4693 * sysdeps/i386/fpu/s_finitel.S: Likewise.
4694 * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
4695 * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
4696 * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
4697 * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
4699 * include/fcntl.h: Declare __fcntl_internal. Define __fcntl macro
4700 to use this function if not NOT_IN_libc.
4701 * libio/iofdopen.c (_IO_fcntl): Use INTUSE.
4702 * sysdeps/generic/fcntl.c: Use INTDEF for __fcntl.
4703 * sysdeps/mach/hurd/fcntl.c: Likewise.
4704 * sysdeps/unix/sysv/aix/fcntl.c: Likewise.
4705 * sysdeps/unix/sysv/linux/i386/fcntl.c: Likewise.
4707 * include/argz.h: Declare __argz_count_internal and
4708 __argz_stringify_internal.
4709 * intl/l10nflist.c [_LIBC]: Use INTUSE for __argz_count and
4711 * string/argz-count.c: Use INTDEF for __argz_count.
4712 * string/argz-stringify.c: Use INTDEF for __argz_stringify.
4714 * include/stdlib.h: Declare __cxa_atexit_internal and define
4715 __cxa_atexit macro if not NOT_IN_libc.
4716 * stdlib/cxa_atexit.c: Use INTDEF for __cxa_atexit.
4717 * dlfcn/Makefile: Define NOT_IN_libc when compiling modcxaatexit.c.
4719 * assert/assert.c: Use INTDEF for __assert_fail.
4720 * assert/__assert.c: Use INTUSE for call to __assert_fail.
4721 * include/assert.h: Declare __assert_fail_internal.
4723 * extra-lib.mk: Mark assignment to lib with override.
4725 2002-04-08 Ulrich Drepper <drepper@redhat.com>
4727 * Makerules: Use cppflags-iterator.mk to add defines for all test
4730 2002-04-08 kaz Kojima <kkojima@rr.iij4u.or.jp>
4732 * elf/elf.h: Define R_SH_TLS_xxx macros.
4733 * elf/rtld.c: Remove an extra parenthesis.
4734 * elf/tls-macros.h: Define SH version TLS_LE, TLS_IE, TLS_LD and
4736 * sysdeps/generic/dl-tls.c: Add a missing semi-colon.
4737 * sysdeps/sh/dl-lookupcfg.h: New file.
4738 * sysdeps/sh/dl-tls.h: New file.
4739 * sysdeps/sh/dl-machine.h (elf_machine_type_class): Set
4740 ELF_RTYPE_CLASS_PLT also for the three TLS relocations.
4741 (elf_machine_rela): Handle R_SH_TLS_DTPMOD32, R_SH_TLS_DTPOFF32 and
4742 R_SH_TLS_TPOFF32 relocations.
4744 2002-04-08 Ulrich Drepper <drepper@redhat.com>
4746 * cppflags-iterator.mk (cpp-srcs-left): Define NOT_IN_libc instead
4748 * include/libintl.h: Test for NOT_IN_libc not NOT_IN_LIBC.
4749 * include/stdlib.h: Likewise.
4751 2002-04-08 Jakub Jelinek <jakub@redhat.com>
4753 * elf/Makefile (CFLAGS-.os): Define NOT_IN_libc and IS_IN_rtld
4754 instead of _RTLD_LOCAL.
4755 * elf/dl-dst.h: Use IS_IN_rtld instead of _RTLD_LOCAL.
4756 * include/unistd.h: Likewise.
4757 * sysdeps/generic/ldsodefs.h: Likewise.
4759 * stdio-common/_itoa.h (_itoa_word): Only use internal digit arrays
4760 if in libc or ld.so.
4762 2002-04-08 Andreas Jaeger <aj@suse.de>
4764 * elf/cache.c (print_entry): Support x86-64.
4766 2002-04-08 Ulrich Drepper <drepper@redhat.com>
4768 * include/stdlib.h: For libc itself replace MB_CUR_MAX definition
4769 with one accessing the locale data structures directly.
4770 * stdio-common/printf-prs.c: Include localeinfo.h for new
4771 MB_CUR_MAX definition.
4773 * Makeconfig (CPPFLAGS): Also add CPPFLAGS-<basename> where <basename>
4774 is the name of the source file without extension.
4775 * Makefile (distribute): Add cppflags-iterator.mk.
4776 * cppflags-iterator.mk: New file.
4777 * extra-lib.mk: For the sources of the library run
4778 cppflags-iterator.mk.
4780 * include/libintl.h: Declare __dcgettext_internal and
4781 _libc_intl_domainname_internal. Define __dcgettext using these
4782 two symbols if used in libc itself.
4783 * argp/argp-help.c: Define dgettext using __dcgettext_internal and
4784 _libc_intl_domainname_internal.
4785 * argp/argp-parse.c: Likewise.
4786 * intl/dcgettext.c (__dcgettext): Use INTDEF to define alias.
4787 * intl/dgettext.c: Call __dcgettext_internal instead of __dcgettext.
4788 * intl/gettext.c: Likewise.
4789 * locale/SYS_libc.c (_libc_intl_domainname): Use INTDEF to define
4791 * posix/regcomp.c (gettext): Use __dcgettext_internal instead of
4793 * posix/regex_internal.c (gettext): Likewise.
4795 2002-04-08 Andreas Jaeger <aj@suse.de>
4797 * sysdeps/unix/sysv/linux/x86_64/ldd-rewrite.sed: Fix rewrite rule.
4799 * sysdeps/x86_64/fpu/s_llrint.S: New.
4800 * sysdeps/x86_64/fpu/s_llrintf.S: New.
4801 * sysdeps/x86_64/fpu/s_llrintl.S: New.
4802 * sysdeps/x86_64/fpu/s_lrint.S: New.
4803 * sysdeps/x86_64/fpu/s_lrintf.S: New
4804 * sysdeps/x86_64/fpu/s_lrintl.S: New.
4806 2002-04-08 Roland McGrath <roland@frob.com>
4808 * sysdeps/mach/hurd/dl-sysdep.c (__mmap): Use MAP_FAILED instead of
4809 widening __hurd_fail value.
4811 2002-04-07 Roland McGrath <roland@frob.com>
4813 * sysdeps/mach/hurd/alpha/trampoline.c: Don't include
4814 <mach/machine/alpha_instruction.h>.
4815 (_hurd_setup_sighandler): Take proper arguments for current decls.
4816 Update code to use _hurdsig_catch_fault.
4817 Use `callsys' instruction instead of `call_pal'.
4818 * sysdeps/mach/hurd/alpha/intr-msg.h: New file.
4820 * sysdeps/mach/alpha/sysdep.h: Include <mach/alpha/asm.h>.
4821 (ALIGN, at, AT, fp): New macros.
4823 2002-04-06 Roland McGrath <roland@frob.com>
4825 * mach/setup-thread.c (__mach_setup_thread): int -> natural_t
4827 * sysdeps/mach/hurd/dl-sysdep.c: Use ElfW(TYPE) in place of Elf32_TYPE.
4828 (__mmap): Use MAP_FAILED instead of widening __hurd_fail value.
4830 * sysdeps/mach/hurd/bind.c: Use prototype definition.
4831 * sysdeps/mach/hurd/connect.c: Likewise.
4832 * sysdeps/mach/hurd/getsockopt.c: Likewise.
4833 * sysdeps/mach/hurd/setsockopt.c: Likewise.
4835 * sysdeps/mach/hurd/alpha/sigreturn.c: Pass missing argument to
4838 * hurd/catch-exc.c: Use integer_t instead of int.
4839 * hurd/hurdfault.c: Likewise.
4841 * sysdeps/mach/hurd/alpha/exc2signal.c
4842 (_hurd_exception2signal): Rewritten.
4843 * sysdeps/mach/hurd/alpha/longjmp-ts.c
4844 (_hurd_longjmp_thread_state): Rewritten.
4846 2002-04-07 Ulrich Drepper <drepper@redhat.com>
4848 * nss/getXXbyYY_r.c: If NSS_attribute_hidden is defined use it with the
4849 DB_LOOKUP_FCT prototype.
4850 * nss/getXXent_r.c: Likewise.
4851 * inet/getaliasent_r.c: Define NSS_attribute_hidden.
4852 * inet/getaliasname_r.c: Likewise.
4853 * inet/getnetbyad_r.c: Likewise.
4854 * inet/getnetbynm_r.c: Likewise.
4855 * inet/getnetent_r.c: Likewise.
4856 * inet/getproto_r.c: Likewise.
4857 * inet/getprtent_r.c: Likewise.
4858 * inet/getprtname_r.c: Likewise.
4859 * inet/getrpcbyname_r.c: Likewise.
4860 * inet/getrpcbynumber_r.c: Likewise.
4861 * inet/getrpcent_r.c: Likewise.
4862 * inet/getservent_r.c: Likewise.
4863 * inet/getsrvbynm_r.c: Likewise.
4864 * inet/getsrvbypt_r.c: Likewise.
4865 * shadow/getspent_r.c: Likewise.
4866 * shadow/getspnam_r.c: Likewise.
4868 * malloc/thread-m.h: Define __libc_tsd_MALLOC_data as static.
4870 * sysdeps/i386/elf/bsd-setjmp.S: Use GOTOFF for __sigjmp_save access.
4871 Use i686-friendly PIC code.
4872 * sysdeps/i386/elf/setjmp.S: Likewise.
4874 * sysdeps/unix/sysv/linux/i386/sysdep.h: Use i686-friendly PIC code.
4876 * sysdeps/mach/hurd/Versions: Add _dl_init_first to libc and ld export
4878 * elf/Versions: Remove it here.
4880 2002-04-06 Ulrich Drepper <drepper@redhat.com>
4882 * iconvdata/tcvn5712-1.c (MAX_NEEDED_INPUT): Define for from
4883 direction. Reported by H . J . Lu <hjl@lucon.org>.
4885 2002-04-05 Ulrich Drepper <drepper@redhat.com>
4887 * intl/tst-gettext.sh: Set GCONV_PATH and LOCPATH to values for the
4888 test just before the test runs.
4889 * intl/tst-translit.sh: Likewise.
4890 * intl/tst-codeset.sh: Likewise.
4892 * timezone/zic.c: Update from tzcode2002c.
4893 * timezone/asia: Update from tzdata2002c.
4894 * timezone/backward: Likewise.
4895 * timezone/europe: Likewise.
4896 * timezone/northamerica: Likewise.
4897 * timezone/northamerica: Likewise.
4898 * timezone/northamerica: Likewise.
4899 * timezone/southamerica: Likewise.
4900 * timezone/zone.tab: Likewise.
4902 2002-03-23 Jakub Jelinek <jakub@redhat.com>
4904 * sysdeps/generic/brk.c (__curbrk): Declare.
4905 * sysdeps/generic/dl-brk.c: Add attribute_hidden to __curbrk.
4906 * sysdeps/generic/dl-sbrk.c: Likewise.
4907 * sysdeps/unix/arm/dl-brk.S: New file.
4908 * sysdeps/unix/bsd/hp/m68k/dl-brk.S: New file.
4909 * sysdeps/unix/bsd/osf/alpha/dl-brk.S: New file.
4910 * sysdeps/unix/bsd/sun/m68k/dl-brk.S: New file.
4911 * sysdeps/unix/bsd/vax/dl-brk.S: New file.
4912 * sysdeps/unix/i386/dl-brk.S: New file.
4913 * sysdeps/unix/mips/dl-brk.S: New file.
4914 * sysdeps/unix/sparc/dl-brk.S: New file.
4915 * sysdeps/unix/sysv/linux/alpha/dl-brk.S: New file.
4916 * sysdeps/unix/sysv/linux/ia64/dl-brk.S: New file.
4917 * sysdeps/unix/sysv/linux/powerpc/dl-brk.S: New file.
4918 * sysdeps/unix/sysv/linux/sparc/sparc64/dl-brk.S: New file.
4920 2002-04-03 Andreas Schwab <schwab@suse.de>
4922 * Makefile (headers): Add gnu/lib-names.h here instead of
4924 ($(inst_includedir)/gnu/lib-names.h): Remove explicit
4926 (install-headers): Add dependency on install-headers-nosubdir.
4927 * stdio-common/Makefile (headers): Add bits/stdio_lim.h here
4928 instead of install-others.
4929 ($(inst_includedir)/bits/stdio_lim.h): Remove explicit
4932 2002-04-05 Ulrich Drepper <drepper@redhat.com>
4934 * manual/users.tex (Enable/Disable Setuid): Fix typo in example.
4935 Reported by Sam Roberts <sroberts@uniserve.com>.
4937 2002-04-03 Jakub Jelinek <jakub@redhat.com>
4939 * elf/do-rel.h (elf_dynamic_do_rel): Skip relative relocs if
4940 l_addr == 0 and ELF_MACHINE_REL_RELATIVE.
4941 * sysdeps/alpha/dl-machine.h (ELF_MACHINE_REL_RELATIVE): Define.
4942 * sysdeps/ia64/dl-machine.h (ELF_MACHINE_REL_RELATIVE): Define.
4944 2002-04-03 David Mosberger <davidm@hpl.hp.com>
4946 * sysdeps/ia64/dl-machine.h (TRAMPOLINE_TEMPLATE): Add unwind info.
4947 (RTLD_START): Ditto.
4948 (__ia64_init_bootstrap_fdesc_table): Insert stop bit to avoid RAW
4949 dependency violation.
4951 2002-04-05 Jakub Jelinek <jakub@redhat.com>
4953 * time/mktime.c (__mktime_internal): Move check for year < 70 below
4954 all variable declarations.
4956 2002-04-04 Andreas Schwab <schwab@suse.de>
4958 * sysdeps/unix/sysv/linux/ia64/pipe.S: Don't overwrite r8 on error.
4960 2002-04-04 Andreas Jaeger <aj@suse.de>
4962 * sysdeps/x86_64/fpu/e_sqrt.c: New file.
4963 * sysdeps/x86_64/fpu/e_sqrtf.c: New file.
4965 * sysdeps/x86_64/fpu/s_fabs.c: New file.
4966 * sysdeps/x86_64/fpu/s_fabsf.c: New file.
4967 * sysdeps/x86_64/fpu/s_fabsl.c: New file.
4969 * sysdeps/unix/sysv/linux/x86_64/time.S: New file.
4971 * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S: New file.
4973 * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: Removed.
4974 * sysdeps/unix/sysv/linux/x86_64/time.c: Removed.
4976 * configure.in: Handle all mips entries the same.
4978 * sysdeps/mips/dec/bits/endian.h: Removed since arch is not supported.
4979 * sysdeps/mips/mips3/*: Likewise.
4980 * sysdeps/mips/p40/bits/endian.h: Likewise.
4982 2002-04-04 Ulrich Drepper <drepper@redhat.com>
4984 * misc/dirname.c (dirname): Ignore trailing slashes at end of
4985 non-null result [PR libc/2600].
4987 * misc/tst-dirname.c: Add more tests.
4989 2002-04-03 Ulrich Drepper <drepper@redhat.com>
4991 * locale/programs/charmap.c (charmap_read): If the charmap doesn't
4992 define a code_set_name provide one based on the filename.
4994 * malloc/hooks.c: Define weak_variable correctly for _LIBC.
4996 2001-12-28 Andreas Jaeger <aj@suse.de>
4998 * time/mktime.c (__mktime_internal): Check for year < 70
5001 2002-04-03 Andreas Jaeger <aj@suse.de>
5003 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Fix arguments for
5005 Reported by Andi Kleen <ak@suse.de>.
5007 2002-04-03 Ulrich Drepper <drepper@redhat.com>
5009 * sysdeps/generic/w_lgamma.c: Initialized local_signgam.
5010 * sysdeps/generic/w_lgammaf.c: Likewise.
5011 * sysdeps/generic/w_lgammal.c: Likewise [PR libc/2854].
5013 * debug/catchsegv.sh (exval): Quote [ in pattern [PR libc/2902].
5014 Adjust for new output format of the backtrace functions.
5016 * misc/syslog.c (vsyslog): Only use cleanup handler if
5017 _LIBC_REENTRANT is defined [PR libc/2924].
5019 * libio/Makefile (tests): Add bug-ungetwc2.
5020 * libio/bug-ungetwc2.c: New file.
5022 * manual/install.texi: Typographical and grammatical cleanup.
5023 Patch by Dennis Grace <dgrace@us.ibm.com>.
5025 * sunrpc/rpc_svcout.c (write_real_program): Write "result, "
5026 parameter if mtflag. Patch by <jeongyun@innovay.com>.
5028 * sunrpc/rpc_svcout.c (printif): Remove third parameter. It was
5029 always "&". Adjust callers.
5030 Add "_" prefix to several generated definitions.
5031 Patch by paul@serice.net [PR libc/3158].
5033 2002-04-02 Ulrich Drepper <drepper@redhat.com>
5035 * sysdeps/unix/sysv/linux/arm/dl-procinfo.c: Completely specify
5036 size of _dl_arm_cap_flags.
5037 Patch by enrico.scholz@informatik.tu-chemnitz.de [PR libc/3155].
5039 * sysdeps/unix/sysv/linux/arm/dl-procinfo.h (_DL_HWCAP_COUNT):
5042 2002-03-22 H.J. Lu <hjl@gnu.org>
5044 * scripts/firstversions.awk: Check the first version.
5046 2002-04-02 Ulrich Drepper <drepper@redhat.com>
5048 * elf/dl-deps.c (_dl_map_object_deps): The sorting of the
5049 dependencies must be stable to work correctly.
5050 Reported by martin.lubich@datacon.at.
5052 * libio/bug-ungetwc1.c: New file.
5053 * libio/Makefile (tests): Add bug-ungetwc1.
5055 * libio/fileops.c (_IO_new_file_close_it): Only call _IO_do_flush
5056 if stream was last used for writing.
5058 * elf/do-lookup.h (do_lookup): 2 is the first user-defined version
5059 number [PR libc/3111].
5061 * libio/iofclose.c (_IO_new_fclose): Move freeing of backup buffer
5063 * libio/fileops.c (_IO_new_file_close_it): ...here [PR libc/3190].
5065 2002-04-02 Jakub Jelinek <jakub@redhat.com>
5067 * inet/ether_ntoh.c (__nss_ethers_lookup): Add internal_function.
5068 * inet/ether_hton.c (__nss_ethers_lookup): Likewise.
5069 * inet/getnetgrent_r.c (__nss_netgroup_lookup): Likewise.
5070 * sunrpc/netname.c (__nss_publickey_lookup): Likewise.
5071 * sunrpc/publickey.c (__nss_publickey_lookup): Likewise.
5073 2002-03-30 Jakub Jelinek <jakub@redhat.com>
5075 * elf/dynamic-link.h (elf_get_dynamic_info): Don't abort on unknown
5078 2002-03-29 Jakub Jelinek <jakub@redhat.com>
5080 * sysdeps/i386/fpu/s_fabs.S: New file.
5081 * sysdeps/i386/fpu/s_fabsf.S: New file.
5082 * sysdeps/i386/fpu/s_fabsl.S: New file.
5083 * sysdeps/sparc/sparc64/fpu/s_fabs.c: New file.
5084 * sysdeps/sparc/sparc64/fpu/s_fabsf.c: New file.
5085 * sysdeps/sparc/sparc64/fpu/s_fabsl.c: New file.
5087 2002-04-02 Ulrich Drepper <drepper@redhat.com>
5089 * rt/tst-shm.c (do_test): Add one more test for size of shared
5092 2002-03-29 Wolfram Gloger <wg@malloc.de>
5094 * malloc/malloc.c: Add short description and prototypes for
5095 malloc_get_state, malloc_set_state and posix_memalign, for
5096 consistency and to avoid warnings with -Wstrict-prototypes.
5097 Reported by Andreas Jaeger <aj@suse.de>.
5099 2002-04-02 Ulrich Drepper <drepper@redhat.com>
5101 * po/gl.po: Update from translation team.
5103 2002-03-31 Roland McGrath <roland@frob.com>
5105 * hurd/hurdselect.c (_hurd_select): Fix
5106 MACH_MSG_TYPE_INTEGER_T -> integer_t in sizeof.
5107 Use a union rather than casts to compare mach_msg_type_t as int.
5109 2002-03-25 Roland McGrath <roland@frob.com>
5111 * hurd/hurdchdir.c (_hurd_change_directory_port_from_name): Don't
5112 check off the end of NAME when it's shorter than 2 chars.
5113 Reported by Ognyan Kulev <ogi@fmi.uni-sofia.bg>.
5115 2002-03-17 Roland McGrath <roland@frob.com>
5117 * sysdeps/mach/hurd/i386/sys/io.h: New file.
5118 * sysdeps/mach/hurd/i386/ioperm.c: New file.
5119 * sysdeps/mach/hurd/i386/Dist: Add them.
5120 * sysdeps/mach/hurd/i386/Versions
5121 (libc: GLIBC_2.2.6): New set, add ioperm.
5122 * sysdeps/mach/configure.in: New check to set HAVE_I386_IO_PERM_MODIFY.
5123 (mach_interface_list): Check for mach_i386.defs.
5124 * config.h.in (HAVE_I386_IO_PERM_MODIFY): #undef it.
5125 * sysdeps/mach/configure: Regenerated.
5127 2002-03-22 Ulrich Drepper <drepper@redhat.com>
5129 * po/fr.po: Update from translation team.
5131 2002-03-21 Martin Schwidefsky <schwidefsky@de.ibm.com>
5133 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Remove
5134 getpriority from syscalls list.
5136 2002-03-28 Andreas Jaeger <aj@suse.de>
5138 * sysdeps/unix/sysv/linux/x86_64/swapcontext.S: New file.
5139 * sysdeps/unix/sysv/linux/x86_64/getcontext.S: New file.
5140 * sysdeps/unix/sysv/linux/x86_64/setcontext.S: New file.
5141 * sysdeps/unix/sysv/linux/x86_64/ucontext_i.h: New file.
5143 2002-03-27 Andreas Jaeger <aj@suse.de>
5145 * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (struct
5146 sigcontext): Follow further kernel change.
5148 * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Follow further
5151 * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h (GET_STACK):
5152 Change for struct sigcontext change.
5154 * sysdeps/unix/sysv/linux/x86_64/register-dump.h (register_dump):
5155 Follow changes in struct sigcontext.
5157 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Remove ptrace
5158 sysycall, use wrapper instead.
5160 2002-03-26 Andreas Jaeger <aj@suse.de>
5162 * sysdeps/i386/i486/bits/string.h (__memcpy_by4): Describe memory
5163 read and write accesses as detailed as possible.
5164 (__memcpy_by2): Likewise.
5165 (__memcpy_g): Likewise.
5166 (memmove): Likewise.
5168 (__memset_ccn_by4): Likewise.
5169 (__memset_ccn_by2): Likewise.
5170 (__memset_gcn_by4): Likewise.
5171 (__memset_gcn_by2): Likewise.
5173 (__memrchr): Likewise.
5174 (rawmemchr): Likewise.
5175 (__strlen_g): Likewise.
5176 (__strcpy_g): Likewise.
5177 (__mempcpy_by4): Likewise.
5178 (__mempcpy_by2): Likewise.
5179 (__mempcpy_byn): Likewise.
5180 (__stpcpy_g): Likewise.
5181 (__strncpy_by4): Likewise.
5182 (__strncpy_by2): Likewise.
5183 (__strncpy_byn): Likewise.
5184 (__strncpy_gg): Likewise.
5185 (__strcat_c): Likewise.
5186 (__strcat_g): Likewise.
5187 (__strncat_g): Likewise.
5188 (__strcmp_gg): Likewise.
5189 (__strncmp_g): Likewise.
5190 (__strchr_c): Likewise.
5191 (__strchr_g): Likewise.
5192 (__strchrnul_c): Likewise.
5193 (__strchrnul_g): Likewise.
5194 (__strrchr_c): Likewise.
5195 (__strrchr_g): Likewise.
5196 (__strrchr_c): Likewise.
5197 (__strrchr_g): Likewise.
5198 (__strcspn_c1): Likewise.
5199 (__strcspn_cg): Likewise.
5200 (__strcspn_g): Likewise.
5201 (__strcspn_g): Likewise.
5202 (__strspn_c1): Likewise.
5203 (__strspn_cg): Likewise.
5204 (__strspn_g): Likewise.
5205 (__strspn_g): Likewise.
5206 (__strpbrk_cg): Likewise.
5207 (__strpbrk_g): Likewise.
5208 (__strstr_cg): Likewise.
5209 (__strstr_g): Likewise.
5211 * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Fix typo. Reported by
5212 Michal Ludvig <mludvig@suse.cz>.
5214 * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Add 32-bit
5215 compatibilty, adjust for kernel changes.
5217 * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (struct
5218 sigcontext): Adjust for kernel changes.
5220 2002-03-25 Andreas Jaeger <aj@suse.de>
5222 * iconv/gconv_simple.c (ucs4le_internal_loop_single): Handle
5224 Reported by Artur Zaprzala <zybi@talex.com.pl>.
5226 2002-03-24 Andreas Jaeger <aj@suse.de>
5228 * manual/memory.texi (Aligned Memory Blocks): Fix typo.
5230 * stdio-common/tst-fdopen.c (main): Remove unused variable.
5232 * iconv/tst-iconv3.c (main): Use correct printf strings.
5234 2002-03-18 Roland McGrath <roland@frob.com>
5236 * sysdeps/unix/bsd/bsd4.4/bits/socket.h (struct cmsgcred): New type.
5237 (CMGROUP_MAX): New macro.
5239 2002-03-23 Roland McGrath <roland@frob.com>
5241 * sysdeps/posix/shm_open.c (SHMDIR): /var/run/shm -> /dev/shm
5242 * sysdeps/posix/shm_unlink.c: Likewise.
5244 2002-03-22 Roland McGrath <roland@frob.com>
5246 * shlib-versions [USE_IN_LIBIO] (.*-.*-gnu-gnu.*): Make 2.2.6 default.
5247 * sysdeps/mach/hurd/configure.in: Default oldest ABI is 2.2.6
5248 under --enable-libio.
5249 * sysdeps/mach/hurd/configure: Regenerated.
5251 2002-03-23 Roland McGrath <roland@frob.com>
5253 * sysdeps/mach/hurd/i386/Makefile
5254 (sysdep_routines, shared-only-routines): Don't add framestate,
5255 reverting 2001-10-02 change.
5256 * sysdeps/unix/sysv/linux/arm/Makefile: Likewise.
5257 * sysdeps/unix/sysv/linux/alpha/Makefile: Likewise.
5258 * sysdeps/unix/sysv/linux/i386/Makefile: Likewise.
5259 * sysdeps/unix/sysv/linux/m68k/Makefile: Likewise.
5260 * sysdeps/unix/sysv/linux/mips/Makefile: Likewise.
5261 * sysdeps/unix/sysv/linux/powerpc/Makefile: Likewise.
5262 * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Likewise.
5263 * sysdeps/unix/sysv/linux/sparc/Makefile: Likewise.
5264 * sysdeps/generic/Makefile (sysdep_routines, shared-only-routines):
5265 Do it here instead, only if [$(unwind-find-fde) = yes].
5267 2002-03-23 Andreas Jaeger <aj@suse.de>
5269 * signal/signal.h: Fix typo. Patch by Steve Kemp
5270 <skx@tardis.ed.ac.uk>.
5272 2002-03-22 Andreas Jaeger <aj@suse.de>
5274 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Add getresgid and
5277 * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (struct
5278 _fpstate): Rename fwd to ftw, use _fpxreg and _xmmreg.
5279 * sysdeps/unix/sysv/linux/x86_64/sys/user.h (struct
5280 user_fpregs_struct): Rename fwd.
5282 * sysdeps/unix/sysv/linux/x86_64/register-dump.h (register_dump):
5283 Follow sigcontext changes.
5285 2002-03-22 Andreas Jaeger <aj@suse.de>
5287 * sysdeps/mips/bits/nan.h: New file. Copy from generic one with
5288 changes for NaNs on MIPS.
5289 Patch by Hartvig Ekner <hartvige@mips.com>.
5291 2002-03-21 Ulrich Drepper <drepper@redhat.com>
5293 * nscd/grpcache.c (addgrbyname): Improve buffer allocate with alloca.
5294 Use realloc if too large.
5295 (addgrbyid): Likewise.
5296 * nscd/hstcache.c (addhstbyname): Likewise.
5297 (addhstbyaddr): Likewise.
5298 (addhstbynamev6): Likewise.
5299 (addhstbyaddrv6): Likewise.
5300 * nscd/pwdcache.c (addpwbyname): Likewise.
5301 (addpwbyuid): Likewise.
5303 2002-03-21 Andreas Jaeger <aj@suse.de>
5305 * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (struct
5306 _fpstate): Add separate struct for x86-64.
5308 * sysdeps/unix/sysv/linux/x86_64/sys/user.h (struct
5309 user_fpregs_struct): Change member names to follow kernel.
5311 2002-03-20 Ulrich Drepper <drepper@redhat.com>
5313 * nis/ypclnt.c (yp_all): Remove the hack introduced on 1998-09-29.
5314 Correctly close the UDP connection right away [PR libc/3120].
5316 2002-03-20 Andreas Jaeger <aj@suse.de>
5318 * sysdeps/unix/sysv/linux/x86_64/sys/user.h (struct
5319 user_fpregs_struct): Fix for changed kernel struct.
5320 (struct user_regs_struct): Likewise.
5321 (struct user): Likewise.
5322 Add 32-bit x86 compatibility.
5324 * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Add more registers.
5326 2002-03-19 Andreas Jaeger <aj@suse.de>
5328 * sysdeps/unix/sysv/linux/x86_64/bits/types.h: Cleanup x86 types.
5330 2002-03-18 Andreas Jaeger <aj@suse.de>
5332 * iconvdata/Makefile: Only run tests when shared libs are
5335 2002-03-17 Andreas Jaeger <aj@suse.de>
5337 * sysdeps/mips/fpu/fraiseexcpt.c (__feraiseexcept): Set cause bits.
5339 * sysdeps/mips/fpu/fgetexcptflg.c (__fegetexceptflag): Add comment.
5341 * sysdeps/mips/fpu/fclrexcpt.c (__feclearexcept): Clear also cause
5344 * sysdeps/mips/fpu/fenv_libc.h (CAUSE_MASK): New.
5346 Patch by Hartvig Ekner <hartvige@mips.com>.
5348 * sysdeps/generic/unwind-dw2-fde-glibc.c: Add prototypes.
5349 * sysdeps/generic/unwind-pe.h: Likewise.
5351 * libio/iofdopen.c (_IO_new_fdopen): Pass parameter of correct
5354 * libio/stdio.c (AL2): Define variant when visibility attribute is
5357 * include/libc-symbols.h (_INTVARDEF): Define variant when
5358 visibility attribute is not supported.
5360 2002-03-16 Ulrich Drepper <drepper@redhat.com>
5362 * po/fr.po: Update from translation team.
5364 2002-02-25 Bruno Haible <bruno@clisp.org>
5366 * MakeTAGS (extract): Use --sort-by-file instead of --sort-output.
5368 2002-03-15 Ulrich Drepper <drepper@redhat.com>
5370 * libio/iofdopen.c (_IO_new_fdopen): Call _IO_setb to deallocate
5371 buffers if _IO_file_attach failed.
5373 * libio/fileops.c (_IO_file_open): Close file descriptor if
5374 _IO_SEEKOFF call failed.
5376 2002-03-15 H.J. Lu <hjl@gnu.org>
5377 Ulrich Drepper <drepper@redhat.com>
5379 * configure.in: Check for availability of
5380 init_array/fini_array/preinit_array handling in binutils.
5381 * config.h.in (HAVE_INITFINI_ARRAY): New macro.
5382 * config.make.in (have-initfini-array): New variable.
5384 2002-03-15 Ulrich Drepper <drepper@redhat.com>
5386 * stdio-common/tst-printf.c (main): Comment out one test which
5387 checked the compiler's ability to fold floating-point constants
5388 but not really printf.
5389 (rfg3): Make s const.
5390 * stdio-common/tst-printf.sh: Adjust for removed test.
5392 * sysdeps/i386/i386-mcount.S: Just call __mcount_internal, it is an
5393 internal function. Adjust for internal_function calling convention.
5394 * sysdeps/i386/machine-gmon.h: Declare and define __mcount_internal
5395 as internal_function.
5397 * sysdeps/generic/framestate.c: Declare fallback_frame_state_for as
5400 * nss/XXX-lookup.c (DB_LOOKUP_FCT): Add internal_function to
5401 declaration and definition.
5402 * nss/getXXbyYY_r.c (DB_LOOKUP_FCT): Add internal_function to
5404 * nss/getXXent_r.c: Likewise.
5405 * nss/nsswitch.h (db_lookup_function): Add internal_function to
5408 * include/time.h: Declare __localtime_r as hidden.
5410 * include/aliases.h: Declare __getaliasent_r as hidden.
5411 * include/grp.h: Declare __getgrent_r as hidden.
5412 * include/netdb.h: Declare __gethostent_r, __getnetent_r,
5413 __getservent_r, and __getprotoent_r as hidden.
5414 * include/pwd.h: Declare __getpwent_r as hidden.
5415 * include/shadow.h: Declare __getspent_r as hidden.
5416 * include/rpc/netdb.h: Declare __getrpcent_r as hidden.
5418 * iconv/gconv_int.h: Declare __gconv_read_conf, __gconv_alias_compare,
5419 and __gconv_transliterate as hidden.
5420 Add internal_function to __gconv_get_path declaration.
5421 * iconv/gconv_conf.c: Add internal_function to __gconv_get_path
5422 definition. Add attribute_hidden to __gconv_read_conf definition.
5424 2002-03-14 Ulrich Drepper <drepper@redhat.com>
5426 * elf/rtld.c: Declare _environ as hidden.
5427 * sysdeps/generic/dl-environ.c: Likewise.
5428 * sysdeps/generic/dl-sysdep.c: Likewise.
5430 * sysdeps/generic/ldsodefs.h: Declare _dl_debug_state_internal and
5431 _dl_mcount_internal as hidden.
5433 * elf/Makefile (rtld-routines): Add dl-sbrk and dl-brk.
5434 * sysdeps/generic/dl-brk.c: New file.
5435 * sysdeps/generic/dl-sbrk.c: New file.
5436 * sysdeps/unix/sysv/linux/i386/dl-brk.c: New file.
5437 * sysdeps/unix/sysv/linux/i386/dl-sbrk.c: New file.
5439 * elf/dl-minimal.c (malloc): Declare _end as hidden.
5440 (__errno_location): New function. Declare errno as hidden.
5441 * elf/rtld.c (_dl_argc): Define as hidden.
5442 (_dl_skip_args): Define as hidden.
5443 (_begin, _end): Declare as hidden.
5444 * sysdeps/generic/dl-sysdep.c (_end): Declare as hidden.
5445 * sysdeps/generic/entry.h (_start): Declare as hidden.
5446 * sysdeps/generic/ldsodefs.h (_dl_argc): Declare as hidden.
5447 * sysdeps/i386/dl-machine.h (elf_machine_runtime_setup): Declare
5448 _dl_runtime_resolve and _dl_runtime_profile as hidden.
5449 (RTLD_START): Use GOTOFF to access _dl_skip_args and _dl_fini.
5451 2002-03-14 Roland McGrath <roland@frob.com>
5453 * Makerules ($(common-objpfx)Versions.v.i): Depend on abi-versions.h.
5455 * Makeconfig (%.v.i, %.v): New implicit rules.
5456 (preprocess-versions): Variable removed.
5457 ($(common-objpfx)shlib-versions.v.i): New target giving just the
5458 shlib-versions input files as dependencies.
5459 ($(common-objpfx)soversions.i): Depend on that instead of the input
5460 files. Use it as input instead of using a pipeline.
5461 (postclean-generated): Append soversions.i, shlib-versions.v, and
5462 shlib-versions.v.i here.
5463 * Makerules ($(common-objpfx)Versions.def.v.i): New target giving just
5464 the Versions.def input files as dependencies.
5465 ($(common-objpfx)Versions.v.i): Likewise for Versions files.
5466 ($(common-objpfx)Versions.all): Depend on that instead of the input
5467 files. Use it as input instead of using a pipeline.
5468 ($(common-objpfx)sysd-versions): Likewise with Versions.v.i.
5469 (postclean-generated): Append those .v and .v.i files here.
5471 2002-03-14 Jakub Jelinek <jakub@redhat.com>
5473 * locale/broken_cur_max.c (__ctype_get_mb_cur_max): Use nl_langinfo.
5474 * locale/Versions (_nl_current_LC_COLLATE, _nl_current_LC_CTYPE):
5477 2002-03-14 Jakub Jelinek <jakub@redhat.com>
5479 * sysdeps/generic/mp_clz_tab.c: New file.
5480 * sysdeps/i386/mp_clz_tab.c: New file.
5481 * sysdeps/hppa/mp_clz_tab.c: New file.
5482 * sysdeps/powerpc/mp_clz_tab.c: New file.
5483 * stdlib/Makefile (aux): Revert last patch.
5484 * math/Makefile (gmp-objs): Likewise.
5486 2002-03-13 Paul Eggert <eggert@twinsun.com>
5488 * time/strftime.c: Comment fixes for references to obsolescent
5489 standards, In most cases the simplest fix is to remove the
5490 confusing comments. Cross-referencing all the standards properly
5491 is a bit of a pain, and it should be enough to put that info in
5492 the documentation as I did in my recent time.texi patch.
5494 2002-03-13 Paul Eggert <eggert@twinsun.com>
5496 * manual/time.texi (Formatting Calendar Time):
5497 ISO C99 also specifies the E and O modifiers.
5498 %P is a GNU extension, and is not in ISO C99.
5499 Mention that %r is equivalent to %I:%M:%S %p in the POSIX locale.
5500 %T is also in ISO C99.
5501 The RFC 822 example is not valid in arbitrary locales.
5502 Reword the POSIX.2 wording slightly, to make it a bit clearer
5503 that POSIX.2 formats are also supported by later POSIX versions.
5504 If a format was introduced in ISO C99 it is also required by
5507 2002-03-13 Ulrich Drepper <drepper@redhat.com>
5509 * sysdeps/gnu/errlist.awk: Define _sys_errlist_internal and
5510 _sys_nerr_internal with INTVARDEF2.
5511 * include/libc-symbols.h (INTVARDEF2): New macro.
5512 * include/stdio.h (_sys_errlist_internal): Declare as hidden.
5513 (_sys_nerr_internal): Library.
5515 * sysdeps/posix/signal.c (_sigintr): Define as hidden.
5516 * sysdeps/posix/sigintr.c (_sigintr): Declare as hidden.
5518 * stdio-common/tst-printf.sh: Adjust for last change in tst-printf.c.
5520 2002-03-13 Wolfram Gloger <wg@malloc.de>
5522 * malloc/malloc.c (sYSMALLOc): Don't change brk if mmap failed.
5524 2002-03-02 Andreas Schwab <schwab@suse.de>
5526 * stdio-common/vfprintf.c (process_arg): Fix decimal format with
5527 'h' flag and positional arg.
5528 * stdio-common/tst-printf.c (rfg3): New function to test
5529 positional arguments.
5530 (main): Fix some warnings.
5532 2002-03-13 Jakub Jelinek <jakub@redhat.com>
5534 * elf/dl-minimal.c (_itoa): Use _itoa_lower_digits_internal if SHARED.
5535 * elf/dl-reloc.c (_dl_reloc_bad_type): Likewise.
5537 2002-03-13 Ulrich Drepper <drepper@redhat.com>
5539 * grp/initgroups.c (__nss_group_data): Declare as hidden.
5541 * include/locale.h (_nl_C_locobj): Declare as hidden.
5543 * time/asctime.c (_nl_C_LC_TIME): Declare as hidden.
5544 * time/strptime.c (_nl_C_LC_TIME): Likewise.
5546 * include/netinet/in.h (in6addr_any_internal): Mark as hidden.
5548 * include/sys/gmon.h: Declare _gmonparam as hidden.
5550 * locale/lc-ctype.c (__ctype32_wctype): Declare as hidden.
5551 (__ctype32_wctrans): Likewise.
5552 (__ctype32_width): Likewise.
5554 * sysdeps/unix/sysv/linux/ttyname.c: Comment out definition and
5557 * posix/regcomp.c (__re_error_msgid): Renamed from re_error_msgid.
5559 (__re_error_msgid_idx): Renamed from re_error_msgid_idx. Define as
5560 hidden. Change all users of these variables.
5562 * posix/regex_internal.h (__re_error_msgid): Renamed from
5563 re_error_msgid. Declare as hidden.
5564 (__re_error_msgid_idx): Renamed from re_error_msgid_idx. Declare as
5567 * stdio-common/reg-printf.c (__printf_arginfo_table): Define as hidden.
5568 (__printf_function_table): Likewise.
5569 * stdio-common/printf-parse.h (__printf_arginfo_table): Declare as
5571 (__printf_function_table): Likewise.
5573 * nscd/nscd_proto.h: Declare __nss_not_use_nscd_passwd,
5574 __nss_not_use_nscd_group, and __nss_not_use_nscd_hosts as hidden.
5576 * nss/XXX-lookup.c (DATABASE_NAME_SYMBOL): Define as hidden.
5577 * nss/nsswitch.c: Declare _nss_*_database as hidden.
5579 * stdlib/wctomb.c (__no_r_state): Declare as hidden.
5580 * stdlib/mbtowc.c (__no_r_state): Define as hidden.
5582 2002-03-12 Ulrich Drepper <drepper@redhat.com>
5584 * ctype/ctype-info.c: Declare _nl_C_LC_CTYPE_class,
5585 _nl_C_LC_CTYPE_class32, _nl_C_LC_CTYPE_toupper, _nl_C_LC_CTYPE_tolower,
5586 _nl_C_LC_CTYPE_class_upper, _nl_C_LC_CTYPE_class_lower,
5587 _nl_C_LC_CTYPE_class_alpha, _nl_C_LC_CTYPE_class_digit,
5588 _nl_C_LC_CTYPE_class_xdigit, _nl_C_LC_CTYPE_class_space,
5589 _nl_C_LC_CTYPE_class_print, _nl_C_LC_CTYPE_class_graph,
5590 _nl_C_LC_CTYPE_class_blank, _nl_C_LC_CTYPE_class_cntrl,
5591 _nl_C_LC_CTYPE_class_punct, _nl_C_LC_CTYPE_class_alnum,
5592 _nl_C_LC_CTYPE_map_toupper, _nl_C_LC_CTYPE_map_tolower, and
5593 _nl_C_LC_CTYPE_width: Declare as hidden.
5594 * include/locale.h: Declare _nl_locale_file_list.
5595 * locale/C-address.c: Define _nl_C_LC_ADDRESS as hidden.
5596 * locale/C-collate.c: Define _nl_C_LC_COLLATE as hidden.
5597 * locale/C-identification.c: Define _nl_C_LC_IDENTIFICATION as hidden.
5598 * locale/C-measurement.c: Define _nl_C_LC_MEASUREMENT as hidden.
5599 * locale/C-messages.c: Define _nl_C_LC_MESSAGES as hidden.
5600 * locale/C-monetary.c: Define _nl_C_LC_MONETARY as hidden.
5601 * locale/C-name.c: Define _nl_C_LC_NAME as hidden.
5602 * locale/C-numeric.c: Define _nl_C_LC_NUMERIC as hidden.
5603 * locale/C-paper.c: Define _nl_C_LC_PAPER as hidden.
5604 * locale/C-telephone.c: Define _nl_C_LC_TELEPHONE as hidden.
5605 * locale/C-time.c: Define _nl_C_LC_TIME as hidden.
5606 * locale/C-ctype.c: Define _nl_C_LC_CTYPE_class,
5607 _nl_C_LC_CTYPE_class32, _nl_C_LC_CTYPE_toupper, _nl_C_LC_CTYPE_tolower,
5608 _nl_C_LC_CTYPE_class_upper, _nl_C_LC_CTYPE_class_lower,
5609 _nl_C_LC_CTYPE_class_alpha, _nl_C_LC_CTYPE_class_digit,
5610 _nl_C_LC_CTYPE_class_xdigit, _nl_C_LC_CTYPE_class_space,
5611 _nl_C_LC_CTYPE_class_print, _nl_C_LC_CTYPE_class_graph,
5612 _nl_C_LC_CTYPE_class_blank, _nl_C_LC_CTYPE_class_cntrl,
5613 _nl_C_LC_CTYPE_class_punct, _nl_C_LC_CTYPE_class_alnum,
5614 _nl_C_LC_CTYPE_map_toupper, _nl_C_LC_CTYPE_map_tolower,
5615 _nl_C_LC_CTYPE_width, and as hidden.
5616 * locale/findlocale.c: Declare _nl_C as hidden.
5617 * locale/newlocale.c: Likewise.
5618 * locale/setlocale.c: Define _nl_C as hidden. Remove declaration of
5619 _nl_locale_file_list.
5620 * locale/xlocale.c: Declare _nl_C_LC_CTYPE_class,
5621 _nl_C_LC_CTYPE_toupper, and _nl_C_LC_CTYPE_tolower as hidden.
5622 Define _nl_C_locobj as hidden.
5624 * malloc/mtrace.c (_mtrace_file): Define as hidden.
5625 (_mtrace_line): Likewise.
5627 * include/time.h: Declare __mon_yday as hidden.
5628 * time/strptime.c [_LIBC] (__mon_yday): Remove declaration.
5630 * libio/libioP.h: Declare __libio_codecvt as hidden.
5631 * libio/fileops.c: Declare __libio_translit as hidden.
5632 * libio/iofwide.c: Define __libio_translit as hidden.
5634 * login/getutent_r.c: Define __libc_utmp_lock as hidden.
5635 * login/getutid_r.c: Declare __libc_utmp_lock as hidden.
5636 * login/getutline_r.c: Likewise.
5637 * login/utmpname.c: Likewise.
5639 * login/utmp-private.h: Declare __libc_utmp_file_functions,
5640 __libc_utmp_unknown_functions, __libc_utmp_jump_table, and
5641 __libc_utmp_file_name as hidden.
5643 * locale/setlocale.c (__libc_setlocale_lock): Define as hidden.
5644 * locale/duplocale.c (__libc_setlocale_lock): Declare as hidden.
5645 * locale/freelocale.c: Likewise.
5646 * locale/lc-time.c: Likewise.
5648 * sysdeps/unix/bsd/getpt.c (__libc_ptyname1): Define as hidden.
5649 (__libc_ptyname2): Likewise.
5650 * sysdeps/unix/sysv/linux/ptsname.c (__libc_ptyname1): Declare as
5652 (__libc_ptyname2): Likewise.
5654 * sysdeps/generic/sbrk.c: Declare __libc_multiple_libcs as hidden.
5655 * sysdeps/arm/init-first.c (__libc_multiple_libcs): Define as hidden.
5656 * sysdeps/generic/init-first.c: Likewise.
5657 * sysdeps/i386/init-first.c: Likewise.
5658 * sysdeps/mach/hurd/i386/init-first.c: Likewise.
5659 * sysdeps/mach/hurd/mips/init-first.c: Likewise.
5660 * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
5661 * sysdeps/sh/init-first.c: Likewise.
5662 * sysdeps/unix/sysv/aix/init-first.c: Likewise.
5663 * sysdeps/unix/sysv/linux/init-first.c: Likewise.
5665 * stdio-common/itowa-digits.c (_itowa_lower_digits): Define as hidden.
5666 (_itowa_upper_digits): Likewise.
5668 * libio/stdio.c (_IO_stdin, _IO_stdout, _IO_stderr): Define as hidden.
5669 * libio/libio.h [_LIBC] (_IO_stdin, _IO_stdout, _IO_stderr): Declare
5672 * libio/libioP.h: Declare _IO_file_jumps_mmap, _IO_wfile_jumps,
5673 _IO_wfile_jumps_mmap, _IO_proc_jumps, _IO_old_proc_jumps,
5674 _IO_str_jumps, _IO_wstr_jumps, _IO_file_jumps_internal,
5675 _IO_wfile_jumps_internal, and _IO_list_all_internal as hidden.
5677 * gmon/gmon.c (__bb_head): Define as hidden.
5678 * gmon/bb_exit_func.c (__bb_head): Declare as hidden.
5680 * argp/argp-parse.c (_argp_hang): Define as static.
5682 * include/libc-symbols.h (_INTVARDEF): Adjust for visibility
5683 handling in latest compilers.
5685 * inet/in6_addr.c (in6addr_any): Use INTVARDEF not INTDEF to
5687 * libio/fileops.c (_IO_file_jumps): Likewise.
5688 * libio/stdfiles.c (_IO_list_all): Likewise.
5689 * libio/wfileops.c (_IO_wfile_jumps): Likewise.
5691 * malloc/malloc.h: Move __libc_malloc_initialized declaration to
5693 * include/malloc.h: Add __libc_malloc_initialized declaration
5694 here. Mark variable hidden.
5695 * malloc/malloc.c: Include <malloc.h> not "malloc.h".
5697 * elf/dl-open.c (__libc_argc): Declare as hidden.
5698 (__libc_argv): Likewise.
5699 * sysdeps/generic/wordexp.c (__libc_argc): Declare as hidden.
5700 (__libc_argv): Likewise.
5701 * sysdeps/mach/hurd/i386/init-first.c: Define __libc_argc and
5702 __libc_argv as hidden.
5703 * sysdeps/mach/hurd/mips/init-first.c: Likewise.
5704 * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
5705 * sysdeps/unix/sysv/aix/init-first.c: Likewise.
5706 * sysdeps/unix/sysv/linux/init-first.c: Likewise.
5708 * include/stdlib.h (__libc_drand48_data): Declare as hidden.
5709 * stdlib/drand48.c: Remove declaration of __libc_drand48_data here.
5710 * stdlib/erand48.c: Likewise.
5711 * stdlib/jrand48.c: Likewise.
5712 * stdlib/lcong48.c: Likewise.
5713 * stdlib/lrand48.c: Likewise.
5714 * stdlib/mrand48.c: Likewise.
5715 * stdlib/nrand48.c: Likewise.
5716 * stdlib/seed48.c: Likewise.
5717 * stdlib/srand48.c: Likewise.
5719 * stdio-common/_itoa.c (_itoa_base_table): Declare as hidden.
5720 (_itoa_lower_digits_internal): New declaration.
5721 (_itoa_upper_digits_internal): New declaration.
5722 (_itoa): Use INTUSE to acces _itoa_upper_digits and _itoa_lower_digits.
5723 * stdio-common.h (_itoa_lower_digits_internal): New declaration.
5724 (_itoa_upper_digits_internal): New declaration.
5725 (_itoa_word): Use INTUSE to acces _itoa_upper_digits and
5727 * stdio-common/itoa-digits.c: Use INTVARDEF with _itoa_lower_digits.
5728 * stdio-common/itoa-udigits.c: Use INTVARDEF with _itoa_upper_digits.
5730 * elf/dl-minimal.c (_itoa): Declare _itoa_lower_digits as hidden.
5731 * elf/dl-reloc.c (_dl_reloc_bad_type): Likewise.
5733 * stdio-common/_itowa.c (_itoa_base_table): Declare as hidden.
5734 (_itowa_lower_digits): Likewise.
5735 (_itowa_upper_digits): Likewise.
5736 * stdio-common/_itowa.h (_itowa_lower_digits): Likewise.
5737 (_itowa_upper_digits): Likewise.
5739 * intl/plural-exp.h (attribute_hidden): Define as empty macro if
5740 not already defined.
5741 (GERMANIC_PLURAL): Declare as hidden.
5743 * posix/getopt.c (__getopt_initialized): Declare as hidden.
5744 (attribute_hidden): Define as empty macro if not already defined.
5746 * iconv/gconv_int.h (__gconv_path_elem): Declare hidden.
5747 (__gconv_max_path_elem_len): Likewise.
5748 (__gconv_path_envvar): Likewise.
5750 * math/Makefile (gmp-objs): Remove mp_clz_tab.
5751 * stdlib/Makefile (aux): Remove mp_clz_tab.
5752 * stdlib/mp_clz_tab.c: Removed. Not needed anywhere.
5754 * stdlib/exit.h (__exit_funcs): Declare as hidden.
5756 * posix/bug-regex5.c (main): Use nl_langinfo instead of _NL_CURRENT.
5758 * locale/localeinfo.h: Add attribute_hidden to _nl_current_LC_XXX,
5759 _nl_category_names, _nl_category_name_sizes, _nl_current,
5760 _nl_C_name, _nl_POSIX_name, _nl_C_codeset, and _nl_C_LC_XXX.
5762 * intl/dcigettext.c (_nl_default_default_domain): Define as hidden.
5763 (_nl_current_default_domain): Likewise
5764 (_nl_state_lock): Likewise.
5765 * intl/textdomain.c (_nl_default_default_domain): Declare as hidden.
5766 (_nl_current_default_domain): Likewise
5767 (_nl_state_lock): Likewise.
5768 * intl/bindtextdom.c (_nl_state_lock): Likewise.
5770 * stdlib/fpioconst.h (__tens): Add attribute_hidden.
5771 (_fpioconst_pow10): Likewise.
5773 * include/time.h (_tmbuf): Add attribute_hidden.
5775 * time/tzset.c (tzstring_list): Define as static.
5777 * include/time.h: Add attribute_hidden to __tzname_cur_max and
5778 __use_tzfile declaration.
5780 * wcsmbs/wcsmbsload.h: Add attribute_hidden to __wcsmbs_gconv_fcts
5781 and __wcsmbs_last_locale declaration.
5783 2002-02-25 Paul Eggert <eggert@twinsun.com>
5785 * timezone/Makefile (tzbases): Move systemv from here...
5786 (tzlinks): to here, since the entries in systemv were all changed
5787 from Zone to Link lines in tz-2001a. Bug reported (and patch
5788 tested) by Peter Breitenlohner.
5790 2002-03-07 Jakub Jelinek <jakub@redhat.com>
5792 * time/tst-posixtz.c (tests): Add new tests.
5793 (main): Test whether tzset() sets daylight properly.
5795 2002-03-06 Jakub Jelinek <jakub@redhat.com>
5797 * time/tzset.c (tz_compute): Move __daylight, __tzname and
5798 __tzname_cur_max setting...
5799 (tzset_internal): ...here.
5801 2002-03-06 Jakub Jelinek <jakub@redhat.com>
5803 * time/tzset.c (compute_change): Don't return any value.
5804 (tz_compute): Likewise. Don't handle southern hemisphere here.
5805 (__tz_convert): But here.
5807 2002-03-11 Ulrich Drepper <drepper@redhat.com>
5809 * manual/examples/mkfsock.c: Include <string.h> as well.
5810 Patch by Alain De Carolis <alaind@wseurope.com>.
5812 2002-03-06 Isamu Hasegawa <isamu@yamato.ibm.com>
5814 * posix/regexec.c (re_match): Fix incorrect register sizes.
5815 (re_search): Likewise.
5817 2002-03-05 Isamu Hasegawa <isamu@yamato.ibm.com>
5819 * posix/regcomp.c (regfree): Remove a disused condition.
5820 * posix/regex_internal.c (re_acquire_state): Likewise.
5821 (re_acquire_state_context): Likewise.
5822 (register_state): Remove a redundant malloc invocation.
5823 * posix/regex_internal.h: (re_state_table_entry): Simplify
5826 2002-03-05 Isamu Hasegawa <isamu@yamato.ibm.com>
5828 * posix/regcomp.c (regcomp): Add __builtin_expect to error
5829 handling conditions.
5830 (regerror): Likewise.
5831 (regfree): Likewise.
5832 (re_compile_internal): Likewise.
5833 (init_dfa): Likewise.
5834 (init_word_char): Likewise.
5835 (create_initial_state): Likewise.
5836 (analyze): Likewise.
5837 (analyze_tree): Likewise.
5838 (duplicate_node): Likewise.
5839 (calc_eclosure): Likewise.
5840 (calc_eclosure_iter): Likewise.
5842 (parse_reg_exp): Likewise.
5843 (parse_branch): Likewise.
5844 (parse_expression): Likewise.
5845 (parse_subexp): Likewise.
5846 (parse_dup_op): Likewise.
5847 (parse_bracket_exp): Likewise.
5848 (build_equiv_class): Likewise.
5849 (build_charclass): Likewise.
5850 (build_word_op): Likewise.
5851 (fetch_number): Likewise.
5852 (create_tree): Likewise.
5853 (duplicate_tree): Likewise.
5854 * posix/regex.c (BE): New macro.
5855 * posix/regexec.c (re_match): Add __builtin_expect to error
5856 handling conditions.
5857 (re_match_2): Likewise.
5858 (re_search): Likewise.
5859 (re_search_internal): Likewise.
5860 (check_matching): Likewise.
5861 (proceed_next_node): Likewise.
5862 (set_regs): Likewise.
5863 (sift_states_backward): Likewise.
5864 (add_epsilon_backreference): Likewise.
5865 (transit_state): Likewise.
5866 (transit_state_sb): Likewise.
5867 (transit_state_mb): Likewise.
5868 (transit_state_bkref): Likewise.
5869 (transit_state_bkref_loop): Likewise.
5870 (build_trtable): Likewise.
5871 (group_nodes_into_DFAstates): Likewise.
5872 (match_ctx_init): Likewise.
5873 (match_ctx_add_entry): Likewise.
5874 * posix/regex_internal.c (re_string_construct): Add __builtin_expect
5875 to error handling conditions.
5876 (re_string_construct_toupper): Likewise.
5877 (build_wcs_buffer): Likewise.
5878 (build_wcs_upper_buffer): Likewise.
5879 (build_upper_buffer): Likewise.
5880 (re_string_translate_buffer): Likewise.
5881 (re_node_set_alloc): Likewise.
5882 (re_node_set_init_1): Likewise.
5883 (re_node_set_init_2): Likewise.
5884 (re_node_set_init_copy): Likewise.
5885 (re_node_set_intersect): Likewise.
5886 (re_node_set_init_union): Likewise.
5887 (re_node_set_merge): Likewise.
5888 (re_node_set_insert): Likewise.
5889 (re_dfa_add_node): Likewise.
5890 (re_acquire_state): Likewise.
5891 (re_acquire_state_context): Likewise.
5892 (create_new_state_common): Likewise.
5893 (register_state): Likewise.
5894 (create_ci_new_state): Likewise.
5895 (create_cd_new_state): Likewise.
5896 (re_string_context_at): Remove redundant condition.
5898 2002-01-16 Roger Sayle <roger@eyesopen.com>
5900 * sysdeps/i386/i686/strcmp.S: Avoid unconditional jump to a ret.
5902 * sysdeps/i386/i586/strlen.S: Fix typo in comment.
5904 2002-03-11 Jakub Jelinek <jakub@redhat.com>
5906 * sysdeps/i386/elf/configure.in: Fix comment.
5908 * sysdeps/sparc/sparc64/configure.in: New.
5909 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_load_address): Fix
5910 if .dynamic comes before .got.
5911 * config.h.in (SPARC64_DYNAMIC_BEFORE_GOT): Add.
5913 * sysdeps/sparc/sparc64/hp-timing.h (HP_TIMING_DIFF,
5914 HP_TIMING_ACCUM): Fix typos.
5916 2002-03-11 Ulrich Drepper <drepper@redhat.com>
5918 * string/strfry.c: Add some more randomness to the seed.
5919 Patch by James A Morrison <ja2morri@student.math.uwaterloo.ca>.
5921 * po/es.po: Update from translation team.
5922 * po/fr.po: Likewise.
5924 * stdio-common/tfformat.c (sprint_doubles): A test for %F format.
5926 * stdio-common/printf_fp.c (__printf_fp): Correct check for %F format
5927 when determining type of format.
5928 Patch by James Antill <james@anqd.org> [PR libc/2787].
5930 2002-03-04 Jakub Jelinek <jakub@redhat.com>
5932 * sysdeps/unix/bsd/ftime.c (ftime): Don't return 1000 in millitm.
5934 2002-03-11 Roland McGrath <roland@frob.com>
5936 * hurd/hurd/threadvar.h: Include <features.h> for __THROW macro.
5938 * Versions.def (libc): Add GLIBC_2.2.6.
5939 * hurd/Versions (libc: GLIBC_2.2.6): Add __errno_location.
5940 * sysdeps/mach/hurd/errnos.awk: In generated macro, use
5941 __errno_location instead of __hurd_errno_location, and don't inline it.
5942 * sysdeps/mach/hurd/bits/errno.h: Regenerated.
5943 * hurd/errno.c: New file.
5944 * hurd/Makefile (routines): Add errno.
5946 2002-03-11 Ulrich Drepper <drepper@redhat.com>
5948 * stdio-common/vfprintf.c (vfprintf): Avoid crashing for
5949 ridiculously large widths and precisions [PR libc/3026].
5951 2002-03-11 Andreas Jaeger <aj@suse.de>
5953 * sysdeps/unix/sysv/linux/s390/ldd-rewrite.sed: Fix for bi-arch
5955 Patch by Susanne Oberhauser <froh@SuSE.de>.
5957 2002-03-11 Ulrich Drepper <drepper@redhat.com>
5959 * inet/rexec.c (ahostbuf): Define as static.
5961 * wctype/wcfuncs.c (__ctype32_wctype): Declare as hidden.
5962 (__ctype32_wctrans): Likewise.
5963 * wcsmbs/wcwidth.h (__ctype32_width): Declare as hidden.
5964 * ctype/ctype-info.c (__ctype32_wctype): Add attribute_hidden.
5965 (__ctype32_wctrans): Likewise.
5966 (__ctype32_width): Likewise.
5968 * gmon/Makefile (elide-routines.os): Add bb_init_func and bb_exit_func.
5969 They were never exported anyway.
5971 * gmon/gmon.c (_gmonparam): Add attribute_hidden.
5972 * gmon/sys/gmon.h: Remove declaration of _gmonparam. It wasn't
5974 * include/sys/gmon.h: Declare _gmonparam.
5976 * sysdeps/unix/sysv/linux/i386/getdents64.c: Don't define compatibility
5977 symbols for getdents64. They were never exported.
5979 2002-03-09 Roland McGrath <roland@frob.com>
5981 * hurd/hurdsig.c (write_corefile): Fix swapped arguments to __dir_link.
5982 Reported by Jon Arney <jarney1@cox.net>.
5984 2002-02-23 Roland McGrath <roland@frob.com>
5986 * hurd/hurd/threadvar.h (__hurd_threadvar_location): Add __THROW to
5988 (__hurd_errno_location): Function removed.
5990 2002-03-06 Andreas Jaeger <aj@suse.de>
5992 * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Add compatibility for
5995 2002-03-04 Andreas Jaeger <aj@suse.de>
5997 * sysdeps/unix/sysv/linux/x86_64/readelflib.c: New.
5999 * sysdeps/unix/sysv/linux/kernel-features.h: Add defines for
6002 * sysdeps/unix/sysv/linux/x86_64/bits/socket.h: New.
6004 * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: New.
6006 * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: New.
6008 * sysdeps/x86_64/bits/setjmp.h: New.
6010 * sysdeps/unix/sysv/linux/x86_64/bits/sem.h: New.
6012 * sysdeps/unix/sysv/linux/x86_64/bits/resource.h: New.
6014 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Add compatibilty
6016 * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Likewise.
6017 * sysdeps/unix/sysv/linux/x86_64/bits/types.h: Likewise.
6019 2002-02-28 Bo Thorsen <bo@suse.de>
6021 * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Merge with i386
6024 2002-03-03 Andreas Jaeger <aj@suse.de>
6026 * sysdeps/x86_64/bits/wordsize.h: New file.
6028 * elf/nodlopenmod2.c: Provide prototype to avoid warning.
6029 * elf/tst-tlsmod1.c: Likewise.
6031 * posix/regcomp.c: Get regex.h from include dir for internal
6034 * sysdeps/unix/sysv/linux/init-first.c: Move __init_misc prototype
6035 to libc-internal.h and include it.
6036 * include/libc-internal.h: Add __init_misc.
6038 * misc/init-misc.c: Include libc-internal.h for prototypes.
6040 * sysdeps/wordsize-32/divdi3.c: Add prototypes to avoid warnings.
6042 * misc/error.c [_LIBC]: Include libioP.h for prototype of
6045 2002-03-03 Ulrich Drepper <drepper@redhat.com>
6047 * posix/regcomp.c: Compatibility changes to allow using the code
6050 2002-02-28 Hartvig Ekner <hartvige@mips.com>
6052 * sysdeps/mips/elf/start.S: Added initialization of GP (to _gp) if
6055 2002-03-02 Ulrich Drepper <drepper@redhat.com>
6057 * sysdeps/generic/dl-sysdep.c (_dl_important_hwcaps): Fix creation
6058 of .str elements in the returned data structure.
6060 * elf/elf.h: Add Alpha TLS bits.
6062 2002-02-28 Jakub Jelinek <jakub@redhat.com>
6064 * sysdeps/unix/sysv/linux/nice.c: New file.
6066 2002-03-01 Ulrich Drepper <drepper@redhat.com>
6068 * elf/Makefile (dl-routines): Add dl-origin.
6069 (elide-routines.os): Add dl-origin.
6070 * elf/Versions [ld] (GLIBC_PRIVATE): Add _dl_get_origin.
6071 * elf/dl-debug.c (_dl_debug_initialize): Add missing INTUSE around
6073 * include/libc-symbols.c: Define attribute_hidden depending on
6074 HAVE_VISIBILITY_ATTRIBUTE. Add definition of INTVARDEF.
6076 * elf/dl-deps.c: Use INTUSE with __libc_enable_secure.
6077 * elf/dl-load.c: Likewise.
6078 * elf/rtld.c: Likewise.
6079 * include/unistd.h: Declare __libc_enable_secure_internal.
6080 * sysdeps/generic/dl-sysdep.c: Use INTVARDEF with __libc_enable_secure.
6081 Use INTUSE with __libc_enable_secure.
6082 * sysdeps/mach/hurd/dl-sysdep.c: Likewise.
6084 * elf/dl-deps.c: Use INTUSE with _dl_out_of_memory.
6085 * elf/dl-error.c: Likewise,
6086 * sysdeps/generic/ldsodefs.h: Declare _dl_out_of_memory_internal.
6088 * elf/dl-dst.h [_RTLD_GLOBAL]: Define _dl_get_origin to use INTUSE.
6089 * sysdeps/generic/dl-origin.c: Undefine _dl_get_origin macro before
6090 function definition. Use INTDEF with _dl_get_origin.
6091 * sysdeps/unix/sysv/linux/dl-origin.c: Likewise.
6093 * elf/dl-init.c: Use INTUSE with _dl_starting_up.
6094 * elf/rtld.c: Likewise. Use INTVARDEF for _dl_starting_up.
6096 * elf/dl-profile.c: Use INTDEF for _dl_mcount.
6097 * elf/dl-runtime.c: Use INTUSE with _dl_mcount.
6098 * sysdeps/generic/ldsodefs.h: Declare _dl_mcount_internal.
6100 * elf/dl-conflict.c: Use rtld_progrname instead of _dl_argv[0].
6101 * elf/dl-deps.c: Likewise.
6102 * elf/dl-error.c: Likewise.
6103 * elf/dl-fini.c: Likewise.
6104 * elf/dl-init.c: Likewise.
6105 * elf/dl-load.c: Likewise.
6106 * elf/dl-lookup.c: Likewise.
6107 * elf/dl-reloc.c: Likewise.
6108 * elf/dl-version.c: Likewise.
6109 * elf/do-lookup.h: Likewise.
6110 * sysdeps/arm/dl-machine.h: Likewise.
6111 * sysdeps/cris/dl-machine.h: Likewise.
6112 * sysdeps/hppa/dl-machine.h: Likewise.
6113 * sysdeps/i386/dl-machine.h: Likewise.
6114 * sysdeps/m68k/dl-machine.h: Likewise.
6115 * sysdeps/powerpc/dl-machine.h: Likewise.
6116 * sysdeps/s390/s390-32/dl-machine.h: Likewise.
6117 * sysdeps/s390/s390-64/dl-machine.h: Likewise.
6118 * sysdeps/sh/dl-machine.h: Likewise.
6119 * sysdeps/sparc/sparc-32/dl-machine.h: Likewise.
6120 * sysdeps/sparc/sparc-64/dl-machine.h: Likewise.
6121 * sysdeps/x86_64/dl-machine.h: Likewise.
6122 * elf/rtld.c: Use INTDEF for _dl_argv. Use rtld_progrname instead of
6123 _dl_argv[0]. Use INTUSE with _dl_argv.
6124 * sysdeps/generic/dl-sysdep.c: Use INTUSE with _dl_argv.
6125 * sysdeps/generic/ldsodefs.h: Define rtld_progname macro.
6127 2002-02-28 Jakub Jelinek <jakub@redhat.com>
6129 * elf/rtld.c (_rtld_global): Remove .protected.
6130 (_rtld_local): Strong alias to _rtld_global.
6131 * elf/Makefile (CFLAGS-.os): Add -D_RTLD_LOCAL if compiling rtld
6133 * sysdeps/generic/ldsodefs.h (GL): If SHARED and _RTLD_LOCAL, use
6134 _rtld_local instead of _rtld_global.
6135 (_rtld_local): Add hidden extern, possibly in .sdata section.
6136 * configure.in: Add tests for visibility attribute and .sdata.
6137 * config.h.in: Add HAVE_VISIBILITY_ATTRIBUTE and HAVE_SDATA_SECTION.
6138 * sysdeps/alpha/dl-machine.h: Use _rtld_local instead of _rtld_global.
6139 * sysdeps/arm/dl-machine.h: Likewise.
6140 * sysdeps/generic/ldsodefs.h: Likewise.
6141 * sysdeps/hppa/dl-machine.h: Likewise.
6142 * sysdeps/cris/dl-machine.h: Likewise.
6143 * sysdeps/i386/dl-machine.h: Likewise.
6144 * sysdeps/ia64/dl-machine.h: Likewise.
6145 * sysdeps/m68k/dl-machine.h: Likewise.
6146 * sysdeps/mips/mips64/dl-machine.h: Likewise.
6147 * sysdeps/mips/dl-machine.h: Likewise.
6148 * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
6149 * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
6150 * sysdeps/sh/dl-machine.h: Likewise.
6151 * sysdeps/s390/s390-32/dl-machine.h: Likewise.
6152 * sysdeps/s390/s390-64/dl-machine.h: Likewise.
6153 * sysdeps/x86_64/dl-machine.h: Likewise.
6155 2002-02-28 Ulrich Drepper <drepper@redhat.com>
6157 * login/login.c (login): Always initialize ut_line field
6160 2002-02-28 Jakub Jelinek <jakub@redhat.com>
6162 * sysdeps/i386/Makefile (sysdep_routines): Add
6164 (shared-only-routines): Likewise.
6165 * sysdeps/m68k/Makefile (sysdep_routines): Likewise.
6166 (shared-only-routines): Likewise.
6167 * sysdeps/s390/s390-32/Makefile (sysdep_routines): Likewise.
6168 (shared-only-routines): Likewise.
6169 * sysdeps/wordsize-32/divdi3.c: New file.
6171 2002-02-28 Ulrich Drepper <drepper@redhat.com>
6173 * locale/iso-4217.def: Remove obsolete currencies for countries
6176 2002-02-28 Isamu Hasegawa <isamu@yamato.ibm.com>
6178 * posix/regcomp.c (regcomp): Remove a redundant condition.
6179 (init_word_char): Add a check on malloc failure.
6180 (create_initial_state): Likewise.
6181 (duplicate_node): Likewise.
6182 (calc_eclosure): Likewise.
6183 (calc_eclosure_iter): Likewise.
6184 (parse_expression): Likewise.
6185 (parse_bracket_exp): Remove unnecessary malloc invocations.
6186 (build_equiv_class): Likewise.
6187 (build_charclass): Likewise.
6188 * posix/regex_internal.c (re_node_set_intersect): Add a check
6190 (re_node_set_add_intersect): Likewise.
6191 (re_node_set_merge): Likewise.
6192 (re_acquire_state): Likewise.
6193 (re_acquire_state_context): Likewise.
6194 (create_newstate_common): Likewise.
6195 (register_state): Likewise.
6196 (create_ci_newstate): Likewise.
6197 (create_cd_newstate): Likewise.
6198 * posix/regex_internal.h: Fix prototypes of re_acquire_state
6199 and re_acquire_state_context.
6200 * posix/regexec.c (regexec): Suit it to the error handling of
6202 (re_match): Likewise.
6203 (re_search): Likewise.
6204 (re_search_internal): Add a check on malloc failure.
6205 (acquire_init_state_context): Likewise.
6206 (check_matching): Likewise.
6207 (proceed_next_node): Likewise.
6208 (set_regs): Likewise.
6209 (sift_states_backward): Likewise.
6210 (sift_states_iter_bkref): Likewise.
6211 (add_epsilon_backreference): Likewise.
6212 (transit_state): Likewise.
6213 (transit_state_sb): Likewise.
6214 (transit_state_mb): Likewise.
6215 (transit_state_bkref_loop): Likewise.
6216 (build_trtable): Likewise.
6217 (group_nodes_into_DFAstates): Likewise.
6218 (match_ctx_init): Likewise.
6219 (match_ctx_add_entry): Likewise.
6221 2002-02-27 Ulrich Drepper <drepper@redhat.com>
6223 * elf/dl-load.c (_dl_map_object_from_fd): Always add SONAME to
6224 l_libname if profiling is enabled [PR libc/2916].
6226 * sysdeps/ia64/dl-tls.h: New file.
6228 2002-02-27 Jakub Jelinek <jakub@redhat.com>
6230 * sysdeps/alpha/dl-machine.h (elf_machine_load_address, RTLD_START):
6231 Work around an Alpha gas bug.
6233 2002-02-27 Ulrich Drepper <drepper@redhat.com>
6235 * catgets/open_catalog.c (__open_catalog): Fix typo in code which
6236 uses read to load the catalog.
6237 Patch by Andy Isaacson <adi@unlimitedscale.com> [PR libc/3011].
6239 2002-02-26 Ulrich Drepper <drepper@redhat.com>
6241 * posix/Makefile (distribute): Add regcomp.c, regexec.c,
6242 regex_internal.c, and regex_internal.h.
6243 (CFLAGS-regex.c): Replace -DMBS_SUPPORT with -DRE_ENABLE_I18N.
6244 * posix/regex.c: Complete rewrite.
6245 * posix/regexec.c: New file.
6246 * posix/regcomp.c: New file.
6247 * posix/regex_internal.c: New file.
6248 * posix/regex_internal.h: New file.
6249 * posix/regex.h (RE_ICASE): New macro.
6250 Contributed by Isamu Hasegawa <isamu@yamato.ibm.com>.
6252 * stdio-common/vfscanf.c (_IO_vfwscanf): Always use ungetc, never
6253 ungetwc. It's a macro.
6254 * libio/tst-swscanf.c (do_test): Adjust for now fixed wscanf
6256 Reported by Jason Merrill <jason@redhat.com>.
6258 2002-02-25 Jakub Jelinek <jakub@redhat.com>
6260 * libio/iofopen.c (__fopen_maybe_mmap): Set the initial
6261 position to fp->_offset if it is set.
6262 * stdio-common/Makefile (tests): Add tst-fdopen.
6263 * stdio-common/tst-fdopen.c: New test.
6265 2002-02-25 Jakub Jelinek <jakub@redhat.com>
6267 * libio/fileops.c (_IO_file_xsgetn_mmap): Handle reading from backup.
6268 * stdio-common/tst-ungetc.c (main): Add another test.
6270 2002-02-25 Ulrich Drepper <drepper@redhat.com>
6272 * assert/assert-perr.c: Use INTUSE to reference functions and variables
6273 inside libc itself. Use INTDEF and INTDEF2 to define appropriate
6274 aliases. Add prototypes for the new aliases.
6275 * assert/assert.c: Likewise.
6276 * include/libc-symbols.h: Likewise.
6277 * include/stdio.h: Likewise.
6278 * include/netinet/in.h: Likewise.
6279 * include/rpc/auth.h: Likewise.
6280 * include/rpc/auth_unix.h: Likewise.
6281 * include/rpc/key_prot.h: Likewise.
6282 * include/rpc/pmap_prot.h: Likewise.
6283 * include/rpc/pmap_rmt.h: Likewise.
6284 * include/rpc/rpc_msg.h: Likewise.
6285 * include/rpc/xdr.h: Likewise.
6286 * inet/gethstbyad_r.c: Likewise.
6287 * inet/gethstbynm2_r.c: Likewise.
6288 * inet/gethstbynm_r.c: Likewise.
6289 * inet/gethstent_r.c: Likewise.
6290 * inet/in6_addr.c: Likewise.
6291 * libio/__fpurge.c: Likewise.
6292 * libio/filedoalloc.c: Likewise.
6293 * libio/fileops.c: Likewise.
6294 * libio/ftello.c: Likewise.
6295 * libio/ftello64.c: Likewise.
6296 * libio/genops.c: Likewise.
6297 * libio/iofclose.c: Likewise.
6298 * libio/iofdopen.c: Likewise.
6299 * libio/iofflush.c: Likewise.
6300 * libio/iofflush_u.c: Likewise.
6301 * libio/iofgetpos.c: Likewise.
6302 * libio/iofgetpos64.c: Likewise.
6303 * libio/iofgets.c: Likewise.
6304 * libio/iofgets_u.c: Likewise.
6305 * libio/iofopen.c: Likewise.
6306 * libio/iofopncook.c: Likewise.
6307 * libio/iofputs.c: Likewise.
6308 * libio/iofread.c: Likewise.
6309 * libio/iofread_u.c: Likewise.
6310 * libio/iofsetpos.c: Likewise.
6311 * libio/iofsetpos64.c: Likewise.
6312 * libio/ioftell.c: Likewise.
6313 * libio/iofwrite.c: Likewise.
6314 * libio/iogetline.c: Likewise.
6315 * libio/iogets.c: Likewise.
6316 * libio/iogetwline.c: Likewise.
6317 * libio/iolibio.h: Likewise.
6318 * libio/iopadn.c: Likewise.
6319 * libio/iopopen.c: Likewise.
6320 * libio/ioseekoff.c: Likewise.
6321 * libio/ioseekpos.c: Likewise.
6322 * libio/iosetbuffer.c: Likewise.
6323 * libio/iosetvbuf.c: Likewise.
6324 * libio/ioungetc.c: Likewise.
6325 * libio/ioungetwc.c: Likewise.
6326 * libio/iovdprintf.c: Likewise.
6327 * libio/iovsprintf.c: Likewise.
6328 * libio/iovsscanf.c: Likewise.
6329 * libio/libioP.h: Likewise.
6330 * libio/memstream.c: Likewise.
6331 * libio/obprintf.c: Likewise.
6332 * libio/oldfileops.c: Likewise.
6333 * libio/oldiofclose.c: Likewise.
6334 * libio/oldiofdopen.c: Likewise.
6335 * libio/oldiofgetpos.c: Likewise.
6336 * libio/oldiofgetpos64.c: Likewise.
6337 * libio/oldiofopen.c: Likewise.
6338 * libio/oldiofsetpos.c: Likewise.
6339 * libio/oldiofsetpos64.c: Likewise.
6340 * libio/oldiopopen.c: Likewise.
6341 * libio/oldstdfiles.c: Likewise.
6342 * libio/putc.c: Likewise.
6343 * libio/setbuf.c: Likewise.
6344 * libio/setlinebuf.c: Likewise.
6345 * libio/stdfiles.c: Likewise.
6346 * libio/stdio.c: Likewise.
6347 * libio/strops.c: Likewise.
6348 * libio/vasprintf.c: Likewise.
6349 * libio/vscanf.c: Likewise.
6350 * libio/vsnprintf.c: Likewise.
6351 * libio/vswprintf.c: Likewise.
6352 * libio/wfiledoalloc.c: Likewise.
6353 * libio/wfileops.c: Likewise.
6354 * libio/wgenops.c: Likewise.
6355 * libio/wstrops.c: Likewise.
6356 * malloc/mtrace.c: Likewise.
6357 * misc/error.c: Likewise.
6358 * misc/syslog.c: Likewise.
6359 * nss/getXXbyYY_r.c: Likewise.
6360 * nss/getXXent_r.c: Likewise.
6361 * nss/hosts-lookup.c: Likewise.
6362 * stdio-common/getw.c
6363 * stdio-common/printf-prs.c: Likewise.
6364 * stdio-common/printf_fp.c: Likewise.
6365 * stdio-common/printf_size.c: Likewise.
6366 * stdio-common/putw.c: Likewise.
6367 * stdio-common/scanf.c: Likewise.
6368 * stdio-common/sprintf.c: Likewise.
6369 * stdio-common/tmpfile64.c: Likewise.
6370 * stdio-common/vfprintf.c: Likewise.
6371 * stdio-common/vfscanf.c: Likewise.
6372 * stdlib/strfmon.c: Likewise.
6373 * sunrpc/auth_des.c: Likewise.
6374 * sunrpc/auth_none.c: Likewise.
6375 * sunrpc/auth_unix.c: Likewise.
6376 * sunrpc/authdes_prot.c: Likewise.
6377 * sunrpc/authuxprot.c: Likewise.
6378 * sunrpc/clnt_perr.c: Likewise.
6379 * sunrpc/clnt_raw.c: Likewise.
6380 * sunrpc/clnt_tcp.c: Likewise.
6381 * sunrpc/clnt_udp.c: Likewise.
6382 * sunrpc/clnt_unix.c: Likewise.
6383 * sunrpc/key_call.c: Likewise.
6384 * sunrpc/key_prot.c: Likewise.
6385 * sunrpc/openchild.c: Likewise.
6386 * sunrpc/pm_getmaps.c: Likewise.
6387 * sunrpc/pm_getport.c: Likewise.
6388 * sunrpc/pmap_clnt.c: Likewise.
6389 * sunrpc/pmap_prot.c: Likewise.
6390 * sunrpc/pmap_prot2.c: Likewise.
6391 * sunrpc/pmap_rmt.c: Likewise.
6392 * sunrpc/rpc_cmsg.c: Likewise.
6393 * sunrpc/rpc_prot.c: Likewise.
6394 * sunrpc/svc_authux.c: Likewise.
6395 * sunrpc/svc_raw.c: Likewise.
6396 * sunrpc/svc_simple.c: Likewise.
6397 * sunrpc/svc_tcp.c: Likewise.
6398 * sunrpc/svc_udp.c: Likewise.
6399 * sunrpc/svc_unix.c: Likewise.
6400 * sunrpc/xdr.c: Likewise.
6401 * sunrpc/xdr_array.c: Likewise.
6402 * sunrpc/xdr_mem.c: Likewise.
6403 * sunrpc/xdr_rec.c: Likewise.
6404 * sunrpc/xdr_ref.c: Likewise.
6405 * sunrpc/xdr_stdio.c: Likewise.
6406 * sysdeps/generic/_strerror.c: Likewise.
6407 * sysdeps/generic/printf_fphex.c: Likewise.
6408 * sysdeps/generic/tmpfile.c: Likewise.
6409 * sysdeps/gnu/errlist.awk: Likewise.
6410 * sysdeps/gnu/errlist.c: Likewise.
6412 * libio/Makefile (routines): Remove iosprint.
6413 * libio/iosprintf.c: Removed
6416 2002-02-24 Ulrich Drepper <drepper@redhat.com>
6418 * elf/dl-support.c (_dl_non_dynamic_init): Renamed from
6419 non_dynamic_init and exported now.
6420 * sysdeps/unix/sysv/linux/ldsodefs.h: Declare _dl_non_dynamic_init.
6421 * sysdeps/unix/sysv/linux/init-first.c: Call _dl_non_dynamic_init for
6423 * sysdeps/mach/hurd/i386/init-first.c: Likewise.
6424 * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
6425 * sysdeps/mach/hurd/mips/init-first.c: Likewise.
6427 2002-02-23 Ulrich Drepper <drepper@redhat.com>
6429 * elf/dl-close.c (free_slotinfo): Check for end of list and return
6432 * locale/iso-639.def: Add language codes for Walloon.
6434 * elf/dl-fini.c (_dl_fini): Print some final statistics on the
6435 total number of relocations performed.
6437 * elf/sprof.c (load_profdata): If do_test provide information as
6438 to why loading failed.
6439 * elf/dl-profile.c (_dl_start_profile): Initialize all of
6442 * csu/set-init.c: Moved to...
6443 * sysdeps/mach/hurd/set-init.c: ...here. New file.
6444 * csu/Makefile: Don't compile set-init.
6445 * sysdeps/mach/hurd/Makefile: Compile set-init for subdir csu.
6446 * sysdeps/mach/hurd/i386/init-first.c: Call __init_misc in addition
6448 * sysdeps/mach/hurd/mips/init-first.c: Likewise.
6449 * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
6450 * sysdeps/unix/sysv/linux/init-first.c: Call __init_misc instead of
6452 * misc/init-misc.c: Always export __init_misc. Don't define hooks for
6455 2002-02-22 Ulrich Drepper <drepper@redhat.com>
6457 * elf/Versions: Add _dl_allocate_tls and _dl_deallocate_tls.
6458 * elf/rtld.c (dl_main): Use _dl_allocate_tls with INTUSE.
6459 * sysdeps/generic/dl-tls.c: Add INTDEF for _dl_allocate_tls.
6460 (_dl_deallocate_tls): New function.
6461 * sysdeps/generic/ldsodefs.h: Declare _dl_allocate_tls_internal and
6464 2002-02-21 Jakub Jelinek <jakub@redhat.com>
6466 * libio/fileops.c (_IO_file_seekoff_mmap): Fix fseek SEEK_END.
6467 * stdio-common/tst-fseek.c (main): Add test for this.
6469 2002-02-19 Ulrich Drepper <drepper@redhat.com.>
6471 * stdlib/Versions: Move __on_exit to GLIBC_PRIVATE.
6473 2002-02-19 Jakub Jelinek <jakub@redhat.com>
6475 * libio/fileops.c (_IO_file_underflow_mmap): Cast to unsigned char
6476 pointer before dereferencing.
6478 2002-02-18 Roland McGrath <roland@frob.com>
6480 * sysdeps/mach/hurd/times.c: Fix typo in last change.
6482 * sysdeps/mach/hurd/setpriority.c [POLICY_TIMESHARE_BASE_COUNT]:
6483 Use task_policy in place of task_priority.
6485 * sysdeps/generic/bits/mman.h
6486 (MS_ASYNC, MS_SYNC, MS_INVALIDATE): New macros.
6487 * sysdeps/mach/msync.c: New file.
6489 * sysdeps/mach/powerpc/syscall.S: New file.
6491 * mach/msg.c [MACH_MSG_OVERWRITE]
6492 (__mach_msg_trap, __mach_msg_overwrite): New functions.
6493 * mach/Versions (libc: GLIBC_2.0): Add mach_msg_overwrite and __ name.
6495 * sysdeps/mach/configure.in: Check for clock.defs to put into
6496 mach_interface_list.
6497 * sysdeps/mach/configure: Regenerated.
6499 * mach/Makefile (mach-machine): New variable, set from $(base-machine).
6500 ($(objpfx)mach-syscalls.mk): Use it in place of $(base-machine).
6501 ($(mach-syscalls:%=$(objpfx)%.S) static pattern rule):
6502 Use <mach/machine/syscall_sw.h> instead of <sysdep.h>.
6503 (mach-shortcuts): Add device_read_overwrite_request,
6504 device_read_overwrite, vm_read_overwrite, thread_switch.
6506 * configure.in (base_machine): Set to $machine by default.
6507 * configure: Regenerated.
6509 * sysdeps/mach/configure.in: Check for <mach/machine/ndr_def.h>
6510 or <machine/ndr_def.h> and add -DNDR_DEF_HEADER=... to DEFINES.
6511 * sysdeps/mach/configure: Regenerated.
6512 * mach/mach_init.c [NDR_DEF_HEADER]: #include it.
6514 * hurd/hurdfault.c (_hurdsig_fault_init): Add a cast.
6516 * hurd/hurd/signal.h: Include <setjmp.h> for `jmp_buf' decl.
6518 * mach/msgserver.c (__mach_msg_server_timeout) [! MACH_RCV_LARGE]:
6519 Double MAX_SIZE and don't retry on MACH_RCV_TOO_LARGE.
6521 2002-02-17 Roland McGrath <roland@frob.com>
6523 * sysdeps/mach/hurd/times.c
6524 [NO_CREATION_TIME] (startup_time): New static variable.
6525 [NO_CREATION_TIME] (times_init): New static function in __libc_subinit.
6526 (__times) [NO_CREATION_TIME]: Use startup_time in lieu of task
6527 creation_time from task_basic_info.
6528 (__times): Use __gettimeofday instead of __host_get_time.
6530 * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg) [! MACH_MSG_TYPE_BIT]:
6531 Use untyped Mach IPC message format.
6533 * hurd/catch-exc.c: Include <assert.h>, missing from last change.
6535 * hurd/Versions (libc: GLIBC_2.0): Add _S_catch_exception_raise_state,
6536 _S_catch_exception_raise_state_identity,
6537 _hurdsig_fault_catch_exception_raise_state,
6538 _hurdsig_fault_catch_exception_raise_state_identity.
6540 * mach/shortcut.awk: Don't apply the /^}$/ rule when $proto == "".
6542 * sysdeps/mach/getsysstats.c (__get_avphys_pages) [HOST_VM_INFO]: Use
6543 __host_info with HOST_VM_INFO flavor instead of __vm_statistics.
6545 * sysdeps/mach/hurd/getpriority.c [TASK_SCHED_TIMESHARE_INFO]: Find
6546 `base_priority' in PIP->timeshare_base_info instead of PIP->taskinfo.
6548 * sysdeps/mach/hurd/dl-sysdep.c [FMH]: Define for i386 only.
6549 (fmh, unfmh): Define these functions only #if FMH. Otherwise define
6550 them as no-op macros.
6551 [FMH] (ELF_MACHINE_USER_ADDRESS_MASK): Redefine it to zero.
6552 (__mmap): Uncomment uses of ELF_MACHINE_USER_ADDRESS_MASK.
6554 * sysdeps/powerpc/dl-machine.h
6555 (ELF_MACHINE_USER_ADDRESS_MASK): New macro.
6557 * hurd/hurdselect.c (_hurd_select) [MACH_MSG_TRAILER_MINIMUM_SIZE]:
6558 Use untyped Mach IPC message format.
6560 * sysdeps/mach/hurd/ioctl.c (__ioctl) [! MACH_MSG_TYPE_BIT]:
6561 Handle untyped Mach IPC message formats.
6563 * hurd/catch-exc.c (_S_catch_exception_raise) [EXC_MASK_ALL]:
6564 Expect different argument conventions when this is defined.
6565 [EXC_MASK_ALL] (_S_catch_exception_raise_state): New stub function.
6566 [EXC_MASK_ALL] (_S_catch_exception_raise_state_identity): Likewise.
6567 * hurd/hurdfault.c: Likewise for _hurdsig_fault_catch_exception_*.
6568 [NDR_CHAR_ASCII] (mig_reply_header_t): #define as mig_reply_error_t
6569 for OSF Mach variant.
6570 (faulted): Use mig_reply_error_t for REPLY.
6571 (_hurdsig_fault_init) [EXC_MASK_ALL]: Use EXCEPTION_STATE_IDENTITY
6572 in __thread_set_exception_ports call.
6573 (_hurdsig_fault_init) [MACH_PORT_RECEIVE_STATUS]: Use
6574 __mach_port_set_attributes in place of __mach_port_set_qlimit.
6576 * sysdeps/mach/powerpc/sysdep.h (_MACH_MACHINE_ASM_H): Define this
6577 before include <sysdeps/mach/sysdep.h>, to inhibit <mach/machine/asm.h>
6578 on Darwin, which includes bogons.
6580 * sysdeps/powerpc/dl-machine.h (elf_machine_rela): Move local
6581 variable LOADBASE so it's not declared when it's not used.
6583 2002-02-16 Roland McGrath <roland@frob.com>
6585 * sysdeps/mach/hurd/times.c (__times) [NO_CREATION_TIME]: Don't try
6586 to use BI.creation_time.
6588 * mach/Machrules (MIG): Add -x c to CPP value passed down.
6590 * config.h.in: Add #undef HAVE_HOST_PAGE_SIZE.
6591 * sysdeps/mach/configure.in: Check for host_page_size RPC to define it.
6592 * mach/mach_init.c (__mach_init) [HAVE_HOST_PAGE_SIZE]: Use
6593 host_page_size instead of vm_statistics.
6595 * sysdeps/mach/Makefile (mach-before-compile): Don't include
6596 mach_interface.h here, since not all variants use that name.
6598 * sysdeps/mach/configure.in: Add some checks for Mach headers
6599 to ensure a sane installation.
6600 (mach_interface_list): Define this variable by checking for .defs
6601 files found in various variants.
6602 * configure.in (mach_interface_list): AC_SUBST this.
6603 * config.make.in (mach-interface-list): New substituted variable.
6604 * mach/Makefile (user-interfaces): Define this using the value
6605 of $(mach-interface-list) instead of mach, mach4.
6606 Updated other references to mach_interface to use it as well.
6608 * sysdeps/mach/powerpc/machine-lock.h: Avoid multi-line strings.
6610 * mach/msgserver.c [NDR_CHAR_ASCII] (mig_reply_header_t): #define as
6611 mig_reply_error_t for OSF Mach variant.
6613 * mach/Makefile (routines): Remove bootprivport.
6614 * mach/bootprivport.c: File removed. It has never been used.
6616 * mach/msg-destroy.c (__mach_msg_destroy) [MACH_MSG_PORT_DESCRIPTOR]:
6617 Grok the OSF flavor of message format.
6618 (mach_msg_destroy_port): For MAKE_SEND and
6619 MAKE_SEND_ONCE rights, create an destroy a right to ensure proper
6620 no-senders notification.
6622 2002-02-06 Roland McGrath <roland@frob.com>
6624 * hurd/Versions (libc: GLIBC_2.0): Move cthread_fork, cthread_detach
6625 to here if 2.0 compatibility enabled ...
6626 (libc: GLIBC_2.1.3): ... from here.
6628 2002-02-15 Ulrich Drepper <drepper@redhat.com>
6630 * elf/dl-open.c (dl_open_worker): Catch wrap-around of TLS
6632 * elf/dl-close.c (_dl_close): Likewise.
6634 2002-02-14 Ulrich Drepper <drepper@redhat.com>
6636 * elf/Makefile: Add rules to build and run tst-tls8.
6637 * elf/tst-tls8.c: New file.
6638 * elf/tst-tlsmod4.c: New file.
6640 * stdlib/test-a64l.c (tests): Add more test cases.
6642 * sunrpc/rtime.c (rtime): Change type of thetime to uint32_t.
6643 Reported by Walter Harms <WHarms@bfs.de>.
6645 2002-02-11 Jes Sorensen <jes@trained-monkey.org>
6647 * sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h: Add sc_flag bit
6648 definitions for struct sigcontext.
6649 Suggested by David Mosberger-Tang.
6651 2002-02-13 Ulrich Drepper <drepper@redhat.com>
6653 * elf/dl-close.c (remove_slotinfo): New function. Handles everything
6654 for removing reference of module in slotinfo list.
6655 (_dl_close): Use remove_slotinfo.
6656 * sysdeps/generic/dl-tls.c: General pretty printing.
6657 (oom): Define only if SHARED.
6658 (_dl_next_tls_modid): Correct starting point for the case we assume
6659 there is a gap. Add missing instruction grouping (doh!). Correct
6660 tests for reaching maximum index.
6661 * elf/Makefile: Add rules to build and run tst-tls7.
6662 * elf/tst-tls7.c: New file.
6663 * elf/tst-tlsmod3.c: New file.
6665 * elf/tst-tlsmod1.c: Move #include "tls-macros.h" instead #ifdef
6667 * elf/tst-tlsmod2.c: Likewise.
6669 * elf/dl-close.c (_dl_close): When closing an object using TLS
6670 either decrement dl_tls_max_dtv_idx or set dl_tls_dtv_gaps to
6671 true. Increment dl_tls_generation only if we closed any TLS-using
6673 * elf/tst-tls6.c: New file.
6674 * elf/Makefile: Add rules to build and run tst-tls6.
6676 * po/da.po: Update from translation team.
6678 * locale/categories.def: Fix typo [PR libc/2948].
6679 * po/Makefile (BROKEN_LINGUAS): Works with current gettext
6681 * locale/iso-4217.def: Update from official version [PR libc/2950].
6682 * glibcbug.in: Honor TMPDIR [PR libc/2951].
6683 * locale/programs/ld-collate.c (collate_finish): Bail out with a
6684 message if input is too confusion instead of using assert.
6685 (collate_read): Don't crash on unknown symbol [PR libc/2952].
6686 Patches by Alastair McKinstry <alastair@pdd.3com.com>.
6688 * elf/tst-tls1.c: Move #include "tls-macros.h" instead #ifdef USE_TLS.
6689 * elf/tst-tls2.c: Likewise.
6690 * elf/tst-tls3.c: Likewise.
6692 2002-02-13 Jakub Jelinek <jakub@redhat.com>
6694 * elf/dl-close.c (free_slotinfo): Only define if TLS supported.
6696 2002-02-13 Ulrich Drepper <drepper@redhat.com>
6698 * elf/dl-open.c (dl_open_worker): Only bump the generation counter
6699 if this is really necessary.
6701 * elf/dl-close.c (_dl_close): Implement freeing entries in the
6703 (free_mem): Free memory for the slotinfo array if possible.
6705 2002-02-12 Andreas Schwab <schwab@suse.de>
6707 * csu/gmon-start.c (__gmon_start__): Remove '&' from ENTRY_POINT.
6709 2002-02-12 Ulrich Drepper <drepper@redhat.com>
6711 * sysdeps/generic/dl-tls.c (TLS_DTV_UNALLOCATED): Renamed from
6713 (oom): New function.
6714 (_dl_next_tls_modid): Rewrite to handle dl_tls_dtv_slotinfo_list.
6715 (_dl_determine_tlsoffset): Likewise.
6716 (_dl_allocate_tls): Likewise.
6717 (__TLS_GET_ADDR): Define if not already defined.
6718 (_dl_tls_symaddr): New function.
6719 (allocate_and_init): New function.
6720 (__tls_get_addr): Actually implement handling of generation counter
6721 and deferred allocation.
6722 * sysdeps/generic/ldsodefs.h (_rtld_global): Remove _dl_initimage_list,
6723 add _dl_tls_dtv_slotinfo_list, _dl_tls_static_nelem, and
6725 Define TLS_SLOTINFO_SURPLUS and DTV_SURPLUS.
6726 Declare _dl_tls_symaddr.
6727 * sysdeps/i386/dl-tls.h: Disable __tls_get_addr handling unless
6729 * include/link.h (struct link_map): Remove l_tls_nextimage and
6731 * elf/dl-sym.c (_dl_sym): After successful lookup call _dl_tls_symaddr
6732 instead of DL_SYMBOL_ADDRESS for STT_TLS symbols.
6733 (_dl_vsym): Likewise.
6734 * elf/rtld.c (_dl_start_final): Adjust initdtv initialization for new
6736 (dl_main): Allow PT_TLS be present for empty segment. Remove
6737 nextimage list handling. Instead add all modules using TLS to
6738 dl_tls_dtv_slotinfo_list.
6739 * elf/dl-open.c (dl_open_worker): After successfully loading all
6740 objects add those with TLS to the dl_tls_dtv_slotinfo_list list.
6741 * elf/dl-load.c (_dl_map_object_from_fd): If PT_TLS entry is for an
6742 empty segment don't do anything. Remove handling of initimage list.
6743 * elf/Versions [ld] (GLIBC_2.0): Add __libc_memalign.
6744 (GLIBC_PRIVATE): Add _dl_tls_symaddr.
6745 * elf/dl-minimal.c: Define __libc_memalign.
6746 * elf/dl-support.c: Remove _dl_initimage_list. Add
6747 _dl_tls_dtv_slotinfo_list, _dl_tls_static_nelem, and
6749 * include/stdlib.h: Declare __libc_memalign.
6751 * elf/Makefile: Add rules to build and run tst-tls4 and tst-tls5.
6752 * elf/tst-tls4.c: New file.
6753 * elf/tst-tls5.c: New file.
6754 * elf/tst-tlsmod2.c: New file.
6756 * elf/tls-macros.h: asms using ___tls_get_addr destroy %ecx and %edx.
6758 * elf/tst-tlsmod1.c: Don't define variables unles USE_TLS.
6760 * elf/tst-tls1.c: Use test-skeleton.c.
6761 * elf/tst-tls2.c: Likewise.
6762 * elf/tst-tls3.c: Likewise.
6764 * elf/dl-conflict.c (RESOLVE_MAP): Return NULL not 0.
6766 2002-02-08 Daniel Jacobowitz <drow@mvista.com>
6768 * sysdeps/mips/machine-gmon.h: Update MCOUNT for current GCC behavior.
6770 2002-02-10 Ulrich Drepper <drepper@redhat.com>
6772 * elf/elf.h: Define R_386_TLS_GD and R_386_TLS_LDM.
6774 * elf/tst-tls3.c: New file.
6775 * elf/tst-tlsmod1.c: New file.
6776 * elf/Makefile: Add rules to build and run tst-tls3.
6778 * sysdeps/i386/dl-machine.h: Include <tls.h>.
6779 (elf_machine_type_class): Set ELF_RTYPE_CLASS_PLT also for the three
6782 * elf/do-lookup.h (FCT): st_value can be zero for STT_TLS symbols.
6784 * po/fr.po: Update from translation team.
6786 * elf/tls-macros.h: Add alternative macros for use in PIC.
6788 * elf/dl-lookup.c: Include <tls.h>.
6789 * elf/do-lookup.h (FCT): Don't discard STT_TLS symbols.
6791 * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): More changes
6792 required by passing pointer to last element of the list.
6794 * elf/dl-load.c (_dl_map_object_from_fd): Move adjustment of
6795 l_tls_initimage to a place where it actually is performed.
6797 * sysdeps/generic/glob.c (glob): Explicitly set gl_pathc to zero
6798 after globfree() calls.
6800 * elf/dl-deps.c (struct openaux_args): Add open_mode element.
6801 (openaux): Pass open_mode as new last argument to _dl_map_object.
6802 (_dl_map_object_deps): Add new argument open_mode. Initialize
6803 open_mode element of args variable with it.
6804 * elf/dl-open.c (dl_open_worker): Pass __RTLD_DLOPEN flag is set to
6805 _dl_map_object_deps.
6806 * elf/rtld.c (dl_main): Add zero as last parameter to
6807 _dl_map_object_deps call.
6808 * sysdeps/generic/ldsodefs.h: Adjust prototype of _dl_map_object_deps.
6809 * elf/nodlopen2.c: New file.
6810 * elf/nodlopenmod2.c: New file.
6811 * elf/Makefile: Add rules to build and run nodlopen2.
6813 * elf/tst-tls1.c: Move TLS helper macros to...
6814 * elf/tls-macros.h: ...here. New file.
6815 * elf/tst-tls2.c: New file.
6816 * elf/Makefile (tests): Add tst-tls2.
6817 (distribute): Add tls-macros.h.
6819 * po/sv.po: Update from translation team.
6821 * elf/tst-tls1.c (main): Add complete set of tests. Split
6822 architecture specific definitions from the actual test code.
6824 * po/tr.po: Update from translation team.
6826 2002-02-09 Ulrich Drepper <drepper@redhat.com>
6828 * elf/Makefile (tests): Add tst-tls1.
6829 * elf/tst-tls1.c: New file.
6831 * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): Don't handle
6832 alignment of TCB for now.
6834 * elf/rtld.c (dl_main): Use p_vaddr as address of TLS
6835 initialization image for the application itself.
6837 * sysdeps/generic/dl-tls.c (_dl_allocate_tls): Correctly terminate
6838 loop to initialize TLS block.
6840 2002-02-08 Richard Henderson <rth@redhat.com>
6842 * sysdeps/generic/ldsodefs.h (struct rtld_global): Also include
6843 _dl_cpuclock_offset if HP_SMALL_TIMING_AVAIL.
6845 * sysdeps/alpha/elf/initfini.c: Use \n\ for multiline string.
6847 2002-02-09 Jakub Jelinek <jakub@redhat.com>
6849 * sysdeps/generic/dl-environ.c (unsetenv): Clear cnt before use.
6851 2002-02-08 Ulrich Drepper <drepper@redhat.com>
6853 * po/ca.po: Update from translation team.
6854 * po/sk.po: Likewise.
6856 * elf/rtld.c (_dl_start_final): Install DTV explicitly.
6857 (dl_main): Move dtv/static TLS handling before relocation.
6858 Unconditionally call _dl_tlsoffset. Call _dl_allocate_tls and
6859 TLS_INIT_TP to allocate and install the dtv/static TLS block.
6860 * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): If no object
6861 so far uses TLS initialize GL(dl_tls_static_size) and
6862 GL(dl_tls_static_align) to account for the TCB.
6863 (_dl_allocate_tls): New function.
6864 * sysdeps/generic/ldsodefs.h (rtld_global): Add
6865 _dl_initial_dtv_malloced.
6867 * configure.in: Test for __builtin_memset more realistically.
6869 * csu/version.c (banner): If TLS support is available say so.
6871 2002-02-04 H.J. Lu <hjl@gnu.org>
6873 * sysdeps/mips/dl-machine.h (elf_machine_matches_host): Use
6875 (__dl_runtime_resolve): Likewise.
6877 * sysdeps/mips/machine-gmon.h (_MCOUNT_DECL): Make it a real
6880 2001-11-15 H.J. Lu <hjl@gnu.org>
6882 * sysdeps/unix/sysv/linux/mips/sys/procfs.h: Don't include
6883 <signal.h>, <sys/ucontext.h> nor <asm/elf.h>. Updated for gdb.
6885 * sysdeps/unix/sysv/linux/mips/sys/user.h: New.
6887 2002-02-07 H.J. Lu <hjl@gnu.org>
6889 * sysdeps/mips/atomicity.h (compare_and_swap): Remove
6891 * sysdeps/unix/sysv/linux/mips/sys/tas.h (_test_and_set):
6894 2002-02-07 Ulrich Drepper <drepper@redhat.com>
6896 * sysdeps/unix/sysv/linux/bits/stat.h: Undo last patch.
6898 * sysdeps/i386/dl-tls.h (__tls_get_addr): Call
6899 ___tls_get_addr_internal.
6900 (___tls_get_addr_internal): Define as alias for ___tls_get_addr.
6902 * po/ko.po: Update from translation team.
6904 2002-02-07 Jakub Jelinek <jakub@redhat.com>
6906 * sysdeps/unix/sysv/linux/bits/stat.h (struct stat): Remove packed
6907 attribute, change __pad{1,2} type to unsigned int.
6908 (struct stat64): Remove packed attribute.
6910 2002-02-07 Ulrich Drepper <drepper@redhat.com>
6912 * sysdeps/i386/dl-tls.h: No need for #ifdef USE_TLS.
6914 2002-02-07 Andreas Schwab <schwab@suse.de>
6916 * configure.in: Fix check for -zcombreloc.
6918 2002-02-06 H.J. Lu <hjl@gnu.org>
6920 * config.h.in (HAVE_BUILTIN_MEMSET): New.
6921 * configure.in: Check if __builtin_memset really works.
6922 * elf/rtld.c (_dl_start): Check HAVE_BUILTIN_MEMSET instead of
6923 __GNUC_PREREQ (2, 96) before using __builtin_memset.
6925 2002-02-06 Jakub Jelinek <jakub@redhat.com>
6927 * io/bug-ftw3.c (main): Don't try the test if root.
6929 2002-02-06 Martin Schwidefsky <schwidefsky@de.ibm.com>
6931 * sysdeps/unix/sysv/linux/s390/brk.c (__brk): Correct inline assembly
6933 * sysdeps/unix/sysv/linux/s390/s390-32/bits/resource.h (RLIMIT_LOCKS):
6934 Add RLIMIT_LOCKS and adjust RLIMIT_NLIMITS.
6935 * sysdeps/unix/sysv/linux/s390/s390-64/bits/resource.h (RLIMIT_LOCKS):
6937 * sysdeps/unix/sysv/linux/s390/s390-32/clone.S (clone): Make clone
6938 a weak alias for __clone.
6939 * sysdeps/unix/sysv/linux/s390/s390-64/clone.S (clone): Likewise.
6940 * sysdeps/unix/sysv/linux/s390/s390-32/profil-counter.h: Fix typo.
6941 * sysdeps/unix/sysv/linux/s390/s390-64/Makefile: Add framestate.
6942 * sysdeps/unix/sysv/linux/s390/s390-64/Versions: New file.
6943 * sysdeps/unix/sysv/linux/s390/s390-64/mmap.S (__mmap64): Make __mmap
6944 a weak alias for __mmap64.
6946 2002-02-05 H.J. Lu <hjl@gnu.org>
6948 * sysdeps/mips/atomicity.h (exchange_and_add): Not use branch likely.
6949 (atomic_add): Likewise.
6950 (compare_and_swap): Likewise.
6951 * sysdeps/unix/sysv/linux/mips/sys/tas.h (_test_and_set): Likewise.
6953 2002-02-07 Ulrich Drepper <drepper@redhat.com>
6955 * sysdeps/generic/dl-tls.c: Don't read TLS header if TLS is not needed.
6957 * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): Account for
6958 alignment of the TCB and store total size and alignment of static
6959 TLS block in _dl_tls_static_size and _dl_tls_static_align.
6960 tls_index is a typedef.
6961 * sysdeps/generic/ldsodefs.h: Declare _dl_tls_static_size and
6962 _dl_tls_static_align.
6963 * sysdeps/i386/dl-tls.h: tls_index is a typedef.
6964 * elf/dl-support.c: Define _dl_tls_static_size and
6965 _dl_tls_static_align.
6967 2002-02-06 Ulrich Drepper <drepper@redhat.com>
6969 * configure.in: Add --without-tls option.
6970 * sysdeps/i386/elf/configure.in: Don't check for TLS support if
6971 --without-tls is given.
6973 * sysdeps/generic/dl-tls.c: Include <tls.h>.
6975 * sysdeps/i386/dl-tls.h: Don't define anything if !USE_TLS.
6977 2002-02-06 Roland McGrath <roland@frob.com>
6979 * malloc/hooks.c [! HAVE_MREMAP]: Conditionalize unused decls.
6980 * malloc/malloc.c [! HAVE_MREMAP]: Likewise.
6982 * scripts/versions.awk: Improve error message for missing version.
6983 Each version inherits from the last one only if they have the same
6984 nonnumeric prefix, i.e. GLIBC_x.y and GLIBC_x.z or FOO_x and FOO_y
6985 but not GLIBC_x and FOO_y.
6987 * scripts/firstversions.awk: Handle libraries that don't have each
6988 particular version named in the third column of shlib-versions.
6990 * scripts/firstversions.awk: Don't mess with GLIBC_PRIVATE.
6992 2002-02-06 Ulrich Drepper <drepper@redhat.com>
6994 * Versions.def [ld]: Add GLIBC_2.3.
6995 * elf/Versions [ld]: Add __tls_get_addr to GLIBC_2.3.
6996 * elf/Makefile (dl-routines): Add dl-tls.
6997 (distribute): Add dl-tls.h.
6998 * sysdeps/generic/ldsodefs.h (struct rtld_global): Remove
6999 _dl_tls_module_cnt, add _dl_tls_max_dtv_idx and _dl_tls_dtv_gaps.
7000 Add prototypes for _dl_next_tls_modid and _dl_determine_tlsoffset.
7001 * elf/dl-load.c (_dl_map_object_from_fd): Store alignment requirement
7002 along with the other info in the link map. Change queueing of init
7003 images for double linked list. Use _dl_next_tls_modid to compute
7005 * elf/rtld.c (_dl_start_final): Store alignment requirement
7006 along with the other info in rtld map and executable map.
7007 (dl_main): Add ld.so to the init image list if necessary. Compute
7008 final module ID with _dl_next_tls_modid.
7009 * include/link.h (struct link_map): Add l_tls_previmage and
7011 * eld/dl-support.c: Define _dl_tls_max_dtv_idx and _dl_tls_dtv_gaps.
7012 * sysdeps/i386/elf/Versions: New file.
7013 * sysdeps/generic/dl-tls.c: New file.
7014 * sysdeps/generic/dl-tls.h: New file.
7015 * sysdeps/i386/dl-tls.h: New file.
7017 2002-02-06 Roland McGrath <roland@frob.com>
7019 * sysdeps/unix/sysv/linux/netinet/ip.h: Moved to ...
7020 * sysdeps/generic/netinet/ip.h: ... here, replacing old file.
7022 2002-01-05 Roland McGrath <roland@frob.com>
7024 * sysdeps/mach/configure.in: New file.
7025 * sysdeps/mach/configure: New generated file.
7027 * mach/Makefile (user-interfaces): Remove default_pager_helper.
7028 It has never been used by anything.
7030 2002-02-06 H.J. Lu <hjl@gnu.org>
7032 * sysdeps/mips/elf/ldsodefs.h: Make sure the right <ldsodefs.h>
7035 2002-02-06 Ulrich Drepper <drepper@redhat.com>
7037 * sysdeps/unix/sysv/linux/bits/stat.h (struct stat): Add
7038 attribute((packed)) to counter stupid people misusing gcc options.
7039 (struct stat64): Likewise.
7041 2002-02-05 Ulrich Drepper <drepper@redhat.com>
7043 * elf/rtld.c (dl_main): Correct indentation. Use bool as type for
7044 the variables which are used as booleans.
7046 2002-02-06 Andreas Jaeger <aj@suse.de>
7048 * include/libc-symbols.h (INTUSE): Renamed from INT.
7049 * elf/dl-deps.c: Change users.
7050 * sysdeps/generic/dl-sysdep.c: Likewise.
7051 * sysdeps/generic/dl-cache.c: Likewise.
7052 * elf/dl-reloc.c: Likewise.
7053 * elf/rtld.c: Likewise.
7054 * elf/dl-version.c: Likewise.
7055 * elf/dl-load.c: Likewise.
7056 * elf/dl-dst.h: Likewise.
7057 * elf/dl-init.c: Likewise.
7058 * elf/dl-error.c: Likewise.
7059 * elf/dl-fini.c: Likewise.
7060 * elf/dl-runtime.c: Likewise.
7061 * elf/do-lookup.h: Likewise.
7063 * stdio-common/_itoa.h: Undefine SPECIAL to avoid duplicate
7065 * stdio-common/_itowa.h: Likewise.
7067 2002-02-05 Ulrich Drepper <drepper@redhat.com>
7069 * elf/dl-minimal.c: Define _itoa_lower_digits.
7071 * elf/dynamic-link.h (elf_get_dynamic_info): ld.so can have
7074 * elf/dl-load.c (_dl_map_object_from_fd): Prevent dynamically
7075 loading modules with the DF_STATIC_TLS flag set.
7076 * elf/dynamic-link.h (elf_get_dynamic_info): Initialize l_flags
7078 * include/link.h (struct link_map): Add l_flags field.
7079 * elf/elf.h (DF_STATIC_TLS): New definition.
7081 * dlfcn/Makefile: Add rules to build and run bug-dlopen1.
7082 * dlfcn/bug-dlopen1.c: New file. By Bruno Haible.
7084 * elf/rtld.c (process_dl_debug): Correct printing help message.
7085 * elf/dl-misc.c (_dl_debug_vdprintf): Implement precision handling
7088 * inet/getnetgrent_r.c (innetgr): Add int* parameter to getfct
7089 definition and pass &errno in use of this variable.
7090 Reported by Simon Wilkinson <simon@sxw.org.uk> [PR libc/2911].
7092 2002-02-04 Andreas Schwab <schwab@suse.de>
7094 * locale/programs/localedef.h (WITH_CUR_LOCALE): Define.
7095 * locale/programs/charmap-dir.c: Wrap calls that output messages
7096 with WITH_CUR_LOCALE. Include "localedef.h" first.
7097 * locale/programs/charmap.c: Likewise.
7098 * locale/programs/ld-address.c: Likewise.
7099 * locale/programs/ld-collate.c: Likewise.
7100 * locale/programs/ld-ctype.c: Likewise.
7101 * locale/programs/ld-identification.c: Likewise.
7102 * locale/programs/ld-measurement.c: Likewise.
7103 * locale/programs/ld-messages.c: Likewise.
7104 * locale/programs/ld-monetary.c: Likewise.
7105 * locale/programs/ld-name.c: Likewise.
7106 * locale/programs/ld-numeric.c: Likewise.
7107 * locale/programs/ld-paper.c: Likewise.
7108 * locale/programs/ld-telephone.c: Likewise.
7109 * locale/programs/ld-time.c: Likewise.
7110 * locale/programs/linereader.c: Likewise.
7111 * locale/programs/linereader.h: Likewise.
7112 * locale/programs/localedef.c: Likewise.
7113 * locale/programs/locfile.c: Likewise.
7114 * locale/programs/repertoire.c: Likewise.
7116 2002-02-05 Ulrich Drepper <drepper@redhat.com>
7118 * elf/rtld.c (_dl_start_final): Determine load address to locate
7119 ehdr with GL(dl_rtld_map).l_map_start.
7121 * po/ca.po: Update from translation team.
7123 * elf/rtld.c (dl_main): Read PT_TLS entry of the executable.
7124 * elf/dl-load.c (_dl_map_object_from_fd): Handle PT_TLS program
7126 * sysdeps/generic/ldsodefs.h (struct rtld_global): Add
7128 * elf/dl-support.c: Define _dl_initimage_list and _dl_tls_module_cnt.
7130 2002-02-04 Ulrich Drepper <drepper@redhat.com>
7132 * elf/rtld.c (_dl_start): Fill TLS values in link map for rtld.
7133 * include/link.h (struct link_map): Add various members for TLS
7135 * sysdeps/generic/ldsodefs.h (struct rtld_global): Remove
7136 _rtld_tlsoffset, add _dl_initimage_list.
7137 * sysdeps/i386/dl-lookupcfg.h: New file.
7138 * sysdeps/i386/dl-machine.h (elf_machine_rel): Implement missing
7139 TLS relocation. When using TLS we now use RESOLVE_MAP.
7140 (elf_machine_rela): Use RESOLVE_MAP instead of RESOLVE_MAP if TLS
7143 * sysdeps/generic/dl-cache.c (_dl_cache_libcmp): Mark as possibly
7146 * elf/rtld.c (_dl_start_final): Allocate TLS and initialize
7147 thread-pointer as soon as possible.
7148 * sysdeps/generic/ldsodefs.h: Include <tls.h>. Define first TLS
7149 elements in rtld_global.
7150 * sysdeps/generic/tls.h: New file.
7151 * elf/Makefile (distribute): Add tls.h.
7152 * sysdeps/i386/dl-machine.h (elf_machine_rel): Add support for TLS
7153 relocations. Not complete yet.
7155 * resolv/resolv.h: Allow user to define __need_res_state and only
7156 define __res_start structure then.
7157 * include/resolv.h: Only declare functions if _RESOLV_H_ is defined.
7159 * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Move
7160 dl_cpuclock_offset initialization to _dl_start_final.
7161 (_dl_show_auxv): Avoid unnecessary sign extension.
7162 * elf/rtld.c (_dl_start_final): Initialize dl_cpuclock_offset.
7164 2002-02-03 Ulrich Drepper <drepper@redhat.com>
7166 * config.h.in: Add HAVE_TLS_SUPPORT.
7167 * sysdeps/i386/elf/configure.in: New file.
7169 2002-02-03 Andreas Schwab <schwab@suse.de>
7171 * sysdeps/posix/readv.c: Use ssize_t for bytes_read.
7172 * sysdeps/posix/writev.c: Use ssize_t for bytes_written. Fix comment.
7174 2002-02-03 Thorsten Kukuk <kukuk@suse.de>
7176 * sysdeps/posix/writev.c: Check for ssize_t overflow, don't use
7177 alloca if the memory reqirements are too high.
7179 2002-02-03 Ulrich Drepper <drepper@redhat.com>
7181 * elf/dl-load.c (decompose_rpath): Avoid using strstr.
7182 * elf/dl-minimal.c (_strerror_r): Use _itoa instead of _itoa_word since
7183 the former is available anyway and speed isn't important here.
7184 * elf/dl-misc.c (_dl_debug_vdprintf): Likewise.
7185 * elf/dl-version.c (match_symbol): Likewise.
7186 (_dl_check_map_versions): Likewise.
7187 * elf/rtld.c (process_envvars): Likewise.
7188 (print_statistics): Likewise.
7189 * sysdeps/generic/dl-sysdep.c (_dl_show_auxv): Likewise.
7190 * elf/dl-minimal.c (_itoa): Always define it. Make it work for all
7191 bases. Add assert to catch uses of unimplemented features.
7192 (__strsep): Add assert to catch uses of unimplemented features.
7193 * elf/dl-object.c (_dl_new_object): Don't use rawmemchr. Use strchr
7194 and avoid inline optimization.
7195 * elf/rtld.c (process_envvars): Likewise.
7196 * elf/dl-open.c: Don't include <stdio-common/_itoa.h>.
7197 * elf/dl-profile.c (_dl_start_profile): Help compiler to avoid ffs.
7198 * elf/rtld.c (dl_main): Avoid strsep inline optimization.
7200 2002-02-02 Ulrich Drepper <drepper@redhat.com>
7202 * stdio-common/_itoa.h: Minor simplifications of the code.
7203 * stdio-common/_itoa.c: Likewise.
7205 * elf/dl-reloc.c (_dl_relocate_object): Use _dl_debug_printf
7206 instead of _dl_printf for debugging info output.
7208 * manual/examples/mkfsock.c (make_named_socket): Make sure name is
7209 always NUL-terminated. Patch by Chris D. Sloan <cds@cs.hmc.edu>.
7211 2002-02-01 H.J. Lu <hjl@gnu.org>
7213 * sysdeps/mips/atomicity.h (exchange_and_add): Use branch likely.
7214 (atomic_add): Likewise.
7215 (compare_and_swap): Return 0 only when failed to compare. Use
7218 * sysdeps/unix/sysv/linux/mips/sys/tas.h (_test_and_set): Use
7221 2002-02-03 kaz Kojima <kkojima@rr.iij4u.or.jp>
7223 * sysdeps/sh/dl-machine.h (elf_machine_rela): Fix a typo.
7225 2002-02-02 Ulrich Drepper <drepper@redhat.com>
7227 * elf/dl-minimal.c (__strsep): New minimal implementation.
7229 2002-02-02 Paul Eggert <eggert@twinsun.com>
7231 * src/mktime.c [defined DEBUG && STDC_HEADERS]: Include <string.h>.
7232 (__mktime_internal): If no tm_isdst is requested, prefer solutions
7233 with tm_isdst > 0 when the requested time falls within a
7234 spring-forward gap [PR libc/2894].
7236 2002-02-03 Andreas Schwab <schwab@suse.de>
7238 * stdio-common/tst-rndseek.c: Increase timeout.
7240 2002-02-02 Ulrich Drepper <drepper@redhat.com>
7242 Change ld.so to not use functions which are exported. One cannot
7243 interpose them anyway. Use INT() to mark uses, INTDEF() to mark
7245 * include/libc-symbols.h: Define INT and INTDEF.
7246 * sysdeps/generic/ldsodefs.h: Declare _dl_debug_printf_internal,
7247 _dl_signal_error_internal, _dl_map_object_internal,
7248 _dl_map_object_deps_internal, _dl_lookup_symbol_internal,
7249 _dl_lookup_versioned_symbol_internal,
7250 _dl_relocate_object_internal, _dl_debug_state_internal,
7251 _dl_start_profile_internal, and _dl_unload_cache_internal.
7252 * include/dlfcn.h: Declare _dl_catch_error_internal.
7253 * elf/rtld.c: Use INT for calls to any of the *_internal functions
7254 above. Add INTDEF to function definitions.
7255 * elf/dl-debug.c: Likewise.
7256 * elf/dl-deps.c: Likewise.
7257 * elf/dl-dst.h: Likewise.
7258 * elf/dl-error.c: Likewise.
7259 * elf/dl-fini.c: Likewise.
7260 * elf/dl-init.c: Likewise.
7261 * elf/dl-load.c: Likewise.
7262 * elf/dl-lookup.c: Likewise.
7263 * elf/dl-misc.c: Likewise.
7264 * elf/dl-open.c: Likewise.
7265 * elf/dl-profile.c: Likewise.
7266 * elf/dl-reloc.c: Likewise.
7267 * elf/dl-runtime.c: Likewise.
7268 * elf/dl-version.c: Likewise.
7269 * elf/do-lookup.h: Likewise.
7270 * sysdeps/generic/dl-cache.c: Likewise.
7271 * sysdeps/generic/dl-sysdep.c: Likewise.
7272 * sysdeps/alpha/dl-machine.h (RTLD_START): Call _dl_init_internal
7273 instead of _dl_init.
7274 * sysdeps/arm/dl-machine.h: Likewise.
7275 * sysdeps/cris/dl-machine.h: Likewise.
7276 * sysdeps/hppa/dl-machine.h: Likewise.
7277 * sysdeps/i386/dl-machine.h: Likewise.
7278 * sysdeps/ia64/dl-machine.h: Likewise.
7279 * sysdeps/m68k/dl-machine.h: Likewise.
7280 * sysdeps/mips/dl-machine.h: Likewise.
7281 * sysdeps/mips/mips64/dl-machine.h: Likewise.
7282 * sysdeps/s390/s390-32/dl-machine.h: Likewise.
7283 * sysdeps/s390/s390-64/dl-machine.h: Likewise.
7284 * sysdeps/sh/dl-machine.h: Likewise.
7285 * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
7286 * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
7287 * sysdeps/x86_64/dl-machine.h: Likewise.
7288 * sysdeps/powerpc/dl-start.S (_dl_start_user): Likewise.
7290 * elf/Versions: Don't export _dl_check_all_versions, _dl_sysdep_start,
7291 and _dl_debug_initialize.
7293 * elf/dl-object.c (_dl_new_object): Avoid using strrchr. We have
7295 * elf/rtld.c (dl_main): Avoid strrchr.
7296 * sysdeps/unix/sysv/linux/dl-origin.c (_dl_get_origin): Use the
7297 result of readlink. Search from the back for '/'.
7299 * elf/dl-profile.c (_dl_start_profile): Help the compiler to avoid
7300 strncpy if possible.
7302 * sysdeps/generic/dl-environ.c (unsetenv): Optimize. Don't use
7304 * elf/dl-load.c (is_dst): Optimize. Don't call strncmp twice.
7305 * elf/rtld.c (process_dl_debug): Optimize. Avoid calls to strncmp,
7306 strspn, and strcspn.
7307 (process_envvars): Don't use strcspn.
7309 * elf/dl-load.c (_dl_dst_count): Fix possible endless loop.
7310 (_dl_dst_substitute): Likewise.
7312 2002-02-01 Ulrich Drepper <drepper@redhat.com>
7314 * elf/do-rel.h (elf_dynamic_do_rel): Help the compiler recognize
7315 code which is never used when relocating ld.so itself.
7317 * elf/dynamic-link.h (elf_get_dynamic_info): Optimize a bit for
7318 starting ld.so itself. Move l_addr variable initialization closer
7320 (_ELF_DYNAMIC_DO_RELOC): Help the compiler optimize a bit.
7322 2002-02-01 Jakub Jelinek <jakub@redhat.com>
7324 * Versions.def (libc): Add GLIBC_PRIVATE.
7325 (libdb, libnss_db, libdb1): Remove.
7326 (libnss_compat, libnss_dns, libnss_files, libnss_hesiod, libnss_nis,
7327 libnss_nisplus): Move all symbols to GLIBC_PRIVATE.
7328 (libpthread): Add GLIBC_PRIVATE.
7329 (libresolv): Likewise, remove GLIBC_2.1.
7330 (ld): Add GLIBC_PRIVATE, remove GLIBC_2.1.1, GLIBC_2.2, GLIBC_2.2.1,
7331 GLIBC_2.2.3, GLIBC_2.3.
7332 * catgets/Versions (__open_catalog): Move to GLIBC_PRIVATE.
7333 * elf/Versions (_dl_open, _dl_close, _dl_addr, _dl_init_first,
7334 _dl_sym, _dl_vsym): Likewise.
7335 (__libc_enable_secure, __libc_stack_end, _dl_argv, _dl_catch_error,
7336 _dl_check_all_versions, _dl_check_map_versions, _dl_debug_initialize,
7337 _dl_debug_printf, _dl_debug_state, _dl_dst_count, _dl_dst_substitute,
7338 _dl_init, _dl_lookup_symbol, _dl_lookup_symbol_skip,
7339 _dl_lookup_versioned_symbol, _dl_lookup_versioned_symbol_skip,
7340 _dl_map_object, _dl_map_object_deps, _dl_out_of_memory,
7341 _dl_relocate_object, _dl_signal_error, _dl_start_profile,
7342 _dl_starting_up, _dl_sysdep_start, _dl_unload_cache, _rtld_global):
7344 (_dl_object_relocation_scope): Remove.
7345 * hesiod/Versions: Move all symbols to GLIBC_PRIVATE.
7346 * iconv/Versions (__gconv_alias_db, __gconv_modules_db,
7347 __gconv_cache): Move to GLIBC_PRIVATE.
7348 * inet/Versions (__internal_endnetgrent, __internal_getnetgrent_r,
7349 __internal_setnetgrent): Likewise.
7350 * io/Versions (__libc_open, __libc_close, __libc_read, __libc_write,
7351 __libc_lseek, __libc_fcntl, __libc_open64, __libc_lseek64): Likewise.
7352 * locale/Versions (__collate_element_hash, __collate_element_strings,
7353 __collate_symbol_classes, __collate_symbol_hash,
7354 __collate_symbol_strings, _nl_current_LC_COLLATE,
7355 _nl_current_LC_CTYPE): Likewise.
7356 * misc/Versions (__libc_fsync, __libc_msync): Likewise.
7357 * nis/Versions (libnss_compat): Move all symbols to GLIBC_PRIVATE.
7358 (libnss_nis, libnss_nisplus): Likewise.
7359 * nss/Versions (_nss_files_parse_grent, _nss_files_parse_pwent,
7360 _nss_files_parse_spent): Move to GLIBC_PRIVATE.
7361 (libnss_files): Move all symbols to GLIBC_PRIVATE.
7362 * posix/Versions (__libc_wait, __libc_waitpid, __libc_pause,
7363 __libc_nanosleep, __libc_fork, __libc_pread, __libc_pread64,
7364 __libc_pwrite, __libc_pwrite64): Move to GLIBC_PRIVATE.
7365 * resolv/Versions (__gai_sigqueue, __ns_name_unpack, __ns_name_ntop,
7366 __ns_get16, __ns_samename): Likewise.
7367 (libnss_dns): Move all symbols to GLIBC_PRIVATE.
7368 * setjmp/Versions (__libc_longjmp, __libc_siglongjmp): Move to
7370 * socket/Versions (__libc_accept, __libc_send, __libc_recvfrom,
7371 __libc_recvmsg, __libc_sendmsg, __libc_recv, __libc_sendto,
7372 __libc_connect): Likewise.
7373 * stdio-common/Versions (_itoa_lower_digits, _itoa_upper_digits):
7375 * stdlib/Versions (__libc_system): Likewise.
7376 * sunrpc/Versions (__rpc_thread_destroy): Likewise.
7377 * sysdeps/hppa/Versions: Move all symbols to GLIBC_PRIVATE.
7378 * sysdeps/ia64/fpu/Versions: Likewise.
7379 * sysdeps/ia64/Versions: Likewise.
7380 * sysdeps/unix/sysv/linux/ia64/Versions: Likewise.
7381 * sysdeps/unix/sysv/linux/i386/Versions (__modify_ldt): Move
7383 * sysdeps/unix/sysv/linux/x86_64/Versions (__modify_ldt): Likewise.
7384 * sysdeps/unix/sysv/linux/Versions (__syscall_rt_sigqueueinfo,
7385 __libc_sigaction): Likewise.
7386 * termios/Versions (__libc_tcdrain): Likewise.
7388 * misc/sys/cdefs (__attribute_noinline__): Define.
7389 * elf/dl-lookup.c (_dl_do_lookup, _dl_do_lookup_versioned): Add
7390 __attribute_noinline__.
7392 * elf/Makefile (rtld-routines): Add dl-xstat64, dl-fxstat64.
7393 * elf/dl-xstat64.c: New file.
7394 * elf/dl-fxstat64.c: New file.
7395 * sysdeps/unix/sysv/linux/fxstat64.c: If RTLD_STAT64 is defined,
7396 don't export __fxstat64 at multiple versions.
7397 * sysdeps/unix/sysv/linux/lxstat64.c: Similarly.
7398 * sysdeps/unix/sysv/linux/xstat64.c: Similarly.
7400 2002-01-18 Isamu Hasegawa <isamu@yamato.ibm.com>
7402 * locale/program/ld-collate.c (collate_finish): Assign a wide
7403 char collation sequence value to multi character collating
7404 elements, and avoid over writing by non-character elements.
7406 2002-02-01 Ulrich Drepper <drepper@redhat.com>
7408 * elf/Makefile (distribute): Add dl-procinfo.c.
7409 * sysdeps/unix/sysv/linux/i386/Dist: Remove dl-procinfo.c.
7410 * sysdeps/unix/sysv/linux/arm/Dist: Likewise.
7412 2002-02-01 Jakub Jelinek <jakub@redhat.com>
7414 * sysdeps/generic/ldsodefs.h (_dl_load_lock): Remove duplicate
7416 * sysdeps/ia64/hp-timing.h: Move _dl_hp_timing_overhead in
7417 _rtld_global struct.
7418 * sysdeps/sparc/sparc32/sparcv9/hp-timing.h: Likewise.
7419 * sysdeps/sparc/sparc64/hp-timing.c: Likewise.
7420 * sysdeps/sparc/sparc64/hp-timing.h: Likewise.
7421 * sysdeps/sparc/sparc64/Makefile: Make hp-timing static only.
7422 * sysdeps/unix/sysv/aix/init-first.c (_dl_fpu_control,
7423 _dl_fpu_control_set): Remove unused externs.
7424 * sysdeps/unix/sysv/linux/sparc/sparc32/dl-procinfo.c: New file.
7425 * sysdeps/unix/sysv/linux/sparc/sparc64/dl-procinfo.c: New file.
7426 * sysdeps/unix/sysv/linux/sparc/sparc32/dl-procinfo.h: Move procinfo
7427 related variables in _rtld_global struct.
7428 * sysdeps/unix/sysv/linux/sparc/sparc64/dl-procinfo.h: Likewise.
7429 * sysdeps/unix/sysv/linux/init-first.c (_dl_fpu_control_set): Remove
7432 2002-02-01 Ulrich Drepper <drepper@redhat.com>
7434 * sysdeps/generic/dl-procinfo.c: New file.
7436 2002-02-01 Andreas Schwab <schwab@suse.de>
7438 * sysdeps/m68k/dl-machine.h: Don't use multi-line string literals.
7440 2002-02-01 Ulrich Drepper <drepper@redhat.com>
7442 * elf/rtld.c (_dl_start): Mark as internal_function.
7443 * sysdeps/i386/dl-machine.h (RTLD_START): Pass parameter for _dl_start
7445 (elf_machine_rel): Cleanup and minor optimization for RTLD_BOOTSTRAP.
7446 General pretty printing.
7448 2002-01-31 Ulrich Drepper <drepper@redhat.com>
7450 * elf/dl-minimal.c: Define _itoa for 32-bit machines with HP timing.
7451 * elf/dl-reloc.c: Pretty printing.
7452 * sysdeps/generic/ldsodefs.h: Move _dl_hp_timing_overhead and
7453 procinfo-related variables in rtld_global struct.
7454 * elf/dl-support.c: Likewise.
7455 * elf/rtld.c: Likewise.
7456 * sysdeps/i386/i686/Makefile: Likewise.
7457 * sysdeps/i386/i686/hp-timing.c: Likewise.
7458 * sysdeps/i386/i686/hp-timing.h: Likewise.
7459 * sysdeps/ia64/Makefile: Likewise.
7460 * sysdeps/ia64/hp-timing.c: Likewise.
7461 * sysdeps/sparc/sparc32/sparcv9/Makefile: Likewise.
7462 * sysdeps/sparc/sparc32/sparcv9/hp-timing.c: Likewise.
7463 * sysdeps/unix/sysv/linux/arm/dl-procinfo.c: Likewise.
7464 * sysdeps/unix/sysv/linux/arm/dl-procinfo.h: Likewise.
7465 * sysdeps/unix/sysv/linux/i386/Makefile: Likewise.
7466 * sysdeps/unix/sysv/linux/i386/dl-procinfo.c: Likewise.
7467 * sysdeps/unix/sysv/linux/i386/dl-procinfo.h: Likewise.
7468 * sysdeps/x86_64/Makefile: Likewise.
7470 * sysdeps/generic/ldsodefs.h: Add _dl_load_lock, _dl_lazy,
7471 _dl_dynamic_weak, _dl_fpu_control, _dl_cpuclock_offset, and
7472 _dl_debug_fd to rtld_global.
7473 * elf/Versions: Likewise.
7474 * elf/dl-close.c: Likewise.
7475 * elf/dl-iteratephdr.c: Likewise.
7476 * elf/dl-lookup.c: Likewise.
7477 * elf/dl-misc.c: Likewise.
7478 * elf/dl-open.c: Likewise.
7479 * elf/dl-support.c: Likewise.
7480 * elf/do-lookup.h: Likewise.
7481 * elf/rtld.c: Likewise.
7482 * sysdeps/generic/dl-cache.c: Likewise.
7483 * sysdeps/generic/dl-sysdep.c: Likewise.
7484 * sysdeps/ia64/Versions: Likewise.
7485 * sysdeps/unix/clock_gettime.c: Likewise.
7486 * sysdeps/unix/clock_settime.c: Likewise.
7487 * sysdeps/unix/sysv/linux/init-first.c: Likewise.
7488 * sysdeps/sparc/Versions: Removed.
7489 * sysdeps/i386/i686/Versions : Removed.
7490 * sysdeps/x86_64/Versions: Removed.
7491 * configure.in: Define HAVE_PROTECTED if .protected is available.
7492 * config.h.in: Add entry for HAVE_PROTECTED.
7494 2002-01-31 Jakub Jelinek <jakub@redhat.com.
7496 * sysdeps/alpha/dl-machine.h: Move global variables for SHARED
7497 code in struct _rtld_global. Export this struct, remove all
7498 exports for the signal variables.
7499 * sysdeps/arm/dl-machine: Likewise.
7500 * sysdeps/generic/dl-origin: Likewise.
7501 * sysdeps/generic/dl-sysdep: Likewise.
7502 * sysdeps/generic/dl-cache: Likewise.
7503 * sysdeps/hppa/dl-fptr: Likewise.
7504 * sysdeps/hppa/dl-machine: Likewise.
7505 * sysdeps/cris/dl-machine: Likewise.
7506 * sysdeps/i386/dl-machine: Likewise.
7507 * sysdeps/ia64/dl-machine: Likewise.
7508 * sysdeps/m68k/dl-machine: Likewise.
7509 * sysdeps/mach/hurd/dl-sysdep: Likewise.
7510 * sysdeps/mips/mips64/dl-machine: Likewise.
7511 * sysdeps/mips/dl-machine: Likewise.
7512 * sysdeps/powerpc/elf/libc-start: Likewise.
7513 * sysdeps/powerpc/dl-machine: Likewise.
7514 * sysdeps/powerpc/dl-start: Likewise.
7515 * sysdeps/sparc/sparc32/dl-machine: Likewise.
7516 * sysdeps/sparc/sparc64/dl-machine: Likewise.
7517 * sysdeps/sh/dl-machine: Likewise.
7518 * sysdeps/s390/s390-32/dl-machine: Likewise.
7519 * sysdeps/s390/s390-64/dl-machine: Likewise.
7520 * sysdeps/unix/sysv/aix/libc-start: Likewise.
7521 * sysdeps/unix/sysv/aix/start-libc: Likewise.
7522 * sysdeps/unix/sysv/linux/ia64/dl-static: Likewise.
7523 * sysdeps/unix/sysv/linux/m68k/getpagesize: Likewise.
7524 * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize: Likewise.
7525 * sysdeps/x86_64/dl-machine: Likewise.
7527 2002-01-31 Ulrich Drepper <drepper@redhat.com>
7529 * sysdeps/posix/readv.c: Don't use alloca if the memory requirements
7532 2002-01-31 Andreas Schwab <schwab@suse.de>
7534 * sysdeps/posix/readv.c: Check for ssize_t overflow.
7536 2002-01-31 Andreas Schwab <schwab@suse.de>
7538 * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Fix leftover
7539 reference to _dl_pagesize.
7541 2002-01-30 Ulrich Drepper <drepper@redhat.com>
7543 * Versions.def [ld]: Add GLIBC_2.3.
7544 * elf/dl-addr.c: Move global variables for SHARED code in struct
7545 _rtld_global. Export this struct, remove all exports for the
7547 * elf/dl-close.c: Likewise.
7548 * elf/dl-conflict.c: Likewise.
7549 * elf/dl-debug.c: Likewise.
7550 * elf/dl-deps.c: Likewise.
7551 * elf/dl-dst.h: Likewise.
7552 * elf/dl-error.c: Likewise.
7553 * elf/dl-fini.c: Likewise.
7554 * elf/dl-init.c: Likewise.
7555 * elf/dl-iteratephdr.c: Likewise.
7556 * elf/dl-libc.c: Likewise.
7557 * elf/dl-load.c: Likewise.
7558 * elf/dl-lookup.c: Likewise.
7559 * elf/dl-minimal.c: Likewise.
7560 * elf/dl-object.c: Likewise.
7561 * elf/dl-open.c: Likewise.
7562 * elf/dl-profile.c: Likewise.
7563 * elf/dl-profstub.c: Likewise.
7564 * elf/dl-reloc.c: Likewise.
7565 * elf/dl-runtime.c: Likewise.
7566 * elf/dl-support.c: Likewise.
7567 * elf/dl-sym.c: Likewise.
7568 * elf/dl-version.c: Likewise.
7569 * elf/do-lookup.h: Likewise.
7570 * elf/do-rel.h: Likewise.
7571 * elf/dynamic-link.h: Likewise.
7572 * elf/rtld.c: Likewise.
7573 * sysdeps/generic/dl-cache.c: Likewise.
7574 * sysdeps/generic/dl-sysdep.c: Likewise.
7575 * sysdeps/generic/ldsodefs.h: Likewise.
7576 * sysdeps/generic/libc-start.c: Likewise.
7577 * sysdeps/i386/dl-machine.h: Likewise.
7578 * sysdeps/ia64/dl-fptr.c: Likewise.
7579 * sysdeps/ia64/dl-machine.h: Likewise.
7580 * sysdeps/unix/sysv/linux/dl-librecon.h: Likewise.
7581 * sysdeps/unix/sysv/linux/dl-origin.c: Likewise.
7582 * sysdeps/unix/sysv/linux/dl-osinfo.h: Likewise.
7583 * sysdeps/unix/sysv/linux/getclktck.c: Likewise.
7584 * sysdeps/unix/sysv/linux/getpagesize.c: Likewise.
7585 * sysdeps/unix/sysv/linux/i386/dl-librecon.h: Likewise.
7586 * sysdeps/unix/sysv/linux/ia64/dl-static.c: Likewise.
7587 * sysdeps/unix/sysv/linux/ia64/getpagesize.c: Likewise.
7589 2002-01-29 Ulrich Drepper <drepper@redhat.com>
7591 * sysdeps/ia64/dl-lookupcfg.h (DL_AUTO_FUNCTION_ADDRESS): Add cast
7593 (DL_STATIC_FUNCTION_ADDRESS): Likewise.
7595 * elf/dl-lookup.c: Only define or handle _dl_num_relocations for the
7597 * elf/dl-reloc.c: Likewise for _dl_num_cache_relocations.
7599 * elf/rtld.c (_dl_start): Use __builtin_memset if available.
7601 2002-01-29 Ben Collins <bcollins@debian.org>
7603 * string/bits/string2.h (__mempcpy): Protect size arg for
7604 addition when using __builtin_memcpy.
7606 2002-01-29 Ulrich Drepper <drepper@redhat.com>
7608 * stdlib/Makefile (tests): Add tst-qsort.
7609 * stdlib/tst-qsort.c: New file. Written by Paul Eggert.
7611 * manual/signal.texi (Process Signal Mask): Document that
7612 pthread_sigmask, not sigprocmask, must be used in MT programs.
7613 Patch by Bertold Kolics <Bertold.Kolics@Sun.COM>.
7615 * misc/hsearch_r.c (hsearch_r): Don't insert anything if entry is
7617 * misc/Makefile (tests): Add tst-hsearch.
7618 * misc/tst-hsearch.c: New file.
7620 2002-01-18 Wolfram Gloger <wg@malloc.de>
7622 * malloc/malloc.c: Rewrite, adapted from Doug Lea's malloc-2.7.0.c.
7623 * malloc/malloc.h: Likewise.
7624 * malloc/thread-m.h: Spinlock definitions for x86/x86_64.
7625 * malloc/arena.c: New file.
7626 * malloc/hooks.c: New file.
7627 * malloc/tst-mallocstate.c: New file.
7628 * malloc/Makefile: Add new testcase tst-mallocstate.
7629 Add arena.c and hooks.c to distribute. Fix commented CPPFLAGS.
7631 2002-01-28 Ulrich Drepper <drepper@redhat.com>
7633 * stdlib/msort.c: Remove last patch. The optimization violates the
7634 same rule which qsort.c had problems with.
7636 2002-01-27 Paul Eggert <eggert@twinsun.com>
7638 * stdlib/qsort.c (_quicksort): Do not apply the comparison function
7639 to a pivot element that lies outside the array to be sorted, as
7640 ISO C99 requires that the comparison function be called only with
7641 addresses of array elements [PR libc/2880].
7643 2002-01-28 Ulrich Drepper <drepper@redhat.com>
7645 * elf/dl-load.c (_dl_map_object): Remove incorrect optimization
7646 for SHARED code. Reported by Ben Collins <bcollins@debian.org>.
7648 * timezone/asia: Update from tzdata2002b.
7649 * timezone/australasia: Likewise.
7650 * timezone/backward: Likewise.
7651 * timezone/europe: Likewise.
7652 * timezone/leapseconds: Likewise.
7653 * timezone/iso3166.tab: Likewise.
7654 * timezone/zone.tab: Likewise.
7656 2002-01-23 Richard Henderson <rth@redhat.com>
7658 * sysdeps/alpha/Makefile (pic-ccflag): New variable.
7660 2002-01-28 Ulrich Drepper <drepper@redhat.com>
7662 * string/strxfrm.c: Allocate one more byte for rulearr and clear
7663 this element [PR libc/2855].
7665 * string/strcoll.c: Handle zero-length arguments specially
7668 2002-01-23 Jakub Jelinek <jakub@redhat.com>
7670 * string/bits/string2.h (__mempcpy): For gcc 3.0+, don't use
7671 __mempcpy_small but instead use __builtin_memcpy ( , , n) + n for
7672 short lengths and constant src.
7673 (strcpy): Don't optimize for gcc 3.0+.
7674 (__stpcpy): For gcc 3.0+, don't use
7675 __stpcpy_small but instead use __builtin_strcpy (, src) + strlen (src)
7676 for short string literal src.
7678 2002-01-23 Jeroen Dobbelaere <jeroen.dobbelaere@acunia.com>
7680 * sysdeps/unix/sysv/linux/configure.in (libc_cv_gcc_unwind_find_fde):
7683 2001-01-22 Paul Eggert <eggert@twinsun.com>
7685 * manual/llio.texi (Linked Channels, Cleaning Streams):
7686 Make it clearer that a just-opened input stream might need cleaning.
7688 2002-01-21 H.J. Lu <hjl@gnu.org>
7690 * sysdeps/mips/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
7691 Don't use label at end of compound statement.
7693 2002-01-28 Stephen L Moshier <moshier@mediaone.net>
7695 * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (__ieee754_lgammal_r):
7696 Remove test for negative integer arg; sin_pi does it correctly.
7698 2002-01-20 Ulrich Drepper <drepper@redhat.com>
7700 * nscd/Makefile (distribute): Filter out xmalloc.c.
7702 2002-01-19 Ulrich Drepper <drepper@redhat.com>
7704 * libio/fileops.c (_IO_file_underflow_mmap): Don't define as static.
7705 Set offset if read end wasn't the buffer end.
7706 (_IO_file_seekoff_mmap): New function.
7707 (_IO_file_xsgetn_mmap): New function.
7708 (_IO_file_jumps_mmap): Use the two new functions.
7709 * libio/wfileops.c (_IO_wfile_underflow_mmap): Handle end read buffer
7711 * libio/libioP.h: Declare _IO_file_seekoff_mmap and
7712 _IO_file_underflow_mmap.
7713 * libio/iofopen.c: Don't position file descriptor at end of file.
7714 * libio/tst-widetext.c: Improve error messages.
7715 * stdio-common/tst-rndseek.c: Likewise.
7717 2002-01-18 Ulrich Drepper <drepper@redhat.com>
7719 * sysdeps/unix/sysv/linux/bits/statvfs.h: Avoid warning about comma at
7720 end of enum for !_GNU_SOURCE.
7721 * sysdeps/unix/sysv/linux/alpha/bits/statvfs.h: Likewise.
7722 * sysdeps/unix/sysv/linux/ia64/bits/statvfs.h: Likewise.
7723 * sysdeps/unix/sysv/linux/sparc/bits/statvfs.h: Likewise.
7724 * sysdeps/mach/hurd/bits/statvfs.h: Don't define non-standard ST_*
7725 values unless _GNU_SOURCE.
7727 * iconvdata/tcvn5712-1.c: Minor cleanups.
7729 2002-01-18 Andreas Schwab <schwab@suse.de>
7731 * sysdeps/unix/sysv/linux/configure.in
7732 (libc_cv_gcc_unwind_find_fde): Set for m68k, too.
7734 2002-01-16 Roger Sayle <roger@eyesopen.com>
7736 * stdlib/msort.c (msort_with_tmp): Replace implementation with
7737 more efficient "Towers of Hanoi" mergesort.
7738 (hanoi_sort, hanoi_sort_int, hanoi_sort_long): New functions,
7739 for generic, sizeof(int) and sizeof(long) variants respectively.
7741 2002-01-17 Ulrich Drepper <drepper@redhat.com>
7743 * manual/syslog.texi (openlog): Describe possible problems with
7745 Patch by Christopher Allen Wing <wingc@engin.umich.edu>.
7747 * nscd/nscd.c (drop_privileges): Removed. Adjust caller.
7748 * nscd/connections.c (begin_drop_privileges): New function.
7749 (finish_drop_privileges): New function.
7750 (nscd_init): Call the new functions which also install all groups
7751 for the server user.
7752 * nscd/Makefile (nscd-modules): Add xmalloc for nscd.
7753 Patch by Christopher Allen Wing <wingc@engin.umich.edu>.
7755 2002-01-17 H.J. Lu <hjl@gnu.org>
7757 * sysdeps/mips/dl-machine.h (__dl_runtime_resolve): Remove
7760 2002-01-17 Martin Schwidefsky <schwidefsky@de.ibm.com>
7762 * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S: Use 64 bit
7763 instructions for pointer operations.
7764 * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S: Likewise.
7766 2002-01-17 Andreas Jaeger <aj@suse.de>
7768 * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h: GCC 3.1 has
7769 __uint128_t build-in.
7771 * sysdeps/unix/sysv/linux/configure.in: Fix check for S390 and
7772 PowerPC, sync with 2.2 branch.
7774 2002-01-16 Ulrich Drepper <drepper@redhat.com>
7776 * posix/getconf.c: Update copyright year.
7777 * nss/getent.c: Likewise.
7778 * nscd/nscd_nischeck.c: Likewise.
7779 * iconv/iconvconfig.c: Likewise.
7780 * iconv/iconv_prog.c: Likewise.
7781 * elf/ldconfig.c: Likewise.
7782 * catgets/gencat.c: Likewise.
7783 * csu/version.c: Likewise.
7784 * elf/ldd.bash.in: Likewise.
7785 * elf/sprof.c (print_version): Likewise.
7786 * locale/programs/locale.c: Likewise.
7787 * locale/programs/localedef.c: Likewise.
7788 * nscd/nscd.c (print_version): Likewise.
7789 * debug/xtrace.sh: Likewise.
7790 * malloc/memusage.sh: Likewise.
7791 * malloc/mtrace.pl: Likewise.
7793 2002-01-16 Andreas Schwab <schwab@suse.de>
7795 * sysdeps/unix/sysv/linux/ia64/ldd-rewrite.sed: Fix regexp to
7796 reliably remove "-ia64" from rtld name.
7798 2002-01-16 Ulrich Drepper <drepper@redhat.com>
7800 * iconvdata/gb18030.c: Bug fixes and support for more characters.
7801 Patch by Yu Shao <yshao@redhat.com>.
7803 2002-01-16 Martin Schwidefsky <schwidefsky@de.ibm.com>
7805 * sysdeps/unix/sysv/linux/s390/swapcontext.c: Remove.
7806 * sysdeps/unix/sysv/linux/s390/s390-32/swapcontext.S: New file.
7807 * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S: New file.
7809 2002-01-14 Martin Schwidefsky <schwidefsky@de.ibm.com>
7811 * sysdeps/s390/fpu/libm-test-ulps: Update.
7813 2002-01-11 Ulrich Drepper <drepper@redhat.com>
7815 * elf/elf.h: Update x86 relocations.
7817 2002-01-10 Ulrich Drepper <drepper@redhat.com>
7819 * locale/programs/charmap.c (new_width): Check whether byte
7820 sequences for both ends of range have the same length.
7822 2002-01-09 Jakub Jelinek <jakub@redhat.com>
7824 * elf/elf.h (SHN_UNDEF): Remove duplicate definition.
7826 2002-01-09 Jakub Jelinek <jakub@redhat.com>
7828 * sysdeps/alpha/fpu/e_sqrt.c (__ieee754_sqrt): Don't use multi-line
7830 (__full_ieee754_sqrt): Add __attribute_used__.
7832 2002-01-10 Ulrich Drepper <drepper@redhat.com>
7834 * sysdeps/generic/group_member.c (__group_member): Also check
7835 groups[0] [PR libc/2781].
7837 2002-01-08 Ulrich Drepper <drepper@redhat.com>
7839 * Makefile (distribute): Add scripts/cpp.
7840 * elf/Makefile (distribute): Add reldep6mod[01234].c,
7841 unwind-dw2.c, unwind-dw2-fde.c, unwind.h, unwind-pe.h,
7842 unwind-dw2-fde.h, and dwarf2.h.
7843 * sysdeps/unix/bsd/bsd4.4/Dist: New file.
7844 * sysdeps/unix/sysv/aix/Dist: Add sysv_termio.h and start-libc.c.
7845 * sysdeps/unix/sysv/linux/ia64/Dist: Add ldd-rewrite.sed.
7846 * sysdeps/unix/sysv/linux/s390/Dist: Likewise.
7848 2002-01-07 Roland McGrath <roland@frob.com>
7850 * sysdeps/mach/hurd/i386/init-first.c (_hurd_stack_setup): Use
7851 volatile on type of ARGC so the compiler doesn't get clever.
7853 2002-01-07 Andreas Jaeger <aj@suse.de>
7855 * sysdeps/generic/bits/byteswap.h: Prevent double inclusion.
7856 * sysdeps/i386/bits/byteswap.h: Likewise.
7857 * sysdeps/ia64/bits/byteswap.h: Likewise.
7858 * sysdeps/m68k/bits/byteswap.h: Likewise.
7859 * sysdeps/s390/s390-32/bits/byteswap.h: Likewise.
7860 * sysdeps/s390/s390-64/bits/byteswap.h: Likewise [PR libc/2757].
7862 2002-01-02 Bruno Haible <bruno@clisp.org>
7864 * intl/plural.y: Fix %expect count.
7866 2002-01-03 Jakub Jelinek <jakub@redhat.com>
7868 * elf/Makefile (routines, shared-only-routines): Add
7869 unwind-dw2-fde-glibc instead of unwind-dw2-fde.
7870 * elf/elf.h (PT_GNU_EH_FRAME): Define.
7871 * sysdeps/generic/unwind-dw2-fde-glibc.c: New file.
7872 * sysdeps/generic/unwind-dw2-fde.c (__register_frame_info_bases):
7873 Optimize if .eh_frame section contains no FDEs.
7874 (__register_frame, __deregister_frame_info_bases,
7875 __deregister_frame): Likewise.
7876 * sysdeps/generic/unwind-dw2.c (execute_cfa_program): Fix
7877 DW_CFA_restore handling.
7879 2002-01-07 Stephen L Moshier <moshier@mediaone.net>
7881 * sysdeps/ieee754/ldbl-96/s_erfl.c (erfcl): Fix K&R header.
7883 * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (sin_pi): Fix typo in test
7884 for x < 0.25 and restore original range reduction method.
7885 (__ieee754_lgammal_r): Make sure signgam is set before returning.
7887 2002-01-07 Ulrich Drepper <drepper@redhat.com>
7889 * libio/fileops.c (_IO_file_underflow_mmap): New function.
7890 (_IO_file_close_mmap): New function.
7891 (_IO_file_jumps_mmap): New variable.
7892 * libio/wfileops.c (_IO_wfile_underflow): Reset read pointer before
7893 trying to convert rest of byte buffer.
7894 (_IO_wfile_underflow_mmap): New function.
7895 (_IO_wfile_jumps_mmap): New variable.
7896 * libio/iofopen.c (__fopen_maybe_mmap): New function.
7897 (__fopen_internal): New function. Split out from _IO_new_fopen.
7898 (_IO_new_fopen): Call __fopen_internal.
7899 * libio/iofopen64.c: Just call __fopen_internal.
7900 * libio/iofdopen.c: Call __fopen_maybe_mmap before returning
7902 * libio/iolibio.h: Declare __fopen_internal and __fopen_maybe_mmap.
7903 * libio/libioP.h: Declare _IO_file_jumps_mmap, _IO_wfile_jumps_mmap,
7904 _IO_file_close_mmap.
7906 * sysdeps/gnu/_G_config.h: Define _G_MMAP64.
7907 * sysdeps/unix/sysv/linux/cris/_G_config.h: Likewise.
7909 * stdio-common/Makefile (tests): Add tst-rndseek.
7910 * stdio-common/tst-rndseek.c: New file.
7912 2002-01-05 Roland McGrath <roland@frob.com>
7914 * config.h.in (HAVE_MIG_RETCODE): New #undef.
7915 * sysdeps/mach/hurd/configure.in (hurd_MIG_RETCODE: New macro
7916 swiped from hurd package's aclocal.m4; use it to set HAVE_MIG_RETCODE.
7917 * sysdeps/mach/hurd/configure: Regenerated.
7919 2002-01-03 Ulrich Drepper <drepper@redhat.com>
7921 * elf/elf.h: Add more TLS definitions.
7923 2002-01-02 Ulrich Drepper <drepper@redhat.com>
7925 * include/features.h (__GLIBC_MINOR__): Bump to 3.
7927 2002-01-02 Roland McGrath <roland@frob.com>
7929 * sysdeps/mach/hurd/sigwait.c (__sigwait): Use __sigandset,
7930 __sigisemptyset. Don't use MASK uninitialized.
7932 * sysdeps/mach/hurd/sigprocmask.c (__sigprocmask): Use __sigorset.
7933 * hurd/hurdinit.c (_hurd_new_proc_init): Use __sigisemptyset.
7934 * hurd/hurdsig.c (_hurd_internal_post_signal): Use __sigismember,
7935 __sigdelset, __sigaddset, __sigorset.
7937 * sysdeps/generic/htonl.c: Use uint32_t instead of u_int32_t.
7938 * sysdeps/generic/htons.c: Use uint16_t instead of u_int16_t.
7940 * hurd/hurdinit.c (_hurd_ports_use): Return EGRATUITOUS when
7941 _hurd_ports is null.
7943 * hurd/hurdsig.c (_hurdsig_init): Conditionalize exception port setup
7944 for old CMU and new OSF Mach interface flavors.
7945 * hurd/hurdfault.c (_hurdsig_fault_init): Likewise.
7946 * sysdeps/mach/hurd/fork.c (__fork): Likewise.
7948 * hurd/hurdsig.c (_hurd_internal_post_signal): Leave msgh_seqno unset.
7950 * sysdeps/mach/hurd/spawni.c (__spawni) [KERN_INVALID_LEDGER]:
7951 Pass extra arguments to task_create for OSF variant.
7952 * sysdeps/mach/hurd/fork.c (__fork): Likewise.
7954 * sysdeps/powerpc/elf/libc-start.c: Make AUXVEC diddling code
7955 conditional on [HAVE_AUX_VECTOR].
7957 * mach/mach/mach_traps.h (thread_switch, __thread_switch): Use
7958 mach_msg_timeout_t as type of final argument.
7960 * hurd/privports.c (__get_privileged_ports):
7961 Change host_priv_t to mach_port_t in argument type.
7962 * hurd/hurd.h (get_privileged_ports, __get_privileged_ports):
7965 * sysdeps/mach/hurd/i386/bits/sigcontext.h: Protect from
7966 multiple inclusion. Inhibit #error under [_SYS_UCONTEXT_H].
7967 * sysdeps/mach/hurd/alpha/bits/sigcontext.h: Likewise.
7968 * sysdeps/mach/hurd/hppa/bits/sigcontext.h: Likewise.
7969 * sysdeps/mach/hurd/mips/bits/sigcontext.h: Likewise.
7970 * sysdeps/mach/hurd/powerpc/bits/sigcontext.h: Likewise.
7972 2002-01-01 Roland McGrath <roland@frob.com>
7974 * sysdeps/mach/hurd/errnos.awk: Tighten up device_types.h matching.
7976 2002-01-01 Ulrich Drepper <drepper@redhat.com>
7978 * include/stdlib.h: Define inlines for the _l variants of the strto*
7981 2002-01-01 Roland McGrath <roland@frob.com>
7983 * sysdeps/mach/hurd/powerpc/intr-msg.h: Remove extraneous backslash.
7985 * mach/Machrules (MIG): Set CPP as well as CC.
7987 2001-12-31 Ulrich Drepper <drepper@redhat.com>
7989 * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Always use C
7990 locale to parse /proc/loadavg [PR libc/2760].
7992 2001-12-31 Jakub Jelinek <jakub@redhat.com>
7994 * elf/dl-conflict.c: Include sys/param.h.
7995 (RESOLVE_CONFLICT_FIND_MAP): Cast r_offset to ElfW(Addr).
7996 * sysdeps/alpha/dl-machine.h (elf_machine_runtime_setup): Avoid
7998 (TRAMPOLINE_TEMPLATE, RTLD_START): Don't use multi-line string
7999 literals to avoid warnings.
8001 2001-12-31 Andreas Jaeger <aj@suse.de>
8003 * configure.in: Don't check for gsed since we do not use it anywhere.
8005 2001-12-25 Dmitry V. Levin <ldv@alt-linux.org>
8007 * io/fts.c: Update from BSD to fix memory leaks.
8009 2001-12-25 Dmitry V. Levin <ldv@alt-linux.org>
8011 * crypt/md5-crypt.c: Realloc error handling memory leak fix.
8012 * elf/chroot_canon.c: Likewise.
8013 * elf/dl-object.c: Likewise.
8014 * iconv/iconv_charmap.c: Likewise.
8015 * iconv/iconv_prog.c: Likewise.
8016 * libio/iogetdelim.c: Likewise.
8017 * locale/lc-time.c: Likewise.
8018 * stdlib/canonicalize.c: Likewise.
8019 * sunrpc/svc.c: Likewise.
8020 * sysdeps/generic/glob.c: Likewise.
8022 2001-12-19 Martin Schwidefsky <schwidefsky@de.ibm.com>
8024 * sysdeps/unix/sysv/linux/s390/profil-counter.h: Move/copy to ...
8025 * sysdeps/unix/sysv/linux/s390/s390-32/profil-counter.h: ... here,
8026 remove high order bit from the program counter.
8027 * sysdeps/unix/sysv/linux/s390/s390-64/profil-counter.h: ... and here.
8029 2001-12-19 Martin Schwidefsky <schwidefsky@de.ibm.com>
8031 * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): Remove
8032 unnecessary code and add missing reloc types.
8033 * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Add empty
8034 case for reloc type R_390_NONE.
8036 2001-12-28 Andreas Jaeger <aj@suse.de>
8038 * io/bug-ftw3.c: Include string.h for prototypes.
8040 * crypt/md5test.c (main): Remove unused variable.
8042 * dlfcn/modstatic.c: Add prototype to avoid warning.
8044 2001-12-26 Roland McGrath <roland@frob.com>
8046 * sysdeps/mach/hurd/sigwait.c (__sigwait): When returning immediately,
8047 check only (SS->pending & MASK) for the signal to return.
8048 From Jeroen Dekkers <jeroen@dekkers.cx>.
8050 2001-12-22 Roland McGrath <roland@frob.com>
8052 * iconv/skeleton.c [!RESET_INPUT_BUFFER && !SAVE_RESET_STATE]:
8053 Use preprocessor #if conditionals instead of `if' to avoid
8054 warnings about divide by zero in dead code.
8056 * hurd/Versions (libc: GLIBC_2.2.5): Add _hurd_port_set,
8057 _hurd_port_init, and __hurd_self_sigstate.
8059 * mach/Versions (libc: GLIBC_2.2.5): Add mig_strncpy.
8061 2001-12-21 Andreas Jaeger <aj@suse.de>
8063 * elf/dblloadmod1.c: Add prototype to avoid warning.
8064 * elf/dblloadmod2.c: Likewise.
8065 * elf/dblloadmod3.c: Likewise.
8066 * elf/reldepmod5.c: Likewise.
8067 * elf/reldepmod6.c: Likewise.
8069 * elf/dl-conflict.c (_dl_resolve_conflicts): Add unused attribute
8070 for resolve_conflict_map since RESOLVE_CONFLICT_FIND_MAP is not
8071 used on all architectures.
8073 * sunrpc/svc_tcp.c: Add noreturn attribute for
8074 svctcp_rendezvous_abort.
8075 * sunrpc/svc_unix.c: Likewise for svcunix_rendezvous_abort.
8077 * sysdeps/generic/strstr.c (strstr): Add paranthese for assignment
8080 2001-12-19 Jakub Jelinek <jakub@redhat.com>
8082 * manual/llio.texi (aio_fsync): Fix a typo.
8083 Patch by Tammy Fox <tfox@redhat.com>.
8085 2001-12-18 Jakub Jelinek <jakub@redhat.com>
8087 * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (clone): Subtract
8088 stack bias from child stack pointer before passing it to clone syscall.
8090 2001-12-18 Ulrich Drepper <drepper@redhat.com>
8092 * sysdeps/posix/sysconf.c (__sysconf): Respect POSIX minimum for
8094 * sysdeps/generic/sysconf.c (__sysconf): Likewise.
8095 Reported by Thorsten Kukuk <kukuk@suse.de>.
8097 * sysdeps/unix/grantpt.c (grantpt): Correct typo in comment and
8100 * sysdeps/unix/sysv/linux/grantpt.c: Make __unix_grantpt static.
8102 2001-12-18 Thorsten Kukuk <kukuk@suse.de>
8104 * sysdeps/unix/sysv/linux/grantpt.c: Make errno results standard
8105 conforming: return EBADF if file descriptor is invalid and EINVAL
8106 if file descriptor is no valid tty.
8107 * login/tst-grantpt.c: New file.
8108 * login/Makefile (tests): Add tst-grantpt.
8110 2001-12-17 Ulrich Drepper <drepper@redhat.com>
8112 * io/ftw.c (ftw_dir): Handle inaccessibility of toplevel dir
8113 different than implemented in last patch.
8114 * io/bug-ftw3.c: Adjust test for changed handling of
8115 inaccessibility of toplevel dir.
8117 2001-12-16 Roland McGrath <roland@frob.com>
8119 * nss/nsswitch.c (__nss_next): Don't use __FUNCTION__ as literal.
8120 * grp/initgroups.c (internal_getgrouplist): Likewise.
8122 * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): Add `break' after
8123 `default:' to silence new GCC warning.
8124 Rewrite cast of lvalue to silence new GCC warning.
8126 * sysdeps/mach/hurd/i386/init-first.c: Avoid multi-line strings in asm.
8128 * sysdeps/mach/hurd/spawni.c: New file, by me with a
8129 couple fixes by Neal H Walfield <neal@cs.uml.edu>.
8131 2001-12-14 Ulrich Drepper <drepper@redhat.com>
8133 * sysdeps/generic/strstr.c (strstr): Update. New optimized version.
8134 Patch by Stephen R. van den Berg.
8136 * crypt/md5.h: Define md5_uintptr.
8138 2001-12-13 Ulrich Drepper <drepper@redhat.com>
8140 * libio/tst_swprintf.c (main): Add test for string argument with
8142 * stdio-common/Makefile (tests): Add tst-sprintf.
8143 * stdio-common/tst-sprintf.c: New file.
8145 2001-12-13 Andreas Schwab <schwab@suse.de>
8147 * stdio-common/vfprintf.c (process_string_arg): Correctly handle
8148 zero precision with wide character string format.
8150 2001-12-13 Thorsten Kukuk <kukuk@suse.de>
8152 * sysdeps/posix/cuserid.c (cuserid): If we don't find the UID,
8153 but have a user supplied buffer, return the empty buffer, not NULL.
8155 2001-12-13 Ulrich Drepper <drepper@redhat.com>
8157 * crypt/md5.c (md5_process_bytes): Correct handling of alignment.
8158 Patch by Eric Sharkey <sharkey@netrics.com>.
8160 * crypt/md5test.c (main): Add test for multiple calls to
8161 __md5_process_bytes to itererate over input string.
8163 2001-12-12 Ulrich Drepper <drepper@redhat.com>
8165 * nis/nis_findserv.c (__nis_findfastest_with_timeout): Mostly the code
8166 from __nis_findfastest. Take timeout value from parameter.
8167 (__nis_findfastest): Call __nis_findfastest_with_timeout repeatedly.
8168 * nis/nis_intern.h: Define parameters controlling __nis_findfastest
8169 [PR libc/2520]. Patch by Alexander Belopolsky <alexb@rentec.com>.
8171 2001-12-12 Andreas Jaeger <aj@suse.de>
8173 * configure.in: Use -nostartfiles -nostdlib for linker tests, fix
8174 combreloc test so that it works in this case.
8176 * sysdeps/arm/dl-machine.h (elf_machine_rela): Fix typo in last patch.
8178 2001-12-12 NIIBE Yutaka <gniibe@m17n.org>
8180 * sysdeps/sh/Makefile: New file.
8181 * sysdeps/sh/_mcount.S: New file.
8182 * sysdeps/sh/sysdep.h (CALL_MCOUNT): Implemented.
8183 * sysdeps/sh/machine-gmon.h: Remove "NOTYET" comment, as we are ready.
8185 2001-12-11 Ulrich Drepper <drepper@redhat.com>
8187 * resolv/nss_dns/dns-host.c (getanswer_r): Remove MAX_NR_ADDRS
8188 limitation [PR libc/2564].
8190 2001-12-11 Jakub Jelinek <jakub@redhat.com>
8192 * elf/Makefile (dl-routines): Add conflict.
8193 (rtld-ldscript-in, rtld-ldscript, rtld-parms): Remove.
8194 (ld.so): Add _begin local symbol.
8195 * elf/elf.h (DT_VALTAGIDX, DT_VALNUM, DT_ADDRTAGIDX, DT_ADDRNUM):
8197 * elf/dl-deps.c (_dl_build_local_scope): New.
8198 (_dl_map_object_deps): If LD_TRACE_PRELINKING, compute local scopes
8200 * elf/do-rel.h (VALIDX): Define.
8201 (elf_dynamic_do_rel): If ELF_MACHINE_PLT_REL is defined, don't do
8202 lazy binding for RELA. If DT_GNU_PRELINKED, DT_RELACOUNT relocations
8204 * elf/dl-conflict.c: New file.
8205 * elf/dl-lookup.c (_dl_debug_bindings): New.
8206 (_dl_lookup_symbol): Use _dl_debug_bindings. Reference_name is always
8208 (_dl_lookup_symbol_skip): Likewise.
8209 (_dl_lookup_versioned_symbol): Likewise.
8210 (_dl_lookup_versioned_symbol_skip): Likewise.
8211 * elf/dl-runtime.c (PLTREL): If ELF_MACHINE_PLT_REL is defined,
8212 define to ElfW(Rel).
8213 * elf/dynamic-link.h (elf_get_dynamic_info): Record selected dynamic
8214 tags in the DT_VALRNGLO..DT_VALRNGHI and DT_ADDRRNGLO..DT_ADDRRNGHI
8216 Don't adjust address dynamic tags if l_addr is 0.
8217 * elf/rtld.c (_dl_trace_prelink, _dl_trace_prelink_map): New variables.
8218 (_dl_start): Skip ELF_DYNAMIC_RELOCATE if ld.so is prelinked.
8219 (VALIDX, ADDRIDX): Define.
8220 (_dl_start_final): Initialize _dl_rtld_map's l_map_start and l_map_end.
8221 (dl_main): Print library list for LD_TRACE_PRELINKING.
8222 If prelinking information can be used, skip relocating libraries and
8223 call _dl_resolve_conflicts instead.
8224 (process_envvars): Handle LD_TRACE_PRELINKING envvar.
8225 * elf/dl-load.c (_dl_map_object): Don't create fake libs
8226 if LD_TRACE_PRELINKING.
8227 * include/link.h (struct link_map) [l_info]: Add DT_VALNUM
8229 * sysdeps/generic/ldsodefs.h (_dl_trace_prelink_map): New declaration.
8230 (DL_DEBUG_PRELINK): Define.
8231 (_dl_resolve_conflicts): Add prototype.
8233 * sysdeps/alpha/dl-machine.h (elf_machine_runtime_setup): Reinitialize
8234 .plt for prelinked libraries where prelinking info cannot be used.
8235 (elf_machine_rela): If relocating R_ALPHA_JMP_SLOT in .gnu.conflict
8236 section, use RESOLVE_CONFLICT_FIND_MAP to find out reloc's link_map.
8237 * sysdeps/arm/bits/link.h: New file.
8238 * sysdeps/arm/dl-machine.h (elf_machine_runtime_setup): Save original
8240 (ELF_MACHINE_NO_RELA): Only define if RTLD_BOOTSTRAP.
8241 (ELF_MACHINE_PLT_REL): Define.
8242 (elf_machine_rela, elf_machine_rela_relative): New.
8243 (elf_machine_lazy_rel): Reinitialize R_ARM_JUMP_SLOT address instead
8244 of adjusting it if prelinked and prelinking cannot be used.
8245 * sysdeps/i386/bits/link.h: New file.
8246 * sysdeps/i386/dl-machine.h (elf_machine_runtime_setup): Save original
8248 (ELF_MACHINE_NO_RELA): Only define if RTLD_BOOTSTRAP.
8249 (ELF_MACHINE_PLT_REL): Define.
8250 (elf_machine_rela, elf_machine_rela_relative): New.
8251 (elf_machine_lazy_rel): Reinitialize R_386_JUMP_SLOT address instead
8252 of adjusting it if prelinked and prelinking cannot be used.
8253 * sysdeps/powerpc/dl-machine.h (elf_machine_rela): If relocating
8254 conflicts, skip finaladdr computation. Use RESOLVE_CONFLICT_FIND_MAP
8255 to find out map for R_PPC_JMP_SLOT relocs.
8256 * sysdeps/sparc/sparc32/dl-machine.h (VALIDX): Define.
8257 (OPCODE_BA): Define.
8258 (elf_machine_runtime_setup): Reinitialize .plt for prelinked
8259 libraries where prelinking info cannot be used.
8260 (sparc_fixup_plt): Renamed from elf_machine_fixup_plt.
8261 (elf_machine_fixup_plt): Call sparc_fixup_plt.
8262 (elf_machine_rela): Set value to 0 if relocating conflicts.
8263 Call sparc_fixup_plt for R_SPARC_JMP_SLOT.
8264 * sysdeps/sparc/sparc64/dl-machine.h (VALIDX): Define.
8265 (sparc64_fixup_plt): Fix a typo.
8266 (elf_machine_rela): Set value to 0 if relocating conflicts.
8267 Handle R_SPARC_JMP_SLOT relocs when relocating conflicts.
8268 (elf_machine_runtime_setup): Reinitialize .plt for prelinked
8269 libraries where prelinking info cannot be used.
8270 * sysdeps/sh/bits/link.h: New file.
8271 * sysdeps/sh/dl-machine.h (elf_machine_runtime_setup): Save original
8273 (elf_machine_lazy_rel): Reinitialize R_SH_JMP_SLOT address instead
8274 of adjusting it if prelinked and prelinking cannot be used.
8275 * sysdeps/s390/s390-32/bits/link.h: New file.
8276 * sysdeps/s390/s390-32/dl-machine.h (elf_machine_runtime_setup):
8277 Save original content of .got[1].
8278 (elf_machine_lazy_rel): Reinitialize R_390_JMP_SLOT address instead
8279 of adjusting it if prelinked and prelinking cannot be used.
8280 * sysdeps/s390/s390-64/bits/link.h: New file.
8281 * sysdeps/s390/s390-64/dl-machine.h (elf_machine_runtime_setup):
8282 Save original content of .got[1].
8283 (elf_machine_lazy_rel): Reinitialize R_390_JMP_SLOT address instead
8284 of adjusting it if prelinked and prelinking cannot be used.
8285 * sysdeps/x86_64/bits/link.h: New file.
8286 * sysdeps/x86_64/dl-machine.h (elf_machine_runtime_setup):
8287 Save original content of .got[1].
8288 (elf_machine_lazy_rel): Reinitialize R_X86_64_JMP_SLOT address instead
8289 of adjusting it if prelinked and prelinking cannot be used.
8291 2001-12-11 Ulrich Drepper <drepper@redhat.com>
8293 * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_r): Use sizeof
8294 where appropriate instead of numbers. Little optimizations.
8296 2001-12-10 Roland McGrath <roland@frob.com>
8298 * sysdeps/mach/hurd/bind.c (bind): Don't deallocate IFSOCK if we never
8301 * shlib-versions [USE_IN_LIBIO] (.*-.*-gnu-gnu.*): Set default
8302 set to GLIBC_2.2.5, not GLIBC_2.2.4.
8304 * sysdeps/mach/hurd/configure.in (libc_cv_gcc_unwind_find_fde):
8305 Fix conditionals so this is set by default for stdio and not for libio.
8306 * sysdeps/mach/hurd/configure: Regenerated.
8308 2001-12-10 Thorsten Kukuk <kukuk@suse.de>
8310 * io/ftw.c (ftw_startup): Check, if the path is search and readable.
8312 2001-12-10 Ulrich Drepper <drepper@redhat.com>
8314 * io/Makefile (tests): Add bug-ftw3.
8315 * io/bug-ftw3.c: New file.
8317 * sysdeps/generic/glob.c (glob): Return only pattern if nothing
8318 matches and GLOB_NOCHECK is set.
8319 * posix/globtest.sh: Correct expected result for NOCHECK test.
8321 * po/ca.po: Update from translation team.
8323 2001-12-09 Ulrich Drepper <drepper@redhat.com>
8325 Implement transliteration of characters in strings of the locale
8327 * locale/programs/linereader.c: Adjust for additional parameter to
8329 (get_string): If character <Uxxxx> is not found try to transliterate
8331 * locale/programs/ld-ctype.c: Adjust for additional parameter to
8332 lr_token. Add const to charmap parameter of all functions.
8333 (find_translit, find_translit2): New functions.
8334 * locale/programs/charmap.c: Adjust for additional parameter to
8336 * locale/programs/repertoire.c: Likewise.
8337 * locale/programs/linereader.h: Likewise.
8338 * locale/programs/ld-address.c: Likewise. Add const to charmap
8339 parameter of all functions.
8340 * locale/programs/ld-collate.c: Likewise.
8341 * locale/programs/ld-identification.c: Likewise.
8342 * locale/programs/ld-measurement.c: Likewise.
8343 * locale/programs/ld-messages.c: Likewise.
8344 * locale/programs/ld-monetary.c: Likewise.
8345 * locale/programs/ld-name.c: Likewise.
8346 * locale/programs/ld-numeric.c: Likewise.
8347 * locale/programs/ld-paper.c: Likewise.
8348 * locale/programs/ld-paper.c: Likewise.
8349 * locale/programs/ld-telephone.c: Likewise.
8350 * locale/programs/ld-time.c: Likewise.
8351 * locale/programs/locfile.c: Likewise.
8352 * locale/programs/localedef.c: Likewise.
8353 * locale/programs/localedef.h: Likewise.
8354 * locale/programs/locfile.h: Likewise. Add declaration for
8356 * locale/programs/simple-hash.c: Add const to first parameter of
8357 find_entry, iterate_table, and lookup.
8358 * locale/programs/simple-hash.h: Likewise.
8359 * locale/localeinfo.h: Don't define __LC_LAST here. Include <locale.h>
8361 * include/locale.h: Define __LC_LAST.
8362 * iconv/Makefile (CFLAGS-linereader.c): Define to -DNO_TRANSLITERATION.
8364 2001-12-07 Geoff Keating <geoffk@redhat.com>
8366 * sysdeps/powerpc/Dist: Update for recent FP changes.
8367 * sysdeps/powerpc/fpu/Dist: Likewise.
8369 2001-12-07 Andreas Schwab <schwab@suse.de>
8371 * sysdeps/unix/sysv/linux/opensock.c: Include <string.h>.
8373 2001-12-06 Geoff Keating <geoffk@redhat.com>
8375 * sysdeps/powerpc/Makefile (sysdep_routines): Don't build the fpr
8376 save/restore functions here.
8377 (libm-support): Don't define these functions here.
8378 * sysdeps/powerpc/fpu/Makefile: Build the fpr save/restore
8380 * sysdeps/powerpc/fe_nomask.c: Move to...
8381 * sysdeps/powerpc/fpu/fe_nomask.c: ... here.
8382 * sysdeps/powerpc/fprrest.S: Move to...
8383 * sysdeps/powerpc/fpu/fprrest.S: ... here.
8384 * sysdeps/powerpc/fprsave.S: Move to...
8385 * sysdeps/powerpc/fpu/fprsave.S: ... here.
8387 2001-12-06 Ulrich Drepper <drepper@redhat.com>
8389 * sysdeps/unix/sysv/linux/opensock.c: New file.
8391 2001-12-06 Geoff Keating <geoffk@redhat.com>
8393 * config.make.in (with-fp): Define from configure.
8394 * configure.in: Substitute with_fp.
8395 * configure: Regenerate.
8396 * sysdeps/powerpc/Makefile: Set -msoft-float when --without-fp is
8397 specified, and don't change FPU environment.
8399 2001-12-06 Ulrich Drepper <drepper@redhat.com>
8401 * libio/vasprintf.c (_IO_vasprintf): Free buffer on failure.
8402 * assert/assert.c: Check result of __asprintf call and don't use
8403 string if it failed.
8404 * assert/assert-perr.c: Likewise.
8405 * inet/rcmd.c: Likewise.
8406 * locale/programs/localedef.c (main): Check result of
8407 construct_output_path and exit if it failed.
8408 (construct_output_path): Check result of asprintf and mkdir calls and
8409 fail if they failed.
8410 * posix/getopt.c: Check result of __asprintf calls and fail if
8412 Patch by Dmitry V. Levin <ldv@alt-linux.org>.
8414 2001-12-05 Ulrich Drepper <drepper@redhat.com>
8416 * sysdeps/generic/strcasecmp.c (__strcasecmp): Little performance
8418 * sysdeps/generic/strncase.c: Likewise.
8419 * string/tester.c: Add tests for strcasecmp and strncasecmp.
8421 2001-12-05 Geoff Keating <geoffk@redhat.com>
8423 * scripts/cpp: Test the exit status from 'type', not 'awk'.
8425 * sysdeps/powerpc/__longjmp.S: Don't restore FP registers.
8426 * sysdeps/powerpc/fpu/__longjmp.S: Do restore FP registers.
8427 * sysdeps/powerpc/setjmp.S: Don't save FP registers.
8428 * sysdeps/powerpc/fpu/setjmp.S: Do save FP registers.
8429 * sysdeps/powerpc/fclrexcpt.c: Move to...
8430 * sysdeps/powerpc/fpu/fclrexcpt.c: ... here.
8431 * sysdeps/powerpc/fpu_control.h: Move to...
8432 * sysdeps/powerpc/fpu/fpu_control.h: ... here.
8434 2001-12-05 Ulrich Drepper <drepper@redhat.com>
8436 * iconvdata/ibm1129.h: Remove duplicate mappings.
8437 * iconvdata/ibm937.c: Handle overflow errors. Handle new tables.
8438 * iconvdata/ibm937.h: Reorganize table to safe a lot of space.
8439 Patch by Masahide Washizawa <WASHI@jp.ibm.com>.
8441 * timezone/zic.c: Fix handling of turnaround times.
8442 Patch by Arthur David Olson <olsona@dc37a.nci.nih.gov>.
8444 2001-12-02 Moshe Olshansky <OLSHANSK@il.ibm.com>
8446 * sysdeps/ieee754/dbl-64/e_remainder.c (__ieee754_remainder): Fix
8449 2001-12-05 Ulrich Drepper <drepper@redhat.com>
8451 * posix/regex.c: For use outside glibc defined bounded pointer
8452 macros here. Patch by Jim Meyering <jim@meyering.net>.
8454 * iconvdata/Makefile (modules): Add TCVN5712-1.
8455 * iconvdata/TESTS: Add TCVN5712-1.
8456 * iconvdata/gconv-modules: Likewise.
8457 * iconvdata/tcvn5712-1.c: New file.
8458 * iconvdata/testdata/TCVN-5712: New file.
8459 * iconvdata/testdata/TCVN-5712..UTF8: New file.
8461 2001-12-04 Ulrich Drepper <drepper@redhat.com>
8463 * iconvdata/cp1258.c: Optimize conversion from UCS4.
8465 2001-12-02 Roland McGrath <roland@frob.com>
8467 * mach/Makefile, mach/Machrules: Move comments out of \ continuations.
8469 * hurd/hurd.h (__hurd_fail): Add `break;' to silence new gcc-3 warning.
8470 Reported by Jeff Bailey <jbailey@nisa.net>.
8472 * hurd/hurd.h (_hurd_umask): Remove volatile qualifier from decl.
8473 Reported by Jeff Bailey <jbailey@nisa.net>.
8475 * mach/Makefile ($(objpfx)mach-syscalls.mk): Pass $(CFLAGS) to $(CC).
8476 * mach/Machrules ($(objpfx)%.udeps static pattern rule): Likewise.
8477 Reported by Jeff Bailey <jbailey@nisa.net>.
8479 2001-12-01 Roland McGrath <roland@frob.com>
8481 * sysdeps/mach/hurd/configure.in (libc_cv_gcc_unwind_find_fde): Add
8482 missing backslash in test arguments.
8483 * sysdeps/mach/hurd/configure: Regenerated.
8485 2001-11-26 Roland McGrath <roland@frob.com>
8487 * hurd/hurdinit.c (_hurd_ports_use): Check if _hurd_ports is null.
8488 Reported by John Tobey <jtobey@john-edwin-tobey.org>.
8490 2001-11-30 Ulrich Drepper <drepper@redhat.com>
8492 * iconvdata/Makefile (modules): Add ARMSCII-8.
8493 * iconvdata/gconv-modules: Add entries for ARMSCII-8.
8494 * iconvdata/armscii-8.c: New file.
8496 2001-11-29 Jakub Jelinek <jakub@redhat.com>
8498 * sysdeps/generic/glob.c (next_brace_sub): Return NULL if braces
8499 don't match, fix {{a,b},c} globbing, clean up.
8500 Patch by Flavio Veloso <flaviovs@magnux.com>.
8501 * posix/globtest.sh: Add new tests.
8503 2001-11-29 Andreas Jaeger <aj@suse.de>
8505 * sysdeps/unix/sysv/linux/x86_64/Versions: Add arch_prctl.
8506 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Add arch_prctl call.
8508 * sysdeps/generic/abort.c: Include libioP.h for
8509 _IO_flush_all_lockp prototype.
8511 2001-11-29 Ulrich Drepper <drepper@redhat.com>
8513 * posix/regex.h: Define __restrict_arr correctly.
8515 2001-11-28 Ulrich Drepper <drepper@redhat.com>
8517 * iconvdata/ibm1163.c: New file.
8518 * iconvdata/ibm1163.h: New file.
8519 * iconvdata/ibm1164.c: New file.
8520 * iconvdata/ibm1164.h: New file.
8521 * iconvdata/TESTS: Add entries for IBM1163 and IBM1164.
8522 * iconvdata/Makefile: Likewise.
8523 * iconvdata/testdata/IBM1163: New file.
8524 * iconvdata/testdata/IBM1163..UTF8: New file.
8525 * iconvdata/testdata/IBM1164: New file.
8526 * iconvdata/testdata/IBM1164..UTF8: New file.
8527 Patch by Masahide Washizawa <WASHI@jp.ibm.com>.
8529 * iconvdata/ibm1046.h: Optimize. Remove duplicate mappings.
8530 * iconvdata/ibm1124.h: Likewise.
8531 * iconvdata/ibm1132.h: Likewise.
8532 * iconvdata/ibm1133.h: Likewise.
8533 * iconvdata/ibm1160.h: Likewise.
8534 * iconvdata/ibm1161.h: Likewise.
8535 * iconvdata/ibm1162.h: Likewise.
8536 * iconvdata/ibm856.h: Likewise.
8537 * iconvdata/ibm922.h: Likewise.
8538 * iconvdata/ibm930.h: Likewise.
8539 * iconvdata/ibm932.h: Likewise.
8540 * iconvdata/ibm933.h: Likewise.
8541 * iconvdata/ibm935.h: Likewise.
8542 * iconvdata/ibm937.h: Likewise.
8543 * iconvdata/ibm939.h: Likewise.
8544 * iconvdata/ibm943.h: Likewise.
8545 * iconvdata/ibm930.c: Pretty printing.
8546 * iconvdata/ibm937.c: Avoid access accross array boundary.
8548 * iconv/gconv_open.c (__gconv_open): Empty codeset name now means using
8549 the current locale's codeset.
8550 * iconv/iconv_open.c (iconv_open): Don't strip out everything for
8552 * iconv/iconv_prog.c: Pass empty strings as default value for to-
8553 and from-charset. Don't determine locale's charset here.
8555 * libio/genops.c (_IO_flush_all_lockp): New function. The same code
8556 as the old _IO_flush_all but lock only if parameter is nonzero.
8557 (_IO_flush_all): Call _IO_flush_all_lockp with 1 as parameter.
8558 * libio/libioP.h: Add prototype for _IO_flush_all_lockp.
8559 * sysdeps/generic/abort.c (fflush): Define to _IO_flush_all_lockp(0)
8560 if libio is used [PR libc/2575].
8562 2001-11-28 Jakub Jelinek <jakub@redhat.com>
8564 * sysdeps/sparc/fpu/bits/mathinline.h (__signbitf, __signbit,
8565 __signbitl): Only define for ISO C99.
8567 2001-11-22 Thorsten Kukuk <kukuk@suse.de>
8569 * nss/nss_files/files-hosts.c (_nss_files_get##name##_r): Set
8570 herrnop to NETDB_INTERNAL if we run out of buffer space.
8572 2001-11-28 Ulrich Drepper <drepper@redhat.com>
8574 * nss/nss_files/files-XXX.c (internal_getent): Correct input
8575 overflow test for platforms with signed char.
8576 Reported by Andrew Haley <aph@cambridge.redhat.com>.
8578 2001-11-28 Bruno Haible <bruno@clisp.org>
8580 * locale/programs/simple-hash.c (lookup_2): Remove function.
8581 (insert_entry_2): Call lookup instead of lookup_2.
8583 2001-03-04 Bruno Haible <bruno@clisp.org>
8585 * intl/dcigettext.c (DCIGETTEXT): Increment path_max proportionally.
8587 2001-10-31 Bruno Haible <bruno@clisp.org>
8589 * intl/plural.y: Include <stddef.h>, needed for NULL with SunOS 4 cc.
8591 2001-03-21 Bruno Haible <bruno@clisp.org>
8593 * intl/dcigettext.c (_nl_state_lock): Mark as #ifdef _LIBC. AIX 3 xlc
8594 chokes on empty macro arguments.
8595 * intl/plural.y: Add #pragma for alloca on AIX 3.
8597 2001-11-27 Ulrich Drepper <drepper@redhat.com>
8599 * intl/dcigettext.c (guess_category_value): Only implement for
8600 glibc. Otherwise rely on function _nl_locale_name which isn't
8601 present in the glibc sources.
8603 2001-09-24 Bruno Haible <bruno@clisp.org>
8605 * intl/loadmsgcat.c (_nl_init_domain_conv): Also enable
8606 transliteration when building on a glibc system but outside glibc.
8608 2001-09-22 Bruno Haible <bruno@clisp.org>
8610 * intl/plural-eval.c: New file, extracted from dcigettext.c.
8611 * intl/dcigettext.c (plural_eval): Remove function, moved to
8613 (plural_lookup): Call PLURAL_EVAL instead of plural_eval.
8614 Include plural-eval.c.
8616 2001-09-22 Bruno Haible <bruno@clisp.org>
8618 * intl/plural-exp.c (EXTRACT_PLURAL_EXPRESSION): Reject numbers that
8619 don't start with a digit; nplurals must be positive.
8621 2001-09-02 Bruno Haible <bruno@clisp.org>
8623 * intl/plural-exp.h: New file, extracted from gettextP.h.
8624 * intl/plural-exp.c: New file, extracted from loadmsgcat.c.
8625 * intl/gettextP.h (struct expression, struct parse_args,
8626 __gettext_free_exp, __gettextparse): Move to plural-exp.h.
8627 * intl/loadmsgcat.c: Include plural-exp.h.
8628 (PLURAL_PARSE): Move macro to plural-exp.h.
8629 (plvar, plone, germanic_plural, INIT_GERMANIC_PLURAL): Move to
8631 (_nl_load_domain): Move plural handling code to plural-exp.c. Call
8632 EXTRACT_PLURAL_EXPRESSION.
8633 (_nl_unload_domain): Update.
8634 * intl/dcigettext.c: Include plural-exp.h.
8635 * intl/plural.y: Include plural-exp.h, not gettextP.h.
8636 (FREE_EXPRESSION): Move macro to plural-exp.h.
8637 * intl/Makefile (routines): Add plural-exp.
8638 (distribute): Add plural-exp.h.
8640 2001-07-28 Bruno Haible <bruno@clisp.org>
8642 * intl/l10nflist.c (_nl_normalize_codeset): Cast isalnum, isalpha,
8643 isdigit, tolower argument to 'unsigned char'.
8644 * intl/loadmsgcat.c (_nl_load_domain): Cast isspace argument to
8646 * intl/localealias.c (read_alias_file): Cast isspace argument to
8649 2001-10-20 Bruno Haible <bruno@clisp.org>
8651 Assume strchr() exists. (Without it, intl/explodename.c wouldn't link
8653 * intl/dcigettext.c (strchr): Remove fallback definition; it conflicts
8654 with the variable 'index' in plural_lookup.
8655 * intl/l10nflist.c (strchr): Likewise.
8656 * intl/localealias.c (strchr): Likewise.
8658 Assume <stddef.h>, <stdlib.h>, <string.h>, <locale.h> exist.
8659 * intl/bindtextdom.c: Likewise.
8660 * intl/dcigettext.c: Likewise.
8661 * intl/dgettext.c: Likewise.
8662 * intl/dngettext.c: Likewise.
8663 * intl/explodename.c: Likewise.
8664 * intl/finddomain.c: Likewise.
8665 * intl/gettext.c: Likewise.
8666 * intl/l10nflist.c: Likewise.
8667 * intl/loadmsgcat.c: Likewise.
8668 * intl/localealias.c: Likewise.
8669 * intl/ngettext.c: Likewise.
8670 * intl/textdomain.c: Likewise.
8671 * intl/gettext.h: Assume <limits.h> exists.
8673 2001-11-27 Ulrich Drepper <drepper@redhat.com>
8675 * stdio-common/Makefile (tests): Add scanf11.
8676 * stdio-common/scanf11.c: New file.
8678 2001-11-26 Ulrich Drepper <drepper@redhat.com>
8680 * version.h (RELEASE): Define as development.
8681 (VERSION): Set to 2.2.90.
8683 2001-11-22 Thorsten Kukuk <kukuk@suse.de>
8685 * nis/nss_compat/compat-grp.c: Print group id as unsigned long.
8686 * nis/nss_nis/nis-grp.c: Likewise.
8687 * nis/nss_nisplus/nisplus-grp.c: Likewise.
8689 * nis/nss_compat/compat-pwd.c: Print user id as unsigned long.
8690 * nis/nss_nis/nis-pwd.c: Likewise.
8691 * nis/nss_nisplus/nisplus-pwd.c: Likewise.
8693 * nis/nss_nis/nis-publickey.c: Use strtoul instead of atoi.
8694 * nis/nss_nisplus/nisplus-parser.c: Likewise.
8695 * nis/nss_nisplus/nisplus-publickey.c: Likewise.
8697 * nscd/grpcache.c: Use strtoul instead of atol.
8698 * nscd/pwdcache.c: Likewise.
8699 * nss/getent.c: Likewise.
8701 2001-11-27 Paul Eggert <eggert@twinsun.com>
8703 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
8704 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
8706 2001-11-19 Bruno Haible <bruno@clisp.org>
8708 * locale/programs/simple-hash.c (insert_entry_2): Resize at 75%, not
8710 (compute_hashval): Shift by 9 bits, not by 4 bits. This drastically
8711 improves the quality of the hash function, especially for short
8714 2001-11-26 Ulrich Drepper <drepper@redhat.com>
8716 * stdio-common/vfscanf.c: If incomplete nan of inf(inity) strings
8717 are found call conv_error and not input_error [PR libc/2669].
8719 * math/bits/mathcalls.h: Mark ceil and floor as const.
8720 Reported by David Mosberger.
8722 2001-11-21 Jim Meyering <meyering@lucent.com>
8724 * posix/regex.c (iswctype, mbrtowc, wcslen, wcscoll, wcrtomb) [_LIBC]:
8725 Define to be __-prefixed.
8726 Remove unnecessary duplication in `#ifdef _LIBC' blocks.
8728 2001-11-26 Andreas Jaeger <aj@suse.de>
8730 * sysdeps/unix/sysv/linux/hppa/brk.c: Remove __brk_addr alias,
8733 2001-11-26 Stephen L Moshier <moshier@mediaone.net>
8735 * sysdeps/ieee754/ldbl-128/e_log10l.c (L102B): Fix typo in
8738 * sysdeps/ieee754/ldbl-128/e_coshl.c (__ieee754_coshl): Remove
8739 unused variables. Fix threshold for returning 1.0.
8741 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (neval, deval): Constify
8744 * sysdeps/ieee754/ldbl-128/s_erfl.c (neval, deval): Likewise, and
8745 remove unused variables.
8747 * sysdeps/ieee754/ldbl-128/e_j0l.c (neval, deval): Likewise.
8749 * sysdeps/ieee754/ldbl-128/e_j1l.c (neval, deval): Likewise, and
8750 include local math header files.
8752 2001-11-22 Andreas Jaeger <aj@suse.de>
8754 * sysdeps/ieee754/ldbl-96/s_ilogbl.c (__ilogbl): Add brace to
8757 2001-11-21 Andreas Jaeger <aj@suse.de>
8759 * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: New file.
8761 * sysdeps/unix/sysv/linux/x86_64/Makefile (sysdep_headers): Add
8764 2001-11-15 Andreas Jaeger <aj@suse.de>
8766 * include/features.h (__GLIBC_HAVE_LONG_LONG): Define for
8767 compilers that support it.
8769 * posix/sys/types.h: Use __GLIBC_HAVE_LONG_LONG.
8770 * sysdeps/unix/sysv/linux/bits/types.h: Likewise.
8771 * stdlib/stdlib.h: Likewise.
8773 2001-11-17 Ulrich Drepper <drepper@redhat.com>
8775 * posix/regex.c (byte_re_match_2_internal): For gcc replace switch
8776 statement with gotos.
8777 Based on a patch by Paolo Bonzini <bonzini@pc-amo3.elet.polimi.it>.
8779 2001-11-16 Stephen L Moshier <moshier@mediaone.net>
8781 * sysdeps/ieee754/ldbl-96/s_erfl.c (__erfcl): Fix K&R header.
8783 2001-11-15 Ulrich Drepper <drepper@redhat.com>
8785 * sysdeps/generic/unwind-dw2-fde.c: Don't use recursive mutexes.
8787 2001-10-02 Jakub Jelinek <jakub@redhat.com>
8788 H.J. Lu <hjl@gnu.org>
8790 * Versions.def (libc): Add GCC_3.0.
8791 * configure.in (libc_cv_gcc_static_libgcc): Set to -static-libgcc
8792 if gcc supports this flag.
8793 (EXPORT_UNWIND_FIND_FDE): Define unless target configure disables it.
8794 (gcc3): Allow glibc to be compiled with gcc 3.x.
8795 * config.h.in (EXPORT_UNWIND_FIND_FDE): Add.
8796 * config.make.in (static-libgcc, unwind-find-fde): Add.
8797 * Makerules (build-shlib-helper, build-module-helper): Use it.
8798 * scripts/versions.awk: Make sure GLIBC_ versions come first.
8799 * elf/soinit.c (__libc_global_ctors): Set tbases and dbases if
8801 (_fini): Call __deregister_frame_info_bases if
8802 __register_frame_info_bases was used to register.
8803 * elf/Versions (__register_frame_info, __deregister_frame_info): Add
8805 (__register_frame_info_bases, __register_frame_info_table_bases,
8806 __deregister_frame_info_bases, _Unwind_Find_FDE): Add for GCC_3.0.
8807 * elf/Makefile (routines): Add unwind-dw2-fde.
8808 (shared-only-routines): Add unwind-dw2-fde.
8809 * sysdeps/alpha/gccframe.h: New file.
8810 * sysdeps/arm/gccframe.h: New file.
8811 * sysdeps/generic/framestate.c: New file.
8812 * sysdeps/generic/dwarf2.h: New file.
8813 * sysdeps/generic/gccframe.h (struct object): Update from gcc 3.0.
8814 * sysdeps/generic/unwind-dw2-fde.c: New file.
8815 * sysdeps/unix/sysv/linux/ia64/unwind-dw2-fde.c: New file.
8816 * sysdeps/generic/unwind-dw2-fde.h: New file.
8817 * sysdeps/generic/unwind-dw2.c: New file.
8818 * sysdeps/generic/unwind-pe.h: New file.
8819 * sysdeps/generic/unwind.h: New file.
8820 * sysdeps/hppa/gccframe.h: New file.
8821 * sysdeps/i386/gccframe.h: New file.
8822 * sysdeps/m68k/gccframe.h: New file.
8823 * sysdeps/mips/gccframe.h: New file.
8824 * sysdeps/powerpc/gccframe.h: New file.
8825 * sysdeps/s390/gccframe.h: New file.
8826 * sysdeps/sh/gccframe.h: New file.
8827 * sysdeps/sparc/gccframe.h: New file.
8828 * sysdeps/vax/gccframe.h: New file.
8829 * sysdeps/unix/sysv/linux/configure.in (libc_cv_gcc_unwind_find_fde):
8830 Set on all architectures except ia64.
8831 * sysdeps/mach/hurd/configure.in (libc_cv_gcc_unwind_find_fde): Set
8833 * sysdeps/mach/hurd/i386/Versions (__register_frame_info,
8834 __deregister_frame_info): Move to elf/Versions.
8835 * sysdeps/unix/sysv/linux/m68k/Versions: Likewise.
8836 * sysdeps/unix/sysv/linux/arm/Versions: Likewise.
8837 * sysdeps/unix/sysv/linux/alpha/Versions: Likewise.
8838 * sysdeps/unix/sysv/linux/i386/Versions: Likewise.
8839 * sysdeps/unix/sysv/linux/mips/Versions: Likewise.
8840 * sysdeps/unix/sysv/linux/powerpc/Versions: Likewise.
8841 * sysdeps/unix/sysv/linux/s390/s390-32/Versions: Likewise.
8842 * sysdeps/unix/sysv/linux/sparc/sparc32/Versions: Likewise.
8843 * sysdeps/unix/sysv/linux/sparc/sparc64/Versions: Likewise.
8844 * sysdeps/mach/hurd/i386/Makefile (sysdep-routines): Add framestate.
8845 * sysdeps/unix/sysv/linux/arm/Makefile: Likewise.
8846 * sysdeps/unix/sysv/linux/alpha/Makefile: Likewise.
8847 * sysdeps/unix/sysv/linux/i386/Makefile: Likewise.
8848 * sysdeps/unix/sysv/linux/m68k/Makefile: Likewise.
8849 * sysdeps/unix/sysv/linux/mips/Makefile: Likewise.
8850 * sysdeps/unix/sysv/linux/powerpc/Makefile: Likewise.
8851 * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Likewise.
8852 * sysdeps/unix/sysv/linux/sparc/Makefile: Likewise.
8854 2001-11-15 Jeff Law <law@redhat.com>
8856 * posix/regex.c (uintptr_t): Do not provide a definition if the
8857 system provided one.
8859 2001-11-13 Roland McGrath <roland@frob.com>
8861 * stdio-common/tmpfile.c: Moved to ...
8862 * sysdeps/generic/tmpfile.c: ... here.
8863 * sysdeps/mach/hurd/tmpfile.c: New file.
8865 * hurd/fopenport.c (__fopenport): Renamed from fopenport.
8866 [USE_IN_LIBIO] (fopencookie): #define as _IO_fopencookie.
8867 (fopenport): Define as weak alias.
8869 * libio/iofopncook.c (_IO_fopencookie): Move forward declaration ...
8870 * libio/libioP.h: ... to here.
8872 2001-11-12 Ulrich Drepper <drepper@redhat.com>
8874 * elf/dl-reloc.c (_dl_relocate_object): Avoid iterating over
8875 program header twice. Construct list with the needed information.
8877 2001-11-10 Ulrich Drepper <drepper@redhat.com>
8879 * po/ca.po: Update from translation team.
8881 * elf/dl-load.c (_dl_map_object_from_fd): Remove use of
8882 _dl_pf_to_prot. Use arithmetic operation using PF_TO_PROT macro.
8883 * sysdeps/generic/ldsodefs.h (PF_TO_PROT): New macro.
8884 * elf/dl-reloc.c (_dl_relocate_object): Likewise.
8886 2001-11-10 Andreas Jaeger <aj@suse.de>
8888 * sysdeps/ieee754/ldbl-128/e_log2l.c: New file.
8889 * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
8890 Contributed by Stephen L Moshier <moshier@mediaone.net>.
8892 2001-11-09 Ulrich Drepper <drepper@redhat.com>
8894 * elf/dl-minimal.c (realloc): Handle NULL for first parameter
8896 * elf/dl-load.c (is_dst): New function.
8897 (_dl_dst_count): Use is_dst to check for DST variable.
8898 (_dl_dst_substitute): Likewise.
8900 2001-11-09 Roland McGrath <roland@frob.com>
8902 Hurd/PowerPC port contributed by Peter Bruin <pjbruin@dds.nl>.
8903 * sysdeps/mach/hurd/powerpc/exc2signal.c: New file.
8904 * sysdeps/mach/hurd/powerpc/init-first.c: New file.
8905 * sysdeps/mach/hurd/powerpc/intr-msg.h: New file.
8906 * sysdeps/mach/hurd/powerpc/longjmp-ts.c: New file.
8907 * sysdeps/mach/hurd/powerpc/register-dump.h: New file.
8908 * sysdeps/mach/hurd/powerpc/sigreturn.c: New file.
8909 * sysdeps/mach/hurd/powerpc/static-start.S: New file.
8910 * sysdeps/mach/hurd/powerpc/trampoline.c: New file.
8911 * sysdeps/mach/hurd/powerpc/bits/sigcontext.h: New file.
8912 * sysdeps/mach/hurd/powerpc/Dist: New file.
8914 * hurd/privports.c (__get_privileged_ports):
8915 Only contact the proc server if necessary for this call.
8916 Suggested by Neal H Walfield <neal@cs.uml.edu>.
8917 Check error return for mach_port_mod_refs.
8919 2001-11-09 Andreas Schwab <schwab@suse.de>
8921 * sysdeps/unix/sysv/linux/m68k/bits/resource.h: New file.
8923 2001-11-09 Ulrich Drepper <drepper@redhat.com>
8925 * elf/dl-load.c (lose): Remove some unnecessary code. The new
8926 object is always the last in the list.
8927 (_dl_map_object_from_fd): Delete code to remove from object list
8928 when DF_1_NOOPEN is seen. This is done in lose.
8930 2001-11-08 Ulrich Drepper <drepper@redhat.com>
8932 * elf/dl-object.c (_dl_new_object): Various small optimizations.
8934 2001-11-07 Ulrich Drepper <drepper@redhat.com>
8936 * sysdeps/generic/dl-cache.c: Optimize SEARCH_CACHE and
8937 HWCAP_CHECK macro code.
8939 * elf/dl-misc.c (_dl_sysdep_read_whole_file): Optimize code a bit.
8940 Now returns MAP_FAILED on error.
8941 * elf/rtld.c: Adjust caller.
8942 * sysdeps/generic/dl-cache.c: Likewise.
8943 * sysdeps/generic/ldsodefs.h: Adjust description.
8945 * elf/dl-version.c (match_symbol): Optimize error handling for size.
8946 (_dl_check_map_versions): Likewise.
8948 2001-11-06 Ulrich Drepper <drepper@redhat.com>
8950 * elf/dl-load.c (_dl_map_object_from_fd): Don't call
8951 _dl_signal_error directly, always use lose. Set fd to -1 after
8953 (lose): Don't call close if fd == -1.
8955 2001-11-07 Kaoru Fukui <k_fukui@highway.ne.jp>
8957 * manual/charset.texi: Fix typo @w[ISO 6937] to @w{ISO 6937}.
8958 Also fix typo @code {mbsinit} to @code{mbsinit}.
8960 2001-11-06 Ulrich Drepper <drepper@redhat.com>
8962 * elf/dl-profile.c: Replace state variable with simple flag named
8963 running. Remove commented-out code.
8965 * elf/dl-load.c (decompose_rpath): Optimize error handling for size.
8966 (_dl_init_paths): Likewise.
8967 (_dl_map_object_from_fd): Likewise.
8968 * elf/dl-reloc.c (_dl_relocate_object): Likewise.
8970 2001-11-06 Roland McGrath <roland@frob.com>
8972 * sysdeps/mach/powerpc/sysdep.h: Include sysdeps/unix/powerpc/sysdep.h
8973 instead of sysdeps/powerpc/elf/sysdep.h and sysdeps/unix/sysdep.h.
8975 * sysdeps/unix/sysv/linux/powerpc/sysdep.h: Don't include
8976 sysdeps/powerpc/elf/sysdep.h.
8977 Reported by Kaoru Fukui <k_fukui@highway.ne.jp>.
8979 2001-11-05 Ulrich Drepper <drepper@redhat.com>
8981 * elf/rtld.c (process_dl_debug): Rewritten. Optimized for size not
8983 (process_envvars): Some more optimizations.
8984 * sysdeps/generic/ldsodefs.h (DL_DEBUG_HELP): New macro.
8986 * elf/elf.h: Add dynamic tag definitions for prelinking.
8988 * elf/rtld.c (process_envvars): Avoid using array of string pointers.
8989 Rewrite code to remove environment varables for SUID binaries.
8990 Small optimization in LD_PROFILE handling.
8991 * sysdeps/generic/unsecvars.h: Adjust format for process_envvars
8993 * sysdeps/unix/sysv/linux/i386/dl-librecon.h: Likewise.
8995 * sysdeps/generic/dl-sysdep.c: Don't initialize _dl_cpuclock_offset.
8997 * elf/dl-reloc.c (_dl_reloc_bad_type): Rewrite to not use writable
8998 strings. Change type of second parameter.
8999 * sysdeps/generic/ldsodefs.h: Adjust _dl_reloc_bad_type prototype
9002 * io/fts.h: Prevent using <fts.h> with _FILE_OFFSET_BITS=64.
9004 2001-11-04 Joseph S. Myers <jsm28@cam.ac.uk>
9006 * manual/string.texi: Fix typos.
9007 * manual/examples/argp-ex2.c: Likewise.
9009 2001-11-05 Roland McGrath <roland@frob.com>
9011 * sysdeps/powerpc/elf/sysdep.h: Remove this file, because it overrides
9012 the more-specific unix/sysv/linux/powerpc file and breaks everything.
9013 * sysdeps/powerpc/sysdep.h (ALIGNARG, ASM_TYPE_DIRECTIVE,
9014 ASM_SIZE_DIRECTIVE, CALL_MCOUNT, ENTRY, EALIGN, DO_CALL, JUMPTARGET,
9015 PSEUDO, PSEUDO_RET, PSEUDO_END, L, C_TEXT): These macros moved here
9016 here, put under [__ELF__].
9018 2001-11-05 Ulrich Drepper <drepper@redhat.com>
9020 * manual/charset.texi: Extensive editing work.
9021 * manual/nss.texi: Likewise.
9022 Changes by Dennis Grace <dgrace@us.ibm.com>.
9024 2001-11-04 Roland McGrath <roland@frob.com>
9026 * hurd/set-host.c (_hurd_set_host_config): Use O_WRONLY in flags
9027 parameter to dir_mkfile.
9029 2001-11-02 Jakub Jelinek <jakub@redhat.com>
9031 * string/bits/string2.h (__strndup): If n is smaller than len, set
9033 * string/tester.c (test_strndup): New function.
9036 2001-11-01 Ulrich Drepper <drepper@redhat.com>
9038 * sunrpc/rpc_main.c: Optimize variable definitions a bit.
9040 * sunrpc/Makefile (rpcgen-cmd): Use ../scripts/cpp in rpcgen calls.
9041 * scripts/cpp: New file.
9043 * elf/dl-load.c (_dl_map_object): Correct test of DF_1_NODEFLIB
9044 for rtld_search_dirs content. Minor optimizations.
9046 2001-10-31 Ulrich Drepper <drepper@redhat.com>
9048 * elf/dl-load.c (_dl_map_object): Make code a bit more compact by
9049 avoiding unnecessary duplication.
9051 2001-10-31 Jakub Jelinek <jakub@redhat.com>
9053 * elf/dl-load.c (_dl_map_object): If library was found using
9054 LD_LIBRARY_PATH, don't try RUNPATH list.
9056 2001-10-31 Martin Schwidefsky <schwidefsky@de.ibm.com>
9058 * sysdeps/unix/sysv/linux/s390/s390-32/register-dump.h (REGISTER_DUMP):
9059 Correct second argument of register_dump call.
9060 * sysdeps/unix/sysv/linux/s390/s390-64/register-dump.h (REGISTER_DUMP):
9063 2001-10-31 Ulrich Drepper <drepper@redhat.com>
9065 * iconvdata/Makefile: Add support for IBM1132, IBM1133, and IBM1162
9067 * iconvdata/TESTS: Likewise.
9068 * iconvdata/gconv-modules: Likewise.
9069 * iconvdata/ibm1132.c: New file.
9070 * iconvdata/ibm1132.h: New file.
9071 * iconvdata/ibm1133.c: New file.
9072 * iconvdata/ibm1133.h: New file.
9073 * iconvdata/ibm1162.c: New file.
9074 * iconvdata/ibm1162.h: New file.
9075 * iconvdata/testdata/IBM1132: New file.
9076 * iconvdata/testdata/IBM1132..UTF8: New file.
9077 * iconvdata/testdata/IBM1133: New file.
9078 * iconvdata/testdata/IBM1133..UTF8: New file.
9079 * iconvdata/testdata/IBM1162: New file.
9080 * iconvdata/testdata/IBM1162..UTF8: New file.
9081 Patches by Masahide Washizawa <WASHI@jp.ibm.com>.
9083 * string/string.h: Fix typo in comment.
9084 * wcsmbs/wchar.h: Likewise.
9086 2001-10-30 Joseph S. Myers <jsm28@cam.ac.uk>
9088 * manual/getopt.texi (getopt_long, getopt_long_only): Include
9089 const in type of longopts parameter.
9091 2001-10-29 Andreas Jaeger <aj@suse.de>
9093 * sysdeps/ieee754/dbl-64/mpa.h: Add prototypes for internal functions.
9095 2001-10-29 Kevin Ryde <user42@zip.com.au>
9097 * manual/stdio.texi (Integer Conversions): Corrections to sample printf
9098 output, clarify `#' behaviour on 0.
9099 (Floating-Point Conversions): Clarify that %g only uses %e when
9100 the exponent would be greater than 1.
9102 2001-10-28 Roland McGrath <roland@frob.com>
9104 Support for Mach/PowerPC contributed by Peter Bruin <pjbruin@dds.nl>.
9105 * sysdeps/mach/powerpc/machine-sp.h: New file.
9106 * sysdeps/mach/powerpc/sysdep.h: New file.
9107 * sysdeps/mach/powerpc/thread_state.h: New file.
9109 * sysdeps/mach/hurd/i386/Makefile: File removed; crt0.o rules moved ...
9110 * sysdeps/mach/hurd/Makefile: ... to here. For the time being, we can
9111 expect to need the same thing on every platform.
9113 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: File moved ...
9114 * sysdeps/generic/sys/ucontext.h: ... to replace this one.
9116 * sysdeps/unix/sysv/linux/powerpc/sysdep.h (ALIGNARG,
9117 ASM_TYPE_DIRECTIVE, ASM_SIZE_DIRECTIVE, CALL_MCOUNT, ENTRY, EALIGN,
9118 DO_CALL, JUMPTARGET, PSEUDO, PSEUDO_RET, PSEUDO_END, L, C_TEXT):
9119 Move all these assembly-related definitions to ...
9120 * sysdeps/powerpc/elf/sysdep.h: ... this new file.
9122 * sysdeps/mach/powerpc/machine-lock.h: Assembly code rewritten
9123 by Peter Bruin <pjbruin@dds.nl>.
9125 * hurd/hurdselect.c (_hurd_select): Check SELECT_RETURNED bit when
9126 packing results for a `poll' call.
9128 2001-10-26 Ulrich Drepper <drepper@redhat.com>
9130 * posix/fnmatch_loop.c: Recognize - at end of bracket expression
9132 * posix/tst-fnmatch.input: Add tests for - at beginning and end of
9135 * string/strxfrm.c [USE_IN_EXTENDED_LOCALE_MODEL]: Correctly get
9137 * string/tst-strxfrm.c (test): Also test __strxfrm_l.
9139 2001-10-24 H.J. Lu <hjl@gnu.org>
9141 * sysdeps/generic/bits/dlfcn.h (DL_CALL_FCT): Cast to void *.
9142 Use __BEGIN_DECLS/__END_DECLS around prototypes.
9143 * sysdeps/mips/bits/dlfcn.h (DL_CALL_FCT): Likewise.
9145 2001-10-21 Jim Meyering <meyering@lucent.com>
9147 * malloc/obstack.c (_): Honor the setting of ENABLE_NLS. Otherwise,
9148 this code would end up calling gettext even in packages built
9150 * posix/getopt.c (_): Likewise.
9151 * posix/regex.c (_): Likewise.
9153 2001-10-26 Ulrich Drepper <drepper@redhat.com>
9155 * resolv/gethnamaddr.c (gethostbyaddr): Use ip6.addr for reverse
9157 * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr_r): Likewise.
9158 Reported by Martin.v.Loewis@t-online.de [PR libc/2598].
9160 2001-10-19 Jakub Jelinek <jakub@redhat.com>
9162 * misc/sys/cdefs.h (__attribute_used__): Define.
9163 * elf/rtld.c (_dl_start): Add __attribute_used__.
9164 * elf/dl-runtime.c (fixup, profile_fixup): Likewise.
9166 2001-10-25 Andreas Schwab <schwab@suse.de>
9168 * stdlib/a64l.c: Expect least significant digit first.
9169 * stdlib/l64a.c: Produce least significant digit first.
9170 * stdlib/Makefile (tests): Add test-a64l.
9171 * stdlib/test-a64l.c: New file.
9172 Reported by Masaki Hasegawa <masaki-h@pp.iij4u.or.jp>.
9174 2001-10-21 Ulrich Drepper <drepper@redhat.com>
9176 * po/sk.po: Update from translation team.
9178 2001-10-18 Ulrich Drepper <drepper@redhat.com>
9180 * sysdeps/i386/elf/start.S (_fp_hw): Define object type.
9182 2001-10-18 Andreas Schwab <schwab@suse.de>
9184 * math/libm-test.inc (print_ulps): Print ulp values rounded to
9186 (print_function_ulps): Likewise.
9187 (print_complex_function_ulps): Likewise.
9188 (print_max_error): Likewise.
9189 (print_complex_max_error): Likewise. Handle ignore_max_ulp.
9191 2001-10-16 Andreas Schwab <schwab@suse.de>
9193 * sysdeps/m68k/fpu/libm-test-ulps: Updated for fixed cbrtl
9196 * sysdeps/m68k/setjmp.c: Also define setjmp and _setjmp if
9197 BSD_SETJMP or BSD__SETJMP is defined, resp.
9198 * sysdeps/m68k/bsd-setjmp.c: Inline setjmp code instead of making
9199 a tail call to __sigsetjmp that would require extending the
9201 * sysdeps/m68k/bsd-_setjmp.c: Likewise.
9202 * sysdeps/m68k/bsd-setjmp.S: Deleted.
9203 * sysdeps/m68k/bsd-_setjmp.S: Deleted.
9204 Reported by Jes Sorensen <jes@trained-monkey.org>.
9206 2001-10-16 Andreas Jaeger <aj@suse.de>
9208 * sysdeps/ieee754/ldbl-96/s_nextafterl.c (__nextafterl): Fix
9209 parentheses. Reported by David Byron <dbyron@porto.coactive.com>,
9212 2001-10-15 Ulrich Drepper <drepper@redhat.com>
9214 * po/ca.po: New file. Contributed by the translation team.
9216 2001-10-15 Ralf Baechle <ralf@gnu.org>
9218 * sysdeps/unix/sysv/linux/mips/sys/sysmips.h: Make sysmips() prototype
9219 a varargs prototype. Remove dependency from kernel header files.
9221 * sysdeps/unix/sysv/linux/mips/bits/termios.h: General cleanup, use
9222 __USE_MISC / __USE_XOPEN not __USE_BSD where appropriate.
9224 2001-10-14 Ulrich Drepper <drepper@redhat.com>
9226 * locale/programs/ld-collate.c (handle_ellipsis): Use %lX not %lx
9227 to generate hexadecimal identifier.
9228 Patch by Jungshik Shin <jungshik.shin@yale.edu>.
9230 2001-10-09 Stephen L Moshier <moshier@mediaone.net>
9232 * sysdeps/ieee754/ldbl-96/s_cbrtl.c (__cbrtl): Fix algorithm.
9234 2001-10-14 Ulrich Drepper <drepper@redhat.com>
9236 * sysdeps/ieee754/ldbl-128/e_powl.c: New file.
9237 * sysdeps/ieee754/ldbl-128/s_cbrtl.c: New file.
9238 Contributed by Stephen L Moshier <moshier@mediaone.net>.
9240 * sysdeps/ieee754/ldbl-128/e_j0l.c: Constify float variables.
9241 * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
9242 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise
9243 * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise
9244 * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise
9245 * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise
9247 * timezone/africa: Update from tzdata2001d.
9248 * timezone/asia: Likewise.
9249 * timezone/australasia: Likewise.
9250 * timezone/backward: Likewise.
9251 * timezone/europe: Likewise.
9252 * timezone/leapseconds: Likewise.
9253 * timezone/northamerica: Likewise.
9254 * timezone/southamerica: Likewise.
9255 * timezone/zone.tab: Likewise.
9257 2001-10-09 Martin Schwidefsky <schwidefsky@de.ibm.com>
9259 * sysdeps/s390/s390-32/sys/ucontext.h: Correct __psw_t typedef.
9260 * sysdeps/s390/s390-64/sys/ucontext.h: Likewise.
9262 2001-10-12 Ulrich Drepper <drepper@redhat.com>
9264 * elf/elf.h (PT_TLS): New definition.
9266 2001-10-10 Jeff Bailey <jbailey@nisa.net>
9268 * sysdeps/mach/hurd/Makefile: Add $(CFLAGS) for generation of
9271 2001-10-07 Roland McGrath <roland@frob.com>
9273 * sysdeps/mach/hurd/setrlimit.c (__setrlimit): Never return ENOSYS.
9275 2001-10-10 Ulrich Drepper <drepper@redhat.com>
9277 * elf/elf.h: Add more ELFOSABI_* constants.
9279 2001-10-04 Ben Collins <bcollins@debian.org>
9281 * sysdeps/generic/inttypes.h: Fix typo (define, not defined) in
9282 decleration of __need_wchar_t.
9284 2001-10-03 Jakub Jelinek <jakub@redhat.com>
9286 * string/bits/string2.h (__strsep_g): Add prototype.
9288 * string/Versions (__strsep): Remove.
9289 * sysdeps/generic/strsep.c (__strsep_g): Add alias to __strsep.
9291 2001-10-07 Ulrich Drepper <drepper@redhat.com>
9293 * manua/llio.texi: Clarify file references added by mmap.
9294 Patch by Marcus Brinkmann <Marcus.Brinkmann@ruhr-uni-bochum.de>.
9296 2001-09-29 Jes Sorensen <jes@trained-monkey.org>
9298 * sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h (struct sigcontext):
9299 Add sc_loadrs and sc_rbs_bas to match current kernel.
9301 2001-09-27 Jakub Jelinek <jakub@redhat.com>
9303 * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Update.
9305 * sysdeps/ieee754/ldbl-128/s_erfl.c (__erfcl): Fix erfc(-inf).
9307 2001-09-27 Jakub Jelinek <jakub@redhat.com>
9309 * elf/dl-open.c (dl_open_worker): If l_opencount of freshly loaded
9310 object has been bumped because of relocation dependency, avoid
9311 duplicates in l_scope.
9312 (show_scope): Fix typos.
9313 * elf/Makefile: Add rules to build and run reldep6.
9314 * elf/reldep6.c: New file.
9315 * elf/reldep6mod0.c: New file.
9316 * elf/reldep6mod1.c: New file.
9317 * elf/reldep6mod2.c: New file.
9318 * elf/reldep6mod3.c: New file.
9319 * elf/reldep6mod4.c: New file.
9321 2001-09-26 Jakub Jelinek <jakub@redhat.com>
9323 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_fixup_plt): Call
9325 (sparc64_fixup_plt): Moved from elf_machine_fixup_plt. Optimize
9326 near jumps and 0xfffff800XXXXXXXX target addresses, no thread safety
9327 for non-lazy binding. Fix .plt[32768+] handling.
9328 (elf_machine_plt_value): Don't add addend.
9329 (elf_machine_rela): Call sparc64_fixup_plt instead of
9330 elf_machine_fixup_plt.
9331 (elf_machine_runtime_setup, TRAMPOLINE_TEMPLATE): Optimize for
9332 dynamic linker at 0xfffff800XXXXXXXX.
9334 * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Update.
9336 2001-09-28 Ulrich Drepper <drepper@redhat.com>
9338 * elf/elf.h: Define SHF_GROUP and SHF_TLS.
9340 2001-09-25 Jakub Jelinek <jakub@redhat.com>
9342 * sysdeps/unix/bsd/bsd4.4/bits/socket.h (struct cmsghdr): Don't
9343 declare __cmsg_data field if its size would be bigger than 0.
9344 (CMSG_DATA): Adjust accordingly.
9345 * sysdeps/unix/sysv/aix/bits/socket.h: Likewise.
9346 * sysdeps/unix/sysv/linux/alpha/bits/socket.h: Likewise.
9347 * sysdeps/unix/sysv/linux/ia64/bits/socket.h: Likewise.
9348 * sysdeps/unix/sysv/linux/s390/s390-64/bits/socket.h: Likewise.
9349 * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
9350 * sysdeps/unix/sysv/linux/mips/bits/socket.h: Likewise.
9351 * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
9353 2001-09-25 Ulrich Drepper <drepper@redhat.com>
9355 * iconvdata/TESTS: Add entries for IBM1160 and IBM1161.
9356 * iconvdata/testdata/IBM1160: New file.
9357 * iconvdata/testdata/IBM1160..UTF8: New file.
9358 * iconvdata/testdata/IBM1161: New file.
9359 * iconvdata/testdata/IBM1161..UTF8: New file.
9360 Patch by Masahide Washizawa <WASHI@jp.ibm.com>.
9362 2001-09-24 Ulrich Drepper <drepper@redhat.com>
9364 * sysdeps/unix/bsd/ulimit.c (ulimit): Handle overflow in
9365 UL_SETFSIZE computations better.
9367 * rt/Makefile: Remove use of filter for librt again.
9369 * sysdeps/unix/sysv/linux/ulimit.c (__ulimit): Handle overflow in
9370 UL_SETFSIZE computations better.
9372 * string/Versions: Export __strsep for GLIBC_2.2.5.
9373 * string/bits/string2.h: Define all __STRING_INLINE functions if
9374 _FORCE_INLINES is defined.
9375 Use int instead of char of parameter types.
9376 (__strsep): Don't use __strsep_g. Don't define it.
9377 (__strsep_1c, __strsep_2c, __strsep_3c): Optimize.
9378 * sysdeps/i386/i486/string.h (__strcpy_a_small): Renamed from
9380 (__stpcpy_a_small): Renamed from __stpcpy_small.
9381 (__strcspn_c1): Don't define if _FORCE_INLINES.
9382 (__strspn_c1): Likewise.
9384 2001-09-22 Ben Collins <bcollins@debian.org>
9386 * sysdeps/sparc/bits/sigaction.h: Define SA_RESTART and friends when
9387 _UNIX98_SOURCE is defined too. Matches generic/bits/sigaction.h.
9388 * sysdeps/ia64/bits/sigaction.h: Likewise.
9389 * sysdeps/s390/s390-64/bits/sigaction.h: Likewise.
9391 2001-09-24 Andrew Haley <aph@cambridge.redhat.com>
9393 * sysdeps/unix/sysv/linux/sh/Makefile (sysdep_headers): Add sys/io.h.
9395 2001-09-24 Jakub Jelinek <jakub@redhat.com>
9397 * elf/dl-open.c (dl_open_worker): Update l_scope_max.
9399 2001-09-24 Ulrich Drepper <drepper@redhat.com>
9401 * wcsmbs/wchar.h: Add __attribute_pure__ to mbsinit prototype.
9403 2001-09-20 H.J. Lu <hjl@gnu.org>
9405 * include/dlfcn.h (__RTLD_SPROF): New definiton.
9406 * elf/dl-open.c (dl_open_worker): Return immediately after loading
9408 * elf/sprof.c (main): Default to the filename if soname doesn't exist.
9409 (load_shobj): Call dlopen with `RTLD_LAZY | __RTLD_SPROF'.
9411 2001-09-20 H.J. Lu <hjl@gnu.org>
9413 * elf/dl-profile.c (_dl_mcount): Use old *narcsp value for newarc,
9416 2001-09-22 Ulrich Drepper <drepper@redhat.com>
9418 * nss/getent.c: Accept -s parameter to overwrite rules in
9419 nsswitch.conf. Patch by Nalin Dahyabhai <nalin@redhat.com>.
9421 * nss/nss_files/files-network.c (LINE_PARSER): Pad addr string
9422 with as many ".0" as necessary to form a complete address
9423 inet_network understands.
9425 * nss/getent.c: Various cleanups. Use simpler and fewer function
9428 2001-09-20 Martin Schwidefsky <schwidefsky@de.ibm.com>
9430 * sysdeps/s390/s390-32/bits/setjmp.h: Correct pointer comparison in
9432 * sysdeps/s390/s390-64/bits/setjmp.h: Likewise.
9434 2001-09-22 Ulrich Drepper <drepper@redhat.com>
9436 * iconvdata/Makefile: Add rules to build and distribute IBM1160 and
9438 * iconvdata/gconv-modules: Add entries for IBM1160 and IBM1161.
9439 * iconvdata/ibm1160.c: New file.
9440 * iconvdata/ibm1160.h: New file.
9441 * iconvdata/ibm1161.c: New file.
9442 * iconvdata/ibm1161.h: New file.
9443 Patch by Masahide Washizawa <WASHI@jp.ibm.com>.
9445 2001-09-19 Jakub Jelinek <jakub@redhat.com>
9447 * sysdeps/alpha/dl-machine.h (elf_machine_load_address): Compute the
9448 difference between base address and first PT_LOAD's virtual address,
9449 not the base address.
9451 2001-09-11 Tom Rix <trix@redhat.com>
9453 * sysdeps/unix/sysv/aix/init-first.c (init): Use USE_NONONPTION_FLAG
9454 ifdef for __getopt_clean_environment.
9455 * sysdeps/unix/sysv/aix/libc-start.c: Add real implementation.
9457 2001-09-22 Andreas Jaeger <aj@suse.de>
9459 * elf/reldep4.c (main): Add proper prototype to fix warning.
9461 * elf/reldep5.c (main): Remove unused variable.
9463 * math/math_private.h: Add prototypes.
9465 2001-09-21 Andreas Jaeger <aj@suse.de>
9467 * sysdeps/unix/sysv/linux/x86_64/Dist: New file.
9468 * sysdeps/x86_64/Dist: New file.
9469 * sysdeps/x86_64/soft-fp/Dist: New file.
9471 * sysdeps/gnu/Dist: Remove eval.c.
9473 2001-09-20 Ulrich Drepper <drepper@redhat.com>
9475 * malloc/memusage.c (realloc): Don't count already allocated
9477 (me): Always use dlsym() to find the real implementations.
9479 * malloc/memusage.sh: Make -n option actually do something.
9481 2001-09-20 Andreas Jaeger <aj@suse.de>
9483 * elf/elf.h (R_390_NUM): Correct value.
9485 * Versions.def: Add missing versions 2.2.3 for libthread_db and
9488 * sysdeps/unix/sysv/linux/configure.in: Add minimal kernel version
9489 for x86-64, install x86-64 into */lib64.
9491 * shlib-versions: Add x86-64.
9493 * elf/elf.h: Add x86-64 relocations.
9495 2001-09-19 Ulrich Drepper <drepper@redhat.com>
9497 * po/fr.po: Update from translation team.
9499 2001-09-19 Andreas Jaeger <aj@suse.de>
9501 * sysdeps/unix/sysv/linux/x86_64/Makefile: New file.
9502 * sysdeps/unix/sysv/linux/x86_64/Versions: New file.
9503 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: New file.
9504 * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: New file.
9505 * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: New file.
9506 * sysdeps/unix/sysv/linux/x86_64/bits/statfs.h: New file.
9507 * sysdeps/unix/sysv/linux/x86_64/bits/time.h: New file.
9508 * sysdeps/unix/sysv/linux/x86_64/bits/types.h: New file.
9509 * sysdeps/unix/sysv/linux/x86_64/brk.c: New file.
9510 * sysdeps/unix/sysv/linux/x86_64/clone.S: New file.
9511 * sysdeps/unix/sysv/linux/x86_64/fstatfs64.c: New file.
9512 * sysdeps/unix/sysv/linux/x86_64/ftruncate64.c: New file.
9513 * sysdeps/unix/sysv/linux/x86_64/fxstat.c: New file.
9514 * sysdeps/unix/sysv/linux/x86_64/fxstat64.c: New file.
9515 * sysdeps/unix/sysv/linux/x86_64/getdents.c: New file.
9516 * sysdeps/unix/sysv/linux/x86_64/getdents64.c: New file.
9517 * sysdeps/unix/sysv/linux/x86_64/getrlimit64.c: New file.
9518 * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: New file.
9519 * sysdeps/unix/sysv/linux/x86_64/glob64.c: New file.
9520 * sysdeps/unix/sysv/linux/x86_64/lxstat.c: New file.
9521 * sysdeps/unix/sysv/linux/x86_64/lxstat64.c: New file.
9522 * sysdeps/unix/sysv/linux/x86_64/mmap64.c: New file.
9523 * sysdeps/unix/sysv/linux/x86_64/pread64.c: New file.
9524 * sysdeps/unix/sysv/linux/x86_64/profil-counter.h: New file.
9525 * sysdeps/unix/sysv/linux/x86_64/pwrite64.c: New file.
9526 * sysdeps/unix/sysv/linux/x86_64/readdir.c: New file.
9527 * sysdeps/unix/sysv/linux/x86_64/readdir64.c: New file.
9528 * sysdeps/unix/sysv/linux/x86_64/readdir64_r.c: New file.
9529 * sysdeps/unix/sysv/linux/x86_64/readdir_r.c: New file.
9530 * sysdeps/unix/sysv/linux/x86_64/recv.c: New file.
9531 * sysdeps/unix/sysv/linux/x86_64/register-dump.h: New file.
9532 * sysdeps/unix/sysv/linux/x86_64/send.c: New file.
9533 * sysdeps/unix/sysv/linux/x86_64/setrlimit64.c: New file.
9534 * sysdeps/unix/sysv/linux/x86_64/sigaction.c: New file.
9535 * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: New file.
9536 * sysdeps/unix/sysv/linux/x86_64/sigpending.c: New file.
9537 * sysdeps/unix/sysv/linux/x86_64/sigprocmask.c: New file.
9538 * sysdeps/unix/sysv/linux/x86_64/sigsuspend.c: New file.
9539 * sysdeps/unix/sysv/linux/x86_64/statfs64.c: New file.
9540 * sysdeps/unix/sysv/linux/x86_64/sys/perm.h: New file.
9541 * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: New file.
9542 * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: New file.
9543 * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: New file.
9544 * sysdeps/unix/sysv/linux/x86_64/sys/user.h: New file.
9545 * sysdeps/unix/sysv/linux/x86_64/syscall.S: New file.
9546 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: New file.
9547 * sysdeps/unix/sysv/linux/x86_64/sysdep.S: New file.
9548 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: New file.
9549 * sysdeps/unix/sysv/linux/x86_64/time.c: New file.
9550 * sysdeps/unix/sysv/linux/x86_64/truncate64.c: New file.
9551 * sysdeps/unix/sysv/linux/x86_64/umount.c: New file.
9552 * sysdeps/unix/sysv/linux/x86_64/vfork.S: New file.
9553 * sysdeps/unix/sysv/linux/x86_64/xstat.c: New file.
9554 * sysdeps/unix/sysv/linux/x86_64/xstat64.c: New file.
9555 * sysdeps/unix/x86_64/sysdep.S: New file.
9556 * sysdeps/unix/x86_64/sysdep.h: New file.
9557 * sysdeps/x86_64/Implies: New file.
9558 * sysdeps/x86_64/Makefile: New file.
9559 * sysdeps/x86_64/Versions: New file.
9560 * sysdeps/x86_64/__longjmp.S: New file.
9561 * sysdeps/x86_64/abort-instr.h: New file.
9562 * sysdeps/x86_64/atomicity.h: New file.
9563 * sysdeps/x86_64/bits/endian.h: New file.
9564 * sysdeps/x86_64/bits/setjmp.h: New file.
9565 * sysdeps/x86_64/bits/string.h: New file.
9566 * sysdeps/x86_64/bp-asm.h: New file.
9567 * sysdeps/x86_64/bsd-_setjmp.S: New file.
9568 * sysdeps/x86_64/bsd-setjmp.S: New file.
9569 * sysdeps/x86_64/dl-machine.h: New file.
9570 * sysdeps/x86_64/elf/initfini.c: New file.
9571 * sysdeps/x86_64/elf/start.S: New file.
9572 * sysdeps/x86_64/ffs.c: New file.
9573 * sysdeps/x86_64/ffsll.c: New file.
9574 * sysdeps/x86_64/fpu/bits/fenv.h: New file.
9575 * sysdeps/x86_64/fpu/bits/mathdef.h: New file.
9576 * sysdeps/x86_64/fpu/e_acosl.c: New file.
9577 * sysdeps/x86_64/fpu/e_atan2l.c: New file.
9578 * sysdeps/x86_64/fpu/e_exp2l.S: New file.
9579 * sysdeps/x86_64/fpu/e_expl.c: New file.
9580 * sysdeps/x86_64/fpu/e_fmodl.S: New file.
9581 * sysdeps/x86_64/fpu/e_log10l.S: New file.
9582 * sysdeps/x86_64/fpu/e_log2l.S: New file.
9583 * sysdeps/x86_64/fpu/e_logl.S: New file.
9584 * sysdeps/x86_64/fpu/e_powl.S: New file.
9585 * sysdeps/x86_64/fpu/e_rem_pio2l.c: New file.
9586 * sysdeps/x86_64/fpu/e_scalbl.S: New file.
9587 * sysdeps/x86_64/fpu/e_sqrtl.c: New file.
9588 * sysdeps/x86_64/fpu/fclrexcpt.c: New file.
9589 * sysdeps/x86_64/fpu/fedisblxcpt.c: New file.
9590 * sysdeps/x86_64/fpu/feenablxcpt.c: New file.
9591 * sysdeps/x86_64/fpu/fegetenv.c: New file.
9592 * sysdeps/x86_64/fpu/fegetexcept.c: New file.
9593 * sysdeps/x86_64/fpu/fegetround.c: New file.
9594 * sysdeps/x86_64/fpu/feholdexcpt.c: New file.
9595 * sysdeps/x86_64/fpu/fesetenv.c: New file.
9596 * sysdeps/x86_64/fpu/fesetround.c: New file.
9597 * sysdeps/x86_64/fpu/fgetexcptflg.c: New file.
9598 * sysdeps/x86_64/fpu/fraiseexcpt.c: New file.
9599 * sysdeps/x86_64/fpu/fsetexcptflg.c: New file.
9600 * sysdeps/x86_64/fpu/ftestexcept.c: New file.
9601 * sysdeps/x86_64/fpu/libm-test-ulps: New file.
9602 * sysdeps/x86_64/fpu/math_ldbl.h: New file.
9603 * sysdeps/x86_64/fpu/printf_fphex.c: New file.
9604 * sysdeps/x86_64/fpu/s_atanl.c: New file.
9605 * sysdeps/x86_64/fpu/s_cosl.S: New file.
9606 * sysdeps/x86_64/fpu/s_expm1l.S: New file.
9607 * sysdeps/x86_64/fpu/s_fpclassifyl.c: New file.
9608 * sysdeps/x86_64/fpu/s_isinfl.c: New file.
9609 * sysdeps/x86_64/fpu/s_isnanl.c: New file.
9610 * sysdeps/x86_64/fpu/s_log1pl.S: New file.
9611 * sysdeps/x86_64/fpu/s_logbl.c: New file.
9612 * sysdeps/x86_64/fpu/s_nextafterl.c: New file.
9613 * sysdeps/x86_64/fpu/s_nexttoward.c: New file.
9614 * sysdeps/x86_64/fpu/s_nexttowardf.c: New file.
9615 * sysdeps/x86_64/fpu/s_rintl.c: New file.
9616 * sysdeps/x86_64/fpu/s_significandl.c: New file.
9617 * sysdeps/x86_64/fpu/s_sincosl.S: New file.
9618 * sysdeps/x86_64/fpu/s_sinl.S: New file.
9619 * sysdeps/x86_64/fpu/s_tanl.S: New file.
9620 * sysdeps/x86_64/gmp-mparam.h: New file.
9621 * sysdeps/x86_64/hp-timing.c: New file.
9622 * sysdeps/x86_64/hp-timing.h: New file.
9623 * sysdeps/x86_64/htonl.S: New file.
9624 * sysdeps/x86_64/memusage.h: New file.
9625 * sysdeps/x86_64/setjmp.S: New file.
9626 * sysdeps/x86_64/soft-fp/sfp-machine.h: New file.
9627 * sysdeps/x86_64/stackinfo.h: New file.
9628 * sysdeps/x86_64/sysdep.h: New file.
9629 * sysdeps/unix/sysv/linux/x86_64/ldd-rewrite.sed: New file.
9631 * sysdeps/ieee754/ldbl-128/s_erfl.c: New file, contributed Stephen
9634 2001-09-18 Ulrich Drepper <drepper@redhat.com>
9636 * malloc/malloc.c (ptmalloc_init): Handle _environ==NULL.
9637 Reported by B. D. Elliott <bde@nwlink.com> [PR libc/2541].
9639 2001-09-18 Andreas Schwab <schwab@suse.de>
9641 * elf/dl-load.c (_dl_map_object_from_fd): Update handling of scope
9642 list, now that l_scope is a pointer.
9644 * elf/dl-open.c (dl_open_worker): Fix thinko when enlarging the
9647 2001-09-18 kaz Kojima <kkojima@rr.iij4u.or.jp>
9649 * sysdeps/sh/dl-machine.h (elf_machine_rela): Fix reverse condition.
9650 (elf_machine_rela_relative): Add a missing declaration.
9652 2001-09-18 Jakub Jelinek <jakub@redhat.com>
9654 * sysdeps/unix/sysv/linux/ia64/ldd-rewrite.sed: New file.
9655 * sysdeps/unix/sysv/linux/s390/ldd-rewrite.sed: New file.
9656 * sysdeps/unix/sysv/linux/configure.in: Add ia64 and s390
9657 ldd-rewrite scripts.
9659 2001-09-18 Ulrich Drepper <drepper@redhat.com>
9661 * elf/ldd.bash.in: Update copyright message.
9663 2001-09-17 H.J. Lu <hjl@gnu.org>
9665 * hurd/hurdmalloc.c (bcopy): Removed.
9666 (realloc): Replace bcopy with memcpy.
9667 * hurd/path-lookup.c (file_name_path_scan): Likewise.
9668 * resolv/gethnamaddr.c (map_v4v6_address): Likewise.
9669 * sunrpc/rpcinfo.c (pmapdump): Likewise.
9671 * resolv/gethnamaddr.c (getanswer): Replace bcopy with memmove.
9672 (gethostbyaddr): Likewise.
9673 * sunrpc/rpcinfo.c (get_inet_address): Likewise.
9675 2001-09-18 Ulrich Drepper <drepper@redhat.com>
9677 * sysdeps/gnu/eval.c: Removed.
9679 2001-09-18 Andreas Jaeger <aj@suse.de>
9681 * sysdeps/i386/fpu/s_logbl.S: Move to ...
9682 * sysdeps/i386/fpu/s_logbl.c: ...here, use inline assembler.
9684 * sysdeps/i386/fpu/s_rintl.S: Move to ...
9685 * sysdeps/i386/fpu/s_rintl.c: ...here, use inline assembler.
9687 * sysdeps/i386/fpu/s_significandl.S: Move to ...
9688 * sysdeps/i386/fpu/s_significandl.c: ...here, use inline assembler.
9690 2001-09-16 Ulrich Drepper <drepper@redhat.com>
9692 * string/strcoll.c [USE_IN_EXTENDED_LOCALE_MODEL]: Correctly get
9695 2001-09-14 H.J. Lu <hjl@gnu.org>
9697 * sysdeps/mips/fpu/libm-test-ulps: Updated.
9699 2001-09-14 Ulrich Drepper <drepper@redhat.com>
9701 * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Fix a typo.
9702 Patch by Florian La Roche <laroche@redhat.com>.
9704 * string/bits/string2.h (__strtok_r_1c): Optimize a bit.
9706 * sysdeps/unix/sysv/linux/net/ethernet.h: Correct references to
9709 2001-09-14 Andreas Schwab <schwab@suse.de>
9711 * posix/execl.c: Fix last argument of memcpy. Reported by Brian
9712 Sumner <bls@sgi.com>.
9713 * posix/execlp.c: Likewise.
9715 2001-09-13 Jakub Jelinek <jakub@redhat.com>
9717 * elf/dl-deps.c (_dl_map_object_deps): Fix filter handling if filter
9718 is already found earlier in the search scope.
9720 2001-09-12 Jakub Jelinek <jakub@redhat.com>
9722 * rt/Makefile (LDFLAGS-rt.so): Use shared thread library as librt's
9725 2001-09-13 Ulrich Drepper <drepper@redhat.com>
9727 * sysdeps/powerpc/fpu/libm-test-ulps: Adjust expected errors for j0.
9729 2001-09-12 Ulrich Drepper <drepper@redhat.com>
9731 * config.h.in: Enforce optimization to be used.
9732 * Makeconfig (preprocess-versions): Define ASSEMBLER.
9733 * stdlib/Makefile (isomac-CFLAGS): Define to -O.
9734 * posix/Makefile (annexc-CFLAGS): Define to -O.
9735 * sysdeps/unix/make-syscalls.sh: Define __OPTIMIZE__ in use of asm_CPP.
9737 2001-09-11 Ulrich Drepper <drepper@redhat.com>
9739 * nscd/nscd_gethst_r.c: Don't expect IPv6 addresses for IPv4 lookup.
9740 Patch by Stephan Kulow.
9742 2001-09-08 Ben Collins <bcollins@debian.org>
9744 * sysdeps/arm/dl-machine.h (elf_machine_rel): Fix thinko in
9745 usage of RESOLVE() (r_type, not reloc->r_type).
9747 2001-09-08 Ulrich Drepper <drepper@redhat.com>
9749 * elf/dl-object.c: Avoid allocating extra memory block for name.
9750 * elf/dl-close.c (_dl_close): Don't free l_libname if it is not
9751 allocated separately.
9752 * elf/dl-load.c (_dl_map_object_from_fd): Likewise.
9754 2001-09-08 H.J. Lu <hjl@gnu.org>
9756 * po/zh_TW.po: Fix a typo.
9758 2001-09-07 Tom Rix <trix@redhat.com>
9760 * sysdeps/unix/sysv/aix/sysv_termio.h: New file.
9762 2001-08-26 Tom Rix <trix@redhat.com>
9764 * sysdeps/unix/sysv/aix/Makefile (aix-syscalls.o): More linker
9765 command line options.
9766 * sysdeps/unix/sysv/aix/start.s: New file, rework of start.c
9767 * sysdeps/unix/sysv/aix/start.c: Removed.
9768 * sysdeps/unix/sysv/aix/start-libc.c: New file.
9769 * sysdeps/unix/sysv/aix/init-first.c: New file.
9770 * sysdeps/unix/sysv/aix/fcntl.c: Alias __libc_fcntl to __fcntl.
9772 2001-09-08 Ben Collins <bcollins@debian.org>
9774 * sysdeps/arm/dl-machine.h: Fix usage of new _dl_signal_error() format.
9775 * sysdeps/generic/dl-machine.h: Likewise.
9776 * sysdeps/hppa/dl-fptr.c: Likewise.
9777 * sysdeps/ia64/dl-fptr.c: Likewise.
9778 * sysdeps/mach/hurd/dl-sysdep.c: Likewise.
9779 * sysdeps/mips/dl-machine.h: Likewise.
9780 * sysdeps/mips/mips64/dl-machine.h: Likewise.
9781 * sysdeps/powerpc/dl-machine.c: Likewise.
9783 2001-09-07 Ben Collins <bcollins@debian.org>
9785 * sysdeps/sparc/sparc32/dl-machine.h: Fix typo.
9787 * sysdeps/hppa/dl-lookupcfg.h: Forward declare struct link_map.
9789 2001-09-08 Ulrich Drepper <drepper@redhat.com>
9791 * elf/dl-lookup.c (add_dependency): Bump l_opencount of all
9792 dependencies if necessary.
9794 * elf/dl-close.c (_dl_close): If object has no r_list (i.e., wasn't
9795 loaded directly) determine length if l_initfini list by iterating
9796 over its elements. Minor optimizations.
9797 * elf/dl-deps.c (_dl_map_object_deps): Always add own map to l_initfini
9798 for dependency objects.
9799 If object was already loaded check whether any of the dependencies
9800 is already on the relocation dependency list. If yes, remove the
9801 latter. Minor optimizations.
9802 * elf/dl-lookup.c (add_dependency): Add check for self reference of
9803 maps here. Search l_initfini list only if the object was loaded
9804 directly and not only as a dependency.
9805 (_dl_lookup_symbol): Add relocation dependency also if object
9806 is not in global scope. Remove test for self-reference here.
9807 (_dl_lookup_versioned_symbol): Likewise.
9808 * elf/dl-object (_dl_new_object): Cleanup. Initialize dont_free
9809 element of first name record.
9810 * elf/loadtest.c: Add some more test to recognize early if an object
9812 * elf/Makefile: Add rules to build and run reldep5.
9813 * elf/reldep5.c: New file.
9814 * elf/reldepmod5.c: New file.
9815 * elf/reldepmod6.c: New file.
9817 * elf/reldep2.c: Fix typo.
9819 2001-09-07 Ulrich Drepper <drepper@redhat.com>
9821 * include/link.h (struct link_map): Add l_scope_mem and l_scope_max
9822 elements. Change l_scope to be a pointer only.
9823 * elf/dl-object.c (_dl_new_object): Initialize l_scope and l_scope_max.
9824 * elf/dl-open.c (dl_open_worker): If dependency wasn't just opened
9825 here add searchlist of newly open file to the dependency's scope.
9826 * elf/dl-close.c (_dl_close): If dependency is used otherwise remove
9827 only searchlist from its scope. Free own scope array if necessary.
9828 * elf/Makefile (tests): Add dblload and dblunload now.
9830 2001-09-06 Andreas Jaeger <aj@suse.de>
9832 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: New file, contributed
9835 2001-09-05 Ulrich Drepper <drepper@redhat.com>
9837 * elf/Makefile: Add rules to build new tests. Don't run them yet since
9839 * elf/dblload.c: New file.
9840 * elf/dblloadmod1.c: New file.
9841 * elf/dblloadmod2.c: New file.
9842 * elf/dblloadmod3.c: New file.
9843 * elf/dblunload.c: New file.
9845 2001-09-04 Richard Henderson <rth@redhat.com>
9847 * elf/elf.h (R_ALPHA_OP_*, R_ALPHA_IMMED_*): Remove.
9848 (R_ALPHA_GPREL16): Rename from R_ALPHA_IMMED_GP_16.
9850 2001-09-04 Ulrich Drepper <drepper@redhat.com>
9852 Correct very misleading message for error in failed runtime relocation.
9853 * elf/dl-error.c (_dl_signal_error): Take extra parameter to describe
9855 (_dl_signal_cerror): Likewise.
9856 * sysdeps/generic/ldsodefs.h: Adjust prototypes.
9857 * elf/dl-close.c: Likewise.
9858 * elf/dl-deps.c: Likewise.
9859 * elf/dl-load.c: Likewise.
9860 * elf/dl-lookup.c: Likewise.
9861 * elf/dl-open.c: Likewise.
9862 * elf/dl-reloc.c: Likewise.
9863 * elf/dl-sym.c: Likewise.
9864 * elf/dl-version.c: Likewise.
9865 * sysdeps/generic/dl-sysdep.c: Likewise.
9867 2001-09-04 Jakub Jelinek <jakub@redhat.com>
9869 * iconv/strtab.c (strtabinit): Initialize null Strent.
9870 (newstring): Move len == 0 handling...
9871 (strtabadd): ...here.
9872 If len == 1, return null Strent.
9873 When inserting a suffix of an existing string, check if
9874 it is not equal to some suffix already recorded.
9875 Copy left and right members over if adding longer string.
9877 2001-09-04 Jakub Jelinek <jakub@redhat.com>
9879 * sunrpc/rpc_cout.c (upcase): Account for trailing '\0'.
9881 * sysdeps/unix/sysv/linux/alpha/gethostname.c: Include <errno.h>.
9882 (__syscall_gethostname): Add prototype.
9884 2001-09-04 Ulrich Drepper <drepper@redhat.com>
9886 * elf/dl-object.c (_dl_new_object): Remove unnecessary if.
9888 2001-09-02 Ulrich Drepper <drepper@redhat.com>
9890 * elf/rtld.c (dl_main): Increment l_opencount for main binary.
9892 2001-08-27 Roland McGrath <roland@frob.com>
9894 * sysdeps/unix/sysv/gethostname.c (__gethostname): When LEN is too
9895 short, copy that much into NAME anyway before returning error.
9897 2001-09-01 Richard Henderson <rth@redhat.com>
9899 * sysdeps/alpha/elf/Dist: Remove file.
9900 * sysdeps/alpha/elf/Makefile: Remove file.
9901 * sysdeps/alpha/elf/crtbegin.S: Remove file.
9902 * sysdeps/alpha/elf/crtend.S: Remove file.
9903 * sysdeps/alpha/elf/initfini.c: New file.
9905 2001-09-01 Mark Kettenis <kettenis@gnu.org>
9907 * iconv/tst-iconv1.c: Include <stddef.h> for wchar_t.
9908 * iconv/tst-iconv3.c: Likewise.
9910 2001-09-01 Jakub Jelinek <jakub@redhat.com>
9912 * sysdeps/generic/inttypes.h (__gwchar_t): Define to wchar_t for C++.
9914 2001-09-01 Ulrich Drepper <drepper@redhat.com>
9916 * iconv/gconv_cache.c: Rename variable cache to __gconv_cache and
9918 * iconv/Versions (libc) [GLIBC_2.2.5]: Export __gconv_cache.
9919 * iconv/iconv_prog.c (insert_cache): New function.
9920 (print_known_names): If cache is used call insert_cache to use the
9921 information from the cache [PR libc/2509].
9923 2001-08-31 Ulrich Drepper <drepper@redhat.com>
9925 * time/strptime.c (strptime_internal): Recognize 'l' format and
9926 handle it like 'I' for symmetry with strftime.
9928 2001-08-31 Richard Henderson <rth@redhat.com>
9930 * elf/dl-support.c (_dl_cpuclock_offset): Protect with NONAVAIL.
9931 (HP_TIMING_AVAIL): Set to HP_SMALL_TIMING_AVAIL if present.
9932 * elf/rtld.c (HP_TIMING_AVAIL): Likewise.
9933 (print_statistics): Make scalar unsigned long long.
9934 * sysdeps/alpha/hp-timing.h: New file.
9936 2001-08-31 Jakub Jelinek <jakub@redhat.com>
9938 * stdio-common/perror.c (perror): Save errno early, pass it
9939 down to perror_internal.
9940 (perror_internal): Add errnum argument.
9942 2001-08-31 Jakub Jelinek <jakub@redhat.com>
9944 * sysdeps/alpha/dl-machine.h (elf_machine_rela): Remove unused code.
9945 Don't add old memory content for R_ALPHA_REFQUAD.
9947 2001-08-30 Ulrich Drepper <drepper@redhat.com>
9949 * crypt/md5-crypt.c (__md5_crypt_r): Compute used and required
9952 * sysdeps/unix/sysv/linux/ia64/ioperm.c (_ioperm): Use __open
9953 instead of open, __close instead of close, __getpagesize instead
9956 * string/argz-stringify.c (__argz_stringify): Use __strnlen
9958 * include/string.h (strndupa): Redefine here to use __strnlen
9960 * string/strndup.c (__strndup): Use __strnlen not strnlen.
9962 * misc/syslog.c (vsyslog): Fix typo in last change (connect ->
9965 2001-08-30 Jakub Jelinek <jakub@redhat.com>
9967 * sysdeps/alpha/dl-machine.h (elf_machine_rela): Don't handle
9968 R_ALPHA_RELATIVE if RTLD_BOOTSTRAP and HAVE_Z_COMBRELOC. Only check
9969 for rtld map if neither RTLD_BOOTSTRAP nor HAVE_Z_COMBRELOC is defined.
9970 * sysdeps/i386/dl-machine.h (elf_machine_rel): Similarly.
9971 * sysdeps/ia64/dl-machine.h (elf_machine_rel): Similarly.
9972 * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rel): Similarly.
9973 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rel): Similarly.
9975 2001-08-30 Ulrich Drepper <drepper@redhat.com>
9977 * sysdeps/alpha/fpu/libm-test-ulps: Adjust j0 ULPs.
9979 2001-08-30 Andreas Jaeger <aj@suse.de>
9981 * sysdeps/ieee754/ldbl-128/e_jnl.c: New file,
9982 contributed Stephen L Moshier.
9984 2001-08-30 Jakub Jelinek <jakub@redhat.com>
9986 * sunrpc/etc.rpc (sgi_fam): Add.
9988 2001-08-30 Ulrich Drepper <drepper@redhat.com>
9990 * sysdeps/unix/sysv/linux/alpha/gethostname.c: New file.
9992 2001-08-29 Ulrich Drepper <drepper@redhat.com>
9994 * nis/nis_findserv.c (__nis_findfastest): Don't fail if reply received
9995 first is from a previous call.
9996 Patch by Alexander Belopolsky <alexb@rentec.com> for [PR libc/3670].
9998 2001-08-29 Andreas Schwab <schwab@suse.de>
10000 * sysdeps/ia64/fpu/libm-test-ulps: Updated.
10002 2001-08-25 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
10004 * config.make.in (INSTALL_SCRIPT): Define.
10005 * Makeconfig (INSTALL_SCRIPT): Define.
10006 * Makerules (do-install-script): New macro to install scripts using
10008 (install-bin-script): New rule to install scripts with
10010 (install-bin-script-nosubdir): New rule.
10011 (install-no-libc.a-nosubdir): Add install-bin-script-nosubdir.
10012 (distinfo-vars): Add $(install-bin-script).
10013 * Rules (others): Likewise.
10014 * Makefile (glibcbug): Install with install-bin-script.
10015 * debug/Makefile (xtrace): Likewise.
10016 (catchsegv): Likewise.
10017 * elf/Makefile (ldd): Likewise.
10018 * malloc/Makefile (mtrace): Likewise.
10019 * timezone/Makefile (tzselect): Likewise.
10021 2001-08-29 H.J. Lu <hjl@gnu.org>
10023 * sysdeps/mips/dl-machine.h (__dl_runtime_resolve): Pass
10024 ELF_RTYPE_CLASS_PLT, instead of R_MIPS_REL32, to
10025 _dl_lookup_versioned_symbol () and _dl_lookup_symbol ().
10027 2001-08-29 Andreas Schwab <schwab@suse.de>
10029 * sysdeps/m68k/fpu/libm-test-ulps: Updated.
10031 2001-08-28 H.J. Lu <hjl@gnu.org>
10033 * Makeconfig (combreloc-LDFLAGS): New variable.
10034 Add it to LDFLAGS.so, LDFLAGS-rtld, and +link.
10035 * config.make.in (have-z-combreloc): New variable.
10036 * configure.in: Substitute libc_cv_z_combreloc.
10038 2001-08-29 Ulrich Drepper <drepper@redhat.com>
10040 * po/sv.po: Update from translation team.
10041 * po/fr.po: Likewise.
10042 * po/da.po: Likewise.
10044 2001-08-28 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
10046 * Makerules: Fix a typo: MD% -> MD5.
10048 2001-08-28 Ulrich Drepper <drepper@redhat.com>
10050 * sunrpc/rpc_hout.c (pargdef): Function must take pointer to object.
10051 Patch by Patrick Duval <Patrick.Duval@devinci.fr>.
10053 2001-08-28 Andreas Jaeger <aj@suse.de>
10055 * manual/libc-texinfo.sh: Add entry about free manuals.
10057 * manual/contrib.texi (Contributors): Fix cross reference.
10059 * manual/libc.texinfo (Copying): Include freemanuals.
10061 * manual/Makefile (appendices): Add freemanuals.
10063 * manual/freemanuals.texi: New file.
10064 Patch by Brian Youmans <3diff@gnu.org>.
10066 * manual/libm-err-tab.pl: Pretty print more platforms, print a
10069 * manual/math.texi (Errors in Math Functions): Fix grammar, start
10070 table on separate page.
10071 Patch by Brian Youmans <3diff@gnu.org>.
10073 2001-08-27 Ulrich Drepper <drepper@redhat.com>
10075 * misc/syslog.c (vsyslog): Try a bit harder to use syslogd. If
10076 the connection went down after we first used it try to connect
10077 again and resend the message before printing to the console.
10078 Reported by Coserea Gh. Tudor <tudore@tudore.gecadsoftware.com>.
10080 2001-08-27 Jakub Jelinek <jakub@redhat.com>
10082 * string/tst-strlen.c (main): Test strnlen (, -1) too.
10083 * sysdeps/generic/strnlen.c (__strnlen): Fix for maxlens with top
10086 2001-08-27 Ulrich Drepper <drepper@redhat.com>
10088 * iconv/strtab.c (searchstring): Use correct length for comparison.
10089 (strtabadd): Account total size correct if new string has old string as
10092 2001-08-27 Jakub Jelinek <jakub@redhat.com>
10094 * elf/rtld.c (dl_main): Update call to _dl_lookup_symbol.
10096 2001-08-27 Andreas Jaeger <aj@suse.de>
10098 * sysdeps/i386/fpu/libm-test-ulps (float): Add ulps for new tests.
10100 * math/libm-test.inc (j0_test): Add extra tests.
10101 * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_j0l): Use |x|,
10102 not x, in Hankel approximation.
10103 Patches by Stephen L Moshier.
10105 2001-08-26 Ulrich Drepper <drepper@redhat.com>
10107 * sysdeps/ia64/dl-lookupcfg.h: Add forward declaration for struct
10110 * configure.in: Fix test for .rela.dyn section.
10112 * elf/dl-runtime.c: Update calls to _dl_lookup_*.
10114 2001-08-26 Jakub Jelinek <jakub@redhat.com>
10116 * elf/dl-reloc.c (RESOLVE_MAP, RESOLVE): Use elf_machine_type_class
10117 instead of elf_machine_lookup_noexec_p and elf_machine_lookup_noplt_p.
10118 Pass type_class to _dl_lookup_*.
10119 * elf/dl-lookup.c (_dl_lookup_symbol): Take type_class parameter now.
10120 Pass around just type_class instead of noexec, noplt pair.
10121 (_dl_lookup_versioned_symbol): Likewise.
10122 (_dl_lookup_symbol_skip): Pass around just type_class instead of
10123 noexec, noplt pair.
10124 (_dl_lookup_versioned_symbol_skip): Likewise.
10125 (_dl_do_lookup, _dl_do_lookup_versioned): Likewise.
10126 * elf/do-lookup.h (do_lookup): Likewise.
10127 * include/link.h (struct link_map): Replace noexec and noplt fields
10128 in l_lookup_cache with type_class field.
10129 * sysdeps/generic/ldsodefs.h (ELF_RTYPE_CLASS_PLT,
10130 ELF_RTYPE_CLASS_COPY): Define.
10131 Adjust prototypes for _dl_lookup_symbol and
10132 _dl_lookup_versioned_symbol.
10133 * sysdeps/alpha/dl-machine.h (elf_machine_lookup_noplt_p,
10134 elf_machine_lookup_noexec_p): Remove.
10135 (elf_machine_type_class): Define.
10136 * sysdeps/arm/dl-machine.h: Likewise.
10137 * sysdeps/hppa/dl-machine.h: Likewise.
10138 * sysdeps/cris/dl-machine.h: Likewise.
10139 * sysdeps/i386/dl-machine.h: Likewise.
10140 * sysdeps/ia64/dl-machine.h: Likewise.
10141 * sysdeps/m68k/dl-machine.h: Likewise.
10142 * sysdeps/mips/mips64/dl-machine.h: Likewise.
10143 * sysdeps/mips/dl-machine.h: Likewise.
10144 * sysdeps/powerpc/dl-machine.h: Likewise.
10145 * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
10146 * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
10147 * sysdeps/sh/dl-machine.h: Likewise.
10148 * sysdeps/s390/s390-32/dl-machine.h: Likewise.
10149 * sysdeps/s390/s390-64/dl-machine.h: Likewise.
10151 2001-08-26 Ulrich Drepper <drepper@redhat.com>
10153 * manual/message.texi (Advanced gettext functions): Change
10154 description of plural forms for Slovak.
10155 Reported by Marcel Telka <marcel@telka.sk>.
10157 * manuaL/time.texi (Low-Level Time String Parsing): Fix description of
10158 %z. Reported by C. Scott Ananian <cananian@lesser-magoo.lcs.mit.edu>.
10160 2001-08-26 Jakub Jelinek <jakub@redhat.com>
10162 * sysdeps/s390/s390-32/dl-machine.h (elf_machine_lazy_rel): Fix a
10163 typo. Patch by Florian La Roche <laroche@redhat.com>.
10165 2001-08-26 Ulrich Drepper <drepper@redhat.com>
10167 * include/link.h (struct link_map): Add l_lookup_cache element.
10168 * elf/dl-reloc.c (RESOLVE): Add symbol caching here.
10169 (RESOLVE_MAP): Likewise.
10170 (_dl_relocate_object): Remove cache initialization.
10171 * elf/dl-lookup.c: Rip out cache handling code.
10172 * sysdeps/generic/ldsodefs.h: Remove lookup_cache struct and variable
10175 * elf/dl-lookup.c (_dl_lookup_symbol): Reorder some conditions and
10176 remove some __builtin_expect.
10177 (_dl_lookup_versioned_symbol): Likewise.
10179 * config.h.in: Add HAVE_Z_COMBRELOC.
10180 * configure.in: Add test for -z combreloc.
10182 * sysdeps/i386/dl-machine.h (elf_machine_rel): Minor cleanups and
10183 optimizations. Use HAVE_Z_COMBRELOC to avoid generaton of
10184 R_386_RELATIVE handling for ld.so startup. Reduce RTLD_BOOTSTRAP
10185 case to almost no code.
10187 2001-08-25 Ulrich Drepper <drepper@redhat.com>
10189 * po/tr.po: Update from translation team.
10191 2001-08-24 Andreas Jaeger <aj@suse.de>
10193 * iconv/Makefile (extra-objs): Add iconvconfig-modules so that
10196 2001-08-24 Ulrich Drepper <drepper@redhat.com>
10198 * elf/rtld.c (print_statistics): Printf % after percent values.
10199 * elf/dl-misc.c (_dl_debug_vdprintf): Implement %%.
10201 * elf/dl-lookup.c (_dl_lookup_symbol): If we use the cache we
10202 don't have to compute the hash value and initialize current_value.
10203 Move reference_name variable to where it is needed.
10204 (_dl_lookup_versioned_symbol): Likewise.
10206 2001-08-24 Roland McGrath <roland@frob.com>
10208 * string/tester.c (test_strerror): Don't use _sys_errlist/_sys_nerr.
10209 Just test that strerror returns non-null for a few errno codes.
10211 2001-08-23 Roland McGrath <roland@frob.com>
10213 * hurd/Versions (libc: GLIBC_2.2.5): New set; add _hurd_raise_signal,
10214 _hurdsig_interrupt_timeout, _hurdsig_fault_preemptor.
10216 * sysdeps/posix/shm_unlink.c (shm_unlink): __unlink -> unlink.
10218 * mach/Versions (libc: GLIBC_2.2.5): New set; add __mach_msg_destroy,
10221 2001-08-24 Ulrich Drepper <drepper@redhat.com>
10223 * nss/test-netdb.c (test_hosts): Don't segfault if gethostname
10226 * elf/do-rel.h (elf_dynamic_do_rel): Fix problem with ld.so
10227 startup. Explicitly remove lazy part for RTLD_BOOTSTRAP since gcc
10229 * elf/rtld.c: Include <sys/param.h>.
10230 * elf/dl-reloc.c: Likewise.
10232 2001-08-24 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
10234 * sysdeps/unix/sysv/linux/mips/configure.in: Define AC_SUBST to
10235 empty to prevent junk from being generated.
10236 * sysdeps/unix/sysv/linux/mips/configure: Regenerated.
10238 2001-08-24 Jakub Jelinek <jakub@redhat.com>
10240 * elf/do-rel.h (elf_dynamic_do_rel): If l_addr is 0, skip relative
10241 records. Rename endrel to relative, initialize it to r, and use it
10242 in elf_machine_rel_relative calls. Point r after relative relocs.
10244 2001-08-24 Ulrich Drepper <drepper@redhat.com>
10246 * sysdeps/i386/dl-machine.h (elf_machine_rel): Correct prediction
10249 2001-08-24 Jakub Jelinek <jakub@redhat.com>
10251 * elf/do-rel.h (elf_machine_rel_relative): Define for rela if
10252 necessary. Undefine newly defined macros at the end.
10253 * sysdeps/hppa/dl-machine.h (elf_machine_rela_relative):
10254 Rename from elf_machine_rel_relative.
10255 * sysdeps/cris/dl-machine.h (elf_machine_rela_relative): Likewise.
10256 * sysdeps/m68k/dl-machine.h (elf_machine_rela_relative): Likewise.
10257 * sysdeps/powerpc/dl-machine.h (elf_machine_rela_relative): Likewise.
10258 * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela_relative):
10260 * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela_relative):
10262 * sysdeps/ia64/dl-machine.h (elf_machine_rela_relative): Likewise.
10263 Fix argument types.
10264 * sysdeps/alpha/dl-machine.h (elf_machine_rela_relative): Likewise.
10265 Fix argument types.
10266 * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela_relative):
10267 Likewise. Fix argument types.
10268 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela_relative):
10269 Likewise. Fix argument types.
10270 * sysdeps/sh/dl-machine.h (elf_machine_rela_relative): Likewise.
10271 Fix argument types.
10272 * sysdeps/mips/dl-machine.h (elf_machine_rel_relative): Use
10273 ElfW(Rel) in argument.
10274 * sysdeps/mips/mips64/dl-machine.h (elf_machine_rel_relative): New
10277 2001-08-24 Alexandre Oliva <aoliva@redhat.com>
10279 * sysdeps/sh/dl-machine.h (elf_machine_rela): Fix typo.
10281 2001-08-24 Andreas Jaeger <aj@suse.de>
10283 * sysdeps/ieee754/ldbl-128/e_j1l.c: New file, contributed by
10284 Stephen L Moshier <moshier@mediaone.net>.
10286 2001-08-24 Ulrich Drepper <drepper@redhat.com>
10288 * elf/do-rel.h (elf_dynamic_do_rel): RELATIVE relocations comes
10289 first if RELCOUNT is set.
10291 * elf/do-rel.h (elf_dynamic_do_rel): If not relocating lazily, don't
10292 call elf_machine_rel for the last DT_RELCOUNT relocations but instead
10293 elf_machine_rel_relative.
10294 * sysdeps/alpha/dl-machine.h: Define elf_machine_rel_relative.
10295 Minor optimizations.
10296 * sysdeps/arm/dl-machine.h: Likewise.
10297 * sysdeps/cris/dl-machine.h: Likewise.
10298 * sysdeps/hppa/dl-machine.h: Likewise.
10299 * sysdeps/i386/dl-machine.h: Likewise.
10300 * sysdeps/ia64/dl-machine.h: Likewise.
10301 * sysdeps/m68k/dl-machine.h: Likewise.
10302 * sysdeps/mips/dl-machine.h: Likewise.
10303 * sysdeps/powerpc/dl-machine.h: Likewise.
10304 * sysdeps/s390/s390-32/dl-machine.h: Likewise.
10305 * sysdeps/s390/s390-64/dl-machine.h: Likewise.
10306 * sysdeps/sh/dl-machine.h: Likewise.
10307 * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
10308 * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
10310 2001-08-23 Roland McGrath <roland@frob.com>
10312 * rt/tst-aio4.c [! SIGRTMIN] (SIGRTMIN, SIGRTMAX): Define as -1.
10314 * sysdeps/mach/hurd/bits/libc-lock.h: New file, initially copied from
10315 sysdeps/mach version. Implement counting ("recursive") mutexes
10316 on top of cthreads mutexes.
10317 * sysdeps/mach/hurd/bits/stdio-lock.h: File removed; generic now works.
10319 * sysdeps/generic/bits/stdio-lock.h (_IO_lock_initializer): Define to
10320 _LIBC_LOCK_RECURSIVE_INITIALIZER if defined, else do an #error.
10321 (__libc_cleanup_region_start, __libc_cleanup_region_end,
10322 __libc_clean_end): Define these to call the cleanup function after
10323 normal exit when they're supposed to.
10325 * sysdeps/mach/bits/libc-lock.h (__libc_cleanup_region_start):
10326 Take new first arg DOIT, a boolean saying whether to really install
10327 any cleanup handler.
10328 (__libc_cleanup_region_end): Do nothing if start's DOIT arg was zero.
10329 (__libc_cleanup_end): Likewise.
10330 * sysdeps/generic/bits/libc-lock.h: Same changes.
10331 * stdio-common/vfscanf.c (LOCK_STREAM): Pass new arg.
10332 * stdio-common/vfprintf.c (buffered_vfprintf, vfprintf): Likewise.
10333 * sysdeps/mach/hurd/bits/stdio-lock.h (_IO_cleanup_region_start):
10335 * misc/syslog.c (vsyslog, openlog, closelog): Likewise.
10336 * sysdeps/generic/bits/stdio-lock.h
10337 (_IO_cleanup_region_start, _IO_cleanup_region_start_noarg): Likewise.
10339 2001-08-23 Jakub Jelinek <jakub@redhat.com>
10341 * elf/ldconfig.c (search_dir): Remove stale symlinks.
10343 2001-08-23 Jakub Jelinek <jakub@redhat.com>
10345 * elf/dl-lookup.c (lookup_cache, lookup_cache_versioned): New.
10346 (_dl_lookup_symbol): Lookup relocations in cache and store successfull
10348 (_dl_lookup_versioned_symbol): Likewise.
10349 * elf/dl-reloc.c (_dl_relocate_object): Initialize cache for
10351 * elf/rtld.c (print_statistics): Output _dl_num_cache_relocations.
10352 * sysdeps/generic/ldsodefs.h (struct lookup_cache): New definition.
10353 (lookup_cache, lookup_cache_versioned): Add declarations.
10355 2001-08-23 Ulrich Drepper <drepper@redhat.com>
10357 * stdlib/tst-random.c (main): Swap parameters in fail call.
10358 Patch by Pete Bevin <pete@petebevin.com>.
10360 2001-08-23 Jakub Jelinek <jakub@redhat.com>
10362 * sysdeps/generic/inttypes.h: Use __gwchar_t instead of __wchar_t.
10364 2001-08-23 Ulrich Drepper <drepper@redhat.com>
10366 * malloc/obstack.c: Indent preprocessor directives.
10367 Patch by Jim Meyering <meyering@ascend.com>.
10369 * po/ja.po: Update from translation team.
10371 2001-08-23 Roland McGrath <roland@frob.com>
10373 * libio/tst-ungetwc1.c (main): Add a const to quiet a warning.
10375 * nss/test-netdb.c (test_hosts): Don't use MAXHOSTNAMELEN.
10376 Instead, use dynamic buffer to test gethostname's ENAMETOOLONG error.
10378 2001-08-22 Roland McGrath <roland@frob.com>
10380 * sysdeps/generic/ldsodefs.h (_dl_load_lock): Declare it here with
10381 __libc_lock_define_recursive.
10382 * elf/dl-open.c: Don't declare it here any more.
10383 * elf/dl-close.c: Likewise.
10384 * elf/dl-lookup.c: Likewise.
10385 * elf/dl-iteratephdr.c: Likewise.
10386 * elf/dl-lookup.c (add_dependency): Use __libc_lock_lock_recursive and
10387 __libc_lock_unlock_recursive.
10388 * elf/dl-close.c (_dl_close): Likewise
10389 * elf/dl-iteratephdr.c (__dl_iterate_phdr): Likewise
10390 * elf/dl-open.c (_dl_open): Likewise
10392 * sysdeps/generic/bits/libc-lock.h
10393 (__libc_lock_define_recursive): New macro.
10394 * sysdeps/generic/bits/stdio-lock.h (_IO_lock_t): Use it.
10395 (_IO_lock_lock): Use __libc_lock_lock_recursive.
10396 (_IO_lock_unlock): Use __libc_lock_unlock_recursive.
10398 * conform/conformtest.pl (checknamespace): Sort the output list.
10400 * sysdeps/generic/bits/poll.h (POLLWRBAND): New alias for POLLOUT.
10401 (POLLRDNORM, POLLRDBAND, POLLWRNORM, POLLWRBAND): Make these
10402 definitions conditional on [__USE_XOPEN].
10404 * sysdeps/mach/hurd/bits/fcntl.h (O_ASYNC, O_FSYNC, O_SYNC): Define
10405 these unconditionally, not only use [__USE_BSD], so as to match
10406 the sysdeps/unix/sysv/linux files.
10408 2001-08-22 Ulrich Drepper <drepper@redhat.com>
10410 * test-skeleton.c (add_temp_file): Add __attribute__ ((unused)) to
10413 * dlfcn/tst-dladdr.c (do_test): Get address of ref1 using
10416 2001-08-22 Roland McGrath <roland@frob.com>
10418 * sysdeps/generic/bits/sigaction.h (struct sigaction): Fix up
10419 conditionalization of sa_handler/sa_sigaction member types to
10420 match the sysdeps/unix/sysv/linux file.
10422 2001-08-22 Ulrich Drepper <drepper@redhat.com>
10424 * elf/dl-addr.c (_dl_addr): Handle broken binaries with zero
10425 symbol sizes a bit better.
10427 * sysdeps/ia64/strncpy.S: Complete rewrite.
10428 Contributed by Jakub Jelinek <jakub@redhat.com>.
10430 * string/stratcliff.c (main): Add strncpy test.
10432 2001-08-22 Roland McGrath <roland@frob.com>
10434 * sysdeps/generic/dl-environ.c: Include <stdlib.h> and <unistd.h>,
10435 and don't declare unsetenv or _environ directly.
10436 (unsetenv): Return int, not void. Use __environ instead of _environ.
10438 2001-08-01 Mark Kettenis <kettenis@gnu.org>
10440 * sysdeps/unix/bsd/bsd4.4/Makefile: New file.
10441 * sysdeps/unix/bsd/bsd4.4/Versions: New file.
10442 * sysdeps/unix/bsd/bsd4.4/cmsg_nxthdr.c: New file.
10443 * sysdeps/unix/bsd/bsd4.4/bits/socket.h (__cmsg_nxthdr): Correct
10444 test for cmsg struct size.
10446 2001-04-23 Paul Eggert <eggert@twinsun.com>
10448 * posix/getopt.h (getopt_long, getopt_long_only, _getopt_internal):
10449 Rename __argc to ___argc in prototypes to avoid compatibility
10450 problems with systems that reserve the identifier "__argc".
10451 Similarly for __argv.
10453 2001-08-21 Roland McGrath <roland@frob.com>
10455 * stdio-common/tst-fseek.c: Include <time.h> for `time' declaration.
10457 * mach/Makefile (tests): Removed.
10458 * mach/hello.c: File removed.
10460 2001-08-22 Ulrich Drepper <drepper@redhat.com>
10462 * po/sv.po: Update from translation team.
10464 * stdio-common/vfscanf.c: Fix handling of %l[].
10465 Reported by Mitsuru Chinen <mchinen@yamato.ibm.com>.
10467 * libio/Makefile (tests): Add tst-sscanf.
10468 * libio/tst-sscanf.c: New file.
10470 * elf/dl-addr.c (_dl_addr): Fix tests to determine dli_sname.
10471 * malloc/mtrace.c (tr_where): dli_sname always points to a
10472 non-empty string if != NULL.
10473 Reported by Tim Janik <timj@gtk.org>.
10475 2001-08-22 Jakub Jelinek <jakub@redhat.com>
10477 * sunrpc/xdr_rec.c (xdrrec_create): Fix buf sizes before allocating
10478 buf. Free resources on failure.
10479 * sunrpc/svc_unix.c (svcunix_create): Free resources on failure.
10480 (makefd_xprt): Likewise.
10481 * sunrpc/svc_udp.c (svcudp_bufcreate): Likewise.
10482 * sunrpc/svc_tcp.c (svctcp_create, makefd_xprt): Likewise.
10483 * sunrpc/auth_unix.c (authunix_create): Likewise.
10485 2001-08-21 Jakub Jelinek <jakub@redhat.com>
10487 * string/strnlen.c: Remove.
10488 * sysdeps/generic/strnlen.c: New file.
10489 * sysdeps/i386/i486/bits/string.h (strnlen): Remove.
10491 2001-08-21 Roland McGrath <roland@frob.com>
10493 * sysdeps/mach/i386/machine-sp.h (__thread_stack_pointer): Define this
10494 as a macro, not an extern inline function.
10496 * hurd/Versions (GLIBC_2.2.5): New set, define __hurd_fail here.
10497 * Versions.def (libc): Add GLIBC_2.2.5 set.
10498 * hurd/hurd.h (_HURD_H_EXTERN_INLINE): New macro.
10499 (__hurd_fail): Use that instead of _EXTERN_INLINE in decl.
10501 2001-08-20 Roland McGrath <roland@frob.com>
10503 * hurd/hurdlookup.c (__hurd_file_name_lookup): Fail with ENOENT for "".
10504 (__hurd_file_name_split, __hurd_directory_name_split): Likewise.
10506 2001-08-21 Ulrich Drepper <drepper@redhat.com>
10508 * string/bits/string2.h: Remove strnlen optimization here.
10509 * sysdeps/i386/i486/bits/string.h: Add it here.
10511 2001-08-21 Wolfram Gloger <wg@malloc.de>
10513 * malloc/malloc.c: Make access to ..._hook pointers thread-safe.
10515 2001-08-21 Ulrich Drepper <drepper@redhat.com>
10517 * po/gl.po: Update from translation team.
10519 2001-08-20 Ulrich Drepper <drepper@redhat.com>
10521 * misc/error.c (error_tail): Use fputws_unlocked instead of fputws.
10522 * misc/err.c (convert_and_print): Likewise.
10524 * malloc/obstack.c (print_and_abort): Use fprintf instead of two
10527 2001-08-20 Martin Schwidefsky <schwidefsky@de.ibm.com>
10529 * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Revert the
10530 change of the gregset_t type.
10531 * sysdeps/unix/sysv/linux/s390/s390-64/sys/ucontext.h: Likewise.
10533 2001-08-20 kaz Kojima <kkojima@rr.iij4u.or.jp>
10535 * sysdeps/unix/sysv/linux/sh/sysdep.S: Align errno.
10537 2001-08-20 Ulrich Drepper <drepper@redhat.com>
10539 * posix/regex.c (truncate_wchar): Use wcrtomb not wctomb.
10541 * string/strnlen.c: Fix the implementation. We cannot use memchr.
10543 2001-08-18 Mark Kettenis <kettenis@gnu.org>
10545 * sysdeps/mach/hurd/i386/init-first.c (init): Initialize __environ
10546 before calling the cthreads initialization code.
10548 2001-08-20 Ulrich Drepper <drepper@redhat.com>
10550 * argp/argp-help.c: Fix two problems introduced in last change.
10552 * include/dirent.h: Include <dirstream.h> first.
10554 2001-08-19 Ulrich Drepper <drepper@redhat.com>
10556 * io/fts.c (fts_safe_changedir): Use __fxstat64 instead of __fstat.
10558 * sunrpc/svcauth_des.c (_svcauth_des): Avoid using bcopy.
10559 * sunrpc/xdr_rec.c: Likewise.
10560 * sunrpc/xdr_mem.c: Likewise.
10561 * sunrpc/svc_authux.c (_svcauth_unix): Likewise.
10562 * sunrpc/rpc_cmsg.c: Likewise.
10563 * sunrpc/getrpcport.c (getrpcport): Likewise.
10564 * sunrpc/clnt_simp.c (callrpc): Likewise.
10565 * sunrpc/clnt_gen.c (clnt_create): Likewise.
10566 * string/envz.c: Likewise.
10568 * po/ko.po: Update from translation team.
10570 * argp/argp-help.c: Handle wide oriented stderr stream.
10572 2001-08-18 Ulrich Drepper <drepper@redhat.com>
10574 * sysdeps/generic/strtol.c: Little optimizations. Add some
10577 * conform/conformtest.pl: <inttypes.h> test requires <stddef.h>.
10579 * wcsmbs/wchar.h (wcwdith): Change parameter type to wchar_t.
10580 * wcsmbs/wcwidth.c (wcwdith): Likewise.
10581 * wcsmbs/wcwidth.h (internal_wcwdith): Likewise.
10583 * conform/data/unistd.h-data: Remove _SC_MULTIPLE_PROCESS.
10585 * conform/data/ucontext.h-data: Fix typos in ucontext_t element tests.
10587 * time/time.h (struct timespec): Use __time_t for tv_sec element.
10589 * sysdeps/generic/inttypes.h: Define __wchar_t. Use it instead of
10590 wchar_t for function declarations and defintions.
10592 * misc/sys/select.h: Define __need_time_t before including <time.h>.
10593 Define suseconds_t if it hasn't happened yet.
10595 * iconv/gconv.h: Define __need_wchar_t before including <stddef.h>.
10597 * conform/data/sys/uio.h-data: Allow UIO_MAXIOV to be defined.
10599 * sysdeps/generic/stdint.h: Don't get definition of wchar_t from
10602 * conform/data/stddef.h-data: Remove wint_t.
10604 * conform/conformtest.pl: Change namespace test to take #undef
10605 lines into account.
10607 * conform/data/netinet/in.h-data: Fix typo in allow-header line.
10609 * conform/data/sys/socket.h-data: Add sockatmark.
10611 2001-08-17 Ulrich Drepper <drepper@redhat.com>
10613 * io/fts.c: Update from recent BSD source.
10615 2001-08-17 Roland McGrath <roland@frob.com>
10617 * stdio-common/perror.c (perror) [! USE_IN_LIBIO]: Don't use _IO_fwide.
10618 * misc/error.c (error_tail, error, error_at_line) [! USE_IN_LIBIO]:
10621 2001-08-17 Ulrich Drepper <drepper@redhat.com>
10623 * locale/duplocale.c (__duplocale): Also initialize the special
10624 __ctype_* elements.
10626 * conform/data/netdb.h-data: Adjust gai_strerror return type.
10628 2001-08-17 Andreas Jaeger <aj@suse.de>
10630 * misc/getpass.c: Include wchar.h for prototypes.
10631 * malloc/obstack.c: Likewise.
10633 2001-08-17 Ulrich Drepper <drepper@redhat.com>
10635 * sunrpc/svc_simple.c (universal): Use __write instead of write.
10637 * wcsmbs/wcscoll.c: Also define __wcscoll.
10638 * include/wchar.h: Declare __wcscoll.
10640 * libio/fwprintf.c: Use __vfwprintf instead of vfwprintf.
10641 * libio/vwprintf.c: Likewise.
10642 * libio/wprintf.c: Likewise.
10644 * iconv/gconv_cache.c: Use __munmap instead of munmap.
10646 2001-08-16 Ulrich Drepper <drepper@redhat.com>
10648 * posix/regex.c [_LIBC] (convert_mbs_to_wcs): Use __mbrtowc
10649 instead of mbrtowc.
10650 [_LIBC]: Use __iswctype instead of iswctype, __wcslen instead of
10651 wcslen, and __wcscoll instead of wcscoll.
10653 * sysdeps/unix/sockatmark.c (sockatmark): Use __ioctl instead of ioctl.
10655 * sysdeps/unix/sysv/linux/gai_sigqueue.c (__gai_sigqueue): Use
10656 __getuid instead of getuid.
10658 * stdio-common/perror.c (perror): Use __close instead of close.
10659 * iconv/gconv_cache.c (__gconv_load_cache): Likewise.
10660 * libio/freopen.c (freopen): Likewise.
10661 * libio/freopen64.c (freopen64): Likewise.
10663 * libio/tst-ungetwc2.c (main): Define str const.
10665 * include/wchar.h: Add prototypes for __fwprintf and __vfwprintf.
10666 * libio/fwprintf.c: Also define __fwprintf.
10667 * stdio-common/vfprintf.c [COMPILE_WPRINTF]: Also define __vfwprintf.
10668 * argp/argp-fmtstream.c: Handle wide oriented stderr stream.
10669 * assert/assert-perr.c: Likewise.
10670 * assert/assert.c: Likewise.
10671 * gmon/gmon.c: Likewise.
10672 * inet/rcmd.c: Likewise.
10673 * malloc/obstack.c: Likewise.
10674 * misc/err.c: Likewise.
10675 * misc/error.c: Likewise.
10676 * misc/getpass.c: Likewise.
10677 * posix/getopt.c: Likewise.
10678 * resolv/res_hconf.c: Likewise.
10679 * stdio-common/perror.c: Likewise.
10680 * stdio-common/psignal.c: Likewise.
10681 * stdlib/fmtmsg.c: Likewise.
10682 * sunrpc/auth_unix.c: Likewise.
10683 * sunrpc/clnt_perr.c: Likewise.
10684 * sunrpc/clnt_tcp.c: Likewise.
10685 * sunrpc/clnt_udp.c: Likewise.
10686 * sunrpc/clnt_unix.c: Likewise.
10687 * sunrpc/svc_simple.c: Likewise.
10688 * sunrpc/svc_tcp.c: Likewise.
10689 * sunrpc/svc_udp.c: Likewise.
10690 * sunrpc/svc_unix.c: Likewise.
10691 * sunrpc/xdr.c: Likewise.
10692 * sunrpc/xdr_array.c: Likewise.
10693 * sunrpc/xdr_rec.c: Likewise.
10694 * sunrpc/xdr_ref.c: Likewise.
10695 * sysdeps/generic/wordexp.c: Likewise.
10697 * po/it.po: Update from translation team.
10699 * misc/err.c: Handle wide oriented stderr stream.
10701 2001-08-14 Tom Rix <trix@redhat.com>
10703 * iconv/gconv_cache.c (find_module): Add #ifndef STATIC_GCONV.
10704 * iconv/Makefile: Fix gconv_cache.c CFLAGS.
10706 2001-08-13 Tom Rix <trix@redhat.com>
10708 * sysdeps/unix/sysv/aix/Makefile: Add rule to import kernel symbols.
10709 * sysdeps/unix/sysv/aix/bits/types.h: Fix type of __id_t, __useconds_t
10712 2001-08-15 Martin Schwidefsky <schwidefsky@de.ibm.com>
10714 * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S (__getcontext):
10715 Store the access registers to the ucontext structure.
10716 * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S (__getcontext):
10719 * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S (__setcontext):
10720 Load the access registers from the ucontext structure.
10721 * sysdeps/unix/sysv/linux/s390/s390-64/setcontext.S (__setcontext):
10724 * sysdeps/unix/sysv/linux/s390/s390-32/ucontext_i.h: Adjust the SC_xxx
10725 offsets to the new ucontext layout.
10726 * sysdeps/unix/sysv/linux/s390/s390-64/ucontext_i.h: Likewise.
10728 * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Fix the layout
10729 of the ucontext structure.
10730 * sysdeps/unix/sysv/linux/s390/s390-64/sys/ucontext.h: Likewise.
10732 2001-08-15 Ulrich Drepper <drepper@redhat.com>
10734 * misc/error.c (error): Handle wide oriented stderr stream correctly.
10735 (error_at_line): Likewise.
10737 * stdio-common/perror.c (perror): Implement according to standard.
10738 The stream orientation must not be changed if the stream was not
10739 oriented before the call.
10740 * stdio-common/Makefile (tests): Add tst-perror.
10741 * stdio-common/tst-perror.c: New file.
10744 See ChangeLog.12 for earlier changes.