1 2009-07-23 Ulrich Drepper <drepper@redhat.com>
4 * include/unistd.h: Make header file suitable for C++ test cases.
5 Patch by Duncan Simpson <dps@simpson.demon.co.uk>.
7 * sysdeps/unix/sysv/linux/i386/makecontext.S: Ensure we preserve the
8 stack alignment in the exit code.
10 * elf/dl-lookup.c (dl_lookup_x): The hashval for unique symbol can
13 * elf/tst-unique1.c: Extend test to check for unloading DSO with
14 unique symbol definition.
15 Patch by Jakub Jelinek.
16 * elf/dl-lookup.c (do_lookup_x): When entering a new unique symbol,
17 make sure the object with the definition cannot be unloaded. Adjust
19 * sysdeps/generic/ldsodefs.h (struct rtld_global): The map element in
20 the unique symbol hash table should not be const.
22 2009-07-21 Ulrich Drepper <drepper@redhat.com>
24 * sysdeps/x86_64/multiarch/strstr.c: Minor cleanups. Remove
25 unnecesary variables. Comment fixes.
27 2009-07-20 Ulrich Drepper <drepper@redhat.com>
29 * sysdeps/x86_64/multiarch/strstr.c [USE_AS_STRCASESTR] (STRSTR_SSE42):
30 Use NONASCII_CASE information provided by the locale to determine
31 whether optimized string load function can be used. Minor cleanups.
33 2009-07-20 H.J. Lu <hongjiu.lu@intel.com>
35 * string/strcasestr.c (STRCASESTR): New macro.
36 (__strcasestr): Renamed to ..
37 (STRCASESTR): ...this.
38 * string/strstr.c (STRSTR): New macro.
39 (strstr): Renamed to ..
41 * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
43 (CFLAGS-strstr.c): New.
44 (CFLAGS-strcasestr.c): Likewise.
45 * sysdeps/x86_64/multiarch/strcasestr-c.c: New file.
46 * sysdeps/x86_64/multiarch/strcasestr.c: New file.
47 * sysdeps/x86_64/multiarch/strstr-c.c: New file.
48 * sysdeps/x86_64/multiarch/strstr.c: New file.
50 2009-07-20 Ulrich Drepper <drepper@redhat.com>
52 * locale/localeinfo.h (LIMAGIC): Update value for LC_CTYPE.
53 * locale/langinfo.h: Define _NL_CTYPE_NONASCII_CASE.
54 * locale/C-ctype.c (_nl_C_LC_CTYPE): Add initializer for
55 _NL_CTYPE_NONASCII_CASE.
56 * locale/programs/ld-ctype.c (locale_ctype_t): Add nonascii_case
58 (ctype_finish): Check whether there are any 8-bit characters outside
59 the range ASCII has or whether the mapping isn't the same as for
60 ASCII (±0x20). Set nonascii_case appropriately.
61 (ctype_output): Add output handler for nonascii_case.
63 2009-07-17 Ulrich Drepper <drepper@redhat.com>
65 * sysdeps/generic/sysdep.h: Define cfi_personality, cfi_lsda,
66 CFI_PERSONALITY, CFI_LSDA, and DW_EH_PE_* constants.
68 2009-07-16 Ulrich Drepper <drepper@redhat.com>
71 * resolv/res-mkquery.c (__res_nopt): If anslen is > 0xffff store
72 0xffff in the EDNS0 record.
74 2009-07-16 Ulrich Drepper <drepper@redhat.com>
76 * nscd/cache.c (cache_add): Use atomic_compare_and_exchange_bool_rel
77 instead of atomic_compare_and_exchange_bool_acq to ensure pointer
78 is written before the list head update.
79 Patch by Andreas Schwab <aschwab@redhat.com>.
81 2009-07-16 Ulrich Drepper <drepper@redhat.com>
82 Jakub Jelinek <jakub@redhat.com>
84 * malloc/malloc.c [ATOMIC_FASTBINS] (_int_free): Make check for
85 corruption thread-safe.
87 2009-07-13 Jakub Jelinek <jakub@redhat.com>
89 * include/atomic.h (catomic_compare_and_exchange_val_rel): If arch
90 overrides atomic_compare_and_exchange_val_rel, define to
91 atomic_compare_and_exchange_val_rel by default, otherwise default
92 to catomic_compare_and_exchange_val_acq.
93 (catomic_compare_and_exchange_bool_rel): If arch overrides
94 atomic_compare_and_exchange_bool_rel, define to
95 atomic_compare_and_exchange_bool_rel by default.
96 * malloc/malloc.c (_int_free): Revert 2009-07-02 change.
97 Use catomic_compare_and_exchange_val_rel instead of
98 catomic_compare_and_exchange_val_acq.
100 2009-07-16 Ulrich Drepper <drepper@redhat.com>
102 * sysdeps/generic/ldsodefs.h: Add prototype for
103 _dl_higher_prime_number.
104 * elf/dl-misc.c (_dl_higher_prime_number): Mark with internal_function.
106 * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Optimize
107 restoring of ymm registers a bit.
109 2009-07-15 H.J. Lu <hongjiu.lu@intel.com>
111 * sysdeps/x86_64/memcmp.S: New file.
113 2009-07-15 Ulrich Drepper <drepper@redhat.com>
115 * sysdeps/x86-64/dl-trampoline.h: Remove after integrating code into...
116 * sysdeps/x86-64/dl-trampoline.S: ...here. Rewrite to avoid function
117 pointers in writable memory.
119 2009-07-07 H.J. Lu <hongjiu.lu@intel.com>
121 * config.h.in: Add HAVE_AVX_SUPPORT entry.
122 * config.make.in: Add config-cflags-avx entry.
123 * configure.in: Substitute libc_cv_cc_avx.
124 * elf/Makefile: Add rules to build and run tst-audit4 and tst-audit5.
125 * elf/tst-audit4.c: New file.
126 * elf/tst-audit5.c: New file.
127 * elf/tst-auditmod4a.c: New file.
128 * elf/tst-auditmod4b.c: New file.
129 * elf/tst-auditmod5a.c: New file.
130 * elf/tst-auditmod5b.c: New file.
131 * sysdeps/x86_64/Makefile (gen-as-const-headers): Add
133 * sysdeps/x86_64/bits/link.h (La_x86_64_ymm): New.
134 (La_x86_64_vector): Likewise.
135 (La_x86_64_regs): Append lr_vector.
136 (La_x86_64_retval): Append lr_vector0/lrv_vector1.
137 * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Move
138 saving and restoring SSE registers to ...
139 * sysdeps/x86_64/dl-trampoline.h: This. New file.
140 * sysdeps/x86_64/dl-trampoline.S: Include <config.h> and
142 (_dl_runtime_profile): Use LR_SIZE to allocate space for
143 La_x86_64_regs. Allocate extra space and jump to memory at
144 save_and_restore_vector if HAVE_AVX_SUPPORT is defined.
145 (save_and_restore_vector_sse): New.
146 (save_and_restore_vector_avx): Likewise.
147 (check_avx): Likewise.
148 (save_and_restore_vector): Likewise.
149 * sysdeps/x86_64/elf/configure.in: Set libc_cv_cc_avx and
151 * sysdeps/x86_64/link-defines.sym: New file.
153 2009-07-10 Ulrich Drepper <drepper@redhat.com>
155 * elf/do-lookup.h: Removed after folding content into...
156 * elf/dl-lookup.c: ...here.
158 * sysdeps/unix/sysv/linux/sys/epoll.h: Fix comment.
160 2009-07-09 Ulrich Drepper <drepper@redhat.com>
162 * configure.in: Check for gnu_unique_symbol symbol type.
163 * config.h.in: Add HAVE_ASM_UNIQUE_OBJECT entry.
164 * elf/do-lookup.h (do_lookup_x): Take new parameter with link map of
165 the undefined symbol. Handle STB_GNU_UNIQUE binding of found symbol.
166 * elf/dl-lookup.c (_dl_lookup_symbol_x): Adjust callers for do_lookup_x
168 * sysdeps/generic/ldsodefs.h (struct rtld_global): Add definitions for
170 * elf/rtld.c (rtld_global): Initialize lock of unique symbol hash table
172 * elf/dl-open.c (_dl_open): For new namespace, initialize lock for
173 unique symbol hash table.
174 * elf/Makefile: Add rules to build and run tst-unique1 and tst-unique2.
175 * elf/tst-unique1.c: New file.
176 * elf/tst-unique1mod1.c: New file.
177 * elf/tst-unique1mod2.c: New file.
178 * elf/tst-unique2.c: New file.
179 * elf/tst-unique2mod1.c: New file.
180 * elf/tst-unique2mod2.c: New file.
182 2009-07-07 Ulrich Drepper <drepper@redhat.com>
184 * elf/elf.h (STB_GNU_UNIQUE): Define.
186 * elf/dl-misc.c (_dl_higher_prime_number): New function. Moved here
188 * include/inline-hashtab.h: ...here.
189 (htab_expand): Adjust for renamed function. Correct memory handling.
191 2009-07-06 Ulrich Drepper <drepper@redhat.com>
193 * elf/do-lookup.h (do_lookup_x): Optimize test for valid symbol types.
195 2009-07-03 Andreas Schwab <aschwab@redhat.com>
197 * sysdeps/powerpc/sysdep.h (PPC_FEATURE_ARCH_2_06): Fix value.
198 (PPC_FEATURE_HAS_VSX): Likewise.
200 2009-07-03 Ulrich Drepper <drepper@redhat.com>
202 * sysdeps/x86_64/multiarch/strcspn-c.c: Minor cleanups.
203 * sysdeps/x86_64/multiarch/strspn-c.c: Likewise.
205 * sysdeps/x86_64/multiarch/strcmp.S: Make sure functions are all
206 aligned to 16 byte boundaries.
207 * sysdeps/x86_64/multiarch/strcpy.S: Likewise.
208 * sysdeps/x86_64/multiarch/strlen.S: Likewise.
209 * sysdeps/x86_64/multiarch/rawmemchr.S: Likewise.
211 2009-07-02 H.J. Lu <hongjiu.lu@intel.com>
213 * config.h.in (HAVE_SSE4_SUPPORT): New macro.
214 * config.make.in (config-cflags-sse4): New variable.
215 * configure.in: Substitute libc_cv_cc_sse4.
216 * sysdeps/i386/configure.in: Set libc_cv_cc_sse4 and
218 * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
219 strcspn-c, strpbrk-c, strspn-c for string if gcc supports SSE4.
220 * sysdeps/x86_64/multiarch/strcspn-c.c: New file.
221 * sysdeps/x86_64/multiarch/strcspn.S: New file.
222 * sysdeps/x86_64/multiarch/strpbrk-c.c: New file.
223 * sysdeps/x86_64/multiarch/strpbrk.S: New file.
224 * sysdeps/x86_64/multiarch/strspn-c.c: New file.
225 * sysdeps/x86_64/multiarch/strspn.S: New file.
227 2009-06-30 H.J. Lu <hongjiu.lu@intel.com>
229 * elf/Makefile (distribute): Remove tst-audit.sh. Add
230 tst-audit2.c, tst-audit3.c, tst-auditmod3a.c, tst-auditmod3b.c.
231 (tests): Add tst-audit3 for x86_64.
232 (modules-names): Add tst-auditmod3a, tst-auditmod3b.
233 ($(objpfx)tst-audit3): Define.
234 ($(objpfx)tst-audit3.out): Define.
235 (tst-audit3-ENV): Define.
236 * elf/tst-audit3.c: New file.
237 * elf/tst-auditmod3a.c: New file.
238 * elf/tst-auditmod3b.c: New file.
239 * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Save
242 * string/stpncpy.c (STPNCPY): New. Defined if not defined.
243 (__stpncpy): Renamed to ...
245 (stpncpy): Create alias only if STPNCPY is not defined.
246 * string/strncpy.c (STRNCPY): New. Defined to strncpy if not
248 (strncpy): Renamed to ...
250 * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
251 stpncpy-c strncpy-c for string.
252 * sysdeps/x86_64/multiarch/stpcpy.S: New file.
253 * sysdeps/x86_64/multiarch/stpncpy-c.c: New file.
254 * sysdeps/x86_64/multiarch/stpncpy.S: New file.
255 * sysdeps/x86_64/multiarch/strcpy.S: New file.
256 * sysdeps/x86_64/multiarch/strncpy-c.c: New file.
257 * sysdeps/x86_64/multiarch/strncpy.S: New file.
259 2009-07-02 Ulrich Drepper <drepper@redhat.com>
261 * malloc/malloc.c [ATOMIC_FASTBINS] (_int_free): Add full barrier when
262 adding to fast bin list.
264 2009-07-01 Ulrich Drepper <drepper@redhat.com>
266 * nis/nss_nis/nis-network.c (_nss_nis_getnetbyaddr_r): Don't use
267 inet_makeaddr. This worked only with class-based networks.
268 * nis/nss_nisplus/nisplus-network.c (_nss_nisplus_getnetbyaddr_r):
271 * nss/nss_files/files-network.c (netbyaddr): If type is AF_UNSPEC,
273 * nss/getent.c (networks_keys): Pass AF_UNSPEC instead of AF_UNIX
274 to getnetbyaddr. Fix network parameter to getnetbyaddr. It must
275 be in host byte order.
277 2009-06-26 H.J. Lu <hongjiu.lu@intel.com>
279 * sysdeps/x86_64/multiarch/ifunc-defines.sym (FAMILIY_OFFSET): Define.
280 (MODEL_OFFSET): Define.
281 * sysdeps/x86_64/multiarch/init-arch.h (cpu_features): Add
283 * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Break
284 out common code into new function get_common_indeces. Determine
285 extended family and model for Intel processors.
287 2009-06-26 Ulrich Drepper <drepper@redhat.com>
289 * resolv/resolv.h: Define RES_SNGLKUPREOP.
290 * resolv/res_init.c (res_setoptions): Recognize single-request-reopen
292 * resolv/res_send.c (reopen): New function. Broken out of...
293 (send_dg): ... here. Recognize RES_SNGLKUPREOP. Implement second
294 fallback mechanism. If single-request fails switch to
295 single-request-reopen mode which opens a new socket for the second
298 2009-06-25 Andreas Schwab <aschwab@redhat.com>
300 * sysdeps/powerpc/powerpc32/____longjmp_chk.S (LOAD_ARG): Define.
303 2009-06-24 Andreas Schwab <aschwab@redhat.com>
305 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.S: Fix cfa offset
307 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
308 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
309 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
311 2009-06-23 Andreas Schwab <aschwab@redhat.com>
313 * time/tzfile.c (__tzfile_read): Don't use an empty TZ string.
315 2009-06-22 Ulrich Drepper <drepper@redhat.com>
317 * po/id.po: Update from translation team.
319 * po/bg.po: Update from translation team.
321 2009-06-22 H.J. Lu <hongjiu.lu@intel.com>
323 * string/strncmp.c (STRNCMP): New. Defined to strncmp if not
325 (strncmp): Renamed to STRNCMP.
326 * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
327 strncmp-c for string.
328 * sysdeps/x86_64/multiarch/init-arch.h (HAS_SSE4_2): Define.
329 * sysdeps/x86_64/multiarch/strcmp.S: New file.
330 * sysdeps/x86_64/multiarch/strncmp.S: New file.
331 * sysdeps/x86_64/multiarch/strncmp-c.c: New file.
333 2009-06-19 H.J. Lu <hongjiu.lu@intel.com>
335 * elf/Makefile (distribute): Add ifuncmain1staticpie.c,
336 ifuncmain5.c, ifuncmain5pic.c, ifuncmain5picstatic.c,
337 ifuncmain5pie.c, ifuncmain5static.c, ifuncmain5staticpic.c,
338 ifuncdep5.c, ifuncdep5pic.c, ifuncmod5.c, ifuncmain7.c,
339 ifuncmain7pic.c, ifuncmain7picstatic.c, ifuncmain7pie.c, and
341 (tests-static): Add ifuncmain5static, ifuncmain5picstatic,
342 ifuncmain7static, and ifuncmain7picstatic.
343 (tests): Also depend on $(objpfx)ifuncmain1staticpie.out,
344 $(objpfx)ifuncmain5pie.out, $(objpfx)ifuncmain6pie.out, and
345 $(objpfx)ifuncmain7pie.out.
346 (modules-names): Add ifuncmod5 ifuncmod6
347 (ifuncmod5.so-no-z-defs): Define.
348 (ifuncmod6.so-no-z-defs): Define.
349 (CFLAGS-ifuncmain5pic.c): Define.
350 (CFLAGS-ifuncmain5picstatic.c): Define.
351 (CFLAGS-ifuncmain5staticpic.c): Define.
352 (CFLAGS-ifuncdep5pic.c): Define.
353 (CFLAGS-ifuncmain7pic.c): Define.
354 (CFLAGS-ifuncmain7picstatic.c): Define.
355 (CFLAGS-ifuncmain1staticpie.c): Define.
356 (CFLAGS-ifuncmain5pie.c): Define.
357 (CFLAGS-ifuncmain6pie.c): Define.
358 (CFLAGS-ifuncmain7pie.c): Define.
359 ($(objpfx)ifuncmain1staticpie.out): Define.
360 ($(objpfx)ifuncmain1staticpie): Define.
361 ($(objpfx)ifuncmain5pie.out): Define.
362 ($(objpfx)ifuncmain5pie): Define.
363 ($(objpfx)ifuncmain6pie.out): Define.
364 ($(objpfx)ifuncmain6pie): Define.
365 ($(objpfx)ifuncmain5): Define.
366 ($(objpfx)ifuncmain5pic): Define.
367 ($(objpfx)ifuncmain5static): Define.
368 ($(objpfx)ifuncmain5staticpic): Define.
369 ($(objpfx)ifuncmain5picstatic): Define.
370 (generated): Add ifuncmain1staticpie, ifuncmain1staticpie.out,
371 ifuncmain5pie, ifuncmain5pie.out, ifuncmain6pie, and
373 * elf/b/elf/ifuncmain1staticpie.c: New file.
374 * elf/ifuncdep5.c: New file.
375 * elf/ifuncdep5pic.c: New file.
376 * elf/ifuncmain5.c: New file.
377 * elf/ifuncmain5pic.c: New file.
378 * elf/ifuncmain5picstatic.c: New file.
379 * elf/ifuncmain5pie.c: New file.
380 * elf/ifuncmain5static.c: New file.
381 * elf/ifuncmain5staticpic.c: New file.
382 * elf/ifuncmain6pie.c: New file.
383 * elf/ifuncmain7.c: New file.
384 * elf/ifuncmain7pic.c: New file.
385 * elf/ifuncmain7picstatic.c: New file.
386 * elf/ifuncmain7pie.c: New file.
387 * elf/ifuncmain7static.c: New file.
388 * elf/ifuncmod5.c: New file.
389 * elf/ifuncmod6.c: New file.
391 2009-06-20 Ulrich Drepper <drepper@redhat.com>
394 * nis/nss_compat/compat-initgroups.c (nss_setgrent): New variable.
395 (nss_endgrent): New variable.
396 (struct ent_t): Add need_endgrent and skip_initgroups_dyn
397 fields. Change type of files to bool and adjust all users.
398 (init_nss_interface): Initialize nss_setgrent and nss_endgrent.
399 (internal_endgrent): Call nss_endgrent if necessary.
400 (add_group): New function. Broken out of...
401 (check_and_add_group): ...here.
402 (getgrent_next_nss): Remove test that any callback is available.
403 Use skip_initgroups_dyn to determine whether to use initgroups_dyn
404 callback. If there is no blacklist we can trust the results returned
405 by the initgroups_dyn callback. In case there is a callback and we
406 find a group entry for the group ID but it doesn't contain the
407 correct member, switch to the slow mode and use getgrent_r.
408 (internal_getgrent_r): When we see a +: entry, determine whether
409 there is any callback and which we can use the initgroups_dyn
412 2009-06-18 Ulrich Drepper <drepper@redhat.com>
414 * malloc/malloc.c (_int_malloc): Add some consistency checks.
415 (_int_free): Likewise.
417 * sysdeps/unix/sysv/linux/bits/socket.h: Define PF_IEEE802154 and
419 * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
420 * sysdeps/unix/sysv/linux/net/if_arp.h: Define ARPHRD_IEEE802154
421 and ARPHRD_IEEE802154_PHY.
423 * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Add missing definitions
424 relative to generic Linux version.
426 2009-06-17 H.J. Lu <hongjiu.lu@intel.com>
428 * elf/Makefile ($(objpfx)ifuncmain1pie): Use $(+link-pie).
429 ($(objpfx)ifuncmain1vispie): Likewise.
431 2009-06-16 Ulrich Drepper <drepper@redhat.com>
433 * login/Makefile: Build pt_chown as PIE.
435 2009-06-15 Andreas Schwab <aschwab@redhat.com>
437 * debug/xtrace.sh (do_help): Don't treat bug reporting message as
439 * elf/sln.c (usage): Likewise.
440 * malloc/memusage.sh (do_help): Likewise.
441 * nss/getent.c (more_help): Likewise.
442 * posix/getconf.c (main): Likewise.
443 * sunrpc/rpcinfo.c (usage): Likewise.
444 * sysdeps/unix/sysv/linux/lddlibc4.c (main): Likewise.
446 2009-06-16 Ulrich Drepper <drepper@redhat.com>
448 * login/programs/pt_chown.c: Use libcap to drop privileges other than
450 * login/Makefile: If necessary link pt_chown with -lcap.
451 * sysdeps/generic/pty-private.h: Define FAIL_ENOMEM.
452 * sysdeps/unix/grantpt.c: Handle FAIL_ENOMEM.
454 2009-06-16 Jakub Jelinek <jakub@redhat.com>
456 * sysdeps/x86_64/memchr.S (memchr): Use unsigned instead of signed
458 * string/test-memchr.c (do_random_tests): Test very large lengths
461 2009-06-02 H.J. Lu <hongjiu.lu@intel.com>
463 * Makeconfig (+link-pie): Define.
465 (+postctorS): Define.
466 * elf/Makefile ($(objpfx)tst-pie1): Use $(+link-pie).
467 * nscd/Makefile ($(objpfx)nscd): Likewise.
469 2009-04-22 Ryan S. Arnold <rsa@us.ibm.com>
472 * sysdeps/powerpc/powerpc32/power6/memcpy.S (memcpy): Replace cmpldi
474 * sysdeps/powerpc/powerpc32/power6/memset.S (memset): Likewise.
476 2009-06-16 Ulrich Drepper <drepper@redhat.com>
478 * sysdeps/unix/sysv/linux/grantpt.c: Remove file after folding changes
480 * sysdeps/unix/grantpt.c: ...here.
482 2009-06-15 Ulrich Drepper <drepper@redhat.com>
484 * sysdeps/unix/sysv/linux/grantpt.c (grantpt): Only call chown and
485 chmod if it is necessary.
488 * sysdeps/unix/sysv/linux/grantpt.c: Remove shortcut which was used
489 when the slave device is in devpts or devfs.
492 * posix/tst-cpucount.c: Don't try more than CPU_SETSIZE bits.
495 * inet/netinet/icmp6.h (struct nd_opt_home_agent_info): Change type
496 of nd_opt_home_agent_info_preference to uint16_t.
497 Patch by Arnaud Ebalard <arno@natisbad.org>.
500 * nss/getent.c: Add support for printing gshadow data.
503 * nis/nss_nis/nis-pwd.c (internal_nis_endpwent): Free all buffers,
504 not just the currently used one and those which follow.
505 Patch by Joe Landers <jlanders@vmware.com>.
508 * libio/tst-fgetwc.c (do_test): Use de_DE.UTF-8 as locale name.
509 * libio/Makefile: Run tst-fgetwc with necessary envvar.
510 Patch by Bruce Dubbs <bdubbs@linuxfromscratch.org>.
513 * stdlib/abort.c: Define variable __abort_msg.
514 * stdlib/Versions: Export __abort_msg with GLIBC_PRIVATE version.
515 * include/stdlib.h: Declare __abort_msg.
516 * assert/assert-perr.c: Don't free buffer for message immediately.
517 Store atomically in __abort_msg and free old buffer if necessary.
518 * assert/assert.c: Likewise.
519 * sysdeps/posix/libc_fatal.c: Allocate buffer for message, copy it,
520 store pointer in __abort_msg, and possibly free old string.
521 * sysdeps/unix/sysv/linux/libc_fatal.c: Likewise.
523 * time/tzfile.c (__tzfile_read): Correct computation of tzspec_len.
526 * time/tzfile.c (__tzfile_compute): If we use the envvar format still
527 handle leap seconds if they are available.
528 Patch by Akinori Hattori <hattya@gentoo.org>.
530 * timezone/tzselect.ksh: Update from tzcode2009i.
531 * timezone/zdump.c: Likewise.
532 * timezone/zic.c: Likewise.
534 * timezone/africa: Update from tzdata2009i.
535 * timezone/antarctica: Likewise.
536 * timezone/asia: Likewise.
537 * timezone/australasia: Likewise.
538 * timezone/backward: Likewise.
539 * timezone/etcetera: Likewise.
540 * timezone/europe: Likewise.
541 * timezone/factory: Likewise.
542 * timezone/iso3166.tab: Likewise.
543 * timezone/leapseconds: Likewise.
544 * timezone/northamerica: Likewise.
545 * timezone/pacificnew: Likewise.
546 * timezone/solar87: Likewise.
547 * timezone/solar88: Likewise.
548 * timezone/solar89: Likewise.
549 * timezone/southamerica: Likewise.
550 * timezone/systemv: Likewise.
551 * timezone/yearistype: Likewise.
552 * timezone/zone.tab: Likewise.
554 2009-06-15 Jakub Jelinek <jakub@redhat.com>
556 * elf/dl-lookup.c (_dl_debug_bindings): When resolving to
557 STT_GNU_IFUNC symbol or in 8 into type_class.
559 * sysdeps/i386/dl-irel.h (elf_irel): Use Elf32_Addr type
560 instead of Elf64_Addr.
562 2009-06-14 Ulrich Drepper <drepper@redhat.com>
564 * po/sv.po: Update from translation team.
567 * misc/sys/select.h (__NFDBITS): Expression should have type int.
568 * sysdeps/x86_64/bits/select.h: Remove asm versions for __FD_SET,
569 __FD_CLR, and __FD_ISSET. gcc nowadays generates better code from
572 2009-06-12 Ulrich Drepper <drepper@redhat.com>
574 * Versions.def: Add GLIBC_2.11 for libpthread.
576 2009-06-11 Ulrich Drepper <drepper@redhat.com>
578 * resolv/res_send.c (send_dg): Remember we switched to
581 2009-06-09 Ulrich Drepper <drepper@redhat.com>
583 * dlfcn/dlfcn.h: Remove comma at end of enum.
584 Patch by J.H.M. Dassen <rdassen@redhat.com>.
586 * libio/fileops.c (_IO_new_file_fopen): Don't prematurely stop
589 2009-06-05 Ulrich Drepper <drepper@redhat.com>
591 * sysdeps/x86_64/rawmemchr.S: Minor optimization.
593 * sysdeps/x86_64/multiarch/rawmemchr.S: New file.
595 * sysdeps/x86_64/multiarch/strlen.S: New file.
596 * sysdeps/x86_64/multiarch/ifunc-defines.sym: New file.
597 * sysdeps/x86_64/multiarch/Makefile: Add rule to build ifunc-defines.h.
598 * sysdeps/x86_64/multiarch/init-arch.h: Name structure with register
601 * csu/elf-init.c: Only compile in IFUNC functionality if USE_MULTIARCH
604 2009-06-04 Ulrich Drepper <drepper@redhat.com>
606 * sysdeps/x86_64/strlen.S: Minor optimizations.
608 2009-06-02 H.J. Lu <hongjiu.lu@intel.com>
610 * elf/Makefile (distribute): Add ifuncmain1.c, ifuncmain1pic.c,
611 ifuncmain1vis.c, ifuncmain1vispic.c, ifuncmain1static.c,
612 ifuncmain1staticpic.c, ifuncmain1picstatic.c, ifuncdep1.c,
613 ifuncdep1pic.c, ifuncmod1.c, ifuncmain1pie.c, ifuncmain1vispie.c,
614 ifuncmain2.c, ifuncmain2static.c, ifuncdep2.c,
615 funcmain2pic.c, ifuncmain2picstatic.c, ifuncdep2pic.c,
616 ifuncmain3.c, ifuncmod3.c,.
617 ifuncmain4.c, ifuncmain4static.c, ifuncmain4picstatic.c.
618 (tests-static): Add ifuncmain1static, ifuncmain1picstatic,
619 ifuncmain2static, ifuncmain2picstatic, ifuncmain4static,
621 (tests): Add ifuncmain1, ifuncmain1pic, ifuncmain1vis,
622 ifuncmain1vispic, ifuncmain1staticpic, ifuncmain2, ifuncmain2pic,
623 ifuncmain3, ifuncmain4.
624 (tests): Depend on $(objpfx)ifuncmain1pie.out and
625 $(objpfx)ifuncmain1vispie.out.
626 (modules-names): Add ifuncmod1 ifuncmod3.
627 (generated): Add ifuncmain1pie ifuncmain1pie.out
628 ifuncmain1vispie ifuncmain1vispie.out.
629 Define rules to build and run the tests.
630 * elf/ifuncdep1.c: New file.
631 * elf/ifuncdep1pic.c: New file.
632 * elf/ifuncdep2.c: New file.
633 * elf/ifuncdep2pic.c: New file.
634 * elf/ifuncmain1.c: New file.
635 * elf/ifuncmain1pic.c: New file.
636 * elf/ifuncmain1picstatic.c: New file.
637 * elf/ifuncmain1pie.c: New file.
638 * elf/ifuncmain1static.c: New file.
639 * elf/ifuncmain1staticpic.c: New file.
640 * elf/ifuncmain1vis.c: New file..
641 * elf/ifuncmain1vispic.c: New file..
642 * elf/ifuncmain1vispie.c: New file.
643 * elf/ifuncmain2.c: New file.
644 * elf/ifuncmain2pic.c: New file.
645 * elf/ifuncmain2picstatic.c: New file.
646 * elf/ifuncmain2static.c: New file.
647 * elf/ifuncmain3.c: New file.
648 * elf/ifuncmain4.c: New file.
649 * elf/ifuncmain4picstatic.c: New file.
650 * elf/ifuncmain4static.c: New file.
651 * elf/ifuncmod1.c: New file.
652 * elf/ifuncmod3.c: New file.
654 2009-06-03 Ulrich Drepper <drepper@redhat.com>
656 * elf/dl-sysdep.c (_dl_show_auxv): Terminate correct string.
658 2009-06-02 Ulrich Drepper <drepper@redhat.com>
661 * posix/Makefile (routines): Add execvpe.
662 * posix/Versions: Export execvpe for GLIBC_2.11.
663 * posix/execvp.c: Now only a wrapper. Move code to...
664 * posix/execvpe.c: ...here. New file.
665 * posix/unistd.h: Declare execvpe.
667 2009-06-01 Ulrich Drepper <drepper@redhat.com>
669 * sysdeps/i386/dl-machine.h (elf_machine_rel): Reorder conditions
670 for STT_GNU_IFUNC handling for efficiency.
671 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
673 * sysdeps/i386/dl-irel.h (elf_irel): Use __libc_fatal instead of just
675 * sysdeps/x86_64/dl-irel.h (elf_irela): Likewise.
677 2009-05-31 Ulrich Drepper <drepper@redhat.com>
679 * sysdeps/x86_64/multiarch/sched_cpucount.c: Also use optimized code
682 2009-05-29 H.J. Lu <hongjiu.lu@intel.com>
684 * csu/elf-init.c: Include <link.h> and <dl-irel.h> if LIBC_NONSHARED
686 (__rela_iplt_start): New declaration.
687 (__rela_iplt_end): Likewise.
688 (__rel_iplt_start): Likewise.
689 (__rel_iplt_end): Likewise.
690 (__libc_csu_init): Process __rela_iplt_start and __rel_iplt_start.
691 * elf/elf.h (R_386_IRELATIVE): New macro.
692 (R_X86_64_IRELATIVE): New macro.
693 (R_386_NUM): Updated.
694 (R_X86_64_NUM): Likewise.
695 * include/libc-symbols.h (libc_ifunc_hidden_def1): New macro.
696 (libc_ifunc_hidden_def): New macro.
697 * sysdeps/generic/dl-irel.h: New file.
698 * sysdeps/i386/dl-irel.h: New file.
699 * sysdeps/x86_64/dl-irel.h: New file.
700 * sysdeps/i386/dl-machine.h (elf_machine_rel): Handle R_386_IRELATIVE.
701 (elf_machine_rela): Check SHN_UNDEF for STT_GNU_IFUNC symbol.
702 Handle R_386_IRELATIVE.
703 (elf_machine_lazy_rel): Handle R_386_IRELATIVE.
704 (elf_machine_lazy_rela): Likewise.
705 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Handle
707 (elf_machine_lazy_rel): Handle R_X86_64_IRELATIVE.
709 2009-05-31 Ulrich Drepper <drepper@redhat.com>
711 * sysdeps/x86_64/multiarch/init-arch.h: Define COMMON_CPUID_INDEX_1
712 instead of INTEL_CPUID_INDEX_1 and AMD_CPUID_INDEX_1. So far there
713 are no differences. If an architecture has bits in CPUID index 1
714 meaning different things the values for the COMMON_CPUID_INDEX_1
715 index must not be set.
716 (INTEL_HAS_POPCOUNT, AMD_HAS_POPCOUNT): Removed in favor of...
717 (HAS_POPCOUNT): ...this. New macro.
718 * sysdeps/x86_64/multiarch/init-arch.c: Use COMMON_CPUID_INDEX_1
719 instead of INTEL_CPUID_INDEX_1 and AMD_CPUID_INDEX_1. Unify code
720 to set the value for Intel and AMD architectures.
721 * sysdeps/x86_64/cacheinfo.c: Use COMMON_CPUID_INDEX_1 instead of
723 * sysdeps/x86_64/multiarch/sched_cpucount.c: Adjust for HAS_POPCOUNT
726 2009-05-30 Andreas Schwab <schwab@linux-m68k.org>
728 * configure.in: Move AC_CANONICAL_HOST before first use of $host
731 2009-05-29 Jakub Jelinek <jakub@redhat.com>
733 * sysdeps/ieee754/ldbl-128/s_expm1l.c: Include <errno.h>.
734 (__expm1l): Set errno to ERANGE on overflow.
735 * sysdeps/ieee754/ldbl-128/s_tanl.c: Include <errno.h>.
736 (__tanl): Set errno to EDOM for ±Inf.
737 * sysdeps/ieee754/ldbl-128/s_cosl.c: Include <errno.h>.
738 (__cosl): Set errno to EDOM for ±Inf.
739 * sysdeps/ieee754/ldbl-128/s_sinl.c: Include <errno.h>.
740 (__sinl): Set errno to EDOM for ±Inf.
742 * sysdeps/s390/s390-32/__longjmp.c (__longjmp): If CHECK_SP is
744 * sysdeps/s390/s390-64/__longjmp.c (__longjmp): Likewise.
745 * sysdeps/s390/s390-32/____longjmp_chk.c: New file.
746 * sysdeps/s390/s390-64/____longjmp_chk.c: New file.
748 2009-05-29 Ulrich Drepper <drepper@redhat.com>
750 * sysdeps/x86_64/cacheinfo.c: Compact intel_02_known array. Adjust
752 * sysdeps/unix/sysv/linux/i386/sysconf.c: Likewise.
754 2009-05-22 Andreas Schwab <schwab@linux-m68k.org>
756 * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Set errno for ±Inf.
757 * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
758 * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
759 * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c: Set errno for overflow.
761 * sysdeps/powerpc/powerpc32/____longjmp_chk.S: New file.
762 * sysdeps/powerpc/powerpc64/____longjmp_chk.S: New file.
763 * sysdeps/powerpc/powerpc32/__longjmp-common.S: Use CHECK_SP if
765 * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
766 * sysdeps/powerpc/powerpc64/__longjmp-common.S: Likewise.
768 2009-05-22 Jakub Jelinek <jakub@redhat.com>
770 * sysdeps/unix/sysv/linux/accept4.c: Include kernel-features.h.
771 (accept4): If __NR_accept4 is not defined, but __NR_socketcall
772 is, either do nothing at all if __ASSUME_ACCEPT4, or
773 call __internal_accept4 and handle EINVAL -> ENOSYS translation.
774 * sysdeps/unix/sysv/linux/internal_accept4.S: New file.
775 * sysdeps/unix/sysv/linux/i386/accept4.S (SOCKOP_accept4): Don't
777 * sysdeps/unix/sysv/linux/i386/internal_accept4.S: New file.
778 * sysdeps/unix/sysv/linux/Makefile (sysdep-routines): Add
779 internal_accept4 in socket directory.
781 2009-05-20 H.J. Lu <hongjiu.lu@intel.com>
783 * sysdeps/ia64/configure.in: New file.
785 2009-05-21 H.J. Lu <hongjiu.lu@intel.com>
788 * sysdeps/ia64/memchr.S: Use speculative load.
790 * sysdeps/unix/sysv/linux/ia64/____longjmp_chk.S: New file.
791 * sysdeps/unix/sysv/linux/ia64/__longjmp.S: If CHECK_RSP is defined,
794 * sysdeps/i386/__longjmp.S: Add .text.
795 * sysdeps/x86_64/__longjmp.S: Likewise.
797 2009-05-21 Ulrich Drepper <drepper@redhat.com>
799 * sysdeps/unix/sysv/linux/kernel-features.h: Don't define
800 __ASSUME_ACCEPT4 for IA-64.
802 2009-05-21 Jakub Jelinek <jakub@redhat.com>
804 * sysdeps/unix/sysv/linux/accept4.c (__NR_accept4): Don't define.
806 * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_paccept): Remove.
807 (SOCKOP_accept4): Define.
809 2009-05-20 Ulrich Drepper <drepper@redhat.com>
811 Sun approved the change of the license.
812 * sunrpc/auth_des.c: Replace license text.
813 * sunrpc/auth_none.c: Likewise.
814 * sunrpc/auth_unix.c: Likewise.
815 * sunrpc/authdes_prot.c: Likewise.
816 * sunrpc/authuxprot.c: Likewise.
817 * sunrpc/bindrsvprt.c: Likewise.
818 * sunrpc/clnt_gen.c: Likewise.
819 * sunrpc/clnt_perr.c: Likewise.
820 * sunrpc/clnt_raw.c: Likewise.
821 * sunrpc/clnt_simp.c: Likewise.
822 * sunrpc/clnt_tcp.c: Likewise.
823 * sunrpc/clnt_udp.c: Likewise.
824 * sunrpc/clnt_unix.c: Likewise.
825 * sunrpc/des_crypt.c: Likewise.
826 * sunrpc/des_soft.c: Likewise.
827 * sunrpc/get_myaddr.c: Likewise.
828 * sunrpc/getrpcport.c: Likewise.
829 * sunrpc/key_call.c: Likewise.
830 * sunrpc/key_prot.c: Likewise.
831 * sunrpc/openchild.c: Likewise.
832 * sunrpc/pm_getmaps.c: Likewise.
833 * sunrpc/pm_getport.c: Likewise.
834 * sunrpc/pmap_clnt.c: Likewise.
835 * sunrpc/pmap_prot.c: Likewise.
836 * sunrpc/pmap_prot2.c: Likewise.
837 * sunrpc/pmap_rmt.c: Likewise.
838 * sunrpc/rpc/auth.h: Likewise.
839 * sunrpc/rpc/auth_unix.h: Likewise.
840 * sunrpc/rpc/clnt.h: Likewise.
841 * sunrpc/rpc/des_crypt.h: Likewise.
842 * sunrpc/rpc/key_prot.h: Likewise.
843 * sunrpc/rpc/netdb.h: Likewise.
844 * sunrpc/rpc/pmap_clnt.h: Likewise.
845 * sunrpc/rpc/pmap_prot.h: Likewise.
846 * sunrpc/rpc/pmap_rmt.h: Likewise.
847 * sunrpc/rpc/rpc.h: Likewise.
848 * sunrpc/rpc/rpc_des.h: Likewise.
849 * sunrpc/rpc/rpc_msg.h: Likewise.
850 * sunrpc/rpc/svc.h: Likewise.
851 * sunrpc/rpc/svc_auth.h: Likewise.
852 * sunrpc/rpc/types.h: Likewise.
853 * sunrpc/rpc/xdr.h: Likewise.
854 * sunrpc/rpc_clntout.c: Likewise.
855 * sunrpc/rpc_cmsg.c: Likewise.
856 * sunrpc/rpc_common.c: Likewise.
857 * sunrpc/rpc_cout.c: Likewise.
858 * sunrpc/rpc_dtable.c: Likewise.
859 * sunrpc/rpc_hout.c: Likewise.
860 * sunrpc/rpc_main.c: Likewise.
861 * sunrpc/rpc_parse.c: Likewise.
862 * sunrpc/rpc_parse.h: Likewise.
863 * sunrpc/rpc_prot.c: Likewise.
864 * sunrpc/rpc_sample.c: Likewise.
865 * sunrpc/rpc_scan.c: Likewise.
866 * sunrpc/rpc_scan.h: Likewise.
867 * sunrpc/rpc_svcout.c: Likewise.
868 * sunrpc/rpc_tblout.c: Likewise.
869 * sunrpc/rpc_util.c: Likewise.
870 * sunrpc/rpc_util.h: Likewise.
871 * sunrpc/rpcinfo.c: Likewise.
872 * sunrpc/rpcsvc/bootparam_prot.x: Likewise.
873 * sunrpc/rpcsvc/key_prot.x: Likewise.
874 * sunrpc/rpcsvc/klm_prot.x: Likewise.
875 * sunrpc/rpcsvc/mount.x: Likewise.
876 * sunrpc/rpcsvc/nfs_prot.x: Likewise.
877 * sunrpc/rpcsvc/rex.x: Likewise.
878 * sunrpc/rpcsvc/rstat.x: Likewise.
879 * sunrpc/rpcsvc/rusers.x: Likewise.
880 * sunrpc/rpcsvc/sm_inter.x: Likewise.
881 * sunrpc/rpcsvc/spray.x: Likewise.
882 * sunrpc/rpcsvc/yppasswd.x: Likewise.
883 * sunrpc/rtime.c: Likewise.
884 * sunrpc/svc.c: Likewise.
885 * sunrpc/svc_auth.c: Likewise.
886 * sunrpc/svc_authux.c: Likewise.
887 * sunrpc/svc_raw.c: Likewise.
888 * sunrpc/svc_run.c: Likewise.
889 * sunrpc/svc_simple.c: Likewise.
890 * sunrpc/svc_tcp.c: Likewise.
891 * sunrpc/svc_udp.c: Likewise.
892 * sunrpc/svc_unix.c: Likewise.
893 * sunrpc/svcauth_des.c: Likewise.
894 * sunrpc/xcrypt.c: Likewise.
895 * sunrpc/xdr.c: Likewise.
896 * sunrpc/xdr_array.c: Likewise.
897 * sunrpc/xdr_float.c: Likewise.
898 * sunrpc/xdr_mem.c: Likewise.
899 * sunrpc/xdr_rec.c: Likewise.
900 * sunrpc/xdr_ref.c: Likewise.
901 * sunrpc/xdr_sizeof.c: Likewise.
902 * sunrpc/xdr_stdio.c: Likewise.
904 * po/da.po: Update from translation team.
906 2009-05-18 Kaz Kojima <kkojima@rr.iij4u.or.jp>
908 * sysdeps/sh/____longjmp_chk.S: New file.
909 * sysdeps/sh/sh3/__longjmp.S: If CHECK_SP is defined, use it.
910 * sysdeps/sh/sh4/__longjmp.S: Likewise.
912 2009-05-18 Jakub Jelinek <jakub@redhat.com>
913 Ulrich Drepper <drepper@redhat.com>
915 * nscd/nscd_helper.c (MINIMUM_HASHENTRY_SIZE): Define.
916 (__nscd_cache_search): Assume each entry in the
917 hash chain needs one hashentry and half of datahead. Use
918 MINIMUM_HASHENTRY_SIZE instead of sizeof(hashentry).
920 2009-05-16 Ulrich Drepper <drepper@redhat.com>
922 * posix/sys/wait.h: Fix typos. Pretty printing.
923 * stdlib/stdlib.h: Likewise. Correct comments.
926 * stdlib/stdlib.h (__WAIT_INT): Match the definition in <sys/wait.h>.
928 * nscd/nscd_helper.c (__nscd_cache_search): Fix exit condition in last
931 2009-05-15 Ulrich Drepper <drepper@redhat.com>
933 * nscd/nscd_helper.c (__nscd_cache_search): Introduce loop counter.
934 Use it if we absolutely cannot reach any more correct list elements
935 because that many do not fit into the currently mapped database.
937 2009-05-14 Jakub Jelinek <jakub@redhat.com>
939 * nscd/nscd_helper.c: Include stddef.h.
940 (__nscd_cache_search): Add datalen argument. Use atomic_forced_read
941 in a couple of places. Return NULL if trail is not less than
942 datasize, don't consider dataheads with length smaller than
943 offsetof (struct datahead, data) + datalen.
944 * nscd/nscd_client.h (__nscd_cache_search): Adjust prototype.
945 * nscd/nscd_gethst_r.c (nscd_gethst_r): Adjust callers.
946 * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
947 * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
948 * nscd/nscd_getai.c (__nscd_getai): Likewise.
949 * nscd/nscd_initgroups.c (__nscd_getgrouplist): Likewise.
950 * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
952 * sysdeps/unix/sysv/linux/i386/fallocate64.c (__fallocate64_l64):
954 (fallocate64): ... to this.
955 * sysdeps/unix/sysv/linux/fallocate64.c (__fallocate64_l64):
957 (fallocate64): ... to this.
958 * sysdeps/unix/sysv/linux/Versions (libc): Remove fallocate64.
959 * sysdeps/unix/sysv/linux/wordsize-64/Versions (libc): Add
960 fallocate64@@GLIBC_2.10.
961 * sysdeps/unix/sysv/linux/i386/Versions (libc): Add
962 fallocate64@@GLIBC_2.11.
963 * sysdeps/unix/sysv/linux/s390/s390-32/Versions (libc): Likewise.
964 * sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions (libc): Likewise.
965 * sysdeps/unix/sysv/linux/sparc/sparc32/Versions (libc): Likewise.
966 * sysdeps/unix/sysv/linux/sh/Versions (libc): Likewise.
968 * nscd/selinux.c (nscd_avc_destroy): Removed.
969 * nscd/selinux.h (nscd_avc_destroy): Likewise.
970 * nscd/nscd.c (termination_handler): Don't call
973 2009-05-12 Jakub Jelinek <jakub@redhat.com>
975 * include/atomic.h: Formatting.
976 (catomic_compare_and_exchange_val_acq): Don't define if already
977 defined by bits/atomic.h.
979 2009-05-15 Ulrich Drepper <drepper@redhat.com>
981 * math/libm-test.inc (expm1_test): Add test for range error.
983 * Versions.def: Add GLIBC_2.11 for libc.
984 * debug/Makefile (routines): Add longjmp_chk.
985 Add rules to build and run tst-longjmp_chk.
986 * debug/Versions: Export __longjmp_chk for GLIBC_2.11.
987 * debug/longjmp_chk.c: New file.
988 * debug/tst-longjmp_chk.c: New file.
989 * include/bits/setjmp2.: New file.
990 * include/stdio.h: Mark __fortify_fail as internal_function.
991 * setjmp/Makefile (headers): Add bits/setjmp2.h.
992 * setjmp/bits/setjmp2.h: New file.
993 * setjmp/longjmp.c: If __libc_siglongjmp is defined, don't define any
995 * setjmp/setjmp.h: Include <bits/setjmp2.h> if _FORTIFY_SOURCE is
997 * sysdeps/i386/____longjmp_chk.S: New file.
998 * sysdeps/x86_64/____longjmp_chk.S: New file.
999 * sysdeps/i386/__longjmp.S: If CHECK_ESP is defined, use it.
1000 * sysdeps/x86_64/__longjmp.S: Likewise.
1002 * version.h: Bump for 2.11 development.
1004 * elf/check-execstack.c: New file.
1005 * elf/Makefile: Add rules to build and run check-execstack.
1007 2009-05-10 Ulrich Drepper <drepper@redhat.com>
1009 * version.h (VERSION): Bump to 2.10.1.
1011 * nss/getXXbyYY_r.c: If NO_COMPAT_NEEDED is defined don't define any
1012 compatibility functions.
1013 * nss/getXXent_r.c: Likewise.
1014 * gshadow/getsgent_r.c: Define NO_COMPAT_NEEDED.
1015 * gshadow/getsgnam_r.c: Likewise.
1016 * gshadow/Version: Remove duplicate entries.
1018 * sysdeps/x86_64/cacheinfo.c (intel_02_cache_info): Add missing entries
1019 for recent processor.
1020 * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_cache_info):
1023 2009-05-09 Ulrich Drepper <drepper@redhat.com>
1025 * version.h (VERSION): Bump for 2.10 release.
1026 * include/features.h (__GLIBC_MINOR__): Bump to 10.
1028 * Makeconfig: Undo last change. Add asflags-cpu to ASFLAGS in the
1029 same place we add ASFLAGS-config.
1031 2009-05-05 Aurelien Jarno <aurelien@aurel32.net>
1034 * resolv/res_query.c (__libc_res_nquery): If one query returns NOTIMP
1035 or FORMERR and the other NOERROR, don't raise an error.
1037 2009-05-06 Ryan S. Arnold <rsa@us.ibm.com>
1040 * Makeconfig (+asflags): New variable based upon ASFLAG or
1042 (ASFLAGS): Add override to set ASFLAGS to +asflags.
1043 * config.make.in (asflags-cpu): Add variable based upon
1044 @libc_cv_cc_submachine@ to propagate -mcpu=CPU from --with-cpu=CPU to
1046 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/setcontext.S:
1047 Remove unneeded file now that the assembler emits _ARCH_PWR6 and
1048 recognizes power6 instruction set due to passing -mcpu=power6 from
1049 --with-cpu=power6 when compiling .S files.
1050 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/swapcontext.S:
1052 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/setcontext.S:
1054 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/swapcontext.S:
1057 2009-05-09 Jakub Jelinek <jakub@redhat.com>
1059 * string/stratcliff.c (do_test): Test for zero length
1060 STRNLEN, MEMCHR, STRNCPY, STPNCPY, MEMCPY, MEMPCPY and memccpy
1061 at the end of the page.
1063 2009-05-08 Ulrich Drepper <drepper@redhat.com>
1065 * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_AT_RANDOM.
1067 * sysdeps/x86_64/memchr.S: Handle invalid buffer pointers when
1070 * po/da.po: Update from translation team.
1072 2009-05-05 Jakub Jelinek <jakub@redhat.com>
1074 * io/sys/stat.h (fstatat64): Guard prototype with __USE_LARGEFILE64,
1075 guard __extern_inline wrapper with __USE_ATFILE instead of __USE_GNU.
1077 2009-05-05 Ulrich Drepper <drepper@redhat.com>
1079 * sysdeps/unix/sysv/linux/sys/personality.h: Add ADDR_COMPAT_LAYOUT
1080 and READ_IMPLIES_EXEC.
1082 2009-05-04 Ulrich Drepper <drepper@redhat.com>
1084 * po/da.po: Update from translation team.
1086 2009-04-29 Jakub Jelinek <jakub@redhat.com>
1088 * sysdeps/unix/sysv/linux/ifaddrs.c: Revert unintended 2008-08-12
1091 2009-04-27 Jakub Jelinek <jakub@redhat.com>
1093 * locale/programs/locarchive.c (create_archive): Add MAP_PRIVATE
1094 to MAP_ANON in PROT_NONE mmap64 call.
1095 (open_archive): Likewise.
1096 (file_data_available_p): Use mmap64 instead of mremap.
1097 (enlarge_archive): Likewise. Update head if ah->addr changed.
1098 Attempt to reserve address space after mmap64 region.
1100 2009-04-26 Ulrich Drepper <drepper@redhat.com>
1102 * sysdeps/ieee754/dbl-64/s_expm1.c: Set errno for overflow.
1103 * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
1104 * sysdeps/x86_64/fpu/s_expm1l.S: Likewise.
1106 * sysdeps/ieee754/k_standard.c (__kernel_standard): Pole errors in
1107 atanh should set ERANGE.
1110 * elf/dl-runtime.c (_dl_fixup): Use DL_FIXUP_VALUE_ADDR to access
1111 result of lookup to make call to implement STT_GNU_IFUNC.
1112 (_dl_profile_fixup): Likewise.
1113 Patch by H.J. Lu <hjl.tools@gmail.com>.
1115 * nscd/connections.c (send_ro_fd): Define temporary variable to avoid
1118 * sysdeps/unix/sysv/linux/dl-osinfo.h (dl_fatal): Remove inline
1121 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Don't define
1122 label if it is not used.
1124 * elf/dl-profile.c (_dl_start_profile): Define real-type variant
1125 of gmon_hist_hdr and gmon_hdr structures and use them.
1126 * elf/sprof.c: Likewise.
1128 * elf/dl-load.c (open_verify): Add temporary variable to avoid
1131 * nscd/nscd_helper.c (get_mapping): Avoid casts to avoid warnings.
1133 * sunrpc/clnt_raw.c (clntraw_private_s): Use union in definition
1136 * inet/rexec.c (rexec_af): Make sa2 a union to avoid warnings.
1137 * inet/rcmd.c (rcmd_af): Make from a union of the various needed types
1139 (iruserok_af): Use ss_family instead of casts.
1141 * gmon/gmon.c (write_hist): Define real-type variant of
1142 gmon_hist_hdr structure and use it.
1143 (write_gmon): Likewise for gmon_hdr.
1145 * sysdeps/unix/sysv/linux/readv.c: Avoid declaration of replacement
1146 function if we are not going to define it.
1147 * sysdeps/unix/sysv/linux/writev.c: Likewise.
1149 * inet/inet6_option.c (option_alloc): Add temporary variable to
1152 * libio/strfile.h (struct _IO_streambuf): Use correct type and
1153 name of VTable element.
1154 * libio/iovsprintf.c: Avoid casts to avoid warnings.
1155 * libio/iovsscanf.c: Likewise.
1156 * libio/vasprintf.c: Likewise.
1157 * libio/vsnprintf.c: Likewise.
1158 * stdio-common/isoc99_vsscanf.c: Likewise.
1159 * stdlib/strfmon_l.c: Likewise.
1160 * debug/vasprintf_chk.c: Likewise.
1161 * debug/vsnprintf_chk.c: Likewise.
1162 * debug/vsprintf_chk.c: Likewise.
1164 * nss/nsswitch.c (__nss_lookup_function): En/Decrypt cached
1167 2009-04-26 Jakub Jelinek <jakub@redhat.com>
1169 * sysdeps/ieee754/dbl-64/s_tan.c (tan): Fix -Wsequence-point warnings.
1171 2009-04-25 Ulrich Drepper <drepper@redhat.com>
1173 * posix/bits/posix1_lim.h: Cleanup namespace a bit.
1175 * sysdeps/i386/fpu/s_tan.S: Set errno for ±Inf.
1176 * sysdeps/i386/fpu/s_tanf.S: Likewise.
1177 * sysdeps/i386/fpu/s_tanl.S: Likewise.
1178 * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
1179 * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
1180 * sysdeps/x86_64/fpu/s_tanl.S: Likewise.
1181 * math/libm-test.inc: Add tests for errno after tan calls with
1184 * sysdeps/ieee754/k_standard.c (__kernel_standard): Use correct
1185 errno value vor pow(+-0,neg).
1186 * math/libm-test.inc (pow_test): Add tests for errno value for
1189 * math/w_fmod.c: Also handle x=±Inf as error.
1190 * math/w_fmodf.c: Likewise.
1191 * math/w_fmodl.c: Likewise.
1192 * math/libm-test.inc (fmod_test): Add tests for errno after calls for
1195 * sysdeps/i386/fpu/s_cos.S: Set errno for ±Inf.
1196 * sysdeps/i386/fpu/s_cosf.S: Likewise.
1197 * sysdeps/i386/fpu/s_cosl.S: Likewise.
1198 * sysdeps/i386/fpu/s_sin.S: Likewise.
1199 * sysdeps/i386/fpu/s_sinf.S: Likewise.
1200 * sysdeps/i386/fpu/s_sinl.S: Likewise.
1201 * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
1202 * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
1203 * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
1204 * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
1205 * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
1206 * sysdeps/x86_64/fpu/s_cosl.S: Likewise.
1207 * sysdeps/x86_64/fpu/s_sinl.S: Likewise.
1208 * math/libm-test.inc: Add tests for errno after sin/cos calls with
1211 * stdlib/strtod_l.c (round_and_return): We have to set errno to
1212 ERANGE for underflows.
1213 * stdlib/tst-strtod.c (tests): Two tests should set errno to ERANGE.
1215 * stdio-common/stdio_lim.h.in (L_cuserid): Not part of POSIX since
1218 * libio/tst-widetext.input: Remove surrogates.
1220 * include/features.h: _POSIX_C_SOURCE >= 200112L implies C99.
1222 * sysdeps/ieee754/k_standard.c (__kernel_standard): Pole errors
1223 for lgamma should set errno to ERANGE, not EDOM.
1224 * math/libm-test.inc (lgamma_test): Check errno for pole errors.
1226 2009-04-24 Ulrich Drepper <drepper@redhat.com>
1229 * iconv/gconv_simple.c (BODY for UTF-8 to INTERNAL): Don't accept
1232 * locale/programs/locarchive.c (enlarge_archive): Conserve address
1233 space when temporarily mapping the whole content of the old file.
1236 * misc/hsearch_r.c (hsearch_r): Add back ensurance that hval is
1239 2009-04-24 Jakub Jelinek <jakub@redhat.com>
1241 * iconvdata/sjis.c (BODY): Don't advance inptr before
1242 STANDARD_FROM_LOOP_ERR_HANDLER (2) for 2 byte invalid input.
1243 Use STANDARD_FROM_LOOP_ERR_HANDLER with 2 instead of 1 for
1246 2009-04-24 Ulrich Drepper <drepper@redhat.com>
1248 * locale/locarchive.h (struct locarhandle): Rename len field to
1249 mmaped and add new reserved field.
1250 * locale/programs/locarchive.c (RESERVE_MMAP_SIZE): Define.
1251 (create_archive): Reserve address space and then map file into it.
1252 (open_archive): Likewise.
1253 (file_data_available_p): New function.
1254 (compare_from_file): New function.
1255 (close_archive): Adjust to member name changes.
1256 (add_locale): Before comparing locale data, check it is mapped.
1257 Otherwise fall back to reading from the file.
1259 2009-04-23 H.J. Lu <hongjiu.lu@intel.com>
1261 * stdio-common/psiginfo.c: Include <errno.h>.
1263 2009-04-23 Ulrich Drepper <drepper@redhat.com>
1266 * stdlib/random_r.c (__srandom_r): Change type of word to int32_t
1267 to get consistency between 32 and 64 bit architectures.
1270 * sysdeps/unix/make-syscalls.sh: Add rule to create target
1271 directory for dummy syscall rules.
1272 Patch by Chris Steinbroner <hesh@pobox.com>.
1274 2009-04-23 Aurelien Jarno <aurelien@aurel32.net>
1277 * sysdeps/unix/sysv/linux/sys/mount.h: Define MNT_DETACH and
1280 2009-04-23 Ulrich Drepper <drepper@redhat.com>
1282 * sysdeps/unix/sysv/linux/preadv.c: The kernel API changed. Adjust.
1283 * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
1285 2009-04-23 Jakub Jelinek <jakub@redhat.com>
1287 * sysdeps/posix/pwritev.c (PWRITEV): Fix up comment. Copy
1288 data from vector to temporary buffer and call PWRITEV after it
1289 instead of vice versa.
1290 * sysdeps/posix/preadv.c: Fix up comment.
1291 * misc/preadv.c: Likewise.
1292 * misc/preadv64.c: Likewise.
1293 * misc/pwritev.c: Likewise.
1294 * misc/pwritev64.c: Likewise.
1295 * misc/sys/uio.h (preadv, pwritev, preadv64, pwritev64): Likewise.
1297 2009-04-23 Ulrich Drepper <drepper@redhat.com>
1299 * shadow/sgetspent_r.c (__sgetspent_r): Recognize too small buffers.
1301 * shadow/Makefile (tests): Add tst-shadow.
1302 * shadow/tst-shadow.c: New file.
1305 * gshadow/Makefile: New file.
1306 * gshadow/Versions: New file.
1307 * gshadow/fgetsgent.c: New file.
1308 * gshadow/fgetsgent_r.c: New file.
1309 * gshadow/getsgent.c: New file.
1310 * gshadow/getsgent_r.c: New file.
1311 * gshadow/getsgnam.c: New file.
1312 * gshadow/getsgnam_r.c: New file.
1313 * gshadow/gshadow.h: New file.
1314 * gshadow/putsgent.c: New file.
1315 * gshadow/sgetsgent.c: New file.
1316 * gshadow/sgetsgent_r.c: New file.
1317 * gshadow/tst-gshadow.c: New file.
1318 * include/gshadow.h: New file.
1319 * Makeconfig (all-subdirs): Add gshadow.
1320 * Makefile (installed-headers): Add gshadow/gshadow.h.
1321 * nss/Makefile (databases): Add sgrp.
1322 * nss/Versions: Add gshadow functions as private exports.
1323 * nss/nsswitch.conf: Add gshadow entry.
1324 * nss/sgrp-lookup.c: New file.
1325 * nss/nss_files/files-parse.c: Add STRING_LIST macro. Rewrite
1326 parse_list to handle STRING_LIST and TRAILING_LIST_PARSER.
1327 * nss/nss_files/files-sgrp.c: New file.
1328 * sysdeps/generic/paths.h: Add _PATH_GSHADOW.
1329 * sysdeps/unix/sysv/linux/paths.h: Likewise.
1331 2009-04-22 Ulrich Drepper <drepper@redhat.com>
1333 * stdio-common/printf.h: Add missing const to register_printf_modifier.
1334 * stdio-common/reg-modifier.c: Likewise.
1336 2009-04-22 Andrew Stubbs <ams@codesourcery.com>
1338 * sysdeps/sh/sh4/setjmp.S (__sigsetjmp): Adjust JB_SIZE when there
1341 2009-04-20 Ulrich Drepper <drepper@redhat.com>
1344 * sysdeps/unix/sysv/linux/sys/timex.h: Add definitions from kernel
1345 headers up to 2.6.30.
1347 * po/ca.po: Update from translation team.
1349 2009-04-19 Ulrich Drepper <drepper@redhat.com>
1352 * elf/dl-open.c (dl_open_worker): We cannot guarantee that we can load
1353 an object that uses static TLS if the TLS modid is higher than the
1354 reserve we always allocate. At least for multi-threaded code.
1356 2009-04-18 Ulrich Drepper <drepper@redhat.com>
1358 * stdlib/strfmon_l.c (__vstrfmon_l): Don't wrap when computing width.
1359 Numerically stable check for valid width.
1361 * locale/programs/locarchive.c (open_archive): Map the entire file
1362 and not just the administrative data.
1363 (add_locale): When we find a hash sum match compare the content
1366 * malloc/malloc.c (malloc_info): Output address space information.
1368 2009-04-17 Ulrich Drepper <drepper@redhat.com>
1370 * malloc/malloc.c (malloc_info): Also output system memory information.
1372 * sysdeps/unix/sysv/linux/kernel-features.h: All supported
1373 architectures have preadv/pwritev in 2.6.30.
1375 * sysdeps/posix/preadv.c: Reading of zero bytes is no error.
1376 * sysdeps/posix/readv.c: Likewise.
1377 Reported by Markus Armbruster <armbru@redhat.com>.
1379 * malloc/hooks.c (top_check): Force hook value into register.
1381 2009-04-16 Samuel Thibault <samuel.thibault@ens-lyon.org>
1383 * elf/rtld.c (dl_main): Really call _dl_sysdep_start_cleanup after all
1384 calls to _dl_relocate_object.
1386 2009-04-16 Ulrich Drepper <drepper@redhat.com>
1389 * malloc/malloc.c (force_reg): Define.
1390 (sYSMALLOc): Load hook variable into variable
1391 before test and force into register.
1392 (sYSTRIm): Likewise.
1393 (public_mALLOc): Force hook value into register.
1394 (public_fREe): Likewise.
1395 (public_rEALLOc): Likewise.
1396 (public_mEMALIGn): Likewise.
1397 (public_vALLOc): Likewise.
1398 (public_pVALLOc): Likewise.
1399 (public_cALLOc): Likewise.
1400 (__posix_memalign): Likewise.
1401 * malloc/arena.c (ptmalloc_init): Load hook variable into variable
1402 before test and force into register.
1403 * malloc/hooks.c (top_check): Likewise.
1404 (public_sET_STATe): Pretty printing.
1406 * resolv/res_send.c (send_dg): Don't just ignore the result we got
1407 in case we only receive one reply in single-request mode.
1409 2009-04-16 Jakub Jelinek <jakub@redhat.com>
1411 * elf/dl-open.c (_dl_open): Bump GL(dl_nns) to 1 if no libraries
1412 are dlopened in statically linked program even for __LM_ID_CALLER.
1414 2009-04-16 Ulrich Drepper <drepper@redhat.com>
1416 * resolv/res_send.c (send_dg): Don't switch into single-request
1417 mode if we already are in it.
1419 2009-04-15 Ulrich Drepper <drepper@redhat.com>
1421 * sysdeps/unix/sysv/linux/getsysstats.c (next_line): Make sure there
1422 are always at least 4 bytes in the returned line.
1424 2009-04-15 Jakub Jelinek <jakub@redhat.com>
1426 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Check
1427 __libc_use_alloca (8192), if the stack is too small use 512 bytes
1428 instead of 8K. Stop searching in /proc/stat after hitting first
1429 line not starting with cpu.
1430 (next_line): Truncate too long
1431 lines at buffer size * 3/4 instead of pretending there were line
1432 breaks inside of large lines.
1434 2009-04-14 Ulrich Drepper <drepper@redhat.com>
1436 * sysdeps/x86_64/mp_clz_tab.c: New file.
1438 2009-03-17 Ryan S. Arnold <rsa@us.ibm.com>
1439 Ulrich Drepper <drepper@redhat.com>
1441 * sysdeps/unix/sysv/linux/fallocate.c: Handle old kernel headers.
1442 * sysdeps/unix/sysv/linux/fallocate64.c: Likewise.
1443 * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c: Likewise.
1445 2009-03-25 Andrew Stubbs <ams@codesourcery.com>
1447 * sysdeps/sh/libc-tls.c: New file.
1449 * sysdeps/sh/bits/setjmp.h (__jmp_buf): Give name to structure type.
1451 2009-04-14 Roland McGrath <roland@redhat.com>
1453 * elf/elf.h: Add various missing ARM constants, to match binutils.
1455 2009-04-14 Ulrich Drepper <drepper@redhat.com>
1457 Optimizations from GMP.
1458 * sysdeps/x86_64/add_n.S: New file.
1459 * sysdeps/x86_64/addmul_1.S: New file.
1460 * sysdeps/x86_64/lshift.S: New file.
1461 * sysdeps/x86_64/mul_1.S: New file.
1462 * sysdeps/x86_64/rshift.S: New file.
1463 * sysdeps/x86_64/sub_n.S: New file.
1464 * sysdeps/x86_64/submul_1.S: New file.
1466 2009-04-14 Jakub Jelinek <jakub@redhat.com>
1468 * sysdeps/powerpc/powerpc32/elf/start.S: Ensure .data is non-empty.
1469 * sysdeps/powerpc/powerpc64/elf/start.S: Likewise.
1470 * sysdeps/sparc/sparc32/elf/start.S: Likewise.
1471 * sysdeps/sparc/sparc64/elf/start.S: Likewise.
1473 2009-04-14 Ulrich Drepper <drepper@redhat.com>
1475 * sysdeps/unix/sysv/linux/kernel-features.h: SH also has
1478 2009-04-13 Ulrich Drepper <drepper@redhat.com>
1480 * sysdeps/x86-64/strrchr.S: New file.
1482 2009-04-10 Ulrich Drepper <drepper@redhat.com>
1484 * stdio-common/printf.h (struct printf_info): Add user element.
1485 New types printf_arginfo_size_function, printf_va_arg_function.
1486 Declare register_printf_specifier, register_printf_modifier,
1487 register_printf_type.
1488 * stdio-common/printf-parse.h (struct printf_spec): Add size element.
1489 (union printf_arg): Add pa_user element.
1490 Adjust __printf_arginfo_table type.
1491 Add __printf_va_arg_table, __printf_modifier_table,
1492 __handle_registered_modifier_mb, and __handle_registered_modifier_wc
1494 * stdio-common/printf-parsemb.c: Recognize registered modifiers.
1495 If registered arginfo call failed try normal specifier.
1496 * stdio-common/printf-prs.c: Pass additional parameter to arginfo
1498 * stdio-common/Makefile (routines): Add reg-modifier and reg-type.
1499 * stdio-common/Versions: Export register_printf_modifier,
1500 register_printf_type, and register_printf_specifier for GLIBC_2.10.
1501 * stdio-common/reg-modifier.c: New file.
1502 * stdio-common/reg-type.c: New file.
1503 * stdio-common/reg-printf.c (__register_printf_specifier): New
1504 function. Mostly the old __register_printf_function function but
1505 uses locking and type of third parameter changed.
1506 (__register_printf_function): Implement using
1507 __register_printf_specifier.
1508 * stdio-common/vfprintf.c (vfprintf): Collect argument sizes in
1509 calls to arginfo functions. Allocate enough memory for user-defined
1510 types. Call new va_arg functions to get user-defined types.
1511 Try installed handlers even for existing format specifiers first.
1513 2009-04-09 Ulrich Drepper <drepper@redhat.com>
1515 * sysdeps/x86_64/rawmemchr.S: New file.
1517 * stdio-common/vfprintf.c (vfprintf): Slightly more compact code.
1518 Simplified code and possible copy problem fixed.
1520 * sysdeps/unix/sysv/linux/preadv.c: Avoid prototype for static
1521 function if it is not defined. Add some necessary casts.
1522 * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
1524 * sysdeps/unix/sysv/linux/kernel-features.h: SPARC and IA64 also
1525 have preadv/pwritev in 2.6.30.
1527 2009-04-08 Ulrich Drepper <drepper@redhat.com>
1529 * malloc/malloc.c (malloc_info): New function.
1530 * malloc/malloc.h: Declare it.
1531 * malloc/Versions: Export malloc_info for GLIBC_2.10.
1533 * sysdeps/unix/sysv/linux/preadv64.c (PREAD): Use __libc_pread64
1536 * malloc/malloc.c (_int_realloc): Add parameter with old block
1537 size. Remove duplicated test. Don't handle mmap'ed blocks here.
1539 * malloc/hooks.c (realloc_check): Adjust _int_realloc call.
1541 2009-04-07 Ulrich Drepper <drepper@redhat.com>
1543 * sysdeps/x86_64/strchrnul.S: New file.
1545 * crypt/Makefile (LDLIBS-crypt.so): Use this variable instead of
1546 depending libcrypt on -lfreebl3.
1548 * sysdeps/unix/sysv/linux/kernel-features.h: Power also has
1549 preadv/pwritev in 2.6.30.
1551 * resolv/nss_dns/dns-host.c (getanswer_r): Use strcasecmp
1552 instead of __strcasecmp.
1554 * string/stratcliff.c (do_test): Add memchr tests..
1555 * wcsmbs/wcsatcliff.c (MEMCHR): Define.
1556 * sysdeps/x86_64/memchr.S: Fix handling of end of buffer after
1557 first read quad word.
1559 2009-04-06 Ulrich Drepper <drepper@redhat.com>
1561 * string/strverscmp.c (__strverscmp): Fix last cleanups.
1562 * string/tst-svc.input: Add new test case.
1563 * string/tst-svc.expect: Adjust.
1564 * string/Makefile: Don't ignore tst-svc error.
1566 * sysdeps/x86_64/memchr.S: New file.
1568 * resolv/resolv.h (RES_SNGLKUP): Define.
1569 * resolv/res_init.c (res_setoptions): Recognize single-request option.
1570 * resolv/res_send.c (send_dg): If we sent two requests at once and
1571 only get one reply before timeout switch to mode where we send the
1572 second request only after the first answer has been received.
1574 2009-04-05 Ulrich Drepper <drepper@redhat.com>
1576 * sysdeps/x86_64/strlen.S: Optimize by using SSE2 instructions.
1577 * sysdeps/x86_64/strchr.S: Likewise.
1579 2009-04-03 Ulrich Drepper <drepper@redhat.com>
1581 * configure.in: We need to test for the compiler earlier.
1583 * misc/Makefile (routines): Add preadv, preadv64, pwritev, pwritev64.
1584 * misc/Versions: Export preadv, preadv64, pwritev, pwritev64 for
1586 * misc/sys/uio.h: Declare preadv, preadv64, pwritev, pwritev64.
1587 * sysdeps/unix/sysv/linux/kernel-features.h: Add entries for preadv
1589 * misc/preadv.c: New file.
1590 * misc/preadv64.c: New file.
1591 * misc/pwritev.c: New file.
1592 * misc/pwritev64.c: New file.
1593 * sysdeps/posx/preadv.c: New file.
1594 * sysdeps/posx/preadv64.c: New file.
1595 * sysdeps/posx/pwritev.c: New file.
1596 * sysdeps/posx/pwritev64.c: New file.
1597 * sysdeps/unix/sysv/linux/preadv.c: New file.
1598 * sysdeps/unix/sysv/linux/preadv64.c: New file.
1599 * sysdeps/unix/sysv/linux/pwritev.c: New file.
1600 * sysdeps/unix/sysv/linux/pwritev64.c: New file.
1601 * sysdeps/unix/sysv/linux/wordsize-64/preadv64.c: New file.
1602 * sysdeps/unix/sysv/linux/wordsize-64/pwritev64.c: New file.
1604 * sysdeps/unix/sysv/linux/readv.c (__libc_readv): Fix calling of
1606 * sysdeps/unix/sysv/linux/writev.c (__libc_writev): Likewise.
1608 * sysdeps/unix/sysv/linux/kernel-features.h: Define
1609 __ASSUME_COMPLETE_READV_WRITEV.
1610 * sysdeps/unix/sysv/linux/readv.c: No need for userlevel fallback
1611 with modern kernels.
1612 * sysdeps/unix/sysv/linux/writev.c: Likewise.
1614 * sysdeps/posix/readv.c: Since read is a cancellation point we have
1615 to free a possible malloced buffer in case of cancellation.
1616 * sysdeps/posix/writev.c: Likewise for write.
1618 2009-04-02 Ulrich Drepper <drepper@redhat.com>
1620 * sysdeps/unix/sysv/linux/bits/socket.h: Add missing protocol numbers.
1622 * configure.in: Recognize --enable-nss-crypt.
1623 * config.make.in: Add nss-crypt entry.
1624 * crypt/Makefile: If nss-crypt==yes, don't build md5.c, sha256.c,
1625 sha512.c. Don't run md5test, sha256test, sha512test. Pass -DUSE_NSS
1626 and include path for NSS directory to compiler for md5-crypt,
1627 sha256-crypt, sha512-crypt. Link libcrypt.so with -lfreebl3.
1628 * crypt/md5-crypt.c: If USE_NSS is defined, don't use local hash
1629 function implementation, use NSS. Introduce wrappers around the
1630 hash function calls. Little code size optimization.
1631 * crypt/sha256-crypt.c: Likewise.
1632 * crypt/sha512-crypt.c: Likewise.
1633 * scripts/check-local-headers.sh: Ignore nss3 directory.
1635 * configure.in: Rename pic_default to libc_cv_pic_default.
1636 * config.make.in: Likewise.
1638 2009-04-01 Roland McGrath <roland@redhat.com>
1640 * elf/elf.h (R_SPARC_GLOB_JMP): New macro.
1641 (R_SPARC_GOTDATA_HIX22, R_SPARC_GOTDATA_LOX10): New macros.
1642 (R_SPARC_GOTDATA_OP_HIX22, R_SPARC_GOTDATA_OP_LOX10): Likewise.
1643 (R_SPARC_GOTDATA_OP, R_SPARC_H34): Likewise.
1644 (R_SPARC_SIZE32, R_SPARC_SIZE64): Likewise.
1645 (R_SPARC_GNU_VTINHERIT, R_SPARC_GNU_VTENTRY, R_SPARC_REV32): Likewise.
1646 (R_SPARC_NUM): Update.
1647 From Dave Miller <davem@davemloft.net>.
1649 2009-04-01 Ulrich Drepper <drepper@redhat.com>
1651 * sysdeps/unix/sysv/linux/sys/eventfd.h (EFD_SEMAPHORE): Define.
1653 2009-03-31 Ulrich Drepper <drepper@redhat.com>
1655 * elf/dl-open.c: Keep track of used name spaces and only iterate over
1656 those which are used.
1657 * elf/dl-addr.c: Likewise.
1658 * elf/dl-caller.c: Likewise.
1659 * elf/dl-fini.c: Likewise.
1660 * elf/dl-iteratephdr.c: Likewise.
1661 * elf/dl-libc.c: Likewise.
1662 * elf/dl-load.c: Likewise.
1663 * elf/dl-support.c: Likewise.
1664 * elf/dl-sym.c: Likewise.
1665 * elf/rtld.c: Likewise.
1666 * sysdeps/generic/ldsodefs.h: Likewise.
1668 * elf/dl-load.c: Remove support for systems without MAP_ANON.
1669 * elf/dl-minimal.c: Likewise.
1670 * elf/dl-misc.c: Likewise.
1671 * elf/rtld.c: Likewise.
1672 * sysdeps/generic/ldsodefs.h: Likewise.
1674 2009-03-30 Ulrich Drepper <drepper@redhat.com>
1676 * elf/do-lookup.h (do_lookup_x): Minor optimization and cleanup.
1677 Avoid reuse of complex expression.
1679 * po/fr.po: Update from translation team.
1681 2009-03-16 Ulrich Drepper <drepper@redhat.com>
1683 * include/dirent.h: Yet more changes to match sort function type
1685 * sysdeps/unix/sysv/linux/i386/alphasort64.c: Likewise.
1686 * sysdeps/unix/sysv/linux/i386/olddirent.h: Likewise.
1687 * sysdeps/unix/sysv/linux/i386/versionsort64.c: Likewise.
1689 2009-03-16 Thomas Schwinge <tschwinge@gnu.org>
1691 * dirent/scandir64.c (scandir64): Adjust declaration to type change.
1693 2009-03-16 Ulrich Drepper <drepper@redhat.com>
1695 * nscd/connections.c (restart): Try to preserve the process name
1696 by reading the /proc/self/exe symlink and using the return name.
1697 Patch by Jeff Bastian <jbastian@redhat.com>.
1699 2009-03-15 Ulrich Drepper <drepper@redhat.com>
1702 * elf/dl-load.c (_dl_map_object_from_fd): Only call audit hooks
1703 if we are not loading a new audit library.
1704 * elf/dl-reloc (_dl_relocate_object): Third parameter is now a bitmask.
1705 Only use profiling trampoline for auditing if we are not relocating
1707 * elf/dl-open.c (dl_open_worker): Adjust _dl_relocate_object call.
1708 * elf/rtld.c: Likewise.
1709 * sysdeps/generic/ldsodefs.h: Adjust _dl_relocate_object prototype.
1711 * elf/rtld.c (dl_main): Extend help message for --audit option.
1714 * dirent/dirent.h: Adjust prototypes of scandir, scandir64, alphasort,
1715 alphasort64, versionsort, and versionsort64 to POSIX 2008.
1716 * dirent/alphasort.c: Adjust implementation to type change.
1717 * dirent/alphasort64.c: Likewise.
1718 * dirent/scandir.c: Likewise.
1719 * dirent/versionsort.c: Likewise.
1720 * dirent/versionsort64.c: Likewise.
1721 * sysdeps/wordsize-64/alphasort.c: Add hack to hide alphasort64
1723 * sysdeps/wordsize-64/versionsort.c: Add hack to hide versionsort64
1727 * inet/inet6_rth.c (inet6_rth_reverse): Compute number of segments
1728 correctly. Set segleft member in output as required.
1729 Patch partly by Yang Hongyang <yanghy@cn.fujitsu.com>.
1730 * inet/tst-inet6_rth.c (do_test): Add tests for inet6_rth_reverse.
1733 * inet/inet6_rth.c (inet6_rth_add): Add some error checking.
1734 Patch mostly by Yang Hongyang <yanghy@cn.fujitsu.com>.
1735 * inet/Makefile (tests): Add tst-inet6_rth.
1736 * inet/tst-inet6_rth.c: New file.
1739 * string/strlen.c (strlen): Fix omission in the expression to test
1742 2009-03-14 Ulrich Drepper <drepper@redhat.com>
1744 * crypt/sha256test.c (main): Perform 100,000 'a' test in a second way.
1746 * elf/dl-runtime.c (reloc_offset): Define.
1747 (reloc_index): Define.
1748 (_dl_fixup): Rename reloc_offset parameter to reloc_arg.
1749 (_dl_fixup_profile): Likewise. Use reloc_index instead of
1750 computing index from reloc_offset.
1751 (_dl_call_pltexit): Likewise.
1752 * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_resolve): Just pass
1753 the relocation index to _dl_fixup.
1754 (_dl_runtime_profile): Likewise for _dl_fixup_profile and
1756 * sysdeps/x86_64/dl-runtime.c: New file.
1759 * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix
1760 alignment of La_x86_64_regs. Store xmm parameters.
1761 Patch mostly by Jiri Olsa <olsajiri@gmail.com>.
1764 * string/strverscmp.c (__strverscmp): Fix case of different digits
1765 in fractional part of string.
1766 Patch by Jingyu Liu <jyliu@fortinet.com>.
1767 * string/Makefile (tests): Add tst-svc2.
1768 * string/tst-svc2.c: New file.
1770 * string/strverscmp.c (__strverscmp): Optimize size of tables.
1772 * locale/iso-639.def: Add Min Nan.
1774 2009-03-11 Carlos Eduardo Seo <cseo@linux.vnet.ibm.com>
1777 * elf/dl-sysdep.c (_dl_show_auxv): Add support for AT_BASE_PLATFORM.
1779 2009-03-14 Ulrich Drepper <drepper@redhat.com>
1781 * elf/dl-sysdep.c (auxvars): Compress data structure.
1783 * sysdeps/i386/dl-machine.h (elf_machine_rel): Implement
1784 STT_GNU_IFUNC handling.
1785 (elf_machine_rela): Likewise.
1787 2009-03-13 Ulrich Drepper <drepper@redhat.com>
1789 * config.h.in (USE_MULTIARCH): Define.
1790 * configure.in: Handle --enable-multi-arch.
1791 * elf/dl-runtime.c (_dl_fixup): Handle STT_GNU_IFUNC.
1792 (_dl_fixup_profile): Likewise.
1793 * elf/do-lookup.c (dl_lookup_x): Likewise.
1794 * sysdeps/x86_64/dl-machine.h: Handle STT_GNU_IFUNC.
1795 * elf/elf.h (STT_GNU_IFUNC): Define.
1796 * include/libc-symbols.h (libc_ifunc): Define.
1797 * sysdeps/x86_64/cacheinfo.c: If USE_MULTIARCH is defined, use the
1798 framework in init-arch.h to get CPUID values.
1799 * sysdeps/x86_64/multiarch/Makefile: New file.
1800 * sysdeps/x86_64/multiarch/init-arch.c: New file.
1801 * sysdeps/x86_64/multiarch/init-arch.h: New file.
1802 * sysdeps/x86_64/multiarch/sched_cpucount.c: New file.
1804 * config.make.in (experimental-malloc): Define.
1805 * configure.in: Handle --enable-experimental-malloc.
1806 * malloc/Makefile: Handle experimental-malloc flag.
1807 * malloc/malloc.c: Implement PER_THREAD and ATOMIC_FASTBINS features.
1808 * malloc/arena.c: Likewise.
1809 * malloc/hooks.c: Likewise.
1810 * malloc/malloc.h: Define M_ARENA_TEST and M_ARENA_MAX.
1812 2009-03-11 Ulrich Drepper <drepper@redhat.com>
1814 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Add branch
1815 prediction. A few size optimizations.
1817 2009-03-10 Ulrich Drepper <drepper@redhat.com>
1819 * time/tzset.c: Optimize a bit for size.
1821 2009-03-10 Jakub Jelinek <jakub@redhat.com>
1823 * include/stdio.h (fmemopen): Add libc_hidden_proto.
1824 * libio/fmemopen.c (fmemopen): Add libc_hidden_def.
1826 * elf/sprof.c: Avoid warning about multi-line comment.
1828 2009-03-10 Ulrich Drepper <drepper@redhat.com>
1830 * time/tzset.c (__tzset_parse_tz): Use correct string when parsing
1832 * time/tst-posixtz.c: Add tests for quoted timezone names.
1834 2009-03-10 Jakub Jelinek <jakub@redhat.com>
1836 * posix/unistd.h (_POSIX_VERSION, _POSIX2_VERSION, _POSIX2_C_BIND,
1837 _POSIX2_C_DEV, _POSIX2_SW_DEV, _POSIX2_LOCALEDEF): Define to
1838 200809L instead of 200112L.
1839 (_XOPEN_VERSION): For __USE_XOPEN2K8 define to 700.
1840 * posix/tst-sysconf.c (STDVER): Define to 200809L instead of 200112L.
1842 * stdlib/quick_exit.c (quick_exit): Pass &__quick_exit_funcs
1843 instead of __quick_exit_funcs to __run_exit_handlers.
1844 * stdlib/at_quick_exit.c (at_quick_exit): Add attribute_hidden.
1845 * stdlib/exit.h (__run_exit_handlers): Add noreturn attribute.
1846 (__cxa_at_quick_exit): Remove attribute_hidden.
1847 * stdlib/exit.c (exit): Pass &__exit_funcs instead of __exit_funcs
1848 to __run_exit_handlers.
1849 * stdlib/cxa_at_quick_exit.c (__cxa_at_quick_exit): Remove
1852 2009-03-10 Ulrich Drepper <drepper@redhat.com>
1854 * po/id.po: Update from translation team.
1856 2009-02-18 Jakub Jelinek <jakub@redhat.com>
1858 * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S: Use
1859 .machine push; .machine "power6" and .machine pop around mtfsf
1860 insns outside of _ARCH_PWR6 define.
1861 * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S: Likewise.
1862 * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S:
1864 * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S:
1866 * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c (_SET_DI_FPSCR): Likewise.
1867 * sysdeps/powerpc/fpu/fenv_libc.h (fesetenv_register,
1868 relax_fenv_state): Likewise.
1870 2009-03-08 Ulrich Drepper <drepper@redhat.com>
1872 * stdlib/Makefile (routines): Add quick_exit, at_quick_exit, and
1874 (static-only-routines): Add at_quick_exit.
1875 * stdlib/Versions: Export quick_exit and __cxa_at_quick_exit for
1877 * stdlib/quick_exit.c: New file.
1878 * stdlib/at_quick_exit.c: New file.
1879 * stdlib/cxa_at_quick_exit.c: New file.
1880 * stdlib/cxa_atexit.c (__cxa_atexit): Move body to new function. Call
1882 (__internal_atexit): New function.
1883 (__new_exitfn): Now takes parameter to point to the list to use.
1884 * stdlib/cxa_finalize.c: Remove quick_exit handlers, don't call them.
1885 * stdlib/exit.c (__run_exit_handlers): New function. Split from...
1886 (exit): ...here. Just call __run_exit_handlers appropriately.
1887 * stdlib/exit.h: Declare __quick_exit_funcs, __run_exit_handlers,
1888 __internal_atexit, __cxa_at_quick_exit. Adjust __new_exitfn.
1889 * stdlib/on_exit.c: Adjust call to __new_exitfn.
1890 * stdlib/stdlib.h: Declare at_quick_exit and quick_exit.
1892 * po/id.po: Update from translation team.
1894 2009-03-07 Ulrich Drepper <drepper@redhat.com>
1896 * po/ru.po: Update from translation team.
1898 2009-03-04 Ulrich Drepper <drepper@redhat.com>
1900 * po/nl.po: Update from translation team.
1902 2009-03-03 Ulrich Drepper <drepper@redhat.com>
1904 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Declare fallocate{,64}.
1905 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
1906 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
1907 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
1908 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
1909 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
1910 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
1912 * po/pl.po: Update from translation team.
1914 2009-03-02 Ulrich Drepper <drepper@redhat.com>
1917 * sysdeps/unix/sysv/linux/fallocate.c: New file.
1918 * sysdeps/unix/sysv/linux/fallocate64.c: New file.
1919 * sysdeps/unix/sysv/linux/wordsize-64/fallocate64.c: New file.
1920 * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c: New file.
1921 * sysdeps/unix/sysv/linux/i386/fallocate64.c: New file.
1922 * sysdeps/unix/sysv/linux/i386/fallocate.c: New file.
1923 * sysdeps/unix/sysv/linux/Versions: Export fallocate and fallocate64
1925 * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
1926 Add fallocate and fallocate64.
1928 * io/fcntl.h: Pretty printing.
1930 2009-03-02 Richard Guenther <rguenther@suse.de>
1932 * misc/sys/cdefs.h (__extern_always_inline): Add __artificial__
1933 attribute also for non-C99 inline semantics variant.
1935 2009-02-12 Carlos Eduardo Seo <cseo@linux.vnet.ibm.com>
1937 * sysdeps/powerpc/powerpc32/power7/fpu/Implies: New file.
1938 * sysdeps/powerpc/powerpc32/power7/Implies: Likewise.
1939 * sysdeps/powerpc/powerpc64/power7/fpu/Implies: Likewise.
1940 * sysdeps/powerpc/powerpc64/power7/Implies: Likewise.
1941 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/fpu/Implies:
1943 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/fpu/Implies:
1946 2009-03-02 Ulrich Drepper <drepper@redhat.com>
1948 * po/cs.po: Update from translation team.
1950 2009-02-28 Ulrich Drepper <drepper@redhat.com>
1952 * po/bg.po: Update from translation team.
1953 * po/sv.po: Likewise.
1954 * po/fi.po: Likewise.
1955 * po/vi.po: Likewise.
1957 2009-02-27 Roland McGrath <roland@redhat.com>
1959 * Makeconfig (%.v.i): Depend on Makeconfig.
1960 Exclude % lines from initial #-comment removal.
1962 2009-02-27 Ulrich Drepper <drepper@redhat.com>
1964 * po/ko.po: Update from translation team.
1966 2009-02-26 Roland McGrath <roland@redhat.com>
1968 * shadow/lckpwdf.c (__lckpwdf): Move FLAGS inside block using it,
1969 avoids unused warning.
1971 2009-02-26 Andrew Stubbs <ams@codesourcery.com>
1972 SUGIOKA Toshinobu <sugioka@itonet.co.jp>
1974 * sysdeps/unix/sysv/linux/sh/sys/procfs.h: Don't include signal.h,
1975 sys/ucontext.h and asm/elf.h. Include sys/user.h.
1976 * sysdeps/unix/sysv/linux/sh/sys/user.h: Don't include features.h
1977 and asm/user.h. Include asm/ptrace.h.
1978 (PTRACE_GETREGS, PTRACE_SETREGS, PTRACE_GETFPREGS,
1979 PTRACE_SETFPREGS, PTRACE_GETFDPIC, PTRACE_GETFDPIC_EXEC,
1980 PTRACE_GETFDPIC_INTERP, PTRACE_GETDSPREGS, PTRACE_SETDSPREGS):
1982 (start_thread): Don't undefine.
1983 (elf_greg_t, ELF_NGREG, elf_fpregset_t, user_fpu_struct, user):
1986 2009-02-26 Ulrich Drepper <drepper@redhat.com>
1988 * wctype/wctype.h: The *_l functions are in POSIX 2008.
1989 * wcsmbs/wchar.h: mbsnrtowcs, open_wmemstream, wcpcpy, wcpncpy,
1990 wcscasecmp, wcsdup, wcsncasecmp, wcsnlen, wcsnrtombs,
1991 wcscasecmp_l, wcsncasecmp_l, wcscoll_l, and wcsxfrm_l.
1992 * sysdeps/mach/hurd/bits/posix_opt.h: Reset value of macros from
1994 * sysdeps/unix/sysv/linux/bits/posix_opt.h: Likewise.
1995 * posix/getconf.c (vars): Add _SC_THREAD_ROBUST_PRIO_INHERIT and
1996 _SC_THREAD_ROBUST_PRIO_PROTECT entries.
1997 * bits/confname.h: Add _SC_THREAD_ROBUST_PRIO_INHERIT and
1998 _SC_THREAD_ROBUST_PRIO_PROTECT.
1999 * posix/unistd.h: fexecve is in POSIX 2008.
2000 * time/time.h: strftime_l is in POSIX 2008.
2001 * io/sys/stat.h: futimens is in POSIX 2008.
2002 * string/strings.h: strcasecmp_l and strncasecmp_l are in POSIX 2008.
2003 * string/string.h: stpcpy, stpncpy, strndup, strnlen, strsignal,
2004 strcoll_l, strerror_l, and strxfrm_l are in POSIX 2008.
2005 * stdlib/stdlib.h: mkdtemp is in POSIX 2008.
2006 * libio/stdio.h: dprintf, fmemopen, getdelim, getline,
2007 open_memstream, and vdprintf are in POSIX 2008.
2009 2009-02-25 Ulrich Drepper <drepper@redhat.com>
2011 * include/features.h: Define macros for XPG7/POSIX 2008.
2012 * ctype/ctype.h: The *_l functions are in POSIX 2008.
2013 * dirent/dirent.h: alphasort, dirfd, scandir, and fdopendir are in
2015 * locale/langinfo.h: nl_langinfo_l is in POSIX 2008.
2016 * locale/xlocale.h: Define locale_t type.
2017 * locale/locale.h: duplocale, freelocale, newlocale, uselocale are
2018 in POSIX 2008. Don't define locale_t here.
2019 * stdlib/monetary.h: strfmon_l is in POSIX 2008.
2020 * sysdeps/unix/sysv/linux/bits/stat.h: Protect UTIME_NOW and
2021 UTIME_OMIT only with __USE_ATFILE.
2022 * signal/signal.h: Declare psignal and psiginfo for POSIX 2008.
2023 * stdio-common/psiginfo.c: New file.
2024 * stdio-common/psiginfo-data.h: New file.
2025 * stdio-common/psiginfo-define.h: New file.
2026 * stdio-common/Makefile (routines): Add psiginfo.
2027 * stdio-common/Versions: Export psiginfo for GLIBC_2.10.
2028 * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Likewise.
2029 * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Likewise.
2030 * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
2031 * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
2032 * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
2033 * io/sys/stat.h: Move mknodat definition into same conditional as
2035 * time/sys/time.h: futimesat is not among the functions accepted
2036 into the POSIX standard.
2038 * include/features.h: If no feature selection given and we select
2039 by default a POSIX mode, also define __USE_POSIX_IMPLICITLY.
2040 * posix/Versions: Export __posix_getopt.
2041 * posix/getopt.c (_getopt_initialize): Take additional parameter.
2042 Use it to alternatively initialize __posixly_correct.
2043 (_getopt_internal_r): Take addition parameter. Pass on to
2045 (_getopt_internal): Take addition parameter. Pass on to
2047 (getopt): Pass additional zero to _getopt_internal.
2048 (__posix_getopt): New function.
2049 * posix/getopt.h: Add redirection for getopt.
2050 * posix/getopt1.c (getopt_long): Pass additional zero to
2052 (getopt_long_only): Likewise.
2053 (_getopt_long_r): Pass additional zero to _getopt_internal_r.
2054 (_getopt_long_only_r): Likewise.
2055 * posix/getopt_int.h: Adjust declarations of _getopt_internal and
2058 2009-02-24 Ulrich Drepper <drepper@redhat.com>
2060 * bits/confname.h: Define _SC_TRACE_EVENT_NAME_MAX, _SC_TRACE_NAME_MAX,
2061 _SC_TRACE_SYS_MAX, _SC_TRACE_USER_EVENT_MAX, _SC_XOPEN_STREAMS.
2062 * sysdeps/posix/sysconf.c (__sysconf): Handle
2063 _SC_TRACE_EVENT_NAME_MAX, _SC_TRACE_NAME_MAX, _SC_TRACE_SYS_MAX,
2064 _SC_TRACE_USER_EVENT_MAX, _SC_XOPEN_STREAMS.
2066 2009-02-24 Roland McGrath <roland@redhat.com>
2069 * README.template: Reworded not to use substituted version number.
2071 * README: ... here (no longer generated).
2072 * Makefile (README): Target removed.
2074 2009-02-24 Ulrich Drepper <drepper@redhat.com>
2076 * sysdeps/unix/sysv/linux/sysconf.c (__sysconf):
2077 /proc/sys/kernel/rtsig_max doesn't exist anymore, use getrlimit
2080 * io/sys/stat.h: The lstat functions have been mandatory since 2001.
2082 * time/tzset.c (tzset_internal): Correct parsing of TZ envvar.
2084 2009-02-22 Ulrich Drepper <drepper@redhat.com>
2086 * po/bg.po: Update from translation team.
2088 2009-02-16 Jakub Jelinek <jakub@redhat.com>
2090 * stdlib/monetary.h: Uglify function parameter names.
2091 * sunrpc/rpc/pmap_clnt.h: Likewise.
2092 * sunrpc/rpc/svc.h: Likewise.
2093 * sunrpc/rpc/xdr.h: Likewise.
2094 * sunrpc/rpc/clnt.h: Likewise.
2095 * resolv/netdb.h: Likewise.
2096 * resolv/arpa/nameser.h: Likewise.
2097 * resolv/resolv.h: Likewise.
2098 * argp/argp.h: Likewise.
2099 * locale/langinfo.h: Likewise.
2100 * io/sys/stat.h: Likewise.
2101 * posix/spawn.h: Likewise.
2102 * nis/rpcsvc/nislib.h: Likewise.
2103 * malloc/obstack.h: Likewise.
2104 * sysdeps/ia64/bits/link.h: Likewise.
2105 * sysdeps/i386/bits/link.h: Likewise.
2106 * sysdeps/s390/bits/link.h: Likewise.
2107 * sysdeps/powerpc/bits/link.h: Likewise.
2108 * sysdeps/x86_64/bits/link.h: Likewise.
2109 * sysdeps/sparc/bits/link.h: Likewise.
2110 * sysdeps/sh/bits/link.h: Likewise.
2111 * sysdeps/unix/sysv/linux/i386/sys/io.h: Likewise.
2112 * sysdeps/unix/sysv/linux/x86_64/sys/io.h: Likewise.
2113 * sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: Likewise.
2114 * sysdeps/unix/sysv/linux/sys/eventfd.h: Likewise.
2116 2008-12-01 Fredrik Unger <fred@tree.se>
2118 * soft-fp/double.h [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_SEMIRAW_D,
2119 FP_UNPACK_SEMIRAW_DP): Use _FP_UNPACK_RAW_1 instead of
2120 _FP_UNPACK_RAW_2, fix up first argument.
2122 2009-02-15 Ulrich Drepper <drepper@redhat.com>
2124 * sysdeps/unix/sysv/linux/getsysstats.c (next_line): New function.
2125 (GET_NPROCS_PARSER): Change parameters and use next_line.
2126 (__get_nprocs): Rewrite to not use stdio routines.
2127 * sysdeps/unix/sysv/linux/sparc/getsysstats.c (GET_NPROCS_PARSER):
2128 Change parameters and use next_line.
2130 2009-02-13 Ulrich Drepper <drepper@redhat.com>
2133 * nscd/nscd.h: Remove definitions and declarations for mem_in_flight.
2134 Change mempool_alloc prototype.
2135 * nscd/mem.c (gc): Don't handle mem_in_flight.
2136 (mempool_alloc): Third parameter now only indicates whether this is the
2137 first call (to allocate data) or not. If it is, get db rdlock.
2138 Release it on error. Don't handle mem_in_flight.
2139 * nscd/aicache.c (addhstaiX): Mark he parameter as const.
2140 Adjust third parameter of mempool_alloc calls.
2141 Nothing to do here in case mempool_alloc fails.
2142 Avoid local variable shadowing parameter. No need to get db rdlock
2143 before calling cache_add.
2144 * nscd/cache.c (cache_add): Adjust call to mempool_alloc. There is
2145 no mem_in_flight array anymore.
2146 * nscd/connections.c: Remove definition and handling of mem_in_flight.
2147 * nscd/grpcache.c (cache_addgr): Adjust third parameter of
2148 mempool_alloc calls. Mark he parameter as const. Nothing to do here
2149 in case mempool_alloc fails. No need to get db rdlock before calling
2151 * nscd/hstcache.c (cache_addhst): Likewise.
2152 * nscd/initgrcache.c (addinitgroupsX): Likewise.
2153 * nscd/servicescache.c (cache_addserv): Likewise.
2154 * nscd/pwdcache.c (cache_addpw): Likewise. Remove some debugging code.
2156 2009-02-11 Ulrich Drepper <drepper@redhat.com>
2158 * po/lt.po: Update from translation team.
2160 2009-02-10 Ulrich Drepper <drepper@redhat.com>
2162 * elf/dl-load.c (open_verify): In case VALID_ELF_HEADER is
2163 defined, allow additional data to be added using the optional
2164 MORE_ELF_HEADER_DATA macro.
2165 * sysdeps/unix/sysv/linux/ldsodefs.h (VALID_ELF_HEADER,
2166 VALID_ELF_OSABI, VALID_ELF_ABIVERSION, MORE_ELF_HEADER_DATA): Define.
2168 2009-02-08 Ulrich Drepper <drepper@redhat.com>
2170 * include/atomic.h: Define catomic_and if not already defined.
2171 * sysdeps/x86_64/bits/atomic.h: Define catomic_and.
2172 * sysdeps/i386/i486/bits/atomic.h: Likewise.
2174 2009-02-07 Ulrich Drepper <drepper@redhat.com>
2176 * malloc/malloc.c (_int_free): Second argument is now mchunkptr.
2178 (_int_realloc): Likewise. Third argument is now padded size
2179 All _int_* functions are now static.
2181 * malloc/hooks.c: Change all callers to _int_free and _int_realloc.
2182 * malloc/arena.c: Likewise.
2183 * include/malloc.h: Remove now unnecessary declarations of the _int_*
2186 * sunrpc/rpc_common.c: We cannot move _null_auth into .rodata that
2189 * malloc/malloc.c: Add branch prediction for use of the hooks.
2191 * grp/compat-initgroups.c [NOT_IN_libc] (__libc_use_alloca): Define.
2193 2009-02-06 Ulrich Drepper <drepper@redhat.com>
2196 * bits/confname.h: Add SUSv7 macros for getconf environments.
2197 * bits/environments.h: Likewise.
2198 * sysdeps/unix/sysv/linux/i386/bits/environments.h: Likewise.
2199 * sysdeps/unix/sysv/linux/powerpc/bits/environments.h: Likewise.
2200 * sysdeps/unix/sysv/linux/s390/bits/environments.h: Likewise.
2201 * sysdeps/unix/sysv/linux/sparc/bits/environments.h: Likewise.
2202 * sysdeps/unix/sysv/linux/x86_64/bits/environments.h: Likewise.
2203 * posix/confstr.c: Handle SUSv5 and SUSv7 environments.
2204 * posix/getconf.c: Likewise.
2205 * posix/sysconf.c: Likewise.
2206 * sysdeps/posix/sysconf.c: Likewise.
2207 * posix/Makefile (getconf.speclist): Also collect SUSv5 and SUSv7
2210 2009-01-16 Petr Baudis <pasky@suse.cz>
2213 * resolv/res_libc.c (__res_maybe_init): Call __res_vinit()
2214 even if we currently have zero nscount.
2216 2009-02-06 Ulrich Drepper <drepper@redhat.com>
2219 * grp/compat-initgroups.c (compat_call): Switch to use malloc when
2220 the input line is too long.
2222 * po/Makefile (libc.pot): Add f_print as function taking c-format
2225 * debug/xtrace.sh: Unify translatable messages.
2226 * elf/ldd.bash.in: Likewise.
2227 * elf/sprof.c: Likewise.
2228 * locale/programs/locale.c: Likewise.
2229 * malloc/memusage.sh: Likewise.
2230 * nss/getent.c: Likewise.
2232 2009-02-06 Joseph Myers <joseph@codesourcery.com>
2234 * debug/pcprofiledump.c (print_version,
2235 argp_program_version_hook): New function.
2236 * elf/ldconfig.c (more_help): New function.
2238 * elf/sln.c (usage): New function.
2239 (main): Support --help and --version.
2240 * malloc/memusagestat.c (print_version): New function.
2241 (argp_program_version_hook): New variable.
2242 * nscd/nscd.c (more_help): New function.
2244 * posix/getconf.c (main): Send --version output to stdout.
2246 * sunrpc/rpc_main.c (usage, options_usage): Take STREAM and STATUS
2247 arguments. All callers changed.
2248 (print_version): New function.
2249 (parseargs): Support --help and --version.
2250 * sunrpc/rpcinfo.c (usage): Take STREAM argument. All callers
2252 (print_version): New function.
2253 (main): Use getopt_long. Support --help and --version.
2254 * sysdeps/unix/sysv/linux/lddlibc4.c (main): Support --help and
2257 2009-02-06 Ulrich Drepper <drepper@redhat.com>
2259 * malloc/memusage.c (DEFAULT_BUFFER_SIZE): Change to 32768.
2260 (update_data): Fix handling of wrapping back
2261 to the beginning of the buffer.
2264 * stdio-common/psignal.c (psignal): Fix test for empty string.
2266 2009-02-05 Ulrich Drepper <drepper@redhat.com>
2268 * include/rpc/auth.h: Use libc_hidden_proto for _null_auth.
2269 * sunrpc/rpc_common.c: Add libc_hidden_def for _null_auth. Also
2270 move _null_auth to .rodata.
2272 * time/tzset.c (__tzset_parse_tz): DST offset must also allow hour
2275 * intl/dcigettext.c (DCIGETTEXT): Avoid some code duplication.
2277 * sysdeps/unix/opendir.c (__alloc_dir): We have a lot more memory
2278 today than when the original code was written. Use larger
2279 buffers. This also makes it unnecessary to have stat information,
2280 if this causes extra efforts.
2281 (__opendir): In case O_DIRECTORY works, don't call fstat just for
2284 2009-02-03 Andrew Stubbs <ams@codesourcery.com>
2286 * sysdeps/sh/sh4/dl-trampoline.S: Only set HAVE_FPU if __SH_FPU_ANY__
2288 * sysdeps/sh/sh4/setjmp.S: Support SH4-NOFPU.
2289 * sysdeps/sh/sh4/__longjmp.S: Likewise.
2290 * sysdeps/unix/sysv/linux/sh/sh4/getcontext.S: Likewise.
2291 * sysdeps/unix/sysv/linux/sh/sh4/setcontext.S: Likewise.
2292 * sysdeps/unix/sysv/linux/sh/sh4/swapcontext.S: Likewise.
2293 * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Likewise.
2295 2009-02-04 Ulrich Drepper <drepper@redhat.com>
2297 * po/ru.po: Update from translation team.
2299 2008-11-17 Nathan Sidwell <nathan@codesourcery.com>
2301 * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (struct sigevent):
2302 Add _tid slot to maintain consistency with kernel.
2304 2009-02-04 Ulrich Drepper <drepper@redhat.com>
2306 * libio/wfileops.c (_IO_wfile_underflow): Fix handling of
2307 incomplete characters at end of input buffer.
2308 * libio/Makefile (tests): Add tst-fgetwc.
2309 * libio/tst-fgetwc.c: New file.
2310 * libio/tst-fgetwc.input: New file.
2312 2009-02-02 Andrew Stubbs <ams@codesourcery.com>
2314 * sysdeps/unix/sysv/linux/sh/Makefile (libm.so-no-z-defs): Define.
2316 2009-02-02 Ulrich Drepper <drepper@redhat.com>
2319 * iconv/gconv_trans.c (__gconv_transliterate): Don't change
2320 *OUTBUFSTART unless the whole output fit into the buffer.
2321 * iconv/Makefile (tests): Add tst-iconv4.
2322 * iconv/tst-iconv4.c: New file.
2324 2009-02-01 Ulrich Drepper <drepper@redhat.com>
2326 * sysdeps/x86_64/cacheinfo.c (intel_02_known): Add new descriptors.
2327 * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
2329 2009-01-29 Andrew Stubbs <ams@codesourcery.com>
2331 * elf/Makefile (ld.so): Adjust the sed script to insert _begin in to
2332 newer linker scripts.
2334 2009-01-30 Ulrich Drepper <drepper@redhat.com>
2337 * sysdeps/unix/sysv/linux/sys/inotify.h: Second parameter of
2338 inotify_rm_watch should have type int.
2340 2009-01-06 Steven Munroe <sjmunroe@us.ibm.com>
2342 * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S (__longjmp):
2343 Make aligned_restore_vmx a local symbol.
2344 * sysdeps/powerpc/powerpc64/__longjmp-common.S (__longjmp):
2347 2009-01-30 Andreas Jaeger <aj@suse.de>
2349 * sysdeps/unix/sysv/linux/bits/shm.h (SHM_EXEC): Define.
2350 * sysdeps/unix/sysv/linux/ia64/bits/shm.h (SHM_EXEC): Define.
2351 * sysdeps/unix/sysv/linux/powerpc/bits/shm.h (SHM_EXEC): Define.
2352 * sysdeps/unix/sysv/linux/s390/bits/shm.h (SHM_EXEC): Define.
2353 * sysdeps/unix/sysv/linux/sh/bits/shm.h (SHM_EXEC): Define.
2354 * sysdeps/unix/sysv/linux/sparc/bits/shm.h (SHM_EXEC): Define.
2355 * sysdeps/unix/sysv/linux/x86_64/bits/shm.h (SHM_EXEC): Define.
2357 2009-01-11 Ryan S. Arnold <rsa@us.ibm.com>
2360 * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c (_SET_DI_FPSCR,
2361 _SET_SI_FPSCR): Clobber fp0 to prevent erroneous test-case passes.
2363 2009-01-08 Ryan S. Arnold <rsa@us.ibm.com>
2366 * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S
2367 (__CONTEXT_FUNC_NAME): Fix mtfsf to use fp31 instead of fp0.
2368 * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S
2369 (__CONTEXT_FUNC_NAME): Fix mtfsf to use fp31 instead of fp0.
2371 2009-01-11 Thomas Schwinge <tschwinge@gnu.org>
2373 * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Use
2374 memcpy instead of memcmp.
2375 (_dl_setup_pointer_guard): Likewise.
2377 2009-01-30 Ulrich Drepper <drepper@redhat.com>
2379 * malloc/malloc.c (sYSMALLOc): Don't use assert when detecting
2380 manipulated brk, use malloc_printerr.
2381 * misc/sbrk.c (__sbrk): Better error handling for nonsense
2384 2009-01-30 Jakub Jelinek <jakub@redhat.com>
2386 * string/string.h (memchr, strchr, strrchr, strpbrk, strstr, index,
2387 rindex): For C++ add inlines so that they can be recognized as
2389 * string/strings.h: Define correct C++ prototypes for gcc 4.4.
2391 2009-01-29 Ulrich Drepper <drepper@redhat.com>
2392 Jakub Jelinek <jakub@redhat.com>
2394 * string/string.h: Define correct C++ prototypes for gcc 4.4.
2395 * wcsmbs/wchar.h: Likewise.
2397 2009-01-29 Ulrich Drepper <drepper@redhat.com>
2399 * sysdeps/i386/stackinfo.h (stackinfo_get_sp): Define.
2400 (stackinfo_sub_sp): Define.
2402 2009-01-28 Ulrich Drepper <drepper@redhat.com>
2405 * nscd/mem.c (gc): Use alloca_count to get the real stack usage.
2406 * include/alloca.h (alloca_account): Define.
2407 * sysdeps/x86_64/stackinfo.h (stackinfo_get_sp): Define.
2408 (stackinfo_sub_sp): Define.
2410 * nscd/connections.c (nscd_init): If database file access fails
2411 check whether this is due to permission problems and bail in that
2415 * nscd/mem.c (gc): Fix assignment of he_data in case malloc is used.
2416 Reported by Jun'ichi Nomura <j-nomura@ce.jp.nec.com>.
2418 2009-01-14 Kaz Kojima <kkojima@rr.iij4u.or.jp>
2420 * sysdeps/unix/sysv/linux/sh/sysdep.h (INTERNAL_SYSCALL):
2421 Add "t" to clobber list.
2422 (INTERNAL_SYSCALL_NCS): Likewise.
2424 2009-01-28 Ulrich Drepper <drepper@redhat.com>
2426 * nss/getent.c (print_networks): Don't print comma between aliases.
2428 2009-01-23 Ulrich Drepper <drepper@redhat.com>
2430 * sysdeps/unix/sysv/linux/tst-clone.c (do_test): Avoid warning.
2432 * misc/hsearch_r.c (hcreate_r): We need at least three elements in
2434 * misc/Makefile (tests): Add bug-hsearch1.
2435 * misc/bug-hsearch1.c: New file.
2437 2009-01-22 Roland McGrath <roland@redhat.com>
2439 * Makeconfig (%.v.i): Strip trailing # comments,
2440 not only whole-line comments.
2442 2009-01-10 Ulrich Drepper <drepper@redhat.com>
2444 * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Take
2445 one parameter. If non-NULL use it to initialize return value.
2446 (_dl_setup_pointer_guard): New function.
2447 * sysdeps/unix/sysv/linux/dl-osinfo.h: Likewise.
2448 * sysdeps/generic/ldsodefs.h: Declare _dl_random.
2449 * elf/rtld.c (security_init): Pass _dl_random to
2450 _dl_setup_stack_chk_guard. Call _dl_setup_pointer_guard to initialize
2452 * elf/dl-sysdep.c (_dl_random): New variable.
2453 (_dl_sysdep_start): Handle AT_RANDOM.
2454 (_dl_show_auxv): Likewise.
2455 * elf/dl-support.c (_dl_random): New variable.
2456 (_dl_aux_init): Handle AT_RANDOM.
2457 * csu/libc-start.c [!SHARED] (libc_start_main): Pass _dl_random
2458 to _dl_setup_stack_chk_guard.
2460 * elf/elf.h (AT_RANDOM): Define AT_BASE_PLATFORM and AT_RANDOM.
2462 2009-01-10 Roland McGrath <roland@redhat.com>
2464 * nscd/nscd.c (parse_opt): Use argp_error for bad -i argument.
2466 2009-01-08 Ulrich Drepper <drepper@redhat.com>
2468 * sysdeps/i386/fpu/libm-test-ulps: Adjust expm1 errors.
2471 * nss/nss_files/files-parse.c (strtou32): New function.
2472 (INT_FIELD): Use strotu32 instead of strtoul to unify behavior
2473 across 32-bit and 64-bit platforms.
2474 (INT_FIELD_MAYBE_NULL): Likewise.
2476 2009-01-08 Jakub Jelinek <jakub@redhat.com>
2479 * sysdeps/unix/sysv/linux/bits/resource.h (enum __rusage_who): Avoid
2480 comma after RUSAGE_CHILDREN if not -D_GNU_SOURCE.
2481 * sysdeps/unix/sysv/linux/sparc/bits/resource.h (enum __rusage_who):
2484 2009-01-05 Paolo Bonzini <bonzini@gnu.org>
2487 * posix/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
2488 being NULL also if there are no backreferences.
2489 * posix/rxspencer/tests: Add testcases.
2491 2009-01-04 Paolo Bonzini <bonzini@gnu.org>
2494 * posix/bug-regex17.c: Add testcases.
2495 * posix/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
2498 2009-01-05 Martin Schwidefsky <schwidefsky@de.ibm.com>
2500 * sysdeps/unix/sysv/linux/s390/bits/libc-vdso.h: New file.
2501 * sysdeps/unix/sysv/linux/s390/gettimeofday.c: New file.
2502 * sysdeps/unix/sysv/linux/s390/init-first.c: New file.
2503 * sysdeps/unix/sysv/linux/s390/Makefile (sysdep_routines): Add dl-vdso
2505 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h (INLINE_VSYSCALL,
2506 INTERNAL_VSYSCALL, INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK,
2507 INTERNAL_SYSCALL_NCS, HAVE_CLOCK_GETRES_VSYSCALL and
2508 HAVE_CLOCK_GETTIME_VSYSCALL: Define.
2509 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
2510 * sysdeps/unix/sysv/linux/s390/Versions: New file.
2512 2008-12-31 Paolo Bonzini <bonzini@gnu.org>
2514 * posix/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
2515 * posix/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
2516 re_string_skip_chars, re_string_reconstruct): Likewise.
2517 * posix/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
2519 2008-12-31 Rafael Avila de Espindola <espindola@google.com>
2521 * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr2_r): Check and
2522 adjust the buffer alignment.
2524 2009-01-07 Samuel Thibault <samuel.thibault@ens-lyon.org>
2526 * sysdeps/mach/hurd/Makefile (sysdep_headers) [subdir=socket]:
2527 Add net/ethernet.h net/if_arp.h net/if_ether.h net/if_ppp.h
2530 * hurd/report-wait.c (describe_number): Use __stpcpy to prepend
2531 flavor to description only when flavor is not NULL.
2533 * hurd/hurdsig.c (signal_allowed): Unlock _hurd_dtable_lock
2534 mutex after SIGIO/SIGURG lookup loop.
2536 2009-01-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
2538 * bits/resource.h (PRIO_PROCESS, PRIO_PGRP, PRIO_USER): Add macros.
2540 2009-01-03 Ulrich Drepper <drepper@redhat.com>
2542 * sysdeps/unix/sysv/linux/i386/sysdep.h: Describe 6th argument
2545 2009-01-02 Ulrich Drepper <drepper@redhat.com>
2547 * sysdeps/unix/sysv/linux/kernel-features.h
2548 (__ASSUME_FUTEX_CLOCK_REALTIME): Define.
2550 * wcsmbs/wcsnrtombs.c (__wcsnrtombs): Create temporary state object
2551 if no output is written.
2553 * version.h: Bump to 2.10 development.
2555 * posix/getconf.c: Update copyright year.
2556 * nss/getent.c: Likewise.
2557 * iconv/iconvconfig.c: Likewise.
2558 * iconv/iconv_prog.c: Likewise.
2559 * elf/ldconfig.c: Likewise.
2560 * catgets/gencat.c: Likewise.
2561 * csu/version.c: Likewise.
2562 * elf/ldd.bash.in: Likewise.
2563 * elf/sprof.c (print_version): Likewise.
2564 * locale/programs/locale.c: Likewise.
2565 * locale/programs/localedef.c: Likewise.
2566 * nscd/nscd.c (print_version): Likewise.
2567 * debug/xtrace.sh: Likewise.
2568 * malloc/memusage.sh: Likewise.
2569 * malloc/mtrace.pl: Likewise.
2570 * debug/catchsegv.sh: Likewise.
2572 2008-12-29 Mike Frysinger <vapier@gentoo.org>
2574 * iconvdata/Makefile (iconv-rules): Use LC_ALL=C when running awk
2577 2008-12-29 Ulrich Drepper <drepper@redhat.com>
2579 * sysdeps/posix/getaddrinfo.c (gaih_inet): When the
2580 gethostbyname4_r function call succeeded, just leave the loop.
2583 * wcsmbs/wchar.h: Move undefs for local __need_* constants to the
2585 * wctype/wctype.h: Get wint_t definition directly from <stddef.h>.
2586 * wctype/Makefile (tests): Add bug-wctypeh.
2587 * wctype/bug-wctypeh.c: New file.
2589 * nscd/nscd_gethst_r.c (nscd_gethst_r): Don't use nscd if
2590 LOCALDOMAIN is defined.
2591 * nscd/nscd_getai.c (__nscd_getai): Likewise.
2593 * sysdeps/x86_64/bits/select.h: New file.
2595 * resolv/res_init.c (__res_vinit): Count all servers in statp->nscount.
2597 2008-12-21 Bruno Haible <bruno@clisp.org>
2600 * wcsmbs/mbsnrtowcs.c (__mbsnrtowcs): Create temporary state object
2601 if no output is written.
2603 2008-12-13 Klaus Dittrich <kladit@arcor.de>
2605 * login/utmp_file.c (pututline_file): Replace call to dup2 with
2606 libc internal symbol __dup2 to avoid access through the PLT.
2608 2008-12-08 Ulrich Drepper <drepper@redhat.com>
2611 * sysdeps/unix/sysv/linux/bits/socket.h (SCM_CREDENTIALS): Make
2612 available only for __USE_GNU.
2614 * inet/Makefile (tests): Add tst-getni2.
2615 * inet/tst-getni2.c: New file.
2618 * inet/getnameinfo.c (getnameinfo): Check for output buffers being
2619 NULL when NI_NAMEREQD is set.
2620 Patch mostly by Yang Hongyang <yanghy@cn.fujitsu.com>.
2621 * inet/Makefile (tests): Add tst-getni1.
2622 * inet/tst-getni1.c: New file.
2624 2008-12-03 Petr Baudis <pasky@suse.cz>
2627 * nscd/connections.c (invalidate_cache): Use prune_run_lock
2628 instead of prune_lock.
2629 (nscd_run_prune): Before calling prune_cache, take prune_run_lock.
2630 * nscd/nscd.h (database_dyn): Add prune_run_cache.
2632 2008-12-07 Ulrich Drepper <drepper@redhat.com>
2634 * resolv/res_send.c (send_dg): Use correct guards for SOCK_CLOEXEC
2637 * sysdeps/unix/sysv/linux/kernel-features.h: Fix typo in accept4
2640 * resolv/res_init.c (__res_vinit): Always assign to statp->nscount
2641 after reading name server list.
2644 * nis/nss_nis/nis-hosts.c (_nss_nis_gethostbyname4_r): Fix memory
2645 handling for host name aliases.
2647 2008-11-24 Arkadiusz Miśkiewicz <arekm@maven.pl>
2649 * sysdeps/i386/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Use LOAD_PIC_REG
2650 instead of doing things manually.
2652 2008-11-26 Chris Steel <chris.steel.lnx@googlemail.com>
2654 * posix/regex_internal.h (build_wcs_upper_buffer):
2655 Return type is reg_error_t.
2657 2008-12-05 Ulrich Drepper <drepper@redhat.com>
2659 * posix/globtest.sh: Use mktemp to create temporary file and
2662 * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_SET_S): Handle large
2664 (__CPU_CLR_S): Likewise.
2665 (__CPU_ISSET_S): Likewise.
2667 2008-12-05 Joseph Myers <joseph@codesourcery.com>
2668 Ulrich Drepper <drepper@redhat.com>
2670 * scripts/firstversion.awk: Use custom comparison function to compare
2672 * scripts/versions.awk: Use sort invocation which can handle
2673 multi-digit sub-version numbers.
2675 2008-12-04 Ulrich Drepper <drepper@redhat.com>
2677 * locale/programs/ld-address.c (DEFINE_LANGUAGE_CODE2): Define.
2678 * locale/iso-639.def: Add Chhattisgarhi entry.
2680 2008-12-02 Ulrich Drepper <drepper@redhat.com>
2682 * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname3_r): Recognize
2684 (_nss_dns_gethostbyname4_r): Likewise.
2685 * resolv/res_init.c (__res_vinit): Initialize nscount to zero.
2686 * sysdeps/posix/getaddrinfo.c (gaih_inet): In case we use
2687 gethostbyname4_r, we don't have a separate IPv6 status, so copy
2688 the no_data variable.
2690 * resolv/res_init.c (__res_vinit): Fill in IPv4 name server
2691 information at the correct index.
2693 * socket/sys/socket.h: Declare accept4.
2694 * socket/accept4.c: New file.
2695 * sysdeps/unix/sysv/linux/accept4.c: New file.
2696 * sysdeps/unix/sysv/linux/i386/accept4.S: New file.
2697 * socket/Makefile (routines): Add accept4.
2698 * socket/Versions: Export accept4 with version GLIBC_2.10.
2699 * socket/paccept.c: Removed.
2700 * sysdeps/unix/sysv/linux/paccept.c: Removed.
2701 * sysdeps/unix/sysv/linux/i386/paccept.S: Removed.
2702 * Versions.def: Define GLIBC_2.10 for libc.
2703 * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_ACCEPT4.
2705 * nscd/connections.c: Use accept4.
2707 * sysdeps/unix/sysv/linux/i386/socket.S: Fix comment.
2709 2008-12-01 Ulrich Drepper <drepper@redhat.com>
2711 * resolv/res_send.c (send_dg): Create sockets with non-blocking
2714 * stdlib/setenv.c (unsetenv): Don't search environment if it does
2716 * stdlib/Makefile (tests): Add tst-unsetenv1.
2717 * stdlib/tst-unsetenv1.c: New file.
2719 2008-11-29 Ulrich Drepper <drepper@redhat.com>
2721 * login/utmp_file.c (file_writable): New variable.
2722 (setutent_file): Don't try to open file for writing.
2723 (pututline_file): Before writing, make descriptor writable if
2726 2008-11-26 Ulrich Drepper <drepper@redhat.com>
2728 * sysdeps/posix/getaddrinfo.c (getaddrinfo): Only restrict search
2729 to IPv4 or IPv6 if an interface has been found.
2731 2008-11-26 Roland McGrath <roland@redhat.com>
2733 * sysdeps/unix/sysv/linux/alpha/ipc_priv.h: Renamed to ...
2734 * sysdeps/unix/sysv/linux/powerpc/ipc_priv.h: ... here.
2736 * sysdeps/unix/sysv/linux/alpha/wordexp.c: Renamed to ...
2737 * sysdeps/unix/sysv/linux/ia64/wordexp.c: ... here.
2738 * sysdeps/unix/sysv/linux/sparc/sparc64/wordexp.c: Change #include.
2740 * elf/elf.h (NT_386_IOPERM): New macro.
2741 (NT_PPC_VSX): New macro.
2743 2008-11-25 Roland McGrath <roland@redhat.com>
2745 * sysdeps/alpha, sysdeps/unix/bsd/osf/alpha,
2746 sysdeps/unix/bsd/Attic/osf1/alpha, sysdeps/unix/sysv/linux/alpha,
2747 sysdeps/unix/sysv/linux/alpha/alpha, sysdeps/unix/alpha,
2748 sysdeps/mach/alpha, sysdeps/mach/hurd/alpha:
2749 Subdirectories moved to ports repository.
2750 * configure.in (base_machine): Remove alpha case.
2752 2008-11-25 Thomas Schwinge <tschwinge@gnu.org>
2754 * sysdeps/mach/strerror_l.c: New file.
2756 2008-11-13 Ryan S. Arnold <rsa@us.ibm.com>
2759 * sysdeps/powerpc/fpu/Makefile: Added test case tst-setcontext-fpscr.
2760 * sysdeps/powerpc/fpu/feholdexcpt.c (_FPU_MASK_ALL): Define to replace
2762 * sysdeps/powerpc/fpu/fenv_libc.h (fesetenv_register): Dynamically
2763 choose mtfsf insn based on PPC_FEATURE_HAS_DFP.
2764 (relax_fenv_state): Same as above.
2765 (FPSCR_29): Reserve bit in ISA 2.05.
2766 (FPSCR_NI): Provide define for compat.
2767 * sysdeps/powerpc/fpu/fesetenv.c (_FPU_MASK_ALL): Define to replace
2769 * sysdeps/powerpc/fpu/feupdateenv.c (_FPU_MASK_ALL): Define to replace
2771 * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c: New file. Test case to
2772 test setcontext and swapcontext with dynamic 64-bit FPSCR detection.
2773 * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S (__longjmp): Adjust
2774 access to hwcap to account for hwcap size increase to uint64_t.
2775 * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S (__sigsetjmp ):
2777 * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext-common.S
2778 (*setcontext): Likewise.
2779 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/setcontext.S:
2781 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/swapcontext.S:
2783 * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S
2784 (*setcontext): dynamically select mtfsf insn based on
2785 PPC_FEATURE_HAS_DFP. Adjust access to hwcap to account for hwcap size
2786 increase to uint64_t.
2787 * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S
2788 (*swapcontext): dynamically select mtfsf insn based on
2789 PPC_FEATURE_HAS_DFP. Adjust access to hwcap to account for hwcap size
2790 increase to uint64_t.
2791 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/setcontext.S:
2793 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/swapcontext.S:
2795 * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S
2796 (*setcontext): dynamically select mtfsf insn based on
2797 PPC_FEATURE_HAS_DFP.
2798 * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S
2799 (*swapcontext): dynamically select mtfsf insn based on
2800 PPC_FEATURE_HAS_DFP.
2802 2008-11-13 Ulrich Drepper <drepper@redhat.com>
2804 * version.h: Bump for 2.9 release.
2805 * include/features.h (__GLIBC_MINOR__): Bump to 9.
2808 * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_ALLOC_SIZE):
2809 Multiply with sizeof of __cpu_mask, not 8 unconditionally after
2812 2008-11-11 Ulrich Drepper <drepper@redhat.com>
2815 * resolv/nss_dns/dns-host.c (gaih_getanswer_slice): Don't abort for
2816 unknown request types for now.
2818 2008-11-11 Roland McGrath <roland@redhat.com>
2820 * sysdeps/x86_64/configure: New file.
2822 * configure.in: Add AC_SUBST(libc_cv_cpp_asm_debuginfo).
2823 * configure: Regenerated.
2825 2008-11-03 Martin Schwidefsky <schwidefsky@de.ibm.com>
2827 * sysdeps/s390/s390-64/dl-trampoline.S (_dl_runtime_profile): Use the
2828 correct instruction to remove the stack frame.
2830 2008-11-03 Michael Matz <matz@suse.de>
2832 * sysdeps/s390/bits/atomic.h (__arch_compare_and_exchange_val_32_acq,
2833 __arch_compare_and_exchange_val_64_acq): Add "memory" clobber.
2835 2008-11-07 Jakub Jelinek <jakub@redhat.com>
2837 * include/stdio.h (__builtin_fwrite, __builtin_fwrite_unlocked):
2840 * bits/libc-tsd.h (__libc_tsd_define, __libc_tsd_address,
2841 __libc_tsd_get, __libc_tsd_set): Add TYPE argument, use it as the type
2842 of the thread variable instead of void *.
2843 * sysdeps/mach/hurd/bits/libc-tsd.h (__libc_tsd_define,
2844 __libc_tsd_address, __libc_tsd_get, __libc_tsd_set): Likewise.
2845 * include/ctype.h (CTYPE_B, CTYPE_TOUPPER, CTYPE_TOLOWER): Adjust
2846 __libc_tsd_define arguments.
2847 (__ctype_b_loc, __ctype_toupper_loc, __ctype_tolower_loc): Adjust
2848 __libc_tsd_address arguments. Remove union hack.
2849 * include/rpc/rpc.h (RPC_VARS): Adjust __libc_tsd_define arguments.
2850 * sunrpc/rpc_thread.c (RPC_VARS): Likewise.
2851 (__rpc_thread_destroy, rpc_thread_multi, __rpc_thread_variables):
2852 Adjust __libc_tsd_{set,get} arguments.
2853 * ctype/ctype-info.c (CTYPE_B, CTYPE_TOUPPER, CTYPE_TOLOWER): Adjust
2854 __libc_tsd_define arguments.
2855 * locale/uselocale.c (__uselocale): Adjust __libc_tsd_{set,get}
2857 * locale/lc-ctype.c (_nl_postload_ctype): Likewise.
2858 * locale/global-locale.c (__libc_tsd_LOCALE): Adjust type.
2859 (LOCALE): Adjust __libc_tsd_define arguments.
2860 * locale/localeinfo.h (_NL_CURRENT_LOCALE): Adjust __libc_tsd_get
2862 (LOCALE): Adjust __libc_tsd_define arguments.
2863 * sysdeps/mach/hurd/malloc-machine.h (MALLOC): Adjust __libc_tsd_define
2865 (tsd_setspecific, tsd_getspecific): Adjust __libc_tsd_{set,get}
2868 2008-11-02 Ulrich Drepper <drepper@redhat.com>
2870 * malloc/malloc.c (public_rEALLOc): When new arena is used, copy
2871 really all bytes. Patch by Denys Vlasenko <dvlasenk@redhat.com>.
2873 2008-11-01 Ulrich Drepper <drepper@redhat.com>
2876 * misc/hsearch_r.c (hsearch_r): Fix secondary hash function.
2878 2008-10-24 Joseph Myers <joseph@codesourcery.com>
2879 Ulrich Drepper <drepper@redhat.com>
2881 * math/tgmath.h (__floating_type): Use __builtin_classify_type in
2882 definition for GCC 3.1 and later.
2884 2008-10-31 Jakub Jelinek <jakub@redhat.com>
2886 * elf/dl-tls.c (__tls_get_addr): After calling _dl_update_slotinfo
2887 refetch dtv, as it might have changed.
2888 * elf/Makefile: Add rules to build and run tst-tls18.
2889 * elf/tst-tls18.c: New test.
2890 * elf/tst-tlsmod18a.c: New file.
2892 2008-09-09 Aurelien Jarno <aurelien@aurel32.net>
2895 * iconvdata/gconv-modules: Add LATIN9 as an alias to ISO-8859-15.
2897 2008-10-31 Ulrich Drepper <drepper@redhat.com>
2900 * sysdeps/powerpc/elf/rtld-global-offsets.sym: Fix typo.
2903 * posix/spawnattr_getschedparam.c (posix_spawnattr_getschedparam):
2904 Fix length of copy operation.
2906 2008-10-02 Pierre Habouzit <madcoder@debian.org>
2908 * sysdeps/unix/sysv/linux/eventfd.c (eventfd): Use the eventfd2 syscall
2909 and fix its calling convention.
2911 2008-10-07 Andreas Schwab <schwab@suse.de>
2914 * resolv/res_send.c (send_vc): Fix last change.
2915 (send_dg): Align here as well.
2917 2008-10-31 Ulrich Drepper <drepper@redhat.com>
2919 * sysdeps/unix/sysv/linux/ulimit.c (__ulimit): Handle UL_GETFSIZE
2920 return value in case rlimit is RLIM_INFINITY.
2923 * sysdeps/unix/sysv/linux/ulimit.c (__ulimit): Fix return value
2925 * resource/Makefile (tests): Add bug-ulimit1.
2926 * resource/bug-ulimit1.c: New file.
2929 * sunrpc/rpc_main.c (mkfile_output): Properly handle filename
2930 without dot. Properly terminate the string with a null byte.
2931 Based on a patch by Aurelien Jarno <aurelien@aurel32.net>.
2934 * debug/getgroups_chk.c (__getgroups_chk): Return EINVAL error for
2936 * posix/bits/unistd.h (getgroups): Call __getgroups_chk for
2940 * sysdeps/powerpc/powerpc32/dl-machine.c: Fix typo in message.
2942 2008-10-30 Ulrich Drepper <drepper@redhat.com>
2944 * grp/initgroups.c (internal_getgrouplist): Don't prematurely
2945 abort if there is no initgroups_dyn function.
2947 * resolv/res_send.c (send_dg): On timeout, only return nonzero
2948 result if any of the queries really provided an answer.
2950 2008-10-28 Ulrich Drepper <drepper@redhat.com>
2952 * po/lt.po: Update from translation team.
2954 2008-10-26 Ulrich Drepper <drepper@redhat.com>
2956 * po/id.po: Update from translation team.
2958 2008-10-24 Ulrich Drepper <drepper@redhat.com>
2960 * resolv/res_query.c (__libc_res_nquery): Add a few casts.
2961 Fix tests for existence of second reply.
2963 2008-10-23 Ulrich Drepper <drepper@redhat.com>
2965 * po/id.po: New file.
2966 Contributed by the Indonesian translation team.
2968 2008-10-22 Dmitry V. Levin <ldv@altlinux.org>
2970 * misc/syslog.c (openlog_internal): Fix __have_sock_cloexec
2973 2008-10-17 Jakub Jelinek <jakub@redhat.com>
2975 * elf/Makefile: Add rules to build and run tst-tls17.
2976 * elf/tst-tls17.c: New test.
2977 * elf/tst-tlsmod17a.c: New file.
2978 * elf/tst-tlsmod17b.c: Likewise.
2980 2008-10-17 Ulrich Drepper <drepper@redhat.com>
2982 * stdlib/divmod_1.c: Use correct type for dummy variable.
2983 * stdlib/mod_1.c: Likewise.
2985 2008-10-16 Ulrich Drepper <drepper@redhat.com>
2987 * elf/dl-tls.c (_dl_update_slotinfo): Copy all of the initial DTV.
2989 2008-10-16 Jakub Jelinek <jakub@redhat.com>
2991 * sysdeps/unix/sysv/linux/sys/signalfd.h (signalfd): Fix __THROW vs.
2992 __nonnull order for C++.
2993 * sysdeps/unix/sysv/linux/alpha/sys/signalfd.h (signalfd): Likewise.
2994 * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h (signalfd): Likewise.
2996 2008-10-01 Daniel Jacobowitz <dan@codesourcery.com>
2998 * stdlib/longlong.h: Update from GCC.
3000 2008-10-09 Jakub Jelinek <jakub@redhat.com>
3001 David S. Miller <davem@davemloft.net>
3003 * sysdeps/sparc/sparc64/sparcv9v/memcpy.S: When not USE_BPR,
3004 make sure any registers used with 64-bit 'branch-on-register'
3005 instructions have their top 32-bits clear.
3006 * sysdeps/sparc/sparc64/sparcv9v/memset.S: Likewise.
3007 * sysdeps/sparc/sparc64/sparcv9v2/memcpy.S: Likewise.
3009 2008-09-18 Andreas Schwab <schwab@suse.de>
3012 * resolv/res_send.c (send_vc): Fix use of unaligned address.
3013 Properly handle partial reads.
3015 2008-10-01 Mark Shinwell <shinwell@codesourcery.com>
3017 * elf/elf.h (STO_MIPS_PLT): New.
3019 (R_MIPS_JUMP_SLOT): New.
3020 (R_MIPS_NUM): Redefine to 128.
3021 (DT_MIPS_PLTGOT): New.
3022 (DT_MIPS_RWPLT): New.
3023 (DT_MIPS_NUM): Redefine to 0x35.
3025 2008-10-01 Ulrich Drepper <drepper@redhat.com>
3027 * timezone/africa: Update from tzdata2008f.
3028 * timezone/asia: Likewise.
3029 * timezone/australasia: Likewise.
3030 * timezone/europe: Likewise.
3031 * timezone/leapseconds: Likewise.
3032 * timezone/northamerica: Likewise.
3033 * timezone/southamerica: Likewise.
3034 * timezone/zone.tab: Likewise.
3036 2008-09-30 Ulrich Drepper <drepper@redhat.com>
3038 * nscd/connections.c: Disable use of paccept for now.
3040 2008-09-29 Ulrich Drepper <drepper@redhat.com>
3042 * socket/Versions: Remove paccept export for GLIBC_2.9.
3043 * socket/Makefile (routines): Remove paccept.
3044 * socket/sys/socket.h: Remove paccept declaration.
3046 * po/sv.po: Update from translation team.
3048 2008-09-22 Deborah S. Townsend <dstownse@us.ibm.com>
3050 * sysdeps/s390/s390-64/s390x-mcount.S: Replace ahi with aghi.
3051 * sysdeps/unix/sysv/linux/s390/s390-64/socket.S: Likewise.
3053 2008-09-16 Ulrich Drepper <drepper@redhat.com>
3055 * dlfcn/dlopen.c (dlopen_doit): Allow __RTLD_SPROF flag.
3056 Patch by Olivier Fourdan <ofourdan@redhat.com>.
3058 2008-09-15 Ulrich Drepper <drepper@redhat.com>
3060 * sunrpc/rpc/svc.h: Declare svcfd_create.
3061 Patch by Michael Solberg <msolberg@redhat.com>.
3063 2008-09-12 Flavio Leitner <fleitner@redhat.com>
3064 Ulrich Drepper <drepper@redhat.com>
3066 * malloc/malloc.c (public_vALLOc): Try other arenas in case
3068 (public_pVALLOc): Likewise.
3070 2008-09-02 Andreas Jaeger <aj@suse.de>
3072 * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: Fix last
3075 2008-08-26 Aurelien Jarno <aurelien@aurel32.net>
3078 * hurd/hurd/signal.h (HURD_MSGPORT_RPC): Fix a typo.
3080 2008-07-18 Daniel Jacobowitz <dan@codesourcery.com>
3082 * Makefile (check-data): Check data directory in add-ons.
3083 * elf/Makefile (check-data): Likewise.
3085 2008-08-18 Roland McGrath <roland@redhat.com>
3087 * configure.in (--with-cpu): Check compiler support for -march/-mcpu.
3088 * configure: Regenerated.
3089 * config.make.in (cflags-cpu): New substituted variable.
3090 (with-cpu): Variable removed.
3091 * Makeconfig (+cflags): Use $(cflags-cpu), not $(with-cpu).
3093 2008-08-14 Ryan S. Arnold <rsa@us.ibm.com>
3096 * sysdeps/powerpc/fpu/bits/mathinline.h (__signbitl): Copy new
3097 __signbitl definition and __LONG_DOUBLE_128__ guard from:
3098 * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h: Remove as
3099 redundant. Functions which call floating point assembler operations
3100 should go into a sysdeps powerpc/fpu directory.
3102 2008-08-15 Ulrich Drepper <drepper@redhat.com>
3104 * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Define MAP_STACK.
3105 * sysdeps/unix/sysv/linux/i386/bits/mman.h: Likewise.
3107 2008-08-14 Ulrich Drepper <drepper@redhat.com>
3109 * sysdeps/x86_64/memset.S: Reduce size of tables for PIC.
3111 * sysdeps/unix/sysv/linux/dl-origin.c (_dl_get_origin): Undo all
3112 change related to AT_EXECFN. We cannot use that string.
3113 * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Remove
3115 * elf/dl-support.c: Remove _dl_execfn variable.
3116 (_dl_aux_init): Remove handling of AT_EXECFN.
3117 * elf/dl-sysdep.c (_dl_sysdep_start): Remove handling of AT_EXECFN.
3118 * elf/rtld.c (process_envvars): Remove use of __ASSUME_AT_EXECFN.
3120 2008-08-13 Ulrich Drepper <drepper@redhat.com>
3123 * libio/fmemopen.c: Implement binary mode. In this mode no NUL
3124 byte gets added to writes and seeks from the end use the length of
3125 the buffer and not the currently terminating NUL byte.
3128 * login/utmp_file.c (getutent_r_file): Take additional parameter.
3129 Set to true if locking failed.
3130 (getutid_r_file): Adjust caller.
3131 (pututline_file): Likewise. Return NULL in this case.
3132 Patch mostly by halesh.s@gmail.com.
3134 2008-08-12 Ulrich Drepper <drepper@redhat.com>
3137 * sysdeps/unix/sysv/linux/ifaddrs.c (struct sockaddr_ll_max):
3139 (struct ifaddrs_storage): Use it instead of sockaddr_ll.
3141 2008-08-12 Ryan S. Arnold <rsa@us.ibm.com>
3144 * sysdeps/powerpc/powerpc32/dl-machine.c (CHECK_STATIC_TLS): Remove
3145 macro since it is now available in elf/dynamic-link.h.
3147 2008-08-12 Roland McGrath <roland@frob.com>
3149 * hurd/hurd/signal.h (HURD_MSGPORT_RPC): Avoid -Wparenthesis triggers,
3150 in case used outside of libc.
3151 Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>
3153 2008-08-11 Ulrich Drepper <drepper@redhat.com>
3155 * resolv/res_mkquery.c (res_nmkquery): Call ns_name_compress
3156 directly instead of going through dn_comp.
3158 2008-08-11 Aurelien Jarno <aurel32@debian.org>
3160 * sysdeps/mach/i386/machine-lock.h (__spin_unlock, __spin_try_lock):
3161 Fix asm constraints.
3163 2008-08-07 Ulrich Drepper <drepper@redhat.com>
3166 * sysdeps/unix/sysv/linux/bits/in.h (IP_PMTUDISC_PROBE): Define.
3167 (IPV6_PMTUDISC_PROBE): Likewise.
3169 2008-08-07 Pete Eberlein <eberlein@us.ibm.com>
3172 * sysdeps/unix/sysv/linux/powerpc/bits/mman.h (PROT_SAO): Define.
3174 2008-08-01 Steven Munroe <sjmunroe@us.ibm.com>
3175 Carlos Eduardo Seo <cseo@linux.vnet.ibm.com>
3178 * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags):
3179 Added the members 'vsx' and 'arch_2_06'.
3180 (_dl_powerpc_platforms): Add the member 'power7'.
3181 * sysdeps/powerpc/dl-procinfo.h: Modify _DL_HWCAP_FIRST
3182 to reflect the changes required by VSX and ISA 2.06.
3183 Modify _DL_PLATFORMS_COUNT to reflect the addition of
3185 Defined PPC_PLATFORM_POWER7.
3186 (_dl_string_platform): Add support for POWER7.
3187 * sysdeps/powerpc/sysdep.h: Define bit masks for VSX
3188 capability and ISA 2.06.
3190 2008-08-07 Ulrich Drepper <drepper@redhat.com>
3193 * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h: Use correct
3194 macro to detect use of 128 bit long double.
3195 Patch by Ryan S. Arnold <rsa@us.ibm.com>.
3197 2008-08-05 Ulrich Drepper <drepper@redhat.com>
3199 * scripts/gen-as-const.awk: Use 32-bit values on 32-bit platforms.
3202 * sysdeps/i386/fpu/s_expm1l.S: Simply use exp implementation for large
3204 * sysdeps/x86_64/fpu/s_expm1l.S: Likewise.
3205 Patch by Denys Vlasenko <dvlasenk@redhat.com>.
3207 2008-08-03 Ulrich Drepper <drepper@redhat.com>
3209 * nscd/connections.c (main_loop_poll): Pass a buffer which is
3210 guaranteed to be large enough to read inotify event. Ignore
3211 EAGAIN error. Better error message. Add branch predicition.
3212 (main_loop_epoll): Likewise.
3214 2008-08-02 Roland McGrath <roland@frob.com>
3216 * sysdeps/mach/i386/machine-lock.h (__spin_unlock, __spin_try_lock):
3217 Add memory clobbers.
3219 2008-08-02 Ulrich Drepper <drepper@redhat.com>
3221 * manual/arith.texi: Avoid @strong{Note:}.
3222 * manual/creature.texi: Likewise.
3223 * manual/filesys.texi: Likewise.
3224 * manual/math.texi: Likewise.
3225 * manual/memory.texi: Likewise.
3226 * manual/resource.texi: Likewise.
3227 * manual/syslog.texi: Likewise.
3228 * manual/time.texi: Likewise.
3230 * sysdeps/posix/clock_getres.c (hp_timing_getres): Remove inline
3233 2008-08-01 Ulrich Drepper <drepper@redhat.com>
3235 * sysdeps/unix/sysv/linux/Versions: Fix changes due to old patch for
3236 new epoll_create1 interface.
3237 * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
3238 * sysdeps/unix/sysv/linux/sys/epoll.h: Likewise.
3239 * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
3241 * include/arpa/nameser.h (NS_GET16): Use const pointer.
3242 (NS_GET32): Likewise.
3244 * sysdeps/unix/sysv/linux/kernel-features.h: s390 has the new
3247 * sysdeps/unix/sysv/linux/dl-origin.c (_dl_get_origin): We cannot
3248 use the AT_EXECFN value if it is no absolute path.
3249 * sysdeps/unix/sysv/linux/kernel-features.h: Never define
3252 * Versions.def: Add GLIBC_2.9 to libresolv.
3253 * include/resolv.h: Remove hidden proto declarations for __ns_*
3254 functions. Add them for __dn_count_labels and __p_secstodate.
3255 * include/arpa/nameser.h: Add a number of hidden proto declarations.
3256 Define ns_msg_getflags macro here.
3257 * resolv/res_debug.c: Add hidden definition for __dn_count_labels
3259 * resolv/Versions: Export functions from <arpa/nameser.h> from
3260 libresolv in version GLIBC_2.9.
3261 * resolv/ns_name.c: Integrate changes from bind 9.5.0. Add necessary
3263 * resolv/ns_netint.c: Likewise.
3264 * resolv/ns_parse.c: Likewise.
3265 * resolv/ns_print.c: Likewise.
3266 * resolv/ns_samedomain.c: Likewise.
3267 * resolv/ns_ttl.c: Likewise.
3268 * resolv/arpa/nameser_compat.h: Likewise.
3269 * resolv/arpa/nameser.h: Likewise. Remove macros which redirect
3271 * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Use __ns_get16
3272 instead of ns_get16.
3273 * resolv/nss_dns/dns-host.c (getanswer_r): Use __ns_get16 and
3274 __ns_get32 instead of ns_get16 and ns_get32 respectively.
3275 (gaih_getanswer_slice): Likewise.
3276 * resolv/Makefile (libresolv-routines): Add ns_date.
3277 * resolv/ns_date.c: New file.
3279 * elf/Makefile (check-localplt.out): Also check libresolv and
3282 2008-07-31 Ulrich Drepper <drepper@redhat.com>
3284 * sysdeps/unix/sysv/linux/kernel-features.h: Define
3287 2008-07-30 Ulrich Drepper <drepper@redhat.com>
3289 * sysdeps/posix/getaddrinfo.c (gaih_inet): Raise size of initial
3290 buffer passed to NSS functions.
3292 * nscd/connections.c (nscd_init): Typo in preprocessor directive.
3294 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_PACCEPT):
3297 * misc/syslog.c (openlog_internal): Fix compile problem.
3299 2008-07-28 Roland McGrath <roland@redhat.com>
3301 * elf/dl-sysdep.c (_dl_show_auxv): Add AT_EXECFN to the table.
3303 2008-07-28 Ulrich Drepper <drepper@redhat.com>
3305 * io/ftw.c (add_object): Remove inline to avoid warning.
3307 * sysdeps/unix/sysv/linux/paccept.c: Fix compile problem.
3309 * resolv/res_send.c (__libc_res_nsend): Take additional parameter.
3310 Use it instead of locally defined resplen2 variable.
3311 (res_nsend): Adjust for __libc_res_nsend interface change.
3312 (send_vc): Initialize *resplen2 if necessary. Read length of
3313 package into an appropriately aligned variable. Store converted length
3314 in new variable and use it appropriately.
3315 Add branch prediction help.
3316 * resolv/res_query.c (__libc_res_nquery): Take additional parameter
3317 and pass it on to __libc_res_nsend. Adjust all callers.
3318 (__libc_res_nsearch): Likewise.
3319 (__libc_res_nqeurydomain): Likewise.
3320 * resolv/nss_dns/dns-host.c: Adjust for __libc_res_nsearch interface
3322 (_nss_dns_gethostbyname4): Don't unconditionally allocate tmp array.
3323 Define resplen2 variable and pass it to __libc_res_nsearch and then
3325 (getanswer_r): In case of incorrect DNS data don't overread buffer.
3326 Add branch prediction.
3327 (gaih_getanswer_slice): Likewise. Check for invalid data types.
3328 (gaih_getanswer): Don't decode second slice if first one failed due
3329 to a too small buffer. Don't let not found status of second
3330 decoder shadow results of the first.
3331 * resolv/gethnamaddr.c (gethostbyname2): Adjust for __libc_res_nsearch
3332 and __libc_res_nquery interface changes
3333 (gethostbyaddr): Adjust for __libc_res_nquery interface change.
3334 * include/resolv.h: Adjust prototypes for __libc_res_nquery,
3335 __libc_res_nsearch, and __libc_res_nsend.
3336 * resolv/nss_dns/dns-canon.c: Adjust for __libc_res_nquery interface
3338 * resolv/nss_dns/dns-network.c: Adjust for __libc_res_nquery and
3339 __libc_res_nsearch interface changes.
3341 2008-07-27 Ulrich Drepper <drepper@redhat.com>
3343 * libio/iopopen.c (_IO_new_proc_open): Remove unnecessary volatile.
3345 * posix/wordexp.c (exec_comm): Use pipe2 if possible to create
3346 file descriptors with close-on-exec set.
3347 (exec_comm_child): Fix the case where the write end of the pipe is
3348 STDOUT_FILENO already. In case it is, clear close-on-exec.
3350 * sysdeps/unix/sysv/linux/syscalls.list: Add __pipe2 alias.
3351 * io/pipe2.c: Likewise.
3352 * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_PIPE2
3353 instead of __ASSUME_PACCEPT.
3354 * include/unistd.h: Declare __have_pipe2.
3355 * libio/iopopen.c: Implement "e" flag.
3356 * libio/Makefile (tests): Add tst-popen1.
3357 * libio/tst-popen1.c: New file.
3359 * sysdeps/unix/sysv/linux/bits/socket.h: Define PF_ISDN and AF_ISDN.
3360 * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
3362 2008-07-26 Ulrich Drepper <drepper@redhat.com>
3365 * libio/fileops.c (_IO_new_file_attach): Preserve errno around
3366 success call of _IO_SEEKOFF or calls which failed because the
3367 descriptor is for a pipe.
3369 * sunrpc/key_call.c (getkeyserv_handle): Use FD_CLOEXEC instead of
3372 * misc/syslog.c (openlog_internal): Use SOCK_CLOEXEC if possible.
3374 * malloc/mtrace.c (mtrace): Use 'e' flag in fopen call. Drop
3375 F_SETFD use if we know fopen set the flag.
3377 * login/utmp_file.c (setutent_file): Minor optimization in case
3378 O_CLOEXEC is available.
3380 2008-07-24 Tom "spot" Callaway <tcallawa@redhat.com>
3382 * Makeconfig: Define pie-ccflag and PIE-ccflag variables.
3383 * elf/Makefile: Use pie-ccflag variable.
3384 * nscd/Makefile: Likewise.
3385 * sysdeps/sparc/Makefile: Set $(pie-ccflag) to -fPIE.
3387 2008-07-21 Andreas Krebbel <krebbel1@de.ibm.com>
3390 * Versions.def: Add GLIBC_2.9 version tag for libutil.
3391 * sysdeps/unix/sysv/linux/s390/bits/utmp.h: Copy of
3392 gnu/bits/utmp.h. Check for __WORDSIZE_COMPAT32 removed.
3393 * sysdeps/unix/sysv/linux/s390/bits/utmpx.h: Copy of
3394 gnu/bits/utmpx.h. Check for __WORDSIZE_COMPAT32 removed.
3395 * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Add new files
3396 utmp32, utmpx32 and login32.
3397 * sysdeps/unix/sysv/linux/s390/s390-32/Versions: Add 2.9
3398 versions of struct utmp functions to libc and libutil.
3399 * sysdeps/unix/sysv/linux/s390/s390-32/utmp-compat.h: New file.
3400 * sysdeps/unix/sysv/linux/s390/s390-32/getutent.c: New file.
3401 * sysdeps/unix/sysv/linux/s390/s390-32/getutent_r.c: New file.
3402 * sysdeps/unix/sysv/linux/s390/s390-32/getutid.c: New file.
3403 * sysdeps/unix/sysv/linux/s390/s390-32/getutid_r.c: New file.
3404 * sysdeps/unix/sysv/linux/s390/s390-32/getutline.c: New file.
3405 * sysdeps/unix/sysv/linux/s390/s390-32/getutline_r.c: New file.
3406 * sysdeps/unix/sysv/linux/s390/s390-32/getutmp.c: New file.
3407 * sysdeps/unix/sysv/linux/s390/s390-32/getutxent.c: New file.
3408 * sysdeps/unix/sysv/linux/s390/s390-32/getutxid.c: New file.
3409 * sysdeps/unix/sysv/linux/s390/s390-32/getutxline.c: New file.
3410 * sysdeps/unix/sysv/linux/s390/s390-32/login.c: New file.
3411 * sysdeps/unix/sysv/linux/s390/s390-32/login32.c: New file.
3412 * sysdeps/unix/sysv/linux/s390/s390-32/pututxline.c: New file.
3413 * sysdeps/unix/sysv/linux/s390/s390-32/updwtmp.c: New file.
3414 * sysdeps/unix/sysv/linux/s390/s390-32/updwtmpx.c: New file.
3415 * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: New file.
3416 * sysdeps/unix/sysv/linux/s390/s390-32/utmp32.c: New file.
3417 * sysdeps/unix/sysv/linux/s390/s390-32/utmp32.h: New file.
3418 * sysdeps/unix/sysv/linux/s390/s390-32/utmpx-convert.h: New file.
3419 * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.c: New file.
3420 * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.h: New file.
3422 2008-07-26 Ulrich Drepper <drepper@redhat.com>
3424 * scripts/gen-as-const.awk: Generate more widely usable code by
3425 using 64-bit arithmetic.
3427 * stdio-common/printf_fp.c (___printf_fp): Give wide outout code
3428 the same treatment as narrow output code in last patch.
3430 * sunrpc/clnt_udp.c (__libc_clntudp_bufcreate): Namespace cleanup.
3433 * elf/dl-load.c (local_strdup): Remove inline.
3434 (_dl_map_object_from_fd): Don't allocate l_symbolic_searchlist.r_list.
3435 * elf/dl-object.c (_dl_new_object): Allocate symbolic searchlist as
3438 * sysdeps/unix/sysv/linux/dl-origin.c: Add const to avoid warning.
3440 2008-07-25 Ulrich Drepper <drepper@redhat.com>
3442 * sysdeps/unix/sysv/linux/kernel-features.h: IA-64 and SPARC have
3443 the new syscalls, too.
3445 * sysdeps/i386/i686/memcmp.S: Fix unwind information.
3446 Reported by Paul Pluzhnikov <ppluzhnikov@google.com>.
3449 * stdio-common/_i18n_number.h (_i18n_number_rewrite): Take additional
3450 parameter for end of buffer. If temporary copy is too large use
3452 * stdio-common/vfprintf.c: Adjust for _i18n_number_rewrite
3454 * stdio-common/printf_fp.c (__printf_fp): Likewise.. Account for
3455 string rewrite when allocating buffer.
3457 * sysdeps/unix/sysv/linux/kernel-features.h: PPC has the new
3460 * nscd/connections.c (nscd_init): Clean up fcntl call.
3462 * nscd/nscd_helper.c (open_socket): Use SOCK_CLOEXEC and
3463 SOCK_NONBLOCK if possible.
3465 * sysdeps/unix/sysv/linux/opensock.c (__opensock): Use
3466 SOCK_CLOEXEC if available.
3468 * include/rpc/clnt.h: Declare __libc_clntudp_bufcreate and
3469 __libc_clntudp_bufcreate_internal.
3470 * include/sys/socket.h: Declare __have_sock_cloexec.
3471 * socket/Makefile (aux): Add have_sock_cloexec.
3472 * socket/have_sock_cloexec.c: New file.
3473 * sunrpc/clnt_udp.h (clntudp_bufcreate): Now a wrapper around
3474 __libc_clntudp_bufcreate.
3475 (__libc_clntudp_bufcreate): Former implementation of clntudp_bufcreate
3476 which takes an additional parameter. Create socket with non-blocking
3477 mode and close-on-exec flag set, if wanted.
3478 * sunrpc/Versions: Export __libc_clntudp_bufcreate@GLIBC_PRIVATE.
3479 * nis/ypclnt.c (yp_bind_client_create): Use __libc_clntpudp_bufcreate
3480 instead of clntudp_create. The socket has already the close-on-exec
3481 flag set if SOCK_CLOEXEC is defined.
3483 2008-07-24 Ulrich Drepper <drepper@redhat.com>
3485 * sysdeps/unix/sysv/linux/kernel-features.h: Define
3486 __ASSUME_PACCEPT, __ASSUME_IN_NONBLOCK, and __ASSUME_PACCEPT if
3488 * nscd/connections.c: Avoid fcntl calls to set close-on-exec flag and
3489 non-blocking mode by using socket, paccept, and inotify_init1.
3491 * Versions.def (glibc): Add GLIBC_2.9.
3492 * io/Makefile (routines): Add dup3 and pipe2.
3493 * io/Versions [glibc] (GLIBC_2.9): Add dup3 and pipe2.
3494 * io/dup3.c: New file.
3495 * io/pipe2.c: New file.
3496 * posix/unistd.h: Declare dup3 and pipe2.
3497 * socket/Makefile (routines): Add paccept.
3498 * socket/Versions [glibc] (GLIBC_2.9): Add paccept.
3499 * socket/paccept.c: New file.
3500 * socket/sys/socket.h: Declare paccept.
3501 * sysdeps/unix/syscalls.list: Add entry for dup3.
3502 * sysdeps/unix/sysv/linux/Versions [glibc] (GLIBC_2.9): Add
3503 epoll_create2 and inotify_init1.
3504 * sysdeps/unix/sysv/linux/eventfd.c: Use eventfd1 syscall if possible.
3505 * sysdeps/unix/sysv/linux/paccept.c: New file.
3506 * sysdeps/unix/sysv/linux/signalfd.c: Use signalfd4 syscall if
3508 * sysdeps/unix/sysv/linux/socketcall.h: Add SOCKOP_paccept.
3509 * sysdeps/unix/sysv/linux/syscalls.list: Add epoll_create2,
3510 inotify_init1, and pipe2 entries.
3511 * sysdeps/unix/sysv/linux/alpha/sys/epoll.h: New file.
3512 * sysdeps/unix/sysv/linux/alpha/sys/eventfd.h: New file.
3513 * sysdeps/unix/sysv/linux/alpha/sys/inotify.h: New file.
3514 * sysdeps/unix/sysv/linux/alpha/sys/signalfd.h: New file.
3515 * sysdeps/unix/sysv/linux/alpha/sys/timerfd.h: New file.
3516 * sysdeps/unix/sysv/linux/bits/socket.h: Define SOCK_CLOEXEC and
3518 * sysdeps/unix/sysv/linux/i386/paccept.S: New file.
3519 * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: New file.
3520 * sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: New file.
3521 * sysdeps/unix/sysv/linux/sparc/sys/inotify.h: New file.
3522 * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h: New file.
3523 * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: New file.
3524 * sysdeps/unix/sysv/linux/sparc/bits/socket.h: New file.
3525 * sysdeps/unix/sysv/linux/sys/epoll.h: Define EPOLL_CLOEXEC and
3526 EPOLL_NONBLOCK. Declare epoll_create2.
3527 * sysdeps/unix/sysv/linux/sys/eventfd.h: Define EFD_CLOEXEC and
3529 * sysdeps/unix/sysv/linux/sys/inotify.h: Define IN_CLOEXEC and
3530 IN_NONBLOCK. Declare inotify_init1.
3531 * sysdeps/unix/sysv/linux/sys/signalfd.h: Define SFD_CLOEXEC and
3533 * sysdeps/unix/sysv/linux/sys/timerfd.h: Define TFD_CLOEXEC and
3536 * elf/elf.h: Define AT_EXECFN.
3537 * elf/rtld.c [!__ASSUME_AT_EXECFN] (process_envvars): Don't handle
3539 * elf/dl-sysdep.c (_dl_sysdep_start): Handle AT_EXECFN.
3540 * elf/dl-support.c: Define _dl_execfn. Don't define _dl_origin_path
3541 if __ASSUME_AT_EXECFN is defined.
3542 (_dl_aux_init): Handle AT_EXECFN.
3543 * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_AT_EXECFN
3545 * sysdeps/generic/ldsodefs.h (rtld_global_ro): Add _dl_execfn.
3546 Don't define _dl_origin_path if __ASSUME_AT_EXECFN is defined.
3547 * sysdeps/unix/sysv/linux/dl-origin.c (_dl_get_origin): Use
3548 _dl_execfn if available and avoid compatibility code if
3549 __ASSUME_AT_EXECFN is defined.
3551 * sysdeps/unix/sysv/linux/dl-sysdep.h: Don't declare
3552 _dl_discover_osversion only for older kernels.
3554 2008-07-22 Roland McGrath <roland@frob.com>
3556 * hurd/fd-read.c (_hurd_fd_read): Fix last change.
3558 2008-07-21 Roland McGrath <roland@frob.com>
3560 * hurd/fd-read.c (_hurd_fd_read): Return EGRATUITOUS if the server
3561 returned too much data out of line.
3563 2008-07-20 Ulrich Drepper <drepper@redhat.com>
3565 * locale/setlocale.c (setname): Remove inline to avoid compiler
3569 * locale/setlocale.c (setlocale): Take the setlocale lock earlier.
3571 2008-07-15 Ulrich Drepper <drepper@redhat.com>
3573 * stdio-common/vfprintf.c (_IO_helper_overflow): In case _IO_sputn
3574 doesn't manage to write anything, fail.
3576 * malloc/hooks.c (__malloc_check_init): Remove printf.
3578 2008-07-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
3580 * sysdeps/mach/hurd/bits/fcntl.h: Include <sys/types.h>.
3582 2008-07-12 Ulrich Drepper <drepper@redhat.com>
3584 * nscd/connections.c (main_loop_poll): Fix handling of read errors
3586 (main_loop_epoll): Likewise.
3588 2008-07-09 Ulrich Drepper <drepper@redhat.com>
3590 * resolv/res_send.c: Remove unnecessary res_pquery prototype.
3592 * resolv/res_query.c (__libc_res_nquery): Issue debug message only
3593 if DEBUG is defined.
3595 * resolv/res_query.c (__libc_res_nquery): Align buffer for T_AAAA
3596 query. Adjust buffer size computation for padding.
3598 2008-07-08 Ulrich Drepper <drepper@redhat.com>
3600 * stdio-common/Makefile: Add rules to build and run tst-setvbuf1.
3601 * stdio-common/tst-setvbuf1.c: New file.
3602 * stdio-common/tst-setvbuf1.expect: New file.
3605 * libio/iosetvbuf.c (_IO_setvbuf): Correctly clear buffering flags
3606 when selecting fully-buffered stream.
3607 Patch by Wang Xin <wxinee@gmail.com>.
3609 2008-07-06 Samuel Thibault <samuel.thibault@ens-lyon.org>
3611 * sysdeps/mach/hurd/open.c: Include <stdio.h>.
3612 (__open_2): New function.
3613 (__open64_2): New alias to __open_2.
3614 * sysdeps/mach/hurd/openat.c: Include <stdio.h>.
3615 (__openat_2): New function.
3616 (__openat64_2): New alias to __openat_2.
3618 2008-07-06 Ulrich Drepper <drepper@redhat.com>
3621 * time/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
3623 2008-07-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
3625 * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Define MSG_NOSIGNAL.
3626 * hurd/hurd/fd.h (__hurd_sockfail): Add extern inline function.
3627 * sysdeps/mach/hurd/recv.c (__recv): Use __hurd_sockfail instead of
3629 * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Likewise.
3630 * sysdeps/mach/hurd/recvmsg.c (__recvmsg): Likewise.
3631 * sysdeps/mach/hurd/send.c (__send): Likewise.
3632 * sysdeps/mach/hurd/sendto.c (__sendfrom): Likewise.
3633 * sysdeps/mach/hurd/sendmsg.c (__sendmsg): Likewise.
3635 2008-03-04 Samuel Thibault <samuel.thibault@ens-lyon.org>
3637 * sysdeps/mach/hurd/recv.c (__recv): Initialize NPORTS.
3638 * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Likewise.
3639 * sysdeps/mach/hurd/recvmsg.c (__recvmsg): Likewise.
3640 * hurd/fd-read.c (_hurd_fd_read): Initialize NREAD.
3641 * hurd/get-host.c (_hurd_get_host_config): Likewise.
3642 * sysdeps/mach/hurd/dl-sysdep.c (__libc_read): Likewise.
3644 2008-06-27 Ulrich Drepper <drepper@redhat.com>
3647 * time/strptime_l.c: Don't clear s.era_cnt after successful match
3649 Patch by Petr Baudis.
3651 2008-06-26 Ulrich Drepper <drepper@redhat.com>
3653 * resolv/res_debug.c (__p_type_syms): Add ns_t_dname entry.
3654 Patch by Peter Jones <pjones@redhat.com>.
3656 2008-06-25 Ulrich Drepper <drepper@redhat.com>
3659 * stdlib/canonicalize.c (__realpath): readlink can write too much
3660 into the buffer on platforms without PATH_MAX.
3662 2008-06-17 Carlos O'Donell <carlos@codesourcery.com>
3665 * posix/tst-regex.c (main): Rename to...
3666 (do_test): ... this. Remove cmdline option processing.
3668 (TEST_FUNCTION): Define.
3669 (CMDLINE_OPTIONS): Define.
3671 2008-06-25 Ulrich Drepper <drepper@redhat.com>
3674 * configure.in: Add -Werror to -fstack-protector test to catch
3675 unsupported architectures.
3676 Patch by Gilles Esponasse <g.esp@free.fr>.
3678 2008-06-17 Joseph Myers <joseph@codesourcery.com>
3680 * stdlib/tst-setcontext.c: Set back_in_main before exit if
3681 getcontext returns ENOSYS.
3683 2008-06-18 Ulrich Drepper <drepper@redhat.com>
3685 * nscd/connections.c (main_loop_poll): Fix test for read error.
3686 (main_loop_epoll): Likewise.
3688 2008-06-13 Ulrich Drepper <drepper@redhat.com>
3690 * sysdeps/posix/getaddrinfo.c: Move _res_hconf_init call to a
3691 better place so it is not called when nscd is used.
3693 * nscd/connections.c: Also recognize and handle changes to the
3694 resolver configuration file.
3696 2008-06-12 Ulrich Drepper <drepper@redhat.com>
3698 * time/strftime.c: Pass reference to tzset_called around to handle
3702 * time/strftime.c (__strftime_internal): Call tzset() only
3703 when printing timezone-dependent values.
3704 Based on a patch by Petr Baudis <pasky@suse.cz>.
3706 * resolv/nss_dns/dns-host.c (gaih_getanswer): Don't
3707 unconditionally use second gaih_getanswer_slice result.
3709 * sysdeps/posix/getaddrinfo.c (gai_inet): Remove unnecessary test.
3710 (getaddrinfo): RES must always be non-NULL.
3712 2008-06-12 Jakub Jelinek <jakub@redhat.com>
3714 * sysdeps/powerpc/powerpc64/fpu/s_llround.S (__llround): Avoid using
3716 * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S (__llroundf): Likewise.
3717 * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S (__llround):
3719 * sysdeps/powerpc/powerpc32/fpu/s_lround.S (__lround): Avoid using cr3
3722 2008-06-12 Ulrich Drepper <drepper@redhat.com>
3724 * nscd/nscd.h (struct database_dyn): Add inotify_descr and clear_cache
3726 * nscd/connections.c (inotify_fd): New variable.
3727 (nscd_init): Try to open an inotify descriptor.
3728 If successful, watch files for databases using inotify instead of
3729 having prune threads stat the files.
3730 (nscd_run_prune): Recognize clear_cache flag being set and call
3731 prune_cache appropriately.
3732 (main_loop_poll): Add inotify descriptor to wait set and handle the
3734 (main_loop_epoll): Likewise.
3735 * nscd/cache.c (prune_cache): Don't stat files for databases if
3737 * sysdeps/unix/sysv/linux/Makefile [subdir=nscd]
3738 (CFLAGS-connections.c): Add -DHAVE_INOTIFY.
3740 * nscd/grpcache.c (cache_addgr): Correctly compute size of
3741 fixed-size portion of the record.
3742 * nscd/servicescache.c (cache_addserv): Likewise.
3743 * nscd/pwdcache.c (cache_addpw): Likewise.
3744 * nscd/initgrcache.c (addinitgroupsX): Likewise.
3746 2008-06-11 Ulrich Drepper <drepper@redhat.com>
3748 * nscd/mem.c (gc): Initialize obstack earlier so that if we jump
3749 out we don't use uninitialized memory.
3751 * nscd/hstcache.c (cache_addhst): Send correct number of bytes to
3754 2008-06-10 Ulrich Drepper <drepper@redhat.com>
3756 * resolv/nss_dns/dns-host.c (gaih_getanswer_slice): Also log and
3757 ignore T_DNAME messages.
3758 * resolv/arpa/nameser_compat.h (T_DNAME): Define.
3760 2008-06-05 Jakub Jelinek <jakub@redhat.com>
3762 * misc/regexp.h (compile): Use __REPB_PREFIX macro.
3763 Avoid segfault if first GETC returns eof/'\0'/'\n'.
3765 2008-06-03 Jakub Jelinek <jakub@redhat.com>
3767 * nscd/nscd_getserv_r.c (__nscd_getservbyport_r): Pass cp
3768 instead of portstr to nscd_getserv_r. Patch by
3769 Roman Kagan <rkagan@mail.ru>.
3771 2008-05-26 Jim Meyering <meyering@redhat.com>
3773 Remove more useless "if" tests before "free".
3774 * include/inline-hashtab.h (htab_delete): Likewise.
3775 * libio/freopen.c (freopen): Likewise.
3776 * libio/freopen64.c (freopen64): Likewise.
3777 * locale/programs/ld-collate.c (collate_read): Likewise.
3778 * misc/fstab.c (libc_freeres_fn): Likewise.
3779 * posix/glob.c (globfree): Likewise.
3781 2008-05-24 Ulrich Drepper <drepper@redhat.com>
3783 * string/Makefile (strop-tests): Add memmem.
3784 * string/test-memmem.c: New file.
3785 * string/test-string.h (BUF1PAGES): Define to 1 if undefined.
3786 (test_init): Size buf1 according to BUF1PAGES.
3788 2008-05-24 Jakub Jelinek <jakub@redhat.com>
3790 * libio/stdio.h (vscanf): Fix -std=c99 redirect.
3791 * stdio-common/Makefile (tests): Add scanf16 and scanf17.
3792 (CFLAGS-scanf17.c): New.
3793 * stdio-common/scanf14.c (main): Add fscanf and scanf tests.
3794 * stdio-common/scanf15.c (main): Likewise.
3795 * stdio-common/scanf16.c: New file.
3796 * stdio-common/scanf17.c: New file.
3798 2008-05-24 Ulrich Drepper <drepper@redhat.com>
3800 * resolv/res_send.c (send_dg): If we already have one of two
3801 answers and the server reports SERVFAIL, NOTIMP, or REFUSED, then
3802 use the one answer insted of failing.
3804 2008-02-20 Ryan S. Arnold <rsa@us.ibm.com>
3806 * math/libm-test.inc (exp_test): Exclude expl(1000.0L) from
3807 being executed on PowerPC as the expected result exceeds IBM
3808 long double 128 __LDBL_MAX__.
3810 2008-05-21 Roland McGrath <roland@redhat.com>
3812 * shlib-versions (sparc.*-.*-.*, sparc64.*-.*-.*): Add ABI lines.
3814 * Makefile (check-data): Use $(abi-name) before other guesses.
3815 Look in $(add-ons) dirs before scripts/data/.
3816 * elf/Makefile (check-data): Likewise.
3818 * scripts/soversions.awk: Grok ABI line.
3819 * Makeconfig ($(common-objpfx)soversions.mk): Likewise.
3820 Emit definition for abi-name variable.
3822 2008-05-21 Ulrich Drepper <drepper@redhat.com>
3824 * string/endian.h: Define new fixed-size hto* and *toh macros only
3827 * iconvdata/Depend: Add localedata.
3829 2008-05-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
3831 * bits/termios.h (ONLCR): Define under [__USE_XOPEN] too.
3833 2008-05-08 David S. Miller <davem@davemloft.net>
3835 * sysdeps/unix/sysv/linux/sparc/sparc32/setcontext.S: Use
3837 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
3838 (__SYSCALL_CLOBBERS): Remove %g* registers.
3839 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
3840 (__SYSCALL_CLOBBERS): Likewise.
3841 * scripts/data/localplt-sparc-linux-gnu.data: New file.
3842 * scripts/data/localplt-sparc64-linux-gnu.data: New file.
3844 2008-05-21 Jakub Jelinek <jakub@redhat.com>
3846 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
3847 (CALL_ERRNO_LOCATION): Define.
3848 (__SYSCALL_STRING, __CLONE_SYSCALL_STRING): Use it.
3849 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
3850 (CALL_ERRNO_LOCATION): Define.
3851 (__SYSCALL_STRING, __CLONE_SYSCALL_STRING): Use it.
3852 * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S (__brk): Use
3853 HIDDEN_JUMPTARGET for __errno_location call in libc.so.
3855 2008-05-20 Ulrich Drepper <drepper@redhat.com>
3857 * include/inline-hashtab.h (higher_prime_number): Fix type of mid
3860 2008-05-20 Jakub Jelinek <jakub@redhat.com>
3862 * sysdeps/unix/sysv/linux/sparc/sparc32/sigcontextinfo.h
3863 (FIRST_FRAME_POINTER): Define.
3865 2008-05-09 David S. Miller <davem@davemloft.net>
3867 * sysdeps/sparc/sparc64/backtrace.c: New file.
3869 2008-05-14 David S. Miller <davem@davemloft.net>
3871 * sysdeps/sparc/machine-gmon.h: New file.
3872 * sysdeps/sparc/sparc-mcount.S: Likewise.
3873 * sysdeps/sparc/Makefile: Add sparc-mcount target to
3874 sysdep_routines in gmon directory.
3876 2008-05-19 Jakub Jelinek <jakub@redhat.com>
3878 * elf/soinit.c (__EH_FRAME_BEGIN__): Remove.
3880 2008-05-19 Ulrich Drepper <drepper@redhat.com>
3882 * resolv/res_query.c (__libc_res_nquery): In case one of two
3883 answer was too short don't try to read that answer's header.
3885 * resolv/res_send.c (send_dg): In case of timeout and there are
3886 two queries and one has been answered, return value indicating
3889 2008-05-18 Ulrich Drepper <drepper@redhat.com>
3891 * nscd/cache.c (cache_add): Take additional parameter specifying
3892 whether this is in response of a cache refill. Check alignment
3893 of package data. Revamp waking of pruning thread.
3894 (prune_cache): Small optimization.
3895 * nscd/nscd.h: Adjust cache_add prototypes.
3896 * nscd/aicache.c: Adjust cache_add calls.
3897 * nscd/grpcache.c: Likewise.
3898 * nscd/hstcache.c: Likewise.
3899 * nscd/initgrcache.c: Likewise.
3900 * nscd/pwdcache.c: Likewise.
3901 * nscd/servicescache.c: Likewise.
3902 * nscd/connections.c (restart): Really disable cache use before
3903 exec attempt. If it fails, reenable cache.
3904 (nscd_run_prune): Initialize wakeup_time. After wakeup, set wakeup
3905 time to max to be able to notice concurrent cache additions. Unlock
3906 prune_lock while performing gc. Afterwards compute wakeup time with
3907 current wakeup_time value in mind.
3909 2008-05-17 Ulrich Drepper <drepper@redhat.com>
3911 * nscd/mem.c (gc): Avoid stack overflow when allocating move list.
3913 * nscd/mem.c (gc): Correctly determine highest used array element
3916 * nscd/mem.c (markrange): Add assert to check entries are all
3917 aligned. Small cleanup in bitmap use.
3919 * nscd/nscd.h (mem_in_flight): Replace blockaddr field with
3920 blockoff of type nscd_ssize_t.
3921 * nscd/mem.c (gc): Simplify markrange call for on-flight blocks.
3922 (mempoll_alloc): Record block offset and not address.
3924 * nscd/mem.c (gc): Fix test for stack overuse.
3926 * nscd/aicache.c (addhstaiX): Fix a few small problems, cleanups,
3929 * sysdeps/posix/getaddrinfo.c (gaih_inet): If nscd reports no
3930 entry is available, believe it.
3932 * resolv/nss_dns/dns-host.c (gaih_getanswer_slice): If there are
3933 no answers return NSS_STATUS_NOTFOUND.
3934 (gaih_getanswer): Don't call gaih_getanswer_slice if the answer
3935 buffer does not have any content.
3937 2008-05-16 Ulrich Drepper <drepper@redhat.com>
3939 * string/strcasestr.c (CMP_FUNC): Use __strncasecmp, not strncasecmp.
3941 * sysdeps/posix/getaddrinfo.c (gaih_inet): After gethostbyname4_r
3942 lookup, don't assign canon unconditionally.
3944 2008-05-14 Ulrich Drepper <drepper@redhat.com>
3946 * string/Makefile (distribute): Add str-two-way.h.
3948 2008-03-29 Eric Blake <ebb9@byu.net>
3950 Rewrite string searches to O(n) rather than O(n^2).
3951 * string/str-two-way.h: New file. For linear fixed-allocation
3953 * string/memmem.c: New implementation.
3954 * string/strstr.c: New implementation.
3955 * string/strcasestr.c: New implementation.
3957 2008-04-11 Paolo Bonzini <bonzini@gnu.org>
3959 * posix/regcomp.c (optimize_utf8): Add a note on why we test
3961 (calc_first): Initialize constraint field.
3962 (duplicate_node_closure): Use it instead of special casing ANCHORS.
3963 Use search_duplicated_node to avoid loops. Fix grammar.
3964 (duplicate_node): Merge constraint field for all node types.
3965 (calc_eclosure_iter): Look at constraint field for all node types.
3966 * posix/regex_internal.c (create_cd_newstate): Don't look at
3969 2008-05-14 Ulrich Drepper <drepper@redhat.com>
3972 * configure.in: Don't use $CFLAGS when assembling, use $ASFLAGS.
3975 * string/endian.h: Add macros for fixed-size endian conversion.
3976 * bits/byteswap.h: Allow inclusion from <endian.h>.
3977 * sysdeps/i386/bits/byteswap.h: Likewise.
3978 * sysdeps/ia64/bits/byteswap.h: Likewise.
3979 * sysdeps/s390/bits/byteswap.h: Likewise.
3980 * sysdeps/x86_64/bits/byteswap.h: Likewise.
3981 * string/Makefile (tests): Add tst-endian.
3982 * string/tst-endian.c: New file.
3984 * iconvdata/run-iconv-test.sh: Use = instead of == in test.
3985 Patch by Reuben Thomas.
3987 2008-05-14 Joseph Myers <joseph@codesourcery.com>
3989 * iconvdata/Makefile (bug-iconv6-ENV, tst-iconv7-ENV): Define.
3991 2008-05-14 Ulrich Drepper <drepper@redhat.com>
3993 * iconvdata/bug-iconv6.c (do_test): Use de_DE.UTF-8 locale.
3996 * iconv/gconv_simple.c (BODY for __gconv_transform_ascii_internal):
3998 (BODY for __gconv_transform_internal_ascii): Likewise.
4001 * sysdeps/posix/getaddrinfo.c (get_scope): Loopback addresses have
4002 to be treated like link-local addresses.
4003 (match_prefix): Don't treat IPv4 loopback address special when
4004 converting to v4 mapped addressed.
4006 * sysdeps/posix/getaddrinfo.c (getaddrinfo): Call _res_hconf_init
4008 * posix/tst-rfc3484.c: Add dummy definition of _res_hconf_init.
4009 * posix/tst-rfc3484-2.c: Likewise.
4010 * posix/tst-rfc3484-3.c: Likewise.
4012 * sysdeps/posix/getaddrinfo.c: Implement handling of DCCP, UDPlite,
4015 * nss/getent.c (ahosts_keys_int): Handle all known socket types.
4017 * inet/netinet/in.h (IPPIPPROTO_DCCP, IPPROTO_UDPLITE): Define.
4019 * sysdeps/unix/sysv/linux/bits/socket.h (SOCK_DCCP): Define.
4021 2008-05-13 Ulrich Drepper <drepper@redhat.com>
4023 * po/lt.po: New file. From Lituanian translation team.
4025 2008-01-30 Alexandre Oliva <aoliva@redhat.com>
4027 Introduce TLS descriptors for i386 and x86_64.
4028 * include/inline-hashtab.h: New file, copied from 2005's
4029 libiberty, with fix for memory leak imported afterwards by
4030 Glauber de Oliveira Costa.
4031 * elf/tlsdeschtab.h: New file.
4032 * elf/dl-reloc.c (_dl_try_allocate_static_tls): Extract from...
4033 (_dl_allocate_static_tls): ... here. Rearrange failure path.
4034 (CHECK_STATIC_TLS): Move to...
4035 * elf/dynamic-link.h: ... this file.
4036 (TRY_STATIC_TLS): New macro.
4037 * elf/dl-conflict.c (CHECK_STATIC_TLS, TRY_STATIC_TLS): Override.
4038 * elf/elf.h (R_386_TLS_GOTDESC, R_386_TLS_DESC_CALL,
4039 R_386_TLS_DESC): Define.
4040 (R_X86_64_PC64, R_X86_GOTOFF64, R_X86_64_GOTPC32): Merge from
4042 (R_X86_64_GOTPC32_TLSDESC, R_X86_64_TLSDESC_CALL,
4043 R_X86_64_TLSDESC): Define.
4044 (R_386_NUM, R_X86_64_NUM): Adjust.
4045 * sysdeps/i386/Makefile (sysdep-dl-routines, sysdep_routines,
4046 sysdep-rtld-routines): Add tlsdesc and dl-tlsdesc for elf subdir.
4047 (gen-as-const-headers): Add tlsdesc.sym to csu subdir.
4048 * sysdeps/i386/dl-lookupcfg.h: New file. Introduce _dl_unmap to
4049 release tlsdesc_table.
4050 * sysdeps/i386/dl-machine.h: Include dl-tlsdesc.h.
4051 (elf_machine_type_class): Mark R_386_TLS_DESC as PLT class.
4052 (elf_machine_rel): Handle R_386_TLS_DESC.
4053 (elf_machine_rela): Likewise.
4054 (elf_machine_lazy_rel): Likewise.
4055 (elf_machine_lazy_rela): Likewise.
4056 * sysdeps/i386/dl-tls.h (struct dl_tls_index): Name it.
4057 * sysdeps/i386/dl-tlsdesc.S: New file.
4058 * sysdeps/i386/dl-tlsdesc.h: New file.
4059 * sysdeps/i386/tlsdesc.c: New file.
4060 * sysdeps/i386/tlsdesc.sym: New file.
4061 * sysdeps/i386/bits/linkmap.h (struct link_map_machine): Add
4063 * sysdeps/x86_64/Makefile (sysdep-dl-routines, sysdep_routines,
4064 sysdep-rtld-routines): Add tlsdesc and dl-tlsdesc for elf subdir.
4065 (gen-as-const-headers): Add tlsdesc.sym to csu subdir.
4066 * sysdeps/x86_64/dl-lookupcfg.h: New file. Introduce _dl_unmap to
4067 release tlsdesc_table.
4068 * sysdeps/x86_64/dl-machine.h: Include dl-tlsdesc.h.
4069 (elf_machine_runtime_setup): Set up lazy TLSDESC GOT entry.
4070 (elf_machine_type_class): Mark R_X86_64_TLSDESC as PLT class.
4071 (elf_machine_rel): Handle R_X86_64_TLSDESC.
4072 (elf_machine_rela): Likewise.
4073 (elf_machine_lazy_rel): Likewise.
4074 * sysdeps/x86_64/dl-tls.h (struct dl_tls_index): Name it.
4075 (__tls_get_addr): Do not declare for non-shared compiles.
4076 * sysdeps/x86_64/dl-tlsdesc.S: New file.
4077 * sysdeps/x86_64/dl-tlsdesc.h: New file.
4078 * sysdeps/x86_64/tlsdesc.c: New file.
4079 * sysdeps/x86_64/tlsdesc.sym: New file.
4080 * sysdeps/x86_64/bits/linkmap.h (struct link_map_machine): Add
4081 tlsdesc_table for both 32- and 64-bit structs.
4083 2008-05-11 Ulrich Drepper <drepper@redhat.com>
4085 * elf/dl-tls.c (__tls_get_addr): Optimize by moving slow path in
4086 its own function. This reduces the frame setup costs and more.
4088 2008-02-11 Joseph Myers <joseph@codesourcery.com>
4091 * sysdeps/ieee754/flt-32/w_expf.c (o_threshold): Correct value.
4092 * math/libm-test.inc (exp_test): Test 88.72269439697265625.
4094 2008-05-11 Ulrich Drepper <drepper@redhat.com>
4096 * io/openat.c (__openat_2): Also pass fd to __openat.
4097 * io/openat64.c (__openat64_2): Also pass fd to __openat64.
4098 Patch by Kristian Van Der Vliet <vanders@liqwyd.com>.
4100 * string/tester.c (test_memcmp): Add a few more tests.
4101 Patch by Mats Erik Andersson <ynglingatal@comhem.se>.
4103 2008-05-10 Ulrich Drepper <drepper@redhat.com>
4105 * nscd/cache.c (cache_add): Before returning with failure and this
4106 is the first use of the record, mark it as unusable.
4107 * nscd/aicache.c: Don't touch the dataset after cache_add returns
4108 reporting a failure.
4109 * nscd/grpcache.c: Likewise
4110 * nscd/hstcache.c: Likewise.
4111 * nscd/initgrcache.c: Likewise.
4112 * nscd/pwdcache.c: Likewise.
4113 * nscd/servicescache.c: Likewise.
4115 2008-05-10 Roland McGrath <roland@redhat.com>
4118 * sysdeps/unix/sysv/linux/sys/user.h: Replace with #error stub.
4120 2008-05-08 David S. Miller <davem@davemloft.net>
4122 * misc/truncate64.c (truncate64): Use __truncate not truncate.
4124 * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee751_j0l): Use __finitel.
4125 (__ieee754_y0l): Likewise.
4126 * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): Likewise.
4127 (__ieee754_y1l): Likewise.
4128 * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Use __ldexpl.
4129 * sysdeps/ieee754/ldbl-128/s_log1pl.c: Kill bogus prototypes for
4130 frexpl and ldexpl. math_private.h provides them and the latter
4132 (__log1pl): Use __frexpl.
4134 2008-05-10 Ulrich Drepper <drepper@redhat.com>
4136 * include/resolv.h: Adjust __libc_res_nquery and __libc_res_nsend
4138 * include/arpa/nameser_compat.h: Define T_UNSPEC.
4139 * nis/Versions (libnss_nis): Export _nss_nis_gethostbyname4_r.
4140 (libnss_nisplus): Export _nss_nisplus_gethostbyname4_r.
4141 * nis/nss_nis/nis-hosts.c (LINE_PARSER): Change to also handle
4143 (_nss_nis_gethostbyname4_r): New function.
4144 * nis/nss_nisplus/nisplus-hosts.c (_nss_nisplus_parse_hostent):
4145 Change to also handle af==AF_UNSPEC.
4146 (get_tablename): New function. Use it to avoid duplication.
4147 (_nss_nisplus_gethostbyname4_r): New function.
4148 * nscd/aicache.c (addhstaiX): Use gethostbyname4_r function is
4150 * nss/Versions (libnss_files): Export _nss_files_gethostbyname4_r.
4151 * nss/nss.h: Define struct gaih_addrtuple.
4152 * nss/nss_files/files-hosts.c (LINE_PARSER): Change to also handle
4154 (_nss_files_gethostbyname4_r): New function.
4155 * resolv/Versions (libnss_dns): Export _nss_dns_gethostbyname4_r.
4156 * resolv/gethnmaddr.c: Adjust __libc_res_nsearch and __libc_res_nquery
4158 * resolv/res_query.c (__libc_res_nquery): Take two additional
4159 parameters for second answer buffer. Handle type=T_UNSPEC to mean
4160 look up IPv4 and IPv6.
4162 * resolv/res_send.c (__libc_res_nsend): Take five aditional parameters
4163 for an additional query and answer buffer. Pass to send_vc and
4165 (send_vc): Send possibly two requests and receive two answers.
4166 (send_dg): Likewise.
4167 * resolv/nss_dns/dns-host.c: Adjust calls to __libc_res_nsearch and
4169 (_nss_dns_gethostbyname4_r): New function.
4170 (gaih_getanswer_slice): Likewise.
4171 (gaih_getanswer): Likewise.
4172 * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Adjust
4173 __libc_res_nquery call.
4174 * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyaddr_r): Likewise.
4175 (_nss_dns_getnetbyname_r): Adjust __libc_res_nsearch call.
4176 * sysdeps/posix/getaddrinfo.c: Use gethostbyname4_r function is
4179 2008-05-05 David S. Miller <davem@davemloft.net>
4181 * sysdeps/sparc/sparc32/Makefile: Use -mcpu=v7 for initfini.s build.
4182 * sysdeps/sparc/sparc64/Makefile: Use -mcpu=v9 for initfini.s build.
4184 2007-09-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
4186 Fix termios bit macros.
4187 Move *DLY definitions where they belong, in termios.h.
4188 Add *[0-3] definitions.
4189 Fixes confusion between VT and FF.
4190 * sysdeps/mach/hurd/bits/ioctls.h (NL0, NL1, TAB0, TAB1, TAB2, CR0,
4191 CR1, CR2, CR3, FF0, FF1, BS0, BS1): Undefine these at start if they
4192 are already defined to avoid collision with termios.h.
4193 (NLDLY, TABDLY, TAB3, CRDLY, VTDLY, BSDLY): Remove macros.
4194 * bits/termios.h [__USE_MISC || __USE_XOPEN] (NL0, NL1, TAB0,
4195 TAB1, TAB2, CR0, CR1, CR2, CR3, FF0, FF1, BS0, BS1): Likewise.
4196 [__USE_BSD || __USE_XOPEN] (OCRNL, ONOCR, ONLRET): New macros.
4197 [__USE_MISC || __USE_XOPEN] (NLDLY, NL0, NL1, TABDLY, TAB0, TAB1, TAB2,
4198 TAB3, CRDLY, CR0, CR1, CR2, CR3, FFDLY, FF0, FF1, BSDLY, BS0, BS1,
4199 VTDLY, VT0, VT1): New macros.
4200 [__USE_GNU] (OLCUC): Change value of macro.
4201 [__USE_XOPEN] (OFILL): New macro.
4202 [__USE_BSD] (CRTSCTS): Change value.
4203 (CRTS_IFLOW, CCTS_OFLOW): Change into compatibility macros.
4204 [__USE_BSD] (CDTRCTS, CHWFLOW): New macros.
4205 (B7200, B14400, B28800, B76800): New macros.
4207 2008-05-01 David S. Miller <davem@davemloft.net>
4209 * sysdeps/unix/sysv/linux/sparc/sparc32/ucontext_i.sym: New file.
4210 * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile [$(subdir) = stdlib]:
4211 (gen-as-const-headers): Add it.
4212 * sysdeps/unix/sysv/linux/sparc/sparc32/getcontext.S: New file.
4213 * sysdeps/unix/sysv/linux/sparc/sparc32/makecontext.c: Likewise.
4214 * sysdeps/unix/sysv/linux/sparc/sparc32/setcontext.S: Likewise.
4215 * sysdeps/unix/sysv/linux/sparc/sparc32/swapcontext.S: Likewise.
4217 * sysdeps/unix/sysv/linux/sparc/sparc32/syscall.S: Add support for
4218 six system call parameters.
4219 * sysdeps/unix/sysv/linux/sparc/sparc64/syscall.S: Likewise.
4221 2008-04-30 Ulrich Drepper <drepper@redhat.com>
4223 * sysdeps/unix/sysv/linux/bits/resource.h: Define RUSAGE_THREAD and
4225 * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Likewise.
4226 * sysdeps/unix/sysv/linux/alpha/bits/resource.h: Likewise.
4228 2008-04-30 Jakub Jelinek <jakub@redhat.com>
4230 * stdlib/tst-setcontext.c: Include unistd.h.
4232 2008-04-25 David S. Miller <davem@davemloft.net>
4234 * sysdeps/unix/sysv/linux/sparc/sparc64/semctl.c (semctl):
4235 Pass "union semun" properly in to sys_ipc, it must be passed
4236 by value, not by reference.
4238 2008-04-22 Jakub Jelinek <jakub@redhat.com>
4240 * nscd/Makefile (nscd-cflags): Set back to -fpie.
4241 * nscd/nscd.h (mem_in_flight): Add attribute_tls_model_ie.
4242 * nscd/connections.c (mem_in_flight): Likewise.
4244 * nscd/nscd.h (dbs): Make hidden.
4246 * sysdeps/unix/sysv/linux/times.c (__times): Fix check for EFAULT.
4247 Avoid returning -1, return 0 instead.
4249 2008-04-19 Ulrich Drepper <drepper@redhat.com>
4251 * resolv/res_mkquery.c (__res_nopt): Use NS_PUT16 instead of ns_put16.
4253 2008-04-15 Ulrich Drepper <drepper@redhat.com>
4256 * sysdeps/unix/sysv/linux/times.c: New file.
4259 * nscd/nscd.h: Define enum in_flight, mem_in_flight, and
4260 mem_in_flight_list variables. Add new parameter to mempool_alloc
4262 * nscd/mem.c (mempool_alloc): Take additional parameter. Initialize
4263 appropriate mem_in_flight element.
4264 (gc): Take allocations which have not yet been committed to the
4265 database into account.
4266 * nscd/cache.c (cache_add): Add new parameter to mempool_alloc call.
4267 Reset mem_in_flight before returning.
4268 * nscd/connections.c (nscd_run_worker): Initialize mem_in_flight and
4269 cue it up in mem_in_flight_list.
4270 * nscd/aicache.c: Adjust mempool_alloc call.
4271 * nscd/grpcache.c: Likewise.
4272 * nscd/hstcache.c: Likewise.
4273 * nscd/initgrcache.c: Likewise.
4274 * nscd/pwdcache.c: Likewise.
4275 * nscd/servicescache.c: Likewise.
4276 * nscd/Makefile (nscd-flags): Until ld is fixed, use -fpic instead
4279 * nscd/connections.c (handle_request): Provide better error message
4280 in case SELinux forbids the service.
4282 * version.h (VERSION): Bump to 2.8.90.
4284 2008-04-17 Jakub Jelinek <jakub@redhat.com>
4286 * sysdeps/unix/sysv/linux/dl-osinfo.h: Include fcntl.h.
4288 2008-04-11 Ulrich Drepper <drepper@redhat.com>
4290 * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h (__signbitl):
4291 Also use for 32-bit.
4292 * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c (__nearbyintl): Use
4293 __nextafter instead of nextafter to avoid local PLT.
4294 * sysdeps/powerpc/fpu/e_sqrt.c: Avoid call to fetestexcept.
4295 * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
4297 * scripts/data/localplt-powerpc64-linux-gnu.data: New file.
4299 * sysdeps/powerpc/fpu/fenv_libc.h: Add libm_hidden_proto for
4301 * sysdeps/powerpc/fpu/fe_nomask.c: Add libm_hidden_def. Include
4302 <fenv_libc.h> instead of <fenv.h>.
4303 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c: Likewise.
4304 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c: Likewise.
4306 * sysdeps/powerpc/bits/fenv.h: Make safe for C++.
4308 * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h: New file.
4309 * sysdeps/powerpc/fpu/fegetexcept.c (__fegetexcept): Rename
4310 function from fegetexcept and make old name weak alias.
4311 * include/fenv.h: Declare __fegetexcept.
4312 * sysdeps/powerpc/fpu/fedisblxcpt.c: Use __fegetexcept instead of
4314 * sysdeps/powerpc/fpu/feenablxcpt.c: Likewise.
4315 * sysdeps/powerpc/fpu/fraiseexcpt.c (__feraiseexcept): Avoid call
4317 * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (__log1pl): Use __frexpl
4318 instead of frexpl to avoid local PLT.
4319 * math/s_significandl.c (__significandl): Use __ilogbl instead of
4320 ilogbl to avoid local PLT.
4321 * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (__expm1l): Use __ldexpl
4322 instead of ldexpl to avoid local PLT.
4323 * sysdeps/ieee754/ldbl-128ibm/e_expl.c (__ieee754_expl): Use
4324 __roundl not roundl to avoid local PLT.
4325 * sysdeps/ieee754/ldbl-128/e_j0l.c: Use function names which avoid
4326 local PLTs. Use __sincosl instead of separate sinl and cosl
4328 * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
4330 * sysdeps/unix/sysv/linux/configure.in: Bump minimal kernel
4331 version for ppc64 to 2.4.21 since without it makecontext will fail.
4333 * elf/tls-macros.h [__powerpc64__] (__TLS_GET_ADDR): Define according
4335 [__powerpc64__] (TLS_LD): Use __TLS_GET_ADDR instead of
4337 [__powerpc64__] (TLS_GD): Likewise.
4339 2007-11-20 Ryan S. Arnold <rsa@us.ibm.com>
4342 * sysdeps/powerpc/powerpc32/fpu/s_lround.S (__lround): Fixed erroneous
4343 result when x is +/-nextafter(+/-0.5,-/+1) i.e. all 1's in the
4345 * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S (__llround):
4346 Likewise. Also account for when x is an odd number between 2^52
4348 * sysdeps/powerpc/powerpc64/fpu/s_llround.S (__llround): Likewise.
4349 * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S (__llroundf): Likewise.
4350 * math/libm-test.inc (lround_test, llround_test): Added test cases to
4351 detect aforementioned erroneous conditions.
4353 2008-04-11 Jakub Jelinek <jakub@redhat.com>
4355 * configure.in: Check for -fno-section-anchors in addition to
4356 -fno-toplevel-reorder.
4358 2008-04-11 Ulrich Drepper <drepper@redhat.com>
4360 * include/features.h (__GLIBC_MINOR__): Bump to 8.
4362 * sysdeps/powerpc/powerpc32/fpu/s_lroundf.S: Remove duplicate comment.
4363 * sysdeps/powerpc/powerpc32/power5+/fpu/s_llroundf.S: Likewise.
4364 * sysdeps/powerpc/powerpc32/power6/fpu/s_llroundf.S: Likewise.
4365 * sysdeps/powerpc/powerpc64/fpu/s_lrint.S: Likewise.
4366 * sysdeps/powerpc/powerpc64/fpu/s_lround.S: Likewise.
4367 * sysdeps/powerpc/powerpc64/fpu/s_lroundf.S: Likewise.
4369 2008-04-11 Jakub Jelinek <jakub@redhat.com>
4372 * time/era.c: Transform __libc_setlocale_lock into rwlock.
4373 * time/alt_digit.c: Likewise.
4374 * wcsmbs/wcsmbsload.c: Likewise.
4376 2008-04-10 Ulrich Drepper <drepper@redhat.com>
4378 * version.h (VERSION): Bump to 2.8.
4380 * timzeone/asia: Update from tzdata2008b.
4381 * timezone/backward: Likewise.
4382 * timezone/europe: Likewise.
4383 * timezone/northamerica: Likewise.
4384 * timezone/southamerica: Likewise.
4385 * timezone/iso3166.tab: Likewise.
4386 * timezone/leapseconds: Likewise.
4387 * timezone/zone.tab: Likewise.
4388 * timezone/private.h: Update from tzcode2008a.
4389 * timezone/zdump.c: Likewise.
4390 * timezone/zic.c: Likewise.
4392 2008-01-24 Steven Munroe <sjmunroe@us.ibm.com>
4395 * sysdeps/powerpc/powerpc64/dl-machine.h (PPC_DCBT, PPC_DCBF):
4396 Define additonal Data Cache Block instruction macros.
4397 (elf_machine_fixup_plt): Add dcbt for opd and plt entries.
4398 Replace dcbst with dcbf and sync with sync/isync.
4400 2008-02-21 Alan Modra <amodra@bigpond.net.au>
4402 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_type_class):
4403 Always set ELF_RTYPE_CLASS_PLT.
4404 (elf_machine_lookup_noexec_p, elf_machine_lookup_noplt_p): Delete.
4406 2008-04-03 Steven Munroe <sjmunroe@us.ibm.com>
4408 * sysdeps/powerpc/powerpc32/power4/hp-timing.c: New file.
4409 * sysdeps/powerpc/powerpc32/power4/hp-timing.h: New file.
4410 * sysdeps/powerpc/powerpc64/hp-timing.h [_ARCH_PWR4] (HP_TIMING_NOW):
4411 For ISA 2.01 and later replace mftb with mfspr 268.
4413 2008-02-19 Steven Munroe <sjmunroe@us.ibm.com>
4416 * sysdeps/powerpc/fpu/Makefile (libm-tests): Add test-powerpc-snan.
4417 * sysdeps/powerpc/fpu/test-powerpc-snan.c: New file.
4419 2008-02-18 Steven Munroe <sjmunroe@us.ibm.com>
4422 * sysdeps/powerpc/powerpc32/fpu/s_isnan.S: New file.
4423 * sysdeps/powerpc/powerpc32/fpu/s_isnan.c: Removed.
4424 * sysdeps/powerpc/powerpc64/fpu/s_isnan.S: New file.
4425 * sysdeps/powerpc/powerpc64/fpu/s_isnan.c: Removed.
4427 2008-04-10 Jakub Jelinek <jakub@redhat.com>
4429 * stdlib/tst-makecontext.c (othervar): New variable.
4430 (cf): Test sign extending the argument to long.
4432 2008-03-03 Steven Munroe <sjmunroe@us.ibm.com>
4434 * sysdeps/powerpc/powerpc32/power5/fpu/s_isnan.S: New file.
4435 * sysdeps/powerpc/powerpc32/power5/fpu/s_isnanf.S: New file.
4436 * sysdeps/powerpc/powerpc32/power6/fpu/s_isnan.S: New file.
4437 * sysdeps/powerpc/powerpc32/power6/fpu/s_isnanf.S: New file.
4438 * sysdeps/powerpc/powerpc64/power5/fpu/s_isnan.S: New file.
4439 * sysdeps/powerpc/powerpc64/power6/fpu/s_isnan.S: New file.
4440 * sysdeps/powerpc/powerpc64/power6x/fpu/s_isnan.S: New file.
4442 2008-02-22 Alan Modra <amodra@bigpond.net.au>
4444 * elf/Makefile (tests): Substitute tests-vis-yes here.
4445 (tests-vis-yes): Delete.
4446 (modules-name, modules-vis-yes): Similarly.
4448 2008-02-12 Pete Eberlein <eberlein@us.ibm.com>
4451 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
4452 Preserve sign in signgamp when x is zero.
4454 2007-10-26 Steven Munroe <sjmunroe@us.ibm.com>
4456 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.S: New File.
4457 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.c: Removed.
4458 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.S: New File.
4459 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.c: Removed.
4460 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt.S: New File.
4461 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf.S: New File.
4463 2008-04-09 Ulrich Drepper <drepper@redhat.com>
4466 * sysdeps/i386/i686/memcpy.S: Optimize copying of equally aligned
4470 * sysdeps/unix/sysv/syscalls.list: The times syscall doesn't have
4471 a reserved error value.
4473 * stdlib/tst-makecontext.c: Change parameter to cf to negative
4474 value to check for correct sign extension.
4477 * sysdeps/unix/sysv/linux/x86_64/makecontext.c (__makecontext):
4478 Copy 64-bit parameter values even though this is not required in
4481 * sysdeps/unix/sysv/linux/x86_64/vfork.S (__vfork): Record return
4484 2008-02-14 Daniel Jacobowitz <dan@codesourcery.com>
4486 * sysdeps/unix/sysv/linux/i386/vfork.S (__vfork): Record return
4489 2008-04-09 Jakub Jelinek <jakub@redhat.com>
4491 * nss_files/files-XXX.c (_nss_files_getXXent_r): Restore saved errno.
4493 2008-04-09 Ulrich Drepper <drepper@redhat.com>
4496 * libio/iofwrite.c (_IO_fwrite): Return correct count if flushing
4497 in line-buffered stream failed.
4498 * libio/iofwrite_u.c (fwrite_unlocked): Likewise.
4500 2008-04-08 Ulrich Drepper <drepper@redhat.com>
4503 * scripts/abi-versions.awk: If the version specified by
4504 --enable-oldest-abi is older than the first version for this
4505 architecture, use the default version.
4507 * locale/programs/ld-collate.c (collate_read): Ignore script lines
4508 as well when ignoring the whole category.
4510 2008-04-07 Ulrich Drepper <drepper@redhat.com>
4513 * sysdeps/unix/sysv/linux/net/ethernet.h: Add a few more
4514 ETHERTYPE_* definitions.
4515 Patch partly by Aurelien Jarno <aurelien@aurel32.net>.
4517 2008-04-07 Jakub Jelinek <jakub@redhat.com>
4519 * stdlib/mbtowc.c (__no_r_state): Remove.
4520 (mbtowc): New static state variable. Use it instead of
4522 * stdlib/wctomb.c (__no_r_state): Remove extern decl.
4523 (__wctomb_state): New hidden variable.
4524 (wctomb): Use __wctomb_state instead of __no_r_state.
4525 * debug/wctomb_chk.c (__no_r_state): Remove extern decl.
4526 (__wctomb_state): New extern decl.
4527 (__wctomb_chk): Use __wctomb_state instead of __no_r_state.
4529 2008-04-07 Ulrich Drepper <drepper@redhat.com>
4532 * resolv/res_init.c: Handle scope IDs in resolv.conf.
4534 2008-04-07 Jakub Jelinek <jakub@redhat.com>
4536 * malloc/mtrace.pl: Use $@ instead of $* to keep perl 5.10 quiet.
4538 2008-04-06 Ulrich Drepper <drepper@redhat.com>
4540 * po/nl.po: Update from translation team.
4542 2008-03-31 Ulrich Drepper <drepper@redhat.com>
4545 * string/strfry.c: Handle empty strings again.
4547 2008-03-30 Ulrich Drepper <drepper@redhat.com>
4550 * intl/dcigettext.c (__dcigettext): Get reader lock for locale data
4551 before looking for translation.
4552 * locale/duplocale.c: Transform __libc_setlocale_lock into rwlock.
4553 * locale/freelocale.c: Likewise.
4554 * locale/newlocale.c: Likewise.
4555 * locale/setlocale.c: Likewise.
4556 Based partially on a patch by ryo@np.css.fujitsu.com.
4558 2008-03-30 Jakub Jelinek <jakub@redhat.com>
4560 * intl/dcigettext.c (_nl_find_msg): Reread nconversions after
4561 acquiring wrlock. Do conv_tab allocation while holding lock.
4562 * intl/Makefile: Add rules to build and run tst-gettext6.
4563 * intl/tst-gettext6.c: New test.
4564 * intl/tst-gettext6.sh: New file.
4566 2008-03-30 Ulrich Drepper <drepper@redhat.com>
4568 * po/nl.po: Update from translation team.
4570 * sysdeps/unix/opendir.c (__alloc_dir): If allocation fails for size
4571 provided through st_blksize, try the default size before giving up.
4573 2008-03-29 Ulrich Drepper <drepper@redhat.com>
4575 * stdio-common/vfprintf.c (vfprintf): Correct overflow test.
4578 * sysdeps/posix/tempname.c (__gen_tempname): Correct flag selection.
4580 * posix/getopt.c (_getopt_internal_r): Remove old POSIX-demanded
4581 error message. POSIX today does not require the messages to be in
4582 a specific form. Suggested by Jim Meyering <jim@meyering.net>.
4585 * sunrpc/auth_unix.c: Unify printed strings.
4586 * sunrpc/clnt_tcp.c: Likewise.
4587 * sunrpc/clnt_udp.c: Likewise.
4588 * sunrpc/clnt_unix.c: Likewise.
4589 * sunrpc/svc_tcp.c: Likewise.
4590 * sunrpc/svc_udp.c: Likewise.
4591 * sunrpc/svc_unix.c: Likewise.
4592 * sunrpc/xdr.c: Likewise.
4593 * sunrpc/xdr_array.c: Likewise.
4594 * sunrpc/xdr_rec.c: Likewise.
4595 * sunrpc/xdr_ref.c: Likewise.
4596 * locale/programs/ld-time.c (time_finish): Unify messages.
4597 * locale/programs/locfile.c (handle_copy): Fix typo.
4598 * nscd/nscd.c (options): Fix typo.
4601 * stdlib/strtod_l.c: Use correct sign for result in one more
4603 Patch by Eric Blake <ebb9@byu.net>.
4605 2008-03-27 Jakub Jelinek <jakub@redhat.com>
4607 * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Add open
4608 and creat system calls.
4609 * sysdeps/unix/sysv/linux/alpha/syscalls.list: Remove open system
4611 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Remove open and creat
4613 * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: Likewise.
4614 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
4615 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
4617 2008-03-27 Ulrich Drepper <drepper@redhat.com>
4619 * sysdeps/unix/sysv/linux/bits/local_lim.h: Undefined ARG_MAX if
4620 <linux/limits.h> has defined it.
4621 * sysdeps/unix/sysv/linux/sys/param.h: Define NCARGS to the legacy
4622 ARG_MAX value and prevent ARG_MAX from being defined by the kernel
4624 * sysdeps/unix/sysv/linux/sysconf.c: Define legacy_ARG_MAX and use
4625 it instead of ARG_MAX.
4627 2008-03-25 Jakub Jelinek <jakub@redhat.com>
4629 * posix/gai.conf: Fix comment for scope nullbits.
4630 * sysdeps/posix/getaddrinfo.c (gaiconf_init): If /bits is not present,
4631 default to 128 bits for v4 mapped addresses.
4633 2008-03-07 Martin Schwidefsky <schwidefsky@de.ibm.com>
4635 * sysdeps/s390/fpu/fegetenv.c (fegetenv): Remove PTRACE_PEEKUSER
4636 ptrace call to get the ieee_instruction_pointer from the kernel.
4637 * sysdeps/s390/fpu/fesetenv.c (fesetenv): Remove PTRACE_POKEUSER
4638 ptrace call to set the ieee_instructtion_pointer.
4639 * sysdeps/unix/sysv/linux/s390/sys/user.h (struct _user_regs_struct):
4640 Add comment that ieee_instruction_pointer is always 0.
4642 2008-03-09 Andreas Jaeger <aj@suse.de>
4645 * sysdeps/ieee754/dbl-64/s_rint.c (__rint): Handle j0==18.
4646 * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Likewise.
4647 Patch by Mark Elliott <mark.h.elliott@lmco.com>.
4649 * math/libm-test.inc (nearbyint_test): Add new test cases from #5857.
4650 (rint_test): Likewise.
4652 2008-03-24 Ulrich Drepper <drepper@redhat.com>
4654 * nis/nis_call.c (nis_server_cache_search): Save errno around stat
4656 (__nisfind_server): Similar for open readColdStartFile call.
4657 Patch partially by Jim Meyering.
4658 * nss/nss_files/files-XXX.c (_nss_files_getXXent_r): Save errno
4659 around internal_setent call.
4661 * po/vi.po: New Vietnamese translation.
4663 * sysdeps/unix/sysv/linux/adjtime.c: Correctly use
4666 * sysdeps/unix/sysv/linux/bits/sched.h: Add new CLONE_* flags,
4667 remove CLONE_STOPPED.
4669 2008-02-10 Jim Meyering <meyering@redhat.com>
4671 Remove useless "if" before "free":
4672 * elf/ldconfig.c (parse_conf_include): Likewise.
4673 * gmon/gmon.c (weak_alias): Likewise.
4674 * iconv/gconv_conf.c (__gconv_get_path): Likewise.
4675 * inet/rcmd.c (__validuser2_sa): Likewise.
4676 * intl/bindtextdom.c (set_binding_values): Likewise.
4677 * intl/loadmsgcat.c (_nl_load_domain, _nl_unload_domain): Likewise.
4678 * libio/genops.c (save_for_backup): Likewise.
4679 * libio/wgenops.c (save_for_wbackup): Likewise.
4680 * locale/programs/ld-collate.c (collate_read): Likewise.
4681 * locale/programs/linereader.c (get_string): Likewise.
4682 * nis/nss_compat/compat-pwd.c (give_pwd_free): Likewise.
4683 * nis/nss_compat/compat-spwd.c (give_spwd_free): Likewise.
4684 * resolv/res_debug.c (do_section): Likewise.
4685 * sunrpc/xdr_sizeof.c (x_inline, xdr_sizeof): Likewise.
4686 * sysdeps/mach/hurd/if_index.c (libc_hidden_def): Likewise.
4687 * sysdeps/posix/sprofil.c (__sprofil): Likewise.
4688 * time/lc-time-cleanup.c (_nl_cleanup_time): Likewise.
4689 * time/tzset.c (tzset_internal): Likewise.
4691 2008-03-18 Jakub Jelinek <jakub@redhat.com>
4693 * sysdeps/unix/sysv/linux/dl-sysdep.h: Use __ASSEMBLER__ instead
4696 2008-03-11 Ulrich Drepper <drepper@redhat.com>
4699 * iconv/iconv_charmap.c (charmap_conversion): Pass name of output file
4700 not stream for output file. Open output file here.
4701 * iconv/iconv_prog.c (process_lock): Take pointer to output stream
4702 and output file name.
4703 (process_fd): Likewise.
4704 (process_file): Likewise.
4705 (main): Adjust callers of changed functions.
4706 * iconv/iconv_prog.h: Adjust prototype.
4708 2008-03-09 Andreas Jaeger <aj@suse.de>
4711 * sysdeps/ia64/ieee754.h: Use protected namespace
4712 __BIG_ENDIAN/__LITTLE_ENDIAN.
4713 * sysdeps/ieee754/ieee754.h: Likewise.
4714 Patch by Aurelien Jarno <aurelien@aurel32.net>.
4716 2008-03-08 Roland McGrath <roland@frob.com>
4718 * hurd/hurdsig.c (_hurd_internal_post_signal): When normal rules would
4719 ignore a signal that came from a machine exception, treat it as a
4720 fatal core-dump signal instead.
4721 Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>.
4723 * sysdeps/mach/hurd/i386/trampoline.c (_hurd_setup_sighandler):
4724 Clear DF bit in thread state's eflags.
4725 Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>.
4727 2008-03-08 Ulrich Drepper <drepper@redhat.com>
4730 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Consume closing brace
4731 of NAN(...) sequence.
4732 * stdlib/Makefile (tests): Add tst-strtod6.
4733 * stdlib/tst-strtod6.c: New file.
4735 * inet/inet6_opt.c (inet6_opt_init): Check extlen for overflow.
4738 * posix/getopt.c (_getopt_internal_r): Clarify error message by
4739 putting offending option character in quotes. Clean up error
4741 * po/be.po: Adjust msgstr in translation file.
4742 * po/bg.po: Likewise.
4743 * po/ca.po: Likewise.
4744 * po/cs.po: Likewise.
4745 * po/da.po: Likewise.
4746 * po/de.po: Likewise.
4747 * po/es.po: Likewise.
4748 * po/fr.po: Likewise.
4749 * po/hr.po: Likewise.
4750 * po/ko.po: Likewise.
4751 * po/nl.po: Likewise.
4752 * po/rw.po: Likewise.
4753 * po/sk.po: Likewise.
4754 * po/sv.po: Likewise.
4755 * po/tr.po: Likewise.
4756 * po/zh_CN.po: Likewise.
4757 * po/zh_TW.po: Likewise.
4760 * inet/inet6_opt.c (inet6_opt_init): Fix ip6h_len computation.
4761 Patch by Roland Bless <roland@bless.de>.
4763 * sysdeps/unix/sysv/linux/dl-sysdep.c: Avoid unnecessary code for
4765 * elf/Makefile (routines): Add dl-sysdep.
4766 (elide-routines.os): Likewise.
4768 2008-03-07 Ulrich Drepper <drepper@redhat.com>
4771 * elf/dl-sysdep.c: Undefine ROUND after use.
4772 * sysdeps/generic/ldsodefs.h [HAVE_DL_DISCOVER_OSVERSION]
4773 (struct rtld_global_ro): Add _dl_tls_get_addr_soft element.
4774 * elf/rtld.c (rtld_global_ro): Initialize _dl_discover_osversion.
4775 * sysdeps/unix/sysv/linux/dl-osinfo.h: Move _dl_discover_osversion
4777 * sysdeps/unix/sysv/linux/dl-sysdep.c: ...here.
4778 * sysdeps/unix/sysv/linux/dl-sysdep.h: Declare _dl_discover_osversion
4780 * sysdeps/unix/sysv/linux/sysconf.c: Handle _SC_ARG_MAX here.
4782 * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Add
4783 _dl_tls_get_addr_soft element.
4784 * elf/rtld.c (rtld_global_ro): Initialize _dl_tls_get_addr_soft.
4785 * elf/Versions (ld): Don't export _dl_tls_get_addr_soft.
4786 * dlfcn/dlinfo.c (dlinfo_doit): Access dl_tls_get_addr_soft through
4788 * elf/dl-iteratephdr.c (__dl_iterate_phdr): Likewise.
4789 * elf/dl-tls.c (_dl_tls_get_addr_soft): Use attribute_hidden instead
4790 of internal_function.
4792 * stdlib/Makefile (aux): Add tens_in_limb.
4793 * stdlib/strtod_l.c: Move _tens_in_limb definition to...
4794 * stdlib/tens_in_limb.c: ...here. New file.
4797 * sysdeps/unix/sysv/linux/pathconf.h: Declare
4798 __statfs_chown_restricted.
4799 * sysdeps/unix/sysv/linux/fpathconf.c: Call __statfs_chown_restricted
4800 for _PC_CHOWN_RESTRICTED.
4801 * sysdeps/unix/sysv/linux/pathconf.c: Likewise.
4802 Implement __statfs_chown_restricted.
4803 * sysdeps/unix/sysv/linux/bits/posix_opt.h: Change
4804 _POSIX_CHOWN_RESTRICTED value to zero.
4805 * io/tst-fchownat.c: Correctly handle _POSIX_CHOWN_RESTRICTED
4808 * sysdeps/x86_64/rtld-memset.c: New file.
4810 2008-02-26 Harsha Jagasia <harsha.jagasia@amd.com>
4812 * sysdeps/x86_64/cacheinfo.c (NOT_USED_RIGHT_NOW): Remove ifdef guards.
4814 * sysdeps/x86_64/memset.S: Rewrite non-SSE code path as tuned for AMD
4815 Barcelona machine. Make default fall through branch of
4816 __x86_64_preferred_memory_instruction check as the integer code path.
4818 2007-10-15 H.J. Lu <hongjiu.lu@intel.com>
4820 * sysdeps/x86_64/cacheinfo.c
4821 (__x86_64_preferred_memory_instruction): New variable.
4822 (init_cacheinfo): Initialize __x86_64_preferred_memory_instruction.
4824 * sysdeps/x86_64/memset.S: Rewrite.
4826 2008-03-04 Jakub Jelinek <jakub@redhat.com>
4828 * include/stdio.h (__asprintf_chk, __dprintf_chk,
4829 __obstack_printf_chk): New prototypes.
4830 (__vasprintf_chk, __vdprintf_chk,
4831 __obstack_vprintf_chk): Likewise.
4832 Add libc_hidden_proto.
4834 (_IO_obstack_jumps): No longer static, add attribute_hidden.
4835 * libio/bits/stdio-ldbl.h (__asprintf_chk, __dprintf_chk,
4836 __obstack_printf_chk, __vasprintf_chk, __vdprintf_chk,
4837 __obstack_vprintf_chk): Add __LDBL_REDIR_DECL.
4838 * libio/bits/stdio2.h (__asprintf_chk, __dprintf_chk,
4839 __obstack_printf_chk, __vasprintf_chk, __vdprintf_chk,
4840 __obstack_vprintf_chk): New prototypes.
4841 (asprintf, __asprintf, dprintf, obstack_printf, vasprintf, vdprintf,
4842 obstack_vprintf): New inlines.
4843 * debug/dprintf_chk.c: New file.
4844 * debug/vdprintf_chk.c: New file.
4845 * debug/asprintf_chk.c: New file.
4846 * debug/vasprintf_chk.c: New file.
4847 * debug/obprintf_chk.c: New file.
4848 * debug/tst-chk1.c (do_test): Add asprintf and obstack_printf tests.
4849 * debug/Versions (__asprintf_chk, __dprintf_chk, __obstack_printf_chk,
4850 __vasprintf_chk, __vdprintf_chk, __obstack_vprintf_chk): Export
4852 * debug/Makefile: Build asprintf_chk, vasprintf_chk, dprintf_chk,
4853 vdprintf_chk and obprintf_chk, set CFLAGS for them.
4854 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c (__nldbl___vasprintf_chk,
4855 __nldbl___vdprintf_chk, __nldbl___obstack_vprintf_chk): Add
4857 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl___vasprintf_chk,
4858 __nldbl___vdprintf_chk, __nldbl___obstack_vprintf_chk): New prototypes.
4859 * sysdeps/ieee754/ldbl-opt/Versions (__nldbl___asprintf_chk,
4860 __nldbl___vasprintf_chk, __nldbl___dprintf_chk, __nldbl___vdprintf_chk,
4861 __nldbl___obstack_printf_chk, __nldbl___obstack_vprintf_chk): Export
4863 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add asprintf_chk,
4864 vasprintf_chk, dprintf_chk, vdprintf_chk, obstack_printf_chk and
4865 obstack_vprintf_chk.
4866 * sysdeps/ieee754/ldbl-opt/nldbl-obstack_vprintf_chk.c: New file.
4867 * sysdeps/ieee754/ldbl-opt/nldbl-dprintf_chk.c: New file.
4868 * sysdeps/ieee754/ldbl-opt/nldbl-obstack_printf_chk.c: New file.
4869 * sysdeps/ieee754/ldbl-opt/nldbl-asprintf_chk.c: New file.
4870 * sysdeps/ieee754/ldbl-opt/nldbl-vdprintf_chk.c: New file.
4871 * sysdeps/ieee754/ldbl-opt/nldbl-vasprintf_chk.c: New file.
4873 2008-03-04 Ulrich Drepper <drepper@redhat.com>
4876 * misc/sys/queue.h: Add STAILQ_CONCAT and TAILQ_CONCAT definitions.
4877 Patch by Roy Marples <roy@marples.name>.
4880 * malloc/malloc.c: Fix typo in comment.
4883 * locale/iso-639.def: Add Shuswap.
4885 2008-02-25 Jakub Jelinek <jakub@redhat.com>
4888 * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr2_r): Don't
4889 overwrite *h_errnop/*errnop values from getanswer_r in case of
4892 2008-03-03 Ulrich Drepper <drepper@redhat.com>
4895 * nscd/connections.c (dbs): Add initializers for .suggested_module.
4896 (verify_persistent_db): Remove one unnecessary test and add a new one
4897 for bad configuration.
4898 (nscd_init): Improve error reported when persistent database cannot
4900 * nscd/nscd.h (DEFAULT_SUGGESTED_MODULE): Define.
4901 * nscd/nscd_conf.c (nscd_parse_file): Provide default values for
4902 .suggested_module and .max_db_size and case config file says the
4904 * nscd/nscd_helper.c (get_mapping): Fail if hash table module is zero.
4907 * nis/ypclnt.c (yp_order): Fix handling of return value of
4909 Patch by Jeff Moyer <jmoyer@redhat.com>.
4911 * po/fr.po: Update from translation team.
4913 2008-02-22 Andreas Jaeger <aj@suse.de>,
4914 Carlos O'Donell <carlos@systemhalted.org>
4917 * FAQ.in: Describe why glibc needs to be compiled with
4920 2008-02-19 Roland McGrath <roland@redhat.com>
4922 * elf/elf.h (SHT_GNU_ATTRIBUTES): New macro.
4924 2008-02-15 Ulrich Drepper <drepper@redhat.com>
4927 * resolv/netdb.h: Make NI_MAXHOST and NI_MAXSERV available when
4928 __USE_MISC is defined.
4930 2008-02-10 Ulrich Drepper <drepper@redhat.com>
4932 * sysdeps/unix/sysv/linux/sys/timerfd.h: New file.
4933 * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers): Add
4935 * sysdeps/unix/sysv/linux/syscalls.list: Add timerfd_create,
4936 timerfd_gettime, timerfd_settime.
4937 * sysdeps/unix/sysv/linux/Versions: Add timerfd_create,
4938 timerfd_gettime, timerfd_settime for GLIBC_2.8.
4940 2008-02-08 Roland McGrath <roland@redhat.com>
4942 * elf/elf.h (NT_PPC_SPE): New macro.
4944 2008-02-06 Roland McGrath <roland@redhat.com>
4946 * Makerules ($(common-objpfx)sysd-rules):
4947 Depend on $(sysdep-makeconfigs).
4949 2008-01-31 Roland McGrath <roland@redhat.com>
4952 * configure.in: Use -print-file-name if it yields a directory,
4953 for each of include and include-fixed.
4954 * configure: Regenerated.
4956 * Makeconfig (sysd-rules-targets): New variable.
4957 * sysdeps/unix/make-syscalls.sh: Use it in the rules emitted.
4958 * sysdeps/unix/Makefile (omit-deps): Append variants for each target.
4960 2008-01-30 Roland McGrath <roland@redhat.com>
4962 * manual/libc.texinfo: Update back-cover text.
4964 * elf/elf.h (NT_386_TLS): New macro.
4966 2008-01-29 Roland McGrath <roland@redhat.com>
4968 * Makeconfig (sysd-rules-patterns): New variable.
4969 * Makerules ($(common-objpfx)sysd-rules): Drive the loop from that.
4970 (check-inhibit-asm): New canned sequence, replaces ...
4971 (open-check-inhibit-asm, close-check-inhibit-asm): ... these, removed.
4972 * elf/rtld-Rules ($(objpfx)rtld-%.os): Use $(rtld-CPPFLAGS) in commands.
4973 (rtld-CPPFLAGS): Renamed from CPPFLAGS-rtld.
4974 (CFLAGS-rtld): Variable removed.
4976 2008-01-24 Roland McGrath <roland@redhat.com>
4978 * configure.in: Let configure fragments set base_os.
4979 * configure: Regenerated.
4981 2008-01-22 Ulrich Drepper <drepper@redhat.com>
4983 * po/ko.po: Update from translation team.
4985 2008-01-12 H.J. Lu <hongjiu.lu@intel.com>
4987 * sysdeps/i386/fpu/ftestexcept.c (fetestexcept): Use short for fnstsw.
4989 2008-01-12 Andreas Jaeger <aj@suse.de>
4992 * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h (enum EPOLL_EVENTS):
4995 2008-01-20 Samuel Thibault <samuel.thibault@ens-lyon.org>
4997 * hurd/hurdsock.c (_hurd_socket_server): Return the standard
4998 error EAFNOSUPPORT rather than non-standard EPFNOSUPPORT.
4999 * sunrpc/bindrsvprt.c (bindresvport): Likewise.
5001 2007-10-23 Alexandre Oliva <aoliva@redhat.com>
5003 * include/link.h (FORCED_DYNAMIC_TLS_OFFSET): Define.
5004 * elf/dl-close.c (_dl_close): Check for it.
5005 * elf/dl-reloc.c (CHECK_STATIC_TLS): Likewise.
5006 (_dl_allocate_static_tls): Likewise.
5007 * elf/dl-tls.c (_dl_allocate_tls_init): Likewise.
5008 (__tls_get_addr): Protect from race conditions in setting l_tls_offset
5010 * elf/tst-tls16.c: New file.
5011 * elf/tst-tlsmod16a.c: New file.
5012 * elf/tst-tlsmod16b.c: New file.
5013 * elf/Makefile: Add rules to build and run tst-tls16.
5015 2008-01-16 Ulrich Drepper <drepper@redhat.com>
5018 * bits/shm.h: Fix comment describing shmid_ds.
5019 * sysdeps/gnu/bits/shm.h: Likewise.
5020 * sysdeps/unix/sysv/linux/alpha/bits/shm.h: Likewise.
5021 * sysdeps/unix/sysv/linux/bits/shm.h: Likewise.
5022 * sysdeps/unix/sysv/linux/ia64/bits/shm.h: Likewise.
5023 * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Likewise.
5024 * sysdeps/unix/sysv/linux/s390/bits/shm.h: Likewise.
5025 * sysdeps/unix/sysv/linux/sh/bits/shm.h: Likewise.
5026 * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Likewise.
5027 * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: Likewise.
5028 Patch by Hareesh Nagarajan <hareesh.nagarajan@gmail.com>.
5031 * conform/data/fcntl.h-data: Fix posix_fadvise and posix_fallocate
5033 * conform/data/limits.h-data: Adjust limits changed in v6 and add
5034 additional suffixes.
5035 * conform/data/mqueue.h-data: Fix typo in mq_curmsgs entry.
5036 Add optional functions mq_timedreceive and mq_timedsend.
5037 * conform/data/netdb.h-data: Add more AI_* and EAI_* constants.
5038 * conform/data/pthread.h-data: Fix prototype of
5039 pthread_condattr_setclock. pthread_sigmask is not required in v6.
5040 * conform/data/semaphore.h-data: Allow time.h definitions.
5041 * conform/data/signal.h-data: Likewise.
5042 * conform/data/stdio.h-data: getw and putw are not required in v6.
5043 * conform/data/stdlib.h-data: Change setstate prototype.
5044 * conform/data/string.h-data: Fix strerror_r prototype.
5045 * conform/data/time.h-data: Fix typo in TIMER_ABSTIME definition.
5046 * conform/data/unistd.h-data: pthread_atfork not required in v6.
5047 Fix readlink prototype.
5048 * conform/data/netinet/in.h-data: Add const to in6addr_any and
5050 * inet/netinet/in.h: Cleanup namespace.
5051 * posix/regex.h: Likewise.
5052 * resolv/netdb.h: Likewise.
5053 * sysdeps/unix/sysv/linux/bits/in.h: Likewise.
5054 * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
5055 * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
5056 * sysdeps/posix/getaddrinfo.c (default_labels): Adjust for change
5057 of names of in in6_addr.
5058 (default_precedence): Likewise.
5059 * sysdeps/unix/sysv/linux/cmsg_nxthdr.c: Include <stddef.h> for
5062 2008-01-15 Ulrich Drepper <drepper@redhat.com>
5064 * conform/data/fmtmsg.h-data: Add missing allows.
5065 * conform/data/ftw.h-data: Likewise.
5066 * conform/data/inttypes.h-data: Likewise.
5067 * conform/data/math.h-data: Likewise.
5068 * conform/data/signal.h-data: Likewise.
5069 * conform/data/net/if.h-data: Likewise.
5070 * conform/data/netinet/in.h-data: Likewise.
5071 * conform/data/sys/socket.h-data: Likewise.
5074 * string/bits/string2.h (__strtok_r_1c): Always update *__NEXTP.
5075 (__strtok_r): Simplify.
5076 * string/tester.c (test_strtok_r): Add test case for futile search
5077 with single-character seach string.
5079 2008-01-12 Ulrich Drepper <drepper@redhat.com>
5081 * po/ko.po: Update from translation team.
5083 2008-01-11 Andreas Jaeger <aj@suse.de>
5086 * sysdeps/unix/sysv/linux/sys/signalfd.h (struct
5087 signalfd_siginfo): Use 64-bit type for ssi_ptr to sync with Linux
5090 2008-01-10 Ulrich Drepper <drepper@redhat.com>
5092 * sysdeps/posix/getaddrinfo.c (rfc3484_sort): Store result of
5093 native interface lookup in all the relevant places.
5095 2008-01-10 Jakub Jelinek <jakub@redhat.com>
5096 Ulrich Drepper <drepper@redhat.com>
5098 * sysdeps/posix/getaddrinfo.c (sort_results): Remove service_order
5099 field. Use sockaddr_in6 for source_addr.
5100 (get_scope): Change type of parameter to sockaddr_in6. Adjust.
5101 (match_prefix): Likewise.
5102 (get_label): Likewise.
5103 (get_precedence): Likewise.
5104 (rfc3484_sort): Change to use indirect access to results array.
5105 Adjust to use of sockaddr_in6. Replace service_order test with
5106 simple index comparison.
5107 (getaddrinfo): Define order array. Initialize it. Don't initialize
5108 service_order field. Adjust qsort_t calls. Access sorted result
5109 array indirectly through order array.
5110 * posix/tst-rfc3484.c: Adjust for change of rfc3484_sort.
5111 * posix/tst-rfc3484-2.c: Likewise.
5112 * posix/tst-rfc3484-3.c: Likewise.
5114 2008-01-09 Ulrich Drepper <drepper@redhat.com>
5117 * sunrpc/rpc_thread.c (__rpc_thread_destroy): Also free xports and
5119 Patch by André Cruz.
5122 * sunrpc/clnt_perr.c (clnt_sperror): Don't use fixed size buffer.
5123 (clnt_spcreateerror): Likewise.
5126 * malloc/malloc.c (public_mALLOc): Set ar_ptr when trying main_arena.
5127 (public_mEMALIGn): Likewise.
5128 Patch mostly by Daniel Jacobowitz.
5130 2008-01-09 Jakub Jelinek <jakub@redhat.com>
5132 * sysdeps/unix/sysv/linux/i386/makecontext.S (__makecontext): Avoid
5133 clobbering memory at or above uc_stack.ss_sp + uc_stack.ss_size.
5134 * stdlib/Makefile: Add rules to build and run tst-makecontext2.
5135 * stdlib/tst-makecontext2.c: New test.
5137 2008-01-08 Jakub Jelinek <jakub@redhat.com>
5139 * iconv/loop.c (UPDATE_PARAMS): Define to empty statement if not
5141 (REINIT_PARAMS): Likewise. Undefine before end of file.
5142 (STANDARD_TO_LOOP_ERR_HANDLER): Use UPDATE_PARAMS before calling
5143 transliteration hooks and REINIT_PARAMS afterwards.
5144 * iconvdata/iso-2022-jp.c (BODY): Use a separate variable for
5146 (REINIT_PARAMS): Define.
5147 * iconvdata/ibm1364.c (REINIT_PARAMS): Likewise.
5148 * iconvdata/ibm930.c (REINIT_PARAMS): Likewise.
5149 * iconvdata/ibm933.c (REINIT_PARAMS): Likewise.
5150 * iconvdata/ibm935.c (REINIT_PARAMS): Likewise.
5151 * iconvdata/ibm937.c (REINIT_PARAMS): Likewise.
5152 * iconvdata/ibm939.c (REINIT_PARAMS): Likewise.
5153 * iconvdata/iso-2022-cn.c (REINIT_PARAMS): Likewise.
5154 * iconvdata/iso-2022-cn-ext.c (REINIT_PARAMS): Likewise.
5155 * iconvdata/iso-2022-jp-3.c (REINIT_PARAMS): Likewise.
5156 * iconvdata/iso-2022-kr.c (REINIT_PARAMS): Likewise.
5157 * iconvdata/Makefile: Add rules to build and run tst-iconv7.c.
5158 * iconvdata/tst-iconv7.c: New test.
5160 2008-01-07 Ulrich Drepper <drepper@redhat.com>
5162 * libio/stdio.h (vscanf): Fix definition for loser compilers.
5164 2008-01-05 Jakub Jelinek <jakub@redhat.com>
5167 * nscd/connections.c (restart): Fix condition.
5169 2008-01-03 Jakub Jelinek <jakub@redhat.com>
5171 * ctype/ctype.h (__ctype_b_loc, __ctype_tolower_loc,
5172 __ctype_toupper_loc): Add __THROW.
5174 2008-01-02 Ulrich Drepper <drepper@redhat.com>
5176 * sysdeps/unix/sysv/linux/check_pf.c (make_request): Fix
5177 recognition of interface family.
5179 * posix/getconf.c: Update copyright year.
5180 * nss/getent.c: Likewise.
5181 * iconv/iconvconfig.c: Likewise.
5182 * iconv/iconv_prog.c: Likewise.
5183 * elf/ldconfig.c: Likewise.
5184 * catgets/gencat.c: Likewise.
5185 * csu/version.c: Likewise.
5186 * elf/ldd.bash.in: Likewise.
5187 * elf/sprof.c (print_version): Likewise.
5188 * locale/programs/locale.c: Likewise.
5189 * locale/programs/localedef.c: Likewise.
5190 * nscd/nscd.c (print_version): Likewise.
5191 * debug/xtrace.sh: Likewise.
5192 * malloc/memusage.sh: Likewise.
5193 * malloc/mtrace.pl: Likewise.
5194 * debug/catchsegv.sh: Likewise.
5196 2007-12-26 Ulrich Drepper <drepper@redhat.com>
5198 * nss/nsswitch.c (__nss_lookup): Actually use alternative name in
5201 2007-12-23 Ulrich Drepper <drepper@redhat.com>
5203 * sysdeps/x86_64/cacheinfo.c (intel_02_known): New entry 0x3f.
5204 * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
5206 2007-12-17 Roland McGrath <roland@redhat.com>
5208 * inet/ether_line.c (ether_line): Remove unused variable.
5210 2007-12-17 Samuel Thibault <samuel.thibault@ens-lyon.org>
5212 * login/forkpty.c (forkpty): Add const qualifier to parameters termp
5214 * login/openpty.c (openpty): Likewise.
5215 * login/pty.h (openpty, forkpty): Likewise.
5216 * manual/terminal.texi (openpty, forkpty): Likewise.
5218 2007-12-17 Ulrich Drepper <drepper@redhat.com>
5220 * malloc/malloc.c (public_cALLOc): For arenas other than
5221 main_arena, count all bytes inside the mprotect_size range of the
5222 heap as uninitialized.
5224 2007-12-16 Ulrich Drepper <drepper@redhat.com>
5226 * elf/tst-execstack.c (do_test): Don't fail if SELinux forbids
5229 * malloc/malloc.c (public_mTRIm): Iterate over all arenas and call
5230 mTRIm for all of them.
5231 (mTRIm): Additionally iterate over all free blocks and use madvise
5232 to free memory for all those blocks which contain at least one
5234 * malloc/tst-trim1.c: New file.
5235 * malloc/Makefile (tests): Add tst-trim1.
5237 * malloc/malloc.c (do_check_malloc_state): Minimal cleanups.
5239 2007-12-14 Ulrich Drepper <drepper@redhat.com>
5241 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INTERNAL_SYSCALL_ERROR_P):
5242 First cast argument to long
5243 * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_gettimeofday):
5245 (__vdso_clock_gettime): Likewise.
5246 * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: Functions
5249 2007-12-13 Ulrich Drepper <drepper@redhat.com>
5251 * locale/nl_langinfo.c (nl_langinfo): Just call __nl_langinfo_l.
5252 * locale/nl_langinfo_l.c: Real implementation, copied from
5254 * include/langinfo.h: Add libc_hidden_proto for __nl_langinfo_l.
5256 2007-12-01 Jim Meyering <meyering@redhat.com>
5258 * posix/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
5259 that would inhibit utf8-optimization of a regexp containing line-
5260 or buffer-anchors, e.g., `^', `$'.
5262 2007-12-12 Ulrich Drepper <drepper@redhat.com>
5264 * time/bug-getdate1.c (do_test): Don't use century values which
5265 aren't valid on 32-bit systems.
5267 2007-12-12 Jakub Jelinek <jakub@redhat.com>
5269 * sysdeps/i386/i486/bits/string.h (memmove): Define as macro.
5270 (memmove): Rename to __memmove_g, with __asm__ ("memmove").
5271 * sysdeps/s390/bits/string.h (__strlen_g, __strcpy_g, __strncpy_g,
5272 __strcat_g, __strncat_g): Add __asm__.
5274 2007-12-12 Ulrich Drepper <drepper@redhat.com>
5277 * io/fchmodat.c: Fix typo in stub_warning use.
5278 Patch by Petr Salinger.
5280 2007-12-11 Ulrich Drepper <drepper@redhat.com>
5282 * iconvdata/hp-thai8.c: New file.
5283 * iconvdata/Makefile: Add rules for hp-thai8.c.
5284 * iconvdata/tst-tables.sh: Add entry for HP-THAI8.
5285 * iconvdata/gconv-modules: Likewise.
5288 * iconvdata/hp-greek8.c: New file.
5289 * iconvdata/Makefile: Add rules for hp-greek8.c.
5290 * iconvdata/tst-tables.sh: Add entry for HP-GREEK8.
5291 * iconvdata/gconv-modules: Likewise.
5294 * iconvdata/hp-turkish8.c: New file.
5295 * iconvdata/Makefile: Add rules for hp-turkish8.c.
5296 * iconvdata/tst-tables.sh: Add entry for HP-TURKISH8.
5297 * iconvdata/gconv-modules: Likewise.
5299 * malloc/arena.c (grow_heap): Split out code to shrink heap into...
5300 (shrink_heap): ... this new function.
5301 (heap_trim): Call shrink_heap instead of grow_heap.
5303 * malloc/malloc.c (_int_malloc): sYSMALLOc might fail, in this
5304 case don't call alloc_perturb.
5306 2007-12-10 Ulrich Drepper <drepper@redhat.com>
5308 * sysdeps/unix/sysv/linux/adjtime.c: Use ADJ_OFFSET_SS_READ if
5310 * sysdeps/unix/sysv/linux/kernel-features.h
5311 (__ASSUME_ADJ_OFFSET_SS_READ): Define for 2.6.24.
5312 * sysdeps/unix/sysv/linux/sys/timex.h (ADJ_OFFSET_SS_READ): Define.
5314 2007-12-08 Ulrich Drepper <drepper@redhat.com>
5317 * stdio-common/vfprintf.c: Do not overflow when adding to done.
5318 * stdio-common/Makefile (tests): Add bug22.
5319 * stdio-common/bug22.c: New file.
5322 * time/getdate.c: Fix filling in default values.
5323 * time/bug-getdate1.c: New file.
5324 * time/Makefile: Add rules to build and run bug-getdate1.
5326 * iconvdata/ebcdic-is-friss.c: Use 8bit-gap instead of 8bit-generic.
5327 * iconvdata/ebcdic-es.c: Likewise.
5328 * iconvdata/ebcdic-es-a.c: Likewise.
5329 * iconvdata/ebcdic-uk.c: Likewise.
5330 * iconvdata/iso8859-16.c: Likewise.
5331 * iconvdata/viscii.c: Likewise.
5332 * iconvdata/iso8859-9e.c: Likewise.
5333 * iconvdata/Makefile: Adjust appropriately.
5336 * wcsmbs/wchar.h: Unconditionally undefine __need_mbstate and
5339 2007-12-07 Ulrich Drepper <drepper@redhat.com>
5342 * iconvdata/hp-roman9.c: New file.
5343 * iconvdata/Makefile: Add rules for hp-roman9.c.
5344 * iconvdata/tst-tables.sh: Add HP-ROMAN9.
5345 * iconvdata/gconv-modules: Likewise.
5347 * iconvdata/hp-roman8.c: Use 8bit-gap instead of 8bit-generic.
5348 * iconvdata/Makefile: Adjust appropriately.
5351 * stdio-common/vfscanf.c (_IO_vfwscanf): Don't free ptrs_to_free
5352 structure, it's allocated with alloca.
5353 * stdio-common/Makefile (tests): Add bug21.
5354 * stdio-common/bug21.c: New file.
5356 2007-12-06 Aurelien Jarno <aurelien@aurel32.net>
5359 * sysdeps/unix/sysv/linux/bits/sched.h: Use __extension__
5360 keyword for gcc's braced-groups.
5362 2007-12-07 Ulrich Drepper <drepper@redhat.com>
5365 * inet/ether_line.c: Strip hostname of whitespaces.
5366 * inet/Makefile (tests): Add tst-ether_line.
5367 * inet/tst-ether_line.c: New file.
5369 2007-12-03 Ulrich Drepper <drepper@redhat.com>
5372 * sysdeps/unix/sysv/linux/sys/signalfd.h: Fix use of __nonnull.
5375 * sysdeps/unix/sysv/linux/i386/makecontext.S: Align stack.
5377 * stdlib/tst-setcontext.c: Catch the case where the links gets
5378 messed up and we do not reach main again.
5380 * po/ca.po: Update from translation team.
5382 2007-11-26 Ulrich Drepper <drepper@redhat.com>
5384 * posix/unistd.h: Declare fsync also for __USE_XOPEN2K.
5385 * posix/regex.h (REG_ENOSYS): Likewise.
5386 * wcsmbs/wchar.h: Define __need_file also for __USE_XOPEN2K.
5388 2007-11-25 Ulrich Drepper <drepper@redhat.com>
5390 * nscd/nscd.h (MAX_STACK_USE): Define.
5391 * nscd/mem.c (MAX_STACK_USE): Remove definition here.
5392 (gc): Initialize stack_used based on allocation in prune_cache.
5393 * nscd/cache.c (prune_cache): Use heap for mark array if necessary.
5394 Clear array before use.
5396 * nscd/aicache.c (addhstaiX): Update statistics counter in case
5397 memory allocation failed.
5398 * nscd/hstcache.c (cache_addhst): Likewise.
5399 * nscd/grpcache.c (cache_addgr): Likewise.
5400 * nscd/servicescache.c (cache_addserv): Likewise.
5401 * nscd/pwdcache.c (cache_addpw): Likewise.
5402 * nscd/initgrcache.c (addinitgroupsX): Likewise.
5404 2007-11-23 Ulrich Drepper <drepper@redhat.com>
5406 * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: Add open
5407 and creat system calls.
5409 * sysdeps/unix/sysv/linux/check_native.c: Include <asm/types.h>.
5411 2007-11-23 Martin Schwidefsky <schwidefsky@de.ibm.com>
5413 * sysdeps/unix/sysv/linux/Makefile [subdir=inet] (sysdep_headers):
5415 * sysdeps/unix/sysv/linux/netiucv/iucv.h: New file.
5416 * sysdeps/unix/sysv/linux/opensock.c (__opensock): Add AF_IUCV
5418 * sysdeps/unix/sysv/linux/sa_len.c (__libc_sa_len): Likewise.
5419 * sysdeps/unix/sysv/linux/s390/opensock.c: New file.
5420 * sysdeps/unix/sysv/linux/s390/sa_len.c: New file.
5422 2007-11-22 Martin Schwidefsky <schwidefsky@de.ibm.com>
5424 * sysdeps/s390/bits/string.h (strlen, strcpy, strncpy, strcat,
5425 strncat): Define as macros to avoid compile errors.
5427 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Add open and
5430 2007-11-22 Ulrich Drepper <drepper@redhat.com>
5433 * nscd/nscd.h (NSCD_THREAD_STACKSIZE): Define.
5434 * nscd/connections.c (start_threads): Use NSCD_THREAD_STACKSIZE.
5435 * nscd/mem.c (gc): Don't allocate arrays on the stack if they can
5437 Partially based on a patch by Petr Baudis <pasky@suse.cz>.
5439 * sysdeps/unix/sysv/linux/nscd_setup_thread.c (setup_thread):
5440 Return zero in case the thread library is not NPTL.
5443 * resolv/res_hconf.c (_res_hconf_reorder_addrs): Fix locking when
5444 initializing interface list.
5447 * nis/nss_compat/compat-initgroups.c (getgrent_next_nss): Don't
5448 use result of nss_getgrgid_r if nothing was found. For other
5449 error return with a failure.
5450 Partially based on a patch by Petr Baudis <pasky@suse.cz>.
5452 * locale/programs/ld-collate.c (collate_read): Fix loop to match
5455 2007-11-19 Ulrich Drepper <drepper@redhat.com>
5457 * sysdeps/posix/getaddrinfo.c (defaults_scopes, scopes): New variables.
5458 (get_scope): For IPv4 scope, use scopes table.
5459 (fini): Free scopes table if necessary.
5460 (free_scopelist): New function.
5461 (scopecmp): New function.
5462 (gaiconf_init): Also handle scopev4 entries.
5463 * posix/tst-rfc3484.c (do_test): Initialize scopes.
5464 * posix/tst-rfc3484-2.c (do_test): Likewise.
5465 * posix/gai.conf: Document scopev4 defaults.
5466 * posix/Makefile (tests): Add tst-rfc3484-3.
5467 * posix/tst-rfc3484-3.c: New file.
5469 * sysdeps/posix/getaddrinfo.c (default_labels): Describe entry for
5471 * posix/gai.conf: Update for current default tables.
5473 2007-11-19 Ulrich Drepper <drepper@redhat.com>
5475 * po/tr.po: Update from translation team.
5477 2007-11-18 Roland McGrath <roland@frob.com>
5479 * manual/arith.texi (Remainder Functions): Spelling fix.
5480 From Shaun Silk <genix@mysoul.com.au>.
5482 * sysdeps/mach/hurd/bits/fcntl.h (O_CLOEXEC): Fix value.
5484 2007-11-17 Ulrich Drepper <drepper@redhat.com>
5486 * po/zh_CN.po: Update from translation team.
5488 * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers):
5489 Add sys/signalfd.h and sys/eventfd.h.
5491 2007-11-15 Bruno Haible <bruno@clisp.org>
5494 * intl/dcigettext.c (struct known_translation_t): Turn msgid into a
5496 (transcmp): Use the appropriate part of s1->msgid and s2->msgid.
5497 (DCIGETTEXT): Change the allocation of the 'search' variable so that
5498 it needs only fixed stack space. Delay the initialization of
5499 msgid_len until it is needed.
5501 2007-11-15 Andreas Jaeger <aj@suse.de>
5503 * sysdeps/ieee754/dbl-64/sincos.tbl: Fix size of union.
5504 Reported by Christoph Quirin Lauter <christoph.lauter@ens-lyon.fr>.
5506 2007-11-15 Ulrich Drepper <drepper@redhat.com>
5508 * po/ko.po: Update from translation team.
5510 2007-11-14 Ulrich Drepper <drepper@redhat.com>
5512 * sysdeps/unix/sysv/linux/check_native.c (__check_native): Simplify
5513 significantly. The device type is also part of the ifinfomsg data.
5515 * po/sv.po: Update from translation team.
5516 * po/nl.po: Likewise.
5518 * nscd/cache.c (prune_cache): If cache is empty, instruct caller
5519 to wake up in 24 hours.
5521 * nscd/gai.c (__ioctl): Define. Include check_native.c.
5523 2007-11-13 Ulrich Drepper <drepper@redhat.com>
5525 * po/cs.po: Update from translation team.
5526 * po/pl.po: Likewise.
5528 * include/ifaddrs.h: Remove in6ai_temporary.
5529 (struct in6addrinfo): Add index element.
5530 Declare __check_native.
5531 * inet/Makefile (aux): Add check_native.
5532 * sysdeps/unix/sysv/linux/check_native.c: New file.
5533 * sysdeps/unix/sysv/linux/check_pf.c: No need to recognize
5534 IFA_F_TEMPORARY. Pass back ifa_index.
5535 * sysdeps/posix/getaddrinfo.c: Remove netlink compatibility code.
5536 (rfc3484_sort): Add new parameter. Implement rule 7 correctly:
5537 call __check_native if necessary.
5538 (getaddrinfo): Fill in index field. Use qsort_r instead of qsort
5539 to sort addresses. Pass information about the results.
5540 * posix/tst-rfc3484.c: Adjust for addition of index field and change
5541 of rfc3484_sort interface.
5542 * posix/tst-rfc3484-2.c: Likewise.
5544 * stdlib/stdlib.h: Define __compar_d_fn_t. Declare qsort_r.
5545 * include/stdlib.h: Add hidden_proto for qsort_t and adjust protoype
5547 * stdlib/msort.c (qsort): Now a wrapper around qsort_r.
5548 (qsort_r): Renamed from qsort. Take additional parameter and pass it
5549 on as third parameter to compare function and _quicksort.
5550 * stdlib/qsort.c (_quicksort): Take additional parameter and pass on
5551 to the compare function.
5552 * stdlib/Versions [libc] (GLIBC_2.8): Add qsort_r.
5553 * Versions.def: Add GLIBC_2.8 for libc.
5555 * posix/tst-rfc3484.c: Adjust for addition of prefixlen field.
5556 * posix/tst-rfc3484-2.c: Likewise.
5558 * include/kernel-features.h: Moved to...
5559 * sysdeps/mach/hurd/kernel-features.h: ...here.
5561 2007-09-13 H.J. Lu <hongjiu.lu@intel.com>
5563 * sysdeps/i386/i586/memcpy_chk.S: New file.
5564 * sysdeps/i386/i586/mempcpy_chk.S: Likewise.
5565 * sysdeps/i386/i586/memset_chk.S: Likewise.
5567 2007-11-12 Ulrich Drepper <drepper@redhat.com>
5569 * include/ifaddrs.c (struct in6addrinfo): Add prefixlen field.
5570 * sysdeps/unix/sysv/linux/check_pf.c (make_request): Always return
5571 list of interfaces. Also store prefix length.
5572 * sysdeps/posix/getaddrinfo.c (sort_result): Add prefixlen element.
5573 (rfc3484_sort): In rule 9, for IPv4 addresses count only matching
5574 prefix if source and destination address are in the same subnet.
5575 (getaddrinfo): Always call __check_pf. Fill in prefixlen field.
5576 Always look for matching record in in6ai list.
5577 Correct source_addr_len value for IPv6->IPv4 converted records.
5579 2007-11-11 Roland McGrath <roland@frob.com>
5581 * include/kernel-features.h: New file.
5583 2007-11-10 Ulrich Drepper <drepper@redhat.com>
5585 * sysdeps/pthread/aio_misc.c (handle_fildes_io): Avoid unnecessary
5586 complications for 64-bit platforms.
5588 * sysdeps/unix/sysv/linux/open64.c: Move __open64_2 implementation to..
5589 * sysdeps/unix/sysv/linux/open64_2.c: ...here. New file.
5590 * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines): Add
5592 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Add open and creat
5594 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
5595 * sysdeps/wordsize-64/alphasort.c: New file.
5596 * sysdeps/wordsize-64/alphasort64.c: New file.
5597 * sysdeps/wordsize-64/fseeko.c: New file.
5598 * sysdeps/wordsize-64/fseeko64.c: New file.
5599 * sysdeps/wordsize-64/ftello.c: New file.
5600 * sysdeps/wordsize-64/ftello64.c: New file.
5601 * sysdeps/wordsize-64/ftw.c: New file.
5602 * sysdeps/wordsize-64/ftw64.c: New file.
5603 * sysdeps/wordsize-64/iofgetpos.c: New file.
5604 * sysdeps/wordsize-64/iofgetpos64.c: New file.
5605 * sysdeps/wordsize-64/iofopen.c: New file.
5606 * sysdeps/wordsize-64/iofopen64.c: New file.
5607 * sysdeps/wordsize-64/iofsetpos.c: New file.
5608 * sysdeps/wordsize-64/iofsetpos64.c: New file.
5609 * sysdeps/wordsize-64/lockf.c: New file.
5610 * sysdeps/wordsize-64/lockf64.c: New file.
5611 * sysdeps/wordsize-64/mkostemp.c: New file.
5612 * sysdeps/wordsize-64/mkostemp64.c: New file.
5613 * sysdeps/wordsize-64/mkstemp.c: New file.
5614 * sysdeps/wordsize-64/mkstemp64.c: New file.
5615 * sysdeps/wordsize-64/scandir.c: New file.
5616 * sysdeps/wordsize-64/scandir64.c: New file.
5617 * sysdeps/wordsize-64/tmpfile.c: New file.
5618 * sysdeps/wordsize-64/tmpfile64.c: New file.
5619 * sysdeps/wordsize-64/versionsort.c: New file.
5620 * sysdeps/wordsize-64/versionsort64.c: New file.
5621 * sysdeps/unix/sysv/linux/wordsize-64/aio_read.c: New file.
5622 * sysdeps/unix/sysv/linux/wordsize-64/aio_read64.c: New file.
5623 * sysdeps/unix/sysv/linux/wordsize-64/aio_write.c: New file.
5624 * sysdeps/unix/sysv/linux/wordsize-64/aio_write64.c: New file.
5625 * sysdeps/unix/sysv/linux/wordsize-64/creat64.c: New file.
5626 * sysdeps/unix/sysv/linux/wordsize-64/getdirentries.c: New file.
5627 * sysdeps/unix/sysv/linux/wordsize-64/getdirentries64.c: New file.
5628 * sysdeps/unix/sysv/linux/wordsize-64/lio_listio.c: New file.
5629 * sysdeps/unix/sysv/linux/wordsize-64/lio_listio64.c: New file.
5630 * sysdeps/unix/sysv/linux/wordsize-64/open64.c: New file.
5631 * sysdeps/unix/sysv/linux/wordsize-64/openat.c: New file.
5632 * sysdeps/unix/sysv/linux/wordsize-64/openat64.c: New file.
5634 * crypt/sha256-crypt.c: Fix a comment.
5635 * crypt/sha512-crypt.c: Likewise.
5637 2007-11-07 H.J. Lu <hongjiu.lu@intel.com>
5639 * sysdeps/x86_64/memset.S: Add sfence after movnti.
5641 2007-11-07 Ulrich Drepper <drepper@redhat.com>
5644 * iconv/loop.c (STANDARD_TO_LOOP_ERR_HANDLER): If conversion failed
5645 because output buffer is too small break, don't loop.
5646 * iconvdata/Makefile (tests): Add bug-iconv6.
5647 * iconvdata/bug-iconv6.c: New file.
5649 2007-11-06 Ulrich Drepper <drepper@redhat.com>
5651 * stdio-common/vfprintf.c (vfprintf): Compute necessary buffer size
5653 * stdio-common/printf_fp.c (__print_fp): Change chars_needed type to
5654 size_t. Add casts where needed.
5656 * nscd/selinux.c (nscd_request_avc_has_perm): When compiled with
5657 old headers, don't call avc_has_perm if we don't have the
5658 permission information.
5660 2007-11-05 Daniel Jacobowitz <dan@codesourcery.com>
5662 * elf/rtld.c (dl_main): Use the page size to find the map start.
5664 2007-11-05 Ulrich Drepper <drepper@redhat.com>
5666 * time/tzfile.c (__tzfile_read): Fix check for version 0 data files.
5667 Patch by Szymon Siwek <sls@poczta.wp.pl>.
5669 * nscd/aicache.c (addhstaiX): Check herrno after IPv4 lookup only
5670 when the lookup call failed.
5672 * nscd/nscd.h (struct database_dyn): Rename prunelock to prune_lock.
5673 Add prune_cond and wakeup_time.
5674 (CACHE_PRUNE_INTERNAL): Define.
5675 Update declarations of prune_cache and setup_thread.
5676 * nscd/connections.c (dbs): Update initializers.
5677 (CACHE_PRUNE_INTERNAL): Moved to nscd.h.
5678 (nscd_init): Default number of threads is now 4.
5679 (invalidate_cache): Take lock before calling prune_cache.
5680 (handle_request): If SELinux forbids the request, say so.
5681 (readylist_cond): Use static initializer.
5682 (nscd_run_prune): New function. Used only by pruning threads.
5683 (nscd_run_worder): Renamed from nscd_run. Remove support for pruning
5685 (fd_ready): Update nscd_run reference.
5686 (start_threads): No need to initialize readylist_cond.
5687 Start pruning threads separately.
5688 * nscd/nscd_setup_thread.c: Change return value type to int and always
5690 * sysdeps/unix/sysv/linux/nscd_setup_thread.c: Change return value type
5691 to int and return nonzero value if we can use the TID address hack.
5692 * nscd/cache.c (cache_add): If next wakeup time of cleanup thread for
5693 the database is later than the new entry's timeout, update the
5694 wakeup time and wake the cleanup thread.
5695 (prune_cache): Return seconds the next entry in the database is still
5696 valid. Remove locking for pruning here.
5697 * nscd/nscd.conf: Document default number of threads.
5699 2007-10-31 Ulrich Drepper <drepper@redhat.com>
5701 * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Make sure
5702 stack is properly aligned for the target function.
5703 Correct unwind info.
5705 * elf/rtld.c (dl_main): Initialize stack and pointer guard early
5706 when using auditing libraries.
5708 2007-10-29 Ulrich Drepper <drepper@redhat.com>
5710 * resolv/Versions [libresolv] (GLIBC_PRIVATE): Add
5711 _nss_dns_getnetbyaddr2_r.
5712 * resolv/nss_dns/dns-host.c: Define _nss_dns_getnetbyaddr2_r. Pass
5713 extra parameter to getanswer_r.
5714 (_nss_dns_getnetbyaddr_r): Now a wrapper around
5715 _nss_dns_getnetbyaddr2_r.
5717 * nscd/Makefile (nscd-modules): Replace gethstbynm2_r with
5719 * nscd/gethstbynm2_r.c: Remove.
5720 * nscd/gethstbynm3_r.c: New file.
5721 * nscd/aicache.c (addhstaiX): Use __gethostbyaddr2_r instead of
5723 * nscd/gethstbyad_r.c: Generate __gethostbyaddr2_r function. Define
5724 __gethostbyaddr_r compatibility wrapper.
5725 * nscd/hstcache.c (cache_addhst): Add ttl parameter. Use it when
5726 determining timeout of entry.
5727 (lookup): Take new parameter and pass it to __gethostbyname3_r and
5729 (addhstbyX): Pass reference to variable for TTL to lookup and
5731 * nss/Versions [glibc] (GLIBC_PRIVATE): Export __nss_passwd_lookup2,
5732 __nss_group_lookup2, __nss_hosts_lookup2, __nss_services_lookup2,
5733 and __nss_next2. Remove __nss_services_lookup.
5734 * nss/XXX-lookup.c: Name function now *_lookup2. Add new parameter.
5736 * nss/getXXbyYY_r.c: Changes to call new *_lookup2 functions and
5738 * nss/getXXent_r.c: Likewise.
5739 * nss/getnssent_r.c: Likewise.
5740 * nss/nsswitch.c (__nss_lookup): Add new parameter. If first function
5741 does not exist in module, try the optional second name.
5742 (__nss_next2): New function.
5743 (__nss_next): Now wrapper around __nss_next2.
5744 * nss/nsswitch.h: Adjust __nss_lookup prototype.
5745 Declare __nss_next2.
5746 Adjust definition of db_lookup_function type.
5747 * nss/service-lookup.c: Define NO_COMPAT.
5748 * include/netdb.h: Declare __gethostbyaddr2_r and __gethostbyname3_r.
5749 * inet/ether_hton.c: Use __nss_next2 instead of __nss_next.
5750 * inet/ether_ntoh.c: Likewise.
5751 * sunrpc/netname.c: Likewise.
5752 * sunrpc/publickey.c: Likewise.
5753 * inet/getnetgrent.c: Likewise. Adjust calls to __nss_lookup.
5754 * inet/gethstbyad_r.c (DB_LOOKUP_FCT): Change to __nss_hosts_lookup2.
5755 * inet/gethstbynm2_r.c (DB_LOOKUP_FCT): Likewise.
5756 * inet/gethstbynm_r.c (DB_LOOKUP_FCT): Likewise.
5757 * inet/gethstent_r.c (DB_LOOKUP_FCT): Likewise.
5759 * nscd/aicache.c (addhstaiX): Fix default TTL handling.
5761 * inet/getnetgrent_r.c (setup): Encrypt static pointer.
5763 2007-10-28 Ulrich Drepper <drepper@redhat.com>
5766 * crypt/sha256c-test.c: Define TIMEOUT to 6 for ancient hardware.
5767 * crypt/sha512c-test.c: Likewise.
5770 * stdio-common/vfscanf.c (_IO_vfwscanf): Don't misuse wp pointer
5771 to keep track of end of %[ format string element.
5772 * stdio-common/Makefile (tests): Add bug20.
5773 * stdio-common/bug20.c: New file.
5776 * elf/dl-load.c (_dl_rtld_di_serinfo): Correct handling of short
5777 path elements in counting mode.
5779 2007-10-27 Andreas Jaeger <aj@suse.de>
5782 * sysdeps/unix/sysv/linux/sys/epoll.h (EPOLLRDHUP): Add value.
5785 * sysdeps/ia64/backtrace.c (init): Free shared library if incorrect.
5786 (__cleanup): Free shared library when exiting.
5787 * sysdeps/i386/backtrace.c (init): Free shared library if incorrect.
5788 (__cleanup): Free shared library when exiting.
5790 2006-04-14 H.J. Lu <hongjiu.lu@intel.com>
5793 * math/libm-test.inc (check_float_internal): Support
5794 denormalized return.
5796 2007-10-23 Andreas Jaeger <aj@suse.de>
5799 * sysdeps/unix/sysv/linux/readahead.c (__readahead): Use
5800 __LONG_LONG_PAIR to handle little endian byte order.
5801 Suggested by abhishekrai@google.com
5803 2007-10-27 Ulrich Drepper <drepper@redhat.com>
5805 * malloc/arena.c [!NO_THREADS]: Use ATFORK_MEM if defined.
5807 2007-10-26 Ulrich Drepper <drepper@redhat.com>
5809 * nscd/cache.c (prune_cache): Move test for modified file outside
5812 2007-10-21 Andreas Jaeger <aj@suse.de>
5814 * manual/texinfo.tex: Update to latest version.
5816 * manual/sysinfo.texi (System Parameters): Fix Formatting.
5818 * manual/arith.texi (Status bit operations): Fix formatting.
5820 * manual/errno.texi (Error Messages): Fix formatting.
5822 * manual/sysinfo.texi (System Parameters): Fix formatting.
5824 * manual/libc.texinfo: Update VERSION and UPDATED.
5826 2007-10-19 Roland McGrath <roland@redhat.com>
5828 * elf/Makefile ($(objpfx)ld.so): Use $(AWK).
5830 2007-10-06 David S. Miller <davem@davemloft.net>
5832 * configure.in: Add sparcv9v2 and sparc64v2.
5833 * scripts/config.sub: Likewise.
5834 * configure: Regenerate.
5835 * elf/elf.h (HWCAP_SPARC_N2): New.
5836 * sysdeps/sparc/dl-procinfo.h (_DL_HWCAP_COUNT): Bump to 8.
5837 * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add 'v9v2'.
5838 (HWCAP_IMPORTANT): Add HWCAP_SPARC_N2.
5839 * sysdeps/sparc/sparc32/sparcv9/sparcv9v2/memcpy.S: New file.
5840 * sysdeps/sparc/sparc32/sparcv9/sparcv9v2/memset.S: New file.
5841 * sysdeps/sparc/sparc64/sparcv9v2/memcpy.S: New file.
5842 * sysdeps/sparc/sparc64/sparcv9v2/memset.S: New file.
5844 2007-10-18 Ulrich Drepper <drepper@redhat.com>
5846 * sunrpc/clnt_udp.c (clntudp_call): Don't block in recvfrom call
5847 even if the poll result indicates there is data to read.
5848 Patch by Jeff Moyer <jmoyer@redhat.com>.
5850 2007-10-18 Roland McGrath <roland@redhat.com>
5852 * elf/elf.h (NT_PPC_VMX): New macro.
5854 2007-10-17 Ulrich Drepper <drepper@redhat.com>
5856 * version.h (VERSION): Set to 2.7.90.
5858 2007-10-17 Jakub Jelinek <jakub@redhat.com>
5860 * sysdeps/x86_64/memset.S (bzero): Renamed to __bzero. Add
5863 2007-10-17 Roland McGrath <roland@frob.com>
5865 * sysdeps/mach/hurd/bits/fcntl.h [__USE_GNU__] (F_DUPFD_CLOEXEC): New.
5866 * sysdeps/mach/hurd/fcntl.c (__libc_fcntl): Implement it.
5868 2007-10-17 Ulrich Drepper <drepper@redhat.com>
5870 * version.h (VERSION): Bump to 2.7.
5871 * include/features.h (__GLIBC_MINOR__): Bump to 7.
5874 * time/tzset.c (__tz_convert): Don't force testing for a change of
5875 TZ if not called from localtime. But then also see whether the
5876 file changed, in case __use_tzfile is set.
5878 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define F_DUPFD_CLOEXEC.
5879 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
5880 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
5881 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
5882 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
5883 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
5884 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
5885 * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
5887 2007-10-17 Jakub Jelinek <jakub@redhat.com>
5889 * sysdeps/posix/getaddrinfo.c (getaddrinfo): When sorting addresses
5890 and admin selects to be able to replace the gai.conf file, lock
5891 data structures around the qsort call.
5893 2007-10-17 Ulrich Drepper <drepper@redhat.com>
5895 * sysdeps/x86_64/cacheinfo.c: Comment out code added in support of
5897 * sysdeps/x86_64/memset.S: Revert to old version for now. The cost is
5898 too high for the improvements. Implement bzero unconditionally for
5901 2007-10-17 Ulrich Drepper <drepper@redhat.com>
5902 Jakub Jelinek <jakub@redhat.com>
5904 * time/tzfile.c (__tzfile_read): Read POSIX TZ string if available
5905 even when time_t is 32-bit.
5906 (__tzfile_compute): Override POSIX TZ string STD/DST zone names if
5907 timezone data read by __tzfile_default. Ensure __tzname[0] is
5908 always set after the search.
5910 2007-10-16 Ulrich Drepper <drepper@redhat.com>
5912 * time/tzfile.c (__tzfile_read): Help the compiler recognize
5913 unreachable code on 32-bit machines.
5915 2007-10-16 Jakub Jelinek <jakub@redhat.com>
5918 * time/strftime_l.c: Include stdbool.h.
5919 (my_strftime): New wrapper, old function renamed to...
5920 (__strftime_internal): ... new function. Add tzset_called
5921 argument, pass it down to recursive calls, don't call tzset ()
5922 if already true, set to true after call to tzset ().
5924 2007-10-16 Ulrich Drepper <drepper@redhat.com>
5926 * time/tzfile.c (__tzfile_read): Take extra memory requested by caller
5927 into account when copying TZ string.
5929 2007-10-16 Jakub Jelinek <jakub@redhat.com>
5931 * time/tzfile.c (__tzfile_compute): For use_last case set i to
5932 num_transition rather than num_transitions - 1.
5934 2007-10-16 Jakub Jelinek <jakub@redhat.com>
5936 * sysdeps/x86_64/memset.S (memset): Fix sse2_nt_move
5939 * sysdeps/x86_64/memset.S: Jump from bzero to memset using
5940 a local label rather than HIDDEN_JUMPTARGET.
5942 2007-10-15 Ulrich Drepper <drepper@redhat.com>
5944 * sysdeps/x86_64/cacheinfo.c (__x86_64_shared_cache_size): Define.
5945 (init_cacheinfo): Initialize it.
5946 * sysdeps/x86_64/memset.S: Use __x86_64_shared_cache_size.
5947 Always define bzero.
5948 Remove non-glibc code.
5949 * sysdeps/x86_64/bzero.S: Make an empty file.
5951 2007-10-15 H.J. Lu <hongjiu.lu@intel.com>
5953 * sysdeps/x86_64/cacheinfo.c
5954 (__x86_64_preferred_memory_instruction): New.
5955 (init_cacheinfo): Initialize __x86_64_preferred_memory_instruction.
5957 * sysdeps/x86_64/memset.S: Rewrite.
5959 2007-10-15 Roland McGrath <roland@redhat.com>
5961 * po/libc.pot: Regenerated.
5963 2007-10-15 Ulrich Drepper <drepper@redhat.com>
5965 * nss/getXXbyYY_r.c (REENTRANT_NAME): Mangle startp and start_fct
5969 * resolv/nss_dns/dns-host.c (getanswer_r): Fail with
5970 NSS_STATUS_NOTFOUND if the server replied with only a CNAME and no
5971 address record to T_A/T_AAAA requests.
5973 2007-10-14 Ulrich Drepper <drepper@redhat.com>
5975 * posix/glob.c: Reimplement link_exists_p to use fstatat64.
5977 * posix/glob.c: Add some branch prediction throughout.
5979 * nscd/nscd_getgr_r.c (nscd_getgr_r): Store result of successful
5982 * sysdeps/posix/getaddrinfo.c (struct sort_result): Add
5984 (rfc3484_sort): Make sure that even if qsort doesn't support
5985 stable sorting out sorting here is stable by comparing service_order.
5986 (getaddrinfo): Initialize service_order.
5987 * posix/tst-rfc3484.c (do_test): Adjust for addition of
5988 service_order field to sorting structure.
5989 * posix/tst-rfc3484-2.c (do_test): Likewise.
5991 * include/time.h: Declare __tzset_parse_tz and __tzset_compute.
5992 * time/tzset.c (tzset_internal): Break TZ string parsing out into
5993 __tzset_parse_tz and updating of daylight, timezone, tzname into
5995 (__tz_compute): Renamed from tz_compute. Take additional parameters.
5996 (__tz_convert): Updating of tm_isdst, tm_zone, and tm_gmtoff now
5997 happens in __tz_compute.
5998 * time/tzfile.c (__tzfile_read): Also read TZ string.
5999 (find_transition): Fold into __tzfile_compute.
6000 (__tzfile_compute): For times beyond the last transition try to
6002 * timezone/tst-timezone.c: Information in daylight and tzname does
6003 change for Asia/Tokyo timezone with more concrete information.
6006 * include/stdio.h: Add libc_hidden_proto for ftello.
6007 * libio/ftello.c: Add libc_hidden_def.
6010 * time/tzfile.c (__tzfile_compute): Compute tzname[] values based
6011 on the specified time and not the last entries in the file. Move
6012 code to determine tzname[] to...
6013 (find_transition): ...here. Add ugly guess for times before the
6016 2007-10-13 Ulrich Drepper <drepper@redhat.com>
6019 * nscd/nscd_getai.c (__nscd_getai): Set errno to 0 in case we found
6021 * nscd/nscd_getgr.c (nscd_getgr_r): Likewise.
6022 * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
6023 * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
6024 * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
6026 * nscd/nscd_getgr_r.c (nscd_getgr_r): Optimize a bit: use simpler
6027 read mechanism when there are no group members and avoid no-op
6028 read syscall in this case.
6031 * nscd/nscd_helper.c (wait_on_socket): Take timeout as parameter.
6032 (__readall): If reading failed due to EAGAIN error wait a bit
6033 and possibly try again.
6034 (__readvall): Likewise.
6036 2007-10-13 Bruno Haible <bruno@clisp.org>
6038 * intl/dcigettext.c (_nl_find_msg): Unlock the conversions_lock
6039 when we cannot recode the message.
6041 2007-10-13 Ulrich Drepper <drepper@redhat.com>
6044 * libio/__freading.c (__freading): Don't return true for
6045 write-only streams. For read/write streams, check whether we
6046 performed a read operation already.
6047 * libio/Makefile (tests): Add tst-ext2.
6048 * libio/tst-ext2.c: New file.
6050 2007-10-12 Ulrich Drepper <drepper@redhat.com>
6052 * locale/programs/repertoire.c (repertoire_read): Always free
6053 memory for repertoire file name [Coverity CID 270].
6055 * elf/cache.c (save_aux_cache): Free memory allocated for
6056 temporary file name [Coverity CID 267].
6058 2007-10-12 Jakub Jelinek <jakub@redhat.com>
6060 * misc/Makefile (headers): Add bits/error.h.
6062 2007-10-12 Ulrich Drepper <drepper@redhat.com>
6064 * posix/fnmatch_loop.c: Take rule index returned as part of
6065 findidx return value into account when accessing weights.
6066 * posix/regcomp.c: Likewise.
6067 * posix/regexec.c: Likewise.
6069 * locale/programs/ld-collate.c (collate_read): Optimize a bit.
6070 (skip_to): Fix problems with parameter of elifdef/elifndef.
6072 2007-10-11 Ulrich Drepper <drepper@redhat.com>
6074 * iconv/gconv_simple.c: Add some branch prediction.
6076 2007-10-12 Jakub Jelinek <jakub@redhat.com>
6078 * locale/programs/ld-collate.c (collate_read): If ignore_content
6079 and nowtok is tok_define, eat any tok_eol tokens.
6081 2007-10-11 Jakub Jelinek <jakub@redhat.com>
6083 * sysdeps/gnu/netinet/tcp.h: Include sys/socket.h if __USE_MISC.
6084 (struct tcp_md5sig): Change tcpm_addr type to struct sockaddr_storage.
6086 * inet/netinet/in.h: Don't include bits/socket.h.
6087 * sysdeps/unix/sysv/linux/bits/socket.h: Only check _SYS_SOCKET_H
6089 * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Likewise.
6091 2007-10-10 Ulrich Drepper <drepper@redhat.com>
6093 * locale/programs/locfile-token.h: Remove tok_elif, add tok_elifdef
6095 * locale/programs/locfile-kw.gperf: Likewise.
6096 * locale/programs/ld-collate.c: Implement primitive preprocessor.
6098 2007-10-10 Jakub Jelinek <jakub@redhat.com>
6100 * stdio-common/printf-parse.h: Include string.h and wchar.h.
6101 (__find_specwc): Change into __extern_always_inline function.
6102 (__find_specmb): Likewise. Remove ps argument. Use __strchrnul.
6103 (__parse_one_specmb): Remove ps argument.
6104 * stdio-common/vfprintf.c (vfprintf): Remove mbstate variable.
6105 Adjust __find_specmb and __parse_one_specmb callers.
6106 * stdio-common/printf-prs.c (parse_printf_format): Likewise.
6107 * stdio-common/printf-parsemb.c (__find_specwc, __find_specmb):
6109 (__parse_one_specmb): Remove ps argument, adjust __find_specmb
6112 2007-10-09 Ulrich Drepper <drepper@redhat.com>
6114 * sysdeps/x86_64/cacheinfo.c (init_cacheinfo): Work around problem
6115 with some Pentium Ds.
6117 2007-10-08 Ulrich Drepper <drepper@redhat.com>
6119 * sysdeps/unix/sysv/linux/eventfd_read.c (eventfd_read): Use
6121 * sysdeps/unix/sysv/linux/eventfd_write.c (eventfd_write): Use
6124 2007-10-07 Ulrich Drepper <drepper@redhat.com>
6127 * locale/C-time.c: Set week_1stday data to 19971201.
6128 * locale/programs/ld-time.c (time_finish): Default for
6129 first_workday is Monday.
6132 * wcsmbs/wchar.h: Move many C99 functions into std namespace.
6135 * posix/glob.c (glob): Recognize patterns starting \/.
6136 * posix/tst-gnuglob.c (find_file): Handle absolute path names.
6137 (main): Add test for pattern starting \/.
6139 * misc/error.h: Use __const instead of const.
6140 * misc/bits/error.h: Likewise.
6142 2007-10-07 Andreas Jaeger <aj@suse.de>
6144 * include/bits/error.h: New file.
6146 * misc/bits/error.h (error_at_line): Fix prototype.
6148 2007-10-06 Ulrich Drepper <drepper@redhat.com>
6151 * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Fix a few
6152 more little bugs in creating the stack frame when pltexit has to
6155 * nscd/nscd_helper.c (__nscd_cache_search): Prevent endless loops.
6156 * nscd/connections.c (verify_persistent_db): Recognize circular lists.
6159 * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Fix *signgamp for -0.0.
6160 * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
6161 * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
6162 * math/libm-test.inc: Add test for this case.
6165 * sunrpc/svc.c (struct svc_callout): Add sc_mapped element.
6166 (svc_register): Initialize sc_mapped. Set to TRUE if call to
6167 map service succeeded.
6168 (svc_is_mapped): New function.
6169 (svc_unregister): Use it before trying to unmap service.
6171 2007-10-05 Ulrich Drepper <drepper@redhat.com>
6173 * timezone/zic.c: Update from tzcode2007h.
6176 * timezone/africa: Update from tzdata2007h.
6177 * timezone/antarctica: Likewise.
6178 * timezone/asia: Likewise.
6179 * timezone/australasia: Likewise.
6180 * timezone/europe: Likewise.
6181 * timezone/leapseconds: Likewise.
6182 * timezone/northamerica: Likewise.
6183 * timezone/southamerica: Likewise.
6184 * timzeone/zone.tab: Likewise.
6187 * elf/do-lookup.h (do_lookup_x): Don't ignore STT_COMMON symbols.
6190 * string/bits/string2.h (__strdup): Cast parameters to calloc to
6191 avoid warning with -Wconversion.
6192 (__strndup): Likewise.
6193 Half the patch by Christian Iseli <christian.iseli@licr.org>.
6196 * nscd/connections.c (restart): Don't resync if database is
6197 disabled. Patch mostly by Brian De Wolf <bldewolf@csupomona.edu>.
6199 * sysdeps/gnu/netinet/tcp.h: Define TCP_MD5SIG, TCP_MD5SIG_MAXKEYLEN,
6200 struct tcp_md5sig. Extend struct tcp_info according to recent kernels.
6202 * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add eventfd,
6203 evetnfd_read, eventfd_write.
6204 * sysdeps/unix/sysv/linux/eventfd.c: New file.
6205 * sysdeps/unix/sysv/linux/eventfd_read.c: New file.
6206 * sysdeps/unix/sysv/linux/eventfd_write.c: New file.
6207 * sysdeps/unix/sysv/linux/sys/eventfd.h: New file.
6208 * sysdeps/unix/sysv/linux/Versions: Export eventfd, eventfd_read,
6209 eventfd_write for GLIBC_2.7.
6211 * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add signalfd.
6212 * sysdeps/unix/sysv/linux/signalfd.c: New file.
6213 * sysdeps/unix/sysv/linux/sys/signalfd.h: New file.
6214 * sysdeps/unix/sysv/linux/Versions: Export signalfd for GLIBC_2.7.
6216 2007-10-04 Jakub Jelinek <jakub@redhat.com>
6218 * stdlib/msort.c: Include stdint.h.
6219 (struct msort_param): New type.
6220 (msort_with_tmp): Use struct msort_param pointer for unchanging
6221 parameters. Add optimized handling for several common sizes
6222 and indirect sorting mode.
6223 (qsort): Adjust msort_with_tmp callers. For big S use indirect
6225 Suggested by Belazougui Djamel .
6227 * stdlib/Makefile (tests): Add tst-qsort2.
6228 * stdlib/tst-qsort2.c: New test.
6230 2007-10-04 Ulrich Drepper <drepper@redhat.com>
6232 * login/login_tty.c (login_tty): The Linux kernel can return EBUSY
6233 for dup2 in case another thread races with the current one. Retry
6236 * misc/error.h: Remove support for use outside of libc. We have to
6237 include <features.h> now. Include <bits/error.h> if possible.
6238 * misc/bits/error.h: New file.
6240 2007-10-03 Jakub Jelinek <jakub@redhat.com>
6242 * string/bits/string3.h (memcpy, memmove, mempcpy, memset, bcopy,
6243 bzero, strcpy, stpcpy, strncpy, strcat, strncat): Use
6244 __extern_always_inline functions unconditionally, drop macros.
6246 * misc/sys/cdefs.h (__REDIRECT_LDBL, __REDIRECT_NTH_LDBL): New macros.
6247 * wcsmbs/bits/wchar2.h (__swprintf_alias, __vswprintf_alias): Use
6248 __REDIRECT_NTH_LDBL macro rather than __REDIRECT_NTH.
6250 * misc/sys/cdefs.h (__extern_always_inline): For GCC 4.3+
6251 add __artificial__ attribute.
6253 2007-10-02 Ulrich Drepper <drepper@redhat.com>
6255 * string/strcoll_l.c (STRCOLL): Correct handling of switching from
6256 backward to forward direction.
6258 * string/strcoll_l.c (STRCOLL): Correct test for alloca use.
6261 * locale/programs/ld-collate.c (collate_finish): Compare against last
6262 used section which is known to have rules defined.
6263 (collate_read): After order_start, correctly record order of sections
6264 and queue sections up.
6266 2007-10-01 Ulrich Drepper <drepper@redhat.com>
6269 * malloc/malloc.c (mremap_chunk): Avoid resizing of new block has
6270 the same number of pages.
6271 Patch by Tomash Brechko <tomash.brechko@gmail.com>.
6273 * locale/programs/ld-collate.c (collate_read): After initial copy
6274 statement, continue in state 0.
6276 * include/stdio_ext.h (__fsetlocking): Define as macro.
6278 2007-09-30 Ulrich Drepper <drepper@redhat.com>
6280 * locale/programs/ld-collate.c (collate_finish): Compare all bytes
6283 * po/pt_BR.po: Fix typo.
6285 2007-09-29 Ulrich Drepper <drepper@redhat.com>
6287 * iconvdata/Makefile (modules): Add ISO8859-9E.
6288 (distribute): Add iso8859-9e.c.
6289 (gen-8bit-gap-modules): Add iso8859-9e.
6290 * iconvdata/iso8859-9e.c: New file.
6291 * iconvdata/gconv-modules: Add entries for ISO-8859-9E.
6292 * iconvdata/TESTS: Likewise.
6293 * iconvdata/tst-tables.sh: Likewise.
6295 * iconvdata/koi8-r.c (HAS_HOLES): Define to 0.
6297 * locale/iso-639.def: Add several new entries.
6299 2007-09-24 Jakub Jelinek <jakub@redhat.com>
6301 * sysdeps/generic/ldsodefs.h (struct dl_scope_free_list): Store
6302 void * pointers instead of struct link_map **.
6303 (_dl_scope_free): Change argument type to void *.
6304 * include/link.h (struct link_map): Change type of l_reldeps
6305 to struct link_map_reldeps, move l_reldepsact into that
6307 * elf/dl-deps.c: Include atomic.h.
6308 (_dl_map_object_deps): Only change l->l_initfini when it is
6309 fully populated, use _dl_scope_free for freeing it. Optimize
6310 removal of libs from reldeps by using l_reserved flag, when
6311 some removal is needed, allocate a new list instead of
6312 reallocating and free the old with _dl_scope_free. Adjust
6313 for l_reldeps and l_reldepsact changes.
6314 * elf/dl-lookup.c (add_dependency): Likewise. Reorganize to allow
6315 searching in l_initfini and l_reldeps without holding dl_load_lock.
6316 * elf/dl-fini.c (_dl_sort_fini): Adjust for l_reldeps and
6317 l_reldepsact changes.
6318 * elf/dl-close.c (_dl_close_worker): Likewise.
6319 * elf/dl-open.c (_dl_scope_free): Change argument type to void *.
6321 2007-09-28 Ulrich Drepper <drepper@redhat.com>
6323 * iconvdata/Makefile (modules): Add KOI8-RU.
6324 (distribute): Add koi8-ru.c.
6325 (gen-8bit-gap-modules): Add koi8-ru.
6326 * iconvdata/koi8-ru.c: New file.
6327 * iconvdata/gconv-modules: Add entries for KOI8-RU.
6328 * iconvdata/TESTS: Likewise.
6329 * iconvdata/tst-tables.sh: Likewise.
6331 * iconvdata/koi8-r.c (HAS_HOLES): Define to 0.
6333 2007-09-26 Jakub Jelinek <jakub@redhat.com>
6335 * misc/sys/cdefs.h (__warndecl, __errordecl): For GCC 4.3+ define
6336 with __warning__/__error__ attributes.
6337 (__warnattr): Define.
6338 * stdlib/bits/stdlib.h (__realpath_chk_warn, __ptsname_r_chk_warn,
6339 __mbstowcs_chk_warn, __wcstombs_chk_warn): New aliases with
6341 (realpath, ptsname_r, mbstowcs, wcstombs): Call __*_chk_warn instead
6342 of __*_chk if compile time detectable overflow is found.
6343 * libio/bits/stdio2.h (__fgets_chk_warn, __fread_chk_warn,
6344 __fgets_unlocked_chk_warn, __fread_unlocked_chk_warn): New aliases
6346 (fgets, fread, fgets_unlocked, fread_unlocked): Call __*_chk_warn
6347 instead of __*_chk if compile time detectable overflow is found.
6348 (__gets_alias): Rename to...
6349 (__gets_warn): ... this. Add __warnattr.
6350 (gets): Call __gets_warn instead of __gets_alias.
6351 * socket/bits/socket2.h (__recv_chk_warn, __recvfrom_chk_warn): New
6352 aliases with __warnattr.
6353 (recv, recvfrom): Call __*_chk_warn instead of __*_chk if compile
6354 time detectable overflow is found.
6355 * posix/bits/unistd.h (__read_chk_warn, __pread_chk_warn,
6356 __pread64_chk_warn, __readlink_chk_warn, __readlinkat_chk_warn,
6357 __getcwd_chk_warn, __confstr_chk_warn, __getgroups_chk_warn,
6358 __ttyname_r_chk_warn, __getlogin_r_chk_warn, __gethostname_chk_warn,
6359 __getdomainname_chk_warn): New aliases with __warnattr.
6360 (read, pread, pread64, readlink, readlinkat, getcwd, confstr,
6361 getgroups, ttyname_r, getlogin_r, gethostname, getdomainname): Call
6362 __*_chk_warn instead of __*_chk if compile time detectable overflow
6364 (__getgroups_chk): Rename argument to __listlen from listlen.
6365 (__getwd_alias): Rename to...
6366 (__getwd_warn): ... this. Add __warnattr.
6367 (getwd): Call __getwd_warn instead of __getwd_alias.
6368 * wcsmbs/bits/wchar2.h (__wmemcpy_chk_warn, __wmemmove_chk_warn,
6369 __wmempcpy_chk_warn, __wmemset_chk_warn, __wcsncpy_chk_warn,
6370 __wcpncpy_chk_warn, __fgetws_chk_warn, __fgetws_unlocked_chk_warn,
6371 __mbsrtowcs_chk_warn, __wcsrtombs_chk_warn, __mbsnrtowcs_chk_warn,
6372 __wcsnrtombs_chk_warn): New aliases with __warnattr.
6373 (wmemcpy, wmemmove, wmempcpy, wmemset, mbsrtowcs, wcsrtombs,
6374 mbsnrtowcs, wcsnrtombs): Call __*_chk_warn instead of __*_chk if
6375 compile time detectable overflow is found.
6376 (wcsncpy, wcpncpy): Likewise. For constant __n fix check whether
6377 to use __*_chk or not.
6378 (fgetws, fgetws_unlocked): Divide __bos by sizeof (wchar_t), both
6379 in comparisons which function should be called and in __*_chk*
6380 arguments. Call __*_chk_warn instead of __*_chk if compile time
6381 detectable overflow is found.
6382 (swprintf, vswprintf): Divide __bos by sizeof (wchar_t) in
6384 * debug/tst-chk1.c (do_test): Add a few more tests.
6386 2007-09-24 Ulrich Drepper <drepper@redhat.com>
6389 * intl/gettextP.h (struct loaded_domain): Add conversions_lock member.
6390 * intl/loadmsgcat.c (_nl_load_domain): Initialize conversions_lock.
6391 (_nl_unload_domain): Finalize conversions_lock.
6392 * intl/dcigettext.c (_nl_find_msg): Take conversions_lock before
6393 handling table of known conversions.
6395 2007-09-24 Jakub Jelinek <jakub@redhat.com>
6397 * sysdeps/posix/getaddrinfo.c (getaddrinfo): Use
6398 close_not_cancel_no_status instead of close.
6400 2007-09-13 Aurelien Jarno <aurelien@aurel32.net>
6403 * posix/regcomp.c (lookup_collation_sequence_value): Check that
6404 nrules != 0 for multibyte chars.
6406 2007-09-23 Ulrich Drepper <drepper@redhat.com>
6408 * resolv/ns_print.c (ns_sprintrrf): Handle ns_t_a6 and ns_t_opt.
6409 Provide better error message in case the type is unknown.
6412 * wcsmbs/wcsnlen.c: Don't reference before checking the length.
6413 * string/stratcliff.c: Make usable to test wide char functions.
6414 * wcsmbs/wcsatcliff.c: New file.
6415 * wcsmbs/Makefiel (tests): Add wcsatcliff.
6418 * iconvdata/Makefile (modules): Add MAC-CENTRALEUROPE.
6419 (distribute): Add mac-centraleurope.c.
6420 (gen-8bit-gap-modules): Add mac-centraleurope.
6421 * iconvdata/mac-centraleurope.c: New file.
6422 * iconvdata/gconv-modules: Add entries for MAC-CENTRALEUROPE.
6423 * iconvdata/TESTS: Likewise.
6424 * iconvdata/tst-tables.sh: Likewise.
6427 * iconv/iconv_open.c (iconv_open): For large codeset names use malloc.
6429 2007-09-21 Ulrich Drepper <drepper@redhat.com>
6431 * sysdeps/x86_64/cacheinfo.c (__x86_64_data_cache_size_half): Renamed
6432 from __x86_64_core_cache_size_half.
6433 (init_cacheinfo): Compute shared cache size for AMD processors with
6434 shared L3 correctly.
6435 * sysdeps/x86_64/memcpy.S: Adjust for __x86_64_data_cache_size_half
6437 Patch in large parts by Evandro Menezes.
6439 2007-09-19 Ulrich Drepper <drepper@redhat.com>
6441 * elf/dl-lookup.c (add_dependency): Handle failing memory
6442 allocation for dependency list. Remove unnecessary check.
6444 * sysdeps/posix/getaddrinfo.c (getaddrinfo): Avoid unnecessary
6445 open/close when determining source addresses.
6447 * crypt/Makefile (libcrypt-routines): Add sha256-crypt, sha256,
6448 sha512-crypt, and sha512.
6449 (tests): Add sha256test, sha256c-test, sha512test, and sha512c-test.
6450 (distribute): Add sha256.h and sha512.h.
6451 * crypt/crypt-entry.c (crypt): Recognize the new $5$ and $6$ prefixes
6452 and call the appropriate code.
6453 * crypt/sha256-crypt.c: New file.
6454 * crypt/sha256.c: New file.
6455 * crypt/sha256.h: New file.
6456 * crypt/sha256c-test.c: New file.
6457 * crypt/sha256test.c: New file.
6458 * crypt/sha512-crypt.c: New file.
6459 * crypt/sha512.c: New file.
6460 * crypt/sha512.h: New file.
6461 * crypt/sha512c-test.c: New file.
6462 * crypt/sha512test.c: New file.
6464 2007-09-19 Jakub Jelinek <jakub@redhat.com>
6466 * misc/bits/syslog.h (syslog): Remove extraneous argument from
6467 the inline, pass __USE_FORTIFY_LEVEL - 1 as second argument to
6470 2007-09-18 Jakub Jelinek <jakub@redhat.com>
6472 * locale/programs/charmap-dir.c (charmap_aliases): Use %ms instead of
6473 %as in fscanf format strings.
6475 * sysdeps/sparc/sparc32/elf/start.S: Remove cfi_* markup.
6476 * sysdeps/sparc/sparc64/elf/start.S: Likewise.
6477 * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__thread_start):
6479 * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__thread_start):
6482 * sysdeps/generic/ldsodefs.h (DL_LOOKUP_GSCOPE_LOCK): New definition.
6483 * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Or in
6484 DL_LOOKUP_GSCOPE_LOCK into flags after THREAD_GSCOPE_SET_FLAG ().
6485 * elf/dl-sym.c (do_sym): Likewise.
6486 * include/link.h (struct link_map): Add l_serial field.
6487 * elf/dl-object.c (_dl_new_object): Initialize l_serial.
6488 * elf/dl-lookup.c (add_dependency): Add flags argument.
6489 Remember map->l_serial, if DL_LOOKUP_GSCOPE_LOCK is among
6490 flags, use THREAD_GSCOPE_RESET_FLAG before and
6491 THREAD_GSCOPE_SET_FLAG after
6492 __rtld_lock_lock_recursive (GL(dl_load_lock)) to avoid deadlock.
6493 Don't dereference map until it has been found on some list.
6494 If map->l_serial changed, return -1.
6496 2007-09-17 Jakub Jelinek <jakub@redhat.com>
6498 * include/stdio.h (__isoc99_fscanf, __isoc99_scanf,
6499 __isoc99_sscanf, __isoc99_vscanf): New prototypes.
6500 (__isoc99_vsscanf, __isoc99_vfscanf): New prototypes, add
6502 * include/wchar.h (__isoc99_fwscanf, __isoc99_wscanf,
6503 __isoc99_swscanf, __isoc99_vwscanf): New prototypes.
6504 (__isoc99_vswscanf, __isoc99_vfwscanf): New prototypes,
6505 add libc_hidden_proto.
6506 * libio/stdio.h (fscanf, scanf, sscanf, vfscanf, vscanf,
6507 vsscanf): Redirect to __isoc99_* if strict ISO C99 or POSIX
6508 conformance requested.
6509 * wcsmbs/wchar.h (fwscanf, wscanf, swscanf, vfwscanf, vwscanf,
6510 vswscanf): Redirect to __isoc99_* if strict ISO C99 or POSIX
6511 conformance requested.
6512 * libio/bits/stdio-ldbl.h (fscanf, scanf, sscanf, vfscanf, vscanf,
6513 vsscanf): Redirect to __nldbl___isoc99_* if strict ISO C99 or POSIX
6514 conformance requested.
6515 * wcsmbs/bits/wchar-ldbl.h (fwscanf, wscanf, swscanf, vfwscanf,
6516 vwscanf, vswscanf): Redirect to __nldbl___isoc99_* if strict
6517 ISO C99 or POSIX conformance requested.
6518 * stdio-common/Versions (libc): Export __isoc99_scanf@@GLIBC_2.7,
6519 __isoc99_vscanf@@GLIBC_2.7, __isoc99_fscanf@@GLIBC_2.7,
6520 __isoc99_vfscanf@@GLIBC_2.7, __isoc99_sscanf@@GLIBC_2.7
6521 and __isoc99_vsscanf@@GLIBC_2.7.
6522 * stdio-common/Makefile (routines): Add isoc99_scanf, isoc99_vscanf,
6523 isoc99_fscanf, isoc99_vfscanf, isoc99_sscanf and isoc99_vsscanf.
6524 (tests): Add scanf14.
6525 (CFLAGS-vfprintf.c, CFLAGS-fprintf.c, CFLAGS-printf.c,
6526 CFLAGS-vfwprintf.c, CFLAGS-vfscanf.c, CFLAGS-vfwscanf.c,
6527 CFLAGS-fscanf.c, CFLAGS-scanf.c, CFLAGS-isoc99_vfscanf.c,
6528 CFLAGS-isoc99_vscanf.c, CFLAGS-isoc99_fscanf.c,
6529 CFLAGS-isoc99_scanf.c): Add $(exceptions).
6530 (CFLAGS-scanf15.c): Add various -I paths to prevent the compiler
6531 from using internal headers.
6532 * wcsmbs/Versions (libc): Export __isoc99_wscanf@@GLIBC_2.7,
6533 __isoc99_vwscanf@@GLIBC_2.7, __isoc99_fwscanf@@GLIBC_2.7,
6534 __isoc99_vfwscanf@@GLIBC_2.7, __isoc99_swscanf@@GLIBC_2.7
6535 and __isoc99_vswscanf@@GLIBC_2.7.
6536 * wcsmbs/Makefile (routines): Add isoc99_wscanf, isoc99_vwscanf,
6537 isoc99_fwscanf, isoc99_vfwscanf, isoc99_swscanf and isoc99_vswscanf.
6538 (CFLAGS-isoc99_wscanf.c, CFLAGS-isoc99_fwscanf.c,
6539 CFLAGS-isoc99_vwscanf.c, CFLAGS-isoc99_vfwscanf.c): Add $(exceptions).
6540 (CPPFLAGS): Add -D_IO_MTSAFE_IO if needed.
6541 * stdio-common/isoc99_scanf.c: New file.
6542 * stdio-common/isoc99_vsscanf.c: New file.
6543 * stdio-common/isoc99_vscanf.c: New file.
6544 * stdio-common/isoc99_vfscanf.c: New file.
6545 * stdio-common/isoc99_fscanf.c: New file.
6546 * stdio-common/isoc99_sscanf.c: New file.
6547 * wcsmbs/isoc99_fwscanf.c: New file.
6548 * wcsmbs/isoc99_vswscanf.c: New file.
6549 * wcsmbs/isoc99_swscanf.c: New file.
6550 * wcsmbs/isoc99_wscanf.c: New file.
6551 * wcsmbs/isoc99_vwscanf.c: New file.
6552 * wcsmbs/isoc99_vfwscanf.c: New file.
6553 * libio/libio.h (_IO_FLAGS2_SCANF_STD): Define.
6554 * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct): Also
6555 clear _IO_FLAGS2_SCANF_STD bit from _flags2.
6556 * stdio-common/vfscanf.c (_IO_vfscanf_internal): Don't
6557 handle %as, %aS and %a[ if _IO_FLAGS2_SCANF_STD is set in _flags2.
6558 * stdio-common/scanf14.c: New test.
6559 * stdio-common/scanf15.c: New test.
6560 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add
6561 isoc99_scanf, isoc99_fscanf, isoc99_sscanf,
6562 isoc99_vscanf, isoc99_vfscanf, isoc99_vsscanf,
6563 isoc99_wscanf, isoc99_fwscanf, isoc99_swscanf,
6564 isoc99_vwscanf, isoc99_vfwscanf and isoc99_vswscanf.
6565 * sysdeps/ieee754/ldbl-opt/Versions (libc): Export
6566 __nldbl___isoc99_scanf@@GLIBC_2.7,
6567 __nldbl___isoc99_fscanf@@GLIBC_2.7,
6568 __nldbl___isoc99_sscanf@@GLIBC_2.7,
6569 __nldbl___isoc99_vscanf@@GLIBC_2.7,
6570 __nldbl___isoc99_vfscanf@@GLIBC_2.7,
6571 __nldbl___isoc99_vsscanf@@GLIBC_2.7,
6572 __nldbl___isoc99_wscanf@@GLIBC_2.7,
6573 __nldbl___isoc99_fwscanf@@GLIBC_2.7,
6574 __nldbl___isoc99_swscanf@@GLIBC_2.7,
6575 __nldbl___isoc99_vwscanf@@GLIBC_2.7,
6576 __nldbl___isoc99_vfwscanf@@GLIBC_2.7
6577 and __nldbl___isoc99_vswscanf@@GLIBC_2.7.
6578 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__isoc99_scanf,
6579 __isoc99_fscanf, __isoc99_sscanf, __isoc99_vscanf,
6580 __isoc99_vfscanf, __isoc99_vsscanf, __isoc99_wscanf,
6581 __isoc99_fwscanf, __isoc99_swscanf, __isoc99_vwscanf,
6582 __isoc99_vfwscanf, __isoc99_vswscanf): Add NLDBL_DECL.
6583 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c
6584 (__nldbl___isoc99_scanf, __nldbl___isoc99_fscanf,
6585 __nldbl___isoc99_sscanf, __nldbl___isoc99_vscanf,
6586 __nldbl___isoc99_vfscanf, __nldbl___isoc99_vsscanf,
6587 __nldbl___isoc99_wscanf, __nldbl___isoc99_fwscanf,
6588 __nldbl___isoc99_swscanf, __nldbl___isoc99_vwscanf,
6589 __nldbl___isoc99_vfwscanf, __nldbl___isoc99_vswscanf): New
6591 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vfscanf.c: New file.
6592 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_swscanf.c: New file.
6593 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vwscanf.c: New file.
6594 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_wscanf.c: New file.
6595 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_scanf.c: New file.
6596 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_sscanf.c: New file.
6597 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vsscanf.c: New file.
6598 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_fwscanf.c: New file.
6599 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vfwscanf.c: New file.
6600 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vswscanf.c: New file.
6601 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vscanf.c: New file.
6602 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_fscanf.c: New file.
6604 * stdio-common/Makefile (tests): Add scanf13.
6606 * stdio-common/vfscanf.c (_IO_vfscanf_internal): Handle
6607 m modifier followed by l.
6608 (STRING_ARG): Add width argument.
6609 (_IO_vfscanf_internal) <case L_('c')>: Handle %mc.
6610 <case L_('C')>: Handle %mlc and %mC.
6611 <case L_('s'), case L_('S'), case L_('[')>: Adjust STRING_ARG
6613 * stdio-common/scanf13.c: New test.
6615 * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct): Clear
6616 the _IO_FLAGS2_FORTIFY bit from _flags2 rather than _flags.
6618 2007-09-18 Ulrich Drepper <drepper@redhat.com>
6620 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Correct return value
6621 type and __THROW marker of splice, vmsplice, and tee.
6622 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
6623 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
6624 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
6625 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
6626 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
6627 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
6628 * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
6629 * sysdeps/unix/sysv/linux/syscalls.list: Mark splice, vmsplice, and tee
6630 as cancellation points.
6632 2003-11-01 Daniel Jacobowitz <dan@debian.org>
6634 * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_discover_osversion): Don't
6635 parse more than three parts of the version number.
6637 2007-09-15 Ulrich Drepper <drepper@redhat.com>
6639 * stdio-common/vfscanf.c (_IO_vfwscanf): Add support for 'm'
6640 modifier. Patch by Jakub Jelinek.
6642 2007-08-26 Jakub Jelinek <jakub@redhat.com>
6644 * sysdeps/unix/sysv/linux/i386/Makefile (sysdep_routines): Add
6645 call_fallocate in misc subdir.
6646 * sysdeps/unix/sysv/linux/i386/call_fallocate.S: New file.
6647 * sysdeps/unix/sysv/linux/i386/syscalls.list (fallocate64): Remove.
6648 * sysdeps/unix/sysv/linux/i386/posix_fallocate.c: Use __call_fallocate
6649 instead of __fallocate64.
6650 * sysdeps/unix/sysv/linux/i386/posix_fallocate64.c: Likewise.
6652 2007-09-15 Jakub Jelinek <jakub@redhat.com>
6654 * rt/Versions (librt): Export __mq_open_2@@GLIBC_2.7.
6655 * rt/Makefile (headers): Add bits/mqueue2.h.
6656 * rt/mqueue.h: Include bits/mqueue2.h if -D_FORTIFY_SOURCE=2,
6657 optimizing with GCC and __va_arg_pack_len is defined.
6658 * rt/bits/mqueue2.h: New file.
6659 * rt/mq_open.c (__mq_open): Renamed from mq_open.
6660 (mq_open): New strong_alias.
6661 (__mq_open_2): New function.
6662 * sysdeps/unix/sysv/linux/mq_open.c (__mq_open): Renamed from mq_open.
6663 (mq_open): New strong_alias.
6664 (__mq_open_2): New function.
6665 * debug/Versions (libc): Export __fortify_fail@@GLIBC_PRIVATE.
6666 * Versions.def (librt): Add GLIBC_2.7 version.
6667 * debug/fortify_fail.c (__fortify_fail): Add libc_hidden_def.
6668 * include/stdio.h (__fortify_fail): Add libc_hidden_proto.
6670 * misc/sys/cdefs.h (__errordecl, __va_arg_pack_len): Define.
6671 * io/fcntl.h: Include bits/fcntl2.h when __va_arg_pack_len
6672 is defined rather than when not C++.
6673 * io/bits/fcntl2.h (__open_alias, __open64_alias, __openat_alias,
6674 __openat64_alias): New redirects.
6675 (__open_too_many_args, __open_missing_mode, __open64_too_many_args,
6676 __open64_missing_mode, __openat_too_many_args, __openat_missing_mode,
6677 __openat64_too_many_args, __openat64_missing_mode): New __errordecls.
6678 (open, open64, openat, openat64): Rewrite as __extern_always_inline
6679 functions instead of function-like macros.
6681 2007-09-14 H.J. Lu <hongjiu.lu@intel.com>
6683 * sysdeps/i386/i586/memcpy.S (__memcpy_chk): New definition.
6684 * sysdeps/i386/i586/mempcpy.S (__memcpy_chk): New definition.
6685 * sysdeps/i386/i586/memset.S (__memset_chk): New definition.
6687 2007-09-15 Mike Frysinger <vapier@gentoo.org>
6689 * inet/inet_net.c: Reset digit to 0 for inputs starting with "0x".
6690 * inet/tst-network.c (tests): Add edge case tests for "0", "0x", "0x0".
6692 2007-09-14 Mike Frysinger <vapier@gentoo.org>
6694 * inet/tst-network.c: Increment ERRORS for failing tests.
6696 2007-09-07 Jakub Jelinek <jakub@redhat.com>
6698 * misc/sys/cdefs.h (__va_arg_pack): Define for GCC 4.3+.
6699 * misc/bits/syslog.h (syslog): When __va_arg_pack is defined,
6700 implement as __extern_always_inline function.
6701 (vsyslog): Define as __extern_always_inline function unconditionally.
6702 * libio/bits/stdio2.h (sprintf, snprintf, printf, fprintf):
6703 When __va_arg_pack is defined, implement as __extern_always_inline
6705 (vsprintf, vsnprintf, vprintf, vfprintf): Define as
6706 __extern_always_inline functions unconditionally.
6707 * libio/bits/stdio.h (vprintf): Ifdef out the inline when
6708 bits/stdio2.h will be included.
6709 * wcsmbs/bits/wchar2.h (__swprintf_alias): New redirect.
6710 (swprintf, wprintf, fwprintf): When __va_arg_pack is defined,
6711 implement as __extern_always_inline functions.
6712 (vswprintf, vwprintf, vfwprintf): Define as
6713 __extern_always_inline functions unconditionally.
6714 * debug/tst-chk1.c (do_test): Enable remaining tests for C++.
6716 2007-09-03 Jakub Jelinek <jakub@redhat.com>
6718 * misc/sys/cdefs.h (__extern_inline, __extern_always_inline): Only
6719 define in C++ for GCC 4.3+, in C++ always use __gnu_inline__
6721 * include/features.h (__USE_EXTERN_INLINES): Define only when
6722 __extern_inline is defined.
6723 * stdlib/stdlib.h: Include bits/stdlib.h when __extern_always_inline
6724 is defined instead of when not __cplusplus.
6725 * misc/sys/syslog.h: Include bits/syslog.h when __extern_always_inline
6726 is defined instead of when not __cplusplus.
6727 * socket/sys/socket.h: Include bits/socket2.h when
6728 __extern_always_inline is defined instead of when not __cplusplus.
6729 * libio/stdio.h: Include bits/stdio2.h when __extern_always_inline
6730 is defined instead of when not __cplusplus.
6731 * posix/unistd.h: Include bits/unistd.h when __extern_always_inline
6732 is defined instead of when not __cplusplus.
6733 * string/string.h: Include bits/string3.h when __extern_always_inline
6734 is defined instead of when not __cplusplus.
6735 * wcsmbs/wchar.h: Include bits/wchar2.h when __extern_always_inline
6736 is defined instead of when not __cplusplus.
6737 (btowc, wctob): Don't guard the inlines with ifndef __cplusplus.
6738 * io/fcntl.h: Don't include bits/fcntl2.h if __extern_always_inline
6740 * misc/bits/syslog-ldbl.h: Guard *_chk stuff with
6741 defined __extern_always_inline instead of !defined __cplusplus.
6742 * libio/bits/stdio-ldbl.h: Likewise.
6743 * wcsmbs/bits/wchar-ldbl.h: Likewise.
6744 * misc/bits/syslog.h (syslog): Don't define for C++.
6745 (vsyslog): Use __extern_always_inline function for C++ instead of
6747 * libio/bits/stdio.h (__STDIO_INLINE): Define to __extern_inline
6748 whenever that macro is defined.
6749 (vprintf): Don't provide the inline for C++.
6750 (fread_unlocked, fwrite_unlocked): Don't define the macros for C++.
6751 * libio/bits/stdio2.h (sprintf, snprintf, printf, fprintf): Don't
6752 define the macros for C++.
6753 (vsprintf, vsnprintf, vprintf, vfprintf): Define as
6754 __extern_always_inline functions for C++.
6755 * io/sys/stat.h (stat, lstat, fstat, fstatat, mknod, mknodat,
6756 stat64, lstat64, fstat64, fstatat64): Don't define if not
6757 __USE_EXTERN_INLINES.
6758 * wcsmbs/bits/wchar2.h: Fix #error message.
6759 (swprintf, wprintf, fwprintf): Don't define the macros for C++.
6760 (vswprintf, vwprintf, vfwprintf): Define using
6761 __extern_always_inline functions for C++.
6762 * string/bits/string3.h: Don't #undef macros if __cplusplus.
6763 (memcpy, memmove, mempcpy, memset, bcopy, bzero, strcpy, stpcpy,
6764 strncpy, strcat, strncat): Define as __extern_always_inline
6765 functions instead of macros for C++.
6766 * math/bits/cmathcalls.h: Guard __extern_inline routines with
6767 defined __extern_inline.
6768 * sysdeps/alpha/fpu/bits/mathinline.h (__MATH_INLINE): Define
6769 to __extern_inline whenever that macro is defined.
6770 * sysdeps/ia64/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
6771 * sysdeps/i386/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
6772 * sysdeps/i386/i486/bits/string.h (__STRING_INLINE): Likewise.
6773 * sysdeps/s390/bits/string.h (__STRING_INLINE): Likewise.
6774 * sysdeps/s390/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
6775 * sysdeps/powerpc/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
6776 * sysdeps/x86_64/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
6777 * sysdeps/sparc/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
6778 * sysdeps/unix/sysv/linux/sys/sysmacros.h (gnu_dev_major,
6779 gnu_dev_minor, gnu_dev_makedev): Remove __extern_inline from
6780 prototypes. Only provide __extern_inline routines if
6781 __USE_EXTERN_INLINES.
6782 * debug/Makefile: Add rules to build and run tst-{,lfs}chk{4,5,6}
6784 * debug/tst-chk1.c (do_prepare, do_test): Allow compilation as C++.
6785 For now avoid some *printf tests in C++. Skip all testing
6786 if __USE_FORTIFY_LEVEL is defined, but __extern_always_inline macro
6788 * debug/tst-chk4.cc: New file.
6789 * debug/tst-chk5.cc: New file.
6790 * debug/tst-chk6.cc: New file.
6791 * debug/tst-lfschk4.cc: New file.
6792 * debug/tst-lfschk5.cc: New file.
6793 * debug/tst-lfschk6.cc: New file.
6794 * include/wchar.h (__vfwprintf_chk, __vswprintf_chk): Avoid
6796 * include/stdio.h (__sprintf_chk, __snprintf_chk, __vsprintf_chk,
6797 __vsnprintf_chk, __printf_chk, __fprintf_chk, __vprintf_chk,
6798 __vfprintf_chk, __fgets_unlocked_chk, __fgets_chk): Likewise.
6800 2007-09-13 Ulrich Drepper <drepper@redhat.com>
6802 * po/cs.po: Update from translation team.
6804 2007-09-11 Roland McGrath <roland@redhat.com>
6806 * posix/Makefile ($(objpfx)getconf.speclist): Make it empty if cross
6809 2007-09-07 Samuel Thibault <samuel.thibault@ens-lyon.org>
6811 * sysdeps/mach/hurd/bits/ioctls.h (TAB3): New macro.
6813 2007-09-05 Roland McGrath <roland@redhat.com>
6815 * manual/signal.texi (Signaling Another Process): Typo fix.
6816 From Karl Berry <karl@freefriends.org>.
6818 2007-08-29 Ulrich Drepper <drepper@redhat.com>
6820 * sysdeps/unix/sysv/linux/check_pf.c (IFA_F_OPTIMISTIC): Define to
6821 zero if not defined.
6822 (make_request): Recognize optimistic addresses and treat them like
6823 deprecated addresses.
6824 Reported by Neil Horman <nhorman@redhat.com>.
6826 2007-08-28 Ulrich Drepper <drepper@redhat.com>
6828 * nscd/connections.c (send_ro_fd): Also transfer file size.
6829 * nscd/nscd_helper.c (get_mapping): If nscd also transfers the
6830 file size don't call fstat.
6832 * nscd/nscd_helper.c (get_mapping): Avoid the pread call, just go
6833 ahead and map the file. This should always be correct and we can
6834 catch problems later.
6836 2007-08-28 Jakub Jelinek <jakub@redhat.com>
6838 * libio/bits/stdio2.h (__fread_chk, __fread_unlocked_chk): New
6840 (__fread_alias, __fread_unlocked_alias): New aliases.
6841 (fread): New extern inline.
6842 (fread_unlocked): Likewise. Undef macro before definition of
6843 the inline function.
6844 * debug/Makefile (routines): Add fread_chk and fread_u_chk.
6845 (CFLAGS-fread_chk.c, CFLAGS-fread_u_chk.c): Add.
6846 * debug/Versions (libc): Export __fread_chk@@GLIBC_2.7
6847 and __fread_unlocked_chk@@GLIBC_2.7.
6848 * debug/fread_chk.c: New file.
6849 * debug/fread_u_chk.c: New file.
6850 * debug/tst-chk1.c (do_test): Add fread and fread_unlocked tests.
6852 2007-08-27 Jakub Jelinek <jakub@redhat.com>
6854 * sysdeps/unix/sysv/linux/syscalls.list
6855 (personality): Change caller to EXTRA.
6857 2007-08-25 Ulrich Drepper <drepper@redhat.com>
6859 * iconvdata/iso-2022-kr.c (BODY): Fake initialization of array buf
6861 * iconvdata/iso-2022-cn.c (BODY): Likewise.
6863 * locale/programs/ld-collate.c (collate_output): Avoid warning if
6866 * Makerules: Use -p option with mkdir.
6868 * sunrpc/key_prot.c (xdr_unixcred): Work around gcc alias warning.
6869 * nis/nis_xdr.c (_xdr_nis_server): Likewise.
6870 (_xdr_directory_obj): Likewise.
6871 (xdr_entry_obj): Likewise.
6872 (xdr_group_obj): Likewise.
6873 (xdr_link_obj): Likewise.
6874 (xdr_table_obj): Likewise.
6875 (_xdr_nis_result): Likewise.
6876 (_xdr_ns_request): Likewise.
6877 (_xdr_ib_request): Likewise.
6878 (_xdr_nis_taglist): Likewise.
6879 (xdr_cback_data): Likewise.
6880 * nis/yp_xdr.c (xdr_ypmaplist): Likewise.
6881 (xdr_ypresp_maplist): Likewise.
6883 * stdio-common/Makefile: Avoid format string warning for tst-sprint.
6885 * posix/regex_internal.h: Prevent some declarations and definitions
6886 to be seen when used in tests.
6888 * posix/tst-rfc3484.c (__idna_to_unicode_lzlz): Initialize *OUTPUT.
6889 * posix/tst-rfc3484-2.c (__idna_to_unicode_lzlz): Likewise.
6891 * debug/Makefile: Disable format checking when compiling tst-chk?.c.
6893 * config.make.in (datarootdir): Add to shut up configure.
6895 * sysdeps/x86_64/cacheinfo.c (handle_amd): Fix computation of
6896 associativity for fully-associative caches.
6898 * sysdeps/x86_64/cacheinfo.c (handle_amd): Handle L3 cache
6899 requests. Fill on more associativity values for L2.
6900 Patch mostly by Evandro Menezes.
6902 2007-08-24 Ulrich Drepper <drepper@redhat.com>
6904 * sysdeps/unix/sysv/linux/x86_64/init-first.c
6905 (_libc_vdso_platform_setup): Avoid using exported variable by using
6908 * resolv/arpa/nameser.h (NS_OPT_DNSSEC_OK): Define.
6910 * sysdeps/unix/sysv/linux/i386/syscalls.list: No reason to mark
6911 fallocate64 as EXTRA. It is not referenced if the symbol isn't
6914 2007-08-23 Ulrich Drepper <drepper@redhat.com>
6916 * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Correctly
6917 align stack for call if pltexit is to be used.
6920 * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Correctly
6921 align for function call in case pltexit has to be called later.
6923 * sysdeps/i386/dl-trampoline.S (_dl_runtime_resolve): Avoid
6924 implicit atomic operation when storing function pointer.
6925 (_dl_runtime_profile): Likewise.
6927 2007-08-17 Jakub Jelinek <jakub@redhat.com>
6929 * nis/nis_table.c (nis_list): Don't fail if __follow_path returned
6932 2007-08-21 Ulrich Drepper <drepper@redhat.com>
6935 * string/strtok.c: Fix typo in comment.
6938 * debug/segfault.c: Fix typos in comments.
6941 * stdio-common/tempnam.c: Fix comment, it is not checked that
6942 TMPDIR points to a writable directory.
6945 * resolv/res_send.c (__libc_res_nsend): Initialize all of the
6946 memory allocated for the name server address.
6949 * nscd/connections.c (handle_request): Using sendfile always
6950 requires that mmap is used for the database.
6951 Patch by Petr Baudis <pasky@suse.cz>.
6954 * nscd/hstcache.c (cache_addhst): When reloading an entry which
6955 suddenly has two or more addresses, ignore it and remove the old
6959 * resolv/res_hconf.c: Prepare for compiling outside libc.
6960 * nscd/res_hconf.c: New file.
6961 * nscd/Makefile (nscd-modules): Add res_hconf. Add rules to build
6963 * nscd/gethstbynm2_r.c (NEED__RES_HCONF): Define.
6964 * nscd/gethstbyad_r.c (NEED__RES_HCONF): Likewise.
6966 * nscd/hstcache.c (cache_addhst): Minimal optimization.
6969 * debug/pcprofiledump.c: Turn on internationalization by calling
6970 setlocale. Patch mostly by Benno Schulenberg.
6973 * iconv/gconv.c (__gconv): If flush was successful, clear rest of
6975 * iconvdata/Makefile: Add rules to build and run bug-iconv5.
6976 * iconvdata/bug-iconv5.c: New file.
6978 2007-08-04 Carlos O'Donell <carlos@systemhalted.org>
6981 * elf/elf.h: Define R_PARISC_PLABEL21L, R_PARISC_PLABEL14R,
6982 R_PARISC_GNU_VTENTRY, R_PARISC_GNU_VTINHERIT, R_PARISC_TLS_GD21L,
6983 R_PARISC_TLS_GD14R, R_PARISC_TLS_GDCALL, R_PARISC_TLS_LDM21L,
6984 R_PARISC_TLS_LDM14R, R_PARISC_TLS_LDMCALL, R_PARISC_TLS_LDO21L,
6985 R_PARISC_TLS_LDO14R, R_PARISC_TLS_DTPMOD32, R_PARISC_TLS_DTPMOD64,
6986 R_PARISC_TLS_DTPOFF32, R_PARISC_TLS_DTPOFF64, R_PARISC_TLS_LE21L,
6987 R_PARISC_TLS_LE14R, R_PARISC_TLS_IE21L, R_PARISC_TLS_IE14R,
6988 R_PARISC_TLS_TPREL32, R_PARISC_TLS_TPREL64.
6990 2007-08-21 Ulrich Drepper <drepper@redhat.com>
6993 * elf/do-lookup.h (do_lookup_x): Minimal improvement in hash
6994 lookup loop. Suggested by John Reiser.
6996 2007-08-21 Jakub Jelinek <jakub@redhat.com>
6998 * sysdeps/unix/sysv/linux/alpha/sysdep.h: Include tls.h.
7000 2007-08-20 Ulrich Drepper <drepper@redhat.com>
7002 * csu/libc-start.c: Don't handle VDSO_SETUP here.
7003 * sysdeps/unix/sysv/linux/init-first.c: Handle it here instead.
7004 * sysdeps/unix/sysv/linux/x86_64/libc-start.c: Renamed to...
7005 * sysdeps/unix/sysv/linux/x86_64/init-first.c: ...this. New file.
7006 * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Move VDSO_SETUP code
7008 * sysdeps/unix/sysv/linux/x86_64/init-first.c: ...here. New file.
7010 2007-08-18 Ulrich Drepper <drepper@redhat.com>
7012 * po/nl.po: Update from translation team.
7014 2007-08-16 Andreas Jaeger <aj@suse.de>
7016 * locale/localeinfo.h: Make _nl_category_name_idxs extern.
7017 Reported by Peter Festner <peter.festner@ewetel.net>.
7019 2007-08-17 Jakub Jelinek <jakub@redhat.com>
7021 * login/tst-grantpt.c (test_einval): Add 3rd argument to open.
7023 2007-08-16 Jakub Jelinek <jakub@redhat.com>
7025 * elf/Makefile ($(objpfx)ld.so): Use readelf -s and awk instead of nm -u
7026 to check for undefined symbols.
7028 * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__clone):
7029 If the syscall fails, set errno to the actual returned error number
7031 * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__clone): If
7032 arguments are incorrect, set errno to EINVAL, if the syscall
7033 fails, set errno to the actual returned error number.
7035 * stdlib/bits/stdlib-ldbl.h (__strtold_internal): Remove.
7036 * wcsmbs/bits/wchar-ldbl.h (__wcstold_internal): Remove.
7038 * sysdeps/sparc/sparc32/sparcv9b/memcpy.S: Moved to...
7039 * sysdeps/sparc/sparc32/sparcv9/sparcv9b/memcpy.S: ... here. New
7041 (ASI_PNF, ASI_BLK_P): Don't define.
7042 * sysdeps/sparc/sparc32/sparcv9v/memcpy.S: Moved to...
7043 * sysdeps/sparc/sparc32/sparcv9/sparcv9v/memcpy.S: ... here. New
7045 * sysdeps/sparc/sparc32/sparcv9v/memset.S: Moved to...
7046 * sysdeps/sparc/sparc32/sparcv9/sparcv9v/memset.S: ... here. New
7049 2007-08-15 Jakub Jelinek <jakub@redhat.com>
7051 * sysdeps/sparc/fpu/fraiseexcpt.c (__feraiseexcept): Fix raising
7052 FE_UNDERFLOW on Niagara CPUs.
7054 * sysdeps/sparc/fpu/feholdexcpt.c (feholdexcept): Clear all
7057 2007-08-14 Jakub Jelinek <jakub@redhat.com>
7059 * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_runtime_setup): No
7060 need to check GLRO(dl_hwcap) & HWCAP_SPARC_FLUSH on sparcv9.
7061 (sparc_fixup_plt): Add do_flush argument instead of figuring whether
7062 flush should be used or not inside of the function.
7063 (elf_machine_fixup_plt, elf_machine_rela): Adjust caller.
7065 * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__clone,
7066 __thread_start): Use HIDDEN_JUMPTARGET.
7067 * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__clone,
7068 __thread_start): Likewise.
7069 * sysdeps/unix/sysv/linux/sparc/sysdep.h (JUMPTARGET): Define.
7071 * sysdeps/ieee754/ldbl-64-128/strtold_l.c (__STRTOF): Declare.
7072 Add libc_hidden_proto.
7073 (STRTOF): Add libc_hidden_proto.
7074 (___new_strtold_l, ___new_wcstold_l): New weak aliases.
7075 (strtold_l, wcstold_l): Use them as second argument for
7078 2007-08-14 Ulrich Drepper <drepper@redhat.com>
7080 * elf/dl-misc.c: Undo last change. The kernel won't allow it.
7082 2007-08-13 Kaz Kojima <kkojima@rr.iij4u.or.jp>
7084 * stdlib/strtold_l.c: Include wchar.h if needed. Add libc_hidden_def.
7086 2007-08-14 Ulrich Drepper <drepper@redhat.com>
7088 * po/bg.po: New file. From the translation team.
7090 2007-08-13 Jakub Jelinek <jakub@redhat.com>
7092 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_PSELECT,
7093 __ASSUME_PPOLL, __ASSUME_ATFCTS, __ASSUME_SET_ROBUST_LIST,
7094 __ASSUME_UTIMENSAT, __ASSUME_FALLOCATE): Update per-arch conditions
7095 when each feature was introduced.
7097 * sysdeps/unix/sysv/linux/dl-vdso.c: Don't include dl-hash.h.
7098 * sysdeps/unix/sysv/linux/dl-vdso.h: Don't include dl-hash.h if NDEBUG.
7099 (CHECK_HASH): New macro.
7100 (PREPARE_VERSION): Use it.
7102 * sysdeps/unix/sysv/linux/pselect.c (__generic_pselect): Only provide
7103 prototype if not __ASSUME_PSELECT.
7104 * sysdeps/unix/sysv/linux/ppoll.c (__generic_ppoll): Only provide
7105 prototype if not __ASSUME_PPOLL.
7107 * sysdeps/unix/sysv/linux/dl-osinfo.h (ROUND): #undef after use.
7109 * sysdeps/unix/clock_settime.c (freq, __pthread_clock_settime,
7110 hp_timing_settime): Don't define or declare if HANDLED_CPUTIME
7113 2007-08-13 Ulrich Drepper <drepper@redhat.com>
7115 * sysdeps/unix/sysv/linux/x86_64/libc-start.c
7116 (_libc_vdso_platform_setup): If vDSO is not available point
7117 __vdso_gettimeofday to the vsyscall.
7118 * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S [SHARED]: Use
7119 __vdso_gettimeofday instead of vsyscall.
7121 2007-08-13 Jakub Jelinek <jakub@redhat.com>
7123 * nscd/servicescache.c: Include kernel-features.h.
7124 * nscd/gai.c: Likewise.
7125 * sysdeps/unix/sysv/linux/statfs64.c: Likewise.
7126 * sysdeps/unix/sysv/linux/fstatfs64.c: Likewise.
7127 * sysdeps/unix/sysv/linux/fxstatat.c: Likewise.
7128 * sysdeps/unix/sysv/linux/s390/s390-32/mmap.S: Likewise.
7129 * sysdeps/unix/sysv/linux/s390/s390-32/mmap64.S: Likewise.
7130 * sysdeps/unix/sysv/linux/xstatconv.c: Likewise.
7131 * sysdeps/unix/sysv/linux/if_index.c: Likewise.
7132 * sysdeps/unix/sysv/linux/sparc/sparc64/xstat.c: Likewise.
7133 * sysdeps/unix/sysv/linux/ifaddrs.c: Likewise.
7135 2007-08-12 Ulrich Drepper <drepper@redhat.com>
7137 * elf/dl-dst.h: No need for _dl_dst_count, _dl_dst_substitute,
7138 and _dl_get_origin defines anymore.
7140 * sysdeps/unix/sysv/linux/clock_gettime.c (maybe_syscall_gettime_cpu):
7141 Build fix for systems which might lack POSIX timer support.
7143 * sysdeps/unix/sysv/linux/x86_64/libc-start.c
7144 (_libc_vdso_platform_setup): Mangle function pointers before storing
7146 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INLINE_VSYSCALL):
7147 Demangle vdso pointer before use.
7148 (INTERNAL_VSYSCALL): Likewise.
7150 * elf/cache.c (primes): Mark as const.
7151 Noted by Roland McGrath.
7153 2007-08-01 Andreas Jaeger <aj@suse.de>
7154 Jakub Jelinek <jakub@redhat.com>
7156 * elf/ldconfig.c (opt_ignore_aux_cache): Add new option.
7157 (options): Add option.
7158 (parse_opt): Handle option.
7159 (manual_link): Adjust process_file caller. Call implicit_soname.
7160 (search_dir): Formatting. Use and populate auxiliary cache.
7161 (main): Load and save auxiliary cache.
7162 * elf/readlib.c (process_file): Add stat_buf argument. Pass struct
7163 stat64 from fstat64 to caller.
7164 (implicit_soname): New function.
7165 * elf/readelflib.c (process_elf_file): If DT_SONAME is not present,
7166 leave *soname as NULL.
7167 * elf/cache.c: Include libgen.h.
7168 (print_entry, print_cache, compare, save_cache, add_to_cache):
7169 Formatting and cleanups.
7170 (aux_cache_entry_id, aux_cache_entry, aux_cache_file_entry,
7171 aux_cache_file): New structures.
7172 (AUX_CACHEMAGIC): Define.
7173 (primes): New array.
7174 (aux_hash_size, aux_hash): New variables.
7175 (aux_cache_entry_id_hash, nextprime, init_aux_cache,
7176 search_aux_cache, insert_to_aux_cache, add_to_aux_cache,
7177 load_aux_cache, save_aux_cache): New functions.
7178 * sysdeps/generic/ldconfig.h (_PATH_LDCONFIG_AUX_CACHE): Define.
7179 (init_aux_cache, search_aux_cache, add_to_aux_cache,
7180 load_aux_cache, save_aux_cache, implicit_soname): New prototypes.
7181 (process_file): Adjust prototype.
7183 2007-08-12 Jakub Jelinek <jakub@redhat.com>
7185 * sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h: Include stddef.h
7188 2007-08-12 Ulrich Drepper <drepper@redhat.com>
7190 * sysdeps/unix/sysv/linux/dl-vdso.c (_dl_vdso_vsym): Expect
7191 r_found_version structure as second parameter.
7192 * sysdeps/unix/sysv/linux/dl-vdso.h (PREPARE_VERSION): Define.
7193 (_dl_vdso_vsym): Change type of second parameter accordingly.
7194 * sysdeps/unix/sysv/linux/x86-64/libc-start.c
7195 (_libc_vdso_platform_setup): Adjust.
7196 * sysdeps/unix/sysv/linux/powerpc/libc-start.c
7197 (_libc_vdso_platform_setup): Likewise.
7199 * sysdeps/unix/sysv/linux/powerpc/dl-vdso.c: Move to...
7200 * sysdeps/unix/sysv/linux/dl-vdso.c: ...here.
7201 * sysdeps/unix/sysv/linux/powerpc/dl-vdso.h: Move to...
7202 * sysdeps/unix/sysv/linux/dl-vdso.h: ...here.
7203 * csu/libc-start.c: Pretty printing.
7204 Use VDSO_SETUP if defined.
7205 * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Define VDSO_SETUP
7206 and let generic code call into _libc_vdso_platform_setup.
7207 * sysdeps/unix/sysv/linux/x86_64/libc-start.c: New file.
7208 * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: New file.
7209 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Pretty printing.
7210 Define INLINE_VSYSCALL and INTERNAL_VSYSCALL.
7211 * sysdeps/unix/sysv/linux/x86_64/Versions: Export __vdso_clock_gettime
7213 * sysdeps/unix/sysv/linux/x86_64/Makefile [subdir=elf]
7214 (sysdep_rountines): Add dl-vdso.
7216 * sysdeps/unix/sysv/linux/powerpc/Makefile: Use sysdep_routines instead
7219 * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h: Add
7220 attribute_hidden to __vdso_gettimeofday prototype.
7222 2007-08-12 Roland McGrath <roland@redhat.com>
7224 * manual/stdio.texi (Variable Arguments Output): Fix xref to gcc manual.
7225 From: Karl Berry <karl@freefriends.org>.
7227 2007-08-11 Ulrich Drepper <drepper@redhat.com>
7229 * elf/dl-misc.c (_dl_sysdep_read_whole_file): We really don't need
7230 an atime update for the files we read.
7232 2007-08-10 Ulrich Drepper <drepper@redhat.com>
7234 * shadow/lckpwdf.c (__lckpwdf): Use O_CLOEXEC if possible.
7236 * nscd/connections.c: Use O_CLOEXEC if possible. Use mkostemp
7239 * misc/Makefile (routines): Add mkostemp and mkostemp64.
7240 * misc/Versions: Export mkostemp and mkostemp64 for GLIBC_2.7.
7241 * misc/mkostemp.c: New file.
7242 * misc/mkostemp64.c: New file.
7243 * stdlib/stdlib.h: Declare the new functions.
7244 * sysdeps/posix/tempname.c: Add new parameter which is added to
7245 the flags for open. Remove __GT_BIGFILE handling.
7246 * stdio-common/tempname.c: Likewise.
7247 * include/stdio.h: Adjust __gen_tempname prototype.
7248 Renumber __GT_* constants.
7249 * libio/oldtmpfile.c: Adjust for __gen_tempname interface change.
7250 * misc/mkdtemp.c: Likewise.
7251 * misc/mkstemp.c: Likewise.
7252 * misc/mkstemp64.c: Likewise.
7253 * misc/mktemp.c: Likewise.
7254 * stdio-common/tempnam.c: Likewise.
7255 * stdio-common/tmpfile.c: Likewise.
7256 * stdio-common/tmpfile64.c: Likewise.
7257 * stdio-common/tmpnam.c: Likewise.
7258 * stdio-common/tmpnam_r.c: Likewise.
7260 2007-08-10 Roland McGrath <roland@frob.com>
7262 * sysdeps/mach/hurd/bits/ioctls.h (NLDLY, TABDLY, BSDLY, VTDLY):
7264 (NLDELAY, CRDELAY, TBDELAY, BSDELAY, VTDELAY): Define to those.
7265 Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>.
7267 2007-08-10 Ulrich Drepper <drepper@redhat.com>
7269 * nss/nss_files/files-XXX.c (internal_setent): Use O_CLOEXEC if
7271 * nss/nss_files/files-alias.c (internal_setent): Likewise.
7272 * nss/Makefile (libnss_files-routines): Add files-have_o_cloexec.
7273 * nss/nss_files/files-have_o_cloexec.c: New file.
7275 * sysdeps/unix/sysv/linux/shm_open.c (shm_open): Use O_CLOEXEC if
7278 2007-08-10 Jakub Jelinek <jakub@redhat.com>
7280 * sysdeps/ieee754/ldbl-128ibm/strtold_l.c (___new_strtold_l,
7281 ___new_wcstold_l): New weak aliases.
7282 (strtold_l, wcstold_l): Use them as second argument for
7285 2007-08-09 Ulrich Drepper <drepper@redhat.com>
7287 * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Use correct
7288 register in test for error.
7290 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_CLOEXEC): Define.
7291 * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h (O_CLOEXEC): Likewise.
7293 * po/sv.po: Update from translation team.
7295 2007-08-06 Roland McGrath <roland@redhat.com>
7297 * include/stdlib.h: Add libc_hidden_proto for strto*, __strto*_l.
7298 Remove __strto*_l inlines.
7299 * include/wchar.h: Add libc_hidden_proto for wcsto*, __wcsto*_l.
7300 * stdlib/strtod.c: Add libc_hidden_def.
7301 * stdlib/strtod_l.c: Likewise.
7302 * stdlib/strtold.c [__LONG_DOUBLE_MATH_OPTIONAL]: Add libc_hidden_proto
7303 for __new_strtold and __new_wcstold.
7304 * sysdeps/ieee754/ldbl-128ibm/strtold_l.c: Add libc_hidden_proto for
7306 * stdlib/strtol.c: Add libc_hidden_def.
7307 * stdlib/strtol_l.c: Likewise.
7308 * sysdeps/wordsize-64/strtol.c: Add libc_hidden_ver for strtoll and
7311 * scripts/data/localplt-powerpc-linux-gnu.data: New file.
7313 * scripts/data/localplt-x86_64-linux-gnu.data: File renamed to ...
7314 * scripts/data/localplt-generic.data: ... here.
7315 * elf/Makefile (check-data): Get generic file if no other.
7316 ($(objpfx)check-localplt.out): Make target unconditional.
7318 * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_discover_osversion):
7321 2007-08-05 Ulrich Drepper <drepper@redhat.com>
7323 * po/zh_CN.po: Updated translation from translation team.
7325 2007-08-05 Jakub Jelinek <jakub@redhat.com>
7327 * sysdeps/unix/sysv/linux/powerpc/powerpc32/socket.S (__socket):
7328 Don't use CGOTSETUP and CGOTRESTORE macros.
7330 2007-08-04 Roland McGrath <roland@redhat.com>
7332 * posix/Makefile ($(objpfx)getconf.speclist): Fix typo.
7334 2007-08-04 Jakub Jelinek <jakub@redhat.com>
7336 * io/bits/fcntl2.h (open, open64, openat, openat64): Add
7337 __extension__ around the whole statement expression.
7339 2007-08-04 Ulrich Drepper <drepper@redhat.com>
7341 * sysdeps/unix/opendir.c (__alloc_dir): Correct order of DIR
7342 elements during initialization.
7344 * po/pl.po: Updated translation from translation team.
7345 * po/tr.po: Likewise.
7346 * po/nl.po: Likewise.
7348 2007-08-03 Ulrich Drepper <drepper@redhat.com>
7350 * rt/aio.h: Add __nonnull attributes.
7352 2007-08-03 Jakub Jelinek <jakub@redhat.com>
7354 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Properly handle -0.
7355 * stdlib/Makefile (tests): Add tst-strtod5.
7356 (tst-strtod5-ENV): New.
7357 * stdlib/tst-strtod5.c: New file.
7359 * intl/dcigettext.c (_nl_find_msg): Free encoding if __gconv_open
7361 * intl/finddomain.c (_nl_find_domain): Free normalized_codeset
7364 * elf/dl-load.c (decompose_rpath): Free copy if result couldn't be
7367 2007-08-03 Jakub Jelinek <jakub@redhat.com>
7369 * rt/mqueue.h (mq_timedreceive, mq_timedsend): Fix nonnull argument
7372 2007-08-02 Ulrich Drepper <drepper@redhat.com>
7374 * io/Makefile (aux): Add have_o_cloexec.
7375 * include/fcntl.h: Declare __have_o_cloexec.
7376 * io/have_o_cloexec.c: New file.
7377 * sysdeps/unix/opendir.c (__opendir): Use O_CLOEXEC is available.
7378 (__alloc_dir): If O_CLOEXEC has been used, don't duplicate the
7379 fcntl call if not necessary.
7380 * login/utmp_file.c (setutent_file): Use __have_o_cloexec instead
7383 * sysdeps/unix/opendir.c (__alloc_dir): Don't initialize ->data.
7384 Avoid memset, add explicit initialization.
7385 * sysdeps/unix/dirstream.h (struct __dirstream): Move data elemtn
7386 to the end and change into zero-sized array.
7387 Move lock member to fill a hole on 64-bit platforms.
7389 * stdlib/stdlib.h: Remove __strto*_internal prototypes and strto*
7391 * include/stdlib.h: Add __strto*_internal prototypes here.
7392 * wcsmbs/wchar.h: Remove __wcsto*_internal prototypes and wcsto*
7394 * include/wchar.h: Add __wcsto*_internal prototypes.
7395 * sysdeps/generic/inttypes.h: No need to protect the declaration
7396 of the __strto*_internal and __wcsto*_internal members here.
7398 * rt/mqueue.h: Change const to __const and add nonnull attributes.
7400 2007-08-02 Roland McGrath <roland@redhat.com>
7402 * posix/Makefile ($(inst_libexecdir)/getconf): Make hard links to
7403 $(inst_bindir)/getconf if possible.
7405 * posix/Makefile ($(objpfx)getconf.speclist): New target.
7406 (generated): Add it.
7407 ($(inst_libexecdir)/getconf): Use it.
7409 2007-08-01 Ulrich Drepper <drepper@redhat.com>
7411 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Using
7412 /proc is faster and sufficient. /sys is still needed for
7415 2007-08-01 Jakub Jelinek <jakub@redhat.com>
7417 * sysdeps/unix/sysv/linux/i386/syscalls.list (fallocate): Add fallocate
7418 syscall as __fallocate64.
7419 * sysdeps/unix/sysv/linux/i386/posix_fallocate.c: New file.
7420 * sysdeps/unix/sysv/linux/i386/posix_fallocate64.c: New file.
7422 2007-07-30 Jakub Jelinek <jakub@redhat.com>
7424 * stdlib/tst-strtod2.c (do_test): Use %tu in fmt string for ptrdiff_t
7427 * stdio-common/tst-fmemopen2.c (do_test): Avoid fmt string warning
7428 if off_t is different rank from size_t.
7430 * sysdeps/generic/unwind-dw2.c (extract_cie_info, execute_cfa_program,
7431 uw_frame_state_for): Avoid type punning warnings.
7432 * sysdeps/generic/unwind-dw2-fde-glibc.c
7433 (_Unwind_IteratePhdrCallback): Likewise.
7434 * sysdeps/generic/unwind-dw2-fde.c (_Unwind_Find_FDE): Likewise.
7435 (binary_search_single_encoding_fdes, binary_search_mixed_encoding_fdes,
7436 get_cie_encoding, linear_search_fdes): Don't mix char and unsigned char
7439 2007-07-31 Ulrich Drepper <drepper@redhat.com>
7441 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs_conf): Count
7442 total processors using sysfs.
7443 (__get_nprocs): Use sysfs to determine which processors are online.
7445 2007-07-31 Jakub Jelinek <jakub@redhat.com>
7447 * sysdeps/unix/sysv/linux/posix_fallocate.c (posix_fallocate): Fix
7448 syscall arguments count.
7450 * stdio-common/tfformat.c (sprint_doubles): Add 12 new tests.
7452 2007-07-30 Roland McGrath <roland@redhat.com>
7454 * manual/libc.texinfo: Update copyrights, formatting magic, and
7455 @dircategory. From Karl Berry <karl@freefriends.org>.
7457 2007-07-29 Ulrich Drepper <drepper@redhat.com>
7460 * io/Makefile (headers): Add bits/fcntl2.h.
7462 * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_ZERO_S): Optimize
7464 (__CPU_EQUAL_S): Likewise.
7466 * posix/Makefile (routines): Add sched_cpualloc and sched_cpufree.
7467 (tests): Add tst-cpuset.
7468 * posix/sched_cpualloc.c: New file.
7469 * posix/sched_cpufree.c: New file.
7470 * posix/tst-cpuset.c: New file.
7471 * posix/Versions: Export __sched_cpualloc and __sched_cpufree for
7473 * sysdeps/unix/sysv/linux/bits/sched.h: Define __CPU_*_S macros.
7474 * posix/sched.h: Define old CPU_* macros in temers of __CPU_*_S
7475 macros. Define CPU_*_S macros.
7477 2007-07-28 Ulrich Drepper <drepper@redhat.com>
7479 * posix/getconf.c (vars): Add missing _SC_LEVEL4_CACHE_LINESIZE
7483 * stdio-common/printf_fp.c (___printf_fp): Fix special case of
7484 #.0g and value rounded to 1.0.
7485 * stdio-common/tfformat.c (sprint_doubles): Add two new tests.
7487 2007-07-26 Jakub Jelinek <jakub@redhat.com>
7489 * locale/programs/ld-monetary.c (monetary_finish): Avoid range check
7490 for int_frac_digits and frac_digits.
7492 * login/logout.c (logout): Avoid aliasing violation.
7493 * login/logwtmp.c (logwtmp): Likewise.
7495 * libio/genops.c (_IO_un_link): Avoid aliasing violation.
7497 * nscd/selinux.c (preserve_capabilities): Initialize new_caps
7499 * iconv/gconv_open.c (__gconv_open): Initialize ptr to avoid
7501 * nis/nis_subr.c (nis_getnames): Initialize saveptr to avoid
7503 * resolv/inet_ntop.c (inet_ntop6): Initialize best.len and cur.len
7506 * nss/nsswitch.c (__nss_lookup_function): Don't cast &ni->known to
7508 * nss/nsswitch.h (service_user): Use void * type for KNOWN field.
7510 * nss/nss_files/files-hosts.c (LINE_PARSER): Cast host_addr to
7511 char * to avoid warning.
7512 * nis/nss_nis/nis-hosts.c (LINE_PARSER): Likewise.
7514 * timezone/Makefile (CFLAGS-zdump.c): Add -fwrapv.
7516 * locale/programs/ld-ctype.c (ctype_finish, set_class_defaults,
7517 allocate_arrays): Cast second argument to charmap_find_symbol
7518 to char * to avoid warnings.
7520 * locale/programs/repertoire.c (repertoire_new_char): Change
7521 from_nr, to_nr and cnt to unsigned long, adjust printf format
7524 * locale/programs/ld-collate.c (insert_value, handle_ellipsis):
7525 Cast second argument to new_element to char * to avoid warnings.
7527 * locale/weightwc.h (findidx): Cast &extra[-i] to const int32_t *.
7529 * intl/gettextP.h (struct loaded_domain): Change plural to const
7530 struct expression *.
7531 * intl/plural-eval.c (plural_eval): Change first argument to
7532 const struct expression *.
7533 * intl/plural-exp.c (EXTRACT_PLURAL_EXPRESSION): Change first
7534 argument to const struct expression **.
7535 * intl/plural-exp.h (EXTRACT_PLURAL_EXPRESSION, plural_eval): Adjust
7537 * intl/loadmsgcat (_nl_unload_domain): Cast away const
7538 in call to __gettext_free_exp.
7540 * posix/fnmatch.c (fnmatch): Rearrange code to avoid maybe
7541 unitialized wstring/wpattern var warnings.
7543 * posix/runtests.c (struct a_test): Make data field const char *.
7545 * stdio-common/tst-sprintf2.c (main): Don't declere u, v and buf
7546 vars if not LDBL_MANT_DIG >= 106.
7548 * stdio-common/Makefile (CFLAGS-vfwprintf.c): Add -Wno-unitialized.
7550 * stdio-common/vfprintf.c (vfprintf): Cast first arugment to
7551 __find_specmb to avoid warning.
7553 * rt/tst-mqueue1.c (do_one_test): Add casts to avoid warnings.
7555 * debug/test-strcpy_chk.c (do_tests, do_random_tests): Add casts
7558 * sysdeps/ieee754/ldbl-96/s_roundl.c (huge): Add L suffix to
7561 * sysdeps/unix/clock_gettime.c (clock_gettime): Only define
7562 tv var when it will be actually used.
7564 * sunrpc/rpc_cmsg.c (xdr_callmsg): Cast IXDR_PUT_* to void
7567 * iconvdata/gbk.c (BODY): Make buf and cp char instead of unsigned
7568 char array resp. pointer.
7569 * iconvdata/iso-2022-kr.c (BODY): Make buf unsigned char instead of
7571 * iconvdata/cns11643.h (cns11643_to_ucs4): Change first argument
7572 to const unsigned char **.
7573 (ucs4_to_cns11643): Change second argument to unsigned char *.
7574 * iconvdata/euc-tw.c (BODY): Change endp type to
7575 const unsigned char *.
7576 * iconvdata/iso-ir-165.h (ucs4_to_isoir165): Change second argument
7578 * iconvdata/ibm1008_420.c (LOOP_NEED_FLAGS): Don't define.
7579 * iconvdata/iso-2022-cn.c (BODY): Change buf to unsigned char array.
7580 * iconvdata/iso-2022-cn-ext.c (BODY): Change buf, tmpbuf, tmp
7581 types to unsigned char pointers/arrays instead of char.
7582 * iconvdata/jis0201.h (ucs4_to_jisx0201): Change second argument
7584 * iconvdata/jis0208.h (ucs4_to_jisx0208): Likewise.
7585 * iconvdata/jis0212.h: Include assert.h.
7586 (ucs4_to_jisx0212): Change second argument to unsigned char *.
7587 assert that if cp[0] is not '\0', cp[1] is not '\0' either instead
7588 of trying to handle that.
7589 * iconvdata/euc-kr.c (euckr_from_ucs4): Initialize also cp[1] to
7591 * iconvdata/euc-jp-ms.c (from_ucs4_lat1, from_ucs4_greek,
7592 from_ucs4_cjk, from_ucs4_cjkcpt, from_ucs4_extra): Change type to
7593 two dimensional const unsigned char arrays.
7594 (BODY): Cast "" to (const unsigned char *) for assignment to cp.
7595 Initialize endp to inptr to shut up a warning.
7597 2007-07-20 Jakub Jelinek <jakub@redhat.com>
7600 * time/strptime_l.c (__strptime_internal): Silently ignore
7601 strftime modifiers and field width in recursive calls.
7603 * include/time.h (enum ptime_locale_status): Remove.
7604 (__strptime_internal): Remove decided and era_cnt arguments,
7605 add statep argument.
7606 * time/strptime_l.c (__strptime_internal): Remove decided
7607 and era_cnt arguments, add statep argument. Don't recompute
7608 any fields in recursive calls, only update caller's tm
7609 and state, if recursive call fails, don't change tm nor
7611 (get_alt_number): Adjust.
7612 (recursive): Adjust caller.
7613 (strptime): Likewise.
7614 * time/strptime.c (strptime): Likewise.
7616 2007-07-19 Jakub Jelinek <jakub@redhat.com>
7618 * iconv/gconv_int.h (__GCONV_NULCONV): New internal only error code.
7619 * iconv/gconv_cache.c (__gconv_lookup_cache): Return __GCONV_NULCONV
7620 if from and to charsets are the same.
7621 * iconv/gconv_db.c (__gconv_find_transform): Likewise.
7622 * intl/dcigettext.c (_nl_find_msg): Return NULL even if __gconv_open
7623 returns __GCONV_NOCONV, but not for __GCONV_NULCONV.
7625 2007-07-17 Jakub Jelinek <jakub@redhat.com>
7627 * wcsmbs/wchar.h: Only define wint_t if __need_wint_t.
7628 Don't define wint_t when __need_mbstate_t unless it
7630 (__mbstate_t): Use __WINT_TYPE__ rather than wint_t
7631 in the typedef if possible.
7632 * wctype/wctype.h (wint_t): Define by including
7633 wchar.h with __need_wint_t instead of including stddef.h
7634 with __need_wint_t and as fallback definining it ourselves.
7635 * iconv/gconv.h (__need_wint_t): Define before including
7637 * sysdeps/gnu/_G_config.h: Don't include gconv.h if not _LIBC
7638 or _GLIBCPP_USE_WCHAR_T.
7639 (__need_wchar_t): Don't define
7640 if not _LIBC or _GLIBCPP_USE_WCHAR_T.
7641 (__need_wint_t): Don't define before including stddef.h,
7642 define before including wchar.h only if _LIBC or
7643 _GLIBCPP_USE_WCHAR_T.
7644 (_G_iconv_t): Don't define if not _LIBC or _GLIBCPP_USE_WCHAR_T.
7645 * sysdeps/mach/hurd/_G_config.h: Likewise.
7646 * sysdeps/generic/_G_config.h: Likewise.
7647 * libio/libio.h (__wunderflow, __wuflow, __woverflow): Only
7648 prototype if _LIBC or _GLIBCPP_USE_WCHAR_T.
7649 (_IO_getwc_unlocked, _IO_putwc_unlocked): Only define
7650 if _LIBC or _GLIBCPP_USE_WCHAR_T.
7652 2007-07-28 Ulrich Drepper <drepper@redhat.com>
7654 * sysdeps/posix/posix_fallocate64.c: Undefine
7655 __posix_fallocate64_l64 before alias handling.
7656 * sysdeps/unix/sysv/linux/posix_fallocate.c: New file.
7657 * sysdeps/unix/sysv/linux/posix_fallocate64.c: New file.
7658 * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c: New file.
7659 * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate64.c: New file.
7661 * io/tst-posix_fallocate.c: Include <fcntl.h>.
7663 2007-07-23 Jakub Jelinek <jakub@redhat.com>
7665 * locale/programs/ld-collate.c (atwc): New variable.
7666 (add_to_tablewc): New toplevel function, moved from collate_output.
7667 (collate_output): Remove add_to_tablewc nested function.
7669 * iconv/iconvconfig.c (hash_table, hash_size): New toplevel vars.
7670 (name_insert): New function.
7671 (write_output): Remove hash_table and hash_size vars and name_insert
7674 2007-07-24 Roland McGrath <roland@redhat.com>
7676 * Makerules (install-others-programs-nosubdir): New target.
7677 (install-no-libc.a-nosubdir): Depend on it.
7679 * iconv/Makefile (install-others-programs): Set this instead of
7681 * login/Makefile (install-others-programs): Likewise.
7682 * posix/Makefile (install-others-programs): Likewise.
7684 * Makerules (install-no-libc.a-nosubdir): Clean up conditional
7687 2007-07-23 Ulrich Drepper <drepper@redhat.com>
7689 * io/Makefile (tests): Add tst-posix_fallocate.
7690 * io/tst-posix_fallocate.c: New file.
7692 * sysdeps/unix/sysv/linux/kernel-features.h: Define
7695 2007-07-22 Roland McGrath <roland@frob.com>
7697 * hurd/getdport.c: Add missing copyright year update.
7699 * sysdeps/mach/hurd/bits/fcntl.h [__USE_GNU] (O_CLOEXEC): New macro.
7700 * hurd/port2fd.c (_hurd_port2fd): Implement O_CLOEXEC.
7702 2007-07-22 Ulrich Drepper <drepper@redhat.com>
7704 * login/utmp_file.c (setutent_file): Use O_CLOEXEC if possible.
7706 * libio/fileops.c (_IO_new_file_fopen): Recognize 'e' flag and set
7707 O_CLOEXEC is needed.
7708 * nis/nss_compat/compat-grp.c: Use 'e' flag when opening file.
7709 Avoid additional fcntl to set O_CLOEXEC if not needed.
7710 * nis/nss_compat/compat-initgroups.c: Likewise.
7711 * nis/nss_compat/compat-pwd.c: Likewise.
7712 * nis/nss_compat/compat-spwd.c: Likewise.
7714 2007-07-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
7717 * manual/errno.texi: Change ECANCELED value to 119.
7720 * mach/lock-intern.h: Include <sys/cdefs.h>.
7723 * sysdeps/mach/hurd/sigaction.c (__sigaction): Check ACT != NULL before
7727 * sysdeps/mach/hurd/sigsuspend.c (sigsuspend_not_cancel): Define alias
7730 * sysdeps/mach/i386/sysdep.h: Include <dl-sysdep.h> and <tls.h>.
7732 2006-06-13 Thomas Schwinge <tschwinge@gnu.org>
7734 * sysdeps/mach/hurd/tls.h: Change `ASSEMBLER' conditional to
7736 * sysdeps/mach/hurd/i386/tls.h: Likewise.
7738 2007-07-21 Ulrich Drepper <drepper@redhat.com>
7740 * nscd/nscd_helper.c (get_mapping): Use MSG_CMSG_CLOEXEC for
7741 descriptor received from nscd.
7743 * sysdeps/unix/sysv/linux/bits/socket.h: Define MSG_CMSG_CLOEXEC.
7745 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define O_CLOEXEC.
7746 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
7747 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
7748 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
7749 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
7750 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
7752 2007-07-20 Jakub Jelinek <jakub@redhat.com>
7755 * manual/signal.texi (Non-atomic Example): Make memory var volatile.
7758 * login/forkpty.c (forkpty): Close master and slave fds on
7759 fork failure. Patch by
7760 Mikulas Patocka <mikulas@artax.karlin.mff.cuni.cz>.
7762 2007-07-18 Jakub Jelinek <jakub@redhat.com>
7764 * include/features.h (__USE_ISOC95): New define.
7765 * wcsmbs/wchar.h (fwprintf, fwscanf, wprintf, wscanf, swprintf,
7766 swscanf, vfwprintf, vwprintf, vswprintf, fwide): Define even
7767 for -std=iso9899:199409.
7768 * CONFORMANCE: Remove comments about unsupported AMD1.
7770 2007-07-17 Jakub Jelinek <jakub@redhat.com>
7772 * sysdeps/ia64/sched_cpucount.c: New file.
7773 * sysdeps/powerpc/sched_cpucount.c: New file.
7775 * sysdeps/unix/sysv/linux/bits/sched.h (__sched_cpucount): Add
7776 __BEGIN_DECLS/__END_DECLS around the prototype.
7777 * bits/sched.h (__sched_cpucount): Likewise. Make second argument
7778 pointer to const cpu_set_t.
7780 * bits/types.h: Don't include stddef.h, don't define __need_size_t.
7781 * signal/signal.h <__USE_BSD || __USE_XOPEN_EXTENDED>: Define
7782 __need_size_t and include stddef.h.
7783 * sysvipc/sys/msg.h: Likewise.
7784 * posix/sched.h: Likewise.
7785 * hurd/hurd/signal.h (__need_size_t): Define.
7787 * CONFORMANCE: ctype.h and wctype.h no longer define size_t,
7788 neither does signal.h in pedantic ISO C namespaces. stdio.h
7789 no longer defines wint_t or wchar_t.
7791 * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct): New function.
7792 * debug/vfwprintf_chk.c (__vfwprintf_chk): Use
7793 _IO_acquire_lock_clear_flags2 instead of _IO_acquire_lock.
7794 * debug/vprintf_chk.c (__vprintf_chk): Likewise.
7795 * debug/vwprintf_chk.c (__vwprintf_chk): Likewise.
7796 * debug/vfprintf_chk.c (__vfprintf_chk): Likewise.
7797 * debug/fwprintf_chk.c (__fwprintf_chk): Likewise.
7798 * debug/printf_chk.c (__printf_chk): Likewise.
7799 * debug/fprintf_chk.c (__fprintf_chk): Likewise.
7800 * debug/wprintf_chk.c (__wprintf_chk): Likewise.
7802 * sysdeps/pthread/bits/stdio-lock.h (_IO_acquire_lock_clear_flags2):
7805 * bits/confname.h (_CS_POSIX_V6_WIDTH_RESTRICTED_ENVS): Define.
7806 * posix/getconf.c (vars): Add POSIX_V6_WIDTH_RESTRICTED_ENVS.
7808 2007-07-16 Jakub Jelinek <jakub@redhat.com>
7811 * stdlib/stdlib.h (realloc): Remove __attribute_malloc__.
7812 * malloc/malloc.h (realloc): Likewise.
7814 * libio/iopopen.c (_IO_new_proc_open): Don't close child_std_end
7815 if one of proc_file_chain streams has that fileno.
7816 * stdio-common/Makefile (tests): Add tst-popen2.
7817 * stdio-common/tst-popen2.c: New test.
7819 2007-07-14 Jakub Jelinek <jakub@redhat.com>
7821 * elf/ldconfig.c: Allow GPLv2 or any later version.
7822 * elf/readlib.c: Likewise.
7823 * elf/chroot_canon.c: Likewise.
7824 * elf/cache.c: Likewise.
7825 * nscd/mem.c: Likewise.
7826 * nscd/getpwuid_r.c: Likewise.
7827 * nscd/grpcache.c: Likewise.
7828 * nscd/aicache.c: Likewise.
7829 * nscd/getsrvbynm_r.c: Likewise.
7830 * nscd/nscd.c: Likewise.
7831 * nscd/servicescache.c: Likewise.
7832 * nscd/getsrvbypt_r.c: Likewise.
7833 * nscd/initgrcache.c: Likewise.
7834 * nscd/gethstbyad_r.c: Likewise.
7835 * nscd/gethstbynm2_r.c: Likewise.
7836 * nscd/getgrnam_r.c: Likewise.
7837 * nscd/nscd_setup_thread.c: Likewise.
7838 * nscd/getpwnam_r.c: Likewise.
7839 * nscd/gai.c: Likewise.
7840 * nscd/connections.c: Likewise.
7841 * nscd/dbg_log.c: Likewise.
7842 * nscd/cache.c: Likewise.
7843 * nscd/hstcache.c: Likewise.
7844 * nscd/nscd_conf.c: Likewise.
7845 * nscd/getgrgid_r.c: Likewise.
7846 * nscd/pwdcache.c: Likewise.
7847 * catgets/gencat.c: Likewise.
7848 * locale/programs/linereader.h: Likewise.
7849 * locale/programs/locarchive.c: Likewise.
7850 * locale/programs/ld-paper.c: Likewise.
7851 * locale/programs/locfile-kw.h: Likewise.
7852 * locale/programs/ld-address.c: Likewise.
7853 * locale/programs/xmalloc.c: Likewise.
7854 * locale/programs/ld-time.c: Likewise.
7855 * locale/programs/localedef.c: Likewise.
7856 * locale/programs/simple-hash.c: Likewise.
7857 * locale/programs/xstrdup.c: Likewise.
7858 * locale/programs/ld-numeric.c: Likewise.
7859 * locale/programs/locfile-kw.gperf: Likewise.
7860 * locale/programs/ld-collate.c: Likewise.
7861 * locale/programs/charmap-kw.gperf: Likewise.
7862 * locale/programs/charmap.h: Likewise.
7863 * locale/programs/charmap-kw.h: Likewise.
7864 * locale/programs/config.h: Likewise.
7865 * locale/programs/locfile.c: Likewise.
7866 * locale/programs/ld-ctype.c: Likewise.
7867 * locale/programs/charmap.c: Likewise.
7868 * locale/programs/ld-messages.c: Likewise.
7869 * locale/programs/repertoire.h: Likewise.
7870 * locale/programs/locale.c: Likewise.
7871 * locale/programs/ld-name.c: Likewise.
7872 * locale/programs/linereader.c: Likewise.
7873 * locale/programs/locfile.h: Likewise.
7874 * locale/programs/3level.h: Likewise.
7875 * locale/programs/ld-monetary.c: Likewise.
7876 * locale/programs/ld-measurement.c: Likewise.
7877 * locale/programs/charmap-dir.c: Likewise.
7878 * locale/programs/ld-identification.c: Likewise.
7879 * locale/programs/localedef.h: Likewise.
7880 * locale/programs/charmap-dir.h: Likewise.
7881 * locale/programs/repertoire.c: Likewise.
7882 * locale/programs/simple-hash.h: Likewise.
7883 * locale/programs/ld-telephone.c: Likewise.
7884 * locale/programs/locale-spec.c: Likewise.
7885 * locale/programs/locfile-token.h: Likewise.
7886 * posix/getconf.c: Likewise.
7887 * iconv/dummy-repertoire.c: Likewise.
7888 * iconv/iconv_charmap.c: Likewise.
7889 * iconv/iconvconfig.c: Likewise.
7890 * iconv/iconv_prog.c: Likewise.
7891 * malloc/memusagestat.c: Likewise.
7892 * sysdeps/unix/sysv/linux/nscd_setup_thread.c: Likewise.
7894 2007-07-06 Kaz Kojima <kkojima@rr.iij4u.or.jp>
7896 * sysdeps/sh/bsd-setjmp.S (setjmp): Use correct argument registers.
7897 * sysdeps/sh/bsd-_setjmp.S (_setjmp): Likewise.
7898 * sysdeps/unix/sysv/linux/sh/clone.S (__clone): Do correct sanity
7899 check for the first argument.
7901 2007-07-12 Jakub Jelinek <jakub@redhat.com>
7904 * math/tgmath.h (__tgmath_real_type_sub): Formatting.
7905 (__tgmath_real_type): Fix if expr is const int or other const
7906 qualified integral type.
7907 (__TGMATH_UNARY_REAL_ONLY): Rewritten to avoid using statement
7908 expressions and handle const qualified arguments.
7909 (__TGMATH_BINARY_FIRST_REAL_ONLY, __TGMATH_UNARY_REAL_IMAG,
7910 __TGMATH_UNARY_REAL_IMAG_RET_REAL): Likewise.
7911 (__TGMATH_UNARY_REAL_RET_ONLY): Rewritten to avoid using
7912 statement expressions.
7913 (__TGMATH_BINARY_REAL_ONLY, __TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY,
7914 __TGMATH_TERNARY_REAL_ONLY, __TGMATH_BINARY_REAL_IMAG): Likewise.
7915 (__TGMATH_UNARY_IMAG): Define.
7916 (conj, cproj): Use __TGMATH_UNARY_IMAG macro.
7917 * math/Makefile (tests): Add test-tgmath2.
7918 (CFLAGS-test-tgmath2.c): Add.
7919 * math/test-tgmath.c (fy, dy, ly, fz, dz, lz, count_cdouble,
7920 count_cfloat, count_cldouble): New variables.
7922 (main): Check number of complex calls as well.
7923 (F(compile_test)): Add complex tests and tests with const qualified
7925 (y, z, ccount): Define.
7926 (F(cacos), F(casin), F(catan), F(ccos), F(csin), F(ctan), F(cacosh),
7927 F(casinh), F(catanh), F(ccosh), F(csinh), F(ctanh), F(cexp), F(clog),
7928 F(csqrt), F(cpow), F(cabs), F(carg), F(creal), F(cimag), F(conj),
7929 F(cproj)): New functions.
7930 * math/test-tgmath2.c: New test.
7932 2007-07-11 Jakub Jelinek <jakub@redhat.com>
7935 * elf/dl-load.c (_dl_rtld_di_serinfo): Output / in LD_LIBRARY_PATH,
7936 RPATH etc. as "/" rather than "", don't segfault on empty paths,
7938 * dlfcn/Makefile (distribute): Add glreflib3.c.
7939 (module-names): Add glreflib3.
7940 ($(objpfx)tst-dlinfo.out): Depend on glreflib3.so rather than
7942 (LDFLAGS_glreflib3.so): New.
7943 * dlfcn/tst-dlinfo.c (do_test): Load glreflib3.so instead of
7945 * dlfcn/glreflib3.c: New file.
7947 * intl/finddomain.c (_nl_find_domain): If _nl_explode_name
7948 returned -1, return NULL.
7949 * intl/explodename.c (_nl_explode_name): Return -1 if
7950 _nl_normalize_codeset failed.
7952 2007-07-07 Steven Munroe <sjmunroe@us.ibm.com>
7954 * sysdeps/powerpc/powerpc32/power6/memset.S: Update comments.
7955 Specify .machine power6 to get ISA-V2.0 branch hints. Unroll loops
7956 and avoid branch misspredicts for > 31 bytes memset case.
7957 * sysdeps/powerpc/powerpc64/power6/memset.S: Likewise.
7958 Remove toc ref to __cache_line_size.
7960 * sysdeps/powerpc/powerpc32/power4/memcmp.S: Specify .machine power4
7961 to get ISA-V2.0 branch hints.
7962 * sysdeps/powerpc/powerpc32/power4/memcpy.S: Likewise
7963 * sysdeps/powerpc/powerpc32/power4/memset.S: Likewise
7964 * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
7965 * sysdeps/powerpc/powerpc64/power4/memcmp.S: Likewise.
7966 * sysdeps/powerpc/powerpc64/power4/memcpy.S: Likewise.
7967 * sysdeps/powerpc/powerpc64/power4/memset.S: Likewise.
7968 Remove toc ref to __cache_line_size.
7970 * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S:
7971 Include math_ldbl_opt.h.
7973 2007-07-10 Ulrich Drepper <drepper@redhat.com>
7976 * time/strptime_l.c (__strptime_internal): Implement greedy
7977 matching of weekday and month names.
7979 2007-07-09 Roland McGrath <roland@redhat.com>
7981 * elf/elf.h (NT_GNU_ABI_TAG): New macro.
7982 (ELF_NOTE_ABI): Use it.
7983 (NT_GNU_HWCAP, NT_GNU_BUILD_ID): New macros.
7985 2007-07-09 Ulrich Drepper <drepper@redhat.com>
7987 * sysdeps/x86_64/cacheinfo.c (intel_02_known): Add new entries.
7988 * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
7990 2007-07-07 Ulrich Drepper <drepper@redhat.com>
7993 * stdio-common/vfscanf.c (_IO_vfscanf): Add additional test for EOF
7994 in loop to look for conversion specifier to avoid testing of
7996 * stdio-common/Makefile (tests): Add bug18, bug18a, bug19, bug19a.
7997 * stdio-common/bug18.c: New file.
7998 * stdio-common/bug18a.c: New file.
7999 * stdio-common/bug19.c: New file.
8000 * stdio-common/bug19a.c: New file.
8002 2007-07-05 Mike Frysinger <vapier@gentoo.org>
8004 * Makeconfig ($(common-objpfx)gnu/lib-names.stmp): Use LC_ALL=C when
8007 2007-07-01 Jakub Jelinek <jakub@redhat.com>
8009 * elf/dl-sysdep.c (_dl_important_hwcaps): Add integer overflow check.
8010 * elf/dl-minimal.c (__libc_memalign): Likewise. Handle malloc (0).
8011 Return NULL if mmap failed instead of asserting it does not.
8012 (calloc): Check for integer overflow.
8014 * elf/dl-minimal.c (__strtoul_internal): Fix parsing of numbers bigger
8017 2007-07-03 Jakub Jelinek <jakub@redhat.com>
8020 * nis/nss-default.c: Include errno.h.
8021 (init): Preserve errno.
8023 2007-07-02 Ulrich Drepper <drepper@redhat.com>
8025 * sysdeps/unix/sysv/linux/bits/socket.h (PF_UNIX): Update comment.
8027 2007-06-30 Ulrich Drepper <drepper@redhat.com>
8029 * sysdeps/unix/sysv/linux/bits/socket.h: Add PF_RXRPC and AF_RXRPC.
8031 2007-06-29 Martin Schwidefsky <schwidefsky@de.ibm.com>
8033 * sysdeps/unix/sysv/linux/bits/socket.h: Add PF_IUCV and AF_IUCV.
8035 2007-06-29 Martin Schwidefsky <schwidefsky@de.ibm.com>
8037 * sysdeps/s390/dl-procinfo.c: New file.
8038 * sysdeps/s390/dl-procinfo.h: New file.
8039 * sysdeps/unix/sysv/linux/s390/dl-procinfo.h: New file.
8041 2007-06-29 Jakub Jelinek <jakub@redhat.com>
8043 * elf/dl-load.c (open_verify): Find .note.ABI-tag notes even
8044 in PT_NOTE segments with multiple notes.
8045 * elf/readelflib.c (process_elf_file): Likewise.
8047 2007-06-22 Ulrich Drepper <drepper@redhat.com>
8049 * nis/nis_domain_of.c (__nis_domain_of): Make the code a bit more
8052 2007-06-19 Ulrich Drepper <drepper@redhat.com>
8054 * elf/dl-close.c (free_mem): Free _dl_scope_free_list.
8056 2007-06-13 Jakub Jelinek <jakub@redhat.com>
8058 * include/link.h: Don't include rtld-lowlevel.h.
8059 (struct link_map): Remove l_scope_lock.
8060 * sysdeps/generic/ldsodefs.h: Don't include rtld-lowlevel.h.
8061 (_dl_scope_free_list): New field (variable) in _rtld_global.
8062 (DL_LOOKUP_SCOPE_LOCK): Remove.
8063 (_dl_scope_free): New prototype.
8064 * elf/dl-runtime.c (_dl_fixup): Don't use __rtld_mrlock_*lock.
8065 Don't pass DL_LOOKUP_SCOPE_LOCK to _dl_lookup_symbol_x.
8066 (_dl_profile_fixup): Likewise.
8067 * elf/dl-sym.c (do_sym): Likewise. Use wrapped _dl_lookup_symbol_x
8068 whenever !RTLD_SINGLE_THREAD_P, use THREAD_GSCOPE_SET_FLAG and
8069 THREAD_GSCOPE_RESET_FLAG around it.
8070 * elf/dl-close.c (_dl_close_worker): Don't use
8071 __rtld_mrlock_{change,done}. Call _dl_scope_free on the old
8072 scope. Make sure THREAD_GSCOPE_WAIT () happens if any old
8073 scopes were queued or if l_scope_mem has been abandoned.
8074 * elf/dl-open.c (_dl_scope_free): New function.
8075 (dl_open_worker): Use it. Don't use __rtld_mrlock_{change,done}.
8076 * elf/dl-support.c (_dl_scope_free_list): New variable.
8077 * elf/dl-lookup.c (add_dependency): Remove flags argument.
8078 Remove DL_LOOKUP_SCOPE_LOCK handling.
8079 (_dl_lookup_symbol_x): Adjust caller. Remove DL_LOOKUP_SCOPE_LOCK
8081 * elf/dl-object.c (_dl_new_object): Don't use
8082 __rtld_mrlock_initialize.
8084 2007-06-19 Ulrich Drepper <drepper@redhat.com>
8086 * sysdeps/generic/ldsodefs.h (rtld_global): Reorder some elements
8088 (rtld_global_ro): Likewise.
8090 2007-06-18 Jakub Jelinek <jakub@redhat.com>
8092 * elf/dl-addr.c (_dl_addr): Skip PT_LOAD checking if l_contiguous.
8093 Move PT_LOAD checking to...
8094 (_dl_addr_inside_object): ... here, new function.
8095 * elf/dl-sym.c (do_sym): If not l_contiguous,
8096 call _dl_addr_inside_object.
8097 * elf/dl-iteratephdr.c (__dl_iterate_phdr): Likewise.
8098 * dlfcn/dlinfo.c (dlinfo_doit): Likewise.
8099 * elf/dl-open.c (dl_open_worker): Likewise.
8100 (_dl_addr_inside_object): New function if IS_IN_rtld.
8101 * elf/dl-load.c (_dl_map_object_from_fd): Set l_contiguous if no
8102 holes are present or are PROT_NONE protected.
8103 * include/link.h (struct link_map): Add l_contiguous field.
8104 * sysdeps/generic/ldsodefs.h (_dl_addr_inside_object): New prototype.
8106 2007-06-18 Jakub Jelinek <jakub@redhat.com>
8107 Tomas Janousek <tjanouse@redhat.com>
8108 Ulrich Drepper <drepper@redhat.com>
8111 * resolv/res_send.c (send_dg): Remove socket_pf. Use ipv6_unavail
8112 member in __res_state, only convaddr4to6 if nssocks[ns] is a PF_INET6
8114 * resolv/resolv.h (__res_state): Add ipv6_unavail member. Make
8115 unused member a bitmap.
8116 * resolv/res_init.c (__res_vinit): Reset ipv6_unavail if IPv6
8117 servers are configured.
8119 2007-06-18 Jakub Jelinek <jakub@redhat.com>
8121 * elf/rtld.c (dl_main): Don't call init_tls more than once.
8123 2007-06-17 Andreas Schwab <schwab@suse.de>
8125 * sysdeps/generic/initfini.c: Tell gcc about the nonstandard sections.
8127 2007-06-16 Andreas Jaeger <aj@suse.de>
8130 * sysdeps/unix/sysv/linux/sys/ptrace.h
8131 (PTRACE_O_TRACESYSGOOD, PTRACE_O_TRACEFORK,
8132 PTRACE_O_TRACEVFORK, PTRACE_O_TRACECLONE, PTRACE_O_TRACEEXEC,
8133 PTRACE_O_TRACEVFORKDONE, PTRACE_O_TRACEEXIT, PTRACE_O_MASK,
8134 PTRACE_EVENT_FORK, PTRACE_EVENT_VFORK, PTRACE_EVENT_CLONE,
8135 PTRACE_EVENT_EXEC, PTRACE_EVENT_VFORK_DONE, PTRACE_EVENT_EXIT):
8137 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
8138 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
8139 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
8140 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
8142 2007-06-16 Ulrich Drepper <drepper@redhat.com>
8145 * sysdeps/unix/sysv/linux/check_pf.c (make_request): When
8146 determining whether there are IPv4/IPv6 addresses, ignore loopback
8149 2007-06-14 Uros Bizjak <ubizjak@gmail.com>
8151 * soft-fp/soft-fp.h (CMPtype): Define to "int" if undefined.
8152 * soft-fp/eqdf2.c (__eqdf2): Use CMPtype instead of int
8153 as the return type. Change type of "r" variable to CMPtype.
8154 * soft-fp/eqsf2.c (__eqsf2): Likewise.
8155 * soft-fp/eqtf2.c (__eqtf2): Likewise.
8156 * soft-fp/gedf2.c (__gedf2): Likewise.
8157 * soft-fp/gesf2.c (__gesf2): Likewise.
8158 * soft-fp/getf2.c (__getf2): Likewise.
8159 * soft-fp/ledf2.c (__ledf2): Likewise.
8160 * soft-fp/lesf2.c (__lesf2): Likewise.
8161 * soft-fp/letf2.c (__letf2): Likewise.
8162 * soft-fp/unorddf2 (__unorddf2): Likewise.
8163 * soft-fp/unordsf2 (__unordsf2): Likewise.
8164 * soft-fp/unordtf2 (__unordtf2): Likewise.
8166 2007-06-09 Ulrich Drepper <drepper@redhat.com>
8168 * elf/do-lookup.h (do_lookup_x): Read r_nlist before r_list and
8169 make sure gcc doesn't mess around with this.
8171 2007-06-08 Ulrich Drepper <drepper@redhat.com>
8173 * elf/dl-lookup.c (_dl_lookup_symbol_x): Remove use of r_nlist.
8175 2007-06-08 Jakub Jelinek <jakub@redhat.com>
8177 * elf/dl-close.c (_dl_close_worker): Remove all to be removed
8178 libraries from the global scope at once and call THREAD_GSCOPE_WAIT
8179 at most once per _dl_close_worker.
8181 2007-06-08 Ulrich Drepper <drepper@redhat.com>
8183 * sysdeps/unix/sysv/linux/bits/sched.h: Make second parameter of
8184 __sched_cpucount as const.
8185 * posix/sched_cpucount.c: Adjust.
8187 * posix/sched_cpucount.c (__sched_cpucount): Allow using special
8188 instruction for counting bits.
8189 * sysdeps/x86_64/sched_cpucount.c: New file.
8191 2007-06-07 Ulrich Drepper <drepper@redhat.com>
8193 * configure.in: Avoid variable named BASH.
8194 * config.make.in: Likewise.
8195 Patch in part by Mike Frysinger.
8197 2007-06-06 Jakub Jelinek <jakub@redhat.com>
8200 * sysdeps/i386/ldbl2mpn.c (__mpn_extract_long_double): Treat
8201 pseudo-zeros as zero.
8202 * sysdeps/x86_64/ldbl2mpn.c: New file.
8203 * sysdeps/ia64/ldbl2mpn.c: New file.
8205 2007-06-04 Jakub Jelinek <jakub@redhat.com>
8207 * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (nextafterl): Remove
8208 unused ily variable. Fix nextafterl on +-__LDBL_MAX__ and +-Inf.
8209 Remove unreachable code at the end.
8211 2007-06-01 Steven Munroe <sjmunroe@us.ibm.com>
8213 * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c: Correct description of
8214 ldbl-128ibm in comment.
8215 (fpclassifyl): Correct classification of denormals.
8216 * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (nextafterl): Correct
8217 return value for MIN denormal. Rewrite using long double math too
8218 correctly handle denormals and canonicalize the results.
8220 2007-06-05 Jakub Jelinek <jakub@redhat.com>
8222 * sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c
8223 (__mpn_construct_long_double): Fix conversion where result ought
8224 to be smaller than __LDBL_MIN__, or the low double should be
8225 denormal. Fix decision where to negate low double - honor round
8227 * stdio-common/tst-sprintf2.c: Include string.h.
8228 (COMPARE_LDBL): Define.
8229 (TEST): Also test whether a string hexadecimal float representation
8230 can be parsed back to the number.
8231 (main): Add a couple of further tests.
8233 2007-06-04 Jakub Jelinek <jakub@redhat.com>
8235 * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c
8236 (PRINT_FPHEX_LONG_DOUBLE): Fix printing numbers where lower double
8237 is non-zero, but smaller than 2 * __DBL_MIN__.
8238 * stdio-common/tst-sprintf2.c: New test.
8239 * stdio-common/Makefile (tests): Add tst-sprintf2.
8241 * math/test-misc.c (main): Don't run last batch of tests with
8242 IBM long double format.
8244 2007-05-31 Steven Munroe <sjmunroe@us.ibm.com>
8246 * sysdeps/powerpc/powerpc32/970/fpu/Implies: New file.
8247 * sysdeps/powerpc/powerpc32/power5/fpu/Implies: New file.
8248 * sysdeps/powerpc/powerpc32/power5+/fpu/Implies: New file.
8249 * sysdeps/powerpc/powerpc32/power6/fpu/Implies: New file.
8250 * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: New file.
8251 * sysdeps/powerpc/powerpc64/970/fpu/Implies: New file.
8252 * sysdeps/powerpc/powerpc64/power5/fpu/Implies: New file.
8253 * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: New file.
8254 * sysdeps/powerpc/powerpc64/power6/fpu/Implies: New file.
8255 * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: New file.
8256 * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/fpu/Implies: New file.
8257 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/fpu/Implies:
8259 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/fpu/Implies:
8261 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5+/fpu/Implies:
8263 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/Implies:
8265 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/fpu/Implies:
8267 * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/fpu/Implies: New file.
8268 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/fpu/Implies:
8270 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/fpu/Implies:
8272 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5+/fpu/Implies:
8274 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/Implies:
8276 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/fpu/Implies:
8279 2007-05-31 Steven Munroe <sjmunroe@us.ibm.com>
8281 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrint.S: Move.
8282 * sysdeps/powerpc/powerpc32/power4/fpu/s_llrint.S: To here.
8283 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrintf.S: Move.
8284 * sysdeps/powerpc/powerpc32/power4/fpu/s_llrintf.S: To here.
8285 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llround.S: Move.
8286 * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: To here.
8287 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llroundf.S: Move.
8288 * sysdeps/powerpc/powerpc32/power4/fpu/s_llroundf.S: To here.
8290 2007-05-22 Steven Munroe <sjmunroe@us.ibm.com>
8292 * sysdeps/powerpc/powerpc32/power5+/fpu/s_round.S
8293 (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
8294 * sysdeps/powerpc/powerpc32/power5+/fpu/s_trunc.S
8295 (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
8296 * sysdeps/powerpc/powerpc64/power5+/fpu/s_round.S
8297 (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
8298 * sysdeps/powerpc/powerpc64/power5+/fpu/s_trunc.S
8299 (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
8301 2007-05-21 Steven Munroe <sjmunroe@us.ibm.com>
8303 * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: New file.
8304 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.c: New file.
8305 * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: New file.
8306 * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: New file.
8308 2007-03-15 Steven Munroe <sjmunroe@us.ibm.com>
8310 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrint.S
8311 [LONG_DOUBLE_COMPAT]: Add compat_symbol for llrintl@@GLIBC_2_1.
8313 2006-02-13 Steven Munroe <sjmunroe@us.ibm.com>
8315 * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S: New File
8316 * sysdeps/powerpc/powerpc32/power6/fpu/s_llrintf.S: New File
8317 * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: New File
8318 * sysdeps/powerpc/powerpc32/power6/fpu/s_llroundf.S: New File
8320 2006-10-20 Steven Munroe <sjmunroe@us.ibm.com>
8322 * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: New file.
8323 * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: New file.
8325 2006-10-03 Steven Munroe <sjmunroe@us.ibm.com>
8327 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llround.S: New file.
8328 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llroundf.S: New file.
8330 * sysdeps/powerpc/powerpc32/powerpc64/fpu/Makefile: Moved.
8331 * sysdeps/powerpc/powerpc32/powerpc64/fpu/mpa.c: Likewise.
8332 * sysdeps/powerpc/powerpc32/power4/fpu/Makefile: To here.
8333 * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Likewise.
8335 2006-09-29 Steven Munroe <sjmunroe@us.ibm.com>
8337 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lrint.S: New file.
8338 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lround.S: New file.
8339 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: New file.
8340 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: New file.
8342 2006-09-28 Steven Munroe <sjmunroe@us.ibm.com>
8344 * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: New file.
8345 * sysdeps/powerpc/powerpc32/power5+/fpu/s_llroundf.S: New file.
8346 * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: New file.
8347 * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: New file.
8348 * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: New file.
8349 * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: New file.
8351 2006-08-31 Steven Munroe <sjmunroe@us.ibm.com>
8353 * sysdeps/powerpc/powerpc32/powerpc64/fpu/Makefile: New file.
8354 * sysdeps/powerpc/powerpc32/powerpc64/fpu/mpa.c: New file.
8355 * sysdeps/powerpc/powerpc64/power4/fpu/Makefile: New file.
8356 * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: New file.
8358 2006-06-15 Steven Munroe <sjmunroe@us.ibm.com>
8360 * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceil.S: New file.
8361 * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceilf.S: New file.
8362 * sysdeps/powerpc/powerpc32/power5+/fpu/s_floor.S: New file.
8363 * sysdeps/powerpc/powerpc32/power5+/fpu/s_floorf.S: New file.
8364 * sysdeps/powerpc/powerpc32/power5+/fpu/s_round.S: New file.
8365 * sysdeps/powerpc/powerpc32/power5+/fpu/s_roundf.S: New file.
8366 * sysdeps/powerpc/powerpc32/power5+/fpu/s_trunc.S: New file.
8367 * sysdeps/powerpc/powerpc32/power5+/fpu/s_truncf.S: New file.
8368 * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceil.S: New file.
8369 * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceilf.S: New file.
8370 * sysdeps/powerpc/powerpc64/power5+/fpu/s_floor.S: New file.
8371 * sysdeps/powerpc/powerpc64/power5+/fpu/s_floorf.S: New file.
8372 * sysdeps/powerpc/powerpc64/power5+/fpu/s_round.S: New file.
8373 * sysdeps/powerpc/powerpc64/power5+/fpu/s_roundf.S: New file.
8374 * sysdeps/powerpc/powerpc64/power5+/fpu/s_trunc.S: New file.
8375 * sysdeps/powerpc/powerpc64/power5+/fpu/s_truncf.S: New file.
8377 2006-03-20 Steven Munroe <sjmunroe@us.ibm.com>
8379 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrint.S: New file.
8380 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrintf.S: New file.
8382 2007-06-01 Steven Munroe <sjmunroe@us.ibm.com>
8384 * sysdeps/powerpc/powerpc32/power6/memset.S: New file.
8385 * sysdeps/powerpc/powerpc64/power6/memset.S: New file.
8387 2007-05-31 Steven Munroe <sjmunroe@us.ibm.com>
8389 * sysdeps/powerpc/powerpc32/970/Implies: New file.
8390 * sysdeps/powerpc/powerpc32/power5/Implies: New file.
8391 * sysdeps/powerpc/powerpc32/power5+/Implies: New file.
8392 * sysdeps/powerpc/powerpc32/power6/Implies: New file.
8393 * sysdeps/powerpc/powerpc32/power6x/Implies: New file.
8394 * sysdeps/powerpc/powerpc64/970/Implies: New file.
8395 * sysdeps/powerpc/powerpc64/power5/Implies: New file.
8396 * sysdeps/powerpc/powerpc64/power5+/Implies: New file.
8397 * sysdeps/powerpc/powerpc64/power6/Implies: New file.
8398 * sysdeps/powerpc/powerpc64/power6x/Implies: New file.
8400 2007-05-21 Steven Munroe <sjmunroe@us.ibm.com>
8402 * sysdeps/powerpc/powerpc32/power4/memset.S: New file
8404 2007-03-13 Steven Munroe <sjmunroe@us.ibm.com>
8406 * sysdeps/powerpc/powerpc64/memcpy.S: Improve aligned loop to minimize
8407 branch miss-predicts. Ensure that cache line crossing does not impact
8410 2006-12-13 Steven Munroe <sjmunroe@us.ibm.com>
8412 * sysdeps/powerpc/powerpc64/power4/memcopy.h: Replace with include
8413 "../../powerpc32/power4/memcopy.h".
8414 * sysdeps/powerpc/powerpc64/power4/wordcopy.c: Replace with include
8415 "../../powerpc32/power4/wordcopy.c".
8417 2006-10-03 Steven Munroe <sjmunroe@us.ibm.com>
8419 * sysdeps/powerpc/powerpc32/powerpc64/Makefile: Moved.
8420 * sysdeps/powerpc/powerpc32/powerpc64/memcopy.h: Likewise.
8421 * sysdeps/powerpc/powerpc32/powerpc64/wordcopy.c: Likewise.
8422 * sysdeps/powerpc/powerpc32/power4/Makefile: To here.
8423 * sysdeps/powerpc/powerpc32/power4/memcopy.h: Likewise.
8424 * sysdeps/powerpc/powerpc32/power4/wordcopy.c: Likewise.
8426 2006-09-10 Steven Munroe <sjmunroe@us.ibm.com>
8428 * sysdeps/powerpc/powerpc32/power6/memcpy.S: New file.
8430 2006-08-31 Steven Munroe <sjmunroe@us.ibm.com>
8432 * sysdeps/powerpc/powerpc32/power6/wordcopy.c: New file.
8433 * sysdeps/powerpc/powerpc32/powerpc64/Makefile: New file.
8434 * sysdeps/powerpc/powerpc32/powerpc64/memcopy.h: New file.
8435 * sysdeps/powerpc/powerpc32/powerpc64/wordcopy.c: New file.
8436 * sysdeps/powerpc/powerpc64/power4/Makefile: New file.
8437 * sysdeps/powerpc/powerpc64/power4/memcopy.h: New file.
8438 * sysdeps/powerpc/powerpc64/power4/wordcopy.c: New file.
8439 * sysdeps/powerpc/powerpc64/power6/wordcopy.c: New file.
8441 2006-07-06 Steven Munroe <sjmunroe@us.ibm.com>
8443 * sysdeps/powerpc/powerpc64/power6/memcpy.S: New file.
8445 2006-03-20 Steven Munroe <sjmunroe@us.ibm.com>
8447 * sysdeps/powerpc/powerpc32/power4/memcmp.S: New file.
8448 * sysdeps/powerpc/powerpc32/power4/memcpy.S: New file.
8449 * sysdeps/powerpc/powerpc32/power4/memset.S: New file.
8450 * sysdeps/powerpc/powerpc32/power4/strncmp.S: New file.
8451 * sysdeps/powerpc/powerpc64/power4/memcmp.S: New file.
8452 * sysdeps/powerpc/powerpc64/power4/memcpy.S: New file.
8453 * sysdeps/powerpc/powerpc64/power4/strncmp.S: New file.
8455 2007-05-29 Roland McGrath <roland@redhat.com>
8457 * po/Makefile (po-sed-cmd): New variable.
8458 (libc.pot.files): Move sed command text in there, avoid \ inside ''.
8460 2007-05-29 Ulrich Drepper <drepper@redhat.com>
8462 * crypt/md5-crypt.c: Fix comment.
8464 * nscd/nscd_helper.c (get_mapping): Handle short replies instead
8465 of crashing. When this is the case or if the reply is malformed,
8466 don't try to close the new file descriptor since it does not
8468 Patch in part by Guillaume Chazarain <guichaz@yahoo.fr>.
8470 2007-05-28 Jakub Jelinek <jakub@redhat.com>
8472 * sysdeps/unix/sysv/linux/futimes.c (miss_utimensat): Don't define
8473 if __NR_utimensat is not defined.
8475 2007-05-26 Ulrich Drepper <drepper@redhat.com>
8477 * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Include <sysdep.h>.
8479 2007-05-25 Jakub Jelinek <jakub@redhat.com>
8481 * io/bits/fcntl2.h (__open_2): Add nonnull attribute.
8482 (open): Fix comment typos. Don't call __open_2 if flags
8483 is a compile time constant without O_CREAT.
8484 (__open64_2): Add nonnull attribute.
8485 (open64): Fix comment typos. Don't call __open64_2 if flags
8486 is a compile time constant without O_CREAT.
8487 (__openat_2): Add nonnull attribute, fix nonnull attribute
8489 (openat): Fix comment typos. Don't call __openat_2 if flags
8490 is a compile time constant without O_CREAT.
8491 (__openat64_2): Add nonnull attribute, fix nonnull attribute
8493 (openat64): Fix comment typos. Don't call __openat64_2 if flags
8494 is a compile time constant without O_CREAT.
8496 2007-05-24 Ulrich Drepper <drepper@redhat.com>
8498 * Makerules (sysd-rules): Define PTW for ptw-* files.
8499 * Versions: Define GLIBC_2.7 for libc.
8500 * include/stdio.h: Declare __fortify_fail.
8501 * debug/fortify_fail.c: New file.
8502 * debug/Makefile (routines): Add fortify_fail.
8503 * debug/chk_fail.c: Use __fortify_fail.
8504 * debug/stack_chk_fail.c: Likewise.
8505 * io/Versions: Export __open_2, __open64_2, __openat_2, and
8506 __openat64_2 for GLIBC_2.7.
8507 * io/fcntl.h: When compiling with fortification, include bits/fcntl2.h.
8508 * io/open.c: Define *_2 variant of function which checks for O_CREAT
8509 and fails if necessary.
8510 * io/open64.c: Likewise.
8511 * io/openat.c: Likewise.
8512 * io/openat64.c: Likewise.
8513 * sysdeps/unix/sysv/linux/open64.c: Likewise.
8514 * sysdeps/unix/sysv/linux/openat.c: Likewise.
8515 * sysdeps/unix/sysv/linux/openat64.c: Likewise.
8516 * io/bits/fcntl2.h: New file.
8517 * include/fcntl.h: Declare __open_2, __open64_2, __openat_2, and
8519 * include/bits/fcntl2.h: New file.
8520 * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
8522 * sysdeps/unix/sysv/linux/open_2.c: New file.
8524 2007-05-21 Ulrich Drepper <drepper@redhat.com>
8526 * sysdeps/x86_64/cacheinfo.c (init_cacheinfo): Pass correct value
8527 as second parameter to handle_intel.
8529 * nscd/aicache.c (addhstaiX): If reported TTL is zero don't cache
8532 * sysdeps/unix/sysv/linux/x86_64/sysconf.c: Move cache information
8534 * sysdeps/x86_64/cacheinfo.c: ... here. New file.
8535 * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
8537 * sysdeps/x86_64/memcpy.S: Complete rewrite.
8538 * sysdeps/x86_64/mempcpy.S: Adjust appropriately.
8539 Patch by Evandro Menezes <evandro.menezes@amd.com>.
8541 * sysdeps/unix/sysv/linux/i386/epoll_pwait.S: New file.
8543 2007-05-21 Jakub Jelinek <jakub@redhat.com>
8546 * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add epoll_pwait.
8547 * sysdeps/unix/sysv/linux/epoll_pwait.c: New file.
8548 * sysdeps/unix/sysv/linux/syscalls.list (epoll_pwait): Remove.
8550 * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h (epoll_pwait): Declare.
8553 * stdio-common/vfprintf.c (vfprintf): Don't shadow workstart variable,
8554 reinitialize workend at the start of each do_positional format spec
8555 loop, free workstart before do_positional loops.
8556 (printf_unknown): Fix size of work_buffer.
8557 * stdio-common/tst-sprintf.c (main): Add 3 new testcases.
8559 * malloc/hooks.c (MALLOC_STATE_VERSION): Bump.
8560 (public_sET_STATe): If ms->version < 3, put all chunks into
8561 unsorted chunks and clear {fd,bk}_nextsize fields of largebin
8564 * malloc/malloc.c [MALLOC_DEBUG]: Revert 2007-05-13 changes.
8565 * malloc/hooks.c: Likewise.
8566 * malloc/arena.c: Likewise.
8567 * malloc/malloc.c (do_check_malloc_state): Don't assert
8568 n_mmaps is not greater than n_mmaps_max. This removes the need
8569 for the previous change.
8571 * malloc/Makefile (CFLAGS-malloc.c): Revert accidental
8574 2007-05-19 Ulrich Drepper <drepper@redhat.com>
8576 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_PRIVATE_FUTEX):
8577 Define for kernel >= 2.6.22.
8579 2007-05-18 Ulrich Drepper <drepper@redhat.com>
8581 * elf/dl-close.c (_dl_close_worker): When removing object from
8582 global scope, wait for all lookups to finish afterwards.
8583 * elf/dl-open.c (add_to_global): When global scope array must
8584 grow, allocate a new one and free old array only after all
8586 * elf/dl-runtime.c (_dl_fixup): Protect using global scope.
8587 (_dl_lookup_symbol_x): Likewise.
8588 * elf/dl-support.c: Define _dl_wait_lookup_done.
8589 * sysdeps/generic/ldsodefs.h (struct rtld_global): Add
8590 _dl_wait_lookup_done.
8592 * malloc/malloc.c (do_check_chunk): Correct check for mmaped block
8593 not overlapping with arena.
8595 * malloc/mcheck.c (reallochook): If size==0, free the block.
8597 * rt/tst-shm.c: Use fstat64 instead of fstat.
8599 * sysdeps/unix/sysv/linux/i386/sync_file_range.S: Fix case where
8600 __NR_sync_file_range is not defined.
8602 2007-05-17 Ulrich Drepper <drepper@redhat.com>
8604 Dummy files to prevent stub versions from being used.
8605 * sysdeps/x86_64/fpu/k_cosl.c: New file.
8606 * sysdeps/x86_64/fpu/k_rem_pio2l.c: New file.
8607 * sysdeps/x86_64/fpu/k_sinl.c: New file.
8608 * sysdeps/x86_64/fpu/k_tanl.c: New file.
8610 * version.h (VERSION): Set to 2.6.90.
8612 2007-05-14 Ulrich Drepper <drepper@redhat.com>
8614 * version.h (VERSION): Define to 2.6.
8615 * include/features.h (__GLIBC_MINOR__): Define to 6.
8617 * malloc/malloc.c: Use all small bin slots on 64-bit archs.
8619 * malloc/malloc.c (largebin_index): Really have 32 buckets with 64
8622 2007-05-13 Ulrich Drepper <drepper@redhat.com>
8624 * malloc/malloc.c [MALLOC_DEBUG]: Keep track of current maximum
8625 number of mmaps. n_mmaps_max is the target.
8626 * malloc/hooks.c: Likewise.
8627 * malloc/arena.c: Likewise.
8629 2007-05-12 Andreas Jaeger <aj@suse.de>
8631 * sysdeps/unix/sysv/linux/tst-getcpu.c: Include <unistd.h> for
8634 2007-05-11 Ulrich Drepper <drepper@redhat.com>
8636 * elf/dl-close.c (_dl_close_worker): Help gcc to optimize by
8637 adding new variables.
8639 * elf/dl-open.c (add_to_global): Introduce variable ns to help gcc
8640 optimize. Completely extend global scope array before making the
8641 new entries visible.
8643 2007-05-10 Ulrich Drepper <drepper@redhat.com>
8645 * sysdeps/unix/sysv/linux/tst-getcpu.c: New file.
8646 * sysdeps/unix/sysv/linux/Makefile [subdir=posix] (tests): Add
8649 * include/link.h: Move l_version and l_nversion members around to
8652 * scripts/check-c++-types.sh: Don't use -fnu89-inline option.
8654 * sysdeps/unix/sysv/linux/sched_setaffinity.c
8655 (__sched_setaffinity_new): If syscall was successful and
8656 RESET_VGETCPU_CACHE is defined, use it before returning.
8657 * sysdeps/unix/sysv/linux/x86_64/sched_setaffinity.c: New file.
8659 * io/sys/stat.h: Make sure struct timespec is defined for
8662 * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Define UTIME_NOW and
8664 * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
8665 * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
8666 * sysdeps/unix/sysv/linux/alpha/bits/stat.h: Likewise.
8667 * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Likewise.
8668 * sysdeps/unix/sysv/linux/bits/stat.h: Likewise.
8669 * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
8670 * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_UTIMENSAT.
8671 * io/sys/stat.h: Declare utimensat, futimens.
8672 * io/utimensat.c: New file.
8673 * io/futimens.c: New file.
8674 * sysdeps/unix/sysv/linux/utimensat.c: New file.
8675 * sysdeps/unix/sysv/linux/futimens.c: New file.
8676 * io/Makefile (routines): Add utimensat, futimens.
8677 * io/Versions: Add utimensat, futimens to GLIBC_2.6.
8678 * sysdeps/unix/sysv/linux/lutimes.c: New file.
8679 * sysdeps/unix/sysv/linux/futimes.c: Use utimensat syscall if
8682 * include/sys/cdefs.h: Redefine __nonnull so that test for
8683 incorrect parameters in the libc code itself are not omitted.
8685 2007-05-09 Jakub Jelinek <jakub@redhat.com>
8687 * sysdeps/ia64/fpu/fraiseexcpt.c (feraiseexcept): Don't raise overflow
8688 exception in addition to inexact when asked to raise only FE_INEXACT.
8691 * sysdeps/s390/fpu/feholdexcpt.c (feholdexcept): Don't clear exceptions
8694 2007-05-07 Ulrich Drepper <drepper@redhat.com>
8697 * string/strfry.c (strfry): Make result more random.
8699 2007-05-07 Richard Henderson <rth@redhat.com>
8701 * sysdeps/alpha/fpu/bits/mathinline.h (__isnanl): Don't define
8702 if __NO_LONG_DOUBLE_MATH.
8703 * sysdeps/unix/sysv/linux/alpha/ioperm.c: If BWX insns not
8704 available in the compiler, add .arch directive to the assembly.
8706 2007-05-07 Jakub Jelinek <jakub@redhat.com>
8708 * sysdeps/alpha/fpu/s_nearbyint.c (nearbyintl): Fix version on
8709 compat_symbol to GLIBC_2_1.
8710 * sysdeps/alpha/fpu/s_fmin.S (fminl): Likewise.
8711 * sysdeps/alpha/fpu/s_trunc.c (truncl): Likewise.
8712 * sysdeps/alpha/fpu/s_fmax.S (fmaxl): Likewise.
8713 * sysdeps/alpha/fpu/s_lrint.c (lrintl, llrintl): Likewise.
8714 * sysdeps/alpha/fpu/s_lround.c (lroundl, llroundl): Likewise.
8715 * sysdeps/alpha/fpu/s_round.c (roundl): Likewise.
8716 * sysdeps/alpha/fpu/s_isnan.c (isnanl): Provide compat_symbol in
8718 (__isnanl): New compat_symbol.
8720 2007-05-07 Ulrich Drepper <drepper@redhat.com>
8721 Jakub Jelinek <jakub@redhat.com>
8723 * malloc/arena.c (heap_info): Add mprotect_size field, adjust pad.
8724 (new_heap): Initialize mprotect_size.
8725 (grow_heap): When growing, only mprotect from mprotect_size till
8726 new_size if mprotect_size is smaller. When shrinking, use PROT_NONE
8727 MMAP for __libc_enable_secure only, otherwise use MADV_DONTNEED.
8729 2007-04-30 Steven Munroe <sjmunroe@us.ibm.com>
8730 Peter Bergner <bergner@us.ibm.com>
8732 * sysdeps/powerpc/bits/fenv.h: Declare __fe_mask_env extern.
8733 Define FE_NOMASK_ENV as FE_EANBLED_ENV. Define FE_MASK_ENV.
8734 * sysdeps/powerpc/fpu/Makefile: Add fe_mask to libm-support.
8735 * sysdeps/powerpc/fpu/fe_mask.c: New file.
8736 * sysdeps/powerpc/fpu/fe_nomask.c: Correct comment.
8737 * sysdeps/powerpc/fpu/fedisblxcpt.c (fedisableexcept):
8738 Call __fe_mask_env() if all FP exceptions disabled.
8739 * sysdeps/powerpc/fpu/feholdexcpt.c (feholdexcept): Copy high 32-bits
8740 from old FPSCR to new fenv to propagate DFP rounding modes.
8741 Call __fe_mask_env() if FP exceptions previously enabled.
8742 * sysdeps/powerpc/fpu/fesetenv.c (fesetenv): Change mask to merge
8743 exceptions from env. Use __fe_nomask_env() or __fe_mask_env() when
8744 transitioning from all exceptions disabled to any exception enabled
8746 * sysdeps/powerpc/fpu/feupdateenv.c (__feupdateenv): Change mask to
8747 merge exceptions from env. Call __fe_nomask_env or __fe_mask_env
8748 when transitioning from all exceptions disabled to any exception
8749 enabled or visa versa.
8750 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fe_nomask.c: Moved to...
8751 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c: ...here.
8752 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fe_nomask.c: Moved to...
8753 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c: ...here.
8754 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_mask.c: New file.
8755 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_mask.c: New file.
8757 2007-05-06 Ulrich Drepper <drepper@redhat.com>
8760 * posix/unistd.h: Remove __THROW from fdatasync.
8762 2007-05-06 Mike Frysinger <vapier@gentoo.org>
8765 * sysdeps/unix/sysv/linux/syscalls.list (fdatasync): Add "C" to args.
8767 2007-05-06 Ulrich Drepper <drepper@redhat.com>
8769 * stdio-common/vfprintf.c (process_string_arg): Optimize
8770 ridiculous precision in wide char code printing multi-byte string.
8771 Reported by Jim Meyering <jim@meyering.net>.
8774 * elf/dl-addr.c (_dl_addr): Compare address with actual segment
8775 boundaries to work around systems with overlapping binary loading.
8776 Based on a patch by Suzuki <suzuki@in.ibm.com>.
8778 2007-05-04 Ulrich Drepper <drepper@redhat.com>
8780 * stdio-common/vfprintf.c (process_string_arg): Adjust call to
8781 __mbsnrtowcs after last change.
8783 * locale/programs/linereader.c (get_symname): Fix adding final NUL.
8784 (get_ident): Likewise.
8786 2007-05-03 Jakub Jelinek <jakub@redhat.com>
8788 * soft-fp/op-common.h (FP_TRUNC): Replace raising of FP_EX_INEXACT
8789 with setting the sticky bit.
8790 * math/test-misc.c (main): Add more truncation tests.
8792 2007-04-14 Uros Bizjak <ubizjak@gmail.com>
8794 * soft-fp/floatunsidf.c (__floatunsidf): Use DFtype instead of
8795 double in the function declaration.
8796 * soft-fp/floatundidf.c (__floatundidf): Use DFtype instead of
8797 double in the function declaration.
8798 * soft-fp/floatunsisf.c (__floatunsisf): Use SFtype instead of
8799 float in the function declaration.
8800 * soft-fp/floatunsisf.c (__floatunsisf): Use SFtype instead of
8801 float in the function declaration.
8803 * soft-fp/extended.h (FP_UNPACK_RAW_E): Do not increase X##_e for
8804 denormal operands. Do not generate FP_EX_DENORM exception.
8805 (FP_UNPACK_RAW_EP): Ditto.
8806 (FP_UNPACK_SEMIRAW_E): Use FP_UNPACK_RAW_E instead of
8807 undefined _FP_UNPACK_RAW_E.
8808 (FP_UNPACK_SEMIRAW_EP): Use FP_UNPACK_RAW_EP instead of
8809 undefined _FP_UNPACK_RAW_EP.
8810 (FP_PACK_SEMIRAW_E): Use FP_PACK_RAW_E instead of
8811 undefined _FP_PACK_RAW_E.
8812 (FP_PACK_SEMIRAW_EP): Use FP_PACK_RAW_EP instead of
8813 undefined _FP_PACK_RAW_EP.
8815 * soft-fp/op-2.h (_FP_FRAC_COPY_2_2): Define as alias to
8817 * soft-fp/op-4.h (_FP_FRAC_COPY_2_2): Define as alias to
8820 2007-04-16 Uros Bizjak <ubizjak@gmail.com>
8821 Jakub Jelinek <jakub@redhat.com>
8823 * soft-fp/op-common.h (FP_EXTEND): Do not abort when
8824 _FP_EXPBIAS_##dfs == _FP_EXPBIAS_##sfs. Handle denormals for
8826 * soft-fp/op-common.h (FP_TRUNC): Ditto.
8828 2007-05-03 Jakub Jelinek <jakub@redhat.com>
8830 * math/test-misc.c (main): Add tests for rounding long double
8831 values close to smallest double denormalized value to double.
8833 2007-04-30 Joseph Myers <joseph@codesourcery.com>
8835 * soft-fp/op-common.h (FP_TRUNC): Correct off-by-one error in
8836 condition for truncating to 0. Set sticky bit for such
8839 2007-05-02 Jakub Jelinek <jakub@redhat.com>
8841 * stdio-common/vfprintf.c (process_string_arg): Use a VLA rather than
8842 fixed length array for ignore.
8844 2007-04-30 Ulrich Drepper <drepper@redhat.com>
8847 * stdio-common/vfprintf.c (process_string_arg): Don't overflow the
8848 stack for large precisions.
8849 * stdio-common/test-vfprintf.c (main): Add test for large
8852 2007-04-30 Jakub Jelinek <jakub@redhat.com>
8854 * stdio-common/printf_fp.c (___printf_fp): Don't print negative sign
8856 * stdio-common/tfformat.c (sprint_doubles): Add a new test.
8859 * resolv/inet_ntop.c (inet_ntop4): Take terminating '\0' into
8860 account in the size check.
8861 * resolv/tst-inet_ntop.c: New test.
8862 * resolv/Makefile (tests): Add tst-inet_ntop.
8864 2007-04-30 Ulrich Drepper <drepper@redhat.com>
8865 Jakub Jelinek <jakub@redhat.com>
8868 * malloc/malloc.c: Keep separate list for first blocks on the bin
8869 lists with a given size. This helps skipping over list elements
8870 we know won't fit in two places.
8871 Inspired by a patch by Tomash Brechko <tomash.brechko@gmail.com>.
8873 2007-04-28 Ulrich Drepper <drepper@redhat.com>
8876 * sysdeps/posix/getaddrinfo.c (default_labels): Assign separate
8877 label to Teredo tunnel addresses 2001://32.
8879 2007-04-27 Ulrich Drepper <drepper@redhat.com>
8881 * locale/programs/ld-collate.c (collate_read): Allow order_start
8884 * locale/programs/ld-collate.c (collate_read): Fix printing of
8888 * locale/C-translit.h.in: Add entry for U2044.
8891 * stdio-common/vfscanf.c (_IO_vfscanf_internal): Allow
8892 hexa-decimal floats without exponent.
8893 * stdio-common/tstscanf.c (main): Adjust Test 8 test for success.
8895 2007-04-25 Ulrich Drepper <drepper@redhat.com>
8897 * sysdeps/unix/sysv/linux/bits/sched.h: Declare sched_getcpu.
8898 * sysdeps/unix/sysv/linux/sched_getcpu.c: New file.
8899 * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: New file.
8900 * sysdeps/unix/sysv/linux/Versions: Export sched_getcpu for
8902 * sysdeps/unix/sysv/linux/Makefile [subdir=posix] (sysdep_routines):
8905 2007-04-25 Jakub Jelinek <jakub@redhat.com>
8907 * sysdeps/unix/sysv/linux/check_pf.c (make_request): Return -1 instead
8908 of 0 after the out_fail label.
8910 2007-04-25 Ulrich Drepper <drepper@redhat.com>
8913 * iconv/gconv_charset.h (strip): Allow ':'.
8914 * iconv/iconv_open.c (iconv_open): Adjust comment.
8916 2007-04-25 Jakub Jelinek <jakub@redhat.com>
8918 * libio/bits/stdio.h (fgetc_unlocked): Add extern inline optimized
8921 2007-04-23 Jakub Jelinek <jakub@redhat.com>
8924 * nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Ensure sufficient
8925 alignment of buffer and tmp_buffer.
8926 * nis/nss_nis/nis-hosts.c (internal_nis_gethostent_r,
8927 internal_gethostbyname2_r, _nss_nis_gethostbyaddr_r): Ensure sufficient
8928 alignment of buffer.
8929 * resolv/nss_dns/dns-hosts.c (getanswer_r): Likewise. Handle buflen
8930 bigger than INT_MAX.
8931 * resolv/nss_dns/dns-network.c (getanswer_r): Likewise. Add errnop and
8932 h_errnop arguments. Fail if buflen is too small.
8933 (_nss_dns_getnetbyname_r, _nss_dns_getnetbyaddr_r): Adjust callers.
8935 2007-04-23 Jakub Jelinek <jakub@redhat.com>
8938 * iconvdata/gconv-modules (E13B): Add a missing slash to the alias
8939 name. Patch by Aurelien Jarno <aurelien@aurel32.net>.
8941 2007-04-22 Roland McGrath <roland@redhat.com>
8943 * elf/elf.h (NT_PRXFPREG): New macro.
8945 2007-04-19 Andreas Jaeger <aj@suse.de>
8948 * bits/in.h (IPV6_ROUTER_ALERT, IPV6_MTU_DISCOVER, IPV6_MTU,
8949 IPV6_RECVERR, IPV6_V6ONLY, IPV6_JOIN_ANYCAST, IPV6_LEAVE_ANYCAST):
8952 2007-04-19 Ulrich Drepper <drepper@redhat.com>
8954 * include/sys/mman.h: Mark madvise hidden.
8955 * misc/madvise.c: Add libc_hidden_def.
8957 2007-04-06 Jakub Jelinek <jakub@redhat.com>
8959 * nis/nis_domain_of.c (__nis_domain_of): New function.
8960 * include/rpcsvc/nislib.h (__nis_domain_of): New prototype.
8961 * nis/nis_lookup.c (nis_lookup): Use __nis_domain_of.
8962 * nis/nis_call.c (rec_dirsearch): Likewise.
8963 (first_shoot): Likewise. Remove search_parent_first argument.
8964 (struct nis_server_cache): Rename search_parent_first field
8966 (nis_server_cache_search, nis_server_cache_add): Rename
8967 search_parent_first argument to search_parent.
8968 (__nisfind_server): Likewise. If search_parent, call
8971 2007-04-18 Ulrich Drepper <drepper@redhat.com>
8973 * sysdeps/posix/getaddrinfo.c: Remove commented-out code.
8975 2007-04-17 Ulrich Drepper <drepper@redhat.com>
8978 * stdlib/stdlib.h: Remove obsolete part of comment for realpath.
8980 2007-04-16 Ulrich Drepper <drepper@redhat.com>
8983 * posix/unistd.h (_XOPEN_VERSION): Define appropriately for SUSv3.
8985 2007-04-15 Jakub Jelinek <jakub@redhat.com>
8987 * locale/programs/locarchive.c (INITIAL_NUM_NAMES,
8988 INITIAL_SIZE_STRINGS, INITIAL_NUM_LOCREC): Update to accomodate
8989 current number of locales in SUPPORTED.
8990 (create_archive): Initialize serial.
8991 (enlarge_archive): Preserve aliases rather than duplicating
8994 2007-04-13 Jakub Jelinek <jakub@redhat.com>
8996 * libio/genops.c (_IO_default_finish): Call _IO_lock_fini
8997 after _IO_un_link, not before it.
8999 * stdio-common/printf_fp.c (___printf_fp): Fix exponent -4
9000 special case handling when wcp == wstartp + 1. Fix a comment typo.
9001 * stdio-common/tfformat.c (sprint_doubles): Add a new testcase.
9003 2007-03-30 Jakub Jelinek <jakub@redhat.com>
9005 * libio/libio.h (__underflow, __uflow, __overflow, __wunderflow,
9006 __wuflow, __woverflow, _IO_getc, _IO_putc, _IO_peekc_locked, _IO_padn,
9007 _IO_sgetn, _IO_seekoff, _IO_seekpos, _IO_getwc, _IO_putwc, _IO_wpadn):
9009 * libio/fileops.c (new_do_write, _IO_file_xsgetn_mmap,
9010 _IO_file_xsgetn_maybe_mmap): Likewise.
9011 * libio/oldfileops.c (old_do_write): Likewise.
9012 * libio/libioP.h (_IO_switch_to_get_mode, _IO_switch_to_wget_mode,
9013 _IO_init_marker, _IO_init_wmarker, _IO_default_uflow,
9014 _IO_wdefault_uflow, _IO_default_setbuf, _IO_default_seekpos,
9015 _IO_do_write, _IO_new_do_write, _IO_old_do_write, _IO_wdo_write,
9016 _IO_flush_all_lockp, _IO_flush_all, _IO_cleanup,
9017 _IO_flush_all_linebuffered, _IO_new_fgetpos, _IO_old_fgetpos,
9018 _IO_new_fsetpos, _IO_old_fsetpos, _IO_new_fgetpos64,
9019 _IO_old_fgetpos64, _IO_new_fsetpos64, _IO_old_fsetpos64,
9020 _IO_file_setbuf, _IO_file_seekoff, _IO_file_xsputn, _IO_file_xsgetn,
9021 _IO_file_underflow, _IO_file_underflow_mmap,
9022 _IO_file_underflow_maybe_mmap, _IO_file_overflow, _IO_file_attach,
9023 _IO_file_open, _IO_file_fopen, _IO_file_write, _IO_file_read,
9024 _IO_file_sync, _IO_file_close_it, _IO_file_finish,
9025 _IO_new_file_attach, _IO_new_file_close_it, _IO_new_file_finish,
9026 _IO_new_file_fopen, _IO_new_file_setbuf, _IO_file_setbuf_mmap,
9027 _IO_new_file_sync, _IO_new_file_underflow, _IO_new_file_overflow,
9028 _IO_new_file_seekoff, _IO_new_file_write, _IO_new_file_xsputn,
9029 _IO_old_file_setbuf, _IO_old_file_seekoff, _IO_old_file_xsputn,
9030 _IO_old_file_underflow, _IO_old_file_overflow, _IO_old_file_attach,
9031 _IO_old_file_fopen, _IO_old_file_write, _IO_old_file_sync,
9032 _IO_old_file_close_it, _IO_old_file_finish, _IO_wfile_xsputn,
9033 _IO_wfile_setbuf, _IO_wfile_sync, _IO_wfile_underflow,
9034 _IO_wfile_overflow, _IO_wfile_seekoff, _IO_old_proc_open,
9035 _IO_old_proc_close, _IO_getdelim, _IO_flush_all_internal,
9036 _IO_adjust_column_internal, _IO_default_uflow_internal,
9037 _IO_default_xsgetn_internal, _IO_wdefault_xsputn_internal,
9038 _IO_wdefault_xsgetn_internal, _IO_wdefault_uflow_internal,
9039 _IO_file_setbuf_internal, _IO_file_seekoff_internal,
9040 _IO_file_xsputn_internal, _IO_file_xsgetn_internal,
9041 _IO_file_close_it_internal, _IO_file_underflow_internal,
9042 _IO_file_overflow_internal, _IO_file_attach_internal,
9043 _IO_file_fopen_internal, _IO_file_sync_internal,
9044 _IO_file_finish_internal, _IO_wfile_xsputn_internal,
9045 _IO_wfile_seekoff_internal, _IO_wfile_sync_internal,
9046 _IO_switch_to_wget_mode_internal, _IO_padn_internal,
9047 _IO_switch_to_get_mode_internal, _IO_seekoff_unlocked,
9048 _IO_seekpos_unlocked): Likewise.
9049 (_IO_strtod, _IO_dtoa, _IO_outfloat, _IO_read, _IO_write,
9050 _IO_lseek, _IO_close, _IO_fstat): Remove unused prototypes.
9052 2007-04-16 Jakub Jelinek <jakub@redhat.com>
9054 * locale/programs/locarchive.c (show_archive_content): Fix sizeof
9055 argument in xmalloc size computation.
9057 2007-04-01 Jakub Jelinek <jakub@redhat.com>
9059 * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (__nextafterl): Use
9060 math_opt_barrier and math_force_eval macros.
9062 2007-03-27 Jakub Jelinek <jakub@redhat.com>
9065 * math/math_private.h (math_opt_barrier, math_force_eval): Define.
9066 * sysdeps/i386/fpu/math_private.h: New file.
9067 * sysdeps/x86_64/fpu/math_private.h: New file.
9068 * math/s_nexttowardf.c (__nexttowardf): Use math_opt_barrier and
9069 math_force_eval macros. Use "+m" constraint on asm rather than
9071 * math/s_nextafter.c (__nextafter): Likewise.
9072 * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c (__nexttoward):
9074 * sysdeps/ieee754/flt-32/s_nextafterf.c (__nextafterf): Likewise.
9075 * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward): Likewise.
9076 * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
9077 * sysdeps/i386/fpu/s_nextafterl.c (__nextafterl): Use
9078 math_opt_barrier and math_force_eval macros.
9079 * sysdeps/ieee754/ldbl-128/s_nextafterl.c (__nextafterl): Likewise.
9080 * sysdeps/ieee754/ldbl-96/s_nextafterl.c (__nextafterl): Likewise.
9081 * sysdeps/i386/fpu/s_nexttoward.c: Include float.h.
9082 (__nexttoward): Use math_opt_barrier and
9083 math_force_eval macros. Use "+m" constraint on asm rather than
9084 "=m" and "m". Only use asm to force double result if
9085 FLT_EVAL_METHOD is 2.
9086 * sysdeps/i386/fpu/s_nexttowardf.c: Include float.h.
9087 (__nexttowardf): Use math_opt_barrier and
9088 math_force_eval macros. Use "+m" constraint on asm rather than
9089 "=m" and "m". Only use asm to force double result if
9090 FLT_EVAL_METHOD is not 0.
9091 * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Include float.h.
9092 (__nexttowardf): Use math_opt_barrier and
9093 math_force_eval macros. If FLT_EVAL_METHOD is not 0, force
9094 x to float using asm.
9095 * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c: Include float.h.
9096 (__nldbl_nexttowardf): Use math_opt_barrier and
9097 math_force_eval macros. If FLT_EVAL_METHOD is not 0, force
9098 x to float using asm.
9099 * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Include float.h.
9100 (__nexttowardf): Use math_opt_barrier and math_force_eval
9101 macros. If FLT_EVAL_METHOD is not 0, force x to float using asm.
9102 * math/bug-nextafter.c (zero, inf): New variables.
9103 (main): Add new tests.
9104 * math/bug-nexttoward.c (zero, inf): New variables.
9105 (main): Add new tests.
9107 2007-03-22 Jakub Jelinek <jakub@redhat.com>
9110 * sysdeps/x86_64/fpu/feholdexcpt.c (feholdexcept): Clear all
9111 exceptions both in SW and MXCSR.
9112 * sysdeps/x86_64/fpu/feupdateenv.c: New file.
9113 * sysdeps/x86_64/fpu/feenablxcpt.c (feenableexcept): Remove dead code.
9114 * sysdeps/x86_64/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
9115 * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Clear all exceptions
9116 in MXCSR if SSE is available.
9117 * sysdeps/i386/fpu/feupdateenv.c: Include unistd.h, dl-procinfo.h
9119 (__feupdateenv): Query exceptions also from MXCSR if SSE is available.
9121 * sysdeps/ia64/fpu/feholdexcpt.c (feholdexcept): Clear all exceptions.
9122 Return 0 rather than 1.
9123 * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Fix comment typo.
9124 Remove incorrect part of a comment. Fix argument to feraiseexcept.
9125 * math/test-fenv.c (feholdexcept_tests): New function.
9128 2007-01-05 Richard B. Kreckel <kreckel@ginac.de>
9131 * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Clear all exceptions
9134 2007-04-13 Jakub Jelinek <jakub@redhat.com>
9137 * elf/ldconfig.c (search_dir): Fix 2 off-by-2 errors.
9138 Reported by David Anderson <davea42@earthlink.net>.
9140 2007-04-07 Ulrich Drepper <drepper@redhat.com>
9142 * posix/sys/wait.h: Remove unnecessary forward declaration.
9144 2007-04-05 Jakub Jelinek <jakub@redhat.com>
9146 * nis/nis_call.c (__nisfind_server): Replace (*dir)->do_servers
9147 with obj->do_servers after first_shoot.
9149 2007-04-03 Ulrich Drepper <drepper@redhat.com>
9151 * posix/Makefile (routines): Add sched_cpucount.
9152 (tests): Add tst-cpucount.
9153 * posix/sched_cpucount.c: New file.
9154 * posix/tst-cpucount.c: New file.
9155 * posix/Versions: Export __sched_cpucount with version GLIBC_2.6.
9156 * bits/sched.h: Define __CPU_COUNT. Declare __sched_cpucount.
9157 * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
9158 * posix/sched.h: Define CPU_COUNT.
9160 2007-03-27 Jakub Jelinek <jakub@redhat.com>
9162 * posix/fnmatch.c (STRUCT): Define.
9163 (fnmatch): Pass NULL as last argument to internal_fn{,w}match.
9164 * posix/fnmatch_loop.c (struct STRUCT): New type.
9165 (FCT): Add ends argument. If ends != NULL and normal * is
9166 seen in the pattern, store current pattern and string pointers
9167 and return. Adjust recursive calls.
9168 (EXT): Adjust FCT callers.
9169 (STRUCT): Undef at the end of the file.
9170 * posix/Makefile (tests): Add tst-fnmatch2.
9171 * posix/tst-fnmatch2.c: New test.
9173 2007-04-01 Jakub Jelinek <jakub@redhat.com>
9175 * sysdeps/ia64/fpu/fesetround.c (fesetround): Return 0 on success
9178 * sysdeps/unix/sysv/linux/sync_file_range.c (sync_file_range):
9179 Change last argument to unsigned int.
9181 2007-03-23 Jakub Jelinek <jakub@redhat.com>
9183 * scripts/check-local-headers.sh: Filter out sys/capability.h.
9185 2007-03-22 Jakub Jelinek <jakub@redhat.com>
9187 * config.h.in (HAVE_LIBCAP): Add.
9188 * nscd/selinux.h: Include sys/capability.h rather than non-existent
9190 * nscd/selinux.c (preserve_capabilities): Use cap_free instead of
9191 free_caps. Cast away const from 4th cap_set_flag argument.
9193 2007-03-26 Ulrich Drepper <drepper@redhat.com>
9195 * sysdeps/unix/sysv/linux/Versions: Move sync_file_range to
9197 * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
9198 Add sync_file_range.
9199 Reported by Atsushi Nemoto <anemo@mba.ocn.ne.jp>.
9201 2007-03-19 Steven Munroe <sjmunroe@us.ibm.com>
9203 * sysdeps/powerpc/bits/atomic.h
9204 [!MUTEX_HINT_ACQ]: Define MUTEX_HINT_ACQ.
9205 [!MUTEX_HINT_REL]: Define MUTEX_HINT_REL.
9206 (__arch_compare_and_exchange_val_32_acq): Add MUTEX_HINT_ACQ to lwarx.
9207 (__arch_compare_and_exchange_val_32_rel): Add MUTEX_HINT_REL to lwarx.
9208 (__arch_atomic_exchange_val_32_acq): Add MUTEX_HINT_ACQ to lwarx.
9209 (__arch_atomic_exchange_rel_32_rel): Add MUTEX_HINT_REL to lwarx.
9210 * sysdeps/powerpc/powerpc32/bits/atomic.h [_ARCH_PWR6 || _ARCH_PWR6X]:
9211 Define MUTEX_HINT_ACQ as ",1" and MUTEX_HINT_REL as ",0".
9212 (__arch_compare_and_exchange_bool_32_acq): Add MUTEX_HINT_ACQ to lwarx.
9213 (__arch_compare_and_exchange_bool_32_rel): Add MUTEX_HINT_REL to lwarx.
9214 * sysdeps/powerpc/powerpc64/bits/atomic.h [_ARCH_PWR6 || _ARCH_PWR6D]:
9215 Define MUTEX_HINT_ACQ as ",1" and MUTEX_HINT_REL as ",0".
9216 (__arch_compare_and_exchange_bool_32_acq): Add MUTEX_HINT_ACQ to lwarx.
9217 (__arch_compare_and_exchange_bool_32_rel): Add MUTEX_HINT_REL to lwarx.
9218 (__arch_compare_and_exchange_bool_64_acq): Add MUTEX_HINT_ACQ to lwarx.
9219 (__arch_compare_and_exchange_bool_64_rel): Add MUTEX_HINT_REL to lwarx.
9220 (__arch_compare_and_exchange_val_64_acq): Add MUTEX_HINT_ACQ to lwarx.
9221 (__arch_compare_and_exchange_val_64_rel): Add MUTEX_HINT_REL to lwarx.
9222 (__arch_atomic_exchange_val_64_acq): Add MUTEX_HINT_ACQ to lwarx.
9223 (__arch_atomic_exchange_rel_64_rel): Add MUTEX_HINT_REL to lwarx.
9225 2007-03-20 Jakub Jelinek <jakub@redhat.com>
9227 * sysdeps/unix/sysv/linux/powerpc/libc-start.c
9228 (__cache_line_size): Define the variable here. Add
9229 attribute_hidden, remove weak_extern.
9230 (__libc_start_main): Set __cache_line_size
9232 * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c
9233 (__cache_line_size): Define the variable here. Add
9234 attribute_hidden, remove weak_extern.
9235 (DL_PLATFORM_AUXV): Set __cache_line_size
9237 * sysdeps/powerpc/powerpc32/dl-machine.c (__cache_line_size): Remove
9238 weak_extern, add attribute_hidden.
9239 (__elf_machine_runtime_setup): Assume __cache_line_size is always
9241 * sysdeps/powerpc/powerpc32/memset.S (__cache_line_size): Remove
9243 * sysdeps/powerpc/powerpc64/memset.S (__cache_line_size): Likewise.
9245 2007-03-26 Jakub Jelinek <jakub@redhat.com>
9248 * timezone/africa: Update from tzdata2007d.
9249 * timezone/asia: Likewise.
9250 * timezone/australasia: Likewise.
9251 * timezone/backward: Likewise.
9252 * timezone/europe: Likewise.
9253 * timezone/iso3166.tab: Likewise.
9254 * timezone/leapseconds: Likewise.
9255 * timezone/northamerica: Likewise.
9256 * timezone/southamerica: Likewise.
9257 * timezone/zone.tab: Likewise.
9259 * timezone/private.h: Update from tzcode2007d.
9260 * timezone/zdump.c: Likewise.
9261 * timezone/zic.c: Likewise.
9263 2007-03-21 Jakub Jelinek <jakub@redhat.com>
9265 * nis/nis_call.c: Include bits/libc-lock.h, sys/stat.h, unistd.h.
9266 (nis_server_cache, nis_server_cache_lock, nis_cold_start_mtime): New
9268 (nis_server_cache_search, nis_server_cache_add): New functions.
9269 (__nisfind_server): Use them. Add dbp and flags argument, if
9270 call __nisbind_create.
9271 (__nisbind_create): Add server_used and current_ep arguments,
9272 only call __nis_findfastest if server_used is ~0.
9273 (__do_niscall2, __prepare_niscall): Adjust callers.
9274 (ckey_cache, ckey_cache_size, ckey_cache_allocated, ckey_cache_pid,
9275 ckey_cache_euid, ckey_cache_lock): New variables.
9276 (get_ckey): New function.
9277 (__nisbind_connect): If not dbp->use_udp, pass IPPROTO_TCP to
9278 __pmap_getnisport. Save __pmap_getnisport result in
9279 dbp->addr.sin_port if non-zero. Use get_ckey to create conversation
9281 * nis/nis_lookup.c (nis_lookup): Likewise.
9282 * nis/nis_table.c (nis_list): Likewise.
9283 * nis/rpcsvc/nislib.h (__nisbind_create, __nisfind_server): Adjust
9286 * nis/nss_nisplus/nisplus-pwd.c (_nss_nisplus_getpwnam_r,
9287 _nss_nisplus_getpwuid_r): Pass USE_DGRAM flag to nis_list.
9288 * nis/nss_nisplus/nisplus-service.c (_nss_nisplus_getservbyname_r,
9289 _nss_nisplus_getservbyport_r): Likewise.
9290 * nis/nss_nisplus/nisplus-network.c (_nss_nisplus_getnetbyname_r,
9291 _nss_nisplus_getnetbyaddr_r): Likewise.
9292 * nis/nss_nisplus/nisplus-spwd.c (_nss_nisplus_getspnam_r): Likewise.
9293 * nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_gethostton_r,
9294 _nss_nisplus_getntohost_r): Likewise.
9295 * nis/nss_nisplus/nisplus-rpc.c (_nss_nisplus_getrpcbyname_r,
9296 _nss_nisplus_getrpcbynumber_r): Likewise.
9298 2007-03-20 Jakub Jelinek <jakub@redhat.com>
9300 * configure.in (libc_cv_gnu89_inline): Only do compile test.
9301 * configure: Rebuilt.
9303 * soft-fp/double.h (_FP_UNION_D): Use _FP_W_TYPE for frac
9305 * soft-fp/extended.h (_FP_UNION_E): Likewise.
9307 2006-06-07 Joseph Myers <joseph@codesourcery.com>
9310 * soft-fp/quad.h (_FP_UNION_Q): Use _FP_W_TYPE for frac
9313 2007-03-18 Jakub Jelinek <jakub@redhat.com>
9315 * nscd/gai.c: Include alloca.h.
9316 (__libc_use_alloca): Define.
9318 2007-03-16 Jakub Jelinek <jakub@redhat.com>
9320 * elf/dl-open.c (dl_open_worker): Declare l in 2 different
9322 * elf/dl-dst.h (DL_DST_REQ_STATIC): Add l as macro argument.
9323 (DL_DST_REQUIRED): Adjust user.
9325 * include/dlfcn.h (struct link_map): New forward decl.
9327 * inet/getnameinfo.c: Include stddef.h.
9328 (getnameinfo): Use offsetof.
9330 * time/tst-mktime2.c (do_test): Don't rely on signed wrap.
9332 * stdio-common/vfprintf.c (_itoa): Undef before redefining.
9334 * string/strerror_l.c: Include stdlib.h.
9336 * configure.in (libc_cv_gnu89_inline): Test for -fgnu89-inline.
9337 * config.make.in (gnu89-inline-CFLAGS): New variable.
9338 * Makeconfig (CFLAGS): Use $(gnu89-inline-CFLAGS) together with
9340 * misc/sys/cdefs.h (__extern_inline, __extern_always_inline): Define.
9341 * argp/argp.h: Use it.
9342 * bits/mathinline.h: Likewise.
9343 * bits/sigset.h: Likewise.
9344 * bits/string.h: Likewise.
9345 * ctype/ctype.h: Likewise.
9346 * hurd/hurd.h: Likewise.
9347 * hurd/hurd/fd.h: Likewise.
9348 * hurd/hurd/port.h: Likewise.
9349 * hurd/hurd/signal.h: Likewise.
9350 * hurd/hurd/threadvar.h: Likewise.
9351 * hurd/hurd/userlink.h: Likewise.
9352 * io/sys/stat.h: Likewise.
9353 * libio/bits/stdio.h: Likewise.
9354 * libio/bits/stdio2.h: Likewise.
9355 * mach/lock-intern.h: Likewise.
9356 * mach/mach/mig_support.h: Likewise.
9357 * math/bits/cmathcalls.h: Likewise.
9358 * posix/bits/unistd.h: Likewise.
9359 * socket/bits/socket2.h: Likewise.
9360 * stdlib/bits/stdlib.h: Likewise.
9361 * stdlib/stdlib.h: Likewise.
9362 * string/argz.h: Likewise.
9363 * string/bits/string2.h: Likewise.
9364 * string/bits/string3.h: Likewise.
9365 * sysdeps/alpha/fpu/bits/mathinline.h: Likewise.
9366 * sysdeps/generic/inttypes.h: Likewise.
9367 * sysdeps/generic/machine-lock.h: Likewise.
9368 * sysdeps/generic/machine-sp.h: Likewise.
9369 * sysdeps/i386/fpu/bits/mathinline.h: Likewise.
9370 * sysdeps/i386/i486/bits/string.h: Likewise.
9371 * sysdeps/ia64/fpu/bits/mathinline.h: Likewise.
9372 * sysdeps/mach/alpha/machine-lock.h: Likewise.
9373 * sysdeps/mach/alpha/machine-sp.h: Likewise.
9374 * sysdeps/mach/i386/machine-lock.h: Likewise.
9375 * sysdeps/mach/powerpc/machine-lock.h: Likewise.
9376 * sysdeps/mach/powerpc/machine-sp.h: Likewise.
9377 * sysdeps/powerpc/fpu/bits/mathinline.h: Likewise.
9378 * sysdeps/s390/bits/string.h: Likewise.
9379 * sysdeps/s390/fpu/bits/mathinline.h: Likewise.
9380 * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
9381 * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Likewise.
9382 * sysdeps/unix/sysv/linux/bits/sigset.h: Likewise.
9383 * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
9384 * sysdeps/unix/sysv/linux/sys/sysmacros.h: Likewise.
9385 * sysdeps/x86_64/fpu/bits/mathinline.h: Likewise.
9386 * wcsmbs/bits/wchar2.h: Likewise.
9387 * wcsmbs/wchar.h: Likewise.
9388 * stdlib/gmp.h: Likewise. Include <features.h> to get
9389 __extern_inline definition.
9391 2007-03-15 Jakub Jelinek <jakub@redhat.com>
9393 * locale/programs/ld-ctype.c (find_translit): Return NULL if ctype is
9397 * math/libm-test.inc (log_test): Test -Inf and NaN.
9398 (log10_test, log1p_test, log2_test): Test -Inf.
9399 * sysdeps/i386/fpu/e_log.S (__ieee754_log): Don't raise
9400 FE_INVALID when argument is qNaN.
9401 * sysdeps/i386/fpu/e_logl.S (__ieee754_logl): Likewise.
9402 * sysdeps/i386/fpu/e_logf.S (__ieee754_logf): Likewise.
9403 * sysdeps/x86_64/fpu/e_logl.S (__ieee754_logl): Likewise.
9404 * sysdeps/x86_64/fpu/e_log10l.S (__ieee754_log10l): Replace
9405 andb $1, %ah with testb $1, %ah, don't test for parity, instead
9406 testb $4, %ah and jump if non-zero.
9407 * sysdeps/x86_64/fpu/e_log2l.S (__ieee754_log2l): Likewise.
9408 * sysdeps/x86_64/fpu/s_log1pl.S (__log1pl): Likewise.
9411 * argp/argp-help.c (hol_cluster_cmp): Fix comparisons used to find
9412 ancestors with the same depths.
9413 Patch by Niels Moeller <nisse@lysator.liu.se>.
9414 (filter_doc): Don't crash if argp is NULL.
9415 * argp/Makefile (tests): Add tst-argp2.
9416 * argp/tst-argp2.c: New test.
9419 * login/utmp_file.c (setutent_file): Use O_LARGEFILE for
9421 (updwtmp_file): Likewise.
9424 * inet/inet6_opt.c (add_padding): Only insert padding if npad > 0.
9425 (inet6_opt_append): Don't check extlen is big enough if extbuf
9427 (inet6_opt_finish): Likewise.
9428 * inet/Makefile (tests): Add test-inet6_opt.
9429 * inet/test-inet6_opt.c: New test.
9431 * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Never
9432 reallocate the buffer, instead fail for MSG_TRUNC or for EBUSY
9433 NLMSG_ERR. Instead use a page sized buffer.
9434 * sysdeps/unix/sysv/linux/check_pf.c (make_request): Use page sized
9437 2007-03-14 Richard Henderson <rth@redhat.com>
9439 * sysdeps/alpha/fpu/s_llround.c: New file.
9440 * sysdeps/alpha/fpu/s_llroundf.c: New file.
9441 * sysdeps/alpha/fpu/s_lround.c: New file.
9442 * sysdeps/alpha/fpu/s_lroundf.c: New file.
9443 * sysdeps/alpha/fpu/s_round.c: New file.
9444 * sysdeps/alpha/fpu/s_roundf.c: New file.
9445 * sysdeps/alpha/fpu/s_trunc.c: New file.
9446 * sysdeps/alpha/fpu/s_truncf.c: New file.
9448 * sysdeps/alpha/fpu/s_ceil.c: Rewrite without branches.
9449 * sysdeps/alpha/fpu/s_ceilf.c: Likewise.
9450 * sysdeps/alpha/fpu/s_floor.c: Likewise.
9451 * sysdeps/alpha/fpu/s_floorf.c: Likewise.
9452 * sysdeps/alpha/fpu/s_rint.c: Likewise.
9453 * sysdeps/alpha/fpu/s_rintf.c: Likewise.
9455 * sysdeps/alpha/fpu/s_fmax.S: New file.
9456 * sysdeps/alpha/fpu/s_fmaxf.S: New file.
9457 * sysdeps/alpha/fpu/s_fmin.S: New file.
9458 * sysdeps/alpha/fpu/s_fminf.S: New file.
9459 * sysdeps/alpha/fpu/s_isnan.c: New file.
9460 * sysdeps/alpha/fpu/s_isnanf.c: New file.
9461 * sysdeps/alpha/fpu/s_llrint.c: New file.
9462 * sysdeps/alpha/fpu/s_llrintf.c: New file.
9463 * sysdeps/alpha/fpu/s_lrint.c: New file.
9464 * sysdeps/alpha/fpu/s_lrintf.c: New file.
9465 * sysdeps/alpha/fpu/s_nearbyint.c: New file.
9466 * sysdeps/alpha/fpu/s_nearbyintf.c: New file.
9468 * sysdeps/alpha/fpu/bits/mathinline.h (__floorf, __floor): Remove.
9469 (__fdimf, fdimf, __fdim, fdim): Remove.
9470 (__signbitf, __signbit, __signbitl): Use gcc builtin if available.
9471 (__isnanf, __isnan, __isnanl): New.
9473 2007-03-13 Richard Henderson <rth@redhat.com>
9475 * sysdeps/ieee754/ldbl-128/Makefile: New file.
9477 2007-03-13 Richard Henderson <rth@redhat.com>
9479 * sysdeps/alpha/Makefile (sysdep-CFLAGS): Force dynamic rounding.
9480 * sysdeps/alpha/fpu/bits/mathinline.h (__signbitl): New.
9481 * sysdeps/alpha/fpu/libm-test-ulps: Regenerate.
9482 * sysdeps/unix/sysv/linux/alpha/alphaev6/fpu/Implies: New file.
9483 * sysdeps/unix/sysv/linux/alpha/alphaev67/fpu/Implies: New file.
9484 * sysdeps/unix/sysv/linux/alpha/fpu/Implies: New file.
9486 2007-03-13 Richard Henderson <rth@redhat.com>
9488 * elf/dl-support.c (_dl_aux_init): Honor DL_PLATFORM_AUXV.
9489 * sysdeps/unix/sysv/linux/alpha/dl-auxv.h: New file.
9490 * sysdeps/unix/sysv/linux/alpha/dl-support.c: New file.
9491 * sysdeps/unix/sysv/linux/alpha/dl-sysdep.c (__libc_alpha_cache_shape):
9492 Move to dl-auxv.h; initialize instead of extern weak.
9493 (DL_PLATFORM_AUXV): Move to dl-auxv.h; don't test for undef
9495 * sysdeps/unix/sysv/linux/alpha/sysconf.c (__libc_alpha_cache_shape):
9496 Extern instead of initialized.
9498 2007-03-13 Richard Henderson <rth@redhat.com>
9500 * sysdeps/unix/sysv/linux/alpha/sigsuspend.S: Add support for
9501 __sigsuspend_nocancel.
9503 2007-03-06 Ulrich Drepper <drepper@redhat.com>
9505 * sysdeps/posix/getaddrinfo.c (get_scope): Correct test for
9506 172.16/12 address range.
9508 2007-03-02 Jakub Jelinek <jakub@redhat.com>
9510 * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Retry with
9511 a new netlink socket if NLMSG_ERR -EBUSY is seen after some MSG_TRUNC
9514 2007-03-01 Jakub Jelinek <jakub@redhat.com>
9517 * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Check for NaN
9519 * math/libm-test.inc (pow_test): Add more tests involving NaNs.
9521 * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Avoid invalid exception
9522 for x qNaN and y either +-inf or non-integer value.
9523 * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Likewise.
9524 * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.
9525 * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
9527 2007-02-10 Mike Frysinger <vapier@gentoo.org>
9529 * sysdeps/unix/sysv/linux/sh/Makefile: Remove sys/io.h
9530 from sysdep_headers.
9532 2007-02-28 Jakub Jelinek <jakub@redhat.com>
9534 * time/tzfile.c (find_transition): Instead of a linear search try to
9535 guess the transition index, use a linear search if the result is at
9536 most 10 transitions away from the guess or binary search otherwise.
9538 2007-02-27 Jakub Jelinek <jakub@redhat.com>
9540 * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Fix
9541 memory reallocation.
9543 2007-02-21 Ulrich Drepper <drepper@redhat.com>
9545 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Add branch predictions
9547 Optimize use of TOLOWER.
9550 * sysdeps/i386/fpu/e_fmodf.S: Revert last changes, keep using fprem.
9551 * sysdeps/i386/fpu/e_fmodl.c: Likewise.
9552 * sysdeps/i386/fpu/e_fmod.S: Likewise.
9555 * sysdeps/unix/sysv/linux/posix_madvise.c: New file.
9556 * sysdeps/unix/sysv/linux/syscalls.list: Remove posix_madvise entry.
9559 * io/ftw.c (ftw_startup): Handle special case of FTW_CHDIR in /.
9560 (open_dir_stream): Likewise.
9561 * io/Makefile (tests): Add bug-ftw5.
9562 * io/bug-ftw5.c: New file.
9564 * nscd/hstcache.c (cache_addhst): Remove unnecessary conditional.
9565 * nscd/servicescache.c (cache_addserv): Likewise.
9567 * nscd/grpcache.c (cache_addgr): In case a record changed on
9568 refresh, adjust key_copy.
9571 * nscd/pwdcache.c (cache_addpw): In case a record changed on
9572 refresh, adjust key_copy.
9575 * stdio-common/printf_fp.c (___printf_fp): Handle a few more
9577 * stdio-common/tfformat.c (sprint_doubles): Some more tests.
9579 2007-02-19 Ulrich Drepper <drepper@redhat.com>
9581 * stdio-common/printf_fp.c (___printf_fp): Cleanups and minor
9584 * stdio-common/vfscanf.c: Small cleanups throughout.
9586 2007-02-18 Ulrich Drepper <drepper@redhat.com>
9589 * sysdeps/i386/fpu/e_fmodf.S: Use fprem1 instead of fprem.
9590 * sysdeps/i386/fpu/e_fmodl.c: Likewise.
9591 * sysdeps/i386/fpu/e_fmod.S: Likewise.
9592 Patch by Jared Casper <jaredcasper@gmail.com>.
9594 * sysdeps/unix/closedir.c: Outside libc don't use locking.
9595 * sysdeps/unix/opendir.c: Likewise.
9596 * sysdeps/unix/readdir.c: Likewise.
9599 * stdio-common/vfscanf.c: Handle localized digits etc for floating
9601 Patch mostly by Hamed Malek <hamed@farsiweb.info>.
9603 * stdio-common/vfscanf.c: Fix problems in width accounting.
9604 * stdio-common/tst-sscanf.c (double_tests): New tests.
9605 (main): Hook them up.
9607 * stdio-common/vfscanf.c: Remove unused WIDTH handling.
9608 More simplifications of floating-point reader.
9610 * stdio-common/Makefile (tests): Add tst-swscanf.
9611 * stdio-common/tst-sscanf.c: Make tests usable for swscanf
9613 * stdio-common/tst-swscanf.c: New file.
9615 2007-02-17 Ulrich Drepper <drepper@redhat.com>
9618 * libio/stdio.h: Define struct _IO_FILE in global namespace.
9619 * setjmp/setjmp.h: Define __jmp_buf_tag in global namespace.
9620 Remove using for __jmp_buf_tag.
9621 * locale/locale.h (struct lconv): Also define in std namespace.
9622 * wcsmbs/wchar.h: Move using declaration for tm out of namespace.
9625 * sysdeps/posix/euidaccess.c [_LIBC] (euidaccess): Remove shortcut
9626 using __libc_enable_secure.
9629 * sysdeps/unix/sysv/linux/sys/acct.h (struct acct_v3): Define.
9632 * locale/programs/ld-collate.c (handle_ellipsis): Fix generation
9633 of names for ellipsises.
9636 * malloc/memusage.sh: Cleanups.
9637 * debug/xtrace.sh: Quoting and trap changes.
9639 2007-02-16 Ulrich Drepper <drepper@redhat.com>
9641 * locale/iso-3166.def: Add Jersey, Guernsey, and Isle Of Man entries.
9643 * locale/iso-3166.def: Update entry for Serbia.
9644 * locale/iso-4217.def: Define RSD, remove CSD.
9646 * sysdeps/x86_64/bits/atomic.h: One more change, this time for 16-
9647 and 64-bit operations.
9650 * sysdeps/i386/i486/bits/atomic.h: One more change, this time for
9653 * nscd/nscd.c (parse_opt): One more conversion to use send instead
9656 2007-02-15 Ulrich Drepper <drepper@redhat.com>
9659 * assert/assert.h (assert): Simplify.
9660 (assert_perror): Likewise.
9661 Patch by Israel G. Lugo <ilugo@bridonsecurity.com>.
9663 * nscd/nscd_helper.c (open_socket): Don't send padding bytes from
9666 * sysdeps/unix/sysv/linux/x86_64/send.c (__libc_send): Cosmetic
9667 change: don't pass NULL in place of an integer.
9669 2007-02-02 Bruno Haible <bruno@clisp.org>
9672 * iconvdata/ksc5601.c (__ksc5601_sym_to_ucs, __ksc5601_sym_from_ucs):
9673 Add mapping for U+327E.
9674 * iconvdata/ksc5601.h (KSC5601_SYMBOL): Increment.
9675 * iconvdata/johab.c (BODY for FROM_LOOP, BODY for TO_LOOP): Enable
9676 mapping of 0xD9 0xE8.
9677 * iconvdata/uhc.c (BODY for FROM_LOOP, BODY for TO_LOOP): Disable
9679 Reported by Jungshik Shin <jungshik@google.com>.
9682 * iconvdata/johab.c (BODY for FROM_LOOP, BODY for TO_LOOP): Enable
9683 mapping of 0xD9 0xE6 and of 0xD9 0xE7.
9684 Reported by Jungshik Shin <jungshik@google.com>.
9686 2007-02-14 Ulrich Drepper <drepper@redhat.com>
9688 * sysdeps/x86_64/bits/atomic;h: Fix asm parameters for some
9692 * sysdeps/i386/i486/bits/atomic.h: Fix asm parameters for some
9693 byte variants. Patch mostly be tom@tommay.net.
9695 2007-02-14 Jakub Jelinek <jakub@redhat.com>
9698 * posix/glob.c (attribute_hidden): Define if not defined.
9699 (glob): Unescape dirname, filename or username when needed and not
9700 GLOB_NOESCAPE. Handle \/ correctly. Handle GLOB_MARK if filename
9701 is NULL. Handle unescaped [ in pattern without closing ].
9702 Don't pass GLOB_CHECK down to recursive glob for directories.
9703 (__glob_pattern_type): New function.
9704 (__glob_pattern_p): Implement using __glob_pattern_type.
9705 (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
9706 characters and backslashes if not GLOB_NOESCAPE or unterminated [.
9707 Remove unreachable code.
9708 * posix/globtest.sh: Add a couple of new tests.
9710 2007-02-13 Ulrich Drepper <drepper@redhat.com>
9712 * po/ru.po: Update from translation team.
9714 2007-02-12 Jakub Jelinek <jakub@redhat.com>
9716 * sysdeps/i386/bits/byteswap.h (__bswap_32): Add __amdfam10__
9717 to the list of i486+ CPUs.
9718 * sysdeps/x86_64/bits/byteswap.h (__bswap_32): Likewise.
9720 2007-02-12 Ulrich Drepper <drepper@redhat.com>
9722 * elf/rtld.c (RESOLVE_MAP): Always return bootstrap_map reference.
9723 * elf/Makefile ($(objpfx)ld.so): Check that ld.so has no undefined
9726 2007-02-09 Ulrich Drepper <drepper@redhat.com>
9728 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Remove incorrect comment.
9730 * resolv/res_init.c (res_setoptions): Recognize edns0 option.
9731 * resolv/res_mkquery.c: Define __res_nopt.
9732 * resolv/res_query.c (__libc_res_nquery): If RES_USE_EDNS0 is set
9733 try adding EDNS0 record.
9734 * resolv/res_send.c (send_dg): If request failed with FORMERR and
9735 EDNS0 record was send make sure we don't try it again.
9736 * resolv/resolv.h: Define RES_F_EDNS0ERR and RES_USE_EDNS0.
9737 * include/resolv.h: Declare __res_nopt.
9739 2007-02-08 Jakub Jelinek <jakub@redhat.com>
9742 * time/strptime_l.c (__strptime_internal): Set have_mon for
9743 %b/%B/%h. Set have_mon and have_mday if tm_mon and tm_mday
9744 have been computed from tm_yday and tm_year. Don't crash
9745 in day_of_the_week or day_of_the_year if not have_mon
9746 and tm_mon contains bogus value.
9747 * time/Makefile (tests): Add tst-strptime3.
9748 * time/tst-strptime3.c: New test.
9750 2007-02-05 Jakub Jelinek <jakub@redhat.com>
9753 * posix/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
9754 bit for RE_HAT_LISTS_NOT_NEWLINE.
9755 (build_charclass_op): Remove bogus comment.
9756 * posix/Makefile (tests): Add bug-regex27 and bug-regex28.
9757 * posix/bug-regex27.c: New test.
9758 * posix/bug-regex28.c: New test.
9760 2007-02-03 Ulrich Drepper <drepper@redhat.com>
9762 * po/sv.po: Update from translation team.
9764 2007-02-02 Ulrich Drepper <drepper@redhat.com>
9766 * nscd/nscd_helper.c (open_socket): Minor size optimization.
9768 2007-02-02 Jakub Jelinek <jakub@redhat.com>
9770 * include/locale.h (__uselocale): Add libc_hidden_proto.
9771 * locale/uselocale.c (__uselocale): Add libc_hidden_def.
9773 * nscd/nscd_helper.c (open_socket): Use __gettimeofday instead of
9776 2007-02-01 Ulrich Drepper <drepper@redhat.com>
9778 * sysdeps/unix/sysv/linux/i386/sysdep.h (PTR_MANGLE): Roll value before
9780 (PTR_DEMANGLE): Real definition now that it's not the same as
9782 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
9784 * string/strerror_l.c: New file.
9785 * string/Makefile (routines): Add strerror_l.
9786 * string/string.h: Declare strerror_l.
9787 * string/Versions: Export strerror_l for GLIBC_2.6.
9789 2007-01-31 Ulrich Drepper <drepper@redhat.com>
9791 * nscd/nscd_helper.c (open_socket): Now takes request type and key
9792 as parameter. Construct request record. Try sending request
9793 before the first poll use, it usually succeeds. Adjust all
9795 * nscd/nscd-client.h: Define MAXKEYLEN.
9796 * nscd/connections.c (nscd_run): Don't define MAXKEYLEN here.
9798 2007-01-31 Jakub Jelinek <jakub@redhat.com>
9800 * nscd/nscd-client.h (__nscd_cache_search): Remove const qualifier
9802 * nscd/nscd_helper.c: Include string.h.
9803 (__nscd_cache_search): Remove const qualifier from return value.
9804 On strict alignment architectures check hash entry and data head
9806 * nscd/nscd_getpw_r.c (nscd_getpw_r): Don't crash or fail because
9807 mmapped data during GC cycle contains garbage. If
9808 __nscd_drop_map_ref fails, decrement mapped->counter when returning
9809 error or if retrying with NO_MAPPING, only __nscd_unmap if counter
9811 * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
9812 * nscd/nscd_initgroups.c (__nscd_getgrouplist): Likewise.
9813 * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
9814 * nscd/nscd_getai.c (__nscd_getai): Likewise.
9815 * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
9817 2007-01-30 Ulrich Drepper <drepper@redhat.com>
9819 * misc/hsearch_r.c (hdestroy_r): Remove unnecessary test.
9821 2007-01-26 Ulrich Drepper <drepper@redhat.com>
9823 * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Use register
9824 names not numbers in cfi_*.
9826 2007-01-26 Andreas Jaeger <aj@suse.de>
9828 * sysdeps/unix/sysv/linux/sys/personality.h (ADDR_NO_RANDOMIZE,
9829 ADDR_LIMIT_3GB, PER_LINUX_32BIT, PER_LINUX32_3GB): Add.
9830 Correct values of PER_HPUX and PER_OSF4.
9832 2007-01-24 Ulrich Drepper <drepper@redhat.com>
9834 * elf/dl-minimal.c: Undefine _itoa first.
9835 * stdio-common/_itoa.h: Define _itoa and _fitoa for 64-bit platforms.
9836 * malloc/mtrace.c: Revert last change.
9837 * posix/wordexp.c: Likewise.
9839 2007-01-24 Jakub Jelinek <jakub@redhat.com>
9841 * sysdeps/i386/bits/byteswap.h (__bswap_32): Add __nocona__, __core2__
9842 and __geode__ to the list of i486+ CPUs.
9843 * sysdeps/x86_64/bits/byteswap.h (__bswap_32): Likewise.
9845 2007-01-23 Ulrich Drepper <drepper@redhat.com>
9847 * stdio-common/_itoa.c: Include <limits.h>.
9848 * stdio-common/_itowa.c: Likewise.
9850 2007-01-22 Ulrich Drepper <drepper@redhat.com>
9852 * stdio-common/_itowa.c: Don't compile _itowa for 64-bit
9854 * stdio-common/_itoa.c: Don't compile in _itoa and _fitoa for
9856 * malloc/mtrace.c (tr_where): Use _fitoa_word instead of _fitoa if
9858 * posix/wordexp.c (parse_arith): Use _itoa_word instead of _itoa
9862 * stdio-common/_itoa.c (_itoa): Make sure at least a zero is emitted.
9863 * stdio-common/Makefile (tests): Add bug17.
9864 * stdio-common/bug17.c: New file.
9866 2007-01-19 Ulrich Drepper <drepper@redhat.com>
9868 * iconvdata/brf.c: New file.
9869 * iconvdata/testdata/BRF: New file.
9870 * iconvdata/testdata/BRF..UTF8: New file.
9871 Contributed by Samuel Thibault <samuel.thibault@ens-lyon.org>.
9872 * iconvdata/Makefile: Add rules to build BRF.
9873 * iconvdata/TESTS: Add BRF entry.
9874 * iconvdata/gconv-modules: Likewise.
9875 * iconvdata/tst-tables.sh: Likewise.
9877 2007-01-18 Anton Nikishaev <anton.nik@gmail.com>
9879 * wcsmbs/wchar.h (wcstoll): Fix comment, function returns value of
9880 type `long long int', not `long int'.
9883 2007-01-18 Ulrich Drepper <drepper@redhat.com>
9885 * scripts/gen-as-const.awk: Add cast to long to avoid int promotion
9886 of values on 64-bit platforms which are too large.
9888 2007-01-12 Steven Munroe <sjmunroe@us.ibm.com>
9889 Joe Kerian <jkerian@us.us.ibm.com>
9892 * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Include
9893 <math_ldbl_opt.h>. Remove weak_alias. Use long_double_symbol macro.
9894 (__copysignl): Use signbit() for comparison.
9895 * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c (__fabsl): Correct parms for
9896 SET_LDOUBLE_WORDS64.
9899 * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Don't include <fenv_libc.h>.
9900 (__ceill): Remove calls to fegetround(), fesetround().
9901 * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
9902 * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
9903 * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
9905 2007-01-17 Jakub Jelinek <jakub@redhat.com>
9907 * nscd/nscd_getserv_r.c (nscd_getserv_r): Fix pastos.
9909 * sysdeps/unix/sysv/linux/getdents.c (offsetof): Remove.
9911 2007-01-17 Ulrich Drepper <drepper@redhat.com>
9913 * sysdeps/unix/sysv/linux/fatal-prepare.h: Use PTHFCT_CALL to
9915 * csu/libc-start.c: Likewise.
9917 2007-01-16 Ulrich Drepper <drepper@redhat.com>
9919 * sysdeps/posix/system.c: Remove NO_WAITPID support, it cannot
9922 2007-01-15 Ulrich Drepper <drepper@redhat.com>
9924 * nscd/connections.c (servinfo): Renamed to reqinfo. Change all
9926 (handle_request): Remove unnecessary tests.
9928 * nscd/cache.c (cache_add): Record the failure to add to the cache.
9930 2007-01-15 Jakub Jelinek <jakub@redhat.com>
9932 * soft-fp/op-common.h (FP_TRUNC): When truncating a NaN, clear
9933 workbits in semi-raw fraction.
9935 * math/test-misc.c: Add new tests.
9937 2007-01-14 Steven Munroe <sjmunroe@us.ibm.com>
9939 * math/basic-test.c: Include test-skeleton.c.
9940 (TEST_TRUNC): Define.
9941 (truncdfsf_test, trunctfsf_test, trunctfdf_test): New.
9942 (main): Rename to ...
9943 (do_test): ...this. Run new tests.
9944 (TEST_FUNCTION): Define.
9946 2006-10-05 Steven Munroe <sjmunroe@us.ibm.com>
9947 Joe Kerian <jkerian@us.us.ibm.com>
9950 * soft-fp/op-4.h (__FP_FRAC_SUB_3, __FP_FRAC_SUB_4): Correct borrow
9951 handling for high words.
9952 * soft-fp/op-common.h (_FP_OVERFLOW_SEMIRAW): Always set inexact
9953 and overflow for infinity.
9955 2007-01-15 Ulrich Drepper <drepper@redhat.com>
9957 * nscd/connections.c (handle_request): Add a __builtin_expect.
9959 * nscd/connections.c (serv2db): Change type into structure which
9960 also says whether this is a request for data. Renamed to
9961 servinfo. All users changed.
9962 (handle_request): Much simpler test whether we should search the cache.
9964 * nscd/connections.c (handle_request): Fix thinko in selinux test
9967 * sysdeps/generic/ldsodefs.h: Define DL_LOOKUP_SCOPE_LOCK.
9968 * elf/dl-lookup.c (add_dependency): If scope map is locked, unlock
9969 it before getting dl_load_lock and then relock.
9970 (_dl_lookup_symbol_x): Pass flags to add_dependency.
9971 When rerunning _dl_lookup_symbol_x, compute symbol_scope again in
9972 case we unlocked the scope.
9973 * elf/dl-runtime.c (_dl_fixup): Pass DL_LOOKUP_SCOPE_LOCK to
9974 _dl_lookup_symbol_x in case we locked the scope.
9975 (_dl_profile_fixup): Likewise.
9976 * elf/dl-sym.c (do_sym): In flags passed to call_dl_lookup, also
9977 set DL_LOOKUP_SCOPE_LOCK.
9979 2007-01-13 Ulrich Drepper <drepper@redhat.com>
9981 * inet/Makefile: Define CFLAGS-getsrvbynm_r.c and
9982 CFLAGS-getsrvbynpt_r.c.
9983 * nscd/getsrvbynm_r.c: New file.
9984 * nscd/getsrvbypt_r.c: New file.
9985 * nscd/nscd_getserv_r.c: New file.
9986 * nscd/servicescache.c: New file.
9987 * nscd/Makefile (routines): Add nscd_getserv_r.
9988 (nscd-modules): Add getsrvbynm_r, getsrvbypt_r, and servicescache.
9989 Define CFLAGS-servicescache.c, CFLAGS-getsrvbynm_r.c, and
9990 CFLAGS-getsrvbypt_r.c.
9991 * nscd/cache.c (prune_cache): Rewrite to get re-add function from
9992 table. Add entries for services database.
9993 * nscd/connections.c (serv2str): Mark as const. Add entries for
9995 (dbs): Add .reset_res and servdb initialization.
9996 (serv2db): Add entries for services database.
9997 (verify_persistent_db): Accept dbnr == servdb.
9998 (invalidate_cache): Rewrite database name recognition to use a table.
9999 Call res_init() if .reset_res is set for database.
10000 (handle_request): Add code to handle services database.
10001 * nscd/gai.c: Don't define __getservbyname_r.
10002 * nscd/nscd-client.h (request_type): Remove LASTDBREQ, add
10003 GETSERVBYNAME, GETSERVBYPORT, GETFDSERV.
10004 (serv_response_header): Define.
10005 (struct datahead): Add serv_response_header member.
10006 * nscd/nscd.c (parse_opt): Rewrite parsing of -i parameter value
10008 * nscd/nscd.conf: Add entries for services database.
10009 * nscd/nscd.h: Adjust declaration of dbnames and serv2str.
10010 Declare serv_iov_disabled.
10011 Declare addservbyname, readdservbyname, addservbyport, and
10013 * nscd/nscd_conf.c (dbnames): Mark as const. Add services entry.
10014 (find_db): Fix error message.
10015 * nscd/nscd_proto.h: Declare __nss_not_use_nscd_services,
10016 __nscd_getservbyname_r, and __nscd_getservbyport_r.
10017 * nscd/selinux.c (perms): Add entries for services database.
10018 * nss/Versions: Export __nss_services_lookup with GLIBC_PRIVATE.
10019 * nss/nsswitch.c (__nss_disable_nscd): Also disable services database.
10021 * nscd/grpcache.c: Remove obsolete code. Cleanups.
10022 * nscd/hstcache.c: Likewise.
10023 * nscd/pwdcache.c: Likewise.
10025 * nis/nss_nis/nis-service.c (_nss_nis_getservbyname_r): Correct
10026 computation of keylen.
10028 * include/string.h: Only redefine strndupa if this is really for
10031 2007-01-12 Ulrich Drepper <drepper@redhat.com>
10033 * nscd/nscd_gethst_r.c: Minor cleanups.
10035 * nscd/connections.c (handle_request): Check selinux permissions
10036 for all non-admin commands.
10038 * sysdeps/i386/i486/bits/atomic.h: Define
10039 atomic_compare_and_exchange_val_acq,
10040 atomic_compare_and_exchange_bool_acq, and atomic_exchange_and_add
10041 using __sync_* built-ins for gcc >= 4.1.
10042 * sysdeps/x86_64/bits/atomic.h: Likewise.
10045 * scripts/check-local-headers.sh: Restrict to testing .o.d, .os.d,
10048 2007-01-05 Steven Munroe <sjmunroe@us.ibm.com>
10050 * stdlib/tst-makecontext.c: Include errno.h. Change main()
10051 to do_test(). Define TEST_FUNCTION. Include test-skeleton.c.
10052 (do_test): Check errno and exit(0) if ENOSYS.
10054 2007-01-11 Jakub Jelinek <jakub@redhat.com>
10056 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix handling of multi-byte
10057 thousands separators.
10058 * stdlib/Makefile: Add rules to build and run tst-strtod4.
10059 * stdlib/tst-strtod4.c: New test.
10062 * stdlib/strtod_l.c (____STRTOF_INTERNAL): 0x. not followed by
10063 hexadecimal digit should accept just the initial 0.
10064 * stdlib/tst-strtod2.c (tests): New variable.
10065 (do_test): Run several tests rather than just one.
10067 2007-01-11 Jakub Jelinek <jakub@redhat.com>
10069 * sysdeps/i386/soft-fp/sfp-machine.h: Remove.
10070 * sysdeps/x86_64/soft-fp/sfp-machine.h: Likewise.
10072 2007-01-10 Ulrich Drepper <drepper@redhat.com>
10074 * io/fts.c: Make sure fts_cur is always valid after return from
10076 Patch by Miloslav Trmac <mitr@redhat.com>.
10078 2006-10-27 Richard Sandiford <richard@codesourcery.com>
10080 * elf/elf.h (R_MIPS_GLOB_DAT): Define.
10081 (R_MIPS_NUM): Bump by 1.
10083 2007-01-03 Jakub Jelinek <jakub@redhat.com>
10085 * posix/execvp.c: Include alloca.h.
10086 (allocate_scripts_argv): Renamed to...
10087 (scripts_argv): ... this. Don't allocate buffer here nor count
10089 (execvp): Use alloca if possible.
10090 * posix/Makefile: Add rules to build and run tst-vfork3 test.
10091 * posix/tst-vfork3.c: New test.
10093 2007-01-03 Ulrich Drepper <drepper@redhat.com>
10095 * string/Makefile (tst-strxfrm2-ENV): Define.
10096 * stdlib/Makefile (tst-strtod3-ENV): Define.
10098 2007-01-02 Ulrich Drepper <drepper@redhat.com>
10100 * posix/getconf.c: Update copyright year.
10101 * nss/getent.c: Likewise.
10102 * iconv/iconvconfig.c: Likewise.
10103 * iconv/iconv_prog.c: Likewise.
10104 * elf/ldconfig.c: Likewise.
10105 * catgets/gencat.c: Likewise.
10106 * csu/version.c: Likewise.
10107 * elf/ldd.bash.in: Likewise.
10108 * elf/sprof.c (print_version): Likewise.
10109 * locale/programs/locale.c: Likewise.
10110 * locale/programs/localedef.c: Likewise.
10111 * nscd/nscd.c (print_version): Likewise.
10112 * debug/xtrace.sh: Likewise.
10113 * malloc/memusage.sh: Likewise.
10114 * malloc/mtrace.pl: Likewise.
10115 * debug/catchsegv.sh: Likewise.
10117 2006-12-24 Ulrich Drepper <drepper@redhat.com>
10119 * malloc/malloc.c (sYSMALLOc): Remove some unnecessary alignment
10122 2006-12-23 Ulrich Drepper <drepper@redhat.com>
10124 * posix/wordexp.c: Remove some unnecessary tests.
10126 2006-12-22 Gavin Romig-Koch <gavin@redhat.com>
10128 * nis/nss_compat/compat-grp.c (internal_getgrgid_r): Don't
10129 blacklist the group till after we look it up.
10131 2006-12-21 Ulrich Drepper <drepper@redhat.com>
10133 * include/atomic.h (atomic_forced_read): New macro.
10135 2006-12-20 SUGIOKA Toshinobu <sugioka@itonet.co.jp>
10137 * sysdeps/unix/sysv/linux/sh/bits/shm.h: New file.
10139 2006-12-19 Jakub Jelinek <jakub@redhat.com>
10141 * nss/getXXbyYY_r.c: Include atomic.h.
10142 (INTERNAL (REENTRANT_NAME)): Write startp after start_fct,
10143 add atomic_write_barrier () in between.
10145 * stdlib/Makefile (tests): Add tst-makecontext.
10146 * stdlib/tst-makecontext.c: New test.
10148 * sysdeps/unix/sysv/linux/powerpc/powerpc32/makecontext.S
10149 (__makecontext): Don't realign uc_mcontext.uc_regs.
10151 2006-11-28 Jakub Jelinek <jakub@redhat.com>
10153 * elf/dl-support.c: Include dl-procinfo.h.
10154 * sysdeps/powerpc/dl-procinfo.h (PPC_PLATFORM_POWER4,
10155 PPC_PLATFORM_PPC970, PPC_PLATFORM_POWER5, PPC_PLATFORM_POWER5_PLUS,
10156 PPC_PLATFORM_POWER6, PPC_PLATFORM_CELL_BE, PPC_PLATFORM_POWER6X):
10158 (_dl_string_platform): Use PPC_PLATFORM_* macros instead of
10159 hardcoded constants.
10160 * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_platform): Use
10161 PPC_PLATFORM_* macros for array designators.
10163 2006-11-11 Steven Munroe <sjmunroe@us.ibm.com>
10165 * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Add 3 new cap
10166 names to the beginning.
10167 (_dl_powerpc_platforms): Add "power6x".
10168 * sysdeps/powerpc/dl-procinfo.h (_DL_HWCAP_FIRST): Decrease.
10169 (HWCAP_IMPORTANT): Add PPC_FEATURE_HAS_DFP.
10170 (_DL_PLATFORMS_COUNT): Increase.
10171 (_dl_string_platform): Handle power6x case.
10172 * sysdeps/powerpc/sysdep.h (PPC_FEATURE_PA6T, PPC_FEATURE_HAS_DFP,
10173 PPC_FEATURE_POWER6_EXT): Define.
10174 (PPC_FEATURE_POWER5, PPC_FEATURE_POWER5_PLUS): Correct Comment.
10176 2006-12-18 Jakub Jelinek <jakub@redhat.com>
10179 * stdlib/jrand48_r.c (__jrand48_r): Make sure result is in the
10180 [-2^31 .. 2^31) range.
10181 * stdlib/tst-rand48.c (main): Fix expected values for 64-bit
10183 * stdlib/tst-rand48-2.c: New test.
10184 * stdlib/Makefile (tests): Add tst-rand48-2.
10186 2006-12-14 Jakub Jelinek <jakub@redhat.com>
10188 * misc/tst-pselect.c (do_test): Fix sigblock argument.
10190 2006-12-14 Ulrich Drepper <drepper@redhat.com>
10192 * misc/tst-pselect.c (do_test): Make sure the helper process is
10193 terminating when the test is aborted.
10195 2006-12-13 Ulrich Drepper <drepper@redhat.com>
10197 * sysdeps/unix/sysv/linux/bits/statvfs.h: Define ST_RELATIME.
10198 * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
10199 Handle relatime mount option.
10202 * libio/Makefile (tests): Add tst-setvbuf1.
10203 * libio/tst-setvbuf1.c: New file.
10205 2006-12-08 Jakub Jelinek <jakub@redhat.com>
10208 * libio/genops.c (__uflow): Fix a typo.
10209 * libio/wfiledoalloc.c (_IO_wfile_doallocate): Don't stat
10210 nor set _IO_LINE_BUF bit here. Size the wide buffer based on
10211 the narrow buffer size.
10213 2006-11-24 Jakub Jelinek <jakub@redhat.com>
10216 * libio/libio.h (_IO_FLAGS2_USER_WBUF): Define.
10217 * libio/wgenops.c (_IO_wsetb, _IO_wdefault_finish): Test and set
10218 _IO_FLAGS2_USER_WBUF bit in _flags2 instead of _IO_USER_BUF bit
10220 * libio/wstrops.c (_IO_wstr_overflow, enlarge_userbuf,
10221 _IO_wstr_finish): Likewise.
10222 * libio/wmemstream.c (open_wmemstream): Likewise.
10223 * libio/fileops.c (_IO_new_file_close_it): Call _IO_set[bgp]
10224 even for wide streams.
10226 2006-12-13 Jakub Jelinek <jakub@redhat.com>
10228 * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S: Include
10231 2006-12-11 Ulrich Drepper <drepper@redhat.com>
10233 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Parse thousand
10234 separators also if no non-zero digits found.
10235 * stdlib/Makefile (tests): Add tst-strtod3.
10237 2006-12-09 Ulrich Drepper <drepper@redhat.com>
10240 * include/features.h: Fix comment about default value for
10244 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix test to recognize
10245 empty parsed strings.
10246 * stdlib/Makefile (tests): Add tst-strtod2.
10247 * stdlib/tst-strtod2.c: New file.
10250 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix exp_limit
10252 * stdlib/Makefile (tests): Add tst-atof2.
10253 * stdlib/tst-atof2.c: New file.
10256 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Adjust exponent value
10257 correctly if removing trailing zero of hex-float.
10258 * stdlib/Makefile (tests): Add tst-atof1.
10259 * stdlib/tst-atof1.c: New file.
10261 2006-12-09 Jakub Jelinek <jakub@redhat.com>
10263 * misc/mntent_r.c (__hasmntopt): Check p[optlen] even when p == rest.
10264 Start searching for next comma at p rather than rest.
10265 * misc/Makefile (tests): Add tst-mntent2.
10266 * misc/tst-mntent2.c: New test.
10268 * misc/getusershell.c (initshells): Check for integer overflows.
10269 Make strings buffer one bigger as fgets always succeeds when second
10270 argument is 1. Don't use calloc for shells array. Disallow
10273 2006-12-08 Ulrich Drepper <drepper@redhat.com>
10275 * malloc/memusage.c: Handle realloc with new size of zero and
10276 non-NULL pointer correctly.
10277 (me): Really write first record twice.
10278 (struct entry): Make format bi-arch safe.
10279 (dest): Write out more realloc statistics.
10280 * malloc/memusagestat.c (struct entry): Make format bi-arch safe.
10282 2006-12-05 Jakub Jelinek <jakub@redhat.com>
10284 * nis/nis_subr.c (nis_getnames): Revert last change.
10286 2006-12-04 Jakub Jelinek <jakub@redhat.com>
10288 * sysdeps/unix/sysv/linux/ttyname.c: Include termios.h.
10289 (ttyname): Use tcgetattr instead of isatty, don't set errno to ENOTTY.
10290 * sysdeps/unix/sysv/linux/ttyname_r.c: Include termios.h.
10291 (__ttyname_r): Use tcgetattr instead of isatty, don't set errno to
10293 * io/Makefile: Add rules to build and run tst-ttyname_r test.
10294 * io/tst-ttyname_r.c: New test.
10296 2006-12-03 Kaz Kojima <kkojima@rr.iij4u.or.jp>
10298 * sysdeps/unix/sysv/linux/sh/sys/io.h: Removed.
10300 2006-11-30 H.J. Lu <hongjiu.lu@intel.com>
10302 * sysdeps/i386/i686/memcmp.S: Use jump table as the base of
10303 jump table entries.
10305 2006-11-30 Jan Kratochvil <jan.kratochvil@redhat.com>
10307 * sysdeps/unix/sysv/linux/i386/clone.S: Provide CFI for the outermost
10308 `clone' function to ensure proper unwinding stop of gdb.
10309 * sysdeps/unix/sysv/linux/x86_64/clone.S: Likewise.
10311 2006-12-01 Ulrich Drepper <drepper@redhat.com>
10313 * nscd/nscd.init: Remove obsolete and commented-out -S option
10316 2006-11-23 Jakub Jelinek <jakub@redhat.com>
10319 * manual/string.texi (strncmp): Fix pastos from wcscmp description.
10322 * manual/string.texi (strtok): Remove duplicate paragraph.
10324 2006-12-01 Jan Kratochvil <jan.kratochvil@redhat.com>
10326 * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Fix compatibility with
10327 libgcc not supporting `rflags' unwinding (register # >= 17).
10329 2006-11-30 Jakub Jelinek <jakub@redhat.com>
10331 * sunrpc/svc_run.c (svc_run): Set my_pollfd to new_pollfd if realloc
10334 2006-11-29 Daniel Jacobowitz <dan@codesourcery.com>
10335 Jakub Jelinek <jakub@redhat.com>
10336 Jan Kratochvil <jan.kratochvil@redhat.com>
10338 * sysdeps/unix/sysv/linux/x86_64/sigaction.c (restore_rt): Add correct
10339 unwind information.
10340 * sysdeps/unix/sysv/linux/x86_64/Makefile: Provide symbols for
10341 'restore_rt' even in the 'signal' directory.
10342 * sysdeps/unix/sysv/linux/x86_64/ucontext_i.sym: Extend the regs list.
10344 2006-11-27 Jakub Jelinek <jakub@redhat.com>
10347 * sunrpc/svc_run.c (svc_run): Fail instead of segfaulting if
10348 malloc crashed. Don't allocate memory unnecessarily in each
10351 2006-10-21 Jakub Jelinek <jakub@redhat.com>
10353 * resolv/mapv4v6addr.h (map_v4v6_address): Fix last change.
10355 2006-11-20 Ulrich Drepper <drepper@redhat.com>
10357 * resolv/mapv4v6addr.h (map_v4v6_address): Optimize a bit.
10359 2006-11-18 Bruno Haible <bruno@clisp.org>
10361 * sysdeps/unix/sysv/linux/i386/getgroups.c (__getgroups): Invoke
10362 __sysconf only after having tried to call getgroups32.
10364 2006-11-19 Ulrich Drepper <drepper@redhat.com>
10366 * nss/nss_files/files-hosts.c (LINE_PARSER): Support IPv6-style
10367 addresses for IPv4 queries if they can be mapped.
10369 2006-11-16 Jakub Jelinek <jakub@redhat.com>
10371 * sysdeps/x86_64/fpu/s_copysignf.S (__copysignf): Switch to .text.
10372 * sysdeps/x86_64/fpu/s_copysign.S (__copysign): Likewise.
10373 (signmask): Add .size directive.
10374 (othermask): Add .type directive.
10376 2006-11-14 Ulrich Drepper <drepper@redhat.com>
10378 * po/nl.po: Update from translation team.
10380 * timezone/zdump.c: Redo fix for BZ #3137.
10382 2006-11-14 Jakub Jelinek <jakub@redhat.com>
10384 * nss/nss_files/files-alias.c (get_next_alias): Set line back
10385 to first_unused after parsing :include: file.
10387 2006-11-10 Ulrich Drepper <drepper@redhat.com>
10389 * timezone/africa: Update from tzdata2006o.
10390 * timezone/antarctica: Likewise.
10391 * timezone/asia: Likewise.
10392 * timezone/australasia: Likewise.
10393 * timezone/backward: Likewise.
10394 * timezone/europe: Likewise.
10395 * timezone/iso3166.tab: Likewise.
10396 * timezone/northamerica: Likewise.
10397 * timezone/southamerica: Likewise.
10398 * timezone/zone.tab: Likewise.
10400 * time/tzfile.c (__tzfile_read): Extend to handle new file format
10401 on machines with 64-bit time_t.
10403 * timezone/checktab.awk: Update from tzcode2006o.
10404 * timezone/ialloc.c: Likewise.
10405 * timezone/private.h: Likewise.
10406 * timezone/scheck.c: Likewise.
10407 * timezone/tzfile.h: Likewise.
10408 * timezone/tzselect.ksh: Likewise.
10409 * timezone/zdump.c: Likewise.
10410 * timezone/zic.c: Likewise.
10413 * elf/ldconfig.c (main): Call setlocale and textdomain.
10414 Patch mostly by Benno Schulenberg <bensberg@justemail.net>.
10417 * manual/argp.texi: Fix typos.
10418 * manual/charset.texi: Likewise.
10419 * manual/errno.texi: Likewise.
10420 * manual/filesys.texi: Likewise.
10421 * manual/lang.texi: Likewise.
10422 * manual/maint.texi: Likewise.
10423 * manual/memory.texi: Likewise.
10424 * manual/message.texi: Likewise.
10425 * manual/resource.texi: Likewise.
10426 * manual/search.texi: Likewise.
10427 * manual/signal.texi: Likewise.
10428 * manual/startup.texi: Likewise.
10429 * manual/stdio.texi: Likewise.
10430 * manual/sysinfo.texi: Likewise.
10431 * manual/syslog.texi: Likewise.
10432 * manual/time.texi: Likewise.
10433 Patch by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
10436 * sunrpc/clnt_raw.c: Minimal message improvements.
10437 * sunrpc/pm_getmaps.c: Likewise.
10438 * nis/nss_nisplus/nisplus-publickey.c: Likewise.
10439 * nis/nis_print_group_entry.c: Likewise.
10440 * locale/programs/repertoire.c: Likewise.
10441 * locale/programs/charmap.c: Likewise.
10442 * malloc/memusage.sh: Likewise.
10443 * elf/dl-deps.c: Likewise.
10444 * locale/programs/ld-collate.c: Likewise.
10445 * libio/vswprintf.c: Likewise.
10446 * malloc/memusagestat.c: Likewise.
10447 * sunrpc/auth_unix.c: Likewise.
10448 * sunrpc/rpc_main.c: Likewise.
10449 * nscd/cache.c: Likewise.
10450 * locale/programs/repertoire.c: Unify output messages.
10451 * locale/programs/charmap.c: Likewise.
10452 * locale/programs/ld-ctype.c: Likewise.
10453 * locale/programs/ld-monetary.c: Likewise.
10454 * locale/programs/ld-numeric.c: Likewise.
10455 * locale/programs/ld-time.c: Likewise.
10456 * elf/ldconfig.c: Likewise.
10457 * nscd/selinux.c: Likewise.
10458 * elf/cache.c: Likewise.
10459 Patch mostly by Benno Schulenberg <bensberg@justemail.net>.
10462 * sysdeps/i386/fpu/bits/mathinline.h (floor): Make rounding mode
10466 2006-11-10 Jakub Jelinek <jakub@redhat.com>
10468 * string/strxfrm_l.c (STRXFRM): Fix trailing \1 optimization
10469 if N is one bigger than return value.
10470 * string/tst-strxfrm2.c (do_test): Also test strxfrm with l1 + 1
10471 and l1 last arguments, if buf is defined, verify the return value
10472 equals to strlen (buf) and verify no byte beyond passed length
10475 2006-11-10 Ulrich Drepper <drepper@redhat.com>
10477 * po/sv.po: Update from translation team.
10479 2006-11-09 Ulrich Drepper <drepper@redhat.com>
10481 * sysdeps/unix/sysv/linux/x86_64/sysconf.c (intel_check_word): Add
10482 noinline attribute.
10484 2006-11-10 Jakub Jelinek <jakub@redhat.com>
10486 * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word): Add
10487 noinline attribute.
10489 * sysdeps/gnu/siglist.c (__old_sys_siglist, __old_sys_sigabbrev):
10490 Use __new_sys_siglist instead of _sys_siglist_internal as
10491 second macro argument.
10492 (_old_sys_siglist): Use declare_symbol_alias macro instead of
10495 2006-11-09 Ulrich Drepper <drepper@redhat.com>
10498 * posix/unistd.h (sysconf): Remove const attribute.
10500 * sysdeps/posix/getaddrinfo.c (getaddrinfo): Fix test for
10501 temporary or deprecated addresses.
10502 Patch by Sridhar Samudrala <sri@us.ibm.com>.
10504 * string/Makefile (tests): Add tst-strxfrm2.
10505 * string/tst-strxfrm2.c: New file.
10507 2006-10-09 Jakub Jelinek <jakub@redhat.com>
10509 * elf/dl-debug.c (_dl_debug_initialize): Check r->r_map for 0
10510 rather than r->r_brk.
10512 2006-11-08 Jakub Jelinek <jakub@redhat.com>
10514 * string/strxfrm_l.c (STRXFRM): Do the trailing \1 removal
10515 optimization even if needed > n.
10517 * elf/dl-load.c (decompose_rpath): Return bool rather than void.
10518 If l->l_name is on inhibit_rpath list, set sps->dirs to -1 and
10519 return false, otherwise return true.
10520 (cache_rpath): Return decompose_rpath return value.
10522 2006-11-07 Jakub Jelinek <jakub@redhat.com>
10524 * include/libc-symbols.h (declare_symbol): Rename to...
10525 (declare_symbol_alias): ... this. Add ORIGINAL argument, imply
10526 strong_alias (ORIGINAL, SYMBOL) in asm to make sure it preceedes
10528 * sysdeps/gnu/errlist-compat.awk: Adjust for declare_symbol_alias
10530 * sysdeps/gnu/siglist.c: Likewise.
10532 2006-11-03 Steven Munroe <sjmunroe@us.ibm.com>
10534 * sysdeps/powerpc/fpu/bits/mathinline.h
10535 [__LIBC_INTERNAL_MATH_INLINES]: Moved to ...
10536 * sysdeps/powerpc/fpu/math_private.h: ...here. New file.
10538 2006-11-05 Ulrich Drepper <drepper@redhat.com>
10540 * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word):
10541 Update handling of cache descriptor 0x49 for new models.
10542 * sysdeps/unix/sysv/linux/x86_64/sysconf.c (intel_check_word):
10545 2006-11-02 Jakub Jelinek <jakub@redhat.com>
10547 * malloc/memusage.c (dest): Reset not_me back to false after
10548 printing statistics.
10550 2006-11-02 Ulrich Drepper <drepper@redhat.com>
10552 * configure.in: Work around ld --help change and avoid -z relro
10553 test completely if the architecture doesn't care about security.
10555 2006-11-01 Ulrich Drepper <drepper@redhat.com>
10557 * po/sv.po: Update from translation team.
10559 2006-10-31 Ulrich Drepper <drepper@redhat.com>
10561 * stdlib/atexit.c (atexit): Don't mark as hidden when used to
10562 generate compatibility version.
10564 2006-10-29 Ulrich Drepper <drepper@redhat.com>
10566 * configure.in: Relax -z relro requirement a bit.
10568 * po/sv.po: Update from translation team.
10570 2006-10-29 Jakub Jelinek <jakub@redhat.com>
10572 * elf/dl-sym.c (do_sym): Use RTLD_SINGLE_THREAD_P.
10573 * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Likewise.
10574 * elf/dl-close.c (_dl_close_worker): Likewise.
10575 * elf/dl-open.c (_dl_open_worker): Likewise.
10576 * sysdeps/generic/sysdep-cancel.h (RTLD_SINGLE_THREAD_P): Define.
10578 2006-10-27 Ulrich Drepper <drepper@redhat.com>
10580 * configure.in: Require assembler support for visibility, compiler
10581 support for visibility and aliases, linker support for various -z
10583 * Makeconfig: Remove conditional code which now is unnecessary.
10584 * config.h.in: Likewise.
10585 * config.make.in: Likewise.
10586 * dlfcn/Makefile: Likewise.
10587 * elf/Makefile: Likewise.
10588 * elf/dl-load.c: Likewise.
10589 * elf/rtld.c: Likewise.
10590 * include/libc-symbols.h: Likewise.
10591 * include/stdio.h: Likewise.
10592 * io/Makefile: Likewise.
10593 * io/fstat.c: Likewise.
10594 * io/fstat64.c: Likewise.
10595 * io/fstatat.c: Likewise.
10596 * io/fstatat64.c: Likewise.
10597 * io/lstat.c: Likewise.
10598 * io/lstat64.c: Likewise.
10599 * io/mknod.c: Likewise.
10600 * io/mknodat.c: Likewise.
10601 * io/stat.c: Likewise.
10602 * io/stat64.c: Likewise.
10603 * libio/stdio.c: Likewise.
10604 * nscd/Makefile: Likewise.
10605 * stdlib/Makefile: Likewise.
10606 * stdlib/atexit.c: Likewise.
10607 * sysdeps/generic/ldsodefs.h: Likewise.
10608 * sysdeps/i386/dl-machine.h: Likewise.
10609 * sysdeps/i386/sysdep.h: Likewise.
10610 * sysdeps/i386/i686/memcmp.S: Likewise.
10611 * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
10612 * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
10613 * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
10615 * Makerules: USE_TLS support is now default.
10616 * tls.make.c: Likewise.
10617 * csu/Versions: Likewise.
10618 * csu/libc-start.c: Likewise.
10619 * csu/libc-tls.c: Likewise.
10620 * csu/version.c: Likewise.
10621 * dlfcn/dlinfo.c: Likewise.
10622 * elf/dl-addr.c: Likewise.
10623 * elf/dl-cache.c: Likewise.
10624 * elf/dl-close.c: Likewise.
10625 * elf/dl-iteratephdr.c: Likewise.
10626 * elf/dl-load.c: Likewise.
10627 * elf/dl-lookup.c: Likewise.
10628 * elf/dl-object.c: Likewise.
10629 * elf/dl-open.c: Likewise.
10630 * elf/dl-reloc.c: Likewise.
10631 * elf/dl-support.c: Likewise.
10632 * elf/dl-sym.c: Likewise.
10633 * elf/dl-sysdep.c: Likewise.
10634 * elf/dl-tls.c: Likewise.
10635 * elf/ldconfig.c: Likewise.
10636 * elf/rtld.c: Likewise.
10637 * elf/tst-tls-dlinfo.c: Likewise.
10638 * elf/tst-tls1.c: Likewise.
10639 * elf/tst-tls10.h: Likewise.
10640 * elf/tst-tls14.c: Likewise.
10641 * elf/tst-tls2.c: Likewise.
10642 * elf/tst-tls3.c: Likewise.
10643 * elf/tst-tls4.c: Likewise.
10644 * elf/tst-tls5.c: Likewise.
10645 * elf/tst-tls6.c: Likewise.
10646 * elf/tst-tls7.c: Likewise.
10647 * elf/tst-tls8.c: Likewise.
10648 * elf/tst-tls9.c: Likewise.
10649 * elf/tst-tlsmod1.c: Likewise.
10650 * elf/tst-tlsmod13.c: Likewise.
10651 * elf/tst-tlsmod13a.c: Likewise.
10652 * elf/tst-tlsmod14a.c: Likewise.
10653 * elf/tst-tlsmod2.c: Likewise.
10654 * elf/tst-tlsmod3.c: Likewise.
10655 * elf/tst-tlsmod4.c: Likewise.
10656 * elf/tst-tlsmod5.c: Likewise.
10657 * elf/tst-tlsmod6.c: Likewise.
10658 * include/errno.h: Likewise.
10659 * include/link.h: Likewise.
10660 * include/tls.h: Likewise.
10661 * locale/global-locale.c: Likewise.
10662 * locale/localeinfo.h: Likewise.
10663 * malloc/arena.c: Likewise.
10664 * malloc/hooks.c: Likewise.
10665 * malloc/malloc.c: Likewise.
10666 * resolv/Versions: Likewise.
10667 * sysdeps/alpha/dl-machine.h: Likewise.
10668 * sysdeps/alpha/libc-tls.c: Likewise.
10669 * sysdeps/generic/ldsodefs.h: Likewise.
10670 * sysdeps/generic/tls.h: Likewise.
10671 * sysdeps/i386/dl-machine.h: Likewise.
10672 * sysdeps/ia64/dl-machine.h: Likewise.
10673 * sysdeps/ia64/libc-tls.c: Likewise.
10674 * sysdeps/mach/hurd/fork.c: Likewise.
10675 * sysdeps/mach/hurd/i386/tls.h: Likewise.
10676 * sysdeps/powerpc/powerpc32/dl-machine.c: Likwise.
10677 * sysdeps/powerpc/powerpc32/dl-machine.h: Likewise.
10678 * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
10679 * sysdeps/s390/libc-tls.c: Likewise.
10680 * sysdeps/s390/s390-32/dl-machine.h: Likewise.
10681 * sysdeps/s390/s390-64/dl-machine.h: Likewise.
10682 * sysdeps/sh/dl-machine.h: Likewise.
10683 * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
10684 * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
10685 * sysdeps/x86_64/dl-machine.h: Likewise.
10687 * elf/dl-close.c (_dl_close_worker): Renamed from _dl_close and
10688 split out locking and parameter checking.
10689 (_dl_close): Call _dl_close_worker after locking and checking.
10690 * elf/dl-open.c (_dl_open): Call _dl_close_worker instead of
10692 * elf/Makefile: Add rules to build and run tst-thrlock.
10693 * elf/tst-thrlock.c: New file.
10696 * stdlib/stdlib.h: Adjust comment for canonicalize_file_name to
10700 * elf/dl-open.c (dl_open_worker): Keep holding dl_load_lock until
10701 we are sure we do not need it anymore for _dl_close. Also move
10702 the asserts inside the lock region.
10703 Patch mostly by Suzuki <suzuki@in.ibm.com>.
10705 2006-10-27 Jakub Jelinek <jakub@redhat.com>
10707 * elf/dl-lookup.c (_dl_debug_bindings): Remove unused symbol_scope
10709 (_dl_lookup_symbol_x): Adjust caller.
10711 * sysdeps/generic/ldsodefs.h (struct link_namespaces): Remove
10713 * elf/rtld.c (dl_main): Don't initialize _ns_global_scope.
10715 * elf/dl-libc.c: Revert l_scope name changes.
10716 * elf/dl-load.c: Likewise.
10717 * elf/dl-object.c: Likewise.
10718 * elf/rtld.c: Likewise.
10719 * elf/dl-close.c (_dl_close): Likewise.
10720 * elf/dl-open.c (dl_open_worker): Likewise. If not SINGLE_THREAD_P,
10721 always use __rtld_mrlock_{change,done}. Always free old scope list
10722 here if not l_scope_mem.
10723 * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Revert l_scope name
10724 change. Never free scope list here. Just __rtld_mrlock_lock before
10725 the lookup and __rtld_mrlock_unlock it after the lookup.
10726 * elf/dl-sym.c: Likewise.
10727 * include/link.h (struct r_scoperec): Remove.
10728 (struct link_map): Replace l_scoperec with l_scope, l_scoperec_mem
10729 with l_scope_mem and l_scoperec_lock with l_scope_lock.
10731 2006-10-25 Ulrich Drepper <drepper@redhat.com>
10733 * sysdeps/gnu/netinet/tcp.h: Define TCP_CONGESTION.
10735 2006-10-18 Ulrich Drepper <drepper@redhat.com>
10737 * configure.in: Disable building profile libraries by default.
10739 2006-10-17 Jakub Jelinek <jakub@redhat.com>
10741 * sunrpc/xdr_mem.c (xdrmem_setpos): Don't compare addresses
10742 as signed longs, check for x_base + pos overflow.
10743 * sunrpc/Makefile (tests): Add tst-xdrmem2.
10744 * sunrpc/tst-xdrmem2.c: New test.
10746 2006-10-18 Ulrich Drepper <drepper@redhat.com>
10748 * elf/dl-lookup.c (_dl_lookup_symbol_x): Add warning to
10749 _dl_lookup_symbol_x code.
10751 2006-10-17 Jakub Jelinek <jakub@redhat.com>
10753 * elf/dl-runtime.c: Include sysdep-cancel.h.
10754 (_dl_fixup, _dl_profile_fixup): Use __rtld_mrlock_* and
10755 scoperec->nusers only if !SINGLE_THREAD_P. Use atomic_*
10756 instead of catomic_* macros.
10757 * elf/dl-sym.c: Include sysdep-cancel.h.
10758 (do_sym): Use __rtld_mrlock_* and scoperec->nusers only
10759 if !SINGLE_THREAD_P. Use atomic_* instead of catomic_* macros.
10760 * elf/dl-close.c: Include sysdep-cancel.h.
10761 (_dl_close): Use __rtld_mrlock_* and scoperec->nusers only
10762 if !SINGLE_THREAD_P. Use atomic_* instead of catomic_* macros.
10763 * elf/dl-open.c: Include sysdep-cancel.h.
10764 (dl_open_worker): Use __rtld_mrlock_* and scoperec->nusers only
10765 if !SINGLE_THREAD_P. Use atomic_* instead of catomic_* macros.
10767 2006-10-17 Jakub Jelinek <jakub@redhat.com>
10770 * malloc/malloc.c (malloc_consolidate): Set maxfb to address of last
10771 fastbin rather than end of fastbin array.
10773 2006-10-18 Ulrich Drepper <drepper@redhat.com>
10775 * sysdeps/i386/i486/bits/atomic.h (catomic_decrement): Use correct
10777 * sysdeps/x86_64/bits/atomic.h
10778 (__arch_c_compare_and_exchange_val_64_acq): Add missing casts.
10779 (catomic_decrement): Use correct body macro.
10781 2006-10-17 Jakub Jelinek <jakub@redhat.com>
10783 * include/atomic.h: Add a unique prefix to all local variables
10785 * csu/tst-atomic.c (do_test): Test also catomic_* macros.
10787 2006-10-16 Ulrich Drepper <drepper@redhat.com>
10790 * sysdeps/posix/getaddrinfo.c (rfc3484_sort): Fix typos in rules 4
10793 2006-10-14 Ulrich Drepper <drepper@redhat.com>
10795 * resolv/arpa/nameser.h: Document that ns_t_a6 is deprecated.
10797 2006-10-13 Ulrich Drepper <drepper@redhat.com>
10800 * malloc/malloc.c (malloc_consolidate): Don't use get_fast_max to
10801 determine highest fast bin to consolidate, always look into all of
10803 (do_check_malloc_state): Only require for empty bins for large
10804 sizes in main arena.
10806 * libio/stdio.h: Add more __wur attributes.
10808 * elf/dl-minimal.c (realloc): Optimize last patch.
10810 2006-10-12 Richard Sandiford <richard@codesourcery.com>
10813 * elf/dl-minimal.c (realloc): Let malloc() return a new pointer,
10814 and use memcpy() if it does.
10816 2006-11-12 Andreas Jaeger <aj@suse.de>
10819 * manual/search.texi (Hash Search Function): Clarify.
10820 (Array Search Function): Clarify.
10822 2006-11-12 Joseph Myers <joseph@codesourcery.com>
10825 * math/atest-exp.c (main): Cast hex value to mp_limb_t before
10827 * math/atest-exp2.c (read_mpn_hex): Likewise.
10828 * math/atest-sincos.c (main): Likewise.
10830 2006-10-11 Ulrich Drepper <drepper@redhat.com>
10832 * sysdeps/unix/sysv/linux/syscalls.list: Add epoll_pwait.
10833 * sysdeps/unix/sysv/linux/sys/epoll.h: Declare epoll_pwait.
10834 * sysdeps/unix/sysv/linux/Versions (libc): Add epoll_pwait for
10836 * Versions.def: Add GLIBC_2.6 for libc.
10838 * sysdeps/unix/sysv/linux/i386/sysdep.h (DOARGS_6): Fix offset.
10840 * sysdeps/i386/i486/bits/atomic.h: Add catomic_* support.
10842 2006-10-11 Jakub Jelinek <jakub@redhat.com>
10844 * malloc/malloc.c (_int_malloc): Remove unused any_larger variable.
10846 * nis/nis_defaults.c (__nis_default_access): Don't call getenv twice.
10848 * nis/nis_subr.c (nis_getnames): Use __secure_getenv instead of getenv.
10849 * sysdeps/generic/unsecvars.h: Add NIS_PATH.
10851 2006-10-11 Ulrich Drepper <drepper@redhat.com>
10853 * include/atomic.c: Define catomic_* operations.
10854 * sysdeps/x86_64/bits/atomic.h: Likewise. Fix a few minor problems.
10855 * stdlib/cxa_finalize.c: Use catomic_* operations instead of atomic_*.
10856 * malloc/memusage.c: Likewise.
10857 * gmon/mcount.c: Likewise.
10858 * elf/dl-close.c: Likewise.
10859 * elf/dl-open.c: Likewise.
10860 * elf/dl-profile.c: Likewise.
10861 * elf/dl-sym.c: Likewise.
10862 * elf/dl-runtime.c: Likewise.
10863 * elf/dl-fptr.c: Likewise.
10864 * resolv/res_libc.c: Likewise.
10866 2006-10-10 Ulrich Drepper <drepper@redhat.com>
10868 * nis/nis_subr.c (nis_getnames): Add trailing dot to NIS_PATH
10869 components which lack them.
10871 * nis/nis_subr.c (nis_getnames): Make sure that we always return
10872 at least one entry consisting of the parameter concatenated with
10875 2006-10-10 Roland McGrath <roland@frob.com>
10877 * sysdeps/mach/hurd/utimes.c: Use a union to avoid an improper cast.
10878 * sysdeps/mach/hurd/futimes.c: Likewise.
10879 * sysdeps/mach/hurd/lutimes.c: Likewise.
10881 2006-10-09 Ulrich Drepper <drepper@redhat.com>
10882 Jakub Jelinek <jakub@redhat.com>
10884 Implement reference counting of scope records.
10885 * elf/dl-close.c (_dl_close): Remove all scopes from removed objects
10886 from the list in objects which remain. Always allocate new scope
10888 * elf/dl-open.c (dl_open_worker): When growing array for scopes,
10889 don't resize, allocate a new one.
10890 * elf/dl-runtime.c: Update reference counters before using a scope
10892 * elf/dl-sym.c: Likewise.
10893 * elf/dl-libc.c: Adjust for l_scope name change.
10894 * elf/dl-load.c: Likewise.
10895 * elf/dl-object.c: Likewise.
10896 * elf/rtld.c: Likewise.
10897 * include/link.h: Include <rtld-lowlevel.h>. Define struct
10898 r_scoperec. Replace r_scope with pointer to r_scoperec structure.
10899 Add l_scoperec_lock.
10900 * sysdeps/generic/ldsodefs.h: Include <rtld-lowlevel.h>.
10901 * sysdeps/generic/rtld-lowlevel.h: New file.
10903 * include/atomic.h: Rename atomic_and to atomic_and_val and
10904 atomic_or to atomic_or_val. Define new macros atomic_and and
10905 atomic_or which do not return values.
10906 * sysdeps/x86_64/bits/atomic.h: Define atomic_and and atomic_or.
10908 * sysdeps/i386/i486/bits/atomic.h: Likewise.
10910 * po/sv.po: Update from translation team.
10912 2006-10-07 Ulrich Drepper <drepper@redhat.com>
10914 * Versions.def: Add GLIBC_2.6 to libpthread.
10916 * include/shlib-compat.h (SHLIB_COMPAT): Expand parameters before use.
10917 (versioned_symbol): Likewise.
10918 (compat_symbol): Likewise.
10920 * po/tr.po: Update from translation team.
10922 2006-10-06 Ulrich Drepper <drepper@redhat.com>
10924 * nis/Banner: Removed. It's been integral part forever and the
10925 author info is incomplete anyway.
10926 * libio/Banner: Likewise.
10928 * nis/nis_table.c (nis_list): If __follow_path fails in the new
10929 code, make sure the nis_freeresult call doesn't crash and that the
10930 result is reported correctly.
10932 2006-09-27 Jakub Jelinek <jakub@redhat.com>
10934 * nis/nis_table.c (nis_list): Handle FOLLOW_PATH | ALL_RESULTS
10935 when callback is NULL.
10937 * nis/Versions (libnss_nisplus): Add
10938 _nss_nisplus_initgroups_dyn@@GLIBC_PRIVATE.
10939 * nis/Makefile (libnss_nisplus-routines): Add nisplus-initgroups.
10940 * nis/nss_nisplus/nisplus-grp.c (tablename_val, tablename_len,
10941 _nss_create_tablename): Rename to...
10942 (grp_tablename_val, grp_tablename_len, _nss_grp_create_tablename):
10943 ... these. No longer static.
10944 (internal_setgrent): Adjust users.
10945 (_nss_nisplus_getgrnam_r, _nss_nisplus_getgrgid_r): Likewise.
10946 Don't use locking around _nss_grp_create_tablename call.
10947 * nis/nss_nisplus/nisplus-initgroups.c: New file.
10949 2006-10-06 Ulrich Drepper <drepper@redhat.com>
10951 * version.h (VERSION): Bump to 2.5.90 for new development tree.
10953 2006-10-06 Andreas Jaeger <aj@suse.de>
10955 * include/features.h (__GLIBC_MINOR__): It's glibc 2.5 now.
10957 2006-10-06 Ulrich Drepper <drepper@redhat.com>
10959 * po/pl.po: Update from translation team.
10961 * nscd/nscd.c (main): Fix typo in message.
10962 Patch by Jakub Bogsz <qboosh@pld-linux.org>.
10964 2006-10-02 Jakub Jelinek <jakub@redhat.com>
10967 * sysdeps/unix/sysv/linux/sparc/sparc64/pause.c: Include
10968 errno.h, signal.h, unistd.h and sysdep-cancel.h.
10969 (__sigprocmask): Define.
10971 2006-10-02 Ulrich Drepper <drepper@redhat.com>
10973 * elf/rtld.c (dl_main): Don't use prelinking if LD_DYNAMIC_WEAK is
10976 2006-10-02 Jakub Jelinek <jakub@redhat.com>
10978 * nscd/mem.c (mempool_alloc): Round array size to 16 bytes
10979 in oldtotal and newtotal calculation.
10980 * nscd/nscd-client.h (struct mapped_database): Add datasize
10982 * nscd/nscd_helper.c (get_mapping): Initialize datasize field.
10983 (__nscd_get_map_ref): Get a new mapping even if mapping's data_size
10985 (__nscd_cache_search): Add checks to make sure we never reference
10986 data beyond the current mapping.
10988 2006-10-02 Dmitry V. Levin <ldv@altlinux.org>
10990 * sysdeps/posix/getaddrinfo.c (match_prefix): Make mask and val
10991 variables const to avoid compiler warnings.
10993 * io/fts.c (fts_close): Remove redundant checks.
10994 (fts_build): Likewise.
10995 (fts_palloc): Likewise.
10997 * manual/message.texi (Advanced gettext functions,
10998 Using gettextized software): Fix typos.
11000 2006-09-30 Ulrich Drepper <drepper@redhat.com>
11002 * posix/glob.c (glob_in_dir): Add some comments and asserts to
11003 explain why there are no leaks.
11005 2006-09-29 Ulrich Drepper <drepper@redhat.com>
11007 * libio/wmemstream.c: Include <wchar.h>.
11008 * libio/bug-wmemstream1.c: Likewise.
11009 * libio/tst-wmemstream1.c: Likewise.
11010 * libio/tst-wmemstream2.c: Likewise.
11012 * version.h (RELEASE): Bump to 2.5.
11013 * README: Regenerated.
11015 * locale/iso-3166.def: Add Aaland Islands and Montenegro.
11018 * nscd/nscd_initgroups.c (__nscd_getgrouplist): It is OK to have
11019 found no group members.
11020 Patch by Petr Baudis.
11022 2006-09-29 Jakub Jelinek <jakub@redhat.com>
11024 * elf/rtld.c (_dl_start_final): If not USE___THREAD, don't
11025 assert bootstrap_map.l_tls_modid is zero.
11026 (_dl_start): Initialize bootstrap_map.l_tls_modid to 0
11029 2006-09-27 Ulrich Drepper <drepper@redhat.com>
11031 * libio/stdio.h: Move open_wmemstream prototype to ...
11032 * wcsmbs/wchar.h: ... here.
11034 2006-09-25 Jakub Jelinek <jakub@redhat.com>
11037 * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat): Handle only
11038 fchownat syscall and __ASSUME_LCHOWN_SYSCALL case inline, call
11039 __{,l}chown to handle the rest.
11040 * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Handle only
11041 fchownat syscall and __ASSUME_32BITUIDS case inline, call
11042 __{,l}chown to handle the rest.
11043 * sysdeps/unix/sysv/linux/sparc/sparc32/fchownat.c: Include
11045 * sysdeps/unix/sysv/linux/s390/s390-32/fchownat.c: Likewise.
11046 * sysdeps/unix/sysv/linux/sh/fchownat.c: Likewise.
11049 * posix/glob.c (glob_in_dir): Don't alloca one struct globlink at a
11050 time, rather allocate increasingly bigger arrays of pointers, if
11051 possible with alloca, if too large with malloc.
11053 2006-09-24 Jakub Jelinek <jakub@redhat.com>
11055 * sysdeps/powerpc/fpu/libm-test-ulps: Updated.
11057 * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Fix 2 typos.
11059 2006-09-24 Ulrich Drepper <drepper@redhat.com>
11061 * sysdeps/posix/getaddrinfo.c (rfc3484_sort): Implement rule 4,
11063 * sysdeps/unix/sysv/linux/check_pf.c (make_request): Recognize
11064 IFA_F_HOMEADDRESS flag for interfaces.
11065 * include/ifaddrs.h (struct in6addrinfo): Define
11068 2006-09-21 Jakub Jelinek <jakub@redhat.com>
11071 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h (PTR_MANGLE3,
11072 PTR_DEMANGLE3): Define.
11073 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h (PTR_MANGLE3,
11074 PTR_DEMANGLE3): Likewise.
11075 * sysdeps/powerpc/powerpc32/__longjmp-common.S (__longjmp): Use them.
11076 * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S (__longjmp):
11078 * sysdeps/powerpc/powerpc64/__longjmp-common.S (__longjmp): Likewise.
11080 2006-09-20 Jakub Jelinek <jakub@redhat.com>
11082 * po/libc.pot: Regenerated.
11083 * po/be.po: Updated.
11084 * po/ca.po: Likewise.
11085 * po/cs.po: Likewise.
11086 * po/da.po: Likewise.
11087 * po/de.po: Likewise.
11088 * po/el.po: Likewise.
11089 * po/en_GB.po: Likewise.
11090 * po/es.po: Likewise.
11091 * po/fi.po: Likewise.
11092 * po/fr.po: Likewise.
11093 * po/gl.po: Likewise.
11094 * po/hr.po: Likewise.
11095 * po/hu.po: Likewise.
11096 * po/ja.po: Likewise.
11097 * po/ko.po: Likewise.
11098 * po/nb.po: Likewise.
11099 * po/nl.po: Likewise.
11100 * po/pl.po: Likewise.
11101 * po/pt_BR.po: Likewise.
11102 * po/ru.po: Likewise.
11103 * po/rw.po: Likewise.
11104 * po/sk.po: Likewise.
11105 * po/sv.po: Likewise.
11106 * po/tr.po: Likewise.
11107 * po/zh_CN.po: Likewise.
11108 * po/zh_TW.po: Likewise.
11111 * iconv/iconv_prog.c (main): Fix spelling in error message.
11112 * iconv/iconvconfig.c (main): Likewise.
11113 * locale/programs/ld-collate.c (handle_ellipsis): Likewise.
11114 * locale/programs/ld-ctype.c (charclass_symbolic_ellipsis): Likewise.
11115 * locale/programs/localedef.c (main): Likewise.
11116 * locale/programs/repertoire.c (repertoire_read): Likewise.
11117 * timezone/zdump.c (main): Likewise.
11118 * nscd/connections.c (handle_request): Fix spelling in log message.
11119 Patch by Malcolm Parsons <malcolm.parsons@gmail.com>.
11121 2006-09-20 Ulrich Drepper <drepper@redhat.com>
11123 * inet/inet6_option.c: Also emit linker warnings for the RFC 2292
11126 2006-09-20 Andreas Jaeger <aj@suse.de>
11128 * math/libm-test.inc (lrint_test_upward): Fix typo.
11130 2006-06-17 Joseph S. Myers <joseph@codesourcery.com>
11133 * math/libm-test.inc (lrint_test_tonearest): New function.
11134 (lrint_test_towardzero): New function.
11135 (lrint_test_downward): New function.
11136 (lrint_test_upward): New function.
11137 (main): Run these new tests.
11138 * sysdeps/ieee754/dbl-64/s_llrint.c (__llrint): Correct rounding
11139 of values near to 0.
11140 (two52): Use double not long double.
11141 * sysdeps/ieee754/dbl-64/s_lrint.c (__lrint): Likewise.
11142 * sysdeps/ieee754/flt-32/s_llrintf.c (__llrintf): Likewise.
11143 (two23): Use float not double.
11144 * sysdeps/ieee754/flt-32/s_lrintf.c (__lrintf): Likewise.
11145 (two23): Use float not double.
11146 * sysdeps/ieee754/ldbl-128/s_llrintl.c (__llrintl): Likewise.
11147 * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Likewise.
11148 * sysdeps/ieee754/ldbl-96/s_llrintl.c (__llrintl): Likewise.
11149 * sysdeps/ieee754/ldbl-96/s_lrintl.c (__lrintl): Likewise.
11151 2006-09-20 Martin Schwidefsky <schwidefsky@de.ibm.com>
11153 * sysdeps/unix/sysv/linux/s390/s390-32/makecontext.c (__makecontext):
11154 Cast sp to unsigned long to avoid compiler warning.
11155 Use __makecontext_ret function instead of a trampoline on the stack.
11156 (__makecontext_ret): New function.
11157 * sysdeps/unix/sysv/linux/s390/s390-64/makecontext.c: Likewise.
11159 2006-09-19 Jakub Jelinek <jakub@redhat.com>
11161 * elf/dl-cache.c (HWCAP_CHECK): If _DL_PLATFORMS_COUNT, but
11162 platform == -1, reject any libs with non-zero _DL_HWCAP_PLATFORM
11165 2006-09-19 Ulrich Drepper <drepper@redhat.com>
11167 * elf/dl-close.c (_dl_close): If dependency is not unloaded make
11168 sure no reference to the unloaded map's search list remains in the
11169 dependency's scope.
11171 2006-09-16 Jakub Jelinek <jakub@redhat.com>
11173 * elf/Makefile: Add rules to build and run unload7 test.
11174 * elf/unload7.c: New test.
11175 * elf/unload7mod1.c: New file.
11176 * elf/unload7mod2.c: New file.
11178 2006-09-18 Jakub Jelinek <jakub@redhat.com>
11180 * sysdeps/unix/sysv/linux/sys/ptrace.h (PT_GETEVENTMSG): Fix pasto.
11181 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h (PTRACE_SETOPTIONS,
11182 PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
11183 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h (PTRACE_SETOPTIONS,
11184 PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Likewise.
11185 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h (PTRACE_SETOPTIONS,
11186 PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Likewise.
11187 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h (PTRACE_SETOPTIONS,
11188 PTRACE_GETEVENTMSG): Likewise.
11189 (PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Change to the arch independent
11192 2006-09-17 Mike Frysinger <vapier@gentoo.org>
11194 * sysdeps/unix/sysv/linux/sys/ptrace.h (PTRACE_SETOPTIONS,
11195 PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
11196 * sysdeps/unix/sysv/linux/ptrace.c (ptrace): Check PTRACE_SETOPTIONS,
11197 PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO and PTRACE_SETSIGINFO.
11199 2006-09-16 Jakub Jelinek <jakub@redhat.com>
11201 * sysdeps/powerpc/powerpc32/register-dump.h (register_dump): Don't
11202 write '\0' to the fd.
11203 * sysdeps/mach/hurd/powerpc/register-dump.h (register_dump): Likewise.
11204 * sysdeps/powerpc/powerpc64/register-dump.h (register_dump): Likewise.
11205 Change regs to unsigned long pointer from unsigned int, fix fscr
11208 2006-09-14 Jakub Jelinek <jakub@redhat.com>
11210 * io/Makefile (CFLAGS-fstatat.c): Set.
11211 (CFLAGS-fstatat64.c): Likewise.
11212 (CFLAGS-mknodat.c): Likewise.
11214 * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Comment fixes.
11215 * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
11216 * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Rewritten.
11217 * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Rewritten.
11219 2006-09-14 Jakub Jelinek <jakub@redhat.com>
11220 Steven Munroe <sjmunroe@us.ibm.com>
11222 * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Add 4 new cap
11223 names to the beginning. Rename "cell" to "cellbe".
11224 (_dl_powerpc_platforms): New.
11225 * sysdeps/powerpc/dl-procinfo.h (_DL_HWCAP_FIRST): Decrease.
11226 (HWCAP_IMPORTANT): Remove power{4,5,5+} and cell.
11227 (_DL_PLATFORMS_COUNT, _DL_FIRST_PLATFORM): Define.
11228 (_DL_HWCAP_PLATFORM): Define to new mask.
11229 (_dl_platform_string, _dl_string_platform): New functions.
11230 * sysdeps/powerpc/sysdep.h (PPC_FEATURE_BOOKE, PPC_FEATURE_SMT,
11231 PPC_FEATURE_ICACHE_SNOOP, PPC_FEATURE_ARCH_2_05): Define.
11233 2006-09-12 Jakub Jelinek <jakub@redhat.com>
11236 * README.libm: Fix a thinko in sqrt algorithm description.
11239 * manual/string.texi (argz_delete): Fix prototype.
11240 Patch by <alpt@freaknet.org>.
11242 2006-08-26 Joseph Myers <joseph@codesourcery.com>
11245 * io/test-lfs.c (do_prepare): Give name_len type size_t.
11246 * io/tst-fcntl.c (do_prepare): Likewise.
11247 * posix/tst-exec.c (do_prepare): Likewise.
11248 * posix/tst-preadwrite.c (do_prepare): Likewise.
11249 * posix/tst-spawn.c (do_prepare): Likewise.
11250 * posix/tst-truncate.c (do_prepare): Likewise.
11251 * rt/tst-aio.c (do_prepare): Likewise.
11252 * rt/tst-aio64.c (do_prepare): Likewise.
11253 * stdlib/test-canon2.c (do_prepare): Give test_dir_len type
11256 2006-09-09 Ulrich Drepper <drepper@redhat.com>
11259 * time/mktime.c (guess_time_tm): Fix overflow detection.
11260 * time/Makefile (tests): Add bug-mktime1.
11261 * time/bug-mktime1.c: New file.
11264 * misc/sys/mman.h (remap_file_pages): Make available for _GNU_SOURCE.
11265 (mremap): Likewise.
11267 2006-09-07 Jakub Jelinek <jakub@redhat.com>
11270 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela):
11271 Ensure relocation doesn't clobber any bits outside of the
11272 immediate field for R_SPARC_TLS_LE_HIX22, R_SPARC_WDISP30,
11273 R_SPARC_HI22 and R_SPARC_H44.
11276 * malloc/malloc.c (sYSMALLOc): Only call grow_heap if
11277 (long) (MINSIZE + nb - old_size) is positive.
11279 * malloc/arena.c (grow_heap): When growing bail even if new_size
11283 * sysdeps/powerpc/powerpc32/fpu/s_lrint.S (__lrint): Don't access
11286 2006-09-06 Jakub Jelinek <jakub@redhat.com>
11288 * posix/regex_internal.c (re_string_reconstruct): Handle
11289 offset < pstr->valid_raw_len && pstr->offsets_needed case.
11290 Ensure no bytes read before raw_mbs array. Pass a saved copy of
11291 pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
11292 re_string_context_at.
11293 * posix/Makefile: Add rules to build and run bug-regex26 test.
11294 * posix/bug-regex26.c: New test.
11296 * locale/programs/ld-collate.c (collate_read): Goto sym_equiv_free
11297 rather than col_sym_free. Move seqp declaration earlier.
11299 * resolv/gai_suspend.c (gai_suspend): Make sure result is initialized.
11301 2006-09-05 Jakub Jelinek <jakub@redhat.com>
11303 * nscd/initgrcache.c (addinitgroupsX): Move any_success
11304 decl before first goto out.
11306 2006-09-04 Jakub Jelinek <jakub@redhat.com>
11308 * Makerules (shlib.lds): If have-hash-style, put .hash section
11309 at the end of the RO segment.
11311 2006-09-04 Ulrich Drepper <drepper@redhat.com>
11313 * elf/do-lookup.h (do_lookup_x): Initialize symidx in case the new
11314 style hash table format is used.
11316 2006-09-04 Jakub Jelinek <jakub@redhat.com>
11318 * resolv/res_mkquery.c (res_nmkquery): Set hp->id to statp->id after
11319 randomization rather than before.
11320 * resolv/res_init.c (res_randomid): Don't call gettimeofday here.
11322 2006-08-31 Jakub Jelinek <jakub@redhat.com>
11324 * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Add ld.so.
11326 * malloc/malloc.c (_int_malloc): Use full list insert and not
11327 shortcut which assumes the list is empty for large requests
11330 * elf/tst-addr1.c (do_test): Allow i.dli_sname "_IO_printf".
11332 2006-08-30 Jakub Jelinek <jakub@redhat.com>
11334 * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h (splice): Add offin
11335 and offout arguments to the prototype.
11336 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (splice): Likewise.
11337 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h (splice): Likewise.
11338 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (splice): Likewise.
11339 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h (splice): Likewise.
11340 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h (splice): Likewise.
11341 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h (splice): Likewise.
11342 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h (splice): Likewise.
11343 * sysdeps/unix/sysv/linux/syscalls.list (splice): Adjust args string.
11345 2006-08-28 Ulrich Drepper <drepper@redhat.com>
11347 * elf/dl-load.c (_dl_init_paths): Expand DSTs.
11349 * elf/dl-open.c (dl_open_worker): Allow $LIB and $PLATFORM in
11352 2006-08-28 Jakub Jelinek <jakub@redhat.com>
11354 * inet/getnameinfo.c (getnameinfo): For AF_INET, check errno
11355 only if herrno is NETDB_INTERNAL. Handle errors other than
11356 ERANGE outside of the loops, handle TRY_AGAIN.
11358 * locale/programs/ld-ctype.c (translit_flatten): Issue error
11359 if other's ctype category was missing.
11360 * locale/programs/ld-collate.c (collate_read): Return if
11361 copy_locale's collate category is missing.
11363 2006-08-27 Ulrich Drepper <drepper@redhat.com>
11366 * malloc/malloc.c (public_rEALLOc): Try harder by using other
11367 arenas if allocation failed.
11368 Patch mostly by Jan Edler <jan.edler@indexengines.com>.
11370 2006-08-26 Ulrich Drepper <drepper@redhat.com>
11372 * malloc/malloc.c (bin_at): Rewrite to be more clear and to not
11374 (malloc_state): Reduce bins size by 2.
11375 (_int_malloc): Fix test for large enough buffer for early termination.
11376 When no unsorted block matches perfectly and an exiting block has
11377 to be split, use full list insert and not shortcut which assumes
11380 * locale/programs/ld-ctype.c (ctype_read): Better patch for read
11383 2006-08-24 Ulrich Drepper <drepper@redhat.com>
11385 * locale/programs/ld-ctype.c (ctype_read): If CTYPE is NULL, don't
11388 * sysdeps/generic/ldsodefs.h (DL_ADDR_SYM_MATCH): For undefined
11389 symbol require exact match (these are PLTs).
11390 * sysdeps/unix/sysv/linux/powerpc/powerpc64/ldsodefs.h
11391 (_dl_ppc64_addr_sym_match): Likewise.
11394 * elf/dl-addr.c (_dl_addr): Don't ignore all undefined symbols.
11395 If symbol has a value use it.
11396 * elf/tst-dladdr1.c: New file.
11397 * elf/Makefile: Add rules to build and run tst-addr1.
11399 2006-08-24 Jakub Jelinek <jakub@redhat.com>
11401 * malloc/malloc.c (sYSMALLOc): Avoid infinite loop if MMAP
11402 keeps failing and heap growth or new heap creation isn't
11404 * malloc/tst-malloc.c (main): Add new tests.
11406 2006-08-24 Ulrich Drepper <drepper@redhat.com>
11409 * sysdeps/i386/bits/byteswap.h (__bswap_32): Use same conditions
11410 as in the x86-64 code to use bswap.
11412 2006-05-21 Joseph S. Myers <joseph@codesourcery.com>
11415 * posix/unistd.h (getlogin_r): Condition on __USE_POSIX199506, not
11417 * posix/bits/unistd.h: Likewise.
11419 2006-05-15 Mike Frysinger <vapier@gentoo.org>
11422 * string/strchr.c: Add cast to avoid warning.
11424 2006-08-21 Ulrich Drepper <drepper@redhat.com>
11426 * malloc/malloc.c (DEFAULT_MMAP_THRESHOLD_MAX): For 32-bit
11427 platforms define as 512K. For 64-bit platforms as 32MB. The lower
11428 limit is needed to avoid the exploding of the address space
11429 requirement for secondary heaps.
11430 * malloc/arena.c (HEAP_MAX_SIZE): Define using
11431 DEFAULT_MMAP_THRESHOLD_MAX if it is defined.
11433 2006-07-30 Joseph S. Myers <joseph@codesourcery.com>
11436 * Makerules (depfiles): Handle extra-test-objs the same as
11438 (common-mostlyclean): Likewise.
11439 * dlfcn/Makefile (extra-objs): Add modules to extra-test-objs
11441 * elf/Makefile (extra-objs): Likewise.
11442 * stdlib/Makefile (extra-objs): Likewise.
11444 2006-08-14 Eric Blake <ebb9@byu.net>
11447 * misc/error.h: Assume C89 or better.
11448 * misc/error.c: Likewise.
11450 2006-08-21 Ulrich Drepper <drepper@redhat.com>
11453 * sysdeps/unix/sysv/linux/openat.c: Fix compilation if
11454 __ASSUME_ATFCTS is defined.
11456 2006-08-19 Ulrich Drepper <drepper@redhat.com>
11458 * malloc/malloc.c (_int_malloc): Limit number of unsorted blocks
11459 to sort in each call.
11461 * nis/nss_nis/nis-service.c (internal_nis_getservent_r): . If map
11462 is empty simply return and use next service.
11463 * nis/nss_nis/nis-rpc.c (internal_nis_getrpcent_r): Likewise.
11465 * locale/programs/charmap.c (charmap_read): Add new parameter. It
11466 tells us when not finding a charmap file is an error.
11467 * locale/programs/charmap.h: Adjust charmap_read prototype.
11468 * iconv/iconv_prog.c (main): Tell charmap_read it's no error if we
11469 cannot find a charmap.
11470 * locale/programs/localedef.c (main): Adjust charmap_read call.
11472 2006-08-15 Jakub Jelinek <jakub@redhat.com>
11474 * sysdeps/unix/sysv/linux/sparc/sparc64/pause.c: Use
11475 sysdeps/posix/pause.c implementation instead.
11477 2006-08-09 Jakub Jelinek <jakub@redhat.com>
11479 * sysdeps/unix/nice.c (nice): Transform EACCES errno from setpriority
11482 2006-08-13 Andreas Schwab <schwab@suse.de>
11484 * sysdeps/powerpc/powerpc32/dl-trampoline.S (_dl_runtime_resolve):
11485 Don't clobber caller's LRSAVE.
11486 (_dl_prof_resolve): Likewise.
11488 2006-08-14 Ulrich Drepper <drepper@redhat.com>
11491 * libio/memstream.c (open_memstream): Allocate initial buffer with
11493 * libio/wmemstream.c (open_wmemstream): Likewise.
11494 * libio/strops.c: Pretty printing.
11495 (_IO_str_overflow): Clear uninitialized part of the new buffer.
11496 (enlarge_userbuf): New function.
11497 (_IO_str_seekoff): Call it if seek position is larger than current
11499 * libio/wstrops.c: Likewise.
11500 * libio/vasprintf.c: Add comment as to why we do not have to use
11501 calloc instead of malloc to allocate initial buffer.
11502 * libio/Makefile (tests): Add bug-memstream1 and bug-wmemstream1.
11503 * libio/bug-memstream1.c: New file.
11504 * libio/bug-wmemstream1.c: New file.
11506 2006-08-13 Ulrich Drepper <drepper@redhat.com>
11508 * libio/wstrops.c: Remove dead macro definitions and comments.
11509 * libio/strops.c: Likewise.
11512 * login/utmpname.c (__utmpname): Remove unnecessary test.
11514 2006-06-08 Joseph Myers <jsm28@gcc.gnu.org>
11517 * math/gen-libm-test.pl (clean_up_number): Do not remove trailing
11520 2006-08-13 Ulrich Drepper <drepper@redhat.com>
11523 * sysdeps/unix/sysv/linux/clock_settime.c: Add code to use syscall
11525 * sysdeps/unix/clock_settime.c: Add support for platform-specific
11526 setting of CPU clocks.
11528 2006-06-23 Paul Eggert <eggert@cs.ucla.edu>
11531 * sysdeps/generic/stdint.h (UINT8_C, UINT16_C): Don't append 'U',
11532 since C99 requires the result to promote to 'int' when uint_least8_t
11533 and uint_least16_t promote to 'int'.
11535 2006-08-12 Ulrich Drepper <drepper@redhat.com>
11538 * locale/programs/ld-ctype.c (ctype_output): Adjust alignments, fix
11539 lenght of one output field, correct bitmask creation.
11540 * locale/programs/ld-time.c: Add alignment.
11543 * misc/error.c: Add space between program name and message if file
11546 2006-08-03 Eric Blake <ebb9@byu.net>
11549 * misc/error.c (error_tail) [_LIBC]: Avoid invalid free.
11551 2006-08-09 Ulrich Drepper <drepper@redhat.com>
11553 * malloc/memusagestat.c: Silence warnings.
11555 * malloc/malloc.c: Dynamically size mmap treshold if the program
11556 frees mmaped blocks.
11557 Patch by Valerie Henson and Arjan van de Ven.
11559 2006-08-08 Jakub Jelinek <jakub@redhat.com>
11561 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h (O_DIRECT): Protect with
11564 * stdlib/strtol_l.c (__strtol_ul_max_tab, __strtol_ul_rem_tab,
11565 __strtol_ull_max_tab, __strtol_ull_rem_tab): Declare.
11566 (DEF): Don't put the var into .gnu.linkonce.r.* section.
11567 Only provide var definitions in strtol_l (or for *ull*
11570 * stdio-common/bug16.c (tests): New array.
11571 (do_tests): Allow the first hexadecimal digit
11572 to be 1, 2, 4 or 8. Do 3 additional tests.
11574 * sysdeps/s390/fpu/libm-test-ulps: Update.
11576 * sysdeps/unix/sysv/linux/s390/s390-32/fchownat.c (fchownat): Use
11577 fchownat syscall if available.
11578 * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat): Likewise.
11579 * sysdeps/unix/sysv/linux/sh/fchownat.c (fchownat): Likewise.
11580 * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Likewise.
11582 2006-08-07 Ulrich Drepper <drepper@redhat.com>
11584 * nis/nis_xdr.c: Avoid some function calls.
11586 2006-08-07 Jakub Jelinek <jakub@redhat.com>
11587 Ulrich Drepper <drepper@redhat.com>
11589 * nis/nis_call.c (rec_dirsearch) [case LOWER_NAME]: Don't take
11590 short cut if only one name component is stripped away.
11592 2006-08-07 Ulrich Drepper <drepper@redhat.com>
11594 * nis/nis_call.c: Minor cleanups throughout.
11595 (rec_dirsearch) [case HIGHER_NAME]: Correctly size ndomain array.
11596 (first_shoot): Add search_parent_first parameter. Only if it is set
11597 search parent server first.
11598 If directory for table found through cold start cache is not the same
11599 as referenced in the cache, don't use it.
11600 (__nisfind_server): Take additional parameter. Pass it on to
11602 (__prepare_niscall): Adjust __nisfind_server call.
11603 * nis/rpcsvc/nislib.h: Adjust __nisfind_server prototype.
11604 * nis/nis_table.c: Adjust __nisfind_server call.
11605 * nis/nis_lookup.c: Likewise.
11606 (nis_lookup): Don't loop endlessly if name is reduced to ".".
11608 2006-08-03 Ulrich Drepper <drepper@redhat.com>
11611 * math/s_cacosh.c: Return values from positive branch.
11612 * math/s_cacoshf.c: Likewise.
11613 * math/s_cacoshl.c: Likewise.
11616 * sysvipc/sys/msg.h: Change return value to ssize_t.
11617 * sysdeps/unix/sysv/linux/msgrcv.c: Likewise.
11618 * sysvipc/msgrcv.c: Likewise.
11619 * include/sys/msg.h: Likewise.
11621 * grp/initgroups.c (internal_getgrouplist): Remove unnecessary
11622 test introduced in patch for bz #661.
11623 (getgrouplist): Simplify code a bit. Don't allocate one additional
11624 element for NEWGROUPS.
11627 * stdio-common/printf_fphex.c (__printf_fphex): When rounding up
11628 'f', use '1' as leading digit not '\1'.
11629 * stdio-common/Makefile (tests): Add bug16.
11630 * stdio-common/bug16.c: New file.
11633 * sysdeps/unix/sysv/linux/gethostid.c: Don't define OLD_HOSTIDFILE
11634 and don't try to open it. The patch introducing the macro
11635 contained a bug and used the same file name as the new file
11636 instead of using /var/adm/hostid. Nobody complaint so I'm taking
11637 this out completely.
11640 * assert/assert.h: Move cast to void inside ?: to quiet gcc.
11641 Patch by Jerry James <Jerry.James@usu.edu>.
11643 * rt/Makefile (tests): Add tst-clock2.
11644 * rt/tst-clock2.c: New file.
11647 * resolv/gai_notify.c (__gai_notify_only): Copy memory for thread
11648 function and its parameters and pass it to new thread.
11649 (__gai_notify): Add support for alternative waiting for completion.
11650 * resolv/gai_suspend.c (gai_suspend): Add support for alternative
11651 waiting for completion.
11652 * resolv/getaddrinfo_a.c: Likewise.
11653 * resolv/gai_misc.h (struct waitlist): Don't add cond if alternative
11654 waiting for completion is used.
11655 * resolv/gai_misc.c: Allow overwriting code to start helper thread.
11656 * resolv/gai_cancel.c: Include <gai_misc.h> not "gai_misc.h".
11657 * resolv/gai_error.c: Likewise.
11658 * resolv/gai_sigqueue.c: Likewise.
11660 2006-08-02 Thomas Schwinge <tschwinge@gnu.org>
11662 * hurd/getdport.c (__getdport): Don't return EBADF; instead set
11663 errno to EBADF and return MACH_PORT_NULL.
11665 2006-06-23 Joseph Myers <joseph@codesourcery.com>
11668 * posix/Makefile (CFLAGS-waitid.c): Add -fasynchronous-unwind-tables.
11670 2006-08-02 Ulrich Drepper <drepper@redhat.com>
11672 * elf/dl-addr.c (_dl_addr): If GNU-style hash tables are present,
11673 walk them instead of the symbol table.
11675 2006-08-01 Ulrich Drepper <drepper@redhat.com>
11678 * nscd/initgrcache.c (addinitgroupsX): Judge successful lookups by
11679 status of NSS calls, not the number of returned entries.
11681 * sysdeps/unix/sysv/linux/syscalls.list: Remove add_key,
11682 request_key, keyctl.
11684 2006-07-31 Ulrich Drepper <drepper@redhat.com>
11686 * sysdeps/unix/sysv/linux/dl-osinfo.h: Remove unnecessary include.
11688 2006-07-16 Jeff Bailey <jbailey@ubuntu.com>
11690 * elf/tst-auditmod1.c: Fix typo in #error.
11692 2006-07-31 Ulrich Drepper <drepper@redhat.com>
11694 * elf/tst-auditmod1.c: Remove code for unsupported architectures.
11696 * iconvdata/run-iconv-test.sh: Run cmp in C locale.
11698 2006-07-20 Adam Nemet <anemet@caviumnetworks.com>
11700 * stdlib/test-canon.c (do_test): Close fd before unlinking file so
11701 that the directory is empty even on non-POSIX filesystems.
11703 2006-07-31 Ulrich Drepper <drepper@redhat.com>
11705 * elf/dl-open.c (dl_open_worker): Add branch prediction.
11707 * nis/nss_compat/compat-grp.c: Avoid unnecessary setgrent calls into
11708 the backend NSS module. If backend setgrent call failed, don't have
11709 internal_setgrent fail. Just remember this until it is needed.
11710 * nis/nss_compat/compat-pwd.c: Likewise.
11711 * nis/nss_compat/compat-spwd.c: Likewise.
11713 2006-07-30 Roland McGrath <roland@redhat.com>
11715 * sysdeps/unix/sysv/linux/ia64/sigsuspend.c: File removed.
11716 * sysdeps/unix/sysv/linux/x86_64/sigsuspend.c: File removed.
11717 * sysdeps/unix/sysv/linux/s390/s390-64/sigsuspend.c: File removed.
11718 * sysdeps/unix/sysv/linux/sparc/sparc64/sigsuspend.c: File removed.
11720 * sysdeps/unix/sysv/linux/not-cancel.h (pause_not_cancel): New macro.
11721 (nanosleep_not_cancel): New macro.
11722 (sigsuspend_not_cancel): new macro.
11723 * sysdeps/unix/sysv/linux/sigsuspend.c [__ASSUME_REALTIME_SIGNALS]
11724 (do_sigsuspend): Define as inline.
11725 (__sigsuspend): Always use do_sigsuspend.
11726 [! NO_CANCELLATION] (__sigsuspend_nocancel): New function.
11727 * include/signal.h: Declare __sigsuspend_nocancel.
11728 * sysdeps/posix/pause.c
11729 [! NO_CANCELLATION] (__pause_nocancel): New function.
11731 * include/unistd.h (__pause_nocancel): Add attribute_hidden.
11732 * include/time.h (__nanosleep_nocancel): Likewise.
11734 2006-07-30 Ulrich Drepper <drepper@redhat.com>
11736 * locale/programs/localedef.c (add_to_readlist): Rename local
11737 variables to avoid confusion.
11739 * locale/programs/charmap.c (charmap_read): Emit error message if
11740 charmap couldn't be found or read.
11742 2006-07-28 Ulrich Drepper <drepper@redhat.com>
11744 * sysdeps/unix/sysv/linux/kernel-features.h: Define
11745 __ASSUME_FUTEX_LOCK_PI.
11746 * include/time.h: Declare __nanosleep_nocancel.
11747 * include/unistd.h: Declare __pause_nocancel.
11749 * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Use this instead of
11750 LDFLAGS. Add -lgcc_eh and libc_nonshared (again) to make sure we
11751 get the __stack_chk_fail_local definition when it's needed.
11753 2006-07-26 Ulrich Drepper <drepper@redhat.com>
11755 * dlfcn/Makefile: Add rules to build and run bug-atexit3.
11756 * dlfcn/bug-atexit3.c: New file.
11757 * dlfcn/bug-atexit3-lib.cc: New file.
11759 * dlfcn/dlmopen.c (dlmopen_doit): Don't allow RTLD_GLOBAL to be
11760 used when the namespace is not the base namespace.
11762 2006-07-26 Gavin Romig-Koch <gavin@redhat.com>
11764 * stdlib/cxa_atexit.c (__new_exitfn_called): New variable.
11765 (__new_exitfn): Bump it in every successful call.
11766 * stdlib/cxa_finalize.c (__cxa_finalize): If destructor registered
11767 more exit handlers, call them right away.
11768 * stdlib/exit.h: Declare __new_exitfn_called.
11770 2006-07-25 Ulrich Drepper <drepper@redhat.com>
11772 * stdlib/cxa_finalize.c (__cxa_finalize): Fix race condition when
11773 calling registered handler.
11775 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Fix comment.
11776 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
11777 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
11778 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
11779 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
11780 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
11781 * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
11782 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
11784 2006-07-10 Ulrich Drepper <drepper@redhat.com>
11786 * elf/dl-lookup.c (dl_new_hash): New functions.
11787 (_dl_lookup_symbol_x): Rename hash to old_hash and don't compute
11788 value here. Compute new-style hash value. Pass new hash value
11789 and reference to variable with the old value to do_lookup_x.
11790 (_dl_setup_hash): If DT_GNU_HASH is defined, use it and not
11791 old-style hash table.
11792 (_dl_debug_bindings): Pass new hash value and reference to variable
11793 with the old value to do_lookup_x.
11794 * elf/do-lookup.h (do_lookup_x): Accept additional parameter with
11795 new-style hash value and change old-style hash value parameter to
11796 be a reference. Reoganize functions to determine whether
11797 new-style hash table is available. Only fall back on old-style
11798 table. If old-style hash value is needed, compute it here.
11799 * elf/dynamic-link.h (elf_get_dynamic_info): Relocate DT_GNU_HASH
11801 * elf/elf.h: Define SHT_GNU_HASH, DT_GNU_HASH, DT_TLSDEC_PLT,
11802 DT_TLSDEC_GOT. Adjust DT_ADDRNUM.
11803 * include/link.h (struct link_map): Add l_gnu_bitmask_idxbits,
11804 l_gnu_shift, l_gnu_bitmask, l_gnu_buckets and l_gnu_chain_zero.
11805 * Makeconfig: If linker supports --hash-style option add it to all
11806 linker command lines to build DSOs.
11807 * config.make.in: Define have-hash-style.
11808 * configure.in: Test whether linker supports --hash-style option.
11810 * elf/dl-misc.c (_dl_name_match_p): Make MAP parameter const.
11811 * sysdeps/generic/ldsodefs.h: Adjust prototype.
11813 2006-06-27 Ulrich Drepper <drepper@redhat.com>
11815 * elf/dl-load.c (open_path): Fix test to determine whether DSO is
11818 * elf/dl-load.c (_dl_map_object): Try harder to avoid looking at
11819 RPATH of main map twice.
11821 2006-06-22 Ulrich Drepper <drepper@redhat.com>
11823 * intl/dcigettext.c (DCIGETTEXT): If _nl_find_msg returns -1 don't
11824 look further, return original strings.
11825 (_nl_find_msg): Do not return found translation if the conversion
11826 failed. Either signal the string is unusable or that something went
11827 wrong and the original should be used.
11829 2006-06-21 Ulrich Drepper <drepper@redhat.com>
11831 * string/_strerror.c (__strerror_r): Add __builtin_expect.
11833 2006-06-14 Jakub Jelinek <jakub@redhat.com>
11836 * misc/insremque.c (insque): Handle prev == NULL.
11837 * misc/Makefile (tests): Add tst-insremque.
11838 * misc/tst-insremque.c: New test.
11840 2006-06-17 Ulrich Drepper <drepper@redhat.com>
11843 * elf/dl-deps.c (expand_dst): Rename __cnt variable to not
11844 conflict with DL_DST_REQUIRED.
11846 2006-06-16 Ulrich Drepper <drepper@redhat.com>
11848 * nis/nis_subr.c (nis_getnames): Fix the implementation to better
11849 match what Solaris does.
11851 2006-06-04 Ulrich Drepper <drepper@redhat.com>
11853 * sysdeps/posix/spawni.c (__spawni): Use local_seteuid and
11854 local_setegid instead of seteuid and setegid.
11855 * sysdeps/generic/local-setxid.h: New file.
11856 * sysdeps/unix/sysv/linux/local-setxid.h: New file.
11858 * sysdeps/posix/spawni.c (__spawni): Use non-cancelable interfaces.
11860 * string/Makefile (tests): Add bug-envz1.
11861 * string/bug-envz1.c: New file.
11863 2006-06-02 Jakub Jelinek <jakub@redhat.com>
11865 * posix/regex_internal.c (re_string_skip_chars): If no character has
11866 been converted at all, set *last_wc to WEOF. If mbrtowc failed, set wc
11867 to the byte which couldn't be converted.
11868 (re_string_reconstruct): Don't clear valid_raw_len before calling
11869 re_string_skip_chars. If wc is WEOF after re_string_skip_chars, set
11870 tip_context using re_string_context_at.
11871 * posix/Makefile: Add rules to build and run bug-regex25 test.
11872 * posix/bug-regex25.c: New test.
11874 2006-06-02 Ryan S. Arnold <rsa@us.ibm.com>
11877 * string/envz.c (envz_strip): Correct erroneously reversed src
11878 and dest parameters to memmove() invocation.
11880 2006-05-30 Jakub Jelinek <jakub@redhat.com>
11882 * nscd/nscd.h (prune_cache): Add fd argument to prototype.
11883 * nscd/nscd.c (parse_opt): Read response from INVALIDATE request
11884 to make sure the database has been already invalidated.
11885 * nscd/cache.c (prune_cache): Add fd argument. Write response to fd
11886 after the cache has been invalidated. Use pthread_mutex_lock rather
11887 than pthread_mutex_trylock if fd != -1.
11888 * nscd/connections.c (invalidate_cache): Add fd argument, write
11889 response to fd if not calling prune_cache, pass fd to prune_cache.
11890 (handle_request): Adjust invalidate_cache caller.
11891 (nscd_run): Pass -1 as fd to prune_cache.
11893 2006-05-30 Ulrich Drepper <drepper@redhat.com>
11895 * sysdeps/posix/getaddrinfo.c (gaiconf_init): Initialize bits in
11898 2006-05-29 Ulrich Drepper <drepper@redhat.com>
11900 * nscd/nscd.h (struct database_dyn): Add prunelock field.
11901 * nscd/cache.c (prune_cache): Take prunelock before starting the
11902 work. Just return in case it is already taken.
11903 * nscd/connections.c (dbs): Initialize .prunelock.
11905 2006-05-25 Ulrich Drepper <drepper@redhat.com>
11907 * nis/nis_removemember.c (nis_removemember): Avoid unnecessary
11908 copying. No need to allocate new array for group members. Just
11909 move the pointers and update the size.
11911 * nis/nis_addmember.c (nis_addmember): Avoid unnecessary copying.
11912 Avoid memory leak in case realloc fails. Simplification for
11913 better code generation.
11915 Avoid deprecation warning because of libc_hidden_proto for
11916 inet6_option_alloc.
11917 * inet/inet6_option.c (option_alloc): Renamed from
11918 inet6_option_alloc. Made static.
11919 (inet6_option_alloc): Now a simple wrapper around option_alloc.
11920 (inet6_option_append): Call option_alloc.
11921 * include/netinet/in.h: Remove libc_hidden_proto for
11922 inet6_option_alloc.
11924 * nis/nis_callback.c (__nis_create_callback): Always call xdr_free
11925 for cleanup when cb!=NULL [Coverity CID 233].
11927 2006-05-24 Ulrich Drepper <drepper@redhat.com>
11930 * inet/Makefile (routines): Add inet6_opt and inet6_rth.
11931 * inet/Versions (libc, GLIBC_2.5): Add inet6_opt_init,
11932 inet6_opt_append, inet6_opt_finish, inet6_opt_set_val, inet6_opt_next,
11933 inet6_opt_find, inet6_opt_get_val, inet6_rth_space, inet6_rth_init,
11934 inet6_rth_add, inet6_rth_reverse, inet6_rth_segments,
11935 and inet6_rth_getaddr.
11936 * inet/netinet/ip6.h (struct ip6_rthdr0): Make ip6r0_addr a flexible
11938 * inet/netinet/in.h (struct ip6_mtuinfo): Define.
11939 Mark inet6_option_* interfaces as deprecated.
11940 Declare inet6_opt_init, inet6_opt_append, inet6_opt_finish,
11941 inet6_opt_set_val, inet6_opt_next, inet6_opt_find, inet6_opt_get_val,
11942 inet6_rth_space, inet6_rth_init, inet6_rth_add, inet6_rth_reverse,
11943 inet6_rth_segments, and inet6_rth_getaddr.
11944 * inet/inet6_opt.c: New file.
11945 * inet/inet6_rth.c: New file.
11947 * inet/netinet/icmp6.h: Pretty printing.
11950 * elf/dl-addr.c (_dl_addr): Don't match undefined references.
11952 2006-05-23 Ulrich Drepper <drepper@redhat.com>
11954 * nis/nis_lookup.c (nis_lookup): Use __prepare_niscall instead of
11955 doing it all here. When server does not know the answer do not
11956 fail immediate, try parent first.
11958 * nis/nis_domain_of_r.c (nis_domain_of_r): Add missing buffer
11961 2006-05-20 Ulrich Drepper <drepper@redhat.com>
11963 * nis/nis_call.c (__prepare_niscall): New function. Split out
11965 * nis/nis_table.c (__create_ib_request): Renamed from create_ib_request
11967 (__follow_path): New function. Split out from nis_list.
11968 * nis/nis_xdr.h: Add libnsl_hidden_proto for _xdr_ib_request and
11970 * nis/nis_xdr.c: Add libnsl_hidden_def for _xdr_ib_request and
11972 * nis/libnsl.h: Declare __prepare_niscall, __create_ib_request,
11974 * nis/Versions: Export __prepare_niscall, __create_ib_request,
11975 __follow_path, __do_niscall3, _xdr_ib_request, and _xdr_nis_result
11976 from libnsl for version GLIBC_PRIVATE.
11977 * nis/nisplus-parser.h: Remove _nss_nisplus_parse_pwent_chk.
11978 Remove entry parameter from _nss_nisplus_parse_pwent and
11979 _nss_nisplus_parse_grent.
11980 * nis/nss_nisplus/nisplus-parser.c: Likewise.
11981 * nis/nss_nisplus/nisplus-pwd.c: Remove support for SETENT_BATCH_READ
11982 again. Rewrite getpwent handling to not use nis_first_entry and
11983 nis_next_entry. Roll out own niscall handling.
11984 * nis/nss_nisplus/nisplus-grp.c: Likewise.
11986 * sunrpc/xdr_rec.c: Fix typo in comment.
11988 2006-05-19 Ulrich Drepper <drepper@redhat.com>
11990 * nis/nis_call.c (__do_niscall3): Avoid code duplication in error
11993 * nis/nis_callback.c (internal_nis_do_callback): Don't use malloc
11994 to allocate memory for my_pollfd. Better initialization of
11995 cb_is_running. Use TEMP_FAILURE_RETRY.
11997 * malloc/memusage.sh (memusageso): Add quotes.
11998 (memusagestat): Likewise.
11999 * debug/xtrace.sh (pcprofileso): Likewise.
12000 (pcprofiledump): Likewise.
12001 * debug/Makefile ($(objpfx)xtrace): Use $LIB in SLIBDIR
12003 * malloc/Makefile ($(objpfx)memusage): Likewise.
12005 * nis/nis_callback.c (__nis_create_callback): Calls to
12006 svcudp_bufcreate and svctcp_create can fail. Free ->xprt if
12007 asprintf call fails.
12009 * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_sendreq): Make sure
12010 no uninitialized memory is passed to sendto.
12012 2006-05-18 Ulrich Drepper <drepper@redhat.com>
12014 * nis/nis_callback.c (__nis_create_callback): Use asprinf instead
12015 of snprintf+strdup. Handle OOM.
12016 * nis/nis_callback.c (__nis_create_callback): Allocate cb and
12017 cb->serv together. Remove now obsolete free calls.
12018 (__nis_destroy_callback): Remove now obsolete free call.
12020 2006-05-18 David Woodhouse <dwmw2@redhat.com>
12022 * sysdeps/posix/getaddrinfo.c: Add unique labels to the default
12023 RFC3484 precedence table for fec0::/10 and fc00::/7 (site-local
12024 and ULA respectively). Set precedence for IPv4 address to 10 as
12025 defined in RFC3484 for preferring IPv6.
12026 * posix/gai.conf: Update to match the new default tables.
12028 2006-05-18 Jakub Jelinek <jakub@redhat.com>
12030 * nis/nss_compat/compat-pwd.c (internal_setpwent): If nss_set*ent
12031 returned NSS_STATUS_UNAVAIL, still return NSS_STATUS_SUCCESS.
12032 * nis/nss_compat/compat-spwd.c (internal_setspent): Likewise.
12033 * nis/nss_compat/compat-grp.c (internal_setgrent): Likewise.
12035 * nis/nss_compat/compat-initgroups.c (nss_setgrent, nss_endgrent):
12037 (init_nss_interface): Remove initialization of these variables.
12039 2006-05-18 Ulrich Drepper <drepper@redhat.com>
12041 * nis/nis_call.c (rec_dirsearch): Little optimization: pull
12042 nis_free_directory forward to avoid duplication.
12044 2006-05-17 Ulrich Drepper <drepper@redhat.com>
12046 * nis/nis_call.c (rec_dirsearch): Handle __nis_finddirectory and
12047 rec_dirsearch returning NULL.
12048 (first_shoot): Handle __nis_finddirectory returning NULL.
12049 (__nisfind_server): Fix leak when rec_dirsearch returns NULL.
12051 * sysdeps/unix/sysv/linux/sys/inotify.h: Define IN_CLOSE, IN_MOVE,
12052 IN_ONLYDIR, IN_DONT_FOLLOW, and IN_MASK_ADD.
12054 2006-05-17 Jakub Jelinek <jakub@redhat.com>
12056 * sunrpc/key_call.c (getkeyserv_handle): Call auth_destroy if
12059 2006-05-15 Ulrich Drepper <drepper@redhat.com>
12061 * include/rpc/pmap_prot.h: Mark all functions as hidden.
12063 * nscd/nscd_initgroups.c: Mark __gr_map_handle as hidden.
12064 * nscd/nscd_getgr_r.c: Likewise.
12066 * include/rpc/pmap_rmt.h: Mark all functions as hidden.
12068 * nscd/nscd_getai.c (__hst_map_handle): Mark as hidden.
12069 * nscd/nscd_gethst_r.c (__hst_map_handle): Likewise.
12071 * stdlib/longlong.h (__clz_tab): Mark as hidden.
12073 * iconv/gconv_int.h: Mark __gconv_lock as hidden.
12075 * include/rpc/key_prot.h: Mark all _internal functions as hidden.
12077 * include/rpc/auth.h: Mark xdr_des_block_internal and
12078 xdr_opaque_auth_internal as hidden.
12080 * sysdeps/unix/sysv/linux/getdents.c: Mark __have_no_getdents64 as
12083 * include/rpc/xdr.h: Mark all _internal functions as hidden.
12085 * misc/getusershell.c (okshells): Don't use static initializers,
12088 * stdlib/fmtmsg.c (keywords): Change type of len element to
12089 uint32_t to not waste space on 64bit machines.
12091 * locale/setlocale.c: Change _nl_category_names into a string.
12092 Add new _nl_category_name_idxs. Change all users.
12093 * locale/localeinfo.h: Adjust declaration of _nl_category_names.
12094 Declare _nl_category_name_idxs.
12095 * locale/findlocale.c: Adjust for _nl_category_names change.
12096 * locale/loadlocale.c: Likewise.
12097 * locale/newlocale.c: Likewise.
12098 * intl/dcigettext.c: Likewise.
12100 * iconv/gconv_conf.c (add_alias): Move actual alias handling to...
12101 (add_alias2): ...here. New function.
12102 (__gconv_read_conf): Simplify builtin alias handling.
12103 (builtin_aliases): Convert to string to avoid relocations.
12104 * iconv/gconv_builtin.h: Add comment about correct formatting.
12106 2006-05-15 Jakub Jelinek <jakub@redhat.com>
12108 * resolv/res_debug.c (loc_ntoa): Make error const.
12110 2006-05-14 Andreas Schwab <schwab@suse.de>
12112 * math/complex.h [__LDBL_COMPAT]: Use __REDIRECT_NTH.
12114 2006-05-12 Jakub Jelinek <jakub@redhat.com>
12116 * sysdeps/unix/sysv/linux/sched_getaffinity.c: Include sys/param.h.
12117 (__sched_getaffinity_new): Don't crash if cpusetsize is smaller than
12118 sizeof (cpu_set_t).
12120 2006-05-11 Ulrich Drepper <drepper@redhat.com>
12122 * resolv/res_debug.c (loc_ntoa): Define error as array, not pointer.
12124 * include/arpa/nameser.h: Declare _ns_flagdata as hidden.
12126 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_master.
12127 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_master.
12129 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypbind_resp.
12130 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypbind_resp.
12132 * nis/nis_xdr.c: Add libnsl_hidden_def for xdr_cback_data.
12133 * include/rpcsvc/nis_callback.h: Add libnsl_hidden_proto for
12136 * nis/ypupdate_xdr.c: Add libnsl_hidden_def for xdr_ypupdate_args.
12137 * include/rpcsvc/ypupd.h: Add libnsl_hidden_proto for
12140 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_order.
12141 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_order.
12143 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_maplist.
12144 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_maplist.
12146 * nis/nis_xdr.c: Add libnsl_hidden_def for xdr_obj_p.
12147 * include/rpcsvc/nis_callback.h: New file.
12149 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_val.
12150 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_val.
12152 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypreq_nokey.
12153 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypreq_nokey.
12155 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypmaplist.
12156 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypmaplist.
12158 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypreq_nokey.
12159 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypreq_nokey.
12161 * nis/ypupdate_xdr.c: Add libnsl_hidden_def for xdr_ypdelete_args.
12162 * include/rpcsvc/ypupd.h: Add libnsl_hidden_proto for
12165 * nis/nis_xdr.h: Mark all functions as hidden. Remove
12166 __BEGIN_DECLS and __END_DECLS, the header is not installed.
12168 * nis/nis_error.c: Remove table of strings. Use position
12169 independent mechanism.
12170 * nis/nis_error.h: New file.
12172 2006-05-11 Jakub Jelinek <jakub@redhat.com>
12174 * locale/programs/ld-time.c (time_finish): If wide era name or
12175 format aren't provided, set both wname and wformat to L"".
12177 2006-05-10 Ulrich Drepper <drepper@redhat.com>
12179 * sysdeps/unix/sysv/linux/tcgetattr.c (__tcgetattr): Only store
12180 results if the call was succesful.
12182 * nis/nss-nis.h: Mark __yperr2nss_tab and __yperr2nss_count as hidden.
12184 * nis/nss-nisplus.h: Mark __niserr2nss_tab and __niserr2nss_count
12187 2006-05-10 Jakub Jelinek <jakub@redhat.com>
12189 * misc/sys/queue.h: Remove uses of all QUEUEDEBUG_* macros.
12191 2006-05-10 Ulrich Drepper <drepper@redhat.com>
12193 * posix/wordexp.c (parse_glob): No need to check ifs for NULL, the
12194 caller makes sure this is not the case.
12195 (wordexp): Simplify ifs_white creation. [Coverity CID 231]
12197 2006-05-09 Ulrich Drepper <drepper@redhat.com>
12199 * posix/wordexp.c: Remove numerous NULL pointer tests before FREE
12202 * io/ftw.c (open_dir_stream): Return right away if REALLOC fails.
12203 [Coverity CID 229, 230]
12205 * argp/argp-help.c (hol_entry_help): Handle STATE==NULL in ARG and
12207 (hol_help): Likewise. [Coverity CID 226, 227]
12209 * string/argz-replace.c (__argz_replace): Unconditionally call
12210 free on SRC. [Coverity CID 225]
12212 * nis/nis_creategroup.c (nis_creategroup): No need to duplicate
12213 the return value of __nis_default_owner and __nis_default_group,
12214 it has been especially allocated. [Coverity CID 224]
12216 * nis/nis_defaults.c (searchXYX): New functions. Used by both
12217 searchgroup and searchowner. Significantly simplified.
12218 (__nis_default_owner): Remove duplication. Do not locally copy the
12219 string before duplicating it.
12220 (__nis_default_group): Likewise.
12222 * nis/nis_lookup.c (nis_lookup): After calling nis_free_directory,
12223 we must clear the variable before calling __nisfind_server.
12225 * nis/nis_lookup.c (nis_lookup): Always free memory allocated with
12226 nis_getnames. [Coverity CID 223]
12228 * locale/programs/locfile.c (locfile_read): Use alloca instead of
12229 xmalloc to allocate local repertoire name. [Coverity CID 222]
12231 * iconv/iconv_charmap.c (use_to_charmap): No need to dynamically
12232 allocate memory for the input to add_bytes. [Coverity CID 221]
12234 * posix/wordexp.c (w_addword): Free word if realloc fails and it
12235 was allocated here. [Coverity CID 219, 220]
12237 * posix/getconf.c (print_all): Free confstr data after printing.
12240 * sysdeps/posix/getaddrinfo.c (gaih_inet): Free canon string if
12241 list allocation fails. [Coverity CID 215]
12243 * nss/nsswitch.c (__nss_configure_lookup): Fix loop end condition.
12246 * argp/argp-help.c (hol_entry_cmp): Don't call canon_doc_option if
12247 string is NULL. [Coverity CID 212]
12248 * argp/Makefile: Add rules to build and run bug-argp1.
12249 * argp/bug-argp1.c: New file.
12251 * io/ftw.c (ftw_dir): Use __rawmemchr instead of strchr to find
12253 * stdlib/canonicalize.c (__realpath): Likewise.
12255 * locale/programs/ld-time.c (time_finish): Don't dereference NULL
12256 pointer. [Coverity CID 206]
12258 * elf/dl-dst.h (DL_DST_REQUIRED): Be prepared for missing link map
12259 in statically linked code.
12260 * elf/dl-load.c (_dl_dst_substitute): When replacing ORIGIN in
12261 statically built code, be prepared to have no link map.
12264 * argp/argp-help.c (fill_in_uparams): Handle STATE==NULL in
12265 dgettext calls. [Coverity CID 204]
12267 * argp/argp-help.c (struct uparams): Remove valid member. Change
12269 (uparam_names): Reduce size. Avoid relative relocations.
12270 Moved to read-only segment.
12271 (fill_in_uparams): Update for new layout.
12273 * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs): Parameter can be
12274 assumed to always be != NULL. [Coverity CID 202]
12276 * argp/argp-help.c (hol_entry_help): Remove some dead code
12277 [Coverity CID 200].
12279 * nis/nss_nis/nis-service.c (_nss_nis_getservbyport_r): Optimize
12280 away a few more unconditional yperr2nss calls.
12281 (_nss_nis_getservbyname_r): Likewise.
12283 2006-05-06 Ulrich Drepper <drepper@redhat.com>
12285 * sysdeps/generic/ldsodefs.h: Remove support for non-core
12288 * sysdeps/unix/sysv/linux/check_pf.c (make_request): Make sure
12289 that unused memory passed to sendto is nevertheless initialized.
12292 * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Avoid
12293 possibly unaligned memory accesses.
12295 * include/arpa/nameser.h: Also optimize NS_PUT16 and NS_PUT32.
12296 * resolv/res_mkquery.c: Use NS_PUT16 and NS_PUT32 instead of __putshort
12297 and __putlong respectively. Correct buffer overflow check for
12300 * resolv/res_send.c (send_vc): Use ns_put16 instead of putshort.
12302 * resolv/res_send.c (res_queriesmatch): Fix typo in comment.
12303 (send_dg): Rewrite error handling to be more compact and avoid
12304 double recomputation of timeouts. Pass MSG_NOSIGNAL to send.
12306 * include/arpa/nameser.h: Add optimizations for NS_GET16 and NS_GET32.
12308 * resolv/res_send.c (res_nameinquery): Use NS_GET16 directly
12309 instead of ns_get16.
12310 (res_queriesmatch): Likewise. Minor optimization.
12313 * resolv/res_query.c (__libc_res_nquery): If answerp != NULL,
12314 __libc_res_nsend might reallocate the buffer for the answer. In
12315 this case we have to reload the HP pointer.
12317 2006-05-05 Ulrich Drepper <drepper@redhat.com>
12319 * stdio-common/vfscanf.c (memory_error): Remove definition. Add
12320 some branch prediction hints.
12322 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Define SPLICE_F_*.
12323 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
12324 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
12325 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
12326 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
12327 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
12328 * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
12329 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
12331 2006-05-05 Martin Schwidefsky <schwidefsky@de.ibm.com>
12333 * sysdeps/s390/s390-32/elf/start.S: Replace pc relative relocation
12334 by a GOT relocation to make Scrt1.o position independent.
12335 * sysdeps/s390/s390-64/elf/start.S: Likewise.
12337 * sysdeps/unix/sysv/linux/s390/s390-32/syscall.S: Add support for
12338 six system call parameters.
12339 * sysdeps/unix/sysv/linux/s390/s390-64/syscall.S: Likewise.
12341 2006-05-05 Ulrich Drepper <drepper@redhat.com>
12343 * sunrpc/svcauth_des.c (cache_init): Use calloc instead of
12346 * sunrpc/svc_udp.c (BZERO): Remove definition.
12348 (svc_enablecache): Use CALLOC instead of ALLOC&BZERO.
12350 * sunrpc/des_impl.c: Remove ALT_ECB support. We never used it.
12351 (des_SPtrans): Use uint32_t type.
12352 (des_skb): Likewise.
12354 * sunrpc/xdr_ref.c (xdr_reference): Use calloc instead of malloc&bzero.
12356 2006-05-05 Jakub Jelinek <jakub@redhat.com>
12359 * stdio-common/tst-printf.sh: Adjust for tst-printf.c change even
12362 2006-05-05 Ulrich Drepper <drepper@redhat.com>
12364 * locale/programs/ld-address.c (address_finish): Fix one more
12365 place where the iso639 array might be accessed beyond the limits.
12367 2006-05-04 Ulrich Drepper <drepper@redhat.com>
12369 * nis/nis_table.c (nis_list): Avoid clearing res twice before
12370 filling it for the first time.
12372 * nis/nis_table.c (get_tablepath): Renamed from __get_tablepath.
12373 Adjust all callers.
12374 Free res object content before returning.
12376 * sunrpc/xdr_array.c (xdr_array): Use calloc instead of malloc&bzero.
12378 * sunrpc/key_call.c (__rpc_thread_key_cleanup): Also free
12381 * sunrpc/rpc_thread.c (__rpc_thread_destroy): Don't skip entire
12382 cleanup for initial thread, just the free call on TVP.
12384 * nscd/gai.c (__getline): Define.
12387 See ChangeLog.16 for earlier changes.