1 2005-03-01 H.J. Lu <hongjiu.lu@intel.com>
4 * iconv/iconvconfig.c: Fix comment for the output file.
5 (write_output): Clear padding in header.
7 2005-03-03 Ulrich Drepper <drepper@redhat.com>
9 * elf/dl-close.c (_dl_close): Don't try to set up new searchpath if the
10 loader is closed. Fixes unload3.
11 * elf/tst-global1.c: New file.
12 * elf/Makefile (tests): Add tst-global1.
14 2005-03-03 Jakub Jelinek <jakub@redhat.com>
16 * elf/Makefile: Add rules to build and run unload3 test.
17 * elf/unload3.c: New test.
18 * elf/unload3mod1.c: New file.
19 * elf/unload3mod2.c: New file.
20 * elf/unload3mod3.c: New file.
21 * elf/unload3mod4.c: New file.
23 2005-02-21 Alan Modra <amodra@bigpond.net.au>
25 * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h (elf_vrreg_t): Don't
28 2005-03-01 Jakub Jelinek <jakub@redhat.com>
30 * posix/bits/unistd.h (read, pread, pread64): Use __bos0 instead
32 * socket/bits/socket2.h (recv, recvfrom): Likewise.
34 2005-03-01 Roland McGrath <roland@redhat.com>
37 * sysdeps/arm/dl-machine.h (ELF_MACHINE_NO_RELA): Define this outside
40 2005-03-01 Alfred M. Szmidt <ams@gnu.org>
42 * elf/dl-load.c (__stack_prot) [!PROT_GROWSUP && !PROT_GROWSDOWN]:
43 Add missing initializer.
45 * malloc/arena.c: #include <stdbool.h> outside of [SHARED &&
46 USE_TLS && !USE___THREAD].
48 2005-02-26 GOTO Masanori <gotom@debian.or.jp>
50 * csu/Makefile: Use printf instead of echo for some shells.
52 2005-02-28 Roland McGrath <roland@redhat.com>
54 * debug/warning-nop.c (__nop): Rename to nop, make it static.
55 (__warndecl): Use alias attribute directly, instead of strong_alias
56 macro. Add attribute_hidden.
58 2005-02-28 Ulrich Drepper <drepper@redhat.com>
60 * posix/bits/unistd.h: Avoid calling __*_chk variants if we can
61 determine the call will never trigger a failure.
62 * debug/read_chk.c (__read_chk): Always fail if the buffer is too
64 * debug/readlink_chk.c (__readlink_chk): Likewise.
65 * debug/pread64_chk.c (__pread64_chk): Likewise.
66 * debug/pread_chk.c (__pread_chk): Likewise.
68 * sysdeps/i386/i686/memset_chk.S: Remove alias and warning.
69 * sysdeps/x86_64/memset_chk.S: Likewise.
71 2005-02-24 Roland McGrath <roland@redhat.com>
73 * debug/Versions (libc: GLIBC_2.4): Remove
74 __memset_zero_constant_len_parameter.
75 * sysdeps/generic/memset_chk.c: Remove alias and warning.
76 * misc/sys/cdefs.h (__warndecl): New macro.
77 * debug/warning-nop.c: New file.
78 * string/bits/string3.h (memset): Call __warn_memset_zero_len with no
79 arguments, instead of calling __memset_zero_constant_len_parameter.
80 Use __warndecl for __warn_memset_zero_len.
81 * debug/Makefile (routines): Add $(static-only-routines).
82 (static-only-routines): New variable.
84 2005-02-27 Ulrich Drepper <drepper@redhat.com>
86 * po/tr.po: Update from translation team.
88 2005-02-26 Ulrich Drepper <drepper@redhat.com>
90 * elf/dl-addr.c: Cleanups. Move declaration next to first use.
92 * dlfcn/dlerror.c (check_free): New function. Extract common code
93 from fini and free_key_mem. Check whether this is libdl in the
96 2005-02-25 Ulrich Drepper <drepper@redhat.com>
98 * elf/dl-lookup.c (_dl_debug_bindings): Add namespace information
101 2004-11-11 Richard Sandiford <rsandifo@redhat.com>
104 * sysdeps/unix/sysv/linux/mips/configure.in (asm-unistd.h): Only
105 preprocess <asm/unistd.h> if it defines ABI-prefixed syscall names
106 like __NR_N32_open. Just include <asm/unistd.h> otherwise.
107 * sysdeps/unix/sysv/linux/mips/configure: Regenerate.
108 * sysdeps/unix/sysv/linux/mips/mips32/kern64/sysdep.h: Delete
109 * sysdeps/unix/sysv/linux/mips/mips64/n32/sysdep.h (SYS_ify): Use the
110 standard __NR prefix.
111 * sysdeps/unix/sysv/linux/mips/mips64/n64/sysdep.h (SYS_ify): Likewise.
112 * sysdeps/unix/sysv/linux/mips/Makefile (syscall-%.h): Rework so that
113 the output file is compatible with both pre-2.6 and 2.6 kernel headers.
114 Extract separate syscall lists for each ABI.
116 2005-02-23 Ulrich Drepper <drepper@redhat.com>
118 * Makerules (libc.so): Add AS_NEEDED line for dynamic linker.
121 * elf/Makefile: Run tst-tls9-static again.
123 2005-02-22 Ulrich Drepper <drepper@redhat.com>
126 * sysdeps/generic/libc-tls.c (static_dtv): Size the same as the
128 (__libc_setup_tls): Initialize length of DTV based on array length.
129 * elf/dl-load.c: Revert last change.
130 * sysdeps/generic/dl-tls.c: Revert last change.
132 * posix/Makefile (tests): Add tst-execvp1, tst-execvp2, tst-execlp1,
133 tst-execlp2, tst-execv1, tst-execv2, tst-execl1, tst-execl2,
134 tst-execve1, tst-execve2, tst-execle1, and tst-execle2.
135 * posix/tst-execl1.c: New file.
136 * posix/tst-execl2.c: New file.
137 * posix/tst-execle1.c: New file.
138 * posix/tst-execle2.c: New file.
139 * posix/tst-execlp1.c: New file.
140 * posix/tst-execlp2.c: New file.
141 * posix/tst-execv1.c: New file.
142 * posix/tst-execv2.c: New file.
143 * posix/tst-execve1.c: New file.
144 * posix/tst-execve2.c: New file.
145 * posix/tst-execvp1.c: New file.
146 * posix/tst-execvp2.c: New file.
148 2005-02-22 Roland McGrath <roland@redhat.com>
150 * include/signal.h: Revert last change.
151 (__sigemptyset): Use __builtin_memset instead of memset.
153 2005-02-22 Ulrich Drepper <drepper@redhat.com>
155 * sysdeps/unix/sysv/linux/libc_fatal.c (__libc_message): Use
156 non-cancelable I/O functions.
158 2005-02-22 Jakub Jelinek <jakub@redhat.com>
161 * nscd/nscd-client.h: Include sys/uio.h.
162 (__readall, __readvall, writeall): New prototypes.
163 * nscd/connections.c (writeall): New function.
164 (handle_request): Use it.
165 * nscd/aicache.c (addhstaiX): Likewise.
166 * nscd/initgrcache.c (addinitgroupsX): Likewise.
167 * nscd/hstcache.c (cache_addhst): Likewise.
168 * nscd/grpcache.c (cache_addgr): Likewise.
169 * nscd/pwdcache.c (cache_addpw): Likewise.
170 * nscd/nscd_helper.c (__readall, __readvall): New functions.
171 * nscd/nscd_getai.c (__nscd_getai): Use them.
172 * nscd/nscd_getpw_r.c (__nscd_getpw_r): Likewise.
173 * nscd/nscd_getgr_r.c (__nscd_getgr_r): Likewise.
174 * nscd/nscd_gethst_r.c (__nscd_gethst_r): Likewise.
175 * nscd/nscd_initgroups.c (__nscd_getgrouplist): Likewise.
177 2005-02-22 Roland McGrath <roland@redhat.com>
179 * include/sys/socket.h: Declare __recv.
180 * sysdeps/generic/recv.c (recv): Rename to __recv, and add weak alias.
181 * sysdeps/mach/hurd/recv.c: Likewise.
183 * sysdeps/unix/sysv/linux/libc_fatal.c: Include <execinfo.h> for
186 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
187 (INTERNAL_SYSCALL_ERROR_P): Evalute VAL. Parenthesize ERR.
188 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
190 * include/signal.h: Include <string.h> for memset decl.
192 2005-02-22 Andreas Schwab <schwab@suse.de>
194 * posix/execvp.c (execvp): Fix invalid free.
196 2005-02-22 Jakub Jelinek <jakub@redhat.com>
198 * malloc/Makefile (CFLAGS-mcheck-init.c): Add.
199 * sunrpc/Makefile: Add $(PIC-ccflag) to CFLAGS-x* for
202 2005-02-21 Ulrich Drepper <drepper@redhat.com>
204 * iconvdata/ibm930.h: Correct Yen mapping.
205 * iconvdata/ibm939.h: Likewise.
206 * iconvdata/testdata/IBM930..UTF8: Adjust test data.
207 * iconvdata/testdata/IBM939..UTF8: Likewise.
208 Patch by Jiro Sekiba <SEKIBA@jp.ibm.com>.
210 * iconvdata/Makefile (modules): Add IBM1025, IBM1122, IBM1137, IBM1153,
211 IBM1154, IBM1155, IBM1156, IBM1157, and IBM1158.
212 (distribute): Add ibm1025.c, ibm1025.h, ibm1122.c, ibm1122.h,
213 ibm1137.c, ibm1137.h, ibm1153.c, ibm1153.h, ibm1154.c, ibm1154.h,
214 ibm1155.c, ibm1155.h, ibm1156.c, ibm1156.h, ibm1157.c, ibm1157.h,
215 ibm1158.c, and ibm1158.h.
216 * iconvdata/TESTS: Add IBM1025, IBM1122, IBM1137, IBM1153,
217 IBM1154, IBM1155, IBM1156, IBM1157, and IBM1158.
218 * iconvdata/gconv-modules: Likewise.
219 * iconvdata/ibm1025.c: New file.
220 * iconvdata/ibm1025.h: New file.
221 * iconvdata/ibm1122.c: New file.
222 * iconvdata/ibm1122.h: New file.
223 * iconvdata/ibm1137.c: New file.
224 * iconvdata/ibm1137.h: New file.
225 * iconvdata/ibm1153.c: New file.
226 * iconvdata/ibm1153.h: New file.
227 * iconvdata/ibm1154.c: New file.
228 * iconvdata/ibm1154.h: New file.
229 * iconvdata/ibm1155.c: New file.
230 * iconvdata/ibm1155.h: New file.
231 * iconvdata/ibm1156.c: New file.
232 * iconvdata/ibm1156.h: New file.
233 * iconvdata/ibm1157.c: New file.
234 * iconvdata/ibm1157.h: New file.
235 * iconvdata/ibm1158.c: New file.
236 * iconvdata/ibm1158.h: New file.
237 * iconvdata/testdata/IBM1025: New file.
238 * iconvdata/testdata/IBM1025..UTF8: New file.
239 * iconvdata/testdata/IBM1122: New file.
240 * iconvdata/testdata/IBM1122..UTF8: New file.
241 * iconvdata/testdata/IBM1137: New file.
242 * iconvdata/testdata/IBM1137..UTF8: New file.
243 * iconvdata/testdata/IBM1153: New file.
244 * iconvdata/testdata/IBM1153..UTF8: New file.
245 * iconvdata/testdata/IBM1154: New file.
246 * iconvdata/testdata/IBM1154..UTF8: New file.
247 * iconvdata/testdata/IBM1155: New file.
248 * iconvdata/testdata/IBM1155..UTF8: New file.
249 * iconvdata/testdata/IBM1156: New file.
250 * iconvdata/testdata/IBM1156..UTF8: New file.
251 * iconvdata/testdata/IBM1157: New file.
252 * iconvdata/testdata/IBM1157..UTF8: New file.
253 * iconvdata/testdata/IBM1158: New file.
254 * iconvdata/testdata/IBM1158..UTF8: New file.
255 Contributed by Jiro Sekiba <SEKIBA@jp.ibm.com>.
257 2005-02-10 Paolo Bonzini <bonzini@gnu.org>
259 * posix/regcomp.c (lower_subexp): Do not optimize empty
260 subexpressions even with REG_NOSUB.
261 * posix/rxspencer/tests: Add a previously failing testcase.
263 2005-02-21 Alan Modra <amodra@bigpond.net.au>
266 * elf/dl-reloc.c (_dl_nothread_init_static_tls): Assert that dtv
267 array index is within bounds.
269 2005-02-21 Ulrich Drepper <drepper@redhat.com>
272 * elf/dl-load.c: Do not allow PT_TLS in modules loaded in statically
274 * sysdeps/generic/dl-tls.c [!SHARED]: Don't build _dl_next_tls_modid.
275 * elf/Makefile: Remove rules to build and run tst-tls9-static.
278 * elf/dl-reloc.c (_dl_nothread_init_static_tls): Avoid using
279 THREAD_DTV multiple times, this minimally reduces code size on
282 2005-02-21 Jakub Jelinek <jakub@redhat.com>
285 * nscd/nscd_gethst_r.c (nscd_gethst_r): Set *h_errnop to
286 NETDB_INTERNAL if buffer is too small.
289 * nscd/hstcache.c (INCR): Remove.
290 (addhstbyX): Double buflen in each iteration rather than add INCR.
291 * nscd/grpcache.c: Likewise.
292 * nscd/pwdcache.c: Likewise.
294 2005-02-21 Ulrich Drepper <drepper@redhat.com>
296 * sysdeps/unix/sysv/linux/libc_fatal.c: Print backtrace and memory
298 * debug/chk_fail.c: Request backtrace and memory map dump.
300 * Versions.def: Add GLIBC_2.4 for libc.
301 * debug/fgets_chk.c: New file.
302 * debug/fgets_u_chk.c: New file.
303 * debug/getcwd_chk.c: New file.
304 * debug/getwd_chk.c: New file.
305 * debug/readlink_chk.c: New file.
306 * debug/read_chk.c: New file.
307 * debug/pread_chk.c: New file.
308 * debug/pread64_chk.c: New file.
309 * debug/recv_chk.c: New file.
310 * debug/recvfrom_chk.c: New file.
311 * debug/Versions: Add all new functions with version GLIBC_2.4.
312 * debug/Makefile (routines): Add fgets_chk, fgets_u_chk, read_chk,
313 pread_chk, pread64_chk, recv_chk, recvfrom_chk, readlink_chk,
314 getwd_chk, and getcwd_chk. Plus appropriate CFLAGS definitions.
315 * debug/tst-chk1.c: Add more tests.
316 * libio/bits/stdio2.h: Add macros for fgets and fgets_unlocked.
317 * include/stdio.h: Declare __fgets_chk and __fgets_unlocked_chk.
318 * posix/unistd.h: Include <bits/unistd.h> for fortification.
319 * posix/bits/unistd.h: New file.
320 * posix/Makefile (headers): Add bits/unistd.h.
321 * socket/sys/socket.h: Include <bits/socket2.h> for fortification.
322 * socket/bits/socket2.h: New file.
323 * socket/Makefile (headers): Add bits/socket2.h.
325 * string/bits/string3.h: Extend memset macro to check for zero 3rd
326 parameter and use __memset_zero_constant_len_parameter in that case.
327 * sysdeps/generic/memset_chk.c: Add
328 __memset_zero_constant_len_parameter alias and linker warning.
329 * debug/Versions: Add __memset_zero_constant_len_parameter to libc
330 with version GLIBC_2.4.
332 * sysdeps/generic/bits/types.h: Don't unnecessarily use __extension__
333 in __STD_TYPE definition.
335 2005-02-21 Jakub Jelinek <jakub@redhat.com>
337 * malloc/malloc.c (malloc_printerr): If MALLOC_CHECK_={5,7}, print
338 the error message rather than program name.
340 2005-02-21 Ulrich Drepper <drepper@redhat.com>
343 * posix/unistd.h: symlink and readlink are unconditionally
344 available in the 2001 spec.
346 2005-02-16 Roland McGrath <roland@redhat.com>
348 * intl/dcigettext.c (_nl_find_msg): Add a cast.
350 * nis/nis_clone_dir.c (nis_clone_directory): Use char * for ADDR.
351 * nis/nis_clone_obj.c (nis_clone_object): Likewise.
352 * nis/nis_clone_res.c (nis_clone_result): Likewise.
354 * resolv/nss_dns/dns-network.c (getanswer_r): Use const unsigned char *
355 for END_OF_MESSAGE and CP.
357 * resolv/res_send.c (send_dg): Add else branch for case impossible
358 unless `poll' is buggy.
360 * crypt/crypt_util.c (__setkey_r): Add a cast.
362 * locale/programs/linereader.c (get_toplvl_escape): Use size_t for
363 NBYTES, and unsigned char * for BYTES.
365 * locale/programs/charmap.c (charmap_new_char): Use size_t and
366 unsighed char * for NBYTES, BYTES parameters.
368 * sysdeps/generic/dl-hash.h (_dl_elf_hash): Take const char * argument
370 * sysdeps/i386/i686/dl-hash.h (_dl_elf_hash): Likewise.
372 * sunrpc/create_xid.c (_create_xid): Don't use unsigned long for RES.
374 * sunrpc/svcauth_des.c (_svcauth_des): Fix cast type.
376 * sunrpc/auth_des.c (authdes_create): Don't use u_char for PKEY_DATA.
377 (authdes_marshal): Don't use unsigned int for LEN.
378 * sunrpc/xdr.c (xdr_hyper): Don't use unsigned long for T2.
379 (xdr_u_hyper): Likewise.
380 (xdr_u_short): Don't use u_long for L.
381 * sunrpc/xdr_intXX_t.c (xdr_int64_t): Don't use uint32_t for T2.
383 * inet/rexec.c (rexec_af): Use socklen_t.
384 * sunrpc/key_call.c (getkeyserv_handle): Likewise.
385 * sunrpc/rtime.c (rtime): Likewise.
386 * resolv/res_send.c (send_vc, send_dg): Likewise.
387 * nis/nis_callback.c (__nis_create_callback): Likewise.
389 * sysdeps/generic/libc-start.c: Use unsigned int for nthreads ptr.
391 * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix type of ADDR local.
393 * libio/libio.h (_IO_BE): Add parenthesis around EXPR.
395 * intl/dcigettext.c (INTVARDEF, INTUSE): Macros removed.
396 (_nl_default_dirname): Use libc_hidden_data_def instead of INTVARDEF.
397 (libc_freeres_fn, DCIGETTEXT): Don't use INTUSE.
398 * intl/bindtextdom.c (INTUSE): Macro removed.
399 (_nl_default_dirname): Use libc_hidden_proto.
400 (set_binding_values): Don't use INTUSE.
401 * include/libintl.h (_libc_intl_domainname_internal): Decl removed.
402 (_libc_intl_domainname): Use libc_hidden_proto.
403 * posix/regex_internal.h (gettext): Remove INTUSE on it.
404 * locale/SYS_libc.c (_libc_intl_domainname): Use libc_hidden_data_def
406 * include/libintl.h (_): Don't use *_internal name.
408 * ctype/ctype-extn.c (__ctype_tolower, __ctype_toupper): Use int32_t,
410 * locale/lc-ctype.c (_nl_postload_ctype): Likewise for assignments.
412 * iconv/gconv_open.c (__gconv_open): Remove useless cast.
415 * sysdeps/i386/dl-machine.h (ELF_MACHINE_NO_RELA): Define this outside
417 * sysdeps/sh/dl-machine.h (ELF_MACHINE_NO_REL): Likewise.
418 * sysdeps/powerpc/powerpc32/dl-machine.h
419 (elf_machine_rel, elf_machine_rel_relative): Removed.
420 * sysdeps/powerpc/powerpc64/dl-machine.h
421 (elf_machine_rel, elf_machine_rel_relative): Removed.
423 2005-02-03 Alexandre Oliva <aoliva@redhat.com>
426 * elf/dynamic-link.h: Don't declare nested auto functions that are
427 not going to be defined.
429 2004-07-23 Jakub Jelinek <jakub@redhat.com>
432 * include/features.h (_POSIX_SOURCE, _POSIX_C_SOURCE): Define
433 if _XOPEN_SOURCE >= 500 even if __STRICT_ANSI__ is defined.
435 2005-02-16 Roland McGrath <roland@redhat.com>
437 * sysdeps/generic/libc-start.c (LIBC_START_MAIN): Move UBP_EV defn
438 inside [! SHARED] where it's used.
440 2005-02-15 Ulrich Drepper <drepper@redhat.com>
442 * sysdeps/generic/bits/byteswap.h: Make sure result of all the
443 functions and macros is unsigned.
445 2005-02-11 Barry deFrese <bddebian@comcast.net>
448 * sysdeps/mach/hurd/setresgid.c: Use weak_alias.
449 * sysdeps/mach/hurd/setresuid.c: Likewise.
451 2005-02-14 GOTO Masanori <gotom@debian.or.jp>
453 * misc/sys/syslog.h: Fix typo in comment.
455 2005-02-14 Roland McGrath <roland@redhat.com>
458 * sysdeps/unix/sysv/linux/sys/kd.h: Don't leave _LINUX_TYPES_H defined
459 if it wasn't originally.
461 2005-02-14 GOTO Masanori <gotom@debian.or.jp>
463 * sysdeps/unix/sysv/linux/alpha/syscalls.list: Remove the duplicated
465 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
466 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
468 2005-02-11 Jakub Jelinek <jakub@redhat.com>
470 * scripts/soversions.awk: Only record first WORDSIZE{32,64}
473 2005-02-14 Alan Modra <amodra@bigpond.net.au>
475 * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela): Define
476 with auto inline, and attribute always_inline.
477 (elf_machine_rela_relative, elf_machine_lazy_rel): Likewise.
478 (elf_machine_rel, elf_machine_rel_relative): Likewise.
479 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela): Likewise.
480 (elf_machine_rela_relative, elf_machine_lazy_rel): Likewise.
481 (elf_machine_rel, elf_machine_rel_relative): Likewise.
482 (elf_machine_tprel): Likewise.
484 2005-02-14 Andreas Schwab <schwab@suse.de>
486 * manual/filesys.texi (Random Access Directory): Fix type of file
487 position value for telldir and seekdir.
488 (Attribute Meanings): Fix typo.
490 2005-02-14 H.J. Lu <hongjiu.lu@intel.com>
492 * csu/elf-init.c (__libc_csu_fini): Enable if LIBC_NONSHARED
494 * sysdeps/generic/libc-start.c (LIBC_START_MAIN): Call fini
495 if SHARED isn't defined.
496 * elf/Makefile (tests-static): Add tst-array1-static.
497 ($(objpfx)tst-array1-static.out): New target.
498 * elf/tst-array1-static.c: New file.
500 2005-02-11 Jakub Jelinek <jakub@redhat.com>
502 * debug/chk_fail.c (__chk_fail): Add a while (1) loop around
503 __libc_message to kill GCC warning about noreturn function returning.
505 * elf/rtld.c (dlmain): If LD_TRACE_PRELINKING, clear l_relocated flag
506 before relocating ld.so again.
508 * elf/rtld.c (_dl_start): Set bootstrap_map.l_relocated even
509 for already prelinked ld.so.
512 2005-02-11 Roland McGrath <roland@redhat.com>
515 * Makefile (installed-stubs): New variable.
516 Set to $(inst_includedir)/gnu/stubs.h if $(biarch) is no,
517 or to $(inst_includedir)/gnu/stubs-$(biarch).h if otherwise.
518 [$(biarch) != no] (install-others-nosubdir): Add $(installed-stubs).
519 ($(inst_includedir)/gnu/stubs.h): Use $(installed-stubs) for this
521 ($(inst_includedir)/gnu/stubs.h): New target, install from ...
522 * include/stubs-biarch.h: New file.
524 * shlib-versions (i.86-.*-.*): Add WORDSIZE64 line mapping to x86_64.
526 * Makeconfig ($(common-objpfx)soversions.mk): Depend on Makeconfig.
527 Emit defn for variable `biarch'.
529 * include/stub-tag.h: Update comment.
531 * scripts/soversions.awk: Fix default version set handling.
533 2005-02-09 Jakub Jelinek <jakub@redhat.com>
535 * sysdeps/unix/sysv/linux/bits/termios.h (CMSPAR): Define.
536 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Add __USE_MISC
537 and __USE_XOPEN guards to match linux/bits/termios.h.
539 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Add __USE_MISC
540 and __USE_XOPEN guards to match linux/bits/termios.h.
542 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Add __USE_MISC
543 and __USE_XOPEN guards to match linux/bits/termios.h.
545 2005-02-10 Roland McGrath <roland@redhat.com>
548 * include/libc-symbols.h (stub_warning): Emit a marker section called
549 .gnu.glibc-stub.NAME.
550 * Makerules ($(objpfx)stubs): Depend on object files, not dep files.
551 Use objdump to collect those marker section names.
552 ($(common-objpfx)shlib.lds): Discard .gnu.glibc-stub.* sections.
554 * Rules (subdir_objs, subdir_stubs): New phony targets.
555 * Makefile (+subdir_targets): Add them.
557 * Makerules ($(common-objpfx)Versions.all): Grok new leading column in
560 * scripts/lib-names.awk: Consider [0-9].* a "number", not just [0-9]+.
561 Reported by H.J. Lu <hongjiu.lu@intel.com>.
563 * scripts/lib-names.awk: Always print WORDSIZE32 section first when
566 2005-02-10 Jakub Jelinek <jakub@redhat.com>
568 * sysdeps/powerpc/powerpc32/bits/link.h: Removed.
569 * sysdeps/powerpc/powerpc64/bits/link.h: Moved to...
570 * sysdeps/powerpc/bits/link.h: ... here. New file.
572 2005-02-09 Jakub Jelinek <jakub@redhat.com>
575 * stdlib/random_r.c (__initstate_r): Save old state.
576 * stdlib/Makefile (tests): Add tst-random2.
577 * stdlib/tst-random2.c: New test.
578 Reported by Peter Bergner <bergner@vnet.ibm.com>.
580 2005-01-25 H.J. Lu <hongjiu.lu@intel.com>
582 * dlfcn/dlfcn.c (init): Put it in .init_array section.
584 2005-02-10 Roland McGrath <roland@redhat.com>
587 * scripts/soversions.awk: Expect cpu, vendor, os as separate variables
589 Grok shlib-versions lines with WORDSIZE* in second column.
590 Add new leading column to output, DEFAULT for existing output lines.
591 Also emit lines with WORDSIZE* for alternate configurations.
592 * Makeconfig ($(common-objpfx)soversions.i): Pass those variables.
593 ($(common-objpfx)soversions.mk): Grok new column, use only DEFAULT.
594 ($(common-objpfx)gnu/lib-names.stmp): Depend on soversions.i instead
595 of soversions.mk; replace inline shell script with use of ...
596 * scripts/lib-names.awk: New file. If input has non-DEFAULT lines,
597 emit multiple sets of macros under #if.
598 * shlib-versions (x86_64-.*-.*): Add WORDSIZE32 line mapping to i686.
599 (s390x-.*-.*): Likewise for s390.
600 (powerpc64-.*-.*): Likewise for powerpc.
601 (sparc64-.*-.*): Likewise for sparc.
602 (s390-.*-.*, powerpc.*-.*-.*, sparc.*-.*-.*): Add WORDSIZE64 entries
603 for these mapping back to the above.
605 2005-02-08 Jakub Jelinek <jakub@redhat.com>
607 * elf/dl-load.c (_dl_map_object_from_fd): Fix a typo.
609 2005-02-08 Andreas Schwab <schwab@suse.de>
611 * sysdeps/m68k/dl-machine.h (elf_machine_rela): Remove use of
614 2005-02-07 Richard Henderson <rth@redhat.com>
616 * iconvdata/jis0208.h (struct jisx0208_ucs_idx): Move before use.
618 2005-02-08 Kaz Kojima <kkojima@rr.iij4u.or.jp>
620 * sysdeps/sh/dl-machine.h (elf_machine_rela): Remove code using
623 2005-02-07 Ulrich Drepper <drepper@redhat.com>
625 * elf/dl-load.c (_dl_map_object_from_fd): Make sure registers are
628 2005-01-07 Richard Henderson <rth@redhat.com>
630 * math/math_private.h (__copysign): Define as builtin for gcc 4.
631 (__copysignf, __copysignl): Likewise.
632 * sysdeps/alpha/fpu/bits/mathinline.h (copysign): Don't define
634 (copysignf, copysignl, fabsf, fabs): Likewise.
635 (__copysign, __copysignf, __copysignl): Remove.
636 (__fabs, __fabsf): Remove.
638 2005-01-07 Jakub Jelinek <jakub@redhat.com>
641 * elf/dl-load.c (open_path): If rtld_search_dirs is in RELRO segment,
642 avoid writing to it if none of the standard search directories exist.
644 2005-02-07 Steven Munroe <sjmunroe@us.ibm.com>
647 * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S
648 (__novec_setcontext, __setcontext): Fix typo so CCR is restored.
649 Load MSR as a doubleword.
650 * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S
651 (__novec_swapcontext, __swapcontext): Likewise.
653 2005-02-07 Ulrich Drepper <drepper@redhat.com>
655 * iconv/iconv_prog.c (main): Provide more help in case on an error.
657 * sysdeps/unix/sysv/linux/i386/sysdep.h (check_consistency): Define.
659 2005-02-07 Jakub Jelinek <jakub@redhat.com>
662 * nscd/nscd.c (termination_handler): Avoid segfault if some database
666 * nscd/nscd_getai.c (__nscd_getai): If ai_resp->found == -1, set
667 __nss_not_use_nscd_hosts and return -1.
668 * nscd/nscd_initgroups.c (__nscd_getgrouplist): If
669 initgr_resp->found == -1, set __nss_not_use_nscd_group and return -1.
670 Avoid leaking sockets.
672 2005-01-28 Andreas Schwab <schwab@suse.de>
673 H.J. Lu <hongjiu.lu@intel.com>
676 * elf/dl-runtime.c (fixup): Change return type to
677 DL_FIXUP_VALUE_TYPE. Use DL_FIXUP_VALUE_TYPE,
678 DL_FIXUP_MAKE_VALUE and DL_FIXUP_VALUE_CODE_ADDR for relocation
679 values. Use DL_FIXUP_VALUE_ADDR and DL_FIXUP_ADDR_VALUE to
680 store and retrieve relocation values.
681 (profile_fixup): Likewise.
682 * include/link.h (link_map): Use DL_FIXUP_VALUE_TYPE for
684 * sysdeps/generic/dl-fptr.h (link_map): Forward declaration.
685 * sysdeps/generic/dl-lookupcfg.h (DL_FIXUP_VALUE_TYPE): New.
686 (DL_FIXUP_MAKE_VALUE): Likewise.
687 (DL_FIXUP_VALUE_CODE_ADDR): Likewise.
688 (DL_FIXUP_VALUE_ADDR): Likewise.
689 (DL_FIXUP_ADDR_VALUE): Likewise.
690 * sysdeps/ia64/dl-lookupcfg.h: Include <dl-fptr.h> for "struct fdesc".
691 (DL_FIXUP_VALUE_TYPE): New.
692 (DL_FIXUP_MAKE_VALUE): Likewise.
693 (DL_FIXUP_VALUE_CODE_ADDR): Likewise.
694 (DL_FIXUP_VALUE_ADDR): Likewise.
695 (DL_FIXUP_ADDR_VALUE): Likewise.
696 * sysdeps/ia64/dl-machine.h (elf_machine_profile_fixup_plt): Removed.
697 (elf_machine_profile_plt): Removed.
698 (elf_machine_fixup_plt): Change return type and type of value
699 parameter to struct fdesc.
700 (elf_machine_plt_value): Likewise.
701 (elf_machine_rela): Use DL_FIXUP_MAKE_VALUE to construct
702 argument for elf_machine_fixup_plt.
704 2005-02-07 Jakub Jelinek <jakub@redhat.com>
707 * nscd/nscd.init (reload): Print Reloading nscd: before and a newline
708 after the status string printed by killproc.
710 2004-11-18 Alexandre Oliva <aoliva@redhat.com>
712 * manual/.cvsignore: Add dir-add.texi.
714 2005-02-06 Richard Henderson <rth@redhat.com>
716 * sysdeps/alpha/dl-machine.h (elf_machine_rela): Use RESOLVE_MAP
719 2004-11-03 Marcus Brinkmann <marcus@gnu.org>
721 * configure.in (sysnames): Append sysdeps/generic for each add-on.
722 * configure: Regenerated.
724 2005-02-02 Alfred M. Szmidt <ams@gnu.org>
726 * sysdeps/mach/hurd/tls.h: Include <stdbool.h>
727 (dtv_t): Change pointer type to be a struct which also contains
728 information whether the memory pointed to is static TLS or not.
730 * sysdeps/generic/syslog.c (send_flags) [!send_flags]: Define it.
732 * shadow/sgetspent_r.c (FALSE): Macro renamed to ...
733 (FALSEP): ... this. Updated all references.
736 * libio/fmemopen.c: Include <stdint.h>.
738 2005-01-30 Ulrich Drepper <drepper@redhat.com>
740 * nscd/nscd_helper.c (get_mapping): Use MSG_NOSIGNAL if available.
741 * nscd/connections.c (send_ro_fd): Likewise.
743 2005-01-28 H.J. Lu <hongjiu.lu@intel.com>
745 * elf/tst-auditmod1.c: Add ia64 entries.
746 * sysdeps/generic/ldsodefs.h (La_ia64_regs): New.
747 (La_ia64_retval): New.
748 (audit_ifaces): Add ia64 entries.
749 * sysdeps/ia64/bits/link.h: New file.
750 * sysdeps/ia64/dl-machine.h (elf_machine_runtime_setup): Test
751 for dl_profile non-null.
752 (ARCH_LA_PLTENTER): New.
753 (ARCH_LA_PLTEXIT): New.
754 * sysdeps/ia64/dl-trampoline.S (_dl_runtime_resolve): Allocate
755 only 2 output registers. Allocate stack to save/restore
756 8 incoming fp registers. Call _dl_fixup instead of fixup.
757 (_dl_runtime_profile): Rewrite.
759 2005-01-28 Martin Schwidefsky <schwidefsky@de.ibm.com>
761 * sysdeps/s390/bits/link.h: New file.
762 * sysdeps/s390/s390-32/dl-trampoline.S: New file.
763 * sysdeps/s390/s390-64/dl-trampoline.S: New file.
764 * sysdeps/s390/s390-32/dl-machine.h: Move PLT trampolines to
765 dl-trampoline.S. Use RESOLVE_MAP instead of RESOLVE to protect
767 (elf_machine_runtime_setup): Test for dl_profile non-null.
768 (elf_machine_rela): Remove code using RESOLVE.
769 (ARCH_LA_PLTENTER, ARCH_LA_PLTEXIT): New.
770 * sysdeps/s390/s390-64/dl-machine.h: Likewise.
771 * sysdeps/generic/ldsodefs.h (La_s390_32_regs, La_s390_32_retval,
772 La_s390_64_regs, La_s390_64_retval): New.
773 * elf/tst-auditmod1.c: Add s390 entries.
776 * sysdeps/s390/bits/string.h (strlen, strncpy, strcat, strncat,
777 strncat, memchr, strcmp): Add missing memory clobber.
779 2005-01-27 Ulrich Drepper <drepper@redhat.com>
781 * sysdeps/unix/sysv/linux/alpha/oldglob.c (__old_globfree): Also
782 copy gl_offs. Patch by Sergey Tikhonov <tsv@solvo.ru>.
784 2005-01-27 Paolo Bonzini <bonzini@gnu.org>
787 * posix/regcomp.c (calc_inveclosure): Return reg_errcode_t.
788 Initialize the node sets in dfa->inveclosures.
789 (analyze): Initialize inveclosures only if it is needed.
790 Check errors from calc_inveclosure.
791 * posix/regex_internal.c (re_dfa_add_node): Do not initialize
792 the inveclosure node set.
793 * posix/regexec.c (re_search_internal): If nmatch includes unused
794 subexpressions, reset them to { rm_so: -1, rm_eo: -1 } here.
796 * posix/regcomp.c (parse_bracket_exp) [!RE_ENABLE_I18N]:
797 Do build a SIMPLE_BRACKET token.
799 * posix/regexec.c (transit_state_mb): Do not examine nodes
800 where ACCEPT_MB is not set.
802 2005-01-27 Jakub Jelinek <jakub@redhat.com>
804 * stdlib/tst-fmtmsg.c: Include stdlib.h.
805 * stdio-common/tst-fmemopen2.c: Include string.h.
806 * posix/execvp.c: Include stdbool.h.
808 2004-12-13 Paolo Bonzini <bonzini@gnu.org>
810 Separate parsing and creation of the NFA. Avoided recursion on
811 the (very unbalanced) parse tree.
813 * posix/regcomp.c (struct subexp_optimize, analyze_tree, calc_epsdest,
814 re_dfa_add_tree_node, mark_opt_subexp_iter): Removed.
815 (optimize_subexps, duplicate_tree, calc_first, calc_next,
816 mark_opt_subexp): Rewritten.
817 (preorder, postorder, lower_subexps, lower_subexp, link_nfa_nodes,
818 create_token_tree, free_tree, free_token): New.
819 (analyze): Accept a regex_t *. Invoke the passes via the preorder and
820 postorder generic visitors. Do not initialize the fields in the
821 re_dfa_t that represent the transitions.
822 (free_dfa_content): Use free_token.
823 (re_compile_internal): Analyze before UTF-8 optimizations. Do not
824 include optimization of subexpressions.
825 (create_initial_state): Fetch the DFA node index from the first node's
827 (optimize_utf8): Abort on unexpected nodes, including OP_DUP_QUESTION.
828 Return on COMPLEX_BRACKET.
829 (duplicate_node_closure): Fix comment.
830 (duplicate_node): Do not initialize the fields in the
831 re_dfa_t that represent the transitions.
832 (calc_eclosure, calc_inveclosure): Do not handle OP_DELETED_SUBEXP.
833 (create_tree): Remove final argument. All callers adjusted. Rewritten
834 to use create_token_tree.
835 (parse_reg_exp, parse_branch, parse_expression, parse_bracket_exp,
836 build_charclass_op): Use create_tree or create_token_tree instead
837 of re_dfa_add_tree_node.
838 (parse_dup_op): Likewise. Also free the tree using free_tree for
839 "<re>{0}", and lower OP_DUP_QUESTION to OP_ALT: "a?" is equivalent
840 to "a|". Adjust invocation of mark_opt_subexp.
841 (parse_sub_exp): Create a single SUBEXP node.
842 * posix/regex_internal.c (re_dfa_add_node): Remove last parameter,
843 always perform as if it was 1. Do not initialize OPT_SUBEXP and
844 DUPLICATED, and initialize the DFA fields representing the transitions.
845 * posix/regex_internal.h (re_dfa_add_node): Adjust prototype.
846 (re_token_type_t): Move OP_DUP_PLUS and OP_DUP_QUESTION to the tokens
847 section. Add a tree-only code SUBEXP. Remove OP_DELETED_SUBEXP.
848 (bin_tree_t): Include a full re_token_t for TOKEN. Turn FIRST and
849 NEXT into pointers to trees. Remove ECLOSURE.
851 2004-12-28 Paolo Bonzini <bonzini@gnu.org >
854 * posix/regcomp.c (parse_bracket_exp): Do not modify DFA nodes
855 that were already created.
856 * posix/regex_internal.c (re_dfa_add_node): Set accept_mb field
857 in the token if needed.
858 (create_ci_newstate, create_cd_newstate): Set accept_mb field
859 from the tokens' field.
860 * posix/regex_internal.h (re_token_t): Add accept_mb field.
861 (ACCEPT_MB_NODE): Removed.
862 * posix/regexec.c (proceed_next_node, transit_states_mb,
863 build_sifted_states, check_arrival_add_next_nodes): Use
864 accept_mb instead of ACCEPT_MB_NODE.
866 2005-01-26 Ulrich Drepper <drepper@redhat.com>
868 * debug/chk_fail.c (__chk_fail): Print program name in final message.
870 * sysdeps/unix/sysv/linux/kernel-features.h: Found reference to
871 MSG_NOSIGNAL being in 2.2 kernels.
873 2005-01-26 Jakub Jelinek <jakub@redhat.com>
875 * sysdeps/unix/sysv/linux/i386/sysdep.h
876 (SYSCALL_ERROR_HANDLER_TLS_STORE): Remove unnecessary 0 imm.
879 * posix/regex_internal.h (DUMMY_CONSTRAINT): Rename to...
880 (WORD_DELIM_CONSTRAINT): ...this.
881 (NOT_WORD_DELIM_CONSTRAINT): Define.
882 (re_context_type): Add INSIDE_NOTWORD and NOT_WORD_DELIM,
883 change WORD_DELIM to use WORD_DELIM_CONSTRAINT.
884 * posix/regcomp.c (peek_token): For \B create NOT_WORD_DELIM
885 anchor instead of INSIDE_WORD.
886 (parse_expression): Handle NOT_WORD_DELIM constraint.
887 * posix/bug-regex19.c (tests): Adjust tests that relied on \B
888 being inside word instead of not word delim.
889 * posix/tst-rxspencer.c (mb_frob_pattern): Don't frob escaped
891 * posix/rxspencer/tests: Add some new tests.
893 2005-01-14 GOTO Masanori <gotom@debian.or.jp>
895 * sunrpc/rpc_main.c (s_output): Generate #include <rpc/pmap_clnt.h>
896 irrespective of Cflag.
898 * manual/memory.texi (sbrk): Fix definition.
899 * manual/string.texi (strcasestr): Fix example typo.
901 2005-01-25 Roland McGrath <roland@redhat.com>
903 * sysdeps/generic/syslog.c [NO_SIGPIPE]: Protect sigpipe_handler decl.
905 2005-01-23 Roland McGrath <roland@redhat.com>
908 * sysdeps/i386/Makefile (defines): If -mno-tls-direct-seg-refs appears
909 in $(CFLAGS), add -DNO_TLS_DIRECT_SEG_REFS.
910 * sysdeps/unix/sysv/linux/i386/sysdep.h [USE___THREAD]
911 (SYSCALL_ERROR_HANDLER) [NO_TLS_DIRECT_SEG_REFS]: Load thread pointer
912 from %gs:0 and add to that value, rather that direct %gs:OFFSET access.
913 * sysdeps/unix/i386/sysdep.S [NO_TLS_DIRECT_SEG_REFS]: Likewise.
915 2005-01-25 Jakub Jelinek <jakub@redhat.com>
918 * stdlib/fmtmsg.c (addseverity): Remove new_string variable.
919 (free_mem): Don't free string.
920 * stdlib/tst-fmtmsg.c: Include string.h.
921 (main): Add some more tests.
923 2005-01-25 Andreas Schwab <schwab@suse.de>
926 * timezone/asia: Update from tzdata2005c.
927 * timezone/backward: Likewise.
928 * timezone/europe: Likewise.
929 * timezone/leapseconds: Likewise.
930 * timezone/northamerica: Likewise.
931 * timezone/southamerica: Likewise.
934 * timezone/private.h: Update from tzcode2005c.
935 * timezone/tzfile.h: Likewise.
936 * timezone/zdump.c: Likewise.
937 * timezone/zic.c: Likewise.
939 2005-01-25 Ulrich Drepper <drepper@redhat.com>
941 * sysdeps/i386/dl-machine.h (elf_machine_rel): Remove code using
943 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Remove code
945 * elf/rtld.c (_dl_start): Remove RESOLVE definition.
947 2005-01-25 Alan Modra <amodra@bigpond.net.au>
949 * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela): Test
950 sym_map, not sym, against zero.
952 2005-01-24 Ulrich Drepper <drepper@redhat.com>
955 * misc/syslog.c: Moved to...
956 * sysdeps/generic/syslog.c: ...here.
957 [NO_SIGIPE]: Don't install SIGPIPE handler.
958 * sysdeps/unix/sysv/linux/syslog.c: New file.
959 * sysdeps/unix/sysv/linux/kernel-features.h: Define
960 __ASSUME_MSG_NOSIGNAL.
962 2005-01-22 Richard Henderson <rth@redhat.com>
964 * sysdeps/alpha/dl-trampoline.S: New file.
965 * sysdeps/alpha/dl-machine.h: Move PLT trampolines there.
966 Use RESOLVE_MAP instead of RESOLVE to protect relocation code.
967 (elf_machine_runtime_setup): Test for dl_profile non-null.
968 (ARCH_LA_PLTENTER, ARCH_LA_PLTEXIT): New.
969 * sysdeps/alpha/bits/link.h: New file.
970 * sysdeps/generic/ldsodefs.h (La_alpha_regs, La_alpha_retval): New.
971 (struct audit_ifaces): Add alpha entries.
972 * elf/tst-auditmod1.c: Add alpha entries.
974 2005-01-22 Ulrich Drepper <drepper@redhat.com>
976 * sysdeps/ia64/dl-machine.h: Remove PLT trampolines here.
977 * sysdeps/ia64/dl-trampoline.S: New file.
979 * sysdeps/x86_64/bits/link.h: Use namespace-safe identifiers in
980 La_x86_64_xmm definition.
982 * posix/Makefile: Use CFLAGS-*.os instead of CFLAGS-*.c for frame
984 * stdlib/Makefile (CFLAGS-system.os): Use this instead of
985 CFLAGS-system.c for frame pointer option.
987 2005-01-21 Roland McGrath <roland@redhat.com>
989 * elf/dl-runtime.c (_dl_profile_fixup): Remove const from REGS.
990 * sysdeps/i386/dl-machine.h: Update decl.
992 2005-01-21 Jakub Jelinek <jakub@redhat.com>
995 * elf/Makefile: Add rules to build and run tst-align2.
996 * elf/tst-align2.c: New test.
997 * elf/tst-alignmod2.c: New file.
998 * sysdeps/powerpc/tst-stack-align.h: New file.
999 * sysdeps/i386/dl-machine.h (RTLD_START): Align stack and clear frame
1000 pointer before calling _dl_init.
1001 * sysdeps/x86_64/dl-machine.h (RTLD_START): Likewise.
1003 2005-01-20 Ulrich Drepper <drepper@redhat.com>
1005 * posix/execl.c: Do not allocate potentially large buffers on the
1007 * posix/execle.c: Likewise.
1008 * posix/execlp.c: Likewise.
1009 * posix/execvp.c: Likewise.
1010 (script_execute): Removed.
1011 (allocate_scripts_argv): New function. Called at most once to
1012 allocate memory, not every time a script is run. Adjust caller.
1014 * sysdeps/generic/wordexp.c (exec_comm): Add a few
1015 TEMP_FAILURE_RETRY. Reorganize code to avoid multiple calls to
1017 (exec_comm_child): Can now be inlined.
1019 * posix/Makefile: Add -fomit-frame-pointer for a few more files.
1020 * stdlib/Makefile: Likewise.
1022 2005-01-19 Roland McGrath <roland@redhat.com>
1025 * sunrpc/openchild.c (_openchild): Use NULL instead of 0 for trailing
1027 Reported by Marcus Meissner <meissner@suse.de>.
1029 2005-01-19 Jakub Jelinek <jakub@redhat.com>
1031 * hurd/sigunwind.c (_hurdsig_longjmp_from_handler): Fix a typo
1033 * iconv/strtab.c (strtabfinalize): Likewise.
1035 * libio/iofopncook.c (_IO_cookie_seekoff): Add prototype.
1037 2005-01-17 Roland McGrath <roland@redhat.com>
1040 * nscd/Makefile (LDLIBS-nscd): New variable.
1041 ($(objpfx)nscd): Use that instead of selinux-LIBS.
1043 * Makeconfig (link-extra-libs): Define just as $(LDLIBS-$(@F)).
1044 (link-extra-libs-static): Define to $(link-extra-libs).
1045 (link-extra-libs-bounded): Likewise.
1047 2005-01-17 Ulrich Drepper <drepper@redhat.com>
1049 * include/link.h: Remove stray definition of pltenter.
1051 2005-01-16 GOTO Masanori <gotom@debian.or.jp>
1054 * sysdeps/unix/rewinddir.c: Reset filepos.
1055 * dirent/tst-seekdir.c: Check telldir value after calling rewinddir.
1057 2005-01-15 Ulrich Drepper <drepper@redhat.com>
1059 * elf/tst-auditmod1.c: Reduce duplication.
1061 2005-01-16 Andreas Schwab <schwab@suse.de>
1063 * sysdeps/m68k/dl-machine.h: Remove trampoline code. Define
1064 ARCH_LA_PLTENTER and ARCH_LA_PLTEXIT.
1065 (elf_machine_runtime_setup): If profile != 0 does not anymore mean
1066 GLRO(dl_profile) != NULL.
1067 * sysdeps/m68k/dl-trampoline.S: New file.
1068 * sysdeps/m68k/bits/link.h: New file.
1069 * sysdeps/generic/ldsodefs.h (struct audit_ifaces): Add m68k
1071 * elf/tst-auditmod1.c: Add m68k support.
1073 2005-01-14 Ulrich Drepper <drepper@redhat.com>
1075 * posix/regcomp.c [!_LIBC] (init_dfa): Fix determining of relevant
1076 LC_* variable. Patch by Aharon Robbins <arnold@skeeve.com>.
1079 * stdlib/fmtmsg.c (internal_addseverity): Remove incorrect free call.
1080 * stdlib/tst-fmtmsg.c (main): Add another addseverity test.
1082 2005-01-12 Ulrich Drepper <drepper@redhat.com>
1084 * elf/dl-load.c (_dl_map_object_from_fd): We don't have to allow
1085 callers from libc anymore.
1087 * elf/dl-open.c (dl_open_worker): Pass __RTLD_AUDIT flag from caller
1088 to _dl_map_object_deps.
1089 * elf/dl-load.c (_dl_map_object_from_fd): Don't change memory
1090 protections when loading auditing modules.
1092 * dlfcn/dlopen.c (dlopen_doit): Catch invalid mode arguments and fail.
1094 * posix/getconf.c: Update copyright year.
1095 * nss/getent.c: Likewise.
1096 * nscd/nscd_nischeck.c: Likewise.
1097 * iconv/iconvconfig.c: Likewise.
1098 * iconv/iconv_prog.c: Likewise.
1099 * elf/ldconfig.c: Likewise.
1100 * catgets/gencat.c: Likewise.
1101 * csu/version.c: Likewise.
1102 * elf/ldd.bash.in: Likewise.
1103 * elf/sprof.c (print_version): Likewise.
1104 * locale/programs/locale.c: Likewise.
1105 * locale/programs/localedef.c: Likewise.
1106 * nscd/nscd.c (print_version): Likewise.
1107 * debug/xtrace.sh: Likewise.
1108 * malloc/memusage.sh: Likewise.
1109 * malloc/mtrace.pl: Likewise.
1110 * debug/catchsegv.sh: Likewise.
1112 2005-01-11 Thorsten Kukuk <kukuk@suse.de>
1115 * sunrpc/svc_tcp.c (svctcp_create): Call listen with SOMAXCONN
1117 * sunrpc/svc_unix.c (svcunix_create): Likewise.
1119 * grp/putgrent.c (putgrent): Don't write 0 as group
1120 ID if groupname starts with + or -.
1121 * pwd/putpwent.c (putpwent): Don't write 0 as user or
1122 group ID if user name starts with + or -.
1124 2005-01-09 Kaz Kojima <kkojima@rr.iij4u.or.jp>
1126 * sysdeps/generic/ldsodefs.h (struct audit_ifaces): Add sh variants.
1127 * sysdeps/elf/tst-auditmod1.c: Add sh support.
1128 * sysdeps/sh/bits/link.h: New.
1129 * sysdeps/sh/dl-machine.h: Remove trampoline code here. Define
1130 ARCH_LA_PLTENTER and ARCH_LA_PLTEXIT. Remove obsolete comments.
1131 (RTLD_START): Define __fpscr_values.
1132 * sysdeps/sh/dl-trampoline.S: New file.
1133 * sysdeps/sh/sh4/dl-trampoline.S: New file.
1134 * sysdeps/sh/sh4/Versions [ld]: Add __fpscr_values.
1135 * sysdeps/sh/sh4/dl-machine.h: Remove.
1137 2005-01-10 Jakub Jelinek <jakub@redhat.com>
1140 * time/tst-strptime.c (day_tests): Add 2 new tests.
1141 (test_tm, main): Issue an error instead of segfaulting if
1142 strptime returns NULL.
1144 2005-01-10 H.J. Lu <hongjiu.lu@intel.com>
1146 * sysdeps/alpha/libc-tls.c (__tls_get_addr): Updated for dtv_t union.
1147 * sysdeps/ia64/libc-tls.c (__tls_get_addr): Likewise.
1149 2005-01-11 Ulrich Drepper <drepper@redhat.com>
1151 * malloc/malloc.h: Remove no-glibc support.
1153 2005-01-12 GOTO Masanori <gotom@debian.or.jp>
1156 * malloc/malloc.h: Always include features.h.
1158 2005-01-10 Roland McGrath <roland@redhat.com>
1160 * sysdeps/ia64/fpu/e_logl.c: File removed.
1162 * dlfcn/dlfcn.c (init): Fix typo in attribute decl.
1164 2005-01-10 Ulrich Drepper <drepper@redhat.com>
1166 * sysdeps/generic/dl-tls.c (_dl_next_tls_modid): Fix assertion and
1167 recognition of last entry.
1169 2005-01-09 Ulrich Drepper <drepper@redhat.com>
1171 * elf/dl-runtime.c: Include <sys/param.h>.
1173 * elf/Makefile (headers): Add bits/link.h.
1175 2005-01-09 Andreas Schwab <schwab@suse.de>
1177 * elf/rtld.c (dl_main): Create main_map with __RTLD_OPENEXEC.
1179 2005-01-09 Andreas Jaeger <aj@suse.de>
1182 * time/strptime_l.c (__strptime_internal): Add braces to avoid
1185 * sysdeps/x86_64/bits/link.h: Use vector_size for GCC 4.0.
1187 * elf/rtld.c (dl_main): Call _dl_add_to_slotinfo only if USE_TLS.
1189 2005-01-08 Jakub Jelinek <jakub@redhat.com>
1191 * elf/Makefile (generated): Add tst-pie1{,.out,.o}.
1193 2005-01-09 Ulrich Drepper <drepper@redhat.com>
1195 * elf/dl-fini.c (_dl_fini): Call destructors of audit DSOs after
1196 those of all the regular objects.
1198 * elf/dl-debug.c (_dl_debug_initialize): Take extra parameter and
1199 use it to select the r_debug structure for that namespace.
1200 * elf/dl-close.c (_dl_close): Adjust call to _dl_debug_initialize.
1201 * elf/dl-load.c (_dl_map_object_from_fd): Likewise.
1202 * elf/dl-open.c (_dl_open): Likewise.
1203 * elf/rtld.c (dl_main): Likewise.
1204 * sysdeps/generic/ldsodefs.h (struct link_namespaces): Add _ns_debug
1206 (_dl_debug_initialize): Add new parameter in declaration.
1208 * elf/dl-close.c (_dl_close): Make sure auditing callbacks are not
1209 called for the auditing objects themselves.
1210 * elf/dl-load.c (_dl_map_object_from_fd): Likewise.
1212 2005-01-07 Ulrich Drepper <drepper@redhat.com>
1214 * sysdeps/powerpc/powerpc64/dl-machine.h
1215 (elf_machine_runtime_setup): If profile != 0 does not anymore mean
1216 GLRO(dl_profile) != NULL.
1217 * sysdeps/powerpc/powerpc64/bits/link.h (struct la_ppc64_regs): Add
1219 * sysdeps/powerpc/powerpc64/dl-trampoline.S: (_dl_profile_resolve):
1220 Extend _dl_prof_resolve to add pass extra parameters to
1221 _dl_profile_fixup and set up structure with register content.
1223 * sysdeps/powerpc/powerpc32/dl-machine.c (__elf_machine_runtime_setup):
1224 If profile != 0 does not anymore mean GLRO(dl_profile) != NULL.
1225 * sysdeps/powerpc/powerpc32/dl-trampoline.S (_dl_prof_resolve):
1226 Extend _dl_prof_resolve to add pass extra parameters to
1227 _dl_profile_fixup and set up structure with register content.
1228 * sysdeps/powerpc/powerpc32/bits/link.h: Fix types of some fields in
1229 the register and result structures.
1230 * sysdeps/powerpc/powerpc64/bits/link.h: Fix types of some fields
1231 in the 32-bit register and result structures.
1233 * sysdeps/powerpc/powerpc64/dl-trampoline.S: Use register names.
1235 * sysdeps/powerpc/powerpc32/dl-trampoline.S: New file.
1236 * sysdeps/powerpc/powerpc32/dl-machine.h: Remove trampoline code here.
1237 Define ARCH_LA_PLTENTER and ARCH_LA_PLTEXIT.
1238 * sysdeps/generic/ldsodefs.h (struct audit_ifaces): Add ppc32 variants.
1239 * elf/tst-auditmod1.c: Add ppc32 support.
1240 * sysdeps/powerpc/powerpc32/bits/link.h: New file.
1241 * sysdeps/powerpc/powerpc64/bits/link.h: Add ppc32 definitions.
1243 * malloc/malloc.c (malloc_printerr): Print program name as part of
1246 * misc/sys/cdefs.h (__attribute_warn_unused_result__): Define.
1247 * stdlib/stdlib.h: Make realloc with
1248 __attribute_warn_unused_result__ instead of __wur.
1249 * malloc/malloc.h: Add __wur and __attribute_warn_unused_result__
1250 markers as in <stdlib.h>.
1252 * libio/stdio.h: Remove __wur from rename and remove.
1253 * posix/unistd.h: Remove __wur from dup2.
1255 2005-01-03 Andreas Jaeger <aj@suse.de>
1257 * elf/Makefile (tests): Revert patch from 2005-01-03.
1259 2005-01-07 Ulrich Drepper <drepper@redhat.com>
1261 * sysdeps/unix/sysv/linux/init-first.c (__libc_init_first): Don't
1262 make __libc_init_first hidden.
1264 * elf/rtld.c [!DONT_USE_BOOTSTRAP_MAP] (_dl_start_final): Initialize
1265 l_relocated of rtld map.
1266 * sysdeps/powerpc/powerpc64/dl-trampoline.S: New file.
1267 * sysdeps/powerpc/powerpc64/dl-machine.h: Remove trampoline code here.
1268 Define ARCH_LA_PLTENTER and ARCH_LA_PLTEXIT.
1269 * sysdeps/generic/ldsodefs.h (struct audit_ifaces): Add ppc64 variants.
1270 * elf/tst-auditmod1.c: Add ppc64 support.
1271 * sysdeps/powerpc/powerpc64/bits/link.h: New file.
1273 2005-01-06 Roland McGrath <roland@redhat.com>
1276 * sysdeps/unix/sysv/linux/futimes.c (__futimes): Catch errno values
1277 indicating file-name lookup errors, and return ENOSYS or EBADF instead.
1279 2005-01-06 Ulrich Drepper <drepper@redhat.com>
1281 * csu/elf-init.c (__libc_csu_fini): Don't do anything here.
1282 * sysdeps/generic/libc-start.c: Don't register program destructor here.
1284 * dlfcn/Makefile: Add rules to build dlfcn.c.
1285 (LDFLAGS-dl.so): Removed.
1286 * dlfcn/dlclose.c: _dl_close is now in ld.so, use function pointer
1288 * dlfcn/dlmopen.c: Likewise for _dl_open.
1289 * dlfcn/dlopen.c: Likewise.
1290 * dlfcn/dlopenold.c: Likewise.
1291 * elf/dl-libc.c: Likewise for _dl_open and _dl_close.
1292 * elf/Makefile (routines): Remove dl-open and dl-close.
1293 (dl-routines): Add dl-open, dl-close, and dl-trampoline.
1294 Add rules to build and run tst-audit1.
1295 * elf/tst-audit1.c: New file.
1296 * elf/tst-auditmod1.c: New file.
1297 * elf/Versions [libc]: Remove _dl_open and _dl_close.
1298 * elf/dl-close.c: Change for use inside ld.so instead of libc.so.
1299 * elf/dl-open.c: Likewise.
1300 * elf/dl-debug.c (_dl_debug_initialize): Allow reinitialization,
1301 signaled by nonzero parameter.
1302 * elf/dl-init.c: Fix use of r_state.
1303 * elf/dl-load.c: Likewise.
1305 * elf/dl-close.c: Add auditing checkpoints.
1306 * elf/dl-open.c: Likewise.
1307 * elf/dl-fini.c: Likewise.
1308 * elf/dl-load.c: Likewise.
1309 * elf/dl-sym.c: Likewise.
1310 * sysdeps/generic/libc-start.c: Likewise.
1311 * elf/dl-object.c: Allocate memory for auditing information.
1312 * elf/dl-reloc.c: Remove RESOLV. We now always need the map.
1313 Correctly initialize slotinfo.
1314 * elf/dynamic-link.h: Adjust after removal of RESOLV.
1315 * sysdeps/hppa/dl-lookupcfg.h: Likewise.
1316 * sysdeps/ia64/dl-lookupcfg.h: Likewise.
1317 * sysdeps/powerpc/powerpc64/dl-lookupcfg.h: Removed.
1318 * elf/dl-runtime.c (_dl_fixup): Little cleanup.
1319 (_dl_profile_fixup): New parameters to point to register struct and
1320 variable for frame size.
1321 Add auditing checkpoints.
1322 (_dl_call_pltexit): New function.
1323 Don't define trampoline code here.
1324 * elf/rtld.c: Recognize LD_AUDIT. Load modules on startup.
1325 Remove all the functions from _rtld_global_ro which only _dl_open
1326 and _dl_close needed.
1327 Add auditing checkpoints.
1328 * elf/link.h: Define symbols for auditing interfaces.
1329 * include/link.h: Likewise.
1330 * include/dlfcn.h: Define __RTLD_AUDIT.
1331 Remove prototypes for _dl_open and _dl_close.
1332 Adjust access to argc and argv in libdl.
1333 * dlfcn/dlfcn.c: New file.
1334 * sysdeps/generic/dl-lookupcfg.h: Remove all content now that RESOLVE
1336 * sysdeps/generic/ldsodefs.h: Add definitions for auditing interfaces.
1337 * sysdeps/generic/unsecvars.h: Add LD_AUDIT.
1338 * sysdeps/i386/dl-machine.h: Remove trampoline code here.
1339 Adjust for removal of RESOLVE.
1340 * sysdeps/x86_64/dl-machine.h: Likewise.
1341 * sysdeps/generic/dl-trampoline.c: New file.
1342 * sysdeps/i386/dl-trampoline.c: New file.
1343 * sysdeps/x86_64/dl-trampoline.c: New file.
1345 * sysdeps/generic/dl-tls.c: Cleanups. Fixup for dtv_t change.
1346 Fix updating of DTV.
1347 * sysdeps/generic/libc-tls.c: Likewise.
1349 * sysdeps/arm/bits/link.h: Renamed to ...
1350 * sysdeps/arm/bits/linkmap.h: ...this.
1351 * sysdeps/generic/bits/link.h: Renamed to...
1352 * sysdeps/generic/bits/linkmap.h: ...this.
1353 * sysdeps/hppa/bits/link.h: Renamed to...
1354 * sysdeps/hppa/bits/linkmap.h: ...this.
1355 * sysdeps/i386/bits/link.h: Renamed to...
1356 * sysdeps/i386/bits/linkmap.h: ...this.
1357 * sysdeps/ia64/bits/link.h: Renamed to...
1358 * sysdeps/ia64/bits/linkmap.h: ...this.
1359 * sysdeps/s390/bits/link.h: Renamed to...
1360 * sysdeps/s390/bits/linkmap.h: ...this.
1361 * sysdeps/sh/bits/link.h: Renamed to...
1362 * sysdeps/sh/bits/linkmap.h: ...this.
1363 * sysdeps/x86_64/bits/link.h: Renamed to...
1364 * sysdeps/x86_64/bits/linkmap.h: ...this.
1366 * posix/unistd.h: Declare ftruncate for POSIX 2003. [BZ #640]
1368 2004-12-22 Steven Munroe <sjmunroe@us.ibm.com>
1371 * math/libm-test.inc (rint_test_tonearest): New test.
1372 (rint_test_towardzero): New test.
1373 (rint_test_downward): New test.
1374 (rint_test_upward): New test.
1375 * sysdeps/powerpc/powerpc32/fpu/s_ceil.S: Fix -0.0 case.
1376 Remove redundant const values.
1377 * sysdeps/powerpc/powerpc32/fpu/s_ceilf.S: Fix -0.0 case.
1378 Remove redundant const values. Use float const.
1379 * sysdeps/powerpc/powerpc32/fpu/s_floor.S: Fix -0.0 case.
1380 * sysdeps/powerpc/powerpc32/fpu/s_floorf.S: Fix -0.0 case.
1382 * sysdeps/powerpc/powerpc32/fpu/s_rint.S: Fix -0.0 case.
1383 * sysdeps/powerpc/powerpc32/fpu/s_rintf.S: Fix -0.0 case.
1385 * sysdeps/powerpc/powerpc32/fpu/s_round.S: Fix -0.0 case.
1386 Remove redundant const values.
1387 * sysdeps/powerpc/powerpc32/fpu/s_roundf.S: Fix -0.0 case.
1388 Remove redundant const values. Use float const.
1389 * sysdeps/powerpc/powerpc32/fpu/s_trunc.S: Fix -0.0 case.
1390 Remove redundant const values.
1391 * sysdeps/powerpc/powerpc32/fpu/s_truncf.S: Fix -0.0 case.
1392 Remove redundant const values. Use float const.
1393 * sysdeps/powerpc/powerpc64/fpu/s_ceil.S: Use EALIGN for Quadword
1394 alignment. Fix -0.0 case. Remove redundant const values.
1395 * sysdeps/powerpc/powerpc64/fpu/s_ceilf.S: Use EALIGN for Quadword
1396 alignment. Fix -0.0 case. Remove redundant const values.
1398 * sysdeps/powerpc/powerpc64/fpu/s_floor.S: Use EALIGN for Quadword
1399 alignment. Fix -0.0 case.
1400 * sysdeps/powerpc/powerpc64/fpu/s_floorf.S: Use EALIGN for Quadword
1401 alignment. Fix -0.0 case. Use float const.
1402 * sysdeps/powerpc/powerpc64/fpu/s_rint.S: Use EALIGN for Quadword
1403 alignment. Fix -0.0 case.
1404 * sysdeps/powerpc/powerpc64/fpu/s_rintf.S: Use EALIGN for Quadword
1405 alignment. Fix -0.0 case. Use float const.
1406 * sysdeps/powerpc/powerpc64/fpu/s_round.S: Use EALIGN for Quadword
1407 alignment. Fix -0.0 case. Remove redundant const values.
1408 * sysdeps/powerpc/powerpc64/fpu/s_roundf.S: Use EALIGN for Quadword
1409 alignment. Fix -0.0 case. Remove redundant const values.
1411 * sysdeps/powerpc/powerpc64/fpu/s_trunc.S: Use EALIGN for Quadword
1412 alignment. Fix -0.0 case.
1413 * sysdeps/powerpc/powerpc64/fpu/s_truncf.S: Use EALIGN for Quadword
1414 alignment. Fix -0.0 case. Remove redundant const values.
1417 2005-01-06 Ulrich Drepper <drepper@redhat.com>
1419 * misc/sys/cdefs.h: Define __wur.
1420 * libio/stdio.h: Use __wur for a number of interfaces.
1421 * posix/unistd.h: Likewise.
1422 * stdlib/stdlib.h: Likewise.
1424 2004-12-29 Jakub Jelinek <jakub@redhat.com>
1427 * sysdeps/ia64/fpu/libm_support.h (__libm_error_support): Use
1428 libc_hidden_proto instead of HIDDEN_PROTO.
1429 * sysdeps/ia64/fpu/libm-symbols.h (HIDDEN_PROTO): Remove.
1430 (__libm_error_support): If ASSEMBLER and in libc, define to
1431 HIDDEN_JUMPTARGET(__libm_error_support).
1433 2004-12-28 David Mosberger <davidm@hpl.hp.com>
1436 * sysdeps/ia64/fpu/Makefile (duplicated-routines): New macro.
1437 (sysdep_routines): Replace libm_ldexp{,f,l} and libm_scalbn{,f,l}
1438 with $(duplicated-routines).
1439 (libm-sysdep_routines): Likewise, but substitute "s_" prefix for
1442 2004-12-27 David Mosberger <davidm@hpl.hp.com>
1445 * sysdeps/ia64/fpu/libm-symbols.h: Add include of <sysdep.h> and
1446 undefine "ret" macro. Add __libm_error_support hidden definitions.
1449 * sysdeps/ia64/fpu/e_lgamma_r.c: Remove CVS-id comment. Add
1450 missing portion of copyright statement.
1451 * sysdeps/ia64/fpu/e_lgammaf_r.c: Likewise.
1452 * sysdeps/ia64/fpu/e_lgammal_r.c: Likewise.
1455 * sysdeps/ia64/fpu/w_lgamma.c: Remove CVS-id comment. Add
1456 missing portion of copyright statement.
1457 (__ieee754_lgamma): Rename from lgamma(). Make lgamma() a weak alias.
1458 (__ieee754_gamma): Likewise.
1459 * sysdeps/ia64/fpu/w_lgammaf.c: Likewise.
1460 * sysdeps/ia64/fpu/w_lgammal.c: Likewise.
1462 2004-12-09 H. J. Lu <hjl@lucon.org>
1465 * sysdeps/ia64/fpu/s_nextafterl.c: Remove.
1466 * sysdeps/ia64/fpu/s_nexttoward.c: Likewise.
1467 * sysdeps/ia64/fpu/s_nexttowardf.c: Likewise.
1468 * sysdeps/ia64/fpu/e_atan2l.S: Remove (duplicate of e_atan2l.c).
1469 * sysdeps/ia64/fpu/e_expl.S: Likewise.
1470 * sysdeps/ia64/fpu/e_logl.c: Remove (conflicts with e_logl.S).
1472 2004-11-18 David Mosberger <davidm@hpl.hp.com>
1475 * sysdeps/ia64/fpu/README: New file.
1476 * sysdeps/ia64/fpu/gen_import_file_list: New file.
1477 * sysdeps/ia64/fpu/import_check: Likewise.
1478 * sysdeps/ia64/fpu/import_diffs: Likewise.
1479 * sysdeps/ia64/fpu/import_file.awk: Likewise.
1480 * sysdeps/ia64/fpu/import_intel_libm: Likewise.
1481 * sysdeps/ia64/fpu/libm-symbols.h: Likewise.
1484 * sysdeps/ia64/fpu/e_acos.S: Update from Intel libm v2.1+.
1485 * sysdeps/ia64/fpu/e_acosf.S: Likewise.
1486 * sysdeps/ia64/fpu/e_acosl.S: Likewise.
1487 * sysdeps/ia64/fpu/e_asin.S: Likewise.
1488 * sysdeps/ia64/fpu/e_asinf.S: Likewise.
1489 * sysdeps/ia64/fpu/e_asinl.S: Likewise.
1490 * sysdeps/ia64/fpu/e_atan2.S: Likewise.
1491 * sysdeps/ia64/fpu/e_atan2f.S: Likewise.
1492 * sysdeps/ia64/fpu/e_cosh.S: Likewise.
1493 * sysdeps/ia64/fpu/e_coshf.S: Likewise.
1494 * sysdeps/ia64/fpu/e_coshl.S: Likewise.
1495 * sysdeps/ia64/fpu/e_exp.S: Likewise.
1496 * sysdeps/ia64/fpu/e_expf.S: Likewise.
1497 * sysdeps/ia64/fpu/e_fmod.S: Likewise.
1498 * sysdeps/ia64/fpu/e_fmodf.S: Likewise.
1499 * sysdeps/ia64/fpu/e_fmodl.S: Likewise.
1500 * sysdeps/ia64/fpu/e_hypot.S: Likewise.
1501 * sysdeps/ia64/fpu/e_hypotf.S: Likewise.
1502 * sysdeps/ia64/fpu/e_hypotl.S: Likewise.
1503 * sysdeps/ia64/fpu/e_log.S: Likewise.
1504 * sysdeps/ia64/fpu/e_log2.S: Likewise.
1505 * sysdeps/ia64/fpu/e_log2f.S: Likewise.
1506 * sysdeps/ia64/fpu/e_log2l.S: Likewise.
1507 * sysdeps/ia64/fpu/e_logf.S: Likewise.
1508 * sysdeps/ia64/fpu/e_pow.S: Likewise.
1509 * sysdeps/ia64/fpu/e_powf.S: Likewise.
1510 * sysdeps/ia64/fpu/e_powl.S: Likewise.
1511 * sysdeps/ia64/fpu/e_remainder.S: Likewise.
1512 * sysdeps/ia64/fpu/e_remainderf.S: Likewise.
1513 * sysdeps/ia64/fpu/e_remainderl.S: Likewise.
1514 * sysdeps/ia64/fpu/e_scalb.S: Likewise.
1515 * sysdeps/ia64/fpu/e_scalbf.S: Likewise.
1516 * sysdeps/ia64/fpu/e_scalbl.S: Likewise.
1517 * sysdeps/ia64/fpu/e_sinh.S: Likewise.
1518 * sysdeps/ia64/fpu/e_sinhf.S: Likewise.
1519 * sysdeps/ia64/fpu/e_sinhl.S: Likewise.
1520 * sysdeps/ia64/fpu/e_sqrt.S: Likewise.
1521 * sysdeps/ia64/fpu/e_sqrtf.S: Likewise.
1522 * sysdeps/ia64/fpu/e_sqrtl.S: Likewise.
1523 * sysdeps/ia64/fpu/libm_error.c: Likewise.
1524 * sysdeps/ia64/fpu/libm_reduce.c: Likewise.
1525 * sysdeps/ia64/fpu/libm_support.h: Likewise.
1526 * sysdeps/ia64/fpu/s_atan.S: Likewise.
1527 * sysdeps/ia64/fpu/s_atanf.S: Likewise.
1528 * sysdeps/ia64/fpu/s_atanl.S: Likewise.
1529 * sysdeps/ia64/fpu/s_cbrt.S: Likewise.
1530 * sysdeps/ia64/fpu/s_cbrtf.S: Likewise.
1531 * sysdeps/ia64/fpu/s_cbrtl.S: Likewise.
1532 * sysdeps/ia64/fpu/s_ceil.S: Likewise.
1533 * sysdeps/ia64/fpu/s_ceilf.S: Likewise.
1534 * sysdeps/ia64/fpu/s_ceill.S: Likewise.
1535 * sysdeps/ia64/fpu/s_cos.S: Likewise.
1536 * sysdeps/ia64/fpu/s_cosf.S: Likewise.
1537 * sysdeps/ia64/fpu/s_cosl.S: Likewise.
1538 * sysdeps/ia64/fpu/s_expm1.S: Likewise.
1539 * sysdeps/ia64/fpu/s_expm1f.S: Likewise.
1540 * sysdeps/ia64/fpu/s_expm1l.S: Likewise.
1541 * sysdeps/ia64/fpu/s_fabs.S: Likewise.
1542 * sysdeps/ia64/fpu/s_fabsf.S: Likewise.
1543 * sysdeps/ia64/fpu/s_fabsl.S: Likewise.
1544 * sysdeps/ia64/fpu/s_floor.S: Likewise.
1545 * sysdeps/ia64/fpu/s_floorf.S: Likewise.
1546 * sysdeps/ia64/fpu/s_floorl.S: Likewise.
1547 * sysdeps/ia64/fpu/s_frexp.c: Likewise.
1548 * sysdeps/ia64/fpu/s_frexpf.c: Likewise.
1549 * sysdeps/ia64/fpu/s_frexpl.c: Likewise.
1550 * sysdeps/ia64/fpu/s_ilogb.S: Likewise.
1551 * sysdeps/ia64/fpu/s_ilogbf.S: Likewise.
1552 * sysdeps/ia64/fpu/s_ilogbl.S: Likewise.
1553 * sysdeps/ia64/fpu/s_log1p.S: Likewise.
1554 * sysdeps/ia64/fpu/s_log1pf.S: Likewise.
1555 * sysdeps/ia64/fpu/s_log1pl.S: Likewise.
1556 * sysdeps/ia64/fpu/s_logb.S: Likewise.
1557 * sysdeps/ia64/fpu/s_logbf.S: Likewise.
1558 * sysdeps/ia64/fpu/s_logbl.S: Likewise.
1559 * sysdeps/ia64/fpu/s_modf.S: Likewise.
1560 * sysdeps/ia64/fpu/s_modff.S: Likewise.
1561 * sysdeps/ia64/fpu/s_modfl.S: Likewise.
1562 * sysdeps/ia64/fpu/s_nearbyint.S: Likewise.
1563 * sysdeps/ia64/fpu/s_nearbyintf.S: Likewise.
1564 * sysdeps/ia64/fpu/s_nearbyintl.S: Likewise.
1565 * sysdeps/ia64/fpu/s_rint.S: Likewise.
1566 * sysdeps/ia64/fpu/s_rintf.S: Likewise.
1567 * sysdeps/ia64/fpu/s_rintl.S: Likewise.
1568 * sysdeps/ia64/fpu/s_round.S: Likewise.
1569 * sysdeps/ia64/fpu/s_roundf.S: Likewise.
1570 * sysdeps/ia64/fpu/s_roundl.S: Likewise.
1571 * sysdeps/ia64/fpu/s_significand.S: Likewise.
1572 * sysdeps/ia64/fpu/s_significandf.S: Likewise.
1573 * sysdeps/ia64/fpu/s_significandl.S: Likewise.
1574 * sysdeps/ia64/fpu/s_tan.S: Likewise.
1575 * sysdeps/ia64/fpu/s_tanf.S: Likewise.
1576 * sysdeps/ia64/fpu/s_tanl.S: Likewise.
1577 * sysdeps/ia64/fpu/s_trunc.S: Likewise.
1578 * sysdeps/ia64/fpu/s_truncf.S: Likewise.
1579 * sysdeps/ia64/fpu/s_truncl.S: Likewise.
1582 * sysdeps/ia64/fpu/e_acosh.S: New file from Intel libm v2.1+.
1583 * sysdeps/ia64/fpu/e_acoshf.S: Likewise.
1584 * sysdeps/ia64/fpu/e_acoshl.S: Likewise.
1585 * sysdeps/ia64/fpu/e_atanh.S: Likewise.
1586 * sysdeps/ia64/fpu/e_atanhf.S: Likewise.
1587 * sysdeps/ia64/fpu/e_atanhl.S: Likewise.
1588 * sysdeps/ia64/fpu/e_exp10.S: Likewise.
1589 * sysdeps/ia64/fpu/e_exp10f.S: Likewise.
1590 * sysdeps/ia64/fpu/e_exp10l.S: Likewise.
1591 * sysdeps/ia64/fpu/e_exp2.S: Likewise.
1592 * sysdeps/ia64/fpu/e_exp2f.S: Likewise.
1593 * sysdeps/ia64/fpu/e_exp2l.S: Likewise.
1594 * sysdeps/ia64/fpu/e_lgamma_r.S: Likewise.
1595 * sysdeps/ia64/fpu/e_lgammaf_r.S: Likewise.
1596 * sysdeps/ia64/fpu/e_lgammal_r.S: Likewise.
1597 * sysdeps/ia64/fpu/e_logl.S: Likewise.
1598 * sysdeps/ia64/fpu/libm_frexp.S: Likewise.
1599 * sysdeps/ia64/fpu/libm_frexpf.S: Likewise.
1600 * sysdeps/ia64/fpu/libm_frexpl.S: Likewise.
1601 * sysdeps/ia64/fpu/s_libm_ldexp.S: Likewise.
1602 * sysdeps/ia64/fpu/s_libm_ldexpf.S: Likewise.
1603 * sysdeps/ia64/fpu/s_libm_ldexpl.S: Likewise.
1604 * sysdeps/ia64/fpu/s_libm_scalbn.S: Likewise.
1605 * sysdeps/ia64/fpu/s_libm_scalbnf.S: Likewise.
1606 * sysdeps/ia64/fpu/s_libm_scalbnl.S: Likewise.
1607 * sysdeps/ia64/fpu/libm_lgamma.S: Likewise.
1608 * sysdeps/ia64/fpu/libm_lgammaf.S: Likewise.
1609 * sysdeps/ia64/fpu/libm_lgammal.S: Likewise.
1610 * sysdeps/ia64/fpu/libm_sincos.S: Likewise.
1611 * sysdeps/ia64/fpu/libm_sincos_large.S: Likewise.
1612 * sysdeps/ia64/fpu/libm_sincosf.S: Likewise.
1613 * sysdeps/ia64/fpu/libm_sincosl.S: Likewise.
1614 * sysdeps/ia64/fpu/libm_scalblnf.S: Likewise.
1615 * sysdeps/ia64/fpu/s_asinh.S: Likewise.
1616 * sysdeps/ia64/fpu/s_asinhf.S: Likewise.
1617 * sysdeps/ia64/fpu/s_asinhl.S: Likewise.
1618 * sysdeps/ia64/fpu/s_erf.S: Likewise.
1619 * sysdeps/ia64/fpu/s_erfc.S: Likewise.
1620 * sysdeps/ia64/fpu/s_erfcf.S: Likewise.
1621 * sysdeps/ia64/fpu/s_erfcl.S: Likewise.
1622 * sysdeps/ia64/fpu/s_erff.S: Likewise.
1623 * sysdeps/ia64/fpu/s_erfl.S: Likewise.
1624 * sysdeps/ia64/fpu/s_fdim.S: Likewise.
1625 * sysdeps/ia64/fpu/s_fdimf.S: Likewise.
1626 * sysdeps/ia64/fpu/s_fdiml.S: Likewise.
1627 * sysdeps/ia64/fpu/s_fma.S: Likewise.
1628 * sysdeps/ia64/fpu/s_fmaf.S: Likewise.
1629 * sysdeps/ia64/fpu/s_fmal.S: Likewise.
1630 * sysdeps/ia64/fpu/s_fmax.S: Likewise.
1631 * sysdeps/ia64/fpu/s_fmaxf.S: Likewise.
1632 * sysdeps/ia64/fpu/s_fmaxl.S: Likewise.
1633 * sysdeps/ia64/fpu/s_ldexp.c: Likewise.
1634 * sysdeps/ia64/fpu/s_ldexpf.c: Likewise.
1635 * sysdeps/ia64/fpu/s_ldexpl.c: Likewise.
1636 * sysdeps/ia64/fpu/s_nextafter.S: Likewise.
1637 * sysdeps/ia64/fpu/s_nextafterf.S: Likewise.
1638 * sysdeps/ia64/fpu/s_nextafterl.S: Likewise.
1639 * sysdeps/ia64/fpu/s_nexttoward.S: Likewise.
1640 * sysdeps/ia64/fpu/s_nexttowardf.S: Likewise.
1641 * sysdeps/ia64/fpu/s_nexttowardl.S: Likewise.
1642 * sysdeps/ia64/fpu/s_tanh.S: Likewise.
1643 * sysdeps/ia64/fpu/s_tanhf.S: Likewise.
1644 * sysdeps/ia64/fpu/s_tanhl.S: Likewise.
1645 * sysdeps/ia64/fpu/s_scalblnf.c: Likewise.
1646 * sysdeps/ia64/fpu/w_lgamma.c: Likewise.
1647 * sysdeps/ia64/fpu/w_lgammaf.c: Likewise.
1648 * sysdeps/ia64/fpu/w_lgammal.c: Likewise.
1649 * sysdeps/ia64/fpu/w_tgamma.S: Likewise.
1650 * sysdeps/ia64/fpu/w_tgammaf.S: Likewise.
1651 * sysdeps/ia64/fpu/w_tgammal.S: Likewise.
1654 * sysdeps/ia64/fpu/e_gamma_r.c: New empty dummy-file.
1655 * sysdeps/ia64/fpu/e_gammaf_r.c: Likewise.
1656 * sysdeps/ia64/fpu/e_gammal_r.c: Likewise.
1657 * sysdeps/ia64/fpu/w_acosh.c: Likewise.
1658 * sysdeps/ia64/fpu/w_acoshf.c: Likewise.
1659 * sysdeps/ia64/fpu/w_acoshl.c: Likewise.
1660 * sysdeps/ia64/fpu/w_atanh.c: Likewise.
1661 * sysdeps/ia64/fpu/w_atanhf.c: Likewise.
1662 * sysdeps/ia64/fpu/w_atanhl.c: Likewise.
1663 * sysdeps/ia64/fpu/w_exp10.c: Likewise.
1664 * sysdeps/ia64/fpu/w_exp10f.c: Likewise.
1665 * sysdeps/ia64/fpu/w_exp10l.c: Likewise.
1666 * sysdeps/ia64/fpu/w_exp2.c: Likewise.
1667 * sysdeps/ia64/fpu/w_exp2f.c: Likewise.
1668 * sysdeps/ia64/fpu/w_exp2l.c: Likewise.
1669 * sysdeps/ia64/fpu/w_expl.c: Likewise.
1670 * sysdeps/ia64/fpu/e_expl.S: Likewise.
1671 * sysdeps/ia64/fpu/w_lgamma_r.c: Likewise.
1672 * sysdeps/ia64/fpu/w_lgammaf_r.c: Likewise.
1673 * sysdeps/ia64/fpu/w_lgammal_r.c: Likewise.
1674 * sysdeps/ia64/fpu/w_log2.c: Likewise.
1675 * sysdeps/ia64/fpu/w_log2f.c: Likewise.
1676 * sysdeps/ia64/fpu/w_log2l.c: Likewise.
1677 * sysdeps/ia64/fpu/w_sinh.c: Likewise.
1678 * sysdeps/ia64/fpu/w_sinhf.c: Likewise.
1679 * sysdeps/ia64/fpu/w_sinhl.c: Likewise.
1682 * sysdeps/ia64/fpu/libm_atan2_reg.S: Remove.
1683 * sysdeps/ia64/fpu/s_ldexp.S: Likewise.
1684 * sysdeps/ia64/fpu/s_ldexpf.S: Likewise.
1685 * sysdeps/ia64/fpu/s_ldexpl.S: Likewise.
1686 * sysdeps/ia64/fpu/s_scalbn.S: Likewise.
1687 * sysdeps/ia64/fpu/s_scalbnf.S: Likewise.
1688 * sysdeps/ia64/fpu/s_scalbnl.S: Likewise.
1691 * sysdeps/ia64/fpu/s_sincos.c: Make it an empty dummy-file.
1692 * sysdeps/ia64/fpu/s_sincosf.c: Likewise.
1693 * sysdeps/ia64/fpu/s_sincosl.c: Likewise.
1696 * sysdeps/ia64/fpu/e_atan2l.S: Add "Not needed" comment.
1699 * sysdeps/ia64/fpu/s_copysign.S: Add __libm_copysign{,f,l}
1700 alias for use by libm_error.c
1703 * sysdeps/ia64/fpu/Makefile (libm-sysdep_routines): Remove
1704 libm_atan2_reg, libm_tan, libm_frexp4{f,l}.
1705 Mention s_erfc{,f,l}, libm_frexp{,f,l}, libm_ldexp{,f,l},
1706 libm_sincos{,f,l}, libm_sincos_large, libm_lgamma{,f,l},
1707 libm_scalbn{,f,l}, libm_scalblnf.
1708 (sysdep_routines): Remove libm_frexp4{,f,l}.
1709 Mention libm_frexp{,f,l}, libm_ldexp{,f,l}, and libm_scalbn{,f,l}.
1710 (sysdep-CPPFLAGS): Add -include libm-symbols.h, -D__POSIX__,
1711 _D_LIB_VERSIONIMF=_LIB_VERSION, -DSIZE_LONG_INT_64, and
1712 -DSIZE_LONG_LONG_INT_64.
1714 2005-01-05 Steven Munroe <sjmunroe@us.ibm.com>
1717 * elf/rtld.c (dl_main) [NEED_DL_SYSINFO_DSO]: Insure l_map_end and
1718 l_text_end are set for a VDSO with a single PT_LOAD entry.
1720 2005-01-05 Ulrich Drepper <drepper@redhat.com>
1723 * libio/iofopncook.c (_IO_cookie_seekoff): Define. Mark offset as
1724 invalid to disable optimizations in fileops which won't work here.
1725 (_IO_cookie_jumps): Use it.
1726 (_IO_old_cookie_jumps): Likewise.
1727 * libio/fmemopen.c (fmemopen_seek): Result must be returned in *P,
1728 not the return value.
1729 * stdio-common/Makefile (tests): Add tst-fmemopen2.
1730 * stdio-common/tst-fmemopen2.c: New file.
1732 * sysdeps/unix/sysv/linux/bits/waitflags.h: Define __WNOTHREAD.
1734 2005-01-05 Roland McGrath <roland@redhat.com>
1736 * configure.in (libc_cv_cpp_asm_debuginfo): Checked moved ...
1737 * sysdeps/i386/configure.in: ... here. New file.
1739 2005-01-03 Ulrich Drepper <drepper@redhat.com>
1742 * sysdeps/generic/libc-start.c [SHARED] (__libc_start_main): Don't
1743 initialize __environ again.
1744 * stdlib/Makefile: Add rules to build and run tst-putenv.
1745 * stdlib/tst-putenv.c: New file.
1746 * stdlib/tst-putenvmod.c: New file.
1748 * sysdeps/unix/sysv/linux/init-first.c: Clean file up. Don't
1749 define unnecessary wrappers or aliases of static functions.
1751 2005-01-03 Andreas Jaeger <aj@suse.de>
1753 * csu/Makefile (generated): Add start.os and start.ob.
1755 * elf/Makefile (tests): Change rule for tst-pie1 so that make
1758 2004-12-29 Roland McGrath <roland@redhat.com>
1761 * sysdeps/unix/alarm.c (alarm): Round return value to nearest rather
1762 than always up; when nearest is zero, round up to one.
1764 2004-12-28 Ulrich Drepper <drepper@redhat.com>
1766 * po/es.po: Update from translation team.
1769 * sysdeps/generic/dl-tls.c (__tls_get_addr): Fix typo.
1771 2004-12-27 Ulrich Drepper <drepper@redhat.com>
1774 * include/signal.h: Define __sigemptyset.
1776 2004-04-27 Paolo Bonzini <bonzini@gnu.org>
1778 * posix/regex_internal.h (struct re_dfastate_t): Make
1779 word_trtable a pointer to the 512-item transition table.
1780 * posix/regexec.c (build_trtable): Fill in either state->trtable
1781 or state->word_trtable. Return a boolean indicating success.
1782 (transit_state): Expect state->trtable to be a 256-item
1783 transition table. Reorganize code to have less tests in
1784 the common case, and to save an indentation level.
1785 * posix/regex_internal.c (free_state): Free word_trtable.
1787 2004-12-21 Jakub Jelinek <jakub@redhat.com>
1790 * sysdeps/unix/sysv/linux/i386/clone.S (__clone): Make sure %esp when
1791 calling fn is 16 byte aligned.
1792 * sysdeps/i386/tst-stack-align.h: New file.
1795 * misc/efgcvt_r.c (FLOAT_MIN_10_EXP, FLOAT_MIN_10_NORM): Define.
1796 (ecvt_r): Special case denormals.
1797 * misc/qefgcvt_r.c (FLOAT_MIN_10_EXP, FLOAT_MIN_10_NORM): Define.
1798 * misc/tst-efgcvt.c: Include float.h.
1799 (ecvt_tests): Add 2 new tests.
1801 2004-12-20 Roland McGrath <roland@frob.com>
1803 * version.h (RELEASE, VERSION): development, 2.3.90
1804 * include/features.h (__GLIBC_MINOR__): Now 4.
1807 2004-12-20 Jakub Jelinek <jakub@redhat.com>,
1808 Jim Gifford <giffordj@linkline.com>
1811 * sysdeps/mips/Makefile (librt-sysdep_routines): Add.
1812 * sysdeps/unix/mips/rt-sysdep.S: New file.
1814 2004-12-19 Roland McGrath <roland@redhat.com>
1816 * iconv/Makefile (test-iconvconfig): New target.
1817 [$(cross-compiling) != yes] (xtests): Depend on it.
1819 * iconv/iconvconfig.c (nostdlib, output_file, output_file_len):
1821 (options, parse_opt, main): Take new options --nostdlib and
1822 --output/-o to set them. Under --nostdlib, skip GCONV_PATH dirs.
1823 (write_output): If output_file is set, write the output there.
1825 2004-12-19 Andreas Jaeger <aj@suse.de>
1828 * inet/netinet/in.h: Use __interface_addr instead of __interface.
1831 * sunrpc/xcrypt.c (passwd2des_internal): Make it hidden instead of
1834 2004-12-19 Roland McGrath <roland@frob.com>
1836 * version.h (VERSION): 2.3.4.
1837 * README.template: Various updates.
1838 * README: Regenerated.
1839 * NEWS: Mention ports.
1840 * README-alpha: File removed.
1843 * locale/langinfo.h: Comment fixes.
1845 2004-12-17 Ulrich Drepper <drepper@redhat.com>
1847 * po/ja.po: Update from translation team.
1849 2004-12-17 Richard Henderson <rth@redhat.com>
1851 * sysdeps/unix/sysv/linux/alpha/clone.S (__clone): Add support
1852 for NPTL where the PID is stored at userlevel and needs to be
1853 reset when CLONE_THREAD is not used.
1855 2004-12-17 Jakub Jelinek <jakub@redhat.com>
1857 * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Update.
1859 2004-12-17 Andreas Jaeger <aj@suse.de>
1861 * math/libm-test.inc (atan2_test): Compute value with 36 digits.
1862 * sysdeps/alpha/fpu/libm-test-ulps: Adjust for changed result.
1863 * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
1864 * sysdeps/s390/fpu/libm-test-ulps: Likewise.
1865 * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Likewise.
1866 * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
1867 * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
1869 2004-12-16 Ulrich Drepper <drepper@redhat.com>
1871 * stdlib/tst-setcontext.c: Enlarge st1 and st2 arrays.
1873 2004-09-02 Steven Munroe <sjmunroe@us.ibm.com>
1876 * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S
1877 (__novec_getcontext): Fix typo in store of fp29.
1878 (__getcontext): Fix typo in store of fp29.
1879 * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S
1880 (__novec_swapcontext): Fix typo in store of fp29.
1881 (__swapcontext): Fix typo in store of fp29.
1883 2004-12-17 GOTO Masanori <gotom@debian.or.jp>
1885 * sysdeps/unix/sysv/linux/dl-osinfo.h (DL_SYSDEP_OSCHECK): Fix
1888 2004-12-16 Roland McGrath <roland@redhat.com>
1890 * nscd/Makefile ($(objpfx)nscd): Don't depend on $(selinux-LIBS),
1891 which is usually a -lselinux that make will resolve wrongly.
1893 2004-12-16 Andreas Jaeger <aj@suse.de>
1895 * math/math.h: Use #if defined to not receive warnings about
1898 2004-12-16 Jakub Jelinek <jakub@redhat.com>
1900 * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__clone): Add support
1901 for NPTL where the PID is stored at userlevel and needs to be reset
1902 when CLONE_THREAD is not used.
1904 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
1905 (SYSCALL_ERROR_HANDLER): If RTLD_PRIVATE_ERRNO, use rtld_errno
1907 * sysdeps/unix/sysv/linux/sparc/sparc64/socket.S: Include
1908 sysdep-cancel.h instead of sysdep.h. Handle cancellation.
1909 * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Regenerate.
1911 * sysdeps/ieee754/ldbl-128/e_expl.c: Include stdlib.h.
1913 2004-12-15 Jakub Jelinek <jakub@redhat.com>
1915 * sysdeps/unix/sysv/linux/gethostid.c: Make bi-arch safe.
1917 2004-12-15 Steven Munroe <sjmunroe@us.ibm.com>
1919 * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: Correct stack
1920 alignment. Clean up flag bit tests.
1921 * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S: Correct stack
1922 alignment. Clean up flag bit tests. Remove redundent SP assignment.
1923 Add TOC register save/restore around function call.
1925 * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Make no_vmx symbol
1927 * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S: Make no_vmx symbol
1929 * sysdeps/powerpc/powerpc64/__longjmp-common.S: Make no_vmx symbol
1931 * sysdeps/powerpc/powerpc64/setjmp-common.S: Make no_vmx and
1932 aligned_save_vmx symbol local.
1934 2004-12-15 Ulrich Drepper <drepper@redhat.com>
1936 * sysdeps/i386/i486/bits/string.h (__strncat_g): Fix i686
1939 2004-09-08 H.J. Lu <hongjiu.lu@intel.com>
1941 * Makeconfig (libunwind): New.
1942 (libgcc_eh): Add $(libunwind).
1943 (gnulib): Always set to -lgcc $(libgcc_eh).
1944 (static-gnulib): Always set to -lgcc -lgcc_eh $(libunwind).
1945 (libc.so-gnulib): New.
1946 * Makerules (LDLIBS-c.so): Use $(libc.so-gnulib) instead of
1948 * configure.in (libc_cv_cc_with_libunwind): Set to yes if gcc
1949 uses -lunwind for static binaries.
1951 2004-06-05 Joseph S. Myers <jsm@polyomino.org.uk>
1953 * malloc/Makefile (install-bin): Remove memusage.
1954 (install-bin-script): Add memusage.
1956 2004-12-15 Jakub Jelinek <jakub@redhat.com>
1958 * nis/nis_domain_of_r.c (nis_domain_of_r): Use libnsl_hidden_def,
1959 not libnsl_hidden_proto.
1961 * sysdeps/unix/sysv/linux/s390/s390-32/clone.S (__clone): Add support
1962 for NPTL where the PID is stored at userlevel and needs to be reset
1963 when CLONE_THREAD is not used.
1964 * sysdeps/unix/sysv/linux/s390/s390-64/clone.S (__clone): Likewise.
1966 * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (__clone): Save
1967 and restore r2 around call to fn.
1969 2004-12-15 Andreas Jaeger <aj@suse.de>
1971 * sysdeps/ia64/dl-machine.h (elf_machine_rela): Mark auto instead
1972 of static, add always_inline attribute.
1973 (elf_machine_rela_relative): Likewise.
1974 (elf_machine_lazy_rel): Likewise.
1976 2004-12-15 Ulrich Drepper <drepper@redhat.com>
1978 * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: Add support
1979 for pid caching in nptl.
1981 2004-12-14 Ulrich Drepper <drepper@redhat.com>
1983 * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S: Add support
1984 for pid caching in nptl.
1986 2004-10-18 Maciej W. Rozycki <macro@mips.com>
1988 * sysdeps/unix/sysv/linux/mips/bits/socket.h (__cmsg_nxthdr): Use
1989 __NTH instead of __THROW in the inline definition.
1990 * sysdeps/unix/sysv/linux/mips/sys/tas.h (_test_and_set): Likewise.
1992 * sysdeps/mips/bits/dlfcn.h (RTLD_DEEPBIND): New macro.
1994 * sysdeps/unix/sysv/linux/mips/bits/mman.h
1995 (PROT_GROWSDOWN, PROT_GROWSUP): New macros.
1997 2004-10-06 Alan Modra <amodra@bigpond.net.au>
1999 * sysdeps/powerpc/powerpc64/ppc-mcount.S (PROF): Don't undef.
2000 * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S: Invoke CALL_MOUNT.
2001 * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S: Likewise.
2002 * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S: Likewise.
2003 * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S: Likewise.
2004 * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S: Likewise.
2005 * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S: Likewise.
2006 * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S: Likewise.
2007 * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S: Likewise.
2009 2004-10-19 Wolfram Gloger <wg@malloc.de>
2011 * malloc/hooks.c (mem2chunk_check, top_check): Handle
2012 non-contiguous arena. Reported by Michael Dalton
2013 <mwdalton@stanford.edu> [BZ #457]. Add further checks for top chunk.
2015 2004-12-14 Jakub Jelinek <jakub@redhat.com>
2017 * sysdeps/posix/sysconf.c (__sysconf_check_spec): Remove leading
2018 underscore from GETCONF_DIR filenames.
2020 2004-12-13 Ulrich Drepper <drepper@redhat.com>
2022 * po/de.po: Update from translation team.
2024 * nss/getnssent.c (__nss_getent): Double buffer size each round to
2025 avoid problems with delays for some people's huge entries.
2026 * nss/getXXbyYY.c (FUNCTION_NAME): Likewise.
2028 2004-12-13 Jakub Jelinek <jakub@redhat.com>
2030 * posix/getconf.c (main): Prepend just $GETCONF_DIR/ instead of
2031 $GETCONF_DIR/_ to spec.
2032 * posix/confstr.c (confstr): Remove leading underscores for
2033 _CS_POSIX_V6_WIDTH_RESTRICTED_ENVS.
2035 2004-12-12 Ulrich Drepper <drepper@redhat.com>
2037 * elf/dl-load.c (_dl_map_object_from_fd): Fix computation of
2038 mapping start. It must take the actual pagesize into account, not
2039 the alignment in the file.
2041 2004-12-11 Ulrich Drepper <drepper@redhat.com>
2043 * malloc/malloc.c (_int_realloc): Add checks for corrupted memory.
2044 (_int_free): Make clear message are result of free() calls.
2046 * malloc/malloc.c (_int_realloc): Remove unnecessary tests for
2047 oldmem and size == 0.
2049 2004-12-10 Ulrich Drepper <drepper@redhat.com>
2051 * malloc/arena.c (arena_get2): Prevent endless loop if arenas and
2052 list lock are taken.
2054 2004-12-08 Thorsten Kukuk <kukuk@suse.de>
2056 * nis/nss_nisplus/nisplus-netgrp.c (_nss_nisplus_getnetgrent_r):
2057 Add check if the value is not an empty string. [BZ #597]
2059 2004-11-29 Jakub Jelinek <jakub@redhat.com>
2061 * stdlib/strtod_l.c (INTERNAL (__STRTOF)): If densize > 2
2062 and numsize < densize, always shift num up by empty + 1 limbs.
2064 2004-12-07 Paolo Bonzini <bonzini@gnu.org>
2066 * posix/regexec.c (proceed_next_node): Simplify treatment of epsilon
2067 nodes. Pass the pushed node to push_fail_stack.
2068 (push_fail_stack): Accept a single node rather than an array
2069 of two epsilon destinations.
2070 (build_sifted_states): Only walk non-epsilon nodes.
2071 (check_arrival): Don't pass epsilon nodes to
2072 check_arrival_add_next_nodes.
2073 (check_arrival_add_next_nodes) [DEBUG]: Abort if an epsilon node is
2075 (check_node_accept): Do expensive checks later.
2076 (add_epsilon_src_nodes): Cache result of merging the inveclosures.
2077 * posix/regex_internal.h (re_dfastate_t): Add non_eps_nodes and
2079 (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at,
2080 re_string_context_at, re_string_peek_byte_case,
2081 re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
2083 * posix/regex_internal.c (create_newstate_common): Remove.
2084 (register_state): Move part of it here. Initialize non_eps_nodes.
2085 (free_state): Free inveclosure and non_eps_nodes.
2086 (create_cd_newstate, create_ci_newstate): Allocate the new
2089 2004-12-09 Ulrich Drepper <drepper@redhat.com>
2091 * malloc/malloc.c (public_rEALLOc): Add parameter checks.
2092 (_int_free): Provide better error message for invalid pointers.
2094 2004-12-01 Jakub Jelinek <jakub@redhat.com>
2096 * posix/tst-regex.c: Use defined _POSIX_CPUTIME && _POSIX_CPUTIME >= 0
2097 conditionals instead of defined _POSIX_CPUTIME.
2098 (main): If _POSIX_CPUTIME == 0, call sysconf to see if CPUTIME
2099 option is available.
2100 * posix/tst-regex.c2: Use defined _POSIX_CPUTIME && _POSIX_CPUTIME >= 0
2101 conditionals instead of defined _POSIX_CPUTIME.
2102 (do_test): If _POSIX_CPUTIME == 0, call sysconf to see if CPUTIME
2103 option is available.
2104 * sysdeps/posix/sysconf.c (__sysconf): If _POSIX_CPUTIME resp.
2105 _POSIX_THREAD_CPUTIME is defined to 0, return -1 for the corresponding
2108 2004-12-08 Jakub Jelinek <jakub@redhat.com>
2110 * elf/ldd.bash.in: When set -o pipefail is available, use that for
2111 piping to cat; when not, don't use the pipe at all.
2112 Pipe to cat in all cases of running the executable.
2113 When direct running exits with code 5, retry running via ${RTLD}.
2114 * elf/rtld.c (process_envvars): If __libc_enable_secure and
2115 mode != normal, exit with exitcode 5.
2117 2004-12-07 Jakub Jelinek <jakub@redhat.com>
2119 * sysdeps/posix/sysconf.c (__sysconf_check_spec): Only define
2120 if it will be actually used.
2122 2004-12-07 Roland McGrath <roland@redhat.com>
2124 * rt/tst-timer5.c (setup_test): New function.
2125 (TEST_CLOCK_MISSING): Use it to punt test if timer_create does not
2126 support CLOCK_MONOTONIC.
2128 2004-12-07 Jakub Jelinek <jakub@redhat.com>
2130 * sysdeps/unix/sysv/linux/ia64/clone2.S (__clone2): Add support for
2131 NPTL where the PID is stored at userlevel and needs to be reset when
2132 CLONE_THREAD is not used. Restore gp before calling _exit.
2134 2004-12-07 Kaz Kojima <kkojima@rr.iij4u.or.jp>
2136 * sysdeps/unix/sysv/linux/sh/clone.S: Clear the frame pointer when
2137 starting a new thread. Add support for NPTL where the PID is stored
2138 at userlevel and needs to be reset when CLONE_THREAD is not used.
2140 2004-12-01 Jakub Jelinek <jakub@redhat.com>
2142 * elf/rtld.c (process_envvars): Don't consider LD_SHOW_AUXV
2143 and LD_DYNAMIC_WEAK if __libc_enable_secure.
2144 If __libc_enable_secure, /etc/suid-debug doesn't exist and
2145 program will be actually run, turn off all debugging.
2146 * sysdeps/generic/unsecvars.h (UNSECURE_ENVVARS): Add LD_DEBUG,
2147 LD_DYNAMIC_WEAK and LD_SHOW_AUXV.
2149 2004-12-06 Jakub Jelinek <jakub@redhat.com>
2151 * time/tzset.c (tzset_internal): If + or - is seen,
2152 but no offset after it, reset offset to 0. [BZ #601]
2154 2004-12-06 Ulrich Drepper <drepper@redhat.com>
2156 * libio/ioseekpos.c (_IO_seekpos_unlocked): Call _IO_SEEKOFF not
2157 _IO_SEEKPOS, saving one indirect jump.
2159 * libio/fileops.c (_IO_new_file_seekoff): Fix optimization of in-buffer
2160 seek. Remove dead code.
2162 2004-12-02 Jakub Jelinek <jakub@redhat.com>
2164 * libio/Makefile (tests): Add bug-ungetc4.
2165 * libio/bug-ungetc4.c: New test.
2167 2004-12-06 Roland McGrath <roland@redhat.com>
2169 * sysdeps/unix/clock_nanosleep.c (clock_nanosleep): Diagnose EINVAL
2170 for CLOCK_THREAD_CPUTIME_ID, not ENOTSUP.
2171 Use SYSDEP_NANOSLEEP handler before validating CLOCK_ID value.
2173 * rt/tst-timer4.c (TEST_CLOCK, TEST_CLOCK_NANOSLEEP): New macros.
2174 Use them throughout in place of CLOCK_REALTIME and nanosleep.
2175 (do_test) [TEST_CLOCK_MISSING]: Call this macro and if it returns
2176 non-null, punt the test with a message using the string returned.
2177 * rt/tst-timer5.c: New file.
2178 * rt/Makefile (tests): Add it.
2180 2004-12-01 Paolo Bonzini <bonzini@gnu.org>
2182 * posix/regcomp.c (free_dfa_content, init_dfa): Remove
2183 references to re_dfa_t's subexps field.
2184 (parse_sub_exp, parse_expression): Do not use it. Use
2185 completed_bkref_map instead.
2186 (create_initial_state, peek_token): Store a backreference \N
2188 * posix/regexec.c (proceed_next_node, check_dst_limits, get_subexp):
2190 (check_subexp_limits): Remove useless condition.
2191 * posix/regex_internal.h (re_subexp_t): Remove.
2192 (re_dfa_t): Remove subexps and subexps_alloc field, add
2193 completed_bkref_map.
2195 2004-12-05 Roland McGrath <roland@frob.com>
2197 * Makeconfig: Comment typo fix.
2199 2004-11-30 Andreas Schwab <schwab@suse.de>
2201 * nis/ypclnt.c (ypprot_err): Remove unused entries.
2203 2004-11-30 Paolo Bonzini <bonzini@gnu.org>
2205 * posix/regexec.c (check_dst_limits_calc_pos_1): Check for
2206 bkref_idx == -1, and don't recurse in that case.
2208 2004-11-30 GOTO Masanori <gotom@debian.or.jp>
2210 * posix/confstr.c: Enclose #error message with double quote
2211 for gcc-3.3 and lower.
2213 2004-12-04 Ulrich Drepper <drepper@redhat.com>
2215 * sysdeps/unix/sysv/linux/i386/clone.S: Add support for NPTL where
2216 the PID is stored at userlevel and needs to be reset when CLONE_THREAD
2218 * sysdeps/unix/sysv/linux/x86_64/clone.S: Likewise.
2220 2004-11-18 Daniel Jacobowitz <dan@codesourcery.com>
2222 * sysdeps/arm/sysdep.h: Define __USE_BX__ if bx is available.
2223 Use it instead of __THUMB_INTERWORK__. Make RETINSTR take
2224 only a condition and a register.
2225 * sysdeps/arm/dl-machine.h: Use __USE_BX__ instead of
2226 __THUMB_INTERWORK__.
2227 (_dl_start_user): Use BX.
2228 * sysdeps/arm/strlen.S: Use DO_RET.
2229 * sysdeps/unix/arm/brk.S: Likewise.
2230 * sysdeps/unix/arm/fork.S: Likewise.
2231 * sysdeps/unix/arm/sysdep.S: Likewise.
2232 * sysdeps/unix/arm/sysdep.h: Likewise.
2233 * sysdeps/unix/sysv/linux/arm/clone.S: Update uses of RETINSTR.
2234 * sysdeps/unix/sysv/linux/arm/mmap.S: Likewise.
2235 * sysdeps/unix/sysv/linux/arm/mmap64.S: Likewise.
2236 * sysdeps/unix/sysv/linux/arm/socket.S: Likewise.
2237 * sysdeps/unix/sysv/linux/arm/sysdep.h: Likewise.
2238 * sysdeps/unix/sysv/linux/arm/vfork.S: Likewise.
2240 2004-12-02 Roland McGrath <roland@redhat.com>
2242 * extra-lib.mk (object-suffixes-$(lib)): Add .oS when
2243 $(lib)-static-only-routines is nonempty.
2244 (extra-objs, o-iterator.mk rule): Filter out .oS from generators.
2245 Add a special rule for .oS objects -> _nonshared.a library.
2247 2004-12-01 Jakub Jelinek <jakub@redhat.com>
2249 * time/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
2251 * time/Makefile (tests): Add tst-mktime3.
2252 * time/tst-mktime3.c: New test.
2254 2004-12-01 Jakub Jelinek <jakub@redhat.com>
2256 * stdlib/stdlib.h (realpath): Remove nonnull attribute.
2258 * posix/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
2259 normal_bracket label.
2261 * time/tst-mktime2.c (bigtime_test): Initialize tm.tm_isdst to -1.
2263 2004-12-01 Roland McGrath <roland@redhat.com>
2265 * sysdeps/gnu/Makefile ($(objpfx)errlist-compat.c):
2266 Do $(make-target-directory).
2268 2004-11-29 Roland McGrath <roland@redhat.com>
2270 * posix/confstr.c: Avoid punctuation in #error text.
2272 2004-11-27 Ulrich Drepper <drepper@redhat.com>
2274 * posix/Makefile (tests): Add tst-sysconf.
2275 * posix/tst-sysconf.c: New file.
2277 * posix/getconf.c (vars): Add support for _SC_IPV6 and
2279 * sysdeps/posix/sysconf.c (__sysconf): Add support for _SC_IPV6
2280 and _SC_RAW_SOCKETS.
2281 * sysdeps/generic/bits/confname.h: Define _SC_IPV6 and
2284 2004-11-26 Jakub Jelinek <jakub@redhat.com>
2286 * sysdeps/generic/unsecvars.h (UNSECURE_ENVVARS): Add GETCONF_DIR.
2288 2004-11-26 Kaz Kojima <kkojima@rr.iij4u.or.jp>
2290 * sysdeps/unix/sysv/linux/mips/pread.c: Include sgidefs.h only if
2291 NO_SGIDEFS_H isn't defined. Don't include sgidefs.h twice.
2292 * sysdeps/unix/sysv/linux/mips/pwrite.c: Likewise.
2293 * sysdeps/unix/sysv/linux/mips/pread64.c: Likewise.
2294 * sysdeps/unix/sysv/linux/mips/pwrite64.c: Likewise.
2296 2004-11-27 Ulrich Drepper <drepper@redhat.com>
2298 * include/dlfcn.h (__libc_dlopen): Add __RTLD_DLOPEN to the mode
2299 parameter. Reported by VY Newsum <newsum@fel.tno.nl>.
2301 2004-11-10 Daniel Jacobowitz <dan@debian.org>
2303 * libio/iolibio.h (_IO_fclose, _IO_new_fclose, _IO_old_fclose,
2304 _IO_fflush, _IO_fgetpos, _IO_fgetpos64, _IO_fgets, _IO_fopen,
2305 _IO_old_fopen, _IO_new_fopen, _IO_fopen64, __fopen_internal,
2306 _IO_fprintf, _IO_fputs, _IO_fsetpos, _IO_fsetpos64, _IO_ftell,
2307 _IO_fread, _IO_fwrite, _IO_gets, _IO_printf, _IO_puts, _IO_scanf,
2308 _IO_fflush_internal, _IO_ftell_internal, _IO_fputs_internal)
2309 _IO_fwrite_internal): Remove incorrect __THROW.
2310 * libio/libioP.h (_IO_default_xsputn, _IO_wdefault_xsputn,
2311 _IO_default_xsgetn, _IO_wdefault_xsgetn, _IO_default_write,
2312 _IO_default_read, _IO_getline, _IO_getline_info, _IO_getwline,
2313 _IO_getwline_info, _IO_file_read_internal, _IO_sgetn_internal,
2314 _IO_wdo_write_internal, _IO_do_write_internal,
2315 _IO_getline_info_internal, _IO_getline_internal,
2316 _IO_vfprintf_internal, _IO_putc_internal, _IO_read, _IO_write,
2317 _IO_close): Likewise.
2319 2004-11-26 Jakub Jelinek <jakub@redhat.com>
2321 * posix/Makefile (generated: Add getconf.speclist.
2322 ($(inst_libexecdir)/getconf): Use getconf.speclist instead of
2324 ($(objpfx)getconf.speclist): New rule.
2325 * posix/getconf.speclist.h: New file.
2327 2004-11-26 Jakub Jelinek <jakub@redhat.com>
2329 * posix/Makefile (install-others): Add $(inst_libexecdir)/getconf.
2330 (CFLAGS-sysconf.c): Add -D_GETCONF_DIR.
2331 (CFLAGS-getconf.c): New.
2332 ($(inst_libexecdir)/getconf): New.
2333 * posix/confstr.c (confstr): Use __sysconf to query specifications
2334 that don't have _POSIX_V6_* macros defined. Use __*_{C,LD}FLAGS
2335 macros defined in bits/environments.h.
2336 * sysdeps/posix/sysconf.c: Include stdlib.h, string.h and
2338 (__sysconf_check_spec): New routine.
2339 (__sysconf): Use it.
2340 * posix/getconf.c (specs): Change into structure array.
2341 (main): If -v is not given, try to get default from
2342 $(libexecdir)/getconf/default. If specification is not
2343 supported by this getconf, try to execute
2344 $(libexecdir)/getconf/$(specification).
2345 * sysdeps/unix/bsd/bsd4.4/freebsd/bits/environments.h: New file.
2346 * sysdeps/unix/sysv/linux/s390/bits/environments.h: New file.
2347 * sysdeps/unix/sysv/linux/powerpc/bits/environments.h: New file.
2348 * sysdeps/unix/sysv/linux/sparc/bits/environments.h: New file.
2349 * sysdeps/unix/sysv/linux/i386/bits/environments.h: New file.
2350 * sysdeps/unix/sysv/linux/x86_64/bits/environments.h: New file.
2351 * sysdeps/generic/bits/environments.h (__ILP32_OFFBIG_CFLAGS):
2354 * stdlib/stdlib.h (setenv): Use nonnull only for second argument.
2357 2004-11-23 Paolo Bonzini <bonzini@gnu.org>
2359 * posix/regcomp.c (analyze_tree): Always call calc_epsdest.
2360 (calc_inveclosure): Use re_node_set_insert_last.
2361 (parse_dup_op): Lower X{1,5} to (X(X(X(XX?)?)?)?)?
2362 rather than X?X?X?X?X?.
2363 * posix/regex_internal.h (re_node_set_insert_last): New declaration.
2364 * posix/regex_internal.c (re_node_set_insert_last): New function.
2365 * posix/PCRE.tests: Add testcases.
2367 2004-11-25 Ulrich Drepper <drepper@redhat.com>
2369 * dlfcn/dlfcn.h: Remove nonnull attribute from dlopen.
2371 * posix/confstr.c (confstr): Return appropriate strings for
2372 _CS_LFS_LINTFLAGS, _CS_LFS64_CFLAGS, and _CS_LFS64_LINTFLAGS.
2374 2004-11-05 Maciej W. Rozycki <macro@mips.com>
2376 * sysdeps/mips/dl-machine.h: Include <sgidefs.h>. Use _ABIO32,
2377 _ABIN32 and _ABI64 for ABI selection throughout.
2378 * sysdeps/mips/elf/start.S: Likewise.
2379 * sysdeps/mips/mips64/__longjmp.c: Likewise.
2380 * sysdeps/mips/mips64/bsd-_setjmp.S: Likewise.
2381 * sysdeps/mips/mips64/bsd-setjmp.S: Likewise.
2382 * sysdeps/mips/mips64/setjmp.S: Likewise.
2383 * sysdeps/mips/mips64/setjmp_aux.c: Likewise.
2384 * sysdeps/mips/sys/regdef.h: Likewise.
2385 * sysdeps/mips/sys/ucontext.h: Likewise.
2386 * sysdeps/unix/mips/sysdep.h: Likewise.
2387 * sysdeps/unix/sysv/linux/kernel-features.h: Likewise.
2388 * sysdeps/unix/sysv/linux/mips/pread.c: Likewise.
2389 * sysdeps/unix/sysv/linux/mips/pread64.c: Likewise.
2390 * sysdeps/unix/sysv/linux/mips/ptrace.c: Likewise.
2391 * sysdeps/unix/sysv/linux/mips/pwrite.c: Likewise.
2392 * sysdeps/unix/sysv/linux/mips/pwrite64.c: Likewise.
2393 * sysdeps/unix/sysv/linux/mips/sigaction.c: Likewise.
2394 * sysdeps/unix/sysv/linux/mips/sys/procfs.h: Likewise.
2395 * sysdeps/unix/sysv/linux/mips/sys/ucontext.h: Likewise.
2397 * sysdeps/mips/atomicity.h: Use _ABIO32, _ABIN32 and _ABI64 for
2398 ABI selection throughout.
2399 * sysdeps/mips/bits/setjmp.h: Likewise.
2400 * sysdeps/mips/fpu/bits/mathdef.h: Likewise.
2401 * sysdeps/mips/machine-gmon.h: Likewise.
2402 * sysdeps/mips/sys/asm.h: Likewise.
2403 * sysdeps/unix/sysv/linux/mips/bits/fcntl.h: Likewise.
2404 * sysdeps/unix/sysv/linux/mips/bits/sigcontext.h: Likewise.
2405 * sysdeps/unix/sysv/linux/mips/bits/stat.h: Likewise.
2406 * sysdeps/unix/sysv/linux/mips/kernel_stat.h: Likewise.
2407 * sysdeps/unix/sysv/linux/mips/sigcontextinfo.h: Likewise.
2408 * sysdeps/unix/sysv/linux/mips/sys/ptrace.h: Likewise.
2409 * sysdeps/unix/sysv/linux/mips/sys/tas.h: Likewise.
2410 * sysdeps/unix/sysv/linux/mips/sys/user.h: Likewise.
2412 * sysdeps/mips/sgidefs.h: Prevent <asm/sgidefs.h> from being
2413 included by kernel headers and undo its settings if already
2414 included. Define _ABIO32, _ABIN32 and _ABI64 if missing and use
2415 them to define _MIPS_SIM_ABI32, _MIPS_SIM_NABI32 and
2416 _MIPS_SIM_ABI64 for compatibility.
2417 * sysdeps/unix/sysv/linux/mips/Makefile: Use _ABIO32, _ABIN32 and
2418 _ABI64 for ABI selection in generated syscall-list.h
2419 * sysdeps/unix/sysv/linux/mips/configure.in: Use _ABIO32, _ABIN32
2420 and _ABI64 for ABI selection in generated asm-unistd.h.
2421 * sysdeps/unix/sysv/linux/mips/configure: Regenerate.
2423 * sysdeps/unix/sysv/linux/mips/pwrite.c (__libc_pwrite): Correct
2424 an inverted _MIPS_SIM conditional.
2426 2004-11-23 Alexandre Oliva <aoliva@redhat.com>
2428 * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): Use free
2429 range even if it doesn't match exactly.
2431 2004-11-23 Jakub Jelinek <jakub@redhat.com>
2433 * nss/nss_files/files-XXX.c (internal_getent): If parse_line returned
2434 -1, also do H_ERRNO_SET (NETDB_INTERNAL).
2436 2004-11-22 Ulrich Drepper <drepper@redhat.com>
2438 * sysdeps/i386/fpu_control.h: Add volatile to the asms.
2439 Patch by Alexander Stohr.
2441 2004-11-22 Jakub Jelinek <jakub@redhat.com>
2443 * nscd/nscd_getai (__nscd_getai): Avoid memory and file descriptor
2445 * sysdeps/posix/getaddrinfo.c (gaih_inet): Free air.
2447 2004-11-15 Maciej W. Rozycki <macro@mips.com>
2449 * sysdeps/unix/sysv/linux/mips/bits/siginfo.h (__SI_MAX_SIZE):
2450 Define appropriately based on __WORDSIZE.
2451 [struct siginfo] (__pad0): Add for explicit padding.
2453 * sysdeps/unix/sysv/linux/mips/bits/siginfo.h: Formatting fixes
2456 2004-11-22 Ulrich Drepper <drepper@redhat.com>
2458 * dirent/dirent.h: Add nonnull attributes.
2459 * dlfcn/dlfcn.h: Likewise.
2461 2004-11-20 Jakub Jelinek <jakub@redhat.com>
2463 * sysdeps/ieee754/k_standard.c: Document code 50.
2464 (__kernel_standard) <case 50>: Avoid raising div-by-zero
2467 2004-11-19 H.J. Lu <hongjiu.lu@intel.com>
2470 * math/libm-test.inc (tgamma_test): Update tgamma (0) and
2472 * sysdeps/generic/w_tgamma.c (__tgamma): Properly handle |x| == 0.
2473 * sysdeps/generic/w_tgammaf.c (__tgammaf): Likewise.
2474 * sysdeps/generic/w_tgammal.c (__tgammal): Likewise.
2475 * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r): Likewise.
2476 * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
2477 * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
2478 * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Likewise.
2479 * sysdeps/ieee754/k_standard.c (__kernel_standard): Handle
2480 tgamma (0) and tgamma (-0).
2482 2004-11-20 Ulrich Drepper <drepper@redhat.com>
2484 * time/tzfile.c (__tzfile_read): Avoid open for checking whether
2485 the file we already use changed.
2487 * misc/syslog.c: Remove !USE_IN_LIBIO code.
2489 2004-11-20 Jakub Jelinek <jakub@redhat.com>
2491 * signal/signal.h (__sysv_signal, sysv_signal, signal, bsd_signal,
2492 ssignal): Remove __nonnull attribute.
2494 2004-11-20 Kaz Kojima <kkojima@rr.iij4u.or.jp>
2496 * sysdeps/unix/sysv/linux/sh/sys/procfs.h: New file.
2498 2004-11-20 Ulrich Drepper <drepper@redhat.com>
2500 * signal/signal.h: Add nonnull attributes.
2502 * signal/signal.h: Add deprecated attributes to sigstack,
2503 sigpause, sigblock, sigsetmask, siggetmask.
2505 2004-11-20 Jakub Jelinek <jakub@redhat.com>
2507 * sysdeps/unix/sysv/linux/bits/socket.h (SCM_RIGHTS): Avoid
2508 comma at the end of enum if __USE_BSD is not defined.
2510 2004-11-19 Ulrich Drepper <drepper@redhat.com>
2512 * malloc/malloc.c (_int_malloc): Check for corruption of chunk
2513 which is about to be returned.
2515 * malloc/malloc.c (_int_free): Add a few more cheap tests for
2518 2004-11-17 Randolph Chung <tausq@debian.org>
2520 * sysdeps/hppa/dl-machine.h (TRAMPOLINE_TEMPLATE): Add unwind
2523 2004-11-18 Jakub Jelinek <jakub@redhat.com>
2526 * posix/regex.h (RE_NO_SUB): New define.
2527 * posix/regex_internal.h (OP_DELETED_SUBEXP): New.
2528 (re_dfa_t): Add subexp_map.
2529 * posix/regcomp.c (struct subexp_optimize): New type.
2530 (optimize_subexps): New routine.
2531 (re_compile_internal): Call it.
2532 (re_compile_pattern): Set preg->no_sub to 1 if RE_NO_SUB.
2533 (free_dfa_content): Free subexp_map.
2534 (calc_inveclosure, calc_eclosure): Skip OP_DELETED_SUBEXP nodes.
2535 * posix/regexec.c (re_search_internal): If subexp_map
2536 is not NULL, duplicate registers as needed.
2537 * posix/Makefile: Add rules to build and run tst-regex2.
2538 * posix/tst-regex2.c: New test.
2539 * posix/rxspencer/tests: Fix last two tests (\0 -> \1).
2540 Add some new tests for nested subexpressions.
2542 2004-11-18 Ulrich Drepper <drepper@redhat.com>
2544 * libio/libio.h (_IO_FLAGS2_FORTIFY): Renamed from
2545 _IO_FLAGS2_CHECK_PERCENT_N.
2546 * debug/fprintf_chk.c: Adjust all users.
2547 * debug/printf_chk.c: Likewise.
2548 * debug/vfprintf_chk.c: Likewise.
2549 * debug/vprintf_chk.c: Likewise.
2550 * debug/vsnprintf_chk.c: Likewise.
2551 * debug/vsprintf_chk.c: Likewise.
2552 * stdio-common/vfprintf.c: Likewise. Detect missing %N$ formats.
2553 * debug/tst-chk1.c: Test detection of missing %N$ formats.
2555 2004-11-15 Jakub Jelinek <jakub@redhat.com>
2557 * posix/bug-regex24.c: Include string.h.
2559 * nis/nis_clone_obj.c (nis_clone_object): Rename out3 label to out2
2560 and out2 to out. Remove out label. Formatting.
2562 2004-11-15 Ulrich Drepper <drepper@redhat.com>
2564 * include/stdio.h: Do not mark __libc_message as noreturn.
2565 * sysdeps/unix/sysv/linux/libc_fatal.c (__libc_fatal): Add loop to
2566 fool gcc. Include <stdbool.h>.
2567 * sysdeps/posix/libc_fatal.c (__libc_fatal): Add loop to fool gcc.
2568 (__libc_message): Fix typo.
2570 2004-11-13 Ulrich Drepper <drepper@redhat.com>
2572 * malloc/malloc.c (malloc_state): stat_lock_* elements need only
2573 be defined if THREAD_STATS is defined. Remove pad0_ since it does
2574 not align with cache line sizes in general anyway.
2576 2004-11-13 Jakub Jelinek <jakub@redhat.com>
2578 * elf/rtld.c (print_statistics): Avoid segfaults if not all namespaces
2579 are used. Fix computation of num_relative_relocations on RELA
2580 architectures other than IA-64 and Alpha.
2582 2004-11-13 Ulrich Drepper <drepper@redhat.com>
2584 * malloc/malloc.c (_int_free): Use munmap_chunk for handling
2587 2004-11-12 Ulrich Drepper <drepper@redhat.com>
2589 * malloc/malloc.c (_int_free): Remove test for NULL parameter.
2590 (_int_realloc): Call _int_free only if memory parameter is not NULL.
2592 * sysdeps/unix/sysv/linux/libc_fatal.c: Add new function __libc_message
2593 which performs the printing and simple format string handling. The
2594 string is written to tty, stderr, syslog in this order, stopping after
2595 the first successful output.
2596 (__libc_fatal): Call __libc_message.
2597 * include/stdio.h: Declare __libc_message.
2598 * malloc/malloc.c (malloc_printerr): Use __libc_message.
2599 * debug/chk_fail.c: Also print message with __libc_message.
2600 * debug/test-strcpy_chk.c: Ensure that debug messages are not printed
2601 to the terminal or stderr.
2602 * debug/tst-chk1.c: Likewise.
2604 * posix/Makefile: Remove gpl2lgpl variable.
2606 2004-11-12 Martin Schwidefsky <schwidefsky@de.ibm.com>
2608 * elf/elf.h: Add 20 bit relocations R_390_*20.
2610 2004-11-12 Jakub Jelinek <jakub@redhat.com>
2612 * sysdeps/unix/sysv/linux/i386/setuid.c: Include linux/posix_types.h.
2613 * sysdeps/unix/sysv/linux/i386/setgid.c: Likewise.
2614 * sysdeps/unix/sysv/linux/i386/setreuid.c: Likewise.
2615 * sysdeps/unix/sysv/linux/i386/setregid.c: Likewise.
2616 * sysdeps/unix/sysv/linux/i386/setresuid.c: Likewise.
2617 * sysdeps/unix/sysv/linux/i386/setresgid.c: Likewise.
2619 2004-11-12 Andreas Schwab <schwab@suse.de>
2621 * nis/ypclnt.c (ypprot_err): Fix "minor optimizations".
2623 2004-11-12 Ulrich Drepper <drepper@redhat.com>
2625 * posix/Makefile (tests): Add bug-regex24.
2626 * posix/bug-regex24.c: New file.
2628 2004-11-12 Paolo Bonzini <bonzini@gnu.org>
2630 * posix/regexec.c (check_dst_limits_calc_pos_1): Use the map to
2631 cut recursive paths. Make exit condition more precise.
2632 (match_ctx_add_entry): Initialize the map.
2633 * posix/regex_internal.h (struct re_backref_cache_entry): Add a map of
2634 reachable subexpression nodes from each backreference cache entry.
2636 2004-11-10 Jakub Jelinek <jakub@redhat.com>
2638 * sysdeps/unix/sysv/linux/setreuid.c: Remove sys/syscall.h,
2639 sys/types.h, linux/posix_types.h, sysdep.h and pthread-functions.h
2640 includes. Include setxid.h. Use INLINE_SETXID_SYSCALL macro
2641 instead of INLINE_SYSCALL, kill the HAVE_PTR__NPTL_SETXID guarded
2643 * sysdeps/unix/sysv/linux/setegid.c: Likewise.
2644 * sysdeps/unix/sysv/linux/setuid.c: Likewise.
2645 * sysdeps/unix/sysv/linux/seteuid.c: Likewise.
2646 * sysdeps/unix/sysv/linux/setgid.c: Likewise.
2647 * sysdeps/unix/sysv/linux/setresuid.c: Likewise.
2648 * sysdeps/unix/sysv/linux/setresgid.c: Likewise.
2649 * sysdeps/unix/sysv/linux/setregid.c: Likewise.
2650 * sysdeps/unix/sysv/linux/i386/setegid.c: Likewise.
2651 * sysdeps/unix/sysv/linux/i386/setreuid.c: Likewise.
2652 * sysdeps/unix/sysv/linux/i386/setuid.c: Likewise.
2653 * sysdeps/unix/sysv/linux/i386/seteuid.c: Likewise.
2654 * sysdeps/unix/sysv/linux/i386/setgid.c: Likewise.
2655 * sysdeps/unix/sysv/linux/i386/setresuid.c: Likewise.
2656 * sysdeps/unix/sysv/linux/i386/setresgid.c: Likewise.
2657 * sysdeps/unix/sysv/linux/i386/setregid.c: Likewise.
2658 * sysdeps/unix/sysv/linux/alpha/setreuid.c: Likewise.
2659 Formatting. Change signed int into int.
2660 * sysdeps/unix/sysv/linux/alpha/setresuid.c: Likewise.
2661 * sysdeps/unix/sysv/linux/alpha/setresgid.c: Likewise.
2662 * sysdeps/unix/sysv/linux/alpha/setregid.c: Likewise.
2663 * sysdeps/unix/sysv/linux/syscalls.list (setresuid, setresgid):
2665 * sysdeps/unix/setxid.h: New file.
2667 * Rules (binaries-static): Add xtests-static.
2668 * Makeconfig (run-program-prefix): Filter also xtests-static.
2670 2004-11-09 Paul Eggert <eggert@cs.ucla.edu.
2673 * time/difftime.c: Fix a double-rounding bug on hosts with
2674 64-bit time_t and long double being IEEE double. Also, port
2675 to more valid C99 hosts, even those that have padding bits.
2676 Don't include <values.h> since it is marked as an obsolescent
2677 interface. Include <limits.h>, <float.h>, and <stdint.h> instead.
2678 (TYPE_BITS, TYPE_FLOATING, TYPE_SIGNED): New macros.
2679 (subtract): New static function, that works correctly without
2680 double-rounding, even on hosts with 64-bit time_t. Also cater
2681 to hosts with padding bits.
2682 (__difftime): Use it. Use DBL_MANT_DIG and LDBL_MANT_DIG to
2683 determine whether floating types are wide enough: the old
2684 test (which used sizeof) could in theory report the wrong results
2685 on hosts with padding bits in floating-point values.
2687 2004-11-11 Simon Josefsson <jas@extundo.com>
2690 * sysdeps/generic/strtok_r.c [HAVE_CONFIG_H]: Include config.h.
2691 [!_LIBC]: Include strtok_r.h (in gnulib), map __strtok_r to
2692 strtok_r and __rawmemchr to strch.
2693 (__strtok_r): Use C89 prototype.
2694 [weak_alias]: Move calls to libc_hidden_def and weak_alias into
2697 2004-11-10 Paul Eggert <eggert@cs.ucla.edu>
2700 * time/mktime.c (SHR): New macro, which is a portable
2701 substitute for >> that should work even on Crays.
2702 (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
2703 Problem reported by Mark D. Baushke in
2704 <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
2706 2004-11-09 Paolo Bonzini <bonzini@gnu.org>
2708 * posix/regexec.c (match_ctx_free_subtops): Remove, merge into...
2709 (match_ctx_clean): ... this function.
2710 (match_ctx_free): Call match_ctx_clean.
2712 * posix/regexec.c (transit_state): Remove the check for
2713 out-of-bounds buffers.
2714 (check_matching): Check here for out-of-bounds buffers.
2715 (re_search_internal): Store into match_kind a set of bits
2716 indicating which incantation of fastmap scanning must be
2717 used. Use a switch statement instead of multiple ifs.
2718 Exit the final "for (;;)" with goto free_return unless
2719 the match succeeded, thus simplifying some conditionals.
2721 * posix/regex_internal.c (re_string_reconstruct,
2722 re_string_context_at): Add several branch predictions for
2723 case-sensitive matching and no transition table being used.
2725 2004-11-10 Ulrich Drepper <drepper@redhat.com>
2727 * posix/tst-waitid.c: Don't use error to print error message, they
2728 won't end up in the .out file.
2730 2004-11-09 Ulrich Drepper <drepper@redhat.com>
2732 * nscd/nscd-client.h (libc_locked_map_ptr): Add new first
2733 parameter, used as class for definition.
2734 * nscd/nscd_getpw_r.c: Adjust for libc_locked_map_ptr change.
2735 (pw_map_free): Ensure no crash after memory is freed.
2736 * nscd/nscd_getgr_r.c: Likewise. Make map externally visible.
2737 * nscd/nscd_gethst_r.c: Likewise.
2738 * nscd/nscd_getai.c: Use map from nscd_gethost.c.
2739 * nscd/nscd_initgroups.c: Use map from nscd_getgr.c.
2741 * nscd/nscd_getai.c: Add some checks to detect corrupt databases.
2742 * nscd/nscd_getgr_r.c: Likewise
2743 * nscd/nscd_gethst_r.c: Likewise.
2744 * nscd/nscd_getpw_r.c: Likewise
2746 2004-11-09 Jakub Jelinek <jakub@redhat.com>
2748 * posix/regcomp.c (calc_eclosure_iter): Don't access
2749 dfa->edests[node].elems[0] if dfa->edests[node].nelem == 0.
2750 * posix/rxspencer/tests: Add 5 new tests.
2752 2004-11-09 Ulrich Drepper <drepper@redhat.com>
2754 * sysdeps/unix/sysv/linux/ifaddrs.c: Determine sin6_scope_id field
2755 value correctly. Patch by Mitsuru Kanda <mk@karaba.org>.
2757 2004-11-04 Jakub Jelinek <jakub@redhat.com>
2759 * libio/fileops.c (_IO_new_file_seekoff): If mode is 0 and
2760 fp->_offset == _IO_pos_BAD, just call _IO_SYSSEEK (fp, 0, dir)
2761 and if successful set fp->_offset.
2762 * libio/Makefile (tests): Add bug-ungetc3.
2763 * libio/bug-ungetc3.c: New test.
2765 2004-11-03 Marcus Brinkmann <marcus@gnu.org>
2767 * sysdeps/gnu/_G_config.h (_G_HAVE_MREMAP): Define symbol.
2768 * sysdeps/mach/hurd/_G_config.h: New file.
2769 * libio/fileops.c (mmap_remap_check) [__linux__]: Replaced with
2772 2004-11-08 Ulrich Drepper <drepper@redhat.com>
2774 * posix/regcomp.c (utf8_sb_map): Define.
2775 (free_dfa_content): Don't free dfa->sb_char if it's a pointer to
2777 (init_dfa): Use utf8_sb_map instead of initializing memory when the
2780 2004-11-03 Paolo Bonzini <bonzini@gnu.org>
2782 * posix/regcomp.c (init_dfa): Get the codeset name outside glibc as
2783 well. Check if it is spelled UTF8 as well as UTF-8, and check
2784 case-insensitively. Set dfa->map_notascii manually when outside
2786 * posix/regex_internal.c (build_wcs_upper_buffer) [!_LIBC]: Enable
2787 optimizations based on map_notascii.
2788 * posix/regex_internal.h [HAVE_LANGINFO_H || HAVE_LANGINFO_CODESET
2789 || _LIBC]: Include langinfo.h.
2791 * posix/regex_internal.h (struct re_backref_cache_entry): Add "more"
2793 * posix/regexec.c (check_dst_limits): Hoist computation of the source
2794 and destination bkref_idx out of the loop. Pass it to
2795 check_dst_limits_calc_pos.
2796 (check_dst_limits_calc_pos_1): New function, containing the recursive
2797 loop of check_dst_limits_calc_pos; uses the "more" field of
2798 struct re_backref_cache to control the loop.
2799 (check_dst_limits_calc_pos): Store into "boundaries" the position
2800 relative to lim's start and end positions. Do not accept eclosures,
2801 accept bkref_idx instead. Call check_dst_limits_calc_pos_1 to do the
2803 (sift_states_bkref): Use the "more" field of struct re_backref_cache
2804 to control the loop. A big "if" was turned into a continue and the
2805 function was reindented.
2806 (get_subexp): Use the "more" field of struct re_backref_cache
2807 to control the loop.
2808 (match_ctx_add_entry): Initialize the bkref_ents' "more" field.
2809 (search_cur_bkref_entry): Return -1 if out of bounds.
2811 * posix/regexec.c (empty_set): Remove.
2812 (sift_states_backward): Remove cur_src variable. Move inner loop
2813 to build_sifted_states.
2814 (build_sifted_states): Extract from sift_states_backward. Do not
2816 (update_cur_sifted_state): Do not use empty_set. Special case
2817 dest_nodes->nelem == 0.
2819 * posix/regex_internal.h (struct re_backref_cache_entry): Remove flag
2821 (struct re_sift_context_t): Remove cur_bkref, cls_subexp_idx,
2822 check_subexp fields. Move limits last.
2823 * posix/regexec.c (match_ctx_clear_flag): Remove.
2824 (sift_ctx_init): Remove check_subexp parameter. Do not set removed
2825 fields. Callers adjusted.
2826 (expand_bkref_cache): Remove last_str parameter. Callers adjusted.
2827 (re_search_internal): Remove fast_translate variable.
2828 (update_cur_sifted_state): Pass candidates as the final parameter
2829 to sift_states_bkref.
2830 (sift_states_bkref): Change last unused parameter to be "candidates",
2831 do not fetch candidates into a local variable.
2832 Remove dead test for "node == sctx->bkref", and the cur_bkref_idx
2834 Remove loops that set/reset the flag field of backref cache entries.
2835 (check_arrival_add_next_nodes): Use a signed int to hold the return
2836 value of re_node_set_insert.
2837 (group_nodes_into_DFAstates): Likewise.
2838 (match_ctx_add_entry): Do not set the flag field of the new entry.
2840 2004-11-05 Roland McGrath <roland@redhat.com>
2842 * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Define
2843 _dl_sysinfo_dso under [NEED_DL_SYSINFO_DSO] as well.
2844 * elf/rtld.c (dl_main): Set up GLRO(dl_sysinfo_dso) under
2845 [NEED_DL_SYSINFO_DSO] as well.
2846 * sysdeps/generic/dl-sysdep.c (_dl_show_auxv): Always include
2847 AT_SYSINFO and AT_SYSINFO_EHDR in name table.
2848 (_dl_sysdep_start) [NEED_DL_SYSINFO_DSO]: Match AT_SYSINFO_EHDR.
2849 * elf/dl-support.c (_dl_sysinfo_dso): Define also under
2850 [NEED_DL_SYSINFO_DSO].
2851 (_dl_aux_init) [NEED_DL_SYSINFO || NEED_DL_SYSINFO_DSO]:
2852 Match AT_SYSINFO_EHDR and set GL(dl_sysinfo_dso).
2854 2004-11-05 Roland McGrath <roland@redhat.com>
2856 * manual/errno.texi (Error Codes): Revert last change for now.
2857 * sysdeps/gnu/errlist.c: Regenerated.
2859 2004-11-04 Roland McGrath <roland@frob.com>
2861 * Makeconfig (link-libc, rpath-dirs): Remove AIX cruft definitions.
2862 (LDFLAGS-rpath-ORIGIN, LDFLAGS-soname-fname): Likewise.
2863 (LDFLAGS-rdynamic, LDFLAGS-Bsymbolic): Likewise.
2864 ($(common-objpfx)gnu/lib-names.stmp): Likewise.
2866 2004-11-01 Jakub Jelinek <jakub@redhat.com>
2868 * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h [__WORDSIZE == 32]
2869 (elf_fpxregset_t): New type.
2870 (struct elf_prpsinfo): If __WORDSIZE == 32, change pr_[ug]id type
2871 to unsigned short int.
2872 * sysdeps/unix/sysv/linux/x86_64/sys/user.h
2873 (struct user_fpregs_struct): Fix comment.
2874 * sysdeps/i386/fpu/bits/mathdef.h (float_t, double_t): If
2875 __FLOAT_EVAL_METHOD__ is defined and 0, typedef to float resp. double.
2876 * sysdeps/x86_64/fpu/bits/mathdef.h: Include bits/wordsize.h.
2877 (float_t, double_t): If -m32 and not -mfpmath=sse, typedef to
2879 * sysdeps/x86_64/fpu/bits/fenv.h: Include bits/wordsize.h.
2880 (fenv_t): Remove __mxcsr field for -m32.
2882 2004-11-04 Jakub Jelinek <jakub@redhat.com>
2884 * libio/ftello.c (ftello): Don't subtract save_end - save_base
2885 if pos is _IO_pos_BAD.
2886 * libio/ftello64.c (ftello64): Likewise.
2887 * libio/iofgetpos.c (_IO_new_fgetpos): Likewise.
2888 * libio/iofgetpos64.c (_IO_new_fgetpos64): Likewise.
2889 * libio/oldiofgetpos.c (_IO_old_fgetpos): Likewise.
2890 * libio/oldiofgetpos64.c (_IO_old_fgetpos64): Likewise.
2891 * libio/ioftell.c (_IO_ftell): Likewise.
2892 Cast to long int instead of off_t when checking for overflow.
2894 2004-11-04 Richard Henderson <rth@redhat.com>
2896 * sysdeps/unix/sysv/linux/alpha/register-dump.h (regnames): Align.
2898 (register_dump): Rewrite to generate into a flat buffer instead
2901 2004-11-02 Jakub Jelinek <jakub@redhat.com>
2903 * debug/tst-chk1.c (ret): New volatile variable.
2904 (CHK_FAIL_END): Remove redundant ret setting.
2905 (do_test): Remote ret variable.
2907 2004-01-03 Paolo Bonzini <bonzini@gnu.org>
2909 * posix/regex_internal.h (__regfree) [!_LIBC]: Define to regfree.
2911 2004-11-03 Marcus Brinkmann <marcus@gnu.org>
2913 * sysdeps/generic/utime.c: Include <stddef.h>.
2915 * sysdeps/generic/sysconf.c: Include <grp.h> and <pwd.h>.
2917 * sysdeps/generic/tempname.c (__path_search): Add missing argument
2920 2004-11-02 Jakub Jelinek <jakub@redhat.com>
2922 * include/features.h (__USE_FORTIFY_LEVEL): Also set for Red Hat
2923 GCC 3.4.x-RH >= 3.4.2-8.
2924 * libio/bits/features.h (printf, fprintf, vprintf, vfprintf): For
2925 GCC 3.4.x-RH use __builtin___{,v}{,f}printf_chk instead of
2926 __{,v}{,f}printf_chk.
2927 * debug/tst-chk1.c (do_test): Deal with GCC 3.4.x-RH not
2928 being able to recognize subobjects.
2930 2004-10-31 Mariusz Mazur <mmazur@kernel.pl>
2932 * sysdeps/unix/sysv/linux/alpha/setregid.c: New file.
2933 * sysdeps/unix/sysv/linux/alpha/setresgid.c: New file.
2934 * sysdeps/unix/sysv/linux/alpha/setresuid.c: New file.
2935 * sysdeps/unix/sysv/linux/alpha/setreuid.c: New file.
2937 2004-10-27 Derek R. Price <derek@ximbiot.com>
2939 [BZ #487] This change is imported from gnulib.
2940 * time/mktime.c (not_equal_tm) [DEBUG]: Remove redundant check.
2942 2004-10-24 Paul Eggert <eggert@cs.ucla.edu>
2945 * time/tst-mktime.c (main): Don't assume that mktime fails
2946 when given time stamps before 1970. It returns negative
2947 time_t values instead, for compatibility with BSD.
2949 * time/tst-mktime2.c: New file.
2950 * time/Makefile (tests): Add it.
2952 [BZ #473] Import from gnulib. Revamp to avoid several problems near
2953 time_t extrema, and on hosts with 64-bit time_t and 32-bit int.
2954 This fixes Debian bug 177940.
2955 * time/mktime.c (TIME_T_MIDPOINT): New macro.
2956 (ydhms_diff): Renamed from ydhms_tm_diff, with a new signature,
2957 which avoids overflow problems on hosts with 64-bit time_t and
2958 32-bit int. All callers changed. Now an inline function.
2959 Verify at compile-time that long int is wide enough to avoid
2960 these overflow problems.
2961 (guess_time_tm): New function.
2962 (__mktime_internal): Use it. Avoid overflow when computing yday on
2963 hosts with 64-bit long and 32-bit int. Remove tests for 69;
2964 no longer needed. Use if rather than #ifdef for LEAP_SECONDS_POSSIBLE
2965 so that the code is checked by more compilers.
2966 Do not rely on floating point to probe: stick to integer arithmetic,
2967 to avoid potential porting problems.
2968 Repair potential overflow correctly in the Southern Hemisphere.
2969 (localtime_offset): Add a FIXME for the case where time_t is unsigned.
2971 2004-10-30 Andreas Schwab <schwab@suse.de>
2973 * sysdeps/m68k/dl-machine.h (elf_machine_rela)
2974 (elf_machine_rela_relative, elf_machine_lazy_rel): Mark auto
2977 2004-10-30 Andreas Schwab <schwab@suse.de>
2979 * sysdeps/unix/sysv/linux/waitid.c: Include <stddef.h> for NULL.
2981 2004-10-30 Ulrich Drepper <drepper@redhat.com>
2983 * malloc/malloc.c (_int_free): Use unique comments for the error
2986 2004-10-28 Roland McGrath <roland@frob.com>
2988 * sysdeps/mach/hurd/i386/tls.h (_hurd_tls_fork): Use i386_thread_state
2989 instead of machine_thread_state.
2991 2004-10-28 Roland McGrath <roland@redhat.com>
2993 * sysdeps/unix/sysv/linux/syscalls.list: Remove setaltroot.
2995 2004-10-28 Ulrich Drepper <drepper@redhat.com>
2997 * elf/dl-open.c (dl_open_worker): Remove reference to glibcbug script.
2999 2004-10-27 Ulrich Drepper <drepper@redhat.com>
3001 * elf/dl-load.c (_dl_map_object): Use cache_rpath to check for
3002 existing rpath in main executable, not explicit test.
3004 2004-10-27 Jakub Jelinek <jakub@redhat.com>
3006 * include/resolv.h (_res_opcodes): New extern.
3007 Add libresolv_hidden_proto.
3008 * resolv/res_debug.c (_res_opcodes): Remove.
3009 (__p_class_syms, __p_type_syms): Add libresolv_hidden_proto
3010 and libresolv_hidden_data_def. Remove attribute_hidden.
3011 * resolv/res_mkquery (_res_opcodes): Remove.
3012 * resolv/res_data.c (_res_opcodes): Remove attribute_hidden.
3013 Add libresolv_hidden_data_def.
3015 2004-10-27 Ulrich Drepper <drepper@redhat.com>
3017 * elf/dl-open.c (_dl_open): Don't allow explicitly opening a DSO
3018 into an empty namespace.
3020 * elf/dl-fini.c (_dl_fini): Fix search for map in maps array.
3021 Reverse order of namespaces.
3022 * elf/Makefile: Add rules to build and run tst-dlmopen3.
3023 * elf/tst-dlmopen3.c: New file.
3024 * elf/tst-dlmopen1mod.c: Add check whether constructor runs.
3026 2004-10-27 Jakub Jelinek <jakub@redhat.com>
3028 * sysdeps/generic/glob.c (globfree): Clear gl_pathv after freeing it.
3029 * posix/Makefile: Add rules to build and run bug-glob2 test.
3030 * posix/bug-glob2.c: New test.
3032 2004-10-27 Roland McGrath <roland@frob.com>
3034 * sysdeps/mach/hurd/i386/tls.h (HURD_TLS_DESC_DECL): New macro.
3035 (_hurd_tls_init): Use it.
3036 (_hurd_tls_fork): New function.
3037 * sysdeps/mach/hurd/fork.c (__fork) [USE_TLS]: Call it.
3039 2004-10-26 Roland McGrath <roland@frob.com>
3041 * sysdeps/mach/hurd/i386/tls.h (_hurd_tls_init): Initialize TCB->tcb.
3043 2004-10-26 Jakub Jelinek <jakub@redhat.com>
3045 * sysdeps/gnu/netinet/udp.h (struct udphdr): Use u_int16_t
3046 type instead of uint16_t. Formatting.
3048 2004-10-25 Roland McGrath <roland@redhat.com>
3050 * login/openpty.c (openpty): Add libutil_hidden_def.
3052 * nss/nss_files/files-parse.c (nss_files_parse_hidden_def): Define to
3053 either libc_hidden_def or libnss_files_hidden_def, not hidden_def.
3054 This file is also compiled into libnss_hesiod by #include.
3056 2004-10-25 Roland McGrath <roland@frob.com>
3058 * sysdeps/unix/bsd/hp: Directory and all files removed.
3059 These are now in the ports repository.
3060 * sysdeps/unix/bsd/osf: Likewise.
3061 * sysdeps/unix/bsd/sequent: Likewise.
3062 * sysdeps/unix/bsd/sony: Likewise.
3063 * sysdeps/unix/bsd/ultrix4: Likewise.
3064 * sysdeps/unix/sysv/aix: Likewise.
3065 * sysdeps/unix/sysv/hpux: Likewise.
3066 * sysdeps/unix/sysv/irix4: Likewise.
3067 * sysdeps/unix/sysv/isc2.2: Likewise.
3068 * sysdeps/unix/sysv/minix: Likewise.
3069 * sysdeps/unix/sysv/sco3.2.4: Likewise.
3070 * sysdeps/unix/sysv/sco3.2: Likewise.
3071 * sysdeps/unix/sysv/sysv4: Likewise.
3073 * configure.in (ASM_LINE_SEP): Move this setting to ...
3074 * sysdeps/hppa/configure.in: ... here, new file.
3075 * sysdeps/hppa/configure: New generated file.
3076 * configure: Regenerated.
3078 2004-10-25 Kaz Kojima <kkojima@rr.iij4u.or.jp>
3080 * sysdeps/sh/dl-machine.h: Include sysdep.h.
3081 (ELF_MACHINE_RUNTIME_TRAMPOLINE): Add CFI directives.
3082 (elf_machine_runtime_setup): Add always_inline attribute.
3083 (_dl_start_user): Pass the correct environ.
3084 (elf_machine_rela): Replace static inline by auto inline, add
3085 always_inline attribute.
3086 (elf_machine_rela_relative): Likewise.
3087 (elf_machine_lazy_rel): Likewise.
3089 2004-10-24 Ulrich Drepper <drepper@redhat.com>
3091 * nis/nis_call.c: Pretty printing. Minor cleanups.
3092 * nis/nis_addmember.c (nis_addmember): Add assert to check buffer
3095 * resolv/nss_dns/dns-host.c: Avoid using PLTs.
3096 * include/libc-symbols.h: Define hidden attribute macros for
3097 libnss_nisplus and libutil.
3098 * include/utmp.h: Add libutil_hidden_proto for login_tty.
3099 * login/login_tty.c: Add libutil_hidden_def.
3100 * nis/nisplus-parser.h: Add libnss_nisplus_hidden_proto for parsers.
3101 * nis/nss_nisplus/nisplus-parser.c: Add libnss_nisplus_hidden_def.
3102 * include/pty.h: New file.
3103 * include/rpcsvc/yp.h: New file.
3104 * include/rpcsvc/ypclnt.h: New file.
3105 * include/rpcsvc/ypupd.h: New file.
3106 * include/libc-symbols.h: Define hidden attribute macros for libnsl.
3107 * include/rpcsvc/nislib.h: Use libnsl_hidden_proto for various
3109 * nis/nis_add.c: Add libnsl_hidden_def. Minor optimizations.
3110 * nis/nis_call.c: Likewise.
3111 * nis/nis_clone_obj.c: Likewise.
3112 * nis/nis_defaults.c: Likewise.
3113 * nis/nis_domain_of_r.c: Likewise.
3114 * nis/nis_error.c: Likewise.
3115 * nis/nis_file.c: Likewise.
3116 * nis/nis_free.c: Likewise.
3117 * nis/nis_local_names.c: Likewise.
3118 * nis/nis_lookup.c: Likewise.
3119 * nis/nis_modify.c: Likewise.
3120 * nis/nis_print.c: Likewise.
3121 * nis/nis_remove.c: Likewise.
3122 * nis/nis_subr.c: Likewise.
3123 * nis/nis_table.c: Likewise.
3124 * nis/nis_util.c: Likewise.
3125 * nis/yp_xdr.c: Likewise.
3126 * nis/ypclnt.c: Likewise.
3127 * nis/ypupdate_xdr.c: Likewise.
3129 * resolv/res_send.c (send_dg): Cope with failures.
3131 * include/libc-symbols.h: Define hidden attribute macros for
3133 * include/netdb.h: Use libnss_files_hidden_proto for the parsers
3134 defined in libnss_files, not libc_hidden_proto.
3135 * include/netinet/ether.h: Likewise.
3136 * include/rpc/netdb.h: Likewise.
3137 * nss/nss_files/files-parse.c: Use hidden_def in parser definitions
3138 instead of libc_hidden_def.
3139 * nss/nss_files/files-netgrp.c: Add libnss_files_hidden_def to
3140 _nss_netgroup_parseline definition.
3142 2004-10-23 Roland McGrath <roland@frob.com>
3144 * sysdeps/mach/hurd/i386/tls.h (_hurd_tls_init): Don't return early
3145 after an RPC succeeds.
3147 * sysdeps/vax, sysdeps/unix/bsd/vax: Directories and all files removed.
3148 These are now in the ports repository.
3149 * sysdeps/tahoe, sysdeps/unix/bsd/tahoe: Likewise.
3150 * sysdeps/cris, sysdeps/unix/sysv/linux/cris: Likewise.
3151 * sysdeps/am29k, sysdeps/i860, sysdeps/i960, sysdeps/m88k: Likewise.
3152 * sysdeps/standalone, sysdeps/z8000: Likewise.
3154 2004-10-23 Ulrich Drepper <drepper@redhat.com>
3156 * resolv/res_send.c (send_dg): Combine write and read to socket
3159 2004-10-22 Roland McGrath <roland@frob.com>
3161 * Makefile (%.bz2, %.gz): Move these pattern rules ...
3162 * Makerules: ... to here.
3164 2001-10-31 Alexandre Oliva <aoliva@redhat.com>
3166 * elf/elf.h: Add R_MN10300_* relocation numbers.
3168 2004-10-22 Paul Eggert <eggert@cs.ucla.edu>
3170 [BZ #471] Fix imported from gnulib.
3171 * time/mktime.c (leapyear, ydms_tm_diff): Year is of type
3172 long int, not int, to avoid problems when tm_year == INT_MAX
3174 (__mktime_intenral): Compute year using long int arithmetic,
3175 not int arithmetic, to avoid problems on hosts where time_t
3176 and long are 64 bits but int is 32.
3178 [BZ #468] Import a fix from gnulib.
3179 * time/mktime.c [! DEBUG]: Do not include <string.h>.
3180 It's needed only if DEBUG is nonzero.
3182 [BZ #470] Import fix from gnulib.
3183 * time/mktime.c [!_LIBC] (__mktime_internal): Define to
3184 mktime_internal, to avoid clashes with any __mktime_internal
3185 function defined in the standard library.
3187 [BZ #469] Imported from gnulib.
3188 * time/mktime.c (__isleap): Remove; all uses replaced by:
3189 (leapyear): New function, which avoids overflow by not adding
3190 1900 to year before testing whether it is a leap year.
3192 [BZ #472] Imported from gnulib.
3193 * time/mktime.c (Local Variables): Remove -DHAVE_TIME_R_POSIX;
3196 2004-10-22 Ulrich Drepper <drepper@redhat.com>
3198 * resolv/res_send.c: Remove compatibility code which is unused in
3199 glibc and probably bitrotten.
3201 * debug/execinfo.h: Remove __THROW from backtrace prototype.
3203 2004-10-22 Jakub Jelinek <jakub@redhat.com>
3205 * sysdeps/i386/Makefile (CFLAGS-backtrace.c): Add -fexceptions.
3206 * sysdeps/i386/backtrace.c: Include <bits/libc-lock.h>, <dlfcn.h>,
3207 <stdlib.h> and <unwind.h>. Remove <bp-checks.h> include.
3208 (struct trace_arg): New type.
3209 (unwind_backtrace, unwind_getip, unwind_getcfa, unwind_getgr): New
3210 fn pointers resp. macros.
3211 (init, backtrace_helper): New functions.
3212 (__backtrace): Rewritten to use _Unwind_Backtrace first and fall
3213 back to frame pointer walking.
3215 2004-10-22 Ulrich Drepper <drepper@redhat.com>
3217 * sysdeps/unix/sysv/linux/Versions: Things are still in flux, it
3218 seems. Undo last additions.
3220 2004-10-21 Ulrich Drepper <drepper@redhat.com>
3222 * posix/execvp.c (execvp): Also ignore ENODEV and ETIMEDOUT errno
3225 2004-10-20 Jakub Jelinek <jakub@redhat.com>
3227 * sysdeps/unix/sysv/linux/readonly-area.c (__readonly_area): If /proc
3228 is not mounted, return 1.
3230 2004-10-20 Roland McGrath <roland@redhat.com>
3232 * Makeconfig ($(common-objpfx)shlib-versions.v.i): Check also
3233 $(config-sysdirs) for shlib-versions files.
3235 * Makeconfig ($(common-objpfx)soversions.i): Replace shell loop with
3237 * scripts/soversions.awk: ... this new file. Collect lib info and
3238 match any DEFAULT line before emitting anything, so DEFAULT can come
3239 later in the concatenation of shlib-versions files.
3241 * manual/errno.texi (Error Codes): Add ENOKEY, EKEYEXPIRED,
3242 EKEYREVOKED, EKEYREJECTED.
3243 * sysdeps/unix/sysv/linux/Versions (libc: GLIBC_2.3.4): New errlist.
3244 * sysdeps/gnu/errlist.c: Regenerated
3246 * sysdeps/gnu/errlist-compat.awk: Don't bail if Versions gives a count
3247 higher than ERR_MAX reports. Instead, emit a #define ERR_MAX.
3248 * sysdeps/gnu/Makefile ($(objpfx)errlist-compat.h): New target.
3249 (generated): Add errlist-compat.h.
3250 * sysdeps/gnu/errlist.awk: Make output #include <errlist-compat.h> to
3251 define ERR_MAX and use that for table size.
3253 2004-10-20 Ulrich Drepper <drepper@redhat.com>
3255 * sysdeps/unix/sysv/linux/syscalls.list: Add entries for setaltroot,
3256 key_add, key_request, and keyctl syscalls.
3257 * sysdeps/unix/sysv/linux/Versions: Export them.
3259 2004-10-19 Roland McGrath <roland@frob.com>
3261 * sysdeps/mach/readonly-area.c: New file.
3263 2004-10-19 Ulrich Drepper <drepper@redhat.com>
3265 * elf/Versions [ld, GLIBC_PRIVATE]: Add _dl_debug_state.
3266 * elf/dl-debug.c (_dl_debug_state): Add rtld_hidden_def.
3267 * sysdeps/generic/ldsodefs.h (_dl_debug_state): Don't mark as
3268 hidden but use rtld_hidden_proto.
3270 2004-10-19 Alfred M. Szmidt <ams@gnu.org>
3272 * sysdeps/generic/readonly-area.c (__readonly_str): Renamed to ...
3273 (__readonly_area): ... this.
3275 2004-10-18 Jakub Jelinek <jakub@redhat.com>
3277 * sysdeps/generic/strcpy_chk.c (__strcpy_chk): Speed up by checking
3278 destlen only every 4 bytes.
3280 2004-10-19 Ulrich Drepper <drepper@redhat.com>
3282 * nss/getent.c (hosts_keys): Let inet_pton decide whether the
3283 string is an address or not.
3285 2004-10-19 Jakub Jelinek <jakub@redhat.com>
3287 * elf/dl-addr.c (_dl_addr): Don't look at STT_TLS symbols.
3288 Use DL_SYMBOL_ADDRESS to set dli_saddr.
3290 * debug/Makefile (catchsegv): Prefix $LIB with a backslash.
3292 2004-10-19 Ulrich Drepper <drepper@redhat.com>
3294 * debug/Makefile ($(objpfx)catchsegv): To support multilib
3295 platforms, use $LIB in path to slibdir.
3297 2004-10-19 Jakub Jelinek <jakub@redhat.com>
3299 * debug/catchsegv.sh: Update copyright year.
3300 Use mktemp to create segv_output file.
3302 2004-10-19 Jakub Jelinek <jakub@redhat.com>
3304 * include/features.h (__USE_FORTIFY_LEVEL): Enable even with
3305 Red Hat gcc4 4.0.0 and above.
3307 2004-10-18 Jakub Jelinek <jakub@redhat.com>
3309 * elf/dl-libc.c (__libc_dlsym_private, __libc_register_dl_open_hook):
3311 (__libc_dlopen_mode): Call __libc_register_dl_open_hook and
3312 __libc_register_dlfcn_hook.
3313 * dlfcn/Makefile (routines, elide-routines.os): Set.
3314 Add rules to build and test tststatic2.
3315 * dlfcn/tststatic2.c: New test.
3316 * dlfcn/modstatic2.c: New test module.
3317 * dlfcn/dladdr.c: Call _dlfcn_hook from libdl.so if not NULL.
3318 Define __ prefixed routine in libc.a and in libdl.a just call it.
3319 * dlfcn/dladdr1.c: Likewise.
3320 * dlfcn/dlclose.c: Likewise.
3321 * dlfcn/dlerror.c: Likewise.
3322 * dlfcn/dlinfo.c: Likewise.
3323 * dlfcn/dlmopen.c: Likewise.
3324 * dlfcn/dlopen.c: Likewise.
3325 * dlfcn/dlopenold.c: Likewise.
3326 * dlfcn/dlsym.c: Likewise.
3327 * dlfcn/dlvsym.c: Likewise.
3328 * dlfcn/sdladdr.c: New file.
3329 * dlfcn/sdladdr1.c: New file.
3330 * dlfcn/sdlclose.c: New file.
3331 * dlfcn/sdlerror.c: New file.
3332 * dlfcn/sdlinfo.c: New file.
3333 * dlfcn/sdlopen.c: New file.
3334 * dlfcn/sdlsym.c: New file.
3335 * dlfcn/sdlvsym.c: New file.
3336 * dlfcn/Versions (libdl): Export _dlfcn_hook@GLIBC_PRIVATE.
3337 * include/dlfcn.h (DL_CALLER_DECL, DL_CALLER RETURN_ADDRESS): Define.
3338 (struct dlfcn_hook): New type.
3339 (_dlfcn_hook): New extern decl.
3340 (__dlopen, __dlclose, __dlsym, __dlerror, __dladdr, __dladdr1,
3341 __dlinfo, __dlmopen, __libc_dlsym_private,
3342 __libc_register_dl_open_hook, __libc_register_dlfcn_hook): New
3344 (__dlvsym): Use DL_CALLER_DECL.
3345 * include/libc-symbols.h: Define libdl_hidden_proto and friends.
3347 * malloc/arena.c (_dl_open_hook): Extern decl.
3348 (ptmalloc_init): Don't call _dl_addr when dlopened from statically
3349 linked programs but don't use brk for them either.
3351 2004-10-18 Roland McGrath <roland@redhat.com>
3353 * dlfcn/bug-dlsym1.c (main): Remove bogus setenv call.
3355 2004-10-18 Ulrich Drepper <drepper@redhat.com>
3357 * elf/dl-open.c (dl_open_worker): Avoid dereferencing map in
3358 statically linked code if there might none be found.
3360 2004-10-06 Maciej W. Rozycki <macro@mips.com>
3362 * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h
3363 (__SYSCALL_CLOBBERS): Add "memory".
3364 * sysdeps/unix/sysv/linux/mips/mips64/n32/sysdep.h
3365 (__SYSCALL_CLOBBERS): Likewise.
3366 * sysdeps/unix/sysv/linux/mips/mips64/n64/sysdep.h
3367 (__SYSCALL_CLOBBERS): Likewise.
3369 2004-10-17 Ulrich Drepper <drepper@redhat.com>
3371 * include/libc-symbols.h: Define libresolv_hidden_proto and friends.
3372 * include/resolv.h: Add libresolv_hidden_proto for symbols defined,
3373 used, and exported in libresolv.
3374 * resolv/base64.c: Add libresolv_hidden_def.
3375 * resolv/gethnamaddr.c: Likewise.
3376 * resolv/ns_name.c: Likewise.
3377 * resolv/ns_netint.c: Likewise.
3378 * resolv/res_comp.c: Likewise.
3379 * resolv/res_data.c: Likewise.
3380 * resolv/res_debug.c: Likewise.
3381 * resolv/res_mkquery.c: Likewise.
3382 * resolv/res_query.c: Likewise.
3383 * resolv/res_send.c: Likewise.
3385 2004-10-15 Jakub Jelinek <jakub@redhat.com>
3387 * elf/dl-minimal.c (__chk_fail): New. Add rtld_hidden_def.
3388 * sysdeps/unix/sysv/linux/readonly-area.c: New file.
3389 * sysdeps/i386/i686/memmove.S (__memmove_chk): Add checking
3391 * sysdeps/i386/i686/memcpy.S (__memcpy_chk): Likewise.
3392 * sysdeps/i386/i686/mempcpy.S (__mempcpy_chk): Likewise.
3393 * sysdeps/i386/i686/memset.S (__memset_chk): Likewise.
3394 * sysdeps/i386/i686/memmove-chk.S: New file.
3395 * sysdeps/i386/i686/memcpy-chk.S: Likewise.
3396 * sysdeps/i386/i686/mempcpy-chk.S: Likewise.
3397 * sysdeps/i386/i686/memset-chk.S: Likewise.
3398 * sysdeps/generic/strcat-chk.c (__strcat_chk): Don't __chk_fail
3399 if exactly fitting into buffer.
3400 * sysdeps/generic/strncat-chk.c (__strncat_chk): Likewise.
3401 * sysdeps/generic/readonly-area.c: New file.
3402 * sysdeps/generic/strncpy-chk.c (__strncpy_chk): Only test
3404 * sysdeps/x86_64/memset.S (__memset_chk): Add checking routine.
3405 * sysdeps/x86_64/memcpy.S (__memcpy_chk): Likewise.
3406 * sysdeps/x86_64/mempcpy.S (__memcpy_chk): Define to __mempcpy_chk.
3407 * sysdeps/x86_64/memcpy-chk.S: New file.
3408 * sysdeps/x86_64/mempcpy-chk.S: Likewise.
3409 * sysdeps/x86_64/memset-chk.S: Likewise.
3410 * sysdeps/x86_64/strcpy-chk.S: Likewise.
3411 * sysdeps/x86_64/stpcpy-chk.S: Likewise.
3412 * argp/argp-xinl.c (__OPTIMIZE__): Define to 1 instead of nothing.
3413 * argp/argp-fs-xinl.c (__OPTIMIZE__): Likewise.
3414 * debug/tst-chk1.c: New test.
3415 * debug/tst-chk2.c: Likewise.
3416 * debug/tst-chk3.c: Likewise.
3417 * debug/test-strcpy_chk.c: Likewise.
3418 * debug/test-stpcpy_chk.c: Likewise.
3419 * debug/vsprintf_chk.c (__vsprintf_chk): If flags > 0, request
3420 _IO_FLAGS2_CHECK_PERCENT_N. Add libc_hidden_def.
3421 * debug/Makefile (routines): Add printf_chk, fprintf_chk, vprintf_chk,
3422 vfprintf_chk, gets_chk and readonly-area.
3423 (CFLAGS-*_chk.c): Set.
3424 (tests): Add tst-chk1, tst-chk2, tst-chk3, test-strcpy_chk and
3426 * debug/vprintf_chk.c: New file.
3427 * debug/printf_chk.c: Likewise.
3428 * debug/vfprintf_chk.c: Likewise.
3429 * debug/fprintf_chk.c: Likewise.
3430 * debug/gets_chk.c: Likewise.
3431 * debug/chk_fail.c (__chk_fail): Add libc_hidden_def.
3432 * debug/snprintf_chk.c (__snprintf_chk): Fix order of arguments
3433 passed to __vsnprintf_chk.
3434 * debug/Versions (libc): Export __printf_chk, __fprintf_chk,
3435 __vprintf_chk, __vfprintf_chk and __gets_chk @GLIBC_2.3.4.
3436 * debug/vsnprintf_chk.c (__vsnprintf_chk): Don't call
3437 __vsnprintf, instead create a temporary file with
3438 _IO_strn_jumps jumptable. If flags > 0, request
3439 _IO_FLAGS2_CHECK_PERCENT_N. Add libc_hidden_def.
3440 * libio/Makefile (headers): Add bits/stdio2.h.
3441 * libio/stdio.h: Include <bits/stdio2.h> if __USE_FORTIFY_LEVEL.
3442 (sprintf, snprintf, vsprintf, vsnprintf): Remove defines.
3443 * libio/strfile.h (_IO_strnfile): New type.
3444 (_IO_strn_jumps): New extern.
3445 * libio/vsnprintf.c (_IO_strnfile): Remove.
3446 (_IO_strn_jumps): Remove static.
3447 * libio/bits/stdio2.h: New file.
3448 * libio/vswprintf.c (_IO_strnfile): Rename type to...
3449 (_IO_wstrnfile): ...this. Adjust all uses.
3450 * libio/libio.h (_IO_FLAGS2_CHECK_PERCENT_N): Define.
3451 * stdio-common/vfprintf.c (STR_LEN): Define.
3452 (vfprintf): Add readonly_format variable.
3453 Handle _IO_FLAGS2_CHECK_PERCENT_N.
3454 (buffered_vfprintf): Copy _flags2.
3455 * include/stdio.h (__sprintf_chk, __snprintf_chk, __vsprintf_chk,
3456 __vsnprintf_chk, __printf_chk, __fprintf_chk, __vprintf_chk,
3457 __vfprintf_chk): New prototypes.
3458 (__vsprintf_chk, __vsnprintf_chk): Add libc_hidden_proto.
3459 * include/string.h (__memcpy_chk, __memmove_chk, __mempcpy_chk,
3460 __memset_chk, __strcpy_chk, __stpcpy_chk, __strncpy_chk, __strcat_chk,
3461 __strncat_chk): New prototypes.
3462 * include/bits/string3.h: New file.
3463 * include/sys/cdefs.h (__chk_fail): Add libc_hidden_proto
3464 and rtld_hidden_proto.
3465 * string/Makefile (headers): Add bits/string3.h.
3466 * string/bits/string3.h (bcopy, bzero): New defines.
3467 (memset, memcpy, memmove, strcpy, strncpy, strcat, strncat): Change
3468 macros so that inlines are used only if unknown destination size
3469 or side-effects in destination argument.
3470 (mempcpy, stpcpy): Likewise. Protect with #ifdef __USE_GNU.
3472 2004-09-16 Ulrich Drepper <drepper@redhat.com>
3474 * debug/Makefile (routines): Add *_chk.
3475 * debug/Versions (libc): Export __chk_fail, __memcpy_chk,
3476 __memmove_chk, __mempcpy_chk, __memset_chk, __stpcpy_chk,
3477 __strcat_chk, __strcpy_chk, __strncat_chk, __strncpy_chk,
3478 __sprintf_chk, __vsprintf_chk, __snprintf_chk, __vsnprintf_chk
3480 * debug/chk_fail.c: New file.
3481 * debug/snprintf_chk.c: Likewise.
3482 * debug/sprintf_chk.c: Likewise.
3483 * debug/vsnprintf_chk.c: Likewise.
3484 * debug/vsprintf_chk.c: Likewise.
3485 * include/features.h (_FORTIFY_SOURCE): Document, handle.
3486 (__USE_FORTIFY_LEVEL): Define.
3487 (__GNUC_PREREQ): Move to earlier location.
3488 * include/sys/cdefs.h (__chk_fail): New prototype.
3489 * libio/bits/stdio.h (sprintf, vsprintf, snprintf, vsnprintf):
3490 Define if __USE_FORTIFY_LEVEL.
3491 * misc/sys/cdefs.h (__bos, __bos0): Define.
3492 * string/string.h: Include <bits/string3.h> if __USE_FORTIFY_LEVEL.
3493 * bits/string/string3.h: New header.
3494 * sysdeps/generic/memcpy_chk.c: New file.
3495 * sysdeps/generic/memmove_chk.c: Likewise.
3496 * sysdeps/generic/mempcpy_chk.c: Likewise.
3497 * sysdeps/generic/memset_chk.c: Likewise.
3498 * sysdeps/generic/stpcpy_chk.c: Likewise.
3499 * sysdeps/generic/strcat_chk.c: Likewise.
3500 * sysdeps/generic/strcpy_chk.c: Likewise.
3501 * sysdeps/generic/strncat_chk.c: Likewise.
3502 * sysdeps/generic/strncpy_chk.c: Likewise.
3504 2004-10-17 Roland McGrath <roland@frob.com>
3506 * manual/memory.texi (Page Lock Functions): Typo fix.
3507 Reported by Carlos Maziero <maziero@ppgia.pucpr.br>
3509 2004-10-16 Alfred M. Szmidt <ams@kemisten.nu>
3511 * sysdeps/mach/hurd/Makefile (link-libc-static): Use
3512 `$(static-gnulib') instead of `$(gnulib)'.
3514 2004-10-17 Ulrich Drepper <drepper@redhat.com>
3516 * sunrpc/rpc_clntout.c: Avoid including rcsid into binary.
3517 * sunrpc/rpc_cout.c: Likewise.
3518 * sunrpc/rpc_hout.c: Likewise.
3519 * sunrpc/rpc_main.c: Likewise.
3520 * sunrpc/rpc_parse.c: Likewise.
3521 * sunrpc/rpc_sample.c: Likewise.
3522 * sunrpc/rpc_scan.c: Likewise.
3523 * sunrpc/rpc_svcout.c: Likewise.
3524 * sunrpc/rpc_tblout.c: Likewise.
3525 * sunrpc/rpc_util.c: Likewise.
3527 2004-10-15 Jakub Jelinek <jakub@redhat.com>
3529 * sysdeps/unix/sysv/linux/i386/sysdep.h (PUSHARGS_6, DOARGS_6,
3530 POPARGS_6, _PUSHARGS_6, _DOARGS_6, _POPARGS_6): Define.
3531 * sysdeps/unix/sysv/linux/i386/syscall.S (syscall): Handle 6 argument
3534 2004-10-15 Ulrich Drepper <drepper@redhat.com>
3536 * nscd/nscd.h (_PATH_NSCD_PASSWD_DB): Move to /var/db.
3537 (_PATH_NSCD_GROUP_DB): Likewise.
3538 (_PATH_NSCD_HOSTS_DB): Likewise.
3539 (_PATH_NSCD_XYZ_DB_TMP): New #define, point to /var/run.
3540 * nscd/connections.c (nscd_init): Non-persistent database files
3541 are created with the _PATH_NSCD_XYZ_DB_TMP path.
3542 * nscd/nscd.init: Create /var/db/nscd if necessary.
3544 2004-10-15 Richard Henderson <rth@redhat.com>
3546 * sysdeps/unix/sysv/linux/alpha/register-dump.h: New file.
3547 * sysdeps/unix/sysv/linux/alpha/sigcontextinfo.h (SIGCONTEXT): Add
3548 _code argument, pass sigcontext by pointer.
3549 (SIGCONTEXT_EXTRA_ARGS): Likewise.
3550 (GET_PC, GET_FRAME, GET_STACK): Expect ctx as pointer.
3552 2004-10-14 Richard Henderson <rth@redhat.com>
3554 * sysdeps/alpha/dl-machine.h (elf_machine_rela,
3555 elf_machine_rela_relative, elf_machine_lazy_rel): Mark auto
3558 * sysdeps/unix/sysv/linux/adjtime.c (ADJTIME): Use prototype
3560 * sysdeps/unix/sysv/linux/alpha/adjtime.c (ADJTIME): If
3561 __ASSUME_TIMEVAL64, define __adjtime directly rather than
3564 2004-10-14 Ulrich Drepper <drepper@redhat.com>
3566 * nscd/Makefile: When using compilers without -fpie support, also
3567 link with -lselinux if necessary.
3568 Patch by Arkadiusz Miskiewicz <arekm@pld-linux.org>.
3570 * nscd/connections.c (nscd_init): Remove file if not persistent
3571 and not shared. Patch by Jerome Borsboom <j.borsboom@erasmusmc.nl>.
3573 2004-10-14 Jakub Jelinek <jakub@redhat.com>
3575 * sysdeps/unix/sysv/linux/i386/setresuid.c: Handle
3576 defined __NR_setresuid32 && !defined __NR_setresuid.
3577 * sysdeps/unix/sysv/linux/i386/setresgid.c: Handle
3578 defined __NR_setresgid32 && !defined __NR_setresgid.
3580 * sysdeps/sparc/fpu/bits/mathinline.h (__signbitf, __signbit,
3581 __signbitl, sqrtf, sqrt, sqrtl, fdim, fdimf): Use __NTH macro.
3583 * sysdeps/generic/errno-loc.c: Don't undef #errno
3584 if RTLD_PRIVATE_ERRNO.
3585 * include/errno.h (__errno_location): If RTLD_PRIVATE_ERRNO,
3586 add attribute_hidden.
3588 * dlfcn/dlinfo.c (dlinfo_doit): Replace iteration over GL(dl_loaded)
3589 chain with iteration over all namespaces' _ns_loaded chains.
3590 * sysdeps/powerpc/powerpc32/dl-machine.c (__elf_preferred_address):
3592 * sysdeps/mips/dl-machine.h (elf_machine_runtime_link_map): Likewise.
3594 * elf/rtld.c (_dl_start): Fix one last dl_loaded.
3595 * elf/dl-load.c (_dl_map_object_from_fd): Avoid definition of
3596 label when it is not needed.
3597 * elf/dl-close.c (_dl_close): Typo: & -> &&.
3599 2004-10-12 Jakub Jelinek <jakub@redhat.com>
3601 * sysdeps/generic/segfault.c: Include alloca.h and stdint.h.
3602 Don't include frame.h.
3603 (CURRENT_STACK_FRAME, INNER_THAN, ADVANCE_STACK_FRAME): Remove.
3604 (catch_segfault): Use backtrace function.
3606 * sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h: Fix comment.
3607 * sysdeps/unix/sysv/linux/ia64/register-dump.h: New file.
3608 * sysdeps/unix/sysv/linux/ia64/sigcontextinfo.h (GET_PC): Return sc_ip
3611 2004-10-13 Ulrich Drepper <drepper@redhat.com>
3613 Add support for namespaces in the dynamic linker.
3614 * dlfcn/Makefile (libdl-routines): Add dlmopen.
3615 * dlfcn/Versions [libdl, GLIBC_2.3.4]: Add dlmopen.
3616 * dlfcn/dlfcn.h: Define Lmid_t, LM_ID_BASE, and LM_ID_NEWLM.
3617 Declare dlmopen. Document RTLD_DI_LMID.
3618 * dlfcn/dlinfo.c: Handle RTLD_DI_LMID.
3619 * dlfcn/dlmopen.c: New file.
3620 * dlfcn/dlopen.c: Pass new parameter to _dl_open.
3621 * dlfcn/dlopenold.c: Likewise.
3622 * elf/dl-addr.c: Adjust for removal of GL(dl_loaded).
3623 * elf/dl-caller.c: Likewise.
3624 * elf/dl-close.c: Likewise.
3625 * elf/dl-conflict.c: Likewise.
3626 * elf/dl-debug.c: Likewise.
3627 * elf/dl-lookup.c: Likewise.
3628 * elf/dl-sym.c: Likewise.
3629 * elf/dl-version.c: Likewise.
3630 * elf/do-lookup.h: Likewise.
3631 * elf/rtld.c: Likewise.
3632 * sysdeps/unix/sysv/linux/i386/dl-librecon.h: Likewise.
3633 * elf/dl-depsc: Likewise. Add new parameter to _dl_map_object.
3634 * elf/dl-fini.c: Call destructors in all namespaces.
3635 * elf/dl-iteratephdr.c: Compute total nloaded. Adjust for removal of
3637 * elf/dl-libc.c: Pass new parameter to _dl_open. Adjust for removal
3639 * elf/dl-load.c (_dl_map_object_from_fd): Don't load ld.so a second
3640 time. Reuse the one from the main namespace in all others.
3641 Pass new parameter to _dl_new_object.
3642 Adjust for removal of GL(dl_loaded).
3643 * elf/dl-object.c: Take new parameter. Use it to initialize l_ns.
3644 Adjust for removal of GL(dl_loaded).
3645 * elf/dl-open.c (_dl_open): Take new parameter.
3646 Adjust for removal of GL(dl_loaded).
3647 * elf/dl-support.c: Replace global _dl_loaded etc variables with
3649 * include/dlfcn.h: Adjust prototype of _dl_open.
3650 Define __LM_ID_CALLER.
3651 * include/link.h: Add l_real, l_ns, and l_direct_opencount elements.
3652 * sysdeps/generic/dl-tls.c: Bump TLS_STATIC_SURPLUS. Since libc is
3653 using TLS we need memory appropriate to the number of namespaces.
3654 * sysdeps/generic/ldsodefs.h (struct rtld_global): Replace _dl_loaded,
3655 _dl_nloaded, _dl_global_scope, _dl_main_searchlist, and
3656 _dl_global_scope_alloc with _dl_ns element. Define DL_NNS.
3657 Adjust prototypes of _dl_map_object and member in rtld_global_ro.
3658 * malloc/malloc.c: Include <dlfcn.h>.
3659 * malloc/arena.c (ptmalloc_init): If libc is not in primary namespace,
3661 * elf/Makefile: Add rules to build and run tst-dlmopen1 and
3663 * elf/tst-dlmopen1.c: New file.
3664 * elf/tst-dlmopen1mod.c: New file.
3665 * elf/tst-dlmopen2.c: New file.
3667 * elf/dl-close.c: Improve reference counting by tracking direct loads.
3668 * elf/dl-lookup.c (add_dependency): Likewise.
3669 * elf/dl-open.c (dl_open_worker): Likewise.
3670 * elf/rtld.c (dl_main): Likewise.
3672 2004-09-09 GOTO Masanori <gotom@debian.or.jp>
3675 * elf/dl-close.c: Count down l_opencount to check not only for
3676 l_reldeps, but also l_initfini.
3678 2004-10-13 Ulrich Drepper <drepper@redhat.com>
3680 * elf/dl-close.c (_dl_close): Update bug reporting instructions.
3682 2004-10-11 Ulrich Drepper <drepper@redhat.com>
3684 * timezone/asia: Update from tzdata2004e.
3685 * timezone/southamerica: Likewise.
3686 * timezone/private.h: Update from tzcode2004e.
3687 * timezone/zdump.c: Likewise.
3689 * stdio-common/vfscanf.c: Add support for reading localized
3690 digits. Patch mainly by Hamed Malek <hamed@bamdad.org>.
3692 * resolv/res_init.c (res_thread_freeres): Reset _res.options.
3695 * resolv/res_send.c (send_dg): Use nonblocking sockets. Add
3696 appropriate poll/select calls and restart operation if necessary.
3699 * elf/tst-dlopenrpath.c (do_test): Enable code which was disabled
3702 * elf/dl-sym.c (do_sym): Avoid using global variable.
3704 * elf/dl-addr.c (_dl_addr): Really use match everywhere.
3706 2004-10-09 Andreas Schwab <schwab@suse.de>
3708 * sysdeps/m68k/memcopy.h (WORD_COPY_BWD): Remove use of cast as
3711 * sysdeps/m68k/fpu/bits/mathinline.h: Remove __THROW from inline
3714 2004-10-07 Andreas Schwab <schwab@suse.de>
3716 * misc/sys/uio.h: Change __vector to __iovec to avoid clash with
3719 2004-10-06 Alan Modra <amodra@bigpond.net.au>
3721 * gmon/Makefile (CFLAGS-mcount.c): Move before inclusion of "Rules".
3722 * sysdeps/powerpc/powerpc64/Makefile (CFLAGS-mcount.c): Add
3724 * sysdeps/powerpc/powerpc64/sysdep.h (SAVE_ARG, REST_ARG): New macros.
3725 (CALL_MCOUNT): Replace with a gas macro implementation.
3726 (EALIGN): Delete PROF version.
3727 * sysdeps/powerpc/powerpc64/__longjmp-common.S: Invoke CALL_MCOUNT.
3728 * sysdeps/powerpc/powerpc64/bsd-_setjmp.S: Likewise.
3729 * sysdeps/powerpc/powerpc64/bsd-setjmp.S: Likewise.
3730 * sysdeps/powerpc/powerpc64/setjmp-common.S: Likewise.
3731 * sysdeps/powerpc/powerpc64/memcpy.S: Likewise.
3732 * sysdeps/powerpc/powerpc64/memset.S: Likewise.
3733 * sysdeps/powerpc/powerpc64/stpcpy.S: Likewise.
3734 * sysdeps/powerpc/powerpc64/strchr.S: Likewise.
3735 * sysdeps/powerpc/powerpc64/strcmp.S: Likewise.
3736 * sysdeps/powerpc/powerpc64/strcpy.S: Likewise.
3737 * sysdeps/powerpc/powerpc64/strlen.S: Likewise.
3738 * sysdeps/powerpc/powerpc64/strncmp.S: Likewise.
3739 * sysdeps/powerpc/powerpc64/fpu/s_ceil.S: Likewise.
3740 * sysdeps/powerpc/powerpc64/fpu/s_ceilf.S: Likewise.
3741 * sysdeps/powerpc/powerpc64/fpu/s_copysign.S: Likewise.
3742 * sysdeps/powerpc/powerpc64/fpu/s_floor.S: Likewise.
3743 * sysdeps/powerpc/powerpc64/fpu/s_floorf.S: Likewise.
3744 * sysdeps/powerpc/powerpc64/fpu/s_llrint.S: Likewise.
3745 * sysdeps/powerpc/powerpc64/fpu/s_llrintf.S: Likewise.
3746 * sysdeps/powerpc/powerpc64/fpu/s_llround.S: Likewise.
3747 * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S: Likewise.
3748 * sysdeps/powerpc/powerpc64/fpu/s_rint.S: Likewise.
3749 * sysdeps/powerpc/powerpc64/fpu/s_rintf.S: Likewise.
3750 * sysdeps/powerpc/powerpc64/fpu/s_round.S: Likewise.
3751 * sysdeps/powerpc/powerpc64/fpu/s_roundf.S: Likewise.
3752 * sysdeps/powerpc/powerpc64/fpu/s_trunc.S: Likewise.
3753 * sysdeps/powerpc/powerpc64/fpu/s_truncf.S: Likewise.
3755 * sysdeps/powerpc/powerpc64/setjmp-common.S: Add extra entry point
3757 * sysdeps/powerpc/powerpc64/bsd-_setjmp.S: Use it.
3758 * sysdeps/powerpc/powerpc64/bsd-setjmp.S: Likewise.
3760 2004-10-06 Ulrich Drepper <drepper@redhat.com>
3762 * resolv/res_mkquery.c (res_nmkquery): Reject randombits value if
3763 low 16 bits are zero.
3765 2004-10-06 Jakub Jelinek <jakub@redhat.com>
3767 * posix/tst-getaddrinfo2.c: Include stdlib.h and string.h.
3768 (do_test): Use %p instead of 0x%08X to print a pointer.
3770 * malloc/malloc.c: Include stdio-common/_itoa.h.
3772 2004-10-05 Ulrich Drepper <drepper@redhat.com>
3774 * elf/rtld.c (dl_main): Use _dl_debug_printf instead of _dl_printf
3775 for prelink message.
3777 2004-10-05 Jakub Jelinek <jakub@redhat.com>
3779 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Include dl-sysdep.h.
3780 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
3782 2004-10-05 Ulrich Drepper <drepper@redhat.com>
3784 * grp/initgroups.c: Remove duplicate group IDs.
3785 * grp/compat-initgroups.c: Likewise.
3786 * nscd/initgrcache.c: Likewise.
3788 2004-10-05 Jakub Jelinek <jakub@redhat.com>
3790 * sysdeps/unix/sysv/linux/x86_64/sysconf.c (__sysconf): Return 200112L
3791 for _SC_CPUTIME or _SC_THREAD_CPUTIME.
3793 * nscd/Makefile (nscd-cflags): Set to -DIS_IN_nscd=1, plus
3794 -fpie if building PIE.
3795 (CFLAGS-*.c): Use it.
3797 * nscd/Makefile (relro-LDFLAGS): Add -Wl,-z,now if have-z-relro.
3798 ($(objpfx)nscd): Add $(relro-LDFLAGS).
3800 * sysdeps/unix/sysv/linux/i386/sysconf.c: Include hp-timing.h.
3801 (__sysconf): Return -1 for _SC_CPUTIME or _SC_THREAD_CPUTIME if
3804 2004-10-05 Ulrich Drepper <drepper@redhat.com>
3806 * nscd/Makefile (distribute): Remove TODO.
3807 * nscd/TODO: Removed.
3809 2004-10-04 Ulrich Drepper <drepper@redhat.com>
3811 * nscd/gai.c: Define __no_netlink_support if NEED_NETLINK is
3812 defined and __ASSUME_NETLINK_SUPPORT is zero.
3813 * sysdeps/unix/sysv/linux/Makefile (CFLAGS-gai.c): Add
3816 * malloc/mtrace.pl: Avoid calling location unless it is needed for
3817 output. Patch by Edward Bishop <binutils@gmail.com>.
3819 * nscd/Makefile (CFLAGS-gai.c): Add -fpie.
3821 2004-10-04 H.J. Lu <hongjiu.lu@intel.com>
3823 * sysdeps/unix/sysv/linux/ia64/clock_getcpuclockid.c
3824 (clock_getcpuclockid): Add missing retval.
3826 * sysdeps/unix/sysv/linux/ia64/sysconf.c (linux_sysconf): Fix a typo.
3828 2004-10-04 Roland McGrath <roland@redhat.com>
3830 * include/errno.h [RTLD_PRIVATE_ERRNO] (errno): Rename the real symbol
3832 * sysdeps/generic/errno.c [RTLD_PRIVATE_ERRNO] (rtld_errno): Define it,
3833 and don't define any other errno names.
3834 * sysdeps/unix/alpha/sysdep.h [RTLD_PRIVATE_ERRNO]: Use rtld_errno in
3836 * sysdeps/unix/i386/sysdep.S: Likewise.
3837 * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
3838 * sysdeps/unix/sysv/linux/ia64/sysdep.S: Likewise.
3839 * sysdeps/unix/sysv/linux/m68k/sysdep.h: Likewise.
3840 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S: Likewise.
3841 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
3842 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S: Likewise.
3843 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
3844 * sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise.
3845 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
3846 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
3847 * sysdeps/unix/x86_64/sysdep.S: Likewise.
3849 * sysdeps/generic/errno.c [! USE___THREAD] (errno): Use `nocommon'
3850 attribute instead of `section'.
3852 2004-10-04 Ulrich Drepper <drepper@redhat.com>
3854 * sysdeps/unix/sysv/linux/ia64/sysconf.c: New file.
3855 * sysdeps/unix/sysv/linux/ia64/Dist: Add has_cpuclock.c.
3856 * sysdeps/unix/sysv/linux/ia64/clock_getcpuclockid.c: Move actual
3858 * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c: ...here. New file.
3859 * sysdeps/unix/sysv/linux/i386/sysconf.c: Add dynamic check for
3860 _SC_CPUTIME and _SC_THREAD_CPUTIME.
3862 * nscd/connections.c (start_threads): Use sysconf in case
3863 _POSIX_CLOCK_SELECTION or _POSIX_MONOTONIC_CLOCK is not greater zero.
3865 * nscd/Makefile (nscd-modules): Add gai.
3866 * nscd/gai.c: New file.
3867 * nscd/nscd.c: Remove getaddrinfo stub definition.
3869 * assert/assert.h: Give up on using __builtin_expect.
3871 * elf/rtld.c (dl_main): Only skip => output in ldd mode if both
3872 strings are identical.
3874 2004-03-18 Jakub Jelinek <jakub@redhat.com>
3876 * malloc/arena.c (aligned_heap_area): New variable.
3877 (new_heap): If aligned_heap_area != NULL, attempt to use that
3878 first. If HEAP_MAX_SIZE << 1 area is already HEAP_MAX_SIZE bytes
3879 aligned, remember the second half in aligned_heap_area.
3880 (delete_heap): Clear aligned_heap_area if deleting the area right
3881 before aligned_heap_area.
3883 2004-10-03 Juerg Billeter <j@bitron.ch>
3885 * nscd/nscd_initgroups.c (__nscd_getgrouplist): Return -1 if nscd
3886 can't be used. [BZ #424]
3888 2004-10-03 Ulrich Drepper <drepper@redhat.com>
3890 Dynamically create new threads if necessary.
3891 * nscd/connections.c (fd_ready): If no thread available for processing
3892 the request, create a new one unless the limit is reached.
3893 (start_threads): Check errors from pthread_create.
3894 * nscd/nscd.h: Declare max_nthreads.
3895 * nscd/nscd_conf.c: Parse max-nthreads entry.
3896 * nscd/nscd.conf: Add max-threads entry.
3897 * nscd/nscd_stat.c: Print current and maximum number of threads.
3899 Implement paranoia mode.
3900 * nscd/connections.c (nscd_init): Mark database and socket descriptors
3902 (restart): New function.
3903 (restart_p): New function.
3904 (nscd_run): Add missing descrement of nready in case readylist is
3906 (main_loop_poll): Call restart_p and restart.
3907 (main_loop_epoll): Likewise.
3908 (begin_drop_privileges): Save original UID and GID.
3909 * nscd/nscd.c: Define new variables paranoia, restart_time,
3910 restart_interval, oldcwd, old_gid, old_uid.
3911 (main): Disable paranoia mode if we are not forking.
3912 (check_pid): When re-execing, the PID file contains the same PID as
3913 the current process. Do not fail in this case.
3914 * nscd/nscd.conf: Add paranoia and restart-interval entries.
3915 * nscd/nscd.h: Define RESTART_INTERVAL. Declare new variables.
3916 * nscd/nscd_conf.c: Parse paranoia and restart-internal configurations.
3917 * nscd/nscd_stat.c: Print paranoia and restart-internal values.
3919 * nscd/connections.c: Implement alternative loop for main thread
3921 * sysdeps/unix/sysv/linux/Makefile [subdir=nscd]
3922 (CFLAGS-connections.c): Add -DHAVE_EPOLL.
3924 2004-10-02 Ulrich Drepper <drepper@redhat.com>
3926 * nscd/Makefile (CFLAGS-initgrcache.c): Add to CFLAGS-* variables,
3927 don't replace old content.
3929 * nscd/connections.c: Rewrite handling of incoming connections. All
3930 are handled by one thread which then hands off the descriptors for the
3931 real work to the worker threads.
3932 * nscd/Makefile: Link nscd with librt.
3934 * nscd/selinux.c: Pretty printing.
3936 * nscd/dbg_log.c (dbg_log): Don't add unnecessary newline to
3937 output. Let syslog do the formatting if debug_level == 0.
3939 * nscd/nscd_helper.c (get_mapping): No need to check timestamp if
3940 nscd_certainly_running is nonzero.
3942 2004-10-02 Simon Josefsson <jas@extundo.com>
3945 * sysdeps/generic/memmem.c [!_LIBC]: Define __builtin_expect, to
3946 make the file usable inside gnulib.
3948 2004-10-01 Ulrich Drepper <drepper@redhat.com>
3950 * malloc/malloc.c (public_vALLOc): Add missing use of hooks.
3951 (public_pVALLOc): Likewise.
3953 * nscd/nscd_initgroups.c (__nscd_getgrouplist): Always add the
3954 group the caller provided unless there is a real problem.
3956 * posix/bug-glob1.c (prepare): Fix creation of symlink.
3958 2004-09-30 Ulrich Drepper <drepper@redhat.com>
3960 * posix/Makefile: Add rules to build and run bug-glob1.
3961 * posix/bug-glob1.c: New file.
3963 * iconv/iconv_prog.c (main): Print progress information to stderr.
3965 * nscd/nscd.c (termination_handler): Reset timestamp so that
3966 clients immediately stop using the database.
3968 * nscd/nscd-client.h (__nscd_get_map_ref): Drop volatile from last
3970 (__nscd_drop_map_ref): Change second parameter to be a reference to
3971 a variable. Update variable when cycle count changed.
3972 * nscd/nscd_helper.c (__nscd_get_map_ref): Remove volatile here, too.
3973 * nscd/nscd_getai.c: Correctly use __nscd_drop_map_ref. Reinitialize
3974 all variables and avoid memory leak in case of retries.
3975 * nscd/nscd_getgr_r.c: Likewise.
3976 * nscd/nscd_gethst_r.c: Likewise.
3977 * nscd/nscd_getpw_r.c: Likewise.
3978 * nscd/nscd_initgroups.c: Likewise.
3980 * nscd/nscd.h: Add declaration of addinitgroups and
3983 2004-09-30 Andreas Jaeger <aj@suse.de>
3985 * nscd/Makefile (CFLAGS-nscd_initgroups.c): Set to -fpie.
3986 (CFLAGS-initgrcache.c): Set to -fexceptions.
3988 2004-09-29 Ulrich Drepper <drepper@redhat.com>
3990 * sysdeps/generic/glob.c (glob_in_dir): Don't blindly trust
3991 readdir results; for symlinks or files of unknown type check using
3992 stat whether the file exists.
3994 * posix/tst-gnuglob.c (find_file): Handle leading "./". Fix
3995 recognition of files.
3997 2004-09-29 Jakub Jelinek <jakub@redhat.com>
3999 * time/tzfile.c (tzfile_mtime): New variable.
4000 (__tzfile_read): Reread the file if mtime is different.
4002 2004-09-28 Jakub Jelinek <jakub@redhat.com>
4004 * sysdeps/alpha/fpu/bits/mathinline.h (__fdimf, __fdim, fdimf, fdim):
4006 * sysdeps/powerpc/fpu/bits/mathinline.h (fdim, fdimf): Likewise.
4007 * sysdeps/sparc/fpu/bits/mathinline.h (fdim, fdimf): Likewise.
4009 2004-09-29 Ulrich Drepper <drepper@redhat.com>
4011 * nscd/nscd_gethst_r.c (nscd_gethst_r): Use correct constant for
4012 testing result of __nscd_get_map_ref.
4014 2004-09-29 Jakub Jelinek <jakub@redhat.com>
4016 * sysdeps/i386/fpu/s_fdim.S (__fdim): Handle +inf/+inf.
4017 * sysdeps/i386/fpu/s_fdimf.S (__fdimf): Likewise.
4018 * sysdeps/i386/fpu/s_fdiml.S (__fdiml): Likewise.
4020 004-09-29 Ulrich Drepper <drepper@redhat.com>
4022 * grp/initgroups.c: Move compat_call implementation...
4023 * grp/compat-initgroups.c: ...to here. New file.
4024 * grp/Makefile (distribute): Add compat-initgroups.c.
4025 (CFLAGS-initgroups.c): Add -DUSE_NSCD=1.
4026 * mscd/initgrcache.c: New file.
4027 * nscd/nscd_initgroups.c: New file.
4028 * nscd/Makefile (routines): Add nscd_initgroups.
4029 (nscd-modules): Add initgrcache.
4030 * nscd/cache.c (prune_cache): Add support for INITGROUPS entries.
4031 * nscd/connections.c: Handle INITGROUPS requests.
4032 * nscd/nscd-client.h: Define INITGROUPS, initgr_response_header.
4033 Add initgrdata element to struct datahead. Fix typo in comment.
4034 * nscd/nscd_proto.h: Declare __nscd_getgrouplist. Fix parameter
4035 type in __nscd_getgrgrid_r.
4036 * nscd/selinux.c (perms): Add INITGROUPS entry.
4038 * nscd/nscd_getai.c: No need to include <sys/mman.h>.
4040 * sunrpc/get_myaddr.c (get_myaddress): Account for interfaces without
4042 * sunrpc/pmap_clnt.c (__get_myaddress): Likewise.
4043 * sunrpc/pmap_rmt.c (getbroadcastnets): Likewise.
4044 * sunrpc/clnt_udp.c (is_network_up): Likewise.
4046 * nscd/nscd.c: Define getaddrinfo hidden so that it is never found
4049 * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h (si_segvflags):
4050 Renamed from si_flags due to conflict with si_flags from <elf.h>.
4052 2004-09-28 Ulrich Drepper <drepper@redhat.com>
4054 * nscd/nscd_getai.c: Use NO_MAPPING instead of MAP_FAILED for test
4055 of failing __nscd_get_map_ref. Fix a few typos.
4057 * sysdeps/unix/sysv/linux/sigwait.c (do_sigwait): Make sure
4058 SIGSETXID is not blocked.
4059 * sysdeps/unix/sysv/linux/sigwaitinfo.c (do_sigwaitinfo): Likewise.
4060 * sysdeps/unix/sysv/linux/sigtimedwait.c (do_sigtimedwait): Likewise.
4061 * sysdeps/unix/sysv/linux/sigprocmask.c (__sigprocmask): Likewise.
4062 * sysdeps/generic/sigfillset.c (sigfillset): Don't set SIGSETXID.
4064 * sunrpc/get_myaddr.c (get_myaddress): Fix test for failing
4066 * sunrpc/pmap_clnt.c (__get_myaddress): Likewise.
4067 * sunrpc/pmap_rmt.c (getbroadcastnets): Likewise.
4068 * sunrpc/Makefile (xtests): Add tst-getmyaddr.
4069 * sunrpc/tst-getmyaddr.c: New file.
4071 * malloc/arena.c (ptmalloc_init): Allow MALLOC_CHECK_==0 to
4072 disable all checking.
4074 * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h (si_flags): Add
4075 support to get this value.
4077 2004-09-28 Jakub Jelinek <jakub@redhat.com>
4079 * io/utime.h (utime): Allow second argument to be NULL.
4081 2004-09-28 Ulrich Drepper <drepper@redhat.com>
4083 * sysdeps/posix/getaddrinfo.c (gaih_inet): If NAME is a numerical IP
4084 address and AI_CANONNAME is set, return copy of NAME as ai_canonname.
4086 2004-09-27 Andreas Jaeger <aj@suse.de>
4088 * sysdeps/i386/dl-machine.h (elf_machine_rela_relative): Replace
4089 static inline by auto inline, add always_inline attribute.
4090 (elf_machine_rel): Likewise.
4091 (elf_machine_rela): Likewise.
4092 (elf_machine_lazy_rel): Likewise.
4093 (elf_machine_lazy_rela): Likewise.
4094 (elf_machine_rel_relative): Likewise.
4096 2004-09-27 Ulrich Drepper <drepper@redhat.com>
4098 * sunrpc/xdr_intXX_t.c: Add xdr_quad_t and xdr_u_quad_t aliases.
4099 * sunrpc/rpc/xdr.h: Declare xdr_quad_t and xdr_u_quad_t.
4100 * sunrpc/rpc_parse.c (get_type): Use "quad_t" for TOK_HYPER.
4101 Otherwise isvectordef will loop infinitely if typedef hyper int64_t
4103 (unsigned_dec): Use "u_quad_t" for similar reasons.
4104 * sunrpc/Versions: Export xdr_quad_t and xdr_u_quad_t.
4106 2004-09-27 Roland McGrath <roland@redhat.com>
4108 * sysdeps/generic/bits/waitstatus.h (__WIFSIGNALED): Simplify bit
4109 twiddling in last change.
4111 * posix/tst-waitid.c (do_test): Add tests for waitpid with WCONTINUED.
4114 * posix/sys/wait.h [__WIFCONTINUED] (WIFCONTINUED): New macro.
4115 * stdlib/stdlib.h [__WIFCONTINUED] (WIFCONTINUED): New macro.
4116 * sysdeps/generic/bits/waitstatus.h (__W_CONTINUED): New macro.
4117 [WCONTINUED] (__WIFCONTINUED): New macro.
4118 (__WIFSIGNALED): Rewritten to exclude __W_CONTINUED value, and have no
4121 * sysdeps/unix/sysv/linux/waitid.c (do_waitid): Add fifth argument to
4122 all three syscall uses, not just one!
4124 2004-09-26 Richard Henderson <rth@redhat.com>
4126 * sysdeps/alpha/alphaev6/memcpy.S: Mark .prologue.
4127 * sysdeps/unix/alpha/sysdep.h (LEAF, ENTRY): Align entry points
4128 to 16 byte boundaries.
4130 2004-09-26 Ulrich Drepper <drepper@redhat.com>
4132 * elf/readlib.c (process_file): Before complaining about too-short
4133 file, check that it potentially be an ELF file. Also complain about
4134 empty files. [BZ #151].
4136 * scripts/test-installation.pl: Fix ld.so recognition for new
4137 LD_TRACE_LOADED_OBJECTS output format.
4138 Patch by <jsberg04+computing.glibc@ftml.net> [BZ #407].
4140 * elf/dl-support.c (_dl_non_dynamic_init): Fix cleaning of
4141 environment. [BZ #384]
4143 * sunrpc/clnt_udp.c (is_network_up): Use getifaddrs instead of ioctl.
4144 * sunrpc/get_myaddr.c (get_myaddress): Likewise.
4145 * sunrpc/pmap_clnt.c (__get_myaddress): Likewise.
4146 * sunrpc/pmap_rmt.c (getbroadcastnets): Likewise. Change interface
4147 to avoid buffer overrun and remove now useless parameters.
4148 (clnt_broadcast): Adjust caller. [BZ #381].
4150 * sysdeps/generic/s_fdim.c: Handle +inf/+inf
4151 * sysdeps/generic/s_fdimf.c: Likewise.
4152 * sysdeps/generic/s_fdiml.c: Likewise.
4153 * sysdeps/i386/i686/fpu/s_fdim.S: Likewise.
4154 * sysdeps/i386/i686/fpu/s_fdimf.S: Likewise.
4155 * sysdeps/i386/i686/fpu/s_fdiml.S: Likewise.
4156 * sysdeps/powerpc/fpu/s_fdim.c: Likewise.
4157 * sysdeps/powerpc/fpu/s_fdimf.c: Likewise.
4158 * sysdeps/x86_64/fpu/s_fdiml.S: Likewise.
4159 * math/libm-test.inc (fdim_test): Add test case. [BZ #376].
4161 * sysdeps/generic/bits/types.h: Fix __SQUAD_TYPE and __UQUAD_TYPE
4162 for compilers without __GLIBC_HAVE_LONG_LONG. [BZ #362]
4164 * sysdeps/posix/getaddrinfo.c (getaddrinfo): Remove incorrect
4165 requirement on socktype and protocol.
4166 (gaih_inet): If numeric port number is given, return records for all
4167 possible socket types.
4168 * posix/tst-getaddrinfo2.c: New file.
4169 * posix/Makefile (tests): Add tst-getaddrinfo2. [BZ #358]
4171 2004-09-25 Ulrich Drepper <drepper@redhat.com>
4173 * locale/loadlocale.c (_nl_intern_locale_data): Recognize LC_CTYPE
4174 data where _nl_value_type_LC_CTYPE does not contain the type
4175 information. Add range checks.
4176 Reported by John Lumby <johnlumby@hotmail.com> [BZ #356].
4178 * libio/vasprintf.c (_IO_vasprintf): Fix condition to decide
4179 whether to realloc or not.
4180 Reported by Pavel Kankovsky <peak@argo.troja.mff.cuni.cz> [BZ #346].
4182 * intl/dcigettext.c (DCIGETTEXT): Protect tfind/tsearch calls.
4183 * intl/dcigettext.c (_nl_find_msg): Call _nl_load_domain also if
4185 * intl/finddomain.c (_nl_find_domain): Likewise.
4186 * intl/loadmsgcat.c (_nl_load_domain): Set decided to 1 only once we
4187 are done. First set to -1 to signal initialization is ongoing.
4188 Protect against concurrent callers with recursive lock.
4189 * intl/finddomain.c (_nl_find_domain): Protect calls to
4190 _nl_make_l10nflist. [BZ #322]
4192 * sysdeps/posix/getaddrinfo.c (getaddrinfo): If determinination of
4193 source address fails, initialized source_addr_len field so that
4194 duplicate address recognition does not copy junk.
4196 2004-09-25 Jakub Jelinek <jakub@redhat.com>
4198 * sysdeps/unix/sysv/linux/i386/setuid.c (__setuid): Remove second
4201 2004-09-22 Andreas Schwab <schwab@suse.de>
4203 * sysdeps/unix/sysv/linux/ia64/sysdep.h: Adjust whitespace.
4205 2004-09-24 Ulrich Drepper <drepper@redhat.com>
4207 * misc/daemon.c (daemon): Don't succeed if /dev/null cannot be
4210 * nis/ypclnt.c (do_ypcall): Add one missing unlock. Simplify the
4213 * misc/daemon.c (daemon): Define errno in case /dev/null is not
4216 * nis/ypclnt.c (yp_bind_file): Optimize a bit. Minimal cleanups.
4218 2004-09-23 Andreas Jaeger <aj@suse.de>
4220 * locale/weight.h (findidx): Remove static, it's not supported
4221 anymore with GCC 4.0 in a block scope.
4222 * locale/weightwc.h (findidx): Likewise.
4223 * posix/regcomp.c (seek_collating_symbol_entry): Likewise.
4224 (lookup_collation_sequence_value): Likewise.
4225 (build_range_exp): Likewise.
4226 (build_collating_symbol): Likewise.
4227 * iconv/iconvconfig.c (write_output): Likewise.
4228 * elf/do-rel.h (elf_dynamic_do_rel): Likewise.
4230 * sysdeps/x86_64/dl-machine.h (elf_machine_rela_relative): Remove
4231 static, add always_inline attribute.
4232 (elf_machine_rela): Likewise.
4233 (elf_machine_lazy_rel): Likewise.
4235 * elf/dynamic-link.h (elf_get_dynamic_info): Make static dependend
4236 on !RESOLVE so that it's not defined in local scope.
4238 2004-09-23 Kaz Kojima <kkojima@rr.iij4u.or.jp>
4240 * sysdeps/unix/sysv/linux/sh/sysdep.h (INTERNAL_SYSCALL_NCS): Define.
4242 2004-09-23 Thorsten Kukuk <kukuk@suse.de>
4244 * sysdeps/unix/sysv/linux/sys/mount.h: Sync MS_RMT_MASK flag
4245 and BLK* ioctls with linux kernel headers.
4247 2004-09-23 Ulrich Drepper <drepper@redhat.com>
4249 * sysdeps/generic/bits/dlfcn.h: Add RTLD_DEEPBIND.
4250 * elf/dl-object.c (_dl_new_object): Add new parameter mode. If mode
4251 has RTLD_DEEPBIND set add local searchlist before global scope.
4252 * sysdeps/generic/ldsodefs.h (_dl_new_object): Adjust prototype.
4253 * elf/rtld.c: Adjust callers of _dl_new_object.
4254 * elf/dl-load.c: Likewise.
4255 (_dl_map_object_from_fd): If RTLD_DEEPBIND is used, don't do anything
4257 * elf/dl-open.c (dl_open_writer): Pass RTLD_DEEPBIND flag on to
4258 _dl_map_object_deps.
4259 * elf/tst-deep1.c: New file.
4260 * elf/tst-deep1mod1.c: New file.
4261 * elf/tst-deep1mod2.c: New file.
4262 * elf/tst-deep1mod3.c: New file.
4263 * elf/Makefile: Add rules to build and run new tests.
4265 * elf/dl-deps.c: Pretty printing.
4267 2004-09-23 Jakub Jelinek <jakub@redhat.com>
4269 * sysdeps/unix/alpha/sysdep.h (inline_syscall[0-6]): Change name
4270 argument to numbers from syscall names.
4271 (INLINE_SYSCALL1): Pass __NR_##name to inline_syscall##nr.
4272 (INTERNAL_SYSCALL_NCS): Renamed from...
4273 (INTERNAL_SYSCALL_1): ... this. Use INTERNAL_SYSCALL_NCS.
4274 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h
4275 (INTERNAL_SYSCALL_NCS): Define.
4276 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
4277 (INTERNAL_SYSCALL_NCS): Likewise.
4278 * sysdeps/unix/sysv/linux/sparc/sysdep.h (inline_syscall[0-6]):
4279 Change name argument to numbers from syscall names.
4280 (INLINE_SYSCALL, INTERNAL_SYSCALL): Adjust.
4281 (INTERNAL_SYSCALL_NCS): Define.
4283 2004-09-22 Ulrich Drepper <drepper@redhat.com>
4285 * malloc/malloc.c (malloc_printerr): Use syslog if writev failed.
4287 * string/string.h: Add __nonnull annotations.
4288 * stdlib/stdlib.h: Likewise.
4290 2004-09-20 Jakub Jelinek <jakub@redhat.com>
4292 * sysdeps/unix/alpha/sysdep.h (inline_syscall[0-6]): Change name
4293 argument to numbers from syscall names.
4294 (INLINE_SYSCALL1): Pass __NR_##name to inline_syscall##nr.
4295 (INTERNAL_SYSCALL_NCS): Renamed from...
4296 (INTERNAL_SYSCALL_1): ... this. Use INTERNAL_SYSCALL_NCS.
4297 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h
4298 (INTERNAL_SYSCALL_NCS): Define.
4299 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
4300 (INTERNAL_SYSCALL_NCS): Likewise.
4301 * sysdeps/unix/sysv/linux/sparc/sysdep.h (inline_syscall[0-6]):
4302 Change name argument to numbers from syscall names.
4303 (INLINE_SYSCALL, INTERNAL_SYSCALL): Adjust.
4304 (INTERNAL_SYSCALL_NCS): Define.
4306 2004-09-20 H.J. Lu <hongjiu.lu@intel.com>
4308 * sysdeps/unix/sysv/linux/ia64/sysdep.h (DO_INLINE_SYSCALL):
4310 (DO_INLINE_SYSCALL_NCS): This.
4311 (DO_INLINE_SYSCALL): New.
4312 (INLINE_SYSCALL): Updated.
4313 (INTERNAL_SYSCALL_NCS): Updated.
4315 2004-09-21 Ulrich Drepper <drepper@redhat.com>
4317 * elf/sprof.c (load_shobj): Add support for reading symbol table
4318 from debuginfo file.
4320 * elf/ldd.bash.in: Fix syntax errors.
4322 2004-09-20 Ulrich Drepper <drepper@redhat.com>
4324 * sysdeps/unix/sysv/linux/dl-execstack.c
4325 (_dl_make_stack_executable): Remove some duplication.
4327 * nscd/nscd.c (options): Mark S option as hidden.
4328 (parse_opt): When S option is used, print warning message.
4329 * nscd/grpcache.c (adgrptbyX): Don't handle secure mode.
4330 * nscd/hstcache.c (addhstbyX): Don't handle secure mode.
4331 * nscd/aicache.c (addhstaiX): Don't handle secure mode.
4332 * nscd/pwdcache.c (addpwbyX): Don't handle secure mode.
4334 2004-09-20 Roland McGrath <roland@frob.com>
4336 * elf/dl-load.c (__stack_prot): Only use PROT_GROWSUP/PROT_GROWSDOWN
4337 in initializer #if defined.
4339 2004-09-18 Paul Eggert <eggert@cs.ucla.edu>
4342 * stdlib/getsubopt.c: Merge fixes from gnulib.
4343 (__strchrnul) [!_LIBC]: Define and include "strchrnul.c".
4344 (getsubopt): Use prototypes, not K&R style.
4345 Fix bug: memcmp(A,B,N) was being invoked on a memory block B
4346 whose size might be smaller than N. Use strncmp to avoid the bug.
4348 2004-09-20 Ulrich Drepper <drepper@redhat.com>
4350 * configure.in: If selinux has not explictly been requested, don't
4351 comment on it missing.
4353 * elf/dl-load.c: Define __stack_prot.
4354 * sysdeps/unix/sysv/linux/dl-execstack.c: Don't define
4355 __stack_prot here, just declare it.
4357 2004-09-20 Jakub Jelinek <jakub@redhat.com>
4359 * configure.in (libc_cv_z_relro): Only set to yes if linker script
4360 contains DATA_SEGMENT_RELRO_END.
4362 2004-09-20 Ulrich Drepper <drepper@redhat.com>
4364 * elf/dl-load.c (_dl_map_object_from_fd): Add some error checking.
4365 Reorder code slightly.
4366 * elf/rtld.c (dl_main): No need to check whether l_info[DT_HASH]
4367 is non-null, _dl_setup_hash will do that.
4369 2004-09-19 Ulrich Drepper <drepper@redhat.com>
4371 * sysdeps/unix/sysv/linux/setegid.c [HAVE_PTR__NPTL_SETXID]: Call
4372 callback to set IDs in all other threads as well.
4373 * sysdeps/unix/sysv/linux/seteuid.c: Likewise.
4374 * sysdeps/unix/sysv/linux/i386/setegid.c: Likewise.
4375 * sysdeps/unix/sysv/linux/i386/seteuid.c: Likewise.
4376 * sysdeps/unix/sysv/linux/i386/setgid.c: Likewise.
4377 * sysdeps/unix/sysv/linux/i386/setuid.c: Likewise.
4378 * sysdeps/unix/sysv/linux/i386/setreuid.c: Likewise.
4379 * sysdeps/unix/sysv/linux/i386/setreuid.c: Likewise.
4380 * sysdeps/unix/sysv/linux/i386/setresuid.c: Likewise.
4381 * sysdeps/unix/sysv/linux/i386/setresuid.c: Likewise.
4382 * sysdeps/unix/sysv/linux/setuid.c: New file.
4383 * sysdeps/unix/sysv/linux/setgid.c: New file.
4384 * sysdeps/unix/sysv/linux/setreuid.c: New file.
4385 * sysdeps/unix/sysv/linux/setregid.c: New file.
4386 * sysdeps/unix/sysv/linux/setresuid.c: New file.
4387 * sysdeps/unix/sysv/linux/setresgid.c: New file.
4388 * sysdeps/unix/sysv/linux/i386/sysdep.h: Define INTERNAL_SYSCALL_NCS.
4389 * sysdeps/unix/sysv/linux/ia64/sysdep.h: Likewise.
4390 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Likewise.
4391 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
4392 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
4393 * sysdeps/unix/sysv/linux/sparc/sparc32/setegid.c: Use x86 version.
4394 * sysdeps/unix/sysv/linux/sparc/sparc32/seteuid.c: Likewise.
4395 * sysdeps/unix/sysv/linux/sparc/sparc32/setresgid.c: New file.
4396 * sysdeps/unix/sysv/linux/sparc/sparc32/setresuid.c: New file.
4397 * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list: Remove setresgid
4399 * nscd/aicache.c: Use pthread_seteuid_np instead of seteuid.
4400 * nscd/grpcache.c: Likewise.
4401 * nscd/hstcache.c: Likewise.
4402 * nscd/pwdcache.c: Likewise.
4404 * resolv/res_mkquery.c (res_nmkquery): Fix typo.
4406 2004-09-18 Ulrich Drepper <drepper@redhat.com>
4408 * sysdeps/unisx/sysv/linux/dl-execstack.c: Get protection flag
4410 * elf/dl-load.c (_dl_map_object_from_fd): Add PROT_EXEC flag to
4413 * sysdeps/posix/getaddrinfo.c (gaih_inet): Do not use
4414 gethostbyname3_r if we are not looking for the canonical name.
4416 * resolv/res_mkquery.c (res_nmkquery): Randomize request ID every
4419 2004-09-18 Roland McGrath <roland@redhat.com>
4421 * sysdeps/unix/sysv/linux/waitid.c (do_waitid): Pass fifth argument to
4424 2004-09-17 Ulrich Drepper <drepper@redhat.com>
4426 * include/link.h (struct link_map): Add l_used element.
4427 * sysdeps/generic/ldsodefs.h: Define DL_DEBUG_UNUSED.
4428 * elf/rtld.c (process_dl_debug): Recognize unused.
4429 (dl_main): When unused debug flag is set check for unused direct
4431 When printing dependencies and SONAME starts with /, omit the SONAME =>
4433 * elf/dl-lookup.c (_dl_lookup_symbol_x): Mark object in which the
4434 symbol has been found as used.
4435 * elf/ldd.bash.in: Add -u option.
4437 2004-09-18 Jakub Jelinek <jakub@redhat.com>
4439 * sysdeps/unix/sysv/linux/nscd_setup_thread.c (setup_thread):
4440 Do nothing if __NR_set_tid_address is not defined. [BZ #390]
4442 2004-09-17 Ulrich Drepper <drepper@redhat.com>
4444 * sysdeps/posix/getaddrinfo.c: Use gethostbyname3_r NSS function
4445 in case it is available.
4447 2004-09-17 Jakub Jelinek <jakub@redhat.com>
4449 * nscd/nscd.c (parse_opt): Write arg string instead of (void *)
4452 2004-09-17 Ulrich Drepper <drepper@redhat.com>
4454 * misc/sys/cdefs.h: Define __nonnull using nonnull function attribute
4455 for gcc 3.3 and higher.
4456 * io/fcntl.h: Add __nonnull where appropriate.
4457 * io/ftw.h: Likewise.
4458 * io/utime.h: Likewise.
4459 * io/sys/poll.h: Likewise.
4460 * io/sys/sendfile.h: Likewise.
4461 * io/sys/stat.h: Likewise.
4462 * io/sys/statfs.h: Likewise.
4463 * io/sys/statvfs.h: Likewise.
4464 * posix/unistd.h: Likewise.
4465 * catgets/nl_types.h: Likewise.
4466 * crypt/crypt.h: Likewise.
4467 * debug/execinfo.h: Likewise.
4469 2004-09-16 Ulrich Drepper <drepper@redhat.com>
4471 * posix/glob.h: Remove cruft to make header usable outside glibc.
4472 The maintenance headache is too big.
4474 * configure.in: Add test for required SELinux features.
4475 * config.make.in: Add have-selinux entry.
4476 * config.h.in: Add HAVE_SELINUX entry.
4477 * nscd/Makefile (nscd-modules): Add selinux.
4478 (CFLAGS-selinux.c): Add -fpie.
4479 Define selinux-LIBS and use in link line.
4480 * nscd/connections.c (handle_request): Check access SELinux permissions
4481 before processing request.
4482 * nscd/nscd.c (main): Initialize selinux_enabled and stop avc thread.
4483 * nscd/nscd_stat.c: Transmit and print AVC statistics.
4484 * nscd/selinux.c: New file.
4485 * nscd/selinux.h: New file.
4486 Patch mostly by Matthew Rickard <mjricka@epoch.ncsc.mil>.
4488 2004-09-16 Jakub Jelinek <jakub@redhat.com>
4490 * nscd/nscd_helper.c (__nscd_unmap, get_mapping): Use __munmap
4493 * nscd/Makefile (CFLAGS-aicache.c): Set to -fpie.
4495 2004-09-16 Thorsten Kukuk <kukuk@suse.de>
4497 * sysdeps/posix/getaddrinfo.c (gaih_inet): Check
4498 __nss_not_use_nscd_hosts variable if nscd should be used or not.
4500 2004-09-16 Ulrich Drepper <drepper@redhat.com>
4502 * nscd/nscd_proto.h: Define NSS_NSCD_RETRY.
4503 Add __nscd_getai prototype.
4504 * nss/getXXbyYY_r.c: Remode definition of NSS_NSCD_RETRY.
4505 * nscd/nscd-client.h: Remove __nscd_getai prototype.
4506 * nscd/nscd_getai.c: Include nscd_proto.h.
4508 * elf/ldd.bash.in: Add support for SELinux environments.
4509 Patch by Stephen Smalley <sds@epoch.ncsc.mil>.
4511 2004-09-16 Roland McGrath <roland@redhat.com>
4513 * configure.in (--with-headers): Let argument contain a : separated
4514 list of directories to use, not just one.
4515 * configure: Regenerated.
4517 2004-09-15 Richard Henderson <rth@redhat.com>
4519 * sysdeps/alpha/fpu/libm-test-ulps: Update.
4520 * scripts/data/c++-types-alpha-linux-gnu.data: New file.
4522 2004-09-15 Ulrich Drepper <drepper@redhat.com>
4524 * nscd/aicache.c: Prefer using gethostbyname3_r NSS callback to also
4525 get ttl and canonical name. Use these two values.
4526 * resolv/Versions: Export _nss_dns_gethostbyname3_r from libnss_dns.
4527 * resolv/nss_dns/dns-host.c (getanswer_r): Take two new parameters.
4528 If nonnull fill with TTL and pointer to canonical name respectively.
4529 (_nss_dns_gethostbyaddr_r): Pass NULL in new parameters of getanswer_r.
4530 (_nss_dns_gethostbyname2_r): Just wrapper around
4531 _nss_dns_gethostbyname3_r.
4532 (_nss_dns_gethostbyname3_r): Renamed from _nss_dns_gethostbyname2_r.
4533 Take two new parameters which as passed to getanswer_r.
4535 * nscd/Makefile (rountines): Add nscd_getai.
4536 (nscd-modules): Add aicache.
4537 * nscd/aicache.c: New file.
4538 * nscd/nscd_getai.c: New file.
4539 * nscd/cache.c (prune_cache): Handle GETAI request type.
4540 * nscd/connections.c: Add GETAI support in request handling.
4541 * nscd/nscd-client.h (request_type): Add GETAI.
4542 Define ai_response_header and struct nscd_ai_result types.
4543 (struct datahead): Add aidata field.
4544 Declare __nscd_getai.
4545 * nscd/nscd.c: Add getaddrinfo definition to catch problems.
4546 * nscd/nscd.h: Declare addhstai and readdhstai.
4548 * sysdeps/posix/getaddrinfo.c: Add support for using cached results.
4549 * posix/Makefile (CFLAGS-getaddrinfo.c): Add -DUSE_NSCD.
4551 * nscd/nscd-client.h (struct datahead): Use uint8_t instead of bool.
4553 2004-09-14 Ulrich Drepper <drepper@redhat.com>
4555 * misc/sys/cdefs.h: Remove debugging text from __P and __PMT.
4557 2004-09-13 Ulrich Drepper <drepper@redhat.com>
4559 * misc/sys/cdefs.h: Restore old definition of __P.
4560 * csu/munch.awk: Remove uses of __P and __PMT.
4561 * gmon/gmon.c: Likewise.
4562 * hesiod/hesiod.h: Likewise.
4563 * include/stdio.h: Likewise.
4564 * io/fts.c: Likewise.
4565 * libio/genops.c: Likewise.
4566 * libio/libioP.h: Likewise.
4567 * libio/fileops.c: Likewise.
4568 * libio/iolibio.h: Likewise.
4569 * libio/libio.h: Likewise.
4570 * libio/memstream.c: Likewise.
4571 * libio/oldfileops.c: Likewise.
4572 * libio/oldstdfiles.c: Likewise.
4573 * libio/iopopen.c: Likewise.
4574 * libio/vsnprintf.c: Likewise.
4575 * libio/vswprintf.c: Likewise.
4576 * libio/wgenops.c: Likewise.
4577 * libio/oldiopopen.c: Likewise.
4578 * locale/programs/xmalloc.c: Likewise.
4579 * locale/programs/xstrdup.c: Likewise.
4580 * malloc/mtrace.c: Likewise.
4581 * misc/getttyent.c: Likewise.
4582 * misc/getusershell.c: Likewise.
4583 * nis/rpcsvc/ypupd.h: Likewise.
4584 * posix/fnmatch.h: Likewise.
4585 * posix/glob.h: Likewise.
4586 * resolv/arpa/nameser.h: Likewise.
4587 * resolv/gethnamaddr.c: Likewise.
4588 * resolv/resolv.h: Likewise.
4589 * resolv/inet_net_ntop.c: Likewise.
4590 * resolv/inet_net_pton.c: Likewise.
4591 * resolv/res_init.c: Likewise.
4592 * resolv/nss_dns/dns-network.c: Likewise.
4593 * stdio-common/vfprintf.c: Likewise.
4594 * stdio-common/reg-printf.c: Likewise.
4595 * sysdeps/generic/chflags.c: Likewise.
4596 * sysdeps/generic/fchflags.c: Likewise.
4597 * sysdeps/generic/glob.c: Likewise.
4598 * sysdeps/generic/printf_fphex.c: Likewise.
4599 * sysdeps/generic/memcmp.c: Likewise.
4600 * sysdeps/generic/memcopy.h: Likewise.
4601 * sysdeps/generic/morecore.c: Likewise.
4602 * sysdeps/generic/sstk.c: Likewise.
4603 * sysdeps/posix/sigvec.c: Likewise.
4604 * sysdeps/posix/ttyname_r.c: Likewise.
4605 * sysdeps/standalone/arm/bits/errno.h: Likewise.
4606 * sysdeps/standalone/standalone.h: Likewise.
4607 * sysdeps/standalone/i386/force_cpu386/brdinit.c: Likewise.
4608 * sysdeps/standalone/i386/force_cpu386/_exit.c: Likewise.
4609 * sysdeps/unix/arm/start.c: Likewise.
4610 * sysdeps/unix/bsd/sigaction.c: Likewise.
4611 * sysdeps/unix/bsd/sun/m68k/sigtramp.c: Likewise.
4612 * sysdeps/unix/bsd/sun/sparc/sigtramp.c: Likewise.
4613 * sysdeps/unix/bsd/sun/sunos4/wait4.c: Likewise.
4614 * sysdeps/unix/bsd/ultrix4/mips/sigvec.c: Likewise.
4615 * sysdeps/unix/bsd/ultrix4/sysconf.c: Likewise.
4616 * sysdeps/unix/sparc/start.c: Likewise.
4617 * sysdeps/unix/sysv/getdents.c: Likewise.
4618 * sysdeps/unix/sysv/irix4/fpathconf.c: Likewise.
4619 * sysdeps/unix/sysv/irix4/getgroups.c: Likewise.
4620 * sysdeps/unix/sysv/irix4/getpriority.c: Likewise.
4621 * sysdeps/unix/sysv/irix4/getrusage.c: Likewise.
4622 * sysdeps/unix/sysv/irix4/pathconf.c: Likewise.
4623 * sysdeps/unix/sysv/irix4/setgroups.c: Likewise.
4624 * sysdeps/unix/sysv/irix4/sigtramp.c: Likewise.
4625 * sysdeps/unix/sysv/irix4/start.c: Likewise.
4626 * sysdeps/unix/sysv/irix4/sysconf.c: Likewise.
4627 * sysdeps/unix/sysv/sco3.2.4/__setpgid.c: Likewise.
4628 * sysdeps/unix/sysv/sco3.2.4/getgroups.c: Likewise.
4629 * sysdeps/unix/sysv/sysv4/__getpgid.c: Likewise.
4630 * sysdeps/unix/sysv/sysv4/__setpgid.c: Likewise.
4631 * sysdeps/unix/sysv/sysv4/getpgid.c: Likewise.
4632 * sysdeps/unix/sysv/sysv4/setpgid.c: Likewise.
4633 * sysdeps/unix/sysv/sysv4/sethostname.c: Likewise.
4634 * sysdeps/unix/sysv/sysv4/setsid.c: Likewise.
4635 * sysdeps/unix/sysv/sysv4/sysconf.c: Likewise.
4636 * sysdeps/unix/sysv/sysv4/waitpid.c: Likewise.
4637 * sysdeps/unix/sysv/sysv4/solaris2/getdents.c: Likewise.
4638 * time/tzset.c: Likewise.
4639 * time/strftime_l.c: Likewise.
4640 * time/strptime_l.c: Likewise.
4641 * crypt/md5.h: Likewise.
4643 2004-09-13 Andreas Jaeger <aj@suse.de>
4645 * configure.in: Support GCC 4.x.
4646 * configure: Regenerated.
4648 2004-09-13 Thorsten Kukuk <kukuk@suse.de>
4650 * nscd/nscd_stat.c: Don't access dbs[cnt].head for disabled services.
4652 * nscd/nscd.init: Fix path to socket.
4654 2004-09-12 Ulrich Drepper <drepper@redhat.com>
4656 * nscd/nscd_helper.c (get_mapping): Correctly check cmsg length.
4657 Avoid file descriptor leak in case of size mismatch.
4659 * nscd/nscd-client.h: Fix database structure layout for biarch.
4660 * nscd/mem.c (gc): Add casts to avoid warnings.
4662 * nss/getent.c: Don't preconstruct help message. Do it only when
4665 * locale/programs/locale.c: Simplify help message printing.
4667 2004-09-12 Roland McGrath <roland@frob.com>
4669 * sysdeps/mach/hurd/i386/init-first.c (init1) [! SHARED]: Add decls
4670 missing in last change.
4672 2004-09-11 Thorsten Kukuk <kukuk@suse.de>
4674 * nis/nss_compat/compat-grp.c: Check that buflen is greater zero
4675 before writing data into the buffer with negative offset.
4676 * nis/nss_compat/compat-initgroups.c: Likewise.
4677 * nis/nss_compat/compat-pwd.c: Likewise.
4678 * nis/nss_compat/compat-spwd.c Likewise.
4680 2004-09-12 Ulrich Drepper <drepper@redhat.com>
4682 * misc/syslog.c (vsyslog): Fix copying of PID in case of
4683 out-of-memory situation. [BZ #365].
4685 * sysdeps/alpha/fpu/bits/mathinline.h: Use __NTH instead of
4686 __THROW in inline function definitions.
4688 * posix/spawn.h [__USE_GNU]: Define POSIX_SPAWN_USEVFORK.
4689 * posix/spawnattr_setflags.c: Check whether any unknown bit is set
4690 in FLAGS parameter and fail if this is the case.
4691 * sysdeps/posix/spawni.c: Use vfork if POSIX_SPAWN_USEVFORK flag is
4694 * nscd/pwdcache.c (cache_addpw): Sync also negative results to disk.
4695 * nscd/grpcache.c (cache_addgr): Likewise.
4696 * nscd/hstcache.c (cache_addhst): Likewise.
4698 2004-09-11 Roland McGrath <roland@frob.com>
4700 * sysdeps/mach/hurd/i386/init-first.c (init1) [! SHARED]:
4701 Set _dl_phdr and _dl_phnum.
4702 (init1): When bootstrap task, bail early and never examine *D.
4704 2004-09-11 Alfred M. Szmidt <ams@kemisten.nu>
4706 * sysdeps/mach/hurd/i386/tls.h (__i386_set_gdt) [!HAVE_I386_SET_GDT]:
4707 Cast THR, SEL and DESC to `void'.
4709 2004-09-11 Ulrich Drepper <drepper@redhat.com>
4711 * nscd/connections.c (nscd_run): Call setup_thread only for enabled
4714 * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Use __NTH for __cmsg_nxthdr.
4716 2004-09-10 Ulrich Drepper <drepper@redhat.com>
4718 * nscd/nscd.c (pagesize_m1): New variable.
4719 (main): Initialize it.
4720 * nscd/nscd.h: Declare pagesize_m1.
4721 * nscd/hstcache.c: Pass correctly aligned address to msync.
4722 * nscd/grpcache.c: Likewise.
4723 * nscd/pwdcache.c: Likewise.
4725 2004-09-10 Kaz Kojima <kkojima@rr.iij4u.or.jp>
4727 * sysdeps/unix/sysv/linux/sh/pthread_cond_wait.S: Decrement
4728 __nwaiters. If pthread_cond_destroy has been called and this is
4729 the last waiter, signal pthread_cond_destroy caller and avoid
4730 using the pthread_cond_t structure after unlock.
4731 * sysdeps/unix/sysv/linux/sh/pthread_cond_timedwait.S: Likewise.
4733 2004-09-10 Ulrich Drepper <drepper@redhat.com>
4735 * sysdeps/unix/sysv/linux/kernel-features.h: Don't define
4736 __ASSUME_CLONE_STOPPED.
4738 2004-09-10 Jakub Jelinek <jakub@redhat.com>
4740 * misc/sys/cdefs.h (__REDIRECT_NTH): Change order of __THROW and
4741 __asm__ for C++. [BZ #377]
4743 2004-09-10 Ulrich Drepper <drepper@redhat.com>
4745 * nscd/nscd_stat.c: Improve output by also printing .shared and
4748 * nscd/connections.c: Allow cache sharing to be really disabled.
4750 2004-09-10 Jakub Jelinek <jakub@redhat.com>
4752 * malloc/malloc.c (_int_free): Only do arena boundary check for
4755 2004-09-10 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
4757 * stdlib/longlong.h [__M32R__] (add_ssaaaa, sub_ddmmss): Fix broken
4759 * elf/elf.h: Add R_M32R_* relocs.
4761 2004-09-09 Ulrich Drepper <drepper@redhat.com>
4763 * misc/sys/cdefs.h: Despite what the gcc manual says, gcc 3.2
4764 seems not to support the nothrow attribute. Use it only for gcc
4767 * malloc/hooks.c (top_check): Print top chunk corruption as normal
4770 * malloc/malloc.c (malloc_printerr): Don't make informational
4771 message look like error message.
4773 2004-09-09 Andreas Jaeger <aj@suse.de>
4775 * nscd/Makefile (CFLAGS-nscd_setup_thread.c): Set to -fpie.
4777 2004-09-08 Ulrich Drepper <drepper@redhat.com>
4779 * sysdeps/unix/sysv/linux/bits/socket.h (__SCM_CONNECT): Removed.
4781 * malloc/malloc.c (_int_free): Add inexpensive double free and
4782 memory corruption tests.
4783 (malloc_printf_nc): Renamed to malloc_printerr. Second parameter
4784 is no format string anymore. Don't use stdio. Adjust all callers.
4785 * malloc/hooks.c: Adjust malloc_printf_nc callers.
4787 2004-09-08 Roland McGrath <roland@redhat.com>
4789 * malloc/mcheck.c: Don't use __P.
4790 Use prototypes definitions for static functions.
4792 2004-09-08 Ulrich Drepper <drepper@redhat.com>
4794 * sysdeps/ia64/fpu/bits/mathinline.h: Use __NTH instead of __THROW.
4796 2004-09-08 Ulrich Drepper <drepper@redhat.com>
4797 Jakub Jelinek <jakub@redhat.com>
4799 * nscd/nscd-client.h: Add a few #includes.
4801 * nscd/Makefile (nscd-modules): Add nscd_setup_thread.
4802 * nscd/connections.c (nscd_run): Call setup_thread for maintenance
4804 * nscd/nscd-client.h (struct database_pers_head): Add
4805 nscd_certainly_running field.
4806 * nscd/nscd.h: Declare setup_thread.
4807 * nscd/nscd_helper.c (__nscd_get_map_ref): Avoid the time test if
4808 nscd_certainly_running is nonzero.
4809 * sysdeps/generic/nscd_setup_thread.c: New file.
4810 * sysdeps/unix/sysv/linux/nscd_setup_thread.c: New file.
4812 2004-09-08 Ulrich Drepper <drepper@redhat.com>
4814 * nscd/connections.c: Implement r/o sharing of nscd's cache with client
4815 processes via shared memory.
4816 * nscd/nscd-client.h: Likewise.
4817 * nscd/nscd.h: Likewise.
4818 * nscd/nscd_conf.c: Likewise.
4819 * nscd/nscd_getgr_r.c: Likewise.
4820 * nscd/nscd_getpw_r.c: Likewise.
4821 * nscd/nscd_gethst_r.c: Likewise.
4822 * nscd/nscd.conf: Add new config parameters.
4823 * nscd/Makefile (aux): Add nscd_helper.
4824 * nscd/nscd_helper.c: New file.
4825 * nscd/mem.c (gc): Indicate beginning and end of the gc cycle.
4827 * nscd/hstcache.c: Simplify a lot. We cache only the request itself,
4828 no derived information.
4829 * connections.c (nscd_init): Fix bug in testing size of the persistent.
4831 * nis/Makefile (aux): Add nis_hash.
4832 * nis/nis_hash.c: New file. Split out from nis_util.c.
4833 * nis/nis_util.c: Move __nis_hash code in separate file.
4835 * csu/tst-atomic.c: Improve atomic_increment_val test which would
4836 not have found a ppc bug.
4838 * sysdeps/s390/fpu/bits/mathinline.h: Remove unnecessary includes.
4840 * malloc/arena.c: Remove __MALLOC_P uses.
4841 * malloc/malloc.c: Likewise.
4843 * malloc/mtrace.c: Remove __P uses.
4844 * malloc/mcheck-init.c: Likewise.
4846 2004-09-07 Jakub Jelinek <jakub@redhat.com>
4848 * sysdeps/powerpc/powerpc64/configure.in: New file.
4849 * config.h.in (USE_PPC64_OVERLAPPING_OPD): Add.
4850 * configure.in (HAVE_ASM_GLOBAL_DOT_NAME): Remove.
4851 * sysdeps/powerpc/powerpc64/sysdep.h: Formatting.
4852 (OPD_ENT, BODY_LABEL, ENTRY_1, ENTRY_2, END_2, DOT_PREFIX,
4853 BODY_PREFIX): Define.
4854 (ENTRY, DOT_LABEL, END, TRACEBACK, END_GEN_TB, EALIGN): Support
4855 HAVE_ASM_GLOBAL_DOT_NAME or no dot symbols,
4856 USE_PPC64_OVERLAPPING_OPD or never overlapping .opd entries.
4857 * sysdeps/powerpc/powerpc64/dl-machine.h: Include sysdep.h.
4858 (TRAMPOLINE_TEMPLATE, RTLD_START): Use the new sysdep.h macros.
4860 2004-09-07 Ulrich Drepper <drepper@redhat.com>
4862 * malloc/malloc.h: Don't define __THROW if it is already defined.
4864 * sysdeps/powerpc/bits/atomic.h (atomic_increment): Define.
4865 (atomic_decrement): Define.
4867 * sysdeps/powerpc/bits/atomic.h: Implement atomic_increment_val and
4868 atomic_decrement_val.
4869 * sysdeps/powerpc/powerpc32/bits/atomic.h: Likewise.
4870 * sysdeps/powerpc/powerpc64/bits/atomic.h: Likewise.
4872 * csu/tst-atomic.c (do_test): Add tests of atomic_increment_val
4873 and atomic_decrement_val.
4875 * include/atomic.h: Define atomic_increment_val, atomic_decrement_val,
4876 and atomic_delay is not already defined.
4877 * sysdeps/i386/i486/bits/atomic.h: Define atomic_delay.
4878 * sysdeps/x86_64/bits/atomic.h: Likewise.
4880 * miscd/sys/cdefs.h (__NTH): New macro.
4881 (__THROW): Define using nothrow attribute for C code and gcc >= 3.2.
4882 (__REDIRECT_NTH): New macro.
4883 * argp/argp.h: Use __NTH and __REDIRECT_NTH where necessary.
4884 * ctype/ctype.h: Likewise.
4885 * dirent/dirent.h: Likewise.
4886 * io/fcntl.h: Likewise.
4887 * io/sys/sendfile.h: Likewise.
4888 * io/sys/stat.h: Likewise.
4889 * io/sys/statfs.h: Likewise.
4890 * io/sys/statvfs.h: Likewise.
4891 * libio/bits/stdio.h: Likewise.
4892 * misc/sys/mman.h: Likewise.
4893 * posix/unistd.h: Likewise.
4894 * resource/sys/resource.h: Likewise.
4895 * rt/aio.h: Likewise.
4896 * signal/signal.h: Likewise.
4897 * stdlib/stdlib.h: Likewise.
4898 * string/argz.h: Likewise.
4899 * string/string.h: Likewise.
4900 * sysdeps/generic/inttypes.h: Likewise.
4901 * sysdeps/i386/fpu/bits/mathinline.h: Likewise.
4902 * sysdeps/powerpc/fpu/bits/mathinline.h: Likewise.
4903 * sysdeps/s390/fpu/bits/mathinline.h: Likewise.
4904 * sysdeps/x86_64/fpu/bits/mathinline.h: Likewise.
4905 * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
4906 * sysdeps/unix/sysv/linux/bits/sys/sysmacros.h: Likewise.
4907 * wcsmbs/wchar.h: Likewise.
4909 * sysdeps/generic/glob.c: Use __PMT isntead of __P where appropriate.
4911 * resolv/gethnamaddr.c (getanswer): Remove __P use in variable
4914 * io/sys/poll.h: Remove __THROW from poll prototype, it's a
4917 * io/fts.c (fts_open): Remove uses of __P.
4919 * include/stdlib.h: No need to use __THROW in this header.
4921 2004-09-06 Roland McGrath <roland@frob.com>
4923 * sysdeps/mach/hurd/dl-sysdep.c (__writev): Does use assert on FD
4924 validity, since __assert_fail gets to here anyway. Just fail.
4926 2004-09-06 Ulrich Drepper <drepper@redhat.com>
4928 * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix problem with
4929 AF_UNSPEC lookup with AI_CANONNAME of name which has only IPv6
4932 2004-09-05 Richard Henderson <rth@redhat.com>
4934 * sysdeps/alpha/fpu/fraiseexcpt.c: Remove file.
4935 * sysdeps/unix/sysv/linux/kernel-features.h
4936 (__ASSUME_IEEE_RAISE_EXCEPTION): New.
4937 * sysdeps/unix/sysv/linux/alpha/fraiseexcpt.c: New file.
4938 * sysdeps/unix/sysv/linux/alpha/kernel_sysinfo.h: New file.
4939 * sysdeps/unix/sysv/linux/alpha/ieee_get_fp_control.S: Use it.
4940 * sysdeps/unix/sysv/linux/alpha/ieee_set_fp_control.S: Likewise.
4942 2004-09-05 Richard Henderson <rth@redhat.com>
4944 * sysdeps/alpha/div.S: Save and restore FPCR around fp operations.
4945 * sysdeps/alpha/divl.S, sysdeps/alpha/divq.S, sysdeps/alpha/divqu.S,
4946 sysdeps/alpha/ldiv.S, sysdeps/alpha/reml.S, sysdeps/alpha/remq.S,
4947 sysdeps/alpha/remqu.S: Likewise.
4948 * sysdeps/alpha/div_libc.h (FRAME): Increase to 64.
4950 2004-09-05 Ulrich Drepper <drepper@redhat.com>
4952 * nscd/cache.c (cache_add): Correctly log GETHOSTBYADDR and
4953 GETHOSTBYADDRv6 requests.
4955 2004-09-04 Ulrich Drepper <drepper@redhat.com>
4957 * nscd/pwdcache.c (cache_addpw): Use correct key length in
4959 * nscd/grpcache.c (cache_addgr): Likewise.
4961 2004-09-03 Alfred M. Szmidt <ams@kemisten.nu>
4963 * sysdeps/mach/hurd/i386/tls.h (THREAD_DTV): Changed type of _DTV
4966 2004-09-03 Ulrich Drepper <drepper@redhat.com>
4968 * nscd/nscd.c (parse_opt): Use writev instead of two write for
4971 2004-09-02 Ulrich Drepper <drepper@redhat.com>
4973 * nscd/connections.c (nscd_run): Check early for invalid request types.
4975 2004-09-02 Roland McGrath <roland@frob.com>
4977 * sysdeps/mach/hurd/i386/tls.h (TLS_INIT_TP_EXPENSIVE): New macro.
4978 (INSTALL_NEW_DTV, THREAD_DTV): Rewritten to fetch the right word.
4979 (THREAD_SELF): New macro.
4981 2004-09-02 Steven Munroe <sjmunroe@us.ibm.com>
4984 * stdlib/tst-setcontext.c (test_stack): Added test for stack clobber.
4985 (main): Call test_stack.
4986 * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S
4987 (__getcontext): Push stack frame then save parms in local frame.
4988 Improve instruction scheduling.
4989 * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S
4990 (__swapcontext): Likewise.
4992 2004-09-01 Andreas Schwab <schwab@suse.de>
4994 * sysdeps/unix/sysv/linux/ia64/sys/ucontext.h [g++ >= 3.5]: Use
4997 2004-09-01 Jakub Jelinek <jakub@redhat.com>
5000 * posix/fnmatch_loop.c (FCT): For backslash between brackets, branch
5001 to normal_bracket after fetching the next character.
5002 * posix/tst-fnmatch.input: Add 25 new tests.
5003 Reported by Markus Oberhumer <markus@oberhumer.com>.
5005 2004-09-01 Ulrich Drepper <drepper@redhat.com>
5007 * elf/rtld.c (dl_main): First check existence of ld.so.preload
5010 2004-09-01 Roland McGrath <roland@redhat.com>
5012 * sysdeps/unix/sysv/linux/bits/waitflags.h
5013 (WSTOPPED, WEXITED, WCONTINUED, WNOWAIT): New macros.
5014 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_WAITID_SYSCALL):
5016 * sysdeps/unix/sysv/linux/waitid.c: New file. Use new syscall when
5017 available, or fall back to the waitpid-based generic code.
5019 2004-08-14 Alfred M. Szmidt <ams@kemisten.nu>
5021 * sysdeps/mach/hurd/i386/init-first.c (_hurd_stack_setup): Let gcc
5022 clobber the `ebp' register.
5023 * sysdeps/mach/hurd/i386/Makefile (CFLAGS-init-first.c): Removed.
5024 Reverts change from 2004-05-07 by Jeroen Dekkers.
5026 * sysdeps/mach/hurd/i386/init-first.c (init): Changed the type of
5027 NEWSP from `void *' to `int *'. Changed all casts accordingly.
5029 2004-08-31 Jakub Jelinek <jakub@redhat.com>
5031 * wcsmbs/wcsmbsload.c (__wcsmbs_getfct): Move attribute_hidden
5033 * locale/localename.c (__current_locale_name): Likewise.
5035 2004-08-31 Jakub Jelinek <jakub@redhat.com>
5037 * elf/ldconfig.c (parse_conf): Add prefix argument, prepend it
5038 before arguments to add_dir and pass to parse_conf_include.
5039 (parse_conf_include): Add prefix argument, pass it down to
5041 (main): Call arch_startup. Adjust parse_conf caller.
5043 * sysdeps/generic/dl-cache.h (arch_startup, add_arch_dirs): Define.
5044 * sysdeps/unix/sysv/linux/i386/dl-cache.h: New file.
5045 * sysdeps/unix/sysv/linux/ia64/dl-cache.h (EMUL_HACK, arch_startup,
5046 add_arch_dirs): Define.
5047 * sysdeps/unix/sysv/linux/ia64/ldd-rewrite.sed: Prepend
5048 /emul/ia32-linux before the 32-bit ld.so pathname.
5049 * sysdeps/unix/sysv/linux/ia64/dl-procinfo.c: New file.
5050 * sysdeps/unix/sysv/linux/ia64/dl-procinfo.h: New file.
5052 2004-08-30 Roland McGrath <roland@frob.com>
5054 * scripts/extract-abilist.awk: If `lastversion' variable defined, omit
5055 later sets from output.
5056 * Makerules (check-abi): Pass option to set that with value of
5057 LIB-abi-frozen variable if one is set.
5059 * abilist/libcidn.abilist: New file (empty).
5061 2004-08-30 Jakub Jelinek <jakub@redhat.com>
5063 * posix/bits/posix1_lim.h (_POSIX_CHILD_MAX, _POSIX_OPEN_MAX): If
5064 not __USE_XOPEN2K, use the Unix98 mandated values.
5066 2004-08-27 Roland McGrath <roland@redhat.com>
5068 * configure.in (usetls): Default to yes.
5069 * configure: Regenerated.
5071 2004-08-26 Roland McGrath <roland@redhat.com>
5073 * configure.in (add_ons_automatic): New variable, set to yes or no
5074 indicating --enable-add-ons with no explicit list.
5075 (running add-on fragments): Allow a fragment to modify $libc_add_on
5076 and have that affect its place in the list of add-ons to use.
5077 * configure: Regenerated.
5079 2004-08-26 Ulrich Drepper <drepper@redhat.com>
5081 * nscd/cache.c: Major rewrite. The data is now optionally kept in
5082 a mmaped memory region which is automatically mirrored on disk.
5083 This implements persistent data storage. The Memory handled
5084 needed to be completely revamped, it now uses a garbage collection
5085 mechanism instead of malloc.
5086 * nscd/connections.c: Likewise.
5087 * nscd/nscd.c: Likewise.
5088 * nscd/nscd.h: Likewise.
5089 * nscd/nscd_conf.c: Likewise.
5090 * nscd/nscd_stat.c: Likewise.
5091 * nscd/grpcache.c: Likewise.
5092 * nscd/hstcache.c:: Likewise.
5093 * nscd/pwdcache.c:: Likewise.
5094 * nscd/Makefile: Add rules to build mem.c.
5095 * nscd/mem.c: New file.
5096 * nscd/nscd.conf: Describe new configuration options.
5098 2004-08-26 Kaz Kojima <kkojima@rr.iij4u.or.jp>
5100 * sysdeps/unix/sysv/linux/mips/pread.c: Include sgidefs.h only if
5101 NO_SGIDEFS_H isn't defined.
5102 * sysdeps/unix/sysv/linux/mips/pwrite.c: Likewise.
5103 * sysdeps/unix/sysv/linux/mips/pread64.c: Likewise.
5105 * sysdeps/unix/sysv/linux/sh/pread.c: Define NO_SGIDEFS_H and
5107 * sysdeps/unix/sysv/linux/sh/pwrite.c: Likewise.
5108 * sysdeps/unix/sysv/linux/sh/pread64.c: Likewise.
5109 * sysdeps/unix/sysv/linux/sh/pwrite64.c: Likewise.
5111 2004-08-26 Ulrich Drepper <drepper@redhat.com>
5113 * nscd/connections.c (nscd_run): atomic_increment was not missing.
5115 * sysdeps/gnu/Makefile (libdl-sysdep_routines): Don't add eval.
5116 Patch by Greg Schafer.
5118 2004-08-25 Richard Henderson <rth@redhat.com>
5120 * sysdeps/alpha/elf/start.S (_start): Use $15 as frame unwind
5121 instead of $31. Zero $15.
5122 * sysdeps/unix/sysv/linux/alpha/clone.S (thread_start): Likewise.
5124 2004-08-25 Ulrich Drepper <drepper@redhat.com>
5126 * sysdeps/powerpc/powerpc64/bits/atomic.h
5127 (__arch_compare_and_exchange_bool_32_acq): Fix case where oldval
5129 (__arch_compare_and_exchange_bool_32_rel): Likewise.
5131 * nscd/connections.c: Make socket nonblocking so that threads
5132 don't get stuck on accept. Fix locking.
5134 * nscd/grpcache.c (cache_addgr): Use copy of original key in hash
5135 entry with alternative key.
5136 * nscd/pwdcache.c (cache_addpw): Likewise.
5138 2004-08-25 Richard Sandiford <rsandifo@redhat.com>
5140 * sysdeps/mips/dl-machine.h (_dl_start_user): Don't set
5143 2004-08-23 Ulrich Drepper <drepper@redhat.com>
5145 * sysdeps/gnu/netinet/udp.h: Cosmetic changes. Remove unnecessary
5146 __BEGIN_DECLS/__END_DECLS.
5148 2004-08-23 Andreas Jaeger <aj@suse.de>
5151 * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h (O_NOATIME): Define.
5152 * sysdeps/unix/sysv/linux/arm/bits/fcntl.h (O_NOATIME): Likewise.
5153 * sysdeps/unix/sysv/linux/cris/bits/fcntl.h (O_NOATIME): Likewise.
5154 * sysdeps/unix/sysv/linux/hppa/bits/fcntl.h (O_NOATIME): Likewise.
5155 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h (O_NOATIME): Likewise.
5156 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h (O_NOATIME): Likewise.
5157 * sysdeps/unix/sysv/linux/m68k/bits/fcntl.h (O_NOATIME): Likewise.
5158 * sysdeps/unix/sysv/linux/mips/bits/fcntl.h (O_NOATIME): Likewise.
5159 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h (O_NOATIME): Likewise.
5160 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (O_NOATIME): Likewise.
5161 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h (O_NOATIME): Likewise.
5162 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_NOATIME): Likewise.
5163 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h (O_NOATIME): Likewise.
5165 2004-08-21 Ulrich Drepper <drepper@redhat.com>
5167 * malloc/hooks.c (DEFAULT_CHECK_ACTION): Moved to malloc.c.
5168 (check_action): Likewise.
5169 When printing error messages, use malloc_printf_nc now instead of
5170 fiddling with the streams cancellation flag in every place.
5171 * malloc/malloc.c (DEFAULT_CHECK_ACTION): New definition. Change
5173 (check_action): New variable.
5174 (unlink): Print error message and eventually terminate in case list
5176 (malloc_printf_nc): New function. Use it in _int_free.
5177 Change proposed by Arjan van de Ven.
5179 * dlfcn/Makefile: Don't build eval.c anymore.
5181 2004-08-20 Roland McGrath <roland@frob.com>
5183 * csu/Makefile ($(objpfx)version-info.h): Use printf in place
5184 of echo -e for POSIX.2 portability.
5185 Reported by Paul Jarc <prj@po.cwru.edu>.
5187 2004-08-19 Ulrich Drepper <drepper@redhat.com>
5189 * sysdeps/posix/getaddrinfo.c (gaih_inet): Minor optimizations in
5192 * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't use
5193 getcanonname_r function if AI_CANONNAME flag is not set in
5196 * nis/nss_compat/compat-initgroups.c (getgrent_next_nss):
5197 Initialize mysize with limits only if latter is >= 0. Use mysize
5200 2004-08-19 Jakub Jelinek <jakub@redhat.com>
5202 * sysdeps/posix/getaddrinfo.c (gaih_inet): Cast canon to (char *)
5205 * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Initialize
5206 status to NSS_STATUS_UNAVAIL.
5208 2004-08-19 Jakub Jelinek <jakub@redhat.com>
5210 * sysdeps/powerpc/powerpc64/configure.in: New file.
5211 * sysdeps/powerpc/powerpc64/configure: Rebuilt.
5212 * config.h.in (USE_PPC64_OVERLAPPING_OPD): Add.
5213 * configure.in (HAVE_ASM_GLOBAL_DOT_NAME): Remove.
5214 * configure: Rebuilt.
5215 * sysdeps/powerpc/powerpc64/sysdep.h: Formatting.
5216 (OPD_ENT, BODY_LABEL, ENTRY_1, ENTRY_2, END_2, DOT_PREFIX,
5217 BODY_PREFIX): Define.
5218 (ENTRY, DOT_LABEL, END, TRACEBACK, END_GEN_TB, EALIGN): Support
5219 HAVE_ASM_GLOBAL_DOT_NAME or no dot symbols,
5220 USE_PPC64_OVERLAPPING_OPD or never overlapping .opd entries.
5221 * sysdeps/powerpc/powerpc64/dl-machine.h: Include sysdep.h.
5222 (TRAMPOLINE_TEMPLATE, RTLD_START): Use the new sysdep.h macros.
5224 2004-08-19 Ulrich Drepper <drepper@redhat.com>
5226 * sysdeps/posix/getaddrinfo.c (gaih_inet): Use h->h_name in the
5227 cannoname lookup since it has the FQDN even if the original NAME
5230 2004-08-18 Ulrich Drepper <drepper@redhat.com>
5232 * sysdeps/posix/getaddrinfo.c (gaih_inet): Store NAME parameter
5233 pointer in new variable ORIG_NAME and use this pointer when
5234 determination of canonical name failed, not the possibly IDN
5235 translated value of NAME.
5237 2004-08-17 Ulrich Drepper <drepper@redhat.com>
5239 * resolv/resolv.h (RES_DEFAULT): Add RES_NOIP6DOTINT.
5240 * resolv/res_init.c (res_setoptions): Recognize ip6-dotint option.
5241 Reset RES_NOIP6DOTINT flag in this case..
5243 * sysdeps/posix/getaddrinfo.c: Fix memory handling of
5246 2004-08-16 Ulrich Drepper <drepper@redhat.com>
5248 * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Don't use
5249 CNAME records, we better follow the chain of CNAME records which
5250 can be accomplished with A/AAAA lookups.
5252 2004-08-15 Roland McGrath <roland@redhat.com>
5254 * sysdeps/unix/sysv/linux/bits/resource.h (enum __rusage_who):
5255 Remove __RUSAGE_BOTH constant and RUSAGE_BOTH macro.
5256 * sysdeps/unix/sysv/linux/alpha/bits/resource.h: Likewise.
5257 * sysdeps/unix/sysv/linux/mips/bits/resource.h: Likewise.
5258 * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Likewise.
5260 2004-08-15 Roland McGrath <roland@frob.com>
5262 * sysdeps/i386/i686/Makefile (elide-routines.os): Append hp-timing to
5264 (static-only-routines): ... this.
5265 * sysdeps/ia64/Makefile: Likewise.
5266 * sysdeps/sparc/sparc32/sparcv9/Makefile: Likewise.
5267 * sysdeps/sparc/sparc64/Makefile: Likewise.
5268 * sysdeps/x86_64/Makefile: Likewise.
5269 * sysdeps/i386/i686/hp-timing.c: Revert copyright terms change.
5270 * sysdeps/ia64/hp-timing.c: Likewise.
5271 * sysdeps/sparc/sparc32/sparcv9/hp-timing.c: Likewise.
5272 * sysdeps/sparc/sparc64/hp-timing.c: Likewise.
5274 * csu/elf-init.c: Update copyright terms including special exception
5275 for these trivial files, which are statically linked into executables
5276 that use dynamic linking for the significant library code.
5277 * io/fstat.c: Likewise.
5278 * io/fstat64.c: Likewise.
5279 * io/lstat.c: Likewise.
5280 * io/lstat64.c: Likewise.
5281 * io/stat.c: Likewise.
5282 * io/stat64.c: Likewise.
5283 * stdlib/atexit.c: Likewise.
5284 * sysdeps/alpha/elf/initfini.c: Likewise.
5285 * sysdeps/alpha/elf/start.S: Likewise.
5286 * sysdeps/arm/elf/start.S: Likewise.
5287 * sysdeps/cris/elf/start.S: Likewise.
5288 * sysdeps/generic/initfini.c: Likewise.
5289 * sysdeps/generic/mknod.c: Likewise.
5290 * sysdeps/hppa/elf/initfini.c: Likewise.
5291 * sysdeps/hppa/elf/start.S: Likewise.
5292 * sysdeps/i386/elf/start.S: Likewise.
5293 * sysdeps/i386/i686/hp-timing.c: Likewise.
5294 * sysdeps/ia64/elf/initfini.c: Likewise.
5295 * sysdeps/ia64/elf/start.S: Likewise.
5296 * sysdeps/ia64/hp-timing.c: Likewise.
5297 * sysdeps/m68k/elf/start.S: Likewise.
5298 * sysdeps/mach/start.c: Likewise.
5299 * sysdeps/mips/elf/start.S: Likewise.
5300 * sysdeps/powerpc/powerpc32/elf/start.S: Likewise.
5301 * sysdeps/powerpc/powerpc64/elf/start.S: Likewise.
5302 * sysdeps/s390/s390-32/elf/start.S: Likewise.
5303 * sysdeps/s390/s390-32/initfini.c: Likewise.
5304 * sysdeps/s390/s390-64/elf/start.S: Likewise.
5305 * sysdeps/s390/s390-64/initfini.c: Likewise.
5306 * sysdeps/sh/elf/initfini.c: Likewise.
5307 * sysdeps/sh/elf/start.S: Likewise.
5308 * sysdeps/sparc/sparc32/elf/start.S: Likewise.
5309 * sysdeps/sparc/sparc32/sparcv9/hp-timing.c: Likewise.
5310 * sysdeps/sparc/sparc64/elf/start.S: Likewise.
5311 * sysdeps/sparc/sparc64/hp-timing.c: Likewise.
5312 * sysdeps/standalone/i386/start.S: Likewise.
5313 * sysdeps/standalone/i960/start.S: Likewise.
5314 * sysdeps/standalone/m68k/m68020/start.S: Likewise.
5315 * sysdeps/unix/arm/start.c: Likewise.
5316 * sysdeps/unix/bsd/osf/alpha/start.S: Likewise.
5317 * sysdeps/unix/bsd/ultrix4/mips/start.S: Likewise.
5318 * sysdeps/unix/sparc/start.c: Likewise.
5319 * sysdeps/unix/start.c: Likewise.
5320 * sysdeps/unix/sysv/aix/start.s: Likewise.
5321 * sysdeps/unix/sysv/irix4/start.c: Likewise.
5322 * sysdeps/x86_64/elf/initfini.c: Likewise.
5323 * sysdeps/x86_64/elf/start.S: Likewise.
5325 2004-08-15 Roland McGrath <roland@redhat.com>
5328 * sysdeps/unix/sysv/linux/kernel-features.h
5329 (__ASSUME_BRK_PAGE_ROUNDED): New macro.
5330 * sysdeps/unix/sysv/linux/dl-sysdep.c (frob_brk)
5331 [! __ASSUME_BRK_PAGE_ROUNDED]: Adjust the break up if it falls within
5332 the partial page after the dynamic linker's own data segment.
5334 2004-08-15 Ulrich Drepper <drepper@redhat.com>
5336 * sysdeps/posix/getaddrinfo.c (gaih_inet): Optimize generation of
5337 v4-mapped addresses a bit.
5338 (gethosts): Move alloca out of macro, so that it is done only once.
5340 * sysdeps/posix/getaddrinfo.c (gaih_addrtuple): Change type of
5341 addr to avoid casts.
5342 (gethosts): Removed.
5343 (gethosts2): Renamed to gethosts. Make it usable for family !=
5344 AF_UNSPEC. Fix AI_V4MAPPED.
5345 (gaih_inet): Remove use of old gethosts. Always use what used to be
5346 gethosts2. If entry is found, try to use the same NSS module's
5347 getcanonname_r function. Use gethostbyaddr for AI_CANONNAME only
5348 if getcanonname_r was not available. Fix filtering of AI_V4MAPPED
5349 addresses. Numerous cleanups.
5350 * resolv/nss_dns/dns-canon.c: New file.
5351 * resolv/Makefile (libnss_dns-routines): Add dns-canon.
5352 * resolv/Versions (libnss_dns): Add _nss_dns_getcanonname_r.
5354 * elf/Makefile: Add rules to build and run tst-dlopenrpath.
5355 * elf/tst-dlopenrpath.c: New file.
5356 * elf/tst-dlopenrpathmod.c: New file.
5358 * intl/tst-gettext.sh: Adjust for change of de.po file to UTF-8.
5359 * intl/tst-gettext.c: Likewise.
5361 * nss/getent.c (ahosts_keys_int): Correctly print IPv6 addresses.
5363 * nss/getent.c: Allow queries for getaddrinfo with AF_INET and
5366 2004-08-14 Ulrich Drepper <drepper@redhat.com>
5368 * po/de.po: Update from translation team.
5370 2004-08-14 Roland McGrath <roland@frob.com>
5372 * sysdeps/mach/configure: Regenerated.
5373 * sysdeps/mach/hurd/configure: Regenerated.
5375 2004-08-14 Ulrich Drepper <drepper@redhat.com>
5377 * sysdeps/posix/getaddrinfo.c (getaddrinfo): If RFC3484 sorting is
5378 performed, make sure it is still the first entry after sorting
5379 that has the ai_canonname information.
5381 * sysdeps/posix/getaddrinfo.c (gaih_inet): Really set ai_canonname
5384 2004-08-13 Daniel Jacobowitz <dan@debian.org>
5386 * scripts/output-format.sed: Handle default case of three-argument
5389 * sysdeps/arm/machine-gmon.h (mcount_internal): Mark as
5392 2004-08-13 Ulrich Drepper <drepper@redhat.com>
5394 * nss/getent.c (ahosts_keys): ai_canonname is NULL for all but the
5395 first returned entry. Print name only if not NULL.
5397 * nis/nss_nis/nis-netgrp.c: Remove locking by using data in struct
5398 __netgrent object passed in instead of global variables.
5400 * nis/nss_nisplus/nisplus-netgrp.c: Remove locking by using data
5401 in struct __netgrent object passed in instead of global variables.
5402 * inet/netgroup.h (struct __netgrent): Add service_user field.
5403 Move cursor in anonymous union, add new field location to that
5405 * inet/getnetgrent_r.c: Extensive rewrite to really enable
5406 concurrent uset of set/get/endnetgrent and innetgr.
5407 Reported by Chuck Simmons.
5409 * inet/netgroup.h (struct name_list): Replace name pointer with
5411 * inet/getnetgrent_r.c: Adjust code for change in name_list
5412 layout. Numerous strdup and free calls removed.
5414 * elf/sprof.c (read_symbols): When comparing aliases, prefer
5415 non-hidden over hidden symbols and strong over weak symbols
5416 if both don't start with '_'.
5418 * malloc/malloc.c: Use strong_alias instead of weak_alias wherever
5421 2004-08-12 Jakub Jelinek <jakub@redhat.com>
5423 * sysdeps/unix/sysv/linux/bits/resource.h: Define non-standard
5424 RUSAGE_ enums as __RUSAGE_ and adjust macros accordingly.
5425 * sysdeps/unix/sysv/linux/alpha/bits/resource.h: Likewise.
5426 * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Likewise.
5427 * sysdeps/unix/sysv/linux/mips/bits/resource.h: Likewise.
5428 Define non-standard RLIMIT_ enums as __RLIMIT_ and adjust macros
5431 2004-08-11 Andreas Schwab <schwab@suse.de>
5433 * resolv/res_libc.c: Move definition of __res_initstamp ...
5434 * resolv/res_init.c: ... here.
5436 2004-08-10 GOTO Masanori <gotom@debian.or.jp>
5438 * locale/C-time.c: Change default ERA value from NULL to "".
5439 * locale/tst-C-locale.c: Add test case for ERA keywords.
5441 2004-08-12 Ulrich Drepper <drepper@redhat.com>
5443 * sysdeps/unix/sysv/linux/bits/resource.h: Define non-standard
5444 RLIMIT__ enums as __RLIMIT_ and adjust macros accordingly.
5445 * sysdeps/unix/sysv/linux/alpha/bits/resource.h: Likewise.
5446 * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Likewise.
5448 2004-08-12 Jakub Jelinek <jakub@redhat.com>
5450 * sysdeps/unix/sysv/linux/bits/resource.h (RLIMIT_SIGPENDING,
5451 RLIMIT_MSGQUEUE): Add.
5452 (RLIMIT_NLIMITS, RLIM_NLIMITS): Adjust.
5453 * sysdeps/unix/sysv/linux/alpha/bits/resource.h (RLIMIT_SIGPENDING,
5454 RLIMIT_MSGQUEUE, RLIMIT_NLIMITS): Add.
5455 (RLIM_NLIMITS): Adjust.
5456 * sysdeps/unix/sysv/linux/sparc/bits/resource.h (RLIMIT_SIGPENDING,
5457 RLIMIT_MSGQUEUE, RLIMIT_NLIMITS): Add.
5458 (RLIM_NLIMITS): Adjust.
5459 * sysdeps/unix/sysv/linux/mips/bits/resource.h (RLIMIT_SIGPENDING,
5460 RLIMIT_MSGQUEUE, RLIMIT_NLIMITS): Add.
5461 (RLIM_NLIMITS): Adjust.
5463 2004-08-12 Jakub Jelinek <jakub@redhat.com>
5465 * resolv/res_query.c (__libc_res_nsearch): Protect the debugging
5466 printf with #ifdef DEBUG and RES_DEBUG check.
5468 * sysdeps/unix/sysv/linux/bits/shm.h: Move __END_DECLS after
5470 * sysdeps/generic/bits/shm.h: Add __BEGIN_DECLS for __getpagesize
5472 * sysdeps/gnu/bits/shm.h: Likewise.
5473 * sysdeps/unix/sysv/linux/alpha/bits/shm.h: Likewise.
5474 * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Likewise.
5475 * sysdeps/unix/sysv/linux/s390/bits/shm.h: Likewise.
5476 * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Likewise.
5477 * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: Likewise.
5479 2004-08-12 Ulrich Drepper <drepper@redhat.com>
5481 * po/ca.po: Update from translation team.
5483 2004-08-11 Ulrich Drepper <drepper@redhat.com>
5485 * sysdeps/unix/sysv/linux/bits/shm.h: Add __BEGIN_DECLS for
5486 __getpagesize declaration.
5488 2004-08-11 Roland McGrath <roland@redhat.com>
5490 * configure.in (libc_cv_cpp_asm_debuginfo): Add missing braces around
5492 Reported by Andreas Schwab <schwab@suse.de>.
5493 * configure: Regenerated.
5495 * posix/tst-waitid.c (do_test): Ignore SIGCHLD before cleanup SIGKILL.
5497 2004-08-11 Ulrich Drepper <drepper@redhat.com>
5499 * time/tzset.c (tzset_internal): Add new parameter which is
5500 nonzero if called through tzset. Use TZDEFAULT name including
5501 name comparison if the new parameter is zero. This means implicit
5502 tzset calls will not cause files to be opened and read by tzfile.c
5505 2004-08-11 Jakub Jelinek <jakub@redhat.com>
5507 * rt/tst-timer2.c (do_test): If timer_create fails, just continue.
5508 * rt/tst-timer4.c (do_test): If one of the timer_create calls fails,
5509 return 1 immediately.
5511 * time/tzfile.c (__tzfile_read): Free transitions only if it will
5514 * sysdeps/ieee754/dbl-64/mpa.c: Include <sys/param.h>.
5515 * sysdeps/ieee754/dbl-64/mpa.h (MAX, MIN): Macros removed.
5517 * stdio-common/tst-popen.c: Include <string.h>.
5519 * resolv/res_send.c (__libc_res_nsend): Only define TMPBUF #if DEBUG.
5521 * sysdeps/pthread/aio_misc.c (handle_fildes_io): Remove noreturn
5522 attribute. Return NULL instead of calling pthread_exit at the end.
5524 2004-08-11 Roland McGrath <roland@redhat.com>
5526 * iconvdata/testdata/ISO-2022-JP-3: Regenerated.
5528 2004-07-23 Jakub Jelinek <jakub@redhat.com>
5531 * include/features.h (_POSIX_SOURCE, _POSIX_C_SOURCE): Define
5532 if _XOPEN_SOURCE >= 500 even if __STRICT_ANSI__ is defined.
5534 2004-08-10 Alfred M. Szmidt <ams@kemisten.nu>
5536 * sysdeps/generic/bits/in.h (struct ip_mreq): Remove definition.
5538 2004-08-10 Jakub Jelinek <jakub@redhat.com>
5540 * libio/bits/stdio.h (fread_unlocked): Cast 0 to (size_t).
5541 (fwrite_unlocked): When checking if size * n is <= 8, cast each
5542 argument to size_t individually. Cast n to (void) instead of
5543 (size_t), surround with (), return (size_t) 0 if one of n or size
5545 * stdio-common/Makefile (tests): Add tst-unlockedio.
5546 * stdio-common/tst-unlockedio.c: New test.
5548 2004-08-09 Roland McGrath <roland@frob.com>
5550 * manual/install.texi (Supported Configurations): Replace bug-glibc
5551 mention with web URL.
5552 * INSTALL: Regenerated.
5553 * locale/iso-3166.def: Likewise, in comment.
5554 * locale/iso-4217.def: Likewise.
5555 * locale/iso-639.def: Likewise.
5556 * posix/cpio.h: Remove bug reporting comment.
5558 2004-08-09 Ulrich Drepper <drepper@redhat.com>
5560 * libio/bits/stdio.h (fread_unlocked): Add a couple of (size_t)
5561 casts to handle funny calls with floating point argument values
5562 and signed values correctly and without warning.
5563 (fwrite_unlocked): Likewise. [BZ #309]
5565 * malloc/memusage.c (me): Use creat64, not creat.
5566 * malloc/memusagestat.c: Fix handling of very large sizes. [BZ #285]
5567 Patch by Guy Maor <guymaor@yahoo.com>.
5569 * elf/ldconfig.c (options): Mark parameter option names as
5570 translatable. [BZ #253] Patch by Jakub Bogusz <qboosh@pld-linux.org>.
5572 * iconv/gconv_charset.h (strip): Also allow comma which is what is
5573 used to separate options. [BZ #194]
5575 2004-08-09 Roland McGrath <roland@redhat.com>
5577 * FAQ.in: Refer to web pages instead of bug-glibc.
5580 * time/strptime_l.c: #include <stdbool.h>, `bool' used in last change.
5582 2004-08-09 Ulrich Drepper <drepper@redhat.com>
5584 * time/tzset.c (tzset_internal): If TZ is not set do not compare
5585 old and new tz value since it might be /etc/localtime in both
5586 cases although the file changed. [BZ #154]
5587 Patch by Christian Franke <franke@computer.org>.
5589 * time/tzfile.c (__tzfile_read): Determine dev/ino of file.
5590 Compare with values of previously opened file. Don't do anything
5593 2004-08-08 Ulrich Drepper <drepper@redhat.com>
5595 * elf/dl-load.c (_dl_map_object): If __RTLD_CALLMAP flag is set,
5596 reset loader before the actual loading.
5597 * elf/dl-open.c (dl_open_worker): If file name contains no path
5598 element determine map of caller. Pass caller map in this case to
5599 _dl_map_object. Set __RTLD_CALLMAP in mode.
5600 * include/dlfcn.h (__RTLD_CALLMAP): Define. [BZ #116]
5601 Patch by Greg Wolodkin <greg@mathworks.com>.
5603 * misc/syslog.c (openlog_internal): Always try both UDP and TCP.
5604 [BZ #108] Patch mainly by Bjorn Andersson <bjorn@iki.fi>.
5606 * configure.in: Also recognize i786. [BZ #106]
5607 Patch by <pluto@pld-linux.org>.
5609 * resolv/res_query.c (__libc_res_nsearch): Correctly test whether
5610 name contains any dots. [BZ #95]
5612 * resolv/res_send.c: Compiling with DEBUG defined works again.
5613 * resolv/gethnamaddr.c (dprintf): Renamed to Dprintf. Adjust all
5616 * resolv/tst-leaks.c (TIMEOUT): Define so that if no server is
5617 available the process is not killed. [BZ #41]
5619 * intl/tst-gettext.c (main): Improve some messages. [BZ #33]
5621 * time/strptime_l.c (__strptime_internal): Fix handling of %Ey.
5624 * po/sv.po: Update from translation team.
5626 2004-08-07 Ulrich Drepper <drepper@redhat.com>
5628 * inet/netinet/in.h: Add more const to the setipv4soucefilter,
5629 getsourcefilter, and setsourcefilter parameter list.
5630 * sysdeps/generic/setipv4sourcefilter.c: Likewise.
5631 * sysdeps/generic/getsourcefilter.c: Likewise.
5632 * sysdeps/generic/setsourcefilter.c: Likewise.
5633 * sysdeps/unix/sysv/linux/setipv4sourcefilter.c: Likewise.
5634 * sysdeps/unix/sysv/linux/getsourcefilter.c: Likewise.
5635 * sysdeps/unix/sysv/linux/setsourcefilter.c: Likewise.
5637 * po/tr.po: Update from translation team.
5639 2004-08-06 Ulrich Drepper <drepper@redhat.com>
5641 * iconvdata/jisx0213.h (jisx0213_added_in_2004_p): Fix typo.
5642 Reported by Paolo Bonzini.
5644 2004-08-06 Jakub Jelinek <jakub@redhat.com>
5646 * sysdeps/ia64/dl-machine.h (elf_machine_fixup_plt): Add
5648 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_runtime_setup,
5649 elf_machine_fixup_plt, elf_machine_plt_conflict): Likewise.
5651 * sysdeps/unix/sysv/linux/netatalk/at.h: Include bits/sockaddr.h
5652 before including linux/atalk.h.
5654 * resolv/res_libc.c: Include atomic.h.
5656 * intl/finddomain.c (free_mem): Rename to...
5657 (_nl_finddomain_subfreeres): ... this. Add
5658 __libc_freeres_fn_section.
5659 * intl/loadmsgcat.c (_nl_unload_domain): Add
5660 __libc_freeres_fn_section.
5661 * intl/gettextP.h (_nl_unload_domain): Move into #ifdef _LIBC.
5662 Add attribute_hidden.
5663 (_nl_findomain_subfreeres): New prototype.
5664 * iconv/gconv_db.c (free_mem): Call _nl_findomain_subfreeres.
5666 2004-07-30 Guido Guenther <agx@sigxcpu.org>
5668 * nss/getent.c (passwd_keys): Use strtoul instead of isdigit to
5669 test if the key is numeric or not.
5670 (group_keys): Likewise.
5672 2004-08-05 Ulrich Drepper <drepper@redhat.com>
5674 * inet/netinet/in.h: Define struct ip_msfilter, IP_MSFILTER_SIZE,
5675 struct group_filter, and GROUP_FILTER_SIZE.
5676 * include/sys/socket.h: Declare __getsockopt.
5677 * sysdeps/unix/sysv/linux/setipv4sourcefilter.c: New file.
5678 * sysdeps/unix/sysv/linux/getipv4sourcefilter.c: New file.
5679 * sysdeps/unix/sysv/linux/setsourcefilter.c: New file.
5680 * sysdeps/unix/sysv/linux/getsourcefilter.c: New file. [BZ #211]
5682 * po/ko.po: Update from translation team.
5684 2004-08-04 Jakub Jelinek <jakub@redhat.com>
5686 * hesiod/hesiod.c (__hesiod_res_get): Use calloc instead of malloc +
5688 (__hesiod_res_set): Free nsaddrs.
5690 * include/resolv.h (__res_maybe_init): Add prototype.
5691 * resolv/resolv.h (struct __res_state): Add _u._ext.initstamp field.
5692 * resolv/Versions (libc): Add __res_maybe_init@@GLIBC_PRIVATE.
5693 * resolv/res_libc.c (__res_initstamp, lock): New variables.
5694 (res_init): Increase __res_initstamp.
5695 (__res_maybe_init): New function.
5696 * resolv/res_init.c (__res_vinit): Initialize _u._ext.initstamp.
5697 * hesiod/hesiod.c (__hesiod_res_get): Use __res_maybe_init instead
5698 of RES_INIT check and {res_ninit,__res_ninit,res_init} call.
5699 * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
5700 * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname2_r,
5701 _nss_dns_gethostbyaddr_r): Likewise.
5702 * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyname_r,
5703 _nss_dns_getnetbyaddr_r): Likewise.
5704 * resolv/gethnamaddr.c (gethostbyname, gethostbyname2,
5705 gethostbyaddr): Likewise.
5706 * resolv/res_data.c (fp_nquery, res_mkquery, res_mkupdate,
5707 res_isourserver, res_sendsigned, res_update, res_search,
5708 res_querydomain): Likewise.
5709 * nss/getXXbyYY_r.c (INTERNAL (REENTRANT_NAME)): Likewise.
5710 * nss/digits_dots.c (__nss_hostname_digits_dots): Likewise.
5711 * nss/getnssent_r.c (__nss_setent, __nss_endent, __nss_getent_r):
5714 2004-08-05 Ulrich Drepper <drepper@redhat.com>
5716 * sysdeps/posix/getaddrinfo.c (gaih_inet): Set ai_family for
5717 V4-mapped IPv6 addresses and req->ai_family==AF_INET.
5718 Reported by A. Guru <a.guru@sympatico.ca>.
5720 * po/sv.po: Update from translation team.
5721 * po/sk.po: Likewise.
5722 * po/pl.po: Likewise.
5724 2004-08-04 Jakub Jelinek <jakub@redhat.com>
5725 Ulrich Drepper <drepper@redhat.com>
5727 * wcsmbs/mbsrtowcs_l.c (__mbsrtowcs_l): Don't read more input
5728 characters than necessary.
5730 2004-08-05 Ulrich Drepper <drepper@redhat.com>
5732 * wcsmbs/Makefile (tests): Add tst-mbsrtowcs.
5733 * wcsmbs/tst-mbsrtowcs.c: New file.
5735 * po/fr.po: Update from translation team.
5737 2004-08-04 Jakub Jelinek <jakub@redhat.com>
5739 * resolv/inet_pton.c (inet_pton4): Disallow octal numbers. Reported
5740 by A. Guru <a.guru@sympatico.ca>. [BZ #295]
5742 2004-08-05 Ulrich Drepper <drepper@redhat.com>
5744 * po/nl.po: Update from translation team.
5746 * sysdeps/posix/getaddrinfo.c (gaih_inet): Recognize all the IPv4
5747 numeric address formats inet_addr knows.
5748 (getaddrinfo): Allow AI_NUMERICSERV flag.
5749 If neither IPv4 nor IPv6 interface is present we cannot make any
5750 decision for AI_ADDRCONFIG. Fail if AI_NUMERICSERV is set and the
5751 string is not just a number. Remove useless freeaddrinfo call.
5752 * resolv/netdb.h (AI_NUMERICSERV): Define.
5753 Based on a patch by a.guru@sympatico.ca.
5755 2004-08-04 Jakub Jelinek <jakub@redhat.com>
5757 * stdlib/strfmon_l.c (__vstrfmon_l): Memset whole info structure
5758 instead of trying to initialize some, but not all, fields one by
5760 * stdio-common/printf_size.c (printf_size): Initialize fb_info
5761 structure with *info instead of trying to initialize some, but not
5762 all, fields from it.
5764 * nscd/connections.c (handle_request): Check if req->type is in
5765 LASTDBREQ .. LASTREQ range instead of req.
5767 * locale/programs/linereader.c (lr_create): Initialize
5768 lr->return_widestr to 0.
5770 * elf/dl-close.c (free_slotinfo): Add __libc_freeres_fn_section.
5771 (free_mem): Call free_slotinfo just once.
5773 * stdio-common/tst-fmemopen.c (main): Check for MAP_FAILED instead
5776 * locale/localeinfo.h (_nl_locale_subfreeres): New prototype.
5777 * locale/setlocale.c (free_category): Add __libc_freeres_fn_section.
5778 (free_mem): Rename to _nl_locale_subfreeres.
5779 * iconv/gconv_db.c: Include locale/localeinfo.h.
5780 (free_derivation, free_modules_db): Add __libc_freeres_fn_section.
5781 (free_mem): Call _nl_locale_subfreeres.
5782 * iconv/gconv_dl.c (do_release_all): Add __libc_freeres_fn_section.
5784 2004-08-04 Roland McGrath <roland@frob.com>
5786 * Makeconfig ($(common-objpfx)config.status):
5787 Fix typo: $(add_ons) -> $(add-ons).
5788 (Makeconfig-add-on): New variable. When doing $(sysdep-makeconfigs)
5789 include, use black magic to get it set to an add-on's name during the
5790 include of the add-on's Makeconfig.
5792 * configure.in: Use variable name `libc_add_on' when sourcing add-on
5793 configure fragments, so they can refer to this.
5794 * configure: Regenerated.
5796 2004-08-04 Roland McGrath <roland@redhat.com>
5798 * posix/tst-waitid.c (test_child): Sleep a second before stopping.
5799 (do_test): Bump sleep to three seconds.
5800 (sigchld, check_sigchld): New functions.
5801 (do_test): Handle SIGCHLD and check for getting the right details.
5803 * posix/tst-waitid.c (do_test): Kill the child process when bailing
5804 out early on some failure.
5805 [WCONTINUED]: Test WCONTINUED functionality.
5807 2004-08-03 Ulrich Drepper <drepper@redhat.com>
5809 * nscd/connections.c (handle_request): Print more descriptive
5810 message for invalid request types.
5812 2004-08-02 Jakub Jelinek <jakub@redhat.com>
5814 * iconvdata/ibm932.c (BODY): Avoid binary search for ch >= 0xffff.
5815 Always treat high as highest number in range + 1.
5816 * iconvdata/ibm943.c (BODY): Likewise.
5818 2004-07-31 Bruno Haible <bruno@clisp.org>
5820 * iconvdata/JISX0213.TXT: Updated to JISX0213 plane 1 version 2004.
5821 * iconvdata/jisx0213.c (__jisx0213_to_ucs_main,
5822 __jisx0213_to_ucs_pagestart, __jisx0213_from_ucs_level1,
5823 __jisx0213_from_ucs_level2): Regenerated.
5824 * iconvdata/jisx0213.h (jisx0213_added_in_2004_p): New function.
5825 * iconvdata/iso-2022-jp-3.c (JISX0213_1_2000_set): Renamed from
5827 (JISX0213_1_2004_set): New enum value.
5828 (BODY for FROM_LOOP): Treat ESC $ ( Q like ESC $ ( O.
5829 (BODY for TO_LOOP): For JISX 0213 plane 1 characters, emit ESC $ ( O
5830 when possible, ESC $ ( Q when needed.
5831 * iconvdata/testdata/EUC-JISX0213: Add the 10 new characters.
5832 * iconvdata/testdata/EUC-JISX0213..UTF8: Update.
5833 * iconvdata/testdata/SHIFT_JISX0213: Add the 10 new characters.
5834 * iconvdata/testdata/SHIFT_JISX0213..UTF8: Update.
5835 * iconvdata/testdata/ISO-2022-JP-3: Add the 10 new JISX0213 characters.
5836 * iconvdata/testdata/ISO-2022-JP-3..UTF8: Update.
5838 2004-07-22 Bruno Haible <bruno@clisp.org>
5840 * iconvdata/gconv-modules (ISO-8859-7): Add alias ISO_8859-7:2003.
5842 2004-07-29 David S. Miller <davem@redhat.com>
5844 * sysdeps/sparc/sparc64/sparcv9b/memcpy.S (memcpy): Optimize
5845 better for smaller than 256 byte copies. Also, use only one
5846 unrolled loop instead of two for the large copy case.
5848 2004-07-30 Richard Henderson <rth@redhat.com>
5850 * sysdeps/alpha/divq.S: Save t3 before it gets clobbered.
5851 * sysdeps/alpha/remq.S: Likewise.
5852 * sysdeps/alpha/div.S, sysdeps/alpha/ldiv.S: Rewrite with the
5853 new division algorithms in divl.S and divq.S respectively.
5855 2004-07-28 GOTO Masanori <gotom@debian.or.jp>
5857 * timezone/asia: Update from tzdata2004b.
5858 * timezone/backward: Likewise.
5859 * timezone/europe: Likewise.
5860 * timezone/iso3166.tab: Likewise.
5861 * timezone/leapseconds: Likewise.
5862 * timezone/northamerica: Likewise.
5863 * timezone/southamerica: Likewise.
5864 * timezone/zone.tab: Likewise.
5866 * timezone/private.h: Update from tzcode2004b.
5867 * timezone/zic.c: Likewise.
5869 2004-07-27 Ulrich Drepper <drepper@redhat.com>
5871 * nscd/grpcache.c (cache_addgr): If necessary, add entry also
5872 under the name the user provided.
5873 * nscd/pwdcache.c (cache_addpw): Likewise.
5875 2004-07-26 Roland McGrath <roland@redhat.com>
5877 * sysdeps/posix/waitid.c [WEXITED]: Clear WEXITED bit in OPTIONS for
5880 2004-07-26 Ulrich Drepper <drepper@redhat.com>
5882 * nscd/hstcache.c (cache_addhst): Fix two scenarios which lead to
5885 * sysdeps/unix/sysv/linux/ifreq.c (__ifreq): Assign pointer for
5886 new buffer at the right time.
5887 Reported by Jakub Bogusz <qboosh@pld-linux.org>.
5889 2004-07-25 Ulrich Drepper <drepper@redhat.com>
5891 * inet/Versions [libc, GLIBC_2.3.4]: Add getipv4sourcefilter,
5892 getsourcefilter, setipv4sourcefilter, and setsourcefilter.
5893 * inet/Makefile (routines): Likewise.
5894 * inet/netinet/in.h: Add prototypes for getipv4sourcefilter,
5895 getsourcefilter, setipv4sourcefilter, and setsourcefilter.
5896 * sysdeps/generic/getipv4sourcefilter.c: New file.
5897 * sysdeps/generic/setipv4sourcefilter.c: New file.
5898 * sysdeps/generic/getsourcefilter.c: New file.
5899 * sysdeps/generic/setsourcefilter.c: New file.
5901 2004-07-17 Steven Munroe <sjmunroe@us.ibm.com>
5903 * sysdeps/powerpc/powerpc64/memcpy.S: Improve instruction scheduling
5904 for POWER4 machines.
5906 2004-07-21 Jakub Jelinek <jakub@redhat.com>
5909 * stdlib/strtod_l.c (INTERNAL (__STRTOF)): Fix used >=
5910 BITS_PER_MP_LIMB shifting up.
5911 * stdlib/tst-strtod.c (main): Add new tests.
5913 2004-07-23 Jakub Jelinek <jakub@redhat.com>
5916 * libio/iopopen.c (_IO_new_popen): Use _IO_init instead of
5917 _IO_no_init. Remove wd from struct locked_FILE.
5918 (_IO_wproc_jumps): Remove.
5919 Reported by Andrew Josey <a.josey@opengroup.org>.
5920 * stdio-common/Makefile (tests): Add tst-popen.
5921 * stdio-common/tst-popen.c: New test.
5923 2004-07-23 Ulrich Drepper <drepper@redhat.com>
5925 * posix/bits/posix1_lim.h: Fix values for _POSIX_CHILD_MAX and
5926 _POSIX_OPEN_MAX. Add _POSIX_HOST_NAME_MAX, _POSIX_SYMLINK_MAX,
5927 _POSIX_SYMLOOP_MAX, and _POSIX_RE_DUP_MAX.
5928 Reported by Andrew Josey.
5930 * include/features.h: Document _POSIX_C_SOURCE == 200112L.
5932 * grp/grp.h: Define gid_t if __USE_XOPEN2K is defined.
5933 * pwd/pwd.h: Define uid_t and gid_t if __USE_XOPEN2K is defined.
5934 * io/sys/stat.h: Define dev_t, gid_t, ino_t, mode_t, nlink_t,
5935 off_t, time_t, and uid_t if __USE_XOPEN2K is defined.
5936 * signal/signal.h: Define pid_t if __USE_XOPEN2K is defined.
5937 * posix/unistd.h: Define gid_t, off_t, pid_t, uid_t, and
5938 useconds_t if __USE_XOPEN2K is defined.
5939 * io/utime.h: Define time_t if __USE_XOPEN2K is defined.
5940 * libio/stdio.h: Declare fseeko and ftello if __USE_XOPEN2K is defined.
5942 2004-07-19 Thorsten Kukuk <kukuk@suse.de>
5944 * nis/nss_compat/compat-initgroups.c (getgrent_next_nss): Don't
5945 allocate memory for large temporary variables with alloca.
5947 2004-07-22 Ulrich Drepper <drepper@redhat.com>
5949 * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S: Compatibility
5950 code must have version GLIBC_2.0. Patch by Dwayne McConnell.
5952 * nscd/nscd_getgr_r.c (nscd_getgr_r): Avoid read call with NULL
5953 pointer and zero length.
5955 2004-07-21 Ulrich Drepper <drepper@redhat.com>
5957 * nscd/cache.c (prune_cache): Print correct list when debugging.
5959 2004-07-21 Jakub Jelinek <jakub@redhat.com>
5961 * resolv/res_libc.c (res_init): If RES_INIT is set and
5962 _res.nscount > 0, call __res_nclose and free nsaddrs.
5963 * resolv/Makefile: Add rules to build and run tst-leaks2.
5964 * resolv/tst-leaks2.c: New test.
5966 2004-07-21 Ulrich Drepper <drepper@redhat.com>
5968 * intl/libintl.h: Don't define macros for C++.
5969 Patch by Goto Masanori.
5971 2004-07-22 GOTO Masanori <gotom@debian.or.jp>
5974 * include/arpa/inet.h: Change inet_aton type from in_addr_t to int.
5975 * inet/arpa/inet.h: Likewise.
5976 * resolv/inet_addr.c: Likewise.
5978 2004-07-21 Alexandre Oliva <aoliva@redhat.com>
5980 * sysdeps/unix/sysv/linux/mips/mips64/syscalls.list: Add semtimedop.
5982 2004-07-20 Roland McGrath <roland@redhat.com>
5984 * configure.in (add_ons): Substitute this. Move $add_ons handling
5985 after AC_CANONICAL_HOST and default setting of $machine et al.
5986 Don't set $subdirs from $add_ons.
5987 Instead, source add-on/configure fragments early on.
5988 (base_machine): If it's already set, don't set it based on $machine.
5989 (libc_config_ok): New variable, set to no. If an add-on fragment sets
5990 it to yes, skip the tuple sanity check as if --enable-hacker-mode.
5991 (sysnames): Try appending add-on names after machine as well.
5992 * config.make.in (add-ons): Set from @add_ons@ instead of @subdirs@.
5993 * Makeconfig ($(common-objpfx)config.status): Also depend on configure
5994 files in $(add_ons) dirs.
5996 * sysdeps/unix/sysv/linux/bits/in.h (struct ip_mreq): Remove
5997 definition, now in netinet/in.h proper.
5999 2004-07-20 Alexandre Oliva <aoliva@redhat.com>
6001 * sysdeps/unix/sysv/linux/mips/Makefile ($(objpfx)syscall-%.h):
6002 Sort by syscalls. Make sure we get headers such as sgidefs.h from
6003 the build tree before just-installed ones.
6005 * sysdeps/mips/atomicity.h: Use standard names for ABI macros,
6006 include sgidefs.h where appropriate.
6007 * sysdeps/mips/dl-machine.h: Likewise.
6008 * sysdeps/mips/machine-gmon.h: Likewise.
6009 * sysdeps/mips/bits/setjmp.h: Likewise.
6010 * sysdeps/mips/fpu/bits/mathdef.h: Likewise.
6011 * sysdeps/mips/mips64/__longjmp.c: Likewise.
6012 * sysdeps/mips/mips64/setjmp_aux.c: Likewise.
6013 * sysdeps/unix/sysv/linux/mips/kernel_stat.h: Likewise.
6014 * sysdeps/unix/sysv/linux/mips/pread.c: Likewise.
6015 * sysdeps/unix/sysv/linux/mips/pread64.c: Likewise.
6016 * sysdeps/unix/sysv/linux/mips/ptrace.c: Likewise.
6017 * sysdeps/unix/sysv/linux/mips/pwrite.c: Likewise.
6018 * sysdeps/unix/sysv/linux/mips/pwrite64.c: Likewise.
6019 * sysdeps/unix/sysv/linux/mips/sigaction.c: Likewise.
6020 * sysdeps/unix/sysv/linux/mips/sigcontextinfo.h: Likewise.
6021 * sysdeps/unix/sysv/linux/mips/bits/fcntl.h: Likewise.
6022 * sysdeps/unix/sysv/linux/mips/bits/sigcontext.h: Likewise.
6023 * sysdeps/unix/sysv/linux/mips/bits/stat.h: Likewise.
6024 * sysdeps/unix/sysv/linux/mips/sys/procfs.h: Likewise.
6025 * sysdeps/unix/sysv/linux/mips/sys/ptrace.h: Likewise.
6026 * sysdeps/unix/sysv/linux/mips/sys/tas.h: Likewise.
6027 * sysdeps/unix/sysv/linux/mips/sys/ucontext.h: Likewise.
6028 * sysdeps/unix/sysv/linux/mips/sys/user.h: Likewise.
6029 * sysdeps/unix/sysv/linux/mips/Makefile ($(objpfx)syscall-%.h):
6031 * sysdeps/unix/sysv/linux/mips/configure.in (asm-unistd.h):
6034 * sysdeps/mips/dl-machine.h (__dl_runtime_resolve): Update to use
6035 _dl_lookup_symbol_x.
6036 (elf_machine_runtime_link_map): Don't INTUSE _dl_signal_error.
6038 2004-07-20 Ulrich Drepper <drepper@redhat.com>
6040 * inet/netinet/in.h: Define struct ip_mreq and struct
6042 Define struct group_req and struct group_source_req.
6043 * sysdeps/unix/sysv/linux/bits/in.h: Define IP_UNBLOCK_SOURCE,
6044 IP_BLOCK_SOURCE, IP_ADD_SOURCE_MEMBERSHIP,
6045 IP_DROP_SOURCE_MEMBERSHIP, IP_MSFILTER, MCAST_JOIN_GROUP,
6046 MCAST_BLOCK_SOURCE, MCAST_UNBLOCK_SOURCE, MCAST_LEAVE_GROUP,
6047 MCAST_JOIN_SOURCE_GROUP, MCAST_LEAVE_SOURCE_GROUP, and
6049 Define MCAST_INCLUDE and MCAST_EXCLUDE.
6051 * iconvdata/gconv-modules: Add alias for IBM874 [BZ #244].
6053 2004-07-19 Jakub Jelinek <jakub@redhat.com>
6056 * math/libm-test.inc (max_value, min_value): New variables.
6057 (initialize): Initialize them.
6058 (pow_test): Add a couple of new tests.
6059 * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Don't generate invalid
6060 exception if |y| >= 1U<<31.
6061 * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Don't generate invalid
6062 exception if |y| >= 1L<<63.
6063 * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.
6064 If y*log2(x) overflows to +-inf, return still +inf/+0 instead of NaN.
6065 * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
6067 2004-07-18 Ulrich Drepper <drepper@redhat.com>
6069 * nscd/pwdcache.c (cache_addpw): Optimize case of unsuccessful
6071 * nscd/grpcache.c (cache_addgr): Likewise.
6072 * nscd/hstcache.c (cache_addhst): Likewise.
6074 2004-07-10 GOTO Masanori <gotom@debian.or.jp>
6076 * sysdeps/s390/s390-32/elf/start.S: Remove symbol _fp_hw.
6077 * sysdeps/s390/s390-64/elf/start.S: Likewise.
6079 2004-04-16 Andreas Schwab <schwab@suse.de>
6081 * sysdeps/ia64/bits/atomic.h: Cast first argument of
6082 __sync_bool_compare_and_swap_si correct to void*.
6084 2004-07-17 Ulrich Drepper <drepper@redhat.com>
6086 * iconv/iconv_prog.c (print_known_names): Make machine-readable
6087 output even less cluttered.
6089 2004-07-16 Steven Munroe <sjmunroe@us.ibm.com>
6092 * setjmp/Makefile (tests): Add bug269-setjmp.
6093 * setjmp/bug269-setjmp.c: New file.
6094 * sysdeps/powerpc/powerpc64/__longjmp-common.S [SHARED && !IS_IN_rtld]:
6095 Store R2 from jmpbuf in callers TOC save area.
6096 * sysdeps/powerpc/powerpc64/bsd-_setjmp.S [SHARED && !IS_IN_rtld]:
6097 Store R2 in TOC save area.
6098 * sysdeps/powerpc/powerpc64/setjmp-common.S [SHARED && !IS_IN_rtld]:
6099 Copy TOC save area from previous frame as R2 (TOC) in jmpbuf.
6101 2004-07-16 Jakub Jelinek <jakub@redhat.com>
6103 * locale/newlocale.c: Include bits/libc-lock.h.
6104 (__libc_setlocale_lock): Extern decl.
6105 (__newlocale): Use it.
6106 Reported by Ulrich Weigand <Ulrich.Weigand@de.ibm.com>.
6108 2004-07-15 Jakub Jelinek <jakub@redhat.com>
6110 * sysdeps/unix/sysv/linux/fcntl.c (__fcntl_nocancel): Remove
6111 static inline __attribute ((always_inline)). Don't define if
6113 (__libc_fcntl): Use INLINE_SYSCALL directly instead of
6115 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fcntl.c (__fcntl_nocancel):
6116 Remove static inline __attribute ((always_inline)). Don't define
6118 (__libc_fcntl): Use INLINE_SYSCALL directly instead of
6120 * sysdeps/unix/sysv/linux/i386/fcntl.c (__fcntl_nocancel): Define to
6121 __libc_fcntl if NO_CANCELLATION and __ASSUME_FCNTL64 == 0.
6122 Don't define at all if NO_CANCELLATION and __ASSUME_FCNTL64 > 0.
6123 (__libc_fcntl): Don't define if __fcntl_nocancel is a macro.
6126 * sysdeps/i386/elf/start.S (_start): Use @GOT instead of @GOTOFF
6128 * elf/Makefile: Add rules to build and run tst-pie1.
6129 * elf/tst-pie1.c: New test.
6130 * elf/tst-piemod1.c: New file.
6132 2004-07-14 Jakub Jelinek <jakub@redhat.com>
6135 * manual/string.texi (l64a): Note that the static buffer is 7 bytes
6136 long. Rewrite example code so that it takes into account l64a output
6137 shorter than 6 characters.
6138 Reported by Julian Graham <julian.graham@aya.yale.edu>.
6140 2004-07-14 Kaz Kojima <kkojima@rr.iij4u.or.jp>
6142 * sysdeps/sh/dl-machine.h: Don't reset _dl_starting_up here.
6143 (elf_machine_rela_relative): Remove unused valiable.
6145 2004-07-12 Paul Eggert <eggert@cs.ucla.edu>
6148 * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Don't store
6149 outside the buffer if the read returns 0. __strtod_l can't set
6150 endp to NULL, so remove a test for that case.
6152 2004-07-12 Roland McGrath <roland@redhat.com>
6154 * manual/signal.texi (Interrupted Primitives): Make clear that
6155 TEMP_FAILURE_RETRY evaluates its expression as long int and compares
6156 it to -1 to define "failure".
6158 2004-07-10 Ulrich Drepper <drepper@redhat.com>
6160 * elf/ldconfig.c: Define PROCINFO_CLASS as static before including
6162 * sysdeps/generic/ldsodefs.h: Only define PROCINFO_CLASS if it is not
6164 * sysdeps/i386/dl-procinfo.c: Define PROCINFO_CALLS only if not
6167 * elf/rtld.c (print_statistics): Mark with noinline attribute.
6168 * sysdeps/i386/dl-machine.h (elf_machine_rel): Mark with always_inline
6170 (elf_machine_rel_relative): Likewise.
6172 * include/string.h: Add libc_hidden_proto for __strtok_r and
6174 * sysdeps/generic/strsep.c: Add libc_hidden_def.
6175 * sysdeps/generic/strtok_r.c: Likewise.
6176 * sysdeps/i386/strtok_r.S: Add alias for internal symbol.
6177 * sysdeps/i386/i686/strtok_r.S: Likewise.
6178 * sysdeps/x86_64/strtok_r.S: Likewise.
6180 2004-07-09 Alexandre Oliva <aoliva@redhat.com>
6182 * inet/getnetgrent_r.c (internal_setnetgrent): Make it hidden
6183 instead of internal-linkage, such that we can alias to it.
6184 (internal_endnetgrent, internal_getnetgrent_r): Likewise.
6186 2004-07-09 Ulrich Drepper <drepper@redhat.com>
6188 * sysdeps/unix/sysv/linux/fcntl.c (__fcntl_nocancel): Move attribute
6189 to the front for gcc 3.5+.
6190 * sysdeps/unix/sysv/linux/i386/fcntl.c: Likewise.
6191 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fcntl.c: Likewise.
6192 * include/fcntl.h: Don't declare __fcntl_nocancel here if
6193 NO_CANCELLATION is defined.
6195 2004-07-07 Jakub Jelinek <jakub@redhat.com>
6197 * elf/dl-fini.c (_dl_fini): Add nloaded variable, load
6198 GL(dl_nloaded) into it while still in critical section.
6200 2004-07-06 Thorsten Kukuk <kukuk@suse.de>
6202 * nss/getent.c (print_group, print_passwd): Use %lu format for
6203 `unsigned long int' values.
6205 * sysdeps/unix/sysv/linux/i386/fcntl.c (__fcntl_nocancel): Fix syntax
6206 error typos in goto statements.
6208 2004-07-07 Roland McGrath <roland@frob.com>
6210 * Makefile (dist-separate): New variable.
6211 (glibc-%.tar rule): Make separate tar files for add-ons listed there.
6212 Depend on their configure files.
6213 (dist-do-separate-dirs): New canned sequence to do that.
6214 (dist-separate-libidn, dist-separate-linuxthreads): New variables.
6215 (dist): Depend on add-on tar files based on $(dist-separate).
6216 (dist-version): New variable, default to $(version).
6217 (tag-for-dist, dist): Use that in place of $(version) in deps.
6219 2004-07-07 Ulrich Drepper <drepper@redhat.com>
6221 * elf/dl-fini.c (_dl_fini): Move the unlock of the ld.so lock
6222 before the loop running the destructors.
6224 2004-05-18 Andreas Schwab <schwab@suse.de>
6226 * elf/dl-load.c (_dl_map_object_from_fd): Use the end address of
6227 the first segment for mprotect, not l_text_end.
6229 2004-07-05 Ulrich Drepper <drepper@redhat.com>
6231 * elf/dl-profile.c (_dl_start_profile): Compact error handling.
6232 Remove hashfraction variable. Make kcount and kcountsize local
6235 * elf/dl-init.c: Don't define and use _dl_starting_up if
6236 HAVE_INLINED_SYSCALLS is defined and the variable is not used.
6237 * elf/dl-support.c: Likewise.
6238 * elf/rtld.c: Likewise.
6239 * elf/dl-misc.c (_dl_debug_vdprintf): Use writev syscall directly
6240 if HAVE_INLINED_SYSCALLS is defined.
6241 * sysdeps/powerpc/powerpc64/dl-machine.h: Don't reset _dl_starting_up
6243 * sysdeps/powerpc/powerpc32/dl-start.S: Likewise.
6244 * sysdeps/unix/sysv/linux/configure.in: Define HAVE_INLINED_SYSCALLS.
6245 * config.h.in: Add entry for HAVE_INLINED_SYSCALLS.
6247 * sysdeps/posix/profil.c: If compiled for ld.so, omit code which
6248 is needed to stop profiling.
6249 * elf/dl-open.c (dl_open_worker): If a newly opened object is to be
6250 profile make sure it cannot be unloaded.
6252 * sysdeps/unix/sysv/linux/dl-origin.c: Inline readlink syscall.
6254 * sysdeps/unix/sysv/linux/fcntl.c: If compiled without cancellation
6255 support, make sure the helper function is inlined.
6256 * sysdeps/unix/sysv/linux/pread.c: Likewise.
6257 * sysdeps/unix/sysv/linux/pwrite.c: Likewise.
6258 * sysdeps/unix/sysv/linux/i386/fcntl.c: Likewise.
6259 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fcntl.c: Likewise.
6261 2004-07-05 Jakub Jelinek <jakub@redhat.com>
6263 * include/string.h (ffs): Add libc_hidden_builtin_proto.
6264 * sysdeps/rs6000/ffs.c (ffs): Add libc_hidden_builtin_def.
6265 * sysdeps/alpha/alphaev67/ffs.S (ffs): Likewise.
6266 * sysdeps/alpha/ffs.S (ffs): Likewise.
6267 * sysdeps/s390/ffs.c (ffs): Likewise.
6268 * sysdeps/powerpc/ffs.c (ffs): Likewise.
6269 * sysdeps/i386/ffs.c (ffs): Likewise.
6270 * sysdeps/i386/i686/ffs.c (ffs): Likewise.
6271 * sysdeps/m68k/ffs.c (ffs): Likewise.
6272 * sysdeps/generic/ffs.c (ffs): Likewise.
6273 * sysdeps/m88k/ffs.c (ffs): Likewise.
6274 * sysdeps/am29k/ffs.c (ffs): Likewise.
6275 * sysdeps/i960/ffs.c (ffs): Likewise.
6276 * sysdeps/x86_64/ffs.c (ffs): Likewise.
6278 * Makerules (check-abi): Use diff -p -U 0 instead of diff -pu0.
6280 * sysdeps/powerpc/novmx-longjmp.c (__libc_longjmp,
6281 __libc_siglongjmp): Remove symbol_version.
6282 * sysdeps/powerpc/longjmp.c (__libc_longjmp, __libc_siglongjmp):
6283 Export @@GLIBC_PRIVATE, not @@GLIBC_2.3.4.
6284 * sysdeps/powerpc/sigjmp.c (__sigjmp_save): Use strong_alias
6286 * sysdeps/powerpc/novmx-sigjmp.c (__sigjmp_save): Remove.
6287 * sysdeps/powerpc/powerpc32/__longjmp.S (__longjmp): Use
6288 strong_alias instead of default_symbol_version, remove
6290 * sysdeps/powerpc/powerpc64/__longjmp.S (__longjmp): Likewise.
6291 * sysdeps/powerpc/powerpc32/bsd-setjmp.S (__novmx__setjmp): Change
6292 into strong_alias to __novmxsetjmp.
6293 (__vmx__setjmp): Similarly with __vmxsetjmp.
6294 (__setjmp): Make it strong_alias to __vmx__setjmp, remove
6295 default_symbol_version and symbol_version.
6296 * sysdeps/powerpc/powerpc64/bsd-setjmp.S (__novmx__setjmp): Change
6297 into strong_alias to __novmxsetjmp.
6298 (__vmx__setjmp): Similarly with __vmxsetjmp.
6299 (__setjmp): Make it strong_alias to __vmx__setjmp, remove
6300 default_symbol_version and symbol_version.
6302 * nscd/nscd_getgr_r.c: Include stdio-common/_itoa.h.
6304 2004-07-05 Ulrich Drepper <drepper@redhat.com>
6306 * elf/rtld.c (dl_main): Mark dyn_temp with attribute_relro.
6308 2004-07-04 Matthew Reppert <arashi@kai.vm.bytemark.co.uk>
6310 * sysdeps/unix/sysv/linux/i386/glob64.c (glob64): Use libc_hidden_ver
6311 instead of libc_hidden_def.
6313 2004-07-01 Roland McGrath <roland@redhat.com>
6315 * aclocal.m4: Add provide for AC_CONFIG_AUX_DIR_DEFAULT.
6317 * Makeconfig ($(common-objpfx)shlib-versions.v.i): Move top-level
6318 $(..)shlib-versions file to last in deps list. This lets add-ons give
6319 more-specific matches that override defaults in the top-level file.
6321 * sysdeps/unix/sysv/linux/configure.in: If arch_minimum_kernel was
6322 already set, don't set it or libc_cv_gcc_unwind_find_fde.
6323 * sysdeps/unix/sysv/linux/configure: Regenerated.
6325 2004-07-01 Martin Schwidefsky <schwidefsky@de.ibm.com>
6327 * sysdeps/s390/fpu/bits/mathinline.h [__LIBC_INTERNAL_MATH_INLINES]
6328 (__ieee754_sqrt): Define as __MATH_INLINE using sqdbr instruction.
6329 (__ieee754_sqrtf): Define as __MATH_INLINE using sqebr instruction.
6330 * sysdeps/s390/fpu/e_sqrt.c: New file.
6331 * sysdeps/s390/fpu/e_sqrtf.c: New file.
6332 * sysdeps/s390/Implies: New file.
6333 * sysdeps/s390/s390-32/Implies: Remove ieee754, move
6334 ieee754/dbl-64 and ieee754/flt-32 to s390/Implies.
6335 * sysdeps/s390/s390-64/Implies: Likewise.
6337 2004-06-30 Jakub Jelinek <jakub@redhat.com>
6339 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S: Include tls.h.
6340 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S: Likewise.
6342 * sysdeps/unix/sysv/linux/s390/s390-32/clone.S (thread_start):
6343 DO_CALL (exit, 1) instead of branching to _exit.
6344 * sysdeps/unix/sysv/linux/s390/s390-64/clone.S (thread_start):
6347 * sysdeps/s390/fpu/bits/mathinline.h: New file.
6349 * include/glob.h (glob64): Add libc_hidden_proto.
6350 * sysdeps/generic/glob64.c (glob64): Add libc_hidden_def.
6351 * sysdeps/gnu/glob64.c (glob64): Likewise.
6352 * sysdeps/unix/sysv/linux/i386/glob64.c (glob64): Likewise.
6354 2004-06-11 Jakub Jelinek <jakub@redhat.com>
6356 * sysdeps/i386/fpu/libm-test-ulps: Update for GCC 3.4.
6357 * sysdeps/s390/fpu/libm-test-ulps: Likewise.
6359 2004-06-11 Dwayne Grant McConnell <dgm69@us.ibm.com>
6361 * sysdeps/powerpc/fpu/s_lround.c: Removed.
6362 * sysdeps/powerpc/fpu/s_lroundf.c: Removed.
6363 * sysdeps/powerpc/powerpc32/fpu/s_ceilf.S: New file.
6364 * sysdeps/powerpc/powerpc32/fpu/s_ceil.S: New file.
6365 * sysdeps/powerpc/powerpc32/fpu/s_floorf.S: New file.
6366 * sysdeps/powerpc/powerpc32/fpu/s_floor.S: New file.
6367 * sysdeps/powerpc/powerpc32/fpu/s_lrint.c: Removed.
6368 * sysdeps/powerpc/powerpc32/fpu/s_lrint.S: New file.
6369 * sysdeps/powerpc/powerpc32/fpu/s_lroundf.S: New file.
6370 * sysdeps/powerpc/powerpc32/fpu/s_lround.S: New file.
6371 * sysdeps/powerpc/powerpc32/fpu/s_rintf.S: New file.
6372 * sysdeps/powerpc/powerpc32/fpu/s_rint.S: New file.
6373 * sysdeps/powerpc/powerpc32/fpu/s_roundf.S: New file.
6374 * sysdeps/powerpc/powerpc32/fpu/s_round.S: New file.
6375 * sysdeps/powerpc/powerpc32/fpu/s_truncf.S: New file.
6376 * sysdeps/powerpc/powerpc32/fpu/s_trunc.S: New file.
6378 2004-06-30 Ulrich Drepper <drepper@redhat.com>
6380 * include/net/if.h: Handle if_nameindex and if_freenameindex with
6382 * sysdeps/unix/sysv/linux/netlinkaccess.h: New file.
6383 * sysdeps/unix/sysv/linux/ifaddrs.c: Export netlink handling functions.
6384 * sysdeps/unix/sysv/linux/if_index.c (if_nameindex): Implement using
6385 netlink if possible. Fall back on ioctl method if necessary.
6386 * sysdeps/unix/sysv/linux/Dist: Add netlinkaccess.h.
6388 * include/unistd.h: Declare __truncate.
6389 * sysdeps/generic/truncate.c: Also define __truncate.
6390 * sysdeps/mach/hurd/truncate.c: Likewise.
6391 * sysdeps/unix/common/syscalls.list: Likewise.
6392 * sysdeps/unix/sysv/linux/truncate64.c: Use __truncate, not truncate.
6394 2004-06-29 Ulrich Drepper <drepper@redhat.com>
6396 * stdio-common/printf-parsemb.c (__parse_one_specmb): Initialize
6397 info.extra. Patch by Marcus Meissner.
6399 2004-06-29 Kaz Kojima <kkojima@rr.iij4u.or.jp>
6401 * sysdeps/unix/sysv/linux/sh/sysdep.h (SYSCALL_ERROR_HANDLER):
6402 Fix branch offset for a PLT entry.
6404 2004-06-20 Jim Meyering <jim@meyering.net>
6406 * malloc/obstack.h (obstack_base): Cast to `void *', to align with
6409 2004-06-28 Ulrich Drepper <drepper@redhat.com>
6411 * inet/bug-if1.c (do_test): Simply use 0 as invalid index.
6412 Workaround for [BZ #232].
6414 * sysdeps/unix/sysv/linux/if_index.c (if_nameindex): Use extend_alloca.
6416 2004-06-28 GOTO Masanori <gotom@debian.or.jp>
6418 * iconv/gconv_simple.c: Use get16/put16 for user given buffer
6419 in ucs2/ucs2reverse when unaligned memory access is attempted.
6420 * iconv/tst-iconv5.c: New file.
6421 * iconv/Makefile (tests): Add tst-iconv5.
6423 2004-06-28 Jakub Jelinek <jakub@redhat.com>
6425 * inet/bug-if1.c: Include <string.h>.
6427 2004-06-19 Roland McGrath <roland@redhat.com>
6429 * sysdeps/posix/waitid.c (do_waitid) [DO_WAITID]: Define function
6430 under this macro name instead.
6431 [NO_DO_WAITID]: Don't define it at all.
6432 (do_waitid) [WNOWAIT, WEXITED]: If these POSIX.1 waitid flag bits are
6433 defined, then return ENOTSUP for combinations of selection bits other
6434 than WEXITED and WEXITED|WSTOPPED, which this version cannot support.
6436 * posix/tst-waitid.c: New file.
6437 * posix/Makefile (tests): Add it.
6439 2004-06-28 Jakub Jelinek <jakub@redhat.com>
6441 * sysdeps/unix/alpha/sysdep.h (inline_syscall6): Fix a typo.
6444 * sysdeps/unix/alpha/sysdep.S (__syscall_error): Avoid !samegp
6445 relocation in librt.so.
6448 * sysdeps/alpha/dl-machine.h (_dl_start_user): Use ldah/ldl to load
6449 _dl_skip_args. Patch by Jakub Bogusz <qboosh@pld-linux.org>.
6451 2004-06-27 Ulrich Drepper <drepper@redhat.com>
6453 * elf/ldconfig.c (add_dir): Take chroot into account.
6454 Based on changes by HJ Lu and Hideki Iwamoto.
6456 * nscd/connections.c (invalidate_cache): If the host cache has to
6457 be invalidated, re-read resolv.conf.
6459 * resolv/resolv.h (RES_NOIP6DOTINT): Define.
6460 * resolv/res_init.c (res_setoptions): Handle no-ip6-dotint option.
6461 * resolv/gethnamaddr.c (gethostbyaddr): Don't lookup with .ip6.int
6462 if RES_NOIP6DOTINT flag is set.
6463 * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr_r): Likewise.
6465 2004-06-25 Jakub Jelinek <jakub@redhat.com>
6467 * sysdeps/unix/sysv/linux/powerpc/fcntl.c: Move to...
6468 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fcntl.c: ... here.
6469 * sysdeps/unix/sysv/linux/powerpc/lockf64.c: Move to...
6470 * sysdeps/unix/sysv/linux/powerpc/powerpc32/lockf64.c: ... here.
6471 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fcntl.c: New file.
6473 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h (F_GETLK, F_SETLK,
6474 F_SETLKW): Fix values for -m32 -D_FILE_OFFSET_BITS=64.
6476 2004-06-21 Jakub Jelinek <jakub@redhat.com>
6479 * sysdeps/unix/alpha/Makefile: New file.
6480 * sysdeps/unix/alpha/rt-sysdep.S: New file.
6481 Reported by Jakub Bogusz <qboosh@pld-linux.org>.
6483 2004-06-18 Ulrich Drepper <drepper@redhat.com>
6485 * sysdeps/posix/getaddrinfo.c (gaih_inet): For AI_CANONNAME,
6486 determine the canonical name only for the first returned entry.
6488 * inet/bug-if1.c: New file.
6489 * inet/Makefile (tests): Add bug-if1.
6491 2004-06-18 Roland McGrath <roland@frob.com>
6493 * Makerules (compile-mkdep-flags): Add -MT $@.
6495 * Makefile (dist, tag-for-dist): New targets.
6496 (files-for-dist, tag-of-stem): New variables.
6497 (glibc-%.tar glibc-linuxthreads-%.tar): New pattern rule.
6498 Make tar files using cvs export.
6499 (%.bz2, %.gz, tag-%): New pattern rules.
6500 (distribute): Variable removed.
6501 (+subdir_targets): Remove distinfo targets.
6502 (echo_subdirs, echo-distinfo, parent_echo-distinfo): Targets removed.
6503 (rpm/%): Pattern rule removed.
6504 * rpm/Makefile, rpm/rpmrc, rpm/template: Ancient cruft files removed.
6505 * Rules (subdir_echo-headers, subdir_echo-distinfo, subdir_dist):
6507 * Makerules (dist, subdir_distinfo): Targets removed.
6508 ($(objpfx)distinfo): Depend on $(distribute).
6509 * Make-dist: File removed.
6511 * NEWS: Fix a typo. Update bug-reporting instructions.
6513 2004-06-17 Thorsten Kukuk <kukuk@suse.de>
6515 * sysdeps/unix/sysv/linux/sched_setaffinity.c
6516 (__sched_setaffinity_new): Set errno to EINVAL and return -1 if
6517 cpuset is wrongly set.
6519 2004-06-15 Steven Munroe <sjmunroe@us.ibm.com>
6521 * sysdeps/powerpc/powerpc64/memcpy.S: Improve instruction scheduling
6522 for POWER4 machines.
6524 2004-06-14 Jakub Jelinek <jakub@redhat.com>
6527 * sunrpc/pmap_prot2.c (xdr_pmaplist): When freeing, remember pml_next
6528 in a local variable, point rp to that local variable afterwards.
6530 2004-06-11 Jakub Jelinek <jakub@redhat.com>
6532 * sysdeps/ieee754/dbl-64/e_sqrt.c (__ieee754_sqrt): Handle special
6535 2004-06-17 Ulrich Drepper <drepper@redhat.com>
6537 * sysdeps/unix/sysv/linux/if_index.c (if_indextoname): Correct
6538 error value for unknown interface. [BZ #198]
6540 2004-06-13 Jakub Jelinek <jakub@redhat.com>
6542 * sysdeps/i386/bits/string.h (memcpy): Add () around arguments.
6543 (memchr, __memrchr, strlen, strcmp, strncmp, __strchr_g, __strchr_c,
6544 __strchrnul_g, __strchrnul_c, strspn, strcspn, strpbrk): Add memory
6545 the asm uses as its input, either of size __n where __n is known or
6547 (strstr): Add "memory" clobber.
6549 2004-06-14 Jakub Jelinek <jakub@redhat.com>
6552 * nss/nsswitch.c (free_mem): Don't try to close a library handle
6553 if the handle is invalid. Patch by David Kimdon <kimdon@esrf.fr>.
6555 2004-06-11 Dmitry V. Levin <ldv@altlinux.org>
6558 * debug/xtrace.sh: Fix typo in error diagnostics.
6560 2004-06-14 Andreas Schwab <schwab@suse.de>
6562 * stdio-common/psignal.c (psignal): Don't use BUF when asprintf
6565 2004-06-15 Steven Munroe <sjmunroe@us.ibm.com>
6567 * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S: Fix pasto
6568 that clobbers r19. Fix pasto that overflowed sigcontext.v_reserve.
6569 * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S: Fix pasto
6571 * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S: Fix pasto
6572 that clobbers r19. Fix pasto that overflowed sigcontext.v_reserve.
6573 * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S:
6574 Fix setting of sigcontext.v_regs. Fix pasto that clobbers r19.
6575 Fix pasto that overflowed sigcontext.v_reserve.
6576 * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S:
6577 Fix pasto that clobbers r19.
6578 * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S: Fix setting
6579 of sigcontext.v_regs. Fix pasto that clobbers r19. Fix pasto that
6580 overflowed sigcontext.v_reserve.
6582 2004-05-04 H.J. Lu <hongjiu.lu@intel.com>
6585 * sysdeps/generic/strtol_l.c (DEF): Use ".gnu.linkonce.r."
6586 instead of ".gnu.linkonce.ro." as the prefix for linkonce
6587 read-only section name.
6589 2004-06-14 Richard Henderson <rth@redhat.com>
6591 * sysdeps/alpha/div_libc.h (_ITOFS): Use "sp" not "$sp".
6592 (_ITOFT, _FTOIT, _ITOFT2): Likewise.
6594 2004-06-08 Jakub Jelinek <jakub@redhat.com>
6596 * sysdeps/s390/s390-32/backtrace.c (init): Guard with #ifdef SHARED.
6597 (unwind_backtrace, unwind_getip): Define #ifndef SHARED.
6598 (__backtrace): Don't call init #ifndef SHARED.
6599 * sysdeps/s390/s390-64/backtrace.c (init): Guard with #ifdef SHARED.
6600 (unwind_backtrace, unwind_getip): Define #ifndef SHARED.
6601 (__backtrace): Don't call init #ifndef SHARED.
6602 * sysdeps/ia64/backtrace.c (init): Guard with #ifdef SHARED.
6603 (unwind_backtrace, unwind_getip): Define #ifndef SHARED.
6604 (__backtrace): Don't call init #ifndef SHARED.
6606 2004-06-11 Roland McGrath <roland@redhat.com>
6608 * sysdeps/arm/strlen.S [__ARMEB__]: Compute correctly for big-endian.
6609 From Krzysztof Halasa <khc@pm.waw.pl>.
6611 2004-06-10 Jakub Jelinek <jakub@redhat.com>
6613 * elf/tls-macros.h [__s390x__] (TLS_LD, TLS_GD): Clobber also r14.
6615 2004-06-08 Jakub Jelinek <jakub@redhat.com>
6618 * crypt/md5-crypt.c (__md5_crypt): Only update buflen if realloc
6619 succeeds. Reported by Miles Ohlrich <miles@cray.com>.
6621 * elf/chroot_canon.c (chroot_canon): Avoid segfault if first malloc
6622 fails. Avoid memory leak if realloc fails.
6624 2004-06-09 Jakub Jelinek <jakub@redhat.com>
6626 * sysdeps/generic/setenv.c (setenv): Return -1/EINVAL if name is
6627 NULL, "" or contains '=' character in it. Reported by
6628 Michael T Kerrisk <mtk-lists@gmx.net>.
6629 * stdlib/tst-environ.c: Include errno.h.
6630 (main): Add tests for these arguments to setenv/unsetenv.
6632 2004-06-07 Roland McGrath <roland@frob.com>
6634 * NEWS: Update bug reporting instructions. Fix some typos.
6636 2004-06-05 Ulrich Drepper <drepper@redhat.com>
6638 * stdio-common/_itoa.h: Don't expand _itoa inline for libc.
6639 * stdio-common/_itoa.c: Add _itoa implementation.
6641 * nscd/nscd_gethst_r.c (__nscd_open_socket): Change implementation
6642 to also send request. Add parameter to allow this.
6644 * nscd/nscd_getgr_r.c: Change __nscd_open_socket caller.
6645 * nscd/nscd_getpw_r.c: Likewise.
6646 * nscd/nscd-client.h: Change __nscd_open_socket prototype.
6648 2004-06-05 Andreas Jaeger <aj@suse.de>
6650 * sysdeps/unix/sysv/linux/x86_64/makecontext.c (__makecontext):
6651 Handle more than 6 args correctly. Based on a patch by Masahide
6652 Washizawa <washi@jp.ibm.com>.
6654 2004-06-04 Ulrich Drepper <drepper@redhat.com>
6656 * nscd/nscd_gethst_r.c (nscd_gethst_r): Use __nss_not_use_nscd_hosts
6657 in all places, not __nss_not_use_nscd_group.
6658 Reported by Philippe Gregoire.
6660 2004-06-03 Ulrich Drepper <drepper@redhat.com>
6662 * sysdeps/i386/i486/bits/atomic.h: Optimize a bit.
6664 2004-05-07 Dmitry V. Levin <ldv@altlinux.org>
6666 * argp/argp-help.c (__argp_error, __argp_failure): Check result
6667 of __asprintf call and don't use string if it failed.
6668 * stdio-common/psignal.c (psignal): Likewise.
6669 * locale/programs/localedef.c (more_help): Likewise.
6670 * resolv/res_hconf.c (arg_service_list, arg_trimdomain_list,
6671 arg_bool, parse_line): Check result of __asprintf calls and
6672 don't use string if they failed.
6673 * sunrpc/svc_simple.c (registerrpc, universal): Likewise.
6674 * elf/ldconfig.c (parse_conf_include): Check result of __asprintf
6675 call and exit if it failed.
6677 2004-05-10 Jakub Jelinek <jakub@redhat.com>
6679 * sysdeps/posix/sysconf.c (__sysconf) <cases _SC_REALTIME_SIGNALS,
6680 _SC_PRIORITY_SCHEDULING, _SC_TIMERS, _SC_ASYNCHRONOUS_IO,
6681 _SC_PRIORITIZED_IO, _SC_SYNCHRONIZED_IO, _SC_FSYNC, _SC_MAPPED_FILES,
6682 _SC_MEMLOCK, _SC_MEMLOCK_RANGE, _SC_MEMORY_PROTECTION,
6683 _SC_MESSAGE_PASSING, _SC_SEMAPHORES, _SC_SHARED_MEMORY_OBJECTS,
6684 _SC_THREADS, _SC_THREAD_SAFE_FUNCTIONS, _SC_THREAD_ATTR_STACKADDR,
6685 _SC_THREAD_ATTR_STACKSIZE, _SC_THREAD_PRIORITY_SCHEDULING,
6686 _SC_THREAD_PRIO_INHERIT, _SC_THREAD_PRIO_PROTECT,
6687 _SC_THREAD_PROCESS_SHARED>: Return _POSIX_* value instead of 1.
6688 * sysdeps/unix/sysv/linux/sysconf.c (__sysconf)
6689 <case _SC_MONOTONIC_CLOCK>: Return _POSIX_VERSION instead of 1.
6691 2004-05-07 Jeroen Dekkers <jeroen@dekkers.cx>
6693 * sysdeps/mach/hurd/i386/Makefile (CFLAGS-init-first.c): Add
6694 -momit-leaf-frame-pointer.
6696 * inet/test-ifaddrs.c (addr_string): Surround AF_PACKET case with
6699 * sysdeps/mach/hurd/getcwd.c
6700 (_hurd_canonicalize_directory_name_intern): Only realloc when
6703 * sysdeps/mach/hurd/mmap.c (__mmap): Fail when addr or offset
6706 * sysdeps/mach/hurd/spawni.c (EXPAND_DTABLE): Set dtablesize to
6709 * sysdeps/mach/hurd/Versions (GLIBC_PRIVATE): Add __libc_read,
6710 __libc_write and __libc_lseek64.
6712 2004-05-29 Roland McGrath <roland@redhat.com>
6714 * elf/Makefile (shared-only-routines): Add dl-caller.
6716 2004-05-28 Ulrich Drepper <drepper@redhat.com>
6718 * sysdeps/powerpc/configure.in: New file.
6720 2004-05-28 Steven Munroe <sjmunroe@us.ibm.com>
6722 * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Add .machine
6723 "altivec" to enable VMX instructions.
6724 * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S: Likewise.
6725 * sysdeps/powerpc/powerpc64/__longjmp-common.S: Likewise.
6726 * sysdeps/powerpc/powerpc64/setjmp-common.S: Likewise.
6727 * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S: Likewise.
6728 * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S: Likewise.
6729 * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S: Likewise.
6730 * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S: Likewise.
6731 * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S: Likewise.
6732 * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S: Likewise.
6734 2004-05-27 Jakub Jelinek <jakub@redhat.com>
6736 * sysdeps/i386/fpu/bits/mathinline.h (__expm1_code): Define using
6737 __builtin_expm1l for GCC 3.5+.
6738 (__expl): Define using __builtin_expl for GCC 3.4+.
6739 (exp, expf, expl): Don't define for GCC 3.4+.
6740 (tan, tanf, tanl): Don't define for GCC 3.5+.
6741 (__atan2l): Define using __builtin_atan2l for GCC 3.4+.
6742 (atan2, atan2f, atan2l): Don't define for GCC 3.4+ or !__FAST_MATH__.
6743 (fmod, fmodf, fmodl): Don't define for GCC 3.5+ or !__FAST_MATH__.
6744 (fabsf, fabsl): Only provide if __USE_MISC or __USE_ISOC99.
6745 (sin, sinf, sinl, cos, cosf, cosl, log, logf, logl): Don't define
6747 (log10, log10f, log10l, asin, asinf, asinl, acos, acosf, acosl):
6748 Don't define for GCC 3.5+.
6749 (atan, atanf, atanl): Don't define for GCC 3.4+ or !__FAST_MATH__.
6750 (log1p, log1pf, log1pl, logb, logbf, logbl, log2, log2f, log2l): Don't
6751 define for GCC 3.5+.
6752 (drem, dremf, dreml): Don't define for GCC 3.5+ or !__FAST_MATH__.
6753 * sysdeps/sparc/fpu/bits/mathinline.h (sqrt, sqrtf, sqrtl): Don't
6754 define for GCC 3.2+.
6756 2004-05-27 Jakub Jelinek <jakub@redhat.com>
6758 * string/bits/string2.h (__bzero): Define even for GCC 3.0+.
6759 * sysdeps/alpha/stpcpy.S (stpcpy): Add libc_hidden_builtin_def.
6760 * sysdeps/alpha/alphaev67/stpcpy.S (stpcpy): Likewise.
6761 * sysdeps/powerpc/powerpc32/stpcpy.S (stpcpy): Likewise.
6762 * sysdeps/powerpc/powerpc64/stpcpy.S (stpcpy): Likewise.
6763 * sysdeps/sparc/sparc32/stpcpy.S (stpcpy): Likewise.
6764 * sysdeps/sparc/sparc64/stpcpy.S (stpcpy): Likewise.
6765 * sysdeps/i386/stpcpy.S (stpcpy): Likewise.
6766 * sysdeps/i386/i586/stpcpy.S (stpcpy): Likewise.
6767 * sysdeps/generic/stpcpy.c (stpcpy): Likewise.
6768 * sysdeps/x86_64/stpcpy.S (stpcpy): Likewise.
6769 * sysdeps/i386/i586/memcpy.S (memcpy): Remove
6770 libc_hidden_builtin_def if MEMPCPY_P.
6771 * sysdeps/x86_64/memcpy.S (memcpy): Likewise.
6772 * sysdeps/i386/i686/mempcpy.S (mempcpy): Add libc_hidden_builtin_def.
6773 * sysdeps/i386/i586/mempcpy.S (mempcpy): Likewise.
6774 * sysdeps/generic/mempcpy.c (mempcpy): Likewise.
6775 * sysdeps/x86_64/mempcpy.S (mempcpy): Likewise.
6777 2004-05-26 Roland McGrath <roland@frob.com>
6779 * sysdeps/generic/bits/in.h
6780 (IMPLINK_IP, IMPLINK_LOWEXPER, IMPLINK_HIGHEXPER): Macros removed.
6781 These are long obsolete in BSD systems where they originated.
6782 * conform/data/netinet/in.h-data: Remove `allow IMPLINK_*'
6784 2004-05-26 Jakub Jelinek <jakub@redhat.com>
6786 * include/string.h (mempcpy, stpcpy): Add libc_hidden_builtin_proto.
6787 * string/bits/string2.h (memset): Disable macro for GCC 3.0+.
6788 (__mempcpy): Use __builtin_mempcpy for GCC 3.4+.
6789 (strchr): For GCC 3.2+, only use __rawmemchr if second argument is
6790 constant '\0' and first argument is not constant.
6791 (__stpcpy): Use __builtin_stpcpy for GCC 3.4+.
6792 (strncpy): Remove #ifdef _USE_STRING_ARCH_mempcpy variant.
6793 For GCC 3.2+ use __builtin_strncpy.
6794 (strncat): For GCC 3.2+ use __builtin_strncat.
6795 (strcmp): For GCC 3.2+ use __builtin_strcmp if both arguments are
6797 (strcspn, strspn, strpbrk): For GCC 3.2+, use builtin function
6798 if both arguments are constant.
6800 2004-05-26 Ulrich Drepper <drepper@redhat.com>
6802 * nss/nss_files/files-hosts.c: Fix condition for looking up IPv4
6803 mapped addresses in gethostbyaddr.
6805 2004-05-25 Ulrich Drepper <drepper@redhat.com>
6807 * nss/digits_dots.c (__nss_hostname_digits_dots): Remove typep and
6808 flags parameter, convert afp to simple int parameter. Adjust code.
6809 typep was never != NULL and flags therefore also unused. *afp is
6811 * nss/nsswitch.h: Adjust __nss_hostname_digits_dots prototype.
6812 * nss/getXXbyYY.c: Remove HAVE_TYPE handling. Adjust af parameter
6813 handling for __nss_hostname_digits_dots calls.
6814 * nss/getXXbyYY_r.c: Likewise.
6816 * elf/dl-load.c (_dl_map_object_from_fd): Map DSOs with MAP_DENYWRITE.
6818 2004-05-25 Steven Munroe <sjmunroe@us.ibm.com>
6820 * sysdeps/powerpc/fpu/Makefile: Make ld.so a dependency of libm.so.
6821 * sysdeps/powerpc/fpu/bits/mathinline.h [__LIBC_INERNAL_MATH_INLINES]
6822 (__ieee754_sqrt): Define as __MATH_INLINE using fsqrt instruction.
6823 (__ieee754_sqrtf): Define as __MATH_INLINE using fsqrts instruction.
6824 * sysdeps/powerpc/fpu/e_sqrt.c (__slow_ieee754_sqrt): Moved
6825 implementation from w_sqrt.c.
6826 * sysdeps/powerpc/fpu/e_sqrtf.c (__slow_ieee754_sqrtf): Moved
6827 implementation from w_sqrtf.c.
6828 * sysdeps/powerpc/fpu/w_sqrt.c (__sqrt): Wrapper implementation
6829 using inline __ieee754_sqrt().
6830 * sysdeps/powerpc/fpu/w_sqrtf.c (__sqrtf): Wrapper implementation
6831 using inline __ieee754_sqrtf().
6832 * sysdeps/powerpc/powerpc32/sysdep.h [__ASSEMBLER__]: Include
6833 <sysdeps/powerpc/sysdep.h> independent of __ASSEMBLER__.
6834 * sysdeps/powerpc/sysdep.h [__ASSEMBLER__] (PPC_FEATURE_*): Define
6835 PPC_FEATURE_* independent of __ASSEMBLER__.
6837 2004-05-25 Jakub Jelinek <jakub@redhat.com>
6839 * sysdeps/pthread/aio_notify.c: Use <> instead of "" for aio_misc.h
6841 (aio_start_notify_thread): Define if not defined.
6842 (notify_func_wrapper): Use it.
6843 * sysdeps/pthread/aio_misc.c: Use <> instead of "" for aio_misc.h
6845 (aio_create_helper_thread): Define if not defined.
6846 (__aio_create_helper_thread): New function.
6847 (__aio_enqueue_request): Use aio_create_helper_thread.
6849 * nis/ypclnt.c (ypall_data, ypall_foreach): Remove.
6850 (struct ypresp_all_data): New type.
6851 (__xdr_ypresp_all): Change second argument to
6852 struct ypresp_all_data *. Replace ypall_foreach and
6853 ypall_data with objp->foreach and objp->data.
6854 (yp_all): Remove status variable, add data. Replace
6855 all uses of status with data.status. Initialize data.foreach
6856 and data.data instead of ypall_foreach and ypall_data.
6858 2004-05-24 Jakub Jelinek <jakub@redhat.com>
6860 * elf/dl-lookup.c (add_dependency): Set DF_1_NODELETE bit
6861 in l_flags_1, not in l_flags.
6863 2004-04-10 Robert Millan <robertmh@gnu.org>
6865 * sysdeps/unix/sysv/linux/bits/in.h: Cosmetic fixes to get in sync
6866 with sysdeps/generic/bits/in.h.
6868 2004-05-25 Roland McGrath <roland@frob.com>
6870 * sysdeps/generic/unwind-dw2-fde-glibc.c: Change copyright terms from
6871 GCC GPL to standard glibc LGPL.
6873 2004-05-24 Ulrich Drepper <drepper@redhat.com>
6875 * manual/string.texi (Copying and Concatenation): Fixed second
6877 Reported by Fabian Pietsch <fabian@zzznowman.dyndns.org>.
6879 2004-05-23 Ulrich Drepper <drepper@redhat.com>
6881 * malloc/obstack.c: Don't allow linking with _obstack.
6883 2004-05-23 Andreas Schwab <schwab@suse.de>
6885 * sysdeps/m68k/m68020/bits/atomic.h: Use "+m" constraint instead
6886 of separate "m" constraints.
6888 2004-05-15 Chris Demetriou <cgd@broadcom.com>
6890 * sysdeps/mips/dl-machine.h (ELF_DL_FRAME_SIZE)
6891 (ELF_DL_SAVE_ARG_REGS, ELF_DL_RESTORE_ARG_REGS): For the N32
6892 and 64 ABIs, save and restore regs $10 and $11 (a6 and a7).
6894 2004-05-20 Paul Eggert <eggert@cs.ucla.edu>
6896 * malloc/obstack.c (_obstack) [!defined _LIBC]: Remove; not used.
6897 Add comment explaining why libc still defines it.
6899 2004-05-19 Paul Eggert <eggert@cs.ucla.edu>
6901 * malloc/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
6902 obstack_alignment_mask, obstack_alloc, obstack_base,
6903 obstack_blank, obstack_blank_fast, obstack_chunk_size,
6904 obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
6905 obstack_grow0, obstack_init, obstack_int_grow,
6906 obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
6907 obstack_next_free, obstack_object_size, obstack_ptr_grow,
6908 obstack_ptr_grow_fast, obstack_room): Remove declarations of
6909 nonexistent functions.
6911 2004-05-18 Steven Munroe <sjmunroe@us.ibm.com>
6913 * sysdeps/powerpc/powerpc64/sysdep.h [__ASSEMBLER__]: Include
6914 <sysdeps/powerpc/sysdep.h> independent of __ASSEMBLER__.
6915 [PIC]: Redundent for powerpc64, removed.
6916 (ENTRY): Generate size and alignment for opd entry.
6917 (EALIGN): Generate size and alignment for opd entry.
6918 (END): Use DOT_LABEL in ASM_SIZE_DIRECTIVE.
6919 (END_GEN_TB): Use DOT_LABEL in ASM_SIZE_DIRECTIVE.
6921 2004-05-19 Ulrich Drepper <drepper@redhat.com>
6923 * misc/regexp.h: Say the functions have been withdrawn.
6925 * wcsmbs/tst-wcpncpy.c: Add more tests.
6927 2004-05-18 Roland McGrath <roland@frob.com>
6929 * sysdeps/generic/unwind.h: Change copyright terms from GCC GPL to
6930 standard glibc LGPL.
6931 * sysdeps/generic/unwind-dw2.c: Likewise.
6932 * sysdeps/generic/unwind-dw2-fde.c: Likewise.
6933 * sysdeps/generic/unwind-dw2-fde.h: Likewise.
6934 * sysdeps/generic/unwind-pe.h: Likewise.
6936 2004-05-15 Petter Reinholdtsen <pere@hungry.com>
6938 * locale/iso-3166.def: Remove YUGOSLAVIA and insert "SERBIA AND
6939 MONTENEGRO" which have taken over the code 819. Patch from
6940 Danilo Segan. [BZ #40]
6942 2004-05-15 Jakub Jelinek <jakub@redhat.com>
6944 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
6945 (SYSCALL_ERROR_HANDLER): Rename __sparc.get_pic.l7 to
6948 2004-05-15 Joseph S. Myers <jsm@polyomino.org.uk>
6950 * catgets/gencat.c: Update bug reporting instructions.
6951 * csu/version.c: Likewise.
6952 * debug/catchsegv.sh: Likewise.
6953 * debug/pcprofiledump.c: Likewise.
6954 * debug/xtrace.sh: Likewise.
6955 * elf/ldd.bash.in: Likewise.
6956 * iconv/iconv_prog.c: Likewise.
6957 * iconv/iconvconfig.c: Likewise.
6958 * locale/programs/locale.c: Likewise.
6959 * locale/programs/localedef.c: Likewise.
6960 * login/programs/pt_chown.c: Likewise.
6961 * malloc/memusage.sh: Likewise.
6962 * malloc/memusagestat.c: Likewise.
6963 * malloc/mtrace.pl: Likewise.
6964 * manual/crypt.texi: Likewise.
6965 * manual/install.texi: Likewise.
6966 * nss/makedb.c: Likewise.
6968 2004-05-14 Jakub Jelinek <jakub@redhat.com>
6970 * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Only
6971 CHECK_STATIC_TLS if sym != NULL.
6972 * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
6973 * sysdeps/i386/dl-machine.h (elf_machine_rela): Likewise.
6975 2004-05-12 Andreas Schwab <schwab@suse.de>
6977 * posix/regex_internal.c (build_wcs_buffer): Also set pstr->mbs
6980 2004-05-13 H.J. Lu <hongjiu.lu@intel.com>
6982 * Rules (xtests): Depend on tests.
6984 2004-05-13 Jakub Jelinek <jakub@redhat.com>
6986 * libio/genops.c (_IO_default_xsputn): Avoid one overflow per char if
6987 count is negative, yet write_ptr < write_end.
6988 (_IO_default_xsgetn): Avoid one underflow per char if count is
6989 negative, yet read_ptr < read_end.
6991 2004-05-12 Steven Munroe <sjmunroe@us.ibm.com>
6993 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h (XTABS): Define XTABS
6996 2004-05-12 Ulrich Drepper <drepper@redhat.com>
6998 * elf/dl-lookup.c (_dl_lookup_symbol_x): Correct _dl_signal_cerror
7001 2004-05-10 Roland McGrath <roland@frob.com>
7003 * hurd/hurdlookup.c (__hurd_file_name_split): Return ENOENT for "".
7004 (__hurd_directory_name_split): Likewise.
7006 2004-05-10 Ulrich Drepper <drepper@redhat.com>
7008 * po/fr.po: Update from translation team.
7010 2004-05-10 Andreas Jaeger <aj@suse.de>
7012 * sysdeps/unix/sysv/linux/x86_64/makecontext.c (__makecontext):
7013 Correctly compute alignment.
7014 Patch by Michael Matz <matz@suse.de>.
7016 2004-05-09 Ulrich Drepper <drepper@redhat.com>
7018 * sysdeps/generic/sigpause.c: Prevent sigpause prototype.
7019 * sysdeps/posix/sigpause.c: Likewise.
7020 * signal/signal.h: Don't define sigpause macro unless needed.
7022 2004-05-08 Jakub Jelinek <jakub@redhat.com>
7024 * configure.in (libc_cv_libgcc_s_suffix): New check.
7025 (libc_cv_as_needed): Use -lgcc_s$libc_cv_libgcc_s_suffix.
7026 * config.make.in (libgcc_s_suffix): Set.
7027 * Makeconfig (libgcc_eh): Use -lgcc_s$(libgcc_s_suffix).
7029 2004-05-08 Ulrich Drepper <drepper@redhat.com>
7031 * signal/signal.h: Use BSD sigpause only if BSD behavior is preferred.
7033 2004-04-29 Steven Munroe <sjmunroe@us.ibm.com>
7035 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h (LOADARGS_1,
7036 LOADARGS_2, LOADARGS_3, LOADARGS_4, LOADARGS_5, LOADARGS_6):
7037 Load argument values into temporary variables.
7038 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h (LOADARGS_1,
7039 LOADARGS_2, LOADARGS_3, LOADARGS_4, LOADARGS_5, LOADARGS_6):
7042 2004-05-07 Ulrich Drepper <drepper@redhat.com>
7044 * sysdeps/unix/sysv/linux/Makefile: mq_send.c and mq_receive.c
7045 need to be compiled with exceptions.
7047 2004-05-06 Ulrich Drepper <drepper@redhat.com>
7049 * sysdeps/unix/sysv/linux/ifreq.c (__ifreq): Fix memory handling.
7050 * sysdeps/generic/ifreq.c (__ifreq): Fix memory handling.
7052 * resolv/res_hconf.c (_res_hconf_reorder_addrs): Make clear that
7053 realloc cannot fail.
7055 * nss/nss_files/files-netgrp.c (EXPAND): Free buffer which cannot
7058 * nis/nis_table.c: Clean up memory handling.
7059 * nis/nis_subr.c (nis_getnames): Clean up memory handling.
7060 * nis/nis_removemember.c (nis_removemember): Add comment
7061 explaining use of realloc.
7063 * math/tgmath.h (fabs): Use __TGMATH_UNARY_REAL_IMAG_RET_REAL.
7065 Patch by Lev S Bishop <lev.bishop@yale.edu>.
7067 * math/bug-tgmath1.c (main): Test fabs and carg as well.
7069 2004-05-06 Richard Henderson <rth@redhat.com>
7071 * elf/elf.h (AT_L1I_CACHESHAPE, AT_L1D_CACHESHAPE,
7072 AT_L2_CACHESHAPE, AT_L3_CACHESHAPE): New.
7073 * sysdeps/unix/sysv/linux/alpha/Versions: Export
7074 __libc_alpha_cache_shape as a private symbol.
7075 * sysdeps/unix/sysv/linux/alpha/dl-sysdep.c: New file.
7076 * sysdeps/unix/sysv/linux/alpha/sysconf.c: New file.
7078 2004-05-06 Richard Henderson <rth@redhat.com>
7080 * sysdeps/alpha/div_libc.h (_ITOFS, _ITOFT, _FTOIT, _ITOFT2): New.
7081 * sysdeps/alpha/divl.S: Use them.
7082 * sysdeps/alpha/divq.S: Likewise.
7083 * sysdeps/alpha/divqu.S: Likewise.
7084 * sysdeps/alpha/reml.S: Likewise.
7085 * sysdeps/alpha/remq.S: Likewise.
7086 * sysdeps/alpha/remqu.S: Likewise.
7088 2004-05-06 Ulrich Drepper <drepper@redhat.com>
7090 * math/tgmath.h (__TGMATH_UNARY_REAL_IMAG_RET_REAL):Define.
7093 * math/Makefile (tests): Add bug-tgmath1.
7094 * math/bug-tgmath1.c: New file.
7096 2004-05-05 Jakub Jelinek <jakub@redhat.com>
7098 * sysdeps/alpha/atomicity.h: Remove.
7099 * sysdeps/generic/atomicity.h: Remove.
7101 2004-05-05 H.J. Lu <hongjiu.lu@intel.com>
7103 * sysdeps/i386/i486/bits/string.h (strpbrk): Cast return to
7106 2004-04-22 David Mosberger <davidm@hpl.hp.com>
7108 * sysdeps/unix/sysv/linux/ia64/Makefile (librt-routines): Mention
7110 * sysdeps/unix/sysv/linux/ia64/rt-sysdep.S: New file.
7112 * sysdeps/ia64/strcat.c: New file.
7113 * sysdeps/ia64/strcat.S: Delete.
7115 2004-05-04 Jakub Jelinek <jakub@redhat.com>
7117 * sysdeps/unix/sysv/linux/ia64/sysdep.S (USE___THREAD): Remove
7120 2004-04-23 Jakub Jelinek <jakub@redhat.com>
7122 * sysdeps/ia64/fpu/libm_support.h (__libm_error_support): Add
7123 libc_hidden_proto. Define to __GI___libm_error_support for
7124 assembly going into libc.so.
7125 * sysdeps/ia64/fpu/libc_libm_error.c (__libm_error_support): Add
7128 * include/libc-symbols.h (HIDDEN_BUILTIN_JUMPTARGET): Define.
7129 * sysdeps/ia64/bcopy.S (bcopy): Use it for jump to memmove.
7131 * sysdeps/unix/sysv/linux/ia64/sysdep.S (__syscall_error): Access
7132 gprel errno if RTLD_PRIVATE_ERRNO or __thread __libc_errno/errno
7135 2004-05-03 Jakub Jelinek <jakub@redhat.com>
7137 * sysdeps/unix/bsd/bits/fcntl.h (F_SETOWN, F_GETOWN): Define if
7138 __USE_BSD or __USE_UNIX98.
7139 * sysdeps/unix/bsd/ultrix4/bits/fcntl.h (F_SETOWN, F_GETOWN): Likewise.
7140 * sysdeps/unix/bsd/bsd4.4/bits/fcntl.h (F_SETOWN, F_GETOWN): Likewise.
7141 * sysdeps/unix/bsd/sun/sunos4/bits/fcntl.h (F_SETOWN, F_GETOWN):
7143 * sysdeps/unix/common/bits/fcntl.h (F_SETOWN, F_GETOWN): Likewise.
7144 * sysdeps/unix/sysv/aix/bits/fcntl.h (F_SETOWN, F_GETOWN): Likewise.
7145 * sysdeps/unix/sysv/irix4/bits/fcntl.h (F_SETOWN, F_GETOWN): Likewise.
7146 * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h (F_SETOWN, F_GETOWN):
7148 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (F_SETOWN, F_GETOWN):
7150 * sysdeps/unix/sysv/linux/cris/bits/fcntl.h (F_SETOWN, F_GETOWN):
7152 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h (F_SETOWN, F_GETOWN):
7154 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (F_SETOWN, F_GETOWN):
7156 * sysdeps/unix/sysv/linux/mips/bits/fcntl.h (F_SETOWN, F_GETOWN):
7158 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h (F_SETOWN, F_GETOWN):
7160 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h (F_SETOWN, F_GETOWN):
7162 * sysdeps/unix/sysv/linux/m68k/bits/fcntl.h (F_SETOWN, F_GETOWN):
7164 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h (F_SETOWN, F_GETOWN):
7166 * sysdeps/unix/sysv/linux/arm/bits/fcntl.h (F_SETOWN, F_GETOWN):
7168 * sysdeps/unix/sysv/linux/hppa/bits/fcntl.h (F_SETOWN, F_GETOWN):
7170 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h (F_SETOWN, F_GETOWN):
7172 * sysdeps/generic/bits/fcntl.h (F_SETOWN, F_GETOWN): Likewise.
7173 * sysdeps/mach/hurd/bits/fcntl.h (F_SETOWN, F_GETOWN): Likewise.
7174 * io/sys/stat.h (S_ISSOCK, S_IFSOCK): Likewise.
7176 2004-05-01 Jakub Jelinek <jakub@redhat.com>
7178 * posix/Versions (libc): Remove __libc_wait, __libc_waitpid,
7179 __libc_pause, __libc_nanosleep, __libc_pread, __libc_pread64,
7180 __libc_pwrite64, __waitid and __pselect @@GLIBC_PRIVATE.
7181 * stdlib/Versions (libc): Remove __on_exit@@GLIBC_PRIVATE.
7182 * sysdeps/unix/sysv/linux/Versions (libc): Remove
7183 __libc_sigaction@@GLIBC_PRIVATE.
7184 * sysdeps/unix/sysv/linux/x86_64/Versions (libc): Remove
7185 __modify_ldt@@GLIBC_PRIVATE.
7186 * socket/Versions (libc): Remove __libc_accept, __libc_send,
7187 __libc_recvfrom, __libc_recvmsg, __libc_sendmsg, __libc_recv,
7188 __libc_sendto and __libc_connect @@GLIBC_PRIVATE.
7189 * stdio-common/Versions (libc): Remove
7190 _itoa_upper_digits@@GLIBC_PRIVATE.
7191 * resolv/Versions (libresolv): Remove __ns_samename@@GLIBC_PRIVATE.
7192 * misc/Versions (libc): Remove __libc_fsync, __libc_msync,
7193 __libc_readv and __libc_writev @@GLIBC_PRIVATE.
7194 * termios/Versions (libc): Remove __libc_tcdrain@@GLIBC_PRIVATE.
7195 * io/Versions (libc): Remove __libc_open, __libc_close, __libc_read,
7196 __libc_write, __libc_lseek, __libc_fcntl, __libc_open64 and
7197 __libc_lseek64 @@GLIBC_PRIVATE.
7199 2004-04-30 Jakub Jelinek <jakub@redhat.com>
7201 * elf/dl-load.c (open_verify): Move e_phentsize check after e_type
7204 2004-04-29 Steven Munroe <sjmunroe@us.ibm.com>
7206 * sysdeps/powerpc/powerpc64/fpu/s_ceil.S: New file.
7207 * sysdeps/powerpc/powerpc64/fpu/s_ceilf.S: New file.
7208 * sysdeps/powerpc/powerpc64/fpu/s_floor.S: New file.
7209 * sysdeps/powerpc/powerpc64/fpu/s_floorf.S: New file.
7210 * sysdeps/powerpc/powerpc64/fpu/s_llrint.c: Removed.
7211 * sysdeps/powerpc/powerpc64/fpu/s_llrint.S: New file.
7212 * sysdeps/powerpc/powerpc64/fpu/s_llrintf.c: Removed.
7213 * sysdeps/powerpc/powerpc64/fpu/s_llrintf.S: New file.
7214 * sysdeps/powerpc/powerpc64/fpu/s_llround.S: New file.
7215 * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S: New file.
7216 * sysdeps/powerpc/powerpc64/fpu/s_lround.S: New file.
7217 * sysdeps/powerpc/powerpc64/fpu/s_lroundf.S: New file.
7218 * sysdeps/powerpc/powerpc64/fpu/s_rint.S: New file.
7219 * sysdeps/powerpc/powerpc64/fpu/s_rintf.S: New file.
7220 * sysdeps/powerpc/powerpc64/fpu/s_round.S: New file.
7221 * sysdeps/powerpc/powerpc64/fpu/s_roundf.S: New file.
7222 * sysdeps/powerpc/powerpc64/fpu/s_trunc.S: New file.
7223 * sysdeps/powerpc/powerpc64/fpu/s_truncf.S: New file.
7225 * math/test-misc.c [LDBL_MANT_DIG == 106](main): Correct LDBL_MAX
7226 mantissa for AIX long double format.
7227 * misc/qefgcvt.c [LDBL_MANT_DIG == 106] (NDIGIT_MAX): Define for AIX
7229 * misc/qefgcvt_r.c [LDBL_MANT_DIG == 106] (NDIGIT_MAX): Likewise.
7230 * stdlib/fpioconst.c [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__>1024]
7231 (_fpioconst_pow10): AIX long double format has same exponent range as
7233 * stdlib/fpioconst.h [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__>1024]
7234 (LDBL_MAX_10_EXP_LOG): AIX long double format has same exponent range
7237 2004-04-23 Art Haas <ahaas@airmail.net>
7239 * sysdeps/unix/sysv/linux/kernel-features.h: Add 'defined'.
7241 2004-04-28 Carlos O'Donell <carlos@baldric.uwo.ca>
7243 * sysdeps/unix/sysv/linux/mq_getattr.c: Include <stddef.h>.
7244 * sysdeps/unix/sysv/linux/mq_notify.c: Likewise.
7245 * sysdeps/unix/sysv/linux/mq_open.c: Likewise.
7246 * sysdeps/unix/sysv/linux/mq_receive.c: Likewise.
7247 * sysdeps/unix/sysv/linux/mq_send.c: Likewise.
7249 2004-04-29 Philip Blundell <pb@nexus.co.uk>
7251 * sysdeps/arm/dl-machine.h (RTLD_START): Avoid unnecessary GOT
7254 2004-04-29 Jakub Jelinek <jakub@redhat.com>
7256 * manual/resource.texi (sched_setaffinity, sched_getaffinity): Fix
7257 prototypes and description [BZ #131].
7259 * string/bits/string2.h (strpbrk): Cast NULL to char * [BZ #130].
7260 Patch by Ed Catmur <ed@catmur.co.uk>.
7261 * string/tst-inlcall.c (main): Add test for strpbrk.
7264 * sysdeps/unix/sysv/linux/sys/sysctl.h: Remove linux/compiler.h
7266 (_LINUX_KERNEL_H, _LINUX_TYPES_H, _LINUX_LIST_H): Only define if not
7267 yet defined, #undef back after including linux/sysctl.h if defined
7269 (__LINUX_COMPILER_H, __user): Define if not yet defined, #undef
7270 back after including linux/sysctl.h if defined here.
7272 * sysdeps/sparc/sparc64/soft-fp/qp_qtoi.c (_Qp_qtoi): Use %f31
7273 for single precision register, add it to __asm clobbers [BZ #139].
7274 * sysdeps/sparc/sparc64/soft-fp/qp_qtoui.c (_Qp_qtoui): Use %f31
7275 for single precision register, add it to __asm clobbers.
7276 * sysdeps/sparc/sparc64/soft-fp/qp_qtoux.c (_Qp_qtoux): Use fqtox
7277 instead of fqtoi in QP_HANDLE_EXCEPTIONS.
7278 * sysdeps/sparc/sparc64/soft-fp/qp_qtox.c (_Qp_qtox): Likewise.
7279 Reported by M. H. VanLeeuwen <vanl@megsinet.net>.
7281 2004-04-23 Andreas Schwab <schwab@suse.de>
7283 * sysdeps/unix/sysv/linux/m68k/register-dump.h: Use
7286 2004-04-22 Philip Blundell <philb@gnu.org>
7288 * sysdeps/arm/dl-machine.h (elf_machine_rela): Don't use INTUSE
7289 when calling _dl_signal_error.
7290 (elf_machine_rel): Likewise.
7292 2004-04-21 Ulrich Drepper <drepper@redhat.com>
7294 * sysdeps/unix/sysv/linux/ia64/setjmp.S: Define _GI___sigsetjmp
7295 and use it internally instead of __sigsetjmp.
7296 * sysdeps/ia64/fpu/s_frexpf.c (frexpf): Use _GI___libm_frexp_4f.
7297 * sysdeps/ia64/fpu/s_frexpl.c (frexpl): Use _GI___libm_frexp_4l.
7298 * sysdeps/ia64/fpu/libm_frexp4.S: Define _GI___libm_frexp_4.
7299 * sysdeps/ia64/fpu/libm_frexp4f.S: Define _GI___libm_frexp_4f.
7300 * sysdeps/ia64/fpu/libm_frexp4l.S: Define _GI___libm_frexp_4l.
7301 * sysdeps/ia64/fpu/s_frexp.c (frexp): Use _GI___libm_frexp_4.
7302 * sysdeps/ia64/fpu/libm_support.h: Declare _GI___libm_frexp_4,
7303 _GI___libm_frexp_4f, _GI___libm_frexp_4l.
7304 * sysdeps/ia64/fpu/bits/mathinline.h: New file.
7305 * sysdeps/unix/sysv/linux/ia64/__start_context.S: Use
7306 HIDDEN_JUMPTARGET for exit call.
7307 * sysdeps/unix/sysv/linux/ia64/clone2.S: Use HIDDEN_JUMPTARGET for
7309 * sysdeps/ia64/bcopy.S: Use HIDDEN_JUMPTARGET for memmove call.
7310 * sysdeps/ia64/strcat.S: Use HIDDEN_JUMPTARGET for strlen and
7313 2004-04-21 Jakub Jelinek <jakub@redhat.com>
7315 * posix/tst-chmod.c (do_test): Fix a typo.
7317 * elf/lateglobal.c (main): Fix error checks.
7318 Patch by Stephen Clarke <stephen.clarke@st.com>.
7320 * manual/ctype.texi (isblank, iswblank): Mark as ISO functions,
7321 mention they have been added in ISO C99.
7322 Reported by Ben Pfaff <blp@cs.stanford.edu>.
7324 2004-03-31 H.J. Lu <hongjiu.lu@intel.com>
7326 * sysdeps/ieee754/ldbl-128/bits/huge_vall.h: Fix typo.
7328 2004-04-20 Jakub Jelinek <jakub@redhat.com>
7330 * sysdeps/unix/sysv/linux/shm_open.c (shm_unlink): Change EPERM into
7333 2004-04-20 Jakub Jelinek <jakub@redhat.com>
7335 * stdio-common/vfscanf.c (_IO_vfscanf): Revert last %% whitespace
7337 * stdio-common/tst-sscanf.c (int_tests): Adjust.
7339 * nis/nss-nis.c: Include stdlib.h.
7341 * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Shut up a
7343 * sysdeps/sparc/sparc64/memcmp.S (memcmp): Remove BP_SYM () from
7344 libc_hidden_builtin_def.
7346 2004-04-20 Jim Meyering <jim@meyering.net>
7348 * misc/error.c (error_tail): Don't leak upon realloc failure.
7350 2004-04-20 Martin Schwidefsky <schwidefsky@de.ibm.com>
7352 * sysdeps/unix/sysv/linux/dl-execstack.c (_dl_make_stack_executable):
7353 Use RETURN_ADDRESS instead of __builtin_return_address.
7355 2004-04-19 Ulrich Drepper <drepper@redhat.com>
7357 * sysdeps/unix/sysv/linux/mq_unlink.c: Rewrite to produce more
7360 2004-04-20 Jakub Jelinek <jakub@redhat.com>
7362 * stdio-common/vfscanf.c (_IO_vfscanf): When skipping whitespace,
7363 do input_error () instead of conv_error () and don't look at errno.
7364 Don't eat any whitespace before %% if skip_space == 0.
7365 * stdio-common/tst-sscanf.c (int_tests): New array.
7366 (main): Run int_tests.
7368 See ChangeLog.15 for earlier changes.