1 2002-08-23 Ulrich Drepper <drepper@redhat.com>
3 * sysvipc/sys/shm.h: Remove SHMLBA definition.
4 * sysdeps/generic/bits/shm.h: Define SHMLBA here.
5 * sysdeps/gnu/bits/shm.h: Likewise.
6 * sysdeps/unix/sysv/linux/alpha/bits/shm.h: Likewise.
7 * sysdeps/unix/sysv/linux/bits/shm.h: Likewise.
8 * sysdeps/unix/sysv/linux/mips/bits/shm.h: Likewise.
9 * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Likewise.
10 * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Likewise.
11 * sysdeps/unix/sysv/linux/s390/bits/shm.h: Likewise.
12 * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: Likewise.
13 * sysdeps/unix/sysv/linux/ia64/bits/shm.h: Define SHMLBA to 2^20
14 since this is what the kernel says.
16 * misc/sys/xattr.h: Include <sys/types.h> instead of <stddef.h>
17 since ssize_t is needed as well. Replace const with __const.
19 2002-08-23 Roland McGrath <roland@redhat.com>
21 * malloc/hooks.c (__malloc_initialize_hook, __free_hook,
22 __malloc_hook, __realloc_hook, __memalign_hook,
23 __after_morecore_hook): Variable definitions moved to ...
24 * malloc/malloc.c: ... here, so as to be before all references.
26 * sysdeps/i386/dl-machine.h (elf_machine_load_address): Add a dummy
27 global variable reference in an unused asm parameter, to ensure the
28 compiler has set up the GOT register before we use it.
30 * malloc/hooks.c: Move variable definitions ahead of uses.
31 * libio/fileops.c: Move versioned_symbol defns ahead of _IO_jump_t
32 initializers that make reference to variables they define.
34 2002-08-23 Andreas Jaeger <aj@suse.de>
36 * locale/loadarchive.c: Include <stdlib.h> for prototypes of
39 * dlfcn/bug-dlsym1-lib1.c (foo): Add prototype to avoid warning.
41 * sysdeps/ieee754/flt-32/e_jnf.c: Remove unused variable.
42 * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
44 * misc/sys/xattr.h: New file, contributed by Christoph Hellwig
46 * sysdeps/generic/fgetxattr.c: New file.
47 * sysdeps/generic/flistxattr.c: New file.
48 * sysdeps/generic/fremovexattr.c: New file.
49 * sysdeps/generic/fsetxattr.c: New file.
50 * sysdeps/generic/getxattr.c: New file.
51 * sysdeps/generic/listxattr.c: New file.
52 * sysdeps/generic/lgetxattr.c: New file.
53 * sysdeps/generic/llistxattr.c: New file.
54 * sysdeps/generic/lremovexattr.c: New file.
55 * sysdeps/generic/lsetxattr.c: New file.
56 * sysdeps/generic/removexattr.c: New file.
57 * sysdeps/generic/setxattr.c: New file.
58 * misc/Makefile (headers): Add sys/xattr.h.
59 (routines): Add *xattr calls.
60 * misc/Versions: Add *xattr calls with version 2.3.
61 * sysdeps/unix/sysv/linux/m68k/Versions: Remove *xattr syscalls.
62 * sysdeps/unix/sysv/linux/s390/s390-32/Versions: Likewise.
63 * sysdeps/unix/sysv/linux/sparc/sparc32/Versions: Likewise.
64 * sysdeps/unix/sysv/linux/sparc/sparc64/Versions: Likewise.
65 * sysdeps/unix/sysv/linux/x86_64/Versions: Likewise.
66 * sysdeps/unix/sysv/linux/ia64/Versions: Likewise.
67 * sysdeps/unix/sysv/linux/alpha/Versions: Likewise.
68 * sysdeps/unix/sysv/linux/arm/Versions: Likewise.
70 2002-08-22 Steven Munroe <sjmunroe@us.ibm.com>
72 * sysdeps/powerpc/elf/libc-start.c
73 (__cache_line_size): Declare.
74 (__aux_init_cache): New.
75 (__libc_start_main): Change type of `auxvec' parameter to
76 `ElfW(auxv_t) *'. Correct walking of aux vector. Call
78 * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c
79 (__cache_line_size): Declare.
80 (__aux_init_cache): New.
81 (DL_PLATFORM_INIT): Define.
82 * sysdeps/powerpc/memset.S: Define __cache_line_size and use its
83 value to select the correct stride for dcbz.
85 2002-08-22 Andreas Jaeger <aj@suse.de>
87 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Fix arguments of
90 2002-08-22 Roland McGrath <roland@redhat.com>
92 * locale/loadarchive.c (_nl_load_locale_from_archive): Check max file
93 position indicated by locrectab against file bounds before rounding to
94 page size. In mapping loop, always set TO before breaking out of
95 contiguous range coalescing loop.
97 * locale/loadarchive.c (_nl_load_locale_from_archive): Use MAP_PRIVATE
98 (or MAP_COPY if available) instead of MAP_SHARED.
100 * scripts/firstversions.awk: When encountering a version newer than
101 the specified earliest version, be sure to emit the specified earliest
102 version first if any renaming of an older version to that has been.
104 2002-08-21 Roland McGrath <roland@redhat.com>
106 * configure.in: Make GCC version check require 3.[2-9]* and no others.
107 * configure: Regenerated.
108 * manual/install.texi (Tools for Compilation): Say 3.2 is required.
109 (Configuring and compiling): Don't mention older GCC versions any more.
110 * INSTALL: Regenerated.
112 * manual/install.texi (Configuring and compiling, Installation,
113 Running make install, Linux): Linux -> GNU/Linux where appropriate.
115 * elf/rtld.c (_dl_start_final): Move defn before _dl_start so it can
116 be inlined. Declare it with always_inline if [DONT_USE_BOOTSTRAP_MAP]
117 and with noinline otherwise. Remove hack alloca use to prevent
118 inlining, we can ask for it explicitly nowadays.
120 * dlfcn/bug-dlsym1.c: New file.
121 * dlfcn/bug-dlsym1-lib1.c, dlfcn/bug-dlsym1-lib2.c: New files.
122 * dlfcn/Makefile (distribute): Add them.
123 (tests): Add bug-dlsym1 here.
124 (modules-names): Add bug-dlsym1-lib1 and bug-dlsym1-lib2 here.
125 ($(objpfx)bug-dlsym1, $(objpfx)bug-dlsym1.out): New targets.
126 ($(objpfx)bug-dlsym1-lib1.so, $(objpfx)bug-dlsym1-lib2.so): Likewise.
128 2002-08-21 Ulrich Drepper <drepper@redhat.com>
130 * elf/rtld.c (start_time): New global variable. Moved from _dl_start.
131 (DONT_USE_BOOTSTRAP_MAP): Define if we can use non-exported symbols
133 (_dl_start): Don't use local bootstrap_map variable if
134 DONT_USE_BOOTSTRAP_MAP is defined. Use GL(dl_rtld_map). Don't
135 pass bootstrap_map to _dl_start_final in this case either. Don't
136 pass start_time to _dl_start_final ever.
137 (_dl_start_final): Don't copy bootstrap_map if DONT_USE_BOOTSTRAP_MAP.
139 * elf/dl-deps.c (_dl_map_object_deps): Revert patch from 2002-05-28.
140 This cripples the scope lists necessary to search for symbols in
141 dependencies which are not in the global scope.
143 * include/setjmp.h (__libc_longjmp): Add declaration.
145 2002-08-21 Andreas Jaeger <aj@suse.de>
147 * sysdeps/x86_64/_mcount.S: Fix assembler.
149 * sysdeps/unix/sysv/linux/x86_64/Makefile: Generate bits/syscall.h
152 2002-08-21 Andreas Jaeger <aj@suse.de>
154 * sysdeps/x86_64/sysdep.h (CALL_MCOUNT): Fix it.
156 * sysdeps/x86_64/Makefile (sysdep_routines): Add _mcount.
158 * sysdeps/x86_64/machine-gmon.h: New file.
159 * sysdeps/x86_64/_mcount.S: New file.
161 2002-08-20 Ulrich Drepper <drepper@redhat.com>
163 * elf/rtld.c (_dl_start): Pass zero to TLS_INIT_TP. Set
164 bootstrap_map.l_tls_tp_initialized to 1 if TLS_INIT_TP was called.
165 (_dl_start_final): Copy l_tls_tp_initialized to GL(dl_rtld_map).
166 (dl_main): If HAVE___THREAD is not defined pass l_tls_tp_initialized
167 to TL_INIT_TP. Otherwise pass 1.
168 * include/link.h (struct link_map): Add l_tls_tp_initialized.
169 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Pass 0 to TL_INIT_TP.
171 2002-08-15 Jakub Jelinek <jakub@redhat.com>
173 * locale/programs/localedef.c (add_to_readlist): Error about
174 circular dependencies only if the locale in question hasn't
176 * locale/programs/linereader.c (get_string): Pass LC_CTYPE not
177 CTYPE_LOCALE to load_locale.
178 * locale/programs/locfile.c (locfile_read): Don't include
179 unneeded but available locales in locale_mask.
181 * locale/programs/locarchive.c (enlarge_archive): If quiet, don't
182 print any messages about enlarging archive.
184 2002-08-20 Brian Youmans <3diff@gnu.org>
186 * manual/contrib.texi: Removed licenses, added acknowledgements
187 for contributions by Intel, IBM, Craig Metz.
188 * LICENSES: New file, contains the text of all non-FSF licenses in the
189 distribution that require putting the notice in the accompanying
191 * README.template, README: Mention LICENSES.
193 * sysdeps/mach/hurd/net/if_ppp.h: Replaced CMU license with a
194 new one modelled on the modern BSD license, per recent letter
195 of permission from CMU.
196 * sysdeps/unix/sysv/linux/net/if_ppp.h: Likewise.
198 * sysdeps/ieee754/dbl-64/MathLib.h: Changed the copyright holder
199 from IBM to FSF, per the recent Software Letter. Changed the
200 distribution terms from GPL to LGPL.
202 * sysdeps/ieee754/dbl-64/asincos.tbl: Added FSF copyright and
203 copying permission notice (Lesser GPL), per recent IBM Software Letter.
204 * sysdeps/ieee754/dbl-64/powtwo.tbl: Likewise.
205 * sysdeps/ieee754/dbl-64/root.tbl: Likewise.
206 * sysdeps/ieee754/dbl-64/sincos.tbl: Likewise.
207 * sysdeps/ieee754/dbl-64/uatan.tbl: Likewise.
208 * sysdeps/ieee754/dbl-64/uexp.tbl: Likewise.
209 * sysdeps/ieee754/dbl-64/ulog.tbl: Likewise.
210 * sysdeps/ieee754/dbl-64/upow.tbl: Likewise.
211 * sysdeps/ieee754/dbl-64/utan.tbl: Likewise.
213 * sysdeps/ieee754/dbl-64/atnat.h: Changed the copyright holder
214 from IBM to FSF, per the recent Software Letter. Corrected the
215 text of the copying permission notice to say Lesser GPL instead
216 of GPL in warranty disclaimer paragraph.
217 * sysdeps/ieee754/dbl-64/atnat2.h: Likewise.
218 * sysdeps/ieee754/dbl-64/branred.h: Likewise.
219 * sysdeps/ieee754/dbl-64/dla.h: Likewise.
220 * sysdeps/ieee754/dbl-64/doasin.h: Likewise.
221 * sysdeps/ieee754/dbl-64/dosincos.h: Likewise.
222 * sysdeps/ieee754/dbl-64/mpa.h: Likewise.
223 * sysdeps/ieee754/dbl-64/mpa2.h: Likewise.
224 * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
225 * sysdeps/ieee754/dbl-64/mpexp.h: Likewise.
226 * sysdeps/ieee754/dbl-64/mplog.h: Likewise.
227 * sysdeps/ieee754/dbl-64/mpsqrt.h: Likewise.
228 * sysdeps/ieee754/dbl-64/mydefs.h: Likewise.
229 * sysdeps/ieee754/dbl-64/sincos32.h: Likewise.
230 * sysdeps/ieee754/dbl-64/uasncs.h: Likewise.
231 * sysdeps/ieee754/dbl-64/uexp.h: Likewise.
232 * sysdeps/ieee754/dbl-64/ulog.h: Likewise.
233 * sysdeps/ieee754/dbl-64/upow.h: Likewise.
234 * sysdeps/ieee754/dbl-64/urem.h: Likewise.
235 * sysdeps/ieee754/dbl-64/uroot.h: Likewise.
236 * sysdeps/ieee754/dbl-64/usncs.h: Likewise.
237 * sysdeps/ieee754/dbl-64/utan.h: Likewise.
239 * sysdeps/ieee754/dbl-64/branred.c: Corrected the text of the copying
240 permission notice to say Lesser GPL instead of GPL in warranty
241 disclaimer paragraph.
242 * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
243 * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
244 * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
245 * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
246 * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
247 * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
248 * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
249 * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
250 * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
251 * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
252 * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
253 * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
254 * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
255 * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
256 * sysdeps/ieee754/dbl-64/mplog.c: Likewise.
257 * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
258 * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
259 * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
260 * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
261 * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
262 * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
263 * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
264 * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
266 2002-08-20 Roland McGrath <roland@redhat.com>
268 Fix ABI compatibility with libc compiled with old tools on powerpc.
269 Changes contributed by Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
270 and Jack Howarth <howarth@bromo.med.uc.edu>.
271 * sysdeps/powerpc/Makefile [$(have-protected) = yes]
272 (CPPFLAGS-divdi3.c, CPPFLAGS-libgcc-compat.S): New variables,
273 pass -DHAVE_DOT_HIDDEN for these files.
274 * sysdeps/powerpc/Versions (libc: GLIBC_2.0): Added __floatdidf,
276 * sysdeps/powerpc/divdi3.c: New file.
277 * sysdeps/powerpc/libgcc-compat.S: New file, replacement for ...
278 * sysdeps/powerpc/libgcc-compat.c: ... this, file removed.
280 2002-08-20 Jakub Jelinek <jakub@redhat.com>
282 * locale/loadarchive.c (_nl_load_locale_from_archive): Handle
283 partially overlapping mappings. Remove unneeded (char *) casts.
284 Never allow duplication of ranges in mapped areas.
286 2002-08-20 Roland McGrath <roland@redhat.com>
288 * elf/Makefile ($(objpfx)ld.so): Separate commands in rule so errors
289 can be detected by make. Reported by H.J. Lu <hjl@gnu.org>.
291 2002-08-20 Ulrich Drepper <drepper@redhat.com>
293 * include/unistd.h: Don't hide _exit.
295 * elf/rtld.c (_dl_start): Pass extra argument 1 to TLS_INIT_TP.
296 (dl_main): Pass extra argument 0 to TLS_INIT_TP.
297 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Pass extra
298 argument 1 to TLS_INIT_TP.
299 * sysdeps/generic/tls.h (TLS_INIT_TP): Describe new parameter.
301 * sysdeps/generic/dl-tls.c (allocate_dtv): Optimize a bit.
303 * elf/Versions [ld] (GLIBC_PRIVATE): Add _dl_get_tls_static_info.
304 * sysdeps/generic/dl-tls.c (_dl_allocate_tls_storage): Move dtv
305 memory allocation to...
306 (allocate_dtv): ...here. New function.
307 (_dl_allocate_tls): Change to take parameter. If parameter is non-NULL
308 call allocate_dtv instead of _dl_allocate_tls_storage.
309 (_dl_deallocate_tls): New parameter. Deallocate TCB only if true.
310 (_dl_get_tls_static_info): New function.
311 * sysdeps/generic/ldsodefs.h: Adjust prototypes of _dl_allocate_tls
312 and _dl_deallocate_tls. Add prototype for _dl_get_tls_static_info.
314 2002-08-19 Ulrich Drepper <drepper@redhat.com>
316 * sysdeps/generic/dl-tls.c (_dl_allocate_tls_init): Return
317 immediately if result == NULL.
319 2002-08-16 Jakub Jelinek <jakub@redhat.com>
321 * sysdeps/alpha/fpu/libm-test-ulps: Regenerate.
323 2002-08-18 Roland McGrath <roland@frob.com>
325 * sysdeps/mach/hurd/mkdir.c (__mkdir): Use __directory_name_split
326 instead of __file_name_split.
327 * sysdeps/mach/hurd/unlink.c (__unlink): Likewise.
329 * sysdeps/mach/hurd/dl-sysdep.c
330 [HP_TIMING_AVAIL] (_dl_cpuclock_offset): New variable.
331 [HP_TIMING_AVAIL] (_dl_sysdep_start): Set it with HP_TIMING_NOW.
333 2002-08-16 Jakub Jelinek <jakub@redhat.com>
335 * locale/loadarchive.c (_nl_load_locale_from_archive): Braino fix
336 in change before last: MAX -> MIN.
338 2002-08-15 Roland McGrath <roland@redhat.com>
340 * libio/fileops.c (_IO_file_seekoff_mmap): Leave read pointers at EOF
341 if seek would go past it.
342 (mmap_remap_check): If file position is at or past EOF after check,
343 leave read pointers at EOF and don't seek.
345 * libio/tst-mmap-offend.c: New file.
346 * libio/Makefile (tests): Add it.
348 * locale/loadarchive.c (_nl_load_locale_from_archive): Store strdup of
349 the name as passed, rather than the name in the archive dictionary.
351 2002-08-15 Ulrich Drepper <drepper@redhat.com>
353 * csu/Makefile: Define elide-routines.os not static-only-routines.
355 * include/sched.h (__clone): Add varargs at the end.
357 * elf/rtld.c (_dl_start): Allow TLS_INIT_TP to fail, and stop in that
359 (TLS_INIT_HELPER): If defined, use it.
360 * sysdeps/generic/libc-tls.c (TLS_INIT_HELPER): Likewise.
362 2002-08-15 Roland McGrath <roland@redhat.com>
364 * elf/dl-load.c (lose): Remove [!SHARED] conditional from null check
365 on L->l_prev; it can happen under rtld --verify too.
367 * locale/loadarchive.c (_nl_load_locale_from_archive): Don't read the
368 header separately, just map an initial window of 2MB from the file
369 and remap if that is not large enough to cover the whole header.
371 2002-08-15 Andreas Jaeger <aj@suse.de>
373 * sysdeps/unix/sysv/linux/m68k/Versions: Add *xattr syscalls with
375 * sysdeps/unix/sysv/linux/arm/Versions: Likewise.
376 * sysdeps/unix/sysv/linux/alpha/Versions: Likewise.
377 * sysdeps/unix/sysv/linux/ia64/Versions: Likewise.
378 * sysdeps/unix/sysv/linux/x86_64/Versions: Likewise.
379 * sysdeps/unix/sysv/linux/sparc/sparc64/Versions: Likewise.
380 * sysdeps/unix/sysv/linux/sparc/sparc32/Versions: Likewise.
381 * sysdeps/unix/sysv/linux/s390/s390-32/Versions: Likewise.
382 * sysdeps/unix/sysv/linux/powerpc/Versions: Likewise.
383 * sysdeps/unix/sysv/linux/mips/Versions: Likewise.
384 Patch by Andreas Gruenbacher <agruen@suse.de>.
386 * sysdeps/unix/sysv/linux/syscalls.list: Add *xattr syscalls.
388 2002-08-14 Roland McGrath <roland@redhat.com>
390 * locale/locarchive.h (struct locale_category_data): Give this name to
391 the type of locale_data_t's elements.
392 * locale/programs/locarchive.c (cmpcategorysize): New static function.
393 (add_locale): Use that to sort the categories by size and put all
394 those that fit into two pages into the LC_ALL block, instead of
395 hard-coding it to do everything but LC_CTYPE and LC_COLLATE.
396 (show_archive_content): Detect categories inside LC_ALL block
397 directly, instead of hard-coding.
398 (oldlocrecentcmp): Compare just on file locations used.
400 2002-08-14 Jakub Jelinek <jakub@redhat.com>
402 * locale/programs/locarchive.c (struct oldlocrecent): New.
403 (oldlocrecentcmp): New.
404 (enlarge_archive): Re-add locales in the order they were added
406 (add_locale): Put all the small locale files together, if the small
407 locale file block would occupy less pages if page size aligned, align
409 (show_archive_content): Adjust for locale archives optimized for speed.
411 2002-08-14 Roland McGrath <roland@frob.com>
413 * configure.in: Use "MISSING" as not-found value for MIG.
414 * sysdeps/mach/configure.in: Fatal if mig not found.
415 * configure, sysdeps/mach/configure: Regenerated.
417 2002-08-13 Jakub Jelinek <jakub@redhat.com>
419 * locale/loadarchive.c (archfname): Add missing slash.
421 * sysdeps/generic/strtold.c (__strtold_internal): Add libc_hidden_def.
422 * wcsmbs/wcstold.c (__wcstold_internal): Add libc_hidden_def.
424 2002-08-12 Roland McGrath <roland@redhat.com>
426 * include/sys/wait.h (__waitpid): Add libc_hidden_proto.
427 * sysdeps/unix/sysv/sco3.2.4/waitpid.S: Add libc_hidden_def.
428 * sysdeps/unix/sysv/sysv4/waitpid.c: Add libc_hidden_weak.
429 * sysdeps/unix/sysv/linux/waitpid.c: Likewise.
430 * sysdeps/unix/sysv/aix/waitpid.c: Likewise.
431 * sysdeps/unix/bsd/bsd4.4/waitpid.c: Likewise.
432 * sysdeps/generic/waitpid.c: Likewise.
434 * include/net/if.h: New file. Use libc_hidden_proto
435 for if_nametoindex and if_indextoname.
436 * sysdeps/generic/if_index.c: Add libc_hidden_def.
437 * sysdeps/mach/hurd/if_index.c: Likewise.
438 * sysdeps/unix/sysv/linux/if_index.c: Likewise.
440 * include/grp.h (setgroups): Add libc_hidden_proto.
441 * sysdeps/generic/setgroups.c: Add libc_hidden_def.
442 * sysdeps/mach/hurd/setgroups.c: Likewise.
443 * sysdeps/unix/sysv/irix4/setgroups.c: Likewise.
444 * sysdeps/unix/sysv/linux/i386/setgroups.c: Likewise.
446 2002-08-13 Jakub Jelinek <jakub@redhat.com>
448 * include/unistd.h (seteuid, setegid): Add libc_hidden_proto.
449 * sysdeps/generic/seteuid.c (seteuid): Add libc_hidden_def.
450 * sysdeps/generic/setegid.c (setegid): Likewise.
451 * sysdeps/mach/hurd/seteuid.c (seteuid): Likewise.
452 * sysdeps/mach/hurd/setegid.c (setegid): Likewise.
453 * sysdeps/unix/bsd/seteuid.c (seteuid): Likewise.
454 * sysdeps/unix/bsd/setegid.c (setegid): Likewise.
455 * sysdeps/unix/sysv/aix/seteuid.c (seteuid): Likewise.
456 * sysdeps/unix/sysv/aix/setegid.c (setegid): Likewise.
457 * sysdeps/unix/sysv/linux/i386/setegid.c (setegid): Likewise.
458 * sysdeps/unix/sysv/linux/sparc/sparc32/seteuid.c (seteuid): Likewise.
459 * sysdeps/unix/sysv/linux/sparc/sparc32/setegid.c (setegid): Likewise.
460 * sysdeps/unix/sysv/linux/seteuid.c (seteuid): Likewise.
461 * sysdeps/unix/sysv/linux/setegid.c (setegid): Likewise.
462 * sysdeps/unix/sysv/linux/i386/seteuid.c (seteuid): Likewise.
463 Remove fallback if __ASSUME_SETRESUID_SYSCALL.
465 * include/sys/stat.h (__fxstat_internal, __fxstat64_internal,
466 __lxstat_internal, __lxstat64_internal): Remove.
467 (__fxstat, __fxstat64, __lxstat, __lxstat64, __xstat, __xstat64):
469 * sysdeps/generic/fxstat.c (__fxstat): Add hidden_def.
470 Remove INTDEF where present, remove #undef at the beginning.
471 * sysdeps/generic/fxstat64.c (__fxstat64): Likewise.
472 * sysdeps/generic/lxstat.c (__lxstat): Likewise.
473 * sysdeps/generic/lxstat64.c (__lxstat64): Likewise.
474 * sysdeps/generic/xstat.c (__xstat): Likewise.
475 * sysdeps/generic/xstat64.c (__xstat64): Likewise.
476 * sysdeps/mach/hurd/dl-sysdep.c (__xstat64, __fxstat64): Likewise.
477 * sysdeps/mach/hurd/fxstat.c (__fxstat): Likewise.
478 * sysdeps/mach/hurd/fxstat64.c (__fxstat64): Likewise.
479 * sysdeps/mach/hurd/lxstat.c (__lxstat): Likewise.
480 * sysdeps/mach/hurd/lxstat64.c (__lxstat64): Likewise.
481 * sysdeps/mach/hurd/xstat.c (__xstat): Likewise.
482 * sysdeps/mach/hurd/xstat64.c (__xstat64): Likewise.
483 * sysdeps/unix/fxstat.c (__fxstat): Likewise.
484 * sysdeps/unix/common/lxstat.c (__lxstat): Likewise.
485 * sysdeps/unix/sysv/aix/fxstat.c (__fxstat): Likewise.
486 * sysdeps/unix/sysv/aix/fxstat64.c (__fxstat64): Likewise.
487 * sysdeps/unix/sysv/aix/lxstat.c (__lxstat): Likewise.
488 * sysdeps/unix/sysv/aix/lxstat64.c (__lxstat64): Likewise.
489 * sysdeps/unix/sysv/aix/xstat.c (__xstat): Likewise.
490 * sysdeps/unix/sysv/aix/xstat64.c (__xstat64): Likewise.
491 * sysdeps/unix/sysv/linux/ia64/fxstat.c (__fxstat): Likewise.
492 * sysdeps/unix/sysv/linux/ia64/lxstat.c (__lxstat): Likewise.
493 * sysdeps/unix/sysv/linux/ia64/xstat.c (__xstat): Likewise.
494 * sysdeps/unix/sysv/linux/s390/s390-64/fxstat.c (__fxstat): Likewise.
495 * sysdeps/unix/sysv/linux/s390/s390-64/lxstat.c (__lxstat): Likewise.
496 * sysdeps/unix/sysv/linux/s390/s390-64/xstat.c (__xstat): Likewise.
497 * sysdeps/unix/sysv/linux/i386/fxstat.c (__fxstat): Likewise.
498 * sysdeps/unix/sysv/linux/i386/lxstat.c (__lxstat): Likewise.
499 * sysdeps/unix/sysv/linux/i386/xstat.c (__xstat): Likewise.
500 * sysdeps/unix/sysv/linux/xstat.c (__xstat): Likewise.
501 * sysdeps/unix/sysv/linux/xstat64.c (__xstat64): Likewise.
502 * sysdeps/unix/sysv/linux/fxstat.c (__fxstat): Likewise.
503 * sysdeps/unix/sysv/linux/fxstat64.c (__fxstat64): Likewise.
504 * sysdeps/unix/sysv/linux/lxstat.c (__lxstat): Likewise.
505 * sysdeps/unix/sysv/linux/lxstat64.c (__lxstat64): Likewise.
506 * sysdeps/unix/xstat.c (__xstat): Likewise.
508 * include/sys/statvfs.h (statvfs, fstatvfs): Add libc_hidden_proto.
509 * sysdeps/generic/statvfs.c (statvfs): Add libc_hidden_def.
510 * sysdeps/generic/fstatvfs.c (fstatvfs): Likewise.
511 * sysdeps/mach/hurd/statvfs.c (statvfs): Likewise.
512 * sysdeps/mach/hurd/fstatvfs.c (fstatvfs): Likewise.
513 * sysdeps/unix/sysv/linux/statvfs.c (statvfs): Likewise.
514 * sysdeps/unix/sysv/linux/fstatvfs.c (fstatvfs): Likewise.
516 * include/unistd.h (tcgetpgrp): Add libc_hidden_proto.
517 * include/termios.h (tcsetattr, cfsetispeed, cfsetospeed): Likewise.
518 * sysdeps/generic/tcgetpgrp.c (tcgetpgrp): Add libc_hidden_def.
519 * sysdeps/generic/tcsetattr.c (tcsetattr): Likewise.
520 * sysdeps/generic/speed.c (cfsetispeed, cfsetospeed): Likewise.
521 * sysdeps/unix/bsd/bsd4.4/tcsetattr.c (tcgetpgrp): Likewise.
522 * sysdeps/unix/bsd/sun/sunos4/tcsetattr.c (tcsetattr): Likewise.
523 * sysdeps/unix/bsd/sun/sunos4/speed.c (cfsetispeed, cfsetospeed):
525 * sysdeps/unix/bsd/tcgetpgrp.c (tcgetpgrp): Likewise.
526 * sysdeps/unix/bsd/tcsetattr.c (tcsetattr): Likewise.
527 * sysdeps/unix/sysv/aix/tcsetattr.c (tcsetattr): Likewise.
528 * sysdeps/unix/sysv/aix/speed.c (cfsetispeed, cfsetospeed): Likewise.
529 * sysdeps/unix/sysv/linux/tcsetattr.c (tcsetattr): Likewise.
530 * sysdeps/unix/sysv/linux/speed.c (cfsetispeed, cfsetospeed): Likewise.
531 * sysdeps/unix/sysv/tcgetpgrp.c (tcgetpgrp): Likewise.
532 * sysdeps/unix/sysv/tcsetattr.c (tcsetattr): Likewise.
534 * include/string.h (strcoll): Add libc_hidden_proto.
535 * string/strcoll.c (strcoll): Add libc_hidden_def.
537 * misc/err.c (vwarn): Fix pasto in libc_hidden_def.
539 2002-08-11 Philip Blundell <philb@gnu.org>
541 * sysdeps/arm/Makefile: New file.
543 2002-08-08 Jakub Jelinek <jakub@redhat.com>
545 * posix/regcomp.c (parse_reg_exp): If '|' is immediately followed
546 by another '|', end of regex or enclosing ')', clear branch.
547 * posix/bug-regex9.c: New test.
548 * posix/Makefile (tests): Add bug-regex9.
550 2002-08-12 Roland McGrath <roland@redhat.com>
552 * sysdeps/generic/dl-tls.c (_dl_allocate_tls_init): Fix inner loop
553 start count condition, use TOTAL instead of variable that was never
554 set. Fix outer loop termination condition to TOTAL >= after update.
556 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Initialize
557 dl_tls_static_align and dl_tls_static_nelem.
559 2002-08-11 Roland McGrath <roland@redhat.com>
561 * elf/tst-tlsmod4.c (in_dso): Insert a random library call before use
562 of the TLS macros, otherwise the compiler might not have initialized
563 the PIC register yet when we use the PLT via asm.
564 * elf/tst-tlsmod3.c (in_dso2): Likewise.
565 * elf/tst-tlsmod2.c (in_dso): Likewise.
567 * sunrpc/svc_authux.c (_svcauth_unix): Remove spurious printf (ugh!).
569 * sysdeps/i386/bits/byteswap.h (__bswap_16, __bswap_32, __bswap_64):
570 Evaluate argument exactly once. Remove __volatile__ from asm's.
572 * include/unistd.h: Use libc_hidden_proto for getdomainname
574 * sysdeps/generic/getdomain.c: Add libc_hidden_def.
575 * sysdeps/mach/hurd/getdomain.c: Likewise.
576 * sysdeps/unix/getlogin_r.c: Likewise.
577 * sysdeps/mach/hurd/getlogin_r.c: Likewise.
578 * sysdeps/generic/getlogin_r.c: Likewise.
580 * include/rpc/auth_des.h: Use libc_hidden_proto for rtime.
581 * sunrpc/rtime.c: Add libc_hidden_def.
583 * include/string.h: Use libc_hidden_proto for basename.
584 * string/basename.c [_LIBC]: Add libc_hidden_def.
586 * sysdeps/unix/sysv/linux/opensock.c (__opensock): socket -> __socket.
588 * locale/loadarchive.c: munmap -> __munmap throughout.
590 * include/netdb.h: Use libc_hidden_proto for gai_strerror.
591 * sysdeps/posix/gai_strerror.c: Add libc_hidden_def.
592 * sysdeps/generic/gai_strerror.c: Likewise.
594 * include/sys/errno.h: New file.
596 * include/signal.h: No libc_hidden_proto for raise,
597 __libc_current_sigrtmin, __libc_current_sigrtmax.
598 These need to be overridden by linuxthreads.
599 * sysdeps/posix/raise.c: Reverted.
600 * sysdeps/generic/raise.c: Reverted.
601 * signal/allocrtsig.c: Reverted.
603 * locale/loadarchive.c (LOCALEDIR): Remove debugging defn. Oops.
605 2002-08-10 Roland McGrath <roland@redhat.com>
607 * locale/loadarchive.c (_nl_archive_subfreeres): New function.
608 * locale/localeinfo.h: Declare it.
609 * locale/setlocale.c (free_mem): Don't call _nl_unload_locale on the
610 current locale if it's not in the file list.
611 Call _nl_archive_subfreeres.
613 2002-08-10 Andreas Jaeger <aj@suse.de>
615 * sysdeps/i386/strchr.S: Add comment.
617 2002-08-10 Roland McGrath <roland@redhat.com>
619 * include/wchar.h (putwc): Use libc_hidden_proto.
620 * include/stdio.h (dprintf, fprintf, vfprintf, sprintf,
621 sscanf, fwrite, perror, remove, rewind, open_memstream): Likewise.
622 * stdio-common/dprintf.c: Add libc_hidden_def.
623 * stdio-common/fprintf.c: Likewise.
624 * stdio-common/sprintf.c: Likewise.
625 * stdio-common/sscanf.c: Likewise.
626 * libio/iofwrite.c: Likewise.
627 * libio/memstream.c: Likewise.
628 * libio/putwc.c: Likewise.
629 * stdio-common/perror.c: Likewise.
630 * sysdeps/posix/remove.c: Likewise.
631 * sysdeps/generic/remove.c: Likewise.
632 * libio/rewind.c: Likewise. Use <stdio.h> instead of "stdio.h".
633 * stdio-common/vfprintf.c: Add libc_hidden_def. Include <stdio.h>.
635 2002-08-09 Jakub Jelinek <jakub@redhat.com>
637 * include/wctype.h (iswalpha, iswdigit, iswlower, iswspace, iswxdigit,
638 towlower, towupper): Add prototypes here too. Add libc_hidden_proto.
639 * wctype/wcfuncs.c (iswalpha, iswdigit, iswlower, iswspace, iswxdigit,
640 towlower, towupper): Add libc_hidden_weak.
642 * include/bits/dlfcn.h: New file.
643 * elf/dl-profstub.c (_dl_mcount_wrapper_check): Add libc_hidden_def.
645 * include/grp.h (_nss_files_parse_grent): Add libc_hidden_proto.
646 * include/netinet/ether.h (_nss_files_parse_etherent): Likewise.
647 * include/rpc/netdb.h (_nss_files_parse_rpcent): Likewise.
648 * include/pwd.h (_nss_files_parse_pwent): Likewise.
649 * include/shadow.h (_nss_files_parse_spent): Likewise.
650 * include/netdb.h (_nss_files_parse_protoent,
651 _nss_files_parse_servent, _nss_files_parse_netent): Likewise.
652 * nss/nss_files/files-parse.c (nss_files_parse_hidden_def): Define.
653 (LINE_PARSER): Use it.
654 * nss/nsswitch.h (__nss_hostname_digits_dots): Add libc_hidden_proto.
655 * nss/digits_dots.c (__nss_hostname_digits_dots): Add libc_hidden_def.
657 * libio/oldiopopen.c: Move #if SHLIB_COMPAT after _IO_HAVE_SYS_WAIT
660 * manual/debug.texi (%MENU%): Remove trailing dot.
661 Reported by <hayastan132@hotmail.com>.
663 * sysdeps/unix/sysv/linux/ia64/syscalls.list (llseek): Add lseek
666 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list (llseek, lseek):
669 2002-08-09 Roland McGrath <roland@redhat.com>
671 * locale/loadarchive.c (_nl_load_locale_from_archive): Parse locale
672 name to find codeset name (if any) and normalize it. If the
673 normalized name differs, look up only that in the archive.
674 * locale/programs/locarchive.c (add_locale_to_archive): If the name
675 contains a codeset, normalize the codeset store only the normalized
676 name in the archive. If not, add an alias containing the locale's
677 normalized codeset name. Apply codeset name normalization when
678 matching entries in the alias file.
680 * locale/programs/locarchive.c (delete_locales_from_archive): Don't
681 decrement HEAD->namehash_used here.
682 (add_locale): Only need to insert name string when name_offset != 0.
684 * locale/programs/localedef.c (options): Add -A/--alias-file.
685 (alias_file): New variable.
686 (parse_opt): Grok -A, set that.
687 * locale/programs/localedef.h: Declare it.
689 * locale/locarchive.h (struct locrecent): Add `refs' member.
690 * locale/programs/locarchive.c (insert_name): New function, broken out
692 (add_locale_to_archive): ... here. Call that.
693 (add_alias): New function.
694 (add_locale): New static function, add_locale_to_archive renamed.
695 (add_locale_to_archive): Call that and use add_alias to add an alias
696 for the name with codeset if the given name lacks it.
697 (enlarge_archive): Call add_locale instead of add_locale_to_archive.
699 * locale/Makefile (routines): Add loadarchive.
700 * locale/loadarchive.c: New file, started from code by Ulrich Drepper.
701 (_nl_load_locale_from_archive): New function.
702 * locale/localeinfo.h: Declare it.
703 * locale/findlocale.c (_nl_find_locale): If using default locale path,
704 try _nl_load_locale_from_archive first.
706 * locale/loadlocale.c (_nl_intern_locale_data): New function,
707 broken out of _nl_load_locale.
708 (_nl_load_locale): Call that.
709 * locale/localeinfo.h: Declare it.
710 (struct locale_data): Replace member `mmaped' with `alloc', an enum.
711 (struct locale_data): Remove unused member `options'.
712 * locale/findlocale.c (_nl_remove_locale): Update uses.
713 * locale/loadlocale.c (_nl_load_locale, _nl_unload_locale): Likewise.
714 * locale/C-collate.c: Update initializer.
715 * locale/C-identification.c: Likewise.
716 * locale/C-measurement.c: Likewise.
717 * locale/C-telephone.c: Likewise.
718 * locale/C-address.c: Likewise.
719 * locale/C-name.c: Likewise.
720 * locale/C-paper.c: Likewise.
721 * locale/C-time.c: Likewise.
722 * locale/C-numeric.c: Likewise.
723 * locale/C-monetary.c: Likewise.
724 * locale/C-messages.c : Likewise.
725 * locale/C-ctype.c: Likewise.
727 * locale/hashval.h [! LONGBITS]: Include <limits.h> here and
728 use CHAR_BIT instead of BITSPERBYTE.
730 * locale/localeinfo.h (_nl_find_locale, _nl_load_locale,
731 _nl_unload_locale): Add `internal_function attribute_hidden' to decls.
732 * locale/findlocale.c (_nl_find_locale): Add internal_function to defn.
733 (_nl_remove_locale): Likewise.
734 * locale/loadlocale.c (_nl_load_locale, _nl_unload_locale): Likewise.
736 * locale/findlocale.c (_nl_default_locale_path): New variable.
737 (_nl_find_locale): If LOCALE_PATH is null, default to that.
738 * locale/localeinfo.h: Declare it.
739 * locale/setlocale.c (setlocale): Use _nl_default_locale_path
740 in place of LOCALEDIR. If no LOCPATH, pass null to _nl_find_locale.
741 * locale/newlocale.c (__newlocale): Likewise.
743 * misc/err.c (vwarnx, vwarn): Fix typos in libc_hidden_def uses.
744 * inet/rexec.c (rexec_af): Add libc_hidden_def.
745 * sysdeps/generic/morecore.c: Likewise.
746 * signal/allocrtsig.c (__libc_current_sigrtmin): Likewise.
747 (__libc_current_sigrtmax): Likewise.
749 2002-08-08 Roland McGrath <roland@redhat.com>
751 * locale/loadlocale.c (_nl_load_locale): Don't use MAP_INHERIT.
752 * catgets/open_catalog.c (__open_catalog): Likewise.
754 * locale/programs/locarchive.c (INITIAL_NUM_NAMES): Renamed
755 from typo INITIAL_NUM_NANES.
756 (create_archive): Update use.
758 2002-08-08 Ulrich Drepper <drepper@redhat.com>
760 * sysdeps/unix/sysv/linux/sigwait.c: New file.
762 2002-08-08 Roland McGrath <roland@frob.com>
764 * resolv/netdb.h: Don't declare h_errno as a plain global any more.
766 2002-08-08 Jakub Jelinek <jakub@redhat.com>
768 * sysdeps/wordsize-64/wcstol_l.c (wcstoll_l): Define to something
769 else and undefine after including wcstol_l.c.
770 * sysdeps/wordsize-64/wcstoul_l.c (wcstoull_l): Similarly.
772 2002-08-08 Ulrich Drepper <drepper@redhat.com>
774 * gmon/gmon.c (write_gmon): Use O_NOFOLLOW in open calls if available.
776 2002-08-08 Alexandre Oliva <aoliva@redhat.com>
778 * configure.in: Make the test for broken_alias_attribute stricter.
780 2002-05-24 Robert Love <rml@tech9.net>
782 * posix/Makefile (routines): Add sched_getaffinity and
784 * posix/sched.h: Add declarations for sched_getaffinity and
786 * sysdeps/generic/sched_getaffinity.c: New file.
787 * sysdeps/generic/sched_setaffinity.c: New file.
788 * sysdeps/unix/sysv/linux/syscalls.list: Add sched_getaffinity and
791 2002-08-06 Andreas Schwab <schwab@suse.de>
793 * sysdeps/unix/utime.c: If TIMES is NULL pass it through to utimes.
795 2002-08-07 Ulrich Drepper <drepper@redhat.com>
797 * elf/dl-load.c (_dl_map_object_from_fd): Add missing \n in error
800 * stdlib/isomac.c (get_null_defines): Treat NOT_IN_libc special.
801 It is known to be defined.
803 * include/string.h: Define index and rindex only if _ISOMAC is not
806 * elf/rtld.c: Include <errno.h>.
807 * sysdeps/generic/libc-tls.c: Likewise.
809 2002-08-07 Roland McGrath <roland@redhat.com>
811 * resolv/res_debug.c (latlon2ul): Add const to argument type, and use
813 (precsize_aton): Likewise.
815 * inet/getnetgrent_r.c (endnetgrent, __getnetgrent_r): Actually call
816 the static symbols added in the last change (doofus is me).
818 * locale/newlocale.c (__newlocale): Use a bit mask instead of a second
819 loop to notice missing categories in a composite name.
821 * locale/locale.h (LC_CTYPE_MASK, LC_NUMERIC_MASK, LC_TIME_MASK,
822 LC_COLLATE_MASK, LC_MONETARY_MASK, LC_MESSAGES_MASK, LC_ALL_MASK,
823 LC_PAPER_MASK, LC_NAME_MASK, LC_ADDRESS_MASK, LC_TELEPHONE_MASK,
824 LC_MEASUREMENT_MASK, LC_IDENTIFICATION_MASK, LC_ALL_MASK): New macros.
826 2002-08-07 Ulrich Drepper <drepper@redhat.com>
828 * malloc/tst-calloc.c: Add tests for one or both parameters being zero.
830 2002-08-07 Roland McGrath <roland@redhat.com>
832 * sysdeps/i386/dl-machine.h (elf_machine_rel): Add to, don't clobber,
833 unrelocated initial value for DTPOFF32 and TPOFF32 relocs.
834 Reported by Jakub Jelinek <jakub@redhat.com>.
836 2002-08-07 Jakub Jelinek <jakub@redhat.com>
838 * malloc/malloc.c (public_cALLOc): Check ELEM_SIZE != 0 before
841 2002-08-06 Roland McGrath <roland@redhat.com>
843 * include/getopt.h: Put private decls inside [_GETOPT_H].
844 Use libc_hidden_proto for getopt_long, getopt_long_only.
845 * posix/getopt1.c [_LIBC]: Include <getopt.h> instead of "getopt.h".
848 * sysdeps/generic/unwind-dw2-fde-glibc.c [_LIBC] (dl_iterate_phdr):
849 Define as a macro for __dl_iterate_phdr.
851 * inet/getnetgrent_r.c (internal_setnetgrent): Renamed from __ name,
852 made static. Add __ name as a strong alias.
853 (internal_endnetgrent): Likewise.
854 (internal_getnetgrent_r): Likewise.
856 * locale/Versions (libc: GLIBC_2.3): Add all the *_l functions
858 * locale/langinfo.h [__USE_GNU]: Declare nl_langinfo_l.
859 * ctype/ctype.h [__USE_GNU]: Add declarations and macros for
860 all *_l functions with no __ prefix.
861 * wctype/wcfuncs_l.c: Define weak aliases without __ for all fns.
862 * ctype/ctype_l.c: Likewise.
863 * locale/nl_langinfo.c: Likewise.
864 * string/string.h [__USE_GNU]: Add decls for all *_l fns with no __.
865 * stdlib/stdlib.h [__USE_GNU]: Likewise.
866 * wcsmbs/wchar.h [__USE_GNU]: Likewise.
867 * wctype/wctype.h [__USE_GNU]: Likewise.
868 * string/strcoll_l.c (strcoll_l): Define as weak alias.
869 * string/strxfrm_l.c (strxfrm_l): Define as weak alias.
870 * sysdeps/generic/strcasecmp_l.c (strcasecmp_l): Define as weak alias.
871 * sysdeps/generic/strncase_l.c (strncasecmp_l): Define as weak alias.
872 * stdlib/strtod_l.c (strtod_l): Define as weak alias.
873 * stdlib/strtof_l.c (strtof_l): Define as weak alias.
874 * stdlib/strtold_l.c (strtold_l): Define as weak alias.
875 * wcsmbs/wcscasecmp_l.c (wcscasecmp_l): Define as weak alias.
876 (__wcscasecmp_l): Add libc_hidden_def.
877 * wcsmbs/wcsncase_l.c (wcsncasecmp_l): Define as weak alias.
878 (__wcsncasecmp_l): Add libc_hidden_def.
879 * wcsmbs/wcstof_l.c (wcstof_l): Define as weak alias.
880 * wcsmbs/wcstod_l.c (wcstod_l): Define as weak alias.
881 * wcsmbs/wcstold_l.c (wcstold_l): Define as weak alias.
882 * wcsmbs/wcscoll_l.c (wcscoll_l): Define as weak alias.
883 * wcsmbs/wcsxfrm_l.c (wcsxfrm_l): Define as weak alias.
884 * sysdeps/generic/wcstol_l.c (wcstol_l): Define as weak alias.
885 * sysdeps/generic/wcstoll_l.c (wcstoll_l): Define as weak alias.
886 * sysdeps/generic/wcstoul_l.c (wcstoul_l): Define as weak alias.
887 * sysdeps/generic/wcstoull_l.c (wcstoull_l): Define as weak alias.
888 * sysdeps/wordsize-64/wcstol_l.c (wcstoll_l): Define as weak alias.
889 * sysdeps/wordsize-64/wcstoul_l.c (wcstoull_l): Define as weak alias.
890 * wctype/wctrans_l.c (wctrans_l) Define as weak alias.
891 * wctype/towctrans_l.c (towctrans_l) Define as weak alias.
892 * wctype/wctype_l.c (wctype_l) Define as weak alias.
894 2002-08-05 Roland McGrath <roland@redhat.com>
896 * include/rpc/auth.h: Use libc_hidden_proto for getnetname,
897 netname2user, host2netname, user2netname, key_gendes.
898 * sunrpc/netname.c: Add libc_hidden_def.
899 * sunrpc/key_call.c: Likewise.
901 * include/netdb.h: Use libc_hidden_proto for getaddrinfo, getnameinfo,
903 * inet/getnameinfo.c: Add libc_hidden_def.
904 * sysdeps/generic/getaddrinfo.c: Likewise.
905 * sysdeps/posix/getaddrinfo.c: Likewise.
907 * include/wchar.h: Use libc_hidden_proto for wmemchr, wmemset.
908 * wcsmbs/wmemchr.c: Add libc_hidden_def.
909 * wcsmbs/wmemset.c: Add libc_hidden_def.
911 * include/string.h: Move libc_hidden_proto's inside #ifndef _STRING_H.
912 (index, rindex): Define as macros for strchr, strrchr.
914 * string/envz.c (envz_strip): index -> strchr
916 * include/rpc/rpc_msg.h: Use libc_hidden_proto for _seterr_reply.
917 * sunrpc/rpc_prot.c: Add libc_hidden_def.
919 * include/wchar.h: Use libc_hidden_proto for mbrtowc.
920 * wcsmbs/mbrtowc.c: Add libc_hidden_weak.
922 * include/stdlib.h: Use libc_hidden_proto for wctomb.
923 * stdlib/wctomb.c: Add libc_hidden_def.
925 * include/netdb.h: Use libc_hidden_proto for innetgr, rcmd_af,
926 rexec_af, rresvport_af, ruserok_af, iruserok_af, ruserpass, hstrerror.
927 * resolv/herror.c: Likewise.
928 * inet/rcmd.c: Add libc_hidden_def.
929 * inet/ruserpass.c: Likewise.
930 * inet/getnetgrent_r.c: Likewise.
932 * include/rpc/svc.h: Use libc_hidden_proto for svc_register,
933 svc_unregister, remove *_internal decls. Use libc_hidden_proto
934 for svcerr_auth, svcerr_noprog, svcerr_progvers.
935 * sunrpc/svc.c (svc_register, svc_unregister): Change INTDEF to
937 (svcerr_auth, svcerr_noprog, svcerr_progvers): Add libc_hidden_def.
938 * sunrpc/svc_simple.c (registerrpc): Nix INTUSE for svc_register.
940 * sysdeps/posix/system.c (do_system): New function, guts broken out of
942 (__libc_system): Call it, putting just the line == NULL test here.
944 * include/libc-symbols.h (__hidden_proto): Add extern keywords so
945 variables work right.
947 * elf/dl-open.c (dl_open_worker): Use _ macro instead of gettext.
948 * elf/dl-close.c (_dl_close): Likewise.
950 * include/netinet/in.h: Use libc_hidden_proto for bindresvport,
951 in6addr_any, in6addr_loopback. Remove decls for
952 bindresvport_internal, in6addr_any_internal, in6addr_loopback_internal.
953 * sunrpc/svc_udp.c (svcudp_bufcreate): Nix INTUSE for bindresvport.
954 * sunrpc/svc_tcp.c (svctcp_create): Likewise.
955 * sunrpc/clnt_udp.c (clntudp_bufcreate): Likewise.
956 * sunrpc/bindrsvprt.c: Change INTDEF to libc_hidden_def.
957 * inet/in6_addr.c: Change INTVARDEF to libc_hidden_def.
958 * sysdeps/posix/getaddrinfo.c (gaih_inet): Nix INTUSE for
960 * inet/gethstbyad_r.c (PREPROCESS): Nix INTUSE for in6addr_any.
962 * include/netinet/ether.h: Use libc_hidden_proto for ether_ntoa_r,
964 * inet/ether_aton_r.c: Add libc_hidden_def.
965 * inet/ether_ntoa_r.c: Likewise.
967 * include/rpc/svc.h: Use libc_hidden_proto for xprt_register,
969 * sunrpc/svc.c: Add libc_hidden_def.
970 * include/rpc/pmap_clnt.h: Use libc_hidden_proto for pmap_getport,
971 pmap_set, pmap_unset.
972 * sunrpc/pmap_clnt.c: Add libc_hidden_def.
973 * sunrpc/pm_getport.c: Likewise.
974 * include/rpc/auth_des.h: Use libc_hidden_proto for getpublickey.
975 * sunrpc/publickey.c: Add libc_hidden_def.
977 2002-08-05 Ulrich Drepper <drepper@redhat.com>
979 * elf/rtld.c (_dl_start): Don't use memset. Use same tricks as for
980 the other memset call in this function.
982 * sysdeps/generic/dl-tls.c (_dl_allocate_tls_init): Store dtv pointer
983 at correct index. Clear BSS region now that memalign is used.
985 2002-08-05 Roland McGrath <roland@redhat.com>
987 * include/sys/utsname.h: Use libc_hidden_proto for uname, __uname.
988 * sysdeps/generic/uname.c: Add libc_hidden_def.
989 * sysdeps/mach/hurd/uname.c: Likewise.
991 2002-08-05 Jakub Jelinek <jakub@redhat.com>
993 * include/wchar.h (wcrtomb, wcscmp, wcsftime, wcsspn, wcschr, wcscoll,
994 wcspbrk): Add libc_hidden_proto.
995 * time/strftime.c (my_strftime): Add libc_hidden_def.
996 (strftime): Remove libc_hidden_def.
997 * wcsmbs/wcschr.c (wcschr): Add libc_hidden_def.
998 * wcsmbs/wcspbrk.c (wcspbrk): Likewise.
999 * wcsmbs/wcsspn.c (wcsspn): Likewise.
1000 * wcsmbs/wcscmp.c (wcscmp): Likewise.
1001 * wcsmbs/wcrtomb.c (wcrtomb): Add libc_hidden_weak.
1002 * wcsmbs/wcscoll.c (wcscoll): Likewise.
1004 * include/rpc/rpc.h (__rpc_thread_svc_max_pollfd,
1005 __rpc_thread_svc_pollfd, __rpc_thread_svc_fdset,
1006 __rpc_thread_createerr): Add libc_hidden_proto.
1007 * sunrpc/rpc_thread.c (__rpc_thread_svc_max_pollfd,
1008 __rpc_thread_svc_pollfd, __rpc_thread_svc_fdset,
1009 __rpc_thread_createerr): Add libc_hidden_def.
1011 * include/rpc/clnt.h (clnt_sperrno, clnt_spcreateerror,
1012 clnt_perror, clnt_sperror, _rpc_dtablesize): Add libc_hidden_proto.
1013 * sunrpc/clnt_perr.c (clnt_sperrno, clnt_spcreateerror,
1014 clnt_perror, clnt_sperror): Add libc_hidden_def.
1015 * sunrpc/rpc_dtable.c (_rpc_dtablesize): Likewise.
1017 * include/rpc/des_crypt.h (des_setparity, ecb_crypt, cbc_crypt): Add
1019 * sunrpc/des_crypt.c (ecb_crypt, cbc_crypt): Add libc_hidden_proto.
1020 * sunrpc/des_soft.c (des_setparity): Likewise.
1022 * include/rpc/auth.h (key_encryptsession_pk, key_decryptsession_pk):
1023 Add libc_hidden_proto.
1024 * sunrpc/key_call.c (key_encryptsession_pk, key_decryptsession_pk):
1025 Add libc_hidden_def.
1027 2002-08-05 Roland McGrath <roland@redhat.com>
1029 * sysdeps/generic/ldsodefs.h (struct rtld_global): Replace member
1030 `bool _dl_initial_dtv_malloced' with `void *_dl_initial_dtv'.
1031 * elf/rtld.c (dl_main): Set it to the new dtv for the main thread.
1032 * sysdeps/generic/dl-tls.c (__tls_get_addr): When reallocating the
1033 dtv, check if it matches _dl_initial_dtv; if so, malloc and copy the
1034 old data, abandoning the original memory allocated by rtld at startup,
1035 instead of calling realloc normally.
1037 2002-08-05 Ulrich Drepper <drepper@redhat.com>
1039 * po/fr.po: Update from translation team.
1041 2002-08-04 Roland McGrath <roland@redhat.com>
1043 * sysdeps/unix/make-syscalls.sh: If the syscall name field is -
1044 then generate a dummy module under the given name, obeying the
1045 normal rules for the "caller" field.
1047 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Make the phdr loop
1048 actually iterate over the elements. Fix typo p_type -> p_vaddr.
1050 * include/pthread.h: Don't declare __pthread_initialize_minimal as
1051 weak here; we declare it weak or strong in the one place we use it.
1052 * sysdeps/generic/libc-start.c: ... which is here.
1053 Don't make the decl weak if [USE_TLS], since static programs need TLS
1054 setup even when single-threaded.
1056 * stdlib/isomac.c (fmt): Add -DNOT_IN_libc to the compiler command.
1058 * elf/Makefile (test-srcs): Add $(modules-names) to it.
1059 (CFLAGS-vismod2.c, CFLAGS-failobj.c, CFLAGS-constload2.c,
1060 CFLAGS-reldepmod3.c, CFLAGS-reldepmod4.c, CFLAGS-ltglobmod2.c): Remove
1061 all these variables.
1063 2002-08-04 Ulrich Drepper <drepper@redhat.com>
1065 * include/stdio.h: Don't define macro magic to redirect function
1066 calls if _ISOMAC is defined.
1068 * sysdeps/i386/fpu/libm-test-ulps: Add epsilons for inlined
1071 2002-08-04 Roland McGrath <roland@redhat.com>
1073 * stdlib/lrand48_r.c: Add libc_hidden_def.
1075 * sysdeps/generic/dl-tls.c (_dl_allocate_tls_storage): Allocate the
1076 TCB with __libc_memalign instead of mmap.
1077 (_dl_deallocate_tls): Free it with free instead of munmap.
1079 * Makerules (cpp-srcs-left): When setting this to run
1080 cppflags-iterator.mk, must append .c to $(tests) and $(xtests)
1081 words. Combine the two loops into one on the concatenated list,
1082 including those as well as $(test-srcs).
1084 * elf/dl-minimal.c (__libc_memalign): Guts of malloc moved here,
1085 since we align here with optimally minimal waste anyway.
1086 (malloc): Just call that.
1088 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Set l_tls_offset to
1091 * elf/dl-load.c (_dl_map_object_from_fd): Use p_vaddr, not p_offset,
1092 to compute memory location for l_tls_initimage.
1093 * elf/rtld.c (_dl_start): Likewise.
1094 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Likewise.
1096 * libio/oldiopopen.c: Move #include's before #if SHLIB_COMPAT,
1097 because the .d file is generated in the non-shared case and
1098 so fails to catch them otherwise.
1100 * sysdeps/generic/dl-tls.c (_dl_allocate_tls_storage): New function,
1101 split out of _dl_allocate_tls.
1102 (_dl_allocate_tls_init): Likewise.
1103 (_dl_allocate_tls): Call those.
1104 * sysdeps/generic/ldsodefs.h: Declare them with attribute_hidden.
1105 * elf/rtld.c (dl_main): Call them separately instead of calling
1106 _dl_allocate_tls. Delay _dl_allocate_tls_init until after relocation
1107 is finished, so that the initializer data has been relocated before we
1108 copy it into the main thread's TLS block.
1110 * sysdeps/generic/dl-tls.c (_dl_allocate_tls): Fix off-by-one error in
1111 loop conditions, prevented the last used module from being initialized.
1113 2002-08-04 Jakub Jelinek <jakub@redhat.com>
1115 * sysdeps/generic/glob.c (glob, globfree): Only use libc_hidden_def
1116 if glob resp. globfree are not macros.
1117 * sysdeps/gnu/glob64.c (globfree64): Add libc_hidden_def.
1118 * sysdeps/unix/sysv/linux/alpha/glob.c (glob, globfree, globfree64):
1119 Add libc_hidden_ver.
1120 * sysdeps/unix/sysv/linux/i386/glob64.c (globfree64): Add
1122 * sysdeps/wordsize-64/glob.c (globfree64): Use libc_hidden_ver
1123 instead of libc_hidden_weak.
1124 * sysdeps/wordsize-64/strtol.c (__strtoll_internal): Use
1125 libc_hidden_ver instead of libc_hidden_def.
1126 * sysdeps/wordsize-64/wcstol.c (__wcstoll_internal): Use
1127 libc_hidden_ver instead of libc_hidden_def.
1128 (wcstoll, wcstoq): Remove libc_hidden_weak.
1129 * sysdeps/wordsize-64/strtol_l.c (____strtoll_l_internal): Add
1131 * sysdeps/wordsize-64/strtoul.c (__strtoull_internal): Add
1133 * sysdeps/wordsize-64/strtoul_l.c (____strtoull_l_internal): Add
1135 * sysdeps/wordsize-64/wcstoul.c (__wcstoull_internal): Add
1138 2002-08-04 Ulrich Drepper <drepper@redhat.com>
1140 * stdio-common/psignal.c: Declare _sys_siglist_internal. Use USEINT
1141 to access _sys_siglist.
1142 * string/strsignal.c: Likewise.
1143 * sysdeps/generic/siglist.c: Add _sys_siglist_internal alias.
1144 * sysdeps/gnu/siglist.c: Likewise.
1145 * sysdeps/unix/siglist.c: Likewise.
1146 * sysdeps/unix/sysv/linux/arm/siglist.c: Likewise.
1148 * libio/fileops.c: Add missing INTUSEs for _IO_file_jumps.
1150 * libio/wfileops.c: Add missing INTUSE for _IO_file_close.
1152 * intl/dcigettext.c: Define _nl_default_dirname_internal as hidden
1154 * intl/bindtextdom.c: Use _nl_default_dirname_internal.
1156 * include/netinet/in.h: Add declaration of in6addr_loopback_internal.
1157 * inet/in6_addr.c: Add INTVARDEF for in6addr_loopback.
1158 * sysdeps/posix/getaddrinfo.c: Use INTUSE for in6addr_loopback access.
1160 * include/time.h: Add libc_hidden_proto for __gmtime_r.
1161 * time/gmtime.c (__gmtime_r): Add libc_hidden_def.
1163 * iconv/Versions: Replace __gconv_alias_db, __gconv_modules_db,
1164 and __gconv_cache with __gconv_get_alias_db, __gconv_get_modules_db,
1165 and __gconv_get_cache respectively.
1166 * iconv/gconv_cache.c (gconv_cache): Renamed for __gconv_cache and
1167 defined static. Change all users.
1168 (__gconv_get_cache): New function.
1169 * iconv/gconv_db.c (__gconv_get_modules_db): New function.
1170 (__gconv_get_alias_db): New function.
1171 * iconv/gconv_int.h (__gconv_alias_db): Declare as hidden.
1172 (__conv_modules_db): Likewise.
1173 Add prototypes for __gconv_get_cache, __gconv_get_modules_db,
1174 and __gconv_get_alias_db.
1175 * iconv/iconv_prog.c: Use the new functions instead of accessing the
1178 * include/stdlib.h: Add prototype and libc_hidden_proto for
1180 * sysdeps/generic/morecore.c: Include <stdlib.h>.
1182 * malloc/obstack.c: Remove fputs macro.
1184 * malloc/mtrace.c: Remove fopen macro.
1186 2002-08-04 Jakub Jelinek <jakub@redhat.com>
1188 * manual/debug.texi: Fix spelling to programmatically.
1189 Reported by <hayastan132@hotmail.com>.
1191 2002-08-04 Ulrich Drepper <drepper@redhat.com>
1193 * include/libio.h: Add libc_hidden_proto for __uflow.
1194 * include/stdio.h: Map fopen, fdopen, fclose, fputs, fsetpos, and
1195 fgetpos to _IO_* names.
1196 Add libc_hidden_proto for fileno, fwrite, fseek, fflush_unlocked,
1197 fread_unlocked, fwrite_unlocked, fgets_unlocked, fputs_unlocked.
1198 * include/wchar.h: Add libc_hidden_proto for fputws_unlocked,
1199 putwc_unlocked, vswscanf.
1200 * libio/iolibio.h: Add libc_hidden_proto for _IO_fputs.
1201 * libio/fileno.c: Use <stdio.h> and libc_hidden_def.
1202 * libio/fseek.c: Likewise.
1203 * libio/fmemopen.c: Include "libioP.h". Call _IO_fopencookie and
1205 * libio/genops.c (__uflow): Add libc_hidden_def.
1206 * libio/iofflush_u.c (fflush_unlocked): Likewise.
1207 * libio/iofgets_u.c (fgets_unlocked): Likewise.
1208 * libio/iofputs_u.c (fputs_unlocked): Likewise.
1209 * libio/iofputws_u.c (fputws_unlocked): Likewise.
1210 * libio/iofread_u.c (fread_unlocked): Likewise.
1211 * libio/iofwrite_u.c (fwrite_unlocked): Likewise.
1212 * libio/iovswscanf.c (vswscanf): Likewise.
1213 * libio/putwc_u.c (putwc_unlocked): Likewise.
1214 * libio/iofputs.c: Use libc_hidden_def instead of INTDEF.
1215 * malloc/malloc.c: Redirect fwrite calls to _IO_fwrite.
1216 * malloc/mtrace.c: Likewise.
1218 * sunrpc/clnt_perr.c: Remove fputs macro.
1219 * sunrpc/svc_simple.c: Likewise.
1220 * sunrpc/svc_tcp.c: Likewise.
1221 * sunrpc/svc_udp.c: Likewise.
1222 * sunrpc/xdr_rec.c: Likewise.
1223 * sunrpc/xdr_ref.c: Likewise.
1225 * iconv/Makefile: Add CPPFLAGS definitions with -DNOT_in_libc for
1226 iconv_prog, linereader, and charmap-dir.
1227 * locale/Makefile: Likewise for locale and charmap-dir.
1228 * malloc/Makefile: Likewise for memusagestat.
1229 * nscd/Makefile: Likewise for nscd, nscd_conf, and dbg_log.
1230 * sunrpc/Makefile: Likewise for rpc_main.
1231 * sysdeps/unix/sysv/linux/Makefile: Likewise for lddlibc4.
1232 * timezone/Makefile: Likewise for zic.
1234 * stdio-common/perror.c: Avoid multiple calls to fileno_unlocked.
1236 * elf/dl-addr.c (_dl_addr): Add libc_hidden_def.
1237 * elf/dl-close.c (_dl_close): Add libc_hidden_def.
1238 * elf/dl-open.c (_dl_open): Add libc_hidden_def.
1239 * include/dlfcn.h: Add libc_hidden_proto for _dl_addr, _dl_open,
1242 * include/libio.h: Add libc_hidden_proto for __underflow, __wuflow,
1244 * libio/genops.c (__underflow): Add libc_hidden_def.
1245 * libio/wgenops.c (__wuflow): Likewise.
1246 (__wunderflow): Likewise.
1248 * include/obstack.h: Add libc_hidden_proto for _obstack_newchunk.
1249 * malloc/obstack.c (_obstack_newchunk): Add libc_hidden_def.
1251 * include/stdio.h: Add libc_hidden_proto for __vfscanf.
1252 * stdio-common/vfscanf.c (__vfscanf): Add libc_hidden_def.
1254 * include/string.h: Add libc_hidden_proto for __strverscmp.
1255 * string/strverscmp.c (__strverscmp): Add libc_hidden_def.
1257 * include/unistd.h: Add libc_hidden_proto for __sysconf.
1258 * sysdeps/generic/sysconf.c (__sysconf): Add libc_hidden_def.
1259 * sysdeps/posix/sysconf.c: Likewise.
1260 * sysdeps/unix/sysv/irix4/sysconf.c: Likewise.
1261 * sysdeps/unix/sysv/sysv4/sysconf.c: Likewise.
1263 * include/wctype.h: Use libc_hidden_proto for __iswctype, __iswalnum_l,
1264 __iswalpha_l, __iswblank_l, __iswcntrl_l, __iswdigit_l, __iswlower_l,
1265 __iswgraph_l, __iswprint_l, __iswpunct_l, __iswspace_l, __iswupper_l,
1266 __iswxdigit_l, __towlower_l, __towupper_l.
1267 * wcsmbs/wcstype.c (__iswctype): Use libc_hidden_def.
1268 * wcsmbs/wcfuncs_l.c: Use libc_hidden_def for all functions.
1270 * include/sys/wait.h: Add libc_hidden_proto for __xmknod.
1271 * sysdeps/generic/xmknod.c (__xmknod): Add libc_hidden_def.
1272 * sysdeps/mach/hurd/xmknod.c: Likewise.
1273 * sysdeps/unix/xmknod.c: Likewise.
1274 * sysdeps/unix/sysv/linux/xmknod.c: Likewise.
1275 * sysdeps/unix/sysv/linux/alpha/xmknod.c: Likewise.
1276 * sysdeps/unix/sysv/linux/mips/xmknod.c: Likewise.
1278 * sunrpc/svc.c: Add missing INTUSE for _authenticate.
1280 2002-08-03 Roland McGrath <roland@redhat.com>
1282 * include/sys/resource.h: Use libc_hidden_proto for getpriority,
1284 * sysdeps/unix/sysv/linux/getpriority.c: Add libc_hidden_def.
1285 * sysdeps/unix/sysv/irix4/getpriority.c: Likewise.
1286 * sysdeps/unix/sysv/irix4/setpriority.c: Likewise.
1287 * sysdeps/mach/hurd/setpriority.c: Likewise.
1288 * sysdeps/mach/hurd/getpriority.c: Likewise.
1289 * sysdeps/generic/setpriority.c: Likewise.
1290 * sysdeps/generic/getpriority.c: Likewise.
1292 * include/mcheck.h: Use libc_hidden_proto for mcheck_check_all.
1293 * malloc/mcheck.c: Add libc_hidden_def.
1295 * include/search.h: Use libc_hidden_proto for hcreate_r, hdestroy_r.
1296 * misc/hsearch_r.c: Add libc_hidden_def.
1298 * include/fnmatch.h: Use libc_hidden_proto for fnmatch.
1299 * posix/fnmatch.c: Add libc_hidden_weak.
1301 * include/unistd.h: Use libc_hidden_proto for _exit, alarm, confstr,
1302 execl, execle, execlp, execvp, getpid, getsid.
1303 * sysdeps/generic/alarm.c: Add libc_hidden_def.
1304 * sysdeps/unix/alarm.c: Likewise.
1305 * posix/confstr.c: Likewise.
1306 * posix/execvp.c: Likewise.
1307 * posix/execlp.c: Likewise.
1308 * posix/execle.c: Likewise.
1309 * posix/execl.c: Likewise.
1310 * sysdeps/generic/getsid.c: Likewise.
1311 * sysdeps/mach/hurd/getsid.c: Likewise.
1312 * sysdeps/generic/getpid.c: Add libc_hidden_weak.
1313 * sysdeps/mach/hurd/getpid.c: Likewise.
1315 * include/stdlib.h: Use libc_hidden_proto for ecvt_r, fcvt_r,
1316 qecvt_r, qfcvt_r, lrand48_r.
1317 * misc/efgcvt_r.c: Add libc_hidden_def.
1319 * include/wordexp.h: Use libc_hidden_proto for wordfree.
1320 * sysdeps/generic/wordexp.c: Add libc_hidden_def.
1322 * include/langinfo.h: Use libc_hidden_proto for nl_langinfo.
1323 * locale/nl_langinfo.c: Add libc_hidden_def.
1325 * include/glob.h: Use libc_hidden_proto for glob, globfree, globfree64.
1326 * sysdeps/generic/glob.c: Add libc_hidden_def.
1327 * sysdeps/generic/glob64.c: Likewise.
1328 * sysdeps/wordsize-64/glob.c (globfree64): Add libc_hidden_weak.
1330 * locale/nl_langinfo.c: Use _NL_CURRENT_DATA.
1332 * elf/Makefile (CFLAGS-vismod2.c): New variable.
1334 * locale/setlocale.c (_nl_current_names): Variable moved ...
1335 * locale/localename.c (_nl_current_names): ... here, new file.
1336 Make it global, with attribute_hidden.
1337 * locale/localeinfo.h: Declare it.
1338 * locale/Makefile (aux): Add localename.
1339 * locale/localename.c (__current_locale_name): New function.
1340 * include/locale.h (__current_locale_name): Declare it.
1341 * intl/dcigettext.c (guess_category_value): Use that instead of
1344 * locale/locale.h [__USE_GNU] (locale_t): New type alias of __locale_t.
1345 [__USE_GNU] (newlocale, duplocale, freelocale, uselocale): New decls.
1346 [__USE_GNU] (LC_GLOBAL_LOCALE): New macro.
1347 * locale/newlocale.c: Add alias to __ name.
1348 * locale/duplocale.c: Likewise.
1349 * locale/freelocale.c: Likewise.
1350 * locale/uselocale.c: New file.
1351 * locale/Makefile (routines): Add it.
1352 * locale/Versions (libc: GLIBC_2.3): New set.
1353 Add newlocale, duplocale, freelocale, uselocale.
1354 (libc: GLIBC_PRIVATE): Add __uselocale.
1356 * locale/localeinfo.h [SHARED]
1357 (_NL_CURRENT_LOCALE): New macro, defined to fetch a tsd value.
1358 (_NL_CURRENT_DATA): Define using that.
1359 (_NL_CURRENT, _NL_CURRENT_WSTR, _NL_CURRENT_WORD): Define using that.
1360 (_NL_CURRENT_DEFINE): Define to empty.
1361 [! SHARED]: Decls of _nl_current_CATEGORY and _nl_current
1362 conditionalized on this.
1363 * locale/xlocale.c (NL_C_INTIIALIZER): New macro,
1364 taking initializer of _nl_C_locobj.
1365 [SHARED] (_nl_global_locale): New variable, using that initializer.
1366 (_nl_C_locobj): Use new macro for initialzier.
1367 * locale/setlocale.c [! SHARED] (_nl_current): Conditionalize on this.
1368 [! SHARED] (CATEGORY_USED): New macro.
1369 [SHARED] (CATEGORY_USED, _nl_C): New macros.
1370 (setdata, setlocale): Use that macro instead of examining _nl_current.
1371 (setdata): Set the slot in _nl_global_locale.
1372 Conditionalize setting of _nl_current on [! SHARED].
1373 * locale/findlocale.c [SHARED] (_nl_C): Define as a macro instead of
1374 declaration as an extern.
1375 * locale/newlocale.c (__newlocale): Use _nl_C_locobj instead of _nl_C.
1377 * include/locale.h: Use libc_hidden_proto for setlocale.
1378 * locale/setlocale.c: Add libc_hidden_def.
1380 * locale/setlocale.c (free_mem): Use _NL_CURRENT_DATA.
1382 * include/search.h: Use libc_hidden_proto for hsearch_r, lfind.
1383 * misc/hsearch_r.c: Add libc_hidden_def.
1384 * misc/lsearch.c: Likewise.
1386 * include/ttyent.h: Use libc_hidden_proto for getttyent, setttyent,
1388 * misc/getttyent.c: Add libc_hidden_def.
1390 * include/mcheck.h: Use libc_hidden_proto for mcheck.
1391 * malloc/mcheck.c: Add libc_hidden_def.
1393 * include/envz.h: Use libc_hidden_proto for envz_entry, enz_remove.
1394 * include/argz.h: Use libc_hidden_proto for argz_delete.
1395 * string/argz-delete.c: Add libc_hidden_def.
1396 * string/envz.c: Likewise. Use <envz.h>, not "envz.h".
1398 * sysdeps/unix/sysv/linux/x86_64/clone.S (thread_start): Use
1399 HIDDEN_JUMPTARGET for _exit.
1400 * sysdeps/unix/sysv/linux/m68k/clone.S (thread_start): Likewise.
1401 * sysdeps/unix/sysv/linux/i386/clone.S (thread_start): Likewise.
1402 * sysdeps/unix/sysv/linux/powerpc/clone.S: Likewise.
1403 * sysdeps/unix/_exit.S (_exit): Add libc_hidden_def.
1405 * include/libc-symbols.h: Fix [__ASSEMBLY__] -> [__ASSEMBLER__].
1406 [__ASSEMBLER__] (hidden_weak): Define using hidden_def, or to empty.
1407 [__ASSEMBLER__] (HIDDEN_JUMPTARGET): New macro.
1408 * sysdeps/unix/sysv/linux/i386/makecontext.S: Use it for exit.
1410 * include/stdlib.h: Use libc_hidden_proto for abort,
1411 __strtof_internal, __strtod_internal, __strtold_internal,
1412 __strtol_internal, __strtoll_internal, __strtoul_internal,
1413 __strtoull_internal. __strtof_l_internal, __strtod_l_internal,
1414 __strtold_l_internal, __strtol_l_internal, __strtoll_l_internal,
1415 __strtoul_l_internal, __strtoull_l_internal.
1416 * include/wchar.h: Use libc_hidden_proto for __wcstof_internal,
1417 __wcstod_internal, __wcstold_internal, __wcstol_internal,
1418 __wcstoll_internal, __wcstoul_internal, ____wcstof_l_internal,
1419 ____wcstod_l_internal, ____wcstold_l_internal, ____wcstol_l_internal,
1420 ____wcstoll_l_internal, ____wcstoul_l_internal, __wcscasecmp_l,
1422 * sysdeps/generic/abort.c: Add libc_hidden_def.
1423 * stdlib/strtod.c: Likewise.
1424 * sysdeps/generic/strtol.c: Likewise.
1425 * sysdeps/wordsize-64/strtol.c: Likewise.
1426 * sysdeps/wordsize-64/wcstol.c: Likewise.
1427 * sysdeps/wordsize-64/wcstol_l.c: Likewise.
1429 * include/stdlib.h: Use libc_hidden_proto for qsort.
1430 * stdlib/msort.c: Add libc_hidden_def.
1432 * include/utime.h: Use libc_hidden_proto for utime.
1433 * sysdeps/generic/utime.c: Add libc_hidden_def.
1434 * sysdeps/unix/utime.c: Likewise.
1436 * sysdeps/generic/utmp_file.c (LOCK_FILE): sigemptyset -> __sigemptyset
1437 * sysdeps/posix/profil.c (__profil): sigfillset -> __sigfillset
1438 * sysdeps/posix/sprofil.c (__sprofil): Likewise.
1439 * shadow/lckpwdf.c (__lckpwdf): Likewise (both).
1440 * sysdeps/posix/spawni.c (__spawni): sigismember -> __sigismember
1442 * include/signal.h: Use libc_hidden_proto for raise, sigemptyset,
1443 sigfillset, sigismember, __sigpause, __libc_current_sigrtmin,
1444 and __libc_current_sigrtmax.
1445 * signal/sigismem.c: Add libc_hidden_def.
1446 * signal/sigfillset.c: Likewise.
1447 * signal/sigempty.c: Likewise.
1448 * sysdeps/generic/sigpause.c (__sigpause): Likewise.
1449 * sysdeps/posix/sigpause.c (__sigpause): Likewise.
1450 * sysdeps/unix/bsd/osf/alpha/sigpause.S: Likewise.
1451 * sysdeps/posix/raise.c: Likewise.
1452 * sysdeps/generic/raise.c: Likewise.
1454 2002-08-03 Ulrich Drepper <drepper@redhat.com>
1456 * include/string.h: Use libc_hidden_proto for __stpcpy.
1457 * sysdeps/alpha/stpcpy.S (__stpcpy): Add libc_hidden_def.
1458 * sysdeps/alpha/alphaev67/stpcpy.S: Likewise.
1459 * sysdeps/generic/stpcpy.c: Likewise.
1460 * sysdeps/i386/stpcpy.S: Likewise.
1461 * sysdeps/i386/i586/stpcpy.S: Likewise.
1462 * sysdeps/powerpc/stpcpy.S: Likewise.
1463 * sysdeps/sparc/sparc32/stpcpy.S: Likewise.
1464 * sysdeps/sparc/sparc64/stpcpy.S: Likewise.
1466 * include/string.h: Use libc_hidden_proto for __strcasecmp_l,
1467 __strncasecmp_l, __strdup, __strndup, __strerror_r.
1468 * sysdeps/generic/strcasecmp_l.c (__strcasecmp_l): Add
1470 * string/strdup.c (__strdup): Likewise.
1471 * string/strndup.c (__strndup): Likewise.
1472 * sysdeps/generic/_strerror.c (__strerror_r): Likewise.
1473 * sysdeps/generic/strncase_l.c (__strncasecmp_l): Likewise.
1475 2002-08-03 Jakub Jelinek <jakub@redhat.com>
1477 * include/libio.h: New file.
1478 * libio/libioP.h (__overflow, __woverflow): Remove libc_hidden_proto.
1479 * libio/iolibio.h: #include <libio.h>, not "libio.h".
1480 * sysdeps/generic/morecore.c (__sbrk): Add libc_hidden_proto.
1481 * sysdeps/unix/bsd/syscalls.list: Remove all __GI_* aliases.
1482 * sysdeps/unix/common/syscalls.list: Likewise.
1483 * sysdeps/unix/inet/syscalls.list: Likewise.
1484 * sysdeps/unix/sysv/irix4/syscalls.list: Likewise.
1485 * sysdeps/unix/sysv/linux/alpha/syscalls.list: Likewise.
1486 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
1487 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
1488 * sysdeps/unix/sysv/linux/hppa/syscalls.list: Likewise.
1489 * sysdeps/unix/sysv/linux/mips/syscalls.list: Likewise.
1490 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
1491 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
1492 * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
1493 * sysdeps/unix/sysv/sysv4/solaris2/syscalls.list: Likewise.
1494 * sysdeps/unix/syscalls.list: Likewise.
1496 2002-08-03 Jakub Jelinek <jakub@redhat.com>
1497 Ulrich Drepper <drepper@redhat.com>
1499 * malloc/malloc.c (public_cALLOc): Only divide if at least one of
1500 the arguments is big enough to cause an overflow.
1502 2002-08-03 Ulrich Drepper <drepper@redhat.com>
1504 * assert/assert.c: Use hidden_def not INTDEF.
1506 2002-08-03 Jakub Jelinek <jakub@redhat.com>
1508 * include/libc-symbols.h: Optimize if HAVE_BROKEN_ALIAS_ATTRIBUTE is
1511 2002-08-03 Roland McGrath <roland@redhat.com>
1513 * include/sys/syslog.h: Use libc_hidden_proto for syslog, vsyslog.
1514 * include/err.h: Use libc_hidden_proto for warn, warnx, vwarn, vwarn,
1516 * include/stdlib.h: Use libc_hidden_proto for exit, getenv, bsearch.
1517 * misc/syslog.c: Add libc_hidden_def.
1518 * misc/err.c: Likewise.
1519 * stdlib/exit.c: Likewise.
1520 * stdlib/bsearch.c: Likewise.
1521 * sysdeps/generic/getenv.c: Likewise.
1523 * include/libc-symbols.h (hidden_weak): Define it for [__ASSEMBLER__].
1525 * sysdeps/unix/make-syscalls.sh: Generate libc_hidden_def or
1526 libc_hidden_weak for every system call symbol defined.
1528 * include/time.h: Use libc_hidden_proto for time, asctime, mktime,
1529 timelocal, localtime, strftime.
1530 * time/asctime.c: Add libc_hidden_def.
1531 * time/mktime.c: Likewise.
1532 * time/localtime.c: Likewise.
1533 * time/strftime.c: Likewise.
1534 * time/strptime.c: Likewise.
1535 * sysdeps/generic/time.c: Likewise.
1536 * sysdeps/unix/time.c: Likewise.
1537 * sysdeps/unix/sysv/i386/time.S: Likewise.
1538 * sysdeps/unix/sysv/linux/x86_64/time.S: Likewise.
1540 * include/arpa/inet.h: Use libc_hidden_proto for inet_ntop, inet_pton.
1541 inet_makeaddr, inet_netof, inet_addr, __inet_addr.
1542 * resolv/inet_ntop.c: Likewise.
1543 * resolv/inet_pton.c: Likewise.
1544 * inet/inet_mkadr.c: Add libc_hidden_def.
1545 * inet/inet_netof.c: Likewise.
1546 * resolv/inet_addr.c: Likewise.
1548 * include/libc-symbols.h: Remove `defined HAVE_BROKEN_ALIAS_ATTRIBUTE'
1549 clauses from conditionals for now. Will have to be fixed later
1550 for older compilers.
1552 * sysdeps/generic/mempcpy.c (__mempcpy): #undef it before defn.
1554 2002-08-02 Ulrich Drepper <drepper@redhat.com>
1556 * configure.in (HAVE_BROKEN_ALIAS_ATTRIBUTE): Add check for
1557 broken alias attribute handling.
1558 * config.h.in (HAVE_BROKEN_ALIAS_ATTRIBUTE): Add.
1560 2002-08-02 Roland McGrath <roland@frob.com>
1562 * elf/Makefile ($(objpfx)interp.os): Depend on config.make,
1563 since it sets the variables we use in a -D switch.
1565 2002-08-02 Roland McGrath <roland@redhat.com>
1567 * posix/bits/posix1_lim.h (SSIZE_MAX): Define to LONG_MAX, not INT_MAX.
1568 On 32-bit platforms they are the same; on 64-bit platforms ssize_t
1569 matches long int, not int.
1571 * locale/localeinfo.h (_NL_CURRENT_DATA): New macro.
1572 * wcsmbs/wcsmbsload.h (update_conversion_ptrs): Use it.
1573 * locale/lc-ctype.c (_nl_postload_ctype): Likewise.
1574 * wctype/wctrans.c (wctrans): Likewise.
1575 * wctype/wctype.c (__wctype): Likewise.
1576 * intl/loadmsgcat.c (_nl_init_domain_conv): Use _NL_CURRENT.
1578 2002-08-02 Ulrich Drepper <drepper@redhat.com>
1580 * assert/assert.c (__assert_fail): Fix typo in comment.
1582 * include/rpc/rpc.h: Declare RPC_VARS tsd as extern.
1583 * sunrpc/rpc_thread.c: Define it without static.
1584 * sunrpc/Versions [libc] (GLIBC_PRIVATE): Export __libc_tsd_RPC_VARS.
1586 2002-08-02 Jakub Jelinek <jakub@redhat.com>
1588 * assert/assert.c (__assert_fail): Remove undef.
1589 Replace INTDEF with libc_hidden_def.
1590 * assert/__assert.c (__assert): Remove INTUSE.
1591 * elf/dl-minimal.c (__assert_fail): Replace INTDEF with
1593 * include/libc-symbols.h (hidden_proto, hidden_def, hidden_weak,
1594 hidden_ver, libc_hidden_proto, libc_hidden_def, libc_hidden_weak,
1595 libc_hidden_ver, rtld_hidden_proto, rtld_hidden_def, rtld_hidden_weak,
1596 rltd_hidden_ver, libm_hidden_proto, libm_hidden_def, libm_hidden_weak,
1597 libm_hiden_ver): Define.
1598 * include/assert.h (__assert_fail_internal): Remove.
1599 (__assert_fail): Add prototype. Add hidden_proto.
1600 * include/libc-internal.h (__libc_freeres, __profile_frequency): Add
1602 * include/wchar.h (__mbrtowc_internal, __mbrlen_internal): Remove.
1603 (__mbrtowc, __mbrlen): Use libc_hidden_proto. Remove macros.
1604 * include/string.h (__mempcpy, __stpncpy, __rawmemchr, __strcasecmp):
1605 Add libc_hidden_proto.
1606 * include/fcntl.h (__open64, __libc_open, __libc_fcntl, __open,
1607 __fcntl): Add libc_hidden_proto. Remove macros.
1608 (__open_internal, __fcntl_internal): Remove.
1609 * libio/iofdopen.c (_IO_fcntl): Remove INTUSE from __fcntl.
1610 * malloc/set-freeres.c (__libc_freeres): Add libc_hidden_def.
1611 * nss/nsswitch.h (__nss_database_lookup, __nss_next): Add
1613 * nss/nsswitch.c (__nss_database_lookup, __nss_next): Add
1615 * sysdeps/generic/mempcpy.c (__mempcpy): Remove undef.
1616 Add libc_hidden_def.
1617 * sysdeps/generic/open64.c (__open64): Add libc_hidden_def.
1618 * sysdeps/generic/open.c (__open): Remove undef.
1619 Add libc_hidden_def. Remove INTDEF.
1620 * sysdeps/generic/fcntl.c (__fcntl): Remove undef.
1621 Add libc_hidden_def.
1622 * sysdeps/mach/hurd/fcntl.c (__fcntl): Likewise.
1623 * sysdeps/i386/i586/mempcpy.S (__mempcpy): Add libc_hidden_def.
1624 * sysdeps/i386/i686/mempcpy.S (__mempcpy): Likewise.
1625 * sysdeps/mach/hurd/fcntl.c (__libc_fcntl, __fcntl): Remove undef.
1626 (__fcntl): Remove INTDEF2. Add libc_hidden_weak.
1627 (__libc_fcntl): Add libc_hidden_def.
1628 * sysdeps/mach/hurd/open.c (__libc_open, __open): Remove undef.
1629 (__open): Remove INTDEF2. Add libc_hidden_weak.
1630 (__libc_open): Add libc_hidden_def.
1631 * sysdeps/posix/open64.c (__open64): Add libc_hidden_weak.
1632 * sysdeps/standalone/open.c (__open): Add libc_hidden_def.
1633 * sysdeps/unix/sysv/aix/fcntl.c (__libc_fcntl, __fcntl): Remove undef.
1634 Add libc_hidden_def.
1635 * sysdeps/unix/sysv/aix/open.c (__libc_open, __open): Remove undef.
1636 Add libc_hidden_def.
1637 * sysdeps/unix/sysv/linux/i386/fcntl.c (__libc_fcntl, __fcntl): Remove
1639 (__fcntl): Remove INTDEF2. Add libc_hidden_weak.
1640 (__libc_fcntl): Add libc_hidden_def.
1641 * sysdeps/unix/sysv/linux/syscalls.list (__fcntl_internal,
1642 __getpgid_internal, __chown_internal): Remove.
1643 (__GI___fcntl, __GI___libc_fcntl, __GI___getpgid, __GI___pipe,
1644 __GI___sched_setscheduler, __GI___select, __GI___setpgid,
1646 * sysdeps/unix/syscalls.list (__close_internal, __dup2_internal,
1647 __getpid_internal, __open_internal, __write_internal): Remove.
1648 (__GI___fcntl, __GI___libc_fcntl, __GI___open, __GI___libc_open,
1649 __GI___chown, __GI___close, __GI___dup2, __GI___getpid,
1650 __GI___libc_open, __GI___open, __GI___read, __GI___libc_read,
1651 __GI___select, __GI___statfs, __GI___write, __GI___libc_write): Add.
1652 * wcsmbs/mbrlen.c (__mbrlen): Remove undef.
1653 Replace INTDEF with libc_hidden_def.
1654 * wcsmbs/mbrtowc.c (__mbrtowc): Likewise.
1655 * catgets/catgetsinfo.h (__open_catalog): Add libc_hidden_proto.
1656 * catgets/open_catalog.c (__open_catalog): Add libc_hidden_def.
1657 * elf/dl-profile.c (__profile_frequency): Add libc_hidden_proto.
1658 * include/rpc/rpc.h (__rpc_thread_svc_fdset, __rpc_thread_createerr):
1659 Add libc_hidden_proto.
1660 * include/sys/poll.h (__poll): Add libc_hidden_proto.
1661 * include/sys/select.h (__select): Likewise.
1662 * include/sys/socket.h (__send): Likewise.
1663 * include/sys/statfs.h (__statfs): Likewise.
1664 * include/unistd.h (__pwrite64, __libc_read, __pipe, __chown, __dup2,
1665 __getpid, __getpgid, __setpgid, __close, __read, __write,
1666 __getpagesize, __sbrk): Likewise.
1667 (__chown_internal, __dup2_internal, __getpid_internal,
1668 __getpgid_internal, __close_internal, __write_internal,
1669 __getpagesize_internal): Remove.
1670 (__close, __dup2, __getpagesize, __getpgid, __getpid, __libc_write):
1672 * include/printf.h (__printf_fp): Add libc_hidden_proto.
1673 * include/sched.h (__sched_setscheduler): Likewise.
1674 * include/resolv.h (__res_ninit, __res_randomid): Likewise.
1675 * include/stdlib.h (__secure_getenv): Likewise.
1676 * include/signal.h (__sigaction, __sigsuspend): Likewise.
1677 * inet/getaliasent_r.c (NSS_attribute_hidden): Remove.
1678 * inet/getaliasname_r.c (NSS_attribute_hidden): Remove.
1679 * inet/getnetbyad_r.c (NSS_attribute_hidden): Remove.
1680 * inet/getnetbynm_r.c (NSS_attribute_hidden): Remove.
1681 * inet/getnetent_r.c (NSS_attribute_hidden): Remove.
1682 * inet/getproto_r.c (NSS_attribute_hidden): Remove.
1683 * inet/getprtent_r.c (NSS_attribute_hidden): Remove.
1684 * inet/getprtname_r.c (NSS_attribute_hidden): Remove.
1685 * inet/getrpcbyname_r.c (NSS_attribute_hidden): Remove.
1686 * inet/getrpcbynumber_r.c (NSS_attribute_hidden): Remove.
1687 * inet/getrpcent_r.c (NSS_attribute_hidden): Remove.
1688 * inet/getservent_r.c (NSS_attribute_hidden): Remove.
1689 * inet/getsrvbynm_r.c (NSS_attribute_hidden): Remove.
1690 * inet/getsrvbypt_r.c (NSS_attribute_hidden): Remove.
1691 * inet/gethstbyad_r.c (DB_LOOKUP_FCT): Remove INTUSE.
1692 * inet/gethstbynm2_r.c (DB_LOOKUP_FCT): Likewise.
1693 * inet/gethstbynm_r.c (DB_LOOKUP_FCT): Likewise.
1694 * inet/gethstent_r.c (DB_LOOKUP_FCT): Likewise.
1695 * libio/genops.c (__overflow): Add libc_hidden_def.
1696 * libio/iovdprintf.c: Remove libio.h include.
1697 * libio/libioP.h (libc_hidden_proto, libc_hidden_def,
1698 libc_hidden_weak): Define to nothing if not defined.
1699 (__overflow, __woverflow): Add libc_hidden_proto.
1700 * libio/wgenops.c (__woverflow): Add libc_hidden_def.
1701 * nss/getXXent_r.c (NSS_attribute_hidden): Remove.
1702 (DB_LOOKUP_FCT): Add libc_hidden_proto.
1703 * nss/getXXbyYY_r.c (NSS_attribute_hidden): Remove.
1704 (DB_LOOKUP_FCT): Add libc_hidden_proto.
1705 * nss/XXX-lookup.c (DB_LOOKUP_FCT): Add libc_hidden_proto
1706 and libc_hidden_def.
1707 * nss/hosts-lookup.c (__nss_hosts_lookup): Remove INTDEF.
1708 * posix/bsd-getpgrp.c (__getpgid_internal): Remove.
1709 (__getpgid): Add libc_hidden_proto.
1710 (__bsd_getpgrp): Remove INTUSE.
1711 * resolv/res_init.c (__res_ninit, __res_randomid): Add
1713 * shadow/getspent_r.c (NSS_attribute_hidden): Remove.
1714 * shadow/getspnam_r.c (NSS_attribute_hidden): Remove.
1715 * stdio-common/printf_fp.c (__printf_fp): Add libc_hidden_def.
1716 * stdlib/strfmon.c (__printf_fp): Add libc_hidden_proto.
1717 * stdlib/secure-getenv.c (__secure_getenv): Add libc_hidden_def.
1718 * sunrpc/rpc_thread.c (__rpc_thread_svc_fdset,
1719 __rpc_thread_createerr): Add libc_hidden_def.
1720 * sysdeps/alpha/alphaev67/rawmemchr.S (__rawmemchr): Add
1722 * sysdeps/alpha/alphaev67/stpncpy.S (__stpncpy): Likewise.
1723 * sysdeps/alpha/rawmemchr.S (__rawmemchr): Likewise.
1724 * sysdeps/alpha/stpncpy.S (__stpncpy): Likewise.
1725 * sysdeps/generic/chown.c (__chown): Likewise.
1726 * sysdeps/generic/close.c (__close): Likewise.
1727 * sysdeps/generic/dup2.c (__dup2): Likewise.
1728 * sysdeps/generic/pipe.c (__pipe): Likewise.
1729 * sysdeps/generic/prof-freq.c (__profile_frequency): Likewise.
1730 * sysdeps/generic/pwrite64.c (__pwrite64): Likewise.
1731 * sysdeps/generic/rawmemchr.c (__rawmemchr): Likewise.
1732 * sysdeps/generic/read.c (__libc_read): Likewise.
1733 (__read): Add libc_hidden_weak.
1734 * sysdeps/generic/sbrk.c (__sbrk): Add libc_hidden_def.
1735 * sysdeps/generic/sched_sets.c (__sched_setscheduler): Likewise.
1736 * sysdeps/generic/select.c (__select): Likewise.
1737 * sysdeps/generic/send.c (__send): Likewise.
1738 * sysdeps/generic/setpgid.c (__setpgid): Likewise.
1739 * sysdeps/generic/sigaction.c (__sigaction): Likewise.
1740 * sysdeps/generic/sigsuspend.c (__sigsuspend): Likewise.
1741 * sysdeps/generic/statfs.c (__statfs): Likewise.
1742 * sysdeps/generic/stpncpy.c (__stpncpy): Likewise.
1743 * sysdeps/generic/strcasecmp.c (__strcasecmp): Likewise.
1744 * sysdeps/generic/getpagesize.c (__getpagesize): Likewise.
1745 Remove undef and INTDEF.
1746 * sysdeps/generic/getpgid.c (__getpgid): Likewise.
1747 * sysdeps/generic/getpid.c (__getpid): Likewise.
1748 * sysdeps/generic/write.c (__libc_write): Likewise.
1749 (__write): Add libc_hidden_weak. Remove undef and INTDEF.
1750 * sysdeps/i386/rawmemchr.S (__rawmemchr): Add libc_hidden_def.
1751 * sysdeps/i386/stpncpy.S (__stpncpy): Likewise.
1752 * sysdeps/m68k/rawmemchr.S (__rawmemchr): Likewise.
1753 * sysdeps/mach/hurd/chown.c (__chown): Likewise. Remove INTDEF.
1754 * sysdeps/mach/hurd/close.c (__close): Add libc_hidden_def.
1755 Remove undef and INTDEF.
1756 * sysdeps/mach/hurd/dup2.c (__dup2): Likewise.
1757 * sysdeps/mach/hurd/getpgid.c (__getpgid): Likewise.
1758 * sysdeps/mach/hurd/getpid.c (__getpid): Likewise.
1759 * sysdeps/mach/getpagesize.c (__getpagesize): Likewise.
1760 * sysdeps/mach/hurd/write.c (__libc_write): Likewise.
1761 (__write): Add libc_hidden_weak. Remove undef and INTDEF.
1762 * sysdeps/mach/hurd/pipe.c: Include unistd.h.
1763 (__pipe): Add libc_hidden_def.
1764 * sysdeps/mach/hurd/dl-sysdep.c (__libc_read, __libc_write): Add
1766 * sysdeps/mach/hurd/poll.c (__poll): Add libc_hidden_def.
1767 * sysdeps/mach/hurd/profil.c (__profile_frequency): Likewise.
1768 * sysdeps/mach/hurd/read.c (__libc_read): Likewise.
1769 (__read): Add libc_hidden_weak.
1770 * sysdeps/mach/hurd/pwrite64.c (__pwrite64): Likewise.
1771 (__libc_pwrite64): Add libc_hidden_def.
1772 * sysdeps/mach/hurd/sbrk.c (__sbrk): Likewise.
1773 * sysdeps/mach/hurd/select.c (__select): Likewise.
1774 * sysdeps/mach/hurd/send.c (__send): Likewise.
1775 * sysdeps/mach/hurd/setpgid.c (__setpgid): Likewise.
1776 * sysdeps/mach/hurd/sigaction.c (__sigaction): Likewise.
1777 * sysdeps/mach/hurd/sigsuspend.c (__sigsuspend): Likewise.
1778 * sysdeps/mach/hurd/statfs.c (__statfs): Likewise.
1779 * sysdeps/posix/dup2.c: Likewise.
1780 Remove undef and INTDEF.
1781 * sysdeps/posix/getpagesize.c (__getpagesize): Likewise.
1782 * sysdeps/posix/pwrite64.c (__libc_pwrite64): Add libc_hidden_def.
1783 (__pwrite64): Add libc_hidden_weak.
1784 * sysdeps/posix/sigsuspend.c (__sigsuspend): Add libc_hidden_def.
1785 * sysdeps/sparc/sparc64/rawmemchr.S (__rawmemchr): Likewise.
1786 * sysdeps/sparc/sparc64/stpncpy.S (__stpncpy): Likewise.
1787 * sysdeps/standalone/close.c (__close): Likewise.
1788 * sysdeps/standalone/write.c (__libc_write): Likewise.
1789 (__write): Add libc_hidden_weak.
1790 * sysdeps/standalone/read.c (__read): Likewise.
1791 (__libc_read): Add libc_hidden_def.
1792 * sysdeps/unix/grantpt.c (grantpt): Remove INTUSE.
1793 * sysdeps/unix/bsd/m68k/pipe.S (__pipe): Add libc_hidden_def.
1794 * sysdeps/unix/bsd/osf/alpha/pipe.S (__pipe): Likewise.
1795 * sysdeps/unix/bsd/vax/pipe.S (__pipe): Likewise.
1796 * sysdeps/unix/bsd/syscalls.list (__GI___getpagesize): Likewise.
1797 * sysdeps/unix/bsd/poll.c (__poll): Likewise.
1798 * sysdeps/unix/bsd/sigaction.c (__sigaction): Likewise.
1799 * sysdeps/unix/bsd/sigsuspend.c (__sigsuspend): Likewise.
1800 * sysdeps/unix/common/syscalls.list (__GI___getpgid, __GI___setpgid,
1801 __GI___sigaction): Add.
1802 * sysdeps/unix/i386/pipe.S (__pipe): Add libc_hidden_def.
1803 * sysdeps/unix/inet/syscalls.list (__GI___send): Add.
1804 * sysdeps/unix/mips/pipe.S (__pipe): Add libc_hidden_def.
1805 * sysdeps/unix/sparc/pipe.S (__pipe): Likewise.
1806 * sysdeps/unix/sysv/irix4/syscalls.list (__GI___getpgid,
1807 __GI___setpgid): Add.
1808 * sysdeps/unix/sysv/aix/chown.c (__chown): Add libc_hidden_def.
1809 Remove undef and INTDEF.
1810 * sysdeps/unix/sysv/aix/getpgid.c (__getpgid): Likewise.
1811 * sysdeps/unix/sysv/aix/write.c (__write, __libc_write): Likewise.
1812 * sysdeps/unix/sysv/aix/close.c (__close): Add libc_hidden_def.
1813 * sysdeps/unix/sysv/aix/getpid.c (__getpid): Likewise.
1814 * sysdeps/unix/sysv/aix/pipe.c (__pipe): Likewise.
1815 * sysdeps/unix/sysv/aix/read.c (__read, __libc_read): Likewise.
1816 * sysdeps/unix/sysv/aix/poll.c (__poll): Likewise.
1817 * sysdeps/unix/sysv/aix/sbrk.c (__sbrk): Likewise.
1818 * sysdeps/unix/sysv/aix/sigaction.c (__sigaction): Likewise.
1819 * sysdeps/unix/sysv/aix/sigsuspend.c (__sigsuspend): Likewise.
1820 * sysdeps/unix/sysv/aix/statfs.c (__statfs): Likewise.
1821 * sysdeps/unix/sysv/aix/select.c (__select): Likewise.
1822 * sysdeps/unix/sysv/aix/setpgid.c (__setpgid): Likewise.
1823 * sysdeps/unix/sysv/linux/alpha/pipe.S (__pipe): Likewise.
1824 * sysdeps/unix/sysv/linux/alpha/syscalls.list (__GI___pwrite64,
1825 __GI___statfs, __GI___send): Add.
1826 * sysdeps/unix/sysv/linux/alpha/select.S (__select): Add
1827 libc_hidden_ver resp. libc_hidden_def.
1828 * sysdeps/unix/sysv/linux/alpha/sigsuspend.S (__sigsuspend): Add
1830 * sysdeps/unix/sysv/linux/ia64/getpagesize.c (__getpagesize):
1831 Likewise. Remove undef and INTDEF.
1832 * sysdeps/unix/sysv/linux/ia64/pipe.S (__pipe): Add libc_hidden_def.
1833 * sysdeps/unix/sysv/linux/ia64/syscalls.list (__GI___pwrite64,
1834 __GI___statfs, __GI___send): Add.
1835 * sysdeps/unix/sysv/linux/ia64/sigaction.c (__sigaction): Add
1837 * sysdeps/unix/sysv/linux/ia64/sigsuspend.c (__sigsuspend):
1839 * sysdeps/unix/sysv/linux/sh/pipe.S (__pipe): Likewise.
1840 * sysdeps/unix/sysv/linux/s390/s390-32/chown.c (__chown): Add
1841 libc_hidden_ver resp. libc_hidden_def.
1842 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list (__GI___pwrite64,
1844 * sysdeps/unix/sysv/linux/s390/s390-64/sigaction.c (__sigaction):
1845 Add libc_hidden_weak.
1846 * sysdeps/unix/sysv/linux/s390/s390-64/sigsuspend.c (__sigsuspend):
1847 Add libc_hidden_def.
1848 * sysdeps/unix/sysv/linux/hppa/syscalls.list (__GI___send): Add.
1849 * sysdeps/unix/sysv/linux/arm/sigaction.c (__sigaction): Add
1851 * sysdeps/unix/sysv/linux/i386/chown.c (__chown): Add libc_hidden_ver
1852 resp. libc_hidden_def.
1853 * sysdeps/unix/sysv/linux/i386/sigaction.c (__sigaction): Add
1855 * sysdeps/unix/sysv/linux/m68k/chown.c (__chown): Likewise. Remove
1857 * sysdeps/unix/sysv/linux/m68k/getpagesize.c (__getpagesize):
1858 Likewise. Remove undef.
1859 * sysdeps/unix/sysv/linux/mips/pwrite64.c (__pwrite64): Add
1861 * sysdeps/unix/sysv/linux/mips/syscalls.list (__GI___send): Add.
1862 * sysdeps/unix/sysv/linux/mips/sigaction.c (__sigaction): Add
1864 * sysdeps/unix/sysv/linux/powerpc/chown.c (__chown): Add
1866 * sysdeps/unix/sysv/linux/powerpc/pwrite64.c (__pwrite64): Likewise.
1867 * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize.c (__getpagesize):
1868 Likewise. Remove undef and INTDEF.
1869 * sysdeps/unix/sysv/linux/sparc/sparc32/pipe.S (__pipe): Add
1871 * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c (__sigaction): Add
1873 * sysdeps/unix/sysv/linux/sparc/sparc64/pipe.S (__pipe): Add
1875 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list
1876 (__GI___pwrite64, __GI___statfs, __GI___select, __GI___send): Add.
1877 * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c (__sigaction): Add
1879 * sysdeps/unix/sysv/linux/sparc/sparc64/sigsuspend.c (__sigsuspend):
1880 Add libc_hidden_def.
1881 * sysdeps/unix/sysv/linux/x86_64/syscalls.list (__GI___pwrite64,
1882 __GI___statfs): Add.
1883 * sysdeps/unix/sysv/linux/x86_64/send.c (__send): Add
1885 * sysdeps/unix/sysv/linux/x86_64/sigaction.c (__sigaction): Likewise.
1886 * sysdeps/unix/sysv/linux/getpagesize.c: Add libc_hidden_def.
1887 Remove undef and INTDEF.
1888 * sysdeps/unix/sysv/linux/poll.c (__poll): Add libc_hidden_def.
1889 * sysdeps/unix/sysv/linux/pwrite64.c (__pwrite64): Add
1891 * sysdeps/unix/sysv/linux/send.S (__send): Likewise.
1892 * sysdeps/unix/sysv/linux/sigaction.c (__sigaction): Add
1894 * sysdeps/unix/sysv/linux/sigsuspend.c (__sigsuspend): Add
1896 * sysdeps/unix/sysv/sco3.2.4/__setpgid.c (__setpgid): Likewise.
1897 * sysdeps/unix/sysv/sco3.2.4/sigaction.S (__sigaction): Likewise.
1898 * sysdeps/unix/sysv/sysv4/solaris2/syscalls.list (__GI___sigaction):
1900 * sysdeps/unix/sysv/sysv4/__getpgid.c (__getpgid): Add
1901 libc_hidden_def. Remove undef and INTDEF.
1902 * sysdeps/unix/sysv/sysv4/getpgid.c (__getpgid): Likewise.
1903 * sysdeps/unix/sysv/sysv4/__setpgid.c (__setpgid): Add
1905 * sysdeps/unix/sysv/sysv4/setpgid.c (__setpgid): Likewise.
1906 * sysdeps/unix/sysv/sysv4/sigaction.c (__sigaction): Likewise.
1907 * sysdeps/unix/sysv/sigaction.c (__sigaction): Likewise.
1908 * sysdeps/unix/getpagesize.c (__getpagesize): Add libc_hidden_def.
1909 Remove undef and INTDEF.
1910 * configure.in (HAVE_BROKEN_VISIBILITY_ATTRIBUTE): Add check for
1911 broken visibility attribute handling.
1912 * config.h.in (HAVE_BROKEN_VISIBILITY_ATTRIBUTE): Add.
1914 2002-08-02 Ulrich Drepper <drepper@redhat.com>
1916 * locale/iso-639.def: Add entries for Venda and Nothern Sotho.
1917 Reported by Dwayne Bailey <dwayne@obsidian.co.za>.
1919 * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr_r): Adapt
1922 2002-06-29 Todd Fries <todd@openbsd.org>
1924 * resolv/gethnamaddr.c (gethostbyaddr): Try ip6.int if ip6.arpa fails.
1926 2002-08-02 Jakub Jelinek <jakub@redhat.com>
1928 * include/errno.h: Don't include tls.h if _ISOMAC is defined.
1930 2002-07-30 Roland McGrath <roland@redhat.com>
1932 * resolv/resolv.h (_res): Define macro unconditionally.
1933 [! _LIBC_REENTRANT] (_res): Move this conditional decl to ...
1934 * include/resolv.h: ... here.
1935 [USE_TLS && HAVE___THREAD] (_res): #undef it and declare
1936 as a __thread variable.
1937 * resolv/res_libc.c [USE_TLS && HAVE___THREAD] (_res): Define it as
1938 a __thread variable instead of a global.
1939 * resolv/res_data.c [_LIBC]: Don't #undef _res.
1941 * include/errno.h: Include <tls.h> to make sure USE_TLS defined by the
1944 * intl/loadmsgcat.c [__GNUC__]: #undef alloca before defining it.
1946 * malloc/malloc.c [_LIBC]: Include <string.h> instead of using local
1947 decls of memset and memcpy.
1949 * sysdeps/generic/sysdep.h (END): Conditionalize on [__ASSEMBLER__].
1950 * sysdeps/unix/sysv/linux/i386/sysdep.h (L): Likewise.
1952 * elf/dl-load.c (_dl_map_object_from_fd): Comment fix.
1954 * sysdeps/generic/bits/libc-tsd.h [USE_TLS && HAVE___THREAD]
1955 (__libc_tsd_define): Define using __thread.
1957 * sunrpc/rpc_thread.c: Use __libc_tsd_define.
1958 (__rpc_thread_variables): Use __libc_tsd_get.
1959 (__rpc_thread_destroy): Use __libc_tsd_get instead of calling
1960 __rpc_thread_variables, which might allocate what we're about to free.
1962 * inet/herrno.c [USE_TLS && HAVE___THREAD] (h_errno): Define as a
1963 thread-local variable.
1964 * resolv/netdb.h (h_errno): Define macro unconditionally.
1965 [_LIBC] (__set_h_errno): Macro moved to ...
1966 * include/netdb.h: ... here.
1967 [USE_TLS && HAVE___THREAD] (h_errno): Declare __thread variable.
1968 [USE_TLS && HAVE___THREAD] (__set_h_errno): Define using that.
1969 [! _LIBC_REENTRANT]: #undef h_errno here.
1971 * include/errno.h: Protect from multiple inclusion.
1973 * misc/sys/select.h (__NFDBITS, __FDELT, __FDMASK): #undef these
1974 before defining them, since Linux's <linux/posix_types.h> might have
1977 2002-08-02 Jakub Jelinek <jakub@redhat.com>
1979 * malloc/malloc.c (public_cALLOc): Check for overflow on
1981 * sunrpc/xdr_array.c (xdr_array): Likewise.
1982 * sunrpc/rpc/types.h (mem_free): Add comment.
1983 Patch by Solar Designer <solar@openwall.com>.
1985 2002-08-02 Jakub Jelinek <jakub@redhat.com>
1987 * sysdeps/unix/sysv/linux/kernel-features.h
1988 (__ASSUME_SET_THREAD_AREA_SYSCALL): Define.
1990 2002-08-01 Roland McGrath <roland@redhat.com>
1992 * libio/fileops.c (_IO_file_sync_mmap): New function.
1993 (_IO_file_jumps_mmap): Use it.
1994 (_IO_file_underflow_mmap): Rewritten. If after EOF or fflush,
1995 repeat the stat check and resize the mapped buffer as necessary.
1997 2002-07-31 Roland McGrath <roland@redhat.com>
1999 * libio/fileops.c (decide_maybe_mmap): New static function.
2000 Code taken from libio/iofopen.c:__fopen_maybe_mmap to try to
2001 mmap the file contents. Then switch the jump tables to the mmap
2002 tables if it worked, or the vanilla file tables if not.
2003 (_IO_file_underflow_maybe_mmap): New function.
2004 (_IO_file_seekoff_maybe_mmap): New function.
2005 (_IO_file_xsgetn_maybe_mmap): New function.
2006 (_IO_file_jumps_maybe_mmap): New variable, jump table using those.
2007 * libio/libioP.h: Declare those.
2008 * libio/wfileops.c (_IO_wfile_underflow_maybe_mmap): New function.
2009 (_IO_wfile_jumps_maybe_mmap): New variable, jump table using that.
2010 * libio/iofopen.c (__fopen_maybe_mmap): Don't try to mmap here.
2011 If the stream is read-only, set its jump tables to those new ones.
2012 * libio/iofdopen.c (_IO_new_fdopen) [_G_HAVE_MMAP]: Set the initial
2013 jump tables to the maybe_mmap ones, and don't call __fopen_maybe_mmap.
2014 We need the tables set before _IO_file_attach.
2016 * libio/tst-mmap-eofsync.c: New file.
2017 * libio/tst-mmap-fflushsync.c: New file.
2018 * libio/bug-mmap-fflush.c: New file.
2019 * libio/tst-mmap2-eofsync.c: New file.
2020 * libio/Makefile (tests): Add them.
2022 * libio/wfileops.c (_IO_wfile_underflow_mmap): Don't set EOF bit when
2023 _IO_file_underflow_mmap fails, it already set the appropriate bit.
2025 2002-07-31 Jeff Bailey <jbailey@gnu.org>
2027 * libio/stdio.h (sys_errlist, sys_nerr, _sys_errlist, _sys_nerr):
2028 Declarations moved to <bits/sys_errlist.h>. Include that file.
2029 * libio/Makefile (headers): Add bits/sys_errlist.h to the list.
2030 * sysdeps/generic/bits/sys_errlist.h: New file. This does *not*
2031 declare sys_errlist and sys_nerr.
2032 * sysdeps/unix/sysv/linux/bits/sys_errlist.h: New file. Does
2033 provide declarations.
2035 2002-07-31 Roland McGrath <roland@redhat.com>
2037 * elf/rtld.c (dl_main): Fix typo in error message.
2039 2002-07-31 Roland McGrath <roland@frob.com>
2041 * sysdeps/mach/hurd/Versions (ld: GLIBC_2.0): __fxstat -> __fxstat64,
2042 __xstat -> __xstat64, __lseek -> __libc_lseek64. Completes 2002-06-09
2043 sysdeps/mach/hurd/dl-sysdep.c change.
2045 2002-07-28 Ulrich Drepper <drepper@redhat.com>
2047 * sysdeps/unix/sysv/linux/configure.in: Check /lib/modules/`uname
2048 -r`/build/include for kernel headers.
2050 * po/fi.po: New file.
2052 2002-07-15 Alexandre Oliva <aoliva@redhat.com>
2054 * configure.in (static_nss): Set to `yes' if --disable-shared.
2056 2002-07-23 Bruno Haible <bruno@clisp.org>
2058 * intl/loadmsgcat.c (PRI*): Redefine the macros if PRI_MACROS_BROKEN
2061 2002-07-25 Jakub Jelinek <jakub@redhat.com>
2063 * sysdeps/unix/sysv/linux/ia64/sigcontextinfo.h: New file.
2064 * sysdeps/unix/sysv/linux/ia64/profil-counter.h: Fix profil_counter
2067 2002-07-25 Jakub Jelinek <jakub@redhat.com>
2069 * sysdeps/unix/sysv/linux/alpha/adjtime.c (__adjtimex_internal): Add
2072 2002-07-21 Bruno Haible <bruno@clisp.org>
2074 * intl/libintl.h (__GNU_GETTEXT_SUPPORTED_REVISION): New macro.
2075 * intl/gettext.h (struct mo_file_header): New fields n_sysdep_segments,
2076 sysdep_segments_offset, n_sysdep_strings, orig_sysdep_tab_offset,
2077 trans_sysdep_tab_offset.
2078 (struct sysdep_segment): New type.
2079 (struct sysdep_string): New type.
2080 (SEGMENTS_END): New macro.
2081 * intl/gettextP.h (struct sysdep_string_desc): New type.
2082 (struct loaded_domain): New fields malloced, n_sysdep_strings,
2083 orig_sysdep_tab, trans_sysdep_tab, must_swap_hash_tab. Make fields
2084 orig_tab, trans_tab, hash_tab to const pointers because they point
2085 into read-only memory.
2086 * intl/loadmsgcat.c: Include stdint.h, inttypes.h, hash-string.h.
2087 (PRI*): Define fallback values.
2088 (get_sysdep_segment_value): New function.
2089 (_nl_load_domain): Distinguish major and minor revision parts. Add
2090 support for minor revision 1 with system dependent strings.
2091 (_nl_unload_domain): Also free the 'malloced' field.
2092 * intl/dcigettext.c (_nl_find_msg): Remove test for domain->hash_size,
2093 now done in loadmsgcat.c. Add support for system dependent strings.
2095 2002-07-16 Stepan Kasal <kasal@math.cas.cz>
2097 * posix/bug-regex7.c: New file.
2098 * posix/bug-regex8.c: New file.
2099 * posix/Makefile (tests): Add bug-regex7 and bug-regex8.
2101 2002-07-16 Stepan Kasal <kasal@math.cas.cz>
2103 * posix/bug-regex4.c (main): Fix typos.
2104 * posix/bug-regex6.c (main): Likewise.
2106 2002-07-27 Ulrich Drepper <drepper@redhat.com>
2108 * posix/bug-regex6.c (main): Fix warnings.
2110 * iconvdata/Makefile (CPPFLAGS): Add NOT_IN_libc.
2112 * iconv/iconv_prog.c (main): Improve error message for the cases
2113 where -t and/or -f parameter are missing.
2115 2002-07-10 Stepan Kasal <kasal@math.cas.cz>
2117 * posix/regexec.c (re_match): Reorganize to remove duplicate code.
2118 (re_search): Likewise.
2119 (re_match_2): Likewise.
2120 (re_search_2): Likewise.
2121 (re_search_stub): New function.
2122 (re_search_2_stub): New function.
2123 * regcomp.c (re_compile_pattern): Typo in a comment fixed.
2125 2002-07-10 Isamu Hasegawa <isamu@yamato.ibm.com>
2127 * posix/regex_internal.h: Add new member STOP to struct re_string_t.
2128 (re_string_eoi): Use STOP instead of LEN.
2129 * posix/regex_internal.c (re_string_allocate): Initialize pstr->len.
2130 (re_string_construct): Likewise.
2131 (re_string_reconstruct): Adjust pstr->stop like pstr->len.
2132 * posix/regexec.c (re_search_internal): Add a new argument STOP
2133 so that it can handle the argument STOP of re_search_2 and re_match_2
2135 (regexec): Adapt to new I/F of re_search_internal.
2136 (re_search_stub): Likewise.
2138 2002-07-25 Ulrich Drepper <drepper@redhat.com>
2140 * sunrpc/clnt_gen.c: Don't include <sys/errno.h>.
2142 * elf/dl-minimal.c: Remove definition of __assert_perror_fail.
2144 * sysdeps/wordsize-32/divdi3.c: Define __divdi3_internal.
2145 * sysdeps/wordsize-32/lldiv.c: Make gcc use __divdi3_internal instead
2148 * sysdeps/unix/sysv/linux/adjtime.c: Use __adjtimex_internal.
2149 * sysdeps/unix/sysv/linux/ntp_gettime.c: Likewise.
2150 * sysdeps/unix/sysv/linux/syscalls.list: Add __adjtimex_internal
2151 alias for adjtimex syscall.
2153 * elf/dl-minimal.c: Define __assert_fail_internal.
2154 * assert/assert.c: Likewise.
2155 * include/assert.h: Define __assert_file macro if !SHARED and not
2158 * iconv/Makefile: Define NOT_IN_libc for objects in standalone
2160 * locale/Makefile: Likewise.
2161 * nscd/Makefile: Likewise.
2162 * catgets/Makefile: Likewise.
2164 2002-07-24 Ulrich Drepper <drepper@redhat.com>
2166 * libio/fileops.c (_IO_file_seekoff_mmap): Do use fp->_offset to
2167 compute current position.
2169 * stdio-common/tst-fseek.c (main): Improve error messages.
2171 * libio/tst-freopen.c (main): Remove unused variable.
2173 * libio/fileops.c (_IO_file_seekoff_mmap): Set fp->_offset after
2174 succesful seek call. Simplify error checking.
2176 2002-07-25 Jakub Jelinek <jakub@redhat.com>
2178 * config.h.in: Use __ASSEMBLER__ test macro not ASSEMBLER.
2179 * sysdeps/ia64/fpu/libm_support.h: Likewise.
2181 2002-07-19 Roland McGrath <roland@frob.com>
2183 * hurd/hurdsig.c (_hurdsig_getenv): Always return null if
2184 __libc_enable_secure is set.
2186 2002-07-24 Roland McGrath <roland@frob.com>
2188 Added <ifaddrs.h> interface with functions `getifaddrs', `freeifaddrs'.
2189 This implementation supports only IPv4.
2190 * inet/ifaddrs.h: New file.
2191 * sysdeps/generic/ifaddrs.c: New file.
2192 * sysdeps/gnu/ifaddrs.c: New file.
2193 * inet/test-ifaddrs.c: New file.
2194 * inet/Makefile (routines): Add ifaddrs.
2195 (headers): Add ifaddrs.h here.
2196 (tests): Add test-ifaddrs.
2197 * inet/Versions (GLIBC_2.3): New set, add getifaddrs and freeifaddrs.
2199 * resolv/res_hconf.c (_res_hconf_reorder_addrs): Use an explicit
2200 socket call to get an AF_INET socket, instead of using __opensock.
2201 The SIOCGIFNETMASK ioctl will work only with a PF_INET socket.
2203 * sysdeps/generic/ifreq.h (__ifreq): Take third argument SOCKFD,
2204 if not -1 use it instead of calling __opensock.
2205 * sysdeps/unix/sysv/linux/ifreq.h (__ifreq): Likewise.
2206 * sysdeps/mach/hurd/ifreq.h (__ifreq): Take new argument and ignore it.
2207 * resolv/res_hconf.c (_res_hconf_reorder_addrs): Pass new argument.
2209 * sysdeps/mach/hurd/ifreq.h: New file.
2210 * sysdeps/generic/ifreq.h (__if_freereq): Take second argument NUM_IFS.
2211 * sysdeps/unix/sysv/linux/ifreq.h (__if_freereq): Likewise.
2212 * resolv/res_hconf.c (_res_hconf_reorder_addrs): Update caller.
2214 * libio/fileops.c (_IO_file_seekoff_mmap): Don't rely on FP->_offset,
2215 which gets moved around. Calculate size of mmap'd buffer instead.
2217 2002-07-24 Philip Blundell <philb@gnu.org>
2219 * sysdeps/unix/arm/brk.S: Improve schedule.
2220 * sysdeps/unix/sysv/linux/arm/socket.S (PUSHARGS_1): Use more
2221 efficient instruction.
2222 (__socket): Optimize return sequence.
2224 2002-07-24 Ulrich Drepper <drepper@redhat.com>
2226 * sysdeps/unix/sysv/linux/opensock.c (__opensock): Prefer inet
2227 sockets on old kernels.
2229 2002-07-22 Philip Blundell <philb@gnu.org>
2231 * sysdeps/unix/sysv/linux/arm/errlist.c: Remove extra weak alias
2232 definiton of _old_sys_nerr. Define _old_sys_errlist as strong
2235 2002-07-24 Ulrich Drepper <drepper@redhat.com>
2237 * locale/hashval.h: Make more self-contained by defining LONG_BITS.
2238 * locale/programs/simple-hash.c: Remove LONG_BITS definition.
2240 * locale/programs/locarchive.c (add_locale_to_archive): Correct
2241 test to detect duplicate locales.
2243 * libio/fileops.c (_IO_new_file_seekoff): Fail if relative
2244 position would be before beginning of file.
2245 (_IO_file_seekoff_mmap): Likewise.
2246 * libio/Makefile (tests): Add bug-fseek.
2247 * libio/bug-fseek.c: New file.
2249 * intl/explodename.c: Remove support for CEN-style locale variables.
2250 It was never used and shouldn't be since it's not portable.
2251 * intl/finddomain.c: Likewise.
2252 * intl/l10nflist.c: Likewise.
2253 * intl/loadinfo.h: Likewise.
2254 * locale/findlocale.c: Likewise.
2256 2002-07-24 Roland McGrath <roland@frob.com>
2258 * libio/fileops.c (_IO_file_seekoff_mmap): When just examining the
2259 position, calculate it to take into account an active pushback buffer.
2261 * libio/Makefile (tests): Add bug-ungetc.
2262 * libio/bug-ungetc.c: New file.
2264 2002-07-23 Ulrich Drepper <drepper@redhat.com>
2266 * sysdeps/generic/libc-tls.c: New file.
2267 * csu/Makefile (routines): Add libc-tls.
2268 (static-only-routines): Add libc-tls.
2269 * elf/dl-support.c (_dl_phdr): New variable.
2270 (_dl_phnum): New variable.
2271 (_dl_aux_init): Initialize _dl_phdr and _dl_phnum from aux vector.
2272 * sysdeps/generic/libc-start.c (__libc_start_main): Reorganize code
2273 for !SHARED. First look through auxiliary vector. If TLS always
2274 call __pthread_initialize_minimal.
2276 * sysdeps/generic/dl-tls.c (_dl_allocate_tls): Make sure size argument
2277 in mmap call is never zero.
2279 2002-07-23 Andreas Jaeger <aj@suse.de>
2281 * sysdeps/x86_64/fpu/s_copysign.S: Use optimized version.
2282 * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
2284 2002-07-22 Ulrich Drepper <drepper@redhat.com>
2286 * libio/tst-eof.c: Rewrite to let test-skeleton.c deal with
2287 creation and removal of the temp file.
2289 * libio/bug-rewind.c: Use test skeleton. Use create_temp_file for
2291 * test-skeleton.c (create_temp_file): New function.
2293 2002-07-22 Andreas Jaeger <aj@suse.de>
2295 * sysdeps/x86_64/dl-machine.h (elf_machine_load_address): Use
2298 2002-07-21 Roland McGrath <roland@frob.com>
2300 * wcsmbs/Makefile (strtox-CFLAGS): New variable,
2301 put -I../include before -I../stdlib so we get the right errno.h et al.
2302 (CFLAGS-wcstod.c): Use that variable instead of -I../stdlib.
2303 (CFLAGS-wcstof.c): Likewise.
2304 (CFLAGS-wcstold.c): Likewise.
2305 (CFLAGS-wcstod_l.c): Likewise.
2306 (CFLAGS-wcstof_l.c): Likewise.
2307 (CFLAGS-wcstold_l.c): Likewise.
2309 2002-07-19 Roland McGrath <roland@frob.com>
2311 * sysdeps/mach/hurd/errnos.awk: Remove __set_errno defn from output.
2313 2002-07-20 Ulrich Drepper <drepper@redhat.com>
2315 * sysdeps/unix/sysv/linux/ldsodefs.h (HAVE_AUX_XID): Define if
2316 __ASSUME_AT_XID is defined.
2317 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_AT_XID): Define
2319 * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Optimize handling
2320 of AT_UID, AT_EUID, AT_GID, and AT_EGID.
2322 * wcsmbs/Makefile (CFLAGS-wcstod.c): Add -I../stdlib.
2323 (CFLAGS-wcstof.c): Likewise.
2324 (CFLAGS-wcstold.c): Likewise.
2325 (CFLAGS-wcstod_l.c): Likewise.
2326 (CFLAGS-wcstof_l.c): Likewise.
2327 (CFLAGS-wcstold_l.c): Likewise.
2329 2002-07-18 Jakub Jelinek <jakub@redhat.com>
2331 * resource/sys/resource.h (__rlimit_resource_t, __rusage_who_t,
2332 __priority_which_t): Always typedef to int for C++.
2334 2002-07-19 Ulrich Drepper <drepper@redhat.com>
2336 * configure.in: Add test for __thread support in compiler.
2337 * config.h.in: Add HAVE___THREAD.
2338 * Makefile (headers): Remove errno.h, sys/errno.h, and bits/errno.h.
2339 * include/sys/errno.h: Moved to...
2340 * stdlib/sys/errno.h: ...here. New file.
2341 * stdlib/errno.h: New file. Moved from...
2342 * include/errno.h: ...here. Changed into an internal header defining
2343 libc-local things like __set_errno.
2344 * stdlib/Makefile (headers): Add errno.h, sys/errno.h, and
2346 * elf/dl-minimal.c: Include <tls.h>. Define errno as thread-local
2347 variable if USE_TLS && HAVE___THREAD. Don't define __errno_location
2349 * elf/rtld.c (_dl_start): Add code to initialize TLS for ld.so
2351 (_dl_start_final): ...here. Add code to initialize tls elements from
2353 * sysdeps/generic/errno-loc.c: Define errno as thread-local variable
2354 if USE_TLS && HAVE___THREAD.
2355 * sysdeps/generic/bits/errno.h: Remove __set_errno definition.
2356 * sysdeps/mach/hurd/bits/errno.h: Likewise.
2357 * sysdeps/standalone/arm/bits/errno.h: Likewise.
2358 * sysdeps/standalone/bits/errno.h: Likewise.
2359 * sysdeps/unix/bsd/bsd4.4/bits/errno.h: Likewise.
2360 * sysdeps/unix/sysv/aix/bits/errno.h: Likewise.
2361 * sysdeps/unix/sysv/hpux/bits/errno.h: Likewise.
2362 * sysdeps/unix/sysv/linux/bits/errno.h: Likewise.
2363 * sysdeps/unix/sysv/linux/hppa/bits/errno.h: Likewise.
2364 * sysdeps/unix/sysv/linux/mips/bits/errno.h: Likewise.
2365 * sysdeps/unix/sysv/sysv4/solaris2/bits/errno.h: Likewise.
2366 * sysdeps/i386/dl-machine.c (elf_machine_rel) [RTLD_BOOTSTRAP]: Don't
2367 use GL(dl_rtld_map), use map parameter.
2368 * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
2369 * sysdeps/unix/sysv/linux/i386/sysdep.S: Define errno in .tbss if
2370 USE_TLS && HAVE___THREAD.
2371 * sysdeps/unix/sysv/linux/i386/sysdep.h: Unify SETUP_PIC_REG
2372 definitions. If USE_TLS && HAVE___THREAD store errooor value using
2374 * sysdeps/unix/sysv/linux/i386/i686/sysdep.h: Likewise.
2376 * sysdeps/unix/sysv/linux/getcwd.c: No real need to restore errno.
2377 * sysdeps/unix/sysv/linux/grantpt.c: Likewise.
2378 * sysdeps/unix/sysv/linux/internal_statvfs.c: Likewise.
2379 * sysdeps/unix/sysv/linux/msgctl.c: Likewise.
2380 * sysdeps/unix/sysv/linux/readv.c: Likewise.
2381 * sysdeps/unix/sysv/linux/writev.c: Likewise.
2383 2002-07-17 Ulrich Drepper <drepper@redhat.com>
2385 * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Fix MS_SYNC and
2386 MS_INVALIDATE values.
2388 2002-07-17 Andreas Schwab <schwab@suse.de>
2389 Ulrich Drepper <drepper@redhat.com>
2391 * sysdeps/unix/sysv/linux/pread.c: Sign extend offset.
2392 * sysdeps/unix/sysv/linux/pwrite.c: Likewise.
2393 * sysdeps/unix/sysv/linux/mips/pread.c: Likewise.
2394 * sysdeps/unix/sysv/linux/mips/pwrite.c: Likewise.
2396 2002-07-01 H.J. Lu <hjl@gnu.org>
2398 * elf/circleload1.c (load_dso): Call "circlemod1" and check
2401 * elf/circlemod1.c (circlemod1): Return int.
2402 * elf/circlemod2.c (circlemod2): Likewise.
2403 * elf/circlemod2a.c (circlemod2): Likewise.
2404 * elf/circlemod3.c (circlemod3): Likewise.
2405 (circlemod3a): A new function.
2407 2002-07-16 Ulrich Drepper <drepper@redhat.com>
2409 * catgets/tst-catgets.c (main): Don't expect results for
2410 untranslated messages.
2412 * glibcbug.in: Fix little typo. Remove STDIO.
2414 * config.h.in: Fail if __FAST_MATH__ is defined.
2415 * math/Makefile (CPPFLAGS-test-ifloat.c): Also define TEST_FAST_MATH.
2416 (CPPFLAGS-test-idouble.c): Likewise.
2417 (CPPFLAGS-test-ildouble.c): Likewise.
2419 2002-07-15 Ulrich Drepper <drepper@redhat.com>
2421 * intl/tst-gettext.sh: Pass -f option to msgfmt.
2422 * intl/tst-gettext.c: Correctly handle untranslated messages in
2425 * po/de.po: Update from translation team.
2427 2002-07-02 H.J. Lu <hjl@gnu.org>
2429 * sysdeps/mips/atomicity.h: Don't include <sgidefs.h>. Always
2431 * sysdeps/unix/sysv/linux/mips/sys/tas.h: Likewise.
2433 * sysdeps/unix/sysv/linux/configure.in: Set arch_minimum_kernel
2436 2002-07-15 Ulrich Drepper <drepper@redhat.com>
2438 * elf/dl-load.c (_dl_map_object_from_fd): If loaded object uses
2439 TLS fail if USE_TLS is not defined.
2441 * libio/wfileops.c (_IO_wfile_seekoff): Reposition wide pointers
2442 and adjust state for seek position. [PR libc/4070]
2443 * libio/Makefile (tests): Add bug-rewind.
2444 * libio/bug-rewind.c: New file.
2446 2002-07-12 Philip Blundell <philb@gnu.org>
2448 * sysdeps/generic/backtrace.c (FIRST_FRAME_POINTER): New macro.
2449 (__backtrace): Use it.
2450 * sysdeps/arm/frame.h (FIRST_FRAME_POINTER): Define. [PR libc/2632]
2452 2002-07-12 Philip Blundell <philb@gnu.org>
2454 * sysdeps/arm/dl-machine.h (elf_machine_rel): Don't handle
2455 R_ARM_RELATIVE if RTLD_BOOTSTRAP and HAVE_Z_COMBRELOC. Only check
2456 for rtld map if neither RTLD_BOOTSTRAP nor HAVE_Z_COMBRELOC is defined.
2457 (elf_machine_rela): Remove unused variable.
2459 * sysdeps/unix/sysv/linux/arm/Makefile [subdir=elf]
2460 (sysdep-rtld-routines, sysdep_routines, sysdep-dl-routines): Don't
2463 2002-07-12 Ulrich Drepper <drepper@redhat.com>
2465 * iconvdata/gconv-modules: Add aliases for ISO-8859-11.
2467 2002-07-14 Andreas Jaeger <aj@suse.de>
2469 * sysdeps/x86_64/bits/link.h: Add biarch support.
2471 2002-07-13 Andreas Jaeger <aj@suse.de>
2473 * sysdeps/unix/sysv/linux/mips/register-dump.h (register_dump):
2474 Use correct indices.
2475 Patch by Eliot Dresselhaus <eliot@ayrnetworks.com>.
2477 2002-07-09 Martin Schwidefsky <schwidefsky@de.ibm.com>
2479 * sysdeps/s390/bits/byteswap.h: Unified 31/64 bit byteswap.h.
2480 * sysdeps/s390/s390-32/bits/byteswap.h: Remove.
2481 * sysdeps/s390/s390-64/bits/byteswap.h: Remove.
2482 * sysdeps/s390/bits/link.h: Unified 31/64 bit link.h.
2483 * sysdeps/s390/s390-32/bits/link.h: Remove.
2484 * sysdeps/s390/s390-64/bits/link.h: Remove.
2485 * sysdeps/s390/bits/setjmp.h: Unified 31/64 bit setjmp.h.
2486 * sysdeps/s390/s390-32/bits/setjmp.h: Remove.
2487 * sysdeps/s390/s390-64/bits/setjmp.h: Remove.
2488 * sysdeps/s390/bits/wordsize.h: New file.
2489 * sysdeps/unix/sysv/linux/s390/bits/elfclass.h: Unified 31/64 bit
2491 * sysdeps/unix/sysv/linux/s390/s390-64/bits/elfclass.h: Remove.
2492 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Unified 31/64 bit fcntl.h.
2493 * sysdeps/unix/sysv/linux/s390/s390-32/bits/fcntl.h: Remove.
2494 * sysdeps/unix/sysv/linux/s390/s390-64/bits/fcntl.h: Remove.
2495 * sysdeps/unix/sysv/linux/s390/bits/ipc.h: Unified 31/64 bit ipc.h.
2496 * sysdeps/unix/sysv/linux/s390/s390-64/bits/ipc.h: Remove.
2497 * sysdeps/unix/sysv/linux/s390/bits/mman.h: Unified 31/64 bit mman.h.
2498 * sysdeps/unix/sysv/linux/s390/s390-32/bits/mman.h: Remove.
2499 * sysdeps/unix/sysv/linux/s390/s390-64/bits/mman.h: Remove.
2500 * sysdeps/unix/sysv/linux/s390/bits/msq.h: Unified 31/64 bit msq.h.
2501 * ysdeps/unix/sysv/linux/s390/s390-64/bits/msq.h: Remove.
2502 * sysdeps/unix/sysv/linux/s390/bits/resource.h: Unified 31/64 bit
2504 * sysdeps/unix/sysv/linux/s390/s390-32/bits/resource.h: Remove.
2505 * sysdeps/unix/sysv/linux/s390/s390-64/bits/resource.h: Remove.
2506 * sysdeps/unix/sysv/linux/s390/bits/sem.h: Unified 31/64 bit sem.h.
2507 * sysdeps/unix/sysv/linux/s390/s390-64/bits/sem.h: Remove.
2508 * sysdeps/unix/sysv/linux/s390/bits/shm.h: Unified 31/64 bit shm.h.
2509 * sysdeps/unix/sysv/linux/s390/s390-64/bits/shm.h: Remove.
2510 * sysdeps/unix/sysv/linux/s390/bits/sigaction.h: Unified 31/64 bit
2512 * sysdeps/unix/sysv/linux/s390/s390-64/bits/sigaction.h: Remove.
2513 * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Unified 31/64 bit
2515 * sysdeps/unix/sysv/linux/s390/s390-64/bits/siginfo.h: Remove.
2516 * sysdeps/unix/sysv/linux/s390/s390-64/bits/sigstack.h: Remove.
2517 * sysdeps/unix/sysv/linux/s390/bits/socket.h: Unified 31/64 bit
2519 * sysdeps/unix/sysv/linux/s390/s390-64/bits/socket.h: Remove.
2520 * sysdeps/unix/sysv/linux/s390/bits/stat.h: Unified 31/64 bit stat.h.
2521 * sysdeps/unix/sysv/linux/s390/s390-32/bits/stat.h: Remove.
2522 * sysdeps/unix/sysv/linux/s390/s390-64/bits/stat.h: Remove.
2523 * sysdeps/unix/sysv/linux/s390/bits/types.h: Unified 31/64 bit types.h.
2524 * sysdeps/unix/sysv/linux/s390/s390-64/bits/types.h: Remove.
2525 * sysdeps/unix/sysv/linux/s390/net/route.h: New file.
2526 * sysdeps/unix/sysv/linux/s390/sys/procfs.h: Unified 31/64 bit
2528 * sysdeps/unix/sysv/linux/s390/s390-32/sys/procfs.h: Remove.
2529 * sysdeps/unix/sysv/linux/s390/s390-64/sys/procfs.h: Remove.
2530 * sysdeps/unix/sysv/linux/s390/sys/ucontext.h: Unified 31/64 bit
2532 * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Remove.
2533 * sysdeps/unix/sysv/linux/s390/s390-64/sys/ucontext.h: Remove.
2535 2002-07-11 Ulrich Drepper <drepper@redhat.com>
2537 * Versions.def (libc): Add GLIBC_2.3.
2538 * stdlib/Versions [libc] (GLIBC_2.3): Add realpath.
2539 * stdlib/canonicalize.c: Add compatibility version for realpath
2540 and make new code available in GLIBC_2.3.
2542 2002-07-06 Bruno Haible <bruno@clisp.org>
2544 * malloc/hooks.c (public_gET_STATe): Access max_total_mem in mp_.
2546 2002-07-11 Ulrich Drepper <drepper@redhat.com>
2548 * resolv/res_hconf.c (_res_hconf_init): Move code into new
2549 function do_init. Use __libc_once.
2550 (do_init): New function.
2552 * iconvdata/iso8859-11.h: Removed.
2553 * iconvdata/Makefile (gen-8bit-gap-modules): Add iso8859-11.
2554 (distribute): Remove iso8859-11.h.
2555 * iconvdata/tst-tables.sh: Add ISO-8859-11.
2557 * stdio-common/vfscanf.c (inchar): Restore errno from previous
2558 underflow operation if c == (W)EOF.
2560 2002-07-03 Jakub Jelinek <jakub@redhat.com>
2562 * stdio-common/printf_fp.c (__printf_fp): If _FPIO_CONST_SHIFT is
2563 non-zero, adjust exponent.
2564 * sysdeps/ieee754/ldbl-128/s_erfl.c (__erfl, erfl, __erfcl, erfcl):
2565 Remove NO_LONG_DOUBLE aliases.
2566 * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l, expm1l): Likewise.
2567 * sysdeps/ieee754/ldbl-128/s_log1pl.c (__log1pl, log1pl): Likewise.
2568 (__log1pl): Raise divide by zero and invalid exceptions when needed.
2569 * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Special case
2571 * sysdeps/ieee754/ldbl-128/ldbl2mpn.c (__mpn_extract_long_double):
2572 Fix BITS_PER_MP_LIMB 32 extraction.
2573 * sysdeps/ieee754/ldbl-128/e_log2l.c (__ieee754_log2l): Don't raise
2574 exceptions for qNaNs.
2575 * sysdeps/ieee754/ldbl-128/e_log10l.c (__ieee754_log10l): Likewise.
2576 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgamma_r):
2577 Raise exceptions when needed. Don't recurse unnecessarily.
2578 Special case 1.0L and 2.0L arguments to avoid -0.0L as result.
2579 * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_y0l): Don't raise
2580 exceptions for qNaNs.
2581 * sysdeps/ieee754/ldbl-128/s_remquol.c (__remquol): Make qs 64-bit
2582 to fix *quo return value sign.
2583 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gamma_r): Special
2585 * soft-fp/op-4.h (_FP_FRAC_CLZ_4): Fix a pasto.
2587 2002-07-01 Jakub Jelinek <jakub@redhat.com>
2589 * libio/tst-eof.c (do_test): Remove unused ch and tm variables.
2590 * iconvdata/iso-2022-jp-3.c (EMIT_SHIFT_TO_INIT): Kill warnings if
2593 2002-07-10 Ulrich Drepper <drepper@redhat.com>
2595 * malloc/hooks.c (realloc_check): If mremap succeeds actually use
2598 * sysdeps/i386/i486/bits/string.h: Add early clobber for "a"
2599 output parameter. Reported by Denis Zaitsev <zzz@cd-club.ru>.
2601 * Versions.def (libthread_db): Add GLIBC_2.3.
2603 2002-07-09 Jakub Jelinek <jakub@redhat.com>
2605 * libio/freopen.c (freopen): Reset jump tables, use mmap stdio for the
2606 new stream if possible.
2607 * libio/freopen64.c (freopen64): Likewise.
2608 * libio/Makefile (tests): Add tst-freopen.
2609 * libio/tst-freopen.c: New file.
2611 2002-07-03 Jakub Jelinek <jakub@redhat.com>
2613 * libio/stdio.h (obstack_printf): Add format attribute.
2614 (obstack_vprintf): Likewise.
2616 2002-07-04 Jakub Jelinek <jakub@redhat.com>
2618 * posix/regex_internal.h (re_token_t): Shrink the structure to 8
2619 resp. 16 bytes on 32-bit resp. 64-bit platforms.
2620 (re_charset_t, re_string_t): Reorder structure members for 64-bit
2623 2002-07-04 Jakub Jelinek <jakub@redhat.com>
2625 * posix/regcomp.c (re_compile_internal): Move clearing of dfa...
2626 (init_dfa): ...here.
2628 2002-07-05 Isamu Hasegawa <isamu@yamato.ibm.com>
2630 * posix/regcomp.c (parse_sub_exp): Add nodes OP_OPEN_SUBEXP and
2631 OP_CLOSE_SUBEXP at both ends of sub expressions instead of SUBEXP
2632 nodes in parse trees.
2633 (calc_first): Fix the Definition of `firsts' of OP_OPEN_SUBEXP
2634 and OP_CLOSE_SUBEXP, and remove the definition of SUBEXP.
2635 (calc_epsdest): Treat OP_OPEN_SUBEXP and OP_CLOSE_SUBEXP as the
2636 nodes which can epsilon transit.
2637 * posix/regex_internal.h: Add OP_OPEN_SUBEXP and OP_CLOSE_SUBEXP
2638 to IS_EPSILON_NODE macro.
2639 * posix/regexec.c (update_regs): New function to update registers
2640 by refering OP_OPEN_SUBEXP and OP_CLOSE_SUBEXP nodes.
2641 (proceed_next_node): Use the entities of the nodes to determine
2642 whether the node can transit to.
2643 (set_regs): Use update_regs function to update registers.
2645 2002-07-03 Jakub Jelinek <jakub@redhat.com>
2647 * posix/bug-regex4.c (main): Remove duplicate setlocale.
2648 * posix/bug-regex6.c: New file.
2649 * posix/Makefile (tests): Add bug-regex6.
2650 (bug-regex6-ENV): Set LOCPATH.
2652 2002-07-10 Ulrich Drepper <drepper@redhat.com>
2654 * Versions.def [libpthread]: Add GLIBC_2.2.6.
2655 * posix/Versions [libc] (GLIBC_2.2.6): Add __nanosleep.
2657 2002-07-06 Bruno Haible <bruno@clisp.org>
2659 * sysdeps/unix/sysv/sysv4/bits/sigset.h (__NSSBITS): Correct value.
2661 2002-07-06 Bruno Haible <bruno@clisp.org>
2663 * include/sys/socket.h (__libc_sendto, __libc_recvfrom): New
2666 * sysdeps/i386/fpu/libm-test-ulps: Add some ulps for AMD K7.
2668 * rt/Makefile (tests): Don't add tst-aio* in a single-threaded build.
2670 * sysdeps/unix/bsd/sun/sunos4/bits/utsname.h: Test for _SYS_UTSNAME_H,
2672 * sysdeps/unix/bsd/ultrix4/bits/utsname.h: Likewise.
2674 * sysdeps/generic/bits/stropts.h: Protect against direct inclusion.
2675 * sysdeps/generic/bits/ustat.h: Likewise.
2677 * sysdeps/unix/sysv/linux/bits/statvfs.h (ST_NODIRATIME): Set to 2048.
2679 2002-07-08 Andreas Jaeger <aj@suse.de>
2681 * sysdeps/x86_64/elf/initfini.c (__asm__): Call call_gmon_start.
2683 2002-07-08 Andreas Jaeger <aj@suse.de>
2685 * sysdeps/x86_64/fpu/s_fdiml.S: Fix wrong register name.
2687 2002-07-06 Andreas Jaeger <aj@suse.de>
2689 * sysdeps/x86_64/fpu/bits/mathinline.h: New.
2690 * sysdeps/x86_64/fpu/s_copysign.S: New.
2691 * sysdeps/x86_64/fpu/s_copysignf.S: New.
2692 * sysdeps/x86_64/fpu/s_copysignl.S: New.
2693 * sysdeps/x86_64/fpu/s_finitel.S: New.
2694 * sysdeps/x86_64/fpu/s_fmax.S: New.
2695 * sysdeps/x86_64/fpu/s_fmaxf.S: New.
2696 * sysdeps/x86_64/fpu/s_fmaxl.S: New.
2697 * sysdeps/x86_64/fpu/s_fmin.S: New.
2698 * sysdeps/x86_64/fpu/s_fminf.S: New.
2699 * sysdeps/x86_64/fpu/s_fminl.S: New.
2701 2002-06-05 Brian Youmans <3diff@gnu.org>
2703 * sysdeps/ia64/fpu/e_acos.S: Added text of Intel license.
2704 * sysdeps/ia64/fpu/e_acosf.S: Likewise.
2705 * sysdeps/ia64/fpu/e_acosl.S: Likewise.
2706 * sysdeps/ia64/fpu/e_asin.S: Likewise.
2707 * sysdeps/ia64/fpu/e_asinf.S: Likewise.
2708 * sysdeps/ia64/fpu/e_asinl.S: Likewise.
2709 * sysdeps/ia64/fpu/e_atan2.S: Likewise.
2710 * sysdeps/ia64/fpu/e_atan2f.S: Likewise.
2711 * sysdeps/ia64/fpu/e_cosh.S: Likewise.
2712 * sysdeps/ia64/fpu/e_coshf.S: Likewise.
2713 * sysdeps/ia64/fpu/e_coshl.S: Likewise.
2714 * sysdeps/ia64/fpu/e_exp.S: Likewise.
2715 * sysdeps/ia64/fpu/e_expf.S: Likewise.
2716 * sysdeps/ia64/fpu/e_fmod.S: Likewise.
2717 * sysdeps/ia64/fpu/e_fmodf.S: Likewise.
2718 * sysdeps/ia64/fpu/e_fmodl.S: Likewise.
2719 * sysdeps/ia64/fpu/e_hypot.S: Likewise.
2720 * sysdeps/ia64/fpu/e_hypotf.S: Likewise.
2721 * sysdeps/ia64/fpu/e_hypotl.S: Likewise.
2722 * sysdeps/ia64/fpu/e_log.S: Likewise.
2723 * sysdeps/ia64/fpu/e_logf.S: Likewise.
2724 * sysdeps/ia64/fpu/e_pow.S: Likewise.
2725 * sysdeps/ia64/fpu/e_powf.S: Likewise.
2726 * sysdeps/ia64/fpu/e_powl.S: Likewise.
2727 * sysdeps/ia64/fpu/e_remainder.S: Likewise.
2728 * sysdeps/ia64/fpu/e_remainderf.S: Likewise.
2729 * sysdeps/ia64/fpu/e_remainderl.S: Likewise.
2730 * sysdeps/ia64/fpu/e_scalb.S: Likewise.
2731 * sysdeps/ia64/fpu/e_scalbf.S: Likewise.
2732 * sysdeps/ia64/fpu/e_scalbl.S: Likewise.
2733 * sysdeps/ia64/fpu/e_sinh.S: Likewise.
2734 * sysdeps/ia64/fpu/e_sinhf.S: Likewise.
2735 * sysdeps/ia64/fpu/e_sinhl.S: Likewise.
2736 * sysdeps/ia64/fpu/e_sqrt.S: Likewise.
2737 * sysdeps/ia64/fpu/e_sqrtf.S: Likewise.
2738 * sysdeps/ia64/fpu/e_sqrtl.S: Likewise.
2739 * sysdeps/ia64/fpu/libm_atan2_req.S: Likewise.
2740 * sysdeps/ia64/fpu/libm_error.c: Likewise.
2741 * sysdeps/ia64/fpu/libm_frexp4.S: Likewise.
2742 * sysdeps/ia64/fpu/libm_frexp4f.S: Likewise.
2743 * sysdeps/ia64/fpu/s_frexpl.c: Likewise.
2744 * sysdeps/ia64/fpu/s_ilogb.S: Likewise.
2745 * sysdeps/ia64/fpu/s_ilogbf.S: Likewise.
2746 * sysdeps/ia64/fpu/s_ilogbl.S: Likewise.
2747 * sysdeps/ia64/fpu/s_ldexp.S: Likewise.
2748 * sysdeps/ia64/fpu/s_ldexpf.S: Likewise.
2749 * sysdeps/ia64/fpu/s_ldexpl.S: Likewise.
2750 * sysdeps/ia64/fpu/s_log1p.S: Likewise.
2751 * sysdeps/ia64/fpu/s_log1pf.S: Likewise.
2752 * sysdeps/ia64/fpu/s_log1pl.S: Likewise.
2753 * sysdeps/ia64/fpu/s_logb.S: Likewise.
2754 * sysdeps/ia64/fpu/s_logbf.S: Likewise.
2755 * sysdeps/ia64/fpu/s_logbl.S: Likewise.
2756 * sysdeps/ia64/fpu/s_modf.S: Likewise.
2757 * sysdeps/ia64/fpu/s_modff.S: Likewise.
2758 * sysdeps/ia64/fpu/s_modfl.S: Likewise.
2759 * sysdeps/ia64/fpu/s_nearbyint.S: Likewise.
2760 * sysdeps/ia64/fpu/s_nearbyintf.S: Likewise.
2761 * sysdeps/ia64/fpu/s_nearbyintl.S: Likewise.
2762 * sysdeps/ia64/fpu/s_rint.S: Likewise.
2763 * sysdeps/ia64/fpu/s_rintf.S: Likewise.
2764 * sysdeps/ia64/fpu/s_rintl.S: Likewise.
2765 * sysdeps/ia64/fpu/s_round.S: Likewise.
2766 * sysdeps/ia64/fpu/s_roundf.S: Likewise.
2767 * sysdeps/ia64/fpu/s_roundl.S: Likewise.
2768 * sysdeps/ia64/fpu/s_scalbn.S: Likewise.
2769 * sysdeps/ia64/fpu/s_scalbnf.S: Likewise.
2770 * sysdeps/ia64/fpu/s_scalbnl.S: Likewise.
2771 * sysdeps/ia64/fpu/s_significand.S: Likewise.
2772 * sysdeps/ia64/fpu/s_significandf.S: Likewise.
2773 * sysdeps/ia64/fpu/s_significandl.S: Likewise.
2774 * sysdeps/ia64/fpu/s_tan.S: Likewise.
2775 * sysdeps/ia64/fpu/s_tanf.S: Likewise.
2776 * sysdeps/ia64/fpu/s_tanl.S: Likewise.
2777 * sysdeps/ia64/fpu/s_trunc.S: Likewise.
2778 * sysdeps/ia64/fpu/s_truncf.S: Likewise.
2779 * sysdeps/ia64/fpu/s_truncl.S: Likewise.
2780 * sysdeps/ieee754/dbl-64/doasin.c: Changed copyright notice to
2781 reflect IBM donation of math library to FSF
2782 * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
2783 * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
2784 * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
2785 * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
2786 * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
2787 * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
2788 * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
2789 * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
2790 * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
2791 * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
2792 * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
2793 * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
2794 * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
2795 * sysdeps/ieee754/dbl-64/mplog.c: Likewise.
2796 * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
2797 * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
2798 * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
2799 * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
2800 * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
2801 * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
2802 * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
2803 * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
2804 * sysdeps/gnu/netinet/udp.h: Added BSD copying permission notice
2805 * sysdeps/vax/__longjmp.c: Likewise.
2806 * sysdeps/vax/setjmp.c: Likewise.
2807 * libio/filedoalloc.c: Fixed BSD copying permission notice to
2808 remove advertising clause
2809 * sysdeps/vax/htonl.s: Likewise.
2810 * sysdeps/vax/htons.s: Likewise.
2811 * libio/wfiledoalloc.c: Likewise.
2812 * stdlib/random.c: Likewise.
2813 * stdlib/random_r.c: Likewise.
2814 * sysdeps/mach/sys/reboot.h: Likewise.
2815 * inet/getnameinfo.c: Deleted advertising clause from Inner Net License
2816 * sysdeps/posix/getaddrinfo.c: Likewise.
2817 * sunrpc/des_impl.c: Updated license permission notice to Lesser
2818 GPL and corrected pointer to point to the correct license.
2820 2002-07-04 Andreas Jaeger <aj@suse.de>
2822 * scripts/config.guess: New upstream version.
2823 * scripts/config.sub: Likewise.
2825 2002-07-02 Andreas Schwab <schwab@suse.de>
2827 * resolv/nss_dns/dns-network.c (getanswer_r): Reduce linebuflen
2828 in parallel to bumping up the buffer pointer.
2830 2002-07-01 Jakub Jelinek <jakub@redhat.com>
2832 * math/libm-test.inc (acos_test): Add missing L suffix for
2834 (cpow_test): Likewise.
2835 * sysdeps/i386/fpu/libm-test-ulps: Adjust errors for cpow, remove
2836 error for acos (0.0625).
2838 2002-06-30 Ulrich Drepper <drepper@redhat.com>
2840 * locale/iso-639.def: Add entry for Ganda.
2841 * locale/programs/ld-address.c (DEFINE_LANGUAGE_CODE3): New
2843 (address_finish): Handle entries with two letter ISO 639 code.
2845 * iconvdata/Makefile: Recreate gconv-modules.cache file in target
2846 directory if it existed before.
2847 * iconv/iconvconfig.c: Implement --prefix option.
2849 * math/libm-test.inc (cexp_test): Add missing L suffix for
2850 expected result. Reported by Stephen L Moshier <steve@moshier.net>.
2851 * sysdeps/i386/fpu/libm-test-ulps: Adjust error for cexp (0.75 +
2854 2002-05-29 H.J. Lu <hjl@gnu.org>
2856 * elf/dl-error.c (_dl_signal_cerror): Report error if ld.so debug
2859 2002-05-28 H.J. Lu <hjl@gnu.org>
2861 * elf/dl-deps.c (_dl_map_object_deps): Don't add objects which
2862 are not dlopened on the dependency list of a dlopened object.
2864 2002-06-30 Ulrich Drepper <drepper@redhat.com>
2866 * elf/dl-lookup.c (add_dependency): It is not necessary to add
2867 dependencies if they are created between objects which are created
2868 while processing RTLD_NOW for objects loaded as part of the same
2871 2002-06-14 H.J. Lu <hjl@gnu.org>
2873 * elf/Makefile (tests): Add circleload1.
2874 (modules-names): Add circlemod1, circlemod2, circlemod3,
2875 circlemod1a, circlemod2a and circlemod3a.
2876 ($(objpfx)circleload1): New target.
2877 ($(objpfx)circleload1.out): Likewise.
2878 ($(objpfx)circlemod1.so): Likewise.
2879 ($(objpfx)circlemod2.so): Likewise.
2880 ($(objpfx)circlemod1a.so): Likewise.
2881 ($(objpfx)circlemod2a.so): Likewise.
2882 * elf/circleload1.c: New file.
2883 * elf/circlemod1.c: New file.
2884 * elf/circlemod1a.c: New file.
2885 * elf/circlemod2.c: New file.
2886 * elf/circlemod2a.c: New file.
2887 * elf/circlemod3.c: New file.
2888 * elf/circlemod3a.c: New file.
2890 2002-06-18 Amos Waterland <apw@us.ibm.com>
2892 * sysdeps/pthread/aio_cancel.c (aio_cancel): Add check for invalid
2894 * sysdeps/pthread/aio_fsync.c (aio_fsync): Add check for invalid fd;
2895 add check for fd not open for writing.
2897 * sysdeps/pthread/aio_suspend.c (aio_suspend): Add check for
2898 completed element(s) and do not suspend thread if so. Patch
2899 heavily modified by drepper.
2901 * rt/tst-aio7.c: New file. Regression test for problems which the
2902 above three changes fix.
2903 * rt/Makefile (tests): Add tst-aio7.
2905 2002-06-29 Ulrich Drepper <drepper@redhat.com>
2907 * rt/tst-aio6.c: Fix comment.
2909 * catgets/gencat.c (read_input_file): Handle more than one slash
2910 at end of line correctly [PR libc/3926].
2911 Based on a patch by Steven Kim <steven.kim@peregrine.com>.
2913 * catgets/sample.SJIS: Add test case for above bug.
2914 * catgets/test-gencat.c: Adjust test code.
2915 * catgets/test-gencat.sh: Adjust expected results.
2917 * elf/do-rel.h (elf_dynamic_do_rel): Avoid overflow in computation
2918 to skip relative relocations.
2919 Patch by Geoff Keating <geoffk@redhat.com>.
2921 2002-05-26 Bruno Haible <bruno@clisp.org>
2923 * iconv/loop.c (STANDARD_FROM_LOOP_ERR_HANDLER): New macro.
2924 (STANDARD_TO_LOOP_ERR_HANDLER): Renamed from STANDARD_ERR_HANDLER.
2925 All callers changed.
2926 * iconv/gconv_simple.c (ascii_internal_loop): For error handling use
2927 STANDARD_FROM_LOOP_ERR_HANDLER.
2928 (utf8_internal_loop): Likewise.
2929 (ucs2_internal_loop): Likewise.
2930 (internal_ucs2_loop): Perform error handling like in
2931 STANDARD_FROM_LOOP_ERR_HANDLER.
2932 * iconvdata/unicode.c (BODY for TO_LOOP): Perform error handling like
2933 in STANDARD_FROM_LOOP_ERR_HANDLER.
2934 (BODY for FROM_LOOP): Use STANDARD_FROM_LOOP_ERR_HANDLER for error
2936 * iconvdata/utf-16.c (BODY for TO_LOOP): Perform error handling like
2937 in STANDARD_FROM_LOOP_ERR_HANDLER.
2938 (BODY for FROM_LOOP): Use STANDARD_FROM_LOOP_ERR_HANDLER for error
2940 * iconvdata/utf-32.c (BODY for TO_LOOP): Perform error handling like
2941 in STANDARD_FROM_LOOP_ERR_HANDLER.
2942 (BODY for FROM_LOOP): Use STANDARD_FROM_LOOP_ERR_HANDLER for error
2944 * iconvdata/big5.c (BODY for FROM_LOOP): For error handling use
2945 STANDARD_FROM_LOOP_ERR_HANDLER.
2946 * iconvdata/iso-2022-jp.c (BODY for FROM_LOOP): Likewise.
2947 * iconvdata/8bit-gap.c (BODY for FROM_LOOP): Likewise.
2948 * iconvdata/8bit-generic.c (BODY for FROM_LOOP): Likewise.
2949 * iconvdata/ansi_x3.110.c (BODY for FROM_LOOP): Likewise.
2950 * iconvdata/armscii-8.c (BODY for FROM_LOOP): Likewise.
2951 * iconvdata/cp1255.c (BODY for FROM_LOOP): Likewise.
2952 * iconvdata/cp1258.c (BODY for FROM_LOOP): Likewise.
2953 * iconvdata/euc-cn.c (BODY for FROM_LOOP): Likewise.
2954 * iconvdata/euc-jisx0213.c (BODY for FROM_LOOP): Likewise.
2955 * iconvdata/euc-jp.c (BODY for FROM_LOOP): Likewise.
2956 * iconvdata/euc-kr.c (BODY for FROM_LOOP): Likewise.
2957 * iconvdata/euc-tw.c (BODY for FROM_LOOP): Likewise.
2958 * iconvdata/big5hkscs.c (BODY for FROM_LOOP): Likewise.
2959 * iconvdata/gb18030.c (BODY for FROM_LOOP): Likewise.
2960 * iconvdata/gbk.c (BODY for FROM_LOOP): Likewise.
2961 * iconvdata/iso-2022-cn-ext.c (BODY for FROM_LOOP): Likewise.
2962 * iconvdata/iso-2022-cn.c (BODY for FROM_LOOP): Likewise.
2963 * iconvdata/iso-2022-jp-3.c (BODY for FROM_LOOP): Likewise.
2964 * iconvdata/iso-2022-kr.c (BODY for FROM_LOOP): Likewise.
2965 * iconvdata/iso646.c (BODY for FROM_LOOP): Likewise.
2966 * iconvdata/iso_6937-2.c (BODY for FROM_LOOP): Likewise.
2967 * iconvdata/iso_6937.c (BODY for FROM_LOOP): Likewise.
2968 * iconvdata/johab.c (BODY for FROM_LOOP): Likewise.
2969 * iconvdata/shift_jisx0213.c (BODY for FROM_LOOP): Likewise.
2970 * iconvdata/sjis.c (BODY for FROM_LOOP): Likewise.
2971 * iconvdata/t.61.c (BODY for FROM_LOOP): Likewise.
2972 * iconvdata/uhc.c (BODY for FROM_LOOP): Likewise.
2973 * iconvdata/utf-7.c (BODY for FROM_LOOP): Likewise.
2974 * iconvdata/gbbig5.c (BODY for FROM_LOOP): Likewise. When ignoring
2975 an error, still set result = __GCONV_ILLEGAL_INPUT.
2976 (BODY for TO_LOOP): Likewise.
2977 * iconvdata/ibm930.c (BODY for FROM_LOOP): For error handling use
2978 STANDARD_FROM_LOOP_ERR_HANDLER.
2979 (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
2980 * iconvdata/ibm932.c: Include <dlfcn.h> and <stdint.h>.
2981 (BODY for FROM_LOOP): Use STANDARD_FROM_LOOP_ERR_HANDLER for error
2983 (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
2984 * iconvdata/ibm933.c (BODY for FROM_LOOP): For error handling use
2985 STANDARD_FROM_LOOP_ERR_HANDLER.
2986 (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
2987 * iconvdata/ibm935.c (BODY for FROM_LOOP): For error handling use
2988 STANDARD_FROM_LOOP_ERR_HANDLER.
2989 (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
2990 * iconvdata/ibm937.c (BODY for FROM_LOOP): For error handling use
2991 STANDARD_FROM_LOOP_ERR_HANDLER.
2992 (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
2993 * iconvdata/ibm939.c (BODY for FROM_LOOP): For error handling use
2994 STANDARD_FROM_LOOP_ERR_HANDLER.
2995 (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
2996 * iconvdata/ibm943.c: Include <dlfcn.h> and <stdint.h>.
2997 (BODY for FROM_LOOP): Use STANDARD_FROM_LOOP_ERR_HANDLER for error
2999 (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
3000 * iconvdata/gbgbk.c (BODY for FROM_LOOP): Update.
3001 * iconvdata/iso8859-1.c (BODY for TO_LOOP): Update.
3002 * iconvdata/tcvn5712-1.c (BODY for TO_LOOP): Update.
3004 2002-06-28 Kaz Kojima <kkojima@rr.iij4u.or.jp>
3006 * sysdeps/sh/dl-machine.h (elf_machine_load_address): Use local
3007 labels in assembler instructions.
3009 2002-06-25 Ulrich Drepper <drepper@redhat.com>
3011 * libio/fileops.c (_IO_file_xsgetn_mmap): Always set EOF flag if
3012 not enough content is available.
3013 * libio/tst-eof.c: New file.
3014 * libio/Makefile (tests): Add tst-eof.
3016 * libio/fileops.c (_IO_file_underflow_mmap): Read a single byte to
3018 * libio/tst-atime.c: New file.
3019 * libio/Makefile (tests): Add tst-atime.
3021 * argp/argp-fmtstream.c (__argp_fmtstream_update): Avoid crash in
3022 handling of overly long words.
3024 2002-06-25 Andreas Jaeger <aj@suse.de>
3026 * sysdeps/x86-64/dl-machine.h (elf_machine_load_address): Rewrite
3027 to not use 32-bit pc relative relocations.
3028 (elf_machine_dynamic): Likewise.
3030 2002-06-21 Ulrich Drepper <drepper@redhat.com>
3032 * sysdeps/unix/sysv/linux/getdents.c [__ASSUME_GETDENTS64_SYSCALL]
3033 (__GETDENTS): Check for failed getdents64 syscall.
3034 * dirent/Makefile (tests): Add bug-readdir1.
3035 * dirent/bug-readdir1.c: New file.
3037 2002-06-17 Jakub Jelinek <jakub@redhat.com>
3039 * elf/dl-lookup.c (_dl_debug_bindings): Use type_class 4 for TLS
3041 * elf/rtld.c (dl_main): Move TLS setup code before LD_TRACE_PRELINKING
3042 code. Print TLS modid and offset for modules containing PT_TLS
3045 2002-06-09 Jakub Jelinek <jakub@redhat.com>
3047 * sysdeps/unix/sysv/linux/i386/dl-brk.c: Move...
3048 * sysdeps/unix/sysv/linux/dl-brk.c: ...here.
3049 * sysdeps/unix/sysv/linux/i386/dl-sbrk.c: Move...
3050 * sysdeps/unix/sysv/linux/dl-sbrk.c: ...here.
3052 2002-06-07 Jakub Jelinek <jakub@redhat.com>
3054 * nss/getXXbyYY_r.c (NEW, NEW1): Define.
3055 (NEW (REENTRANT_NAME)): Strong alias to INTERNAL (REENTRANT_NAME).
3056 (REENTRANT_NAME@@GLIBC_2.1.2): Use NEW (REENTRANT_NAME).
3057 * nss/getXXent_r.c (NEW, NEW1): Define.
3058 (NEW (REENTRANT_GETNAME)): Strong alias to
3059 INTERNAL (REENTRANT_GETNAME).
3060 (REENTRANT_GETNAME@@GLIBC_2.1.2): Use NEW (REENTRANT_GETNAME).
3062 2002-06-21 Ulrich Drepper <drepper@redhat.com>
3064 * libio/fileops.c (_IO_file_setbuf_mmap): New function.
3065 (_IO_file_jumps_mmap): Use it.
3066 * libio/iosetvbuf.c: Don't call _IO_WSETBUF.
3067 * libio/libioP.h: Remove _IO_wdefault_setbuf and
3068 _IO_wdefault_setbuf_internal prorotypes. Add _IO_file_setbuf_mmap
3070 * libio/wfileops.c (_IO_wfile_setbuf): Removed.
3071 (_IO_wfile_jumps_mmap): Don't use it anymore.
3072 * libio/wgenops.c (_IO_wdefault_setbuf): Removed.
3073 * libio/memstream.c (_IO_wmem_jumps): Use _IO_default_setbuf not
3074 _IO_wdefault_setbuf.
3075 * libio/vswprintf.c (_IO_wstrn_jumps): Likewise.
3076 * libio/wstrops.c (_IO_wstr_jumps): Likewise.
3077 * stdio-common/vfprintf.c (_IO_helper_jumps): Likewise.
3079 2002-06-05 Jakub Jelinek <jakub@redhat.com>
3081 * libio/Makefile (tests): Add tst-mmap-setvbuf.
3082 * libio/tst-mmap-setvbuf.c: New test.
3084 2002-06-21 Andreas Jaeger <aj@suse.de>
3086 * sysdeps/i386/fpu/libm-test-ulps: Add some ulps from my P3.
3088 2002-06-18 Jakub Jelinek <jakub@redhat.com>
3090 * include/unistd.h (__fork_internal): Remove.
3091 (__fork): Don't define to __fork_internal.
3092 * sysdeps/mach/hurd/fork.c (__fork): Remove INTDEF.
3093 * sysdeps/unix/sysv/aix/fork.c (__fork): Likewise.
3094 * sysdeps/unix/sysv/linux/ia64/fork.S (__fork_internal): Remove alias.
3095 * sysdeps/unix/sysv/linux/sparc/fork.S (__fork_internal): Likewise.
3096 * sysdeps/unix/sysv/linux/syscalls.list (__fork_internal): Likewise.
3098 2002-06-20 Ulrich Drepper <drepper@redhat.com>
3100 * po/hr.po: New file.
3102 2002-06-11 Wolfram Gloger <wg@malloc.de>
3104 * malloc/malloc.c: Fix error path when new_heap() returns NULL.
3105 Reported by Michael Meissner <meissner@redhat.com>.
3107 2002-06-20 Ulrich Drepper <drepper@redhat.com>
3109 * sysdeps/unix/sysv/linux/ia64/getcontext.S: Fix typo.
3110 Patch by Hans Boehm <hans_boehm@hp.com>.
3112 2002-06-20 Andreas Jaeger <aj@suse.de>
3114 * math/libm-test.inc: Use exact values as input parameters,
3115 compute output parameters with 36 digits for 128-bit long doubles.
3116 * sysdeps/i386/fpu/libm-test-ulps: Regenerated.
3117 * sysdeps/x86-64/fpu/libm-test-ulps: Regenerated.
3118 * sysdeps/ia64/fpu/libm-test-ulps: Regenerated.
3120 2002-06-13 Stephen L Moshier <steve@moshier.net>
3122 * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Fix cases in which
3123 argument or result is subnormal.
3125 2002-06-19 Ulrich Drepper <drepper@redhat.com>
3127 * sysdeps/i386/fpu/s_remquo.S: Fix three mistakes in computing the
3129 * sysdeps/i386/fpu/s_remquof.S: Likewise.
3130 * sysdeps/i386/fpu/s_remquol.S: Likewise.
3132 * sysdeps/hppa/dl-machine.h: Don't use multi-line string literals.
3134 2002-06-17 David Mosberger <davidm@hpl.hp.com>
3136 * sysdeps/unix/sysv/linux/ia64/sys/ucontext.h (uc_sigmask): Fix
3137 typo: corresponding sigcontext field is called sc_mask, not sc_sigmask.
3138 Reported by Peter A. Buhr.
3140 2002-06-15 Roland McGrath <roland@frob.com>
3142 * sysdeps/mach/hurd/mmap.c (__mmap): Add a dead case that quiets a
3145 * sysdeps/mach/hurd/getcwd.c
3146 (_hurd_canonicalize_directory_name_internal): unsigned int -> size_t
3148 * sysdeps/unix/sysv/linux/bits/ustat.h: Moved to ...
3149 * sysdeps/generic/bits/ustat.h: ... here (was almost identical).
3151 * sysdeps/alpha/divrem.h: Use local label instead of global one for
3152 jump to local subroutine.
3154 2002-06-14 Roland McGrath <roland@frob.com>
3156 * sysdeps/mach/hurd/i386/Makeconfig: File moved to ...
3157 * sysdeps/mach/hurd/Makeconfig: ... here.
3159 2002-06-13 Andreas Schwab <schwab@suse.de>
3161 * sysdeps/m68k/fpu/s_finite.c: Remove INTDEF.
3162 * sysdeps/m68k/fpu/s_finitef.c: Likewise.
3163 * sysdeps/m68k/fpu/s_finitel.c: Likewise.
3165 2002-06-13 Roland McGrath <roland@frob.com>
3167 * hurd/hurdstartup.h (_hurd_startup): int -> intptr_t in MAIN arg type.
3168 * hurd/hurdstartup.c (_hurd_startup): Likewise.
3169 Use intptr_t instead of int for argc in stack layout.
3170 * sysdeps/mach/hurd/alpha/init-first.c (init): Fix argument type.
3171 (_dl_init_first): Likewise.
3172 (_hurd_stack_setup): Likewise.
3173 (init1): Add a cast.
3174 * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start: go): Fix arg type.
3176 * sysdeps/mach/hurd/if_index.c (if_nameindex): Use size_t for AMOUNT
3177 argument to pfinet_siocgifconf RPC.
3179 2002-06-13 Andreas Schwab <schwab@suse.de>
3181 * sysdeps/m68k/fpu/s_isinf.c (INTDEFX): Define to get correct
3184 2002-06-12 Roland McGrath <roland@frob.com>
3186 * sysdeps/generic/tmpfile.c [USE_IN_LIBIO] (tmpfile): Don't #define
3188 [USE_IN_LIBIO]: Conditionalize versioned_symbol use on
3189 [GEN_THIS == __GT_FILE] so that tmpfile64.c's inclusion doesn't get it.
3191 2002-06-11 Roland McGrath <roland@frob.com>
3193 * sysdeps/mach/hurd/xstat64.c: Conditionalize entire contents of the
3194 file on [!RTLD_STAT64].
3195 * sysdeps/mach/hurd/fxstat64.c: Likewise.
3197 * sysdeps/mach/hurd/tmpfile.c (tmpfile64): Define as alias of tmpfile.
3198 (__fdopen): Use INTUSE.
3199 * sysdeps/mach/hurd/tmpfile64.c: New file, empty placeholder.
3201 * stdio-common/tmpfile64.c: File removed.
3202 * sysdeps/generic/tmpfile64.c: New file.
3203 * sysdeps/generic/tmpfile.c (GEN_THIS): New macro, define to __GT_FILE
3204 if not already defined.
3205 (tmpfile): Use it in place of __GT_FILE.
3207 * include/unistd.h: Declare __chown_internal.
3209 * sysdeps/mach/hurd/sendfile64.c (sendfile64): Do real work here.
3210 * sysdeps/mach/hurd/sendfile.c (sendfile): Call that.
3212 2002-06-09 Roland McGrath <roland@frob.com>
3214 Update to new Hurd RPC interfaces supporting 64-bit file sizes.
3215 * sysdeps/mach/hurd/configure.in: Check for <hurd/version.h> with
3216 value of HURD_INTERFACE_VERSION >= 20020609.
3217 * sysdeps/mach/hurd/configure: Regenerated.
3218 * shlib-versions (.*-.*-gnu-gnu.*): Set libhurduser=0.3.
3219 * sysdeps/mach/hurd/xstatconv.c (xstat64_conv): Rewritten to
3220 convert a struct stat64 into a struct stat and return 0 or -1
3221 with errno set to EOVERFLOW.
3222 * sysdeps/mach/hurd/statfsconv.c (statfs64_conv): Likewise
3223 for struct statfs64 to struct statfs.
3224 * sysdeps/mach/hurd/xstat.c (__xstat): Use converter and call ...
3225 * sysdeps/mach/hurd/xstat64.c (__xstat64): ... this, real work here.
3226 * sysdeps/mach/hurd/fxstat.c (__fxstat): Likewise.
3227 * sysdeps/mach/hurd/fxstat64.c (__fxstat64): Likewise.
3228 * sysdeps/mach/hurd/lxstat.c (__lxstat): Likewise.
3229 * sysdeps/mach/hurd/lxstat64.c (__lxstat64): Likewise.
3230 * sysdeps/mach/hurd/statfs.c (__statfs): Likewise.
3231 * sysdeps/mach/hurd/statfs64.c (__statfs64): Likewise.
3232 * sysdeps/mach/hurd/fstatfs.c (__fstatfs): Likewise.
3233 * sysdeps/mach/hurd/fstatfs64.c (__fstatfs64): Likewise.
3234 * sysdeps/mach/hurd/pwrite64.c (__libc_pwrite64): Do real work here.
3235 * sysdeps/mach/hurd/pwrite.c (__libc_pwrite): Call that.
3236 * sysdeps/mach/hurd/pread64.c (__libc_pread64): Do real work here.
3237 * sysdeps/mach/hurd/pread.c (__libc_pread): Call that.
3238 * sysdeps/mach/hurd/lseek64.c (__libc_lseek64): Do real work here.
3239 * sysdeps/mach/hurd/lseek.c (__libc_lseek): Call that.
3240 * sysdeps/mach/hurd/readdir64.c (__readdir64): Do real work here.
3241 * sysdeps/mach/hurd/readdir.c (__readdir): Call that.
3242 * sysdeps/mach/hurd/readdir64_r.c (__readdir64_r): Do real work here.
3243 * sysdeps/mach/hurd/readdir_r.c (__readdir64_r): Call that.
3244 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry):
3245 Use struct stat64 for io_stat argument.
3246 * sysdeps/mach/hurd/readlink.c (__readlink): Likewise.
3247 * hurd/fopenport.c (seekio): Remove EOVERFLOW check, pass POS directly
3249 * hurd/fd-read.c (_hurd_fd_read): Use loff_t for OFFSET argument.
3250 * hurd/fd-write.c (_hurd_fd_write): Likewise.
3251 * hurd/hurd/fd.h: Update decls.
3252 * sysdeps/mach/hurd/getcwd.c
3253 (_hurd_canonicalize_directory_name_internal): Use ino64_t
3254 and struct dirent64.
3255 * sysdeps/mach/hurd/dl-sysdep.c (open_file): Use struct stat64.
3256 (__xstat): Renamed to __xstat64, use struct stat64 for argument.
3257 (__fxstat): Renamed to __fxstat64, use struct stat64 for argument.
3258 (__lseek): Renamed to __libc_lseek64, use off64_t for argument.
3260 2002-06-08 Roland McGrath <roland@frob.com>
3262 * sysdeps/mach/hurd/dirstream.h (struct __dirstream): Use size_t
3263 instead of unsigned long int for __allocation and __size members.
3265 2002-06-09 Jakub Jelinek <jakub@redhat.com>
3267 * sysdeps/unix/sysv/linux/i386/dl-brk.c: Move...
3268 * sysdeps/unix/sysv/linux/dl-brk.c: ...here.
3269 * sysdeps/unix/sysv/linux/i386/dl-sbrk.c: Move...
3270 * sysdeps/unix/sysv/linux/dl-sbrk.c: ...here.
3272 2002-06-07 Roland McGrath <roland@frob.com>
3274 * sysdeps/mach/hurd/bits/environments.h: File removed.
3276 2002-06-07 Jakub Jelinek <jakub@redhat.com>
3278 * sysdeps/unix/sysv/linux/alpha/sendfile64.c: New file.
3279 * sysdeps/unix/sysv/linux/ia64/sendfile64.c: New file.
3280 * sysdeps/unix/sysv/linux/sparc/sparc64/sendfile64.c: New file.
3281 * sysdeps/unix/sysv/linux/x86_64/sendfile64.c: New file.
3282 * sysdeps/unix/sysv/linux/syscalls.list (sendfile): Remove EXTRA.
3283 (sendfile64): Likewise.
3284 * sysdeps/unix/sysv/linux/alpha/syscalls.list (sendfile): Likewise.
3285 * sysdeps/unix/sysv/linux/ia64/syscalls.list (sendfile): Likewise.
3286 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list (sendfile):
3288 * sysdeps/unix/sysv/linux/x86_64/syscalls.list (sendfile): Likewise.
3290 * include/sys/stat.h (__fxstat64, __lxstat64): Only define if not
3293 2002-06-04 Bruno Haible <bruno@clisp.org>
3295 * sysdeps/cris/stackinfo.h: New file.
3297 * sysdeps/hppa/dl-machine.h (elf_machine_rela): Cast reloc_addr
3298 to an integer type before performing bit operations on it.
3300 2002-06-05 Roland McGrath <roland@frob.com>
3302 * sysdeps/generic/sendfile.c: Include <errno.h>.
3303 * sysdeps/generic/sendfile64.c: Likewise.
3305 * io/Makefile (routines): Add sendfile and sendfile64.
3306 (headers): Add sys/sendfile.h to the list.
3307 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Don't add it here.
3308 * sysdeps/unix/sysv/linux/sys/sendfile.h: Moved to ...
3309 * io/sys/sendfile.h: ... here.
3310 * sysdeps/generic/sendfile.c: New file.
3311 * sysdeps/generic/sendfile64.c: New file.
3313 * sysdeps/unix/sysv/linux/Versions (GLIBC_2.1, GLIBC_2.3):
3314 Move sendfile, sendfile64 to ...
3315 * io/Versions (GLIBC_2.1, GLIBC_2.3): ... here.
3316 * sysdeps/mach/hurd/sendfile.c: New file.
3317 * sysdeps/mach/hurd/sendfile64.c: New file.
3319 * sysdeps/mach/nanosleep.c: New file.
3321 2002-06-04 Roland McGrath <roland@frob.com>
3323 * sysdeps/alpha/elf/configure.in: New file. Check for TLS support.
3324 * sysdeps/alpha/elf/configure: New file (generated).
3326 2002-06-02 Roland McGrath <roland@frob.com>
3328 * include/link.h: Include <tls.h> to make sure USE_TLS is defined.
3330 2002-06-01 Roland McGrath <roland@frob.com>
3332 * sysdeps/mach/hurd/alpha/init-first.c: New file, modified from
3333 i386/init-first.c by Andrew M. Miklic <miklic@attglobal.net>.
3335 2002-05-19 Ulrich Drepper <drepper@redhat.com>
3337 * resolv/resolv.h (struct __res_state): Remove unused nstimes.
3339 * resolv/res_init.c (__res_vinit): Initialize nsmap array.
3340 Remove nstimes setting.
3341 (res_nclose): Check all MAXNS nameservers with non-NULL nsaddrs.
3342 * resolv/res_send.c (res_nsend): Don't close unconditionally if
3343 there is mix of IPv6 and IPv4 nameservers.
3344 Use nsmap array to find free slots and preserve nameserver ordering.
3347 2002-05-30 Ulrich Drepper <drepper@redhat.com>
3349 * sysdeps/unix/sysv/linux/sys/sendfile.h: It is now possible to
3350 use this header with LFS.
3352 * po/sk.po: Update from translation team.
3354 2002-05-28 Andreas Schwab <schwab@suse.de>
3356 * sysdeps/generic/readelflib.c (process_elf_file): Give correct
3357 message when finding object of wrong class.
3359 2002-05-28 Jakub Jelinek <jakub@redhat.com>
3361 * sysdeps/wordsize-32/divdi3.c (__moddi3): Fix pasto.
3362 Patch by <radu@netsoft.ro>.
3364 2002-05-30 Ulrich Drepper <drepper@redhat.com>
3366 * sysdeps/unix/sysv/linux/Makefile [$(subdir)==misc] (sysdep_routines):
3368 * sysdeps/unix/sysv/linux/readahead.c: New file.
3369 * sysdeps/unix/sysv/linux/syscalls.list: Add sendfile64 syscall.
3370 * sysdeps/unix/sysv/linux/Versions: Export readahead and sendfile64.
3371 * sysdeps/unix/sysv/linux/alpha/syscalls.list: Add readahead syscall.
3372 Add sendfile64 alias to sendfile syscall.
3373 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
3374 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
3375 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
3376 * sysdeps/unix/sysv/linux/powerpc/syscalls.list: Add s_readahead
3379 * sysdeps/unix/sysv/linux/i386/sysdep.h: Use __i686.get_pc_thunk.XX
3380 special section for PIC register loading.
3381 * sysdeps/unix/sysv/linux/i386/i686/sysdep.h: Likewise.
3383 * config.h.in: Define HAVE_HIDDEN.
3384 * configure.in: Also define HAVE_HIDDEN if HAVE_PROTECTED is defined.
3386 * elf/elf.h: Correct Alpha TLS relocations according to last spec.
3388 2002-05-28 Roland McGrath <roland@frob.com>
3390 * sysdeps/mach/alpha/setfpucw.c: New file.
3392 2002-05-26 Roland McGrath <roland@frob.com>
3394 * sysdeps/mach/hurd/ioctl.c (__ioctl): Don't use sizeof in _IOTS.
3395 Use integer_t instead of int for IOC_VOID case.
3397 2002-05-27 Alexandre Oliva <aoliva@redhat.com>
3399 * configure.in (DO_STATIC_NSS): Define if --disable-shared.
3401 2002-05-26 Bruno Haible <bruno@clisp.org>
3403 * iconvdata/iso-2022-jp.c (BODY for TO_LOOP): Avoid running off the
3404 end of the ISO-8859-7 from idx table.
3406 2002-05-27 Ulrich Drepper <drepper@redhat.com>
3408 * manual/lang.texi: Fix FLT_EPSILON description [PR libc/3649].
3410 2002-05-24 David S. Miller <davem@redhat.com>
3412 * string/bits/string2.h (memset): Do not try to optimize when
3413 not _STRING_ARCH_unaligned if GCC will do the right thing.
3415 2002-05-21 Isamu Hasegawa <isamu@yamato.ibm.com>
3417 * posix/regex.c: Define `inline' as a macro into nothing for the
3418 compilers which lack the keyword.
3419 * posix/regex.h: (RE_SYNTAX_GNU_AWK): Remove RE_CONTEXT_INVALID_OPS
3420 for the compatibility of gawk.
3421 * posix/regcomp.c: Add fake implementation of isblank() for the
3422 environments which lack the function.
3423 Don't use free_charset() in case of non-i18n envs.
3424 (build_range_exp): Don't use i18n related code in case of non-i18n
3426 (build_collating_symbol): Likewise.
3427 (build_equiv_class): Likewise.
3428 (build_charclass): Likewise.
3429 (re_compile_fastmap_iter): Likewise.
3430 (parse_bracket_exp): Likewise.
3431 (build_word_op): Likewise.
3432 (regfree): Don't use free_charset() in case of non-i18n envs.
3433 * posix/regex_internal.h: Remove COMPLEX_BRACKET from
3434 re_token_type_t in case of non-i18n envs.
3435 Don't define re_charset_t in case of non-i18n envs.
3436 Change the type of wcs of re_string_t from wchar_t to wint_t,
3437 since we store also WEOF.
3438 * posix/regex_internal.c: (re_string_realloc_buffers): Change
3439 the type of wcs of re_string_t from wchar_t to wint_t.
3440 (re_string_reconstruct): Likewise.
3441 (create_ci_newstate): Don't use i18n related code in case of
3443 (create_cd_newstate): Likewise.
3445 2002-05-24 Ulrich Drepper <drepper@redhat.com>
3447 * iconv/loop.c: Fix typo.
3449 2002-05-23 Jakub Jelinek <jakub@redhat.com>
3451 * inet/ether_line.c (ether_line): Fix a typo causing only
3452 lower 4 bits of each ethernet address byte being assigned.
3453 Don't modify what line points to.
3454 * inet/tst-ether_aton.c (main): Add ether_line tests.
3456 2002-05-23 Marcus Brinkmann <marcus@gnu.org>
3458 * manual/filesys.texi: Don't make readlink example leak memory
3459 when readlink fails.
3461 2002-05-20 Ulrich Drepper <drepper@redhat.com>
3463 * iconv/loop.c: Fix condition for defining unaligned loop. Add
3464 some more security checks.
3466 2002-05-17 David S. Miller <davem@redhat.com>
3468 * sysdeps/unix/sysv/linux/sparc/fork.S: Define _internal aliases.
3470 2002-05-16 David S. Miller <davem@redhat.com>
3472 * sysdeps/sparc/sparc32/dl-machine.h (LOAD_PIC_REG): Define.
3473 (elf_machine_dynamic): Use it to force PIC register to be loaded.
3474 (elf_machine_load_address): Likewise.
3475 * sysdeps/sparc/sparc64/dl-machine.h: Mirror sparc32 changes.
3477 * sysdeps/sparc/sparc64/strncmp.S: When second argument pointer
3478 is unaligned, do not forget to fully initialize %g1 magic value.
3480 * sysdeps/unix/sysv/linux/sparc/sys/procfs.h: Fix 64-bit elf
3481 register definitions and provide 32-bit variants of structures
3482 during 64-bit builds.
3484 * soft-fp/op-1.h (_FP_FRAC_CLEAR_OVERP_1): Define.
3485 * soft-fp/op-2.h (_FP_FRAC_CLEAR_OVERP_2): Define.
3486 * soft-fp/op-4.h (_FP_FRAC_CLEAR_OVERP_4): Define.
3487 * soft-fp/op-common.h (_FP_PACK_CANONICAL): After rounding, if
3488 _FP_FRAC_OVERP_X is set, use _FP_FRAC_CLEAR_OVERP_X to clear it.
3489 (_FP_FROM_INT): Perform right shifts on unsigned integer type.
3490 Do not clear implicit one bit here, it must be done post-rounding.
3491 Only pad to the left using left shift if value uses less than the
3492 available fractional bits.
3494 2002-05-20 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
3496 * sysdeps/powerpc/Makefile (sysdeps_routines): Use libgcc-compat
3497 instead of cmpdi2, shdi3, fixdfdi, fixsfdi in csu dir.
3498 (shared-only-routines): Likewise.
3499 * sysdeps/powerpc/libgcc-compat.c: New file.
3500 * sysdeps/wordsize-32/cmpdi2.c: Removed.
3501 * sysdeps/wordsize-32/fixdfdi.c: Removed.
3502 * sysdeps/wordsize-32/fixsfdi.c: Removed.
3503 * sysdeps/wordsize-32/shdi3.c: Removed.
3505 2002-05-16 Bruno Haible <bruno@clisp.org>
3507 * MakeTAGS (libc.pot): Don't sort the output.
3508 * po/header.pot: Update to match xgettext 0.11 output.
3510 2002-05-16 Bruno Haible <bruno@clisp.org>
3512 * MakeTAGS (subdirs): Remove duplicates.
3514 2002-05-19 Ulrich Drepper <drepper@redhat.com>
3516 * sysdeps/unix/sysv/linux/errlist.c: Remove extra weak alias
3517 definiton of _old_sys_nerr. Define _old_sys_errlist as strong
3520 2002-05-19 Andreas Jaeger <aj@suse.de>
3522 * sysdeps/unix/sysv/linux/configure.in: Warn against an
3523 installation in /usr/local.
3525 2002-05-16 Bruno Haible <bruno@clisp.org>
3527 * sysdeps/unix/sysv/aix/bits/ioctl-types.h: Don't use multiline
3528 string as argument of #error.
3530 2002-05-15 Ulrich Drepper <drepper@redhat.com>
3532 * stdlib/canonicalize.c (canonicalize): Rename to __realpath and
3533 don't define static. Remove old __realpath function. TC1 of
3534 POSIX 2001 will allow the second parameter to be NULL.
3535 * stdlib/test-canon.c: Comment out test for NULL as second
3536 parameter of realpath.
3538 * time/offtime.c (__offtime): Set errno if overflow is detected.
3540 * elf/Makefile (rtld-routines): Remove dl-brk and dl-sbrk.
3541 * sysdeps/unix/sysv/linux/Makefile (sysdep-rtld-routines): Add
3544 * sysdeps/sparc/fpu/bits/mathinline.h (fdim): Add __THROW.
3547 2002-05-15 Roland McGrath <roland@frob.com>
3549 * hurd/report-wait.c (_S_msg_report_wait): Use mach_msg_id_t for arg.
3551 2002-05-12 Bruno Haible <bruno@clisp.org>
3553 * iconvdata/testdata/EUC-JISX0213: New file.
3554 * iconvdata/testdata/EUC-JISX0213..UTF8: New file.
3555 * iconvdata/testdata/SHIFT_JISX0213: New file.
3556 * iconvdata/testdata/SHIFT_JISX0213..UTF8: New file.
3557 * iconvdata/testdata/ISO-2022-JP-3: New file.
3558 * iconvdata/testdata/ISO-2022-JP-3..UTF8: New file.
3559 * iconvdata/TESTS: Add EUC-JISX0213, SHIFT_JISX0213, ISO-2022-JP-3.
3560 * iconvdata/run-iconv-test.sh: Skip the charmap test if the charmap
3561 contains comments indicating precomposed characters.
3563 2002-04-21 Bruno Haible <bruno@clisp.org>
3565 * iconvdata/iso-2022-jp-3.c: New file.
3566 * iconvdata/gconv-modules (ISO-2022-JP-3): New module.
3567 * iconvdata/Makefile (modules): Add ISO-2022-JP-3.
3568 (LDFLAGS-ISO-2022-JP-3.so): New variable.
3569 (ISO-2022-JP-3.so): Depend on libJIS.so and libJISX0213.so.
3570 (distribute): Add iso-2022-jp-3.c.
3572 2002-05-12 Bruno Haible <bruno@clisp.org>
3574 * iconvdata/tst-table-to.c (main): Restore handling of
3575 transliterations, broken by last patch.
3577 2002-05-12 Bruno Haible <bruno@clisp.org>
3579 * iconvdata/TESTS: Add IBM922, IBM1124, IBM1129.
3581 2002-05-12 Bruno Haible <bruno@clisp.org>
3583 * iconvdata/euc-jisx0213.c (BODY for FROM_LOOP): Don't advance inptr
3584 when there is not enough room in the output buffer.
3585 * iconvdata/shift_jisx0213.c (BODY for FROM_LOOP): Likewise.
3587 2002-04-20 Bruno Haible <bruno@clisp.org>
3589 * iconv/skeleton.c ({FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO}): New
3591 (RESET_INPUT_BUFFER): Use them instead of {MIN,MAX}_NEEDED_{FROM,TO}.
3592 Also make this macro work if FROM_DIRECTION evaluates to 0.
3593 (gconv_init): Use the new macros instead of {MIN,MAX}_NEEDED_{FROM,TO}.
3594 (FUNCTION_NAME): Likewise, in the handling of unaligned accesses and
3595 of consume_incomplete.
3596 * iconvdata/cp1255.c: Define {FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO}
3597 instead of {MIN,MAX}_NEEDED_{FROM,TO}. Set FROM_LOOP_MAX_NEEDED_TO to
3599 * iconvdata/cp1258.c: Likewise.
3600 * iconvdata/ibm930.c: Define {FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO}
3601 instead of {MIN,MAX}_NEEDED_{FROM,TO}. Set TO_LOOP_MAX_NEEDED_TO to 3,
3603 * iconvdata/ibm933.c: Likewise.
3604 * iconvdata/ibm935.c: Likewise.
3605 * iconvdata/ibm937.c: Likewise.
3606 * iconvdata/ibm939.c: Likewise.
3607 * iconvdata/iso-2022-cn.c: Define
3608 {FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO} instead of
3609 {MIN,MAX}_NEEDED_{FROM,TO}. Set TO_LOOP_MAX_NEEDED_TO to 6, not 4.
3610 * iconvdata/iso-2022-cn-ext.c: Likewise.
3611 * iconvdata/iso-2022-jp.c: Define
3612 {FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO} instead of
3613 {MIN,MAX}_NEEDED_{FROM,TO}.
3614 * iconvdata/tcvn5712-1.c: Define
3615 {FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO} instead of
3616 {MIN,MAX}_NEEDED_{FROM,TO}. Set FROM_LOOP_MAX_NEEDED_FROM to 1, not 2.
3617 * iconvdata/euc-jisx0213.c: Define
3618 {FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO} instead of
3619 {MIN,MAX}_NEEDED_{FROM,TO}. Set FROM_LOOP_MAX_NEEDED_TO to 8, not 4.
3620 * iconvdata/shift_jisx0213.c: Likewise.
3622 2002-05-14 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
3624 * sysdeps/powerpc/Makefile (sysdeps_routines): Add divdi3, cmpdi2,
3625 shdi3, fixdfdi, fixsfdi in csu dir.
3626 (shared-only-routines): Likewise.
3627 * sysdeps/wordsize-32/cmpdi2.c: New file.
3628 * sysdeps/wordsize-32/shdi3.c: New file.
3629 * sysdeps/wordsize-32/fixdfdi.c: New file.
3630 * sysdeps/wordsize-32/fixsfdi.c: New file.
3631 * sysdeps/powerpc/Versions (__divdi3, __moddi3, __udivdi3, __umoddi3,
3632 __ashldi3, __ashrdi3, __lshrdi3, __cmpdi2, __ucmpdi2, __fixdfdi,
3633 __fixsfdi, __fixunsdfdi, __fixunssfdi): Export at GLIBC_2.0.
3635 * sysdeps/unix/sysv/linux/semctl.c (__old_semctl, __new_semctl):
3636 Only use va_arg if the argument will be used [PR libc/3259].
3638 2002-05-06 Michael A. Schmidt <mmaass@us.ibm.com>
3640 * catgets/catgets.c (catopen): Free buffer if internal catalog
3643 2002-05-14 Ulrich Drepper <drepper@redhat.com>
3645 * debug/xtrace.sh: Make more robust. For realtime tracking use
3646 non-buffering methods.
3647 * debug/pcprofiledump.c: Implement -u option.
3648 Patch by Roger Luethi <rl@hellgate.ch>.
3650 2002-05-11 Jakub Jelinek <jakub@redhat.com>
3652 * include/netinet/in.h (bindresvport_internal): Add prototype.
3653 * include/rpc/auth.h (authunix_create_internal,
3654 authunix_create_default_internal, authnone_create_internal,
3655 authdes_pk_create_internal): Add prototypes.
3656 * include/rpc/clnt.h (clnt_create_internal, clnttcp_create_internal,
3657 clntudp_create_internal, clntudp_bufcreate_internal,
3658 clntunix_create_internal): Add prototypes.
3659 * include/rpc/svc.h (svc_sendreply_internal, svcerr_decode_internal,
3660 svc_getreq_internal, svc_getreq_common_internal,
3661 svc_getreqset_internal, svc_getreq_poll_internal,
3662 svc_register_internal, svc_unregister_internal,
3663 svcudp_create_internal, svcudp_bufcreate_internal): Add prototypes.
3664 * include/rpc/svc_auth.h (_authenticate_internal): Add prototype.
3665 * include/sys/socket.h (__sendto, __recvfrom, __sendmsg, __recvmsg,
3666 __setsockopt, __getsockname, __bind, __listen): Add prototypes.
3667 * inet/rexec.c (rexec_af): Use __listen and __getsockname.
3668 * inet/rcmd.c (rcmd_af): Use __listen.
3669 (rresvport_af): Use __bind.
3670 * sunrpc/clnt_udp.c: Use INTUSE calls to bindresvport,
3671 authunix_create, authunix_create_default, authnone_create,
3672 authdes_pk_create, clnt_create, clnttcp_create, clntudp_create,
3673 clntudp_bufcreate, clntunix_create svc_sendreply, svcerr_decode,
3674 svc_getreq, svc_getreq_common, svc_getreqset, svc_getreq_poll,
3675 svc_register, svc_unregister, svcudp_create, svcudp_bufcreate,
3676 _authenticate, add INTDEF after such function definitions.
3677 Use __listen, __bind, __sendto, __recvfrom, __sendmsg, __recvmsg,
3678 __setsockopt, __getsockname instead of non-__ variants.
3679 * sunrpc/pmap_rmt.c: Likewise.
3680 * sunrpc/rtime.c: Likewise.
3681 * sunrpc/svc_udp.c: Likewise.
3682 * sunrpc/clnt_unix.c: Likewise.
3683 * sunrpc/svc_unix.c: Likewise.
3684 * sunrpc/bindrsvprt.c: Likewise.
3685 * sunrpc/svc_tcp.c: Likewise.
3686 * sunrpc/auth_none.c: Likewise.
3687 * sunrpc/clnt_raw.c: Likewise.
3688 * sunrpc/clnt_tcp.c: Likewise.
3689 * sunrpc/auth_unix.c: Likewise.
3690 * sunrpc/key_call.c: Likewise.
3691 * sunrpc/clnt_gen.c: Likewise.
3692 * sunrpc/pm_getmaps.c: Likewise.
3693 * sunrpc/clnt_simp.c: Likewise.
3694 * sunrpc/pmap_clnt.c: Likewise.
3695 * sunrpc/svc_run.c: Likewise.
3696 * sunrpc/svc.c: Likewise.
3697 * sunrpc/svc_simple.c: Likewise.
3698 * sunrpc/pm_getport.c: Likewise.
3699 * sunrpc/auth_des.c: Likewise.
3700 * sunrpc/svc_auth.c: Likewise.
3701 * sysdeps/generic/unwind-dw2-fde.c (__register_frame_info_bases,
3702 __register_frame_info_table_bases, __deregister_frame_info_bases):
3704 (__register_frame_info_bases_internal,
3705 __register_frame_info_table_bases_internal,
3706 __deregister_frame_info_bases_internal): Add prototypes.
3707 (__register_frame_info, __register_frame): Use INTUSE in call to
3708 __register_frame_info_bases.
3709 (__register_frame_info_table): Similarly.
3710 (__deregister_frame_info, __deregister_frame): Similarly.
3711 * sysdeps/generic/sendto.c (__sendto): Renamed from sendto, add
3712 sendto as weak alias.
3713 * sysdeps/mach/hurd/sendto.c: Likewise.
3714 * sysdeps/generic/recvfrom.c (__recvfrom): Renamed from recvfrom, add
3715 recvfrom as weak alias.
3716 * sysdeps/mach/hurd/recvfrom.c: Likewise.
3717 * sysdeps/unix/sysv/aix/recvfrom.c: Likewise.
3718 * sysdeps/generic/recvmsg.c (__recvmsg): Renamed from recvmsg, add
3719 recvmsg as weak alias.
3720 * sysdeps/unix/sysv/aix/recvmsg.c: Likewise.
3721 * sysdeps/generic/sendmsg.c (__sendmsg): Renamed from sendmsg, add
3722 sendmsg as weak alias.
3723 * sysdeps/unix/sysv/aix/sendmsg.c: Likewise.
3724 * sysdeps/generic/setsockopt.c (__setsockopt): Renamed from
3725 setsockopt, add setsockopt as weak alias.
3726 * sysdeps/mach/hurd/setsockopt.c: Likewise.
3727 * sysdeps/generic/bind.c (__bind): Renamed from bind, add bind as
3729 * sysdeps/mach/hurd/bind.c: Likewise.
3730 * sysdeps/generic/listen.c (__listen): Renamed from listen, add listen
3732 * sysdeps/mach/hurd/listen.c: Likewise.
3733 * sysdeps/generic/getsockname.c (__getsockname): Renamed from
3734 getsockname, add getsockname as weak alias.
3735 * sysdeps/mach/hurd/getsockname.c: Likewise.
3736 * sysdeps/unix/sysv/aix/getsockname.c: Likewise.
3737 * sysdeps/mach/hurd/recvmsg.c (__recvmsg): Add weak alias.
3738 * sysdeps/mach/hurd/sendmsg.c (__sendmsg): Add weak alias.
3739 * sysdeps/unix/inet/syscalls.list (__bind, __listen, __recvmsg,
3740 __recvfrom, __sendmsg, __sendto, __setsockopt): Add aliases.
3741 * sysdeps/unix/sysv/linux/alpha/syscalls.list (__recvmsg, __sendmsg):
3743 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
3744 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
3745 * sysdeps/unix/sysv/linux/hppa/syscalls.list: Likewise.
3746 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
3747 * sysdeps/unix/sysv/linux/recvfrom.S (__recvfrom): Add weak alias.
3748 * sysdeps/unix/sysv/linux/recvmsg.S (__recvmsg): Likewise.
3749 * sysdeps/unix/sysv/linux/sendmsg.S (__sendmsg): Likewise.
3750 * sysdeps/unix/sysv/linux/sendto.S (__sendto): Likewise.
3751 * sysdeps/unix/sysv/linux/setsockopt.S (__setsockopt): Likewise.
3752 * sysdeps/unix/sysv/linux/bind.S (__bind): Likewise.
3753 * sysdeps/unix/sysv/linux/listen.S (__listen): Likewise.
3754 * sysdeps/unix/sysv/linux/getsockname.S (__getsockname): Likewise.
3756 2002-05-10 Jakub Jelinek <jakub@redhat.com>
3758 * locale/programs/localedef.h (show_archive_content): Add verbose
3760 * locale/programs/localedef.c (main): Adjust caller.
3761 * locale/programs/locarchive.c (struct nameent, struct dataent): New.
3762 (nameentcmp, dataentcmp): New functions.
3764 (show_archive_content): Print verbose listing with --list-archive -v.
3766 2002-05-14 Ulrich Drepper <drepper@redhat.com>
3768 * locale/programs/locarchive.c (open_archive): Take extra argument
3769 readonly. If true open file with O_RDONLY and don't create the
3770 archive if it doesn't exist.
3772 (close_archive): Don't do anything if fd element is -1.
3773 * locale/programs/localedef.h (open_archive): Adjust prototype.
3774 * locale/programs/locfile.c (write_all_categories): Adjust open_archive
3777 * malloc/malloc.c (__posix_memalign): Correct check for size of
3778 alignment value [PR libc/3444].
3780 * include/stdio.h: Remove references to old stdio implementation.
3782 * libio/Makefile (bug-ungetwc2-ENV): Define.
3784 2002-05-13 Roland McGrath <roland@frob.com>
3786 * iconv/gconv_charset.h (upstr): Add inline keyword, quiets warning.
3788 * hurd/hurdinit.c (_hurd_init): Use internal name _hurd_new_proc_init.
3790 2002-05-13 Marcus Brinkmann <marcus@gnu.org>
3792 * hurd/hurdchdir.c (_hurd_change_directory_port_from_name):
3793 Allocate three, not two, more than LEN when appending '/.'.
3794 * sysdeps/mach/hurd/chroot.c (chroot): Likewise. Don't check
3795 if NAME ends with '/.' if it is shorter than 2 chars.
3797 2002-05-12 Roland McGrath <roland@frob.com>
3799 * mach/Makefile ($(mach-syscalls:%=$(objpfx)%.S)): Make the generated
3800 files #include <sysdep.h> instead of <mach/machine/syscall_sw.h>.
3802 * hurd/hurdexec.c (_hurd_exec): Reauthenticate ports/dtable used in
3803 file_exec to effect svuid=euid, svgid=egid if that is not a no-op.
3805 2002-05-10 Jakub Jelinek <jakub@redhat.com>
3807 * sysdeps/ia64/Makefile: Remove extra endif.
3808 * sysdeps/ia64/ia64libgcc.S (__divsf3): Fix typo in symbol version.
3810 2002-05-10 Andreas Schwab <schwab@suse.de>
3812 * sysdeps/powerpc/fpu/w_sqrt.c: Add sqrtl alias.
3814 2002-05-09 Andreas Jaeger <aj@suse.de>
3816 * sysdeps/unix/sysv/linux/x86_64/sys/io.h: New.
3817 * sysdeps/unix/sysv/linux/x86_64/Dist: Add it.
3818 * sysdeps/unix/sysv/linux/x86_64/Makefile (sysdep_headers): Add it.
3820 * sysdeps/unix/sysv/linux/ia64/glob.c: Move to ...
3821 * sysdeps/wordsize-64/glob.c: ...here.
3822 * sysdeps/unix/sysv/linux/x86_64/glob.c: Remove.
3823 * sysdeps/unix/sysv/linux/s390/s390-64/glob.c: Remove.
3824 * sysdeps/unix/sysv/linux/sparc/sparc64/glob.c: Remove.
3826 2002-05-08 Roland McGrath <roland@frob.com>
3828 * hurd/hurdfchdir.c (_hurd_change_directory_port_from_fd): Use
3829 O_NOTRANS flag in "." lookup.
3831 2002-05-05 Ulrich Drepper <drepper@redhat.com>
3833 * malloc/mtrace.c: Comment out use of _mtrace_file and _mtrace_len.
3835 2002-05-04 Ulrich Drepper <drepper@redhat.com>
3837 * locale/duplocale.c (__duplocale): Update special members only
3838 when allocation succeeded.
3840 2002-05-03 Roland McGrath <roland@frob.com>
3842 * shlib-versions (.*-.*-gnu-gnu.*): Remove USE_IN_LIBIO conditionals;
3843 we can only build libc.so.0.3(GLIBC_2.2.6) now.
3845 2002-05-02 Jakub Jelinek <jakub@redhat.com>
3847 * sysdeps/ia64/Makefile: Add ia64libgcc in csu subdir.
3848 * sysdeps/ia64/Versions (__divtf3, __divdf3, __divsf3, __divdi3,
3849 __moddi3, __udivdi3, __umoddi3, __multi3): Export at GLIBC_2.0.
3850 * sysdeps/ia64/ia64libgcc.S: New file.
3852 2002-05-02 Ulrich Drepper <drepper@redhat.com>
3854 * sysdeps/generic/dl-tls.c (oom): Implement using _dl_fatal_printf.
3856 * malloc/memusage.c: Distinguish anonymous mmap.
3858 2002-05-01 Roland McGrath <roland@frob.com>
3860 * sysdeps/mach/hurd/close.c: #undef __close before function defn,
3861 and use INTDEF on it.
3862 * sysdeps/mach/hurd/fcntl.c: Use INTDEF2.
3864 * sysdeps/mach/hurd/dl-sysdep.c (errno): New variable.
3866 * sysdeps/mach/hurd/alpha/static-start.S: New file (unfinished).
3868 2002-05-01 Ulrich Drepper <drepper@redhat.com>
3870 * malloc/memusage.c: Add support for tracking mmap & friends.
3871 * malloc/memusage.sh: Implement -m/--mmap option.
3873 2002-04-30 Jakub Jelinek <jakub@redhat.com>
3875 * locale/programs/locarchive.c (create_archive): Add archivefname
3876 argument, create fname from it.
3877 (enlarge_archive): Honour output_prefix.
3878 (open_archive): Likewise.
3880 2002-04-30 Jakub Jelinek <jakub@redhat.com>
3882 * locale/programs/locarchive.c (add_locales_to_archive): Don't nest
3883 too many stpcpy macros.
3885 2002-04-26 Bruno Haible <bruno@clisp.org>
3887 * locale/programs/ld-collate.c (collate_read): Cast first argument
3890 2002-04-26 Bruno Haible <bruno@clisp.org>
3892 * include/libintl.h (__ngettext, __dngettext, __dcngettext,
3893 __dcngettext_internal): New declarations.
3894 (__gettext, __dgettext, __dcgettext, __dcgettext_internal): Add
3895 attribute declarations.
3897 2002-04-30 Roland McGrath <roland@frob.com>
3899 Removed old GNU stdio implementation; GNU libio is now the only option.
3900 * configure.in: Removed --enable-libio option and @stdio@ subst var.
3901 Define USE_IN_LIBIO unconditionally.
3902 * configure: Regenerated.
3903 * Makeconfig (stdio): Set to libio by default.
3904 * config.make.in (stdio): Variable removed.
3905 * sysdeps/unix/sysv/linux/configure.in: Don't set $stdio.
3906 * sysdeps/unix/sysv/linux/configure: Regenerated.
3907 * sysdeps/mach/hurd/configure.in: Don't test $stdio.
3908 * sysdeps/mach/hurd/configure: Regenerated.
3909 * stdio/.cvsignore: File removed.
3910 * stdio/Makefile: File removed.
3911 * stdio/Versions: File removed.
3912 * stdio/__fbufsize.c: File removed.
3913 * stdio/__flbf.c: File removed.
3914 * stdio/__fpending.c: File removed.
3915 * stdio/__fpurge.c: File removed.
3916 * stdio/__freadable.c: File removed.
3917 * stdio/__freading.c: File removed.
3918 * stdio/__fsetlocking.c: File removed.
3919 * stdio/__fwritable.c: File removed.
3920 * stdio/__fwriting.c: File removed.
3921 * stdio/clearerr.c: File removed.
3922 * stdio/fclose.c: File removed.
3923 * stdio/fcloseall.c: File removed.
3924 * stdio/feof.c: File removed.
3925 * stdio/ferror.c: File removed.
3926 * stdio/fflush.c: File removed.
3927 * stdio/fgetc.c: File removed.
3928 * stdio/fgetpos.c: File removed.
3929 * stdio/fgets.c: File removed.
3930 * stdio/fileno.c: File removed.
3931 * stdio/fmemopen.c: File removed.
3932 * stdio/fopen.c: File removed.
3933 * stdio/fopncook.c: File removed.
3934 * stdio/fputc.c: File removed.
3935 * stdio/fputs.c: File removed.
3936 * stdio/fread.c: File removed.
3937 * stdio/freopen.c: File removed.
3938 * stdio/fseek.c: File removed.
3939 * stdio/fsetpos.c: File removed.
3940 * stdio/ftell.c: File removed.
3941 * stdio/fwrite.c: File removed.
3942 * stdio/getc.c: File removed.
3943 * stdio/getchar.c: File removed.
3944 * stdio/getdelim.c: File removed.
3945 * stdio/gets.c: File removed.
3946 * stdio/glue.c: File removed.
3947 * stdio/internals.c: File removed.
3948 * stdio/linewrap.c: File removed.
3949 * stdio/linewrap.h: File removed.
3950 * stdio/memstream.c: File removed.
3951 * stdio/newstream.c: File removed.
3952 * stdio/obstream.c: File removed.
3953 * stdio/putc.c: File removed.
3954 * stdio/putchar.c: File removed.
3955 * stdio/puts.c: File removed.
3956 * stdio/rewind.c: File removed.
3957 * stdio/setbuf.c: File removed.
3958 * stdio/setbuffer.c: File removed.
3959 * stdio/setlinebuf.c: File removed.
3960 * stdio/setvbuf.c: File removed.
3961 * stdio/stdio.h: File removed.
3962 * stdio/ungetc.c: File removed.
3963 * stdio/vasprintf.c: File removed.
3964 * stdio/vscanf.c: File removed.
3965 * stdio/vsnprintf.c: File removed.
3966 * stdio/vsprintf.c: File removed.
3967 * stdio/vsscanf.c: File removed.
3968 * sysdeps/generic/defs.c: File removed.
3969 * sysdeps/generic/fdopen.c: File removed.
3970 * sysdeps/generic/pipestream.c: File removed.
3971 * sysdeps/generic/stdio_init.c: File removed.
3972 * sysdeps/generic/sysd-stdio.c: File removed.
3973 * sysdeps/generic/vdprintf.c: File removed.
3974 * sysdeps/mach/hurd/defs.c: File removed.
3975 * sysdeps/mach/hurd/fdopen.c: File removed.
3976 * sysdeps/mach/hurd/pipestream.c: File removed.
3977 * sysdeps/mach/hurd/stdio_init.c: File removed.
3978 * sysdeps/mach/hurd/sysd-stdio.c: File removed.
3979 * sysdeps/mach/hurd/vdprintf.c: File removed.
3980 * sysdeps/posix/defs.c: File removed.
3981 * sysdeps/posix/fdopen.c: File removed.
3982 * sysdeps/posix/pipestream.c: File removed.
3983 * sysdeps/posix/stdio_init.c: File removed.
3984 * sysdeps/posix/vdprintf.c: File removed.
3985 * sysdeps/unix/pipestream.c: File removed.
3986 * sysdeps/unix/sysv/sysd-stdio.c: File removed.
3987 * sysdeps/unix/sysv/sco3.2.4/pipestream.c: File removed.
3988 * sysdeps/unix/sysv/sysv4/pipestream.c: File removed.
3990 2002-04-29 Roland McGrath <roland@frob.com>
3992 * include/libc-symbols.h (link_warning): Use `unused' attribute.
3994 2002-04-28 Ulrich Drepper <drepper@redhat.com>
3996 * sysdeps/generic/tls.h: Describe what must be defined.
3998 * sysdeps/generic/glob.c (glob): Don't pass GLOB_NOMAGIC flag to
3999 glob_in_dir [PR libc/3385].
4000 * posix/globtest.sh: Add test case.
4002 * intl/loadmsgcat.c [!_LIBC] (_nl_init_domain_conv): Don't add
4005 2002-04-27 Ulrich Drepper <drepper@redhat.com>
4007 * sysdeps/unix/sysv/linux/ia64/fxstat.c: Fix a few issues with the
4008 _internal symbol handling.
4009 * sysdeps/unix/sysv/linux/ia64/lxstat.c: Likewise.
4011 2002-04-26 Ulrich Drepper <drepper@redhat.com>
4013 * sysdeps/ia64/fpu/s_finite.S: Define _internal aliases.
4014 * sysdeps/unix/sysv/linux/ia64/fork.S: Likewise.
4016 2002-04-26 Isamu Hasegawa <isamu@yamato.ibm.com>
4018 * posix/regcomp.c (re_compile_fastmap_iter): Fix fastmap in case of
4019 not _LIBC and RE_ENABLE_I18N.
4020 (build_range_exp): Implement for not _LIBC.
4021 (build_collating_symbol): Likewise.
4022 (parse_bracket_exp): Unify redundant error handlings.
4023 Don't erase mbcset for non matching list in multibyte envs.
4024 (build_word_op): Add '_' to matching list for \w operator.
4025 * posix/regex_internal.c (re_string_construct): Invoke
4026 build_upper_buffer in case of not RE_ENABLE_I18N.
4027 (re_string_reconstruct): Don't touch cur_state in case of not
4029 * posix/regex_internal.h (attribute_hidden): New macro in case of
4031 (re_charset_t): Define range_starts/ends in case of not _LIBC.
4032 * posix/regexec.c (sift_states_iter_mb): Hide in case of not
4034 (transit_state_mb): Likewise.
4035 (check_node_accept_bytes): Implement the code evaluating range
4036 expression in case of not _LIBC.
4037 (find_collation_sequence_value): Hide in case of not _LIBC.
4039 2002-04-26 Jakub Jelinek <jakub@redhat.com>
4041 * sysdeps/unix/sysv/linux/sparc/sparc32/semctl.c: Copied from
4043 (__old_semctl, __new_semctl): Only use va_arg if the argument will
4046 2002-04-26 Ulrich Drepper <drepper@redhat.com>
4048 * sysdeps/ia64/fpu/s_isinf.S: Fix definition of _internal names.
4050 * sysdeps/ia64/strncpy.S: Fix recovery code.
4051 Patch by David Mosberger <davidm@hpl.hp.com>.
4053 2002-04-24 Ulrich Drepper <drepper@redhat.com>
4055 * sysdeps/unix/sysv/linux/ia64/Versions [libc]: Add getunwind for
4058 2002-04-14 Bruno Haible <bruno@clisp.org>
4060 * posix/regex.c (re_max_failures): Add back symbol for binary
4063 2002-04-22 Isamu Hasegawa <isamu@yamato.ibm.com>
4065 * posix/regcomp.c (re_compile_internal): Adapt it to new interface
4066 of buffer building functions.
4067 * posix/regex_internal.c (re_string_allocate): New function.
4068 (re_string_realloc_buffers): New function.
4069 (re_string_skip_chars): New function.
4070 (re_string_reconstruct): New function.
4071 (re_string_construct): Adapt it to new interface of buffer building
4073 (re_string_construct_common): Likewise.
4074 (build_wcs_buffer): Likewise.
4075 (build_wcs_upper_buffer): Likewise.
4076 (build_upper_buffer): Likewise.
4077 (re_string_translate_buffer): Likewise.
4078 (re_string_context_at): Adapt it to variable length buffers.
4079 * posix/regex_internal.h (re_string_t): Add new fields to handle
4080 variable length buffers.
4081 (re_match_context_t): Likewise.
4082 * posix/regexec.c (re_search_internal): Adapt it to new interface
4083 of re_string_t and re_match_context_t.
4084 (acquire_init_state_context): Likewise.
4085 (check_matching): Likewise.
4086 (check_halt_state_context): Likewise.
4087 (proceed_next_node): Likewise.
4088 (set_regs): Likewise.
4089 (sift_states_backward): Likewise.
4090 (clean_state_log_if_need): Likewise.
4091 (sift_states_iter_mb): Likewise.
4092 (sift_states_iter_bkref): Likewise.
4093 (add_epsilon_backreference): Likewise.
4094 (transit_state): Likewise.
4095 (transit_state_sb): Likewise.
4096 (transit_state_mb): Likewise.
4097 (transit_state_bkref): Likewise.
4098 (transit_state_bkref_loop): Likewise.
4099 (check_node_accept): Likewise.
4100 (match_ctx_init): Likewise.
4101 (extend_buffers): New function.
4103 2002-04-21 Bruno Haible <bruno@clisp.org>
4105 * iconvdata/tst-table.sh: For the second check, use the truncated
4106 GB18030 charmap table, like for the first check.
4108 2002-04-24 Ulrich Drepper <drepper@redhat.com>
4110 * elf/dl-load.c (open_verify): Correct __lseek parameters.
4111 Patch by Simon Hildrew <simon@hildrew.net> [PR libc/3354].
4113 2002-04-23 H.J. Lu <hjl@gnu.org>
4115 * include/math.h (isfinite): Fix a typo.
4117 2002-04-24 Ulrich Drepper <drepper@redhat.com>
4119 * libio/bug-ungetwc2.c (test_locale): Use the de_DE.UTF-8 locale
4120 which is created by the test suite.
4122 2002-04-20 Bruno Haible <bruno@clisp.org>
4124 * iconvdata/iso-2002-kr.c (MAX_NEEDED_FROM): Set to 4.
4125 (BODY for FROM_LOOP): Fix comparisons between inptr and inend.
4127 2002-04-20 Bruno Haible <bruno@clisp.org>
4129 * iconvdata/johab.c (BODY for FROM_LOOP): Change type of i, m, f,
4130 to avoid gcc warning.
4132 2002-04-20 Bruno Haible <bruno@clisp.org>
4134 * iconvdata/iso-2022-jp.c (EMIT_SHIFT_TO_INIT): Fix modification mask
4135 of data->__statep->__count.
4137 2002-04-20 Bruno Haible <bruno@clisp.org>
4139 * iconvdata/euc-jisx0213.c (BODY for TO_LOOP): Really ignore Unicode
4141 * iconvdata/shift_jisx0213.c (BODY for TO_LOOP): Likewise.
4143 2002-04-24 Roland McGrath <roland@frob.com>
4145 * sysdeps/mach/alpha/syscall.S: Don't use .frame, ENTRY will have it;
4146 use END macro instead of our own .end directive.
4147 Use `callsys' insn mnemonic instead of `call_pal'.
4149 * sysdeps/mach/alpha/sysdep.h (ENTRY): New macro.
4151 * sysdeps/alpha/dl-machine.h (ELF_MACHINE_USER_ADDRESS_MASK): New
4152 macro; we need this for Hurd.
4154 Log entry was missing for 2002/03/24 commit of rev 1.8,
4155 goes with 2002-03-17 changes.
4156 * sysdeps/mach/hurd/i386/Makefile [$(subdir) = misc]
4157 (sysdep_routines): Append ioperm here.
4158 (sysdep_headers): Append sys/io.h here.
4160 2002-04-23 Roland McGrath <roland@frob.com>
4162 * sysdeps/mach/hurd/send.c: int -> size_t for WROTE.
4163 * sysdeps/mach/hurd/sendto.c: Likewise.
4164 * hurd/hurdioctl.c (siocgifconf): int -> size_t for DATA_LEN.
4165 * sysdeps/mach/hurd/wait4.c (__wait4): natural_t -> int for SIGCODE.
4166 * sysdeps/mach/hurd/getpriority.c: unsigned int -> size_t for PISIZE.
4168 2002-04-22 Roland McGrath <roland@frob.com>
4170 * sysdeps/mach/hurd/i386/ioperm.c (ioperm): Translate MIG_BAD_ID
4171 failure from i386_io_perm_* RPCs to ENOSYS.
4173 2002-04-22 Andreas Jaeger <aj@suse.de>
4175 * sysdeps/unix/sysv/linux/x86_64/ldconfig.h: New file.
4177 * sysdeps/unix/sysv/linux/x86_64/dl-cache.h: New file.
4179 * sysdeps/unix/sysv/linux/x86_64/vfork.S: Use %rdi as temp
4180 register instead of destroying %rbx.
4182 2002-04-21 Ulrich Drepper <drepper@redhat.com>
4184 * string/string.h: Declare strerror_r also for XPG6.
4186 2002-04-19 Roland McGrath <roland@frob.com>
4188 * sysdeps/mach/hurd/tmpfile.c: Create a file descriptor and use fdopen.
4190 2002-04-20 Ulrich Drepper <drepper@redhat.com>
4192 * Makefile: Add handling of xtests and xcheck targets.
4193 * MakeTAGS: Likewise.
4194 * Makeconfig: Likewise.
4195 * Makerules: Likewise.
4197 * manual/Makefile: Likewise.
4198 * sunrpc/Makefile (xtests): Add thrsvc if thread library available.
4199 * sunrpc/thrsvc.c: New file. By Zack Weinberg.
4201 2002-04-11 Zack Weinberg <zack@codesourcery.com>
4203 * include/rpc/rpc.h (struct rpc_thread_variables): Remove
4205 * sunrpc/auth_none.c: Include bits/libc-lock.h.
4206 Delete #ifdef _RPC_THREAD_SAFE_ block.
4207 (authnone_private): Make a struct, not a pointer to struct.
4208 (authnone_private_guard): New once-control variable.
4209 (authnone_create_once): New function, split out of
4210 authnone_create. No need to allocate memory.
4211 (authnone_create): Just call authnone_create_once via
4212 __libc_once, then return &authnone_private->no_client.
4213 (authnone_marshal): Access private data via CLIENT argument,
4214 not authnone_private pointer.
4215 Fix typo (MAX_MARSHEL_SIZE -> MAX_MARSHAL_SIZE).
4216 * sunrpc/rpc_thread.c (__rpc_thread_destroy): No need to free
4219 2002-04-12 H.J. Lu <hjl@gnu.org>
4221 * sunrpc/clnt_raw.c (clntraw_create): Properly set xdrs and client.
4223 2002-04-18 Bruno Haible <bruno@clisp.org>
4225 * iconvdata/euc-jisx0213.c (EMIT_SHIFT_TO_INIT, BODY for
4226 FROM_DIRECTION): Make the FROM direction stateless.
4227 * iconvdata/shift_jisx0213.c (EMIT_SHIFT_TO_INIT, BODY for
4228 FROM_DIRECTION): Likewise.
4230 2002-04-15 Bruno Haible <bruno@clisp.org>
4232 * iconvdata/JISX0213.TXT: New file.
4233 * iconvdata/jisx0213.h: New file.
4234 * iconvdata/jisx0213.c: New file.
4235 * iconvdata/euc-jisx0213.c: New file.
4236 * iconvdata/shift_jisx0213.c: New file.
4237 * iconvdata/gconv-modules (EUC-JISX0213, SHIFT_JISX0213): New modules.
4238 * iconvdata/EUC-JISX0213.precomposed: New file.
4239 * iconvdata/SHIFT_JISX0213.precomposed: New file.
4240 * iconvdata/SHIFT_JISX0213.irreversible: New file.
4241 * iconvdata/tst-table-to.c (main): Make it work for encodings for
4242 which the "to" direction is stateful.
4243 * iconvdata/tst-tables.sh: Add EUC-JISX0213, SHIFT_JISX0213.
4244 * iconvdata/Makefile (modules): Add libJISX0213, EUC-JISX0213,
4246 (libJISX0213-routines): New variable.
4247 (LDFLAGS-EUC-JISX0213.so, LDFLAGS-SHIFT_JISX0213.so): New variables.
4248 (EUC-JISX0213.so, SHIFT_JISX0213.so): Depend on libJISX0213.so.
4249 (LDFLAGS-libJISX0213.so): New variable.
4250 (distribute): Add JISX0213.TXT, EUC-JISX0213.precomposed,
4251 SHIFT_JISX0213.precomposed, SHIFT_JISX0213.irreversible,
4252 jisx0213.c, jisx0213.h, euc-jisx0213.c, shift_jisx0213.c.
4254 2002-04-15 Bruno Haible <bruno@clisp.org>
4256 * iconvdata/big5hkscs.c (big5hkscs_to_ucs): Change element type to
4257 uint32_t. Update to Unicode 3.2.
4258 (from_ucs4, from_ucs4_idx): Update to Unicode 3.2.
4259 (BODY for TO_LOOP): Handle the ASCII range specially.
4260 * iconvdata/BIG5HKSCS.irreversible: Add one more entry.
4261 * iconvdata/testdata/BIG5HKSCS: Remove a character.
4262 * iconvdata/testdata/BIG5HKSCS..UTF-8: Regenerated.
4264 2002-04-15 Bruno Haible <bruno@clisp.org>
4266 * iconvdata/gb18030.c (__twobyte_to_ucs, __fourbyte_to_ucs,
4267 __ucs_to_gb18030_tab1, __ucs_to_gb18030_tab2): Update to Unicode 3.2.
4269 2002-04-15 Bruno Haible <bruno@clisp.org>
4271 * iconvdata/cns11643.h (__cns11643_from_ucs4p2c_tab): New declaration.
4272 (ucs4_to_cns11643): Update.
4273 * iconvdata/cns11643.c: Update to Unicode 3.2.
4274 (__cns11643l2*_to_ucs4_tab, __cns11643_from_ucs4p0_tab,
4275 __cns11643_from_ucs4p2_tab): Regenerated.
4276 (__cns11643_from_ucs4p2c_tab): New array.
4277 * iconvdata/cvs11643l1.c: Update comments.
4278 * iconvdata/EUC-TW.irreversible: Remove two entries.
4280 2002-04-15 Bruno Haible <bruno@clisp.org>
4282 * locale/C-translit.h.in: Update to Unicode 3.2.
4283 Add <U2047>, <U205F>..<U2063>, <U2145>..<U2149>, <U2A74>..<U2A76>,
4284 <U30A0>, <U3251>..<U325F>, <U32B1>..<U32BF>, <UFE00>..<UFE0F>.
4286 2002-04-15 Bruno Haible <bruno@clisp.org>
4288 * iconvdata/sjis.c (halfkana_to_ucs4): Remove array.
4289 (BODY for FROM_LOOP): Optimize the JISX0201:GR to Unicode conversion.
4291 2002-04-15 Bruno Haible <bruno@clisp.org>
4293 * iconvdata/euc-jp.c (BODY for FROM_LOOP): When encountering an
4294 invalid input (e.g. a byte > 0x80 followed by a byte < 0x80), skip
4295 always one byte, not 0 bytes in some cases and 2 bytes in others.
4297 * iconvdata/tst-table-from.c (main): Correct the usage message.
4299 2002-04-19 Isamu Hasegawa <isamu@yamato.ibm.com>
4301 * posix/regcomp.c (parse_expression): Fix incorrect error code.
4302 (parse_dup_op): Fix error handling like "a{}".
4303 (parse_bracket_exp): Add error handling.
4304 (fetch_number): Add error handling for "a{<very_large_number>}".
4306 2002-04-19 Isamu Hasegawa <isamu@yamato.ibm.com>
4308 * posix/regcomp.c (parse_bracket_symbol): Add error handling
4309 in case that the symbol name is too long.
4310 (build_charclass): Handle [:lower:]/[:uppper:] correctly
4311 in case of REG_ICASE.
4313 2002-04-19 Andreas Jaeger <aj@suse.de>
4315 * math/libm-test.inc: Fix comment, suggested by Hartvig Ekner
4316 <hartvige@mips.com>.
4318 2002-04-15 H.J. Lu <hjl@gnu.org>
4320 * include/math.h (__finitel_internal): Declare only if
4321 __NO_LONG_DOUBLE_MATH is not defined.
4322 (__isinfl_internal): Likewise.
4323 (__isnanl_internal): Likewise.
4325 * sysdeps/unix/sysv/linux/alpha/syscalls.list: Add __connect_internal.
4326 * sysdeps/unix/sysv/linux/hppa/syscalls.list: Likewise.
4327 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
4328 * sysdeps/unix/sysv/linux/mips/syscalls.list: Likewise.
4329 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
4330 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
4331 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
4333 * sysdeps/unix/sysv/linux/syscalls.list: Add __chown_internal and
4336 * sysdeps/unix/sysv/linux/fxstat.c (__fxstat64_internal): Added.
4337 * sysdeps/unix/sysv/linux/lxstat.c (__lxstat64_internal): Added.
4339 2002-04-15 Bruno Haible <bruno@clisp.org>
4341 * iconvdata/armscii-8.c (BODY for FROM_LOOP): Fix array access.
4342 (BODY for TO_LOOP): Likewise.
4343 * iconvdata/tcvn5712-1.c (from_ucs4): Map U+0309 to 0xB1.
4344 * iconvdata/tst-table.sh: Add support for encodings which contain
4345 precomposed Unicode characters, known to the iconv converter in both
4346 directions but not listed in the charmap.
4347 * iconvdata/IBM856.irreversible: New file.
4348 * iconvdata/IBM922.irreversible: New file.
4349 * iconvdata/IBM1132.irreversible: New file.
4350 * iconvdata/IBM1133.irreversible: New file.
4351 * iconvdata/IBM1160.irreversible: New file.
4352 * iconvdata/IBM1161.irreversible: New file.
4353 * iconvdata/IBM1163.irreversible: New file.
4354 * iconvdata/IBM1164.irreversible: New file.
4355 * iconvdata/ARMSCII-8.irreversible: New file.
4356 * iconvdata/TCVN5712-1.precomposed: New file.
4357 * iconvdata/tst-tables.sh: Add IBM856, IBM922, IBM1124, IBM1129,
4358 IBM1160, IBM1161, IBM1132, IBM1133, IBM1162, IBM1163, IBM1164,
4359 ARMSCII-8, TCVN5712-1.
4360 * iconvdata/Makefile (distribute): Add IBM856.irreversible,
4361 IBM922.irreversible, IBM1132.irreversible, IBM1133.irreversible,
4362 IBM1160.irreversible, IBM1161.irreversible, IBM1163.irreversible,
4363 IBM1164.irreversible, ARMSCII-8.irreversible, TCVN5712-1.precomposed.
4365 2002-04-17 Jakub Jelinek <jakub@redhat.com>
4367 * time/tst-mktime.c: Include <stdlib.h>. Use %d, not %ld format
4368 for EVENING69. Include offsets in TZ environment variable.
4370 2002-04-18 Ulrich Drepper <drepper@redhat.com>
4372 * iconv/skeleton.c (RESET_INPUT_BUFFER): Replace ifs with #ifs to
4373 avoid compiler warnings.
4375 * locale/programs/localedef.c (main): Always call
4376 construct_output_path.
4378 * iconv/Makefile (CFLAGS-simple-hash.c): Define to find hashval.h.
4380 * locale/programs/locfile.c (to_archive): New variable. To collect
4381 data which has to be added to the locale archive.
4382 (write_all_categories): Take new third parameter with locale name.
4383 Unless no_archive flag set add new locale data to the archive
4384 (write_locale_data): Unless no-archive flag set store generated data
4385 in to_archive data structure instead of generation output file.
4386 Add new parameter with locale category index.
4387 * locale/programs/locfile.h: Add new parameters in declaractions of
4388 write_all_categories and write_locale_data.
4389 * locale/programs/localedef.c: Recognize --no-archive, --list-archive,
4390 --add-to-archive, and --delete-from-archive options. Pass extra
4391 parameter to write_all_categories.
4392 * locale/programs/localedef.h: Add prototypes for functions in
4394 * locale/locarchive.h: New file.
4395 * locale/programs/locarchive.c: New file.
4396 * locale/Makefile (distribute): Add programs/locarchive.c and
4398 (localedef-modules): Add md5 and locarchive.
4399 Add vpath to crypt subdir for md5.c.
4401 * locale/programs/ld-address.c: Pass locale category ID as new second
4402 parameter to write_locale_data.
4403 * locale/programs/ld-collate.c: Likewise.
4404 * locale/programs/ld-ctype.c: Likewise.
4405 * locale/programs/ld-identification.c: Likewise.
4406 * locale/programs/ld-measurement.c: Likewise.
4407 * locale/programs/ld-messages.c: Likewise.
4408 * locale/programs/ld-monetary.c: Likewise.
4409 * locale/programs/ld-name.c: Likewise.
4410 * locale/programs/ld-numeric.c: Likewise.
4411 * locale/programs/ld-paper.c: Likewise.
4412 * locale/programs/ld-telephone.c: Likewise.
4413 * locale/programs/ld-time.c: Likewise.
4415 * locale/simple-hash.c: Move compute_hashval function from here...
4416 * locale/hashval.h: ...to here. New file.
4417 * locale/simple-hash.h: Add prototype for compute_hashval.
4419 * include/libintl.h: Minor cleanups.
4421 2002-04-16 Ulrich Drepper <drepper@redhat.com>
4423 * posix/regcomp.c (gettext): Use INTUSE for _libc_intl_domainname.
4425 2002-04-15 Ulrich Drepper <drepper@redhat.com>
4427 * include/sys/stat.h: Fix typo. Patch by HJ Lu.
4429 2002-04-14 Bruno Haible <bruno@clisp.org>
4431 * locale/programs/charmap.c (charmap_read): Don't access result if
4434 2002-02-17 Andreas Schwab <schwab@suse.de>
4436 * elf/reldep7.c: New file.
4437 * elf/reldep7mod1.c: New file.
4438 * elf/reldep7mod2.c: New file.
4439 * elf/Makefile: Add rules to build and run reldep7.
4441 2002-04-14 Jakub Jelinek <jakub@redhat.com>
4443 * elf/dl-lookup.c (_dl_lookup_symbol): Move add_dependency call to
4444 the end of the function. Pass original flags to recursive call if
4445 add_dependency failed.
4446 (_dl_lookup_versioned_symbol): Likewise.
4448 2002-04-13 Jakub Jelinek <jakub@redhat.com>
4450 * time/mktime.c (__mktime_internal): If year is 69, don't bail out
4451 early, but check whether it overflowed afterwards.
4452 * time/tst-mktime.c (main): Add new tests.
4454 2002-04-14 Ulrich Drepper <drepper@redhat.com>
4456 * debug/xtrace.sh: Fix program name in help message.
4457 Patch by Roger Luethi <rl@hellgate.ch>.
4459 * include/sys/stat.h: Add prototypes for __lxstat_internal and
4460 __lxstat64_internal. Add macros __lxstat and __lxstat64 if not
4462 * sysdeps/generic/lxstat.c: Use INTDEF for __lxstat.
4463 * sysdeps/mach/hurd/lxstat.c: Likewise.
4464 * sysdeps/unix/common/lxstat.c: Likewise.
4465 * sysdeps/unix/sysv/aix/lxstat.c: Likewise.
4466 * sysdeps/unix/sysv/linux/lxstat.c: Likewise.
4467 * sysdeps/unix/sysv/linux/i386/lxstat.c: Likewise.
4468 * sysdeps/unix/sysv/linux/ia64/lxstat.c: Likewise.
4469 * sysdeps/unix/sysv/linux/s390/s390-64/lxstat.c: Likewise.
4470 * sysdeps/generic/lxstat64.c: Use INTDEF for __lxstat64.
4471 * sysdeps/mach/hurd/lxstat64.c: Likewise.
4472 * sysdeps/unix/sysv/aix/lxstat64.c: Likewise.
4473 * sysdeps/unix/sysv/linux/lxstat64.c: Likewise.
4475 * include/wchar.h: Declare __mbrtowc_internal and __mbrlen_internal
4476 prototypes. Add __mbrlen and __mbrtowc macros.
4477 * wcsmbs/mbrlen.c: Use INTDEF for __mbrlen.
4478 * wcsmbs/mbrtowc.c: Use INTDEF for __mbrtowc.
4480 * include/unistd.h: Add prototype for __write_internal and add
4481 __libc_write macro is SHARED.
4482 * sysdeps/generic/write.c: Use INTDEF for __write.
4483 * sysdeps/mach/hurd/write.c: Likewise.
4484 * sysdeps/unix/sysv/aix/write.c: Likewise.
4485 * sysdeps/unix/syscalls.list: Add __libc_write alias.
4487 * assert/assert.c: Replace STR_N_SIZE with something usable in
4489 * assert/assert-perr.c: Likewise.
4491 * include/sys/socket.h: Declare __libc_sa_len_internal and define
4492 SA_LEN macro to use it if not NOT_IN_libc.
4493 * sysdeps/unix/sysv/linux/sa_len.c: Use INTDEF for __libc_sa_len.
4495 * include/fcntl.h: Declare __open_internal and define __open and
4496 __libc_open macros if not NOT_IN_libc.
4497 * sysdeps/generic/open.c: Use INTDEF for __open.
4498 * sysdeps/mach/hurd/open.c: Likewise.
4499 * sysdeps/unix/sysv/aix/open.c: Likewise.
4500 * sysdeps/unix/syscalls.list: Add __open_internal alias.
4502 * sysdeps/generic/check_fds.c: Make sure newly opened file descriptor
4505 * include/fcntl.h: Define __libc_fcntl macro if not NOT_IN_libc.
4506 * sysdeps/mach/hurd/fcntl.c: Undefine __libc_fcntl as well.
4507 * sysdeps/unix/sysv/aix/fcntl.c: Likewise.
4508 * sysdeps/unix/sysv/linux/i386/fcntl.c: Likewise.
4510 * include/wctype.h: Declare __iswalpha_l_internal,
4511 __iswdigit_l_internal, __iswspace_l_internal,
4512 __iswxdigit_l_internal, and __iswctype_internal. Define
4513 __iswalpha_l, __iswctype, __iswdigit_l, __iswspace_l, and
4514 __iswxdigit_l macros if not NOT_IN_libc.
4515 * wctype/iswctype.c: Use INTDEF for __iswctype.
4516 * wctype/wcfuncs_l.c: Use INTDEF for all __iswXXX_l.
4518 * include/math.h: Declare __isinf_internal, __isinfl_internal,
4519 __isnan_internal, and __isnanl_internal.
4520 * stdio-common/printf_fp.c: Use INTUSE for calls to __isinf, __isinfl,
4521 __isnan, and __isnanl.
4522 * stdio-common/printf_size.c: Likewise.
4523 * sysdeps/generic/printf_fphex.c: Likewise.
4524 * sysdeps/i386/fpu/s_isinfl.c: Also define _internal alias.
4525 * sysdeps/i386/fpu/s_isnanl.c: Likewise.
4526 * sysdeps/ia64/fpu/s_isinf.S: Likewise.
4527 * sysdeps/ia64/fpu/s_isnan.S: Likewise.
4528 * sysdeps/ieee754/dbl-64/s_isinf.c: Likewise.
4529 * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
4530 * sysdeps/ieee754/flt-32/s_isinff.c: Likewise.
4531 * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
4532 * sysdeps/ieee754/ldbl-128/s_isinfl.c: Likewise.
4533 * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
4534 * sysdeps/ieee754/ldbl-96/s_isinfl.c: Likewise.
4535 * sysdeps/m68k/s_isinfl.c: Likewise.
4536 * sysdeps/m68k/fpu/s_isinf.c: Likewise.
4537 * sysdeps/powerpc/fpu/s_isnan.c: Likewise.
4539 * include/sys/time.h: Declare __gettimeofday_internal and define
4540 __gettimeofday macro if not NOT_IN_libc.
4541 * sysdeps/generic/gettimeofday.c: Use INTEDEF for __gettimeofday.
4542 * sysdeps/mach/gettimeofday.c: Likewise.
4543 * sysdeps/posix/gettimeofday.c: Likewise.
4544 * sysdeps/unix/sysv/aix/gettimeofday.c: Likewise.
4545 * sysdeps/unix/common/syscalls.list: Define __gettimeofday alias.
4546 * sysdeps/unix/sysv/linux/alpha/gettimeofday.S: Likewise.
4547 * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S: Likewise.
4549 * include/sys/stat.h: Declare __fxstat_internal and __fxstat64_internal
4550 and define __fxstate and __fxstat64 macros if not NOT_IN_libc.
4551 Remove __lstat and __fstat inline functions.
4552 * sysdeps/generic/fxstat.c: Use INTDEF for __fxstat.
4553 * sysdeps/mach/hurd/fxstat.c: Likewise.
4554 * sysdeps/unix/fxstat.c: Likewise.
4555 * sysdeps/unix/sysv/aix/fxstat.c: Likewise.
4556 * sysdeps/unix/sysv/linux/fxstat.c: Likewise.
4557 * sysdeps/unix/sysv/linux/i386/fxstat.c: Likewise.
4558 * sysdeps/unix/sysv/linux/ia64/fxstat.c: Likewise.
4559 * sysdeps/unix/sysv/linux/s390/s390-64/fxstat.c: Likewise.
4560 * sysdeps/generic/fxstat64.c: Use INTDEF for __fxstat64.
4561 * sysdeps/mach/hurd/fxstat64.c: Likewise.
4562 * sysdeps/unix/sysv/aix/fxstat64.c: Likewise.
4563 * sysdeps/unix/sysv/linux/fxstat64.c: Likewise.
4565 * include/unistd.h: Declare __getpid_internal and define
4566 __getpid macro if not NOT_IN_libc.
4567 * sysdeps/mach/hurd/getpid.c: Use INTDEF for __getpid.
4568 * sysdeps/generic/getpid.c: Likewise.
4569 * sysdeps/unix/syscalls.list: Add __getpid_internal alias.
4570 * posix/bsd-getpgrp.c: Use INTUSE for __getpgid call.
4572 * include/unistd.h: Declare __getpgid_internal and define
4573 __getpgid macro if not NOT_IN_libc.
4574 * sysdeps/generic/getpgid.c: Use INTDEF for __getpgid.
4575 * sysdeps/mach/hurd/getpgid.c: Likewise.
4576 * sysdeps/unix/sysv/aix/getpgid.c: Likewise.
4577 * sysdeps/unix/sysv/sysv4/__getpgid.c: Likewise.
4578 * sysdeps/unix/sysv/sysv4/getpgid.c: Likewise.
4579 * sysdeps/unix/sysv/linux/syscalls.list: Add _getpgid_internal alias.
4581 * include/unistd.h: Declare __getpagesize_internal and define
4582 __getpagesize macro if not NOT_IN_libc.
4583 * sysdeps/unix/sysv/linux/shmat.c: Include <unistd.h> for
4585 * sysdeps/generic/getpagesize.c: Use INTDEF for __getpagesize.
4586 * sysdeps/mach/getpagesize.c: Likewise.
4587 * sysdeps/posix/getpagesize.c: Likewise.
4588 * sysdeps/unix/getpagesize.c: Likewise.
4589 * sysdeps/unix/sysv/linux/getpagesize.c: Likewise.
4590 * sysdeps/unix/sysv/linux/ia64/getpagesize.c: Likewise.
4591 * sysdeps/unix/sysv/linux/m68k/getpagesize.c: Likewise.
4592 * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize.c: Likewise.
4594 2002-04-13 Andreas Jaeger <aj@suse.de>
4596 * sysdeps/i386/i486/bits/string.h (__strcspn_cg): Use only memory
4597 as clobber to reduce register pressure.
4598 (__strpbrk_cg): Likewise.
4599 (__mempcpy_by4): Likewise.
4600 (__strstr_cg): Likewise.
4601 Add prototype for __memrchr.
4603 2002-04-13 Andreas Schwab <schwab@suse.de>
4605 * sysdeps/m68k/fpu/s_finite.c: Add internal alias.
4606 * sysdeps/m68k/fpu/s_finitef.c: Likewise.
4607 * sysdeps/m68k/fpu/s_finitel.c: Likewise.
4609 2002-04-13 Ulrich Drepper <drepper@redhat.com>
4611 * elf/do-lookup.h [!VERSIONED]: Add new parameter flags. Use it to
4612 check whether the caller prefers getting the most recent version of
4613 a symbol of the earliest version.
4614 * elf/dl-lookup.c: Adjust all callers of do_lookup. Change
4615 _dl_do_lookup to also take the new parameter and pass it on.
4616 Change 'explicit' parameter of _dl_lookup_symbol and
4617 _dl_lookup_versioned_symbol to flags. Adjust tests.
4618 * sysdeps/generic/ldsodefs.h: Adjust prototypes.
4619 * elf/dl-libc.c: Adjust all callers of _dl_lookup_symbol and
4620 _dl_lookup_versioned_symbol.
4621 * elf/dl-reloc.c: Likewise.
4622 * elf/dl-runtime.c: Likewise.
4623 * elf/dl-sym.c: Likewise.
4624 * sysdeps/mips/dl-machine.h: Likewise.
4626 2002-04-11 Jakub Jelinek <jakub@redhat.com>
4628 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h (LOC): Don't paste
4630 * sysdeps/unix/sysv/sysv4/solaris2/sparc/sysdep.h (LOC): Likewise.
4632 2002-04-10 Andreas Jaeger <aj@suse.de>
4634 * sysdeps/unix/sysv/linux/x86_64/glob.c: New file.
4636 * include/argz.h: Remove extra char from last patch.
4638 2002-04-09 Ulrich Drepper <drepper@redhat.com>
4640 * sysdeps/mach/hurd/chown.c: Use INTDEF for __chown.
4641 * sysdeps/unix/sysv/aix/chown.c: Likewise.
4642 * sysdeps/unix/grantpt.c: Use INTUSE for __chown calls.
4643 * sysdeps/unix/sysv/linux/m68k/chown.c: Likewise.
4644 * sysdeps/unix/sysv/linux/powerpc/chown.c: Likewise.
4645 * sysdeps/unix/sysv/linux/i386/chown.c: Use INTDEF2 to define
4647 * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Likewise.
4649 * intl/dcngettext.c [_LIBC]: Use INTUSE for __dcngettext.
4650 * intl/dngettext.c [_LIBC] (DCNGETTEXT): Use INTUSE.
4651 * intl/ngettext.c: Likewise.
4653 * include/sys/socket.h: Declare __connect_internal and define
4654 __connect macro if not NOT_IN_libc.
4655 * sysdeps/mach/hurd/connect.c: Use INTDEF for __connect.
4656 * sysdeps/unix/sysv/aix/connect.c: Likewise.
4657 * sysdeps/unix/sysv/linux/connect.S: Add __connect_internal alias.
4659 * include/unistd.h: Declare __close_internal and define __close macro
4661 * libio/libioP.h (JUMO0, JUMP1, JUMP2, JUMP3, WJUMP0, WJUMP1, WJUMP2,
4662 WJUMP3): Add extra parenthesis to avoid expanding element names with
4663 macors like __close.
4664 * sysdeps/unix/syscalls.list: Add __close_internal alias.
4666 * include/unistd.h: Declare __dup2_internal and define __dup2 macro
4668 * sysdeps/mach/hurd/dup2.c: Use INTDEF for __dup2.
4669 * sysdeps/posix/dup2.c: Use INTDEF for __dup2.
4670 * sysdeps/unix/syscalls.list: Add __dup2_internal alias.
4672 * include/unistd.h: Declare __fork_internal and define __fork macro
4674 * sysdeps/mach/hurd/fork.c: Use INTDEF for __fork.
4675 * sysdeps/unix/sysv/aix/fork.c: Likewise.
4676 * sysdeps/unix/sysv/linux/syscalls.list: Add __fork_internal alias.
4678 * include/stdio_ext.h: Declare __fsetlocking_internal and define
4679 __fsetlocking macro to use it if not NOT_IN_libc.
4680 * libio/__fsetlocking.c: Use INTDEF for __fsetlocking.
4682 * libio/__fbufsize.c: Correct copyright.
4683 * libio/__flbf.c: Likewise.
4684 * libio/__fpending.c: Likewise.
4685 * libio/__fpurge.c: Likewise.
4686 * libio/__freadable.c: Likewise.
4687 * libio/__freading.c: Likewise.
4688 * libio/__fsetlocking.c: Likewise.
4689 * libio/__fwritable.c: Likewise.
4690 * libio/__fwriting.c: Likewise.
4692 * include/stdio.h: Declare __asprintf_internal and define __asprintf
4693 macro to use it if not NOT_IN_libc.
4694 * stdio-common/asprintf.c: Use INTDEF for __asprintf.
4696 * include/mntent.h: Declare __setmntent_internal,
4697 __getmntent_r_internal, __endmntent_internal. Define __setmntent,
4698 __getmntent_r, and __endmntent macros to use these functions if not
4700 * misc/mntent_r.c: Use INTDEF for __setmntent, __getmntent_r, and
4703 * include/math.h: Declare __finite_internal, __finitef_internal, and
4704 __finitel_internal. Redefine isfinite macro if in libc or libm using
4706 * sysdeps/generic/s_ldexp.c: Use INTUSE for __finite calls.
4707 * sysdeps/generic/s_ldexpf.c: Use INTUSE for __finitef calls.
4708 * sysdeps/generic/s_ldexpl.c: Use INTUSE for __finitel calls.
4709 * sysdeps/i386/fpu/s_finite.S: Define _internal alias.
4710 * sysdeps/i386/fpu/s_finitef.S: Likewise.
4711 * sysdeps/i386/fpu/s_finitel.S: Likewise.
4712 * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
4713 * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
4714 * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
4715 * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
4717 * include/fcntl.h: Declare __fcntl_internal. Define __fcntl macro
4718 to use this function if not NOT_IN_libc.
4719 * libio/iofdopen.c (_IO_fcntl): Use INTUSE.
4720 * sysdeps/generic/fcntl.c: Use INTDEF for __fcntl.
4721 * sysdeps/mach/hurd/fcntl.c: Likewise.
4722 * sysdeps/unix/sysv/aix/fcntl.c: Likewise.
4723 * sysdeps/unix/sysv/linux/i386/fcntl.c: Likewise.
4725 * include/argz.h: Declare __argz_count_internal and
4726 __argz_stringify_internal.
4727 * intl/l10nflist.c [_LIBC]: Use INTUSE for __argz_count and
4729 * string/argz-count.c: Use INTDEF for __argz_count.
4730 * string/argz-stringify.c: Use INTDEF for __argz_stringify.
4732 * include/stdlib.h: Declare __cxa_atexit_internal and define
4733 __cxa_atexit macro if not NOT_IN_libc.
4734 * stdlib/cxa_atexit.c: Use INTDEF for __cxa_atexit.
4735 * dlfcn/Makefile: Define NOT_IN_libc when compiling modcxaatexit.c.
4737 * assert/assert.c: Use INTDEF for __assert_fail.
4738 * assert/__assert.c: Use INTUSE for call to __assert_fail.
4739 * include/assert.h: Declare __assert_fail_internal.
4741 * extra-lib.mk: Mark assignment to lib with override.
4743 2002-04-08 Ulrich Drepper <drepper@redhat.com>
4745 * Makerules: Use cppflags-iterator.mk to add defines for all test
4748 2002-04-08 kaz Kojima <kkojima@rr.iij4u.or.jp>
4750 * elf/elf.h: Define R_SH_TLS_xxx macros.
4751 * elf/rtld.c: Remove an extra parenthesis.
4752 * elf/tls-macros.h: Define SH version TLS_LE, TLS_IE, TLS_LD and
4754 * sysdeps/generic/dl-tls.c: Add a missing semi-colon.
4755 * sysdeps/sh/dl-lookupcfg.h: New file.
4756 * sysdeps/sh/dl-tls.h: New file.
4757 * sysdeps/sh/dl-machine.h (elf_machine_type_class): Set
4758 ELF_RTYPE_CLASS_PLT also for the three TLS relocations.
4759 (elf_machine_rela): Handle R_SH_TLS_DTPMOD32, R_SH_TLS_DTPOFF32 and
4760 R_SH_TLS_TPOFF32 relocations.
4762 2002-04-08 Ulrich Drepper <drepper@redhat.com>
4764 * cppflags-iterator.mk (cpp-srcs-left): Define NOT_IN_libc instead
4766 * include/libintl.h: Test for NOT_IN_libc not NOT_IN_LIBC.
4767 * include/stdlib.h: Likewise.
4769 2002-04-08 Jakub Jelinek <jakub@redhat.com>
4771 * elf/Makefile (CFLAGS-.os): Define NOT_IN_libc and IS_IN_rtld
4772 instead of _RTLD_LOCAL.
4773 * elf/dl-dst.h: Use IS_IN_rtld instead of _RTLD_LOCAL.
4774 * include/unistd.h: Likewise.
4775 * sysdeps/generic/ldsodefs.h: Likewise.
4777 * stdio-common/_itoa.h (_itoa_word): Only use internal digit arrays
4778 if in libc or ld.so.
4780 2002-04-08 Andreas Jaeger <aj@suse.de>
4782 * elf/cache.c (print_entry): Support x86-64.
4784 2002-04-08 Ulrich Drepper <drepper@redhat.com>
4786 * include/stdlib.h: For libc itself replace MB_CUR_MAX definition
4787 with one accessing the locale data structures directly.
4788 * stdio-common/printf-prs.c: Include localeinfo.h for new
4789 MB_CUR_MAX definition.
4791 * Makeconfig (CPPFLAGS): Also add CPPFLAGS-<basename> where <basename>
4792 is the name of the source file without extension.
4793 * Makefile (distribute): Add cppflags-iterator.mk.
4794 * cppflags-iterator.mk: New file.
4795 * extra-lib.mk: For the sources of the library run
4796 cppflags-iterator.mk.
4798 * include/libintl.h: Declare __dcgettext_internal and
4799 _libc_intl_domainname_internal. Define __dcgettext using these
4800 two symbols if used in libc itself.
4801 * argp/argp-help.c: Define dgettext using __dcgettext_internal and
4802 _libc_intl_domainname_internal.
4803 * argp/argp-parse.c: Likewise.
4804 * intl/dcgettext.c (__dcgettext): Use INTDEF to define alias.
4805 * intl/dgettext.c: Call __dcgettext_internal instead of __dcgettext.
4806 * intl/gettext.c: Likewise.
4807 * locale/SYS_libc.c (_libc_intl_domainname): Use INTDEF to define
4809 * posix/regcomp.c (gettext): Use __dcgettext_internal instead of
4811 * posix/regex_internal.c (gettext): Likewise.
4813 2002-04-08 Andreas Jaeger <aj@suse.de>
4815 * sysdeps/unix/sysv/linux/x86_64/ldd-rewrite.sed: Fix rewrite rule.
4817 * sysdeps/x86_64/fpu/s_llrint.S: New.
4818 * sysdeps/x86_64/fpu/s_llrintf.S: New.
4819 * sysdeps/x86_64/fpu/s_llrintl.S: New.
4820 * sysdeps/x86_64/fpu/s_lrint.S: New.
4821 * sysdeps/x86_64/fpu/s_lrintf.S: New
4822 * sysdeps/x86_64/fpu/s_lrintl.S: New.
4824 2002-04-08 Roland McGrath <roland@frob.com>
4826 * sysdeps/mach/hurd/dl-sysdep.c (__mmap): Use MAP_FAILED instead of
4827 widening __hurd_fail value.
4829 2002-04-07 Roland McGrath <roland@frob.com>
4831 * sysdeps/mach/hurd/alpha/trampoline.c: Don't include
4832 <mach/machine/alpha_instruction.h>.
4833 (_hurd_setup_sighandler): Take proper arguments for current decls.
4834 Update code to use _hurdsig_catch_fault.
4835 Use `callsys' instruction instead of `call_pal'.
4836 * sysdeps/mach/hurd/alpha/intr-msg.h: New file.
4838 * sysdeps/mach/alpha/sysdep.h: Include <mach/alpha/asm.h>.
4839 (ALIGN, at, AT, fp): New macros.
4841 2002-04-06 Roland McGrath <roland@frob.com>
4843 * mach/setup-thread.c (__mach_setup_thread): int -> natural_t
4845 * sysdeps/mach/hurd/dl-sysdep.c: Use ElfW(TYPE) in place of Elf32_TYPE.
4846 (__mmap): Use MAP_FAILED instead of widening __hurd_fail value.
4848 * sysdeps/mach/hurd/bind.c: Use prototype definition.
4849 * sysdeps/mach/hurd/connect.c: Likewise.
4850 * sysdeps/mach/hurd/getsockopt.c: Likewise.
4851 * sysdeps/mach/hurd/setsockopt.c: Likewise.
4853 * sysdeps/mach/hurd/alpha/sigreturn.c: Pass missing argument to
4856 * hurd/catch-exc.c: Use integer_t instead of int.
4857 * hurd/hurdfault.c: Likewise.
4859 * sysdeps/mach/hurd/alpha/exc2signal.c
4860 (_hurd_exception2signal): Rewritten.
4861 * sysdeps/mach/hurd/alpha/longjmp-ts.c
4862 (_hurd_longjmp_thread_state): Rewritten.
4864 2002-04-07 Ulrich Drepper <drepper@redhat.com>
4866 * nss/getXXbyYY_r.c: If NSS_attribute_hidden is defined use it with the
4867 DB_LOOKUP_FCT prototype.
4868 * nss/getXXent_r.c: Likewise.
4869 * inet/getaliasent_r.c: Define NSS_attribute_hidden.
4870 * inet/getaliasname_r.c: Likewise.
4871 * inet/getnetbyad_r.c: Likewise.
4872 * inet/getnetbynm_r.c: Likewise.
4873 * inet/getnetent_r.c: Likewise.
4874 * inet/getproto_r.c: Likewise.
4875 * inet/getprtent_r.c: Likewise.
4876 * inet/getprtname_r.c: Likewise.
4877 * inet/getrpcbyname_r.c: Likewise.
4878 * inet/getrpcbynumber_r.c: Likewise.
4879 * inet/getrpcent_r.c: Likewise.
4880 * inet/getservent_r.c: Likewise.
4881 * inet/getsrvbynm_r.c: Likewise.
4882 * inet/getsrvbypt_r.c: Likewise.
4883 * shadow/getspent_r.c: Likewise.
4884 * shadow/getspnam_r.c: Likewise.
4886 * malloc/thread-m.h: Define __libc_tsd_MALLOC_data as static.
4888 * sysdeps/i386/elf/bsd-setjmp.S: Use GOTOFF for __sigjmp_save access.
4889 Use i686-friendly PIC code.
4890 * sysdeps/i386/elf/setjmp.S: Likewise.
4892 * sysdeps/unix/sysv/linux/i386/sysdep.h: Use i686-friendly PIC code.
4894 * sysdeps/mach/hurd/Versions: Add _dl_init_first to libc and ld export
4896 * elf/Versions: Remove it here.
4898 2002-04-06 Ulrich Drepper <drepper@redhat.com>
4900 * iconvdata/tcvn5712-1.c (MAX_NEEDED_INPUT): Define for from
4901 direction. Reported by H . J . Lu <hjl@lucon.org>.
4903 2002-04-05 Ulrich Drepper <drepper@redhat.com>
4905 * intl/tst-gettext.sh: Set GCONV_PATH and LOCPATH to values for the
4906 test just before the test runs.
4907 * intl/tst-translit.sh: Likewise.
4908 * intl/tst-codeset.sh: Likewise.
4910 * timezone/zic.c: Update from tzcode2002c.
4911 * timezone/asia: Update from tzdata2002c.
4912 * timezone/backward: Likewise.
4913 * timezone/europe: Likewise.
4914 * timezone/northamerica: Likewise.
4915 * timezone/northamerica: Likewise.
4916 * timezone/northamerica: Likewise.
4917 * timezone/southamerica: Likewise.
4918 * timezone/zone.tab: Likewise.
4920 2002-03-23 Jakub Jelinek <jakub@redhat.com>
4922 * sysdeps/generic/brk.c (__curbrk): Declare.
4923 * sysdeps/generic/dl-brk.c: Add attribute_hidden to __curbrk.
4924 * sysdeps/generic/dl-sbrk.c: Likewise.
4925 * sysdeps/unix/arm/dl-brk.S: New file.
4926 * sysdeps/unix/bsd/hp/m68k/dl-brk.S: New file.
4927 * sysdeps/unix/bsd/osf/alpha/dl-brk.S: New file.
4928 * sysdeps/unix/bsd/sun/m68k/dl-brk.S: New file.
4929 * sysdeps/unix/bsd/vax/dl-brk.S: New file.
4930 * sysdeps/unix/i386/dl-brk.S: New file.
4931 * sysdeps/unix/mips/dl-brk.S: New file.
4932 * sysdeps/unix/sparc/dl-brk.S: New file.
4933 * sysdeps/unix/sysv/linux/alpha/dl-brk.S: New file.
4934 * sysdeps/unix/sysv/linux/ia64/dl-brk.S: New file.
4935 * sysdeps/unix/sysv/linux/powerpc/dl-brk.S: New file.
4936 * sysdeps/unix/sysv/linux/sparc/sparc64/dl-brk.S: New file.
4938 2002-04-03 Andreas Schwab <schwab@suse.de>
4940 * Makefile (headers): Add gnu/lib-names.h here instead of
4942 ($(inst_includedir)/gnu/lib-names.h): Remove explicit
4944 (install-headers): Add dependency on install-headers-nosubdir.
4945 * stdio-common/Makefile (headers): Add bits/stdio_lim.h here
4946 instead of install-others.
4947 ($(inst_includedir)/bits/stdio_lim.h): Remove explicit
4950 2002-04-05 Ulrich Drepper <drepper@redhat.com>
4952 * manual/users.tex (Enable/Disable Setuid): Fix typo in example.
4953 Reported by Sam Roberts <sroberts@uniserve.com>.
4955 2002-04-03 Jakub Jelinek <jakub@redhat.com>
4957 * elf/do-rel.h (elf_dynamic_do_rel): Skip relative relocs if
4958 l_addr == 0 and ELF_MACHINE_REL_RELATIVE.
4959 * sysdeps/alpha/dl-machine.h (ELF_MACHINE_REL_RELATIVE): Define.
4960 * sysdeps/ia64/dl-machine.h (ELF_MACHINE_REL_RELATIVE): Define.
4962 2002-04-03 David Mosberger <davidm@hpl.hp.com>
4964 * sysdeps/ia64/dl-machine.h (TRAMPOLINE_TEMPLATE): Add unwind info.
4965 (RTLD_START): Ditto.
4966 (__ia64_init_bootstrap_fdesc_table): Insert stop bit to avoid RAW
4967 dependency violation.
4969 2002-04-05 Jakub Jelinek <jakub@redhat.com>
4971 * time/mktime.c (__mktime_internal): Move check for year < 70 below
4972 all variable declarations.
4974 2002-04-04 Andreas Schwab <schwab@suse.de>
4976 * sysdeps/unix/sysv/linux/ia64/pipe.S: Don't overwrite r8 on error.
4978 2002-04-04 Andreas Jaeger <aj@suse.de>
4980 * sysdeps/x86_64/fpu/e_sqrt.c: New file.
4981 * sysdeps/x86_64/fpu/e_sqrtf.c: New file.
4983 * sysdeps/x86_64/fpu/s_fabs.c: New file.
4984 * sysdeps/x86_64/fpu/s_fabsf.c: New file.
4985 * sysdeps/x86_64/fpu/s_fabsl.c: New file.
4987 * sysdeps/unix/sysv/linux/x86_64/time.S: New file.
4989 * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S: New file.
4991 * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: Removed.
4992 * sysdeps/unix/sysv/linux/x86_64/time.c: Removed.
4994 * configure.in: Handle all mips entries the same.
4996 * sysdeps/mips/dec/bits/endian.h: Removed since arch is not supported.
4997 * sysdeps/mips/mips3/*: Likewise.
4998 * sysdeps/mips/p40/bits/endian.h: Likewise.
5000 2002-04-04 Ulrich Drepper <drepper@redhat.com>
5002 * misc/dirname.c (dirname): Ignore trailing slashes at end of
5003 non-null result [PR libc/2600].
5005 * misc/tst-dirname.c: Add more tests.
5007 2002-04-03 Ulrich Drepper <drepper@redhat.com>
5009 * locale/programs/charmap.c (charmap_read): If the charmap doesn't
5010 define a code_set_name provide one based on the filename.
5012 * malloc/hooks.c: Define weak_variable correctly for _LIBC.
5014 2001-12-28 Andreas Jaeger <aj@suse.de>
5016 * time/mktime.c (__mktime_internal): Check for year < 70
5019 2002-04-03 Andreas Jaeger <aj@suse.de>
5021 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Fix arguments for
5023 Reported by Andi Kleen <ak@suse.de>.
5025 2002-04-03 Ulrich Drepper <drepper@redhat.com>
5027 * sysdeps/generic/w_lgamma.c: Initialized local_signgam.
5028 * sysdeps/generic/w_lgammaf.c: Likewise.
5029 * sysdeps/generic/w_lgammal.c: Likewise [PR libc/2854].
5031 * debug/catchsegv.sh (exval): Quote [ in pattern [PR libc/2902].
5032 Adjust for new output format of the backtrace functions.
5034 * misc/syslog.c (vsyslog): Only use cleanup handler if
5035 _LIBC_REENTRANT is defined [PR libc/2924].
5037 * libio/Makefile (tests): Add bug-ungetwc2.
5038 * libio/bug-ungetwc2.c: New file.
5040 * manual/install.texi: Typographical and grammatical cleanup.
5041 Patch by Dennis Grace <dgrace@us.ibm.com>.
5043 * sunrpc/rpc_svcout.c (write_real_program): Write "result, "
5044 parameter if mtflag. Patch by <jeongyun@innovay.com>.
5046 * sunrpc/rpc_svcout.c (printif): Remove third parameter. It was
5047 always "&". Adjust callers.
5048 Add "_" prefix to several generated definitions.
5049 Patch by paul@serice.net [PR libc/3158].
5051 2002-04-02 Ulrich Drepper <drepper@redhat.com>
5053 * sysdeps/unix/sysv/linux/arm/dl-procinfo.c: Completely specify
5054 size of _dl_arm_cap_flags.
5055 Patch by enrico.scholz@informatik.tu-chemnitz.de [PR libc/3155].
5057 * sysdeps/unix/sysv/linux/arm/dl-procinfo.h (_DL_HWCAP_COUNT):
5060 2002-03-22 H.J. Lu <hjl@gnu.org>
5062 * scripts/firstversions.awk: Check the first version.
5064 2002-04-02 Ulrich Drepper <drepper@redhat.com>
5066 * elf/dl-deps.c (_dl_map_object_deps): The sorting of the
5067 dependencies must be stable to work correctly.
5068 Reported by martin.lubich@datacon.at.
5070 * libio/bug-ungetwc1.c: New file.
5071 * libio/Makefile (tests): Add bug-ungetwc1.
5073 * libio/fileops.c (_IO_new_file_close_it): Only call _IO_do_flush
5074 if stream was last used for writing.
5076 * elf/do-lookup.h (do_lookup): 2 is the first user-defined version
5077 number [PR libc/3111].
5079 * libio/iofclose.c (_IO_new_fclose): Move freeing of backup buffer
5081 * libio/fileops.c (_IO_new_file_close_it): ...here [PR libc/3190].
5083 2002-04-02 Jakub Jelinek <jakub@redhat.com>
5085 * inet/ether_ntoh.c (__nss_ethers_lookup): Add internal_function.
5086 * inet/ether_hton.c (__nss_ethers_lookup): Likewise.
5087 * inet/getnetgrent_r.c (__nss_netgroup_lookup): Likewise.
5088 * sunrpc/netname.c (__nss_publickey_lookup): Likewise.
5089 * sunrpc/publickey.c (__nss_publickey_lookup): Likewise.
5091 2002-03-30 Jakub Jelinek <jakub@redhat.com>
5093 * elf/dynamic-link.h (elf_get_dynamic_info): Don't abort on unknown
5096 2002-03-29 Jakub Jelinek <jakub@redhat.com>
5098 * sysdeps/i386/fpu/s_fabs.S: New file.
5099 * sysdeps/i386/fpu/s_fabsf.S: New file.
5100 * sysdeps/i386/fpu/s_fabsl.S: New file.
5101 * sysdeps/sparc/sparc64/fpu/s_fabs.c: New file.
5102 * sysdeps/sparc/sparc64/fpu/s_fabsf.c: New file.
5103 * sysdeps/sparc/sparc64/fpu/s_fabsl.c: New file.
5105 2002-04-02 Ulrich Drepper <drepper@redhat.com>
5107 * rt/tst-shm.c (do_test): Add one more test for size of shared
5110 2002-03-29 Wolfram Gloger <wg@malloc.de>
5112 * malloc/malloc.c: Add short description and prototypes for
5113 malloc_get_state, malloc_set_state and posix_memalign, for
5114 consistency and to avoid warnings with -Wstrict-prototypes.
5115 Reported by Andreas Jaeger <aj@suse.de>.
5117 2002-04-02 Ulrich Drepper <drepper@redhat.com>
5119 * po/gl.po: Update from translation team.
5121 2002-03-31 Roland McGrath <roland@frob.com>
5123 * hurd/hurdselect.c (_hurd_select): Fix
5124 MACH_MSG_TYPE_INTEGER_T -> integer_t in sizeof.
5125 Use a union rather than casts to compare mach_msg_type_t as int.
5127 2002-03-25 Roland McGrath <roland@frob.com>
5129 * hurd/hurdchdir.c (_hurd_change_directory_port_from_name): Don't
5130 check off the end of NAME when it's shorter than 2 chars.
5131 Reported by Ognyan Kulev <ogi@fmi.uni-sofia.bg>.
5133 2002-03-17 Roland McGrath <roland@frob.com>
5135 * sysdeps/mach/hurd/i386/sys/io.h: New file.
5136 * sysdeps/mach/hurd/i386/ioperm.c: New file.
5137 * sysdeps/mach/hurd/i386/Dist: Add them.
5138 * sysdeps/mach/hurd/i386/Versions
5139 (libc: GLIBC_2.2.6): New set, add ioperm.
5140 * sysdeps/mach/configure.in: New check to set HAVE_I386_IO_PERM_MODIFY.
5141 (mach_interface_list): Check for mach_i386.defs.
5142 * config.h.in (HAVE_I386_IO_PERM_MODIFY): #undef it.
5143 * sysdeps/mach/configure: Regenerated.
5145 2002-03-22 Ulrich Drepper <drepper@redhat.com>
5147 * po/fr.po: Update from translation team.
5149 2002-03-21 Martin Schwidefsky <schwidefsky@de.ibm.com>
5151 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Remove
5152 getpriority from syscalls list.
5154 2002-03-28 Andreas Jaeger <aj@suse.de>
5156 * sysdeps/unix/sysv/linux/x86_64/swapcontext.S: New file.
5157 * sysdeps/unix/sysv/linux/x86_64/getcontext.S: New file.
5158 * sysdeps/unix/sysv/linux/x86_64/setcontext.S: New file.
5159 * sysdeps/unix/sysv/linux/x86_64/ucontext_i.h: New file.
5161 2002-03-27 Andreas Jaeger <aj@suse.de>
5163 * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (struct
5164 sigcontext): Follow further kernel change.
5166 * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Follow further
5169 * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h (GET_STACK):
5170 Change for struct sigcontext change.
5172 * sysdeps/unix/sysv/linux/x86_64/register-dump.h (register_dump):
5173 Follow changes in struct sigcontext.
5175 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Remove ptrace
5176 sysycall, use wrapper instead.
5178 2002-03-26 Andreas Jaeger <aj@suse.de>
5180 * sysdeps/i386/i486/bits/string.h (__memcpy_by4): Describe memory
5181 read and write accesses as detailed as possible.
5182 (__memcpy_by2): Likewise.
5183 (__memcpy_g): Likewise.
5184 (memmove): Likewise.
5186 (__memset_ccn_by4): Likewise.
5187 (__memset_ccn_by2): Likewise.
5188 (__memset_gcn_by4): Likewise.
5189 (__memset_gcn_by2): Likewise.
5191 (__memrchr): Likewise.
5192 (rawmemchr): Likewise.
5193 (__strlen_g): Likewise.
5194 (__strcpy_g): Likewise.
5195 (__mempcpy_by4): Likewise.
5196 (__mempcpy_by2): Likewise.
5197 (__mempcpy_byn): Likewise.
5198 (__stpcpy_g): Likewise.
5199 (__strncpy_by4): Likewise.
5200 (__strncpy_by2): Likewise.
5201 (__strncpy_byn): Likewise.
5202 (__strncpy_gg): Likewise.
5203 (__strcat_c): Likewise.
5204 (__strcat_g): Likewise.
5205 (__strncat_g): Likewise.
5206 (__strcmp_gg): Likewise.
5207 (__strncmp_g): Likewise.
5208 (__strchr_c): Likewise.
5209 (__strchr_g): Likewise.
5210 (__strchrnul_c): Likewise.
5211 (__strchrnul_g): Likewise.
5212 (__strrchr_c): Likewise.
5213 (__strrchr_g): Likewise.
5214 (__strrchr_c): Likewise.
5215 (__strrchr_g): Likewise.
5216 (__strcspn_c1): Likewise.
5217 (__strcspn_cg): Likewise.
5218 (__strcspn_g): Likewise.
5219 (__strcspn_g): Likewise.
5220 (__strspn_c1): Likewise.
5221 (__strspn_cg): Likewise.
5222 (__strspn_g): Likewise.
5223 (__strspn_g): Likewise.
5224 (__strpbrk_cg): Likewise.
5225 (__strpbrk_g): Likewise.
5226 (__strstr_cg): Likewise.
5227 (__strstr_g): Likewise.
5229 * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Fix typo. Reported by
5230 Michal Ludvig <mludvig@suse.cz>.
5232 * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Add 32-bit
5233 compatibilty, adjust for kernel changes.
5235 * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (struct
5236 sigcontext): Adjust for kernel changes.
5238 2002-03-25 Andreas Jaeger <aj@suse.de>
5240 * iconv/gconv_simple.c (ucs4le_internal_loop_single): Handle
5242 Reported by Artur Zaprzala <zybi@talex.com.pl>.
5244 2002-03-24 Andreas Jaeger <aj@suse.de>
5246 * manual/memory.texi (Aligned Memory Blocks): Fix typo.
5248 * stdio-common/tst-fdopen.c (main): Remove unused variable.
5250 * iconv/tst-iconv3.c (main): Use correct printf strings.
5252 2002-03-18 Roland McGrath <roland@frob.com>
5254 * sysdeps/unix/bsd/bsd4.4/bits/socket.h (struct cmsgcred): New type.
5255 (CMGROUP_MAX): New macro.
5257 2002-03-23 Roland McGrath <roland@frob.com>
5259 * sysdeps/posix/shm_open.c (SHMDIR): /var/run/shm -> /dev/shm
5260 * sysdeps/posix/shm_unlink.c: Likewise.
5262 2002-03-22 Roland McGrath <roland@frob.com>
5264 * shlib-versions [USE_IN_LIBIO] (.*-.*-gnu-gnu.*): Make 2.2.6 default.
5265 * sysdeps/mach/hurd/configure.in: Default oldest ABI is 2.2.6
5266 under --enable-libio.
5267 * sysdeps/mach/hurd/configure: Regenerated.
5269 2002-03-23 Roland McGrath <roland@frob.com>
5271 * sysdeps/mach/hurd/i386/Makefile
5272 (sysdep_routines, shared-only-routines): Don't add framestate,
5273 reverting 2001-10-02 change.
5274 * sysdeps/unix/sysv/linux/arm/Makefile: Likewise.
5275 * sysdeps/unix/sysv/linux/alpha/Makefile: Likewise.
5276 * sysdeps/unix/sysv/linux/i386/Makefile: Likewise.
5277 * sysdeps/unix/sysv/linux/m68k/Makefile: Likewise.
5278 * sysdeps/unix/sysv/linux/mips/Makefile: Likewise.
5279 * sysdeps/unix/sysv/linux/powerpc/Makefile: Likewise.
5280 * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Likewise.
5281 * sysdeps/unix/sysv/linux/sparc/Makefile: Likewise.
5282 * sysdeps/generic/Makefile (sysdep_routines, shared-only-routines):
5283 Do it here instead, only if [$(unwind-find-fde) = yes].
5285 2002-03-23 Andreas Jaeger <aj@suse.de>
5287 * signal/signal.h: Fix typo. Patch by Steve Kemp
5288 <skx@tardis.ed.ac.uk>.
5290 2002-03-22 Andreas Jaeger <aj@suse.de>
5292 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Add getresgid and
5295 * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (struct
5296 _fpstate): Rename fwd to ftw, use _fpxreg and _xmmreg.
5297 * sysdeps/unix/sysv/linux/x86_64/sys/user.h (struct
5298 user_fpregs_struct): Rename fwd.
5300 * sysdeps/unix/sysv/linux/x86_64/register-dump.h (register_dump):
5301 Follow sigcontext changes.
5303 2002-03-22 Andreas Jaeger <aj@suse.de>
5305 * sysdeps/mips/bits/nan.h: New file. Copy from generic one with
5306 changes for NaNs on MIPS.
5307 Patch by Hartvig Ekner <hartvige@mips.com>.
5309 2002-03-21 Ulrich Drepper <drepper@redhat.com>
5311 * nscd/grpcache.c (addgrbyname): Improve buffer allocate with alloca.
5312 Use realloc if too large.
5313 (addgrbyid): Likewise.
5314 * nscd/hstcache.c (addhstbyname): Likewise.
5315 (addhstbyaddr): Likewise.
5316 (addhstbynamev6): Likewise.
5317 (addhstbyaddrv6): Likewise.
5318 * nscd/pwdcache.c (addpwbyname): Likewise.
5319 (addpwbyuid): Likewise.
5321 2002-03-21 Andreas Jaeger <aj@suse.de>
5323 * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (struct
5324 _fpstate): Add separate struct for x86-64.
5326 * sysdeps/unix/sysv/linux/x86_64/sys/user.h (struct
5327 user_fpregs_struct): Change member names to follow kernel.
5329 2002-03-20 Ulrich Drepper <drepper@redhat.com>
5331 * nis/ypclnt.c (yp_all): Remove the hack introduced on 1998-09-29.
5332 Correctly close the UDP connection right away [PR libc/3120].
5334 2002-03-20 Andreas Jaeger <aj@suse.de>
5336 * sysdeps/unix/sysv/linux/x86_64/sys/user.h (struct
5337 user_fpregs_struct): Fix for changed kernel struct.
5338 (struct user_regs_struct): Likewise.
5339 (struct user): Likewise.
5340 Add 32-bit x86 compatibility.
5342 * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Add more registers.
5344 2002-03-19 Andreas Jaeger <aj@suse.de>
5346 * sysdeps/unix/sysv/linux/x86_64/bits/types.h: Cleanup x86 types.
5348 2002-03-18 Andreas Jaeger <aj@suse.de>
5350 * iconvdata/Makefile: Only run tests when shared libs are
5353 2002-03-17 Andreas Jaeger <aj@suse.de>
5355 * sysdeps/mips/fpu/fraiseexcpt.c (__feraiseexcept): Set cause bits.
5357 * sysdeps/mips/fpu/fgetexcptflg.c (__fegetexceptflag): Add comment.
5359 * sysdeps/mips/fpu/fclrexcpt.c (__feclearexcept): Clear also cause
5362 * sysdeps/mips/fpu/fenv_libc.h (CAUSE_MASK): New.
5364 Patch by Hartvig Ekner <hartvige@mips.com>.
5366 * sysdeps/generic/unwind-dw2-fde-glibc.c: Add prototypes.
5367 * sysdeps/generic/unwind-pe.h: Likewise.
5369 * libio/iofdopen.c (_IO_new_fdopen): Pass parameter of correct
5372 * libio/stdio.c (AL2): Define variant when visibility attribute is
5375 * include/libc-symbols.h (_INTVARDEF): Define variant when
5376 visibility attribute is not supported.
5378 2002-03-16 Ulrich Drepper <drepper@redhat.com>
5380 * po/fr.po: Update from translation team.
5382 2002-02-25 Bruno Haible <bruno@clisp.org>
5384 * MakeTAGS (extract): Use --sort-by-file instead of --sort-output.
5386 2002-03-15 Ulrich Drepper <drepper@redhat.com>
5388 * libio/iofdopen.c (_IO_new_fdopen): Call _IO_setb to deallocate
5389 buffers if _IO_file_attach failed.
5391 * libio/fileops.c (_IO_file_open): Close file descriptor if
5392 _IO_SEEKOFF call failed.
5394 2002-03-15 H.J. Lu <hjl@gnu.org>
5395 Ulrich Drepper <drepper@redhat.com>
5397 * configure.in: Check for availability of
5398 init_array/fini_array/preinit_array handling in binutils.
5399 * config.h.in (HAVE_INITFINI_ARRAY): New macro.
5400 * config.make.in (have-initfini-array): New variable.
5402 2002-03-15 Ulrich Drepper <drepper@redhat.com>
5404 * stdio-common/tst-printf.c (main): Comment out one test which
5405 checked the compiler's ability to fold floating-point constants
5406 but not really printf.
5407 (rfg3): Make s const.
5408 * stdio-common/tst-printf.sh: Adjust for removed test.
5410 * sysdeps/i386/i386-mcount.S: Just call __mcount_internal, it is an
5411 internal function. Adjust for internal_function calling convention.
5412 * sysdeps/i386/machine-gmon.h: Declare and define __mcount_internal
5413 as internal_function.
5415 * sysdeps/generic/framestate.c: Declare fallback_frame_state_for as
5418 * nss/XXX-lookup.c (DB_LOOKUP_FCT): Add internal_function to
5419 declaration and definition.
5420 * nss/getXXbyYY_r.c (DB_LOOKUP_FCT): Add internal_function to
5422 * nss/getXXent_r.c: Likewise.
5423 * nss/nsswitch.h (db_lookup_function): Add internal_function to
5426 * include/time.h: Declare __localtime_r as hidden.
5428 * include/aliases.h: Declare __getaliasent_r as hidden.
5429 * include/grp.h: Declare __getgrent_r as hidden.
5430 * include/netdb.h: Declare __gethostent_r, __getnetent_r,
5431 __getservent_r, and __getprotoent_r as hidden.
5432 * include/pwd.h: Declare __getpwent_r as hidden.
5433 * include/shadow.h: Declare __getspent_r as hidden.
5434 * include/rpc/netdb.h: Declare __getrpcent_r as hidden.
5436 * iconv/gconv_int.h: Declare __gconv_read_conf, __gconv_alias_compare,
5437 and __gconv_transliterate as hidden.
5438 Add internal_function to __gconv_get_path declaration.
5439 * iconv/gconv_conf.c: Add internal_function to __gconv_get_path
5440 definition. Add attribute_hidden to __gconv_read_conf definition.
5442 2002-03-14 Ulrich Drepper <drepper@redhat.com>
5444 * elf/rtld.c: Declare _environ as hidden.
5445 * sysdeps/generic/dl-environ.c: Likewise.
5446 * sysdeps/generic/dl-sysdep.c: Likewise.
5448 * sysdeps/generic/ldsodefs.h: Declare _dl_debug_state_internal and
5449 _dl_mcount_internal as hidden.
5451 * elf/Makefile (rtld-routines): Add dl-sbrk and dl-brk.
5452 * sysdeps/generic/dl-brk.c: New file.
5453 * sysdeps/generic/dl-sbrk.c: New file.
5454 * sysdeps/unix/sysv/linux/i386/dl-brk.c: New file.
5455 * sysdeps/unix/sysv/linux/i386/dl-sbrk.c: New file.
5457 * elf/dl-minimal.c (malloc): Declare _end as hidden.
5458 (__errno_location): New function. Declare errno as hidden.
5459 * elf/rtld.c (_dl_argc): Define as hidden.
5460 (_dl_skip_args): Define as hidden.
5461 (_begin, _end): Declare as hidden.
5462 * sysdeps/generic/dl-sysdep.c (_end): Declare as hidden.
5463 * sysdeps/generic/entry.h (_start): Declare as hidden.
5464 * sysdeps/generic/ldsodefs.h (_dl_argc): Declare as hidden.
5465 * sysdeps/i386/dl-machine.h (elf_machine_runtime_setup): Declare
5466 _dl_runtime_resolve and _dl_runtime_profile as hidden.
5467 (RTLD_START): Use GOTOFF to access _dl_skip_args and _dl_fini.
5469 2002-03-14 Roland McGrath <roland@frob.com>
5471 * Makerules ($(common-objpfx)Versions.v.i): Depend on abi-versions.h.
5473 * Makeconfig (%.v.i, %.v): New implicit rules.
5474 (preprocess-versions): Variable removed.
5475 ($(common-objpfx)shlib-versions.v.i): New target giving just the
5476 shlib-versions input files as dependencies.
5477 ($(common-objpfx)soversions.i): Depend on that instead of the input
5478 files. Use it as input instead of using a pipeline.
5479 (postclean-generated): Append soversions.i, shlib-versions.v, and
5480 shlib-versions.v.i here.
5481 * Makerules ($(common-objpfx)Versions.def.v.i): New target giving just
5482 the Versions.def input files as dependencies.
5483 ($(common-objpfx)Versions.v.i): Likewise for Versions files.
5484 ($(common-objpfx)Versions.all): Depend on that instead of the input
5485 files. Use it as input instead of using a pipeline.
5486 ($(common-objpfx)sysd-versions): Likewise with Versions.v.i.
5487 (postclean-generated): Append those .v and .v.i files here.
5489 2002-03-14 Jakub Jelinek <jakub@redhat.com>
5491 * locale/broken_cur_max.c (__ctype_get_mb_cur_max): Use nl_langinfo.
5492 * locale/Versions (_nl_current_LC_COLLATE, _nl_current_LC_CTYPE):
5495 2002-03-14 Jakub Jelinek <jakub@redhat.com>
5497 * sysdeps/generic/mp_clz_tab.c: New file.
5498 * sysdeps/i386/mp_clz_tab.c: New file.
5499 * sysdeps/hppa/mp_clz_tab.c: New file.
5500 * sysdeps/powerpc/mp_clz_tab.c: New file.
5501 * stdlib/Makefile (aux): Revert last patch.
5502 * math/Makefile (gmp-objs): Likewise.
5504 2002-03-13 Paul Eggert <eggert@twinsun.com>
5506 * time/strftime.c: Comment fixes for references to obsolescent
5507 standards, In most cases the simplest fix is to remove the
5508 confusing comments. Cross-referencing all the standards properly
5509 is a bit of a pain, and it should be enough to put that info in
5510 the documentation as I did in my recent time.texi patch.
5512 2002-03-13 Paul Eggert <eggert@twinsun.com>
5514 * manual/time.texi (Formatting Calendar Time):
5515 ISO C99 also specifies the E and O modifiers.
5516 %P is a GNU extension, and is not in ISO C99.
5517 Mention that %r is equivalent to %I:%M:%S %p in the POSIX locale.
5518 %T is also in ISO C99.
5519 The RFC 822 example is not valid in arbitrary locales.
5520 Reword the POSIX.2 wording slightly, to make it a bit clearer
5521 that POSIX.2 formats are also supported by later POSIX versions.
5522 If a format was introduced in ISO C99 it is also required by
5525 2002-03-13 Ulrich Drepper <drepper@redhat.com>
5527 * sysdeps/gnu/errlist.awk: Define _sys_errlist_internal and
5528 _sys_nerr_internal with INTVARDEF2.
5529 * include/libc-symbols.h (INTVARDEF2): New macro.
5530 * include/stdio.h (_sys_errlist_internal): Declare as hidden.
5531 (_sys_nerr_internal): Library.
5533 * sysdeps/posix/signal.c (_sigintr): Define as hidden.
5534 * sysdeps/posix/sigintr.c (_sigintr): Declare as hidden.
5536 * stdio-common/tst-printf.sh: Adjust for last change in tst-printf.c.
5538 2002-03-13 Wolfram Gloger <wg@malloc.de>
5540 * malloc/malloc.c (sYSMALLOc): Don't change brk if mmap failed.
5542 2002-03-02 Andreas Schwab <schwab@suse.de>
5544 * stdio-common/vfprintf.c (process_arg): Fix decimal format with
5545 'h' flag and positional arg.
5546 * stdio-common/tst-printf.c (rfg3): New function to test
5547 positional arguments.
5548 (main): Fix some warnings.
5550 2002-03-13 Jakub Jelinek <jakub@redhat.com>
5552 * elf/dl-minimal.c (_itoa): Use _itoa_lower_digits_internal if SHARED.
5553 * elf/dl-reloc.c (_dl_reloc_bad_type): Likewise.
5555 2002-03-13 Ulrich Drepper <drepper@redhat.com>
5557 * grp/initgroups.c (__nss_group_data): Declare as hidden.
5559 * include/locale.h (_nl_C_locobj): Declare as hidden.
5561 * time/asctime.c (_nl_C_LC_TIME): Declare as hidden.
5562 * time/strptime.c (_nl_C_LC_TIME): Likewise.
5564 * include/netinet/in.h (in6addr_any_internal): Mark as hidden.
5566 * include/sys/gmon.h: Declare _gmonparam as hidden.
5568 * locale/lc-ctype.c (__ctype32_wctype): Declare as hidden.
5569 (__ctype32_wctrans): Likewise.
5570 (__ctype32_width): Likewise.
5572 * sysdeps/unix/sysv/linux/ttyname.c: Comment out definition and
5575 * posix/regcomp.c (__re_error_msgid): Renamed from re_error_msgid.
5577 (__re_error_msgid_idx): Renamed from re_error_msgid_idx. Define as
5578 hidden. Change all users of these variables.
5580 * posix/regex_internal.h (__re_error_msgid): Renamed from
5581 re_error_msgid. Declare as hidden.
5582 (__re_error_msgid_idx): Renamed from re_error_msgid_idx. Declare as
5585 * stdio-common/reg-printf.c (__printf_arginfo_table): Define as hidden.
5586 (__printf_function_table): Likewise.
5587 * stdio-common/printf-parse.h (__printf_arginfo_table): Declare as
5589 (__printf_function_table): Likewise.
5591 * nscd/nscd_proto.h: Declare __nss_not_use_nscd_passwd,
5592 __nss_not_use_nscd_group, and __nss_not_use_nscd_hosts as hidden.
5594 * nss/XXX-lookup.c (DATABASE_NAME_SYMBOL): Define as hidden.
5595 * nss/nsswitch.c: Declare _nss_*_database as hidden.
5597 * stdlib/wctomb.c (__no_r_state): Declare as hidden.
5598 * stdlib/mbtowc.c (__no_r_state): Define as hidden.
5600 2002-03-12 Ulrich Drepper <drepper@redhat.com>
5602 * ctype/ctype-info.c: Declare _nl_C_LC_CTYPE_class,
5603 _nl_C_LC_CTYPE_class32, _nl_C_LC_CTYPE_toupper, _nl_C_LC_CTYPE_tolower,
5604 _nl_C_LC_CTYPE_class_upper, _nl_C_LC_CTYPE_class_lower,
5605 _nl_C_LC_CTYPE_class_alpha, _nl_C_LC_CTYPE_class_digit,
5606 _nl_C_LC_CTYPE_class_xdigit, _nl_C_LC_CTYPE_class_space,
5607 _nl_C_LC_CTYPE_class_print, _nl_C_LC_CTYPE_class_graph,
5608 _nl_C_LC_CTYPE_class_blank, _nl_C_LC_CTYPE_class_cntrl,
5609 _nl_C_LC_CTYPE_class_punct, _nl_C_LC_CTYPE_class_alnum,
5610 _nl_C_LC_CTYPE_map_toupper, _nl_C_LC_CTYPE_map_tolower, and
5611 _nl_C_LC_CTYPE_width: Declare as hidden.
5612 * include/locale.h: Declare _nl_locale_file_list.
5613 * locale/C-address.c: Define _nl_C_LC_ADDRESS as hidden.
5614 * locale/C-collate.c: Define _nl_C_LC_COLLATE as hidden.
5615 * locale/C-identification.c: Define _nl_C_LC_IDENTIFICATION as hidden.
5616 * locale/C-measurement.c: Define _nl_C_LC_MEASUREMENT as hidden.
5617 * locale/C-messages.c: Define _nl_C_LC_MESSAGES as hidden.
5618 * locale/C-monetary.c: Define _nl_C_LC_MONETARY as hidden.
5619 * locale/C-name.c: Define _nl_C_LC_NAME as hidden.
5620 * locale/C-numeric.c: Define _nl_C_LC_NUMERIC as hidden.
5621 * locale/C-paper.c: Define _nl_C_LC_PAPER as hidden.
5622 * locale/C-telephone.c: Define _nl_C_LC_TELEPHONE as hidden.
5623 * locale/C-time.c: Define _nl_C_LC_TIME as hidden.
5624 * locale/C-ctype.c: Define _nl_C_LC_CTYPE_class,
5625 _nl_C_LC_CTYPE_class32, _nl_C_LC_CTYPE_toupper, _nl_C_LC_CTYPE_tolower,
5626 _nl_C_LC_CTYPE_class_upper, _nl_C_LC_CTYPE_class_lower,
5627 _nl_C_LC_CTYPE_class_alpha, _nl_C_LC_CTYPE_class_digit,
5628 _nl_C_LC_CTYPE_class_xdigit, _nl_C_LC_CTYPE_class_space,
5629 _nl_C_LC_CTYPE_class_print, _nl_C_LC_CTYPE_class_graph,
5630 _nl_C_LC_CTYPE_class_blank, _nl_C_LC_CTYPE_class_cntrl,
5631 _nl_C_LC_CTYPE_class_punct, _nl_C_LC_CTYPE_class_alnum,
5632 _nl_C_LC_CTYPE_map_toupper, _nl_C_LC_CTYPE_map_tolower,
5633 _nl_C_LC_CTYPE_width, and as hidden.
5634 * locale/findlocale.c: Declare _nl_C as hidden.
5635 * locale/newlocale.c: Likewise.
5636 * locale/setlocale.c: Define _nl_C as hidden. Remove declaration of
5637 _nl_locale_file_list.
5638 * locale/xlocale.c: Declare _nl_C_LC_CTYPE_class,
5639 _nl_C_LC_CTYPE_toupper, and _nl_C_LC_CTYPE_tolower as hidden.
5640 Define _nl_C_locobj as hidden.
5642 * malloc/mtrace.c (_mtrace_file): Define as hidden.
5643 (_mtrace_line): Likewise.
5645 * include/time.h: Declare __mon_yday as hidden.
5646 * time/strptime.c [_LIBC] (__mon_yday): Remove declaration.
5648 * libio/libioP.h: Declare __libio_codecvt as hidden.
5649 * libio/fileops.c: Declare __libio_translit as hidden.
5650 * libio/iofwide.c: Define __libio_translit as hidden.
5652 * login/getutent_r.c: Define __libc_utmp_lock as hidden.
5653 * login/getutid_r.c: Declare __libc_utmp_lock as hidden.
5654 * login/getutline_r.c: Likewise.
5655 * login/utmpname.c: Likewise.
5657 * login/utmp-private.h: Declare __libc_utmp_file_functions,
5658 __libc_utmp_unknown_functions, __libc_utmp_jump_table, and
5659 __libc_utmp_file_name as hidden.
5661 * locale/setlocale.c (__libc_setlocale_lock): Define as hidden.
5662 * locale/duplocale.c (__libc_setlocale_lock): Declare as hidden.
5663 * locale/freelocale.c: Likewise.
5664 * locale/lc-time.c: Likewise.
5666 * sysdeps/unix/bsd/getpt.c (__libc_ptyname1): Define as hidden.
5667 (__libc_ptyname2): Likewise.
5668 * sysdeps/unix/sysv/linux/ptsname.c (__libc_ptyname1): Declare as
5670 (__libc_ptyname2): Likewise.
5672 * sysdeps/generic/sbrk.c: Declare __libc_multiple_libcs as hidden.
5673 * sysdeps/arm/init-first.c (__libc_multiple_libcs): Define as hidden.
5674 * sysdeps/generic/init-first.c: Likewise.
5675 * sysdeps/i386/init-first.c: Likewise.
5676 * sysdeps/mach/hurd/i386/init-first.c: Likewise.
5677 * sysdeps/mach/hurd/mips/init-first.c: Likewise.
5678 * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
5679 * sysdeps/sh/init-first.c: Likewise.
5680 * sysdeps/unix/sysv/aix/init-first.c: Likewise.
5681 * sysdeps/unix/sysv/linux/init-first.c: Likewise.
5683 * stdio-common/itowa-digits.c (_itowa_lower_digits): Define as hidden.
5684 (_itowa_upper_digits): Likewise.
5686 * libio/stdio.c (_IO_stdin, _IO_stdout, _IO_stderr): Define as hidden.
5687 * libio/libio.h [_LIBC] (_IO_stdin, _IO_stdout, _IO_stderr): Declare
5690 * libio/libioP.h: Declare _IO_file_jumps_mmap, _IO_wfile_jumps,
5691 _IO_wfile_jumps_mmap, _IO_proc_jumps, _IO_old_proc_jumps,
5692 _IO_str_jumps, _IO_wstr_jumps, _IO_file_jumps_internal,
5693 _IO_wfile_jumps_internal, and _IO_list_all_internal as hidden.
5695 * gmon/gmon.c (__bb_head): Define as hidden.
5696 * gmon/bb_exit_func.c (__bb_head): Declare as hidden.
5698 * argp/argp-parse.c (_argp_hang): Define as static.
5700 * include/libc-symbols.h (_INTVARDEF): Adjust for visibility
5701 handling in latest compilers.
5703 * inet/in6_addr.c (in6addr_any): Use INTVARDEF not INTDEF to
5705 * libio/fileops.c (_IO_file_jumps): Likewise.
5706 * libio/stdfiles.c (_IO_list_all): Likewise.
5707 * libio/wfileops.c (_IO_wfile_jumps): Likewise.
5709 * malloc/malloc.h: Move __libc_malloc_initialized declaration to
5711 * include/malloc.h: Add __libc_malloc_initialized declaration
5712 here. Mark variable hidden.
5713 * malloc/malloc.c: Include <malloc.h> not "malloc.h".
5715 * elf/dl-open.c (__libc_argc): Declare as hidden.
5716 (__libc_argv): Likewise.
5717 * sysdeps/generic/wordexp.c (__libc_argc): Declare as hidden.
5718 (__libc_argv): Likewise.
5719 * sysdeps/mach/hurd/i386/init-first.c: Define __libc_argc and
5720 __libc_argv as hidden.
5721 * sysdeps/mach/hurd/mips/init-first.c: Likewise.
5722 * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
5723 * sysdeps/unix/sysv/aix/init-first.c: Likewise.
5724 * sysdeps/unix/sysv/linux/init-first.c: Likewise.
5726 * include/stdlib.h (__libc_drand48_data): Declare as hidden.
5727 * stdlib/drand48.c: Remove declaration of __libc_drand48_data here.
5728 * stdlib/erand48.c: Likewise.
5729 * stdlib/jrand48.c: Likewise.
5730 * stdlib/lcong48.c: Likewise.
5731 * stdlib/lrand48.c: Likewise.
5732 * stdlib/mrand48.c: Likewise.
5733 * stdlib/nrand48.c: Likewise.
5734 * stdlib/seed48.c: Likewise.
5735 * stdlib/srand48.c: Likewise.
5737 * stdio-common/_itoa.c (_itoa_base_table): Declare as hidden.
5738 (_itoa_lower_digits_internal): New declaration.
5739 (_itoa_upper_digits_internal): New declaration.
5740 (_itoa): Use INTUSE to acces _itoa_upper_digits and _itoa_lower_digits.
5741 * stdio-common.h (_itoa_lower_digits_internal): New declaration.
5742 (_itoa_upper_digits_internal): New declaration.
5743 (_itoa_word): Use INTUSE to acces _itoa_upper_digits and
5745 * stdio-common/itoa-digits.c: Use INTVARDEF with _itoa_lower_digits.
5746 * stdio-common/itoa-udigits.c: Use INTVARDEF with _itoa_upper_digits.
5748 * elf/dl-minimal.c (_itoa): Declare _itoa_lower_digits as hidden.
5749 * elf/dl-reloc.c (_dl_reloc_bad_type): Likewise.
5751 * stdio-common/_itowa.c (_itoa_base_table): Declare as hidden.
5752 (_itowa_lower_digits): Likewise.
5753 (_itowa_upper_digits): Likewise.
5754 * stdio-common/_itowa.h (_itowa_lower_digits): Likewise.
5755 (_itowa_upper_digits): Likewise.
5757 * intl/plural-exp.h (attribute_hidden): Define as empty macro if
5758 not already defined.
5759 (GERMANIC_PLURAL): Declare as hidden.
5761 * posix/getopt.c (__getopt_initialized): Declare as hidden.
5762 (attribute_hidden): Define as empty macro if not already defined.
5764 * iconv/gconv_int.h (__gconv_path_elem): Declare hidden.
5765 (__gconv_max_path_elem_len): Likewise.
5766 (__gconv_path_envvar): Likewise.
5768 * math/Makefile (gmp-objs): Remove mp_clz_tab.
5769 * stdlib/Makefile (aux): Remove mp_clz_tab.
5770 * stdlib/mp_clz_tab.c: Removed. Not needed anywhere.
5772 * stdlib/exit.h (__exit_funcs): Declare as hidden.
5774 * posix/bug-regex5.c (main): Use nl_langinfo instead of _NL_CURRENT.
5776 * locale/localeinfo.h: Add attribute_hidden to _nl_current_LC_XXX,
5777 _nl_category_names, _nl_category_name_sizes, _nl_current,
5778 _nl_C_name, _nl_POSIX_name, _nl_C_codeset, and _nl_C_LC_XXX.
5780 * intl/dcigettext.c (_nl_default_default_domain): Define as hidden.
5781 (_nl_current_default_domain): Likewise
5782 (_nl_state_lock): Likewise.
5783 * intl/textdomain.c (_nl_default_default_domain): Declare as hidden.
5784 (_nl_current_default_domain): Likewise
5785 (_nl_state_lock): Likewise.
5786 * intl/bindtextdom.c (_nl_state_lock): Likewise.
5788 * stdlib/fpioconst.h (__tens): Add attribute_hidden.
5789 (_fpioconst_pow10): Likewise.
5791 * include/time.h (_tmbuf): Add attribute_hidden.
5793 * time/tzset.c (tzstring_list): Define as static.
5795 * include/time.h: Add attribute_hidden to __tzname_cur_max and
5796 __use_tzfile declaration.
5798 * wcsmbs/wcsmbsload.h: Add attribute_hidden to __wcsmbs_gconv_fcts
5799 and __wcsmbs_last_locale declaration.
5801 2002-02-25 Paul Eggert <eggert@twinsun.com>
5803 * timezone/Makefile (tzbases): Move systemv from here...
5804 (tzlinks): to here, since the entries in systemv were all changed
5805 from Zone to Link lines in tz-2001a. Bug reported (and patch
5806 tested) by Peter Breitenlohner.
5808 2002-03-07 Jakub Jelinek <jakub@redhat.com>
5810 * time/tst-posixtz.c (tests): Add new tests.
5811 (main): Test whether tzset() sets daylight properly.
5813 2002-03-06 Jakub Jelinek <jakub@redhat.com>
5815 * time/tzset.c (tz_compute): Move __daylight, __tzname and
5816 __tzname_cur_max setting...
5817 (tzset_internal): ...here.
5819 2002-03-06 Jakub Jelinek <jakub@redhat.com>
5821 * time/tzset.c (compute_change): Don't return any value.
5822 (tz_compute): Likewise. Don't handle southern hemisphere here.
5823 (__tz_convert): But here.
5825 2002-03-11 Ulrich Drepper <drepper@redhat.com>
5827 * manual/examples/mkfsock.c: Include <string.h> as well.
5828 Patch by Alain De Carolis <alaind@wseurope.com>.
5830 2002-03-06 Isamu Hasegawa <isamu@yamato.ibm.com>
5832 * posix/regexec.c (re_match): Fix incorrect register sizes.
5833 (re_search): Likewise.
5835 2002-03-05 Isamu Hasegawa <isamu@yamato.ibm.com>
5837 * posix/regcomp.c (regfree): Remove a disused condition.
5838 * posix/regex_internal.c (re_acquire_state): Likewise.
5839 (re_acquire_state_context): Likewise.
5840 (register_state): Remove a redundant malloc invocation.
5841 * posix/regex_internal.h: (re_state_table_entry): Simplify
5844 2002-03-05 Isamu Hasegawa <isamu@yamato.ibm.com>
5846 * posix/regcomp.c (regcomp): Add __builtin_expect to error
5847 handling conditions.
5848 (regerror): Likewise.
5849 (regfree): Likewise.
5850 (re_compile_internal): Likewise.
5851 (init_dfa): Likewise.
5852 (init_word_char): Likewise.
5853 (create_initial_state): Likewise.
5854 (analyze): Likewise.
5855 (analyze_tree): Likewise.
5856 (duplicate_node): Likewise.
5857 (calc_eclosure): Likewise.
5858 (calc_eclosure_iter): Likewise.
5860 (parse_reg_exp): Likewise.
5861 (parse_branch): Likewise.
5862 (parse_expression): Likewise.
5863 (parse_subexp): Likewise.
5864 (parse_dup_op): Likewise.
5865 (parse_bracket_exp): Likewise.
5866 (build_equiv_class): Likewise.
5867 (build_charclass): Likewise.
5868 (build_word_op): Likewise.
5869 (fetch_number): Likewise.
5870 (create_tree): Likewise.
5871 (duplicate_tree): Likewise.
5872 * posix/regex.c (BE): New macro.
5873 * posix/regexec.c (re_match): Add __builtin_expect to error
5874 handling conditions.
5875 (re_match_2): Likewise.
5876 (re_search): Likewise.
5877 (re_search_internal): Likewise.
5878 (check_matching): Likewise.
5879 (proceed_next_node): Likewise.
5880 (set_regs): Likewise.
5881 (sift_states_backward): Likewise.
5882 (add_epsilon_backreference): Likewise.
5883 (transit_state): Likewise.
5884 (transit_state_sb): Likewise.
5885 (transit_state_mb): Likewise.
5886 (transit_state_bkref): Likewise.
5887 (transit_state_bkref_loop): Likewise.
5888 (build_trtable): Likewise.
5889 (group_nodes_into_DFAstates): Likewise.
5890 (match_ctx_init): Likewise.
5891 (match_ctx_add_entry): Likewise.
5892 * posix/regex_internal.c (re_string_construct): Add __builtin_expect
5893 to error handling conditions.
5894 (re_string_construct_toupper): Likewise.
5895 (build_wcs_buffer): Likewise.
5896 (build_wcs_upper_buffer): Likewise.
5897 (build_upper_buffer): Likewise.
5898 (re_string_translate_buffer): Likewise.
5899 (re_node_set_alloc): Likewise.
5900 (re_node_set_init_1): Likewise.
5901 (re_node_set_init_2): Likewise.
5902 (re_node_set_init_copy): Likewise.
5903 (re_node_set_intersect): Likewise.
5904 (re_node_set_init_union): Likewise.
5905 (re_node_set_merge): Likewise.
5906 (re_node_set_insert): Likewise.
5907 (re_dfa_add_node): Likewise.
5908 (re_acquire_state): Likewise.
5909 (re_acquire_state_context): Likewise.
5910 (create_new_state_common): Likewise.
5911 (register_state): Likewise.
5912 (create_ci_new_state): Likewise.
5913 (create_cd_new_state): Likewise.
5914 (re_string_context_at): Remove redundant condition.
5916 2002-01-16 Roger Sayle <roger@eyesopen.com>
5918 * sysdeps/i386/i686/strcmp.S: Avoid unconditional jump to a ret.
5920 * sysdeps/i386/i586/strlen.S: Fix typo in comment.
5922 2002-03-11 Jakub Jelinek <jakub@redhat.com>
5924 * sysdeps/i386/elf/configure.in: Fix comment.
5926 * sysdeps/sparc/sparc64/configure.in: New.
5927 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_load_address): Fix
5928 if .dynamic comes before .got.
5929 * config.h.in (SPARC64_DYNAMIC_BEFORE_GOT): Add.
5931 * sysdeps/sparc/sparc64/hp-timing.h (HP_TIMING_DIFF,
5932 HP_TIMING_ACCUM): Fix typos.
5934 2002-03-11 Ulrich Drepper <drepper@redhat.com>
5936 * string/strfry.c: Add some more randomness to the seed.
5937 Patch by James A Morrison <ja2morri@student.math.uwaterloo.ca>.
5939 * po/es.po: Update from translation team.
5940 * po/fr.po: Likewise.
5942 * stdio-common/tfformat.c (sprint_doubles): A test for %F format.
5944 * stdio-common/printf_fp.c (__printf_fp): Correct check for %F format
5945 when determining type of format.
5946 Patch by James Antill <james@anqd.org> [PR libc/2787].
5948 2002-03-04 Jakub Jelinek <jakub@redhat.com>
5950 * sysdeps/unix/bsd/ftime.c (ftime): Don't return 1000 in millitm.
5952 2002-03-11 Roland McGrath <roland@frob.com>
5954 * hurd/hurd/threadvar.h: Include <features.h> for __THROW macro.
5956 * Versions.def (libc): Add GLIBC_2.2.6.
5957 * hurd/Versions (libc: GLIBC_2.2.6): Add __errno_location.
5958 * sysdeps/mach/hurd/errnos.awk: In generated macro, use
5959 __errno_location instead of __hurd_errno_location, and don't inline it.
5960 * sysdeps/mach/hurd/bits/errno.h: Regenerated.
5961 * hurd/errno.c: New file.
5962 * hurd/Makefile (routines): Add errno.
5964 2002-03-11 Ulrich Drepper <drepper@redhat.com>
5966 * stdio-common/vfprintf.c (vfprintf): Avoid crashing for
5967 ridiculously large widths and precisions [PR libc/3026].
5969 2002-03-11 Andreas Jaeger <aj@suse.de>
5971 * sysdeps/unix/sysv/linux/s390/ldd-rewrite.sed: Fix for bi-arch
5973 Patch by Susanne Oberhauser <froh@SuSE.de>.
5975 2002-03-11 Ulrich Drepper <drepper@redhat.com>
5977 * inet/rexec.c (ahostbuf): Define as static.
5979 * wctype/wcfuncs.c (__ctype32_wctype): Declare as hidden.
5980 (__ctype32_wctrans): Likewise.
5981 * wcsmbs/wcwidth.h (__ctype32_width): Declare as hidden.
5982 * ctype/ctype-info.c (__ctype32_wctype): Add attribute_hidden.
5983 (__ctype32_wctrans): Likewise.
5984 (__ctype32_width): Likewise.
5986 * gmon/Makefile (elide-routines.os): Add bb_init_func and bb_exit_func.
5987 They were never exported anyway.
5989 * gmon/gmon.c (_gmonparam): Add attribute_hidden.
5990 * gmon/sys/gmon.h: Remove declaration of _gmonparam. It wasn't
5992 * include/sys/gmon.h: Declare _gmonparam.
5994 * sysdeps/unix/sysv/linux/i386/getdents64.c: Don't define compatibility
5995 symbols for getdents64. They were never exported.
5997 2002-03-09 Roland McGrath <roland@frob.com>
5999 * hurd/hurdsig.c (write_corefile): Fix swapped arguments to __dir_link.
6000 Reported by Jon Arney <jarney1@cox.net>.
6002 2002-02-23 Roland McGrath <roland@frob.com>
6004 * hurd/hurd/threadvar.h (__hurd_threadvar_location): Add __THROW to
6006 (__hurd_errno_location): Function removed.
6008 2002-03-06 Andreas Jaeger <aj@suse.de>
6010 * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Add compatibility for
6013 2002-03-04 Andreas Jaeger <aj@suse.de>
6015 * sysdeps/unix/sysv/linux/x86_64/readelflib.c: New.
6017 * sysdeps/unix/sysv/linux/kernel-features.h: Add defines for
6020 * sysdeps/unix/sysv/linux/x86_64/bits/socket.h: New.
6022 * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: New.
6024 * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: New.
6026 * sysdeps/x86_64/bits/setjmp.h: New.
6028 * sysdeps/unix/sysv/linux/x86_64/bits/sem.h: New.
6030 * sysdeps/unix/sysv/linux/x86_64/bits/resource.h: New.
6032 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Add compatibilty
6034 * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Likewise.
6035 * sysdeps/unix/sysv/linux/x86_64/bits/types.h: Likewise.
6037 2002-02-28 Bo Thorsen <bo@suse.de>
6039 * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Merge with i386
6042 2002-03-03 Andreas Jaeger <aj@suse.de>
6044 * sysdeps/x86_64/bits/wordsize.h: New file.
6046 * elf/nodlopenmod2.c: Provide prototype to avoid warning.
6047 * elf/tst-tlsmod1.c: Likewise.
6049 * posix/regcomp.c: Get regex.h from include dir for internal
6052 * sysdeps/unix/sysv/linux/init-first.c: Move __init_misc prototype
6053 to libc-internal.h and include it.
6054 * include/libc-internal.h: Add __init_misc.
6056 * misc/init-misc.c: Include libc-internal.h for prototypes.
6058 * sysdeps/wordsize-32/divdi3.c: Add prototypes to avoid warnings.
6060 * misc/error.c [_LIBC]: Include libioP.h for prototype of
6063 2002-03-03 Ulrich Drepper <drepper@redhat.com>
6065 * posix/regcomp.c: Compatibility changes to allow using the code
6068 2002-02-28 Hartvig Ekner <hartvige@mips.com>
6070 * sysdeps/mips/elf/start.S: Added initialization of GP (to _gp) if
6073 2002-03-02 Ulrich Drepper <drepper@redhat.com>
6075 * sysdeps/generic/dl-sysdep.c (_dl_important_hwcaps): Fix creation
6076 of .str elements in the returned data structure.
6078 * elf/elf.h: Add Alpha TLS bits.
6080 2002-02-28 Jakub Jelinek <jakub@redhat.com>
6082 * sysdeps/unix/sysv/linux/nice.c: New file.
6084 2002-03-01 Ulrich Drepper <drepper@redhat.com>
6086 * elf/Makefile (dl-routines): Add dl-origin.
6087 (elide-routines.os): Add dl-origin.
6088 * elf/Versions [ld] (GLIBC_PRIVATE): Add _dl_get_origin.
6089 * elf/dl-debug.c (_dl_debug_initialize): Add missing INTUSE around
6091 * include/libc-symbols.c: Define attribute_hidden depending on
6092 HAVE_VISIBILITY_ATTRIBUTE. Add definition of INTVARDEF.
6094 * elf/dl-deps.c: Use INTUSE with __libc_enable_secure.
6095 * elf/dl-load.c: Likewise.
6096 * elf/rtld.c: Likewise.
6097 * include/unistd.h: Declare __libc_enable_secure_internal.
6098 * sysdeps/generic/dl-sysdep.c: Use INTVARDEF with __libc_enable_secure.
6099 Use INTUSE with __libc_enable_secure.
6100 * sysdeps/mach/hurd/dl-sysdep.c: Likewise.
6102 * elf/dl-deps.c: Use INTUSE with _dl_out_of_memory.
6103 * elf/dl-error.c: Likewise,
6104 * sysdeps/generic/ldsodefs.h: Declare _dl_out_of_memory_internal.
6106 * elf/dl-dst.h [_RTLD_GLOBAL]: Define _dl_get_origin to use INTUSE.
6107 * sysdeps/generic/dl-origin.c: Undefine _dl_get_origin macro before
6108 function definition. Use INTDEF with _dl_get_origin.
6109 * sysdeps/unix/sysv/linux/dl-origin.c: Likewise.
6111 * elf/dl-init.c: Use INTUSE with _dl_starting_up.
6112 * elf/rtld.c: Likewise. Use INTVARDEF for _dl_starting_up.
6114 * elf/dl-profile.c: Use INTDEF for _dl_mcount.
6115 * elf/dl-runtime.c: Use INTUSE with _dl_mcount.
6116 * sysdeps/generic/ldsodefs.h: Declare _dl_mcount_internal.
6118 * elf/dl-conflict.c: Use rtld_progrname instead of _dl_argv[0].
6119 * elf/dl-deps.c: Likewise.
6120 * elf/dl-error.c: Likewise.
6121 * elf/dl-fini.c: Likewise.
6122 * elf/dl-init.c: Likewise.
6123 * elf/dl-load.c: Likewise.
6124 * elf/dl-lookup.c: Likewise.
6125 * elf/dl-reloc.c: Likewise.
6126 * elf/dl-version.c: Likewise.
6127 * elf/do-lookup.h: Likewise.
6128 * sysdeps/arm/dl-machine.h: Likewise.
6129 * sysdeps/cris/dl-machine.h: Likewise.
6130 * sysdeps/hppa/dl-machine.h: Likewise.
6131 * sysdeps/i386/dl-machine.h: Likewise.
6132 * sysdeps/m68k/dl-machine.h: Likewise.
6133 * sysdeps/powerpc/dl-machine.h: Likewise.
6134 * sysdeps/s390/s390-32/dl-machine.h: Likewise.
6135 * sysdeps/s390/s390-64/dl-machine.h: Likewise.
6136 * sysdeps/sh/dl-machine.h: Likewise.
6137 * sysdeps/sparc/sparc-32/dl-machine.h: Likewise.
6138 * sysdeps/sparc/sparc-64/dl-machine.h: Likewise.
6139 * sysdeps/x86_64/dl-machine.h: Likewise.
6140 * elf/rtld.c: Use INTDEF for _dl_argv. Use rtld_progrname instead of
6141 _dl_argv[0]. Use INTUSE with _dl_argv.
6142 * sysdeps/generic/dl-sysdep.c: Use INTUSE with _dl_argv.
6143 * sysdeps/generic/ldsodefs.h: Define rtld_progname macro.
6145 2002-02-28 Jakub Jelinek <jakub@redhat.com>
6147 * elf/rtld.c (_rtld_global): Remove .protected.
6148 (_rtld_local): Strong alias to _rtld_global.
6149 * elf/Makefile (CFLAGS-.os): Add -D_RTLD_LOCAL if compiling rtld
6151 * sysdeps/generic/ldsodefs.h (GL): If SHARED and _RTLD_LOCAL, use
6152 _rtld_local instead of _rtld_global.
6153 (_rtld_local): Add hidden extern, possibly in .sdata section.
6154 * configure.in: Add tests for visibility attribute and .sdata.
6155 * config.h.in: Add HAVE_VISIBILITY_ATTRIBUTE and HAVE_SDATA_SECTION.
6156 * sysdeps/alpha/dl-machine.h: Use _rtld_local instead of _rtld_global.
6157 * sysdeps/arm/dl-machine.h: Likewise.
6158 * sysdeps/generic/ldsodefs.h: Likewise.
6159 * sysdeps/hppa/dl-machine.h: Likewise.
6160 * sysdeps/cris/dl-machine.h: Likewise.
6161 * sysdeps/i386/dl-machine.h: Likewise.
6162 * sysdeps/ia64/dl-machine.h: Likewise.
6163 * sysdeps/m68k/dl-machine.h: Likewise.
6164 * sysdeps/mips/mips64/dl-machine.h: Likewise.
6165 * sysdeps/mips/dl-machine.h: Likewise.
6166 * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
6167 * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
6168 * sysdeps/sh/dl-machine.h: Likewise.
6169 * sysdeps/s390/s390-32/dl-machine.h: Likewise.
6170 * sysdeps/s390/s390-64/dl-machine.h: Likewise.
6171 * sysdeps/x86_64/dl-machine.h: Likewise.
6173 2002-02-28 Ulrich Drepper <drepper@redhat.com>
6175 * login/login.c (login): Always initialize ut_line field
6178 2002-02-28 Jakub Jelinek <jakub@redhat.com>
6180 * sysdeps/i386/Makefile (sysdep_routines): Add
6182 (shared-only-routines): Likewise.
6183 * sysdeps/m68k/Makefile (sysdep_routines): Likewise.
6184 (shared-only-routines): Likewise.
6185 * sysdeps/s390/s390-32/Makefile (sysdep_routines): Likewise.
6186 (shared-only-routines): Likewise.
6187 * sysdeps/wordsize-32/divdi3.c: New file.
6189 2002-02-28 Ulrich Drepper <drepper@redhat.com>
6191 * locale/iso-4217.def: Remove obsolete currencies for countries
6194 2002-02-28 Isamu Hasegawa <isamu@yamato.ibm.com>
6196 * posix/regcomp.c (regcomp): Remove a redundant condition.
6197 (init_word_char): Add a check on malloc failure.
6198 (create_initial_state): Likewise.
6199 (duplicate_node): Likewise.
6200 (calc_eclosure): Likewise.
6201 (calc_eclosure_iter): Likewise.
6202 (parse_expression): Likewise.
6203 (parse_bracket_exp): Remove unnecessary malloc invocations.
6204 (build_equiv_class): Likewise.
6205 (build_charclass): Likewise.
6206 * posix/regex_internal.c (re_node_set_intersect): Add a check
6208 (re_node_set_add_intersect): Likewise.
6209 (re_node_set_merge): Likewise.
6210 (re_acquire_state): Likewise.
6211 (re_acquire_state_context): Likewise.
6212 (create_newstate_common): Likewise.
6213 (register_state): Likewise.
6214 (create_ci_newstate): Likewise.
6215 (create_cd_newstate): Likewise.
6216 * posix/regex_internal.h: Fix prototypes of re_acquire_state
6217 and re_acquire_state_context.
6218 * posix/regexec.c (regexec): Suit it to the error handling of
6220 (re_match): Likewise.
6221 (re_search): Likewise.
6222 (re_search_internal): Add a check on malloc failure.
6223 (acquire_init_state_context): Likewise.
6224 (check_matching): Likewise.
6225 (proceed_next_node): Likewise.
6226 (set_regs): Likewise.
6227 (sift_states_backward): Likewise.
6228 (sift_states_iter_bkref): Likewise.
6229 (add_epsilon_backreference): Likewise.
6230 (transit_state): Likewise.
6231 (transit_state_sb): Likewise.
6232 (transit_state_mb): Likewise.
6233 (transit_state_bkref_loop): Likewise.
6234 (build_trtable): Likewise.
6235 (group_nodes_into_DFAstates): Likewise.
6236 (match_ctx_init): Likewise.
6237 (match_ctx_add_entry): Likewise.
6239 2002-02-27 Ulrich Drepper <drepper@redhat.com>
6241 * elf/dl-load.c (_dl_map_object_from_fd): Always add SONAME to
6242 l_libname if profiling is enabled [PR libc/2916].
6244 * sysdeps/ia64/dl-tls.h: New file.
6246 2002-02-27 Jakub Jelinek <jakub@redhat.com>
6248 * sysdeps/alpha/dl-machine.h (elf_machine_load_address, RTLD_START):
6249 Work around an Alpha gas bug.
6251 2002-02-27 Ulrich Drepper <drepper@redhat.com>
6253 * catgets/open_catalog.c (__open_catalog): Fix typo in code which
6254 uses read to load the catalog.
6255 Patch by Andy Isaacson <adi@unlimitedscale.com> [PR libc/3011].
6257 2002-02-26 Ulrich Drepper <drepper@redhat.com>
6259 * posix/Makefile (distribute): Add regcomp.c, regexec.c,
6260 regex_internal.c, and regex_internal.h.
6261 (CFLAGS-regex.c): Replace -DMBS_SUPPORT with -DRE_ENABLE_I18N.
6262 * posix/regex.c: Complete rewrite.
6263 * posix/regexec.c: New file.
6264 * posix/regcomp.c: New file.
6265 * posix/regex_internal.c: New file.
6266 * posix/regex_internal.h: New file.
6267 * posix/regex.h (RE_ICASE): New macro.
6268 Contributed by Isamu Hasegawa <isamu@yamato.ibm.com>.
6270 * stdio-common/vfscanf.c (_IO_vfwscanf): Always use ungetc, never
6271 ungetwc. It's a macro.
6272 * libio/tst-swscanf.c (do_test): Adjust for now fixed wscanf
6274 Reported by Jason Merrill <jason@redhat.com>.
6276 2002-02-25 Jakub Jelinek <jakub@redhat.com>
6278 * libio/iofopen.c (__fopen_maybe_mmap): Set the initial
6279 position to fp->_offset if it is set.
6280 * stdio-common/Makefile (tests): Add tst-fdopen.
6281 * stdio-common/tst-fdopen.c: New test.
6283 2002-02-25 Jakub Jelinek <jakub@redhat.com>
6285 * libio/fileops.c (_IO_file_xsgetn_mmap): Handle reading from backup.
6286 * stdio-common/tst-ungetc.c (main): Add another test.
6288 2002-02-25 Ulrich Drepper <drepper@redhat.com>
6290 * assert/assert-perr.c: Use INTUSE to reference functions and variables
6291 inside libc itself. Use INTDEF and INTDEF2 to define appropriate
6292 aliases. Add prototypes for the new aliases.
6293 * assert/assert.c: Likewise.
6294 * include/libc-symbols.h: Likewise.
6295 * include/stdio.h: Likewise.
6296 * include/netinet/in.h: Likewise.
6297 * include/rpc/auth.h: Likewise.
6298 * include/rpc/auth_unix.h: Likewise.
6299 * include/rpc/key_prot.h: Likewise.
6300 * include/rpc/pmap_prot.h: Likewise.
6301 * include/rpc/pmap_rmt.h: Likewise.
6302 * include/rpc/rpc_msg.h: Likewise.
6303 * include/rpc/xdr.h: Likewise.
6304 * inet/gethstbyad_r.c: Likewise.
6305 * inet/gethstbynm2_r.c: Likewise.
6306 * inet/gethstbynm_r.c: Likewise.
6307 * inet/gethstent_r.c: Likewise.
6308 * inet/in6_addr.c: Likewise.
6309 * libio/__fpurge.c: Likewise.
6310 * libio/filedoalloc.c: Likewise.
6311 * libio/fileops.c: Likewise.
6312 * libio/ftello.c: Likewise.
6313 * libio/ftello64.c: Likewise.
6314 * libio/genops.c: Likewise.
6315 * libio/iofclose.c: Likewise.
6316 * libio/iofdopen.c: Likewise.
6317 * libio/iofflush.c: Likewise.
6318 * libio/iofflush_u.c: Likewise.
6319 * libio/iofgetpos.c: Likewise.
6320 * libio/iofgetpos64.c: Likewise.
6321 * libio/iofgets.c: Likewise.
6322 * libio/iofgets_u.c: Likewise.
6323 * libio/iofopen.c: Likewise.
6324 * libio/iofopncook.c: Likewise.
6325 * libio/iofputs.c: Likewise.
6326 * libio/iofread.c: Likewise.
6327 * libio/iofread_u.c: Likewise.
6328 * libio/iofsetpos.c: Likewise.
6329 * libio/iofsetpos64.c: Likewise.
6330 * libio/ioftell.c: Likewise.
6331 * libio/iofwrite.c: Likewise.
6332 * libio/iogetline.c: Likewise.
6333 * libio/iogets.c: Likewise.
6334 * libio/iogetwline.c: Likewise.
6335 * libio/iolibio.h: Likewise.
6336 * libio/iopadn.c: Likewise.
6337 * libio/iopopen.c: Likewise.
6338 * libio/ioseekoff.c: Likewise.
6339 * libio/ioseekpos.c: Likewise.
6340 * libio/iosetbuffer.c: Likewise.
6341 * libio/iosetvbuf.c: Likewise.
6342 * libio/ioungetc.c: Likewise.
6343 * libio/ioungetwc.c: Likewise.
6344 * libio/iovdprintf.c: Likewise.
6345 * libio/iovsprintf.c: Likewise.
6346 * libio/iovsscanf.c: Likewise.
6347 * libio/libioP.h: Likewise.
6348 * libio/memstream.c: Likewise.
6349 * libio/obprintf.c: Likewise.
6350 * libio/oldfileops.c: Likewise.
6351 * libio/oldiofclose.c: Likewise.
6352 * libio/oldiofdopen.c: Likewise.
6353 * libio/oldiofgetpos.c: Likewise.
6354 * libio/oldiofgetpos64.c: Likewise.
6355 * libio/oldiofopen.c: Likewise.
6356 * libio/oldiofsetpos.c: Likewise.
6357 * libio/oldiofsetpos64.c: Likewise.
6358 * libio/oldiopopen.c: Likewise.
6359 * libio/oldstdfiles.c: Likewise.
6360 * libio/putc.c: Likewise.
6361 * libio/setbuf.c: Likewise.
6362 * libio/setlinebuf.c: Likewise.
6363 * libio/stdfiles.c: Likewise.
6364 * libio/stdio.c: Likewise.
6365 * libio/strops.c: Likewise.
6366 * libio/vasprintf.c: Likewise.
6367 * libio/vscanf.c: Likewise.
6368 * libio/vsnprintf.c: Likewise.
6369 * libio/vswprintf.c: Likewise.
6370 * libio/wfiledoalloc.c: Likewise.
6371 * libio/wfileops.c: Likewise.
6372 * libio/wgenops.c: Likewise.
6373 * libio/wstrops.c: Likewise.
6374 * malloc/mtrace.c: Likewise.
6375 * misc/error.c: Likewise.
6376 * misc/syslog.c: Likewise.
6377 * nss/getXXbyYY_r.c: Likewise.
6378 * nss/getXXent_r.c: Likewise.
6379 * nss/hosts-lookup.c: Likewise.
6380 * stdio-common/getw.c
6381 * stdio-common/printf-prs.c: Likewise.
6382 * stdio-common/printf_fp.c: Likewise.
6383 * stdio-common/printf_size.c: Likewise.
6384 * stdio-common/putw.c: Likewise.
6385 * stdio-common/scanf.c: Likewise.
6386 * stdio-common/sprintf.c: Likewise.
6387 * stdio-common/tmpfile64.c: Likewise.
6388 * stdio-common/vfprintf.c: Likewise.
6389 * stdio-common/vfscanf.c: Likewise.
6390 * stdlib/strfmon.c: Likewise.
6391 * sunrpc/auth_des.c: Likewise.
6392 * sunrpc/auth_none.c: Likewise.
6393 * sunrpc/auth_unix.c: Likewise.
6394 * sunrpc/authdes_prot.c: Likewise.
6395 * sunrpc/authuxprot.c: Likewise.
6396 * sunrpc/clnt_perr.c: Likewise.
6397 * sunrpc/clnt_raw.c: Likewise.
6398 * sunrpc/clnt_tcp.c: Likewise.
6399 * sunrpc/clnt_udp.c: Likewise.
6400 * sunrpc/clnt_unix.c: Likewise.
6401 * sunrpc/key_call.c: Likewise.
6402 * sunrpc/key_prot.c: Likewise.
6403 * sunrpc/openchild.c: Likewise.
6404 * sunrpc/pm_getmaps.c: Likewise.
6405 * sunrpc/pm_getport.c: Likewise.
6406 * sunrpc/pmap_clnt.c: Likewise.
6407 * sunrpc/pmap_prot.c: Likewise.
6408 * sunrpc/pmap_prot2.c: Likewise.
6409 * sunrpc/pmap_rmt.c: Likewise.
6410 * sunrpc/rpc_cmsg.c: Likewise.
6411 * sunrpc/rpc_prot.c: Likewise.
6412 * sunrpc/svc_authux.c: Likewise.
6413 * sunrpc/svc_raw.c: Likewise.
6414 * sunrpc/svc_simple.c: Likewise.
6415 * sunrpc/svc_tcp.c: Likewise.
6416 * sunrpc/svc_udp.c: Likewise.
6417 * sunrpc/svc_unix.c: Likewise.
6418 * sunrpc/xdr.c: Likewise.
6419 * sunrpc/xdr_array.c: Likewise.
6420 * sunrpc/xdr_mem.c: Likewise.
6421 * sunrpc/xdr_rec.c: Likewise.
6422 * sunrpc/xdr_ref.c: Likewise.
6423 * sunrpc/xdr_stdio.c: Likewise.
6424 * sysdeps/generic/_strerror.c: Likewise.
6425 * sysdeps/generic/printf_fphex.c: Likewise.
6426 * sysdeps/generic/tmpfile.c: Likewise.
6427 * sysdeps/gnu/errlist.awk: Likewise.
6428 * sysdeps/gnu/errlist.c: Likewise.
6430 * libio/Makefile (routines): Remove iosprint.
6431 * libio/iosprintf.c: Removed
6434 2002-02-24 Ulrich Drepper <drepper@redhat.com>
6436 * elf/dl-support.c (_dl_non_dynamic_init): Renamed from
6437 non_dynamic_init and exported now.
6438 * sysdeps/unix/sysv/linux/ldsodefs.h: Declare _dl_non_dynamic_init.
6439 * sysdeps/unix/sysv/linux/init-first.c: Call _dl_non_dynamic_init for
6441 * sysdeps/mach/hurd/i386/init-first.c: Likewise.
6442 * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
6443 * sysdeps/mach/hurd/mips/init-first.c: Likewise.
6445 2002-02-23 Ulrich Drepper <drepper@redhat.com>
6447 * elf/dl-close.c (free_slotinfo): Check for end of list and return
6450 * locale/iso-639.def: Add language codes for Walloon.
6452 * elf/dl-fini.c (_dl_fini): Print some final statistics on the
6453 total number of relocations performed.
6455 * elf/sprof.c (load_profdata): If do_test provide information as
6456 to why loading failed.
6457 * elf/dl-profile.c (_dl_start_profile): Initialize all of
6460 * csu/set-init.c: Moved to...
6461 * sysdeps/mach/hurd/set-init.c: ...here. New file.
6462 * csu/Makefile: Don't compile set-init.
6463 * sysdeps/mach/hurd/Makefile: Compile set-init for subdir csu.
6464 * sysdeps/mach/hurd/i386/init-first.c: Call __init_misc in addition
6466 * sysdeps/mach/hurd/mips/init-first.c: Likewise.
6467 * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
6468 * sysdeps/unix/sysv/linux/init-first.c: Call __init_misc instead of
6470 * misc/init-misc.c: Always export __init_misc. Don't define hooks for
6473 2002-02-22 Ulrich Drepper <drepper@redhat.com>
6475 * elf/Versions: Add _dl_allocate_tls and _dl_deallocate_tls.
6476 * elf/rtld.c (dl_main): Use _dl_allocate_tls with INTUSE.
6477 * sysdeps/generic/dl-tls.c: Add INTDEF for _dl_allocate_tls.
6478 (_dl_deallocate_tls): New function.
6479 * sysdeps/generic/ldsodefs.h: Declare _dl_allocate_tls_internal and
6482 2002-02-21 Jakub Jelinek <jakub@redhat.com>
6484 * libio/fileops.c (_IO_file_seekoff_mmap): Fix fseek SEEK_END.
6485 * stdio-common/tst-fseek.c (main): Add test for this.
6487 2002-02-19 Ulrich Drepper <drepper@redhat.com.>
6489 * stdlib/Versions: Move __on_exit to GLIBC_PRIVATE.
6491 2002-02-19 Jakub Jelinek <jakub@redhat.com>
6493 * libio/fileops.c (_IO_file_underflow_mmap): Cast to unsigned char
6494 pointer before dereferencing.
6496 2002-02-18 Roland McGrath <roland@frob.com>
6498 * sysdeps/mach/hurd/times.c: Fix typo in last change.
6500 * sysdeps/mach/hurd/setpriority.c [POLICY_TIMESHARE_BASE_COUNT]:
6501 Use task_policy in place of task_priority.
6503 * sysdeps/generic/bits/mman.h
6504 (MS_ASYNC, MS_SYNC, MS_INVALIDATE): New macros.
6505 * sysdeps/mach/msync.c: New file.
6507 * sysdeps/mach/powerpc/syscall.S: New file.
6509 * mach/msg.c [MACH_MSG_OVERWRITE]
6510 (__mach_msg_trap, __mach_msg_overwrite): New functions.
6511 * mach/Versions (libc: GLIBC_2.0): Add mach_msg_overwrite and __ name.
6513 * sysdeps/mach/configure.in: Check for clock.defs to put into
6514 mach_interface_list.
6515 * sysdeps/mach/configure: Regenerated.
6517 * mach/Makefile (mach-machine): New variable, set from $(base-machine).
6518 ($(objpfx)mach-syscalls.mk): Use it in place of $(base-machine).
6519 ($(mach-syscalls:%=$(objpfx)%.S) static pattern rule):
6520 Use <mach/machine/syscall_sw.h> instead of <sysdep.h>.
6521 (mach-shortcuts): Add device_read_overwrite_request,
6522 device_read_overwrite, vm_read_overwrite, thread_switch.
6524 * configure.in (base_machine): Set to $machine by default.
6525 * configure: Regenerated.
6527 * sysdeps/mach/configure.in: Check for <mach/machine/ndr_def.h>
6528 or <machine/ndr_def.h> and add -DNDR_DEF_HEADER=... to DEFINES.
6529 * sysdeps/mach/configure: Regenerated.
6530 * mach/mach_init.c [NDR_DEF_HEADER]: #include it.
6532 * hurd/hurdfault.c (_hurdsig_fault_init): Add a cast.
6534 * hurd/hurd/signal.h: Include <setjmp.h> for `jmp_buf' decl.
6536 * mach/msgserver.c (__mach_msg_server_timeout) [! MACH_RCV_LARGE]:
6537 Double MAX_SIZE and don't retry on MACH_RCV_TOO_LARGE.
6539 2002-02-17 Roland McGrath <roland@frob.com>
6541 * sysdeps/mach/hurd/times.c
6542 [NO_CREATION_TIME] (startup_time): New static variable.
6543 [NO_CREATION_TIME] (times_init): New static function in __libc_subinit.
6544 (__times) [NO_CREATION_TIME]: Use startup_time in lieu of task
6545 creation_time from task_basic_info.
6546 (__times): Use __gettimeofday instead of __host_get_time.
6548 * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg) [! MACH_MSG_TYPE_BIT]:
6549 Use untyped Mach IPC message format.
6551 * hurd/catch-exc.c: Include <assert.h>, missing from last change.
6553 * hurd/Versions (libc: GLIBC_2.0): Add _S_catch_exception_raise_state,
6554 _S_catch_exception_raise_state_identity,
6555 _hurdsig_fault_catch_exception_raise_state,
6556 _hurdsig_fault_catch_exception_raise_state_identity.
6558 * mach/shortcut.awk: Don't apply the /^}$/ rule when $proto == "".
6560 * sysdeps/mach/getsysstats.c (__get_avphys_pages) [HOST_VM_INFO]: Use
6561 __host_info with HOST_VM_INFO flavor instead of __vm_statistics.
6563 * sysdeps/mach/hurd/getpriority.c [TASK_SCHED_TIMESHARE_INFO]: Find
6564 `base_priority' in PIP->timeshare_base_info instead of PIP->taskinfo.
6566 * sysdeps/mach/hurd/dl-sysdep.c [FMH]: Define for i386 only.
6567 (fmh, unfmh): Define these functions only #if FMH. Otherwise define
6568 them as no-op macros.
6569 [FMH] (ELF_MACHINE_USER_ADDRESS_MASK): Redefine it to zero.
6570 (__mmap): Uncomment uses of ELF_MACHINE_USER_ADDRESS_MASK.
6572 * sysdeps/powerpc/dl-machine.h
6573 (ELF_MACHINE_USER_ADDRESS_MASK): New macro.
6575 * hurd/hurdselect.c (_hurd_select) [MACH_MSG_TRAILER_MINIMUM_SIZE]:
6576 Use untyped Mach IPC message format.
6578 * sysdeps/mach/hurd/ioctl.c (__ioctl) [! MACH_MSG_TYPE_BIT]:
6579 Handle untyped Mach IPC message formats.
6581 * hurd/catch-exc.c (_S_catch_exception_raise) [EXC_MASK_ALL]:
6582 Expect different argument conventions when this is defined.
6583 [EXC_MASK_ALL] (_S_catch_exception_raise_state): New stub function.
6584 [EXC_MASK_ALL] (_S_catch_exception_raise_state_identity): Likewise.
6585 * hurd/hurdfault.c: Likewise for _hurdsig_fault_catch_exception_*.
6586 [NDR_CHAR_ASCII] (mig_reply_header_t): #define as mig_reply_error_t
6587 for OSF Mach variant.
6588 (faulted): Use mig_reply_error_t for REPLY.
6589 (_hurdsig_fault_init) [EXC_MASK_ALL]: Use EXCEPTION_STATE_IDENTITY
6590 in __thread_set_exception_ports call.
6591 (_hurdsig_fault_init) [MACH_PORT_RECEIVE_STATUS]: Use
6592 __mach_port_set_attributes in place of __mach_port_set_qlimit.
6594 * sysdeps/mach/powerpc/sysdep.h (_MACH_MACHINE_ASM_H): Define this
6595 before include <sysdeps/mach/sysdep.h>, to inhibit <mach/machine/asm.h>
6596 on Darwin, which includes bogons.
6598 * sysdeps/powerpc/dl-machine.h (elf_machine_rela): Move local
6599 variable LOADBASE so it's not declared when it's not used.
6601 2002-02-16 Roland McGrath <roland@frob.com>
6603 * sysdeps/mach/hurd/times.c (__times) [NO_CREATION_TIME]: Don't try
6604 to use BI.creation_time.
6606 * mach/Machrules (MIG): Add -x c to CPP value passed down.
6608 * config.h.in: Add #undef HAVE_HOST_PAGE_SIZE.
6609 * sysdeps/mach/configure.in: Check for host_page_size RPC to define it.
6610 * mach/mach_init.c (__mach_init) [HAVE_HOST_PAGE_SIZE]: Use
6611 host_page_size instead of vm_statistics.
6613 * sysdeps/mach/Makefile (mach-before-compile): Don't include
6614 mach_interface.h here, since not all variants use that name.
6616 * sysdeps/mach/configure.in: Add some checks for Mach headers
6617 to ensure a sane installation.
6618 (mach_interface_list): Define this variable by checking for .defs
6619 files found in various variants.
6620 * configure.in (mach_interface_list): AC_SUBST this.
6621 * config.make.in (mach-interface-list): New substituted variable.
6622 * mach/Makefile (user-interfaces): Define this using the value
6623 of $(mach-interface-list) instead of mach, mach4.
6624 Updated other references to mach_interface to use it as well.
6626 * sysdeps/mach/powerpc/machine-lock.h: Avoid multi-line strings.
6628 * mach/msgserver.c [NDR_CHAR_ASCII] (mig_reply_header_t): #define as
6629 mig_reply_error_t for OSF Mach variant.
6631 * mach/Makefile (routines): Remove bootprivport.
6632 * mach/bootprivport.c: File removed. It has never been used.
6634 * mach/msg-destroy.c (__mach_msg_destroy) [MACH_MSG_PORT_DESCRIPTOR]:
6635 Grok the OSF flavor of message format.
6636 (mach_msg_destroy_port): For MAKE_SEND and
6637 MAKE_SEND_ONCE rights, create an destroy a right to ensure proper
6638 no-senders notification.
6640 2002-02-06 Roland McGrath <roland@frob.com>
6642 * hurd/Versions (libc: GLIBC_2.0): Move cthread_fork, cthread_detach
6643 to here if 2.0 compatibility enabled ...
6644 (libc: GLIBC_2.1.3): ... from here.
6646 2002-02-15 Ulrich Drepper <drepper@redhat.com>
6648 * elf/dl-open.c (dl_open_worker): Catch wrap-around of TLS
6650 * elf/dl-close.c (_dl_close): Likewise.
6652 2002-02-14 Ulrich Drepper <drepper@redhat.com>
6654 * elf/Makefile: Add rules to build and run tst-tls8.
6655 * elf/tst-tls8.c: New file.
6656 * elf/tst-tlsmod4.c: New file.
6658 * stdlib/test-a64l.c (tests): Add more test cases.
6660 * sunrpc/rtime.c (rtime): Change type of thetime to uint32_t.
6661 Reported by Walter Harms <WHarms@bfs.de>.
6663 2002-02-11 Jes Sorensen <jes@trained-monkey.org>
6665 * sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h: Add sc_flag bit
6666 definitions for struct sigcontext.
6667 Suggested by David Mosberger-Tang.
6669 2002-02-13 Ulrich Drepper <drepper@redhat.com>
6671 * elf/dl-close.c (remove_slotinfo): New function. Handles everything
6672 for removing reference of module in slotinfo list.
6673 (_dl_close): Use remove_slotinfo.
6674 * sysdeps/generic/dl-tls.c: General pretty printing.
6675 (oom): Define only if SHARED.
6676 (_dl_next_tls_modid): Correct starting point for the case we assume
6677 there is a gap. Add missing instruction grouping (doh!). Correct
6678 tests for reaching maximum index.
6679 * elf/Makefile: Add rules to build and run tst-tls7.
6680 * elf/tst-tls7.c: New file.
6681 * elf/tst-tlsmod3.c: New file.
6683 * elf/tst-tlsmod1.c: Move #include "tls-macros.h" instead #ifdef
6685 * elf/tst-tlsmod2.c: Likewise.
6687 * elf/dl-close.c (_dl_close): When closing an object using TLS
6688 either decrement dl_tls_max_dtv_idx or set dl_tls_dtv_gaps to
6689 true. Increment dl_tls_generation only if we closed any TLS-using
6691 * elf/tst-tls6.c: New file.
6692 * elf/Makefile: Add rules to build and run tst-tls6.
6694 * po/da.po: Update from translation team.
6696 * locale/categories.def: Fix typo [PR libc/2948].
6697 * po/Makefile (BROKEN_LINGUAS): Works with current gettext
6699 * locale/iso-4217.def: Update from official version [PR libc/2950].
6700 * glibcbug.in: Honor TMPDIR [PR libc/2951].
6701 * locale/programs/ld-collate.c (collate_finish): Bail out with a
6702 message if input is too confusion instead of using assert.
6703 (collate_read): Don't crash on unknown symbol [PR libc/2952].
6704 Patches by Alastair McKinstry <alastair@pdd.3com.com>.
6706 * elf/tst-tls1.c: Move #include "tls-macros.h" instead #ifdef USE_TLS.
6707 * elf/tst-tls2.c: Likewise.
6708 * elf/tst-tls3.c: Likewise.
6710 2002-02-13 Jakub Jelinek <jakub@redhat.com>
6712 * elf/dl-close.c (free_slotinfo): Only define if TLS supported.
6714 2002-02-13 Ulrich Drepper <drepper@redhat.com>
6716 * elf/dl-open.c (dl_open_worker): Only bump the generation counter
6717 if this is really necessary.
6719 * elf/dl-close.c (_dl_close): Implement freeing entries in the
6721 (free_mem): Free memory for the slotinfo array if possible.
6723 2002-02-12 Andreas Schwab <schwab@suse.de>
6725 * csu/gmon-start.c (__gmon_start__): Remove '&' from ENTRY_POINT.
6727 2002-02-12 Ulrich Drepper <drepper@redhat.com>
6729 * sysdeps/generic/dl-tls.c (TLS_DTV_UNALLOCATED): Renamed from
6731 (oom): New function.
6732 (_dl_next_tls_modid): Rewrite to handle dl_tls_dtv_slotinfo_list.
6733 (_dl_determine_tlsoffset): Likewise.
6734 (_dl_allocate_tls): Likewise.
6735 (__TLS_GET_ADDR): Define if not already defined.
6736 (_dl_tls_symaddr): New function.
6737 (allocate_and_init): New function.
6738 (__tls_get_addr): Actually implement handling of generation counter
6739 and deferred allocation.
6740 * sysdeps/generic/ldsodefs.h (_rtld_global): Remove _dl_initimage_list,
6741 add _dl_tls_dtv_slotinfo_list, _dl_tls_static_nelem, and
6743 Define TLS_SLOTINFO_SURPLUS and DTV_SURPLUS.
6744 Declare _dl_tls_symaddr.
6745 * sysdeps/i386/dl-tls.h: Disable __tls_get_addr handling unless
6747 * include/link.h (struct link_map): Remove l_tls_nextimage and
6749 * elf/dl-sym.c (_dl_sym): After successful lookup call _dl_tls_symaddr
6750 instead of DL_SYMBOL_ADDRESS for STT_TLS symbols.
6751 (_dl_vsym): Likewise.
6752 * elf/rtld.c (_dl_start_final): Adjust initdtv initialization for new
6754 (dl_main): Allow PT_TLS be present for empty segment. Remove
6755 nextimage list handling. Instead add all modules using TLS to
6756 dl_tls_dtv_slotinfo_list.
6757 * elf/dl-open.c (dl_open_worker): After successfully loading all
6758 objects add those with TLS to the dl_tls_dtv_slotinfo_list list.
6759 * elf/dl-load.c (_dl_map_object_from_fd): If PT_TLS entry is for an
6760 empty segment don't do anything. Remove handling of initimage list.
6761 * elf/Versions [ld] (GLIBC_2.0): Add __libc_memalign.
6762 (GLIBC_PRIVATE): Add _dl_tls_symaddr.
6763 * elf/dl-minimal.c: Define __libc_memalign.
6764 * elf/dl-support.c: Remove _dl_initimage_list. Add
6765 _dl_tls_dtv_slotinfo_list, _dl_tls_static_nelem, and
6767 * include/stdlib.h: Declare __libc_memalign.
6769 * elf/Makefile: Add rules to build and run tst-tls4 and tst-tls5.
6770 * elf/tst-tls4.c: New file.
6771 * elf/tst-tls5.c: New file.
6772 * elf/tst-tlsmod2.c: New file.
6774 * elf/tls-macros.h: asms using ___tls_get_addr destroy %ecx and %edx.
6776 * elf/tst-tlsmod1.c: Don't define variables unles USE_TLS.
6778 * elf/tst-tls1.c: Use test-skeleton.c.
6779 * elf/tst-tls2.c: Likewise.
6780 * elf/tst-tls3.c: Likewise.
6782 * elf/dl-conflict.c (RESOLVE_MAP): Return NULL not 0.
6784 2002-02-08 Daniel Jacobowitz <drow@mvista.com>
6786 * sysdeps/mips/machine-gmon.h: Update MCOUNT for current GCC behavior.
6788 2002-02-10 Ulrich Drepper <drepper@redhat.com>
6790 * elf/elf.h: Define R_386_TLS_GD and R_386_TLS_LDM.
6792 * elf/tst-tls3.c: New file.
6793 * elf/tst-tlsmod1.c: New file.
6794 * elf/Makefile: Add rules to build and run tst-tls3.
6796 * sysdeps/i386/dl-machine.h: Include <tls.h>.
6797 (elf_machine_type_class): Set ELF_RTYPE_CLASS_PLT also for the three
6800 * elf/do-lookup.h (FCT): st_value can be zero for STT_TLS symbols.
6802 * po/fr.po: Update from translation team.
6804 * elf/tls-macros.h: Add alternative macros for use in PIC.
6806 * elf/dl-lookup.c: Include <tls.h>.
6807 * elf/do-lookup.h (FCT): Don't discard STT_TLS symbols.
6809 * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): More changes
6810 required by passing pointer to last element of the list.
6812 * elf/dl-load.c (_dl_map_object_from_fd): Move adjustment of
6813 l_tls_initimage to a place where it actually is performed.
6815 * sysdeps/generic/glob.c (glob): Explicitly set gl_pathc to zero
6816 after globfree() calls.
6818 * elf/dl-deps.c (struct openaux_args): Add open_mode element.
6819 (openaux): Pass open_mode as new last argument to _dl_map_object.
6820 (_dl_map_object_deps): Add new argument open_mode. Initialize
6821 open_mode element of args variable with it.
6822 * elf/dl-open.c (dl_open_worker): Pass __RTLD_DLOPEN flag is set to
6823 _dl_map_object_deps.
6824 * elf/rtld.c (dl_main): Add zero as last parameter to
6825 _dl_map_object_deps call.
6826 * sysdeps/generic/ldsodefs.h: Adjust prototype of _dl_map_object_deps.
6827 * elf/nodlopen2.c: New file.
6828 * elf/nodlopenmod2.c: New file.
6829 * elf/Makefile: Add rules to build and run nodlopen2.
6831 * elf/tst-tls1.c: Move TLS helper macros to...
6832 * elf/tls-macros.h: ...here. New file.
6833 * elf/tst-tls2.c: New file.
6834 * elf/Makefile (tests): Add tst-tls2.
6835 (distribute): Add tls-macros.h.
6837 * po/sv.po: Update from translation team.
6839 * elf/tst-tls1.c (main): Add complete set of tests. Split
6840 architecture specific definitions from the actual test code.
6842 * po/tr.po: Update from translation team.
6844 2002-02-09 Ulrich Drepper <drepper@redhat.com>
6846 * elf/Makefile (tests): Add tst-tls1.
6847 * elf/tst-tls1.c: New file.
6849 * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): Don't handle
6850 alignment of TCB for now.
6852 * elf/rtld.c (dl_main): Use p_vaddr as address of TLS
6853 initialization image for the application itself.
6855 * sysdeps/generic/dl-tls.c (_dl_allocate_tls): Correctly terminate
6856 loop to initialize TLS block.
6858 2002-02-08 Richard Henderson <rth@redhat.com>
6860 * sysdeps/generic/ldsodefs.h (struct rtld_global): Also include
6861 _dl_cpuclock_offset if HP_SMALL_TIMING_AVAIL.
6863 * sysdeps/alpha/elf/initfini.c: Use \n\ for multiline string.
6865 2002-02-09 Jakub Jelinek <jakub@redhat.com>
6867 * sysdeps/generic/dl-environ.c (unsetenv): Clear cnt before use.
6869 2002-02-08 Ulrich Drepper <drepper@redhat.com>
6871 * po/ca.po: Update from translation team.
6872 * po/sk.po: Likewise.
6874 * elf/rtld.c (_dl_start_final): Install DTV explicitly.
6875 (dl_main): Move dtv/static TLS handling before relocation.
6876 Unconditionally call _dl_tlsoffset. Call _dl_allocate_tls and
6877 TLS_INIT_TP to allocate and install the dtv/static TLS block.
6878 * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): If no object
6879 so far uses TLS initialize GL(dl_tls_static_size) and
6880 GL(dl_tls_static_align) to account for the TCB.
6881 (_dl_allocate_tls): New function.
6882 * sysdeps/generic/ldsodefs.h (rtld_global): Add
6883 _dl_initial_dtv_malloced.
6885 * configure.in: Test for __builtin_memset more realistically.
6887 * csu/version.c (banner): If TLS support is available say so.
6889 2002-02-04 H.J. Lu <hjl@gnu.org>
6891 * sysdeps/mips/dl-machine.h (elf_machine_matches_host): Use
6893 (__dl_runtime_resolve): Likewise.
6895 * sysdeps/mips/machine-gmon.h (_MCOUNT_DECL): Make it a real
6898 2001-11-15 H.J. Lu <hjl@gnu.org>
6900 * sysdeps/unix/sysv/linux/mips/sys/procfs.h: Don't include
6901 <signal.h>, <sys/ucontext.h> nor <asm/elf.h>. Updated for gdb.
6903 * sysdeps/unix/sysv/linux/mips/sys/user.h: New.
6905 2002-02-07 H.J. Lu <hjl@gnu.org>
6907 * sysdeps/mips/atomicity.h (compare_and_swap): Remove
6909 * sysdeps/unix/sysv/linux/mips/sys/tas.h (_test_and_set):
6912 2002-02-07 Ulrich Drepper <drepper@redhat.com>
6914 * sysdeps/unix/sysv/linux/bits/stat.h: Undo last patch.
6916 * sysdeps/i386/dl-tls.h (__tls_get_addr): Call
6917 ___tls_get_addr_internal.
6918 (___tls_get_addr_internal): Define as alias for ___tls_get_addr.
6920 * po/ko.po: Update from translation team.
6922 2002-02-07 Jakub Jelinek <jakub@redhat.com>
6924 * sysdeps/unix/sysv/linux/bits/stat.h (struct stat): Remove packed
6925 attribute, change __pad{1,2} type to unsigned int.
6926 (struct stat64): Remove packed attribute.
6928 2002-02-07 Ulrich Drepper <drepper@redhat.com>
6930 * sysdeps/i386/dl-tls.h: No need for #ifdef USE_TLS.
6932 2002-02-07 Andreas Schwab <schwab@suse.de>
6934 * configure.in: Fix check for -zcombreloc.
6936 2002-02-06 H.J. Lu <hjl@gnu.org>
6938 * config.h.in (HAVE_BUILTIN_MEMSET): New.
6939 * configure.in: Check if __builtin_memset really works.
6940 * elf/rtld.c (_dl_start): Check HAVE_BUILTIN_MEMSET instead of
6941 __GNUC_PREREQ (2, 96) before using __builtin_memset.
6943 2002-02-06 Jakub Jelinek <jakub@redhat.com>
6945 * io/bug-ftw3.c (main): Don't try the test if root.
6947 2002-02-06 Martin Schwidefsky <schwidefsky@de.ibm.com>
6949 * sysdeps/unix/sysv/linux/s390/brk.c (__brk): Correct inline assembly
6951 * sysdeps/unix/sysv/linux/s390/s390-32/bits/resource.h (RLIMIT_LOCKS):
6952 Add RLIMIT_LOCKS and adjust RLIMIT_NLIMITS.
6953 * sysdeps/unix/sysv/linux/s390/s390-64/bits/resource.h (RLIMIT_LOCKS):
6955 * sysdeps/unix/sysv/linux/s390/s390-32/clone.S (clone): Make clone
6956 a weak alias for __clone.
6957 * sysdeps/unix/sysv/linux/s390/s390-64/clone.S (clone): Likewise.
6958 * sysdeps/unix/sysv/linux/s390/s390-32/profil-counter.h: Fix typo.
6959 * sysdeps/unix/sysv/linux/s390/s390-64/Makefile: Add framestate.
6960 * sysdeps/unix/sysv/linux/s390/s390-64/Versions: New file.
6961 * sysdeps/unix/sysv/linux/s390/s390-64/mmap.S (__mmap64): Make __mmap
6962 a weak alias for __mmap64.
6964 2002-02-05 H.J. Lu <hjl@gnu.org>
6966 * sysdeps/mips/atomicity.h (exchange_and_add): Not use branch likely.
6967 (atomic_add): Likewise.
6968 (compare_and_swap): Likewise.
6969 * sysdeps/unix/sysv/linux/mips/sys/tas.h (_test_and_set): Likewise.
6971 2002-02-07 Ulrich Drepper <drepper@redhat.com>
6973 * sysdeps/generic/dl-tls.c: Don't read TLS header if TLS is not needed.
6975 * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): Account for
6976 alignment of the TCB and store total size and alignment of static
6977 TLS block in _dl_tls_static_size and _dl_tls_static_align.
6978 tls_index is a typedef.
6979 * sysdeps/generic/ldsodefs.h: Declare _dl_tls_static_size and
6980 _dl_tls_static_align.
6981 * sysdeps/i386/dl-tls.h: tls_index is a typedef.
6982 * elf/dl-support.c: Define _dl_tls_static_size and
6983 _dl_tls_static_align.
6985 2002-02-06 Ulrich Drepper <drepper@redhat.com>
6987 * configure.in: Add --without-tls option.
6988 * sysdeps/i386/elf/configure.in: Don't check for TLS support if
6989 --without-tls is given.
6991 * sysdeps/generic/dl-tls.c: Include <tls.h>.
6993 * sysdeps/i386/dl-tls.h: Don't define anything if !USE_TLS.
6995 2002-02-06 Roland McGrath <roland@frob.com>
6997 * malloc/hooks.c [! HAVE_MREMAP]: Conditionalize unused decls.
6998 * malloc/malloc.c [! HAVE_MREMAP]: Likewise.
7000 * scripts/versions.awk: Improve error message for missing version.
7001 Each version inherits from the last one only if they have the same
7002 nonnumeric prefix, i.e. GLIBC_x.y and GLIBC_x.z or FOO_x and FOO_y
7003 but not GLIBC_x and FOO_y.
7005 * scripts/firstversions.awk: Handle libraries that don't have each
7006 particular version named in the third column of shlib-versions.
7008 * scripts/firstversions.awk: Don't mess with GLIBC_PRIVATE.
7010 2002-02-06 Ulrich Drepper <drepper@redhat.com>
7012 * Versions.def [ld]: Add GLIBC_2.3.
7013 * elf/Versions [ld]: Add __tls_get_addr to GLIBC_2.3.
7014 * elf/Makefile (dl-routines): Add dl-tls.
7015 (distribute): Add dl-tls.h.
7016 * sysdeps/generic/ldsodefs.h (struct rtld_global): Remove
7017 _dl_tls_module_cnt, add _dl_tls_max_dtv_idx and _dl_tls_dtv_gaps.
7018 Add prototypes for _dl_next_tls_modid and _dl_determine_tlsoffset.
7019 * elf/dl-load.c (_dl_map_object_from_fd): Store alignment requirement
7020 along with the other info in the link map. Change queueing of init
7021 images for double linked list. Use _dl_next_tls_modid to compute
7023 * elf/rtld.c (_dl_start_final): Store alignment requirement
7024 along with the other info in rtld map and executable map.
7025 (dl_main): Add ld.so to the init image list if necessary. Compute
7026 final module ID with _dl_next_tls_modid.
7027 * include/link.h (struct link_map): Add l_tls_previmage and
7029 * eld/dl-support.c: Define _dl_tls_max_dtv_idx and _dl_tls_dtv_gaps.
7030 * sysdeps/i386/elf/Versions: New file.
7031 * sysdeps/generic/dl-tls.c: New file.
7032 * sysdeps/generic/dl-tls.h: New file.
7033 * sysdeps/i386/dl-tls.h: New file.
7035 2002-02-06 Roland McGrath <roland@frob.com>
7037 * sysdeps/unix/sysv/linux/netinet/ip.h: Moved to ...
7038 * sysdeps/generic/netinet/ip.h: ... here, replacing old file.
7040 2002-01-05 Roland McGrath <roland@frob.com>
7042 * sysdeps/mach/configure.in: New file.
7043 * sysdeps/mach/configure: New generated file.
7045 * mach/Makefile (user-interfaces): Remove default_pager_helper.
7046 It has never been used by anything.
7048 2002-02-06 H.J. Lu <hjl@gnu.org>
7050 * sysdeps/mips/elf/ldsodefs.h: Make sure the right <ldsodefs.h>
7053 2002-02-06 Ulrich Drepper <drepper@redhat.com>
7055 * sysdeps/unix/sysv/linux/bits/stat.h (struct stat): Add
7056 attribute((packed)) to counter stupid people misusing gcc options.
7057 (struct stat64): Likewise.
7059 2002-02-05 Ulrich Drepper <drepper@redhat.com>
7061 * elf/rtld.c (dl_main): Correct indentation. Use bool as type for
7062 the variables which are used as booleans.
7064 2002-02-06 Andreas Jaeger <aj@suse.de>
7066 * include/libc-symbols.h (INTUSE): Renamed from INT.
7067 * elf/dl-deps.c: Change users.
7068 * sysdeps/generic/dl-sysdep.c: Likewise.
7069 * sysdeps/generic/dl-cache.c: Likewise.
7070 * elf/dl-reloc.c: Likewise.
7071 * elf/rtld.c: Likewise.
7072 * elf/dl-version.c: Likewise.
7073 * elf/dl-load.c: Likewise.
7074 * elf/dl-dst.h: Likewise.
7075 * elf/dl-init.c: Likewise.
7076 * elf/dl-error.c: Likewise.
7077 * elf/dl-fini.c: Likewise.
7078 * elf/dl-runtime.c: Likewise.
7079 * elf/do-lookup.h: Likewise.
7081 * stdio-common/_itoa.h: Undefine SPECIAL to avoid duplicate
7083 * stdio-common/_itowa.h: Likewise.
7085 2002-02-05 Ulrich Drepper <drepper@redhat.com>
7087 * elf/dl-minimal.c: Define _itoa_lower_digits.
7089 * elf/dynamic-link.h (elf_get_dynamic_info): ld.so can have
7092 * elf/dl-load.c (_dl_map_object_from_fd): Prevent dynamically
7093 loading modules with the DF_STATIC_TLS flag set.
7094 * elf/dynamic-link.h (elf_get_dynamic_info): Initialize l_flags
7096 * include/link.h (struct link_map): Add l_flags field.
7097 * elf/elf.h (DF_STATIC_TLS): New definition.
7099 * dlfcn/Makefile: Add rules to build and run bug-dlopen1.
7100 * dlfcn/bug-dlopen1.c: New file. By Bruno Haible.
7102 * elf/rtld.c (process_dl_debug): Correct printing help message.
7103 * elf/dl-misc.c (_dl_debug_vdprintf): Implement precision handling
7106 * inet/getnetgrent_r.c (innetgr): Add int* parameter to getfct
7107 definition and pass &errno in use of this variable.
7108 Reported by Simon Wilkinson <simon@sxw.org.uk> [PR libc/2911].
7110 2002-02-04 Andreas Schwab <schwab@suse.de>
7112 * locale/programs/localedef.h (WITH_CUR_LOCALE): Define.
7113 * locale/programs/charmap-dir.c: Wrap calls that output messages
7114 with WITH_CUR_LOCALE. Include "localedef.h" first.
7115 * locale/programs/charmap.c: Likewise.
7116 * locale/programs/ld-address.c: Likewise.
7117 * locale/programs/ld-collate.c: Likewise.
7118 * locale/programs/ld-ctype.c: Likewise.
7119 * locale/programs/ld-identification.c: Likewise.
7120 * locale/programs/ld-measurement.c: Likewise.
7121 * locale/programs/ld-messages.c: Likewise.
7122 * locale/programs/ld-monetary.c: Likewise.
7123 * locale/programs/ld-name.c: Likewise.
7124 * locale/programs/ld-numeric.c: Likewise.
7125 * locale/programs/ld-paper.c: Likewise.
7126 * locale/programs/ld-telephone.c: Likewise.
7127 * locale/programs/ld-time.c: Likewise.
7128 * locale/programs/linereader.c: Likewise.
7129 * locale/programs/linereader.h: Likewise.
7130 * locale/programs/localedef.c: Likewise.
7131 * locale/programs/locfile.c: Likewise.
7132 * locale/programs/repertoire.c: Likewise.
7134 2002-02-05 Ulrich Drepper <drepper@redhat.com>
7136 * elf/rtld.c (_dl_start_final): Determine load address to locate
7137 ehdr with GL(dl_rtld_map).l_map_start.
7139 * po/ca.po: Update from translation team.
7141 * elf/rtld.c (dl_main): Read PT_TLS entry of the executable.
7142 * elf/dl-load.c (_dl_map_object_from_fd): Handle PT_TLS program
7144 * sysdeps/generic/ldsodefs.h (struct rtld_global): Add
7146 * elf/dl-support.c: Define _dl_initimage_list and _dl_tls_module_cnt.
7148 2002-02-04 Ulrich Drepper <drepper@redhat.com>
7150 * elf/rtld.c (_dl_start): Fill TLS values in link map for rtld.
7151 * include/link.h (struct link_map): Add various members for TLS
7153 * sysdeps/generic/ldsodefs.h (struct rtld_global): Remove
7154 _rtld_tlsoffset, add _dl_initimage_list.
7155 * sysdeps/i386/dl-lookupcfg.h: New file.
7156 * sysdeps/i386/dl-machine.h (elf_machine_rel): Implement missing
7157 TLS relocation. When using TLS we now use RESOLVE_MAP.
7158 (elf_machine_rela): Use RESOLVE_MAP instead of RESOLVE_MAP if TLS
7161 * sysdeps/generic/dl-cache.c (_dl_cache_libcmp): Mark as possibly
7164 * elf/rtld.c (_dl_start_final): Allocate TLS and initialize
7165 thread-pointer as soon as possible.
7166 * sysdeps/generic/ldsodefs.h: Include <tls.h>. Define first TLS
7167 elements in rtld_global.
7168 * sysdeps/generic/tls.h: New file.
7169 * elf/Makefile (distribute): Add tls.h.
7170 * sysdeps/i386/dl-machine.h (elf_machine_rel): Add support for TLS
7171 relocations. Not complete yet.
7173 * resolv/resolv.h: Allow user to define __need_res_state and only
7174 define __res_start structure then.
7175 * include/resolv.h: Only declare functions if _RESOLV_H_ is defined.
7177 * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Move
7178 dl_cpuclock_offset initialization to _dl_start_final.
7179 (_dl_show_auxv): Avoid unnecessary sign extension.
7180 * elf/rtld.c (_dl_start_final): Initialize dl_cpuclock_offset.
7182 2002-02-03 Ulrich Drepper <drepper@redhat.com>
7184 * config.h.in: Add HAVE_TLS_SUPPORT.
7185 * sysdeps/i386/elf/configure.in: New file.
7187 2002-02-03 Andreas Schwab <schwab@suse.de>
7189 * sysdeps/posix/readv.c: Use ssize_t for bytes_read.
7190 * sysdeps/posix/writev.c: Use ssize_t for bytes_written. Fix comment.
7192 2002-02-03 Thorsten Kukuk <kukuk@suse.de>
7194 * sysdeps/posix/writev.c: Check for ssize_t overflow, don't use
7195 alloca if the memory reqirements are too high.
7197 2002-02-03 Ulrich Drepper <drepper@redhat.com>
7199 * elf/dl-load.c (decompose_rpath): Avoid using strstr.
7200 * elf/dl-minimal.c (_strerror_r): Use _itoa instead of _itoa_word since
7201 the former is available anyway and speed isn't important here.
7202 * elf/dl-misc.c (_dl_debug_vdprintf): Likewise.
7203 * elf/dl-version.c (match_symbol): Likewise.
7204 (_dl_check_map_versions): Likewise.
7205 * elf/rtld.c (process_envvars): Likewise.
7206 (print_statistics): Likewise.
7207 * sysdeps/generic/dl-sysdep.c (_dl_show_auxv): Likewise.
7208 * elf/dl-minimal.c (_itoa): Always define it. Make it work for all
7209 bases. Add assert to catch uses of unimplemented features.
7210 (__strsep): Add assert to catch uses of unimplemented features.
7211 * elf/dl-object.c (_dl_new_object): Don't use rawmemchr. Use strchr
7212 and avoid inline optimization.
7213 * elf/rtld.c (process_envvars): Likewise.
7214 * elf/dl-open.c: Don't include <stdio-common/_itoa.h>.
7215 * elf/dl-profile.c (_dl_start_profile): Help compiler to avoid ffs.
7216 * elf/rtld.c (dl_main): Avoid strsep inline optimization.
7218 2002-02-02 Ulrich Drepper <drepper@redhat.com>
7220 * stdio-common/_itoa.h: Minor simplifications of the code.
7221 * stdio-common/_itoa.c: Likewise.
7223 * elf/dl-reloc.c (_dl_relocate_object): Use _dl_debug_printf
7224 instead of _dl_printf for debugging info output.
7226 * manual/examples/mkfsock.c (make_named_socket): Make sure name is
7227 always NUL-terminated. Patch by Chris D. Sloan <cds@cs.hmc.edu>.
7229 2002-02-01 H.J. Lu <hjl@gnu.org>
7231 * sysdeps/mips/atomicity.h (exchange_and_add): Use branch likely.
7232 (atomic_add): Likewise.
7233 (compare_and_swap): Return 0 only when failed to compare. Use
7236 * sysdeps/unix/sysv/linux/mips/sys/tas.h (_test_and_set): Use
7239 2002-02-03 kaz Kojima <kkojima@rr.iij4u.or.jp>
7241 * sysdeps/sh/dl-machine.h (elf_machine_rela): Fix a typo.
7243 2002-02-02 Ulrich Drepper <drepper@redhat.com>
7245 * elf/dl-minimal.c (__strsep): New minimal implementation.
7247 2002-02-02 Paul Eggert <eggert@twinsun.com>
7249 * src/mktime.c [defined DEBUG && STDC_HEADERS]: Include <string.h>.
7250 (__mktime_internal): If no tm_isdst is requested, prefer solutions
7251 with tm_isdst > 0 when the requested time falls within a
7252 spring-forward gap [PR libc/2894].
7254 2002-02-03 Andreas Schwab <schwab@suse.de>
7256 * stdio-common/tst-rndseek.c: Increase timeout.
7258 2002-02-02 Ulrich Drepper <drepper@redhat.com>
7260 Change ld.so to not use functions which are exported. One cannot
7261 interpose them anyway. Use INT() to mark uses, INTDEF() to mark
7263 * include/libc-symbols.h: Define INT and INTDEF.
7264 * sysdeps/generic/ldsodefs.h: Declare _dl_debug_printf_internal,
7265 _dl_signal_error_internal, _dl_map_object_internal,
7266 _dl_map_object_deps_internal, _dl_lookup_symbol_internal,
7267 _dl_lookup_versioned_symbol_internal,
7268 _dl_relocate_object_internal, _dl_debug_state_internal,
7269 _dl_start_profile_internal, and _dl_unload_cache_internal.
7270 * include/dlfcn.h: Declare _dl_catch_error_internal.
7271 * elf/rtld.c: Use INT for calls to any of the *_internal functions
7272 above. Add INTDEF to function definitions.
7273 * elf/dl-debug.c: Likewise.
7274 * elf/dl-deps.c: Likewise.
7275 * elf/dl-dst.h: Likewise.
7276 * elf/dl-error.c: Likewise.
7277 * elf/dl-fini.c: Likewise.
7278 * elf/dl-init.c: Likewise.
7279 * elf/dl-load.c: Likewise.
7280 * elf/dl-lookup.c: Likewise.
7281 * elf/dl-misc.c: Likewise.
7282 * elf/dl-open.c: Likewise.
7283 * elf/dl-profile.c: Likewise.
7284 * elf/dl-reloc.c: Likewise.
7285 * elf/dl-runtime.c: Likewise.
7286 * elf/dl-version.c: Likewise.
7287 * elf/do-lookup.h: Likewise.
7288 * sysdeps/generic/dl-cache.c: Likewise.
7289 * sysdeps/generic/dl-sysdep.c: Likewise.
7290 * sysdeps/alpha/dl-machine.h (RTLD_START): Call _dl_init_internal
7291 instead of _dl_init.
7292 * sysdeps/arm/dl-machine.h: Likewise.
7293 * sysdeps/cris/dl-machine.h: Likewise.
7294 * sysdeps/hppa/dl-machine.h: Likewise.
7295 * sysdeps/i386/dl-machine.h: Likewise.
7296 * sysdeps/ia64/dl-machine.h: Likewise.
7297 * sysdeps/m68k/dl-machine.h: Likewise.
7298 * sysdeps/mips/dl-machine.h: Likewise.
7299 * sysdeps/mips/mips64/dl-machine.h: Likewise.
7300 * sysdeps/s390/s390-32/dl-machine.h: Likewise.
7301 * sysdeps/s390/s390-64/dl-machine.h: Likewise.
7302 * sysdeps/sh/dl-machine.h: Likewise.
7303 * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
7304 * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
7305 * sysdeps/x86_64/dl-machine.h: Likewise.
7306 * sysdeps/powerpc/dl-start.S (_dl_start_user): Likewise.
7308 * elf/Versions: Don't export _dl_check_all_versions, _dl_sysdep_start,
7309 and _dl_debug_initialize.
7311 * elf/dl-object.c (_dl_new_object): Avoid using strrchr. We have
7313 * elf/rtld.c (dl_main): Avoid strrchr.
7314 * sysdeps/unix/sysv/linux/dl-origin.c (_dl_get_origin): Use the
7315 result of readlink. Search from the back for '/'.
7317 * elf/dl-profile.c (_dl_start_profile): Help the compiler to avoid
7318 strncpy if possible.
7320 * sysdeps/generic/dl-environ.c (unsetenv): Optimize. Don't use
7322 * elf/dl-load.c (is_dst): Optimize. Don't call strncmp twice.
7323 * elf/rtld.c (process_dl_debug): Optimize. Avoid calls to strncmp,
7324 strspn, and strcspn.
7325 (process_envvars): Don't use strcspn.
7327 * elf/dl-load.c (_dl_dst_count): Fix possible endless loop.
7328 (_dl_dst_substitute): Likewise.
7330 2002-02-01 Ulrich Drepper <drepper@redhat.com>
7332 * elf/do-rel.h (elf_dynamic_do_rel): Help the compiler recognize
7333 code which is never used when relocating ld.so itself.
7335 * elf/dynamic-link.h (elf_get_dynamic_info): Optimize a bit for
7336 starting ld.so itself. Move l_addr variable initialization closer
7338 (_ELF_DYNAMIC_DO_RELOC): Help the compiler optimize a bit.
7340 2002-02-01 Jakub Jelinek <jakub@redhat.com>
7342 * Versions.def (libc): Add GLIBC_PRIVATE.
7343 (libdb, libnss_db, libdb1): Remove.
7344 (libnss_compat, libnss_dns, libnss_files, libnss_hesiod, libnss_nis,
7345 libnss_nisplus): Move all symbols to GLIBC_PRIVATE.
7346 (libpthread): Add GLIBC_PRIVATE.
7347 (libresolv): Likewise, remove GLIBC_2.1.
7348 (ld): Add GLIBC_PRIVATE, remove GLIBC_2.1.1, GLIBC_2.2, GLIBC_2.2.1,
7349 GLIBC_2.2.3, GLIBC_2.3.
7350 * catgets/Versions (__open_catalog): Move to GLIBC_PRIVATE.
7351 * elf/Versions (_dl_open, _dl_close, _dl_addr, _dl_init_first,
7352 _dl_sym, _dl_vsym): Likewise.
7353 (__libc_enable_secure, __libc_stack_end, _dl_argv, _dl_catch_error,
7354 _dl_check_all_versions, _dl_check_map_versions, _dl_debug_initialize,
7355 _dl_debug_printf, _dl_debug_state, _dl_dst_count, _dl_dst_substitute,
7356 _dl_init, _dl_lookup_symbol, _dl_lookup_symbol_skip,
7357 _dl_lookup_versioned_symbol, _dl_lookup_versioned_symbol_skip,
7358 _dl_map_object, _dl_map_object_deps, _dl_out_of_memory,
7359 _dl_relocate_object, _dl_signal_error, _dl_start_profile,
7360 _dl_starting_up, _dl_sysdep_start, _dl_unload_cache, _rtld_global):
7362 (_dl_object_relocation_scope): Remove.
7363 * hesiod/Versions: Move all symbols to GLIBC_PRIVATE.
7364 * iconv/Versions (__gconv_alias_db, __gconv_modules_db,
7365 __gconv_cache): Move to GLIBC_PRIVATE.
7366 * inet/Versions (__internal_endnetgrent, __internal_getnetgrent_r,
7367 __internal_setnetgrent): Likewise.
7368 * io/Versions (__libc_open, __libc_close, __libc_read, __libc_write,
7369 __libc_lseek, __libc_fcntl, __libc_open64, __libc_lseek64): Likewise.
7370 * locale/Versions (__collate_element_hash, __collate_element_strings,
7371 __collate_symbol_classes, __collate_symbol_hash,
7372 __collate_symbol_strings, _nl_current_LC_COLLATE,
7373 _nl_current_LC_CTYPE): Likewise.
7374 * misc/Versions (__libc_fsync, __libc_msync): Likewise.
7375 * nis/Versions (libnss_compat): Move all symbols to GLIBC_PRIVATE.
7376 (libnss_nis, libnss_nisplus): Likewise.
7377 * nss/Versions (_nss_files_parse_grent, _nss_files_parse_pwent,
7378 _nss_files_parse_spent): Move to GLIBC_PRIVATE.
7379 (libnss_files): Move all symbols to GLIBC_PRIVATE.
7380 * posix/Versions (__libc_wait, __libc_waitpid, __libc_pause,
7381 __libc_nanosleep, __libc_fork, __libc_pread, __libc_pread64,
7382 __libc_pwrite, __libc_pwrite64): Move to GLIBC_PRIVATE.
7383 * resolv/Versions (__gai_sigqueue, __ns_name_unpack, __ns_name_ntop,
7384 __ns_get16, __ns_samename): Likewise.
7385 (libnss_dns): Move all symbols to GLIBC_PRIVATE.
7386 * setjmp/Versions (__libc_longjmp, __libc_siglongjmp): Move to
7388 * socket/Versions (__libc_accept, __libc_send, __libc_recvfrom,
7389 __libc_recvmsg, __libc_sendmsg, __libc_recv, __libc_sendto,
7390 __libc_connect): Likewise.
7391 * stdio-common/Versions (_itoa_lower_digits, _itoa_upper_digits):
7393 * stdlib/Versions (__libc_system): Likewise.
7394 * sunrpc/Versions (__rpc_thread_destroy): Likewise.
7395 * sysdeps/hppa/Versions: Move all symbols to GLIBC_PRIVATE.
7396 * sysdeps/ia64/fpu/Versions: Likewise.
7397 * sysdeps/ia64/Versions: Likewise.
7398 * sysdeps/unix/sysv/linux/ia64/Versions: Likewise.
7399 * sysdeps/unix/sysv/linux/i386/Versions (__modify_ldt): Move
7401 * sysdeps/unix/sysv/linux/x86_64/Versions (__modify_ldt): Likewise.
7402 * sysdeps/unix/sysv/linux/Versions (__syscall_rt_sigqueueinfo,
7403 __libc_sigaction): Likewise.
7404 * termios/Versions (__libc_tcdrain): Likewise.
7406 * misc/sys/cdefs (__attribute_noinline__): Define.
7407 * elf/dl-lookup.c (_dl_do_lookup, _dl_do_lookup_versioned): Add
7408 __attribute_noinline__.
7410 * elf/Makefile (rtld-routines): Add dl-xstat64, dl-fxstat64.
7411 * elf/dl-xstat64.c: New file.
7412 * elf/dl-fxstat64.c: New file.
7413 * sysdeps/unix/sysv/linux/fxstat64.c: If RTLD_STAT64 is defined,
7414 don't export __fxstat64 at multiple versions.
7415 * sysdeps/unix/sysv/linux/lxstat64.c: Similarly.
7416 * sysdeps/unix/sysv/linux/xstat64.c: Similarly.
7418 2002-01-18 Isamu Hasegawa <isamu@yamato.ibm.com>
7420 * locale/program/ld-collate.c (collate_finish): Assign a wide
7421 char collation sequence value to multi character collating
7422 elements, and avoid over writing by non-character elements.
7424 2002-02-01 Ulrich Drepper <drepper@redhat.com>
7426 * elf/Makefile (distribute): Add dl-procinfo.c.
7427 * sysdeps/unix/sysv/linux/i386/Dist: Remove dl-procinfo.c.
7428 * sysdeps/unix/sysv/linux/arm/Dist: Likewise.
7430 2002-02-01 Jakub Jelinek <jakub@redhat.com>
7432 * sysdeps/generic/ldsodefs.h (_dl_load_lock): Remove duplicate
7434 * sysdeps/ia64/hp-timing.h: Move _dl_hp_timing_overhead in
7435 _rtld_global struct.
7436 * sysdeps/sparc/sparc32/sparcv9/hp-timing.h: Likewise.
7437 * sysdeps/sparc/sparc64/hp-timing.c: Likewise.
7438 * sysdeps/sparc/sparc64/hp-timing.h: Likewise.
7439 * sysdeps/sparc/sparc64/Makefile: Make hp-timing static only.
7440 * sysdeps/unix/sysv/aix/init-first.c (_dl_fpu_control,
7441 _dl_fpu_control_set): Remove unused externs.
7442 * sysdeps/unix/sysv/linux/sparc/sparc32/dl-procinfo.c: New file.
7443 * sysdeps/unix/sysv/linux/sparc/sparc64/dl-procinfo.c: New file.
7444 * sysdeps/unix/sysv/linux/sparc/sparc32/dl-procinfo.h: Move procinfo
7445 related variables in _rtld_global struct.
7446 * sysdeps/unix/sysv/linux/sparc/sparc64/dl-procinfo.h: Likewise.
7447 * sysdeps/unix/sysv/linux/init-first.c (_dl_fpu_control_set): Remove
7450 2002-02-01 Ulrich Drepper <drepper@redhat.com>
7452 * sysdeps/generic/dl-procinfo.c: New file.
7454 2002-02-01 Andreas Schwab <schwab@suse.de>
7456 * sysdeps/m68k/dl-machine.h: Don't use multi-line string literals.
7458 2002-02-01 Ulrich Drepper <drepper@redhat.com>
7460 * elf/rtld.c (_dl_start): Mark as internal_function.
7461 * sysdeps/i386/dl-machine.h (RTLD_START): Pass parameter for _dl_start
7463 (elf_machine_rel): Cleanup and minor optimization for RTLD_BOOTSTRAP.
7464 General pretty printing.
7466 2002-01-31 Ulrich Drepper <drepper@redhat.com>
7468 * elf/dl-minimal.c: Define _itoa for 32-bit machines with HP timing.
7469 * elf/dl-reloc.c: Pretty printing.
7470 * sysdeps/generic/ldsodefs.h: Move _dl_hp_timing_overhead and
7471 procinfo-related variables in rtld_global struct.
7472 * elf/dl-support.c: Likewise.
7473 * elf/rtld.c: Likewise.
7474 * sysdeps/i386/i686/Makefile: Likewise.
7475 * sysdeps/i386/i686/hp-timing.c: Likewise.
7476 * sysdeps/i386/i686/hp-timing.h: Likewise.
7477 * sysdeps/ia64/Makefile: Likewise.
7478 * sysdeps/ia64/hp-timing.c: Likewise.
7479 * sysdeps/sparc/sparc32/sparcv9/Makefile: Likewise.
7480 * sysdeps/sparc/sparc32/sparcv9/hp-timing.c: Likewise.
7481 * sysdeps/unix/sysv/linux/arm/dl-procinfo.c: Likewise.
7482 * sysdeps/unix/sysv/linux/arm/dl-procinfo.h: Likewise.
7483 * sysdeps/unix/sysv/linux/i386/Makefile: Likewise.
7484 * sysdeps/unix/sysv/linux/i386/dl-procinfo.c: Likewise.
7485 * sysdeps/unix/sysv/linux/i386/dl-procinfo.h: Likewise.
7486 * sysdeps/x86_64/Makefile: Likewise.
7488 * sysdeps/generic/ldsodefs.h: Add _dl_load_lock, _dl_lazy,
7489 _dl_dynamic_weak, _dl_fpu_control, _dl_cpuclock_offset, and
7490 _dl_debug_fd to rtld_global.
7491 * elf/Versions: Likewise.
7492 * elf/dl-close.c: Likewise.
7493 * elf/dl-iteratephdr.c: Likewise.
7494 * elf/dl-lookup.c: Likewise.
7495 * elf/dl-misc.c: Likewise.
7496 * elf/dl-open.c: Likewise.
7497 * elf/dl-support.c: Likewise.
7498 * elf/do-lookup.h: Likewise.
7499 * elf/rtld.c: Likewise.
7500 * sysdeps/generic/dl-cache.c: Likewise.
7501 * sysdeps/generic/dl-sysdep.c: Likewise.
7502 * sysdeps/ia64/Versions: Likewise.
7503 * sysdeps/unix/clock_gettime.c: Likewise.
7504 * sysdeps/unix/clock_settime.c: Likewise.
7505 * sysdeps/unix/sysv/linux/init-first.c: Likewise.
7506 * sysdeps/sparc/Versions: Removed.
7507 * sysdeps/i386/i686/Versions : Removed.
7508 * sysdeps/x86_64/Versions: Removed.
7509 * configure.in: Define HAVE_PROTECTED if .protected is available.
7510 * config.h.in: Add entry for HAVE_PROTECTED.
7512 2002-01-31 Jakub Jelinek <jakub@redhat.com.
7514 * sysdeps/alpha/dl-machine.h: Move global variables for SHARED
7515 code in struct _rtld_global. Export this struct, remove all
7516 exports for the signal variables.
7517 * sysdeps/arm/dl-machine: Likewise.
7518 * sysdeps/generic/dl-origin: Likewise.
7519 * sysdeps/generic/dl-sysdep: Likewise.
7520 * sysdeps/generic/dl-cache: Likewise.
7521 * sysdeps/hppa/dl-fptr: Likewise.
7522 * sysdeps/hppa/dl-machine: Likewise.
7523 * sysdeps/cris/dl-machine: Likewise.
7524 * sysdeps/i386/dl-machine: Likewise.
7525 * sysdeps/ia64/dl-machine: Likewise.
7526 * sysdeps/m68k/dl-machine: Likewise.
7527 * sysdeps/mach/hurd/dl-sysdep: Likewise.
7528 * sysdeps/mips/mips64/dl-machine: Likewise.
7529 * sysdeps/mips/dl-machine: Likewise.
7530 * sysdeps/powerpc/elf/libc-start: Likewise.
7531 * sysdeps/powerpc/dl-machine: Likewise.
7532 * sysdeps/powerpc/dl-start: Likewise.
7533 * sysdeps/sparc/sparc32/dl-machine: Likewise.
7534 * sysdeps/sparc/sparc64/dl-machine: Likewise.
7535 * sysdeps/sh/dl-machine: Likewise.
7536 * sysdeps/s390/s390-32/dl-machine: Likewise.
7537 * sysdeps/s390/s390-64/dl-machine: Likewise.
7538 * sysdeps/unix/sysv/aix/libc-start: Likewise.
7539 * sysdeps/unix/sysv/aix/start-libc: Likewise.
7540 * sysdeps/unix/sysv/linux/ia64/dl-static: Likewise.
7541 * sysdeps/unix/sysv/linux/m68k/getpagesize: Likewise.
7542 * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize: Likewise.
7543 * sysdeps/x86_64/dl-machine: Likewise.
7545 2002-01-31 Ulrich Drepper <drepper@redhat.com>
7547 * sysdeps/posix/readv.c: Don't use alloca if the memory requirements
7550 2002-01-31 Andreas Schwab <schwab@suse.de>
7552 * sysdeps/posix/readv.c: Check for ssize_t overflow.
7554 2002-01-31 Andreas Schwab <schwab@suse.de>
7556 * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Fix leftover
7557 reference to _dl_pagesize.
7559 2002-01-30 Ulrich Drepper <drepper@redhat.com>
7561 * Versions.def [ld]: Add GLIBC_2.3.
7562 * elf/dl-addr.c: Move global variables for SHARED code in struct
7563 _rtld_global. Export this struct, remove all exports for the
7565 * elf/dl-close.c: Likewise.
7566 * elf/dl-conflict.c: Likewise.
7567 * elf/dl-debug.c: Likewise.
7568 * elf/dl-deps.c: Likewise.
7569 * elf/dl-dst.h: Likewise.
7570 * elf/dl-error.c: Likewise.
7571 * elf/dl-fini.c: Likewise.
7572 * elf/dl-init.c: Likewise.
7573 * elf/dl-iteratephdr.c: Likewise.
7574 * elf/dl-libc.c: Likewise.
7575 * elf/dl-load.c: Likewise.
7576 * elf/dl-lookup.c: Likewise.
7577 * elf/dl-minimal.c: Likewise.
7578 * elf/dl-object.c: Likewise.
7579 * elf/dl-open.c: Likewise.
7580 * elf/dl-profile.c: Likewise.
7581 * elf/dl-profstub.c: Likewise.
7582 * elf/dl-reloc.c: Likewise.
7583 * elf/dl-runtime.c: Likewise.
7584 * elf/dl-support.c: Likewise.
7585 * elf/dl-sym.c: Likewise.
7586 * elf/dl-version.c: Likewise.
7587 * elf/do-lookup.h: Likewise.
7588 * elf/do-rel.h: Likewise.
7589 * elf/dynamic-link.h: Likewise.
7590 * elf/rtld.c: Likewise.
7591 * sysdeps/generic/dl-cache.c: Likewise.
7592 * sysdeps/generic/dl-sysdep.c: Likewise.
7593 * sysdeps/generic/ldsodefs.h: Likewise.
7594 * sysdeps/generic/libc-start.c: Likewise.
7595 * sysdeps/i386/dl-machine.h: Likewise.
7596 * sysdeps/ia64/dl-fptr.c: Likewise.
7597 * sysdeps/ia64/dl-machine.h: Likewise.
7598 * sysdeps/unix/sysv/linux/dl-librecon.h: Likewise.
7599 * sysdeps/unix/sysv/linux/dl-origin.c: Likewise.
7600 * sysdeps/unix/sysv/linux/dl-osinfo.h: Likewise.
7601 * sysdeps/unix/sysv/linux/getclktck.c: Likewise.
7602 * sysdeps/unix/sysv/linux/getpagesize.c: Likewise.
7603 * sysdeps/unix/sysv/linux/i386/dl-librecon.h: Likewise.
7604 * sysdeps/unix/sysv/linux/ia64/dl-static.c: Likewise.
7605 * sysdeps/unix/sysv/linux/ia64/getpagesize.c: Likewise.
7607 2002-01-29 Ulrich Drepper <drepper@redhat.com>
7609 * sysdeps/ia64/dl-lookupcfg.h (DL_AUTO_FUNCTION_ADDRESS): Add cast
7611 (DL_STATIC_FUNCTION_ADDRESS): Likewise.
7613 * elf/dl-lookup.c: Only define or handle _dl_num_relocations for the
7615 * elf/dl-reloc.c: Likewise for _dl_num_cache_relocations.
7617 * elf/rtld.c (_dl_start): Use __builtin_memset if available.
7619 2002-01-29 Ben Collins <bcollins@debian.org>
7621 * string/bits/string2.h (__mempcpy): Protect size arg for
7622 addition when using __builtin_memcpy.
7624 2002-01-29 Ulrich Drepper <drepper@redhat.com>
7626 * stdlib/Makefile (tests): Add tst-qsort.
7627 * stdlib/tst-qsort.c: New file. Written by Paul Eggert.
7629 * manual/signal.texi (Process Signal Mask): Document that
7630 pthread_sigmask, not sigprocmask, must be used in MT programs.
7631 Patch by Bertold Kolics <Bertold.Kolics@Sun.COM>.
7633 * misc/hsearch_r.c (hsearch_r): Don't insert anything if entry is
7635 * misc/Makefile (tests): Add tst-hsearch.
7636 * misc/tst-hsearch.c: New file.
7638 2002-01-18 Wolfram Gloger <wg@malloc.de>
7640 * malloc/malloc.c: Rewrite, adapted from Doug Lea's malloc-2.7.0.c.
7641 * malloc/malloc.h: Likewise.
7642 * malloc/thread-m.h: Spinlock definitions for x86/x86_64.
7643 * malloc/arena.c: New file.
7644 * malloc/hooks.c: New file.
7645 * malloc/tst-mallocstate.c: New file.
7646 * malloc/Makefile: Add new testcase tst-mallocstate.
7647 Add arena.c and hooks.c to distribute. Fix commented CPPFLAGS.
7649 2002-01-28 Ulrich Drepper <drepper@redhat.com>
7651 * stdlib/msort.c: Remove last patch. The optimization violates the
7652 same rule which qsort.c had problems with.
7654 2002-01-27 Paul Eggert <eggert@twinsun.com>
7656 * stdlib/qsort.c (_quicksort): Do not apply the comparison function
7657 to a pivot element that lies outside the array to be sorted, as
7658 ISO C99 requires that the comparison function be called only with
7659 addresses of array elements [PR libc/2880].
7661 2002-01-28 Ulrich Drepper <drepper@redhat.com>
7663 * elf/dl-load.c (_dl_map_object): Remove incorrect optimization
7664 for SHARED code. Reported by Ben Collins <bcollins@debian.org>.
7666 * timezone/asia: Update from tzdata2002b.
7667 * timezone/australasia: Likewise.
7668 * timezone/backward: Likewise.
7669 * timezone/europe: Likewise.
7670 * timezone/leapseconds: Likewise.
7671 * timezone/iso3166.tab: Likewise.
7672 * timezone/zone.tab: Likewise.
7674 2002-01-23 Richard Henderson <rth@redhat.com>
7676 * sysdeps/alpha/Makefile (pic-ccflag): New variable.
7678 2002-01-28 Ulrich Drepper <drepper@redhat.com>
7680 * string/strxfrm.c: Allocate one more byte for rulearr and clear
7681 this element [PR libc/2855].
7683 * string/strcoll.c: Handle zero-length arguments specially
7686 2002-01-23 Jakub Jelinek <jakub@redhat.com>
7688 * string/bits/string2.h (__mempcpy): For gcc 3.0+, don't use
7689 __mempcpy_small but instead use __builtin_memcpy ( , , n) + n for
7690 short lengths and constant src.
7691 (strcpy): Don't optimize for gcc 3.0+.
7692 (__stpcpy): For gcc 3.0+, don't use
7693 __stpcpy_small but instead use __builtin_strcpy (, src) + strlen (src)
7694 for short string literal src.
7696 2002-01-23 Jeroen Dobbelaere <jeroen.dobbelaere@acunia.com>
7698 * sysdeps/unix/sysv/linux/configure.in (libc_cv_gcc_unwind_find_fde):
7701 2001-01-22 Paul Eggert <eggert@twinsun.com>
7703 * manual/llio.texi (Linked Channels, Cleaning Streams):
7704 Make it clearer that a just-opened input stream might need cleaning.
7706 2002-01-21 H.J. Lu <hjl@gnu.org>
7708 * sysdeps/mips/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
7709 Don't use label at end of compound statement.
7711 2002-01-28 Stephen L Moshier <moshier@mediaone.net>
7713 * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (__ieee754_lgammal_r):
7714 Remove test for negative integer arg; sin_pi does it correctly.
7716 2002-01-20 Ulrich Drepper <drepper@redhat.com>
7718 * nscd/Makefile (distribute): Filter out xmalloc.c.
7720 2002-01-19 Ulrich Drepper <drepper@redhat.com>
7722 * libio/fileops.c (_IO_file_underflow_mmap): Don't define as static.
7723 Set offset if read end wasn't the buffer end.
7724 (_IO_file_seekoff_mmap): New function.
7725 (_IO_file_xsgetn_mmap): New function.
7726 (_IO_file_jumps_mmap): Use the two new functions.
7727 * libio/wfileops.c (_IO_wfile_underflow_mmap): Handle end read buffer
7729 * libio/libioP.h: Declare _IO_file_seekoff_mmap and
7730 _IO_file_underflow_mmap.
7731 * libio/iofopen.c: Don't position file descriptor at end of file.
7732 * libio/tst-widetext.c: Improve error messages.
7733 * stdio-common/tst-rndseek.c: Likewise.
7735 2002-01-18 Ulrich Drepper <drepper@redhat.com>
7737 * sysdeps/unix/sysv/linux/bits/statvfs.h: Avoid warning about comma at
7738 end of enum for !_GNU_SOURCE.
7739 * sysdeps/unix/sysv/linux/alpha/bits/statvfs.h: Likewise.
7740 * sysdeps/unix/sysv/linux/ia64/bits/statvfs.h: Likewise.
7741 * sysdeps/unix/sysv/linux/sparc/bits/statvfs.h: Likewise.
7742 * sysdeps/mach/hurd/bits/statvfs.h: Don't define non-standard ST_*
7743 values unless _GNU_SOURCE.
7745 * iconvdata/tcvn5712-1.c: Minor cleanups.
7747 2002-01-18 Andreas Schwab <schwab@suse.de>
7749 * sysdeps/unix/sysv/linux/configure.in
7750 (libc_cv_gcc_unwind_find_fde): Set for m68k, too.
7752 2002-01-16 Roger Sayle <roger@eyesopen.com>
7754 * stdlib/msort.c (msort_with_tmp): Replace implementation with
7755 more efficient "Towers of Hanoi" mergesort.
7756 (hanoi_sort, hanoi_sort_int, hanoi_sort_long): New functions,
7757 for generic, sizeof(int) and sizeof(long) variants respectively.
7759 2002-01-17 Ulrich Drepper <drepper@redhat.com>
7761 * manual/syslog.texi (openlog): Describe possible problems with
7763 Patch by Christopher Allen Wing <wingc@engin.umich.edu>.
7765 * nscd/nscd.c (drop_privileges): Removed. Adjust caller.
7766 * nscd/connections.c (begin_drop_privileges): New function.
7767 (finish_drop_privileges): New function.
7768 (nscd_init): Call the new functions which also install all groups
7769 for the server user.
7770 * nscd/Makefile (nscd-modules): Add xmalloc for nscd.
7771 Patch by Christopher Allen Wing <wingc@engin.umich.edu>.
7773 2002-01-17 H.J. Lu <hjl@gnu.org>
7775 * sysdeps/mips/dl-machine.h (__dl_runtime_resolve): Remove
7778 2002-01-17 Martin Schwidefsky <schwidefsky@de.ibm.com>
7780 * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S: Use 64 bit
7781 instructions for pointer operations.
7782 * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S: Likewise.
7784 2002-01-17 Andreas Jaeger <aj@suse.de>
7786 * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h: GCC 3.1 has
7787 __uint128_t build-in.
7789 * sysdeps/unix/sysv/linux/configure.in: Fix check for S390 and
7790 PowerPC, sync with 2.2 branch.
7792 2002-01-16 Ulrich Drepper <drepper@redhat.com>
7794 * posix/getconf.c: Update copyright year.
7795 * nss/getent.c: Likewise.
7796 * nscd/nscd_nischeck.c: Likewise.
7797 * iconv/iconvconfig.c: Likewise.
7798 * iconv/iconv_prog.c: Likewise.
7799 * elf/ldconfig.c: Likewise.
7800 * catgets/gencat.c: Likewise.
7801 * csu/version.c: Likewise.
7802 * elf/ldd.bash.in: Likewise.
7803 * elf/sprof.c (print_version): Likewise.
7804 * locale/programs/locale.c: Likewise.
7805 * locale/programs/localedef.c: Likewise.
7806 * nscd/nscd.c (print_version): Likewise.
7807 * debug/xtrace.sh: Likewise.
7808 * malloc/memusage.sh: Likewise.
7809 * malloc/mtrace.pl: Likewise.
7811 2002-01-16 Andreas Schwab <schwab@suse.de>
7813 * sysdeps/unix/sysv/linux/ia64/ldd-rewrite.sed: Fix regexp to
7814 reliably remove "-ia64" from rtld name.
7816 2002-01-16 Ulrich Drepper <drepper@redhat.com>
7818 * iconvdata/gb18030.c: Bug fixes and support for more characters.
7819 Patch by Yu Shao <yshao@redhat.com>.
7821 2002-01-16 Martin Schwidefsky <schwidefsky@de.ibm.com>
7823 * sysdeps/unix/sysv/linux/s390/swapcontext.c: Remove.
7824 * sysdeps/unix/sysv/linux/s390/s390-32/swapcontext.S: New file.
7825 * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S: New file.
7827 2002-01-14 Martin Schwidefsky <schwidefsky@de.ibm.com>
7829 * sysdeps/s390/fpu/libm-test-ulps: Update.
7831 2002-01-11 Ulrich Drepper <drepper@redhat.com>
7833 * elf/elf.h: Update x86 relocations.
7835 2002-01-10 Ulrich Drepper <drepper@redhat.com>
7837 * locale/programs/charmap.c (new_width): Check whether byte
7838 sequences for both ends of range have the same length.
7840 2002-01-09 Jakub Jelinek <jakub@redhat.com>
7842 * elf/elf.h (SHN_UNDEF): Remove duplicate definition.
7844 2002-01-09 Jakub Jelinek <jakub@redhat.com>
7846 * sysdeps/alpha/fpu/e_sqrt.c (__ieee754_sqrt): Don't use multi-line
7848 (__full_ieee754_sqrt): Add __attribute_used__.
7850 2002-01-10 Ulrich Drepper <drepper@redhat.com>
7852 * sysdeps/generic/group_member.c (__group_member): Also check
7853 groups[0] [PR libc/2781].
7855 2002-01-08 Ulrich Drepper <drepper@redhat.com>
7857 * Makefile (distribute): Add scripts/cpp.
7858 * elf/Makefile (distribute): Add reldep6mod[01234].c,
7859 unwind-dw2.c, unwind-dw2-fde.c, unwind.h, unwind-pe.h,
7860 unwind-dw2-fde.h, and dwarf2.h.
7861 * sysdeps/unix/bsd/bsd4.4/Dist: New file.
7862 * sysdeps/unix/sysv/aix/Dist: Add sysv_termio.h and start-libc.c.
7863 * sysdeps/unix/sysv/linux/ia64/Dist: Add ldd-rewrite.sed.
7864 * sysdeps/unix/sysv/linux/s390/Dist: Likewise.
7866 2002-01-07 Roland McGrath <roland@frob.com>
7868 * sysdeps/mach/hurd/i386/init-first.c (_hurd_stack_setup): Use
7869 volatile on type of ARGC so the compiler doesn't get clever.
7871 2002-01-07 Andreas Jaeger <aj@suse.de>
7873 * sysdeps/generic/bits/byteswap.h: Prevent double inclusion.
7874 * sysdeps/i386/bits/byteswap.h: Likewise.
7875 * sysdeps/ia64/bits/byteswap.h: Likewise.
7876 * sysdeps/m68k/bits/byteswap.h: Likewise.
7877 * sysdeps/s390/s390-32/bits/byteswap.h: Likewise.
7878 * sysdeps/s390/s390-64/bits/byteswap.h: Likewise [PR libc/2757].
7880 2002-01-02 Bruno Haible <bruno@clisp.org>
7882 * intl/plural.y: Fix %expect count.
7884 2002-01-03 Jakub Jelinek <jakub@redhat.com>
7886 * elf/Makefile (routines, shared-only-routines): Add
7887 unwind-dw2-fde-glibc instead of unwind-dw2-fde.
7888 * elf/elf.h (PT_GNU_EH_FRAME): Define.
7889 * sysdeps/generic/unwind-dw2-fde-glibc.c: New file.
7890 * sysdeps/generic/unwind-dw2-fde.c (__register_frame_info_bases):
7891 Optimize if .eh_frame section contains no FDEs.
7892 (__register_frame, __deregister_frame_info_bases,
7893 __deregister_frame): Likewise.
7894 * sysdeps/generic/unwind-dw2.c (execute_cfa_program): Fix
7895 DW_CFA_restore handling.
7897 2002-01-07 Stephen L Moshier <moshier@mediaone.net>
7899 * sysdeps/ieee754/ldbl-96/s_erfl.c (erfcl): Fix K&R header.
7901 * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (sin_pi): Fix typo in test
7902 for x < 0.25 and restore original range reduction method.
7903 (__ieee754_lgammal_r): Make sure signgam is set before returning.
7905 2002-01-07 Ulrich Drepper <drepper@redhat.com>
7907 * libio/fileops.c (_IO_file_underflow_mmap): New function.
7908 (_IO_file_close_mmap): New function.
7909 (_IO_file_jumps_mmap): New variable.
7910 * libio/wfileops.c (_IO_wfile_underflow): Reset read pointer before
7911 trying to convert rest of byte buffer.
7912 (_IO_wfile_underflow_mmap): New function.
7913 (_IO_wfile_jumps_mmap): New variable.
7914 * libio/iofopen.c (__fopen_maybe_mmap): New function.
7915 (__fopen_internal): New function. Split out from _IO_new_fopen.
7916 (_IO_new_fopen): Call __fopen_internal.
7917 * libio/iofopen64.c: Just call __fopen_internal.
7918 * libio/iofdopen.c: Call __fopen_maybe_mmap before returning
7920 * libio/iolibio.h: Declare __fopen_internal and __fopen_maybe_mmap.
7921 * libio/libioP.h: Declare _IO_file_jumps_mmap, _IO_wfile_jumps_mmap,
7922 _IO_file_close_mmap.
7924 * sysdeps/gnu/_G_config.h: Define _G_MMAP64.
7925 * sysdeps/unix/sysv/linux/cris/_G_config.h: Likewise.
7927 * stdio-common/Makefile (tests): Add tst-rndseek.
7928 * stdio-common/tst-rndseek.c: New file.
7930 2002-01-05 Roland McGrath <roland@frob.com>
7932 * config.h.in (HAVE_MIG_RETCODE): New #undef.
7933 * sysdeps/mach/hurd/configure.in (hurd_MIG_RETCODE: New macro
7934 swiped from hurd package's aclocal.m4; use it to set HAVE_MIG_RETCODE.
7935 * sysdeps/mach/hurd/configure: Regenerated.
7937 2002-01-03 Ulrich Drepper <drepper@redhat.com>
7939 * elf/elf.h: Add more TLS definitions.
7941 2002-01-02 Ulrich Drepper <drepper@redhat.com>
7943 * include/features.h (__GLIBC_MINOR__): Bump to 3.
7945 2002-01-02 Roland McGrath <roland@frob.com>
7947 * sysdeps/mach/hurd/sigwait.c (__sigwait): Use __sigandset,
7948 __sigisemptyset. Don't use MASK uninitialized.
7950 * sysdeps/mach/hurd/sigprocmask.c (__sigprocmask): Use __sigorset.
7951 * hurd/hurdinit.c (_hurd_new_proc_init): Use __sigisemptyset.
7952 * hurd/hurdsig.c (_hurd_internal_post_signal): Use __sigismember,
7953 __sigdelset, __sigaddset, __sigorset.
7955 * sysdeps/generic/htonl.c: Use uint32_t instead of u_int32_t.
7956 * sysdeps/generic/htons.c: Use uint16_t instead of u_int16_t.
7958 * hurd/hurdinit.c (_hurd_ports_use): Return EGRATUITOUS when
7959 _hurd_ports is null.
7961 * hurd/hurdsig.c (_hurdsig_init): Conditionalize exception port setup
7962 for old CMU and new OSF Mach interface flavors.
7963 * hurd/hurdfault.c (_hurdsig_fault_init): Likewise.
7964 * sysdeps/mach/hurd/fork.c (__fork): Likewise.
7966 * hurd/hurdsig.c (_hurd_internal_post_signal): Leave msgh_seqno unset.
7968 * sysdeps/mach/hurd/spawni.c (__spawni) [KERN_INVALID_LEDGER]:
7969 Pass extra arguments to task_create for OSF variant.
7970 * sysdeps/mach/hurd/fork.c (__fork): Likewise.
7972 * sysdeps/powerpc/elf/libc-start.c: Make AUXVEC diddling code
7973 conditional on [HAVE_AUX_VECTOR].
7975 * mach/mach/mach_traps.h (thread_switch, __thread_switch): Use
7976 mach_msg_timeout_t as type of final argument.
7978 * hurd/privports.c (__get_privileged_ports):
7979 Change host_priv_t to mach_port_t in argument type.
7980 * hurd/hurd.h (get_privileged_ports, __get_privileged_ports):
7983 * sysdeps/mach/hurd/i386/bits/sigcontext.h: Protect from
7984 multiple inclusion. Inhibit #error under [_SYS_UCONTEXT_H].
7985 * sysdeps/mach/hurd/alpha/bits/sigcontext.h: Likewise.
7986 * sysdeps/mach/hurd/hppa/bits/sigcontext.h: Likewise.
7987 * sysdeps/mach/hurd/mips/bits/sigcontext.h: Likewise.
7988 * sysdeps/mach/hurd/powerpc/bits/sigcontext.h: Likewise.
7990 2002-01-01 Roland McGrath <roland@frob.com>
7992 * sysdeps/mach/hurd/errnos.awk: Tighten up device_types.h matching.
7994 2002-01-01 Ulrich Drepper <drepper@redhat.com>
7996 * include/stdlib.h: Define inlines for the _l variants of the strto*
7999 2002-01-01 Roland McGrath <roland@frob.com>
8001 * sysdeps/mach/hurd/powerpc/intr-msg.h: Remove extraneous backslash.
8003 * mach/Machrules (MIG): Set CPP as well as CC.
8005 2001-12-31 Ulrich Drepper <drepper@redhat.com>
8007 * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Always use C
8008 locale to parse /proc/loadavg [PR libc/2760].
8010 2001-12-31 Jakub Jelinek <jakub@redhat.com>
8012 * elf/dl-conflict.c: Include sys/param.h.
8013 (RESOLVE_CONFLICT_FIND_MAP): Cast r_offset to ElfW(Addr).
8014 * sysdeps/alpha/dl-machine.h (elf_machine_runtime_setup): Avoid
8016 (TRAMPOLINE_TEMPLATE, RTLD_START): Don't use multi-line string
8017 literals to avoid warnings.
8019 2001-12-31 Andreas Jaeger <aj@suse.de>
8021 * configure.in: Don't check for gsed since we do not use it anywhere.
8023 2001-12-25 Dmitry V. Levin <ldv@alt-linux.org>
8025 * io/fts.c: Update from BSD to fix memory leaks.
8027 2001-12-25 Dmitry V. Levin <ldv@alt-linux.org>
8029 * crypt/md5-crypt.c: Realloc error handling memory leak fix.
8030 * elf/chroot_canon.c: Likewise.
8031 * elf/dl-object.c: Likewise.
8032 * iconv/iconv_charmap.c: Likewise.
8033 * iconv/iconv_prog.c: Likewise.
8034 * libio/iogetdelim.c: Likewise.
8035 * locale/lc-time.c: Likewise.
8036 * stdlib/canonicalize.c: Likewise.
8037 * sunrpc/svc.c: Likewise.
8038 * sysdeps/generic/glob.c: Likewise.
8040 2001-12-19 Martin Schwidefsky <schwidefsky@de.ibm.com>
8042 * sysdeps/unix/sysv/linux/s390/profil-counter.h: Move/copy to ...
8043 * sysdeps/unix/sysv/linux/s390/s390-32/profil-counter.h: ... here,
8044 remove high order bit from the program counter.
8045 * sysdeps/unix/sysv/linux/s390/s390-64/profil-counter.h: ... and here.
8047 2001-12-19 Martin Schwidefsky <schwidefsky@de.ibm.com>
8049 * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): Remove
8050 unnecessary code and add missing reloc types.
8051 * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Add empty
8052 case for reloc type R_390_NONE.
8054 2001-12-28 Andreas Jaeger <aj@suse.de>
8056 * io/bug-ftw3.c: Include string.h for prototypes.
8058 * crypt/md5test.c (main): Remove unused variable.
8060 * dlfcn/modstatic.c: Add prototype to avoid warning.
8062 2001-12-26 Roland McGrath <roland@frob.com>
8064 * sysdeps/mach/hurd/sigwait.c (__sigwait): When returning immediately,
8065 check only (SS->pending & MASK) for the signal to return.
8066 From Jeroen Dekkers <jeroen@dekkers.cx>.
8068 2001-12-22 Roland McGrath <roland@frob.com>
8070 * iconv/skeleton.c [!RESET_INPUT_BUFFER && !SAVE_RESET_STATE]:
8071 Use preprocessor #if conditionals instead of `if' to avoid
8072 warnings about divide by zero in dead code.
8074 * hurd/Versions (libc: GLIBC_2.2.5): Add _hurd_port_set,
8075 _hurd_port_init, and __hurd_self_sigstate.
8077 * mach/Versions (libc: GLIBC_2.2.5): Add mig_strncpy.
8079 2001-12-21 Andreas Jaeger <aj@suse.de>
8081 * elf/dblloadmod1.c: Add prototype to avoid warning.
8082 * elf/dblloadmod2.c: Likewise.
8083 * elf/dblloadmod3.c: Likewise.
8084 * elf/reldepmod5.c: Likewise.
8085 * elf/reldepmod6.c: Likewise.
8087 * elf/dl-conflict.c (_dl_resolve_conflicts): Add unused attribute
8088 for resolve_conflict_map since RESOLVE_CONFLICT_FIND_MAP is not
8089 used on all architectures.
8091 * sunrpc/svc_tcp.c: Add noreturn attribute for
8092 svctcp_rendezvous_abort.
8093 * sunrpc/svc_unix.c: Likewise for svcunix_rendezvous_abort.
8095 * sysdeps/generic/strstr.c (strstr): Add paranthese for assignment
8098 2001-12-19 Jakub Jelinek <jakub@redhat.com>
8100 * manual/llio.texi (aio_fsync): Fix a typo.
8101 Patch by Tammy Fox <tfox@redhat.com>.
8103 2001-12-18 Jakub Jelinek <jakub@redhat.com>
8105 * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (clone): Subtract
8106 stack bias from child stack pointer before passing it to clone syscall.
8108 2001-12-18 Ulrich Drepper <drepper@redhat.com>
8110 * sysdeps/posix/sysconf.c (__sysconf): Respect POSIX minimum for
8112 * sysdeps/generic/sysconf.c (__sysconf): Likewise.
8113 Reported by Thorsten Kukuk <kukuk@suse.de>.
8115 * sysdeps/unix/grantpt.c (grantpt): Correct typo in comment and
8118 * sysdeps/unix/sysv/linux/grantpt.c: Make __unix_grantpt static.
8120 2001-12-18 Thorsten Kukuk <kukuk@suse.de>
8122 * sysdeps/unix/sysv/linux/grantpt.c: Make errno results standard
8123 conforming: return EBADF if file descriptor is invalid and EINVAL
8124 if file descriptor is no valid tty.
8125 * login/tst-grantpt.c: New file.
8126 * login/Makefile (tests): Add tst-grantpt.
8128 2001-12-17 Ulrich Drepper <drepper@redhat.com>
8130 * io/ftw.c (ftw_dir): Handle inaccessibility of toplevel dir
8131 different than implemented in last patch.
8132 * io/bug-ftw3.c: Adjust test for changed handling of
8133 inaccessibility of toplevel dir.
8135 2001-12-16 Roland McGrath <roland@frob.com>
8137 * nss/nsswitch.c (__nss_next): Don't use __FUNCTION__ as literal.
8138 * grp/initgroups.c (internal_getgrouplist): Likewise.
8140 * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): Add `break' after
8141 `default:' to silence new GCC warning.
8142 Rewrite cast of lvalue to silence new GCC warning.
8144 * sysdeps/mach/hurd/i386/init-first.c: Avoid multi-line strings in asm.
8146 * sysdeps/mach/hurd/spawni.c: New file, by me with a
8147 couple fixes by Neal H Walfield <neal@cs.uml.edu>.
8149 2001-12-14 Ulrich Drepper <drepper@redhat.com>
8151 * sysdeps/generic/strstr.c (strstr): Update. New optimized version.
8152 Patch by Stephen R. van den Berg.
8154 * crypt/md5.h: Define md5_uintptr.
8156 2001-12-13 Ulrich Drepper <drepper@redhat.com>
8158 * libio/tst_swprintf.c (main): Add test for string argument with
8160 * stdio-common/Makefile (tests): Add tst-sprintf.
8161 * stdio-common/tst-sprintf.c: New file.
8163 2001-12-13 Andreas Schwab <schwab@suse.de>
8165 * stdio-common/vfprintf.c (process_string_arg): Correctly handle
8166 zero precision with wide character string format.
8168 2001-12-13 Thorsten Kukuk <kukuk@suse.de>
8170 * sysdeps/posix/cuserid.c (cuserid): If we don't find the UID,
8171 but have a user supplied buffer, return the empty buffer, not NULL.
8173 2001-12-13 Ulrich Drepper <drepper@redhat.com>
8175 * crypt/md5.c (md5_process_bytes): Correct handling of alignment.
8176 Patch by Eric Sharkey <sharkey@netrics.com>.
8178 * crypt/md5test.c (main): Add test for multiple calls to
8179 __md5_process_bytes to itererate over input string.
8181 2001-12-12 Ulrich Drepper <drepper@redhat.com>
8183 * nis/nis_findserv.c (__nis_findfastest_with_timeout): Mostly the code
8184 from __nis_findfastest. Take timeout value from parameter.
8185 (__nis_findfastest): Call __nis_findfastest_with_timeout repeatedly.
8186 * nis/nis_intern.h: Define parameters controlling __nis_findfastest
8187 [PR libc/2520]. Patch by Alexander Belopolsky <alexb@rentec.com>.
8189 2001-12-12 Andreas Jaeger <aj@suse.de>
8191 * configure.in: Use -nostartfiles -nostdlib for linker tests, fix
8192 combreloc test so that it works in this case.
8194 * sysdeps/arm/dl-machine.h (elf_machine_rela): Fix typo in last patch.
8196 2001-12-12 NIIBE Yutaka <gniibe@m17n.org>
8198 * sysdeps/sh/Makefile: New file.
8199 * sysdeps/sh/_mcount.S: New file.
8200 * sysdeps/sh/sysdep.h (CALL_MCOUNT): Implemented.
8201 * sysdeps/sh/machine-gmon.h: Remove "NOTYET" comment, as we are ready.
8203 2001-12-11 Ulrich Drepper <drepper@redhat.com>
8205 * resolv/nss_dns/dns-host.c (getanswer_r): Remove MAX_NR_ADDRS
8206 limitation [PR libc/2564].
8208 2001-12-11 Jakub Jelinek <jakub@redhat.com>
8210 * elf/Makefile (dl-routines): Add conflict.
8211 (rtld-ldscript-in, rtld-ldscript, rtld-parms): Remove.
8212 (ld.so): Add _begin local symbol.
8213 * elf/elf.h (DT_VALTAGIDX, DT_VALNUM, DT_ADDRTAGIDX, DT_ADDRNUM):
8215 * elf/dl-deps.c (_dl_build_local_scope): New.
8216 (_dl_map_object_deps): If LD_TRACE_PRELINKING, compute local scopes
8218 * elf/do-rel.h (VALIDX): Define.
8219 (elf_dynamic_do_rel): If ELF_MACHINE_PLT_REL is defined, don't do
8220 lazy binding for RELA. If DT_GNU_PRELINKED, DT_RELACOUNT relocations
8222 * elf/dl-conflict.c: New file.
8223 * elf/dl-lookup.c (_dl_debug_bindings): New.
8224 (_dl_lookup_symbol): Use _dl_debug_bindings. Reference_name is always
8226 (_dl_lookup_symbol_skip): Likewise.
8227 (_dl_lookup_versioned_symbol): Likewise.
8228 (_dl_lookup_versioned_symbol_skip): Likewise.
8229 * elf/dl-runtime.c (PLTREL): If ELF_MACHINE_PLT_REL is defined,
8230 define to ElfW(Rel).
8231 * elf/dynamic-link.h (elf_get_dynamic_info): Record selected dynamic
8232 tags in the DT_VALRNGLO..DT_VALRNGHI and DT_ADDRRNGLO..DT_ADDRRNGHI
8234 Don't adjust address dynamic tags if l_addr is 0.
8235 * elf/rtld.c (_dl_trace_prelink, _dl_trace_prelink_map): New variables.
8236 (_dl_start): Skip ELF_DYNAMIC_RELOCATE if ld.so is prelinked.
8237 (VALIDX, ADDRIDX): Define.
8238 (_dl_start_final): Initialize _dl_rtld_map's l_map_start and l_map_end.
8239 (dl_main): Print library list for LD_TRACE_PRELINKING.
8240 If prelinking information can be used, skip relocating libraries and
8241 call _dl_resolve_conflicts instead.
8242 (process_envvars): Handle LD_TRACE_PRELINKING envvar.
8243 * elf/dl-load.c (_dl_map_object): Don't create fake libs
8244 if LD_TRACE_PRELINKING.
8245 * include/link.h (struct link_map) [l_info]: Add DT_VALNUM
8247 * sysdeps/generic/ldsodefs.h (_dl_trace_prelink_map): New declaration.
8248 (DL_DEBUG_PRELINK): Define.
8249 (_dl_resolve_conflicts): Add prototype.
8251 * sysdeps/alpha/dl-machine.h (elf_machine_runtime_setup): Reinitialize
8252 .plt for prelinked libraries where prelinking info cannot be used.
8253 (elf_machine_rela): If relocating R_ALPHA_JMP_SLOT in .gnu.conflict
8254 section, use RESOLVE_CONFLICT_FIND_MAP to find out reloc's link_map.
8255 * sysdeps/arm/bits/link.h: New file.
8256 * sysdeps/arm/dl-machine.h (elf_machine_runtime_setup): Save original
8258 (ELF_MACHINE_NO_RELA): Only define if RTLD_BOOTSTRAP.
8259 (ELF_MACHINE_PLT_REL): Define.
8260 (elf_machine_rela, elf_machine_rela_relative): New.
8261 (elf_machine_lazy_rel): Reinitialize R_ARM_JUMP_SLOT address instead
8262 of adjusting it if prelinked and prelinking cannot be used.
8263 * sysdeps/i386/bits/link.h: New file.
8264 * sysdeps/i386/dl-machine.h (elf_machine_runtime_setup): Save original
8266 (ELF_MACHINE_NO_RELA): Only define if RTLD_BOOTSTRAP.
8267 (ELF_MACHINE_PLT_REL): Define.
8268 (elf_machine_rela, elf_machine_rela_relative): New.
8269 (elf_machine_lazy_rel): Reinitialize R_386_JUMP_SLOT address instead
8270 of adjusting it if prelinked and prelinking cannot be used.
8271 * sysdeps/powerpc/dl-machine.h (elf_machine_rela): If relocating
8272 conflicts, skip finaladdr computation. Use RESOLVE_CONFLICT_FIND_MAP
8273 to find out map for R_PPC_JMP_SLOT relocs.
8274 * sysdeps/sparc/sparc32/dl-machine.h (VALIDX): Define.
8275 (OPCODE_BA): Define.
8276 (elf_machine_runtime_setup): Reinitialize .plt for prelinked
8277 libraries where prelinking info cannot be used.
8278 (sparc_fixup_plt): Renamed from elf_machine_fixup_plt.
8279 (elf_machine_fixup_plt): Call sparc_fixup_plt.
8280 (elf_machine_rela): Set value to 0 if relocating conflicts.
8281 Call sparc_fixup_plt for R_SPARC_JMP_SLOT.
8282 * sysdeps/sparc/sparc64/dl-machine.h (VALIDX): Define.
8283 (sparc64_fixup_plt): Fix a typo.
8284 (elf_machine_rela): Set value to 0 if relocating conflicts.
8285 Handle R_SPARC_JMP_SLOT relocs when relocating conflicts.
8286 (elf_machine_runtime_setup): Reinitialize .plt for prelinked
8287 libraries where prelinking info cannot be used.
8288 * sysdeps/sh/bits/link.h: New file.
8289 * sysdeps/sh/dl-machine.h (elf_machine_runtime_setup): Save original
8291 (elf_machine_lazy_rel): Reinitialize R_SH_JMP_SLOT address instead
8292 of adjusting it if prelinked and prelinking cannot be used.
8293 * sysdeps/s390/s390-32/bits/link.h: New file.
8294 * sysdeps/s390/s390-32/dl-machine.h (elf_machine_runtime_setup):
8295 Save original content of .got[1].
8296 (elf_machine_lazy_rel): Reinitialize R_390_JMP_SLOT address instead
8297 of adjusting it if prelinked and prelinking cannot be used.
8298 * sysdeps/s390/s390-64/bits/link.h: New file.
8299 * sysdeps/s390/s390-64/dl-machine.h (elf_machine_runtime_setup):
8300 Save original content of .got[1].
8301 (elf_machine_lazy_rel): Reinitialize R_390_JMP_SLOT address instead
8302 of adjusting it if prelinked and prelinking cannot be used.
8303 * sysdeps/x86_64/bits/link.h: New file.
8304 * sysdeps/x86_64/dl-machine.h (elf_machine_runtime_setup):
8305 Save original content of .got[1].
8306 (elf_machine_lazy_rel): Reinitialize R_X86_64_JMP_SLOT address instead
8307 of adjusting it if prelinked and prelinking cannot be used.
8309 2001-12-11 Ulrich Drepper <drepper@redhat.com>
8311 * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_r): Use sizeof
8312 where appropriate instead of numbers. Little optimizations.
8314 2001-12-10 Roland McGrath <roland@frob.com>
8316 * sysdeps/mach/hurd/bind.c (bind): Don't deallocate IFSOCK if we never
8319 * shlib-versions [USE_IN_LIBIO] (.*-.*-gnu-gnu.*): Set default
8320 set to GLIBC_2.2.5, not GLIBC_2.2.4.
8322 * sysdeps/mach/hurd/configure.in (libc_cv_gcc_unwind_find_fde):
8323 Fix conditionals so this is set by default for stdio and not for libio.
8324 * sysdeps/mach/hurd/configure: Regenerated.
8326 2001-12-10 Thorsten Kukuk <kukuk@suse.de>
8328 * io/ftw.c (ftw_startup): Check, if the path is search and readable.
8330 2001-12-10 Ulrich Drepper <drepper@redhat.com>
8332 * io/Makefile (tests): Add bug-ftw3.
8333 * io/bug-ftw3.c: New file.
8335 * sysdeps/generic/glob.c (glob): Return only pattern if nothing
8336 matches and GLOB_NOCHECK is set.
8337 * posix/globtest.sh: Correct expected result for NOCHECK test.
8339 * po/ca.po: Update from translation team.
8341 2001-12-09 Ulrich Drepper <drepper@redhat.com>
8343 Implement transliteration of characters in strings of the locale
8345 * locale/programs/linereader.c: Adjust for additional parameter to
8347 (get_string): If character <Uxxxx> is not found try to transliterate
8349 * locale/programs/ld-ctype.c: Adjust for additional parameter to
8350 lr_token. Add const to charmap parameter of all functions.
8351 (find_translit, find_translit2): New functions.
8352 * locale/programs/charmap.c: Adjust for additional parameter to
8354 * locale/programs/repertoire.c: Likewise.
8355 * locale/programs/linereader.h: Likewise.
8356 * locale/programs/ld-address.c: Likewise. Add const to charmap
8357 parameter of all functions.
8358 * locale/programs/ld-collate.c: Likewise.
8359 * locale/programs/ld-identification.c: Likewise.
8360 * locale/programs/ld-measurement.c: Likewise.
8361 * locale/programs/ld-messages.c: Likewise.
8362 * locale/programs/ld-monetary.c: Likewise.
8363 * locale/programs/ld-name.c: Likewise.
8364 * locale/programs/ld-numeric.c: Likewise.
8365 * locale/programs/ld-paper.c: Likewise.
8366 * locale/programs/ld-paper.c: Likewise.
8367 * locale/programs/ld-telephone.c: Likewise.
8368 * locale/programs/ld-time.c: Likewise.
8369 * locale/programs/locfile.c: Likewise.
8370 * locale/programs/localedef.c: Likewise.
8371 * locale/programs/localedef.h: Likewise.
8372 * locale/programs/locfile.h: Likewise. Add declaration for
8374 * locale/programs/simple-hash.c: Add const to first parameter of
8375 find_entry, iterate_table, and lookup.
8376 * locale/programs/simple-hash.h: Likewise.
8377 * locale/localeinfo.h: Don't define __LC_LAST here. Include <locale.h>
8379 * include/locale.h: Define __LC_LAST.
8380 * iconv/Makefile (CFLAGS-linereader.c): Define to -DNO_TRANSLITERATION.
8382 2001-12-07 Geoff Keating <geoffk@redhat.com>
8384 * sysdeps/powerpc/Dist: Update for recent FP changes.
8385 * sysdeps/powerpc/fpu/Dist: Likewise.
8387 2001-12-07 Andreas Schwab <schwab@suse.de>
8389 * sysdeps/unix/sysv/linux/opensock.c: Include <string.h>.
8391 2001-12-06 Geoff Keating <geoffk@redhat.com>
8393 * sysdeps/powerpc/Makefile (sysdep_routines): Don't build the fpr
8394 save/restore functions here.
8395 (libm-support): Don't define these functions here.
8396 * sysdeps/powerpc/fpu/Makefile: Build the fpr save/restore
8398 * sysdeps/powerpc/fe_nomask.c: Move to...
8399 * sysdeps/powerpc/fpu/fe_nomask.c: ... here.
8400 * sysdeps/powerpc/fprrest.S: Move to...
8401 * sysdeps/powerpc/fpu/fprrest.S: ... here.
8402 * sysdeps/powerpc/fprsave.S: Move to...
8403 * sysdeps/powerpc/fpu/fprsave.S: ... here.
8405 2001-12-06 Ulrich Drepper <drepper@redhat.com>
8407 * sysdeps/unix/sysv/linux/opensock.c: New file.
8409 2001-12-06 Geoff Keating <geoffk@redhat.com>
8411 * config.make.in (with-fp): Define from configure.
8412 * configure.in: Substitute with_fp.
8413 * configure: Regenerate.
8414 * sysdeps/powerpc/Makefile: Set -msoft-float when --without-fp is
8415 specified, and don't change FPU environment.
8417 2001-12-06 Ulrich Drepper <drepper@redhat.com>
8419 * libio/vasprintf.c (_IO_vasprintf): Free buffer on failure.
8420 * assert/assert.c: Check result of __asprintf call and don't use
8421 string if it failed.
8422 * assert/assert-perr.c: Likewise.
8423 * inet/rcmd.c: Likewise.
8424 * locale/programs/localedef.c (main): Check result of
8425 construct_output_path and exit if it failed.
8426 (construct_output_path): Check result of asprintf and mkdir calls and
8427 fail if they failed.
8428 * posix/getopt.c: Check result of __asprintf calls and fail if
8430 Patch by Dmitry V. Levin <ldv@alt-linux.org>.
8432 2001-12-05 Ulrich Drepper <drepper@redhat.com>
8434 * sysdeps/generic/strcasecmp.c (__strcasecmp): Little performance
8436 * sysdeps/generic/strncase.c: Likewise.
8437 * string/tester.c: Add tests for strcasecmp and strncasecmp.
8439 2001-12-05 Geoff Keating <geoffk@redhat.com>
8441 * scripts/cpp: Test the exit status from 'type', not 'awk'.
8443 * sysdeps/powerpc/__longjmp.S: Don't restore FP registers.
8444 * sysdeps/powerpc/fpu/__longjmp.S: Do restore FP registers.
8445 * sysdeps/powerpc/setjmp.S: Don't save FP registers.
8446 * sysdeps/powerpc/fpu/setjmp.S: Do save FP registers.
8447 * sysdeps/powerpc/fclrexcpt.c: Move to...
8448 * sysdeps/powerpc/fpu/fclrexcpt.c: ... here.
8449 * sysdeps/powerpc/fpu_control.h: Move to...
8450 * sysdeps/powerpc/fpu/fpu_control.h: ... here.
8452 2001-12-05 Ulrich Drepper <drepper@redhat.com>
8454 * iconvdata/ibm1129.h: Remove duplicate mappings.
8455 * iconvdata/ibm937.c: Handle overflow errors. Handle new tables.
8456 * iconvdata/ibm937.h: Reorganize table to safe a lot of space.
8457 Patch by Masahide Washizawa <WASHI@jp.ibm.com>.
8459 * timezone/zic.c: Fix handling of turnaround times.
8460 Patch by Arthur David Olson <olsona@dc37a.nci.nih.gov>.
8462 2001-12-02 Moshe Olshansky <OLSHANSK@il.ibm.com>
8464 * sysdeps/ieee754/dbl-64/e_remainder.c (__ieee754_remainder): Fix
8467 2001-12-05 Ulrich Drepper <drepper@redhat.com>
8469 * posix/regex.c: For use outside glibc defined bounded pointer
8470 macros here. Patch by Jim Meyering <jim@meyering.net>.
8472 * iconvdata/Makefile (modules): Add TCVN5712-1.
8473 * iconvdata/TESTS: Add TCVN5712-1.
8474 * iconvdata/gconv-modules: Likewise.
8475 * iconvdata/tcvn5712-1.c: New file.
8476 * iconvdata/testdata/TCVN-5712: New file.
8477 * iconvdata/testdata/TCVN-5712..UTF8: New file.
8479 2001-12-04 Ulrich Drepper <drepper@redhat.com>
8481 * iconvdata/cp1258.c: Optimize conversion from UCS4.
8483 2001-12-02 Roland McGrath <roland@frob.com>
8485 * mach/Makefile, mach/Machrules: Move comments out of \ continuations.
8487 * hurd/hurd.h (__hurd_fail): Add `break;' to silence new gcc-3 warning.
8488 Reported by Jeff Bailey <jbailey@nisa.net>.
8490 * hurd/hurd.h (_hurd_umask): Remove volatile qualifier from decl.
8491 Reported by Jeff Bailey <jbailey@nisa.net>.
8493 * mach/Makefile ($(objpfx)mach-syscalls.mk): Pass $(CFLAGS) to $(CC).
8494 * mach/Machrules ($(objpfx)%.udeps static pattern rule): Likewise.
8495 Reported by Jeff Bailey <jbailey@nisa.net>.
8497 2001-12-01 Roland McGrath <roland@frob.com>
8499 * sysdeps/mach/hurd/configure.in (libc_cv_gcc_unwind_find_fde): Add
8500 missing backslash in test arguments.
8501 * sysdeps/mach/hurd/configure: Regenerated.
8503 2001-11-26 Roland McGrath <roland@frob.com>
8505 * hurd/hurdinit.c (_hurd_ports_use): Check if _hurd_ports is null.
8506 Reported by John Tobey <jtobey@john-edwin-tobey.org>.
8508 2001-11-30 Ulrich Drepper <drepper@redhat.com>
8510 * iconvdata/Makefile (modules): Add ARMSCII-8.
8511 * iconvdata/gconv-modules: Add entries for ARMSCII-8.
8512 * iconvdata/armscii-8.c: New file.
8514 2001-11-29 Jakub Jelinek <jakub@redhat.com>
8516 * sysdeps/generic/glob.c (next_brace_sub): Return NULL if braces
8517 don't match, fix {{a,b},c} globbing, clean up.
8518 Patch by Flavio Veloso <flaviovs@magnux.com>.
8519 * posix/globtest.sh: Add new tests.
8521 2001-11-29 Andreas Jaeger <aj@suse.de>
8523 * sysdeps/unix/sysv/linux/x86_64/Versions: Add arch_prctl.
8524 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Add arch_prctl call.
8526 * sysdeps/generic/abort.c: Include libioP.h for
8527 _IO_flush_all_lockp prototype.
8529 2001-11-29 Ulrich Drepper <drepper@redhat.com>
8531 * posix/regex.h: Define __restrict_arr correctly.
8533 2001-11-28 Ulrich Drepper <drepper@redhat.com>
8535 * iconvdata/ibm1163.c: New file.
8536 * iconvdata/ibm1163.h: New file.
8537 * iconvdata/ibm1164.c: New file.
8538 * iconvdata/ibm1164.h: New file.
8539 * iconvdata/TESTS: Add entries for IBM1163 and IBM1164.
8540 * iconvdata/Makefile: Likewise.
8541 * iconvdata/testdata/IBM1163: New file.
8542 * iconvdata/testdata/IBM1163..UTF8: New file.
8543 * iconvdata/testdata/IBM1164: New file.
8544 * iconvdata/testdata/IBM1164..UTF8: New file.
8545 Patch by Masahide Washizawa <WASHI@jp.ibm.com>.
8547 * iconvdata/ibm1046.h: Optimize. Remove duplicate mappings.
8548 * iconvdata/ibm1124.h: Likewise.
8549 * iconvdata/ibm1132.h: Likewise.
8550 * iconvdata/ibm1133.h: Likewise.
8551 * iconvdata/ibm1160.h: Likewise.
8552 * iconvdata/ibm1161.h: Likewise.
8553 * iconvdata/ibm1162.h: Likewise.
8554 * iconvdata/ibm856.h: Likewise.
8555 * iconvdata/ibm922.h: Likewise.
8556 * iconvdata/ibm930.h: Likewise.
8557 * iconvdata/ibm932.h: Likewise.
8558 * iconvdata/ibm933.h: Likewise.
8559 * iconvdata/ibm935.h: Likewise.
8560 * iconvdata/ibm937.h: Likewise.
8561 * iconvdata/ibm939.h: Likewise.
8562 * iconvdata/ibm943.h: Likewise.
8563 * iconvdata/ibm930.c: Pretty printing.
8564 * iconvdata/ibm937.c: Avoid access accross array boundary.
8566 * iconv/gconv_open.c (__gconv_open): Empty codeset name now means using
8567 the current locale's codeset.
8568 * iconv/iconv_open.c (iconv_open): Don't strip out everything for
8570 * iconv/iconv_prog.c: Pass empty strings as default value for to-
8571 and from-charset. Don't determine locale's charset here.
8573 * libio/genops.c (_IO_flush_all_lockp): New function. The same code
8574 as the old _IO_flush_all but lock only if parameter is nonzero.
8575 (_IO_flush_all): Call _IO_flush_all_lockp with 1 as parameter.
8576 * libio/libioP.h: Add prototype for _IO_flush_all_lockp.
8577 * sysdeps/generic/abort.c (fflush): Define to _IO_flush_all_lockp(0)
8578 if libio is used [PR libc/2575].
8580 2001-11-28 Jakub Jelinek <jakub@redhat.com>
8582 * sysdeps/sparc/fpu/bits/mathinline.h (__signbitf, __signbit,
8583 __signbitl): Only define for ISO C99.
8585 2001-11-22 Thorsten Kukuk <kukuk@suse.de>
8587 * nss/nss_files/files-hosts.c (_nss_files_get##name##_r): Set
8588 herrnop to NETDB_INTERNAL if we run out of buffer space.
8590 2001-11-28 Ulrich Drepper <drepper@redhat.com>
8592 * nss/nss_files/files-XXX.c (internal_getent): Correct input
8593 overflow test for platforms with signed char.
8594 Reported by Andrew Haley <aph@cambridge.redhat.com>.
8596 2001-11-28 Bruno Haible <bruno@clisp.org>
8598 * locale/programs/simple-hash.c (lookup_2): Remove function.
8599 (insert_entry_2): Call lookup instead of lookup_2.
8601 2001-03-04 Bruno Haible <bruno@clisp.org>
8603 * intl/dcigettext.c (DCIGETTEXT): Increment path_max proportionally.
8605 2001-10-31 Bruno Haible <bruno@clisp.org>
8607 * intl/plural.y: Include <stddef.h>, needed for NULL with SunOS 4 cc.
8609 2001-03-21 Bruno Haible <bruno@clisp.org>
8611 * intl/dcigettext.c (_nl_state_lock): Mark as #ifdef _LIBC. AIX 3 xlc
8612 chokes on empty macro arguments.
8613 * intl/plural.y: Add #pragma for alloca on AIX 3.
8615 2001-11-27 Ulrich Drepper <drepper@redhat.com>
8617 * intl/dcigettext.c (guess_category_value): Only implement for
8618 glibc. Otherwise rely on function _nl_locale_name which isn't
8619 present in the glibc sources.
8621 2001-09-24 Bruno Haible <bruno@clisp.org>
8623 * intl/loadmsgcat.c (_nl_init_domain_conv): Also enable
8624 transliteration when building on a glibc system but outside glibc.
8626 2001-09-22 Bruno Haible <bruno@clisp.org>
8628 * intl/plural-eval.c: New file, extracted from dcigettext.c.
8629 * intl/dcigettext.c (plural_eval): Remove function, moved to
8631 (plural_lookup): Call PLURAL_EVAL instead of plural_eval.
8632 Include plural-eval.c.
8634 2001-09-22 Bruno Haible <bruno@clisp.org>
8636 * intl/plural-exp.c (EXTRACT_PLURAL_EXPRESSION): Reject numbers that
8637 don't start with a digit; nplurals must be positive.
8639 2001-09-02 Bruno Haible <bruno@clisp.org>
8641 * intl/plural-exp.h: New file, extracted from gettextP.h.
8642 * intl/plural-exp.c: New file, extracted from loadmsgcat.c.
8643 * intl/gettextP.h (struct expression, struct parse_args,
8644 __gettext_free_exp, __gettextparse): Move to plural-exp.h.
8645 * intl/loadmsgcat.c: Include plural-exp.h.
8646 (PLURAL_PARSE): Move macro to plural-exp.h.
8647 (plvar, plone, germanic_plural, INIT_GERMANIC_PLURAL): Move to
8649 (_nl_load_domain): Move plural handling code to plural-exp.c. Call
8650 EXTRACT_PLURAL_EXPRESSION.
8651 (_nl_unload_domain): Update.
8652 * intl/dcigettext.c: Include plural-exp.h.
8653 * intl/plural.y: Include plural-exp.h, not gettextP.h.
8654 (FREE_EXPRESSION): Move macro to plural-exp.h.
8655 * intl/Makefile (routines): Add plural-exp.
8656 (distribute): Add plural-exp.h.
8658 2001-07-28 Bruno Haible <bruno@clisp.org>
8660 * intl/l10nflist.c (_nl_normalize_codeset): Cast isalnum, isalpha,
8661 isdigit, tolower argument to 'unsigned char'.
8662 * intl/loadmsgcat.c (_nl_load_domain): Cast isspace argument to
8664 * intl/localealias.c (read_alias_file): Cast isspace argument to
8667 2001-10-20 Bruno Haible <bruno@clisp.org>
8669 Assume strchr() exists. (Without it, intl/explodename.c wouldn't link
8671 * intl/dcigettext.c (strchr): Remove fallback definition; it conflicts
8672 with the variable 'index' in plural_lookup.
8673 * intl/l10nflist.c (strchr): Likewise.
8674 * intl/localealias.c (strchr): Likewise.
8676 Assume <stddef.h>, <stdlib.h>, <string.h>, <locale.h> exist.
8677 * intl/bindtextdom.c: Likewise.
8678 * intl/dcigettext.c: Likewise.
8679 * intl/dgettext.c: Likewise.
8680 * intl/dngettext.c: Likewise.
8681 * intl/explodename.c: Likewise.
8682 * intl/finddomain.c: Likewise.
8683 * intl/gettext.c: Likewise.
8684 * intl/l10nflist.c: Likewise.
8685 * intl/loadmsgcat.c: Likewise.
8686 * intl/localealias.c: Likewise.
8687 * intl/ngettext.c: Likewise.
8688 * intl/textdomain.c: Likewise.
8689 * intl/gettext.h: Assume <limits.h> exists.
8691 2001-11-27 Ulrich Drepper <drepper@redhat.com>
8693 * stdio-common/Makefile (tests): Add scanf11.
8694 * stdio-common/scanf11.c: New file.
8696 2001-11-26 Ulrich Drepper <drepper@redhat.com>
8698 * version.h (RELEASE): Define as development.
8699 (VERSION): Set to 2.2.90.
8701 2001-11-22 Thorsten Kukuk <kukuk@suse.de>
8703 * nis/nss_compat/compat-grp.c: Print group id as unsigned long.
8704 * nis/nss_nis/nis-grp.c: Likewise.
8705 * nis/nss_nisplus/nisplus-grp.c: Likewise.
8707 * nis/nss_compat/compat-pwd.c: Print user id as unsigned long.
8708 * nis/nss_nis/nis-pwd.c: Likewise.
8709 * nis/nss_nisplus/nisplus-pwd.c: Likewise.
8711 * nis/nss_nis/nis-publickey.c: Use strtoul instead of atoi.
8712 * nis/nss_nisplus/nisplus-parser.c: Likewise.
8713 * nis/nss_nisplus/nisplus-publickey.c: Likewise.
8715 * nscd/grpcache.c: Use strtoul instead of atol.
8716 * nscd/pwdcache.c: Likewise.
8717 * nss/getent.c: Likewise.
8719 2001-11-27 Paul Eggert <eggert@twinsun.com>
8721 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
8722 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
8724 2001-11-19 Bruno Haible <bruno@clisp.org>
8726 * locale/programs/simple-hash.c (insert_entry_2): Resize at 75%, not
8728 (compute_hashval): Shift by 9 bits, not by 4 bits. This drastically
8729 improves the quality of the hash function, especially for short
8732 2001-11-26 Ulrich Drepper <drepper@redhat.com>
8734 * stdio-common/vfscanf.c: If incomplete nan of inf(inity) strings
8735 are found call conv_error and not input_error [PR libc/2669].
8737 * math/bits/mathcalls.h: Mark ceil and floor as const.
8738 Reported by David Mosberger.
8740 2001-11-21 Jim Meyering <meyering@lucent.com>
8742 * posix/regex.c (iswctype, mbrtowc, wcslen, wcscoll, wcrtomb) [_LIBC]:
8743 Define to be __-prefixed.
8744 Remove unnecessary duplication in `#ifdef _LIBC' blocks.
8746 2001-11-26 Andreas Jaeger <aj@suse.de>
8748 * sysdeps/unix/sysv/linux/hppa/brk.c: Remove __brk_addr alias,
8751 2001-11-26 Stephen L Moshier <moshier@mediaone.net>
8753 * sysdeps/ieee754/ldbl-128/e_log10l.c (L102B): Fix typo in
8756 * sysdeps/ieee754/ldbl-128/e_coshl.c (__ieee754_coshl): Remove
8757 unused variables. Fix threshold for returning 1.0.
8759 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (neval, deval): Constify
8762 * sysdeps/ieee754/ldbl-128/s_erfl.c (neval, deval): Likewise, and
8763 remove unused variables.
8765 * sysdeps/ieee754/ldbl-128/e_j0l.c (neval, deval): Likewise.
8767 * sysdeps/ieee754/ldbl-128/e_j1l.c (neval, deval): Likewise, and
8768 include local math header files.
8770 2001-11-22 Andreas Jaeger <aj@suse.de>
8772 * sysdeps/ieee754/ldbl-96/s_ilogbl.c (__ilogbl): Add brace to
8775 2001-11-21 Andreas Jaeger <aj@suse.de>
8777 * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: New file.
8779 * sysdeps/unix/sysv/linux/x86_64/Makefile (sysdep_headers): Add
8782 2001-11-15 Andreas Jaeger <aj@suse.de>
8784 * include/features.h (__GLIBC_HAVE_LONG_LONG): Define for
8785 compilers that support it.
8787 * posix/sys/types.h: Use __GLIBC_HAVE_LONG_LONG.
8788 * sysdeps/unix/sysv/linux/bits/types.h: Likewise.
8789 * stdlib/stdlib.h: Likewise.
8791 2001-11-17 Ulrich Drepper <drepper@redhat.com>
8793 * posix/regex.c (byte_re_match_2_internal): For gcc replace switch
8794 statement with gotos.
8795 Based on a patch by Paolo Bonzini <bonzini@pc-amo3.elet.polimi.it>.
8797 2001-11-16 Stephen L Moshier <moshier@mediaone.net>
8799 * sysdeps/ieee754/ldbl-96/s_erfl.c (__erfcl): Fix K&R header.
8801 2001-11-15 Ulrich Drepper <drepper@redhat.com>
8803 * sysdeps/generic/unwind-dw2-fde.c: Don't use recursive mutexes.
8805 2001-10-02 Jakub Jelinek <jakub@redhat.com>
8806 H.J. Lu <hjl@gnu.org>
8808 * Versions.def (libc): Add GCC_3.0.
8809 * configure.in (libc_cv_gcc_static_libgcc): Set to -static-libgcc
8810 if gcc supports this flag.
8811 (EXPORT_UNWIND_FIND_FDE): Define unless target configure disables it.
8812 (gcc3): Allow glibc to be compiled with gcc 3.x.
8813 * config.h.in (EXPORT_UNWIND_FIND_FDE): Add.
8814 * config.make.in (static-libgcc, unwind-find-fde): Add.
8815 * Makerules (build-shlib-helper, build-module-helper): Use it.
8816 * scripts/versions.awk: Make sure GLIBC_ versions come first.
8817 * elf/soinit.c (__libc_global_ctors): Set tbases and dbases if
8819 (_fini): Call __deregister_frame_info_bases if
8820 __register_frame_info_bases was used to register.
8821 * elf/Versions (__register_frame_info, __deregister_frame_info): Add
8823 (__register_frame_info_bases, __register_frame_info_table_bases,
8824 __deregister_frame_info_bases, _Unwind_Find_FDE): Add for GCC_3.0.
8825 * elf/Makefile (routines): Add unwind-dw2-fde.
8826 (shared-only-routines): Add unwind-dw2-fde.
8827 * sysdeps/alpha/gccframe.h: New file.
8828 * sysdeps/arm/gccframe.h: New file.
8829 * sysdeps/generic/framestate.c: New file.
8830 * sysdeps/generic/dwarf2.h: New file.
8831 * sysdeps/generic/gccframe.h (struct object): Update from gcc 3.0.
8832 * sysdeps/generic/unwind-dw2-fde.c: New file.
8833 * sysdeps/unix/sysv/linux/ia64/unwind-dw2-fde.c: New file.
8834 * sysdeps/generic/unwind-dw2-fde.h: New file.
8835 * sysdeps/generic/unwind-dw2.c: New file.
8836 * sysdeps/generic/unwind-pe.h: New file.
8837 * sysdeps/generic/unwind.h: New file.
8838 * sysdeps/hppa/gccframe.h: New file.
8839 * sysdeps/i386/gccframe.h: New file.
8840 * sysdeps/m68k/gccframe.h: New file.
8841 * sysdeps/mips/gccframe.h: New file.
8842 * sysdeps/powerpc/gccframe.h: New file.
8843 * sysdeps/s390/gccframe.h: New file.
8844 * sysdeps/sh/gccframe.h: New file.
8845 * sysdeps/sparc/gccframe.h: New file.
8846 * sysdeps/vax/gccframe.h: New file.
8847 * sysdeps/unix/sysv/linux/configure.in (libc_cv_gcc_unwind_find_fde):
8848 Set on all architectures except ia64.
8849 * sysdeps/mach/hurd/configure.in (libc_cv_gcc_unwind_find_fde): Set
8851 * sysdeps/mach/hurd/i386/Versions (__register_frame_info,
8852 __deregister_frame_info): Move to elf/Versions.
8853 * sysdeps/unix/sysv/linux/m68k/Versions: Likewise.
8854 * sysdeps/unix/sysv/linux/arm/Versions: Likewise.
8855 * sysdeps/unix/sysv/linux/alpha/Versions: Likewise.
8856 * sysdeps/unix/sysv/linux/i386/Versions: Likewise.
8857 * sysdeps/unix/sysv/linux/mips/Versions: Likewise.
8858 * sysdeps/unix/sysv/linux/powerpc/Versions: Likewise.
8859 * sysdeps/unix/sysv/linux/s390/s390-32/Versions: Likewise.
8860 * sysdeps/unix/sysv/linux/sparc/sparc32/Versions: Likewise.
8861 * sysdeps/unix/sysv/linux/sparc/sparc64/Versions: Likewise.
8862 * sysdeps/mach/hurd/i386/Makefile (sysdep-routines): Add framestate.
8863 * sysdeps/unix/sysv/linux/arm/Makefile: Likewise.
8864 * sysdeps/unix/sysv/linux/alpha/Makefile: Likewise.
8865 * sysdeps/unix/sysv/linux/i386/Makefile: Likewise.
8866 * sysdeps/unix/sysv/linux/m68k/Makefile: Likewise.
8867 * sysdeps/unix/sysv/linux/mips/Makefile: Likewise.
8868 * sysdeps/unix/sysv/linux/powerpc/Makefile: Likewise.
8869 * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Likewise.
8870 * sysdeps/unix/sysv/linux/sparc/Makefile: Likewise.
8872 2001-11-15 Jeff Law <law@redhat.com>
8874 * posix/regex.c (uintptr_t): Do not provide a definition if the
8875 system provided one.
8877 2001-11-13 Roland McGrath <roland@frob.com>
8879 * stdio-common/tmpfile.c: Moved to ...
8880 * sysdeps/generic/tmpfile.c: ... here.
8881 * sysdeps/mach/hurd/tmpfile.c: New file.
8883 * hurd/fopenport.c (__fopenport): Renamed from fopenport.
8884 [USE_IN_LIBIO] (fopencookie): #define as _IO_fopencookie.
8885 (fopenport): Define as weak alias.
8887 * libio/iofopncook.c (_IO_fopencookie): Move forward declaration ...
8888 * libio/libioP.h: ... to here.
8890 2001-11-12 Ulrich Drepper <drepper@redhat.com>
8892 * elf/dl-reloc.c (_dl_relocate_object): Avoid iterating over
8893 program header twice. Construct list with the needed information.
8895 2001-11-10 Ulrich Drepper <drepper@redhat.com>
8897 * po/ca.po: Update from translation team.
8899 * elf/dl-load.c (_dl_map_object_from_fd): Remove use of
8900 _dl_pf_to_prot. Use arithmetic operation using PF_TO_PROT macro.
8901 * sysdeps/generic/ldsodefs.h (PF_TO_PROT): New macro.
8902 * elf/dl-reloc.c (_dl_relocate_object): Likewise.
8904 2001-11-10 Andreas Jaeger <aj@suse.de>
8906 * sysdeps/ieee754/ldbl-128/e_log2l.c: New file.
8907 * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
8908 Contributed by Stephen L Moshier <moshier@mediaone.net>.
8910 2001-11-09 Ulrich Drepper <drepper@redhat.com>
8912 * elf/dl-minimal.c (realloc): Handle NULL for first parameter
8914 * elf/dl-load.c (is_dst): New function.
8915 (_dl_dst_count): Use is_dst to check for DST variable.
8916 (_dl_dst_substitute): Likewise.
8918 2001-11-09 Roland McGrath <roland@frob.com>
8920 Hurd/PowerPC port contributed by Peter Bruin <pjbruin@dds.nl>.
8921 * sysdeps/mach/hurd/powerpc/exc2signal.c: New file.
8922 * sysdeps/mach/hurd/powerpc/init-first.c: New file.
8923 * sysdeps/mach/hurd/powerpc/intr-msg.h: New file.
8924 * sysdeps/mach/hurd/powerpc/longjmp-ts.c: New file.
8925 * sysdeps/mach/hurd/powerpc/register-dump.h: New file.
8926 * sysdeps/mach/hurd/powerpc/sigreturn.c: New file.
8927 * sysdeps/mach/hurd/powerpc/static-start.S: New file.
8928 * sysdeps/mach/hurd/powerpc/trampoline.c: New file.
8929 * sysdeps/mach/hurd/powerpc/bits/sigcontext.h: New file.
8930 * sysdeps/mach/hurd/powerpc/Dist: New file.
8932 * hurd/privports.c (__get_privileged_ports):
8933 Only contact the proc server if necessary for this call.
8934 Suggested by Neal H Walfield <neal@cs.uml.edu>.
8935 Check error return for mach_port_mod_refs.
8937 2001-11-09 Andreas Schwab <schwab@suse.de>
8939 * sysdeps/unix/sysv/linux/m68k/bits/resource.h: New file.
8941 2001-11-09 Ulrich Drepper <drepper@redhat.com>
8943 * elf/dl-load.c (lose): Remove some unnecessary code. The new
8944 object is always the last in the list.
8945 (_dl_map_object_from_fd): Delete code to remove from object list
8946 when DF_1_NOOPEN is seen. This is done in lose.
8948 2001-11-08 Ulrich Drepper <drepper@redhat.com>
8950 * elf/dl-object.c (_dl_new_object): Various small optimizations.
8952 2001-11-07 Ulrich Drepper <drepper@redhat.com>
8954 * sysdeps/generic/dl-cache.c: Optimize SEARCH_CACHE and
8955 HWCAP_CHECK macro code.
8957 * elf/dl-misc.c (_dl_sysdep_read_whole_file): Optimize code a bit.
8958 Now returns MAP_FAILED on error.
8959 * elf/rtld.c: Adjust caller.
8960 * sysdeps/generic/dl-cache.c: Likewise.
8961 * sysdeps/generic/ldsodefs.h: Adjust description.
8963 * elf/dl-version.c (match_symbol): Optimize error handling for size.
8964 (_dl_check_map_versions): Likewise.
8966 2001-11-06 Ulrich Drepper <drepper@redhat.com>
8968 * elf/dl-load.c (_dl_map_object_from_fd): Don't call
8969 _dl_signal_error directly, always use lose. Set fd to -1 after
8971 (lose): Don't call close if fd == -1.
8973 2001-11-07 Kaoru Fukui <k_fukui@highway.ne.jp>
8975 * manual/charset.texi: Fix typo @w[ISO 6937] to @w{ISO 6937}.
8976 Also fix typo @code {mbsinit} to @code{mbsinit}.
8978 2001-11-06 Ulrich Drepper <drepper@redhat.com>
8980 * elf/dl-profile.c: Replace state variable with simple flag named
8981 running. Remove commented-out code.
8983 * elf/dl-load.c (decompose_rpath): Optimize error handling for size.
8984 (_dl_init_paths): Likewise.
8985 (_dl_map_object_from_fd): Likewise.
8986 * elf/dl-reloc.c (_dl_relocate_object): Likewise.
8988 2001-11-06 Roland McGrath <roland@frob.com>
8990 * sysdeps/mach/powerpc/sysdep.h: Include sysdeps/unix/powerpc/sysdep.h
8991 instead of sysdeps/powerpc/elf/sysdep.h and sysdeps/unix/sysdep.h.
8993 * sysdeps/unix/sysv/linux/powerpc/sysdep.h: Don't include
8994 sysdeps/powerpc/elf/sysdep.h.
8995 Reported by Kaoru Fukui <k_fukui@highway.ne.jp>.
8997 2001-11-05 Ulrich Drepper <drepper@redhat.com>
8999 * elf/rtld.c (process_dl_debug): Rewritten. Optimized for size not
9001 (process_envvars): Some more optimizations.
9002 * sysdeps/generic/ldsodefs.h (DL_DEBUG_HELP): New macro.
9004 * elf/elf.h: Add dynamic tag definitions for prelinking.
9006 * elf/rtld.c (process_envvars): Avoid using array of string pointers.
9007 Rewrite code to remove environment varables for SUID binaries.
9008 Small optimization in LD_PROFILE handling.
9009 * sysdeps/generic/unsecvars.h: Adjust format for process_envvars
9011 * sysdeps/unix/sysv/linux/i386/dl-librecon.h: Likewise.
9013 * sysdeps/generic/dl-sysdep.c: Don't initialize _dl_cpuclock_offset.
9015 * elf/dl-reloc.c (_dl_reloc_bad_type): Rewrite to not use writable
9016 strings. Change type of second parameter.
9017 * sysdeps/generic/ldsodefs.h: Adjust _dl_reloc_bad_type prototype
9020 * io/fts.h: Prevent using <fts.h> with _FILE_OFFSET_BITS=64.
9022 2001-11-04 Joseph S. Myers <jsm28@cam.ac.uk>
9024 * manual/string.texi: Fix typos.
9025 * manual/examples/argp-ex2.c: Likewise.
9027 2001-11-05 Roland McGrath <roland@frob.com>
9029 * sysdeps/powerpc/elf/sysdep.h: Remove this file, because it overrides
9030 the more-specific unix/sysv/linux/powerpc file and breaks everything.
9031 * sysdeps/powerpc/sysdep.h (ALIGNARG, ASM_TYPE_DIRECTIVE,
9032 ASM_SIZE_DIRECTIVE, CALL_MCOUNT, ENTRY, EALIGN, DO_CALL, JUMPTARGET,
9033 PSEUDO, PSEUDO_RET, PSEUDO_END, L, C_TEXT): These macros moved here
9034 here, put under [__ELF__].
9036 2001-11-05 Ulrich Drepper <drepper@redhat.com>
9038 * manual/charset.texi: Extensive editing work.
9039 * manual/nss.texi: Likewise.
9040 Changes by Dennis Grace <dgrace@us.ibm.com>.
9042 2001-11-04 Roland McGrath <roland@frob.com>
9044 * hurd/set-host.c (_hurd_set_host_config): Use O_WRONLY in flags
9045 parameter to dir_mkfile.
9047 2001-11-02 Jakub Jelinek <jakub@redhat.com>
9049 * string/bits/string2.h (__strndup): If n is smaller than len, set
9051 * string/tester.c (test_strndup): New function.
9054 2001-11-01 Ulrich Drepper <drepper@redhat.com>
9056 * sunrpc/rpc_main.c: Optimize variable definitions a bit.
9058 * sunrpc/Makefile (rpcgen-cmd): Use ../scripts/cpp in rpcgen calls.
9059 * scripts/cpp: New file.
9061 * elf/dl-load.c (_dl_map_object): Correct test of DF_1_NODEFLIB
9062 for rtld_search_dirs content. Minor optimizations.
9064 2001-10-31 Ulrich Drepper <drepper@redhat.com>
9066 * elf/dl-load.c (_dl_map_object): Make code a bit more compact by
9067 avoiding unnecessary duplication.
9069 2001-10-31 Jakub Jelinek <jakub@redhat.com>
9071 * elf/dl-load.c (_dl_map_object): If library was found using
9072 LD_LIBRARY_PATH, don't try RUNPATH list.
9074 2001-10-31 Martin Schwidefsky <schwidefsky@de.ibm.com>
9076 * sysdeps/unix/sysv/linux/s390/s390-32/register-dump.h (REGISTER_DUMP):
9077 Correct second argument of register_dump call.
9078 * sysdeps/unix/sysv/linux/s390/s390-64/register-dump.h (REGISTER_DUMP):
9081 2001-10-31 Ulrich Drepper <drepper@redhat.com>
9083 * iconvdata/Makefile: Add support for IBM1132, IBM1133, and IBM1162
9085 * iconvdata/TESTS: Likewise.
9086 * iconvdata/gconv-modules: Likewise.
9087 * iconvdata/ibm1132.c: New file.
9088 * iconvdata/ibm1132.h: New file.
9089 * iconvdata/ibm1133.c: New file.
9090 * iconvdata/ibm1133.h: New file.
9091 * iconvdata/ibm1162.c: New file.
9092 * iconvdata/ibm1162.h: New file.
9093 * iconvdata/testdata/IBM1132: New file.
9094 * iconvdata/testdata/IBM1132..UTF8: New file.
9095 * iconvdata/testdata/IBM1133: New file.
9096 * iconvdata/testdata/IBM1133..UTF8: New file.
9097 * iconvdata/testdata/IBM1162: New file.
9098 * iconvdata/testdata/IBM1162..UTF8: New file.
9099 Patches by Masahide Washizawa <WASHI@jp.ibm.com>.
9101 * string/string.h: Fix typo in comment.
9102 * wcsmbs/wchar.h: Likewise.
9104 2001-10-30 Joseph S. Myers <jsm28@cam.ac.uk>
9106 * manual/getopt.texi (getopt_long, getopt_long_only): Include
9107 const in type of longopts parameter.
9109 2001-10-29 Andreas Jaeger <aj@suse.de>
9111 * sysdeps/ieee754/dbl-64/mpa.h: Add prototypes for internal functions.
9113 2001-10-29 Kevin Ryde <user42@zip.com.au>
9115 * manual/stdio.texi (Integer Conversions): Corrections to sample printf
9116 output, clarify `#' behaviour on 0.
9117 (Floating-Point Conversions): Clarify that %g only uses %e when
9118 the exponent would be greater than 1.
9120 2001-10-28 Roland McGrath <roland@frob.com>
9122 Support for Mach/PowerPC contributed by Peter Bruin <pjbruin@dds.nl>.
9123 * sysdeps/mach/powerpc/machine-sp.h: New file.
9124 * sysdeps/mach/powerpc/sysdep.h: New file.
9125 * sysdeps/mach/powerpc/thread_state.h: New file.
9127 * sysdeps/mach/hurd/i386/Makefile: File removed; crt0.o rules moved ...
9128 * sysdeps/mach/hurd/Makefile: ... to here. For the time being, we can
9129 expect to need the same thing on every platform.
9131 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: File moved ...
9132 * sysdeps/generic/sys/ucontext.h: ... to replace this one.
9134 * sysdeps/unix/sysv/linux/powerpc/sysdep.h (ALIGNARG,
9135 ASM_TYPE_DIRECTIVE, ASM_SIZE_DIRECTIVE, CALL_MCOUNT, ENTRY, EALIGN,
9136 DO_CALL, JUMPTARGET, PSEUDO, PSEUDO_RET, PSEUDO_END, L, C_TEXT):
9137 Move all these assembly-related definitions to ...
9138 * sysdeps/powerpc/elf/sysdep.h: ... this new file.
9140 * sysdeps/mach/powerpc/machine-lock.h: Assembly code rewritten
9141 by Peter Bruin <pjbruin@dds.nl>.
9143 * hurd/hurdselect.c (_hurd_select): Check SELECT_RETURNED bit when
9144 packing results for a `poll' call.
9146 2001-10-26 Ulrich Drepper <drepper@redhat.com>
9148 * posix/fnmatch_loop.c: Recognize - at end of bracket expression
9150 * posix/tst-fnmatch.input: Add tests for - at beginning and end of
9153 * string/strxfrm.c [USE_IN_EXTENDED_LOCALE_MODEL]: Correctly get
9155 * string/tst-strxfrm.c (test): Also test __strxfrm_l.
9157 2001-10-24 H.J. Lu <hjl@gnu.org>
9159 * sysdeps/generic/bits/dlfcn.h (DL_CALL_FCT): Cast to void *.
9160 Use __BEGIN_DECLS/__END_DECLS around prototypes.
9161 * sysdeps/mips/bits/dlfcn.h (DL_CALL_FCT): Likewise.
9163 2001-10-21 Jim Meyering <meyering@lucent.com>
9165 * malloc/obstack.c (_): Honor the setting of ENABLE_NLS. Otherwise,
9166 this code would end up calling gettext even in packages built
9168 * posix/getopt.c (_): Likewise.
9169 * posix/regex.c (_): Likewise.
9171 2001-10-26 Ulrich Drepper <drepper@redhat.com>
9173 * resolv/gethnamaddr.c (gethostbyaddr): Use ip6.addr for reverse
9175 * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr_r): Likewise.
9176 Reported by Martin.v.Loewis@t-online.de [PR libc/2598].
9178 2001-10-19 Jakub Jelinek <jakub@redhat.com>
9180 * misc/sys/cdefs.h (__attribute_used__): Define.
9181 * elf/rtld.c (_dl_start): Add __attribute_used__.
9182 * elf/dl-runtime.c (fixup, profile_fixup): Likewise.
9184 2001-10-25 Andreas Schwab <schwab@suse.de>
9186 * stdlib/a64l.c: Expect least significant digit first.
9187 * stdlib/l64a.c: Produce least significant digit first.
9188 * stdlib/Makefile (tests): Add test-a64l.
9189 * stdlib/test-a64l.c: New file.
9190 Reported by Masaki Hasegawa <masaki-h@pp.iij4u.or.jp>.
9192 2001-10-21 Ulrich Drepper <drepper@redhat.com>
9194 * po/sk.po: Update from translation team.
9196 2001-10-18 Ulrich Drepper <drepper@redhat.com>
9198 * sysdeps/i386/elf/start.S (_fp_hw): Define object type.
9200 2001-10-18 Andreas Schwab <schwab@suse.de>
9202 * math/libm-test.inc (print_ulps): Print ulp values rounded to
9204 (print_function_ulps): Likewise.
9205 (print_complex_function_ulps): Likewise.
9206 (print_max_error): Likewise.
9207 (print_complex_max_error): Likewise. Handle ignore_max_ulp.
9209 2001-10-16 Andreas Schwab <schwab@suse.de>
9211 * sysdeps/m68k/fpu/libm-test-ulps: Updated for fixed cbrtl
9214 * sysdeps/m68k/setjmp.c: Also define setjmp and _setjmp if
9215 BSD_SETJMP or BSD__SETJMP is defined, resp.
9216 * sysdeps/m68k/bsd-setjmp.c: Inline setjmp code instead of making
9217 a tail call to __sigsetjmp that would require extending the
9219 * sysdeps/m68k/bsd-_setjmp.c: Likewise.
9220 * sysdeps/m68k/bsd-setjmp.S: Deleted.
9221 * sysdeps/m68k/bsd-_setjmp.S: Deleted.
9222 Reported by Jes Sorensen <jes@trained-monkey.org>.
9224 2001-10-16 Andreas Jaeger <aj@suse.de>
9226 * sysdeps/ieee754/ldbl-96/s_nextafterl.c (__nextafterl): Fix
9227 parentheses. Reported by David Byron <dbyron@porto.coactive.com>,
9230 2001-10-15 Ulrich Drepper <drepper@redhat.com>
9232 * po/ca.po: New file. Contributed by the translation team.
9234 2001-10-15 Ralf Baechle <ralf@gnu.org>
9236 * sysdeps/unix/sysv/linux/mips/sys/sysmips.h: Make sysmips() prototype
9237 a varargs prototype. Remove dependency from kernel header files.
9239 * sysdeps/unix/sysv/linux/mips/bits/termios.h: General cleanup, use
9240 __USE_MISC / __USE_XOPEN not __USE_BSD where appropriate.
9242 2001-10-14 Ulrich Drepper <drepper@redhat.com>
9244 * locale/programs/ld-collate.c (handle_ellipsis): Use %lX not %lx
9245 to generate hexadecimal identifier.
9246 Patch by Jungshik Shin <jungshik.shin@yale.edu>.
9248 2001-10-09 Stephen L Moshier <moshier@mediaone.net>
9250 * sysdeps/ieee754/ldbl-96/s_cbrtl.c (__cbrtl): Fix algorithm.
9252 2001-10-14 Ulrich Drepper <drepper@redhat.com>
9254 * sysdeps/ieee754/ldbl-128/e_powl.c: New file.
9255 * sysdeps/ieee754/ldbl-128/s_cbrtl.c: New file.
9256 Contributed by Stephen L Moshier <moshier@mediaone.net>.
9258 * sysdeps/ieee754/ldbl-128/e_j0l.c: Constify float variables.
9259 * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
9260 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise
9261 * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise
9262 * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise
9263 * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise
9265 * timezone/africa: Update from tzdata2001d.
9266 * timezone/asia: Likewise.
9267 * timezone/australasia: Likewise.
9268 * timezone/backward: Likewise.
9269 * timezone/europe: Likewise.
9270 * timezone/leapseconds: Likewise.
9271 * timezone/northamerica: Likewise.
9272 * timezone/southamerica: Likewise.
9273 * timezone/zone.tab: Likewise.
9275 2001-10-09 Martin Schwidefsky <schwidefsky@de.ibm.com>
9277 * sysdeps/s390/s390-32/sys/ucontext.h: Correct __psw_t typedef.
9278 * sysdeps/s390/s390-64/sys/ucontext.h: Likewise.
9280 2001-10-12 Ulrich Drepper <drepper@redhat.com>
9282 * elf/elf.h (PT_TLS): New definition.
9284 2001-10-10 Jeff Bailey <jbailey@nisa.net>
9286 * sysdeps/mach/hurd/Makefile: Add $(CFLAGS) for generation of
9289 2001-10-07 Roland McGrath <roland@frob.com>
9291 * sysdeps/mach/hurd/setrlimit.c (__setrlimit): Never return ENOSYS.
9293 2001-10-10 Ulrich Drepper <drepper@redhat.com>
9295 * elf/elf.h: Add more ELFOSABI_* constants.
9297 2001-10-04 Ben Collins <bcollins@debian.org>
9299 * sysdeps/generic/inttypes.h: Fix typo (define, not defined) in
9300 decleration of __need_wchar_t.
9302 2001-10-03 Jakub Jelinek <jakub@redhat.com>
9304 * string/bits/string2.h (__strsep_g): Add prototype.
9306 * string/Versions (__strsep): Remove.
9307 * sysdeps/generic/strsep.c (__strsep_g): Add alias to __strsep.
9309 2001-10-07 Ulrich Drepper <drepper@redhat.com>
9311 * manua/llio.texi: Clarify file references added by mmap.
9312 Patch by Marcus Brinkmann <Marcus.Brinkmann@ruhr-uni-bochum.de>.
9314 2001-09-29 Jes Sorensen <jes@trained-monkey.org>
9316 * sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h (struct sigcontext):
9317 Add sc_loadrs and sc_rbs_bas to match current kernel.
9319 2001-09-27 Jakub Jelinek <jakub@redhat.com>
9321 * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Update.
9323 * sysdeps/ieee754/ldbl-128/s_erfl.c (__erfcl): Fix erfc(-inf).
9325 2001-09-27 Jakub Jelinek <jakub@redhat.com>
9327 * elf/dl-open.c (dl_open_worker): If l_opencount of freshly loaded
9328 object has been bumped because of relocation dependency, avoid
9329 duplicates in l_scope.
9330 (show_scope): Fix typos.
9331 * elf/Makefile: Add rules to build and run reldep6.
9332 * elf/reldep6.c: New file.
9333 * elf/reldep6mod0.c: New file.
9334 * elf/reldep6mod1.c: New file.
9335 * elf/reldep6mod2.c: New file.
9336 * elf/reldep6mod3.c: New file.
9337 * elf/reldep6mod4.c: New file.
9339 2001-09-26 Jakub Jelinek <jakub@redhat.com>
9341 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_fixup_plt): Call
9343 (sparc64_fixup_plt): Moved from elf_machine_fixup_plt. Optimize
9344 near jumps and 0xfffff800XXXXXXXX target addresses, no thread safety
9345 for non-lazy binding. Fix .plt[32768+] handling.
9346 (elf_machine_plt_value): Don't add addend.
9347 (elf_machine_rela): Call sparc64_fixup_plt instead of
9348 elf_machine_fixup_plt.
9349 (elf_machine_runtime_setup, TRAMPOLINE_TEMPLATE): Optimize for
9350 dynamic linker at 0xfffff800XXXXXXXX.
9352 * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Update.
9354 2001-09-28 Ulrich Drepper <drepper@redhat.com>
9356 * elf/elf.h: Define SHF_GROUP and SHF_TLS.
9358 2001-09-25 Jakub Jelinek <jakub@redhat.com>
9360 * sysdeps/unix/bsd/bsd4.4/bits/socket.h (struct cmsghdr): Don't
9361 declare __cmsg_data field if its size would be bigger than 0.
9362 (CMSG_DATA): Adjust accordingly.
9363 * sysdeps/unix/sysv/aix/bits/socket.h: Likewise.
9364 * sysdeps/unix/sysv/linux/alpha/bits/socket.h: Likewise.
9365 * sysdeps/unix/sysv/linux/ia64/bits/socket.h: Likewise.
9366 * sysdeps/unix/sysv/linux/s390/s390-64/bits/socket.h: Likewise.
9367 * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
9368 * sysdeps/unix/sysv/linux/mips/bits/socket.h: Likewise.
9369 * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
9371 2001-09-25 Ulrich Drepper <drepper@redhat.com>
9373 * iconvdata/TESTS: Add entries for IBM1160 and IBM1161.
9374 * iconvdata/testdata/IBM1160: New file.
9375 * iconvdata/testdata/IBM1160..UTF8: New file.
9376 * iconvdata/testdata/IBM1161: New file.
9377 * iconvdata/testdata/IBM1161..UTF8: New file.
9378 Patch by Masahide Washizawa <WASHI@jp.ibm.com>.
9380 2001-09-24 Ulrich Drepper <drepper@redhat.com>
9382 * sysdeps/unix/bsd/ulimit.c (ulimit): Handle overflow in
9383 UL_SETFSIZE computations better.
9385 * rt/Makefile: Remove use of filter for librt again.
9387 * sysdeps/unix/sysv/linux/ulimit.c (__ulimit): Handle overflow in
9388 UL_SETFSIZE computations better.
9390 * string/Versions: Export __strsep for GLIBC_2.2.5.
9391 * string/bits/string2.h: Define all __STRING_INLINE functions if
9392 _FORCE_INLINES is defined.
9393 Use int instead of char of parameter types.
9394 (__strsep): Don't use __strsep_g. Don't define it.
9395 (__strsep_1c, __strsep_2c, __strsep_3c): Optimize.
9396 * sysdeps/i386/i486/string.h (__strcpy_a_small): Renamed from
9398 (__stpcpy_a_small): Renamed from __stpcpy_small.
9399 (__strcspn_c1): Don't define if _FORCE_INLINES.
9400 (__strspn_c1): Likewise.
9402 2001-09-22 Ben Collins <bcollins@debian.org>
9404 * sysdeps/sparc/bits/sigaction.h: Define SA_RESTART and friends when
9405 _UNIX98_SOURCE is defined too. Matches generic/bits/sigaction.h.
9406 * sysdeps/ia64/bits/sigaction.h: Likewise.
9407 * sysdeps/s390/s390-64/bits/sigaction.h: Likewise.
9409 2001-09-24 Andrew Haley <aph@cambridge.redhat.com>
9411 * sysdeps/unix/sysv/linux/sh/Makefile (sysdep_headers): Add sys/io.h.
9413 2001-09-24 Jakub Jelinek <jakub@redhat.com>
9415 * elf/dl-open.c (dl_open_worker): Update l_scope_max.
9417 2001-09-24 Ulrich Drepper <drepper@redhat.com>
9419 * wcsmbs/wchar.h: Add __attribute_pure__ to mbsinit prototype.
9421 2001-09-20 H.J. Lu <hjl@gnu.org>
9423 * include/dlfcn.h (__RTLD_SPROF): New definiton.
9424 * elf/dl-open.c (dl_open_worker): Return immediately after loading
9426 * elf/sprof.c (main): Default to the filename if soname doesn't exist.
9427 (load_shobj): Call dlopen with `RTLD_LAZY | __RTLD_SPROF'.
9429 2001-09-20 H.J. Lu <hjl@gnu.org>
9431 * elf/dl-profile.c (_dl_mcount): Use old *narcsp value for newarc,
9434 2001-09-22 Ulrich Drepper <drepper@redhat.com>
9436 * nss/getent.c: Accept -s parameter to overwrite rules in
9437 nsswitch.conf. Patch by Nalin Dahyabhai <nalin@redhat.com>.
9439 * nss/nss_files/files-network.c (LINE_PARSER): Pad addr string
9440 with as many ".0" as necessary to form a complete address
9441 inet_network understands.
9443 * nss/getent.c: Various cleanups. Use simpler and fewer function
9446 2001-09-20 Martin Schwidefsky <schwidefsky@de.ibm.com>
9448 * sysdeps/s390/s390-32/bits/setjmp.h: Correct pointer comparison in
9450 * sysdeps/s390/s390-64/bits/setjmp.h: Likewise.
9452 2001-09-22 Ulrich Drepper <drepper@redhat.com>
9454 * iconvdata/Makefile: Add rules to build and distribute IBM1160 and
9456 * iconvdata/gconv-modules: Add entries for IBM1160 and IBM1161.
9457 * iconvdata/ibm1160.c: New file.
9458 * iconvdata/ibm1160.h: New file.
9459 * iconvdata/ibm1161.c: New file.
9460 * iconvdata/ibm1161.h: New file.
9461 Patch by Masahide Washizawa <WASHI@jp.ibm.com>.
9463 2001-09-19 Jakub Jelinek <jakub@redhat.com>
9465 * sysdeps/alpha/dl-machine.h (elf_machine_load_address): Compute the
9466 difference between base address and first PT_LOAD's virtual address,
9467 not the base address.
9469 2001-09-11 Tom Rix <trix@redhat.com>
9471 * sysdeps/unix/sysv/aix/init-first.c (init): Use USE_NONONPTION_FLAG
9472 ifdef for __getopt_clean_environment.
9473 * sysdeps/unix/sysv/aix/libc-start.c: Add real implementation.
9475 2001-09-22 Andreas Jaeger <aj@suse.de>
9477 * elf/reldep4.c (main): Add proper prototype to fix warning.
9479 * elf/reldep5.c (main): Remove unused variable.
9481 * math/math_private.h: Add prototypes.
9483 2001-09-21 Andreas Jaeger <aj@suse.de>
9485 * sysdeps/unix/sysv/linux/x86_64/Dist: New file.
9486 * sysdeps/x86_64/Dist: New file.
9487 * sysdeps/x86_64/soft-fp/Dist: New file.
9489 * sysdeps/gnu/Dist: Remove eval.c.
9491 2001-09-20 Ulrich Drepper <drepper@redhat.com>
9493 * malloc/memusage.c (realloc): Don't count already allocated
9495 (me): Always use dlsym() to find the real implementations.
9497 * malloc/memusage.sh: Make -n option actually do something.
9499 2001-09-20 Andreas Jaeger <aj@suse.de>
9501 * elf/elf.h (R_390_NUM): Correct value.
9503 * Versions.def: Add missing versions 2.2.3 for libthread_db and
9506 * sysdeps/unix/sysv/linux/configure.in: Add minimal kernel version
9507 for x86-64, install x86-64 into */lib64.
9509 * shlib-versions: Add x86-64.
9511 * elf/elf.h: Add x86-64 relocations.
9513 2001-09-19 Ulrich Drepper <drepper@redhat.com>
9515 * po/fr.po: Update from translation team.
9517 2001-09-19 Andreas Jaeger <aj@suse.de>
9519 * sysdeps/unix/sysv/linux/x86_64/Makefile: New file.
9520 * sysdeps/unix/sysv/linux/x86_64/Versions: New file.
9521 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: New file.
9522 * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: New file.
9523 * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: New file.
9524 * sysdeps/unix/sysv/linux/x86_64/bits/statfs.h: New file.
9525 * sysdeps/unix/sysv/linux/x86_64/bits/time.h: New file.
9526 * sysdeps/unix/sysv/linux/x86_64/bits/types.h: New file.
9527 * sysdeps/unix/sysv/linux/x86_64/brk.c: New file.
9528 * sysdeps/unix/sysv/linux/x86_64/clone.S: New file.
9529 * sysdeps/unix/sysv/linux/x86_64/fstatfs64.c: New file.
9530 * sysdeps/unix/sysv/linux/x86_64/ftruncate64.c: New file.
9531 * sysdeps/unix/sysv/linux/x86_64/fxstat.c: New file.
9532 * sysdeps/unix/sysv/linux/x86_64/fxstat64.c: New file.
9533 * sysdeps/unix/sysv/linux/x86_64/getdents.c: New file.
9534 * sysdeps/unix/sysv/linux/x86_64/getdents64.c: New file.
9535 * sysdeps/unix/sysv/linux/x86_64/getrlimit64.c: New file.
9536 * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: New file.
9537 * sysdeps/unix/sysv/linux/x86_64/glob64.c: New file.
9538 * sysdeps/unix/sysv/linux/x86_64/lxstat.c: New file.
9539 * sysdeps/unix/sysv/linux/x86_64/lxstat64.c: New file.
9540 * sysdeps/unix/sysv/linux/x86_64/mmap64.c: New file.
9541 * sysdeps/unix/sysv/linux/x86_64/pread64.c: New file.
9542 * sysdeps/unix/sysv/linux/x86_64/profil-counter.h: New file.
9543 * sysdeps/unix/sysv/linux/x86_64/pwrite64.c: New file.
9544 * sysdeps/unix/sysv/linux/x86_64/readdir.c: New file.
9545 * sysdeps/unix/sysv/linux/x86_64/readdir64.c: New file.
9546 * sysdeps/unix/sysv/linux/x86_64/readdir64_r.c: New file.
9547 * sysdeps/unix/sysv/linux/x86_64/readdir_r.c: New file.
9548 * sysdeps/unix/sysv/linux/x86_64/recv.c: New file.
9549 * sysdeps/unix/sysv/linux/x86_64/register-dump.h: New file.
9550 * sysdeps/unix/sysv/linux/x86_64/send.c: New file.
9551 * sysdeps/unix/sysv/linux/x86_64/setrlimit64.c: New file.
9552 * sysdeps/unix/sysv/linux/x86_64/sigaction.c: New file.
9553 * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: New file.
9554 * sysdeps/unix/sysv/linux/x86_64/sigpending.c: New file.
9555 * sysdeps/unix/sysv/linux/x86_64/sigprocmask.c: New file.
9556 * sysdeps/unix/sysv/linux/x86_64/sigsuspend.c: New file.
9557 * sysdeps/unix/sysv/linux/x86_64/statfs64.c: New file.
9558 * sysdeps/unix/sysv/linux/x86_64/sys/perm.h: New file.
9559 * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: New file.
9560 * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: New file.
9561 * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: New file.
9562 * sysdeps/unix/sysv/linux/x86_64/sys/user.h: New file.
9563 * sysdeps/unix/sysv/linux/x86_64/syscall.S: New file.
9564 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: New file.
9565 * sysdeps/unix/sysv/linux/x86_64/sysdep.S: New file.
9566 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: New file.
9567 * sysdeps/unix/sysv/linux/x86_64/time.c: New file.
9568 * sysdeps/unix/sysv/linux/x86_64/truncate64.c: New file.
9569 * sysdeps/unix/sysv/linux/x86_64/umount.c: New file.
9570 * sysdeps/unix/sysv/linux/x86_64/vfork.S: New file.
9571 * sysdeps/unix/sysv/linux/x86_64/xstat.c: New file.
9572 * sysdeps/unix/sysv/linux/x86_64/xstat64.c: New file.
9573 * sysdeps/unix/x86_64/sysdep.S: New file.
9574 * sysdeps/unix/x86_64/sysdep.h: New file.
9575 * sysdeps/x86_64/Implies: New file.
9576 * sysdeps/x86_64/Makefile: New file.
9577 * sysdeps/x86_64/Versions: New file.
9578 * sysdeps/x86_64/__longjmp.S: New file.
9579 * sysdeps/x86_64/abort-instr.h: New file.
9580 * sysdeps/x86_64/atomicity.h: New file.
9581 * sysdeps/x86_64/bits/endian.h: New file.
9582 * sysdeps/x86_64/bits/setjmp.h: New file.
9583 * sysdeps/x86_64/bits/string.h: New file.
9584 * sysdeps/x86_64/bp-asm.h: New file.
9585 * sysdeps/x86_64/bsd-_setjmp.S: New file.
9586 * sysdeps/x86_64/bsd-setjmp.S: New file.
9587 * sysdeps/x86_64/dl-machine.h: New file.
9588 * sysdeps/x86_64/elf/initfini.c: New file.
9589 * sysdeps/x86_64/elf/start.S: New file.
9590 * sysdeps/x86_64/ffs.c: New file.
9591 * sysdeps/x86_64/ffsll.c: New file.
9592 * sysdeps/x86_64/fpu/bits/fenv.h: New file.
9593 * sysdeps/x86_64/fpu/bits/mathdef.h: New file.
9594 * sysdeps/x86_64/fpu/e_acosl.c: New file.
9595 * sysdeps/x86_64/fpu/e_atan2l.c: New file.
9596 * sysdeps/x86_64/fpu/e_exp2l.S: New file.
9597 * sysdeps/x86_64/fpu/e_expl.c: New file.
9598 * sysdeps/x86_64/fpu/e_fmodl.S: New file.
9599 * sysdeps/x86_64/fpu/e_log10l.S: New file.
9600 * sysdeps/x86_64/fpu/e_log2l.S: New file.
9601 * sysdeps/x86_64/fpu/e_logl.S: New file.
9602 * sysdeps/x86_64/fpu/e_powl.S: New file.
9603 * sysdeps/x86_64/fpu/e_rem_pio2l.c: New file.
9604 * sysdeps/x86_64/fpu/e_scalbl.S: New file.
9605 * sysdeps/x86_64/fpu/e_sqrtl.c: New file.
9606 * sysdeps/x86_64/fpu/fclrexcpt.c: New file.
9607 * sysdeps/x86_64/fpu/fedisblxcpt.c: New file.
9608 * sysdeps/x86_64/fpu/feenablxcpt.c: New file.
9609 * sysdeps/x86_64/fpu/fegetenv.c: New file.
9610 * sysdeps/x86_64/fpu/fegetexcept.c: New file.
9611 * sysdeps/x86_64/fpu/fegetround.c: New file.
9612 * sysdeps/x86_64/fpu/feholdexcpt.c: New file.
9613 * sysdeps/x86_64/fpu/fesetenv.c: New file.
9614 * sysdeps/x86_64/fpu/fesetround.c: New file.
9615 * sysdeps/x86_64/fpu/fgetexcptflg.c: New file.
9616 * sysdeps/x86_64/fpu/fraiseexcpt.c: New file.
9617 * sysdeps/x86_64/fpu/fsetexcptflg.c: New file.
9618 * sysdeps/x86_64/fpu/ftestexcept.c: New file.
9619 * sysdeps/x86_64/fpu/libm-test-ulps: New file.
9620 * sysdeps/x86_64/fpu/math_ldbl.h: New file.
9621 * sysdeps/x86_64/fpu/printf_fphex.c: New file.
9622 * sysdeps/x86_64/fpu/s_atanl.c: New file.
9623 * sysdeps/x86_64/fpu/s_cosl.S: New file.
9624 * sysdeps/x86_64/fpu/s_expm1l.S: New file.
9625 * sysdeps/x86_64/fpu/s_fpclassifyl.c: New file.
9626 * sysdeps/x86_64/fpu/s_isinfl.c: New file.
9627 * sysdeps/x86_64/fpu/s_isnanl.c: New file.
9628 * sysdeps/x86_64/fpu/s_log1pl.S: New file.
9629 * sysdeps/x86_64/fpu/s_logbl.c: New file.
9630 * sysdeps/x86_64/fpu/s_nextafterl.c: New file.
9631 * sysdeps/x86_64/fpu/s_nexttoward.c: New file.
9632 * sysdeps/x86_64/fpu/s_nexttowardf.c: New file.
9633 * sysdeps/x86_64/fpu/s_rintl.c: New file.
9634 * sysdeps/x86_64/fpu/s_significandl.c: New file.
9635 * sysdeps/x86_64/fpu/s_sincosl.S: New file.
9636 * sysdeps/x86_64/fpu/s_sinl.S: New file.
9637 * sysdeps/x86_64/fpu/s_tanl.S: New file.
9638 * sysdeps/x86_64/gmp-mparam.h: New file.
9639 * sysdeps/x86_64/hp-timing.c: New file.
9640 * sysdeps/x86_64/hp-timing.h: New file.
9641 * sysdeps/x86_64/htonl.S: New file.
9642 * sysdeps/x86_64/memusage.h: New file.
9643 * sysdeps/x86_64/setjmp.S: New file.
9644 * sysdeps/x86_64/soft-fp/sfp-machine.h: New file.
9645 * sysdeps/x86_64/stackinfo.h: New file.
9646 * sysdeps/x86_64/sysdep.h: New file.
9647 * sysdeps/unix/sysv/linux/x86_64/ldd-rewrite.sed: New file.
9649 * sysdeps/ieee754/ldbl-128/s_erfl.c: New file, contributed Stephen
9652 2001-09-18 Ulrich Drepper <drepper@redhat.com>
9654 * malloc/malloc.c (ptmalloc_init): Handle _environ==NULL.
9655 Reported by B. D. Elliott <bde@nwlink.com> [PR libc/2541].
9657 2001-09-18 Andreas Schwab <schwab@suse.de>
9659 * elf/dl-load.c (_dl_map_object_from_fd): Update handling of scope
9660 list, now that l_scope is a pointer.
9662 * elf/dl-open.c (dl_open_worker): Fix thinko when enlarging the
9665 2001-09-18 kaz Kojima <kkojima@rr.iij4u.or.jp>
9667 * sysdeps/sh/dl-machine.h (elf_machine_rela): Fix reverse condition.
9668 (elf_machine_rela_relative): Add a missing declaration.
9670 2001-09-18 Jakub Jelinek <jakub@redhat.com>
9672 * sysdeps/unix/sysv/linux/ia64/ldd-rewrite.sed: New file.
9673 * sysdeps/unix/sysv/linux/s390/ldd-rewrite.sed: New file.
9674 * sysdeps/unix/sysv/linux/configure.in: Add ia64 and s390
9675 ldd-rewrite scripts.
9677 2001-09-18 Ulrich Drepper <drepper@redhat.com>
9679 * elf/ldd.bash.in: Update copyright message.
9681 2001-09-17 H.J. Lu <hjl@gnu.org>
9683 * hurd/hurdmalloc.c (bcopy): Removed.
9684 (realloc): Replace bcopy with memcpy.
9685 * hurd/path-lookup.c (file_name_path_scan): Likewise.
9686 * resolv/gethnamaddr.c (map_v4v6_address): Likewise.
9687 * sunrpc/rpcinfo.c (pmapdump): Likewise.
9689 * resolv/gethnamaddr.c (getanswer): Replace bcopy with memmove.
9690 (gethostbyaddr): Likewise.
9691 * sunrpc/rpcinfo.c (get_inet_address): Likewise.
9693 2001-09-18 Ulrich Drepper <drepper@redhat.com>
9695 * sysdeps/gnu/eval.c: Removed.
9697 2001-09-18 Andreas Jaeger <aj@suse.de>
9699 * sysdeps/i386/fpu/s_logbl.S: Move to ...
9700 * sysdeps/i386/fpu/s_logbl.c: ...here, use inline assembler.
9702 * sysdeps/i386/fpu/s_rintl.S: Move to ...
9703 * sysdeps/i386/fpu/s_rintl.c: ...here, use inline assembler.
9705 * sysdeps/i386/fpu/s_significandl.S: Move to ...
9706 * sysdeps/i386/fpu/s_significandl.c: ...here, use inline assembler.
9708 2001-09-16 Ulrich Drepper <drepper@redhat.com>
9710 * string/strcoll.c [USE_IN_EXTENDED_LOCALE_MODEL]: Correctly get
9713 2001-09-14 H.J. Lu <hjl@gnu.org>
9715 * sysdeps/mips/fpu/libm-test-ulps: Updated.
9717 2001-09-14 Ulrich Drepper <drepper@redhat.com>
9719 * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Fix a typo.
9720 Patch by Florian La Roche <laroche@redhat.com>.
9722 * string/bits/string2.h (__strtok_r_1c): Optimize a bit.
9724 * sysdeps/unix/sysv/linux/net/ethernet.h: Correct references to
9727 2001-09-14 Andreas Schwab <schwab@suse.de>
9729 * posix/execl.c: Fix last argument of memcpy. Reported by Brian
9730 Sumner <bls@sgi.com>.
9731 * posix/execlp.c: Likewise.
9733 2001-09-13 Jakub Jelinek <jakub@redhat.com>
9735 * elf/dl-deps.c (_dl_map_object_deps): Fix filter handling if filter
9736 is already found earlier in the search scope.
9738 2001-09-12 Jakub Jelinek <jakub@redhat.com>
9740 * rt/Makefile (LDFLAGS-rt.so): Use shared thread library as librt's
9743 2001-09-13 Ulrich Drepper <drepper@redhat.com>
9745 * sysdeps/powerpc/fpu/libm-test-ulps: Adjust expected errors for j0.
9747 2001-09-12 Ulrich Drepper <drepper@redhat.com>
9749 * config.h.in: Enforce optimization to be used.
9750 * Makeconfig (preprocess-versions): Define ASSEMBLER.
9751 * stdlib/Makefile (isomac-CFLAGS): Define to -O.
9752 * posix/Makefile (annexc-CFLAGS): Define to -O.
9753 * sysdeps/unix/make-syscalls.sh: Define __OPTIMIZE__ in use of asm_CPP.
9755 2001-09-11 Ulrich Drepper <drepper@redhat.com>
9757 * nscd/nscd_gethst_r.c: Don't expect IPv6 addresses for IPv4 lookup.
9758 Patch by Stephan Kulow.
9760 2001-09-08 Ben Collins <bcollins@debian.org>
9762 * sysdeps/arm/dl-machine.h (elf_machine_rel): Fix thinko in
9763 usage of RESOLVE() (r_type, not reloc->r_type).
9765 2001-09-08 Ulrich Drepper <drepper@redhat.com>
9767 * elf/dl-object.c: Avoid allocating extra memory block for name.
9768 * elf/dl-close.c (_dl_close): Don't free l_libname if it is not
9769 allocated separately.
9770 * elf/dl-load.c (_dl_map_object_from_fd): Likewise.
9772 2001-09-08 H.J. Lu <hjl@gnu.org>
9774 * po/zh_TW.po: Fix a typo.
9776 2001-09-07 Tom Rix <trix@redhat.com>
9778 * sysdeps/unix/sysv/aix/sysv_termio.h: New file.
9780 2001-08-26 Tom Rix <trix@redhat.com>
9782 * sysdeps/unix/sysv/aix/Makefile (aix-syscalls.o): More linker
9783 command line options.
9784 * sysdeps/unix/sysv/aix/start.s: New file, rework of start.c
9785 * sysdeps/unix/sysv/aix/start.c: Removed.
9786 * sysdeps/unix/sysv/aix/start-libc.c: New file.
9787 * sysdeps/unix/sysv/aix/init-first.c: New file.
9788 * sysdeps/unix/sysv/aix/fcntl.c: Alias __libc_fcntl to __fcntl.
9790 2001-09-08 Ben Collins <bcollins@debian.org>
9792 * sysdeps/arm/dl-machine.h: Fix usage of new _dl_signal_error() format.
9793 * sysdeps/generic/dl-machine.h: Likewise.
9794 * sysdeps/hppa/dl-fptr.c: Likewise.
9795 * sysdeps/ia64/dl-fptr.c: Likewise.
9796 * sysdeps/mach/hurd/dl-sysdep.c: Likewise.
9797 * sysdeps/mips/dl-machine.h: Likewise.
9798 * sysdeps/mips/mips64/dl-machine.h: Likewise.
9799 * sysdeps/powerpc/dl-machine.c: Likewise.
9801 2001-09-07 Ben Collins <bcollins@debian.org>
9803 * sysdeps/sparc/sparc32/dl-machine.h: Fix typo.
9805 * sysdeps/hppa/dl-lookupcfg.h: Forward declare struct link_map.
9807 2001-09-08 Ulrich Drepper <drepper@redhat.com>
9809 * elf/dl-lookup.c (add_dependency): Bump l_opencount of all
9810 dependencies if necessary.
9812 * elf/dl-close.c (_dl_close): If object has no r_list (i.e., wasn't
9813 loaded directly) determine length if l_initfini list by iterating
9814 over its elements. Minor optimizations.
9815 * elf/dl-deps.c (_dl_map_object_deps): Always add own map to l_initfini
9816 for dependency objects.
9817 If object was already loaded check whether any of the dependencies
9818 is already on the relocation dependency list. If yes, remove the
9819 latter. Minor optimizations.
9820 * elf/dl-lookup.c (add_dependency): Add check for self reference of
9821 maps here. Search l_initfini list only if the object was loaded
9822 directly and not only as a dependency.
9823 (_dl_lookup_symbol): Add relocation dependency also if object
9824 is not in global scope. Remove test for self-reference here.
9825 (_dl_lookup_versioned_symbol): Likewise.
9826 * elf/dl-object (_dl_new_object): Cleanup. Initialize dont_free
9827 element of first name record.
9828 * elf/loadtest.c: Add some more test to recognize early if an object
9830 * elf/Makefile: Add rules to build and run reldep5.
9831 * elf/reldep5.c: New file.
9832 * elf/reldepmod5.c: New file.
9833 * elf/reldepmod6.c: New file.
9835 * elf/reldep2.c: Fix typo.
9837 2001-09-07 Ulrich Drepper <drepper@redhat.com>
9839 * include/link.h (struct link_map): Add l_scope_mem and l_scope_max
9840 elements. Change l_scope to be a pointer only.
9841 * elf/dl-object.c (_dl_new_object): Initialize l_scope and l_scope_max.
9842 * elf/dl-open.c (dl_open_worker): If dependency wasn't just opened
9843 here add searchlist of newly open file to the dependency's scope.
9844 * elf/dl-close.c (_dl_close): If dependency is used otherwise remove
9845 only searchlist from its scope. Free own scope array if necessary.
9846 * elf/Makefile (tests): Add dblload and dblunload now.
9848 2001-09-06 Andreas Jaeger <aj@suse.de>
9850 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: New file, contributed
9853 2001-09-05 Ulrich Drepper <drepper@redhat.com>
9855 * elf/Makefile: Add rules to build new tests. Don't run them yet since
9857 * elf/dblload.c: New file.
9858 * elf/dblloadmod1.c: New file.
9859 * elf/dblloadmod2.c: New file.
9860 * elf/dblloadmod3.c: New file.
9861 * elf/dblunload.c: New file.
9863 2001-09-04 Richard Henderson <rth@redhat.com>
9865 * elf/elf.h (R_ALPHA_OP_*, R_ALPHA_IMMED_*): Remove.
9866 (R_ALPHA_GPREL16): Rename from R_ALPHA_IMMED_GP_16.
9868 2001-09-04 Ulrich Drepper <drepper@redhat.com>
9870 Correct very misleading message for error in failed runtime relocation.
9871 * elf/dl-error.c (_dl_signal_error): Take extra parameter to describe
9873 (_dl_signal_cerror): Likewise.
9874 * sysdeps/generic/ldsodefs.h: Adjust prototypes.
9875 * elf/dl-close.c: Likewise.
9876 * elf/dl-deps.c: Likewise.
9877 * elf/dl-load.c: Likewise.
9878 * elf/dl-lookup.c: Likewise.
9879 * elf/dl-open.c: Likewise.
9880 * elf/dl-reloc.c: Likewise.
9881 * elf/dl-sym.c: Likewise.
9882 * elf/dl-version.c: Likewise.
9883 * sysdeps/generic/dl-sysdep.c: Likewise.
9885 2001-09-04 Jakub Jelinek <jakub@redhat.com>
9887 * iconv/strtab.c (strtabinit): Initialize null Strent.
9888 (newstring): Move len == 0 handling...
9889 (strtabadd): ...here.
9890 If len == 1, return null Strent.
9891 When inserting a suffix of an existing string, check if
9892 it is not equal to some suffix already recorded.
9893 Copy left and right members over if adding longer string.
9895 2001-09-04 Jakub Jelinek <jakub@redhat.com>
9897 * sunrpc/rpc_cout.c (upcase): Account for trailing '\0'.
9899 * sysdeps/unix/sysv/linux/alpha/gethostname.c: Include <errno.h>.
9900 (__syscall_gethostname): Add prototype.
9902 2001-09-04 Ulrich Drepper <drepper@redhat.com>
9904 * elf/dl-object.c (_dl_new_object): Remove unnecessary if.
9906 2001-09-02 Ulrich Drepper <drepper@redhat.com>
9908 * elf/rtld.c (dl_main): Increment l_opencount for main binary.
9910 2001-08-27 Roland McGrath <roland@frob.com>
9912 * sysdeps/unix/sysv/gethostname.c (__gethostname): When LEN is too
9913 short, copy that much into NAME anyway before returning error.
9915 2001-09-01 Richard Henderson <rth@redhat.com>
9917 * sysdeps/alpha/elf/Dist: Remove file.
9918 * sysdeps/alpha/elf/Makefile: Remove file.
9919 * sysdeps/alpha/elf/crtbegin.S: Remove file.
9920 * sysdeps/alpha/elf/crtend.S: Remove file.
9921 * sysdeps/alpha/elf/initfini.c: New file.
9923 2001-09-01 Mark Kettenis <kettenis@gnu.org>
9925 * iconv/tst-iconv1.c: Include <stddef.h> for wchar_t.
9926 * iconv/tst-iconv3.c: Likewise.
9928 2001-09-01 Jakub Jelinek <jakub@redhat.com>
9930 * sysdeps/generic/inttypes.h (__gwchar_t): Define to wchar_t for C++.
9932 2001-09-01 Ulrich Drepper <drepper@redhat.com>
9934 * iconv/gconv_cache.c: Rename variable cache to __gconv_cache and
9936 * iconv/Versions (libc) [GLIBC_2.2.5]: Export __gconv_cache.
9937 * iconv/iconv_prog.c (insert_cache): New function.
9938 (print_known_names): If cache is used call insert_cache to use the
9939 information from the cache [PR libc/2509].
9941 2001-08-31 Ulrich Drepper <drepper@redhat.com>
9943 * time/strptime.c (strptime_internal): Recognize 'l' format and
9944 handle it like 'I' for symmetry with strftime.
9946 2001-08-31 Richard Henderson <rth@redhat.com>
9948 * elf/dl-support.c (_dl_cpuclock_offset): Protect with NONAVAIL.
9949 (HP_TIMING_AVAIL): Set to HP_SMALL_TIMING_AVAIL if present.
9950 * elf/rtld.c (HP_TIMING_AVAIL): Likewise.
9951 (print_statistics): Make scalar unsigned long long.
9952 * sysdeps/alpha/hp-timing.h: New file.
9954 2001-08-31 Jakub Jelinek <jakub@redhat.com>
9956 * stdio-common/perror.c (perror): Save errno early, pass it
9957 down to perror_internal.
9958 (perror_internal): Add errnum argument.
9960 2001-08-31 Jakub Jelinek <jakub@redhat.com>
9962 * sysdeps/alpha/dl-machine.h (elf_machine_rela): Remove unused code.
9963 Don't add old memory content for R_ALPHA_REFQUAD.
9965 2001-08-30 Ulrich Drepper <drepper@redhat.com>
9967 * crypt/md5-crypt.c (__md5_crypt_r): Compute used and required
9970 * sysdeps/unix/sysv/linux/ia64/ioperm.c (_ioperm): Use __open
9971 instead of open, __close instead of close, __getpagesize instead
9974 * string/argz-stringify.c (__argz_stringify): Use __strnlen
9976 * include/string.h (strndupa): Redefine here to use __strnlen
9978 * string/strndup.c (__strndup): Use __strnlen not strnlen.
9980 * misc/syslog.c (vsyslog): Fix typo in last change (connect ->
9983 2001-08-30 Jakub Jelinek <jakub@redhat.com>
9985 * sysdeps/alpha/dl-machine.h (elf_machine_rela): Don't handle
9986 R_ALPHA_RELATIVE if RTLD_BOOTSTRAP and HAVE_Z_COMBRELOC. Only check
9987 for rtld map if neither RTLD_BOOTSTRAP nor HAVE_Z_COMBRELOC is defined.
9988 * sysdeps/i386/dl-machine.h (elf_machine_rel): Similarly.
9989 * sysdeps/ia64/dl-machine.h (elf_machine_rel): Similarly.
9990 * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rel): Similarly.
9991 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rel): Similarly.
9993 2001-08-30 Ulrich Drepper <drepper@redhat.com>
9995 * sysdeps/alpha/fpu/libm-test-ulps: Adjust j0 ULPs.
9997 2001-08-30 Andreas Jaeger <aj@suse.de>
9999 * sysdeps/ieee754/ldbl-128/e_jnl.c: New file,
10000 contributed Stephen L Moshier.
10002 2001-08-30 Jakub Jelinek <jakub@redhat.com>
10004 * sunrpc/etc.rpc (sgi_fam): Add.
10006 2001-08-30 Ulrich Drepper <drepper@redhat.com>
10008 * sysdeps/unix/sysv/linux/alpha/gethostname.c: New file.
10010 2001-08-29 Ulrich Drepper <drepper@redhat.com>
10012 * nis/nis_findserv.c (__nis_findfastest): Don't fail if reply received
10013 first is from a previous call.
10014 Patch by Alexander Belopolsky <alexb@rentec.com> for [PR libc/3670].
10016 2001-08-29 Andreas Schwab <schwab@suse.de>
10018 * sysdeps/ia64/fpu/libm-test-ulps: Updated.
10020 2001-08-25 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
10022 * config.make.in (INSTALL_SCRIPT): Define.
10023 * Makeconfig (INSTALL_SCRIPT): Define.
10024 * Makerules (do-install-script): New macro to install scripts using
10026 (install-bin-script): New rule to install scripts with
10028 (install-bin-script-nosubdir): New rule.
10029 (install-no-libc.a-nosubdir): Add install-bin-script-nosubdir.
10030 (distinfo-vars): Add $(install-bin-script).
10031 * Rules (others): Likewise.
10032 * Makefile (glibcbug): Install with install-bin-script.
10033 * debug/Makefile (xtrace): Likewise.
10034 (catchsegv): Likewise.
10035 * elf/Makefile (ldd): Likewise.
10036 * malloc/Makefile (mtrace): Likewise.
10037 * timezone/Makefile (tzselect): Likewise.
10039 2001-08-29 H.J. Lu <hjl@gnu.org>
10041 * sysdeps/mips/dl-machine.h (__dl_runtime_resolve): Pass
10042 ELF_RTYPE_CLASS_PLT, instead of R_MIPS_REL32, to
10043 _dl_lookup_versioned_symbol () and _dl_lookup_symbol ().
10045 2001-08-29 Andreas Schwab <schwab@suse.de>
10047 * sysdeps/m68k/fpu/libm-test-ulps: Updated.
10049 2001-08-28 H.J. Lu <hjl@gnu.org>
10051 * Makeconfig (combreloc-LDFLAGS): New variable.
10052 Add it to LDFLAGS.so, LDFLAGS-rtld, and +link.
10053 * config.make.in (have-z-combreloc): New variable.
10054 * configure.in: Substitute libc_cv_z_combreloc.
10056 2001-08-29 Ulrich Drepper <drepper@redhat.com>
10058 * po/sv.po: Update from translation team.
10059 * po/fr.po: Likewise.
10060 * po/da.po: Likewise.
10062 2001-08-28 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
10064 * Makerules: Fix a typo: MD% -> MD5.
10066 2001-08-28 Ulrich Drepper <drepper@redhat.com>
10068 * sunrpc/rpc_hout.c (pargdef): Function must take pointer to object.
10069 Patch by Patrick Duval <Patrick.Duval@devinci.fr>.
10071 2001-08-28 Andreas Jaeger <aj@suse.de>
10073 * manual/libc-texinfo.sh: Add entry about free manuals.
10075 * manual/contrib.texi (Contributors): Fix cross reference.
10077 * manual/libc.texinfo (Copying): Include freemanuals.
10079 * manual/Makefile (appendices): Add freemanuals.
10081 * manual/freemanuals.texi: New file.
10082 Patch by Brian Youmans <3diff@gnu.org>.
10084 * manual/libm-err-tab.pl: Pretty print more platforms, print a
10087 * manual/math.texi (Errors in Math Functions): Fix grammar, start
10088 table on separate page.
10089 Patch by Brian Youmans <3diff@gnu.org>.
10091 2001-08-27 Ulrich Drepper <drepper@redhat.com>
10093 * misc/syslog.c (vsyslog): Try a bit harder to use syslogd. If
10094 the connection went down after we first used it try to connect
10095 again and resend the message before printing to the console.
10096 Reported by Coserea Gh. Tudor <tudore@tudore.gecadsoftware.com>.
10098 2001-08-27 Jakub Jelinek <jakub@redhat.com>
10100 * string/tst-strlen.c (main): Test strnlen (, -1) too.
10101 * sysdeps/generic/strnlen.c (__strnlen): Fix for maxlens with top
10104 2001-08-27 Ulrich Drepper <drepper@redhat.com>
10106 * iconv/strtab.c (searchstring): Use correct length for comparison.
10107 (strtabadd): Account total size correct if new string has old string as
10110 2001-08-27 Jakub Jelinek <jakub@redhat.com>
10112 * elf/rtld.c (dl_main): Update call to _dl_lookup_symbol.
10114 2001-08-27 Andreas Jaeger <aj@suse.de>
10116 * sysdeps/i386/fpu/libm-test-ulps (float): Add ulps for new tests.
10118 * math/libm-test.inc (j0_test): Add extra tests.
10119 * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_j0l): Use |x|,
10120 not x, in Hankel approximation.
10121 Patches by Stephen L Moshier.
10123 2001-08-26 Ulrich Drepper <drepper@redhat.com>
10125 * sysdeps/ia64/dl-lookupcfg.h: Add forward declaration for struct
10128 * configure.in: Fix test for .rela.dyn section.
10130 * elf/dl-runtime.c: Update calls to _dl_lookup_*.
10132 2001-08-26 Jakub Jelinek <jakub@redhat.com>
10134 * elf/dl-reloc.c (RESOLVE_MAP, RESOLVE): Use elf_machine_type_class
10135 instead of elf_machine_lookup_noexec_p and elf_machine_lookup_noplt_p.
10136 Pass type_class to _dl_lookup_*.
10137 * elf/dl-lookup.c (_dl_lookup_symbol): Take type_class parameter now.
10138 Pass around just type_class instead of noexec, noplt pair.
10139 (_dl_lookup_versioned_symbol): Likewise.
10140 (_dl_lookup_symbol_skip): Pass around just type_class instead of
10141 noexec, noplt pair.
10142 (_dl_lookup_versioned_symbol_skip): Likewise.
10143 (_dl_do_lookup, _dl_do_lookup_versioned): Likewise.
10144 * elf/do-lookup.h (do_lookup): Likewise.
10145 * include/link.h (struct link_map): Replace noexec and noplt fields
10146 in l_lookup_cache with type_class field.
10147 * sysdeps/generic/ldsodefs.h (ELF_RTYPE_CLASS_PLT,
10148 ELF_RTYPE_CLASS_COPY): Define.
10149 Adjust prototypes for _dl_lookup_symbol and
10150 _dl_lookup_versioned_symbol.
10151 * sysdeps/alpha/dl-machine.h (elf_machine_lookup_noplt_p,
10152 elf_machine_lookup_noexec_p): Remove.
10153 (elf_machine_type_class): Define.
10154 * sysdeps/arm/dl-machine.h: Likewise.
10155 * sysdeps/hppa/dl-machine.h: Likewise.
10156 * sysdeps/cris/dl-machine.h: Likewise.
10157 * sysdeps/i386/dl-machine.h: Likewise.
10158 * sysdeps/ia64/dl-machine.h: Likewise.
10159 * sysdeps/m68k/dl-machine.h: Likewise.
10160 * sysdeps/mips/mips64/dl-machine.h: Likewise.
10161 * sysdeps/mips/dl-machine.h: Likewise.
10162 * sysdeps/powerpc/dl-machine.h: Likewise.
10163 * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
10164 * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
10165 * sysdeps/sh/dl-machine.h: Likewise.
10166 * sysdeps/s390/s390-32/dl-machine.h: Likewise.
10167 * sysdeps/s390/s390-64/dl-machine.h: Likewise.
10169 2001-08-26 Ulrich Drepper <drepper@redhat.com>
10171 * manual/message.texi (Advanced gettext functions): Change
10172 description of plural forms for Slovak.
10173 Reported by Marcel Telka <marcel@telka.sk>.
10175 * manuaL/time.texi (Low-Level Time String Parsing): Fix description of
10176 %z. Reported by C. Scott Ananian <cananian@lesser-magoo.lcs.mit.edu>.
10178 2001-08-26 Jakub Jelinek <jakub@redhat.com>
10180 * sysdeps/s390/s390-32/dl-machine.h (elf_machine_lazy_rel): Fix a
10181 typo. Patch by Florian La Roche <laroche@redhat.com>.
10183 2001-08-26 Ulrich Drepper <drepper@redhat.com>
10185 * include/link.h (struct link_map): Add l_lookup_cache element.
10186 * elf/dl-reloc.c (RESOLVE): Add symbol caching here.
10187 (RESOLVE_MAP): Likewise.
10188 (_dl_relocate_object): Remove cache initialization.
10189 * elf/dl-lookup.c: Rip out cache handling code.
10190 * sysdeps/generic/ldsodefs.h: Remove lookup_cache struct and variable
10193 * elf/dl-lookup.c (_dl_lookup_symbol): Reorder some conditions and
10194 remove some __builtin_expect.
10195 (_dl_lookup_versioned_symbol): Likewise.
10197 * config.h.in: Add HAVE_Z_COMBRELOC.
10198 * configure.in: Add test for -z combreloc.
10200 * sysdeps/i386/dl-machine.h (elf_machine_rel): Minor cleanups and
10201 optimizations. Use HAVE_Z_COMBRELOC to avoid generaton of
10202 R_386_RELATIVE handling for ld.so startup. Reduce RTLD_BOOTSTRAP
10203 case to almost no code.
10205 2001-08-25 Ulrich Drepper <drepper@redhat.com>
10207 * po/tr.po: Update from translation team.
10209 2001-08-24 Andreas Jaeger <aj@suse.de>
10211 * iconv/Makefile (extra-objs): Add iconvconfig-modules so that
10214 2001-08-24 Ulrich Drepper <drepper@redhat.com>
10216 * elf/rtld.c (print_statistics): Printf % after percent values.
10217 * elf/dl-misc.c (_dl_debug_vdprintf): Implement %%.
10219 * elf/dl-lookup.c (_dl_lookup_symbol): If we use the cache we
10220 don't have to compute the hash value and initialize current_value.
10221 Move reference_name variable to where it is needed.
10222 (_dl_lookup_versioned_symbol): Likewise.
10224 2001-08-24 Roland McGrath <roland@frob.com>
10226 * string/tester.c (test_strerror): Don't use _sys_errlist/_sys_nerr.
10227 Just test that strerror returns non-null for a few errno codes.
10229 2001-08-23 Roland McGrath <roland@frob.com>
10231 * hurd/Versions (libc: GLIBC_2.2.5): New set; add _hurd_raise_signal,
10232 _hurdsig_interrupt_timeout, _hurdsig_fault_preemptor.
10234 * sysdeps/posix/shm_unlink.c (shm_unlink): __unlink -> unlink.
10236 * mach/Versions (libc: GLIBC_2.2.5): New set; add __mach_msg_destroy,
10239 2001-08-24 Ulrich Drepper <drepper@redhat.com>
10241 * nss/test-netdb.c (test_hosts): Don't segfault if gethostname
10244 * elf/do-rel.h (elf_dynamic_do_rel): Fix problem with ld.so
10245 startup. Explicitly remove lazy part for RTLD_BOOTSTRAP since gcc
10247 * elf/rtld.c: Include <sys/param.h>.
10248 * elf/dl-reloc.c: Likewise.
10250 2001-08-24 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
10252 * sysdeps/unix/sysv/linux/mips/configure.in: Define AC_SUBST to
10253 empty to prevent junk from being generated.
10254 * sysdeps/unix/sysv/linux/mips/configure: Regenerated.
10256 2001-08-24 Jakub Jelinek <jakub@redhat.com>
10258 * elf/do-rel.h (elf_dynamic_do_rel): If l_addr is 0, skip relative
10259 records. Rename endrel to relative, initialize it to r, and use it
10260 in elf_machine_rel_relative calls. Point r after relative relocs.
10262 2001-08-24 Ulrich Drepper <drepper@redhat.com>
10264 * sysdeps/i386/dl-machine.h (elf_machine_rel): Correct prediction
10267 2001-08-24 Jakub Jelinek <jakub@redhat.com>
10269 * elf/do-rel.h (elf_machine_rel_relative): Define for rela if
10270 necessary. Undefine newly defined macros at the end.
10271 * sysdeps/hppa/dl-machine.h (elf_machine_rela_relative):
10272 Rename from elf_machine_rel_relative.
10273 * sysdeps/cris/dl-machine.h (elf_machine_rela_relative): Likewise.
10274 * sysdeps/m68k/dl-machine.h (elf_machine_rela_relative): Likewise.
10275 * sysdeps/powerpc/dl-machine.h (elf_machine_rela_relative): Likewise.
10276 * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela_relative):
10278 * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela_relative):
10280 * sysdeps/ia64/dl-machine.h (elf_machine_rela_relative): Likewise.
10281 Fix argument types.
10282 * sysdeps/alpha/dl-machine.h (elf_machine_rela_relative): Likewise.
10283 Fix argument types.
10284 * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela_relative):
10285 Likewise. Fix argument types.
10286 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela_relative):
10287 Likewise. Fix argument types.
10288 * sysdeps/sh/dl-machine.h (elf_machine_rela_relative): Likewise.
10289 Fix argument types.
10290 * sysdeps/mips/dl-machine.h (elf_machine_rel_relative): Use
10291 ElfW(Rel) in argument.
10292 * sysdeps/mips/mips64/dl-machine.h (elf_machine_rel_relative): New
10295 2001-08-24 Alexandre Oliva <aoliva@redhat.com>
10297 * sysdeps/sh/dl-machine.h (elf_machine_rela): Fix typo.
10299 2001-08-24 Andreas Jaeger <aj@suse.de>
10301 * sysdeps/ieee754/ldbl-128/e_j1l.c: New file, contributed by
10302 Stephen L Moshier <moshier@mediaone.net>.
10304 2001-08-24 Ulrich Drepper <drepper@redhat.com>
10306 * elf/do-rel.h (elf_dynamic_do_rel): RELATIVE relocations comes
10307 first if RELCOUNT is set.
10309 * elf/do-rel.h (elf_dynamic_do_rel): If not relocating lazily, don't
10310 call elf_machine_rel for the last DT_RELCOUNT relocations but instead
10311 elf_machine_rel_relative.
10312 * sysdeps/alpha/dl-machine.h: Define elf_machine_rel_relative.
10313 Minor optimizations.
10314 * sysdeps/arm/dl-machine.h: Likewise.
10315 * sysdeps/cris/dl-machine.h: Likewise.
10316 * sysdeps/hppa/dl-machine.h: Likewise.
10317 * sysdeps/i386/dl-machine.h: Likewise.
10318 * sysdeps/ia64/dl-machine.h: Likewise.
10319 * sysdeps/m68k/dl-machine.h: Likewise.
10320 * sysdeps/mips/dl-machine.h: Likewise.
10321 * sysdeps/powerpc/dl-machine.h: Likewise.
10322 * sysdeps/s390/s390-32/dl-machine.h: Likewise.
10323 * sysdeps/s390/s390-64/dl-machine.h: Likewise.
10324 * sysdeps/sh/dl-machine.h: Likewise.
10325 * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
10326 * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
10328 2001-08-23 Roland McGrath <roland@frob.com>
10330 * rt/tst-aio4.c [! SIGRTMIN] (SIGRTMIN, SIGRTMAX): Define as -1.
10332 * sysdeps/mach/hurd/bits/libc-lock.h: New file, initially copied from
10333 sysdeps/mach version. Implement counting ("recursive") mutexes
10334 on top of cthreads mutexes.
10335 * sysdeps/mach/hurd/bits/stdio-lock.h: File removed; generic now works.
10337 * sysdeps/generic/bits/stdio-lock.h (_IO_lock_initializer): Define to
10338 _LIBC_LOCK_RECURSIVE_INITIALIZER if defined, else do an #error.
10339 (__libc_cleanup_region_start, __libc_cleanup_region_end,
10340 __libc_clean_end): Define these to call the cleanup function after
10341 normal exit when they're supposed to.
10343 * sysdeps/mach/bits/libc-lock.h (__libc_cleanup_region_start):
10344 Take new first arg DOIT, a boolean saying whether to really install
10345 any cleanup handler.
10346 (__libc_cleanup_region_end): Do nothing if start's DOIT arg was zero.
10347 (__libc_cleanup_end): Likewise.
10348 * sysdeps/generic/bits/libc-lock.h: Same changes.
10349 * stdio-common/vfscanf.c (LOCK_STREAM): Pass new arg.
10350 * stdio-common/vfprintf.c (buffered_vfprintf, vfprintf): Likewise.
10351 * sysdeps/mach/hurd/bits/stdio-lock.h (_IO_cleanup_region_start):
10353 * misc/syslog.c (vsyslog, openlog, closelog): Likewise.
10354 * sysdeps/generic/bits/stdio-lock.h
10355 (_IO_cleanup_region_start, _IO_cleanup_region_start_noarg): Likewise.
10357 2001-08-23 Jakub Jelinek <jakub@redhat.com>
10359 * elf/ldconfig.c (search_dir): Remove stale symlinks.
10361 2001-08-23 Jakub Jelinek <jakub@redhat.com>
10363 * elf/dl-lookup.c (lookup_cache, lookup_cache_versioned): New.
10364 (_dl_lookup_symbol): Lookup relocations in cache and store successfull
10366 (_dl_lookup_versioned_symbol): Likewise.
10367 * elf/dl-reloc.c (_dl_relocate_object): Initialize cache for
10369 * elf/rtld.c (print_statistics): Output _dl_num_cache_relocations.
10370 * sysdeps/generic/ldsodefs.h (struct lookup_cache): New definition.
10371 (lookup_cache, lookup_cache_versioned): Add declarations.
10373 2001-08-23 Ulrich Drepper <drepper@redhat.com>
10375 * stdlib/tst-random.c (main): Swap parameters in fail call.
10376 Patch by Pete Bevin <pete@petebevin.com>.
10378 2001-08-23 Jakub Jelinek <jakub@redhat.com>
10380 * sysdeps/generic/inttypes.h: Use __gwchar_t instead of __wchar_t.
10382 2001-08-23 Ulrich Drepper <drepper@redhat.com>
10384 * malloc/obstack.c: Indent preprocessor directives.
10385 Patch by Jim Meyering <meyering@ascend.com>.
10387 * po/ja.po: Update from translation team.
10389 2001-08-23 Roland McGrath <roland@frob.com>
10391 * libio/tst-ungetwc1.c (main): Add a const to quiet a warning.
10393 * nss/test-netdb.c (test_hosts): Don't use MAXHOSTNAMELEN.
10394 Instead, use dynamic buffer to test gethostname's ENAMETOOLONG error.
10396 2001-08-22 Roland McGrath <roland@frob.com>
10398 * sysdeps/generic/ldsodefs.h (_dl_load_lock): Declare it here with
10399 __libc_lock_define_recursive.
10400 * elf/dl-open.c: Don't declare it here any more.
10401 * elf/dl-close.c: Likewise.
10402 * elf/dl-lookup.c: Likewise.
10403 * elf/dl-iteratephdr.c: Likewise.
10404 * elf/dl-lookup.c (add_dependency): Use __libc_lock_lock_recursive and
10405 __libc_lock_unlock_recursive.
10406 * elf/dl-close.c (_dl_close): Likewise
10407 * elf/dl-iteratephdr.c (__dl_iterate_phdr): Likewise
10408 * elf/dl-open.c (_dl_open): Likewise
10410 * sysdeps/generic/bits/libc-lock.h
10411 (__libc_lock_define_recursive): New macro.
10412 * sysdeps/generic/bits/stdio-lock.h (_IO_lock_t): Use it.
10413 (_IO_lock_lock): Use __libc_lock_lock_recursive.
10414 (_IO_lock_unlock): Use __libc_lock_unlock_recursive.
10416 * conform/conformtest.pl (checknamespace): Sort the output list.
10418 * sysdeps/generic/bits/poll.h (POLLWRBAND): New alias for POLLOUT.
10419 (POLLRDNORM, POLLRDBAND, POLLWRNORM, POLLWRBAND): Make these
10420 definitions conditional on [__USE_XOPEN].
10422 * sysdeps/mach/hurd/bits/fcntl.h (O_ASYNC, O_FSYNC, O_SYNC): Define
10423 these unconditionally, not only use [__USE_BSD], so as to match
10424 the sysdeps/unix/sysv/linux files.
10426 2001-08-22 Ulrich Drepper <drepper@redhat.com>
10428 * test-skeleton.c (add_temp_file): Add __attribute__ ((unused)) to
10431 * dlfcn/tst-dladdr.c (do_test): Get address of ref1 using
10434 2001-08-22 Roland McGrath <roland@frob.com>
10436 * sysdeps/generic/bits/sigaction.h (struct sigaction): Fix up
10437 conditionalization of sa_handler/sa_sigaction member types to
10438 match the sysdeps/unix/sysv/linux file.
10440 2001-08-22 Ulrich Drepper <drepper@redhat.com>
10442 * elf/dl-addr.c (_dl_addr): Handle broken binaries with zero
10443 symbol sizes a bit better.
10445 * sysdeps/ia64/strncpy.S: Complete rewrite.
10446 Contributed by Jakub Jelinek <jakub@redhat.com>.
10448 * string/stratcliff.c (main): Add strncpy test.
10450 2001-08-22 Roland McGrath <roland@frob.com>
10452 * sysdeps/generic/dl-environ.c: Include <stdlib.h> and <unistd.h>,
10453 and don't declare unsetenv or _environ directly.
10454 (unsetenv): Return int, not void. Use __environ instead of _environ.
10456 2001-08-01 Mark Kettenis <kettenis@gnu.org>
10458 * sysdeps/unix/bsd/bsd4.4/Makefile: New file.
10459 * sysdeps/unix/bsd/bsd4.4/Versions: New file.
10460 * sysdeps/unix/bsd/bsd4.4/cmsg_nxthdr.c: New file.
10461 * sysdeps/unix/bsd/bsd4.4/bits/socket.h (__cmsg_nxthdr): Correct
10462 test for cmsg struct size.
10464 2001-04-23 Paul Eggert <eggert@twinsun.com>
10466 * posix/getopt.h (getopt_long, getopt_long_only, _getopt_internal):
10467 Rename __argc to ___argc in prototypes to avoid compatibility
10468 problems with systems that reserve the identifier "__argc".
10469 Similarly for __argv.
10471 2001-08-21 Roland McGrath <roland@frob.com>
10473 * stdio-common/tst-fseek.c: Include <time.h> for `time' declaration.
10475 * mach/Makefile (tests): Removed.
10476 * mach/hello.c: File removed.
10478 2001-08-22 Ulrich Drepper <drepper@redhat.com>
10480 * po/sv.po: Update from translation team.
10482 * stdio-common/vfscanf.c: Fix handling of %l[].
10483 Reported by Mitsuru Chinen <mchinen@yamato.ibm.com>.
10485 * libio/Makefile (tests): Add tst-sscanf.
10486 * libio/tst-sscanf.c: New file.
10488 * elf/dl-addr.c (_dl_addr): Fix tests to determine dli_sname.
10489 * malloc/mtrace.c (tr_where): dli_sname always points to a
10490 non-empty string if != NULL.
10491 Reported by Tim Janik <timj@gtk.org>.
10493 2001-08-22 Jakub Jelinek <jakub@redhat.com>
10495 * sunrpc/xdr_rec.c (xdrrec_create): Fix buf sizes before allocating
10496 buf. Free resources on failure.
10497 * sunrpc/svc_unix.c (svcunix_create): Free resources on failure.
10498 (makefd_xprt): Likewise.
10499 * sunrpc/svc_udp.c (svcudp_bufcreate): Likewise.
10500 * sunrpc/svc_tcp.c (svctcp_create, makefd_xprt): Likewise.
10501 * sunrpc/auth_unix.c (authunix_create): Likewise.
10503 2001-08-21 Jakub Jelinek <jakub@redhat.com>
10505 * string/strnlen.c: Remove.
10506 * sysdeps/generic/strnlen.c: New file.
10507 * sysdeps/i386/i486/bits/string.h (strnlen): Remove.
10509 2001-08-21 Roland McGrath <roland@frob.com>
10511 * sysdeps/mach/i386/machine-sp.h (__thread_stack_pointer): Define this
10512 as a macro, not an extern inline function.
10514 * hurd/Versions (GLIBC_2.2.5): New set, define __hurd_fail here.
10515 * Versions.def (libc): Add GLIBC_2.2.5 set.
10516 * hurd/hurd.h (_HURD_H_EXTERN_INLINE): New macro.
10517 (__hurd_fail): Use that instead of _EXTERN_INLINE in decl.
10519 2001-08-20 Roland McGrath <roland@frob.com>
10521 * hurd/hurdlookup.c (__hurd_file_name_lookup): Fail with ENOENT for "".
10522 (__hurd_file_name_split, __hurd_directory_name_split): Likewise.
10524 2001-08-21 Ulrich Drepper <drepper@redhat.com>
10526 * string/bits/string2.h: Remove strnlen optimization here.
10527 * sysdeps/i386/i486/bits/string.h: Add it here.
10529 2001-08-21 Wolfram Gloger <wg@malloc.de>
10531 * malloc/malloc.c: Make access to ..._hook pointers thread-safe.
10533 2001-08-21 Ulrich Drepper <drepper@redhat.com>
10535 * po/gl.po: Update from translation team.
10537 2001-08-20 Ulrich Drepper <drepper@redhat.com>
10539 * misc/error.c (error_tail): Use fputws_unlocked instead of fputws.
10540 * misc/err.c (convert_and_print): Likewise.
10542 * malloc/obstack.c (print_and_abort): Use fprintf instead of two
10545 2001-08-20 Martin Schwidefsky <schwidefsky@de.ibm.com>
10547 * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Revert the
10548 change of the gregset_t type.
10549 * sysdeps/unix/sysv/linux/s390/s390-64/sys/ucontext.h: Likewise.
10551 2001-08-20 kaz Kojima <kkojima@rr.iij4u.or.jp>
10553 * sysdeps/unix/sysv/linux/sh/sysdep.S: Align errno.
10555 2001-08-20 Ulrich Drepper <drepper@redhat.com>
10557 * posix/regex.c (truncate_wchar): Use wcrtomb not wctomb.
10559 * string/strnlen.c: Fix the implementation. We cannot use memchr.
10561 2001-08-18 Mark Kettenis <kettenis@gnu.org>
10563 * sysdeps/mach/hurd/i386/init-first.c (init): Initialize __environ
10564 before calling the cthreads initialization code.
10566 2001-08-20 Ulrich Drepper <drepper@redhat.com>
10568 * argp/argp-help.c: Fix two problems introduced in last change.
10570 * include/dirent.h: Include <dirstream.h> first.
10572 2001-08-19 Ulrich Drepper <drepper@redhat.com>
10574 * io/fts.c (fts_safe_changedir): Use __fxstat64 instead of __fstat.
10576 * sunrpc/svcauth_des.c (_svcauth_des): Avoid using bcopy.
10577 * sunrpc/xdr_rec.c: Likewise.
10578 * sunrpc/xdr_mem.c: Likewise.
10579 * sunrpc/svc_authux.c (_svcauth_unix): Likewise.
10580 * sunrpc/rpc_cmsg.c: Likewise.
10581 * sunrpc/getrpcport.c (getrpcport): Likewise.
10582 * sunrpc/clnt_simp.c (callrpc): Likewise.
10583 * sunrpc/clnt_gen.c (clnt_create): Likewise.
10584 * string/envz.c: Likewise.
10586 * po/ko.po: Update from translation team.
10588 * argp/argp-help.c: Handle wide oriented stderr stream.
10590 2001-08-18 Ulrich Drepper <drepper@redhat.com>
10592 * sysdeps/generic/strtol.c: Little optimizations. Add some
10595 * conform/conformtest.pl: <inttypes.h> test requires <stddef.h>.
10597 * wcsmbs/wchar.h (wcwdith): Change parameter type to wchar_t.
10598 * wcsmbs/wcwidth.c (wcwdith): Likewise.
10599 * wcsmbs/wcwidth.h (internal_wcwdith): Likewise.
10601 * conform/data/unistd.h-data: Remove _SC_MULTIPLE_PROCESS.
10603 * conform/data/ucontext.h-data: Fix typos in ucontext_t element tests.
10605 * time/time.h (struct timespec): Use __time_t for tv_sec element.
10607 * sysdeps/generic/inttypes.h: Define __wchar_t. Use it instead of
10608 wchar_t for function declarations and defintions.
10610 * misc/sys/select.h: Define __need_time_t before including <time.h>.
10611 Define suseconds_t if it hasn't happened yet.
10613 * iconv/gconv.h: Define __need_wchar_t before including <stddef.h>.
10615 * conform/data/sys/uio.h-data: Allow UIO_MAXIOV to be defined.
10617 * sysdeps/generic/stdint.h: Don't get definition of wchar_t from
10620 * conform/data/stddef.h-data: Remove wint_t.
10622 * conform/conformtest.pl: Change namespace test to take #undef
10623 lines into account.
10625 * conform/data/netinet/in.h-data: Fix typo in allow-header line.
10627 * conform/data/sys/socket.h-data: Add sockatmark.
10629 2001-08-17 Ulrich Drepper <drepper@redhat.com>
10631 * io/fts.c: Update from recent BSD source.
10633 2001-08-17 Roland McGrath <roland@frob.com>
10635 * stdio-common/perror.c (perror) [! USE_IN_LIBIO]: Don't use _IO_fwide.
10636 * misc/error.c (error_tail, error, error_at_line) [! USE_IN_LIBIO]:
10639 2001-08-17 Ulrich Drepper <drepper@redhat.com>
10641 * locale/duplocale.c (__duplocale): Also initialize the special
10642 __ctype_* elements.
10644 * conform/data/netdb.h-data: Adjust gai_strerror return type.
10646 2001-08-17 Andreas Jaeger <aj@suse.de>
10648 * misc/getpass.c: Include wchar.h for prototypes.
10649 * malloc/obstack.c: Likewise.
10651 2001-08-17 Ulrich Drepper <drepper@redhat.com>
10653 * sunrpc/svc_simple.c (universal): Use __write instead of write.
10655 * wcsmbs/wcscoll.c: Also define __wcscoll.
10656 * include/wchar.h: Declare __wcscoll.
10658 * libio/fwprintf.c: Use __vfwprintf instead of vfwprintf.
10659 * libio/vwprintf.c: Likewise.
10660 * libio/wprintf.c: Likewise.
10662 * iconv/gconv_cache.c: Use __munmap instead of munmap.
10664 2001-08-16 Ulrich Drepper <drepper@redhat.com>
10666 * posix/regex.c [_LIBC] (convert_mbs_to_wcs): Use __mbrtowc
10667 instead of mbrtowc.
10668 [_LIBC]: Use __iswctype instead of iswctype, __wcslen instead of
10669 wcslen, and __wcscoll instead of wcscoll.
10671 * sysdeps/unix/sockatmark.c (sockatmark): Use __ioctl instead of ioctl.
10673 * sysdeps/unix/sysv/linux/gai_sigqueue.c (__gai_sigqueue): Use
10674 __getuid instead of getuid.
10676 * stdio-common/perror.c (perror): Use __close instead of close.
10677 * iconv/gconv_cache.c (__gconv_load_cache): Likewise.
10678 * libio/freopen.c (freopen): Likewise.
10679 * libio/freopen64.c (freopen64): Likewise.
10681 * libio/tst-ungetwc2.c (main): Define str const.
10683 * include/wchar.h: Add prototypes for __fwprintf and __vfwprintf.
10684 * libio/fwprintf.c: Also define __fwprintf.
10685 * stdio-common/vfprintf.c [COMPILE_WPRINTF]: Also define __vfwprintf.
10686 * argp/argp-fmtstream.c: Handle wide oriented stderr stream.
10687 * assert/assert-perr.c: Likewise.
10688 * assert/assert.c: Likewise.
10689 * gmon/gmon.c: Likewise.
10690 * inet/rcmd.c: Likewise.
10691 * malloc/obstack.c: Likewise.
10692 * misc/err.c: Likewise.
10693 * misc/error.c: Likewise.
10694 * misc/getpass.c: Likewise.
10695 * posix/getopt.c: Likewise.
10696 * resolv/res_hconf.c: Likewise.
10697 * stdio-common/perror.c: Likewise.
10698 * stdio-common/psignal.c: Likewise.
10699 * stdlib/fmtmsg.c: Likewise.
10700 * sunrpc/auth_unix.c: Likewise.
10701 * sunrpc/clnt_perr.c: Likewise.
10702 * sunrpc/clnt_tcp.c: Likewise.
10703 * sunrpc/clnt_udp.c: Likewise.
10704 * sunrpc/clnt_unix.c: Likewise.
10705 * sunrpc/svc_simple.c: Likewise.
10706 * sunrpc/svc_tcp.c: Likewise.
10707 * sunrpc/svc_udp.c: Likewise.
10708 * sunrpc/svc_unix.c: Likewise.
10709 * sunrpc/xdr.c: Likewise.
10710 * sunrpc/xdr_array.c: Likewise.
10711 * sunrpc/xdr_rec.c: Likewise.
10712 * sunrpc/xdr_ref.c: Likewise.
10713 * sysdeps/generic/wordexp.c: Likewise.
10715 * po/it.po: Update from translation team.
10717 * misc/err.c: Handle wide oriented stderr stream.
10719 2001-08-14 Tom Rix <trix@redhat.com>
10721 * iconv/gconv_cache.c (find_module): Add #ifndef STATIC_GCONV.
10722 * iconv/Makefile: Fix gconv_cache.c CFLAGS.
10724 2001-08-13 Tom Rix <trix@redhat.com>
10726 * sysdeps/unix/sysv/aix/Makefile: Add rule to import kernel symbols.
10727 * sysdeps/unix/sysv/aix/bits/types.h: Fix type of __id_t, __useconds_t
10730 2001-08-15 Martin Schwidefsky <schwidefsky@de.ibm.com>
10732 * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S (__getcontext):
10733 Store the access registers to the ucontext structure.
10734 * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S (__getcontext):
10737 * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S (__setcontext):
10738 Load the access registers from the ucontext structure.
10739 * sysdeps/unix/sysv/linux/s390/s390-64/setcontext.S (__setcontext):
10742 * sysdeps/unix/sysv/linux/s390/s390-32/ucontext_i.h: Adjust the SC_xxx
10743 offsets to the new ucontext layout.
10744 * sysdeps/unix/sysv/linux/s390/s390-64/ucontext_i.h: Likewise.
10746 * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Fix the layout
10747 of the ucontext structure.
10748 * sysdeps/unix/sysv/linux/s390/s390-64/sys/ucontext.h: Likewise.
10750 2001-08-15 Ulrich Drepper <drepper@redhat.com>
10752 * misc/error.c (error): Handle wide oriented stderr stream correctly.
10753 (error_at_line): Likewise.
10755 * stdio-common/perror.c (perror): Implement according to standard.
10756 The stream orientation must not be changed if the stream was not
10757 oriented before the call.
10758 * stdio-common/Makefile (tests): Add tst-perror.
10759 * stdio-common/tst-perror.c: New file.
10762 See ChangeLog.12 for earlier changes.