]> git.ipfire.org Git - thirdparty/glibc.git/blame - ChangeLog
Make include/unistd.h suitable for C++ test cases.
[thirdparty/glibc.git] / ChangeLog
CommitLineData
802fe9a1
UD
12009-07-23 Ulrich Drepper <drepper@redhat.com>
2
30a2dfd5
DS
3 [BZ #10416]
4 * include/unistd.h: Make header file suitable for C++ test cases.
5 Patch by Duncan Simpson <dps@simpson.demon.co.uk>.
6
9b6bf8a3
UD
7 * sysdeps/unix/sysv/linux/i386/makecontext.S: Ensure we preserve the
8 stack alignment in the exit code.
9
077e7700
UD
10 * elf/dl-lookup.c (dl_lookup_x): The hashval for unique symbol can
11 potentially be zero.
12
802fe9a1
UD
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
18 a few types.
19 * sysdeps/generic/ldsodefs.h (struct rtld_global): The map element in
20 the unique symbol hash table should not be const.
21
ae612b04
UD
222009-07-21 Ulrich Drepper <drepper@redhat.com>
23
24 * sysdeps/x86_64/multiarch/strstr.c: Minor cleanups. Remove
25 unnecesary variables. Comment fixes.
26
a8f895eb
UD
272009-07-20 Ulrich Drepper <drepper@redhat.com>
28
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.
32
2b7a8664
L
332009-07-20 H.J. Lu <hongjiu.lu@intel.com>
34
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 ..
40 (STRSTR): ...this.
41 * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
42 strstr-c strcasestr-c
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.
49
8a449450
UD
502009-07-20 Ulrich Drepper <drepper@redhat.com>
51
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
57 field.
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.
62
63601ccd
UD
632009-07-17 Ulrich Drepper <drepper@redhat.com>
64
65 * sysdeps/generic/sysdep.h: Define cfi_personality, cfi_lsda,
66 CFI_PERSONALITY, CFI_LSDA, and DW_EH_PE_* constants.
67
1c0ab5bd
UD
682009-07-16 Ulrich Drepper <drepper@redhat.com>
69
70 [BZ #10360]
71 * resolv/res-mkquery.c (__res_nopt): If anslen is > 0xffff store
72 0xffff in the EDNS0 record.
73
bec466d9 742009-07-16 Ulrich Drepper <drepper@redhat.com>
50158f95
AS
75
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>.
80
137028b4 812009-07-16 Ulrich Drepper <drepper@redhat.com>
bec466d9
UD
82 Jakub Jelinek <jakub@redhat.com>
83
84 * malloc/malloc.c [ATOMIC_FASTBINS] (_int_free): Make check for
85 corruption thread-safe.
86
bea0ac1d
JJ
872009-07-13 Jakub Jelinek <jakub@redhat.com>
88
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.
99
c8027cce
UD
1002009-07-16 Ulrich Drepper <drepper@redhat.com>
101
55c4ce68
UD
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.
105
c8027cce
UD
106 * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Optimize
107 restoring of ymm registers a bit.
108
e26c9b84
L
1092009-07-15 H.J. Lu <hongjiu.lu@intel.com>
110
111 * sysdeps/x86_64/memcmp.S: New file.
112
d7bd7a8a 1132009-07-15 Ulrich Drepper <drepper@redhat.com>
59cbcac0 114
d7bd7a8a
UD
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.
59cbcac0 118
b0ecde3a
L
1192009-07-07 H.J. Lu <hongjiu.lu@intel.com>
120
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
132 link-defines.sym.
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
141 <link-defines.h>.
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
150 HAVE_AVX_SUPPORT.
151 * sysdeps/x86_64/link-defines.sym: New file.
152
339717d5
UD
1532009-07-10 Ulrich Drepper <drepper@redhat.com>
154
786b74f4
UD
155 * elf/do-lookup.h: Removed after folding content into...
156 * elf/dl-lookup.c: ...here.
157
339717d5
UD
158 * sysdeps/unix/sysv/linux/sys/epoll.h: Fix comment.
159
415ac3df
UD
1602009-07-09 Ulrich Drepper <drepper@redhat.com>
161
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
167 change.
168 * sysdeps/generic/ldsodefs.h (struct rtld_global): Add definitions for
169 unique symbol table.
170 * elf/rtld.c (rtld_global): Initialize lock of unique symbol hash table
171 for first namespace.
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.
181
eba0994e
UD
1822009-07-07 Ulrich Drepper <drepper@redhat.com>
183
b4f55afd
UD
184 * elf/elf.h (STB_GNU_UNIQUE): Define.
185
eba0994e
UD
186 * elf/dl-misc.c (_dl_higher_prime_number): New function. Moved here
187 from...
188 * include/inline-hashtab.h: ...here.
189 (htab_expand): Adjust for renamed function. Correct memory handling.
190
a38862a5
UD
1912009-07-06 Ulrich Drepper <drepper@redhat.com>
192
415ac3df 193 * elf/do-lookup.h (do_lookup_x): Optimize test for valid symbol types.
a38862a5 194
2123d581
AS
1952009-07-03 Andreas Schwab <aschwab@redhat.com>
196
197 * sysdeps/powerpc/sysdep.h (PPC_FEATURE_ARCH_2_06): Fix value.
198 (PPC_FEATURE_HAS_VSX): Likewise.
199
d6485c98
UD
2002009-07-03 Ulrich Drepper <drepper@redhat.com>
201
cea43295
UD
202 * sysdeps/x86_64/multiarch/strcspn-c.c: Minor cleanups.
203 * sysdeps/x86_64/multiarch/strspn-c.c: Likewise.
204
d6485c98
UD
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.
210
06e51c8f
L
2112009-07-02 H.J. Lu <hongjiu.lu@intel.com>
212
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
217 HAVE_SSE4_SUPPORT.
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.
226
ab6a873f
L
2272009-06-30 H.J. Lu <hongjiu.lu@intel.com>
228
167d5ed5
L
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
240 and restore xmm6.
241
ab6a873f
L
242 * string/stpncpy.c (STPNCPY): New. Defined if not defined.
243 (__stpncpy): Renamed to ...
244 (STPNCPY): This.
245 (stpncpy): Create alias only if STPNCPY is not defined.
246 * string/strncpy.c (STRNCPY): New. Defined to strncpy if not
247 defined.
248 (strncpy): Renamed to ...
249 (STRNCPY): This.
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.
258
6cbbaa50
UD
2592009-07-02 Ulrich Drepper <drepper@redhat.com>
260
261 * malloc/malloc.c [ATOMIC_FASTBINS] (_int_free): Add full barrier when
262 adding to fast bin list.
263
29ba9812
UD
2642009-07-01 Ulrich Drepper <drepper@redhat.com>
265
2fd0cd8b
UD
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):
269 Likewise.
270
29ba9812 271 * nss/nss_files/files-network.c (netbyaddr): If type is AF_UNSPEC,
5cd1f906 272 recognize all types.
29ba9812 273 * nss/getent.c (networks_keys): Pass AF_UNSPEC instead of AF_UNIX
5cd1f906
UD
274 to getnetbyaddr. Fix network parameter to getnetbyaddr. It must
275 be in host byte order.
29ba9812 276
01812913
L
2772009-06-26 H.J. Lu <hongjiu.lu@intel.com>
278
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
282 family and model.
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.
286
44d20bca
UD
2872009-06-26 Ulrich Drepper <drepper@redhat.com>
288
289 * resolv/resolv.h: Define RES_SNGLKUPREOP.
290 * resolv/res_init.c (res_setoptions): Recognize single-request-reopen
291 option.
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
296 request.
297
80a98966
AS
2982009-06-25 Andreas Schwab <aschwab@redhat.com>
299
300 * sysdeps/powerpc/powerpc32/____longjmp_chk.S (LOAD_ARG): Define.
301 (CHECK_SP): Use it.
54c99aab 302
3f241d75
AS
3032009-06-24 Andreas Schwab <aschwab@redhat.com>
304
305 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.S: Fix cfa offset
306 for saved registers.
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.
310
7a7c2c24
AS
3112009-06-23 Andreas Schwab <aschwab@redhat.com>
312
313 * time/tzfile.c (__tzfile_read): Don't use an empty TZ string.
314
20a3ce85
UD
3152009-06-22 Ulrich Drepper <drepper@redhat.com>
316
58d60030
UD
317 * po/id.po: Update from translation team.
318
20a3ce85
UD
319 * po/bg.po: Update from translation team.
320
772f4e6a
L
3212009-06-22 H.J. Lu <hongjiu.lu@intel.com>
322
323 * string/strncmp.c (STRNCMP): New. Defined to strncmp if not
324 defined.
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.
332
3c30afc8
L
3332009-06-19 H.J. Lu <hongjiu.lu@intel.com>
334
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
340 ifuncmain7static.c.
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
372 ifuncmain6pie.out.
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.
390
ccab6d8f
UD
3912009-06-20 Ulrich Drepper <drepper@redhat.com>
392
393 [BZ #10085]
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
410 callback.
411
d0a2af71
UD
4122009-06-18 Ulrich Drepper <drepper@redhat.com>
413
f6887a0d
UD
414 * malloc/malloc.c (_int_malloc): Add some consistency checks.
415 (_int_free): Likewise.
416
d0a2af71
UD
417 * sysdeps/unix/sysv/linux/bits/socket.h: Define PF_IEEE802154 and
418 AF_IEEE802154.
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.
422
423 * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Add missing definitions
424 relative to generic Linux version.
425
d8366b09
L
4262009-06-17 H.J. Lu <hongjiu.lu@intel.com>
427
428 * elf/Makefile ($(objpfx)ifuncmain1pie): Use $(+link-pie).
429 ($(objpfx)ifuncmain1vispie): Likewise.
430
f051ddfe
UD
4312009-06-16 Ulrich Drepper <drepper@redhat.com>
432
433 * login/Makefile: Build pt_chown as PIE.
434
f60ddf9b
AS
4352009-06-15 Andreas Schwab <aschwab@redhat.com>
436
437 * debug/xtrace.sh (do_help): Don't treat bug reporting message as
438 a format string.
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.
445
f793b624
UD
4462009-06-16 Ulrich Drepper <drepper@redhat.com>
447
8a909c64
UD
448 * login/programs/pt_chown.c: Use libcap to drop privileges other than
449 those needed.
f793b624 450 * login/Makefile: If necessary link pt_chown with -lcap.
8a909c64
UD
451 * sysdeps/generic/pty-private.h: Define FAIL_ENOMEM.
452 * sysdeps/unix/grantpt.c: Handle FAIL_ENOMEM.
f793b624 453
fab8238d
JJ
4542009-06-16 Jakub Jelinek <jakub@redhat.com>
455
456 * sysdeps/x86_64/memchr.S (memchr): Use unsigned instead of signed
457 comparisons.
458 * string/test-memchr.c (do_random_tests): Test very large lengths
459 as well.
460
435aa54b
L
4612009-06-02 H.J. Lu <hongjiu.lu@intel.com>
462
463 * Makeconfig (+link-pie): Define.
464 (+prectorS): Define.
465 (+postctorS): Define.
466 * elf/Makefile ($(objpfx)tst-pie1): Use $(+link-pie).
467 * nscd/Makefile ($(objpfx)nscd): Likewise.
468
25bfbb9e
RA
4692009-04-22 Ryan S. Arnold <rsa@us.ibm.com>
470
471 [BZ #10107]
472 * sysdeps/powerpc/powerpc32/power6/memcpy.S (memcpy): Replace cmpldi
473 with cmplwi.
474 * sysdeps/powerpc/powerpc32/power6/memset.S (memset): Likewise.
475
b34de9ea
UD
4762009-06-16 Ulrich Drepper <drepper@redhat.com>
477
478 * sysdeps/unix/sysv/linux/grantpt.c: Remove file after folding changes
479 into ...
480 * sysdeps/unix/grantpt.c: ...here.
481
a468a1d4
UD
4822009-06-15 Ulrich Drepper <drepper@redhat.com>
483
837dea7c
UD
484 * sysdeps/unix/sysv/linux/grantpt.c (grantpt): Only call chown and
485 chmod if it is necessary.
486
292e3abe 487 [BZ #10166]
eae3208e
UD
488 * sysdeps/unix/sysv/linux/grantpt.c: Remove shortcut which was used
489 when the slave device is in devpts or devfs.
292e3abe 490
395a37e3
UD
491 [BZ #10183]
492 * posix/tst-cpucount.c: Don't try more than CPU_SETSIZE bits.
493
7ed520bd
AE
494 [BZ #10195]
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>.
498
c518f9a4 499 [BZ #10207]
f6887a0d 500 * nss/getent.c: Add support for printing gshadow data.
c518f9a4 501
233a182b
JL
502 [BZ #10203]
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>.
506
4155d926
BD
507 [BZ #10196]
508 * libio/tst-fgetwc.c (do_test): Use de_DE.UTF-8 as locale name.
eae3208e 509 * libio/Makefile: Run tst-fgetwc with necessary envvar.
4155d926
BD
510 Patch by Bruce Dubbs <bdubbs@linuxfromscratch.org>.
511
48dcd0ba
UD
512 [BZ #10217]
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.
522
6355c997
UD
523 * time/tzfile.c (__tzfile_read): Correct computation of tzspec_len.
524
29143408
AH
525 [BZ #10211]
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>.
529
5fb55a68
UD
530 * timezone/tzselect.ksh: Update from tzcode2009i.
531 * timezone/zdump.c: Likewise.
532 * timezone/zic.c: Likewise.
533
a468a1d4
UD
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.
553
02125962
JJ
5542009-06-15 Jakub Jelinek <jakub@redhat.com>
555
556 * elf/dl-lookup.c (_dl_debug_bindings): When resolving to
557 STT_GNU_IFUNC symbol or in 8 into type_class.
558
559 * sysdeps/i386/dl-irel.h (elf_irel): Use Elf32_Addr type
560 instead of Elf64_Addr.
561
eb0b6cb6
UD
5622009-06-14 Ulrich Drepper <drepper@redhat.com>
563
53c06891
UD
564 * po/sv.po: Update from translation team.
565
eb0b6cb6
UD
566 [BZ #10229]
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
570 the C version.
571
bfdb73e1
UD
5722009-06-12 Ulrich Drepper <drepper@redhat.com>
573
574 * Versions.def: Add GLIBC_2.11 for libpthread.
575
310647e9
UD
5762009-06-11 Ulrich Drepper <drepper@redhat.com>
577
578 * resolv/res_send.c (send_dg): Remember we switched to
579 single-request mode.
580
d360a0da
UD
5812009-06-09 Ulrich Drepper <drepper@redhat.com>
582
88ea382f
D
583 * dlfcn/dlfcn.h: Remove comma at end of enum.
584 Patch by J.H.M. Dassen <rdassen@redhat.com>.
585
d360a0da
UD
586 * libio/fileops.c (_IO_new_file_fopen): Don't prematurely stop
587 parsing mode string.
588
443caceb
UD
5892009-06-05 Ulrich Drepper <drepper@redhat.com>
590
b77c9323
UD
591 * sysdeps/x86_64/rawmemchr.S: Minor optimization.
592
593 * sysdeps/x86_64/multiarch/rawmemchr.S: New file.
594
3ab2d57a
UD
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
599 content.
600
443caceb
UD
601 * csu/elf-init.c: Only compile in IFUNC functionality if USE_MULTIARCH
602 is defined.
603
747785f2
UD
6042009-06-04 Ulrich Drepper <drepper@redhat.com>
605
2f3f7b9d 606 * sysdeps/x86_64/strlen.S: Minor optimizations.
747785f2 607
2f083d75
L
6082009-06-02 H.J. Lu <hongjiu.lu@intel.com>
609
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,
620 ifuncmain4picstatic.
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.
653
fbb04b35
UD
6542009-06-03 Ulrich Drepper <drepper@redhat.com>
655
656 * elf/dl-sysdep.c (_dl_show_auxv): Terminate correct string.
657
3d5243d4
UD
6582009-06-02 Ulrich Drepper <drepper@redhat.com>
659
660 [BZ #10221]
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.
666
b7629ee3
UD
6672009-06-01 Ulrich Drepper <drepper@redhat.com>
668
fd96f062
UD
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.
672
b7629ee3
UD
673 * sysdeps/i386/dl-irel.h (elf_irel): Use __libc_fatal instead of just
674 _exit.
675 * sysdeps/x86_64/dl-irel.h (elf_irela): Likewise.
676
8ea23729
UD
6772009-05-31 Ulrich Drepper <drepper@redhat.com>
678
679 * sysdeps/x86_64/multiarch/sched_cpucount.c: Also use optimized code
680 for !SHARED.
681
74414708
UD
6822009-05-29 H.J. Lu <hongjiu.lu@intel.com>
683
684 * csu/elf-init.c: Include <link.h> and <dl-irel.h> if LIBC_NONSHARED
685 is not defined.
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
706 R_X86_64_IRELATIVE.
707 (elf_machine_lazy_rel): Handle R_X86_64_IRELATIVE.
708
963cb6fc
UD
7092009-05-31 Ulrich Drepper <drepper@redhat.com>
710
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
722 INTEL_CPUID_INDEX_1.
723 * sysdeps/x86_64/multiarch/sched_cpucount.c: Adjust for HAS_POPCOUNT
724 change.
725
c16a054d
AS
7262009-05-30 Andreas Schwab <schwab@linux-m68k.org>
727
728 * configure.in: Move AC_CANONICAL_HOST before first use of $host
729 and $build.
c16a054d 730
7f3394bd
UD
7312009-05-29 Jakub Jelinek <jakub@redhat.com>
732
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.
741
b8bb339f
UD
742 * sysdeps/s390/s390-32/__longjmp.c (__longjmp): If CHECK_SP is
743 defined, use it.
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.
747
1de0c161
UD
7482009-05-29 Ulrich Drepper <drepper@redhat.com>
749
750 * sysdeps/x86_64/cacheinfo.c: Compact intel_02_known array. Adjust
751 code accessing it.
752 * sysdeps/unix/sysv/linux/i386/sysconf.c: Likewise.
753
0323b051
AS
7542009-05-22 Andreas Schwab <schwab@linux-m68k.org>
755
38ae768d
AS
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.
760
0323b051
AS
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
764 defined.
765 * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
766 * sysdeps/powerpc/powerpc64/__longjmp-common.S: Likewise.
767
1e1dc4e8
JJ
7682009-05-22 Jakub Jelinek <jakub@redhat.com>
769
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
776 define.
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.
780
10495c0b
UD
7812009-05-20 H.J. Lu <hongjiu.lu@intel.com>
782
783 * sysdeps/ia64/configure.in: New file.
784
fa64b7f7
UD
7852009-05-21 H.J. Lu <hongjiu.lu@intel.com>
786
787 [BZ #10162]
788 * sysdeps/ia64/memchr.S: Use speculative load.
789
d2812fc6
L
790 * sysdeps/unix/sysv/linux/ia64/____longjmp_chk.S: New file.
791 * sysdeps/unix/sysv/linux/ia64/__longjmp.S: If CHECK_RSP is defined,
792 use it.
793
e7535de7
L
794 * sysdeps/i386/__longjmp.S: Add .text.
795 * sysdeps/x86_64/__longjmp.S: Likewise.
796
3533b1a6
UD
7972009-05-21 Ulrich Drepper <drepper@redhat.com>
798
799 * sysdeps/unix/sysv/linux/kernel-features.h: Don't define
800 __ASSUME_ACCEPT4 for IA-64.
801
a2292378
JJ
8022009-05-21 Jakub Jelinek <jakub@redhat.com>
803
d14eda93
JJ
804 * sysdeps/unix/sysv/linux/accept4.c (__NR_accept4): Don't define.
805
a2292378
JJ
806 * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_paccept): Remove.
807 (SOCKOP_accept4): Define.
808
d4ab2f2a
UD
8092009-05-20 Ulrich Drepper <drepper@redhat.com>
810
ab09b221
UD
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.
903
d4ab2f2a
UD
904 * po/da.po: Update from translation team.
905
04733592
KK
9062009-05-18 Kaz Kojima <kkojima@rr.iij4u.or.jp>
907
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.
a2292378 911
5078fff6
JJ
9122009-05-18 Jakub Jelinek <jakub@redhat.com>
913 Ulrich Drepper <drepper@redhat.com>
914
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).
919
95410b7b
UD
9202009-05-16 Ulrich Drepper <drepper@redhat.com>
921
c457bc13
UD
922 * posix/sys/wait.h: Fix typos. Pretty printing.
923 * stdlib/stdlib.h: Likewise. Correct comments.
8f0d3f49 924
a64039b0
UD
925 [BZ #10159]
926 * stdlib/stdlib.h (__WAIT_INT): Match the definition in <sys/wait.h>.
927
95410b7b
UD
928 * nscd/nscd_helper.c (__nscd_cache_search): Fix exit condition in last
929 patch.
930
831a4049
UD
9312009-05-15 Ulrich Drepper <drepper@redhat.com>
932
831a4049
UD
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.
936
6dd78596
UD
9372009-05-14 Jakub Jelinek <jakub@redhat.com>
938
cfe1fc10
JJ
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.
951
6dd78596
UD
952 * sysdeps/unix/sysv/linux/i386/fallocate64.c (__fallocate64_l64):
953 Rename ...
954 (fallocate64): ... to this.
955 * sysdeps/unix/sysv/linux/fallocate64.c (__fallocate64_l64):
956 Rename ...
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.
967
6dd78596
UD
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
971 nscd_avc_destroy.
972
cfe1fc10
JJ
9732009-05-12 Jakub Jelinek <jakub@redhat.com>
974
975 * include/atomic.h: Formatting.
976 (catomic_compare_and_exchange_val_acq): Don't define if already
977 defined by bits/atomic.h.
978
774f5a30
UD
9792009-05-15 Ulrich Drepper <drepper@redhat.com>
980
bbc5d74d
UD
981 * math/libm-test.inc (expm1_test): Add test for range error.
982
b50f8e42
UD
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
994 of the aliases.
995 * setjmp/setjmp.h: Include <bits/setjmp2.h> if _FORTIFY_SOURCE is
996 defined.
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.
1001
dc50b613
UD
1002 * version.h: Bump for 2.11 development.
1003
774f5a30
UD
1004 * elf/check-execstack.c: New file.
1005 * elf/Makefile: Add rules to build and run check-execstack.
1006
deb84c43
UD
10072009-05-10 Ulrich Drepper <drepper@redhat.com>
1008
1009 * version.h (VERSION): Bump to 2.10.1.
1010
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.
1017
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):
1021 Likewise.
1022
deb318c2
UD
10232009-05-09 Ulrich Drepper <drepper@redhat.com>
1024
1025 * version.h (VERSION): Bump for 2.10 release.
1026 * include/features.h (__GLIBC_MINOR__): Bump to 10.
1027
eb29449a
UD
1028 * Makeconfig: Undo last change. Add asflags-cpu to ASFLAGS in the
1029 same place we add ASFLAGS-config.
1030
cf4f16cc
UD
10312009-05-05 Aurelien Jarno <aurelien@aurel32.net>
1032
1033 [BZ #10128]
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.
1036
23b6b466
UD
10372009-05-06 Ryan S. Arnold <rsa@us.ibm.com>
1038
1039 [BZ #10118]
1040 * Makeconfig (+asflags): New variable based upon ASFLAG or
1041 asflags-cpu.
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
1045 the assembler.
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:
1051 Likewise.
1052 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/setcontext.S:
1053 Likewise.
1054 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/swapcontext.S:
1055 Likewise.
1056
15417de3
UD
10572009-05-09 Jakub Jelinek <jakub@redhat.com>
1058
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.
1062
b5f7c4ca
UD
10632009-05-08 Ulrich Drepper <drepper@redhat.com>
1064
4300afc1
UD
1065 * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_AT_RANDOM.
1066
2221e33e
UD
1067 * sysdeps/x86_64/memchr.S: Handle invalid buffer pointers when
1068 count is zero.
1069
b5f7c4ca
UD
1070 * po/da.po: Update from translation team.
1071
1765abb3
UD
10722009-05-05 Jakub Jelinek <jakub@redhat.com>
1073
1074 * io/sys/stat.h (fstatat64): Guard prototype with __USE_LARGEFILE64,
1075 guard __extern_inline wrapper with __USE_ATFILE instead of __USE_GNU.
2221e33e 1076
b5f7c4ca
UD
10772009-05-05 Ulrich Drepper <drepper@redhat.com>
1078
1079 * sysdeps/unix/sysv/linux/sys/personality.h: Add ADDR_COMPAT_LAYOUT
1080 and READ_IMPLIES_EXEC.
1081
10822009-05-04 Ulrich Drepper <drepper@redhat.com>
1083
1084 * po/da.po: Update from translation team.
1085
667712b8
JJ
10862009-04-29 Jakub Jelinek <jakub@redhat.com>
1087
1088 * sysdeps/unix/sysv/linux/ifaddrs.c: Revert unintended 2008-08-12
1089 comment change.
1090
6284c9f6
UD
10912009-04-27 Jakub Jelinek <jakub@redhat.com>
1092
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.
1099
4ec77f72
UD
11002009-04-26 Ulrich Drepper <drepper@redhat.com>
1101
f0e3c47f
UD
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.
1105
49768bb9
UD
1106 * sysdeps/ieee754/k_standard.c (__kernel_standard): Pole errors in
1107 atanh should set ERANGE.
1108
e49dc847
UD
1109 [BZ #10087]
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>.
1114
1ac03a1e
UD
1115 * nscd/connections.c (send_ro_fd): Define temporary variable to avoid
1116 warning.
1117
6cc8844f
UD
1118 * sysdeps/unix/sysv/linux/dl-osinfo.h (dl_fatal): Remove inline
1119 from definition.
1120
1121 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Don't define
1122 label if it is not used.
1123
1124 * elf/dl-profile.c (_dl_start_profile): Define real-type variant
1125 of gmon_hist_hdr and gmon_hdr structures and use them.
1ac03a1e 1126 * elf/sprof.c: Likewise.
6cc8844f
UD
1127
1128 * elf/dl-load.c (open_verify): Add temporary variable to avoid
1129 warning.
1130
1131 * nscd/nscd_helper.c (get_mapping): Avoid casts to avoid warnings.
1132
1133 * sunrpc/clnt_raw.c (clntraw_private_s): Use union in definition
1134 to avoid cast.
1135
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
1138 to avoid warnings.
1139 (iruserok_af): Use ss_family instead of casts.
1140
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.
1144
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.
1148
218555e9 1149 * inet/inet6_option.c (option_alloc): Add temporary variable to
6cc8844f
UD
1150 avoid warning.
1151
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.
1163
4ec77f72
UD
1164 * nss/nsswitch.c (__nss_lookup_function): En/Decrypt cached
1165 function pointers.
1166
82a1a4da
UD
11672009-04-26 Jakub Jelinek <jakub@redhat.com>
1168
1169 * sysdeps/ieee754/dbl-64/s_tan.c (tan): Fix -Wsequence-point warnings.
1170
db6edfb3
UD
11712009-04-25 Ulrich Drepper <drepper@redhat.com>
1172
27be9b92
UD
1173 * posix/bits/posix1_lim.h: Cleanup namespace a bit.
1174
337c2708
UD
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
1182 ±Inf.
1183
002a604f
UD
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
1187 pole errors.
1188
7095366d
UD
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
1193 x=±Inf or y=0.
1194
0c59a196
UD
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
1209 ±Inf.
1210
4bbf8999
UD
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.
1214
af9f1c48
UD
1215 * stdio-common/stdio_lim.h.in (L_cuserid): Not part of POSIX since
1216 the 2001 revision.
1217
13327042
UD
1218 * libio/tst-widetext.input: Remove surrogates.
1219
c163ee23
UD
1220 * include/features.h: _POSIX_C_SOURCE >= 200112L implies C99.
1221
e971e76d 1222 * sysdeps/ieee754/k_standard.c (__kernel_standard): Pole errors
81068e35 1223 for lgamma should set errno to ERANGE, not EDOM.
e971e76d
UD
1224 * math/libm-test.inc (lgamma_test): Check errno for pole errors.
1225
c2d5bd5b
UD
12262009-04-24 Ulrich Drepper <drepper@redhat.com>
1227
9c32c895
UD
1228 [BZ #10093]
1229 * iconv/gconv_simple.c (BODY for UTF-8 to INTERNAL): Don't accept
1230 UTF-16 surrogates.
1231
c9edc889
UD
1232 * locale/programs/locarchive.c (enlarge_archive): Conserve address
1233 space when temporarily mapping the whole content of the old file.
1234
c2d5bd5b
UD
1235 [BZ #10100]
1236 * misc/hsearch_r.c (hsearch_r): Add back ensurance that hval is
1237 not zero.
1238
f397be12
UD
12392009-04-24 Jakub Jelinek <jakub@redhat.com>
1240
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
1244 two byte chars.
1245
705341a9
UD
12462009-04-24 Ulrich Drepper <drepper@redhat.com>
1247
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.
1258
57d2da1c
UD
12592009-04-23 H.J. Lu <hongjiu.lu@intel.com>
1260
1261 * stdio-common/psiginfo.c: Include <errno.h>.
1262
3d855f75
UD
12632009-04-23 Ulrich Drepper <drepper@redhat.com>
1264
fe12c798
UD
1265 [BZ #9920]
1266 * stdlib/random_r.c (__srandom_r): Change type of word to int32_t
1267 to get consistency between 32 and 64 bit architectures.
1268
3d855f75
UD
1269 [BZ #10052]
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>.
1273
95bf537f
UD
12742009-04-23 Aurelien Jarno <aurelien@aurel32.net>
1275
1276 [BZ #10092]
1277 * sysdeps/unix/sysv/linux/sys/mount.h: Define MNT_DETACH and
1278 MNT_EXPIRE.
1279
7f8a28ef
UD
12802009-04-23 Ulrich Drepper <drepper@redhat.com>
1281
1282 * sysdeps/unix/sysv/linux/preadv.c: The kernel API changed. Adjust.
1283 * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
1284
12852009-04-23 Jakub Jelinek <jakub@redhat.com>
1286
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.
1296
829fea46
UD
12972009-04-23 Ulrich Drepper <drepper@redhat.com>
1298
c7e74e59
UD
1299 * shadow/sgetspent_r.c (__sgetspent_r): Recognize too small buffers.
1300
3b055b47
UD
1301 * shadow/Makefile (tests): Add tst-shadow.
1302 * shadow/tst-shadow.c: New file.
1303
829fea46
UD
1304 [BZ #9955]
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.
1330
debafa10
UD
13312009-04-22 Ulrich Drepper <drepper@redhat.com>
1332
1333 * stdio-common/printf.h: Add missing const to register_printf_modifier.
1334 * stdio-common/reg-modifier.c: Likewise.
1335
13362009-04-22 Andrew Stubbs <ams@codesourcery.com>
1337
1338 * sysdeps/sh/sh4/setjmp.S (__sigsetjmp): Adjust JB_SIZE when there
1339 is no FPU.
1340
0e04c0b5
UD
13412009-04-20 Ulrich Drepper <drepper@redhat.com>
1342
d43f10e7 1343 [BZ #10086]
1c376f5b
UD
1344 * sysdeps/unix/sysv/linux/sys/timex.h: Add definitions from kernel
1345 headers up to 2.6.30.
1346
0e04c0b5
UD
1347 * po/ca.po: Update from translation team.
1348
a245eafd
UD
13492009-04-19 Ulrich Drepper <drepper@redhat.com>
1350
1351 [BZ #10069]
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.
1355
0588a9cb
UD
13562009-04-18 Ulrich Drepper <drepper@redhat.com>
1357
153aa31b
UD
1358 * stdlib/strfmon_l.c (__vstrfmon_l): Don't wrap when computing width.
1359 Numerically stable check for valid width.
1360
59a7162b
UD
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
1364 to be sure.
1365
0588a9cb
UD
1366 * malloc/malloc.c (malloc_info): Output address space information.
1367
17a5b24e
UD
13682009-04-17 Ulrich Drepper <drepper@redhat.com>
1369
da2d2fb6
UD
1370 * malloc/malloc.c (malloc_info): Also output system memory information.
1371
11cad88c
UD
1372 * sysdeps/unix/sysv/linux/kernel-features.h: All supported
1373 architectures have preadv/pwritev in 2.6.30.
1374
571ac26f
UD
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>.
1378
17a5b24e
UD
1379 * malloc/hooks.c (top_check): Force hook value into register.
1380
57ec6442
RM
13812009-04-16 Samuel Thibault <samuel.thibault@ens-lyon.org>
1382
1383 * elf/rtld.c (dl_main): Really call _dl_sysdep_start_cleanup after all
1384 calls to _dl_relocate_object.
1385
df77455c
UD
13862009-04-16 Ulrich Drepper <drepper@redhat.com>
1387
1388 [BZ #9957]
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.
3b055b47 1404 (public_sET_STATe): Pretty printing.
df77455c
UD
1405
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.
1408
733ca93a
JJ
14092009-04-16 Jakub Jelinek <jakub@redhat.com>
1410
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.
1413
d0e81f10
UD
14142009-04-16 Ulrich Drepper <drepper@redhat.com>
1415
1416 * resolv/res_send.c (send_dg): Don't switch into single-request
1417 mode if we already are in it.
1418
6a3d03ff
UD
14192009-04-15 Ulrich Drepper <drepper@redhat.com>
1420
1421 * sysdeps/unix/sysv/linux/getsysstats.c (next_line): Make sure there
1422 are always at least 4 bytes in the returned line.
1423
14242009-04-15 Jakub Jelinek <jakub@redhat.com>
1425
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.
1433
ae650a41
UD
14342009-04-14 Ulrich Drepper <drepper@redhat.com>
1435
1436 * sysdeps/x86_64/mp_clz_tab.c: New file.
1437
353f2107
UD
14382009-03-17 Ryan S. Arnold <rsa@us.ibm.com>
1439 Ulrich Drepper <drepper@redhat.com>
1440
1441 * sysdeps/unix/sysv/linux/fallocate.c: Handle old kernel headers.
1442 * sysdeps/unix/sysv/linux/fallocate64.c: Likewise.
e775ec11 1443 * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c: Likewise.
353f2107 1444
fc0c5705
UD
14452009-03-25 Andrew Stubbs <ams@codesourcery.com>
1446
1447 * sysdeps/sh/libc-tls.c: New file.
1448
1449 * sysdeps/sh/bits/setjmp.h (__jmp_buf): Give name to structure type.
1450
237a8867
RM
14512009-04-14 Roland McGrath <roland@redhat.com>
1452
1453 * elf/elf.h: Add various missing ARM constants, to match binutils.
1454
893a5fd4
UD
14552009-04-14 Ulrich Drepper <drepper@redhat.com>
1456
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.
1465
e42e88ab
JJ
14662009-04-14 Jakub Jelinek <jakub@redhat.com>
1467
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.
1472
b8a3bd82
UD
14732009-04-14 Ulrich Drepper <drepper@redhat.com>
1474
1475 * sysdeps/unix/sysv/linux/kernel-features.h: SH also has
1476 preadv/pwritev.
1477
84aa52d7
UD
14782009-04-13 Ulrich Drepper <drepper@redhat.com>
1479
1480 * sysdeps/x86-64/strrchr.S: New file.
1481
9d26efa9
UD
14822009-04-10 Ulrich Drepper <drepper@redhat.com>
1483
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
1493 declarations.
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
1497 function.
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.
1512
28b2771a
UD
15132009-04-09 Ulrich Drepper <drepper@redhat.com>
1514
f140a0d5
UD
1515 * sysdeps/x86_64/rawmemchr.S: New file.
1516
e9b4d069 1517 * stdio-common/vfprintf.c (vfprintf): Slightly more compact code.
1d498daa 1518 Simplified code and possible copy problem fixed.
e9b4d069 1519
f9fe75e9 1520 * sysdeps/unix/sysv/linux/preadv.c: Avoid prototype for static
24030b0f 1521 function if it is not defined. Add some necessary casts.
f9fe75e9
UD
1522 * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
1523
28b2771a
UD
1524 * sysdeps/unix/sysv/linux/kernel-features.h: SPARC and IA64 also
1525 have preadv/pwritev in 2.6.30.
1526
4c8b8cc3
UD
15272009-04-08 Ulrich Drepper <drepper@redhat.com>
1528
bb066545
UD
1529 * malloc/malloc.c (malloc_info): New function.
1530 * malloc/malloc.h: Declare it.
1531 * malloc/Versions: Export malloc_info for GLIBC_2.10.
1532
0f9c8b48
UD
1533 * sysdeps/unix/sysv/linux/preadv64.c (PREAD): Use __libc_pread64
1534 to avoid PLT slot.
1535
4c8b8cc3
UD
1536 * malloc/malloc.c (_int_realloc): Add parameter with old block
1537 size. Remove duplicated test. Don't handle mmap'ed blocks here.
1538 Adjust all callers.
1539 * malloc/hooks.c (realloc_check): Adjust _int_realloc call.
1540
ddba0f17
UD
15412009-04-07 Ulrich Drepper <drepper@redhat.com>
1542
cd57745b
UD
1543 * sysdeps/x86_64/strchrnul.S: New file.
1544
3db6c9a8 1545 * crypt/Makefile (LDLIBS-crypt.so): Use this variable instead of
cd57745b 1546 depending libcrypt on -lfreebl3.
3db6c9a8 1547
1a2ec17b
UD
1548 * sysdeps/unix/sysv/linux/kernel-features.h: Power also has
1549 preadv/pwritev in 2.6.30.
1550
bb066545 1551 * resolv/nss_dns/dns-host.c (getanswer_r): Use strcasecmp
c6807d38 1552 instead of __strcasecmp.
c6807d38 1553
ddba0f17 1554 * string/stratcliff.c (do_test): Add memchr tests..
481f9eca 1555 * wcsmbs/wcsatcliff.c (MEMCHR): Define.
ddba0f17
UD
1556 * sysdeps/x86_64/memchr.S: Fix handling of end of buffer after
1557 first read quad word.
1558
ae061910
UD
15592009-04-06 Ulrich Drepper <drepper@redhat.com>
1560
4bcb2658
UD
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.
1565
322e23db
UD
1566 * sysdeps/x86_64/memchr.S: New file.
1567
ae061910
UD
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.
1573
a152f366
UD
15742009-04-05 Ulrich Drepper <drepper@redhat.com>
1575
1576 * sysdeps/x86_64/strlen.S: Optimize by using SSE2 instructions.
1df6f9d8 1577 * sysdeps/x86_64/strchr.S: Likewise.
a152f366 1578
2dbe6afe
UD
15792009-04-03 Ulrich Drepper <drepper@redhat.com>
1580
c0bac8b0
UD
1581 * configure.in: We need to test for the compiler earlier.
1582
e109c612
UD
1583 * misc/Makefile (routines): Add preadv, preadv64, pwritev, pwritev64.
1584 * misc/Versions: Export preadv, preadv64, pwritev, pwritev64 for
1585 GLIBC_2.10.
1586 * misc/sys/uio.h: Declare preadv, preadv64, pwritev, pwritev64.
1587 * sysdeps/unix/sysv/linux/kernel-features.h: Add entries for preadv
1588 and pwritev.
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.
1603
7166c77a
UD
1604 * sysdeps/unix/sysv/linux/readv.c (__libc_readv): Fix calling of
1605 compatibility code.
1606 * sysdeps/unix/sysv/linux/writev.c (__libc_writev): Likewise.
1607
2dbe6afe
UD
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.
1613
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.
1617
ff886b82
UD
16182009-04-02 Ulrich Drepper <drepper@redhat.com>
1619
a065c007
UD
1620 * sysdeps/unix/sysv/linux/bits/socket.h: Add missing protocol numbers.
1621
ff886b82
UD
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.
1634
1635 * configure.in: Rename pic_default to libc_cv_pic_default.
1636 * config.make.in: Likewise.
1637
1800de36
RM
16382009-04-01 Roland McGrath <roland@redhat.com>
1639
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>.
1648
7166c77a 16492009-04-01 Ulrich Drepper <drepper@redhat.com>
3ce976cd
UD
1650
1651 * sysdeps/unix/sysv/linux/sys/eventfd.h (EFD_SEMAPHORE): Define.
1652
20739e54
UD
16532009-03-31 Ulrich Drepper <drepper@redhat.com>
1654
22c83193
UD
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.
1667
20739e54
UD
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.
1673
db486995
UD
16742009-03-30 Ulrich Drepper <drepper@redhat.com>
1675
cb14424e
UD
1676 * elf/do-lookup.h (do_lookup_x): Minor optimization and cleanup.
1677 Avoid reuse of complex expression.
1678
db486995
UD
1679 * po/fr.po: Update from translation team.
1680
ae8d7b44
UD
16812009-03-16 Ulrich Drepper <drepper@redhat.com>
1682
1683 * include/dirent.h: Yet more changes to match sort function type
1684 change.
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.
1688
8efb2f1c
UD
16892009-03-16 Thomas Schwinge <tschwinge@gnu.org>
1690
1691 * dirent/scandir64.c (scandir64): Adjust declaration to type change.
1692
d9822dbe
UD
16932009-03-16 Ulrich Drepper <drepper@redhat.com>
1694
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>.
1698
71a5bd3e
UD
16992009-03-15 Ulrich Drepper <drepper@redhat.com>
1700
2ca285b0
UD
1701 [BZ #9733]
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
1706 an audit library.
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.
1710
7e342603
UD
1711 * elf/rtld.c (dl_main): Extend help message for --audit option.
1712
eee6b143
UD
1713 [BZ #9759]
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
1722 declaration.
1723 * sysdeps/wordsize-64/versionsort.c: Add hack to hide versionsort64
1724 declaration.
1725
cd2d01fa
UD
1726 [BZ #9880]
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.
1731
906dd40d
UD
1732 [BZ #9881]
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.
1737
71a5bd3e
UD
1738 [BZ #5807]
1739 * string/strlen.c (strlen): Fix omission in the expression to test
1740 for NUL bytes.
1741
878b72c5
UD
17422009-03-14 Ulrich Drepper <drepper@redhat.com>
1743
fad070ab
UD
1744 * crypt/sha256test.c (main): Perform 100,000 'a' test in a second way.
1745
a42ad61b
UD
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
1755 _dl_call_pltexit.
1756 * sysdeps/x86_64/dl-runtime.c: New file.
1757
1f7c90a7
UD
1758 [BZ #9893]
1759 * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix
906dd40d 1760 alignment of La_x86_64_regs. Store xmm parameters.
1f7c90a7
UD
1761 Patch mostly by Jiri Olsa <olsajiri@gmail.com>.
1762
45466462
UD
1763 [BZ #9913]
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.
1769
1770 * string/strverscmp.c (__strverscmp): Optimize size of tables.
1771
878b72c5
UD
1772 * locale/iso-639.def: Add Min Nan.
1773
f53713a8
UD
17742009-03-11 Carlos Eduardo Seo <cseo@linux.vnet.ibm.com>
1775
878b72c5 1776 [BZ #9948]
f53713a8
UD
1777 * elf/dl-sysdep.c (_dl_show_auxv): Add support for AT_BASE_PLATFORM.
1778
f81ce288
UD
17792009-03-14 Ulrich Drepper <drepper@redhat.com>
1780
f53713a8
UD
1781 * elf/dl-sysdep.c (auxvars): Compress data structure.
1782
f81ce288
UD
1783 * sysdeps/i386/dl-machine.h (elf_machine_rel): Implement
1784 STT_GNU_IFUNC handling.
1785 (elf_machine_rela): Likewise.
1786
425ce2ed
UD
17872009-03-13 Ulrich Drepper <drepper@redhat.com>
1788
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.
1803
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.
1811
e7f110cd
UD
18122009-03-11 Ulrich Drepper <drepper@redhat.com>
1813
1814 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Add branch
1815 prediction. A few size optimizations.
1816
bd82a247
UD
18172009-03-10 Ulrich Drepper <drepper@redhat.com>
1818
1819 * time/tzset.c: Optimize a bit for size.
1820
a99e59d7
UD
18212009-03-10 Jakub Jelinek <jakub@redhat.com>
1822
1823 * include/stdio.h (fmemopen): Add libc_hidden_proto.
1824 * libio/fmemopen.c (fmemopen): Add libc_hidden_def.
1825
1826 * elf/sprof.c: Avoid warning about multi-line comment.
1827
686f8c9d
UD
18282009-03-10 Ulrich Drepper <drepper@redhat.com>
1829
1830 * time/tzset.c (__tzset_parse_tz): Use correct string when parsing
1831 DST name.
1832 * time/tst-posixtz.c: Add tests for quoted timezone names.
1833
7db0cc42
UD
18342009-03-10 Jakub Jelinek <jakub@redhat.com>
1835
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.
1841
eec4b454
UD
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
1850 attribute_hidden.
1851
d7276cee
UD
18522009-03-10 Ulrich Drepper <drepper@redhat.com>
1853
1854 * po/id.po: Update from translation team.
1855
1454da21
UD
18562009-02-18 Jakub Jelinek <jakub@redhat.com>
1857
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:
1863 Likewise.
1864 * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S:
1865 Likewise.
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.
1869
130ca12e
UD
18702009-03-08 Ulrich Drepper <drepper@redhat.com>
1871
610e67ed
UD
1872 * stdlib/Makefile (routines): Add quick_exit, at_quick_exit, and
1873 cxa_at_quick_exit.
1874 (static-only-routines): Add at_quick_exit.
1875 * stdlib/Versions: Export quick_exit and __cxa_at_quick_exit for
1876 GLIBC_2.10.
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
1881 it appropriately.
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.
1891
130ca12e
UD
1892 * po/id.po: Update from translation team.
1893
9a4f9d1f
UD
18942009-03-07 Ulrich Drepper <drepper@redhat.com>
1895
1896 * po/ru.po: Update from translation team.
1897
6d781c94
UD
18982009-03-04 Ulrich Drepper <drepper@redhat.com>
1899
1900 * po/nl.po: Update from translation team.
1901
e00c5ece
UD
19022009-03-03 Ulrich Drepper <drepper@redhat.com>
1903
99eb932f
UD
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.
1911
e00c5ece
UD
1912 * po/pl.po: Update from translation team.
1913
749f5cc9
UD
19142009-03-02 Ulrich Drepper <drepper@redhat.com>
1915
1b994772 1916 [BZ #7083]
749f5cc9
UD
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
1924 for GLIBC_2.10.
1925 * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
1926 Add fallocate and fallocate64.
1927
1928 * io/fcntl.h: Pretty printing.
1929
6219e3cc
JJ
19302009-03-02 Richard Guenther <rguenther@suse.de>
1931
1932 * misc/sys/cdefs.h (__extern_always_inline): Add __artificial__
1933 attribute also for non-C99 inline semantics variant.
1934
134a9766
UD
19352009-02-12 Carlos Eduardo Seo <cseo@linux.vnet.ibm.com>
1936
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:
1942 Likewise.
1943 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/fpu/Implies:
1944 Likewise.
1945
95bc1633
UD
19462009-03-02 Ulrich Drepper <drepper@redhat.com>
1947
1948 * po/cs.po: Update from translation team.
1949
43ea48a5
UD
19502009-02-28 Ulrich Drepper <drepper@redhat.com>
1951
1952 * po/bg.po: Update from translation team.
1953 * po/sv.po: Likewise.
f5faa3b6 1954 * po/fi.po: Likewise.
45572c23 1955 * po/vi.po: Likewise.
43ea48a5 1956
e965d514
RM
19572009-02-27 Roland McGrath <roland@redhat.com>
1958
1959 * Makeconfig (%.v.i): Depend on Makeconfig.
1960 Exclude % lines from initial #-comment removal.
1961
56a9651f
UD
19622009-02-27 Ulrich Drepper <drepper@redhat.com>
1963
1964 * po/ko.po: Update from translation team.
1965
682825ce
RM
19662009-02-26 Roland McGrath <roland@redhat.com>
1967
1968 * shadow/lckpwdf.c (__lckpwdf): Move FLAGS inside block using it,
1969 avoids unused warning.
1970
a3c37506
UD
19712009-02-26 Andrew Stubbs <ams@codesourcery.com>
1972 SUGIOKA Toshinobu <sugioka@itonet.co.jp>
1973
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):
1981 Undefine.
1982 (start_thread): Don't undefine.
1983 (elf_greg_t, ELF_NGREG, elf_fpregset_t, user_fpu_struct, user):
1984 Define.
1985
f503060b
UD
19862009-02-26 Ulrich Drepper <drepper@redhat.com>
1987
6cbe890a
UD
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
1993 200112L to 200809L.
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.
f503060b
UD
2006 * libio/stdio.h: dprintf, fmemopen, getdelim, getline,
2007 open_memstream, and vdprintf are in POSIX 2008.
2008
2e6d6bac
UD
20092009-02-25 Ulrich Drepper <drepper@redhat.com>
2010
3e6b0a28 2011 * include/features.h: Define macros for XPG7/POSIX 2008.
77db439e
UD
2012 * ctype/ctype.h: The *_l functions are in POSIX 2008.
2013 * dirent/dirent.h: alphasort, dirfd, scandir, and fdopendir are in
2014 POSIX 2008.
1f04d005
UD
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.
3e6b0a28
UD
2020 * sysdeps/unix/sysv/linux/bits/stat.h: Protect UTIME_NOW and
2021 UTIME_OMIT only with __USE_ATFILE.
1f04d005
UD
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.
3e6b0a28
UD
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
2034 mknod.
2035 * time/sys/time.h: futimesat is not among the functions accepted
2036 into the POSIX standard.
2037
2e6d6bac
UD
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
2044 _getopt_initialize.
2045 (_getopt_internal): Take addition parameter. Pass on to
2046 _getopt_internal_r.
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
2051 _getopt_internal.
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
2056 _getopt_internal_r.
2057
67108e40
UD
20582009-02-24 Ulrich Drepper <drepper@redhat.com>
2059
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.
2065
1cccb96f
RM
20662009-02-24 Roland McGrath <roland@redhat.com>
2067
2068 [BZ #9895]
2069 * README.template: Reworded not to use substituted version number.
2070 Renamed to ...
2071 * README: ... here (no longer generated).
2072 * Makefile (README): Target removed.
2073
82780cbe
UD
20742009-02-24 Ulrich Drepper <drepper@redhat.com>
2075
5be0a688 2076 * sysdeps/unix/sysv/linux/sysconf.c (__sysconf):
77db439e 2077 /proc/sys/kernel/rtsig_max doesn't exist anymore, use getrlimit
5be0a688
UD
2078 instead.
2079
8c4a5f42
UD
2080 * io/sys/stat.h: The lstat functions have been mandatory since 2001.
2081
82780cbe
UD
2082 * time/tzset.c (tzset_internal): Correct parsing of TZ envvar.
2083
77c571dd
UD
20842009-02-22 Ulrich Drepper <drepper@redhat.com>
2085
2086 * po/bg.po: Update from translation team.
2087
d82a27f8
JJ
20882009-02-16 Jakub Jelinek <jakub@redhat.com>
2089
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.
2115
58a7457e
JJ
21162008-12-01 Fredrik Unger <fred@tree.se>
2117
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.
2121
f43b4be6
UD
21222009-02-15 Ulrich Drepper <drepper@redhat.com>
2123
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.
2129
20e498bd
UD
21302009-02-13 Ulrich Drepper <drepper@redhat.com>
2131
2132 [BZ #5381]
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
2150 cache_add.
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.
2155
d8111eac
UD
21562009-02-11 Ulrich Drepper <drepper@redhat.com>
2157
2158 * po/lt.po: Update from translation team.
2159
40e2fc8b
UD
21602009-02-10 Ulrich Drepper <drepper@redhat.com>
2161
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.
2167
6c03cd11
UD
21682009-02-08 Ulrich Drepper <drepper@redhat.com>
2169
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.
2173
bc16e0c4
UD
21742009-02-07 Ulrich Drepper <drepper@redhat.com>
2175
78ac92ad
UD
2176 * malloc/malloc.c (_int_free): Second argument is now mchunkptr.
2177 Change all callers.
6dd6a580 2178 (_int_realloc): Likewise. Third argument is now padded size
78ac92ad 2179 All _int_* functions are now static.
6dd6a580 2180
78ac92ad
UD
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_*
2184 functions.
2185
7dddb4bd
UD
2186 * sunrpc/rpc_common.c: We cannot move _null_auth into .rodata that
2187 easily.
2188
bfacf1af
UD
2189 * malloc/malloc.c: Add branch prediction for use of the hooks.
2190
bc16e0c4
UD
2191 * grp/compat-initgroups.c [NOT_IN_libc] (__libc_use_alloca): Define.
2192
26b62243
UD
21932009-02-06 Ulrich Drepper <drepper@redhat.com>
2194
2195 [BZ #7095]
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
2208 environments.
2209
3fe4c5b3
UD
22102009-01-16 Petr Baudis <pasky@suse.cz>
2211
2212 [BZ #9753]
2213 * resolv/res_libc.c (__res_maybe_init): Call __res_vinit()
2214 even if we currently have zero nscount.
2215
cbbcaf23
UD
22162009-02-06 Ulrich Drepper <drepper@redhat.com>
2217
1a9dd4e4
UD
2218 [BZ #9781]
2219 * grp/compat-initgroups.c (compat_call): Switch to use malloc when
2220 the input line is too long.
2221
51f8846e
UD
2222 * po/Makefile (libc.pot): Add f_print as function taking c-format
2223 parameter.
2224
cbbcaf23
UD
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.
2231
22322009-02-06 Joseph Myers <joseph@codesourcery.com>
2233
2234 * debug/pcprofiledump.c (print_version,
2235 argp_program_version_hook): New function.
2236 * elf/ldconfig.c (more_help): New function.
2237 (argp): Use it.
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.
2243 (argp): Use it.
2244 * posix/getconf.c (main): Send --version output to stdout.
2245 Support --help.
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
2251 changed.
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
2255 --version.
2256
88a3b8f9
UD
22572009-02-06 Ulrich Drepper <drepper@redhat.com>
2258
e2e390fa
UD
2259 * malloc/memusage.c (DEFAULT_BUFFER_SIZE): Change to 32768.
2260 (update_data): Fix handling of wrapping back
c3ab42a8
UD
2261 to the beginning of the buffer.
2262
88a3b8f9
UD
2263 [BZ #9823]
2264 * stdio-common/psignal.c (psignal): Fix test for empty string.
2265
62f63c47
UD
22662009-02-05 Ulrich Drepper <drepper@redhat.com>
2267
4f7408c7
UD
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.
2271
970aa10f
UD
2272 * time/tzset.c (__tzset_parse_tz): DST offset must also allow hour
2273 value of 24.
2274
52de761a
UD
2275 * intl/dcigettext.c (DCIGETTEXT): Avoid some code duplication.
2276
62f63c47
UD
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
2282 __alloc_dir.
2283
0899b889
UD
22842009-02-03 Andrew Stubbs <ams@codesourcery.com>
2285
2286 * sysdeps/sh/sh4/dl-trampoline.S: Only set HAVE_FPU if __SH_FPU_ANY__
2287 is set.
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.
2294
22cc3f75
UD
22952009-02-04 Ulrich Drepper <drepper@redhat.com>
2296
2297 * po/ru.po: Update from translation team.
2298
a71433e7
UD
22992008-11-17 Nathan Sidwell <nathan@codesourcery.com>
2300
2301 * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (struct sigevent):
2302 Add _tid slot to maintain consistency with kernel.
2303
82f2e9c6 23042009-02-04 Ulrich Drepper <drepper@redhat.com>
3a2e9947 2305
82f2e9c6
UD
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.
3a2e9947 2311
ba022c06
UD
23122009-02-02 Andrew Stubbs <ams@codesourcery.com>
2313
2314 * sysdeps/unix/sysv/linux/sh/Makefile (libm.so-no-z-defs): Define.
2315
1b14353e
UD
23162009-02-02 Ulrich Drepper <drepper@redhat.com>
2317
2318 [BZ #9793]
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.
2323
ebc22416
UD
23242009-02-01 Ulrich Drepper <drepper@redhat.com>
2325
2326 * sysdeps/x86_64/cacheinfo.c (intel_02_known): Add new descriptors.
2327 * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
2328
7c8a6732
UD
23292009-01-29 Andrew Stubbs <ams@codesourcery.com>
2330
2331 * elf/Makefile (ld.so): Adjust the sed script to insert _begin in to
2332 newer linker scripts.
2333
43149780
UD
23342009-01-30 Ulrich Drepper <drepper@redhat.com>
2335
2336 [BZ #7040]
2337 * sysdeps/unix/sysv/linux/sys/inotify.h: Second parameter of
2338 inotify_rm_watch should have type int.
2339
bd4ace0b
UD
23402009-01-06 Steven Munroe <sjmunroe@us.ibm.com>
2341
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):
2345 Likewise.
2346
430902da
AJ
23472009-01-30 Andreas Jaeger <aj@suse.de>
2348
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.
2356
b7219e53
UD
23572009-01-11 Ryan S. Arnold <rsa@us.ibm.com>
2358
2359 [BZ #9726]
2360 * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c (_SET_DI_FPSCR,
2361 _SET_SI_FPSCR): Clobber fp0 to prevent erroneous test-case passes.
2362
23632009-01-08 Ryan S. Arnold <rsa@us.ibm.com>
2364
2365 [BZ #9726]
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.
2370
a3bd2846
UD
23712009-01-11 Thomas Schwinge <tschwinge@gnu.org>
2372
2373 * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Use
2374 memcpy instead of memcmp.
2375 (_dl_setup_pointer_guard): Likewise.
2376
1fdd89a7
UD
23772009-01-30 Ulrich Drepper <drepper@redhat.com>
2378
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
2382 requests.
2383
8585cb74
UD
23842009-01-30 Jakub Jelinek <jakub@redhat.com>
2385
2386 * string/string.h (memchr, strchr, strrchr, strpbrk, strstr, index,
2387 rindex): For C++ add inlines so that they can be recognized as
2388 builtins.
2389 * string/strings.h: Define correct C++ prototypes for gcc 4.4.
2390
d8387c7b
UD
23912009-01-29 Ulrich Drepper <drepper@redhat.com>
2392 Jakub Jelinek <jakub@redhat.com>
2393
cdf77dd8
UD
2394 * string/string.h: Define correct C++ prototypes for gcc 4.4.
2395 * wcsmbs/wchar.h: Likewise.
d8387c7b 2396
647925b2
UD
23972009-01-29 Ulrich Drepper <drepper@redhat.com>
2398
2399 * sysdeps/i386/stackinfo.h (stackinfo_get_sp): Define.
2400 (stackinfo_sub_sp): Define.
2401
5627534a
UD
24022009-01-28 Ulrich Drepper <drepper@redhat.com>
2403
fd537e53
UD
2404 [BZ #9750]
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.
2409
00f5df0e
UD
2410 * nscd/connections.c (nscd_init): If database file access fails
2411 check whether this is due to permission problems and bail in that
2412 case.
31d322a2 2413
5627534a
UD
2414 [BZ #9741]
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>.
2417
a7bd183f
UD
24182009-01-14 Kaz Kojima <kkojima@rr.iij4u.or.jp>
2419
2420 * sysdeps/unix/sysv/linux/sh/sysdep.h (INTERNAL_SYSCALL):
2421 Add "t" to clobber list.
2422 (INTERNAL_SYSCALL_NCS): Likewise.
2423
1dd75769
UD
24242009-01-28 Ulrich Drepper <drepper@redhat.com>
2425
2426 * nss/getent.c (print_networks): Don't print comma between aliases.
2427
25e84177
UD
24282009-01-23 Ulrich Drepper <drepper@redhat.com>
2429
2430 * sysdeps/unix/sysv/linux/tst-clone.c (do_test): Avoid warning.
2431
2432 * misc/hsearch_r.c (hcreate_r): We need at least three elements in
2433 the hash table.
2434 * misc/Makefile (tests): Add bug-hsearch1.
2435 * misc/bug-hsearch1.c: New file.
2436
0699a0ca
RM
24372009-01-22 Roland McGrath <roland@redhat.com>
2438
2439 * Makeconfig (%.v.i): Strip trailing # comments,
2440 not only whole-line comments.
2441
965cb60a
UD
24422009-01-10 Ulrich Drepper <drepper@redhat.com>
2443
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
2451 pointer_chk_guard.
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.
2459
2460 * elf/elf.h (AT_RANDOM): Define AT_BASE_PLATFORM and AT_RANDOM.
2461
8be96dd1
RM
24622009-01-10 Roland McGrath <roland@redhat.com>
2463
2464 * nscd/nscd.c (parse_opt): Use argp_error for bad -i argument.
2465
157cd5ac
UD
24662009-01-08 Ulrich Drepper <drepper@redhat.com>
2467
9b1c750e
UD
2468 * sysdeps/i386/fpu/libm-test-ulps: Adjust expm1 errors.
2469
157cd5ac
UD
2470 [BZ #9706]
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.
2475
960af8c2
JJ
24762009-01-08 Jakub Jelinek <jakub@redhat.com>
2477
2478 [BZ #9720]
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):
2482 Likewise.
2483
76c7f2cd
UD
24842009-01-05 Paolo Bonzini <bonzini@gnu.org>
2485
16c124f7 2486 [BZ #697]
76c7f2cd
UD
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.
2490
bdb56bac
UD
24912009-01-04 Paolo Bonzini <bonzini@gnu.org>
2492
16c124f7 2493 [BZ #9697]
bdb56bac
UD
2494 * posix/bug-regex17.c: Add testcases.
2495 * posix/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
2496 handling.
2497
0480c901
UD
24982009-01-05 Martin Schwidefsky <schwidefsky@de.ibm.com>
2499
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
2504 for elf subdir.
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.
2511
b3918c7d
UD
25122008-12-31 Paolo Bonzini <bonzini@gnu.org>
2513
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.
2518
df9293cb
UD
25192008-12-31 Rafael Avila de Espindola <espindola@google.com>
2520
2521 * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr2_r): Check and
2522 adjust the buffer alignment.
2523
c90c1e1c
RM
25242009-01-07 Samuel Thibault <samuel.thibault@ens-lyon.org>
2525
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
2528 net/route.h.
2529
2530 * hurd/report-wait.c (describe_number): Use __stpcpy to prepend
2531 flavor to description only when flavor is not NULL.
2532
2533 * hurd/hurdsig.c (signal_allowed): Unlock _hurd_dtable_lock
2534 mutex after SIGIO/SIGURG lookup loop.
2535
5aff6fdf
RM
25362009-01-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
2537
2538 * bits/resource.h (PRIO_PROCESS, PRIO_PGRP, PRIO_USER): Add macros.
2539
b2bcd249
UD
25402009-01-03 Ulrich Drepper <drepper@redhat.com>
2541
2542 * sysdeps/unix/sysv/linux/i386/sysdep.h: Describe 6th argument
2543 handling.
2544
d36ad871
UD
25452009-01-02 Ulrich Drepper <drepper@redhat.com>
2546
ebb2788e
UD
2547 * sysdeps/unix/sysv/linux/kernel-features.h
2548 (__ASSUME_FUTEX_CLOCK_REALTIME): Define.
2549
72098116
UD
2550 * wcsmbs/wcsnrtombs.c (__wcsnrtombs): Create temporary state object
2551 if no output is written.
2552
623d0bf5
UD
2553 * version.h: Bump to 2.10 development.
2554
d36ad871
UD
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.
2571
25df09ab
UD
25722008-12-29 Mike Frysinger <vapier@gentoo.org>
2573
2574 * iconvdata/Makefile (iconv-rules): Use LC_ALL=C when running awk
2575 script.
2576
16b7dc27
UD
25772008-12-29 Ulrich Drepper <drepper@redhat.com>
2578
bfbbc63f
UD
2579 * sysdeps/posix/getaddrinfo.c (gaih_inet): When the
2580 gethostbyname4_r function call succeeded, just leave the loop.
2581
0f2ae55c
UD
2582 [BZ #9694]
2583 * wcsmbs/wchar.h: Move undefs for local __need_* constants to the
2584 very end.
5703f472
UD
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.
0f2ae55c 2588
50e481ce
UD
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.
2592
217d45cd
UD
2593 * sysdeps/x86_64/bits/select.h: New file.
2594
16b7dc27
UD
2595 * resolv/res_init.c (__res_vinit): Count all servers in statp->nscount.
2596
bf93cd3b
UD
25972008-12-21 Bruno Haible <bruno@clisp.org>
2598
2599 [BZ #9677]
2600 * wcsmbs/mbsnrtowcs.c (__mbsnrtowcs): Create temporary state object
2601 if no output is written.
2602
49159e12
UD
26032008-12-13 Klaus Dittrich <kladit@arcor.de>
2604
2605 * login/utmp_file.c (pututline_file): Replace call to dup2 with
2606 libc internal symbol __dup2 to avoid access through the PLT.
2607
d4f0720b
UD
26082008-12-08 Ulrich Drepper <drepper@redhat.com>
2609
135460f4
UD
2610 [BZ #6545]
2611 * sysdeps/unix/sysv/linux/bits/socket.h (SCM_CREDENTIALS): Make
2612 available only for __USE_GNU.
2613
ed0da352
UD
2614 * inet/Makefile (tests): Add tst-getni2.
2615 * inet/tst-getni2.c: New file.
2616
d4f0720b
UD
2617 [BZ #7080]
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.
2623
cd72adeb
UD
26242008-12-03 Petr Baudis <pasky@suse.cz>
2625
2626 [BZ #7067]
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.
2631
e87946cc
UD
26322008-12-07 Ulrich Drepper <drepper@redhat.com>
2633
200da00a
UD
2634 * resolv/res_send.c (send_dg): Use correct guards for SOCK_CLOEXEC
2635 use.
2636
2637 * sysdeps/unix/sysv/linux/kernel-features.h: Fix typo in accept4
2638 handling.
2639
905ef0da
UD
2640 * resolv/res_init.c (__res_vinit): Always assign to statp->nscount
2641 after reading name server list.
2642
71053765 2643 [BZ #7058]
e87946cc
UD
2644 * nis/nss_nis/nis-hosts.c (_nss_nis_gethostbyname4_r): Fix memory
2645 handling for host name aliases.
2646
d43b8bdd
JJ
26472008-11-24 Arkadiusz Miśkiewicz <arekm@maven.pl>
2648
2649 * sysdeps/i386/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Use LOAD_PIC_REG
2650 instead of doing things manually.
2651
26522008-11-26 Chris Steel <chris.steel.lnx@googlemail.com>
2653
2654 * posix/regex_internal.h (build_wcs_upper_buffer):
2655 Return type is reg_error_t.
2656
25a34eb7
UD
26572008-12-05 Ulrich Drepper <drepper@redhat.com>
2658
f3721ab2
UD
2659 * posix/globtest.sh: Use mktemp to create temporary file and
2660 directory.
2661
25a34eb7
UD
2662 * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_SET_S): Handle large
2663 sets correctly.
2664 (__CPU_CLR_S): Likewise.
2665 (__CPU_ISSET_S): Likewise.
2666
8680179f
UD
26672008-12-05 Joseph Myers <joseph@codesourcery.com>
2668 Ulrich Drepper <drepper@redhat.com>
2669
2670 * scripts/firstversion.awk: Use custom comparison function to compare
2671 version numbers.
2672 * scripts/versions.awk: Use sort invocation which can handle
2673 multi-digit sub-version numbers.
2674
72d50908
UD
26752008-12-04 Ulrich Drepper <drepper@redhat.com>
2676
2677 * locale/programs/ld-address.c (DEFINE_LANGUAGE_CODE2): Define.
2678 * locale/iso-639.def: Add Chhattisgarhi entry.
2679
f93fc0b7
UD
26802008-12-02 Ulrich Drepper <drepper@redhat.com>
2681
da5ac135
UD
2682 * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname3_r): Recognize
2683 ESRCH return value.
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.
2689
6f5c3117
UD
2690 * resolv/res_init.c (__res_vinit): Fill in IPv4 name server
2691 information at the correct index.
2692
f93fc0b7
UD
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.
2704
2705 * nscd/connections.c: Use accept4.
2706
2707 * sysdeps/unix/sysv/linux/i386/socket.S: Fix comment.
2708
1fa7ae05
UD
27092008-12-01 Ulrich Drepper <drepper@redhat.com>
2710
9744268c
UD
2711 * resolv/res_send.c (send_dg): Create sockets with non-blocking
2712 flag already set.
2713
1fa7ae05
UD
2714 * stdlib/setenv.c (unsetenv): Don't search environment if it does
2715 not exist.
30c06371
UD
2716 * stdlib/Makefile (tests): Add tst-unsetenv1.
2717 * stdlib/tst-unsetenv1.c: New file.
1fa7ae05 2718
37a6a271
UD
27192008-11-29 Ulrich Drepper <drepper@redhat.com>
2720
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
2724 necessary.
2725
ca4dc0fe
UD
27262008-11-26 Ulrich Drepper <drepper@redhat.com>
2727
be4607eb
UD
2728 * sysdeps/posix/getaddrinfo.c (getaddrinfo): Only restrict search
2729 to IPv4 or IPv6 if an interface has been found.
ca4dc0fe 2730
01a74645
RM
27312008-11-26 Roland McGrath <roland@redhat.com>
2732
24fd0a5b
RM
2733 * sysdeps/unix/sysv/linux/alpha/ipc_priv.h: Renamed to ...
2734 * sysdeps/unix/sysv/linux/powerpc/ipc_priv.h: ... here.
2735
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.
2739
01a74645
RM
2740 * elf/elf.h (NT_386_IOPERM): New macro.
2741 (NT_PPC_VSX): New macro.
2742
c0439b95
RM
27432008-11-25 Roland McGrath <roland@redhat.com>
2744
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.
2751
d3dc523b
RM
27522008-11-25 Thomas Schwinge <tschwinge@gnu.org>
2753
2754 * sysdeps/mach/strerror_l.c: New file.
2755
edba7a54
UD
27562008-11-13 Ryan S. Arnold <rsa@us.ibm.com>
2757
2758 [BZ #6411]
2759 * sysdeps/powerpc/fpu/Makefile: Added test case tst-setcontext-fpscr.
2760 * sysdeps/powerpc/fpu/feholdexcpt.c (_FPU_MASK_ALL): Define to replace
2761 magic numbers.
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
2768 magic numbers.
2769 * sysdeps/powerpc/fpu/feupdateenv.c (_FPU_MASK_ALL): Define to replace
2770 magic numbers.
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 ):
2776 Likewise.
2777 * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext-common.S
2778 (*setcontext): Likewise.
2779 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/setcontext.S:
2780 New file.
2781 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/swapcontext.S:
2782 New file.
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:
2792 New file.
2793 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/swapcontext.S:
2794 New file.
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.
2801
ec297962
UD
28022008-11-13 Ulrich Drepper <drepper@redhat.com>
2803
b5449f8a 2804 * version.h: Bump for 2.9 release.
f52bb4d7 2805 * include/features.h (__GLIBC_MINOR__): Bump to 9.
b5449f8a 2806
ec297962
UD
2807 [BZ #7029]
2808 * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_ALLOC_SIZE):
2809 Multiply with sizeof of __cpu_mask, not 8 unconditionally after
2810 all the rounding.
2811
3cac8b75
UD
28122008-11-11 Ulrich Drepper <drepper@redhat.com>
2813
0e54a725 2814 [BZ #7009]
3cac8b75
UD
2815 * resolv/nss_dns/dns-host.c (gaih_getanswer_slice): Don't abort for
2816 unknown request types for now.
2817
58a4b51a
RM
28182008-11-11 Roland McGrath <roland@redhat.com>
2819
2820 * sysdeps/x86_64/configure: New file.
2821
2822 * configure.in: Add AC_SUBST(libc_cv_cpp_asm_debuginfo).
2823 * configure: Regenerated.
2824
01bd5e96
JJ
28252008-11-03 Martin Schwidefsky <schwidefsky@de.ibm.com>
2826
2827 * sysdeps/s390/s390-64/dl-trampoline.S (_dl_runtime_profile): Use the
2828 correct instruction to remove the stack frame.
2829
a9069550
JJ
28302008-11-03 Michael Matz <matz@suse.de>
2831
2832 * sysdeps/s390/bits/atomic.h (__arch_compare_and_exchange_val_32_acq,
2833 __arch_compare_and_exchange_val_64_acq): Add "memory" clobber.
2834
4b23f9bd
JJ
28352008-11-07 Jakub Jelinek <jakub@redhat.com>
2836
09f66a4f
JJ
2837 * include/stdio.h (__builtin_fwrite, __builtin_fwrite_unlocked):
2838 Remove.
2839
4b23f9bd
JJ
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}
2856 arguments.
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
2861 arguments.
2862 (LOCALE): Adjust __libc_tsd_define arguments.
2863 * sysdeps/mach/hurd/malloc-machine.h (MALLOC): Adjust __libc_tsd_define
2864 arguments.
2865 (tsd_setspecific, tsd_getspecific): Adjust __libc_tsd_{set,get}
2866 arguments.
2867
486bdb88
UD
28682008-11-02 Ulrich Drepper <drepper@redhat.com>
2869
2870 * malloc/malloc.c (public_rEALLOc): When new arena is used, copy
2871 really all bytes. Patch by Denys Vlasenko <dvlasenk@redhat.com>.
2872
64647f9a
UD
28732008-11-01 Ulrich Drepper <drepper@redhat.com>
2874
2875 [BZ #6966]
2876 * misc/hsearch_r.c (hsearch_r): Fix secondary hash function.
2877
acd44dbc
UD
28782008-10-24 Joseph Myers <joseph@codesourcery.com>
2879 Ulrich Drepper <drepper@redhat.com>
2880
2881 * math/tgmath.h (__floating_type): Use __builtin_classify_type in
2882 definition for GCC 3.1 and later.
64647f9a 2883
41e25904
UD
28842008-10-31 Jakub Jelinek <jakub@redhat.com>
2885
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.
2891
e148a644 28922008-09-09 Aurelien Jarno <aurelien@aurel32.net>
97f12390 2893
da9c2314 2894 [BZ #6875]
e148a644
UD
2895 * iconvdata/gconv-modules: Add LATIN9 as an alias to ISO-8859-15.
2896
28972008-10-31 Ulrich Drepper <drepper@redhat.com>
97f12390 2898
6daf1a2f
UD
2899 [BZ #6867]
2900 * sysdeps/powerpc/elf/rtld-global-offsets.sym: Fix typo.
2901
6f576bf6
UD
2902 [BZ #6919]
2903 * posix/spawnattr_getschedparam.c (posix_spawnattr_getschedparam):
2904 Fix length of copy operation.
2905
45a8beb5
UD
29062008-10-02 Pierre Habouzit <madcoder@debian.org>
2907
2908 * sysdeps/unix/sysv/linux/eventfd.c (eventfd): Use the eventfd2 syscall
2909 and fix its calling convention.
2910
ad12e635
UD
29112008-10-07 Andreas Schwab <schwab@suse.de>
2912
2913 [BZ #6942]
2914 * resolv/res_send.c (send_vc): Fix last change.
2915 (send_dg): Align here as well.
2916
3cf44918
UD
29172008-10-31 Ulrich Drepper <drepper@redhat.com>
2918
dbb6ab3e
UD
2919 * sysdeps/unix/sysv/linux/ulimit.c (__ulimit): Handle UL_GETFSIZE
2920 return value in case rlimit is RLIM_INFINITY.
2921
2922 [BZ #6947]
2923 * sysdeps/unix/sysv/linux/ulimit.c (__ulimit): Fix return value
2924 for UL_SETFSIZE.
1828d6b0
UD
2925 * resource/Makefile (tests): Add bug-ulimit1.
2926 * resource/bug-ulimit1.c: New file.
dbb6ab3e 2927
a5ff533e
UD
2928 [BZ #6974]
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>.
2932
4bed549a
UD
2933 [BZ #6980]
2934 * debug/getgroups_chk.c (__getgroups_chk): Return EINVAL error for
2935 negative sizees.
2936 * posix/bits/unistd.h (getgroups): Call __getgroups_chk for
2937 negative __size.
2938
3cf44918
UD
2939 [BZ #6995]
2940 * sysdeps/powerpc/powerpc32/dl-machine.c: Fix typo in message.
2941
21b07d8b
UD
29422008-10-30 Ulrich Drepper <drepper@redhat.com>
2943
332c4465
UD
2944 * grp/initgroups.c (internal_getgrouplist): Don't prematurely
2945 abort if there is no initgroups_dyn function.
2946
21b07d8b
UD
2947 * resolv/res_send.c (send_dg): On timeout, only return nonzero
2948 result if any of the queries really provided an answer.
2949
4caa3fb7
UD
29502008-10-28 Ulrich Drepper <drepper@redhat.com>
2951
2952 * po/lt.po: Update from translation team.
2953
a22c3a0d
UD
29542008-10-26 Ulrich Drepper <drepper@redhat.com>
2955
2956 * po/id.po: Update from translation team.
2957
49685151
UD
29582008-10-24 Ulrich Drepper <drepper@redhat.com>
2959
2960 * resolv/res_query.c (__libc_res_nquery): Add a few casts.
660675de 2961 Fix tests for existence of second reply.
49685151 2962
8d9d5d35
UD
29632008-10-23 Ulrich Drepper <drepper@redhat.com>
2964
2965 * po/id.po: New file.
2966 Contributed by the Indonesian translation team.
2967
208bc836
UD
29682008-10-22 Dmitry V. Levin <ldv@altlinux.org>
2969
2970 * misc/syslog.c (openlog_internal): Fix __have_sock_cloexec
2971 initialization.
2972
60a23f5a
UD
29732008-10-17 Jakub Jelinek <jakub@redhat.com>
2974
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.
2979
292eb817
UD
29802008-10-17 Ulrich Drepper <drepper@redhat.com>
2981
2982 * stdlib/divmod_1.c: Use correct type for dummy variable.
2983 * stdlib/mod_1.c: Likewise.
2984
5df2a427
UD
29852008-10-16 Ulrich Drepper <drepper@redhat.com>
2986
2987 * elf/dl-tls.c (_dl_update_slotinfo): Copy all of the initial DTV.
2988
472e5e08
JJ
29892008-10-16 Jakub Jelinek <jakub@redhat.com>
2990
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.
2995
86900abd
RM
29962008-10-01 Daniel Jacobowitz <dan@codesourcery.com>
2997
2998 * stdlib/longlong.h: Update from GCC.
2999
19c10a47
JJ
30002008-10-09 Jakub Jelinek <jakub@redhat.com>
3001 David S. Miller <davem@davemloft.net>
3002
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.
3008
2fdde3b9
UD
30092008-09-18 Andreas Schwab <schwab@suse.de>
3010
3011 [BZ #6942]
3012 * resolv/res_send.c (send_vc): Fix use of unaligned address.
f00d47a3 3013 Properly handle partial reads.
2fdde3b9 3014
6ba25fcb
RM
30152008-10-01 Mark Shinwell <shinwell@codesourcery.com>
3016
3017 * elf/elf.h (STO_MIPS_PLT): New.
3018 (R_MIPS_COPY): 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.
3024
97898201
UD
30252008-10-01 Ulrich Drepper <drepper@redhat.com>
3026
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.
3035
3452ded5
UD
30362008-09-30 Ulrich Drepper <drepper@redhat.com>
3037
3038 * nscd/connections.c: Disable use of paccept for now.
3039
54ad9327
UD
30402008-09-29 Ulrich Drepper <drepper@redhat.com>
3041
8ec2550e
UD
3042 * socket/Versions: Remove paccept export for GLIBC_2.9.
3043 * socket/Makefile (routines): Remove paccept.
3044 * socket/sys/socket.h: Remove paccept declaration.
3045
54ad9327
UD
3046 * po/sv.po: Update from translation team.
3047
1c5eba39
UD
30482008-09-22 Deborah S. Townsend <dstownse@us.ibm.com>
3049
3050 * sysdeps/s390/s390-64/s390x-mcount.S: Replace ahi with aghi.
3051 * sysdeps/unix/sysv/linux/s390/s390-64/socket.S: Likewise.
3052
0a26fc4d
UD
30532008-09-16 Ulrich Drepper <drepper@redhat.com>
3054
3055 * dlfcn/dlopen.c (dlopen_doit): Allow __RTLD_SPROF flag.
3056 Patch by Olivier Fourdan <ofourdan@redhat.com>.
3057
2bcaff08
UD
30582008-09-15 Ulrich Drepper <drepper@redhat.com>
3059
3060 * sunrpc/rpc/svc.h: Declare svcfd_create.
3061 Patch by Michael Solberg <msolberg@redhat.com>.
3062
caa60cb9 30632008-09-12 Flavio Leitner <fleitner@redhat.com>
f00d47a3 3064 Ulrich Drepper <drepper@redhat.com>
caa60cb9
UD
3065
3066 * malloc/malloc.c (public_vALLOc): Try other arenas in case
3067 _int_valloc fails.
3068 (public_pVALLOc): Likewise.
3069
6c161112
AJ
30702008-09-02 Andreas Jaeger <aj@suse.de>
3071
3072 * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: Fix last
3073 commit.
3074
0cb269d7
RM
30752008-08-26 Aurelien Jarno <aurelien@aurel32.net>
3076
452034cc 3077 [BZ #6860]
2bcaff08 3078 * hurd/hurd/signal.h (HURD_MSGPORT_RPC): Fix a typo.
0cb269d7 3079
13074b5b
RM
30802008-07-18 Daniel Jacobowitz <dan@codesourcery.com>
3081
3082 * Makefile (check-data): Check data directory in add-ons.
3083 * elf/Makefile (check-data): Likewise.
3084
58801a0e
RM
30852008-08-18 Roland McGrath <roland@redhat.com>
3086
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).
3092
7df49c5d
UD
30932008-08-14 Ryan S. Arnold <rsa@us.ibm.com>
3094
3095 [BZ #6845]
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.
3101
965805e8
UD
31022008-08-15 Ulrich Drepper <drepper@redhat.com>
3103
3104 * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Define MAP_STACK.
3105 * sysdeps/unix/sysv/linux/i386/bits/mman.h: Likewise.
3106
9cf73ab0
UD
31072008-08-14 Ulrich Drepper <drepper@redhat.com>
3108
62a1ffc6
UD
3109 * sysdeps/x86_64/memset.S: Reduce size of tables for PIC.
3110
9cf73ab0
UD
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
3114 _dl_execfn member.
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.
3119
1bfa05cf
UD
31202008-08-13 Ulrich Drepper <drepper@redhat.com>
3121
7b3ba2c4
UD
3122 [BZ #6544]
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.
3126
1bfa05cf
UD
3127 [BZ #6634]
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.
3133
c5671698
UD
31342008-08-12 Ulrich Drepper <drepper@redhat.com>
3135
3136 [BZ #6589]
3137 * sysdeps/unix/sysv/linux/ifaddrs.c (struct sockaddr_ll_max):
3138 Define.
3139 (struct ifaddrs_storage): Use it instead of sockaddr_ll.
3140
4497384e
UD
31412008-08-12 Ryan S. Arnold <rsa@us.ibm.com>
3142
3143 [BZ #6839]
3144 * sysdeps/powerpc/powerpc32/dl-machine.c (CHECK_STATIC_TLS): Remove
3145 macro since it is now available in elf/dynamic-link.h.
3146
675d7111
RM
31472008-08-12 Roland McGrath <roland@frob.com>
3148
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>
3152
8b254432
UD
31532008-08-11 Ulrich Drepper <drepper@redhat.com>
3154
3155 * resolv/res_mkquery.c (res_nmkquery): Call ns_name_compress
3156 directly instead of going through dn_comp.
3157
ac84eeca
RM
31582008-08-11 Aurelien Jarno <aurel32@debian.org>
3159
3160 * sysdeps/mach/i386/machine-lock.h (__spin_unlock, __spin_try_lock):
3161 Fix asm constraints.
3162
f081b451
UD
31632008-08-07 Ulrich Drepper <drepper@redhat.com>
3164
3165 [BZ #6790]
3166 * sysdeps/unix/sysv/linux/bits/in.h (IP_PMTUDISC_PROBE): Define.
3167 (IPV6_PMTUDISC_PROBE): Likewise.
3168
30a4429e
UD
31692008-08-07 Pete Eberlein <eberlein@us.ibm.com>
3170
3171 [BZ #6791]
3172 * sysdeps/unix/sysv/linux/powerpc/bits/mman.h (PROT_SAO): Define.
3173
1642331d 31742008-08-01 Steven Munroe <sjmunroe@us.ibm.com>
626f68ff 3175 Carlos Eduardo Seo <cseo@linux.vnet.ibm.com>
1642331d
UD
3176
3177 [BZ #6817]
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
3184 'power7'.
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.
3189
48b94661
UD
31902008-08-07 Ulrich Drepper <drepper@redhat.com>
3191
3192 [BZ #6824]
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>.
3196
9523fd28
UD
31972008-08-05 Ulrich Drepper <drepper@redhat.com>
3198
9c0cb150
UD
3199 * scripts/gen-as-const.awk: Use 32-bit values on 32-bit platforms.
3200
46aea5cb 3201 [BZ #5794]
9523fd28
UD
3202 * sysdeps/i386/fpu/s_expm1l.S: Simply use exp implementation for large
3203 parameters.
3204 * sysdeps/x86_64/fpu/s_expm1l.S: Likewise.
3205 Patch by Denys Vlasenko <dvlasenk@redhat.com>.
3206
c400c931
UD
32072008-08-03 Ulrich Drepper <drepper@redhat.com>
3208
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.
3213
3f39adac
RM
32142008-08-02 Roland McGrath <roland@frob.com>
3215
3216 * sysdeps/mach/i386/machine-lock.h (__spin_unlock, __spin_try_lock):
3217 Add memory clobbers.
3218
3501542f
UD
32192008-08-02 Ulrich Drepper <drepper@redhat.com>
3220
48b22986
UD
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.
3229
3501542f
UD
3230 * sysdeps/posix/clock_getres.c (hp_timing_getres): Remove inline
3231 to prevent warning.
3232
17756df3
UD
32332008-08-01 Ulrich Drepper <drepper@redhat.com>
3234
ebcc1f4d
UD
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.
3240
144bfa86
UD
3241 * include/arpa/nameser.h (NS_GET16): Use const pointer.
3242 (NS_GET32): Likewise.
3243
7e1b29c6
UD
3244 * sysdeps/unix/sysv/linux/kernel-features.h: s390 has the new
3245 syscalls, too.
3246
42fa1f67
UD
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
3250 __ASSUME_AT_EXECFN.
3251
cd5743fd
UD
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
3258 and __p_secstodate.
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
3262 hidden definitions.
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
3270 function calls.
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.
3278
17756df3
UD
3279 * elf/Makefile (check-localplt.out): Also check libresolv and
3280 libcrypt.
3281
46bc5d43
UD
32822008-07-31 Ulrich Drepper <drepper@redhat.com>
3283
3284 * sysdeps/unix/sysv/linux/kernel-features.h: Define
3285 __ASSUME_O_CLOEXEC.
3286
a707cff6
UD
32872008-07-30 Ulrich Drepper <drepper@redhat.com>
3288
3c227386
UD
3289 * sysdeps/posix/getaddrinfo.c (gaih_inet): Raise size of initial
3290 buffer passed to NSS functions.
3291
9523fd28 3292 * nscd/connections.c (nscd_init): Typo in preprocessor directive.
bd7f4857
UD
3293
3294 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_PACCEPT):
3295 Define.
3296
a707cff6
UD
3297 * misc/syslog.c (openlog_internal): Fix compile problem.
3298
0424d007
RM
32992008-07-28 Roland McGrath <roland@redhat.com>
3300
3301 * elf/dl-sysdep.c (_dl_show_auxv): Add AT_EXECFN to the table.
3302
b7da31a1
UD
33032008-07-28 Ulrich Drepper <drepper@redhat.com>
3304
300ea0ad
UD
3305 * io/ftw.c (add_object): Remove inline to avoid warning.
3306
d6173baa
UD
3307 * sysdeps/unix/sysv/linux/paccept.c: Fix compile problem.
3308
b7da31a1
UD
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
3321 change.
3322 (_nss_dns_gethostbyname4): Don't unconditionally allocate tmp array.
3323 Define resplen2 variable and pass it to __libc_res_nsearch and then
3324 to gaih_getanswer.
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
3337 change.
3338 * resolv/nss_dns/dns-network.c: Adjust for __libc_res_nquery and
3339 __libc_res_nsearch interface changes.
3340
11ed3eae
UD
33412008-07-27 Ulrich Drepper <drepper@redhat.com>
3342
372aece0
UD
3343 * libio/iopopen.c (_IO_new_proc_open): Remove unnecessary volatile.
3344
e038616f
UD
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.
3349
d6e0c2a6
UD
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.
3358
11ed3eae
UD
3359 * sysdeps/unix/sysv/linux/bits/socket.h: Define PF_ISDN and AF_ISDN.
3360 * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
3361
7438a80d
UD
33622008-07-26 Ulrich Drepper <drepper@redhat.com>
3363
c4a710b6
UD
3364 [BZ #6771]
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.
3368
31f3b159
UD
3369 * sunrpc/key_call.c (getkeyserv_handle): Use FD_CLOEXEC instead of
3370 magic number.
3371
c0216dfc
UD
3372 * misc/syslog.c (openlog_internal): Use SOCK_CLOEXEC if possible.
3373
72112b0c
UD
3374 * malloc/mtrace.c (mtrace): Use 'e' flag in fopen call. Drop
3375 F_SETFD use if we know fopen set the flag.
3376
7438a80d
UD
3377 * login/utmp_file.c (setutent_file): Minor optimization in case
3378 O_CLOEXEC is available.
3379
7b91359b
UD
33802008-07-24 Tom "spot" Callaway <tcallawa@redhat.com>
3381
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.
3386
4057dc45
UD
33872008-07-21 Andreas Krebbel <krebbel1@de.ibm.com>
3388
e7135e24 3389 [BZ #6724]
4057dc45
UD
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.
3421
ff0bf753
UD
34222008-07-26 Ulrich Drepper <drepper@redhat.com>
3423
619cc2f6
UD
3424 * scripts/gen-as-const.awk: Generate more widely usable code by
3425 using 64-bit arithmetic.
3426
1311b164 3427 * stdio-common/printf_fp.c (___printf_fp): Give wide outout code
3f414923 3428 the same treatment as narrow output code in last patch.
1311b164 3429
ff0bf753
UD
3430 * sunrpc/clnt_udp.c (__libc_clntudp_bufcreate): Namespace cleanup.
3431
3f414923 3432 [BZ #6763]
ff0bf753
UD
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
3436 part of the object.
3437
3438 * sysdeps/unix/sysv/linux/dl-origin.c: Add const to avoid warning.
3439
8ccf22f9
UD
34402008-07-25 Ulrich Drepper <drepper@redhat.com>
3441
bdd24a30
UD
3442 * sysdeps/unix/sysv/linux/kernel-features.h: IA-64 and SPARC have
3443 the new syscalls, too.
b5c0b5e4 3444
b41f1d14
UD
3445 * sysdeps/i386/i686/memcmp.S: Fix unwind information.
3446 Reported by Paul Pluzhnikov <ppluzhnikov@google.com>.
3447
3703468e
UD
3448 [BZ #6698]
3449 * stdio-common/_i18n_number.h (_i18n_number_rewrite): Take additional
3450 parameter for end of buffer. If temporary copy is too large use
3451 malloc.
3452 * stdio-common/vfprintf.c: Adjust for _i18n_number_rewrite
3453 interface change.
3454 * stdio-common/printf_fp.c (__printf_fp): Likewise.. Account for
3455 string rewrite when allocating buffer.
3456
bb0277bf
UD
3457 * sysdeps/unix/sysv/linux/kernel-features.h: PPC has the new
3458 syscalls, too.
3459
9dd84772
UD
3460 * nscd/connections.c (nscd_init): Clean up fcntl call.
3461
c418b1ba
UD
3462 * nscd/nscd_helper.c (open_socket): Use SOCK_CLOEXEC and
3463 SOCK_NONBLOCK if possible.
3464
b206d8b1
UD
3465 * sysdeps/unix/sysv/linux/opensock.c (__opensock): Use
3466 SOCK_CLOEXEC if available.
3467
8ccf22f9
UD
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.
3482
579cdf5a
UD
34832008-07-24 Ulrich Drepper <drepper@redhat.com>
3484
3ff2c948
UD
3485 * sysdeps/unix/sysv/linux/kernel-features.h: Define
3486 __ASSUME_PACCEPT, __ASSUME_IN_NONBLOCK, and __ASSUME_PACCEPT if
3487 appropriate.
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.
3490
bdcebfc4
UD
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
3507 possible.
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
3517 SOCK_NONBLOCK.
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
3528 EFD_NONBLOCK.
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
3532 SFD_NONBLOCK.
3533 * sysdeps/unix/sysv/linux/sys/timerfd.h: Define TFD_CLOEXEC and
3534 TFD_NONBLOCK.
3535
0e077a7e
UD
3536 * elf/elf.h: Define AT_EXECFN.
3537 * elf/rtld.c [!__ASSUME_AT_EXECFN] (process_envvars): Don't handle
3538 LD_ORIGIN_PATH.
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
3544 for 2.6.27 and up.
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.
3550
579cdf5a
UD
3551 * sysdeps/unix/sysv/linux/dl-sysdep.h: Don't declare
3552 _dl_discover_osversion only for older kernels.
3553
7385c04c
RM
35542008-07-22 Roland McGrath <roland@frob.com>
3555
3556 * hurd/fd-read.c (_hurd_fd_read): Fix last change.
3557
8a26088d
RM
35582008-07-21 Roland McGrath <roland@frob.com>
3559
3560 * hurd/fd-read.c (_hurd_fd_read): Return EGRATUITOUS if the server
3561 returned too much data out of line.
3562
9f558b80
UD
35632008-07-20 Ulrich Drepper <drepper@redhat.com>
3564
2e79213a
UD
3565 * locale/setlocale.c (setname): Remove inline to avoid compiler
3566 warning.
3567
579cdf5a 3568 [BZ #6712]
9f558b80
UD
3569 * locale/setlocale.c (setlocale): Take the setlocale lock earlier.
3570
9667f97d
UD
35712008-07-15 Ulrich Drepper <drepper@redhat.com>
3572
2486b496
UD
3573 * stdio-common/vfprintf.c (_IO_helper_overflow): In case _IO_sputn
3574 doesn't manage to write anything, fail.
3575
9667f97d
UD
3576 * malloc/hooks.c (__malloc_check_init): Remove printf.
3577
6d4c073b
RM
35782008-07-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
3579
3580 * sysdeps/mach/hurd/bits/fcntl.h: Include <sys/types.h>.
3581
b7432416
UD
35822008-07-12 Ulrich Drepper <drepper@redhat.com>
3583
3584 * nscd/connections.c (main_loop_poll): Fix handling of read errors
3585 from inotify.
3586 (main_loop_epoll): Likewise.
3587
44abc397
UD
35882008-07-09 Ulrich Drepper <drepper@redhat.com>
3589
835113c6
UD
3590 * resolv/res_send.c: Remove unnecessary res_pquery prototype.
3591
fdc769f6
UD
3592 * resolv/res_query.c (__libc_res_nquery): Issue debug message only
3593 if DEBUG is defined.
3594
44abc397
UD
3595 * resolv/res_query.c (__libc_res_nquery): Align buffer for T_AAAA
3596 query. Adjust buffer size computation for padding.
3597
38dc8fad
UD
35982008-07-08 Ulrich Drepper <drepper@redhat.com>
3599
75684bd7
UD
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.
3603
38dc8fad
UD
3604 [BZ #6719]
3605 * libio/iosetvbuf.c (_IO_setvbuf): Correctly clear buffering flags
3606 when selecting fully-buffered stream.
3607 Patch by Wang Xin <wxinee@gmail.com>.
3608
107f4ac2
RM
36092008-07-06 Samuel Thibault <samuel.thibault@ens-lyon.org>
3610
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.
3617
45ec3e79
UD
36182008-07-06 Ulrich Drepper <drepper@redhat.com>
3619
3620 [BZ #6723]
3621 * time/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
3622
0a583b54
RM
36232008-07-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
3624
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
3628 __hurd_dfail.
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.
3634
d5a0160b
RM
36352008-03-04 Samuel Thibault <samuel.thibault@ens-lyon.org>
3636
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.
3643
80922a99
UD
36442008-06-27 Ulrich Drepper <drepper@redhat.com>
3645
3646 [BZ #6657]
3647 * time/strptime_l.c: Don't clear s.era_cnt after successful match
3648 of %EY.
3649 Patch by Petr Baudis.
3650
34ca2ff7
UD
36512008-06-26 Ulrich Drepper <drepper@redhat.com>
3652
5ee0f5e2 3653 * resolv/res_debug.c (__p_type_syms): Add ns_t_dname entry.
34ca2ff7
UD
3654 Patch by Peter Jones <pjones@redhat.com>.
3655
104426b6
UD
36562008-06-25 Ulrich Drepper <drepper@redhat.com>
3657
3658 [BZ #6654]
3659 * stdlib/canonicalize.c (__realpath): readlink can write too much
3660 into the buffer on platforms without PATH_MAX.
3661
7166d23f
UD
36622008-06-17 Carlos O'Donell <carlos@codesourcery.com>
3663
4cb8e687 3664 [BZ #6653]
7166d23f
UD
3665 * posix/tst-regex.c (main): Rename to...
3666 (do_test): ... this. Remove cmdline option processing.
3667 (TIMEOUT): Define.
3668 (TEST_FUNCTION): Define.
3669 (CMDLINE_OPTIONS): Define.
3670
974069d8
UD
36712008-06-25 Ulrich Drepper <drepper@redhat.com>
3672
3673 [BZ #5210]
3674 * configure.in: Add -Werror to -fstack-protector test to catch
3675 unsupported architectures.
3676 Patch by Gilles Esponasse <g.esp@free.fr>.
3677
cefa2dd3
UD
36782008-06-17 Joseph Myers <joseph@codesourcery.com>
3679
3680 * stdlib/tst-setcontext.c: Set back_in_main before exit if
3681 getcontext returns ENOSYS.
3682
c00d1128
UD
36832008-06-18 Ulrich Drepper <drepper@redhat.com>
3684
3685 * nscd/connections.c (main_loop_poll): Fix test for read error.
3686 (main_loop_epoll): Likewise.
3687
a0edbb48
UD
36882008-06-13 Ulrich Drepper <drepper@redhat.com>
3689
d0a1ae94
UD
3690 * sysdeps/posix/getaddrinfo.c: Move _res_hconf_init call to a
3691 better place so it is not called when nscd is used.
3692
a0edbb48
UD
3693 * nscd/connections.c: Also recognize and handle changes to the
3694 resolver configuration file.
3695
46f70b3c
UD
36962008-06-12 Ulrich Drepper <drepper@redhat.com>
3697
5bcc6c0f
UD
3698 * time/strftime.c: Pass reference to tzset_called around to handle
3699 recursive calls.
3700
3701 [BZ #6612]
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>.
3705
f854efd7
UD
3706 * resolv/nss_dns/dns-host.c (gaih_getanswer): Don't
3707 unconditionally use second gaih_getanswer_slice result.
3708
46f70b3c
UD
3709 * sysdeps/posix/getaddrinfo.c (gai_inet): Remove unnecessary test.
3710 (getaddrinfo): RES must always be non-NULL.
3711
9ea8bfec
UD
37122008-06-12 Jakub Jelinek <jakub@redhat.com>
3713
3714 * sysdeps/powerpc/powerpc64/fpu/s_llround.S (__llround): Avoid using
3715 cr[34] registers.
3716 * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S (__llroundf): Likewise.
3717 * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S (__llround):
3718 Likewise.
3719 * sysdeps/powerpc/powerpc32/fpu/s_lround.S (__lround): Avoid using cr3
3720 register.
3721
5a337776
UD
37222008-06-12 Ulrich Drepper <drepper@redhat.com>
3723
5228ba2f
UD
3724 * nscd/nscd.h (struct database_dyn): Add inotify_descr and clear_cache
3725 fields.
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
3733 reported changes.
3734 (main_loop_epoll): Likewise.
3735 * nscd/cache.c (prune_cache): Don't stat files for databases if
3736 inotify is used.
3737 * sysdeps/unix/sysv/linux/Makefile [subdir=nscd]
3738 (CFLAGS-connections.c): Add -DHAVE_INOTIFY.
3739
5a337776
UD
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.
3745
9ad58cc3
UD
37462008-06-11 Ulrich Drepper <drepper@redhat.com>
3747
3748 * nscd/mem.c (gc): Initialize obstack earlier so that if we jump
3749 out we don't use uninitialized memory.
3750
3751 * nscd/hstcache.c (cache_addhst): Send correct number of bytes to
3752 the client.
3753
c1283552
UD
37542008-06-10 Ulrich Drepper <drepper@redhat.com>
3755
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.
3759
eef8a803
JJ
37602008-06-05 Jakub Jelinek <jakub@redhat.com>
3761
3762 * misc/regexp.h (compile): Use __REPB_PREFIX macro.
3763 Avoid segfault if first GETC returns eof/'\0'/'\n'.
3764
ee78670e
JJ
37652008-06-03 Jakub Jelinek <jakub@redhat.com>
3766
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>.
3770
62605cbf
UD
37712008-05-26 Jim Meyering <meyering@redhat.com>
3772
10966640 3773 Remove more useless "if" tests before "free".
62605cbf
UD
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.
3780
f63abf58
UD
37812008-05-24 Ulrich Drepper <drepper@redhat.com>
3782
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.
3787
ad8a5511
JJ
37882008-05-24 Jakub Jelinek <jakub@redhat.com>
3789
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.
f63abf58
UD
3795 * stdio-common/scanf16.c: New file.
3796 * stdio-common/scanf17.c: New file.
ad8a5511 3797
e2003883
UD
37982008-05-24 Ulrich Drepper <drepper@redhat.com>
3799
3800 * resolv/res_send.c (send_dg): If we already have one of two
b5ba2c79 3801 answers and the server reports SERVFAIL, NOTIMP, or REFUSED, then
e2003883
UD
3802 use the one answer insted of failing.
3803
acbb9873
UD
38042008-02-20 Ryan S. Arnold <rsa@us.ibm.com>
3805
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__.
3809
e85f1d6a
RM
38102008-05-21 Roland McGrath <roland@redhat.com>
3811
3812 * shlib-versions (sparc.*-.*-.*, sparc64.*-.*-.*): Add ABI lines.
3813
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.
3817
3818 * scripts/soversions.awk: Grok ABI line.
3819 * Makeconfig ($(common-objpfx)soversions.mk): Likewise.
3820 Emit definition for abi-name variable.
3821
d8e763c6
UD
38222008-05-21 Ulrich Drepper <drepper@redhat.com>
3823
e92799fc 3824 * string/endian.h: Define new fixed-size hto* and *toh macros only
e85f1d6a 3825 if [__USE_BSD].
e92799fc 3826
d8e763c6
UD
3827 * iconvdata/Depend: Add localedata.
3828
009ef333
RM
38292008-05-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
3830
3831 * bits/termios.h (ONLCR): Define under [__USE_XOPEN] too.
3832
86746abb
JJ
38332008-05-08 David S. Miller <davem@davemloft.net>
3834
3835 * sysdeps/unix/sysv/linux/sparc/sparc32/setcontext.S: Use
3836 HIDDEN_JUMPTARGET.
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.
f63abf58 3842 * scripts/data/localplt-sparc64-linux-gnu.data: New file.
86746abb 3843
5e6f34c2
JJ
38442008-05-21 Jakub Jelinek <jakub@redhat.com>
3845
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.
3854
4beb4532
UD
38552008-05-20 Ulrich Drepper <drepper@redhat.com>
3856
3857 * include/inline-hashtab.h (higher_prime_number): Fix type of mid
3858 variable.
3859
ed8f38ba
JJ
38602008-05-20 Jakub Jelinek <jakub@redhat.com>
3861
3862 * sysdeps/unix/sysv/linux/sparc/sparc32/sigcontextinfo.h
3863 (FIRST_FRAME_POINTER): Define.
3864
38652008-05-09 David S. Miller <davem@davemloft.net>
3866
3867 * sysdeps/sparc/sparc64/backtrace.c: New file.
3868
c1b8190a
JJ
38692008-05-14 David S. Miller <davem@davemloft.net>
3870
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.
3875
84aacd93
JJ
38762008-05-19 Jakub Jelinek <jakub@redhat.com>
3877
3878 * elf/soinit.c (__EH_FRAME_BEGIN__): Remove.
3879
5908f779
UD
38802008-05-19 Ulrich Drepper <drepper@redhat.com>
3881
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.
3884
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
3887 success.
3888
528741cb
UD
38892008-05-18 Ulrich Drepper <drepper@redhat.com>
3890
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.
3908
343996c4
UD
39092008-05-17 Ulrich Drepper <drepper@redhat.com>
3910
5811d72b
UD
3911 * nscd/mem.c (gc): Avoid stack overflow when allocating move list.
3912
fa526148
UD
3913 * nscd/mem.c (gc): Correctly determine highest used array element
3914 in mark.
3915
77d40f10
UD
3916 * nscd/mem.c (markrange): Add assert to check entries are all
3917 aligned. Small cleanup in bitmap use.
3918
8884028c
UD
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.
3923
b2159575
UD
3924 * nscd/mem.c (gc): Fix test for stack overuse.
3925
5c9629d2
UD
3926 * nscd/aicache.c (addhstaiX): Fix a few small problems, cleanups,
3927 more asserts.
3928
66d90496
UD
3929 * sysdeps/posix/getaddrinfo.c (gaih_inet): If nscd reports no
3930 entry is available, believe it.
3931
343996c4
UD
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.
3936
91c8a74b
UD
39372008-05-16 Ulrich Drepper <drepper@redhat.com>
3938
74e13385
UD
3939 * string/strcasestr.c (CMP_FUNC): Use __strncasecmp, not strncasecmp.
3940
91c8a74b
UD
3941 * sysdeps/posix/getaddrinfo.c (gaih_inet): After gethostbyname4_r
3942 lookup, don't assign canon unconditionally.
3943
0caca71a
UD
39442008-05-14 Ulrich Drepper <drepper@redhat.com>
3945
3946 * string/Makefile (distribute): Add str-two-way.h.
3947
39482008-03-29 Eric Blake <ebb9@byu.net>
3949
3950 Rewrite string searches to O(n) rather than O(n^2).
3951 * string/str-two-way.h: New file. For linear fixed-allocation
3952 string searching.
3953 * string/memmem.c: New implementation.
3954 * string/strstr.c: New implementation.
3955 * string/strcasestr.c: New implementation.
3956
b194db79
UD
39572008-04-11 Paolo Bonzini <bonzini@gnu.org>
3958
3959 * posix/regcomp.c (optimize_utf8): Add a note on why we test
3960 opr.ctx_type.
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
3967 create_cd_newstate.
3968
c8d49f05
UD
39692008-05-14 Ulrich Drepper <drepper@redhat.com>
3970
215a8745
UD
3971 [BZ #6428]
3972 * configure.in: Don't use $CFLAGS when assembling, use $ASFLAGS.
3973
2f9a1be8
UD
3974 [BZ #6442]
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.
3983
c8d49f05
UD
3984 * iconvdata/run-iconv-test.sh: Use = instead of == in test.
3985 Patch by Reuben Thomas.
3986
a754f018
UD
39872008-05-14 Joseph Myers <joseph@codesourcery.com>
3988
3989 * iconvdata/Makefile (bug-iconv6-ENV, tst-iconv7-ENV): Define.
3990
372bfcac
UD
39912008-05-14 Ulrich Drepper <drepper@redhat.com>
3992
a754f018
UD
3993 * iconvdata/bug-iconv6.c (do_test): Use de_DE.UTF-8 locale.
3994
5deca9bb
UD
3995 [BZ #6461]
3996 * iconv/gconv_simple.c (BODY for __gconv_transform_ascii_internal):
3997 Add missing braces.
3998 (BODY for __gconv_transform_internal_ascii): Likewise.
3999
af77c9b7 4000 [BZ #6472]
5fab5544
UD
4001 * sysdeps/posix/getaddrinfo.c (get_scope): Loopback addresses have
4002 to be treated like link-local addresses.
5846c4e2
UD
4003 (match_prefix): Don't treat IPv4 loopback address special when
4004 converting to v4 mapped addressed.
5fab5544 4005
0caca71a 4006 * sysdeps/posix/getaddrinfo.c (getaddrinfo): Call _res_hconf_init
1f039824 4007 if necessary.
b194db79
UD
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.
1f039824 4011
18a74157
UD
4012 * sysdeps/posix/getaddrinfo.c: Implement handling of DCCP, UDPlite,
4013 and SCTP.
372bfcac
UD
4014
4015 * nss/getent.c (ahosts_keys_int): Handle all known socket types.
4016
4017 * inet/netinet/in.h (IPPIPPROTO_DCCP, IPPROTO_UDPLITE): Define.
4018
4019 * sysdeps/unix/sysv/linux/bits/socket.h (SOCK_DCCP): Define.
4020
f05ac8f5
UD
40212008-05-13 Ulrich Drepper <drepper@redhat.com>
4022
4023 * po/lt.po: New file. From Lituanian translation team.
4024
c9ff0187
UD
40252008-01-30 Alexandre Oliva <aoliva@redhat.com>
4026
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
4041 binutils.
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,
f05ac8f5 4046 sysdep-rtld-routines): Add tlsdesc and dl-tlsdesc for elf subdir.
c9ff0187
UD
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
4062 tlsdesc_table.
4063 * sysdeps/x86_64/Makefile (sysdep-dl-routines, sysdep_routines,
f05ac8f5 4064 sysdep-rtld-routines): Add tlsdesc and dl-tlsdesc for elf subdir.
c9ff0187
UD
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.
4082
a3636e8b
UD
40832008-05-11 Ulrich Drepper <drepper@redhat.com>
4084
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.
4087
a7eb802f
UD
40882008-02-11 Joseph Myers <joseph@codesourcery.com>
4089
4090 [BZ #3406]
4091 * sysdeps/ieee754/flt-32/w_expf.c (o_threshold): Correct value.
4092 * math/libm-test.inc (exp_test): Test 88.72269439697265625.
4093
3490f01d
UD
40942008-05-11 Ulrich Drepper <drepper@redhat.com>
4095
3d7eeebe
UD
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>.
4099
3490f01d
UD
4100 * string/tester.c (test_memcmp): Add a few more tests.
4101 Patch by Mats Erik Andersson <ynglingatal@comhem.se>.
4102
7e71e55f
UD
41032008-05-10 Ulrich Drepper <drepper@redhat.com>
4104
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.
343996c4 4113 * nscd/servicescache.c: Likewise.
7e71e55f 4114
7396d0a9
RM
41152008-05-10 Roland McGrath <roland@redhat.com>
4116
4117 [BZ #6505]
4118 * sysdeps/unix/sysv/linux/sys/user.h: Replace with #error stub.
4119
c5ee217f
UD
41202008-05-08 David S. Miller <davem@davemloft.net>
4121
b29899ae
UD
4122 * misc/truncate64.c (truncate64): Use __truncate not truncate.
4123
c5ee217f
UD
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
4131 is not even used.
4132 (__log1pl): Use __frexpl.
4133
1eb946b9
UD
41342008-05-10 Ulrich Drepper <drepper@redhat.com>
4135
4136 * include/resolv.h: Adjust __libc_res_nquery and __libc_res_nsend
4137 prototypes.
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
4142 af==AF_UNSPEC.
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
4149 available.
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
4153 af==AF_UNSPEC.
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
4157 calls.
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.
4161 Change all callers.
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
4164 send_dg.
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
4168 __libc_res_nquery.
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
4177 available.
4178
b7fb703a
JJ
41792008-05-05 David S. Miller <davem@davemloft.net>
4180
4181 * sysdeps/sparc/sparc32/Makefile: Use -mcpu=v7 for initfini.s build.
4182 * sysdeps/sparc/sparc64/Makefile: Use -mcpu=v9 for initfini.s build.
4183
2256e43d
RM
41842007-09-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
4185
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.
8bb52dbf
RM
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.
2256e43d
RM
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.
4206
4ce349e5
JJ
42072008-05-01 David S. Miller <davem@davemloft.net>
4208
a86a7a39
JJ
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.
2256e43d 4216
4ce349e5
JJ
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.
4220
89a8963d
UD
42212008-04-30 Ulrich Drepper <drepper@redhat.com>
4222
4223 * sysdeps/unix/sysv/linux/bits/resource.h: Define RUSAGE_THREAD and
4224 RUSAGE_LWP.
4225 * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Likewise.
4226 * sysdeps/unix/sysv/linux/alpha/bits/resource.h: Likewise.
4227
b5ec5fce
JJ
42282008-04-30 Jakub Jelinek <jakub@redhat.com>
4229
4230 * stdlib/tst-setcontext.c: Include unistd.h.
4231
d4e92d9e
JJ
42322008-04-25 David S. Miller <davem@davemloft.net>
4233
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.
4237
7eb5e6c9
UD
42382008-04-22 Jakub Jelinek <jakub@redhat.com>
4239
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.
4243
4244 * nscd/nscd.h (dbs): Make hidden.
4245
4246 * sysdeps/unix/sysv/linux/times.c (__times): Fix check for EFAULT.
4247 Avoid returning -1, return 0 instead.
4248
0073dd2d
UD
42492008-04-19 Ulrich Drepper <drepper@redhat.com>
4250
4251 * resolv/res_mkquery.c (__res_nopt): Use NS_PUT16 instead of ns_put16.
4252
c52137d3
UD
42532008-04-15 Ulrich Drepper <drepper@redhat.com>
4254
4255 [BZ #5209]
4256 * sysdeps/unix/sysv/linux/times.c: New file.
4257
4258 [BZ #5381]
4259 * nscd/nscd.h: Define enum in_flight, mem_in_flight, and
4260 mem_in_flight_list variables. Add new parameter to mempool_alloc
4261 prototype.
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
4277 of -fpie.
4278
4279 * nscd/connections.c (handle_request): Provide better error message
4280 in case SELinux forbids the service.
4281
4282 * version.h (VERSION): Bump to 2.8.90.
4283
39546e34
JJ
42842008-04-17 Jakub Jelinek <jakub@redhat.com>
4285
4286 * sysdeps/unix/sysv/linux/dl-osinfo.h: Include fcntl.h.
4287
cf3a8c7f
UD
42882008-04-11 Ulrich Drepper <drepper@redhat.com>
4289
9e113ecd
UD
4290 * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h (__signbitl):
4291 Also use for 32-bit.
3b6d574e
UD
4292 * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c (__nearbyintl): Use
4293 __nextafter instead of nextafter to avoid local PLT.
c3a0ead4
UD
4294 * sysdeps/powerpc/fpu/e_sqrt.c: Avoid call to fetestexcept.
4295 * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
4296
3781ec29
UD
4297 * scripts/data/localplt-powerpc64-linux-gnu.data: New file.
4298
246ec411
UD
4299 * sysdeps/powerpc/fpu/fenv_libc.h: Add libm_hidden_proto for
4300 __fe_nomask_env.
3cc56f92
UD
4301 * sysdeps/powerpc/fpu/fe_nomask.c: Add libm_hidden_def. Include
4302 <fenv_libc.h> instead of <fenv.h>.
246ec411
UD
4303 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c: Likewise.
4304 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c: Likewise.
4305
4306 * sysdeps/powerpc/bits/fenv.h: Make safe for C++.
4307
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
4313 fegetexcept.
4314 * sysdeps/powerpc/fpu/feenablxcpt.c: Likewise.
4315 * sysdeps/powerpc/fpu/fraiseexcpt.c (__feraiseexcept): Avoid call
4316 to fetestexcept.
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
4327 calls.
4328 * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
4329
2dc4a2fd
UD
4330 * sysdeps/unix/sysv/linux/configure.in: Bump minimal kernel
4331 version for ppc64 to 2.4.21 since without it makecontext will fail.
4332
fe3350ee
UD
4333 * elf/tls-macros.h [__powerpc64__] (__TLS_GET_ADDR): Define according
4334 to the ABI in use.
4335 [__powerpc64__] (TLS_LD): Use __TLS_GET_ADDR instead of
4336 .__tls_get_addr.
4337 [__powerpc64__] (TLS_GD): Likewise.
cf3a8c7f 4338
c1e6b459
UD
43392007-11-20 Ryan S. Arnold <rsa@us.ibm.com>
4340
7763d4f1 4341 [BZ #4997]
c1e6b459
UD
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
4344 mantissa.
4345 * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S (__llround):
4346 Likewise. Also account for when x is an odd number between 2^52
4347 and 2^53-1.
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.
4352
22dca1ea
UD
43532008-04-11 Jakub Jelinek <jakub@redhat.com>
4354
4355 * configure.in: Check for -fno-section-anchors in addition to
4356 -fno-toplevel-reorder.
4357
5d59f4a5
UD
43582008-04-11 Ulrich Drepper <drepper@redhat.com>
4359
4360 * include/features.h (__GLIBC_MINOR__): Bump to 8.
4361
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.
4368
91e32540
UD
43692008-04-11 Jakub Jelinek <jakub@redhat.com>
4370
4371 [BZ #5443]
4372 * time/era.c: Transform __libc_setlocale_lock into rwlock.
4373 * time/alt_digit.c: Likewise.
4374 * wcsmbs/wcsmbsload.c: Likewise.
4375
fd490ac8
UD
43762008-04-10 Ulrich Drepper <drepper@redhat.com>
4377
1db5b6f4
UD
4378 * version.h (VERSION): Bump to 2.8.
4379
fd490ac8
UD
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.
4391
153cf972
UD
43922008-01-24 Steven Munroe <sjmunroe@us.ibm.com>
4393
4394 [BZ #5741]
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.
4399
d2207f32
UD
44002008-02-21 Alan Modra <amodra@bigpond.net.au>
4401
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.
4405
13d83320
UD
44062008-04-03 Steven Munroe <sjmunroe@us.ibm.com>
4407
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.
4412
5f7aead5
UD
44132008-02-19 Steven Munroe <sjmunroe@us.ibm.com>
4414
4415 [BZ #5768]
4416 * sysdeps/powerpc/fpu/Makefile (libm-tests): Add test-powerpc-snan.
4417 * sysdeps/powerpc/fpu/test-powerpc-snan.c: New file.
4418
44192008-02-18 Steven Munroe <sjmunroe@us.ibm.com>
4420
4421 [BZ #5768]
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.
4426
117df5d9
JJ
44272008-04-10 Jakub Jelinek <jakub@redhat.com>
4428
4429 * stdlib/tst-makecontext.c (othervar): New variable.
4430 (cf): Test sign extending the argument to long.
4431
3b32d8a2
UD
44322008-03-03 Steven Munroe <sjmunroe@us.ibm.com>
4433
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.
4441
9fb11d4c
UD
44422008-02-22 Alan Modra <amodra@bigpond.net.au>
4443
4444 * elf/Makefile (tests): Substitute tests-vis-yes here.
4445 (tests-vis-yes): Delete.
4446 (modules-name, modules-vis-yes): Similarly.
4447
facd1d8e
UD
44482008-02-12 Pete Eberlein <eberlein@us.ibm.com>
4449
4450 [BZ #4407]
4451 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
4452 Preserve sign in signgamp when x is zero.
4453
aece054b
UD
44542007-10-26 Steven Munroe <sjmunroe@us.ibm.com>
4455
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.
4462
6c30d38f
UD
44632008-04-09 Ulrich Drepper <drepper@redhat.com>
4464
21208604 4465 [BZ #4314]
13d83320
UD
4466 * sysdeps/i386/i686/memcpy.S: Optimize copying of equally aligned
4467 buffers.
21208604 4468
2f611ada 4469 [BZ #5209]
d1235fdf
UD
4470 * sysdeps/unix/sysv/syscalls.list: The times syscall doesn't have
4471 a reserved error value.
2f611ada 4472
6c30d38f
UD
4473 * stdlib/tst-makecontext.c: Change parameter to cf to negative
4474 value to check for correct sign extension.
4475
4476 [BZ #5436]
4477 * sysdeps/unix/sysv/linux/x86_64/makecontext.c (__makecontext):
4478 Copy 64-bit parameter values even though this is not required in
4479 the standard.
4480
4481 * sysdeps/unix/sysv/linux/x86_64/vfork.S (__vfork): Record return
4482 PC save.
4483
de1bbf68
UD
44842008-02-14 Daniel Jacobowitz <dan@codesourcery.com>
4485
4486 * sysdeps/unix/sysv/linux/i386/vfork.S (__vfork): Record return
4487 PC save.
4488
9aef35a5
UD
44892008-04-09 Jakub Jelinek <jakub@redhat.com>
4490
4491 * nss_files/files-XXX.c (_nss_files_getXXent_r): Restore saved errno.
4492
a7925a24
UD
44932008-04-09 Ulrich Drepper <drepper@redhat.com>
4494
4495 [BZ #5998]
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.
4499
7b61ef24
UD
45002008-04-08 Ulrich Drepper <drepper@redhat.com>
4501
c2a684a4
UD
4502 [BZ #6024]
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.
4506
7b61ef24
UD
4507 * locale/programs/ld-collate.c (collate_read): Ignore script lines
4508 as well when ignoring the whole category.
4509
f6d749f0
UD
45102008-04-07 Ulrich Drepper <drepper@redhat.com>
4511
4512 [BZ #6042]
4513 * sysdeps/unix/sysv/linux/net/ethernet.h: Add a few more
4514 ETHERTYPE_* definitions.
4515 Patch partly by Aurelien Jarno <aurelien@aurel32.net>.
4516
1e99aede
JJ
45172008-04-07 Jakub Jelinek <jakub@redhat.com>
4518
4519 * stdlib/mbtowc.c (__no_r_state): Remove.
4520 (mbtowc): New static state variable. Use it instead of
4521 __no_r_state.
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.
4528
fcf90e0a
UD
45292008-04-07 Ulrich Drepper <drepper@redhat.com>
4530
4531 [BZ #5475]
4532 * resolv/res_init.c: Handle scope IDs in resolv.conf.
4533
ae39e102
JJ
45342008-04-07 Jakub Jelinek <jakub@redhat.com>
4535
4536 * malloc/mtrace.pl: Use $@ instead of $* to keep perl 5.10 quiet.
4537
2503dd30
UD
45382008-04-06 Ulrich Drepper <drepper@redhat.com>
4539
4540 * po/nl.po: Update from translation team.
4541
3eb9c809
UD
45422008-03-31 Ulrich Drepper <drepper@redhat.com>
4543
4544 [BZ #6007]
4545 * string/strfry.c: Handle empty strings again.
4546
9a69db29
UD
45472008-03-30 Ulrich Drepper <drepper@redhat.com>
4548
4549 [BZ #5443]
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.
4557
2ecc7d93
UD
45582008-03-30 Jakub Jelinek <jakub@redhat.com>
4559
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.
4565
221e5230
UD
45662008-03-30 Ulrich Drepper <drepper@redhat.com>
4567
faa091c6
UD
4568 * po/nl.po: Update from translation team.
4569
221e5230
UD
4570 * sysdeps/unix/opendir.c (__alloc_dir): If allocation fails for size
4571 provided through st_blksize, try the default size before giving up.
4572
1c272665
UD
45732008-03-29 Ulrich Drepper <drepper@redhat.com>
4574
43f6bec1
UD
4575 * stdio-common/vfprintf.c (vfprintf): Correct overflow test.
4576
e8a32126
UD
4577 [BZ #5939]
4578 * sysdeps/posix/tempname.c (__gen_tempname): Correct flag selection.
4579
1e489af9
UD
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>.
4583
1d20f7f8
UD
4584 [BZ #5979]
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.
4599
1c272665
UD
4600 [BZ #5995]
4601 * stdlib/strtod_l.c: Use correct sign for result in one more
4602 underflow case.
4603 Patch by Eric Blake <ebb9@byu.net>.
4604
48cc060e
UD
46052008-03-27 Jakub Jelinek <jakub@redhat.com>
4606
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
4610 call.
4611 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Remove open and creat
4612 system calls.
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.
4616
f96853be
UD
46172008-03-27 Ulrich Drepper <drepper@redhat.com>
4618
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
4623 headers.
4624 * sysdeps/unix/sysv/linux/sysconf.c: Define legacy_ARG_MAX and use
4625 it instead of ARG_MAX.
4626
fde15fdc
UD
46272008-03-25 Jakub Jelinek <jakub@redhat.com>
4628
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.
4632
87b9b50f
UD
46332008-03-07 Martin Schwidefsky <schwidefsky@de.ibm.com>
4634
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.
4641
af0498dc
UD
46422008-03-09 Andreas Jaeger <aj@suse.de>
4643
4644 [BZ #5857]
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>.
4648
4649 * math/libm-test.inc (nearbyint_test): Add new test cases from #5857.
4650 (rint_test): Likewise.
4651
0ab7632d
UD
46522008-03-24 Ulrich Drepper <drepper@redhat.com>
4653
0facd3df
UD
4654 * nis/nis_call.c (nis_server_cache_search): Save errno around stat
4655 call.
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.
4660
7e570c55
UD
4661 * po/vi.po: New Vietnamese translation.
4662
e093c247
UD
4663 * sysdeps/unix/sysv/linux/adjtime.c: Correctly use
4664 ADJ_OFFSET_SS_READ.
4665
0ab7632d
UD
4666 * sysdeps/unix/sysv/linux/bits/sched.h: Add new CLONE_* flags,
4667 remove CLONE_STOPPED.
4668
0726cdf7
UD
46692008-02-10 Jim Meyering <meyering@redhat.com>
4670
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.
4690
354b7527
JJ
46912008-03-18 Jakub Jelinek <jakub@redhat.com>
4692
4693 * sysdeps/unix/sysv/linux/dl-sysdep.h: Use __ASSEMBLER__ instead
4694 of ASSEMBLER.
4695
ca668b29
UD
46962008-03-11 Ulrich Drepper <drepper@redhat.com>
4697
4698 [BZ #5903]
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.
4707
f3dc3415
AJ
47082008-03-09 Andreas Jaeger <aj@suse.de>
4709
4710 [BZ #5753]
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>.
4715
a8fd84d4
RM
47162008-03-08 Roland McGrath <roland@frob.com>
4717
2b965f1b
RM
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>.
4722
a8fd84d4
RM
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>.
4726
368a8dec
UD
47272008-03-08 Ulrich Drepper <drepper@redhat.com>
4728
b3278554
UD
4729 [BZ #5774]
4730 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Consume closing brace
c6c00e0d 4731 of NAN(...) sequence.
b3278554
UD
4732 * stdlib/Makefile (tests): Add tst-strtod6.
4733 * stdlib/tst-strtod6.c: New file.
4734
4735 * inet/inet6_opt.c (inet6_opt_init): Check extlen for overflow.
4736
2127a186
UD
4737 [BZ #5762]
4738 * posix/getopt.c (_getopt_internal_r): Clarify error message by
4739 putting offending option character in quotes. Clean up error
4740 messages.
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.
4758
725c0c87
UD
4759 [BZ #5760]
4760 * inet/inet6_opt.c (inet6_opt_init): Fix ip6h_len computation.
4761 Patch by Roland Bless <roland@bless.de>.
4762
368a8dec
UD
4763 * sysdeps/unix/sysv/linux/dl-sysdep.c: Avoid unnecessary code for
4764 .o file.
4765 * elf/Makefile (routines): Add dl-sysdep.
4766 (elide-routines.os): Likewise.
4767
78c2bf0e
UD
47682008-03-07 Ulrich Drepper <drepper@redhat.com>
4769
7c22c7ec
UD
4770 [BZ #5786]
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
4776 to ...
4777 * sysdeps/unix/sysv/linux/dl-sysdep.c: ...here.
4778 * sysdeps/unix/sysv/linux/dl-sysdep.h: Declare _dl_discover_osversion
4779 if necessary.
4780 * sysdeps/unix/sysv/linux/sysconf.c: Handle _SC_ARG_MAX here.
4781
93025f93
UD
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
4787 GLRO.
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.
4791
72f10127
UD
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.
4795
443db178
UD
4796 [BZ #5778]
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.
c71665ad
UD
4805 * io/tst-fchownat.c: Correctly handle _POSIX_CHOWN_RESTRICTED
4806 defined to zero.
443db178 4807
78c2bf0e
UD
4808 * sysdeps/x86_64/rtld-memset.c: New file.
4809
443db178 48102008-02-26 Harsha Jagasia <harsha.jagasia@amd.com>
78c2bf0e
UD
4811
4812 * sysdeps/x86_64/cacheinfo.c (NOT_USED_RIGHT_NOW): Remove ifdef guards.
4813
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.
4817
48182007-10-15 H.J. Lu <hongjiu.lu@intel.com>
4819
4820 * sysdeps/x86_64/cacheinfo.c
4821 (__x86_64_preferred_memory_instruction): New variable.
4822 (init_cacheinfo): Initialize __x86_64_preferred_memory_instruction.
4823
4824 * sysdeps/x86_64/memset.S: Rewrite.
4825
dff37515
UD
48262008-03-04 Jakub Jelinek <jakub@redhat.com>
4827
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.
4833 * libio/obprintf.c
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
4851 @@GLIBC_2.8.
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
4856 libc_hidden_proto.
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
4862 @@GLIBC_2.8.
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.
4872
d835f136
UD
48732008-03-04 Ulrich Drepper <drepper@redhat.com>
4874
a4bb445a
UD
4875 [BZ #5779]
4876 * misc/sys/queue.h: Add STAILQ_CONCAT and TAILQ_CONCAT definitions.
4877 Patch by Roy Marples <roy@marples.name>.
4878
c958a6a4
UD
4879 [BZ #5736]
4880 * malloc/malloc.c: Fix typo in comment.
4881
d835f136
UD
4882 [BZ #5627]
4883 * locale/iso-639.def: Add Shuswap.
4884
65b4743a
UD
48852008-02-25 Jakub Jelinek <jakub@redhat.com>
4886
4887 [BZ #5790]
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
4890 failure.
4891
3868fb6e
UD
48922008-03-03 Ulrich Drepper <drepper@redhat.com>
4893
27c377dd
UD
4894 [BZ #5818]
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
4899 be reused.
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
4903 values are zero.
4904 * nscd/nscd_helper.c (get_mapping): Fail if hash table module is zero.
4905
0f749099
UD
4906 [BZ #5854]
4907 * nis/ypclnt.c (yp_order): Fix handling of return value of
4908 do_ypcall_tr call.
4909 Patch by Jeff Moyer <jmoyer@redhat.com>.
4910
3868fb6e
UD
4911 * po/fr.po: Update from translation team.
4912
268dbf25
AJ
49132008-02-22 Andreas Jaeger <aj@suse.de>,
4914 Carlos O'Donell <carlos@systemhalted.org>
4915
4916 [BZ #5012]
4917 * FAQ.in: Describe why glibc needs to be compiled with
4918 optimization.
4919
73b82641
RM
49202008-02-19 Roland McGrath <roland@redhat.com>
4921
4922 * elf/elf.h (SHT_GNU_ATTRIBUTES): New macro.
4923
c9136393
UD
49242008-02-15 Ulrich Drepper <drepper@redhat.com>
4925
4926 [BZ #5737]
4927 * resolv/netdb.h: Make NI_MAXHOST and NI_MAXSERV available when
4928 __USE_MISC is defined.
4929
2e3e9ff1
UD
49302008-02-10 Ulrich Drepper <drepper@redhat.com>
4931
4932 * sysdeps/unix/sysv/linux/sys/timerfd.h: New file.
4933 * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers): Add
4934 sys/timerfd.h.
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.
4939
85202a2b
RM
49402008-02-08 Roland McGrath <roland@redhat.com>
4941
4942 * elf/elf.h (NT_PPC_SPE): New macro.
4943
708ef8a4
RM
49442008-02-06 Roland McGrath <roland@redhat.com>
4945
4946 * Makerules ($(common-objpfx)sysd-rules):
4947 Depend on $(sysdep-makeconfigs).
4948
363a641b
RM
49492008-01-31 Roland McGrath <roland@redhat.com>
4950
67fbfa5c
RM
4951 [BZ #5442]
4952 * configure.in: Use -print-file-name if it yields a directory,
4953 for each of include and include-fixed.
4954 * configure: Regenerated.
4955
363a641b
RM
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.
4959
0f0f9610
RM
49602008-01-30 Roland McGrath <roland@redhat.com>
4961
7bd00dbf
RM
4962 * manual/libc.texinfo: Update back-cover text.
4963
0f0f9610
RM
4964 * elf/elf.h (NT_386_TLS): New macro.
4965
16cd816f
RM
49662008-01-29 Roland McGrath <roland@redhat.com>
4967
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.
4975
f641ffcc
RM
49762008-01-24 Roland McGrath <roland@redhat.com>
4977
4978 * configure.in: Let configure fragments set base_os.
4979 * configure: Regenerated.
4980
b7e26885
UD
49812008-01-22 Ulrich Drepper <drepper@redhat.com>
4982
4983 * po/ko.po: Update from translation team.
4984
b4b166af
UD
49852008-01-12 H.J. Lu <hongjiu.lu@intel.com>
4986
4987 * sysdeps/i386/fpu/ftestexcept.c (fetestexcept): Use short for fnstsw.
4988
f66def9d
AJ
49892008-01-12 Andreas Jaeger <aj@suse.de>
4990
4991 [BZ #5040]
4992 * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h (enum EPOLL_EVENTS):
4993 Add EPOLLRDHUP.
4994
d3bc5e77
RM
49952008-01-20 Samuel Thibault <samuel.thibault@ens-lyon.org>
4996
4997 * hurd/hurdsock.c (_hurd_socket_server): Return the standard
4998 error EAFNOSUPPORT rather than non-standard EPFNOSUPPORT.
4999 * sunrpc/bindrsvprt.c (bindresvport): Likewise.
5000
4c533566
UD
50012007-10-23 Alexandre Oliva <aoliva@redhat.com>
5002
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
5009 to it.
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.
5014
a53d3f82
UD
50152008-01-16 Ulrich Drepper <drepper@redhat.com>
5016
a0f6c236
UD
5017 [BZ #5628]
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>.
5029
a53d3f82
UD
5030 [BZ #5607]
5031 * conform/data/fcntl.h-data: Fix posix_fadvise and posix_fallocate
5032 prototypes.
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
5049 in6addr_loopback.
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.
6107639e
UD
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
5060 NULL definition.
a53d3f82 5061
ebca8f73
UD
50622008-01-15 Ulrich Drepper <drepper@redhat.com>
5063
fbe90cd5
UD
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.
5072
ebca8f73
UD
5073 [BZ #5614]
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.
5078
7c33ca8b
UD
50792008-01-12 Ulrich Drepper <drepper@redhat.com>
5080
5081 * po/ko.po: Update from translation team.
5082
b8cc0848
AJ
50832008-01-11 Andreas Jaeger <aj@suse.de>
5084
5085 [BZ #5600]
5086 * sysdeps/unix/sysv/linux/sys/signalfd.h (struct
5087 signalfd_siginfo): Use 64-bit type for ssi_ptr to sync with Linux
5088 kernel header.
5089
49029a66
UD
50902008-01-10 Ulrich Drepper <drepper@redhat.com>
5091
5092 * sysdeps/posix/getaddrinfo.c (rfc3484_sort): Store result of
5093 native interface lookup in all the relevant places.
5094
99f05798
UD
50952008-01-10 Jakub Jelinek <jakub@redhat.com>
5096 Ulrich Drepper <drepper@redhat.com>
0efd1956
UD
5097
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.
5113
b3443701
UD
51142008-01-09 Ulrich Drepper <drepper@redhat.com>
5115
f6bacb8e
UD
5116 [BZ #5541]
5117 * sunrpc/rpc_thread.c (__rpc_thread_destroy): Also free xports and
5118 pollfd structures.
5119 Patch by André Cruz.
5120
aa693c68
UD
5121 [BZ #5545]
5122 * sunrpc/clnt_perr.c (clnt_sperror): Don't use fixed size buffer.
5123 (clnt_spcreateerror): Likewise.
5124
b3443701
UD
5125 [BZ #5553]
5126 * malloc/malloc.c (public_mALLOc): Set ar_ptr when trying main_arena.
5127 (public_mEMALIGn): Likewise.
5128 Patch mostly by Daniel Jacobowitz.
5129
148e12ed
UD
51302008-01-09 Jakub Jelinek <jakub@redhat.com>
5131
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.
5136
78c2bf0e 51372008-01-08 Jakub Jelinek <jakub@redhat.com>
4b1b449d
UD
5138
5139 * iconv/loop.c (UPDATE_PARAMS): Define to empty statement if not
5140 defined.
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
5145 status.
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.
5159
71edcafa
UD
51602008-01-07 Ulrich Drepper <drepper@redhat.com>
5161
5162 * libio/stdio.h (vscanf): Fix definition for loser compilers.
5163
0fbfe2f7
JJ
51642008-01-05 Jakub Jelinek <jakub@redhat.com>
5165
5166 [BZ #5112]
5167 * nscd/connections.c (restart): Fix condition.
5168
8726a12e
UD
51692008-01-03 Jakub Jelinek <jakub@redhat.com>
5170
5171 * ctype/ctype.h (__ctype_b_loc, __ctype_tolower_loc,
5172 __ctype_toupper_loc): Add __THROW.
5173
f4a1363e
UD
51742008-01-02 Ulrich Drepper <drepper@redhat.com>
5175
ad586879
UD
5176 * sysdeps/unix/sysv/linux/check_pf.c (make_request): Fix
5177 recognition of interface family.
5178
f4a1363e
UD
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.
5195
0dc6c5e4
UD
51962007-12-26 Ulrich Drepper <drepper@redhat.com>
5197
5198 * nss/nsswitch.c (__nss_lookup): Actually use alternative name in
5199 second lookup.
5200
80af8b82
UD
52012007-12-23 Ulrich Drepper <drepper@redhat.com>
5202
5203 * sysdeps/x86_64/cacheinfo.c (intel_02_known): New entry 0x3f.
5204 * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
5205
4bcecfb7
RM
52062007-12-17 Roland McGrath <roland@redhat.com>
5207
5208 * inet/ether_line.c (ether_line): Remove unused variable.
5209
52102007-12-17 Samuel Thibault <samuel.thibault@ens-lyon.org>
5211
5212 * login/forkpty.c (forkpty): Add const qualifier to parameters termp
5213 and winp.
5214 * login/openpty.c (openpty): Likewise.
5215 * login/pty.h (openpty, forkpty): Likewise.
5216 * manual/terminal.texi (openpty, forkpty): Likewise.
5217
4cd4c5d6
UD
52182007-12-17 Ulrich Drepper <drepper@redhat.com>
5219
78c2bf0e 5220 * malloc/malloc.c (public_cALLOc): For arenas other than
4cd4c5d6
UD
5221 main_arena, count all bytes inside the mprotect_size range of the
5222 heap as uninitialized.
5223
68631c8e
UD
52242007-12-16 Ulrich Drepper <drepper@redhat.com>
5225
d9961b6a
UD
5226 * elf/tst-execstack.c (do_test): Don't fail if SELinux forbids
5227 executable stacks.
5228
68631c8e
UD
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
5233 memory page.
be8c1500
UD
5234 * malloc/tst-trim1.c: New file.
5235 * malloc/Makefile (tests): Add tst-trim1.
68631c8e
UD
5236
5237 * malloc/malloc.c (do_check_malloc_state): Minimal cleanups.
5238
78b767a0
UD
52392007-12-14 Ulrich Drepper <drepper@redhat.com>
5240
5241 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INTERNAL_SYSCALL_ERROR_P):
5242 First cast argument to long
52386be7
UD
5243 * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_gettimeofday):
5244 Return long.
5245 (__vdso_clock_gettime): Likewise.
78b767a0
UD
5246 * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: Functions
5247 return long.
5248
bc3e1c12
UD
52492007-12-13 Ulrich Drepper <drepper@redhat.com>
5250
5251 * locale/nl_langinfo.c (nl_langinfo): Just call __nl_langinfo_l.
5252 * locale/nl_langinfo_l.c: Real implementation, copied from
5253 nl_langinfo.c.
5254 * include/langinfo.h: Add libc_hidden_proto for __nl_langinfo_l.
5255
77751669
UD
52562007-12-01 Jim Meyering <meyering@redhat.com>
5257
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., `^', `$'.
5261
f63e5063
UD
52622007-12-12 Ulrich Drepper <drepper@redhat.com>
5263
5264 * time/bug-getdate1.c (do_test): Don't use century values which
5265 aren't valid on 32-bit systems.
5266
a78814a9
UD
52672007-12-12 Jakub Jelinek <jakub@redhat.com>
5268
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__.
5273
52742007-12-12 Ulrich Drepper <drepper@redhat.com>
5275
5276 [BZ #5477]
5277 * io/fchmodat.c: Fix typo in stub_warning use.
5278 Patch by Petr Salinger.
5279
17edb30c
UD
52802007-12-11 Ulrich Drepper <drepper@redhat.com>
5281
58d11795
UD
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.
5286
5287 [BZ #5464]
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.
5292
5293 [BZ #5463]
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.
5298
cbf5760e
UD
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.
5302
17edb30c
UD
5303 * malloc/malloc.c (_int_malloc): sYSMALLOc might fail, in this
5304 case don't call alloc_perturb.
5305
ae18718f
UD
53062007-12-10 Ulrich Drepper <drepper@redhat.com>
5307
5308 * sysdeps/unix/sysv/linux/adjtime.c: Use ADJ_OFFSET_SS_READ if
5309 possible.
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.
5313
b4354cf4
UD
53142007-12-08 Ulrich Drepper <drepper@redhat.com>
5315
5316 [BZ #5424]
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.
5320
5321 [BZ #5451]
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.
5325
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.
5334
5335 [BZ #5428]
5336 * wcsmbs/wchar.h: Unconditionally undefine __need_mbstate and
5337 __need_wint_t.
5338
26e21e75
UD
53392007-12-07 Ulrich Drepper <drepper@redhat.com>
5340
87520ccc
UD
5341 [BZ #5427]
5342 * iconvdata/hp-roman9.c: New file.
5343 * iconvdata/Makefile: Add rules for hp-roman9.c.
5344 * iconvdata/tst-tables.sh: Add HP-ROMAN9.
b4354cf4 5345 * iconvdata/gconv-modules: Likewise.
87520ccc
UD
5346
5347 * iconvdata/hp-roman8.c: Use 8bit-gap instead of 8bit-generic.
5348 * iconvdata/Makefile: Adjust appropriately.
5349
26e21e75
UD
5350 [BZ #5441]
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.
5355
53562007-12-06 Aurelien Jarno <aurelien@aurel32.net>
5357
5358 [BZ #5452]
5359 * sysdeps/unix/sysv/linux/bits/sched.h: Use __extension__
87520ccc 5360 keyword for gcc's braced-groups.
26e21e75
UD
5361
53622007-12-07 Ulrich Drepper <drepper@redhat.com>
5363
5364 [BZ #5454]
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.
5368
9e80c123
UD
53692007-12-03 Ulrich Drepper <drepper@redhat.com>
5370
da0ff4ae
UD
5371 [BZ #5439]
5372 * sysdeps/unix/sysv/linux/sys/signalfd.h: Fix use of __nonnull.
5373
51bd20d9
UD
5374 [BZ #5435]
5375 * sysdeps/unix/sysv/linux/i386/makecontext.S: Align stack.
5376
d90d0256
UD
5377 * stdlib/tst-setcontext.c: Catch the case where the links gets
5378 messed up and we do not reach main again.
5379
9e80c123
UD
5380 * po/ca.po: Update from translation team.
5381
ae4287f8
UD
53822007-11-26 Ulrich Drepper <drepper@redhat.com>
5383
6701afc7 5384 * posix/unistd.h: Declare fsync also for __USE_XOPEN2K.
79fb2e02 5385 * posix/regex.h (REG_ENOSYS): Likewise.
a912a4f8 5386 * wcsmbs/wchar.h: Define __need_file also for __USE_XOPEN2K.
ae4287f8 5387
30294ea4
UD
53882007-11-25 Ulrich Drepper <drepper@redhat.com>
5389
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.
e8667ddc 5394 Clear array before use.
30294ea4
UD
5395
5396 * nscd/aicache.c (addhstaiX): Update statistics counter in case
10a4c1e9 5397 memory allocation failed.
e8667ddc
UD
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.
30294ea4 5403
715db78b
UD
54042007-11-23 Ulrich Drepper <drepper@redhat.com>
5405
609bb071
UD
5406 * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: Add open
5407 and creat system calls.
5408
715db78b
UD
5409 * sysdeps/unix/sysv/linux/check_native.c: Include <asm/types.h>.
5410
ea2c47b6
UD
54112007-11-23 Martin Schwidefsky <schwidefsky@de.ibm.com>
5412
5413 * sysdeps/unix/sysv/linux/Makefile [subdir=inet] (sysdep_headers):
5414 Add netiucv/iucv.h.
5415 * sysdeps/unix/sysv/linux/netiucv/iucv.h: New file.
5416 * sysdeps/unix/sysv/linux/opensock.c (__opensock): Add AF_IUCV
5417 protocol.
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.
5421
dcdcf4b9
UD
54222007-11-22 Martin Schwidefsky <schwidefsky@de.ibm.com>
5423
37143323
UD
5424 * sysdeps/s390/bits/string.h (strlen, strcpy, strncpy, strcat,
5425 strncat): Define as macros to avoid compile errors.
5426
dcdcf4b9
UD
5427 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Add open and
5428 creat entries.
5429
3a632674
UD
54302007-11-22 Ulrich Drepper <drepper@redhat.com>
5431
7ea8eb02
UD
5432 [BZ #5382]
5433 * nscd/nscd.h (NSCD_THREAD_STACKSIZE): Define.
5434 * nscd/connections.c (start_threads): Use NSCD_THREAD_STACKSIZE.
715db78b 5435 * nscd/mem.c (gc): Don't allocate arrays on the stack if they can
7ea8eb02 5436 overflow it.
70d5b6ef 5437 Partially based on a patch by Petr Baudis <pasky@suse.cz>.
7ea8eb02
UD
5438
5439 * sysdeps/unix/sysv/linux/nscd_setup_thread.c (setup_thread):
715db78b 5440 Return zero in case the thread library is not NPTL.
7ea8eb02 5441
5c3a3dba
UD
5442 [BZ #5375]
5443 * resolv/res_hconf.c (_res_hconf_reorder_addrs): Fix locking when
5444 initializing interface list.
5445
85883123
UD
5446 [BZ #5378]
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>.
5451
3a632674
UD
5452 * locale/programs/ld-collate.c (collate_read): Fix loop to match
5453 macro name.
5454
b73f9135
UD
54552007-11-19 Ulrich Drepper <drepper@redhat.com>
5456
ee72b971
UD
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.
5468
f4a79765
UD
5469 * sysdeps/posix/getaddrinfo.c (default_labels): Describe entry for
5470 Teredo tunnels.
b73f9135
UD
5471 * posix/gai.conf: Update for current default tables.
5472
429bd64d
UD
54732007-11-19 Ulrich Drepper <drepper@redhat.com>
5474
5475 * po/tr.po: Update from translation team.
5476
3c9af259
RM
54772007-11-18 Roland McGrath <roland@frob.com>
5478
76cf9889
RM
5479 * manual/arith.texi (Remainder Functions): Spelling fix.
5480 From Shaun Silk <genix@mysoul.com.au>.
5481
3c9af259
RM
5482 * sysdeps/mach/hurd/bits/fcntl.h (O_CLOEXEC): Fix value.
5483
238346ab
UD
54842007-11-17 Ulrich Drepper <drepper@redhat.com>
5485
5879ad50
UD
5486 * po/zh_CN.po: Update from translation team.
5487
238346ab
UD
5488 * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers):
5489 Add sys/signalfd.h and sys/eventfd.h.
5490
b80b9c77
UD
54912007-11-15 Bruno Haible <bruno@clisp.org>
5492
5493 [BZ #5346]
5494 * intl/dcigettext.c (struct known_translation_t): Turn msgid into a
5495 union.
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.
5500
2da2501c
AJ
55012007-11-15 Andreas Jaeger <aj@suse.de>
5502
5503 * sysdeps/ieee754/dbl-64/sincos.tbl: Fix size of union.
5504 Reported by Christoph Quirin Lauter <christoph.lauter@ens-lyon.fr>.
5505
68a6dcf5
UD
55062007-11-15 Ulrich Drepper <drepper@redhat.com>
5507
5508 * po/ko.po: Update from translation team.
5509
43850227
UD
55102007-11-14 Ulrich Drepper <drepper@redhat.com>
5511
1e2692c9
UD
5512 * sysdeps/unix/sysv/linux/check_native.c (__check_native): Simplify
5513 significantly. The device type is also part of the ifinfomsg data.
5514
84e6cc7c 5515 * po/sv.po: Update from translation team.
cbd52634 5516 * po/nl.po: Likewise.
84e6cc7c 5517
f9e2261b
UD
5518 * nscd/cache.c (prune_cache): If cache is empty, instruct caller
5519 to wake up in 24 hours.
5520
43850227
UD
5521 * nscd/gai.c (__ioctl): Define. Include check_native.c.
5522
5742e960
UD
55232007-11-13 Ulrich Drepper <drepper@redhat.com>
5524
1a821d82
UD
5525 * po/cs.po: Update from translation team.
5526 * po/pl.po: Likewise.
5527
773e79b3
UD
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.
5543
e458144c
UD
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
5546 for _quicksort.
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.
5554
bd63f380
UD
5555 * posix/tst-rfc3484.c: Adjust for addition of prefixlen field.
5556 * posix/tst-rfc3484-2.c: Likewise.
5557
5742e960
UD
5558 * include/kernel-features.h: Moved to...
5559 * sysdeps/mach/hurd/kernel-features.h: ...here.
5560
a6ac7fdb
RM
55612007-09-13 H.J. Lu <hongjiu.lu@intel.com>
5562
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.
5566
6f3914d5
UD
55672007-11-12 Ulrich Drepper <drepper@redhat.com>
5568
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.
5578
78cf5f6a
RM
55792007-11-11 Roland McGrath <roland@frob.com>
5580
5581 * include/kernel-features.h: New file.
5582
7f745396
UD
55832007-11-10 Ulrich Drepper <drepper@redhat.com>
5584
01e7fdbb
UD
5585 * sysdeps/pthread/aio_misc.c (handle_fildes_io): Avoid unnecessary
5586 complications for 64-bit platforms.
5587
7f745396
UD
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
5591 open64_2.
5592 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Add open and creat
5593 entries.
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.
5633
5634 * crypt/sha256-crypt.c: Fix a comment.
5635 * crypt/sha512-crypt.c: Likewise.
5636
f6ed654c
UD
56372007-11-07 H.J. Lu <hongjiu.lu@intel.com>
5638
5639 * sysdeps/x86_64/memset.S: Add sfence after movnti.
5640
f2a8406a
UD
56412007-11-07 Ulrich Drepper <drepper@redhat.com>
5642
5643 [BZ #5277]
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.
5648
7fe4e0e8
UD
56492007-11-06 Ulrich Drepper <drepper@redhat.com>
5650
9ca230d6
UD
5651 * stdio-common/vfprintf.c (vfprintf): Compute necessary buffer size
5652 with size_t type.
5653 * stdio-common/printf_fp.c (__print_fp): Change chars_needed type to
5654 size_t. Add casts where needed.
5655
7fe4e0e8
UD
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.
5659
b92e3780
UD
56602007-11-05 Daniel Jacobowitz <dan@codesourcery.com>
5661
5662 * elf/rtld.c (dl_main): Use the page size to find the map start.
5663
ffb1b882
UD
56642007-11-05 Ulrich Drepper <drepper@redhat.com>
5665
94a749f6
UD
5666 * time/tzfile.c (__tzfile_read): Fix check for version 0 data files.
5667 Patch by Szymon Siwek <sls@poczta.wp.pl>.
5668
ffb1b882
UD
5669 * nscd/aicache.c (addhstaiX): Check herrno after IPv4 lookup only
5670 when the lookup call failed.
5671
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
5684 here.
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
5689 return 0.
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.
5698
4c48ef06
UD
56992007-10-31 Ulrich Drepper <drepper@redhat.com>
5700
41ff2a49
UD
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.
ffb1b882 5704
4c48ef06
UD
5705 * elf/rtld.c (dl_main): Initialize stack and pointer guard early
5706 when using auditing libraries.
5707
384ca551
UD
57082007-10-29 Ulrich Drepper <drepper@redhat.com>
5709
31e2791c
UD
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.
5716
384ca551
UD
5717 * nscd/Makefile (nscd-modules): Replace gethstbynm2_r with
5718 gethstbynm3_r.
5719 * nscd/gethstbynm2_r.c: Remove.
5720 * nscd/gethstbynm3_r.c: New file.
5721 * nscd/aicache.c (addhstaiX): Use __gethostbyaddr2_r instead of
5722 __gethostbyaddr_r.
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
5728 __gethostbyaddr2_r.
5729 (addhstbyX): Pass reference to variable for TTL to lookup and
5730 cache_addhst.
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.
5735 Add compat wrapper.
5736 * nss/getXXbyYY_r.c: Changes to call new *_lookup2 functions and
5737 __nss_next2.
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.
5758
5759 * nscd/aicache.c (addhstaiX): Fix default TTL handling.
5760
5e37840c 5761 * inet/getnetgrent_r.c (setup): Encrypt static pointer.
384ca551 5762
88197030
UD
57632007-10-28 Ulrich Drepper <drepper@redhat.com>
5764
f160a450
UD
5765 [BZ #5204]
5766 * crypt/sha256c-test.c: Define TIMEOUT to 6 for ancient hardware.
5767 * crypt/sha512c-test.c: Likewise.
5768
4c6b2202
UD
5769 [BZ #5225]
5770 * stdio-common/vfscanf.c (_IO_vfwscanf): Don't misuse wp pointer
5771 to keep track of end of %[ format string element.
22c915ac
UD
5772 * stdio-common/Makefile (tests): Add bug20.
5773 * stdio-common/bug20.c: New file.
4c6b2202 5774
88197030
UD
5775 [BZ #5222]
5776 * elf/dl-load.c (_dl_rtld_di_serinfo): Correct handling of short
5777 path elements in counting mode.
5778
05d69147
UD
57792007-10-27 Andreas Jaeger <aj@suse.de>
5780
94833f11
UD
5781 [BZ #5040]
5782 * sysdeps/unix/sysv/linux/sys/epoll.h (EPOLLRDHUP): Add value.
5783
05d69147
UD
5784 [BZ #3112]
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.
5789
e6b29af8
UD
57902006-04-14 H.J. Lu <hongjiu.lu@intel.com>
5791
5792 [BZ #2549]
5793 * math/libm-test.inc (check_float_internal): Support
5794 denormalized return.
5795
ad3371fb
UD
57962007-10-23 Andreas Jaeger <aj@suse.de>
5797
5798 [BZ #5208]
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
5802
666aa020
UD
58032007-10-27 Ulrich Drepper <drepper@redhat.com>
5804
5805 * malloc/arena.c [!NO_THREADS]: Use ATFORK_MEM if defined.
5806
8ad343b3
UD
58072007-10-26 Ulrich Drepper <drepper@redhat.com>
5808
5809 * nscd/cache.c (prune_cache): Move test for modified file outside
5810 of locking.
5811
9251c568
AJ
58122007-10-21 Andreas Jaeger <aj@suse.de>
5813
5814 * manual/texinfo.tex: Update to latest version.
5815
5816 * manual/sysinfo.texi (System Parameters): Fix Formatting.
5817
5818 * manual/arith.texi (Status bit operations): Fix formatting.
5819
5820 * manual/errno.texi (Error Messages): Fix formatting.
5821
5822 * manual/sysinfo.texi (System Parameters): Fix formatting.
5823
5824 * manual/libc.texinfo: Update VERSION and UPDATED.
5825
260b2e06
RM
58262007-10-19 Roland McGrath <roland@redhat.com>
5827
5828 * elf/Makefile ($(objpfx)ld.so): Use $(AWK).
5829
46ae8850
JJ
58302007-10-06 David S. Miller <davem@davemloft.net>
5831
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.
5843
6fbfbd80
UD
58442007-10-18 Ulrich Drepper <drepper@redhat.com>
5845
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>.
5849
39cfc9fa
RM
58502007-10-18 Roland McGrath <roland@redhat.com>
5851
5852 * elf/elf.h (NT_PPC_VMX): New macro.
28919a77 5853
39cfc9fa 58542007-10-17 Ulrich Drepper <drepper@redhat.com>
28919a77
UD
5855
5856 * version.h (VERSION): Set to 2.7.90.
5857
ed13ccf1
JJ
58582007-10-17 Jakub Jelinek <jakub@redhat.com>
5859
5860 * sysdeps/x86_64/memset.S (bzero): Renamed to __bzero. Add
5861 weak_alias.
5862
ee9fd869
RM
58632007-10-17 Roland McGrath <roland@frob.com>
5864
5865 * sysdeps/mach/hurd/bits/fcntl.h [__USE_GNU__] (F_DUPFD_CLOEXEC): New.
5866 * sysdeps/mach/hurd/fcntl.c (__libc_fcntl): Implement it.
5867
1aa5e4d7
UD
58682007-10-17 Ulrich Drepper <drepper@redhat.com>
5869
50c9fbbf 5870 * version.h (VERSION): Bump to 2.7.
777bc4bf 5871 * include/features.h (__GLIBC_MINOR__): Bump to 7.
50c9fbbf 5872
58423c7d
UD
5873 [BZ #5186]
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.
5877
1aa5e4d7
UD
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.
5886
fc4837e5
UD
58872007-10-17 Jakub Jelinek <jakub@redhat.com>
5888
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.
5892
62eaf7c8
UD
58932007-10-17 Ulrich Drepper <drepper@redhat.com>
5894
406f28db
UD
5895 * sysdeps/x86_64/cacheinfo.c: Comment out code added in support of
5896 new memset.
ac1cb5da 5897 * sysdeps/x86_64/memset.S: Revert to old version for now. The cost is
406f28db
UD
5898 too high for the improvements. Implement bzero unconditionally for
5899 use in libc.
ac1cb5da
UD
5900
59012007-10-17 Ulrich Drepper <drepper@redhat.com>
5902 Jakub Jelinek <jakub@redhat.com>
5903
62eaf7c8
UD
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.
5909
6a649d25
UD
59102007-10-16 Ulrich Drepper <drepper@redhat.com>
5911
5912 * time/tzfile.c (__tzfile_read): Help the compiler recognize
5913 unreachable code on 32-bit machines.
5914
800d6f9e
UD
59152007-10-16 Jakub Jelinek <jakub@redhat.com>
5916
5917 [BZ #5184]
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 ().
62eaf7c8 5923
69819d92
UD
59242007-10-16 Ulrich Drepper <drepper@redhat.com>
5925
5926 * time/tzfile.c (__tzfile_read): Take extra memory requested by caller
5927 into account when copying TZ string.
5928
62eaf7c8
UD
59292007-10-16 Jakub Jelinek <jakub@redhat.com>
5930
5931 * time/tzfile.c (__tzfile_compute): For use_last case set i to
5932 num_transition rather than num_transitions - 1.
5933
0308ad66
JJ
59342007-10-16 Jakub Jelinek <jakub@redhat.com>
5935
8d137b60
JJ
5936 * sysdeps/x86_64/memset.S (memset): Fix sse2_nt_move
5937 PIC indirect jump.
5938
0308ad66
JJ
5939 * sysdeps/x86_64/memset.S: Jump from bzero to memset using
5940 a local label rather than HIDDEN_JUMPTARGET.
5941
e2b393bc
UD
59422007-10-15 Ulrich Drepper <drepper@redhat.com>
5943
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.
5950
59512007-10-15 H.J. Lu <hongjiu.lu@intel.com>
5952
5953 * sysdeps/x86_64/cacheinfo.c
5954 (__x86_64_preferred_memory_instruction): New.
5955 (init_cacheinfo): Initialize __x86_64_preferred_memory_instruction.
5956
5957 * sysdeps/x86_64/memset.S: Rewrite.
5958
0fbfcb7b
RM
59592007-10-15 Roland McGrath <roland@redhat.com>
5960
5961 * po/libc.pot: Regenerated.
5962
2884dad4
UD
59632007-10-15 Ulrich Drepper <drepper@redhat.com>
5964
e2b393bc 5965 * nss/getXXbyYY_r.c (REENTRANT_NAME): Mangle startp and start_fct
d96a2216
UD
5966 pointers.
5967
2884dad4
UD
5968 [BZ #3425]
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.
5972
89dc9d4c
UD
59732007-10-14 Ulrich Drepper <drepper@redhat.com>
5974
8d97ac13
UD
5975 * posix/glob.c: Reimplement link_exists_p to use fstatat64.
5976
1b6aa63f
UD
5977 * posix/glob.c: Add some branch prediction throughout.
5978
895a08c0
UD
5979 * nscd/nscd_getgr_r.c (nscd_getgr_r): Store result of successful
5980 read from nscd.
5981
6f55ed88
UD
5982 * sysdeps/posix/getaddrinfo.c (struct sort_result): Add
5983 service_order.
8d62c8ab
UD
5984 (rfc3484_sort): Make sure that even if qsort doesn't support
5985 stable sorting out sorting here is stable by comparing service_order.
6f55ed88 5986 (getaddrinfo): Initialize service_order.
a94673e6
UD
5987 * posix/tst-rfc3484.c (do_test): Adjust for addition of
5988 service_order field to sorting structure.
dfcf64ce 5989 * posix/tst-rfc3484-2.c (do_test): Likewise.
6f55ed88 5990
fa76dde2
UD
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
5994 update_vars.
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
6001 use the TZ string.
6002 * timezone/tst-timezone.c: Information in daylight and tzname does
6003 change for Asia/Tokyo timezone with more concrete information.
6004 Remove the test.
6005
6006 * include/stdio.h: Add libc_hidden_proto for ftello.
6007 * libio/ftello.c: Add libc_hidden_def.
6008
89dc9d4c
UD
6009 [BZ #1140]
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
6014 first transition.
6015
f7140274
UD
60162007-10-13 Ulrich Drepper <drepper@redhat.com>
6017
cfca0aa3
UD
6018 [BZ #3195]
6019 * nscd/nscd_getai.c (__nscd_getai): Set errno to 0 in case we found
6020 no entry.
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.
6025
43d3e6bd
UD
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.
6029
f7140274
UD
6030 [BZ #3242]
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.
6035
656f02ce
UD
60362007-10-13 Bruno Haible <bruno@clisp.org>
6037
6038 * intl/dcigettext.c (_nl_find_msg): Unlock the conversions_lock
6039 when we cannot recode the message.
6040
0ea49677
UD
60412007-10-13 Ulrich Drepper <drepper@redhat.com>
6042
6043 [BZ #4359]
6044 * libio/__freading.c (__freading): Don't return true for
ed36f224
UD
6045 write-only streams. For read/write streams, check whether we
6046 performed a read operation already.
7e39d802
UD
6047 * libio/Makefile (tests): Add tst-ext2.
6048 * libio/tst-ext2.c: New file.
0ea49677 6049
78a9b2dc
UD
60502007-10-12 Ulrich Drepper <drepper@redhat.com>
6051
fab1a490
UD
6052 * locale/programs/repertoire.c (repertoire_read): Always free
6053 memory for repertoire file name [Coverity CID 270].
6054
78a9b2dc
UD
6055 * elf/cache.c (save_aux_cache): Free memory allocated for
6056 temporary file name [Coverity CID 267].
6057
29d49a1a
JJ
60582007-10-12 Jakub Jelinek <jakub@redhat.com>
6059
6060 * misc/Makefile (headers): Add bits/error.h.
6061
d074d36d
UD
60622007-10-12 Ulrich Drepper <drepper@redhat.com>
6063
b7d1c5fa
UD
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.
6068
d074d36d
UD
6069 * locale/programs/ld-collate.c (collate_read): Optimize a bit.
6070 (skip_to): Fix problems with parameter of elifdef/elifndef.
6071
26a51060
UD
60722007-10-11 Ulrich Drepper <drepper@redhat.com>
6073
6074 * iconv/gconv_simple.c: Add some branch prediction.
6075
6dd3748b
UD
60762007-10-12 Jakub Jelinek <jakub@redhat.com>
6077
6078 * locale/programs/ld-collate.c (collate_read): If ignore_content
6079 and nowtok is tok_define, eat any tok_eol tokens.
6080
d0b5557d
JJ
60812007-10-11 Jakub Jelinek <jakub@redhat.com>
6082
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.
6085
6086 * inet/netinet/in.h: Don't include bits/socket.h.
6087 * sysdeps/unix/sysv/linux/bits/socket.h: Only check _SYS_SOCKET_H
6088 macro.
6089 * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Likewise.
6090
3a054d7a
UD
60912007-10-10 Ulrich Drepper <drepper@redhat.com>
6092
6093 * locale/programs/locfile-token.h: Remove tok_elif, add tok_elifdef
6094 and tok_elifndef.
6095 * locale/programs/locfile-kw.gperf: Likewise.
6096 * locale/programs/ld-collate.c: Implement primitive preprocessor.
6097
c06b7169
UD
60982007-10-10 Jakub Jelinek <jakub@redhat.com>
6099
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):
6108 Removed.
6109 (__parse_one_specmb): Remove ps argument, adjust __find_specmb
6110 caller.
6111
5a01ab7b
UD
61122007-10-09 Ulrich Drepper <drepper@redhat.com>
6113
6114 * sysdeps/x86_64/cacheinfo.c (init_cacheinfo): Work around problem
6115 with some Pentium Ds.
6116
e3f8e049
UD
61172007-10-08 Ulrich Drepper <drepper@redhat.com>
6118
6119 * sysdeps/unix/sysv/linux/eventfd_read.c (eventfd_read): Use
6120 __read not read.
6121 * sysdeps/unix/sysv/linux/eventfd_write.c (eventfd_write): Use
6122 __write not write.
6123
a1a363d2
UD
61242007-10-07 Ulrich Drepper <drepper@redhat.com>
6125
a1160714
UD
6126 [BZ #181]
6127 * locale/C-time.c: Set week_1stday data to 19971201.
659a9013
UD
6128 * locale/programs/ld-time.c (time_finish): Default for
6129 first_workday is Monday.
a1160714 6130
bb27a6eb
UD
6131 [BZ #2633]
6132 * wcsmbs/wchar.h: Move many C99 functions into std namespace.
6133
c8d48fae
UD
6134 [BZ #5103]
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 \/.
6138
a1a363d2
UD
6139 * misc/error.h: Use __const instead of const.
6140 * misc/bits/error.h: Likewise.
6141
61422007-10-07 Andreas Jaeger <aj@suse.de>
6143
6144 * include/bits/error.h: New file.
6145
6146 * misc/bits/error.h (error_at_line): Fix prototype.
6147
71894681
UD
61482007-10-06 Ulrich Drepper <drepper@redhat.com>
6149
a6fa5328
UD
6150 [BZ #3924]
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
6153 be called.
6154
8c7661bc 6155 * nscd/nscd_helper.c (__nscd_cache_search): Prevent endless loops.
50607309 6156 * nscd/connections.c (verify_persistent_db): Recognize circular lists.
8c7661bc 6157
c039eedd
UD
6158 [BZ #4407]
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.
6163
71894681
UD
6164 [BZ #5010]
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.
6170
34c2c092
UD
61712007-10-05 Ulrich Drepper <drepper@redhat.com>
6172
d10737e4
UD
6173 * timezone/zic.c: Update from tzcode2007h.
6174
6175 [BZ #5063]
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.
6185
0304f168
UD
6186 [BZ #5104]
6187 * elf/do-lookup.h (do_lookup_x): Don't ignore STT_COMMON symbols.
6188
a83b5649
UD
6189 [BZ #5113]
6190 * string/bits/string2.h (__strdup): Cast parameters to calloc to
6191 avoid warning with -Wconversion.
6192 (__strndup): Likewise.
c039eedd 6193 Half the patch by Christian Iseli <christian.iseli@licr.org>.
a83b5649 6194
3e6ce4d7
UD
6195 [BZ #5112]
6196 * nscd/connections.c (restart): Don't resync if database is
6197 disabled. Patch mostly by Brian De Wolf <bldewolf@csupomona.edu>.
6198
8e351378
UD
6199 * sysdeps/gnu/netinet/tcp.h: Define TCP_MD5SIG, TCP_MD5SIG_MAXKEYLEN,
6200 struct tcp_md5sig. Extend struct tcp_info according to recent kernels.
6201
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.
d10737e4 6208 * sysdeps/unix/sysv/linux/Versions: Export eventfd, eventfd_read,
8e351378
UD
6209 eventfd_write for GLIBC_2.7.
6210
34c2c092
UD
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.
6215
6789aaaa 62162007-10-04 Jakub Jelinek <jakub@redhat.com>
375d9429
UD
6217
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
6224 sorting.
6225 Suggested by Belazougui Djamel .
6226
6227 * stdlib/Makefile (tests): Add tst-qsort2.
6228 * stdlib/tst-qsort2.c: New test.
6229
b80bfc8b
UD
62302007-10-04 Ulrich Drepper <drepper@redhat.com>
6231
174420d2
UD
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
6234 in this case.
6235
b80bfc8b
UD
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.
6239
6789aaaa 62402007-10-03 Jakub Jelinek <jakub@redhat.com>
ee868c89 6241
e5dd2178
UD
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.
6245
ac97dec1
UD
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.
6249
ee868c89
UD
6250 * misc/sys/cdefs.h (__extern_always_inline): For GCC 4.3+
6251 add __artificial__ attribute.
6252
80e069e0
UD
62532007-10-02 Ulrich Drepper <drepper@redhat.com>
6254
6e682cf5
UD
6255 * string/strcoll_l.c (STRCOLL): Correct handling of switching from
6256 backward to forward direction.
6257
90241a20
UD
6258 * string/strcoll_l.c (STRCOLL): Correct test for alloca use.
6259
80e069e0
UD
6260 [BZ #645]
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.
6265
035ef8d7
UD
62662007-10-01 Ulrich Drepper <drepper@redhat.com>
6267
95bddc0c
UD
6268 [BZ #5071]
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>.
6272
c8caf089
UD
6273 * locale/programs/ld-collate.c (collate_read): After initial copy
6274 statement, continue in state 0.
6275
035ef8d7
UD
6276 * include/stdio_ext.h (__fsetlocking): Define as macro.
6277
592a95ee
UD
62782007-09-30 Ulrich Drepper <drepper@redhat.com>
6279
56ebeb41
UD
6280 * locale/programs/ld-collate.c (collate_finish): Compare all bytes
6281 of section order.
6282
592a95ee
UD
6283 * po/pt_BR.po: Fix typo.
6284
6c522e21
UD
62852007-09-29 Ulrich Drepper <drepper@redhat.com>
6286
8ad5c3cd
UD
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.
6294
6295 * iconvdata/koi8-r.c (HAS_HOLES): Define to 0.
6296
6c522e21
UD
6297 * locale/iso-639.def: Add several new entries.
6298
385b4cf4
UD
62992007-09-24 Jakub Jelinek <jakub@redhat.com>
6300
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
6306 struct too.
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 *.
6320
90bf831b
UD
63212007-09-28 Ulrich Drepper <drepper@redhat.com>
6322
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.
6330
6331 * iconvdata/koi8-r.c (HAS_HOLES): Define to 0.
6332
d6cd6bf4
UD
63332007-09-26 Jakub Jelinek <jakub@redhat.com>
6334
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
6340 __warnattr.
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
6345 with __warnattr.
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
6363 is found.
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
6383 __*_chk argument.
6384 * debug/tst-chk1.c (do_test): Add a few more tests.
6385
408cfca0
UD
63862007-09-24 Ulrich Drepper <drepper@redhat.com>
6387
6388 [BZ #5058]
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.
6394
e6eec9ce
JJ
63952007-09-24 Jakub Jelinek <jakub@redhat.com>
6396
6397 * sysdeps/posix/getaddrinfo.c (getaddrinfo): Use
6398 close_not_cancel_no_status instead of close.
6399
a532a41d
UD
64002007-09-13 Aurelien Jarno <aurelien@aurel32.net>
6401
682268ef 6402 [BZ #5028]
408cfca0 6403 * posix/regcomp.c (lookup_collation_sequence_value): Check that
a532a41d
UD
6404 nrules != 0 for multibyte chars.
6405
dec9ed9e
UD
64062007-09-23 Ulrich Drepper <drepper@redhat.com>
6407
91633816
UD
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.
6410
9cc198f6
UD
6411 [BZ #4963]
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.
6416
27f3d446
UD
6417 [BZ #4972]
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.
6425
dec9ed9e
UD
6426 [BZ #5043]
6427 * iconv/iconv_open.c (iconv_open): For large codeset names use malloc.
6428
0435403c
UD
64292007-09-21 Ulrich Drepper <drepper@redhat.com>
6430
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
6436 name change.
6437 Patch in large parts by Evandro Menezes.
6438
c3266dc0
UD
64392007-09-19 Ulrich Drepper <drepper@redhat.com>
6440
715899d1
UD
6441 * elf/dl-lookup.c (add_dependency): Handle failing memory
6442 allocation for dependency list. Remove unnecessary check.
6443
e1db0493
UD
6444 * sysdeps/posix/getaddrinfo.c (getaddrinfo): Avoid unnecessary
6445 open/close when determining source addresses.
6446
c3266dc0
UD
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.
6463
ddf51ecb
JJ
64642007-09-19 Jakub Jelinek <jakub@redhat.com>
6465
6466 * misc/bits/syslog.h (syslog): Remove extraneous argument from
6467 the inline, pass __USE_FORTIFY_LEVEL - 1 as second argument to
6468 __syslog_chk.
6469
b90395e6
UD
64702007-09-18 Jakub Jelinek <jakub@redhat.com>
6471
76c0bea7
JJ
6472 * locale/programs/charmap-dir.c (charmap_aliases): Use %ms instead of
6473 %as in fscanf format strings.
6474
00680568
JJ
6475 * sysdeps/sparc/sparc32/elf/start.S: Remove cfi_* markup.
6476 * sysdeps/sparc/sparc64/elf/start.S: Likewise.
c3266dc0
UD
6477 * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__thread_start):
6478 Likewise.
6479 * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__thread_start):
6480 Likewise.
00680568 6481
b90395e6
UD
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.
6495
874aa523
UD
64962007-09-17 Jakub Jelinek <jakub@redhat.com>
6497
6498 * include/stdio.h (__isoc99_fscanf, __isoc99_scanf,
6499 __isoc99_sscanf, __isoc99_vscanf): New prototypes.
6500 (__isoc99_vsscanf, __isoc99_vfscanf): New prototypes, add
6501 libc_hidden_proto.
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
6590 functions.
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.
6603
6604 * stdio-common/Makefile (tests): Add scanf13.
6605 (scanf13-ENV): New.
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
6612 arguments.
6613 * stdio-common/scanf13.c: New test.
6614
6615 * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct): Clear
6616 the _IO_FLAGS2_FORTIFY bit from _flags2 rather than _flags.
6617
883f7943
UD
66182007-09-18 Ulrich Drepper <drepper@redhat.com>
6619
6620 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Correct return value
874aa523 6621 type and __THROW marker of splice, vmsplice, and tee.
883f7943
UD
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.
6631
3524efe0
UD
66322003-11-01 Daniel Jacobowitz <dan@debian.org>
6633
6634 * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_discover_osversion): Don't
6635 parse more than three parts of the version number.
6636
267c54dc
UD
66372007-09-15 Ulrich Drepper <drepper@redhat.com>
6638
6639 * stdio-common/vfscanf.c (_IO_vfwscanf): Add support for 'm'
6640 modifier. Patch by Jakub Jelinek.
6641
5e17d6b7
UD
66422007-08-26 Jakub Jelinek <jakub@redhat.com>
6643
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.
6651
3a50811c
UD
66522007-09-15 Jakub Jelinek <jakub@redhat.com>
6653
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.
6669
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.
6680
9bdfff60
UD
66812007-09-14 H.J. Lu <hongjiu.lu@intel.com>
6682
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.
6686
ab905672
UD
66872007-09-15 Mike Frysinger <vapier@gentoo.org>
6688
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".
6691
9bd68902
RM
66922007-09-14 Mike Frysinger <vapier@gentoo.org>
6693
6694 * inet/tst-network.c: Increment ERRORS for failing tests.
6695
de1c3ebb
UD
66962007-09-07 Jakub Jelinek <jakub@redhat.com>
6697
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
6704 functions.
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++.
6715
67162007-09-03 Jakub Jelinek <jakub@redhat.com>
6717
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__
6720 attribute.
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
6739 is not defined.
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
6746 a macro.
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}
6783 tests.
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
6787 is not.
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
6795 prototypes in C++.
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.
6799
b53eef9c
UD
68002007-09-13 Ulrich Drepper <drepper@redhat.com>
6801
6802 * po/cs.po: Update from translation team.
6803
af385590
RM
68042007-09-11 Roland McGrath <roland@redhat.com>
6805
6806 * posix/Makefile ($(objpfx)getconf.speclist): Make it empty if cross
6807 compiling.
6808
af2f25a1
RM
68092007-09-07 Samuel Thibault <samuel.thibault@ens-lyon.org>
6810
6811 * sysdeps/mach/hurd/bits/ioctls.h (TAB3): New macro.
6812
94733ae0
RM
68132007-09-05 Roland McGrath <roland@redhat.com>
6814
6815 * manual/signal.texi (Signaling Another Process): Typo fix.
6816 From Karl Berry <karl@freefriends.org>.
6817
de4d8563
UD
68182007-08-29 Ulrich Drepper <drepper@redhat.com>
6819
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>.
6825
0adfcc05
UD
68262007-08-28 Ulrich Drepper <drepper@redhat.com>
6827
f3c54060
UD
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.
6831
0adfcc05
UD
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.
6835
3586b2b6
UD
68362007-08-28 Jakub Jelinek <jakub@redhat.com>
6837
6838 * libio/bits/stdio2.h (__fread_chk, __fread_unlocked_chk): New
6839 prototypes.
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.
6851
3704aa0b
RM
68522007-08-27 Jakub Jelinek <jakub@redhat.com>
6853
6854 * sysdeps/unix/sysv/linux/syscalls.list
6855 (personality): Change caller to EXTRA.
6856
80e7d6a6
UD
68572007-08-25 Ulrich Drepper <drepper@redhat.com>
6858
278bfa00
UD
6859 * iconvdata/iso-2022-kr.c (BODY): Fake initialization of array buf
6860 to keep gcc quiet.
6861 * iconvdata/iso-2022-cn.c (BODY): Likewise.
6862
a45d733c
UD
6863 * locale/programs/ld-collate.c (collate_output): Avoid warning if
6864 NDEBUG is defined.
6865
5dfeae0e
UD
6866 * Makerules: Use -p option with mkdir.
6867
8f1fe057
UD
6868 * sunrpc/key_prot.c (xdr_unixcred): Work around gcc alias warning.
6869 * nis/nis_xdr.c (_xdr_nis_server): Likewise.
bd0dcd28
UD
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.
8f1fe057 6880 * nis/yp_xdr.c (xdr_ypmaplist): Likewise.
bd0dcd28
UD
6881 (xdr_ypresp_maplist): Likewise.
6882
01339a67
UD
6883 * stdio-common/Makefile: Avoid format string warning for tst-sprint.
6884
3fa10468
UD
6885 * posix/regex_internal.h: Prevent some declarations and definitions
6886 to be seen when used in tests.
6887
ec1e04de
UD
6888 * posix/tst-rfc3484.c (__idna_to_unicode_lzlz): Initialize *OUTPUT.
6889 * posix/tst-rfc3484-2.c (__idna_to_unicode_lzlz): Likewise.
6890
7a344d1d
UD
6891 * debug/Makefile: Disable format checking when compiling tst-chk?.c.
6892
f8f6ff5d
UD
6893 * config.make.in (datarootdir): Add to shut up configure.
6894
76fca9f1
UD
6895 * sysdeps/x86_64/cacheinfo.c (handle_amd): Fix computation of
6896 associativity for fully-associative caches.
6897
80e7d6a6
UD
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.
6901
cb5ba304
UD
69022007-08-24 Ulrich Drepper <drepper@redhat.com>
6903
d250df8c
UD
6904 * sysdeps/unix/sysv/linux/x86_64/init-first.c
6905 (_libc_vdso_platform_setup): Avoid using exported variable by using
6906 alias.
6907
88f61aaf
UD
6908 * resolv/arpa/nameser.h (NS_OPT_DNSSEC_OK): Define.
6909
cb5ba304 6910 * sysdeps/unix/sysv/linux/i386/syscalls.list: No reason to mark
cb104bd7 6911 fallocate64 as EXTRA. It is not referenced if the symbol isn't
cb5ba304
UD
6912 defined.
6913
62e1b1f5
UD
69142007-08-23 Ulrich Drepper <drepper@redhat.com>
6915
44b2e581
UD
6916 * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Correctly
6917 align stack for call if pltexit is to be used.
6918
73e3ff07
UD
6919 [BZ #3924]
6920 * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Correctly
6921 align for function call in case pltexit has to be called later.
6922
62e1b1f5
UD
6923 * sysdeps/i386/dl-trampoline.S (_dl_runtime_resolve): Avoid
6924 implicit atomic operation when storing function pointer.
6925 (_dl_runtime_profile): Likewise.
6926
0008163a
UD
69272007-08-17 Jakub Jelinek <jakub@redhat.com>
6928
6929 * nis/nis_table.c (nis_list): Don't fail if __follow_path returned
6930 NIS_NOTFOUND.
6931
55ea8790
UD
69322007-08-21 Ulrich Drepper <drepper@redhat.com>
6933
2e0e1a05
UD
6934 [BZ #4566]
6935 * string/strtok.c: Fix typo in comment.
6936
682e4437
UD
6937 [BZ #4582]
6938 * debug/segfault.c: Fix typos in comments.
6939
7d55c9eb
UD
6940 [BZ #4588]
6941 * stdio-common/tempnam.c: Fix comment, it is not checked that
6942 TMPDIR points to a writable directory.
6943
0f8f993c
UD
6944 [BZ #4726]
6945 * resolv/res_send.c (__libc_res_nsend): Initialize all of the
6946 memory allocated for the name server address.
6947
1465dd0f
UD
6948 [BZ #4946]
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>.
6952
c44d3bdf
UD
6953 [BZ #4905]
6954 * nscd/hstcache.c (cache_addhst): When reloading an entry which
6955 suddenly has two or more addresses, ignore it and remove the old
6956 entry.
6957
1ce7d80d
UD
6958 [BZ #4814]
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
6962 the new file.
6963 * nscd/gethstbynm2_r.c (NEED__RES_HCONF): Define.
6964 * nscd/gethstbyad_r.c (NEED__RES_HCONF): Likewise.
6965
a30d41c1
UD
6966 * nscd/hstcache.c (cache_addhst): Minimal optimization.
6967
45dc3ad7
UD
6968 [BZ #4925]
6969 * debug/pcprofiledump.c: Turn on internationalization by calling
6970 setlocale. Patch mostly by Benno Schulenberg.
6971
55ea8790
UD
6972 [BZ #4936]
6973 * iconv/gconv.c (__gconv): If flush was successful, clear rest of
6974 the state.
6975 * iconvdata/Makefile: Add rules to build and run bug-iconv5.
6976 * iconvdata/bug-iconv5.c: New file.
6977
0b82ff74
UD
69782007-08-04 Carlos O'Donell <carlos@systemhalted.org>
6979
55ea8790 6980 [BZ #4896]
0b82ff74
UD
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.
6989
ee16a55a
UD
69902007-08-21 Ulrich Drepper <drepper@redhat.com>
6991
6992 [BZ #4937]
6993 * elf/do-lookup.h (do_lookup_x): Minimal improvement in hash
6994 lookup loop. Suggested by John Reiser.
6995
b211fe0f
JJ
69962007-08-21 Jakub Jelinek <jakub@redhat.com>
6997
6998 * sysdeps/unix/sysv/linux/alpha/sysdep.h: Include tls.h.
6999
fb84593c
UD
70002007-08-20 Ulrich Drepper <drepper@redhat.com>
7001
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
7007 to...
7008 * sysdeps/unix/sysv/linux/x86_64/init-first.c: ...here. New file.
7009
b83fb35c
UD
70102007-08-18 Ulrich Drepper <drepper@redhat.com>
7011
7012 * po/nl.po: Update from translation team.
7013
20806a70
AJ
70142007-08-16 Andreas Jaeger <aj@suse.de>
7015
7016 * locale/localeinfo.h: Make _nl_category_name_idxs extern.
f00d47a3 7017 Reported by Peter Festner <peter.festner@ewetel.net>.
20806a70 7018
42282d57
JJ
70192007-08-17 Jakub Jelinek <jakub@redhat.com>
7020
7021 * login/tst-grantpt.c (test_einval): Add 3rd argument to open.
7022
8a501135
JJ
70232007-08-16 Jakub Jelinek <jakub@redhat.com>
7024
cb84d1e4
JJ
7025 * elf/Makefile ($(objpfx)ld.so): Use readelf -s and awk instead of nm -u
7026 to check for undefined symbols.
7027
91ddd9c4
JJ
7028 * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__clone):
7029 If the syscall fails, set errno to the actual returned error number
7030 rather than EINVAL.
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.
7034
18915760
JJ
7035 * stdlib/bits/stdlib-ldbl.h (__strtold_internal): Remove.
7036 * wcsmbs/bits/wchar-ldbl.h (__wcstold_internal): Remove.
7037
8a501135
JJ
7038 * sysdeps/sparc/sparc32/sparcv9b/memcpy.S: Moved to...
7039 * sysdeps/sparc/sparc32/sparcv9/sparcv9b/memcpy.S: ... here. New
7040 file.
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
7044 file.
7045 * sysdeps/sparc/sparc32/sparcv9v/memset.S: Moved to...
7046 * sysdeps/sparc/sparc32/sparcv9/sparcv9v/memset.S: ... here. New
7047 file.
7048
e4720b0e
JJ
70492007-08-15 Jakub Jelinek <jakub@redhat.com>
7050
7051 * sysdeps/sparc/fpu/fraiseexcpt.c (__feraiseexcept): Fix raising
7052 FE_UNDERFLOW on Niagara CPUs.
7053
7054 * sysdeps/sparc/fpu/feholdexcpt.c (feholdexcept): Clear all
7055 exceptions.
7056
702a9414
JJ
70572007-08-14 Jakub Jelinek <jakub@redhat.com>
7058
467d1345
JJ
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.
7064
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.
7070
702a9414
JJ
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
7076 long_double_symbol.
7077
c6c8f0ec
UD
70782007-08-14 Ulrich Drepper <drepper@redhat.com>
7079
7080 * elf/dl-misc.c: Undo last change. The kernel won't allow it.
7081
5e88abf9
UD
70822007-08-13 Kaz Kojima <kkojima@rr.iij4u.or.jp>
7083
7084 * stdlib/strtold_l.c: Include wchar.h if needed. Add libc_hidden_def.
7085
fc4819b0
UD
70862007-08-14 Ulrich Drepper <drepper@redhat.com>
7087
7088 * po/bg.po: New file. From the translation team.
7089
22502ea2
UD
70902007-08-13 Jakub Jelinek <jakub@redhat.com>
7091
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.
7096
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.
7101
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.
7106
7107 * sysdeps/unix/sysv/linux/dl-osinfo.h (ROUND): #undef after use.
7108
7109 * sysdeps/unix/clock_settime.c (freq, __pthread_clock_settime,
7110 hp_timing_settime): Don't define or declare if HANDLED_CPUTIME
7111 is defined.
7112
9c6f6953
UD
71132007-08-13 Ulrich Drepper <drepper@redhat.com>
7114
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.
7120
f8de5057
UD
71212007-08-13 Jakub Jelinek <jakub@redhat.com>
7122
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.
7134
3c87d79d
UD
71352007-08-12 Ulrich Drepper <drepper@redhat.com>
7136
ea37207a
UD
7137 * elf/dl-dst.h: No need for _dl_dst_count, _dl_dst_substitute,
7138 and _dl_get_origin defines anymore.
7139
4eb375fe
UD
7140 * sysdeps/unix/sysv/linux/clock_gettime.c (maybe_syscall_gettime_cpu):
7141 Build fix for systems which might lack POSIX timer support.
7142
3c87d79d
UD
7143 * sysdeps/unix/sysv/linux/x86_64/libc-start.c
7144 (_libc_vdso_platform_setup): Mangle function pointers before storing
7145 them.
7146 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INLINE_VSYSCALL):
7147 Demangle vdso pointer before use.
7148 (INTERNAL_VSYSCALL): Likewise.
7149
7150 * elf/cache.c (primes): Mark as const.
7151 Noted by Roland McGrath.
7152
27d9ffda
UD
71532007-08-01 Andreas Jaeger <aj@suse.de>
7154 Jakub Jelinek <jakub@redhat.com>
7155
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.
7182
8d944b0f
UD
71832007-08-12 Jakub Jelinek <jakub@redhat.com>
7184
7185 * sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h: Include stddef.h
7186 with __need_size_t.
7187
75fb247e
UD
71882007-08-12 Ulrich Drepper <drepper@redhat.com>
7189
fb86328a
UD
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.
974a1f0f 7196 * sysdeps/unix/sysv/linux/powerpc/libc-start.c
fb86328a
UD
7197 (_libc_vdso_platform_setup): Likewise.
7198
75fb247e
UD
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
7212 for GLIBC_PRIVATE.
7213 * sysdeps/unix/sysv/linux/x86_64/Makefile [subdir=elf]
7214 (sysdep_rountines): Add dl-vdso.
7215
7216 * sysdeps/unix/sysv/linux/powerpc/Makefile: Use sysdep_routines instead
7217 of routines.
7218
7219 * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h: Add
7220 attribute_hidden to __vdso_gettimeofday prototype.
7221
9229b83e
RM
72222007-08-12 Roland McGrath <roland@redhat.com>
7223
7224 * manual/stdio.texi (Variable Arguments Output): Fix xref to gcc manual.
7225 From: Karl Berry <karl@freefriends.org>.
7226
4503061f
UD
72272007-08-11 Ulrich Drepper <drepper@redhat.com>
7228
7229 * elf/dl-misc.c (_dl_sysdep_read_whole_file): We really don't need
7230 an atime update for the files we read.
7231
d7e23b02
UD
72322007-08-10 Ulrich Drepper <drepper@redhat.com>
7233
7cf89e95
UD
7234 * shadow/lckpwdf.c (__lckpwdf): Use O_CLOEXEC if possible.
7235
9d169bb3 7236 * nscd/connections.c: Use O_CLOEXEC if possible. Use mkostemp
d7e23b02
UD
7237 instead of mkstemp.
7238
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.
7259
22532966
RM
72602007-08-10 Roland McGrath <roland@frob.com>
7261
7262 * sysdeps/mach/hurd/bits/ioctls.h (NLDLY, TABDLY, BSDLY, VTDLY):
7263 New macros.
7264 (NLDELAY, CRDELAY, TBDELAY, BSDELAY, VTDELAY): Define to those.
7265 Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>.
7266
673876e6
UD
72672007-08-10 Ulrich Drepper <drepper@redhat.com>
7268
aa132749
UD
7269 * nss/nss_files/files-XXX.c (internal_setent): Use O_CLOEXEC if
7270 possible.
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.
7274
22532966 7275 * sysdeps/unix/sysv/linux/shm_open.c (shm_open): Use O_CLOEXEC if
673876e6
UD
7276 available.
7277
1e286653
JJ
72782007-08-10 Jakub Jelinek <jakub@redhat.com>
7279
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
7283 long_double_symbol.
7284
f07f72f3
UD
72852007-08-09 Ulrich Drepper <drepper@redhat.com>
7286
6479496a
UD
7287 * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Use correct
7288 register in test for error.
7289
c4adefbd
UD
7290 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_CLOEXEC): Define.
7291 * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h (O_CLOEXEC): Likewise.
7292
f07f72f3
UD
7293 * po/sv.po: Update from translation team.
7294
eef38c28
RM
72952007-08-06 Roland McGrath <roland@redhat.com>
7296
773e305e
RM
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
7305 __STRTOF, STRTOF.
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
7309 strtoq.
7310
7311 * scripts/data/localplt-powerpc-linux-gnu.data: New file.
7312
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.
7317
eef38c28
RM
7318 * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_discover_osversion):
7319 Use ElfW(Nhdr).
7320
742df3a4
UD
73212007-08-05 Ulrich Drepper <drepper@redhat.com>
7322
7323 * po/zh_CN.po: Updated translation from translation team.
7324
0470fa46
JJ
73252007-08-05 Jakub Jelinek <jakub@redhat.com>
7326
7327 * sysdeps/unix/sysv/linux/powerpc/powerpc32/socket.S (__socket):
7328 Don't use CGOTSETUP and CGOTRESTORE macros.
7329
b5075bdc
RM
73302007-08-04 Roland McGrath <roland@redhat.com>
7331
7332 * posix/Makefile ($(objpfx)getconf.speclist): Fix typo.
7333
9accc268
JJ
73342007-08-04 Jakub Jelinek <jakub@redhat.com>
7335
7336 * io/bits/fcntl2.h (open, open64, openat, openat64): Add
7337 __extension__ around the whole statement expression.
7338
220ae3ef
UD
73392007-08-04 Ulrich Drepper <drepper@redhat.com>
7340
c8ccd8e3
UD
7341 * sysdeps/unix/opendir.c (__alloc_dir): Correct order of DIR
7342 elements during initialization.
7343
220ae3ef
UD
7344 * po/pl.po: Updated translation from translation team.
7345 * po/tr.po: Likewise.
11960f7f 7346 * po/nl.po: Likewise.
220ae3ef 7347
2fb20667
UD
73482007-08-03 Ulrich Drepper <drepper@redhat.com>
7349
7350 * rt/aio.h: Add __nonnull attributes.
7351
ce31a3b1
UD
73522007-08-03 Jakub Jelinek <jakub@redhat.com>
7353
64f6281c
UD
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.
7358
ce31a3b1
UD
7359 * intl/dcigettext.c (_nl_find_msg): Free encoding if __gconv_open
7360 failed.
7361 * intl/finddomain.c (_nl_find_domain): Free normalized_codeset
7362 on failure.
7363
7364 * elf/dl-load.c (decompose_rpath): Free copy if result couldn't be
7365 allocated.
7366
754980e4
JJ
73672007-08-03 Jakub Jelinek <jakub@redhat.com>
7368
7369 * rt/mqueue.h (mq_timedreceive, mq_timedsend): Fix nonnull argument
7370 numbers.
7371
497af0cb
UD
73722007-08-02 Ulrich Drepper <drepper@redhat.com>
7373
cbf0489b
UD
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
7381 of local variable.
7382
fa39685d
UD
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.
9b2e9577
UD
7388
7389 * stdlib/stdlib.h: Remove __strto*_internal prototypes and strto*
7390 inline functions.
7391 * include/stdlib.h: Add __strto*_internal prototypes here.
7392 * wcsmbs/wchar.h: Remove __wcsto*_internal prototypes and wcsto*
7393 inline functions.
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.
7397
497af0cb
UD
7398 * rt/mqueue.h: Change const to __const and add nonnull attributes.
7399
d17a8cf0
RM
74002007-08-02 Roland McGrath <roland@redhat.com>
7401
7402 * posix/Makefile ($(inst_libexecdir)/getconf): Make hard links to
7403 $(inst_bindir)/getconf if possible.
7404
7405 * posix/Makefile ($(objpfx)getconf.speclist): New target.
7406 (generated): Add it.
7407 ($(inst_libexecdir)/getconf): Use it.
7408
0abf17de
UD
74092007-08-01 Ulrich Drepper <drepper@redhat.com>
7410
7411 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Using
7412 /proc is faster and sufficient. /sys is still needed for
7413 __get_nprocs_conf.
7414
5e0923ab
UD
74152007-08-01 Jakub Jelinek <jakub@redhat.com>
7416
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.
7421
1475e201
UD
74222007-07-30 Jakub Jelinek <jakub@redhat.com>
7423
7424 * stdlib/tst-strtod2.c (do_test): Use %tu in fmt string for ptrdiff_t
7425 value.
7426
7427 * stdio-common/tst-fmemopen2.c (do_test): Avoid fmt string warning
7428 if off_t is different rank from size_t.
7429
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
7437 pointers.
7438
e076bece
UD
74392007-07-31 Ulrich Drepper <drepper@redhat.com>
7440
9506149a
UD
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.
e076bece 7444
bbeaaa84
JJ
74452007-07-31 Jakub Jelinek <jakub@redhat.com>
7446
09881398
JJ
7447 * sysdeps/unix/sysv/linux/posix_fallocate.c (posix_fallocate): Fix
7448 syscall arguments count.
7449
bbeaaa84
JJ
7450 * stdio-common/tfformat.c (sprint_doubles): Add 12 new tests.
7451
087ef75f
RM
74522007-07-30 Roland McGrath <roland@redhat.com>
7453
7454 * manual/libc.texinfo: Update copyrights, formatting magic, and
7455 @dircategory. From Karl Berry <karl@freefriends.org>.
7456
44f08a6e
UD
74572007-07-29 Ulrich Drepper <drepper@redhat.com>
7458
eafaae72
UD
7459 [BZ #4860]
7460 * io/Makefile (headers): Add bits/fcntl2.h.
7461
c5705565
UD
7462 * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_ZERO_S): Optimize
7463 using gcc builtin.
7464 (__CPU_EQUAL_S): Likewise.
7465
44f08a6e
UD
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
7472 GLIBC_2.7.
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.
7476
8f5e1400
UD
74772007-07-28 Ulrich Drepper <drepper@redhat.com>
7478
5b74caf6
UD
7479 * posix/getconf.c (vars): Add missing _SC_LEVEL4_CACHE_LINESIZE
7480 entry.
7481
a26d01bb 7482 [BZ #4858]
8f5e1400
UD
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.
7486
085a4412
UD
74872007-07-26 Jakub Jelinek <jakub@redhat.com>
7488
cedb4109
UD
7489 * locale/programs/ld-monetary.c (monetary_finish): Avoid range check
7490 for int_frac_digits and frac_digits.
7491
7492 * login/logout.c (logout): Avoid aliasing violation.
7493 * login/logwtmp.c (logwtmp): Likewise.
7494
7495 * libio/genops.c (_IO_un_link): Avoid aliasing violation.
7496
9d9febc7
UD
7497 * nscd/selinux.c (preserve_capabilities): Initialize new_caps
7498 to avoid warning.
7499 * iconv/gconv_open.c (__gconv_open): Initialize ptr to avoid
7500 warning.
7501 * nis/nis_subr.c (nis_getnames): Initialize saveptr to avoid
7502 warning.
7503 * resolv/inet_ntop.c (inet_ntop6): Initialize best.len and cur.len
7504 to avoid warnings.
7505
701666b7
UD
7506 * nss/nsswitch.c (__nss_lookup_function): Don't cast &ni->known to
7507 void **.
7508 * nss/nsswitch.h (service_user): Use void * type for KNOWN field.
7509
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.
7513
7514 * timezone/Makefile (CFLAGS-zdump.c): Add -fwrapv.
7515
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.
7519
7520 * locale/programs/repertoire.c (repertoire_new_char): Change
7521 from_nr, to_nr and cnt to unsigned long, adjust printf format
7522 string.
7523
7524 * locale/programs/ld-collate.c (insert_value, handle_ellipsis):
7525 Cast second argument to new_element to char * to avoid warnings.
7526
7527 * locale/weightwc.h (findidx): Cast &extra[-i] to const int32_t *.
7528
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
7536 prototypes.
7537 * intl/loadmsgcat (_nl_unload_domain): Cast away const
7538 in call to __gettext_free_exp.
7539
7540 * posix/fnmatch.c (fnmatch): Rearrange code to avoid maybe
7541 unitialized wstring/wpattern var warnings.
7542
7543 * posix/runtests.c (struct a_test): Make data field const char *.
7544
7545 * stdio-common/tst-sprintf2.c (main): Don't declere u, v and buf
7546 vars if not LDBL_MANT_DIG >= 106.
7547
7548 * stdio-common/Makefile (CFLAGS-vfwprintf.c): Add -Wno-unitialized.
7549
7550 * stdio-common/vfprintf.c (vfprintf): Cast first arugment to
7551 __find_specmb to avoid warning.
7552
7553 * rt/tst-mqueue1.c (do_one_test): Add casts to avoid warnings.
7554
7555 * debug/test-strcpy_chk.c (do_tests, do_random_tests): Add casts
7556 to avoid warnings.
7557
7558 * sysdeps/ieee754/ldbl-96/s_roundl.c (huge): Add L suffix to
7559 initializer.
7560
7561 * sysdeps/unix/clock_gettime.c (clock_gettime): Only define
7562 tv var when it will be actually used.
7563
7564 * sunrpc/rpc_cmsg.c (xdr_callmsg): Cast IXDR_PUT_* to void
7565 to avoid warnings.
7566
085a4412
UD
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
7570 char array.
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
7577 to unsigned char *.
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
7583 to unsigned char *.
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
7590 shut up a warning.
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.
7596
fa69dc9c
UD
75972007-07-20 Jakub Jelinek <jakub@redhat.com>
7598
ae1ad762
UD
7599 [BZ #4772]
7600 * time/strptime_l.c (__strptime_internal): Silently ignore
7601 strftime modifiers and field width in recursive calls.
7602
fa69dc9c
UD
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
7610 any state.
7611 (get_alt_number): Adjust.
7612 (recursive): Adjust caller.
7613 (strptime): Likewise.
7614 * time/strptime.c (strptime): Likewise.
7615
7b503bcc
UD
76162007-07-19 Jakub Jelinek <jakub@redhat.com>
7617
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.
7624
76252007-07-17 Jakub Jelinek <jakub@redhat.com>
7626
7627 * wcsmbs/wchar.h: Only define wint_t if __need_wint_t.
7628 Don't define wint_t when __need_mbstate_t unless it
7629 is necessary.
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
7636 wchar.h.
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.
7651
a95a608f
UD
76522007-07-28 Ulrich Drepper <drepper@redhat.com>
7653
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.
7660
7661 * io/tst-posix_fallocate.c: Include <fcntl.h>.
7662
76632007-07-23 Jakub Jelinek <jakub@redhat.com>
7664
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.
7668
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
7672 nested function.
7673
80d4c3b0
RM
76742007-07-24 Roland McGrath <roland@redhat.com>
7675
7676 * Makerules (install-others-programs-nosubdir): New target.
7677 (install-no-libc.a-nosubdir): Depend on it.
7678
7679 * iconv/Makefile (install-others-programs): Set this instead of
7680 install-others.
7681 * login/Makefile (install-others-programs): Likewise.
7682 * posix/Makefile (install-others-programs): Likewise.
7683
7684 * Makerules (install-no-libc.a-nosubdir): Clean up conditional
7685 dependencies.
7686
c1bf9f14
UD
76872007-07-23 Ulrich Drepper <drepper@redhat.com>
7688
7689 * io/Makefile (tests): Add tst-posix_fallocate.
7690 * io/tst-posix_fallocate.c: New file.
7691
7692 * sysdeps/unix/sysv/linux/kernel-features.h: Define
7693 __ASSUME_FALLOCATE.
7694
2320270c
RM
76952007-07-22 Roland McGrath <roland@frob.com>
7696
3dadfa7e
RM
7697 * hurd/getdport.c: Add missing copyright year update.
7698
2320270c
RM
7699 * sysdeps/mach/hurd/bits/fcntl.h [__USE_GNU] (O_CLOEXEC): New macro.
7700 * hurd/port2fd.c (_hurd_port2fd): Implement O_CLOEXEC.
7701
cc783763
UD
77022007-07-22 Ulrich Drepper <drepper@redhat.com>
7703
c942388d
UD
7704 * login/utmp_file.c (setutent_file): Use O_CLOEXEC if possible.
7705
cc783763
UD
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.
7713
610903b0
RM
77142007-07-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
7715
3dadfa7e 7716 [BZ #3665]
5c3d7832
RM
7717 * manual/errno.texi: Change ECANCELED value to 119.
7718
3dadfa7e 7719 [BZ #4610]
610903b0
RM
7720 * mach/lock-intern.h: Include <sys/cdefs.h>.
7721
3dadfa7e 7722 [BZ #4178]
610903b0
RM
7723 * sysdeps/mach/hurd/sigaction.c (__sigaction): Check ACT != NULL before
7724 reading A.
7725
3dadfa7e
RM
7726 [BZ #4126]
7727 * sysdeps/mach/hurd/sigsuspend.c (sigsuspend_not_cancel): Define alias
7728 to __sigsuspend.
610903b0
RM
7729
7730 * sysdeps/mach/i386/sysdep.h: Include <dl-sysdep.h> and <tls.h>.
7731
77322006-06-13 Thomas Schwinge <tschwinge@gnu.org>
7733
7734 * sysdeps/mach/hurd/tls.h: Change `ASSEMBLER' conditional to
7735 `__ASSEMBLER__'.
7736 * sysdeps/mach/hurd/i386/tls.h: Likewise.
7737
acf79996
UD
77382007-07-21 Ulrich Drepper <drepper@redhat.com>
7739
dde0763a
UD
7740 * nscd/nscd_helper.c (get_mapping): Use MSG_CMSG_CLOEXEC for
7741 descriptor received from nscd.
7742
acf79996
UD
7743 * sysdeps/unix/sysv/linux/bits/socket.h: Define MSG_CMSG_CLOEXEC.
7744
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.
7751
00d26929
JJ
77522007-07-20 Jakub Jelinek <jakub@redhat.com>
7753
403445d7
JJ
7754 [BZ #4816]
7755 * manual/signal.texi (Non-atomic Example): Make memory var volatile.
7756
00d26929
JJ
7757 [BZ #4813]
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>.
7761
087722b8
UD
77622007-07-18 Jakub Jelinek <jakub@redhat.com>
7763
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.
7769
b042b023
UD
77702007-07-17 Jakub Jelinek <jakub@redhat.com>
7771
7772 * sysdeps/ia64/sched_cpucount.c: New file.
7773 * sysdeps/powerpc/sched_cpucount.c: New file.
7774
8381e467
UD
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.
7779
50e16f85
UD
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.
7786
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.
7790
b257c726
UD
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.
7801
7802 * sysdeps/pthread/bits/stdio-lock.h (_IO_acquire_lock_clear_flags2):
7803 Define.
7804
d5078b9f
UD
7805 * bits/confname.h (_CS_POSIX_V6_WIDTH_RESTRICTED_ENVS): Define.
7806 * posix/getconf.c (vars): Add POSIX_V6_WIDTH_RESTRICTED_ENVS.
7807
1c3e748e
UD
78082007-07-16 Jakub Jelinek <jakub@redhat.com>
7809
7810 [BZ #4792]
7811 * stdlib/stdlib.h (realloc): Remove __attribute_malloc__.
7812 * malloc/malloc.h (realloc): Likewise.
7813
4e425301
UD
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.
7818
2e2efe65
RM
78192007-07-14 Jakub Jelinek <jakub@redhat.com>
7820
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.
7893
84c23a3d
RM
78942007-07-06 Kaz Kojima <kkojima@rr.iij4u.or.jp>
7895
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.
7900
1c298d08
UD
79012007-07-12 Jakub Jelinek <jakub@redhat.com>
7902
7903 [BZ #4775]
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.
7921 (NCCALLS): Define.
7922 (main): Check number of complex calls as well.
7923 (F(compile_test)): Add complex tests and tests with const qualified
7924 arguments.
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.
7931
79322007-07-11 Jakub Jelinek <jakub@redhat.com>
7933
7934 [BZ #4776]
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,
7937 instead output ".".
7938 * dlfcn/Makefile (distribute): Add glreflib3.c.
7939 (module-names): Add glreflib3.
7940 ($(objpfx)tst-dlinfo.out): Depend on glreflib3.so rather than
7941 glreflib1.so.
7942 (LDFLAGS_glreflib3.so): New.
7943 * dlfcn/tst-dlinfo.c (do_test): Load glreflib3.so instead of
7944 glreflib1.so.
7945 * dlfcn/glreflib3.c: New file.
7946
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.
7951
a88f47a7
UD
79522007-07-07 Steven Munroe <sjmunroe@us.ibm.com>
7953
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.
7959
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.
7969
7970 * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S:
7971 Include math_ldbl_opt.h.
7972
f98c2d06
UD
79732007-07-10 Ulrich Drepper <drepper@redhat.com>
7974
7975 [BZ #4773]
7976 * time/strptime_l.c (__strptime_internal): Implement greedy
7977 matching of weekday and month names.
7978
cec5991f
RM
79792007-07-09 Roland McGrath <roland@redhat.com>
7980
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.
7984
8c1dcd26
UD
79852007-07-09 Ulrich Drepper <drepper@redhat.com>
7986
7987 * sysdeps/x86_64/cacheinfo.c (intel_02_known): Add new entries.
7988 * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
7989
c2c7bd3f
UD
79902007-07-07 Ulrich Drepper <drepper@redhat.com>
7991
7992 [BZ #4745]
0923a2c8
UD
7993 * stdio-common/vfscanf.c (_IO_vfscanf): Add additional test for EOF
7994 in loop to look for conversion specifier to avoid testing of
7995 wrong errno value.
7996 * stdio-common/Makefile (tests): Add bug18, bug18a, bug19, bug19a.
c2c7bd3f 7997 * stdio-common/bug18.c: New file.
0923a2c8
UD
7998 * stdio-common/bug18a.c: New file.
7999 * stdio-common/bug19.c: New file.
8000 * stdio-common/bug19a.c: New file.
c2c7bd3f 8001
4facf4af
RM
80022007-07-05 Mike Frysinger <vapier@gentoo.org>
8003
8004 * Makeconfig ($(common-objpfx)gnu/lib-names.stmp): Use LC_ALL=C when
8005 running awk script.
8006
1311e86e
UD
80072007-07-01 Jakub Jelinek <jakub@redhat.com>
8008
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.
8013
8014 * elf/dl-minimal.c (__strtoul_internal): Fix parsing of numbers bigger
8015 than LONG_MAX / 10.
8016
57c9179c
UD
80172007-07-03 Jakub Jelinek <jakub@redhat.com>
8018
8019 [BZ #4702]
8020 * nis/nss-default.c: Include errno.h.
8021 (init): Preserve errno.
8022
d0b283a8
UD
80232007-07-02 Ulrich Drepper <drepper@redhat.com>
8024
8025 * sysdeps/unix/sysv/linux/bits/socket.h (PF_UNIX): Update comment.
8026
34e0bbaf
UD
80272007-06-30 Ulrich Drepper <drepper@redhat.com>
8028
8029 * sysdeps/unix/sysv/linux/bits/socket.h: Add PF_RXRPC and AF_RXRPC.
8030
80312007-06-29 Martin Schwidefsky <schwidefsky@de.ibm.com>
8032
8033 * sysdeps/unix/sysv/linux/bits/socket.h: Add PF_IUCV and AF_IUCV.
8034
34e0bbaf 80352007-06-29 Martin Schwidefsky <schwidefsky@de.ibm.com>
33516494
UD
8036
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.
8040
0e508a6e
UD
80412007-06-29 Jakub Jelinek <jakub@redhat.com>
8042
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.
8046
e22c61fb
UD
80472007-06-22 Ulrich Drepper <drepper@redhat.com>
8048
8049 * nis/nis_domain_of.c (__nis_domain_of): Make the code a bit more
8050 ISO C compliant.
8051
e4eb675d
UD
80522007-06-19 Ulrich Drepper <drepper@redhat.com>
8053
8054 * elf/dl-close.c (free_mem): Free _dl_scope_free_list.
8055
80562007-06-13 Jakub Jelinek <jakub@redhat.com>
8057
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
8080 handling.
8081 * elf/dl-object.c (_dl_new_object): Don't use
8082 __rtld_mrlock_initialize.
8083
9be09e06
UD
80842007-06-19 Ulrich Drepper <drepper@redhat.com>
8085
8086 * sysdeps/generic/ldsodefs.h (rtld_global): Reorder some elements
8087 to fill in holes
8088 (rtld_global_ro): Likewise.
8089
80902007-06-18 Jakub Jelinek <jakub@redhat.com>
8091
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.
8105
ae1ad3ae 81062007-06-18 Jakub Jelinek <jakub@redhat.com>
f00d47a3
AS
8107 Tomas Janousek <tjanouse@redhat.com>
8108 Ulrich Drepper <drepper@redhat.com>
ae1ad3ae
UD
8109
8110 [BZ #4647]
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
8113 socket.
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.
8118
3abee0b7
UD
81192007-06-18 Jakub Jelinek <jakub@redhat.com>
8120
8121 * elf/rtld.c (dl_main): Don't call init_tls more than once.
8122
89074592
UD
81232007-06-17 Andreas Schwab <schwab@suse.de>
8124
8125 * sysdeps/generic/initfini.c: Tell gcc about the nonstandard sections.
8126
b26e274d
AJ
81272007-06-16 Andreas Jaeger <aj@suse.de>
8128
8129 [BZ #4125]
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,
89074592 8133 PTRACE_O_TRACEVFORKDONE, PTRACE_O_TRACEEXIT, PTRACE_O_MASK,
b26e274d
AJ
8134 PTRACE_EVENT_FORK, PTRACE_EVENT_VFORK, PTRACE_EVENT_CLONE,
8135 PTRACE_EVENT_EXEC, PTRACE_EVENT_VFORK_DONE, PTRACE_EVENT_EXIT):
8136 Define.
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.
8141
e0d4a4e5
UD
81422007-06-16 Ulrich Drepper <drepper@redhat.com>
8143
8144 [BZ #4599]
8145 * sysdeps/unix/sysv/linux/check_pf.c (make_request): When
8146 determining whether there are IPv4/IPv6 addresses, ignore loopback
8147 addresses.
8148
ae8e81f5
JJ
81492007-06-14 Uros Bizjak <ubizjak@gmail.com>
8150
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.
8165
90cd2413
UD
81662007-06-09 Ulrich Drepper <drepper@redhat.com>
8167
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.
8170
3c457089
UD
81712007-06-08 Ulrich Drepper <drepper@redhat.com>
8172
8173 * elf/dl-lookup.c (_dl_lookup_symbol_x): Remove use of r_nlist.
8174
e8b6b64d
UD
81752007-06-08 Jakub Jelinek <jakub@redhat.com>
8176
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.
8180
36dffb22
UD
81812007-06-08 Ulrich Drepper <drepper@redhat.com>
8182
755db8c5
UD
8183 * sysdeps/unix/sysv/linux/bits/sched.h: Make second parameter of
8184 __sched_cpucount as const.
8185 * posix/sched_cpucount.c: Adjust.
8186
36dffb22
UD
8187 * posix/sched_cpucount.c (__sched_cpucount): Allow using special
8188 instruction for counting bits.
8189 * sysdeps/x86_64/sched_cpucount.c: New file.
8190
26f56c1c
UD
81912007-06-07 Ulrich Drepper <drepper@redhat.com>
8192
8193 * configure.in: Avoid variable named BASH.
e967d385 8194 * config.make.in: Likewise.
26f56c1c 8195 Patch in part by Mike Frysinger.
835abc5c 8196
26f56c1c 81972007-06-06 Jakub Jelinek <jakub@redhat.com>
47779a7d
JJ
8198
8199 [BZ #4586]
835abc5c
UD
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.
8204
7e3706ea
UD
82052007-06-04 Jakub Jelinek <jakub@redhat.com>
8206
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.
8210
82112007-06-01 Steven Munroe <sjmunroe@us.ibm.com>
8212
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.
8219
82202007-06-05 Jakub Jelinek <jakub@redhat.com>
8221
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
8226 to even rules.
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.
8232
43b76828
UD
82332007-06-04 Jakub Jelinek <jakub@redhat.com>
8234
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.
8240
8241 * math/test-misc.c (main): Don't run last batch of tests with
8242 IBM long double format.
8243
04067002
UD
82442007-05-31 Steven Munroe <sjmunroe@us.ibm.com>
8245
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:
8258 New file.
8259 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/fpu/Implies:
8260 New file.
8261 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5+/fpu/Implies:
8262 New file.
8263 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/Implies:
8264 New file.
8265 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/fpu/Implies:
8266 New file.
8267 * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/fpu/Implies: New file.
8268 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/fpu/Implies:
8269 New file.
8270 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/fpu/Implies:
8271 New file.
8272 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5+/fpu/Implies:
8273 New file.
8274 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/Implies:
8275 New file.
8276 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/fpu/Implies:
8277 New file.
8278
82792007-05-31 Steven Munroe <sjmunroe@us.ibm.com>
8280
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.
8289
82902007-05-22 Steven Munroe <sjmunroe@us.ibm.com>
8291
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.
8300
83012007-05-21 Steven Munroe <sjmunroe@us.ibm.com>
8302
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.
8307
83082007-03-15 Steven Munroe <sjmunroe@us.ibm.com>
8309
8310 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrint.S
8311 [LONG_DOUBLE_COMPAT]: Add compat_symbol for llrintl@@GLIBC_2_1.
8312
83132006-02-13 Steven Munroe <sjmunroe@us.ibm.com>
8314
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
8319
83202006-10-20 Steven Munroe <sjmunroe@us.ibm.com>
8321
8322 * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: New file.
8323 * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: New file.
8324
83252006-10-03 Steven Munroe <sjmunroe@us.ibm.com>
8326
8327 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llround.S: New file.
8328 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llroundf.S: New file.
8329
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.
8334
83352006-09-29 Steven Munroe <sjmunroe@us.ibm.com>
8336
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.
8341
83422006-09-28 Steven Munroe <sjmunroe@us.ibm.com>
8343
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.
8350
83512006-08-31 Steven Munroe <sjmunroe@us.ibm.com>
8352
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.
8357
83582006-06-15 Steven Munroe <sjmunroe@us.ibm.com>
8359
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.
8376
83772006-03-20 Steven Munroe <sjmunroe@us.ibm.com>
8378
8379 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrint.S: New file.
8380 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrintf.S: New file.
8381
83822007-06-01 Steven Munroe <sjmunroe@us.ibm.com>
8383
8384 * sysdeps/powerpc/powerpc32/power6/memset.S: New file.
8385 * sysdeps/powerpc/powerpc64/power6/memset.S: New file.
8386
83872007-05-31 Steven Munroe <sjmunroe@us.ibm.com>
8388
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.
8399
84002007-05-21 Steven Munroe <sjmunroe@us.ibm.com>
8401
8402 * sysdeps/powerpc/powerpc32/power4/memset.S: New file
8403
84042007-03-13 Steven Munroe <sjmunroe@us.ibm.com>
8405
8406 * sysdeps/powerpc/powerpc64/memcpy.S: Improve aligned loop to minimize
8407 branch miss-predicts. Ensure that cache line crossing does not impact
8408 dispatch grouping.
8409
84102006-12-13 Steven Munroe <sjmunroe@us.ibm.com>
8411
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".
8416
84172006-10-03 Steven Munroe <sjmunroe@us.ibm.com>
8418
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.
8425
84262006-09-10 Steven Munroe <sjmunroe@us.ibm.com>
8427
8428 * sysdeps/powerpc/powerpc32/power6/memcpy.S: New file.
8429
84302006-08-31 Steven Munroe <sjmunroe@us.ibm.com>
8431
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.
8440
84412006-07-06 Steven Munroe <sjmunroe@us.ibm.com>
8442
8443 * sysdeps/powerpc/powerpc64/power6/memcpy.S: New file.
8444
84452006-03-20 Steven Munroe <sjmunroe@us.ibm.com>
8446
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.
8454
5b55e1d3
RM
84552007-05-29 Roland McGrath <roland@redhat.com>
8456
8457 * po/Makefile (po-sed-cmd): New variable.
8458 (libc.pot.files): Move sed command text in there, avoid \ inside ''.
8459
5da4373c
UD
84602007-05-29 Ulrich Drepper <drepper@redhat.com>
8461
4b5e7304
UD
8462 * crypt/md5-crypt.c: Fix comment.
8463
5da4373c
UD
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
8467 exist.
8468 Patch in part by Guillaume Chazarain <guichaz@yahoo.fr>.
8469
40f57573
UD
84702007-05-28 Jakub Jelinek <jakub@redhat.com>
8471
8472 * sysdeps/unix/sysv/linux/futimes.c (miss_utimensat): Don't define
8473 if __NR_utimensat is not defined.
8474
6df7ffad
UD
84752007-05-26 Ulrich Drepper <drepper@redhat.com>
8476
8477 * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Include <sysdep.h>.
8478
47ad95ab
UD
84792007-05-25 Jakub Jelinek <jakub@redhat.com>
8480
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
8488 on redirect.
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
8492 on redirect.
8493 (openat64): Fix comment typos. Don't call __openat64_2 if flags
8494 is a compile time constant without O_CREAT.
8495
ddfd0535
UD
84962007-05-24 Ulrich Drepper <drepper@redhat.com>
8497
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
8518 __openat64_2.
8519 * include/bits/fcntl2.h: New file.
8520 * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
8521 Add open_2.
8522 * sysdeps/unix/sysv/linux/open_2.c: New file.
8523
bfe6f5fa
UD
85242007-05-21 Ulrich Drepper <drepper@redhat.com>
8525
6d59823c
UD
8526 * sysdeps/x86_64/cacheinfo.c (init_cacheinfo): Pass correct value
8527 as second parameter to handle_intel.
8528
e2b1e343
UD
8529 * nscd/aicache.c (addhstaiX): If reported TTL is zero don't cache
8530 the entry.
8531
bfe6f5fa
UD
8532 * sysdeps/unix/sysv/linux/x86_64/sysconf.c: Move cache information
8533 handling to ...
8534 * sysdeps/x86_64/cacheinfo.c: ... here. New file.
8535 * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
8536 cacheinfo.
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>.
8540
8541 * sysdeps/unix/sysv/linux/i386/epoll_pwait.S: New file.
8542
1f4843fb
UD
85432007-05-21 Jakub Jelinek <jakub@redhat.com>
8544
2c2c003a
UD
8545 [BZ #4525]
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.
8549
8550 * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h (epoll_pwait): Declare.
8551
af269dd9
UD
8552 [BZ #4514]
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.
8558
1f4843fb
UD
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
8562 chunks.
8563
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.
8570
8571 * malloc/Makefile (CFLAGS-malloc.c): Revert accidental
8572 2007-05-07 commit.
8573
12e8bbff
UD
85742007-05-19 Ulrich Drepper <drepper@redhat.com>
8575
8576 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_PRIVATE_FUTEX):
8577 Define for kernel >= 2.6.22.
69e5cbf5 8578
12e8bbff 85792007-05-18 Ulrich Drepper <drepper@redhat.com>
6d59823c 8580
df94b641
UD
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
8585 lookups finish.
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.
8591
2acd01ac
UD
8592 * malloc/malloc.c (do_check_chunk): Correct check for mmaped block
8593 not overlapping with arena.
8594
129abdd3
UD
8595 * malloc/mcheck.c (reallochook): If size==0, free the block.
8596
eb4b098a
UD
8597 * rt/tst-shm.c: Use fstat64 instead of fstat.
8598
69e5cbf5
UD
8599 * sysdeps/unix/sysv/linux/i386/sync_file_range.S: Fix case where
8600 __NR_sync_file_range is not defined.
8601
a2ccc760
UD
86022007-05-17 Ulrich Drepper <drepper@redhat.com>
8603
bec51a30
UD
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.
8609
a2ccc760
UD
8610 * version.h (VERSION): Set to 2.6.90.
8611
1a31b586
UD
86122007-05-14 Ulrich Drepper <drepper@redhat.com>
8613
a2ccc760
UD
8614 * version.h (VERSION): Define to 2.6.
8615 * include/features.h (__GLIBC_MINOR__): Define to 6.
2c1d6172 8616
1d47e92f
UD
8617 * malloc/malloc.c: Use all small bin slots on 64-bit archs.
8618
8619 * malloc/malloc.c (largebin_index): Really have 32 buckets with 64
8620 sizes.
366ad8fd 8621
1a31b586 86222007-05-13 Ulrich Drepper <drepper@redhat.com>
87e66335 8623
366ad8fd
UD
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.
8628
11ed6713
AJ
86292007-05-12 Andreas Jaeger <aj@suse.de>
8630
8631 * sysdeps/unix/sysv/linux/tst-getcpu.c: Include <unistd.h> for
8632 getpid.
8633
d65ef3dd
UD
86342007-05-11 Ulrich Drepper <drepper@redhat.com>
8635
2e81d449
UD
8636 * elf/dl-close.c (_dl_close_worker): Help gcc to optimize by
8637 adding new variables.
8638
d65ef3dd 8639 * elf/dl-open.c (add_to_global): Introduce variable ns to help gcc
2e81d449 8640 optimize. Completely extend global scope array before making the
d65ef3dd
UD
8641 new entries visible.
8642
c27d2078
UD
86432007-05-10 Ulrich Drepper <drepper@redhat.com>
8644
341c566f
UD
8645 * sysdeps/unix/sysv/linux/tst-getcpu.c: New file.
8646 * sysdeps/unix/sysv/linux/Makefile [subdir=posix] (tests): Add
8647 tst-getcpu.
8648
8649 * include/link.h: Move l_version and l_nversion members around to
8650 fill gaps.
8651
a53fa282
UD
8652 * scripts/check-c++-types.sh: Don't use -fnu89-inline option.
8653
3771196d
UD
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.
8658
f9bf102d
UD
8659 * io/sys/stat.h: Make sure struct timespec is defined for
8660 __USE_ATFILE.
8661
c27d2078
UD
8662 * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Define UTIME_NOW and
8663 UTIME_OMIT.
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
8680 available.
8681
8682 * include/sys/cdefs.h: Redefine __nonnull so that test for
8683 incorrect parameters in the libc code itself are not omitted.
8684
cf6b0980
JJ
86852007-05-09 Jakub Jelinek <jakub@redhat.com>
8686
c1dfd7e6
JJ
8687 * sysdeps/ia64/fpu/fraiseexcpt.c (feraiseexcept): Don't raise overflow
8688 exception in addition to inexact when asked to raise only FE_INEXACT.
8689
cf6b0980
JJ
8690 [BZ #3427]
8691 * sysdeps/s390/fpu/feholdexcpt.c (feholdexcept): Don't clear exceptions
8692 in *envp.
8693
df7b6fea
UD
86942007-05-07 Ulrich Drepper <drepper@redhat.com>
8695
8696 [BZ #4403]
8697 * string/strfry.c (strfry): Make result more random.
8698
37f40235
RH
86992007-05-07 Richard Henderson <rth@redhat.com>
8700
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
df7b6fea 8704 available in the compiler, add .arch directive to the assembly.
37f40235
RH
8705
87062007-05-07 Jakub Jelinek <jakub@redhat.com>
8707
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
8717 libc, not libm.
8718 (__isnanl): New compat_symbol.
8719
c7fd3362
JJ
87202007-05-07 Ulrich Drepper <drepper@redhat.com>
8721 Jakub Jelinek <jakub@redhat.com>
8722
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.
8728
4a59e9ad 87292007-04-30 Steven Munroe <sjmunroe@us.ibm.com>
37f40235 8730 Peter Bergner <bergner@us.ibm.com>
4a59e9ad
UD
8731
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
8745 or visa versa.
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.
8756
aa75f64c
UD
87572007-05-06 Ulrich Drepper <drepper@redhat.com>
8758
15eca720 8759 [BZ #4465]
aa75f64c
UD
8760 * posix/unistd.h: Remove __THROW from fdatasync.
8761
711deb05
UD
87622007-05-06 Mike Frysinger <vapier@gentoo.org>
8763
15eca720 8764 [BZ #4465]
711deb05
UD
8765 * sysdeps/unix/sysv/linux/syscalls.list (fdatasync): Add "C" to args.
8766
ffecd39b
UD
87672007-05-06 Ulrich Drepper <drepper@redhat.com>
8768
49a8eb75
UD
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>.
8772
ffecd39b
UD
8773 [BZ #4131]
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>.
8777
b16dba4c
UD
87782007-05-04 Ulrich Drepper <drepper@redhat.com>
8779
30b323ab
UD
8780 * stdio-common/vfprintf.c (process_string_arg): Adjust call to
8781 __mbsnrtowcs after last change.
8782
b16dba4c
UD
8783 * locale/programs/linereader.c (get_symname): Fix adding final NUL.
8784 (get_ident): Likewise.
8785
37002cbc
JJ
87862007-05-03 Jakub Jelinek <jakub@redhat.com>
8787
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.
8791
87922007-04-14 Uros Bizjak <ubizjak@gmail.com>
8793
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.
8802
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.
8814
d9ac82d0
UD
8815 * soft-fp/op-2.h (_FP_FRAC_COPY_2_2): Define as alias to
8816 _FP_FRAC_COPY_2.
8817 * soft-fp/op-4.h (_FP_FRAC_COPY_2_2): Define as alias to
8818 _FP_FRAC_COPY_4.
37002cbc
JJ
8819
88202007-04-16 Uros Bizjak <ubizjak@gmail.com>
8821 Jakub Jelinek <jakub@redhat.com>
8822
8823 * soft-fp/op-common.h (FP_EXTEND): Do not abort when
8824 _FP_EXPBIAS_##dfs == _FP_EXPBIAS_##sfs. Handle denormals for
8825 this case.
8826 * soft-fp/op-common.h (FP_TRUNC): Ditto.
8827
002f0b0b
JJ
88282007-05-03 Jakub Jelinek <jakub@redhat.com>
8829
8830 * math/test-misc.c (main): Add tests for rounding long double
8831 values close to smallest double denormalized value to double.
8832
88332007-04-30 Joseph Myers <joseph@codesourcery.com>
8834
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
8837 truncation.
8838
57433ede
UD
88392007-05-02 Jakub Jelinek <jakub@redhat.com>
8840
8841 * stdio-common/vfprintf.c (process_string_arg): Use a VLA rather than
8842 fixed length array for ignore.
8843
c01c2455
UD
88442007-04-30 Ulrich Drepper <drepper@redhat.com>
8845
8846 [BZ #4438]
8847 * stdio-common/vfprintf.c (process_string_arg): Don't overflow the
8848 stack for large precisions.
1cb04337
UD
8849 * stdio-common/test-vfprintf.c (main): Add test for large
8850 precision.
c01c2455 8851
37f02b1d
UD
88522007-04-30 Jakub Jelinek <jakub@redhat.com>
8853
b866373d
UD
8854 * stdio-common/printf_fp.c (___printf_fp): Don't print negative sign
8855 for exponent 0.
8856 * stdio-common/tfformat.c (sprint_doubles): Add a new test.
8857
37f02b1d
UD
8858 [BZ #4439]
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.
8863
7ecfbd38
UD
88642007-04-30 Ulrich Drepper <drepper@redhat.com>
8865 Jakub Jelinek <jakub@redhat.com>
8866
8867 [BZ #4349]
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>.
8872
e53f0f51
UD
88732007-04-28 Ulrich Drepper <drepper@redhat.com>
8874
8875 [BZ #4102]
8876 * sysdeps/posix/getaddrinfo.c (default_labels): Assign separate
8877 label to Teredo tunnel addresses 2001://32.
8878
109f51f2
UD
88792007-04-27 Ulrich Drepper <drepper@redhat.com>
8880
762422d1
UD
8881 * locale/programs/ld-collate.c (collate_read): Allow order_start
8882 after copy.
8883
61d5a67f
UD
8884 * locale/programs/ld-collate.c (collate_read): Fix printing of
8885 error message.
8886
8887 [BZ #3213]
8888 * locale/C-translit.h.in: Add entry for U2044.
8889
109f51f2
UD
8890 [BZ #4342]
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.
8894
ec08f13d
UD
88952007-04-25 Ulrich Drepper <drepper@redhat.com>
8896
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
8901 GLIBC_2.6.
bce20b9a
UD
8902 * sysdeps/unix/sysv/linux/Makefile [subdir=posix] (sysdep_routines):
8903 Add sched_getcpu.
ec08f13d 8904
41967e1c
JJ
89052007-04-25 Jakub Jelinek <jakub@redhat.com>
8906
8907 * sysdeps/unix/sysv/linux/check_pf.c (make_request): Return -1 instead
8908 of 0 after the out_fail label.
8909
ba508da3
UD
89102007-04-25 Ulrich Drepper <drepper@redhat.com>
8911
8912 [BZ #4406]
109f51f2 8913 * iconv/gconv_charset.h (strip): Allow ':'.
ba508da3
UD
8914 * iconv/iconv_open.c (iconv_open): Adjust comment.
8915
9c8d03d9
JJ
89162007-04-25 Jakub Jelinek <jakub@redhat.com>
8917
8918 * libio/bits/stdio.h (fgetc_unlocked): Add extern inline optimized
8919 version.
8920
2f1687b9
UD
89212007-04-23 Jakub Jelinek <jakub@redhat.com>
8922
8923 [BZ #4381]
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.
8934
b64a9db8
JJ
89352007-04-23 Jakub Jelinek <jakub@redhat.com>
8936
8937 [BZ #4405]
8938 * iconvdata/gconv-modules (E13B): Add a missing slash to the alias
8939 name. Patch by Aurelien Jarno <aurelien@aurel32.net>.
8940
4d3144c9
RM
89412007-04-22 Roland McGrath <roland@redhat.com>
8942
8943 * elf/elf.h (NT_PRXFPREG): New macro.
8944
767b40bf
AJ
89452007-04-19 Andreas Jaeger <aj@suse.de>
8946
8947 [BZ #3905]
8948 * bits/in.h (IPV6_ROUTER_ALERT, IPV6_MTU_DISCOVER, IPV6_MTU,
8949 IPV6_RECVERR, IPV6_V6ONLY, IPV6_JOIN_ANYCAST, IPV6_LEAVE_ANYCAST):
8950 Added.
8951
2592d1ec
UD
89522007-04-19 Ulrich Drepper <drepper@redhat.com>
8953
8954 * include/sys/mman.h: Mark madvise hidden.
d07d044e 8955 * misc/madvise.c: Add libc_hidden_def.
2592d1ec 8956
7ab174ed
UD
89572007-04-06 Jakub Jelinek <jakub@redhat.com>
8958
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
8965 to search_parent.
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
8969 __nis_domain_of.
8970
b17c265f
UD
89712007-04-18 Ulrich Drepper <drepper@redhat.com>
8972
8973 * sysdeps/posix/getaddrinfo.c: Remove commented-out code.
8974
b7674b11
UD
89752007-04-17 Ulrich Drepper <drepper@redhat.com>
8976
8977 [BZ #4368]
8978 * stdlib/stdlib.h: Remove obsolete part of comment for realpath.
8979
faf3ad69
UD
89802007-04-16 Ulrich Drepper <drepper@redhat.com>
8981
8982 [BZ #4364]
8983 * posix/unistd.h (_XOPEN_VERSION): Define appropriately for SUSv3.
8984
c14f245c
UD
89852007-04-15 Jakub Jelinek <jakub@redhat.com>
8986
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
8992 their locrecs.
8993
d40e67f5
UD
89942007-04-13 Jakub Jelinek <jakub@redhat.com>
8995
993a5d66
UD
8996 * libio/genops.c (_IO_default_finish): Call _IO_lock_fini
8997 after _IO_un_link, not before it.
8998
d40e67f5
UD
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.
9002
0fca3153
UD
90032007-03-30 Jakub Jelinek <jakub@redhat.com>
9004
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):
9008 Remove __THROW.
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.
9051
07358add
JJ
90522007-04-16 Jakub Jelinek <jakub@redhat.com>
9053
9054 * locale/programs/locarchive.c (show_archive_content): Fix sizeof
9055 argument in xmalloc size computation.
9056
7a82b74f
UD
90572007-04-01 Jakub Jelinek <jakub@redhat.com>
9058
9059 * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (__nextafterl): Use
9060 math_opt_barrier and math_force_eval macros.
9061
3e336a87
UD
90622007-03-27 Jakub Jelinek <jakub@redhat.com>
9063
9064 [BZ #3306]
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
9070 "=m" and "m".
9071 * math/s_nextafter.c (__nextafter): Likewise.
9072 * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c (__nexttoward):
9073 Likewise.
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.
9106
a8c79c40
UD
91072007-03-22 Jakub Jelinek <jakub@redhat.com>
9108
9109 [BZ #3427]
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
9118 and ldsodefs.h.
9119 (__feupdateenv): Query exceptions also from MXCSR if SSE is available.
9120 Fix comment typo.
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.
9126 (main): Call it.
9127
91282007-01-05 Richard B. Kreckel <kreckel@ginac.de>
9129
9130 [BZ #3427]
9131 * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Clear all exceptions
9132 in SW.
9133
30a3aa75
JJ
91342007-04-13 Jakub Jelinek <jakub@redhat.com>
9135
9136 [BZ #4344]
9137 * elf/ldconfig.c (search_dir): Fix 2 off-by-2 errors.
9138 Reported by David Anderson <davea42@earthlink.net>.
9139
75587bfe
UD
91402007-04-07 Ulrich Drepper <drepper@redhat.com>
9141
9142 * posix/sys/wait.h: Remove unnecessary forward declaration.
9143
88fa1769
JJ
91442007-04-05 Jakub Jelinek <jakub@redhat.com>
9145
9146 * nis/nis_call.c (__nisfind_server): Replace (*dir)->do_servers
9147 with obj->do_servers after first_shoot.
9148
eab1bdfb
UD
91492007-04-03 Ulrich Drepper <drepper@redhat.com>
9150
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.
b4afdd06
UD
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.
eab1bdfb 9159
9700b039
UD
91602007-03-27 Jakub Jelinek <jakub@redhat.com>
9161
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.
9172
d64e9790
JJ
91732007-04-01 Jakub Jelinek <jakub@redhat.com>
9174
933dfe7b
JJ
9175 * sysdeps/ia64/fpu/fesetround.c (fesetround): Return 0 on success
9176 and 1 on failure.
9177
d64e9790
JJ
9178 * sysdeps/unix/sysv/linux/sync_file_range.c (sync_file_range):
9179 Change last argument to unsigned int.
9180
e1f0c5bc
UD
91812007-03-23 Jakub Jelinek <jakub@redhat.com>
9182
9183 * scripts/check-local-headers.sh: Filter out sys/capability.h.
9184
91852007-03-22 Jakub Jelinek <jakub@redhat.com>
9186
9187 * config.h.in (HAVE_LIBCAP): Add.
9188 * nscd/selinux.h: Include sys/capability.h rather than non-existent
9189 sys/capabilities.h.
9190 * nscd/selinux.c (preserve_capabilities): Use cap_free instead of
9191 free_caps. Cast away const from 4th cap_set_flag argument.
9192
4e87573f
UD
91932007-03-26 Ulrich Drepper <drepper@redhat.com>
9194
9195 * sysdeps/unix/sysv/linux/Versions: Move sync_file_range to
9196 GLIBC_2.6.
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>.
9200
fa6e3bc3
UD
92012007-03-19 Steven Munroe <sjmunroe@us.ibm.com>
9202
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.
9224
92252007-03-20 Jakub Jelinek <jakub@redhat.com>
c7693af7
UD
9226
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
9231 unconditionally.
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
9236 unconditionally.
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
9240 defined in ld.so.
9241 * sysdeps/powerpc/powerpc32/memset.S (__cache_line_size): Remove
9242 definition.
9243 * sysdeps/powerpc/powerpc64/memset.S (__cache_line_size): Likewise.
9244
0479e581
JJ
92452007-03-26 Jakub Jelinek <jakub@redhat.com>
9246
9247 [BZ #4276]
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.
9258
9259 * timezone/private.h: Update from tzcode2007d.
9260 * timezone/zdump.c: Likewise.
9261 * timezone/zic.c: Likewise.
9262
697d37b1
JJ
92632007-03-21 Jakub Jelinek <jakub@redhat.com>
9264
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
9267 variables.
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
9280 key.
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
9284 prototypes.
9285
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.
9297
06029c20
JJ
92982007-03-20 Jakub Jelinek <jakub@redhat.com>
9299
371f84a4
JJ
9300 * configure.in (libc_cv_gnu89_inline): Only do compile test.
9301 * configure: Rebuilt.
9302
06029c20
JJ
9303 * soft-fp/double.h (_FP_UNION_D): Use _FP_W_TYPE for frac
9304 bit-fields.
9305 * soft-fp/extended.h (_FP_UNION_E): Likewise.
9306
93072006-06-07 Joseph Myers <joseph@codesourcery.com>
9308
9309 [BZ #2831]
9310 * soft-fp/quad.h (_FP_UNION_Q): Use _FP_W_TYPE for frac
9311 bit-fields.
9312
addc8335
UD
93132007-03-18 Jakub Jelinek <jakub@redhat.com>
9314
9315 * nscd/gai.c: Include alloca.h.
9316 (__libc_use_alloca): Define.
9317
b037a293
UD
93182007-03-16 Jakub Jelinek <jakub@redhat.com>
9319
965cba04
UD
9320 * elf/dl-open.c (dl_open_worker): Declare l in 2 different
9321 smaller scopes.
9322 * elf/dl-dst.h (DL_DST_REQ_STATIC): Add l as macro argument.
9323 (DL_DST_REQUIRED): Adjust user.
9324
9325 * include/dlfcn.h (struct link_map): New forward decl.
9326
9327 * inet/getnameinfo.c: Include stddef.h.
9328 (getnameinfo): Use offsetof.
9329
9330 * time/tst-mktime2.c (do_test): Don't rely on signed wrap.
9331
9332 * stdio-common/vfprintf.c (_itoa): Undef before redefining.
9333
9334 * string/strerror_l.c: Include stdlib.h.
9335
b037a293
UD
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
9339 -std=gnu99.
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.
9390
6b2665f5
UD
93912007-03-15 Jakub Jelinek <jakub@redhat.com>
9392
b037a293
UD
9393 * locale/programs/ld-ctype.c (find_translit): Return NULL if ctype is
9394 NULL.
9395
6b2665f5
UD
9396 [BZ #3919]
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.
9409
44969f17
UD
9410 [BZ #4101]
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.
9417
05eb8975
UD
9418 [BZ #4130]
9419 * login/utmp_file.c (setutent_file): Use O_LARGEFILE for
9420 open_not_cancel_2.
9421 (updwtmp_file): Likewise.
9422
6cb988fa
UD
9423 [BZ #4181]
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
9426 is NULL.
9427 (inet6_opt_finish): Likewise.
9428 * inet/Makefile (tests): Add test-inet6_opt.
9429 * inet/test-inet6_opt.c: New test.
9430
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
9435 buffer.
9436
aea1d19e
RH
94372007-03-14 Richard Henderson <rth@redhat.com>
9438
b6df547c
RH
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.
9447
aea1d19e
RH
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.
9454
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.
9467
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.
9472
9e43b50d
RH
94732007-03-13 Richard Henderson <rth@redhat.com>
9474
9475 * sysdeps/ieee754/ldbl-128/Makefile: New file.
9476
62789da3
RH
94772007-03-13 Richard Henderson <rth@redhat.com>
9478
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.
9485
47dbe62b
RH
94862007-03-13 Richard Henderson <rth@redhat.com>
9487
37f40235 9488 * elf/dl-support.c (_dl_aux_init): Honor DL_PLATFORM_AUXV.
47dbe62b
RH
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
9494 weak symbol.
9495 * sysdeps/unix/sysv/linux/alpha/sysconf.c (__libc_alpha_cache_shape):
9496 Extern instead of initialized.
9497
b8097bed
RH
94982007-03-13 Richard Henderson <rth@redhat.com>
9499
9500 * sysdeps/unix/sysv/linux/alpha/sigsuspend.S: Add support for
9501 __sigsuspend_nocancel.
9502
6bf4a686
UD
95032007-03-06 Ulrich Drepper <drepper@redhat.com>
9504
9505 * sysdeps/posix/getaddrinfo.c (get_scope): Correct test for
9506 172.16/12 address range.
9507
0b3b1a0c
UD
95082007-03-02 Jakub Jelinek <jakub@redhat.com>
9509
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
9512 message.
9513
8f3edfee
UD
95142007-03-01 Jakub Jelinek <jakub@redhat.com>
9515
c1c5e654 9516 [BZ #4069]
8f3edfee
UD
9517 * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Check for NaN
9518 earlier.
9519 * math/libm-test.inc (pow_test): Add more tests involving NaNs.
9520
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.
9526
245a1481
UD
95272007-02-10 Mike Frysinger <vapier@gentoo.org>
9528
9529 * sysdeps/unix/sysv/linux/sh/Makefile: Remove sys/io.h
9530 from sysdep_headers.
9531
c217692b
UD
95322007-02-28 Jakub Jelinek <jakub@redhat.com>
9533
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.
9537
fe64626c
JJ
95382007-02-27 Jakub Jelinek <jakub@redhat.com>
9539
9540 * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Fix
9541 memory reallocation.
9542
0f7769f7
UD
95432007-02-21 Ulrich Drepper <drepper@redhat.com>
9544
621c133d
UD
9545 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Add branch predictions
9546 and fix some typos.
9547 Optimize use of TOLOWER.
9cf147d8 9548
cdfd61e1
UD
9549 [BZ #3325]
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.
9553
8889e7aa
UD
9554 [BZ #3458]
9555 * sysdeps/unix/sysv/linux/posix_madvise.c: New file.
9556 * sysdeps/unix/sysv/linux/syscalls.list: Remove posix_madvise entry.
9557
63a2f305
UD
9558 [BZ #4076]
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.
c536b9b8 9562 * io/bug-ftw5.c: New file.
63a2f305 9563
c8703f88
UD
9564 * nscd/hstcache.c (cache_addhst): Remove unnecessary conditional.
9565 * nscd/servicescache.c (cache_addserv): Likewise.
9566
9567 * nscd/grpcache.c (cache_addgr): In case a record changed on
9568 refresh, adjust key_copy.
9569
61705e06
UD
9570 [BZ #4074]
9571 * nscd/pwdcache.c (cache_addpw): In case a record changed on
9572 refresh, adjust key_copy.
9573
0f7769f7
UD
9574 [BZ #4070]
9575 * stdio-common/printf_fp.c (___printf_fp): Handle a few more
0f7769f7 9576 special cases.
8889e7aa 9577 * stdio-common/tfformat.c (sprint_doubles): Some more tests.
0f7769f7 9578
3979024a
UD
95792007-02-19 Ulrich Drepper <drepper@redhat.com>
9580
4c02bf1a
UD
9581 * stdio-common/printf_fp.c (___printf_fp): Cleanups and minor
9582 optimization.
9583
3979024a
UD
9584 * stdio-common/vfscanf.c: Small cleanups throughout.
9585
821d3e70
UD
95862007-02-18 Ulrich Drepper <drepper@redhat.com>
9587
2484468b
UD
9588 [BZ #3325]
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>.
9593
858ee15d
UD
9594 * sysdeps/unix/closedir.c: Outside libc don't use locking.
9595 * sysdeps/unix/opendir.c: Likewise.
9596 * sysdeps/unix/readdir.c: Likewise.
9597
ecb72bd5
UD
9598 [BZ #2211]
9599 * stdio-common/vfscanf.c: Handle localized digits etc for floating
9600 point numbers.
9601 Patch mostly by Hamed Malek <hamed@farsiweb.info>.
9602
ac2ca022
UD
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.
9606
e9bb5246 9607 * stdio-common/vfscanf.c: Remove unused WIDTH handling.
da50f001 9608 More simplifications of floating-point reader.
e9bb5246 9609
821d3e70
UD
9610 * stdio-common/Makefile (tests): Add tst-swscanf.
9611 * stdio-common/tst-sscanf.c: Make tests usable for swscanf
9612 testing.
9613 * stdio-common/tst-swscanf.c: New file.
9614
07fb5185
UD
96152007-02-17 Ulrich Drepper <drepper@redhat.com>
9616
9138cc0b
UD
9617 [BZ #2633]
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.
9623
6818d837
UD
9624 [BZ #3842]
9625 * sysdeps/posix/euidaccess.c [_LIBC] (euidaccess): Remove shortcut
9626 using __libc_enable_secure.
9627
15c4b5a4
UD
9628 [BZ #3818]
9629 * sysdeps/unix/sysv/linux/sys/acct.h (struct acct_v3): Define.
9630
5e9e9c14
UD
9631 [BZ #3745]
9632 * locale/programs/ld-collate.c (handle_ellipsis): Fix generation
9633 of names for ellipsises.
9634
07fb5185
UD
9635 [BZ #3348]
9636 * malloc/memusage.sh: Cleanups.
9637 * debug/xtrace.sh: Quoting and trap changes.
9638
8c6d1043
UD
96392007-02-16 Ulrich Drepper <drepper@redhat.com>
9640
07fb5185
UD
9641 * locale/iso-3166.def: Add Jersey, Guernsey, and Isle Of Man entries.
9642
93e66914 9643 * locale/iso-3166.def: Update entry for Serbia.
93e36434
UD
9644 * locale/iso-4217.def: Define RSD, remove CSD.
9645
ad0b348c
UD
9646 * sysdeps/x86_64/bits/atomic.h: One more change, this time for 16-
9647 and 64-bit operations.
9648
9649 [BZ #4040]
9650 * sysdeps/i386/i486/bits/atomic.h: One more change, this time for
9651 16-bit operations.
9652
8c6d1043
UD
9653 * nscd/nscd.c (parse_opt): One more conversion to use send instead
9654 of writev.
9655
987f54c6
UD
96562007-02-15 Ulrich Drepper <drepper@redhat.com>
9657
b3715c05
UD
9658 [BZ #3991]
9659 * assert/assert.h (assert): Simplify.
9660 (assert_perror): Likewise.
9661 Patch by Israel G. Lugo <ilugo@bridonsecurity.com>.
9662
6eea8e0d
UD
9663 * nscd/nscd_helper.c (open_socket): Don't send padding bytes from
9664 reqdata.
9665
987f54c6
UD
9666 * sysdeps/unix/sysv/linux/x86_64/send.c (__libc_send): Cosmetic
9667 change: don't pass NULL in place of an integer.
9668
3dc08a7e
UD
96692007-02-02 Bruno Haible <bruno@clisp.org>
9670
06c17c78
UD
9671 [BZ #3954]
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
9678 mapping of U+327E.
9679 Reported by Jungshik Shin <jungshik@google.com>.
9680
9681 [BZ #3955]
3dc08a7e
UD
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>.
9685
a810e68c
UD
96862007-02-14 Ulrich Drepper <drepper@redhat.com>
9687
9688 * sysdeps/x86_64/bits/atomic;h: Fix asm parameters for some
9689 byte variants.
9690
9691 [BZ #4040]
9692 * sysdeps/i386/i486/bits/atomic.h: Fix asm parameters for some
9693 byte variants. Patch mostly be tom@tommay.net.
9694
05f135ba
UD
96952007-02-14 Jakub Jelinek <jakub@redhat.com>
9696
9697 [BZ #3996]
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.
9709
2f699967
UD
97102007-02-13 Ulrich Drepper <drepper@redhat.com>
9711
9712 * po/ru.po: Update from translation team.
9713
3a7cd5b4
JJ
97142007-02-12 Jakub Jelinek <jakub@redhat.com>
9715
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.
9719
2f978feb
UD
97202007-02-12 Ulrich Drepper <drepper@redhat.com>
9721
9722 * elf/rtld.c (RESOLVE_MAP): Always return bootstrap_map reference.
9723 * elf/Makefile ($(objpfx)ld.so): Check that ld.so has no undefined
9724 references.
9725
2bbb7d5b
UD
97262007-02-09 Ulrich Drepper <drepper@redhat.com>
9727
5ed61e0f
UD
9728 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Remove incorrect comment.
9729
2bbb7d5b
UD
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.
9738
00458b5b
UD
97392007-02-08 Jakub Jelinek <jakub@redhat.com>
9740
9741 [BZ #3944]
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.
9749
784aacea
UD
97502007-02-05 Jakub Jelinek <jakub@redhat.com>
9751
9752 [BZ #3957]
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.
9759
bf7a2463
UD
97602007-02-03 Ulrich Drepper <drepper@redhat.com>
9761
9762 * po/sv.po: Update from translation team.
9763
f2ccf983
UD
97642007-02-02 Ulrich Drepper <drepper@redhat.com>
9765
9766 * nscd/nscd_helper.c (open_socket): Minor size optimization.
9767
73f50d5a
UD
97682007-02-02 Jakub Jelinek <jakub@redhat.com>
9769
9770 * include/locale.h (__uselocale): Add libc_hidden_proto.
9771 * locale/uselocale.c (__uselocale): Add libc_hidden_def.
9772
f6bf9e59
JJ
9773 * nscd/nscd_helper.c (open_socket): Use __gettimeofday instead of
9774 gettimeofday.
9775
4a44ce79
UD
97762007-02-01 Ulrich Drepper <drepper@redhat.com>
9777
9778 * sysdeps/unix/sysv/linux/i386/sysdep.h (PTR_MANGLE): Roll value before
9779 returning.
9780 (PTR_DEMANGLE): Real definition now that it's not the same as
9781 PRT_MANGLE anymore.
9782 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
9783
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.
9788
58a2d52e
UD
97892007-01-31 Ulrich Drepper <drepper@redhat.com>
9790
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
9794 callers.
9795 * nscd/nscd-client.h: Define MAXKEYLEN.
4a44ce79 9796 * nscd/connections.c (nscd_run): Don't define MAXKEYLEN here.
58a2d52e 9797
1a77d37f
JJ
97982007-01-31 Jakub Jelinek <jakub@redhat.com>
9799
9800 * nscd/nscd-client.h (__nscd_cache_search): Remove const qualifier
9801 from return value.
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
9805 alignment.
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
9810 dropped to 0.
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.
9816
ee314200
UD
98172007-01-30 Ulrich Drepper <drepper@redhat.com>
9818
9819 * misc/hsearch_r.c (hdestroy_r): Remove unnecessary test.
9820
14c8bf3b
UD
98212007-01-26 Ulrich Drepper <drepper@redhat.com>
9822
9823 * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Use register
9824 names not numbers in cfi_*.
9825
d2708e67
AJ
98262007-01-26 Andreas Jaeger <aj@suse.de>
9827
9828 * sysdeps/unix/sysv/linux/sys/personality.h (ADDR_NO_RANDOMIZE,
14c8bf3b 9829 ADDR_LIMIT_3GB, PER_LINUX_32BIT, PER_LINUX32_3GB): Add.
d2708e67
AJ
9830 Correct values of PER_HPUX and PER_OSF4.
9831
7fbc8784
UD
98322007-01-24 Ulrich Drepper <drepper@redhat.com>
9833
8aaf53ee 9834 * elf/dl-minimal.c: Undefine _itoa first.
7fbc8784
UD
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.
9838
9d6cde3d
UD
98392007-01-24 Jakub Jelinek <jakub@redhat.com>
9840
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.
9844
c1f0486a
UD
98452007-01-23 Ulrich Drepper <drepper@redhat.com>
9846
9847 * stdio-common/_itoa.c: Include <limits.h>.
9848 * stdio-common/_itowa.c: Likewise.
9849
6cae3957
UD
98502007-01-22 Ulrich Drepper <drepper@redhat.com>
9851
765bbb24
UD
9852 * stdio-common/_itowa.c: Don't compile _itowa for 64-bit
9853 platforms.
9854 * stdio-common/_itoa.c: Don't compile in _itoa and _fitoa for
9855 64-bit platforms.
9856 * malloc/mtrace.c (tr_where): Use _fitoa_word instead of _fitoa if
9857 possible.
9858 * posix/wordexp.c (parse_arith): Use _itoa_word instead of _itoa
9859 if possible.
9860
6cae3957
UD
9861 [BZ #3902]
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.
9865
ddaafd04
UD
98662007-01-19 Ulrich Drepper <drepper@redhat.com>
9867
9868 * iconvdata/brf.c: New file.
439201de
UD
9869 * iconvdata/testdata/BRF: New file.
9870 * iconvdata/testdata/BRF..UTF8: New file.
9871 Contributed by Samuel Thibault <samuel.thibault@ens-lyon.org>.
ddaafd04
UD
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.
ddaafd04 9876
9e6e344e
UD
98772007-01-18 Anton Nikishaev <anton.nik@gmail.com>
9878
9879 * wcsmbs/wchar.h (wcstoll): Fix comment, function returns value of
9880 type `long long int', not `long int'.
9881 (wcstoq): Likewise.
9882
299f7b0f
UD
98832007-01-18 Ulrich Drepper <drepper@redhat.com>
9884
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.
9887
cd8127cc
JJ
98882007-01-12 Steven Munroe <sjmunroe@us.ibm.com>
9889 Joe Kerian <jkerian@us.us.ibm.com>
9890
9891 [BZ #2749]
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.
9897
9898 [BZ #2423, #2749]
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.
9904
b3acfdf7
JJ
99052007-01-17 Jakub Jelinek <jakub@redhat.com>
9906
4a2e03c6
JJ
9907 * nscd/nscd_getserv_r.c (nscd_getserv_r): Fix pastos.
9908
b3acfdf7
JJ
9909 * sysdeps/unix/sysv/linux/getdents.c (offsetof): Remove.
9910
1476bce6
UD
99112007-01-17 Ulrich Drepper <drepper@redhat.com>
9912
9913 * sysdeps/unix/sysv/linux/fatal-prepare.h: Use PTHFCT_CALL to
9914 demangle pointer.
9915 * csu/libc-start.c: Likewise.
9916
d78bce1c
UD
99172007-01-16 Ulrich Drepper <drepper@redhat.com>
9918
9919 * sysdeps/posix/system.c: Remove NO_WAITPID support, it cannot
9920 really work anyway.
9921
1bd79025
UD
99222007-01-15 Ulrich Drepper <drepper@redhat.com>
9923
000b027e
UD
9924 * nscd/connections.c (servinfo): Renamed to reqinfo. Change all
9925 users.
9926 (handle_request): Remove unnecessary tests.
9927
1bd79025
UD
9928 * nscd/cache.c (cache_add): Record the failure to add to the cache.
9929
d68f5d2c
JJ
99302007-01-15 Jakub Jelinek <jakub@redhat.com>
9931
9932 * soft-fp/op-common.h (FP_TRUNC): When truncating a NaN, clear
9933 workbits in semi-raw fraction.
9934
9935 * math/test-misc.c: Add new tests.
9936
99372007-01-14 Steven Munroe <sjmunroe@us.ibm.com>
9938
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.
9945
99462006-10-05 Steven Munroe <sjmunroe@us.ibm.com>
9947 Joe Kerian <jkerian@us.us.ibm.com>
9948
9949 [BZ #2749]
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.
9954
4e35ef2c
UD
99552007-01-15 Ulrich Drepper <drepper@redhat.com>
9956
2a1dea97
UD
9957 * nscd/connections.c (handle_request): Add a __builtin_expect.
9958
9691d83c
UD
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.
9963
49ee6d79
UD
9964 * nscd/connections.c (handle_request): Fix thinko in selinux test
9965 invocation.
9966
4e35ef2c
UD
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.
9978
23691ab2
UD
99792007-01-13 Ulrich Drepper <drepper@redhat.com>
9980
fb453d08
UD
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
9994 services database.
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
10007 using table.
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
10012 readdservbyport.
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.
10020
10021 * nscd/grpcache.c: Remove obsolete code. Cleanups.
10022 * nscd/hstcache.c: Likewise.
10023 * nscd/pwdcache.c: Likewise.
10024
b21fa963
UD
10025 * nis/nss_nis/nis-service.c (_nss_nis_getservbyname_r): Correct
10026 computation of keylen.
10027
23691ab2
UD
10028 * include/string.h: Only redefine strndupa if this is really for
10029 libc code.
10030
8980796b
UD
100312007-01-12 Ulrich Drepper <drepper@redhat.com>
10032
4a4a65f2
UD
10033 * nscd/nscd_gethst_r.c: Minor cleanups.
10034
43397eaf
UD
10035 * nscd/connections.c (handle_request): Check selinux permissions
10036 for all non-admin commands.
10037
038a1a9f
UD
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.
10043
8980796b
UD
10044 [BZ #3840]
10045 * scripts/check-local-headers.sh: Restrict to testing .o.d, .os.d,
10046 and .oS.d files.
10047
32c075e1
JJ
100482007-01-05 Steven Munroe <sjmunroe@us.ibm.com>
10049
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.
10053
100542007-01-11 Jakub Jelinek <jakub@redhat.com>
10055
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.
10060
10061 [BZ #3855]
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.
10066
11bf311e 100672007-01-11 Jakub Jelinek <jakub@redhat.com>
df859a0c 10068
11bf311e
UD
10069 * sysdeps/i386/soft-fp/sfp-machine.h: Remove.
10070 * sysdeps/x86_64/soft-fp/sfp-machine.h: Likewise.
df859a0c 10071
11bf311e 100722007-01-10 Ulrich Drepper <drepper@redhat.com>
32c075e1 10073
11bf311e
UD
10074 * io/fts.c: Make sure fts_cur is always valid after return from
10075 fts_read.
10076 Patch by Miloslav Trmac <mitr@redhat.com>.
64a0aa0f 10077
11bf311e 100782006-10-27 Richard Sandiford <richard@codesourcery.com>
32c075e1 10079
11bf311e
UD
10080 * elf/elf.h (R_MIPS_GLOB_DAT): Define.
10081 (R_MIPS_NUM): Bump by 1.
32c075e1 10082
11bf311e 100832007-01-03 Jakub Jelinek <jakub@redhat.com>
32c075e1 10084
11bf311e
UD
10085 * posix/execvp.c: Include alloca.h.
10086 (allocate_scripts_argv): Renamed to...
10087 (scripts_argv): ... this. Don't allocate buffer here nor count
10088 arguments.
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.
32c075e1
JJ
10092
100932007-01-03 Ulrich Drepper <drepper@redhat.com>
10094
10095 * string/Makefile (tst-strxfrm2-ENV): Define.
11bf311e 10096 * stdlib/Makefile (tst-strtod3-ENV): Define.
32c075e1 10097
11bf311e 100982007-01-02 Ulrich Drepper <drepper@redhat.com>
32c075e1 10099
11bf311e
UD
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.
64a0aa0f 10116
11bf311e 101172006-12-24 Ulrich Drepper <drepper@redhat.com>
48576885 10118
11bf311e
UD
10119 * malloc/malloc.c (sYSMALLOc): Remove some unnecessary alignment
10120 attempts.
48576885 10121
11bf311e 101222006-12-23 Ulrich Drepper <drepper@redhat.com>
3b6667a4 10123
11bf311e 10124 * posix/wordexp.c: Remove some unnecessary tests.
3b6667a4 10125
33c6de58
UD
101262006-12-22 Gavin Romig-Koch <gavin@redhat.com>
10127
10128 * nis/nss_compat/compat-grp.c (internal_getgrgid_r): Don't
10129 blacklist the group till after we look it up.
10130
fc242bef
UD
101312006-12-21 Ulrich Drepper <drepper@redhat.com>
10132
10133 * include/atomic.h (atomic_forced_read): New macro.
10134
11bf311e
UD
101352006-12-20 SUGIOKA Toshinobu <sugioka@itonet.co.jp>
10136
10137 * sysdeps/unix/sysv/linux/sh/bits/shm.h: New file.
10138
a12dcecc
UD
101392006-12-19 Jakub Jelinek <jakub@redhat.com>
10140
11bf311e
UD
10141 * nss/getXXbyYY_r.c: Include atomic.h.
10142 (INTERNAL (REENTRANT_NAME)): Write startp after start_fct,
10143 add atomic_write_barrier () in between.
10144
a12dcecc
UD
10145 * stdlib/Makefile (tests): Add tst-makecontext.
10146 * stdlib/tst-makecontext.c: New test.
10147
10148 * sysdeps/unix/sysv/linux/powerpc/powerpc32/makecontext.S
10149 (__makecontext): Don't realign uc_mcontext.uc_regs.
10150
11bf311e 101512006-11-28 Jakub Jelinek <jakub@redhat.com>
594d423a 10152
11bf311e
UD
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):
10157 Define.
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.
594d423a 10162
11bf311e 101632006-11-11 Steven Munroe <sjmunroe@us.ibm.com>
594d423a 10164
11bf311e
UD
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.
594d423a 10175
5bcba0ed
UD
101762006-12-18 Jakub Jelinek <jakub@redhat.com>
10177
10178 [BZ #3747]
10179 * stdlib/jrand48_r.c (__jrand48_r): Make sure result is in the
11bf311e 10180 [-2^31 .. 2^31) range.
5bcba0ed
UD
10181 * stdlib/tst-rand48.c (main): Fix expected values for 64-bit
10182 targets.
10183 * stdlib/tst-rand48-2.c: New test.
10184 * stdlib/Makefile (tests): Add tst-rand48-2.
10185
9e1444fc
UD
101862006-12-14 Jakub Jelinek <jakub@redhat.com>
10187
10188 * misc/tst-pselect.c (do_test): Fix sigblock argument.
10189
36775704
UD
101902006-12-14 Ulrich Drepper <drepper@redhat.com>
10191
10192 * misc/tst-pselect.c (do_test): Make sure the helper process is
10193 terminating when the test is aborted.
10194
1e88bd0f
UD
101952006-12-13 Ulrich Drepper <drepper@redhat.com>
10196
11bf311e
UD
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.
10200
1e88bd0f
UD
10201 [BZ #2337]
10202 * libio/Makefile (tests): Add tst-setvbuf1.
10203 * libio/tst-setvbuf1.c: New file.
10204
102052006-12-08 Jakub Jelinek <jakub@redhat.com>
10206
10207 [BZ #2337]
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.
10212
102132006-11-24 Jakub Jelinek <jakub@redhat.com>
10214
10215 [BZ #2337]
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
10219 in _flags.
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.
10225
11bf311e 102262006-12-13 Jakub Jelinek <jakub@redhat.com>
1f55ce48 10227
11bf311e
UD
10228 * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S: Include
10229 kernel-features.h.
10230
102312006-12-11 Ulrich Drepper <drepper@redhat.com>
10232
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.
1f55ce48 10236
d117c1ce
UD
102372006-12-09 Ulrich Drepper <drepper@redhat.com>
10238
f85fb97b
UD
10239 [BZ #3632]
10240 * include/features.h: Fix comment about default value for
10241 _POSIX_C_SOURCE.
10242
11bf311e
UD
10243 [BZ #3664]
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.
10248
10249 [BZ #3673]
10250 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix exp_limit
10251 computation.
10252 * stdlib/Makefile (tests): Add tst-atof2.
10253 * stdlib/tst-atof2.c: New file.
10254
10255 [BZ #3674]
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.
10260
a822d9f4
UD
102612006-12-09 Jakub Jelinek <jakub@redhat.com>
10262
11bf311e
UD
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.
10267
a822d9f4
UD
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
11bf311e 10271 / as shell.
f0d5e1f6 10272
11bf311e 102732006-12-08 Ulrich Drepper <drepper@redhat.com>
f0d5e1f6 10274
11bf311e
UD
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.
32c075e1 10281
11bf311e 102822006-12-05 Jakub Jelinek <jakub@redhat.com>
32c075e1 10283
11bf311e 10284 * nis/nis_subr.c (nis_getnames): Revert last change.
32c075e1 10285
f0d5e1f6
UD
102862006-12-04 Jakub Jelinek <jakub@redhat.com>
10287
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
10292 ENOTTY.
10293 * io/Makefile: Add rules to build and run tst-ttyname_r test.
10294 * io/tst-ttyname_r.c: New test.
10295
11bf311e 102962006-12-03 Kaz Kojima <kkojima@rr.iij4u.or.jp>
5df4fe08 10297
11bf311e 10298 * sysdeps/unix/sysv/linux/sh/sys/io.h: Removed.
5df4fe08 10299
11bf311e 103002006-11-30 H.J. Lu <hongjiu.lu@intel.com>
ee50871d 10301
11bf311e
UD
10302 * sysdeps/i386/i686/memcmp.S: Use jump table as the base of
10303 jump table entries.
10304
103052006-11-30 Jan Kratochvil <jan.kratochvil@redhat.com>
10306
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.
10310
103112006-12-01 Ulrich Drepper <drepper@redhat.com>
10312
10313 * nscd/nscd.init: Remove obsolete and commented-out -S option
10314 handling.
10315
103162006-11-23 Jakub Jelinek <jakub@redhat.com>
10317
10318 [BZ #3514]
10319 * manual/string.texi (strncmp): Fix pastos from wcscmp description.
10320
10321 [BZ #3515]
10322 * manual/string.texi (strtok): Remove duplicate paragraph.
10323
103242006-12-01 Jan Kratochvil <jan.kratochvil@redhat.com>
10325
10326 * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Fix compatibility with
10327 libgcc not supporting `rflags' unwinding (register # >= 17).
10328
103292006-11-30 Jakub Jelinek <jakub@redhat.com>
10330
10331 * sunrpc/svc_run.c (svc_run): Set my_pollfd to new_pollfd if realloc
10332 succeeded.
10333
103342006-11-29 Daniel Jacobowitz <dan@codesourcery.com>
10335 Jakub Jelinek <jakub@redhat.com>
10336 Jan Kratochvil <jan.kratochvil@redhat.com>
10337
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.
ee50871d 10343
b1a758f3
UD
103442006-11-27 Jakub Jelinek <jakub@redhat.com>
10345
10346 [BZ #3559]
10347 * sunrpc/svc_run.c (svc_run): Fail instead of segfaulting if
11bf311e
UD
10348 malloc crashed. Don't allocate memory unnecessarily in each
10349 loop.
b1a758f3 10350
11bf311e 103512006-10-21 Jakub Jelinek <jakub@redhat.com>
854d1124 10352
11bf311e 10353 * resolv/mapv4v6addr.h (map_v4v6_address): Fix last change.
dfc99a56 10354
11bf311e 103552006-11-20 Ulrich Drepper <drepper@redhat.com>
dfc99a56 10356
11bf311e 10357 * resolv/mapv4v6addr.h (map_v4v6_address): Optimize a bit.
852d657c 10358
11bf311e 103592006-11-18 Bruno Haible <bruno@clisp.org>
852d657c 10360
11bf311e
UD
10361 * sysdeps/unix/sysv/linux/i386/getgroups.c (__getgroups): Invoke
10362 __sysconf only after having tried to call getgroups32.
36c0a636 10363
11bf311e 103642006-11-19 Ulrich Drepper <drepper@redhat.com>
36c0a636 10365
11bf311e
UD
10366 * nss/nss_files/files-hosts.c (LINE_PARSER): Support IPv6-style
10367 addresses for IPv4 queries if they can be mapped.
b1f0c2a6 10368
11bf311e 103692006-11-16 Jakub Jelinek <jakub@redhat.com>
b1f0c2a6 10370
11bf311e
UD
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.
bef8927a 10375
11bf311e 103762006-11-14 Ulrich Drepper <drepper@redhat.com>
2c53fa20 10377
11bf311e 10378 * po/nl.po: Update from translation team.
854d1124 10379
11bf311e 10380 * timezone/zdump.c: Redo fix for BZ #3137.
3f1e9205 10381
11bf311e 103822006-11-14 Jakub Jelinek <jakub@redhat.com>
bef8927a 10383
11bf311e
UD
10384 * nss/nss_files/files-alias.c (get_next_alias): Set line back
10385 to first_unused after parsing :include: file.
5c2af134 10386
32c075e1 103872006-11-10 Ulrich Drepper <drepper@redhat.com>
e1b37083 10388
11bf311e
UD
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.
10399
10400 * time/tzfile.c (__tzfile_read): Extend to handle new file format
10401 on machines with 64-bit time_t.
10402
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.
10411
10412 [BZ #3483]
10413 * elf/ldconfig.c (main): Call setlocale and textdomain.
10414 Patch mostly by Benno Schulenberg <bensberg@justemail.net>.
10415
10416 [BZ #3480]
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>.
10434
10435 [BZ #3465]
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>.
10460
5c2af134
UD
10461 [BZ #3451]
10462 * sysdeps/i386/fpu/bits/mathinline.h (floor): Make rounding mode
10463 change atomic.
10464 (ceil): Likewise.
10465
11bf311e
UD
104662006-11-10 Jakub Jelinek <jakub@redhat.com>
10467
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
10473 is modified.
10474
104752006-11-10 Ulrich Drepper <drepper@redhat.com>
10476
10477 * po/sv.po: Update from translation team.
10478
37afcf79
UD
104792006-11-09 Ulrich Drepper <drepper@redhat.com>
10480
10481 * sysdeps/unix/sysv/linux/x86_64/sysconf.c (intel_check_word): Add
10482 noinline attribute.
10483
104842006-11-10 Jakub Jelinek <jakub@redhat.com>
10485
10486 * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word): Add
10487 noinline attribute.
10488
11bf311e
UD
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
10493 strong_alias.
2692deea 10494
11bf311e
UD
104952006-11-09 Ulrich Drepper <drepper@redhat.com>
10496
10497 [BZ #3493]
10498 * posix/unistd.h (sysconf): Remove const attribute.
10499
10500 * sysdeps/posix/getaddrinfo.c (getaddrinfo): Fix test for
10501 temporary or deprecated addresses.
10502 Patch by Sridhar Samudrala <sri@us.ibm.com>.
10503
10504 * string/Makefile (tests): Add tst-strxfrm2.
10505 * string/tst-strxfrm2.c: New file.
10506
105072006-10-09 Jakub Jelinek <jakub@redhat.com>
10508
10509 * elf/dl-debug.c (_dl_debug_initialize): Check r->r_map for 0
10510 rather than r->r_brk.
2692deea
UD
10511
105122006-11-08 Jakub Jelinek <jakub@redhat.com>
10513
11bf311e
UD
10514 * string/strxfrm_l.c (STRXFRM): Do the trailing \1 removal
10515 optimization even if needed > n.
10516
2692deea
UD
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.
10521
11bf311e
UD
105222006-11-07 Jakub Jelinek <jakub@redhat.com>
10523
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
10527 .size directive.
10528 * sysdeps/gnu/errlist-compat.awk: Adjust for declare_symbol_alias
10529 changes.
10530 * sysdeps/gnu/siglist.c: Likewise.
10531
105322006-11-03 Steven Munroe <sjmunroe@us.ibm.com>
10533
10534 * sysdeps/powerpc/fpu/bits/mathinline.h
10535 [__LIBC_INTERNAL_MATH_INLINES]: Moved to ...
10536 * sysdeps/powerpc/fpu/math_private.h: ...here. New file.
10537
105382006-11-05 Ulrich Drepper <drepper@redhat.com>
10539
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):
10543 Likewise.
10544
9666e36c
UD
105452006-11-02 Jakub Jelinek <jakub@redhat.com>
10546
10547 * malloc/memusage.c (dest): Reset not_me back to false after
10548 printing statistics.
10549
11bf311e
UD
105502006-11-02 Ulrich Drepper <drepper@redhat.com>
10551
10552 * configure.in: Work around ld --help change and avoid -z relro
10553 test completely if the architecture doesn't care about security.
10554
105552006-11-01 Ulrich Drepper <drepper@redhat.com>
10556
10557 * po/sv.po: Update from translation team.
10558
105592006-10-31 Ulrich Drepper <drepper@redhat.com>
10560
10561 * stdlib/atexit.c (atexit): Don't mark as hidden when used to
10562 generate compatibility version.
10563
105642006-10-29 Ulrich Drepper <drepper@redhat.com>
10565
10566 * configure.in: Relax -z relro requirement a bit.
10567
10568 * po/sv.po: Update from translation team.
10569
105702006-10-29 Jakub Jelinek <jakub@redhat.com>
10571
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.
10577
b2369ca3
UD
105782006-10-27 Ulrich Drepper <drepper@redhat.com>
10579
11bf311e
UD
10580 * configure.in: Require assembler support for visibility, compiler
10581 support for visibility and aliases, linker support for various -z
10582 options.
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.
10614
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.
10686
131c4428
UD
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
10691 _dl_close.
ffd0e1b7
UD
10692 * elf/Makefile: Add rules to build and run tst-thrlock.
10693 * elf/tst-thrlock.c: New file.
131c4428 10694
11bf311e
UD
10695 [BZ #3426]
10696 * stdlib/stdlib.h: Adjust comment for canonicalize_file_name to
10697 reality.
10698
b2369ca3
UD
10699 [BZ #3429]
10700 * elf/dl-open.c (dl_open_worker): Keep holding dl_load_lock until
131c4428 10701 we are sure we do not need it anymore for _dl_close. Also move
b2369ca3
UD
10702 the asserts inside the lock region.
10703 Patch mostly by Suzuki <suzuki@in.ibm.com>.
10704
11bf311e
UD
107052006-10-27 Jakub Jelinek <jakub@redhat.com>
10706
10707 * elf/dl-lookup.c (_dl_debug_bindings): Remove unused symbol_scope
10708 argument.
10709 (_dl_lookup_symbol_x): Adjust caller.
10710
10711 * sysdeps/generic/ldsodefs.h (struct link_namespaces): Remove
10712 _ns_global_scope.
10713 * elf/rtld.c (dl_main): Don't initialize _ns_global_scope.
10714
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.
10730
107312006-10-25 Ulrich Drepper <drepper@redhat.com>
10732
10733 * sysdeps/gnu/netinet/tcp.h: Define TCP_CONGESTION.
10734
107352006-10-18 Ulrich Drepper <drepper@redhat.com>
10736
10737 * configure.in: Disable building profile libraries by default.
10738
609cf614
UD
107392006-10-17 Jakub Jelinek <jakub@redhat.com>
10740
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.
10745
11bf311e
UD
107462006-10-18 Ulrich Drepper <drepper@redhat.com>
10747
10748 * elf/dl-lookup.c (_dl_lookup_symbol_x): Add warning to
10749 _dl_lookup_symbol_x code.
10750
107512006-10-17 Jakub Jelinek <jakub@redhat.com>
10752
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.
10766
107672006-10-17 Jakub Jelinek <jakub@redhat.com>
10768
10769 [BZ #3313]
10770 * malloc/malloc.c (malloc_consolidate): Set maxfb to address of last
10771 fastbin rather than end of fastbin array.
10772
107732006-10-18 Ulrich Drepper <drepper@redhat.com>
10774
10775 * sysdeps/i386/i486/bits/atomic.h (catomic_decrement): Use correct
10776 body macro.
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.
10780
107812006-10-17 Jakub Jelinek <jakub@redhat.com>
10782
10783 * include/atomic.h: Add a unique prefix to all local variables
10784 in macros.
10785 * csu/tst-atomic.c (do_test): Test also catomic_* macros.
10786
4a85a8ee
UD
107872006-10-16 Ulrich Drepper <drepper@redhat.com>
10788
10789 [BZ #3369]
10790 * sysdeps/posix/getaddrinfo.c (rfc3484_sort): Fix typos in rules 4
10791 and 7.
10792
11bf311e
UD
107932006-10-14 Ulrich Drepper <drepper@redhat.com>
10794
10795 * resolv/arpa/nameser.h: Document that ns_t_a6 is deprecated.
10796
ff8d96be
UD
107972006-10-13 Ulrich Drepper <drepper@redhat.com>
10798
11bf311e
UD
10799 [BZ #3313]
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
10802 them.
10803 (do_check_malloc_state): Only require for empty bins for large
10804 sizes in main arena.
10805
10806 * libio/stdio.h: Add more __wur attributes.
10807
ff8d96be
UD
10808 * elf/dl-minimal.c (realloc): Optimize last patch.
10809
90a0991a
UD
108102006-10-12 Richard Sandiford <richard@codesourcery.com>
10811
10812 [BZ #3352]
10813 * elf/dl-minimal.c (realloc): Let malloc() return a new pointer,
10814 and use memcpy() if it does.
ff8d96be 10815
11bf311e
UD
108162006-11-12 Andreas Jaeger <aj@suse.de>
10817
10818 [BZ #2510]
10819 * manual/search.texi (Hash Search Function): Clarify.
10820 (Array Search Function): Clarify.
10821
108222006-11-12 Joseph Myers <joseph@codesourcery.com>
10823
10824 [BZ #2830]
10825 * math/atest-exp.c (main): Cast hex value to mp_limb_t before
10826 shifting.
10827 * math/atest-exp2.c (read_mpn_hex): Likewise.
10828 * math/atest-sincos.c (main): Likewise.
10829
37fb7595
UD
108302006-10-11 Ulrich Drepper <drepper@redhat.com>
10831
11bf311e
UD
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
10835 version GLIBC_2.6.
10836 * Versions.def: Add GLIBC_2.6 for libc.
10837
46c38bd7
UD
10838 * sysdeps/unix/sysv/linux/i386/sysdep.h (DOARGS_6): Fix offset.
10839
11bf311e
UD
10840 * sysdeps/i386/i486/bits/atomic.h: Add catomic_* support.
10841
108422006-10-11 Jakub Jelinek <jakub@redhat.com>
10843
10844 * malloc/malloc.c (_int_malloc): Remove unused any_larger variable.
10845
10846 * nis/nis_defaults.c (__nis_default_access): Don't call getenv twice.
10847
10848 * nis/nis_subr.c (nis_getnames): Use __secure_getenv instead of getenv.
10849 * sysdeps/generic/unsecvars.h: Add NIS_PATH.
10850
108512006-10-11 Ulrich Drepper <drepper@redhat.com>
10852
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.
10865
2a6ee549
UD
108662006-10-10 Ulrich Drepper <drepper@redhat.com>
10867
10868 * nis/nis_subr.c (nis_getnames): Add trailing dot to NIS_PATH
10869 components which lack them.
10870
10871 * nis/nis_subr.c (nis_getnames): Make sure that we always return
10872 at least one entry consisting of the parameter concatenated with
10873 the domain.
10874
11bf311e 108752006-10-10 Roland McGrath <roland@frob.com>
c4f9fc3a 10876
11bf311e
UD
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.
10880
108812006-10-09 Ulrich Drepper <drepper@redhat.com>
10882 Jakub Jelinek <jakub@redhat.com>
10883
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
10887 record.
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
10891 array.
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.
10902
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.
10907 Various cleanups.
10908 * sysdeps/i386/i486/bits/atomic.h: Likewise.
10909
10910 * po/sv.po: Update from translation team.
10911
109122006-10-07 Ulrich Drepper <drepper@redhat.com>
10913
10914 * Versions.def: Add GLIBC_2.6 to libpthread.
10915
10916 * include/shlib-compat.h (SHLIB_COMPAT): Expand parameters before use.
10917 (versioned_symbol): Likewise.
10918 (compat_symbol): Likewise.
10919
10920 * po/tr.po: Update from translation team.
feb87ad1 10921
4df92d57
UD
109222006-10-06 Ulrich Drepper <drepper@redhat.com>
10923
11bf311e
UD
10924 * nis/Banner: Removed. It's been integral part forever and the
10925 author info is incomplete anyway.
10926 * libio/Banner: Likewise.
10927
4df92d57
UD
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.
10931
68361572
UD
109322006-09-27 Jakub Jelinek <jakub@redhat.com>
10933
10934 * nis/nis_table.c (nis_list): Handle FOLLOW_PATH | ALL_RESULTS
10935 when callback is NULL.
10936
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.
10948
11bf311e
UD
109492006-10-06 Ulrich Drepper <drepper@redhat.com>
10950
10951 * version.h (VERSION): Bump to 2.5.90 for new development tree.
10952
3a4e0609
UD
109532006-10-06 Andreas Jaeger <aj@suse.de>
10954
10955 * include/features.h (__GLIBC_MINOR__): It's glibc 2.5 now.
10956
109572006-10-06 Ulrich Drepper <drepper@redhat.com>
10958
10959 * po/pl.po: Update from translation team.
10960
10961 * nscd/nscd.c (main): Fix typo in message.
10962 Patch by Jakub Bogsz <qboosh@pld-linux.org>.
10963
97e57dee
UD
109642006-10-02 Jakub Jelinek <jakub@redhat.com>
10965
10966 [BZ #3291]
10967 * sysdeps/unix/sysv/linux/sparc/sparc64/pause.c: Include
10968 errno.h, signal.h, unistd.h and sysdep-cancel.h.
10969 (__sigprocmask): Define.
10970
768027a4
UD
109712006-10-02 Ulrich Drepper <drepper@redhat.com>
10972
10973 * elf/rtld.c (dl_main): Don't use prelinking if LD_DYNAMIC_WEAK is
10974 used.
10975
0b25a49a
UD
109762006-10-02 Jakub Jelinek <jakub@redhat.com>
10977
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
10981 field.
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
10984 increased.
10985 (__nscd_cache_search): Add checks to make sure we never reference
10986 data beyond the current mapping.
10987
a1286745
UD
109882006-10-02 Dmitry V. Levin <ldv@altlinux.org>
10989
d4ed7561
UD
10990 * sysdeps/posix/getaddrinfo.c (match_prefix): Make mask and val
10991 variables const to avoid compiler warnings.
10992
a1286745
UD
10993 * io/fts.c (fts_close): Remove redundant checks.
10994 (fts_build): Likewise.
10995 (fts_palloc): Likewise.
10996
10997 * manual/message.texi (Advanced gettext functions,
10998 Using gettextized software): Fix typos.
10999
f01e4069
UD
110002006-09-30 Ulrich Drepper <drepper@redhat.com>
11001
11002 * posix/glob.c (glob_in_dir): Add some comments and asserts to
11003 explain why there are no leaks.
11004
154619b5
UD
110052006-09-29 Ulrich Drepper <drepper@redhat.com>
11006
690c3947
UD
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.
11011
88cc61e8
UD
11012 * version.h (RELEASE): Bump to 2.5.
11013 * README: Regenerated.
11014
a70c18b0
UD
11015 * locale/iso-3166.def: Add Aaland Islands and Montenegro.
11016
154619b5
UD
11017 [BZ #3273]
11018 * nscd/nscd_initgroups.c (__nscd_getgrouplist): It is OK to have
11019 found no group members.
11020 Patch by Petr Baudis.
11021
110222006-09-29 Jakub Jelinek <jakub@redhat.com>
11023
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
11027 if USE___THREAD.
11028
1c31aa79
UD
110292006-09-27 Ulrich Drepper <drepper@redhat.com>
11030
11031 * libio/stdio.h: Move open_wmemstream prototype to ...
11032 * wcsmbs/wchar.h: ... here.
11033
f1122ec3
UD
110342006-09-25 Jakub Jelinek <jakub@redhat.com>
11035
11036 [BZ #3252]
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
11044 i386/fchownat.c.
11045 * sysdeps/unix/sysv/linux/s390/s390-32/fchownat.c: Likewise.
11046 * sysdeps/unix/sysv/linux/sh/fchownat.c: Likewise.
11047
11048 [BZ #3253]
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.
11052
110532006-09-24 Jakub Jelinek <jakub@redhat.com>
11054
11055 * sysdeps/powerpc/fpu/libm-test-ulps: Updated.
11056
11057 * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Fix 2 typos.
11058
457b559e
UD
110592006-09-24 Ulrich Drepper <drepper@redhat.com>
11060
11061 * sysdeps/posix/getaddrinfo.c (rfc3484_sort): Implement rule 4,
11062 home addresses.
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
11066 in6ai_homeaddress.
11067
4a132246
UD
110682006-09-21 Jakub Jelinek <jakub@redhat.com>
11069
11070 [BZ #3225]
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):
11077 Likewise.
11078 * sysdeps/powerpc/powerpc64/__longjmp-common.S (__longjmp): Likewise.
11079
c69136ae
UD
110802006-09-20 Jakub Jelinek <jakub@redhat.com>
11081
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.
11109
11110 [BZ #3137]
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>.
11120
83b3108c
UD
111212006-09-20 Ulrich Drepper <drepper@redhat.com>
11122
11123 * inet/inet6_option.c: Also emit linker warnings for the RFC 2292
11124 interfaces.
11125
89210b4c
AJ
111262006-09-20 Andreas Jaeger <aj@suse.de>
11127
11128 * math/libm-test.inc (lrint_test_upward): Fix typo.
11129
6624dbc0
UD
111302006-06-17 Joseph S. Myers <joseph@codesourcery.com>
11131
11132 [BZ #2592]
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.
11150
60cb50c7
UD
111512006-09-20 Martin Schwidefsky <schwidefsky@de.ibm.com>
11152
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.
11158
33315ced
UD
111592006-09-19 Jakub Jelinek <jakub@redhat.com>
11160
11161 * elf/dl-cache.c (HWCAP_CHECK): If _DL_PLATFORMS_COUNT, but
11162 platform == -1, reject any libs with non-zero _DL_HWCAP_PLATFORM
11163 bits.
11164
1ee2ff20
UD
111652006-09-19 Ulrich Drepper <drepper@redhat.com>
11166
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.
11170
111712006-09-16 Jakub Jelinek <jakub@redhat.com>
11172
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.
11177
0466106e
UD
111782006-09-18 Jakub Jelinek <jakub@redhat.com>
11179
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
11190 values.
11191
9c316a45
UD
111922006-09-17 Mike Frysinger <vapier@gentoo.org>
11193
0466106e
UD
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.
9c316a45
UD
11198
111992006-09-16 Jakub Jelinek <jakub@redhat.com>
11200
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
11206 offset.
11207
fb146a76
UD
112082006-09-14 Jakub Jelinek <jakub@redhat.com>
11209
11210 * io/Makefile (CFLAGS-fstatat.c): Set.
11211 (CFLAGS-fstatat64.c): Likewise.
11212 (CFLAGS-mknodat.c): Likewise.
11213
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.
11218
4cd3633d
UD
112192006-09-14 Jakub Jelinek <jakub@redhat.com>
11220 Steven Munroe <sjmunroe@us.ibm.com>
fb146a76 11221
4cd3633d
UD
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.
11232
30aa5785
UD
112332006-09-12 Jakub Jelinek <jakub@redhat.com>
11234
11235 [BZ #2526]
11236 * README.libm: Fix a thinko in sqrt algorithm description.
11237
11238 [BZ #3143]
11239 * manual/string.texi (argz_delete): Fix prototype.
11240 Patch by <alpt@freaknet.org>.
11241
112422006-08-26 Joseph Myers <joseph@codesourcery.com>
11243
11244 [BZ #3138]
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
11254 size_t.
11255
d26d01d1
UD
112562006-09-09 Ulrich Drepper <drepper@redhat.com>
11257
41aba3d7
UD
11258 [BZ #2821]
11259 * time/mktime.c (guess_time_tm): Fix overflow detection.
11260 * time/Makefile (tests): Add bug-mktime1.
11261 * time/bug-mktime1.c: New file.
11262
eaa51b47 11263 [BZ #3189, #3188]
d26d01d1 11264 * misc/sys/mman.h (remap_file_pages): Make available for _GNU_SOURCE.
eaa51b47 11265 (mremap): Likewise.
d26d01d1 11266
ba40cc15
UD
112672006-09-07 Jakub Jelinek <jakub@redhat.com>
11268
2b6a801e
UD
11269 [BZ #1006]
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.
11274
469615bd
UD
11275 [BZ #2775]
11276 * malloc/malloc.c (sYSMALLOc): Only call grow_heap if
11277 (long) (MINSIZE + nb - old_size) is positive.
11278
11279 * malloc/arena.c (grow_heap): When growing bail even if new_size
11280 is negative.
11281
ba40cc15
UD
11282 [BZ #3155]
11283 * sysdeps/powerpc/powerpc32/fpu/s_lrint.S (__lrint): Don't access
11284 stack below r1.
11285
243b9ac1
UD
112862006-09-06 Jakub Jelinek <jakub@redhat.com>
11287
ba40cc15
UD
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.
11295
243b9ac1
UD
11296 * locale/programs/ld-collate.c (collate_read): Goto sym_equiv_free
11297 rather than col_sym_free. Move seqp declaration earlier.
11298
11299 * resolv/gai_suspend.c (gai_suspend): Make sure result is initialized.
11300
d052233c
UD
113012006-09-05 Jakub Jelinek <jakub@redhat.com>
11302
11303 * nscd/initgrcache.c (addinitgroupsX): Move any_success
11304 decl before first goto out.
11305
71213dc2
UD
113062006-09-04 Jakub Jelinek <jakub@redhat.com>
11307
11308 * Makerules (shlib.lds): If have-hash-style, put .hash section
11309 at the end of the RO segment.
11310
113112006-09-04 Ulrich Drepper <drepper@redhat.com>
11312
11313 * elf/do-lookup.h (do_lookup_x): Initialize symidx in case the new
11314 style hash table format is used.
11315
03eeff83
UD
113162006-09-04 Jakub Jelinek <jakub@redhat.com>
11317
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.
11321
b80770b2
UD
113222006-08-31 Jakub Jelinek <jakub@redhat.com>
11323
ba40cc15 11324 * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Add ld.so.
b80770b2
UD
11325
11326 * malloc/malloc.c (_int_malloc): Use full list insert and not
11327 shortcut which assumes the list is empty for large requests
11328 too.
11329
11330 * elf/tst-addr1.c (do_test): Allow i.dli_sname "_IO_printf".
11331
99ea5991
UD
113322006-08-30 Jakub Jelinek <jakub@redhat.com>
11333
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.
11344
4004a0a5
UD
113452006-08-28 Ulrich Drepper <drepper@redhat.com>
11346
950398e1
UD
11347 * elf/dl-load.c (_dl_init_paths): Expand DSTs.
11348
4004a0a5
UD
11349 * elf/dl-open.c (dl_open_worker): Allow $LIB and $PLATFORM in
11350 dlopen parameters.
11351
6e310111
UD
113522006-08-28 Jakub Jelinek <jakub@redhat.com>
11353
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.
11357
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.
11362
07014fca
UD
113632006-08-27 Ulrich Drepper <drepper@redhat.com>
11364
11365 [BZ #2684]
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>.
11369
71663747
UD
113702006-08-26 Ulrich Drepper <drepper@redhat.com>
11371
41999a1a
UD
11372 * malloc/malloc.c (bin_at): Rewrite to be more clear and to not
11373 waste bins[0..1].
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
11378 the list is empty.
11379
71663747
UD
11380 * locale/programs/ld-ctype.c (ctype_read): Better patch for read
11381 failure.
11382
93b53ca2
UD
113832006-08-24 Ulrich Drepper <drepper@redhat.com>
11384
f5a82772
UD
11385 * locale/programs/ld-ctype.c (ctype_read): If CTYPE is NULL, don't
11386 do anything.
11387
2ac9ca73
UD
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.
11392
93b53ca2
UD
11393 [BZ #2683]
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.
11398
7463d5cb
UD
113992006-08-24 Jakub Jelinek <jakub@redhat.com>
11400
11401 * malloc/malloc.c (sYSMALLOc): Avoid infinite loop if MMAP
11402 keeps failing and heap growth or new heap creation isn't
11403 successful either.
11404 * malloc/tst-malloc.c (main): Add new tests.
11405
542a6f62
UD
114062006-08-24 Ulrich Drepper <drepper@redhat.com>
11407
11408 [BZ #2734]
11409 * sysdeps/i386/bits/byteswap.h (__bswap_32): Use same conditions
11410 as in the x86-64 code to use bswap.
11411
aa2c6b6d
UD
114122006-05-21 Joseph S. Myers <joseph@codesourcery.com>
11413
24982798 11414 [BZ #2680]
aa2c6b6d
UD
11415 * posix/unistd.h (getlogin_r): Condition on __USE_POSIX199506, not
11416 __USE_UNIX98.
11417 * posix/bits/unistd.h: Likewise.
11418
59776aef
UD
114192006-05-15 Mike Frysinger <vapier@gentoo.org>
11420
11421 [BZ #2751]
11422 * string/strchr.c: Add cast to avoid warning.
11423
e404fb16
UD
114242006-08-21 Ulrich Drepper <drepper@redhat.com>
11425
11426 * malloc/malloc.c (DEFAULT_MMAP_THRESHOLD_MAX): For 32-bit
bd2c2341 11427 platforms define as 512K. For 64-bit platforms as 32MB. The lower
e404fb16
UD
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.
11432
376e973a
UD
114332006-07-30 Joseph S. Myers <joseph@codesourcery.com>
11434
11435 [BZ #3018]
11436 * Makerules (depfiles): Handle extra-test-objs the same as
11437 extra-objs.
11438 (common-mostlyclean): Likewise.
11439 * dlfcn/Makefile (extra-objs): Add modules to extra-test-objs
11440 instead.
11441 * elf/Makefile (extra-objs): Likewise.
11442 * stdlib/Makefile (extra-objs): Likewise.
11443
240c62a7
UD
114442006-08-14 Eric Blake <ebb9@byu.net>
11445
11446 [BZ #3044]
11447 * misc/error.h: Assume C89 or better.
11448 * misc/error.c: Likewise.
11449
3997b7c4
UD
114502006-08-21 Ulrich Drepper <drepper@redhat.com>
11451
11452 [BZ #3040]
11453 * sysdeps/unix/sysv/linux/openat.c: Fix compilation if
11454 __ASSUME_ATFCTS is defined.
11455
8a6537b0
UD
114562006-08-19 Ulrich Drepper <drepper@redhat.com>
11457
72320021
UD
11458 * malloc/malloc.c (_int_malloc): Limit number of unsorted blocks
11459 to sort in each call.
11460
ed3691ba
UD
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.
11464
8a6537b0
UD
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.
11471
ad2a3c07
UD
114722006-08-15 Jakub Jelinek <jakub@redhat.com>
11473
11474 * sysdeps/unix/sysv/linux/sparc/sparc64/pause.c: Use
11475 sysdeps/posix/pause.c implementation instead.
11476
114772006-08-09 Jakub Jelinek <jakub@redhat.com>
11478
11479 * sysdeps/unix/nice.c (nice): Transform EACCES errno from setpriority
11480 to EPERM.
11481
f17efcb4
UD
114822006-08-13 Andreas Schwab <schwab@suse.de>
11483
11484 * sysdeps/powerpc/powerpc32/dl-trampoline.S (_dl_runtime_resolve):
11485 Don't clobber caller's LRSAVE.
11486 (_dl_prof_resolve): Likewise.
11487
107b8a92
UD
114882006-08-14 Ulrich Drepper <drepper@redhat.com>
11489
11490 [BZ #1996]
11491 * libio/memstream.c (open_memstream): Allocate initial buffer with
11492 calloc.
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
11498 buffer.
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.
11505
fa3ac53f
UD
115062006-08-13 Ulrich Drepper <drepper@redhat.com>
11507
89993734
UD
11508 * libio/wstrops.c: Remove dead macro definitions and comments.
11509 * libio/strops.c: Likewise.
11510
fa3ac53f
UD
11511 [BZ #2764]
11512 * login/utmpname.c (__utmpname): Remove unnecessary test.
11513
f99ed760
UD
115142006-06-08 Joseph Myers <jsm28@gcc.gnu.org>
11515
11516 [BZ #2832]
11517 * math/gen-libm-test.pl (clean_up_number): Do not remove trailing
11518 0s from integers.
11519
115202006-08-13 Ulrich Drepper <drepper@redhat.com>
11521
11522 [BZ #2987]
11523 * sysdeps/unix/sysv/linux/clock_settime.c: Add code to use syscall
11524 for CPU clocks.
11525 * sysdeps/unix/clock_settime.c: Add support for platform-specific
11526 setting of CPU clocks.
11527
4c3f81d0
UD
115282006-06-23 Paul Eggert <eggert@cs.ucla.edu>
11529
11530 [BZ #2841]
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'.
11534
cd8e60ce
UD
115352006-08-12 Ulrich Drepper <drepper@redhat.com>
11536
9a5c46e8
UD
11537 [BZ #3013]
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.
11541
cd8e60ce
UD
11542 [BZ #2997]
11543 * misc/error.c: Add space between program name and message if file
11544 name is missing.
11545
9a528884
UD
115462006-08-03 Eric Blake <ebb9@byu.net>
11547
11548 [BZ #2998]
11549 * misc/error.c (error_tail) [_LIBC]: Avoid invalid free.
11550
1d05c2fb
UD
115512006-08-09 Ulrich Drepper <drepper@redhat.com>
11552
0c1c6c6c
UD
11553 * malloc/memusagestat.c: Silence warnings.
11554
1d05c2fb
UD
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.
11558
2d1e6277
UD
115592006-08-08 Jakub Jelinek <jakub@redhat.com>
11560
be7ffd91
UD
11561 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h (O_DIRECT): Protect with
11562 __USE_GNU.
11563
2d1e6277
UD
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*
11568 in strtoll_l).
11569
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.
11573
11574 * sysdeps/s390/fpu/libm-test-ulps: Update.
11575
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.
11581
d0ccde25
UD
115822006-08-07 Ulrich Drepper <drepper@redhat.com>
11583
11584 * nis/nis_xdr.c: Avoid some function calls.
11585
13a0293d 115862006-08-07 Jakub Jelinek <jakub@redhat.com>
3f7a21a9 11587 Ulrich Drepper <drepper@redhat.com>
13a0293d
UD
11588
11589 * nis/nis_call.c (rec_dirsearch) [case LOWER_NAME]: Don't take
11590 short cut if only one name component is stripped away.
11591
bd1ebae0
UD
115922006-08-07 Ulrich Drepper <drepper@redhat.com>
11593
11594 * nis/nis_call.c: Minor cleanups throughout.
2d1e6277 11595 (rec_dirsearch) [case HIGHER_NAME]: Correctly size ndomain array.
bd1ebae0
UD
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
11601 first_shoot.
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 ".".
11607
f1762c0c
UD
116082006-08-03 Ulrich Drepper <drepper@redhat.com>
11609
fe710250
UD
11610 [BZ #2182]
11611 * math/s_cacosh.c: Return values from positive branch.
11612 * math/s_cacoshf.c: Likewise.
11613 * math/s_cacoshl.c: Likewise.
11614
a5852807
UD
11615 [BZ #2883]
11616 * sysvipc/sys/msg.h: Change return value to ssize_t.
11617 * sysdeps/unix/sysv/linux/msgrcv.c: Likewise.
fe710250
UD
11618 * sysvipc/msgrcv.c: Likewise.
11619 * include/sys/msg.h: Likewise.
39571a13 11620
6c215a8d
UD
11621 * grp/initgroups.c (internal_getgrouplist): Remove unnecessary
11622 test introduced in patch for bz #661.
39571a13 11623 (getgrouplist): Simplify code a bit. Don't allocate one additional
f13bfdd0 11624 element for NEWGROUPS.
6c215a8d 11625
9c06eb66
UD
11626 [BZ #2908]
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.
11631
11632 [BZ #2914]
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.
11638
11639 [BZ #2926]
11640 * assert/assert.h: Move cast to void inside ?: to quiet gcc.
11641 Patch by Jerry James <Jerry.James@usu.edu>.
11642
f1762c0c
UD
11643 * rt/Makefile (tests): Add tst-clock2.
11644 * rt/tst-clock2.c: New file.
11645
11646 [BZ #2978]
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.
11659
83ae6b40
RM
116602006-08-02 Thomas Schwinge <tschwinge@gnu.org>
11661
0e4e62fe 11662 * hurd/getdport.c (__getdport): Don't return EBADF; instead set
f1762c0c 11663 errno to EBADF and return MACH_PORT_NULL.
83ae6b40 11664
82ee37c5
UD
116652006-06-23 Joseph Myers <joseph@codesourcery.com>
11666
11667 [BZ #2980]
f1762c0c 11668 * posix/Makefile (CFLAGS-waitid.c): Add -fasynchronous-unwind-tables.
82ee37c5
UD
11669
116702006-08-02 Ulrich Drepper <drepper@redhat.com>
11671
11672 * elf/dl-addr.c (_dl_addr): If GNU-style hash tables are present,
11673 walk them instead of the symbol table.
11674
7bb1b2c9
UD
116752006-08-01 Ulrich Drepper <drepper@redhat.com>
11676
f13bfdd0 11677 [BZ #2098]
fbbc73b3
UD
11678 * nscd/initgrcache.c (addinitgroupsX): Judge successful lookups by
11679 status of NSS calls, not the number of returned entries.
11680
a4518922
UD
11681 * sysdeps/unix/sysv/linux/syscalls.list: Remove add_key,
11682 request_key, keyctl.
7bb1b2c9 11683
b06e7e9a
UD
116842006-07-31 Ulrich Drepper <drepper@redhat.com>
11685
11686 * sysdeps/unix/sysv/linux/dl-osinfo.h: Remove unnecessary include.
11687
f1227969
UD
116882006-07-16 Jeff Bailey <jbailey@ubuntu.com>
11689
11690 * elf/tst-auditmod1.c: Fix typo in #error.
11691
82ae2712
UD
116922006-07-31 Ulrich Drepper <drepper@redhat.com>
11693
f1227969
UD
11694 * elf/tst-auditmod1.c: Remove code for unsupported architectures.
11695
82ae2712
UD
11696 * iconvdata/run-iconv-test.sh: Run cmp in C locale.
11697
a1260d92
UD
116982006-07-20 Adam Nemet <anemet@caviumnetworks.com>
11699
11700 * stdlib/test-canon.c (do_test): Close fd before unlinking file so
b06e7e9a 11701 that the directory is empty even on non-POSIX filesystems.
a1260d92 11702
d2de41fe
UD
117032006-07-31 Ulrich Drepper <drepper@redhat.com>
11704
13669f2c
UD
11705 * elf/dl-open.c (dl_open_worker): Add branch prediction.
11706
d2de41fe
UD
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.
11712
b894c2ea
RM
117132006-07-30 Roland McGrath <roland@redhat.com>
11714
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.
11719
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.
11730
11731 * include/unistd.h (__pause_nocancel): Add attribute_hidden.
11732 * include/time.h (__nanosleep_nocancel): Likewise.
11733
c10d32c8
UD
117342006-07-30 Ulrich Drepper <drepper@redhat.com>
11735
11736 * locale/programs/localedef.c (add_to_readlist): Rename local
11737 variables to avoid confusion.
11738
11739 * locale/programs/charmap.c (charmap_read): Emit error message if
11740 charmap couldn't be found or read.
11741
6822f056
UD
117422006-07-28 Ulrich Drepper <drepper@redhat.com>
11743
d5ba53f9
UD
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.
11748
6822f056
UD
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.
11752
3a975ff5
UD
117532006-07-26 Ulrich Drepper <drepper@redhat.com>
11754
6de1f625
UD
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.
11758
3a975ff5
UD
11759 * dlfcn/dlmopen.c (dlmopen_doit): Don't allow RTLD_GLOBAL to be
11760 used when the namespace is not the base namespace.
11761
a92b1166
UD
117622006-07-26 Gavin Romig-Koch <gavin@redhat.com>
11763
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.
11769
a08336fb
UD
117702006-07-25 Ulrich Drepper <drepper@redhat.com>
11771
bd3754dc
UD
11772 * stdlib/cxa_finalize.c (__cxa_finalize): Fix race condition when
11773 calling registered handler.
11774
a08336fb
UD
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.
11783
871b9158
UD
117842006-07-10 Ulrich Drepper <drepper@redhat.com>
11785
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
11800 entry.
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.
11809
11810 * elf/dl-misc.c (_dl_name_match_p): Make MAP parameter const.
11811 * sysdeps/generic/ldsodefs.h: Adjust prototype.
11812
a1f0de82
UD
118132006-06-27 Ulrich Drepper <drepper@redhat.com>
11814
361a3706
UD
11815 * elf/dl-load.c (open_path): Fix test to determine whether DSO is
11816 auditing.
11817
a1f0de82
UD
11818 * elf/dl-load.c (_dl_map_object): Try harder to avoid looking at
11819 RPATH of main map twice.
11820
4259230f
UD
118212006-06-22 Ulrich Drepper <drepper@redhat.com>
11822
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.
11828
118292006-06-21 Ulrich Drepper <drepper@redhat.com>
11830
11831 * string/_strerror.c (__strerror_r): Add __builtin_expect.
11832
f9b7a98b
UD
118332006-06-14 Jakub Jelinek <jakub@redhat.com>
11834
11835 [BZ #2766]
11836 * misc/insremque.c (insque): Handle prev == NULL.
11837 * misc/Makefile (tests): Add tst-insremque.
11838 * misc/tst-insremque.c: New test.
11839
ac55a25b
UD
118402006-06-17 Ulrich Drepper <drepper@redhat.com>
11841
11842 [BZ #2792]
11843 * elf/dl-deps.c (expand_dst): Rename __cnt variable to not
11844 conflict with DL_DST_REQUIRED.
11845
02f366b3
UD
118462006-06-16 Ulrich Drepper <drepper@redhat.com>
11847
11848 * nis/nis_subr.c (nis_getnames): Fix the implementation to better
11849 match what Solaris does.
11850
9009e8f8
UD
118512006-06-04 Ulrich Drepper <drepper@redhat.com>
11852
1b8373f4
UD
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.
11857
7231452e
UD
11858 * sysdeps/posix/spawni.c (__spawni): Use non-cancelable interfaces.
11859
9009e8f8 11860 * string/Makefile (tests): Add bug-envz1.
02f366b3 11861 * string/bug-envz1.c: New file.
9009e8f8 11862
33e63e79
UD
118632006-06-02 Jakub Jelinek <jakub@redhat.com>
11864
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.
11873
fdc02996
UD
118742006-06-02 Ryan S. Arnold <rsa@us.ibm.com>
11875
11876 [BZ #2703]
11877 * string/envz.c (envz_strip): Correct erroneously reversed src
11878 and dest parameters to memmove() invocation.
11879
902c4291
UD
118802006-05-30 Jakub Jelinek <jakub@redhat.com>
11881
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.
11892
ecc68568
UD
118932006-05-30 Ulrich Drepper <drepper@redhat.com>
11894
11895 * sysdeps/posix/getaddrinfo.c (gaiconf_init): Initialize bits in
11896 the correct place.
11897
9636a217
UD
118982006-05-29 Ulrich Drepper <drepper@redhat.com>
11899
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.
cabfcde1 11903 * nscd/connections.c (dbs): Initialize .prunelock.
9636a217 11904
6bcb494a
UD
119052006-05-25 Ulrich Drepper <drepper@redhat.com>
11906
672d5a63 11907 * nis/nis_removemember.c (nis_removemember): Avoid unnecessary
ecc68568 11908 copying. No need to allocate new array for group members. Just
672d5a63
UD
11909 move the pointers and update the size.
11910
1663b44f
UD
11911 * nis/nis_addmember.c (nis_addmember): Avoid unnecessary copying.
11912 Avoid memory leak in case realloc fails. Simplification for
11913 better code generation.
11914
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.
9636a217 11919 (inet6_option_alloc): Now a simple wrapper around option_alloc.
1663b44f
UD
11920 (inet6_option_append): Call option_alloc.
11921 * include/netinet/in.h: Remove libc_hidden_proto for
11922 inet6_option_alloc.
11923
6bcb494a
UD
11924 * nis/nis_callback.c (__nis_create_callback): Always call xdr_free
11925 for cleanup when cb!=NULL [Coverity CID 233].
11926
aec6b246
UD
119272006-05-24 Ulrich Drepper <drepper@redhat.com>
11928
07bfff20
UD
11929 [BZ #2693]
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
11937 array.
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.
11946
11947 * inet/netinet/icmp6.h: Pretty printing.
11948
aec6b246
UD
11949 [BZ #2683]
11950 * elf/dl-addr.c (_dl_addr): Don't match undefined references.
11951
2d571cd1
UD
119522006-05-23 Ulrich Drepper <drepper@redhat.com>
11953
062e719b
UD
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.
11957
2d571cd1
UD
11958 * nis/nis_domain_of_r.c (nis_domain_of_r): Add missing buffer
11959 overflow test.
11960
a17fa610
UD
119612006-05-20 Ulrich Drepper <drepper@redhat.com>
11962
11963 * nis/nis_call.c (__prepare_niscall): New function. Split out
11964 from __do_niscall.
11965 * nis/nis_table.c (__create_ib_request): Renamed from create_ib_request
11966 and exported.
11967 (__follow_path): New function. Split out from nis_list.
11968 * nis/nis_xdr.h: Add libnsl_hidden_proto for _xdr_ib_request and
11969 _xdr_nis_result.
11970 * nis/nis_xdr.c: Add libnsl_hidden_def for _xdr_ib_request and
11971 _xdr_nis_result.
11972 * nis/libnsl.h: Declare __prepare_niscall, __create_ib_request,
11973 and __follow_path.
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.
11985
11986 * sunrpc/xdr_rec.c: Fix typo in comment.
11987
429bb183
UD
119882006-05-19 Ulrich Drepper <drepper@redhat.com>
11989
1d4f062a
UD
11990 * nis/nis_call.c (__do_niscall3): Avoid code duplication in error
11991 handling.
11992
101cc598
UD
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.
11996
f50fa10c
UD
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
12002 replacement.
12003 * malloc/Makefile ($(objpfx)memusage): Likewise.
12004
882bfe73
UD
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.
12008
429bb183
UD
12009 * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_sendreq): Make sure
12010 no uninitialized memory is passed to sendto.
12011
f90de831
UD
120122006-05-18 Ulrich Drepper <drepper@redhat.com>
12013
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.
12019
a17fa610 120202006-05-18 David Woodhouse <dwmw2@redhat.com>
6e2a7825
UD
12021
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.
12027
758b9d7e
UD
120282006-05-18 Jakub Jelinek <jakub@redhat.com>
12029
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.
12034
12035 * nis/nss_compat/compat-initgroups.c (nss_setgrent, nss_endgrent):
12036 Removed.
12037 (init_nss_interface): Remove initialization of these variables.
12038
120392006-05-18 Ulrich Drepper <drepper@redhat.com>
12040
12041 * nis/nis_call.c (rec_dirsearch): Little optimization: pull
12042 nis_free_directory forward to avoid duplication.
12043
388c779e
UD
120442006-05-17 Ulrich Drepper <drepper@redhat.com>
12045
5f1724bf
UD
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.
12050
388c779e
UD
12051 * sysdeps/unix/sysv/linux/sys/inotify.h: Define IN_CLOSE, IN_MOVE,
12052 IN_ONLYDIR, IN_DONT_FOLLOW, and IN_MASK_ADD.
12053
360d5cf4
UD
120542006-05-17 Jakub Jelinek <jakub@redhat.com>
12055
12056 * sunrpc/key_call.c (getkeyserv_handle): Call auth_destroy if
12057 pid changed.
12058
88dbff8c
UD
120592006-05-15 Ulrich Drepper <drepper@redhat.com>
12060
6f8a7dff
UD
12061 * include/rpc/pmap_prot.h: Mark all functions as hidden.
12062
12063 * nscd/nscd_initgroups.c: Mark __gr_map_handle as hidden.
12064 * nscd/nscd_getgr_r.c: Likewise.
12065
12066 * include/rpc/pmap_rmt.h: Mark all functions as hidden.
12067
12068 * nscd/nscd_getai.c (__hst_map_handle): Mark as hidden.
12069 * nscd/nscd_gethst_r.c (__hst_map_handle): Likewise.
12070
12071 * stdlib/longlong.h (__clz_tab): Mark as hidden.
12072
12073 * iconv/gconv_int.h: Mark __gconv_lock as hidden.
12074
360d5cf4 12075 * include/rpc/key_prot.h: Mark all _internal functions as hidden.
8263ed62
UD
12076
12077 * include/rpc/auth.h: Mark xdr_des_block_internal and
12078 xdr_opaque_auth_internal as hidden.
12079
12080 * sysdeps/unix/sysv/linux/getdents.c: Mark __have_no_getdents64 as
12081 hidden.
12082
360d5cf4 12083 * include/rpc/xdr.h: Mark all _internal functions as hidden.
8263ed62 12084
02264020
UD
12085 * misc/getusershell.c (okshells): Don't use static initializers,
12086 do it dynamically.
12087
fd5ea238
UD
12088 * stdlib/fmtmsg.c (keywords): Change type of len element to
12089 uint32_t to not waste space on 64bit machines.
12090
9446614c
UD
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.
12099
88dbff8c
UD
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.
12105
4442d58f
UD
121062006-05-15 Jakub Jelinek <jakub@redhat.com>
12107
12108 * resolv/res_debug.c (loc_ntoa): Make error const.
12109
121102006-05-14 Andreas Schwab <schwab@suse.de>
12111
12112 * math/complex.h [__LDBL_COMPAT]: Use __REDIRECT_NTH.
12113
121142006-05-12 Jakub Jelinek <jakub@redhat.com>
12115
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).
12119
a51752b6
UD
121202006-05-11 Ulrich Drepper <drepper@redhat.com>
12121
5d3fd1f6
UD
12122 * resolv/res_debug.c (loc_ntoa): Define error as array, not pointer.
12123
08cfb839
UD
12124 * include/arpa/nameser.h: Declare _ns_flagdata as hidden.
12125
4b481a15
UD
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.
12128
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.
12131
12132 * nis/nis_xdr.c: Add libnsl_hidden_def for xdr_cback_data.
12133 * include/rpcsvc/nis_callback.h: Add libnsl_hidden_proto for
12134 xdr_cback_data.
12135
12136 * nis/ypupdate_xdr.c: Add libnsl_hidden_def for xdr_ypupdate_args.
12137 * include/rpcsvc/ypupd.h: Add libnsl_hidden_proto for
12138 xdr_ypupdate_args.
12139
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.
12142
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.
12145
12146 * nis/nis_xdr.c: Add libnsl_hidden_def for xdr_obj_p.
12147 * include/rpcsvc/nis_callback.h: New file.
12148
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.
12151
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.
12154
12155 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypmaplist.
12156 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypmaplist.
12157
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.
12160
b1ad49c6
UD
12161 * nis/ypupdate_xdr.c: Add libnsl_hidden_def for xdr_ypdelete_args.
12162 * include/rpcsvc/ypupd.h: Add libnsl_hidden_proto for
12163 xdr_ypdelete_args.
12164
cd5f7829
UD
12165 * nis/nis_xdr.h: Mark all functions as hidden. Remove
12166 __BEGIN_DECLS and __END_DECLS, the header is not installed.
12167
a51752b6
UD
12168 * nis/nis_error.c: Remove table of strings. Use position
12169 independent mechanism.
12170 * nis/nis_error.h: New file.
12171
3d237e42
UD
121722006-05-11 Jakub Jelinek <jakub@redhat.com>
12173
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"".
12176
d6c159fe
UD
121772006-05-10 Ulrich Drepper <drepper@redhat.com>
12178
0088b04e
UD
12179 * sysdeps/unix/sysv/linux/tcgetattr.c (__tcgetattr): Only store
12180 results if the call was succesful.
12181
d6c159fe
UD
12182 * nis/nss-nis.h: Mark __yperr2nss_tab and __yperr2nss_count as hidden.
12183
12184 * nis/nss-nisplus.h: Mark __niserr2nss_tab and __niserr2nss_count
12185 as hidden.
12186
5c5acdf0
UD
121872006-05-10 Jakub Jelinek <jakub@redhat.com>
12188
12189 * misc/sys/queue.h: Remove uses of all QUEUEDEBUG_* macros.
12190
16d620db
UD
121912006-05-10 Ulrich Drepper <drepper@redhat.com>
12192
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]
12196
e7c8359e
UD
121972006-05-09 Ulrich Drepper <drepper@redhat.com>
12198
ecf359c6
UD
12199 * posix/wordexp.c: Remove numerous NULL pointer tests before FREE
12200 calls.
12201
400cc70a
UD
12202 * io/ftw.c (open_dir_stream): Return right away if REALLOC fails.
12203 [Coverity CID 229, 230]
12204
12205 * argp/argp-help.c (hol_entry_help): Handle STATE==NULL in ARG and
12206 DGETTEXT calls.
12207 (hol_help): Likewise. [Coverity CID 226, 227]
12208
12209 * string/argz-replace.c (__argz_replace): Unconditionally call
12210 free on SRC. [Coverity CID 225]
12211
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]
12215
51e59260
UD
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.
12221
12222 * nis/nis_lookup.c (nis_lookup): After calling nis_free_directory,
12223 we must clear the variable before calling __nisfind_server.
12224
12225 * nis/nis_lookup.c (nis_lookup): Always free memory allocated with
12226 nis_getnames. [Coverity CID 223]
12227
12228 * locale/programs/locfile.c (locfile_read): Use alloca instead of
12229 xmalloc to allocate local repertoire name. [Coverity CID 222]
12230
12231 * iconv/iconv_charmap.c (use_to_charmap): No need to dynamically
12232 allocate memory for the input to add_bytes. [Coverity CID 221]
12233
e7c8359e 12234 * posix/wordexp.c (w_addword): Free word if realloc fails and it
51e59260 12235 was allocated here. [Coverity CID 219, 220]
e7c8359e
UD
12236
12237 * posix/getconf.c (print_all): Free confstr data after printing.
12238 [Coverity CID 218]
12239
12240 * sysdeps/posix/getaddrinfo.c (gaih_inet): Free canon string if
12241 list allocation fails. [Coverity CID 215]
12242
12243 * nss/nsswitch.c (__nss_configure_lookup): Fix loop end condition.
12244 [Coverity CID 213]
12245
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.
12250
12251 * io/ftw.c (ftw_dir): Use __rawmemchr instead of strchr to find
12252 end of string.
12253 * stdlib/canonicalize.c (__realpath): Likewise.
12254
12255 * locale/programs/ld-time.c (time_finish): Don't dereference NULL
12256 pointer. [Coverity CID 206]
12257
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.
12262 [Coverity CID 205]
12263
12264 * argp/argp-help.c (fill_in_uparams): Handle STATE==NULL in
12265 dgettext calls. [Coverity CID 204]
12266
12267 * argp/argp-help.c (struct uparams): Remove valid member. Change
12268 the one user.
12269 (uparam_names): Reduce size. Avoid relative relocations.
12270 Moved to read-only segment.
12271 (fill_in_uparams): Update for new layout.
12272
12273 * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs): Parameter can be
12274 assumed to always be != NULL. [Coverity CID 202]
12275
12276 * argp/argp-help.c (hol_entry_help): Remove some dead code
12277 [Coverity CID 200].
12278
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.
12282
acf82eaf
UD
122832006-05-06 Ulrich Drepper <drepper@redhat.com>
12284
4461cf48
UD
12285 * sysdeps/generic/ldsodefs.h: Remove support for non-core
12286 architectures.
12287
b74a8c7f
UD
12288 * sysdeps/unix/sysv/linux/check_pf.c (make_request): Make sure
12289 that unused memory passed to sendto is nevertheless initialized.
12290
acb98cb5
UD
12291 [BZ #2499]
12292 * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Avoid
12293 possibly unaligned memory accesses.
12294
bce16467
UD
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
12298 NS_NOTIFY_OP.
12299
12300 * resolv/res_send.c (send_vc): Use ns_put16 instead of putshort.
12301
8e45b1ac
UD
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.
12305
697e1628
UD
12306 * include/arpa/nameser.h: Add optimizations for NS_GET16 and NS_GET32.
12307
12308 * resolv/res_send.c (res_nameinquery): Use NS_GET16 directly
12309 instead of ns_get16.
12310 (res_queriesmatch): Likewise. Minor optimization.
12311
acf82eaf
UD
12312 [BZ #2499]
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.
12316
7bfee654
UD
123172006-05-05 Ulrich Drepper <drepper@redhat.com>
12318
694b49ca
UD
12319 * stdio-common/vfscanf.c (memory_error): Remove definition. Add
12320 some branch prediction hints.
12321
7bfee654
UD
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.
12330
308bb2d5
UD
123312006-05-05 Martin Schwidefsky <schwidefsky@de.ibm.com>
12332
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.
12336
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.
12340
cdb9c321
UD
123412006-05-05 Ulrich Drepper <drepper@redhat.com>
12342
12343 * sunrpc/svcauth_des.c (cache_init): Use calloc instead of
12344 malloc&bzero.
12345
12346 * sunrpc/svc_udp.c (BZERO): Remove definition.
12347 (CALLOC): Define.
12348 (svc_enablecache): Use CALLOC instead of ALLOC&BZERO.
12349
12350 * sunrpc/des_impl.c: Remove ALT_ECB support. We never used it.
12351 (des_SPtrans): Use uint32_t type.
12352 (des_skb): Likewise.
12353
12354 * sunrpc/xdr_ref.c (xdr_reference): Use calloc instead of malloc&bzero.
12355
fff04b32
UD
123562006-05-05 Jakub Jelinek <jakub@redhat.com>
12357
12358 [BZ #2509]
12359 * stdio-common/tst-printf.sh: Adjust for tst-printf.c change even
12360 on 32-bit arches.
12361
123622006-05-05 Ulrich Drepper <drepper@redhat.com>
12363
12364 * locale/programs/ld-address.c (address_finish): Fix one more
cdb9c321 12365 place where the iso639 array might be accessed beyond the limits.
fff04b32 12366
077a30bc 123672006-05-04 Ulrich Drepper <drepper@redhat.com>
77dd4c3b 12368
f2d5cf50
UD
12369 * nis/nis_table.c (nis_list): Avoid clearing res twice before
12370 filling it for the first time.
12371
3e4370cf
UD
12372 * nis/nis_table.c (get_tablepath): Renamed from __get_tablepath.
12373 Adjust all callers.
12374 Free res object content before returning.
12375
5e65a53d
UD
12376 * sunrpc/xdr_array.c (xdr_array): Use calloc instead of malloc&bzero.
12377
48be3114
UD
12378 * sunrpc/key_call.c (__rpc_thread_key_cleanup): Also free
12379 client->cl_auth.
12380
ca4fce0e
UD
12381 * sunrpc/rpc_thread.c (__rpc_thread_destroy): Don't skip entire
12382 cleanup for initial thread, just the free call on TVP.
12383
077a30bc 12384 * nscd/gai.c (__getline): Define.
3b7a95fb 12385
5d37289a 12386
3f87d901 12387See ChangeLog.16 for earlier changes.