1 2005-01-22 Richard Henderson <rth@redhat.com>
3 * sysdeps/alpha/dl-trampoline.S: New file.
4 * sysdeps/alpha/dl-machine.h: Move PLT trampolines there.
5 Use RESOLVE_MAP instead of RESOLVE to protect relocation code.
6 (elf_machine_runtime_setup): Test for dl_profile non-null.
7 (ARCH_LA_PLTENTER, ARCH_LA_PLTEXIT): New.
8 * sysdeps/alpha/bits/link.h: New file.
9 * sysdeps/generic/ldsodefs.h (La_alpha_regs, La_alpha_retval): New.
10 (struct audit_ifaces): Add alpha entries.
11 * elf/tst-auditmod1.c: Add alpha entries.
13 2005-01-22 Ulrich Drepper <drepper@redhat.com>
15 * sysdeps/ia64/dl-machine.h: Remove PLT trampolines here.
16 * sysdeps/ia64/dl-trampoline.S: New file.
18 * sysdeps/x86_64/bits/link.h: Use namespace-safe identifiers in
19 La_x86_64_xmm definition.
21 * posix/Makefile: Use CFLAGS-*.os instead of CFLAGS-*.c for frame
23 * stdlib/Makefile (CFLAGS-system.os): Use this instead of
24 CFLAGS-system.c for frame pointer option.
26 2005-01-21 Roland McGrath <roland@redhat.com>
28 * elf/dl-runtime.c (_dl_profile_fixup): Remove const from REGS.
29 * sysdeps/i386/dl-machine.h: Update decl.
31 2005-01-21 Jakub Jelinek <jakub@redhat.com>
33 * elf/Makefile: Add rules to build and run tst-align2.
34 * elf/tst-align2.c: New test.
35 * elf/tst-alignmod2.c: New file.
36 * sysdeps/powerpc/tst-stack-align.h: New file.
37 * sysdeps/i386/dl-machine.h (RTLD_START): Align stack and clear frame
38 pointer before calling _dl_init.
39 * sysdeps/x86_64/dl-machine.h (RTLD_START): Likewise.
41 2005-01-20 Ulrich Drepper <drepper@redhat.com>
43 * posix/execl.c: Do not allocate potentially large buffers on the
45 * posix/execle.c: Likewise.
46 * posix/execlp.c: Likewise.
47 * posix/execlp.c: Likewise.
48 (script_execute): Removed.
49 (allocate_scripts_argv): New function. Called at most once to
50 allocate memory, not every time a script is run. Adjust caller.
52 * sysdeps/generic/wordexp.c (exec_comm): Add a few
53 TEMP_FAILURE_RETRY. Reorganize code to avoid multiple calls to
55 (exec_comm_child): Can now be inlined.
57 * posix/Makefile: Add -fomit-frame-pointer for a few more files.
58 * stdlib/Makefile: Likewise.
60 2005-01-19 Roland McGrath <roland@redhat.com>
63 * sunrpc/openchild.c (_openchild): Use NULL instead of 0 for trailing
65 Reported by Marcus Meissner <meissner@suse.de>.
67 2005-01-19 Jakub Jelinek <jakub@redhat.com>
69 * hurd/sigunwind.c (_hurdsig_longjmp_from_handler): Fix a typo
71 * iconv/strtab.c (strtabfinalize): Likewise.
73 * libio/iofopncook.c (_IO_cookie_seekoff): Add prototype.
75 2005-01-17 Roland McGrath <roland@redhat.com>
77 * nscd/Makefile (LDLIBS-nscd): New variable.
78 ($(objpfx)nscd): Use that instead of selinux-LIBS.
80 * Makeconfig (link-extra-libs): Define just as $(LDLIBS-$(@F)).
81 (link-extra-libs-static): Define to $(link-extra-libs).
82 (link-extra-libs-bounded): Likewise.
84 2005-01-17 Ulrich Drepper <drepper@redhat.com>
86 * include/link.h: Remove stray definition of pltenter.
88 2005-01-16 GOTO Masanori <gotom@debian.or.jp>
90 * sysdeps/unix/rewinddir.c: Reset filepos.
91 * dirent/tst-seekdir.c: Check telldir value after calling rewinddir.
93 2005-01-15 Ulrich Drepper <drepper@redhat.com>
95 * elf/tst-auditmod1.c: Reduce duplication.
97 2005-01-16 Andreas Schwab <schwab@suse.de>
99 * sysdeps/m68k/dl-machine.h: Remove trampoline code. Define
100 ARCH_LA_PLTENTER and ARCH_LA_PLTEXIT.
101 (elf_machine_runtime_setup): If profile != 0 does not anymore mean
102 GLRO(dl_profile) != NULL.
103 * sysdeps/m68k/dl-trampoline.S: New file.
104 * sysdeps/m68k/bits/link.h: New file.
105 * sysdeps/generic/ldsodefs.h (struct audit_ifaces): Add m68k
107 * elf/tst-auditmod1.c: Add m68k support.
109 2005-01-14 Ulrich Drepper <drepper@redhat.com>
111 * posix/regcomp.c [!_LIBC] (init_dfa): Fix determining of relevant
112 LC_* variable. Patch by Aharon Robbins <arnold@skeeve.com>.
114 * stdlib/fmtmsg.c (internal_addseverity): Remove incorrect free call.
115 * stdlib/tst-fmtmsg.c (main): Add another addseverity test.
117 2005-01-12 Ulrich Drepper <drepper@redhat.com>
119 * elf/dl-load.c (_dl_map_object_from_fd): We don't have to allow
120 callers from libc anymore.
122 * elf/dl-open.c (dl_open_worker): Pass __RTLD_AUDIT flag from caller
123 to _dl_map_object_deps.
124 * elf/dl-load.c (_dl_map_object_from_fd): Don't change memory
125 protections when loading auditing modules.
127 * dlfcn/dlopen.c (dlopen_doit): Catch invalid mode arguments and fail.
129 * posix/getconf.c: Update copyright year.
130 * nss/getent.c: Likewise.
131 * nscd/nscd_nischeck.c: Likewise.
132 * iconv/iconvconfig.c: Likewise.
133 * iconv/iconv_prog.c: Likewise.
134 * elf/ldconfig.c: Likewise.
135 * catgets/gencat.c: Likewise.
136 * csu/version.c: Likewise.
137 * elf/ldd.bash.in: Likewise.
138 * elf/sprof.c (print_version): Likewise.
139 * locale/programs/locale.c: Likewise.
140 * locale/programs/localedef.c: Likewise.
141 * nscd/nscd.c (print_version): Likewise.
142 * debug/xtrace.sh: Likewise.
143 * malloc/memusage.sh: Likewise.
144 * malloc/mtrace.pl: Likewise.
145 * debug/catchsegv.sh: Likewise.
147 2005-01-11 Thorsten Kukuk <kukuk@suse.de>
149 * sunrpc/svc_tcp.c (svctcp_create): Call listen with SOMAXCONN
151 * sunrpc/svc_unix.c (svcunix_create): Likewise.
153 * grp/putgrent.c (putgrent): Don't write 0 as group
154 ID if groupname starts with + or -.
155 * pwd/putpwent.c (putpwent): Don't write 0 as user or
156 group ID if user name starts with + or -.
158 2005-01-09 Kaz Kojima <kkojima@rr.iij4u.or.jp>
160 * sysdeps/generic/ldsodefs.h (struct audit_ifaces): Add sh variants.
161 * sysdeps/elf/tst-auditmod1.c: Add sh support.
162 * sysdeps/sh/bits/link.h: New.
163 * sysdeps/sh/dl-machine.h: Remove trampoline code here. Define
164 ARCH_LA_PLTENTER and ARCH_LA_PLTEXIT. Remove obsolete comments.
165 (RTLD_START): Define __fpscr_values.
166 * sysdeps/sh/dl-trampoline.S: New file.
167 * sysdeps/sh/sh4/dl-trampoline.S: New file.
168 * sysdeps/sh/sh4/Versions [ld]: Add __fpscr_values.
169 * sysdeps/sh/sh4/dl-machine.h: Remove.
171 2005-01-10 Jakub Jelinek <jakub@redhat.com>
173 * time/tst-strptime.c (day_tests): Add 2 new tests.
174 (test_tm, main): Issue an error instead of segfaulting if
175 strptime returns NULL.
177 2005-01-10 H.J. Lu <hongjiu.lu@intel.com>
179 * sysdeps/alpha/libc-tls.c (__tls_get_addr): Updated for dtv_t union.
180 * sysdeps/ia64/libc-tls.c (__tls_get_addr): Likewise.
182 2005-01-11 Ulrich Drepper <drepper@redhat.com>
184 * malloc/malloc.h: Remove no-glibc support.
186 2005-01-12 GOTO Masanori <gotom@debian.or.jp>
189 * malloc/malloc.h: Always include features.h.
191 2005-01-10 Roland McGrath <roland@redhat.com>
193 * sysdeps/ia64/fpu/e_logl.c: File removed.
195 * dlfcn/dlfcn.c (init): Fix typo in attribute decl.
197 2005-01-10 Ulrich Drepper <drepper@redhat.com>
199 * sysdeps/generic/dl-tls.c (_dl_next_tls_modid): Fix assertion and
200 recognition of last entry.
202 2005-01-09 Ulrich Drepper <drepper@redhat.com>
204 * elf/dl-runtime.c: Include <sys/param.h>.
206 * elf/Makefile (headers): Add bits/link.h.
208 2005-01-09 Andreas Schwab <schwab@suse.de>
210 * elf/rtld.c (dl_main): Create main_map with __RTLD_OPENEXEC.
212 2005-01-09 Andreas Jaeger <aj@suse.de>
214 * time/strptime_l.c (__strptime_internal): Add braces to avoid
217 * sysdeps/x86_64/bits/link.h: Use vector_size for GCC 4.0.
219 * elf/rtld.c (dl_main): Call _dl_add_to_slotinfo only if USE_TLS.
221 2005-01-08 Jakub Jelinek <jakub@redhat.com>
223 * elf/Makefile (generated): Add tst-pie1{,.out,.o}.
225 2005-01-09 Ulrich Drepper <drepper@redhat.com>
227 * elf/dl-fini.c (_dl_fini): Call destructors of audit DSOs after
228 those of all the regular objects.
230 * elf/dl-debug.c (_dl_debug_initialize): Take extra parameter and
231 use it to select the r_debug structure for that namespace.
232 * elf/dl-close.c (_dl_close): Adjust call to _dl_debug_initialize.
233 * elf/dl-load.c (_dl_map_object_from_fd): Likewise.
234 * elf/dl-open.c (_dl_open): Likewise.
235 * elf/rtld.c (dl_main): Likewise.
236 * sysdeps/generic/ldsodefs.h (struct link_namespaces): Add _ns_debug
238 (_dl_debug_initialize): Add new parameter in declaration.
240 * elf/dl-close.c (_dl_close): Make sure auditing callbacks are not
241 called for the auditing objects themselves.
242 * elf/dl-load.c (_dl_map_object_from_fd): Likewise.
244 2005-01-07 Ulrich Drepper <drepper@redhat.com>
246 * sysdeps/powerpc/powerpc64/dl-machine.h
247 (elf_machine_runtime_setup): If profile != 0 does not anymore mean
248 GLRO(dl_profile) != NULL.
249 * sysdeps/powerpc/powerpc64/bits/link.h (struct la_ppc64_regs): Add
251 * sysdeps/powerpc/powerpc64/dl-trampoline.S: (_dl_profile_resolve):
252 Extend _dl_prof_resolve to add pass extra parameters to
253 _dl_profile_fixup and set up structure with register content.
255 * sysdeps/powerpc/powerpc32/dl-machine.c (__elf_machine_runtime_setup):
256 If profile != 0 does not anymore mean GLRO(dl_profile) != NULL.
257 * sysdeps/powerpc/powerpc32/dl-trampoline.S (_dl_prof_resolve):
258 Extend _dl_prof_resolve to add pass extra parameters to
259 _dl_profile_fixup and set up structure with register content.
260 * sysdeps/powerpc/powerpc32/bits/link.h: Fix types of some fields in
261 the register and result structures.
262 * sysdeps/powerpc/powerpc64/bits/link.h: Fix types of some fields
263 in the 32-bit register and result structures.
265 * sysdeps/powerpc/powerpc64/dl-trampoline.S: Use register names.
267 * sysdeps/powerpc/powerpc32/dl-trampoline.S: New file.
268 * sysdeps/powerpc/powerpc32/dl-machine.h: Remove trampoline code here.
269 Define ARCH_LA_PLTENTER and ARCH_LA_PLTEXIT.
270 * sysdeps/generic/ldsodefs.h (struct audit_ifaces): Add ppc32 variants.
271 * elf/tst-auditmod1.c: Add ppc32 support.
272 * sysdeps/powerpc/powerpc32/bits/link.h: New file.
273 * sysdeps/powerpc/powerpc64/bits/link.h: Add ppc32 definitions.
275 * malloc/malloc.c (malloc_printerr): Print program name as part of
278 * misc/sys/cdefs.h (__attribute_warn_unused_result__): Define.
279 * stdlib/stdlib.h: Make realloc with
280 __attribute_warn_unused_result__ instead of __wur.
281 * malloc/malloc.h: Add __wur and __attribute_warn_unused_result__
282 markers as in <stdlib.h>.
284 * libio/stdio.h: Remove __wur from rename and remove.
285 * posix/unistd.h: Remove __wur from dup2.
287 2005-01-03 Andreas Jaeger <aj@suse.de>
289 * elf/Makefile (tests): Revert patch from 2005-01-03.
291 2005-01-07 Ulrich Drepper <drepper@redhat.com>
293 * sysdeps/unix/sysv/linux/init-first.c (__libc_init_first): Don't
294 make __libc_init_first hidden.
296 * elf/rtld.c [!DONT_USE_BOOTSTRAP_MAP] (_dl_start_final): Initialize
297 l_relocated of rtld map.
298 * sysdeps/powerpc/powerpc64/dl-trampoline.S: New file.
299 * sysdeps/powerpc/powerpc64/dl-machine.h: Remove trampoline code here.
300 Define ARCH_LA_PLTENTER and ARCH_LA_PLTEXIT.
301 * sysdeps/generic/ldsodefs.h (struct audit_ifaces): Add ppc64 variants.
302 * elf/tst-auditmod1.c: Add ppc64 support.
303 * sysdeps/powerpc/powerpc64/bits/link.h: New file.
305 2005-01-06 Roland McGrath <roland@redhat.com>
308 * sysdeps/unix/sysv/linux/futimes.c (__futimes): Catch errno values
309 indicating file-name lookup errors, and return ENOSYS or EBADF instead.
311 2005-01-06 Ulrich Drepper <drepper@redhat.com>
313 * csu/elf-init.c (__libc_csu_fini): Don't do anything here.
314 * sysdeps/generic/libc-start.c: Don't register program destructor here.
316 * dlfcn/Makefile: Add rules to build dlfcn.c.
317 (LDFLAGS-dl.so): Removed.
318 * dlfcn/dlclose.c: _dl_close is now in ld.so, use function pointer
320 * dlfcn/dlmopen.c: Likewise for _dl_open.
321 * dlfcn/dlopen.c: Likewise.
322 * dlfcn/dlopenold.c: Likewise.
323 * elf/dl-libc.c: Likewise for _dl_open and _dl_close.
324 * elf/Makefile (routines): Remove dl-open and dl-close.
325 (dl-routines): Add dl-open, dl-close, and dl-trampoline.
326 Add rules to build and run tst-audit1.
327 * elf/tst-audit1.c: New file.
328 * elf/tst-auditmod1.c: New file.
329 * elf/Versions [libc]: Remove _dl_open and _dl_close.
330 * elf/dl-close.c: Change for use inside ld.so instead of libc.so.
331 * elf/dl-open.c: Likewise.
332 * elf/dl-debug.c (_dl_debug_initialize): Allow reinitialization,
333 signaled by nonzero parameter.
334 * elf/dl-init.c: Fix use of r_state.
335 * elf/dl-load.c: Likewise.
337 * elf/dl-close.c: Add auditing checkpoints.
338 * elf/dl-open.c: Likewise.
339 * elf/dl-fini.c: Likewise.
340 * elf/dl-load.c: Likewise.
341 * elf/dl-sym.c: Likewise.
342 * sysdeps/generic/libc-start.c: Likewise.
343 * elf/dl-object.c: Allocate memory for auditing information.
344 * elf/dl-reloc.c: Remove RESOLV. We now always need the map.
345 Correctly initialize slotinfo.
346 * elf/dynamic-link.h: Adjust after removal of RESOLV.
347 * sysdeps/hppa/dl-lookupcfg.h: Likewise.
348 * sysdeps/ia64/dl-lookupcfg.h: Likewise.
349 * sysdeps/powerpc/powerpc64/dl-lookupcfg.h: Removed.
350 * elf/dl-runtime.c (_dl_fixup): Little cleanup.
351 (_dl_profile_fixup): New parameters to point to register struct and
352 variable for frame size.
353 Add auditing checkpoints.
354 (_dl_call_pltexit): New function.
355 Don't define trampoline code here.
356 * elf/rtld.c: Recognize LD_AUDIT. Load modules on startup.
357 Remove all the functions from _rtld_global_ro which only _dl_open
358 and _dl_close needed.
359 Add auditing checkpoints.
360 * elf/link.h: Define symbols for auditing interfaces.
361 * include/link.h: Likewise.
362 * include/dlfcn.h: Define __RTLD_AUDIT.
363 Remove prototypes for _dl_open and _dl_close.
364 Adjust access to argc and argv in libdl.
365 * dlfcn/dlfcn.c: New file.
366 * sysdeps/generic/dl-lookupcfg.h: Remove all content now that RESOLVE
368 * sysdeps/generic/ldsodefs.h: Add definitions for auditing interfaces.
369 * sysdeps/generic/unsecvars.h: Add LD_AUDIT.
370 * sysdeps/i386/dl-machine.h: Remove trampoline code here.
371 Adjust for removal of RESOLVE.
372 * sysdeps/x86_64/dl-machine.h: Likewise.
373 * sysdeps/generic/dl-trampoline.c: New file.
374 * sysdeps/i386/dl-trampoline.c: New file.
375 * sysdeps/x86_64/dl-trampoline.c: New file.
377 * sysdeps/generic/dl-tls.c: Cleanups. Fixup for dtv_t change.
379 * sysdeps/generic/libc-tls.c: Likewise.
381 * sysdeps/arm/bits/link.h: Renamed to ...
382 * sysdeps/arm/buts/linkmap.h: ...this.
383 * sysdeps/generic/bits/link.h: Renamed to...
384 * sysdeps/generic/bits/linkmap.h: ...this.
385 * sysdeps/hppa/bits/link.h: Renamed to...
386 * sysdeps/hppa/bits/linkmap.h: ...this.
387 * sysdeps/hppa/i386/link.h: Renamed to...
388 * sysdeps/hppa/i386/linkmap.h: ...this.
389 * sysdeps/hppa/ia64/link.h: Renamed to...
390 * sysdeps/hppa/ia64/linkmap.h: ...this.
391 * sysdeps/hppa/s390/link.h: Renamed to...
392 * sysdeps/hppa/s390/linkmap.h: ...this.
393 * sysdeps/hppa/sh/link.h: Renamed to...
394 * sysdeps/hppa/sh/linkmap.h: ...this.
395 * sysdeps/hppa/x86_64/link.h: Renamed to...
396 * sysdeps/hppa/x86_64/linkmap.h: ...this.
398 * posix/unistd.h: Declare ftruncate for POSIX 2003. [BZ #640]
400 2004-12-22 Steven Munroe <sjmunroe@us.ibm.com>
402 * math/libm-test.inc (rint_test_tonearest): New test.
403 (rint_test_towardzero): New test.
404 (rint_test_downward): New test.
405 (rint_test_upward): New test.
406 * sysdeps/powerpc/powerpc32/fpu/s_ceil.S: Fix -0.0 case.
407 Remove redundant const values.
408 * sysdeps/powerpc/powerpc32/fpu/s_ceilf.S: Fix -0.0 case.
409 Remove redundant const values. Use float const.
410 * sysdeps/powerpc/powerpc32/fpu/s_floor.S: Fix -0.0 case.
411 * sysdeps/powerpc/powerpc32/fpu/s_floorf.S: Fix -0.0 case.
413 * sysdeps/powerpc/powerpc32/fpu/s_rint.S: Fix -0.0 case.
414 * sysdeps/powerpc/powerpc32/fpu/s_rintf.S: Fix -0.0 case.
416 * sysdeps/powerpc/powerpc32/fpu/s_round.S: Fix -0.0 case.
417 Remove redundant const values.
418 * sysdeps/powerpc/powerpc32/fpu/s_roundf.S: Fix -0.0 case.
419 Remove redundant const values. Use float const.
420 * sysdeps/powerpc/powerpc32/fpu/s_trunc.S: Fix -0.0 case.
421 Remove redundant const values.
422 * sysdeps/powerpc/powerpc32/fpu/s_truncf.S: Fix -0.0 case.
423 Remove redundant const values. Use float const.
424 * sysdeps/powerpc/powerpc64/fpu/s_ceil.S: Use EALIGN for Quadword
425 alignment. Fix -0.0 case. Remove redundant const values.
426 * sysdeps/powerpc/powerpc64/fpu/s_ceilf.S: Use EALIGN for Quadword
427 alignment. Fix -0.0 case. Remove redundant const values.
429 * sysdeps/powerpc/powerpc64/fpu/s_floor.S: Use EALIGN for Quadword
430 alignment. Fix -0.0 case.
431 * sysdeps/powerpc/powerpc64/fpu/s_floorf.S: Use EALIGN for Quadword
432 alignment. Fix -0.0 case. Use float const.
433 * sysdeps/powerpc/powerpc64/fpu/s_rint.S: Use EALIGN for Quadword
434 alignment. Fix -0.0 case.
435 * sysdeps/powerpc/powerpc64/fpu/s_rintf.S: Use EALIGN for Quadword
436 alignment. Fix -0.0 case. Use float const.
437 * sysdeps/powerpc/powerpc64/fpu/s_round.S: Use EALIGN for Quadword
438 alignment. Fix -0.0 case. Remove redundant const values.
439 * sysdeps/powerpc/powerpc64/fpu/s_roundf.S: Use EALIGN for Quadword
440 alignment. Fix -0.0 case. Remove redundant const values.
442 * sysdeps/powerpc/powerpc64/fpu/s_trunc.S: Use EALIGN for Quadword
443 alignment. Fix -0.0 case.
444 * sysdeps/powerpc/powerpc64/fpu/s_truncf.S: Use EALIGN for Quadword
445 alignment. Fix -0.0 case. Remove redundant const values.
448 2005-01-06 Ulrich Drepper <drepper@redhat.com>
450 * misc/sys/cdefs.h: Define __wur.
451 * libio/stdio.h: Use __wur for a number of interfaces.
452 * posix/unistd.h: Likewise.
453 * stdlib/stdlib.h: Likewise.
455 2004-12-29 Jakub Jelinek <jakub@redhat.com>
457 * sysdeps/ia64/fpu/libm_support.h (__libm_error_support): Use
458 libc_hidden_proto instead of HIDDEN_PROTO.
459 * sysdeps/ia64/fpu/libm-symbols.h (HIDDEN_PROTO): Remove.
460 (__libm_error_support): If ASSEMBLER and in libc, define to
461 HIDDEN_JUMPTARGET(__libm_error_support).
463 2004-12-28 David Mosberger <davidm@hpl.hp.com>
465 * sysdeps/ia64/fpu/Makefile (duplicated-routines): New macro.
466 (sysdep_routines): Replace libm_ldexp{,f,l} and libm_scalbn{,f,l}
467 with $(duplicated-routines).
468 (libm-sysdep_routines): Likewise, but substitute "s_" prefix for
471 2004-12-27 David Mosberger <davidm@hpl.hp.com>
473 * sysdeps/ia64/fpu/libm-symbols.h: Add include of <sysdep.h> and
474 undefine "ret" macro. Add __libm_error_support hidden definitions.
476 * sysdeps/ia64/fpu/e_lgamma_r.c: Remove CVS-id comment. Add
477 missing portion of copyright statement.
478 * sysdeps/ia64/fpu/e_lgammaf_r.c: Likewise.
479 * sysdeps/ia64/fpu/e_lgammal_r.c: Likewise.
481 * sysdeps/ia64/fpu/w_lgamma.c: Remove CVS-id comment. Add
482 missing portion of copyright statement.
483 (__ieee754_lgamma): Rename from lgamma(). Make lgamma() a weak alias.
484 (__ieee754_gamma): Likewise.
485 * sysdeps/ia64/fpu/w_lgammaf.c: Likewise.
486 * sysdeps/ia64/fpu/w_lgammal.c: Likewise.
488 2004-12-09 H. J. Lu <hjl@lucon.org>
490 * sysdeps/ia64/fpu/s_nextafterl.c: Remove.
491 * sysdeps/ia64/fpu/s_nexttoward.c: Likewise.
492 * sysdeps/ia64/fpu/s_nexttowardf.c: Likewise.
493 * sysdeps/ia64/fpu/e_atan2l.S: Remove (duplicate of e_atan2l.c).
494 * sysdeps/ia64/fpu/e_expl.S: Likewise.
495 * sysdeps/ia64/fpu/e_logl.c: Remove (conflicts with e_logl.S).
497 2004-11-18 David Mosberger <davidm@hpl.hp.com>
499 * sysdeps/ia64/fpu/README: New file.
500 * sysdeps/ia64/fpu/gen_import_file_list: New file.
501 * sysdeps/ia64/fpu/import_check: Likewise.
502 * sysdeps/ia64/fpu/import_diffs: Likewise.
503 * sysdeps/ia64/fpu/import_file.awk: Likewise.
504 * sysdeps/ia64/fpu/import_intel_libm: Likewise.
505 * sysdeps/ia64/fpu/libm-symbols.h: Likewise.
507 * sysdeps/ia64/fpu/e_acos.S: Update from Intel libm v2.1+.
508 * sysdeps/ia64/fpu/e_acosf.S: Likewise.
509 * sysdeps/ia64/fpu/e_acosl.S: Likewise.
510 * sysdeps/ia64/fpu/e_asin.S: Likewise.
511 * sysdeps/ia64/fpu/e_asinf.S: Likewise.
512 * sysdeps/ia64/fpu/e_asinl.S: Likewise.
513 * sysdeps/ia64/fpu/e_atan2.S: Likewise.
514 * sysdeps/ia64/fpu/e_atan2f.S: Likewise.
515 * sysdeps/ia64/fpu/e_cosh.S: Likewise.
516 * sysdeps/ia64/fpu/e_coshf.S: Likewise.
517 * sysdeps/ia64/fpu/e_coshl.S: Likewise.
518 * sysdeps/ia64/fpu/e_exp.S: Likewise.
519 * sysdeps/ia64/fpu/e_expf.S: Likewise.
520 * sysdeps/ia64/fpu/e_fmod.S: Likewise.
521 * sysdeps/ia64/fpu/e_fmodf.S: Likewise.
522 * sysdeps/ia64/fpu/e_fmodl.S: Likewise.
523 * sysdeps/ia64/fpu/e_hypot.S: Likewise.
524 * sysdeps/ia64/fpu/e_hypotf.S: Likewise.
525 * sysdeps/ia64/fpu/e_hypotl.S: Likewise.
526 * sysdeps/ia64/fpu/e_log.S: Likewise.
527 * sysdeps/ia64/fpu/e_log2.S: Likewise.
528 * sysdeps/ia64/fpu/e_log2f.S: Likewise.
529 * sysdeps/ia64/fpu/e_log2l.S: Likewise.
530 * sysdeps/ia64/fpu/e_logf.S: Likewise.
531 * sysdeps/ia64/fpu/e_pow.S: Likewise.
532 * sysdeps/ia64/fpu/e_powf.S: Likewise.
533 * sysdeps/ia64/fpu/e_powl.S: Likewise.
534 * sysdeps/ia64/fpu/e_remainder.S: Likewise.
535 * sysdeps/ia64/fpu/e_remainderf.S: Likewise.
536 * sysdeps/ia64/fpu/e_remainderl.S: Likewise.
537 * sysdeps/ia64/fpu/e_scalb.S: Likewise.
538 * sysdeps/ia64/fpu/e_scalbf.S: Likewise.
539 * sysdeps/ia64/fpu/e_scalbl.S: Likewise.
540 * sysdeps/ia64/fpu/e_sinh.S: Likewise.
541 * sysdeps/ia64/fpu/e_sinhf.S: Likewise.
542 * sysdeps/ia64/fpu/e_sinhl.S: Likewise.
543 * sysdeps/ia64/fpu/e_sqrt.S: Likewise.
544 * sysdeps/ia64/fpu/e_sqrtf.S: Likewise.
545 * sysdeps/ia64/fpu/e_sqrtl.S: Likewise.
546 * sysdeps/ia64/fpu/libm_error.c: Likewise.
547 * sysdeps/ia64/fpu/libm_reduce.c: Likewise.
548 * sysdeps/ia64/fpu/libm_support.h: Likewise.
549 * sysdeps/ia64/fpu/s_atan.S: Likewise.
550 * sysdeps/ia64/fpu/s_atanf.S: Likewise.
551 * sysdeps/ia64/fpu/s_atanl.S: Likewise.
552 * sysdeps/ia64/fpu/s_cbrt.S: Likewise.
553 * sysdeps/ia64/fpu/s_cbrtf.S: Likewise.
554 * sysdeps/ia64/fpu/s_cbrtl.S: Likewise.
555 * sysdeps/ia64/fpu/s_ceil.S: Likewise.
556 * sysdeps/ia64/fpu/s_ceilf.S: Likewise.
557 * sysdeps/ia64/fpu/s_ceill.S: Likewise.
558 * sysdeps/ia64/fpu/s_cos.S: Likewise.
559 * sysdeps/ia64/fpu/s_cosf.S: Likewise.
560 * sysdeps/ia64/fpu/s_cosl.S: Likewise.
561 * sysdeps/ia64/fpu/s_expm1.S: Likewise.
562 * sysdeps/ia64/fpu/s_expm1f.S: Likewise.
563 * sysdeps/ia64/fpu/s_expm1l.S: Likewise.
564 * sysdeps/ia64/fpu/s_fabs.S: Likewise.
565 * sysdeps/ia64/fpu/s_fabsf.S: Likewise.
566 * sysdeps/ia64/fpu/s_fabsl.S: Likewise.
567 * sysdeps/ia64/fpu/s_floor.S: Likewise.
568 * sysdeps/ia64/fpu/s_floorf.S: Likewise.
569 * sysdeps/ia64/fpu/s_floorl.S: Likewise.
570 * sysdeps/ia64/fpu/s_frexp.c: Likewise.
571 * sysdeps/ia64/fpu/s_frexpf.c: Likewise.
572 * sysdeps/ia64/fpu/s_frexpl.c: Likewise.
573 * sysdeps/ia64/fpu/s_ilogb.S: Likewise.
574 * sysdeps/ia64/fpu/s_ilogbf.S: Likewise.
575 * sysdeps/ia64/fpu/s_ilogbl.S: Likewise.
576 * sysdeps/ia64/fpu/s_log1p.S: Likewise.
577 * sysdeps/ia64/fpu/s_log1pf.S: Likewise.
578 * sysdeps/ia64/fpu/s_log1pl.S: Likewise.
579 * sysdeps/ia64/fpu/s_logb.S: Likewise.
580 * sysdeps/ia64/fpu/s_logbf.S: Likewise.
581 * sysdeps/ia64/fpu/s_logbl.S: Likewise.
582 * sysdeps/ia64/fpu/s_modf.S: Likewise.
583 * sysdeps/ia64/fpu/s_modff.S: Likewise.
584 * sysdeps/ia64/fpu/s_modfl.S: Likewise.
585 * sysdeps/ia64/fpu/s_nearbyint.S: Likewise.
586 * sysdeps/ia64/fpu/s_nearbyintf.S: Likewise.
587 * sysdeps/ia64/fpu/s_nearbyintl.S: Likewise.
588 * sysdeps/ia64/fpu/s_rint.S: Likewise.
589 * sysdeps/ia64/fpu/s_rintf.S: Likewise.
590 * sysdeps/ia64/fpu/s_rintl.S: Likewise.
591 * sysdeps/ia64/fpu/s_round.S: Likewise.
592 * sysdeps/ia64/fpu/s_roundf.S: Likewise.
593 * sysdeps/ia64/fpu/s_roundl.S: Likewise.
594 * sysdeps/ia64/fpu/s_significand.S: Likewise.
595 * sysdeps/ia64/fpu/s_significandf.S: Likewise.
596 * sysdeps/ia64/fpu/s_significandl.S: Likewise.
597 * sysdeps/ia64/fpu/s_tan.S: Likewise.
598 * sysdeps/ia64/fpu/s_tanf.S: Likewise.
599 * sysdeps/ia64/fpu/s_tanl.S: Likewise.
600 * sysdeps/ia64/fpu/s_trunc.S: Likewise.
601 * sysdeps/ia64/fpu/s_truncf.S: Likewise.
602 * sysdeps/ia64/fpu/s_truncl.S: Likewise.
604 * sysdeps/ia64/fpu/e_acosh.S: New file from Intel libm v2.1+.
605 * sysdeps/ia64/fpu/e_acoshf.S: Likewise.
606 * sysdeps/ia64/fpu/e_acoshl.S: Likewise.
607 * sysdeps/ia64/fpu/e_atanh.S: Likewise.
608 * sysdeps/ia64/fpu/e_atanhf.S: Likewise.
609 * sysdeps/ia64/fpu/e_atanhl.S: Likewise.
610 * sysdeps/ia64/fpu/e_exp10.S: Likewise.
611 * sysdeps/ia64/fpu/e_exp10f.S: Likewise.
612 * sysdeps/ia64/fpu/e_exp10l.S: Likewise.
613 * sysdeps/ia64/fpu/e_exp2.S: Likewise.
614 * sysdeps/ia64/fpu/e_exp2f.S: Likewise.
615 * sysdeps/ia64/fpu/e_exp2l.S: Likewise.
616 * sysdeps/ia64/fpu/e_lgamma_r.S: Likewise.
617 * sysdeps/ia64/fpu/e_lgammaf_r.S: Likewise.
618 * sysdeps/ia64/fpu/e_lgammal_r.S: Likewise.
619 * sysdeps/ia64/fpu/e_logl.S: Likewise.
620 * sysdeps/ia64/fpu/libm_frexp.S: Likewise.
621 * sysdeps/ia64/fpu/libm_frexpf.S: Likewise.
622 * sysdeps/ia64/fpu/libm_frexpl.S: Likewise.
623 * sysdeps/ia64/fpu/s_libm_ldexp.S: Likewise.
624 * sysdeps/ia64/fpu/s_libm_ldexpf.S: Likewise.
625 * sysdeps/ia64/fpu/s_libm_ldexpl.S: Likewise.
626 * sysdeps/ia64/fpu/s_libm_scalbn.S: Likewise.
627 * sysdeps/ia64/fpu/s_libm_scalbnf.S: Likewise.
628 * sysdeps/ia64/fpu/s_libm_scalbnl.S: Likewise.
629 * sysdeps/ia64/fpu/libm_lgamma.S: Likewise.
630 * sysdeps/ia64/fpu/libm_lgammaf.S: Likewise.
631 * sysdeps/ia64/fpu/libm_lgammal.S: Likewise.
632 * sysdeps/ia64/fpu/libm_sincos.S: Likewise.
633 * sysdeps/ia64/fpu/libm_sincos_large.S: Likewise.
634 * sysdeps/ia64/fpu/libm_sincosf.S: Likewise.
635 * sysdeps/ia64/fpu/libm_sincosl.S: Likewise.
636 * sysdeps/ia64/fpu/libm_scalblnf.S: Likewise.
637 * sysdeps/ia64/fpu/s_asinh.S: Likewise.
638 * sysdeps/ia64/fpu/s_asinhf.S: Likewise.
639 * sysdeps/ia64/fpu/s_asinhl.S: Likewise.
640 * sysdeps/ia64/fpu/s_erf.S: Likewise.
641 * sysdeps/ia64/fpu/s_erfc.S: Likewise.
642 * sysdeps/ia64/fpu/s_erfcf.S: Likewise.
643 * sysdeps/ia64/fpu/s_erfcl.S: Likewise.
644 * sysdeps/ia64/fpu/s_erff.S: Likewise.
645 * sysdeps/ia64/fpu/s_erfl.S: Likewise.
646 * sysdeps/ia64/fpu/s_fdim.S: Likewise.
647 * sysdeps/ia64/fpu/s_fdimf.S: Likewise.
648 * sysdeps/ia64/fpu/s_fdiml.S: Likewise.
649 * sysdeps/ia64/fpu/s_fma.S: Likewise.
650 * sysdeps/ia64/fpu/s_fmaf.S: Likewise.
651 * sysdeps/ia64/fpu/s_fmal.S: Likewise.
652 * sysdeps/ia64/fpu/s_fmax.S: Likewise.
653 * sysdeps/ia64/fpu/s_fmaxf.S: Likewise.
654 * sysdeps/ia64/fpu/s_fmaxl.S: Likewise.
655 * sysdeps/ia64/fpu/s_ldexp.c: Likewise.
656 * sysdeps/ia64/fpu/s_ldexpf.c: Likewise.
657 * sysdeps/ia64/fpu/s_ldexpl.c: Likewise.
658 * sysdeps/ia64/fpu/s_nextafter.S: Likewise.
659 * sysdeps/ia64/fpu/s_nextafterf.S: Likewise.
660 * sysdeps/ia64/fpu/s_nextafterl.S: Likewise.
661 * sysdeps/ia64/fpu/s_nexttoward.S: Likewise.
662 * sysdeps/ia64/fpu/s_nexttowardf.S: Likewise.
663 * sysdeps/ia64/fpu/s_nexttowardl.S: Likewise.
664 * sysdeps/ia64/fpu/s_tanh.S: Likewise.
665 * sysdeps/ia64/fpu/s_tanhf.S: Likewise.
666 * sysdeps/ia64/fpu/s_tanhl.S: Likewise.
667 * sysdeps/ia64/fpu/s_scalblnf.c: Likewise.
668 * sysdeps/ia64/fpu/w_lgamma.c: Likewise.
669 * sysdeps/ia64/fpu/w_lgammaf.c: Likewise.
670 * sysdeps/ia64/fpu/w_lgammal.c: Likewise.
671 * sysdeps/ia64/fpu/w_tgamma.S: Likewise.
672 * sysdeps/ia64/fpu/w_tgammaf.S: Likewise.
673 * sysdeps/ia64/fpu/w_tgammal.S: Likewise.
675 * sysdeps/ia64/fpu/e_gamma_r.c: New empty dummy-file.
676 * sysdeps/ia64/fpu/e_gammaf_r.c: Likewise.
677 * sysdeps/ia64/fpu/e_gammal_r.c: Likewise.
678 * sysdeps/ia64/fpu/w_acosh.c: Likewise.
679 * sysdeps/ia64/fpu/w_acoshf.c: Likewise.
680 * sysdeps/ia64/fpu/w_acoshl.c: Likewise.
681 * sysdeps/ia64/fpu/w_atanh.c: Likewise.
682 * sysdeps/ia64/fpu/w_atanhf.c: Likewise.
683 * sysdeps/ia64/fpu/w_atanhl.c: Likewise.
684 * sysdeps/ia64/fpu/w_exp10.c: Likewise.
685 * sysdeps/ia64/fpu/w_exp10f.c: Likewise.
686 * sysdeps/ia64/fpu/w_exp10l.c: Likewise.
687 * sysdeps/ia64/fpu/w_exp2.c: Likewise.
688 * sysdeps/ia64/fpu/w_exp2f.c: Likewise.
689 * sysdeps/ia64/fpu/w_exp2l.c: Likewise.
690 * sysdeps/ia64/fpu/w_expl.c: Likewise.
691 * sysdeps/ia64/fpu/e_expl.S: Likewise.
692 * sysdeps/ia64/fpu/w_lgamma_r.c: Likewise.
693 * sysdeps/ia64/fpu/w_lgammaf_r.c: Likewise.
694 * sysdeps/ia64/fpu/w_lgammal_r.c: Likewise.
695 * sysdeps/ia64/fpu/w_log2.c: Likewise.
696 * sysdeps/ia64/fpu/w_log2f.c: Likewise.
697 * sysdeps/ia64/fpu/w_log2l.c: Likewise.
698 * sysdeps/ia64/fpu/w_sinh.c: Likewise.
699 * sysdeps/ia64/fpu/w_sinhf.c: Likewise.
700 * sysdeps/ia64/fpu/w_sinhl.c: Likewise.
702 * sysdeps/ia64/fpu/libm_atan2_reg.S: Remove.
703 * sysdeps/ia64/fpu/s_ldexp.S: Likewise.
704 * sysdeps/ia64/fpu/s_ldexpf.S: Likewise.
705 * sysdeps/ia64/fpu/s_ldexpl.S: Likewise.
706 * sysdeps/ia64/fpu/s_scalbn.S: Likewise.
707 * sysdeps/ia64/fpu/s_scalbnf.S: Likewise.
708 * sysdeps/ia64/fpu/s_scalbnl.S: Likewise.
710 * sysdeps/ia64/fpu/s_sincos.c: Make it an empty dummy-file.
711 * sysdeps/ia64/fpu/s_sincosf.c: Likewise.
712 * sysdeps/ia64/fpu/s_sincosl.c: Likewise.
714 * sysdeps/ia64/fpu/e_atan2l.S: Add "Not needed" comment.
716 * sysdeps/ia64/fpu/s_copysign.S: Add __libm_copysign{,f,l}
717 alias for use by libm_error.c
719 * sysdeps/ia64/fpu/Makefile (libm-sysdep_routines): Remove
720 libm_atan2_reg, libm_tan, libm_frexp4{f,l}.
721 Mention s_erfc{,f,l}, libm_frexp{,f,l}, libm_ldexp{,f,l},
722 libm_sincos{,f,l}, libm_sincos_large, libm_lgamma{,f,l},
723 libm_scalbn{,f,l}, libm_scalblnf.
724 (sysdep_routines): Remove libm_frexp4{,f,l}.
725 Mention libm_frexp{,f,l}, libm_ldexp{,f,l}, and libm_scalbn{,f,l}.
726 (sysdep-CPPFLAGS): Add -include libm-symbols.h, -D__POSIX__,
727 _D_LIB_VERSIONIMF=_LIB_VERSION, -DSIZE_LONG_INT_64, and
728 -DSIZE_LONG_LONG_INT_64.
730 2005-01-05 Steven Munroe <sjmunroe@us.ibm.com>
732 * elf/rtld.c (dl_main) [NEED_DL_SYSINFO_DSO]: Insure l_map_end and
733 l_text_end are set for a VDSO with a single PT_LOAD entry.
735 2005-01-05 Ulrich Drepper <drepper@redhat.com>
737 * libio/iofopncook.c (_IO_cookie_seekoff): Define. Mark offset as
738 invalid to disable optimizations in fileops which won't work here.
739 (_IO_cookie_jumps): Use it.
740 (_IO_old_cookie_jumps): Likewise.
741 * libio/fmemopen.c (fmemopen_seek): Result must be returned in *P,
742 not the return value.
743 * stdio-common/Makefile (tests): Add tst-fmemopen2.
744 * stdio-common/tst-fmemopen2.c: New file.
746 * sysdeps/unix/sysv/linux/bits/waitflags.h: Define __WNOTHREAD.
748 2005-01-05 Roland McGrath <roland@redhat.com>
750 * configure.in (libc_cv_cpp_asm_debuginfo): Checked moved ...
751 * sysdeps/i386/configure.in: ... here. New file.
753 2005-01-03 Ulrich Drepper <drepper@redhat.com>
755 * sysdeps/generic/libc-start.c [SHARED] (__libc_start_main): Don't
756 initialize __environ again.
757 * stdlib/Makefile: Add rules to build and run tst-putenv.
758 * stdlib/tst-putenv.c: New file.
759 * stdlib/tst-putenvmod.c: New file.
761 * sysdeps/unix/sysv/linux/init-first.c: Clean file up. Don't
762 define unnecessary wrappers or aliases of static functions.
764 2005-01-03 Andreas Jaeger <aj@suse.de>
766 * csu/Makefile (generated): Add start.os and start.ob.
768 * elf/Makefile (tests): Change rule for tst-pie1 so that make
771 2004-12-29 Roland McGrath <roland@redhat.com>
774 * sysdeps/unix/alarm.c (alarm): Round return value to nearest rather
775 than always up; when nearest is zero, round up to one.
777 2004-12-28 Ulrich Drepper <drepper@redhat.com>
779 * po/es.po: Update from translation team.
781 * sysdeps/generic/dl-tls.c (__tls_get_addr): Fix typo.
783 2004-12-27 Ulrich Drepper <drepper@redhat.com>
785 * include/signal.h: Define __sigemptyset.
787 2004-04-27 Paolo Bonzini <bonzini@gnu.org>
789 * posix/regex_internal.h (struct re_dfastate_t): Make
790 word_trtable a pointer to the 512-item transition table.
791 * posix/regexec.c (build_trtable): Fill in either state->trtable
792 or state->word_trtable. Return a boolean indicating success.
793 (transit_state): Expect state->trtable to be a 256-item
794 transition table. Reorganize code to have less tests in
795 the common case, and to save an indentation level.
796 * posix/regex_internal.c (free_state): Free word_trtable.
798 2004-12-21 Jakub Jelinek <jakub@redhat.com>
800 * sysdeps/unix/sysv/linux/i386/clone.S (__clone): Make sure %esp when
801 calling fn is 16 byte aligned.
802 * sysdeps/i386/tst-stack-align.h: New file.
804 * misc/efgcvt_r.c (FLOAT_MIN_10_EXP, FLOAT_MIN_10_NORM): Define.
805 (ecvt_r): Special case denormals.
806 * misc/qefgcvt_r.c (FLOAT_MIN_10_EXP, FLOAT_MIN_10_NORM): Define.
807 * misc/tst-efgcvt.c: Include float.h.
808 (ecvt_tests): Add 2 new tests.
810 2004-12-20 Roland McGrath <roland@frob.com>
812 * version.h (RELEASE, VERSION): development, 2.3.90
813 * include/features.h (__GLIBC_MINOR__): Now 4.
815 2004-12-20 Jakub Jelinek <jakub@redhat.com>,
816 Jim Gifford <giffordj@linkline.com>
819 * sysdeps/mips/Makefile (librt-sysdep_routines): Add.
820 * sysdeps/unix/mips/rt-sysdep.S: New file.
822 2004-12-19 Roland McGrath <roland@redhat.com>
824 * iconv/Makefile (test-iconvconfig): New target.
825 [$(cross-compiling) != yes] (xtests): Depend on it.
827 * iconv/iconvconfig.c (nostdlib, output_file, output_file_len):
829 (options, parse_opt, main): Take new options --nostdlib and
830 --output/-o to set them. Under --nostdlib, skip GCONV_PATH dirs.
831 (write_output): If output_file is set, write the output there.
833 2004-12-19 Andreas Jaeger <aj@suse.de>
836 * inet/netinet/in.h: Use __interface_addr instead of __interface.
839 * sunrpc/xcrypt.c (passwd2des_internal): Make it hidden instead of
842 2004-12-19 Roland McGrath <roland@frob.com>
844 * version.h (VERSION): 2.3.4.
845 * README.template: Various updates.
846 * README: Regenerated.
847 * NEWS: Mention ports.
848 * README-alpha: File removed.
851 * locale/langinfo.h: Comment fixes.
853 2004-12-17 Ulrich Drepper <drepper@redhat.com>
855 * po/ja.po: Update from translation team.
857 2004-12-17 Richard Henderson <rth@redhat.com>
859 * sysdeps/unix/sysv/linux/alpha/clone.S (__clone): Add support
860 for NPTL where the PID is stored at userlevel and needs to be
861 reset when CLONE_THREAD is not used.
863 2004-12-17 Jakub Jelinek <jakub@redhat.com>
865 * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Update.
867 2004-12-17 Andreas Jaeger <aj@suse.de>
869 * math/libm-test.inc (atan2_test): Compute value with 36 digits.
870 * sysdeps/alpha/fpu/libm-test-ulps: Adjust for changed result.
871 * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
872 * sysdeps/s390/fpu/libm-test-ulps: Likewise.
873 * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Likewise.
874 * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
875 * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
877 2004-12-16 Ulrich Drepper <drepper@redhat.com>
879 * stdlib/tst-setcontext.c: Enlarge st1 and st2 arrays.
881 2004-09-02 Steven Munroe <sjmunroe@us.ibm.com>
884 * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S
885 (__novec_getcontext): Fix typo in store of fp29.
886 (__getcontext): Fix typo in store of fp29.
887 * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S
888 (__novec_swapcontext): Fix typo in store of fp29.
889 (__swapcontext): Fix typo in store of fp29.
891 2004-12-17 GOTO Masanori <gotom@debian.or.jp>
893 * sysdeps/unix/sysv/linux/dl-osinfo.h (DL_SYSDEP_OSCHECK): Fix
896 2004-12-16 Roland McGrath <roland@redhat.com>
898 * nscd/Makefile ($(objpfx)nscd): Don't depend on $(selinux-LIBS),
899 which is usually a -lselinux that make will resolve wrongly.
901 2004-12-16 Andreas Jaeger <aj@suse.de>
903 * math/math.h: Use #if defined to not receive warnings about
906 2004-12-16 Jakub Jelinek <jakub@redhat.com>
908 * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__clone): Add support
909 for NPTL where the PID is stored at userlevel and needs to be reset
910 when CLONE_THREAD is not used.
912 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
913 (SYSCALL_ERROR_HANDLER): If RTLD_PRIVATE_ERRNO, use rtld_errno
915 * sysdeps/unix/sysv/linux/sparc/sparc64/socket.S: Include
916 sysdep-cancel.h instead of sysdep.h. Handle cancellation.
917 * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Regenerate.
919 * sysdeps/ieee754/ldbl-128/e_expl.c: Include stdlib.h.
921 2004-12-15 Jakub Jelinek <jakub@redhat.com>
923 * sysdeps/unix/sysv/linux/gethostid.c: Make bi-arch safe.
925 2004-12-15 Steven Munroe <sjmunroe@us.ibm.com>
927 * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: Correct stack
928 alignment. Clean up flag bit tests.
929 * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S: Correct stack
930 alignment. Clean up flag bit tests. Remove redundent SP assignment.
931 Add TOC register save/restore around function call.
933 * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Make no_vmx symbol
935 * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S: Make no_vmx symbol
937 * sysdeps/powerpc/powerpc64/__longjmp-common.S: Make no_vmx symbol
939 * sysdeps/powerpc/powerpc64/setjmp-common.S: Make no_vmx and
940 aligned_save_vmx symbol local.
942 2004-12-15 Ulrich Drepper <drepper@redhat.com>
944 * sysdeps/i386/i486/bits/string.h (__strncat_g): Fix i686
947 2004-09-08 H.J. Lu <hongjiu.lu@intel.com>
949 * Makeconfig (libunwind): New.
950 (libgcc_eh): Add $(libunwind).
951 (gnulib): Always set to -lgcc $(libgcc_eh).
952 (static-gnulib): Always set to -lgcc -lgcc_eh $(libunwind).
953 (libc.so-gnulib): New.
954 * Makerules (LDLIBS-c.so): Use $(libc.so-gnulib) instead of
956 * configure.in (libc_cv_cc_with_libunwind): Set to yes if gcc
957 uses -lunwind for static binaries.
959 2004-06-05 Joseph S. Myers <jsm@polyomino.org.uk>
961 * malloc/Makefile (install-bin): Remove memusage.
962 (install-bin-script): Add memusage.
964 2004-12-15 Jakub Jelinek <jakub@redhat.com>
966 * nis/nis_domain_of_r.c (nis_domain_of_r): Use libnsl_hidden_def,
967 not libnsl_hidden_proto.
969 * sysdeps/unix/sysv/linux/s390/s390-32/clone.S (__clone): Add support
970 for NPTL where the PID is stored at userlevel and needs to be reset
971 when CLONE_THREAD is not used.
972 * sysdeps/unix/sysv/linux/s390/s390-64/clone.S (__clone): Likewise.
974 * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (__clone): Save
975 and restore r2 around call to fn.
977 2004-12-15 Andreas Jaeger <aj@suse.de>
979 * sysdeps/ia64/dl-machine.h (elf_machine_rela): Mark auto instead
980 of static, add always_inline attribute.
981 (elf_machine_rela_relative): Likewise.
982 (elf_machine_lazy_rel): Likewise.
984 2004-12-15 Ulrich Drepper <drepper@redhat.com>
986 * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: Add support
987 for pid caching in nptl.
989 2004-12-14 Ulrich Drepper <drepper@redhat.com>
991 * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S: Add support
992 for pid caching in nptl.
994 2004-10-18 Maciej W. Rozycki <macro@mips.com>
996 * sysdeps/unix/sysv/linux/mips/bits/socket.h (__cmsg_nxthdr): Use
997 __NTH instead of __THROW in the inline definition.
998 * sysdeps/unix/sysv/linux/mips/sys/tas.h (_test_and_set): Likewise.
1000 * sysdeps/mips/bits/dlfcn.h (RTLD_DEEPBIND): New macro.
1002 * sysdeps/unix/sysv/linux/mips/bits/mman.h
1003 (PROT_GROWSDOWN, PROT_GROWSUP): New macros.
1005 2004-10-06 Alan Modra <amodra@bigpond.net.au>
1007 * sysdeps/powerpc/powerpc64/ppc-mcount.S (PROF): Don't undef.
1008 * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S: Invoke CALL_MOUNT.
1009 * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S: Likewise.
1010 * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S: Likewise.
1011 * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S: Likewise.
1012 * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S: Likewise.
1013 * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S: Likewise.
1014 * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S: Likewise.
1015 * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S: Likewise.
1017 2004-10-19 Wolfram Gloger <wg@malloc.de>
1019 * malloc/hooks.c (mem2chunk_check, top_check): Handle
1020 non-contiguous arena. Reported by Michael Dalton
1021 <mwdalton@stanford.edu> [BZ #457]. Add further checks for top chunk.
1023 2004-12-14 Jakub Jelinek <jakub@redhat.com>
1025 * sysdeps/posix/sysconf.c (__sysconf_check_spec): Remove leading
1026 underscore from GETCONF_DIR filenames.
1028 2004-12-13 Ulrich Drepper <drepper@redhat.com>
1030 * po/de.po: Update from translation team.
1032 * nss/getnssent.c (__nss_getent): Double buffer size each round to
1033 avoid problems with delays for some people's huge entries.
1034 * nss/getXXbyYY.c (FUNCTION_NAME): Likewise.
1036 2004-12-13 Jakub Jelinek <jakub@redhat.com>
1038 * posix/getconf.c (main): Prepend just $GETCONF_DIR/ instead of
1039 $GETCONF_DIR/_ to spec.
1040 * posix/confstr.c (confstr): Remove leading underscores for
1041 _CS_POSIX_V6_WIDTH_RESTRICTED_ENVS.
1043 2004-12-12 Ulrich Drepper <drepper@redhat.com>
1045 * elf/dl-load.c (_dl_map_object_from_fd): Fix computation of
1046 mapping start. It must take the actual pagesize into account, not
1047 the alignment in the file.
1049 2004-12-11 Ulrich Drepper <drepper@redhat.com>
1051 * malloc/malloc.c (_int_realloc): Add checks for corrupted memory.
1052 (_int_free): Make clear message are result of free() calls.
1054 * malloc/malloc.c (_int_realloc): Remove unnecessary tests for
1055 oldmem and size == 0.
1057 2004-12-10 Ulrich Drepper <drepper@redhat.com>
1059 * malloc/arena.c (arena_get2): Prevent endless loop if arenas and
1060 list lock are taken.
1062 2004-12-08 Thorsten Kukuk <kukuk@suse.de>
1064 * nis/nss_nisplus/nisplus-netgrp.c (_nss_nisplus_getnetgrent_r):
1065 Add check if the value is not an empty string. [BZ #597]
1067 2004-11-29 Jakub Jelinek <jakub@redhat.com>
1069 * stdlib/strtod_l.c (INTERNAL (__STRTOF)): If densize > 2
1070 and numsize < densize, always shift num up by empty + 1 limbs.
1072 2004-12-07 Paolo Bonzini <bonzini@gnu.org>
1074 * posix/regexec.c (proceed_next_node): Simplify treatment of epsilon
1075 nodes. Pass the pushed node to push_fail_stack.
1076 (push_fail_stack): Accept a single node rather than an array
1077 of two epsilon destinations.
1078 (build_sifted_states): Only walk non-epsilon nodes.
1079 (check_arrival): Don't pass epsilon nodes to
1080 check_arrival_add_next_nodes.
1081 (check_arrival_add_next_nodes) [DEBUG]: Abort if an epsilon node is
1083 (check_node_accept): Do expensive checks later.
1084 (add_epsilon_src_nodes): Cache result of merging the inveclosures.
1085 * posix/regex_internal.h (re_dfastate_t): Add non_eps_nodes and
1087 (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at,
1088 re_string_context_at, re_string_peek_byte_case,
1089 re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
1091 * posix/regex_internal.c (create_newstate_common): Remove.
1092 (register_state): Move part of it here. Initialize non_eps_nodes.
1093 (free_state): Free inveclosure and non_eps_nodes.
1094 (create_cd_newstate, create_ci_newstate): Allocate the new
1097 2004-12-09 Ulrich Drepper <drepper@redhat.com>
1099 * malloc/malloc.c (public_rEALLOc): Add parameter checks.
1100 (_int_free): Provide better error message for invalid pointers.
1102 2004-12-01 Jakub Jelinek <jakub@redhat.com>
1104 * posix/tst-regex.c: Use defined _POSIX_CPUTIME && _POSIX_CPUTIME >= 0
1105 conditionals instead of defined _POSIX_CPUTIME.
1106 (main): If _POSIX_CPUTIME == 0, call sysconf to see if CPUTIME
1107 option is available.
1108 * posix/tst-regex.c2: Use defined _POSIX_CPUTIME && _POSIX_CPUTIME >= 0
1109 conditionals instead of defined _POSIX_CPUTIME.
1110 (do_test): If _POSIX_CPUTIME == 0, call sysconf to see if CPUTIME
1111 option is available.
1112 * sysdeps/posix/sysconf.c (__sysconf): If _POSIX_CPUTIME resp.
1113 _POSIX_THREAD_CPUTIME is defined to 0, return -1 for the corresponding
1116 2004-12-08 Jakub Jelinek <jakub@redhat.com>
1118 * elf/ldd.bash.in: When set -o pipefail is available, use that for
1119 piping to cat; when not, don't use the pipe at all.
1120 Pipe to cat in all cases of running the executable.
1121 When direct running exits with code 5, retry running via ${RTLD}.
1122 * elf/rtld.c (process_envvars): If __libc_enable_secure and
1123 mode != normal, exit with exitcode 5.
1125 2004-12-07 Jakub Jelinek <jakub@redhat.com>
1127 * sysdeps/posix/sysconf.c (__sysconf_check_spec): Only define
1128 if it will be actually used.
1130 2004-12-07 Roland McGrath <roland@redhat.com>
1132 * rt/tst-timer5.c (setup_test): New function.
1133 (TEST_CLOCK_MISSING): Use it to punt test if timer_create does not
1134 support CLOCK_MONOTONIC.
1136 2004-12-07 Jakub Jelinek <jakub@redhat.com>
1138 * sysdeps/unix/sysv/linux/ia64/clone2.S (__clone2): Add support for
1139 NPTL where the PID is stored at userlevel and needs to be reset when
1140 CLONE_THREAD is not used. Restore gp before calling _exit.
1142 2004-12-07 Kaz Kojima <kkojima@rr.iij4u.or.jp>
1144 * sysdeps/unix/sysv/linux/sh/clone.S: Clear the frame pointer when
1145 starting a new thread. Add support for NPTL where the PID is stored
1146 at userlevel and needs to be reset when CLONE_THREAD is not used.
1148 2004-12-01 Jakub Jelinek <jakub@redhat.com>
1150 * elf/rtld.c (process_envvars): Don't consider LD_SHOW_AUXV
1151 and LD_DYNAMIC_WEAK if __libc_enable_secure.
1152 If __libc_enable_secure, /etc/suid-debug doesn't exist and
1153 program will be actually run, turn off all debugging.
1154 * sysdeps/generic/unsecvars.h (UNSECURE_ENVVARS): Add LD_DEBUG,
1155 LD_DYNAMIC_WEAK and LD_SHOW_AUXV.
1157 2004-12-06 Jakub Jelinek <jakub@redhat.com>
1159 * time/tzset.c (tzset_internal): If + or - is seen,
1160 but no offset after it, reset offset to 0. [BZ #601]
1162 2004-12-06 Ulrich Drepper <drepper@redhat.com>
1164 * libio/ioseekpos.c (_IO_seekpos_unlocked): Call _IO_SEEKOFF not
1165 _IO_SEEKPOS, saving one indirect jump.
1167 * libio/fileops.c (_IO_new_file_seekoff): Fix optimization of in-buffer
1168 seek. Remove dead code.
1170 2004-12-02 Jakub Jelinek <jakub@redhat.com>
1172 * libio/Makefile (tests): Add bug-ungetc4.
1173 * libio/bug-ungetc4.c: New test.
1175 2004-12-06 Roland McGrath <roland@redhat.com>
1177 * sysdeps/unix/clock_nanosleep.c (clock_nanosleep): Diagnose EINVAL
1178 for CLOCK_THREAD_CPUTIME_ID, not ENOTSUP.
1179 Use SYSDEP_NANOSLEEP handler before validating CLOCK_ID value.
1181 * rt/tst-timer4.c (TEST_CLOCK, TEST_CLOCK_NANOSLEEP): New macros.
1182 Use them throughout in place of CLOCK_REALTIME and nanosleep.
1183 (do_test) [TEST_CLOCK_MISSING]: Call this macro and if it returns
1184 non-null, punt the test with a message using the string returned.
1185 * rt/tst-timer5.c: New file.
1186 * rt/Makefile (tests): Add it.
1188 2004-12-01 Paolo Bonzini <bonzini@gnu.org>
1190 * posix/regcomp.c (free_dfa_content, init_dfa): Remove
1191 references to re_dfa_t's subexps field.
1192 (parse_sub_exp, parse_expression): Do not use it. Use
1193 completed_bkref_map instead.
1194 (create_initial_state, peek_token): Store a backreference \N
1196 * posix/regexec.c (proceed_next_node, check_dst_limits, get_subexp):
1198 (check_subexp_limits): Remove useless condition.
1199 * posix/regex_internal.h (re_subexp_t): Remove.
1200 (re_dfa_t): Remove subexps and subexps_alloc field, add
1201 completed_bkref_map.
1203 2004-12-05 Roland McGrath <roland@frob.com>
1205 * Makeconfig: Comment typo fix.
1207 2004-11-30 Andreas Schwab <schwab@suse.de>
1209 * nis/ypclnt.c (ypprot_err): Remove unused entries.
1211 2004-11-30 Paolo Bonzini <bonzini@gnu.org>
1213 * posix/regexec.c (check_dst_limits_calc_pos_1): Check for
1214 bkref_idx == -1, and don't recurse in that case.
1216 2004-11-30 GOTO Masanori <gotom@debian.or.jp>
1218 * posix/confstr.c: Enclose #error message with double quote
1219 for gcc-3.3 and lower.
1221 2004-12-04 Ulrich Drepper <drepper@redhat.com>
1223 * sysdeps/unix/sysv/linux/i386/clone.S: Add support for NPTL where
1224 the PID is stored at userlevel and needs to be reset when CLONE_THREAD
1226 * sysdeps/unix/sysv/linux/x86_64/clone.S: Likewise.
1228 2004-11-18 Daniel Jacobowitz <dan@codesourcery.com>
1230 * sysdeps/arm/sysdep.h: Define __USE_BX__ if bx is available.
1231 Use it instead of __THUMB_INTERWORK__. Make RETINSTR take
1232 only a condition and a register.
1233 * sysdeps/arm/dl-machine.h: Use __USE_BX__ instead of
1234 __THUMB_INTERWORK__.
1235 (_dl_start_user): Use BX.
1236 * sysdeps/arm/strlen.S: Use DO_RET.
1237 * sysdeps/unix/arm/brk.S: Likewise.
1238 * sysdeps/unix/arm/fork.S: Likewise.
1239 * sysdeps/unix/arm/sysdep.S: Likewise.
1240 * sysdeps/unix/arm/sysdep.h: Likewise.
1241 * sysdeps/unix/sysv/linux/arm/clone.S: Update uses of RETINSTR.
1242 * sysdeps/unix/sysv/linux/arm/mmap.S: Likewise.
1243 * sysdeps/unix/sysv/linux/arm/mmap64.S: Likewise.
1244 * sysdeps/unix/sysv/linux/arm/socket.S: Likewise.
1245 * sysdeps/unix/sysv/linux/arm/sysdep.h: Likewise.
1246 * sysdeps/unix/sysv/linux/arm/vfork.S: Likewise.
1248 2004-12-02 Roland McGrath <roland@redhat.com>
1250 * extra-lib.mk (object-suffixes-$(lib)): Add .oS when
1251 $(lib)-static-only-routines is nonempty.
1252 (extra-objs, o-iterator.mk rule): Filter out .oS from generators.
1253 Add a special rule for .oS objects -> _nonshared.a library.
1255 2004-12-01 Jakub Jelinek <jakub@redhat.com>
1257 * time/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
1259 * time/Makefile (tests): Add tst-mktime3.
1260 * time/tst-mktime3.c: New test.
1262 2004-12-01 Jakub Jelinek <jakub@redhat.com>
1264 * stdlib/stdlib.h (realpath): Remove nonnull attribute.
1266 * posix/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
1267 normal_bracket label.
1269 * time/tst-mktime2.c (bigtime_test): Initialize tm.tm_isdst to -1.
1271 2004-12-01 Roland McGrath <roland@redhat.com>
1273 * sysdeps/gnu/Makefile ($(objpfx)errlist-compat.c):
1274 Do $(make-target-directory).
1276 2004-11-29 Roland McGrath <roland@redhat.com>
1278 * posix/confstr.c: Avoid punctuation in #error text.
1280 2004-11-27 Ulrich Drepper <drepper@redhat.com>
1282 * posix/Makefile (tests): Add tst-sysconf.
1283 * posix/tst-sysconf.c: New file.
1285 * posix/getconf.c (vars): Add support for _SC_IPV6 and
1287 * sysdeps/posix/sysconf.c (__sysconf): Add support for _SC_IPV6
1288 and _SC_RAW_SOCKETS.
1289 * sysdeps/generic/bits/confname.h: Define _SC_IPV6 and
1292 2004-11-26 Jakub Jelinek <jakub@redhat.com>
1294 * sysdeps/generic/unsecvars.h (UNSECURE_ENVVARS): Add GETCONF_DIR.
1296 2004-11-26 Kaz Kojima <kkojima@rr.iij4u.or.jp>
1298 * sysdeps/unix/sysv/linux/mips/pread.c: Include sgidefs.h only if
1299 NO_SGIDEFS_H isn't defined. Don't include sgidefs.h twice.
1300 * sysdeps/unix/sysv/linux/mips/pwrite.c: Likewise.
1301 * sysdeps/unix/sysv/linux/mips/pread64.c: Likewise.
1302 * sysdeps/unix/sysv/linux/mips/pwrite64.c: Likewise.
1304 2004-11-27 Ulrich Drepper <drepper@redhat.com>
1306 * include/dlfcn.h (__libc_dlopen): Add __RTLD_DLOPEN to the mode
1307 parameter. Reported by VY Newsum <newsum@fel.tno.nl>.
1309 2004-11-10 Daniel Jacobowitz <dan@debian.org>
1311 * libio/iolibio.h (_IO_fclose, _IO_new_fclose, _IO_old_fclose,
1312 _IO_fflush, _IO_fgetpos, _IO_fgetpos64, _IO_fgets, _IO_fopen,
1313 _IO_old_fopen, _IO_new_fopen, _IO_fopen64, __fopen_internal,
1314 _IO_fprintf, _IO_fputs, _IO_fsetpos, _IO_fsetpos64, _IO_ftell,
1315 _IO_fread, _IO_fwrite, _IO_gets, _IO_printf, _IO_puts, _IO_scanf,
1316 _IO_fflush_internal, _IO_ftell_internal, _IO_fputs_internal)
1317 _IO_fwrite_internal): Remove incorrect __THROW.
1318 * libio/libioP.h (_IO_default_xsputn, _IO_wdefault_xsputn,
1319 _IO_default_xsgetn, _IO_wdefault_xsgetn, _IO_default_write,
1320 _IO_default_read, _IO_getline, _IO_getline_info, _IO_getwline,
1321 _IO_getwline_info, _IO_file_read_internal, _IO_sgetn_internal,
1322 _IO_wdo_write_internal, _IO_do_write_internal,
1323 _IO_getline_info_internal, _IO_getline_internal,
1324 _IO_vfprintf_internal, _IO_putc_internal, _IO_read, _IO_write,
1325 _IO_close): Likewise.
1327 2004-11-26 Jakub Jelinek <jakub@redhat.com>
1329 * posix/Makefile (install-others): Add $(inst_libexecdir)/getconf.
1330 (CFLAGS-sysconf.c): Add -D_GETCONF_DIR.
1331 (CFLAGS-getconf.c): New.
1332 ($(inst_libexecdir)/getconf): New.
1333 * posix/confstr.c (confstr): Use __sysconf to query specifications
1334 that don't have _POSIX_V6_* macros defined. Use __*_{C,LD}FLAGS
1335 macros defined in bits/environments.h.
1336 * sysdeps/posix/sysconf.c: Include stdlib.h, string.h and
1338 (__sysconf_check_spec): New routine.
1339 (__sysconf): Use it.
1340 * posix/getconf.c (specs): Change into structure array.
1341 (main): If -v is not given, try to get default from
1342 $(libexecdir)/getconf/default. If specification is not
1343 supported by this getconf, try to execute
1344 $(libexecdir)/getconf/$(specification).
1345 * sysdeps/unix/bsd/bsd4.4/freebsd/bits/environments.h: New file.
1346 * sysdeps/unix/sysv/linux/s390/bits/environments.h: New file.
1347 * sysdeps/unix/sysv/linux/powerpc/bits/environments.h: New file.
1348 * sysdeps/unix/sysv/linux/sparc/bits/environments.h: New file.
1349 * sysdeps/unix/sysv/linux/i386/bits/environments.h: New file.
1350 * sysdeps/unix/sysv/linux/x86_64/bits/environments.h: New file.
1351 * sysdeps/generic/bits/environments.h (__ILP32_OFFBIG_CFLAGS):
1354 * stdlib/stdlib.h (setenv): Use nonnull only for second argument.
1357 2004-11-23 Paolo Bonzini <bonzini@gnu.org>
1359 * posix/regcomp.c (analyze_tree): Always call calc_epsdest.
1360 (calc_inveclosure): Use re_node_set_insert_last.
1361 (parse_dup_op): Lower X{1,5} to (X(X(X(XX?)?)?)?)?
1362 rather than X?X?X?X?X?.
1363 * posix/regex_internal.h (re_node_set_insert_last): New declaration.
1364 * posix/regex_internal.c (re_node_set_insert_last): New function.
1365 * posix/PCRE.tests: Add testcases.
1367 2004-11-25 Ulrich Drepper <drepper@redhat.com>
1369 * dlfcn/dlfcn.h: Remove nonnull attribute from dlopen.
1371 * posix/confstr.c (confstr): Return appropriate strings for
1372 _CS_LFS_LINTFLAGS, _CS_LFS64_CFLAGS, and _CS_LFS64_LINTFLAGS.
1374 2004-11-05 Maciej W. Rozycki <macro@mips.com>
1376 * sysdeps/mips/dl-machine.h: Include <sgidefs.h>. Use _ABIO32,
1377 _ABIN32 and _ABI64 for ABI selection throughout.
1378 * sysdeps/mips/elf/start.S: Likewise.
1379 * sysdeps/mips/mips64/__longjmp.c: Likewise.
1380 * sysdeps/mips/mips64/bsd-_setjmp.S: Likewise.
1381 * sysdeps/mips/mips64/bsd-setjmp.S: Likewise.
1382 * sysdeps/mips/mips64/setjmp.S: Likewise.
1383 * sysdeps/mips/mips64/setjmp_aux.c: Likewise.
1384 * sysdeps/mips/sys/regdef.h: Likewise.
1385 * sysdeps/mips/sys/ucontext.h: Likewise.
1386 * sysdeps/unix/mips/sysdep.h: Likewise.
1387 * sysdeps/unix/sysv/linux/kernel-features.h: Likewise.
1388 * sysdeps/unix/sysv/linux/mips/pread.c: Likewise.
1389 * sysdeps/unix/sysv/linux/mips/pread64.c: Likewise.
1390 * sysdeps/unix/sysv/linux/mips/ptrace.c: Likewise.
1391 * sysdeps/unix/sysv/linux/mips/pwrite.c: Likewise.
1392 * sysdeps/unix/sysv/linux/mips/pwrite64.c: Likewise.
1393 * sysdeps/unix/sysv/linux/mips/sigaction.c: Likewise.
1394 * sysdeps/unix/sysv/linux/mips/sys/procfs.h: Likewise.
1395 * sysdeps/unix/sysv/linux/mips/sys/ucontext.h: Likewise.
1397 * sysdeps/mips/atomicity.h: Use _ABIO32, _ABIN32 and _ABI64 for
1398 ABI selection throughout.
1399 * sysdeps/mips/bits/setjmp.h: Likewise.
1400 * sysdeps/mips/fpu/bits/mathdef.h: Likewise.
1401 * sysdeps/mips/machine-gmon.h: Likewise.
1402 * sysdeps/mips/sys/asm.h: Likewise.
1403 * sysdeps/unix/sysv/linux/mips/bits/fcntl.h: Likewise.
1404 * sysdeps/unix/sysv/linux/mips/bits/sigcontext.h: Likewise.
1405 * sysdeps/unix/sysv/linux/mips/bits/stat.h: Likewise.
1406 * sysdeps/unix/sysv/linux/mips/kernel_stat.h: Likewise.
1407 * sysdeps/unix/sysv/linux/mips/sigcontextinfo.h: Likewise.
1408 * sysdeps/unix/sysv/linux/mips/sys/ptrace.h: Likewise.
1409 * sysdeps/unix/sysv/linux/mips/sys/tas.h: Likewise.
1410 * sysdeps/unix/sysv/linux/mips/sys/user.h: Likewise.
1412 * sysdeps/mips/sgidefs.h: Prevent <asm/sgidefs.h> from being
1413 included by kernel headers and undo its settings if already
1414 included. Define _ABIO32, _ABIN32 and _ABI64 if missing and use
1415 them to define _MIPS_SIM_ABI32, _MIPS_SIM_NABI32 and
1416 _MIPS_SIM_ABI64 for compatibility.
1417 * sysdeps/unix/sysv/linux/mips/Makefile: Use _ABIO32, _ABIN32 and
1418 _ABI64 for ABI selection in generated syscall-list.h
1419 * sysdeps/unix/sysv/linux/mips/configure.in: Use _ABIO32, _ABIN32
1420 and _ABI64 for ABI selection in generated asm-unistd.h.
1421 * sysdeps/unix/sysv/linux/mips/configure: Regenerate.
1423 * sysdeps/unix/sysv/linux/mips/pwrite.c (__libc_pwrite): Correct
1424 an inverted _MIPS_SIM conditional.
1426 2004-11-23 Alexandre Oliva <aoliva@redhat.com>
1428 * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): Use free
1429 range even if it doesn't match exactly.
1431 2004-11-23 Jakub Jelinek <jakub@redhat.com>
1433 * nss/nss_files/files-XXX.c (internal_getent): If parse_line returned
1434 -1, also do H_ERRNO_SET (NETDB_INTERNAL).
1436 2004-11-22 Ulrich Drepper <drepper@redhat.com>
1438 * sysdeps/i386/fpu_control.h: Add volatile to the asms.
1439 Patch by Alexander Stohr.
1441 2004-11-22 Jakub Jelinek <jakub@redhat.com>
1443 * nscd/nscd_getai (__nscd_getai): Avoid memory and file descriptor
1445 * sysdeps/posix/getaddrinfo.c (gaih_inet): Free air.
1447 2004-11-15 Maciej W. Rozycki <macro@mips.com>
1449 * sysdeps/unix/sysv/linux/mips/bits/siginfo.h (__SI_MAX_SIZE):
1450 Define appropriately based on __WORDSIZE.
1451 [struct siginfo] (__pad0): Add for explicit padding.
1453 * sysdeps/unix/sysv/linux/mips/bits/siginfo.h: Formatting fixes
1456 2004-11-22 Ulrich Drepper <drepper@redhat.com>
1458 * dirent/dirent.h: Add nonnull attributes.
1459 * dlfcn/dlfcn.h: Likewise.
1461 2004-11-20 Jakub Jelinek <jakub@redhat.com>
1463 * sysdeps/ieee754/k_standard.c: Document code 50.
1464 (__kernel_standard) <case 50>: Avoid raising div-by-zero
1467 2004-11-19 H.J. Lu <hongjiu.lu@intel.com>
1470 * math/libm-test.inc (tgamma_test): Update tgamma (0) and
1472 * sysdeps/generic/w_tgamma.c (__tgamma): Properly handle |x| == 0.
1473 * sysdeps/generic/w_tgammaf.c (__tgammaf): Likewise.
1474 * sysdeps/generic/w_tgammal.c (__tgammal): Likewise.
1475 * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r): Likewise.
1476 * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
1477 * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
1478 * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Likewise.
1479 * sysdeps/ieee754/k_standard.c (__kernel_standard): Handle
1480 tgamma (0) and tgamma (-0).
1482 2004-11-20 Ulrich Drepper <drepper@redhat.com>
1484 * time/tzfile.c (__tzfile_read): Avoid open for checking whether
1485 the file we already use changed.
1487 * misc/syslog.c: Remove !USE_IN_LIBIO code.
1489 2004-11-20 Jakub Jelinek <jakub@redhat.com>
1491 * signal/signal.h (__sysv_signal, sysv_signal, signal, bsd_signal,
1492 ssignal): Remove __nonnull attribute.
1494 2004-11-20 Kaz Kojima <kkojima@rr.iij4u.or.jp>
1496 * sysdeps/unix/sysv/linux/sh/sys/procfs.h: New file.
1498 2004-11-20 Ulrich Drepper <drepper@redhat.com>
1500 * signal/signal.h: Add nonnull attributes.
1502 * signal/signal.h: Add deprecated attributes to sigstack,
1503 sigpause, sigblock, sigsetmask, siggetmask.
1505 2004-11-20 Jakub Jelinek <jakub@redhat.com>
1507 * sysdeps/unix/sysv/linux/bits/socket.h (SCM_RIGHTS): Avoid
1508 comma at the end of enum if __USE_BSD is not defined.
1510 2004-11-19 Ulrich Drepper <drepper@redhat.com>
1512 * malloc/malloc.c (_int_malloc): Check for corruption of chunk
1513 which is about to be returned.
1515 * malloc/malloc.c (_int_free): Add a few more cheap tests for
1518 2004-11-17 Randolph Chung <tausq@debian.org>
1520 * sysdeps/hppa/dl-machine.h (TRAMPOLINE_TEMPLATE): Add unwind
1523 2004-11-18 Jakub Jelinek <jakub@redhat.com>
1526 * posix/regex.h (RE_NO_SUB): New define.
1527 * posix/regex_internal.h (OP_DELETED_SUBEXP): New.
1528 (re_dfa_t): Add subexp_map.
1529 * posix/regcomp.c (struct subexp_optimize): New type.
1530 (optimize_subexps): New routine.
1531 (re_compile_internal): Call it.
1532 (re_compile_pattern): Set preg->no_sub to 1 if RE_NO_SUB.
1533 (free_dfa_content): Free subexp_map.
1534 (calc_inveclosure, calc_eclosure): Skip OP_DELETED_SUBEXP nodes.
1535 * posix/regexec.c (re_search_internal): If subexp_map
1536 is not NULL, duplicate registers as needed.
1537 * posix/Makefile: Add rules to build and run tst-regex2.
1538 * posix/tst-regex2.c: New test.
1539 * posix/rxspencer/tests: Fix last two tests (\0 -> \1).
1540 Add some new tests for nested subexpressions.
1542 2004-11-18 Ulrich Drepper <drepper@redhat.com>
1544 * libio/libio.h (_IO_FLAGS2_FORTIFY): Renamed from
1545 _IO_FLAGS2_CHECK_PERCENT_N.
1546 * debug/fprintf_chk.c: Adjust all users.
1547 * debug/printf_chk.c: Likewise.
1548 * debug/vfprintf_chk.c: Likewise.
1549 * debug/vprintf_chk.c: Likewise.
1550 * debug/vsnprintf_chk.c: Likewise.
1551 * debug/vsprintf_chk.c: Likewise.
1552 * stdio-common/vfprintf.c: Likewise. Detect missing %N$ formats.
1553 * debug/tst-chk1.c: Test detection of missing %N$ formats.
1555 2004-11-15 Jakub Jelinek <jakub@redhat.com>
1557 * posix/bug-regex24.c: Include string.h.
1559 * nis/nis_clone_obj.c (nis_clone_object): Rename out3 label to out2
1560 and out2 to out. Remove out label. Formatting.
1562 2004-11-15 Ulrich Drepper <drepper@redhat.com>
1564 * include/stdio.h: Do not mark __libc_message as noreturn.
1565 * sysdeps/unix/sysv/linux/libc_fatal.c (__libc_fatal): Add loop to
1566 fool gcc. Include <stdbool.h>.
1567 * sysdeps/posix/libc_fatal.c (__libc_fatal): Add loop to fool gcc.
1568 (__libc_message): Fix typo.
1570 2004-11-13 Ulrich Drepper <drepper@redhat.com>
1572 * malloc/malloc.c (malloc_state): stat_lock_* elements need only
1573 be defined if THREAD_STATS is defined. Remove pad0_ since it does
1574 not align with cache line sizes in general anyway.
1576 2004-11-13 Jakub Jelinek <jakub@redhat.com>
1578 * elf/rtld.c (print_statistics): Avoid segfaults if not all namespaces
1579 are used. Fix computation of num_relative_relocations on RELA
1580 architectures other than IA-64 and Alpha.
1582 2004-11-13 Ulrich Drepper <drepper@redhat.com>
1584 * malloc/malloc.c (_int_free): Use munmap_chunk for handling
1587 2004-11-12 Ulrich Drepper <drepper@redhat.com>
1589 * malloc/malloc.c (_int_free): Remove test for NULL parameter.
1590 (_int_realloc): Call _int_free only if memory parameter is not NULL.
1592 * sysdeps/unix/sysv/linux/libc_fatal.c: Add new function __libc_message
1593 which performs the printing and simple format string handling. The
1594 string is written to tty, stderr, syslog in this order, stopping after
1595 the first successful output.
1596 (__libc_fatal): Call __libc_message.
1597 * include/stdio.h: Declare __libc_message.
1598 * malloc/malloc.c (malloc_printerr): Use __libc_message.
1599 * debug/chk_fail.c: Also print message with __libc_message.
1600 * debug/test-strcpy_chk.c: Ensure that debug messages are not printed
1601 to the terminal or stderr.
1602 * debug/tst-chk1.c: Likewise.
1604 * posix/Makefile: Remove gpl2lgpl variable.
1606 2004-11-12 Martin Schwidefsky <schwidefsky@de.ibm.com>
1608 * elf/elf.h: Add 20 bit relocations R_390_*20.
1610 2004-11-12 Jakub Jelinek <jakub@redhat.com>
1612 * sysdeps/unix/sysv/linux/i386/setuid.c: Include linux/posix_types.h.
1613 * sysdeps/unix/sysv/linux/i386/setgid.c: Likewise.
1614 * sysdeps/unix/sysv/linux/i386/setreuid.c: Likewise.
1615 * sysdeps/unix/sysv/linux/i386/setregid.c: Likewise.
1616 * sysdeps/unix/sysv/linux/i386/setresuid.c: Likewise.
1617 * sysdeps/unix/sysv/linux/i386/setresgid.c: Likewise.
1619 2004-11-12 Andreas Schwab <schwab@suse.de>
1621 * nis/ypclnt.c (ypprot_err): Fix "minor optimizations".
1623 2004-11-12 Ulrich Drepper <drepper@redhat.com>
1625 * posix/Makefile (tests): Add bug-regex24.
1626 * posix/bug-regex24.c: New file.
1628 2004-11-12 Paolo Bonzini <bonzini@gnu.org>
1630 * posix/regexec.c (check_dst_limits_calc_pos_1): Use the map to
1631 cut recursive paths. Make exit condition more precise.
1632 (match_ctx_add_entry): Initialize the map.
1633 * posix/regex_internal.h (struct re_backref_cache_entry): Add a map of
1634 reachable subexpression nodes from each backreference cache entry.
1636 2004-11-10 Jakub Jelinek <jakub@redhat.com>
1638 * sysdeps/unix/sysv/linux/setreuid.c: Remove sys/syscall.h,
1639 sys/types.h, linux/posix_types.h, sysdep.h and pthread-functions.h
1640 includes. Include setxid.h. Use INLINE_SETXID_SYSCALL macro
1641 instead of INLINE_SYSCALL, kill the HAVE_PTR__NPTL_SETXID guarded
1643 * sysdeps/unix/sysv/linux/setegid.c: Likewise.
1644 * sysdeps/unix/sysv/linux/setuid.c: Likewise.
1645 * sysdeps/unix/sysv/linux/seteuid.c: Likewise.
1646 * sysdeps/unix/sysv/linux/setgid.c: Likewise.
1647 * sysdeps/unix/sysv/linux/setresuid.c: Likewise.
1648 * sysdeps/unix/sysv/linux/setresgid.c: Likewise.
1649 * sysdeps/unix/sysv/linux/setregid.c: Likewise.
1650 * sysdeps/unix/sysv/linux/i386/setegid.c: Likewise.
1651 * sysdeps/unix/sysv/linux/i386/setreuid.c: Likewise.
1652 * sysdeps/unix/sysv/linux/i386/setuid.c: Likewise.
1653 * sysdeps/unix/sysv/linux/i386/seteuid.c: Likewise.
1654 * sysdeps/unix/sysv/linux/i386/setgid.c: Likewise.
1655 * sysdeps/unix/sysv/linux/i386/setresuid.c: Likewise.
1656 * sysdeps/unix/sysv/linux/i386/setresgid.c: Likewise.
1657 * sysdeps/unix/sysv/linux/i386/setregid.c: Likewise.
1658 * sysdeps/unix/sysv/linux/alpha/setreuid.c: Likewise.
1659 Formatting. Change signed int into int.
1660 * sysdeps/unix/sysv/linux/alpha/setresuid.c: Likewise.
1661 * sysdeps/unix/sysv/linux/alpha/setresgid.c: Likewise.
1662 * sysdeps/unix/sysv/linux/alpha/setregid.c: Likewise.
1663 * sysdeps/unix/sysv/linux/syscalls.list (setresuid, setresgid):
1665 * sysdeps/unix/setxid.h: New file.
1667 * Rules (binaries-static): Add xtests-static.
1668 * Makeconfig (run-program-prefix): Filter also xtests-static.
1670 2004-11-09 Paul Eggert <eggert@cs.ucla.edu.
1673 * time/difftime.c: Fix a double-rounding bug on hosts with
1674 64-bit time_t and long double being IEEE double. Also, port
1675 to more valid C99 hosts, even those that have padding bits.
1676 Don't include <values.h> since it is marked as an obsolescent
1677 interface. Include <limits.h>, <float.h>, and <stdint.h> instead.
1678 (TYPE_BITS, TYPE_FLOATING, TYPE_SIGNED): New macros.
1679 (subtract): New static function, that works correctly without
1680 double-rounding, even on hosts with 64-bit time_t. Also cater
1681 to hosts with padding bits.
1682 (__difftime): Use it. Use DBL_MANT_DIG and LDBL_MANT_DIG to
1683 determine whether floating types are wide enough: the old
1684 test (which used sizeof) could in theory report the wrong results
1685 on hosts with padding bits in floating-point values.
1687 2004-11-11 Simon Josefsson <jas@extundo.com>
1690 * sysdeps/generic/strtok_r.c [HAVE_CONFIG_H]: Include config.h.
1691 [!_LIBC]: Include strtok_r.h (in gnulib), map __strtok_r to
1692 strtok_r and __rawmemchr to strch.
1693 (__strtok_r): Use C89 prototype.
1694 [weak_alias]: Move calls to libc_hidden_def and weak_alias into
1697 2004-11-10 Paul Eggert <eggert@cs.ucla.edu>
1700 * time/mktime.c (SHR): New macro, which is a portable
1701 substitute for >> that should work even on Crays.
1702 (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
1703 Problem reported by Mark D. Baushke in
1704 <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
1706 2004-11-09 Paolo Bonzini <bonzini@gnu.org>
1708 * posix/regexec.c (match_ctx_free_subtops): Remove, merge into...
1709 (match_ctx_clean): ... this function.
1710 (match_ctx_free): Call match_ctx_clean.
1712 * posix/regexec.c (transit_state): Remove the check for
1713 out-of-bounds buffers.
1714 (check_matching): Check here for out-of-bounds buffers.
1715 (re_search_internal): Store into match_kind a set of bits
1716 indicating which incantation of fastmap scanning must be
1717 used. Use a switch statement instead of multiple ifs.
1718 Exit the final "for (;;)" with goto free_return unless
1719 the match succeeded, thus simplifying some conditionals.
1721 * posix/regex_internal.c (re_string_reconstruct,
1722 re_string_context_at): Add several branch predictions for
1723 case-sensitive matching and no transition table being used.
1725 2004-11-10 Ulrich Drepper <drepper@redhat.com>
1727 * posix/tst-waitid.c: Don't use error to print error message, they
1728 won't end up in the .out file.
1730 2004-11-09 Ulrich Drepper <drepper@redhat.com>
1732 * nscd/nscd-client.h (libc_locked_map_ptr): Add new first
1733 parameter, used as class for definition.
1734 * nscd/nscd_getpw_r.c: Adjust for libc_locked_map_ptr change.
1735 (pw_map_free): Ensure no crash after memory is freed.
1736 * nscd/nscd_getgr_r.c: Likewise. Make map externally visible.
1737 * nscd/nscd_gethst_r.c: Likewise.
1738 * nscd/nscd_getai.c: Use map from nscd_gethost.c.
1739 * nscd/nscd_initgroups.c: Use map from nscd_getgr.c.
1741 * nscd/nscd_getai.c: Add some checks to detect corrupt databases.
1742 * nscd/nscd_getgr_r.c: Likewise
1743 * nscd/nscd_gethst_r.c: Likewise.
1744 * nscd/nscd_getpw_r.c: Likewise
1746 2004-11-09 Jakub Jelinek <jakub@redhat.com>
1748 * posix/regcomp.c (calc_eclosure_iter): Don't access
1749 dfa->edests[node].elems[0] if dfa->edests[node].nelem == 0.
1750 * posix/rxspencer/tests: Add 5 new tests.
1752 2004-11-09 Ulrich Drepper <drepper@redhat.com>
1754 * sysdeps/unix/sysv/linux/ifaddrs.c: Determine sin6_scope_id field
1755 value correctly. Patch by Mitsuru Kanda <mk@karaba.org>.
1757 2004-11-04 Jakub Jelinek <jakub@redhat.com>
1759 * libio/fileops.c (_IO_new_file_seekoff): If mode is 0 and
1760 fp->_offset == _IO_pos_BAD, just call _IO_SYSSEEK (fp, 0, dir)
1761 and if successful set fp->_offset.
1762 * libio/Makefile (tests): Add bug-ungetc3.
1763 * libio/bug-ungetc3.c: New test.
1765 2004-11-03 Marcus Brinkmann <marcus@gnu.org>
1767 * sysdeps/gnu/_G_config.h (_G_HAVE_MREMAP): Define symbol.
1768 * sysdeps/mach/hurd/_G_config.h: New file.
1769 * libio/fileops.c (mmap_remap_check) [__linux__]: Replaced with
1772 2004-11-08 Ulrich Drepper <drepper@redhat.com>
1774 * posix/regcomp.c (utf8_sb_map): Define.
1775 (free_dfa_content): Don't free dfa->sb_char if it's a pointer to
1777 (init_dfa): Use utf8_sb_map instead of initializing memory when the
1780 2004-11-03 Paolo Bonzini <bonzini@gnu.org>
1782 * posix/regcomp.c (init_dfa): Get the codeset name outside glibc as
1783 well. Check if it is spelled UTF8 as well as UTF-8, and check
1784 case-insensitively. Set dfa->map_notascii manually when outside
1786 * posix/regex_internal.c (build_wcs_upper_buffer) [!_LIBC]: Enable
1787 optimizations based on map_notascii.
1788 * posix/regex_internal.h [HAVE_LANGINFO_H || HAVE_LANGINFO_CODESET
1789 || _LIBC]: Include langinfo.h.
1791 * posix/regex_internal.h (struct re_backref_cache_entry): Add "more"
1793 * posix/regexec.c (check_dst_limits): Hoist computation of the source
1794 and destination bkref_idx out of the loop. Pass it to
1795 check_dst_limits_calc_pos.
1796 (check_dst_limits_calc_pos_1): New function, containing the recursive
1797 loop of check_dst_limits_calc_pos; uses the "more" field of
1798 struct re_backref_cache to control the loop.
1799 (check_dst_limits_calc_pos): Store into "boundaries" the position
1800 relative to lim's start and end positions. Do not accept eclosures,
1801 accept bkref_idx instead. Call check_dst_limits_calc_pos_1 to do the
1803 (sift_states_bkref): Use the "more" field of struct re_backref_cache
1804 to control the loop. A big "if" was turned into a continue and the
1805 function was reindented.
1806 (get_subexp): Use the "more" field of struct re_backref_cache
1807 to control the loop.
1808 (match_ctx_add_entry): Initialize the bkref_ents' "more" field.
1809 (search_cur_bkref_entry): Return -1 if out of bounds.
1811 * posix/regexec.c (empty_set): Remove.
1812 (sift_states_backward): Remove cur_src variable. Move inner loop
1813 to build_sifted_states.
1814 (build_sifted_states): Extract from sift_states_backward. Do not
1816 (update_cur_sifted_state): Do not use empty_set. Special case
1817 dest_nodes->nelem == 0.
1819 * posix/regex_internal.h (struct re_backref_cache_entry): Remove flag
1821 (struct re_sift_context_t): Remove cur_bkref, cls_subexp_idx,
1822 check_subexp fields. Move limits last.
1823 * posix/regexec.c (match_ctx_clear_flag): Remove.
1824 (sift_ctx_init): Remove check_subexp parameter. Do not set removed
1825 fields. Callers adjusted.
1826 (expand_bkref_cache): Remove last_str parameter. Callers adjusted.
1827 (re_search_internal): Remove fast_translate variable.
1828 (update_cur_sifted_state): Pass candidates as the final parameter
1829 to sift_states_bkref.
1830 (sift_states_bkref): Change last unused parameter to be "candidates",
1831 do not fetch candidates into a local variable.
1832 Remove dead test for "node == sctx->bkref", and the cur_bkref_idx
1834 Remove loops that set/reset the flag field of backref cache entries.
1835 (check_arrival_add_next_nodes): Use a signed int to hold the return
1836 value of re_node_set_insert.
1837 (group_nodes_into_DFAstates): Likewise.
1838 (match_ctx_add_entry): Do not set the flag field of the new entry.
1840 2004-11-05 Roland McGrath <roland@redhat.com>
1842 * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Define
1843 _dl_sysinfo_dso under [NEED_DL_SYSINFO_DSO] as well.
1844 * elf/rtld.c (dl_main): Set up GLRO(dl_sysinfo_dso) under
1845 [NEED_DL_SYSINFO_DSO] as well.
1846 * sysdeps/generic/dl-sysdep.c (_dl_show_auxv): Always include
1847 AT_SYSINFO and AT_SYSINFO_EHDR in name table.
1848 (_dl_sysdep_start) [NEED_DL_SYSINFO_DSO]: Match AT_SYSINFO_EHDR.
1849 * elf/dl-support.c (_dl_sysinfo_dso): Define also under
1850 [NEED_DL_SYSINFO_DSO].
1851 (_dl_aux_init) [NEED_DL_SYSINFO || NEED_DL_SYSINFO_DSO]:
1852 Match AT_SYSINFO_EHDR and set GL(dl_sysinfo_dso).
1854 2004-11-05 Roland McGrath <roland@redhat.com>
1856 * manual/errno.texi (Error Codes): Revert last change for now.
1857 * sysdeps/gnu/errlist.c: Regenerated.
1859 2004-11-04 Roland McGrath <roland@frob.com>
1861 * Makeconfig (link-libc, rpath-dirs): Remove AIX cruft definitions.
1862 (LDFLAGS-rpath-ORIGIN, LDFLAGS-soname-fname): Likewise.
1863 (LDFLAGS-rdynamic, LDFLAGS-Bsymbolic): Likewise.
1864 ($(common-objpfx)gnu/lib-names.stmp): Likewise.
1866 2004-11-01 Jakub Jelinek <jakub@redhat.com>
1868 * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h [__WORDSIZE == 32]
1869 (elf_fpxregset_t): New type.
1870 (struct elf_prpsinfo): If __WORDSIZE == 32, change pr_[ug]id type
1871 to unsigned short int.
1872 * sysdeps/unix/sysv/linux/x86_64/sys/user.h
1873 (struct user_fpregs_struct): Fix comment.
1874 * sysdeps/i386/fpu/bits/mathdef.h (float_t, double_t): If
1875 __FLOAT_EVAL_METHOD__ is defined and 0, typedef to float resp. double.
1876 * sysdeps/x86_64/fpu/bits/mathdef.h: Include bits/wordsize.h.
1877 (float_t, double_t): If -m32 and not -mfpmath=sse, typedef to
1879 * sysdeps/x86_64/fpu/bits/fenv.h: Include bits/wordsize.h.
1880 (fenv_t): Remove __mxcsr field for -m32.
1882 2004-11-04 Jakub Jelinek <jakub@redhat.com>
1884 * libio/ftello.c (ftello): Don't subtract save_end - save_base
1885 if pos is _IO_pos_BAD.
1886 * libio/ftello64.c (ftello64): Likewise.
1887 * libio/iofgetpos.c (_IO_new_fgetpos): Likewise.
1888 * libio/iofgetpos64.c (_IO_new_fgetpos64): Likewise.
1889 * libio/oldiofgetpos.c (_IO_old_fgetpos): Likewise.
1890 * libio/oldiofgetpos64.c (_IO_old_fgetpos64): Likewise.
1891 * libio/ioftell.c (_IO_ftell): Likewise.
1892 Cast to long int instead of off_t when checking for overflow.
1894 2004-11-04 Richard Henderson <rth@redhat.com>
1896 * sysdeps/unix/sysv/linux/alpha/register-dump.h (regnames): Align.
1898 (register_dump): Rewrite to generate into a flat buffer instead
1901 2004-11-02 Jakub Jelinek <jakub@redhat.com>
1903 * debug/tst-chk1.c (ret): New volatile variable.
1904 (CHK_FAIL_END): Remove redundant ret setting.
1905 (do_test): Remote ret variable.
1907 2004-01-03 Paolo Bonzini <bonzini@gnu.org>
1909 * posix/regex_internal.h (__regfree) [!_LIBC]: Define to regfree.
1911 2004-11-03 Marcus Brinkmann <marcus@gnu.org>
1913 * sysdeps/generic/utime.c: Include <stddef.h>.
1915 * sysdeps/generic/sysconf.c: Include <grp.h> and <pwd.h>.
1917 * sysdeps/generic/tempname.c (__path_search): Add missing argument
1920 2004-10-31 Mariusz Mazur <mmazur@kernel.pl>
1922 * sysdeps/unix/sysv/linux/alpha/setregid.c: New file.
1923 * sysdeps/unix/sysv/linux/alpha/setresgid.c: New file.
1924 * sysdeps/unix/sysv/linux/alpha/setresuid.c: New file.
1925 * sysdeps/unix/sysv/linux/alpha/setreuid.c: New file.
1927 2004-10-27 Derek R. Price <derek@ximbiot.com>
1929 [BZ #487] This change is imported from gnulib.
1930 * time/mktime.c (not_equal_tm) [DEBUG]: Remove redundant check.
1932 2004-10-24 Paul Eggert <eggert@cs.ucla.edu>
1935 * time/tst-mktime.c (main): Don't assume that mktime fails
1936 when given time stamps before 1970. It returns negative
1937 time_t values instead, for compatibility with BSD.
1939 * time/tst-mktime2.c: New file.
1940 * time/Makefile (tests): Add it.
1942 [BZ #473] Import from gnulib. Revamp to avoid several problems near
1943 time_t extrema, and on hosts with 64-bit time_t and 32-bit int.
1944 This fixes Debian bug 177940.
1945 * time/mktime.c (TIME_T_MIDPOINT): New macro.
1946 (ydhms_diff): Renamed from ydhms_tm_diff, with a new signature,
1947 which avoids overflow problems on hosts with 64-bit time_t and
1948 32-bit int. All callers changed. Now an inline function.
1949 Verify at compile-time that long int is wide enough to avoid
1950 these overflow problems.
1951 (guess_time_tm): New function.
1952 (__mktime_internal): Use it. Avoid overflow when computing yday on
1953 hosts with 64-bit long and 32-bit int. Remove tests for 69;
1954 no longer needed. Use if rather than #ifdef for LEAP_SECONDS_POSSIBLE
1955 so that the code is checked by more compilers.
1956 Do not rely on floating point to probe: stick to integer arithmetic,
1957 to avoid potential porting problems.
1958 Repair potential overflow correctly in the Southern Hemisphere.
1959 (localtime_offset): Add a FIXME for the case where time_t is unsigned.
1961 2004-10-30 Andreas Schwab <schwab@suse.de>
1963 * sysdeps/m68k/dl-machine.h (elf_machine_rela)
1964 (elf_machine_rela_relative, elf_machine_lazy_rel): Mark auto
1967 2004-10-30 Andreas Schwab <schwab@suse.de>
1969 * sysdeps/unix/sysv/linux/waitid.c: Include <stddef.h> for NULL.
1971 2004-10-30 Ulrich Drepper <drepper@redhat.com>
1973 * malloc/malloc.c (_int_free): Use unique comments for the error
1976 2004-10-28 Roland McGrath <roland@frob.com>
1978 * sysdeps/mach/hurd/i386/tls.h (_hurd_tls_fork): Use i386_thread_state
1979 instead of machine_thread_state.
1981 2004-10-28 Roland McGrath <roland@redhat.com>
1983 * sysdeps/unix/sysv/linux/syscalls.list: Remove setaltroot.
1985 2004-10-28 Ulrich Drepper <drepper@redhat.com>
1987 * elf/dl-open.c (dl_open_worker): Remove reference to glibcbug script.
1989 2004-10-27 Ulrich Drepper <drepper@redhat.com>
1991 * elf/dl-load.c (_dl_map_object): Use cache_rpath to check for
1992 existing rpath in main executable, not explicit test.
1994 2004-10-27 Jakub Jelinek <jakub@redhat.com>
1996 * include/resolv.h (_res_opcodes): New extern.
1997 Add libresolv_hidden_proto.
1998 * resolv/res_debug.c (_res_opcodes): Remove.
1999 (__p_class_syms, __p_type_syms): Add libresolv_hidden_proto
2000 and libresolv_hidden_data_def. Remove attribute_hidden.
2001 * resolv/res_mkquery (_res_opcodes): Remove.
2002 * resolv/res_data.c (_res_opcodes): Remove attribute_hidden.
2003 Add libresolv_hidden_data_def.
2005 2004-10-27 Ulrich Drepper <drepper@redhat.com>
2007 * elf/dl-open.c (_dl_open): Don't allow explicitly opening a DSO
2008 into an empty namespace.
2010 * elf/dl-fini.c (_dl_fini): Fix search for map in maps array.
2011 Reverse order of namespaces.
2012 * elf/Makefile: Add rules to build and run tst-dlmopen3.
2013 * elf/tst-dlmopen3.c: New file.
2014 * elf/tst-dlmopen1mod.c: Add check whether constructor runs.
2016 2004-10-27 Jakub Jelinek <jakub@redhat.com>
2018 * sysdeps/generic/glob.c (globfree): Clear gl_pathv after freeing it.
2019 * posix/Makefile: Add rules to build and run bug-glob2 test.
2020 * posix/bug-glob2.c: New test.
2022 2004-10-27 Roland McGrath <roland@frob.com>
2024 * sysdeps/mach/hurd/i386/tls.h (HURD_TLS_DESC_DECL): New macro.
2025 (_hurd_tls_init): Use it.
2026 (_hurd_tls_fork): New function.
2027 * sysdeps/mach/hurd/fork.c (__fork) [USE_TLS]: Call it.
2029 2004-10-26 Roland McGrath <roland@frob.com>
2031 * sysdeps/mach/hurd/i386/tls.h (_hurd_tls_init): Initialize TCB->tcb.
2033 2004-10-26 Jakub Jelinek <jakub@redhat.com>
2035 * sysdeps/gnu/netinet/udp.h (struct udphdr): Use u_int16_t
2036 type instead of uint16_t. Formatting.
2038 2004-10-25 Roland McGrath <roland@redhat.com>
2040 * login/openpty.c (openpty): Add libutil_hidden_def.
2042 * nss/nss_files/files-parse.c (nss_files_parse_hidden_def): Define to
2043 either libc_hidden_def or libnss_files_hidden_def, not hidden_def.
2044 This file is also compiled into libnss_hesiod by #include.
2046 2004-10-25 Roland McGrath <roland@frob.com>
2048 * sysdeps/unix/bsd/hp: Directory and all files removed.
2049 These are now in the ports repository.
2050 * sysdeps/unix/bsd/osf: Likewise.
2051 * sysdeps/unix/bsd/sequent: Likewise.
2052 * sysdeps/unix/bsd/sony: Likewise.
2053 * sysdeps/unix/bsd/ultrix4: Likewise.
2054 * sysdeps/unix/sysv/aix: Likewise.
2055 * sysdeps/unix/sysv/hpux: Likewise.
2056 * sysdeps/unix/sysv/irix4: Likewise.
2057 * sysdeps/unix/sysv/isc2.2: Likewise.
2058 * sysdeps/unix/sysv/minix: Likewise.
2059 * sysdeps/unix/sysv/sco3.2.4: Likewise.
2060 * sysdeps/unix/sysv/sco3.2: Likewise.
2061 * sysdeps/unix/sysv/sysv4: Likewise.
2063 * configure.in (ASM_LINE_SEP): Move this setting to ...
2064 * sysdeps/hppa/configure.in: ... here, new file.
2065 * sysdeps/hppa/configure: New generated file.
2066 * configure: Regenerated.
2068 2004-10-25 Kaz Kojima <kkojima@rr.iij4u.or.jp>
2070 * sysdeps/sh/dl-machine.h: Include sysdep.h.
2071 (ELF_MACHINE_RUNTIME_TRAMPOLINE): Add CFI directives.
2072 (elf_machine_runtime_setup): Add always_inline attribute.
2073 (_dl_start_user): Pass the correct environ.
2074 (elf_machine_rela): Replace static inline by auto inline, add
2075 always_inline attribute.
2076 (elf_machine_rela_relative): Likewise.
2077 (elf_machine_lazy_rel): Likewise.
2079 2004-10-24 Ulrich Drepper <drepper@redhat.com>
2081 * nis/nis_call.c: Pretty printing. Minor cleanups.
2082 * nis/nis_addmember.c (nis_addmember): Add assert to check buffer
2085 * resolv/nss_dns/dns-host.c: Avoid using PLTs.
2086 * include/libc-symbols.h: Define hidden attribute macros for
2087 libnss_nisplus and libutil.
2088 * include/utmp.h: Add libutil_hidden_proto for login_tty.
2089 * login/login_tty.c: Add libutil_hidden_def.
2090 * nis/nisplus-parser.h: Add libnss_nisplus_hidden_proto for parsers.
2091 * nis/nss_nisplus/nisplus-parser.c: Add libnss_nisplus_hidden_def.
2092 * include/pty.h: New file.
2093 * include/rpcsvc/yp.h: New file.
2094 * include/rpcsvc/ypclnt.h: New file.
2095 * include/rpcsvc/ypupd.h: New file.
2096 * include/libc-symbols.h: Define hidden attribute macros for libnsl.
2097 * include/rpcsvc/nislib.h: Use libnsl_hidden_proto for various
2099 * nis/nis_add.c: Add libnsl_hidden_def. Minor optimizations.
2100 * nis/nis_call.c: Likewise.
2101 * nis/nis_clone_obj.c: Likewise.
2102 * nis/nis_defaults.c: Likewise.
2103 * nis/nis_domain_of_r.c: Likewise.
2104 * nis/nis_error.c: Likewise.
2105 * nis/nis_file.c: Likewise.
2106 * nis/nis_free.c: Likewise.
2107 * nis/nis_local_names.c: Likewise.
2108 * nis/nis_lookup.c: Likewise.
2109 * nis/nis_modify.c: Likewise.
2110 * nis/nis_print.c: Likewise.
2111 * nis/nis_remove.c: Likewise.
2112 * nis/nis_subr.c: Likewise.
2113 * nis/nis_table.c: Likewise.
2114 * nis/nis_util.c: Likewise.
2115 * nis/yp_xdr.c: Likewise.
2116 * nis/ypclnt.c: Likewise.
2117 * nis/ypupdate_xdr.c: Likewise.
2119 * resolv/res_send.c (send_dg): Cope with failures.
2121 * include/libc-symbols.h: Define hidden attribute macros for
2123 * include/netdb.h: Use libnss_files_hidden_proto for the parsers
2124 defined in libnss_files, not libc_hidden_proto.
2125 * include/netinet/ether.h: Likewise.
2126 * include/rpc/netdb.h: Likewise.
2127 * nss/nss_files/files-parse.c: Use hidden_def in parser definitions
2128 instead of libc_hidden_def.
2129 * nss/nss_files/files-netgrp.c: Add libnss_files_hidden_def to
2130 _nss_netgroup_parseline definition.
2132 2004-10-23 Roland McGrath <roland@frob.com>
2134 * sysdeps/mach/hurd/i386/tls.h (_hurd_tls_init): Don't return early
2135 after an RPC succeeds.
2137 * sysdeps/vax, sysdeps/unix/bsd/vax: Directories and all files removed.
2138 These are now in the ports repository.
2139 * sysdeps/tahoe, sysdeps/unix/bsd/tahoe: Likewise.
2140 * sysdeps/cris, sysdeps/unix/sysv/linux/cris: Likewise.
2141 * sysdeps/am29k, sysdeps/i860, sysdeps/i960, sysdeps/m88k: Likewise.
2142 * sysdeps/standalone, sysdeps/z8000: Likewise.
2144 2004-10-23 Ulrich Drepper <drepper@redhat.com>
2146 * resolv/res_send.c (send_dg): Combine write and read to socket
2149 2004-10-22 Roland McGrath <roland@frob.com>
2151 * Makefile (%.bz2, %.gz): Move these pattern rules ...
2152 * Makerules: ... to here.
2154 2001-10-31 Alexandre Oliva <aoliva@redhat.com>
2156 * elf/elf.h: Add R_MN10300_* relocation numbers.
2158 2004-10-22 Paul Eggert <eggert@cs.ucla.edu>
2160 [BZ #471] Fix imported from gnulib.
2161 * time/mktime.c (leapyear, ydms_tm_diff): Year is of type
2162 long int, not int, to avoid problems when tm_year == INT_MAX
2164 (__mktime_intenral): Compute year using long int arithmetic,
2165 not int arithmetic, to avoid problems on hosts where time_t
2166 and long are 64 bits but int is 32.
2168 [BZ #468] Import a fix from gnulib.
2169 * time/mktime.c [! DEBUG]: Do not include <string.h>.
2170 It's needed only if DEBUG is nonzero.
2172 [BZ #470] Import fix from gnulib.
2173 * time/mktime.c [!_LIBC] (__mktime_internal): Define to
2174 mktime_internal, to avoid clashes with any __mktime_internal
2175 function defined in the standard library.
2177 [BZ #469] Imported from gnulib.
2178 * time/mktime.c (__isleap): Remove; all uses replaced by:
2179 (leapyear): New function, which avoids overflow by not adding
2180 1900 to year before testing whether it is a leap year.
2182 [BZ #472] Imported from gnulib.
2183 * time/mktime.c (Local Variables): Remove -DHAVE_TIME_R_POSIX;
2186 2004-10-22 Ulrich Drepper <drepper@redhat.com>
2188 * resolv/res_send.c: Remove compatibility code which is unused in
2189 glibc and probably bitrotten.
2191 * debug/execinfo.h: Remove __THROW from backtrace prototype.
2193 2004-10-22 Jakub Jelinek <jakub@redhat.com>
2195 * sysdeps/i386/Makefile (CFLAGS-backtrace.c): Add -fexceptions.
2196 * sysdeps/i386/backtrace.c: Include <bits/libc-lock.h>, <dlfcn.h>,
2197 <stdlib.h> and <unwind.h>. Remove <bp-checks.h> include.
2198 (struct trace_arg): New type.
2199 (unwind_backtrace, unwind_getip, unwind_getcfa, unwind_getgr): New
2200 fn pointers resp. macros.
2201 (init, backtrace_helper): New functions.
2202 (__backtrace): Rewritten to use _Unwind_Backtrace first and fall
2203 back to frame pointer walking.
2205 2004-10-22 Ulrich Drepper <drepper@redhat.com>
2207 * sysdeps/unix/sysv/linux/Versions: Things are still in flux, it
2208 seems. Undo last additions.
2210 2004-10-21 Ulrich Drepper <drepper@redhat.com>
2212 * posix/execvp.c (execvp): Also ignore ENODEV and ETIMEDOUT errno
2215 2004-10-20 Roland McGrath <roland@redhat.com>
2217 * Makeconfig ($(common-objpfx)shlib-versions.v.i): Check also
2218 $(config-sysdirs) for shlib-versions files.
2220 * Makeconfig ($(common-objpfx)soversions.i): Replace shell loop with
2222 * scripts/soversions.awk: ... this new file. Collect lib info and
2223 match any DEFAULT line before emitting anything, so DEFAULT can come
2224 later in the concatenation of shlib-versions files.
2226 * manual/errno.texi (Error Codes): Add ENOKEY, EKEYEXPIRED,
2227 EKEYREVOKED, EKEYREJECTED.
2228 * sysdeps/unix/sysv/linux/Versions (libc: GLIBC_2.3.4): New errlist.
2229 * sysdeps/gnu/errlist.c: Regenerated
2231 * sysdeps/gnu/errlist-compat.awk: Don't bail if Versions gives a count
2232 higher than ERR_MAX reports. Instead, emit a #define ERR_MAX.
2233 * sysdeps/gnu/Makefile ($(objpfx)errlist-compat.h): New target.
2234 (generated): Add errlist-compat.h.
2235 * sysdeps/gnu/errlist.awk: Make output #include <errlist-compat.h> to
2236 define ERR_MAX and use that for table size.
2238 2004-10-20 Ulrich Drepper <drepper@redhat.com>
2240 * sysdeps/unix/sysv/linux/syscalls.list: Add entries for setaltroot,
2241 key_add, key_request, and keyctl syscalls.
2242 * sysdeps/unix/sysv/linux/Versions: Export them.
2244 2004-10-19 Roland McGrath <roland@frob.com>
2246 * sysdeps/mach/readonly-area.c: New file.
2248 2004-10-19 Ulrich Drepper <drepper@redhat.com>
2250 * elf/Versions [ld, GLIBC_PRIVATE]: Add _dl_debug_state.
2251 * elf/dl-debug.c (_dl_debug_state): Add rtld_hidden_def.
2252 * sysdeps/generic/ldsodefs.h (_dl_debug_state): Don't mark as
2253 hidden but use rtld_hidden_proto.
2255 2004-10-19 Alfred M. Szmidt <ams@gnu.org>
2257 * sysdeps/generic/readonly-area.c (__readonly_str): Renamed to ...
2258 (__readonly_area): ... this.
2260 2004-10-18 Jakub Jelinek <jakub@redhat.com>
2262 * sysdeps/generic/strcpy_chk.c (__strcpy_chk): Speed up by checking
2263 destlen only every 4 bytes.
2265 2004-10-19 Ulrich Drepper <drepper@redhat.com>
2267 * nss/getent.c (hosts_keys): Let inet_pton decide whether the
2268 string is an address or not.
2270 2004-10-19 Jakub Jelinek <jakub@redhat.com>
2272 * elf/dl-addr.c (_dl_addr): Don't look at STT_TLS symbols.
2273 Use DL_SYMBOL_ADDRESS to set dli_saddr.
2275 * debug/Makefile (catchsegv): Prefix $LIB with a backslash.
2277 2004-10-19 Ulrich Drepper <drepper@redhat.com>
2279 * debug/Makefile ($(objpfx)catchsegv): To support multilib
2280 platforms, use $LIB in path to slibdir.
2282 2004-10-19 Jakub Jelinek <jakub@redhat.com>
2284 * debug/catchsegv.sh: Update copyright year.
2285 Use mktemp to create segv_output file.
2287 2004-10-18 Jakub Jelinek <jakub@redhat.com>
2289 * elf/dl-libc.c (__libc_dlsym_private, __libc_register_dl_open_hook):
2291 (__libc_dlopen_mode): Call __libc_register_dl_open_hook and
2292 __libc_register_dlfcn_hook.
2293 * dlfcn/Makefile (routines, elide-routines.os): Set.
2294 Add rules to build and test tststatic2.
2295 * dlfcn/tststatic2.c: New test.
2296 * dlfcn/modstatic2.c: New test module.
2297 * dlfcn/dladdr.c: Call _dlfcn_hook from libdl.so if not NULL.
2298 Define __ prefixed routine in libc.a and in libdl.a just call it.
2299 * dlfcn/dladdr1.c: Likewise.
2300 * dlfcn/dlclose.c: Likewise.
2301 * dlfcn/dlerror.c: Likewise.
2302 * dlfcn/dlinfo.c: Likewise.
2303 * dlfcn/dlmopen.c: Likewise.
2304 * dlfcn/dlopen.c: Likewise.
2305 * dlfcn/dlopenold.c: Likewise.
2306 * dlfcn/dlsym.c: Likewise.
2307 * dlfcn/dlvsym.c: Likewise.
2308 * dlfcn/sdladdr.c: New file.
2309 * dlfcn/sdladdr1.c: New file.
2310 * dlfcn/sdlclose.c: New file.
2311 * dlfcn/sdlerror.c: New file.
2312 * dlfcn/sdlinfo.c: New file.
2313 * dlfcn/sdlopen.c: New file.
2314 * dlfcn/sdlsym.c: New file.
2315 * dlfcn/sdlvsym.c: New file.
2316 * dlfcn/Versions (libdl): Export _dlfcn_hook@GLIBC_PRIVATE.
2317 * include/dlfcn.h (DL_CALLER_DECL, DL_CALLER RETURN_ADDRESS): Define.
2318 (struct dlfcn_hook): New type.
2319 (_dlfcn_hook): New extern decl.
2320 (__dlopen, __dlclose, __dlsym, __dlerror, __dladdr, __dladdr1,
2321 __dlinfo, __dlmopen, __libc_dlsym_private,
2322 __libc_register_dl_open_hook, __libc_register_dlfcn_hook): New
2324 (__dlvsym): Use DL_CALLER_DECL.
2325 * include/libc-symbols.h: Define libdl_hidden_proto and friends.
2327 * malloc/arena.c (_dl_open_hook): Extern decl.
2328 (ptmalloc_init): Don't call _dl_addr when dlopened from statically
2329 linked programs but don't use brk for them either.
2331 2004-10-18 Roland McGrath <roland@redhat.com>
2333 * dlfcn/bug-dlsym1.c (main): Remove bogus setenv call.
2335 2004-10-18 Ulrich Drepper <drepper@redhat.com>
2337 * elf/dl-open.c (dl_open_worker): Avoid dereferencing map in
2338 statically linked code if there might none be found.
2340 2004-10-06 Maciej W. Rozycki <macro@mips.com>
2342 * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h
2343 (__SYSCALL_CLOBBERS): Add "memory".
2344 * sysdeps/unix/sysv/linux/mips/mips64/n32/sysdep.h
2345 (__SYSCALL_CLOBBERS): Likewise.
2346 * sysdeps/unix/sysv/linux/mips/mips64/n64/sysdep.h
2347 (__SYSCALL_CLOBBERS): Likewise.
2349 2004-10-17 Ulrich Drepper <drepper@redhat.com>
2351 * include/libc-symbols.h: Define libresolv_hidden_proto and friends.
2352 * include/resolv.h: Add libresolv_hidden_proto for symbols defined,
2353 used, and exported in libresolv.
2354 * resolv/base64.c: Add libresolv_hidden_def.
2355 * resolv/gethnamaddr.c: Likewise.
2356 * resolv/ns_name.c: Likewise.
2357 * resolv/ns_netint.c: Likewise.
2358 * resolv/res_comp.c: Likewise.
2359 * resolv/res_data.c: Likewise.
2360 * resolv/res_debug.c: Likewise.
2361 * resolv/res_mkquery.c: Likewise.
2362 * resolv/res_query.c: Likewise.
2363 * resolv/res_send.c: Likewise.
2365 2004-10-15 Jakub Jelinek <jakub@redhat.com>
2367 * elf/dl-minimal.c (__chk_fail): New. Add rtld_hidden_def.
2368 * sysdeps/unix/sysv/linux/readonly-area.c: New file.
2369 * sysdeps/i386/i686/memmove.S (__memmove_chk): Add checking
2371 * sysdeps/i386/i686/memcpy.S (__memcpy_chk): Likewise.
2372 * sysdeps/i386/i686/mempcpy.S (__mempcpy_chk): Likewise.
2373 * sysdeps/i386/i686/memset.S (__memset_chk): Likewise.
2374 * sysdeps/i386/i686/memmove-chk.S: New file.
2375 * sysdeps/i386/i686/memcpy-chk.S: Likewise.
2376 * sysdeps/i386/i686/mempcpy-chk.S: Likewise.
2377 * sysdeps/i386/i686/memset-chk.S: Likewise.
2378 * sysdeps/generic/strcat-chk.c (__strcat_chk): Don't __chk_fail
2379 if exactly fitting into buffer.
2380 * sysdeps/generic/strncat-chk.c (__strncat_chk): Likewise.
2381 * sysdeps/generic/readonly-area.c: New file.
2382 * sysdeps/generic/strncpy-chk.c (__strncpy_chk): Only test
2384 * sysdeps/x86_64/memset.S (__memset_chk): Add checking routine.
2385 * sysdeps/x86_64/memcpy.S (__memcpy_chk): Likewise.
2386 * sysdeps/x86_64/mempcpy.S (__memcpy_chk): Define to __mempcpy_chk.
2387 * sysdeps/x86_64/memcpy-chk.S: New file.
2388 * sysdeps/x86_64/mempcpy-chk.S: Likewise.
2389 * sysdeps/x86_64/memset-chk.S: Likewise.
2390 * sysdeps/x86_64/strcpy-chk.S: Likewise.
2391 * sysdeps/x86_64/stpcpy-chk.S: Likewise.
2392 * argp/argp-xinl.c (__OPTIMIZE__): Define to 1 instead of nothing.
2393 * argp/argp-fs-xinl.c (__OPTIMIZE__): Likewise.
2394 * debug/tst-chk1.c: New test.
2395 * debug/tst-chk2.c: Likewise.
2396 * debug/tst-chk3.c: Likewise.
2397 * debug/test-strcpy_chk.c: Likewise.
2398 * debug/test-stpcpy_chk.c: Likewise.
2399 * debug/vsprintf_chk.c (__vsprintf_chk): If flags > 0, request
2400 _IO_FLAGS2_CHECK_PERCENT_N. Add libc_hidden_def.
2401 * debug/Makefile (routines): Add printf_chk, fprintf_chk, vprintf_chk,
2402 vfprintf_chk, gets_chk and readonly-area.
2403 (CFLAGS-*_chk.c): Set.
2404 (tests): Add tst-chk1, tst-chk2, tst-chk3, test-strcpy_chk and
2406 * debug/vprintf_chk.c: New file.
2407 * debug/printf_chk.c: Likewise.
2408 * debug/vfprintf_chk.c: Likewise.
2409 * debug/fprintf_chk.c: Likewise.
2410 * debug/gets_chk.c: Likewise.
2411 * debug/chk_fail.c (__chk_fail): Add libc_hidden_def.
2412 * debug/snprintf_chk.c (__snprintf_chk): Fix order of arguments
2413 passed to __vsnprintf_chk.
2414 * debug/Versions (libc): Export __printf_chk, __fprintf_chk,
2415 __vprintf_chk, __vfprintf_chk and __gets_chk @GLIBC_2.3.4.
2416 * debug/vsnprintf_chk.c (__vsnprintf_chk): Don't call
2417 __vsnprintf, instead create a temporary file with
2418 _IO_strn_jumps jumptable. If flags > 0, request
2419 _IO_FLAGS2_CHECK_PERCENT_N. Add libc_hidden_def.
2420 * libio/Makefile (headers): Add bits/stdio2.h.
2421 * libio/stdio.h: Include <bits/stdio2.h> if __USE_FORTIFY_LEVEL.
2422 (sprintf, snprintf, vsprintf, vsnprintf): Remove defines.
2423 * libio/strfile.h (_IO_strnfile): New type.
2424 (_IO_strn_jumps): New extern.
2425 * libio/vsnprintf.c (_IO_strnfile): Remove.
2426 (_IO_strn_jumps): Remove static.
2427 * libio/bits/stdio2.h: New file.
2428 * libio/vswprintf.c (_IO_strnfile): Rename type to...
2429 (_IO_wstrnfile): ...this. Adjust all uses.
2430 * libio/libio.h (_IO_FLAGS2_CHECK_PERCENT_N): Define.
2431 * stdio-common/vfprintf.c (STR_LEN): Define.
2432 (vfprintf): Add readonly_format variable.
2433 Handle _IO_FLAGS2_CHECK_PERCENT_N.
2434 (buffered_vfprintf): Copy _flags2.
2435 * include/stdio.h (__sprintf_chk, __snprintf_chk, __vsprintf_chk,
2436 __vsnprintf_chk, __printf_chk, __fprintf_chk, __vprintf_chk,
2437 __vfprintf_chk): New prototypes.
2438 (__vsprintf_chk, __vsnprintf_chk): Add libc_hidden_proto.
2439 * include/string.h (__memcpy_chk, __memmove_chk, __mempcpy_chk,
2440 __memset_chk, __strcpy_chk, __stpcpy_chk, __strncpy_chk, __strcat_chk,
2441 __strncat_chk): New prototypes.
2442 * include/bits/string3.h: New file.
2443 * include/sys/cdefs.h (__chk_fail): Add libc_hidden_proto
2444 and rtld_hidden_proto.
2445 * string/Makefile (headers): Add bits/string3.h.
2446 * string/bits/string3.h (bcopy, bzero): New defines.
2447 (memset, memcpy, memmove, strcpy, strncpy, strcat, strncat): Change
2448 macros so that inlines are used only if unknown destination size
2449 or side-effects in destination argument.
2450 (mempcpy, stpcpy): Likewise. Protect with #ifdef __USE_GNU.
2452 2004-09-16 Ulrich Drepper <drepper@redhat.com>
2454 * debug/Makefile (routines): Add *_chk.
2455 * debug/Versions (libc): Export __chk_fail, __memcpy_chk,
2456 __memmove_chk, __mempcpy_chk, __memset_chk, __stpcpy_chk,
2457 __strcat_chk, __strcpy_chk, __strncat_chk, __strncpy_chk,
2458 __sprintf_chk, __vsprintf_chk, __snprintf_chk, __vsnprintf_chk
2460 * debug/chk_fail.c: New file.
2461 * debug/snprintf_chk.c: Likewise.
2462 * debug/sprintf_chk.c: Likewise.
2463 * debug/vsnprintf_chk.c: Likewise.
2464 * debug/vsprintf_chk.c: Likewise.
2465 * include/features.h (_FORTIFY_SOURCE): Document, handle.
2466 (__USE_FORTIFY_LEVEL): Define.
2467 (__GNUC_PREREQ): Move to earlier location.
2468 * include/sys/cdefs.h (__chk_fail): New prototype.
2469 * libio/bits/stdio.h (sprintf, vsprintf, snprintf, vsnprintf):
2470 Define if __USE_FORTIFY_LEVEL.
2471 * misc/sys/cdefs.h (__bos, __bos0): Define.
2472 * string/string.h: Include <bits/string3.h> if __USE_FORTIFY_LEVEL.
2473 * bits/string/string3.h: New header.
2474 * sysdeps/generic/memcpy_chk.c: New file.
2475 * sysdeps/generic/memmove_chk.c: Likewise.
2476 * sysdeps/generic/mempcpy_chk.c: Likewise.
2477 * sysdeps/generic/memset_chk.c: Likewise.
2478 * sysdeps/generic/stpcpy_chk.c: Likewise.
2479 * sysdeps/generic/strcat_chk.c: Likewise.
2480 * sysdeps/generic/strcpy_chk.c: Likewise.
2481 * sysdeps/generic/strncat_chk.c: Likewise.
2482 * sysdeps/generic/strncpy_chk.c: Likewise.
2484 2004-10-17 Roland McGrath <roland@frob.com>
2486 * manual/memory.texi (Page Lock Functions): Typo fix.
2487 Reported by Carlos Maziero <maziero@ppgia.pucpr.br>
2489 2004-10-16 Alfred M. Szmidt <ams@kemisten.nu>
2491 * sysdeps/mach/hurd/Makefile (link-libc-static): Use
2492 `$(static-gnulib') instead of `$(gnulib)'.
2494 2004-10-17 Ulrich Drepper <drepper@redhat.com>
2496 * sunrpc/rpc_clntout.c: Avoid including rcsid into binary.
2497 * sunrpc/rpc_cout.c: Likewise.
2498 * sunrpc/rpc_hout.c: Likewise.
2499 * sunrpc/rpc_main.c: Likewise.
2500 * sunrpc/rpc_parse.c: Likewise.
2501 * sunrpc/rpc_sample.c: Likewise.
2502 * sunrpc/rpc_scan.c: Likewise.
2503 * sunrpc/rpc_svcout.c: Likewise.
2504 * sunrpc/rpc_tblout.c: Likewise.
2505 * sunrpc/rpc_util.c: Likewise.
2507 2004-10-15 Jakub Jelinek <jakub@redhat.com>
2509 * sysdeps/unix/sysv/linux/i386/sysdep.h (PUSHARGS_6, DOARGS_6,
2510 POPARGS_6, _PUSHARGS_6, _DOARGS_6, _POPARGS_6): Define.
2511 * sysdeps/unix/sysv/linux/i386/syscall.S (syscall): Handle 6 argument
2514 2004-10-15 Ulrich Drepper <drepper@redhat.com>
2516 * nscd/nscd.h (_PATH_NSCD_PASSWD_DB): Move to /var/db.
2517 (_PATH_NSCD_GROUP_DB): Likewise.
2518 (_PATH_NSCD_HOSTS_DB): Likewise.
2519 (_PATH_NSCD_XYZ_DB_TMP): New #define, point to /var/run.
2520 * nscd/connections.c (nscd_init): Non-persistent database files
2521 are created with the _PATH_NSCD_XYZ_DB_TMP path.
2522 * nscd/nscd.init: Create /var/db/nscd if necessary.
2524 2004-10-15 Richard Henderson <rth@redhat.com>
2526 * sysdeps/unix/sysv/linux/alpha/register-dump.h: New file.
2527 * sysdeps/unix/sysv/linux/alpha/sigcontextinfo.h (SIGCONTEXT): Add
2528 _code argument, pass sigcontext by pointer.
2529 (SIGCONTEXT_EXTRA_ARGS): Likewise.
2530 (GET_PC, GET_FRAME, GET_STACK): Expect ctx as pointer.
2532 2004-10-14 Richard Henderson <rth@redhat.com>
2534 * sysdeps/alpha/dl-machine.h (elf_machine_rela,
2535 elf_machine_rela_relative, elf_machine_lazy_rel): Mark auto
2538 * sysdeps/unix/sysv/linux/adjtime.c (ADJTIME): Use prototype
2540 * sysdeps/unix/sysv/linux/alpha/adjtime.c (ADJTIME): If
2541 __ASSUME_TIMEVAL64, define __adjtime directly rather than
2544 2004-10-14 Ulrich Drepper <drepper@redhat.com>
2546 * nscd/Makefile: When using compilers without -fpie support, also
2547 link with -lselinux if necessary.
2548 Patch by Arkadiusz Miskiewicz <arekm@pld-linux.org>.
2550 * nscd/connections.c (nscd_init): Remove file if not persistent
2551 and not shared. Patch by Jerome Borsboom <j.borsboom@erasmusmc.nl>.
2553 2004-10-14 Jakub Jelinek <jakub@redhat.com>
2555 * sysdeps/unix/sysv/linux/i386/setresuid.c: Handle
2556 defined __NR_setresuid32 && !defined __NR_setresuid.
2557 * sysdeps/unix/sysv/linux/i386/setresgid.c: Handle
2558 defined __NR_setresgid32 && !defined __NR_setresgid.
2560 * sysdeps/sparc/fpu/bits/mathinline.h (__signbitf, __signbit,
2561 __signbitl, sqrtf, sqrt, sqrtl, fdim, fdimf): Use __NTH macro.
2563 * sysdeps/generic/errno-loc.c: Don't undef #errno
2564 if RTLD_PRIVATE_ERRNO.
2565 * include/errno.h (__errno_location): If RTLD_PRIVATE_ERRNO,
2566 add attribute_hidden.
2568 * dlfcn/dlinfo.c (dlinfo_doit): Replace iteration over GL(dl_loaded)
2569 chain with iteration over all namespaces' _ns_loaded chains.
2570 * sysdeps/powerpc/powerpc32/dl-machine.c (__elf_preferred_address):
2572 * sysdeps/mips/dl-machine.h (elf_machine_runtime_link_map): Likewise.
2574 * elf/rtld.c (_dl_start): Fix one last dl_loaded.
2575 * elf/dl-load.c (_dl_map_object_from_fd): Avoid definition of
2576 label when it is not needed.
2577 * elf/dl-close.c (_dl_close): Typo: & -> &&.
2579 2004-10-12 Jakub Jelinek <jakub@redhat.com>
2581 * sysdeps/generic/segfault.c: Include alloca.h and stdint.h.
2582 Don't include frame.h.
2583 (CURRENT_STACK_FRAME, INNER_THAN, ADVANCE_STACK_FRAME): Remove.
2584 (catch_segfault): Use backtrace function.
2586 * sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h: Fix comment.
2587 * sysdeps/unix/sysv/linux/ia64/register-dump.h: New file.
2588 * sysdeps/unix/sysv/linux/ia64/sigcontextinfo.h (GET_PC): Return sc_ip
2591 2004-10-13 Ulrich Drepper <drepper@redhat.com>
2593 Add support for namespaces in the dynamic linker.
2594 * dlfcn/Makefile (libdl-routines): Add dlmopen.
2595 * dlfcn/Versions [libdl, GLIBC_2.3.4]: Add dlmopen.
2596 * dlfcn/dlfcn.h: Define Lmid_t, LM_ID_BASE, and LM_ID_NEWLM.
2597 Declare dlmopen. Document RTLD_DI_LMID.
2598 * dlfcn/dlinfo.c: Handle RTLD_DI_LMID.
2599 * dlfcn/dlmopen.c: New file.
2600 * dlfcn/dlopen.c: Pass new parameter to _dl_open.
2601 * dlfcn/dlopenold.c: Likewise.
2602 * elf/dl-addr.c: Adjust for removal of GL(dl_loaded).
2603 * elf/dl-caller.c: Likewise.
2604 * elf/dl-close.c: Likewise.
2605 * elf/dl-conflict.c: Likewise.
2606 * elf/dl-debug.c: Likewise.
2607 * elf/dl-lookup.c: Likewise.
2608 * elf/dl-sym.c: Likewise.
2609 * elf/dl-version.c: Likewise.
2610 * elf/do-lookup.h: Likewise.
2611 * elf/rtld.c: Likewise.
2612 * sysdeps/unix/sysv/linux/i386/dl-librecon.h: Likewise.
2613 * elf/dl-depsc: Likewise. Add new parameter to _dl_map_object.
2614 * elf/dl-fini.c: Call destructors in all namespaces.
2615 * elf/dl-iteratephdr.c: Compute total nloaded. Adjust for removal of
2617 * elf/dl-libc.c: Pass new parameter to _dl_open. Adjust for removal
2619 * elf/dl-load.c (_dl_map_object_from_fd): Don't load ld.so a second
2620 time. Reuse the one from the main namespace in all others.
2621 Pass new parameter to _dl_new_object.
2622 Adjust for removal of GL(dl_loaded).
2623 * elf/dl-object.c: Take new parameter. Use it to initialize l_ns.
2624 Adjust for removal of GL(dl_loaded).
2625 * elf/dl-open.c (_dl_open): Take new parameter.
2626 Adjust for removal of GL(dl_loaded).
2627 * elf/dl-support.c: Replace global _dl_loaded etc variables with
2629 * include/dlfcn.h: Adjust prototype of _dl_open.
2630 Define __LM_ID_CALLER.
2631 * include/link.h: Add l_real, l_ns, and l_direct_opencount elements.
2632 * sysdeps/generic/dl-tls.c: Bump TLS_STATIC_SURPLUS. Since libc is
2633 using TLS we need memory appropriate to the number of namespaces.
2634 * sysdeps/generic/ldsodefs.h (struct rtld_global): Replace _dl_loaded,
2635 _dl_nloaded, _dl_global_scope, _dl_main_searchlist, and
2636 _dl_global_scope_alloc with _dl_ns element. Define DL_NNS.
2637 Adjust prototypes of _dl_map_object and member in rtld_global_ro.
2638 * malloc/malloc.c: Include <dlfcn.h>.
2639 * malloc/arena.c (ptmalloc_init): If libc is not in primary namespace,
2641 * elf/Makefile: Add rules to build and run tst-dlmopen1 and
2643 * elf/tst-dlmopen1.c: New file.
2644 * elf/tst-dlmopen1mod.c: New file.
2645 * elf/tst-dlmopen2.c: New file.
2647 * elf/dl-close.c: Improve reference counting by tracking direct loads.
2648 * elf/dl-lookup.c (add_dependency): Likewise.
2649 * elf/dl-open.c (dl_open_worker): Likewise.
2650 * elf/rtld.c (dl_main): Likewise.
2652 2004-09-09 GOTO Masanori <gotom@debian.or.jp>
2655 * elf/dl-close.c: Count down l_opencount to check not only for
2656 l_reldeps, but also l_initfini.
2658 2004-10-13 Ulrich Drepper <drepper@redhat.com>
2660 * elf/dl-close.c (_dl_close): Update bug reporting instructions.
2662 2004-10-11 Ulrich Drepper <drepper@redhat.com>
2664 * timezone/asia: Update from tzdata2004e.
2665 * timezone/southamerica: Likewise.
2666 * timezone/private.h: Update from tzcode2004e.
2667 * timezone/zdump.c: Likewise.
2669 * stdio-common/vfscanf.c: Add support for reading localized
2670 digits. Patch mainly by Hamed Malek <hamed@bamdad.org>.
2672 * resolv/res_init.c (res_thread_freeres): Reset _res.options.
2675 * resolv/res_send.c (send_dg): Use nonblocking sockets. Add
2676 appropriate poll/select calls and restart operation if necessary.
2679 * elf/tst-dlopenrpath.c (do_test): Enable code which was disabled
2682 * elf/dl-sym.c (do_sym): Avoid using global variable.
2684 * elf/dl-addr.c (_dl_addr): Really use match everywhere.
2686 2004-10-09 Andreas Schwab <schwab@suse.de>
2688 * sysdeps/m68k/memcopy.h (WORD_COPY_BWD): Remove use of cast as
2691 * sysdeps/m68k/fpu/bits/mathinline.h: Remove __THROW from inline
2694 2004-10-07 Andreas Schwab <schwab@suse.de>
2696 * misc/sys/uio.h: Change __vector to __iovec to avoid clash with
2699 2004-10-06 Alan Modra <amodra@bigpond.net.au>
2701 * gmon/Makefile (CFLAGS-mcount.c): Move before inclusion of "Rules".
2702 * sysdeps/powerpc/powerpc64/Makefile (CFLAGS-mcount.c): Add
2704 * sysdeps/powerpc/powerpc64/sysdep.h (SAVE_ARG, REST_ARG): New macros.
2705 (CALL_MCOUNT): Replace with a gas macro implementation.
2706 (EALIGN): Delete PROF version.
2707 * sysdeps/powerpc/powerpc64/__longjmp-common.S: Invoke CALL_MCOUNT.
2708 * sysdeps/powerpc/powerpc64/bsd-_setjmp.S: Likewise.
2709 * sysdeps/powerpc/powerpc64/bsd-setjmp.S: Likewise.
2710 * sysdeps/powerpc/powerpc64/setjmp-common.S: Likewise.
2711 * sysdeps/powerpc/powerpc64/memcpy.S: Likewise.
2712 * sysdeps/powerpc/powerpc64/memset.S: Likewise.
2713 * sysdeps/powerpc/powerpc64/stpcpy.S: Likewise.
2714 * sysdeps/powerpc/powerpc64/strchr.S: Likewise.
2715 * sysdeps/powerpc/powerpc64/strcmp.S: Likewise.
2716 * sysdeps/powerpc/powerpc64/strcpy.S: Likewise.
2717 * sysdeps/powerpc/powerpc64/strlen.S: Likewise.
2718 * sysdeps/powerpc/powerpc64/strncmp.S: Likewise.
2719 * sysdeps/powerpc/powerpc64/fpu/s_ceil.S: Likewise.
2720 * sysdeps/powerpc/powerpc64/fpu/s_ceilf.S: Likewise.
2721 * sysdeps/powerpc/powerpc64/fpu/s_copysign.S: Likewise.
2722 * sysdeps/powerpc/powerpc64/fpu/s_floor.S: Likewise.
2723 * sysdeps/powerpc/powerpc64/fpu/s_floorf.S: Likewise.
2724 * sysdeps/powerpc/powerpc64/fpu/s_llrint.S: Likewise.
2725 * sysdeps/powerpc/powerpc64/fpu/s_llrintf.S: Likewise.
2726 * sysdeps/powerpc/powerpc64/fpu/s_llround.S: Likewise.
2727 * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S: Likewise.
2728 * sysdeps/powerpc/powerpc64/fpu/s_rint.S: Likewise.
2729 * sysdeps/powerpc/powerpc64/fpu/s_rintf.S: Likewise.
2730 * sysdeps/powerpc/powerpc64/fpu/s_round.S: Likewise.
2731 * sysdeps/powerpc/powerpc64/fpu/s_roundf.S: Likewise.
2732 * sysdeps/powerpc/powerpc64/fpu/s_trunc.S: Likewise.
2733 * sysdeps/powerpc/powerpc64/fpu/s_truncf.S: Likewise.
2735 * sysdeps/powerpc/powerpc64/setjmp-common.S: Add extra entry point
2737 * sysdeps/powerpc/powerpc64/bsd-_setjmp.S: Use it.
2738 * sysdeps/powerpc/powerpc64/bsd-setjmp.S: Likewise.
2740 2004-10-06 Ulrich Drepper <drepper@redhat.com>
2742 * resolv/res_mkquery.c (res_nmkquery): Reject randombits value if
2743 low 16 bits are zero.
2745 2004-10-06 Jakub Jelinek <jakub@redhat.com>
2747 * posix/tst-getaddrinfo2.c: Include stdlib.h and string.h.
2748 (do_test): Use %p instead of 0x%08X to print a pointer.
2750 * malloc/malloc.c: Include stdio-common/_itoa.h.
2752 2004-10-05 Ulrich Drepper <drepper@redhat.com>
2754 * elf/rtld.c (dl_main): Use _dl_debug_printf instead of _dl_printf
2755 for prelink message.
2757 2004-10-05 Jakub Jelinek <jakub@redhat.com>
2759 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Include dl-sysdep.h.
2760 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
2762 2004-10-05 Ulrich Drepper <drepper@redhat.com>
2764 * grp/initgroups.c: Remove duplicate group IDs.
2765 * grp/compat-initgroups.c: Likewise.
2766 * nscd/initgrcache.c: Likewise.
2768 2004-10-05 Jakub Jelinek <jakub@redhat.com>
2770 * sysdeps/unix/sysv/linux/x86_64/sysconf.c (__sysconf): Return 200112L
2771 for _SC_CPUTIME or _SC_THREAD_CPUTIME.
2773 * nscd/Makefile (nscd-cflags): Set to -DIS_IN_nscd=1, plus
2774 -fpie if building PIE.
2775 (CFLAGS-*.c): Use it.
2777 * nscd/Makefile (relro-LDFLAGS): Add -Wl,-z,now if have-z-relro.
2778 ($(objpfx)nscd): Add $(relro-LDFLAGS).
2780 * sysdeps/unix/sysv/linux/i386/sysconf.c: Include hp-timing.h.
2781 (__sysconf): Return -1 for _SC_CPUTIME or _SC_THREAD_CPUTIME if
2784 2004-10-05 Ulrich Drepper <drepper@redhat.com>
2786 * nscd/Makefile (distribute): Remove TODO.
2787 * nscd/TODO: Removed.
2789 2004-10-04 Ulrich Drepper <drepper@redhat.com>
2791 * nscd/gai.c: Define __no_netlink_support if NEED_NETLINK is
2792 defined and __ASSUME_NETLINK_SUPPORT is zero.
2793 * sysdeps/unix/sysv/linux/Makefile (CFLAGS-gai.c): Add
2796 * malloc/mtrace.pl: Avoid calling location unless it is needed for
2797 output. Patch by Edward Bishop <binutils@gmail.com>.
2799 * nscd/Makefile (CFLAGS-gai.c): Add -fpie.
2801 2004-10-04 H.J. Lu <hongjiu.lu@intel.com>
2803 * sysdeps/unix/sysv/linux/ia64/clock_getcpuclockid.c
2804 (clock_getcpuclockid): Add missing retval.
2806 * sysdeps/unix/sysv/linux/ia64/sysconf.c (linux_sysconf): Fix a typo.
2808 2004-10-04 Roland McGrath <roland@redhat.com>
2810 * include/errno.h [RTLD_PRIVATE_ERRNO] (errno): Rename the real symbol
2812 * sysdeps/generic/errno.c [RTLD_PRIVATE_ERRNO] (rtld_errno): Define it,
2813 and don't define any other errno names.
2814 * sysdeps/unix/alpha/sysdep.h [RTLD_PRIVATE_ERRNO]: Use rtld_errno in
2816 * sysdeps/unix/i386/sysdep.S: Likewise.
2817 * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
2818 * sysdeps/unix/sysv/linux/ia64/sysdep.S: Likewise.
2819 * sysdeps/unix/sysv/linux/m68k/sysdep.h: Likewise.
2820 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S: Likewise.
2821 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
2822 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S: Likewise.
2823 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
2824 * sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise.
2825 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
2826 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
2827 * sysdeps/unix/x86_64/sysdep.S: Likewise.
2829 * sysdeps/generic/errno.c [! USE___THREAD] (errno): Use `nocommon'
2830 attribute instead of `section'.
2832 2004-10-04 Ulrich Drepper <drepper@redhat.com>
2834 * sysdeps/unix/sysv/linux/ia64/sysconf.c: New file.
2835 * sysdeps/unix/sysv/linux/ia64/Dist: Add has_cpuclock.c.
2836 * sysdeps/unix/sysv/linux/ia64/clock_getcpuclockid.c: Move actual
2838 * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c: ...here. New file.
2839 * sysdeps/unix/sysv/linux/i386/sysconf.c: Add dynamic check for
2840 _SC_CPUTIME and _SC_THREAD_CPUTIME.
2842 * nscd/connections.c (start_threads): Use sysconf in case
2843 _POSIX_CLOCK_SELECTION or _POSIX_MONOTONIC_CLOCK is not greater zero.
2845 * nscd/Makefile (nscd-modules): Add gai.
2846 * nscd/gai.c: New file.
2847 * nscd/nscd.c: Remove getaddrinfo stub definition.
2849 * assert/assert.h: Give up on using __builtin_expect.
2851 * elf/rtld.c (dl_main): Only skip => output in ldd mode if both
2852 strings are identical.
2854 2004-03-18 Jakub Jelinek <jakub@redhat.com>
2856 * malloc/arena.c (aligned_heap_area): New variable.
2857 (new_heap): If aligned_heap_area != NULL, attempt to use that
2858 first. If HEAP_MAX_SIZE << 1 area is already HEAP_MAX_SIZE bytes
2859 aligned, remember the second half in aligned_heap_area.
2860 (delete_heap): Clear aligned_heap_area if deleting the area right
2861 before aligned_heap_area.
2863 2004-10-03 Juerg Billeter <j@bitron.ch>
2865 * nscd/nscd_initgroups.c (__nscd_getgrouplist): Return -1 if nscd
2866 can't be used. [BZ #424]
2868 2004-10-03 Ulrich Drepper <drepper@redhat.com>
2870 Dynamically create new threads if necessary.
2871 * nscd/connections.c (fd_ready): If no thread available for processing
2872 the request, create a new one unless the limit is reached.
2873 (start_threads): Check errors from pthread_create.
2874 * nscd/nscd.h: Declare max_nthreads.
2875 * nscd/nscd_conf.c: Parse max-nthreads entry.
2876 * nscd/nscd.conf: Add max-threads entry.
2877 * nscd/nscd_stat.c: Print current and maximum number of threads.
2879 Implement paranoia mode.
2880 * nscd/connections.c (nscd_init): Mark database and socket descriptors
2882 (restart): New function.
2883 (restart_p): New function.
2884 (nscd_run): Add missing descrement of nready in case readylist is
2886 (main_loop_poll): Call restart_p and restart.
2887 (main_loop_epoll): Likewise.
2888 (begin_drop_privileges): Save original UID and GID.
2889 * nscd/nscd.c: Define new variables paranoia, restart_time,
2890 restart_interval, oldcwd, old_gid, old_uid.
2891 (main): Disable paranoia mode if we are not forking.
2892 (check_pid): When re-execing, the PID file contains the same PID as
2893 the current process. Do not fail in this case.
2894 * nscd/nscd.conf: Add paranoia and restart-interval entries.
2895 * nscd/nscd.h: Define RESTART_INTERVAL. Declare new variables.
2896 * nscd/nscd_conf.c: Parse paranoia and restart-internal configurations.
2897 * nscd/nscd_stat.c: Print paranoia and restart-internal values.
2899 * nscd/connections.c: Implement alternative loop for main thread
2901 * sysdeps/unix/sysv/linux/Makefile [subdir=nscd]
2902 (CFLAGS-connections.c): Add -DHAVE_EPOLL.
2904 2004-10-02 Ulrich Drepper <drepper@redhat.com>
2906 * nscd/Makefile (CFLAGS-initgrcache.c): Add to CFLAGS-* variables,
2907 don't replace old content.
2909 * nscd/connections.c: Rewrite handling of incoming connections. All
2910 are handled by one thread which then hands off the descriptors for the
2911 real work to the worker threads.
2912 * nscd/Makefile: Link nscd with librt.
2914 * nscd/selinux.c: Pretty printing.
2916 * nscd/dbg_log.c (dbg_log): Don't add unnecessary newline to
2917 output. Let syslog do the formatting if debug_level == 0.
2919 * nscd/nscd_helper.c (get_mapping): No need to check timestamp if
2920 nscd_certainly_running is nonzero.
2922 2004-10-02 Simon Josefsson <jas@extundo.com>
2925 * sysdeps/generic/memmem.c [!_LIBC]: Define __builtin_expect, to
2926 make the file usable inside gnulib.
2928 2004-10-01 Ulrich Drepper <drepper@redhat.com>
2930 * malloc/malloc.c (public_vALLOc): Add missing use of hooks.
2931 (public_pVALLOc): Likewise.
2933 * nscd/nscd_initgroups.c (__nscd_getgrouplist): Always add the
2934 group the caller provided unless there is a real problem.
2936 * posix/bug-glob1.c (prepare): Fix creation of symlink.
2938 2004-09-30 Ulrich Drepper <drepper@redhat.com>
2940 * posix/Makefile: Add rules to build and run bug-glob1.
2941 * posix/bug-glob1.c: New file.
2943 * iconv/iconv_prog.c (main): Print progress information to stderr.
2945 * nscd/nscd.c (termination_handler): Reset timestamp so that
2946 clients immediately stop using the database.
2948 * nscd/nscd-client.h (__nscd_get_map_ref): Drop volatile from last
2950 (__nscd_drop_map_ref): Change second parameter to be a reference to
2951 a variable. Update variable when cycle count changed.
2952 * nscd/nscd_helper.c (__nscd_get_map_ref): Remove volatile here, too.
2953 * nscd/nscd_getai.c: Correctly use __nscd_drop_map_ref. Reinitialize
2954 all variables and avoid memory leak in case of retries.
2955 * nscd/nscd_getgr_r.c: Likewise.
2956 * nscd/nscd_gethst_r.c: Likewise.
2957 * nscd/nscd_getpw_r.c: Likewise.
2958 * nscd/nscd_initgroups.c: Likewise.
2960 * nscd/nscd.h: Add declaration of addinitgroups and
2963 2004-09-30 Andreas Jaeger <aj@suse.de>
2965 * nscd/Makefile (CFLAGS-nscd_initgroups.c): Set to -fpie.
2966 (CFLAGS-initgrcache.c): Set to -fexceptions.
2968 2004-09-29 Ulrich Drepper <drepper@redhat.com>
2970 * sysdeps/generic/glob.c (glob_in_dir): Don't blindly trust
2971 readdir results; for symlinks or files of unknown type check using
2972 stat whether the file exists.
2974 * posix/tst-gnuglob.c (find_file): Handle leading "./". Fix
2975 recognition of files.
2977 2004-09-29 Jakub Jelinek <jakub@redhat.com>
2979 * time/tzfile.c (tzfile_mtime): New variable.
2980 (__tzfile_read): Reread the file if mtime is different.
2982 2004-09-28 Jakub Jelinek <jakub@redhat.com>
2984 * sysdeps/alpha/fpu/bits/mathinline.h (__fdimf, __fdim, fdimf, fdim):
2986 * sysdeps/powerpc/fpu/bits/mathinline.h (fdim, fdimf): Likewise.
2987 * sysdeps/sparc/fpu/bits/mathinline.h (fdim, fdimf): Likewise.
2989 2004-09-29 Ulrich Drepper <drepper@redhat.com>
2991 * nscd/nscd_gethst_r.c (nscd_gethst_r): Use correct constant for
2992 testing result of __nscd_get_map_ref.
2994 2004-09-29 Jakub Jelinek <jakub@redhat.com>
2996 * sysdeps/i386/fpu/s_fdim.S (__fdim): Handle +inf/+inf.
2997 * sysdeps/i386/fpu/s_fdimf.S (__fdimf): Likewise.
2998 * sysdeps/i386/fpu/s_fdiml.S (__fdiml): Likewise.
3000 004-09-29 Ulrich Drepper <drepper@redhat.com>
3002 * grp/initgroups.c: Move compat_call implementation...
3003 * grp/compat-initgroups.c: ...to here. New file.
3004 * grp/Makefile (distribute): Add compat-initgroups.c.
3005 (CFLAGS-initgroups.c): Add -DUSE_NSCD=1.
3006 * mscd/initgrcache.c: New file.
3007 * nscd/nscd_initgroups.c: New file.
3008 * nscd/Makefile (routines): Add nscd_initgroups.
3009 (nscd-modules): Add initgrcache.
3010 * nscd/cache.c (prune_cache): Add support for INITGROUPS entries.
3011 * nscd/connections.c: Handle INITGROUPS requests.
3012 * nscd/nscd-client.h: Define INITGROUPS, initgr_response_header.
3013 Add initgrdata element to struct datahead. Fix typo in comment.
3014 * nscd/nscd_proto.h: Declare __nscd_getgrouplist. Fix parameter
3015 type in __nscd_getgrgrid_r.
3016 * nscd/selinux.c (perms): Add INITGROUPS entry.
3018 * nscd/nscd_getai.c: No need to include <sys/mman.h>.
3020 * sunrpc/get_myaddr.c (get_myaddress): Account for interfaces without
3022 * sunrpc/pmap_clnt.c (__get_myaddress): Likewise.
3023 * sunrpc/pmap_rmt.c (getbroadcastnets): Likewise.
3024 * sunrpc/clnt_udp.c (is_network_up): Likewise.
3026 * nscd/nscd.c: Define getaddrinfo hidden so that it is never found
3029 * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h (si_segvflags):
3030 Renamed from si_flags due to conflict with si_flags from <elf.h>.
3032 2004-09-28 Ulrich Drepper <drepper@redhat.com>
3034 * nscd/nscd_getai.c: Use NO_MAPPING instead of MAP_FAILED for test
3035 of failing __nscd_get_map_ref. Fix a few typos.
3037 * sysdeps/unix/sysv/linux/sigwait.c (do_sigwait): Make sure
3038 SIGSETXID is not blocked.
3039 * sysdeps/unix/sysv/linux/sigwaitinfo.c (do_sigwaitinfo): Likewise.
3040 * sysdeps/unix/sysv/linux/sigtimedwait.c (do_sigtimedwait): Likewise.
3041 * sysdeps/unix/sysv/linux/sigprocmask.c (__sigprocmask): Likewise.
3042 * sysdeps/generic/sigfillset.c (sigfillset): Don't set SIGSETXID.
3044 * sunrpc/get_myaddr.c (get_myaddress): Fix test for failing
3046 * sunrpc/pmap_clnt.c (__get_myaddress): Likewise.
3047 * sunrpc/pmap_rmt.c (getbroadcastnets): Likewise.
3048 * sunrpc/Makefile (xtests): Add tst-getmyaddr.
3049 * sunrpc/tst-getmyaddr.c: New file.
3051 * malloc/arena.c (ptmalloc_init): Allow MALLOC_CHECK_==0 to
3052 disable all checking.
3054 * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h (si_flags): Add
3055 support to get this value.
3057 2004-09-28 Jakub Jelinek <jakub@redhat.com>
3059 * io/utime.h (utime): Allow second argument to be NULL.
3061 2004-09-28 Ulrich Drepper <drepper@redhat.com>
3063 * sysdeps/posix/getaddrinfo.c (gaih_inet): If NAME is a numerical IP
3064 address and AI_CANONNAME is set, return copy of NAME as ai_canonname.
3066 2004-09-27 Andreas Jaeger <aj@suse.de>
3068 * sysdeps/i386/dl-machine.h (elf_machine_rela_relative): Replace
3069 static inline by auto inline, add always_inline attribute.
3070 (elf_machine_rel): Likewise.
3071 (elf_machine_rela): Likewise.
3072 (elf_machine_lazy_rel): Likewise.
3073 (elf_machine_lazy_rela): Likewise.
3074 (elf_machine_rel_relative): Likewise.
3076 2004-09-27 Ulrich Drepper <drepper@redhat.com>
3078 * sunrpc/xdr_intXX_t.c: Add xdr_quad_t and xdr_u_quad_t aliases.
3079 * sunrpc/rpc/xdr.h: Declare xdr_quad_t and xdr_u_quad_t.
3080 * sunrpc/rpc_parse.c (get_type): Use "quad_t" for TOK_HYPER.
3081 Otherwise isvectordef will loop infinitely if typedef hyper int64_t
3083 (unsigned_dec): Use "u_quad_t" for similar reasons.
3084 * sunrpc/Versions: Export xdr_quad_t and xdr_u_quad_t.
3086 2004-09-27 Roland McGrath <roland@redhat.com>
3088 * sysdeps/generic/bits/waitstatus.h (__WIFSIGNALED): Simplify bit
3089 twiddling in last change.
3091 * posix/tst-waitid.c (do_test): Add tests for waitpid with WCONTINUED.
3094 * posix/sys/wait.h [__WIFCONTINUED] (WIFCONTINUED): New macro.
3095 * stdlib/stdlib.h [__WIFCONTINUED] (WIFCONTINUED): New macro.
3096 * sysdeps/generic/bits/waitstatus.h (__W_CONTINUED): New macro.
3097 [WCONTINUED] (__WIFCONTINUED): New macro.
3098 (__WIFSIGNALED): Rewritten to exclude __W_CONTINUED value, and have no
3101 * sysdeps/unix/sysv/linux/waitid.c (do_waitid): Add fifth argument to
3102 all three syscall uses, not just one!
3104 2004-09-26 Richard Henderson <rth@redhat.com>
3106 * sysdeps/alpha/alphaev6/memcpy.S: Mark .prologue.
3107 * sysdeps/unix/alpha/sysdep.h (LEAF, ENTRY): Align entry points
3108 to 16 byte boundaries.
3110 2004-09-26 Ulrich Drepper <drepper@redhat.com>
3112 * elf/readlib.c (process_file): Before complaining about too-short
3113 file, check that it potentially be an ELF file. Also complain about
3114 empty files. [BZ #151].
3116 * scripts/test-installation.pl: Fix ld.so recognition for new
3117 LD_TRACE_LOADED_OBJECTS output format.
3118 Patch by <jsberg04+computing.glibc@ftml.net> [BZ #407].
3120 * elf/dl-support.c (_dl_non_dynamic_init): Fix cleaning of
3121 environment. [BZ #384]
3123 * sunrpc/clnt_udp.c (is_network_up): Use getifaddrs instead of ioctl.
3124 * sunrpc/get_myaddr.c (get_myaddress): Likewise.
3125 * sunrpc/pmap_clnt.c (__get_myaddress): Likewise.
3126 * sunrpc/pmap_rmt.c (getbroadcastnets): Likewise. Change interface
3127 to avoid buffer overrun and remove now useless parameters.
3128 (clnt_broadcast): Adjust caller. [BZ #381].
3130 * sysdeps/generic/s_fdim.c: Handle +inf/+inf
3131 * sysdeps/generic/s_fdimf.c: Likewise.
3132 * sysdeps/generic/s_fdiml.c: Likewise.
3133 * sysdeps/i386/i686/fpu/s_fdim.S: Likewise.
3134 * sysdeps/i386/i686/fpu/s_fdimf.S: Likewise.
3135 * sysdeps/i386/i686/fpu/s_fdiml.S: Likewise.
3136 * sysdeps/powerpc/fpu/s_fdim.c: Likewise.
3137 * sysdeps/powerpc/fpu/s_fdimf.c: Likewise.
3138 * sysdeps/x86_64/fpu/s_fdiml.S: Likewise.
3139 * math/libm-test.inc (fdim_test): Add test case. [BZ #376].
3141 * sysdeps/generic/bits/types.h: Fix __SQUAD_TYPE and __UQUAD_TYPE
3142 for compilers without __GLIBC_HAVE_LONG_LONG. [BZ #362]
3144 * sysdeps/posix/getaddrinfo.c (getaddrinfo): Remove incorrect
3145 requirement on socktype and protocol.
3146 (gaih_inet): If numeric port number is given, return records for all
3147 possible socket types.
3148 * posix/tst-getaddrinfo2.c: New file.
3149 * posix/Makefile (tests): Add tst-getaddrinfo2. [BZ #358]
3151 2004-09-25 Ulrich Drepper <drepper@redhat.com>
3153 * locale/loadlocale.c (_nl_intern_locale_data): Recognize LC_CTYPE
3154 data where _nl_value_type_LC_CTYPE does not contain the type
3155 information. Add range checks.
3156 Reported by John Lumby <johnlumby@hotmail.com> [BZ #356].
3158 * libio/vasprintf.c (_IO_vasprintf): Fix condition to decide
3159 whether to realloc or not.
3160 Reported by Pavel Kankovsky <peak@argo.troja.mff.cuni.cz> [BZ #346].
3162 * intl/dcigettext.c (DCIGETTEXT): Protect tfind/tsearch calls.
3163 * intl/dcigettext.c (_nl_find_msg): Call _nl_load_domain also if
3165 * intl/finddomain.c (_nl_find_domain): Likewise.
3166 * intl/loadmsgcat.c (_nl_load_domain): Set decided to 1 only once we
3167 are done. First set to -1 to signal initialization is ongoing.
3168 Protect against concurrent callers with recursive lock.
3169 * intl/finddomain.c (_nl_find_domain): Protect calls to
3170 _nl_make_l10nflist. [BZ #322]
3172 * sysdeps/posix/getaddrinfo.c (getaddrinfo): If determinination of
3173 source address fails, initialized source_addr_len field so that
3174 duplicate address recognition does not copy junk.
3176 2004-09-25 Jakub Jelinek <jakub@redhat.com>
3178 * sysdeps/unix/sysv/linux/i386/setuid.c (__setuid): Remove second
3181 2004-09-22 Andreas Schwab <schwab@suse.de>
3183 * sysdeps/unix/sysv/linux/ia64/sysdep.h: Adjust whitespace.
3185 2004-09-24 Ulrich Drepper <drepper@redhat.com>
3187 * misc/daemon.c (daemon): Don't succeed if /dev/null cannot be
3190 * nis/ypclnt.c (do_ypcall): Add one missing unlock. Simplify the
3193 * misc/daemon.c (daemon): Define errno in case /dev/null is not
3196 * nis/ypclnt.c (yp_bind_file): Optimize a bit. Minimal cleanups.
3198 2004-09-23 Andreas Jaeger <aj@suse.de>
3200 * locale/weight.h (findidx): Remove static, it's not supported
3201 anymore with GCC 4.0 in a block scope.
3202 * locale/weightwc.h (findidx): Likewise.
3203 * posix/regcomp.c (seek_collating_symbol_entry): Likewise.
3204 (lookup_collation_sequence_value): Likewise.
3205 (build_range_exp): Likewise.
3206 (build_collating_symbol): Likewise.
3207 * iconv/iconvconfig.c (write_output): Likewise.
3208 * elf/do-rel.h (elf_dynamic_do_rel): Likewise.
3210 * sysdeps/x86_64/dl-machine.h (elf_machine_rela_relative): Remove
3211 static, add always_inline attribute.
3212 (elf_machine_rela): Likewise.
3213 (elf_machine_lazy_rel): Likewise.
3215 * elf/dynamic-link.h (elf_get_dynamic_info): Make static dependend
3216 on !RESOLVE so that it's not defined in local scope.
3218 2004-09-23 Kaz Kojima <kkojima@rr.iij4u.or.jp>
3220 * sysdeps/unix/sysv/linux/sh/sysdep.h (INTERNAL_SYSCALL_NCS): Define.
3222 2004-09-23 Thorsten Kukuk <kukuk@suse.de>
3224 * sysdeps/unix/sysv/linux/sys/mount.h: Sync MS_RMT_MASK flag
3225 and BLK* ioctls with linux kernel headers.
3227 2004-09-23 Ulrich Drepper <drepper@redhat.com>
3229 * sysdeps/generic/bits/dlfcn.h: Add RTLD_DEEPBIND.
3230 * elf/dl-object.c (_dl_new_object): Add new parameter mode. If mode
3231 has RTLD_DEEPBIND set add local searchlist before global scope.
3232 * sysdeps/generic/ldsodefs.h (_dl_new_object): Adjust prototype.
3233 * elf/rtld.c: Adjust callers of _dl_new_object.
3234 * elf/dl-load.c: Likewise.
3235 (_dl_map_object_from_fd): If RTLD_DEEPBIND is used, don't do anything
3237 * elf/dl-open.c (dl_open_writer): Pass RTLD_DEEPBIND flag on to
3238 _dl_map_object_deps.
3239 * elf/tst-deep1.c: New file.
3240 * elf/tst-deep1mod1.c: New file.
3241 * elf/tst-deep1mod2.c: New file.
3242 * elf/tst-deep1mod3.c: New file.
3243 * elf/Makefile: Add rules to build and run new tests.
3245 * elf/dl-deps.c: Pretty printing.
3247 2004-09-23 Jakub Jelinek <jakub@redhat.com>
3249 * sysdeps/unix/alpha/sysdep.h (inline_syscall[0-6]): Change name
3250 argument to numbers from syscall names.
3251 (INLINE_SYSCALL1): Pass __NR_##name to inline_syscall##nr.
3252 (INTERNAL_SYSCALL_NCS): Renamed from...
3253 (INTERNAL_SYSCALL_1): ... this. Use INTERNAL_SYSCALL_NCS.
3254 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h
3255 (INTERNAL_SYSCALL_NCS): Define.
3256 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
3257 (INTERNAL_SYSCALL_NCS): Likewise.
3258 * sysdeps/unix/sysv/linux/sparc/sysdep.h (inline_syscall[0-6]):
3259 Change name argument to numbers from syscall names.
3260 (INLINE_SYSCALL, INTERNAL_SYSCALL): Adjust.
3261 (INTERNAL_SYSCALL_NCS): Define.
3263 2004-09-22 Ulrich Drepper <drepper@redhat.com>
3265 * malloc/malloc.c (malloc_printerr): Use syslog if writev failed.
3267 * string/string.h: Add __nonnull annotations.
3268 * stdlib/stdlib.h: Likewise.
3270 2004-09-20 H.J. Lu <hongjiu.lu@intel.com>
3272 * sysdeps/unix/sysv/linux/ia64/sysdep.h (DO_INLINE_SYSCALL):
3274 (DO_INLINE_SYSCALL_NCS): This.
3275 (DO_INLINE_SYSCALL): New.
3276 (INLINE_SYSCALL): Updated.
3277 (INTERNAL_SYSCALL_NCS): Updated.
3279 2004-09-21 Ulrich Drepper <drepper@redhat.com>
3281 * elf/sprof.c (load_shobj): Add support for reading symbol table
3282 from debuginfo file.
3284 * elf/ldd.bash.in: Fix syntax errors.
3286 2004-09-20 Ulrich Drepper <drepper@redhat.com>
3288 * sysdeps/unix/sysv/linux/dl-execstack.c
3289 (_dl_make_stack_executable): Remove some duplication.
3291 * nscd/nscd.c (options): Mark S option as hidden.
3292 (parse_opt): When S option is used, print warning message.
3293 * nscd/grpcache.c (adgrptbyX): Don't handle secure mode.
3294 * nscd/hstcache.c (addhstbyX): Don't handle secure mode.
3295 * nscd/aicache.c (addhstaiX): Don't handle secure mode.
3296 * nscd/pwdcache.c (addpwbyX): Don't handle secure mode.
3298 2004-09-20 Roland McGrath <roland@frob.com>
3300 * elf/dl-load.c (__stack_prot): Only use PROT_GROWSUP/PROT_GROWSDOWN
3301 in initializer #if defined.
3303 2004-09-18 Paul Eggert <eggert@cs.ucla.edu>
3306 * stdlib/getsubopt.c: Merge fixes from gnulib.
3307 (__strchrnul) [!_LIBC]: Define and include "strchrnul.c".
3308 (getsubopt): Use prototypes, not K&R style.
3309 Fix bug: memcmp(A,B,N) was being invoked on a memory block B
3310 whose size might be smaller than N. Use strncmp to avoid the bug.
3312 2004-09-20 Ulrich Drepper <drepper@redhat.com>
3314 * configure.in: If selinux has not explictly been requested, don't
3315 comment on it missing.
3317 * elf/dl-load.c: Define __stack_prot.
3318 * sysdeps/unix/sysv/linux/dl-execstack.c: Don't define
3319 __stack_prot here, just declare it.
3321 2004-09-20 Jakub Jelinek <jakub@redhat.com>
3323 * configure.in (libc_cv_z_relro): Only set to yes if linker script
3324 contains DATA_SEGMENT_RELRO_END.
3326 2004-09-20 Ulrich Drepper <drepper@redhat.com>
3328 * elf/dl-load.c (_dl_map_object_from_fd): Add some error checking.
3329 Reorder code slightly.
3330 * elf/rtld.c (dl_main): No need to check whether l_info[DT_HASH]
3331 is non-null, _dl_setup_hash will do that.
3333 2004-09-19 Ulrich Drepper <drepper@redhat.com>
3335 * sysdeps/unix/sysv/linux/setegid.c [HAVE_PTR__NPTL_SETXID]: Call
3336 callback to set IDs in all other threads as well.
3337 * sysdeps/unix/sysv/linux/seteuid.c: Likewise.
3338 * sysdeps/unix/sysv/linux/i386/setegid.c: Likewise.
3339 * sysdeps/unix/sysv/linux/i386/seteuid.c: Likewise.
3340 * sysdeps/unix/sysv/linux/i386/setgid.c: Likewise.
3341 * sysdeps/unix/sysv/linux/i386/setuid.c: Likewise.
3342 * sysdeps/unix/sysv/linux/i386/setreuid.c: Likewise.
3343 * sysdeps/unix/sysv/linux/i386/setreuid.c: Likewise.
3344 * sysdeps/unix/sysv/linux/i386/setresuid.c: Likewise.
3345 * sysdeps/unix/sysv/linux/i386/setresuid.c: Likewise.
3346 * sysdeps/unix/sysv/linux/setuid.c: New file.
3347 * sysdeps/unix/sysv/linux/setgid.c: New file.
3348 * sysdeps/unix/sysv/linux/setreuid.c: New file.
3349 * sysdeps/unix/sysv/linux/setregid.c: New file.
3350 * sysdeps/unix/sysv/linux/setresuid.c: New file.
3351 * sysdeps/unix/sysv/linux/setresgid.c: New file.
3352 * sysdeps/unix/sysv/linux/i386/sysdep.h: Define INTERNAL_SYSCALL_NCS.
3353 * sysdeps/unix/sysv/linux/ia64/sysdep.h: Likewise.
3354 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Likewise.
3355 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
3356 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
3357 * sysdeps/unix/sysv/linux/sparc/sparc32/setegid.c: Use x86 version.
3358 * sysdeps/unix/sysv/linux/sparc/sparc32/seteuid.c: Likewise.
3359 * sysdeps/unix/sysv/linux/sparc/sparc32/setresgid.c: New file.
3360 * sysdeps/unix/sysv/linux/sparc/sparc32/setresuid.c: New file.
3361 * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list: Remove setresgid
3363 * nscd/aicache.c: Use pthread_seteuid_np instead of seteuid.
3364 * nscd/grpcache.c: Likewise.
3365 * nscd/hstcache.c: Likewise.
3366 * nscd/pwdcache.c: Likewise.
3368 * resolv/res_mkquery.c (res_nmkquery): Fix typo.
3370 2004-09-18 Ulrich Drepper <drepper@redhat.com>
3372 * sysdeps/unisx/sysv/linux/dl-execstack.c: Get protection flag
3374 * elf/dl-load.c (_dl_map_object_from_fd): Add PROT_EXEC flag to
3377 * sysdeps/posix/getaddrinfo.c (gaih_inet): Do not use
3378 gethostbyname3_r if we are not looking for the canonical name.
3380 * resolv/res_mkquery.c (res_nmkquery): Randomize request ID every
3383 2004-09-18 Roland McGrath <roland@redhat.com>
3385 * sysdeps/unix/sysv/linux/waitid.c (do_waitid): Pass fifth argument to
3388 2004-09-17 Ulrich Drepper <drepper@redhat.com>
3390 * include/link.h (struct link_map): Add l_used element.
3391 * sysdeps/generic/ldsodefs.h: Define DL_DEBUG_UNUSED.
3392 * elf/rtld.c (process_dl_debug): Recognize unused.
3393 (dl_main): When unused debug flag is set check for unused direct
3395 When printing dependencies and SONAME starts with /, omit the SONAME =>
3397 * elf/dl-lookup.c (_dl_lookup_symbol_x): Mark object in which the
3398 symbol has been found as used.
3399 * elf/ldd.bash.in: Add -u option.
3401 2004-09-18 Jakub Jelinek <jakub@redhat.com>
3403 * sysdeps/unix/sysv/linux/nscd_setup_thread.c (setup_thread):
3404 Do nothing if __NR_set_tid_address is not defined. [BZ #390]
3406 2004-09-17 Ulrich Drepper <drepper@redhat.com>
3408 * sysdeps/posix/getaddrinfo.c: Use gethostbyname3_r NSS function
3409 in case it is available.
3411 2004-09-17 Jakub Jelinek <jakub@redhat.com>
3413 * nscd/nscd.c (parse_opt): Write arg string instead of (void *)
3416 2004-09-17 Ulrich Drepper <drepper@redhat.com>
3418 * misc/sys/cdefs.h: Define __nonnull using nonnull function attribute
3419 for gcc 3.3 and higher.
3420 * io/fcntl.h: Add __nonnull where appropriate.
3421 * io/ftw.h: Likewise.
3422 * io/utime.h: Likewise.
3423 * io/sys/poll.h: Likewise.
3424 * io/sys/sendfile.h: Likewise.
3425 * io/sys/stat.h: Likewise.
3426 * io/sys/statfs.h: Likewise.
3427 * io/sys/statvfs.h: Likewise.
3428 * posix/unistd.h: Likewise.
3429 * catgets/nl_types.h: Likewise.
3430 * crypt/crypt.h: Likewise.
3431 * debug/execinfo.h: Likewise.
3433 2004-09-16 Ulrich Drepper <drepper@redhat.com>
3435 * posix/glob.h: Remove cruft to make header usable outside glibc.
3436 The maintenance headache is too big.
3438 * configure.in: Add test for required SELinux features.
3439 * config.make.in: Add have-selinux entry.
3440 * config.h.in: Add HAVE_SELINUX entry.
3441 * nscd/Makefile (nscd-modules): Add selinux.
3442 (CFLAGS-selinux.c): Add -fpie.
3443 Define selinux-LIBS and use in link line.
3444 * nscd/connections.c (handle_request): Check access SELinux permissions
3445 before processing request.
3446 * nscd/nscd.c (main): Initialize selinux_enabled and stop avc thread.
3447 * nscd/nscd_stat.c: Transmit and print AVC statistics.
3448 * nscd/selinux.c: New file.
3449 * nscd/selinux.h: New file.
3450 Patch mostly by Matthew Rickard <mjricka@epoch.ncsc.mil>.
3452 2004-09-16 Jakub Jelinek <jakub@redhat.com>
3454 * nscd/nscd_helper.c (__nscd_unmap, get_mapping): Use __munmap
3457 * nscd/Makefile (CFLAGS-aicache.c): Set to -fpie.
3459 2004-09-16 Thorsten Kukuk <kukuk@suse.de>
3461 * sysdeps/posix/getaddrinfo.c (gaih_inet): Check
3462 __nss_not_use_nscd_hosts variable if nscd should be used or not.
3464 2004-09-16 Ulrich Drepper <drepper@redhat.com>
3466 * nscd/nscd_proto.h: Define NSS_NSCD_RETRY.
3467 Add __nscd_getai prototype.
3468 * nss/getXXbyYY_r.c: Remode definition of NSS_NSCD_RETRY.
3469 * nscd/nscd-client.h: Remove __nscd_getai prototype.
3470 * nscd/nscd_getai.c: Include nscd_proto.h.
3472 * elf/ldd.bash.in: Add support for SELinux environments.
3473 Patch by Stephen Smalley <sds@epoch.ncsc.mil>.
3475 2004-09-16 Roland McGrath <roland@redhat.com>
3477 * configure.in (--with-headers): Let argument contain a : separated
3478 list of directories to use, not just one.
3479 * configure: Regenerated.
3481 2004-09-15 Richard Henderson <rth@redhat.com>
3483 * sysdeps/alpha/fpu/libm-test-ulps: Update.
3484 * scripts/data/c++-types-alpha-linux-gnu.data: New file.
3486 2004-09-15 Ulrich Drepper <drepper@redhat.com>
3488 * nscd/aicache.c: Prefer using gethostbyname3_r NSS callback to also
3489 get ttl and canonical name. Use these two values.
3490 * resolv/Versions: Export _nss_dns_gethostbyname3_r from libnss_dns.
3491 * resolv/nss_dns/dns-host.c (getanswer_r): Take two new parameters.
3492 If nonnull fill with TTL and pointer to canonical name respectively.
3493 (_nss_dns_gethostbyaddr_r): Pass NULL in new parameters of getanswer_r.
3494 (_nss_dns_gethostbyname2_r): Just wrapper around
3495 _nss_dns_gethostbyname3_r.
3496 (_nss_dns_gethostbyname3_r): Renamed from _nss_dns_gethostbyname2_r.
3497 Take two new parameters which as passed to getanswer_r.
3499 * nscd/Makefile (rountines): Add nscd_getai.
3500 (nscd-modules): Add aicache.
3501 * nscd/aicache.c: New file.
3502 * nscd/nscd_getai.c: New file.
3503 * nscd/cache.c (prune_cache): Handle GETAI request type.
3504 * nscd/connections.c: Add GETAI support in request handling.
3505 * nscd/nscd-client.h (request_type): Add GETAI.
3506 Define ai_response_header and struct nscd_ai_result types.
3507 (struct datahead): Add aidata field.
3508 Declare __nscd_getai.
3509 * nscd/nscd.c: Add getaddrinfo definition to catch problems.
3510 * nscd/nscd.h: Declare addhstai and readdhstai.
3512 * sysdeps/posix/getaddrinfo.c: Add support for using cached results.
3513 * posix/Makefile (CFLAGS-getaddrinfo.c): Add -DUSE_NSCD.
3515 * nscd/nscd-client.h (struct datahead): Use uint8_t instead of bool.
3517 2004-09-14 Ulrich Drepper <drepper@redhat.com>
3519 * misc/sys/cdefs.h: Remove debugging text from __P and __PMT.
3521 2004-09-13 Ulrich Drepper <drepper@redhat.com>
3523 * misc/sys/cdefs.h: Restore old definition of __P.
3524 * csu/munch.awk: Remove uses of __P and __PMT.
3525 * gmon/gmon.c: Likewise.
3526 * hesiod/hesiod.h: Likewise.
3527 * include/stdio.h: Likewise.
3528 * io/fts.c: Likewise.
3529 * libio/genops.c: Likewise.
3530 * libio/libioP.h: Likewise.
3531 * libio/fileops.c: Likewise.
3532 * libio/iolibio.h: Likewise.
3533 * libio/libio.h: Likewise.
3534 * libio/memstream.c: Likewise.
3535 * libio/oldfileops.c: Likewise.
3536 * libio/oldstdfiles.c: Likewise.
3537 * libio/iopopen.c: Likewise.
3538 * libio/vsnprintf.c: Likewise.
3539 * libio/vswprintf.c: Likewise.
3540 * libio/wgenops.c: Likewise.
3541 * libio/oldiopopen.c: Likewise.
3542 * locale/programs/xmalloc.c: Likewise.
3543 * locale/programs/xstrdup.c: Likewise.
3544 * malloc/mtrace.c: Likewise.
3545 * misc/getttyent.c: Likewise.
3546 * misc/getusershell.c: Likewise.
3547 * nis/rpcsvc/ypupd.h: Likewise.
3548 * posix/fnmatch.h: Likewise.
3549 * posix/glob.h: Likewise.
3550 * resolv/arpa/nameser.h: Likewise.
3551 * resolv/gethnamaddr.c: Likewise.
3552 * resolv/resolv.h: Likewise.
3553 * resolv/inet_net_ntop.c: Likewise.
3554 * resolv/inet_net_pton.c: Likewise.
3555 * resolv/res_init.c: Likewise.
3556 * resolv/nss_dns/dns-network.c: Likewise.
3557 * stdio-common/vfprintf.c: Likewise.
3558 * stdio-common/reg-printf.c: Likewise.
3559 * sysdeps/generic/chflags.c: Likewise.
3560 * sysdeps/generic/fchflags.c: Likewise.
3561 * sysdeps/generic/glob.c: Likewise.
3562 * sysdeps/generic/printf_fphex.c: Likewise.
3563 * sysdeps/generic/memcmp.c: Likewise.
3564 * sysdeps/generic/memcopy.h: Likewise.
3565 * sysdeps/generic/morecore.c: Likewise.
3566 * sysdeps/generic/sstk.c: Likewise.
3567 * sysdeps/posix/sigvec.c: Likewise.
3568 * sysdeps/posix/ttyname_r.c: Likewise.
3569 * sysdeps/standalone/arm/bits/errno.h: Likewise.
3570 * sysdeps/standalone/standalone.h: Likewise.
3571 * sysdeps/standalone/i386/force_cpu386/brdinit.c: Likewise.
3572 * sysdeps/standalone/i386/force_cpu386/_exit.c: Likewise.
3573 * sysdeps/unix/arm/start.c: Likewise.
3574 * sysdeps/unix/bsd/sigaction.c: Likewise.
3575 * sysdeps/unix/bsd/sun/m68k/sigtramp.c: Likewise.
3576 * sysdeps/unix/bsd/sun/sparc/sigtramp.c: Likewise.
3577 * sysdeps/unix/bsd/sun/sunos4/wait4.c: Likewise.
3578 * sysdeps/unix/bsd/ultrix4/mips/sigvec.c: Likewise.
3579 * sysdeps/unix/bsd/ultrix4/sysconf.c: Likewise.
3580 * sysdeps/unix/sparc/start.c: Likewise.
3581 * sysdeps/unix/sysv/getdents.c: Likewise.
3582 * sysdeps/unix/sysv/irix4/fpathconf.c: Likewise.
3583 * sysdeps/unix/sysv/irix4/getgroups.c: Likewise.
3584 * sysdeps/unix/sysv/irix4/getpriority.c: Likewise.
3585 * sysdeps/unix/sysv/irix4/getrusage.c: Likewise.
3586 * sysdeps/unix/sysv/irix4/pathconf.c: Likewise.
3587 * sysdeps/unix/sysv/irix4/setgroups.c: Likewise.
3588 * sysdeps/unix/sysv/irix4/sigtramp.c: Likewise.
3589 * sysdeps/unix/sysv/irix4/start.c: Likewise.
3590 * sysdeps/unix/sysv/irix4/sysconf.c: Likewise.
3591 * sysdeps/unix/sysv/sco3.2.4/__setpgid.c: Likewise.
3592 * sysdeps/unix/sysv/sco3.2.4/getgroups.c: Likewise.
3593 * sysdeps/unix/sysv/sysv4/__getpgid.c: Likewise.
3594 * sysdeps/unix/sysv/sysv4/__setpgid.c: Likewise.
3595 * sysdeps/unix/sysv/sysv4/getpgid.c: Likewise.
3596 * sysdeps/unix/sysv/sysv4/setpgid.c: Likewise.
3597 * sysdeps/unix/sysv/sysv4/sethostname.c: Likewise.
3598 * sysdeps/unix/sysv/sysv4/setsid.c: Likewise.
3599 * sysdeps/unix/sysv/sysv4/sysconf.c: Likewise.
3600 * sysdeps/unix/sysv/sysv4/waitpid.c: Likewise.
3601 * sysdeps/unix/sysv/sysv4/solaris2/getdents.c: Likewise.
3602 * time/tzset.c: Likewise.
3603 * time/strftime_l.c: Likewise.
3604 * time/strptime_l.c: Likewise.
3605 * crypt/md5.h: Likewise.
3607 2004-09-13 Andreas Jaeger <aj@suse.de>
3609 * configure.in: Support GCC 4.x.
3610 * configure: Regenerated.
3612 2004-09-13 Thorsten Kukuk <kukuk@suse.de>
3614 * nscd/nscd_stat.c: Don't access dbs[cnt].head for disabled services.
3616 * nscd/nscd.init: Fix path to socket.
3618 2004-09-12 Ulrich Drepper <drepper@redhat.com>
3620 * nscd/nscd_helper.c (get_mapping): Correctly check cmsg length.
3621 Avoid file descriptor leak in case of size mismatch.
3623 * nscd/nscd-client.h: Fix database structure layout for biarch.
3624 * nscd/mem.c (gc): Add casts to avoid warnings.
3626 * nss/getent.c: Don't preconstruct help message. Do it only when
3629 * locale/programs/locale.c: Simplify help message printing.
3631 2004-09-12 Roland McGrath <roland@frob.com>
3633 * sysdeps/mach/hurd/i386/init-first.c (init1) [! SHARED]: Add decls
3634 missing in last change.
3636 2004-09-11 Thorsten Kukuk <kukuk@suse.de>
3638 * nis/nss_compat/compat-grp.c: Check that buflen is greater zero
3639 before writing data into the buffer with negative offset.
3640 * nis/nss_compat/compat-initgroups.c: Likewise.
3641 * nis/nss_compat/compat-pwd.c: Likewise.
3642 * nis/nss_compat/compat-spwd.c Likewise.
3644 2004-09-12 Ulrich Drepper <drepper@redhat.com>
3646 * misc/syslog.c (vsyslog): Fix copying of PID in case of
3647 out-of-memory situation. [BZ #365].
3649 * sysdeps/alpha/fpu/bits/mathinline.h: Use __NTH instead of
3650 __THROW in inline function definitions.
3652 * posix/spawn.h [__USE_GNU]: Define POSIX_SPAWN_USEVFORK.
3653 * posix/spawnattr_setflags.c: Check whether any unknown bit is set
3654 in FLAGS parameter and fail if this is the case.
3655 * sysdeps/posix/spawni.c: Use vfork if POSIX_SPAWN_USEVFORK flag is
3658 * nscd/pwdcache.c (cache_addpw): Sync also negative results to disk.
3659 * nscd/grpcache.c (cache_addgr): Likewise.
3660 * nscd/hstcache.c (cache_addhst): Likewise.
3662 2004-09-11 Roland McGrath <roland@frob.com>
3664 * sysdeps/mach/hurd/i386/init-first.c (init1) [! SHARED]:
3665 Set _dl_phdr and _dl_phnum.
3666 (init1): When bootstrap task, bail early and never examine *D.
3668 2004-09-11 Alfred M. Szmidt <ams@kemisten.nu>
3670 * sysdeps/mach/hurd/i386/tls.h (__i386_set_gdt) [!HAVE_I386_SET_GDT]:
3671 Cast THR, SEL and DESC to `void'.
3673 2004-09-11 Ulrich Drepper <drepper@redhat.com>
3675 * nscd/connections.c (nscd_run): Call setup_thread only for enabled
3678 * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Use __NTH for __cmsg_nxthdr.
3680 2004-09-10 Ulrich Drepper <drepper@redhat.com>
3682 * nscd/nscd.c (pagesize_m1): New variable.
3683 (main): Initialize it.
3684 * nscd/nscd.h: Declare pagesize_m1.
3685 * nscd/hstcache.c: Pass correctly aligned address to msync.
3686 * nscd/grpcache.c: Likewise.
3687 * nscd/pwdcache.c: Likewise.
3689 2004-09-10 Kaz Kojima <kkojima@rr.iij4u.or.jp>
3691 * sysdeps/unix/sysv/linux/sh/pthread_cond_wait.S: Decrement
3692 __nwaiters. If pthread_cond_destroy has been called and this is
3693 the last waiter, signal pthread_cond_destroy caller and avoid
3694 using the pthread_cond_t structure after unlock.
3695 * sysdeps/unix/sysv/linux/sh/pthread_cond_timedwait.S: Likewise.
3697 2004-09-10 Ulrich Drepper <drepper@redhat.com>
3699 * sysdeps/unix/sysv/linux/kernel-features.h: Don't define
3700 __ASSUME_CLONE_STOPPED.
3702 2004-09-10 Jakub Jelinek <jakub@redhat.com>
3704 * misc/sys/cdefs.h (__REDIRECT_NTH): Change order of __THROW and
3705 __asm__ for C++. [BZ #377]
3707 2004-09-10 Ulrich Drepper <drepper@redhat.com>
3709 * nscd/nscd_stat.c: Improve output by also printing .shared and
3712 * nscd/connections.c: Allow cache sharing to be really disabled.
3714 2004-09-10 Jakub Jelinek <jakub@redhat.com>
3716 * malloc/malloc.c (_int_free): Only do arena boundary check for
3719 2004-09-10 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
3721 * stdlib/longlong.h [__M32R__] (add_ssaaaa, sub_ddmmss): Fix broken
3723 * elf/elf.h: Add R_M32R_* relocs.
3725 2004-09-09 Ulrich Drepper <drepper@redhat.com>
3727 * misc/sys/cdefs.h: Despite what the gcc manual says, gcc 3.2
3728 seems not to support the nothrow attribute. Use it only for gcc
3731 * malloc/hooks.c (top_check): Print top chunk corruption as normal
3734 * malloc/malloc.c (malloc_printerr): Don't make informational
3735 message look like error message.
3737 2004-09-09 Andreas Jaeger <aj@suse.de>
3739 * nscd/Makefile (CFLAGS-nscd_setup_thread.c): Set to -fpie.
3741 2004-09-08 Ulrich Drepper <drepper@redhat.com>
3743 * sysdeps/unix/sysv/linux/bits/socket.h (__SCM_CONNECT): Removed.
3745 * malloc/malloc.c (_int_free): Add inexpensive double free and
3746 memory corruption tests.
3747 (malloc_printf_nc): Renamed to malloc_printerr. Second parameter
3748 is no format string anymore. Don't use stdio. Adjust all callers.
3749 * malloc/hooks.c: Adjust malloc_printf_nc callers.
3751 2004-09-08 Roland McGrath <roland@redhat.com>
3753 * malloc/mcheck.c: Don't use __P.
3754 Use prototypes definitions for static functions.
3756 2004-09-08 Ulrich Drepper <drepper@redhat.com>
3758 * sysdeps/ia64/fpu/bits/mathinline.h: Use __NTH instead of __THROW.
3760 2004-09-08 Ulrich Drepper <drepper@redhat.com>
3761 Jakub Jelinek <jakub@redhat.com>
3763 * nscd/nscd-client.h: Add a few #includes.
3765 * nscd/Makefile (nscd-modules): Add nscd_setup_thread.
3766 * nscd/connections.c (nscd_run): Call setup_thread for maintenance
3768 * nscd/nscd-client.h (struct database_pers_head): Add
3769 nscd_certainly_running field.
3770 * nscd/nscd.h: Declare setup_thread.
3771 * nscd/nscd_helper.c (__nscd_get_map_ref): Avoid the time test if
3772 nscd_certainly_running is nonzero.
3773 * sysdeps/generic/nscd_setup_thread.c: New file.
3774 * sysdeps/unix/sysv/linux/nscd_setup_thread.c: New file.
3776 2004-09-08 Ulrich Drepper <drepper@redhat.com>
3778 * nscd/connections.c: Implement r/o sharing of nscd's cache with client
3779 processes via shared memory.
3780 * nscd/nscd-client.h: Likewise.
3781 * nscd/nscd.h: Likewise.
3782 * nscd/nscd_conf.c: Likewise.
3783 * nscd/nscd_getgr_r.c: Likewise.
3784 * nscd/nscd_getpw_r.c: Likewise.
3785 * nscd/nscd_gethst_r.c: Likewise.
3786 * nscd/nscd.conf: Add new config parameters.
3787 * nscd/Makefile (aux): Add nscd_helper.
3788 * nscd/nscd_helper.c: New file.
3789 * nscd/mem.c (gc): Indicate beginning and end of the gc cycle.
3791 * nscd/hstcache.c: Simplify a lot. We cache only the request itself,
3792 no derived information.
3793 * connections.c (nscd_init): Fix bug in testing size of the persistent.
3795 * nis/Makefile (aux): Add nis_hash.
3796 * nis/nis_hash.c: New file. Split out from nis_util.c.
3797 * nis/nis_util.c: Move __nis_hash code in separate file.
3799 * csu/tst-atomic.c: Improve atomic_increment_val test which would
3800 not have found a ppc bug.
3802 * sysdeps/s390/fpu/bits/mathinline.h: Remove unnecessary includes.
3804 * malloc/arena.c: Remove __MALLOC_P uses.
3805 * malloc/malloc.c: Likewise.
3807 * malloc/mtrace.c: Remove __P uses.
3808 * malloc/mcheck-init.c: Likewise.
3810 2004-09-07 Jakub Jelinek <jakub@redhat.com>
3812 * sysdeps/powerpc/powerpc64/configure.in: New file.
3813 * config.h.in (USE_PPC64_OVERLAPPING_OPD): Add.
3814 * configure.in (HAVE_ASM_GLOBAL_DOT_NAME): Remove.
3815 * sysdeps/powerpc/powerpc64/sysdep.h: Formatting.
3816 (OPD_ENT, BODY_LABEL, ENTRY_1, ENTRY_2, END_2, DOT_PREFIX,
3817 BODY_PREFIX): Define.
3818 (ENTRY, DOT_LABEL, END, TRACEBACK, END_GEN_TB, EALIGN): Support
3819 HAVE_ASM_GLOBAL_DOT_NAME or no dot symbols,
3820 USE_PPC64_OVERLAPPING_OPD or never overlapping .opd entries.
3821 * sysdeps/powerpc/powerpc64/dl-machine.h: Include sysdep.h.
3822 (TRAMPOLINE_TEMPLATE, RTLD_START): Use the new sysdep.h macros.
3824 2004-09-07 Ulrich Drepper <drepper@redhat.com>
3826 * malloc/malloc.h: Don't define __THROW if it is already defined.
3828 * sysdeps/powerpc/bits/atomic.h (atomic_increment): Define.
3829 (atomic_decrement): Define.
3831 * sysdeps/powerpc/bits/atomic.h: Implement atomic_increment_val and
3832 atomic_decrement_val.
3833 * sysdeps/powerpc/powerpc32/bits/atomic.h: Likewise.
3834 * sysdeps/powerpc/powerpc64/bits/atomic.h: Likewise.
3836 * csu/tst-atomic.c (do_test): Add tests of atomic_increment_val
3837 and atomic_decrement_val.
3839 * include/atomic.h: Define atomic_increment_val, atomic_decrement_val,
3840 and atomic_delay is not already defined.
3841 * sysdeps/i386/i486/bits/atomic.h: Define atomic_delay.
3842 * sysdeps/x86_64/bits/atomic.h: Likewise.
3844 * miscd/sys/cdefs.h (__NTH): New macro.
3845 (__THROW): Define using nothrow attribute for C code and gcc >= 3.2.
3846 (__REDIRECT_NTH): New macro.
3847 * argp/argp.h: Use __NTH and __REDIRECT_NTH where necessary.
3848 * ctype/ctype.h: Likewise.
3849 * dirent/dirent.h: Likewise.
3850 * io/fcntl.h: Likewise.
3851 * io/sys/sendfile.h: Likewise.
3852 * io/sys/stat.h: Likewise.
3853 * io/sys/statfs.h: Likewise.
3854 * io/sys/statvfs.h: Likewise.
3855 * libio/bits/stdio.h: Likewise.
3856 * misc/sys/mman.h: Likewise.
3857 * posix/unistd.h: Likewise.
3858 * resource/sys/resource.h: Likewise.
3859 * rt/aio.h: Likewise.
3860 * signal/signal.h: Likewise.
3861 * stdlib/stdlib.h: Likewise.
3862 * string/argz.h: Likewise.
3863 * string/string.h: Likewise.
3864 * sysdeps/generic/inttypes.h: Likewise.
3865 * sysdeps/i386/fpu/bits/mathinline.h: Likewise.
3866 * sysdeps/powerpc/fpu/bits/mathinline.h: Likewise.
3867 * sysdeps/s390/fpu/bits/mathinline.h: Likewise.
3868 * sysdeps/x86_64/fpu/bits/mathinline.h: Likewise.
3869 * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
3870 * sysdeps/unix/sysv/linux/bits/sys/sysmacros.h: Likewise.
3871 * wcsmbs/wchar.h: Likewise.
3873 * sysdeps/generic/glob.c: Use __PMT isntead of __P where appropriate.
3875 * resolv/gethnamaddr.c (getanswer): Remove __P use in variable
3878 * io/sys/poll.h: Remove __THROW from poll prototype, it's a
3881 * io/fts.c (fts_open): Remove uses of __P.
3883 * include/stdlib.h: No need to use __THROW in this header.
3885 2004-09-06 Roland McGrath <roland@frob.com>
3887 * sysdeps/mach/hurd/dl-sysdep.c (__writev): Does use assert on FD
3888 validity, since __assert_fail gets to here anyway. Just fail.
3890 2004-09-06 Ulrich Drepper <drepper@redhat.com>
3892 * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix problem with
3893 AF_UNSPEC lookup with AI_CANONNAME of name which has only IPv6
3896 2004-09-05 Richard Henderson <rth@redhat.com>
3898 * sysdeps/alpha/fpu/fraiseexcpt.c: Remove file.
3899 * sysdeps/unix/sysv/linux/kernel-features.h
3900 (__ASSUME_IEEE_RAISE_EXCEPTION): New.
3901 * sysdeps/unix/sysv/linux/alpha/fraiseexcpt.c: New file.
3902 * sysdeps/unix/sysv/linux/alpha/kernel_sysinfo.h: New file.
3903 * sysdeps/unix/sysv/linux/alpha/ieee_get_fp_control.S: Use it.
3904 * sysdeps/unix/sysv/linux/alpha/ieee_set_fp_control.S: Likewise.
3906 2004-09-05 Richard Henderson <rth@redhat.com>
3908 * sysdeps/alpha/div.S: Save and restore FPCR around fp operations.
3909 * sysdeps/alpha/divl.S, sysdeps/alpha/divq.S, sysdeps/alpha/divqu.S,
3910 sysdeps/alpha/ldiv.S, sysdeps/alpha/reml.S, sysdeps/alpha/remq.S,
3911 sysdeps/alpha/remqu.S: Likewise.
3912 * sysdeps/alpha/div_libc.h (FRAME): Increase to 64.
3914 2004-09-05 Ulrich Drepper <drepper@redhat.com>
3916 * nscd/cache.c (cache_add): Correctly log GETHOSTBYADDR and
3917 GETHOSTBYADDRv6 requests.
3919 2004-09-04 Ulrich Drepper <drepper@redhat.com>
3921 * nscd/pwdcache.c (cache_addpw): Use correct key length in
3923 * nscd/grpcache.c (cache_addgr): Likewise.
3925 2004-09-03 Alfred M. Szmidt <ams@kemisten.nu>
3927 * sysdeps/mach/hurd/i386/tls.h (THREAD_DTV): Changed type of _DTV
3930 2004-09-03 Ulrich Drepper <drepper@redhat.com>
3932 * nscd/nscd.c (parse_opt): Use writev instead of two write for
3935 2004-09-02 Ulrich Drepper <drepper@redhat.com>
3937 * nscd/connections.c (nscd_run): Check early for invalid request types.
3939 2004-09-02 Roland McGrath <roland@frob.com>
3941 * sysdeps/mach/hurd/i386/tls.h (TLS_INIT_TP_EXPENSIVE): New macro.
3942 (INSTALL_NEW_DTV, THREAD_DTV): Rewritten to fetch the right word.
3943 (THREAD_SELF): New macro.
3945 2004-09-02 Steven Munroe <sjmunroe@us.ibm.com>
3948 * stdlib/tst-setcontext.c (test_stack): Added test for stack clobber.
3949 (main): Call test_stack.
3950 * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S
3951 (__getcontext): Push stack frame then save parms in local frame.
3952 Improve instruction scheduling.
3953 * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S
3954 (__swapcontext): Likewise.
3956 2004-09-01 Andreas Schwab <schwab@suse.de>
3958 * sysdeps/unix/sysv/linux/ia64/sys/ucontext.h [g++ >= 3.5]: Use
3961 2004-09-01 Jakub Jelinek <jakub@redhat.com>
3964 * posix/fnmatch_loop.c (FCT): For backslash between brackets, branch
3965 to normal_bracket after fetching the next character.
3966 * posix/tst-fnmatch.input: Add 25 new tests.
3967 Reported by Markus Oberhumer <markus@oberhumer.com>.
3969 2004-09-01 Ulrich Drepper <drepper@redhat.com>
3971 * elf/rtld.c (dl_main): First check existence of ld.so.preload
3974 2004-09-01 Roland McGrath <roland@redhat.com>
3976 * sysdeps/unix/sysv/linux/bits/waitflags.h
3977 (WSTOPPED, WEXITED, WCONTINUED, WNOWAIT): New macros.
3978 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_WAITID_SYSCALL):
3980 * sysdeps/unix/sysv/linux/waitid.c: New file. Use new syscall when
3981 available, or fall back to the waitpid-based generic code.
3983 2004-08-14 Alfred M. Szmidt <ams@kemisten.nu>
3985 * sysdeps/mach/hurd/i386/init-first.c (_hurd_stack_setup): Let gcc
3986 clobber the `ebp' register.
3987 * sysdeps/mach/hurd/i386/Makefile (CFLAGS-init-first.c): Removed.
3988 Reverts change from 2004-05-07 by Jeroen Dekkers.
3990 * sysdeps/mach/hurd/i386/init-first.c (init): Changed the type of
3991 NEWSP from `void *' to `int *'. Changed all casts accordingly.
3993 2004-08-31 Jakub Jelinek <jakub@redhat.com>
3995 * wcsmbs/wcsmbsload.c (__wcsmbs_getfct): Move attribute_hidden
3997 * locale/localename.c (__current_locale_name): Likewise.
3999 2004-08-30 Roland McGrath <roland@frob.com>
4001 * scripts/extract-abilist.awk: If `lastversion' variable defined, omit
4002 later sets from output.
4003 * Makerules (check-abi): Pass option to set that with value of
4004 LIB-abi-frozen variable if one is set.
4006 * abilist/libcidn.abilist: New file (empty).
4008 2004-08-30 Jakub Jelinek <jakub@redhat.com>
4010 * posix/bits/posix1_lim.h (_POSIX_CHILD_MAX, _POSIX_OPEN_MAX): If
4011 not __USE_XOPEN2K, use the Unix98 mandated values.
4013 2004-08-27 Roland McGrath <roland@redhat.com>
4015 * configure.in (usetls): Default to yes.
4016 * configure: Regenerated.
4018 2004-08-26 Roland McGrath <roland@redhat.com>
4020 * configure.in (add_ons_automatic): New variable, set to yes or no
4021 indicating --enable-add-ons with no explicit list.
4022 (running add-on fragments): Allow a fragment to modify $libc_add_on
4023 and have that affect its place in the list of add-ons to use.
4024 * configure: Regenerated.
4026 2004-08-26 Ulrich Drepper <drepper@redhat.com>
4028 * nscd/cache.c: Major rewrite. The data is now optionally kept in
4029 a mmaped memory region which is automatically mirrored on disk.
4030 This implements persistent data storage. The Memory handled
4031 needed to be completely revamped, it now uses a garbage collection
4032 mechanism instead of malloc.
4033 * nscd/connections.c: Likewise.
4034 * nscd/nscd.c: Likewise.
4035 * nscd/nscd.h: Likewise.
4036 * nscd/nscd_conf.c: Likewise.
4037 * nscd/nscd_stat.c: Likewise.
4038 * nscd/grpcache.c: Likewise.
4039 * nscd/hstcache.c:: Likewise.
4040 * nscd/pwdcache.c:: Likewise.
4041 * nscd/Makefile: Add rules to build mem.c.
4042 * nscd/mem.c: New file.
4043 * nscd/nscd.conf: Describe new configuration options.
4045 2004-08-26 Kaz Kojima <kkojima@rr.iij4u.or.jp>
4047 * sysdeps/unix/sysv/linux/mips/pread.c: Include sgidefs.h only if
4048 NO_SGIDEFS_H isn't defined.
4049 * sysdeps/unix/sysv/linux/mips/pwrite.c: Likewise.
4050 * sysdeps/unix/sysv/linux/mips/pread64.c: Likewise.
4052 * sysdeps/unix/sysv/linux/sh/pread.c: Define NO_SGIDEFS_H and
4054 * sysdeps/unix/sysv/linux/sh/pwrite.c: Likewise.
4055 * sysdeps/unix/sysv/linux/sh/pread64.c: Likewise.
4056 * sysdeps/unix/sysv/linux/sh/pwrite64.c: Likewise.
4058 2004-08-26 Ulrich Drepper <drepper@redhat.com>
4060 * nscd/connections.c (nscd_run): atomic_increment was not missing.
4062 * sysdeps/gnu/Makefile (libdl-sysdep_routines): Don't add eval.
4063 Patch by Greg Schafer.
4065 2004-08-25 Richard Henderson <rth@redhat.com>
4067 * sysdeps/alpha/elf/start.S (_start): Use $15 as frame unwind
4068 instead of $31. Zero $15.
4069 * sysdeps/unix/sysv/linux/alpha/clone.S (thread_start): Likewise.
4071 2004-08-25 Ulrich Drepper <drepper@redhat.com>
4073 * sysdeps/powerpc/powerpc64/bits/atomic.h
4074 (__arch_compare_and_exchange_bool_32_acq): Fix case where oldval
4076 (__arch_compare_and_exchange_bool_32_rel): Likewise.
4078 * nscd/connections.c: Make socket nonblocking so that threads
4079 don't get stuck on accept. Fix locking.
4081 * nscd/grpcache.c (cache_addgr): Use copy of original key in hash
4082 entry with alternative key.
4083 * nscd/pwdcache.c (cache_addpw): Likewise.
4085 2004-08-25 Richard Sandiford <rsandifo@redhat.com>
4087 * sysdeps/mips/dl-machine.h (_dl_start_user): Don't set
4090 2004-08-23 Ulrich Drepper <drepper@redhat.com>
4092 * sysdeps/gnu/netinet/udp.h: Cosmetic changes. Remove unnecessary
4093 __BEGIN_DECLS/__END_DECLS.
4095 2004-08-23 Andreas Jaeger <aj@suse.de>
4098 * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h (O_NOATIME): Define.
4099 * sysdeps/unix/sysv/linux/arm/bits/fcntl.h (O_NOATIME): Likewise.
4100 * sysdeps/unix/sysv/linux/cris/bits/fcntl.h (O_NOATIME): Likewise.
4101 * sysdeps/unix/sysv/linux/hppa/bits/fcntl.h (O_NOATIME): Likewise.
4102 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h (O_NOATIME): Likewise.
4103 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h (O_NOATIME): Likewise.
4104 * sysdeps/unix/sysv/linux/m68k/bits/fcntl.h (O_NOATIME): Likewise.
4105 * sysdeps/unix/sysv/linux/mips/bits/fcntl.h (O_NOATIME): Likewise.
4106 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h (O_NOATIME): Likewise.
4107 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (O_NOATIME): Likewise.
4108 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h (O_NOATIME): Likewise.
4109 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_NOATIME): Likewise.
4110 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h (O_NOATIME): Likewise.
4112 2004-08-21 Ulrich Drepper <drepper@redhat.com>
4114 * malloc/hooks.c (DEFAULT_CHECK_ACTION): Moved to malloc.c.
4115 (check_action): Likewise.
4116 When printing error messages, use malloc_printf_nc now instead of
4117 fiddling with the streams cancellation flag in every place.
4118 * malloc/malloc.c (DEFAULT_CHECK_ACTION): New definition. Change
4120 (check_action): New variable.
4121 (unlink): Print error message and eventually terminate in case list
4123 (malloc_printf_nc): New function. Use it in _int_free.
4124 Change proposed by Arjan van de Ven.
4126 * dlfcn/Makefile: Don't build eval.c anymore.
4128 2004-08-20 Roland McGrath <roland@frob.com>
4130 * csu/Makefile ($(objpfx)version-info.h): Use printf in place
4131 of echo -e for POSIX.2 portability.
4132 Reported by Paul Jarc <prj@po.cwru.edu>.
4134 2004-08-19 Ulrich Drepper <drepper@redhat.com>
4136 * sysdeps/posix/getaddrinfo.c (gaih_inet): Minor optimizations in
4139 * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't use
4140 getcanonname_r function if AI_CANONNAME flag is not set in
4143 * nis/nss_compat/compat-initgroups.c (getgrent_next_nss):
4144 Initialize mysize with limits only if latter is >= 0. Use mysize
4147 2004-08-19 Jakub Jelinek <jakub@redhat.com>
4149 * sysdeps/posix/getaddrinfo.c (gaih_inet): Cast canon to (char *)
4152 * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Initialize
4153 status to NSS_STATUS_UNAVAIL.
4155 2004-08-19 Ulrich Drepper <drepper@redhat.com>
4157 * sysdeps/posix/getaddrinfo.c (gaih_inet): Use h->h_name in the
4158 cannoname lookup since it has the FQDN even if the original NAME
4161 2004-08-18 Ulrich Drepper <drepper@redhat.com>
4163 * sysdeps/posix/getaddrinfo.c (gaih_inet): Store NAME parameter
4164 pointer in new variable ORIG_NAME and use this pointer when
4165 determination of canonical name failed, not the possibly IDN
4166 translated value of NAME.
4168 2004-08-17 Ulrich Drepper <drepper@redhat.com>
4170 * resolv/resolv.h (RES_DEFAULT): Add RES_NOIP6DOTINT.
4171 * resolv/res_init.c (res_setoptions): Recognize ip6-dotint option.
4172 Reset RES_NOIP6DOTINT flag in this case..
4174 * sysdeps/posix/getaddrinfo.c: Fix memory handling of
4177 2004-08-16 Ulrich Drepper <drepper@redhat.com>
4179 * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Don't use
4180 CNAME records, we better follow the chain of CNAME records which
4181 can be accomplished with A/AAAA lookups.
4183 2004-08-15 Roland McGrath <roland@redhat.com>
4185 * sysdeps/unix/sysv/linux/bits/resource.h (enum __rusage_who):
4186 Remove __RUSAGE_BOTH constant and RUSAGE_BOTH macro.
4187 * sysdeps/unix/sysv/linux/alpha/bits/resource.h: Likewise.
4188 * sysdeps/unix/sysv/linux/mips/bits/resource.h: Likewise.
4189 * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Likewise.
4191 2004-08-15 Roland McGrath <roland@frob.com>
4193 * sysdeps/i386/i686/Makefile (elide-routines.os): Append hp-timing to
4195 (static-only-routines): ... this.
4196 * sysdeps/ia64/Makefile: Likewise.
4197 * sysdeps/sparc/sparc32/sparcv9/Makefile: Likewise.
4198 * sysdeps/sparc/sparc64/Makefile: Likewise.
4199 * sysdeps/x86_64/Makefile: Likewise.
4200 * sysdeps/i386/i686/hp-timing.c: Revert copyright terms change.
4201 * sysdeps/ia64/hp-timing.c: Likewise.
4202 * sysdeps/sparc/sparc32/sparcv9/hp-timing.c: Likewise.
4203 * sysdeps/sparc/sparc64/hp-timing.c: Likewise.
4205 * csu/elf-init.c: Update copyright terms including special exception
4206 for these trivial files, which are statically linked into executables
4207 that use dynamic linking for the significant library code.
4208 * io/fstat.c: Likewise.
4209 * io/fstat64.c: Likewise.
4210 * io/lstat.c: Likewise.
4211 * io/lstat64.c: Likewise.
4212 * io/stat.c: Likewise.
4213 * io/stat64.c: Likewise.
4214 * stdlib/atexit.c: Likewise.
4215 * sysdeps/alpha/elf/initfini.c: Likewise.
4216 * sysdeps/alpha/elf/start.S: Likewise.
4217 * sysdeps/arm/elf/start.S: Likewise.
4218 * sysdeps/cris/elf/start.S: Likewise.
4219 * sysdeps/generic/initfini.c: Likewise.
4220 * sysdeps/generic/mknod.c: Likewise.
4221 * sysdeps/hppa/elf/initfini.c: Likewise.
4222 * sysdeps/hppa/elf/start.S: Likewise.
4223 * sysdeps/i386/elf/start.S: Likewise.
4224 * sysdeps/i386/i686/hp-timing.c: Likewise.
4225 * sysdeps/ia64/elf/initfini.c: Likewise.
4226 * sysdeps/ia64/elf/start.S: Likewise.
4227 * sysdeps/ia64/hp-timing.c: Likewise.
4228 * sysdeps/m68k/elf/start.S: Likewise.
4229 * sysdeps/mach/start.c: Likewise.
4230 * sysdeps/mips/elf/start.S: Likewise.
4231 * sysdeps/powerpc/powerpc32/elf/start.S: Likewise.
4232 * sysdeps/powerpc/powerpc64/elf/start.S: Likewise.
4233 * sysdeps/s390/s390-32/elf/start.S: Likewise.
4234 * sysdeps/s390/s390-32/initfini.c: Likewise.
4235 * sysdeps/s390/s390-64/elf/start.S: Likewise.
4236 * sysdeps/s390/s390-64/initfini.c: Likewise.
4237 * sysdeps/sh/elf/initfini.c: Likewise.
4238 * sysdeps/sh/elf/start.S: Likewise.
4239 * sysdeps/sparc/sparc32/elf/start.S: Likewise.
4240 * sysdeps/sparc/sparc32/sparcv9/hp-timing.c: Likewise.
4241 * sysdeps/sparc/sparc64/elf/start.S: Likewise.
4242 * sysdeps/sparc/sparc64/hp-timing.c: Likewise.
4243 * sysdeps/standalone/i386/start.S: Likewise.
4244 * sysdeps/standalone/i960/start.S: Likewise.
4245 * sysdeps/standalone/m68k/m68020/start.S: Likewise.
4246 * sysdeps/unix/arm/start.c: Likewise.
4247 * sysdeps/unix/bsd/osf/alpha/start.S: Likewise.
4248 * sysdeps/unix/bsd/ultrix4/mips/start.S: Likewise.
4249 * sysdeps/unix/sparc/start.c: Likewise.
4250 * sysdeps/unix/start.c: Likewise.
4251 * sysdeps/unix/sysv/aix/start.s: Likewise.
4252 * sysdeps/unix/sysv/irix4/start.c: Likewise.
4253 * sysdeps/x86_64/elf/initfini.c: Likewise.
4254 * sysdeps/x86_64/elf/start.S: Likewise.
4256 2004-08-15 Roland McGrath <roland@redhat.com>
4259 * sysdeps/unix/sysv/linux/kernel-features.h
4260 (__ASSUME_BRK_PAGE_ROUNDED): New macro.
4261 * sysdeps/unix/sysv/linux/dl-sysdep.c (frob_brk)
4262 [! __ASSUME_BRK_PAGE_ROUNDED]: Adjust the break up if it falls within
4263 the partial page after the dynamic linker's own data segment.
4265 2004-08-15 Ulrich Drepper <drepper@redhat.com>
4267 * sysdeps/posix/getaddrinfo.c (gaih_inet): Optimize generation of
4268 v4-mapped addresses a bit.
4269 (gethosts): Move alloca out of macro, so that it is done only once.
4271 * sysdeps/posix/getaddrinfo.c (gaih_addrtuple): Change type of
4272 addr to avoid casts.
4273 (gethosts): Removed.
4274 (gethosts2): Renamed to gethosts. Make it usable for family !=
4275 AF_UNSPEC. Fix AI_V4MAPPED.
4276 (gaih_inet): Remove use of old gethosts. Always use what used to be
4277 gethosts2. If entry is found, try to use the same NSS module's
4278 getcanonname_r function. Use gethostbyaddr for AI_CANONNAME only
4279 if getcanonname_r was not available. Fix filtering of AI_V4MAPPED
4280 addresses. Numerous cleanups.
4281 * resolv/nss_dns/dns-canon.c: New file.
4282 * resolv/Makefile (libnss_dns-routines): Add dns-canon.
4283 * resolv/Versions (libnss_dns): Add _nss_dns_getcanonname_r.
4285 * elf/Makefile: Add rules to build and run tst-dlopenrpath.
4286 * elf/tst-dlopenrpath.c: New file.
4287 * elf/tst-dlopenrpathmod.c: New file.
4289 * intl/tst-gettext.sh: Adjust for change of de.po file to UTF-8.
4290 * intl/tst-gettext.c: Likewise.
4292 * nss/getent.c (ahosts_keys_int): Correctly print IPv6 addresses.
4294 * nss/getent.c: Allow queries for getaddrinfo with AF_INET and
4297 2004-08-14 Ulrich Drepper <drepper@redhat.com>
4299 * po/de.po: Update from translation team.
4301 2004-08-14 Roland McGrath <roland@frob.com>
4303 * sysdeps/mach/configure: Regenerated.
4304 * sysdeps/mach/hurd/configure: Regenerated.
4306 2004-08-14 Ulrich Drepper <drepper@redhat.com>
4308 * sysdeps/posix/getaddrinfo.c (getaddrinfo): If RFC3484 sorting is
4309 performed, make sure it is still the first entry after sorting
4310 that has the ai_canonname information.
4312 * sysdeps/posix/getaddrinfo.c (gaih_inet): Really set ai_canonname
4315 2004-08-13 Daniel Jacobowitz <dan@debian.org>
4317 * scripts/output-format.sed: Handle default case of three-argument
4320 * sysdeps/arm/machine-gmon.h (mcount_internal): Mark as
4323 2004-08-13 Ulrich Drepper <drepper@redhat.com>
4325 * nss/getent.c (ahosts_keys): ai_canonname is NULL for all but the
4326 first returned entry. Print name only if not NULL.
4328 * nis/nss_nis/nis-netgrp.c: Remove locking by using data in struct
4329 __netgrent object passed in instead of global variables.
4331 * nis/nss_nisplus/nisplus-netgrp.c: Remove locking by using data
4332 in struct __netgrent object passed in instead of global variables.
4333 * inet/netgroup.h (struct __netgrent): Add service_user field.
4334 Move cursor in anonymous union, add new field location to that
4336 * inet/getnetgrent_r.c: Extensive rewrite to really enable
4337 concurrent uset of set/get/endnetgrent and innetgr.
4338 Reported by Chuck Simmons.
4340 * inet/netgroup.h (struct name_list): Replace name pointer with
4342 * inet/getnetgrent_r.c: Adjust code for change in name_list
4343 layout. Numerous strdup and free calls removed.
4345 * elf/sprof.c (read_symbols): When comparing aliases, prefer
4346 non-hidden over hidden symbols and strong over weak symbols
4347 if both don't start with '_'.
4349 * malloc/malloc.c: Use strong_alias instead of weak_alias wherever
4352 2004-08-12 Jakub Jelinek <jakub@redhat.com>
4354 * sysdeps/unix/sysv/linux/bits/resource.h: Define non-standard
4355 RUSAGE_ enums as __RUSAGE_ and adjust macros accordingly.
4356 * sysdeps/unix/sysv/linux/alpha/bits/resource.h: Likewise.
4357 * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Likewise.
4358 * sysdeps/unix/sysv/linux/mips/bits/resource.h: Likewise.
4359 Define non-standard RLIMIT_ enums as __RLIMIT_ and adjust macros
4362 2004-08-11 Andreas Schwab <schwab@suse.de>
4364 * resolv/res_libc.c: Move definition of __res_initstamp ...
4365 * resolv/res_init.c: ... here.
4367 2004-08-10 GOTO Masanori <gotom@debian.or.jp>
4369 * locale/C-time.c: Change default ERA value from NULL to "".
4370 * locale/tst-C-locale.c: Add test case for ERA keywords.
4372 2004-08-12 Ulrich Drepper <drepper@redhat.com>
4374 * sysdeps/unix/sysv/linux/bits/resource.h: Define non-standard
4375 RLIMIT__ enums as __RLIMIT_ and adjust macros accordingly.
4376 * sysdeps/unix/sysv/linux/alpha/bits/resource.h: Likewise.
4377 * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Likewise.
4379 2004-08-12 Jakub Jelinek <jakub@redhat.com>
4381 * sysdeps/unix/sysv/linux/bits/resource.h (RLIMIT_SIGPENDING,
4382 RLIMIT_MSGQUEUE): Add.
4383 (RLIMIT_NLIMITS, RLIM_NLIMITS): Adjust.
4384 * sysdeps/unix/sysv/linux/alpha/bits/resource.h (RLIMIT_SIGPENDING,
4385 RLIMIT_MSGQUEUE, RLIMIT_NLIMITS): Add.
4386 (RLIM_NLIMITS): Adjust.
4387 * sysdeps/unix/sysv/linux/sparc/bits/resource.h (RLIMIT_SIGPENDING,
4388 RLIMIT_MSGQUEUE, RLIMIT_NLIMITS): Add.
4389 (RLIM_NLIMITS): Adjust.
4390 * sysdeps/unix/sysv/linux/mips/bits/resource.h (RLIMIT_SIGPENDING,
4391 RLIMIT_MSGQUEUE, RLIMIT_NLIMITS): Add.
4392 (RLIM_NLIMITS): Adjust.
4394 2004-08-12 Jakub Jelinek <jakub@redhat.com>
4396 * resolv/res_query.c (__libc_res_nsearch): Protect the debugging
4397 printf with #ifdef DEBUG and RES_DEBUG check.
4399 * sysdeps/unix/sysv/linux/bits/shm.h: Move __END_DECLS after
4401 * sysdeps/generic/bits/shm.h: Add __BEGIN_DECLS for __getpagesize
4403 * sysdeps/gnu/bits/shm.h: Likewise.
4404 * sysdeps/unix/sysv/linux/alpha/bits/shm.h: Likewise.
4405 * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Likewise.
4406 * sysdeps/unix/sysv/linux/s390/bits/shm.h: Likewise.
4407 * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Likewise.
4408 * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: Likewise.
4410 2004-08-12 Ulrich Drepper <drepper@redhat.com>
4412 * po/ca.po: Update from translation team.
4414 2004-08-11 Ulrich Drepper <drepper@redhat.com>
4416 * sysdeps/unix/sysv/linux/bits/shm.h: Add __BEGIN_DECLS for
4417 __getpagesize declaration.
4419 2004-08-11 Roland McGrath <roland@redhat.com>
4421 * configure.in (libc_cv_cpp_asm_debuginfo): Add missing braces around
4423 Reported by Andreas Schwab <schwab@suse.de>.
4424 * configure: Regenerated.
4426 * posix/tst-waitid.c (do_test): Ignore SIGCHLD before cleanup SIGKILL.
4428 2004-08-11 Ulrich Drepper <drepper@redhat.com>
4430 * time/tzset.c (tzset_internal): Add new parameter which is
4431 nonzero if called through tzset. Use TZDEFAULT name including
4432 name comparison if the new parameter is zero. This means implicit
4433 tzset calls will not cause files to be opened and read by tzfile.c
4436 2004-08-11 Jakub Jelinek <jakub@redhat.com>
4438 * rt/tst-timer2.c (do_test): If timer_create fails, just continue.
4439 * rt/tst-timer4.c (do_test): If one of the timer_create calls fails,
4440 return 1 immediately.
4442 * time/tzfile.c (__tzfile_read): Free transitions only if it will
4445 * sysdeps/ieee754/dbl-64/mpa.c: Include <sys/param.h>.
4446 * sysdeps/ieee754/dbl-64/mpa.h (MAX, MIN): Macros removed.
4448 * stdio-common/tst-popen.c: Include <string.h>.
4450 * resolv/res_send.c (__libc_res_nsend): Only define TMPBUF #if DEBUG.
4452 * sysdeps/pthread/aio_misc.c (handle_fildes_io): Remove noreturn
4453 attribute. Return NULL instead of calling pthread_exit at the end.
4455 2004-08-11 Roland McGrath <roland@redhat.com>
4457 * iconvdata/testdata/ISO-2022-JP-3: Regenerated.
4459 2004-08-10 Alfred M. Szmidt <ams@kemisten.nu>
4461 * sysdeps/generic/bits/in.h (struct ip_mreq): Remove definition.
4463 2004-08-10 Jakub Jelinek <jakub@redhat.com>
4465 * libio/bits/stdio.h (fread_unlocked): Cast 0 to (size_t).
4466 (fwrite_unlocked): When checking if size * n is <= 8, cast each
4467 argument to size_t individually. Cast n to (void) instead of
4468 (size_t), surround with (), return (size_t) 0 if one of n or size
4470 * stdio-common/Makefile (tests): Add tst-unlockedio.
4471 * stdio-common/tst-unlockedio.c: New test.
4473 2004-08-09 Roland McGrath <roland@frob.com>
4475 * manual/install.texi (Supported Configurations): Replace bug-glibc
4476 mention with web URL.
4477 * INSTALL: Regenerated.
4478 * locale/iso-3166.def: Likewise, in comment.
4479 * locale/iso-4217.def: Likewise.
4480 * locale/iso-639.def: Likewise.
4481 * posix/cpio.h: Remove bug reporting comment.
4483 2004-08-09 Ulrich Drepper <drepper@redhat.com>
4485 * libio/bits/stdio.h (fread_unlocked): Add a couple of (size_t)
4486 casts to handle funny calls with floating point argument values
4487 and signed values correctly and without warning.
4488 (fwrite_unlocked): Likewise. [BZ #309]
4490 * malloc/memusage.c (me): Use creat64, not creat.
4491 * malloc/memusagestat.c: Fix handling of very large sizes. [BZ #285]
4492 Patch by Guy Maor <guymaor@yahoo.com>.
4494 * elf/ldconfig.c (options): Mark parameter option names as
4495 translatable. [BZ #253] Patch by Jakub Bogusz <qboosh@pld-linux.org>.
4497 * iconv/gconv_charset.h (strip): Also allow comma which is what is
4498 used to separate options. [BZ #194]
4500 2004-08-09 Roland McGrath <roland@redhat.com>
4502 * FAQ.in: Refer to web pages instead of bug-glibc.
4505 * time/strptime_l.c: #include <stdbool.h>, `bool' used in last change.
4507 2004-08-09 Ulrich Drepper <drepper@redhat.com>
4509 * time/tzset.c (tzset_internal): If TZ is not set do not compare
4510 old and new tz value since it might be /etc/localtime in both
4511 cases although the file changed. [BZ #154]
4512 Patch by Christian Franke <franke@computer.org>.
4514 * time/tzfile.c (__tzfile_read): Determine dev/ino of file.
4515 Compare with values of previously opened file. Don't do anything
4518 2004-08-08 Ulrich Drepper <drepper@redhat.com>
4520 * elf/dl-load.c (_dl_map_object): If __RTLD_CALLMAP flag is set,
4521 reset loader before the actual loading.
4522 * elf/dl-open.c (dl_open_worker): If file name contains no path
4523 element determine map of caller. Pass caller map in this case to
4524 _dl_map_object. Set __RTLD_CALLMAP in mode.
4525 * include/dlfcn.h (__RTLD_CALLMAP): Define. [BZ #116]
4526 Patch by Greg Wolodkin <greg@mathworks.com>.
4528 * misc/syslog.c (openlog_internal): Always try both UDP and TCP.
4529 [BZ #108] Patch mainly by Bjorn Andersson <bjorn@iki.fi>.
4531 * configure.in: Also recognize i786. [BZ #106]
4532 Patch by <pluto@pld-linux.org>.
4534 * resolv/res_query.c (__libc_res_nsearch): Correctly test whether
4535 name contains any dots. [BZ #95]
4537 * resolv/res_send.c: Compiling with DEBUG defined works again.
4538 * resolv/gethnamaddr.c (dprintf): Renamed to Dprintf. Adjust all
4541 * resolv/tst-leaks.c (TIMEOUT): Define so that if no server is
4542 available the process is not killed. [BZ #41]
4544 * intl/tst-gettext.c (main): Improve some messages. [BZ #33]
4546 * time/strptime_l.c (__strptime_internal): Fix handling of %Ey.
4549 * po/sv.po: Update from translation team.
4551 2004-08-07 Ulrich Drepper <drepper@redhat.com>
4553 * inet/netinet/in.h: Add more const to the setipv4soucefilter,
4554 getsourcefilter, and setsourcefilter parameter list.
4555 * sysdeps/generic/setipv4sourcefilter.c: Likewise.
4556 * sysdeps/generic/getsourcefilter.c: Likewise.
4557 * sysdeps/generic/setsourcefilter.c: Likewise.
4558 * sysdeps/unix/sysv/linux/setipv4sourcefilter.c: Likewise.
4559 * sysdeps/unix/sysv/linux/getsourcefilter.c: Likewise.
4560 * sysdeps/unix/sysv/linux/setsourcefilter.c: Likewise.
4562 * po/tr.po: Update from translation team.
4564 2004-08-06 Ulrich Drepper <drepper@redhat.com>
4566 * iconvdata/jisx0213.h (jisx0213_added_in_2004_p): Fix typo.
4567 Reported by Paolo Bonzini.
4569 2004-08-06 Jakub Jelinek <jakub@redhat.com>
4571 * sysdeps/ia64/dl-machine.h (elf_machine_fixup_plt): Add
4573 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_runtime_setup,
4574 elf_machine_fixup_plt, elf_machine_plt_conflict): Likewise.
4576 * sysdeps/unix/sysv/linux/netatalk/at.h: Include bits/sockaddr.h
4577 before including linux/atalk.h.
4579 * resolv/res_libc.c: Include atomic.h.
4581 * intl/finddomain.c (free_mem): Rename to...
4582 (_nl_finddomain_subfreeres): ... this. Add
4583 __libc_freeres_fn_section.
4584 * intl/loadmsgcat.c (_nl_unload_domain): Add
4585 __libc_freeres_fn_section.
4586 * intl/gettextP.h (_nl_unload_domain): Move into #ifdef _LIBC.
4587 Add attribute_hidden.
4588 (_nl_findomain_subfreeres): New prototype.
4589 * iconv/gconv_db.c (free_mem): Call _nl_findomain_subfreeres.
4591 2004-07-30 Guido Guenther <agx@sigxcpu.org>
4593 * nss/getent.c (passwd_keys): Use strtoul instead of isdigit to
4594 test if the key is numeric or not.
4595 (group_keys): Likewise.
4597 2004-08-05 Ulrich Drepper <drepper@redhat.com>
4599 * inet/netinet/in.h: Define struct ip_msfilter, IP_MSFILTER_SIZE,
4600 struct group_filter, and GROUP_FILTER_SIZE.
4601 * include/sys/socket.h: Declare __getsockopt.
4602 * sysdeps/unix/sysv/linux/setipv4sourcefilter.c: New file.
4603 * sysdeps/unix/sysv/linux/getipv4sourcefilter.c: New file.
4604 * sysdeps/unix/sysv/linux/setsourcefilter.c: New file.
4605 * sysdeps/unix/sysv/linux/getsourcefilter.c: New file. [BZ #211]
4607 * po/ko.po: Update from translation team.
4609 2004-08-04 Jakub Jelinek <jakub@redhat.com>
4611 * hesiod/hesiod.c (__hesiod_res_get): Use calloc instead of malloc +
4613 (__hesiod_res_set): Free nsaddrs.
4615 * include/resolv.h (__res_maybe_init): Add prototype.
4616 * resolv/resolv.h (struct __res_state): Add _u._ext.initstamp field.
4617 * resolv/Versions (libc): Add __res_maybe_init@@GLIBC_PRIVATE.
4618 * resolv/res_libc.c (__res_initstamp, lock): New variables.
4619 (res_init): Increase __res_initstamp.
4620 (__res_maybe_init): New function.
4621 * resolv/res_init.c (__res_vinit): Initialize _u._ext.initstamp.
4622 * hesiod/hesiod.c (__hesiod_res_get): Use __res_maybe_init instead
4623 of RES_INIT check and {res_ninit,__res_ninit,res_init} call.
4624 * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
4625 * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname2_r,
4626 _nss_dns_gethostbyaddr_r): Likewise.
4627 * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyname_r,
4628 _nss_dns_getnetbyaddr_r): Likewise.
4629 * resolv/gethnamaddr.c (gethostbyname, gethostbyname2,
4630 gethostbyaddr): Likewise.
4631 * resolv/res_data.c (fp_nquery, res_mkquery, res_mkupdate,
4632 res_isourserver, res_sendsigned, res_update, res_search,
4633 res_querydomain): Likewise.
4634 * nss/getXXbyYY_r.c (INTERNAL (REENTRANT_NAME)): Likewise.
4635 * nss/digits_dots.c (__nss_hostname_digits_dots): Likewise.
4636 * nss/getnssent_r.c (__nss_setent, __nss_endent, __nss_getent_r):
4639 2004-08-05 Ulrich Drepper <drepper@redhat.com>
4641 * sysdeps/posix/getaddrinfo.c (gaih_inet): Set ai_family for
4642 V4-mapped IPv6 addresses and req->ai_family==AF_INET.
4643 Reported by A. Guru <a.guru@sympatico.ca>.
4645 * po/sv.po: Update from translation team.
4646 * po/sk.po: Likewise.
4647 * po/pl.po: Likewise.
4649 2004-08-04 Jakub Jelinek <jakub@redhat.com>
4650 Ulrich Drepper <drepper@redhat.com>
4652 * wcsmbs/mbsrtowcs_l.c (__mbsrtowcs_l): Don't read more input
4653 characters than necessary.
4655 2004-08-05 Ulrich Drepper <drepper@redhat.com>
4657 * wcsmbs/Makefile (tests): Add tst-mbsrtowcs.
4658 * wcsmbs/tst-mbsrtowcs.c: New file.
4660 * po/fr.po: Update from translation team.
4662 2004-08-04 Jakub Jelinek <jakub@redhat.com>
4664 * resolv/inet_pton.c (inet_pton4): Disallow octal numbers. Reported
4665 by A. Guru <a.guru@sympatico.ca>. [BZ #295]
4667 2004-08-05 Ulrich Drepper <drepper@redhat.com>
4669 * po/nl.po: Update from translation team.
4671 * sysdeps/posix/getaddrinfo.c (gaih_inet): Recognize all the IPv4
4672 numeric address formats inet_addr knows.
4673 (getaddrinfo): Allow AI_NUMERICSERV flag.
4674 If neither IPv4 nor IPv6 interface is present we cannot make any
4675 decision for AI_ADDRCONFIG. Fail if AI_NUMERICSERV is set and the
4676 string is not just a number. Remove useless freeaddrinfo call.
4677 * resolv/netdb.h (AI_NUMERICSERV): Define.
4678 Based on a patch by a.guru@sympatico.ca.
4680 2004-08-04 Jakub Jelinek <jakub@redhat.com>
4682 * stdlib/strfmon_l.c (__vstrfmon_l): Memset whole info structure
4683 instead of trying to initialize some, but not all, fields one by
4685 * stdio-common/printf_size.c (printf_size): Initialize fb_info
4686 structure with *info instead of trying to initialize some, but not
4687 all, fields from it.
4689 * nscd/connections.c (handle_request): Check if req->type is in
4690 LASTDBREQ .. LASTREQ range instead of req.
4692 * locale/programs/linereader.c (lr_create): Initialize
4693 lr->return_widestr to 0.
4695 * elf/dl-close.c (free_slotinfo): Add __libc_freeres_fn_section.
4696 (free_mem): Call free_slotinfo just once.
4698 * stdio-common/tst-fmemopen.c (main): Check for MAP_FAILED instead
4701 * locale/localeinfo.h (_nl_locale_subfreeres): New prototype.
4702 * locale/setlocale.c (free_category): Add __libc_freeres_fn_section.
4703 (free_mem): Rename to _nl_locale_subfreeres.
4704 * iconv/gconv_db.c: Include locale/localeinfo.h.
4705 (free_derivation, free_modules_db): Add __libc_freeres_fn_section.
4706 (free_mem): Call _nl_locale_subfreeres.
4707 * iconv/gconv_dl.c (do_release_all): Add __libc_freeres_fn_section.
4709 2004-08-04 Roland McGrath <roland@frob.com>
4711 * Makeconfig ($(common-objpfx)config.status):
4712 Fix typo: $(add_ons) -> $(add-ons).
4713 (Makeconfig-add-on): New variable. When doing $(sysdep-makeconfigs)
4714 include, use black magic to get it set to an add-on's name during the
4715 include of the add-on's Makeconfig.
4717 * configure.in: Use variable name `libc_add_on' when sourcing add-on
4718 configure fragments, so they can refer to this.
4719 * configure: Regenerated.
4721 2004-08-04 Roland McGrath <roland@redhat.com>
4723 * posix/tst-waitid.c (test_child): Sleep a second before stopping.
4724 (do_test): Bump sleep to three seconds.
4725 (sigchld, check_sigchld): New functions.
4726 (do_test): Handle SIGCHLD and check for getting the right details.
4728 * posix/tst-waitid.c (do_test): Kill the child process when bailing
4729 out early on some failure.
4730 [WCONTINUED]: Test WCONTINUED functionality.
4732 2004-08-03 Ulrich Drepper <drepper@redhat.com>
4734 * nscd/connections.c (handle_request): Print more descriptive
4735 message for invalid request types.
4737 2004-08-02 Jakub Jelinek <jakub@redhat.com>
4739 * iconvdata/ibm932.c (BODY): Avoid binary search for ch >= 0xffff.
4740 Always treat high as highest number in range + 1.
4741 * iconvdata/ibm943.c (BODY): Likewise.
4743 2004-07-31 Bruno Haible <bruno@clisp.org>
4745 * iconvdata/JISX0213.TXT: Updated to JISX0213 plane 1 version 2004.
4746 * iconvdata/jisx0213.c (__jisx0213_to_ucs_main,
4747 __jisx0213_to_ucs_pagestart, __jisx0213_from_ucs_level1,
4748 __jisx0213_from_ucs_level2): Regenerated.
4749 * iconvdata/jisx0213.h (jisx0213_added_in_2004_p): New function.
4750 * iconvdata/iso-2022-jp-3.c (JISX0213_1_2000_set): Renamed from
4752 (JISX0213_1_2004_set): New enum value.
4753 (BODY for FROM_LOOP): Treat ESC $ ( Q like ESC $ ( O.
4754 (BODY for TO_LOOP): For JISX 0213 plane 1 characters, emit ESC $ ( O
4755 when possible, ESC $ ( Q when needed.
4756 * iconvdata/testdata/EUC-JISX0213: Add the 10 new characters.
4757 * iconvdata/testdata/EUC-JISX0213..UTF8: Update.
4758 * iconvdata/testdata/SHIFT_JISX0213: Add the 10 new characters.
4759 * iconvdata/testdata/SHIFT_JISX0213..UTF8: Update.
4760 * iconvdata/testdata/ISO-2022-JP-3: Add the 10 new JISX0213 characters.
4761 * iconvdata/testdata/ISO-2022-JP-3..UTF8: Update.
4763 2004-07-22 Bruno Haible <bruno@clisp.org>
4765 * iconvdata/gconv-modules (ISO-8859-7): Add alias ISO_8859-7:2003.
4767 2004-07-29 David S. Miller <davem@redhat.com>
4769 * sysdeps/sparc/sparc64/sparcv9b/memcpy.S (memcpy): Optimize
4770 better for smaller than 256 byte copies. Also, use only one
4771 unrolled loop instead of two for the large copy case.
4773 2004-07-30 Richard Henderson <rth@redhat.com>
4775 * sysdeps/alpha/divq.S: Save t3 before it gets clobbered.
4776 * sysdeps/alpha/remq.S: Likewise.
4777 * sysdeps/alpha/div.S, sysdeps/alpha/ldiv.S: Rewrite with the
4778 new division algorithms in divl.S and divq.S respectively.
4780 2004-07-28 GOTO Masanori <gotom@debian.or.jp>
4782 * timezone/asia: Update from tzdata2004b.
4783 * timezone/backward: Likewise.
4784 * timezone/europe: Likewise.
4785 * timezone/iso3166.tab: Likewise.
4786 * timezone/leapseconds: Likewise.
4787 * timezone/northamerica: Likewise.
4788 * timezone/southamerica: Likewise.
4789 * timezone/zone.tab: Likewise.
4791 * timezone/private.h: Update from tzcode2004b.
4792 * timezone/zic.c: Likewise.
4794 2004-07-27 Ulrich Drepper <drepper@redhat.com>
4796 * nscd/grpcache.c (cache_addgr): If necessary, add entry also
4797 under the name the user provided.
4798 * nscd/pwdcache.c (cache_addpw): Likewise.
4800 2004-07-26 Roland McGrath <roland@redhat.com>
4802 * sysdeps/posix/waitid.c [WEXITED]: Clear WEXITED bit in OPTIONS for
4805 2004-07-26 Ulrich Drepper <drepper@redhat.com>
4807 * nscd/hstcache.c (cache_addhst): Fix two scenarios which lead to
4810 * sysdeps/unix/sysv/linux/ifreq.c (__ifreq): Assign pointer for
4811 new buffer at the right time.
4812 Reported by Jakub Bogusz <qboosh@pld-linux.org>.
4814 2004-07-25 Ulrich Drepper <drepper@redhat.com>
4816 * inet/Versions [libc, GLIBC_2.3.4]: Add getipv4sourcefilter,
4817 getsourcefilter, setipv4sourcefilter, and setsourcefilter.
4818 * inet/Makefile (routines): Likewise.
4819 * inet/netinet/in.h: Add prototypes for getipv4sourcefilter,
4820 getsourcefilter, setipv4sourcefilter, and setsourcefilter.
4821 * sysdeps/generic/getipv4sourcefilter.c: New file.
4822 * sysdeps/generic/setipv4sourcefilter.c: New file.
4823 * sysdeps/generic/getsourcefilter.c: New file.
4824 * sysdeps/generic/setsourcefilter.c: New file.
4826 2004-07-17 Steven Munroe <sjmunroe@us.ibm.com>
4828 * sysdeps/powerpc/powerpc64/memcpy.S: Improve instruction scheduling
4829 for POWER4 machines.
4831 2004-07-21 Jakub Jelinek <jakub@redhat.com>
4834 * stdlib/strtod_l.c (INTERNAL (__STRTOF)): Fix used >=
4835 BITS_PER_MP_LIMB shifting up.
4836 * stdlib/tst-strtod.c (main): Add new tests.
4838 2004-07-23 Jakub Jelinek <jakub@redhat.com>
4841 * libio/iopopen.c (_IO_new_popen): Use _IO_init instead of
4842 _IO_no_init. Remove wd from struct locked_FILE.
4843 (_IO_wproc_jumps): Remove.
4844 Reported by Andrew Josey <a.josey@opengroup.org>.
4845 * stdio-common/Makefile (tests): Add tst-popen.
4846 * stdio-common/tst-popen.c: New test.
4848 2004-07-23 Ulrich Drepper <drepper@redhat.com>
4850 * posix/bits/posix1_lim.h: Fix values for _POSIX_CHILD_MAX and
4851 _POSIX_OPEN_MAX. Add _POSIX_HOST_NAME_MAX, _POSIX_SYMLINK_MAX,
4852 _POSIX_SYMLOOP_MAX, and _POSIX_RE_DUP_MAX.
4853 Reported by Andrew Josey.
4855 * include/features.h: Document _POSIX_C_SOURCE == 200112L.
4857 * grp/grp.h: Define gid_t if __USE_XOPEN2K is defined.
4858 * pwd/pwd.h: Define uid_t and gid_t if __USE_XOPEN2K is defined.
4859 * io/sys/stat.h: Define dev_t, gid_t, ino_t, mode_t, nlink_t,
4860 off_t, time_t, and uid_t if __USE_XOPEN2K is defined.
4861 * signal/signal.h: Define pid_t if __USE_XOPEN2K is defined.
4862 * posix/unistd.h: Define gid_t, off_t, pid_t, uid_t, and
4863 useconds_t if __USE_XOPEN2K is defined.
4864 * io/utime.h: Define time_t if __USE_XOPEN2K is defined.
4865 * libio/stdio.h: Declare fseeko and ftello if __USE_XOPEN2K is defined.
4867 2004-07-19 Thorsten Kukuk <kukuk@suse.de>
4869 * nis/nss_compat/compat-initgroups.c (getgrent_next_nss): Don't
4870 allocate memory for large temporary variables with alloca.
4872 2004-07-22 Ulrich Drepper <drepper@redhat.com>
4874 * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S: Compatibility
4875 code must have version GLIBC_2.0. Patch by Dwayne McConnell.
4877 * nscd/nscd_getgr_r.c (nscd_getgr_r): Avoid read call with NULL
4878 pointer and zero length.
4880 2004-07-21 Ulrich Drepper <drepper@redhat.com>
4882 * nscd/cache.c (prune_cache): Print correct list when debugging.
4884 2004-07-21 Jakub Jelinek <jakub@redhat.com>
4886 * resolv/res_libc.c (res_init): If RES_INIT is set and
4887 _res.nscount > 0, call __res_nclose and free nsaddrs.
4888 * resolv/Makefile: Add rules to build and run tst-leaks2.
4889 * resolv/tst-leaks2.c: New test.
4891 2004-07-21 Ulrich Drepper <drepper@redhat.com>
4893 * intl/libintl.h: Don't define macros for C++.
4894 Patch by Goto Masanori.
4896 2004-07-22 GOTO Masanori <gotom@debian.or.jp>
4899 * include/arpa/inet.h: Change inet_aton type from in_addr_t to int.
4900 * inet/arpa/inet.h: Likewise.
4901 * resolv/inet_addr.c: Likewise.
4903 2004-07-21 Alexandre Oliva <aoliva@redhat.com>
4905 * sysdeps/unix/sysv/linux/mips/mips64/syscalls.list: Add semtimedop.
4907 2004-07-20 Roland McGrath <roland@redhat.com>
4909 * configure.in (add_ons): Substitute this. Move $add_ons handling
4910 after AC_CANONICAL_HOST and default setting of $machine et al.
4911 Don't set $subdirs from $add_ons.
4912 Instead, source add-on/configure fragments early on.
4913 (base_machine): If it's already set, don't set it based on $machine.
4914 (libc_config_ok): New variable, set to no. If an add-on fragment sets
4915 it to yes, skip the tuple sanity check as if --enable-hacker-mode.
4916 (sysnames): Try appending add-on names after machine as well.
4917 * config.make.in (add-ons): Set from @add_ons@ instead of @subdirs@.
4918 * Makeconfig ($(common-objpfx)config.status): Also depend on configure
4919 files in $(add_ons) dirs.
4921 * sysdeps/unix/sysv/linux/bits/in.h (struct ip_mreq): Remove
4922 definition, now in netinet/in.h proper.
4924 2004-07-20 Alexandre Oliva <aoliva@redhat.com>
4926 * sysdeps/unix/sysv/linux/mips/Makefile ($(objpfx)syscall-%.h):
4927 Sort by syscalls. Make sure we get headers such as sgidefs.h from
4928 the build tree before just-installed ones.
4930 * sysdeps/mips/atomicity.h: Use standard names for ABI macros,
4931 include sgidefs.h where appropriate.
4932 * sysdeps/mips/dl-machine.h: Likewise.
4933 * sysdeps/mips/machine-gmon.h: Likewise.
4934 * sysdeps/mips/bits/setjmp.h: Likewise.
4935 * sysdeps/mips/fpu/bits/mathdef.h: Likewise.
4936 * sysdeps/mips/mips64/__longjmp.c: Likewise.
4937 * sysdeps/mips/mips64/setjmp_aux.c: Likewise.
4938 * sysdeps/unix/sysv/linux/mips/kernel_stat.h: Likewise.
4939 * sysdeps/unix/sysv/linux/mips/pread.c: Likewise.
4940 * sysdeps/unix/sysv/linux/mips/pread64.c: Likewise.
4941 * sysdeps/unix/sysv/linux/mips/ptrace.c: Likewise.
4942 * sysdeps/unix/sysv/linux/mips/pwrite.c: Likewise.
4943 * sysdeps/unix/sysv/linux/mips/pwrite64.c: Likewise.
4944 * sysdeps/unix/sysv/linux/mips/sigaction.c: Likewise.
4945 * sysdeps/unix/sysv/linux/mips/sigcontextinfo.h: Likewise.
4946 * sysdeps/unix/sysv/linux/mips/bits/fcntl.h: Likewise.
4947 * sysdeps/unix/sysv/linux/mips/bits/sigcontext.h: Likewise.
4948 * sysdeps/unix/sysv/linux/mips/bits/stat.h: Likewise.
4949 * sysdeps/unix/sysv/linux/mips/sys/procfs.h: Likewise.
4950 * sysdeps/unix/sysv/linux/mips/sys/ptrace.h: Likewise.
4951 * sysdeps/unix/sysv/linux/mips/sys/tas.h: Likewise.
4952 * sysdeps/unix/sysv/linux/mips/sys/ucontext.h: Likewise.
4953 * sysdeps/unix/sysv/linux/mips/sys/user.h: Likewise.
4954 * sysdeps/unix/sysv/linux/mips/Makefile ($(objpfx)syscall-%.h):
4956 * sysdeps/unix/sysv/linux/mips/configure.in (asm-unistd.h):
4959 * sysdeps/mips/dl-machine.h (__dl_runtime_resolve): Update to use
4960 _dl_lookup_symbol_x.
4961 (elf_machine_runtime_link_map): Don't INTUSE _dl_signal_error.
4963 2004-07-20 Ulrich Drepper <drepper@redhat.com>
4965 * inet/netinet/in.h: Define struct ip_mreq and struct
4967 Define struct group_req and struct group_source_req.
4968 * sysdeps/unix/sysv/linux/bits/in.h: Define IP_UNBLOCK_SOURCE,
4969 IP_BLOCK_SOURCE, IP_ADD_SOURCE_MEMBERSHIP,
4970 IP_DROP_SOURCE_MEMBERSHIP, IP_MSFILTER, MCAST_JOIN_GROUP,
4971 MCAST_BLOCK_SOURCE, MCAST_UNBLOCK_SOURCE, MCAST_LEAVE_GROUP,
4972 MCAST_JOIN_SOURCE_GROUP, MCAST_LEAVE_SOURCE_GROUP, and
4974 Define MCAST_INCLUDE and MCAST_EXCLUDE.
4976 * iconvdata/gconv-modules: Add alias for IBM874 [BZ #244].
4978 2004-07-19 Jakub Jelinek <jakub@redhat.com>
4981 * math/libm-test.inc (max_value, min_value): New variables.
4982 (initialize): Initialize them.
4983 (pow_test): Add a couple of new tests.
4984 * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Don't generate invalid
4985 exception if |y| >= 1U<<31.
4986 * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Don't generate invalid
4987 exception if |y| >= 1L<<63.
4988 * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.
4989 If y*log2(x) overflows to +-inf, return still +inf/+0 instead of NaN.
4990 * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
4992 2004-07-18 Ulrich Drepper <drepper@redhat.com>
4994 * nscd/pwdcache.c (cache_addpw): Optimize case of unsuccessful
4996 * nscd/grpcache.c (cache_addgr): Likewise.
4997 * nscd/hstcache.c (cache_addhst): Likewise.
4999 2004-07-10 GOTO Masanori <gotom@debian.or.jp>
5001 * sysdeps/s390/s390-32/elf/start.S: Remove symbol _fp_hw.
5002 * sysdeps/s390/s390-64/elf/start.S: Likewise.
5004 2004-04-16 Andreas Schwab <schwab@suse.de>
5006 * sysdeps/ia64/bits/atomic.h: Cast first argument of
5007 __sync_bool_compare_and_swap_si correct to void*.
5009 2004-07-17 Ulrich Drepper <drepper@redhat.com>
5011 * iconv/iconv_prog.c (print_known_names): Make machine-readable
5012 output even less cluttered.
5014 2004-07-16 Steven Munroe <sjmunroe@us.ibm.com>
5017 * setjmp/Makefile (tests): Add bug269-setjmp.
5018 * setjmp/bug269-setjmp.c: New file.
5019 * sysdeps/powerpc/powerpc64/__longjmp-common.S [SHARED && !IS_IN_rtld]:
5020 Store R2 from jmpbuf in callers TOC save area.
5021 * sysdeps/powerpc/powerpc64/bsd-_setjmp.S [SHARED && !IS_IN_rtld]:
5022 Store R2 in TOC save area.
5023 * sysdeps/powerpc/powerpc64/setjmp-common.S [SHARED && !IS_IN_rtld]:
5024 Copy TOC save area from previous frame as R2 (TOC) in jmpbuf.
5026 2004-07-16 Jakub Jelinek <jakub@redhat.com>
5028 * locale/newlocale.c: Include bits/libc-lock.h.
5029 (__libc_setlocale_lock): Extern decl.
5030 (__newlocale): Use it.
5031 Reported by Ulrich Weigand <Ulrich.Weigand@de.ibm.com>.
5033 2004-07-15 Jakub Jelinek <jakub@redhat.com>
5035 * sysdeps/unix/sysv/linux/fcntl.c (__fcntl_nocancel): Remove
5036 static inline __attribute ((always_inline)). Don't define if
5038 (__libc_fcntl): Use INLINE_SYSCALL directly instead of
5040 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fcntl.c (__fcntl_nocancel):
5041 Remove static inline __attribute ((always_inline)). Don't define
5043 (__libc_fcntl): Use INLINE_SYSCALL directly instead of
5045 * sysdeps/unix/sysv/linux/i386/fcntl.c (__fcntl_nocancel): Define to
5046 __libc_fcntl if NO_CANCELLATION and __ASSUME_FCNTL64 == 0.
5047 Don't define at all if NO_CANCELLATION and __ASSUME_FCNTL64 > 0.
5048 (__libc_fcntl): Don't define if __fcntl_nocancel is a macro.
5051 * sysdeps/i386/elf/start.S (_start): Use @GOT instead of @GOTOFF
5053 * elf/Makefile: Add rules to build and run tst-pie1.
5054 * elf/tst-pie1.c: New test.
5055 * elf/tst-piemod1.c: New file.
5057 2004-07-14 Jakub Jelinek <jakub@redhat.com>
5060 * manual/string.texi (l64a): Note that the static buffer is 7 bytes
5061 long. Rewrite example code so that it takes into account l64a output
5062 shorter than 6 characters.
5063 Reported by Julian Graham <julian.graham@aya.yale.edu>.
5065 2004-07-14 Kaz Kojima <kkojima@rr.iij4u.or.jp>
5067 * sysdeps/sh/dl-machine.h: Don't reset _dl_starting_up here.
5068 (elf_machine_rela_relative): Remove unused valiable.
5070 2004-07-12 Paul Eggert <eggert@cs.ucla.edu>
5073 * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Don't store
5074 outside the buffer if the read returns 0. __strtod_l can't set
5075 endp to NULL, so remove a test for that case.
5077 2004-07-12 Roland McGrath <roland@redhat.com>
5079 * manual/signal.texi (Interrupted Primitives): Make clear that
5080 TEMP_FAILURE_RETRY evaluates its expression as long int and compares
5081 it to -1 to define "failure".
5083 2004-07-10 Ulrich Drepper <drepper@redhat.com>
5085 * elf/ldconfig.c: Define PROCINFO_CLASS as static before including
5087 * sysdeps/generic/ldsodefs.h: Only define PROCINFO_CLASS if it is not
5089 * sysdeps/i386/dl-procinfo.c: Define PROCINFO_CALLS only if not
5092 * elf/rtld.c (print_statistics): Mark with noinline attribute.
5093 * sysdeps/i386/dl-machine.h (elf_machine_rel): Mark with always_inline
5095 (elf_machine_rel_relative): Likewise.
5097 * include/string.h: Add libc_hidden_proto for __strtok_r and
5099 * sysdeps/generic/strsep.c: Add libc_hidden_def.
5100 * sysdeps/generic/strtok_r.c: Likewise.
5101 * sysdeps/i386/strtok_r.S: Add alias for internal symbol.
5102 * sysdeps/i386/i686/strtok_r.S: Likewise.
5103 * sysdeps/x86_64/strtok_r.S: Likewise.
5105 2004-07-09 Alexandre Oliva <aoliva@redhat.com>
5107 * inet/getnetgrent_r.c (internal_setnetgrent): Make it hidden
5108 instead of internal-linkage, such that we can alias to it.
5109 (internal_endnetgrent, internal_getnetgrent_r): Likewise.
5111 2004-07-09 Ulrich Drepper <drepper@redhat.com>
5113 * sysdeps/unix/sysv/linux/fcntl.c (__fcntl_nocancel): Move attribute
5114 to the front for gcc 3.5+.
5115 * sysdeps/unix/sysv/linux/i386/fcntl.c: Likewise.
5116 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fcntl.c: Likewise.
5117 * include/fcntl.h: Don't declare __fcntl_nocancel here if
5118 NO_CANCELLATION is defined.
5120 2004-07-07 Jakub Jelinek <jakub@redhat.com>
5122 * elf/dl-fini.c (_dl_fini): Add nloaded variable, load
5123 GL(dl_nloaded) into it while still in critical section.
5125 2004-07-06 Thorsten Kukuk <kukuk@suse.de>
5127 * nss/getent.c (print_group, print_passwd): Use %lu format for
5128 `unsigned long int' values.
5130 * sysdeps/unix/sysv/linux/i386/fcntl.c (__fcntl_nocancel): Fix syntax
5131 error typos in goto statements.
5133 2004-07-07 Roland McGrath <roland@frob.com>
5135 * Makefile (dist-separate): New variable.
5136 (glibc-%.tar rule): Make separate tar files for add-ons listed there.
5137 Depend on their configure files.
5138 (dist-do-separate-dirs): New canned sequence to do that.
5139 (dist-separate-libidn, dist-separate-linuxthreads): New variables.
5140 (dist): Depend on add-on tar files based on $(dist-separate).
5141 (dist-version): New variable, default to $(version).
5142 (tag-for-dist, dist): Use that in place of $(version) in deps.
5144 2004-07-07 Ulrich Drepper <drepper@redhat.com>
5146 * elf/dl-fini.c (_dl_fini): Move the unlock of the ld.so lock
5147 before the loop running the destructors.
5149 2004-05-18 Andreas Schwab <schwab@suse.de>
5151 * elf/dl-load.c (_dl_map_object_from_fd): Use the end address of
5152 the first segment for mprotect, not l_text_end.
5154 2004-07-05 Ulrich Drepper <drepper@redhat.com>
5156 * elf/dl-profile.c (_dl_start_profile): Compact error handling.
5157 Remove hashfraction variable. Make kcount and kcountsize local
5160 * elf/dl-init.c: Don't define and use _dl_starting_up if
5161 HAVE_INLINED_SYSCALLS is defined and the variable is not used.
5162 * elf/dl-support.c: Likewise.
5163 * elf/rtld.c: Likewise.
5164 * elf/dl-misc.c (_dl_debug_vdprintf): Use writev syscall directly
5165 if HAVE_INLINED_SYSCALLS is defined.
5166 * sysdeps/powerpc/powerpc64/dl-machine.h: Don't reset _dl_starting_up
5168 * sysdeps/powerpc/powerpc32/dl-start.S: Likewise.
5169 * sysdeps/unix/sysv/linux/configure.in: Define HAVE_INLINED_SYSCALLS.
5170 * config.h.in: Add entry for HAVE_INLINED_SYSCALLS.
5172 * sysdeps/posix/profil.c: If compiled for ld.so, omit code which
5173 is needed to stop profiling.
5174 * elf/dl-open.c (dl_open_worker): If a newly opened object is to be
5175 profile make sure it cannot be unloaded.
5177 * sysdeps/unix/sysv/linux/dl-origin.c: Inline readlink syscall.
5179 * sysdeps/unix/sysv/linux/fcntl.c: If compiled without cancellation
5180 support, make sure the helper function is inlined.
5181 * sysdeps/unix/sysv/linux/pread.c: Likewise.
5182 * sysdeps/unix/sysv/linux/pwrite.c: Likewise.
5183 * sysdeps/unix/sysv/linux/i386/fcntl.c: Likewise.
5184 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fcntl.c: Likewise.
5186 2004-07-05 Jakub Jelinek <jakub@redhat.com>
5188 * include/string.h (ffs): Add libc_hidden_builtin_proto.
5189 * sysdeps/rs6000/ffs.c (ffs): Add libc_hidden_builtin_def.
5190 * sysdeps/alpha/alphaev67/ffs.S (ffs): Likewise.
5191 * sysdeps/alpha/ffs.S (ffs): Likewise.
5192 * sysdeps/s390/ffs.c (ffs): Likewise.
5193 * sysdeps/powerpc/ffs.c (ffs): Likewise.
5194 * sysdeps/i386/ffs.c (ffs): Likewise.
5195 * sysdeps/i386/i686/ffs.c (ffs): Likewise.
5196 * sysdeps/m68k/ffs.c (ffs): Likewise.
5197 * sysdeps/generic/ffs.c (ffs): Likewise.
5198 * sysdeps/m88k/ffs.c (ffs): Likewise.
5199 * sysdeps/am29k/ffs.c (ffs): Likewise.
5200 * sysdeps/i960/ffs.c (ffs): Likewise.
5201 * sysdeps/x86_64/ffs.c (ffs): Likewise.
5203 * Makerules (check-abi): Use diff -p -U 0 instead of diff -pu0.
5205 * sysdeps/powerpc/novmx-longjmp.c (__libc_longjmp,
5206 __libc_siglongjmp): Remove symbol_version.
5207 * sysdeps/powerpc/longjmp.c (__libc_longjmp, __libc_siglongjmp):
5208 Export @@GLIBC_PRIVATE, not @@GLIBC_2.3.4.
5209 * sysdeps/powerpc/sigjmp.c (__sigjmp_save): Use strong_alias
5211 * sysdeps/powerpc/novmx-sigjmp.c (__sigjmp_save): Remove.
5212 * sysdeps/powerpc/powerpc32/__longjmp.S (__longjmp): Use
5213 strong_alias instead of default_symbol_version, remove
5215 * sysdeps/powerpc/powerpc64/__longjmp.S (__longjmp): Likewise.
5216 * sysdeps/powerpc/powerpc32/bsd-setjmp.S (__novmx__setjmp): Change
5217 into strong_alias to __novmxsetjmp.
5218 (__vmx__setjmp): Similarly with __vmxsetjmp.
5219 (__setjmp): Make it strong_alias to __vmx__setjmp, remove
5220 default_symbol_version and symbol_version.
5221 * sysdeps/powerpc/powerpc64/bsd-setjmp.S (__novmx__setjmp): Change
5222 into strong_alias to __novmxsetjmp.
5223 (__vmx__setjmp): Similarly with __vmxsetjmp.
5224 (__setjmp): Make it strong_alias to __vmx__setjmp, remove
5225 default_symbol_version and symbol_version.
5227 * nscd/nscd_getgr_r.c: Include stdio-common/_itoa.h.
5229 2004-07-05 Ulrich Drepper <drepper@redhat.com>
5231 * elf/rtld.c (dl_main): Mark dyn_temp with attribute_relro.
5233 2004-07-04 Matthew Reppert <arashi@kai.vm.bytemark.co.uk>
5235 * sysdeps/unix/sysv/linux/i386/glob64.c (glob64): Use libc_hidden_ver
5236 instead of libc_hidden_def.
5238 2004-07-01 Roland McGrath <roland@redhat.com>
5240 * aclocal.m4: Add provide for AC_CONFIG_AUX_DIR_DEFAULT.
5242 * Makeconfig ($(common-objpfx)shlib-versions.v.i): Move top-level
5243 $(..)shlib-versions file to last in deps list. This lets add-ons give
5244 more-specific matches that override defaults in the top-level file.
5246 * sysdeps/unix/sysv/linux/configure.in: If arch_minimum_kernel was
5247 already set, don't set it or libc_cv_gcc_unwind_find_fde.
5248 * sysdeps/unix/sysv/linux/configure: Regenerated.
5250 2004-07-01 Martin Schwidefsky <schwidefsky@de.ibm.com>
5252 * sysdeps/s390/fpu/bits/mathinline.h [__LIBC_INTERNAL_MATH_INLINES]
5253 (__ieee754_sqrt): Define as __MATH_INLINE using sqdbr instruction.
5254 (__ieee754_sqrtf): Define as __MATH_INLINE using sqebr instruction.
5255 * sysdeps/s390/fpu/e_sqrt.c: New file.
5256 * sysdeps/s390/fpu/e_sqrtf.c: New file.
5257 * sysdeps/s390/Implies: New file.
5258 * sysdeps/s390/s390-32/Implies: Remove ieee754, move
5259 ieee754/dbl-64 and ieee754/flt-32 to s390/Implies.
5260 * sysdeps/s390/s390-64/Implies: Likewise.
5262 2004-06-30 Jakub Jelinek <jakub@redhat.com>
5264 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S: Include tls.h.
5265 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S: Likewise.
5267 * sysdeps/unix/sysv/linux/s390/s390-32/clone.S (thread_start):
5268 DO_CALL (exit, 1) instead of branching to _exit.
5269 * sysdeps/unix/sysv/linux/s390/s390-64/clone.S (thread_start):
5272 * sysdeps/s390/fpu/bits/mathinline.h: New file.
5274 * include/glob.h (glob64): Add libc_hidden_proto.
5275 * sysdeps/generic/glob64.c (glob64): Add libc_hidden_def.
5276 * sysdeps/gnu/glob64.c (glob64): Likewise.
5277 * sysdeps/unix/sysv/linux/i386/glob64.c (glob64): Likewise.
5279 2004-06-11 Jakub Jelinek <jakub@redhat.com>
5281 * sysdeps/i386/fpu/libm-test-ulps: Update for GCC 3.4.
5282 * sysdeps/s390/fpu/libm-test-ulps: Likewise.
5284 2004-06-11 Dwayne Grant McConnell <dgm69@us.ibm.com>
5286 * sysdeps/powerpc/fpu/s_lround.c: Removed.
5287 * sysdeps/powerpc/fpu/s_lroundf.c: Removed.
5288 * sysdeps/powerpc/powerpc32/fpu/s_ceilf.S: New file.
5289 * sysdeps/powerpc/powerpc32/fpu/s_ceil.S: New file.
5290 * sysdeps/powerpc/powerpc32/fpu/s_floorf.S: New file.
5291 * sysdeps/powerpc/powerpc32/fpu/s_floor.S: New file.
5292 * sysdeps/powerpc/powerpc32/fpu/s_lrint.c: Removed.
5293 * sysdeps/powerpc/powerpc32/fpu/s_lrint.S: New file.
5294 * sysdeps/powerpc/powerpc32/fpu/s_lroundf.S: New file.
5295 * sysdeps/powerpc/powerpc32/fpu/s_lround.S: New file.
5296 * sysdeps/powerpc/powerpc32/fpu/s_rintf.S: New file.
5297 * sysdeps/powerpc/powerpc32/fpu/s_rint.S: New file.
5298 * sysdeps/powerpc/powerpc32/fpu/s_roundf.S: New file.
5299 * sysdeps/powerpc/powerpc32/fpu/s_round.S: New file.
5300 * sysdeps/powerpc/powerpc32/fpu/s_truncf.S: New file.
5301 * sysdeps/powerpc/powerpc32/fpu/s_trunc.S: New file.
5303 2004-06-30 Ulrich Drepper <drepper@redhat.com>
5305 * include/net/if.h: Handle if_nameindex and if_freenameindex with
5307 * sysdeps/unix/sysv/linux/netlinkaccess.h: New file.
5308 * sysdeps/unix/sysv/linux/ifaddrs.c: Export netlink handling functions.
5309 * sysdeps/unix/sysv/linux/if_index.c (if_nameindex): Implement using
5310 netlink if possible. Fall back on ioctl method if necessary.
5311 * sysdeps/unix/sysv/linux/Dist: Add netlinkaccess.h.
5313 * include/unistd.h: Declare __truncate.
5314 * sysdeps/generic/truncate.c: Also define __truncate.
5315 * sysdeps/mach/hurd/truncate.c: Likewise.
5316 * sysdeps/unix/common/syscalls.list: Likewise.
5317 * sysdeps/unix/sysv/linux/truncate64.c: Use __truncate, not truncate.
5319 2004-06-29 Ulrich Drepper <drepper@redhat.com>
5321 * stdio-common/printf-parsemb.c (__parse_one_specmb): Initialize
5322 info.extra. Patch by Marcus Meissner.
5324 2004-06-29 Kaz Kojima <kkojima@rr.iij4u.or.jp>
5326 * sysdeps/unix/sysv/linux/sh/sysdep.h (SYSCALL_ERROR_HANDLER):
5327 Fix branch offset for a PLT entry.
5329 2004-06-20 Jim Meyering <jim@meyering.net>
5331 * malloc/obstack.h (obstack_base): Cast to `void *', to align with
5334 2004-06-28 Ulrich Drepper <drepper@redhat.com>
5336 * inet/bug-if1.c (do_test): Simply use 0 as invalid index.
5337 Workaround for [BZ #232].
5339 * sysdeps/unix/sysv/linux/if_index.c (if_nameindex): Use extend_alloca.
5341 2004-06-28 GOTO Masanori <gotom@debian.or.jp>
5343 * iconv/gconv_simple.c: Use get16/put16 for user given buffer
5344 in ucs2/ucs2reverse when unaligned memory access is attempted.
5345 * iconv/tst-iconv5.c: New file.
5346 * iconv/Makefile (tests): Add tst-iconv5.
5348 2004-06-28 Jakub Jelinek <jakub@redhat.com>
5350 * inet/bug-if1.c: Include <string.h>.
5352 2004-06-19 Roland McGrath <roland@redhat.com>
5354 * sysdeps/posix/waitid.c (do_waitid) [DO_WAITID]: Define function
5355 under this macro name instead.
5356 [NO_DO_WAITID]: Don't define it at all.
5357 (do_waitid) [WNOWAIT, WEXITED]: If these POSIX.1 waitid flag bits are
5358 defined, then return ENOTSUP for combinations of selection bits other
5359 than WEXITED and WEXITED|WSTOPPED, which this version cannot support.
5361 * posix/tst-waitid.c: New file.
5362 * posix/Makefile (tests): Add it.
5364 2004-06-28 Jakub Jelinek <jakub@redhat.com>
5366 * sysdeps/unix/alpha/sysdep.h (inline_syscall6): Fix a typo.
5369 * sysdeps/unix/alpha/sysdep.S (__syscall_error): Avoid !samegp
5370 relocation in librt.so.
5373 * sysdeps/alpha/dl-machine.h (_dl_start_user): Use ldah/ldl to load
5374 _dl_skip_args. Patch by Jakub Bogusz <qboosh@pld-linux.org>.
5376 2004-06-27 Ulrich Drepper <drepper@redhat.com>
5378 * elf/ldconfig.c (add_dir): Take chroot into account.
5379 Based on changes by HJ Lu and Hideki Iwamoto.
5381 * nscd/connections.c (invalidate_cache): If the host cache has to
5382 be invalidated, re-read resolv.conf.
5384 * resolv/resolv.h (RES_NOIP6DOTINT): Define.
5385 * resolv/res_init.c (res_setoptions): Handle no-ip6-dotint option.
5386 * resolv/gethnamaddr.c (gethostbyaddr): Don't lookup with .ip6.int
5387 if RES_NOIP6DOTINT flag is set.
5388 * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr_r): Likewise.
5390 2004-06-25 Jakub Jelinek <jakub@redhat.com>
5392 * sysdeps/unix/sysv/linux/powerpc/fcntl.c: Move to...
5393 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fcntl.c: ... here.
5394 * sysdeps/unix/sysv/linux/powerpc/lockf64.c: Move to...
5395 * sysdeps/unix/sysv/linux/powerpc/powerpc32/lockf64.c: ... here.
5396 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fcntl.c: New file.
5398 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h (F_GETLK, F_SETLK,
5399 F_SETLKW): Fix values for -m32 -D_FILE_OFFSET_BITS=64.
5401 2004-06-21 Jakub Jelinek <jakub@redhat.com>
5404 * sysdeps/unix/alpha/Makefile: New file.
5405 * sysdeps/unix/alpha/rt-sysdep.S: New file.
5406 Reported by Jakub Bogusz <qboosh@pld-linux.org>.
5408 2004-06-18 Ulrich Drepper <drepper@redhat.com>
5410 * sysdeps/posix/getaddrinfo.c (gaih_inet): For AI_CANONNAME,
5411 determine the canonical name only for the first returned entry.
5413 * inet/bug-if1.c: New file.
5414 * inet/Makefile (tests): Add bug-if1.
5416 2004-06-18 Roland McGrath <roland@frob.com>
5418 * Makerules (compile-mkdep-flags): Add -MT $@.
5420 * Makefile (dist, tag-for-dist): New targets.
5421 (files-for-dist, tag-of-stem): New variables.
5422 (glibc-%.tar glibc-linuxthreads-%.tar): New pattern rule.
5423 Make tar files using cvs export.
5424 (%.bz2, %.gz, tag-%): New pattern rules.
5425 (distribute): Variable removed.
5426 (+subdir_targets): Remove distinfo targets.
5427 (echo_subdirs, echo-distinfo, parent_echo-distinfo): Targets removed.
5428 (rpm/%): Pattern rule removed.
5429 * rpm/Makefile, rpm/rpmrc, rpm/template: Ancient cruft files removed.
5430 * Rules (subdir_echo-headers, subdir_echo-distinfo, subdir_dist):
5432 * Makerules (dist, subdir_distinfo): Targets removed.
5433 ($(objpfx)distinfo): Depend on $(distribute).
5434 * Make-dist: File removed.
5436 * NEWS: Fix a typo. Update bug-reporting instructions.
5438 2004-06-17 Thorsten Kukuk <kukuk@suse.de>
5440 * sysdeps/unix/sysv/linux/sched_setaffinity.c
5441 (__sched_setaffinity_new): Set errno to EINVAL and return -1 if
5442 cpuset is wrongly set.
5444 2004-06-15 Steven Munroe <sjmunroe@us.ibm.com>
5446 * sysdeps/powerpc/powerpc64/memcpy.S: Improve instruction scheduling
5447 for POWER4 machines.
5449 2004-06-14 Jakub Jelinek <jakub@redhat.com>
5452 * sunrpc/pmap_prot2.c (xdr_pmaplist): When freeing, remember pml_next
5453 in a local variable, point rp to that local variable afterwards.
5455 2004-06-11 Jakub Jelinek <jakub@redhat.com>
5457 * sysdeps/ieee754/dbl-64/e_sqrt.c (__ieee754_sqrt): Handle special
5460 2004-06-17 Ulrich Drepper <drepper@redhat.com>
5462 * sysdeps/unix/sysv/linux/if_index.c (if_indextoname): Correct
5463 error value for unknown interface. [BZ #198]
5465 2004-06-13 Jakub Jelinek <jakub@redhat.com>
5467 * sysdeps/i386/bits/string.h (memcpy): Add () around arguments.
5468 (memchr, __memrchr, strlen, strcmp, strncmp, __strchr_g, __strchr_c,
5469 __strchrnul_g, __strchrnul_c, strspn, strcspn, strpbrk): Add memory
5470 the asm uses as its input, either of size __n where __n is known or
5472 (strstr): Add "memory" clobber.
5474 2004-06-14 Jakub Jelinek <jakub@redhat.com>
5477 * nss/nsswitch.c (free_mem): Don't try to close a library handle
5478 if the handle is invalid. Patch by David Kimdon <kimdon@esrf.fr>.
5480 2004-06-11 Dmitry V. Levin <ldv@altlinux.org>
5483 * debug/xtrace.sh: Fix typo in error diagnostics.
5485 2004-06-14 Andreas Schwab <schwab@suse.de>
5487 * stdio-common/psignal.c (psignal): Don't use BUF when asprintf
5490 2004-06-15 Steven Munroe <sjmunroe@us.ibm.com>
5492 * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S: Fix pasto
5493 that clobbers r19. Fix pasto that overflowed sigcontext.v_reserve.
5494 * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S: Fix pasto
5496 * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S: Fix pasto
5497 that clobbers r19. Fix pasto that overflowed sigcontext.v_reserve.
5498 * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S:
5499 Fix setting of sigcontext.v_regs. Fix pasto that clobbers r19.
5500 Fix pasto that overflowed sigcontext.v_reserve.
5501 * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S:
5502 Fix pasto that clobbers r19.
5503 * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S: Fix setting
5504 of sigcontext.v_regs. Fix pasto that clobbers r19. Fix pasto that
5505 overflowed sigcontext.v_reserve.
5507 2004-05-04 H.J. Lu <hongjiu.lu@intel.com>
5510 * sysdeps/generic/strtol_l.c (DEF): Use ".gnu.linkonce.r."
5511 instead of ".gnu.linkonce.ro." as the prefix for linkonce
5512 read-only section name.
5514 2004-06-14 Richard Henderson <rth@redhat.com>
5516 * sysdeps/alpha/div_libc.h (_ITOFS): Use "sp" not "$sp".
5517 (_ITOFT, _FTOIT, _ITOFT2): Likewise.
5519 2004-06-08 Jakub Jelinek <jakub@redhat.com>
5521 * sysdeps/s390/s390-32/backtrace.c (init): Guard with #ifdef SHARED.
5522 (unwind_backtrace, unwind_getip): Define #ifndef SHARED.
5523 (__backtrace): Don't call init #ifndef SHARED.
5524 * sysdeps/s390/s390-64/backtrace.c (init): Guard with #ifdef SHARED.
5525 (unwind_backtrace, unwind_getip): Define #ifndef SHARED.
5526 (__backtrace): Don't call init #ifndef SHARED.
5527 * sysdeps/ia64/backtrace.c (init): Guard with #ifdef SHARED.
5528 (unwind_backtrace, unwind_getip): Define #ifndef SHARED.
5529 (__backtrace): Don't call init #ifndef SHARED.
5531 2004-06-11 Roland McGrath <roland@redhat.com>
5533 * sysdeps/arm/strlen.S [__ARMEB__]: Compute correctly for big-endian.
5534 From Krzysztof Halasa <khc@pm.waw.pl>.
5536 2004-06-10 Jakub Jelinek <jakub@redhat.com>
5538 * elf/tls-macros.h [__s390x__] (TLS_LD, TLS_GD): Clobber also r14.
5540 2004-06-08 Jakub Jelinek <jakub@redhat.com>
5543 * crypt/md5-crypt.c (__md5_crypt): Only update buflen if realloc
5544 succeeds. Reported by Miles Ohlrich <miles@cray.com>.
5546 * elf/chroot_canon.c (chroot_canon): Avoid segfault if first malloc
5547 fails. Avoid memory leak if realloc fails.
5549 2004-06-09 Jakub Jelinek <jakub@redhat.com>
5551 * sysdeps/generic/setenv.c (setenv): Return -1/EINVAL if name is
5552 NULL, "" or contains '=' character in it. Reported by
5553 Michael T Kerrisk <mtk-lists@gmx.net>.
5554 * stdlib/tst-environ.c: Include errno.h.
5555 (main): Add tests for these arguments to setenv/unsetenv.
5557 2004-06-07 Roland McGrath <roland@frob.com>
5559 * NEWS: Update bug reporting instructions. Fix some typos.
5561 2004-06-05 Ulrich Drepper <drepper@redhat.com>
5563 * stdio-common/_itoa.h: Don't expand _itoa inline for libc.
5564 * stdio-common/_itoa.c: Add _itoa implementation.
5566 * nscd/nscd_gethst_r.c (__nscd_open_socket): Change implementation
5567 to also send request. Add parameter to allow this.
5569 * nscd/nscd_getgr_r.c: Change __nscd_open_socket caller.
5570 * nscd/nscd_getpw_r.c: Likewise.
5571 * nscd/nscd-client.h: Change __nscd_open_socket prototype.
5573 2004-06-05 Andreas Jaeger <aj@suse.de>
5575 * sysdeps/unix/sysv/linux/x86_64/makecontext.c (__makecontext):
5576 Handle more than 6 args correctly. Based on a patch by Masahide
5577 Washizawa <washi@jp.ibm.com>.
5579 2004-06-04 Ulrich Drepper <drepper@redhat.com>
5581 * nscd/nscd_gethst_r.c (nscd_gethst_r): Use __nss_not_use_nscd_hosts
5582 in all places, not __nss_not_use_nscd_group.
5583 Reported by Philippe Gregoire.
5585 2004-06-03 Ulrich Drepper <drepper@redhat.com>
5587 * sysdeps/i386/i486/bits/atomic.h: Optimize a bit.
5589 2004-05-07 Dmitry V. Levin <ldv@altlinux.org>
5591 * argp/argp-help.c (__argp_error, __argp_failure): Check result
5592 of __asprintf call and don't use string if it failed.
5593 * stdio-common/psignal.c (psignal): Likewise.
5594 * locale/programs/localedef.c (more_help): Likewise.
5595 * resolv/res_hconf.c (arg_service_list, arg_trimdomain_list,
5596 arg_bool, parse_line): Check result of __asprintf calls and
5597 don't use string if they failed.
5598 * sunrpc/svc_simple.c (registerrpc, universal): Likewise.
5599 * elf/ldconfig.c (parse_conf_include): Check result of __asprintf
5600 call and exit if it failed.
5602 2004-05-10 Jakub Jelinek <jakub@redhat.com>
5604 * sysdeps/posix/sysconf.c (__sysconf) <cases _SC_REALTIME_SIGNALS,
5605 _SC_PRIORITY_SCHEDULING, _SC_TIMERS, _SC_ASYNCHRONOUS_IO,
5606 _SC_PRIORITIZED_IO, _SC_SYNCHRONIZED_IO, _SC_FSYNC, _SC_MAPPED_FILES,
5607 _SC_MEMLOCK, _SC_MEMLOCK_RANGE, _SC_MEMORY_PROTECTION,
5608 _SC_MESSAGE_PASSING, _SC_SEMAPHORES, _SC_SHARED_MEMORY_OBJECTS,
5609 _SC_THREADS, _SC_THREAD_SAFE_FUNCTIONS, _SC_THREAD_ATTR_STACKADDR,
5610 _SC_THREAD_ATTR_STACKSIZE, _SC_THREAD_PRIORITY_SCHEDULING,
5611 _SC_THREAD_PRIO_INHERIT, _SC_THREAD_PRIO_PROTECT,
5612 _SC_THREAD_PROCESS_SHARED>: Return _POSIX_* value instead of 1.
5613 * sysdeps/unix/sysv/linux/sysconf.c (__sysconf)
5614 <case _SC_MONOTONIC_CLOCK>: Return _POSIX_VERSION instead of 1.
5616 2004-05-07 Jeroen Dekkers <jeroen@dekkers.cx>
5618 * sysdeps/mach/hurd/i386/Makefile (CFLAGS-init-first.c): Add
5619 -momit-leaf-frame-pointer.
5621 * inet/test-ifaddrs.c (addr_string): Surround AF_PACKET case with
5624 * sysdeps/mach/hurd/getcwd.c
5625 (_hurd_canonicalize_directory_name_intern): Only realloc when
5628 * sysdeps/mach/hurd/mmap.c (__mmap): Fail when addr or offset
5631 * sysdeps/mach/hurd/spawni.c (EXPAND_DTABLE): Set dtablesize to
5634 * sysdeps/mach/hurd/Versions (GLIBC_PRIVATE): Add __libc_read,
5635 __libc_write and __libc_lseek64.
5637 2004-05-29 Roland McGrath <roland@redhat.com>
5639 * elf/Makefile (shared-only-routines): Add dl-caller.
5641 2004-05-28 Ulrich Drepper <drepper@redhat.com>
5643 * sysdeps/powerpc/configure.in: New file.
5645 2004-05-28 Steven Munroe <sjmunroe@us.ibm.com>
5647 * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Add .machine
5648 "altivec" to enable VMX instructions.
5649 * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S: Likewise.
5650 * sysdeps/powerpc/powerpc64/__longjmp-common.S: Likewise.
5651 * sysdeps/powerpc/powerpc64/setjmp-common.S: Likewise.
5652 * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S: Likewise.
5653 * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S: Likewise.
5654 * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S: Likewise.
5655 * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S: Likewise.
5656 * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S: Likewise.
5657 * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S: Likewise.
5659 2004-05-27 Jakub Jelinek <jakub@redhat.com>
5661 * sysdeps/i386/fpu/bits/mathinline.h (__expm1_code): Define using
5662 __builtin_expm1l for GCC 3.5+.
5663 (__expl): Define using __builtin_expl for GCC 3.4+.
5664 (exp, expf, expl): Don't define for GCC 3.4+.
5665 (tan, tanf, tanl): Don't define for GCC 3.5+.
5666 (__atan2l): Define using __builtin_atan2l for GCC 3.4+.
5667 (atan2, atan2f, atan2l): Don't define for GCC 3.4+ or !__FAST_MATH__.
5668 (fmod, fmodf, fmodl): Don't define for GCC 3.5+ or !__FAST_MATH__.
5669 (fabsf, fabsl): Only provide if __USE_MISC or __USE_ISOC99.
5670 (sin, sinf, sinl, cos, cosf, cosl, log, logf, logl): Don't define
5672 (log10, log10f, log10l, asin, asinf, asinl, acos, acosf, acosl):
5673 Don't define for GCC 3.5+.
5674 (atan, atanf, atanl): Don't define for GCC 3.4+ or !__FAST_MATH__.
5675 (log1p, log1pf, log1pl, logb, logbf, logbl, log2, log2f, log2l): Don't
5676 define for GCC 3.5+.
5677 (drem, dremf, dreml): Don't define for GCC 3.5+ or !__FAST_MATH__.
5678 * sysdeps/sparc/fpu/bits/mathinline.h (sqrt, sqrtf, sqrtl): Don't
5679 define for GCC 3.2+.
5681 2004-05-27 Jakub Jelinek <jakub@redhat.com>
5683 * string/bits/string2.h (__bzero): Define even for GCC 3.0+.
5684 * sysdeps/alpha/stpcpy.S (stpcpy): Add libc_hidden_builtin_def.
5685 * sysdeps/alpha/alphaev67/stpcpy.S (stpcpy): Likewise.
5686 * sysdeps/powerpc/powerpc32/stpcpy.S (stpcpy): Likewise.
5687 * sysdeps/powerpc/powerpc64/stpcpy.S (stpcpy): Likewise.
5688 * sysdeps/sparc/sparc32/stpcpy.S (stpcpy): Likewise.
5689 * sysdeps/sparc/sparc64/stpcpy.S (stpcpy): Likewise.
5690 * sysdeps/i386/stpcpy.S (stpcpy): Likewise.
5691 * sysdeps/i386/i586/stpcpy.S (stpcpy): Likewise.
5692 * sysdeps/generic/stpcpy.c (stpcpy): Likewise.
5693 * sysdeps/x86_64/stpcpy.S (stpcpy): Likewise.
5694 * sysdeps/i386/i586/memcpy.S (memcpy): Remove
5695 libc_hidden_builtin_def if MEMPCPY_P.
5696 * sysdeps/x86_64/memcpy.S (memcpy): Likewise.
5697 * sysdeps/i386/i686/mempcpy.S (mempcpy): Add libc_hidden_builtin_def.
5698 * sysdeps/i386/i586/mempcpy.S (mempcpy): Likewise.
5699 * sysdeps/generic/mempcpy.c (mempcpy): Likewise.
5700 * sysdeps/x86_64/mempcpy.S (mempcpy): Likewise.
5702 2004-05-26 Roland McGrath <roland@frob.com>
5704 * sysdeps/generic/bits/in.h
5705 (IMPLINK_IP, IMPLINK_LOWEXPER, IMPLINK_HIGHEXPER): Macros removed.
5706 These are long obsolete in BSD systems where they originated.
5707 * conform/data/netinet/in.h-data: Remove `allow IMPLINK_*'
5709 2004-05-26 Jakub Jelinek <jakub@redhat.com>
5711 * include/string.h (mempcpy, stpcpy): Add libc_hidden_builtin_proto.
5712 * string/bits/string2.h (memset): Disable macro for GCC 3.0+.
5713 (__mempcpy): Use __builtin_mempcpy for GCC 3.4+.
5714 (strchr): For GCC 3.2+, only use __rawmemchr if second argument is
5715 constant '\0' and first argument is not constant.
5716 (__stpcpy): Use __builtin_stpcpy for GCC 3.4+.
5717 (strncpy): Remove #ifdef _USE_STRING_ARCH_mempcpy variant.
5718 For GCC 3.2+ use __builtin_strncpy.
5719 (strncat): For GCC 3.2+ use __builtin_strncat.
5720 (strcmp): For GCC 3.2+ use __builtin_strcmp if both arguments are
5722 (strcspn, strspn, strpbrk): For GCC 3.2+, use builtin function
5723 if both arguments are constant.
5725 2004-05-26 Ulrich Drepper <drepper@redhat.com>
5727 * nss/nss_files/files-hosts.c: Fix condition for looking up IPv4
5728 mapped addresses in gethostbyaddr.
5730 2004-05-25 Ulrich Drepper <drepper@redhat.com>
5732 * nss/digits_dots.c (__nss_hostname_digits_dots): Remove typep and
5733 flags parameter, convert afp to simple int parameter. Adjust code.
5734 typep was never != NULL and flags therefore also unused. *afp is
5736 * nss/nsswitch.h: Adjust __nss_hostname_digits_dots prototype.
5737 * nss/getXXbyYY.c: Remove HAVE_TYPE handling. Adjust af parameter
5738 handling for __nss_hostname_digits_dots calls.
5739 * nss/getXXbyYY_r.c: Likewise.
5741 * elf/dl-load.c (_dl_map_object_from_fd): Map DSOs with MAP_DENYWRITE.
5743 2004-05-25 Steven Munroe <sjmunroe@us.ibm.com>
5745 * sysdeps/powerpc/fpu/Makefile: Make ld.so a dependency of libm.so.
5746 * sysdeps/powerpc/fpu/bits/mathinline.h [__LIBC_INERNAL_MATH_INLINES]
5747 (__ieee754_sqrt): Define as __MATH_INLINE using fsqrt instruction.
5748 (__ieee754_sqrtf): Define as __MATH_INLINE using fsqrts instruction.
5749 * sysdeps/powerpc/fpu/e_sqrt.c (__slow_ieee754_sqrt): Moved
5750 implementation from w_sqrt.c.
5751 * sysdeps/powerpc/fpu/e_sqrtf.c (__slow_ieee754_sqrtf): Moved
5752 implementation from w_sqrtf.c.
5753 * sysdeps/powerpc/fpu/w_sqrt.c (__sqrt): Wrapper implementation
5754 using inline __ieee754_sqrt().
5755 * sysdeps/powerpc/fpu/w_sqrtf.c (__sqrtf): Wrapper implementation
5756 using inline __ieee754_sqrtf().
5757 * sysdeps/powerpc/powerpc32/sysdep.h [__ASSEMBLER__]: Include
5758 <sysdeps/powerpc/sysdep.h> independent of __ASSEMBLER__.
5759 * sysdeps/powerpc/sysdep.h [__ASSEMBLER__] (PPC_FEATURE_*): Define
5760 PPC_FEATURE_* independent of __ASSEMBLER__.
5762 2004-05-25 Jakub Jelinek <jakub@redhat.com>
5764 * sysdeps/pthread/aio_notify.c: Use <> instead of "" for aio_misc.h
5766 (aio_start_notify_thread): Define if not defined.
5767 (notify_func_wrapper): Use it.
5768 * sysdeps/pthread/aio_misc.c: Use <> instead of "" for aio_misc.h
5770 (aio_create_helper_thread): Define if not defined.
5771 (__aio_create_helper_thread): New function.
5772 (__aio_enqueue_request): Use aio_create_helper_thread.
5774 * nis/ypclnt.c (ypall_data, ypall_foreach): Remove.
5775 (struct ypresp_all_data): New type.
5776 (__xdr_ypresp_all): Change second argument to
5777 struct ypresp_all_data *. Replace ypall_foreach and
5778 ypall_data with objp->foreach and objp->data.
5779 (yp_all): Remove status variable, add data. Replace
5780 all uses of status with data.status. Initialize data.foreach
5781 and data.data instead of ypall_foreach and ypall_data.
5783 2004-05-24 Jakub Jelinek <jakub@redhat.com>
5785 * elf/dl-lookup.c (add_dependency): Set DF_1_NODELETE bit
5786 in l_flags_1, not in l_flags.
5788 2004-04-10 Robert Millan <robertmh@gnu.org>
5790 * sysdeps/unix/sysv/linux/bits/in.h: Cosmetic fixes to get in sync
5791 with sysdeps/generic/bits/in.h.
5793 2004-05-25 Roland McGrath <roland@frob.com>
5795 * sysdeps/generic/unwind-dw2-fde-glibc.c: Change copyright terms from
5796 GCC GPL to standard glibc LGPL.
5798 2004-05-24 Ulrich Drepper <drepper@redhat.com>
5800 * manual/string.texi (Copying and Concatenation): Fixed second
5802 Reported by Fabian Pietsch <fabian@zzznowman.dyndns.org>.
5804 2004-05-23 Ulrich Drepper <drepper@redhat.com>
5806 * malloc/obstack.c: Don't allow linking with _obstack.
5808 2004-05-23 Andreas Schwab <schwab@suse.de>
5810 * sysdeps/m68k/m68020/bits/atomic.h: Use "+m" constraint instead
5811 of separate "m" constraints.
5813 2004-05-15 Chris Demetriou <cgd@broadcom.com>
5815 * sysdeps/mips/dl-machine.h (ELF_DL_FRAME_SIZE)
5816 (ELF_DL_SAVE_ARG_REGS, ELF_DL_RESTORE_ARG_REGS): For the N32
5817 and 64 ABIs, save and restore regs $10 and $11 (a6 and a7).
5819 2004-05-20 Paul Eggert <eggert@cs.ucla.edu>
5821 * malloc/obstack.c (_obstack) [!defined _LIBC]: Remove; not used.
5822 Add comment explaining why libc still defines it.
5824 2004-05-19 Paul Eggert <eggert@cs.ucla.edu>
5826 * malloc/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
5827 obstack_alignment_mask, obstack_alloc, obstack_base,
5828 obstack_blank, obstack_blank_fast, obstack_chunk_size,
5829 obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
5830 obstack_grow0, obstack_init, obstack_int_grow,
5831 obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
5832 obstack_next_free, obstack_object_size, obstack_ptr_grow,
5833 obstack_ptr_grow_fast, obstack_room): Remove declarations of
5834 nonexistent functions.
5836 2004-05-18 Steven Munroe <sjmunroe@us.ibm.com>
5838 * sysdeps/powerpc/powerpc64/sysdep.h [__ASSEMBLER__]: Include
5839 <sysdeps/powerpc/sysdep.h> independent of __ASSEMBLER__.
5840 [PIC]: Redundent for powerpc64, removed.
5841 (ENTRY): Generate size and alignment for opd entry.
5842 (EALIGN): Generate size and alignment for opd entry.
5843 (END): Use DOT_LABEL in ASM_SIZE_DIRECTIVE.
5844 (END_GEN_TB): Use DOT_LABEL in ASM_SIZE_DIRECTIVE.
5846 2004-05-19 Ulrich Drepper <drepper@redhat.com>
5848 * misc/regexp.h: Say the functions have been withdrawn.
5850 * wcsmbs/tst-wcpncpy.c: Add more tests.
5852 2004-05-18 Roland McGrath <roland@frob.com>
5854 * sysdeps/generic/unwind.h: Change copyright terms from GCC GPL to
5855 standard glibc LGPL.
5856 * sysdeps/generic/unwind-dw2.c: Likewise.
5857 * sysdeps/generic/unwind-dw2-fde.c: Likewise.
5858 * sysdeps/generic/unwind-dw2-fde.h: Likewise.
5859 * sysdeps/generic/unwind-pe.h: Likewise.
5861 2004-05-15 Petter Reinholdtsen <pere@hungry.com>
5863 * locale/iso-3166.def: Remove YUGOSLAVIA and insert "SERBIA AND
5864 MONTENEGRO" which have taken over the code 819. Patch from
5865 Danilo Segan. [BZ #40]
5867 2004-05-15 Jakub Jelinek <jakub@redhat.com>
5869 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
5870 (SYSCALL_ERROR_HANDLER): Rename __sparc.get_pic.l7 to
5873 2004-05-15 Joseph S. Myers <jsm@polyomino.org.uk>
5875 * catgets/gencat.c: Update bug reporting instructions.
5876 * csu/version.c: Likewise.
5877 * debug/catchsegv.sh: Likewise.
5878 * debug/pcprofiledump.c: Likewise.
5879 * debug/xtrace.sh: Likewise.
5880 * elf/ldd.bash.in: Likewise.
5881 * iconv/iconv_prog.c: Likewise.
5882 * iconv/iconvconfig.c: Likewise.
5883 * locale/programs/locale.c: Likewise.
5884 * locale/programs/localedef.c: Likewise.
5885 * login/programs/pt_chown.c: Likewise.
5886 * malloc/memusage.sh: Likewise.
5887 * malloc/memusagestat.c: Likewise.
5888 * malloc/mtrace.pl: Likewise.
5889 * manual/crypt.texi: Likewise.
5890 * manual/install.texi: Likewise.
5891 * nss/makedb.c: Likewise.
5893 2004-05-14 Jakub Jelinek <jakub@redhat.com>
5895 * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Only
5896 CHECK_STATIC_TLS if sym != NULL.
5897 * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
5898 * sysdeps/i386/dl-machine.h (elf_machine_rela): Likewise.
5900 2004-05-12 Andreas Schwab <schwab@suse.de>
5902 * posix/regex_internal.c (build_wcs_buffer): Also set pstr->mbs
5905 2004-05-13 H.J. Lu <hongjiu.lu@intel.com>
5907 * Rules (xtests): Depend on tests.
5909 2004-05-13 Jakub Jelinek <jakub@redhat.com>
5911 * libio/genops.c (_IO_default_xsputn): Avoid one overflow per char if
5912 count is negative, yet write_ptr < write_end.
5913 (_IO_default_xsgetn): Avoid one underflow per char if count is
5914 negative, yet read_ptr < read_end.
5916 2004-05-12 Steven Munroe <sjmunroe@us.ibm.com>
5918 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h (XTABS): Define XTABS
5921 2004-05-12 Ulrich Drepper <drepper@redhat.com>
5923 * elf/dl-lookup.c (_dl_lookup_symbol_x): Correct _dl_signal_cerror
5926 2004-05-10 Roland McGrath <roland@frob.com>
5928 * hurd/hurdlookup.c (__hurd_file_name_split): Return ENOENT for "".
5929 (__hurd_directory_name_split): Likewise.
5931 2004-05-10 Ulrich Drepper <drepper@redhat.com>
5933 * po/fr.po: Update from translation team.
5935 2004-05-10 Andreas Jaeger <aj@suse.de>
5937 * sysdeps/unix/sysv/linux/x86_64/makecontext.c (__makecontext):
5938 Correctly compute alignment.
5939 Patch by Michael Matz <matz@suse.de>.
5941 2004-05-09 Ulrich Drepper <drepper@redhat.com>
5943 * sysdeps/generic/sigpause.c: Prevent sigpause prototype.
5944 * sysdeps/posix/sigpause.c: Likewise.
5945 * signal/signal.h: Don't define sigpause macro unless needed.
5947 2004-05-08 Jakub Jelinek <jakub@redhat.com>
5949 * configure.in (libc_cv_libgcc_s_suffix): New check.
5950 (libc_cv_as_needed): Use -lgcc_s$libc_cv_libgcc_s_suffix.
5951 * config.make.in (libgcc_s_suffix): Set.
5952 * Makeconfig (libgcc_eh): Use -lgcc_s$(libgcc_s_suffix).
5954 2004-05-08 Ulrich Drepper <drepper@redhat.com>
5956 * signal/signal.h: Use BSD sigpause only if BSD behavior is preferred.
5958 2004-04-29 Steven Munroe <sjmunroe@us.ibm.com>
5960 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h (LOADARGS_1,
5961 LOADARGS_2, LOADARGS_3, LOADARGS_4, LOADARGS_5, LOADARGS_6):
5962 Load argument values into temporary variables.
5963 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h (LOADARGS_1,
5964 LOADARGS_2, LOADARGS_3, LOADARGS_4, LOADARGS_5, LOADARGS_6):
5967 2004-05-07 Ulrich Drepper <drepper@redhat.com>
5969 * sysdeps/unix/sysv/linux/Makefile: mq_send.c and mq_receive.c
5970 need to be compiled with exceptions.
5972 2004-05-06 Ulrich Drepper <drepper@redhat.com>
5974 * sysdeps/unix/sysv/linux/ifreq.c (__ifreq): Fix memory handling.
5975 * sysdeps/generic/ifreq.c (__ifreq): Fix memory handling.
5977 * resolv/res_hconf.c (_res_hconf_reorder_addrs): Make clear that
5978 realloc cannot fail.
5980 * nss/nss_files/files-netgrp.c (EXPAND): Free buffer which cannot
5983 * nis/nis_table.c: Clean up memory handling.
5984 * nis/nis_subr.c (nis_getnames): Clean up memory handling.
5985 * nis/nis_removemember.c (nis_removemember): Add comment
5986 explaining use of realloc.
5988 * math/tgmath.h (fabs): Use __TGMATH_UNARY_REAL_IMAG_RET_REAL.
5990 Patch by Lev S Bishop <lev.bishop@yale.edu>.
5992 * math/bug-tgmath1.c (main): Test fabs and carg as well.
5994 2004-05-06 Richard Henderson <rth@redhat.com>
5996 * elf/elf.h (AT_L1I_CACHESHAPE, AT_L1D_CACHESHAPE,
5997 AT_L2_CACHESHAPE, AT_L3_CACHESHAPE): New.
5998 * sysdeps/unix/sysv/linux/alpha/Versions: Export
5999 __libc_alpha_cache_shape as a private symbol.
6000 * sysdeps/unix/sysv/linux/alpha/dl-sysdep.c: New file.
6001 * sysdeps/unix/sysv/linux/alpha/sysconf.c: New file.
6003 2004-05-06 Richard Henderson <rth@redhat.com>
6005 * sysdeps/alpha/div_libc.h (_ITOFS, _ITOFT, _FTOIT, _ITOFT2): New.
6006 * sysdeps/alpha/divl.S: Use them.
6007 * sysdeps/alpha/divq.S: Likewise.
6008 * sysdeps/alpha/divqu.S: Likewise.
6009 * sysdeps/alpha/reml.S: Likewise.
6010 * sysdeps/alpha/remq.S: Likewise.
6011 * sysdeps/alpha/remqu.S: Likewise.
6013 2004-05-06 Ulrich Drepper <drepper@redhat.com>
6015 * math/tgmath.h (__TGMATH_UNARY_REAL_IMAG_RET_REAL):Define.
6018 * math/Makefile (tests): Add bug-tgmath1.
6019 * math/bug-tgmath1.c: New file.
6021 2004-05-05 Jakub Jelinek <jakub@redhat.com>
6023 * sysdeps/alpha/atomicity.h: Remove.
6024 * sysdeps/generic/atomicity.h: Remove.
6026 2004-05-05 H.J. Lu <hongjiu.lu@intel.com>
6028 * sysdeps/i386/i486/bits/string.h (strpbrk): Cast return to
6031 2004-04-22 David Mosberger <davidm@hpl.hp.com>
6033 * sysdeps/unix/sysv/linux/ia64/Makefile (librt-routines): Mention
6035 * sysdeps/unix/sysv/linux/ia64/rt-sysdep.S: New file.
6037 * sysdeps/ia64/strcat.c: New file.
6038 * sysdeps/ia64/strcat.S: Delete.
6040 2004-05-04 Jakub Jelinek <jakub@redhat.com>
6042 * sysdeps/unix/sysv/linux/ia64/sysdep.S (USE___THREAD): Remove
6045 2004-04-23 Jakub Jelinek <jakub@redhat.com>
6047 * sysdeps/ia64/fpu/libm_support.h (__libm_error_support): Add
6048 libc_hidden_proto. Define to __GI___libm_error_support for
6049 assembly going into libc.so.
6050 * sysdeps/ia64/fpu/libc_libm_error.c (__libm_error_support): Add
6053 * include/libc-symbols.h (HIDDEN_BUILTIN_JUMPTARGET): Define.
6054 * sysdeps/ia64/bcopy.S (bcopy): Use it for jump to memmove.
6056 * sysdeps/unix/sysv/linux/ia64/sysdep.S (__syscall_error): Access
6057 gprel errno if RTLD_PRIVATE_ERRNO or __thread __libc_errno/errno
6060 2004-05-03 Jakub Jelinek <jakub@redhat.com>
6062 * sysdeps/unix/bsd/bits/fcntl.h (F_SETOWN, F_GETOWN): Define if
6063 __USE_BSD or __USE_UNIX98.
6064 * sysdeps/unix/bsd/ultrix4/bits/fcntl.h (F_SETOWN, F_GETOWN): Likewise.
6065 * sysdeps/unix/bsd/bsd4.4/bits/fcntl.h (F_SETOWN, F_GETOWN): Likewise.
6066 * sysdeps/unix/bsd/sun/sunos4/bits/fcntl.h (F_SETOWN, F_GETOWN):
6068 * sysdeps/unix/common/bits/fcntl.h (F_SETOWN, F_GETOWN): Likewise.
6069 * sysdeps/unix/sysv/aix/bits/fcntl.h (F_SETOWN, F_GETOWN): Likewise.
6070 * sysdeps/unix/sysv/irix4/bits/fcntl.h (F_SETOWN, F_GETOWN): Likewise.
6071 * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h (F_SETOWN, F_GETOWN):
6073 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (F_SETOWN, F_GETOWN):
6075 * sysdeps/unix/sysv/linux/cris/bits/fcntl.h (F_SETOWN, F_GETOWN):
6077 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h (F_SETOWN, F_GETOWN):
6079 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (F_SETOWN, F_GETOWN):
6081 * sysdeps/unix/sysv/linux/mips/bits/fcntl.h (F_SETOWN, F_GETOWN):
6083 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h (F_SETOWN, F_GETOWN):
6085 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h (F_SETOWN, F_GETOWN):
6087 * sysdeps/unix/sysv/linux/m68k/bits/fcntl.h (F_SETOWN, F_GETOWN):
6089 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h (F_SETOWN, F_GETOWN):
6091 * sysdeps/unix/sysv/linux/arm/bits/fcntl.h (F_SETOWN, F_GETOWN):
6093 * sysdeps/unix/sysv/linux/hppa/bits/fcntl.h (F_SETOWN, F_GETOWN):
6095 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h (F_SETOWN, F_GETOWN):
6097 * sysdeps/generic/bits/fcntl.h (F_SETOWN, F_GETOWN): Likewise.
6098 * sysdeps/mach/hurd/bits/fcntl.h (F_SETOWN, F_GETOWN): Likewise.
6099 * io/sys/stat.h (S_ISSOCK, S_IFSOCK): Likewise.
6101 2004-05-01 Jakub Jelinek <jakub@redhat.com>
6103 * posix/Versions (libc): Remove __libc_wait, __libc_waitpid,
6104 __libc_pause, __libc_nanosleep, __libc_pread, __libc_pread64,
6105 __libc_pwrite64, __waitid and __pselect @@GLIBC_PRIVATE.
6106 * stdlib/Versions (libc): Remove __on_exit@@GLIBC_PRIVATE.
6107 * sysdeps/unix/sysv/linux/Versions (libc): Remove
6108 __libc_sigaction@@GLIBC_PRIVATE.
6109 * sysdeps/unix/sysv/linux/x86_64/Versions (libc): Remove
6110 __modify_ldt@@GLIBC_PRIVATE.
6111 * socket/Versions (libc): Remove __libc_accept, __libc_send,
6112 __libc_recvfrom, __libc_recvmsg, __libc_sendmsg, __libc_recv,
6113 __libc_sendto and __libc_connect @@GLIBC_PRIVATE.
6114 * stdio-common/Versions (libc): Remove
6115 _itoa_upper_digits@@GLIBC_PRIVATE.
6116 * resolv/Versions (libresolv): Remove __ns_samename@@GLIBC_PRIVATE.
6117 * misc/Versions (libc): Remove __libc_fsync, __libc_msync,
6118 __libc_readv and __libc_writev @@GLIBC_PRIVATE.
6119 * termios/Versions (libc): Remove __libc_tcdrain@@GLIBC_PRIVATE.
6120 * io/Versions (libc): Remove __libc_open, __libc_close, __libc_read,
6121 __libc_write, __libc_lseek, __libc_fcntl, __libc_open64 and
6122 __libc_lseek64 @@GLIBC_PRIVATE.
6124 2004-04-30 Jakub Jelinek <jakub@redhat.com>
6126 * elf/dl-load.c (open_verify): Move e_phentsize check after e_type
6129 2004-04-29 Steven Munroe <sjmunroe@us.ibm.com>
6131 * sysdeps/powerpc/powerpc64/fpu/s_ceil.S: New file.
6132 * sysdeps/powerpc/powerpc64/fpu/s_ceilf.S: New file.
6133 * sysdeps/powerpc/powerpc64/fpu/s_floor.S: New file.
6134 * sysdeps/powerpc/powerpc64/fpu/s_floorf.S: New file.
6135 * sysdeps/powerpc/powerpc64/fpu/s_llrint.c: Removed.
6136 * sysdeps/powerpc/powerpc64/fpu/s_llrint.S: New file.
6137 * sysdeps/powerpc/powerpc64/fpu/s_llrintf.c: Removed.
6138 * sysdeps/powerpc/powerpc64/fpu/s_llrintf.S: New file.
6139 * sysdeps/powerpc/powerpc64/fpu/s_llround.S: New file.
6140 * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S: New file.
6141 * sysdeps/powerpc/powerpc64/fpu/s_lround.S: New file.
6142 * sysdeps/powerpc/powerpc64/fpu/s_lroundf.S: New file.
6143 * sysdeps/powerpc/powerpc64/fpu/s_rint.S: New file.
6144 * sysdeps/powerpc/powerpc64/fpu/s_rintf.S: New file.
6145 * sysdeps/powerpc/powerpc64/fpu/s_round.S: New file.
6146 * sysdeps/powerpc/powerpc64/fpu/s_roundf.S: New file.
6147 * sysdeps/powerpc/powerpc64/fpu/s_trunc.S: New file.
6148 * sysdeps/powerpc/powerpc64/fpu/s_truncf.S: New file.
6150 * math/test-misc.c [LDBL_MANT_DIG == 106](main): Correct LDBL_MAX
6151 mantissa for AIX long double format.
6152 * misc/qefgcvt.c [LDBL_MANT_DIG == 106] (NDIGIT_MAX): Define for AIX
6154 * misc/qefgcvt_r.c [LDBL_MANT_DIG == 106] (NDIGIT_MAX): Likewise.
6155 * stdlib/fpioconst.c [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__>1024]
6156 (_fpioconst_pow10): AIX long double format has same exponent range as
6158 * stdlib/fpioconst.h [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__>1024]
6159 (LDBL_MAX_10_EXP_LOG): AIX long double format has same exponent range
6162 2004-04-23 Art Haas <ahaas@airmail.net>
6164 * sysdeps/unix/sysv/linux/kernel-features.h: Add 'defined'.
6166 2004-04-28 Carlos O'Donell <carlos@baldric.uwo.ca>
6168 * sysdeps/unix/sysv/linux/mq_getattr.c: Include <stddef.h>.
6169 * sysdeps/unix/sysv/linux/mq_notify.c: Likewise.
6170 * sysdeps/unix/sysv/linux/mq_open.c: Likewise.
6171 * sysdeps/unix/sysv/linux/mq_receive.c: Likewise.
6172 * sysdeps/unix/sysv/linux/mq_send.c: Likewise.
6174 2004-04-29 Philip Blundell <pb@nexus.co.uk>
6176 * sysdeps/arm/dl-machine.h (RTLD_START): Avoid unnecessary GOT
6179 2004-04-29 Jakub Jelinek <jakub@redhat.com>
6181 * manual/resource.texi (sched_setaffinity, sched_getaffinity): Fix
6182 prototypes and description [BZ #131].
6184 * string/bits/string2.h (strpbrk): Cast NULL to char * [BZ #130].
6185 Patch by Ed Catmur <ed@catmur.co.uk>.
6186 * string/tst-inlcall.c (main): Add test for strpbrk.
6189 * sysdeps/unix/sysv/linux/sys/sysctl.h: Remove linux/compiler.h
6191 (_LINUX_KERNEL_H, _LINUX_TYPES_H, _LINUX_LIST_H): Only define if not
6192 yet defined, #undef back after including linux/sysctl.h if defined
6194 (__LINUX_COMPILER_H, __user): Define if not yet defined, #undef
6195 back after including linux/sysctl.h if defined here.
6197 * sysdeps/sparc/sparc64/soft-fp/qp_qtoi.c (_Qp_qtoi): Use %f31
6198 for single precision register, add it to __asm clobbers [BZ #139].
6199 * sysdeps/sparc/sparc64/soft-fp/qp_qtoui.c (_Qp_qtoui): Use %f31
6200 for single precision register, add it to __asm clobbers.
6201 * sysdeps/sparc/sparc64/soft-fp/qp_qtoux.c (_Qp_qtoux): Use fqtox
6202 instead of fqtoi in QP_HANDLE_EXCEPTIONS.
6203 * sysdeps/sparc/sparc64/soft-fp/qp_qtox.c (_Qp_qtox): Likewise.
6204 Reported by M. H. VanLeeuwen <vanl@megsinet.net>.
6206 2004-04-23 Andreas Schwab <schwab@suse.de>
6208 * sysdeps/unix/sysv/linux/m68k/register-dump.h: Use
6211 2004-04-22 Philip Blundell <philb@gnu.org>
6213 * sysdeps/arm/dl-machine.h (elf_machine_rela): Don't use INTUSE
6214 when calling _dl_signal_error.
6215 (elf_machine_rel): Likewise.
6217 2004-04-21 Ulrich Drepper <drepper@redhat.com>
6219 * sysdeps/unix/sysv/linux/ia64/setjmp.S: Define _GI___sigsetjmp
6220 and use it internally instead of __sigsetjmp.
6221 * sysdeps/ia64/fpu/s_frexpf.c (frexpf): Use _GI___libm_frexp_4f.
6222 * sysdeps/ia64/fpu/s_frexpl.c (frexpl): Use _GI___libm_frexp_4l.
6223 * sysdeps/ia64/fpu/libm_frexp4.S: Define _GI___libm_frexp_4.
6224 * sysdeps/ia64/fpu/libm_frexp4f.S: Define _GI___libm_frexp_4f.
6225 * sysdeps/ia64/fpu/libm_frexp4l.S: Define _GI___libm_frexp_4l.
6226 * sysdeps/ia64/fpu/s_frexp.c (frexp): Use _GI___libm_frexp_4.
6227 * sysdeps/ia64/fpu/libm_support.h: Declare _GI___libm_frexp_4,
6228 _GI___libm_frexp_4f, _GI___libm_frexp_4l.
6229 * sysdeps/ia64/fpu/bits/mathinline.h: New file.
6230 * sysdeps/unix/sysv/linux/ia64/__start_context.S: Use
6231 HIDDEN_JUMPTARGET for exit call.
6232 * sysdeps/unix/sysv/linux/ia64/clone2.S: Use HIDDEN_JUMPTARGET for
6234 * sysdeps/ia64/bcopy.S: Use HIDDEN_JUMPTARGET for memmove call.
6235 * sysdeps/ia64/strcat.S: Use HIDDEN_JUMPTARGET for strlen and
6238 2004-04-21 Jakub Jelinek <jakub@redhat.com>
6240 * posix/tst-chmod.c (do_test): Fix a typo.
6242 * elf/lateglobal.c (main): Fix error checks.
6243 Patch by Stephen Clarke <stephen.clarke@st.com>.
6245 * manual/ctype.texi (isblank, iswblank): Mark as ISO functions,
6246 mention they have been added in ISO C99.
6247 Reported by Ben Pfaff <blp@cs.stanford.edu>.
6249 2004-03-31 H.J. Lu <hongjiu.lu@intel.com>
6251 * sysdeps/ieee754/ldbl-128/bits/huge_vall.h: Fix typo.
6253 2004-04-20 Jakub Jelinek <jakub@redhat.com>
6255 * sysdeps/unix/sysv/linux/shm_open.c (shm_unlink): Change EPERM into
6258 2004-04-20 Jakub Jelinek <jakub@redhat.com>
6260 * stdio-common/vfscanf.c (_IO_vfscanf): Revert last %% whitespace
6262 * stdio-common/tst-sscanf.c (int_tests): Adjust.
6264 * nis/nss-nis.c: Include stdlib.h.
6266 * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Shut up a
6268 * sysdeps/sparc/sparc64/memcmp.S (memcmp): Remove BP_SYM () from
6269 libc_hidden_builtin_def.
6271 2004-04-20 Jim Meyering <jim@meyering.net>
6273 * misc/error.c (error_tail): Don't leak upon realloc failure.
6275 2004-04-20 Martin Schwidefsky <schwidefsky@de.ibm.com>
6277 * sysdeps/unix/sysv/linux/dl-execstack.c (_dl_make_stack_executable):
6278 Use RETURN_ADDRESS instead of __builtin_return_address.
6280 2004-04-19 Ulrich Drepper <drepper@redhat.com>
6282 * sysdeps/unix/sysv/linux/mq_unlink.c: Rewrite to produce more
6285 2004-04-20 Jakub Jelinek <jakub@redhat.com>
6287 * stdio-common/vfscanf.c (_IO_vfscanf): When skipping whitespace,
6288 do input_error () instead of conv_error () and don't look at errno.
6289 Don't eat any whitespace before %% if skip_space == 0.
6290 * stdio-common/tst-sscanf.c (int_tests): New array.
6291 (main): Run int_tests.
6294 See ChangeLog.14 for earlier changes.