]> git.ipfire.org Git - thirdparty/glibc.git/blame - ChangeLog
Check for .cfi_{personality,lsda} on x86-64.
[thirdparty/glibc.git] / ChangeLog
CommitLineData
802fe9a1
UD
12009-07-23 Ulrich Drepper <drepper@redhat.com>
2
b2509a1e
UD
3 * sysdeps/x86_64/cacheinfo.c [USE_MULTIARCH]: Rearrange code to
4 avoid additional cpuid instructions. Most of the information is
5 stored somewhere.
6
3e9099b4
UD
7 * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Add more
8 cache descriptors.
9 * sysdeps/x86_64/cacheinfo.c (intel_02_known): Likewise.
10
d28797e4
UD
11 * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Reset
12 SSSE3 bit for Atoms.
13 * sysdeps/x86_64/multiarch/strcpy.S: New need to perform Atom test
14 here anymore.
15
666a9871
UD
16 * posix/tst-rfc3484.c (do_test): Initialize entire sockaddr_in
17 structure before copying it to avoid warning.
18 * posix/tst-rfc3484-2.c (do_test): Likewise.
19 * posix/tst-rfc3484-3.c (do_test): Likewise.
20
30a2dfd5
DS
21 [BZ #10416]
22 * include/unistd.h: Make header file suitable for C++ test cases.
23 Patch by Duncan Simpson <dps@simpson.demon.co.uk>.
24
9b6bf8a3
UD
25 * sysdeps/unix/sysv/linux/i386/makecontext.S: Ensure we preserve the
26 stack alignment in the exit code.
27
077e7700
UD
28 * elf/dl-lookup.c (dl_lookup_x): The hashval for unique symbol can
29 potentially be zero.
30
802fe9a1
UD
31 * elf/tst-unique1.c: Extend test to check for unloading DSO with
32 unique symbol definition.
33 Patch by Jakub Jelinek.
34 * elf/dl-lookup.c (do_lookup_x): When entering a new unique symbol,
35 make sure the object with the definition cannot be unloaded. Adjust
36 a few types.
37 * sysdeps/generic/ldsodefs.h (struct rtld_global): The map element in
38 the unique symbol hash table should not be const.
39
ae612b04
UD
402009-07-21 Ulrich Drepper <drepper@redhat.com>
41
42 * sysdeps/x86_64/multiarch/strstr.c: Minor cleanups. Remove
43 unnecesary variables. Comment fixes.
44
a8f895eb
UD
452009-07-20 Ulrich Drepper <drepper@redhat.com>
46
47 * sysdeps/x86_64/multiarch/strstr.c [USE_AS_STRCASESTR] (STRSTR_SSE42):
48 Use NONASCII_CASE information provided by the locale to determine
49 whether optimized string load function can be used. Minor cleanups.
50
2b7a8664
L
512009-07-20 H.J. Lu <hongjiu.lu@intel.com>
52
53 * string/strcasestr.c (STRCASESTR): New macro.
54 (__strcasestr): Renamed to ..
55 (STRCASESTR): ...this.
56 * string/strstr.c (STRSTR): New macro.
57 (strstr): Renamed to ..
58 (STRSTR): ...this.
59 * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
60 strstr-c strcasestr-c
61 (CFLAGS-strstr.c): New.
62 (CFLAGS-strcasestr.c): Likewise.
63 * sysdeps/x86_64/multiarch/strcasestr-c.c: New file.
64 * sysdeps/x86_64/multiarch/strcasestr.c: New file.
65 * sysdeps/x86_64/multiarch/strstr-c.c: New file.
66 * sysdeps/x86_64/multiarch/strstr.c: New file.
67
8a449450
UD
682009-07-20 Ulrich Drepper <drepper@redhat.com>
69
70 * locale/localeinfo.h (LIMAGIC): Update value for LC_CTYPE.
71 * locale/langinfo.h: Define _NL_CTYPE_NONASCII_CASE.
72 * locale/C-ctype.c (_nl_C_LC_CTYPE): Add initializer for
73 _NL_CTYPE_NONASCII_CASE.
74 * locale/programs/ld-ctype.c (locale_ctype_t): Add nonascii_case
75 field.
76 (ctype_finish): Check whether there are any 8-bit characters outside
77 the range ASCII has or whether the mapping isn't the same as for
78 ASCII (±0x20). Set nonascii_case appropriately.
79 (ctype_output): Add output handler for nonascii_case.
80
63601ccd
UD
812009-07-17 Ulrich Drepper <drepper@redhat.com>
82
83 * sysdeps/generic/sysdep.h: Define cfi_personality, cfi_lsda,
84 CFI_PERSONALITY, CFI_LSDA, and DW_EH_PE_* constants.
85
1c0ab5bd
UD
862009-07-16 Ulrich Drepper <drepper@redhat.com>
87
88 [BZ #10360]
89 * resolv/res-mkquery.c (__res_nopt): If anslen is > 0xffff store
90 0xffff in the EDNS0 record.
91
bec466d9 922009-07-16 Ulrich Drepper <drepper@redhat.com>
50158f95
AS
93
94 * nscd/cache.c (cache_add): Use atomic_compare_and_exchange_bool_rel
95 instead of atomic_compare_and_exchange_bool_acq to ensure pointer
96 is written before the list head update.
97 Patch by Andreas Schwab <aschwab@redhat.com>.
98
137028b4 992009-07-16 Ulrich Drepper <drepper@redhat.com>
bec466d9
UD
100 Jakub Jelinek <jakub@redhat.com>
101
102 * malloc/malloc.c [ATOMIC_FASTBINS] (_int_free): Make check for
103 corruption thread-safe.
104
bea0ac1d
JJ
1052009-07-13 Jakub Jelinek <jakub@redhat.com>
106
107 * include/atomic.h (catomic_compare_and_exchange_val_rel): If arch
108 overrides atomic_compare_and_exchange_val_rel, define to
109 atomic_compare_and_exchange_val_rel by default, otherwise default
110 to catomic_compare_and_exchange_val_acq.
111 (catomic_compare_and_exchange_bool_rel): If arch overrides
112 atomic_compare_and_exchange_bool_rel, define to
113 atomic_compare_and_exchange_bool_rel by default.
114 * malloc/malloc.c (_int_free): Revert 2009-07-02 change.
115 Use catomic_compare_and_exchange_val_rel instead of
116 catomic_compare_and_exchange_val_acq.
117
c8027cce
UD
1182009-07-16 Ulrich Drepper <drepper@redhat.com>
119
55c4ce68
UD
120 * sysdeps/generic/ldsodefs.h: Add prototype for
121 _dl_higher_prime_number.
122 * elf/dl-misc.c (_dl_higher_prime_number): Mark with internal_function.
123
c8027cce
UD
124 * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Optimize
125 restoring of ymm registers a bit.
126
e26c9b84
L
1272009-07-15 H.J. Lu <hongjiu.lu@intel.com>
128
129 * sysdeps/x86_64/memcmp.S: New file.
130
d7bd7a8a 1312009-07-15 Ulrich Drepper <drepper@redhat.com>
59cbcac0 132
d7bd7a8a
UD
133 * sysdeps/x86-64/dl-trampoline.h: Remove after integrating code into...
134 * sysdeps/x86-64/dl-trampoline.S: ...here. Rewrite to avoid function
135 pointers in writable memory.
59cbcac0 136
b0ecde3a
L
1372009-07-07 H.J. Lu <hongjiu.lu@intel.com>
138
139 * config.h.in: Add HAVE_AVX_SUPPORT entry.
140 * config.make.in: Add config-cflags-avx entry.
141 * configure.in: Substitute libc_cv_cc_avx.
142 * elf/Makefile: Add rules to build and run tst-audit4 and tst-audit5.
143 * elf/tst-audit4.c: New file.
144 * elf/tst-audit5.c: New file.
145 * elf/tst-auditmod4a.c: New file.
146 * elf/tst-auditmod4b.c: New file.
147 * elf/tst-auditmod5a.c: New file.
148 * elf/tst-auditmod5b.c: New file.
149 * sysdeps/x86_64/Makefile (gen-as-const-headers): Add
150 link-defines.sym.
151 * sysdeps/x86_64/bits/link.h (La_x86_64_ymm): New.
152 (La_x86_64_vector): Likewise.
153 (La_x86_64_regs): Append lr_vector.
154 (La_x86_64_retval): Append lr_vector0/lrv_vector1.
155 * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Move
156 saving and restoring SSE registers to ...
157 * sysdeps/x86_64/dl-trampoline.h: This. New file.
158 * sysdeps/x86_64/dl-trampoline.S: Include <config.h> and
159 <link-defines.h>.
160 (_dl_runtime_profile): Use LR_SIZE to allocate space for
161 La_x86_64_regs. Allocate extra space and jump to memory at
162 save_and_restore_vector if HAVE_AVX_SUPPORT is defined.
163 (save_and_restore_vector_sse): New.
164 (save_and_restore_vector_avx): Likewise.
165 (check_avx): Likewise.
166 (save_and_restore_vector): Likewise.
167 * sysdeps/x86_64/elf/configure.in: Set libc_cv_cc_avx and
168 HAVE_AVX_SUPPORT.
169 * sysdeps/x86_64/link-defines.sym: New file.
170
339717d5
UD
1712009-07-10 Ulrich Drepper <drepper@redhat.com>
172
786b74f4
UD
173 * elf/do-lookup.h: Removed after folding content into...
174 * elf/dl-lookup.c: ...here.
175
339717d5
UD
176 * sysdeps/unix/sysv/linux/sys/epoll.h: Fix comment.
177
415ac3df
UD
1782009-07-09 Ulrich Drepper <drepper@redhat.com>
179
180 * configure.in: Check for gnu_unique_symbol symbol type.
181 * config.h.in: Add HAVE_ASM_UNIQUE_OBJECT entry.
182 * elf/do-lookup.h (do_lookup_x): Take new parameter with link map of
183 the undefined symbol. Handle STB_GNU_UNIQUE binding of found symbol.
184 * elf/dl-lookup.c (_dl_lookup_symbol_x): Adjust callers for do_lookup_x
185 change.
186 * sysdeps/generic/ldsodefs.h (struct rtld_global): Add definitions for
187 unique symbol table.
188 * elf/rtld.c (rtld_global): Initialize lock of unique symbol hash table
189 for first namespace.
190 * elf/dl-open.c (_dl_open): For new namespace, initialize lock for
191 unique symbol hash table.
192 * elf/Makefile: Add rules to build and run tst-unique1 and tst-unique2.
193 * elf/tst-unique1.c: New file.
194 * elf/tst-unique1mod1.c: New file.
195 * elf/tst-unique1mod2.c: New file.
196 * elf/tst-unique2.c: New file.
197 * elf/tst-unique2mod1.c: New file.
198 * elf/tst-unique2mod2.c: New file.
199
eba0994e
UD
2002009-07-07 Ulrich Drepper <drepper@redhat.com>
201
b4f55afd
UD
202 * elf/elf.h (STB_GNU_UNIQUE): Define.
203
eba0994e
UD
204 * elf/dl-misc.c (_dl_higher_prime_number): New function. Moved here
205 from...
206 * include/inline-hashtab.h: ...here.
207 (htab_expand): Adjust for renamed function. Correct memory handling.
208
a38862a5
UD
2092009-07-06 Ulrich Drepper <drepper@redhat.com>
210
415ac3df 211 * elf/do-lookup.h (do_lookup_x): Optimize test for valid symbol types.
a38862a5 212
2123d581
AS
2132009-07-03 Andreas Schwab <aschwab@redhat.com>
214
215 * sysdeps/powerpc/sysdep.h (PPC_FEATURE_ARCH_2_06): Fix value.
216 (PPC_FEATURE_HAS_VSX): Likewise.
217
d6485c98
UD
2182009-07-03 Ulrich Drepper <drepper@redhat.com>
219
cea43295
UD
220 * sysdeps/x86_64/multiarch/strcspn-c.c: Minor cleanups.
221 * sysdeps/x86_64/multiarch/strspn-c.c: Likewise.
222
d6485c98
UD
223 * sysdeps/x86_64/multiarch/strcmp.S: Make sure functions are all
224 aligned to 16 byte boundaries.
225 * sysdeps/x86_64/multiarch/strcpy.S: Likewise.
226 * sysdeps/x86_64/multiarch/strlen.S: Likewise.
227 * sysdeps/x86_64/multiarch/rawmemchr.S: Likewise.
228
06e51c8f
L
2292009-07-02 H.J. Lu <hongjiu.lu@intel.com>
230
231 * config.h.in (HAVE_SSE4_SUPPORT): New macro.
232 * config.make.in (config-cflags-sse4): New variable.
233 * configure.in: Substitute libc_cv_cc_sse4.
234 * sysdeps/i386/configure.in: Set libc_cv_cc_sse4 and
235 HAVE_SSE4_SUPPORT.
236 * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
237 strcspn-c, strpbrk-c, strspn-c for string if gcc supports SSE4.
238 * sysdeps/x86_64/multiarch/strcspn-c.c: New file.
239 * sysdeps/x86_64/multiarch/strcspn.S: New file.
240 * sysdeps/x86_64/multiarch/strpbrk-c.c: New file.
241 * sysdeps/x86_64/multiarch/strpbrk.S: New file.
242 * sysdeps/x86_64/multiarch/strspn-c.c: New file.
243 * sysdeps/x86_64/multiarch/strspn.S: New file.
244
ab6a873f
L
2452009-06-30 H.J. Lu <hongjiu.lu@intel.com>
246
167d5ed5
L
247 * elf/Makefile (distribute): Remove tst-audit.sh. Add
248 tst-audit2.c, tst-audit3.c, tst-auditmod3a.c, tst-auditmod3b.c.
249 (tests): Add tst-audit3 for x86_64.
250 (modules-names): Add tst-auditmod3a, tst-auditmod3b.
251 ($(objpfx)tst-audit3): Define.
252 ($(objpfx)tst-audit3.out): Define.
253 (tst-audit3-ENV): Define.
254 * elf/tst-audit3.c: New file.
255 * elf/tst-auditmod3a.c: New file.
256 * elf/tst-auditmod3b.c: New file.
257 * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Save
258 and restore xmm6.
259
ab6a873f
L
260 * string/stpncpy.c (STPNCPY): New. Defined if not defined.
261 (__stpncpy): Renamed to ...
262 (STPNCPY): This.
263 (stpncpy): Create alias only if STPNCPY is not defined.
264 * string/strncpy.c (STRNCPY): New. Defined to strncpy if not
265 defined.
266 (strncpy): Renamed to ...
267 (STRNCPY): This.
268 * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
269 stpncpy-c strncpy-c for string.
270 * sysdeps/x86_64/multiarch/stpcpy.S: New file.
271 * sysdeps/x86_64/multiarch/stpncpy-c.c: New file.
272 * sysdeps/x86_64/multiarch/stpncpy.S: New file.
273 * sysdeps/x86_64/multiarch/strcpy.S: New file.
274 * sysdeps/x86_64/multiarch/strncpy-c.c: New file.
275 * sysdeps/x86_64/multiarch/strncpy.S: New file.
276
6cbbaa50
UD
2772009-07-02 Ulrich Drepper <drepper@redhat.com>
278
279 * malloc/malloc.c [ATOMIC_FASTBINS] (_int_free): Add full barrier when
280 adding to fast bin list.
281
29ba9812
UD
2822009-07-01 Ulrich Drepper <drepper@redhat.com>
283
2fd0cd8b
UD
284 * nis/nss_nis/nis-network.c (_nss_nis_getnetbyaddr_r): Don't use
285 inet_makeaddr. This worked only with class-based networks.
286 * nis/nss_nisplus/nisplus-network.c (_nss_nisplus_getnetbyaddr_r):
287 Likewise.
288
29ba9812 289 * nss/nss_files/files-network.c (netbyaddr): If type is AF_UNSPEC,
5cd1f906 290 recognize all types.
29ba9812 291 * nss/getent.c (networks_keys): Pass AF_UNSPEC instead of AF_UNIX
5cd1f906
UD
292 to getnetbyaddr. Fix network parameter to getnetbyaddr. It must
293 be in host byte order.
29ba9812 294
01812913
L
2952009-06-26 H.J. Lu <hongjiu.lu@intel.com>
296
297 * sysdeps/x86_64/multiarch/ifunc-defines.sym (FAMILIY_OFFSET): Define.
298 (MODEL_OFFSET): Define.
299 * sysdeps/x86_64/multiarch/init-arch.h (cpu_features): Add
300 family and model.
301 * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Break
302 out common code into new function get_common_indeces. Determine
303 extended family and model for Intel processors.
304
44d20bca
UD
3052009-06-26 Ulrich Drepper <drepper@redhat.com>
306
307 * resolv/resolv.h: Define RES_SNGLKUPREOP.
308 * resolv/res_init.c (res_setoptions): Recognize single-request-reopen
309 option.
310 * resolv/res_send.c (reopen): New function. Broken out of...
311 (send_dg): ... here. Recognize RES_SNGLKUPREOP. Implement second
312 fallback mechanism. If single-request fails switch to
313 single-request-reopen mode which opens a new socket for the second
314 request.
315
80a98966
AS
3162009-06-25 Andreas Schwab <aschwab@redhat.com>
317
318 * sysdeps/powerpc/powerpc32/____longjmp_chk.S (LOAD_ARG): Define.
319 (CHECK_SP): Use it.
54c99aab 320
3f241d75
AS
3212009-06-24 Andreas Schwab <aschwab@redhat.com>
322
323 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.S: Fix cfa offset
324 for saved registers.
325 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
326 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
327 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
328
7a7c2c24
AS
3292009-06-23 Andreas Schwab <aschwab@redhat.com>
330
331 * time/tzfile.c (__tzfile_read): Don't use an empty TZ string.
332
20a3ce85
UD
3332009-06-22 Ulrich Drepper <drepper@redhat.com>
334
58d60030
UD
335 * po/id.po: Update from translation team.
336
20a3ce85
UD
337 * po/bg.po: Update from translation team.
338
772f4e6a
L
3392009-06-22 H.J. Lu <hongjiu.lu@intel.com>
340
341 * string/strncmp.c (STRNCMP): New. Defined to strncmp if not
342 defined.
343 (strncmp): Renamed to STRNCMP.
344 * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
345 strncmp-c for string.
346 * sysdeps/x86_64/multiarch/init-arch.h (HAS_SSE4_2): Define.
347 * sysdeps/x86_64/multiarch/strcmp.S: New file.
348 * sysdeps/x86_64/multiarch/strncmp.S: New file.
349 * sysdeps/x86_64/multiarch/strncmp-c.c: New file.
350
3c30afc8
L
3512009-06-19 H.J. Lu <hongjiu.lu@intel.com>
352
353 * elf/Makefile (distribute): Add ifuncmain1staticpie.c,
354 ifuncmain5.c, ifuncmain5pic.c, ifuncmain5picstatic.c,
355 ifuncmain5pie.c, ifuncmain5static.c, ifuncmain5staticpic.c,
356 ifuncdep5.c, ifuncdep5pic.c, ifuncmod5.c, ifuncmain7.c,
357 ifuncmain7pic.c, ifuncmain7picstatic.c, ifuncmain7pie.c, and
358 ifuncmain7static.c.
359 (tests-static): Add ifuncmain5static, ifuncmain5picstatic,
360 ifuncmain7static, and ifuncmain7picstatic.
361 (tests): Also depend on $(objpfx)ifuncmain1staticpie.out,
362 $(objpfx)ifuncmain5pie.out, $(objpfx)ifuncmain6pie.out, and
363 $(objpfx)ifuncmain7pie.out.
364 (modules-names): Add ifuncmod5 ifuncmod6
365 (ifuncmod5.so-no-z-defs): Define.
366 (ifuncmod6.so-no-z-defs): Define.
367 (CFLAGS-ifuncmain5pic.c): Define.
368 (CFLAGS-ifuncmain5picstatic.c): Define.
369 (CFLAGS-ifuncmain5staticpic.c): Define.
370 (CFLAGS-ifuncdep5pic.c): Define.
371 (CFLAGS-ifuncmain7pic.c): Define.
372 (CFLAGS-ifuncmain7picstatic.c): Define.
373 (CFLAGS-ifuncmain1staticpie.c): Define.
374 (CFLAGS-ifuncmain5pie.c): Define.
375 (CFLAGS-ifuncmain6pie.c): Define.
376 (CFLAGS-ifuncmain7pie.c): Define.
377 ($(objpfx)ifuncmain1staticpie.out): Define.
378 ($(objpfx)ifuncmain1staticpie): Define.
379 ($(objpfx)ifuncmain5pie.out): Define.
380 ($(objpfx)ifuncmain5pie): Define.
381 ($(objpfx)ifuncmain6pie.out): Define.
382 ($(objpfx)ifuncmain6pie): Define.
383 ($(objpfx)ifuncmain5): Define.
384 ($(objpfx)ifuncmain5pic): Define.
385 ($(objpfx)ifuncmain5static): Define.
386 ($(objpfx)ifuncmain5staticpic): Define.
387 ($(objpfx)ifuncmain5picstatic): Define.
388 (generated): Add ifuncmain1staticpie, ifuncmain1staticpie.out,
389 ifuncmain5pie, ifuncmain5pie.out, ifuncmain6pie, and
390 ifuncmain6pie.out.
391 * elf/b/elf/ifuncmain1staticpie.c: New file.
392 * elf/ifuncdep5.c: New file.
393 * elf/ifuncdep5pic.c: New file.
394 * elf/ifuncmain5.c: New file.
395 * elf/ifuncmain5pic.c: New file.
396 * elf/ifuncmain5picstatic.c: New file.
397 * elf/ifuncmain5pie.c: New file.
398 * elf/ifuncmain5static.c: New file.
399 * elf/ifuncmain5staticpic.c: New file.
400 * elf/ifuncmain6pie.c: New file.
401 * elf/ifuncmain7.c: New file.
402 * elf/ifuncmain7pic.c: New file.
403 * elf/ifuncmain7picstatic.c: New file.
404 * elf/ifuncmain7pie.c: New file.
405 * elf/ifuncmain7static.c: New file.
406 * elf/ifuncmod5.c: New file.
407 * elf/ifuncmod6.c: New file.
408
ccab6d8f
UD
4092009-06-20 Ulrich Drepper <drepper@redhat.com>
410
411 [BZ #10085]
412 * nis/nss_compat/compat-initgroups.c (nss_setgrent): New variable.
413 (nss_endgrent): New variable.
414 (struct ent_t): Add need_endgrent and skip_initgroups_dyn
415 fields. Change type of files to bool and adjust all users.
416 (init_nss_interface): Initialize nss_setgrent and nss_endgrent.
417 (internal_endgrent): Call nss_endgrent if necessary.
418 (add_group): New function. Broken out of...
419 (check_and_add_group): ...here.
420 (getgrent_next_nss): Remove test that any callback is available.
421 Use skip_initgroups_dyn to determine whether to use initgroups_dyn
422 callback. If there is no blacklist we can trust the results returned
423 by the initgroups_dyn callback. In case there is a callback and we
424 find a group entry for the group ID but it doesn't contain the
425 correct member, switch to the slow mode and use getgrent_r.
426 (internal_getgrent_r): When we see a +: entry, determine whether
427 there is any callback and which we can use the initgroups_dyn
428 callback.
429
d0a2af71
UD
4302009-06-18 Ulrich Drepper <drepper@redhat.com>
431
f6887a0d
UD
432 * malloc/malloc.c (_int_malloc): Add some consistency checks.
433 (_int_free): Likewise.
434
d0a2af71
UD
435 * sysdeps/unix/sysv/linux/bits/socket.h: Define PF_IEEE802154 and
436 AF_IEEE802154.
437 * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
438 * sysdeps/unix/sysv/linux/net/if_arp.h: Define ARPHRD_IEEE802154
439 and ARPHRD_IEEE802154_PHY.
440
441 * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Add missing definitions
442 relative to generic Linux version.
443
d8366b09
L
4442009-06-17 H.J. Lu <hongjiu.lu@intel.com>
445
446 * elf/Makefile ($(objpfx)ifuncmain1pie): Use $(+link-pie).
447 ($(objpfx)ifuncmain1vispie): Likewise.
448
f051ddfe
UD
4492009-06-16 Ulrich Drepper <drepper@redhat.com>
450
451 * login/Makefile: Build pt_chown as PIE.
452
f60ddf9b
AS
4532009-06-15 Andreas Schwab <aschwab@redhat.com>
454
455 * debug/xtrace.sh (do_help): Don't treat bug reporting message as
456 a format string.
457 * elf/sln.c (usage): Likewise.
458 * malloc/memusage.sh (do_help): Likewise.
459 * nss/getent.c (more_help): Likewise.
460 * posix/getconf.c (main): Likewise.
461 * sunrpc/rpcinfo.c (usage): Likewise.
462 * sysdeps/unix/sysv/linux/lddlibc4.c (main): Likewise.
463
f793b624
UD
4642009-06-16 Ulrich Drepper <drepper@redhat.com>
465
8a909c64
UD
466 * login/programs/pt_chown.c: Use libcap to drop privileges other than
467 those needed.
f793b624 468 * login/Makefile: If necessary link pt_chown with -lcap.
8a909c64
UD
469 * sysdeps/generic/pty-private.h: Define FAIL_ENOMEM.
470 * sysdeps/unix/grantpt.c: Handle FAIL_ENOMEM.
f793b624 471
fab8238d
JJ
4722009-06-16 Jakub Jelinek <jakub@redhat.com>
473
474 * sysdeps/x86_64/memchr.S (memchr): Use unsigned instead of signed
475 comparisons.
476 * string/test-memchr.c (do_random_tests): Test very large lengths
477 as well.
478
435aa54b
L
4792009-06-02 H.J. Lu <hongjiu.lu@intel.com>
480
481 * Makeconfig (+link-pie): Define.
482 (+prectorS): Define.
483 (+postctorS): Define.
484 * elf/Makefile ($(objpfx)tst-pie1): Use $(+link-pie).
485 * nscd/Makefile ($(objpfx)nscd): Likewise.
486
25bfbb9e
RA
4872009-04-22 Ryan S. Arnold <rsa@us.ibm.com>
488
489 [BZ #10107]
490 * sysdeps/powerpc/powerpc32/power6/memcpy.S (memcpy): Replace cmpldi
491 with cmplwi.
492 * sysdeps/powerpc/powerpc32/power6/memset.S (memset): Likewise.
493
b34de9ea
UD
4942009-06-16 Ulrich Drepper <drepper@redhat.com>
495
496 * sysdeps/unix/sysv/linux/grantpt.c: Remove file after folding changes
497 into ...
498 * sysdeps/unix/grantpt.c: ...here.
499
a468a1d4
UD
5002009-06-15 Ulrich Drepper <drepper@redhat.com>
501
837dea7c
UD
502 * sysdeps/unix/sysv/linux/grantpt.c (grantpt): Only call chown and
503 chmod if it is necessary.
504
292e3abe 505 [BZ #10166]
eae3208e
UD
506 * sysdeps/unix/sysv/linux/grantpt.c: Remove shortcut which was used
507 when the slave device is in devpts or devfs.
292e3abe 508
395a37e3
UD
509 [BZ #10183]
510 * posix/tst-cpucount.c: Don't try more than CPU_SETSIZE bits.
511
7ed520bd
AE
512 [BZ #10195]
513 * inet/netinet/icmp6.h (struct nd_opt_home_agent_info): Change type
514 of nd_opt_home_agent_info_preference to uint16_t.
515 Patch by Arnaud Ebalard <arno@natisbad.org>.
516
c518f9a4 517 [BZ #10207]
f6887a0d 518 * nss/getent.c: Add support for printing gshadow data.
c518f9a4 519
233a182b
JL
520 [BZ #10203]
521 * nis/nss_nis/nis-pwd.c (internal_nis_endpwent): Free all buffers,
522 not just the currently used one and those which follow.
523 Patch by Joe Landers <jlanders@vmware.com>.
524
4155d926
BD
525 [BZ #10196]
526 * libio/tst-fgetwc.c (do_test): Use de_DE.UTF-8 as locale name.
eae3208e 527 * libio/Makefile: Run tst-fgetwc with necessary envvar.
4155d926
BD
528 Patch by Bruce Dubbs <bdubbs@linuxfromscratch.org>.
529
48dcd0ba
UD
530 [BZ #10217]
531 * stdlib/abort.c: Define variable __abort_msg.
532 * stdlib/Versions: Export __abort_msg with GLIBC_PRIVATE version.
533 * include/stdlib.h: Declare __abort_msg.
534 * assert/assert-perr.c: Don't free buffer for message immediately.
535 Store atomically in __abort_msg and free old buffer if necessary.
536 * assert/assert.c: Likewise.
537 * sysdeps/posix/libc_fatal.c: Allocate buffer for message, copy it,
538 store pointer in __abort_msg, and possibly free old string.
539 * sysdeps/unix/sysv/linux/libc_fatal.c: Likewise.
540
6355c997
UD
541 * time/tzfile.c (__tzfile_read): Correct computation of tzspec_len.
542
29143408
AH
543 [BZ #10211]
544 * time/tzfile.c (__tzfile_compute): If we use the envvar format still
545 handle leap seconds if they are available.
546 Patch by Akinori Hattori <hattya@gentoo.org>.
547
5fb55a68
UD
548 * timezone/tzselect.ksh: Update from tzcode2009i.
549 * timezone/zdump.c: Likewise.
550 * timezone/zic.c: Likewise.
551
a468a1d4
UD
552 * timezone/africa: Update from tzdata2009i.
553 * timezone/antarctica: Likewise.
554 * timezone/asia: Likewise.
555 * timezone/australasia: Likewise.
556 * timezone/backward: Likewise.
557 * timezone/etcetera: Likewise.
558 * timezone/europe: Likewise.
559 * timezone/factory: Likewise.
560 * timezone/iso3166.tab: Likewise.
561 * timezone/leapseconds: Likewise.
562 * timezone/northamerica: Likewise.
563 * timezone/pacificnew: Likewise.
564 * timezone/solar87: Likewise.
565 * timezone/solar88: Likewise.
566 * timezone/solar89: Likewise.
567 * timezone/southamerica: Likewise.
568 * timezone/systemv: Likewise.
569 * timezone/yearistype: Likewise.
570 * timezone/zone.tab: Likewise.
571
02125962
JJ
5722009-06-15 Jakub Jelinek <jakub@redhat.com>
573
574 * elf/dl-lookup.c (_dl_debug_bindings): When resolving to
575 STT_GNU_IFUNC symbol or in 8 into type_class.
576
577 * sysdeps/i386/dl-irel.h (elf_irel): Use Elf32_Addr type
578 instead of Elf64_Addr.
579
eb0b6cb6
UD
5802009-06-14 Ulrich Drepper <drepper@redhat.com>
581
53c06891
UD
582 * po/sv.po: Update from translation team.
583
eb0b6cb6
UD
584 [BZ #10229]
585 * misc/sys/select.h (__NFDBITS): Expression should have type int.
586 * sysdeps/x86_64/bits/select.h: Remove asm versions for __FD_SET,
587 __FD_CLR, and __FD_ISSET. gcc nowadays generates better code from
588 the C version.
589
bfdb73e1
UD
5902009-06-12 Ulrich Drepper <drepper@redhat.com>
591
592 * Versions.def: Add GLIBC_2.11 for libpthread.
593
310647e9
UD
5942009-06-11 Ulrich Drepper <drepper@redhat.com>
595
596 * resolv/res_send.c (send_dg): Remember we switched to
597 single-request mode.
598
d360a0da
UD
5992009-06-09 Ulrich Drepper <drepper@redhat.com>
600
88ea382f
D
601 * dlfcn/dlfcn.h: Remove comma at end of enum.
602 Patch by J.H.M. Dassen <rdassen@redhat.com>.
603
d360a0da
UD
604 * libio/fileops.c (_IO_new_file_fopen): Don't prematurely stop
605 parsing mode string.
606
443caceb
UD
6072009-06-05 Ulrich Drepper <drepper@redhat.com>
608
b77c9323
UD
609 * sysdeps/x86_64/rawmemchr.S: Minor optimization.
610
611 * sysdeps/x86_64/multiarch/rawmemchr.S: New file.
612
3ab2d57a
UD
613 * sysdeps/x86_64/multiarch/strlen.S: New file.
614 * sysdeps/x86_64/multiarch/ifunc-defines.sym: New file.
615 * sysdeps/x86_64/multiarch/Makefile: Add rule to build ifunc-defines.h.
616 * sysdeps/x86_64/multiarch/init-arch.h: Name structure with register
617 content.
618
443caceb
UD
619 * csu/elf-init.c: Only compile in IFUNC functionality if USE_MULTIARCH
620 is defined.
621
747785f2
UD
6222009-06-04 Ulrich Drepper <drepper@redhat.com>
623
2f3f7b9d 624 * sysdeps/x86_64/strlen.S: Minor optimizations.
747785f2 625
2f083d75
L
6262009-06-02 H.J. Lu <hongjiu.lu@intel.com>
627
628 * elf/Makefile (distribute): Add ifuncmain1.c, ifuncmain1pic.c,
629 ifuncmain1vis.c, ifuncmain1vispic.c, ifuncmain1static.c,
630 ifuncmain1staticpic.c, ifuncmain1picstatic.c, ifuncdep1.c,
631 ifuncdep1pic.c, ifuncmod1.c, ifuncmain1pie.c, ifuncmain1vispie.c,
632 ifuncmain2.c, ifuncmain2static.c, ifuncdep2.c,
633 funcmain2pic.c, ifuncmain2picstatic.c, ifuncdep2pic.c,
634 ifuncmain3.c, ifuncmod3.c,.
635 ifuncmain4.c, ifuncmain4static.c, ifuncmain4picstatic.c.
636 (tests-static): Add ifuncmain1static, ifuncmain1picstatic,
637 ifuncmain2static, ifuncmain2picstatic, ifuncmain4static,
638 ifuncmain4picstatic.
639 (tests): Add ifuncmain1, ifuncmain1pic, ifuncmain1vis,
640 ifuncmain1vispic, ifuncmain1staticpic, ifuncmain2, ifuncmain2pic,
641 ifuncmain3, ifuncmain4.
642 (tests): Depend on $(objpfx)ifuncmain1pie.out and
643 $(objpfx)ifuncmain1vispie.out.
644 (modules-names): Add ifuncmod1 ifuncmod3.
645 (generated): Add ifuncmain1pie ifuncmain1pie.out
646 ifuncmain1vispie ifuncmain1vispie.out.
647 Define rules to build and run the tests.
648 * elf/ifuncdep1.c: New file.
649 * elf/ifuncdep1pic.c: New file.
650 * elf/ifuncdep2.c: New file.
651 * elf/ifuncdep2pic.c: New file.
652 * elf/ifuncmain1.c: New file.
653 * elf/ifuncmain1pic.c: New file.
654 * elf/ifuncmain1picstatic.c: New file.
655 * elf/ifuncmain1pie.c: New file.
656 * elf/ifuncmain1static.c: New file.
657 * elf/ifuncmain1staticpic.c: New file.
658 * elf/ifuncmain1vis.c: New file..
659 * elf/ifuncmain1vispic.c: New file..
660 * elf/ifuncmain1vispie.c: New file.
661 * elf/ifuncmain2.c: New file.
662 * elf/ifuncmain2pic.c: New file.
663 * elf/ifuncmain2picstatic.c: New file.
664 * elf/ifuncmain2static.c: New file.
665 * elf/ifuncmain3.c: New file.
666 * elf/ifuncmain4.c: New file.
667 * elf/ifuncmain4picstatic.c: New file.
668 * elf/ifuncmain4static.c: New file.
669 * elf/ifuncmod1.c: New file.
670 * elf/ifuncmod3.c: New file.
671
fbb04b35
UD
6722009-06-03 Ulrich Drepper <drepper@redhat.com>
673
674 * elf/dl-sysdep.c (_dl_show_auxv): Terminate correct string.
675
3d5243d4
UD
6762009-06-02 Ulrich Drepper <drepper@redhat.com>
677
678 [BZ #10221]
679 * posix/Makefile (routines): Add execvpe.
680 * posix/Versions: Export execvpe for GLIBC_2.11.
681 * posix/execvp.c: Now only a wrapper. Move code to...
682 * posix/execvpe.c: ...here. New file.
683 * posix/unistd.h: Declare execvpe.
684
b7629ee3
UD
6852009-06-01 Ulrich Drepper <drepper@redhat.com>
686
fd96f062
UD
687 * sysdeps/i386/dl-machine.h (elf_machine_rel): Reorder conditions
688 for STT_GNU_IFUNC handling for efficiency.
689 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
690
b7629ee3
UD
691 * sysdeps/i386/dl-irel.h (elf_irel): Use __libc_fatal instead of just
692 _exit.
693 * sysdeps/x86_64/dl-irel.h (elf_irela): Likewise.
694
8ea23729
UD
6952009-05-31 Ulrich Drepper <drepper@redhat.com>
696
697 * sysdeps/x86_64/multiarch/sched_cpucount.c: Also use optimized code
698 for !SHARED.
699
74414708
UD
7002009-05-29 H.J. Lu <hongjiu.lu@intel.com>
701
702 * csu/elf-init.c: Include <link.h> and <dl-irel.h> if LIBC_NONSHARED
703 is not defined.
704 (__rela_iplt_start): New declaration.
705 (__rela_iplt_end): Likewise.
706 (__rel_iplt_start): Likewise.
707 (__rel_iplt_end): Likewise.
708 (__libc_csu_init): Process __rela_iplt_start and __rel_iplt_start.
709 * elf/elf.h (R_386_IRELATIVE): New macro.
710 (R_X86_64_IRELATIVE): New macro.
711 (R_386_NUM): Updated.
712 (R_X86_64_NUM): Likewise.
713 * include/libc-symbols.h (libc_ifunc_hidden_def1): New macro.
714 (libc_ifunc_hidden_def): New macro.
715 * sysdeps/generic/dl-irel.h: New file.
716 * sysdeps/i386/dl-irel.h: New file.
717 * sysdeps/x86_64/dl-irel.h: New file.
718 * sysdeps/i386/dl-machine.h (elf_machine_rel): Handle R_386_IRELATIVE.
719 (elf_machine_rela): Check SHN_UNDEF for STT_GNU_IFUNC symbol.
720 Handle R_386_IRELATIVE.
721 (elf_machine_lazy_rel): Handle R_386_IRELATIVE.
722 (elf_machine_lazy_rela): Likewise.
723 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Handle
724 R_X86_64_IRELATIVE.
725 (elf_machine_lazy_rel): Handle R_X86_64_IRELATIVE.
726
963cb6fc
UD
7272009-05-31 Ulrich Drepper <drepper@redhat.com>
728
729 * sysdeps/x86_64/multiarch/init-arch.h: Define COMMON_CPUID_INDEX_1
730 instead of INTEL_CPUID_INDEX_1 and AMD_CPUID_INDEX_1. So far there
731 are no differences. If an architecture has bits in CPUID index 1
732 meaning different things the values for the COMMON_CPUID_INDEX_1
733 index must not be set.
734 (INTEL_HAS_POPCOUNT, AMD_HAS_POPCOUNT): Removed in favor of...
735 (HAS_POPCOUNT): ...this. New macro.
736 * sysdeps/x86_64/multiarch/init-arch.c: Use COMMON_CPUID_INDEX_1
737 instead of INTEL_CPUID_INDEX_1 and AMD_CPUID_INDEX_1. Unify code
738 to set the value for Intel and AMD architectures.
739 * sysdeps/x86_64/cacheinfo.c: Use COMMON_CPUID_INDEX_1 instead of
740 INTEL_CPUID_INDEX_1.
741 * sysdeps/x86_64/multiarch/sched_cpucount.c: Adjust for HAS_POPCOUNT
742 change.
743
c16a054d
AS
7442009-05-30 Andreas Schwab <schwab@linux-m68k.org>
745
746 * configure.in: Move AC_CANONICAL_HOST before first use of $host
747 and $build.
c16a054d 748
7f3394bd
UD
7492009-05-29 Jakub Jelinek <jakub@redhat.com>
750
751 * sysdeps/ieee754/ldbl-128/s_expm1l.c: Include <errno.h>.
752 (__expm1l): Set errno to ERANGE on overflow.
753 * sysdeps/ieee754/ldbl-128/s_tanl.c: Include <errno.h>.
754 (__tanl): Set errno to EDOM for ±Inf.
755 * sysdeps/ieee754/ldbl-128/s_cosl.c: Include <errno.h>.
756 (__cosl): Set errno to EDOM for ±Inf.
757 * sysdeps/ieee754/ldbl-128/s_sinl.c: Include <errno.h>.
758 (__sinl): Set errno to EDOM for ±Inf.
759
b8bb339f
UD
760 * sysdeps/s390/s390-32/__longjmp.c (__longjmp): If CHECK_SP is
761 defined, use it.
762 * sysdeps/s390/s390-64/__longjmp.c (__longjmp): Likewise.
763 * sysdeps/s390/s390-32/____longjmp_chk.c: New file.
764 * sysdeps/s390/s390-64/____longjmp_chk.c: New file.
765
1de0c161
UD
7662009-05-29 Ulrich Drepper <drepper@redhat.com>
767
768 * sysdeps/x86_64/cacheinfo.c: Compact intel_02_known array. Adjust
769 code accessing it.
770 * sysdeps/unix/sysv/linux/i386/sysconf.c: Likewise.
771
0323b051
AS
7722009-05-22 Andreas Schwab <schwab@linux-m68k.org>
773
38ae768d
AS
774 * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Set errno for ±Inf.
775 * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
776 * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
777 * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c: Set errno for overflow.
778
0323b051
AS
779 * sysdeps/powerpc/powerpc32/____longjmp_chk.S: New file.
780 * sysdeps/powerpc/powerpc64/____longjmp_chk.S: New file.
781 * sysdeps/powerpc/powerpc32/__longjmp-common.S: Use CHECK_SP if
782 defined.
783 * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
784 * sysdeps/powerpc/powerpc64/__longjmp-common.S: Likewise.
785
1e1dc4e8
JJ
7862009-05-22 Jakub Jelinek <jakub@redhat.com>
787
788 * sysdeps/unix/sysv/linux/accept4.c: Include kernel-features.h.
789 (accept4): If __NR_accept4 is not defined, but __NR_socketcall
790 is, either do nothing at all if __ASSUME_ACCEPT4, or
791 call __internal_accept4 and handle EINVAL -> ENOSYS translation.
792 * sysdeps/unix/sysv/linux/internal_accept4.S: New file.
793 * sysdeps/unix/sysv/linux/i386/accept4.S (SOCKOP_accept4): Don't
794 define.
795 * sysdeps/unix/sysv/linux/i386/internal_accept4.S: New file.
796 * sysdeps/unix/sysv/linux/Makefile (sysdep-routines): Add
797 internal_accept4 in socket directory.
798
10495c0b
UD
7992009-05-20 H.J. Lu <hongjiu.lu@intel.com>
800
801 * sysdeps/ia64/configure.in: New file.
802
fa64b7f7
UD
8032009-05-21 H.J. Lu <hongjiu.lu@intel.com>
804
805 [BZ #10162]
806 * sysdeps/ia64/memchr.S: Use speculative load.
807
d2812fc6
L
808 * sysdeps/unix/sysv/linux/ia64/____longjmp_chk.S: New file.
809 * sysdeps/unix/sysv/linux/ia64/__longjmp.S: If CHECK_RSP is defined,
810 use it.
811
e7535de7
L
812 * sysdeps/i386/__longjmp.S: Add .text.
813 * sysdeps/x86_64/__longjmp.S: Likewise.
814
3533b1a6
UD
8152009-05-21 Ulrich Drepper <drepper@redhat.com>
816
817 * sysdeps/unix/sysv/linux/kernel-features.h: Don't define
818 __ASSUME_ACCEPT4 for IA-64.
819
a2292378
JJ
8202009-05-21 Jakub Jelinek <jakub@redhat.com>
821
d14eda93
JJ
822 * sysdeps/unix/sysv/linux/accept4.c (__NR_accept4): Don't define.
823
a2292378
JJ
824 * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_paccept): Remove.
825 (SOCKOP_accept4): Define.
826
d4ab2f2a
UD
8272009-05-20 Ulrich Drepper <drepper@redhat.com>
828
ab09b221
UD
829 Sun approved the change of the license.
830 * sunrpc/auth_des.c: Replace license text.
831 * sunrpc/auth_none.c: Likewise.
832 * sunrpc/auth_unix.c: Likewise.
833 * sunrpc/authdes_prot.c: Likewise.
834 * sunrpc/authuxprot.c: Likewise.
835 * sunrpc/bindrsvprt.c: Likewise.
836 * sunrpc/clnt_gen.c: Likewise.
837 * sunrpc/clnt_perr.c: Likewise.
838 * sunrpc/clnt_raw.c: Likewise.
839 * sunrpc/clnt_simp.c: Likewise.
840 * sunrpc/clnt_tcp.c: Likewise.
841 * sunrpc/clnt_udp.c: Likewise.
842 * sunrpc/clnt_unix.c: Likewise.
843 * sunrpc/des_crypt.c: Likewise.
844 * sunrpc/des_soft.c: Likewise.
845 * sunrpc/get_myaddr.c: Likewise.
846 * sunrpc/getrpcport.c: Likewise.
847 * sunrpc/key_call.c: Likewise.
848 * sunrpc/key_prot.c: Likewise.
849 * sunrpc/openchild.c: Likewise.
850 * sunrpc/pm_getmaps.c: Likewise.
851 * sunrpc/pm_getport.c: Likewise.
852 * sunrpc/pmap_clnt.c: Likewise.
853 * sunrpc/pmap_prot.c: Likewise.
854 * sunrpc/pmap_prot2.c: Likewise.
855 * sunrpc/pmap_rmt.c: Likewise.
856 * sunrpc/rpc/auth.h: Likewise.
857 * sunrpc/rpc/auth_unix.h: Likewise.
858 * sunrpc/rpc/clnt.h: Likewise.
859 * sunrpc/rpc/des_crypt.h: Likewise.
860 * sunrpc/rpc/key_prot.h: Likewise.
861 * sunrpc/rpc/netdb.h: Likewise.
862 * sunrpc/rpc/pmap_clnt.h: Likewise.
863 * sunrpc/rpc/pmap_prot.h: Likewise.
864 * sunrpc/rpc/pmap_rmt.h: Likewise.
865 * sunrpc/rpc/rpc.h: Likewise.
866 * sunrpc/rpc/rpc_des.h: Likewise.
867 * sunrpc/rpc/rpc_msg.h: Likewise.
868 * sunrpc/rpc/svc.h: Likewise.
869 * sunrpc/rpc/svc_auth.h: Likewise.
870 * sunrpc/rpc/types.h: Likewise.
871 * sunrpc/rpc/xdr.h: Likewise.
872 * sunrpc/rpc_clntout.c: Likewise.
873 * sunrpc/rpc_cmsg.c: Likewise.
874 * sunrpc/rpc_common.c: Likewise.
875 * sunrpc/rpc_cout.c: Likewise.
876 * sunrpc/rpc_dtable.c: Likewise.
877 * sunrpc/rpc_hout.c: Likewise.
878 * sunrpc/rpc_main.c: Likewise.
879 * sunrpc/rpc_parse.c: Likewise.
880 * sunrpc/rpc_parse.h: Likewise.
881 * sunrpc/rpc_prot.c: Likewise.
882 * sunrpc/rpc_sample.c: Likewise.
883 * sunrpc/rpc_scan.c: Likewise.
884 * sunrpc/rpc_scan.h: Likewise.
885 * sunrpc/rpc_svcout.c: Likewise.
886 * sunrpc/rpc_tblout.c: Likewise.
887 * sunrpc/rpc_util.c: Likewise.
888 * sunrpc/rpc_util.h: Likewise.
889 * sunrpc/rpcinfo.c: Likewise.
890 * sunrpc/rpcsvc/bootparam_prot.x: Likewise.
891 * sunrpc/rpcsvc/key_prot.x: Likewise.
892 * sunrpc/rpcsvc/klm_prot.x: Likewise.
893 * sunrpc/rpcsvc/mount.x: Likewise.
894 * sunrpc/rpcsvc/nfs_prot.x: Likewise.
895 * sunrpc/rpcsvc/rex.x: Likewise.
896 * sunrpc/rpcsvc/rstat.x: Likewise.
897 * sunrpc/rpcsvc/rusers.x: Likewise.
898 * sunrpc/rpcsvc/sm_inter.x: Likewise.
899 * sunrpc/rpcsvc/spray.x: Likewise.
900 * sunrpc/rpcsvc/yppasswd.x: Likewise.
901 * sunrpc/rtime.c: Likewise.
902 * sunrpc/svc.c: Likewise.
903 * sunrpc/svc_auth.c: Likewise.
904 * sunrpc/svc_authux.c: Likewise.
905 * sunrpc/svc_raw.c: Likewise.
906 * sunrpc/svc_run.c: Likewise.
907 * sunrpc/svc_simple.c: Likewise.
908 * sunrpc/svc_tcp.c: Likewise.
909 * sunrpc/svc_udp.c: Likewise.
910 * sunrpc/svc_unix.c: Likewise.
911 * sunrpc/svcauth_des.c: Likewise.
912 * sunrpc/xcrypt.c: Likewise.
913 * sunrpc/xdr.c: Likewise.
914 * sunrpc/xdr_array.c: Likewise.
915 * sunrpc/xdr_float.c: Likewise.
916 * sunrpc/xdr_mem.c: Likewise.
917 * sunrpc/xdr_rec.c: Likewise.
918 * sunrpc/xdr_ref.c: Likewise.
919 * sunrpc/xdr_sizeof.c: Likewise.
920 * sunrpc/xdr_stdio.c: Likewise.
921
d4ab2f2a
UD
922 * po/da.po: Update from translation team.
923
04733592
KK
9242009-05-18 Kaz Kojima <kkojima@rr.iij4u.or.jp>
925
926 * sysdeps/sh/____longjmp_chk.S: New file.
927 * sysdeps/sh/sh3/__longjmp.S: If CHECK_SP is defined, use it.
928 * sysdeps/sh/sh4/__longjmp.S: Likewise.
a2292378 929
5078fff6
JJ
9302009-05-18 Jakub Jelinek <jakub@redhat.com>
931 Ulrich Drepper <drepper@redhat.com>
932
933 * nscd/nscd_helper.c (MINIMUM_HASHENTRY_SIZE): Define.
934 (__nscd_cache_search): Assume each entry in the
935 hash chain needs one hashentry and half of datahead. Use
936 MINIMUM_HASHENTRY_SIZE instead of sizeof(hashentry).
937
95410b7b
UD
9382009-05-16 Ulrich Drepper <drepper@redhat.com>
939
c457bc13
UD
940 * posix/sys/wait.h: Fix typos. Pretty printing.
941 * stdlib/stdlib.h: Likewise. Correct comments.
8f0d3f49 942
a64039b0
UD
943 [BZ #10159]
944 * stdlib/stdlib.h (__WAIT_INT): Match the definition in <sys/wait.h>.
945
95410b7b
UD
946 * nscd/nscd_helper.c (__nscd_cache_search): Fix exit condition in last
947 patch.
948
831a4049
UD
9492009-05-15 Ulrich Drepper <drepper@redhat.com>
950
831a4049
UD
951 * nscd/nscd_helper.c (__nscd_cache_search): Introduce loop counter.
952 Use it if we absolutely cannot reach any more correct list elements
953 because that many do not fit into the currently mapped database.
954
6dd78596
UD
9552009-05-14 Jakub Jelinek <jakub@redhat.com>
956
cfe1fc10
JJ
957 * nscd/nscd_helper.c: Include stddef.h.
958 (__nscd_cache_search): Add datalen argument. Use atomic_forced_read
959 in a couple of places. Return NULL if trail is not less than
960 datasize, don't consider dataheads with length smaller than
961 offsetof (struct datahead, data) + datalen.
962 * nscd/nscd_client.h (__nscd_cache_search): Adjust prototype.
963 * nscd/nscd_gethst_r.c (nscd_gethst_r): Adjust callers.
964 * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
965 * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
966 * nscd/nscd_getai.c (__nscd_getai): Likewise.
967 * nscd/nscd_initgroups.c (__nscd_getgrouplist): Likewise.
968 * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
969
6dd78596
UD
970 * sysdeps/unix/sysv/linux/i386/fallocate64.c (__fallocate64_l64):
971 Rename ...
972 (fallocate64): ... to this.
973 * sysdeps/unix/sysv/linux/fallocate64.c (__fallocate64_l64):
974 Rename ...
975 (fallocate64): ... to this.
976 * sysdeps/unix/sysv/linux/Versions (libc): Remove fallocate64.
977 * sysdeps/unix/sysv/linux/wordsize-64/Versions (libc): Add
978 fallocate64@@GLIBC_2.10.
979 * sysdeps/unix/sysv/linux/i386/Versions (libc): Add
980 fallocate64@@GLIBC_2.11.
981 * sysdeps/unix/sysv/linux/s390/s390-32/Versions (libc): Likewise.
982 * sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions (libc): Likewise.
983 * sysdeps/unix/sysv/linux/sparc/sparc32/Versions (libc): Likewise.
984 * sysdeps/unix/sysv/linux/sh/Versions (libc): Likewise.
985
6dd78596
UD
986 * nscd/selinux.c (nscd_avc_destroy): Removed.
987 * nscd/selinux.h (nscd_avc_destroy): Likewise.
988 * nscd/nscd.c (termination_handler): Don't call
989 nscd_avc_destroy.
990
cfe1fc10
JJ
9912009-05-12 Jakub Jelinek <jakub@redhat.com>
992
993 * include/atomic.h: Formatting.
994 (catomic_compare_and_exchange_val_acq): Don't define if already
995 defined by bits/atomic.h.
996
774f5a30
UD
9972009-05-15 Ulrich Drepper <drepper@redhat.com>
998
bbc5d74d
UD
999 * math/libm-test.inc (expm1_test): Add test for range error.
1000
b50f8e42
UD
1001 * Versions.def: Add GLIBC_2.11 for libc.
1002 * debug/Makefile (routines): Add longjmp_chk.
1003 Add rules to build and run tst-longjmp_chk.
1004 * debug/Versions: Export __longjmp_chk for GLIBC_2.11.
1005 * debug/longjmp_chk.c: New file.
1006 * debug/tst-longjmp_chk.c: New file.
1007 * include/bits/setjmp2.: New file.
1008 * include/stdio.h: Mark __fortify_fail as internal_function.
1009 * setjmp/Makefile (headers): Add bits/setjmp2.h.
1010 * setjmp/bits/setjmp2.h: New file.
1011 * setjmp/longjmp.c: If __libc_siglongjmp is defined, don't define any
1012 of the aliases.
1013 * setjmp/setjmp.h: Include <bits/setjmp2.h> if _FORTIFY_SOURCE is
1014 defined.
1015 * sysdeps/i386/____longjmp_chk.S: New file.
1016 * sysdeps/x86_64/____longjmp_chk.S: New file.
1017 * sysdeps/i386/__longjmp.S: If CHECK_ESP is defined, use it.
1018 * sysdeps/x86_64/__longjmp.S: Likewise.
1019
dc50b613
UD
1020 * version.h: Bump for 2.11 development.
1021
774f5a30
UD
1022 * elf/check-execstack.c: New file.
1023 * elf/Makefile: Add rules to build and run check-execstack.
1024
deb84c43
UD
10252009-05-10 Ulrich Drepper <drepper@redhat.com>
1026
1027 * version.h (VERSION): Bump to 2.10.1.
1028
1029 * nss/getXXbyYY_r.c: If NO_COMPAT_NEEDED is defined don't define any
1030 compatibility functions.
1031 * nss/getXXent_r.c: Likewise.
1032 * gshadow/getsgent_r.c: Define NO_COMPAT_NEEDED.
1033 * gshadow/getsgnam_r.c: Likewise.
1034 * gshadow/Version: Remove duplicate entries.
1035
1036 * sysdeps/x86_64/cacheinfo.c (intel_02_cache_info): Add missing entries
1037 for recent processor.
1038 * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_cache_info):
1039 Likewise.
1040
deb318c2
UD
10412009-05-09 Ulrich Drepper <drepper@redhat.com>
1042
1043 * version.h (VERSION): Bump for 2.10 release.
1044 * include/features.h (__GLIBC_MINOR__): Bump to 10.
1045
eb29449a
UD
1046 * Makeconfig: Undo last change. Add asflags-cpu to ASFLAGS in the
1047 same place we add ASFLAGS-config.
1048
cf4f16cc
UD
10492009-05-05 Aurelien Jarno <aurelien@aurel32.net>
1050
1051 [BZ #10128]
1052 * resolv/res_query.c (__libc_res_nquery): If one query returns NOTIMP
1053 or FORMERR and the other NOERROR, don't raise an error.
1054
23b6b466
UD
10552009-05-06 Ryan S. Arnold <rsa@us.ibm.com>
1056
1057 [BZ #10118]
1058 * Makeconfig (+asflags): New variable based upon ASFLAG or
1059 asflags-cpu.
1060 (ASFLAGS): Add override to set ASFLAGS to +asflags.
1061 * config.make.in (asflags-cpu): Add variable based upon
1062 @libc_cv_cc_submachine@ to propagate -mcpu=CPU from --with-cpu=CPU to
1063 the assembler.
1064 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/setcontext.S:
1065 Remove unneeded file now that the assembler emits _ARCH_PWR6 and
1066 recognizes power6 instruction set due to passing -mcpu=power6 from
1067 --with-cpu=power6 when compiling .S files.
1068 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/swapcontext.S:
1069 Likewise.
1070 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/setcontext.S:
1071 Likewise.
1072 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/swapcontext.S:
1073 Likewise.
1074
15417de3
UD
10752009-05-09 Jakub Jelinek <jakub@redhat.com>
1076
1077 * string/stratcliff.c (do_test): Test for zero length
1078 STRNLEN, MEMCHR, STRNCPY, STPNCPY, MEMCPY, MEMPCPY and memccpy
1079 at the end of the page.
1080
b5f7c4ca
UD
10812009-05-08 Ulrich Drepper <drepper@redhat.com>
1082
4300afc1
UD
1083 * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_AT_RANDOM.
1084
2221e33e
UD
1085 * sysdeps/x86_64/memchr.S: Handle invalid buffer pointers when
1086 count is zero.
1087
b5f7c4ca
UD
1088 * po/da.po: Update from translation team.
1089
1765abb3
UD
10902009-05-05 Jakub Jelinek <jakub@redhat.com>
1091
1092 * io/sys/stat.h (fstatat64): Guard prototype with __USE_LARGEFILE64,
1093 guard __extern_inline wrapper with __USE_ATFILE instead of __USE_GNU.
2221e33e 1094
b5f7c4ca
UD
10952009-05-05 Ulrich Drepper <drepper@redhat.com>
1096
1097 * sysdeps/unix/sysv/linux/sys/personality.h: Add ADDR_COMPAT_LAYOUT
1098 and READ_IMPLIES_EXEC.
1099
11002009-05-04 Ulrich Drepper <drepper@redhat.com>
1101
1102 * po/da.po: Update from translation team.
1103
667712b8
JJ
11042009-04-29 Jakub Jelinek <jakub@redhat.com>
1105
1106 * sysdeps/unix/sysv/linux/ifaddrs.c: Revert unintended 2008-08-12
1107 comment change.
1108
6284c9f6
UD
11092009-04-27 Jakub Jelinek <jakub@redhat.com>
1110
1111 * locale/programs/locarchive.c (create_archive): Add MAP_PRIVATE
1112 to MAP_ANON in PROT_NONE mmap64 call.
1113 (open_archive): Likewise.
1114 (file_data_available_p): Use mmap64 instead of mremap.
1115 (enlarge_archive): Likewise. Update head if ah->addr changed.
1116 Attempt to reserve address space after mmap64 region.
1117
4ec77f72
UD
11182009-04-26 Ulrich Drepper <drepper@redhat.com>
1119
f0e3c47f
UD
1120 * sysdeps/ieee754/dbl-64/s_expm1.c: Set errno for overflow.
1121 * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
1122 * sysdeps/x86_64/fpu/s_expm1l.S: Likewise.
1123
49768bb9
UD
1124 * sysdeps/ieee754/k_standard.c (__kernel_standard): Pole errors in
1125 atanh should set ERANGE.
1126
e49dc847
UD
1127 [BZ #10087]
1128 * elf/dl-runtime.c (_dl_fixup): Use DL_FIXUP_VALUE_ADDR to access
1129 result of lookup to make call to implement STT_GNU_IFUNC.
1130 (_dl_profile_fixup): Likewise.
1131 Patch by H.J. Lu <hjl.tools@gmail.com>.
1132
1ac03a1e
UD
1133 * nscd/connections.c (send_ro_fd): Define temporary variable to avoid
1134 warning.
1135
6cc8844f
UD
1136 * sysdeps/unix/sysv/linux/dl-osinfo.h (dl_fatal): Remove inline
1137 from definition.
1138
1139 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Don't define
1140 label if it is not used.
1141
1142 * elf/dl-profile.c (_dl_start_profile): Define real-type variant
1143 of gmon_hist_hdr and gmon_hdr structures and use them.
1ac03a1e 1144 * elf/sprof.c: Likewise.
6cc8844f
UD
1145
1146 * elf/dl-load.c (open_verify): Add temporary variable to avoid
1147 warning.
1148
1149 * nscd/nscd_helper.c (get_mapping): Avoid casts to avoid warnings.
1150
1151 * sunrpc/clnt_raw.c (clntraw_private_s): Use union in definition
1152 to avoid cast.
1153
1154 * inet/rexec.c (rexec_af): Make sa2 a union to avoid warnings.
1155 * inet/rcmd.c (rcmd_af): Make from a union of the various needed types
1156 to avoid warnings.
1157 (iruserok_af): Use ss_family instead of casts.
1158
1159 * gmon/gmon.c (write_hist): Define real-type variant of
1160 gmon_hist_hdr structure and use it.
1161 (write_gmon): Likewise for gmon_hdr.
1162
1163 * sysdeps/unix/sysv/linux/readv.c: Avoid declaration of replacement
1164 function if we are not going to define it.
1165 * sysdeps/unix/sysv/linux/writev.c: Likewise.
1166
218555e9 1167 * inet/inet6_option.c (option_alloc): Add temporary variable to
6cc8844f
UD
1168 avoid warning.
1169
1170 * libio/strfile.h (struct _IO_streambuf): Use correct type and
1171 name of VTable element.
1172 * libio/iovsprintf.c: Avoid casts to avoid warnings.
1173 * libio/iovsscanf.c: Likewise.
1174 * libio/vasprintf.c: Likewise.
1175 * libio/vsnprintf.c: Likewise.
1176 * stdio-common/isoc99_vsscanf.c: Likewise.
1177 * stdlib/strfmon_l.c: Likewise.
1178 * debug/vasprintf_chk.c: Likewise.
1179 * debug/vsnprintf_chk.c: Likewise.
1180 * debug/vsprintf_chk.c: Likewise.
1181
4ec77f72
UD
1182 * nss/nsswitch.c (__nss_lookup_function): En/Decrypt cached
1183 function pointers.
1184
82a1a4da
UD
11852009-04-26 Jakub Jelinek <jakub@redhat.com>
1186
1187 * sysdeps/ieee754/dbl-64/s_tan.c (tan): Fix -Wsequence-point warnings.
1188
db6edfb3
UD
11892009-04-25 Ulrich Drepper <drepper@redhat.com>
1190
27be9b92
UD
1191 * posix/bits/posix1_lim.h: Cleanup namespace a bit.
1192
337c2708
UD
1193 * sysdeps/i386/fpu/s_tan.S: Set errno for ±Inf.
1194 * sysdeps/i386/fpu/s_tanf.S: Likewise.
1195 * sysdeps/i386/fpu/s_tanl.S: Likewise.
1196 * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
1197 * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
1198 * sysdeps/x86_64/fpu/s_tanl.S: Likewise.
1199 * math/libm-test.inc: Add tests for errno after tan calls with
1200 ±Inf.
1201
002a604f
UD
1202 * sysdeps/ieee754/k_standard.c (__kernel_standard): Use correct
1203 errno value vor pow(+-0,neg).
1204 * math/libm-test.inc (pow_test): Add tests for errno value for
1205 pole errors.
1206
7095366d
UD
1207 * math/w_fmod.c: Also handle x=±Inf as error.
1208 * math/w_fmodf.c: Likewise.
1209 * math/w_fmodl.c: Likewise.
1210 * math/libm-test.inc (fmod_test): Add tests for errno after calls for
1211 x=±Inf or y=0.
1212
0c59a196
UD
1213 * sysdeps/i386/fpu/s_cos.S: Set errno for ±Inf.
1214 * sysdeps/i386/fpu/s_cosf.S: Likewise.
1215 * sysdeps/i386/fpu/s_cosl.S: Likewise.
1216 * sysdeps/i386/fpu/s_sin.S: Likewise.
1217 * sysdeps/i386/fpu/s_sinf.S: Likewise.
1218 * sysdeps/i386/fpu/s_sinl.S: Likewise.
1219 * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
1220 * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
1221 * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
1222 * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
1223 * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
1224 * sysdeps/x86_64/fpu/s_cosl.S: Likewise.
1225 * sysdeps/x86_64/fpu/s_sinl.S: Likewise.
1226 * math/libm-test.inc: Add tests for errno after sin/cos calls with
1227 ±Inf.
1228
4bbf8999
UD
1229 * stdlib/strtod_l.c (round_and_return): We have to set errno to
1230 ERANGE for underflows.
1231 * stdlib/tst-strtod.c (tests): Two tests should set errno to ERANGE.
1232
af9f1c48
UD
1233 * stdio-common/stdio_lim.h.in (L_cuserid): Not part of POSIX since
1234 the 2001 revision.
1235
13327042
UD
1236 * libio/tst-widetext.input: Remove surrogates.
1237
c163ee23
UD
1238 * include/features.h: _POSIX_C_SOURCE >= 200112L implies C99.
1239
e971e76d 1240 * sysdeps/ieee754/k_standard.c (__kernel_standard): Pole errors
81068e35 1241 for lgamma should set errno to ERANGE, not EDOM.
e971e76d
UD
1242 * math/libm-test.inc (lgamma_test): Check errno for pole errors.
1243
c2d5bd5b
UD
12442009-04-24 Ulrich Drepper <drepper@redhat.com>
1245
9c32c895
UD
1246 [BZ #10093]
1247 * iconv/gconv_simple.c (BODY for UTF-8 to INTERNAL): Don't accept
1248 UTF-16 surrogates.
1249
c9edc889
UD
1250 * locale/programs/locarchive.c (enlarge_archive): Conserve address
1251 space when temporarily mapping the whole content of the old file.
1252
c2d5bd5b
UD
1253 [BZ #10100]
1254 * misc/hsearch_r.c (hsearch_r): Add back ensurance that hval is
1255 not zero.
1256
f397be12
UD
12572009-04-24 Jakub Jelinek <jakub@redhat.com>
1258
1259 * iconvdata/sjis.c (BODY): Don't advance inptr before
1260 STANDARD_FROM_LOOP_ERR_HANDLER (2) for 2 byte invalid input.
1261 Use STANDARD_FROM_LOOP_ERR_HANDLER with 2 instead of 1 for
1262 two byte chars.
1263
705341a9
UD
12642009-04-24 Ulrich Drepper <drepper@redhat.com>
1265
1266 * locale/locarchive.h (struct locarhandle): Rename len field to
1267 mmaped and add new reserved field.
1268 * locale/programs/locarchive.c (RESERVE_MMAP_SIZE): Define.
1269 (create_archive): Reserve address space and then map file into it.
1270 (open_archive): Likewise.
1271 (file_data_available_p): New function.
1272 (compare_from_file): New function.
1273 (close_archive): Adjust to member name changes.
1274 (add_locale): Before comparing locale data, check it is mapped.
1275 Otherwise fall back to reading from the file.
1276
57d2da1c
UD
12772009-04-23 H.J. Lu <hongjiu.lu@intel.com>
1278
1279 * stdio-common/psiginfo.c: Include <errno.h>.
1280
3d855f75
UD
12812009-04-23 Ulrich Drepper <drepper@redhat.com>
1282
fe12c798
UD
1283 [BZ #9920]
1284 * stdlib/random_r.c (__srandom_r): Change type of word to int32_t
1285 to get consistency between 32 and 64 bit architectures.
1286
3d855f75
UD
1287 [BZ #10052]
1288 * sysdeps/unix/make-syscalls.sh: Add rule to create target
1289 directory for dummy syscall rules.
1290 Patch by Chris Steinbroner <hesh@pobox.com>.
1291
95bf537f
UD
12922009-04-23 Aurelien Jarno <aurelien@aurel32.net>
1293
1294 [BZ #10092]
1295 * sysdeps/unix/sysv/linux/sys/mount.h: Define MNT_DETACH and
1296 MNT_EXPIRE.
1297
7f8a28ef
UD
12982009-04-23 Ulrich Drepper <drepper@redhat.com>
1299
1300 * sysdeps/unix/sysv/linux/preadv.c: The kernel API changed. Adjust.
1301 * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
1302
13032009-04-23 Jakub Jelinek <jakub@redhat.com>
1304
1305 * sysdeps/posix/pwritev.c (PWRITEV): Fix up comment. Copy
1306 data from vector to temporary buffer and call PWRITEV after it
1307 instead of vice versa.
1308 * sysdeps/posix/preadv.c: Fix up comment.
1309 * misc/preadv.c: Likewise.
1310 * misc/preadv64.c: Likewise.
1311 * misc/pwritev.c: Likewise.
1312 * misc/pwritev64.c: Likewise.
1313 * misc/sys/uio.h (preadv, pwritev, preadv64, pwritev64): Likewise.
1314
829fea46
UD
13152009-04-23 Ulrich Drepper <drepper@redhat.com>
1316
c7e74e59
UD
1317 * shadow/sgetspent_r.c (__sgetspent_r): Recognize too small buffers.
1318
3b055b47
UD
1319 * shadow/Makefile (tests): Add tst-shadow.
1320 * shadow/tst-shadow.c: New file.
1321
829fea46
UD
1322 [BZ #9955]
1323 * gshadow/Makefile: New file.
1324 * gshadow/Versions: New file.
1325 * gshadow/fgetsgent.c: New file.
1326 * gshadow/fgetsgent_r.c: New file.
1327 * gshadow/getsgent.c: New file.
1328 * gshadow/getsgent_r.c: New file.
1329 * gshadow/getsgnam.c: New file.
1330 * gshadow/getsgnam_r.c: New file.
1331 * gshadow/gshadow.h: New file.
1332 * gshadow/putsgent.c: New file.
1333 * gshadow/sgetsgent.c: New file.
1334 * gshadow/sgetsgent_r.c: New file.
1335 * gshadow/tst-gshadow.c: New file.
1336 * include/gshadow.h: New file.
1337 * Makeconfig (all-subdirs): Add gshadow.
1338 * Makefile (installed-headers): Add gshadow/gshadow.h.
1339 * nss/Makefile (databases): Add sgrp.
1340 * nss/Versions: Add gshadow functions as private exports.
1341 * nss/nsswitch.conf: Add gshadow entry.
1342 * nss/sgrp-lookup.c: New file.
1343 * nss/nss_files/files-parse.c: Add STRING_LIST macro. Rewrite
1344 parse_list to handle STRING_LIST and TRAILING_LIST_PARSER.
1345 * nss/nss_files/files-sgrp.c: New file.
1346 * sysdeps/generic/paths.h: Add _PATH_GSHADOW.
1347 * sysdeps/unix/sysv/linux/paths.h: Likewise.
1348
debafa10
UD
13492009-04-22 Ulrich Drepper <drepper@redhat.com>
1350
1351 * stdio-common/printf.h: Add missing const to register_printf_modifier.
1352 * stdio-common/reg-modifier.c: Likewise.
1353
13542009-04-22 Andrew Stubbs <ams@codesourcery.com>
1355
1356 * sysdeps/sh/sh4/setjmp.S (__sigsetjmp): Adjust JB_SIZE when there
1357 is no FPU.
1358
0e04c0b5
UD
13592009-04-20 Ulrich Drepper <drepper@redhat.com>
1360
d43f10e7 1361 [BZ #10086]
1c376f5b
UD
1362 * sysdeps/unix/sysv/linux/sys/timex.h: Add definitions from kernel
1363 headers up to 2.6.30.
1364
0e04c0b5
UD
1365 * po/ca.po: Update from translation team.
1366
a245eafd
UD
13672009-04-19 Ulrich Drepper <drepper@redhat.com>
1368
1369 [BZ #10069]
1370 * elf/dl-open.c (dl_open_worker): We cannot guarantee that we can load
1371 an object that uses static TLS if the TLS modid is higher than the
1372 reserve we always allocate. At least for multi-threaded code.
1373
0588a9cb
UD
13742009-04-18 Ulrich Drepper <drepper@redhat.com>
1375
153aa31b
UD
1376 * stdlib/strfmon_l.c (__vstrfmon_l): Don't wrap when computing width.
1377 Numerically stable check for valid width.
1378
59a7162b
UD
1379 * locale/programs/locarchive.c (open_archive): Map the entire file
1380 and not just the administrative data.
1381 (add_locale): When we find a hash sum match compare the content
1382 to be sure.
1383
0588a9cb
UD
1384 * malloc/malloc.c (malloc_info): Output address space information.
1385
17a5b24e
UD
13862009-04-17 Ulrich Drepper <drepper@redhat.com>
1387
da2d2fb6
UD
1388 * malloc/malloc.c (malloc_info): Also output system memory information.
1389
11cad88c
UD
1390 * sysdeps/unix/sysv/linux/kernel-features.h: All supported
1391 architectures have preadv/pwritev in 2.6.30.
1392
571ac26f
UD
1393 * sysdeps/posix/preadv.c: Reading of zero bytes is no error.
1394 * sysdeps/posix/readv.c: Likewise.
1395 Reported by Markus Armbruster <armbru@redhat.com>.
1396
17a5b24e
UD
1397 * malloc/hooks.c (top_check): Force hook value into register.
1398
57ec6442
RM
13992009-04-16 Samuel Thibault <samuel.thibault@ens-lyon.org>
1400
1401 * elf/rtld.c (dl_main): Really call _dl_sysdep_start_cleanup after all
1402 calls to _dl_relocate_object.
1403
df77455c
UD
14042009-04-16 Ulrich Drepper <drepper@redhat.com>
1405
1406 [BZ #9957]
1407 * malloc/malloc.c (force_reg): Define.
1408 (sYSMALLOc): Load hook variable into variable
1409 before test and force into register.
1410 (sYSTRIm): Likewise.
1411 (public_mALLOc): Force hook value into register.
1412 (public_fREe): Likewise.
1413 (public_rEALLOc): Likewise.
1414 (public_mEMALIGn): Likewise.
1415 (public_vALLOc): Likewise.
1416 (public_pVALLOc): Likewise.
1417 (public_cALLOc): Likewise.
1418 (__posix_memalign): Likewise.
1419 * malloc/arena.c (ptmalloc_init): Load hook variable into variable
1420 before test and force into register.
1421 * malloc/hooks.c (top_check): Likewise.
3b055b47 1422 (public_sET_STATe): Pretty printing.
df77455c
UD
1423
1424 * resolv/res_send.c (send_dg): Don't just ignore the result we got
1425 in case we only receive one reply in single-request mode.
1426
733ca93a
JJ
14272009-04-16 Jakub Jelinek <jakub@redhat.com>
1428
1429 * elf/dl-open.c (_dl_open): Bump GL(dl_nns) to 1 if no libraries
1430 are dlopened in statically linked program even for __LM_ID_CALLER.
1431
d0e81f10
UD
14322009-04-16 Ulrich Drepper <drepper@redhat.com>
1433
1434 * resolv/res_send.c (send_dg): Don't switch into single-request
1435 mode if we already are in it.
1436
6a3d03ff
UD
14372009-04-15 Ulrich Drepper <drepper@redhat.com>
1438
1439 * sysdeps/unix/sysv/linux/getsysstats.c (next_line): Make sure there
1440 are always at least 4 bytes in the returned line.
1441
14422009-04-15 Jakub Jelinek <jakub@redhat.com>
1443
1444 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Check
1445 __libc_use_alloca (8192), if the stack is too small use 512 bytes
1446 instead of 8K. Stop searching in /proc/stat after hitting first
1447 line not starting with cpu.
1448 (next_line): Truncate too long
1449 lines at buffer size * 3/4 instead of pretending there were line
1450 breaks inside of large lines.
1451
ae650a41
UD
14522009-04-14 Ulrich Drepper <drepper@redhat.com>
1453
1454 * sysdeps/x86_64/mp_clz_tab.c: New file.
1455
353f2107
UD
14562009-03-17 Ryan S. Arnold <rsa@us.ibm.com>
1457 Ulrich Drepper <drepper@redhat.com>
1458
1459 * sysdeps/unix/sysv/linux/fallocate.c: Handle old kernel headers.
1460 * sysdeps/unix/sysv/linux/fallocate64.c: Likewise.
e775ec11 1461 * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c: Likewise.
353f2107 1462
fc0c5705
UD
14632009-03-25 Andrew Stubbs <ams@codesourcery.com>
1464
1465 * sysdeps/sh/libc-tls.c: New file.
1466
1467 * sysdeps/sh/bits/setjmp.h (__jmp_buf): Give name to structure type.
1468
237a8867
RM
14692009-04-14 Roland McGrath <roland@redhat.com>
1470
1471 * elf/elf.h: Add various missing ARM constants, to match binutils.
1472
893a5fd4
UD
14732009-04-14 Ulrich Drepper <drepper@redhat.com>
1474
1475 Optimizations from GMP.
1476 * sysdeps/x86_64/add_n.S: New file.
1477 * sysdeps/x86_64/addmul_1.S: New file.
1478 * sysdeps/x86_64/lshift.S: New file.
1479 * sysdeps/x86_64/mul_1.S: New file.
1480 * sysdeps/x86_64/rshift.S: New file.
1481 * sysdeps/x86_64/sub_n.S: New file.
1482 * sysdeps/x86_64/submul_1.S: New file.
1483
e42e88ab
JJ
14842009-04-14 Jakub Jelinek <jakub@redhat.com>
1485
1486 * sysdeps/powerpc/powerpc32/elf/start.S: Ensure .data is non-empty.
1487 * sysdeps/powerpc/powerpc64/elf/start.S: Likewise.
1488 * sysdeps/sparc/sparc32/elf/start.S: Likewise.
1489 * sysdeps/sparc/sparc64/elf/start.S: Likewise.
1490
b8a3bd82
UD
14912009-04-14 Ulrich Drepper <drepper@redhat.com>
1492
1493 * sysdeps/unix/sysv/linux/kernel-features.h: SH also has
1494 preadv/pwritev.
1495
84aa52d7
UD
14962009-04-13 Ulrich Drepper <drepper@redhat.com>
1497
1498 * sysdeps/x86-64/strrchr.S: New file.
1499
9d26efa9
UD
15002009-04-10 Ulrich Drepper <drepper@redhat.com>
1501
1502 * stdio-common/printf.h (struct printf_info): Add user element.
1503 New types printf_arginfo_size_function, printf_va_arg_function.
1504 Declare register_printf_specifier, register_printf_modifier,
1505 register_printf_type.
1506 * stdio-common/printf-parse.h (struct printf_spec): Add size element.
1507 (union printf_arg): Add pa_user element.
1508 Adjust __printf_arginfo_table type.
1509 Add __printf_va_arg_table, __printf_modifier_table,
1510 __handle_registered_modifier_mb, and __handle_registered_modifier_wc
1511 declarations.
1512 * stdio-common/printf-parsemb.c: Recognize registered modifiers.
1513 If registered arginfo call failed try normal specifier.
1514 * stdio-common/printf-prs.c: Pass additional parameter to arginfo
1515 function.
1516 * stdio-common/Makefile (routines): Add reg-modifier and reg-type.
1517 * stdio-common/Versions: Export register_printf_modifier,
1518 register_printf_type, and register_printf_specifier for GLIBC_2.10.
1519 * stdio-common/reg-modifier.c: New file.
1520 * stdio-common/reg-type.c: New file.
1521 * stdio-common/reg-printf.c (__register_printf_specifier): New
1522 function. Mostly the old __register_printf_function function but
1523 uses locking and type of third parameter changed.
1524 (__register_printf_function): Implement using
1525 __register_printf_specifier.
1526 * stdio-common/vfprintf.c (vfprintf): Collect argument sizes in
1527 calls to arginfo functions. Allocate enough memory for user-defined
1528 types. Call new va_arg functions to get user-defined types.
1529 Try installed handlers even for existing format specifiers first.
1530
28b2771a
UD
15312009-04-09 Ulrich Drepper <drepper@redhat.com>
1532
f140a0d5
UD
1533 * sysdeps/x86_64/rawmemchr.S: New file.
1534
e9b4d069 1535 * stdio-common/vfprintf.c (vfprintf): Slightly more compact code.
1d498daa 1536 Simplified code and possible copy problem fixed.
e9b4d069 1537
f9fe75e9 1538 * sysdeps/unix/sysv/linux/preadv.c: Avoid prototype for static
24030b0f 1539 function if it is not defined. Add some necessary casts.
f9fe75e9
UD
1540 * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
1541
28b2771a
UD
1542 * sysdeps/unix/sysv/linux/kernel-features.h: SPARC and IA64 also
1543 have preadv/pwritev in 2.6.30.
1544
4c8b8cc3
UD
15452009-04-08 Ulrich Drepper <drepper@redhat.com>
1546
bb066545
UD
1547 * malloc/malloc.c (malloc_info): New function.
1548 * malloc/malloc.h: Declare it.
1549 * malloc/Versions: Export malloc_info for GLIBC_2.10.
1550
0f9c8b48
UD
1551 * sysdeps/unix/sysv/linux/preadv64.c (PREAD): Use __libc_pread64
1552 to avoid PLT slot.
1553
4c8b8cc3
UD
1554 * malloc/malloc.c (_int_realloc): Add parameter with old block
1555 size. Remove duplicated test. Don't handle mmap'ed blocks here.
1556 Adjust all callers.
1557 * malloc/hooks.c (realloc_check): Adjust _int_realloc call.
1558
ddba0f17
UD
15592009-04-07 Ulrich Drepper <drepper@redhat.com>
1560
cd57745b
UD
1561 * sysdeps/x86_64/strchrnul.S: New file.
1562
3db6c9a8 1563 * crypt/Makefile (LDLIBS-crypt.so): Use this variable instead of
cd57745b 1564 depending libcrypt on -lfreebl3.
3db6c9a8 1565
1a2ec17b
UD
1566 * sysdeps/unix/sysv/linux/kernel-features.h: Power also has
1567 preadv/pwritev in 2.6.30.
1568
bb066545 1569 * resolv/nss_dns/dns-host.c (getanswer_r): Use strcasecmp
c6807d38 1570 instead of __strcasecmp.
c6807d38 1571
ddba0f17 1572 * string/stratcliff.c (do_test): Add memchr tests..
481f9eca 1573 * wcsmbs/wcsatcliff.c (MEMCHR): Define.
ddba0f17
UD
1574 * sysdeps/x86_64/memchr.S: Fix handling of end of buffer after
1575 first read quad word.
1576
ae061910
UD
15772009-04-06 Ulrich Drepper <drepper@redhat.com>
1578
4bcb2658
UD
1579 * string/strverscmp.c (__strverscmp): Fix last cleanups.
1580 * string/tst-svc.input: Add new test case.
1581 * string/tst-svc.expect: Adjust.
1582 * string/Makefile: Don't ignore tst-svc error.
1583
322e23db
UD
1584 * sysdeps/x86_64/memchr.S: New file.
1585
ae061910
UD
1586 * resolv/resolv.h (RES_SNGLKUP): Define.
1587 * resolv/res_init.c (res_setoptions): Recognize single-request option.
1588 * resolv/res_send.c (send_dg): If we sent two requests at once and
1589 only get one reply before timeout switch to mode where we send the
1590 second request only after the first answer has been received.
1591
a152f366
UD
15922009-04-05 Ulrich Drepper <drepper@redhat.com>
1593
1594 * sysdeps/x86_64/strlen.S: Optimize by using SSE2 instructions.
1df6f9d8 1595 * sysdeps/x86_64/strchr.S: Likewise.
a152f366 1596
2dbe6afe
UD
15972009-04-03 Ulrich Drepper <drepper@redhat.com>
1598
c0bac8b0
UD
1599 * configure.in: We need to test for the compiler earlier.
1600
e109c612
UD
1601 * misc/Makefile (routines): Add preadv, preadv64, pwritev, pwritev64.
1602 * misc/Versions: Export preadv, preadv64, pwritev, pwritev64 for
1603 GLIBC_2.10.
1604 * misc/sys/uio.h: Declare preadv, preadv64, pwritev, pwritev64.
1605 * sysdeps/unix/sysv/linux/kernel-features.h: Add entries for preadv
1606 and pwritev.
1607 * misc/preadv.c: New file.
1608 * misc/preadv64.c: New file.
1609 * misc/pwritev.c: New file.
1610 * misc/pwritev64.c: New file.
1611 * sysdeps/posx/preadv.c: New file.
1612 * sysdeps/posx/preadv64.c: New file.
1613 * sysdeps/posx/pwritev.c: New file.
1614 * sysdeps/posx/pwritev64.c: New file.
1615 * sysdeps/unix/sysv/linux/preadv.c: New file.
1616 * sysdeps/unix/sysv/linux/preadv64.c: New file.
1617 * sysdeps/unix/sysv/linux/pwritev.c: New file.
1618 * sysdeps/unix/sysv/linux/pwritev64.c: New file.
1619 * sysdeps/unix/sysv/linux/wordsize-64/preadv64.c: New file.
1620 * sysdeps/unix/sysv/linux/wordsize-64/pwritev64.c: New file.
1621
7166c77a
UD
1622 * sysdeps/unix/sysv/linux/readv.c (__libc_readv): Fix calling of
1623 compatibility code.
1624 * sysdeps/unix/sysv/linux/writev.c (__libc_writev): Likewise.
1625
2dbe6afe
UD
1626 * sysdeps/unix/sysv/linux/kernel-features.h: Define
1627 __ASSUME_COMPLETE_READV_WRITEV.
1628 * sysdeps/unix/sysv/linux/readv.c: No need for userlevel fallback
1629 with modern kernels.
1630 * sysdeps/unix/sysv/linux/writev.c: Likewise.
1631
1632 * sysdeps/posix/readv.c: Since read is a cancellation point we have
1633 to free a possible malloced buffer in case of cancellation.
1634 * sysdeps/posix/writev.c: Likewise for write.
1635
ff886b82
UD
16362009-04-02 Ulrich Drepper <drepper@redhat.com>
1637
a065c007
UD
1638 * sysdeps/unix/sysv/linux/bits/socket.h: Add missing protocol numbers.
1639
ff886b82
UD
1640 * configure.in: Recognize --enable-nss-crypt.
1641 * config.make.in: Add nss-crypt entry.
1642 * crypt/Makefile: If nss-crypt==yes, don't build md5.c, sha256.c,
1643 sha512.c. Don't run md5test, sha256test, sha512test. Pass -DUSE_NSS
1644 and include path for NSS directory to compiler for md5-crypt,
1645 sha256-crypt, sha512-crypt. Link libcrypt.so with -lfreebl3.
1646 * crypt/md5-crypt.c: If USE_NSS is defined, don't use local hash
1647 function implementation, use NSS. Introduce wrappers around the
1648 hash function calls. Little code size optimization.
1649 * crypt/sha256-crypt.c: Likewise.
1650 * crypt/sha512-crypt.c: Likewise.
1651 * scripts/check-local-headers.sh: Ignore nss3 directory.
1652
1653 * configure.in: Rename pic_default to libc_cv_pic_default.
1654 * config.make.in: Likewise.
1655
1800de36
RM
16562009-04-01 Roland McGrath <roland@redhat.com>
1657
1658 * elf/elf.h (R_SPARC_GLOB_JMP): New macro.
1659 (R_SPARC_GOTDATA_HIX22, R_SPARC_GOTDATA_LOX10): New macros.
1660 (R_SPARC_GOTDATA_OP_HIX22, R_SPARC_GOTDATA_OP_LOX10): Likewise.
1661 (R_SPARC_GOTDATA_OP, R_SPARC_H34): Likewise.
1662 (R_SPARC_SIZE32, R_SPARC_SIZE64): Likewise.
1663 (R_SPARC_GNU_VTINHERIT, R_SPARC_GNU_VTENTRY, R_SPARC_REV32): Likewise.
1664 (R_SPARC_NUM): Update.
1665 From Dave Miller <davem@davemloft.net>.
1666
7166c77a 16672009-04-01 Ulrich Drepper <drepper@redhat.com>
3ce976cd
UD
1668
1669 * sysdeps/unix/sysv/linux/sys/eventfd.h (EFD_SEMAPHORE): Define.
1670
20739e54
UD
16712009-03-31 Ulrich Drepper <drepper@redhat.com>
1672
22c83193
UD
1673 * elf/dl-open.c: Keep track of used name spaces and only iterate over
1674 those which are used.
1675 * elf/dl-addr.c: Likewise.
1676 * elf/dl-caller.c: Likewise.
1677 * elf/dl-fini.c: Likewise.
1678 * elf/dl-iteratephdr.c: Likewise.
1679 * elf/dl-libc.c: Likewise.
1680 * elf/dl-load.c: Likewise.
1681 * elf/dl-support.c: Likewise.
1682 * elf/dl-sym.c: Likewise.
1683 * elf/rtld.c: Likewise.
1684 * sysdeps/generic/ldsodefs.h: Likewise.
1685
20739e54
UD
1686 * elf/dl-load.c: Remove support for systems without MAP_ANON.
1687 * elf/dl-minimal.c: Likewise.
1688 * elf/dl-misc.c: Likewise.
1689 * elf/rtld.c: Likewise.
1690 * sysdeps/generic/ldsodefs.h: Likewise.
1691
db486995
UD
16922009-03-30 Ulrich Drepper <drepper@redhat.com>
1693
cb14424e
UD
1694 * elf/do-lookup.h (do_lookup_x): Minor optimization and cleanup.
1695 Avoid reuse of complex expression.
1696
db486995
UD
1697 * po/fr.po: Update from translation team.
1698
ae8d7b44
UD
16992009-03-16 Ulrich Drepper <drepper@redhat.com>
1700
1701 * include/dirent.h: Yet more changes to match sort function type
1702 change.
1703 * sysdeps/unix/sysv/linux/i386/alphasort64.c: Likewise.
1704 * sysdeps/unix/sysv/linux/i386/olddirent.h: Likewise.
1705 * sysdeps/unix/sysv/linux/i386/versionsort64.c: Likewise.
1706
8efb2f1c
UD
17072009-03-16 Thomas Schwinge <tschwinge@gnu.org>
1708
1709 * dirent/scandir64.c (scandir64): Adjust declaration to type change.
1710
d9822dbe
UD
17112009-03-16 Ulrich Drepper <drepper@redhat.com>
1712
1713 * nscd/connections.c (restart): Try to preserve the process name
1714 by reading the /proc/self/exe symlink and using the return name.
1715 Patch by Jeff Bastian <jbastian@redhat.com>.
1716
71a5bd3e
UD
17172009-03-15 Ulrich Drepper <drepper@redhat.com>
1718
2ca285b0
UD
1719 [BZ #9733]
1720 * elf/dl-load.c (_dl_map_object_from_fd): Only call audit hooks
1721 if we are not loading a new audit library.
1722 * elf/dl-reloc (_dl_relocate_object): Third parameter is now a bitmask.
1723 Only use profiling trampoline for auditing if we are not relocating
1724 an audit library.
1725 * elf/dl-open.c (dl_open_worker): Adjust _dl_relocate_object call.
1726 * elf/rtld.c: Likewise.
1727 * sysdeps/generic/ldsodefs.h: Adjust _dl_relocate_object prototype.
1728
7e342603
UD
1729 * elf/rtld.c (dl_main): Extend help message for --audit option.
1730
eee6b143
UD
1731 [BZ #9759]
1732 * dirent/dirent.h: Adjust prototypes of scandir, scandir64, alphasort,
1733 alphasort64, versionsort, and versionsort64 to POSIX 2008.
1734 * dirent/alphasort.c: Adjust implementation to type change.
1735 * dirent/alphasort64.c: Likewise.
1736 * dirent/scandir.c: Likewise.
1737 * dirent/versionsort.c: Likewise.
1738 * dirent/versionsort64.c: Likewise.
1739 * sysdeps/wordsize-64/alphasort.c: Add hack to hide alphasort64
1740 declaration.
1741 * sysdeps/wordsize-64/versionsort.c: Add hack to hide versionsort64
1742 declaration.
1743
cd2d01fa
UD
1744 [BZ #9880]
1745 * inet/inet6_rth.c (inet6_rth_reverse): Compute number of segments
1746 correctly. Set segleft member in output as required.
1747 Patch partly by Yang Hongyang <yanghy@cn.fujitsu.com>.
1748 * inet/tst-inet6_rth.c (do_test): Add tests for inet6_rth_reverse.
1749
906dd40d
UD
1750 [BZ #9881]
1751 * inet/inet6_rth.c (inet6_rth_add): Add some error checking.
1752 Patch mostly by Yang Hongyang <yanghy@cn.fujitsu.com>.
1753 * inet/Makefile (tests): Add tst-inet6_rth.
1754 * inet/tst-inet6_rth.c: New file.
1755
71a5bd3e
UD
1756 [BZ #5807]
1757 * string/strlen.c (strlen): Fix omission in the expression to test
1758 for NUL bytes.
1759
878b72c5
UD
17602009-03-14 Ulrich Drepper <drepper@redhat.com>
1761
fad070ab
UD
1762 * crypt/sha256test.c (main): Perform 100,000 'a' test in a second way.
1763
a42ad61b
UD
1764 * elf/dl-runtime.c (reloc_offset): Define.
1765 (reloc_index): Define.
1766 (_dl_fixup): Rename reloc_offset parameter to reloc_arg.
1767 (_dl_fixup_profile): Likewise. Use reloc_index instead of
1768 computing index from reloc_offset.
1769 (_dl_call_pltexit): Likewise.
1770 * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_resolve): Just pass
1771 the relocation index to _dl_fixup.
1772 (_dl_runtime_profile): Likewise for _dl_fixup_profile and
1773 _dl_call_pltexit.
1774 * sysdeps/x86_64/dl-runtime.c: New file.
1775
1f7c90a7
UD
1776 [BZ #9893]
1777 * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix
906dd40d 1778 alignment of La_x86_64_regs. Store xmm parameters.
1f7c90a7
UD
1779 Patch mostly by Jiri Olsa <olsajiri@gmail.com>.
1780
45466462
UD
1781 [BZ #9913]
1782 * string/strverscmp.c (__strverscmp): Fix case of different digits
1783 in fractional part of string.
1784 Patch by Jingyu Liu <jyliu@fortinet.com>.
1785 * string/Makefile (tests): Add tst-svc2.
1786 * string/tst-svc2.c: New file.
1787
1788 * string/strverscmp.c (__strverscmp): Optimize size of tables.
1789
878b72c5
UD
1790 * locale/iso-639.def: Add Min Nan.
1791
f53713a8
UD
17922009-03-11 Carlos Eduardo Seo <cseo@linux.vnet.ibm.com>
1793
878b72c5 1794 [BZ #9948]
f53713a8
UD
1795 * elf/dl-sysdep.c (_dl_show_auxv): Add support for AT_BASE_PLATFORM.
1796
f81ce288
UD
17972009-03-14 Ulrich Drepper <drepper@redhat.com>
1798
f53713a8
UD
1799 * elf/dl-sysdep.c (auxvars): Compress data structure.
1800
f81ce288
UD
1801 * sysdeps/i386/dl-machine.h (elf_machine_rel): Implement
1802 STT_GNU_IFUNC handling.
1803 (elf_machine_rela): Likewise.
1804
425ce2ed
UD
18052009-03-13 Ulrich Drepper <drepper@redhat.com>
1806
1807 * config.h.in (USE_MULTIARCH): Define.
1808 * configure.in: Handle --enable-multi-arch.
1809 * elf/dl-runtime.c (_dl_fixup): Handle STT_GNU_IFUNC.
1810 (_dl_fixup_profile): Likewise.
1811 * elf/do-lookup.c (dl_lookup_x): Likewise.
1812 * sysdeps/x86_64/dl-machine.h: Handle STT_GNU_IFUNC.
1813 * elf/elf.h (STT_GNU_IFUNC): Define.
1814 * include/libc-symbols.h (libc_ifunc): Define.
1815 * sysdeps/x86_64/cacheinfo.c: If USE_MULTIARCH is defined, use the
1816 framework in init-arch.h to get CPUID values.
1817 * sysdeps/x86_64/multiarch/Makefile: New file.
1818 * sysdeps/x86_64/multiarch/init-arch.c: New file.
1819 * sysdeps/x86_64/multiarch/init-arch.h: New file.
1820 * sysdeps/x86_64/multiarch/sched_cpucount.c: New file.
1821
1822 * config.make.in (experimental-malloc): Define.
1823 * configure.in: Handle --enable-experimental-malloc.
1824 * malloc/Makefile: Handle experimental-malloc flag.
1825 * malloc/malloc.c: Implement PER_THREAD and ATOMIC_FASTBINS features.
1826 * malloc/arena.c: Likewise.
1827 * malloc/hooks.c: Likewise.
1828 * malloc/malloc.h: Define M_ARENA_TEST and M_ARENA_MAX.
1829
e7f110cd
UD
18302009-03-11 Ulrich Drepper <drepper@redhat.com>
1831
1832 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Add branch
1833 prediction. A few size optimizations.
1834
bd82a247
UD
18352009-03-10 Ulrich Drepper <drepper@redhat.com>
1836
1837 * time/tzset.c: Optimize a bit for size.
1838
a99e59d7
UD
18392009-03-10 Jakub Jelinek <jakub@redhat.com>
1840
1841 * include/stdio.h (fmemopen): Add libc_hidden_proto.
1842 * libio/fmemopen.c (fmemopen): Add libc_hidden_def.
1843
1844 * elf/sprof.c: Avoid warning about multi-line comment.
1845
686f8c9d
UD
18462009-03-10 Ulrich Drepper <drepper@redhat.com>
1847
1848 * time/tzset.c (__tzset_parse_tz): Use correct string when parsing
1849 DST name.
1850 * time/tst-posixtz.c: Add tests for quoted timezone names.
1851
7db0cc42
UD
18522009-03-10 Jakub Jelinek <jakub@redhat.com>
1853
1854 * posix/unistd.h (_POSIX_VERSION, _POSIX2_VERSION, _POSIX2_C_BIND,
1855 _POSIX2_C_DEV, _POSIX2_SW_DEV, _POSIX2_LOCALEDEF): Define to
1856 200809L instead of 200112L.
1857 (_XOPEN_VERSION): For __USE_XOPEN2K8 define to 700.
1858 * posix/tst-sysconf.c (STDVER): Define to 200809L instead of 200112L.
1859
eec4b454
UD
1860 * stdlib/quick_exit.c (quick_exit): Pass &__quick_exit_funcs
1861 instead of __quick_exit_funcs to __run_exit_handlers.
1862 * stdlib/at_quick_exit.c (at_quick_exit): Add attribute_hidden.
1863 * stdlib/exit.h (__run_exit_handlers): Add noreturn attribute.
1864 (__cxa_at_quick_exit): Remove attribute_hidden.
1865 * stdlib/exit.c (exit): Pass &__exit_funcs instead of __exit_funcs
1866 to __run_exit_handlers.
1867 * stdlib/cxa_at_quick_exit.c (__cxa_at_quick_exit): Remove
1868 attribute_hidden.
1869
d7276cee
UD
18702009-03-10 Ulrich Drepper <drepper@redhat.com>
1871
1872 * po/id.po: Update from translation team.
1873
1454da21
UD
18742009-02-18 Jakub Jelinek <jakub@redhat.com>
1875
1876 * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S: Use
1877 .machine push; .machine "power6" and .machine pop around mtfsf
1878 insns outside of _ARCH_PWR6 define.
1879 * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S: Likewise.
1880 * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S:
1881 Likewise.
1882 * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S:
1883 Likewise.
1884 * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c (_SET_DI_FPSCR): Likewise.
1885 * sysdeps/powerpc/fpu/fenv_libc.h (fesetenv_register,
1886 relax_fenv_state): Likewise.
1887
130ca12e
UD
18882009-03-08 Ulrich Drepper <drepper@redhat.com>
1889
610e67ed
UD
1890 * stdlib/Makefile (routines): Add quick_exit, at_quick_exit, and
1891 cxa_at_quick_exit.
1892 (static-only-routines): Add at_quick_exit.
1893 * stdlib/Versions: Export quick_exit and __cxa_at_quick_exit for
1894 GLIBC_2.10.
1895 * stdlib/quick_exit.c: New file.
1896 * stdlib/at_quick_exit.c: New file.
1897 * stdlib/cxa_at_quick_exit.c: New file.
1898 * stdlib/cxa_atexit.c (__cxa_atexit): Move body to new function. Call
1899 it appropriately.
1900 (__internal_atexit): New function.
1901 (__new_exitfn): Now takes parameter to point to the list to use.
1902 * stdlib/cxa_finalize.c: Remove quick_exit handlers, don't call them.
1903 * stdlib/exit.c (__run_exit_handlers): New function. Split from...
1904 (exit): ...here. Just call __run_exit_handlers appropriately.
1905 * stdlib/exit.h: Declare __quick_exit_funcs, __run_exit_handlers,
1906 __internal_atexit, __cxa_at_quick_exit. Adjust __new_exitfn.
1907 * stdlib/on_exit.c: Adjust call to __new_exitfn.
1908 * stdlib/stdlib.h: Declare at_quick_exit and quick_exit.
1909
130ca12e
UD
1910 * po/id.po: Update from translation team.
1911
9a4f9d1f
UD
19122009-03-07 Ulrich Drepper <drepper@redhat.com>
1913
1914 * po/ru.po: Update from translation team.
1915
6d781c94
UD
19162009-03-04 Ulrich Drepper <drepper@redhat.com>
1917
1918 * po/nl.po: Update from translation team.
1919
e00c5ece
UD
19202009-03-03 Ulrich Drepper <drepper@redhat.com>
1921
99eb932f
UD
1922 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Declare fallocate{,64}.
1923 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
1924 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
1925 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
1926 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
1927 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
1928 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
1929
e00c5ece
UD
1930 * po/pl.po: Update from translation team.
1931
749f5cc9
UD
19322009-03-02 Ulrich Drepper <drepper@redhat.com>
1933
1b994772 1934 [BZ #7083]
749f5cc9
UD
1935 * sysdeps/unix/sysv/linux/fallocate.c: New file.
1936 * sysdeps/unix/sysv/linux/fallocate64.c: New file.
1937 * sysdeps/unix/sysv/linux/wordsize-64/fallocate64.c: New file.
1938 * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c: New file.
1939 * sysdeps/unix/sysv/linux/i386/fallocate64.c: New file.
1940 * sysdeps/unix/sysv/linux/i386/fallocate.c: New file.
1941 * sysdeps/unix/sysv/linux/Versions: Export fallocate and fallocate64
1942 for GLIBC_2.10.
1943 * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
1944 Add fallocate and fallocate64.
1945
1946 * io/fcntl.h: Pretty printing.
1947
6219e3cc
JJ
19482009-03-02 Richard Guenther <rguenther@suse.de>
1949
1950 * misc/sys/cdefs.h (__extern_always_inline): Add __artificial__
1951 attribute also for non-C99 inline semantics variant.
1952
134a9766
UD
19532009-02-12 Carlos Eduardo Seo <cseo@linux.vnet.ibm.com>
1954
1955 * sysdeps/powerpc/powerpc32/power7/fpu/Implies: New file.
1956 * sysdeps/powerpc/powerpc32/power7/Implies: Likewise.
1957 * sysdeps/powerpc/powerpc64/power7/fpu/Implies: Likewise.
1958 * sysdeps/powerpc/powerpc64/power7/Implies: Likewise.
1959 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/fpu/Implies:
1960 Likewise.
1961 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/fpu/Implies:
1962 Likewise.
1963
95bc1633
UD
19642009-03-02 Ulrich Drepper <drepper@redhat.com>
1965
1966 * po/cs.po: Update from translation team.
1967
43ea48a5
UD
19682009-02-28 Ulrich Drepper <drepper@redhat.com>
1969
1970 * po/bg.po: Update from translation team.
1971 * po/sv.po: Likewise.
f5faa3b6 1972 * po/fi.po: Likewise.
45572c23 1973 * po/vi.po: Likewise.
43ea48a5 1974
e965d514
RM
19752009-02-27 Roland McGrath <roland@redhat.com>
1976
1977 * Makeconfig (%.v.i): Depend on Makeconfig.
1978 Exclude % lines from initial #-comment removal.
1979
56a9651f
UD
19802009-02-27 Ulrich Drepper <drepper@redhat.com>
1981
1982 * po/ko.po: Update from translation team.
1983
682825ce
RM
19842009-02-26 Roland McGrath <roland@redhat.com>
1985
1986 * shadow/lckpwdf.c (__lckpwdf): Move FLAGS inside block using it,
1987 avoids unused warning.
1988
a3c37506
UD
19892009-02-26 Andrew Stubbs <ams@codesourcery.com>
1990 SUGIOKA Toshinobu <sugioka@itonet.co.jp>
1991
1992 * sysdeps/unix/sysv/linux/sh/sys/procfs.h: Don't include signal.h,
1993 sys/ucontext.h and asm/elf.h. Include sys/user.h.
1994 * sysdeps/unix/sysv/linux/sh/sys/user.h: Don't include features.h
1995 and asm/user.h. Include asm/ptrace.h.
1996 (PTRACE_GETREGS, PTRACE_SETREGS, PTRACE_GETFPREGS,
1997 PTRACE_SETFPREGS, PTRACE_GETFDPIC, PTRACE_GETFDPIC_EXEC,
1998 PTRACE_GETFDPIC_INTERP, PTRACE_GETDSPREGS, PTRACE_SETDSPREGS):
1999 Undefine.
2000 (start_thread): Don't undefine.
2001 (elf_greg_t, ELF_NGREG, elf_fpregset_t, user_fpu_struct, user):
2002 Define.
2003
f503060b
UD
20042009-02-26 Ulrich Drepper <drepper@redhat.com>
2005
6cbe890a
UD
2006 * wctype/wctype.h: The *_l functions are in POSIX 2008.
2007 * wcsmbs/wchar.h: mbsnrtowcs, open_wmemstream, wcpcpy, wcpncpy,
2008 wcscasecmp, wcsdup, wcsncasecmp, wcsnlen, wcsnrtombs,
2009 wcscasecmp_l, wcsncasecmp_l, wcscoll_l, and wcsxfrm_l.
2010 * sysdeps/mach/hurd/bits/posix_opt.h: Reset value of macros from
2011 200112L to 200809L.
2012 * sysdeps/unix/sysv/linux/bits/posix_opt.h: Likewise.
2013 * posix/getconf.c (vars): Add _SC_THREAD_ROBUST_PRIO_INHERIT and
2014 _SC_THREAD_ROBUST_PRIO_PROTECT entries.
2015 * bits/confname.h: Add _SC_THREAD_ROBUST_PRIO_INHERIT and
2016 _SC_THREAD_ROBUST_PRIO_PROTECT.
2017 * posix/unistd.h: fexecve is in POSIX 2008.
2018 * time/time.h: strftime_l is in POSIX 2008.
2019 * io/sys/stat.h: futimens is in POSIX 2008.
2020 * string/strings.h: strcasecmp_l and strncasecmp_l are in POSIX 2008.
2021 * string/string.h: stpcpy, stpncpy, strndup, strnlen, strsignal,
2022 strcoll_l, strerror_l, and strxfrm_l are in POSIX 2008.
2023 * stdlib/stdlib.h: mkdtemp is in POSIX 2008.
f503060b
UD
2024 * libio/stdio.h: dprintf, fmemopen, getdelim, getline,
2025 open_memstream, and vdprintf are in POSIX 2008.
2026
2e6d6bac
UD
20272009-02-25 Ulrich Drepper <drepper@redhat.com>
2028
3e6b0a28 2029 * include/features.h: Define macros for XPG7/POSIX 2008.
77db439e
UD
2030 * ctype/ctype.h: The *_l functions are in POSIX 2008.
2031 * dirent/dirent.h: alphasort, dirfd, scandir, and fdopendir are in
2032 POSIX 2008.
1f04d005
UD
2033 * locale/langinfo.h: nl_langinfo_l is in POSIX 2008.
2034 * locale/xlocale.h: Define locale_t type.
2035 * locale/locale.h: duplocale, freelocale, newlocale, uselocale are
2036 in POSIX 2008. Don't define locale_t here.
2037 * stdlib/monetary.h: strfmon_l is in POSIX 2008.
3e6b0a28
UD
2038 * sysdeps/unix/sysv/linux/bits/stat.h: Protect UTIME_NOW and
2039 UTIME_OMIT only with __USE_ATFILE.
1f04d005
UD
2040 * signal/signal.h: Declare psignal and psiginfo for POSIX 2008.
2041 * stdio-common/psiginfo.c: New file.
2042 * stdio-common/psiginfo-data.h: New file.
2043 * stdio-common/psiginfo-define.h: New file.
2044 * stdio-common/Makefile (routines): Add psiginfo.
2045 * stdio-common/Versions: Export psiginfo for GLIBC_2.10.
3e6b0a28
UD
2046 * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Likewise.
2047 * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Likewise.
2048 * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
2049 * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
2050 * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
2051 * io/sys/stat.h: Move mknodat definition into same conditional as
2052 mknod.
2053 * time/sys/time.h: futimesat is not among the functions accepted
2054 into the POSIX standard.
2055
2e6d6bac
UD
2056 * include/features.h: If no feature selection given and we select
2057 by default a POSIX mode, also define __USE_POSIX_IMPLICITLY.
2058 * posix/Versions: Export __posix_getopt.
2059 * posix/getopt.c (_getopt_initialize): Take additional parameter.
2060 Use it to alternatively initialize __posixly_correct.
2061 (_getopt_internal_r): Take addition parameter. Pass on to
2062 _getopt_initialize.
2063 (_getopt_internal): Take addition parameter. Pass on to
2064 _getopt_internal_r.
2065 (getopt): Pass additional zero to _getopt_internal.
2066 (__posix_getopt): New function.
2067 * posix/getopt.h: Add redirection for getopt.
2068 * posix/getopt1.c (getopt_long): Pass additional zero to
2069 _getopt_internal.
2070 (getopt_long_only): Likewise.
2071 (_getopt_long_r): Pass additional zero to _getopt_internal_r.
2072 (_getopt_long_only_r): Likewise.
2073 * posix/getopt_int.h: Adjust declarations of _getopt_internal and
2074 _getopt_internal_r.
2075
67108e40
UD
20762009-02-24 Ulrich Drepper <drepper@redhat.com>
2077
2078 * bits/confname.h: Define _SC_TRACE_EVENT_NAME_MAX, _SC_TRACE_NAME_MAX,
2079 _SC_TRACE_SYS_MAX, _SC_TRACE_USER_EVENT_MAX, _SC_XOPEN_STREAMS.
2080 * sysdeps/posix/sysconf.c (__sysconf): Handle
2081 _SC_TRACE_EVENT_NAME_MAX, _SC_TRACE_NAME_MAX, _SC_TRACE_SYS_MAX,
2082 _SC_TRACE_USER_EVENT_MAX, _SC_XOPEN_STREAMS.
2083
1cccb96f
RM
20842009-02-24 Roland McGrath <roland@redhat.com>
2085
2086 [BZ #9895]
2087 * README.template: Reworded not to use substituted version number.
2088 Renamed to ...
2089 * README: ... here (no longer generated).
2090 * Makefile (README): Target removed.
2091
82780cbe
UD
20922009-02-24 Ulrich Drepper <drepper@redhat.com>
2093
5be0a688 2094 * sysdeps/unix/sysv/linux/sysconf.c (__sysconf):
77db439e 2095 /proc/sys/kernel/rtsig_max doesn't exist anymore, use getrlimit
5be0a688
UD
2096 instead.
2097
8c4a5f42
UD
2098 * io/sys/stat.h: The lstat functions have been mandatory since 2001.
2099
82780cbe
UD
2100 * time/tzset.c (tzset_internal): Correct parsing of TZ envvar.
2101
77c571dd
UD
21022009-02-22 Ulrich Drepper <drepper@redhat.com>
2103
2104 * po/bg.po: Update from translation team.
2105
d82a27f8
JJ
21062009-02-16 Jakub Jelinek <jakub@redhat.com>
2107
2108 * stdlib/monetary.h: Uglify function parameter names.
2109 * sunrpc/rpc/pmap_clnt.h: Likewise.
2110 * sunrpc/rpc/svc.h: Likewise.
2111 * sunrpc/rpc/xdr.h: Likewise.
2112 * sunrpc/rpc/clnt.h: Likewise.
2113 * resolv/netdb.h: Likewise.
2114 * resolv/arpa/nameser.h: Likewise.
2115 * resolv/resolv.h: Likewise.
2116 * argp/argp.h: Likewise.
2117 * locale/langinfo.h: Likewise.
2118 * io/sys/stat.h: Likewise.
2119 * posix/spawn.h: Likewise.
2120 * nis/rpcsvc/nislib.h: Likewise.
2121 * malloc/obstack.h: Likewise.
2122 * sysdeps/ia64/bits/link.h: Likewise.
2123 * sysdeps/i386/bits/link.h: Likewise.
2124 * sysdeps/s390/bits/link.h: Likewise.
2125 * sysdeps/powerpc/bits/link.h: Likewise.
2126 * sysdeps/x86_64/bits/link.h: Likewise.
2127 * sysdeps/sparc/bits/link.h: Likewise.
2128 * sysdeps/sh/bits/link.h: Likewise.
2129 * sysdeps/unix/sysv/linux/i386/sys/io.h: Likewise.
2130 * sysdeps/unix/sysv/linux/x86_64/sys/io.h: Likewise.
2131 * sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: Likewise.
2132 * sysdeps/unix/sysv/linux/sys/eventfd.h: Likewise.
2133
58a7457e
JJ
21342008-12-01 Fredrik Unger <fred@tree.se>
2135
2136 * soft-fp/double.h [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_SEMIRAW_D,
2137 FP_UNPACK_SEMIRAW_DP): Use _FP_UNPACK_RAW_1 instead of
2138 _FP_UNPACK_RAW_2, fix up first argument.
2139
f43b4be6
UD
21402009-02-15 Ulrich Drepper <drepper@redhat.com>
2141
2142 * sysdeps/unix/sysv/linux/getsysstats.c (next_line): New function.
2143 (GET_NPROCS_PARSER): Change parameters and use next_line.
2144 (__get_nprocs): Rewrite to not use stdio routines.
2145 * sysdeps/unix/sysv/linux/sparc/getsysstats.c (GET_NPROCS_PARSER):
2146 Change parameters and use next_line.
2147
20e498bd
UD
21482009-02-13 Ulrich Drepper <drepper@redhat.com>
2149
2150 [BZ #5381]
2151 * nscd/nscd.h: Remove definitions and declarations for mem_in_flight.
2152 Change mempool_alloc prototype.
2153 * nscd/mem.c (gc): Don't handle mem_in_flight.
2154 (mempool_alloc): Third parameter now only indicates whether this is the
2155 first call (to allocate data) or not. If it is, get db rdlock.
2156 Release it on error. Don't handle mem_in_flight.
2157 * nscd/aicache.c (addhstaiX): Mark he parameter as const.
2158 Adjust third parameter of mempool_alloc calls.
2159 Nothing to do here in case mempool_alloc fails.
2160 Avoid local variable shadowing parameter. No need to get db rdlock
2161 before calling cache_add.
2162 * nscd/cache.c (cache_add): Adjust call to mempool_alloc. There is
2163 no mem_in_flight array anymore.
2164 * nscd/connections.c: Remove definition and handling of mem_in_flight.
2165 * nscd/grpcache.c (cache_addgr): Adjust third parameter of
2166 mempool_alloc calls. Mark he parameter as const. Nothing to do here
2167 in case mempool_alloc fails. No need to get db rdlock before calling
2168 cache_add.
2169 * nscd/hstcache.c (cache_addhst): Likewise.
2170 * nscd/initgrcache.c (addinitgroupsX): Likewise.
2171 * nscd/servicescache.c (cache_addserv): Likewise.
2172 * nscd/pwdcache.c (cache_addpw): Likewise. Remove some debugging code.
2173
d8111eac
UD
21742009-02-11 Ulrich Drepper <drepper@redhat.com>
2175
2176 * po/lt.po: Update from translation team.
2177
40e2fc8b
UD
21782009-02-10 Ulrich Drepper <drepper@redhat.com>
2179
2180 * elf/dl-load.c (open_verify): In case VALID_ELF_HEADER is
2181 defined, allow additional data to be added using the optional
2182 MORE_ELF_HEADER_DATA macro.
2183 * sysdeps/unix/sysv/linux/ldsodefs.h (VALID_ELF_HEADER,
2184 VALID_ELF_OSABI, VALID_ELF_ABIVERSION, MORE_ELF_HEADER_DATA): Define.
2185
6c03cd11
UD
21862009-02-08 Ulrich Drepper <drepper@redhat.com>
2187
2188 * include/atomic.h: Define catomic_and if not already defined.
2189 * sysdeps/x86_64/bits/atomic.h: Define catomic_and.
2190 * sysdeps/i386/i486/bits/atomic.h: Likewise.
2191
bc16e0c4
UD
21922009-02-07 Ulrich Drepper <drepper@redhat.com>
2193
78ac92ad
UD
2194 * malloc/malloc.c (_int_free): Second argument is now mchunkptr.
2195 Change all callers.
6dd6a580 2196 (_int_realloc): Likewise. Third argument is now padded size
78ac92ad 2197 All _int_* functions are now static.
6dd6a580 2198
78ac92ad
UD
2199 * malloc/hooks.c: Change all callers to _int_free and _int_realloc.
2200 * malloc/arena.c: Likewise.
2201 * include/malloc.h: Remove now unnecessary declarations of the _int_*
2202 functions.
2203
7dddb4bd
UD
2204 * sunrpc/rpc_common.c: We cannot move _null_auth into .rodata that
2205 easily.
2206
bfacf1af
UD
2207 * malloc/malloc.c: Add branch prediction for use of the hooks.
2208
bc16e0c4
UD
2209 * grp/compat-initgroups.c [NOT_IN_libc] (__libc_use_alloca): Define.
2210
26b62243
UD
22112009-02-06 Ulrich Drepper <drepper@redhat.com>
2212
2213 [BZ #7095]
2214 * bits/confname.h: Add SUSv7 macros for getconf environments.
2215 * bits/environments.h: Likewise.
2216 * sysdeps/unix/sysv/linux/i386/bits/environments.h: Likewise.
2217 * sysdeps/unix/sysv/linux/powerpc/bits/environments.h: Likewise.
2218 * sysdeps/unix/sysv/linux/s390/bits/environments.h: Likewise.
2219 * sysdeps/unix/sysv/linux/sparc/bits/environments.h: Likewise.
2220 * sysdeps/unix/sysv/linux/x86_64/bits/environments.h: Likewise.
2221 * posix/confstr.c: Handle SUSv5 and SUSv7 environments.
2222 * posix/getconf.c: Likewise.
2223 * posix/sysconf.c: Likewise.
2224 * sysdeps/posix/sysconf.c: Likewise.
2225 * posix/Makefile (getconf.speclist): Also collect SUSv5 and SUSv7
2226 environments.
2227
3fe4c5b3
UD
22282009-01-16 Petr Baudis <pasky@suse.cz>
2229
2230 [BZ #9753]
2231 * resolv/res_libc.c (__res_maybe_init): Call __res_vinit()
2232 even if we currently have zero nscount.
2233
cbbcaf23
UD
22342009-02-06 Ulrich Drepper <drepper@redhat.com>
2235
1a9dd4e4
UD
2236 [BZ #9781]
2237 * grp/compat-initgroups.c (compat_call): Switch to use malloc when
2238 the input line is too long.
2239
51f8846e
UD
2240 * po/Makefile (libc.pot): Add f_print as function taking c-format
2241 parameter.
2242
cbbcaf23
UD
2243 * debug/xtrace.sh: Unify translatable messages.
2244 * elf/ldd.bash.in: Likewise.
2245 * elf/sprof.c: Likewise.
2246 * locale/programs/locale.c: Likewise.
2247 * malloc/memusage.sh: Likewise.
2248 * nss/getent.c: Likewise.
2249
22502009-02-06 Joseph Myers <joseph@codesourcery.com>
2251
2252 * debug/pcprofiledump.c (print_version,
2253 argp_program_version_hook): New function.
2254 * elf/ldconfig.c (more_help): New function.
2255 (argp): Use it.
2256 * elf/sln.c (usage): New function.
2257 (main): Support --help and --version.
2258 * malloc/memusagestat.c (print_version): New function.
2259 (argp_program_version_hook): New variable.
2260 * nscd/nscd.c (more_help): New function.
2261 (argp): Use it.
2262 * posix/getconf.c (main): Send --version output to stdout.
2263 Support --help.
2264 * sunrpc/rpc_main.c (usage, options_usage): Take STREAM and STATUS
2265 arguments. All callers changed.
2266 (print_version): New function.
2267 (parseargs): Support --help and --version.
2268 * sunrpc/rpcinfo.c (usage): Take STREAM argument. All callers
2269 changed.
2270 (print_version): New function.
2271 (main): Use getopt_long. Support --help and --version.
2272 * sysdeps/unix/sysv/linux/lddlibc4.c (main): Support --help and
2273 --version.
2274
88a3b8f9
UD
22752009-02-06 Ulrich Drepper <drepper@redhat.com>
2276
e2e390fa
UD
2277 * malloc/memusage.c (DEFAULT_BUFFER_SIZE): Change to 32768.
2278 (update_data): Fix handling of wrapping back
c3ab42a8
UD
2279 to the beginning of the buffer.
2280
88a3b8f9
UD
2281 [BZ #9823]
2282 * stdio-common/psignal.c (psignal): Fix test for empty string.
2283
62f63c47
UD
22842009-02-05 Ulrich Drepper <drepper@redhat.com>
2285
4f7408c7
UD
2286 * include/rpc/auth.h: Use libc_hidden_proto for _null_auth.
2287 * sunrpc/rpc_common.c: Add libc_hidden_def for _null_auth. Also
2288 move _null_auth to .rodata.
2289
970aa10f
UD
2290 * time/tzset.c (__tzset_parse_tz): DST offset must also allow hour
2291 value of 24.
2292
52de761a
UD
2293 * intl/dcigettext.c (DCIGETTEXT): Avoid some code duplication.
2294
62f63c47
UD
2295 * sysdeps/unix/opendir.c (__alloc_dir): We have a lot more memory
2296 today than when the original code was written. Use larger
2297 buffers. This also makes it unnecessary to have stat information,
2298 if this causes extra efforts.
2299 (__opendir): In case O_DIRECTORY works, don't call fstat just for
2300 __alloc_dir.
2301
0899b889
UD
23022009-02-03 Andrew Stubbs <ams@codesourcery.com>
2303
2304 * sysdeps/sh/sh4/dl-trampoline.S: Only set HAVE_FPU if __SH_FPU_ANY__
2305 is set.
2306 * sysdeps/sh/sh4/setjmp.S: Support SH4-NOFPU.
2307 * sysdeps/sh/sh4/__longjmp.S: Likewise.
2308 * sysdeps/unix/sysv/linux/sh/sh4/getcontext.S: Likewise.
2309 * sysdeps/unix/sysv/linux/sh/sh4/setcontext.S: Likewise.
2310 * sysdeps/unix/sysv/linux/sh/sh4/swapcontext.S: Likewise.
2311 * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Likewise.
2312
22cc3f75
UD
23132009-02-04 Ulrich Drepper <drepper@redhat.com>
2314
2315 * po/ru.po: Update from translation team.
2316
a71433e7
UD
23172008-11-17 Nathan Sidwell <nathan@codesourcery.com>
2318
2319 * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (struct sigevent):
2320 Add _tid slot to maintain consistency with kernel.
2321
82f2e9c6 23222009-02-04 Ulrich Drepper <drepper@redhat.com>
3a2e9947 2323
82f2e9c6
UD
2324 * libio/wfileops.c (_IO_wfile_underflow): Fix handling of
2325 incomplete characters at end of input buffer.
2326 * libio/Makefile (tests): Add tst-fgetwc.
2327 * libio/tst-fgetwc.c: New file.
2328 * libio/tst-fgetwc.input: New file.
3a2e9947 2329
ba022c06
UD
23302009-02-02 Andrew Stubbs <ams@codesourcery.com>
2331
2332 * sysdeps/unix/sysv/linux/sh/Makefile (libm.so-no-z-defs): Define.
2333
1b14353e
UD
23342009-02-02 Ulrich Drepper <drepper@redhat.com>
2335
2336 [BZ #9793]
2337 * iconv/gconv_trans.c (__gconv_transliterate): Don't change
2338 *OUTBUFSTART unless the whole output fit into the buffer.
2339 * iconv/Makefile (tests): Add tst-iconv4.
2340 * iconv/tst-iconv4.c: New file.
2341
ebc22416
UD
23422009-02-01 Ulrich Drepper <drepper@redhat.com>
2343
2344 * sysdeps/x86_64/cacheinfo.c (intel_02_known): Add new descriptors.
2345 * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
2346
7c8a6732
UD
23472009-01-29 Andrew Stubbs <ams@codesourcery.com>
2348
2349 * elf/Makefile (ld.so): Adjust the sed script to insert _begin in to
2350 newer linker scripts.
2351
43149780
UD
23522009-01-30 Ulrich Drepper <drepper@redhat.com>
2353
2354 [BZ #7040]
2355 * sysdeps/unix/sysv/linux/sys/inotify.h: Second parameter of
2356 inotify_rm_watch should have type int.
2357
bd4ace0b
UD
23582009-01-06 Steven Munroe <sjmunroe@us.ibm.com>
2359
2360 * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S (__longjmp):
2361 Make aligned_restore_vmx a local symbol.
2362 * sysdeps/powerpc/powerpc64/__longjmp-common.S (__longjmp):
2363 Likewise.
2364
430902da
AJ
23652009-01-30 Andreas Jaeger <aj@suse.de>
2366
2367 * sysdeps/unix/sysv/linux/bits/shm.h (SHM_EXEC): Define.
2368 * sysdeps/unix/sysv/linux/ia64/bits/shm.h (SHM_EXEC): Define.
2369 * sysdeps/unix/sysv/linux/powerpc/bits/shm.h (SHM_EXEC): Define.
2370 * sysdeps/unix/sysv/linux/s390/bits/shm.h (SHM_EXEC): Define.
2371 * sysdeps/unix/sysv/linux/sh/bits/shm.h (SHM_EXEC): Define.
2372 * sysdeps/unix/sysv/linux/sparc/bits/shm.h (SHM_EXEC): Define.
2373 * sysdeps/unix/sysv/linux/x86_64/bits/shm.h (SHM_EXEC): Define.
2374
b7219e53
UD
23752009-01-11 Ryan S. Arnold <rsa@us.ibm.com>
2376
2377 [BZ #9726]
2378 * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c (_SET_DI_FPSCR,
2379 _SET_SI_FPSCR): Clobber fp0 to prevent erroneous test-case passes.
2380
23812009-01-08 Ryan S. Arnold <rsa@us.ibm.com>
2382
2383 [BZ #9726]
2384 * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S
2385 (__CONTEXT_FUNC_NAME): Fix mtfsf to use fp31 instead of fp0.
2386 * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S
2387 (__CONTEXT_FUNC_NAME): Fix mtfsf to use fp31 instead of fp0.
2388
a3bd2846
UD
23892009-01-11 Thomas Schwinge <tschwinge@gnu.org>
2390
2391 * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Use
2392 memcpy instead of memcmp.
2393 (_dl_setup_pointer_guard): Likewise.
2394
1fdd89a7
UD
23952009-01-30 Ulrich Drepper <drepper@redhat.com>
2396
2397 * malloc/malloc.c (sYSMALLOc): Don't use assert when detecting
2398 manipulated brk, use malloc_printerr.
2399 * misc/sbrk.c (__sbrk): Better error handling for nonsense
2400 requests.
2401
8585cb74
UD
24022009-01-30 Jakub Jelinek <jakub@redhat.com>
2403
2404 * string/string.h (memchr, strchr, strrchr, strpbrk, strstr, index,
2405 rindex): For C++ add inlines so that they can be recognized as
2406 builtins.
2407 * string/strings.h: Define correct C++ prototypes for gcc 4.4.
2408
d8387c7b
UD
24092009-01-29 Ulrich Drepper <drepper@redhat.com>
2410 Jakub Jelinek <jakub@redhat.com>
2411
cdf77dd8
UD
2412 * string/string.h: Define correct C++ prototypes for gcc 4.4.
2413 * wcsmbs/wchar.h: Likewise.
d8387c7b 2414
647925b2
UD
24152009-01-29 Ulrich Drepper <drepper@redhat.com>
2416
2417 * sysdeps/i386/stackinfo.h (stackinfo_get_sp): Define.
2418 (stackinfo_sub_sp): Define.
2419
5627534a
UD
24202009-01-28 Ulrich Drepper <drepper@redhat.com>
2421
fd537e53
UD
2422 [BZ #9750]
2423 * nscd/mem.c (gc): Use alloca_count to get the real stack usage.
2424 * include/alloca.h (alloca_account): Define.
2425 * sysdeps/x86_64/stackinfo.h (stackinfo_get_sp): Define.
2426 (stackinfo_sub_sp): Define.
2427
00f5df0e
UD
2428 * nscd/connections.c (nscd_init): If database file access fails
2429 check whether this is due to permission problems and bail in that
2430 case.
31d322a2 2431
5627534a
UD
2432 [BZ #9741]
2433 * nscd/mem.c (gc): Fix assignment of he_data in case malloc is used.
2434 Reported by Jun'ichi Nomura <j-nomura@ce.jp.nec.com>.
2435
a7bd183f
UD
24362009-01-14 Kaz Kojima <kkojima@rr.iij4u.or.jp>
2437
2438 * sysdeps/unix/sysv/linux/sh/sysdep.h (INTERNAL_SYSCALL):
2439 Add "t" to clobber list.
2440 (INTERNAL_SYSCALL_NCS): Likewise.
2441
1dd75769
UD
24422009-01-28 Ulrich Drepper <drepper@redhat.com>
2443
2444 * nss/getent.c (print_networks): Don't print comma between aliases.
2445
25e84177
UD
24462009-01-23 Ulrich Drepper <drepper@redhat.com>
2447
2448 * sysdeps/unix/sysv/linux/tst-clone.c (do_test): Avoid warning.
2449
2450 * misc/hsearch_r.c (hcreate_r): We need at least three elements in
2451 the hash table.
2452 * misc/Makefile (tests): Add bug-hsearch1.
2453 * misc/bug-hsearch1.c: New file.
2454
0699a0ca
RM
24552009-01-22 Roland McGrath <roland@redhat.com>
2456
2457 * Makeconfig (%.v.i): Strip trailing # comments,
2458 not only whole-line comments.
2459
965cb60a
UD
24602009-01-10 Ulrich Drepper <drepper@redhat.com>
2461
2462 * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Take
2463 one parameter. If non-NULL use it to initialize return value.
2464 (_dl_setup_pointer_guard): New function.
2465 * sysdeps/unix/sysv/linux/dl-osinfo.h: Likewise.
2466 * sysdeps/generic/ldsodefs.h: Declare _dl_random.
2467 * elf/rtld.c (security_init): Pass _dl_random to
2468 _dl_setup_stack_chk_guard. Call _dl_setup_pointer_guard to initialize
2469 pointer_chk_guard.
2470 * elf/dl-sysdep.c (_dl_random): New variable.
2471 (_dl_sysdep_start): Handle AT_RANDOM.
2472 (_dl_show_auxv): Likewise.
2473 * elf/dl-support.c (_dl_random): New variable.
2474 (_dl_aux_init): Handle AT_RANDOM.
2475 * csu/libc-start.c [!SHARED] (libc_start_main): Pass _dl_random
2476 to _dl_setup_stack_chk_guard.
2477
2478 * elf/elf.h (AT_RANDOM): Define AT_BASE_PLATFORM and AT_RANDOM.
2479
8be96dd1
RM
24802009-01-10 Roland McGrath <roland@redhat.com>
2481
2482 * nscd/nscd.c (parse_opt): Use argp_error for bad -i argument.
2483
157cd5ac
UD
24842009-01-08 Ulrich Drepper <drepper@redhat.com>
2485
9b1c750e
UD
2486 * sysdeps/i386/fpu/libm-test-ulps: Adjust expm1 errors.
2487
157cd5ac
UD
2488 [BZ #9706]
2489 * nss/nss_files/files-parse.c (strtou32): New function.
2490 (INT_FIELD): Use strotu32 instead of strtoul to unify behavior
2491 across 32-bit and 64-bit platforms.
2492 (INT_FIELD_MAYBE_NULL): Likewise.
2493
960af8c2
JJ
24942009-01-08 Jakub Jelinek <jakub@redhat.com>
2495
2496 [BZ #9720]
2497 * sysdeps/unix/sysv/linux/bits/resource.h (enum __rusage_who): Avoid
2498 comma after RUSAGE_CHILDREN if not -D_GNU_SOURCE.
2499 * sysdeps/unix/sysv/linux/sparc/bits/resource.h (enum __rusage_who):
2500 Likewise.
2501
76c7f2cd
UD
25022009-01-05 Paolo Bonzini <bonzini@gnu.org>
2503
16c124f7 2504 [BZ #697]
76c7f2cd
UD
2505 * posix/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
2506 being NULL also if there are no backreferences.
2507 * posix/rxspencer/tests: Add testcases.
2508
bdb56bac
UD
25092009-01-04 Paolo Bonzini <bonzini@gnu.org>
2510
16c124f7 2511 [BZ #9697]
bdb56bac
UD
2512 * posix/bug-regex17.c: Add testcases.
2513 * posix/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
2514 handling.
2515
0480c901
UD
25162009-01-05 Martin Schwidefsky <schwidefsky@de.ibm.com>
2517
2518 * sysdeps/unix/sysv/linux/s390/bits/libc-vdso.h: New file.
2519 * sysdeps/unix/sysv/linux/s390/gettimeofday.c: New file.
2520 * sysdeps/unix/sysv/linux/s390/init-first.c: New file.
2521 * sysdeps/unix/sysv/linux/s390/Makefile (sysdep_routines): Add dl-vdso
2522 for elf subdir.
2523 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h (INLINE_VSYSCALL,
2524 INTERNAL_VSYSCALL, INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK,
2525 INTERNAL_SYSCALL_NCS, HAVE_CLOCK_GETRES_VSYSCALL and
2526 HAVE_CLOCK_GETTIME_VSYSCALL: Define.
2527 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
2528 * sysdeps/unix/sysv/linux/s390/Versions: New file.
2529
b3918c7d
UD
25302008-12-31 Paolo Bonzini <bonzini@gnu.org>
2531
2532 * posix/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
2533 * posix/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
2534 re_string_skip_chars, re_string_reconstruct): Likewise.
2535 * posix/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
2536
df9293cb
UD
25372008-12-31 Rafael Avila de Espindola <espindola@google.com>
2538
2539 * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr2_r): Check and
2540 adjust the buffer alignment.
2541
c90c1e1c
RM
25422009-01-07 Samuel Thibault <samuel.thibault@ens-lyon.org>
2543
2544 * sysdeps/mach/hurd/Makefile (sysdep_headers) [subdir=socket]:
2545 Add net/ethernet.h net/if_arp.h net/if_ether.h net/if_ppp.h
2546 net/route.h.
2547
2548 * hurd/report-wait.c (describe_number): Use __stpcpy to prepend
2549 flavor to description only when flavor is not NULL.
2550
2551 * hurd/hurdsig.c (signal_allowed): Unlock _hurd_dtable_lock
2552 mutex after SIGIO/SIGURG lookup loop.
2553
5aff6fdf
RM
25542009-01-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
2555
2556 * bits/resource.h (PRIO_PROCESS, PRIO_PGRP, PRIO_USER): Add macros.
2557
b2bcd249
UD
25582009-01-03 Ulrich Drepper <drepper@redhat.com>
2559
2560 * sysdeps/unix/sysv/linux/i386/sysdep.h: Describe 6th argument
2561 handling.
2562
d36ad871
UD
25632009-01-02 Ulrich Drepper <drepper@redhat.com>
2564
ebb2788e
UD
2565 * sysdeps/unix/sysv/linux/kernel-features.h
2566 (__ASSUME_FUTEX_CLOCK_REALTIME): Define.
2567
72098116
UD
2568 * wcsmbs/wcsnrtombs.c (__wcsnrtombs): Create temporary state object
2569 if no output is written.
2570
623d0bf5
UD
2571 * version.h: Bump to 2.10 development.
2572
d36ad871
UD
2573 * posix/getconf.c: Update copyright year.
2574 * nss/getent.c: Likewise.
2575 * iconv/iconvconfig.c: Likewise.
2576 * iconv/iconv_prog.c: Likewise.
2577 * elf/ldconfig.c: Likewise.
2578 * catgets/gencat.c: Likewise.
2579 * csu/version.c: Likewise.
2580 * elf/ldd.bash.in: Likewise.
2581 * elf/sprof.c (print_version): Likewise.
2582 * locale/programs/locale.c: Likewise.
2583 * locale/programs/localedef.c: Likewise.
2584 * nscd/nscd.c (print_version): Likewise.
2585 * debug/xtrace.sh: Likewise.
2586 * malloc/memusage.sh: Likewise.
2587 * malloc/mtrace.pl: Likewise.
2588 * debug/catchsegv.sh: Likewise.
2589
25df09ab
UD
25902008-12-29 Mike Frysinger <vapier@gentoo.org>
2591
2592 * iconvdata/Makefile (iconv-rules): Use LC_ALL=C when running awk
2593 script.
2594
16b7dc27
UD
25952008-12-29 Ulrich Drepper <drepper@redhat.com>
2596
bfbbc63f
UD
2597 * sysdeps/posix/getaddrinfo.c (gaih_inet): When the
2598 gethostbyname4_r function call succeeded, just leave the loop.
2599
0f2ae55c
UD
2600 [BZ #9694]
2601 * wcsmbs/wchar.h: Move undefs for local __need_* constants to the
2602 very end.
5703f472
UD
2603 * wctype/wctype.h: Get wint_t definition directly from <stddef.h>.
2604 * wctype/Makefile (tests): Add bug-wctypeh.
2605 * wctype/bug-wctypeh.c: New file.
0f2ae55c 2606
50e481ce
UD
2607 * nscd/nscd_gethst_r.c (nscd_gethst_r): Don't use nscd if
2608 LOCALDOMAIN is defined.
2609 * nscd/nscd_getai.c (__nscd_getai): Likewise.
2610
217d45cd
UD
2611 * sysdeps/x86_64/bits/select.h: New file.
2612
16b7dc27
UD
2613 * resolv/res_init.c (__res_vinit): Count all servers in statp->nscount.
2614
bf93cd3b
UD
26152008-12-21 Bruno Haible <bruno@clisp.org>
2616
2617 [BZ #9677]
2618 * wcsmbs/mbsnrtowcs.c (__mbsnrtowcs): Create temporary state object
2619 if no output is written.
2620
49159e12
UD
26212008-12-13 Klaus Dittrich <kladit@arcor.de>
2622
2623 * login/utmp_file.c (pututline_file): Replace call to dup2 with
2624 libc internal symbol __dup2 to avoid access through the PLT.
2625
d4f0720b
UD
26262008-12-08 Ulrich Drepper <drepper@redhat.com>
2627
135460f4
UD
2628 [BZ #6545]
2629 * sysdeps/unix/sysv/linux/bits/socket.h (SCM_CREDENTIALS): Make
2630 available only for __USE_GNU.
2631
ed0da352
UD
2632 * inet/Makefile (tests): Add tst-getni2.
2633 * inet/tst-getni2.c: New file.
2634
d4f0720b
UD
2635 [BZ #7080]
2636 * inet/getnameinfo.c (getnameinfo): Check for output buffers being
2637 NULL when NI_NAMEREQD is set.
2638 Patch mostly by Yang Hongyang <yanghy@cn.fujitsu.com>.
2639 * inet/Makefile (tests): Add tst-getni1.
2640 * inet/tst-getni1.c: New file.
2641
cd72adeb
UD
26422008-12-03 Petr Baudis <pasky@suse.cz>
2643
2644 [BZ #7067]
2645 * nscd/connections.c (invalidate_cache): Use prune_run_lock
2646 instead of prune_lock.
2647 (nscd_run_prune): Before calling prune_cache, take prune_run_lock.
2648 * nscd/nscd.h (database_dyn): Add prune_run_cache.
2649
e87946cc
UD
26502008-12-07 Ulrich Drepper <drepper@redhat.com>
2651
200da00a
UD
2652 * resolv/res_send.c (send_dg): Use correct guards for SOCK_CLOEXEC
2653 use.
2654
2655 * sysdeps/unix/sysv/linux/kernel-features.h: Fix typo in accept4
2656 handling.
2657
905ef0da
UD
2658 * resolv/res_init.c (__res_vinit): Always assign to statp->nscount
2659 after reading name server list.
2660
71053765 2661 [BZ #7058]
e87946cc
UD
2662 * nis/nss_nis/nis-hosts.c (_nss_nis_gethostbyname4_r): Fix memory
2663 handling for host name aliases.
2664
d43b8bdd
JJ
26652008-11-24 Arkadiusz Miśkiewicz <arekm@maven.pl>
2666
2667 * sysdeps/i386/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Use LOAD_PIC_REG
2668 instead of doing things manually.
2669
26702008-11-26 Chris Steel <chris.steel.lnx@googlemail.com>
2671
2672 * posix/regex_internal.h (build_wcs_upper_buffer):
2673 Return type is reg_error_t.
2674
25a34eb7
UD
26752008-12-05 Ulrich Drepper <drepper@redhat.com>
2676
f3721ab2
UD
2677 * posix/globtest.sh: Use mktemp to create temporary file and
2678 directory.
2679
25a34eb7
UD
2680 * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_SET_S): Handle large
2681 sets correctly.
2682 (__CPU_CLR_S): Likewise.
2683 (__CPU_ISSET_S): Likewise.
2684
8680179f
UD
26852008-12-05 Joseph Myers <joseph@codesourcery.com>
2686 Ulrich Drepper <drepper@redhat.com>
2687
2688 * scripts/firstversion.awk: Use custom comparison function to compare
2689 version numbers.
2690 * scripts/versions.awk: Use sort invocation which can handle
2691 multi-digit sub-version numbers.
2692
72d50908
UD
26932008-12-04 Ulrich Drepper <drepper@redhat.com>
2694
2695 * locale/programs/ld-address.c (DEFINE_LANGUAGE_CODE2): Define.
2696 * locale/iso-639.def: Add Chhattisgarhi entry.
2697
f93fc0b7
UD
26982008-12-02 Ulrich Drepper <drepper@redhat.com>
2699
da5ac135
UD
2700 * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname3_r): Recognize
2701 ESRCH return value.
2702 (_nss_dns_gethostbyname4_r): Likewise.
2703 * resolv/res_init.c (__res_vinit): Initialize nscount to zero.
2704 * sysdeps/posix/getaddrinfo.c (gaih_inet): In case we use
2705 gethostbyname4_r, we don't have a separate IPv6 status, so copy
2706 the no_data variable.
2707
6f5c3117
UD
2708 * resolv/res_init.c (__res_vinit): Fill in IPv4 name server
2709 information at the correct index.
2710
f93fc0b7
UD
2711 * socket/sys/socket.h: Declare accept4.
2712 * socket/accept4.c: New file.
2713 * sysdeps/unix/sysv/linux/accept4.c: New file.
2714 * sysdeps/unix/sysv/linux/i386/accept4.S: New file.
2715 * socket/Makefile (routines): Add accept4.
2716 * socket/Versions: Export accept4 with version GLIBC_2.10.
2717 * socket/paccept.c: Removed.
2718 * sysdeps/unix/sysv/linux/paccept.c: Removed.
2719 * sysdeps/unix/sysv/linux/i386/paccept.S: Removed.
2720 * Versions.def: Define GLIBC_2.10 for libc.
2721 * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_ACCEPT4.
2722
2723 * nscd/connections.c: Use accept4.
2724
2725 * sysdeps/unix/sysv/linux/i386/socket.S: Fix comment.
2726
1fa7ae05
UD
27272008-12-01 Ulrich Drepper <drepper@redhat.com>
2728
9744268c
UD
2729 * resolv/res_send.c (send_dg): Create sockets with non-blocking
2730 flag already set.
2731
1fa7ae05
UD
2732 * stdlib/setenv.c (unsetenv): Don't search environment if it does
2733 not exist.
30c06371
UD
2734 * stdlib/Makefile (tests): Add tst-unsetenv1.
2735 * stdlib/tst-unsetenv1.c: New file.
1fa7ae05 2736
37a6a271
UD
27372008-11-29 Ulrich Drepper <drepper@redhat.com>
2738
2739 * login/utmp_file.c (file_writable): New variable.
2740 (setutent_file): Don't try to open file for writing.
2741 (pututline_file): Before writing, make descriptor writable if
2742 necessary.
2743
ca4dc0fe
UD
27442008-11-26 Ulrich Drepper <drepper@redhat.com>
2745
be4607eb
UD
2746 * sysdeps/posix/getaddrinfo.c (getaddrinfo): Only restrict search
2747 to IPv4 or IPv6 if an interface has been found.
ca4dc0fe 2748
01a74645
RM
27492008-11-26 Roland McGrath <roland@redhat.com>
2750
24fd0a5b
RM
2751 * sysdeps/unix/sysv/linux/alpha/ipc_priv.h: Renamed to ...
2752 * sysdeps/unix/sysv/linux/powerpc/ipc_priv.h: ... here.
2753
2754 * sysdeps/unix/sysv/linux/alpha/wordexp.c: Renamed to ...
2755 * sysdeps/unix/sysv/linux/ia64/wordexp.c: ... here.
2756 * sysdeps/unix/sysv/linux/sparc/sparc64/wordexp.c: Change #include.
2757
01a74645
RM
2758 * elf/elf.h (NT_386_IOPERM): New macro.
2759 (NT_PPC_VSX): New macro.
2760
c0439b95
RM
27612008-11-25 Roland McGrath <roland@redhat.com>
2762
2763 * sysdeps/alpha, sysdeps/unix/bsd/osf/alpha,
2764 sysdeps/unix/bsd/Attic/osf1/alpha, sysdeps/unix/sysv/linux/alpha,
2765 sysdeps/unix/sysv/linux/alpha/alpha, sysdeps/unix/alpha,
2766 sysdeps/mach/alpha, sysdeps/mach/hurd/alpha:
2767 Subdirectories moved to ports repository.
2768 * configure.in (base_machine): Remove alpha case.
2769
d3dc523b
RM
27702008-11-25 Thomas Schwinge <tschwinge@gnu.org>
2771
2772 * sysdeps/mach/strerror_l.c: New file.
2773
edba7a54
UD
27742008-11-13 Ryan S. Arnold <rsa@us.ibm.com>
2775
2776 [BZ #6411]
2777 * sysdeps/powerpc/fpu/Makefile: Added test case tst-setcontext-fpscr.
2778 * sysdeps/powerpc/fpu/feholdexcpt.c (_FPU_MASK_ALL): Define to replace
2779 magic numbers.
2780 * sysdeps/powerpc/fpu/fenv_libc.h (fesetenv_register): Dynamically
2781 choose mtfsf insn based on PPC_FEATURE_HAS_DFP.
2782 (relax_fenv_state): Same as above.
2783 (FPSCR_29): Reserve bit in ISA 2.05.
2784 (FPSCR_NI): Provide define for compat.
2785 * sysdeps/powerpc/fpu/fesetenv.c (_FPU_MASK_ALL): Define to replace
2786 magic numbers.
2787 * sysdeps/powerpc/fpu/feupdateenv.c (_FPU_MASK_ALL): Define to replace
2788 magic numbers.
2789 * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c: New file. Test case to
2790 test setcontext and swapcontext with dynamic 64-bit FPSCR detection.
2791 * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S (__longjmp): Adjust
2792 access to hwcap to account for hwcap size increase to uint64_t.
2793 * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S (__sigsetjmp ):
2794 Likewise.
2795 * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext-common.S
2796 (*setcontext): Likewise.
2797 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/setcontext.S:
2798 New file.
2799 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/swapcontext.S:
2800 New file.
2801 * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S
2802 (*setcontext): dynamically select mtfsf insn based on
2803 PPC_FEATURE_HAS_DFP. Adjust access to hwcap to account for hwcap size
2804 increase to uint64_t.
2805 * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S
2806 (*swapcontext): dynamically select mtfsf insn based on
2807 PPC_FEATURE_HAS_DFP. Adjust access to hwcap to account for hwcap size
2808 increase to uint64_t.
2809 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/setcontext.S:
2810 New file.
2811 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/swapcontext.S:
2812 New file.
2813 * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S
2814 (*setcontext): dynamically select mtfsf insn based on
2815 PPC_FEATURE_HAS_DFP.
2816 * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S
2817 (*swapcontext): dynamically select mtfsf insn based on
2818 PPC_FEATURE_HAS_DFP.
2819
ec297962
UD
28202008-11-13 Ulrich Drepper <drepper@redhat.com>
2821
b5449f8a 2822 * version.h: Bump for 2.9 release.
f52bb4d7 2823 * include/features.h (__GLIBC_MINOR__): Bump to 9.
b5449f8a 2824
ec297962
UD
2825 [BZ #7029]
2826 * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_ALLOC_SIZE):
2827 Multiply with sizeof of __cpu_mask, not 8 unconditionally after
2828 all the rounding.
2829
3cac8b75
UD
28302008-11-11 Ulrich Drepper <drepper@redhat.com>
2831
0e54a725 2832 [BZ #7009]
3cac8b75
UD
2833 * resolv/nss_dns/dns-host.c (gaih_getanswer_slice): Don't abort for
2834 unknown request types for now.
2835
58a4b51a
RM
28362008-11-11 Roland McGrath <roland@redhat.com>
2837
2838 * sysdeps/x86_64/configure: New file.
2839
2840 * configure.in: Add AC_SUBST(libc_cv_cpp_asm_debuginfo).
2841 * configure: Regenerated.
2842
01bd5e96
JJ
28432008-11-03 Martin Schwidefsky <schwidefsky@de.ibm.com>
2844
2845 * sysdeps/s390/s390-64/dl-trampoline.S (_dl_runtime_profile): Use the
2846 correct instruction to remove the stack frame.
2847
a9069550
JJ
28482008-11-03 Michael Matz <matz@suse.de>
2849
2850 * sysdeps/s390/bits/atomic.h (__arch_compare_and_exchange_val_32_acq,
2851 __arch_compare_and_exchange_val_64_acq): Add "memory" clobber.
2852
4b23f9bd
JJ
28532008-11-07 Jakub Jelinek <jakub@redhat.com>
2854
09f66a4f
JJ
2855 * include/stdio.h (__builtin_fwrite, __builtin_fwrite_unlocked):
2856 Remove.
2857
4b23f9bd
JJ
2858 * bits/libc-tsd.h (__libc_tsd_define, __libc_tsd_address,
2859 __libc_tsd_get, __libc_tsd_set): Add TYPE argument, use it as the type
2860 of the thread variable instead of void *.
2861 * sysdeps/mach/hurd/bits/libc-tsd.h (__libc_tsd_define,
2862 __libc_tsd_address, __libc_tsd_get, __libc_tsd_set): Likewise.
2863 * include/ctype.h (CTYPE_B, CTYPE_TOUPPER, CTYPE_TOLOWER): Adjust
2864 __libc_tsd_define arguments.
2865 (__ctype_b_loc, __ctype_toupper_loc, __ctype_tolower_loc): Adjust
2866 __libc_tsd_address arguments. Remove union hack.
2867 * include/rpc/rpc.h (RPC_VARS): Adjust __libc_tsd_define arguments.
2868 * sunrpc/rpc_thread.c (RPC_VARS): Likewise.
2869 (__rpc_thread_destroy, rpc_thread_multi, __rpc_thread_variables):
2870 Adjust __libc_tsd_{set,get} arguments.
2871 * ctype/ctype-info.c (CTYPE_B, CTYPE_TOUPPER, CTYPE_TOLOWER): Adjust
2872 __libc_tsd_define arguments.
2873 * locale/uselocale.c (__uselocale): Adjust __libc_tsd_{set,get}
2874 arguments.
2875 * locale/lc-ctype.c (_nl_postload_ctype): Likewise.
2876 * locale/global-locale.c (__libc_tsd_LOCALE): Adjust type.
2877 (LOCALE): Adjust __libc_tsd_define arguments.
2878 * locale/localeinfo.h (_NL_CURRENT_LOCALE): Adjust __libc_tsd_get
2879 arguments.
2880 (LOCALE): Adjust __libc_tsd_define arguments.
2881 * sysdeps/mach/hurd/malloc-machine.h (MALLOC): Adjust __libc_tsd_define
2882 arguments.
2883 (tsd_setspecific, tsd_getspecific): Adjust __libc_tsd_{set,get}
2884 arguments.
2885
486bdb88
UD
28862008-11-02 Ulrich Drepper <drepper@redhat.com>
2887
2888 * malloc/malloc.c (public_rEALLOc): When new arena is used, copy
2889 really all bytes. Patch by Denys Vlasenko <dvlasenk@redhat.com>.
2890
64647f9a
UD
28912008-11-01 Ulrich Drepper <drepper@redhat.com>
2892
2893 [BZ #6966]
2894 * misc/hsearch_r.c (hsearch_r): Fix secondary hash function.
2895
acd44dbc
UD
28962008-10-24 Joseph Myers <joseph@codesourcery.com>
2897 Ulrich Drepper <drepper@redhat.com>
2898
2899 * math/tgmath.h (__floating_type): Use __builtin_classify_type in
2900 definition for GCC 3.1 and later.
64647f9a 2901
41e25904
UD
29022008-10-31 Jakub Jelinek <jakub@redhat.com>
2903
2904 * elf/dl-tls.c (__tls_get_addr): After calling _dl_update_slotinfo
2905 refetch dtv, as it might have changed.
2906 * elf/Makefile: Add rules to build and run tst-tls18.
2907 * elf/tst-tls18.c: New test.
2908 * elf/tst-tlsmod18a.c: New file.
2909
e148a644 29102008-09-09 Aurelien Jarno <aurelien@aurel32.net>
97f12390 2911
da9c2314 2912 [BZ #6875]
e148a644
UD
2913 * iconvdata/gconv-modules: Add LATIN9 as an alias to ISO-8859-15.
2914
29152008-10-31 Ulrich Drepper <drepper@redhat.com>
97f12390 2916
6daf1a2f
UD
2917 [BZ #6867]
2918 * sysdeps/powerpc/elf/rtld-global-offsets.sym: Fix typo.
2919
6f576bf6
UD
2920 [BZ #6919]
2921 * posix/spawnattr_getschedparam.c (posix_spawnattr_getschedparam):
2922 Fix length of copy operation.
2923
45a8beb5
UD
29242008-10-02 Pierre Habouzit <madcoder@debian.org>
2925
2926 * sysdeps/unix/sysv/linux/eventfd.c (eventfd): Use the eventfd2 syscall
2927 and fix its calling convention.
2928
ad12e635
UD
29292008-10-07 Andreas Schwab <schwab@suse.de>
2930
2931 [BZ #6942]
2932 * resolv/res_send.c (send_vc): Fix last change.
2933 (send_dg): Align here as well.
2934
3cf44918
UD
29352008-10-31 Ulrich Drepper <drepper@redhat.com>
2936
dbb6ab3e
UD
2937 * sysdeps/unix/sysv/linux/ulimit.c (__ulimit): Handle UL_GETFSIZE
2938 return value in case rlimit is RLIM_INFINITY.
2939
2940 [BZ #6947]
2941 * sysdeps/unix/sysv/linux/ulimit.c (__ulimit): Fix return value
2942 for UL_SETFSIZE.
1828d6b0
UD
2943 * resource/Makefile (tests): Add bug-ulimit1.
2944 * resource/bug-ulimit1.c: New file.
dbb6ab3e 2945
a5ff533e
UD
2946 [BZ #6974]
2947 * sunrpc/rpc_main.c (mkfile_output): Properly handle filename
2948 without dot. Properly terminate the string with a null byte.
2949 Based on a patch by Aurelien Jarno <aurelien@aurel32.net>.
2950
4bed549a
UD
2951 [BZ #6980]
2952 * debug/getgroups_chk.c (__getgroups_chk): Return EINVAL error for
2953 negative sizees.
2954 * posix/bits/unistd.h (getgroups): Call __getgroups_chk for
2955 negative __size.
2956
3cf44918
UD
2957 [BZ #6995]
2958 * sysdeps/powerpc/powerpc32/dl-machine.c: Fix typo in message.
2959
21b07d8b
UD
29602008-10-30 Ulrich Drepper <drepper@redhat.com>
2961
332c4465
UD
2962 * grp/initgroups.c (internal_getgrouplist): Don't prematurely
2963 abort if there is no initgroups_dyn function.
2964
21b07d8b
UD
2965 * resolv/res_send.c (send_dg): On timeout, only return nonzero
2966 result if any of the queries really provided an answer.
2967
4caa3fb7
UD
29682008-10-28 Ulrich Drepper <drepper@redhat.com>
2969
2970 * po/lt.po: Update from translation team.
2971
a22c3a0d
UD
29722008-10-26 Ulrich Drepper <drepper@redhat.com>
2973
2974 * po/id.po: Update from translation team.
2975
49685151
UD
29762008-10-24 Ulrich Drepper <drepper@redhat.com>
2977
2978 * resolv/res_query.c (__libc_res_nquery): Add a few casts.
660675de 2979 Fix tests for existence of second reply.
49685151 2980
8d9d5d35
UD
29812008-10-23 Ulrich Drepper <drepper@redhat.com>
2982
2983 * po/id.po: New file.
2984 Contributed by the Indonesian translation team.
2985
208bc836
UD
29862008-10-22 Dmitry V. Levin <ldv@altlinux.org>
2987
2988 * misc/syslog.c (openlog_internal): Fix __have_sock_cloexec
2989 initialization.
2990
60a23f5a
UD
29912008-10-17 Jakub Jelinek <jakub@redhat.com>
2992
2993 * elf/Makefile: Add rules to build and run tst-tls17.
2994 * elf/tst-tls17.c: New test.
2995 * elf/tst-tlsmod17a.c: New file.
2996 * elf/tst-tlsmod17b.c: Likewise.
2997
292eb817
UD
29982008-10-17 Ulrich Drepper <drepper@redhat.com>
2999
3000 * stdlib/divmod_1.c: Use correct type for dummy variable.
3001 * stdlib/mod_1.c: Likewise.
3002
5df2a427
UD
30032008-10-16 Ulrich Drepper <drepper@redhat.com>
3004
3005 * elf/dl-tls.c (_dl_update_slotinfo): Copy all of the initial DTV.
3006
472e5e08
JJ
30072008-10-16 Jakub Jelinek <jakub@redhat.com>
3008
3009 * sysdeps/unix/sysv/linux/sys/signalfd.h (signalfd): Fix __THROW vs.
3010 __nonnull order for C++.
3011 * sysdeps/unix/sysv/linux/alpha/sys/signalfd.h (signalfd): Likewise.
3012 * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h (signalfd): Likewise.
3013
86900abd
RM
30142008-10-01 Daniel Jacobowitz <dan@codesourcery.com>
3015
3016 * stdlib/longlong.h: Update from GCC.
3017
19c10a47
JJ
30182008-10-09 Jakub Jelinek <jakub@redhat.com>
3019 David S. Miller <davem@davemloft.net>
3020
3021 * sysdeps/sparc/sparc64/sparcv9v/memcpy.S: When not USE_BPR,
3022 make sure any registers used with 64-bit 'branch-on-register'
3023 instructions have their top 32-bits clear.
3024 * sysdeps/sparc/sparc64/sparcv9v/memset.S: Likewise.
3025 * sysdeps/sparc/sparc64/sparcv9v2/memcpy.S: Likewise.
3026
2fdde3b9
UD
30272008-09-18 Andreas Schwab <schwab@suse.de>
3028
3029 [BZ #6942]
3030 * resolv/res_send.c (send_vc): Fix use of unaligned address.
f00d47a3 3031 Properly handle partial reads.
2fdde3b9 3032
6ba25fcb
RM
30332008-10-01 Mark Shinwell <shinwell@codesourcery.com>
3034
3035 * elf/elf.h (STO_MIPS_PLT): New.
3036 (R_MIPS_COPY): New.
3037 (R_MIPS_JUMP_SLOT): New.
3038 (R_MIPS_NUM): Redefine to 128.
3039 (DT_MIPS_PLTGOT): New.
3040 (DT_MIPS_RWPLT): New.
3041 (DT_MIPS_NUM): Redefine to 0x35.
3042
97898201
UD
30432008-10-01 Ulrich Drepper <drepper@redhat.com>
3044
3045 * timezone/africa: Update from tzdata2008f.
3046 * timezone/asia: Likewise.
3047 * timezone/australasia: Likewise.
3048 * timezone/europe: Likewise.
3049 * timezone/leapseconds: Likewise.
3050 * timezone/northamerica: Likewise.
3051 * timezone/southamerica: Likewise.
3052 * timezone/zone.tab: Likewise.
3053
3452ded5
UD
30542008-09-30 Ulrich Drepper <drepper@redhat.com>
3055
3056 * nscd/connections.c: Disable use of paccept for now.
3057
54ad9327
UD
30582008-09-29 Ulrich Drepper <drepper@redhat.com>
3059
8ec2550e
UD
3060 * socket/Versions: Remove paccept export for GLIBC_2.9.
3061 * socket/Makefile (routines): Remove paccept.
3062 * socket/sys/socket.h: Remove paccept declaration.
3063
54ad9327
UD
3064 * po/sv.po: Update from translation team.
3065
1c5eba39
UD
30662008-09-22 Deborah S. Townsend <dstownse@us.ibm.com>
3067
3068 * sysdeps/s390/s390-64/s390x-mcount.S: Replace ahi with aghi.
3069 * sysdeps/unix/sysv/linux/s390/s390-64/socket.S: Likewise.
3070
0a26fc4d
UD
30712008-09-16 Ulrich Drepper <drepper@redhat.com>
3072
3073 * dlfcn/dlopen.c (dlopen_doit): Allow __RTLD_SPROF flag.
3074 Patch by Olivier Fourdan <ofourdan@redhat.com>.
3075
2bcaff08
UD
30762008-09-15 Ulrich Drepper <drepper@redhat.com>
3077
3078 * sunrpc/rpc/svc.h: Declare svcfd_create.
3079 Patch by Michael Solberg <msolberg@redhat.com>.
3080
caa60cb9 30812008-09-12 Flavio Leitner <fleitner@redhat.com>
f00d47a3 3082 Ulrich Drepper <drepper@redhat.com>
caa60cb9
UD
3083
3084 * malloc/malloc.c (public_vALLOc): Try other arenas in case
3085 _int_valloc fails.
3086 (public_pVALLOc): Likewise.
3087
6c161112
AJ
30882008-09-02 Andreas Jaeger <aj@suse.de>
3089
3090 * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: Fix last
3091 commit.
3092
0cb269d7
RM
30932008-08-26 Aurelien Jarno <aurelien@aurel32.net>
3094
452034cc 3095 [BZ #6860]
2bcaff08 3096 * hurd/hurd/signal.h (HURD_MSGPORT_RPC): Fix a typo.
0cb269d7 3097
13074b5b
RM
30982008-07-18 Daniel Jacobowitz <dan@codesourcery.com>
3099
3100 * Makefile (check-data): Check data directory in add-ons.
3101 * elf/Makefile (check-data): Likewise.
3102
58801a0e
RM
31032008-08-18 Roland McGrath <roland@redhat.com>
3104
3105 * configure.in (--with-cpu): Check compiler support for -march/-mcpu.
3106 * configure: Regenerated.
3107 * config.make.in (cflags-cpu): New substituted variable.
3108 (with-cpu): Variable removed.
3109 * Makeconfig (+cflags): Use $(cflags-cpu), not $(with-cpu).
3110
7df49c5d
UD
31112008-08-14 Ryan S. Arnold <rsa@us.ibm.com>
3112
3113 [BZ #6845]
3114 * sysdeps/powerpc/fpu/bits/mathinline.h (__signbitl): Copy new
3115 __signbitl definition and __LONG_DOUBLE_128__ guard from:
3116 * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h: Remove as
3117 redundant. Functions which call floating point assembler operations
3118 should go into a sysdeps powerpc/fpu directory.
3119
965805e8
UD
31202008-08-15 Ulrich Drepper <drepper@redhat.com>
3121
3122 * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Define MAP_STACK.
3123 * sysdeps/unix/sysv/linux/i386/bits/mman.h: Likewise.
3124
9cf73ab0
UD
31252008-08-14 Ulrich Drepper <drepper@redhat.com>
3126
62a1ffc6
UD
3127 * sysdeps/x86_64/memset.S: Reduce size of tables for PIC.
3128
9cf73ab0
UD
3129 * sysdeps/unix/sysv/linux/dl-origin.c (_dl_get_origin): Undo all
3130 change related to AT_EXECFN. We cannot use that string.
3131 * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Remove
3132 _dl_execfn member.
3133 * elf/dl-support.c: Remove _dl_execfn variable.
3134 (_dl_aux_init): Remove handling of AT_EXECFN.
3135 * elf/dl-sysdep.c (_dl_sysdep_start): Remove handling of AT_EXECFN.
3136 * elf/rtld.c (process_envvars): Remove use of __ASSUME_AT_EXECFN.
3137
1bfa05cf
UD
31382008-08-13 Ulrich Drepper <drepper@redhat.com>
3139
7b3ba2c4
UD
3140 [BZ #6544]
3141 * libio/fmemopen.c: Implement binary mode. In this mode no NUL
3142 byte gets added to writes and seeks from the end use the length of
3143 the buffer and not the currently terminating NUL byte.
3144
1bfa05cf
UD
3145 [BZ #6634]
3146 * login/utmp_file.c (getutent_r_file): Take additional parameter.
3147 Set to true if locking failed.
3148 (getutid_r_file): Adjust caller.
3149 (pututline_file): Likewise. Return NULL in this case.
3150 Patch mostly by halesh.s@gmail.com.
3151
c5671698
UD
31522008-08-12 Ulrich Drepper <drepper@redhat.com>
3153
3154 [BZ #6589]
3155 * sysdeps/unix/sysv/linux/ifaddrs.c (struct sockaddr_ll_max):
3156 Define.
3157 (struct ifaddrs_storage): Use it instead of sockaddr_ll.
3158
4497384e
UD
31592008-08-12 Ryan S. Arnold <rsa@us.ibm.com>
3160
3161 [BZ #6839]
3162 * sysdeps/powerpc/powerpc32/dl-machine.c (CHECK_STATIC_TLS): Remove
3163 macro since it is now available in elf/dynamic-link.h.
3164
675d7111
RM
31652008-08-12 Roland McGrath <roland@frob.com>
3166
3167 * hurd/hurd/signal.h (HURD_MSGPORT_RPC): Avoid -Wparenthesis triggers,
3168 in case used outside of libc.
3169 Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>
3170
8b254432
UD
31712008-08-11 Ulrich Drepper <drepper@redhat.com>
3172
3173 * resolv/res_mkquery.c (res_nmkquery): Call ns_name_compress
3174 directly instead of going through dn_comp.
3175
ac84eeca
RM
31762008-08-11 Aurelien Jarno <aurel32@debian.org>
3177
3178 * sysdeps/mach/i386/machine-lock.h (__spin_unlock, __spin_try_lock):
3179 Fix asm constraints.
3180
f081b451
UD
31812008-08-07 Ulrich Drepper <drepper@redhat.com>
3182
3183 [BZ #6790]
3184 * sysdeps/unix/sysv/linux/bits/in.h (IP_PMTUDISC_PROBE): Define.
3185 (IPV6_PMTUDISC_PROBE): Likewise.
3186
30a4429e
UD
31872008-08-07 Pete Eberlein <eberlein@us.ibm.com>
3188
3189 [BZ #6791]
3190 * sysdeps/unix/sysv/linux/powerpc/bits/mman.h (PROT_SAO): Define.
3191
1642331d 31922008-08-01 Steven Munroe <sjmunroe@us.ibm.com>
626f68ff 3193 Carlos Eduardo Seo <cseo@linux.vnet.ibm.com>
1642331d
UD
3194
3195 [BZ #6817]
3196 * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags):
3197 Added the members 'vsx' and 'arch_2_06'.
3198 (_dl_powerpc_platforms): Add the member 'power7'.
3199 * sysdeps/powerpc/dl-procinfo.h: Modify _DL_HWCAP_FIRST
3200 to reflect the changes required by VSX and ISA 2.06.
3201 Modify _DL_PLATFORMS_COUNT to reflect the addition of
3202 'power7'.
3203 Defined PPC_PLATFORM_POWER7.
3204 (_dl_string_platform): Add support for POWER7.
3205 * sysdeps/powerpc/sysdep.h: Define bit masks for VSX
3206 capability and ISA 2.06.
3207
48b94661
UD
32082008-08-07 Ulrich Drepper <drepper@redhat.com>
3209
3210 [BZ #6824]
3211 * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h: Use correct
3212 macro to detect use of 128 bit long double.
3213 Patch by Ryan S. Arnold <rsa@us.ibm.com>.
3214
9523fd28
UD
32152008-08-05 Ulrich Drepper <drepper@redhat.com>
3216
9c0cb150
UD
3217 * scripts/gen-as-const.awk: Use 32-bit values on 32-bit platforms.
3218
46aea5cb 3219 [BZ #5794]
9523fd28
UD
3220 * sysdeps/i386/fpu/s_expm1l.S: Simply use exp implementation for large
3221 parameters.
3222 * sysdeps/x86_64/fpu/s_expm1l.S: Likewise.
3223 Patch by Denys Vlasenko <dvlasenk@redhat.com>.
3224
c400c931
UD
32252008-08-03 Ulrich Drepper <drepper@redhat.com>
3226
3227 * nscd/connections.c (main_loop_poll): Pass a buffer which is
3228 guaranteed to be large enough to read inotify event. Ignore
3229 EAGAIN error. Better error message. Add branch predicition.
3230 (main_loop_epoll): Likewise.
3231
3f39adac
RM
32322008-08-02 Roland McGrath <roland@frob.com>
3233
3234 * sysdeps/mach/i386/machine-lock.h (__spin_unlock, __spin_try_lock):
3235 Add memory clobbers.
3236
3501542f
UD
32372008-08-02 Ulrich Drepper <drepper@redhat.com>
3238
48b22986
UD
3239 * manual/arith.texi: Avoid @strong{Note:}.
3240 * manual/creature.texi: Likewise.
3241 * manual/filesys.texi: Likewise.
3242 * manual/math.texi: Likewise.
3243 * manual/memory.texi: Likewise.
3244 * manual/resource.texi: Likewise.
3245 * manual/syslog.texi: Likewise.
3246 * manual/time.texi: Likewise.
3247
3501542f
UD
3248 * sysdeps/posix/clock_getres.c (hp_timing_getres): Remove inline
3249 to prevent warning.
3250
17756df3
UD
32512008-08-01 Ulrich Drepper <drepper@redhat.com>
3252
ebcc1f4d
UD
3253 * sysdeps/unix/sysv/linux/Versions: Fix changes due to old patch for
3254 new epoll_create1 interface.
3255 * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
3256 * sysdeps/unix/sysv/linux/sys/epoll.h: Likewise.
3257 * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
3258
144bfa86
UD
3259 * include/arpa/nameser.h (NS_GET16): Use const pointer.
3260 (NS_GET32): Likewise.
3261
7e1b29c6
UD
3262 * sysdeps/unix/sysv/linux/kernel-features.h: s390 has the new
3263 syscalls, too.
3264
42fa1f67
UD
3265 * sysdeps/unix/sysv/linux/dl-origin.c (_dl_get_origin): We cannot
3266 use the AT_EXECFN value if it is no absolute path.
3267 * sysdeps/unix/sysv/linux/kernel-features.h: Never define
3268 __ASSUME_AT_EXECFN.
3269
cd5743fd
UD
3270 * Versions.def: Add GLIBC_2.9 to libresolv.
3271 * include/resolv.h: Remove hidden proto declarations for __ns_*
3272 functions. Add them for __dn_count_labels and __p_secstodate.
3273 * include/arpa/nameser.h: Add a number of hidden proto declarations.
3274 Define ns_msg_getflags macro here.
3275 * resolv/res_debug.c: Add hidden definition for __dn_count_labels
3276 and __p_secstodate.
3277 * resolv/Versions: Export functions from <arpa/nameser.h> from
3278 libresolv in version GLIBC_2.9.
3279 * resolv/ns_name.c: Integrate changes from bind 9.5.0. Add necessary
3280 hidden definitions.
3281 * resolv/ns_netint.c: Likewise.
3282 * resolv/ns_parse.c: Likewise.
3283 * resolv/ns_print.c: Likewise.
3284 * resolv/ns_samedomain.c: Likewise.
3285 * resolv/ns_ttl.c: Likewise.
3286 * resolv/arpa/nameser_compat.h: Likewise.
3287 * resolv/arpa/nameser.h: Likewise. Remove macros which redirect
3288 function calls.
3289 * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Use __ns_get16
3290 instead of ns_get16.
3291 * resolv/nss_dns/dns-host.c (getanswer_r): Use __ns_get16 and
3292 __ns_get32 instead of ns_get16 and ns_get32 respectively.
3293 (gaih_getanswer_slice): Likewise.
3294 * resolv/Makefile (libresolv-routines): Add ns_date.
3295 * resolv/ns_date.c: New file.
3296
17756df3
UD
3297 * elf/Makefile (check-localplt.out): Also check libresolv and
3298 libcrypt.
3299
46bc5d43
UD
33002008-07-31 Ulrich Drepper <drepper@redhat.com>
3301
3302 * sysdeps/unix/sysv/linux/kernel-features.h: Define
3303 __ASSUME_O_CLOEXEC.
3304
a707cff6
UD
33052008-07-30 Ulrich Drepper <drepper@redhat.com>
3306
3c227386
UD
3307 * sysdeps/posix/getaddrinfo.c (gaih_inet): Raise size of initial
3308 buffer passed to NSS functions.
3309
9523fd28 3310 * nscd/connections.c (nscd_init): Typo in preprocessor directive.
bd7f4857
UD
3311
3312 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_PACCEPT):
3313 Define.
3314
a707cff6
UD
3315 * misc/syslog.c (openlog_internal): Fix compile problem.
3316
0424d007
RM
33172008-07-28 Roland McGrath <roland@redhat.com>
3318
3319 * elf/dl-sysdep.c (_dl_show_auxv): Add AT_EXECFN to the table.
3320
b7da31a1
UD
33212008-07-28 Ulrich Drepper <drepper@redhat.com>
3322
300ea0ad
UD
3323 * io/ftw.c (add_object): Remove inline to avoid warning.
3324
d6173baa
UD
3325 * sysdeps/unix/sysv/linux/paccept.c: Fix compile problem.
3326
b7da31a1
UD
3327 * resolv/res_send.c (__libc_res_nsend): Take additional parameter.
3328 Use it instead of locally defined resplen2 variable.
3329 (res_nsend): Adjust for __libc_res_nsend interface change.
3330 (send_vc): Initialize *resplen2 if necessary. Read length of
3331 package into an appropriately aligned variable. Store converted length
3332 in new variable and use it appropriately.
3333 Add branch prediction help.
3334 * resolv/res_query.c (__libc_res_nquery): Take additional parameter
3335 and pass it on to __libc_res_nsend. Adjust all callers.
3336 (__libc_res_nsearch): Likewise.
3337 (__libc_res_nqeurydomain): Likewise.
3338 * resolv/nss_dns/dns-host.c: Adjust for __libc_res_nsearch interface
3339 change.
3340 (_nss_dns_gethostbyname4): Don't unconditionally allocate tmp array.
3341 Define resplen2 variable and pass it to __libc_res_nsearch and then
3342 to gaih_getanswer.
3343 (getanswer_r): In case of incorrect DNS data don't overread buffer.
3344 Add branch prediction.
3345 (gaih_getanswer_slice): Likewise. Check for invalid data types.
3346 (gaih_getanswer): Don't decode second slice if first one failed due
3347 to a too small buffer. Don't let not found status of second
3348 decoder shadow results of the first.
3349 * resolv/gethnamaddr.c (gethostbyname2): Adjust for __libc_res_nsearch
3350 and __libc_res_nquery interface changes
3351 (gethostbyaddr): Adjust for __libc_res_nquery interface change.
3352 * include/resolv.h: Adjust prototypes for __libc_res_nquery,
3353 __libc_res_nsearch, and __libc_res_nsend.
3354 * resolv/nss_dns/dns-canon.c: Adjust for __libc_res_nquery interface
3355 change.
3356 * resolv/nss_dns/dns-network.c: Adjust for __libc_res_nquery and
3357 __libc_res_nsearch interface changes.
3358
11ed3eae
UD
33592008-07-27 Ulrich Drepper <drepper@redhat.com>
3360
372aece0
UD
3361 * libio/iopopen.c (_IO_new_proc_open): Remove unnecessary volatile.
3362
e038616f
UD
3363 * posix/wordexp.c (exec_comm): Use pipe2 if possible to create
3364 file descriptors with close-on-exec set.
3365 (exec_comm_child): Fix the case where the write end of the pipe is
3366 STDOUT_FILENO already. In case it is, clear close-on-exec.
3367
d6e0c2a6
UD
3368 * sysdeps/unix/sysv/linux/syscalls.list: Add __pipe2 alias.
3369 * io/pipe2.c: Likewise.
3370 * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_PIPE2
3371 instead of __ASSUME_PACCEPT.
3372 * include/unistd.h: Declare __have_pipe2.
3373 * libio/iopopen.c: Implement "e" flag.
3374 * libio/Makefile (tests): Add tst-popen1.
3375 * libio/tst-popen1.c: New file.
3376
11ed3eae
UD
3377 * sysdeps/unix/sysv/linux/bits/socket.h: Define PF_ISDN and AF_ISDN.
3378 * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
3379
7438a80d
UD
33802008-07-26 Ulrich Drepper <drepper@redhat.com>
3381
c4a710b6
UD
3382 [BZ #6771]
3383 * libio/fileops.c (_IO_new_file_attach): Preserve errno around
3384 success call of _IO_SEEKOFF or calls which failed because the
3385 descriptor is for a pipe.
3386
31f3b159
UD
3387 * sunrpc/key_call.c (getkeyserv_handle): Use FD_CLOEXEC instead of
3388 magic number.
3389
c0216dfc
UD
3390 * misc/syslog.c (openlog_internal): Use SOCK_CLOEXEC if possible.
3391
72112b0c
UD
3392 * malloc/mtrace.c (mtrace): Use 'e' flag in fopen call. Drop
3393 F_SETFD use if we know fopen set the flag.
3394
7438a80d
UD
3395 * login/utmp_file.c (setutent_file): Minor optimization in case
3396 O_CLOEXEC is available.
3397
7b91359b
UD
33982008-07-24 Tom "spot" Callaway <tcallawa@redhat.com>
3399
3400 * Makeconfig: Define pie-ccflag and PIE-ccflag variables.
3401 * elf/Makefile: Use pie-ccflag variable.
3402 * nscd/Makefile: Likewise.
3403 * sysdeps/sparc/Makefile: Set $(pie-ccflag) to -fPIE.
3404
4057dc45
UD
34052008-07-21 Andreas Krebbel <krebbel1@de.ibm.com>
3406
e7135e24 3407 [BZ #6724]
4057dc45
UD
3408 * Versions.def: Add GLIBC_2.9 version tag for libutil.
3409 * sysdeps/unix/sysv/linux/s390/bits/utmp.h: Copy of
3410 gnu/bits/utmp.h. Check for __WORDSIZE_COMPAT32 removed.
3411 * sysdeps/unix/sysv/linux/s390/bits/utmpx.h: Copy of
3412 gnu/bits/utmpx.h. Check for __WORDSIZE_COMPAT32 removed.
3413 * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Add new files
3414 utmp32, utmpx32 and login32.
3415 * sysdeps/unix/sysv/linux/s390/s390-32/Versions: Add 2.9
3416 versions of struct utmp functions to libc and libutil.
3417 * sysdeps/unix/sysv/linux/s390/s390-32/utmp-compat.h: New file.
3418 * sysdeps/unix/sysv/linux/s390/s390-32/getutent.c: New file.
3419 * sysdeps/unix/sysv/linux/s390/s390-32/getutent_r.c: New file.
3420 * sysdeps/unix/sysv/linux/s390/s390-32/getutid.c: New file.
3421 * sysdeps/unix/sysv/linux/s390/s390-32/getutid_r.c: New file.
3422 * sysdeps/unix/sysv/linux/s390/s390-32/getutline.c: New file.
3423 * sysdeps/unix/sysv/linux/s390/s390-32/getutline_r.c: New file.
3424 * sysdeps/unix/sysv/linux/s390/s390-32/getutmp.c: New file.
3425 * sysdeps/unix/sysv/linux/s390/s390-32/getutxent.c: New file.
3426 * sysdeps/unix/sysv/linux/s390/s390-32/getutxid.c: New file.
3427 * sysdeps/unix/sysv/linux/s390/s390-32/getutxline.c: New file.
3428 * sysdeps/unix/sysv/linux/s390/s390-32/login.c: New file.
3429 * sysdeps/unix/sysv/linux/s390/s390-32/login32.c: New file.
3430 * sysdeps/unix/sysv/linux/s390/s390-32/pututxline.c: New file.
3431 * sysdeps/unix/sysv/linux/s390/s390-32/updwtmp.c: New file.
3432 * sysdeps/unix/sysv/linux/s390/s390-32/updwtmpx.c: New file.
3433 * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: New file.
3434 * sysdeps/unix/sysv/linux/s390/s390-32/utmp32.c: New file.
3435 * sysdeps/unix/sysv/linux/s390/s390-32/utmp32.h: New file.
3436 * sysdeps/unix/sysv/linux/s390/s390-32/utmpx-convert.h: New file.
3437 * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.c: New file.
3438 * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.h: New file.
3439
ff0bf753
UD
34402008-07-26 Ulrich Drepper <drepper@redhat.com>
3441
619cc2f6
UD
3442 * scripts/gen-as-const.awk: Generate more widely usable code by
3443 using 64-bit arithmetic.
3444
1311b164 3445 * stdio-common/printf_fp.c (___printf_fp): Give wide outout code
3f414923 3446 the same treatment as narrow output code in last patch.
1311b164 3447
ff0bf753
UD
3448 * sunrpc/clnt_udp.c (__libc_clntudp_bufcreate): Namespace cleanup.
3449
3f414923 3450 [BZ #6763]
ff0bf753
UD
3451 * elf/dl-load.c (local_strdup): Remove inline.
3452 (_dl_map_object_from_fd): Don't allocate l_symbolic_searchlist.r_list.
3453 * elf/dl-object.c (_dl_new_object): Allocate symbolic searchlist as
3454 part of the object.
3455
3456 * sysdeps/unix/sysv/linux/dl-origin.c: Add const to avoid warning.
3457
8ccf22f9
UD
34582008-07-25 Ulrich Drepper <drepper@redhat.com>
3459
bdd24a30
UD
3460 * sysdeps/unix/sysv/linux/kernel-features.h: IA-64 and SPARC have
3461 the new syscalls, too.
b5c0b5e4 3462
b41f1d14
UD
3463 * sysdeps/i386/i686/memcmp.S: Fix unwind information.
3464 Reported by Paul Pluzhnikov <ppluzhnikov@google.com>.
3465
3703468e
UD
3466 [BZ #6698]
3467 * stdio-common/_i18n_number.h (_i18n_number_rewrite): Take additional
3468 parameter for end of buffer. If temporary copy is too large use
3469 malloc.
3470 * stdio-common/vfprintf.c: Adjust for _i18n_number_rewrite
3471 interface change.
3472 * stdio-common/printf_fp.c (__printf_fp): Likewise.. Account for
3473 string rewrite when allocating buffer.
3474
bb0277bf
UD
3475 * sysdeps/unix/sysv/linux/kernel-features.h: PPC has the new
3476 syscalls, too.
3477
9dd84772
UD
3478 * nscd/connections.c (nscd_init): Clean up fcntl call.
3479
c418b1ba
UD
3480 * nscd/nscd_helper.c (open_socket): Use SOCK_CLOEXEC and
3481 SOCK_NONBLOCK if possible.
3482
b206d8b1
UD
3483 * sysdeps/unix/sysv/linux/opensock.c (__opensock): Use
3484 SOCK_CLOEXEC if available.
3485
8ccf22f9
UD
3486 * include/rpc/clnt.h: Declare __libc_clntudp_bufcreate and
3487 __libc_clntudp_bufcreate_internal.
3488 * include/sys/socket.h: Declare __have_sock_cloexec.
3489 * socket/Makefile (aux): Add have_sock_cloexec.
3490 * socket/have_sock_cloexec.c: New file.
3491 * sunrpc/clnt_udp.h (clntudp_bufcreate): Now a wrapper around
3492 __libc_clntudp_bufcreate.
3493 (__libc_clntudp_bufcreate): Former implementation of clntudp_bufcreate
3494 which takes an additional parameter. Create socket with non-blocking
3495 mode and close-on-exec flag set, if wanted.
3496 * sunrpc/Versions: Export __libc_clntudp_bufcreate@GLIBC_PRIVATE.
3497 * nis/ypclnt.c (yp_bind_client_create): Use __libc_clntpudp_bufcreate
3498 instead of clntudp_create. The socket has already the close-on-exec
3499 flag set if SOCK_CLOEXEC is defined.
3500
579cdf5a
UD
35012008-07-24 Ulrich Drepper <drepper@redhat.com>
3502
3ff2c948
UD
3503 * sysdeps/unix/sysv/linux/kernel-features.h: Define
3504 __ASSUME_PACCEPT, __ASSUME_IN_NONBLOCK, and __ASSUME_PACCEPT if
3505 appropriate.
3506 * nscd/connections.c: Avoid fcntl calls to set close-on-exec flag and
3507 non-blocking mode by using socket, paccept, and inotify_init1.
3508
bdcebfc4
UD
3509 * Versions.def (glibc): Add GLIBC_2.9.
3510 * io/Makefile (routines): Add dup3 and pipe2.
3511 * io/Versions [glibc] (GLIBC_2.9): Add dup3 and pipe2.
3512 * io/dup3.c: New file.
3513 * io/pipe2.c: New file.
3514 * posix/unistd.h: Declare dup3 and pipe2.
3515 * socket/Makefile (routines): Add paccept.
3516 * socket/Versions [glibc] (GLIBC_2.9): Add paccept.
3517 * socket/paccept.c: New file.
3518 * socket/sys/socket.h: Declare paccept.
3519 * sysdeps/unix/syscalls.list: Add entry for dup3.
3520 * sysdeps/unix/sysv/linux/Versions [glibc] (GLIBC_2.9): Add
3521 epoll_create2 and inotify_init1.
3522 * sysdeps/unix/sysv/linux/eventfd.c: Use eventfd1 syscall if possible.
3523 * sysdeps/unix/sysv/linux/paccept.c: New file.
3524 * sysdeps/unix/sysv/linux/signalfd.c: Use signalfd4 syscall if
3525 possible.
3526 * sysdeps/unix/sysv/linux/socketcall.h: Add SOCKOP_paccept.
3527 * sysdeps/unix/sysv/linux/syscalls.list: Add epoll_create2,
3528 inotify_init1, and pipe2 entries.
3529 * sysdeps/unix/sysv/linux/alpha/sys/epoll.h: New file.
3530 * sysdeps/unix/sysv/linux/alpha/sys/eventfd.h: New file.
3531 * sysdeps/unix/sysv/linux/alpha/sys/inotify.h: New file.
3532 * sysdeps/unix/sysv/linux/alpha/sys/signalfd.h: New file.
3533 * sysdeps/unix/sysv/linux/alpha/sys/timerfd.h: New file.
3534 * sysdeps/unix/sysv/linux/bits/socket.h: Define SOCK_CLOEXEC and
3535 SOCK_NONBLOCK.
3536 * sysdeps/unix/sysv/linux/i386/paccept.S: New file.
3537 * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: New file.
3538 * sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: New file.
3539 * sysdeps/unix/sysv/linux/sparc/sys/inotify.h: New file.
3540 * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h: New file.
3541 * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: New file.
3542 * sysdeps/unix/sysv/linux/sparc/bits/socket.h: New file.
3543 * sysdeps/unix/sysv/linux/sys/epoll.h: Define EPOLL_CLOEXEC and
3544 EPOLL_NONBLOCK. Declare epoll_create2.
3545 * sysdeps/unix/sysv/linux/sys/eventfd.h: Define EFD_CLOEXEC and
3546 EFD_NONBLOCK.
3547 * sysdeps/unix/sysv/linux/sys/inotify.h: Define IN_CLOEXEC and
3548 IN_NONBLOCK. Declare inotify_init1.
3549 * sysdeps/unix/sysv/linux/sys/signalfd.h: Define SFD_CLOEXEC and
3550 SFD_NONBLOCK.
3551 * sysdeps/unix/sysv/linux/sys/timerfd.h: Define TFD_CLOEXEC and
3552 TFD_NONBLOCK.
3553
0e077a7e
UD
3554 * elf/elf.h: Define AT_EXECFN.
3555 * elf/rtld.c [!__ASSUME_AT_EXECFN] (process_envvars): Don't handle
3556 LD_ORIGIN_PATH.
3557 * elf/dl-sysdep.c (_dl_sysdep_start): Handle AT_EXECFN.
3558 * elf/dl-support.c: Define _dl_execfn. Don't define _dl_origin_path
3559 if __ASSUME_AT_EXECFN is defined.
3560 (_dl_aux_init): Handle AT_EXECFN.
3561 * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_AT_EXECFN
3562 for 2.6.27 and up.
3563 * sysdeps/generic/ldsodefs.h (rtld_global_ro): Add _dl_execfn.
3564 Don't define _dl_origin_path if __ASSUME_AT_EXECFN is defined.
3565 * sysdeps/unix/sysv/linux/dl-origin.c (_dl_get_origin): Use
3566 _dl_execfn if available and avoid compatibility code if
3567 __ASSUME_AT_EXECFN is defined.
3568
579cdf5a
UD
3569 * sysdeps/unix/sysv/linux/dl-sysdep.h: Don't declare
3570 _dl_discover_osversion only for older kernels.
3571
7385c04c
RM
35722008-07-22 Roland McGrath <roland@frob.com>
3573
3574 * hurd/fd-read.c (_hurd_fd_read): Fix last change.
3575
8a26088d
RM
35762008-07-21 Roland McGrath <roland@frob.com>
3577
3578 * hurd/fd-read.c (_hurd_fd_read): Return EGRATUITOUS if the server
3579 returned too much data out of line.
3580
9f558b80
UD
35812008-07-20 Ulrich Drepper <drepper@redhat.com>
3582
2e79213a
UD
3583 * locale/setlocale.c (setname): Remove inline to avoid compiler
3584 warning.
3585
579cdf5a 3586 [BZ #6712]
9f558b80
UD
3587 * locale/setlocale.c (setlocale): Take the setlocale lock earlier.
3588
9667f97d
UD
35892008-07-15 Ulrich Drepper <drepper@redhat.com>
3590
2486b496
UD
3591 * stdio-common/vfprintf.c (_IO_helper_overflow): In case _IO_sputn
3592 doesn't manage to write anything, fail.
3593
9667f97d
UD
3594 * malloc/hooks.c (__malloc_check_init): Remove printf.
3595
6d4c073b
RM
35962008-07-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
3597
3598 * sysdeps/mach/hurd/bits/fcntl.h: Include <sys/types.h>.
3599
b7432416
UD
36002008-07-12 Ulrich Drepper <drepper@redhat.com>
3601
3602 * nscd/connections.c (main_loop_poll): Fix handling of read errors
3603 from inotify.
3604 (main_loop_epoll): Likewise.
3605
44abc397
UD
36062008-07-09 Ulrich Drepper <drepper@redhat.com>
3607
835113c6
UD
3608 * resolv/res_send.c: Remove unnecessary res_pquery prototype.
3609
fdc769f6
UD
3610 * resolv/res_query.c (__libc_res_nquery): Issue debug message only
3611 if DEBUG is defined.
3612
44abc397
UD
3613 * resolv/res_query.c (__libc_res_nquery): Align buffer for T_AAAA
3614 query. Adjust buffer size computation for padding.
3615
38dc8fad
UD
36162008-07-08 Ulrich Drepper <drepper@redhat.com>
3617
75684bd7
UD
3618 * stdio-common/Makefile: Add rules to build and run tst-setvbuf1.
3619 * stdio-common/tst-setvbuf1.c: New file.
3620 * stdio-common/tst-setvbuf1.expect: New file.
3621
38dc8fad
UD
3622 [BZ #6719]
3623 * libio/iosetvbuf.c (_IO_setvbuf): Correctly clear buffering flags
3624 when selecting fully-buffered stream.
3625 Patch by Wang Xin <wxinee@gmail.com>.
3626
107f4ac2
RM
36272008-07-06 Samuel Thibault <samuel.thibault@ens-lyon.org>
3628
3629 * sysdeps/mach/hurd/open.c: Include <stdio.h>.
3630 (__open_2): New function.
3631 (__open64_2): New alias to __open_2.
3632 * sysdeps/mach/hurd/openat.c: Include <stdio.h>.
3633 (__openat_2): New function.
3634 (__openat64_2): New alias to __openat_2.
3635
45ec3e79
UD
36362008-07-06 Ulrich Drepper <drepper@redhat.com>
3637
3638 [BZ #6723]
3639 * time/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
3640
0a583b54
RM
36412008-07-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
3642
3643 * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Define MSG_NOSIGNAL.
3644 * hurd/hurd/fd.h (__hurd_sockfail): Add extern inline function.
3645 * sysdeps/mach/hurd/recv.c (__recv): Use __hurd_sockfail instead of
3646 __hurd_dfail.
3647 * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Likewise.
3648 * sysdeps/mach/hurd/recvmsg.c (__recvmsg): Likewise.
3649 * sysdeps/mach/hurd/send.c (__send): Likewise.
3650 * sysdeps/mach/hurd/sendto.c (__sendfrom): Likewise.
3651 * sysdeps/mach/hurd/sendmsg.c (__sendmsg): Likewise.
3652
d5a0160b
RM
36532008-03-04 Samuel Thibault <samuel.thibault@ens-lyon.org>
3654
3655 * sysdeps/mach/hurd/recv.c (__recv): Initialize NPORTS.
3656 * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Likewise.
3657 * sysdeps/mach/hurd/recvmsg.c (__recvmsg): Likewise.
3658 * hurd/fd-read.c (_hurd_fd_read): Initialize NREAD.
3659 * hurd/get-host.c (_hurd_get_host_config): Likewise.
3660 * sysdeps/mach/hurd/dl-sysdep.c (__libc_read): Likewise.
3661
80922a99
UD
36622008-06-27 Ulrich Drepper <drepper@redhat.com>
3663
3664 [BZ #6657]
3665 * time/strptime_l.c: Don't clear s.era_cnt after successful match
3666 of %EY.
3667 Patch by Petr Baudis.
3668
34ca2ff7
UD
36692008-06-26 Ulrich Drepper <drepper@redhat.com>
3670
5ee0f5e2 3671 * resolv/res_debug.c (__p_type_syms): Add ns_t_dname entry.
34ca2ff7
UD
3672 Patch by Peter Jones <pjones@redhat.com>.
3673
104426b6
UD
36742008-06-25 Ulrich Drepper <drepper@redhat.com>
3675
3676 [BZ #6654]
3677 * stdlib/canonicalize.c (__realpath): readlink can write too much
3678 into the buffer on platforms without PATH_MAX.
3679
7166d23f
UD
36802008-06-17 Carlos O'Donell <carlos@codesourcery.com>
3681
4cb8e687 3682 [BZ #6653]
7166d23f
UD
3683 * posix/tst-regex.c (main): Rename to...
3684 (do_test): ... this. Remove cmdline option processing.
3685 (TIMEOUT): Define.
3686 (TEST_FUNCTION): Define.
3687 (CMDLINE_OPTIONS): Define.
3688
974069d8
UD
36892008-06-25 Ulrich Drepper <drepper@redhat.com>
3690
3691 [BZ #5210]
3692 * configure.in: Add -Werror to -fstack-protector test to catch
3693 unsupported architectures.
3694 Patch by Gilles Esponasse <g.esp@free.fr>.
3695
cefa2dd3
UD
36962008-06-17 Joseph Myers <joseph@codesourcery.com>
3697
3698 * stdlib/tst-setcontext.c: Set back_in_main before exit if
3699 getcontext returns ENOSYS.
3700
c00d1128
UD
37012008-06-18 Ulrich Drepper <drepper@redhat.com>
3702
3703 * nscd/connections.c (main_loop_poll): Fix test for read error.
3704 (main_loop_epoll): Likewise.
3705
a0edbb48
UD
37062008-06-13 Ulrich Drepper <drepper@redhat.com>
3707
d0a1ae94
UD
3708 * sysdeps/posix/getaddrinfo.c: Move _res_hconf_init call to a
3709 better place so it is not called when nscd is used.
3710
a0edbb48
UD
3711 * nscd/connections.c: Also recognize and handle changes to the
3712 resolver configuration file.
3713
46f70b3c
UD
37142008-06-12 Ulrich Drepper <drepper@redhat.com>
3715
5bcc6c0f
UD
3716 * time/strftime.c: Pass reference to tzset_called around to handle
3717 recursive calls.
3718
3719 [BZ #6612]
3720 * time/strftime.c (__strftime_internal): Call tzset() only
3721 when printing timezone-dependent values.
3722 Based on a patch by Petr Baudis <pasky@suse.cz>.
3723
f854efd7
UD
3724 * resolv/nss_dns/dns-host.c (gaih_getanswer): Don't
3725 unconditionally use second gaih_getanswer_slice result.
3726
46f70b3c
UD
3727 * sysdeps/posix/getaddrinfo.c (gai_inet): Remove unnecessary test.
3728 (getaddrinfo): RES must always be non-NULL.
3729
9ea8bfec
UD
37302008-06-12 Jakub Jelinek <jakub@redhat.com>
3731
3732 * sysdeps/powerpc/powerpc64/fpu/s_llround.S (__llround): Avoid using
3733 cr[34] registers.
3734 * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S (__llroundf): Likewise.
3735 * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S (__llround):
3736 Likewise.
3737 * sysdeps/powerpc/powerpc32/fpu/s_lround.S (__lround): Avoid using cr3
3738 register.
3739
5a337776
UD
37402008-06-12 Ulrich Drepper <drepper@redhat.com>
3741
5228ba2f
UD
3742 * nscd/nscd.h (struct database_dyn): Add inotify_descr and clear_cache
3743 fields.
3744 * nscd/connections.c (inotify_fd): New variable.
3745 (nscd_init): Try to open an inotify descriptor.
3746 If successful, watch files for databases using inotify instead of
3747 having prune threads stat the files.
3748 (nscd_run_prune): Recognize clear_cache flag being set and call
3749 prune_cache appropriately.
3750 (main_loop_poll): Add inotify descriptor to wait set and handle the
3751 reported changes.
3752 (main_loop_epoll): Likewise.
3753 * nscd/cache.c (prune_cache): Don't stat files for databases if
3754 inotify is used.
3755 * sysdeps/unix/sysv/linux/Makefile [subdir=nscd]
3756 (CFLAGS-connections.c): Add -DHAVE_INOTIFY.
3757
5a337776
UD
3758 * nscd/grpcache.c (cache_addgr): Correctly compute size of
3759 fixed-size portion of the record.
3760 * nscd/servicescache.c (cache_addserv): Likewise.
3761 * nscd/pwdcache.c (cache_addpw): Likewise.
3762 * nscd/initgrcache.c (addinitgroupsX): Likewise.
3763
9ad58cc3
UD
37642008-06-11 Ulrich Drepper <drepper@redhat.com>
3765
3766 * nscd/mem.c (gc): Initialize obstack earlier so that if we jump
3767 out we don't use uninitialized memory.
3768
3769 * nscd/hstcache.c (cache_addhst): Send correct number of bytes to
3770 the client.
3771
c1283552
UD
37722008-06-10 Ulrich Drepper <drepper@redhat.com>
3773
3774 * resolv/nss_dns/dns-host.c (gaih_getanswer_slice): Also log and
3775 ignore T_DNAME messages.
3776 * resolv/arpa/nameser_compat.h (T_DNAME): Define.
3777
eef8a803
JJ
37782008-06-05 Jakub Jelinek <jakub@redhat.com>
3779
3780 * misc/regexp.h (compile): Use __REPB_PREFIX macro.
3781 Avoid segfault if first GETC returns eof/'\0'/'\n'.
3782
ee78670e
JJ
37832008-06-03 Jakub Jelinek <jakub@redhat.com>
3784
3785 * nscd/nscd_getserv_r.c (__nscd_getservbyport_r): Pass cp
3786 instead of portstr to nscd_getserv_r. Patch by
3787 Roman Kagan <rkagan@mail.ru>.
3788
62605cbf
UD
37892008-05-26 Jim Meyering <meyering@redhat.com>
3790
10966640 3791 Remove more useless "if" tests before "free".
62605cbf
UD
3792 * include/inline-hashtab.h (htab_delete): Likewise.
3793 * libio/freopen.c (freopen): Likewise.
3794 * libio/freopen64.c (freopen64): Likewise.
3795 * locale/programs/ld-collate.c (collate_read): Likewise.
3796 * misc/fstab.c (libc_freeres_fn): Likewise.
3797 * posix/glob.c (globfree): Likewise.
3798
f63abf58
UD
37992008-05-24 Ulrich Drepper <drepper@redhat.com>
3800
3801 * string/Makefile (strop-tests): Add memmem.
3802 * string/test-memmem.c: New file.
3803 * string/test-string.h (BUF1PAGES): Define to 1 if undefined.
3804 (test_init): Size buf1 according to BUF1PAGES.
3805
ad8a5511
JJ
38062008-05-24 Jakub Jelinek <jakub@redhat.com>
3807
3808 * libio/stdio.h (vscanf): Fix -std=c99 redirect.
3809 * stdio-common/Makefile (tests): Add scanf16 and scanf17.
3810 (CFLAGS-scanf17.c): New.
3811 * stdio-common/scanf14.c (main): Add fscanf and scanf tests.
3812 * stdio-common/scanf15.c (main): Likewise.
f63abf58
UD
3813 * stdio-common/scanf16.c: New file.
3814 * stdio-common/scanf17.c: New file.
ad8a5511 3815
e2003883
UD
38162008-05-24 Ulrich Drepper <drepper@redhat.com>
3817
3818 * resolv/res_send.c (send_dg): If we already have one of two
b5ba2c79 3819 answers and the server reports SERVFAIL, NOTIMP, or REFUSED, then
e2003883
UD
3820 use the one answer insted of failing.
3821
acbb9873
UD
38222008-02-20 Ryan S. Arnold <rsa@us.ibm.com>
3823
3824 * math/libm-test.inc (exp_test): Exclude expl(1000.0L) from
3825 being executed on PowerPC as the expected result exceeds IBM
3826 long double 128 __LDBL_MAX__.
3827
e85f1d6a
RM
38282008-05-21 Roland McGrath <roland@redhat.com>
3829
3830 * shlib-versions (sparc.*-.*-.*, sparc64.*-.*-.*): Add ABI lines.
3831
3832 * Makefile (check-data): Use $(abi-name) before other guesses.
3833 Look in $(add-ons) dirs before scripts/data/.
3834 * elf/Makefile (check-data): Likewise.
3835
3836 * scripts/soversions.awk: Grok ABI line.
3837 * Makeconfig ($(common-objpfx)soversions.mk): Likewise.
3838 Emit definition for abi-name variable.
3839
d8e763c6
UD
38402008-05-21 Ulrich Drepper <drepper@redhat.com>
3841
e92799fc 3842 * string/endian.h: Define new fixed-size hto* and *toh macros only
e85f1d6a 3843 if [__USE_BSD].
e92799fc 3844
d8e763c6
UD
3845 * iconvdata/Depend: Add localedata.
3846
009ef333
RM
38472008-05-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
3848
3849 * bits/termios.h (ONLCR): Define under [__USE_XOPEN] too.
3850
86746abb
JJ
38512008-05-08 David S. Miller <davem@davemloft.net>
3852
3853 * sysdeps/unix/sysv/linux/sparc/sparc32/setcontext.S: Use
3854 HIDDEN_JUMPTARGET.
3855 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
3856 (__SYSCALL_CLOBBERS): Remove %g* registers.
3857 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
3858 (__SYSCALL_CLOBBERS): Likewise.
3859 * scripts/data/localplt-sparc-linux-gnu.data: New file.
f63abf58 3860 * scripts/data/localplt-sparc64-linux-gnu.data: New file.
86746abb 3861
5e6f34c2
JJ
38622008-05-21 Jakub Jelinek <jakub@redhat.com>
3863
3864 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
3865 (CALL_ERRNO_LOCATION): Define.
3866 (__SYSCALL_STRING, __CLONE_SYSCALL_STRING): Use it.
3867 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
3868 (CALL_ERRNO_LOCATION): Define.
3869 (__SYSCALL_STRING, __CLONE_SYSCALL_STRING): Use it.
3870 * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S (__brk): Use
3871 HIDDEN_JUMPTARGET for __errno_location call in libc.so.
3872
4beb4532
UD
38732008-05-20 Ulrich Drepper <drepper@redhat.com>
3874
3875 * include/inline-hashtab.h (higher_prime_number): Fix type of mid
3876 variable.
3877
ed8f38ba
JJ
38782008-05-20 Jakub Jelinek <jakub@redhat.com>
3879
3880 * sysdeps/unix/sysv/linux/sparc/sparc32/sigcontextinfo.h
3881 (FIRST_FRAME_POINTER): Define.
3882
38832008-05-09 David S. Miller <davem@davemloft.net>
3884
3885 * sysdeps/sparc/sparc64/backtrace.c: New file.
3886
c1b8190a
JJ
38872008-05-14 David S. Miller <davem@davemloft.net>
3888
3889 * sysdeps/sparc/machine-gmon.h: New file.
3890 * sysdeps/sparc/sparc-mcount.S: Likewise.
3891 * sysdeps/sparc/Makefile: Add sparc-mcount target to
3892 sysdep_routines in gmon directory.
3893
84aacd93
JJ
38942008-05-19 Jakub Jelinek <jakub@redhat.com>
3895
3896 * elf/soinit.c (__EH_FRAME_BEGIN__): Remove.
3897
5908f779
UD
38982008-05-19 Ulrich Drepper <drepper@redhat.com>
3899
3900 * resolv/res_query.c (__libc_res_nquery): In case one of two
3901 answer was too short don't try to read that answer's header.
3902
3903 * resolv/res_send.c (send_dg): In case of timeout and there are
3904 two queries and one has been answered, return value indicating
3905 success.
3906
528741cb
UD
39072008-05-18 Ulrich Drepper <drepper@redhat.com>
3908
3909 * nscd/cache.c (cache_add): Take additional parameter specifying
3910 whether this is in response of a cache refill. Check alignment
3911 of package data. Revamp waking of pruning thread.
3912 (prune_cache): Small optimization.
3913 * nscd/nscd.h: Adjust cache_add prototypes.
3914 * nscd/aicache.c: Adjust cache_add calls.
3915 * nscd/grpcache.c: Likewise.
3916 * nscd/hstcache.c: Likewise.
3917 * nscd/initgrcache.c: Likewise.
3918 * nscd/pwdcache.c: Likewise.
3919 * nscd/servicescache.c: Likewise.
3920 * nscd/connections.c (restart): Really disable cache use before
3921 exec attempt. If it fails, reenable cache.
3922 (nscd_run_prune): Initialize wakeup_time. After wakeup, set wakeup
3923 time to max to be able to notice concurrent cache additions. Unlock
3924 prune_lock while performing gc. Afterwards compute wakeup time with
3925 current wakeup_time value in mind.
3926
343996c4
UD
39272008-05-17 Ulrich Drepper <drepper@redhat.com>
3928
5811d72b
UD
3929 * nscd/mem.c (gc): Avoid stack overflow when allocating move list.
3930
fa526148
UD
3931 * nscd/mem.c (gc): Correctly determine highest used array element
3932 in mark.
3933
77d40f10
UD
3934 * nscd/mem.c (markrange): Add assert to check entries are all
3935 aligned. Small cleanup in bitmap use.
3936
8884028c
UD
3937 * nscd/nscd.h (mem_in_flight): Replace blockaddr field with
3938 blockoff of type nscd_ssize_t.
3939 * nscd/mem.c (gc): Simplify markrange call for on-flight blocks.
3940 (mempoll_alloc): Record block offset and not address.
3941
b2159575
UD
3942 * nscd/mem.c (gc): Fix test for stack overuse.
3943
5c9629d2
UD
3944 * nscd/aicache.c (addhstaiX): Fix a few small problems, cleanups,
3945 more asserts.
3946
66d90496
UD
3947 * sysdeps/posix/getaddrinfo.c (gaih_inet): If nscd reports no
3948 entry is available, believe it.
3949
343996c4
UD
3950 * resolv/nss_dns/dns-host.c (gaih_getanswer_slice): If there are
3951 no answers return NSS_STATUS_NOTFOUND.
3952 (gaih_getanswer): Don't call gaih_getanswer_slice if the answer
3953 buffer does not have any content.
3954
91c8a74b
UD
39552008-05-16 Ulrich Drepper <drepper@redhat.com>
3956
74e13385
UD
3957 * string/strcasestr.c (CMP_FUNC): Use __strncasecmp, not strncasecmp.
3958
91c8a74b
UD
3959 * sysdeps/posix/getaddrinfo.c (gaih_inet): After gethostbyname4_r
3960 lookup, don't assign canon unconditionally.
3961
0caca71a
UD
39622008-05-14 Ulrich Drepper <drepper@redhat.com>
3963
3964 * string/Makefile (distribute): Add str-two-way.h.
3965
39662008-03-29 Eric Blake <ebb9@byu.net>
3967
3968 Rewrite string searches to O(n) rather than O(n^2).
3969 * string/str-two-way.h: New file. For linear fixed-allocation
3970 string searching.
3971 * string/memmem.c: New implementation.
3972 * string/strstr.c: New implementation.
3973 * string/strcasestr.c: New implementation.
3974
b194db79
UD
39752008-04-11 Paolo Bonzini <bonzini@gnu.org>
3976
3977 * posix/regcomp.c (optimize_utf8): Add a note on why we test
3978 opr.ctx_type.
3979 (calc_first): Initialize constraint field.
3980 (duplicate_node_closure): Use it instead of special casing ANCHORS.
3981 Use search_duplicated_node to avoid loops. Fix grammar.
3982 (duplicate_node): Merge constraint field for all node types.
3983 (calc_eclosure_iter): Look at constraint field for all node types.
3984 * posix/regex_internal.c (create_cd_newstate): Don't look at
3985 create_cd_newstate.
3986
c8d49f05
UD
39872008-05-14 Ulrich Drepper <drepper@redhat.com>
3988
215a8745
UD
3989 [BZ #6428]
3990 * configure.in: Don't use $CFLAGS when assembling, use $ASFLAGS.
3991
2f9a1be8
UD
3992 [BZ #6442]
3993 * string/endian.h: Add macros for fixed-size endian conversion.
3994 * bits/byteswap.h: Allow inclusion from <endian.h>.
3995 * sysdeps/i386/bits/byteswap.h: Likewise.
3996 * sysdeps/ia64/bits/byteswap.h: Likewise.
3997 * sysdeps/s390/bits/byteswap.h: Likewise.
3998 * sysdeps/x86_64/bits/byteswap.h: Likewise.
3999 * string/Makefile (tests): Add tst-endian.
4000 * string/tst-endian.c: New file.
4001
c8d49f05
UD
4002 * iconvdata/run-iconv-test.sh: Use = instead of == in test.
4003 Patch by Reuben Thomas.
4004
a754f018
UD
40052008-05-14 Joseph Myers <joseph@codesourcery.com>
4006
4007 * iconvdata/Makefile (bug-iconv6-ENV, tst-iconv7-ENV): Define.
4008
372bfcac
UD
40092008-05-14 Ulrich Drepper <drepper@redhat.com>
4010
a754f018
UD
4011 * iconvdata/bug-iconv6.c (do_test): Use de_DE.UTF-8 locale.
4012
5deca9bb
UD
4013 [BZ #6461]
4014 * iconv/gconv_simple.c (BODY for __gconv_transform_ascii_internal):
4015 Add missing braces.
4016 (BODY for __gconv_transform_internal_ascii): Likewise.
4017
af77c9b7 4018 [BZ #6472]
5fab5544
UD
4019 * sysdeps/posix/getaddrinfo.c (get_scope): Loopback addresses have
4020 to be treated like link-local addresses.
5846c4e2
UD
4021 (match_prefix): Don't treat IPv4 loopback address special when
4022 converting to v4 mapped addressed.
5fab5544 4023
0caca71a 4024 * sysdeps/posix/getaddrinfo.c (getaddrinfo): Call _res_hconf_init
1f039824 4025 if necessary.
b194db79
UD
4026 * posix/tst-rfc3484.c: Add dummy definition of _res_hconf_init.
4027 * posix/tst-rfc3484-2.c: Likewise.
4028 * posix/tst-rfc3484-3.c: Likewise.
1f039824 4029
18a74157
UD
4030 * sysdeps/posix/getaddrinfo.c: Implement handling of DCCP, UDPlite,
4031 and SCTP.
372bfcac
UD
4032
4033 * nss/getent.c (ahosts_keys_int): Handle all known socket types.
4034
4035 * inet/netinet/in.h (IPPIPPROTO_DCCP, IPPROTO_UDPLITE): Define.
4036
4037 * sysdeps/unix/sysv/linux/bits/socket.h (SOCK_DCCP): Define.
4038
f05ac8f5
UD
40392008-05-13 Ulrich Drepper <drepper@redhat.com>
4040
4041 * po/lt.po: New file. From Lituanian translation team.
4042
c9ff0187
UD
40432008-01-30 Alexandre Oliva <aoliva@redhat.com>
4044
4045 Introduce TLS descriptors for i386 and x86_64.
4046 * include/inline-hashtab.h: New file, copied from 2005's
4047 libiberty, with fix for memory leak imported afterwards by
4048 Glauber de Oliveira Costa.
4049 * elf/tlsdeschtab.h: New file.
4050 * elf/dl-reloc.c (_dl_try_allocate_static_tls): Extract from...
4051 (_dl_allocate_static_tls): ... here. Rearrange failure path.
4052 (CHECK_STATIC_TLS): Move to...
4053 * elf/dynamic-link.h: ... this file.
4054 (TRY_STATIC_TLS): New macro.
4055 * elf/dl-conflict.c (CHECK_STATIC_TLS, TRY_STATIC_TLS): Override.
4056 * elf/elf.h (R_386_TLS_GOTDESC, R_386_TLS_DESC_CALL,
4057 R_386_TLS_DESC): Define.
4058 (R_X86_64_PC64, R_X86_GOTOFF64, R_X86_64_GOTPC32): Merge from
4059 binutils.
4060 (R_X86_64_GOTPC32_TLSDESC, R_X86_64_TLSDESC_CALL,
4061 R_X86_64_TLSDESC): Define.
4062 (R_386_NUM, R_X86_64_NUM): Adjust.
4063 * sysdeps/i386/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/i386/dl-lookupcfg.h: New file. Introduce _dl_unmap to
4067 release tlsdesc_table.
4068 * sysdeps/i386/dl-machine.h: Include dl-tlsdesc.h.
4069 (elf_machine_type_class): Mark R_386_TLS_DESC as PLT class.
4070 (elf_machine_rel): Handle R_386_TLS_DESC.
4071 (elf_machine_rela): Likewise.
4072 (elf_machine_lazy_rel): Likewise.
4073 (elf_machine_lazy_rela): Likewise.
4074 * sysdeps/i386/dl-tls.h (struct dl_tls_index): Name it.
4075 * sysdeps/i386/dl-tlsdesc.S: New file.
4076 * sysdeps/i386/dl-tlsdesc.h: New file.
4077 * sysdeps/i386/tlsdesc.c: New file.
4078 * sysdeps/i386/tlsdesc.sym: New file.
4079 * sysdeps/i386/bits/linkmap.h (struct link_map_machine): Add
4080 tlsdesc_table.
4081 * sysdeps/x86_64/Makefile (sysdep-dl-routines, sysdep_routines,
f05ac8f5 4082 sysdep-rtld-routines): Add tlsdesc and dl-tlsdesc for elf subdir.
c9ff0187
UD
4083 (gen-as-const-headers): Add tlsdesc.sym to csu subdir.
4084 * sysdeps/x86_64/dl-lookupcfg.h: New file. Introduce _dl_unmap to
4085 release tlsdesc_table.
4086 * sysdeps/x86_64/dl-machine.h: Include dl-tlsdesc.h.
4087 (elf_machine_runtime_setup): Set up lazy TLSDESC GOT entry.
4088 (elf_machine_type_class): Mark R_X86_64_TLSDESC as PLT class.
4089 (elf_machine_rel): Handle R_X86_64_TLSDESC.
4090 (elf_machine_rela): Likewise.
4091 (elf_machine_lazy_rel): Likewise.
4092 * sysdeps/x86_64/dl-tls.h (struct dl_tls_index): Name it.
4093 (__tls_get_addr): Do not declare for non-shared compiles.
4094 * sysdeps/x86_64/dl-tlsdesc.S: New file.
4095 * sysdeps/x86_64/dl-tlsdesc.h: New file.
4096 * sysdeps/x86_64/tlsdesc.c: New file.
4097 * sysdeps/x86_64/tlsdesc.sym: New file.
4098 * sysdeps/x86_64/bits/linkmap.h (struct link_map_machine): Add
4099 tlsdesc_table for both 32- and 64-bit structs.
4100
a3636e8b
UD
41012008-05-11 Ulrich Drepper <drepper@redhat.com>
4102
4103 * elf/dl-tls.c (__tls_get_addr): Optimize by moving slow path in
4104 its own function. This reduces the frame setup costs and more.
4105
a7eb802f
UD
41062008-02-11 Joseph Myers <joseph@codesourcery.com>
4107
4108 [BZ #3406]
4109 * sysdeps/ieee754/flt-32/w_expf.c (o_threshold): Correct value.
4110 * math/libm-test.inc (exp_test): Test 88.72269439697265625.
4111
3490f01d
UD
41122008-05-11 Ulrich Drepper <drepper@redhat.com>
4113
3d7eeebe
UD
4114 * io/openat.c (__openat_2): Also pass fd to __openat.
4115 * io/openat64.c (__openat64_2): Also pass fd to __openat64.
4116 Patch by Kristian Van Der Vliet <vanders@liqwyd.com>.
4117
3490f01d
UD
4118 * string/tester.c (test_memcmp): Add a few more tests.
4119 Patch by Mats Erik Andersson <ynglingatal@comhem.se>.
4120
7e71e55f
UD
41212008-05-10 Ulrich Drepper <drepper@redhat.com>
4122
4123 * nscd/cache.c (cache_add): Before returning with failure and this
4124 is the first use of the record, mark it as unusable.
4125 * nscd/aicache.c: Don't touch the dataset after cache_add returns
4126 reporting a failure.
4127 * nscd/grpcache.c: Likewise
4128 * nscd/hstcache.c: Likewise.
4129 * nscd/initgrcache.c: Likewise.
4130 * nscd/pwdcache.c: Likewise.
343996c4 4131 * nscd/servicescache.c: Likewise.
7e71e55f 4132
7396d0a9
RM
41332008-05-10 Roland McGrath <roland@redhat.com>
4134
4135 [BZ #6505]
4136 * sysdeps/unix/sysv/linux/sys/user.h: Replace with #error stub.
4137
c5ee217f
UD
41382008-05-08 David S. Miller <davem@davemloft.net>
4139
b29899ae
UD
4140 * misc/truncate64.c (truncate64): Use __truncate not truncate.
4141
c5ee217f
UD
4142 * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee751_j0l): Use __finitel.
4143 (__ieee754_y0l): Likewise.
4144 * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): Likewise.
4145 (__ieee754_y1l): Likewise.
4146 * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Use __ldexpl.
4147 * sysdeps/ieee754/ldbl-128/s_log1pl.c: Kill bogus prototypes for
4148 frexpl and ldexpl. math_private.h provides them and the latter
4149 is not even used.
4150 (__log1pl): Use __frexpl.
4151
1eb946b9
UD
41522008-05-10 Ulrich Drepper <drepper@redhat.com>
4153
4154 * include/resolv.h: Adjust __libc_res_nquery and __libc_res_nsend
4155 prototypes.
4156 * include/arpa/nameser_compat.h: Define T_UNSPEC.
4157 * nis/Versions (libnss_nis): Export _nss_nis_gethostbyname4_r.
4158 (libnss_nisplus): Export _nss_nisplus_gethostbyname4_r.
4159 * nis/nss_nis/nis-hosts.c (LINE_PARSER): Change to also handle
4160 af==AF_UNSPEC.
4161 (_nss_nis_gethostbyname4_r): New function.
4162 * nis/nss_nisplus/nisplus-hosts.c (_nss_nisplus_parse_hostent):
4163 Change to also handle af==AF_UNSPEC.
4164 (get_tablename): New function. Use it to avoid duplication.
4165 (_nss_nisplus_gethostbyname4_r): New function.
4166 * nscd/aicache.c (addhstaiX): Use gethostbyname4_r function is
4167 available.
4168 * nss/Versions (libnss_files): Export _nss_files_gethostbyname4_r.
4169 * nss/nss.h: Define struct gaih_addrtuple.
4170 * nss/nss_files/files-hosts.c (LINE_PARSER): Change to also handle
4171 af==AF_UNSPEC.
4172 (_nss_files_gethostbyname4_r): New function.
4173 * resolv/Versions (libnss_dns): Export _nss_dns_gethostbyname4_r.
4174 * resolv/gethnmaddr.c: Adjust __libc_res_nsearch and __libc_res_nquery
4175 calls.
4176 * resolv/res_query.c (__libc_res_nquery): Take two additional
4177 parameters for second answer buffer. Handle type=T_UNSPEC to mean
4178 look up IPv4 and IPv6.
4179 Change all callers.
4180 * resolv/res_send.c (__libc_res_nsend): Take five aditional parameters
4181 for an additional query and answer buffer. Pass to send_vc and
4182 send_dg.
4183 (send_vc): Send possibly two requests and receive two answers.
4184 (send_dg): Likewise.
4185 * resolv/nss_dns/dns-host.c: Adjust calls to __libc_res_nsearch and
4186 __libc_res_nquery.
4187 (_nss_dns_gethostbyname4_r): New function.
4188 (gaih_getanswer_slice): Likewise.
4189 (gaih_getanswer): Likewise.
4190 * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Adjust
4191 __libc_res_nquery call.
4192 * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyaddr_r): Likewise.
4193 (_nss_dns_getnetbyname_r): Adjust __libc_res_nsearch call.
4194 * sysdeps/posix/getaddrinfo.c: Use gethostbyname4_r function is
4195 available.
4196
b7fb703a
JJ
41972008-05-05 David S. Miller <davem@davemloft.net>
4198
4199 * sysdeps/sparc/sparc32/Makefile: Use -mcpu=v7 for initfini.s build.
4200 * sysdeps/sparc/sparc64/Makefile: Use -mcpu=v9 for initfini.s build.
4201
2256e43d
RM
42022007-09-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
4203
4204 Fix termios bit macros.
4205 Move *DLY definitions where they belong, in termios.h.
4206 Add *[0-3] definitions.
4207 Fixes confusion between VT and FF.
8bb52dbf
RM
4208 * sysdeps/mach/hurd/bits/ioctls.h (NL0, NL1, TAB0, TAB1, TAB2, CR0,
4209 CR1, CR2, CR3, FF0, FF1, BS0, BS1): Undefine these at start if they
4210 are already defined to avoid collision with termios.h.
2256e43d
RM
4211 (NLDLY, TABDLY, TAB3, CRDLY, VTDLY, BSDLY): Remove macros.
4212 * bits/termios.h [__USE_MISC || __USE_XOPEN] (NL0, NL1, TAB0,
4213 TAB1, TAB2, CR0, CR1, CR2, CR3, FF0, FF1, BS0, BS1): Likewise.
4214 [__USE_BSD || __USE_XOPEN] (OCRNL, ONOCR, ONLRET): New macros.
4215 [__USE_MISC || __USE_XOPEN] (NLDLY, NL0, NL1, TABDLY, TAB0, TAB1, TAB2,
4216 TAB3, CRDLY, CR0, CR1, CR2, CR3, FFDLY, FF0, FF1, BSDLY, BS0, BS1,
4217 VTDLY, VT0, VT1): New macros.
4218 [__USE_GNU] (OLCUC): Change value of macro.
4219 [__USE_XOPEN] (OFILL): New macro.
4220 [__USE_BSD] (CRTSCTS): Change value.
4221 (CRTS_IFLOW, CCTS_OFLOW): Change into compatibility macros.
4222 [__USE_BSD] (CDTRCTS, CHWFLOW): New macros.
4223 (B7200, B14400, B28800, B76800): New macros.
4224
4ce349e5
JJ
42252008-05-01 David S. Miller <davem@davemloft.net>
4226
a86a7a39
JJ
4227 * sysdeps/unix/sysv/linux/sparc/sparc32/ucontext_i.sym: New file.
4228 * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile [$(subdir) = stdlib]:
4229 (gen-as-const-headers): Add it.
4230 * sysdeps/unix/sysv/linux/sparc/sparc32/getcontext.S: New file.
4231 * sysdeps/unix/sysv/linux/sparc/sparc32/makecontext.c: Likewise.
4232 * sysdeps/unix/sysv/linux/sparc/sparc32/setcontext.S: Likewise.
4233 * sysdeps/unix/sysv/linux/sparc/sparc32/swapcontext.S: Likewise.
2256e43d 4234
4ce349e5
JJ
4235 * sysdeps/unix/sysv/linux/sparc/sparc32/syscall.S: Add support for
4236 six system call parameters.
4237 * sysdeps/unix/sysv/linux/sparc/sparc64/syscall.S: Likewise.
4238
89a8963d
UD
42392008-04-30 Ulrich Drepper <drepper@redhat.com>
4240
4241 * sysdeps/unix/sysv/linux/bits/resource.h: Define RUSAGE_THREAD and
4242 RUSAGE_LWP.
4243 * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Likewise.
4244 * sysdeps/unix/sysv/linux/alpha/bits/resource.h: Likewise.
4245
b5ec5fce
JJ
42462008-04-30 Jakub Jelinek <jakub@redhat.com>
4247
4248 * stdlib/tst-setcontext.c: Include unistd.h.
4249
d4e92d9e
JJ
42502008-04-25 David S. Miller <davem@davemloft.net>
4251
4252 * sysdeps/unix/sysv/linux/sparc/sparc64/semctl.c (semctl):
4253 Pass "union semun" properly in to sys_ipc, it must be passed
4254 by value, not by reference.
4255
7eb5e6c9
UD
42562008-04-22 Jakub Jelinek <jakub@redhat.com>
4257
4258 * nscd/Makefile (nscd-cflags): Set back to -fpie.
4259 * nscd/nscd.h (mem_in_flight): Add attribute_tls_model_ie.
4260 * nscd/connections.c (mem_in_flight): Likewise.
4261
4262 * nscd/nscd.h (dbs): Make hidden.
4263
4264 * sysdeps/unix/sysv/linux/times.c (__times): Fix check for EFAULT.
4265 Avoid returning -1, return 0 instead.
4266
0073dd2d
UD
42672008-04-19 Ulrich Drepper <drepper@redhat.com>
4268
4269 * resolv/res_mkquery.c (__res_nopt): Use NS_PUT16 instead of ns_put16.
4270
c52137d3
UD
42712008-04-15 Ulrich Drepper <drepper@redhat.com>
4272
4273 [BZ #5209]
4274 * sysdeps/unix/sysv/linux/times.c: New file.
4275
4276 [BZ #5381]
4277 * nscd/nscd.h: Define enum in_flight, mem_in_flight, and
4278 mem_in_flight_list variables. Add new parameter to mempool_alloc
4279 prototype.
4280 * nscd/mem.c (mempool_alloc): Take additional parameter. Initialize
4281 appropriate mem_in_flight element.
4282 (gc): Take allocations which have not yet been committed to the
4283 database into account.
4284 * nscd/cache.c (cache_add): Add new parameter to mempool_alloc call.
4285 Reset mem_in_flight before returning.
4286 * nscd/connections.c (nscd_run_worker): Initialize mem_in_flight and
4287 cue it up in mem_in_flight_list.
4288 * nscd/aicache.c: Adjust mempool_alloc call.
4289 * nscd/grpcache.c: Likewise.
4290 * nscd/hstcache.c: Likewise.
4291 * nscd/initgrcache.c: Likewise.
4292 * nscd/pwdcache.c: Likewise.
4293 * nscd/servicescache.c: Likewise.
4294 * nscd/Makefile (nscd-flags): Until ld is fixed, use -fpic instead
4295 of -fpie.
4296
4297 * nscd/connections.c (handle_request): Provide better error message
4298 in case SELinux forbids the service.
4299
4300 * version.h (VERSION): Bump to 2.8.90.
4301
39546e34
JJ
43022008-04-17 Jakub Jelinek <jakub@redhat.com>
4303
4304 * sysdeps/unix/sysv/linux/dl-osinfo.h: Include fcntl.h.
4305
cf3a8c7f
UD
43062008-04-11 Ulrich Drepper <drepper@redhat.com>
4307
9e113ecd
UD
4308 * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h (__signbitl):
4309 Also use for 32-bit.
3b6d574e
UD
4310 * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c (__nearbyintl): Use
4311 __nextafter instead of nextafter to avoid local PLT.
c3a0ead4
UD
4312 * sysdeps/powerpc/fpu/e_sqrt.c: Avoid call to fetestexcept.
4313 * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
4314
3781ec29
UD
4315 * scripts/data/localplt-powerpc64-linux-gnu.data: New file.
4316
246ec411
UD
4317 * sysdeps/powerpc/fpu/fenv_libc.h: Add libm_hidden_proto for
4318 __fe_nomask_env.
3cc56f92
UD
4319 * sysdeps/powerpc/fpu/fe_nomask.c: Add libm_hidden_def. Include
4320 <fenv_libc.h> instead of <fenv.h>.
246ec411
UD
4321 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c: Likewise.
4322 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c: Likewise.
4323
4324 * sysdeps/powerpc/bits/fenv.h: Make safe for C++.
4325
4326 * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h: New file.
4327 * sysdeps/powerpc/fpu/fegetexcept.c (__fegetexcept): Rename
4328 function from fegetexcept and make old name weak alias.
4329 * include/fenv.h: Declare __fegetexcept.
4330 * sysdeps/powerpc/fpu/fedisblxcpt.c: Use __fegetexcept instead of
4331 fegetexcept.
4332 * sysdeps/powerpc/fpu/feenablxcpt.c: Likewise.
4333 * sysdeps/powerpc/fpu/fraiseexcpt.c (__feraiseexcept): Avoid call
4334 to fetestexcept.
4335 * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (__log1pl): Use __frexpl
4336 instead of frexpl to avoid local PLT.
4337 * math/s_significandl.c (__significandl): Use __ilogbl instead of
4338 ilogbl to avoid local PLT.
4339 * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (__expm1l): Use __ldexpl
4340 instead of ldexpl to avoid local PLT.
4341 * sysdeps/ieee754/ldbl-128ibm/e_expl.c (__ieee754_expl): Use
4342 __roundl not roundl to avoid local PLT.
4343 * sysdeps/ieee754/ldbl-128/e_j0l.c: Use function names which avoid
4344 local PLTs. Use __sincosl instead of separate sinl and cosl
4345 calls.
4346 * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
4347
2dc4a2fd
UD
4348 * sysdeps/unix/sysv/linux/configure.in: Bump minimal kernel
4349 version for ppc64 to 2.4.21 since without it makecontext will fail.
4350
fe3350ee
UD
4351 * elf/tls-macros.h [__powerpc64__] (__TLS_GET_ADDR): Define according
4352 to the ABI in use.
4353 [__powerpc64__] (TLS_LD): Use __TLS_GET_ADDR instead of
4354 .__tls_get_addr.
4355 [__powerpc64__] (TLS_GD): Likewise.
cf3a8c7f 4356
c1e6b459
UD
43572007-11-20 Ryan S. Arnold <rsa@us.ibm.com>
4358
7763d4f1 4359 [BZ #4997]
c1e6b459
UD
4360 * sysdeps/powerpc/powerpc32/fpu/s_lround.S (__lround): Fixed erroneous
4361 result when x is +/-nextafter(+/-0.5,-/+1) i.e. all 1's in the
4362 mantissa.
4363 * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S (__llround):
4364 Likewise. Also account for when x is an odd number between 2^52
4365 and 2^53-1.
4366 * sysdeps/powerpc/powerpc64/fpu/s_llround.S (__llround): Likewise.
4367 * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S (__llroundf): Likewise.
4368 * math/libm-test.inc (lround_test, llround_test): Added test cases to
4369 detect aforementioned erroneous conditions.
4370
22dca1ea
UD
43712008-04-11 Jakub Jelinek <jakub@redhat.com>
4372
4373 * configure.in: Check for -fno-section-anchors in addition to
4374 -fno-toplevel-reorder.
4375
5d59f4a5
UD
43762008-04-11 Ulrich Drepper <drepper@redhat.com>
4377
4378 * include/features.h (__GLIBC_MINOR__): Bump to 8.
4379
4380 * sysdeps/powerpc/powerpc32/fpu/s_lroundf.S: Remove duplicate comment.
4381 * sysdeps/powerpc/powerpc32/power5+/fpu/s_llroundf.S: Likewise.
4382 * sysdeps/powerpc/powerpc32/power6/fpu/s_llroundf.S: Likewise.
4383 * sysdeps/powerpc/powerpc64/fpu/s_lrint.S: Likewise.
4384 * sysdeps/powerpc/powerpc64/fpu/s_lround.S: Likewise.
4385 * sysdeps/powerpc/powerpc64/fpu/s_lroundf.S: Likewise.
4386
91e32540
UD
43872008-04-11 Jakub Jelinek <jakub@redhat.com>
4388
4389 [BZ #5443]
4390 * time/era.c: Transform __libc_setlocale_lock into rwlock.
4391 * time/alt_digit.c: Likewise.
4392 * wcsmbs/wcsmbsload.c: Likewise.
4393
fd490ac8
UD
43942008-04-10 Ulrich Drepper <drepper@redhat.com>
4395
1db5b6f4
UD
4396 * version.h (VERSION): Bump to 2.8.
4397
fd490ac8
UD
4398 * timzeone/asia: Update from tzdata2008b.
4399 * timezone/backward: Likewise.
4400 * timezone/europe: Likewise.
4401 * timezone/northamerica: Likewise.
4402 * timezone/southamerica: Likewise.
4403 * timezone/iso3166.tab: Likewise.
4404 * timezone/leapseconds: Likewise.
4405 * timezone/zone.tab: Likewise.
4406 * timezone/private.h: Update from tzcode2008a.
4407 * timezone/zdump.c: Likewise.
4408 * timezone/zic.c: Likewise.
4409
153cf972
UD
44102008-01-24 Steven Munroe <sjmunroe@us.ibm.com>
4411
4412 [BZ #5741]
4413 * sysdeps/powerpc/powerpc64/dl-machine.h (PPC_DCBT, PPC_DCBF):
4414 Define additonal Data Cache Block instruction macros.
4415 (elf_machine_fixup_plt): Add dcbt for opd and plt entries.
4416 Replace dcbst with dcbf and sync with sync/isync.
4417
d2207f32
UD
44182008-02-21 Alan Modra <amodra@bigpond.net.au>
4419
4420 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_type_class):
4421 Always set ELF_RTYPE_CLASS_PLT.
4422 (elf_machine_lookup_noexec_p, elf_machine_lookup_noplt_p): Delete.
4423
13d83320
UD
44242008-04-03 Steven Munroe <sjmunroe@us.ibm.com>
4425
4426 * sysdeps/powerpc/powerpc32/power4/hp-timing.c: New file.
4427 * sysdeps/powerpc/powerpc32/power4/hp-timing.h: New file.
4428 * sysdeps/powerpc/powerpc64/hp-timing.h [_ARCH_PWR4] (HP_TIMING_NOW):
4429 For ISA 2.01 and later replace mftb with mfspr 268.
4430
5f7aead5
UD
44312008-02-19 Steven Munroe <sjmunroe@us.ibm.com>
4432
4433 [BZ #5768]
4434 * sysdeps/powerpc/fpu/Makefile (libm-tests): Add test-powerpc-snan.
4435 * sysdeps/powerpc/fpu/test-powerpc-snan.c: New file.
4436
44372008-02-18 Steven Munroe <sjmunroe@us.ibm.com>
4438
4439 [BZ #5768]
4440 * sysdeps/powerpc/powerpc32/fpu/s_isnan.S: New file.
4441 * sysdeps/powerpc/powerpc32/fpu/s_isnan.c: Removed.
4442 * sysdeps/powerpc/powerpc64/fpu/s_isnan.S: New file.
4443 * sysdeps/powerpc/powerpc64/fpu/s_isnan.c: Removed.
4444
117df5d9
JJ
44452008-04-10 Jakub Jelinek <jakub@redhat.com>
4446
4447 * stdlib/tst-makecontext.c (othervar): New variable.
4448 (cf): Test sign extending the argument to long.
4449
3b32d8a2
UD
44502008-03-03 Steven Munroe <sjmunroe@us.ibm.com>
4451
4452 * sysdeps/powerpc/powerpc32/power5/fpu/s_isnan.S: New file.
4453 * sysdeps/powerpc/powerpc32/power5/fpu/s_isnanf.S: New file.
4454 * sysdeps/powerpc/powerpc32/power6/fpu/s_isnan.S: New file.
4455 * sysdeps/powerpc/powerpc32/power6/fpu/s_isnanf.S: New file.
4456 * sysdeps/powerpc/powerpc64/power5/fpu/s_isnan.S: New file.
4457 * sysdeps/powerpc/powerpc64/power6/fpu/s_isnan.S: New file.
4458 * sysdeps/powerpc/powerpc64/power6x/fpu/s_isnan.S: New file.
4459
9fb11d4c
UD
44602008-02-22 Alan Modra <amodra@bigpond.net.au>
4461
4462 * elf/Makefile (tests): Substitute tests-vis-yes here.
4463 (tests-vis-yes): Delete.
4464 (modules-name, modules-vis-yes): Similarly.
4465
facd1d8e
UD
44662008-02-12 Pete Eberlein <eberlein@us.ibm.com>
4467
4468 [BZ #4407]
4469 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
4470 Preserve sign in signgamp when x is zero.
4471
aece054b
UD
44722007-10-26 Steven Munroe <sjmunroe@us.ibm.com>
4473
4474 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.S: New File.
4475 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.c: Removed.
4476 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.S: New File.
4477 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.c: Removed.
4478 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt.S: New File.
4479 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf.S: New File.
4480
6c30d38f
UD
44812008-04-09 Ulrich Drepper <drepper@redhat.com>
4482
21208604 4483 [BZ #4314]
13d83320
UD
4484 * sysdeps/i386/i686/memcpy.S: Optimize copying of equally aligned
4485 buffers.
21208604 4486
2f611ada 4487 [BZ #5209]
d1235fdf
UD
4488 * sysdeps/unix/sysv/syscalls.list: The times syscall doesn't have
4489 a reserved error value.
2f611ada 4490
6c30d38f
UD
4491 * stdlib/tst-makecontext.c: Change parameter to cf to negative
4492 value to check for correct sign extension.
4493
4494 [BZ #5436]
4495 * sysdeps/unix/sysv/linux/x86_64/makecontext.c (__makecontext):
4496 Copy 64-bit parameter values even though this is not required in
4497 the standard.
4498
4499 * sysdeps/unix/sysv/linux/x86_64/vfork.S (__vfork): Record return
4500 PC save.
4501
de1bbf68
UD
45022008-02-14 Daniel Jacobowitz <dan@codesourcery.com>
4503
4504 * sysdeps/unix/sysv/linux/i386/vfork.S (__vfork): Record return
4505 PC save.
4506
9aef35a5
UD
45072008-04-09 Jakub Jelinek <jakub@redhat.com>
4508
4509 * nss_files/files-XXX.c (_nss_files_getXXent_r): Restore saved errno.
4510
a7925a24
UD
45112008-04-09 Ulrich Drepper <drepper@redhat.com>
4512
4513 [BZ #5998]
4514 * libio/iofwrite.c (_IO_fwrite): Return correct count if flushing
4515 in line-buffered stream failed.
4516 * libio/iofwrite_u.c (fwrite_unlocked): Likewise.
4517
7b61ef24
UD
45182008-04-08 Ulrich Drepper <drepper@redhat.com>
4519
c2a684a4
UD
4520 [BZ #6024]
4521 * scripts/abi-versions.awk: If the version specified by
4522 --enable-oldest-abi is older than the first version for this
4523 architecture, use the default version.
4524
7b61ef24
UD
4525 * locale/programs/ld-collate.c (collate_read): Ignore script lines
4526 as well when ignoring the whole category.
4527
f6d749f0
UD
45282008-04-07 Ulrich Drepper <drepper@redhat.com>
4529
4530 [BZ #6042]
4531 * sysdeps/unix/sysv/linux/net/ethernet.h: Add a few more
4532 ETHERTYPE_* definitions.
4533 Patch partly by Aurelien Jarno <aurelien@aurel32.net>.
4534
1e99aede
JJ
45352008-04-07 Jakub Jelinek <jakub@redhat.com>
4536
4537 * stdlib/mbtowc.c (__no_r_state): Remove.
4538 (mbtowc): New static state variable. Use it instead of
4539 __no_r_state.
4540 * stdlib/wctomb.c (__no_r_state): Remove extern decl.
4541 (__wctomb_state): New hidden variable.
4542 (wctomb): Use __wctomb_state instead of __no_r_state.
4543 * debug/wctomb_chk.c (__no_r_state): Remove extern decl.
4544 (__wctomb_state): New extern decl.
4545 (__wctomb_chk): Use __wctomb_state instead of __no_r_state.
4546
fcf90e0a
UD
45472008-04-07 Ulrich Drepper <drepper@redhat.com>
4548
4549 [BZ #5475]
4550 * resolv/res_init.c: Handle scope IDs in resolv.conf.
4551
ae39e102
JJ
45522008-04-07 Jakub Jelinek <jakub@redhat.com>
4553
4554 * malloc/mtrace.pl: Use $@ instead of $* to keep perl 5.10 quiet.
4555
2503dd30
UD
45562008-04-06 Ulrich Drepper <drepper@redhat.com>
4557
4558 * po/nl.po: Update from translation team.
4559
3eb9c809
UD
45602008-03-31 Ulrich Drepper <drepper@redhat.com>
4561
4562 [BZ #6007]
4563 * string/strfry.c: Handle empty strings again.
4564
9a69db29
UD
45652008-03-30 Ulrich Drepper <drepper@redhat.com>
4566
4567 [BZ #5443]
4568 * intl/dcigettext.c (__dcigettext): Get reader lock for locale data
4569 before looking for translation.
4570 * locale/duplocale.c: Transform __libc_setlocale_lock into rwlock.
4571 * locale/freelocale.c: Likewise.
4572 * locale/newlocale.c: Likewise.
4573 * locale/setlocale.c: Likewise.
4574 Based partially on a patch by ryo@np.css.fujitsu.com.
4575
2ecc7d93
UD
45762008-03-30 Jakub Jelinek <jakub@redhat.com>
4577
4578 * intl/dcigettext.c (_nl_find_msg): Reread nconversions after
4579 acquiring wrlock. Do conv_tab allocation while holding lock.
4580 * intl/Makefile: Add rules to build and run tst-gettext6.
4581 * intl/tst-gettext6.c: New test.
4582 * intl/tst-gettext6.sh: New file.
4583
221e5230
UD
45842008-03-30 Ulrich Drepper <drepper@redhat.com>
4585
faa091c6
UD
4586 * po/nl.po: Update from translation team.
4587
221e5230
UD
4588 * sysdeps/unix/opendir.c (__alloc_dir): If allocation fails for size
4589 provided through st_blksize, try the default size before giving up.
4590
1c272665
UD
45912008-03-29 Ulrich Drepper <drepper@redhat.com>
4592
43f6bec1
UD
4593 * stdio-common/vfprintf.c (vfprintf): Correct overflow test.
4594
e8a32126
UD
4595 [BZ #5939]
4596 * sysdeps/posix/tempname.c (__gen_tempname): Correct flag selection.
4597
1e489af9
UD
4598 * posix/getopt.c (_getopt_internal_r): Remove old POSIX-demanded
4599 error message. POSIX today does not require the messages to be in
4600 a specific form. Suggested by Jim Meyering <jim@meyering.net>.
4601
1d20f7f8
UD
4602 [BZ #5979]
4603 * sunrpc/auth_unix.c: Unify printed strings.
4604 * sunrpc/clnt_tcp.c: Likewise.
4605 * sunrpc/clnt_udp.c: Likewise.
4606 * sunrpc/clnt_unix.c: Likewise.
4607 * sunrpc/svc_tcp.c: Likewise.
4608 * sunrpc/svc_udp.c: Likewise.
4609 * sunrpc/svc_unix.c: Likewise.
4610 * sunrpc/xdr.c: Likewise.
4611 * sunrpc/xdr_array.c: Likewise.
4612 * sunrpc/xdr_rec.c: Likewise.
4613 * sunrpc/xdr_ref.c: Likewise.
4614 * locale/programs/ld-time.c (time_finish): Unify messages.
4615 * locale/programs/locfile.c (handle_copy): Fix typo.
4616 * nscd/nscd.c (options): Fix typo.
4617
1c272665
UD
4618 [BZ #5995]
4619 * stdlib/strtod_l.c: Use correct sign for result in one more
4620 underflow case.
4621 Patch by Eric Blake <ebb9@byu.net>.
4622
48cc060e
UD
46232008-03-27 Jakub Jelinek <jakub@redhat.com>
4624
4625 * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Add open
4626 and creat system calls.
4627 * sysdeps/unix/sysv/linux/alpha/syscalls.list: Remove open system
4628 call.
4629 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Remove open and creat
4630 system calls.
4631 * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: Likewise.
4632 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
4633 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
4634
f96853be
UD
46352008-03-27 Ulrich Drepper <drepper@redhat.com>
4636
4637 * sysdeps/unix/sysv/linux/bits/local_lim.h: Undefined ARG_MAX if
4638 <linux/limits.h> has defined it.
4639 * sysdeps/unix/sysv/linux/sys/param.h: Define NCARGS to the legacy
4640 ARG_MAX value and prevent ARG_MAX from being defined by the kernel
4641 headers.
4642 * sysdeps/unix/sysv/linux/sysconf.c: Define legacy_ARG_MAX and use
4643 it instead of ARG_MAX.
4644
fde15fdc
UD
46452008-03-25 Jakub Jelinek <jakub@redhat.com>
4646
4647 * posix/gai.conf: Fix comment for scope nullbits.
4648 * sysdeps/posix/getaddrinfo.c (gaiconf_init): If /bits is not present,
4649 default to 128 bits for v4 mapped addresses.
4650
87b9b50f
UD
46512008-03-07 Martin Schwidefsky <schwidefsky@de.ibm.com>
4652
4653 * sysdeps/s390/fpu/fegetenv.c (fegetenv): Remove PTRACE_PEEKUSER
4654 ptrace call to get the ieee_instruction_pointer from the kernel.
4655 * sysdeps/s390/fpu/fesetenv.c (fesetenv): Remove PTRACE_POKEUSER
4656 ptrace call to set the ieee_instructtion_pointer.
4657 * sysdeps/unix/sysv/linux/s390/sys/user.h (struct _user_regs_struct):
4658 Add comment that ieee_instruction_pointer is always 0.
4659
af0498dc
UD
46602008-03-09 Andreas Jaeger <aj@suse.de>
4661
4662 [BZ #5857]
4663 * sysdeps/ieee754/dbl-64/s_rint.c (__rint): Handle j0==18.
4664 * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Likewise.
4665 Patch by Mark Elliott <mark.h.elliott@lmco.com>.
4666
4667 * math/libm-test.inc (nearbyint_test): Add new test cases from #5857.
4668 (rint_test): Likewise.
4669
0ab7632d
UD
46702008-03-24 Ulrich Drepper <drepper@redhat.com>
4671
0facd3df
UD
4672 * nis/nis_call.c (nis_server_cache_search): Save errno around stat
4673 call.
4674 (__nisfind_server): Similar for open readColdStartFile call.
4675 Patch partially by Jim Meyering.
4676 * nss/nss_files/files-XXX.c (_nss_files_getXXent_r): Save errno
4677 around internal_setent call.
4678
7e570c55
UD
4679 * po/vi.po: New Vietnamese translation.
4680
e093c247
UD
4681 * sysdeps/unix/sysv/linux/adjtime.c: Correctly use
4682 ADJ_OFFSET_SS_READ.
4683
0ab7632d
UD
4684 * sysdeps/unix/sysv/linux/bits/sched.h: Add new CLONE_* flags,
4685 remove CLONE_STOPPED.
4686
0726cdf7
UD
46872008-02-10 Jim Meyering <meyering@redhat.com>
4688
4689 Remove useless "if" before "free":
4690 * elf/ldconfig.c (parse_conf_include): Likewise.
4691 * gmon/gmon.c (weak_alias): Likewise.
4692 * iconv/gconv_conf.c (__gconv_get_path): Likewise.
4693 * inet/rcmd.c (__validuser2_sa): Likewise.
4694 * intl/bindtextdom.c (set_binding_values): Likewise.
4695 * intl/loadmsgcat.c (_nl_load_domain, _nl_unload_domain): Likewise.
4696 * libio/genops.c (save_for_backup): Likewise.
4697 * libio/wgenops.c (save_for_wbackup): Likewise.
4698 * locale/programs/ld-collate.c (collate_read): Likewise.
4699 * locale/programs/linereader.c (get_string): Likewise.
4700 * nis/nss_compat/compat-pwd.c (give_pwd_free): Likewise.
4701 * nis/nss_compat/compat-spwd.c (give_spwd_free): Likewise.
4702 * resolv/res_debug.c (do_section): Likewise.
4703 * sunrpc/xdr_sizeof.c (x_inline, xdr_sizeof): Likewise.
4704 * sysdeps/mach/hurd/if_index.c (libc_hidden_def): Likewise.
4705 * sysdeps/posix/sprofil.c (__sprofil): Likewise.
4706 * time/lc-time-cleanup.c (_nl_cleanup_time): Likewise.
4707 * time/tzset.c (tzset_internal): Likewise.
4708
354b7527
JJ
47092008-03-18 Jakub Jelinek <jakub@redhat.com>
4710
4711 * sysdeps/unix/sysv/linux/dl-sysdep.h: Use __ASSEMBLER__ instead
4712 of ASSEMBLER.
4713
ca668b29
UD
47142008-03-11 Ulrich Drepper <drepper@redhat.com>
4715
4716 [BZ #5903]
4717 * iconv/iconv_charmap.c (charmap_conversion): Pass name of output file
4718 not stream for output file. Open output file here.
4719 * iconv/iconv_prog.c (process_lock): Take pointer to output stream
4720 and output file name.
4721 (process_fd): Likewise.
4722 (process_file): Likewise.
4723 (main): Adjust callers of changed functions.
4724 * iconv/iconv_prog.h: Adjust prototype.
4725
f3dc3415
AJ
47262008-03-09 Andreas Jaeger <aj@suse.de>
4727
4728 [BZ #5753]
4729 * sysdeps/ia64/ieee754.h: Use protected namespace
4730 __BIG_ENDIAN/__LITTLE_ENDIAN.
4731 * sysdeps/ieee754/ieee754.h: Likewise.
4732 Patch by Aurelien Jarno <aurelien@aurel32.net>.
4733
a8fd84d4
RM
47342008-03-08 Roland McGrath <roland@frob.com>
4735
2b965f1b
RM
4736 * hurd/hurdsig.c (_hurd_internal_post_signal): When normal rules would
4737 ignore a signal that came from a machine exception, treat it as a
4738 fatal core-dump signal instead.
4739 Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>.
4740
a8fd84d4
RM
4741 * sysdeps/mach/hurd/i386/trampoline.c (_hurd_setup_sighandler):
4742 Clear DF bit in thread state's eflags.
4743 Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>.
4744
368a8dec
UD
47452008-03-08 Ulrich Drepper <drepper@redhat.com>
4746
b3278554
UD
4747 [BZ #5774]
4748 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Consume closing brace
c6c00e0d 4749 of NAN(...) sequence.
b3278554
UD
4750 * stdlib/Makefile (tests): Add tst-strtod6.
4751 * stdlib/tst-strtod6.c: New file.
4752
4753 * inet/inet6_opt.c (inet6_opt_init): Check extlen for overflow.
4754
2127a186
UD
4755 [BZ #5762]
4756 * posix/getopt.c (_getopt_internal_r): Clarify error message by
4757 putting offending option character in quotes. Clean up error
4758 messages.
4759 * po/be.po: Adjust msgstr in translation file.
4760 * po/bg.po: Likewise.
4761 * po/ca.po: Likewise.
4762 * po/cs.po: Likewise.
4763 * po/da.po: Likewise.
4764 * po/de.po: Likewise.
4765 * po/es.po: Likewise.
4766 * po/fr.po: Likewise.
4767 * po/hr.po: Likewise.
4768 * po/ko.po: Likewise.
4769 * po/nl.po: Likewise.
4770 * po/rw.po: Likewise.
4771 * po/sk.po: Likewise.
4772 * po/sv.po: Likewise.
4773 * po/tr.po: Likewise.
4774 * po/zh_CN.po: Likewise.
4775 * po/zh_TW.po: Likewise.
4776
725c0c87
UD
4777 [BZ #5760]
4778 * inet/inet6_opt.c (inet6_opt_init): Fix ip6h_len computation.
4779 Patch by Roland Bless <roland@bless.de>.
4780
368a8dec
UD
4781 * sysdeps/unix/sysv/linux/dl-sysdep.c: Avoid unnecessary code for
4782 .o file.
4783 * elf/Makefile (routines): Add dl-sysdep.
4784 (elide-routines.os): Likewise.
4785
78c2bf0e
UD
47862008-03-07 Ulrich Drepper <drepper@redhat.com>
4787
7c22c7ec
UD
4788 [BZ #5786]
4789 * elf/dl-sysdep.c: Undefine ROUND after use.
4790 * sysdeps/generic/ldsodefs.h [HAVE_DL_DISCOVER_OSVERSION]
4791 (struct rtld_global_ro): Add _dl_tls_get_addr_soft element.
4792 * elf/rtld.c (rtld_global_ro): Initialize _dl_discover_osversion.
4793 * sysdeps/unix/sysv/linux/dl-osinfo.h: Move _dl_discover_osversion
4794 to ...
4795 * sysdeps/unix/sysv/linux/dl-sysdep.c: ...here.
4796 * sysdeps/unix/sysv/linux/dl-sysdep.h: Declare _dl_discover_osversion
4797 if necessary.
4798 * sysdeps/unix/sysv/linux/sysconf.c: Handle _SC_ARG_MAX here.
4799
93025f93
UD
4800 * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Add
4801 _dl_tls_get_addr_soft element.
4802 * elf/rtld.c (rtld_global_ro): Initialize _dl_tls_get_addr_soft.
4803 * elf/Versions (ld): Don't export _dl_tls_get_addr_soft.
4804 * dlfcn/dlinfo.c (dlinfo_doit): Access dl_tls_get_addr_soft through
4805 GLRO.
4806 * elf/dl-iteratephdr.c (__dl_iterate_phdr): Likewise.
4807 * elf/dl-tls.c (_dl_tls_get_addr_soft): Use attribute_hidden instead
4808 of internal_function.
4809
72f10127
UD
4810 * stdlib/Makefile (aux): Add tens_in_limb.
4811 * stdlib/strtod_l.c: Move _tens_in_limb definition to...
4812 * stdlib/tens_in_limb.c: ...here. New file.
4813
443db178
UD
4814 [BZ #5778]
4815 * sysdeps/unix/sysv/linux/pathconf.h: Declare
4816 __statfs_chown_restricted.
4817 * sysdeps/unix/sysv/linux/fpathconf.c: Call __statfs_chown_restricted
4818 for _PC_CHOWN_RESTRICTED.
4819 * sysdeps/unix/sysv/linux/pathconf.c: Likewise.
4820 Implement __statfs_chown_restricted.
4821 * sysdeps/unix/sysv/linux/bits/posix_opt.h: Change
4822 _POSIX_CHOWN_RESTRICTED value to zero.
c71665ad
UD
4823 * io/tst-fchownat.c: Correctly handle _POSIX_CHOWN_RESTRICTED
4824 defined to zero.
443db178 4825
78c2bf0e
UD
4826 * sysdeps/x86_64/rtld-memset.c: New file.
4827
443db178 48282008-02-26 Harsha Jagasia <harsha.jagasia@amd.com>
78c2bf0e
UD
4829
4830 * sysdeps/x86_64/cacheinfo.c (NOT_USED_RIGHT_NOW): Remove ifdef guards.
4831
4832 * sysdeps/x86_64/memset.S: Rewrite non-SSE code path as tuned for AMD
4833 Barcelona machine. Make default fall through branch of
4834 __x86_64_preferred_memory_instruction check as the integer code path.
4835
48362007-10-15 H.J. Lu <hongjiu.lu@intel.com>
4837
4838 * sysdeps/x86_64/cacheinfo.c
4839 (__x86_64_preferred_memory_instruction): New variable.
4840 (init_cacheinfo): Initialize __x86_64_preferred_memory_instruction.
4841
4842 * sysdeps/x86_64/memset.S: Rewrite.
4843
dff37515
UD
48442008-03-04 Jakub Jelinek <jakub@redhat.com>
4845
4846 * include/stdio.h (__asprintf_chk, __dprintf_chk,
4847 __obstack_printf_chk): New prototypes.
4848 (__vasprintf_chk, __vdprintf_chk,
4849 __obstack_vprintf_chk): Likewise.
4850 Add libc_hidden_proto.
4851 * libio/obprintf.c
4852 (_IO_obstack_jumps): No longer static, add attribute_hidden.
4853 * libio/bits/stdio-ldbl.h (__asprintf_chk, __dprintf_chk,
4854 __obstack_printf_chk, __vasprintf_chk, __vdprintf_chk,
4855 __obstack_vprintf_chk): Add __LDBL_REDIR_DECL.
4856 * libio/bits/stdio2.h (__asprintf_chk, __dprintf_chk,
4857 __obstack_printf_chk, __vasprintf_chk, __vdprintf_chk,
4858 __obstack_vprintf_chk): New prototypes.
4859 (asprintf, __asprintf, dprintf, obstack_printf, vasprintf, vdprintf,
4860 obstack_vprintf): New inlines.
4861 * debug/dprintf_chk.c: New file.
4862 * debug/vdprintf_chk.c: New file.
4863 * debug/asprintf_chk.c: New file.
4864 * debug/vasprintf_chk.c: New file.
4865 * debug/obprintf_chk.c: New file.
4866 * debug/tst-chk1.c (do_test): Add asprintf and obstack_printf tests.
4867 * debug/Versions (__asprintf_chk, __dprintf_chk, __obstack_printf_chk,
4868 __vasprintf_chk, __vdprintf_chk, __obstack_vprintf_chk): Export
4869 @@GLIBC_2.8.
4870 * debug/Makefile: Build asprintf_chk, vasprintf_chk, dprintf_chk,
4871 vdprintf_chk and obprintf_chk, set CFLAGS for them.
4872 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c (__nldbl___vasprintf_chk,
4873 __nldbl___vdprintf_chk, __nldbl___obstack_vprintf_chk): Add
4874 libc_hidden_proto.
4875 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl___vasprintf_chk,
4876 __nldbl___vdprintf_chk, __nldbl___obstack_vprintf_chk): New prototypes.
4877 * sysdeps/ieee754/ldbl-opt/Versions (__nldbl___asprintf_chk,
4878 __nldbl___vasprintf_chk, __nldbl___dprintf_chk, __nldbl___vdprintf_chk,
4879 __nldbl___obstack_printf_chk, __nldbl___obstack_vprintf_chk): Export
4880 @@GLIBC_2.8.
4881 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add asprintf_chk,
4882 vasprintf_chk, dprintf_chk, vdprintf_chk, obstack_printf_chk and
4883 obstack_vprintf_chk.
4884 * sysdeps/ieee754/ldbl-opt/nldbl-obstack_vprintf_chk.c: New file.
4885 * sysdeps/ieee754/ldbl-opt/nldbl-dprintf_chk.c: New file.
4886 * sysdeps/ieee754/ldbl-opt/nldbl-obstack_printf_chk.c: New file.
4887 * sysdeps/ieee754/ldbl-opt/nldbl-asprintf_chk.c: New file.
4888 * sysdeps/ieee754/ldbl-opt/nldbl-vdprintf_chk.c: New file.
4889 * sysdeps/ieee754/ldbl-opt/nldbl-vasprintf_chk.c: New file.
4890
d835f136
UD
48912008-03-04 Ulrich Drepper <drepper@redhat.com>
4892
a4bb445a
UD
4893 [BZ #5779]
4894 * misc/sys/queue.h: Add STAILQ_CONCAT and TAILQ_CONCAT definitions.
4895 Patch by Roy Marples <roy@marples.name>.
4896
c958a6a4
UD
4897 [BZ #5736]
4898 * malloc/malloc.c: Fix typo in comment.
4899
d835f136
UD
4900 [BZ #5627]
4901 * locale/iso-639.def: Add Shuswap.
4902
65b4743a
UD
49032008-02-25 Jakub Jelinek <jakub@redhat.com>
4904
4905 [BZ #5790]
4906 * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr2_r): Don't
4907 overwrite *h_errnop/*errnop values from getanswer_r in case of
4908 failure.
4909
3868fb6e
UD
49102008-03-03 Ulrich Drepper <drepper@redhat.com>
4911
27c377dd
UD
4912 [BZ #5818]
4913 * nscd/connections.c (dbs): Add initializers for .suggested_module.
4914 (verify_persistent_db): Remove one unnecessary test and add a new one
4915 for bad configuration.
4916 (nscd_init): Improve error reported when persistent database cannot
4917 be reused.
4918 * nscd/nscd.h (DEFAULT_SUGGESTED_MODULE): Define.
4919 * nscd/nscd_conf.c (nscd_parse_file): Provide default values for
4920 .suggested_module and .max_db_size and case config file says the
4921 values are zero.
4922 * nscd/nscd_helper.c (get_mapping): Fail if hash table module is zero.
4923
0f749099
UD
4924 [BZ #5854]
4925 * nis/ypclnt.c (yp_order): Fix handling of return value of
4926 do_ypcall_tr call.
4927 Patch by Jeff Moyer <jmoyer@redhat.com>.
4928
3868fb6e
UD
4929 * po/fr.po: Update from translation team.
4930
268dbf25
AJ
49312008-02-22 Andreas Jaeger <aj@suse.de>,
4932 Carlos O'Donell <carlos@systemhalted.org>
4933
4934 [BZ #5012]
4935 * FAQ.in: Describe why glibc needs to be compiled with
4936 optimization.
4937
73b82641
RM
49382008-02-19 Roland McGrath <roland@redhat.com>
4939
4940 * elf/elf.h (SHT_GNU_ATTRIBUTES): New macro.
4941
c9136393
UD
49422008-02-15 Ulrich Drepper <drepper@redhat.com>
4943
4944 [BZ #5737]
4945 * resolv/netdb.h: Make NI_MAXHOST and NI_MAXSERV available when
4946 __USE_MISC is defined.
4947
2e3e9ff1
UD
49482008-02-10 Ulrich Drepper <drepper@redhat.com>
4949
4950 * sysdeps/unix/sysv/linux/sys/timerfd.h: New file.
4951 * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers): Add
4952 sys/timerfd.h.
4953 * sysdeps/unix/sysv/linux/syscalls.list: Add timerfd_create,
4954 timerfd_gettime, timerfd_settime.
4955 * sysdeps/unix/sysv/linux/Versions: Add timerfd_create,
4956 timerfd_gettime, timerfd_settime for GLIBC_2.8.
4957
85202a2b
RM
49582008-02-08 Roland McGrath <roland@redhat.com>
4959
4960 * elf/elf.h (NT_PPC_SPE): New macro.
4961
708ef8a4
RM
49622008-02-06 Roland McGrath <roland@redhat.com>
4963
4964 * Makerules ($(common-objpfx)sysd-rules):
4965 Depend on $(sysdep-makeconfigs).
4966
363a641b
RM
49672008-01-31 Roland McGrath <roland@redhat.com>
4968
67fbfa5c
RM
4969 [BZ #5442]
4970 * configure.in: Use -print-file-name if it yields a directory,
4971 for each of include and include-fixed.
4972 * configure: Regenerated.
4973
363a641b
RM
4974 * Makeconfig (sysd-rules-targets): New variable.
4975 * sysdeps/unix/make-syscalls.sh: Use it in the rules emitted.
4976 * sysdeps/unix/Makefile (omit-deps): Append variants for each target.
4977
0f0f9610
RM
49782008-01-30 Roland McGrath <roland@redhat.com>
4979
7bd00dbf
RM
4980 * manual/libc.texinfo: Update back-cover text.
4981
0f0f9610
RM
4982 * elf/elf.h (NT_386_TLS): New macro.
4983
16cd816f
RM
49842008-01-29 Roland McGrath <roland@redhat.com>
4985
4986 * Makeconfig (sysd-rules-patterns): New variable.
4987 * Makerules ($(common-objpfx)sysd-rules): Drive the loop from that.
4988 (check-inhibit-asm): New canned sequence, replaces ...
4989 (open-check-inhibit-asm, close-check-inhibit-asm): ... these, removed.
4990 * elf/rtld-Rules ($(objpfx)rtld-%.os): Use $(rtld-CPPFLAGS) in commands.
4991 (rtld-CPPFLAGS): Renamed from CPPFLAGS-rtld.
4992 (CFLAGS-rtld): Variable removed.
4993
f641ffcc
RM
49942008-01-24 Roland McGrath <roland@redhat.com>
4995
4996 * configure.in: Let configure fragments set base_os.
4997 * configure: Regenerated.
4998
b7e26885
UD
49992008-01-22 Ulrich Drepper <drepper@redhat.com>
5000
5001 * po/ko.po: Update from translation team.
5002
b4b166af
UD
50032008-01-12 H.J. Lu <hongjiu.lu@intel.com>
5004
5005 * sysdeps/i386/fpu/ftestexcept.c (fetestexcept): Use short for fnstsw.
5006
f66def9d
AJ
50072008-01-12 Andreas Jaeger <aj@suse.de>
5008
5009 [BZ #5040]
5010 * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h (enum EPOLL_EVENTS):
5011 Add EPOLLRDHUP.
5012
d3bc5e77
RM
50132008-01-20 Samuel Thibault <samuel.thibault@ens-lyon.org>
5014
5015 * hurd/hurdsock.c (_hurd_socket_server): Return the standard
5016 error EAFNOSUPPORT rather than non-standard EPFNOSUPPORT.
5017 * sunrpc/bindrsvprt.c (bindresvport): Likewise.
5018
4c533566
UD
50192007-10-23 Alexandre Oliva <aoliva@redhat.com>
5020
5021 * include/link.h (FORCED_DYNAMIC_TLS_OFFSET): Define.
5022 * elf/dl-close.c (_dl_close): Check for it.
5023 * elf/dl-reloc.c (CHECK_STATIC_TLS): Likewise.
5024 (_dl_allocate_static_tls): Likewise.
5025 * elf/dl-tls.c (_dl_allocate_tls_init): Likewise.
5026 (__tls_get_addr): Protect from race conditions in setting l_tls_offset
5027 to it.
5028 * elf/tst-tls16.c: New file.
5029 * elf/tst-tlsmod16a.c: New file.
5030 * elf/tst-tlsmod16b.c: New file.
5031 * elf/Makefile: Add rules to build and run tst-tls16.
5032
a53d3f82
UD
50332008-01-16 Ulrich Drepper <drepper@redhat.com>
5034
a0f6c236
UD
5035 [BZ #5628]
5036 * bits/shm.h: Fix comment describing shmid_ds.
5037 * sysdeps/gnu/bits/shm.h: Likewise.
5038 * sysdeps/unix/sysv/linux/alpha/bits/shm.h: Likewise.
5039 * sysdeps/unix/sysv/linux/bits/shm.h: Likewise.
5040 * sysdeps/unix/sysv/linux/ia64/bits/shm.h: Likewise.
5041 * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Likewise.
5042 * sysdeps/unix/sysv/linux/s390/bits/shm.h: Likewise.
5043 * sysdeps/unix/sysv/linux/sh/bits/shm.h: Likewise.
5044 * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Likewise.
5045 * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: Likewise.
5046 Patch by Hareesh Nagarajan <hareesh.nagarajan@gmail.com>.
5047
a53d3f82
UD
5048 [BZ #5607]
5049 * conform/data/fcntl.h-data: Fix posix_fadvise and posix_fallocate
5050 prototypes.
5051 * conform/data/limits.h-data: Adjust limits changed in v6 and add
5052 additional suffixes.
5053 * conform/data/mqueue.h-data: Fix typo in mq_curmsgs entry.
5054 Add optional functions mq_timedreceive and mq_timedsend.
5055 * conform/data/netdb.h-data: Add more AI_* and EAI_* constants.
5056 * conform/data/pthread.h-data: Fix prototype of
5057 pthread_condattr_setclock. pthread_sigmask is not required in v6.
5058 * conform/data/semaphore.h-data: Allow time.h definitions.
5059 * conform/data/signal.h-data: Likewise.
5060 * conform/data/stdio.h-data: getw and putw are not required in v6.
5061 * conform/data/stdlib.h-data: Change setstate prototype.
5062 * conform/data/string.h-data: Fix strerror_r prototype.
5063 * conform/data/time.h-data: Fix typo in TIMER_ABSTIME definition.
5064 * conform/data/unistd.h-data: pthread_atfork not required in v6.
5065 Fix readlink prototype.
5066 * conform/data/netinet/in.h-data: Add const to in6addr_any and
5067 in6addr_loopback.
5068 * inet/netinet/in.h: Cleanup namespace.
5069 * posix/regex.h: Likewise.
5070 * resolv/netdb.h: Likewise.
5071 * sysdeps/unix/sysv/linux/bits/in.h: Likewise.
5072 * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
5073 * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
6107639e
UD
5074 * sysdeps/posix/getaddrinfo.c (default_labels): Adjust for change
5075 of names of in in6_addr.
5076 (default_precedence): Likewise.
5077 * sysdeps/unix/sysv/linux/cmsg_nxthdr.c: Include <stddef.h> for
5078 NULL definition.
a53d3f82 5079
ebca8f73
UD
50802008-01-15 Ulrich Drepper <drepper@redhat.com>
5081
fbe90cd5
UD
5082 * conform/data/fmtmsg.h-data: Add missing allows.
5083 * conform/data/ftw.h-data: Likewise.
5084 * conform/data/inttypes.h-data: Likewise.
5085 * conform/data/math.h-data: Likewise.
5086 * conform/data/signal.h-data: Likewise.
5087 * conform/data/net/if.h-data: Likewise.
5088 * conform/data/netinet/in.h-data: Likewise.
5089 * conform/data/sys/socket.h-data: Likewise.
5090
ebca8f73
UD
5091 [BZ #5614]
5092 * string/bits/string2.h (__strtok_r_1c): Always update *__NEXTP.
5093 (__strtok_r): Simplify.
5094 * string/tester.c (test_strtok_r): Add test case for futile search
5095 with single-character seach string.
5096
7c33ca8b
UD
50972008-01-12 Ulrich Drepper <drepper@redhat.com>
5098
5099 * po/ko.po: Update from translation team.
5100
b8cc0848
AJ
51012008-01-11 Andreas Jaeger <aj@suse.de>
5102
5103 [BZ #5600]
5104 * sysdeps/unix/sysv/linux/sys/signalfd.h (struct
5105 signalfd_siginfo): Use 64-bit type for ssi_ptr to sync with Linux
5106 kernel header.
5107
49029a66
UD
51082008-01-10 Ulrich Drepper <drepper@redhat.com>
5109
5110 * sysdeps/posix/getaddrinfo.c (rfc3484_sort): Store result of
5111 native interface lookup in all the relevant places.
5112
99f05798
UD
51132008-01-10 Jakub Jelinek <jakub@redhat.com>
5114 Ulrich Drepper <drepper@redhat.com>
0efd1956
UD
5115
5116 * sysdeps/posix/getaddrinfo.c (sort_results): Remove service_order
5117 field. Use sockaddr_in6 for source_addr.
5118 (get_scope): Change type of parameter to sockaddr_in6. Adjust.
5119 (match_prefix): Likewise.
5120 (get_label): Likewise.
5121 (get_precedence): Likewise.
5122 (rfc3484_sort): Change to use indirect access to results array.
5123 Adjust to use of sockaddr_in6. Replace service_order test with
5124 simple index comparison.
5125 (getaddrinfo): Define order array. Initialize it. Don't initialize
5126 service_order field. Adjust qsort_t calls. Access sorted result
5127 array indirectly through order array.
5128 * posix/tst-rfc3484.c: Adjust for change of rfc3484_sort.
5129 * posix/tst-rfc3484-2.c: Likewise.
5130 * posix/tst-rfc3484-3.c: Likewise.
5131
b3443701
UD
51322008-01-09 Ulrich Drepper <drepper@redhat.com>
5133
f6bacb8e
UD
5134 [BZ #5541]
5135 * sunrpc/rpc_thread.c (__rpc_thread_destroy): Also free xports and
5136 pollfd structures.
5137 Patch by André Cruz.
5138
aa693c68
UD
5139 [BZ #5545]
5140 * sunrpc/clnt_perr.c (clnt_sperror): Don't use fixed size buffer.
5141 (clnt_spcreateerror): Likewise.
5142
b3443701
UD
5143 [BZ #5553]
5144 * malloc/malloc.c (public_mALLOc): Set ar_ptr when trying main_arena.
5145 (public_mEMALIGn): Likewise.
5146 Patch mostly by Daniel Jacobowitz.
5147
148e12ed
UD
51482008-01-09 Jakub Jelinek <jakub@redhat.com>
5149
5150 * sysdeps/unix/sysv/linux/i386/makecontext.S (__makecontext): Avoid
5151 clobbering memory at or above uc_stack.ss_sp + uc_stack.ss_size.
5152 * stdlib/Makefile: Add rules to build and run tst-makecontext2.
5153 * stdlib/tst-makecontext2.c: New test.
5154
78c2bf0e 51552008-01-08 Jakub Jelinek <jakub@redhat.com>
4b1b449d
UD
5156
5157 * iconv/loop.c (UPDATE_PARAMS): Define to empty statement if not
5158 defined.
5159 (REINIT_PARAMS): Likewise. Undefine before end of file.
5160 (STANDARD_TO_LOOP_ERR_HANDLER): Use UPDATE_PARAMS before calling
5161 transliteration hooks and REINIT_PARAMS afterwards.
5162 * iconvdata/iso-2022-jp.c (BODY): Use a separate variable for
5163 status.
5164 (REINIT_PARAMS): Define.
5165 * iconvdata/ibm1364.c (REINIT_PARAMS): Likewise.
5166 * iconvdata/ibm930.c (REINIT_PARAMS): Likewise.
5167 * iconvdata/ibm933.c (REINIT_PARAMS): Likewise.
5168 * iconvdata/ibm935.c (REINIT_PARAMS): Likewise.
5169 * iconvdata/ibm937.c (REINIT_PARAMS): Likewise.
5170 * iconvdata/ibm939.c (REINIT_PARAMS): Likewise.
5171 * iconvdata/iso-2022-cn.c (REINIT_PARAMS): Likewise.
5172 * iconvdata/iso-2022-cn-ext.c (REINIT_PARAMS): Likewise.
5173 * iconvdata/iso-2022-jp-3.c (REINIT_PARAMS): Likewise.
5174 * iconvdata/iso-2022-kr.c (REINIT_PARAMS): Likewise.
5175 * iconvdata/Makefile: Add rules to build and run tst-iconv7.c.
5176 * iconvdata/tst-iconv7.c: New test.
5177
71edcafa
UD
51782008-01-07 Ulrich Drepper <drepper@redhat.com>
5179
5180 * libio/stdio.h (vscanf): Fix definition for loser compilers.
5181
0fbfe2f7
JJ
51822008-01-05 Jakub Jelinek <jakub@redhat.com>
5183
5184 [BZ #5112]
5185 * nscd/connections.c (restart): Fix condition.
5186
8726a12e
UD
51872008-01-03 Jakub Jelinek <jakub@redhat.com>
5188
5189 * ctype/ctype.h (__ctype_b_loc, __ctype_tolower_loc,
5190 __ctype_toupper_loc): Add __THROW.
5191
f4a1363e
UD
51922008-01-02 Ulrich Drepper <drepper@redhat.com>
5193
ad586879
UD
5194 * sysdeps/unix/sysv/linux/check_pf.c (make_request): Fix
5195 recognition of interface family.
5196
f4a1363e
UD
5197 * posix/getconf.c: Update copyright year.
5198 * nss/getent.c: Likewise.
5199 * iconv/iconvconfig.c: Likewise.
5200 * iconv/iconv_prog.c: Likewise.
5201 * elf/ldconfig.c: Likewise.
5202 * catgets/gencat.c: Likewise.
5203 * csu/version.c: Likewise.
5204 * elf/ldd.bash.in: Likewise.
5205 * elf/sprof.c (print_version): Likewise.
5206 * locale/programs/locale.c: Likewise.
5207 * locale/programs/localedef.c: Likewise.
5208 * nscd/nscd.c (print_version): Likewise.
5209 * debug/xtrace.sh: Likewise.
5210 * malloc/memusage.sh: Likewise.
5211 * malloc/mtrace.pl: Likewise.
5212 * debug/catchsegv.sh: Likewise.
5213
0dc6c5e4
UD
52142007-12-26 Ulrich Drepper <drepper@redhat.com>
5215
5216 * nss/nsswitch.c (__nss_lookup): Actually use alternative name in
5217 second lookup.
5218
80af8b82
UD
52192007-12-23 Ulrich Drepper <drepper@redhat.com>
5220
5221 * sysdeps/x86_64/cacheinfo.c (intel_02_known): New entry 0x3f.
5222 * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
5223
4bcecfb7
RM
52242007-12-17 Roland McGrath <roland@redhat.com>
5225
5226 * inet/ether_line.c (ether_line): Remove unused variable.
5227
52282007-12-17 Samuel Thibault <samuel.thibault@ens-lyon.org>
5229
5230 * login/forkpty.c (forkpty): Add const qualifier to parameters termp
5231 and winp.
5232 * login/openpty.c (openpty): Likewise.
5233 * login/pty.h (openpty, forkpty): Likewise.
5234 * manual/terminal.texi (openpty, forkpty): Likewise.
5235
4cd4c5d6
UD
52362007-12-17 Ulrich Drepper <drepper@redhat.com>
5237
78c2bf0e 5238 * malloc/malloc.c (public_cALLOc): For arenas other than
4cd4c5d6
UD
5239 main_arena, count all bytes inside the mprotect_size range of the
5240 heap as uninitialized.
5241
68631c8e
UD
52422007-12-16 Ulrich Drepper <drepper@redhat.com>
5243
d9961b6a
UD
5244 * elf/tst-execstack.c (do_test): Don't fail if SELinux forbids
5245 executable stacks.
5246
68631c8e
UD
5247 * malloc/malloc.c (public_mTRIm): Iterate over all arenas and call
5248 mTRIm for all of them.
5249 (mTRIm): Additionally iterate over all free blocks and use madvise
5250 to free memory for all those blocks which contain at least one
5251 memory page.
be8c1500
UD
5252 * malloc/tst-trim1.c: New file.
5253 * malloc/Makefile (tests): Add tst-trim1.
68631c8e
UD
5254
5255 * malloc/malloc.c (do_check_malloc_state): Minimal cleanups.
5256
78b767a0
UD
52572007-12-14 Ulrich Drepper <drepper@redhat.com>
5258
5259 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INTERNAL_SYSCALL_ERROR_P):
5260 First cast argument to long
52386be7
UD
5261 * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_gettimeofday):
5262 Return long.
5263 (__vdso_clock_gettime): Likewise.
78b767a0
UD
5264 * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: Functions
5265 return long.
5266
bc3e1c12
UD
52672007-12-13 Ulrich Drepper <drepper@redhat.com>
5268
5269 * locale/nl_langinfo.c (nl_langinfo): Just call __nl_langinfo_l.
5270 * locale/nl_langinfo_l.c: Real implementation, copied from
5271 nl_langinfo.c.
5272 * include/langinfo.h: Add libc_hidden_proto for __nl_langinfo_l.
5273
77751669
UD
52742007-12-01 Jim Meyering <meyering@redhat.com>
5275
5276 * posix/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
5277 that would inhibit utf8-optimization of a regexp containing line-
5278 or buffer-anchors, e.g., `^', `$'.
5279
f63e5063
UD
52802007-12-12 Ulrich Drepper <drepper@redhat.com>
5281
5282 * time/bug-getdate1.c (do_test): Don't use century values which
5283 aren't valid on 32-bit systems.
5284
a78814a9
UD
52852007-12-12 Jakub Jelinek <jakub@redhat.com>
5286
5287 * sysdeps/i386/i486/bits/string.h (memmove): Define as macro.
5288 (memmove): Rename to __memmove_g, with __asm__ ("memmove").
5289 * sysdeps/s390/bits/string.h (__strlen_g, __strcpy_g, __strncpy_g,
5290 __strcat_g, __strncat_g): Add __asm__.
5291
52922007-12-12 Ulrich Drepper <drepper@redhat.com>
5293
5294 [BZ #5477]
5295 * io/fchmodat.c: Fix typo in stub_warning use.
5296 Patch by Petr Salinger.
5297
17edb30c
UD
52982007-12-11 Ulrich Drepper <drepper@redhat.com>
5299
58d11795
UD
5300 * iconvdata/hp-thai8.c: New file.
5301 * iconvdata/Makefile: Add rules for hp-thai8.c.
5302 * iconvdata/tst-tables.sh: Add entry for HP-THAI8.
5303 * iconvdata/gconv-modules: Likewise.
5304
5305 [BZ #5464]
5306 * iconvdata/hp-greek8.c: New file.
5307 * iconvdata/Makefile: Add rules for hp-greek8.c.
5308 * iconvdata/tst-tables.sh: Add entry for HP-GREEK8.
5309 * iconvdata/gconv-modules: Likewise.
5310
5311 [BZ #5463]
5312 * iconvdata/hp-turkish8.c: New file.
5313 * iconvdata/Makefile: Add rules for hp-turkish8.c.
5314 * iconvdata/tst-tables.sh: Add entry for HP-TURKISH8.
5315 * iconvdata/gconv-modules: Likewise.
5316
cbf5760e
UD
5317 * malloc/arena.c (grow_heap): Split out code to shrink heap into...
5318 (shrink_heap): ... this new function.
5319 (heap_trim): Call shrink_heap instead of grow_heap.
5320
17edb30c
UD
5321 * malloc/malloc.c (_int_malloc): sYSMALLOc might fail, in this
5322 case don't call alloc_perturb.
5323
ae18718f
UD
53242007-12-10 Ulrich Drepper <drepper@redhat.com>
5325
5326 * sysdeps/unix/sysv/linux/adjtime.c: Use ADJ_OFFSET_SS_READ if
5327 possible.
5328 * sysdeps/unix/sysv/linux/kernel-features.h
5329 (__ASSUME_ADJ_OFFSET_SS_READ): Define for 2.6.24.
5330 * sysdeps/unix/sysv/linux/sys/timex.h (ADJ_OFFSET_SS_READ): Define.
5331
b4354cf4
UD
53322007-12-08 Ulrich Drepper <drepper@redhat.com>
5333
5334 [BZ #5424]
5335 * stdio-common/vfprintf.c: Do not overflow when adding to done.
5336 * stdio-common/Makefile (tests): Add bug22.
5337 * stdio-common/bug22.c: New file.
5338
5339 [BZ #5451]
5340 * time/getdate.c: Fix filling in default values.
5341 * time/bug-getdate1.c: New file.
5342 * time/Makefile: Add rules to build and run bug-getdate1.
5343
5344 * iconvdata/ebcdic-is-friss.c: Use 8bit-gap instead of 8bit-generic.
5345 * iconvdata/ebcdic-es.c: Likewise.
5346 * iconvdata/ebcdic-es-a.c: Likewise.
5347 * iconvdata/ebcdic-uk.c: Likewise.
5348 * iconvdata/iso8859-16.c: Likewise.
5349 * iconvdata/viscii.c: Likewise.
5350 * iconvdata/iso8859-9e.c: Likewise.
5351 * iconvdata/Makefile: Adjust appropriately.
5352
5353 [BZ #5428]
5354 * wcsmbs/wchar.h: Unconditionally undefine __need_mbstate and
5355 __need_wint_t.
5356
26e21e75
UD
53572007-12-07 Ulrich Drepper <drepper@redhat.com>
5358
87520ccc
UD
5359 [BZ #5427]
5360 * iconvdata/hp-roman9.c: New file.
5361 * iconvdata/Makefile: Add rules for hp-roman9.c.
5362 * iconvdata/tst-tables.sh: Add HP-ROMAN9.
b4354cf4 5363 * iconvdata/gconv-modules: Likewise.
87520ccc
UD
5364
5365 * iconvdata/hp-roman8.c: Use 8bit-gap instead of 8bit-generic.
5366 * iconvdata/Makefile: Adjust appropriately.
5367
26e21e75
UD
5368 [BZ #5441]
5369 * stdio-common/vfscanf.c (_IO_vfwscanf): Don't free ptrs_to_free
5370 structure, it's allocated with alloca.
5371 * stdio-common/Makefile (tests): Add bug21.
5372 * stdio-common/bug21.c: New file.
5373
53742007-12-06 Aurelien Jarno <aurelien@aurel32.net>
5375
5376 [BZ #5452]
5377 * sysdeps/unix/sysv/linux/bits/sched.h: Use __extension__
87520ccc 5378 keyword for gcc's braced-groups.
26e21e75
UD
5379
53802007-12-07 Ulrich Drepper <drepper@redhat.com>
5381
5382 [BZ #5454]
5383 * inet/ether_line.c: Strip hostname of whitespaces.
5384 * inet/Makefile (tests): Add tst-ether_line.
5385 * inet/tst-ether_line.c: New file.
5386
9e80c123
UD
53872007-12-03 Ulrich Drepper <drepper@redhat.com>
5388
da0ff4ae
UD
5389 [BZ #5439]
5390 * sysdeps/unix/sysv/linux/sys/signalfd.h: Fix use of __nonnull.
5391
51bd20d9
UD
5392 [BZ #5435]
5393 * sysdeps/unix/sysv/linux/i386/makecontext.S: Align stack.
5394
d90d0256
UD
5395 * stdlib/tst-setcontext.c: Catch the case where the links gets
5396 messed up and we do not reach main again.
5397
9e80c123
UD
5398 * po/ca.po: Update from translation team.
5399
ae4287f8
UD
54002007-11-26 Ulrich Drepper <drepper@redhat.com>
5401
6701afc7 5402 * posix/unistd.h: Declare fsync also for __USE_XOPEN2K.
79fb2e02 5403 * posix/regex.h (REG_ENOSYS): Likewise.
a912a4f8 5404 * wcsmbs/wchar.h: Define __need_file also for __USE_XOPEN2K.
ae4287f8 5405
30294ea4
UD
54062007-11-25 Ulrich Drepper <drepper@redhat.com>
5407
5408 * nscd/nscd.h (MAX_STACK_USE): Define.
5409 * nscd/mem.c (MAX_STACK_USE): Remove definition here.
5410 (gc): Initialize stack_used based on allocation in prune_cache.
5411 * nscd/cache.c (prune_cache): Use heap for mark array if necessary.
e8667ddc 5412 Clear array before use.
30294ea4
UD
5413
5414 * nscd/aicache.c (addhstaiX): Update statistics counter in case
10a4c1e9 5415 memory allocation failed.
e8667ddc
UD
5416 * nscd/hstcache.c (cache_addhst): Likewise.
5417 * nscd/grpcache.c (cache_addgr): Likewise.
5418 * nscd/servicescache.c (cache_addserv): Likewise.
5419 * nscd/pwdcache.c (cache_addpw): Likewise.
5420 * nscd/initgrcache.c (addinitgroupsX): Likewise.
30294ea4 5421
715db78b
UD
54222007-11-23 Ulrich Drepper <drepper@redhat.com>
5423
609bb071
UD
5424 * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: Add open
5425 and creat system calls.
5426
715db78b
UD
5427 * sysdeps/unix/sysv/linux/check_native.c: Include <asm/types.h>.
5428
ea2c47b6
UD
54292007-11-23 Martin Schwidefsky <schwidefsky@de.ibm.com>
5430
5431 * sysdeps/unix/sysv/linux/Makefile [subdir=inet] (sysdep_headers):
5432 Add netiucv/iucv.h.
5433 * sysdeps/unix/sysv/linux/netiucv/iucv.h: New file.
5434 * sysdeps/unix/sysv/linux/opensock.c (__opensock): Add AF_IUCV
5435 protocol.
5436 * sysdeps/unix/sysv/linux/sa_len.c (__libc_sa_len): Likewise.
5437 * sysdeps/unix/sysv/linux/s390/opensock.c: New file.
5438 * sysdeps/unix/sysv/linux/s390/sa_len.c: New file.
5439
dcdcf4b9
UD
54402007-11-22 Martin Schwidefsky <schwidefsky@de.ibm.com>
5441
37143323
UD
5442 * sysdeps/s390/bits/string.h (strlen, strcpy, strncpy, strcat,
5443 strncat): Define as macros to avoid compile errors.
5444
dcdcf4b9
UD
5445 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Add open and
5446 creat entries.
5447
3a632674
UD
54482007-11-22 Ulrich Drepper <drepper@redhat.com>
5449
7ea8eb02
UD
5450 [BZ #5382]
5451 * nscd/nscd.h (NSCD_THREAD_STACKSIZE): Define.
5452 * nscd/connections.c (start_threads): Use NSCD_THREAD_STACKSIZE.
715db78b 5453 * nscd/mem.c (gc): Don't allocate arrays on the stack if they can
7ea8eb02 5454 overflow it.
70d5b6ef 5455 Partially based on a patch by Petr Baudis <pasky@suse.cz>.
7ea8eb02
UD
5456
5457 * sysdeps/unix/sysv/linux/nscd_setup_thread.c (setup_thread):
715db78b 5458 Return zero in case the thread library is not NPTL.
7ea8eb02 5459
5c3a3dba
UD
5460 [BZ #5375]
5461 * resolv/res_hconf.c (_res_hconf_reorder_addrs): Fix locking when
5462 initializing interface list.
5463
85883123
UD
5464 [BZ #5378]
5465 * nis/nss_compat/compat-initgroups.c (getgrent_next_nss): Don't
5466 use result of nss_getgrgid_r if nothing was found. For other
5467 error return with a failure.
5468 Partially based on a patch by Petr Baudis <pasky@suse.cz>.
5469
3a632674
UD
5470 * locale/programs/ld-collate.c (collate_read): Fix loop to match
5471 macro name.
5472
b73f9135
UD
54732007-11-19 Ulrich Drepper <drepper@redhat.com>
5474
ee72b971
UD
5475 * sysdeps/posix/getaddrinfo.c (defaults_scopes, scopes): New variables.
5476 (get_scope): For IPv4 scope, use scopes table.
5477 (fini): Free scopes table if necessary.
5478 (free_scopelist): New function.
5479 (scopecmp): New function.
5480 (gaiconf_init): Also handle scopev4 entries.
5481 * posix/tst-rfc3484.c (do_test): Initialize scopes.
5482 * posix/tst-rfc3484-2.c (do_test): Likewise.
5483 * posix/gai.conf: Document scopev4 defaults.
5484 * posix/Makefile (tests): Add tst-rfc3484-3.
5485 * posix/tst-rfc3484-3.c: New file.
5486
f4a79765
UD
5487 * sysdeps/posix/getaddrinfo.c (default_labels): Describe entry for
5488 Teredo tunnels.
b73f9135
UD
5489 * posix/gai.conf: Update for current default tables.
5490
429bd64d
UD
54912007-11-19 Ulrich Drepper <drepper@redhat.com>
5492
5493 * po/tr.po: Update from translation team.
5494
3c9af259
RM
54952007-11-18 Roland McGrath <roland@frob.com>
5496
76cf9889
RM
5497 * manual/arith.texi (Remainder Functions): Spelling fix.
5498 From Shaun Silk <genix@mysoul.com.au>.
5499
3c9af259
RM
5500 * sysdeps/mach/hurd/bits/fcntl.h (O_CLOEXEC): Fix value.
5501
238346ab
UD
55022007-11-17 Ulrich Drepper <drepper@redhat.com>
5503
5879ad50
UD
5504 * po/zh_CN.po: Update from translation team.
5505
238346ab
UD
5506 * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers):
5507 Add sys/signalfd.h and sys/eventfd.h.
5508
b80b9c77
UD
55092007-11-15 Bruno Haible <bruno@clisp.org>
5510
5511 [BZ #5346]
5512 * intl/dcigettext.c (struct known_translation_t): Turn msgid into a
5513 union.
5514 (transcmp): Use the appropriate part of s1->msgid and s2->msgid.
5515 (DCIGETTEXT): Change the allocation of the 'search' variable so that
5516 it needs only fixed stack space. Delay the initialization of
5517 msgid_len until it is needed.
5518
2da2501c
AJ
55192007-11-15 Andreas Jaeger <aj@suse.de>
5520
5521 * sysdeps/ieee754/dbl-64/sincos.tbl: Fix size of union.
5522 Reported by Christoph Quirin Lauter <christoph.lauter@ens-lyon.fr>.
5523
68a6dcf5
UD
55242007-11-15 Ulrich Drepper <drepper@redhat.com>
5525
5526 * po/ko.po: Update from translation team.
5527
43850227
UD
55282007-11-14 Ulrich Drepper <drepper@redhat.com>
5529
1e2692c9
UD
5530 * sysdeps/unix/sysv/linux/check_native.c (__check_native): Simplify
5531 significantly. The device type is also part of the ifinfomsg data.
5532
84e6cc7c 5533 * po/sv.po: Update from translation team.
cbd52634 5534 * po/nl.po: Likewise.
84e6cc7c 5535
f9e2261b
UD
5536 * nscd/cache.c (prune_cache): If cache is empty, instruct caller
5537 to wake up in 24 hours.
5538
43850227
UD
5539 * nscd/gai.c (__ioctl): Define. Include check_native.c.
5540
5742e960
UD
55412007-11-13 Ulrich Drepper <drepper@redhat.com>
5542
1a821d82
UD
5543 * po/cs.po: Update from translation team.
5544 * po/pl.po: Likewise.
5545
773e79b3
UD
5546 * include/ifaddrs.h: Remove in6ai_temporary.
5547 (struct in6addrinfo): Add index element.
5548 Declare __check_native.
5549 * inet/Makefile (aux): Add check_native.
5550 * sysdeps/unix/sysv/linux/check_native.c: New file.
5551 * sysdeps/unix/sysv/linux/check_pf.c: No need to recognize
5552 IFA_F_TEMPORARY. Pass back ifa_index.
5553 * sysdeps/posix/getaddrinfo.c: Remove netlink compatibility code.
5554 (rfc3484_sort): Add new parameter. Implement rule 7 correctly:
5555 call __check_native if necessary.
5556 (getaddrinfo): Fill in index field. Use qsort_r instead of qsort
5557 to sort addresses. Pass information about the results.
5558 * posix/tst-rfc3484.c: Adjust for addition of index field and change
5559 of rfc3484_sort interface.
5560 * posix/tst-rfc3484-2.c: Likewise.
5561
e458144c
UD
5562 * stdlib/stdlib.h: Define __compar_d_fn_t. Declare qsort_r.
5563 * include/stdlib.h: Add hidden_proto for qsort_t and adjust protoype
5564 for _quicksort.
5565 * stdlib/msort.c (qsort): Now a wrapper around qsort_r.
5566 (qsort_r): Renamed from qsort. Take additional parameter and pass it
5567 on as third parameter to compare function and _quicksort.
5568 * stdlib/qsort.c (_quicksort): Take additional parameter and pass on
5569 to the compare function.
5570 * stdlib/Versions [libc] (GLIBC_2.8): Add qsort_r.
5571 * Versions.def: Add GLIBC_2.8 for libc.
5572
bd63f380
UD
5573 * posix/tst-rfc3484.c: Adjust for addition of prefixlen field.
5574 * posix/tst-rfc3484-2.c: Likewise.
5575
5742e960
UD
5576 * include/kernel-features.h: Moved to...
5577 * sysdeps/mach/hurd/kernel-features.h: ...here.
5578
a6ac7fdb
RM
55792007-09-13 H.J. Lu <hongjiu.lu@intel.com>
5580
5581 * sysdeps/i386/i586/memcpy_chk.S: New file.
5582 * sysdeps/i386/i586/mempcpy_chk.S: Likewise.
5583 * sysdeps/i386/i586/memset_chk.S: Likewise.
5584
6f3914d5
UD
55852007-11-12 Ulrich Drepper <drepper@redhat.com>
5586
5587 * include/ifaddrs.c (struct in6addrinfo): Add prefixlen field.
5588 * sysdeps/unix/sysv/linux/check_pf.c (make_request): Always return
5589 list of interfaces. Also store prefix length.
5590 * sysdeps/posix/getaddrinfo.c (sort_result): Add prefixlen element.
5591 (rfc3484_sort): In rule 9, for IPv4 addresses count only matching
5592 prefix if source and destination address are in the same subnet.
5593 (getaddrinfo): Always call __check_pf. Fill in prefixlen field.
5594 Always look for matching record in in6ai list.
5595 Correct source_addr_len value for IPv6->IPv4 converted records.
5596
78cf5f6a
RM
55972007-11-11 Roland McGrath <roland@frob.com>
5598
5599 * include/kernel-features.h: New file.
5600
7f745396
UD
56012007-11-10 Ulrich Drepper <drepper@redhat.com>
5602
01e7fdbb
UD
5603 * sysdeps/pthread/aio_misc.c (handle_fildes_io): Avoid unnecessary
5604 complications for 64-bit platforms.
5605
7f745396
UD
5606 * sysdeps/unix/sysv/linux/open64.c: Move __open64_2 implementation to..
5607 * sysdeps/unix/sysv/linux/open64_2.c: ...here. New file.
5608 * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines): Add
5609 open64_2.
5610 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Add open and creat
5611 entries.
5612 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
5613 * sysdeps/wordsize-64/alphasort.c: New file.
5614 * sysdeps/wordsize-64/alphasort64.c: New file.
5615 * sysdeps/wordsize-64/fseeko.c: New file.
5616 * sysdeps/wordsize-64/fseeko64.c: New file.
5617 * sysdeps/wordsize-64/ftello.c: New file.
5618 * sysdeps/wordsize-64/ftello64.c: New file.
5619 * sysdeps/wordsize-64/ftw.c: New file.
5620 * sysdeps/wordsize-64/ftw64.c: New file.
5621 * sysdeps/wordsize-64/iofgetpos.c: New file.
5622 * sysdeps/wordsize-64/iofgetpos64.c: New file.
5623 * sysdeps/wordsize-64/iofopen.c: New file.
5624 * sysdeps/wordsize-64/iofopen64.c: New file.
5625 * sysdeps/wordsize-64/iofsetpos.c: New file.
5626 * sysdeps/wordsize-64/iofsetpos64.c: New file.
5627 * sysdeps/wordsize-64/lockf.c: New file.
5628 * sysdeps/wordsize-64/lockf64.c: New file.
5629 * sysdeps/wordsize-64/mkostemp.c: New file.
5630 * sysdeps/wordsize-64/mkostemp64.c: New file.
5631 * sysdeps/wordsize-64/mkstemp.c: New file.
5632 * sysdeps/wordsize-64/mkstemp64.c: New file.
5633 * sysdeps/wordsize-64/scandir.c: New file.
5634 * sysdeps/wordsize-64/scandir64.c: New file.
5635 * sysdeps/wordsize-64/tmpfile.c: New file.
5636 * sysdeps/wordsize-64/tmpfile64.c: New file.
5637 * sysdeps/wordsize-64/versionsort.c: New file.
5638 * sysdeps/wordsize-64/versionsort64.c: New file.
5639 * sysdeps/unix/sysv/linux/wordsize-64/aio_read.c: New file.
5640 * sysdeps/unix/sysv/linux/wordsize-64/aio_read64.c: New file.
5641 * sysdeps/unix/sysv/linux/wordsize-64/aio_write.c: New file.
5642 * sysdeps/unix/sysv/linux/wordsize-64/aio_write64.c: New file.
5643 * sysdeps/unix/sysv/linux/wordsize-64/creat64.c: New file.
5644 * sysdeps/unix/sysv/linux/wordsize-64/getdirentries.c: New file.
5645 * sysdeps/unix/sysv/linux/wordsize-64/getdirentries64.c: New file.
5646 * sysdeps/unix/sysv/linux/wordsize-64/lio_listio.c: New file.
5647 * sysdeps/unix/sysv/linux/wordsize-64/lio_listio64.c: New file.
5648 * sysdeps/unix/sysv/linux/wordsize-64/open64.c: New file.
5649 * sysdeps/unix/sysv/linux/wordsize-64/openat.c: New file.
5650 * sysdeps/unix/sysv/linux/wordsize-64/openat64.c: New file.
5651
5652 * crypt/sha256-crypt.c: Fix a comment.
5653 * crypt/sha512-crypt.c: Likewise.
5654
f6ed654c
UD
56552007-11-07 H.J. Lu <hongjiu.lu@intel.com>
5656
5657 * sysdeps/x86_64/memset.S: Add sfence after movnti.
5658
f2a8406a
UD
56592007-11-07 Ulrich Drepper <drepper@redhat.com>
5660
5661 [BZ #5277]
5662 * iconv/loop.c (STANDARD_TO_LOOP_ERR_HANDLER): If conversion failed
5663 because output buffer is too small break, don't loop.
5664 * iconvdata/Makefile (tests): Add bug-iconv6.
5665 * iconvdata/bug-iconv6.c: New file.
5666
7fe4e0e8
UD
56672007-11-06 Ulrich Drepper <drepper@redhat.com>
5668
9ca230d6
UD
5669 * stdio-common/vfprintf.c (vfprintf): Compute necessary buffer size
5670 with size_t type.
5671 * stdio-common/printf_fp.c (__print_fp): Change chars_needed type to
5672 size_t. Add casts where needed.
5673
7fe4e0e8
UD
5674 * nscd/selinux.c (nscd_request_avc_has_perm): When compiled with
5675 old headers, don't call avc_has_perm if we don't have the
5676 permission information.
5677
b92e3780
UD
56782007-11-05 Daniel Jacobowitz <dan@codesourcery.com>
5679
5680 * elf/rtld.c (dl_main): Use the page size to find the map start.
5681
ffb1b882
UD
56822007-11-05 Ulrich Drepper <drepper@redhat.com>
5683
94a749f6
UD
5684 * time/tzfile.c (__tzfile_read): Fix check for version 0 data files.
5685 Patch by Szymon Siwek <sls@poczta.wp.pl>.
5686
ffb1b882
UD
5687 * nscd/aicache.c (addhstaiX): Check herrno after IPv4 lookup only
5688 when the lookup call failed.
5689
5690 * nscd/nscd.h (struct database_dyn): Rename prunelock to prune_lock.
5691 Add prune_cond and wakeup_time.
5692 (CACHE_PRUNE_INTERNAL): Define.
5693 Update declarations of prune_cache and setup_thread.
5694 * nscd/connections.c (dbs): Update initializers.
5695 (CACHE_PRUNE_INTERNAL): Moved to nscd.h.
5696 (nscd_init): Default number of threads is now 4.
5697 (invalidate_cache): Take lock before calling prune_cache.
5698 (handle_request): If SELinux forbids the request, say so.
5699 (readylist_cond): Use static initializer.
5700 (nscd_run_prune): New function. Used only by pruning threads.
5701 (nscd_run_worder): Renamed from nscd_run. Remove support for pruning
5702 here.
5703 (fd_ready): Update nscd_run reference.
5704 (start_threads): No need to initialize readylist_cond.
5705 Start pruning threads separately.
5706 * nscd/nscd_setup_thread.c: Change return value type to int and always
5707 return 0.
5708 * sysdeps/unix/sysv/linux/nscd_setup_thread.c: Change return value type
5709 to int and return nonzero value if we can use the TID address hack.
5710 * nscd/cache.c (cache_add): If next wakeup time of cleanup thread for
5711 the database is later than the new entry's timeout, update the
5712 wakeup time and wake the cleanup thread.
5713 (prune_cache): Return seconds the next entry in the database is still
5714 valid. Remove locking for pruning here.
5715 * nscd/nscd.conf: Document default number of threads.
5716
4c48ef06
UD
57172007-10-31 Ulrich Drepper <drepper@redhat.com>
5718
41ff2a49
UD
5719 * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Make sure
5720 stack is properly aligned for the target function.
5721 Correct unwind info.
ffb1b882 5722
4c48ef06
UD
5723 * elf/rtld.c (dl_main): Initialize stack and pointer guard early
5724 when using auditing libraries.
5725
384ca551
UD
57262007-10-29 Ulrich Drepper <drepper@redhat.com>
5727
31e2791c
UD
5728 * resolv/Versions [libresolv] (GLIBC_PRIVATE): Add
5729 _nss_dns_getnetbyaddr2_r.
5730 * resolv/nss_dns/dns-host.c: Define _nss_dns_getnetbyaddr2_r. Pass
5731 extra parameter to getanswer_r.
5732 (_nss_dns_getnetbyaddr_r): Now a wrapper around
5733 _nss_dns_getnetbyaddr2_r.
5734
384ca551
UD
5735 * nscd/Makefile (nscd-modules): Replace gethstbynm2_r with
5736 gethstbynm3_r.
5737 * nscd/gethstbynm2_r.c: Remove.
5738 * nscd/gethstbynm3_r.c: New file.
5739 * nscd/aicache.c (addhstaiX): Use __gethostbyaddr2_r instead of
5740 __gethostbyaddr_r.
5741 * nscd/gethstbyad_r.c: Generate __gethostbyaddr2_r function. Define
5742 __gethostbyaddr_r compatibility wrapper.
5743 * nscd/hstcache.c (cache_addhst): Add ttl parameter. Use it when
5744 determining timeout of entry.
5745 (lookup): Take new parameter and pass it to __gethostbyname3_r and
5746 __gethostbyaddr2_r.
5747 (addhstbyX): Pass reference to variable for TTL to lookup and
5748 cache_addhst.
5749 * nss/Versions [glibc] (GLIBC_PRIVATE): Export __nss_passwd_lookup2,
5750 __nss_group_lookup2, __nss_hosts_lookup2, __nss_services_lookup2,
5751 and __nss_next2. Remove __nss_services_lookup.
5752 * nss/XXX-lookup.c: Name function now *_lookup2. Add new parameter.
5753 Add compat wrapper.
5754 * nss/getXXbyYY_r.c: Changes to call new *_lookup2 functions and
5755 __nss_next2.
5756 * nss/getXXent_r.c: Likewise.
5757 * nss/getnssent_r.c: Likewise.
5758 * nss/nsswitch.c (__nss_lookup): Add new parameter. If first function
5759 does not exist in module, try the optional second name.
5760 (__nss_next2): New function.
5761 (__nss_next): Now wrapper around __nss_next2.
5762 * nss/nsswitch.h: Adjust __nss_lookup prototype.
5763 Declare __nss_next2.
5764 Adjust definition of db_lookup_function type.
5765 * nss/service-lookup.c: Define NO_COMPAT.
5766 * include/netdb.h: Declare __gethostbyaddr2_r and __gethostbyname3_r.
5767 * inet/ether_hton.c: Use __nss_next2 instead of __nss_next.
5768 * inet/ether_ntoh.c: Likewise.
5769 * sunrpc/netname.c: Likewise.
5770 * sunrpc/publickey.c: Likewise.
5771 * inet/getnetgrent.c: Likewise. Adjust calls to __nss_lookup.
5772 * inet/gethstbyad_r.c (DB_LOOKUP_FCT): Change to __nss_hosts_lookup2.
5773 * inet/gethstbynm2_r.c (DB_LOOKUP_FCT): Likewise.
5774 * inet/gethstbynm_r.c (DB_LOOKUP_FCT): Likewise.
5775 * inet/gethstent_r.c (DB_LOOKUP_FCT): Likewise.
5776
5777 * nscd/aicache.c (addhstaiX): Fix default TTL handling.
5778
5e37840c 5779 * inet/getnetgrent_r.c (setup): Encrypt static pointer.
384ca551 5780
88197030
UD
57812007-10-28 Ulrich Drepper <drepper@redhat.com>
5782
f160a450
UD
5783 [BZ #5204]
5784 * crypt/sha256c-test.c: Define TIMEOUT to 6 for ancient hardware.
5785 * crypt/sha512c-test.c: Likewise.
5786
4c6b2202
UD
5787 [BZ #5225]
5788 * stdio-common/vfscanf.c (_IO_vfwscanf): Don't misuse wp pointer
5789 to keep track of end of %[ format string element.
22c915ac
UD
5790 * stdio-common/Makefile (tests): Add bug20.
5791 * stdio-common/bug20.c: New file.
4c6b2202 5792
88197030
UD
5793 [BZ #5222]
5794 * elf/dl-load.c (_dl_rtld_di_serinfo): Correct handling of short
5795 path elements in counting mode.
5796
05d69147
UD
57972007-10-27 Andreas Jaeger <aj@suse.de>
5798
94833f11
UD
5799 [BZ #5040]
5800 * sysdeps/unix/sysv/linux/sys/epoll.h (EPOLLRDHUP): Add value.
5801
05d69147
UD
5802 [BZ #3112]
5803 * sysdeps/ia64/backtrace.c (init): Free shared library if incorrect.
5804 (__cleanup): Free shared library when exiting.
5805 * sysdeps/i386/backtrace.c (init): Free shared library if incorrect.
5806 (__cleanup): Free shared library when exiting.
5807
e6b29af8
UD
58082006-04-14 H.J. Lu <hongjiu.lu@intel.com>
5809
5810 [BZ #2549]
5811 * math/libm-test.inc (check_float_internal): Support
5812 denormalized return.
5813
ad3371fb
UD
58142007-10-23 Andreas Jaeger <aj@suse.de>
5815
5816 [BZ #5208]
5817 * sysdeps/unix/sysv/linux/readahead.c (__readahead): Use
5818 __LONG_LONG_PAIR to handle little endian byte order.
5819 Suggested by abhishekrai@google.com
5820
666aa020
UD
58212007-10-27 Ulrich Drepper <drepper@redhat.com>
5822
5823 * malloc/arena.c [!NO_THREADS]: Use ATFORK_MEM if defined.
5824
8ad343b3
UD
58252007-10-26 Ulrich Drepper <drepper@redhat.com>
5826
5827 * nscd/cache.c (prune_cache): Move test for modified file outside
5828 of locking.
5829
9251c568
AJ
58302007-10-21 Andreas Jaeger <aj@suse.de>
5831
5832 * manual/texinfo.tex: Update to latest version.
5833
5834 * manual/sysinfo.texi (System Parameters): Fix Formatting.
5835
5836 * manual/arith.texi (Status bit operations): Fix formatting.
5837
5838 * manual/errno.texi (Error Messages): Fix formatting.
5839
5840 * manual/sysinfo.texi (System Parameters): Fix formatting.
5841
5842 * manual/libc.texinfo: Update VERSION and UPDATED.
5843
260b2e06
RM
58442007-10-19 Roland McGrath <roland@redhat.com>
5845
5846 * elf/Makefile ($(objpfx)ld.so): Use $(AWK).
5847
46ae8850
JJ
58482007-10-06 David S. Miller <davem@davemloft.net>
5849
5850 * configure.in: Add sparcv9v2 and sparc64v2.
5851 * scripts/config.sub: Likewise.
5852 * configure: Regenerate.
5853 * elf/elf.h (HWCAP_SPARC_N2): New.
5854 * sysdeps/sparc/dl-procinfo.h (_DL_HWCAP_COUNT): Bump to 8.
5855 * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add 'v9v2'.
5856 (HWCAP_IMPORTANT): Add HWCAP_SPARC_N2.
5857 * sysdeps/sparc/sparc32/sparcv9/sparcv9v2/memcpy.S: New file.
5858 * sysdeps/sparc/sparc32/sparcv9/sparcv9v2/memset.S: New file.
5859 * sysdeps/sparc/sparc64/sparcv9v2/memcpy.S: New file.
5860 * sysdeps/sparc/sparc64/sparcv9v2/memset.S: New file.
5861
6fbfbd80
UD
58622007-10-18 Ulrich Drepper <drepper@redhat.com>
5863
5864 * sunrpc/clnt_udp.c (clntudp_call): Don't block in recvfrom call
5865 even if the poll result indicates there is data to read.
5866 Patch by Jeff Moyer <jmoyer@redhat.com>.
5867
39cfc9fa
RM
58682007-10-18 Roland McGrath <roland@redhat.com>
5869
5870 * elf/elf.h (NT_PPC_VMX): New macro.
28919a77 5871
39cfc9fa 58722007-10-17 Ulrich Drepper <drepper@redhat.com>
28919a77
UD
5873
5874 * version.h (VERSION): Set to 2.7.90.
5875
ed13ccf1
JJ
58762007-10-17 Jakub Jelinek <jakub@redhat.com>
5877
5878 * sysdeps/x86_64/memset.S (bzero): Renamed to __bzero. Add
5879 weak_alias.
5880
ee9fd869
RM
58812007-10-17 Roland McGrath <roland@frob.com>
5882
5883 * sysdeps/mach/hurd/bits/fcntl.h [__USE_GNU__] (F_DUPFD_CLOEXEC): New.
5884 * sysdeps/mach/hurd/fcntl.c (__libc_fcntl): Implement it.
5885
1aa5e4d7
UD
58862007-10-17 Ulrich Drepper <drepper@redhat.com>
5887
50c9fbbf 5888 * version.h (VERSION): Bump to 2.7.
777bc4bf 5889 * include/features.h (__GLIBC_MINOR__): Bump to 7.
50c9fbbf 5890
58423c7d
UD
5891 [BZ #5186]
5892 * time/tzset.c (__tz_convert): Don't force testing for a change of
5893 TZ if not called from localtime. But then also see whether the
5894 file changed, in case __use_tzfile is set.
5895
1aa5e4d7
UD
5896 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define F_DUPFD_CLOEXEC.
5897 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
5898 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
5899 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
5900 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
5901 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
5902 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
5903 * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
5904
fc4837e5
UD
59052007-10-17 Jakub Jelinek <jakub@redhat.com>
5906
5907 * sysdeps/posix/getaddrinfo.c (getaddrinfo): When sorting addresses
5908 and admin selects to be able to replace the gai.conf file, lock
5909 data structures around the qsort call.
5910
62eaf7c8
UD
59112007-10-17 Ulrich Drepper <drepper@redhat.com>
5912
406f28db
UD
5913 * sysdeps/x86_64/cacheinfo.c: Comment out code added in support of
5914 new memset.
ac1cb5da 5915 * sysdeps/x86_64/memset.S: Revert to old version for now. The cost is
406f28db
UD
5916 too high for the improvements. Implement bzero unconditionally for
5917 use in libc.
ac1cb5da
UD
5918
59192007-10-17 Ulrich Drepper <drepper@redhat.com>
5920 Jakub Jelinek <jakub@redhat.com>
5921
62eaf7c8
UD
5922 * time/tzfile.c (__tzfile_read): Read POSIX TZ string if available
5923 even when time_t is 32-bit.
5924 (__tzfile_compute): Override POSIX TZ string STD/DST zone names if
5925 timezone data read by __tzfile_default. Ensure __tzname[0] is
5926 always set after the search.
5927
6a649d25
UD
59282007-10-16 Ulrich Drepper <drepper@redhat.com>
5929
5930 * time/tzfile.c (__tzfile_read): Help the compiler recognize
5931 unreachable code on 32-bit machines.
5932
800d6f9e
UD
59332007-10-16 Jakub Jelinek <jakub@redhat.com>
5934
5935 [BZ #5184]
5936 * time/strftime_l.c: Include stdbool.h.
5937 (my_strftime): New wrapper, old function renamed to...
5938 (__strftime_internal): ... new function. Add tzset_called
5939 argument, pass it down to recursive calls, don't call tzset ()
5940 if already true, set to true after call to tzset ().
62eaf7c8 5941
69819d92
UD
59422007-10-16 Ulrich Drepper <drepper@redhat.com>
5943
5944 * time/tzfile.c (__tzfile_read): Take extra memory requested by caller
5945 into account when copying TZ string.
5946
62eaf7c8
UD
59472007-10-16 Jakub Jelinek <jakub@redhat.com>
5948
5949 * time/tzfile.c (__tzfile_compute): For use_last case set i to
5950 num_transition rather than num_transitions - 1.
5951
0308ad66
JJ
59522007-10-16 Jakub Jelinek <jakub@redhat.com>
5953
8d137b60
JJ
5954 * sysdeps/x86_64/memset.S (memset): Fix sse2_nt_move
5955 PIC indirect jump.
5956
0308ad66
JJ
5957 * sysdeps/x86_64/memset.S: Jump from bzero to memset using
5958 a local label rather than HIDDEN_JUMPTARGET.
5959
e2b393bc
UD
59602007-10-15 Ulrich Drepper <drepper@redhat.com>
5961
5962 * sysdeps/x86_64/cacheinfo.c (__x86_64_shared_cache_size): Define.
5963 (init_cacheinfo): Initialize it.
5964 * sysdeps/x86_64/memset.S: Use __x86_64_shared_cache_size.
5965 Always define bzero.
5966 Remove non-glibc code.
5967 * sysdeps/x86_64/bzero.S: Make an empty file.
5968
59692007-10-15 H.J. Lu <hongjiu.lu@intel.com>
5970
5971 * sysdeps/x86_64/cacheinfo.c
5972 (__x86_64_preferred_memory_instruction): New.
5973 (init_cacheinfo): Initialize __x86_64_preferred_memory_instruction.
5974
5975 * sysdeps/x86_64/memset.S: Rewrite.
5976
0fbfcb7b
RM
59772007-10-15 Roland McGrath <roland@redhat.com>
5978
5979 * po/libc.pot: Regenerated.
5980
2884dad4
UD
59812007-10-15 Ulrich Drepper <drepper@redhat.com>
5982
e2b393bc 5983 * nss/getXXbyYY_r.c (REENTRANT_NAME): Mangle startp and start_fct
d96a2216
UD
5984 pointers.
5985
2884dad4
UD
5986 [BZ #3425]
5987 * resolv/nss_dns/dns-host.c (getanswer_r): Fail with
5988 NSS_STATUS_NOTFOUND if the server replied with only a CNAME and no
5989 address record to T_A/T_AAAA requests.
5990
89dc9d4c
UD
59912007-10-14 Ulrich Drepper <drepper@redhat.com>
5992
8d97ac13
UD
5993 * posix/glob.c: Reimplement link_exists_p to use fstatat64.
5994
1b6aa63f
UD
5995 * posix/glob.c: Add some branch prediction throughout.
5996
895a08c0
UD
5997 * nscd/nscd_getgr_r.c (nscd_getgr_r): Store result of successful
5998 read from nscd.
5999
6f55ed88
UD
6000 * sysdeps/posix/getaddrinfo.c (struct sort_result): Add
6001 service_order.
8d62c8ab
UD
6002 (rfc3484_sort): Make sure that even if qsort doesn't support
6003 stable sorting out sorting here is stable by comparing service_order.
6f55ed88 6004 (getaddrinfo): Initialize service_order.
a94673e6
UD
6005 * posix/tst-rfc3484.c (do_test): Adjust for addition of
6006 service_order field to sorting structure.
dfcf64ce 6007 * posix/tst-rfc3484-2.c (do_test): Likewise.
6f55ed88 6008
fa76dde2
UD
6009 * include/time.h: Declare __tzset_parse_tz and __tzset_compute.
6010 * time/tzset.c (tzset_internal): Break TZ string parsing out into
6011 __tzset_parse_tz and updating of daylight, timezone, tzname into
6012 update_vars.
6013 (__tz_compute): Renamed from tz_compute. Take additional parameters.
6014 (__tz_convert): Updating of tm_isdst, tm_zone, and tm_gmtoff now
6015 happens in __tz_compute.
6016 * time/tzfile.c (__tzfile_read): Also read TZ string.
6017 (find_transition): Fold into __tzfile_compute.
6018 (__tzfile_compute): For times beyond the last transition try to
6019 use the TZ string.
6020 * timezone/tst-timezone.c: Information in daylight and tzname does
6021 change for Asia/Tokyo timezone with more concrete information.
6022 Remove the test.
6023
6024 * include/stdio.h: Add libc_hidden_proto for ftello.
6025 * libio/ftello.c: Add libc_hidden_def.
6026
89dc9d4c
UD
6027 [BZ #1140]
6028 * time/tzfile.c (__tzfile_compute): Compute tzname[] values based
6029 on the specified time and not the last entries in the file. Move
6030 code to determine tzname[] to...
6031 (find_transition): ...here. Add ugly guess for times before the
6032 first transition.
6033
f7140274
UD
60342007-10-13 Ulrich Drepper <drepper@redhat.com>
6035
cfca0aa3
UD
6036 [BZ #3195]
6037 * nscd/nscd_getai.c (__nscd_getai): Set errno to 0 in case we found
6038 no entry.
6039 * nscd/nscd_getgr.c (nscd_getgr_r): Likewise.
6040 * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
6041 * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
6042 * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
6043
43d3e6bd
UD
6044 * nscd/nscd_getgr_r.c (nscd_getgr_r): Optimize a bit: use simpler
6045 read mechanism when there are no group members and avoid no-op
6046 read syscall in this case.
6047
f7140274
UD
6048 [BZ #3242]
6049 * nscd/nscd_helper.c (wait_on_socket): Take timeout as parameter.
6050 (__readall): If reading failed due to EAGAIN error wait a bit
6051 and possibly try again.
6052 (__readvall): Likewise.
6053
656f02ce
UD
60542007-10-13 Bruno Haible <bruno@clisp.org>
6055
6056 * intl/dcigettext.c (_nl_find_msg): Unlock the conversions_lock
6057 when we cannot recode the message.
6058
0ea49677
UD
60592007-10-13 Ulrich Drepper <drepper@redhat.com>
6060
6061 [BZ #4359]
6062 * libio/__freading.c (__freading): Don't return true for
ed36f224
UD
6063 write-only streams. For read/write streams, check whether we
6064 performed a read operation already.
7e39d802
UD
6065 * libio/Makefile (tests): Add tst-ext2.
6066 * libio/tst-ext2.c: New file.
0ea49677 6067
78a9b2dc
UD
60682007-10-12 Ulrich Drepper <drepper@redhat.com>
6069
fab1a490
UD
6070 * locale/programs/repertoire.c (repertoire_read): Always free
6071 memory for repertoire file name [Coverity CID 270].
6072
78a9b2dc
UD
6073 * elf/cache.c (save_aux_cache): Free memory allocated for
6074 temporary file name [Coverity CID 267].
6075
29d49a1a
JJ
60762007-10-12 Jakub Jelinek <jakub@redhat.com>
6077
6078 * misc/Makefile (headers): Add bits/error.h.
6079
d074d36d
UD
60802007-10-12 Ulrich Drepper <drepper@redhat.com>
6081
b7d1c5fa
UD
6082 * posix/fnmatch_loop.c: Take rule index returned as part of
6083 findidx return value into account when accessing weights.
6084 * posix/regcomp.c: Likewise.
6085 * posix/regexec.c: Likewise.
6086
d074d36d
UD
6087 * locale/programs/ld-collate.c (collate_read): Optimize a bit.
6088 (skip_to): Fix problems with parameter of elifdef/elifndef.
6089
26a51060
UD
60902007-10-11 Ulrich Drepper <drepper@redhat.com>
6091
6092 * iconv/gconv_simple.c: Add some branch prediction.
6093
6dd3748b
UD
60942007-10-12 Jakub Jelinek <jakub@redhat.com>
6095
6096 * locale/programs/ld-collate.c (collate_read): If ignore_content
6097 and nowtok is tok_define, eat any tok_eol tokens.
6098
d0b5557d
JJ
60992007-10-11 Jakub Jelinek <jakub@redhat.com>
6100
6101 * sysdeps/gnu/netinet/tcp.h: Include sys/socket.h if __USE_MISC.
6102 (struct tcp_md5sig): Change tcpm_addr type to struct sockaddr_storage.
6103
6104 * inet/netinet/in.h: Don't include bits/socket.h.
6105 * sysdeps/unix/sysv/linux/bits/socket.h: Only check _SYS_SOCKET_H
6106 macro.
6107 * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Likewise.
6108
3a054d7a
UD
61092007-10-10 Ulrich Drepper <drepper@redhat.com>
6110
6111 * locale/programs/locfile-token.h: Remove tok_elif, add tok_elifdef
6112 and tok_elifndef.
6113 * locale/programs/locfile-kw.gperf: Likewise.
6114 * locale/programs/ld-collate.c: Implement primitive preprocessor.
6115
c06b7169
UD
61162007-10-10 Jakub Jelinek <jakub@redhat.com>
6117
6118 * stdio-common/printf-parse.h: Include string.h and wchar.h.
6119 (__find_specwc): Change into __extern_always_inline function.
6120 (__find_specmb): Likewise. Remove ps argument. Use __strchrnul.
6121 (__parse_one_specmb): Remove ps argument.
6122 * stdio-common/vfprintf.c (vfprintf): Remove mbstate variable.
6123 Adjust __find_specmb and __parse_one_specmb callers.
6124 * stdio-common/printf-prs.c (parse_printf_format): Likewise.
6125 * stdio-common/printf-parsemb.c (__find_specwc, __find_specmb):
6126 Removed.
6127 (__parse_one_specmb): Remove ps argument, adjust __find_specmb
6128 caller.
6129
5a01ab7b
UD
61302007-10-09 Ulrich Drepper <drepper@redhat.com>
6131
6132 * sysdeps/x86_64/cacheinfo.c (init_cacheinfo): Work around problem
6133 with some Pentium Ds.
6134
e3f8e049
UD
61352007-10-08 Ulrich Drepper <drepper@redhat.com>
6136
6137 * sysdeps/unix/sysv/linux/eventfd_read.c (eventfd_read): Use
6138 __read not read.
6139 * sysdeps/unix/sysv/linux/eventfd_write.c (eventfd_write): Use
6140 __write not write.
6141
a1a363d2
UD
61422007-10-07 Ulrich Drepper <drepper@redhat.com>
6143
a1160714
UD
6144 [BZ #181]
6145 * locale/C-time.c: Set week_1stday data to 19971201.
659a9013
UD
6146 * locale/programs/ld-time.c (time_finish): Default for
6147 first_workday is Monday.
a1160714 6148
bb27a6eb
UD
6149 [BZ #2633]
6150 * wcsmbs/wchar.h: Move many C99 functions into std namespace.
6151
c8d48fae
UD
6152 [BZ #5103]
6153 * posix/glob.c (glob): Recognize patterns starting \/.
6154 * posix/tst-gnuglob.c (find_file): Handle absolute path names.
6155 (main): Add test for pattern starting \/.
6156
a1a363d2
UD
6157 * misc/error.h: Use __const instead of const.
6158 * misc/bits/error.h: Likewise.
6159
61602007-10-07 Andreas Jaeger <aj@suse.de>
6161
6162 * include/bits/error.h: New file.
6163
6164 * misc/bits/error.h (error_at_line): Fix prototype.
6165
71894681
UD
61662007-10-06 Ulrich Drepper <drepper@redhat.com>
6167
a6fa5328
UD
6168 [BZ #3924]
6169 * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Fix a few
6170 more little bugs in creating the stack frame when pltexit has to
6171 be called.
6172
8c7661bc 6173 * nscd/nscd_helper.c (__nscd_cache_search): Prevent endless loops.
50607309 6174 * nscd/connections.c (verify_persistent_db): Recognize circular lists.
8c7661bc 6175
c039eedd
UD
6176 [BZ #4407]
6177 * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Fix *signgamp for -0.0.
6178 * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
6179 * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
6180 * math/libm-test.inc: Add test for this case.
6181
71894681
UD
6182 [BZ #5010]
6183 * sunrpc/svc.c (struct svc_callout): Add sc_mapped element.
6184 (svc_register): Initialize sc_mapped. Set to TRUE if call to
6185 map service succeeded.
6186 (svc_is_mapped): New function.
6187 (svc_unregister): Use it before trying to unmap service.
6188
34c2c092
UD
61892007-10-05 Ulrich Drepper <drepper@redhat.com>
6190
d10737e4
UD
6191 * timezone/zic.c: Update from tzcode2007h.
6192
6193 [BZ #5063]
6194 * timezone/africa: Update from tzdata2007h.
6195 * timezone/antarctica: Likewise.
6196 * timezone/asia: Likewise.
6197 * timezone/australasia: Likewise.
6198 * timezone/europe: Likewise.
6199 * timezone/leapseconds: Likewise.
6200 * timezone/northamerica: Likewise.
6201 * timezone/southamerica: Likewise.
6202 * timzeone/zone.tab: Likewise.
6203
0304f168
UD
6204 [BZ #5104]
6205 * elf/do-lookup.h (do_lookup_x): Don't ignore STT_COMMON symbols.
6206
a83b5649
UD
6207 [BZ #5113]
6208 * string/bits/string2.h (__strdup): Cast parameters to calloc to
6209 avoid warning with -Wconversion.
6210 (__strndup): Likewise.
c039eedd 6211 Half the patch by Christian Iseli <christian.iseli@licr.org>.
a83b5649 6212
3e6ce4d7
UD
6213 [BZ #5112]
6214 * nscd/connections.c (restart): Don't resync if database is
6215 disabled. Patch mostly by Brian De Wolf <bldewolf@csupomona.edu>.
6216
8e351378
UD
6217 * sysdeps/gnu/netinet/tcp.h: Define TCP_MD5SIG, TCP_MD5SIG_MAXKEYLEN,
6218 struct tcp_md5sig. Extend struct tcp_info according to recent kernels.
6219
6220 * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add eventfd,
6221 evetnfd_read, eventfd_write.
6222 * sysdeps/unix/sysv/linux/eventfd.c: New file.
6223 * sysdeps/unix/sysv/linux/eventfd_read.c: New file.
6224 * sysdeps/unix/sysv/linux/eventfd_write.c: New file.
6225 * sysdeps/unix/sysv/linux/sys/eventfd.h: New file.
d10737e4 6226 * sysdeps/unix/sysv/linux/Versions: Export eventfd, eventfd_read,
8e351378
UD
6227 eventfd_write for GLIBC_2.7.
6228
34c2c092
UD
6229 * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add signalfd.
6230 * sysdeps/unix/sysv/linux/signalfd.c: New file.
6231 * sysdeps/unix/sysv/linux/sys/signalfd.h: New file.
6232 * sysdeps/unix/sysv/linux/Versions: Export signalfd for GLIBC_2.7.
6233
6789aaaa 62342007-10-04 Jakub Jelinek <jakub@redhat.com>
375d9429
UD
6235
6236 * stdlib/msort.c: Include stdint.h.
6237 (struct msort_param): New type.
6238 (msort_with_tmp): Use struct msort_param pointer for unchanging
6239 parameters. Add optimized handling for several common sizes
6240 and indirect sorting mode.
6241 (qsort): Adjust msort_with_tmp callers. For big S use indirect
6242 sorting.
6243 Suggested by Belazougui Djamel .
6244
6245 * stdlib/Makefile (tests): Add tst-qsort2.
6246 * stdlib/tst-qsort2.c: New test.
6247
b80bfc8b
UD
62482007-10-04 Ulrich Drepper <drepper@redhat.com>
6249
174420d2
UD
6250 * login/login_tty.c (login_tty): The Linux kernel can return EBUSY
6251 for dup2 in case another thread races with the current one. Retry
6252 in this case.
6253
b80bfc8b
UD
6254 * misc/error.h: Remove support for use outside of libc. We have to
6255 include <features.h> now. Include <bits/error.h> if possible.
6256 * misc/bits/error.h: New file.
6257
6789aaaa 62582007-10-03 Jakub Jelinek <jakub@redhat.com>
ee868c89 6259
e5dd2178
UD
6260 * string/bits/string3.h (memcpy, memmove, mempcpy, memset, bcopy,
6261 bzero, strcpy, stpcpy, strncpy, strcat, strncat): Use
6262 __extern_always_inline functions unconditionally, drop macros.
6263
ac97dec1
UD
6264 * misc/sys/cdefs.h (__REDIRECT_LDBL, __REDIRECT_NTH_LDBL): New macros.
6265 * wcsmbs/bits/wchar2.h (__swprintf_alias, __vswprintf_alias): Use
6266 __REDIRECT_NTH_LDBL macro rather than __REDIRECT_NTH.
6267
ee868c89
UD
6268 * misc/sys/cdefs.h (__extern_always_inline): For GCC 4.3+
6269 add __artificial__ attribute.
6270
80e069e0
UD
62712007-10-02 Ulrich Drepper <drepper@redhat.com>
6272
6e682cf5
UD
6273 * string/strcoll_l.c (STRCOLL): Correct handling of switching from
6274 backward to forward direction.
6275
90241a20
UD
6276 * string/strcoll_l.c (STRCOLL): Correct test for alloca use.
6277
80e069e0
UD
6278 [BZ #645]
6279 * locale/programs/ld-collate.c (collate_finish): Compare against last
6280 used section which is known to have rules defined.
6281 (collate_read): After order_start, correctly record order of sections
6282 and queue sections up.
6283
035ef8d7
UD
62842007-10-01 Ulrich Drepper <drepper@redhat.com>
6285
95bddc0c
UD
6286 [BZ #5071]
6287 * malloc/malloc.c (mremap_chunk): Avoid resizing of new block has
6288 the same number of pages.
6289 Patch by Tomash Brechko <tomash.brechko@gmail.com>.
6290
c8caf089
UD
6291 * locale/programs/ld-collate.c (collate_read): After initial copy
6292 statement, continue in state 0.
6293
035ef8d7
UD
6294 * include/stdio_ext.h (__fsetlocking): Define as macro.
6295
592a95ee
UD
62962007-09-30 Ulrich Drepper <drepper@redhat.com>
6297
56ebeb41
UD
6298 * locale/programs/ld-collate.c (collate_finish): Compare all bytes
6299 of section order.
6300
592a95ee
UD
6301 * po/pt_BR.po: Fix typo.
6302
6c522e21
UD
63032007-09-29 Ulrich Drepper <drepper@redhat.com>
6304
8ad5c3cd
UD
6305 * iconvdata/Makefile (modules): Add ISO8859-9E.
6306 (distribute): Add iso8859-9e.c.
6307 (gen-8bit-gap-modules): Add iso8859-9e.
6308 * iconvdata/iso8859-9e.c: New file.
6309 * iconvdata/gconv-modules: Add entries for ISO-8859-9E.
6310 * iconvdata/TESTS: Likewise.
6311 * iconvdata/tst-tables.sh: Likewise.
6312
6313 * iconvdata/koi8-r.c (HAS_HOLES): Define to 0.
6314
6c522e21
UD
6315 * locale/iso-639.def: Add several new entries.
6316
385b4cf4
UD
63172007-09-24 Jakub Jelinek <jakub@redhat.com>
6318
6319 * sysdeps/generic/ldsodefs.h (struct dl_scope_free_list): Store
6320 void * pointers instead of struct link_map **.
6321 (_dl_scope_free): Change argument type to void *.
6322 * include/link.h (struct link_map): Change type of l_reldeps
6323 to struct link_map_reldeps, move l_reldepsact into that
6324 struct too.
6325 * elf/dl-deps.c: Include atomic.h.
6326 (_dl_map_object_deps): Only change l->l_initfini when it is
6327 fully populated, use _dl_scope_free for freeing it. Optimize
6328 removal of libs from reldeps by using l_reserved flag, when
6329 some removal is needed, allocate a new list instead of
6330 reallocating and free the old with _dl_scope_free. Adjust
6331 for l_reldeps and l_reldepsact changes.
6332 * elf/dl-lookup.c (add_dependency): Likewise. Reorganize to allow
6333 searching in l_initfini and l_reldeps without holding dl_load_lock.
6334 * elf/dl-fini.c (_dl_sort_fini): Adjust for l_reldeps and
6335 l_reldepsact changes.
6336 * elf/dl-close.c (_dl_close_worker): Likewise.
6337 * elf/dl-open.c (_dl_scope_free): Change argument type to void *.
6338
90bf831b
UD
63392007-09-28 Ulrich Drepper <drepper@redhat.com>
6340
6341 * iconvdata/Makefile (modules): Add KOI8-RU.
6342 (distribute): Add koi8-ru.c.
6343 (gen-8bit-gap-modules): Add koi8-ru.
6344 * iconvdata/koi8-ru.c: New file.
6345 * iconvdata/gconv-modules: Add entries for KOI8-RU.
6346 * iconvdata/TESTS: Likewise.
6347 * iconvdata/tst-tables.sh: Likewise.
6348
6349 * iconvdata/koi8-r.c (HAS_HOLES): Define to 0.
6350
d6cd6bf4
UD
63512007-09-26 Jakub Jelinek <jakub@redhat.com>
6352
6353 * misc/sys/cdefs.h (__warndecl, __errordecl): For GCC 4.3+ define
6354 with __warning__/__error__ attributes.
6355 (__warnattr): Define.
6356 * stdlib/bits/stdlib.h (__realpath_chk_warn, __ptsname_r_chk_warn,
6357 __mbstowcs_chk_warn, __wcstombs_chk_warn): New aliases with
6358 __warnattr.
6359 (realpath, ptsname_r, mbstowcs, wcstombs): Call __*_chk_warn instead
6360 of __*_chk if compile time detectable overflow is found.
6361 * libio/bits/stdio2.h (__fgets_chk_warn, __fread_chk_warn,
6362 __fgets_unlocked_chk_warn, __fread_unlocked_chk_warn): New aliases
6363 with __warnattr.
6364 (fgets, fread, fgets_unlocked, fread_unlocked): Call __*_chk_warn
6365 instead of __*_chk if compile time detectable overflow is found.
6366 (__gets_alias): Rename to...
6367 (__gets_warn): ... this. Add __warnattr.
6368 (gets): Call __gets_warn instead of __gets_alias.
6369 * socket/bits/socket2.h (__recv_chk_warn, __recvfrom_chk_warn): New
6370 aliases with __warnattr.
6371 (recv, recvfrom): Call __*_chk_warn instead of __*_chk if compile
6372 time detectable overflow is found.
6373 * posix/bits/unistd.h (__read_chk_warn, __pread_chk_warn,
6374 __pread64_chk_warn, __readlink_chk_warn, __readlinkat_chk_warn,
6375 __getcwd_chk_warn, __confstr_chk_warn, __getgroups_chk_warn,
6376 __ttyname_r_chk_warn, __getlogin_r_chk_warn, __gethostname_chk_warn,
6377 __getdomainname_chk_warn): New aliases with __warnattr.
6378 (read, pread, pread64, readlink, readlinkat, getcwd, confstr,
6379 getgroups, ttyname_r, getlogin_r, gethostname, getdomainname): Call
6380 __*_chk_warn instead of __*_chk if compile time detectable overflow
6381 is found.
6382 (__getgroups_chk): Rename argument to __listlen from listlen.
6383 (__getwd_alias): Rename to...
6384 (__getwd_warn): ... this. Add __warnattr.
6385 (getwd): Call __getwd_warn instead of __getwd_alias.
6386 * wcsmbs/bits/wchar2.h (__wmemcpy_chk_warn, __wmemmove_chk_warn,
6387 __wmempcpy_chk_warn, __wmemset_chk_warn, __wcsncpy_chk_warn,
6388 __wcpncpy_chk_warn, __fgetws_chk_warn, __fgetws_unlocked_chk_warn,
6389 __mbsrtowcs_chk_warn, __wcsrtombs_chk_warn, __mbsnrtowcs_chk_warn,
6390 __wcsnrtombs_chk_warn): New aliases with __warnattr.
6391 (wmemcpy, wmemmove, wmempcpy, wmemset, mbsrtowcs, wcsrtombs,
6392 mbsnrtowcs, wcsnrtombs): Call __*_chk_warn instead of __*_chk if
6393 compile time detectable overflow is found.
6394 (wcsncpy, wcpncpy): Likewise. For constant __n fix check whether
6395 to use __*_chk or not.
6396 (fgetws, fgetws_unlocked): Divide __bos by sizeof (wchar_t), both
6397 in comparisons which function should be called and in __*_chk*
6398 arguments. Call __*_chk_warn instead of __*_chk if compile time
6399 detectable overflow is found.
6400 (swprintf, vswprintf): Divide __bos by sizeof (wchar_t) in
6401 __*_chk argument.
6402 * debug/tst-chk1.c (do_test): Add a few more tests.
6403
408cfca0
UD
64042007-09-24 Ulrich Drepper <drepper@redhat.com>
6405
6406 [BZ #5058]
6407 * intl/gettextP.h (struct loaded_domain): Add conversions_lock member.
6408 * intl/loadmsgcat.c (_nl_load_domain): Initialize conversions_lock.
6409 (_nl_unload_domain): Finalize conversions_lock.
6410 * intl/dcigettext.c (_nl_find_msg): Take conversions_lock before
6411 handling table of known conversions.
6412
e6eec9ce
JJ
64132007-09-24 Jakub Jelinek <jakub@redhat.com>
6414
6415 * sysdeps/posix/getaddrinfo.c (getaddrinfo): Use
6416 close_not_cancel_no_status instead of close.
6417
a532a41d
UD
64182007-09-13 Aurelien Jarno <aurelien@aurel32.net>
6419
682268ef 6420 [BZ #5028]
408cfca0 6421 * posix/regcomp.c (lookup_collation_sequence_value): Check that
a532a41d
UD
6422 nrules != 0 for multibyte chars.
6423
dec9ed9e
UD
64242007-09-23 Ulrich Drepper <drepper@redhat.com>
6425
91633816
UD
6426 * resolv/ns_print.c (ns_sprintrrf): Handle ns_t_a6 and ns_t_opt.
6427 Provide better error message in case the type is unknown.
6428
9cc198f6
UD
6429 [BZ #4963]
6430 * wcsmbs/wcsnlen.c: Don't reference before checking the length.
6431 * string/stratcliff.c: Make usable to test wide char functions.
6432 * wcsmbs/wcsatcliff.c: New file.
6433 * wcsmbs/Makefiel (tests): Add wcsatcliff.
6434
27f3d446
UD
6435 [BZ #4972]
6436 * iconvdata/Makefile (modules): Add MAC-CENTRALEUROPE.
6437 (distribute): Add mac-centraleurope.c.
6438 (gen-8bit-gap-modules): Add mac-centraleurope.
6439 * iconvdata/mac-centraleurope.c: New file.
6440 * iconvdata/gconv-modules: Add entries for MAC-CENTRALEUROPE.
6441 * iconvdata/TESTS: Likewise.
6442 * iconvdata/tst-tables.sh: Likewise.
6443
dec9ed9e
UD
6444 [BZ #5043]
6445 * iconv/iconv_open.c (iconv_open): For large codeset names use malloc.
6446
0435403c
UD
64472007-09-21 Ulrich Drepper <drepper@redhat.com>
6448
6449 * sysdeps/x86_64/cacheinfo.c (__x86_64_data_cache_size_half): Renamed
6450 from __x86_64_core_cache_size_half.
6451 (init_cacheinfo): Compute shared cache size for AMD processors with
6452 shared L3 correctly.
6453 * sysdeps/x86_64/memcpy.S: Adjust for __x86_64_data_cache_size_half
6454 name change.
6455 Patch in large parts by Evandro Menezes.
6456
c3266dc0
UD
64572007-09-19 Ulrich Drepper <drepper@redhat.com>
6458
715899d1
UD
6459 * elf/dl-lookup.c (add_dependency): Handle failing memory
6460 allocation for dependency list. Remove unnecessary check.
6461
e1db0493
UD
6462 * sysdeps/posix/getaddrinfo.c (getaddrinfo): Avoid unnecessary
6463 open/close when determining source addresses.
6464
c3266dc0
UD
6465 * crypt/Makefile (libcrypt-routines): Add sha256-crypt, sha256,
6466 sha512-crypt, and sha512.
6467 (tests): Add sha256test, sha256c-test, sha512test, and sha512c-test.
6468 (distribute): Add sha256.h and sha512.h.
6469 * crypt/crypt-entry.c (crypt): Recognize the new $5$ and $6$ prefixes
6470 and call the appropriate code.
6471 * crypt/sha256-crypt.c: New file.
6472 * crypt/sha256.c: New file.
6473 * crypt/sha256.h: New file.
6474 * crypt/sha256c-test.c: New file.
6475 * crypt/sha256test.c: New file.
6476 * crypt/sha512-crypt.c: New file.
6477 * crypt/sha512.c: New file.
6478 * crypt/sha512.h: New file.
6479 * crypt/sha512c-test.c: New file.
6480 * crypt/sha512test.c: New file.
6481
ddf51ecb
JJ
64822007-09-19 Jakub Jelinek <jakub@redhat.com>
6483
6484 * misc/bits/syslog.h (syslog): Remove extraneous argument from
6485 the inline, pass __USE_FORTIFY_LEVEL - 1 as second argument to
6486 __syslog_chk.
6487
b90395e6
UD
64882007-09-18 Jakub Jelinek <jakub@redhat.com>
6489
76c0bea7
JJ
6490 * locale/programs/charmap-dir.c (charmap_aliases): Use %ms instead of
6491 %as in fscanf format strings.
6492
00680568
JJ
6493 * sysdeps/sparc/sparc32/elf/start.S: Remove cfi_* markup.
6494 * sysdeps/sparc/sparc64/elf/start.S: Likewise.
c3266dc0
UD
6495 * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__thread_start):
6496 Likewise.
6497 * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__thread_start):
6498 Likewise.
00680568 6499
b90395e6
UD
6500 * sysdeps/generic/ldsodefs.h (DL_LOOKUP_GSCOPE_LOCK): New definition.
6501 * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Or in
6502 DL_LOOKUP_GSCOPE_LOCK into flags after THREAD_GSCOPE_SET_FLAG ().
6503 * elf/dl-sym.c (do_sym): Likewise.
6504 * include/link.h (struct link_map): Add l_serial field.
6505 * elf/dl-object.c (_dl_new_object): Initialize l_serial.
6506 * elf/dl-lookup.c (add_dependency): Add flags argument.
6507 Remember map->l_serial, if DL_LOOKUP_GSCOPE_LOCK is among
6508 flags, use THREAD_GSCOPE_RESET_FLAG before and
6509 THREAD_GSCOPE_SET_FLAG after
6510 __rtld_lock_lock_recursive (GL(dl_load_lock)) to avoid deadlock.
6511 Don't dereference map until it has been found on some list.
6512 If map->l_serial changed, return -1.
6513
874aa523
UD
65142007-09-17 Jakub Jelinek <jakub@redhat.com>
6515
6516 * include/stdio.h (__isoc99_fscanf, __isoc99_scanf,
6517 __isoc99_sscanf, __isoc99_vscanf): New prototypes.
6518 (__isoc99_vsscanf, __isoc99_vfscanf): New prototypes, add
6519 libc_hidden_proto.
6520 * include/wchar.h (__isoc99_fwscanf, __isoc99_wscanf,
6521 __isoc99_swscanf, __isoc99_vwscanf): New prototypes.
6522 (__isoc99_vswscanf, __isoc99_vfwscanf): New prototypes,
6523 add libc_hidden_proto.
6524 * libio/stdio.h (fscanf, scanf, sscanf, vfscanf, vscanf,
6525 vsscanf): Redirect to __isoc99_* if strict ISO C99 or POSIX
6526 conformance requested.
6527 * wcsmbs/wchar.h (fwscanf, wscanf, swscanf, vfwscanf, vwscanf,
6528 vswscanf): Redirect to __isoc99_* if strict ISO C99 or POSIX
6529 conformance requested.
6530 * libio/bits/stdio-ldbl.h (fscanf, scanf, sscanf, vfscanf, vscanf,
6531 vsscanf): Redirect to __nldbl___isoc99_* if strict ISO C99 or POSIX
6532 conformance requested.
6533 * wcsmbs/bits/wchar-ldbl.h (fwscanf, wscanf, swscanf, vfwscanf,
6534 vwscanf, vswscanf): Redirect to __nldbl___isoc99_* if strict
6535 ISO C99 or POSIX conformance requested.
6536 * stdio-common/Versions (libc): Export __isoc99_scanf@@GLIBC_2.7,
6537 __isoc99_vscanf@@GLIBC_2.7, __isoc99_fscanf@@GLIBC_2.7,
6538 __isoc99_vfscanf@@GLIBC_2.7, __isoc99_sscanf@@GLIBC_2.7
6539 and __isoc99_vsscanf@@GLIBC_2.7.
6540 * stdio-common/Makefile (routines): Add isoc99_scanf, isoc99_vscanf,
6541 isoc99_fscanf, isoc99_vfscanf, isoc99_sscanf and isoc99_vsscanf.
6542 (tests): Add scanf14.
6543 (CFLAGS-vfprintf.c, CFLAGS-fprintf.c, CFLAGS-printf.c,
6544 CFLAGS-vfwprintf.c, CFLAGS-vfscanf.c, CFLAGS-vfwscanf.c,
6545 CFLAGS-fscanf.c, CFLAGS-scanf.c, CFLAGS-isoc99_vfscanf.c,
6546 CFLAGS-isoc99_vscanf.c, CFLAGS-isoc99_fscanf.c,
6547 CFLAGS-isoc99_scanf.c): Add $(exceptions).
6548 (CFLAGS-scanf15.c): Add various -I paths to prevent the compiler
6549 from using internal headers.
6550 * wcsmbs/Versions (libc): Export __isoc99_wscanf@@GLIBC_2.7,
6551 __isoc99_vwscanf@@GLIBC_2.7, __isoc99_fwscanf@@GLIBC_2.7,
6552 __isoc99_vfwscanf@@GLIBC_2.7, __isoc99_swscanf@@GLIBC_2.7
6553 and __isoc99_vswscanf@@GLIBC_2.7.
6554 * wcsmbs/Makefile (routines): Add isoc99_wscanf, isoc99_vwscanf,
6555 isoc99_fwscanf, isoc99_vfwscanf, isoc99_swscanf and isoc99_vswscanf.
6556 (CFLAGS-isoc99_wscanf.c, CFLAGS-isoc99_fwscanf.c,
6557 CFLAGS-isoc99_vwscanf.c, CFLAGS-isoc99_vfwscanf.c): Add $(exceptions).
6558 (CPPFLAGS): Add -D_IO_MTSAFE_IO if needed.
6559 * stdio-common/isoc99_scanf.c: New file.
6560 * stdio-common/isoc99_vsscanf.c: New file.
6561 * stdio-common/isoc99_vscanf.c: New file.
6562 * stdio-common/isoc99_vfscanf.c: New file.
6563 * stdio-common/isoc99_fscanf.c: New file.
6564 * stdio-common/isoc99_sscanf.c: New file.
6565 * wcsmbs/isoc99_fwscanf.c: New file.
6566 * wcsmbs/isoc99_vswscanf.c: New file.
6567 * wcsmbs/isoc99_swscanf.c: New file.
6568 * wcsmbs/isoc99_wscanf.c: New file.
6569 * wcsmbs/isoc99_vwscanf.c: New file.
6570 * wcsmbs/isoc99_vfwscanf.c: New file.
6571 * libio/libio.h (_IO_FLAGS2_SCANF_STD): Define.
6572 * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct): Also
6573 clear _IO_FLAGS2_SCANF_STD bit from _flags2.
6574 * stdio-common/vfscanf.c (_IO_vfscanf_internal): Don't
6575 handle %as, %aS and %a[ if _IO_FLAGS2_SCANF_STD is set in _flags2.
6576 * stdio-common/scanf14.c: New test.
6577 * stdio-common/scanf15.c: New test.
6578 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add
6579 isoc99_scanf, isoc99_fscanf, isoc99_sscanf,
6580 isoc99_vscanf, isoc99_vfscanf, isoc99_vsscanf,
6581 isoc99_wscanf, isoc99_fwscanf, isoc99_swscanf,
6582 isoc99_vwscanf, isoc99_vfwscanf and isoc99_vswscanf.
6583 * sysdeps/ieee754/ldbl-opt/Versions (libc): Export
6584 __nldbl___isoc99_scanf@@GLIBC_2.7,
6585 __nldbl___isoc99_fscanf@@GLIBC_2.7,
6586 __nldbl___isoc99_sscanf@@GLIBC_2.7,
6587 __nldbl___isoc99_vscanf@@GLIBC_2.7,
6588 __nldbl___isoc99_vfscanf@@GLIBC_2.7,
6589 __nldbl___isoc99_vsscanf@@GLIBC_2.7,
6590 __nldbl___isoc99_wscanf@@GLIBC_2.7,
6591 __nldbl___isoc99_fwscanf@@GLIBC_2.7,
6592 __nldbl___isoc99_swscanf@@GLIBC_2.7,
6593 __nldbl___isoc99_vwscanf@@GLIBC_2.7,
6594 __nldbl___isoc99_vfwscanf@@GLIBC_2.7
6595 and __nldbl___isoc99_vswscanf@@GLIBC_2.7.
6596 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__isoc99_scanf,
6597 __isoc99_fscanf, __isoc99_sscanf, __isoc99_vscanf,
6598 __isoc99_vfscanf, __isoc99_vsscanf, __isoc99_wscanf,
6599 __isoc99_fwscanf, __isoc99_swscanf, __isoc99_vwscanf,
6600 __isoc99_vfwscanf, __isoc99_vswscanf): Add NLDBL_DECL.
6601 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c
6602 (__nldbl___isoc99_scanf, __nldbl___isoc99_fscanf,
6603 __nldbl___isoc99_sscanf, __nldbl___isoc99_vscanf,
6604 __nldbl___isoc99_vfscanf, __nldbl___isoc99_vsscanf,
6605 __nldbl___isoc99_wscanf, __nldbl___isoc99_fwscanf,
6606 __nldbl___isoc99_swscanf, __nldbl___isoc99_vwscanf,
6607 __nldbl___isoc99_vfwscanf, __nldbl___isoc99_vswscanf): New
6608 functions.
6609 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vfscanf.c: New file.
6610 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_swscanf.c: New file.
6611 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vwscanf.c: New file.
6612 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_wscanf.c: New file.
6613 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_scanf.c: New file.
6614 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_sscanf.c: New file.
6615 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vsscanf.c: New file.
6616 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_fwscanf.c: New file.
6617 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vfwscanf.c: New file.
6618 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vswscanf.c: New file.
6619 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vscanf.c: New file.
6620 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_fscanf.c: New file.
6621
6622 * stdio-common/Makefile (tests): Add scanf13.
6623 (scanf13-ENV): New.
6624 * stdio-common/vfscanf.c (_IO_vfscanf_internal): Handle
6625 m modifier followed by l.
6626 (STRING_ARG): Add width argument.
6627 (_IO_vfscanf_internal) <case L_('c')>: Handle %mc.
6628 <case L_('C')>: Handle %mlc and %mC.
6629 <case L_('s'), case L_('S'), case L_('[')>: Adjust STRING_ARG
6630 arguments.
6631 * stdio-common/scanf13.c: New test.
6632
6633 * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct): Clear
6634 the _IO_FLAGS2_FORTIFY bit from _flags2 rather than _flags.
6635
883f7943
UD
66362007-09-18 Ulrich Drepper <drepper@redhat.com>
6637
6638 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Correct return value
874aa523 6639 type and __THROW marker of splice, vmsplice, and tee.
883f7943
UD
6640 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
6641 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
6642 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
6643 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
6644 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
6645 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
6646 * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
6647 * sysdeps/unix/sysv/linux/syscalls.list: Mark splice, vmsplice, and tee
6648 as cancellation points.
6649
3524efe0
UD
66502003-11-01 Daniel Jacobowitz <dan@debian.org>
6651
6652 * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_discover_osversion): Don't
6653 parse more than three parts of the version number.
6654
267c54dc
UD
66552007-09-15 Ulrich Drepper <drepper@redhat.com>
6656
6657 * stdio-common/vfscanf.c (_IO_vfwscanf): Add support for 'm'
6658 modifier. Patch by Jakub Jelinek.
6659
5e17d6b7
UD
66602007-08-26 Jakub Jelinek <jakub@redhat.com>
6661
6662 * sysdeps/unix/sysv/linux/i386/Makefile (sysdep_routines): Add
6663 call_fallocate in misc subdir.
6664 * sysdeps/unix/sysv/linux/i386/call_fallocate.S: New file.
6665 * sysdeps/unix/sysv/linux/i386/syscalls.list (fallocate64): Remove.
6666 * sysdeps/unix/sysv/linux/i386/posix_fallocate.c: Use __call_fallocate
6667 instead of __fallocate64.
6668 * sysdeps/unix/sysv/linux/i386/posix_fallocate64.c: Likewise.
6669
3a50811c
UD
66702007-09-15 Jakub Jelinek <jakub@redhat.com>
6671
6672 * rt/Versions (librt): Export __mq_open_2@@GLIBC_2.7.
6673 * rt/Makefile (headers): Add bits/mqueue2.h.
6674 * rt/mqueue.h: Include bits/mqueue2.h if -D_FORTIFY_SOURCE=2,
6675 optimizing with GCC and __va_arg_pack_len is defined.
6676 * rt/bits/mqueue2.h: New file.
6677 * rt/mq_open.c (__mq_open): Renamed from mq_open.
6678 (mq_open): New strong_alias.
6679 (__mq_open_2): New function.
6680 * sysdeps/unix/sysv/linux/mq_open.c (__mq_open): Renamed from mq_open.
6681 (mq_open): New strong_alias.
6682 (__mq_open_2): New function.
6683 * debug/Versions (libc): Export __fortify_fail@@GLIBC_PRIVATE.
6684 * Versions.def (librt): Add GLIBC_2.7 version.
6685 * debug/fortify_fail.c (__fortify_fail): Add libc_hidden_def.
6686 * include/stdio.h (__fortify_fail): Add libc_hidden_proto.
6687
6688 * misc/sys/cdefs.h (__errordecl, __va_arg_pack_len): Define.
6689 * io/fcntl.h: Include bits/fcntl2.h when __va_arg_pack_len
6690 is defined rather than when not C++.
6691 * io/bits/fcntl2.h (__open_alias, __open64_alias, __openat_alias,
6692 __openat64_alias): New redirects.
6693 (__open_too_many_args, __open_missing_mode, __open64_too_many_args,
6694 __open64_missing_mode, __openat_too_many_args, __openat_missing_mode,
6695 __openat64_too_many_args, __openat64_missing_mode): New __errordecls.
6696 (open, open64, openat, openat64): Rewrite as __extern_always_inline
6697 functions instead of function-like macros.
6698
9bdfff60
UD
66992007-09-14 H.J. Lu <hongjiu.lu@intel.com>
6700
6701 * sysdeps/i386/i586/memcpy.S (__memcpy_chk): New definition.
6702 * sysdeps/i386/i586/mempcpy.S (__memcpy_chk): New definition.
6703 * sysdeps/i386/i586/memset.S (__memset_chk): New definition.
6704
ab905672
UD
67052007-09-15 Mike Frysinger <vapier@gentoo.org>
6706
6707 * inet/inet_net.c: Reset digit to 0 for inputs starting with "0x".
6708 * inet/tst-network.c (tests): Add edge case tests for "0", "0x", "0x0".
6709
9bd68902
RM
67102007-09-14 Mike Frysinger <vapier@gentoo.org>
6711
6712 * inet/tst-network.c: Increment ERRORS for failing tests.
6713
de1c3ebb
UD
67142007-09-07 Jakub Jelinek <jakub@redhat.com>
6715
6716 * misc/sys/cdefs.h (__va_arg_pack): Define for GCC 4.3+.
6717 * misc/bits/syslog.h (syslog): When __va_arg_pack is defined,
6718 implement as __extern_always_inline function.
6719 (vsyslog): Define as __extern_always_inline function unconditionally.
6720 * libio/bits/stdio2.h (sprintf, snprintf, printf, fprintf):
6721 When __va_arg_pack is defined, implement as __extern_always_inline
6722 functions.
6723 (vsprintf, vsnprintf, vprintf, vfprintf): Define as
6724 __extern_always_inline functions unconditionally.
6725 * libio/bits/stdio.h (vprintf): Ifdef out the inline when
6726 bits/stdio2.h will be included.
6727 * wcsmbs/bits/wchar2.h (__swprintf_alias): New redirect.
6728 (swprintf, wprintf, fwprintf): When __va_arg_pack is defined,
6729 implement as __extern_always_inline functions.
6730 (vswprintf, vwprintf, vfwprintf): Define as
6731 __extern_always_inline functions unconditionally.
6732 * debug/tst-chk1.c (do_test): Enable remaining tests for C++.
6733
67342007-09-03 Jakub Jelinek <jakub@redhat.com>
6735
6736 * misc/sys/cdefs.h (__extern_inline, __extern_always_inline): Only
6737 define in C++ for GCC 4.3+, in C++ always use __gnu_inline__
6738 attribute.
6739 * include/features.h (__USE_EXTERN_INLINES): Define only when
6740 __extern_inline is defined.
6741 * stdlib/stdlib.h: Include bits/stdlib.h when __extern_always_inline
6742 is defined instead of when not __cplusplus.
6743 * misc/sys/syslog.h: Include bits/syslog.h when __extern_always_inline
6744 is defined instead of when not __cplusplus.
6745 * socket/sys/socket.h: Include bits/socket2.h when
6746 __extern_always_inline is defined instead of when not __cplusplus.
6747 * libio/stdio.h: Include bits/stdio2.h when __extern_always_inline
6748 is defined instead of when not __cplusplus.
6749 * posix/unistd.h: Include bits/unistd.h when __extern_always_inline
6750 is defined instead of when not __cplusplus.
6751 * string/string.h: Include bits/string3.h when __extern_always_inline
6752 is defined instead of when not __cplusplus.
6753 * wcsmbs/wchar.h: Include bits/wchar2.h when __extern_always_inline
6754 is defined instead of when not __cplusplus.
6755 (btowc, wctob): Don't guard the inlines with ifndef __cplusplus.
6756 * io/fcntl.h: Don't include bits/fcntl2.h if __extern_always_inline
6757 is not defined.
6758 * misc/bits/syslog-ldbl.h: Guard *_chk stuff with
6759 defined __extern_always_inline instead of !defined __cplusplus.
6760 * libio/bits/stdio-ldbl.h: Likewise.
6761 * wcsmbs/bits/wchar-ldbl.h: Likewise.
6762 * misc/bits/syslog.h (syslog): Don't define for C++.
6763 (vsyslog): Use __extern_always_inline function for C++ instead of
6764 a macro.
6765 * libio/bits/stdio.h (__STDIO_INLINE): Define to __extern_inline
6766 whenever that macro is defined.
6767 (vprintf): Don't provide the inline for C++.
6768 (fread_unlocked, fwrite_unlocked): Don't define the macros for C++.
6769 * libio/bits/stdio2.h (sprintf, snprintf, printf, fprintf): Don't
6770 define the macros for C++.
6771 (vsprintf, vsnprintf, vprintf, vfprintf): Define as
6772 __extern_always_inline functions for C++.
6773 * io/sys/stat.h (stat, lstat, fstat, fstatat, mknod, mknodat,
6774 stat64, lstat64, fstat64, fstatat64): Don't define if not
6775 __USE_EXTERN_INLINES.
6776 * wcsmbs/bits/wchar2.h: Fix #error message.
6777 (swprintf, wprintf, fwprintf): Don't define the macros for C++.
6778 (vswprintf, vwprintf, vfwprintf): Define using
6779 __extern_always_inline functions for C++.
6780 * string/bits/string3.h: Don't #undef macros if __cplusplus.
6781 (memcpy, memmove, mempcpy, memset, bcopy, bzero, strcpy, stpcpy,
6782 strncpy, strcat, strncat): Define as __extern_always_inline
6783 functions instead of macros for C++.
6784 * math/bits/cmathcalls.h: Guard __extern_inline routines with
6785 defined __extern_inline.
6786 * sysdeps/alpha/fpu/bits/mathinline.h (__MATH_INLINE): Define
6787 to __extern_inline whenever that macro is defined.
6788 * sysdeps/ia64/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
6789 * sysdeps/i386/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
6790 * sysdeps/i386/i486/bits/string.h (__STRING_INLINE): Likewise.
6791 * sysdeps/s390/bits/string.h (__STRING_INLINE): Likewise.
6792 * sysdeps/s390/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
6793 * sysdeps/powerpc/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
6794 * sysdeps/x86_64/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
6795 * sysdeps/sparc/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
6796 * sysdeps/unix/sysv/linux/sys/sysmacros.h (gnu_dev_major,
6797 gnu_dev_minor, gnu_dev_makedev): Remove __extern_inline from
6798 prototypes. Only provide __extern_inline routines if
6799 __USE_EXTERN_INLINES.
6800 * debug/Makefile: Add rules to build and run tst-{,lfs}chk{4,5,6}
6801 tests.
6802 * debug/tst-chk1.c (do_prepare, do_test): Allow compilation as C++.
6803 For now avoid some *printf tests in C++. Skip all testing
6804 if __USE_FORTIFY_LEVEL is defined, but __extern_always_inline macro
6805 is not.
6806 * debug/tst-chk4.cc: New file.
6807 * debug/tst-chk5.cc: New file.
6808 * debug/tst-chk6.cc: New file.
6809 * debug/tst-lfschk4.cc: New file.
6810 * debug/tst-lfschk5.cc: New file.
6811 * debug/tst-lfschk6.cc: New file.
6812 * include/wchar.h (__vfwprintf_chk, __vswprintf_chk): Avoid
6813 prototypes in C++.
6814 * include/stdio.h (__sprintf_chk, __snprintf_chk, __vsprintf_chk,
6815 __vsnprintf_chk, __printf_chk, __fprintf_chk, __vprintf_chk,
6816 __vfprintf_chk, __fgets_unlocked_chk, __fgets_chk): Likewise.
6817
b53eef9c
UD
68182007-09-13 Ulrich Drepper <drepper@redhat.com>
6819
6820 * po/cs.po: Update from translation team.
6821
af385590
RM
68222007-09-11 Roland McGrath <roland@redhat.com>
6823
6824 * posix/Makefile ($(objpfx)getconf.speclist): Make it empty if cross
6825 compiling.
6826
af2f25a1
RM
68272007-09-07 Samuel Thibault <samuel.thibault@ens-lyon.org>
6828
6829 * sysdeps/mach/hurd/bits/ioctls.h (TAB3): New macro.
6830
94733ae0
RM
68312007-09-05 Roland McGrath <roland@redhat.com>
6832
6833 * manual/signal.texi (Signaling Another Process): Typo fix.
6834 From Karl Berry <karl@freefriends.org>.
6835
de4d8563
UD
68362007-08-29 Ulrich Drepper <drepper@redhat.com>
6837
6838 * sysdeps/unix/sysv/linux/check_pf.c (IFA_F_OPTIMISTIC): Define to
6839 zero if not defined.
6840 (make_request): Recognize optimistic addresses and treat them like
6841 deprecated addresses.
6842 Reported by Neil Horman <nhorman@redhat.com>.
6843
0adfcc05
UD
68442007-08-28 Ulrich Drepper <drepper@redhat.com>
6845
f3c54060
UD
6846 * nscd/connections.c (send_ro_fd): Also transfer file size.
6847 * nscd/nscd_helper.c (get_mapping): If nscd also transfers the
6848 file size don't call fstat.
6849
0adfcc05
UD
6850 * nscd/nscd_helper.c (get_mapping): Avoid the pread call, just go
6851 ahead and map the file. This should always be correct and we can
6852 catch problems later.
6853
3586b2b6
UD
68542007-08-28 Jakub Jelinek <jakub@redhat.com>
6855
6856 * libio/bits/stdio2.h (__fread_chk, __fread_unlocked_chk): New
6857 prototypes.
6858 (__fread_alias, __fread_unlocked_alias): New aliases.
6859 (fread): New extern inline.
6860 (fread_unlocked): Likewise. Undef macro before definition of
6861 the inline function.
6862 * debug/Makefile (routines): Add fread_chk and fread_u_chk.
6863 (CFLAGS-fread_chk.c, CFLAGS-fread_u_chk.c): Add.
6864 * debug/Versions (libc): Export __fread_chk@@GLIBC_2.7
6865 and __fread_unlocked_chk@@GLIBC_2.7.
6866 * debug/fread_chk.c: New file.
6867 * debug/fread_u_chk.c: New file.
6868 * debug/tst-chk1.c (do_test): Add fread and fread_unlocked tests.
6869
3704aa0b
RM
68702007-08-27 Jakub Jelinek <jakub@redhat.com>
6871
6872 * sysdeps/unix/sysv/linux/syscalls.list
6873 (personality): Change caller to EXTRA.
6874
80e7d6a6
UD
68752007-08-25 Ulrich Drepper <drepper@redhat.com>
6876
278bfa00
UD
6877 * iconvdata/iso-2022-kr.c (BODY): Fake initialization of array buf
6878 to keep gcc quiet.
6879 * iconvdata/iso-2022-cn.c (BODY): Likewise.
6880
a45d733c
UD
6881 * locale/programs/ld-collate.c (collate_output): Avoid warning if
6882 NDEBUG is defined.
6883
5dfeae0e
UD
6884 * Makerules: Use -p option with mkdir.
6885
8f1fe057
UD
6886 * sunrpc/key_prot.c (xdr_unixcred): Work around gcc alias warning.
6887 * nis/nis_xdr.c (_xdr_nis_server): Likewise.
bd0dcd28
UD
6888 (_xdr_directory_obj): Likewise.
6889 (xdr_entry_obj): Likewise.
6890 (xdr_group_obj): Likewise.
6891 (xdr_link_obj): Likewise.
6892 (xdr_table_obj): Likewise.
6893 (_xdr_nis_result): Likewise.
6894 (_xdr_ns_request): Likewise.
6895 (_xdr_ib_request): Likewise.
6896 (_xdr_nis_taglist): Likewise.
6897 (xdr_cback_data): Likewise.
8f1fe057 6898 * nis/yp_xdr.c (xdr_ypmaplist): Likewise.
bd0dcd28
UD
6899 (xdr_ypresp_maplist): Likewise.
6900
01339a67
UD
6901 * stdio-common/Makefile: Avoid format string warning for tst-sprint.
6902
3fa10468
UD
6903 * posix/regex_internal.h: Prevent some declarations and definitions
6904 to be seen when used in tests.
6905
ec1e04de
UD
6906 * posix/tst-rfc3484.c (__idna_to_unicode_lzlz): Initialize *OUTPUT.
6907 * posix/tst-rfc3484-2.c (__idna_to_unicode_lzlz): Likewise.
6908
7a344d1d
UD
6909 * debug/Makefile: Disable format checking when compiling tst-chk?.c.
6910
f8f6ff5d
UD
6911 * config.make.in (datarootdir): Add to shut up configure.
6912
76fca9f1
UD
6913 * sysdeps/x86_64/cacheinfo.c (handle_amd): Fix computation of
6914 associativity for fully-associative caches.
6915
80e7d6a6
UD
6916 * sysdeps/x86_64/cacheinfo.c (handle_amd): Handle L3 cache
6917 requests. Fill on more associativity values for L2.
6918 Patch mostly by Evandro Menezes.
6919
cb5ba304
UD
69202007-08-24 Ulrich Drepper <drepper@redhat.com>
6921
d250df8c
UD
6922 * sysdeps/unix/sysv/linux/x86_64/init-first.c
6923 (_libc_vdso_platform_setup): Avoid using exported variable by using
6924 alias.
6925
88f61aaf
UD
6926 * resolv/arpa/nameser.h (NS_OPT_DNSSEC_OK): Define.
6927
cb5ba304 6928 * sysdeps/unix/sysv/linux/i386/syscalls.list: No reason to mark
cb104bd7 6929 fallocate64 as EXTRA. It is not referenced if the symbol isn't
cb5ba304
UD
6930 defined.
6931
62e1b1f5
UD
69322007-08-23 Ulrich Drepper <drepper@redhat.com>
6933
44b2e581
UD
6934 * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Correctly
6935 align stack for call if pltexit is to be used.
6936
73e3ff07
UD
6937 [BZ #3924]
6938 * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Correctly
6939 align for function call in case pltexit has to be called later.
6940
62e1b1f5
UD
6941 * sysdeps/i386/dl-trampoline.S (_dl_runtime_resolve): Avoid
6942 implicit atomic operation when storing function pointer.
6943 (_dl_runtime_profile): Likewise.
6944
0008163a
UD
69452007-08-17 Jakub Jelinek <jakub@redhat.com>
6946
6947 * nis/nis_table.c (nis_list): Don't fail if __follow_path returned
6948 NIS_NOTFOUND.
6949
55ea8790
UD
69502007-08-21 Ulrich Drepper <drepper@redhat.com>
6951
2e0e1a05
UD
6952 [BZ #4566]
6953 * string/strtok.c: Fix typo in comment.
6954
682e4437
UD
6955 [BZ #4582]
6956 * debug/segfault.c: Fix typos in comments.
6957
7d55c9eb
UD
6958 [BZ #4588]
6959 * stdio-common/tempnam.c: Fix comment, it is not checked that
6960 TMPDIR points to a writable directory.
6961
0f8f993c
UD
6962 [BZ #4726]
6963 * resolv/res_send.c (__libc_res_nsend): Initialize all of the
6964 memory allocated for the name server address.
6965
1465dd0f
UD
6966 [BZ #4946]
6967 * nscd/connections.c (handle_request): Using sendfile always
6968 requires that mmap is used for the database.
6969 Patch by Petr Baudis <pasky@suse.cz>.
6970
c44d3bdf
UD
6971 [BZ #4905]
6972 * nscd/hstcache.c (cache_addhst): When reloading an entry which
6973 suddenly has two or more addresses, ignore it and remove the old
6974 entry.
6975
1ce7d80d
UD
6976 [BZ #4814]
6977 * resolv/res_hconf.c: Prepare for compiling outside libc.
6978 * nscd/res_hconf.c: New file.
6979 * nscd/Makefile (nscd-modules): Add res_hconf. Add rules to build
6980 the new file.
6981 * nscd/gethstbynm2_r.c (NEED__RES_HCONF): Define.
6982 * nscd/gethstbyad_r.c (NEED__RES_HCONF): Likewise.
6983
a30d41c1
UD
6984 * nscd/hstcache.c (cache_addhst): Minimal optimization.
6985
45dc3ad7
UD
6986 [BZ #4925]
6987 * debug/pcprofiledump.c: Turn on internationalization by calling
6988 setlocale. Patch mostly by Benno Schulenberg.
6989
55ea8790
UD
6990 [BZ #4936]
6991 * iconv/gconv.c (__gconv): If flush was successful, clear rest of
6992 the state.
6993 * iconvdata/Makefile: Add rules to build and run bug-iconv5.
6994 * iconvdata/bug-iconv5.c: New file.
6995
0b82ff74
UD
69962007-08-04 Carlos O'Donell <carlos@systemhalted.org>
6997
55ea8790 6998 [BZ #4896]
0b82ff74
UD
6999 * elf/elf.h: Define R_PARISC_PLABEL21L, R_PARISC_PLABEL14R,
7000 R_PARISC_GNU_VTENTRY, R_PARISC_GNU_VTINHERIT, R_PARISC_TLS_GD21L,
7001 R_PARISC_TLS_GD14R, R_PARISC_TLS_GDCALL, R_PARISC_TLS_LDM21L,
7002 R_PARISC_TLS_LDM14R, R_PARISC_TLS_LDMCALL, R_PARISC_TLS_LDO21L,
7003 R_PARISC_TLS_LDO14R, R_PARISC_TLS_DTPMOD32, R_PARISC_TLS_DTPMOD64,
7004 R_PARISC_TLS_DTPOFF32, R_PARISC_TLS_DTPOFF64, R_PARISC_TLS_LE21L,
7005 R_PARISC_TLS_LE14R, R_PARISC_TLS_IE21L, R_PARISC_TLS_IE14R,
7006 R_PARISC_TLS_TPREL32, R_PARISC_TLS_TPREL64.
7007
ee16a55a
UD
70082007-08-21 Ulrich Drepper <drepper@redhat.com>
7009
7010 [BZ #4937]
7011 * elf/do-lookup.h (do_lookup_x): Minimal improvement in hash
7012 lookup loop. Suggested by John Reiser.
7013
b211fe0f
JJ
70142007-08-21 Jakub Jelinek <jakub@redhat.com>
7015
7016 * sysdeps/unix/sysv/linux/alpha/sysdep.h: Include tls.h.
7017
fb84593c
UD
70182007-08-20 Ulrich Drepper <drepper@redhat.com>
7019
7020 * csu/libc-start.c: Don't handle VDSO_SETUP here.
7021 * sysdeps/unix/sysv/linux/init-first.c: Handle it here instead.
7022 * sysdeps/unix/sysv/linux/x86_64/libc-start.c: Renamed to...
7023 * sysdeps/unix/sysv/linux/x86_64/init-first.c: ...this. New file.
7024 * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Move VDSO_SETUP code
7025 to...
7026 * sysdeps/unix/sysv/linux/x86_64/init-first.c: ...here. New file.
7027
b83fb35c
UD
70282007-08-18 Ulrich Drepper <drepper@redhat.com>
7029
7030 * po/nl.po: Update from translation team.
7031
20806a70
AJ
70322007-08-16 Andreas Jaeger <aj@suse.de>
7033
7034 * locale/localeinfo.h: Make _nl_category_name_idxs extern.
f00d47a3 7035 Reported by Peter Festner <peter.festner@ewetel.net>.
20806a70 7036
42282d57
JJ
70372007-08-17 Jakub Jelinek <jakub@redhat.com>
7038
7039 * login/tst-grantpt.c (test_einval): Add 3rd argument to open.
7040
8a501135
JJ
70412007-08-16 Jakub Jelinek <jakub@redhat.com>
7042
cb84d1e4
JJ
7043 * elf/Makefile ($(objpfx)ld.so): Use readelf -s and awk instead of nm -u
7044 to check for undefined symbols.
7045
91ddd9c4
JJ
7046 * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__clone):
7047 If the syscall fails, set errno to the actual returned error number
7048 rather than EINVAL.
7049 * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__clone): If
7050 arguments are incorrect, set errno to EINVAL, if the syscall
7051 fails, set errno to the actual returned error number.
7052
18915760
JJ
7053 * stdlib/bits/stdlib-ldbl.h (__strtold_internal): Remove.
7054 * wcsmbs/bits/wchar-ldbl.h (__wcstold_internal): Remove.
7055
8a501135
JJ
7056 * sysdeps/sparc/sparc32/sparcv9b/memcpy.S: Moved to...
7057 * sysdeps/sparc/sparc32/sparcv9/sparcv9b/memcpy.S: ... here. New
7058 file.
7059 (ASI_PNF, ASI_BLK_P): Don't define.
7060 * sysdeps/sparc/sparc32/sparcv9v/memcpy.S: Moved to...
7061 * sysdeps/sparc/sparc32/sparcv9/sparcv9v/memcpy.S: ... here. New
7062 file.
7063 * sysdeps/sparc/sparc32/sparcv9v/memset.S: Moved to...
7064 * sysdeps/sparc/sparc32/sparcv9/sparcv9v/memset.S: ... here. New
7065 file.
7066
e4720b0e
JJ
70672007-08-15 Jakub Jelinek <jakub@redhat.com>
7068
7069 * sysdeps/sparc/fpu/fraiseexcpt.c (__feraiseexcept): Fix raising
7070 FE_UNDERFLOW on Niagara CPUs.
7071
7072 * sysdeps/sparc/fpu/feholdexcpt.c (feholdexcept): Clear all
7073 exceptions.
7074
702a9414
JJ
70752007-08-14 Jakub Jelinek <jakub@redhat.com>
7076
467d1345
JJ
7077 * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_runtime_setup): No
7078 need to check GLRO(dl_hwcap) & HWCAP_SPARC_FLUSH on sparcv9.
7079 (sparc_fixup_plt): Add do_flush argument instead of figuring whether
7080 flush should be used or not inside of the function.
7081 (elf_machine_fixup_plt, elf_machine_rela): Adjust caller.
7082
7083 * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__clone,
7084 __thread_start): Use HIDDEN_JUMPTARGET.
7085 * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__clone,
7086 __thread_start): Likewise.
7087 * sysdeps/unix/sysv/linux/sparc/sysdep.h (JUMPTARGET): Define.
7088
702a9414
JJ
7089 * sysdeps/ieee754/ldbl-64-128/strtold_l.c (__STRTOF): Declare.
7090 Add libc_hidden_proto.
7091 (STRTOF): Add libc_hidden_proto.
7092 (___new_strtold_l, ___new_wcstold_l): New weak aliases.
7093 (strtold_l, wcstold_l): Use them as second argument for
7094 long_double_symbol.
7095
c6c8f0ec
UD
70962007-08-14 Ulrich Drepper <drepper@redhat.com>
7097
7098 * elf/dl-misc.c: Undo last change. The kernel won't allow it.
7099
5e88abf9
UD
71002007-08-13 Kaz Kojima <kkojima@rr.iij4u.or.jp>
7101
7102 * stdlib/strtold_l.c: Include wchar.h if needed. Add libc_hidden_def.
7103
fc4819b0
UD
71042007-08-14 Ulrich Drepper <drepper@redhat.com>
7105
7106 * po/bg.po: New file. From the translation team.
7107
22502ea2
UD
71082007-08-13 Jakub Jelinek <jakub@redhat.com>
7109
7110 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_PSELECT,
7111 __ASSUME_PPOLL, __ASSUME_ATFCTS, __ASSUME_SET_ROBUST_LIST,
7112 __ASSUME_UTIMENSAT, __ASSUME_FALLOCATE): Update per-arch conditions
7113 when each feature was introduced.
7114
7115 * sysdeps/unix/sysv/linux/dl-vdso.c: Don't include dl-hash.h.
7116 * sysdeps/unix/sysv/linux/dl-vdso.h: Don't include dl-hash.h if NDEBUG.
7117 (CHECK_HASH): New macro.
7118 (PREPARE_VERSION): Use it.
7119
7120 * sysdeps/unix/sysv/linux/pselect.c (__generic_pselect): Only provide
7121 prototype if not __ASSUME_PSELECT.
7122 * sysdeps/unix/sysv/linux/ppoll.c (__generic_ppoll): Only provide
7123 prototype if not __ASSUME_PPOLL.
7124
7125 * sysdeps/unix/sysv/linux/dl-osinfo.h (ROUND): #undef after use.
7126
7127 * sysdeps/unix/clock_settime.c (freq, __pthread_clock_settime,
7128 hp_timing_settime): Don't define or declare if HANDLED_CPUTIME
7129 is defined.
7130
9c6f6953
UD
71312007-08-13 Ulrich Drepper <drepper@redhat.com>
7132
7133 * sysdeps/unix/sysv/linux/x86_64/libc-start.c
7134 (_libc_vdso_platform_setup): If vDSO is not available point
7135 __vdso_gettimeofday to the vsyscall.
7136 * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S [SHARED]: Use
7137 __vdso_gettimeofday instead of vsyscall.
7138
f8de5057
UD
71392007-08-13 Jakub Jelinek <jakub@redhat.com>
7140
7141 * nscd/servicescache.c: Include kernel-features.h.
7142 * nscd/gai.c: Likewise.
7143 * sysdeps/unix/sysv/linux/statfs64.c: Likewise.
7144 * sysdeps/unix/sysv/linux/fstatfs64.c: Likewise.
7145 * sysdeps/unix/sysv/linux/fxstatat.c: Likewise.
7146 * sysdeps/unix/sysv/linux/s390/s390-32/mmap.S: Likewise.
7147 * sysdeps/unix/sysv/linux/s390/s390-32/mmap64.S: Likewise.
7148 * sysdeps/unix/sysv/linux/xstatconv.c: Likewise.
7149 * sysdeps/unix/sysv/linux/if_index.c: Likewise.
7150 * sysdeps/unix/sysv/linux/sparc/sparc64/xstat.c: Likewise.
7151 * sysdeps/unix/sysv/linux/ifaddrs.c: Likewise.
7152
3c87d79d
UD
71532007-08-12 Ulrich Drepper <drepper@redhat.com>
7154
ea37207a
UD
7155 * elf/dl-dst.h: No need for _dl_dst_count, _dl_dst_substitute,
7156 and _dl_get_origin defines anymore.
7157
4eb375fe
UD
7158 * sysdeps/unix/sysv/linux/clock_gettime.c (maybe_syscall_gettime_cpu):
7159 Build fix for systems which might lack POSIX timer support.
7160
3c87d79d
UD
7161 * sysdeps/unix/sysv/linux/x86_64/libc-start.c
7162 (_libc_vdso_platform_setup): Mangle function pointers before storing
7163 them.
7164 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INLINE_VSYSCALL):
7165 Demangle vdso pointer before use.
7166 (INTERNAL_VSYSCALL): Likewise.
7167
7168 * elf/cache.c (primes): Mark as const.
7169 Noted by Roland McGrath.
7170
27d9ffda
UD
71712007-08-01 Andreas Jaeger <aj@suse.de>
7172 Jakub Jelinek <jakub@redhat.com>
7173
7174 * elf/ldconfig.c (opt_ignore_aux_cache): Add new option.
7175 (options): Add option.
7176 (parse_opt): Handle option.
7177 (manual_link): Adjust process_file caller. Call implicit_soname.
7178 (search_dir): Formatting. Use and populate auxiliary cache.
7179 (main): Load and save auxiliary cache.
7180 * elf/readlib.c (process_file): Add stat_buf argument. Pass struct
7181 stat64 from fstat64 to caller.
7182 (implicit_soname): New function.
7183 * elf/readelflib.c (process_elf_file): If DT_SONAME is not present,
7184 leave *soname as NULL.
7185 * elf/cache.c: Include libgen.h.
7186 (print_entry, print_cache, compare, save_cache, add_to_cache):
7187 Formatting and cleanups.
7188 (aux_cache_entry_id, aux_cache_entry, aux_cache_file_entry,
7189 aux_cache_file): New structures.
7190 (AUX_CACHEMAGIC): Define.
7191 (primes): New array.
7192 (aux_hash_size, aux_hash): New variables.
7193 (aux_cache_entry_id_hash, nextprime, init_aux_cache,
7194 search_aux_cache, insert_to_aux_cache, add_to_aux_cache,
7195 load_aux_cache, save_aux_cache): New functions.
7196 * sysdeps/generic/ldconfig.h (_PATH_LDCONFIG_AUX_CACHE): Define.
7197 (init_aux_cache, search_aux_cache, add_to_aux_cache,
7198 load_aux_cache, save_aux_cache, implicit_soname): New prototypes.
7199 (process_file): Adjust prototype.
7200
8d944b0f
UD
72012007-08-12 Jakub Jelinek <jakub@redhat.com>
7202
7203 * sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h: Include stddef.h
7204 with __need_size_t.
7205
75fb247e
UD
72062007-08-12 Ulrich Drepper <drepper@redhat.com>
7207
fb86328a
UD
7208 * sysdeps/unix/sysv/linux/dl-vdso.c (_dl_vdso_vsym): Expect
7209 r_found_version structure as second parameter.
7210 * sysdeps/unix/sysv/linux/dl-vdso.h (PREPARE_VERSION): Define.
7211 (_dl_vdso_vsym): Change type of second parameter accordingly.
7212 * sysdeps/unix/sysv/linux/x86-64/libc-start.c
7213 (_libc_vdso_platform_setup): Adjust.
974a1f0f 7214 * sysdeps/unix/sysv/linux/powerpc/libc-start.c
fb86328a
UD
7215 (_libc_vdso_platform_setup): Likewise.
7216
75fb247e
UD
7217 * sysdeps/unix/sysv/linux/powerpc/dl-vdso.c: Move to...
7218 * sysdeps/unix/sysv/linux/dl-vdso.c: ...here.
7219 * sysdeps/unix/sysv/linux/powerpc/dl-vdso.h: Move to...
7220 * sysdeps/unix/sysv/linux/dl-vdso.h: ...here.
7221 * csu/libc-start.c: Pretty printing.
7222 Use VDSO_SETUP if defined.
7223 * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Define VDSO_SETUP
7224 and let generic code call into _libc_vdso_platform_setup.
7225 * sysdeps/unix/sysv/linux/x86_64/libc-start.c: New file.
7226 * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: New file.
7227 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Pretty printing.
7228 Define INLINE_VSYSCALL and INTERNAL_VSYSCALL.
7229 * sysdeps/unix/sysv/linux/x86_64/Versions: Export __vdso_clock_gettime
7230 for GLIBC_PRIVATE.
7231 * sysdeps/unix/sysv/linux/x86_64/Makefile [subdir=elf]
7232 (sysdep_rountines): Add dl-vdso.
7233
7234 * sysdeps/unix/sysv/linux/powerpc/Makefile: Use sysdep_routines instead
7235 of routines.
7236
7237 * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h: Add
7238 attribute_hidden to __vdso_gettimeofday prototype.
7239
9229b83e
RM
72402007-08-12 Roland McGrath <roland@redhat.com>
7241
7242 * manual/stdio.texi (Variable Arguments Output): Fix xref to gcc manual.
7243 From: Karl Berry <karl@freefriends.org>.
7244
4503061f
UD
72452007-08-11 Ulrich Drepper <drepper@redhat.com>
7246
7247 * elf/dl-misc.c (_dl_sysdep_read_whole_file): We really don't need
7248 an atime update for the files we read.
7249
d7e23b02
UD
72502007-08-10 Ulrich Drepper <drepper@redhat.com>
7251
7cf89e95
UD
7252 * shadow/lckpwdf.c (__lckpwdf): Use O_CLOEXEC if possible.
7253
9d169bb3 7254 * nscd/connections.c: Use O_CLOEXEC if possible. Use mkostemp
d7e23b02
UD
7255 instead of mkstemp.
7256
7257 * misc/Makefile (routines): Add mkostemp and mkostemp64.
7258 * misc/Versions: Export mkostemp and mkostemp64 for GLIBC_2.7.
7259 * misc/mkostemp.c: New file.
7260 * misc/mkostemp64.c: New file.
7261 * stdlib/stdlib.h: Declare the new functions.
7262 * sysdeps/posix/tempname.c: Add new parameter which is added to
7263 the flags for open. Remove __GT_BIGFILE handling.
7264 * stdio-common/tempname.c: Likewise.
7265 * include/stdio.h: Adjust __gen_tempname prototype.
7266 Renumber __GT_* constants.
7267 * libio/oldtmpfile.c: Adjust for __gen_tempname interface change.
7268 * misc/mkdtemp.c: Likewise.
7269 * misc/mkstemp.c: Likewise.
7270 * misc/mkstemp64.c: Likewise.
7271 * misc/mktemp.c: Likewise.
7272 * stdio-common/tempnam.c: Likewise.
7273 * stdio-common/tmpfile.c: Likewise.
7274 * stdio-common/tmpfile64.c: Likewise.
7275 * stdio-common/tmpnam.c: Likewise.
7276 * stdio-common/tmpnam_r.c: Likewise.
7277
22532966
RM
72782007-08-10 Roland McGrath <roland@frob.com>
7279
7280 * sysdeps/mach/hurd/bits/ioctls.h (NLDLY, TABDLY, BSDLY, VTDLY):
7281 New macros.
7282 (NLDELAY, CRDELAY, TBDELAY, BSDELAY, VTDELAY): Define to those.
7283 Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>.
7284
673876e6
UD
72852007-08-10 Ulrich Drepper <drepper@redhat.com>
7286
aa132749
UD
7287 * nss/nss_files/files-XXX.c (internal_setent): Use O_CLOEXEC if
7288 possible.
7289 * nss/nss_files/files-alias.c (internal_setent): Likewise.
7290 * nss/Makefile (libnss_files-routines): Add files-have_o_cloexec.
7291 * nss/nss_files/files-have_o_cloexec.c: New file.
7292
22532966 7293 * sysdeps/unix/sysv/linux/shm_open.c (shm_open): Use O_CLOEXEC if
673876e6
UD
7294 available.
7295
1e286653
JJ
72962007-08-10 Jakub Jelinek <jakub@redhat.com>
7297
7298 * sysdeps/ieee754/ldbl-128ibm/strtold_l.c (___new_strtold_l,
7299 ___new_wcstold_l): New weak aliases.
7300 (strtold_l, wcstold_l): Use them as second argument for
7301 long_double_symbol.
7302
f07f72f3
UD
73032007-08-09 Ulrich Drepper <drepper@redhat.com>
7304
6479496a
UD
7305 * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Use correct
7306 register in test for error.
7307
c4adefbd
UD
7308 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_CLOEXEC): Define.
7309 * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h (O_CLOEXEC): Likewise.
7310
f07f72f3
UD
7311 * po/sv.po: Update from translation team.
7312
eef38c28
RM
73132007-08-06 Roland McGrath <roland@redhat.com>
7314
773e305e
RM
7315 * include/stdlib.h: Add libc_hidden_proto for strto*, __strto*_l.
7316 Remove __strto*_l inlines.
7317 * include/wchar.h: Add libc_hidden_proto for wcsto*, __wcsto*_l.
7318 * stdlib/strtod.c: Add libc_hidden_def.
7319 * stdlib/strtod_l.c: Likewise.
7320 * stdlib/strtold.c [__LONG_DOUBLE_MATH_OPTIONAL]: Add libc_hidden_proto
7321 for __new_strtold and __new_wcstold.
7322 * sysdeps/ieee754/ldbl-128ibm/strtold_l.c: Add libc_hidden_proto for
7323 __STRTOF, STRTOF.
7324 * stdlib/strtol.c: Add libc_hidden_def.
7325 * stdlib/strtol_l.c: Likewise.
7326 * sysdeps/wordsize-64/strtol.c: Add libc_hidden_ver for strtoll and
7327 strtoq.
7328
7329 * scripts/data/localplt-powerpc-linux-gnu.data: New file.
7330
7331 * scripts/data/localplt-x86_64-linux-gnu.data: File renamed to ...
7332 * scripts/data/localplt-generic.data: ... here.
7333 * elf/Makefile (check-data): Get generic file if no other.
7334 ($(objpfx)check-localplt.out): Make target unconditional.
7335
eef38c28
RM
7336 * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_discover_osversion):
7337 Use ElfW(Nhdr).
7338
742df3a4
UD
73392007-08-05 Ulrich Drepper <drepper@redhat.com>
7340
7341 * po/zh_CN.po: Updated translation from translation team.
7342
0470fa46
JJ
73432007-08-05 Jakub Jelinek <jakub@redhat.com>
7344
7345 * sysdeps/unix/sysv/linux/powerpc/powerpc32/socket.S (__socket):
7346 Don't use CGOTSETUP and CGOTRESTORE macros.
7347
b5075bdc
RM
73482007-08-04 Roland McGrath <roland@redhat.com>
7349
7350 * posix/Makefile ($(objpfx)getconf.speclist): Fix typo.
7351
9accc268
JJ
73522007-08-04 Jakub Jelinek <jakub@redhat.com>
7353
7354 * io/bits/fcntl2.h (open, open64, openat, openat64): Add
7355 __extension__ around the whole statement expression.
7356
220ae3ef
UD
73572007-08-04 Ulrich Drepper <drepper@redhat.com>
7358
c8ccd8e3
UD
7359 * sysdeps/unix/opendir.c (__alloc_dir): Correct order of DIR
7360 elements during initialization.
7361
220ae3ef
UD
7362 * po/pl.po: Updated translation from translation team.
7363 * po/tr.po: Likewise.
11960f7f 7364 * po/nl.po: Likewise.
220ae3ef 7365
2fb20667
UD
73662007-08-03 Ulrich Drepper <drepper@redhat.com>
7367
7368 * rt/aio.h: Add __nonnull attributes.
7369
ce31a3b1
UD
73702007-08-03 Jakub Jelinek <jakub@redhat.com>
7371
64f6281c
UD
7372 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Properly handle -0.
7373 * stdlib/Makefile (tests): Add tst-strtod5.
7374 (tst-strtod5-ENV): New.
7375 * stdlib/tst-strtod5.c: New file.
7376
ce31a3b1
UD
7377 * intl/dcigettext.c (_nl_find_msg): Free encoding if __gconv_open
7378 failed.
7379 * intl/finddomain.c (_nl_find_domain): Free normalized_codeset
7380 on failure.
7381
7382 * elf/dl-load.c (decompose_rpath): Free copy if result couldn't be
7383 allocated.
7384
754980e4
JJ
73852007-08-03 Jakub Jelinek <jakub@redhat.com>
7386
7387 * rt/mqueue.h (mq_timedreceive, mq_timedsend): Fix nonnull argument
7388 numbers.
7389
497af0cb
UD
73902007-08-02 Ulrich Drepper <drepper@redhat.com>
7391
cbf0489b
UD
7392 * io/Makefile (aux): Add have_o_cloexec.
7393 * include/fcntl.h: Declare __have_o_cloexec.
7394 * io/have_o_cloexec.c: New file.
7395 * sysdeps/unix/opendir.c (__opendir): Use O_CLOEXEC is available.
7396 (__alloc_dir): If O_CLOEXEC has been used, don't duplicate the
7397 fcntl call if not necessary.
7398 * login/utmp_file.c (setutent_file): Use __have_o_cloexec instead
7399 of local variable.
7400
fa39685d
UD
7401 * sysdeps/unix/opendir.c (__alloc_dir): Don't initialize ->data.
7402 Avoid memset, add explicit initialization.
7403 * sysdeps/unix/dirstream.h (struct __dirstream): Move data elemtn
7404 to the end and change into zero-sized array.
7405 Move lock member to fill a hole on 64-bit platforms.
9b2e9577
UD
7406
7407 * stdlib/stdlib.h: Remove __strto*_internal prototypes and strto*
7408 inline functions.
7409 * include/stdlib.h: Add __strto*_internal prototypes here.
7410 * wcsmbs/wchar.h: Remove __wcsto*_internal prototypes and wcsto*
7411 inline functions.
7412 * include/wchar.h: Add __wcsto*_internal prototypes.
7413 * sysdeps/generic/inttypes.h: No need to protect the declaration
7414 of the __strto*_internal and __wcsto*_internal members here.
7415
497af0cb
UD
7416 * rt/mqueue.h: Change const to __const and add nonnull attributes.
7417
d17a8cf0
RM
74182007-08-02 Roland McGrath <roland@redhat.com>
7419
7420 * posix/Makefile ($(inst_libexecdir)/getconf): Make hard links to
7421 $(inst_bindir)/getconf if possible.
7422
7423 * posix/Makefile ($(objpfx)getconf.speclist): New target.
7424 (generated): Add it.
7425 ($(inst_libexecdir)/getconf): Use it.
7426
0abf17de
UD
74272007-08-01 Ulrich Drepper <drepper@redhat.com>
7428
7429 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Using
7430 /proc is faster and sufficient. /sys is still needed for
7431 __get_nprocs_conf.
7432
5e0923ab
UD
74332007-08-01 Jakub Jelinek <jakub@redhat.com>
7434
7435 * sysdeps/unix/sysv/linux/i386/syscalls.list (fallocate): Add fallocate
7436 syscall as __fallocate64.
7437 * sysdeps/unix/sysv/linux/i386/posix_fallocate.c: New file.
7438 * sysdeps/unix/sysv/linux/i386/posix_fallocate64.c: New file.
7439
1475e201
UD
74402007-07-30 Jakub Jelinek <jakub@redhat.com>
7441
7442 * stdlib/tst-strtod2.c (do_test): Use %tu in fmt string for ptrdiff_t
7443 value.
7444
7445 * stdio-common/tst-fmemopen2.c (do_test): Avoid fmt string warning
7446 if off_t is different rank from size_t.
7447
7448 * sysdeps/generic/unwind-dw2.c (extract_cie_info, execute_cfa_program,
7449 uw_frame_state_for): Avoid type punning warnings.
7450 * sysdeps/generic/unwind-dw2-fde-glibc.c
7451 (_Unwind_IteratePhdrCallback): Likewise.
7452 * sysdeps/generic/unwind-dw2-fde.c (_Unwind_Find_FDE): Likewise.
7453 (binary_search_single_encoding_fdes, binary_search_mixed_encoding_fdes,
7454 get_cie_encoding, linear_search_fdes): Don't mix char and unsigned char
7455 pointers.
7456
e076bece
UD
74572007-07-31 Ulrich Drepper <drepper@redhat.com>
7458
9506149a
UD
7459 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs_conf): Count
7460 total processors using sysfs.
7461 (__get_nprocs): Use sysfs to determine which processors are online.
e076bece 7462
bbeaaa84
JJ
74632007-07-31 Jakub Jelinek <jakub@redhat.com>
7464
09881398
JJ
7465 * sysdeps/unix/sysv/linux/posix_fallocate.c (posix_fallocate): Fix
7466 syscall arguments count.
7467
bbeaaa84
JJ
7468 * stdio-common/tfformat.c (sprint_doubles): Add 12 new tests.
7469
087ef75f
RM
74702007-07-30 Roland McGrath <roland@redhat.com>
7471
7472 * manual/libc.texinfo: Update copyrights, formatting magic, and
7473 @dircategory. From Karl Berry <karl@freefriends.org>.
7474
44f08a6e
UD
74752007-07-29 Ulrich Drepper <drepper@redhat.com>
7476
eafaae72
UD
7477 [BZ #4860]
7478 * io/Makefile (headers): Add bits/fcntl2.h.
7479
c5705565
UD
7480 * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_ZERO_S): Optimize
7481 using gcc builtin.
7482 (__CPU_EQUAL_S): Likewise.
7483
44f08a6e
UD
7484 * posix/Makefile (routines): Add sched_cpualloc and sched_cpufree.
7485 (tests): Add tst-cpuset.
7486 * posix/sched_cpualloc.c: New file.
7487 * posix/sched_cpufree.c: New file.
7488 * posix/tst-cpuset.c: New file.
7489 * posix/Versions: Export __sched_cpualloc and __sched_cpufree for
7490 GLIBC_2.7.
7491 * sysdeps/unix/sysv/linux/bits/sched.h: Define __CPU_*_S macros.
7492 * posix/sched.h: Define old CPU_* macros in temers of __CPU_*_S
7493 macros. Define CPU_*_S macros.
7494
8f5e1400
UD
74952007-07-28 Ulrich Drepper <drepper@redhat.com>
7496
5b74caf6
UD
7497 * posix/getconf.c (vars): Add missing _SC_LEVEL4_CACHE_LINESIZE
7498 entry.
7499
a26d01bb 7500 [BZ #4858]
8f5e1400
UD
7501 * stdio-common/printf_fp.c (___printf_fp): Fix special case of
7502 #.0g and value rounded to 1.0.
7503 * stdio-common/tfformat.c (sprint_doubles): Add two new tests.
7504
085a4412
UD
75052007-07-26 Jakub Jelinek <jakub@redhat.com>
7506
cedb4109
UD
7507 * locale/programs/ld-monetary.c (monetary_finish): Avoid range check
7508 for int_frac_digits and frac_digits.
7509
7510 * login/logout.c (logout): Avoid aliasing violation.
7511 * login/logwtmp.c (logwtmp): Likewise.
7512
7513 * libio/genops.c (_IO_un_link): Avoid aliasing violation.
7514
9d9febc7
UD
7515 * nscd/selinux.c (preserve_capabilities): Initialize new_caps
7516 to avoid warning.
7517 * iconv/gconv_open.c (__gconv_open): Initialize ptr to avoid
7518 warning.
7519 * nis/nis_subr.c (nis_getnames): Initialize saveptr to avoid
7520 warning.
7521 * resolv/inet_ntop.c (inet_ntop6): Initialize best.len and cur.len
7522 to avoid warnings.
7523
701666b7
UD
7524 * nss/nsswitch.c (__nss_lookup_function): Don't cast &ni->known to
7525 void **.
7526 * nss/nsswitch.h (service_user): Use void * type for KNOWN field.
7527
7528 * nss/nss_files/files-hosts.c (LINE_PARSER): Cast host_addr to
7529 char * to avoid warning.
7530 * nis/nss_nis/nis-hosts.c (LINE_PARSER): Likewise.
7531
7532 * timezone/Makefile (CFLAGS-zdump.c): Add -fwrapv.
7533
7534 * locale/programs/ld-ctype.c (ctype_finish, set_class_defaults,
7535 allocate_arrays): Cast second argument to charmap_find_symbol
7536 to char * to avoid warnings.
7537
7538 * locale/programs/repertoire.c (repertoire_new_char): Change
7539 from_nr, to_nr and cnt to unsigned long, adjust printf format
7540 string.
7541
7542 * locale/programs/ld-collate.c (insert_value, handle_ellipsis):
7543 Cast second argument to new_element to char * to avoid warnings.
7544
7545 * locale/weightwc.h (findidx): Cast &extra[-i] to const int32_t *.
7546
7547 * intl/gettextP.h (struct loaded_domain): Change plural to const
7548 struct expression *.
7549 * intl/plural-eval.c (plural_eval): Change first argument to
7550 const struct expression *.
7551 * intl/plural-exp.c (EXTRACT_PLURAL_EXPRESSION): Change first
7552 argument to const struct expression **.
7553 * intl/plural-exp.h (EXTRACT_PLURAL_EXPRESSION, plural_eval): Adjust
7554 prototypes.
7555 * intl/loadmsgcat (_nl_unload_domain): Cast away const
7556 in call to __gettext_free_exp.
7557
7558 * posix/fnmatch.c (fnmatch): Rearrange code to avoid maybe
7559 unitialized wstring/wpattern var warnings.
7560
7561 * posix/runtests.c (struct a_test): Make data field const char *.
7562
7563 * stdio-common/tst-sprintf2.c (main): Don't declere u, v and buf
7564 vars if not LDBL_MANT_DIG >= 106.
7565
7566 * stdio-common/Makefile (CFLAGS-vfwprintf.c): Add -Wno-unitialized.
7567
7568 * stdio-common/vfprintf.c (vfprintf): Cast first arugment to
7569 __find_specmb to avoid warning.
7570
7571 * rt/tst-mqueue1.c (do_one_test): Add casts to avoid warnings.
7572
7573 * debug/test-strcpy_chk.c (do_tests, do_random_tests): Add casts
7574 to avoid warnings.
7575
7576 * sysdeps/ieee754/ldbl-96/s_roundl.c (huge): Add L suffix to
7577 initializer.
7578
7579 * sysdeps/unix/clock_gettime.c (clock_gettime): Only define
7580 tv var when it will be actually used.
7581
7582 * sunrpc/rpc_cmsg.c (xdr_callmsg): Cast IXDR_PUT_* to void
7583 to avoid warnings.
7584
085a4412
UD
7585 * iconvdata/gbk.c (BODY): Make buf and cp char instead of unsigned
7586 char array resp. pointer.
7587 * iconvdata/iso-2022-kr.c (BODY): Make buf unsigned char instead of
7588 char array.
7589 * iconvdata/cns11643.h (cns11643_to_ucs4): Change first argument
7590 to const unsigned char **.
7591 (ucs4_to_cns11643): Change second argument to unsigned char *.
7592 * iconvdata/euc-tw.c (BODY): Change endp type to
7593 const unsigned char *.
7594 * iconvdata/iso-ir-165.h (ucs4_to_isoir165): Change second argument
7595 to unsigned char *.
7596 * iconvdata/ibm1008_420.c (LOOP_NEED_FLAGS): Don't define.
7597 * iconvdata/iso-2022-cn.c (BODY): Change buf to unsigned char array.
7598 * iconvdata/iso-2022-cn-ext.c (BODY): Change buf, tmpbuf, tmp
7599 types to unsigned char pointers/arrays instead of char.
7600 * iconvdata/jis0201.h (ucs4_to_jisx0201): Change second argument
7601 to unsigned char *.
7602 * iconvdata/jis0208.h (ucs4_to_jisx0208): Likewise.
7603 * iconvdata/jis0212.h: Include assert.h.
7604 (ucs4_to_jisx0212): Change second argument to unsigned char *.
7605 assert that if cp[0] is not '\0', cp[1] is not '\0' either instead
7606 of trying to handle that.
7607 * iconvdata/euc-kr.c (euckr_from_ucs4): Initialize also cp[1] to
7608 shut up a warning.
7609 * iconvdata/euc-jp-ms.c (from_ucs4_lat1, from_ucs4_greek,
7610 from_ucs4_cjk, from_ucs4_cjkcpt, from_ucs4_extra): Change type to
7611 two dimensional const unsigned char arrays.
7612 (BODY): Cast "" to (const unsigned char *) for assignment to cp.
7613 Initialize endp to inptr to shut up a warning.
7614
fa69dc9c
UD
76152007-07-20 Jakub Jelinek <jakub@redhat.com>
7616
ae1ad762
UD
7617 [BZ #4772]
7618 * time/strptime_l.c (__strptime_internal): Silently ignore
7619 strftime modifiers and field width in recursive calls.
7620
fa69dc9c
UD
7621 * include/time.h (enum ptime_locale_status): Remove.
7622 (__strptime_internal): Remove decided and era_cnt arguments,
7623 add statep argument.
7624 * time/strptime_l.c (__strptime_internal): Remove decided
7625 and era_cnt arguments, add statep argument. Don't recompute
7626 any fields in recursive calls, only update caller's tm
7627 and state, if recursive call fails, don't change tm nor
7628 any state.
7629 (get_alt_number): Adjust.
7630 (recursive): Adjust caller.
7631 (strptime): Likewise.
7632 * time/strptime.c (strptime): Likewise.
7633
7b503bcc
UD
76342007-07-19 Jakub Jelinek <jakub@redhat.com>
7635
7636 * iconv/gconv_int.h (__GCONV_NULCONV): New internal only error code.
7637 * iconv/gconv_cache.c (__gconv_lookup_cache): Return __GCONV_NULCONV
7638 if from and to charsets are the same.
7639 * iconv/gconv_db.c (__gconv_find_transform): Likewise.
7640 * intl/dcigettext.c (_nl_find_msg): Return NULL even if __gconv_open
7641 returns __GCONV_NOCONV, but not for __GCONV_NULCONV.
7642
76432007-07-17 Jakub Jelinek <jakub@redhat.com>
7644
7645 * wcsmbs/wchar.h: Only define wint_t if __need_wint_t.
7646 Don't define wint_t when __need_mbstate_t unless it
7647 is necessary.
7648 (__mbstate_t): Use __WINT_TYPE__ rather than wint_t
7649 in the typedef if possible.
7650 * wctype/wctype.h (wint_t): Define by including
7651 wchar.h with __need_wint_t instead of including stddef.h
7652 with __need_wint_t and as fallback definining it ourselves.
7653 * iconv/gconv.h (__need_wint_t): Define before including
7654 wchar.h.
7655 * sysdeps/gnu/_G_config.h: Don't include gconv.h if not _LIBC
7656 or _GLIBCPP_USE_WCHAR_T.
7657 (__need_wchar_t): Don't define
7658 if not _LIBC or _GLIBCPP_USE_WCHAR_T.
7659 (__need_wint_t): Don't define before including stddef.h,
7660 define before including wchar.h only if _LIBC or
7661 _GLIBCPP_USE_WCHAR_T.
7662 (_G_iconv_t): Don't define if not _LIBC or _GLIBCPP_USE_WCHAR_T.
7663 * sysdeps/mach/hurd/_G_config.h: Likewise.
7664 * sysdeps/generic/_G_config.h: Likewise.
7665 * libio/libio.h (__wunderflow, __wuflow, __woverflow): Only
7666 prototype if _LIBC or _GLIBCPP_USE_WCHAR_T.
7667 (_IO_getwc_unlocked, _IO_putwc_unlocked): Only define
7668 if _LIBC or _GLIBCPP_USE_WCHAR_T.
7669
a95a608f
UD
76702007-07-28 Ulrich Drepper <drepper@redhat.com>
7671
7672 * sysdeps/posix/posix_fallocate64.c: Undefine
7673 __posix_fallocate64_l64 before alias handling.
7674 * sysdeps/unix/sysv/linux/posix_fallocate.c: New file.
7675 * sysdeps/unix/sysv/linux/posix_fallocate64.c: New file.
7676 * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c: New file.
7677 * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate64.c: New file.
7678
7679 * io/tst-posix_fallocate.c: Include <fcntl.h>.
7680
76812007-07-23 Jakub Jelinek <jakub@redhat.com>
7682
7683 * locale/programs/ld-collate.c (atwc): New variable.
7684 (add_to_tablewc): New toplevel function, moved from collate_output.
7685 (collate_output): Remove add_to_tablewc nested function.
7686
7687 * iconv/iconvconfig.c (hash_table, hash_size): New toplevel vars.
7688 (name_insert): New function.
7689 (write_output): Remove hash_table and hash_size vars and name_insert
7690 nested function.
7691
80d4c3b0
RM
76922007-07-24 Roland McGrath <roland@redhat.com>
7693
7694 * Makerules (install-others-programs-nosubdir): New target.
7695 (install-no-libc.a-nosubdir): Depend on it.
7696
7697 * iconv/Makefile (install-others-programs): Set this instead of
7698 install-others.
7699 * login/Makefile (install-others-programs): Likewise.
7700 * posix/Makefile (install-others-programs): Likewise.
7701
7702 * Makerules (install-no-libc.a-nosubdir): Clean up conditional
7703 dependencies.
7704
c1bf9f14
UD
77052007-07-23 Ulrich Drepper <drepper@redhat.com>
7706
7707 * io/Makefile (tests): Add tst-posix_fallocate.
7708 * io/tst-posix_fallocate.c: New file.
7709
7710 * sysdeps/unix/sysv/linux/kernel-features.h: Define
7711 __ASSUME_FALLOCATE.
7712
2320270c
RM
77132007-07-22 Roland McGrath <roland@frob.com>
7714
3dadfa7e
RM
7715 * hurd/getdport.c: Add missing copyright year update.
7716
2320270c
RM
7717 * sysdeps/mach/hurd/bits/fcntl.h [__USE_GNU] (O_CLOEXEC): New macro.
7718 * hurd/port2fd.c (_hurd_port2fd): Implement O_CLOEXEC.
7719
cc783763
UD
77202007-07-22 Ulrich Drepper <drepper@redhat.com>
7721
c942388d
UD
7722 * login/utmp_file.c (setutent_file): Use O_CLOEXEC if possible.
7723
cc783763
UD
7724 * libio/fileops.c (_IO_new_file_fopen): Recognize 'e' flag and set
7725 O_CLOEXEC is needed.
7726 * nis/nss_compat/compat-grp.c: Use 'e' flag when opening file.
7727 Avoid additional fcntl to set O_CLOEXEC if not needed.
7728 * nis/nss_compat/compat-initgroups.c: Likewise.
7729 * nis/nss_compat/compat-pwd.c: Likewise.
7730 * nis/nss_compat/compat-spwd.c: Likewise.
7731
610903b0
RM
77322007-07-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
7733
3dadfa7e 7734 [BZ #3665]
5c3d7832
RM
7735 * manual/errno.texi: Change ECANCELED value to 119.
7736
3dadfa7e 7737 [BZ #4610]
610903b0
RM
7738 * mach/lock-intern.h: Include <sys/cdefs.h>.
7739
3dadfa7e 7740 [BZ #4178]
610903b0
RM
7741 * sysdeps/mach/hurd/sigaction.c (__sigaction): Check ACT != NULL before
7742 reading A.
7743
3dadfa7e
RM
7744 [BZ #4126]
7745 * sysdeps/mach/hurd/sigsuspend.c (sigsuspend_not_cancel): Define alias
7746 to __sigsuspend.
610903b0
RM
7747
7748 * sysdeps/mach/i386/sysdep.h: Include <dl-sysdep.h> and <tls.h>.
7749
77502006-06-13 Thomas Schwinge <tschwinge@gnu.org>
7751
7752 * sysdeps/mach/hurd/tls.h: Change `ASSEMBLER' conditional to
7753 `__ASSEMBLER__'.
7754 * sysdeps/mach/hurd/i386/tls.h: Likewise.
7755
acf79996
UD
77562007-07-21 Ulrich Drepper <drepper@redhat.com>
7757
dde0763a
UD
7758 * nscd/nscd_helper.c (get_mapping): Use MSG_CMSG_CLOEXEC for
7759 descriptor received from nscd.
7760
acf79996
UD
7761 * sysdeps/unix/sysv/linux/bits/socket.h: Define MSG_CMSG_CLOEXEC.
7762
7763 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define O_CLOEXEC.
7764 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
7765 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
7766 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
7767 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
7768 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
7769
00d26929
JJ
77702007-07-20 Jakub Jelinek <jakub@redhat.com>
7771
403445d7
JJ
7772 [BZ #4816]
7773 * manual/signal.texi (Non-atomic Example): Make memory var volatile.
7774
00d26929
JJ
7775 [BZ #4813]
7776 * login/forkpty.c (forkpty): Close master and slave fds on
7777 fork failure. Patch by
7778 Mikulas Patocka <mikulas@artax.karlin.mff.cuni.cz>.
7779
087722b8
UD
77802007-07-18 Jakub Jelinek <jakub@redhat.com>
7781
7782 * include/features.h (__USE_ISOC95): New define.
7783 * wcsmbs/wchar.h (fwprintf, fwscanf, wprintf, wscanf, swprintf,
7784 swscanf, vfwprintf, vwprintf, vswprintf, fwide): Define even
7785 for -std=iso9899:199409.
7786 * CONFORMANCE: Remove comments about unsupported AMD1.
7787
b042b023
UD
77882007-07-17 Jakub Jelinek <jakub@redhat.com>
7789
7790 * sysdeps/ia64/sched_cpucount.c: New file.
7791 * sysdeps/powerpc/sched_cpucount.c: New file.
7792
8381e467
UD
7793 * sysdeps/unix/sysv/linux/bits/sched.h (__sched_cpucount): Add
7794 __BEGIN_DECLS/__END_DECLS around the prototype.
7795 * bits/sched.h (__sched_cpucount): Likewise. Make second argument
7796 pointer to const cpu_set_t.
7797
50e16f85
UD
7798 * bits/types.h: Don't include stddef.h, don't define __need_size_t.
7799 * signal/signal.h <__USE_BSD || __USE_XOPEN_EXTENDED>: Define
7800 __need_size_t and include stddef.h.
7801 * sysvipc/sys/msg.h: Likewise.
7802 * posix/sched.h: Likewise.
7803 * hurd/hurd/signal.h (__need_size_t): Define.
7804
7805 * CONFORMANCE: ctype.h and wctype.h no longer define size_t,
7806 neither does signal.h in pedantic ISO C namespaces. stdio.h
7807 no longer defines wint_t or wchar_t.
7808
b257c726
UD
7809 * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct): New function.
7810 * debug/vfwprintf_chk.c (__vfwprintf_chk): Use
7811 _IO_acquire_lock_clear_flags2 instead of _IO_acquire_lock.
7812 * debug/vprintf_chk.c (__vprintf_chk): Likewise.
7813 * debug/vwprintf_chk.c (__vwprintf_chk): Likewise.
7814 * debug/vfprintf_chk.c (__vfprintf_chk): Likewise.
7815 * debug/fwprintf_chk.c (__fwprintf_chk): Likewise.
7816 * debug/printf_chk.c (__printf_chk): Likewise.
7817 * debug/fprintf_chk.c (__fprintf_chk): Likewise.
7818 * debug/wprintf_chk.c (__wprintf_chk): Likewise.
7819
7820 * sysdeps/pthread/bits/stdio-lock.h (_IO_acquire_lock_clear_flags2):
7821 Define.
7822
d5078b9f
UD
7823 * bits/confname.h (_CS_POSIX_V6_WIDTH_RESTRICTED_ENVS): Define.
7824 * posix/getconf.c (vars): Add POSIX_V6_WIDTH_RESTRICTED_ENVS.
7825
1c3e748e
UD
78262007-07-16 Jakub Jelinek <jakub@redhat.com>
7827
7828 [BZ #4792]
7829 * stdlib/stdlib.h (realloc): Remove __attribute_malloc__.
7830 * malloc/malloc.h (realloc): Likewise.
7831
4e425301
UD
7832 * libio/iopopen.c (_IO_new_proc_open): Don't close child_std_end
7833 if one of proc_file_chain streams has that fileno.
7834 * stdio-common/Makefile (tests): Add tst-popen2.
7835 * stdio-common/tst-popen2.c: New test.
7836
2e2efe65
RM
78372007-07-14 Jakub Jelinek <jakub@redhat.com>
7838
7839 * elf/ldconfig.c: Allow GPLv2 or any later version.
7840 * elf/readlib.c: Likewise.
7841 * elf/chroot_canon.c: Likewise.
7842 * elf/cache.c: Likewise.
7843 * nscd/mem.c: Likewise.
7844 * nscd/getpwuid_r.c: Likewise.
7845 * nscd/grpcache.c: Likewise.
7846 * nscd/aicache.c: Likewise.
7847 * nscd/getsrvbynm_r.c: Likewise.
7848 * nscd/nscd.c: Likewise.
7849 * nscd/servicescache.c: Likewise.
7850 * nscd/getsrvbypt_r.c: Likewise.
7851 * nscd/initgrcache.c: Likewise.
7852 * nscd/gethstbyad_r.c: Likewise.
7853 * nscd/gethstbynm2_r.c: Likewise.
7854 * nscd/getgrnam_r.c: Likewise.
7855 * nscd/nscd_setup_thread.c: Likewise.
7856 * nscd/getpwnam_r.c: Likewise.
7857 * nscd/gai.c: Likewise.
7858 * nscd/connections.c: Likewise.
7859 * nscd/dbg_log.c: Likewise.
7860 * nscd/cache.c: Likewise.
7861 * nscd/hstcache.c: Likewise.
7862 * nscd/nscd_conf.c: Likewise.
7863 * nscd/getgrgid_r.c: Likewise.
7864 * nscd/pwdcache.c: Likewise.
7865 * catgets/gencat.c: Likewise.
7866 * locale/programs/linereader.h: Likewise.
7867 * locale/programs/locarchive.c: Likewise.
7868 * locale/programs/ld-paper.c: Likewise.
7869 * locale/programs/locfile-kw.h: Likewise.
7870 * locale/programs/ld-address.c: Likewise.
7871 * locale/programs/xmalloc.c: Likewise.
7872 * locale/programs/ld-time.c: Likewise.
7873 * locale/programs/localedef.c: Likewise.
7874 * locale/programs/simple-hash.c: Likewise.
7875 * locale/programs/xstrdup.c: Likewise.
7876 * locale/programs/ld-numeric.c: Likewise.
7877 * locale/programs/locfile-kw.gperf: Likewise.
7878 * locale/programs/ld-collate.c: Likewise.
7879 * locale/programs/charmap-kw.gperf: Likewise.
7880 * locale/programs/charmap.h: Likewise.
7881 * locale/programs/charmap-kw.h: Likewise.
7882 * locale/programs/config.h: Likewise.
7883 * locale/programs/locfile.c: Likewise.
7884 * locale/programs/ld-ctype.c: Likewise.
7885 * locale/programs/charmap.c: Likewise.
7886 * locale/programs/ld-messages.c: Likewise.
7887 * locale/programs/repertoire.h: Likewise.
7888 * locale/programs/locale.c: Likewise.
7889 * locale/programs/ld-name.c: Likewise.
7890 * locale/programs/linereader.c: Likewise.
7891 * locale/programs/locfile.h: Likewise.
7892 * locale/programs/3level.h: Likewise.
7893 * locale/programs/ld-monetary.c: Likewise.
7894 * locale/programs/ld-measurement.c: Likewise.
7895 * locale/programs/charmap-dir.c: Likewise.
7896 * locale/programs/ld-identification.c: Likewise.
7897 * locale/programs/localedef.h: Likewise.
7898 * locale/programs/charmap-dir.h: Likewise.
7899 * locale/programs/repertoire.c: Likewise.
7900 * locale/programs/simple-hash.h: Likewise.
7901 * locale/programs/ld-telephone.c: Likewise.
7902 * locale/programs/locale-spec.c: Likewise.
7903 * locale/programs/locfile-token.h: Likewise.
7904 * posix/getconf.c: Likewise.
7905 * iconv/dummy-repertoire.c: Likewise.
7906 * iconv/iconv_charmap.c: Likewise.
7907 * iconv/iconvconfig.c: Likewise.
7908 * iconv/iconv_prog.c: Likewise.
7909 * malloc/memusagestat.c: Likewise.
7910 * sysdeps/unix/sysv/linux/nscd_setup_thread.c: Likewise.
7911
84c23a3d
RM
79122007-07-06 Kaz Kojima <kkojima@rr.iij4u.or.jp>
7913
7914 * sysdeps/sh/bsd-setjmp.S (setjmp): Use correct argument registers.
7915 * sysdeps/sh/bsd-_setjmp.S (_setjmp): Likewise.
7916 * sysdeps/unix/sysv/linux/sh/clone.S (__clone): Do correct sanity
7917 check for the first argument.
7918
1c298d08
UD
79192007-07-12 Jakub Jelinek <jakub@redhat.com>
7920
7921 [BZ #4775]
7922 * math/tgmath.h (__tgmath_real_type_sub): Formatting.
7923 (__tgmath_real_type): Fix if expr is const int or other const
7924 qualified integral type.
7925 (__TGMATH_UNARY_REAL_ONLY): Rewritten to avoid using statement
7926 expressions and handle const qualified arguments.
7927 (__TGMATH_BINARY_FIRST_REAL_ONLY, __TGMATH_UNARY_REAL_IMAG,
7928 __TGMATH_UNARY_REAL_IMAG_RET_REAL): Likewise.
7929 (__TGMATH_UNARY_REAL_RET_ONLY): Rewritten to avoid using
7930 statement expressions.
7931 (__TGMATH_BINARY_REAL_ONLY, __TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY,
7932 __TGMATH_TERNARY_REAL_ONLY, __TGMATH_BINARY_REAL_IMAG): Likewise.
7933 (__TGMATH_UNARY_IMAG): Define.
7934 (conj, cproj): Use __TGMATH_UNARY_IMAG macro.
7935 * math/Makefile (tests): Add test-tgmath2.
7936 (CFLAGS-test-tgmath2.c): Add.
7937 * math/test-tgmath.c (fy, dy, ly, fz, dz, lz, count_cdouble,
7938 count_cfloat, count_cldouble): New variables.
7939 (NCCALLS): Define.
7940 (main): Check number of complex calls as well.
7941 (F(compile_test)): Add complex tests and tests with const qualified
7942 arguments.
7943 (y, z, ccount): Define.
7944 (F(cacos), F(casin), F(catan), F(ccos), F(csin), F(ctan), F(cacosh),
7945 F(casinh), F(catanh), F(ccosh), F(csinh), F(ctanh), F(cexp), F(clog),
7946 F(csqrt), F(cpow), F(cabs), F(carg), F(creal), F(cimag), F(conj),
7947 F(cproj)): New functions.
7948 * math/test-tgmath2.c: New test.
7949
79502007-07-11 Jakub Jelinek <jakub@redhat.com>
7951
7952 [BZ #4776]
7953 * elf/dl-load.c (_dl_rtld_di_serinfo): Output / in LD_LIBRARY_PATH,
7954 RPATH etc. as "/" rather than "", don't segfault on empty paths,
7955 instead output ".".
7956 * dlfcn/Makefile (distribute): Add glreflib3.c.
7957 (module-names): Add glreflib3.
7958 ($(objpfx)tst-dlinfo.out): Depend on glreflib3.so rather than
7959 glreflib1.so.
7960 (LDFLAGS_glreflib3.so): New.
7961 * dlfcn/tst-dlinfo.c (do_test): Load glreflib3.so instead of
7962 glreflib1.so.
7963 * dlfcn/glreflib3.c: New file.
7964
7965 * intl/finddomain.c (_nl_find_domain): If _nl_explode_name
7966 returned -1, return NULL.
7967 * intl/explodename.c (_nl_explode_name): Return -1 if
7968 _nl_normalize_codeset failed.
7969
a88f47a7
UD
79702007-07-07 Steven Munroe <sjmunroe@us.ibm.com>
7971
7972 * sysdeps/powerpc/powerpc32/power6/memset.S: Update comments.
7973 Specify .machine power6 to get ISA-V2.0 branch hints. Unroll loops
7974 and avoid branch misspredicts for > 31 bytes memset case.
7975 * sysdeps/powerpc/powerpc64/power6/memset.S: Likewise.
7976 Remove toc ref to __cache_line_size.
7977
7978 * sysdeps/powerpc/powerpc32/power4/memcmp.S: Specify .machine power4
7979 to get ISA-V2.0 branch hints.
7980 * sysdeps/powerpc/powerpc32/power4/memcpy.S: Likewise
7981 * sysdeps/powerpc/powerpc32/power4/memset.S: Likewise
7982 * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
7983 * sysdeps/powerpc/powerpc64/power4/memcmp.S: Likewise.
7984 * sysdeps/powerpc/powerpc64/power4/memcpy.S: Likewise.
7985 * sysdeps/powerpc/powerpc64/power4/memset.S: Likewise.
7986 Remove toc ref to __cache_line_size.
7987
7988 * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S:
7989 Include math_ldbl_opt.h.
7990
f98c2d06
UD
79912007-07-10 Ulrich Drepper <drepper@redhat.com>
7992
7993 [BZ #4773]
7994 * time/strptime_l.c (__strptime_internal): Implement greedy
7995 matching of weekday and month names.
7996
cec5991f
RM
79972007-07-09 Roland McGrath <roland@redhat.com>
7998
7999 * elf/elf.h (NT_GNU_ABI_TAG): New macro.
8000 (ELF_NOTE_ABI): Use it.
8001 (NT_GNU_HWCAP, NT_GNU_BUILD_ID): New macros.
8002
8c1dcd26
UD
80032007-07-09 Ulrich Drepper <drepper@redhat.com>
8004
8005 * sysdeps/x86_64/cacheinfo.c (intel_02_known): Add new entries.
8006 * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
8007
c2c7bd3f
UD
80082007-07-07 Ulrich Drepper <drepper@redhat.com>
8009
8010 [BZ #4745]
0923a2c8
UD
8011 * stdio-common/vfscanf.c (_IO_vfscanf): Add additional test for EOF
8012 in loop to look for conversion specifier to avoid testing of
8013 wrong errno value.
8014 * stdio-common/Makefile (tests): Add bug18, bug18a, bug19, bug19a.
c2c7bd3f 8015 * stdio-common/bug18.c: New file.
0923a2c8
UD
8016 * stdio-common/bug18a.c: New file.
8017 * stdio-common/bug19.c: New file.
8018 * stdio-common/bug19a.c: New file.
c2c7bd3f 8019
4facf4af
RM
80202007-07-05 Mike Frysinger <vapier@gentoo.org>
8021
8022 * Makeconfig ($(common-objpfx)gnu/lib-names.stmp): Use LC_ALL=C when
8023 running awk script.
8024
1311e86e
UD
80252007-07-01 Jakub Jelinek <jakub@redhat.com>
8026
8027 * elf/dl-sysdep.c (_dl_important_hwcaps): Add integer overflow check.
8028 * elf/dl-minimal.c (__libc_memalign): Likewise. Handle malloc (0).
8029 Return NULL if mmap failed instead of asserting it does not.
8030 (calloc): Check for integer overflow.
8031
8032 * elf/dl-minimal.c (__strtoul_internal): Fix parsing of numbers bigger
8033 than LONG_MAX / 10.
8034
57c9179c
UD
80352007-07-03 Jakub Jelinek <jakub@redhat.com>
8036
8037 [BZ #4702]
8038 * nis/nss-default.c: Include errno.h.
8039 (init): Preserve errno.
8040
d0b283a8
UD
80412007-07-02 Ulrich Drepper <drepper@redhat.com>
8042
8043 * sysdeps/unix/sysv/linux/bits/socket.h (PF_UNIX): Update comment.
8044
34e0bbaf
UD
80452007-06-30 Ulrich Drepper <drepper@redhat.com>
8046
8047 * sysdeps/unix/sysv/linux/bits/socket.h: Add PF_RXRPC and AF_RXRPC.
8048
80492007-06-29 Martin Schwidefsky <schwidefsky@de.ibm.com>
8050
8051 * sysdeps/unix/sysv/linux/bits/socket.h: Add PF_IUCV and AF_IUCV.
8052
34e0bbaf 80532007-06-29 Martin Schwidefsky <schwidefsky@de.ibm.com>
33516494
UD
8054
8055 * sysdeps/s390/dl-procinfo.c: New file.
8056 * sysdeps/s390/dl-procinfo.h: New file.
8057 * sysdeps/unix/sysv/linux/s390/dl-procinfo.h: New file.
8058
0e508a6e
UD
80592007-06-29 Jakub Jelinek <jakub@redhat.com>
8060
8061 * elf/dl-load.c (open_verify): Find .note.ABI-tag notes even
8062 in PT_NOTE segments with multiple notes.
8063 * elf/readelflib.c (process_elf_file): Likewise.
8064
e22c61fb
UD
80652007-06-22 Ulrich Drepper <drepper@redhat.com>
8066
8067 * nis/nis_domain_of.c (__nis_domain_of): Make the code a bit more
8068 ISO C compliant.
8069
e4eb675d
UD
80702007-06-19 Ulrich Drepper <drepper@redhat.com>
8071
8072 * elf/dl-close.c (free_mem): Free _dl_scope_free_list.
8073
80742007-06-13 Jakub Jelinek <jakub@redhat.com>
8075
8076 * include/link.h: Don't include rtld-lowlevel.h.
8077 (struct link_map): Remove l_scope_lock.
8078 * sysdeps/generic/ldsodefs.h: Don't include rtld-lowlevel.h.
8079 (_dl_scope_free_list): New field (variable) in _rtld_global.
8080 (DL_LOOKUP_SCOPE_LOCK): Remove.
8081 (_dl_scope_free): New prototype.
8082 * elf/dl-runtime.c (_dl_fixup): Don't use __rtld_mrlock_*lock.
8083 Don't pass DL_LOOKUP_SCOPE_LOCK to _dl_lookup_symbol_x.
8084 (_dl_profile_fixup): Likewise.
8085 * elf/dl-sym.c (do_sym): Likewise. Use wrapped _dl_lookup_symbol_x
8086 whenever !RTLD_SINGLE_THREAD_P, use THREAD_GSCOPE_SET_FLAG and
8087 THREAD_GSCOPE_RESET_FLAG around it.
8088 * elf/dl-close.c (_dl_close_worker): Don't use
8089 __rtld_mrlock_{change,done}. Call _dl_scope_free on the old
8090 scope. Make sure THREAD_GSCOPE_WAIT () happens if any old
8091 scopes were queued or if l_scope_mem has been abandoned.
8092 * elf/dl-open.c (_dl_scope_free): New function.
8093 (dl_open_worker): Use it. Don't use __rtld_mrlock_{change,done}.
8094 * elf/dl-support.c (_dl_scope_free_list): New variable.
8095 * elf/dl-lookup.c (add_dependency): Remove flags argument.
8096 Remove DL_LOOKUP_SCOPE_LOCK handling.
8097 (_dl_lookup_symbol_x): Adjust caller. Remove DL_LOOKUP_SCOPE_LOCK
8098 handling.
8099 * elf/dl-object.c (_dl_new_object): Don't use
8100 __rtld_mrlock_initialize.
8101
9be09e06
UD
81022007-06-19 Ulrich Drepper <drepper@redhat.com>
8103
8104 * sysdeps/generic/ldsodefs.h (rtld_global): Reorder some elements
8105 to fill in holes
8106 (rtld_global_ro): Likewise.
8107
81082007-06-18 Jakub Jelinek <jakub@redhat.com>
8109
8110 * elf/dl-addr.c (_dl_addr): Skip PT_LOAD checking if l_contiguous.
8111 Move PT_LOAD checking to...
8112 (_dl_addr_inside_object): ... here, new function.
8113 * elf/dl-sym.c (do_sym): If not l_contiguous,
8114 call _dl_addr_inside_object.
8115 * elf/dl-iteratephdr.c (__dl_iterate_phdr): Likewise.
8116 * dlfcn/dlinfo.c (dlinfo_doit): Likewise.
8117 * elf/dl-open.c (dl_open_worker): Likewise.
8118 (_dl_addr_inside_object): New function if IS_IN_rtld.
8119 * elf/dl-load.c (_dl_map_object_from_fd): Set l_contiguous if no
8120 holes are present or are PROT_NONE protected.
8121 * include/link.h (struct link_map): Add l_contiguous field.
8122 * sysdeps/generic/ldsodefs.h (_dl_addr_inside_object): New prototype.
8123
ae1ad3ae 81242007-06-18 Jakub Jelinek <jakub@redhat.com>
f00d47a3
AS
8125 Tomas Janousek <tjanouse@redhat.com>
8126 Ulrich Drepper <drepper@redhat.com>
ae1ad3ae
UD
8127
8128 [BZ #4647]
8129 * resolv/res_send.c (send_dg): Remove socket_pf. Use ipv6_unavail
8130 member in __res_state, only convaddr4to6 if nssocks[ns] is a PF_INET6
8131 socket.
8132 * resolv/resolv.h (__res_state): Add ipv6_unavail member. Make
8133 unused member a bitmap.
8134 * resolv/res_init.c (__res_vinit): Reset ipv6_unavail if IPv6
8135 servers are configured.
8136
3abee0b7
UD
81372007-06-18 Jakub Jelinek <jakub@redhat.com>
8138
8139 * elf/rtld.c (dl_main): Don't call init_tls more than once.
8140
89074592
UD
81412007-06-17 Andreas Schwab <schwab@suse.de>
8142
8143 * sysdeps/generic/initfini.c: Tell gcc about the nonstandard sections.
8144
b26e274d
AJ
81452007-06-16 Andreas Jaeger <aj@suse.de>
8146
8147 [BZ #4125]
8148 * sysdeps/unix/sysv/linux/sys/ptrace.h
8149 (PTRACE_O_TRACESYSGOOD, PTRACE_O_TRACEFORK,
8150 PTRACE_O_TRACEVFORK, PTRACE_O_TRACECLONE, PTRACE_O_TRACEEXEC,
89074592 8151 PTRACE_O_TRACEVFORKDONE, PTRACE_O_TRACEEXIT, PTRACE_O_MASK,
b26e274d
AJ
8152 PTRACE_EVENT_FORK, PTRACE_EVENT_VFORK, PTRACE_EVENT_CLONE,
8153 PTRACE_EVENT_EXEC, PTRACE_EVENT_VFORK_DONE, PTRACE_EVENT_EXIT):
8154 Define.
8155 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
8156 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
8157 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
8158 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
8159
e0d4a4e5
UD
81602007-06-16 Ulrich Drepper <drepper@redhat.com>
8161
8162 [BZ #4599]
8163 * sysdeps/unix/sysv/linux/check_pf.c (make_request): When
8164 determining whether there are IPv4/IPv6 addresses, ignore loopback
8165 addresses.
8166
ae8e81f5
JJ
81672007-06-14 Uros Bizjak <ubizjak@gmail.com>
8168
8169 * soft-fp/soft-fp.h (CMPtype): Define to "int" if undefined.
8170 * soft-fp/eqdf2.c (__eqdf2): Use CMPtype instead of int
8171 as the return type. Change type of "r" variable to CMPtype.
8172 * soft-fp/eqsf2.c (__eqsf2): Likewise.
8173 * soft-fp/eqtf2.c (__eqtf2): Likewise.
8174 * soft-fp/gedf2.c (__gedf2): Likewise.
8175 * soft-fp/gesf2.c (__gesf2): Likewise.
8176 * soft-fp/getf2.c (__getf2): Likewise.
8177 * soft-fp/ledf2.c (__ledf2): Likewise.
8178 * soft-fp/lesf2.c (__lesf2): Likewise.
8179 * soft-fp/letf2.c (__letf2): Likewise.
8180 * soft-fp/unorddf2 (__unorddf2): Likewise.
8181 * soft-fp/unordsf2 (__unordsf2): Likewise.
8182 * soft-fp/unordtf2 (__unordtf2): Likewise.
8183
90cd2413
UD
81842007-06-09 Ulrich Drepper <drepper@redhat.com>
8185
8186 * elf/do-lookup.h (do_lookup_x): Read r_nlist before r_list and
8187 make sure gcc doesn't mess around with this.
8188
3c457089
UD
81892007-06-08 Ulrich Drepper <drepper@redhat.com>
8190
8191 * elf/dl-lookup.c (_dl_lookup_symbol_x): Remove use of r_nlist.
8192
e8b6b64d
UD
81932007-06-08 Jakub Jelinek <jakub@redhat.com>
8194
8195 * elf/dl-close.c (_dl_close_worker): Remove all to be removed
8196 libraries from the global scope at once and call THREAD_GSCOPE_WAIT
8197 at most once per _dl_close_worker.
8198
36dffb22
UD
81992007-06-08 Ulrich Drepper <drepper@redhat.com>
8200
755db8c5
UD
8201 * sysdeps/unix/sysv/linux/bits/sched.h: Make second parameter of
8202 __sched_cpucount as const.
8203 * posix/sched_cpucount.c: Adjust.
8204
36dffb22
UD
8205 * posix/sched_cpucount.c (__sched_cpucount): Allow using special
8206 instruction for counting bits.
8207 * sysdeps/x86_64/sched_cpucount.c: New file.
8208
26f56c1c
UD
82092007-06-07 Ulrich Drepper <drepper@redhat.com>
8210
8211 * configure.in: Avoid variable named BASH.
e967d385 8212 * config.make.in: Likewise.
26f56c1c 8213 Patch in part by Mike Frysinger.
835abc5c 8214
26f56c1c 82152007-06-06 Jakub Jelinek <jakub@redhat.com>
47779a7d
JJ
8216
8217 [BZ #4586]
835abc5c
UD
8218 * sysdeps/i386/ldbl2mpn.c (__mpn_extract_long_double): Treat
8219 pseudo-zeros as zero.
8220 * sysdeps/x86_64/ldbl2mpn.c: New file.
8221 * sysdeps/ia64/ldbl2mpn.c: New file.
8222
7e3706ea
UD
82232007-06-04 Jakub Jelinek <jakub@redhat.com>
8224
8225 * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (nextafterl): Remove
8226 unused ily variable. Fix nextafterl on +-__LDBL_MAX__ and +-Inf.
8227 Remove unreachable code at the end.
8228
82292007-06-01 Steven Munroe <sjmunroe@us.ibm.com>
8230
8231 * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c: Correct description of
8232 ldbl-128ibm in comment.
8233 (fpclassifyl): Correct classification of denormals.
8234 * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (nextafterl): Correct
8235 return value for MIN denormal. Rewrite using long double math too
8236 correctly handle denormals and canonicalize the results.
8237
82382007-06-05 Jakub Jelinek <jakub@redhat.com>
8239
8240 * sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c
8241 (__mpn_construct_long_double): Fix conversion where result ought
8242 to be smaller than __LDBL_MIN__, or the low double should be
8243 denormal. Fix decision where to negate low double - honor round
8244 to even rules.
8245 * stdio-common/tst-sprintf2.c: Include string.h.
8246 (COMPARE_LDBL): Define.
8247 (TEST): Also test whether a string hexadecimal float representation
8248 can be parsed back to the number.
8249 (main): Add a couple of further tests.
8250
43b76828
UD
82512007-06-04 Jakub Jelinek <jakub@redhat.com>
8252
8253 * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c
8254 (PRINT_FPHEX_LONG_DOUBLE): Fix printing numbers where lower double
8255 is non-zero, but smaller than 2 * __DBL_MIN__.
8256 * stdio-common/tst-sprintf2.c: New test.
8257 * stdio-common/Makefile (tests): Add tst-sprintf2.
8258
8259 * math/test-misc.c (main): Don't run last batch of tests with
8260 IBM long double format.
8261
04067002
UD
82622007-05-31 Steven Munroe <sjmunroe@us.ibm.com>
8263
8264 * sysdeps/powerpc/powerpc32/970/fpu/Implies: New file.
8265 * sysdeps/powerpc/powerpc32/power5/fpu/Implies: New file.
8266 * sysdeps/powerpc/powerpc32/power5+/fpu/Implies: New file.
8267 * sysdeps/powerpc/powerpc32/power6/fpu/Implies: New file.
8268 * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: New file.
8269 * sysdeps/powerpc/powerpc64/970/fpu/Implies: New file.
8270 * sysdeps/powerpc/powerpc64/power5/fpu/Implies: New file.
8271 * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: New file.
8272 * sysdeps/powerpc/powerpc64/power6/fpu/Implies: New file.
8273 * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: New file.
8274 * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/fpu/Implies: New file.
8275 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/fpu/Implies:
8276 New file.
8277 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/fpu/Implies:
8278 New file.
8279 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5+/fpu/Implies:
8280 New file.
8281 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/Implies:
8282 New file.
8283 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/fpu/Implies:
8284 New file.
8285 * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/fpu/Implies: New file.
8286 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/fpu/Implies:
8287 New file.
8288 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/fpu/Implies:
8289 New file.
8290 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5+/fpu/Implies:
8291 New file.
8292 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/Implies:
8293 New file.
8294 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/fpu/Implies:
8295 New file.
8296
82972007-05-31 Steven Munroe <sjmunroe@us.ibm.com>
8298
8299 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrint.S: Move.
8300 * sysdeps/powerpc/powerpc32/power4/fpu/s_llrint.S: To here.
8301 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrintf.S: Move.
8302 * sysdeps/powerpc/powerpc32/power4/fpu/s_llrintf.S: To here.
8303 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llround.S: Move.
8304 * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: To here.
8305 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llroundf.S: Move.
8306 * sysdeps/powerpc/powerpc32/power4/fpu/s_llroundf.S: To here.
8307
83082007-05-22 Steven Munroe <sjmunroe@us.ibm.com>
8309
8310 * sysdeps/powerpc/powerpc32/power5+/fpu/s_round.S
8311 (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
8312 * sysdeps/powerpc/powerpc32/power5+/fpu/s_trunc.S
8313 (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
8314 * sysdeps/powerpc/powerpc64/power5+/fpu/s_round.S
8315 (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
8316 * sysdeps/powerpc/powerpc64/power5+/fpu/s_trunc.S
8317 (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
8318
83192007-05-21 Steven Munroe <sjmunroe@us.ibm.com>
8320
8321 * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: New file.
8322 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.c: New file.
8323 * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: New file.
8324 * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: New file.
8325
83262007-03-15 Steven Munroe <sjmunroe@us.ibm.com>
8327
8328 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrint.S
8329 [LONG_DOUBLE_COMPAT]: Add compat_symbol for llrintl@@GLIBC_2_1.
8330
83312006-02-13 Steven Munroe <sjmunroe@us.ibm.com>
8332
8333 * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S: New File
8334 * sysdeps/powerpc/powerpc32/power6/fpu/s_llrintf.S: New File
8335 * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: New File
8336 * sysdeps/powerpc/powerpc32/power6/fpu/s_llroundf.S: New File
8337
83382006-10-20 Steven Munroe <sjmunroe@us.ibm.com>
8339
8340 * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: New file.
8341 * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: New file.
8342
83432006-10-03 Steven Munroe <sjmunroe@us.ibm.com>
8344
8345 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llround.S: New file.
8346 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llroundf.S: New file.
8347
8348 * sysdeps/powerpc/powerpc32/powerpc64/fpu/Makefile: Moved.
8349 * sysdeps/powerpc/powerpc32/powerpc64/fpu/mpa.c: Likewise.
8350 * sysdeps/powerpc/powerpc32/power4/fpu/Makefile: To here.
8351 * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Likewise.
8352
83532006-09-29 Steven Munroe <sjmunroe@us.ibm.com>
8354
8355 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lrint.S: New file.
8356 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lround.S: New file.
8357 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: New file.
8358 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: New file.
8359
83602006-09-28 Steven Munroe <sjmunroe@us.ibm.com>
8361
8362 * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: New file.
8363 * sysdeps/powerpc/powerpc32/power5+/fpu/s_llroundf.S: New file.
8364 * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: New file.
8365 * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: New file.
8366 * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: New file.
8367 * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: New file.
8368
83692006-08-31 Steven Munroe <sjmunroe@us.ibm.com>
8370
8371 * sysdeps/powerpc/powerpc32/powerpc64/fpu/Makefile: New file.
8372 * sysdeps/powerpc/powerpc32/powerpc64/fpu/mpa.c: New file.
8373 * sysdeps/powerpc/powerpc64/power4/fpu/Makefile: New file.
8374 * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: New file.
8375
83762006-06-15 Steven Munroe <sjmunroe@us.ibm.com>
8377
8378 * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceil.S: New file.
8379 * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceilf.S: New file.
8380 * sysdeps/powerpc/powerpc32/power5+/fpu/s_floor.S: New file.
8381 * sysdeps/powerpc/powerpc32/power5+/fpu/s_floorf.S: New file.
8382 * sysdeps/powerpc/powerpc32/power5+/fpu/s_round.S: New file.
8383 * sysdeps/powerpc/powerpc32/power5+/fpu/s_roundf.S: New file.
8384 * sysdeps/powerpc/powerpc32/power5+/fpu/s_trunc.S: New file.
8385 * sysdeps/powerpc/powerpc32/power5+/fpu/s_truncf.S: New file.
8386 * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceil.S: New file.
8387 * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceilf.S: New file.
8388 * sysdeps/powerpc/powerpc64/power5+/fpu/s_floor.S: New file.
8389 * sysdeps/powerpc/powerpc64/power5+/fpu/s_floorf.S: New file.
8390 * sysdeps/powerpc/powerpc64/power5+/fpu/s_round.S: New file.
8391 * sysdeps/powerpc/powerpc64/power5+/fpu/s_roundf.S: New file.
8392 * sysdeps/powerpc/powerpc64/power5+/fpu/s_trunc.S: New file.
8393 * sysdeps/powerpc/powerpc64/power5+/fpu/s_truncf.S: New file.
8394
83952006-03-20 Steven Munroe <sjmunroe@us.ibm.com>
8396
8397 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrint.S: New file.
8398 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrintf.S: New file.
8399
84002007-06-01 Steven Munroe <sjmunroe@us.ibm.com>
8401
8402 * sysdeps/powerpc/powerpc32/power6/memset.S: New file.
8403 * sysdeps/powerpc/powerpc64/power6/memset.S: New file.
8404
84052007-05-31 Steven Munroe <sjmunroe@us.ibm.com>
8406
8407 * sysdeps/powerpc/powerpc32/970/Implies: New file.
8408 * sysdeps/powerpc/powerpc32/power5/Implies: New file.
8409 * sysdeps/powerpc/powerpc32/power5+/Implies: New file.
8410 * sysdeps/powerpc/powerpc32/power6/Implies: New file.
8411 * sysdeps/powerpc/powerpc32/power6x/Implies: New file.
8412 * sysdeps/powerpc/powerpc64/970/Implies: New file.
8413 * sysdeps/powerpc/powerpc64/power5/Implies: New file.
8414 * sysdeps/powerpc/powerpc64/power5+/Implies: New file.
8415 * sysdeps/powerpc/powerpc64/power6/Implies: New file.
8416 * sysdeps/powerpc/powerpc64/power6x/Implies: New file.
8417
84182007-05-21 Steven Munroe <sjmunroe@us.ibm.com>
8419
8420 * sysdeps/powerpc/powerpc32/power4/memset.S: New file
8421
84222007-03-13 Steven Munroe <sjmunroe@us.ibm.com>
8423
8424 * sysdeps/powerpc/powerpc64/memcpy.S: Improve aligned loop to minimize
8425 branch miss-predicts. Ensure that cache line crossing does not impact
8426 dispatch grouping.
8427
84282006-12-13 Steven Munroe <sjmunroe@us.ibm.com>
8429
8430 * sysdeps/powerpc/powerpc64/power4/memcopy.h: Replace with include
8431 "../../powerpc32/power4/memcopy.h".
8432 * sysdeps/powerpc/powerpc64/power4/wordcopy.c: Replace with include
8433 "../../powerpc32/power4/wordcopy.c".
8434
84352006-10-03 Steven Munroe <sjmunroe@us.ibm.com>
8436
8437 * sysdeps/powerpc/powerpc32/powerpc64/Makefile: Moved.
8438 * sysdeps/powerpc/powerpc32/powerpc64/memcopy.h: Likewise.
8439 * sysdeps/powerpc/powerpc32/powerpc64/wordcopy.c: Likewise.
8440 * sysdeps/powerpc/powerpc32/power4/Makefile: To here.
8441 * sysdeps/powerpc/powerpc32/power4/memcopy.h: Likewise.
8442 * sysdeps/powerpc/powerpc32/power4/wordcopy.c: Likewise.
8443
84442006-09-10 Steven Munroe <sjmunroe@us.ibm.com>
8445
8446 * sysdeps/powerpc/powerpc32/power6/memcpy.S: New file.
8447
84482006-08-31 Steven Munroe <sjmunroe@us.ibm.com>
8449
8450 * sysdeps/powerpc/powerpc32/power6/wordcopy.c: New file.
8451 * sysdeps/powerpc/powerpc32/powerpc64/Makefile: New file.
8452 * sysdeps/powerpc/powerpc32/powerpc64/memcopy.h: New file.
8453 * sysdeps/powerpc/powerpc32/powerpc64/wordcopy.c: New file.
8454 * sysdeps/powerpc/powerpc64/power4/Makefile: New file.
8455 * sysdeps/powerpc/powerpc64/power4/memcopy.h: New file.
8456 * sysdeps/powerpc/powerpc64/power4/wordcopy.c: New file.
8457 * sysdeps/powerpc/powerpc64/power6/wordcopy.c: New file.
8458
84592006-07-06 Steven Munroe <sjmunroe@us.ibm.com>
8460
8461 * sysdeps/powerpc/powerpc64/power6/memcpy.S: New file.
8462
84632006-03-20 Steven Munroe <sjmunroe@us.ibm.com>
8464
8465 * sysdeps/powerpc/powerpc32/power4/memcmp.S: New file.
8466 * sysdeps/powerpc/powerpc32/power4/memcpy.S: New file.
8467 * sysdeps/powerpc/powerpc32/power4/memset.S: New file.
8468 * sysdeps/powerpc/powerpc32/power4/strncmp.S: New file.
8469 * sysdeps/powerpc/powerpc64/power4/memcmp.S: New file.
8470 * sysdeps/powerpc/powerpc64/power4/memcpy.S: New file.
8471 * sysdeps/powerpc/powerpc64/power4/strncmp.S: New file.
8472
5b55e1d3
RM
84732007-05-29 Roland McGrath <roland@redhat.com>
8474
8475 * po/Makefile (po-sed-cmd): New variable.
8476 (libc.pot.files): Move sed command text in there, avoid \ inside ''.
8477
5da4373c
UD
84782007-05-29 Ulrich Drepper <drepper@redhat.com>
8479
4b5e7304
UD
8480 * crypt/md5-crypt.c: Fix comment.
8481
5da4373c
UD
8482 * nscd/nscd_helper.c (get_mapping): Handle short replies instead
8483 of crashing. When this is the case or if the reply is malformed,
8484 don't try to close the new file descriptor since it does not
8485 exist.
8486 Patch in part by Guillaume Chazarain <guichaz@yahoo.fr>.
8487
40f57573
UD
84882007-05-28 Jakub Jelinek <jakub@redhat.com>
8489
8490 * sysdeps/unix/sysv/linux/futimes.c (miss_utimensat): Don't define
8491 if __NR_utimensat is not defined.
8492
6df7ffad
UD
84932007-05-26 Ulrich Drepper <drepper@redhat.com>
8494
8495 * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Include <sysdep.h>.
8496
47ad95ab
UD
84972007-05-25 Jakub Jelinek <jakub@redhat.com>
8498
8499 * io/bits/fcntl2.h (__open_2): Add nonnull attribute.
8500 (open): Fix comment typos. Don't call __open_2 if flags
8501 is a compile time constant without O_CREAT.
8502 (__open64_2): Add nonnull attribute.
8503 (open64): Fix comment typos. Don't call __open64_2 if flags
8504 is a compile time constant without O_CREAT.
8505 (__openat_2): Add nonnull attribute, fix nonnull attribute
8506 on redirect.
8507 (openat): Fix comment typos. Don't call __openat_2 if flags
8508 is a compile time constant without O_CREAT.
8509 (__openat64_2): Add nonnull attribute, fix nonnull attribute
8510 on redirect.
8511 (openat64): Fix comment typos. Don't call __openat64_2 if flags
8512 is a compile time constant without O_CREAT.
8513
ddfd0535
UD
85142007-05-24 Ulrich Drepper <drepper@redhat.com>
8515
8516 * Makerules (sysd-rules): Define PTW for ptw-* files.
8517 * Versions: Define GLIBC_2.7 for libc.
8518 * include/stdio.h: Declare __fortify_fail.
8519 * debug/fortify_fail.c: New file.
8520 * debug/Makefile (routines): Add fortify_fail.
8521 * debug/chk_fail.c: Use __fortify_fail.
8522 * debug/stack_chk_fail.c: Likewise.
8523 * io/Versions: Export __open_2, __open64_2, __openat_2, and
8524 __openat64_2 for GLIBC_2.7.
8525 * io/fcntl.h: When compiling with fortification, include bits/fcntl2.h.
8526 * io/open.c: Define *_2 variant of function which checks for O_CREAT
8527 and fails if necessary.
8528 * io/open64.c: Likewise.
8529 * io/openat.c: Likewise.
8530 * io/openat64.c: Likewise.
8531 * sysdeps/unix/sysv/linux/open64.c: Likewise.
8532 * sysdeps/unix/sysv/linux/openat.c: Likewise.
8533 * sysdeps/unix/sysv/linux/openat64.c: Likewise.
8534 * io/bits/fcntl2.h: New file.
8535 * include/fcntl.h: Declare __open_2, __open64_2, __openat_2, and
8536 __openat64_2.
8537 * include/bits/fcntl2.h: New file.
8538 * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
8539 Add open_2.
8540 * sysdeps/unix/sysv/linux/open_2.c: New file.
8541
bfe6f5fa
UD
85422007-05-21 Ulrich Drepper <drepper@redhat.com>
8543
6d59823c
UD
8544 * sysdeps/x86_64/cacheinfo.c (init_cacheinfo): Pass correct value
8545 as second parameter to handle_intel.
8546
e2b1e343
UD
8547 * nscd/aicache.c (addhstaiX): If reported TTL is zero don't cache
8548 the entry.
8549
bfe6f5fa
UD
8550 * sysdeps/unix/sysv/linux/x86_64/sysconf.c: Move cache information
8551 handling to ...
8552 * sysdeps/x86_64/cacheinfo.c: ... here. New file.
8553 * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
8554 cacheinfo.
8555 * sysdeps/x86_64/memcpy.S: Complete rewrite.
8556 * sysdeps/x86_64/mempcpy.S: Adjust appropriately.
8557 Patch by Evandro Menezes <evandro.menezes@amd.com>.
8558
8559 * sysdeps/unix/sysv/linux/i386/epoll_pwait.S: New file.
8560
1f4843fb
UD
85612007-05-21 Jakub Jelinek <jakub@redhat.com>
8562
2c2c003a
UD
8563 [BZ #4525]
8564 * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add epoll_pwait.
8565 * sysdeps/unix/sysv/linux/epoll_pwait.c: New file.
8566 * sysdeps/unix/sysv/linux/syscalls.list (epoll_pwait): Remove.
8567
8568 * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h (epoll_pwait): Declare.
8569
af269dd9
UD
8570 [BZ #4514]
8571 * stdio-common/vfprintf.c (vfprintf): Don't shadow workstart variable,
8572 reinitialize workend at the start of each do_positional format spec
8573 loop, free workstart before do_positional loops.
8574 (printf_unknown): Fix size of work_buffer.
8575 * stdio-common/tst-sprintf.c (main): Add 3 new testcases.
8576
1f4843fb
UD
8577 * malloc/hooks.c (MALLOC_STATE_VERSION): Bump.
8578 (public_sET_STATe): If ms->version < 3, put all chunks into
8579 unsorted chunks and clear {fd,bk}_nextsize fields of largebin
8580 chunks.
8581
8582 * malloc/malloc.c [MALLOC_DEBUG]: Revert 2007-05-13 changes.
8583 * malloc/hooks.c: Likewise.
8584 * malloc/arena.c: Likewise.
8585 * malloc/malloc.c (do_check_malloc_state): Don't assert
8586 n_mmaps is not greater than n_mmaps_max. This removes the need
8587 for the previous change.
8588
8589 * malloc/Makefile (CFLAGS-malloc.c): Revert accidental
8590 2007-05-07 commit.
8591
12e8bbff
UD
85922007-05-19 Ulrich Drepper <drepper@redhat.com>
8593
8594 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_PRIVATE_FUTEX):
8595 Define for kernel >= 2.6.22.
69e5cbf5 8596
12e8bbff 85972007-05-18 Ulrich Drepper <drepper@redhat.com>
6d59823c 8598
df94b641
UD
8599 * elf/dl-close.c (_dl_close_worker): When removing object from
8600 global scope, wait for all lookups to finish afterwards.
8601 * elf/dl-open.c (add_to_global): When global scope array must
8602 grow, allocate a new one and free old array only after all
8603 lookups finish.
8604 * elf/dl-runtime.c (_dl_fixup): Protect using global scope.
8605 (_dl_lookup_symbol_x): Likewise.
8606 * elf/dl-support.c: Define _dl_wait_lookup_done.
8607 * sysdeps/generic/ldsodefs.h (struct rtld_global): Add
8608 _dl_wait_lookup_done.
8609
2acd01ac
UD
8610 * malloc/malloc.c (do_check_chunk): Correct check for mmaped block
8611 not overlapping with arena.
8612
129abdd3
UD
8613 * malloc/mcheck.c (reallochook): If size==0, free the block.
8614
eb4b098a
UD
8615 * rt/tst-shm.c: Use fstat64 instead of fstat.
8616
69e5cbf5
UD
8617 * sysdeps/unix/sysv/linux/i386/sync_file_range.S: Fix case where
8618 __NR_sync_file_range is not defined.
8619
a2ccc760
UD
86202007-05-17 Ulrich Drepper <drepper@redhat.com>
8621
bec51a30
UD
8622 Dummy files to prevent stub versions from being used.
8623 * sysdeps/x86_64/fpu/k_cosl.c: New file.
8624 * sysdeps/x86_64/fpu/k_rem_pio2l.c: New file.
8625 * sysdeps/x86_64/fpu/k_sinl.c: New file.
8626 * sysdeps/x86_64/fpu/k_tanl.c: New file.
8627
a2ccc760
UD
8628 * version.h (VERSION): Set to 2.6.90.
8629
1a31b586
UD
86302007-05-14 Ulrich Drepper <drepper@redhat.com>
8631
a2ccc760
UD
8632 * version.h (VERSION): Define to 2.6.
8633 * include/features.h (__GLIBC_MINOR__): Define to 6.
2c1d6172 8634
1d47e92f
UD
8635 * malloc/malloc.c: Use all small bin slots on 64-bit archs.
8636
8637 * malloc/malloc.c (largebin_index): Really have 32 buckets with 64
8638 sizes.
366ad8fd 8639
1a31b586 86402007-05-13 Ulrich Drepper <drepper@redhat.com>
87e66335 8641
366ad8fd
UD
8642 * malloc/malloc.c [MALLOC_DEBUG]: Keep track of current maximum
8643 number of mmaps. n_mmaps_max is the target.
8644 * malloc/hooks.c: Likewise.
8645 * malloc/arena.c: Likewise.
8646
11ed6713
AJ
86472007-05-12 Andreas Jaeger <aj@suse.de>
8648
8649 * sysdeps/unix/sysv/linux/tst-getcpu.c: Include <unistd.h> for
8650 getpid.
8651
d65ef3dd
UD
86522007-05-11 Ulrich Drepper <drepper@redhat.com>
8653
2e81d449
UD
8654 * elf/dl-close.c (_dl_close_worker): Help gcc to optimize by
8655 adding new variables.
8656
d65ef3dd 8657 * elf/dl-open.c (add_to_global): Introduce variable ns to help gcc
2e81d449 8658 optimize. Completely extend global scope array before making the
d65ef3dd
UD
8659 new entries visible.
8660
c27d2078
UD
86612007-05-10 Ulrich Drepper <drepper@redhat.com>
8662
341c566f
UD
8663 * sysdeps/unix/sysv/linux/tst-getcpu.c: New file.
8664 * sysdeps/unix/sysv/linux/Makefile [subdir=posix] (tests): Add
8665 tst-getcpu.
8666
8667 * include/link.h: Move l_version and l_nversion members around to
8668 fill gaps.
8669
a53fa282
UD
8670 * scripts/check-c++-types.sh: Don't use -fnu89-inline option.
8671
3771196d
UD
8672 * sysdeps/unix/sysv/linux/sched_setaffinity.c
8673 (__sched_setaffinity_new): If syscall was successful and
8674 RESET_VGETCPU_CACHE is defined, use it before returning.
8675 * sysdeps/unix/sysv/linux/x86_64/sched_setaffinity.c: New file.
8676
f9bf102d
UD
8677 * io/sys/stat.h: Make sure struct timespec is defined for
8678 __USE_ATFILE.
8679
c27d2078
UD
8680 * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Define UTIME_NOW and
8681 UTIME_OMIT.
8682 * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
8683 * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
8684 * sysdeps/unix/sysv/linux/alpha/bits/stat.h: Likewise.
8685 * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Likewise.
8686 * sysdeps/unix/sysv/linux/bits/stat.h: Likewise.
8687 * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
8688 * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_UTIMENSAT.
8689 * io/sys/stat.h: Declare utimensat, futimens.
8690 * io/utimensat.c: New file.
8691 * io/futimens.c: New file.
8692 * sysdeps/unix/sysv/linux/utimensat.c: New file.
8693 * sysdeps/unix/sysv/linux/futimens.c: New file.
8694 * io/Makefile (routines): Add utimensat, futimens.
8695 * io/Versions: Add utimensat, futimens to GLIBC_2.6.
8696 * sysdeps/unix/sysv/linux/lutimes.c: New file.
8697 * sysdeps/unix/sysv/linux/futimes.c: Use utimensat syscall if
8698 available.
8699
8700 * include/sys/cdefs.h: Redefine __nonnull so that test for
8701 incorrect parameters in the libc code itself are not omitted.
8702
cf6b0980
JJ
87032007-05-09 Jakub Jelinek <jakub@redhat.com>
8704
c1dfd7e6
JJ
8705 * sysdeps/ia64/fpu/fraiseexcpt.c (feraiseexcept): Don't raise overflow
8706 exception in addition to inexact when asked to raise only FE_INEXACT.
8707
cf6b0980
JJ
8708 [BZ #3427]
8709 * sysdeps/s390/fpu/feholdexcpt.c (feholdexcept): Don't clear exceptions
8710 in *envp.
8711
df7b6fea
UD
87122007-05-07 Ulrich Drepper <drepper@redhat.com>
8713
8714 [BZ #4403]
8715 * string/strfry.c (strfry): Make result more random.
8716
37f40235
RH
87172007-05-07 Richard Henderson <rth@redhat.com>
8718
8719 * sysdeps/alpha/fpu/bits/mathinline.h (__isnanl): Don't define
8720 if __NO_LONG_DOUBLE_MATH.
8721 * sysdeps/unix/sysv/linux/alpha/ioperm.c: If BWX insns not
df7b6fea 8722 available in the compiler, add .arch directive to the assembly.
37f40235
RH
8723
87242007-05-07 Jakub Jelinek <jakub@redhat.com>
8725
8726 * sysdeps/alpha/fpu/s_nearbyint.c (nearbyintl): Fix version on
8727 compat_symbol to GLIBC_2_1.
8728 * sysdeps/alpha/fpu/s_fmin.S (fminl): Likewise.
8729 * sysdeps/alpha/fpu/s_trunc.c (truncl): Likewise.
8730 * sysdeps/alpha/fpu/s_fmax.S (fmaxl): Likewise.
8731 * sysdeps/alpha/fpu/s_lrint.c (lrintl, llrintl): Likewise.
8732 * sysdeps/alpha/fpu/s_lround.c (lroundl, llroundl): Likewise.
8733 * sysdeps/alpha/fpu/s_round.c (roundl): Likewise.
8734 * sysdeps/alpha/fpu/s_isnan.c (isnanl): Provide compat_symbol in
8735 libc, not libm.
8736 (__isnanl): New compat_symbol.
8737
c7fd3362
JJ
87382007-05-07 Ulrich Drepper <drepper@redhat.com>
8739 Jakub Jelinek <jakub@redhat.com>
8740
8741 * malloc/arena.c (heap_info): Add mprotect_size field, adjust pad.
8742 (new_heap): Initialize mprotect_size.
8743 (grow_heap): When growing, only mprotect from mprotect_size till
8744 new_size if mprotect_size is smaller. When shrinking, use PROT_NONE
8745 MMAP for __libc_enable_secure only, otherwise use MADV_DONTNEED.
8746
4a59e9ad 87472007-04-30 Steven Munroe <sjmunroe@us.ibm.com>
37f40235 8748 Peter Bergner <bergner@us.ibm.com>
4a59e9ad
UD
8749
8750 * sysdeps/powerpc/bits/fenv.h: Declare __fe_mask_env extern.
8751 Define FE_NOMASK_ENV as FE_EANBLED_ENV. Define FE_MASK_ENV.
8752 * sysdeps/powerpc/fpu/Makefile: Add fe_mask to libm-support.
8753 * sysdeps/powerpc/fpu/fe_mask.c: New file.
8754 * sysdeps/powerpc/fpu/fe_nomask.c: Correct comment.
8755 * sysdeps/powerpc/fpu/fedisblxcpt.c (fedisableexcept):
8756 Call __fe_mask_env() if all FP exceptions disabled.
8757 * sysdeps/powerpc/fpu/feholdexcpt.c (feholdexcept): Copy high 32-bits
8758 from old FPSCR to new fenv to propagate DFP rounding modes.
8759 Call __fe_mask_env() if FP exceptions previously enabled.
8760 * sysdeps/powerpc/fpu/fesetenv.c (fesetenv): Change mask to merge
8761 exceptions from env. Use __fe_nomask_env() or __fe_mask_env() when
8762 transitioning from all exceptions disabled to any exception enabled
8763 or visa versa.
8764 * sysdeps/powerpc/fpu/feupdateenv.c (__feupdateenv): Change mask to
8765 merge exceptions from env. Call __fe_nomask_env or __fe_mask_env
8766 when transitioning from all exceptions disabled to any exception
8767 enabled or visa versa.
8768 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fe_nomask.c: Moved to...
8769 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c: ...here.
8770 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fe_nomask.c: Moved to...
8771 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c: ...here.
8772 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_mask.c: New file.
8773 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_mask.c: New file.
8774
aa75f64c
UD
87752007-05-06 Ulrich Drepper <drepper@redhat.com>
8776
15eca720 8777 [BZ #4465]
aa75f64c
UD
8778 * posix/unistd.h: Remove __THROW from fdatasync.
8779
711deb05
UD
87802007-05-06 Mike Frysinger <vapier@gentoo.org>
8781
15eca720 8782 [BZ #4465]
711deb05
UD
8783 * sysdeps/unix/sysv/linux/syscalls.list (fdatasync): Add "C" to args.
8784
ffecd39b
UD
87852007-05-06 Ulrich Drepper <drepper@redhat.com>
8786
49a8eb75
UD
8787 * stdio-common/vfprintf.c (process_string_arg): Optimize
8788 ridiculous precision in wide char code printing multi-byte string.
8789 Reported by Jim Meyering <jim@meyering.net>.
8790
ffecd39b
UD
8791 [BZ #4131]
8792 * elf/dl-addr.c (_dl_addr): Compare address with actual segment
8793 boundaries to work around systems with overlapping binary loading.
8794 Based on a patch by Suzuki <suzuki@in.ibm.com>.
8795
b16dba4c
UD
87962007-05-04 Ulrich Drepper <drepper@redhat.com>
8797
30b323ab
UD
8798 * stdio-common/vfprintf.c (process_string_arg): Adjust call to
8799 __mbsnrtowcs after last change.
8800
b16dba4c
UD
8801 * locale/programs/linereader.c (get_symname): Fix adding final NUL.
8802 (get_ident): Likewise.
8803
37002cbc
JJ
88042007-05-03 Jakub Jelinek <jakub@redhat.com>
8805
8806 * soft-fp/op-common.h (FP_TRUNC): Replace raising of FP_EX_INEXACT
8807 with setting the sticky bit.
8808 * math/test-misc.c (main): Add more truncation tests.
8809
88102007-04-14 Uros Bizjak <ubizjak@gmail.com>
8811
8812 * soft-fp/floatunsidf.c (__floatunsidf): Use DFtype instead of
8813 double in the function declaration.
8814 * soft-fp/floatundidf.c (__floatundidf): Use DFtype instead of
8815 double in the function declaration.
8816 * soft-fp/floatunsisf.c (__floatunsisf): Use SFtype instead of
8817 float in the function declaration.
8818 * soft-fp/floatunsisf.c (__floatunsisf): Use SFtype instead of
8819 float in the function declaration.
8820
8821 * soft-fp/extended.h (FP_UNPACK_RAW_E): Do not increase X##_e for
8822 denormal operands. Do not generate FP_EX_DENORM exception.
8823 (FP_UNPACK_RAW_EP): Ditto.
8824 (FP_UNPACK_SEMIRAW_E): Use FP_UNPACK_RAW_E instead of
8825 undefined _FP_UNPACK_RAW_E.
8826 (FP_UNPACK_SEMIRAW_EP): Use FP_UNPACK_RAW_EP instead of
8827 undefined _FP_UNPACK_RAW_EP.
8828 (FP_PACK_SEMIRAW_E): Use FP_PACK_RAW_E instead of
8829 undefined _FP_PACK_RAW_E.
8830 (FP_PACK_SEMIRAW_EP): Use FP_PACK_RAW_EP instead of
8831 undefined _FP_PACK_RAW_EP.
8832
d9ac82d0
UD
8833 * soft-fp/op-2.h (_FP_FRAC_COPY_2_2): Define as alias to
8834 _FP_FRAC_COPY_2.
8835 * soft-fp/op-4.h (_FP_FRAC_COPY_2_2): Define as alias to
8836 _FP_FRAC_COPY_4.
37002cbc
JJ
8837
88382007-04-16 Uros Bizjak <ubizjak@gmail.com>
8839 Jakub Jelinek <jakub@redhat.com>
8840
8841 * soft-fp/op-common.h (FP_EXTEND): Do not abort when
8842 _FP_EXPBIAS_##dfs == _FP_EXPBIAS_##sfs. Handle denormals for
8843 this case.
8844 * soft-fp/op-common.h (FP_TRUNC): Ditto.
8845
002f0b0b
JJ
88462007-05-03 Jakub Jelinek <jakub@redhat.com>
8847
8848 * math/test-misc.c (main): Add tests for rounding long double
8849 values close to smallest double denormalized value to double.
8850
88512007-04-30 Joseph Myers <joseph@codesourcery.com>
8852
8853 * soft-fp/op-common.h (FP_TRUNC): Correct off-by-one error in
8854 condition for truncating to 0. Set sticky bit for such
8855 truncation.
8856
57433ede
UD
88572007-05-02 Jakub Jelinek <jakub@redhat.com>
8858
8859 * stdio-common/vfprintf.c (process_string_arg): Use a VLA rather than
8860 fixed length array for ignore.
8861
c01c2455
UD
88622007-04-30 Ulrich Drepper <drepper@redhat.com>
8863
8864 [BZ #4438]
8865 * stdio-common/vfprintf.c (process_string_arg): Don't overflow the
8866 stack for large precisions.
1cb04337
UD
8867 * stdio-common/test-vfprintf.c (main): Add test for large
8868 precision.
c01c2455 8869
37f02b1d
UD
88702007-04-30 Jakub Jelinek <jakub@redhat.com>
8871
b866373d
UD
8872 * stdio-common/printf_fp.c (___printf_fp): Don't print negative sign
8873 for exponent 0.
8874 * stdio-common/tfformat.c (sprint_doubles): Add a new test.
8875
37f02b1d
UD
8876 [BZ #4439]
8877 * resolv/inet_ntop.c (inet_ntop4): Take terminating '\0' into
8878 account in the size check.
8879 * resolv/tst-inet_ntop.c: New test.
8880 * resolv/Makefile (tests): Add tst-inet_ntop.
8881
7ecfbd38
UD
88822007-04-30 Ulrich Drepper <drepper@redhat.com>
8883 Jakub Jelinek <jakub@redhat.com>
8884
8885 [BZ #4349]
8886 * malloc/malloc.c: Keep separate list for first blocks on the bin
8887 lists with a given size. This helps skipping over list elements
8888 we know won't fit in two places.
8889 Inspired by a patch by Tomash Brechko <tomash.brechko@gmail.com>.
8890
e53f0f51
UD
88912007-04-28 Ulrich Drepper <drepper@redhat.com>
8892
8893 [BZ #4102]
8894 * sysdeps/posix/getaddrinfo.c (default_labels): Assign separate
8895 label to Teredo tunnel addresses 2001://32.
8896
109f51f2
UD
88972007-04-27 Ulrich Drepper <drepper@redhat.com>
8898
762422d1
UD
8899 * locale/programs/ld-collate.c (collate_read): Allow order_start
8900 after copy.
8901
61d5a67f
UD
8902 * locale/programs/ld-collate.c (collate_read): Fix printing of
8903 error message.
8904
8905 [BZ #3213]
8906 * locale/C-translit.h.in: Add entry for U2044.
8907
109f51f2
UD
8908 [BZ #4342]
8909 * stdio-common/vfscanf.c (_IO_vfscanf_internal): Allow
8910 hexa-decimal floats without exponent.
8911 * stdio-common/tstscanf.c (main): Adjust Test 8 test for success.
8912
ec08f13d
UD
89132007-04-25 Ulrich Drepper <drepper@redhat.com>
8914
8915 * sysdeps/unix/sysv/linux/bits/sched.h: Declare sched_getcpu.
8916 * sysdeps/unix/sysv/linux/sched_getcpu.c: New file.
8917 * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: New file.
8918 * sysdeps/unix/sysv/linux/Versions: Export sched_getcpu for
8919 GLIBC_2.6.
bce20b9a
UD
8920 * sysdeps/unix/sysv/linux/Makefile [subdir=posix] (sysdep_routines):
8921 Add sched_getcpu.
ec08f13d 8922
41967e1c
JJ
89232007-04-25 Jakub Jelinek <jakub@redhat.com>
8924
8925 * sysdeps/unix/sysv/linux/check_pf.c (make_request): Return -1 instead
8926 of 0 after the out_fail label.
8927
ba508da3
UD
89282007-04-25 Ulrich Drepper <drepper@redhat.com>
8929
8930 [BZ #4406]
109f51f2 8931 * iconv/gconv_charset.h (strip): Allow ':'.
ba508da3
UD
8932 * iconv/iconv_open.c (iconv_open): Adjust comment.
8933
9c8d03d9
JJ
89342007-04-25 Jakub Jelinek <jakub@redhat.com>
8935
8936 * libio/bits/stdio.h (fgetc_unlocked): Add extern inline optimized
8937 version.
8938
2f1687b9
UD
89392007-04-23 Jakub Jelinek <jakub@redhat.com>
8940
8941 [BZ #4381]
8942 * nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Ensure sufficient
8943 alignment of buffer and tmp_buffer.
8944 * nis/nss_nis/nis-hosts.c (internal_nis_gethostent_r,
8945 internal_gethostbyname2_r, _nss_nis_gethostbyaddr_r): Ensure sufficient
8946 alignment of buffer.
8947 * resolv/nss_dns/dns-hosts.c (getanswer_r): Likewise. Handle buflen
8948 bigger than INT_MAX.
8949 * resolv/nss_dns/dns-network.c (getanswer_r): Likewise. Add errnop and
8950 h_errnop arguments. Fail if buflen is too small.
8951 (_nss_dns_getnetbyname_r, _nss_dns_getnetbyaddr_r): Adjust callers.
8952
b64a9db8
JJ
89532007-04-23 Jakub Jelinek <jakub@redhat.com>
8954
8955 [BZ #4405]
8956 * iconvdata/gconv-modules (E13B): Add a missing slash to the alias
8957 name. Patch by Aurelien Jarno <aurelien@aurel32.net>.
8958
4d3144c9
RM
89592007-04-22 Roland McGrath <roland@redhat.com>
8960
8961 * elf/elf.h (NT_PRXFPREG): New macro.
8962
767b40bf
AJ
89632007-04-19 Andreas Jaeger <aj@suse.de>
8964
8965 [BZ #3905]
8966 * bits/in.h (IPV6_ROUTER_ALERT, IPV6_MTU_DISCOVER, IPV6_MTU,
8967 IPV6_RECVERR, IPV6_V6ONLY, IPV6_JOIN_ANYCAST, IPV6_LEAVE_ANYCAST):
8968 Added.
8969
2592d1ec
UD
89702007-04-19 Ulrich Drepper <drepper@redhat.com>
8971
8972 * include/sys/mman.h: Mark madvise hidden.
d07d044e 8973 * misc/madvise.c: Add libc_hidden_def.
2592d1ec 8974
7ab174ed
UD
89752007-04-06 Jakub Jelinek <jakub@redhat.com>
8976
8977 * nis/nis_domain_of.c (__nis_domain_of): New function.
8978 * include/rpcsvc/nislib.h (__nis_domain_of): New prototype.
8979 * nis/nis_lookup.c (nis_lookup): Use __nis_domain_of.
8980 * nis/nis_call.c (rec_dirsearch): Likewise.
8981 (first_shoot): Likewise. Remove search_parent_first argument.
8982 (struct nis_server_cache): Rename search_parent_first field
8983 to search_parent.
8984 (nis_server_cache_search, nis_server_cache_add): Rename
8985 search_parent_first argument to search_parent.
8986 (__nisfind_server): Likewise. If search_parent, call
8987 __nis_domain_of.
8988
b17c265f
UD
89892007-04-18 Ulrich Drepper <drepper@redhat.com>
8990
8991 * sysdeps/posix/getaddrinfo.c: Remove commented-out code.
8992
b7674b11
UD
89932007-04-17 Ulrich Drepper <drepper@redhat.com>
8994
8995 [BZ #4368]
8996 * stdlib/stdlib.h: Remove obsolete part of comment for realpath.
8997
faf3ad69
UD
89982007-04-16 Ulrich Drepper <drepper@redhat.com>
8999
9000 [BZ #4364]
9001 * posix/unistd.h (_XOPEN_VERSION): Define appropriately for SUSv3.
9002
c14f245c
UD
90032007-04-15 Jakub Jelinek <jakub@redhat.com>
9004
9005 * locale/programs/locarchive.c (INITIAL_NUM_NAMES,
9006 INITIAL_SIZE_STRINGS, INITIAL_NUM_LOCREC): Update to accomodate
9007 current number of locales in SUPPORTED.
9008 (create_archive): Initialize serial.
9009 (enlarge_archive): Preserve aliases rather than duplicating
9010 their locrecs.
9011
d40e67f5
UD
90122007-04-13 Jakub Jelinek <jakub@redhat.com>
9013
993a5d66
UD
9014 * libio/genops.c (_IO_default_finish): Call _IO_lock_fini
9015 after _IO_un_link, not before it.
9016
d40e67f5
UD
9017 * stdio-common/printf_fp.c (___printf_fp): Fix exponent -4
9018 special case handling when wcp == wstartp + 1. Fix a comment typo.
9019 * stdio-common/tfformat.c (sprint_doubles): Add a new testcase.
9020
0fca3153
UD
90212007-03-30 Jakub Jelinek <jakub@redhat.com>
9022
9023 * libio/libio.h (__underflow, __uflow, __overflow, __wunderflow,
9024 __wuflow, __woverflow, _IO_getc, _IO_putc, _IO_peekc_locked, _IO_padn,
9025 _IO_sgetn, _IO_seekoff, _IO_seekpos, _IO_getwc, _IO_putwc, _IO_wpadn):
9026 Remove __THROW.
9027 * libio/fileops.c (new_do_write, _IO_file_xsgetn_mmap,
9028 _IO_file_xsgetn_maybe_mmap): Likewise.
9029 * libio/oldfileops.c (old_do_write): Likewise.
9030 * libio/libioP.h (_IO_switch_to_get_mode, _IO_switch_to_wget_mode,
9031 _IO_init_marker, _IO_init_wmarker, _IO_default_uflow,
9032 _IO_wdefault_uflow, _IO_default_setbuf, _IO_default_seekpos,
9033 _IO_do_write, _IO_new_do_write, _IO_old_do_write, _IO_wdo_write,
9034 _IO_flush_all_lockp, _IO_flush_all, _IO_cleanup,
9035 _IO_flush_all_linebuffered, _IO_new_fgetpos, _IO_old_fgetpos,
9036 _IO_new_fsetpos, _IO_old_fsetpos, _IO_new_fgetpos64,
9037 _IO_old_fgetpos64, _IO_new_fsetpos64, _IO_old_fsetpos64,
9038 _IO_file_setbuf, _IO_file_seekoff, _IO_file_xsputn, _IO_file_xsgetn,
9039 _IO_file_underflow, _IO_file_underflow_mmap,
9040 _IO_file_underflow_maybe_mmap, _IO_file_overflow, _IO_file_attach,
9041 _IO_file_open, _IO_file_fopen, _IO_file_write, _IO_file_read,
9042 _IO_file_sync, _IO_file_close_it, _IO_file_finish,
9043 _IO_new_file_attach, _IO_new_file_close_it, _IO_new_file_finish,
9044 _IO_new_file_fopen, _IO_new_file_setbuf, _IO_file_setbuf_mmap,
9045 _IO_new_file_sync, _IO_new_file_underflow, _IO_new_file_overflow,
9046 _IO_new_file_seekoff, _IO_new_file_write, _IO_new_file_xsputn,
9047 _IO_old_file_setbuf, _IO_old_file_seekoff, _IO_old_file_xsputn,
9048 _IO_old_file_underflow, _IO_old_file_overflow, _IO_old_file_attach,
9049 _IO_old_file_fopen, _IO_old_file_write, _IO_old_file_sync,
9050 _IO_old_file_close_it, _IO_old_file_finish, _IO_wfile_xsputn,
9051 _IO_wfile_setbuf, _IO_wfile_sync, _IO_wfile_underflow,
9052 _IO_wfile_overflow, _IO_wfile_seekoff, _IO_old_proc_open,
9053 _IO_old_proc_close, _IO_getdelim, _IO_flush_all_internal,
9054 _IO_adjust_column_internal, _IO_default_uflow_internal,
9055 _IO_default_xsgetn_internal, _IO_wdefault_xsputn_internal,
9056 _IO_wdefault_xsgetn_internal, _IO_wdefault_uflow_internal,
9057 _IO_file_setbuf_internal, _IO_file_seekoff_internal,
9058 _IO_file_xsputn_internal, _IO_file_xsgetn_internal,
9059 _IO_file_close_it_internal, _IO_file_underflow_internal,
9060 _IO_file_overflow_internal, _IO_file_attach_internal,
9061 _IO_file_fopen_internal, _IO_file_sync_internal,
9062 _IO_file_finish_internal, _IO_wfile_xsputn_internal,
9063 _IO_wfile_seekoff_internal, _IO_wfile_sync_internal,
9064 _IO_switch_to_wget_mode_internal, _IO_padn_internal,
9065 _IO_switch_to_get_mode_internal, _IO_seekoff_unlocked,
9066 _IO_seekpos_unlocked): Likewise.
9067 (_IO_strtod, _IO_dtoa, _IO_outfloat, _IO_read, _IO_write,
9068 _IO_lseek, _IO_close, _IO_fstat): Remove unused prototypes.
9069
07358add
JJ
90702007-04-16 Jakub Jelinek <jakub@redhat.com>
9071
9072 * locale/programs/locarchive.c (show_archive_content): Fix sizeof
9073 argument in xmalloc size computation.
9074
7a82b74f
UD
90752007-04-01 Jakub Jelinek <jakub@redhat.com>
9076
9077 * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (__nextafterl): Use
9078 math_opt_barrier and math_force_eval macros.
9079
3e336a87
UD
90802007-03-27 Jakub Jelinek <jakub@redhat.com>
9081
9082 [BZ #3306]
9083 * math/math_private.h (math_opt_barrier, math_force_eval): Define.
9084 * sysdeps/i386/fpu/math_private.h: New file.
9085 * sysdeps/x86_64/fpu/math_private.h: New file.
9086 * math/s_nexttowardf.c (__nexttowardf): Use math_opt_barrier and
9087 math_force_eval macros. Use "+m" constraint on asm rather than
9088 "=m" and "m".
9089 * math/s_nextafter.c (__nextafter): Likewise.
9090 * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c (__nexttoward):
9091 Likewise.
9092 * sysdeps/ieee754/flt-32/s_nextafterf.c (__nextafterf): Likewise.
9093 * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward): Likewise.
9094 * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
9095 * sysdeps/i386/fpu/s_nextafterl.c (__nextafterl): Use
9096 math_opt_barrier and math_force_eval macros.
9097 * sysdeps/ieee754/ldbl-128/s_nextafterl.c (__nextafterl): Likewise.
9098 * sysdeps/ieee754/ldbl-96/s_nextafterl.c (__nextafterl): Likewise.
9099 * sysdeps/i386/fpu/s_nexttoward.c: Include float.h.
9100 (__nexttoward): Use math_opt_barrier and
9101 math_force_eval macros. Use "+m" constraint on asm rather than
9102 "=m" and "m". Only use asm to force double result if
9103 FLT_EVAL_METHOD is 2.
9104 * sysdeps/i386/fpu/s_nexttowardf.c: Include float.h.
9105 (__nexttowardf): Use math_opt_barrier and
9106 math_force_eval macros. Use "+m" constraint on asm rather than
9107 "=m" and "m". Only use asm to force double result if
9108 FLT_EVAL_METHOD is not 0.
9109 * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Include float.h.
9110 (__nexttowardf): Use math_opt_barrier and
9111 math_force_eval macros. If FLT_EVAL_METHOD is not 0, force
9112 x to float using asm.
9113 * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c: Include float.h.
9114 (__nldbl_nexttowardf): Use math_opt_barrier and
9115 math_force_eval macros. If FLT_EVAL_METHOD is not 0, force
9116 x to float using asm.
9117 * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Include float.h.
9118 (__nexttowardf): Use math_opt_barrier and math_force_eval
9119 macros. If FLT_EVAL_METHOD is not 0, force x to float using asm.
9120 * math/bug-nextafter.c (zero, inf): New variables.
9121 (main): Add new tests.
9122 * math/bug-nexttoward.c (zero, inf): New variables.
9123 (main): Add new tests.
9124
a8c79c40
UD
91252007-03-22 Jakub Jelinek <jakub@redhat.com>
9126
9127 [BZ #3427]
9128 * sysdeps/x86_64/fpu/feholdexcpt.c (feholdexcept): Clear all
9129 exceptions both in SW and MXCSR.
9130 * sysdeps/x86_64/fpu/feupdateenv.c: New file.
9131 * sysdeps/x86_64/fpu/feenablxcpt.c (feenableexcept): Remove dead code.
9132 * sysdeps/x86_64/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
9133 * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Clear all exceptions
9134 in MXCSR if SSE is available.
9135 * sysdeps/i386/fpu/feupdateenv.c: Include unistd.h, dl-procinfo.h
9136 and ldsodefs.h.
9137 (__feupdateenv): Query exceptions also from MXCSR if SSE is available.
9138 Fix comment typo.
9139 * sysdeps/ia64/fpu/feholdexcpt.c (feholdexcept): Clear all exceptions.
9140 Return 0 rather than 1.
9141 * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Fix comment typo.
9142 Remove incorrect part of a comment. Fix argument to feraiseexcept.
9143 * math/test-fenv.c (feholdexcept_tests): New function.
9144 (main): Call it.
9145
91462007-01-05 Richard B. Kreckel <kreckel@ginac.de>
9147
9148 [BZ #3427]
9149 * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Clear all exceptions
9150 in SW.
9151
30a3aa75
JJ
91522007-04-13 Jakub Jelinek <jakub@redhat.com>
9153
9154 [BZ #4344]
9155 * elf/ldconfig.c (search_dir): Fix 2 off-by-2 errors.
9156 Reported by David Anderson <davea42@earthlink.net>.
9157
75587bfe
UD
91582007-04-07 Ulrich Drepper <drepper@redhat.com>
9159
9160 * posix/sys/wait.h: Remove unnecessary forward declaration.
9161
88fa1769
JJ
91622007-04-05 Jakub Jelinek <jakub@redhat.com>
9163
9164 * nis/nis_call.c (__nisfind_server): Replace (*dir)->do_servers
9165 with obj->do_servers after first_shoot.
9166
eab1bdfb
UD
91672007-04-03 Ulrich Drepper <drepper@redhat.com>
9168
9169 * posix/Makefile (routines): Add sched_cpucount.
9170 (tests): Add tst-cpucount.
9171 * posix/sched_cpucount.c: New file.
9172 * posix/tst-cpucount.c: New file.
9173 * posix/Versions: Export __sched_cpucount with version GLIBC_2.6.
b4afdd06
UD
9174 * bits/sched.h: Define __CPU_COUNT. Declare __sched_cpucount.
9175 * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
9176 * posix/sched.h: Define CPU_COUNT.
eab1bdfb 9177
9700b039
UD
91782007-03-27 Jakub Jelinek <jakub@redhat.com>
9179
9180 * posix/fnmatch.c (STRUCT): Define.
9181 (fnmatch): Pass NULL as last argument to internal_fn{,w}match.
9182 * posix/fnmatch_loop.c (struct STRUCT): New type.
9183 (FCT): Add ends argument. If ends != NULL and normal * is
9184 seen in the pattern, store current pattern and string pointers
9185 and return. Adjust recursive calls.
9186 (EXT): Adjust FCT callers.
9187 (STRUCT): Undef at the end of the file.
9188 * posix/Makefile (tests): Add tst-fnmatch2.
9189 * posix/tst-fnmatch2.c: New test.
9190
d64e9790
JJ
91912007-04-01 Jakub Jelinek <jakub@redhat.com>
9192
933dfe7b
JJ
9193 * sysdeps/ia64/fpu/fesetround.c (fesetround): Return 0 on success
9194 and 1 on failure.
9195
d64e9790
JJ
9196 * sysdeps/unix/sysv/linux/sync_file_range.c (sync_file_range):
9197 Change last argument to unsigned int.
9198
e1f0c5bc
UD
91992007-03-23 Jakub Jelinek <jakub@redhat.com>
9200
9201 * scripts/check-local-headers.sh: Filter out sys/capability.h.
9202
92032007-03-22 Jakub Jelinek <jakub@redhat.com>
9204
9205 * config.h.in (HAVE_LIBCAP): Add.
9206 * nscd/selinux.h: Include sys/capability.h rather than non-existent
9207 sys/capabilities.h.
9208 * nscd/selinux.c (preserve_capabilities): Use cap_free instead of
9209 free_caps. Cast away const from 4th cap_set_flag argument.
9210
4e87573f
UD
92112007-03-26 Ulrich Drepper <drepper@redhat.com>
9212
9213 * sysdeps/unix/sysv/linux/Versions: Move sync_file_range to
9214 GLIBC_2.6.
9215 * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
9216 Add sync_file_range.
9217 Reported by Atsushi Nemoto <anemo@mba.ocn.ne.jp>.
9218
fa6e3bc3
UD
92192007-03-19 Steven Munroe <sjmunroe@us.ibm.com>
9220
9221 * sysdeps/powerpc/bits/atomic.h
9222 [!MUTEX_HINT_ACQ]: Define MUTEX_HINT_ACQ.
9223 [!MUTEX_HINT_REL]: Define MUTEX_HINT_REL.
9224 (__arch_compare_and_exchange_val_32_acq): Add MUTEX_HINT_ACQ to lwarx.
9225 (__arch_compare_and_exchange_val_32_rel): Add MUTEX_HINT_REL to lwarx.
9226 (__arch_atomic_exchange_val_32_acq): Add MUTEX_HINT_ACQ to lwarx.
9227 (__arch_atomic_exchange_rel_32_rel): Add MUTEX_HINT_REL to lwarx.
9228 * sysdeps/powerpc/powerpc32/bits/atomic.h [_ARCH_PWR6 || _ARCH_PWR6X]:
9229 Define MUTEX_HINT_ACQ as ",1" and MUTEX_HINT_REL as ",0".
9230 (__arch_compare_and_exchange_bool_32_acq): Add MUTEX_HINT_ACQ to lwarx.
9231 (__arch_compare_and_exchange_bool_32_rel): Add MUTEX_HINT_REL to lwarx.
9232 * sysdeps/powerpc/powerpc64/bits/atomic.h [_ARCH_PWR6 || _ARCH_PWR6D]:
9233 Define MUTEX_HINT_ACQ as ",1" and MUTEX_HINT_REL as ",0".
9234 (__arch_compare_and_exchange_bool_32_acq): Add MUTEX_HINT_ACQ to lwarx.
9235 (__arch_compare_and_exchange_bool_32_rel): Add MUTEX_HINT_REL to lwarx.
9236 (__arch_compare_and_exchange_bool_64_acq): Add MUTEX_HINT_ACQ to lwarx.
9237 (__arch_compare_and_exchange_bool_64_rel): Add MUTEX_HINT_REL to lwarx.
9238 (__arch_compare_and_exchange_val_64_acq): Add MUTEX_HINT_ACQ to lwarx.
9239 (__arch_compare_and_exchange_val_64_rel): Add MUTEX_HINT_REL to lwarx.
9240 (__arch_atomic_exchange_val_64_acq): Add MUTEX_HINT_ACQ to lwarx.
9241 (__arch_atomic_exchange_rel_64_rel): Add MUTEX_HINT_REL to lwarx.
9242
92432007-03-20 Jakub Jelinek <jakub@redhat.com>
c7693af7
UD
9244
9245 * sysdeps/unix/sysv/linux/powerpc/libc-start.c
9246 (__cache_line_size): Define the variable here. Add
9247 attribute_hidden, remove weak_extern.
9248 (__libc_start_main): Set __cache_line_size
9249 unconditionally.
9250 * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c
9251 (__cache_line_size): Define the variable here. Add
9252 attribute_hidden, remove weak_extern.
9253 (DL_PLATFORM_AUXV): Set __cache_line_size
9254 unconditionally.
9255 * sysdeps/powerpc/powerpc32/dl-machine.c (__cache_line_size): Remove
9256 weak_extern, add attribute_hidden.
9257 (__elf_machine_runtime_setup): Assume __cache_line_size is always
9258 defined in ld.so.
9259 * sysdeps/powerpc/powerpc32/memset.S (__cache_line_size): Remove
9260 definition.
9261 * sysdeps/powerpc/powerpc64/memset.S (__cache_line_size): Likewise.
9262
0479e581
JJ
92632007-03-26 Jakub Jelinek <jakub@redhat.com>
9264
9265 [BZ #4276]
9266 * timezone/africa: Update from tzdata2007d.
9267 * timezone/asia: Likewise.
9268 * timezone/australasia: Likewise.
9269 * timezone/backward: Likewise.
9270 * timezone/europe: Likewise.
9271 * timezone/iso3166.tab: Likewise.
9272 * timezone/leapseconds: Likewise.
9273 * timezone/northamerica: Likewise.
9274 * timezone/southamerica: Likewise.
9275 * timezone/zone.tab: Likewise.
9276
9277 * timezone/private.h: Update from tzcode2007d.
9278 * timezone/zdump.c: Likewise.
9279 * timezone/zic.c: Likewise.
9280
697d37b1
JJ
92812007-03-21 Jakub Jelinek <jakub@redhat.com>
9282
9283 * nis/nis_call.c: Include bits/libc-lock.h, sys/stat.h, unistd.h.
9284 (nis_server_cache, nis_server_cache_lock, nis_cold_start_mtime): New
9285 variables.
9286 (nis_server_cache_search, nis_server_cache_add): New functions.
9287 (__nisfind_server): Use them. Add dbp and flags argument, if
9288 call __nisbind_create.
9289 (__nisbind_create): Add server_used and current_ep arguments,
9290 only call __nis_findfastest if server_used is ~0.
9291 (__do_niscall2, __prepare_niscall): Adjust callers.
9292 (ckey_cache, ckey_cache_size, ckey_cache_allocated, ckey_cache_pid,
9293 ckey_cache_euid, ckey_cache_lock): New variables.
9294 (get_ckey): New function.
9295 (__nisbind_connect): If not dbp->use_udp, pass IPPROTO_TCP to
9296 __pmap_getnisport. Save __pmap_getnisport result in
9297 dbp->addr.sin_port if non-zero. Use get_ckey to create conversation
9298 key.
9299 * nis/nis_lookup.c (nis_lookup): Likewise.
9300 * nis/nis_table.c (nis_list): Likewise.
9301 * nis/rpcsvc/nislib.h (__nisbind_create, __nisfind_server): Adjust
9302 prototypes.
9303
9304 * nis/nss_nisplus/nisplus-pwd.c (_nss_nisplus_getpwnam_r,
9305 _nss_nisplus_getpwuid_r): Pass USE_DGRAM flag to nis_list.
9306 * nis/nss_nisplus/nisplus-service.c (_nss_nisplus_getservbyname_r,
9307 _nss_nisplus_getservbyport_r): Likewise.
9308 * nis/nss_nisplus/nisplus-network.c (_nss_nisplus_getnetbyname_r,
9309 _nss_nisplus_getnetbyaddr_r): Likewise.
9310 * nis/nss_nisplus/nisplus-spwd.c (_nss_nisplus_getspnam_r): Likewise.
9311 * nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_gethostton_r,
9312 _nss_nisplus_getntohost_r): Likewise.
9313 * nis/nss_nisplus/nisplus-rpc.c (_nss_nisplus_getrpcbyname_r,
9314 _nss_nisplus_getrpcbynumber_r): Likewise.
9315
06029c20
JJ
93162007-03-20 Jakub Jelinek <jakub@redhat.com>
9317
371f84a4
JJ
9318 * configure.in (libc_cv_gnu89_inline): Only do compile test.
9319 * configure: Rebuilt.
9320
06029c20
JJ
9321 * soft-fp/double.h (_FP_UNION_D): Use _FP_W_TYPE for frac
9322 bit-fields.
9323 * soft-fp/extended.h (_FP_UNION_E): Likewise.
9324
93252006-06-07 Joseph Myers <joseph@codesourcery.com>
9326
9327 [BZ #2831]
9328 * soft-fp/quad.h (_FP_UNION_Q): Use _FP_W_TYPE for frac
9329 bit-fields.
9330
addc8335
UD
93312007-03-18 Jakub Jelinek <jakub@redhat.com>
9332
9333 * nscd/gai.c: Include alloca.h.
9334 (__libc_use_alloca): Define.
9335
b037a293
UD
93362007-03-16 Jakub Jelinek <jakub@redhat.com>
9337
965cba04
UD
9338 * elf/dl-open.c (dl_open_worker): Declare l in 2 different
9339 smaller scopes.
9340 * elf/dl-dst.h (DL_DST_REQ_STATIC): Add l as macro argument.
9341 (DL_DST_REQUIRED): Adjust user.
9342
9343 * include/dlfcn.h (struct link_map): New forward decl.
9344
9345 * inet/getnameinfo.c: Include stddef.h.
9346 (getnameinfo): Use offsetof.
9347
9348 * time/tst-mktime2.c (do_test): Don't rely on signed wrap.
9349
9350 * stdio-common/vfprintf.c (_itoa): Undef before redefining.
9351
9352 * string/strerror_l.c: Include stdlib.h.
9353
b037a293
UD
9354 * configure.in (libc_cv_gnu89_inline): Test for -fgnu89-inline.
9355 * config.make.in (gnu89-inline-CFLAGS): New variable.
9356 * Makeconfig (CFLAGS): Use $(gnu89-inline-CFLAGS) together with
9357 -std=gnu99.
9358 * misc/sys/cdefs.h (__extern_inline, __extern_always_inline): Define.
9359 * argp/argp.h: Use it.
9360 * bits/mathinline.h: Likewise.
9361 * bits/sigset.h: Likewise.
9362 * bits/string.h: Likewise.
9363 * ctype/ctype.h: Likewise.
9364 * hurd/hurd.h: Likewise.
9365 * hurd/hurd/fd.h: Likewise.
9366 * hurd/hurd/port.h: Likewise.
9367 * hurd/hurd/signal.h: Likewise.
9368 * hurd/hurd/threadvar.h: Likewise.
9369 * hurd/hurd/userlink.h: Likewise.
9370 * io/sys/stat.h: Likewise.
9371 * libio/bits/stdio.h: Likewise.
9372 * libio/bits/stdio2.h: Likewise.
9373 * mach/lock-intern.h: Likewise.
9374 * mach/mach/mig_support.h: Likewise.
9375 * math/bits/cmathcalls.h: Likewise.
9376 * posix/bits/unistd.h: Likewise.
9377 * socket/bits/socket2.h: Likewise.
9378 * stdlib/bits/stdlib.h: Likewise.
9379 * stdlib/stdlib.h: Likewise.
9380 * string/argz.h: Likewise.
9381 * string/bits/string2.h: Likewise.
9382 * string/bits/string3.h: Likewise.
9383 * sysdeps/alpha/fpu/bits/mathinline.h: Likewise.
9384 * sysdeps/generic/inttypes.h: Likewise.
9385 * sysdeps/generic/machine-lock.h: Likewise.
9386 * sysdeps/generic/machine-sp.h: Likewise.
9387 * sysdeps/i386/fpu/bits/mathinline.h: Likewise.
9388 * sysdeps/i386/i486/bits/string.h: Likewise.
9389 * sysdeps/ia64/fpu/bits/mathinline.h: Likewise.
9390 * sysdeps/mach/alpha/machine-lock.h: Likewise.
9391 * sysdeps/mach/alpha/machine-sp.h: Likewise.
9392 * sysdeps/mach/i386/machine-lock.h: Likewise.
9393 * sysdeps/mach/powerpc/machine-lock.h: Likewise.
9394 * sysdeps/mach/powerpc/machine-sp.h: Likewise.
9395 * sysdeps/powerpc/fpu/bits/mathinline.h: Likewise.
9396 * sysdeps/s390/bits/string.h: Likewise.
9397 * sysdeps/s390/fpu/bits/mathinline.h: Likewise.
9398 * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
9399 * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Likewise.
9400 * sysdeps/unix/sysv/linux/bits/sigset.h: Likewise.
9401 * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
9402 * sysdeps/unix/sysv/linux/sys/sysmacros.h: Likewise.
9403 * sysdeps/x86_64/fpu/bits/mathinline.h: Likewise.
9404 * wcsmbs/bits/wchar2.h: Likewise.
9405 * wcsmbs/wchar.h: Likewise.
9406 * stdlib/gmp.h: Likewise. Include <features.h> to get
9407 __extern_inline definition.
9408
6b2665f5
UD
94092007-03-15 Jakub Jelinek <jakub@redhat.com>
9410
b037a293
UD
9411 * locale/programs/ld-ctype.c (find_translit): Return NULL if ctype is
9412 NULL.
9413
6b2665f5
UD
9414 [BZ #3919]
9415 * math/libm-test.inc (log_test): Test -Inf and NaN.
9416 (log10_test, log1p_test, log2_test): Test -Inf.
9417 * sysdeps/i386/fpu/e_log.S (__ieee754_log): Don't raise
9418 FE_INVALID when argument is qNaN.
9419 * sysdeps/i386/fpu/e_logl.S (__ieee754_logl): Likewise.
9420 * sysdeps/i386/fpu/e_logf.S (__ieee754_logf): Likewise.
9421 * sysdeps/x86_64/fpu/e_logl.S (__ieee754_logl): Likewise.
9422 * sysdeps/x86_64/fpu/e_log10l.S (__ieee754_log10l): Replace
9423 andb $1, %ah with testb $1, %ah, don't test for parity, instead
9424 testb $4, %ah and jump if non-zero.
9425 * sysdeps/x86_64/fpu/e_log2l.S (__ieee754_log2l): Likewise.
9426 * sysdeps/x86_64/fpu/s_log1pl.S (__log1pl): Likewise.
9427
44969f17
UD
9428 [BZ #4101]
9429 * argp/argp-help.c (hol_cluster_cmp): Fix comparisons used to find
9430 ancestors with the same depths.
9431 Patch by Niels Moeller <nisse@lysator.liu.se>.
9432 (filter_doc): Don't crash if argp is NULL.
9433 * argp/Makefile (tests): Add tst-argp2.
9434 * argp/tst-argp2.c: New test.
9435
05eb8975
UD
9436 [BZ #4130]
9437 * login/utmp_file.c (setutent_file): Use O_LARGEFILE for
9438 open_not_cancel_2.
9439 (updwtmp_file): Likewise.
9440
6cb988fa
UD
9441 [BZ #4181]
9442 * inet/inet6_opt.c (add_padding): Only insert padding if npad > 0.
9443 (inet6_opt_append): Don't check extlen is big enough if extbuf
9444 is NULL.
9445 (inet6_opt_finish): Likewise.
9446 * inet/Makefile (tests): Add test-inet6_opt.
9447 * inet/test-inet6_opt.c: New test.
9448
9449 * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Never
9450 reallocate the buffer, instead fail for MSG_TRUNC or for EBUSY
9451 NLMSG_ERR. Instead use a page sized buffer.
9452 * sysdeps/unix/sysv/linux/check_pf.c (make_request): Use page sized
9453 buffer.
9454
aea1d19e
RH
94552007-03-14 Richard Henderson <rth@redhat.com>
9456
b6df547c
RH
9457 * sysdeps/alpha/fpu/s_llround.c: New file.
9458 * sysdeps/alpha/fpu/s_llroundf.c: New file.
9459 * sysdeps/alpha/fpu/s_lround.c: New file.
9460 * sysdeps/alpha/fpu/s_lroundf.c: New file.
9461 * sysdeps/alpha/fpu/s_round.c: New file.
9462 * sysdeps/alpha/fpu/s_roundf.c: New file.
9463 * sysdeps/alpha/fpu/s_trunc.c: New file.
9464 * sysdeps/alpha/fpu/s_truncf.c: New file.
9465
aea1d19e
RH
9466 * sysdeps/alpha/fpu/s_ceil.c: Rewrite without branches.
9467 * sysdeps/alpha/fpu/s_ceilf.c: Likewise.
9468 * sysdeps/alpha/fpu/s_floor.c: Likewise.
9469 * sysdeps/alpha/fpu/s_floorf.c: Likewise.
9470 * sysdeps/alpha/fpu/s_rint.c: Likewise.
9471 * sysdeps/alpha/fpu/s_rintf.c: Likewise.
9472
9473 * sysdeps/alpha/fpu/s_fmax.S: New file.
9474 * sysdeps/alpha/fpu/s_fmaxf.S: New file.
9475 * sysdeps/alpha/fpu/s_fmin.S: New file.
9476 * sysdeps/alpha/fpu/s_fminf.S: New file.
9477 * sysdeps/alpha/fpu/s_isnan.c: New file.
9478 * sysdeps/alpha/fpu/s_isnanf.c: New file.
9479 * sysdeps/alpha/fpu/s_llrint.c: New file.
9480 * sysdeps/alpha/fpu/s_llrintf.c: New file.
9481 * sysdeps/alpha/fpu/s_lrint.c: New file.
9482 * sysdeps/alpha/fpu/s_lrintf.c: New file.
9483 * sysdeps/alpha/fpu/s_nearbyint.c: New file.
9484 * sysdeps/alpha/fpu/s_nearbyintf.c: New file.
9485
9486 * sysdeps/alpha/fpu/bits/mathinline.h (__floorf, __floor): Remove.
9487 (__fdimf, fdimf, __fdim, fdim): Remove.
9488 (__signbitf, __signbit, __signbitl): Use gcc builtin if available.
9489 (__isnanf, __isnan, __isnanl): New.
9490
9e43b50d
RH
94912007-03-13 Richard Henderson <rth@redhat.com>
9492
9493 * sysdeps/ieee754/ldbl-128/Makefile: New file.
9494
62789da3
RH
94952007-03-13 Richard Henderson <rth@redhat.com>
9496
9497 * sysdeps/alpha/Makefile (sysdep-CFLAGS): Force dynamic rounding.
9498 * sysdeps/alpha/fpu/bits/mathinline.h (__signbitl): New.
9499 * sysdeps/alpha/fpu/libm-test-ulps: Regenerate.
9500 * sysdeps/unix/sysv/linux/alpha/alphaev6/fpu/Implies: New file.
9501 * sysdeps/unix/sysv/linux/alpha/alphaev67/fpu/Implies: New file.
9502 * sysdeps/unix/sysv/linux/alpha/fpu/Implies: New file.
9503
47dbe62b
RH
95042007-03-13 Richard Henderson <rth@redhat.com>
9505
37f40235 9506 * elf/dl-support.c (_dl_aux_init): Honor DL_PLATFORM_AUXV.
47dbe62b
RH
9507 * sysdeps/unix/sysv/linux/alpha/dl-auxv.h: New file.
9508 * sysdeps/unix/sysv/linux/alpha/dl-support.c: New file.
9509 * sysdeps/unix/sysv/linux/alpha/dl-sysdep.c (__libc_alpha_cache_shape):
9510 Move to dl-auxv.h; initialize instead of extern weak.
9511 (DL_PLATFORM_AUXV): Move to dl-auxv.h; don't test for undef
9512 weak symbol.
9513 * sysdeps/unix/sysv/linux/alpha/sysconf.c (__libc_alpha_cache_shape):
9514 Extern instead of initialized.
9515
b8097bed
RH
95162007-03-13 Richard Henderson <rth@redhat.com>
9517
9518 * sysdeps/unix/sysv/linux/alpha/sigsuspend.S: Add support for
9519 __sigsuspend_nocancel.
9520
6bf4a686
UD
95212007-03-06 Ulrich Drepper <drepper@redhat.com>
9522
9523 * sysdeps/posix/getaddrinfo.c (get_scope): Correct test for
9524 172.16/12 address range.
9525
0b3b1a0c
UD
95262007-03-02 Jakub Jelinek <jakub@redhat.com>
9527
9528 * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Retry with
9529 a new netlink socket if NLMSG_ERR -EBUSY is seen after some MSG_TRUNC
9530 message.
9531
8f3edfee
UD
95322007-03-01 Jakub Jelinek <jakub@redhat.com>
9533
c1c5e654 9534 [BZ #4069]
8f3edfee
UD
9535 * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Check for NaN
9536 earlier.
9537 * math/libm-test.inc (pow_test): Add more tests involving NaNs.
9538
9539 * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Avoid invalid exception
9540 for x qNaN and y either +-inf or non-integer value.
9541 * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Likewise.
9542 * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.
9543 * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
9544
245a1481
UD
95452007-02-10 Mike Frysinger <vapier@gentoo.org>
9546
9547 * sysdeps/unix/sysv/linux/sh/Makefile: Remove sys/io.h
9548 from sysdep_headers.
9549
c217692b
UD
95502007-02-28 Jakub Jelinek <jakub@redhat.com>
9551
9552 * time/tzfile.c (find_transition): Instead of a linear search try to
9553 guess the transition index, use a linear search if the result is at
9554 most 10 transitions away from the guess or binary search otherwise.
9555
fe64626c
JJ
95562007-02-27 Jakub Jelinek <jakub@redhat.com>
9557
9558 * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Fix
9559 memory reallocation.
9560
0f7769f7
UD
95612007-02-21 Ulrich Drepper <drepper@redhat.com>
9562
621c133d
UD
9563 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Add branch predictions
9564 and fix some typos.
9565 Optimize use of TOLOWER.
9cf147d8 9566
cdfd61e1
UD
9567 [BZ #3325]
9568 * sysdeps/i386/fpu/e_fmodf.S: Revert last changes, keep using fprem.
9569 * sysdeps/i386/fpu/e_fmodl.c: Likewise.
9570 * sysdeps/i386/fpu/e_fmod.S: Likewise.
9571
8889e7aa
UD
9572 [BZ #3458]
9573 * sysdeps/unix/sysv/linux/posix_madvise.c: New file.
9574 * sysdeps/unix/sysv/linux/syscalls.list: Remove posix_madvise entry.
9575
63a2f305
UD
9576 [BZ #4076]
9577 * io/ftw.c (ftw_startup): Handle special case of FTW_CHDIR in /.
9578 (open_dir_stream): Likewise.
9579 * io/Makefile (tests): Add bug-ftw5.
c536b9b8 9580 * io/bug-ftw5.c: New file.
63a2f305 9581
c8703f88
UD
9582 * nscd/hstcache.c (cache_addhst): Remove unnecessary conditional.
9583 * nscd/servicescache.c (cache_addserv): Likewise.
9584
9585 * nscd/grpcache.c (cache_addgr): In case a record changed on
9586 refresh, adjust key_copy.
9587
61705e06
UD
9588 [BZ #4074]
9589 * nscd/pwdcache.c (cache_addpw): In case a record changed on
9590 refresh, adjust key_copy.
9591
0f7769f7
UD
9592 [BZ #4070]
9593 * stdio-common/printf_fp.c (___printf_fp): Handle a few more
0f7769f7 9594 special cases.
8889e7aa 9595 * stdio-common/tfformat.c (sprint_doubles): Some more tests.
0f7769f7 9596
3979024a
UD
95972007-02-19 Ulrich Drepper <drepper@redhat.com>
9598
4c02bf1a
UD
9599 * stdio-common/printf_fp.c (___printf_fp): Cleanups and minor
9600 optimization.
9601
3979024a
UD
9602 * stdio-common/vfscanf.c: Small cleanups throughout.
9603
821d3e70
UD
96042007-02-18 Ulrich Drepper <drepper@redhat.com>
9605
2484468b
UD
9606 [BZ #3325]
9607 * sysdeps/i386/fpu/e_fmodf.S: Use fprem1 instead of fprem.
9608 * sysdeps/i386/fpu/e_fmodl.c: Likewise.
9609 * sysdeps/i386/fpu/e_fmod.S: Likewise.
9610 Patch by Jared Casper <jaredcasper@gmail.com>.
9611
858ee15d
UD
9612 * sysdeps/unix/closedir.c: Outside libc don't use locking.
9613 * sysdeps/unix/opendir.c: Likewise.
9614 * sysdeps/unix/readdir.c: Likewise.
9615
ecb72bd5
UD
9616 [BZ #2211]
9617 * stdio-common/vfscanf.c: Handle localized digits etc for floating
9618 point numbers.
9619 Patch mostly by Hamed Malek <hamed@farsiweb.info>.
9620
ac2ca022
UD
9621 * stdio-common/vfscanf.c: Fix problems in width accounting.
9622 * stdio-common/tst-sscanf.c (double_tests): New tests.
9623 (main): Hook them up.
9624
e9bb5246 9625 * stdio-common/vfscanf.c: Remove unused WIDTH handling.
da50f001 9626 More simplifications of floating-point reader.
e9bb5246 9627
821d3e70
UD
9628 * stdio-common/Makefile (tests): Add tst-swscanf.
9629 * stdio-common/tst-sscanf.c: Make tests usable for swscanf
9630 testing.
9631 * stdio-common/tst-swscanf.c: New file.
9632
07fb5185
UD
96332007-02-17 Ulrich Drepper <drepper@redhat.com>
9634
9138cc0b
UD
9635 [BZ #2633]
9636 * libio/stdio.h: Define struct _IO_FILE in global namespace.
9637 * setjmp/setjmp.h: Define __jmp_buf_tag in global namespace.
9638 Remove using for __jmp_buf_tag.
9639 * locale/locale.h (struct lconv): Also define in std namespace.
9640 * wcsmbs/wchar.h: Move using declaration for tm out of namespace.
9641
6818d837
UD
9642 [BZ #3842]
9643 * sysdeps/posix/euidaccess.c [_LIBC] (euidaccess): Remove shortcut
9644 using __libc_enable_secure.
9645
15c4b5a4
UD
9646 [BZ #3818]
9647 * sysdeps/unix/sysv/linux/sys/acct.h (struct acct_v3): Define.
9648
5e9e9c14
UD
9649 [BZ #3745]
9650 * locale/programs/ld-collate.c (handle_ellipsis): Fix generation
9651 of names for ellipsises.
9652
07fb5185
UD
9653 [BZ #3348]
9654 * malloc/memusage.sh: Cleanups.
9655 * debug/xtrace.sh: Quoting and trap changes.
9656
8c6d1043
UD
96572007-02-16 Ulrich Drepper <drepper@redhat.com>
9658
07fb5185
UD
9659 * locale/iso-3166.def: Add Jersey, Guernsey, and Isle Of Man entries.
9660
93e66914 9661 * locale/iso-3166.def: Update entry for Serbia.
93e36434
UD
9662 * locale/iso-4217.def: Define RSD, remove CSD.
9663
ad0b348c
UD
9664 * sysdeps/x86_64/bits/atomic.h: One more change, this time for 16-
9665 and 64-bit operations.
9666
9667 [BZ #4040]
9668 * sysdeps/i386/i486/bits/atomic.h: One more change, this time for
9669 16-bit operations.
9670
8c6d1043
UD
9671 * nscd/nscd.c (parse_opt): One more conversion to use send instead
9672 of writev.
9673
987f54c6
UD
96742007-02-15 Ulrich Drepper <drepper@redhat.com>
9675
b3715c05
UD
9676 [BZ #3991]
9677 * assert/assert.h (assert): Simplify.
9678 (assert_perror): Likewise.
9679 Patch by Israel G. Lugo <ilugo@bridonsecurity.com>.
9680
6eea8e0d
UD
9681 * nscd/nscd_helper.c (open_socket): Don't send padding bytes from
9682 reqdata.
9683
987f54c6
UD
9684 * sysdeps/unix/sysv/linux/x86_64/send.c (__libc_send): Cosmetic
9685 change: don't pass NULL in place of an integer.
9686
3dc08a7e
UD
96872007-02-02 Bruno Haible <bruno@clisp.org>
9688
06c17c78
UD
9689 [BZ #3954]
9690 * iconvdata/ksc5601.c (__ksc5601_sym_to_ucs, __ksc5601_sym_from_ucs):
9691 Add mapping for U+327E.
9692 * iconvdata/ksc5601.h (KSC5601_SYMBOL): Increment.
9693 * iconvdata/johab.c (BODY for FROM_LOOP, BODY for TO_LOOP): Enable
9694 mapping of 0xD9 0xE8.
9695 * iconvdata/uhc.c (BODY for FROM_LOOP, BODY for TO_LOOP): Disable
9696 mapping of U+327E.
9697 Reported by Jungshik Shin <jungshik@google.com>.
9698
9699 [BZ #3955]
3dc08a7e
UD
9700 * iconvdata/johab.c (BODY for FROM_LOOP, BODY for TO_LOOP): Enable
9701 mapping of 0xD9 0xE6 and of 0xD9 0xE7.
9702 Reported by Jungshik Shin <jungshik@google.com>.
9703
a810e68c
UD
97042007-02-14 Ulrich Drepper <drepper@redhat.com>
9705
9706 * sysdeps/x86_64/bits/atomic;h: Fix asm parameters for some
9707 byte variants.
9708
9709 [BZ #4040]
9710 * sysdeps/i386/i486/bits/atomic.h: Fix asm parameters for some
9711 byte variants. Patch mostly be tom@tommay.net.
9712
05f135ba
UD
97132007-02-14 Jakub Jelinek <jakub@redhat.com>
9714
9715 [BZ #3996]
9716 * posix/glob.c (attribute_hidden): Define if not defined.
9717 (glob): Unescape dirname, filename or username when needed and not
9718 GLOB_NOESCAPE. Handle \/ correctly. Handle GLOB_MARK if filename
9719 is NULL. Handle unescaped [ in pattern without closing ].
9720 Don't pass GLOB_CHECK down to recursive glob for directories.
9721 (__glob_pattern_type): New function.
9722 (__glob_pattern_p): Implement using __glob_pattern_type.
9723 (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
9724 characters and backslashes if not GLOB_NOESCAPE or unterminated [.
9725 Remove unreachable code.
9726 * posix/globtest.sh: Add a couple of new tests.
9727
2f699967
UD
97282007-02-13 Ulrich Drepper <drepper@redhat.com>
9729
9730 * po/ru.po: Update from translation team.
9731
3a7cd5b4
JJ
97322007-02-12 Jakub Jelinek <jakub@redhat.com>
9733
9734 * sysdeps/i386/bits/byteswap.h (__bswap_32): Add __amdfam10__
9735 to the list of i486+ CPUs.
9736 * sysdeps/x86_64/bits/byteswap.h (__bswap_32): Likewise.
9737
2f978feb
UD
97382007-02-12 Ulrich Drepper <drepper@redhat.com>
9739
9740 * elf/rtld.c (RESOLVE_MAP): Always return bootstrap_map reference.
9741 * elf/Makefile ($(objpfx)ld.so): Check that ld.so has no undefined
9742 references.
9743
2bbb7d5b
UD
97442007-02-09 Ulrich Drepper <drepper@redhat.com>
9745
5ed61e0f
UD
9746 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Remove incorrect comment.
9747
2bbb7d5b
UD
9748 * resolv/res_init.c (res_setoptions): Recognize edns0 option.
9749 * resolv/res_mkquery.c: Define __res_nopt.
9750 * resolv/res_query.c (__libc_res_nquery): If RES_USE_EDNS0 is set
9751 try adding EDNS0 record.
9752 * resolv/res_send.c (send_dg): If request failed with FORMERR and
9753 EDNS0 record was send make sure we don't try it again.
9754 * resolv/resolv.h: Define RES_F_EDNS0ERR and RES_USE_EDNS0.
9755 * include/resolv.h: Declare __res_nopt.
9756
00458b5b
UD
97572007-02-08 Jakub Jelinek <jakub@redhat.com>
9758
9759 [BZ #3944]
9760 * time/strptime_l.c (__strptime_internal): Set have_mon for
9761 %b/%B/%h. Set have_mon and have_mday if tm_mon and tm_mday
9762 have been computed from tm_yday and tm_year. Don't crash
9763 in day_of_the_week or day_of_the_year if not have_mon
9764 and tm_mon contains bogus value.
9765 * time/Makefile (tests): Add tst-strptime3.
9766 * time/tst-strptime3.c: New test.
9767
784aacea
UD
97682007-02-05 Jakub Jelinek <jakub@redhat.com>
9769
9770 [BZ #3957]
9771 * posix/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
9772 bit for RE_HAT_LISTS_NOT_NEWLINE.
9773 (build_charclass_op): Remove bogus comment.
9774 * posix/Makefile (tests): Add bug-regex27 and bug-regex28.
9775 * posix/bug-regex27.c: New test.
9776 * posix/bug-regex28.c: New test.
9777
bf7a2463
UD
97782007-02-03 Ulrich Drepper <drepper@redhat.com>
9779
9780 * po/sv.po: Update from translation team.
9781
f2ccf983
UD
97822007-02-02 Ulrich Drepper <drepper@redhat.com>
9783
9784 * nscd/nscd_helper.c (open_socket): Minor size optimization.
9785
73f50d5a
UD
97862007-02-02 Jakub Jelinek <jakub@redhat.com>
9787
9788 * include/locale.h (__uselocale): Add libc_hidden_proto.
9789 * locale/uselocale.c (__uselocale): Add libc_hidden_def.
9790
f6bf9e59
JJ
9791 * nscd/nscd_helper.c (open_socket): Use __gettimeofday instead of
9792 gettimeofday.
9793
4a44ce79
UD
97942007-02-01 Ulrich Drepper <drepper@redhat.com>
9795
9796 * sysdeps/unix/sysv/linux/i386/sysdep.h (PTR_MANGLE): Roll value before
9797 returning.
9798 (PTR_DEMANGLE): Real definition now that it's not the same as
9799 PRT_MANGLE anymore.
9800 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
9801
9802 * string/strerror_l.c: New file.
9803 * string/Makefile (routines): Add strerror_l.
9804 * string/string.h: Declare strerror_l.
9805 * string/Versions: Export strerror_l for GLIBC_2.6.
9806
58a2d52e
UD
98072007-01-31 Ulrich Drepper <drepper@redhat.com>
9808
9809 * nscd/nscd_helper.c (open_socket): Now takes request type and key
9810 as parameter. Construct request record. Try sending request
9811 before the first poll use, it usually succeeds. Adjust all
9812 callers.
9813 * nscd/nscd-client.h: Define MAXKEYLEN.
4a44ce79 9814 * nscd/connections.c (nscd_run): Don't define MAXKEYLEN here.
58a2d52e 9815
1a77d37f
JJ
98162007-01-31 Jakub Jelinek <jakub@redhat.com>
9817
9818 * nscd/nscd-client.h (__nscd_cache_search): Remove const qualifier
9819 from return value.
9820 * nscd/nscd_helper.c: Include string.h.
9821 (__nscd_cache_search): Remove const qualifier from return value.
9822 On strict alignment architectures check hash entry and data head
9823 alignment.
9824 * nscd/nscd_getpw_r.c (nscd_getpw_r): Don't crash or fail because
9825 mmapped data during GC cycle contains garbage. If
9826 __nscd_drop_map_ref fails, decrement mapped->counter when returning
9827 error or if retrying with NO_MAPPING, only __nscd_unmap if counter
9828 dropped to 0.
9829 * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
9830 * nscd/nscd_initgroups.c (__nscd_getgrouplist): Likewise.
9831 * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
9832 * nscd/nscd_getai.c (__nscd_getai): Likewise.
9833 * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
9834
ee314200
UD
98352007-01-30 Ulrich Drepper <drepper@redhat.com>
9836
9837 * misc/hsearch_r.c (hdestroy_r): Remove unnecessary test.
9838
14c8bf3b
UD
98392007-01-26 Ulrich Drepper <drepper@redhat.com>
9840
9841 * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Use register
9842 names not numbers in cfi_*.
9843
d2708e67
AJ
98442007-01-26 Andreas Jaeger <aj@suse.de>
9845
9846 * sysdeps/unix/sysv/linux/sys/personality.h (ADDR_NO_RANDOMIZE,
14c8bf3b 9847 ADDR_LIMIT_3GB, PER_LINUX_32BIT, PER_LINUX32_3GB): Add.
d2708e67
AJ
9848 Correct values of PER_HPUX and PER_OSF4.
9849
7fbc8784
UD
98502007-01-24 Ulrich Drepper <drepper@redhat.com>
9851
8aaf53ee 9852 * elf/dl-minimal.c: Undefine _itoa first.
7fbc8784
UD
9853 * stdio-common/_itoa.h: Define _itoa and _fitoa for 64-bit platforms.
9854 * malloc/mtrace.c: Revert last change.
9855 * posix/wordexp.c: Likewise.
9856
9d6cde3d
UD
98572007-01-24 Jakub Jelinek <jakub@redhat.com>
9858
9859 * sysdeps/i386/bits/byteswap.h (__bswap_32): Add __nocona__, __core2__
9860 and __geode__ to the list of i486+ CPUs.
9861 * sysdeps/x86_64/bits/byteswap.h (__bswap_32): Likewise.
9862
c1f0486a
UD
98632007-01-23 Ulrich Drepper <drepper@redhat.com>
9864
9865 * stdio-common/_itoa.c: Include <limits.h>.
9866 * stdio-common/_itowa.c: Likewise.
9867
6cae3957
UD
98682007-01-22 Ulrich Drepper <drepper@redhat.com>
9869
765bbb24
UD
9870 * stdio-common/_itowa.c: Don't compile _itowa for 64-bit
9871 platforms.
9872 * stdio-common/_itoa.c: Don't compile in _itoa and _fitoa for
9873 64-bit platforms.
9874 * malloc/mtrace.c (tr_where): Use _fitoa_word instead of _fitoa if
9875 possible.
9876 * posix/wordexp.c (parse_arith): Use _itoa_word instead of _itoa
9877 if possible.
9878
6cae3957
UD
9879 [BZ #3902]
9880 * stdio-common/_itoa.c (_itoa): Make sure at least a zero is emitted.
9881 * stdio-common/Makefile (tests): Add bug17.
9882 * stdio-common/bug17.c: New file.
9883
ddaafd04
UD
98842007-01-19 Ulrich Drepper <drepper@redhat.com>
9885
9886 * iconvdata/brf.c: New file.
439201de
UD
9887 * iconvdata/testdata/BRF: New file.
9888 * iconvdata/testdata/BRF..UTF8: New file.
9889 Contributed by Samuel Thibault <samuel.thibault@ens-lyon.org>.
ddaafd04
UD
9890 * iconvdata/Makefile: Add rules to build BRF.
9891 * iconvdata/TESTS: Add BRF entry.
9892 * iconvdata/gconv-modules: Likewise.
9893 * iconvdata/tst-tables.sh: Likewise.
ddaafd04 9894
9e6e344e
UD
98952007-01-18 Anton Nikishaev <anton.nik@gmail.com>
9896
9897 * wcsmbs/wchar.h (wcstoll): Fix comment, function returns value of
9898 type `long long int', not `long int'.
9899 (wcstoq): Likewise.
9900
299f7b0f
UD
99012007-01-18 Ulrich Drepper <drepper@redhat.com>
9902
9903 * scripts/gen-as-const.awk: Add cast to long to avoid int promotion
9904 of values on 64-bit platforms which are too large.
9905
cd8127cc
JJ
99062007-01-12 Steven Munroe <sjmunroe@us.ibm.com>
9907 Joe Kerian <jkerian@us.us.ibm.com>
9908
9909 [BZ #2749]
9910 * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Include
9911 <math_ldbl_opt.h>. Remove weak_alias. Use long_double_symbol macro.
9912 (__copysignl): Use signbit() for comparison.
9913 * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c (__fabsl): Correct parms for
9914 SET_LDOUBLE_WORDS64.
9915
9916 [BZ #2423, #2749]
9917 * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Don't include <fenv_libc.h>.
9918 (__ceill): Remove calls to fegetround(), fesetround().
9919 * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
9920 * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
9921 * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
9922
b3acfdf7
JJ
99232007-01-17 Jakub Jelinek <jakub@redhat.com>
9924
4a2e03c6
JJ
9925 * nscd/nscd_getserv_r.c (nscd_getserv_r): Fix pastos.
9926
b3acfdf7
JJ
9927 * sysdeps/unix/sysv/linux/getdents.c (offsetof): Remove.
9928
1476bce6
UD
99292007-01-17 Ulrich Drepper <drepper@redhat.com>
9930
9931 * sysdeps/unix/sysv/linux/fatal-prepare.h: Use PTHFCT_CALL to
9932 demangle pointer.
9933 * csu/libc-start.c: Likewise.
9934
d78bce1c
UD
99352007-01-16 Ulrich Drepper <drepper@redhat.com>
9936
9937 * sysdeps/posix/system.c: Remove NO_WAITPID support, it cannot
9938 really work anyway.
9939
1bd79025
UD
99402007-01-15 Ulrich Drepper <drepper@redhat.com>
9941
000b027e
UD
9942 * nscd/connections.c (servinfo): Renamed to reqinfo. Change all
9943 users.
9944 (handle_request): Remove unnecessary tests.
9945
1bd79025
UD
9946 * nscd/cache.c (cache_add): Record the failure to add to the cache.
9947
d68f5d2c
JJ
99482007-01-15 Jakub Jelinek <jakub@redhat.com>
9949
9950 * soft-fp/op-common.h (FP_TRUNC): When truncating a NaN, clear
9951 workbits in semi-raw fraction.
9952
9953 * math/test-misc.c: Add new tests.
9954
99552007-01-14 Steven Munroe <sjmunroe@us.ibm.com>
9956
9957 * math/basic-test.c: Include test-skeleton.c.
9958 (TEST_TRUNC): Define.
9959 (truncdfsf_test, trunctfsf_test, trunctfdf_test): New.
9960 (main): Rename to ...
9961 (do_test): ...this. Run new tests.
9962 (TEST_FUNCTION): Define.
9963
99642006-10-05 Steven Munroe <sjmunroe@us.ibm.com>
9965 Joe Kerian <jkerian@us.us.ibm.com>
9966
9967 [BZ #2749]
9968 * soft-fp/op-4.h (__FP_FRAC_SUB_3, __FP_FRAC_SUB_4): Correct borrow
9969 handling for high words.
9970 * soft-fp/op-common.h (_FP_OVERFLOW_SEMIRAW): Always set inexact
9971 and overflow for infinity.
9972
4e35ef2c
UD
99732007-01-15 Ulrich Drepper <drepper@redhat.com>
9974
2a1dea97
UD
9975 * nscd/connections.c (handle_request): Add a __builtin_expect.
9976
9691d83c
UD
9977 * nscd/connections.c (serv2db): Change type into structure which
9978 also says whether this is a request for data. Renamed to
9979 servinfo. All users changed.
9980 (handle_request): Much simpler test whether we should search the cache.
9981
49ee6d79
UD
9982 * nscd/connections.c (handle_request): Fix thinko in selinux test
9983 invocation.
9984
4e35ef2c
UD
9985 * sysdeps/generic/ldsodefs.h: Define DL_LOOKUP_SCOPE_LOCK.
9986 * elf/dl-lookup.c (add_dependency): If scope map is locked, unlock
9987 it before getting dl_load_lock and then relock.
9988 (_dl_lookup_symbol_x): Pass flags to add_dependency.
9989 When rerunning _dl_lookup_symbol_x, compute symbol_scope again in
9990 case we unlocked the scope.
9991 * elf/dl-runtime.c (_dl_fixup): Pass DL_LOOKUP_SCOPE_LOCK to
9992 _dl_lookup_symbol_x in case we locked the scope.
9993 (_dl_profile_fixup): Likewise.
9994 * elf/dl-sym.c (do_sym): In flags passed to call_dl_lookup, also
9995 set DL_LOOKUP_SCOPE_LOCK.
9996
23691ab2
UD
99972007-01-13 Ulrich Drepper <drepper@redhat.com>
9998
fb453d08
UD
9999 * inet/Makefile: Define CFLAGS-getsrvbynm_r.c and
10000 CFLAGS-getsrvbynpt_r.c.
10001 * nscd/getsrvbynm_r.c: New file.
10002 * nscd/getsrvbypt_r.c: New file.
10003 * nscd/nscd_getserv_r.c: New file.
10004 * nscd/servicescache.c: New file.
10005 * nscd/Makefile (routines): Add nscd_getserv_r.
10006 (nscd-modules): Add getsrvbynm_r, getsrvbypt_r, and servicescache.
10007 Define CFLAGS-servicescache.c, CFLAGS-getsrvbynm_r.c, and
10008 CFLAGS-getsrvbypt_r.c.
10009 * nscd/cache.c (prune_cache): Rewrite to get re-add function from
10010 table. Add entries for services database.
10011 * nscd/connections.c (serv2str): Mark as const. Add entries for
10012 services database.
10013 (dbs): Add .reset_res and servdb initialization.
10014 (serv2db): Add entries for services database.
10015 (verify_persistent_db): Accept dbnr == servdb.
10016 (invalidate_cache): Rewrite database name recognition to use a table.
10017 Call res_init() if .reset_res is set for database.
10018 (handle_request): Add code to handle services database.
10019 * nscd/gai.c: Don't define __getservbyname_r.
10020 * nscd/nscd-client.h (request_type): Remove LASTDBREQ, add
10021 GETSERVBYNAME, GETSERVBYPORT, GETFDSERV.
10022 (serv_response_header): Define.
10023 (struct datahead): Add serv_response_header member.
10024 * nscd/nscd.c (parse_opt): Rewrite parsing of -i parameter value
10025 using table.
10026 * nscd/nscd.conf: Add entries for services database.
10027 * nscd/nscd.h: Adjust declaration of dbnames and serv2str.
10028 Declare serv_iov_disabled.
10029 Declare addservbyname, readdservbyname, addservbyport, and
10030 readdservbyport.
10031 * nscd/nscd_conf.c (dbnames): Mark as const. Add services entry.
10032 (find_db): Fix error message.
10033 * nscd/nscd_proto.h: Declare __nss_not_use_nscd_services,
10034 __nscd_getservbyname_r, and __nscd_getservbyport_r.
10035 * nscd/selinux.c (perms): Add entries for services database.
10036 * nss/Versions: Export __nss_services_lookup with GLIBC_PRIVATE.
10037 * nss/nsswitch.c (__nss_disable_nscd): Also disable services database.
10038
10039 * nscd/grpcache.c: Remove obsolete code. Cleanups.
10040 * nscd/hstcache.c: Likewise.
10041 * nscd/pwdcache.c: Likewise.
10042
b21fa963
UD
10043 * nis/nss_nis/nis-service.c (_nss_nis_getservbyname_r): Correct
10044 computation of keylen.
10045
23691ab2
UD
10046 * include/string.h: Only redefine strndupa if this is really for
10047 libc code.
10048
8980796b
UD
100492007-01-12 Ulrich Drepper <drepper@redhat.com>
10050
4a4a65f2
UD
10051 * nscd/nscd_gethst_r.c: Minor cleanups.
10052
43397eaf
UD
10053 * nscd/connections.c (handle_request): Check selinux permissions
10054 for all non-admin commands.
10055
038a1a9f
UD
10056 * sysdeps/i386/i486/bits/atomic.h: Define
10057 atomic_compare_and_exchange_val_acq,
10058 atomic_compare_and_exchange_bool_acq, and atomic_exchange_and_add
10059 using __sync_* built-ins for gcc >= 4.1.
10060 * sysdeps/x86_64/bits/atomic.h: Likewise.
10061
8980796b
UD
10062 [BZ #3840]
10063 * scripts/check-local-headers.sh: Restrict to testing .o.d, .os.d,
10064 and .oS.d files.
10065
32c075e1
JJ
100662007-01-05 Steven Munroe <sjmunroe@us.ibm.com>
10067
10068 * stdlib/tst-makecontext.c: Include errno.h. Change main()
10069 to do_test(). Define TEST_FUNCTION. Include test-skeleton.c.
10070 (do_test): Check errno and exit(0) if ENOSYS.
10071
100722007-01-11 Jakub Jelinek <jakub@redhat.com>
10073
10074 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix handling of multi-byte
10075 thousands separators.
10076 * stdlib/Makefile: Add rules to build and run tst-strtod4.
10077 * stdlib/tst-strtod4.c: New test.
10078
10079 [BZ #3855]
10080 * stdlib/strtod_l.c (____STRTOF_INTERNAL): 0x. not followed by
10081 hexadecimal digit should accept just the initial 0.
10082 * stdlib/tst-strtod2.c (tests): New variable.
10083 (do_test): Run several tests rather than just one.
10084
11bf311e 100852007-01-11 Jakub Jelinek <jakub@redhat.com>
df859a0c 10086
11bf311e
UD
10087 * sysdeps/i386/soft-fp/sfp-machine.h: Remove.
10088 * sysdeps/x86_64/soft-fp/sfp-machine.h: Likewise.
df859a0c 10089
11bf311e 100902007-01-10 Ulrich Drepper <drepper@redhat.com>
32c075e1 10091
11bf311e
UD
10092 * io/fts.c: Make sure fts_cur is always valid after return from
10093 fts_read.
10094 Patch by Miloslav Trmac <mitr@redhat.com>.
64a0aa0f 10095
11bf311e 100962006-10-27 Richard Sandiford <richard@codesourcery.com>
32c075e1 10097
11bf311e
UD
10098 * elf/elf.h (R_MIPS_GLOB_DAT): Define.
10099 (R_MIPS_NUM): Bump by 1.
32c075e1 10100
11bf311e 101012007-01-03 Jakub Jelinek <jakub@redhat.com>
32c075e1 10102
11bf311e
UD
10103 * posix/execvp.c: Include alloca.h.
10104 (allocate_scripts_argv): Renamed to...
10105 (scripts_argv): ... this. Don't allocate buffer here nor count
10106 arguments.
10107 (execvp): Use alloca if possible.
10108 * posix/Makefile: Add rules to build and run tst-vfork3 test.
10109 * posix/tst-vfork3.c: New test.
32c075e1
JJ
10110
101112007-01-03 Ulrich Drepper <drepper@redhat.com>
10112
10113 * string/Makefile (tst-strxfrm2-ENV): Define.
11bf311e 10114 * stdlib/Makefile (tst-strtod3-ENV): Define.
32c075e1 10115
11bf311e 101162007-01-02 Ulrich Drepper <drepper@redhat.com>
32c075e1 10117
11bf311e
UD
10118 * posix/getconf.c: Update copyright year.
10119 * nss/getent.c: Likewise.
10120 * iconv/iconvconfig.c: Likewise.
10121 * iconv/iconv_prog.c: Likewise.
10122 * elf/ldconfig.c: Likewise.
10123 * catgets/gencat.c: Likewise.
10124 * csu/version.c: Likewise.
10125 * elf/ldd.bash.in: Likewise.
10126 * elf/sprof.c (print_version): Likewise.
10127 * locale/programs/locale.c: Likewise.
10128 * locale/programs/localedef.c: Likewise.
10129 * nscd/nscd.c (print_version): Likewise.
10130 * debug/xtrace.sh: Likewise.
10131 * malloc/memusage.sh: Likewise.
10132 * malloc/mtrace.pl: Likewise.
10133 * debug/catchsegv.sh: Likewise.
64a0aa0f 10134
11bf311e 101352006-12-24 Ulrich Drepper <drepper@redhat.com>
48576885 10136
11bf311e
UD
10137 * malloc/malloc.c (sYSMALLOc): Remove some unnecessary alignment
10138 attempts.
48576885 10139
11bf311e 101402006-12-23 Ulrich Drepper <drepper@redhat.com>
3b6667a4 10141
11bf311e 10142 * posix/wordexp.c: Remove some unnecessary tests.
3b6667a4 10143
33c6de58
UD
101442006-12-22 Gavin Romig-Koch <gavin@redhat.com>
10145
10146 * nis/nss_compat/compat-grp.c (internal_getgrgid_r): Don't
10147 blacklist the group till after we look it up.
10148
fc242bef
UD
101492006-12-21 Ulrich Drepper <drepper@redhat.com>
10150
10151 * include/atomic.h (atomic_forced_read): New macro.
10152
11bf311e
UD
101532006-12-20 SUGIOKA Toshinobu <sugioka@itonet.co.jp>
10154
10155 * sysdeps/unix/sysv/linux/sh/bits/shm.h: New file.
10156
a12dcecc
UD
101572006-12-19 Jakub Jelinek <jakub@redhat.com>
10158
11bf311e
UD
10159 * nss/getXXbyYY_r.c: Include atomic.h.
10160 (INTERNAL (REENTRANT_NAME)): Write startp after start_fct,
10161 add atomic_write_barrier () in between.
10162
a12dcecc
UD
10163 * stdlib/Makefile (tests): Add tst-makecontext.
10164 * stdlib/tst-makecontext.c: New test.
10165
10166 * sysdeps/unix/sysv/linux/powerpc/powerpc32/makecontext.S
10167 (__makecontext): Don't realign uc_mcontext.uc_regs.
10168
11bf311e 101692006-11-28 Jakub Jelinek <jakub@redhat.com>
594d423a 10170
11bf311e
UD
10171 * elf/dl-support.c: Include dl-procinfo.h.
10172 * sysdeps/powerpc/dl-procinfo.h (PPC_PLATFORM_POWER4,
10173 PPC_PLATFORM_PPC970, PPC_PLATFORM_POWER5, PPC_PLATFORM_POWER5_PLUS,
10174 PPC_PLATFORM_POWER6, PPC_PLATFORM_CELL_BE, PPC_PLATFORM_POWER6X):
10175 Define.
10176 (_dl_string_platform): Use PPC_PLATFORM_* macros instead of
10177 hardcoded constants.
10178 * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_platform): Use
10179 PPC_PLATFORM_* macros for array designators.
594d423a 10180
11bf311e 101812006-11-11 Steven Munroe <sjmunroe@us.ibm.com>
594d423a 10182
11bf311e
UD
10183 * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Add 3 new cap
10184 names to the beginning.
10185 (_dl_powerpc_platforms): Add "power6x".
10186 * sysdeps/powerpc/dl-procinfo.h (_DL_HWCAP_FIRST): Decrease.
10187 (HWCAP_IMPORTANT): Add PPC_FEATURE_HAS_DFP.
10188 (_DL_PLATFORMS_COUNT): Increase.
10189 (_dl_string_platform): Handle power6x case.
10190 * sysdeps/powerpc/sysdep.h (PPC_FEATURE_PA6T, PPC_FEATURE_HAS_DFP,
10191 PPC_FEATURE_POWER6_EXT): Define.
10192 (PPC_FEATURE_POWER5, PPC_FEATURE_POWER5_PLUS): Correct Comment.
594d423a 10193
5bcba0ed
UD
101942006-12-18 Jakub Jelinek <jakub@redhat.com>
10195
10196 [BZ #3747]
10197 * stdlib/jrand48_r.c (__jrand48_r): Make sure result is in the
11bf311e 10198 [-2^31 .. 2^31) range.
5bcba0ed
UD
10199 * stdlib/tst-rand48.c (main): Fix expected values for 64-bit
10200 targets.
10201 * stdlib/tst-rand48-2.c: New test.
10202 * stdlib/Makefile (tests): Add tst-rand48-2.
10203
9e1444fc
UD
102042006-12-14 Jakub Jelinek <jakub@redhat.com>
10205
10206 * misc/tst-pselect.c (do_test): Fix sigblock argument.
10207
36775704
UD
102082006-12-14 Ulrich Drepper <drepper@redhat.com>
10209
10210 * misc/tst-pselect.c (do_test): Make sure the helper process is
10211 terminating when the test is aborted.
10212
1e88bd0f
UD
102132006-12-13 Ulrich Drepper <drepper@redhat.com>
10214
11bf311e
UD
10215 * sysdeps/unix/sysv/linux/bits/statvfs.h: Define ST_RELATIME.
10216 * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
10217 Handle relatime mount option.
10218
1e88bd0f
UD
10219 [BZ #2337]
10220 * libio/Makefile (tests): Add tst-setvbuf1.
10221 * libio/tst-setvbuf1.c: New file.
10222
102232006-12-08 Jakub Jelinek <jakub@redhat.com>
10224
10225 [BZ #2337]
10226 * libio/genops.c (__uflow): Fix a typo.
10227 * libio/wfiledoalloc.c (_IO_wfile_doallocate): Don't stat
10228 nor set _IO_LINE_BUF bit here. Size the wide buffer based on
10229 the narrow buffer size.
10230
102312006-11-24 Jakub Jelinek <jakub@redhat.com>
10232
10233 [BZ #2337]
10234 * libio/libio.h (_IO_FLAGS2_USER_WBUF): Define.
10235 * libio/wgenops.c (_IO_wsetb, _IO_wdefault_finish): Test and set
10236 _IO_FLAGS2_USER_WBUF bit in _flags2 instead of _IO_USER_BUF bit
10237 in _flags.
10238 * libio/wstrops.c (_IO_wstr_overflow, enlarge_userbuf,
10239 _IO_wstr_finish): Likewise.
10240 * libio/wmemstream.c (open_wmemstream): Likewise.
10241 * libio/fileops.c (_IO_new_file_close_it): Call _IO_set[bgp]
10242 even for wide streams.
10243
11bf311e 102442006-12-13 Jakub Jelinek <jakub@redhat.com>
1f55ce48 10245
11bf311e
UD
10246 * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S: Include
10247 kernel-features.h.
10248
102492006-12-11 Ulrich Drepper <drepper@redhat.com>
10250
10251 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Parse thousand
10252 separators also if no non-zero digits found.
10253 * stdlib/Makefile (tests): Add tst-strtod3.
1f55ce48 10254
d117c1ce
UD
102552006-12-09 Ulrich Drepper <drepper@redhat.com>
10256
f85fb97b
UD
10257 [BZ #3632]
10258 * include/features.h: Fix comment about default value for
10259 _POSIX_C_SOURCE.
10260
11bf311e
UD
10261 [BZ #3664]
10262 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix test to recognize
10263 empty parsed strings.
10264 * stdlib/Makefile (tests): Add tst-strtod2.
10265 * stdlib/tst-strtod2.c: New file.
10266
10267 [BZ #3673]
10268 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix exp_limit
10269 computation.
10270 * stdlib/Makefile (tests): Add tst-atof2.
10271 * stdlib/tst-atof2.c: New file.
10272
10273 [BZ #3674]
10274 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Adjust exponent value
10275 correctly if removing trailing zero of hex-float.
10276 * stdlib/Makefile (tests): Add tst-atof1.
10277 * stdlib/tst-atof1.c: New file.
10278
a822d9f4
UD
102792006-12-09 Jakub Jelinek <jakub@redhat.com>
10280
11bf311e
UD
10281 * misc/mntent_r.c (__hasmntopt): Check p[optlen] even when p == rest.
10282 Start searching for next comma at p rather than rest.
10283 * misc/Makefile (tests): Add tst-mntent2.
10284 * misc/tst-mntent2.c: New test.
10285
a822d9f4
UD
10286 * misc/getusershell.c (initshells): Check for integer overflows.
10287 Make strings buffer one bigger as fgets always succeeds when second
10288 argument is 1. Don't use calloc for shells array. Disallow
11bf311e 10289 / as shell.
f0d5e1f6 10290
11bf311e 102912006-12-08 Ulrich Drepper <drepper@redhat.com>
f0d5e1f6 10292
11bf311e
UD
10293 * malloc/memusage.c: Handle realloc with new size of zero and
10294 non-NULL pointer correctly.
10295 (me): Really write first record twice.
10296 (struct entry): Make format bi-arch safe.
10297 (dest): Write out more realloc statistics.
10298 * malloc/memusagestat.c (struct entry): Make format bi-arch safe.
32c075e1 10299
11bf311e 103002006-12-05 Jakub Jelinek <jakub@redhat.com>
32c075e1 10301
11bf311e 10302 * nis/nis_subr.c (nis_getnames): Revert last change.
32c075e1 10303
f0d5e1f6
UD
103042006-12-04 Jakub Jelinek <jakub@redhat.com>
10305
10306 * sysdeps/unix/sysv/linux/ttyname.c: Include termios.h.
10307 (ttyname): Use tcgetattr instead of isatty, don't set errno to ENOTTY.
10308 * sysdeps/unix/sysv/linux/ttyname_r.c: Include termios.h.
10309 (__ttyname_r): Use tcgetattr instead of isatty, don't set errno to
10310 ENOTTY.
10311 * io/Makefile: Add rules to build and run tst-ttyname_r test.
10312 * io/tst-ttyname_r.c: New test.
10313
11bf311e 103142006-12-03 Kaz Kojima <kkojima@rr.iij4u.or.jp>
5df4fe08 10315
11bf311e 10316 * sysdeps/unix/sysv/linux/sh/sys/io.h: Removed.
5df4fe08 10317
11bf311e 103182006-11-30 H.J. Lu <hongjiu.lu@intel.com>
ee50871d 10319
11bf311e
UD
10320 * sysdeps/i386/i686/memcmp.S: Use jump table as the base of
10321 jump table entries.
10322
103232006-11-30 Jan Kratochvil <jan.kratochvil@redhat.com>
10324
10325 * sysdeps/unix/sysv/linux/i386/clone.S: Provide CFI for the outermost
10326 `clone' function to ensure proper unwinding stop of gdb.
10327 * sysdeps/unix/sysv/linux/x86_64/clone.S: Likewise.
10328
103292006-12-01 Ulrich Drepper <drepper@redhat.com>
10330
10331 * nscd/nscd.init: Remove obsolete and commented-out -S option
10332 handling.
10333
103342006-11-23 Jakub Jelinek <jakub@redhat.com>
10335
10336 [BZ #3514]
10337 * manual/string.texi (strncmp): Fix pastos from wcscmp description.
10338
10339 [BZ #3515]
10340 * manual/string.texi (strtok): Remove duplicate paragraph.
10341
103422006-12-01 Jan Kratochvil <jan.kratochvil@redhat.com>
10343
10344 * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Fix compatibility with
10345 libgcc not supporting `rflags' unwinding (register # >= 17).
10346
103472006-11-30 Jakub Jelinek <jakub@redhat.com>
10348
10349 * sunrpc/svc_run.c (svc_run): Set my_pollfd to new_pollfd if realloc
10350 succeeded.
10351
103522006-11-29 Daniel Jacobowitz <dan@codesourcery.com>
10353 Jakub Jelinek <jakub@redhat.com>
10354 Jan Kratochvil <jan.kratochvil@redhat.com>
10355
10356 * sysdeps/unix/sysv/linux/x86_64/sigaction.c (restore_rt): Add correct
10357 unwind information.
10358 * sysdeps/unix/sysv/linux/x86_64/Makefile: Provide symbols for
10359 'restore_rt' even in the 'signal' directory.
10360 * sysdeps/unix/sysv/linux/x86_64/ucontext_i.sym: Extend the regs list.
ee50871d 10361
b1a758f3
UD
103622006-11-27 Jakub Jelinek <jakub@redhat.com>
10363
10364 [BZ #3559]
10365 * sunrpc/svc_run.c (svc_run): Fail instead of segfaulting if
11bf311e
UD
10366 malloc crashed. Don't allocate memory unnecessarily in each
10367 loop.
b1a758f3 10368
11bf311e 103692006-10-21 Jakub Jelinek <jakub@redhat.com>
854d1124 10370
11bf311e 10371 * resolv/mapv4v6addr.h (map_v4v6_address): Fix last change.
dfc99a56 10372
11bf311e 103732006-11-20 Ulrich Drepper <drepper@redhat.com>
dfc99a56 10374
11bf311e 10375 * resolv/mapv4v6addr.h (map_v4v6_address): Optimize a bit.
852d657c 10376
11bf311e 103772006-11-18 Bruno Haible <bruno@clisp.org>
852d657c 10378
11bf311e
UD
10379 * sysdeps/unix/sysv/linux/i386/getgroups.c (__getgroups): Invoke
10380 __sysconf only after having tried to call getgroups32.
36c0a636 10381
11bf311e 103822006-11-19 Ulrich Drepper <drepper@redhat.com>
36c0a636 10383
11bf311e
UD
10384 * nss/nss_files/files-hosts.c (LINE_PARSER): Support IPv6-style
10385 addresses for IPv4 queries if they can be mapped.
b1f0c2a6 10386
11bf311e 103872006-11-16 Jakub Jelinek <jakub@redhat.com>
b1f0c2a6 10388
11bf311e
UD
10389 * sysdeps/x86_64/fpu/s_copysignf.S (__copysignf): Switch to .text.
10390 * sysdeps/x86_64/fpu/s_copysign.S (__copysign): Likewise.
10391 (signmask): Add .size directive.
10392 (othermask): Add .type directive.
bef8927a 10393
11bf311e 103942006-11-14 Ulrich Drepper <drepper@redhat.com>
2c53fa20 10395
11bf311e 10396 * po/nl.po: Update from translation team.
854d1124 10397
11bf311e 10398 * timezone/zdump.c: Redo fix for BZ #3137.
3f1e9205 10399
11bf311e 104002006-11-14 Jakub Jelinek <jakub@redhat.com>
bef8927a 10401
11bf311e
UD
10402 * nss/nss_files/files-alias.c (get_next_alias): Set line back
10403 to first_unused after parsing :include: file.
5c2af134 10404
32c075e1 104052006-11-10 Ulrich Drepper <drepper@redhat.com>
e1b37083 10406
11bf311e
UD
10407 * timezone/africa: Update from tzdata2006o.
10408 * timezone/antarctica: Likewise.
10409 * timezone/asia: Likewise.
10410 * timezone/australasia: Likewise.
10411 * timezone/backward: Likewise.
10412 * timezone/europe: Likewise.
10413 * timezone/iso3166.tab: Likewise.
10414 * timezone/northamerica: Likewise.
10415 * timezone/southamerica: Likewise.
10416 * timezone/zone.tab: Likewise.
10417
10418 * time/tzfile.c (__tzfile_read): Extend to handle new file format
10419 on machines with 64-bit time_t.
10420
10421 * timezone/checktab.awk: Update from tzcode2006o.
10422 * timezone/ialloc.c: Likewise.
10423 * timezone/private.h: Likewise.
10424 * timezone/scheck.c: Likewise.
10425 * timezone/tzfile.h: Likewise.
10426 * timezone/tzselect.ksh: Likewise.
10427 * timezone/zdump.c: Likewise.
10428 * timezone/zic.c: Likewise.
10429
10430 [BZ #3483]
10431 * elf/ldconfig.c (main): Call setlocale and textdomain.
10432 Patch mostly by Benno Schulenberg <bensberg@justemail.net>.
10433
10434 [BZ #3480]
10435 * manual/argp.texi: Fix typos.
10436 * manual/charset.texi: Likewise.
10437 * manual/errno.texi: Likewise.
10438 * manual/filesys.texi: Likewise.
10439 * manual/lang.texi: Likewise.
10440 * manual/maint.texi: Likewise.
10441 * manual/memory.texi: Likewise.
10442 * manual/message.texi: Likewise.
10443 * manual/resource.texi: Likewise.
10444 * manual/search.texi: Likewise.
10445 * manual/signal.texi: Likewise.
10446 * manual/startup.texi: Likewise.
10447 * manual/stdio.texi: Likewise.
10448 * manual/sysinfo.texi: Likewise.
10449 * manual/syslog.texi: Likewise.
10450 * manual/time.texi: Likewise.
10451 Patch by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
10452
10453 [BZ #3465]
10454 * sunrpc/clnt_raw.c: Minimal message improvements.
10455 * sunrpc/pm_getmaps.c: Likewise.
10456 * nis/nss_nisplus/nisplus-publickey.c: Likewise.
10457 * nis/nis_print_group_entry.c: Likewise.
10458 * locale/programs/repertoire.c: Likewise.
10459 * locale/programs/charmap.c: Likewise.
10460 * malloc/memusage.sh: Likewise.
10461 * elf/dl-deps.c: Likewise.
10462 * locale/programs/ld-collate.c: Likewise.
10463 * libio/vswprintf.c: Likewise.
10464 * malloc/memusagestat.c: Likewise.
10465 * sunrpc/auth_unix.c: Likewise.
10466 * sunrpc/rpc_main.c: Likewise.
10467 * nscd/cache.c: Likewise.
10468 * locale/programs/repertoire.c: Unify output messages.
10469 * locale/programs/charmap.c: Likewise.
10470 * locale/programs/ld-ctype.c: Likewise.
10471 * locale/programs/ld-monetary.c: Likewise.
10472 * locale/programs/ld-numeric.c: Likewise.
10473 * locale/programs/ld-time.c: Likewise.
10474 * elf/ldconfig.c: Likewise.
10475 * nscd/selinux.c: Likewise.
10476 * elf/cache.c: Likewise.
10477 Patch mostly by Benno Schulenberg <bensberg@justemail.net>.
10478
5c2af134
UD
10479 [BZ #3451]
10480 * sysdeps/i386/fpu/bits/mathinline.h (floor): Make rounding mode
10481 change atomic.
10482 (ceil): Likewise.
10483
11bf311e
UD
104842006-11-10 Jakub Jelinek <jakub@redhat.com>
10485
10486 * string/strxfrm_l.c (STRXFRM): Fix trailing \1 optimization
10487 if N is one bigger than return value.
10488 * string/tst-strxfrm2.c (do_test): Also test strxfrm with l1 + 1
10489 and l1 last arguments, if buf is defined, verify the return value
10490 equals to strlen (buf) and verify no byte beyond passed length
10491 is modified.
10492
104932006-11-10 Ulrich Drepper <drepper@redhat.com>
10494
10495 * po/sv.po: Update from translation team.
10496
37afcf79
UD
104972006-11-09 Ulrich Drepper <drepper@redhat.com>
10498
10499 * sysdeps/unix/sysv/linux/x86_64/sysconf.c (intel_check_word): Add
10500 noinline attribute.
10501
105022006-11-10 Jakub Jelinek <jakub@redhat.com>
10503
10504 * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word): Add
10505 noinline attribute.
10506
11bf311e
UD
10507 * sysdeps/gnu/siglist.c (__old_sys_siglist, __old_sys_sigabbrev):
10508 Use __new_sys_siglist instead of _sys_siglist_internal as
10509 second macro argument.
10510 (_old_sys_siglist): Use declare_symbol_alias macro instead of
10511 strong_alias.
2692deea 10512
11bf311e
UD
105132006-11-09 Ulrich Drepper <drepper@redhat.com>
10514
10515 [BZ #3493]
10516 * posix/unistd.h (sysconf): Remove const attribute.
10517
10518 * sysdeps/posix/getaddrinfo.c (getaddrinfo): Fix test for
10519 temporary or deprecated addresses.
10520 Patch by Sridhar Samudrala <sri@us.ibm.com>.
10521
10522 * string/Makefile (tests): Add tst-strxfrm2.
10523 * string/tst-strxfrm2.c: New file.
10524
105252006-10-09 Jakub Jelinek <jakub@redhat.com>
10526
10527 * elf/dl-debug.c (_dl_debug_initialize): Check r->r_map for 0
10528 rather than r->r_brk.
2692deea
UD
10529
105302006-11-08 Jakub Jelinek <jakub@redhat.com>
10531
11bf311e
UD
10532 * string/strxfrm_l.c (STRXFRM): Do the trailing \1 removal
10533 optimization even if needed > n.
10534
2692deea
UD
10535 * elf/dl-load.c (decompose_rpath): Return bool rather than void.
10536 If l->l_name is on inhibit_rpath list, set sps->dirs to -1 and
10537 return false, otherwise return true.
10538 (cache_rpath): Return decompose_rpath return value.
10539
11bf311e
UD
105402006-11-07 Jakub Jelinek <jakub@redhat.com>
10541
10542 * include/libc-symbols.h (declare_symbol): Rename to...
10543 (declare_symbol_alias): ... this. Add ORIGINAL argument, imply
10544 strong_alias (ORIGINAL, SYMBOL) in asm to make sure it preceedes
10545 .size directive.
10546 * sysdeps/gnu/errlist-compat.awk: Adjust for declare_symbol_alias
10547 changes.
10548 * sysdeps/gnu/siglist.c: Likewise.
10549
105502006-11-03 Steven Munroe <sjmunroe@us.ibm.com>
10551
10552 * sysdeps/powerpc/fpu/bits/mathinline.h
10553 [__LIBC_INTERNAL_MATH_INLINES]: Moved to ...
10554 * sysdeps/powerpc/fpu/math_private.h: ...here. New file.
10555
105562006-11-05 Ulrich Drepper <drepper@redhat.com>
10557
10558 * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word):
10559 Update handling of cache descriptor 0x49 for new models.
10560 * sysdeps/unix/sysv/linux/x86_64/sysconf.c (intel_check_word):
10561 Likewise.
10562
9666e36c
UD
105632006-11-02 Jakub Jelinek <jakub@redhat.com>
10564
10565 * malloc/memusage.c (dest): Reset not_me back to false after
10566 printing statistics.
10567
11bf311e
UD
105682006-11-02 Ulrich Drepper <drepper@redhat.com>
10569
10570 * configure.in: Work around ld --help change and avoid -z relro
10571 test completely if the architecture doesn't care about security.
10572
105732006-11-01 Ulrich Drepper <drepper@redhat.com>
10574
10575 * po/sv.po: Update from translation team.
10576
105772006-10-31 Ulrich Drepper <drepper@redhat.com>
10578
10579 * stdlib/atexit.c (atexit): Don't mark as hidden when used to
10580 generate compatibility version.
10581
105822006-10-29 Ulrich Drepper <drepper@redhat.com>
10583
10584 * configure.in: Relax -z relro requirement a bit.
10585
10586 * po/sv.po: Update from translation team.
10587
105882006-10-29 Jakub Jelinek <jakub@redhat.com>
10589
10590 * elf/dl-sym.c (do_sym): Use RTLD_SINGLE_THREAD_P.
10591 * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Likewise.
10592 * elf/dl-close.c (_dl_close_worker): Likewise.
10593 * elf/dl-open.c (_dl_open_worker): Likewise.
10594 * sysdeps/generic/sysdep-cancel.h (RTLD_SINGLE_THREAD_P): Define.
10595
b2369ca3
UD
105962006-10-27 Ulrich Drepper <drepper@redhat.com>
10597
11bf311e
UD
10598 * configure.in: Require assembler support for visibility, compiler
10599 support for visibility and aliases, linker support for various -z
10600 options.
10601 * Makeconfig: Remove conditional code which now is unnecessary.
10602 * config.h.in: Likewise.
10603 * config.make.in: Likewise.
10604 * dlfcn/Makefile: Likewise.
10605 * elf/Makefile: Likewise.
10606 * elf/dl-load.c: Likewise.
10607 * elf/rtld.c: Likewise.
10608 * include/libc-symbols.h: Likewise.
10609 * include/stdio.h: Likewise.
10610 * io/Makefile: Likewise.
10611 * io/fstat.c: Likewise.
10612 * io/fstat64.c: Likewise.
10613 * io/fstatat.c: Likewise.
10614 * io/fstatat64.c: Likewise.
10615 * io/lstat.c: Likewise.
10616 * io/lstat64.c: Likewise.
10617 * io/mknod.c: Likewise.
10618 * io/mknodat.c: Likewise.
10619 * io/stat.c: Likewise.
10620 * io/stat64.c: Likewise.
10621 * libio/stdio.c: Likewise.
10622 * nscd/Makefile: Likewise.
10623 * stdlib/Makefile: Likewise.
10624 * stdlib/atexit.c: Likewise.
10625 * sysdeps/generic/ldsodefs.h: Likewise.
10626 * sysdeps/i386/dl-machine.h: Likewise.
10627 * sysdeps/i386/sysdep.h: Likewise.
10628 * sysdeps/i386/i686/memcmp.S: Likewise.
10629 * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
10630 * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
10631 * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
10632
10633 * Makerules: USE_TLS support is now default.
10634 * tls.make.c: Likewise.
10635 * csu/Versions: Likewise.
10636 * csu/libc-start.c: Likewise.
10637 * csu/libc-tls.c: Likewise.
10638 * csu/version.c: Likewise.
10639 * dlfcn/dlinfo.c: Likewise.
10640 * elf/dl-addr.c: Likewise.
10641 * elf/dl-cache.c: Likewise.
10642 * elf/dl-close.c: Likewise.
10643 * elf/dl-iteratephdr.c: Likewise.
10644 * elf/dl-load.c: Likewise.
10645 * elf/dl-lookup.c: Likewise.
10646 * elf/dl-object.c: Likewise.
10647 * elf/dl-open.c: Likewise.
10648 * elf/dl-reloc.c: Likewise.
10649 * elf/dl-support.c: Likewise.
10650 * elf/dl-sym.c: Likewise.
10651 * elf/dl-sysdep.c: Likewise.
10652 * elf/dl-tls.c: Likewise.
10653 * elf/ldconfig.c: Likewise.
10654 * elf/rtld.c: Likewise.
10655 * elf/tst-tls-dlinfo.c: Likewise.
10656 * elf/tst-tls1.c: Likewise.
10657 * elf/tst-tls10.h: Likewise.
10658 * elf/tst-tls14.c: Likewise.
10659 * elf/tst-tls2.c: Likewise.
10660 * elf/tst-tls3.c: Likewise.
10661 * elf/tst-tls4.c: Likewise.
10662 * elf/tst-tls5.c: Likewise.
10663 * elf/tst-tls6.c: Likewise.
10664 * elf/tst-tls7.c: Likewise.
10665 * elf/tst-tls8.c: Likewise.
10666 * elf/tst-tls9.c: Likewise.
10667 * elf/tst-tlsmod1.c: Likewise.
10668 * elf/tst-tlsmod13.c: Likewise.
10669 * elf/tst-tlsmod13a.c: Likewise.
10670 * elf/tst-tlsmod14a.c: Likewise.
10671 * elf/tst-tlsmod2.c: Likewise.
10672 * elf/tst-tlsmod3.c: Likewise.
10673 * elf/tst-tlsmod4.c: Likewise.
10674 * elf/tst-tlsmod5.c: Likewise.
10675 * elf/tst-tlsmod6.c: Likewise.
10676 * include/errno.h: Likewise.
10677 * include/link.h: Likewise.
10678 * include/tls.h: Likewise.
10679 * locale/global-locale.c: Likewise.
10680 * locale/localeinfo.h: Likewise.
10681 * malloc/arena.c: Likewise.
10682 * malloc/hooks.c: Likewise.
10683 * malloc/malloc.c: Likewise.
10684 * resolv/Versions: Likewise.
10685 * sysdeps/alpha/dl-machine.h: Likewise.
10686 * sysdeps/alpha/libc-tls.c: Likewise.
10687 * sysdeps/generic/ldsodefs.h: Likewise.
10688 * sysdeps/generic/tls.h: Likewise.
10689 * sysdeps/i386/dl-machine.h: Likewise.
10690 * sysdeps/ia64/dl-machine.h: Likewise.
10691 * sysdeps/ia64/libc-tls.c: Likewise.
10692 * sysdeps/mach/hurd/fork.c: Likewise.
10693 * sysdeps/mach/hurd/i386/tls.h: Likewise.
10694 * sysdeps/powerpc/powerpc32/dl-machine.c: Likwise.
10695 * sysdeps/powerpc/powerpc32/dl-machine.h: Likewise.
10696 * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
10697 * sysdeps/s390/libc-tls.c: Likewise.
10698 * sysdeps/s390/s390-32/dl-machine.h: Likewise.
10699 * sysdeps/s390/s390-64/dl-machine.h: Likewise.
10700 * sysdeps/sh/dl-machine.h: Likewise.
10701 * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
10702 * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
10703 * sysdeps/x86_64/dl-machine.h: Likewise.
10704
131c4428
UD
10705 * elf/dl-close.c (_dl_close_worker): Renamed from _dl_close and
10706 split out locking and parameter checking.
10707 (_dl_close): Call _dl_close_worker after locking and checking.
10708 * elf/dl-open.c (_dl_open): Call _dl_close_worker instead of
10709 _dl_close.
ffd0e1b7
UD
10710 * elf/Makefile: Add rules to build and run tst-thrlock.
10711 * elf/tst-thrlock.c: New file.
131c4428 10712
11bf311e
UD
10713 [BZ #3426]
10714 * stdlib/stdlib.h: Adjust comment for canonicalize_file_name to
10715 reality.
10716
b2369ca3
UD
10717 [BZ #3429]
10718 * elf/dl-open.c (dl_open_worker): Keep holding dl_load_lock until
131c4428 10719 we are sure we do not need it anymore for _dl_close. Also move
b2369ca3
UD
10720 the asserts inside the lock region.
10721 Patch mostly by Suzuki <suzuki@in.ibm.com>.
10722
11bf311e
UD
107232006-10-27 Jakub Jelinek <jakub@redhat.com>
10724
10725 * elf/dl-lookup.c (_dl_debug_bindings): Remove unused symbol_scope
10726 argument.
10727 (_dl_lookup_symbol_x): Adjust caller.
10728
10729 * sysdeps/generic/ldsodefs.h (struct link_namespaces): Remove
10730 _ns_global_scope.
10731 * elf/rtld.c (dl_main): Don't initialize _ns_global_scope.
10732
10733 * elf/dl-libc.c: Revert l_scope name changes.
10734 * elf/dl-load.c: Likewise.
10735 * elf/dl-object.c: Likewise.
10736 * elf/rtld.c: Likewise.
10737 * elf/dl-close.c (_dl_close): Likewise.
10738 * elf/dl-open.c (dl_open_worker): Likewise. If not SINGLE_THREAD_P,
10739 always use __rtld_mrlock_{change,done}. Always free old scope list
10740 here if not l_scope_mem.
10741 * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Revert l_scope name
10742 change. Never free scope list here. Just __rtld_mrlock_lock before
10743 the lookup and __rtld_mrlock_unlock it after the lookup.
10744 * elf/dl-sym.c: Likewise.
10745 * include/link.h (struct r_scoperec): Remove.
10746 (struct link_map): Replace l_scoperec with l_scope, l_scoperec_mem
10747 with l_scope_mem and l_scoperec_lock with l_scope_lock.
10748
107492006-10-25 Ulrich Drepper <drepper@redhat.com>
10750
10751 * sysdeps/gnu/netinet/tcp.h: Define TCP_CONGESTION.
10752
107532006-10-18 Ulrich Drepper <drepper@redhat.com>
10754
10755 * configure.in: Disable building profile libraries by default.
10756
609cf614
UD
107572006-10-17 Jakub Jelinek <jakub@redhat.com>
10758
10759 * sunrpc/xdr_mem.c (xdrmem_setpos): Don't compare addresses
10760 as signed longs, check for x_base + pos overflow.
10761 * sunrpc/Makefile (tests): Add tst-xdrmem2.
10762 * sunrpc/tst-xdrmem2.c: New test.
10763
11bf311e
UD
107642006-10-18 Ulrich Drepper <drepper@redhat.com>
10765
10766 * elf/dl-lookup.c (_dl_lookup_symbol_x): Add warning to
10767 _dl_lookup_symbol_x code.
10768
107692006-10-17 Jakub Jelinek <jakub@redhat.com>
10770
10771 * elf/dl-runtime.c: Include sysdep-cancel.h.
10772 (_dl_fixup, _dl_profile_fixup): Use __rtld_mrlock_* and
10773 scoperec->nusers only if !SINGLE_THREAD_P. Use atomic_*
10774 instead of catomic_* macros.
10775 * elf/dl-sym.c: Include sysdep-cancel.h.
10776 (do_sym): Use __rtld_mrlock_* and scoperec->nusers only
10777 if !SINGLE_THREAD_P. Use atomic_* instead of catomic_* macros.
10778 * elf/dl-close.c: Include sysdep-cancel.h.
10779 (_dl_close): Use __rtld_mrlock_* and scoperec->nusers only
10780 if !SINGLE_THREAD_P. Use atomic_* instead of catomic_* macros.
10781 * elf/dl-open.c: Include sysdep-cancel.h.
10782 (dl_open_worker): Use __rtld_mrlock_* and scoperec->nusers only
10783 if !SINGLE_THREAD_P. Use atomic_* instead of catomic_* macros.
10784
107852006-10-17 Jakub Jelinek <jakub@redhat.com>
10786
10787 [BZ #3313]
10788 * malloc/malloc.c (malloc_consolidate): Set maxfb to address of last
10789 fastbin rather than end of fastbin array.
10790
107912006-10-18 Ulrich Drepper <drepper@redhat.com>
10792
10793 * sysdeps/i386/i486/bits/atomic.h (catomic_decrement): Use correct
10794 body macro.
10795 * sysdeps/x86_64/bits/atomic.h
10796 (__arch_c_compare_and_exchange_val_64_acq): Add missing casts.
10797 (catomic_decrement): Use correct body macro.
10798
107992006-10-17 Jakub Jelinek <jakub@redhat.com>
10800
10801 * include/atomic.h: Add a unique prefix to all local variables
10802 in macros.
10803 * csu/tst-atomic.c (do_test): Test also catomic_* macros.
10804
4a85a8ee
UD
108052006-10-16 Ulrich Drepper <drepper@redhat.com>
10806
10807 [BZ #3369]
10808 * sysdeps/posix/getaddrinfo.c (rfc3484_sort): Fix typos in rules 4
10809 and 7.
10810
11bf311e
UD
108112006-10-14 Ulrich Drepper <drepper@redhat.com>
10812
10813 * resolv/arpa/nameser.h: Document that ns_t_a6 is deprecated.
10814
ff8d96be
UD
108152006-10-13 Ulrich Drepper <drepper@redhat.com>
10816
11bf311e
UD
10817 [BZ #3313]
10818 * malloc/malloc.c (malloc_consolidate): Don't use get_fast_max to
10819 determine highest fast bin to consolidate, always look into all of
10820 them.
10821 (do_check_malloc_state): Only require for empty bins for large
10822 sizes in main arena.
10823
10824 * libio/stdio.h: Add more __wur attributes.
10825
ff8d96be
UD
10826 * elf/dl-minimal.c (realloc): Optimize last patch.
10827
90a0991a
UD
108282006-10-12 Richard Sandiford <richard@codesourcery.com>
10829
10830 [BZ #3352]
10831 * elf/dl-minimal.c (realloc): Let malloc() return a new pointer,
10832 and use memcpy() if it does.
ff8d96be 10833
11bf311e
UD
108342006-11-12 Andreas Jaeger <aj@suse.de>
10835
10836 [BZ #2510]
10837 * manual/search.texi (Hash Search Function): Clarify.
10838 (Array Search Function): Clarify.
10839
108402006-11-12 Joseph Myers <joseph@codesourcery.com>
10841
10842 [BZ #2830]
10843 * math/atest-exp.c (main): Cast hex value to mp_limb_t before
10844 shifting.
10845 * math/atest-exp2.c (read_mpn_hex): Likewise.
10846 * math/atest-sincos.c (main): Likewise.
10847
37fb7595
UD
108482006-10-11 Ulrich Drepper <drepper@redhat.com>
10849
11bf311e
UD
10850 * sysdeps/unix/sysv/linux/syscalls.list: Add epoll_pwait.
10851 * sysdeps/unix/sysv/linux/sys/epoll.h: Declare epoll_pwait.
10852 * sysdeps/unix/sysv/linux/Versions (libc): Add epoll_pwait for
10853 version GLIBC_2.6.
10854 * Versions.def: Add GLIBC_2.6 for libc.
10855
46c38bd7
UD
10856 * sysdeps/unix/sysv/linux/i386/sysdep.h (DOARGS_6): Fix offset.
10857
11bf311e
UD
10858 * sysdeps/i386/i486/bits/atomic.h: Add catomic_* support.
10859
108602006-10-11 Jakub Jelinek <jakub@redhat.com>
10861
10862 * malloc/malloc.c (_int_malloc): Remove unused any_larger variable.
10863
10864 * nis/nis_defaults.c (__nis_default_access): Don't call getenv twice.
10865
10866 * nis/nis_subr.c (nis_getnames): Use __secure_getenv instead of getenv.
10867 * sysdeps/generic/unsecvars.h: Add NIS_PATH.
10868
108692006-10-11 Ulrich Drepper <drepper@redhat.com>
10870
10871 * include/atomic.c: Define catomic_* operations.
10872 * sysdeps/x86_64/bits/atomic.h: Likewise. Fix a few minor problems.
10873 * stdlib/cxa_finalize.c: Use catomic_* operations instead of atomic_*.
10874 * malloc/memusage.c: Likewise.
10875 * gmon/mcount.c: Likewise.
10876 * elf/dl-close.c: Likewise.
10877 * elf/dl-open.c: Likewise.
10878 * elf/dl-profile.c: Likewise.
10879 * elf/dl-sym.c: Likewise.
10880 * elf/dl-runtime.c: Likewise.
10881 * elf/dl-fptr.c: Likewise.
10882 * resolv/res_libc.c: Likewise.
10883
2a6ee549
UD
108842006-10-10 Ulrich Drepper <drepper@redhat.com>
10885
10886 * nis/nis_subr.c (nis_getnames): Add trailing dot to NIS_PATH
10887 components which lack them.
10888
10889 * nis/nis_subr.c (nis_getnames): Make sure that we always return
10890 at least one entry consisting of the parameter concatenated with
10891 the domain.
10892
11bf311e 108932006-10-10 Roland McGrath <roland@frob.com>
c4f9fc3a 10894
11bf311e
UD
10895 * sysdeps/mach/hurd/utimes.c: Use a union to avoid an improper cast.
10896 * sysdeps/mach/hurd/futimes.c: Likewise.
10897 * sysdeps/mach/hurd/lutimes.c: Likewise.
10898
108992006-10-09 Ulrich Drepper <drepper@redhat.com>
10900 Jakub Jelinek <jakub@redhat.com>
10901
10902 Implement reference counting of scope records.
10903 * elf/dl-close.c (_dl_close): Remove all scopes from removed objects
10904 from the list in objects which remain. Always allocate new scope
10905 record.
10906 * elf/dl-open.c (dl_open_worker): When growing array for scopes,
10907 don't resize, allocate a new one.
10908 * elf/dl-runtime.c: Update reference counters before using a scope
10909 array.
10910 * elf/dl-sym.c: Likewise.
10911 * elf/dl-libc.c: Adjust for l_scope name change.
10912 * elf/dl-load.c: Likewise.
10913 * elf/dl-object.c: Likewise.
10914 * elf/rtld.c: Likewise.
10915 * include/link.h: Include <rtld-lowlevel.h>. Define struct
10916 r_scoperec. Replace r_scope with pointer to r_scoperec structure.
10917 Add l_scoperec_lock.
10918 * sysdeps/generic/ldsodefs.h: Include <rtld-lowlevel.h>.
10919 * sysdeps/generic/rtld-lowlevel.h: New file.
10920
10921 * include/atomic.h: Rename atomic_and to atomic_and_val and
10922 atomic_or to atomic_or_val. Define new macros atomic_and and
10923 atomic_or which do not return values.
10924 * sysdeps/x86_64/bits/atomic.h: Define atomic_and and atomic_or.
10925 Various cleanups.
10926 * sysdeps/i386/i486/bits/atomic.h: Likewise.
10927
10928 * po/sv.po: Update from translation team.
10929
109302006-10-07 Ulrich Drepper <drepper@redhat.com>
10931
10932 * Versions.def: Add GLIBC_2.6 to libpthread.
10933
10934 * include/shlib-compat.h (SHLIB_COMPAT): Expand parameters before use.
10935 (versioned_symbol): Likewise.
10936 (compat_symbol): Likewise.
10937
10938 * po/tr.po: Update from translation team.
feb87ad1 10939
4df92d57
UD
109402006-10-06 Ulrich Drepper <drepper@redhat.com>
10941
11bf311e
UD
10942 * nis/Banner: Removed. It's been integral part forever and the
10943 author info is incomplete anyway.
10944 * libio/Banner: Likewise.
10945
4df92d57
UD
10946 * nis/nis_table.c (nis_list): If __follow_path fails in the new
10947 code, make sure the nis_freeresult call doesn't crash and that the
10948 result is reported correctly.
10949
68361572
UD
109502006-09-27 Jakub Jelinek <jakub@redhat.com>
10951
10952 * nis/nis_table.c (nis_list): Handle FOLLOW_PATH | ALL_RESULTS
10953 when callback is NULL.
10954
10955 * nis/Versions (libnss_nisplus): Add
10956 _nss_nisplus_initgroups_dyn@@GLIBC_PRIVATE.
10957 * nis/Makefile (libnss_nisplus-routines): Add nisplus-initgroups.
10958 * nis/nss_nisplus/nisplus-grp.c (tablename_val, tablename_len,
10959 _nss_create_tablename): Rename to...
10960 (grp_tablename_val, grp_tablename_len, _nss_grp_create_tablename):
10961 ... these. No longer static.
10962 (internal_setgrent): Adjust users.
10963 (_nss_nisplus_getgrnam_r, _nss_nisplus_getgrgid_r): Likewise.
10964 Don't use locking around _nss_grp_create_tablename call.
10965 * nis/nss_nisplus/nisplus-initgroups.c: New file.
10966
11bf311e
UD
109672006-10-06 Ulrich Drepper <drepper@redhat.com>
10968
10969 * version.h (VERSION): Bump to 2.5.90 for new development tree.
10970
3a4e0609
UD
109712006-10-06 Andreas Jaeger <aj@suse.de>
10972
10973 * include/features.h (__GLIBC_MINOR__): It's glibc 2.5 now.
10974
109752006-10-06 Ulrich Drepper <drepper@redhat.com>
10976
10977 * po/pl.po: Update from translation team.
10978
10979 * nscd/nscd.c (main): Fix typo in message.
10980 Patch by Jakub Bogsz <qboosh@pld-linux.org>.
10981
97e57dee
UD
109822006-10-02 Jakub Jelinek <jakub@redhat.com>
10983
10984 [BZ #3291]
10985 * sysdeps/unix/sysv/linux/sparc/sparc64/pause.c: Include
10986 errno.h, signal.h, unistd.h and sysdep-cancel.h.
10987 (__sigprocmask): Define.
10988
768027a4
UD
109892006-10-02 Ulrich Drepper <drepper@redhat.com>
10990
10991 * elf/rtld.c (dl_main): Don't use prelinking if LD_DYNAMIC_WEAK is
10992 used.
10993
0b25a49a
UD
109942006-10-02 Jakub Jelinek <jakub@redhat.com>
10995
10996 * nscd/mem.c (mempool_alloc): Round array size to 16 bytes
10997 in oldtotal and newtotal calculation.
10998 * nscd/nscd-client.h (struct mapped_database): Add datasize
10999 field.
11000 * nscd/nscd_helper.c (get_mapping): Initialize datasize field.
11001 (__nscd_get_map_ref): Get a new mapping even if mapping's data_size
11002 increased.
11003 (__nscd_cache_search): Add checks to make sure we never reference
11004 data beyond the current mapping.
11005
a1286745
UD
110062006-10-02 Dmitry V. Levin <ldv@altlinux.org>
11007
d4ed7561
UD
11008 * sysdeps/posix/getaddrinfo.c (match_prefix): Make mask and val
11009 variables const to avoid compiler warnings.
11010
a1286745
UD
11011 * io/fts.c (fts_close): Remove redundant checks.
11012 (fts_build): Likewise.
11013 (fts_palloc): Likewise.
11014
11015 * manual/message.texi (Advanced gettext functions,
11016 Using gettextized software): Fix typos.
11017
f01e4069
UD
110182006-09-30 Ulrich Drepper <drepper@redhat.com>
11019
11020 * posix/glob.c (glob_in_dir): Add some comments and asserts to
11021 explain why there are no leaks.
11022
154619b5
UD
110232006-09-29 Ulrich Drepper <drepper@redhat.com>
11024
690c3947
UD
11025 * libio/wmemstream.c: Include <wchar.h>.
11026 * libio/bug-wmemstream1.c: Likewise.
11027 * libio/tst-wmemstream1.c: Likewise.
11028 * libio/tst-wmemstream2.c: Likewise.
11029
88cc61e8
UD
11030 * version.h (RELEASE): Bump to 2.5.
11031 * README: Regenerated.
11032
a70c18b0
UD
11033 * locale/iso-3166.def: Add Aaland Islands and Montenegro.
11034
154619b5
UD
11035 [BZ #3273]
11036 * nscd/nscd_initgroups.c (__nscd_getgrouplist): It is OK to have
11037 found no group members.
11038 Patch by Petr Baudis.
11039
110402006-09-29 Jakub Jelinek <jakub@redhat.com>
11041
11042 * elf/rtld.c (_dl_start_final): If not USE___THREAD, don't
11043 assert bootstrap_map.l_tls_modid is zero.
11044 (_dl_start): Initialize bootstrap_map.l_tls_modid to 0
11045 if USE___THREAD.
11046
1c31aa79
UD
110472006-09-27 Ulrich Drepper <drepper@redhat.com>
11048
11049 * libio/stdio.h: Move open_wmemstream prototype to ...
11050 * wcsmbs/wchar.h: ... here.
11051
f1122ec3
UD
110522006-09-25 Jakub Jelinek <jakub@redhat.com>
11053
11054 [BZ #3252]
11055 * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat): Handle only
11056 fchownat syscall and __ASSUME_LCHOWN_SYSCALL case inline, call
11057 __{,l}chown to handle the rest.
11058 * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Handle only
11059 fchownat syscall and __ASSUME_32BITUIDS case inline, call
11060 __{,l}chown to handle the rest.
11061 * sysdeps/unix/sysv/linux/sparc/sparc32/fchownat.c: Include
11062 i386/fchownat.c.
11063 * sysdeps/unix/sysv/linux/s390/s390-32/fchownat.c: Likewise.
11064 * sysdeps/unix/sysv/linux/sh/fchownat.c: Likewise.
11065
11066 [BZ #3253]
11067 * posix/glob.c (glob_in_dir): Don't alloca one struct globlink at a
11068 time, rather allocate increasingly bigger arrays of pointers, if
11069 possible with alloca, if too large with malloc.
11070
110712006-09-24 Jakub Jelinek <jakub@redhat.com>
11072
11073 * sysdeps/powerpc/fpu/libm-test-ulps: Updated.
11074
11075 * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Fix 2 typos.
11076
457b559e
UD
110772006-09-24 Ulrich Drepper <drepper@redhat.com>
11078
11079 * sysdeps/posix/getaddrinfo.c (rfc3484_sort): Implement rule 4,
11080 home addresses.
11081 * sysdeps/unix/sysv/linux/check_pf.c (make_request): Recognize
11082 IFA_F_HOMEADDRESS flag for interfaces.
11083 * include/ifaddrs.h (struct in6addrinfo): Define
11084 in6ai_homeaddress.
11085
4a132246
UD
110862006-09-21 Jakub Jelinek <jakub@redhat.com>
11087
11088 [BZ #3225]
11089 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h (PTR_MANGLE3,
11090 PTR_DEMANGLE3): Define.
11091 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h (PTR_MANGLE3,
11092 PTR_DEMANGLE3): Likewise.
11093 * sysdeps/powerpc/powerpc32/__longjmp-common.S (__longjmp): Use them.
11094 * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S (__longjmp):
11095 Likewise.
11096 * sysdeps/powerpc/powerpc64/__longjmp-common.S (__longjmp): Likewise.
11097
c69136ae
UD
110982006-09-20 Jakub Jelinek <jakub@redhat.com>
11099
11100 * po/libc.pot: Regenerated.
11101 * po/be.po: Updated.
11102 * po/ca.po: Likewise.
11103 * po/cs.po: Likewise.
11104 * po/da.po: Likewise.
11105 * po/de.po: Likewise.
11106 * po/el.po: Likewise.
11107 * po/en_GB.po: Likewise.
11108 * po/es.po: Likewise.
11109 * po/fi.po: Likewise.
11110 * po/fr.po: Likewise.
11111 * po/gl.po: Likewise.
11112 * po/hr.po: Likewise.
11113 * po/hu.po: Likewise.
11114 * po/ja.po: Likewise.
11115 * po/ko.po: Likewise.
11116 * po/nb.po: Likewise.
11117 * po/nl.po: Likewise.
11118 * po/pl.po: Likewise.
11119 * po/pt_BR.po: Likewise.
11120 * po/ru.po: Likewise.
11121 * po/rw.po: Likewise.
11122 * po/sk.po: Likewise.
11123 * po/sv.po: Likewise.
11124 * po/tr.po: Likewise.
11125 * po/zh_CN.po: Likewise.
11126 * po/zh_TW.po: Likewise.
11127
11128 [BZ #3137]
11129 * iconv/iconv_prog.c (main): Fix spelling in error message.
11130 * iconv/iconvconfig.c (main): Likewise.
11131 * locale/programs/ld-collate.c (handle_ellipsis): Likewise.
11132 * locale/programs/ld-ctype.c (charclass_symbolic_ellipsis): Likewise.
11133 * locale/programs/localedef.c (main): Likewise.
11134 * locale/programs/repertoire.c (repertoire_read): Likewise.
11135 * timezone/zdump.c (main): Likewise.
11136 * nscd/connections.c (handle_request): Fix spelling in log message.
11137 Patch by Malcolm Parsons <malcolm.parsons@gmail.com>.
11138
83b3108c
UD
111392006-09-20 Ulrich Drepper <drepper@redhat.com>
11140
11141 * inet/inet6_option.c: Also emit linker warnings for the RFC 2292
11142 interfaces.
11143
89210b4c
AJ
111442006-09-20 Andreas Jaeger <aj@suse.de>
11145
11146 * math/libm-test.inc (lrint_test_upward): Fix typo.
11147
6624dbc0
UD
111482006-06-17 Joseph S. Myers <joseph@codesourcery.com>
11149
11150 [BZ #2592]
11151 * math/libm-test.inc (lrint_test_tonearest): New function.
11152 (lrint_test_towardzero): New function.
11153 (lrint_test_downward): New function.
11154 (lrint_test_upward): New function.
11155 (main): Run these new tests.
11156 * sysdeps/ieee754/dbl-64/s_llrint.c (__llrint): Correct rounding
11157 of values near to 0.
11158 (two52): Use double not long double.
11159 * sysdeps/ieee754/dbl-64/s_lrint.c (__lrint): Likewise.
11160 * sysdeps/ieee754/flt-32/s_llrintf.c (__llrintf): Likewise.
11161 (two23): Use float not double.
11162 * sysdeps/ieee754/flt-32/s_lrintf.c (__lrintf): Likewise.
11163 (two23): Use float not double.
11164 * sysdeps/ieee754/ldbl-128/s_llrintl.c (__llrintl): Likewise.
11165 * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Likewise.
11166 * sysdeps/ieee754/ldbl-96/s_llrintl.c (__llrintl): Likewise.
11167 * sysdeps/ieee754/ldbl-96/s_lrintl.c (__lrintl): Likewise.
11168
60cb50c7
UD
111692006-09-20 Martin Schwidefsky <schwidefsky@de.ibm.com>
11170
11171 * sysdeps/unix/sysv/linux/s390/s390-32/makecontext.c (__makecontext):
11172 Cast sp to unsigned long to avoid compiler warning.
11173 Use __makecontext_ret function instead of a trampoline on the stack.
11174 (__makecontext_ret): New function.
11175 * sysdeps/unix/sysv/linux/s390/s390-64/makecontext.c: Likewise.
11176
33315ced
UD
111772006-09-19 Jakub Jelinek <jakub@redhat.com>
11178
11179 * elf/dl-cache.c (HWCAP_CHECK): If _DL_PLATFORMS_COUNT, but
11180 platform == -1, reject any libs with non-zero _DL_HWCAP_PLATFORM
11181 bits.
11182
1ee2ff20
UD
111832006-09-19 Ulrich Drepper <drepper@redhat.com>
11184
11185 * elf/dl-close.c (_dl_close): If dependency is not unloaded make
11186 sure no reference to the unloaded map's search list remains in the
11187 dependency's scope.
11188
111892006-09-16 Jakub Jelinek <jakub@redhat.com>
11190
11191 * elf/Makefile: Add rules to build and run unload7 test.
11192 * elf/unload7.c: New test.
11193 * elf/unload7mod1.c: New file.
11194 * elf/unload7mod2.c: New file.
11195
0466106e
UD
111962006-09-18 Jakub Jelinek <jakub@redhat.com>
11197
11198 * sysdeps/unix/sysv/linux/sys/ptrace.h (PT_GETEVENTMSG): Fix pasto.
11199 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h (PTRACE_SETOPTIONS,
11200 PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
11201 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h (PTRACE_SETOPTIONS,
11202 PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Likewise.
11203 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h (PTRACE_SETOPTIONS,
11204 PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Likewise.
11205 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h (PTRACE_SETOPTIONS,
11206 PTRACE_GETEVENTMSG): Likewise.
11207 (PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Change to the arch independent
11208 values.
11209
9c316a45
UD
112102006-09-17 Mike Frysinger <vapier@gentoo.org>
11211
0466106e
UD
11212 * sysdeps/unix/sysv/linux/sys/ptrace.h (PTRACE_SETOPTIONS,
11213 PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
11214 * sysdeps/unix/sysv/linux/ptrace.c (ptrace): Check PTRACE_SETOPTIONS,
11215 PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO and PTRACE_SETSIGINFO.
9c316a45
UD
11216
112172006-09-16 Jakub Jelinek <jakub@redhat.com>
11218
11219 * sysdeps/powerpc/powerpc32/register-dump.h (register_dump): Don't
11220 write '\0' to the fd.
11221 * sysdeps/mach/hurd/powerpc/register-dump.h (register_dump): Likewise.
11222 * sysdeps/powerpc/powerpc64/register-dump.h (register_dump): Likewise.
11223 Change regs to unsigned long pointer from unsigned int, fix fscr
11224 offset.
11225
fb146a76
UD
112262006-09-14 Jakub Jelinek <jakub@redhat.com>
11227
11228 * io/Makefile (CFLAGS-fstatat.c): Set.
11229 (CFLAGS-fstatat64.c): Likewise.
11230 (CFLAGS-mknodat.c): Likewise.
11231
11232 * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Comment fixes.
11233 * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
11234 * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Rewritten.
11235 * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Rewritten.
11236
4cd3633d
UD
112372006-09-14 Jakub Jelinek <jakub@redhat.com>
11238 Steven Munroe <sjmunroe@us.ibm.com>
fb146a76 11239
4cd3633d
UD
11240 * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Add 4 new cap
11241 names to the beginning. Rename "cell" to "cellbe".
11242 (_dl_powerpc_platforms): New.
11243 * sysdeps/powerpc/dl-procinfo.h (_DL_HWCAP_FIRST): Decrease.
11244 (HWCAP_IMPORTANT): Remove power{4,5,5+} and cell.
11245 (_DL_PLATFORMS_COUNT, _DL_FIRST_PLATFORM): Define.
11246 (_DL_HWCAP_PLATFORM): Define to new mask.
11247 (_dl_platform_string, _dl_string_platform): New functions.
11248 * sysdeps/powerpc/sysdep.h (PPC_FEATURE_BOOKE, PPC_FEATURE_SMT,
11249 PPC_FEATURE_ICACHE_SNOOP, PPC_FEATURE_ARCH_2_05): Define.
11250
30aa5785
UD
112512006-09-12 Jakub Jelinek <jakub@redhat.com>
11252
11253 [BZ #2526]
11254 * README.libm: Fix a thinko in sqrt algorithm description.
11255
11256 [BZ #3143]
11257 * manual/string.texi (argz_delete): Fix prototype.
11258 Patch by <alpt@freaknet.org>.
11259
112602006-08-26 Joseph Myers <joseph@codesourcery.com>
11261
11262 [BZ #3138]
11263 * io/test-lfs.c (do_prepare): Give name_len type size_t.
11264 * io/tst-fcntl.c (do_prepare): Likewise.
11265 * posix/tst-exec.c (do_prepare): Likewise.
11266 * posix/tst-preadwrite.c (do_prepare): Likewise.
11267 * posix/tst-spawn.c (do_prepare): Likewise.
11268 * posix/tst-truncate.c (do_prepare): Likewise.
11269 * rt/tst-aio.c (do_prepare): Likewise.
11270 * rt/tst-aio64.c (do_prepare): Likewise.
11271 * stdlib/test-canon2.c (do_prepare): Give test_dir_len type
11272 size_t.
11273
d26d01d1
UD
112742006-09-09 Ulrich Drepper <drepper@redhat.com>
11275
41aba3d7
UD
11276 [BZ #2821]
11277 * time/mktime.c (guess_time_tm): Fix overflow detection.
11278 * time/Makefile (tests): Add bug-mktime1.
11279 * time/bug-mktime1.c: New file.
11280
eaa51b47 11281 [BZ #3189, #3188]
d26d01d1 11282 * misc/sys/mman.h (remap_file_pages): Make available for _GNU_SOURCE.
eaa51b47 11283 (mremap): Likewise.
d26d01d1 11284
ba40cc15
UD
112852006-09-07 Jakub Jelinek <jakub@redhat.com>
11286
2b6a801e
UD
11287 [BZ #1006]
11288 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela):
11289 Ensure relocation doesn't clobber any bits outside of the
11290 immediate field for R_SPARC_TLS_LE_HIX22, R_SPARC_WDISP30,
11291 R_SPARC_HI22 and R_SPARC_H44.
11292
469615bd
UD
11293 [BZ #2775]
11294 * malloc/malloc.c (sYSMALLOc): Only call grow_heap if
11295 (long) (MINSIZE + nb - old_size) is positive.
11296
11297 * malloc/arena.c (grow_heap): When growing bail even if new_size
11298 is negative.
11299
ba40cc15
UD
11300 [BZ #3155]
11301 * sysdeps/powerpc/powerpc32/fpu/s_lrint.S (__lrint): Don't access
11302 stack below r1.
11303
243b9ac1
UD
113042006-09-06 Jakub Jelinek <jakub@redhat.com>
11305
ba40cc15
UD
11306 * posix/regex_internal.c (re_string_reconstruct): Handle
11307 offset < pstr->valid_raw_len && pstr->offsets_needed case.
11308 Ensure no bytes read before raw_mbs array. Pass a saved copy of
11309 pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
11310 re_string_context_at.
11311 * posix/Makefile: Add rules to build and run bug-regex26 test.
11312 * posix/bug-regex26.c: New test.
11313
243b9ac1
UD
11314 * locale/programs/ld-collate.c (collate_read): Goto sym_equiv_free
11315 rather than col_sym_free. Move seqp declaration earlier.
11316
11317 * resolv/gai_suspend.c (gai_suspend): Make sure result is initialized.
11318
d052233c
UD
113192006-09-05 Jakub Jelinek <jakub@redhat.com>
11320
11321 * nscd/initgrcache.c (addinitgroupsX): Move any_success
11322 decl before first goto out.
11323
71213dc2
UD
113242006-09-04 Jakub Jelinek <jakub@redhat.com>
11325
11326 * Makerules (shlib.lds): If have-hash-style, put .hash section
11327 at the end of the RO segment.
11328
113292006-09-04 Ulrich Drepper <drepper@redhat.com>
11330
11331 * elf/do-lookup.h (do_lookup_x): Initialize symidx in case the new
11332 style hash table format is used.
11333
03eeff83
UD
113342006-09-04 Jakub Jelinek <jakub@redhat.com>
11335
11336 * resolv/res_mkquery.c (res_nmkquery): Set hp->id to statp->id after
11337 randomization rather than before.
11338 * resolv/res_init.c (res_randomid): Don't call gettimeofday here.
11339
b80770b2
UD
113402006-08-31 Jakub Jelinek <jakub@redhat.com>
11341
ba40cc15 11342 * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Add ld.so.
b80770b2
UD
11343
11344 * malloc/malloc.c (_int_malloc): Use full list insert and not
11345 shortcut which assumes the list is empty for large requests
11346 too.
11347
11348 * elf/tst-addr1.c (do_test): Allow i.dli_sname "_IO_printf".
11349
99ea5991
UD
113502006-08-30 Jakub Jelinek <jakub@redhat.com>
11351
11352 * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h (splice): Add offin
11353 and offout arguments to the prototype.
11354 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (splice): Likewise.
11355 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h (splice): Likewise.
11356 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (splice): Likewise.
11357 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h (splice): Likewise.
11358 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h (splice): Likewise.
11359 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h (splice): Likewise.
11360 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h (splice): Likewise.
11361 * sysdeps/unix/sysv/linux/syscalls.list (splice): Adjust args string.
11362
4004a0a5
UD
113632006-08-28 Ulrich Drepper <drepper@redhat.com>
11364
950398e1
UD
11365 * elf/dl-load.c (_dl_init_paths): Expand DSTs.
11366
4004a0a5
UD
11367 * elf/dl-open.c (dl_open_worker): Allow $LIB and $PLATFORM in
11368 dlopen parameters.
11369
6e310111
UD
113702006-08-28 Jakub Jelinek <jakub@redhat.com>
11371
11372 * inet/getnameinfo.c (getnameinfo): For AF_INET, check errno
11373 only if herrno is NETDB_INTERNAL. Handle errors other than
11374 ERANGE outside of the loops, handle TRY_AGAIN.
11375
11376 * locale/programs/ld-ctype.c (translit_flatten): Issue error
11377 if other's ctype category was missing.
11378 * locale/programs/ld-collate.c (collate_read): Return if
11379 copy_locale's collate category is missing.
11380
07014fca
UD
113812006-08-27 Ulrich Drepper <drepper@redhat.com>
11382
11383 [BZ #2684]
11384 * malloc/malloc.c (public_rEALLOc): Try harder by using other
11385 arenas if allocation failed.
11386 Patch mostly by Jan Edler <jan.edler@indexengines.com>.
11387
71663747
UD
113882006-08-26 Ulrich Drepper <drepper@redhat.com>
11389
41999a1a
UD
11390 * malloc/malloc.c (bin_at): Rewrite to be more clear and to not
11391 waste bins[0..1].
11392 (malloc_state): Reduce bins size by 2.
11393 (_int_malloc): Fix test for large enough buffer for early termination.
11394 When no unsorted block matches perfectly and an exiting block has
11395 to be split, use full list insert and not shortcut which assumes
11396 the list is empty.
11397
71663747
UD
11398 * locale/programs/ld-ctype.c (ctype_read): Better patch for read
11399 failure.
11400
93b53ca2
UD
114012006-08-24 Ulrich Drepper <drepper@redhat.com>
11402
f5a82772
UD
11403 * locale/programs/ld-ctype.c (ctype_read): If CTYPE is NULL, don't
11404 do anything.
11405
2ac9ca73
UD
11406 * sysdeps/generic/ldsodefs.h (DL_ADDR_SYM_MATCH): For undefined
11407 symbol require exact match (these are PLTs).
11408 * sysdeps/unix/sysv/linux/powerpc/powerpc64/ldsodefs.h
11409 (_dl_ppc64_addr_sym_match): Likewise.
11410
93b53ca2
UD
11411 [BZ #2683]
11412 * elf/dl-addr.c (_dl_addr): Don't ignore all undefined symbols.
11413 If symbol has a value use it.
11414 * elf/tst-dladdr1.c: New file.
11415 * elf/Makefile: Add rules to build and run tst-addr1.
11416
7463d5cb
UD
114172006-08-24 Jakub Jelinek <jakub@redhat.com>
11418
11419 * malloc/malloc.c (sYSMALLOc): Avoid infinite loop if MMAP
11420 keeps failing and heap growth or new heap creation isn't
11421 successful either.
11422 * malloc/tst-malloc.c (main): Add new tests.
11423
542a6f62
UD
114242006-08-24 Ulrich Drepper <drepper@redhat.com>
11425
11426 [BZ #2734]
11427 * sysdeps/i386/bits/byteswap.h (__bswap_32): Use same conditions
11428 as in the x86-64 code to use bswap.
11429
aa2c6b6d
UD
114302006-05-21 Joseph S. Myers <joseph@codesourcery.com>
11431
24982798 11432 [BZ #2680]
aa2c6b6d
UD
11433 * posix/unistd.h (getlogin_r): Condition on __USE_POSIX199506, not
11434 __USE_UNIX98.
11435 * posix/bits/unistd.h: Likewise.
11436
59776aef
UD
114372006-05-15 Mike Frysinger <vapier@gentoo.org>
11438
11439 [BZ #2751]
11440 * string/strchr.c: Add cast to avoid warning.
11441
e404fb16
UD
114422006-08-21 Ulrich Drepper <drepper@redhat.com>
11443
11444 * malloc/malloc.c (DEFAULT_MMAP_THRESHOLD_MAX): For 32-bit
bd2c2341 11445 platforms define as 512K. For 64-bit platforms as 32MB. The lower
e404fb16
UD
11446 limit is needed to avoid the exploding of the address space
11447 requirement for secondary heaps.
11448 * malloc/arena.c (HEAP_MAX_SIZE): Define using
11449 DEFAULT_MMAP_THRESHOLD_MAX if it is defined.
11450
376e973a
UD
114512006-07-30 Joseph S. Myers <joseph@codesourcery.com>
11452
11453 [BZ #3018]
11454 * Makerules (depfiles): Handle extra-test-objs the same as
11455 extra-objs.
11456 (common-mostlyclean): Likewise.
11457 * dlfcn/Makefile (extra-objs): Add modules to extra-test-objs
11458 instead.
11459 * elf/Makefile (extra-objs): Likewise.
11460 * stdlib/Makefile (extra-objs): Likewise.
11461
240c62a7
UD
114622006-08-14 Eric Blake <ebb9@byu.net>
11463
11464 [BZ #3044]
11465 * misc/error.h: Assume C89 or better.
11466 * misc/error.c: Likewise.
11467
3997b7c4
UD
114682006-08-21 Ulrich Drepper <drepper@redhat.com>
11469
11470 [BZ #3040]
11471 * sysdeps/unix/sysv/linux/openat.c: Fix compilation if
11472 __ASSUME_ATFCTS is defined.
11473
8a6537b0
UD
114742006-08-19 Ulrich Drepper <drepper@redhat.com>
11475
72320021
UD
11476 * malloc/malloc.c (_int_malloc): Limit number of unsorted blocks
11477 to sort in each call.
11478
ed3691ba
UD
11479 * nis/nss_nis/nis-service.c (internal_nis_getservent_r): . If map
11480 is empty simply return and use next service.
11481 * nis/nss_nis/nis-rpc.c (internal_nis_getrpcent_r): Likewise.
11482
8a6537b0
UD
11483 * locale/programs/charmap.c (charmap_read): Add new parameter. It
11484 tells us when not finding a charmap file is an error.
11485 * locale/programs/charmap.h: Adjust charmap_read prototype.
11486 * iconv/iconv_prog.c (main): Tell charmap_read it's no error if we
11487 cannot find a charmap.
11488 * locale/programs/localedef.c (main): Adjust charmap_read call.
11489
ad2a3c07
UD
114902006-08-15 Jakub Jelinek <jakub@redhat.com>
11491
11492 * sysdeps/unix/sysv/linux/sparc/sparc64/pause.c: Use
11493 sysdeps/posix/pause.c implementation instead.
11494
114952006-08-09 Jakub Jelinek <jakub@redhat.com>
11496
11497 * sysdeps/unix/nice.c (nice): Transform EACCES errno from setpriority
11498 to EPERM.
11499
f17efcb4
UD
115002006-08-13 Andreas Schwab <schwab@suse.de>
11501
11502 * sysdeps/powerpc/powerpc32/dl-trampoline.S (_dl_runtime_resolve):
11503 Don't clobber caller's LRSAVE.
11504 (_dl_prof_resolve): Likewise.
11505
107b8a92
UD
115062006-08-14 Ulrich Drepper <drepper@redhat.com>
11507
11508 [BZ #1996]
11509 * libio/memstream.c (open_memstream): Allocate initial buffer with
11510 calloc.
11511 * libio/wmemstream.c (open_wmemstream): Likewise.
11512 * libio/strops.c: Pretty printing.
11513 (_IO_str_overflow): Clear uninitialized part of the new buffer.
11514 (enlarge_userbuf): New function.
11515 (_IO_str_seekoff): Call it if seek position is larger than current
11516 buffer.
11517 * libio/wstrops.c: Likewise.
11518 * libio/vasprintf.c: Add comment as to why we do not have to use
11519 calloc instead of malloc to allocate initial buffer.
11520 * libio/Makefile (tests): Add bug-memstream1 and bug-wmemstream1.
11521 * libio/bug-memstream1.c: New file.
11522 * libio/bug-wmemstream1.c: New file.
11523
fa3ac53f
UD
115242006-08-13 Ulrich Drepper <drepper@redhat.com>
11525
89993734
UD
11526 * libio/wstrops.c: Remove dead macro definitions and comments.
11527 * libio/strops.c: Likewise.
11528
fa3ac53f
UD
11529 [BZ #2764]
11530 * login/utmpname.c (__utmpname): Remove unnecessary test.
11531
f99ed760
UD
115322006-06-08 Joseph Myers <jsm28@gcc.gnu.org>
11533
11534 [BZ #2832]
11535 * math/gen-libm-test.pl (clean_up_number): Do not remove trailing
11536 0s from integers.
11537
115382006-08-13 Ulrich Drepper <drepper@redhat.com>
11539
11540 [BZ #2987]
11541 * sysdeps/unix/sysv/linux/clock_settime.c: Add code to use syscall
11542 for CPU clocks.
11543 * sysdeps/unix/clock_settime.c: Add support for platform-specific
11544 setting of CPU clocks.
11545
4c3f81d0
UD
115462006-06-23 Paul Eggert <eggert@cs.ucla.edu>
11547
11548 [BZ #2841]
11549 * sysdeps/generic/stdint.h (UINT8_C, UINT16_C): Don't append 'U',
11550 since C99 requires the result to promote to 'int' when uint_least8_t
11551 and uint_least16_t promote to 'int'.
11552
cd8e60ce
UD
115532006-08-12 Ulrich Drepper <drepper@redhat.com>
11554
9a5c46e8
UD
11555 [BZ #3013]
11556 * locale/programs/ld-ctype.c (ctype_output): Adjust alignments, fix
11557 lenght of one output field, correct bitmask creation.
11558 * locale/programs/ld-time.c: Add alignment.
11559
cd8e60ce
UD
11560 [BZ #2997]
11561 * misc/error.c: Add space between program name and message if file
11562 name is missing.
11563
9a528884
UD
115642006-08-03 Eric Blake <ebb9@byu.net>
11565
11566 [BZ #2998]
11567 * misc/error.c (error_tail) [_LIBC]: Avoid invalid free.
11568
1d05c2fb
UD
115692006-08-09 Ulrich Drepper <drepper@redhat.com>
11570
0c1c6c6c
UD
11571 * malloc/memusagestat.c: Silence warnings.
11572
1d05c2fb
UD
11573 * malloc/malloc.c: Dynamically size mmap treshold if the program
11574 frees mmaped blocks.
11575 Patch by Valerie Henson and Arjan van de Ven.
11576
2d1e6277
UD
115772006-08-08 Jakub Jelinek <jakub@redhat.com>
11578
be7ffd91
UD
11579 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h (O_DIRECT): Protect with
11580 __USE_GNU.
11581
2d1e6277
UD
11582 * stdlib/strtol_l.c (__strtol_ul_max_tab, __strtol_ul_rem_tab,
11583 __strtol_ull_max_tab, __strtol_ull_rem_tab): Declare.
11584 (DEF): Don't put the var into .gnu.linkonce.r.* section.
11585 Only provide var definitions in strtol_l (or for *ull*
11586 in strtoll_l).
11587
11588 * stdio-common/bug16.c (tests): New array.
11589 (do_tests): Allow the first hexadecimal digit
11590 to be 1, 2, 4 or 8. Do 3 additional tests.
11591
11592 * sysdeps/s390/fpu/libm-test-ulps: Update.
11593
11594 * sysdeps/unix/sysv/linux/s390/s390-32/fchownat.c (fchownat): Use
11595 fchownat syscall if available.
11596 * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat): Likewise.
11597 * sysdeps/unix/sysv/linux/sh/fchownat.c (fchownat): Likewise.
11598 * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Likewise.
11599
d0ccde25
UD
116002006-08-07 Ulrich Drepper <drepper@redhat.com>
11601
11602 * nis/nis_xdr.c: Avoid some function calls.
11603
13a0293d 116042006-08-07 Jakub Jelinek <jakub@redhat.com>
3f7a21a9 11605 Ulrich Drepper <drepper@redhat.com>
13a0293d
UD
11606
11607 * nis/nis_call.c (rec_dirsearch) [case LOWER_NAME]: Don't take
11608 short cut if only one name component is stripped away.
11609
bd1ebae0
UD
116102006-08-07 Ulrich Drepper <drepper@redhat.com>
11611
11612 * nis/nis_call.c: Minor cleanups throughout.
2d1e6277 11613 (rec_dirsearch) [case HIGHER_NAME]: Correctly size ndomain array.
bd1ebae0
UD
11614 (first_shoot): Add search_parent_first parameter. Only if it is set
11615 search parent server first.
11616 If directory for table found through cold start cache is not the same
11617 as referenced in the cache, don't use it.
11618 (__nisfind_server): Take additional parameter. Pass it on to
11619 first_shoot.
11620 (__prepare_niscall): Adjust __nisfind_server call.
11621 * nis/rpcsvc/nislib.h: Adjust __nisfind_server prototype.
11622 * nis/nis_table.c: Adjust __nisfind_server call.
11623 * nis/nis_lookup.c: Likewise.
11624 (nis_lookup): Don't loop endlessly if name is reduced to ".".
11625
f1762c0c
UD
116262006-08-03 Ulrich Drepper <drepper@redhat.com>
11627
fe710250
UD
11628 [BZ #2182]
11629 * math/s_cacosh.c: Return values from positive branch.
11630 * math/s_cacoshf.c: Likewise.
11631 * math/s_cacoshl.c: Likewise.
11632
a5852807
UD
11633 [BZ #2883]
11634 * sysvipc/sys/msg.h: Change return value to ssize_t.
11635 * sysdeps/unix/sysv/linux/msgrcv.c: Likewise.
fe710250
UD
11636 * sysvipc/msgrcv.c: Likewise.
11637 * include/sys/msg.h: Likewise.
39571a13 11638
6c215a8d
UD
11639 * grp/initgroups.c (internal_getgrouplist): Remove unnecessary
11640 test introduced in patch for bz #661.
39571a13 11641 (getgrouplist): Simplify code a bit. Don't allocate one additional
f13bfdd0 11642 element for NEWGROUPS.
6c215a8d 11643
9c06eb66
UD
11644 [BZ #2908]
11645 * stdio-common/printf_fphex.c (__printf_fphex): When rounding up
11646 'f', use '1' as leading digit not '\1'.
11647 * stdio-common/Makefile (tests): Add bug16.
11648 * stdio-common/bug16.c: New file.
11649
11650 [BZ #2914]
11651 * sysdeps/unix/sysv/linux/gethostid.c: Don't define OLD_HOSTIDFILE
11652 and don't try to open it. The patch introducing the macro
11653 contained a bug and used the same file name as the new file
11654 instead of using /var/adm/hostid. Nobody complaint so I'm taking
11655 this out completely.
11656
11657 [BZ #2926]
11658 * assert/assert.h: Move cast to void inside ?: to quiet gcc.
11659 Patch by Jerry James <Jerry.James@usu.edu>.
11660
f1762c0c
UD
11661 * rt/Makefile (tests): Add tst-clock2.
11662 * rt/tst-clock2.c: New file.
11663
11664 [BZ #2978]
11665 * resolv/gai_notify.c (__gai_notify_only): Copy memory for thread
11666 function and its parameters and pass it to new thread.
11667 (__gai_notify): Add support for alternative waiting for completion.
11668 * resolv/gai_suspend.c (gai_suspend): Add support for alternative
11669 waiting for completion.
11670 * resolv/getaddrinfo_a.c: Likewise.
11671 * resolv/gai_misc.h (struct waitlist): Don't add cond if alternative
11672 waiting for completion is used.
11673 * resolv/gai_misc.c: Allow overwriting code to start helper thread.
11674 * resolv/gai_cancel.c: Include <gai_misc.h> not "gai_misc.h".
11675 * resolv/gai_error.c: Likewise.
11676 * resolv/gai_sigqueue.c: Likewise.
11677
83ae6b40
RM
116782006-08-02 Thomas Schwinge <tschwinge@gnu.org>
11679
0e4e62fe 11680 * hurd/getdport.c (__getdport): Don't return EBADF; instead set
f1762c0c 11681 errno to EBADF and return MACH_PORT_NULL.
83ae6b40 11682
82ee37c5
UD
116832006-06-23 Joseph Myers <joseph@codesourcery.com>
11684
11685 [BZ #2980]
f1762c0c 11686 * posix/Makefile (CFLAGS-waitid.c): Add -fasynchronous-unwind-tables.
82ee37c5
UD
11687
116882006-08-02 Ulrich Drepper <drepper@redhat.com>
11689
11690 * elf/dl-addr.c (_dl_addr): If GNU-style hash tables are present,
11691 walk them instead of the symbol table.
11692
7bb1b2c9
UD
116932006-08-01 Ulrich Drepper <drepper@redhat.com>
11694
f13bfdd0 11695 [BZ #2098]
fbbc73b3
UD
11696 * nscd/initgrcache.c (addinitgroupsX): Judge successful lookups by
11697 status of NSS calls, not the number of returned entries.
11698
a4518922
UD
11699 * sysdeps/unix/sysv/linux/syscalls.list: Remove add_key,
11700 request_key, keyctl.
7bb1b2c9 11701
b06e7e9a
UD
117022006-07-31 Ulrich Drepper <drepper@redhat.com>
11703
11704 * sysdeps/unix/sysv/linux/dl-osinfo.h: Remove unnecessary include.
11705
f1227969
UD
117062006-07-16 Jeff Bailey <jbailey@ubuntu.com>
11707
11708 * elf/tst-auditmod1.c: Fix typo in #error.
11709
82ae2712
UD
117102006-07-31 Ulrich Drepper <drepper@redhat.com>
11711
f1227969
UD
11712 * elf/tst-auditmod1.c: Remove code for unsupported architectures.
11713
82ae2712
UD
11714 * iconvdata/run-iconv-test.sh: Run cmp in C locale.
11715
a1260d92
UD
117162006-07-20 Adam Nemet <anemet@caviumnetworks.com>
11717
11718 * stdlib/test-canon.c (do_test): Close fd before unlinking file so
b06e7e9a 11719 that the directory is empty even on non-POSIX filesystems.
a1260d92 11720
d2de41fe
UD
117212006-07-31 Ulrich Drepper <drepper@redhat.com>
11722
13669f2c
UD
11723 * elf/dl-open.c (dl_open_worker): Add branch prediction.
11724
d2de41fe
UD
11725 * nis/nss_compat/compat-grp.c: Avoid unnecessary setgrent calls into
11726 the backend NSS module. If backend setgrent call failed, don't have
11727 internal_setgrent fail. Just remember this until it is needed.
11728 * nis/nss_compat/compat-pwd.c: Likewise.
11729 * nis/nss_compat/compat-spwd.c: Likewise.
11730
b894c2ea
RM
117312006-07-30 Roland McGrath <roland@redhat.com>
11732
11733 * sysdeps/unix/sysv/linux/ia64/sigsuspend.c: File removed.
11734 * sysdeps/unix/sysv/linux/x86_64/sigsuspend.c: File removed.
11735 * sysdeps/unix/sysv/linux/s390/s390-64/sigsuspend.c: File removed.
11736 * sysdeps/unix/sysv/linux/sparc/sparc64/sigsuspend.c: File removed.
11737
11738 * sysdeps/unix/sysv/linux/not-cancel.h (pause_not_cancel): New macro.
11739 (nanosleep_not_cancel): New macro.
11740 (sigsuspend_not_cancel): new macro.
11741 * sysdeps/unix/sysv/linux/sigsuspend.c [__ASSUME_REALTIME_SIGNALS]
11742 (do_sigsuspend): Define as inline.
11743 (__sigsuspend): Always use do_sigsuspend.
11744 [! NO_CANCELLATION] (__sigsuspend_nocancel): New function.
11745 * include/signal.h: Declare __sigsuspend_nocancel.
11746 * sysdeps/posix/pause.c
11747 [! NO_CANCELLATION] (__pause_nocancel): New function.
11748
11749 * include/unistd.h (__pause_nocancel): Add attribute_hidden.
11750 * include/time.h (__nanosleep_nocancel): Likewise.
11751
c10d32c8
UD
117522006-07-30 Ulrich Drepper <drepper@redhat.com>
11753
11754 * locale/programs/localedef.c (add_to_readlist): Rename local
11755 variables to avoid confusion.
11756
11757 * locale/programs/charmap.c (charmap_read): Emit error message if
11758 charmap couldn't be found or read.
11759
6822f056
UD
117602006-07-28 Ulrich Drepper <drepper@redhat.com>
11761
d5ba53f9
UD
11762 * sysdeps/unix/sysv/linux/kernel-features.h: Define
11763 __ASSUME_FUTEX_LOCK_PI.
11764 * include/time.h: Declare __nanosleep_nocancel.
11765 * include/unistd.h: Declare __pause_nocancel.
11766
6822f056
UD
11767 * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Use this instead of
11768 LDFLAGS. Add -lgcc_eh and libc_nonshared (again) to make sure we
11769 get the __stack_chk_fail_local definition when it's needed.
11770
3a975ff5
UD
117712006-07-26 Ulrich Drepper <drepper@redhat.com>
11772
6de1f625
UD
11773 * dlfcn/Makefile: Add rules to build and run bug-atexit3.
11774 * dlfcn/bug-atexit3.c: New file.
11775 * dlfcn/bug-atexit3-lib.cc: New file.
11776
3a975ff5
UD
11777 * dlfcn/dlmopen.c (dlmopen_doit): Don't allow RTLD_GLOBAL to be
11778 used when the namespace is not the base namespace.
11779
a92b1166
UD
117802006-07-26 Gavin Romig-Koch <gavin@redhat.com>
11781
11782 * stdlib/cxa_atexit.c (__new_exitfn_called): New variable.
11783 (__new_exitfn): Bump it in every successful call.
11784 * stdlib/cxa_finalize.c (__cxa_finalize): If destructor registered
11785 more exit handlers, call them right away.
11786 * stdlib/exit.h: Declare __new_exitfn_called.
11787
a08336fb
UD
117882006-07-25 Ulrich Drepper <drepper@redhat.com>
11789
bd3754dc
UD
11790 * stdlib/cxa_finalize.c (__cxa_finalize): Fix race condition when
11791 calling registered handler.
11792
a08336fb
UD
11793 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Fix comment.
11794 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
11795 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
11796 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
11797 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
11798 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
11799 * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
11800 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
11801
871b9158
UD
118022006-07-10 Ulrich Drepper <drepper@redhat.com>
11803
11804 * elf/dl-lookup.c (dl_new_hash): New functions.
11805 (_dl_lookup_symbol_x): Rename hash to old_hash and don't compute
11806 value here. Compute new-style hash value. Pass new hash value
11807 and reference to variable with the old value to do_lookup_x.
11808 (_dl_setup_hash): If DT_GNU_HASH is defined, use it and not
11809 old-style hash table.
11810 (_dl_debug_bindings): Pass new hash value and reference to variable
11811 with the old value to do_lookup_x.
11812 * elf/do-lookup.h (do_lookup_x): Accept additional parameter with
11813 new-style hash value and change old-style hash value parameter to
11814 be a reference. Reoganize functions to determine whether
11815 new-style hash table is available. Only fall back on old-style
11816 table. If old-style hash value is needed, compute it here.
11817 * elf/dynamic-link.h (elf_get_dynamic_info): Relocate DT_GNU_HASH
11818 entry.
11819 * elf/elf.h: Define SHT_GNU_HASH, DT_GNU_HASH, DT_TLSDEC_PLT,
11820 DT_TLSDEC_GOT. Adjust DT_ADDRNUM.
11821 * include/link.h (struct link_map): Add l_gnu_bitmask_idxbits,
11822 l_gnu_shift, l_gnu_bitmask, l_gnu_buckets and l_gnu_chain_zero.
11823 * Makeconfig: If linker supports --hash-style option add it to all
11824 linker command lines to build DSOs.
11825 * config.make.in: Define have-hash-style.
11826 * configure.in: Test whether linker supports --hash-style option.
11827
11828 * elf/dl-misc.c (_dl_name_match_p): Make MAP parameter const.
11829 * sysdeps/generic/ldsodefs.h: Adjust prototype.
11830
a1f0de82
UD
118312006-06-27 Ulrich Drepper <drepper@redhat.com>
11832
361a3706
UD
11833 * elf/dl-load.c (open_path): Fix test to determine whether DSO is
11834 auditing.
11835
a1f0de82
UD
11836 * elf/dl-load.c (_dl_map_object): Try harder to avoid looking at
11837 RPATH of main map twice.
11838
4259230f
UD
118392006-06-22 Ulrich Drepper <drepper@redhat.com>
11840
11841 * intl/dcigettext.c (DCIGETTEXT): If _nl_find_msg returns -1 don't
11842 look further, return original strings.
11843 (_nl_find_msg): Do not return found translation if the conversion
11844 failed. Either signal the string is unusable or that something went
11845 wrong and the original should be used.
11846
118472006-06-21 Ulrich Drepper <drepper@redhat.com>
11848
11849 * string/_strerror.c (__strerror_r): Add __builtin_expect.
11850
f9b7a98b
UD
118512006-06-14 Jakub Jelinek <jakub@redhat.com>
11852
11853 [BZ #2766]
11854 * misc/insremque.c (insque): Handle prev == NULL.
11855 * misc/Makefile (tests): Add tst-insremque.
11856 * misc/tst-insremque.c: New test.
11857
ac55a25b
UD
118582006-06-17 Ulrich Drepper <drepper@redhat.com>
11859
11860 [BZ #2792]
11861 * elf/dl-deps.c (expand_dst): Rename __cnt variable to not
11862 conflict with DL_DST_REQUIRED.
11863
02f366b3
UD
118642006-06-16 Ulrich Drepper <drepper@redhat.com>
11865
11866 * nis/nis_subr.c (nis_getnames): Fix the implementation to better
11867 match what Solaris does.
11868
9009e8f8
UD
118692006-06-04 Ulrich Drepper <drepper@redhat.com>
11870
1b8373f4
UD
11871 * sysdeps/posix/spawni.c (__spawni): Use local_seteuid and
11872 local_setegid instead of seteuid and setegid.
11873 * sysdeps/generic/local-setxid.h: New file.
11874 * sysdeps/unix/sysv/linux/local-setxid.h: New file.
11875
7231452e
UD
11876 * sysdeps/posix/spawni.c (__spawni): Use non-cancelable interfaces.
11877
9009e8f8 11878 * string/Makefile (tests): Add bug-envz1.
02f366b3 11879 * string/bug-envz1.c: New file.
9009e8f8 11880
33e63e79
UD
118812006-06-02 Jakub Jelinek <jakub@redhat.com>
11882
11883 * posix/regex_internal.c (re_string_skip_chars): If no character has
11884 been converted at all, set *last_wc to WEOF. If mbrtowc failed, set wc
11885 to the byte which couldn't be converted.
11886 (re_string_reconstruct): Don't clear valid_raw_len before calling
11887 re_string_skip_chars. If wc is WEOF after re_string_skip_chars, set
11888 tip_context using re_string_context_at.
11889 * posix/Makefile: Add rules to build and run bug-regex25 test.
11890 * posix/bug-regex25.c: New test.
11891
fdc02996
UD
118922006-06-02 Ryan S. Arnold <rsa@us.ibm.com>
11893
11894 [BZ #2703]
11895 * string/envz.c (envz_strip): Correct erroneously reversed src
11896 and dest parameters to memmove() invocation.
11897
902c4291
UD
118982006-05-30 Jakub Jelinek <jakub@redhat.com>
11899
11900 * nscd/nscd.h (prune_cache): Add fd argument to prototype.
11901 * nscd/nscd.c (parse_opt): Read response from INVALIDATE request
11902 to make sure the database has been already invalidated.
11903 * nscd/cache.c (prune_cache): Add fd argument. Write response to fd
11904 after the cache has been invalidated. Use pthread_mutex_lock rather
11905 than pthread_mutex_trylock if fd != -1.
11906 * nscd/connections.c (invalidate_cache): Add fd argument, write
11907 response to fd if not calling prune_cache, pass fd to prune_cache.
11908 (handle_request): Adjust invalidate_cache caller.
11909 (nscd_run): Pass -1 as fd to prune_cache.
11910
ecc68568
UD
119112006-05-30 Ulrich Drepper <drepper@redhat.com>
11912
11913 * sysdeps/posix/getaddrinfo.c (gaiconf_init): Initialize bits in
11914 the correct place.
11915
9636a217
UD
119162006-05-29 Ulrich Drepper <drepper@redhat.com>
11917
11918 * nscd/nscd.h (struct database_dyn): Add prunelock field.
11919 * nscd/cache.c (prune_cache): Take prunelock before starting the
11920 work. Just return in case it is already taken.
cabfcde1 11921 * nscd/connections.c (dbs): Initialize .prunelock.
9636a217 11922
6bcb494a
UD
119232006-05-25 Ulrich Drepper <drepper@redhat.com>
11924
672d5a63 11925 * nis/nis_removemember.c (nis_removemember): Avoid unnecessary
ecc68568 11926 copying. No need to allocate new array for group members. Just
672d5a63
UD
11927 move the pointers and update the size.
11928
1663b44f
UD
11929 * nis/nis_addmember.c (nis_addmember): Avoid unnecessary copying.
11930 Avoid memory leak in case realloc fails. Simplification for
11931 better code generation.
11932
11933 Avoid deprecation warning because of libc_hidden_proto for
11934 inet6_option_alloc.
11935 * inet/inet6_option.c (option_alloc): Renamed from
11936 inet6_option_alloc. Made static.
9636a217 11937 (inet6_option_alloc): Now a simple wrapper around option_alloc.
1663b44f
UD
11938 (inet6_option_append): Call option_alloc.
11939 * include/netinet/in.h: Remove libc_hidden_proto for
11940 inet6_option_alloc.
11941
6bcb494a
UD
11942 * nis/nis_callback.c (__nis_create_callback): Always call xdr_free
11943 for cleanup when cb!=NULL [Coverity CID 233].
11944
aec6b246
UD
119452006-05-24 Ulrich Drepper <drepper@redhat.com>
11946
07bfff20
UD
11947 [BZ #2693]
11948 * inet/Makefile (routines): Add inet6_opt and inet6_rth.
11949 * inet/Versions (libc, GLIBC_2.5): Add inet6_opt_init,
11950 inet6_opt_append, inet6_opt_finish, inet6_opt_set_val, inet6_opt_next,
11951 inet6_opt_find, inet6_opt_get_val, inet6_rth_space, inet6_rth_init,
11952 inet6_rth_add, inet6_rth_reverse, inet6_rth_segments,
11953 and inet6_rth_getaddr.
11954 * inet/netinet/ip6.h (struct ip6_rthdr0): Make ip6r0_addr a flexible
11955 array.
11956 * inet/netinet/in.h (struct ip6_mtuinfo): Define.
11957 Mark inet6_option_* interfaces as deprecated.
11958 Declare inet6_opt_init, inet6_opt_append, inet6_opt_finish,
11959 inet6_opt_set_val, inet6_opt_next, inet6_opt_find, inet6_opt_get_val,
11960 inet6_rth_space, inet6_rth_init, inet6_rth_add, inet6_rth_reverse,
11961 inet6_rth_segments, and inet6_rth_getaddr.
11962 * inet/inet6_opt.c: New file.
11963 * inet/inet6_rth.c: New file.
11964
11965 * inet/netinet/icmp6.h: Pretty printing.
11966
aec6b246
UD
11967 [BZ #2683]
11968 * elf/dl-addr.c (_dl_addr): Don't match undefined references.
11969
2d571cd1
UD
119702006-05-23 Ulrich Drepper <drepper@redhat.com>
11971
062e719b
UD
11972 * nis/nis_lookup.c (nis_lookup): Use __prepare_niscall instead of
11973 doing it all here. When server does not know the answer do not
11974 fail immediate, try parent first.
11975
2d571cd1
UD
11976 * nis/nis_domain_of_r.c (nis_domain_of_r): Add missing buffer
11977 overflow test.
11978
a17fa610
UD
119792006-05-20 Ulrich Drepper <drepper@redhat.com>
11980
11981 * nis/nis_call.c (__prepare_niscall): New function. Split out
11982 from __do_niscall.
11983 * nis/nis_table.c (__create_ib_request): Renamed from create_ib_request
11984 and exported.
11985 (__follow_path): New function. Split out from nis_list.
11986 * nis/nis_xdr.h: Add libnsl_hidden_proto for _xdr_ib_request and
11987 _xdr_nis_result.
11988 * nis/nis_xdr.c: Add libnsl_hidden_def for _xdr_ib_request and
11989 _xdr_nis_result.
11990 * nis/libnsl.h: Declare __prepare_niscall, __create_ib_request,
11991 and __follow_path.
11992 * nis/Versions: Export __prepare_niscall, __create_ib_request,
11993 __follow_path, __do_niscall3, _xdr_ib_request, and _xdr_nis_result
11994 from libnsl for version GLIBC_PRIVATE.
11995 * nis/nisplus-parser.h: Remove _nss_nisplus_parse_pwent_chk.
11996 Remove entry parameter from _nss_nisplus_parse_pwent and
11997 _nss_nisplus_parse_grent.
11998 * nis/nss_nisplus/nisplus-parser.c: Likewise.
11999 * nis/nss_nisplus/nisplus-pwd.c: Remove support for SETENT_BATCH_READ
12000 again. Rewrite getpwent handling to not use nis_first_entry and
12001 nis_next_entry. Roll out own niscall handling.
12002 * nis/nss_nisplus/nisplus-grp.c: Likewise.
12003
12004 * sunrpc/xdr_rec.c: Fix typo in comment.
12005
429bb183
UD
120062006-05-19 Ulrich Drepper <drepper@redhat.com>
12007
1d4f062a
UD
12008 * nis/nis_call.c (__do_niscall3): Avoid code duplication in error
12009 handling.
12010
101cc598
UD
12011 * nis/nis_callback.c (internal_nis_do_callback): Don't use malloc
12012 to allocate memory for my_pollfd. Better initialization of
12013 cb_is_running. Use TEMP_FAILURE_RETRY.
12014
f50fa10c
UD
12015 * malloc/memusage.sh (memusageso): Add quotes.
12016 (memusagestat): Likewise.
12017 * debug/xtrace.sh (pcprofileso): Likewise.
12018 (pcprofiledump): Likewise.
12019 * debug/Makefile ($(objpfx)xtrace): Use $LIB in SLIBDIR
12020 replacement.
12021 * malloc/Makefile ($(objpfx)memusage): Likewise.
12022
882bfe73
UD
12023 * nis/nis_callback.c (__nis_create_callback): Calls to
12024 svcudp_bufcreate and svctcp_create can fail. Free ->xprt if
12025 asprintf call fails.
12026
429bb183
UD
12027 * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_sendreq): Make sure
12028 no uninitialized memory is passed to sendto.
12029
f90de831
UD
120302006-05-18 Ulrich Drepper <drepper@redhat.com>
12031
12032 * nis/nis_callback.c (__nis_create_callback): Use asprinf instead
12033 of snprintf+strdup. Handle OOM.
12034 * nis/nis_callback.c (__nis_create_callback): Allocate cb and
12035 cb->serv together. Remove now obsolete free calls.
12036 (__nis_destroy_callback): Remove now obsolete free call.
12037
a17fa610 120382006-05-18 David Woodhouse <dwmw2@redhat.com>
6e2a7825
UD
12039
12040 * sysdeps/posix/getaddrinfo.c: Add unique labels to the default
12041 RFC3484 precedence table for fec0::/10 and fc00::/7 (site-local
12042 and ULA respectively). Set precedence for IPv4 address to 10 as
12043 defined in RFC3484 for preferring IPv6.
12044 * posix/gai.conf: Update to match the new default tables.
12045
758b9d7e
UD
120462006-05-18 Jakub Jelinek <jakub@redhat.com>
12047
12048 * nis/nss_compat/compat-pwd.c (internal_setpwent): If nss_set*ent
12049 returned NSS_STATUS_UNAVAIL, still return NSS_STATUS_SUCCESS.
12050 * nis/nss_compat/compat-spwd.c (internal_setspent): Likewise.
12051 * nis/nss_compat/compat-grp.c (internal_setgrent): Likewise.
12052
12053 * nis/nss_compat/compat-initgroups.c (nss_setgrent, nss_endgrent):
12054 Removed.
12055 (init_nss_interface): Remove initialization of these variables.
12056
120572006-05-18 Ulrich Drepper <drepper@redhat.com>
12058
12059 * nis/nis_call.c (rec_dirsearch): Little optimization: pull
12060 nis_free_directory forward to avoid duplication.
12061
388c779e
UD
120622006-05-17 Ulrich Drepper <drepper@redhat.com>
12063
5f1724bf
UD
12064 * nis/nis_call.c (rec_dirsearch): Handle __nis_finddirectory and
12065 rec_dirsearch returning NULL.
12066 (first_shoot): Handle __nis_finddirectory returning NULL.
12067 (__nisfind_server): Fix leak when rec_dirsearch returns NULL.
12068
388c779e
UD
12069 * sysdeps/unix/sysv/linux/sys/inotify.h: Define IN_CLOSE, IN_MOVE,
12070 IN_ONLYDIR, IN_DONT_FOLLOW, and IN_MASK_ADD.
12071
360d5cf4
UD
120722006-05-17 Jakub Jelinek <jakub@redhat.com>
12073
12074 * sunrpc/key_call.c (getkeyserv_handle): Call auth_destroy if
12075 pid changed.
12076
88dbff8c
UD
120772006-05-15 Ulrich Drepper <drepper@redhat.com>
12078
6f8a7dff
UD
12079 * include/rpc/pmap_prot.h: Mark all functions as hidden.
12080
12081 * nscd/nscd_initgroups.c: Mark __gr_map_handle as hidden.
12082 * nscd/nscd_getgr_r.c: Likewise.
12083
12084 * include/rpc/pmap_rmt.h: Mark all functions as hidden.
12085
12086 * nscd/nscd_getai.c (__hst_map_handle): Mark as hidden.
12087 * nscd/nscd_gethst_r.c (__hst_map_handle): Likewise.
12088
12089 * stdlib/longlong.h (__clz_tab): Mark as hidden.
12090
12091 * iconv/gconv_int.h: Mark __gconv_lock as hidden.
12092
360d5cf4 12093 * include/rpc/key_prot.h: Mark all _internal functions as hidden.
8263ed62
UD
12094
12095 * include/rpc/auth.h: Mark xdr_des_block_internal and
12096 xdr_opaque_auth_internal as hidden.
12097
12098 * sysdeps/unix/sysv/linux/getdents.c: Mark __have_no_getdents64 as
12099 hidden.
12100
360d5cf4 12101 * include/rpc/xdr.h: Mark all _internal functions as hidden.
8263ed62 12102
02264020
UD
12103 * misc/getusershell.c (okshells): Don't use static initializers,
12104 do it dynamically.
12105
fd5ea238
UD
12106 * stdlib/fmtmsg.c (keywords): Change type of len element to
12107 uint32_t to not waste space on 64bit machines.
12108
9446614c
UD
12109 * locale/setlocale.c: Change _nl_category_names into a string.
12110 Add new _nl_category_name_idxs. Change all users.
12111 * locale/localeinfo.h: Adjust declaration of _nl_category_names.
12112 Declare _nl_category_name_idxs.
12113 * locale/findlocale.c: Adjust for _nl_category_names change.
12114 * locale/loadlocale.c: Likewise.
12115 * locale/newlocale.c: Likewise.
12116 * intl/dcigettext.c: Likewise.
12117
88dbff8c
UD
12118 * iconv/gconv_conf.c (add_alias): Move actual alias handling to...
12119 (add_alias2): ...here. New function.
12120 (__gconv_read_conf): Simplify builtin alias handling.
12121 (builtin_aliases): Convert to string to avoid relocations.
12122 * iconv/gconv_builtin.h: Add comment about correct formatting.
12123
4442d58f
UD
121242006-05-15 Jakub Jelinek <jakub@redhat.com>
12125
12126 * resolv/res_debug.c (loc_ntoa): Make error const.
12127
121282006-05-14 Andreas Schwab <schwab@suse.de>
12129
12130 * math/complex.h [__LDBL_COMPAT]: Use __REDIRECT_NTH.
12131
121322006-05-12 Jakub Jelinek <jakub@redhat.com>
12133
12134 * sysdeps/unix/sysv/linux/sched_getaffinity.c: Include sys/param.h.
12135 (__sched_getaffinity_new): Don't crash if cpusetsize is smaller than
12136 sizeof (cpu_set_t).
12137
a51752b6
UD
121382006-05-11 Ulrich Drepper <drepper@redhat.com>
12139
5d3fd1f6
UD
12140 * resolv/res_debug.c (loc_ntoa): Define error as array, not pointer.
12141
08cfb839
UD
12142 * include/arpa/nameser.h: Declare _ns_flagdata as hidden.
12143
4b481a15
UD
12144 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_master.
12145 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_master.
12146
12147 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypbind_resp.
12148 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypbind_resp.
12149
12150 * nis/nis_xdr.c: Add libnsl_hidden_def for xdr_cback_data.
12151 * include/rpcsvc/nis_callback.h: Add libnsl_hidden_proto for
12152 xdr_cback_data.
12153
12154 * nis/ypupdate_xdr.c: Add libnsl_hidden_def for xdr_ypupdate_args.
12155 * include/rpcsvc/ypupd.h: Add libnsl_hidden_proto for
12156 xdr_ypupdate_args.
12157
12158 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_order.
12159 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_order.
12160
12161 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_maplist.
12162 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_maplist.
12163
12164 * nis/nis_xdr.c: Add libnsl_hidden_def for xdr_obj_p.
12165 * include/rpcsvc/nis_callback.h: New file.
12166
12167 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_val.
12168 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_val.
12169
12170 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypreq_nokey.
12171 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypreq_nokey.
12172
12173 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypmaplist.
12174 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypmaplist.
12175
12176 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypreq_nokey.
12177 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypreq_nokey.
12178
b1ad49c6
UD
12179 * nis/ypupdate_xdr.c: Add libnsl_hidden_def for xdr_ypdelete_args.
12180 * include/rpcsvc/ypupd.h: Add libnsl_hidden_proto for
12181 xdr_ypdelete_args.
12182
cd5f7829
UD
12183 * nis/nis_xdr.h: Mark all functions as hidden. Remove
12184 __BEGIN_DECLS and __END_DECLS, the header is not installed.
12185
a51752b6
UD
12186 * nis/nis_error.c: Remove table of strings. Use position
12187 independent mechanism.
12188 * nis/nis_error.h: New file.
12189
3d237e42
UD
121902006-05-11 Jakub Jelinek <jakub@redhat.com>
12191
12192 * locale/programs/ld-time.c (time_finish): If wide era name or
12193 format aren't provided, set both wname and wformat to L"".
12194
d6c159fe
UD
121952006-05-10 Ulrich Drepper <drepper@redhat.com>
12196
0088b04e
UD
12197 * sysdeps/unix/sysv/linux/tcgetattr.c (__tcgetattr): Only store
12198 results if the call was succesful.
12199
d6c159fe
UD
12200 * nis/nss-nis.h: Mark __yperr2nss_tab and __yperr2nss_count as hidden.
12201
12202 * nis/nss-nisplus.h: Mark __niserr2nss_tab and __niserr2nss_count
12203 as hidden.
12204
5c5acdf0
UD
122052006-05-10 Jakub Jelinek <jakub@redhat.com>
12206
12207 * misc/sys/queue.h: Remove uses of all QUEUEDEBUG_* macros.
12208
16d620db
UD
122092006-05-10 Ulrich Drepper <drepper@redhat.com>
12210
12211 * posix/wordexp.c (parse_glob): No need to check ifs for NULL, the
12212 caller makes sure this is not the case.
12213 (wordexp): Simplify ifs_white creation. [Coverity CID 231]
12214
e7c8359e
UD
122152006-05-09 Ulrich Drepper <drepper@redhat.com>
12216
ecf359c6
UD
12217 * posix/wordexp.c: Remove numerous NULL pointer tests before FREE
12218 calls.
12219
400cc70a
UD
12220 * io/ftw.c (open_dir_stream): Return right away if REALLOC fails.
12221 [Coverity CID 229, 230]
12222
12223 * argp/argp-help.c (hol_entry_help): Handle STATE==NULL in ARG and
12224 DGETTEXT calls.
12225 (hol_help): Likewise. [Coverity CID 226, 227]
12226
12227 * string/argz-replace.c (__argz_replace): Unconditionally call
12228 free on SRC. [Coverity CID 225]
12229
12230 * nis/nis_creategroup.c (nis_creategroup): No need to duplicate
12231 the return value of __nis_default_owner and __nis_default_group,
12232 it has been especially allocated. [Coverity CID 224]
12233
51e59260
UD
12234 * nis/nis_defaults.c (searchXYX): New functions. Used by both
12235 searchgroup and searchowner. Significantly simplified.
12236 (__nis_default_owner): Remove duplication. Do not locally copy the
12237 string before duplicating it.
12238 (__nis_default_group): Likewise.
12239
12240 * nis/nis_lookup.c (nis_lookup): After calling nis_free_directory,
12241 we must clear the variable before calling __nisfind_server.
12242
12243 * nis/nis_lookup.c (nis_lookup): Always free memory allocated with
12244 nis_getnames. [Coverity CID 223]
12245
12246 * locale/programs/locfile.c (locfile_read): Use alloca instead of
12247 xmalloc to allocate local repertoire name. [Coverity CID 222]
12248
12249 * iconv/iconv_charmap.c (use_to_charmap): No need to dynamically
12250 allocate memory for the input to add_bytes. [Coverity CID 221]
12251
e7c8359e 12252 * posix/wordexp.c (w_addword): Free word if realloc fails and it
51e59260 12253 was allocated here. [Coverity CID 219, 220]
e7c8359e
UD
12254
12255 * posix/getconf.c (print_all): Free confstr data after printing.
12256 [Coverity CID 218]
12257
12258 * sysdeps/posix/getaddrinfo.c (gaih_inet): Free canon string if
12259 list allocation fails. [Coverity CID 215]
12260
12261 * nss/nsswitch.c (__nss_configure_lookup): Fix loop end condition.
12262 [Coverity CID 213]
12263
12264 * argp/argp-help.c (hol_entry_cmp): Don't call canon_doc_option if
12265 string is NULL. [Coverity CID 212]
12266 * argp/Makefile: Add rules to build and run bug-argp1.
12267 * argp/bug-argp1.c: New file.
12268
12269 * io/ftw.c (ftw_dir): Use __rawmemchr instead of strchr to find
12270 end of string.
12271 * stdlib/canonicalize.c (__realpath): Likewise.
12272
12273 * locale/programs/ld-time.c (time_finish): Don't dereference NULL
12274 pointer. [Coverity CID 206]
12275
12276 * elf/dl-dst.h (DL_DST_REQUIRED): Be prepared for missing link map
12277 in statically linked code.
12278 * elf/dl-load.c (_dl_dst_substitute): When replacing ORIGIN in
12279 statically built code, be prepared to have no link map.
12280 [Coverity CID 205]
12281
12282 * argp/argp-help.c (fill_in_uparams): Handle STATE==NULL in
12283 dgettext calls. [Coverity CID 204]
12284
12285 * argp/argp-help.c (struct uparams): Remove valid member. Change
12286 the one user.
12287 (uparam_names): Reduce size. Avoid relative relocations.
12288 Moved to read-only segment.
12289 (fill_in_uparams): Update for new layout.
12290
12291 * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs): Parameter can be
12292 assumed to always be != NULL. [Coverity CID 202]
12293
12294 * argp/argp-help.c (hol_entry_help): Remove some dead code
12295 [Coverity CID 200].
12296
12297 * nis/nss_nis/nis-service.c (_nss_nis_getservbyport_r): Optimize
12298 away a few more unconditional yperr2nss calls.
12299 (_nss_nis_getservbyname_r): Likewise.
12300
acf82eaf
UD
123012006-05-06 Ulrich Drepper <drepper@redhat.com>
12302
4461cf48
UD
12303 * sysdeps/generic/ldsodefs.h: Remove support for non-core
12304 architectures.
12305
b74a8c7f
UD
12306 * sysdeps/unix/sysv/linux/check_pf.c (make_request): Make sure
12307 that unused memory passed to sendto is nevertheless initialized.
12308
acb98cb5
UD
12309 [BZ #2499]
12310 * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Avoid
12311 possibly unaligned memory accesses.
12312
bce16467
UD
12313 * include/arpa/nameser.h: Also optimize NS_PUT16 and NS_PUT32.
12314 * resolv/res_mkquery.c: Use NS_PUT16 and NS_PUT32 instead of __putshort
12315 and __putlong respectively. Correct buffer overflow check for
12316 NS_NOTIFY_OP.
12317
12318 * resolv/res_send.c (send_vc): Use ns_put16 instead of putshort.
12319
8e45b1ac
UD
12320 * resolv/res_send.c (res_queriesmatch): Fix typo in comment.
12321 (send_dg): Rewrite error handling to be more compact and avoid
12322 double recomputation of timeouts. Pass MSG_NOSIGNAL to send.
12323
697e1628
UD
12324 * include/arpa/nameser.h: Add optimizations for NS_GET16 and NS_GET32.
12325
12326 * resolv/res_send.c (res_nameinquery): Use NS_GET16 directly
12327 instead of ns_get16.
12328 (res_queriesmatch): Likewise. Minor optimization.
12329
acf82eaf
UD
12330 [BZ #2499]
12331 * resolv/res_query.c (__libc_res_nquery): If answerp != NULL,
12332 __libc_res_nsend might reallocate the buffer for the answer. In
12333 this case we have to reload the HP pointer.
12334
7bfee654
UD
123352006-05-05 Ulrich Drepper <drepper@redhat.com>
12336
694b49ca
UD
12337 * stdio-common/vfscanf.c (memory_error): Remove definition. Add
12338 some branch prediction hints.
12339
7bfee654
UD
12340 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Define SPLICE_F_*.
12341 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
12342 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
12343 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
12344 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
12345 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
12346 * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
12347 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
12348
308bb2d5
UD
123492006-05-05 Martin Schwidefsky <schwidefsky@de.ibm.com>
12350
12351 * sysdeps/s390/s390-32/elf/start.S: Replace pc relative relocation
12352 by a GOT relocation to make Scrt1.o position independent.
12353 * sysdeps/s390/s390-64/elf/start.S: Likewise.
12354
12355 * sysdeps/unix/sysv/linux/s390/s390-32/syscall.S: Add support for
12356 six system call parameters.
12357 * sysdeps/unix/sysv/linux/s390/s390-64/syscall.S: Likewise.
12358
cdb9c321
UD
123592006-05-05 Ulrich Drepper <drepper@redhat.com>
12360
12361 * sunrpc/svcauth_des.c (cache_init): Use calloc instead of
12362 malloc&bzero.
12363
12364 * sunrpc/svc_udp.c (BZERO): Remove definition.
12365 (CALLOC): Define.
12366 (svc_enablecache): Use CALLOC instead of ALLOC&BZERO.
12367
12368 * sunrpc/des_impl.c: Remove ALT_ECB support. We never used it.
12369 (des_SPtrans): Use uint32_t type.
12370 (des_skb): Likewise.
12371
12372 * sunrpc/xdr_ref.c (xdr_reference): Use calloc instead of malloc&bzero.
12373
fff04b32
UD
123742006-05-05 Jakub Jelinek <jakub@redhat.com>
12375
12376 [BZ #2509]
12377 * stdio-common/tst-printf.sh: Adjust for tst-printf.c change even
12378 on 32-bit arches.
12379
123802006-05-05 Ulrich Drepper <drepper@redhat.com>
12381
12382 * locale/programs/ld-address.c (address_finish): Fix one more
cdb9c321 12383 place where the iso639 array might be accessed beyond the limits.
fff04b32 12384
077a30bc 123852006-05-04 Ulrich Drepper <drepper@redhat.com>
77dd4c3b 12386
f2d5cf50
UD
12387 * nis/nis_table.c (nis_list): Avoid clearing res twice before
12388 filling it for the first time.
12389
3e4370cf
UD
12390 * nis/nis_table.c (get_tablepath): Renamed from __get_tablepath.
12391 Adjust all callers.
12392 Free res object content before returning.
12393
5e65a53d
UD
12394 * sunrpc/xdr_array.c (xdr_array): Use calloc instead of malloc&bzero.
12395
48be3114
UD
12396 * sunrpc/key_call.c (__rpc_thread_key_cleanup): Also free
12397 client->cl_auth.
12398
ca4fce0e
UD
12399 * sunrpc/rpc_thread.c (__rpc_thread_destroy): Don't skip entire
12400 cleanup for initial thread, just the free call on TVP.
12401
077a30bc 12402 * nscd/gai.c (__getline): Define.
3b7a95fb 12403
5d37289a 12404
3f87d901 12405See ChangeLog.16 for earlier changes.