]> sourceware.org Git - glibc.git/blame - ChangeLog
[BZ #10128]
[glibc.git] / ChangeLog
CommitLineData
cf4f16cc
UD
12009-05-05 Aurelien Jarno <aurelien@aurel32.net>
2
3 [BZ #10128]
4 * resolv/res_query.c (__libc_res_nquery): If one query returns NOTIMP
5 or FORMERR and the other NOERROR, don't raise an error.
6
23b6b466
UD
72009-05-06 Ryan S. Arnold <rsa@us.ibm.com>
8
9 [BZ #10118]
10 * Makeconfig (+asflags): New variable based upon ASFLAG or
11 asflags-cpu.
12 (ASFLAGS): Add override to set ASFLAGS to +asflags.
13 * config.make.in (asflags-cpu): Add variable based upon
14 @libc_cv_cc_submachine@ to propagate -mcpu=CPU from --with-cpu=CPU to
15 the assembler.
16 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/setcontext.S:
17 Remove unneeded file now that the assembler emits _ARCH_PWR6 and
18 recognizes power6 instruction set due to passing -mcpu=power6 from
19 --with-cpu=power6 when compiling .S files.
20 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/swapcontext.S:
21 Likewise.
22 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/setcontext.S:
23 Likewise.
24 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/swapcontext.S:
25 Likewise.
26
15417de3
UD
272009-05-09 Jakub Jelinek <jakub@redhat.com>
28
29 * string/stratcliff.c (do_test): Test for zero length
30 STRNLEN, MEMCHR, STRNCPY, STPNCPY, MEMCPY, MEMPCPY and memccpy
31 at the end of the page.
32
b5f7c4ca
UD
332009-05-08 Ulrich Drepper <drepper@redhat.com>
34
4300afc1
UD
35 * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_AT_RANDOM.
36
2221e33e
UD
37 * sysdeps/x86_64/memchr.S: Handle invalid buffer pointers when
38 count is zero.
39
b5f7c4ca
UD
40 * po/da.po: Update from translation team.
41
1765abb3
UD
422009-05-05 Jakub Jelinek <jakub@redhat.com>
43
44 * io/sys/stat.h (fstatat64): Guard prototype with __USE_LARGEFILE64,
45 guard __extern_inline wrapper with __USE_ATFILE instead of __USE_GNU.
2221e33e 46
b5f7c4ca
UD
472009-05-05 Ulrich Drepper <drepper@redhat.com>
48
49 * sysdeps/unix/sysv/linux/sys/personality.h: Add ADDR_COMPAT_LAYOUT
50 and READ_IMPLIES_EXEC.
51
522009-05-04 Ulrich Drepper <drepper@redhat.com>
53
54 * po/da.po: Update from translation team.
55
667712b8
JJ
562009-04-29 Jakub Jelinek <jakub@redhat.com>
57
58 * sysdeps/unix/sysv/linux/ifaddrs.c: Revert unintended 2008-08-12
59 comment change.
60
6284c9f6
UD
612009-04-27 Jakub Jelinek <jakub@redhat.com>
62
63 * locale/programs/locarchive.c (create_archive): Add MAP_PRIVATE
64 to MAP_ANON in PROT_NONE mmap64 call.
65 (open_archive): Likewise.
66 (file_data_available_p): Use mmap64 instead of mremap.
67 (enlarge_archive): Likewise. Update head if ah->addr changed.
68 Attempt to reserve address space after mmap64 region.
69
4ec77f72
UD
702009-04-26 Ulrich Drepper <drepper@redhat.com>
71
f0e3c47f
UD
72 * sysdeps/ieee754/dbl-64/s_expm1.c: Set errno for overflow.
73 * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
74 * sysdeps/x86_64/fpu/s_expm1l.S: Likewise.
75
49768bb9
UD
76 * sysdeps/ieee754/k_standard.c (__kernel_standard): Pole errors in
77 atanh should set ERANGE.
78
e49dc847
UD
79 [BZ #10087]
80 * elf/dl-runtime.c (_dl_fixup): Use DL_FIXUP_VALUE_ADDR to access
81 result of lookup to make call to implement STT_GNU_IFUNC.
82 (_dl_profile_fixup): Likewise.
83 Patch by H.J. Lu <hjl.tools@gmail.com>.
84
1ac03a1e
UD
85 * nscd/connections.c (send_ro_fd): Define temporary variable to avoid
86 warning.
87
6cc8844f
UD
88 * sysdeps/unix/sysv/linux/dl-osinfo.h (dl_fatal): Remove inline
89 from definition.
90
91 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Don't define
92 label if it is not used.
93
94 * elf/dl-profile.c (_dl_start_profile): Define real-type variant
95 of gmon_hist_hdr and gmon_hdr structures and use them.
1ac03a1e 96 * elf/sprof.c: Likewise.
6cc8844f
UD
97
98 * elf/dl-load.c (open_verify): Add temporary variable to avoid
99 warning.
100
101 * nscd/nscd_helper.c (get_mapping): Avoid casts to avoid warnings.
102
103 * sunrpc/clnt_raw.c (clntraw_private_s): Use union in definition
104 to avoid cast.
105
106 * inet/rexec.c (rexec_af): Make sa2 a union to avoid warnings.
107 * inet/rcmd.c (rcmd_af): Make from a union of the various needed types
108 to avoid warnings.
109 (iruserok_af): Use ss_family instead of casts.
110
111 * gmon/gmon.c (write_hist): Define real-type variant of
112 gmon_hist_hdr structure and use it.
113 (write_gmon): Likewise for gmon_hdr.
114
115 * sysdeps/unix/sysv/linux/readv.c: Avoid declaration of replacement
116 function if we are not going to define it.
117 * sysdeps/unix/sysv/linux/writev.c: Likewise.
118
218555e9 119 * inet/inet6_option.c (option_alloc): Add temporary variable to
6cc8844f
UD
120 avoid warning.
121
122 * libio/strfile.h (struct _IO_streambuf): Use correct type and
123 name of VTable element.
124 * libio/iovsprintf.c: Avoid casts to avoid warnings.
125 * libio/iovsscanf.c: Likewise.
126 * libio/vasprintf.c: Likewise.
127 * libio/vsnprintf.c: Likewise.
128 * stdio-common/isoc99_vsscanf.c: Likewise.
129 * stdlib/strfmon_l.c: Likewise.
130 * debug/vasprintf_chk.c: Likewise.
131 * debug/vsnprintf_chk.c: Likewise.
132 * debug/vsprintf_chk.c: Likewise.
133
4ec77f72
UD
134 * nss/nsswitch.c (__nss_lookup_function): En/Decrypt cached
135 function pointers.
136
82a1a4da
UD
1372009-04-26 Jakub Jelinek <jakub@redhat.com>
138
139 * sysdeps/ieee754/dbl-64/s_tan.c (tan): Fix -Wsequence-point warnings.
140
db6edfb3
UD
1412009-04-25 Ulrich Drepper <drepper@redhat.com>
142
27be9b92
UD
143 * posix/bits/posix1_lim.h: Cleanup namespace a bit.
144
337c2708
UD
145 * sysdeps/i386/fpu/s_tan.S: Set errno for ±Inf.
146 * sysdeps/i386/fpu/s_tanf.S: Likewise.
147 * sysdeps/i386/fpu/s_tanl.S: Likewise.
148 * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
149 * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
150 * sysdeps/x86_64/fpu/s_tanl.S: Likewise.
151 * math/libm-test.inc: Add tests for errno after tan calls with
152 ±Inf.
153
002a604f
UD
154 * sysdeps/ieee754/k_standard.c (__kernel_standard): Use correct
155 errno value vor pow(+-0,neg).
156 * math/libm-test.inc (pow_test): Add tests for errno value for
157 pole errors.
158
7095366d
UD
159 * math/w_fmod.c: Also handle x=±Inf as error.
160 * math/w_fmodf.c: Likewise.
161 * math/w_fmodl.c: Likewise.
162 * math/libm-test.inc (fmod_test): Add tests for errno after calls for
163 x=±Inf or y=0.
164
0c59a196
UD
165 * sysdeps/i386/fpu/s_cos.S: Set errno for ±Inf.
166 * sysdeps/i386/fpu/s_cosf.S: Likewise.
167 * sysdeps/i386/fpu/s_cosl.S: Likewise.
168 * sysdeps/i386/fpu/s_sin.S: Likewise.
169 * sysdeps/i386/fpu/s_sinf.S: Likewise.
170 * sysdeps/i386/fpu/s_sinl.S: Likewise.
171 * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
172 * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
173 * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
174 * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
175 * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
176 * sysdeps/x86_64/fpu/s_cosl.S: Likewise.
177 * sysdeps/x86_64/fpu/s_sinl.S: Likewise.
178 * math/libm-test.inc: Add tests for errno after sin/cos calls with
179 ±Inf.
180
4bbf8999
UD
181 * stdlib/strtod_l.c (round_and_return): We have to set errno to
182 ERANGE for underflows.
183 * stdlib/tst-strtod.c (tests): Two tests should set errno to ERANGE.
184
af9f1c48
UD
185 * stdio-common/stdio_lim.h.in (L_cuserid): Not part of POSIX since
186 the 2001 revision.
187
13327042
UD
188 * libio/tst-widetext.input: Remove surrogates.
189
c163ee23
UD
190 * include/features.h: _POSIX_C_SOURCE >= 200112L implies C99.
191
e971e76d 192 * sysdeps/ieee754/k_standard.c (__kernel_standard): Pole errors
81068e35 193 for lgamma should set errno to ERANGE, not EDOM.
e971e76d
UD
194 * math/libm-test.inc (lgamma_test): Check errno for pole errors.
195
c2d5bd5b
UD
1962009-04-24 Ulrich Drepper <drepper@redhat.com>
197
9c32c895
UD
198 [BZ #10093]
199 * iconv/gconv_simple.c (BODY for UTF-8 to INTERNAL): Don't accept
200 UTF-16 surrogates.
201
c9edc889
UD
202 * locale/programs/locarchive.c (enlarge_archive): Conserve address
203 space when temporarily mapping the whole content of the old file.
204
c2d5bd5b
UD
205 [BZ #10100]
206 * misc/hsearch_r.c (hsearch_r): Add back ensurance that hval is
207 not zero.
208
f397be12
UD
2092009-04-24 Jakub Jelinek <jakub@redhat.com>
210
211 * iconvdata/sjis.c (BODY): Don't advance inptr before
212 STANDARD_FROM_LOOP_ERR_HANDLER (2) for 2 byte invalid input.
213 Use STANDARD_FROM_LOOP_ERR_HANDLER with 2 instead of 1 for
214 two byte chars.
215
705341a9
UD
2162009-04-24 Ulrich Drepper <drepper@redhat.com>
217
218 * locale/locarchive.h (struct locarhandle): Rename len field to
219 mmaped and add new reserved field.
220 * locale/programs/locarchive.c (RESERVE_MMAP_SIZE): Define.
221 (create_archive): Reserve address space and then map file into it.
222 (open_archive): Likewise.
223 (file_data_available_p): New function.
224 (compare_from_file): New function.
225 (close_archive): Adjust to member name changes.
226 (add_locale): Before comparing locale data, check it is mapped.
227 Otherwise fall back to reading from the file.
228
57d2da1c
UD
2292009-04-23 H.J. Lu <hongjiu.lu@intel.com>
230
231 * stdio-common/psiginfo.c: Include <errno.h>.
232
3d855f75
UD
2332009-04-23 Ulrich Drepper <drepper@redhat.com>
234
fe12c798
UD
235 [BZ #9920]
236 * stdlib/random_r.c (__srandom_r): Change type of word to int32_t
237 to get consistency between 32 and 64 bit architectures.
238
3d855f75
UD
239 [BZ #10052]
240 * sysdeps/unix/make-syscalls.sh: Add rule to create target
241 directory for dummy syscall rules.
242 Patch by Chris Steinbroner <hesh@pobox.com>.
243
95bf537f
UD
2442009-04-23 Aurelien Jarno <aurelien@aurel32.net>
245
246 [BZ #10092]
247 * sysdeps/unix/sysv/linux/sys/mount.h: Define MNT_DETACH and
248 MNT_EXPIRE.
249
7f8a28ef
UD
2502009-04-23 Ulrich Drepper <drepper@redhat.com>
251
252 * sysdeps/unix/sysv/linux/preadv.c: The kernel API changed. Adjust.
253 * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
254
2552009-04-23 Jakub Jelinek <jakub@redhat.com>
256
257 * sysdeps/posix/pwritev.c (PWRITEV): Fix up comment. Copy
258 data from vector to temporary buffer and call PWRITEV after it
259 instead of vice versa.
260 * sysdeps/posix/preadv.c: Fix up comment.
261 * misc/preadv.c: Likewise.
262 * misc/preadv64.c: Likewise.
263 * misc/pwritev.c: Likewise.
264 * misc/pwritev64.c: Likewise.
265 * misc/sys/uio.h (preadv, pwritev, preadv64, pwritev64): Likewise.
266
829fea46
UD
2672009-04-23 Ulrich Drepper <drepper@redhat.com>
268
c7e74e59
UD
269 * shadow/sgetspent_r.c (__sgetspent_r): Recognize too small buffers.
270
3b055b47
UD
271 * shadow/Makefile (tests): Add tst-shadow.
272 * shadow/tst-shadow.c: New file.
273
829fea46
UD
274 [BZ #9955]
275 * gshadow/Makefile: New file.
276 * gshadow/Versions: New file.
277 * gshadow/fgetsgent.c: New file.
278 * gshadow/fgetsgent_r.c: New file.
279 * gshadow/getsgent.c: New file.
280 * gshadow/getsgent_r.c: New file.
281 * gshadow/getsgnam.c: New file.
282 * gshadow/getsgnam_r.c: New file.
283 * gshadow/gshadow.h: New file.
284 * gshadow/putsgent.c: New file.
285 * gshadow/sgetsgent.c: New file.
286 * gshadow/sgetsgent_r.c: New file.
287 * gshadow/tst-gshadow.c: New file.
288 * include/gshadow.h: New file.
289 * Makeconfig (all-subdirs): Add gshadow.
290 * Makefile (installed-headers): Add gshadow/gshadow.h.
291 * nss/Makefile (databases): Add sgrp.
292 * nss/Versions: Add gshadow functions as private exports.
293 * nss/nsswitch.conf: Add gshadow entry.
294 * nss/sgrp-lookup.c: New file.
295 * nss/nss_files/files-parse.c: Add STRING_LIST macro. Rewrite
296 parse_list to handle STRING_LIST and TRAILING_LIST_PARSER.
297 * nss/nss_files/files-sgrp.c: New file.
298 * sysdeps/generic/paths.h: Add _PATH_GSHADOW.
299 * sysdeps/unix/sysv/linux/paths.h: Likewise.
300
debafa10
UD
3012009-04-22 Ulrich Drepper <drepper@redhat.com>
302
303 * stdio-common/printf.h: Add missing const to register_printf_modifier.
304 * stdio-common/reg-modifier.c: Likewise.
305
3062009-04-22 Andrew Stubbs <ams@codesourcery.com>
307
308 * sysdeps/sh/sh4/setjmp.S (__sigsetjmp): Adjust JB_SIZE when there
309 is no FPU.
310
0e04c0b5
UD
3112009-04-20 Ulrich Drepper <drepper@redhat.com>
312
d43f10e7 313 [BZ #10086]
1c376f5b
UD
314 * sysdeps/unix/sysv/linux/sys/timex.h: Add definitions from kernel
315 headers up to 2.6.30.
316
0e04c0b5
UD
317 * po/ca.po: Update from translation team.
318
a245eafd
UD
3192009-04-19 Ulrich Drepper <drepper@redhat.com>
320
321 [BZ #10069]
322 * elf/dl-open.c (dl_open_worker): We cannot guarantee that we can load
323 an object that uses static TLS if the TLS modid is higher than the
324 reserve we always allocate. At least for multi-threaded code.
325
0588a9cb
UD
3262009-04-18 Ulrich Drepper <drepper@redhat.com>
327
153aa31b
UD
328 * stdlib/strfmon_l.c (__vstrfmon_l): Don't wrap when computing width.
329 Numerically stable check for valid width.
330
59a7162b
UD
331 * locale/programs/locarchive.c (open_archive): Map the entire file
332 and not just the administrative data.
333 (add_locale): When we find a hash sum match compare the content
334 to be sure.
335
0588a9cb
UD
336 * malloc/malloc.c (malloc_info): Output address space information.
337
17a5b24e
UD
3382009-04-17 Ulrich Drepper <drepper@redhat.com>
339
da2d2fb6
UD
340 * malloc/malloc.c (malloc_info): Also output system memory information.
341
11cad88c
UD
342 * sysdeps/unix/sysv/linux/kernel-features.h: All supported
343 architectures have preadv/pwritev in 2.6.30.
344
571ac26f
UD
345 * sysdeps/posix/preadv.c: Reading of zero bytes is no error.
346 * sysdeps/posix/readv.c: Likewise.
347 Reported by Markus Armbruster <armbru@redhat.com>.
348
17a5b24e
UD
349 * malloc/hooks.c (top_check): Force hook value into register.
350
57ec6442
RM
3512009-04-16 Samuel Thibault <samuel.thibault@ens-lyon.org>
352
353 * elf/rtld.c (dl_main): Really call _dl_sysdep_start_cleanup after all
354 calls to _dl_relocate_object.
355
df77455c
UD
3562009-04-16 Ulrich Drepper <drepper@redhat.com>
357
358 [BZ #9957]
359 * malloc/malloc.c (force_reg): Define.
360 (sYSMALLOc): Load hook variable into variable
361 before test and force into register.
362 (sYSTRIm): Likewise.
363 (public_mALLOc): Force hook value into register.
364 (public_fREe): Likewise.
365 (public_rEALLOc): Likewise.
366 (public_mEMALIGn): Likewise.
367 (public_vALLOc): Likewise.
368 (public_pVALLOc): Likewise.
369 (public_cALLOc): Likewise.
370 (__posix_memalign): Likewise.
371 * malloc/arena.c (ptmalloc_init): Load hook variable into variable
372 before test and force into register.
373 * malloc/hooks.c (top_check): Likewise.
3b055b47 374 (public_sET_STATe): Pretty printing.
df77455c
UD
375
376 * resolv/res_send.c (send_dg): Don't just ignore the result we got
377 in case we only receive one reply in single-request mode.
378
733ca93a
JJ
3792009-04-16 Jakub Jelinek <jakub@redhat.com>
380
381 * elf/dl-open.c (_dl_open): Bump GL(dl_nns) to 1 if no libraries
382 are dlopened in statically linked program even for __LM_ID_CALLER.
383
d0e81f10
UD
3842009-04-16 Ulrich Drepper <drepper@redhat.com>
385
386 * resolv/res_send.c (send_dg): Don't switch into single-request
387 mode if we already are in it.
388
6a3d03ff
UD
3892009-04-15 Ulrich Drepper <drepper@redhat.com>
390
391 * sysdeps/unix/sysv/linux/getsysstats.c (next_line): Make sure there
392 are always at least 4 bytes in the returned line.
393
3942009-04-15 Jakub Jelinek <jakub@redhat.com>
395
396 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Check
397 __libc_use_alloca (8192), if the stack is too small use 512 bytes
398 instead of 8K. Stop searching in /proc/stat after hitting first
399 line not starting with cpu.
400 (next_line): Truncate too long
401 lines at buffer size * 3/4 instead of pretending there were line
402 breaks inside of large lines.
403
ae650a41
UD
4042009-04-14 Ulrich Drepper <drepper@redhat.com>
405
406 * sysdeps/x86_64/mp_clz_tab.c: New file.
407
353f2107
UD
4082009-03-17 Ryan S. Arnold <rsa@us.ibm.com>
409 Ulrich Drepper <drepper@redhat.com>
410
411 * sysdeps/unix/sysv/linux/fallocate.c: Handle old kernel headers.
412 * sysdeps/unix/sysv/linux/fallocate64.c: Likewise.
e775ec11 413 * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c: Likewise.
353f2107 414
fc0c5705
UD
4152009-03-25 Andrew Stubbs <ams@codesourcery.com>
416
417 * sysdeps/sh/libc-tls.c: New file.
418
419 * sysdeps/sh/bits/setjmp.h (__jmp_buf): Give name to structure type.
420
237a8867
RM
4212009-04-14 Roland McGrath <roland@redhat.com>
422
423 * elf/elf.h: Add various missing ARM constants, to match binutils.
424
893a5fd4
UD
4252009-04-14 Ulrich Drepper <drepper@redhat.com>
426
427 Optimizations from GMP.
428 * sysdeps/x86_64/add_n.S: New file.
429 * sysdeps/x86_64/addmul_1.S: New file.
430 * sysdeps/x86_64/lshift.S: New file.
431 * sysdeps/x86_64/mul_1.S: New file.
432 * sysdeps/x86_64/rshift.S: New file.
433 * sysdeps/x86_64/sub_n.S: New file.
434 * sysdeps/x86_64/submul_1.S: New file.
435
e42e88ab
JJ
4362009-04-14 Jakub Jelinek <jakub@redhat.com>
437
438 * sysdeps/powerpc/powerpc32/elf/start.S: Ensure .data is non-empty.
439 * sysdeps/powerpc/powerpc64/elf/start.S: Likewise.
440 * sysdeps/sparc/sparc32/elf/start.S: Likewise.
441 * sysdeps/sparc/sparc64/elf/start.S: Likewise.
442
b8a3bd82
UD
4432009-04-14 Ulrich Drepper <drepper@redhat.com>
444
445 * sysdeps/unix/sysv/linux/kernel-features.h: SH also has
446 preadv/pwritev.
447
84aa52d7
UD
4482009-04-13 Ulrich Drepper <drepper@redhat.com>
449
450 * sysdeps/x86-64/strrchr.S: New file.
451
9d26efa9
UD
4522009-04-10 Ulrich Drepper <drepper@redhat.com>
453
454 * stdio-common/printf.h (struct printf_info): Add user element.
455 New types printf_arginfo_size_function, printf_va_arg_function.
456 Declare register_printf_specifier, register_printf_modifier,
457 register_printf_type.
458 * stdio-common/printf-parse.h (struct printf_spec): Add size element.
459 (union printf_arg): Add pa_user element.
460 Adjust __printf_arginfo_table type.
461 Add __printf_va_arg_table, __printf_modifier_table,
462 __handle_registered_modifier_mb, and __handle_registered_modifier_wc
463 declarations.
464 * stdio-common/printf-parsemb.c: Recognize registered modifiers.
465 If registered arginfo call failed try normal specifier.
466 * stdio-common/printf-prs.c: Pass additional parameter to arginfo
467 function.
468 * stdio-common/Makefile (routines): Add reg-modifier and reg-type.
469 * stdio-common/Versions: Export register_printf_modifier,
470 register_printf_type, and register_printf_specifier for GLIBC_2.10.
471 * stdio-common/reg-modifier.c: New file.
472 * stdio-common/reg-type.c: New file.
473 * stdio-common/reg-printf.c (__register_printf_specifier): New
474 function. Mostly the old __register_printf_function function but
475 uses locking and type of third parameter changed.
476 (__register_printf_function): Implement using
477 __register_printf_specifier.
478 * stdio-common/vfprintf.c (vfprintf): Collect argument sizes in
479 calls to arginfo functions. Allocate enough memory for user-defined
480 types. Call new va_arg functions to get user-defined types.
481 Try installed handlers even for existing format specifiers first.
482
28b2771a
UD
4832009-04-09 Ulrich Drepper <drepper@redhat.com>
484
f140a0d5
UD
485 * sysdeps/x86_64/rawmemchr.S: New file.
486
e9b4d069 487 * stdio-common/vfprintf.c (vfprintf): Slightly more compact code.
1d498daa 488 Simplified code and possible copy problem fixed.
e9b4d069 489
f9fe75e9 490 * sysdeps/unix/sysv/linux/preadv.c: Avoid prototype for static
24030b0f 491 function if it is not defined. Add some necessary casts.
f9fe75e9
UD
492 * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
493
28b2771a
UD
494 * sysdeps/unix/sysv/linux/kernel-features.h: SPARC and IA64 also
495 have preadv/pwritev in 2.6.30.
496
4c8b8cc3
UD
4972009-04-08 Ulrich Drepper <drepper@redhat.com>
498
bb066545
UD
499 * malloc/malloc.c (malloc_info): New function.
500 * malloc/malloc.h: Declare it.
501 * malloc/Versions: Export malloc_info for GLIBC_2.10.
502
0f9c8b48
UD
503 * sysdeps/unix/sysv/linux/preadv64.c (PREAD): Use __libc_pread64
504 to avoid PLT slot.
505
4c8b8cc3
UD
506 * malloc/malloc.c (_int_realloc): Add parameter with old block
507 size. Remove duplicated test. Don't handle mmap'ed blocks here.
508 Adjust all callers.
509 * malloc/hooks.c (realloc_check): Adjust _int_realloc call.
510
ddba0f17
UD
5112009-04-07 Ulrich Drepper <drepper@redhat.com>
512
cd57745b
UD
513 * sysdeps/x86_64/strchrnul.S: New file.
514
3db6c9a8 515 * crypt/Makefile (LDLIBS-crypt.so): Use this variable instead of
cd57745b 516 depending libcrypt on -lfreebl3.
3db6c9a8 517
1a2ec17b
UD
518 * sysdeps/unix/sysv/linux/kernel-features.h: Power also has
519 preadv/pwritev in 2.6.30.
520
bb066545 521 * resolv/nss_dns/dns-host.c (getanswer_r): Use strcasecmp
c6807d38 522 instead of __strcasecmp.
c6807d38 523
ddba0f17 524 * string/stratcliff.c (do_test): Add memchr tests..
481f9eca 525 * wcsmbs/wcsatcliff.c (MEMCHR): Define.
ddba0f17
UD
526 * sysdeps/x86_64/memchr.S: Fix handling of end of buffer after
527 first read quad word.
528
ae061910
UD
5292009-04-06 Ulrich Drepper <drepper@redhat.com>
530
4bcb2658
UD
531 * string/strverscmp.c (__strverscmp): Fix last cleanups.
532 * string/tst-svc.input: Add new test case.
533 * string/tst-svc.expect: Adjust.
534 * string/Makefile: Don't ignore tst-svc error.
535
322e23db
UD
536 * sysdeps/x86_64/memchr.S: New file.
537
ae061910
UD
538 * resolv/resolv.h (RES_SNGLKUP): Define.
539 * resolv/res_init.c (res_setoptions): Recognize single-request option.
540 * resolv/res_send.c (send_dg): If we sent two requests at once and
541 only get one reply before timeout switch to mode where we send the
542 second request only after the first answer has been received.
543
a152f366
UD
5442009-04-05 Ulrich Drepper <drepper@redhat.com>
545
546 * sysdeps/x86_64/strlen.S: Optimize by using SSE2 instructions.
1df6f9d8 547 * sysdeps/x86_64/strchr.S: Likewise.
a152f366 548
2dbe6afe
UD
5492009-04-03 Ulrich Drepper <drepper@redhat.com>
550
c0bac8b0
UD
551 * configure.in: We need to test for the compiler earlier.
552
e109c612
UD
553 * misc/Makefile (routines): Add preadv, preadv64, pwritev, pwritev64.
554 * misc/Versions: Export preadv, preadv64, pwritev, pwritev64 for
555 GLIBC_2.10.
556 * misc/sys/uio.h: Declare preadv, preadv64, pwritev, pwritev64.
557 * sysdeps/unix/sysv/linux/kernel-features.h: Add entries for preadv
558 and pwritev.
559 * misc/preadv.c: New file.
560 * misc/preadv64.c: New file.
561 * misc/pwritev.c: New file.
562 * misc/pwritev64.c: New file.
563 * sysdeps/posx/preadv.c: New file.
564 * sysdeps/posx/preadv64.c: New file.
565 * sysdeps/posx/pwritev.c: New file.
566 * sysdeps/posx/pwritev64.c: New file.
567 * sysdeps/unix/sysv/linux/preadv.c: New file.
568 * sysdeps/unix/sysv/linux/preadv64.c: New file.
569 * sysdeps/unix/sysv/linux/pwritev.c: New file.
570 * sysdeps/unix/sysv/linux/pwritev64.c: New file.
571 * sysdeps/unix/sysv/linux/wordsize-64/preadv64.c: New file.
572 * sysdeps/unix/sysv/linux/wordsize-64/pwritev64.c: New file.
573
7166c77a
UD
574 * sysdeps/unix/sysv/linux/readv.c (__libc_readv): Fix calling of
575 compatibility code.
576 * sysdeps/unix/sysv/linux/writev.c (__libc_writev): Likewise.
577
2dbe6afe
UD
578 * sysdeps/unix/sysv/linux/kernel-features.h: Define
579 __ASSUME_COMPLETE_READV_WRITEV.
580 * sysdeps/unix/sysv/linux/readv.c: No need for userlevel fallback
581 with modern kernels.
582 * sysdeps/unix/sysv/linux/writev.c: Likewise.
583
584 * sysdeps/posix/readv.c: Since read is a cancellation point we have
585 to free a possible malloced buffer in case of cancellation.
586 * sysdeps/posix/writev.c: Likewise for write.
587
ff886b82
UD
5882009-04-02 Ulrich Drepper <drepper@redhat.com>
589
a065c007
UD
590 * sysdeps/unix/sysv/linux/bits/socket.h: Add missing protocol numbers.
591
ff886b82
UD
592 * configure.in: Recognize --enable-nss-crypt.
593 * config.make.in: Add nss-crypt entry.
594 * crypt/Makefile: If nss-crypt==yes, don't build md5.c, sha256.c,
595 sha512.c. Don't run md5test, sha256test, sha512test. Pass -DUSE_NSS
596 and include path for NSS directory to compiler for md5-crypt,
597 sha256-crypt, sha512-crypt. Link libcrypt.so with -lfreebl3.
598 * crypt/md5-crypt.c: If USE_NSS is defined, don't use local hash
599 function implementation, use NSS. Introduce wrappers around the
600 hash function calls. Little code size optimization.
601 * crypt/sha256-crypt.c: Likewise.
602 * crypt/sha512-crypt.c: Likewise.
603 * scripts/check-local-headers.sh: Ignore nss3 directory.
604
605 * configure.in: Rename pic_default to libc_cv_pic_default.
606 * config.make.in: Likewise.
607
1800de36
RM
6082009-04-01 Roland McGrath <roland@redhat.com>
609
610 * elf/elf.h (R_SPARC_GLOB_JMP): New macro.
611 (R_SPARC_GOTDATA_HIX22, R_SPARC_GOTDATA_LOX10): New macros.
612 (R_SPARC_GOTDATA_OP_HIX22, R_SPARC_GOTDATA_OP_LOX10): Likewise.
613 (R_SPARC_GOTDATA_OP, R_SPARC_H34): Likewise.
614 (R_SPARC_SIZE32, R_SPARC_SIZE64): Likewise.
615 (R_SPARC_GNU_VTINHERIT, R_SPARC_GNU_VTENTRY, R_SPARC_REV32): Likewise.
616 (R_SPARC_NUM): Update.
617 From Dave Miller <davem@davemloft.net>.
618
7166c77a 6192009-04-01 Ulrich Drepper <drepper@redhat.com>
3ce976cd
UD
620
621 * sysdeps/unix/sysv/linux/sys/eventfd.h (EFD_SEMAPHORE): Define.
622
20739e54
UD
6232009-03-31 Ulrich Drepper <drepper@redhat.com>
624
22c83193
UD
625 * elf/dl-open.c: Keep track of used name spaces and only iterate over
626 those which are used.
627 * elf/dl-addr.c: Likewise.
628 * elf/dl-caller.c: Likewise.
629 * elf/dl-fini.c: Likewise.
630 * elf/dl-iteratephdr.c: Likewise.
631 * elf/dl-libc.c: Likewise.
632 * elf/dl-load.c: Likewise.
633 * elf/dl-support.c: Likewise.
634 * elf/dl-sym.c: Likewise.
635 * elf/rtld.c: Likewise.
636 * sysdeps/generic/ldsodefs.h: Likewise.
637
20739e54
UD
638 * elf/dl-load.c: Remove support for systems without MAP_ANON.
639 * elf/dl-minimal.c: Likewise.
640 * elf/dl-misc.c: Likewise.
641 * elf/rtld.c: Likewise.
642 * sysdeps/generic/ldsodefs.h: Likewise.
643
db486995
UD
6442009-03-30 Ulrich Drepper <drepper@redhat.com>
645
cb14424e
UD
646 * elf/do-lookup.h (do_lookup_x): Minor optimization and cleanup.
647 Avoid reuse of complex expression.
648
db486995
UD
649 * po/fr.po: Update from translation team.
650
ae8d7b44
UD
6512009-03-16 Ulrich Drepper <drepper@redhat.com>
652
653 * include/dirent.h: Yet more changes to match sort function type
654 change.
655 * sysdeps/unix/sysv/linux/i386/alphasort64.c: Likewise.
656 * sysdeps/unix/sysv/linux/i386/olddirent.h: Likewise.
657 * sysdeps/unix/sysv/linux/i386/versionsort64.c: Likewise.
658
8efb2f1c
UD
6592009-03-16 Thomas Schwinge <tschwinge@gnu.org>
660
661 * dirent/scandir64.c (scandir64): Adjust declaration to type change.
662
d9822dbe
UD
6632009-03-16 Ulrich Drepper <drepper@redhat.com>
664
665 * nscd/connections.c (restart): Try to preserve the process name
666 by reading the /proc/self/exe symlink and using the return name.
667 Patch by Jeff Bastian <jbastian@redhat.com>.
668
71a5bd3e
UD
6692009-03-15 Ulrich Drepper <drepper@redhat.com>
670
2ca285b0
UD
671 [BZ #9733]
672 * elf/dl-load.c (_dl_map_object_from_fd): Only call audit hooks
673 if we are not loading a new audit library.
674 * elf/dl-reloc (_dl_relocate_object): Third parameter is now a bitmask.
675 Only use profiling trampoline for auditing if we are not relocating
676 an audit library.
677 * elf/dl-open.c (dl_open_worker): Adjust _dl_relocate_object call.
678 * elf/rtld.c: Likewise.
679 * sysdeps/generic/ldsodefs.h: Adjust _dl_relocate_object prototype.
680
7e342603
UD
681 * elf/rtld.c (dl_main): Extend help message for --audit option.
682
eee6b143
UD
683 [BZ #9759]
684 * dirent/dirent.h: Adjust prototypes of scandir, scandir64, alphasort,
685 alphasort64, versionsort, and versionsort64 to POSIX 2008.
686 * dirent/alphasort.c: Adjust implementation to type change.
687 * dirent/alphasort64.c: Likewise.
688 * dirent/scandir.c: Likewise.
689 * dirent/versionsort.c: Likewise.
690 * dirent/versionsort64.c: Likewise.
691 * sysdeps/wordsize-64/alphasort.c: Add hack to hide alphasort64
692 declaration.
693 * sysdeps/wordsize-64/versionsort.c: Add hack to hide versionsort64
694 declaration.
695
cd2d01fa
UD
696 [BZ #9880]
697 * inet/inet6_rth.c (inet6_rth_reverse): Compute number of segments
698 correctly. Set segleft member in output as required.
699 Patch partly by Yang Hongyang <yanghy@cn.fujitsu.com>.
700 * inet/tst-inet6_rth.c (do_test): Add tests for inet6_rth_reverse.
701
906dd40d
UD
702 [BZ #9881]
703 * inet/inet6_rth.c (inet6_rth_add): Add some error checking.
704 Patch mostly by Yang Hongyang <yanghy@cn.fujitsu.com>.
705 * inet/Makefile (tests): Add tst-inet6_rth.
706 * inet/tst-inet6_rth.c: New file.
707
71a5bd3e
UD
708 [BZ #5807]
709 * string/strlen.c (strlen): Fix omission in the expression to test
710 for NUL bytes.
711
878b72c5
UD
7122009-03-14 Ulrich Drepper <drepper@redhat.com>
713
fad070ab
UD
714 * crypt/sha256test.c (main): Perform 100,000 'a' test in a second way.
715
a42ad61b
UD
716 * elf/dl-runtime.c (reloc_offset): Define.
717 (reloc_index): Define.
718 (_dl_fixup): Rename reloc_offset parameter to reloc_arg.
719 (_dl_fixup_profile): Likewise. Use reloc_index instead of
720 computing index from reloc_offset.
721 (_dl_call_pltexit): Likewise.
722 * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_resolve): Just pass
723 the relocation index to _dl_fixup.
724 (_dl_runtime_profile): Likewise for _dl_fixup_profile and
725 _dl_call_pltexit.
726 * sysdeps/x86_64/dl-runtime.c: New file.
727
1f7c90a7
UD
728 [BZ #9893]
729 * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix
906dd40d 730 alignment of La_x86_64_regs. Store xmm parameters.
1f7c90a7
UD
731 Patch mostly by Jiri Olsa <olsajiri@gmail.com>.
732
45466462
UD
733 [BZ #9913]
734 * string/strverscmp.c (__strverscmp): Fix case of different digits
735 in fractional part of string.
736 Patch by Jingyu Liu <jyliu@fortinet.com>.
737 * string/Makefile (tests): Add tst-svc2.
738 * string/tst-svc2.c: New file.
739
740 * string/strverscmp.c (__strverscmp): Optimize size of tables.
741
878b72c5
UD
742 * locale/iso-639.def: Add Min Nan.
743
f53713a8
UD
7442009-03-11 Carlos Eduardo Seo <cseo@linux.vnet.ibm.com>
745
878b72c5 746 [BZ #9948]
f53713a8
UD
747 * elf/dl-sysdep.c (_dl_show_auxv): Add support for AT_BASE_PLATFORM.
748
f81ce288
UD
7492009-03-14 Ulrich Drepper <drepper@redhat.com>
750
f53713a8
UD
751 * elf/dl-sysdep.c (auxvars): Compress data structure.
752
f81ce288
UD
753 * sysdeps/i386/dl-machine.h (elf_machine_rel): Implement
754 STT_GNU_IFUNC handling.
755 (elf_machine_rela): Likewise.
756
425ce2ed
UD
7572009-03-13 Ulrich Drepper <drepper@redhat.com>
758
759 * config.h.in (USE_MULTIARCH): Define.
760 * configure.in: Handle --enable-multi-arch.
761 * elf/dl-runtime.c (_dl_fixup): Handle STT_GNU_IFUNC.
762 (_dl_fixup_profile): Likewise.
763 * elf/do-lookup.c (dl_lookup_x): Likewise.
764 * sysdeps/x86_64/dl-machine.h: Handle STT_GNU_IFUNC.
765 * elf/elf.h (STT_GNU_IFUNC): Define.
766 * include/libc-symbols.h (libc_ifunc): Define.
767 * sysdeps/x86_64/cacheinfo.c: If USE_MULTIARCH is defined, use the
768 framework in init-arch.h to get CPUID values.
769 * sysdeps/x86_64/multiarch/Makefile: New file.
770 * sysdeps/x86_64/multiarch/init-arch.c: New file.
771 * sysdeps/x86_64/multiarch/init-arch.h: New file.
772 * sysdeps/x86_64/multiarch/sched_cpucount.c: New file.
773
774 * config.make.in (experimental-malloc): Define.
775 * configure.in: Handle --enable-experimental-malloc.
776 * malloc/Makefile: Handle experimental-malloc flag.
777 * malloc/malloc.c: Implement PER_THREAD and ATOMIC_FASTBINS features.
778 * malloc/arena.c: Likewise.
779 * malloc/hooks.c: Likewise.
780 * malloc/malloc.h: Define M_ARENA_TEST and M_ARENA_MAX.
781
e7f110cd
UD
7822009-03-11 Ulrich Drepper <drepper@redhat.com>
783
784 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Add branch
785 prediction. A few size optimizations.
786
bd82a247
UD
7872009-03-10 Ulrich Drepper <drepper@redhat.com>
788
789 * time/tzset.c: Optimize a bit for size.
790
a99e59d7
UD
7912009-03-10 Jakub Jelinek <jakub@redhat.com>
792
793 * include/stdio.h (fmemopen): Add libc_hidden_proto.
794 * libio/fmemopen.c (fmemopen): Add libc_hidden_def.
795
796 * elf/sprof.c: Avoid warning about multi-line comment.
797
686f8c9d
UD
7982009-03-10 Ulrich Drepper <drepper@redhat.com>
799
800 * time/tzset.c (__tzset_parse_tz): Use correct string when parsing
801 DST name.
802 * time/tst-posixtz.c: Add tests for quoted timezone names.
803
7db0cc42
UD
8042009-03-10 Jakub Jelinek <jakub@redhat.com>
805
806 * posix/unistd.h (_POSIX_VERSION, _POSIX2_VERSION, _POSIX2_C_BIND,
807 _POSIX2_C_DEV, _POSIX2_SW_DEV, _POSIX2_LOCALEDEF): Define to
808 200809L instead of 200112L.
809 (_XOPEN_VERSION): For __USE_XOPEN2K8 define to 700.
810 * posix/tst-sysconf.c (STDVER): Define to 200809L instead of 200112L.
811
eec4b454
UD
812 * stdlib/quick_exit.c (quick_exit): Pass &__quick_exit_funcs
813 instead of __quick_exit_funcs to __run_exit_handlers.
814 * stdlib/at_quick_exit.c (at_quick_exit): Add attribute_hidden.
815 * stdlib/exit.h (__run_exit_handlers): Add noreturn attribute.
816 (__cxa_at_quick_exit): Remove attribute_hidden.
817 * stdlib/exit.c (exit): Pass &__exit_funcs instead of __exit_funcs
818 to __run_exit_handlers.
819 * stdlib/cxa_at_quick_exit.c (__cxa_at_quick_exit): Remove
820 attribute_hidden.
821
d7276cee
UD
8222009-03-10 Ulrich Drepper <drepper@redhat.com>
823
824 * po/id.po: Update from translation team.
825
1454da21
UD
8262009-02-18 Jakub Jelinek <jakub@redhat.com>
827
828 * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S: Use
829 .machine push; .machine "power6" and .machine pop around mtfsf
830 insns outside of _ARCH_PWR6 define.
831 * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S: Likewise.
832 * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S:
833 Likewise.
834 * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S:
835 Likewise.
836 * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c (_SET_DI_FPSCR): Likewise.
837 * sysdeps/powerpc/fpu/fenv_libc.h (fesetenv_register,
838 relax_fenv_state): Likewise.
839
130ca12e
UD
8402009-03-08 Ulrich Drepper <drepper@redhat.com>
841
610e67ed
UD
842 * stdlib/Makefile (routines): Add quick_exit, at_quick_exit, and
843 cxa_at_quick_exit.
844 (static-only-routines): Add at_quick_exit.
845 * stdlib/Versions: Export quick_exit and __cxa_at_quick_exit for
846 GLIBC_2.10.
847 * stdlib/quick_exit.c: New file.
848 * stdlib/at_quick_exit.c: New file.
849 * stdlib/cxa_at_quick_exit.c: New file.
850 * stdlib/cxa_atexit.c (__cxa_atexit): Move body to new function. Call
851 it appropriately.
852 (__internal_atexit): New function.
853 (__new_exitfn): Now takes parameter to point to the list to use.
854 * stdlib/cxa_finalize.c: Remove quick_exit handlers, don't call them.
855 * stdlib/exit.c (__run_exit_handlers): New function. Split from...
856 (exit): ...here. Just call __run_exit_handlers appropriately.
857 * stdlib/exit.h: Declare __quick_exit_funcs, __run_exit_handlers,
858 __internal_atexit, __cxa_at_quick_exit. Adjust __new_exitfn.
859 * stdlib/on_exit.c: Adjust call to __new_exitfn.
860 * stdlib/stdlib.h: Declare at_quick_exit and quick_exit.
861
130ca12e
UD
862 * po/id.po: Update from translation team.
863
9a4f9d1f
UD
8642009-03-07 Ulrich Drepper <drepper@redhat.com>
865
866 * po/ru.po: Update from translation team.
867
6d781c94
UD
8682009-03-04 Ulrich Drepper <drepper@redhat.com>
869
870 * po/nl.po: Update from translation team.
871
e00c5ece
UD
8722009-03-03 Ulrich Drepper <drepper@redhat.com>
873
99eb932f
UD
874 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Declare fallocate{,64}.
875 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
876 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
877 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
878 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
879 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
880 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
881
e00c5ece
UD
882 * po/pl.po: Update from translation team.
883
749f5cc9
UD
8842009-03-02 Ulrich Drepper <drepper@redhat.com>
885
1b994772 886 [BZ #7083]
749f5cc9
UD
887 * sysdeps/unix/sysv/linux/fallocate.c: New file.
888 * sysdeps/unix/sysv/linux/fallocate64.c: New file.
889 * sysdeps/unix/sysv/linux/wordsize-64/fallocate64.c: New file.
890 * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c: New file.
891 * sysdeps/unix/sysv/linux/i386/fallocate64.c: New file.
892 * sysdeps/unix/sysv/linux/i386/fallocate.c: New file.
893 * sysdeps/unix/sysv/linux/Versions: Export fallocate and fallocate64
894 for GLIBC_2.10.
895 * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
896 Add fallocate and fallocate64.
897
898 * io/fcntl.h: Pretty printing.
899
6219e3cc
JJ
9002009-03-02 Richard Guenther <rguenther@suse.de>
901
902 * misc/sys/cdefs.h (__extern_always_inline): Add __artificial__
903 attribute also for non-C99 inline semantics variant.
904
134a9766
UD
9052009-02-12 Carlos Eduardo Seo <cseo@linux.vnet.ibm.com>
906
907 * sysdeps/powerpc/powerpc32/power7/fpu/Implies: New file.
908 * sysdeps/powerpc/powerpc32/power7/Implies: Likewise.
909 * sysdeps/powerpc/powerpc64/power7/fpu/Implies: Likewise.
910 * sysdeps/powerpc/powerpc64/power7/Implies: Likewise.
911 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/fpu/Implies:
912 Likewise.
913 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/fpu/Implies:
914 Likewise.
915
95bc1633
UD
9162009-03-02 Ulrich Drepper <drepper@redhat.com>
917
918 * po/cs.po: Update from translation team.
919
43ea48a5
UD
9202009-02-28 Ulrich Drepper <drepper@redhat.com>
921
922 * po/bg.po: Update from translation team.
923 * po/sv.po: Likewise.
f5faa3b6 924 * po/fi.po: Likewise.
45572c23 925 * po/vi.po: Likewise.
43ea48a5 926
e965d514
RM
9272009-02-27 Roland McGrath <roland@redhat.com>
928
929 * Makeconfig (%.v.i): Depend on Makeconfig.
930 Exclude % lines from initial #-comment removal.
931
56a9651f
UD
9322009-02-27 Ulrich Drepper <drepper@redhat.com>
933
934 * po/ko.po: Update from translation team.
935
682825ce
RM
9362009-02-26 Roland McGrath <roland@redhat.com>
937
938 * shadow/lckpwdf.c (__lckpwdf): Move FLAGS inside block using it,
939 avoids unused warning.
940
a3c37506
UD
9412009-02-26 Andrew Stubbs <ams@codesourcery.com>
942 SUGIOKA Toshinobu <sugioka@itonet.co.jp>
943
944 * sysdeps/unix/sysv/linux/sh/sys/procfs.h: Don't include signal.h,
945 sys/ucontext.h and asm/elf.h. Include sys/user.h.
946 * sysdeps/unix/sysv/linux/sh/sys/user.h: Don't include features.h
947 and asm/user.h. Include asm/ptrace.h.
948 (PTRACE_GETREGS, PTRACE_SETREGS, PTRACE_GETFPREGS,
949 PTRACE_SETFPREGS, PTRACE_GETFDPIC, PTRACE_GETFDPIC_EXEC,
950 PTRACE_GETFDPIC_INTERP, PTRACE_GETDSPREGS, PTRACE_SETDSPREGS):
951 Undefine.
952 (start_thread): Don't undefine.
953 (elf_greg_t, ELF_NGREG, elf_fpregset_t, user_fpu_struct, user):
954 Define.
955
f503060b
UD
9562009-02-26 Ulrich Drepper <drepper@redhat.com>
957
6cbe890a
UD
958 * wctype/wctype.h: The *_l functions are in POSIX 2008.
959 * wcsmbs/wchar.h: mbsnrtowcs, open_wmemstream, wcpcpy, wcpncpy,
960 wcscasecmp, wcsdup, wcsncasecmp, wcsnlen, wcsnrtombs,
961 wcscasecmp_l, wcsncasecmp_l, wcscoll_l, and wcsxfrm_l.
962 * sysdeps/mach/hurd/bits/posix_opt.h: Reset value of macros from
963 200112L to 200809L.
964 * sysdeps/unix/sysv/linux/bits/posix_opt.h: Likewise.
965 * posix/getconf.c (vars): Add _SC_THREAD_ROBUST_PRIO_INHERIT and
966 _SC_THREAD_ROBUST_PRIO_PROTECT entries.
967 * bits/confname.h: Add _SC_THREAD_ROBUST_PRIO_INHERIT and
968 _SC_THREAD_ROBUST_PRIO_PROTECT.
969 * posix/unistd.h: fexecve is in POSIX 2008.
970 * time/time.h: strftime_l is in POSIX 2008.
971 * io/sys/stat.h: futimens is in POSIX 2008.
972 * string/strings.h: strcasecmp_l and strncasecmp_l are in POSIX 2008.
973 * string/string.h: stpcpy, stpncpy, strndup, strnlen, strsignal,
974 strcoll_l, strerror_l, and strxfrm_l are in POSIX 2008.
975 * stdlib/stdlib.h: mkdtemp is in POSIX 2008.
f503060b
UD
976 * libio/stdio.h: dprintf, fmemopen, getdelim, getline,
977 open_memstream, and vdprintf are in POSIX 2008.
978
2e6d6bac
UD
9792009-02-25 Ulrich Drepper <drepper@redhat.com>
980
3e6b0a28 981 * include/features.h: Define macros for XPG7/POSIX 2008.
77db439e
UD
982 * ctype/ctype.h: The *_l functions are in POSIX 2008.
983 * dirent/dirent.h: alphasort, dirfd, scandir, and fdopendir are in
984 POSIX 2008.
1f04d005
UD
985 * locale/langinfo.h: nl_langinfo_l is in POSIX 2008.
986 * locale/xlocale.h: Define locale_t type.
987 * locale/locale.h: duplocale, freelocale, newlocale, uselocale are
988 in POSIX 2008. Don't define locale_t here.
989 * stdlib/monetary.h: strfmon_l is in POSIX 2008.
3e6b0a28
UD
990 * sysdeps/unix/sysv/linux/bits/stat.h: Protect UTIME_NOW and
991 UTIME_OMIT only with __USE_ATFILE.
1f04d005
UD
992 * signal/signal.h: Declare psignal and psiginfo for POSIX 2008.
993 * stdio-common/psiginfo.c: New file.
994 * stdio-common/psiginfo-data.h: New file.
995 * stdio-common/psiginfo-define.h: New file.
996 * stdio-common/Makefile (routines): Add psiginfo.
997 * stdio-common/Versions: Export psiginfo for GLIBC_2.10.
3e6b0a28
UD
998 * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Likewise.
999 * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Likewise.
1000 * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
1001 * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
1002 * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
1003 * io/sys/stat.h: Move mknodat definition into same conditional as
1004 mknod.
1005 * time/sys/time.h: futimesat is not among the functions accepted
1006 into the POSIX standard.
1007
2e6d6bac
UD
1008 * include/features.h: If no feature selection given and we select
1009 by default a POSIX mode, also define __USE_POSIX_IMPLICITLY.
1010 * posix/Versions: Export __posix_getopt.
1011 * posix/getopt.c (_getopt_initialize): Take additional parameter.
1012 Use it to alternatively initialize __posixly_correct.
1013 (_getopt_internal_r): Take addition parameter. Pass on to
1014 _getopt_initialize.
1015 (_getopt_internal): Take addition parameter. Pass on to
1016 _getopt_internal_r.
1017 (getopt): Pass additional zero to _getopt_internal.
1018 (__posix_getopt): New function.
1019 * posix/getopt.h: Add redirection for getopt.
1020 * posix/getopt1.c (getopt_long): Pass additional zero to
1021 _getopt_internal.
1022 (getopt_long_only): Likewise.
1023 (_getopt_long_r): Pass additional zero to _getopt_internal_r.
1024 (_getopt_long_only_r): Likewise.
1025 * posix/getopt_int.h: Adjust declarations of _getopt_internal and
1026 _getopt_internal_r.
1027
67108e40
UD
10282009-02-24 Ulrich Drepper <drepper@redhat.com>
1029
1030 * bits/confname.h: Define _SC_TRACE_EVENT_NAME_MAX, _SC_TRACE_NAME_MAX,
1031 _SC_TRACE_SYS_MAX, _SC_TRACE_USER_EVENT_MAX, _SC_XOPEN_STREAMS.
1032 * sysdeps/posix/sysconf.c (__sysconf): Handle
1033 _SC_TRACE_EVENT_NAME_MAX, _SC_TRACE_NAME_MAX, _SC_TRACE_SYS_MAX,
1034 _SC_TRACE_USER_EVENT_MAX, _SC_XOPEN_STREAMS.
1035
1cccb96f
RM
10362009-02-24 Roland McGrath <roland@redhat.com>
1037
1038 [BZ #9895]
1039 * README.template: Reworded not to use substituted version number.
1040 Renamed to ...
1041 * README: ... here (no longer generated).
1042 * Makefile (README): Target removed.
1043
82780cbe
UD
10442009-02-24 Ulrich Drepper <drepper@redhat.com>
1045
5be0a688 1046 * sysdeps/unix/sysv/linux/sysconf.c (__sysconf):
77db439e 1047 /proc/sys/kernel/rtsig_max doesn't exist anymore, use getrlimit
5be0a688
UD
1048 instead.
1049
8c4a5f42
UD
1050 * io/sys/stat.h: The lstat functions have been mandatory since 2001.
1051
82780cbe
UD
1052 * time/tzset.c (tzset_internal): Correct parsing of TZ envvar.
1053
77c571dd
UD
10542009-02-22 Ulrich Drepper <drepper@redhat.com>
1055
1056 * po/bg.po: Update from translation team.
1057
d82a27f8
JJ
10582009-02-16 Jakub Jelinek <jakub@redhat.com>
1059
1060 * stdlib/monetary.h: Uglify function parameter names.
1061 * sunrpc/rpc/pmap_clnt.h: Likewise.
1062 * sunrpc/rpc/svc.h: Likewise.
1063 * sunrpc/rpc/xdr.h: Likewise.
1064 * sunrpc/rpc/clnt.h: Likewise.
1065 * resolv/netdb.h: Likewise.
1066 * resolv/arpa/nameser.h: Likewise.
1067 * resolv/resolv.h: Likewise.
1068 * argp/argp.h: Likewise.
1069 * locale/langinfo.h: Likewise.
1070 * io/sys/stat.h: Likewise.
1071 * posix/spawn.h: Likewise.
1072 * nis/rpcsvc/nislib.h: Likewise.
1073 * malloc/obstack.h: Likewise.
1074 * sysdeps/ia64/bits/link.h: Likewise.
1075 * sysdeps/i386/bits/link.h: Likewise.
1076 * sysdeps/s390/bits/link.h: Likewise.
1077 * sysdeps/powerpc/bits/link.h: Likewise.
1078 * sysdeps/x86_64/bits/link.h: Likewise.
1079 * sysdeps/sparc/bits/link.h: Likewise.
1080 * sysdeps/sh/bits/link.h: Likewise.
1081 * sysdeps/unix/sysv/linux/i386/sys/io.h: Likewise.
1082 * sysdeps/unix/sysv/linux/x86_64/sys/io.h: Likewise.
1083 * sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: Likewise.
1084 * sysdeps/unix/sysv/linux/sys/eventfd.h: Likewise.
1085
58a7457e
JJ
10862008-12-01 Fredrik Unger <fred@tree.se>
1087
1088 * soft-fp/double.h [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_SEMIRAW_D,
1089 FP_UNPACK_SEMIRAW_DP): Use _FP_UNPACK_RAW_1 instead of
1090 _FP_UNPACK_RAW_2, fix up first argument.
1091
f43b4be6
UD
10922009-02-15 Ulrich Drepper <drepper@redhat.com>
1093
1094 * sysdeps/unix/sysv/linux/getsysstats.c (next_line): New function.
1095 (GET_NPROCS_PARSER): Change parameters and use next_line.
1096 (__get_nprocs): Rewrite to not use stdio routines.
1097 * sysdeps/unix/sysv/linux/sparc/getsysstats.c (GET_NPROCS_PARSER):
1098 Change parameters and use next_line.
1099
20e498bd
UD
11002009-02-13 Ulrich Drepper <drepper@redhat.com>
1101
1102 [BZ #5381]
1103 * nscd/nscd.h: Remove definitions and declarations for mem_in_flight.
1104 Change mempool_alloc prototype.
1105 * nscd/mem.c (gc): Don't handle mem_in_flight.
1106 (mempool_alloc): Third parameter now only indicates whether this is the
1107 first call (to allocate data) or not. If it is, get db rdlock.
1108 Release it on error. Don't handle mem_in_flight.
1109 * nscd/aicache.c (addhstaiX): Mark he parameter as const.
1110 Adjust third parameter of mempool_alloc calls.
1111 Nothing to do here in case mempool_alloc fails.
1112 Avoid local variable shadowing parameter. No need to get db rdlock
1113 before calling cache_add.
1114 * nscd/cache.c (cache_add): Adjust call to mempool_alloc. There is
1115 no mem_in_flight array anymore.
1116 * nscd/connections.c: Remove definition and handling of mem_in_flight.
1117 * nscd/grpcache.c (cache_addgr): Adjust third parameter of
1118 mempool_alloc calls. Mark he parameter as const. Nothing to do here
1119 in case mempool_alloc fails. No need to get db rdlock before calling
1120 cache_add.
1121 * nscd/hstcache.c (cache_addhst): Likewise.
1122 * nscd/initgrcache.c (addinitgroupsX): Likewise.
1123 * nscd/servicescache.c (cache_addserv): Likewise.
1124 * nscd/pwdcache.c (cache_addpw): Likewise. Remove some debugging code.
1125
d8111eac
UD
11262009-02-11 Ulrich Drepper <drepper@redhat.com>
1127
1128 * po/lt.po: Update from translation team.
1129
40e2fc8b
UD
11302009-02-10 Ulrich Drepper <drepper@redhat.com>
1131
1132 * elf/dl-load.c (open_verify): In case VALID_ELF_HEADER is
1133 defined, allow additional data to be added using the optional
1134 MORE_ELF_HEADER_DATA macro.
1135 * sysdeps/unix/sysv/linux/ldsodefs.h (VALID_ELF_HEADER,
1136 VALID_ELF_OSABI, VALID_ELF_ABIVERSION, MORE_ELF_HEADER_DATA): Define.
1137
6c03cd11
UD
11382009-02-08 Ulrich Drepper <drepper@redhat.com>
1139
1140 * include/atomic.h: Define catomic_and if not already defined.
1141 * sysdeps/x86_64/bits/atomic.h: Define catomic_and.
1142 * sysdeps/i386/i486/bits/atomic.h: Likewise.
1143
bc16e0c4
UD
11442009-02-07 Ulrich Drepper <drepper@redhat.com>
1145
78ac92ad
UD
1146 * malloc/malloc.c (_int_free): Second argument is now mchunkptr.
1147 Change all callers.
6dd6a580 1148 (_int_realloc): Likewise. Third argument is now padded size
78ac92ad 1149 All _int_* functions are now static.
6dd6a580 1150
78ac92ad
UD
1151 * malloc/hooks.c: Change all callers to _int_free and _int_realloc.
1152 * malloc/arena.c: Likewise.
1153 * include/malloc.h: Remove now unnecessary declarations of the _int_*
1154 functions.
1155
7dddb4bd
UD
1156 * sunrpc/rpc_common.c: We cannot move _null_auth into .rodata that
1157 easily.
1158
bfacf1af
UD
1159 * malloc/malloc.c: Add branch prediction for use of the hooks.
1160
bc16e0c4
UD
1161 * grp/compat-initgroups.c [NOT_IN_libc] (__libc_use_alloca): Define.
1162
26b62243
UD
11632009-02-06 Ulrich Drepper <drepper@redhat.com>
1164
1165 [BZ #7095]
1166 * bits/confname.h: Add SUSv7 macros for getconf environments.
1167 * bits/environments.h: Likewise.
1168 * sysdeps/unix/sysv/linux/i386/bits/environments.h: Likewise.
1169 * sysdeps/unix/sysv/linux/powerpc/bits/environments.h: Likewise.
1170 * sysdeps/unix/sysv/linux/s390/bits/environments.h: Likewise.
1171 * sysdeps/unix/sysv/linux/sparc/bits/environments.h: Likewise.
1172 * sysdeps/unix/sysv/linux/x86_64/bits/environments.h: Likewise.
1173 * posix/confstr.c: Handle SUSv5 and SUSv7 environments.
1174 * posix/getconf.c: Likewise.
1175 * posix/sysconf.c: Likewise.
1176 * sysdeps/posix/sysconf.c: Likewise.
1177 * posix/Makefile (getconf.speclist): Also collect SUSv5 and SUSv7
1178 environments.
1179
3fe4c5b3
UD
11802009-01-16 Petr Baudis <pasky@suse.cz>
1181
1182 [BZ #9753]
1183 * resolv/res_libc.c (__res_maybe_init): Call __res_vinit()
1184 even if we currently have zero nscount.
1185
cbbcaf23
UD
11862009-02-06 Ulrich Drepper <drepper@redhat.com>
1187
1a9dd4e4
UD
1188 [BZ #9781]
1189 * grp/compat-initgroups.c (compat_call): Switch to use malloc when
1190 the input line is too long.
1191
51f8846e
UD
1192 * po/Makefile (libc.pot): Add f_print as function taking c-format
1193 parameter.
1194
cbbcaf23
UD
1195 * debug/xtrace.sh: Unify translatable messages.
1196 * elf/ldd.bash.in: Likewise.
1197 * elf/sprof.c: Likewise.
1198 * locale/programs/locale.c: Likewise.
1199 * malloc/memusage.sh: Likewise.
1200 * nss/getent.c: Likewise.
1201
12022009-02-06 Joseph Myers <joseph@codesourcery.com>
1203
1204 * debug/pcprofiledump.c (print_version,
1205 argp_program_version_hook): New function.
1206 * elf/ldconfig.c (more_help): New function.
1207 (argp): Use it.
1208 * elf/sln.c (usage): New function.
1209 (main): Support --help and --version.
1210 * malloc/memusagestat.c (print_version): New function.
1211 (argp_program_version_hook): New variable.
1212 * nscd/nscd.c (more_help): New function.
1213 (argp): Use it.
1214 * posix/getconf.c (main): Send --version output to stdout.
1215 Support --help.
1216 * sunrpc/rpc_main.c (usage, options_usage): Take STREAM and STATUS
1217 arguments. All callers changed.
1218 (print_version): New function.
1219 (parseargs): Support --help and --version.
1220 * sunrpc/rpcinfo.c (usage): Take STREAM argument. All callers
1221 changed.
1222 (print_version): New function.
1223 (main): Use getopt_long. Support --help and --version.
1224 * sysdeps/unix/sysv/linux/lddlibc4.c (main): Support --help and
1225 --version.
1226
88a3b8f9
UD
12272009-02-06 Ulrich Drepper <drepper@redhat.com>
1228
e2e390fa
UD
1229 * malloc/memusage.c (DEFAULT_BUFFER_SIZE): Change to 32768.
1230 (update_data): Fix handling of wrapping back
c3ab42a8
UD
1231 to the beginning of the buffer.
1232
88a3b8f9
UD
1233 [BZ #9823]
1234 * stdio-common/psignal.c (psignal): Fix test for empty string.
1235
62f63c47
UD
12362009-02-05 Ulrich Drepper <drepper@redhat.com>
1237
4f7408c7
UD
1238 * include/rpc/auth.h: Use libc_hidden_proto for _null_auth.
1239 * sunrpc/rpc_common.c: Add libc_hidden_def for _null_auth. Also
1240 move _null_auth to .rodata.
1241
970aa10f
UD
1242 * time/tzset.c (__tzset_parse_tz): DST offset must also allow hour
1243 value of 24.
1244
52de761a
UD
1245 * intl/dcigettext.c (DCIGETTEXT): Avoid some code duplication.
1246
62f63c47
UD
1247 * sysdeps/unix/opendir.c (__alloc_dir): We have a lot more memory
1248 today than when the original code was written. Use larger
1249 buffers. This also makes it unnecessary to have stat information,
1250 if this causes extra efforts.
1251 (__opendir): In case O_DIRECTORY works, don't call fstat just for
1252 __alloc_dir.
1253
0899b889
UD
12542009-02-03 Andrew Stubbs <ams@codesourcery.com>
1255
1256 * sysdeps/sh/sh4/dl-trampoline.S: Only set HAVE_FPU if __SH_FPU_ANY__
1257 is set.
1258 * sysdeps/sh/sh4/setjmp.S: Support SH4-NOFPU.
1259 * sysdeps/sh/sh4/__longjmp.S: Likewise.
1260 * sysdeps/unix/sysv/linux/sh/sh4/getcontext.S: Likewise.
1261 * sysdeps/unix/sysv/linux/sh/sh4/setcontext.S: Likewise.
1262 * sysdeps/unix/sysv/linux/sh/sh4/swapcontext.S: Likewise.
1263 * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Likewise.
1264
22cc3f75
UD
12652009-02-04 Ulrich Drepper <drepper@redhat.com>
1266
1267 * po/ru.po: Update from translation team.
1268
a71433e7
UD
12692008-11-17 Nathan Sidwell <nathan@codesourcery.com>
1270
1271 * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (struct sigevent):
1272 Add _tid slot to maintain consistency with kernel.
1273
82f2e9c6 12742009-02-04 Ulrich Drepper <drepper@redhat.com>
3a2e9947 1275
82f2e9c6
UD
1276 * libio/wfileops.c (_IO_wfile_underflow): Fix handling of
1277 incomplete characters at end of input buffer.
1278 * libio/Makefile (tests): Add tst-fgetwc.
1279 * libio/tst-fgetwc.c: New file.
1280 * libio/tst-fgetwc.input: New file.
3a2e9947 1281
ba022c06
UD
12822009-02-02 Andrew Stubbs <ams@codesourcery.com>
1283
1284 * sysdeps/unix/sysv/linux/sh/Makefile (libm.so-no-z-defs): Define.
1285
1b14353e
UD
12862009-02-02 Ulrich Drepper <drepper@redhat.com>
1287
1288 [BZ #9793]
1289 * iconv/gconv_trans.c (__gconv_transliterate): Don't change
1290 *OUTBUFSTART unless the whole output fit into the buffer.
1291 * iconv/Makefile (tests): Add tst-iconv4.
1292 * iconv/tst-iconv4.c: New file.
1293
ebc22416
UD
12942009-02-01 Ulrich Drepper <drepper@redhat.com>
1295
1296 * sysdeps/x86_64/cacheinfo.c (intel_02_known): Add new descriptors.
1297 * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
1298
7c8a6732
UD
12992009-01-29 Andrew Stubbs <ams@codesourcery.com>
1300
1301 * elf/Makefile (ld.so): Adjust the sed script to insert _begin in to
1302 newer linker scripts.
1303
43149780
UD
13042009-01-30 Ulrich Drepper <drepper@redhat.com>
1305
1306 [BZ #7040]
1307 * sysdeps/unix/sysv/linux/sys/inotify.h: Second parameter of
1308 inotify_rm_watch should have type int.
1309
bd4ace0b
UD
13102009-01-06 Steven Munroe <sjmunroe@us.ibm.com>
1311
1312 * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S (__longjmp):
1313 Make aligned_restore_vmx a local symbol.
1314 * sysdeps/powerpc/powerpc64/__longjmp-common.S (__longjmp):
1315 Likewise.
1316
430902da
AJ
13172009-01-30 Andreas Jaeger <aj@suse.de>
1318
1319 * sysdeps/unix/sysv/linux/bits/shm.h (SHM_EXEC): Define.
1320 * sysdeps/unix/sysv/linux/ia64/bits/shm.h (SHM_EXEC): Define.
1321 * sysdeps/unix/sysv/linux/powerpc/bits/shm.h (SHM_EXEC): Define.
1322 * sysdeps/unix/sysv/linux/s390/bits/shm.h (SHM_EXEC): Define.
1323 * sysdeps/unix/sysv/linux/sh/bits/shm.h (SHM_EXEC): Define.
1324 * sysdeps/unix/sysv/linux/sparc/bits/shm.h (SHM_EXEC): Define.
1325 * sysdeps/unix/sysv/linux/x86_64/bits/shm.h (SHM_EXEC): Define.
1326
b7219e53
UD
13272009-01-11 Ryan S. Arnold <rsa@us.ibm.com>
1328
1329 [BZ #9726]
1330 * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c (_SET_DI_FPSCR,
1331 _SET_SI_FPSCR): Clobber fp0 to prevent erroneous test-case passes.
1332
13332009-01-08 Ryan S. Arnold <rsa@us.ibm.com>
1334
1335 [BZ #9726]
1336 * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S
1337 (__CONTEXT_FUNC_NAME): Fix mtfsf to use fp31 instead of fp0.
1338 * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S
1339 (__CONTEXT_FUNC_NAME): Fix mtfsf to use fp31 instead of fp0.
1340
a3bd2846
UD
13412009-01-11 Thomas Schwinge <tschwinge@gnu.org>
1342
1343 * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Use
1344 memcpy instead of memcmp.
1345 (_dl_setup_pointer_guard): Likewise.
1346
1fdd89a7
UD
13472009-01-30 Ulrich Drepper <drepper@redhat.com>
1348
1349 * malloc/malloc.c (sYSMALLOc): Don't use assert when detecting
1350 manipulated brk, use malloc_printerr.
1351 * misc/sbrk.c (__sbrk): Better error handling for nonsense
1352 requests.
1353
8585cb74
UD
13542009-01-30 Jakub Jelinek <jakub@redhat.com>
1355
1356 * string/string.h (memchr, strchr, strrchr, strpbrk, strstr, index,
1357 rindex): For C++ add inlines so that they can be recognized as
1358 builtins.
1359 * string/strings.h: Define correct C++ prototypes for gcc 4.4.
1360
d8387c7b
UD
13612009-01-29 Ulrich Drepper <drepper@redhat.com>
1362 Jakub Jelinek <jakub@redhat.com>
1363
cdf77dd8
UD
1364 * string/string.h: Define correct C++ prototypes for gcc 4.4.
1365 * wcsmbs/wchar.h: Likewise.
d8387c7b 1366
647925b2
UD
13672009-01-29 Ulrich Drepper <drepper@redhat.com>
1368
1369 * sysdeps/i386/stackinfo.h (stackinfo_get_sp): Define.
1370 (stackinfo_sub_sp): Define.
1371
5627534a
UD
13722009-01-28 Ulrich Drepper <drepper@redhat.com>
1373
fd537e53
UD
1374 [BZ #9750]
1375 * nscd/mem.c (gc): Use alloca_count to get the real stack usage.
1376 * include/alloca.h (alloca_account): Define.
1377 * sysdeps/x86_64/stackinfo.h (stackinfo_get_sp): Define.
1378 (stackinfo_sub_sp): Define.
1379
00f5df0e
UD
1380 * nscd/connections.c (nscd_init): If database file access fails
1381 check whether this is due to permission problems and bail in that
1382 case.
31d322a2 1383
5627534a
UD
1384 [BZ #9741]
1385 * nscd/mem.c (gc): Fix assignment of he_data in case malloc is used.
1386 Reported by Jun'ichi Nomura <j-nomura@ce.jp.nec.com>.
1387
a7bd183f
UD
13882009-01-14 Kaz Kojima <kkojima@rr.iij4u.or.jp>
1389
1390 * sysdeps/unix/sysv/linux/sh/sysdep.h (INTERNAL_SYSCALL):
1391 Add "t" to clobber list.
1392 (INTERNAL_SYSCALL_NCS): Likewise.
1393
1dd75769
UD
13942009-01-28 Ulrich Drepper <drepper@redhat.com>
1395
1396 * nss/getent.c (print_networks): Don't print comma between aliases.
1397
25e84177
UD
13982009-01-23 Ulrich Drepper <drepper@redhat.com>
1399
1400 * sysdeps/unix/sysv/linux/tst-clone.c (do_test): Avoid warning.
1401
1402 * misc/hsearch_r.c (hcreate_r): We need at least three elements in
1403 the hash table.
1404 * misc/Makefile (tests): Add bug-hsearch1.
1405 * misc/bug-hsearch1.c: New file.
1406
0699a0ca
RM
14072009-01-22 Roland McGrath <roland@redhat.com>
1408
1409 * Makeconfig (%.v.i): Strip trailing # comments,
1410 not only whole-line comments.
1411
965cb60a
UD
14122009-01-10 Ulrich Drepper <drepper@redhat.com>
1413
1414 * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Take
1415 one parameter. If non-NULL use it to initialize return value.
1416 (_dl_setup_pointer_guard): New function.
1417 * sysdeps/unix/sysv/linux/dl-osinfo.h: Likewise.
1418 * sysdeps/generic/ldsodefs.h: Declare _dl_random.
1419 * elf/rtld.c (security_init): Pass _dl_random to
1420 _dl_setup_stack_chk_guard. Call _dl_setup_pointer_guard to initialize
1421 pointer_chk_guard.
1422 * elf/dl-sysdep.c (_dl_random): New variable.
1423 (_dl_sysdep_start): Handle AT_RANDOM.
1424 (_dl_show_auxv): Likewise.
1425 * elf/dl-support.c (_dl_random): New variable.
1426 (_dl_aux_init): Handle AT_RANDOM.
1427 * csu/libc-start.c [!SHARED] (libc_start_main): Pass _dl_random
1428 to _dl_setup_stack_chk_guard.
1429
1430 * elf/elf.h (AT_RANDOM): Define AT_BASE_PLATFORM and AT_RANDOM.
1431
8be96dd1
RM
14322009-01-10 Roland McGrath <roland@redhat.com>
1433
1434 * nscd/nscd.c (parse_opt): Use argp_error for bad -i argument.
1435
157cd5ac
UD
14362009-01-08 Ulrich Drepper <drepper@redhat.com>
1437
9b1c750e
UD
1438 * sysdeps/i386/fpu/libm-test-ulps: Adjust expm1 errors.
1439
157cd5ac
UD
1440 [BZ #9706]
1441 * nss/nss_files/files-parse.c (strtou32): New function.
1442 (INT_FIELD): Use strotu32 instead of strtoul to unify behavior
1443 across 32-bit and 64-bit platforms.
1444 (INT_FIELD_MAYBE_NULL): Likewise.
1445
960af8c2
JJ
14462009-01-08 Jakub Jelinek <jakub@redhat.com>
1447
1448 [BZ #9720]
1449 * sysdeps/unix/sysv/linux/bits/resource.h (enum __rusage_who): Avoid
1450 comma after RUSAGE_CHILDREN if not -D_GNU_SOURCE.
1451 * sysdeps/unix/sysv/linux/sparc/bits/resource.h (enum __rusage_who):
1452 Likewise.
1453
76c7f2cd
UD
14542009-01-05 Paolo Bonzini <bonzini@gnu.org>
1455
16c124f7 1456 [BZ #697]
76c7f2cd
UD
1457 * posix/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
1458 being NULL also if there are no backreferences.
1459 * posix/rxspencer/tests: Add testcases.
1460
bdb56bac
UD
14612009-01-04 Paolo Bonzini <bonzini@gnu.org>
1462
16c124f7 1463 [BZ #9697]
bdb56bac
UD
1464 * posix/bug-regex17.c: Add testcases.
1465 * posix/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
1466 handling.
1467
0480c901
UD
14682009-01-05 Martin Schwidefsky <schwidefsky@de.ibm.com>
1469
1470 * sysdeps/unix/sysv/linux/s390/bits/libc-vdso.h: New file.
1471 * sysdeps/unix/sysv/linux/s390/gettimeofday.c: New file.
1472 * sysdeps/unix/sysv/linux/s390/init-first.c: New file.
1473 * sysdeps/unix/sysv/linux/s390/Makefile (sysdep_routines): Add dl-vdso
1474 for elf subdir.
1475 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h (INLINE_VSYSCALL,
1476 INTERNAL_VSYSCALL, INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK,
1477 INTERNAL_SYSCALL_NCS, HAVE_CLOCK_GETRES_VSYSCALL and
1478 HAVE_CLOCK_GETTIME_VSYSCALL: Define.
1479 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
1480 * sysdeps/unix/sysv/linux/s390/Versions: New file.
1481
b3918c7d
UD
14822008-12-31 Paolo Bonzini <bonzini@gnu.org>
1483
1484 * posix/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
1485 * posix/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
1486 re_string_skip_chars, re_string_reconstruct): Likewise.
1487 * posix/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
1488
df9293cb
UD
14892008-12-31 Rafael Avila de Espindola <espindola@google.com>
1490
1491 * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr2_r): Check and
1492 adjust the buffer alignment.
1493
c90c1e1c
RM
14942009-01-07 Samuel Thibault <samuel.thibault@ens-lyon.org>
1495
1496 * sysdeps/mach/hurd/Makefile (sysdep_headers) [subdir=socket]:
1497 Add net/ethernet.h net/if_arp.h net/if_ether.h net/if_ppp.h
1498 net/route.h.
1499
1500 * hurd/report-wait.c (describe_number): Use __stpcpy to prepend
1501 flavor to description only when flavor is not NULL.
1502
1503 * hurd/hurdsig.c (signal_allowed): Unlock _hurd_dtable_lock
1504 mutex after SIGIO/SIGURG lookup loop.
1505
5aff6fdf
RM
15062009-01-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
1507
1508 * bits/resource.h (PRIO_PROCESS, PRIO_PGRP, PRIO_USER): Add macros.
1509
b2bcd249
UD
15102009-01-03 Ulrich Drepper <drepper@redhat.com>
1511
1512 * sysdeps/unix/sysv/linux/i386/sysdep.h: Describe 6th argument
1513 handling.
1514
d36ad871
UD
15152009-01-02 Ulrich Drepper <drepper@redhat.com>
1516
ebb2788e
UD
1517 * sysdeps/unix/sysv/linux/kernel-features.h
1518 (__ASSUME_FUTEX_CLOCK_REALTIME): Define.
1519
72098116
UD
1520 * wcsmbs/wcsnrtombs.c (__wcsnrtombs): Create temporary state object
1521 if no output is written.
1522
623d0bf5
UD
1523 * version.h: Bump to 2.10 development.
1524
d36ad871
UD
1525 * posix/getconf.c: Update copyright year.
1526 * nss/getent.c: Likewise.
1527 * iconv/iconvconfig.c: Likewise.
1528 * iconv/iconv_prog.c: Likewise.
1529 * elf/ldconfig.c: Likewise.
1530 * catgets/gencat.c: Likewise.
1531 * csu/version.c: Likewise.
1532 * elf/ldd.bash.in: Likewise.
1533 * elf/sprof.c (print_version): Likewise.
1534 * locale/programs/locale.c: Likewise.
1535 * locale/programs/localedef.c: Likewise.
1536 * nscd/nscd.c (print_version): Likewise.
1537 * debug/xtrace.sh: Likewise.
1538 * malloc/memusage.sh: Likewise.
1539 * malloc/mtrace.pl: Likewise.
1540 * debug/catchsegv.sh: Likewise.
1541
25df09ab
UD
15422008-12-29 Mike Frysinger <vapier@gentoo.org>
1543
1544 * iconvdata/Makefile (iconv-rules): Use LC_ALL=C when running awk
1545 script.
1546
16b7dc27
UD
15472008-12-29 Ulrich Drepper <drepper@redhat.com>
1548
bfbbc63f
UD
1549 * sysdeps/posix/getaddrinfo.c (gaih_inet): When the
1550 gethostbyname4_r function call succeeded, just leave the loop.
1551
0f2ae55c
UD
1552 [BZ #9694]
1553 * wcsmbs/wchar.h: Move undefs for local __need_* constants to the
1554 very end.
5703f472
UD
1555 * wctype/wctype.h: Get wint_t definition directly from <stddef.h>.
1556 * wctype/Makefile (tests): Add bug-wctypeh.
1557 * wctype/bug-wctypeh.c: New file.
0f2ae55c 1558
50e481ce
UD
1559 * nscd/nscd_gethst_r.c (nscd_gethst_r): Don't use nscd if
1560 LOCALDOMAIN is defined.
1561 * nscd/nscd_getai.c (__nscd_getai): Likewise.
1562
217d45cd
UD
1563 * sysdeps/x86_64/bits/select.h: New file.
1564
16b7dc27
UD
1565 * resolv/res_init.c (__res_vinit): Count all servers in statp->nscount.
1566
bf93cd3b
UD
15672008-12-21 Bruno Haible <bruno@clisp.org>
1568
1569 [BZ #9677]
1570 * wcsmbs/mbsnrtowcs.c (__mbsnrtowcs): Create temporary state object
1571 if no output is written.
1572
49159e12
UD
15732008-12-13 Klaus Dittrich <kladit@arcor.de>
1574
1575 * login/utmp_file.c (pututline_file): Replace call to dup2 with
1576 libc internal symbol __dup2 to avoid access through the PLT.
1577
d4f0720b
UD
15782008-12-08 Ulrich Drepper <drepper@redhat.com>
1579
135460f4
UD
1580 [BZ #6545]
1581 * sysdeps/unix/sysv/linux/bits/socket.h (SCM_CREDENTIALS): Make
1582 available only for __USE_GNU.
1583
ed0da352
UD
1584 * inet/Makefile (tests): Add tst-getni2.
1585 * inet/tst-getni2.c: New file.
1586
d4f0720b
UD
1587 [BZ #7080]
1588 * inet/getnameinfo.c (getnameinfo): Check for output buffers being
1589 NULL when NI_NAMEREQD is set.
1590 Patch mostly by Yang Hongyang <yanghy@cn.fujitsu.com>.
1591 * inet/Makefile (tests): Add tst-getni1.
1592 * inet/tst-getni1.c: New file.
1593
cd72adeb
UD
15942008-12-03 Petr Baudis <pasky@suse.cz>
1595
1596 [BZ #7067]
1597 * nscd/connections.c (invalidate_cache): Use prune_run_lock
1598 instead of prune_lock.
1599 (nscd_run_prune): Before calling prune_cache, take prune_run_lock.
1600 * nscd/nscd.h (database_dyn): Add prune_run_cache.
1601
e87946cc
UD
16022008-12-07 Ulrich Drepper <drepper@redhat.com>
1603
200da00a
UD
1604 * resolv/res_send.c (send_dg): Use correct guards for SOCK_CLOEXEC
1605 use.
1606
1607 * sysdeps/unix/sysv/linux/kernel-features.h: Fix typo in accept4
1608 handling.
1609
905ef0da
UD
1610 * resolv/res_init.c (__res_vinit): Always assign to statp->nscount
1611 after reading name server list.
1612
71053765 1613 [BZ #7058]
e87946cc
UD
1614 * nis/nss_nis/nis-hosts.c (_nss_nis_gethostbyname4_r): Fix memory
1615 handling for host name aliases.
1616
d43b8bdd
JJ
16172008-11-24 Arkadiusz Miśkiewicz <arekm@maven.pl>
1618
1619 * sysdeps/i386/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Use LOAD_PIC_REG
1620 instead of doing things manually.
1621
16222008-11-26 Chris Steel <chris.steel.lnx@googlemail.com>
1623
1624 * posix/regex_internal.h (build_wcs_upper_buffer):
1625 Return type is reg_error_t.
1626
25a34eb7
UD
16272008-12-05 Ulrich Drepper <drepper@redhat.com>
1628
f3721ab2
UD
1629 * posix/globtest.sh: Use mktemp to create temporary file and
1630 directory.
1631
25a34eb7
UD
1632 * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_SET_S): Handle large
1633 sets correctly.
1634 (__CPU_CLR_S): Likewise.
1635 (__CPU_ISSET_S): Likewise.
1636
8680179f
UD
16372008-12-05 Joseph Myers <joseph@codesourcery.com>
1638 Ulrich Drepper <drepper@redhat.com>
1639
1640 * scripts/firstversion.awk: Use custom comparison function to compare
1641 version numbers.
1642 * scripts/versions.awk: Use sort invocation which can handle
1643 multi-digit sub-version numbers.
1644
72d50908
UD
16452008-12-04 Ulrich Drepper <drepper@redhat.com>
1646
1647 * locale/programs/ld-address.c (DEFINE_LANGUAGE_CODE2): Define.
1648 * locale/iso-639.def: Add Chhattisgarhi entry.
1649
f93fc0b7
UD
16502008-12-02 Ulrich Drepper <drepper@redhat.com>
1651
da5ac135
UD
1652 * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname3_r): Recognize
1653 ESRCH return value.
1654 (_nss_dns_gethostbyname4_r): Likewise.
1655 * resolv/res_init.c (__res_vinit): Initialize nscount to zero.
1656 * sysdeps/posix/getaddrinfo.c (gaih_inet): In case we use
1657 gethostbyname4_r, we don't have a separate IPv6 status, so copy
1658 the no_data variable.
1659
6f5c3117
UD
1660 * resolv/res_init.c (__res_vinit): Fill in IPv4 name server
1661 information at the correct index.
1662
f93fc0b7
UD
1663 * socket/sys/socket.h: Declare accept4.
1664 * socket/accept4.c: New file.
1665 * sysdeps/unix/sysv/linux/accept4.c: New file.
1666 * sysdeps/unix/sysv/linux/i386/accept4.S: New file.
1667 * socket/Makefile (routines): Add accept4.
1668 * socket/Versions: Export accept4 with version GLIBC_2.10.
1669 * socket/paccept.c: Removed.
1670 * sysdeps/unix/sysv/linux/paccept.c: Removed.
1671 * sysdeps/unix/sysv/linux/i386/paccept.S: Removed.
1672 * Versions.def: Define GLIBC_2.10 for libc.
1673 * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_ACCEPT4.
1674
1675 * nscd/connections.c: Use accept4.
1676
1677 * sysdeps/unix/sysv/linux/i386/socket.S: Fix comment.
1678
1fa7ae05
UD
16792008-12-01 Ulrich Drepper <drepper@redhat.com>
1680
9744268c
UD
1681 * resolv/res_send.c (send_dg): Create sockets with non-blocking
1682 flag already set.
1683
1fa7ae05
UD
1684 * stdlib/setenv.c (unsetenv): Don't search environment if it does
1685 not exist.
30c06371
UD
1686 * stdlib/Makefile (tests): Add tst-unsetenv1.
1687 * stdlib/tst-unsetenv1.c: New file.
1fa7ae05 1688
37a6a271
UD
16892008-11-29 Ulrich Drepper <drepper@redhat.com>
1690
1691 * login/utmp_file.c (file_writable): New variable.
1692 (setutent_file): Don't try to open file for writing.
1693 (pututline_file): Before writing, make descriptor writable if
1694 necessary.
1695
ca4dc0fe
UD
16962008-11-26 Ulrich Drepper <drepper@redhat.com>
1697
be4607eb
UD
1698 * sysdeps/posix/getaddrinfo.c (getaddrinfo): Only restrict search
1699 to IPv4 or IPv6 if an interface has been found.
ca4dc0fe 1700
01a74645
RM
17012008-11-26 Roland McGrath <roland@redhat.com>
1702
24fd0a5b
RM
1703 * sysdeps/unix/sysv/linux/alpha/ipc_priv.h: Renamed to ...
1704 * sysdeps/unix/sysv/linux/powerpc/ipc_priv.h: ... here.
1705
1706 * sysdeps/unix/sysv/linux/alpha/wordexp.c: Renamed to ...
1707 * sysdeps/unix/sysv/linux/ia64/wordexp.c: ... here.
1708 * sysdeps/unix/sysv/linux/sparc/sparc64/wordexp.c: Change #include.
1709
01a74645
RM
1710 * elf/elf.h (NT_386_IOPERM): New macro.
1711 (NT_PPC_VSX): New macro.
1712
c0439b95
RM
17132008-11-25 Roland McGrath <roland@redhat.com>
1714
1715 * sysdeps/alpha, sysdeps/unix/bsd/osf/alpha,
1716 sysdeps/unix/bsd/Attic/osf1/alpha, sysdeps/unix/sysv/linux/alpha,
1717 sysdeps/unix/sysv/linux/alpha/alpha, sysdeps/unix/alpha,
1718 sysdeps/mach/alpha, sysdeps/mach/hurd/alpha:
1719 Subdirectories moved to ports repository.
1720 * configure.in (base_machine): Remove alpha case.
1721
d3dc523b
RM
17222008-11-25 Thomas Schwinge <tschwinge@gnu.org>
1723
1724 * sysdeps/mach/strerror_l.c: New file.
1725
edba7a54
UD
17262008-11-13 Ryan S. Arnold <rsa@us.ibm.com>
1727
1728 [BZ #6411]
1729 * sysdeps/powerpc/fpu/Makefile: Added test case tst-setcontext-fpscr.
1730 * sysdeps/powerpc/fpu/feholdexcpt.c (_FPU_MASK_ALL): Define to replace
1731 magic numbers.
1732 * sysdeps/powerpc/fpu/fenv_libc.h (fesetenv_register): Dynamically
1733 choose mtfsf insn based on PPC_FEATURE_HAS_DFP.
1734 (relax_fenv_state): Same as above.
1735 (FPSCR_29): Reserve bit in ISA 2.05.
1736 (FPSCR_NI): Provide define for compat.
1737 * sysdeps/powerpc/fpu/fesetenv.c (_FPU_MASK_ALL): Define to replace
1738 magic numbers.
1739 * sysdeps/powerpc/fpu/feupdateenv.c (_FPU_MASK_ALL): Define to replace
1740 magic numbers.
1741 * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c: New file. Test case to
1742 test setcontext and swapcontext with dynamic 64-bit FPSCR detection.
1743 * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S (__longjmp): Adjust
1744 access to hwcap to account for hwcap size increase to uint64_t.
1745 * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S (__sigsetjmp ):
1746 Likewise.
1747 * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext-common.S
1748 (*setcontext): Likewise.
1749 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/setcontext.S:
1750 New file.
1751 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/swapcontext.S:
1752 New file.
1753 * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S
1754 (*setcontext): dynamically select mtfsf insn based on
1755 PPC_FEATURE_HAS_DFP. Adjust access to hwcap to account for hwcap size
1756 increase to uint64_t.
1757 * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S
1758 (*swapcontext): dynamically select mtfsf insn based on
1759 PPC_FEATURE_HAS_DFP. Adjust access to hwcap to account for hwcap size
1760 increase to uint64_t.
1761 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/setcontext.S:
1762 New file.
1763 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/swapcontext.S:
1764 New file.
1765 * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S
1766 (*setcontext): dynamically select mtfsf insn based on
1767 PPC_FEATURE_HAS_DFP.
1768 * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S
1769 (*swapcontext): dynamically select mtfsf insn based on
1770 PPC_FEATURE_HAS_DFP.
1771
ec297962
UD
17722008-11-13 Ulrich Drepper <drepper@redhat.com>
1773
b5449f8a 1774 * version.h: Bump for 2.9 release.
f52bb4d7 1775 * include/features.h (__GLIBC_MINOR__): Bump to 9.
b5449f8a 1776
ec297962
UD
1777 [BZ #7029]
1778 * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_ALLOC_SIZE):
1779 Multiply with sizeof of __cpu_mask, not 8 unconditionally after
1780 all the rounding.
1781
3cac8b75
UD
17822008-11-11 Ulrich Drepper <drepper@redhat.com>
1783
0e54a725 1784 [BZ #7009]
3cac8b75
UD
1785 * resolv/nss_dns/dns-host.c (gaih_getanswer_slice): Don't abort for
1786 unknown request types for now.
1787
58a4b51a
RM
17882008-11-11 Roland McGrath <roland@redhat.com>
1789
1790 * sysdeps/x86_64/configure: New file.
1791
1792 * configure.in: Add AC_SUBST(libc_cv_cpp_asm_debuginfo).
1793 * configure: Regenerated.
1794
01bd5e96
JJ
17952008-11-03 Martin Schwidefsky <schwidefsky@de.ibm.com>
1796
1797 * sysdeps/s390/s390-64/dl-trampoline.S (_dl_runtime_profile): Use the
1798 correct instruction to remove the stack frame.
1799
a9069550
JJ
18002008-11-03 Michael Matz <matz@suse.de>
1801
1802 * sysdeps/s390/bits/atomic.h (__arch_compare_and_exchange_val_32_acq,
1803 __arch_compare_and_exchange_val_64_acq): Add "memory" clobber.
1804
4b23f9bd
JJ
18052008-11-07 Jakub Jelinek <jakub@redhat.com>
1806
09f66a4f
JJ
1807 * include/stdio.h (__builtin_fwrite, __builtin_fwrite_unlocked):
1808 Remove.
1809
4b23f9bd
JJ
1810 * bits/libc-tsd.h (__libc_tsd_define, __libc_tsd_address,
1811 __libc_tsd_get, __libc_tsd_set): Add TYPE argument, use it as the type
1812 of the thread variable instead of void *.
1813 * sysdeps/mach/hurd/bits/libc-tsd.h (__libc_tsd_define,
1814 __libc_tsd_address, __libc_tsd_get, __libc_tsd_set): Likewise.
1815 * include/ctype.h (CTYPE_B, CTYPE_TOUPPER, CTYPE_TOLOWER): Adjust
1816 __libc_tsd_define arguments.
1817 (__ctype_b_loc, __ctype_toupper_loc, __ctype_tolower_loc): Adjust
1818 __libc_tsd_address arguments. Remove union hack.
1819 * include/rpc/rpc.h (RPC_VARS): Adjust __libc_tsd_define arguments.
1820 * sunrpc/rpc_thread.c (RPC_VARS): Likewise.
1821 (__rpc_thread_destroy, rpc_thread_multi, __rpc_thread_variables):
1822 Adjust __libc_tsd_{set,get} arguments.
1823 * ctype/ctype-info.c (CTYPE_B, CTYPE_TOUPPER, CTYPE_TOLOWER): Adjust
1824 __libc_tsd_define arguments.
1825 * locale/uselocale.c (__uselocale): Adjust __libc_tsd_{set,get}
1826 arguments.
1827 * locale/lc-ctype.c (_nl_postload_ctype): Likewise.
1828 * locale/global-locale.c (__libc_tsd_LOCALE): Adjust type.
1829 (LOCALE): Adjust __libc_tsd_define arguments.
1830 * locale/localeinfo.h (_NL_CURRENT_LOCALE): Adjust __libc_tsd_get
1831 arguments.
1832 (LOCALE): Adjust __libc_tsd_define arguments.
1833 * sysdeps/mach/hurd/malloc-machine.h (MALLOC): Adjust __libc_tsd_define
1834 arguments.
1835 (tsd_setspecific, tsd_getspecific): Adjust __libc_tsd_{set,get}
1836 arguments.
1837
486bdb88
UD
18382008-11-02 Ulrich Drepper <drepper@redhat.com>
1839
1840 * malloc/malloc.c (public_rEALLOc): When new arena is used, copy
1841 really all bytes. Patch by Denys Vlasenko <dvlasenk@redhat.com>.
1842
64647f9a
UD
18432008-11-01 Ulrich Drepper <drepper@redhat.com>
1844
1845 [BZ #6966]
1846 * misc/hsearch_r.c (hsearch_r): Fix secondary hash function.
1847
acd44dbc
UD
18482008-10-24 Joseph Myers <joseph@codesourcery.com>
1849 Ulrich Drepper <drepper@redhat.com>
1850
1851 * math/tgmath.h (__floating_type): Use __builtin_classify_type in
1852 definition for GCC 3.1 and later.
64647f9a 1853
41e25904
UD
18542008-10-31 Jakub Jelinek <jakub@redhat.com>
1855
1856 * elf/dl-tls.c (__tls_get_addr): After calling _dl_update_slotinfo
1857 refetch dtv, as it might have changed.
1858 * elf/Makefile: Add rules to build and run tst-tls18.
1859 * elf/tst-tls18.c: New test.
1860 * elf/tst-tlsmod18a.c: New file.
1861
e148a644 18622008-09-09 Aurelien Jarno <aurelien@aurel32.net>
97f12390 1863
da9c2314 1864 [BZ #6875]
e148a644
UD
1865 * iconvdata/gconv-modules: Add LATIN9 as an alias to ISO-8859-15.
1866
18672008-10-31 Ulrich Drepper <drepper@redhat.com>
97f12390 1868
6daf1a2f
UD
1869 [BZ #6867]
1870 * sysdeps/powerpc/elf/rtld-global-offsets.sym: Fix typo.
1871
6f576bf6
UD
1872 [BZ #6919]
1873 * posix/spawnattr_getschedparam.c (posix_spawnattr_getschedparam):
1874 Fix length of copy operation.
1875
45a8beb5
UD
18762008-10-02 Pierre Habouzit <madcoder@debian.org>
1877
1878 * sysdeps/unix/sysv/linux/eventfd.c (eventfd): Use the eventfd2 syscall
1879 and fix its calling convention.
1880
ad12e635
UD
18812008-10-07 Andreas Schwab <schwab@suse.de>
1882
1883 [BZ #6942]
1884 * resolv/res_send.c (send_vc): Fix last change.
1885 (send_dg): Align here as well.
1886
3cf44918
UD
18872008-10-31 Ulrich Drepper <drepper@redhat.com>
1888
dbb6ab3e
UD
1889 * sysdeps/unix/sysv/linux/ulimit.c (__ulimit): Handle UL_GETFSIZE
1890 return value in case rlimit is RLIM_INFINITY.
1891
1892 [BZ #6947]
1893 * sysdeps/unix/sysv/linux/ulimit.c (__ulimit): Fix return value
1894 for UL_SETFSIZE.
1828d6b0
UD
1895 * resource/Makefile (tests): Add bug-ulimit1.
1896 * resource/bug-ulimit1.c: New file.
dbb6ab3e 1897
a5ff533e
UD
1898 [BZ #6974]
1899 * sunrpc/rpc_main.c (mkfile_output): Properly handle filename
1900 without dot. Properly terminate the string with a null byte.
1901 Based on a patch by Aurelien Jarno <aurelien@aurel32.net>.
1902
4bed549a
UD
1903 [BZ #6980]
1904 * debug/getgroups_chk.c (__getgroups_chk): Return EINVAL error for
1905 negative sizees.
1906 * posix/bits/unistd.h (getgroups): Call __getgroups_chk for
1907 negative __size.
1908
3cf44918
UD
1909 [BZ #6995]
1910 * sysdeps/powerpc/powerpc32/dl-machine.c: Fix typo in message.
1911
21b07d8b
UD
19122008-10-30 Ulrich Drepper <drepper@redhat.com>
1913
332c4465
UD
1914 * grp/initgroups.c (internal_getgrouplist): Don't prematurely
1915 abort if there is no initgroups_dyn function.
1916
21b07d8b
UD
1917 * resolv/res_send.c (send_dg): On timeout, only return nonzero
1918 result if any of the queries really provided an answer.
1919
4caa3fb7
UD
19202008-10-28 Ulrich Drepper <drepper@redhat.com>
1921
1922 * po/lt.po: Update from translation team.
1923
a22c3a0d
UD
19242008-10-26 Ulrich Drepper <drepper@redhat.com>
1925
1926 * po/id.po: Update from translation team.
1927
49685151
UD
19282008-10-24 Ulrich Drepper <drepper@redhat.com>
1929
1930 * resolv/res_query.c (__libc_res_nquery): Add a few casts.
660675de 1931 Fix tests for existence of second reply.
49685151 1932
8d9d5d35
UD
19332008-10-23 Ulrich Drepper <drepper@redhat.com>
1934
1935 * po/id.po: New file.
1936 Contributed by the Indonesian translation team.
1937
208bc836
UD
19382008-10-22 Dmitry V. Levin <ldv@altlinux.org>
1939
1940 * misc/syslog.c (openlog_internal): Fix __have_sock_cloexec
1941 initialization.
1942
60a23f5a
UD
19432008-10-17 Jakub Jelinek <jakub@redhat.com>
1944
1945 * elf/Makefile: Add rules to build and run tst-tls17.
1946 * elf/tst-tls17.c: New test.
1947 * elf/tst-tlsmod17a.c: New file.
1948 * elf/tst-tlsmod17b.c: Likewise.
1949
292eb817
UD
19502008-10-17 Ulrich Drepper <drepper@redhat.com>
1951
1952 * stdlib/divmod_1.c: Use correct type for dummy variable.
1953 * stdlib/mod_1.c: Likewise.
1954
5df2a427
UD
19552008-10-16 Ulrich Drepper <drepper@redhat.com>
1956
1957 * elf/dl-tls.c (_dl_update_slotinfo): Copy all of the initial DTV.
1958
472e5e08
JJ
19592008-10-16 Jakub Jelinek <jakub@redhat.com>
1960
1961 * sysdeps/unix/sysv/linux/sys/signalfd.h (signalfd): Fix __THROW vs.
1962 __nonnull order for C++.
1963 * sysdeps/unix/sysv/linux/alpha/sys/signalfd.h (signalfd): Likewise.
1964 * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h (signalfd): Likewise.
1965
86900abd
RM
19662008-10-01 Daniel Jacobowitz <dan@codesourcery.com>
1967
1968 * stdlib/longlong.h: Update from GCC.
1969
19c10a47
JJ
19702008-10-09 Jakub Jelinek <jakub@redhat.com>
1971 David S. Miller <davem@davemloft.net>
1972
1973 * sysdeps/sparc/sparc64/sparcv9v/memcpy.S: When not USE_BPR,
1974 make sure any registers used with 64-bit 'branch-on-register'
1975 instructions have their top 32-bits clear.
1976 * sysdeps/sparc/sparc64/sparcv9v/memset.S: Likewise.
1977 * sysdeps/sparc/sparc64/sparcv9v2/memcpy.S: Likewise.
1978
2fdde3b9
UD
19792008-09-18 Andreas Schwab <schwab@suse.de>
1980
1981 [BZ #6942]
1982 * resolv/res_send.c (send_vc): Fix use of unaligned address.
f00d47a3 1983 Properly handle partial reads.
2fdde3b9 1984
6ba25fcb
RM
19852008-10-01 Mark Shinwell <shinwell@codesourcery.com>
1986
1987 * elf/elf.h (STO_MIPS_PLT): New.
1988 (R_MIPS_COPY): New.
1989 (R_MIPS_JUMP_SLOT): New.
1990 (R_MIPS_NUM): Redefine to 128.
1991 (DT_MIPS_PLTGOT): New.
1992 (DT_MIPS_RWPLT): New.
1993 (DT_MIPS_NUM): Redefine to 0x35.
1994
97898201
UD
19952008-10-01 Ulrich Drepper <drepper@redhat.com>
1996
1997 * timezone/africa: Update from tzdata2008f.
1998 * timezone/asia: Likewise.
1999 * timezone/australasia: Likewise.
2000 * timezone/europe: Likewise.
2001 * timezone/leapseconds: Likewise.
2002 * timezone/northamerica: Likewise.
2003 * timezone/southamerica: Likewise.
2004 * timezone/zone.tab: Likewise.
2005
3452ded5
UD
20062008-09-30 Ulrich Drepper <drepper@redhat.com>
2007
2008 * nscd/connections.c: Disable use of paccept for now.
2009
54ad9327
UD
20102008-09-29 Ulrich Drepper <drepper@redhat.com>
2011
8ec2550e
UD
2012 * socket/Versions: Remove paccept export for GLIBC_2.9.
2013 * socket/Makefile (routines): Remove paccept.
2014 * socket/sys/socket.h: Remove paccept declaration.
2015
54ad9327
UD
2016 * po/sv.po: Update from translation team.
2017
1c5eba39
UD
20182008-09-22 Deborah S. Townsend <dstownse@us.ibm.com>
2019
2020 * sysdeps/s390/s390-64/s390x-mcount.S: Replace ahi with aghi.
2021 * sysdeps/unix/sysv/linux/s390/s390-64/socket.S: Likewise.
2022
0a26fc4d
UD
20232008-09-16 Ulrich Drepper <drepper@redhat.com>
2024
2025 * dlfcn/dlopen.c (dlopen_doit): Allow __RTLD_SPROF flag.
2026 Patch by Olivier Fourdan <ofourdan@redhat.com>.
2027
2bcaff08
UD
20282008-09-15 Ulrich Drepper <drepper@redhat.com>
2029
2030 * sunrpc/rpc/svc.h: Declare svcfd_create.
2031 Patch by Michael Solberg <msolberg@redhat.com>.
2032
caa60cb9 20332008-09-12 Flavio Leitner <fleitner@redhat.com>
f00d47a3 2034 Ulrich Drepper <drepper@redhat.com>
caa60cb9
UD
2035
2036 * malloc/malloc.c (public_vALLOc): Try other arenas in case
2037 _int_valloc fails.
2038 (public_pVALLOc): Likewise.
2039
6c161112
AJ
20402008-09-02 Andreas Jaeger <aj@suse.de>
2041
2042 * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: Fix last
2043 commit.
2044
0cb269d7
RM
20452008-08-26 Aurelien Jarno <aurelien@aurel32.net>
2046
452034cc 2047 [BZ #6860]
2bcaff08 2048 * hurd/hurd/signal.h (HURD_MSGPORT_RPC): Fix a typo.
0cb269d7 2049
13074b5b
RM
20502008-07-18 Daniel Jacobowitz <dan@codesourcery.com>
2051
2052 * Makefile (check-data): Check data directory in add-ons.
2053 * elf/Makefile (check-data): Likewise.
2054
58801a0e
RM
20552008-08-18 Roland McGrath <roland@redhat.com>
2056
2057 * configure.in (--with-cpu): Check compiler support for -march/-mcpu.
2058 * configure: Regenerated.
2059 * config.make.in (cflags-cpu): New substituted variable.
2060 (with-cpu): Variable removed.
2061 * Makeconfig (+cflags): Use $(cflags-cpu), not $(with-cpu).
2062
7df49c5d
UD
20632008-08-14 Ryan S. Arnold <rsa@us.ibm.com>
2064
2065 [BZ #6845]
2066 * sysdeps/powerpc/fpu/bits/mathinline.h (__signbitl): Copy new
2067 __signbitl definition and __LONG_DOUBLE_128__ guard from:
2068 * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h: Remove as
2069 redundant. Functions which call floating point assembler operations
2070 should go into a sysdeps powerpc/fpu directory.
2071
965805e8
UD
20722008-08-15 Ulrich Drepper <drepper@redhat.com>
2073
2074 * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Define MAP_STACK.
2075 * sysdeps/unix/sysv/linux/i386/bits/mman.h: Likewise.
2076
9cf73ab0
UD
20772008-08-14 Ulrich Drepper <drepper@redhat.com>
2078
62a1ffc6
UD
2079 * sysdeps/x86_64/memset.S: Reduce size of tables for PIC.
2080
9cf73ab0
UD
2081 * sysdeps/unix/sysv/linux/dl-origin.c (_dl_get_origin): Undo all
2082 change related to AT_EXECFN. We cannot use that string.
2083 * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Remove
2084 _dl_execfn member.
2085 * elf/dl-support.c: Remove _dl_execfn variable.
2086 (_dl_aux_init): Remove handling of AT_EXECFN.
2087 * elf/dl-sysdep.c (_dl_sysdep_start): Remove handling of AT_EXECFN.
2088 * elf/rtld.c (process_envvars): Remove use of __ASSUME_AT_EXECFN.
2089
1bfa05cf
UD
20902008-08-13 Ulrich Drepper <drepper@redhat.com>
2091
7b3ba2c4
UD
2092 [BZ #6544]
2093 * libio/fmemopen.c: Implement binary mode. In this mode no NUL
2094 byte gets added to writes and seeks from the end use the length of
2095 the buffer and not the currently terminating NUL byte.
2096
1bfa05cf
UD
2097 [BZ #6634]
2098 * login/utmp_file.c (getutent_r_file): Take additional parameter.
2099 Set to true if locking failed.
2100 (getutid_r_file): Adjust caller.
2101 (pututline_file): Likewise. Return NULL in this case.
2102 Patch mostly by halesh.s@gmail.com.
2103
c5671698
UD
21042008-08-12 Ulrich Drepper <drepper@redhat.com>
2105
2106 [BZ #6589]
2107 * sysdeps/unix/sysv/linux/ifaddrs.c (struct sockaddr_ll_max):
2108 Define.
2109 (struct ifaddrs_storage): Use it instead of sockaddr_ll.
2110
4497384e
UD
21112008-08-12 Ryan S. Arnold <rsa@us.ibm.com>
2112
2113 [BZ #6839]
2114 * sysdeps/powerpc/powerpc32/dl-machine.c (CHECK_STATIC_TLS): Remove
2115 macro since it is now available in elf/dynamic-link.h.
2116
675d7111
RM
21172008-08-12 Roland McGrath <roland@frob.com>
2118
2119 * hurd/hurd/signal.h (HURD_MSGPORT_RPC): Avoid -Wparenthesis triggers,
2120 in case used outside of libc.
2121 Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>
2122
8b254432
UD
21232008-08-11 Ulrich Drepper <drepper@redhat.com>
2124
2125 * resolv/res_mkquery.c (res_nmkquery): Call ns_name_compress
2126 directly instead of going through dn_comp.
2127
ac84eeca
RM
21282008-08-11 Aurelien Jarno <aurel32@debian.org>
2129
2130 * sysdeps/mach/i386/machine-lock.h (__spin_unlock, __spin_try_lock):
2131 Fix asm constraints.
2132
f081b451
UD
21332008-08-07 Ulrich Drepper <drepper@redhat.com>
2134
2135 [BZ #6790]
2136 * sysdeps/unix/sysv/linux/bits/in.h (IP_PMTUDISC_PROBE): Define.
2137 (IPV6_PMTUDISC_PROBE): Likewise.
2138
30a4429e
UD
21392008-08-07 Pete Eberlein <eberlein@us.ibm.com>
2140
2141 [BZ #6791]
2142 * sysdeps/unix/sysv/linux/powerpc/bits/mman.h (PROT_SAO): Define.
2143
1642331d 21442008-08-01 Steven Munroe <sjmunroe@us.ibm.com>
626f68ff 2145 Carlos Eduardo Seo <cseo@linux.vnet.ibm.com>
1642331d
UD
2146
2147 [BZ #6817]
2148 * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags):
2149 Added the members 'vsx' and 'arch_2_06'.
2150 (_dl_powerpc_platforms): Add the member 'power7'.
2151 * sysdeps/powerpc/dl-procinfo.h: Modify _DL_HWCAP_FIRST
2152 to reflect the changes required by VSX and ISA 2.06.
2153 Modify _DL_PLATFORMS_COUNT to reflect the addition of
2154 'power7'.
2155 Defined PPC_PLATFORM_POWER7.
2156 (_dl_string_platform): Add support for POWER7.
2157 * sysdeps/powerpc/sysdep.h: Define bit masks for VSX
2158 capability and ISA 2.06.
2159
48b94661
UD
21602008-08-07 Ulrich Drepper <drepper@redhat.com>
2161
2162 [BZ #6824]
2163 * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h: Use correct
2164 macro to detect use of 128 bit long double.
2165 Patch by Ryan S. Arnold <rsa@us.ibm.com>.
2166
9523fd28
UD
21672008-08-05 Ulrich Drepper <drepper@redhat.com>
2168
9c0cb150
UD
2169 * scripts/gen-as-const.awk: Use 32-bit values on 32-bit platforms.
2170
46aea5cb 2171 [BZ #5794]
9523fd28
UD
2172 * sysdeps/i386/fpu/s_expm1l.S: Simply use exp implementation for large
2173 parameters.
2174 * sysdeps/x86_64/fpu/s_expm1l.S: Likewise.
2175 Patch by Denys Vlasenko <dvlasenk@redhat.com>.
2176
c400c931
UD
21772008-08-03 Ulrich Drepper <drepper@redhat.com>
2178
2179 * nscd/connections.c (main_loop_poll): Pass a buffer which is
2180 guaranteed to be large enough to read inotify event. Ignore
2181 EAGAIN error. Better error message. Add branch predicition.
2182 (main_loop_epoll): Likewise.
2183
3f39adac
RM
21842008-08-02 Roland McGrath <roland@frob.com>
2185
2186 * sysdeps/mach/i386/machine-lock.h (__spin_unlock, __spin_try_lock):
2187 Add memory clobbers.
2188
3501542f
UD
21892008-08-02 Ulrich Drepper <drepper@redhat.com>
2190
48b22986
UD
2191 * manual/arith.texi: Avoid @strong{Note:}.
2192 * manual/creature.texi: Likewise.
2193 * manual/filesys.texi: Likewise.
2194 * manual/math.texi: Likewise.
2195 * manual/memory.texi: Likewise.
2196 * manual/resource.texi: Likewise.
2197 * manual/syslog.texi: Likewise.
2198 * manual/time.texi: Likewise.
2199
3501542f
UD
2200 * sysdeps/posix/clock_getres.c (hp_timing_getres): Remove inline
2201 to prevent warning.
2202
17756df3
UD
22032008-08-01 Ulrich Drepper <drepper@redhat.com>
2204
ebcc1f4d
UD
2205 * sysdeps/unix/sysv/linux/Versions: Fix changes due to old patch for
2206 new epoll_create1 interface.
2207 * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
2208 * sysdeps/unix/sysv/linux/sys/epoll.h: Likewise.
2209 * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
2210
144bfa86
UD
2211 * include/arpa/nameser.h (NS_GET16): Use const pointer.
2212 (NS_GET32): Likewise.
2213
7e1b29c6
UD
2214 * sysdeps/unix/sysv/linux/kernel-features.h: s390 has the new
2215 syscalls, too.
2216
42fa1f67
UD
2217 * sysdeps/unix/sysv/linux/dl-origin.c (_dl_get_origin): We cannot
2218 use the AT_EXECFN value if it is no absolute path.
2219 * sysdeps/unix/sysv/linux/kernel-features.h: Never define
2220 __ASSUME_AT_EXECFN.
2221
cd5743fd
UD
2222 * Versions.def: Add GLIBC_2.9 to libresolv.
2223 * include/resolv.h: Remove hidden proto declarations for __ns_*
2224 functions. Add them for __dn_count_labels and __p_secstodate.
2225 * include/arpa/nameser.h: Add a number of hidden proto declarations.
2226 Define ns_msg_getflags macro here.
2227 * resolv/res_debug.c: Add hidden definition for __dn_count_labels
2228 and __p_secstodate.
2229 * resolv/Versions: Export functions from <arpa/nameser.h> from
2230 libresolv in version GLIBC_2.9.
2231 * resolv/ns_name.c: Integrate changes from bind 9.5.0. Add necessary
2232 hidden definitions.
2233 * resolv/ns_netint.c: Likewise.
2234 * resolv/ns_parse.c: Likewise.
2235 * resolv/ns_print.c: Likewise.
2236 * resolv/ns_samedomain.c: Likewise.
2237 * resolv/ns_ttl.c: Likewise.
2238 * resolv/arpa/nameser_compat.h: Likewise.
2239 * resolv/arpa/nameser.h: Likewise. Remove macros which redirect
2240 function calls.
2241 * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Use __ns_get16
2242 instead of ns_get16.
2243 * resolv/nss_dns/dns-host.c (getanswer_r): Use __ns_get16 and
2244 __ns_get32 instead of ns_get16 and ns_get32 respectively.
2245 (gaih_getanswer_slice): Likewise.
2246 * resolv/Makefile (libresolv-routines): Add ns_date.
2247 * resolv/ns_date.c: New file.
2248
17756df3
UD
2249 * elf/Makefile (check-localplt.out): Also check libresolv and
2250 libcrypt.
2251
46bc5d43
UD
22522008-07-31 Ulrich Drepper <drepper@redhat.com>
2253
2254 * sysdeps/unix/sysv/linux/kernel-features.h: Define
2255 __ASSUME_O_CLOEXEC.
2256
a707cff6
UD
22572008-07-30 Ulrich Drepper <drepper@redhat.com>
2258
3c227386
UD
2259 * sysdeps/posix/getaddrinfo.c (gaih_inet): Raise size of initial
2260 buffer passed to NSS functions.
2261
9523fd28 2262 * nscd/connections.c (nscd_init): Typo in preprocessor directive.
bd7f4857
UD
2263
2264 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_PACCEPT):
2265 Define.
2266
a707cff6
UD
2267 * misc/syslog.c (openlog_internal): Fix compile problem.
2268
0424d007
RM
22692008-07-28 Roland McGrath <roland@redhat.com>
2270
2271 * elf/dl-sysdep.c (_dl_show_auxv): Add AT_EXECFN to the table.
2272
b7da31a1
UD
22732008-07-28 Ulrich Drepper <drepper@redhat.com>
2274
300ea0ad
UD
2275 * io/ftw.c (add_object): Remove inline to avoid warning.
2276
d6173baa
UD
2277 * sysdeps/unix/sysv/linux/paccept.c: Fix compile problem.
2278
b7da31a1
UD
2279 * resolv/res_send.c (__libc_res_nsend): Take additional parameter.
2280 Use it instead of locally defined resplen2 variable.
2281 (res_nsend): Adjust for __libc_res_nsend interface change.
2282 (send_vc): Initialize *resplen2 if necessary. Read length of
2283 package into an appropriately aligned variable. Store converted length
2284 in new variable and use it appropriately.
2285 Add branch prediction help.
2286 * resolv/res_query.c (__libc_res_nquery): Take additional parameter
2287 and pass it on to __libc_res_nsend. Adjust all callers.
2288 (__libc_res_nsearch): Likewise.
2289 (__libc_res_nqeurydomain): Likewise.
2290 * resolv/nss_dns/dns-host.c: Adjust for __libc_res_nsearch interface
2291 change.
2292 (_nss_dns_gethostbyname4): Don't unconditionally allocate tmp array.
2293 Define resplen2 variable and pass it to __libc_res_nsearch and then
2294 to gaih_getanswer.
2295 (getanswer_r): In case of incorrect DNS data don't overread buffer.
2296 Add branch prediction.
2297 (gaih_getanswer_slice): Likewise. Check for invalid data types.
2298 (gaih_getanswer): Don't decode second slice if first one failed due
2299 to a too small buffer. Don't let not found status of second
2300 decoder shadow results of the first.
2301 * resolv/gethnamaddr.c (gethostbyname2): Adjust for __libc_res_nsearch
2302 and __libc_res_nquery interface changes
2303 (gethostbyaddr): Adjust for __libc_res_nquery interface change.
2304 * include/resolv.h: Adjust prototypes for __libc_res_nquery,
2305 __libc_res_nsearch, and __libc_res_nsend.
2306 * resolv/nss_dns/dns-canon.c: Adjust for __libc_res_nquery interface
2307 change.
2308 * resolv/nss_dns/dns-network.c: Adjust for __libc_res_nquery and
2309 __libc_res_nsearch interface changes.
2310
11ed3eae
UD
23112008-07-27 Ulrich Drepper <drepper@redhat.com>
2312
372aece0
UD
2313 * libio/iopopen.c (_IO_new_proc_open): Remove unnecessary volatile.
2314
e038616f
UD
2315 * posix/wordexp.c (exec_comm): Use pipe2 if possible to create
2316 file descriptors with close-on-exec set.
2317 (exec_comm_child): Fix the case where the write end of the pipe is
2318 STDOUT_FILENO already. In case it is, clear close-on-exec.
2319
d6e0c2a6
UD
2320 * sysdeps/unix/sysv/linux/syscalls.list: Add __pipe2 alias.
2321 * io/pipe2.c: Likewise.
2322 * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_PIPE2
2323 instead of __ASSUME_PACCEPT.
2324 * include/unistd.h: Declare __have_pipe2.
2325 * libio/iopopen.c: Implement "e" flag.
2326 * libio/Makefile (tests): Add tst-popen1.
2327 * libio/tst-popen1.c: New file.
2328
11ed3eae
UD
2329 * sysdeps/unix/sysv/linux/bits/socket.h: Define PF_ISDN and AF_ISDN.
2330 * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
2331
7438a80d
UD
23322008-07-26 Ulrich Drepper <drepper@redhat.com>
2333
c4a710b6
UD
2334 [BZ #6771]
2335 * libio/fileops.c (_IO_new_file_attach): Preserve errno around
2336 success call of _IO_SEEKOFF or calls which failed because the
2337 descriptor is for a pipe.
2338
31f3b159
UD
2339 * sunrpc/key_call.c (getkeyserv_handle): Use FD_CLOEXEC instead of
2340 magic number.
2341
c0216dfc
UD
2342 * misc/syslog.c (openlog_internal): Use SOCK_CLOEXEC if possible.
2343
72112b0c
UD
2344 * malloc/mtrace.c (mtrace): Use 'e' flag in fopen call. Drop
2345 F_SETFD use if we know fopen set the flag.
2346
7438a80d
UD
2347 * login/utmp_file.c (setutent_file): Minor optimization in case
2348 O_CLOEXEC is available.
2349
7b91359b
UD
23502008-07-24 Tom "spot" Callaway <tcallawa@redhat.com>
2351
2352 * Makeconfig: Define pie-ccflag and PIE-ccflag variables.
2353 * elf/Makefile: Use pie-ccflag variable.
2354 * nscd/Makefile: Likewise.
2355 * sysdeps/sparc/Makefile: Set $(pie-ccflag) to -fPIE.
2356
4057dc45
UD
23572008-07-21 Andreas Krebbel <krebbel1@de.ibm.com>
2358
e7135e24 2359 [BZ #6724]
4057dc45
UD
2360 * Versions.def: Add GLIBC_2.9 version tag for libutil.
2361 * sysdeps/unix/sysv/linux/s390/bits/utmp.h: Copy of
2362 gnu/bits/utmp.h. Check for __WORDSIZE_COMPAT32 removed.
2363 * sysdeps/unix/sysv/linux/s390/bits/utmpx.h: Copy of
2364 gnu/bits/utmpx.h. Check for __WORDSIZE_COMPAT32 removed.
2365 * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Add new files
2366 utmp32, utmpx32 and login32.
2367 * sysdeps/unix/sysv/linux/s390/s390-32/Versions: Add 2.9
2368 versions of struct utmp functions to libc and libutil.
2369 * sysdeps/unix/sysv/linux/s390/s390-32/utmp-compat.h: New file.
2370 * sysdeps/unix/sysv/linux/s390/s390-32/getutent.c: New file.
2371 * sysdeps/unix/sysv/linux/s390/s390-32/getutent_r.c: New file.
2372 * sysdeps/unix/sysv/linux/s390/s390-32/getutid.c: New file.
2373 * sysdeps/unix/sysv/linux/s390/s390-32/getutid_r.c: New file.
2374 * sysdeps/unix/sysv/linux/s390/s390-32/getutline.c: New file.
2375 * sysdeps/unix/sysv/linux/s390/s390-32/getutline_r.c: New file.
2376 * sysdeps/unix/sysv/linux/s390/s390-32/getutmp.c: New file.
2377 * sysdeps/unix/sysv/linux/s390/s390-32/getutxent.c: New file.
2378 * sysdeps/unix/sysv/linux/s390/s390-32/getutxid.c: New file.
2379 * sysdeps/unix/sysv/linux/s390/s390-32/getutxline.c: New file.
2380 * sysdeps/unix/sysv/linux/s390/s390-32/login.c: New file.
2381 * sysdeps/unix/sysv/linux/s390/s390-32/login32.c: New file.
2382 * sysdeps/unix/sysv/linux/s390/s390-32/pututxline.c: New file.
2383 * sysdeps/unix/sysv/linux/s390/s390-32/updwtmp.c: New file.
2384 * sysdeps/unix/sysv/linux/s390/s390-32/updwtmpx.c: New file.
2385 * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: New file.
2386 * sysdeps/unix/sysv/linux/s390/s390-32/utmp32.c: New file.
2387 * sysdeps/unix/sysv/linux/s390/s390-32/utmp32.h: New file.
2388 * sysdeps/unix/sysv/linux/s390/s390-32/utmpx-convert.h: New file.
2389 * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.c: New file.
2390 * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.h: New file.
2391
ff0bf753
UD
23922008-07-26 Ulrich Drepper <drepper@redhat.com>
2393
619cc2f6
UD
2394 * scripts/gen-as-const.awk: Generate more widely usable code by
2395 using 64-bit arithmetic.
2396
1311b164 2397 * stdio-common/printf_fp.c (___printf_fp): Give wide outout code
3f414923 2398 the same treatment as narrow output code in last patch.
1311b164 2399
ff0bf753
UD
2400 * sunrpc/clnt_udp.c (__libc_clntudp_bufcreate): Namespace cleanup.
2401
3f414923 2402 [BZ #6763]
ff0bf753
UD
2403 * elf/dl-load.c (local_strdup): Remove inline.
2404 (_dl_map_object_from_fd): Don't allocate l_symbolic_searchlist.r_list.
2405 * elf/dl-object.c (_dl_new_object): Allocate symbolic searchlist as
2406 part of the object.
2407
2408 * sysdeps/unix/sysv/linux/dl-origin.c: Add const to avoid warning.
2409
8ccf22f9
UD
24102008-07-25 Ulrich Drepper <drepper@redhat.com>
2411
bdd24a30
UD
2412 * sysdeps/unix/sysv/linux/kernel-features.h: IA-64 and SPARC have
2413 the new syscalls, too.
b5c0b5e4 2414
b41f1d14
UD
2415 * sysdeps/i386/i686/memcmp.S: Fix unwind information.
2416 Reported by Paul Pluzhnikov <ppluzhnikov@google.com>.
2417
3703468e
UD
2418 [BZ #6698]
2419 * stdio-common/_i18n_number.h (_i18n_number_rewrite): Take additional
2420 parameter for end of buffer. If temporary copy is too large use
2421 malloc.
2422 * stdio-common/vfprintf.c: Adjust for _i18n_number_rewrite
2423 interface change.
2424 * stdio-common/printf_fp.c (__printf_fp): Likewise.. Account for
2425 string rewrite when allocating buffer.
2426
bb0277bf
UD
2427 * sysdeps/unix/sysv/linux/kernel-features.h: PPC has the new
2428 syscalls, too.
2429
9dd84772
UD
2430 * nscd/connections.c (nscd_init): Clean up fcntl call.
2431
c418b1ba
UD
2432 * nscd/nscd_helper.c (open_socket): Use SOCK_CLOEXEC and
2433 SOCK_NONBLOCK if possible.
2434
b206d8b1
UD
2435 * sysdeps/unix/sysv/linux/opensock.c (__opensock): Use
2436 SOCK_CLOEXEC if available.
2437
8ccf22f9
UD
2438 * include/rpc/clnt.h: Declare __libc_clntudp_bufcreate and
2439 __libc_clntudp_bufcreate_internal.
2440 * include/sys/socket.h: Declare __have_sock_cloexec.
2441 * socket/Makefile (aux): Add have_sock_cloexec.
2442 * socket/have_sock_cloexec.c: New file.
2443 * sunrpc/clnt_udp.h (clntudp_bufcreate): Now a wrapper around
2444 __libc_clntudp_bufcreate.
2445 (__libc_clntudp_bufcreate): Former implementation of clntudp_bufcreate
2446 which takes an additional parameter. Create socket with non-blocking
2447 mode and close-on-exec flag set, if wanted.
2448 * sunrpc/Versions: Export __libc_clntudp_bufcreate@GLIBC_PRIVATE.
2449 * nis/ypclnt.c (yp_bind_client_create): Use __libc_clntpudp_bufcreate
2450 instead of clntudp_create. The socket has already the close-on-exec
2451 flag set if SOCK_CLOEXEC is defined.
2452
579cdf5a
UD
24532008-07-24 Ulrich Drepper <drepper@redhat.com>
2454
3ff2c948
UD
2455 * sysdeps/unix/sysv/linux/kernel-features.h: Define
2456 __ASSUME_PACCEPT, __ASSUME_IN_NONBLOCK, and __ASSUME_PACCEPT if
2457 appropriate.
2458 * nscd/connections.c: Avoid fcntl calls to set close-on-exec flag and
2459 non-blocking mode by using socket, paccept, and inotify_init1.
2460
bdcebfc4
UD
2461 * Versions.def (glibc): Add GLIBC_2.9.
2462 * io/Makefile (routines): Add dup3 and pipe2.
2463 * io/Versions [glibc] (GLIBC_2.9): Add dup3 and pipe2.
2464 * io/dup3.c: New file.
2465 * io/pipe2.c: New file.
2466 * posix/unistd.h: Declare dup3 and pipe2.
2467 * socket/Makefile (routines): Add paccept.
2468 * socket/Versions [glibc] (GLIBC_2.9): Add paccept.
2469 * socket/paccept.c: New file.
2470 * socket/sys/socket.h: Declare paccept.
2471 * sysdeps/unix/syscalls.list: Add entry for dup3.
2472 * sysdeps/unix/sysv/linux/Versions [glibc] (GLIBC_2.9): Add
2473 epoll_create2 and inotify_init1.
2474 * sysdeps/unix/sysv/linux/eventfd.c: Use eventfd1 syscall if possible.
2475 * sysdeps/unix/sysv/linux/paccept.c: New file.
2476 * sysdeps/unix/sysv/linux/signalfd.c: Use signalfd4 syscall if
2477 possible.
2478 * sysdeps/unix/sysv/linux/socketcall.h: Add SOCKOP_paccept.
2479 * sysdeps/unix/sysv/linux/syscalls.list: Add epoll_create2,
2480 inotify_init1, and pipe2 entries.
2481 * sysdeps/unix/sysv/linux/alpha/sys/epoll.h: New file.
2482 * sysdeps/unix/sysv/linux/alpha/sys/eventfd.h: New file.
2483 * sysdeps/unix/sysv/linux/alpha/sys/inotify.h: New file.
2484 * sysdeps/unix/sysv/linux/alpha/sys/signalfd.h: New file.
2485 * sysdeps/unix/sysv/linux/alpha/sys/timerfd.h: New file.
2486 * sysdeps/unix/sysv/linux/bits/socket.h: Define SOCK_CLOEXEC and
2487 SOCK_NONBLOCK.
2488 * sysdeps/unix/sysv/linux/i386/paccept.S: New file.
2489 * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: New file.
2490 * sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: New file.
2491 * sysdeps/unix/sysv/linux/sparc/sys/inotify.h: New file.
2492 * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h: New file.
2493 * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: New file.
2494 * sysdeps/unix/sysv/linux/sparc/bits/socket.h: New file.
2495 * sysdeps/unix/sysv/linux/sys/epoll.h: Define EPOLL_CLOEXEC and
2496 EPOLL_NONBLOCK. Declare epoll_create2.
2497 * sysdeps/unix/sysv/linux/sys/eventfd.h: Define EFD_CLOEXEC and
2498 EFD_NONBLOCK.
2499 * sysdeps/unix/sysv/linux/sys/inotify.h: Define IN_CLOEXEC and
2500 IN_NONBLOCK. Declare inotify_init1.
2501 * sysdeps/unix/sysv/linux/sys/signalfd.h: Define SFD_CLOEXEC and
2502 SFD_NONBLOCK.
2503 * sysdeps/unix/sysv/linux/sys/timerfd.h: Define TFD_CLOEXEC and
2504 TFD_NONBLOCK.
2505
0e077a7e
UD
2506 * elf/elf.h: Define AT_EXECFN.
2507 * elf/rtld.c [!__ASSUME_AT_EXECFN] (process_envvars): Don't handle
2508 LD_ORIGIN_PATH.
2509 * elf/dl-sysdep.c (_dl_sysdep_start): Handle AT_EXECFN.
2510 * elf/dl-support.c: Define _dl_execfn. Don't define _dl_origin_path
2511 if __ASSUME_AT_EXECFN is defined.
2512 (_dl_aux_init): Handle AT_EXECFN.
2513 * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_AT_EXECFN
2514 for 2.6.27 and up.
2515 * sysdeps/generic/ldsodefs.h (rtld_global_ro): Add _dl_execfn.
2516 Don't define _dl_origin_path if __ASSUME_AT_EXECFN is defined.
2517 * sysdeps/unix/sysv/linux/dl-origin.c (_dl_get_origin): Use
2518 _dl_execfn if available and avoid compatibility code if
2519 __ASSUME_AT_EXECFN is defined.
2520
579cdf5a
UD
2521 * sysdeps/unix/sysv/linux/dl-sysdep.h: Don't declare
2522 _dl_discover_osversion only for older kernels.
2523
7385c04c
RM
25242008-07-22 Roland McGrath <roland@frob.com>
2525
2526 * hurd/fd-read.c (_hurd_fd_read): Fix last change.
2527
8a26088d
RM
25282008-07-21 Roland McGrath <roland@frob.com>
2529
2530 * hurd/fd-read.c (_hurd_fd_read): Return EGRATUITOUS if the server
2531 returned too much data out of line.
2532
9f558b80
UD
25332008-07-20 Ulrich Drepper <drepper@redhat.com>
2534
2e79213a
UD
2535 * locale/setlocale.c (setname): Remove inline to avoid compiler
2536 warning.
2537
579cdf5a 2538 [BZ #6712]
9f558b80
UD
2539 * locale/setlocale.c (setlocale): Take the setlocale lock earlier.
2540
9667f97d
UD
25412008-07-15 Ulrich Drepper <drepper@redhat.com>
2542
2486b496
UD
2543 * stdio-common/vfprintf.c (_IO_helper_overflow): In case _IO_sputn
2544 doesn't manage to write anything, fail.
2545
9667f97d
UD
2546 * malloc/hooks.c (__malloc_check_init): Remove printf.
2547
6d4c073b
RM
25482008-07-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
2549
2550 * sysdeps/mach/hurd/bits/fcntl.h: Include <sys/types.h>.
2551
b7432416
UD
25522008-07-12 Ulrich Drepper <drepper@redhat.com>
2553
2554 * nscd/connections.c (main_loop_poll): Fix handling of read errors
2555 from inotify.
2556 (main_loop_epoll): Likewise.
2557
44abc397
UD
25582008-07-09 Ulrich Drepper <drepper@redhat.com>
2559
835113c6
UD
2560 * resolv/res_send.c: Remove unnecessary res_pquery prototype.
2561
fdc769f6
UD
2562 * resolv/res_query.c (__libc_res_nquery): Issue debug message only
2563 if DEBUG is defined.
2564
44abc397
UD
2565 * resolv/res_query.c (__libc_res_nquery): Align buffer for T_AAAA
2566 query. Adjust buffer size computation for padding.
2567
38dc8fad
UD
25682008-07-08 Ulrich Drepper <drepper@redhat.com>
2569
75684bd7
UD
2570 * stdio-common/Makefile: Add rules to build and run tst-setvbuf1.
2571 * stdio-common/tst-setvbuf1.c: New file.
2572 * stdio-common/tst-setvbuf1.expect: New file.
2573
38dc8fad
UD
2574 [BZ #6719]
2575 * libio/iosetvbuf.c (_IO_setvbuf): Correctly clear buffering flags
2576 when selecting fully-buffered stream.
2577 Patch by Wang Xin <wxinee@gmail.com>.
2578
107f4ac2
RM
25792008-07-06 Samuel Thibault <samuel.thibault@ens-lyon.org>
2580
2581 * sysdeps/mach/hurd/open.c: Include <stdio.h>.
2582 (__open_2): New function.
2583 (__open64_2): New alias to __open_2.
2584 * sysdeps/mach/hurd/openat.c: Include <stdio.h>.
2585 (__openat_2): New function.
2586 (__openat64_2): New alias to __openat_2.
2587
45ec3e79
UD
25882008-07-06 Ulrich Drepper <drepper@redhat.com>
2589
2590 [BZ #6723]
2591 * time/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
2592
0a583b54
RM
25932008-07-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
2594
2595 * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Define MSG_NOSIGNAL.
2596 * hurd/hurd/fd.h (__hurd_sockfail): Add extern inline function.
2597 * sysdeps/mach/hurd/recv.c (__recv): Use __hurd_sockfail instead of
2598 __hurd_dfail.
2599 * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Likewise.
2600 * sysdeps/mach/hurd/recvmsg.c (__recvmsg): Likewise.
2601 * sysdeps/mach/hurd/send.c (__send): Likewise.
2602 * sysdeps/mach/hurd/sendto.c (__sendfrom): Likewise.
2603 * sysdeps/mach/hurd/sendmsg.c (__sendmsg): Likewise.
2604
d5a0160b
RM
26052008-03-04 Samuel Thibault <samuel.thibault@ens-lyon.org>
2606
2607 * sysdeps/mach/hurd/recv.c (__recv): Initialize NPORTS.
2608 * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Likewise.
2609 * sysdeps/mach/hurd/recvmsg.c (__recvmsg): Likewise.
2610 * hurd/fd-read.c (_hurd_fd_read): Initialize NREAD.
2611 * hurd/get-host.c (_hurd_get_host_config): Likewise.
2612 * sysdeps/mach/hurd/dl-sysdep.c (__libc_read): Likewise.
2613
80922a99
UD
26142008-06-27 Ulrich Drepper <drepper@redhat.com>
2615
2616 [BZ #6657]
2617 * time/strptime_l.c: Don't clear s.era_cnt after successful match
2618 of %EY.
2619 Patch by Petr Baudis.
2620
34ca2ff7
UD
26212008-06-26 Ulrich Drepper <drepper@redhat.com>
2622
5ee0f5e2 2623 * resolv/res_debug.c (__p_type_syms): Add ns_t_dname entry.
34ca2ff7
UD
2624 Patch by Peter Jones <pjones@redhat.com>.
2625
104426b6
UD
26262008-06-25 Ulrich Drepper <drepper@redhat.com>
2627
2628 [BZ #6654]
2629 * stdlib/canonicalize.c (__realpath): readlink can write too much
2630 into the buffer on platforms without PATH_MAX.
2631
7166d23f
UD
26322008-06-17 Carlos O'Donell <carlos@codesourcery.com>
2633
4cb8e687 2634 [BZ #6653]
7166d23f
UD
2635 * posix/tst-regex.c (main): Rename to...
2636 (do_test): ... this. Remove cmdline option processing.
2637 (TIMEOUT): Define.
2638 (TEST_FUNCTION): Define.
2639 (CMDLINE_OPTIONS): Define.
2640
974069d8
UD
26412008-06-25 Ulrich Drepper <drepper@redhat.com>
2642
2643 [BZ #5210]
2644 * configure.in: Add -Werror to -fstack-protector test to catch
2645 unsupported architectures.
2646 Patch by Gilles Esponasse <g.esp@free.fr>.
2647
cefa2dd3
UD
26482008-06-17 Joseph Myers <joseph@codesourcery.com>
2649
2650 * stdlib/tst-setcontext.c: Set back_in_main before exit if
2651 getcontext returns ENOSYS.
2652
c00d1128
UD
26532008-06-18 Ulrich Drepper <drepper@redhat.com>
2654
2655 * nscd/connections.c (main_loop_poll): Fix test for read error.
2656 (main_loop_epoll): Likewise.
2657
a0edbb48
UD
26582008-06-13 Ulrich Drepper <drepper@redhat.com>
2659
d0a1ae94
UD
2660 * sysdeps/posix/getaddrinfo.c: Move _res_hconf_init call to a
2661 better place so it is not called when nscd is used.
2662
a0edbb48
UD
2663 * nscd/connections.c: Also recognize and handle changes to the
2664 resolver configuration file.
2665
46f70b3c
UD
26662008-06-12 Ulrich Drepper <drepper@redhat.com>
2667
5bcc6c0f
UD
2668 * time/strftime.c: Pass reference to tzset_called around to handle
2669 recursive calls.
2670
2671 [BZ #6612]
2672 * time/strftime.c (__strftime_internal): Call tzset() only
2673 when printing timezone-dependent values.
2674 Based on a patch by Petr Baudis <pasky@suse.cz>.
2675
f854efd7
UD
2676 * resolv/nss_dns/dns-host.c (gaih_getanswer): Don't
2677 unconditionally use second gaih_getanswer_slice result.
2678
46f70b3c
UD
2679 * sysdeps/posix/getaddrinfo.c (gai_inet): Remove unnecessary test.
2680 (getaddrinfo): RES must always be non-NULL.
2681
9ea8bfec
UD
26822008-06-12 Jakub Jelinek <jakub@redhat.com>
2683
2684 * sysdeps/powerpc/powerpc64/fpu/s_llround.S (__llround): Avoid using
2685 cr[34] registers.
2686 * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S (__llroundf): Likewise.
2687 * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S (__llround):
2688 Likewise.
2689 * sysdeps/powerpc/powerpc32/fpu/s_lround.S (__lround): Avoid using cr3
2690 register.
2691
5a337776
UD
26922008-06-12 Ulrich Drepper <drepper@redhat.com>
2693
5228ba2f
UD
2694 * nscd/nscd.h (struct database_dyn): Add inotify_descr and clear_cache
2695 fields.
2696 * nscd/connections.c (inotify_fd): New variable.
2697 (nscd_init): Try to open an inotify descriptor.
2698 If successful, watch files for databases using inotify instead of
2699 having prune threads stat the files.
2700 (nscd_run_prune): Recognize clear_cache flag being set and call
2701 prune_cache appropriately.
2702 (main_loop_poll): Add inotify descriptor to wait set and handle the
2703 reported changes.
2704 (main_loop_epoll): Likewise.
2705 * nscd/cache.c (prune_cache): Don't stat files for databases if
2706 inotify is used.
2707 * sysdeps/unix/sysv/linux/Makefile [subdir=nscd]
2708 (CFLAGS-connections.c): Add -DHAVE_INOTIFY.
2709
5a337776
UD
2710 * nscd/grpcache.c (cache_addgr): Correctly compute size of
2711 fixed-size portion of the record.
2712 * nscd/servicescache.c (cache_addserv): Likewise.
2713 * nscd/pwdcache.c (cache_addpw): Likewise.
2714 * nscd/initgrcache.c (addinitgroupsX): Likewise.
2715
9ad58cc3
UD
27162008-06-11 Ulrich Drepper <drepper@redhat.com>
2717
2718 * nscd/mem.c (gc): Initialize obstack earlier so that if we jump
2719 out we don't use uninitialized memory.
2720
2721 * nscd/hstcache.c (cache_addhst): Send correct number of bytes to
2722 the client.
2723
c1283552
UD
27242008-06-10 Ulrich Drepper <drepper@redhat.com>
2725
2726 * resolv/nss_dns/dns-host.c (gaih_getanswer_slice): Also log and
2727 ignore T_DNAME messages.
2728 * resolv/arpa/nameser_compat.h (T_DNAME): Define.
2729
eef8a803
JJ
27302008-06-05 Jakub Jelinek <jakub@redhat.com>
2731
2732 * misc/regexp.h (compile): Use __REPB_PREFIX macro.
2733 Avoid segfault if first GETC returns eof/'\0'/'\n'.
2734
ee78670e
JJ
27352008-06-03 Jakub Jelinek <jakub@redhat.com>
2736
2737 * nscd/nscd_getserv_r.c (__nscd_getservbyport_r): Pass cp
2738 instead of portstr to nscd_getserv_r. Patch by
2739 Roman Kagan <rkagan@mail.ru>.
2740
62605cbf
UD
27412008-05-26 Jim Meyering <meyering@redhat.com>
2742
10966640 2743 Remove more useless "if" tests before "free".
62605cbf
UD
2744 * include/inline-hashtab.h (htab_delete): Likewise.
2745 * libio/freopen.c (freopen): Likewise.
2746 * libio/freopen64.c (freopen64): Likewise.
2747 * locale/programs/ld-collate.c (collate_read): Likewise.
2748 * misc/fstab.c (libc_freeres_fn): Likewise.
2749 * posix/glob.c (globfree): Likewise.
2750
f63abf58
UD
27512008-05-24 Ulrich Drepper <drepper@redhat.com>
2752
2753 * string/Makefile (strop-tests): Add memmem.
2754 * string/test-memmem.c: New file.
2755 * string/test-string.h (BUF1PAGES): Define to 1 if undefined.
2756 (test_init): Size buf1 according to BUF1PAGES.
2757
ad8a5511
JJ
27582008-05-24 Jakub Jelinek <jakub@redhat.com>
2759
2760 * libio/stdio.h (vscanf): Fix -std=c99 redirect.
2761 * stdio-common/Makefile (tests): Add scanf16 and scanf17.
2762 (CFLAGS-scanf17.c): New.
2763 * stdio-common/scanf14.c (main): Add fscanf and scanf tests.
2764 * stdio-common/scanf15.c (main): Likewise.
f63abf58
UD
2765 * stdio-common/scanf16.c: New file.
2766 * stdio-common/scanf17.c: New file.
ad8a5511 2767
e2003883
UD
27682008-05-24 Ulrich Drepper <drepper@redhat.com>
2769
2770 * resolv/res_send.c (send_dg): If we already have one of two
b5ba2c79 2771 answers and the server reports SERVFAIL, NOTIMP, or REFUSED, then
e2003883
UD
2772 use the one answer insted of failing.
2773
acbb9873
UD
27742008-02-20 Ryan S. Arnold <rsa@us.ibm.com>
2775
2776 * math/libm-test.inc (exp_test): Exclude expl(1000.0L) from
2777 being executed on PowerPC as the expected result exceeds IBM
2778 long double 128 __LDBL_MAX__.
2779
e85f1d6a
RM
27802008-05-21 Roland McGrath <roland@redhat.com>
2781
2782 * shlib-versions (sparc.*-.*-.*, sparc64.*-.*-.*): Add ABI lines.
2783
2784 * Makefile (check-data): Use $(abi-name) before other guesses.
2785 Look in $(add-ons) dirs before scripts/data/.
2786 * elf/Makefile (check-data): Likewise.
2787
2788 * scripts/soversions.awk: Grok ABI line.
2789 * Makeconfig ($(common-objpfx)soversions.mk): Likewise.
2790 Emit definition for abi-name variable.
2791
d8e763c6
UD
27922008-05-21 Ulrich Drepper <drepper@redhat.com>
2793
e92799fc 2794 * string/endian.h: Define new fixed-size hto* and *toh macros only
e85f1d6a 2795 if [__USE_BSD].
e92799fc 2796
d8e763c6
UD
2797 * iconvdata/Depend: Add localedata.
2798
009ef333
RM
27992008-05-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
2800
2801 * bits/termios.h (ONLCR): Define under [__USE_XOPEN] too.
2802
86746abb
JJ
28032008-05-08 David S. Miller <davem@davemloft.net>
2804
2805 * sysdeps/unix/sysv/linux/sparc/sparc32/setcontext.S: Use
2806 HIDDEN_JUMPTARGET.
2807 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
2808 (__SYSCALL_CLOBBERS): Remove %g* registers.
2809 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
2810 (__SYSCALL_CLOBBERS): Likewise.
2811 * scripts/data/localplt-sparc-linux-gnu.data: New file.
f63abf58 2812 * scripts/data/localplt-sparc64-linux-gnu.data: New file.
86746abb 2813
5e6f34c2
JJ
28142008-05-21 Jakub Jelinek <jakub@redhat.com>
2815
2816 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
2817 (CALL_ERRNO_LOCATION): Define.
2818 (__SYSCALL_STRING, __CLONE_SYSCALL_STRING): Use it.
2819 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
2820 (CALL_ERRNO_LOCATION): Define.
2821 (__SYSCALL_STRING, __CLONE_SYSCALL_STRING): Use it.
2822 * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S (__brk): Use
2823 HIDDEN_JUMPTARGET for __errno_location call in libc.so.
2824
4beb4532
UD
28252008-05-20 Ulrich Drepper <drepper@redhat.com>
2826
2827 * include/inline-hashtab.h (higher_prime_number): Fix type of mid
2828 variable.
2829
ed8f38ba
JJ
28302008-05-20 Jakub Jelinek <jakub@redhat.com>
2831
2832 * sysdeps/unix/sysv/linux/sparc/sparc32/sigcontextinfo.h
2833 (FIRST_FRAME_POINTER): Define.
2834
28352008-05-09 David S. Miller <davem@davemloft.net>
2836
2837 * sysdeps/sparc/sparc64/backtrace.c: New file.
2838
c1b8190a
JJ
28392008-05-14 David S. Miller <davem@davemloft.net>
2840
2841 * sysdeps/sparc/machine-gmon.h: New file.
2842 * sysdeps/sparc/sparc-mcount.S: Likewise.
2843 * sysdeps/sparc/Makefile: Add sparc-mcount target to
2844 sysdep_routines in gmon directory.
2845
84aacd93
JJ
28462008-05-19 Jakub Jelinek <jakub@redhat.com>
2847
2848 * elf/soinit.c (__EH_FRAME_BEGIN__): Remove.
2849
5908f779
UD
28502008-05-19 Ulrich Drepper <drepper@redhat.com>
2851
2852 * resolv/res_query.c (__libc_res_nquery): In case one of two
2853 answer was too short don't try to read that answer's header.
2854
2855 * resolv/res_send.c (send_dg): In case of timeout and there are
2856 two queries and one has been answered, return value indicating
2857 success.
2858
528741cb
UD
28592008-05-18 Ulrich Drepper <drepper@redhat.com>
2860
2861 * nscd/cache.c (cache_add): Take additional parameter specifying
2862 whether this is in response of a cache refill. Check alignment
2863 of package data. Revamp waking of pruning thread.
2864 (prune_cache): Small optimization.
2865 * nscd/nscd.h: Adjust cache_add prototypes.
2866 * nscd/aicache.c: Adjust cache_add calls.
2867 * nscd/grpcache.c: Likewise.
2868 * nscd/hstcache.c: Likewise.
2869 * nscd/initgrcache.c: Likewise.
2870 * nscd/pwdcache.c: Likewise.
2871 * nscd/servicescache.c: Likewise.
2872 * nscd/connections.c (restart): Really disable cache use before
2873 exec attempt. If it fails, reenable cache.
2874 (nscd_run_prune): Initialize wakeup_time. After wakeup, set wakeup
2875 time to max to be able to notice concurrent cache additions. Unlock
2876 prune_lock while performing gc. Afterwards compute wakeup time with
2877 current wakeup_time value in mind.
2878
343996c4
UD
28792008-05-17 Ulrich Drepper <drepper@redhat.com>
2880
5811d72b
UD
2881 * nscd/mem.c (gc): Avoid stack overflow when allocating move list.
2882
fa526148
UD
2883 * nscd/mem.c (gc): Correctly determine highest used array element
2884 in mark.
2885
77d40f10
UD
2886 * nscd/mem.c (markrange): Add assert to check entries are all
2887 aligned. Small cleanup in bitmap use.
2888
8884028c
UD
2889 * nscd/nscd.h (mem_in_flight): Replace blockaddr field with
2890 blockoff of type nscd_ssize_t.
2891 * nscd/mem.c (gc): Simplify markrange call for on-flight blocks.
2892 (mempoll_alloc): Record block offset and not address.
2893
b2159575
UD
2894 * nscd/mem.c (gc): Fix test for stack overuse.
2895
5c9629d2
UD
2896 * nscd/aicache.c (addhstaiX): Fix a few small problems, cleanups,
2897 more asserts.
2898
66d90496
UD
2899 * sysdeps/posix/getaddrinfo.c (gaih_inet): If nscd reports no
2900 entry is available, believe it.
2901
343996c4
UD
2902 * resolv/nss_dns/dns-host.c (gaih_getanswer_slice): If there are
2903 no answers return NSS_STATUS_NOTFOUND.
2904 (gaih_getanswer): Don't call gaih_getanswer_slice if the answer
2905 buffer does not have any content.
2906
91c8a74b
UD
29072008-05-16 Ulrich Drepper <drepper@redhat.com>
2908
74e13385
UD
2909 * string/strcasestr.c (CMP_FUNC): Use __strncasecmp, not strncasecmp.
2910
91c8a74b
UD
2911 * sysdeps/posix/getaddrinfo.c (gaih_inet): After gethostbyname4_r
2912 lookup, don't assign canon unconditionally.
2913
0caca71a
UD
29142008-05-14 Ulrich Drepper <drepper@redhat.com>
2915
2916 * string/Makefile (distribute): Add str-two-way.h.
2917
29182008-03-29 Eric Blake <ebb9@byu.net>
2919
2920 Rewrite string searches to O(n) rather than O(n^2).
2921 * string/str-two-way.h: New file. For linear fixed-allocation
2922 string searching.
2923 * string/memmem.c: New implementation.
2924 * string/strstr.c: New implementation.
2925 * string/strcasestr.c: New implementation.
2926
b194db79
UD
29272008-04-11 Paolo Bonzini <bonzini@gnu.org>
2928
2929 * posix/regcomp.c (optimize_utf8): Add a note on why we test
2930 opr.ctx_type.
2931 (calc_first): Initialize constraint field.
2932 (duplicate_node_closure): Use it instead of special casing ANCHORS.
2933 Use search_duplicated_node to avoid loops. Fix grammar.
2934 (duplicate_node): Merge constraint field for all node types.
2935 (calc_eclosure_iter): Look at constraint field for all node types.
2936 * posix/regex_internal.c (create_cd_newstate): Don't look at
2937 create_cd_newstate.
2938
c8d49f05
UD
29392008-05-14 Ulrich Drepper <drepper@redhat.com>
2940
215a8745
UD
2941 [BZ #6428]
2942 * configure.in: Don't use $CFLAGS when assembling, use $ASFLAGS.
2943
2f9a1be8
UD
2944 [BZ #6442]
2945 * string/endian.h: Add macros for fixed-size endian conversion.
2946 * bits/byteswap.h: Allow inclusion from <endian.h>.
2947 * sysdeps/i386/bits/byteswap.h: Likewise.
2948 * sysdeps/ia64/bits/byteswap.h: Likewise.
2949 * sysdeps/s390/bits/byteswap.h: Likewise.
2950 * sysdeps/x86_64/bits/byteswap.h: Likewise.
2951 * string/Makefile (tests): Add tst-endian.
2952 * string/tst-endian.c: New file.
2953
c8d49f05
UD
2954 * iconvdata/run-iconv-test.sh: Use = instead of == in test.
2955 Patch by Reuben Thomas.
2956
a754f018
UD
29572008-05-14 Joseph Myers <joseph@codesourcery.com>
2958
2959 * iconvdata/Makefile (bug-iconv6-ENV, tst-iconv7-ENV): Define.
2960
372bfcac
UD
29612008-05-14 Ulrich Drepper <drepper@redhat.com>
2962
a754f018
UD
2963 * iconvdata/bug-iconv6.c (do_test): Use de_DE.UTF-8 locale.
2964
5deca9bb
UD
2965 [BZ #6461]
2966 * iconv/gconv_simple.c (BODY for __gconv_transform_ascii_internal):
2967 Add missing braces.
2968 (BODY for __gconv_transform_internal_ascii): Likewise.
2969
af77c9b7 2970 [BZ #6472]
5fab5544
UD
2971 * sysdeps/posix/getaddrinfo.c (get_scope): Loopback addresses have
2972 to be treated like link-local addresses.
5846c4e2
UD
2973 (match_prefix): Don't treat IPv4 loopback address special when
2974 converting to v4 mapped addressed.
5fab5544 2975
0caca71a 2976 * sysdeps/posix/getaddrinfo.c (getaddrinfo): Call _res_hconf_init
1f039824 2977 if necessary.
b194db79
UD
2978 * posix/tst-rfc3484.c: Add dummy definition of _res_hconf_init.
2979 * posix/tst-rfc3484-2.c: Likewise.
2980 * posix/tst-rfc3484-3.c: Likewise.
1f039824 2981
18a74157
UD
2982 * sysdeps/posix/getaddrinfo.c: Implement handling of DCCP, UDPlite,
2983 and SCTP.
372bfcac
UD
2984
2985 * nss/getent.c (ahosts_keys_int): Handle all known socket types.
2986
2987 * inet/netinet/in.h (IPPIPPROTO_DCCP, IPPROTO_UDPLITE): Define.
2988
2989 * sysdeps/unix/sysv/linux/bits/socket.h (SOCK_DCCP): Define.
2990
f05ac8f5
UD
29912008-05-13 Ulrich Drepper <drepper@redhat.com>
2992
2993 * po/lt.po: New file. From Lituanian translation team.
2994
c9ff0187
UD
29952008-01-30 Alexandre Oliva <aoliva@redhat.com>
2996
2997 Introduce TLS descriptors for i386 and x86_64.
2998 * include/inline-hashtab.h: New file, copied from 2005's
2999 libiberty, with fix for memory leak imported afterwards by
3000 Glauber de Oliveira Costa.
3001 * elf/tlsdeschtab.h: New file.
3002 * elf/dl-reloc.c (_dl_try_allocate_static_tls): Extract from...
3003 (_dl_allocate_static_tls): ... here. Rearrange failure path.
3004 (CHECK_STATIC_TLS): Move to...
3005 * elf/dynamic-link.h: ... this file.
3006 (TRY_STATIC_TLS): New macro.
3007 * elf/dl-conflict.c (CHECK_STATIC_TLS, TRY_STATIC_TLS): Override.
3008 * elf/elf.h (R_386_TLS_GOTDESC, R_386_TLS_DESC_CALL,
3009 R_386_TLS_DESC): Define.
3010 (R_X86_64_PC64, R_X86_GOTOFF64, R_X86_64_GOTPC32): Merge from
3011 binutils.
3012 (R_X86_64_GOTPC32_TLSDESC, R_X86_64_TLSDESC_CALL,
3013 R_X86_64_TLSDESC): Define.
3014 (R_386_NUM, R_X86_64_NUM): Adjust.
3015 * sysdeps/i386/Makefile (sysdep-dl-routines, sysdep_routines,
f05ac8f5 3016 sysdep-rtld-routines): Add tlsdesc and dl-tlsdesc for elf subdir.
c9ff0187
UD
3017 (gen-as-const-headers): Add tlsdesc.sym to csu subdir.
3018 * sysdeps/i386/dl-lookupcfg.h: New file. Introduce _dl_unmap to
3019 release tlsdesc_table.
3020 * sysdeps/i386/dl-machine.h: Include dl-tlsdesc.h.
3021 (elf_machine_type_class): Mark R_386_TLS_DESC as PLT class.
3022 (elf_machine_rel): Handle R_386_TLS_DESC.
3023 (elf_machine_rela): Likewise.
3024 (elf_machine_lazy_rel): Likewise.
3025 (elf_machine_lazy_rela): Likewise.
3026 * sysdeps/i386/dl-tls.h (struct dl_tls_index): Name it.
3027 * sysdeps/i386/dl-tlsdesc.S: New file.
3028 * sysdeps/i386/dl-tlsdesc.h: New file.
3029 * sysdeps/i386/tlsdesc.c: New file.
3030 * sysdeps/i386/tlsdesc.sym: New file.
3031 * sysdeps/i386/bits/linkmap.h (struct link_map_machine): Add
3032 tlsdesc_table.
3033 * sysdeps/x86_64/Makefile (sysdep-dl-routines, sysdep_routines,
f05ac8f5 3034 sysdep-rtld-routines): Add tlsdesc and dl-tlsdesc for elf subdir.
c9ff0187
UD
3035 (gen-as-const-headers): Add tlsdesc.sym to csu subdir.
3036 * sysdeps/x86_64/dl-lookupcfg.h: New file. Introduce _dl_unmap to
3037 release tlsdesc_table.
3038 * sysdeps/x86_64/dl-machine.h: Include dl-tlsdesc.h.
3039 (elf_machine_runtime_setup): Set up lazy TLSDESC GOT entry.
3040 (elf_machine_type_class): Mark R_X86_64_TLSDESC as PLT class.
3041 (elf_machine_rel): Handle R_X86_64_TLSDESC.
3042 (elf_machine_rela): Likewise.
3043 (elf_machine_lazy_rel): Likewise.
3044 * sysdeps/x86_64/dl-tls.h (struct dl_tls_index): Name it.
3045 (__tls_get_addr): Do not declare for non-shared compiles.
3046 * sysdeps/x86_64/dl-tlsdesc.S: New file.
3047 * sysdeps/x86_64/dl-tlsdesc.h: New file.
3048 * sysdeps/x86_64/tlsdesc.c: New file.
3049 * sysdeps/x86_64/tlsdesc.sym: New file.
3050 * sysdeps/x86_64/bits/linkmap.h (struct link_map_machine): Add
3051 tlsdesc_table for both 32- and 64-bit structs.
3052
a3636e8b
UD
30532008-05-11 Ulrich Drepper <drepper@redhat.com>
3054
3055 * elf/dl-tls.c (__tls_get_addr): Optimize by moving slow path in
3056 its own function. This reduces the frame setup costs and more.
3057
a7eb802f
UD
30582008-02-11 Joseph Myers <joseph@codesourcery.com>
3059
3060 [BZ #3406]
3061 * sysdeps/ieee754/flt-32/w_expf.c (o_threshold): Correct value.
3062 * math/libm-test.inc (exp_test): Test 88.72269439697265625.
3063
3490f01d
UD
30642008-05-11 Ulrich Drepper <drepper@redhat.com>
3065
3d7eeebe
UD
3066 * io/openat.c (__openat_2): Also pass fd to __openat.
3067 * io/openat64.c (__openat64_2): Also pass fd to __openat64.
3068 Patch by Kristian Van Der Vliet <vanders@liqwyd.com>.
3069
3490f01d
UD
3070 * string/tester.c (test_memcmp): Add a few more tests.
3071 Patch by Mats Erik Andersson <ynglingatal@comhem.se>.
3072
7e71e55f
UD
30732008-05-10 Ulrich Drepper <drepper@redhat.com>
3074
3075 * nscd/cache.c (cache_add): Before returning with failure and this
3076 is the first use of the record, mark it as unusable.
3077 * nscd/aicache.c: Don't touch the dataset after cache_add returns
3078 reporting a failure.
3079 * nscd/grpcache.c: Likewise
3080 * nscd/hstcache.c: Likewise.
3081 * nscd/initgrcache.c: Likewise.
3082 * nscd/pwdcache.c: Likewise.
343996c4 3083 * nscd/servicescache.c: Likewise.
7e71e55f 3084
7396d0a9
RM
30852008-05-10 Roland McGrath <roland@redhat.com>
3086
3087 [BZ #6505]
3088 * sysdeps/unix/sysv/linux/sys/user.h: Replace with #error stub.
3089
c5ee217f
UD
30902008-05-08 David S. Miller <davem@davemloft.net>
3091
b29899ae
UD
3092 * misc/truncate64.c (truncate64): Use __truncate not truncate.
3093
c5ee217f
UD
3094 * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee751_j0l): Use __finitel.
3095 (__ieee754_y0l): Likewise.
3096 * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): Likewise.
3097 (__ieee754_y1l): Likewise.
3098 * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Use __ldexpl.
3099 * sysdeps/ieee754/ldbl-128/s_log1pl.c: Kill bogus prototypes for
3100 frexpl and ldexpl. math_private.h provides them and the latter
3101 is not even used.
3102 (__log1pl): Use __frexpl.
3103
1eb946b9
UD
31042008-05-10 Ulrich Drepper <drepper@redhat.com>
3105
3106 * include/resolv.h: Adjust __libc_res_nquery and __libc_res_nsend
3107 prototypes.
3108 * include/arpa/nameser_compat.h: Define T_UNSPEC.
3109 * nis/Versions (libnss_nis): Export _nss_nis_gethostbyname4_r.
3110 (libnss_nisplus): Export _nss_nisplus_gethostbyname4_r.
3111 * nis/nss_nis/nis-hosts.c (LINE_PARSER): Change to also handle
3112 af==AF_UNSPEC.
3113 (_nss_nis_gethostbyname4_r): New function.
3114 * nis/nss_nisplus/nisplus-hosts.c (_nss_nisplus_parse_hostent):
3115 Change to also handle af==AF_UNSPEC.
3116 (get_tablename): New function. Use it to avoid duplication.
3117 (_nss_nisplus_gethostbyname4_r): New function.
3118 * nscd/aicache.c (addhstaiX): Use gethostbyname4_r function is
3119 available.
3120 * nss/Versions (libnss_files): Export _nss_files_gethostbyname4_r.
3121 * nss/nss.h: Define struct gaih_addrtuple.
3122 * nss/nss_files/files-hosts.c (LINE_PARSER): Change to also handle
3123 af==AF_UNSPEC.
3124 (_nss_files_gethostbyname4_r): New function.
3125 * resolv/Versions (libnss_dns): Export _nss_dns_gethostbyname4_r.
3126 * resolv/gethnmaddr.c: Adjust __libc_res_nsearch and __libc_res_nquery
3127 calls.
3128 * resolv/res_query.c (__libc_res_nquery): Take two additional
3129 parameters for second answer buffer. Handle type=T_UNSPEC to mean
3130 look up IPv4 and IPv6.
3131 Change all callers.
3132 * resolv/res_send.c (__libc_res_nsend): Take five aditional parameters
3133 for an additional query and answer buffer. Pass to send_vc and
3134 send_dg.
3135 (send_vc): Send possibly two requests and receive two answers.
3136 (send_dg): Likewise.
3137 * resolv/nss_dns/dns-host.c: Adjust calls to __libc_res_nsearch and
3138 __libc_res_nquery.
3139 (_nss_dns_gethostbyname4_r): New function.
3140 (gaih_getanswer_slice): Likewise.
3141 (gaih_getanswer): Likewise.
3142 * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Adjust
3143 __libc_res_nquery call.
3144 * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyaddr_r): Likewise.
3145 (_nss_dns_getnetbyname_r): Adjust __libc_res_nsearch call.
3146 * sysdeps/posix/getaddrinfo.c: Use gethostbyname4_r function is
3147 available.
3148
b7fb703a
JJ
31492008-05-05 David S. Miller <davem@davemloft.net>
3150
3151 * sysdeps/sparc/sparc32/Makefile: Use -mcpu=v7 for initfini.s build.
3152 * sysdeps/sparc/sparc64/Makefile: Use -mcpu=v9 for initfini.s build.
3153
2256e43d
RM
31542007-09-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
3155
3156 Fix termios bit macros.
3157 Move *DLY definitions where they belong, in termios.h.
3158 Add *[0-3] definitions.
3159 Fixes confusion between VT and FF.
8bb52dbf
RM
3160 * sysdeps/mach/hurd/bits/ioctls.h (NL0, NL1, TAB0, TAB1, TAB2, CR0,
3161 CR1, CR2, CR3, FF0, FF1, BS0, BS1): Undefine these at start if they
3162 are already defined to avoid collision with termios.h.
2256e43d
RM
3163 (NLDLY, TABDLY, TAB3, CRDLY, VTDLY, BSDLY): Remove macros.
3164 * bits/termios.h [__USE_MISC || __USE_XOPEN] (NL0, NL1, TAB0,
3165 TAB1, TAB2, CR0, CR1, CR2, CR3, FF0, FF1, BS0, BS1): Likewise.
3166 [__USE_BSD || __USE_XOPEN] (OCRNL, ONOCR, ONLRET): New macros.
3167 [__USE_MISC || __USE_XOPEN] (NLDLY, NL0, NL1, TABDLY, TAB0, TAB1, TAB2,
3168 TAB3, CRDLY, CR0, CR1, CR2, CR3, FFDLY, FF0, FF1, BSDLY, BS0, BS1,
3169 VTDLY, VT0, VT1): New macros.
3170 [__USE_GNU] (OLCUC): Change value of macro.
3171 [__USE_XOPEN] (OFILL): New macro.
3172 [__USE_BSD] (CRTSCTS): Change value.
3173 (CRTS_IFLOW, CCTS_OFLOW): Change into compatibility macros.
3174 [__USE_BSD] (CDTRCTS, CHWFLOW): New macros.
3175 (B7200, B14400, B28800, B76800): New macros.
3176
4ce349e5
JJ
31772008-05-01 David S. Miller <davem@davemloft.net>
3178
a86a7a39
JJ
3179 * sysdeps/unix/sysv/linux/sparc/sparc32/ucontext_i.sym: New file.
3180 * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile [$(subdir) = stdlib]:
3181 (gen-as-const-headers): Add it.
3182 * sysdeps/unix/sysv/linux/sparc/sparc32/getcontext.S: New file.
3183 * sysdeps/unix/sysv/linux/sparc/sparc32/makecontext.c: Likewise.
3184 * sysdeps/unix/sysv/linux/sparc/sparc32/setcontext.S: Likewise.
3185 * sysdeps/unix/sysv/linux/sparc/sparc32/swapcontext.S: Likewise.
2256e43d 3186
4ce349e5
JJ
3187 * sysdeps/unix/sysv/linux/sparc/sparc32/syscall.S: Add support for
3188 six system call parameters.
3189 * sysdeps/unix/sysv/linux/sparc/sparc64/syscall.S: Likewise.
3190
89a8963d
UD
31912008-04-30 Ulrich Drepper <drepper@redhat.com>
3192
3193 * sysdeps/unix/sysv/linux/bits/resource.h: Define RUSAGE_THREAD and
3194 RUSAGE_LWP.
3195 * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Likewise.
3196 * sysdeps/unix/sysv/linux/alpha/bits/resource.h: Likewise.
3197
b5ec5fce
JJ
31982008-04-30 Jakub Jelinek <jakub@redhat.com>
3199
3200 * stdlib/tst-setcontext.c: Include unistd.h.
3201
d4e92d9e
JJ
32022008-04-25 David S. Miller <davem@davemloft.net>
3203
3204 * sysdeps/unix/sysv/linux/sparc/sparc64/semctl.c (semctl):
3205 Pass "union semun" properly in to sys_ipc, it must be passed
3206 by value, not by reference.
3207
7eb5e6c9
UD
32082008-04-22 Jakub Jelinek <jakub@redhat.com>
3209
3210 * nscd/Makefile (nscd-cflags): Set back to -fpie.
3211 * nscd/nscd.h (mem_in_flight): Add attribute_tls_model_ie.
3212 * nscd/connections.c (mem_in_flight): Likewise.
3213
3214 * nscd/nscd.h (dbs): Make hidden.
3215
3216 * sysdeps/unix/sysv/linux/times.c (__times): Fix check for EFAULT.
3217 Avoid returning -1, return 0 instead.
3218
0073dd2d
UD
32192008-04-19 Ulrich Drepper <drepper@redhat.com>
3220
3221 * resolv/res_mkquery.c (__res_nopt): Use NS_PUT16 instead of ns_put16.
3222
c52137d3
UD
32232008-04-15 Ulrich Drepper <drepper@redhat.com>
3224
3225 [BZ #5209]
3226 * sysdeps/unix/sysv/linux/times.c: New file.
3227
3228 [BZ #5381]
3229 * nscd/nscd.h: Define enum in_flight, mem_in_flight, and
3230 mem_in_flight_list variables. Add new parameter to mempool_alloc
3231 prototype.
3232 * nscd/mem.c (mempool_alloc): Take additional parameter. Initialize
3233 appropriate mem_in_flight element.
3234 (gc): Take allocations which have not yet been committed to the
3235 database into account.
3236 * nscd/cache.c (cache_add): Add new parameter to mempool_alloc call.
3237 Reset mem_in_flight before returning.
3238 * nscd/connections.c (nscd_run_worker): Initialize mem_in_flight and
3239 cue it up in mem_in_flight_list.
3240 * nscd/aicache.c: Adjust mempool_alloc call.
3241 * nscd/grpcache.c: Likewise.
3242 * nscd/hstcache.c: Likewise.
3243 * nscd/initgrcache.c: Likewise.
3244 * nscd/pwdcache.c: Likewise.
3245 * nscd/servicescache.c: Likewise.
3246 * nscd/Makefile (nscd-flags): Until ld is fixed, use -fpic instead
3247 of -fpie.
3248
3249 * nscd/connections.c (handle_request): Provide better error message
3250 in case SELinux forbids the service.
3251
3252 * version.h (VERSION): Bump to 2.8.90.
3253
39546e34
JJ
32542008-04-17 Jakub Jelinek <jakub@redhat.com>
3255
3256 * sysdeps/unix/sysv/linux/dl-osinfo.h: Include fcntl.h.
3257
cf3a8c7f
UD
32582008-04-11 Ulrich Drepper <drepper@redhat.com>
3259
9e113ecd
UD
3260 * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h (__signbitl):
3261 Also use for 32-bit.
3b6d574e
UD
3262 * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c (__nearbyintl): Use
3263 __nextafter instead of nextafter to avoid local PLT.
c3a0ead4
UD
3264 * sysdeps/powerpc/fpu/e_sqrt.c: Avoid call to fetestexcept.
3265 * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
3266
3781ec29
UD
3267 * scripts/data/localplt-powerpc64-linux-gnu.data: New file.
3268
246ec411
UD
3269 * sysdeps/powerpc/fpu/fenv_libc.h: Add libm_hidden_proto for
3270 __fe_nomask_env.
3cc56f92
UD
3271 * sysdeps/powerpc/fpu/fe_nomask.c: Add libm_hidden_def. Include
3272 <fenv_libc.h> instead of <fenv.h>.
246ec411
UD
3273 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c: Likewise.
3274 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c: Likewise.
3275
3276 * sysdeps/powerpc/bits/fenv.h: Make safe for C++.
3277
3278 * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h: New file.
3279 * sysdeps/powerpc/fpu/fegetexcept.c (__fegetexcept): Rename
3280 function from fegetexcept and make old name weak alias.
3281 * include/fenv.h: Declare __fegetexcept.
3282 * sysdeps/powerpc/fpu/fedisblxcpt.c: Use __fegetexcept instead of
3283 fegetexcept.
3284 * sysdeps/powerpc/fpu/feenablxcpt.c: Likewise.
3285 * sysdeps/powerpc/fpu/fraiseexcpt.c (__feraiseexcept): Avoid call
3286 to fetestexcept.
3287 * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (__log1pl): Use __frexpl
3288 instead of frexpl to avoid local PLT.
3289 * math/s_significandl.c (__significandl): Use __ilogbl instead of
3290 ilogbl to avoid local PLT.
3291 * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (__expm1l): Use __ldexpl
3292 instead of ldexpl to avoid local PLT.
3293 * sysdeps/ieee754/ldbl-128ibm/e_expl.c (__ieee754_expl): Use
3294 __roundl not roundl to avoid local PLT.
3295 * sysdeps/ieee754/ldbl-128/e_j0l.c: Use function names which avoid
3296 local PLTs. Use __sincosl instead of separate sinl and cosl
3297 calls.
3298 * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
3299
2dc4a2fd
UD
3300 * sysdeps/unix/sysv/linux/configure.in: Bump minimal kernel
3301 version for ppc64 to 2.4.21 since without it makecontext will fail.
3302
fe3350ee
UD
3303 * elf/tls-macros.h [__powerpc64__] (__TLS_GET_ADDR): Define according
3304 to the ABI in use.
3305 [__powerpc64__] (TLS_LD): Use __TLS_GET_ADDR instead of
3306 .__tls_get_addr.
3307 [__powerpc64__] (TLS_GD): Likewise.
cf3a8c7f 3308
c1e6b459
UD
33092007-11-20 Ryan S. Arnold <rsa@us.ibm.com>
3310
7763d4f1 3311 [BZ #4997]
c1e6b459
UD
3312 * sysdeps/powerpc/powerpc32/fpu/s_lround.S (__lround): Fixed erroneous
3313 result when x is +/-nextafter(+/-0.5,-/+1) i.e. all 1's in the
3314 mantissa.
3315 * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S (__llround):
3316 Likewise. Also account for when x is an odd number between 2^52
3317 and 2^53-1.
3318 * sysdeps/powerpc/powerpc64/fpu/s_llround.S (__llround): Likewise.
3319 * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S (__llroundf): Likewise.
3320 * math/libm-test.inc (lround_test, llround_test): Added test cases to
3321 detect aforementioned erroneous conditions.
3322
22dca1ea
UD
33232008-04-11 Jakub Jelinek <jakub@redhat.com>
3324
3325 * configure.in: Check for -fno-section-anchors in addition to
3326 -fno-toplevel-reorder.
3327
5d59f4a5
UD
33282008-04-11 Ulrich Drepper <drepper@redhat.com>
3329
3330 * include/features.h (__GLIBC_MINOR__): Bump to 8.
3331
3332 * sysdeps/powerpc/powerpc32/fpu/s_lroundf.S: Remove duplicate comment.
3333 * sysdeps/powerpc/powerpc32/power5+/fpu/s_llroundf.S: Likewise.
3334 * sysdeps/powerpc/powerpc32/power6/fpu/s_llroundf.S: Likewise.
3335 * sysdeps/powerpc/powerpc64/fpu/s_lrint.S: Likewise.
3336 * sysdeps/powerpc/powerpc64/fpu/s_lround.S: Likewise.
3337 * sysdeps/powerpc/powerpc64/fpu/s_lroundf.S: Likewise.
3338
91e32540
UD
33392008-04-11 Jakub Jelinek <jakub@redhat.com>
3340
3341 [BZ #5443]
3342 * time/era.c: Transform __libc_setlocale_lock into rwlock.
3343 * time/alt_digit.c: Likewise.
3344 * wcsmbs/wcsmbsload.c: Likewise.
3345
fd490ac8
UD
33462008-04-10 Ulrich Drepper <drepper@redhat.com>
3347
1db5b6f4
UD
3348 * version.h (VERSION): Bump to 2.8.
3349
fd490ac8
UD
3350 * timzeone/asia: Update from tzdata2008b.
3351 * timezone/backward: Likewise.
3352 * timezone/europe: Likewise.
3353 * timezone/northamerica: Likewise.
3354 * timezone/southamerica: Likewise.
3355 * timezone/iso3166.tab: Likewise.
3356 * timezone/leapseconds: Likewise.
3357 * timezone/zone.tab: Likewise.
3358 * timezone/private.h: Update from tzcode2008a.
3359 * timezone/zdump.c: Likewise.
3360 * timezone/zic.c: Likewise.
3361
153cf972
UD
33622008-01-24 Steven Munroe <sjmunroe@us.ibm.com>
3363
3364 [BZ #5741]
3365 * sysdeps/powerpc/powerpc64/dl-machine.h (PPC_DCBT, PPC_DCBF):
3366 Define additonal Data Cache Block instruction macros.
3367 (elf_machine_fixup_plt): Add dcbt for opd and plt entries.
3368 Replace dcbst with dcbf and sync with sync/isync.
3369
d2207f32
UD
33702008-02-21 Alan Modra <amodra@bigpond.net.au>
3371
3372 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_type_class):
3373 Always set ELF_RTYPE_CLASS_PLT.
3374 (elf_machine_lookup_noexec_p, elf_machine_lookup_noplt_p): Delete.
3375
13d83320
UD
33762008-04-03 Steven Munroe <sjmunroe@us.ibm.com>
3377
3378 * sysdeps/powerpc/powerpc32/power4/hp-timing.c: New file.
3379 * sysdeps/powerpc/powerpc32/power4/hp-timing.h: New file.
3380 * sysdeps/powerpc/powerpc64/hp-timing.h [_ARCH_PWR4] (HP_TIMING_NOW):
3381 For ISA 2.01 and later replace mftb with mfspr 268.
3382
5f7aead5
UD
33832008-02-19 Steven Munroe <sjmunroe@us.ibm.com>
3384
3385 [BZ #5768]
3386 * sysdeps/powerpc/fpu/Makefile (libm-tests): Add test-powerpc-snan.
3387 * sysdeps/powerpc/fpu/test-powerpc-snan.c: New file.
3388
33892008-02-18 Steven Munroe <sjmunroe@us.ibm.com>
3390
3391 [BZ #5768]
3392 * sysdeps/powerpc/powerpc32/fpu/s_isnan.S: New file.
3393 * sysdeps/powerpc/powerpc32/fpu/s_isnan.c: Removed.
3394 * sysdeps/powerpc/powerpc64/fpu/s_isnan.S: New file.
3395 * sysdeps/powerpc/powerpc64/fpu/s_isnan.c: Removed.
3396
117df5d9
JJ
33972008-04-10 Jakub Jelinek <jakub@redhat.com>
3398
3399 * stdlib/tst-makecontext.c (othervar): New variable.
3400 (cf): Test sign extending the argument to long.
3401
3b32d8a2
UD
34022008-03-03 Steven Munroe <sjmunroe@us.ibm.com>
3403
3404 * sysdeps/powerpc/powerpc32/power5/fpu/s_isnan.S: New file.
3405 * sysdeps/powerpc/powerpc32/power5/fpu/s_isnanf.S: New file.
3406 * sysdeps/powerpc/powerpc32/power6/fpu/s_isnan.S: New file.
3407 * sysdeps/powerpc/powerpc32/power6/fpu/s_isnanf.S: New file.
3408 * sysdeps/powerpc/powerpc64/power5/fpu/s_isnan.S: New file.
3409 * sysdeps/powerpc/powerpc64/power6/fpu/s_isnan.S: New file.
3410 * sysdeps/powerpc/powerpc64/power6x/fpu/s_isnan.S: New file.
3411
9fb11d4c
UD
34122008-02-22 Alan Modra <amodra@bigpond.net.au>
3413
3414 * elf/Makefile (tests): Substitute tests-vis-yes here.
3415 (tests-vis-yes): Delete.
3416 (modules-name, modules-vis-yes): Similarly.
3417
facd1d8e
UD
34182008-02-12 Pete Eberlein <eberlein@us.ibm.com>
3419
3420 [BZ #4407]
3421 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
3422 Preserve sign in signgamp when x is zero.
3423
aece054b
UD
34242007-10-26 Steven Munroe <sjmunroe@us.ibm.com>
3425
3426 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.S: New File.
3427 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.c: Removed.
3428 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.S: New File.
3429 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.c: Removed.
3430 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt.S: New File.
3431 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf.S: New File.
3432
6c30d38f
UD
34332008-04-09 Ulrich Drepper <drepper@redhat.com>
3434
21208604 3435 [BZ #4314]
13d83320
UD
3436 * sysdeps/i386/i686/memcpy.S: Optimize copying of equally aligned
3437 buffers.
21208604 3438
2f611ada 3439 [BZ #5209]
d1235fdf
UD
3440 * sysdeps/unix/sysv/syscalls.list: The times syscall doesn't have
3441 a reserved error value.
2f611ada 3442
6c30d38f
UD
3443 * stdlib/tst-makecontext.c: Change parameter to cf to negative
3444 value to check for correct sign extension.
3445
3446 [BZ #5436]
3447 * sysdeps/unix/sysv/linux/x86_64/makecontext.c (__makecontext):
3448 Copy 64-bit parameter values even though this is not required in
3449 the standard.
3450
3451 * sysdeps/unix/sysv/linux/x86_64/vfork.S (__vfork): Record return
3452 PC save.
3453
de1bbf68
UD
34542008-02-14 Daniel Jacobowitz <dan@codesourcery.com>
3455
3456 * sysdeps/unix/sysv/linux/i386/vfork.S (__vfork): Record return
3457 PC save.
3458
9aef35a5
UD
34592008-04-09 Jakub Jelinek <jakub@redhat.com>
3460
3461 * nss_files/files-XXX.c (_nss_files_getXXent_r): Restore saved errno.
3462
a7925a24
UD
34632008-04-09 Ulrich Drepper <drepper@redhat.com>
3464
3465 [BZ #5998]
3466 * libio/iofwrite.c (_IO_fwrite): Return correct count if flushing
3467 in line-buffered stream failed.
3468 * libio/iofwrite_u.c (fwrite_unlocked): Likewise.
3469
7b61ef24
UD
34702008-04-08 Ulrich Drepper <drepper@redhat.com>
3471
c2a684a4
UD
3472 [BZ #6024]
3473 * scripts/abi-versions.awk: If the version specified by
3474 --enable-oldest-abi is older than the first version for this
3475 architecture, use the default version.
3476
7b61ef24
UD
3477 * locale/programs/ld-collate.c (collate_read): Ignore script lines
3478 as well when ignoring the whole category.
3479
f6d749f0
UD
34802008-04-07 Ulrich Drepper <drepper@redhat.com>
3481
3482 [BZ #6042]
3483 * sysdeps/unix/sysv/linux/net/ethernet.h: Add a few more
3484 ETHERTYPE_* definitions.
3485 Patch partly by Aurelien Jarno <aurelien@aurel32.net>.
3486
1e99aede
JJ
34872008-04-07 Jakub Jelinek <jakub@redhat.com>
3488
3489 * stdlib/mbtowc.c (__no_r_state): Remove.
3490 (mbtowc): New static state variable. Use it instead of
3491 __no_r_state.
3492 * stdlib/wctomb.c (__no_r_state): Remove extern decl.
3493 (__wctomb_state): New hidden variable.
3494 (wctomb): Use __wctomb_state instead of __no_r_state.
3495 * debug/wctomb_chk.c (__no_r_state): Remove extern decl.
3496 (__wctomb_state): New extern decl.
3497 (__wctomb_chk): Use __wctomb_state instead of __no_r_state.
3498
fcf90e0a
UD
34992008-04-07 Ulrich Drepper <drepper@redhat.com>
3500
3501 [BZ #5475]
3502 * resolv/res_init.c: Handle scope IDs in resolv.conf.
3503
ae39e102
JJ
35042008-04-07 Jakub Jelinek <jakub@redhat.com>
3505
3506 * malloc/mtrace.pl: Use $@ instead of $* to keep perl 5.10 quiet.
3507
2503dd30
UD
35082008-04-06 Ulrich Drepper <drepper@redhat.com>
3509
3510 * po/nl.po: Update from translation team.
3511
3eb9c809
UD
35122008-03-31 Ulrich Drepper <drepper@redhat.com>
3513
3514 [BZ #6007]
3515 * string/strfry.c: Handle empty strings again.
3516
9a69db29
UD
35172008-03-30 Ulrich Drepper <drepper@redhat.com>
3518
3519 [BZ #5443]
3520 * intl/dcigettext.c (__dcigettext): Get reader lock for locale data
3521 before looking for translation.
3522 * locale/duplocale.c: Transform __libc_setlocale_lock into rwlock.
3523 * locale/freelocale.c: Likewise.
3524 * locale/newlocale.c: Likewise.
3525 * locale/setlocale.c: Likewise.
3526 Based partially on a patch by ryo@np.css.fujitsu.com.
3527
2ecc7d93
UD
35282008-03-30 Jakub Jelinek <jakub@redhat.com>
3529
3530 * intl/dcigettext.c (_nl_find_msg): Reread nconversions after
3531 acquiring wrlock. Do conv_tab allocation while holding lock.
3532 * intl/Makefile: Add rules to build and run tst-gettext6.
3533 * intl/tst-gettext6.c: New test.
3534 * intl/tst-gettext6.sh: New file.
3535
221e5230
UD
35362008-03-30 Ulrich Drepper <drepper@redhat.com>
3537
faa091c6
UD
3538 * po/nl.po: Update from translation team.
3539
221e5230
UD
3540 * sysdeps/unix/opendir.c (__alloc_dir): If allocation fails for size
3541 provided through st_blksize, try the default size before giving up.
3542
1c272665
UD
35432008-03-29 Ulrich Drepper <drepper@redhat.com>
3544
43f6bec1
UD
3545 * stdio-common/vfprintf.c (vfprintf): Correct overflow test.
3546
e8a32126
UD
3547 [BZ #5939]
3548 * sysdeps/posix/tempname.c (__gen_tempname): Correct flag selection.
3549
1e489af9
UD
3550 * posix/getopt.c (_getopt_internal_r): Remove old POSIX-demanded
3551 error message. POSIX today does not require the messages to be in
3552 a specific form. Suggested by Jim Meyering <jim@meyering.net>.
3553
1d20f7f8
UD
3554 [BZ #5979]
3555 * sunrpc/auth_unix.c: Unify printed strings.
3556 * sunrpc/clnt_tcp.c: Likewise.
3557 * sunrpc/clnt_udp.c: Likewise.
3558 * sunrpc/clnt_unix.c: Likewise.
3559 * sunrpc/svc_tcp.c: Likewise.
3560 * sunrpc/svc_udp.c: Likewise.
3561 * sunrpc/svc_unix.c: Likewise.
3562 * sunrpc/xdr.c: Likewise.
3563 * sunrpc/xdr_array.c: Likewise.
3564 * sunrpc/xdr_rec.c: Likewise.
3565 * sunrpc/xdr_ref.c: Likewise.
3566 * locale/programs/ld-time.c (time_finish): Unify messages.
3567 * locale/programs/locfile.c (handle_copy): Fix typo.
3568 * nscd/nscd.c (options): Fix typo.
3569
1c272665
UD
3570 [BZ #5995]
3571 * stdlib/strtod_l.c: Use correct sign for result in one more
3572 underflow case.
3573 Patch by Eric Blake <ebb9@byu.net>.
3574
48cc060e
UD
35752008-03-27 Jakub Jelinek <jakub@redhat.com>
3576
3577 * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Add open
3578 and creat system calls.
3579 * sysdeps/unix/sysv/linux/alpha/syscalls.list: Remove open system
3580 call.
3581 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Remove open and creat
3582 system calls.
3583 * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: Likewise.
3584 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
3585 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
3586
f96853be
UD
35872008-03-27 Ulrich Drepper <drepper@redhat.com>
3588
3589 * sysdeps/unix/sysv/linux/bits/local_lim.h: Undefined ARG_MAX if
3590 <linux/limits.h> has defined it.
3591 * sysdeps/unix/sysv/linux/sys/param.h: Define NCARGS to the legacy
3592 ARG_MAX value and prevent ARG_MAX from being defined by the kernel
3593 headers.
3594 * sysdeps/unix/sysv/linux/sysconf.c: Define legacy_ARG_MAX and use
3595 it instead of ARG_MAX.
3596
fde15fdc
UD
35972008-03-25 Jakub Jelinek <jakub@redhat.com>
3598
3599 * posix/gai.conf: Fix comment for scope nullbits.
3600 * sysdeps/posix/getaddrinfo.c (gaiconf_init): If /bits is not present,
3601 default to 128 bits for v4 mapped addresses.
3602
87b9b50f
UD
36032008-03-07 Martin Schwidefsky <schwidefsky@de.ibm.com>
3604
3605 * sysdeps/s390/fpu/fegetenv.c (fegetenv): Remove PTRACE_PEEKUSER
3606 ptrace call to get the ieee_instruction_pointer from the kernel.
3607 * sysdeps/s390/fpu/fesetenv.c (fesetenv): Remove PTRACE_POKEUSER
3608 ptrace call to set the ieee_instructtion_pointer.
3609 * sysdeps/unix/sysv/linux/s390/sys/user.h (struct _user_regs_struct):
3610 Add comment that ieee_instruction_pointer is always 0.
3611
af0498dc
UD
36122008-03-09 Andreas Jaeger <aj@suse.de>
3613
3614 [BZ #5857]
3615 * sysdeps/ieee754/dbl-64/s_rint.c (__rint): Handle j0==18.
3616 * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Likewise.
3617 Patch by Mark Elliott <mark.h.elliott@lmco.com>.
3618
3619 * math/libm-test.inc (nearbyint_test): Add new test cases from #5857.
3620 (rint_test): Likewise.
3621
0ab7632d
UD
36222008-03-24 Ulrich Drepper <drepper@redhat.com>
3623
0facd3df
UD
3624 * nis/nis_call.c (nis_server_cache_search): Save errno around stat
3625 call.
3626 (__nisfind_server): Similar for open readColdStartFile call.
3627 Patch partially by Jim Meyering.
3628 * nss/nss_files/files-XXX.c (_nss_files_getXXent_r): Save errno
3629 around internal_setent call.
3630
7e570c55
UD
3631 * po/vi.po: New Vietnamese translation.
3632
e093c247
UD
3633 * sysdeps/unix/sysv/linux/adjtime.c: Correctly use
3634 ADJ_OFFSET_SS_READ.
3635
0ab7632d
UD
3636 * sysdeps/unix/sysv/linux/bits/sched.h: Add new CLONE_* flags,
3637 remove CLONE_STOPPED.
3638
0726cdf7
UD
36392008-02-10 Jim Meyering <meyering@redhat.com>
3640
3641 Remove useless "if" before "free":
3642 * elf/ldconfig.c (parse_conf_include): Likewise.
3643 * gmon/gmon.c (weak_alias): Likewise.
3644 * iconv/gconv_conf.c (__gconv_get_path): Likewise.
3645 * inet/rcmd.c (__validuser2_sa): Likewise.
3646 * intl/bindtextdom.c (set_binding_values): Likewise.
3647 * intl/loadmsgcat.c (_nl_load_domain, _nl_unload_domain): Likewise.
3648 * libio/genops.c (save_for_backup): Likewise.
3649 * libio/wgenops.c (save_for_wbackup): Likewise.
3650 * locale/programs/ld-collate.c (collate_read): Likewise.
3651 * locale/programs/linereader.c (get_string): Likewise.
3652 * nis/nss_compat/compat-pwd.c (give_pwd_free): Likewise.
3653 * nis/nss_compat/compat-spwd.c (give_spwd_free): Likewise.
3654 * resolv/res_debug.c (do_section): Likewise.
3655 * sunrpc/xdr_sizeof.c (x_inline, xdr_sizeof): Likewise.
3656 * sysdeps/mach/hurd/if_index.c (libc_hidden_def): Likewise.
3657 * sysdeps/posix/sprofil.c (__sprofil): Likewise.
3658 * time/lc-time-cleanup.c (_nl_cleanup_time): Likewise.
3659 * time/tzset.c (tzset_internal): Likewise.
3660
354b7527
JJ
36612008-03-18 Jakub Jelinek <jakub@redhat.com>
3662
3663 * sysdeps/unix/sysv/linux/dl-sysdep.h: Use __ASSEMBLER__ instead
3664 of ASSEMBLER.
3665
ca668b29
UD
36662008-03-11 Ulrich Drepper <drepper@redhat.com>
3667
3668 [BZ #5903]
3669 * iconv/iconv_charmap.c (charmap_conversion): Pass name of output file
3670 not stream for output file. Open output file here.
3671 * iconv/iconv_prog.c (process_lock): Take pointer to output stream
3672 and output file name.
3673 (process_fd): Likewise.
3674 (process_file): Likewise.
3675 (main): Adjust callers of changed functions.
3676 * iconv/iconv_prog.h: Adjust prototype.
3677
f3dc3415
AJ
36782008-03-09 Andreas Jaeger <aj@suse.de>
3679
3680 [BZ #5753]
3681 * sysdeps/ia64/ieee754.h: Use protected namespace
3682 __BIG_ENDIAN/__LITTLE_ENDIAN.
3683 * sysdeps/ieee754/ieee754.h: Likewise.
3684 Patch by Aurelien Jarno <aurelien@aurel32.net>.
3685
a8fd84d4
RM
36862008-03-08 Roland McGrath <roland@frob.com>
3687
2b965f1b
RM
3688 * hurd/hurdsig.c (_hurd_internal_post_signal): When normal rules would
3689 ignore a signal that came from a machine exception, treat it as a
3690 fatal core-dump signal instead.
3691 Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>.
3692
a8fd84d4
RM
3693 * sysdeps/mach/hurd/i386/trampoline.c (_hurd_setup_sighandler):
3694 Clear DF bit in thread state's eflags.
3695 Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>.
3696
368a8dec
UD
36972008-03-08 Ulrich Drepper <drepper@redhat.com>
3698
b3278554
UD
3699 [BZ #5774]
3700 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Consume closing brace
c6c00e0d 3701 of NAN(...) sequence.
b3278554
UD
3702 * stdlib/Makefile (tests): Add tst-strtod6.
3703 * stdlib/tst-strtod6.c: New file.
3704
3705 * inet/inet6_opt.c (inet6_opt_init): Check extlen for overflow.
3706
2127a186
UD
3707 [BZ #5762]
3708 * posix/getopt.c (_getopt_internal_r): Clarify error message by
3709 putting offending option character in quotes. Clean up error
3710 messages.
3711 * po/be.po: Adjust msgstr in translation file.
3712 * po/bg.po: Likewise.
3713 * po/ca.po: Likewise.
3714 * po/cs.po: Likewise.
3715 * po/da.po: Likewise.
3716 * po/de.po: Likewise.
3717 * po/es.po: Likewise.
3718 * po/fr.po: Likewise.
3719 * po/hr.po: Likewise.
3720 * po/ko.po: Likewise.
3721 * po/nl.po: Likewise.
3722 * po/rw.po: Likewise.
3723 * po/sk.po: Likewise.
3724 * po/sv.po: Likewise.
3725 * po/tr.po: Likewise.
3726 * po/zh_CN.po: Likewise.
3727 * po/zh_TW.po: Likewise.
3728
725c0c87
UD
3729 [BZ #5760]
3730 * inet/inet6_opt.c (inet6_opt_init): Fix ip6h_len computation.
3731 Patch by Roland Bless <roland@bless.de>.
3732
368a8dec
UD
3733 * sysdeps/unix/sysv/linux/dl-sysdep.c: Avoid unnecessary code for
3734 .o file.
3735 * elf/Makefile (routines): Add dl-sysdep.
3736 (elide-routines.os): Likewise.
3737
78c2bf0e
UD
37382008-03-07 Ulrich Drepper <drepper@redhat.com>
3739
7c22c7ec
UD
3740 [BZ #5786]
3741 * elf/dl-sysdep.c: Undefine ROUND after use.
3742 * sysdeps/generic/ldsodefs.h [HAVE_DL_DISCOVER_OSVERSION]
3743 (struct rtld_global_ro): Add _dl_tls_get_addr_soft element.
3744 * elf/rtld.c (rtld_global_ro): Initialize _dl_discover_osversion.
3745 * sysdeps/unix/sysv/linux/dl-osinfo.h: Move _dl_discover_osversion
3746 to ...
3747 * sysdeps/unix/sysv/linux/dl-sysdep.c: ...here.
3748 * sysdeps/unix/sysv/linux/dl-sysdep.h: Declare _dl_discover_osversion
3749 if necessary.
3750 * sysdeps/unix/sysv/linux/sysconf.c: Handle _SC_ARG_MAX here.
3751
93025f93
UD
3752 * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Add
3753 _dl_tls_get_addr_soft element.
3754 * elf/rtld.c (rtld_global_ro): Initialize _dl_tls_get_addr_soft.
3755 * elf/Versions (ld): Don't export _dl_tls_get_addr_soft.
3756 * dlfcn/dlinfo.c (dlinfo_doit): Access dl_tls_get_addr_soft through
3757 GLRO.
3758 * elf/dl-iteratephdr.c (__dl_iterate_phdr): Likewise.
3759 * elf/dl-tls.c (_dl_tls_get_addr_soft): Use attribute_hidden instead
3760 of internal_function.
3761
72f10127
UD
3762 * stdlib/Makefile (aux): Add tens_in_limb.
3763 * stdlib/strtod_l.c: Move _tens_in_limb definition to...
3764 * stdlib/tens_in_limb.c: ...here. New file.
3765
443db178
UD
3766 [BZ #5778]
3767 * sysdeps/unix/sysv/linux/pathconf.h: Declare
3768 __statfs_chown_restricted.
3769 * sysdeps/unix/sysv/linux/fpathconf.c: Call __statfs_chown_restricted
3770 for _PC_CHOWN_RESTRICTED.
3771 * sysdeps/unix/sysv/linux/pathconf.c: Likewise.
3772 Implement __statfs_chown_restricted.
3773 * sysdeps/unix/sysv/linux/bits/posix_opt.h: Change
3774 _POSIX_CHOWN_RESTRICTED value to zero.
c71665ad
UD
3775 * io/tst-fchownat.c: Correctly handle _POSIX_CHOWN_RESTRICTED
3776 defined to zero.
443db178 3777
78c2bf0e
UD
3778 * sysdeps/x86_64/rtld-memset.c: New file.
3779
443db178 37802008-02-26 Harsha Jagasia <harsha.jagasia@amd.com>
78c2bf0e
UD
3781
3782 * sysdeps/x86_64/cacheinfo.c (NOT_USED_RIGHT_NOW): Remove ifdef guards.
3783
3784 * sysdeps/x86_64/memset.S: Rewrite non-SSE code path as tuned for AMD
3785 Barcelona machine. Make default fall through branch of
3786 __x86_64_preferred_memory_instruction check as the integer code path.
3787
37882007-10-15 H.J. Lu <hongjiu.lu@intel.com>
3789
3790 * sysdeps/x86_64/cacheinfo.c
3791 (__x86_64_preferred_memory_instruction): New variable.
3792 (init_cacheinfo): Initialize __x86_64_preferred_memory_instruction.
3793
3794 * sysdeps/x86_64/memset.S: Rewrite.
3795
dff37515
UD
37962008-03-04 Jakub Jelinek <jakub@redhat.com>
3797
3798 * include/stdio.h (__asprintf_chk, __dprintf_chk,
3799 __obstack_printf_chk): New prototypes.
3800 (__vasprintf_chk, __vdprintf_chk,
3801 __obstack_vprintf_chk): Likewise.
3802 Add libc_hidden_proto.
3803 * libio/obprintf.c
3804 (_IO_obstack_jumps): No longer static, add attribute_hidden.
3805 * libio/bits/stdio-ldbl.h (__asprintf_chk, __dprintf_chk,
3806 __obstack_printf_chk, __vasprintf_chk, __vdprintf_chk,
3807 __obstack_vprintf_chk): Add __LDBL_REDIR_DECL.
3808 * libio/bits/stdio2.h (__asprintf_chk, __dprintf_chk,
3809 __obstack_printf_chk, __vasprintf_chk, __vdprintf_chk,
3810 __obstack_vprintf_chk): New prototypes.
3811 (asprintf, __asprintf, dprintf, obstack_printf, vasprintf, vdprintf,
3812 obstack_vprintf): New inlines.
3813 * debug/dprintf_chk.c: New file.
3814 * debug/vdprintf_chk.c: New file.
3815 * debug/asprintf_chk.c: New file.
3816 * debug/vasprintf_chk.c: New file.
3817 * debug/obprintf_chk.c: New file.
3818 * debug/tst-chk1.c (do_test): Add asprintf and obstack_printf tests.
3819 * debug/Versions (__asprintf_chk, __dprintf_chk, __obstack_printf_chk,
3820 __vasprintf_chk, __vdprintf_chk, __obstack_vprintf_chk): Export
3821 @@GLIBC_2.8.
3822 * debug/Makefile: Build asprintf_chk, vasprintf_chk, dprintf_chk,
3823 vdprintf_chk and obprintf_chk, set CFLAGS for them.
3824 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c (__nldbl___vasprintf_chk,
3825 __nldbl___vdprintf_chk, __nldbl___obstack_vprintf_chk): Add
3826 libc_hidden_proto.
3827 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl___vasprintf_chk,
3828 __nldbl___vdprintf_chk, __nldbl___obstack_vprintf_chk): New prototypes.
3829 * sysdeps/ieee754/ldbl-opt/Versions (__nldbl___asprintf_chk,
3830 __nldbl___vasprintf_chk, __nldbl___dprintf_chk, __nldbl___vdprintf_chk,
3831 __nldbl___obstack_printf_chk, __nldbl___obstack_vprintf_chk): Export
3832 @@GLIBC_2.8.
3833 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add asprintf_chk,
3834 vasprintf_chk, dprintf_chk, vdprintf_chk, obstack_printf_chk and
3835 obstack_vprintf_chk.
3836 * sysdeps/ieee754/ldbl-opt/nldbl-obstack_vprintf_chk.c: New file.
3837 * sysdeps/ieee754/ldbl-opt/nldbl-dprintf_chk.c: New file.
3838 * sysdeps/ieee754/ldbl-opt/nldbl-obstack_printf_chk.c: New file.
3839 * sysdeps/ieee754/ldbl-opt/nldbl-asprintf_chk.c: New file.
3840 * sysdeps/ieee754/ldbl-opt/nldbl-vdprintf_chk.c: New file.
3841 * sysdeps/ieee754/ldbl-opt/nldbl-vasprintf_chk.c: New file.
3842
d835f136
UD
38432008-03-04 Ulrich Drepper <drepper@redhat.com>
3844
a4bb445a
UD
3845 [BZ #5779]
3846 * misc/sys/queue.h: Add STAILQ_CONCAT and TAILQ_CONCAT definitions.
3847 Patch by Roy Marples <roy@marples.name>.
3848
c958a6a4
UD
3849 [BZ #5736]
3850 * malloc/malloc.c: Fix typo in comment.
3851
d835f136
UD
3852 [BZ #5627]
3853 * locale/iso-639.def: Add Shuswap.
3854
65b4743a
UD
38552008-02-25 Jakub Jelinek <jakub@redhat.com>
3856
3857 [BZ #5790]
3858 * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr2_r): Don't
3859 overwrite *h_errnop/*errnop values from getanswer_r in case of
3860 failure.
3861
3868fb6e
UD
38622008-03-03 Ulrich Drepper <drepper@redhat.com>
3863
27c377dd
UD
3864 [BZ #5818]
3865 * nscd/connections.c (dbs): Add initializers for .suggested_module.
3866 (verify_persistent_db): Remove one unnecessary test and add a new one
3867 for bad configuration.
3868 (nscd_init): Improve error reported when persistent database cannot
3869 be reused.
3870 * nscd/nscd.h (DEFAULT_SUGGESTED_MODULE): Define.
3871 * nscd/nscd_conf.c (nscd_parse_file): Provide default values for
3872 .suggested_module and .max_db_size and case config file says the
3873 values are zero.
3874 * nscd/nscd_helper.c (get_mapping): Fail if hash table module is zero.
3875
0f749099
UD
3876 [BZ #5854]
3877 * nis/ypclnt.c (yp_order): Fix handling of return value of
3878 do_ypcall_tr call.
3879 Patch by Jeff Moyer <jmoyer@redhat.com>.
3880
3868fb6e
UD
3881 * po/fr.po: Update from translation team.
3882
268dbf25
AJ
38832008-02-22 Andreas Jaeger <aj@suse.de>,
3884 Carlos O'Donell <carlos@systemhalted.org>
3885
3886 [BZ #5012]
3887 * FAQ.in: Describe why glibc needs to be compiled with
3888 optimization.
3889
73b82641
RM
38902008-02-19 Roland McGrath <roland@redhat.com>
3891
3892 * elf/elf.h (SHT_GNU_ATTRIBUTES): New macro.
3893
c9136393
UD
38942008-02-15 Ulrich Drepper <drepper@redhat.com>
3895
3896 [BZ #5737]
3897 * resolv/netdb.h: Make NI_MAXHOST and NI_MAXSERV available when
3898 __USE_MISC is defined.
3899
2e3e9ff1
UD
39002008-02-10 Ulrich Drepper <drepper@redhat.com>
3901
3902 * sysdeps/unix/sysv/linux/sys/timerfd.h: New file.
3903 * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers): Add
3904 sys/timerfd.h.
3905 * sysdeps/unix/sysv/linux/syscalls.list: Add timerfd_create,
3906 timerfd_gettime, timerfd_settime.
3907 * sysdeps/unix/sysv/linux/Versions: Add timerfd_create,
3908 timerfd_gettime, timerfd_settime for GLIBC_2.8.
3909
85202a2b
RM
39102008-02-08 Roland McGrath <roland@redhat.com>
3911
3912 * elf/elf.h (NT_PPC_SPE): New macro.
3913
708ef8a4
RM
39142008-02-06 Roland McGrath <roland@redhat.com>
3915
3916 * Makerules ($(common-objpfx)sysd-rules):
3917 Depend on $(sysdep-makeconfigs).
3918
363a641b
RM
39192008-01-31 Roland McGrath <roland@redhat.com>
3920
67fbfa5c
RM
3921 [BZ #5442]
3922 * configure.in: Use -print-file-name if it yields a directory,
3923 for each of include and include-fixed.
3924 * configure: Regenerated.
3925
363a641b
RM
3926 * Makeconfig (sysd-rules-targets): New variable.
3927 * sysdeps/unix/make-syscalls.sh: Use it in the rules emitted.
3928 * sysdeps/unix/Makefile (omit-deps): Append variants for each target.
3929
0f0f9610
RM
39302008-01-30 Roland McGrath <roland@redhat.com>
3931
7bd00dbf
RM
3932 * manual/libc.texinfo: Update back-cover text.
3933
0f0f9610
RM
3934 * elf/elf.h (NT_386_TLS): New macro.
3935
16cd816f
RM
39362008-01-29 Roland McGrath <roland@redhat.com>
3937
3938 * Makeconfig (sysd-rules-patterns): New variable.
3939 * Makerules ($(common-objpfx)sysd-rules): Drive the loop from that.
3940 (check-inhibit-asm): New canned sequence, replaces ...
3941 (open-check-inhibit-asm, close-check-inhibit-asm): ... these, removed.
3942 * elf/rtld-Rules ($(objpfx)rtld-%.os): Use $(rtld-CPPFLAGS) in commands.
3943 (rtld-CPPFLAGS): Renamed from CPPFLAGS-rtld.
3944 (CFLAGS-rtld): Variable removed.
3945
f641ffcc
RM
39462008-01-24 Roland McGrath <roland@redhat.com>
3947
3948 * configure.in: Let configure fragments set base_os.
3949 * configure: Regenerated.
3950
b7e26885
UD
39512008-01-22 Ulrich Drepper <drepper@redhat.com>
3952
3953 * po/ko.po: Update from translation team.
3954
b4b166af
UD
39552008-01-12 H.J. Lu <hongjiu.lu@intel.com>
3956
3957 * sysdeps/i386/fpu/ftestexcept.c (fetestexcept): Use short for fnstsw.
3958
f66def9d
AJ
39592008-01-12 Andreas Jaeger <aj@suse.de>
3960
3961 [BZ #5040]
3962 * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h (enum EPOLL_EVENTS):
3963 Add EPOLLRDHUP.
3964
d3bc5e77
RM
39652008-01-20 Samuel Thibault <samuel.thibault@ens-lyon.org>
3966
3967 * hurd/hurdsock.c (_hurd_socket_server): Return the standard
3968 error EAFNOSUPPORT rather than non-standard EPFNOSUPPORT.
3969 * sunrpc/bindrsvprt.c (bindresvport): Likewise.
3970
4c533566
UD
39712007-10-23 Alexandre Oliva <aoliva@redhat.com>
3972
3973 * include/link.h (FORCED_DYNAMIC_TLS_OFFSET): Define.
3974 * elf/dl-close.c (_dl_close): Check for it.
3975 * elf/dl-reloc.c (CHECK_STATIC_TLS): Likewise.
3976 (_dl_allocate_static_tls): Likewise.
3977 * elf/dl-tls.c (_dl_allocate_tls_init): Likewise.
3978 (__tls_get_addr): Protect from race conditions in setting l_tls_offset
3979 to it.
3980 * elf/tst-tls16.c: New file.
3981 * elf/tst-tlsmod16a.c: New file.
3982 * elf/tst-tlsmod16b.c: New file.
3983 * elf/Makefile: Add rules to build and run tst-tls16.
3984
a53d3f82
UD
39852008-01-16 Ulrich Drepper <drepper@redhat.com>
3986
a0f6c236
UD
3987 [BZ #5628]
3988 * bits/shm.h: Fix comment describing shmid_ds.
3989 * sysdeps/gnu/bits/shm.h: Likewise.
3990 * sysdeps/unix/sysv/linux/alpha/bits/shm.h: Likewise.
3991 * sysdeps/unix/sysv/linux/bits/shm.h: Likewise.
3992 * sysdeps/unix/sysv/linux/ia64/bits/shm.h: Likewise.
3993 * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Likewise.
3994 * sysdeps/unix/sysv/linux/s390/bits/shm.h: Likewise.
3995 * sysdeps/unix/sysv/linux/sh/bits/shm.h: Likewise.
3996 * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Likewise.
3997 * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: Likewise.
3998 Patch by Hareesh Nagarajan <hareesh.nagarajan@gmail.com>.
3999
a53d3f82
UD
4000 [BZ #5607]
4001 * conform/data/fcntl.h-data: Fix posix_fadvise and posix_fallocate
4002 prototypes.
4003 * conform/data/limits.h-data: Adjust limits changed in v6 and add
4004 additional suffixes.
4005 * conform/data/mqueue.h-data: Fix typo in mq_curmsgs entry.
4006 Add optional functions mq_timedreceive and mq_timedsend.
4007 * conform/data/netdb.h-data: Add more AI_* and EAI_* constants.
4008 * conform/data/pthread.h-data: Fix prototype of
4009 pthread_condattr_setclock. pthread_sigmask is not required in v6.
4010 * conform/data/semaphore.h-data: Allow time.h definitions.
4011 * conform/data/signal.h-data: Likewise.
4012 * conform/data/stdio.h-data: getw and putw are not required in v6.
4013 * conform/data/stdlib.h-data: Change setstate prototype.
4014 * conform/data/string.h-data: Fix strerror_r prototype.
4015 * conform/data/time.h-data: Fix typo in TIMER_ABSTIME definition.
4016 * conform/data/unistd.h-data: pthread_atfork not required in v6.
4017 Fix readlink prototype.
4018 * conform/data/netinet/in.h-data: Add const to in6addr_any and
4019 in6addr_loopback.
4020 * inet/netinet/in.h: Cleanup namespace.
4021 * posix/regex.h: Likewise.
4022 * resolv/netdb.h: Likewise.
4023 * sysdeps/unix/sysv/linux/bits/in.h: Likewise.
4024 * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
4025 * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
6107639e
UD
4026 * sysdeps/posix/getaddrinfo.c (default_labels): Adjust for change
4027 of names of in in6_addr.
4028 (default_precedence): Likewise.
4029 * sysdeps/unix/sysv/linux/cmsg_nxthdr.c: Include <stddef.h> for
4030 NULL definition.
a53d3f82 4031
ebca8f73
UD
40322008-01-15 Ulrich Drepper <drepper@redhat.com>
4033
fbe90cd5
UD
4034 * conform/data/fmtmsg.h-data: Add missing allows.
4035 * conform/data/ftw.h-data: Likewise.
4036 * conform/data/inttypes.h-data: Likewise.
4037 * conform/data/math.h-data: Likewise.
4038 * conform/data/signal.h-data: Likewise.
4039 * conform/data/net/if.h-data: Likewise.
4040 * conform/data/netinet/in.h-data: Likewise.
4041 * conform/data/sys/socket.h-data: Likewise.
4042
ebca8f73
UD
4043 [BZ #5614]
4044 * string/bits/string2.h (__strtok_r_1c): Always update *__NEXTP.
4045 (__strtok_r): Simplify.
4046 * string/tester.c (test_strtok_r): Add test case for futile search
4047 with single-character seach string.
4048
7c33ca8b
UD
40492008-01-12 Ulrich Drepper <drepper@redhat.com>
4050
4051 * po/ko.po: Update from translation team.
4052
b8cc0848
AJ
40532008-01-11 Andreas Jaeger <aj@suse.de>
4054
4055 [BZ #5600]
4056 * sysdeps/unix/sysv/linux/sys/signalfd.h (struct
4057 signalfd_siginfo): Use 64-bit type for ssi_ptr to sync with Linux
4058 kernel header.
4059
49029a66
UD
40602008-01-10 Ulrich Drepper <drepper@redhat.com>
4061
4062 * sysdeps/posix/getaddrinfo.c (rfc3484_sort): Store result of
4063 native interface lookup in all the relevant places.
4064
99f05798
UD
40652008-01-10 Jakub Jelinek <jakub@redhat.com>
4066 Ulrich Drepper <drepper@redhat.com>
0efd1956
UD
4067
4068 * sysdeps/posix/getaddrinfo.c (sort_results): Remove service_order
4069 field. Use sockaddr_in6 for source_addr.
4070 (get_scope): Change type of parameter to sockaddr_in6. Adjust.
4071 (match_prefix): Likewise.
4072 (get_label): Likewise.
4073 (get_precedence): Likewise.
4074 (rfc3484_sort): Change to use indirect access to results array.
4075 Adjust to use of sockaddr_in6. Replace service_order test with
4076 simple index comparison.
4077 (getaddrinfo): Define order array. Initialize it. Don't initialize
4078 service_order field. Adjust qsort_t calls. Access sorted result
4079 array indirectly through order array.
4080 * posix/tst-rfc3484.c: Adjust for change of rfc3484_sort.
4081 * posix/tst-rfc3484-2.c: Likewise.
4082 * posix/tst-rfc3484-3.c: Likewise.
4083
b3443701
UD
40842008-01-09 Ulrich Drepper <drepper@redhat.com>
4085
f6bacb8e
UD
4086 [BZ #5541]
4087 * sunrpc/rpc_thread.c (__rpc_thread_destroy): Also free xports and
4088 pollfd structures.
4089 Patch by André Cruz.
4090
aa693c68
UD
4091 [BZ #5545]
4092 * sunrpc/clnt_perr.c (clnt_sperror): Don't use fixed size buffer.
4093 (clnt_spcreateerror): Likewise.
4094
b3443701
UD
4095 [BZ #5553]
4096 * malloc/malloc.c (public_mALLOc): Set ar_ptr when trying main_arena.
4097 (public_mEMALIGn): Likewise.
4098 Patch mostly by Daniel Jacobowitz.
4099
148e12ed
UD
41002008-01-09 Jakub Jelinek <jakub@redhat.com>
4101
4102 * sysdeps/unix/sysv/linux/i386/makecontext.S (__makecontext): Avoid
4103 clobbering memory at or above uc_stack.ss_sp + uc_stack.ss_size.
4104 * stdlib/Makefile: Add rules to build and run tst-makecontext2.
4105 * stdlib/tst-makecontext2.c: New test.
4106
78c2bf0e 41072008-01-08 Jakub Jelinek <jakub@redhat.com>
4b1b449d
UD
4108
4109 * iconv/loop.c (UPDATE_PARAMS): Define to empty statement if not
4110 defined.
4111 (REINIT_PARAMS): Likewise. Undefine before end of file.
4112 (STANDARD_TO_LOOP_ERR_HANDLER): Use UPDATE_PARAMS before calling
4113 transliteration hooks and REINIT_PARAMS afterwards.
4114 * iconvdata/iso-2022-jp.c (BODY): Use a separate variable for
4115 status.
4116 (REINIT_PARAMS): Define.
4117 * iconvdata/ibm1364.c (REINIT_PARAMS): Likewise.
4118 * iconvdata/ibm930.c (REINIT_PARAMS): Likewise.
4119 * iconvdata/ibm933.c (REINIT_PARAMS): Likewise.
4120 * iconvdata/ibm935.c (REINIT_PARAMS): Likewise.
4121 * iconvdata/ibm937.c (REINIT_PARAMS): Likewise.
4122 * iconvdata/ibm939.c (REINIT_PARAMS): Likewise.
4123 * iconvdata/iso-2022-cn.c (REINIT_PARAMS): Likewise.
4124 * iconvdata/iso-2022-cn-ext.c (REINIT_PARAMS): Likewise.
4125 * iconvdata/iso-2022-jp-3.c (REINIT_PARAMS): Likewise.
4126 * iconvdata/iso-2022-kr.c (REINIT_PARAMS): Likewise.
4127 * iconvdata/Makefile: Add rules to build and run tst-iconv7.c.
4128 * iconvdata/tst-iconv7.c: New test.
4129
71edcafa
UD
41302008-01-07 Ulrich Drepper <drepper@redhat.com>
4131
4132 * libio/stdio.h (vscanf): Fix definition for loser compilers.
4133
0fbfe2f7
JJ
41342008-01-05 Jakub Jelinek <jakub@redhat.com>
4135
4136 [BZ #5112]
4137 * nscd/connections.c (restart): Fix condition.
4138
8726a12e
UD
41392008-01-03 Jakub Jelinek <jakub@redhat.com>
4140
4141 * ctype/ctype.h (__ctype_b_loc, __ctype_tolower_loc,
4142 __ctype_toupper_loc): Add __THROW.
4143
f4a1363e
UD
41442008-01-02 Ulrich Drepper <drepper@redhat.com>
4145
ad586879
UD
4146 * sysdeps/unix/sysv/linux/check_pf.c (make_request): Fix
4147 recognition of interface family.
4148
f4a1363e
UD
4149 * posix/getconf.c: Update copyright year.
4150 * nss/getent.c: Likewise.
4151 * iconv/iconvconfig.c: Likewise.
4152 * iconv/iconv_prog.c: Likewise.
4153 * elf/ldconfig.c: Likewise.
4154 * catgets/gencat.c: Likewise.
4155 * csu/version.c: Likewise.
4156 * elf/ldd.bash.in: Likewise.
4157 * elf/sprof.c (print_version): Likewise.
4158 * locale/programs/locale.c: Likewise.
4159 * locale/programs/localedef.c: Likewise.
4160 * nscd/nscd.c (print_version): Likewise.
4161 * debug/xtrace.sh: Likewise.
4162 * malloc/memusage.sh: Likewise.
4163 * malloc/mtrace.pl: Likewise.
4164 * debug/catchsegv.sh: Likewise.
4165
0dc6c5e4
UD
41662007-12-26 Ulrich Drepper <drepper@redhat.com>
4167
4168 * nss/nsswitch.c (__nss_lookup): Actually use alternative name in
4169 second lookup.
4170
80af8b82
UD
41712007-12-23 Ulrich Drepper <drepper@redhat.com>
4172
4173 * sysdeps/x86_64/cacheinfo.c (intel_02_known): New entry 0x3f.
4174 * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
4175
4bcecfb7
RM
41762007-12-17 Roland McGrath <roland@redhat.com>
4177
4178 * inet/ether_line.c (ether_line): Remove unused variable.
4179
41802007-12-17 Samuel Thibault <samuel.thibault@ens-lyon.org>
4181
4182 * login/forkpty.c (forkpty): Add const qualifier to parameters termp
4183 and winp.
4184 * login/openpty.c (openpty): Likewise.
4185 * login/pty.h (openpty, forkpty): Likewise.
4186 * manual/terminal.texi (openpty, forkpty): Likewise.
4187
4cd4c5d6
UD
41882007-12-17 Ulrich Drepper <drepper@redhat.com>
4189
78c2bf0e 4190 * malloc/malloc.c (public_cALLOc): For arenas other than
4cd4c5d6
UD
4191 main_arena, count all bytes inside the mprotect_size range of the
4192 heap as uninitialized.
4193
68631c8e
UD
41942007-12-16 Ulrich Drepper <drepper@redhat.com>
4195
d9961b6a
UD
4196 * elf/tst-execstack.c (do_test): Don't fail if SELinux forbids
4197 executable stacks.
4198
68631c8e
UD
4199 * malloc/malloc.c (public_mTRIm): Iterate over all arenas and call
4200 mTRIm for all of them.
4201 (mTRIm): Additionally iterate over all free blocks and use madvise
4202 to free memory for all those blocks which contain at least one
4203 memory page.
be8c1500
UD
4204 * malloc/tst-trim1.c: New file.
4205 * malloc/Makefile (tests): Add tst-trim1.
68631c8e
UD
4206
4207 * malloc/malloc.c (do_check_malloc_state): Minimal cleanups.
4208
78b767a0
UD
42092007-12-14 Ulrich Drepper <drepper@redhat.com>
4210
4211 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INTERNAL_SYSCALL_ERROR_P):
4212 First cast argument to long
52386be7
UD
4213 * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_gettimeofday):
4214 Return long.
4215 (__vdso_clock_gettime): Likewise.
78b767a0
UD
4216 * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: Functions
4217 return long.
4218
bc3e1c12
UD
42192007-12-13 Ulrich Drepper <drepper@redhat.com>
4220
4221 * locale/nl_langinfo.c (nl_langinfo): Just call __nl_langinfo_l.
4222 * locale/nl_langinfo_l.c: Real implementation, copied from
4223 nl_langinfo.c.
4224 * include/langinfo.h: Add libc_hidden_proto for __nl_langinfo_l.
4225
77751669
UD
42262007-12-01 Jim Meyering <meyering@redhat.com>
4227
4228 * posix/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
4229 that would inhibit utf8-optimization of a regexp containing line-
4230 or buffer-anchors, e.g., `^', `$'.
4231
f63e5063
UD
42322007-12-12 Ulrich Drepper <drepper@redhat.com>
4233
4234 * time/bug-getdate1.c (do_test): Don't use century values which
4235 aren't valid on 32-bit systems.
4236
a78814a9
UD
42372007-12-12 Jakub Jelinek <jakub@redhat.com>
4238
4239 * sysdeps/i386/i486/bits/string.h (memmove): Define as macro.
4240 (memmove): Rename to __memmove_g, with __asm__ ("memmove").
4241 * sysdeps/s390/bits/string.h (__strlen_g, __strcpy_g, __strncpy_g,
4242 __strcat_g, __strncat_g): Add __asm__.
4243
42442007-12-12 Ulrich Drepper <drepper@redhat.com>
4245
4246 [BZ #5477]
4247 * io/fchmodat.c: Fix typo in stub_warning use.
4248 Patch by Petr Salinger.
4249
17edb30c
UD
42502007-12-11 Ulrich Drepper <drepper@redhat.com>
4251
58d11795
UD
4252 * iconvdata/hp-thai8.c: New file.
4253 * iconvdata/Makefile: Add rules for hp-thai8.c.
4254 * iconvdata/tst-tables.sh: Add entry for HP-THAI8.
4255 * iconvdata/gconv-modules: Likewise.
4256
4257 [BZ #5464]
4258 * iconvdata/hp-greek8.c: New file.
4259 * iconvdata/Makefile: Add rules for hp-greek8.c.
4260 * iconvdata/tst-tables.sh: Add entry for HP-GREEK8.
4261 * iconvdata/gconv-modules: Likewise.
4262
4263 [BZ #5463]
4264 * iconvdata/hp-turkish8.c: New file.
4265 * iconvdata/Makefile: Add rules for hp-turkish8.c.
4266 * iconvdata/tst-tables.sh: Add entry for HP-TURKISH8.
4267 * iconvdata/gconv-modules: Likewise.
4268
cbf5760e
UD
4269 * malloc/arena.c (grow_heap): Split out code to shrink heap into...
4270 (shrink_heap): ... this new function.
4271 (heap_trim): Call shrink_heap instead of grow_heap.
4272
17edb30c
UD
4273 * malloc/malloc.c (_int_malloc): sYSMALLOc might fail, in this
4274 case don't call alloc_perturb.
4275
ae18718f
UD
42762007-12-10 Ulrich Drepper <drepper@redhat.com>
4277
4278 * sysdeps/unix/sysv/linux/adjtime.c: Use ADJ_OFFSET_SS_READ if
4279 possible.
4280 * sysdeps/unix/sysv/linux/kernel-features.h
4281 (__ASSUME_ADJ_OFFSET_SS_READ): Define for 2.6.24.
4282 * sysdeps/unix/sysv/linux/sys/timex.h (ADJ_OFFSET_SS_READ): Define.
4283
b4354cf4
UD
42842007-12-08 Ulrich Drepper <drepper@redhat.com>
4285
4286 [BZ #5424]
4287 * stdio-common/vfprintf.c: Do not overflow when adding to done.
4288 * stdio-common/Makefile (tests): Add bug22.
4289 * stdio-common/bug22.c: New file.
4290
4291 [BZ #5451]
4292 * time/getdate.c: Fix filling in default values.
4293 * time/bug-getdate1.c: New file.
4294 * time/Makefile: Add rules to build and run bug-getdate1.
4295
4296 * iconvdata/ebcdic-is-friss.c: Use 8bit-gap instead of 8bit-generic.
4297 * iconvdata/ebcdic-es.c: Likewise.
4298 * iconvdata/ebcdic-es-a.c: Likewise.
4299 * iconvdata/ebcdic-uk.c: Likewise.
4300 * iconvdata/iso8859-16.c: Likewise.
4301 * iconvdata/viscii.c: Likewise.
4302 * iconvdata/iso8859-9e.c: Likewise.
4303 * iconvdata/Makefile: Adjust appropriately.
4304
4305 [BZ #5428]
4306 * wcsmbs/wchar.h: Unconditionally undefine __need_mbstate and
4307 __need_wint_t.
4308
26e21e75
UD
43092007-12-07 Ulrich Drepper <drepper@redhat.com>
4310
87520ccc
UD
4311 [BZ #5427]
4312 * iconvdata/hp-roman9.c: New file.
4313 * iconvdata/Makefile: Add rules for hp-roman9.c.
4314 * iconvdata/tst-tables.sh: Add HP-ROMAN9.
b4354cf4 4315 * iconvdata/gconv-modules: Likewise.
87520ccc
UD
4316
4317 * iconvdata/hp-roman8.c: Use 8bit-gap instead of 8bit-generic.
4318 * iconvdata/Makefile: Adjust appropriately.
4319
26e21e75
UD
4320 [BZ #5441]
4321 * stdio-common/vfscanf.c (_IO_vfwscanf): Don't free ptrs_to_free
4322 structure, it's allocated with alloca.
4323 * stdio-common/Makefile (tests): Add bug21.
4324 * stdio-common/bug21.c: New file.
4325
43262007-12-06 Aurelien Jarno <aurelien@aurel32.net>
4327
4328 [BZ #5452]
4329 * sysdeps/unix/sysv/linux/bits/sched.h: Use __extension__
87520ccc 4330 keyword for gcc's braced-groups.
26e21e75
UD
4331
43322007-12-07 Ulrich Drepper <drepper@redhat.com>
4333
4334 [BZ #5454]
4335 * inet/ether_line.c: Strip hostname of whitespaces.
4336 * inet/Makefile (tests): Add tst-ether_line.
4337 * inet/tst-ether_line.c: New file.
4338
9e80c123
UD
43392007-12-03 Ulrich Drepper <drepper@redhat.com>
4340
da0ff4ae
UD
4341 [BZ #5439]
4342 * sysdeps/unix/sysv/linux/sys/signalfd.h: Fix use of __nonnull.
4343
51bd20d9
UD
4344 [BZ #5435]
4345 * sysdeps/unix/sysv/linux/i386/makecontext.S: Align stack.
4346
d90d0256
UD
4347 * stdlib/tst-setcontext.c: Catch the case where the links gets
4348 messed up and we do not reach main again.
4349
9e80c123
UD
4350 * po/ca.po: Update from translation team.
4351
ae4287f8
UD
43522007-11-26 Ulrich Drepper <drepper@redhat.com>
4353
6701afc7 4354 * posix/unistd.h: Declare fsync also for __USE_XOPEN2K.
79fb2e02 4355 * posix/regex.h (REG_ENOSYS): Likewise.
a912a4f8 4356 * wcsmbs/wchar.h: Define __need_file also for __USE_XOPEN2K.
ae4287f8 4357
30294ea4
UD
43582007-11-25 Ulrich Drepper <drepper@redhat.com>
4359
4360 * nscd/nscd.h (MAX_STACK_USE): Define.
4361 * nscd/mem.c (MAX_STACK_USE): Remove definition here.
4362 (gc): Initialize stack_used based on allocation in prune_cache.
4363 * nscd/cache.c (prune_cache): Use heap for mark array if necessary.
e8667ddc 4364 Clear array before use.
30294ea4
UD
4365
4366 * nscd/aicache.c (addhstaiX): Update statistics counter in case
10a4c1e9 4367 memory allocation failed.
e8667ddc
UD
4368 * nscd/hstcache.c (cache_addhst): Likewise.
4369 * nscd/grpcache.c (cache_addgr): Likewise.
4370 * nscd/servicescache.c (cache_addserv): Likewise.
4371 * nscd/pwdcache.c (cache_addpw): Likewise.
4372 * nscd/initgrcache.c (addinitgroupsX): Likewise.
30294ea4 4373
715db78b
UD
43742007-11-23 Ulrich Drepper <drepper@redhat.com>
4375
609bb071
UD
4376 * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: Add open
4377 and creat system calls.
4378
715db78b
UD
4379 * sysdeps/unix/sysv/linux/check_native.c: Include <asm/types.h>.
4380
ea2c47b6
UD
43812007-11-23 Martin Schwidefsky <schwidefsky@de.ibm.com>
4382
4383 * sysdeps/unix/sysv/linux/Makefile [subdir=inet] (sysdep_headers):
4384 Add netiucv/iucv.h.
4385 * sysdeps/unix/sysv/linux/netiucv/iucv.h: New file.
4386 * sysdeps/unix/sysv/linux/opensock.c (__opensock): Add AF_IUCV
4387 protocol.
4388 * sysdeps/unix/sysv/linux/sa_len.c (__libc_sa_len): Likewise.
4389 * sysdeps/unix/sysv/linux/s390/opensock.c: New file.
4390 * sysdeps/unix/sysv/linux/s390/sa_len.c: New file.
4391
dcdcf4b9
UD
43922007-11-22 Martin Schwidefsky <schwidefsky@de.ibm.com>
4393
37143323
UD
4394 * sysdeps/s390/bits/string.h (strlen, strcpy, strncpy, strcat,
4395 strncat): Define as macros to avoid compile errors.
4396
dcdcf4b9
UD
4397 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Add open and
4398 creat entries.
4399
3a632674
UD
44002007-11-22 Ulrich Drepper <drepper@redhat.com>
4401
7ea8eb02
UD
4402 [BZ #5382]
4403 * nscd/nscd.h (NSCD_THREAD_STACKSIZE): Define.
4404 * nscd/connections.c (start_threads): Use NSCD_THREAD_STACKSIZE.
715db78b 4405 * nscd/mem.c (gc): Don't allocate arrays on the stack if they can
7ea8eb02 4406 overflow it.
70d5b6ef 4407 Partially based on a patch by Petr Baudis <pasky@suse.cz>.
7ea8eb02
UD
4408
4409 * sysdeps/unix/sysv/linux/nscd_setup_thread.c (setup_thread):
715db78b 4410 Return zero in case the thread library is not NPTL.
7ea8eb02 4411
5c3a3dba
UD
4412 [BZ #5375]
4413 * resolv/res_hconf.c (_res_hconf_reorder_addrs): Fix locking when
4414 initializing interface list.
4415
85883123
UD
4416 [BZ #5378]
4417 * nis/nss_compat/compat-initgroups.c (getgrent_next_nss): Don't
4418 use result of nss_getgrgid_r if nothing was found. For other
4419 error return with a failure.
4420 Partially based on a patch by Petr Baudis <pasky@suse.cz>.
4421
3a632674
UD
4422 * locale/programs/ld-collate.c (collate_read): Fix loop to match
4423 macro name.
4424
b73f9135
UD
44252007-11-19 Ulrich Drepper <drepper@redhat.com>
4426
ee72b971
UD
4427 * sysdeps/posix/getaddrinfo.c (defaults_scopes, scopes): New variables.
4428 (get_scope): For IPv4 scope, use scopes table.
4429 (fini): Free scopes table if necessary.
4430 (free_scopelist): New function.
4431 (scopecmp): New function.
4432 (gaiconf_init): Also handle scopev4 entries.
4433 * posix/tst-rfc3484.c (do_test): Initialize scopes.
4434 * posix/tst-rfc3484-2.c (do_test): Likewise.
4435 * posix/gai.conf: Document scopev4 defaults.
4436 * posix/Makefile (tests): Add tst-rfc3484-3.
4437 * posix/tst-rfc3484-3.c: New file.
4438
f4a79765
UD
4439 * sysdeps/posix/getaddrinfo.c (default_labels): Describe entry for
4440 Teredo tunnels.
b73f9135
UD
4441 * posix/gai.conf: Update for current default tables.
4442
429bd64d
UD
44432007-11-19 Ulrich Drepper <drepper@redhat.com>
4444
4445 * po/tr.po: Update from translation team.
4446
3c9af259
RM
44472007-11-18 Roland McGrath <roland@frob.com>
4448
76cf9889
RM
4449 * manual/arith.texi (Remainder Functions): Spelling fix.
4450 From Shaun Silk <genix@mysoul.com.au>.
4451
3c9af259
RM
4452 * sysdeps/mach/hurd/bits/fcntl.h (O_CLOEXEC): Fix value.
4453
238346ab
UD
44542007-11-17 Ulrich Drepper <drepper@redhat.com>
4455
5879ad50
UD
4456 * po/zh_CN.po: Update from translation team.
4457
238346ab
UD
4458 * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers):
4459 Add sys/signalfd.h and sys/eventfd.h.
4460
b80b9c77
UD
44612007-11-15 Bruno Haible <bruno@clisp.org>
4462
4463 [BZ #5346]
4464 * intl/dcigettext.c (struct known_translation_t): Turn msgid into a
4465 union.
4466 (transcmp): Use the appropriate part of s1->msgid and s2->msgid.
4467 (DCIGETTEXT): Change the allocation of the 'search' variable so that
4468 it needs only fixed stack space. Delay the initialization of
4469 msgid_len until it is needed.
4470
2da2501c
AJ
44712007-11-15 Andreas Jaeger <aj@suse.de>
4472
4473 * sysdeps/ieee754/dbl-64/sincos.tbl: Fix size of union.
4474 Reported by Christoph Quirin Lauter <christoph.lauter@ens-lyon.fr>.
4475
68a6dcf5
UD
44762007-11-15 Ulrich Drepper <drepper@redhat.com>
4477
4478 * po/ko.po: Update from translation team.
4479
43850227
UD
44802007-11-14 Ulrich Drepper <drepper@redhat.com>
4481
1e2692c9
UD
4482 * sysdeps/unix/sysv/linux/check_native.c (__check_native): Simplify
4483 significantly. The device type is also part of the ifinfomsg data.
4484
84e6cc7c 4485 * po/sv.po: Update from translation team.
cbd52634 4486 * po/nl.po: Likewise.
84e6cc7c 4487
f9e2261b
UD
4488 * nscd/cache.c (prune_cache): If cache is empty, instruct caller
4489 to wake up in 24 hours.
4490
43850227
UD
4491 * nscd/gai.c (__ioctl): Define. Include check_native.c.
4492
5742e960
UD
44932007-11-13 Ulrich Drepper <drepper@redhat.com>
4494
1a821d82
UD
4495 * po/cs.po: Update from translation team.
4496 * po/pl.po: Likewise.
4497
773e79b3
UD
4498 * include/ifaddrs.h: Remove in6ai_temporary.
4499 (struct in6addrinfo): Add index element.
4500 Declare __check_native.
4501 * inet/Makefile (aux): Add check_native.
4502 * sysdeps/unix/sysv/linux/check_native.c: New file.
4503 * sysdeps/unix/sysv/linux/check_pf.c: No need to recognize
4504 IFA_F_TEMPORARY. Pass back ifa_index.
4505 * sysdeps/posix/getaddrinfo.c: Remove netlink compatibility code.
4506 (rfc3484_sort): Add new parameter. Implement rule 7 correctly:
4507 call __check_native if necessary.
4508 (getaddrinfo): Fill in index field. Use qsort_r instead of qsort
4509 to sort addresses. Pass information about the results.
4510 * posix/tst-rfc3484.c: Adjust for addition of index field and change
4511 of rfc3484_sort interface.
4512 * posix/tst-rfc3484-2.c: Likewise.
4513
e458144c
UD
4514 * stdlib/stdlib.h: Define __compar_d_fn_t. Declare qsort_r.
4515 * include/stdlib.h: Add hidden_proto for qsort_t and adjust protoype
4516 for _quicksort.
4517 * stdlib/msort.c (qsort): Now a wrapper around qsort_r.
4518 (qsort_r): Renamed from qsort. Take additional parameter and pass it
4519 on as third parameter to compare function and _quicksort.
4520 * stdlib/qsort.c (_quicksort): Take additional parameter and pass on
4521 to the compare function.
4522 * stdlib/Versions [libc] (GLIBC_2.8): Add qsort_r.
4523 * Versions.def: Add GLIBC_2.8 for libc.
4524
bd63f380
UD
4525 * posix/tst-rfc3484.c: Adjust for addition of prefixlen field.
4526 * posix/tst-rfc3484-2.c: Likewise.
4527
5742e960
UD
4528 * include/kernel-features.h: Moved to...
4529 * sysdeps/mach/hurd/kernel-features.h: ...here.
4530
a6ac7fdb
RM
45312007-09-13 H.J. Lu <hongjiu.lu@intel.com>
4532
4533 * sysdeps/i386/i586/memcpy_chk.S: New file.
4534 * sysdeps/i386/i586/mempcpy_chk.S: Likewise.
4535 * sysdeps/i386/i586/memset_chk.S: Likewise.
4536
6f3914d5
UD
45372007-11-12 Ulrich Drepper <drepper@redhat.com>
4538
4539 * include/ifaddrs.c (struct in6addrinfo): Add prefixlen field.
4540 * sysdeps/unix/sysv/linux/check_pf.c (make_request): Always return
4541 list of interfaces. Also store prefix length.
4542 * sysdeps/posix/getaddrinfo.c (sort_result): Add prefixlen element.
4543 (rfc3484_sort): In rule 9, for IPv4 addresses count only matching
4544 prefix if source and destination address are in the same subnet.
4545 (getaddrinfo): Always call __check_pf. Fill in prefixlen field.
4546 Always look for matching record in in6ai list.
4547 Correct source_addr_len value for IPv6->IPv4 converted records.
4548
78cf5f6a
RM
45492007-11-11 Roland McGrath <roland@frob.com>
4550
4551 * include/kernel-features.h: New file.
4552
7f745396
UD
45532007-11-10 Ulrich Drepper <drepper@redhat.com>
4554
01e7fdbb
UD
4555 * sysdeps/pthread/aio_misc.c (handle_fildes_io): Avoid unnecessary
4556 complications for 64-bit platforms.
4557
7f745396
UD
4558 * sysdeps/unix/sysv/linux/open64.c: Move __open64_2 implementation to..
4559 * sysdeps/unix/sysv/linux/open64_2.c: ...here. New file.
4560 * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines): Add
4561 open64_2.
4562 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Add open and creat
4563 entries.
4564 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
4565 * sysdeps/wordsize-64/alphasort.c: New file.
4566 * sysdeps/wordsize-64/alphasort64.c: New file.
4567 * sysdeps/wordsize-64/fseeko.c: New file.
4568 * sysdeps/wordsize-64/fseeko64.c: New file.
4569 * sysdeps/wordsize-64/ftello.c: New file.
4570 * sysdeps/wordsize-64/ftello64.c: New file.
4571 * sysdeps/wordsize-64/ftw.c: New file.
4572 * sysdeps/wordsize-64/ftw64.c: New file.
4573 * sysdeps/wordsize-64/iofgetpos.c: New file.
4574 * sysdeps/wordsize-64/iofgetpos64.c: New file.
4575 * sysdeps/wordsize-64/iofopen.c: New file.
4576 * sysdeps/wordsize-64/iofopen64.c: New file.
4577 * sysdeps/wordsize-64/iofsetpos.c: New file.
4578 * sysdeps/wordsize-64/iofsetpos64.c: New file.
4579 * sysdeps/wordsize-64/lockf.c: New file.
4580 * sysdeps/wordsize-64/lockf64.c: New file.
4581 * sysdeps/wordsize-64/mkostemp.c: New file.
4582 * sysdeps/wordsize-64/mkostemp64.c: New file.
4583 * sysdeps/wordsize-64/mkstemp.c: New file.
4584 * sysdeps/wordsize-64/mkstemp64.c: New file.
4585 * sysdeps/wordsize-64/scandir.c: New file.
4586 * sysdeps/wordsize-64/scandir64.c: New file.
4587 * sysdeps/wordsize-64/tmpfile.c: New file.
4588 * sysdeps/wordsize-64/tmpfile64.c: New file.
4589 * sysdeps/wordsize-64/versionsort.c: New file.
4590 * sysdeps/wordsize-64/versionsort64.c: New file.
4591 * sysdeps/unix/sysv/linux/wordsize-64/aio_read.c: New file.
4592 * sysdeps/unix/sysv/linux/wordsize-64/aio_read64.c: New file.
4593 * sysdeps/unix/sysv/linux/wordsize-64/aio_write.c: New file.
4594 * sysdeps/unix/sysv/linux/wordsize-64/aio_write64.c: New file.
4595 * sysdeps/unix/sysv/linux/wordsize-64/creat64.c: New file.
4596 * sysdeps/unix/sysv/linux/wordsize-64/getdirentries.c: New file.
4597 * sysdeps/unix/sysv/linux/wordsize-64/getdirentries64.c: New file.
4598 * sysdeps/unix/sysv/linux/wordsize-64/lio_listio.c: New file.
4599 * sysdeps/unix/sysv/linux/wordsize-64/lio_listio64.c: New file.
4600 * sysdeps/unix/sysv/linux/wordsize-64/open64.c: New file.
4601 * sysdeps/unix/sysv/linux/wordsize-64/openat.c: New file.
4602 * sysdeps/unix/sysv/linux/wordsize-64/openat64.c: New file.
4603
4604 * crypt/sha256-crypt.c: Fix a comment.
4605 * crypt/sha512-crypt.c: Likewise.
4606
f6ed654c
UD
46072007-11-07 H.J. Lu <hongjiu.lu@intel.com>
4608
4609 * sysdeps/x86_64/memset.S: Add sfence after movnti.
4610
f2a8406a
UD
46112007-11-07 Ulrich Drepper <drepper@redhat.com>
4612
4613 [BZ #5277]
4614 * iconv/loop.c (STANDARD_TO_LOOP_ERR_HANDLER): If conversion failed
4615 because output buffer is too small break, don't loop.
4616 * iconvdata/Makefile (tests): Add bug-iconv6.
4617 * iconvdata/bug-iconv6.c: New file.
4618
7fe4e0e8
UD
46192007-11-06 Ulrich Drepper <drepper@redhat.com>
4620
9ca230d6
UD
4621 * stdio-common/vfprintf.c (vfprintf): Compute necessary buffer size
4622 with size_t type.
4623 * stdio-common/printf_fp.c (__print_fp): Change chars_needed type to
4624 size_t. Add casts where needed.
4625
7fe4e0e8
UD
4626 * nscd/selinux.c (nscd_request_avc_has_perm): When compiled with
4627 old headers, don't call avc_has_perm if we don't have the
4628 permission information.
4629
b92e3780
UD
46302007-11-05 Daniel Jacobowitz <dan@codesourcery.com>
4631
4632 * elf/rtld.c (dl_main): Use the page size to find the map start.
4633
ffb1b882
UD
46342007-11-05 Ulrich Drepper <drepper@redhat.com>
4635
94a749f6
UD
4636 * time/tzfile.c (__tzfile_read): Fix check for version 0 data files.
4637 Patch by Szymon Siwek <sls@poczta.wp.pl>.
4638
ffb1b882
UD
4639 * nscd/aicache.c (addhstaiX): Check herrno after IPv4 lookup only
4640 when the lookup call failed.
4641
4642 * nscd/nscd.h (struct database_dyn): Rename prunelock to prune_lock.
4643 Add prune_cond and wakeup_time.
4644 (CACHE_PRUNE_INTERNAL): Define.
4645 Update declarations of prune_cache and setup_thread.
4646 * nscd/connections.c (dbs): Update initializers.
4647 (CACHE_PRUNE_INTERNAL): Moved to nscd.h.
4648 (nscd_init): Default number of threads is now 4.
4649 (invalidate_cache): Take lock before calling prune_cache.
4650 (handle_request): If SELinux forbids the request, say so.
4651 (readylist_cond): Use static initializer.
4652 (nscd_run_prune): New function. Used only by pruning threads.
4653 (nscd_run_worder): Renamed from nscd_run. Remove support for pruning
4654 here.
4655 (fd_ready): Update nscd_run reference.
4656 (start_threads): No need to initialize readylist_cond.
4657 Start pruning threads separately.
4658 * nscd/nscd_setup_thread.c: Change return value type to int and always
4659 return 0.
4660 * sysdeps/unix/sysv/linux/nscd_setup_thread.c: Change return value type
4661 to int and return nonzero value if we can use the TID address hack.
4662 * nscd/cache.c (cache_add): If next wakeup time of cleanup thread for
4663 the database is later than the new entry's timeout, update the
4664 wakeup time and wake the cleanup thread.
4665 (prune_cache): Return seconds the next entry in the database is still
4666 valid. Remove locking for pruning here.
4667 * nscd/nscd.conf: Document default number of threads.
4668
4c48ef06
UD
46692007-10-31 Ulrich Drepper <drepper@redhat.com>
4670
41ff2a49
UD
4671 * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Make sure
4672 stack is properly aligned for the target function.
4673 Correct unwind info.
ffb1b882 4674
4c48ef06
UD
4675 * elf/rtld.c (dl_main): Initialize stack and pointer guard early
4676 when using auditing libraries.
4677
384ca551
UD
46782007-10-29 Ulrich Drepper <drepper@redhat.com>
4679
31e2791c
UD
4680 * resolv/Versions [libresolv] (GLIBC_PRIVATE): Add
4681 _nss_dns_getnetbyaddr2_r.
4682 * resolv/nss_dns/dns-host.c: Define _nss_dns_getnetbyaddr2_r. Pass
4683 extra parameter to getanswer_r.
4684 (_nss_dns_getnetbyaddr_r): Now a wrapper around
4685 _nss_dns_getnetbyaddr2_r.
4686
384ca551
UD
4687 * nscd/Makefile (nscd-modules): Replace gethstbynm2_r with
4688 gethstbynm3_r.
4689 * nscd/gethstbynm2_r.c: Remove.
4690 * nscd/gethstbynm3_r.c: New file.
4691 * nscd/aicache.c (addhstaiX): Use __gethostbyaddr2_r instead of
4692 __gethostbyaddr_r.
4693 * nscd/gethstbyad_r.c: Generate __gethostbyaddr2_r function. Define
4694 __gethostbyaddr_r compatibility wrapper.
4695 * nscd/hstcache.c (cache_addhst): Add ttl parameter. Use it when
4696 determining timeout of entry.
4697 (lookup): Take new parameter and pass it to __gethostbyname3_r and
4698 __gethostbyaddr2_r.
4699 (addhstbyX): Pass reference to variable for TTL to lookup and
4700 cache_addhst.
4701 * nss/Versions [glibc] (GLIBC_PRIVATE): Export __nss_passwd_lookup2,
4702 __nss_group_lookup2, __nss_hosts_lookup2, __nss_services_lookup2,
4703 and __nss_next2. Remove __nss_services_lookup.
4704 * nss/XXX-lookup.c: Name function now *_lookup2. Add new parameter.
4705 Add compat wrapper.
4706 * nss/getXXbyYY_r.c: Changes to call new *_lookup2 functions and
4707 __nss_next2.
4708 * nss/getXXent_r.c: Likewise.
4709 * nss/getnssent_r.c: Likewise.
4710 * nss/nsswitch.c (__nss_lookup): Add new parameter. If first function
4711 does not exist in module, try the optional second name.
4712 (__nss_next2): New function.
4713 (__nss_next): Now wrapper around __nss_next2.
4714 * nss/nsswitch.h: Adjust __nss_lookup prototype.
4715 Declare __nss_next2.
4716 Adjust definition of db_lookup_function type.
4717 * nss/service-lookup.c: Define NO_COMPAT.
4718 * include/netdb.h: Declare __gethostbyaddr2_r and __gethostbyname3_r.
4719 * inet/ether_hton.c: Use __nss_next2 instead of __nss_next.
4720 * inet/ether_ntoh.c: Likewise.
4721 * sunrpc/netname.c: Likewise.
4722 * sunrpc/publickey.c: Likewise.
4723 * inet/getnetgrent.c: Likewise. Adjust calls to __nss_lookup.
4724 * inet/gethstbyad_r.c (DB_LOOKUP_FCT): Change to __nss_hosts_lookup2.
4725 * inet/gethstbynm2_r.c (DB_LOOKUP_FCT): Likewise.
4726 * inet/gethstbynm_r.c (DB_LOOKUP_FCT): Likewise.
4727 * inet/gethstent_r.c (DB_LOOKUP_FCT): Likewise.
4728
4729 * nscd/aicache.c (addhstaiX): Fix default TTL handling.
4730
5e37840c 4731 * inet/getnetgrent_r.c (setup): Encrypt static pointer.
384ca551 4732
88197030
UD
47332007-10-28 Ulrich Drepper <drepper@redhat.com>
4734
f160a450
UD
4735 [BZ #5204]
4736 * crypt/sha256c-test.c: Define TIMEOUT to 6 for ancient hardware.
4737 * crypt/sha512c-test.c: Likewise.
4738
4c6b2202
UD
4739 [BZ #5225]
4740 * stdio-common/vfscanf.c (_IO_vfwscanf): Don't misuse wp pointer
4741 to keep track of end of %[ format string element.
22c915ac
UD
4742 * stdio-common/Makefile (tests): Add bug20.
4743 * stdio-common/bug20.c: New file.
4c6b2202 4744
88197030
UD
4745 [BZ #5222]
4746 * elf/dl-load.c (_dl_rtld_di_serinfo): Correct handling of short
4747 path elements in counting mode.
4748
05d69147
UD
47492007-10-27 Andreas Jaeger <aj@suse.de>
4750
94833f11
UD
4751 [BZ #5040]
4752 * sysdeps/unix/sysv/linux/sys/epoll.h (EPOLLRDHUP): Add value.
4753
05d69147
UD
4754 [BZ #3112]
4755 * sysdeps/ia64/backtrace.c (init): Free shared library if incorrect.
4756 (__cleanup): Free shared library when exiting.
4757 * sysdeps/i386/backtrace.c (init): Free shared library if incorrect.
4758 (__cleanup): Free shared library when exiting.
4759
e6b29af8
UD
47602006-04-14 H.J. Lu <hongjiu.lu@intel.com>
4761
4762 [BZ #2549]
4763 * math/libm-test.inc (check_float_internal): Support
4764 denormalized return.
4765
ad3371fb
UD
47662007-10-23 Andreas Jaeger <aj@suse.de>
4767
4768 [BZ #5208]
4769 * sysdeps/unix/sysv/linux/readahead.c (__readahead): Use
4770 __LONG_LONG_PAIR to handle little endian byte order.
4771 Suggested by abhishekrai@google.com
4772
666aa020
UD
47732007-10-27 Ulrich Drepper <drepper@redhat.com>
4774
4775 * malloc/arena.c [!NO_THREADS]: Use ATFORK_MEM if defined.
4776
8ad343b3
UD
47772007-10-26 Ulrich Drepper <drepper@redhat.com>
4778
4779 * nscd/cache.c (prune_cache): Move test for modified file outside
4780 of locking.
4781
9251c568
AJ
47822007-10-21 Andreas Jaeger <aj@suse.de>
4783
4784 * manual/texinfo.tex: Update to latest version.
4785
4786 * manual/sysinfo.texi (System Parameters): Fix Formatting.
4787
4788 * manual/arith.texi (Status bit operations): Fix formatting.
4789
4790 * manual/errno.texi (Error Messages): Fix formatting.
4791
4792 * manual/sysinfo.texi (System Parameters): Fix formatting.
4793
4794 * manual/libc.texinfo: Update VERSION and UPDATED.
4795
260b2e06
RM
47962007-10-19 Roland McGrath <roland@redhat.com>
4797
4798 * elf/Makefile ($(objpfx)ld.so): Use $(AWK).
4799
46ae8850
JJ
48002007-10-06 David S. Miller <davem@davemloft.net>
4801
4802 * configure.in: Add sparcv9v2 and sparc64v2.
4803 * scripts/config.sub: Likewise.
4804 * configure: Regenerate.
4805 * elf/elf.h (HWCAP_SPARC_N2): New.
4806 * sysdeps/sparc/dl-procinfo.h (_DL_HWCAP_COUNT): Bump to 8.
4807 * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add 'v9v2'.
4808 (HWCAP_IMPORTANT): Add HWCAP_SPARC_N2.
4809 * sysdeps/sparc/sparc32/sparcv9/sparcv9v2/memcpy.S: New file.
4810 * sysdeps/sparc/sparc32/sparcv9/sparcv9v2/memset.S: New file.
4811 * sysdeps/sparc/sparc64/sparcv9v2/memcpy.S: New file.
4812 * sysdeps/sparc/sparc64/sparcv9v2/memset.S: New file.
4813
6fbfbd80
UD
48142007-10-18 Ulrich Drepper <drepper@redhat.com>
4815
4816 * sunrpc/clnt_udp.c (clntudp_call): Don't block in recvfrom call
4817 even if the poll result indicates there is data to read.
4818 Patch by Jeff Moyer <jmoyer@redhat.com>.
4819
39cfc9fa
RM
48202007-10-18 Roland McGrath <roland@redhat.com>
4821
4822 * elf/elf.h (NT_PPC_VMX): New macro.
28919a77 4823
39cfc9fa 48242007-10-17 Ulrich Drepper <drepper@redhat.com>
28919a77
UD
4825
4826 * version.h (VERSION): Set to 2.7.90.
4827
ed13ccf1
JJ
48282007-10-17 Jakub Jelinek <jakub@redhat.com>
4829
4830 * sysdeps/x86_64/memset.S (bzero): Renamed to __bzero. Add
4831 weak_alias.
4832
ee9fd869
RM
48332007-10-17 Roland McGrath <roland@frob.com>
4834
4835 * sysdeps/mach/hurd/bits/fcntl.h [__USE_GNU__] (F_DUPFD_CLOEXEC): New.
4836 * sysdeps/mach/hurd/fcntl.c (__libc_fcntl): Implement it.
4837
1aa5e4d7
UD
48382007-10-17 Ulrich Drepper <drepper@redhat.com>
4839
50c9fbbf 4840 * version.h (VERSION): Bump to 2.7.
777bc4bf 4841 * include/features.h (__GLIBC_MINOR__): Bump to 7.
50c9fbbf 4842
58423c7d
UD
4843 [BZ #5186]
4844 * time/tzset.c (__tz_convert): Don't force testing for a change of
4845 TZ if not called from localtime. But then also see whether the
4846 file changed, in case __use_tzfile is set.
4847
1aa5e4d7
UD
4848 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define F_DUPFD_CLOEXEC.
4849 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
4850 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
4851 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
4852 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
4853 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
4854 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
4855 * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
4856
fc4837e5
UD
48572007-10-17 Jakub Jelinek <jakub@redhat.com>
4858
4859 * sysdeps/posix/getaddrinfo.c (getaddrinfo): When sorting addresses
4860 and admin selects to be able to replace the gai.conf file, lock
4861 data structures around the qsort call.
4862
62eaf7c8
UD
48632007-10-17 Ulrich Drepper <drepper@redhat.com>
4864
406f28db
UD
4865 * sysdeps/x86_64/cacheinfo.c: Comment out code added in support of
4866 new memset.
ac1cb5da 4867 * sysdeps/x86_64/memset.S: Revert to old version for now. The cost is
406f28db
UD
4868 too high for the improvements. Implement bzero unconditionally for
4869 use in libc.
ac1cb5da
UD
4870
48712007-10-17 Ulrich Drepper <drepper@redhat.com>
4872 Jakub Jelinek <jakub@redhat.com>
4873
62eaf7c8
UD
4874 * time/tzfile.c (__tzfile_read): Read POSIX TZ string if available
4875 even when time_t is 32-bit.
4876 (__tzfile_compute): Override POSIX TZ string STD/DST zone names if
4877 timezone data read by __tzfile_default. Ensure __tzname[0] is
4878 always set after the search.
4879
6a649d25
UD
48802007-10-16 Ulrich Drepper <drepper@redhat.com>
4881
4882 * time/tzfile.c (__tzfile_read): Help the compiler recognize
4883 unreachable code on 32-bit machines.
4884
800d6f9e
UD
48852007-10-16 Jakub Jelinek <jakub@redhat.com>
4886
4887 [BZ #5184]
4888 * time/strftime_l.c: Include stdbool.h.
4889 (my_strftime): New wrapper, old function renamed to...
4890 (__strftime_internal): ... new function. Add tzset_called
4891 argument, pass it down to recursive calls, don't call tzset ()
4892 if already true, set to true after call to tzset ().
62eaf7c8 4893
69819d92
UD
48942007-10-16 Ulrich Drepper <drepper@redhat.com>
4895
4896 * time/tzfile.c (__tzfile_read): Take extra memory requested by caller
4897 into account when copying TZ string.
4898
62eaf7c8
UD
48992007-10-16 Jakub Jelinek <jakub@redhat.com>
4900
4901 * time/tzfile.c (__tzfile_compute): For use_last case set i to
4902 num_transition rather than num_transitions - 1.
4903
0308ad66
JJ
49042007-10-16 Jakub Jelinek <jakub@redhat.com>
4905
8d137b60
JJ
4906 * sysdeps/x86_64/memset.S (memset): Fix sse2_nt_move
4907 PIC indirect jump.
4908
0308ad66
JJ
4909 * sysdeps/x86_64/memset.S: Jump from bzero to memset using
4910 a local label rather than HIDDEN_JUMPTARGET.
4911
e2b393bc
UD
49122007-10-15 Ulrich Drepper <drepper@redhat.com>
4913
4914 * sysdeps/x86_64/cacheinfo.c (__x86_64_shared_cache_size): Define.
4915 (init_cacheinfo): Initialize it.
4916 * sysdeps/x86_64/memset.S: Use __x86_64_shared_cache_size.
4917 Always define bzero.
4918 Remove non-glibc code.
4919 * sysdeps/x86_64/bzero.S: Make an empty file.
4920
49212007-10-15 H.J. Lu <hongjiu.lu@intel.com>
4922
4923 * sysdeps/x86_64/cacheinfo.c
4924 (__x86_64_preferred_memory_instruction): New.
4925 (init_cacheinfo): Initialize __x86_64_preferred_memory_instruction.
4926
4927 * sysdeps/x86_64/memset.S: Rewrite.
4928
0fbfcb7b
RM
49292007-10-15 Roland McGrath <roland@redhat.com>
4930
4931 * po/libc.pot: Regenerated.
4932
2884dad4
UD
49332007-10-15 Ulrich Drepper <drepper@redhat.com>
4934
e2b393bc 4935 * nss/getXXbyYY_r.c (REENTRANT_NAME): Mangle startp and start_fct
d96a2216
UD
4936 pointers.
4937
2884dad4
UD
4938 [BZ #3425]
4939 * resolv/nss_dns/dns-host.c (getanswer_r): Fail with
4940 NSS_STATUS_NOTFOUND if the server replied with only a CNAME and no
4941 address record to T_A/T_AAAA requests.
4942
89dc9d4c
UD
49432007-10-14 Ulrich Drepper <drepper@redhat.com>
4944
8d97ac13
UD
4945 * posix/glob.c: Reimplement link_exists_p to use fstatat64.
4946
1b6aa63f
UD
4947 * posix/glob.c: Add some branch prediction throughout.
4948
895a08c0
UD
4949 * nscd/nscd_getgr_r.c (nscd_getgr_r): Store result of successful
4950 read from nscd.
4951
6f55ed88
UD
4952 * sysdeps/posix/getaddrinfo.c (struct sort_result): Add
4953 service_order.
8d62c8ab
UD
4954 (rfc3484_sort): Make sure that even if qsort doesn't support
4955 stable sorting out sorting here is stable by comparing service_order.
6f55ed88 4956 (getaddrinfo): Initialize service_order.
a94673e6
UD
4957 * posix/tst-rfc3484.c (do_test): Adjust for addition of
4958 service_order field to sorting structure.
dfcf64ce 4959 * posix/tst-rfc3484-2.c (do_test): Likewise.
6f55ed88 4960
fa76dde2
UD
4961 * include/time.h: Declare __tzset_parse_tz and __tzset_compute.
4962 * time/tzset.c (tzset_internal): Break TZ string parsing out into
4963 __tzset_parse_tz and updating of daylight, timezone, tzname into
4964 update_vars.
4965 (__tz_compute): Renamed from tz_compute. Take additional parameters.
4966 (__tz_convert): Updating of tm_isdst, tm_zone, and tm_gmtoff now
4967 happens in __tz_compute.
4968 * time/tzfile.c (__tzfile_read): Also read TZ string.
4969 (find_transition): Fold into __tzfile_compute.
4970 (__tzfile_compute): For times beyond the last transition try to
4971 use the TZ string.
4972 * timezone/tst-timezone.c: Information in daylight and tzname does
4973 change for Asia/Tokyo timezone with more concrete information.
4974 Remove the test.
4975
4976 * include/stdio.h: Add libc_hidden_proto for ftello.
4977 * libio/ftello.c: Add libc_hidden_def.
4978
89dc9d4c
UD
4979 [BZ #1140]
4980 * time/tzfile.c (__tzfile_compute): Compute tzname[] values based
4981 on the specified time and not the last entries in the file. Move
4982 code to determine tzname[] to...
4983 (find_transition): ...here. Add ugly guess for times before the
4984 first transition.
4985
f7140274
UD
49862007-10-13 Ulrich Drepper <drepper@redhat.com>
4987
cfca0aa3
UD
4988 [BZ #3195]
4989 * nscd/nscd_getai.c (__nscd_getai): Set errno to 0 in case we found
4990 no entry.
4991 * nscd/nscd_getgr.c (nscd_getgr_r): Likewise.
4992 * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
4993 * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
4994 * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
4995
43d3e6bd
UD
4996 * nscd/nscd_getgr_r.c (nscd_getgr_r): Optimize a bit: use simpler
4997 read mechanism when there are no group members and avoid no-op
4998 read syscall in this case.
4999
f7140274
UD
5000 [BZ #3242]
5001 * nscd/nscd_helper.c (wait_on_socket): Take timeout as parameter.
5002 (__readall): If reading failed due to EAGAIN error wait a bit
5003 and possibly try again.
5004 (__readvall): Likewise.
5005
656f02ce
UD
50062007-10-13 Bruno Haible <bruno@clisp.org>
5007
5008 * intl/dcigettext.c (_nl_find_msg): Unlock the conversions_lock
5009 when we cannot recode the message.
5010
0ea49677
UD
50112007-10-13 Ulrich Drepper <drepper@redhat.com>
5012
5013 [BZ #4359]
5014 * libio/__freading.c (__freading): Don't return true for
ed36f224
UD
5015 write-only streams. For read/write streams, check whether we
5016 performed a read operation already.
7e39d802
UD
5017 * libio/Makefile (tests): Add tst-ext2.
5018 * libio/tst-ext2.c: New file.
0ea49677 5019
78a9b2dc
UD
50202007-10-12 Ulrich Drepper <drepper@redhat.com>
5021
fab1a490
UD
5022 * locale/programs/repertoire.c (repertoire_read): Always free
5023 memory for repertoire file name [Coverity CID 270].
5024
78a9b2dc
UD
5025 * elf/cache.c (save_aux_cache): Free memory allocated for
5026 temporary file name [Coverity CID 267].
5027
29d49a1a
JJ
50282007-10-12 Jakub Jelinek <jakub@redhat.com>
5029
5030 * misc/Makefile (headers): Add bits/error.h.
5031
d074d36d
UD
50322007-10-12 Ulrich Drepper <drepper@redhat.com>
5033
b7d1c5fa
UD
5034 * posix/fnmatch_loop.c: Take rule index returned as part of
5035 findidx return value into account when accessing weights.
5036 * posix/regcomp.c: Likewise.
5037 * posix/regexec.c: Likewise.
5038
d074d36d
UD
5039 * locale/programs/ld-collate.c (collate_read): Optimize a bit.
5040 (skip_to): Fix problems with parameter of elifdef/elifndef.
5041
26a51060
UD
50422007-10-11 Ulrich Drepper <drepper@redhat.com>
5043
5044 * iconv/gconv_simple.c: Add some branch prediction.
5045
6dd3748b
UD
50462007-10-12 Jakub Jelinek <jakub@redhat.com>
5047
5048 * locale/programs/ld-collate.c (collate_read): If ignore_content
5049 and nowtok is tok_define, eat any tok_eol tokens.
5050
d0b5557d
JJ
50512007-10-11 Jakub Jelinek <jakub@redhat.com>
5052
5053 * sysdeps/gnu/netinet/tcp.h: Include sys/socket.h if __USE_MISC.
5054 (struct tcp_md5sig): Change tcpm_addr type to struct sockaddr_storage.
5055
5056 * inet/netinet/in.h: Don't include bits/socket.h.
5057 * sysdeps/unix/sysv/linux/bits/socket.h: Only check _SYS_SOCKET_H
5058 macro.
5059 * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Likewise.
5060
3a054d7a
UD
50612007-10-10 Ulrich Drepper <drepper@redhat.com>
5062
5063 * locale/programs/locfile-token.h: Remove tok_elif, add tok_elifdef
5064 and tok_elifndef.
5065 * locale/programs/locfile-kw.gperf: Likewise.
5066 * locale/programs/ld-collate.c: Implement primitive preprocessor.
5067
c06b7169
UD
50682007-10-10 Jakub Jelinek <jakub@redhat.com>
5069
5070 * stdio-common/printf-parse.h: Include string.h and wchar.h.
5071 (__find_specwc): Change into __extern_always_inline function.
5072 (__find_specmb): Likewise. Remove ps argument. Use __strchrnul.
5073 (__parse_one_specmb): Remove ps argument.
5074 * stdio-common/vfprintf.c (vfprintf): Remove mbstate variable.
5075 Adjust __find_specmb and __parse_one_specmb callers.
5076 * stdio-common/printf-prs.c (parse_printf_format): Likewise.
5077 * stdio-common/printf-parsemb.c (__find_specwc, __find_specmb):
5078 Removed.
5079 (__parse_one_specmb): Remove ps argument, adjust __find_specmb
5080 caller.
5081
5a01ab7b
UD
50822007-10-09 Ulrich Drepper <drepper@redhat.com>
5083
5084 * sysdeps/x86_64/cacheinfo.c (init_cacheinfo): Work around problem
5085 with some Pentium Ds.
5086
e3f8e049
UD
50872007-10-08 Ulrich Drepper <drepper@redhat.com>
5088
5089 * sysdeps/unix/sysv/linux/eventfd_read.c (eventfd_read): Use
5090 __read not read.
5091 * sysdeps/unix/sysv/linux/eventfd_write.c (eventfd_write): Use
5092 __write not write.
5093
a1a363d2
UD
50942007-10-07 Ulrich Drepper <drepper@redhat.com>
5095
a1160714
UD
5096 [BZ #181]
5097 * locale/C-time.c: Set week_1stday data to 19971201.
659a9013
UD
5098 * locale/programs/ld-time.c (time_finish): Default for
5099 first_workday is Monday.
a1160714 5100
bb27a6eb
UD
5101 [BZ #2633]
5102 * wcsmbs/wchar.h: Move many C99 functions into std namespace.
5103
c8d48fae
UD
5104 [BZ #5103]
5105 * posix/glob.c (glob): Recognize patterns starting \/.
5106 * posix/tst-gnuglob.c (find_file): Handle absolute path names.
5107 (main): Add test for pattern starting \/.
5108
a1a363d2
UD
5109 * misc/error.h: Use __const instead of const.
5110 * misc/bits/error.h: Likewise.
5111
51122007-10-07 Andreas Jaeger <aj@suse.de>
5113
5114 * include/bits/error.h: New file.
5115
5116 * misc/bits/error.h (error_at_line): Fix prototype.
5117
71894681
UD
51182007-10-06 Ulrich Drepper <drepper@redhat.com>
5119
a6fa5328
UD
5120 [BZ #3924]
5121 * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Fix a few
5122 more little bugs in creating the stack frame when pltexit has to
5123 be called.
5124
8c7661bc 5125 * nscd/nscd_helper.c (__nscd_cache_search): Prevent endless loops.
50607309 5126 * nscd/connections.c (verify_persistent_db): Recognize circular lists.
8c7661bc 5127
c039eedd
UD
5128 [BZ #4407]
5129 * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Fix *signgamp for -0.0.
5130 * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
5131 * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
5132 * math/libm-test.inc: Add test for this case.
5133
71894681
UD
5134 [BZ #5010]
5135 * sunrpc/svc.c (struct svc_callout): Add sc_mapped element.
5136 (svc_register): Initialize sc_mapped. Set to TRUE if call to
5137 map service succeeded.
5138 (svc_is_mapped): New function.
5139 (svc_unregister): Use it before trying to unmap service.
5140
34c2c092
UD
51412007-10-05 Ulrich Drepper <drepper@redhat.com>
5142
d10737e4
UD
5143 * timezone/zic.c: Update from tzcode2007h.
5144
5145 [BZ #5063]
5146 * timezone/africa: Update from tzdata2007h.
5147 * timezone/antarctica: Likewise.
5148 * timezone/asia: Likewise.
5149 * timezone/australasia: Likewise.
5150 * timezone/europe: Likewise.
5151 * timezone/leapseconds: Likewise.
5152 * timezone/northamerica: Likewise.
5153 * timezone/southamerica: Likewise.
5154 * timzeone/zone.tab: Likewise.
5155
0304f168
UD
5156 [BZ #5104]
5157 * elf/do-lookup.h (do_lookup_x): Don't ignore STT_COMMON symbols.
5158
a83b5649
UD
5159 [BZ #5113]
5160 * string/bits/string2.h (__strdup): Cast parameters to calloc to
5161 avoid warning with -Wconversion.
5162 (__strndup): Likewise.
c039eedd 5163 Half the patch by Christian Iseli <christian.iseli@licr.org>.
a83b5649 5164
3e6ce4d7
UD
5165 [BZ #5112]
5166 * nscd/connections.c (restart): Don't resync if database is
5167 disabled. Patch mostly by Brian De Wolf <bldewolf@csupomona.edu>.
5168
8e351378
UD
5169 * sysdeps/gnu/netinet/tcp.h: Define TCP_MD5SIG, TCP_MD5SIG_MAXKEYLEN,
5170 struct tcp_md5sig. Extend struct tcp_info according to recent kernels.
5171
5172 * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add eventfd,
5173 evetnfd_read, eventfd_write.
5174 * sysdeps/unix/sysv/linux/eventfd.c: New file.
5175 * sysdeps/unix/sysv/linux/eventfd_read.c: New file.
5176 * sysdeps/unix/sysv/linux/eventfd_write.c: New file.
5177 * sysdeps/unix/sysv/linux/sys/eventfd.h: New file.
d10737e4 5178 * sysdeps/unix/sysv/linux/Versions: Export eventfd, eventfd_read,
8e351378
UD
5179 eventfd_write for GLIBC_2.7.
5180
34c2c092
UD
5181 * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add signalfd.
5182 * sysdeps/unix/sysv/linux/signalfd.c: New file.
5183 * sysdeps/unix/sysv/linux/sys/signalfd.h: New file.
5184 * sysdeps/unix/sysv/linux/Versions: Export signalfd for GLIBC_2.7.
5185
6789aaaa 51862007-10-04 Jakub Jelinek <jakub@redhat.com>
375d9429
UD
5187
5188 * stdlib/msort.c: Include stdint.h.
5189 (struct msort_param): New type.
5190 (msort_with_tmp): Use struct msort_param pointer for unchanging
5191 parameters. Add optimized handling for several common sizes
5192 and indirect sorting mode.
5193 (qsort): Adjust msort_with_tmp callers. For big S use indirect
5194 sorting.
5195 Suggested by Belazougui Djamel .
5196
5197 * stdlib/Makefile (tests): Add tst-qsort2.
5198 * stdlib/tst-qsort2.c: New test.
5199
b80bfc8b
UD
52002007-10-04 Ulrich Drepper <drepper@redhat.com>
5201
174420d2
UD
5202 * login/login_tty.c (login_tty): The Linux kernel can return EBUSY
5203 for dup2 in case another thread races with the current one. Retry
5204 in this case.
5205
b80bfc8b
UD
5206 * misc/error.h: Remove support for use outside of libc. We have to
5207 include <features.h> now. Include <bits/error.h> if possible.
5208 * misc/bits/error.h: New file.
5209
6789aaaa 52102007-10-03 Jakub Jelinek <jakub@redhat.com>
ee868c89 5211
e5dd2178
UD
5212 * string/bits/string3.h (memcpy, memmove, mempcpy, memset, bcopy,
5213 bzero, strcpy, stpcpy, strncpy, strcat, strncat): Use
5214 __extern_always_inline functions unconditionally, drop macros.
5215
ac97dec1
UD
5216 * misc/sys/cdefs.h (__REDIRECT_LDBL, __REDIRECT_NTH_LDBL): New macros.
5217 * wcsmbs/bits/wchar2.h (__swprintf_alias, __vswprintf_alias): Use
5218 __REDIRECT_NTH_LDBL macro rather than __REDIRECT_NTH.
5219
ee868c89
UD
5220 * misc/sys/cdefs.h (__extern_always_inline): For GCC 4.3+
5221 add __artificial__ attribute.
5222
80e069e0
UD
52232007-10-02 Ulrich Drepper <drepper@redhat.com>
5224
6e682cf5
UD
5225 * string/strcoll_l.c (STRCOLL): Correct handling of switching from
5226 backward to forward direction.
5227
90241a20
UD
5228 * string/strcoll_l.c (STRCOLL): Correct test for alloca use.
5229
80e069e0
UD
5230 [BZ #645]
5231 * locale/programs/ld-collate.c (collate_finish): Compare against last
5232 used section which is known to have rules defined.
5233 (collate_read): After order_start, correctly record order of sections
5234 and queue sections up.
5235
035ef8d7
UD
52362007-10-01 Ulrich Drepper <drepper@redhat.com>
5237
95bddc0c
UD
5238 [BZ #5071]
5239 * malloc/malloc.c (mremap_chunk): Avoid resizing of new block has
5240 the same number of pages.
5241 Patch by Tomash Brechko <tomash.brechko@gmail.com>.
5242
c8caf089
UD
5243 * locale/programs/ld-collate.c (collate_read): After initial copy
5244 statement, continue in state 0.
5245
035ef8d7
UD
5246 * include/stdio_ext.h (__fsetlocking): Define as macro.
5247
592a95ee
UD
52482007-09-30 Ulrich Drepper <drepper@redhat.com>
5249
56ebeb41
UD
5250 * locale/programs/ld-collate.c (collate_finish): Compare all bytes
5251 of section order.
5252
592a95ee
UD
5253 * po/pt_BR.po: Fix typo.
5254
6c522e21
UD
52552007-09-29 Ulrich Drepper <drepper@redhat.com>
5256
8ad5c3cd
UD
5257 * iconvdata/Makefile (modules): Add ISO8859-9E.
5258 (distribute): Add iso8859-9e.c.
5259 (gen-8bit-gap-modules): Add iso8859-9e.
5260 * iconvdata/iso8859-9e.c: New file.
5261 * iconvdata/gconv-modules: Add entries for ISO-8859-9E.
5262 * iconvdata/TESTS: Likewise.
5263 * iconvdata/tst-tables.sh: Likewise.
5264
5265 * iconvdata/koi8-r.c (HAS_HOLES): Define to 0.
5266
6c522e21
UD
5267 * locale/iso-639.def: Add several new entries.
5268
385b4cf4
UD
52692007-09-24 Jakub Jelinek <jakub@redhat.com>
5270
5271 * sysdeps/generic/ldsodefs.h (struct dl_scope_free_list): Store
5272 void * pointers instead of struct link_map **.
5273 (_dl_scope_free): Change argument type to void *.
5274 * include/link.h (struct link_map): Change type of l_reldeps
5275 to struct link_map_reldeps, move l_reldepsact into that
5276 struct too.
5277 * elf/dl-deps.c: Include atomic.h.
5278 (_dl_map_object_deps): Only change l->l_initfini when it is
5279 fully populated, use _dl_scope_free for freeing it. Optimize
5280 removal of libs from reldeps by using l_reserved flag, when
5281 some removal is needed, allocate a new list instead of
5282 reallocating and free the old with _dl_scope_free. Adjust
5283 for l_reldeps and l_reldepsact changes.
5284 * elf/dl-lookup.c (add_dependency): Likewise. Reorganize to allow
5285 searching in l_initfini and l_reldeps without holding dl_load_lock.
5286 * elf/dl-fini.c (_dl_sort_fini): Adjust for l_reldeps and
5287 l_reldepsact changes.
5288 * elf/dl-close.c (_dl_close_worker): Likewise.
5289 * elf/dl-open.c (_dl_scope_free): Change argument type to void *.
5290
90bf831b
UD
52912007-09-28 Ulrich Drepper <drepper@redhat.com>
5292
5293 * iconvdata/Makefile (modules): Add KOI8-RU.
5294 (distribute): Add koi8-ru.c.
5295 (gen-8bit-gap-modules): Add koi8-ru.
5296 * iconvdata/koi8-ru.c: New file.
5297 * iconvdata/gconv-modules: Add entries for KOI8-RU.
5298 * iconvdata/TESTS: Likewise.
5299 * iconvdata/tst-tables.sh: Likewise.
5300
5301 * iconvdata/koi8-r.c (HAS_HOLES): Define to 0.
5302
d6cd6bf4
UD
53032007-09-26 Jakub Jelinek <jakub@redhat.com>
5304
5305 * misc/sys/cdefs.h (__warndecl, __errordecl): For GCC 4.3+ define
5306 with __warning__/__error__ attributes.
5307 (__warnattr): Define.
5308 * stdlib/bits/stdlib.h (__realpath_chk_warn, __ptsname_r_chk_warn,
5309 __mbstowcs_chk_warn, __wcstombs_chk_warn): New aliases with
5310 __warnattr.
5311 (realpath, ptsname_r, mbstowcs, wcstombs): Call __*_chk_warn instead
5312 of __*_chk if compile time detectable overflow is found.
5313 * libio/bits/stdio2.h (__fgets_chk_warn, __fread_chk_warn,
5314 __fgets_unlocked_chk_warn, __fread_unlocked_chk_warn): New aliases
5315 with __warnattr.
5316 (fgets, fread, fgets_unlocked, fread_unlocked): Call __*_chk_warn
5317 instead of __*_chk if compile time detectable overflow is found.
5318 (__gets_alias): Rename to...
5319 (__gets_warn): ... this. Add __warnattr.
5320 (gets): Call __gets_warn instead of __gets_alias.
5321 * socket/bits/socket2.h (__recv_chk_warn, __recvfrom_chk_warn): New
5322 aliases with __warnattr.
5323 (recv, recvfrom): Call __*_chk_warn instead of __*_chk if compile
5324 time detectable overflow is found.
5325 * posix/bits/unistd.h (__read_chk_warn, __pread_chk_warn,
5326 __pread64_chk_warn, __readlink_chk_warn, __readlinkat_chk_warn,
5327 __getcwd_chk_warn, __confstr_chk_warn, __getgroups_chk_warn,
5328 __ttyname_r_chk_warn, __getlogin_r_chk_warn, __gethostname_chk_warn,
5329 __getdomainname_chk_warn): New aliases with __warnattr.
5330 (read, pread, pread64, readlink, readlinkat, getcwd, confstr,
5331 getgroups, ttyname_r, getlogin_r, gethostname, getdomainname): Call
5332 __*_chk_warn instead of __*_chk if compile time detectable overflow
5333 is found.
5334 (__getgroups_chk): Rename argument to __listlen from listlen.
5335 (__getwd_alias): Rename to...
5336 (__getwd_warn): ... this. Add __warnattr.
5337 (getwd): Call __getwd_warn instead of __getwd_alias.
5338 * wcsmbs/bits/wchar2.h (__wmemcpy_chk_warn, __wmemmove_chk_warn,
5339 __wmempcpy_chk_warn, __wmemset_chk_warn, __wcsncpy_chk_warn,
5340 __wcpncpy_chk_warn, __fgetws_chk_warn, __fgetws_unlocked_chk_warn,
5341 __mbsrtowcs_chk_warn, __wcsrtombs_chk_warn, __mbsnrtowcs_chk_warn,
5342 __wcsnrtombs_chk_warn): New aliases with __warnattr.
5343 (wmemcpy, wmemmove, wmempcpy, wmemset, mbsrtowcs, wcsrtombs,
5344 mbsnrtowcs, wcsnrtombs): Call __*_chk_warn instead of __*_chk if
5345 compile time detectable overflow is found.
5346 (wcsncpy, wcpncpy): Likewise. For constant __n fix check whether
5347 to use __*_chk or not.
5348 (fgetws, fgetws_unlocked): Divide __bos by sizeof (wchar_t), both
5349 in comparisons which function should be called and in __*_chk*
5350 arguments. Call __*_chk_warn instead of __*_chk if compile time
5351 detectable overflow is found.
5352 (swprintf, vswprintf): Divide __bos by sizeof (wchar_t) in
5353 __*_chk argument.
5354 * debug/tst-chk1.c (do_test): Add a few more tests.
5355
408cfca0
UD
53562007-09-24 Ulrich Drepper <drepper@redhat.com>
5357
5358 [BZ #5058]
5359 * intl/gettextP.h (struct loaded_domain): Add conversions_lock member.
5360 * intl/loadmsgcat.c (_nl_load_domain): Initialize conversions_lock.
5361 (_nl_unload_domain): Finalize conversions_lock.
5362 * intl/dcigettext.c (_nl_find_msg): Take conversions_lock before
5363 handling table of known conversions.
5364
e6eec9ce
JJ
53652007-09-24 Jakub Jelinek <jakub@redhat.com>
5366
5367 * sysdeps/posix/getaddrinfo.c (getaddrinfo): Use
5368 close_not_cancel_no_status instead of close.
5369
a532a41d
UD
53702007-09-13 Aurelien Jarno <aurelien@aurel32.net>
5371
682268ef 5372 [BZ #5028]
408cfca0 5373 * posix/regcomp.c (lookup_collation_sequence_value): Check that
a532a41d
UD
5374 nrules != 0 for multibyte chars.
5375
dec9ed9e
UD
53762007-09-23 Ulrich Drepper <drepper@redhat.com>
5377
91633816
UD
5378 * resolv/ns_print.c (ns_sprintrrf): Handle ns_t_a6 and ns_t_opt.
5379 Provide better error message in case the type is unknown.
5380
9cc198f6
UD
5381 [BZ #4963]
5382 * wcsmbs/wcsnlen.c: Don't reference before checking the length.
5383 * string/stratcliff.c: Make usable to test wide char functions.
5384 * wcsmbs/wcsatcliff.c: New file.
5385 * wcsmbs/Makefiel (tests): Add wcsatcliff.
5386
27f3d446
UD
5387 [BZ #4972]
5388 * iconvdata/Makefile (modules): Add MAC-CENTRALEUROPE.
5389 (distribute): Add mac-centraleurope.c.
5390 (gen-8bit-gap-modules): Add mac-centraleurope.
5391 * iconvdata/mac-centraleurope.c: New file.
5392 * iconvdata/gconv-modules: Add entries for MAC-CENTRALEUROPE.
5393 * iconvdata/TESTS: Likewise.
5394 * iconvdata/tst-tables.sh: Likewise.
5395
dec9ed9e
UD
5396 [BZ #5043]
5397 * iconv/iconv_open.c (iconv_open): For large codeset names use malloc.
5398
0435403c
UD
53992007-09-21 Ulrich Drepper <drepper@redhat.com>
5400
5401 * sysdeps/x86_64/cacheinfo.c (__x86_64_data_cache_size_half): Renamed
5402 from __x86_64_core_cache_size_half.
5403 (init_cacheinfo): Compute shared cache size for AMD processors with
5404 shared L3 correctly.
5405 * sysdeps/x86_64/memcpy.S: Adjust for __x86_64_data_cache_size_half
5406 name change.
5407 Patch in large parts by Evandro Menezes.
5408
c3266dc0
UD
54092007-09-19 Ulrich Drepper <drepper@redhat.com>
5410
715899d1
UD
5411 * elf/dl-lookup.c (add_dependency): Handle failing memory
5412 allocation for dependency list. Remove unnecessary check.
5413
e1db0493
UD
5414 * sysdeps/posix/getaddrinfo.c (getaddrinfo): Avoid unnecessary
5415 open/close when determining source addresses.
5416
c3266dc0
UD
5417 * crypt/Makefile (libcrypt-routines): Add sha256-crypt, sha256,
5418 sha512-crypt, and sha512.
5419 (tests): Add sha256test, sha256c-test, sha512test, and sha512c-test.
5420 (distribute): Add sha256.h and sha512.h.
5421 * crypt/crypt-entry.c (crypt): Recognize the new $5$ and $6$ prefixes
5422 and call the appropriate code.
5423 * crypt/sha256-crypt.c: New file.
5424 * crypt/sha256.c: New file.
5425 * crypt/sha256.h: New file.
5426 * crypt/sha256c-test.c: New file.
5427 * crypt/sha256test.c: New file.
5428 * crypt/sha512-crypt.c: New file.
5429 * crypt/sha512.c: New file.
5430 * crypt/sha512.h: New file.
5431 * crypt/sha512c-test.c: New file.
5432 * crypt/sha512test.c: New file.
5433
ddf51ecb
JJ
54342007-09-19 Jakub Jelinek <jakub@redhat.com>
5435
5436 * misc/bits/syslog.h (syslog): Remove extraneous argument from
5437 the inline, pass __USE_FORTIFY_LEVEL - 1 as second argument to
5438 __syslog_chk.
5439
b90395e6
UD
54402007-09-18 Jakub Jelinek <jakub@redhat.com>
5441
76c0bea7
JJ
5442 * locale/programs/charmap-dir.c (charmap_aliases): Use %ms instead of
5443 %as in fscanf format strings.
5444
00680568
JJ
5445 * sysdeps/sparc/sparc32/elf/start.S: Remove cfi_* markup.
5446 * sysdeps/sparc/sparc64/elf/start.S: Likewise.
c3266dc0
UD
5447 * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__thread_start):
5448 Likewise.
5449 * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__thread_start):
5450 Likewise.
00680568 5451
b90395e6
UD
5452 * sysdeps/generic/ldsodefs.h (DL_LOOKUP_GSCOPE_LOCK): New definition.
5453 * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Or in
5454 DL_LOOKUP_GSCOPE_LOCK into flags after THREAD_GSCOPE_SET_FLAG ().
5455 * elf/dl-sym.c (do_sym): Likewise.
5456 * include/link.h (struct link_map): Add l_serial field.
5457 * elf/dl-object.c (_dl_new_object): Initialize l_serial.
5458 * elf/dl-lookup.c (add_dependency): Add flags argument.
5459 Remember map->l_serial, if DL_LOOKUP_GSCOPE_LOCK is among
5460 flags, use THREAD_GSCOPE_RESET_FLAG before and
5461 THREAD_GSCOPE_SET_FLAG after
5462 __rtld_lock_lock_recursive (GL(dl_load_lock)) to avoid deadlock.
5463 Don't dereference map until it has been found on some list.
5464 If map->l_serial changed, return -1.
5465
874aa523
UD
54662007-09-17 Jakub Jelinek <jakub@redhat.com>
5467
5468 * include/stdio.h (__isoc99_fscanf, __isoc99_scanf,
5469 __isoc99_sscanf, __isoc99_vscanf): New prototypes.
5470 (__isoc99_vsscanf, __isoc99_vfscanf): New prototypes, add
5471 libc_hidden_proto.
5472 * include/wchar.h (__isoc99_fwscanf, __isoc99_wscanf,
5473 __isoc99_swscanf, __isoc99_vwscanf): New prototypes.
5474 (__isoc99_vswscanf, __isoc99_vfwscanf): New prototypes,
5475 add libc_hidden_proto.
5476 * libio/stdio.h (fscanf, scanf, sscanf, vfscanf, vscanf,
5477 vsscanf): Redirect to __isoc99_* if strict ISO C99 or POSIX
5478 conformance requested.
5479 * wcsmbs/wchar.h (fwscanf, wscanf, swscanf, vfwscanf, vwscanf,
5480 vswscanf): Redirect to __isoc99_* if strict ISO C99 or POSIX
5481 conformance requested.
5482 * libio/bits/stdio-ldbl.h (fscanf, scanf, sscanf, vfscanf, vscanf,
5483 vsscanf): Redirect to __nldbl___isoc99_* if strict ISO C99 or POSIX
5484 conformance requested.
5485 * wcsmbs/bits/wchar-ldbl.h (fwscanf, wscanf, swscanf, vfwscanf,
5486 vwscanf, vswscanf): Redirect to __nldbl___isoc99_* if strict
5487 ISO C99 or POSIX conformance requested.
5488 * stdio-common/Versions (libc): Export __isoc99_scanf@@GLIBC_2.7,
5489 __isoc99_vscanf@@GLIBC_2.7, __isoc99_fscanf@@GLIBC_2.7,
5490 __isoc99_vfscanf@@GLIBC_2.7, __isoc99_sscanf@@GLIBC_2.7
5491 and __isoc99_vsscanf@@GLIBC_2.7.
5492 * stdio-common/Makefile (routines): Add isoc99_scanf, isoc99_vscanf,
5493 isoc99_fscanf, isoc99_vfscanf, isoc99_sscanf and isoc99_vsscanf.
5494 (tests): Add scanf14.
5495 (CFLAGS-vfprintf.c, CFLAGS-fprintf.c, CFLAGS-printf.c,
5496 CFLAGS-vfwprintf.c, CFLAGS-vfscanf.c, CFLAGS-vfwscanf.c,
5497 CFLAGS-fscanf.c, CFLAGS-scanf.c, CFLAGS-isoc99_vfscanf.c,
5498 CFLAGS-isoc99_vscanf.c, CFLAGS-isoc99_fscanf.c,
5499 CFLAGS-isoc99_scanf.c): Add $(exceptions).
5500 (CFLAGS-scanf15.c): Add various -I paths to prevent the compiler
5501 from using internal headers.
5502 * wcsmbs/Versions (libc): Export __isoc99_wscanf@@GLIBC_2.7,
5503 __isoc99_vwscanf@@GLIBC_2.7, __isoc99_fwscanf@@GLIBC_2.7,
5504 __isoc99_vfwscanf@@GLIBC_2.7, __isoc99_swscanf@@GLIBC_2.7
5505 and __isoc99_vswscanf@@GLIBC_2.7.
5506 * wcsmbs/Makefile (routines): Add isoc99_wscanf, isoc99_vwscanf,
5507 isoc99_fwscanf, isoc99_vfwscanf, isoc99_swscanf and isoc99_vswscanf.
5508 (CFLAGS-isoc99_wscanf.c, CFLAGS-isoc99_fwscanf.c,
5509 CFLAGS-isoc99_vwscanf.c, CFLAGS-isoc99_vfwscanf.c): Add $(exceptions).
5510 (CPPFLAGS): Add -D_IO_MTSAFE_IO if needed.
5511 * stdio-common/isoc99_scanf.c: New file.
5512 * stdio-common/isoc99_vsscanf.c: New file.
5513 * stdio-common/isoc99_vscanf.c: New file.
5514 * stdio-common/isoc99_vfscanf.c: New file.
5515 * stdio-common/isoc99_fscanf.c: New file.
5516 * stdio-common/isoc99_sscanf.c: New file.
5517 * wcsmbs/isoc99_fwscanf.c: New file.
5518 * wcsmbs/isoc99_vswscanf.c: New file.
5519 * wcsmbs/isoc99_swscanf.c: New file.
5520 * wcsmbs/isoc99_wscanf.c: New file.
5521 * wcsmbs/isoc99_vwscanf.c: New file.
5522 * wcsmbs/isoc99_vfwscanf.c: New file.
5523 * libio/libio.h (_IO_FLAGS2_SCANF_STD): Define.
5524 * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct): Also
5525 clear _IO_FLAGS2_SCANF_STD bit from _flags2.
5526 * stdio-common/vfscanf.c (_IO_vfscanf_internal): Don't
5527 handle %as, %aS and %a[ if _IO_FLAGS2_SCANF_STD is set in _flags2.
5528 * stdio-common/scanf14.c: New test.
5529 * stdio-common/scanf15.c: New test.
5530 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add
5531 isoc99_scanf, isoc99_fscanf, isoc99_sscanf,
5532 isoc99_vscanf, isoc99_vfscanf, isoc99_vsscanf,
5533 isoc99_wscanf, isoc99_fwscanf, isoc99_swscanf,
5534 isoc99_vwscanf, isoc99_vfwscanf and isoc99_vswscanf.
5535 * sysdeps/ieee754/ldbl-opt/Versions (libc): Export
5536 __nldbl___isoc99_scanf@@GLIBC_2.7,
5537 __nldbl___isoc99_fscanf@@GLIBC_2.7,
5538 __nldbl___isoc99_sscanf@@GLIBC_2.7,
5539 __nldbl___isoc99_vscanf@@GLIBC_2.7,
5540 __nldbl___isoc99_vfscanf@@GLIBC_2.7,
5541 __nldbl___isoc99_vsscanf@@GLIBC_2.7,
5542 __nldbl___isoc99_wscanf@@GLIBC_2.7,
5543 __nldbl___isoc99_fwscanf@@GLIBC_2.7,
5544 __nldbl___isoc99_swscanf@@GLIBC_2.7,
5545 __nldbl___isoc99_vwscanf@@GLIBC_2.7,
5546 __nldbl___isoc99_vfwscanf@@GLIBC_2.7
5547 and __nldbl___isoc99_vswscanf@@GLIBC_2.7.
5548 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__isoc99_scanf,
5549 __isoc99_fscanf, __isoc99_sscanf, __isoc99_vscanf,
5550 __isoc99_vfscanf, __isoc99_vsscanf, __isoc99_wscanf,
5551 __isoc99_fwscanf, __isoc99_swscanf, __isoc99_vwscanf,
5552 __isoc99_vfwscanf, __isoc99_vswscanf): Add NLDBL_DECL.
5553 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c
5554 (__nldbl___isoc99_scanf, __nldbl___isoc99_fscanf,
5555 __nldbl___isoc99_sscanf, __nldbl___isoc99_vscanf,
5556 __nldbl___isoc99_vfscanf, __nldbl___isoc99_vsscanf,
5557 __nldbl___isoc99_wscanf, __nldbl___isoc99_fwscanf,
5558 __nldbl___isoc99_swscanf, __nldbl___isoc99_vwscanf,
5559 __nldbl___isoc99_vfwscanf, __nldbl___isoc99_vswscanf): New
5560 functions.
5561 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vfscanf.c: New file.
5562 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_swscanf.c: New file.
5563 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vwscanf.c: New file.
5564 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_wscanf.c: New file.
5565 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_scanf.c: New file.
5566 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_sscanf.c: New file.
5567 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vsscanf.c: New file.
5568 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_fwscanf.c: New file.
5569 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vfwscanf.c: New file.
5570 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vswscanf.c: New file.
5571 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vscanf.c: New file.
5572 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_fscanf.c: New file.
5573
5574 * stdio-common/Makefile (tests): Add scanf13.
5575 (scanf13-ENV): New.
5576 * stdio-common/vfscanf.c (_IO_vfscanf_internal): Handle
5577 m modifier followed by l.
5578 (STRING_ARG): Add width argument.
5579 (_IO_vfscanf_internal) <case L_('c')>: Handle %mc.
5580 <case L_('C')>: Handle %mlc and %mC.
5581 <case L_('s'), case L_('S'), case L_('[')>: Adjust STRING_ARG
5582 arguments.
5583 * stdio-common/scanf13.c: New test.
5584
5585 * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct): Clear
5586 the _IO_FLAGS2_FORTIFY bit from _flags2 rather than _flags.
5587
883f7943
UD
55882007-09-18 Ulrich Drepper <drepper@redhat.com>
5589
5590 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Correct return value
874aa523 5591 type and __THROW marker of splice, vmsplice, and tee.
883f7943
UD
5592 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
5593 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
5594 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
5595 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
5596 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
5597 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
5598 * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
5599 * sysdeps/unix/sysv/linux/syscalls.list: Mark splice, vmsplice, and tee
5600 as cancellation points.
5601
3524efe0
UD
56022003-11-01 Daniel Jacobowitz <dan@debian.org>
5603
5604 * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_discover_osversion): Don't
5605 parse more than three parts of the version number.
5606
267c54dc
UD
56072007-09-15 Ulrich Drepper <drepper@redhat.com>
5608
5609 * stdio-common/vfscanf.c (_IO_vfwscanf): Add support for 'm'
5610 modifier. Patch by Jakub Jelinek.
5611
5e17d6b7
UD
56122007-08-26 Jakub Jelinek <jakub@redhat.com>
5613
5614 * sysdeps/unix/sysv/linux/i386/Makefile (sysdep_routines): Add
5615 call_fallocate in misc subdir.
5616 * sysdeps/unix/sysv/linux/i386/call_fallocate.S: New file.
5617 * sysdeps/unix/sysv/linux/i386/syscalls.list (fallocate64): Remove.
5618 * sysdeps/unix/sysv/linux/i386/posix_fallocate.c: Use __call_fallocate
5619 instead of __fallocate64.
5620 * sysdeps/unix/sysv/linux/i386/posix_fallocate64.c: Likewise.
5621
3a50811c
UD
56222007-09-15 Jakub Jelinek <jakub@redhat.com>
5623
5624 * rt/Versions (librt): Export __mq_open_2@@GLIBC_2.7.
5625 * rt/Makefile (headers): Add bits/mqueue2.h.
5626 * rt/mqueue.h: Include bits/mqueue2.h if -D_FORTIFY_SOURCE=2,
5627 optimizing with GCC and __va_arg_pack_len is defined.
5628 * rt/bits/mqueue2.h: New file.
5629 * rt/mq_open.c (__mq_open): Renamed from mq_open.
5630 (mq_open): New strong_alias.
5631 (__mq_open_2): New function.
5632 * sysdeps/unix/sysv/linux/mq_open.c (__mq_open): Renamed from mq_open.
5633 (mq_open): New strong_alias.
5634 (__mq_open_2): New function.
5635 * debug/Versions (libc): Export __fortify_fail@@GLIBC_PRIVATE.
5636 * Versions.def (librt): Add GLIBC_2.7 version.
5637 * debug/fortify_fail.c (__fortify_fail): Add libc_hidden_def.
5638 * include/stdio.h (__fortify_fail): Add libc_hidden_proto.
5639
5640 * misc/sys/cdefs.h (__errordecl, __va_arg_pack_len): Define.
5641 * io/fcntl.h: Include bits/fcntl2.h when __va_arg_pack_len
5642 is defined rather than when not C++.
5643 * io/bits/fcntl2.h (__open_alias, __open64_alias, __openat_alias,
5644 __openat64_alias): New redirects.
5645 (__open_too_many_args, __open_missing_mode, __open64_too_many_args,
5646 __open64_missing_mode, __openat_too_many_args, __openat_missing_mode,
5647 __openat64_too_many_args, __openat64_missing_mode): New __errordecls.
5648 (open, open64, openat, openat64): Rewrite as __extern_always_inline
5649 functions instead of function-like macros.
5650
9bdfff60
UD
56512007-09-14 H.J. Lu <hongjiu.lu@intel.com>
5652
5653 * sysdeps/i386/i586/memcpy.S (__memcpy_chk): New definition.
5654 * sysdeps/i386/i586/mempcpy.S (__memcpy_chk): New definition.
5655 * sysdeps/i386/i586/memset.S (__memset_chk): New definition.
5656
ab905672
UD
56572007-09-15 Mike Frysinger <vapier@gentoo.org>
5658
5659 * inet/inet_net.c: Reset digit to 0 for inputs starting with "0x".
5660 * inet/tst-network.c (tests): Add edge case tests for "0", "0x", "0x0".
5661
9bd68902
RM
56622007-09-14 Mike Frysinger <vapier@gentoo.org>
5663
5664 * inet/tst-network.c: Increment ERRORS for failing tests.
5665
de1c3ebb
UD
56662007-09-07 Jakub Jelinek <jakub@redhat.com>
5667
5668 * misc/sys/cdefs.h (__va_arg_pack): Define for GCC 4.3+.
5669 * misc/bits/syslog.h (syslog): When __va_arg_pack is defined,
5670 implement as __extern_always_inline function.
5671 (vsyslog): Define as __extern_always_inline function unconditionally.
5672 * libio/bits/stdio2.h (sprintf, snprintf, printf, fprintf):
5673 When __va_arg_pack is defined, implement as __extern_always_inline
5674 functions.
5675 (vsprintf, vsnprintf, vprintf, vfprintf): Define as
5676 __extern_always_inline functions unconditionally.
5677 * libio/bits/stdio.h (vprintf): Ifdef out the inline when
5678 bits/stdio2.h will be included.
5679 * wcsmbs/bits/wchar2.h (__swprintf_alias): New redirect.
5680 (swprintf, wprintf, fwprintf): When __va_arg_pack is defined,
5681 implement as __extern_always_inline functions.
5682 (vswprintf, vwprintf, vfwprintf): Define as
5683 __extern_always_inline functions unconditionally.
5684 * debug/tst-chk1.c (do_test): Enable remaining tests for C++.
5685
56862007-09-03 Jakub Jelinek <jakub@redhat.com>
5687
5688 * misc/sys/cdefs.h (__extern_inline, __extern_always_inline): Only
5689 define in C++ for GCC 4.3+, in C++ always use __gnu_inline__
5690 attribute.
5691 * include/features.h (__USE_EXTERN_INLINES): Define only when
5692 __extern_inline is defined.
5693 * stdlib/stdlib.h: Include bits/stdlib.h when __extern_always_inline
5694 is defined instead of when not __cplusplus.
5695 * misc/sys/syslog.h: Include bits/syslog.h when __extern_always_inline
5696 is defined instead of when not __cplusplus.
5697 * socket/sys/socket.h: Include bits/socket2.h when
5698 __extern_always_inline is defined instead of when not __cplusplus.
5699 * libio/stdio.h: Include bits/stdio2.h when __extern_always_inline
5700 is defined instead of when not __cplusplus.
5701 * posix/unistd.h: Include bits/unistd.h when __extern_always_inline
5702 is defined instead of when not __cplusplus.
5703 * string/string.h: Include bits/string3.h when __extern_always_inline
5704 is defined instead of when not __cplusplus.
5705 * wcsmbs/wchar.h: Include bits/wchar2.h when __extern_always_inline
5706 is defined instead of when not __cplusplus.
5707 (btowc, wctob): Don't guard the inlines with ifndef __cplusplus.
5708 * io/fcntl.h: Don't include bits/fcntl2.h if __extern_always_inline
5709 is not defined.
5710 * misc/bits/syslog-ldbl.h: Guard *_chk stuff with
5711 defined __extern_always_inline instead of !defined __cplusplus.
5712 * libio/bits/stdio-ldbl.h: Likewise.
5713 * wcsmbs/bits/wchar-ldbl.h: Likewise.
5714 * misc/bits/syslog.h (syslog): Don't define for C++.
5715 (vsyslog): Use __extern_always_inline function for C++ instead of
5716 a macro.
5717 * libio/bits/stdio.h (__STDIO_INLINE): Define to __extern_inline
5718 whenever that macro is defined.
5719 (vprintf): Don't provide the inline for C++.
5720 (fread_unlocked, fwrite_unlocked): Don't define the macros for C++.
5721 * libio/bits/stdio2.h (sprintf, snprintf, printf, fprintf): Don't
5722 define the macros for C++.
5723 (vsprintf, vsnprintf, vprintf, vfprintf): Define as
5724 __extern_always_inline functions for C++.
5725 * io/sys/stat.h (stat, lstat, fstat, fstatat, mknod, mknodat,
5726 stat64, lstat64, fstat64, fstatat64): Don't define if not
5727 __USE_EXTERN_INLINES.
5728 * wcsmbs/bits/wchar2.h: Fix #error message.
5729 (swprintf, wprintf, fwprintf): Don't define the macros for C++.
5730 (vswprintf, vwprintf, vfwprintf): Define using
5731 __extern_always_inline functions for C++.
5732 * string/bits/string3.h: Don't #undef macros if __cplusplus.
5733 (memcpy, memmove, mempcpy, memset, bcopy, bzero, strcpy, stpcpy,
5734 strncpy, strcat, strncat): Define as __extern_always_inline
5735 functions instead of macros for C++.
5736 * math/bits/cmathcalls.h: Guard __extern_inline routines with
5737 defined __extern_inline.
5738 * sysdeps/alpha/fpu/bits/mathinline.h (__MATH_INLINE): Define
5739 to __extern_inline whenever that macro is defined.
5740 * sysdeps/ia64/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
5741 * sysdeps/i386/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
5742 * sysdeps/i386/i486/bits/string.h (__STRING_INLINE): Likewise.
5743 * sysdeps/s390/bits/string.h (__STRING_INLINE): Likewise.
5744 * sysdeps/s390/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
5745 * sysdeps/powerpc/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
5746 * sysdeps/x86_64/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
5747 * sysdeps/sparc/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
5748 * sysdeps/unix/sysv/linux/sys/sysmacros.h (gnu_dev_major,
5749 gnu_dev_minor, gnu_dev_makedev): Remove __extern_inline from
5750 prototypes. Only provide __extern_inline routines if
5751 __USE_EXTERN_INLINES.
5752 * debug/Makefile: Add rules to build and run tst-{,lfs}chk{4,5,6}
5753 tests.
5754 * debug/tst-chk1.c (do_prepare, do_test): Allow compilation as C++.
5755 For now avoid some *printf tests in C++. Skip all testing
5756 if __USE_FORTIFY_LEVEL is defined, but __extern_always_inline macro
5757 is not.
5758 * debug/tst-chk4.cc: New file.
5759 * debug/tst-chk5.cc: New file.
5760 * debug/tst-chk6.cc: New file.
5761 * debug/tst-lfschk4.cc: New file.
5762 * debug/tst-lfschk5.cc: New file.
5763 * debug/tst-lfschk6.cc: New file.
5764 * include/wchar.h (__vfwprintf_chk, __vswprintf_chk): Avoid
5765 prototypes in C++.
5766 * include/stdio.h (__sprintf_chk, __snprintf_chk, __vsprintf_chk,
5767 __vsnprintf_chk, __printf_chk, __fprintf_chk, __vprintf_chk,
5768 __vfprintf_chk, __fgets_unlocked_chk, __fgets_chk): Likewise.
5769
b53eef9c
UD
57702007-09-13 Ulrich Drepper <drepper@redhat.com>
5771
5772 * po/cs.po: Update from translation team.
5773
af385590
RM
57742007-09-11 Roland McGrath <roland@redhat.com>
5775
5776 * posix/Makefile ($(objpfx)getconf.speclist): Make it empty if cross
5777 compiling.
5778
af2f25a1
RM
57792007-09-07 Samuel Thibault <samuel.thibault@ens-lyon.org>
5780
5781 * sysdeps/mach/hurd/bits/ioctls.h (TAB3): New macro.
5782
94733ae0
RM
57832007-09-05 Roland McGrath <roland@redhat.com>
5784
5785 * manual/signal.texi (Signaling Another Process): Typo fix.
5786 From Karl Berry <karl@freefriends.org>.
5787
de4d8563
UD
57882007-08-29 Ulrich Drepper <drepper@redhat.com>
5789
5790 * sysdeps/unix/sysv/linux/check_pf.c (IFA_F_OPTIMISTIC): Define to
5791 zero if not defined.
5792 (make_request): Recognize optimistic addresses and treat them like
5793 deprecated addresses.
5794 Reported by Neil Horman <nhorman@redhat.com>.
5795
0adfcc05
UD
57962007-08-28 Ulrich Drepper <drepper@redhat.com>
5797
f3c54060
UD
5798 * nscd/connections.c (send_ro_fd): Also transfer file size.
5799 * nscd/nscd_helper.c (get_mapping): If nscd also transfers the
5800 file size don't call fstat.
5801
0adfcc05
UD
5802 * nscd/nscd_helper.c (get_mapping): Avoid the pread call, just go
5803 ahead and map the file. This should always be correct and we can
5804 catch problems later.
5805
3586b2b6
UD
58062007-08-28 Jakub Jelinek <jakub@redhat.com>
5807
5808 * libio/bits/stdio2.h (__fread_chk, __fread_unlocked_chk): New
5809 prototypes.
5810 (__fread_alias, __fread_unlocked_alias): New aliases.
5811 (fread): New extern inline.
5812 (fread_unlocked): Likewise. Undef macro before definition of
5813 the inline function.
5814 * debug/Makefile (routines): Add fread_chk and fread_u_chk.
5815 (CFLAGS-fread_chk.c, CFLAGS-fread_u_chk.c): Add.
5816 * debug/Versions (libc): Export __fread_chk@@GLIBC_2.7
5817 and __fread_unlocked_chk@@GLIBC_2.7.
5818 * debug/fread_chk.c: New file.
5819 * debug/fread_u_chk.c: New file.
5820 * debug/tst-chk1.c (do_test): Add fread and fread_unlocked tests.
5821
3704aa0b
RM
58222007-08-27 Jakub Jelinek <jakub@redhat.com>
5823
5824 * sysdeps/unix/sysv/linux/syscalls.list
5825 (personality): Change caller to EXTRA.
5826
80e7d6a6
UD
58272007-08-25 Ulrich Drepper <drepper@redhat.com>
5828
278bfa00
UD
5829 * iconvdata/iso-2022-kr.c (BODY): Fake initialization of array buf
5830 to keep gcc quiet.
5831 * iconvdata/iso-2022-cn.c (BODY): Likewise.
5832
a45d733c
UD
5833 * locale/programs/ld-collate.c (collate_output): Avoid warning if
5834 NDEBUG is defined.
5835
5dfeae0e
UD
5836 * Makerules: Use -p option with mkdir.
5837
8f1fe057
UD
5838 * sunrpc/key_prot.c (xdr_unixcred): Work around gcc alias warning.
5839 * nis/nis_xdr.c (_xdr_nis_server): Likewise.
bd0dcd28
UD
5840 (_xdr_directory_obj): Likewise.
5841 (xdr_entry_obj): Likewise.
5842 (xdr_group_obj): Likewise.
5843 (xdr_link_obj): Likewise.
5844 (xdr_table_obj): Likewise.
5845 (_xdr_nis_result): Likewise.
5846 (_xdr_ns_request): Likewise.
5847 (_xdr_ib_request): Likewise.
5848 (_xdr_nis_taglist): Likewise.
5849 (xdr_cback_data): Likewise.
8f1fe057 5850 * nis/yp_xdr.c (xdr_ypmaplist): Likewise.
bd0dcd28
UD
5851 (xdr_ypresp_maplist): Likewise.
5852
01339a67
UD
5853 * stdio-common/Makefile: Avoid format string warning for tst-sprint.
5854
3fa10468
UD
5855 * posix/regex_internal.h: Prevent some declarations and definitions
5856 to be seen when used in tests.
5857
ec1e04de
UD
5858 * posix/tst-rfc3484.c (__idna_to_unicode_lzlz): Initialize *OUTPUT.
5859 * posix/tst-rfc3484-2.c (__idna_to_unicode_lzlz): Likewise.
5860
7a344d1d
UD
5861 * debug/Makefile: Disable format checking when compiling tst-chk?.c.
5862
f8f6ff5d
UD
5863 * config.make.in (datarootdir): Add to shut up configure.
5864
76fca9f1
UD
5865 * sysdeps/x86_64/cacheinfo.c (handle_amd): Fix computation of
5866 associativity for fully-associative caches.
5867
80e7d6a6
UD
5868 * sysdeps/x86_64/cacheinfo.c (handle_amd): Handle L3 cache
5869 requests. Fill on more associativity values for L2.
5870 Patch mostly by Evandro Menezes.
5871
cb5ba304
UD
58722007-08-24 Ulrich Drepper <drepper@redhat.com>
5873
d250df8c
UD
5874 * sysdeps/unix/sysv/linux/x86_64/init-first.c
5875 (_libc_vdso_platform_setup): Avoid using exported variable by using
5876 alias.
5877
88f61aaf
UD
5878 * resolv/arpa/nameser.h (NS_OPT_DNSSEC_OK): Define.
5879
cb5ba304 5880 * sysdeps/unix/sysv/linux/i386/syscalls.list: No reason to mark
cb104bd7 5881 fallocate64 as EXTRA. It is not referenced if the symbol isn't
cb5ba304
UD
5882 defined.
5883
62e1b1f5
UD
58842007-08-23 Ulrich Drepper <drepper@redhat.com>
5885
44b2e581
UD
5886 * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Correctly
5887 align stack for call if pltexit is to be used.
5888
73e3ff07
UD
5889 [BZ #3924]
5890 * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Correctly
5891 align for function call in case pltexit has to be called later.
5892
62e1b1f5
UD
5893 * sysdeps/i386/dl-trampoline.S (_dl_runtime_resolve): Avoid
5894 implicit atomic operation when storing function pointer.
5895 (_dl_runtime_profile): Likewise.
5896
0008163a
UD
58972007-08-17 Jakub Jelinek <jakub@redhat.com>
5898
5899 * nis/nis_table.c (nis_list): Don't fail if __follow_path returned
5900 NIS_NOTFOUND.
5901
55ea8790
UD
59022007-08-21 Ulrich Drepper <drepper@redhat.com>
5903
2e0e1a05
UD
5904 [BZ #4566]
5905 * string/strtok.c: Fix typo in comment.
5906
682e4437
UD
5907 [BZ #4582]
5908 * debug/segfault.c: Fix typos in comments.
5909
7d55c9eb
UD
5910 [BZ #4588]
5911 * stdio-common/tempnam.c: Fix comment, it is not checked that
5912 TMPDIR points to a writable directory.
5913
0f8f993c
UD
5914 [BZ #4726]
5915 * resolv/res_send.c (__libc_res_nsend): Initialize all of the
5916 memory allocated for the name server address.
5917
1465dd0f
UD
5918 [BZ #4946]
5919 * nscd/connections.c (handle_request): Using sendfile always
5920 requires that mmap is used for the database.
5921 Patch by Petr Baudis <pasky@suse.cz>.
5922
c44d3bdf
UD
5923 [BZ #4905]
5924 * nscd/hstcache.c (cache_addhst): When reloading an entry which
5925 suddenly has two or more addresses, ignore it and remove the old
5926 entry.
5927
1ce7d80d
UD
5928 [BZ #4814]
5929 * resolv/res_hconf.c: Prepare for compiling outside libc.
5930 * nscd/res_hconf.c: New file.
5931 * nscd/Makefile (nscd-modules): Add res_hconf. Add rules to build
5932 the new file.
5933 * nscd/gethstbynm2_r.c (NEED__RES_HCONF): Define.
5934 * nscd/gethstbyad_r.c (NEED__RES_HCONF): Likewise.
5935
a30d41c1
UD
5936 * nscd/hstcache.c (cache_addhst): Minimal optimization.
5937
45dc3ad7
UD
5938 [BZ #4925]
5939 * debug/pcprofiledump.c: Turn on internationalization by calling
5940 setlocale. Patch mostly by Benno Schulenberg.
5941
55ea8790
UD
5942 [BZ #4936]
5943 * iconv/gconv.c (__gconv): If flush was successful, clear rest of
5944 the state.
5945 * iconvdata/Makefile: Add rules to build and run bug-iconv5.
5946 * iconvdata/bug-iconv5.c: New file.
5947
0b82ff74
UD
59482007-08-04 Carlos O'Donell <carlos@systemhalted.org>
5949
55ea8790 5950 [BZ #4896]
0b82ff74
UD
5951 * elf/elf.h: Define R_PARISC_PLABEL21L, R_PARISC_PLABEL14R,
5952 R_PARISC_GNU_VTENTRY, R_PARISC_GNU_VTINHERIT, R_PARISC_TLS_GD21L,
5953 R_PARISC_TLS_GD14R, R_PARISC_TLS_GDCALL, R_PARISC_TLS_LDM21L,
5954 R_PARISC_TLS_LDM14R, R_PARISC_TLS_LDMCALL, R_PARISC_TLS_LDO21L,
5955 R_PARISC_TLS_LDO14R, R_PARISC_TLS_DTPMOD32, R_PARISC_TLS_DTPMOD64,
5956 R_PARISC_TLS_DTPOFF32, R_PARISC_TLS_DTPOFF64, R_PARISC_TLS_LE21L,
5957 R_PARISC_TLS_LE14R, R_PARISC_TLS_IE21L, R_PARISC_TLS_IE14R,
5958 R_PARISC_TLS_TPREL32, R_PARISC_TLS_TPREL64.
5959
ee16a55a
UD
59602007-08-21 Ulrich Drepper <drepper@redhat.com>
5961
5962 [BZ #4937]
5963 * elf/do-lookup.h (do_lookup_x): Minimal improvement in hash
5964 lookup loop. Suggested by John Reiser.
5965
b211fe0f
JJ
59662007-08-21 Jakub Jelinek <jakub@redhat.com>
5967
5968 * sysdeps/unix/sysv/linux/alpha/sysdep.h: Include tls.h.
5969
fb84593c
UD
59702007-08-20 Ulrich Drepper <drepper@redhat.com>
5971
5972 * csu/libc-start.c: Don't handle VDSO_SETUP here.
5973 * sysdeps/unix/sysv/linux/init-first.c: Handle it here instead.
5974 * sysdeps/unix/sysv/linux/x86_64/libc-start.c: Renamed to...
5975 * sysdeps/unix/sysv/linux/x86_64/init-first.c: ...this. New file.
5976 * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Move VDSO_SETUP code
5977 to...
5978 * sysdeps/unix/sysv/linux/x86_64/init-first.c: ...here. New file.
5979
b83fb35c
UD
59802007-08-18 Ulrich Drepper <drepper@redhat.com>
5981
5982 * po/nl.po: Update from translation team.
5983
20806a70
AJ
59842007-08-16 Andreas Jaeger <aj@suse.de>
5985
5986 * locale/localeinfo.h: Make _nl_category_name_idxs extern.
f00d47a3 5987 Reported by Peter Festner <peter.festner@ewetel.net>.
20806a70 5988
42282d57
JJ
59892007-08-17 Jakub Jelinek <jakub@redhat.com>
5990
5991 * login/tst-grantpt.c (test_einval): Add 3rd argument to open.
5992
8a501135
JJ
59932007-08-16 Jakub Jelinek <jakub@redhat.com>
5994
cb84d1e4
JJ
5995 * elf/Makefile ($(objpfx)ld.so): Use readelf -s and awk instead of nm -u
5996 to check for undefined symbols.
5997
91ddd9c4
JJ
5998 * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__clone):
5999 If the syscall fails, set errno to the actual returned error number
6000 rather than EINVAL.
6001 * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__clone): If
6002 arguments are incorrect, set errno to EINVAL, if the syscall
6003 fails, set errno to the actual returned error number.
6004
18915760
JJ
6005 * stdlib/bits/stdlib-ldbl.h (__strtold_internal): Remove.
6006 * wcsmbs/bits/wchar-ldbl.h (__wcstold_internal): Remove.
6007
8a501135
JJ
6008 * sysdeps/sparc/sparc32/sparcv9b/memcpy.S: Moved to...
6009 * sysdeps/sparc/sparc32/sparcv9/sparcv9b/memcpy.S: ... here. New
6010 file.
6011 (ASI_PNF, ASI_BLK_P): Don't define.
6012 * sysdeps/sparc/sparc32/sparcv9v/memcpy.S: Moved to...
6013 * sysdeps/sparc/sparc32/sparcv9/sparcv9v/memcpy.S: ... here. New
6014 file.
6015 * sysdeps/sparc/sparc32/sparcv9v/memset.S: Moved to...
6016 * sysdeps/sparc/sparc32/sparcv9/sparcv9v/memset.S: ... here. New
6017 file.
6018
e4720b0e
JJ
60192007-08-15 Jakub Jelinek <jakub@redhat.com>
6020
6021 * sysdeps/sparc/fpu/fraiseexcpt.c (__feraiseexcept): Fix raising
6022 FE_UNDERFLOW on Niagara CPUs.
6023
6024 * sysdeps/sparc/fpu/feholdexcpt.c (feholdexcept): Clear all
6025 exceptions.
6026
702a9414
JJ
60272007-08-14 Jakub Jelinek <jakub@redhat.com>
6028
467d1345
JJ
6029 * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_runtime_setup): No
6030 need to check GLRO(dl_hwcap) & HWCAP_SPARC_FLUSH on sparcv9.
6031 (sparc_fixup_plt): Add do_flush argument instead of figuring whether
6032 flush should be used or not inside of the function.
6033 (elf_machine_fixup_plt, elf_machine_rela): Adjust caller.
6034
6035 * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__clone,
6036 __thread_start): Use HIDDEN_JUMPTARGET.
6037 * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__clone,
6038 __thread_start): Likewise.
6039 * sysdeps/unix/sysv/linux/sparc/sysdep.h (JUMPTARGET): Define.
6040
702a9414
JJ
6041 * sysdeps/ieee754/ldbl-64-128/strtold_l.c (__STRTOF): Declare.
6042 Add libc_hidden_proto.
6043 (STRTOF): Add libc_hidden_proto.
6044 (___new_strtold_l, ___new_wcstold_l): New weak aliases.
6045 (strtold_l, wcstold_l): Use them as second argument for
6046 long_double_symbol.
6047
c6c8f0ec
UD
60482007-08-14 Ulrich Drepper <drepper@redhat.com>
6049
6050 * elf/dl-misc.c: Undo last change. The kernel won't allow it.
6051
5e88abf9
UD
60522007-08-13 Kaz Kojima <kkojima@rr.iij4u.or.jp>
6053
6054 * stdlib/strtold_l.c: Include wchar.h if needed. Add libc_hidden_def.
6055
fc4819b0
UD
60562007-08-14 Ulrich Drepper <drepper@redhat.com>
6057
6058 * po/bg.po: New file. From the translation team.
6059
22502ea2
UD
60602007-08-13 Jakub Jelinek <jakub@redhat.com>
6061
6062 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_PSELECT,
6063 __ASSUME_PPOLL, __ASSUME_ATFCTS, __ASSUME_SET_ROBUST_LIST,
6064 __ASSUME_UTIMENSAT, __ASSUME_FALLOCATE): Update per-arch conditions
6065 when each feature was introduced.
6066
6067 * sysdeps/unix/sysv/linux/dl-vdso.c: Don't include dl-hash.h.
6068 * sysdeps/unix/sysv/linux/dl-vdso.h: Don't include dl-hash.h if NDEBUG.
6069 (CHECK_HASH): New macro.
6070 (PREPARE_VERSION): Use it.
6071
6072 * sysdeps/unix/sysv/linux/pselect.c (__generic_pselect): Only provide
6073 prototype if not __ASSUME_PSELECT.
6074 * sysdeps/unix/sysv/linux/ppoll.c (__generic_ppoll): Only provide
6075 prototype if not __ASSUME_PPOLL.
6076
6077 * sysdeps/unix/sysv/linux/dl-osinfo.h (ROUND): #undef after use.
6078
6079 * sysdeps/unix/clock_settime.c (freq, __pthread_clock_settime,
6080 hp_timing_settime): Don't define or declare if HANDLED_CPUTIME
6081 is defined.
6082
9c6f6953
UD
60832007-08-13 Ulrich Drepper <drepper@redhat.com>
6084
6085 * sysdeps/unix/sysv/linux/x86_64/libc-start.c
6086 (_libc_vdso_platform_setup): If vDSO is not available point
6087 __vdso_gettimeofday to the vsyscall.
6088 * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S [SHARED]: Use
6089 __vdso_gettimeofday instead of vsyscall.
6090
f8de5057
UD
60912007-08-13 Jakub Jelinek <jakub@redhat.com>
6092
6093 * nscd/servicescache.c: Include kernel-features.h.
6094 * nscd/gai.c: Likewise.
6095 * sysdeps/unix/sysv/linux/statfs64.c: Likewise.
6096 * sysdeps/unix/sysv/linux/fstatfs64.c: Likewise.
6097 * sysdeps/unix/sysv/linux/fxstatat.c: Likewise.
6098 * sysdeps/unix/sysv/linux/s390/s390-32/mmap.S: Likewise.
6099 * sysdeps/unix/sysv/linux/s390/s390-32/mmap64.S: Likewise.
6100 * sysdeps/unix/sysv/linux/xstatconv.c: Likewise.
6101 * sysdeps/unix/sysv/linux/if_index.c: Likewise.
6102 * sysdeps/unix/sysv/linux/sparc/sparc64/xstat.c: Likewise.
6103 * sysdeps/unix/sysv/linux/ifaddrs.c: Likewise.
6104
3c87d79d
UD
61052007-08-12 Ulrich Drepper <drepper@redhat.com>
6106
ea37207a
UD
6107 * elf/dl-dst.h: No need for _dl_dst_count, _dl_dst_substitute,
6108 and _dl_get_origin defines anymore.
6109
4eb375fe
UD
6110 * sysdeps/unix/sysv/linux/clock_gettime.c (maybe_syscall_gettime_cpu):
6111 Build fix for systems which might lack POSIX timer support.
6112
3c87d79d
UD
6113 * sysdeps/unix/sysv/linux/x86_64/libc-start.c
6114 (_libc_vdso_platform_setup): Mangle function pointers before storing
6115 them.
6116 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INLINE_VSYSCALL):
6117 Demangle vdso pointer before use.
6118 (INTERNAL_VSYSCALL): Likewise.
6119
6120 * elf/cache.c (primes): Mark as const.
6121 Noted by Roland McGrath.
6122
27d9ffda
UD
61232007-08-01 Andreas Jaeger <aj@suse.de>
6124 Jakub Jelinek <jakub@redhat.com>
6125
6126 * elf/ldconfig.c (opt_ignore_aux_cache): Add new option.
6127 (options): Add option.
6128 (parse_opt): Handle option.
6129 (manual_link): Adjust process_file caller. Call implicit_soname.
6130 (search_dir): Formatting. Use and populate auxiliary cache.
6131 (main): Load and save auxiliary cache.
6132 * elf/readlib.c (process_file): Add stat_buf argument. Pass struct
6133 stat64 from fstat64 to caller.
6134 (implicit_soname): New function.
6135 * elf/readelflib.c (process_elf_file): If DT_SONAME is not present,
6136 leave *soname as NULL.
6137 * elf/cache.c: Include libgen.h.
6138 (print_entry, print_cache, compare, save_cache, add_to_cache):
6139 Formatting and cleanups.
6140 (aux_cache_entry_id, aux_cache_entry, aux_cache_file_entry,
6141 aux_cache_file): New structures.
6142 (AUX_CACHEMAGIC): Define.
6143 (primes): New array.
6144 (aux_hash_size, aux_hash): New variables.
6145 (aux_cache_entry_id_hash, nextprime, init_aux_cache,
6146 search_aux_cache, insert_to_aux_cache, add_to_aux_cache,
6147 load_aux_cache, save_aux_cache): New functions.
6148 * sysdeps/generic/ldconfig.h (_PATH_LDCONFIG_AUX_CACHE): Define.
6149 (init_aux_cache, search_aux_cache, add_to_aux_cache,
6150 load_aux_cache, save_aux_cache, implicit_soname): New prototypes.
6151 (process_file): Adjust prototype.
6152
8d944b0f
UD
61532007-08-12 Jakub Jelinek <jakub@redhat.com>
6154
6155 * sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h: Include stddef.h
6156 with __need_size_t.
6157
75fb247e
UD
61582007-08-12 Ulrich Drepper <drepper@redhat.com>
6159
fb86328a
UD
6160 * sysdeps/unix/sysv/linux/dl-vdso.c (_dl_vdso_vsym): Expect
6161 r_found_version structure as second parameter.
6162 * sysdeps/unix/sysv/linux/dl-vdso.h (PREPARE_VERSION): Define.
6163 (_dl_vdso_vsym): Change type of second parameter accordingly.
6164 * sysdeps/unix/sysv/linux/x86-64/libc-start.c
6165 (_libc_vdso_platform_setup): Adjust.
974a1f0f 6166 * sysdeps/unix/sysv/linux/powerpc/libc-start.c
fb86328a
UD
6167 (_libc_vdso_platform_setup): Likewise.
6168
75fb247e
UD
6169 * sysdeps/unix/sysv/linux/powerpc/dl-vdso.c: Move to...
6170 * sysdeps/unix/sysv/linux/dl-vdso.c: ...here.
6171 * sysdeps/unix/sysv/linux/powerpc/dl-vdso.h: Move to...
6172 * sysdeps/unix/sysv/linux/dl-vdso.h: ...here.
6173 * csu/libc-start.c: Pretty printing.
6174 Use VDSO_SETUP if defined.
6175 * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Define VDSO_SETUP
6176 and let generic code call into _libc_vdso_platform_setup.
6177 * sysdeps/unix/sysv/linux/x86_64/libc-start.c: New file.
6178 * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: New file.
6179 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Pretty printing.
6180 Define INLINE_VSYSCALL and INTERNAL_VSYSCALL.
6181 * sysdeps/unix/sysv/linux/x86_64/Versions: Export __vdso_clock_gettime
6182 for GLIBC_PRIVATE.
6183 * sysdeps/unix/sysv/linux/x86_64/Makefile [subdir=elf]
6184 (sysdep_rountines): Add dl-vdso.
6185
6186 * sysdeps/unix/sysv/linux/powerpc/Makefile: Use sysdep_routines instead
6187 of routines.
6188
6189 * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h: Add
6190 attribute_hidden to __vdso_gettimeofday prototype.
6191
9229b83e
RM
61922007-08-12 Roland McGrath <roland@redhat.com>
6193
6194 * manual/stdio.texi (Variable Arguments Output): Fix xref to gcc manual.
6195 From: Karl Berry <karl@freefriends.org>.
6196
4503061f
UD
61972007-08-11 Ulrich Drepper <drepper@redhat.com>
6198
6199 * elf/dl-misc.c (_dl_sysdep_read_whole_file): We really don't need
6200 an atime update for the files we read.
6201
d7e23b02
UD
62022007-08-10 Ulrich Drepper <drepper@redhat.com>
6203
7cf89e95
UD
6204 * shadow/lckpwdf.c (__lckpwdf): Use O_CLOEXEC if possible.
6205
9d169bb3 6206 * nscd/connections.c: Use O_CLOEXEC if possible. Use mkostemp
d7e23b02
UD
6207 instead of mkstemp.
6208
6209 * misc/Makefile (routines): Add mkostemp and mkostemp64.
6210 * misc/Versions: Export mkostemp and mkostemp64 for GLIBC_2.7.
6211 * misc/mkostemp.c: New file.
6212 * misc/mkostemp64.c: New file.
6213 * stdlib/stdlib.h: Declare the new functions.
6214 * sysdeps/posix/tempname.c: Add new parameter which is added to
6215 the flags for open. Remove __GT_BIGFILE handling.
6216 * stdio-common/tempname.c: Likewise.
6217 * include/stdio.h: Adjust __gen_tempname prototype.
6218 Renumber __GT_* constants.
6219 * libio/oldtmpfile.c: Adjust for __gen_tempname interface change.
6220 * misc/mkdtemp.c: Likewise.
6221 * misc/mkstemp.c: Likewise.
6222 * misc/mkstemp64.c: Likewise.
6223 * misc/mktemp.c: Likewise.
6224 * stdio-common/tempnam.c: Likewise.
6225 * stdio-common/tmpfile.c: Likewise.
6226 * stdio-common/tmpfile64.c: Likewise.
6227 * stdio-common/tmpnam.c: Likewise.
6228 * stdio-common/tmpnam_r.c: Likewise.
6229
22532966
RM
62302007-08-10 Roland McGrath <roland@frob.com>
6231
6232 * sysdeps/mach/hurd/bits/ioctls.h (NLDLY, TABDLY, BSDLY, VTDLY):
6233 New macros.
6234 (NLDELAY, CRDELAY, TBDELAY, BSDELAY, VTDELAY): Define to those.
6235 Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>.
6236
673876e6
UD
62372007-08-10 Ulrich Drepper <drepper@redhat.com>
6238
aa132749
UD
6239 * nss/nss_files/files-XXX.c (internal_setent): Use O_CLOEXEC if
6240 possible.
6241 * nss/nss_files/files-alias.c (internal_setent): Likewise.
6242 * nss/Makefile (libnss_files-routines): Add files-have_o_cloexec.
6243 * nss/nss_files/files-have_o_cloexec.c: New file.
6244
22532966 6245 * sysdeps/unix/sysv/linux/shm_open.c (shm_open): Use O_CLOEXEC if
673876e6
UD
6246 available.
6247
1e286653
JJ
62482007-08-10 Jakub Jelinek <jakub@redhat.com>
6249
6250 * sysdeps/ieee754/ldbl-128ibm/strtold_l.c (___new_strtold_l,
6251 ___new_wcstold_l): New weak aliases.
6252 (strtold_l, wcstold_l): Use them as second argument for
6253 long_double_symbol.
6254
f07f72f3
UD
62552007-08-09 Ulrich Drepper <drepper@redhat.com>
6256
6479496a
UD
6257 * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Use correct
6258 register in test for error.
6259
c4adefbd
UD
6260 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_CLOEXEC): Define.
6261 * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h (O_CLOEXEC): Likewise.
6262
f07f72f3
UD
6263 * po/sv.po: Update from translation team.
6264
eef38c28
RM
62652007-08-06 Roland McGrath <roland@redhat.com>
6266
773e305e
RM
6267 * include/stdlib.h: Add libc_hidden_proto for strto*, __strto*_l.
6268 Remove __strto*_l inlines.
6269 * include/wchar.h: Add libc_hidden_proto for wcsto*, __wcsto*_l.
6270 * stdlib/strtod.c: Add libc_hidden_def.
6271 * stdlib/strtod_l.c: Likewise.
6272 * stdlib/strtold.c [__LONG_DOUBLE_MATH_OPTIONAL]: Add libc_hidden_proto
6273 for __new_strtold and __new_wcstold.
6274 * sysdeps/ieee754/ldbl-128ibm/strtold_l.c: Add libc_hidden_proto for
6275 __STRTOF, STRTOF.
6276 * stdlib/strtol.c: Add libc_hidden_def.
6277 * stdlib/strtol_l.c: Likewise.
6278 * sysdeps/wordsize-64/strtol.c: Add libc_hidden_ver for strtoll and
6279 strtoq.
6280
6281 * scripts/data/localplt-powerpc-linux-gnu.data: New file.
6282
6283 * scripts/data/localplt-x86_64-linux-gnu.data: File renamed to ...
6284 * scripts/data/localplt-generic.data: ... here.
6285 * elf/Makefile (check-data): Get generic file if no other.
6286 ($(objpfx)check-localplt.out): Make target unconditional.
6287
eef38c28
RM
6288 * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_discover_osversion):
6289 Use ElfW(Nhdr).
6290
742df3a4
UD
62912007-08-05 Ulrich Drepper <drepper@redhat.com>
6292
6293 * po/zh_CN.po: Updated translation from translation team.
6294
0470fa46
JJ
62952007-08-05 Jakub Jelinek <jakub@redhat.com>
6296
6297 * sysdeps/unix/sysv/linux/powerpc/powerpc32/socket.S (__socket):
6298 Don't use CGOTSETUP and CGOTRESTORE macros.
6299
b5075bdc
RM
63002007-08-04 Roland McGrath <roland@redhat.com>
6301
6302 * posix/Makefile ($(objpfx)getconf.speclist): Fix typo.
6303
9accc268
JJ
63042007-08-04 Jakub Jelinek <jakub@redhat.com>
6305
6306 * io/bits/fcntl2.h (open, open64, openat, openat64): Add
6307 __extension__ around the whole statement expression.
6308
220ae3ef
UD
63092007-08-04 Ulrich Drepper <drepper@redhat.com>
6310
c8ccd8e3
UD
6311 * sysdeps/unix/opendir.c (__alloc_dir): Correct order of DIR
6312 elements during initialization.
6313
220ae3ef
UD
6314 * po/pl.po: Updated translation from translation team.
6315 * po/tr.po: Likewise.
11960f7f 6316 * po/nl.po: Likewise.
220ae3ef 6317
2fb20667
UD
63182007-08-03 Ulrich Drepper <drepper@redhat.com>
6319
6320 * rt/aio.h: Add __nonnull attributes.
6321
ce31a3b1
UD
63222007-08-03 Jakub Jelinek <jakub@redhat.com>
6323
64f6281c
UD
6324 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Properly handle -0.
6325 * stdlib/Makefile (tests): Add tst-strtod5.
6326 (tst-strtod5-ENV): New.
6327 * stdlib/tst-strtod5.c: New file.
6328
ce31a3b1
UD
6329 * intl/dcigettext.c (_nl_find_msg): Free encoding if __gconv_open
6330 failed.
6331 * intl/finddomain.c (_nl_find_domain): Free normalized_codeset
6332 on failure.
6333
6334 * elf/dl-load.c (decompose_rpath): Free copy if result couldn't be
6335 allocated.
6336
754980e4
JJ
63372007-08-03 Jakub Jelinek <jakub@redhat.com>
6338
6339 * rt/mqueue.h (mq_timedreceive, mq_timedsend): Fix nonnull argument
6340 numbers.
6341
497af0cb
UD
63422007-08-02 Ulrich Drepper <drepper@redhat.com>
6343
cbf0489b
UD
6344 * io/Makefile (aux): Add have_o_cloexec.
6345 * include/fcntl.h: Declare __have_o_cloexec.
6346 * io/have_o_cloexec.c: New file.
6347 * sysdeps/unix/opendir.c (__opendir): Use O_CLOEXEC is available.
6348 (__alloc_dir): If O_CLOEXEC has been used, don't duplicate the
6349 fcntl call if not necessary.
6350 * login/utmp_file.c (setutent_file): Use __have_o_cloexec instead
6351 of local variable.
6352
fa39685d
UD
6353 * sysdeps/unix/opendir.c (__alloc_dir): Don't initialize ->data.
6354 Avoid memset, add explicit initialization.
6355 * sysdeps/unix/dirstream.h (struct __dirstream): Move data elemtn
6356 to the end and change into zero-sized array.
6357 Move lock member to fill a hole on 64-bit platforms.
9b2e9577
UD
6358
6359 * stdlib/stdlib.h: Remove __strto*_internal prototypes and strto*
6360 inline functions.
6361 * include/stdlib.h: Add __strto*_internal prototypes here.
6362 * wcsmbs/wchar.h: Remove __wcsto*_internal prototypes and wcsto*
6363 inline functions.
6364 * include/wchar.h: Add __wcsto*_internal prototypes.
6365 * sysdeps/generic/inttypes.h: No need to protect the declaration
6366 of the __strto*_internal and __wcsto*_internal members here.
6367
497af0cb
UD
6368 * rt/mqueue.h: Change const to __const and add nonnull attributes.
6369
d17a8cf0
RM
63702007-08-02 Roland McGrath <roland@redhat.com>
6371
6372 * posix/Makefile ($(inst_libexecdir)/getconf): Make hard links to
6373 $(inst_bindir)/getconf if possible.
6374
6375 * posix/Makefile ($(objpfx)getconf.speclist): New target.
6376 (generated): Add it.
6377 ($(inst_libexecdir)/getconf): Use it.
6378
0abf17de
UD
63792007-08-01 Ulrich Drepper <drepper@redhat.com>
6380
6381 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Using
6382 /proc is faster and sufficient. /sys is still needed for
6383 __get_nprocs_conf.
6384
5e0923ab
UD
63852007-08-01 Jakub Jelinek <jakub@redhat.com>
6386
6387 * sysdeps/unix/sysv/linux/i386/syscalls.list (fallocate): Add fallocate
6388 syscall as __fallocate64.
6389 * sysdeps/unix/sysv/linux/i386/posix_fallocate.c: New file.
6390 * sysdeps/unix/sysv/linux/i386/posix_fallocate64.c: New file.
6391
1475e201
UD
63922007-07-30 Jakub Jelinek <jakub@redhat.com>
6393
6394 * stdlib/tst-strtod2.c (do_test): Use %tu in fmt string for ptrdiff_t
6395 value.
6396
6397 * stdio-common/tst-fmemopen2.c (do_test): Avoid fmt string warning
6398 if off_t is different rank from size_t.
6399
6400 * sysdeps/generic/unwind-dw2.c (extract_cie_info, execute_cfa_program,
6401 uw_frame_state_for): Avoid type punning warnings.
6402 * sysdeps/generic/unwind-dw2-fde-glibc.c
6403 (_Unwind_IteratePhdrCallback): Likewise.
6404 * sysdeps/generic/unwind-dw2-fde.c (_Unwind_Find_FDE): Likewise.
6405 (binary_search_single_encoding_fdes, binary_search_mixed_encoding_fdes,
6406 get_cie_encoding, linear_search_fdes): Don't mix char and unsigned char
6407 pointers.
6408
e076bece
UD
64092007-07-31 Ulrich Drepper <drepper@redhat.com>
6410
9506149a
UD
6411 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs_conf): Count
6412 total processors using sysfs.
6413 (__get_nprocs): Use sysfs to determine which processors are online.
e076bece 6414
bbeaaa84
JJ
64152007-07-31 Jakub Jelinek <jakub@redhat.com>
6416
09881398
JJ
6417 * sysdeps/unix/sysv/linux/posix_fallocate.c (posix_fallocate): Fix
6418 syscall arguments count.
6419
bbeaaa84
JJ
6420 * stdio-common/tfformat.c (sprint_doubles): Add 12 new tests.
6421
087ef75f
RM
64222007-07-30 Roland McGrath <roland@redhat.com>
6423
6424 * manual/libc.texinfo: Update copyrights, formatting magic, and
6425 @dircategory. From Karl Berry <karl@freefriends.org>.
6426
44f08a6e
UD
64272007-07-29 Ulrich Drepper <drepper@redhat.com>
6428
eafaae72
UD
6429 [BZ #4860]
6430 * io/Makefile (headers): Add bits/fcntl2.h.
6431
c5705565
UD
6432 * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_ZERO_S): Optimize
6433 using gcc builtin.
6434 (__CPU_EQUAL_S): Likewise.
6435
44f08a6e
UD
6436 * posix/Makefile (routines): Add sched_cpualloc and sched_cpufree.
6437 (tests): Add tst-cpuset.
6438 * posix/sched_cpualloc.c: New file.
6439 * posix/sched_cpufree.c: New file.
6440 * posix/tst-cpuset.c: New file.
6441 * posix/Versions: Export __sched_cpualloc and __sched_cpufree for
6442 GLIBC_2.7.
6443 * sysdeps/unix/sysv/linux/bits/sched.h: Define __CPU_*_S macros.
6444 * posix/sched.h: Define old CPU_* macros in temers of __CPU_*_S
6445 macros. Define CPU_*_S macros.
6446
8f5e1400
UD
64472007-07-28 Ulrich Drepper <drepper@redhat.com>
6448
5b74caf6
UD
6449 * posix/getconf.c (vars): Add missing _SC_LEVEL4_CACHE_LINESIZE
6450 entry.
6451
a26d01bb 6452 [BZ #4858]
8f5e1400
UD
6453 * stdio-common/printf_fp.c (___printf_fp): Fix special case of
6454 #.0g and value rounded to 1.0.
6455 * stdio-common/tfformat.c (sprint_doubles): Add two new tests.
6456
085a4412
UD
64572007-07-26 Jakub Jelinek <jakub@redhat.com>
6458
cedb4109
UD
6459 * locale/programs/ld-monetary.c (monetary_finish): Avoid range check
6460 for int_frac_digits and frac_digits.
6461
6462 * login/logout.c (logout): Avoid aliasing violation.
6463 * login/logwtmp.c (logwtmp): Likewise.
6464
6465 * libio/genops.c (_IO_un_link): Avoid aliasing violation.
6466
9d9febc7
UD
6467 * nscd/selinux.c (preserve_capabilities): Initialize new_caps
6468 to avoid warning.
6469 * iconv/gconv_open.c (__gconv_open): Initialize ptr to avoid
6470 warning.
6471 * nis/nis_subr.c (nis_getnames): Initialize saveptr to avoid
6472 warning.
6473 * resolv/inet_ntop.c (inet_ntop6): Initialize best.len and cur.len
6474 to avoid warnings.
6475
701666b7
UD
6476 * nss/nsswitch.c (__nss_lookup_function): Don't cast &ni->known to
6477 void **.
6478 * nss/nsswitch.h (service_user): Use void * type for KNOWN field.
6479
6480 * nss/nss_files/files-hosts.c (LINE_PARSER): Cast host_addr to
6481 char * to avoid warning.
6482 * nis/nss_nis/nis-hosts.c (LINE_PARSER): Likewise.
6483
6484 * timezone/Makefile (CFLAGS-zdump.c): Add -fwrapv.
6485
6486 * locale/programs/ld-ctype.c (ctype_finish, set_class_defaults,
6487 allocate_arrays): Cast second argument to charmap_find_symbol
6488 to char * to avoid warnings.
6489
6490 * locale/programs/repertoire.c (repertoire_new_char): Change
6491 from_nr, to_nr and cnt to unsigned long, adjust printf format
6492 string.
6493
6494 * locale/programs/ld-collate.c (insert_value, handle_ellipsis):
6495 Cast second argument to new_element to char * to avoid warnings.
6496
6497 * locale/weightwc.h (findidx): Cast &extra[-i] to const int32_t *.
6498
6499 * intl/gettextP.h (struct loaded_domain): Change plural to const
6500 struct expression *.
6501 * intl/plural-eval.c (plural_eval): Change first argument to
6502 const struct expression *.
6503 * intl/plural-exp.c (EXTRACT_PLURAL_EXPRESSION): Change first
6504 argument to const struct expression **.
6505 * intl/plural-exp.h (EXTRACT_PLURAL_EXPRESSION, plural_eval): Adjust
6506 prototypes.
6507 * intl/loadmsgcat (_nl_unload_domain): Cast away const
6508 in call to __gettext_free_exp.
6509
6510 * posix/fnmatch.c (fnmatch): Rearrange code to avoid maybe
6511 unitialized wstring/wpattern var warnings.
6512
6513 * posix/runtests.c (struct a_test): Make data field const char *.
6514
6515 * stdio-common/tst-sprintf2.c (main): Don't declere u, v and buf
6516 vars if not LDBL_MANT_DIG >= 106.
6517
6518 * stdio-common/Makefile (CFLAGS-vfwprintf.c): Add -Wno-unitialized.
6519
6520 * stdio-common/vfprintf.c (vfprintf): Cast first arugment to
6521 __find_specmb to avoid warning.
6522
6523 * rt/tst-mqueue1.c (do_one_test): Add casts to avoid warnings.
6524
6525 * debug/test-strcpy_chk.c (do_tests, do_random_tests): Add casts
6526 to avoid warnings.
6527
6528 * sysdeps/ieee754/ldbl-96/s_roundl.c (huge): Add L suffix to
6529 initializer.
6530
6531 * sysdeps/unix/clock_gettime.c (clock_gettime): Only define
6532 tv var when it will be actually used.
6533
6534 * sunrpc/rpc_cmsg.c (xdr_callmsg): Cast IXDR_PUT_* to void
6535 to avoid warnings.
6536
085a4412
UD
6537 * iconvdata/gbk.c (BODY): Make buf and cp char instead of unsigned
6538 char array resp. pointer.
6539 * iconvdata/iso-2022-kr.c (BODY): Make buf unsigned char instead of
6540 char array.
6541 * iconvdata/cns11643.h (cns11643_to_ucs4): Change first argument
6542 to const unsigned char **.
6543 (ucs4_to_cns11643): Change second argument to unsigned char *.
6544 * iconvdata/euc-tw.c (BODY): Change endp type to
6545 const unsigned char *.
6546 * iconvdata/iso-ir-165.h (ucs4_to_isoir165): Change second argument
6547 to unsigned char *.
6548 * iconvdata/ibm1008_420.c (LOOP_NEED_FLAGS): Don't define.
6549 * iconvdata/iso-2022-cn.c (BODY): Change buf to unsigned char array.
6550 * iconvdata/iso-2022-cn-ext.c (BODY): Change buf, tmpbuf, tmp
6551 types to unsigned char pointers/arrays instead of char.
6552 * iconvdata/jis0201.h (ucs4_to_jisx0201): Change second argument
6553 to unsigned char *.
6554 * iconvdata/jis0208.h (ucs4_to_jisx0208): Likewise.
6555 * iconvdata/jis0212.h: Include assert.h.
6556 (ucs4_to_jisx0212): Change second argument to unsigned char *.
6557 assert that if cp[0] is not '\0', cp[1] is not '\0' either instead
6558 of trying to handle that.
6559 * iconvdata/euc-kr.c (euckr_from_ucs4): Initialize also cp[1] to
6560 shut up a warning.
6561 * iconvdata/euc-jp-ms.c (from_ucs4_lat1, from_ucs4_greek,
6562 from_ucs4_cjk, from_ucs4_cjkcpt, from_ucs4_extra): Change type to
6563 two dimensional const unsigned char arrays.
6564 (BODY): Cast "" to (const unsigned char *) for assignment to cp.
6565 Initialize endp to inptr to shut up a warning.
6566
fa69dc9c
UD
65672007-07-20 Jakub Jelinek <jakub@redhat.com>
6568
ae1ad762
UD
6569 [BZ #4772]
6570 * time/strptime_l.c (__strptime_internal): Silently ignore
6571 strftime modifiers and field width in recursive calls.
6572
fa69dc9c
UD
6573 * include/time.h (enum ptime_locale_status): Remove.
6574 (__strptime_internal): Remove decided and era_cnt arguments,
6575 add statep argument.
6576 * time/strptime_l.c (__strptime_internal): Remove decided
6577 and era_cnt arguments, add statep argument. Don't recompute
6578 any fields in recursive calls, only update caller's tm
6579 and state, if recursive call fails, don't change tm nor
6580 any state.
6581 (get_alt_number): Adjust.
6582 (recursive): Adjust caller.
6583 (strptime): Likewise.
6584 * time/strptime.c (strptime): Likewise.
6585
7b503bcc
UD
65862007-07-19 Jakub Jelinek <jakub@redhat.com>
6587
6588 * iconv/gconv_int.h (__GCONV_NULCONV): New internal only error code.
6589 * iconv/gconv_cache.c (__gconv_lookup_cache): Return __GCONV_NULCONV
6590 if from and to charsets are the same.
6591 * iconv/gconv_db.c (__gconv_find_transform): Likewise.
6592 * intl/dcigettext.c (_nl_find_msg): Return NULL even if __gconv_open
6593 returns __GCONV_NOCONV, but not for __GCONV_NULCONV.
6594
65952007-07-17 Jakub Jelinek <jakub@redhat.com>
6596
6597 * wcsmbs/wchar.h: Only define wint_t if __need_wint_t.
6598 Don't define wint_t when __need_mbstate_t unless it
6599 is necessary.
6600 (__mbstate_t): Use __WINT_TYPE__ rather than wint_t
6601 in the typedef if possible.
6602 * wctype/wctype.h (wint_t): Define by including
6603 wchar.h with __need_wint_t instead of including stddef.h
6604 with __need_wint_t and as fallback definining it ourselves.
6605 * iconv/gconv.h (__need_wint_t): Define before including
6606 wchar.h.
6607 * sysdeps/gnu/_G_config.h: Don't include gconv.h if not _LIBC
6608 or _GLIBCPP_USE_WCHAR_T.
6609 (__need_wchar_t): Don't define
6610 if not _LIBC or _GLIBCPP_USE_WCHAR_T.
6611 (__need_wint_t): Don't define before including stddef.h,
6612 define before including wchar.h only if _LIBC or
6613 _GLIBCPP_USE_WCHAR_T.
6614 (_G_iconv_t): Don't define if not _LIBC or _GLIBCPP_USE_WCHAR_T.
6615 * sysdeps/mach/hurd/_G_config.h: Likewise.
6616 * sysdeps/generic/_G_config.h: Likewise.
6617 * libio/libio.h (__wunderflow, __wuflow, __woverflow): Only
6618 prototype if _LIBC or _GLIBCPP_USE_WCHAR_T.
6619 (_IO_getwc_unlocked, _IO_putwc_unlocked): Only define
6620 if _LIBC or _GLIBCPP_USE_WCHAR_T.
6621
a95a608f
UD
66222007-07-28 Ulrich Drepper <drepper@redhat.com>
6623
6624 * sysdeps/posix/posix_fallocate64.c: Undefine
6625 __posix_fallocate64_l64 before alias handling.
6626 * sysdeps/unix/sysv/linux/posix_fallocate.c: New file.
6627 * sysdeps/unix/sysv/linux/posix_fallocate64.c: New file.
6628 * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c: New file.
6629 * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate64.c: New file.
6630
6631 * io/tst-posix_fallocate.c: Include <fcntl.h>.
6632
66332007-07-23 Jakub Jelinek <jakub@redhat.com>
6634
6635 * locale/programs/ld-collate.c (atwc): New variable.
6636 (add_to_tablewc): New toplevel function, moved from collate_output.
6637 (collate_output): Remove add_to_tablewc nested function.
6638
6639 * iconv/iconvconfig.c (hash_table, hash_size): New toplevel vars.
6640 (name_insert): New function.
6641 (write_output): Remove hash_table and hash_size vars and name_insert
6642 nested function.
6643
80d4c3b0
RM
66442007-07-24 Roland McGrath <roland@redhat.com>
6645
6646 * Makerules (install-others-programs-nosubdir): New target.
6647 (install-no-libc.a-nosubdir): Depend on it.
6648
6649 * iconv/Makefile (install-others-programs): Set this instead of
6650 install-others.
6651 * login/Makefile (install-others-programs): Likewise.
6652 * posix/Makefile (install-others-programs): Likewise.
6653
6654 * Makerules (install-no-libc.a-nosubdir): Clean up conditional
6655 dependencies.
6656
c1bf9f14
UD
66572007-07-23 Ulrich Drepper <drepper@redhat.com>
6658
6659 * io/Makefile (tests): Add tst-posix_fallocate.
6660 * io/tst-posix_fallocate.c: New file.
6661
6662 * sysdeps/unix/sysv/linux/kernel-features.h: Define
6663 __ASSUME_FALLOCATE.
6664
2320270c
RM
66652007-07-22 Roland McGrath <roland@frob.com>
6666
3dadfa7e
RM
6667 * hurd/getdport.c: Add missing copyright year update.
6668
2320270c
RM
6669 * sysdeps/mach/hurd/bits/fcntl.h [__USE_GNU] (O_CLOEXEC): New macro.
6670 * hurd/port2fd.c (_hurd_port2fd): Implement O_CLOEXEC.
6671
cc783763
UD
66722007-07-22 Ulrich Drepper <drepper@redhat.com>
6673
c942388d
UD
6674 * login/utmp_file.c (setutent_file): Use O_CLOEXEC if possible.
6675
cc783763
UD
6676 * libio/fileops.c (_IO_new_file_fopen): Recognize 'e' flag and set
6677 O_CLOEXEC is needed.
6678 * nis/nss_compat/compat-grp.c: Use 'e' flag when opening file.
6679 Avoid additional fcntl to set O_CLOEXEC if not needed.
6680 * nis/nss_compat/compat-initgroups.c: Likewise.
6681 * nis/nss_compat/compat-pwd.c: Likewise.
6682 * nis/nss_compat/compat-spwd.c: Likewise.
6683
610903b0
RM
66842007-07-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
6685
3dadfa7e 6686 [BZ #3665]
5c3d7832
RM
6687 * manual/errno.texi: Change ECANCELED value to 119.
6688
3dadfa7e 6689 [BZ #4610]
610903b0
RM
6690 * mach/lock-intern.h: Include <sys/cdefs.h>.
6691
3dadfa7e 6692 [BZ #4178]
610903b0
RM
6693 * sysdeps/mach/hurd/sigaction.c (__sigaction): Check ACT != NULL before
6694 reading A.
6695
3dadfa7e
RM
6696 [BZ #4126]
6697 * sysdeps/mach/hurd/sigsuspend.c (sigsuspend_not_cancel): Define alias
6698 to __sigsuspend.
610903b0
RM
6699
6700 * sysdeps/mach/i386/sysdep.h: Include <dl-sysdep.h> and <tls.h>.
6701
67022006-06-13 Thomas Schwinge <tschwinge@gnu.org>
6703
6704 * sysdeps/mach/hurd/tls.h: Change `ASSEMBLER' conditional to
6705 `__ASSEMBLER__'.
6706 * sysdeps/mach/hurd/i386/tls.h: Likewise.
6707
acf79996
UD
67082007-07-21 Ulrich Drepper <drepper@redhat.com>
6709
dde0763a
UD
6710 * nscd/nscd_helper.c (get_mapping): Use MSG_CMSG_CLOEXEC for
6711 descriptor received from nscd.
6712
acf79996
UD
6713 * sysdeps/unix/sysv/linux/bits/socket.h: Define MSG_CMSG_CLOEXEC.
6714
6715 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define O_CLOEXEC.
6716 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
6717 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
6718 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
6719 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
6720 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
6721
00d26929
JJ
67222007-07-20 Jakub Jelinek <jakub@redhat.com>
6723
403445d7
JJ
6724 [BZ #4816]
6725 * manual/signal.texi (Non-atomic Example): Make memory var volatile.
6726
00d26929
JJ
6727 [BZ #4813]
6728 * login/forkpty.c (forkpty): Close master and slave fds on
6729 fork failure. Patch by
6730 Mikulas Patocka <mikulas@artax.karlin.mff.cuni.cz>.
6731
087722b8
UD
67322007-07-18 Jakub Jelinek <jakub@redhat.com>
6733
6734 * include/features.h (__USE_ISOC95): New define.
6735 * wcsmbs/wchar.h (fwprintf, fwscanf, wprintf, wscanf, swprintf,
6736 swscanf, vfwprintf, vwprintf, vswprintf, fwide): Define even
6737 for -std=iso9899:199409.
6738 * CONFORMANCE: Remove comments about unsupported AMD1.
6739
b042b023
UD
67402007-07-17 Jakub Jelinek <jakub@redhat.com>
6741
6742 * sysdeps/ia64/sched_cpucount.c: New file.
6743 * sysdeps/powerpc/sched_cpucount.c: New file.
6744
8381e467
UD
6745 * sysdeps/unix/sysv/linux/bits/sched.h (__sched_cpucount): Add
6746 __BEGIN_DECLS/__END_DECLS around the prototype.
6747 * bits/sched.h (__sched_cpucount): Likewise. Make second argument
6748 pointer to const cpu_set_t.
6749
50e16f85
UD
6750 * bits/types.h: Don't include stddef.h, don't define __need_size_t.
6751 * signal/signal.h <__USE_BSD || __USE_XOPEN_EXTENDED>: Define
6752 __need_size_t and include stddef.h.
6753 * sysvipc/sys/msg.h: Likewise.
6754 * posix/sched.h: Likewise.
6755 * hurd/hurd/signal.h (__need_size_t): Define.
6756
6757 * CONFORMANCE: ctype.h and wctype.h no longer define size_t,
6758 neither does signal.h in pedantic ISO C namespaces. stdio.h
6759 no longer defines wint_t or wchar_t.
6760
b257c726
UD
6761 * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct): New function.
6762 * debug/vfwprintf_chk.c (__vfwprintf_chk): Use
6763 _IO_acquire_lock_clear_flags2 instead of _IO_acquire_lock.
6764 * debug/vprintf_chk.c (__vprintf_chk): Likewise.
6765 * debug/vwprintf_chk.c (__vwprintf_chk): Likewise.
6766 * debug/vfprintf_chk.c (__vfprintf_chk): Likewise.
6767 * debug/fwprintf_chk.c (__fwprintf_chk): Likewise.
6768 * debug/printf_chk.c (__printf_chk): Likewise.
6769 * debug/fprintf_chk.c (__fprintf_chk): Likewise.
6770 * debug/wprintf_chk.c (__wprintf_chk): Likewise.
6771
6772 * sysdeps/pthread/bits/stdio-lock.h (_IO_acquire_lock_clear_flags2):
6773 Define.
6774
d5078b9f
UD
6775 * bits/confname.h (_CS_POSIX_V6_WIDTH_RESTRICTED_ENVS): Define.
6776 * posix/getconf.c (vars): Add POSIX_V6_WIDTH_RESTRICTED_ENVS.
6777
1c3e748e
UD
67782007-07-16 Jakub Jelinek <jakub@redhat.com>
6779
6780 [BZ #4792]
6781 * stdlib/stdlib.h (realloc): Remove __attribute_malloc__.
6782 * malloc/malloc.h (realloc): Likewise.
6783
4e425301
UD
6784 * libio/iopopen.c (_IO_new_proc_open): Don't close child_std_end
6785 if one of proc_file_chain streams has that fileno.
6786 * stdio-common/Makefile (tests): Add tst-popen2.
6787 * stdio-common/tst-popen2.c: New test.
6788
2e2efe65
RM
67892007-07-14 Jakub Jelinek <jakub@redhat.com>
6790
6791 * elf/ldconfig.c: Allow GPLv2 or any later version.
6792 * elf/readlib.c: Likewise.
6793 * elf/chroot_canon.c: Likewise.
6794 * elf/cache.c: Likewise.
6795 * nscd/mem.c: Likewise.
6796 * nscd/getpwuid_r.c: Likewise.
6797 * nscd/grpcache.c: Likewise.
6798 * nscd/aicache.c: Likewise.
6799 * nscd/getsrvbynm_r.c: Likewise.
6800 * nscd/nscd.c: Likewise.
6801 * nscd/servicescache.c: Likewise.
6802 * nscd/getsrvbypt_r.c: Likewise.
6803 * nscd/initgrcache.c: Likewise.
6804 * nscd/gethstbyad_r.c: Likewise.
6805 * nscd/gethstbynm2_r.c: Likewise.
6806 * nscd/getgrnam_r.c: Likewise.
6807 * nscd/nscd_setup_thread.c: Likewise.
6808 * nscd/getpwnam_r.c: Likewise.
6809 * nscd/gai.c: Likewise.
6810 * nscd/connections.c: Likewise.
6811 * nscd/dbg_log.c: Likewise.
6812 * nscd/cache.c: Likewise.
6813 * nscd/hstcache.c: Likewise.
6814 * nscd/nscd_conf.c: Likewise.
6815 * nscd/getgrgid_r.c: Likewise.
6816 * nscd/pwdcache.c: Likewise.
6817 * catgets/gencat.c: Likewise.
6818 * locale/programs/linereader.h: Likewise.
6819 * locale/programs/locarchive.c: Likewise.
6820 * locale/programs/ld-paper.c: Likewise.
6821 * locale/programs/locfile-kw.h: Likewise.
6822 * locale/programs/ld-address.c: Likewise.
6823 * locale/programs/xmalloc.c: Likewise.
6824 * locale/programs/ld-time.c: Likewise.
6825 * locale/programs/localedef.c: Likewise.
6826 * locale/programs/simple-hash.c: Likewise.
6827 * locale/programs/xstrdup.c: Likewise.
6828 * locale/programs/ld-numeric.c: Likewise.
6829 * locale/programs/locfile-kw.gperf: Likewise.
6830 * locale/programs/ld-collate.c: Likewise.
6831 * locale/programs/charmap-kw.gperf: Likewise.
6832 * locale/programs/charmap.h: Likewise.
6833 * locale/programs/charmap-kw.h: Likewise.
6834 * locale/programs/config.h: Likewise.
6835 * locale/programs/locfile.c: Likewise.
6836 * locale/programs/ld-ctype.c: Likewise.
6837 * locale/programs/charmap.c: Likewise.
6838 * locale/programs/ld-messages.c: Likewise.
6839 * locale/programs/repertoire.h: Likewise.
6840 * locale/programs/locale.c: Likewise.
6841 * locale/programs/ld-name.c: Likewise.
6842 * locale/programs/linereader.c: Likewise.
6843 * locale/programs/locfile.h: Likewise.
6844 * locale/programs/3level.h: Likewise.
6845 * locale/programs/ld-monetary.c: Likewise.
6846 * locale/programs/ld-measurement.c: Likewise.
6847 * locale/programs/charmap-dir.c: Likewise.
6848 * locale/programs/ld-identification.c: Likewise.
6849 * locale/programs/localedef.h: Likewise.
6850 * locale/programs/charmap-dir.h: Likewise.
6851 * locale/programs/repertoire.c: Likewise.
6852 * locale/programs/simple-hash.h: Likewise.
6853 * locale/programs/ld-telephone.c: Likewise.
6854 * locale/programs/locale-spec.c: Likewise.
6855 * locale/programs/locfile-token.h: Likewise.
6856 * posix/getconf.c: Likewise.
6857 * iconv/dummy-repertoire.c: Likewise.
6858 * iconv/iconv_charmap.c: Likewise.
6859 * iconv/iconvconfig.c: Likewise.
6860 * iconv/iconv_prog.c: Likewise.
6861 * malloc/memusagestat.c: Likewise.
6862 * sysdeps/unix/sysv/linux/nscd_setup_thread.c: Likewise.
6863
84c23a3d
RM
68642007-07-06 Kaz Kojima <kkojima@rr.iij4u.or.jp>
6865
6866 * sysdeps/sh/bsd-setjmp.S (setjmp): Use correct argument registers.
6867 * sysdeps/sh/bsd-_setjmp.S (_setjmp): Likewise.
6868 * sysdeps/unix/sysv/linux/sh/clone.S (__clone): Do correct sanity
6869 check for the first argument.
6870
1c298d08
UD
68712007-07-12 Jakub Jelinek <jakub@redhat.com>
6872
6873 [BZ #4775]
6874 * math/tgmath.h (__tgmath_real_type_sub): Formatting.
6875 (__tgmath_real_type): Fix if expr is const int or other const
6876 qualified integral type.
6877 (__TGMATH_UNARY_REAL_ONLY): Rewritten to avoid using statement
6878 expressions and handle const qualified arguments.
6879 (__TGMATH_BINARY_FIRST_REAL_ONLY, __TGMATH_UNARY_REAL_IMAG,
6880 __TGMATH_UNARY_REAL_IMAG_RET_REAL): Likewise.
6881 (__TGMATH_UNARY_REAL_RET_ONLY): Rewritten to avoid using
6882 statement expressions.
6883 (__TGMATH_BINARY_REAL_ONLY, __TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY,
6884 __TGMATH_TERNARY_REAL_ONLY, __TGMATH_BINARY_REAL_IMAG): Likewise.
6885 (__TGMATH_UNARY_IMAG): Define.
6886 (conj, cproj): Use __TGMATH_UNARY_IMAG macro.
6887 * math/Makefile (tests): Add test-tgmath2.
6888 (CFLAGS-test-tgmath2.c): Add.
6889 * math/test-tgmath.c (fy, dy, ly, fz, dz, lz, count_cdouble,
6890 count_cfloat, count_cldouble): New variables.
6891 (NCCALLS): Define.
6892 (main): Check number of complex calls as well.
6893 (F(compile_test)): Add complex tests and tests with const qualified
6894 arguments.
6895 (y, z, ccount): Define.
6896 (F(cacos), F(casin), F(catan), F(ccos), F(csin), F(ctan), F(cacosh),
6897 F(casinh), F(catanh), F(ccosh), F(csinh), F(ctanh), F(cexp), F(clog),
6898 F(csqrt), F(cpow), F(cabs), F(carg), F(creal), F(cimag), F(conj),
6899 F(cproj)): New functions.
6900 * math/test-tgmath2.c: New test.
6901
69022007-07-11 Jakub Jelinek <jakub@redhat.com>
6903
6904 [BZ #4776]
6905 * elf/dl-load.c (_dl_rtld_di_serinfo): Output / in LD_LIBRARY_PATH,
6906 RPATH etc. as "/" rather than "", don't segfault on empty paths,
6907 instead output ".".
6908 * dlfcn/Makefile (distribute): Add glreflib3.c.
6909 (module-names): Add glreflib3.
6910 ($(objpfx)tst-dlinfo.out): Depend on glreflib3.so rather than
6911 glreflib1.so.
6912 (LDFLAGS_glreflib3.so): New.
6913 * dlfcn/tst-dlinfo.c (do_test): Load glreflib3.so instead of
6914 glreflib1.so.
6915 * dlfcn/glreflib3.c: New file.
6916
6917 * intl/finddomain.c (_nl_find_domain): If _nl_explode_name
6918 returned -1, return NULL.
6919 * intl/explodename.c (_nl_explode_name): Return -1 if
6920 _nl_normalize_codeset failed.
6921
a88f47a7
UD
69222007-07-07 Steven Munroe <sjmunroe@us.ibm.com>
6923
6924 * sysdeps/powerpc/powerpc32/power6/memset.S: Update comments.
6925 Specify .machine power6 to get ISA-V2.0 branch hints. Unroll loops
6926 and avoid branch misspredicts for > 31 bytes memset case.
6927 * sysdeps/powerpc/powerpc64/power6/memset.S: Likewise.
6928 Remove toc ref to __cache_line_size.
6929
6930 * sysdeps/powerpc/powerpc32/power4/memcmp.S: Specify .machine power4
6931 to get ISA-V2.0 branch hints.
6932 * sysdeps/powerpc/powerpc32/power4/memcpy.S: Likewise
6933 * sysdeps/powerpc/powerpc32/power4/memset.S: Likewise
6934 * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
6935 * sysdeps/powerpc/powerpc64/power4/memcmp.S: Likewise.
6936 * sysdeps/powerpc/powerpc64/power4/memcpy.S: Likewise.
6937 * sysdeps/powerpc/powerpc64/power4/memset.S: Likewise.
6938 Remove toc ref to __cache_line_size.
6939
6940 * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S:
6941 Include math_ldbl_opt.h.
6942
f98c2d06
UD
69432007-07-10 Ulrich Drepper <drepper@redhat.com>
6944
6945 [BZ #4773]
6946 * time/strptime_l.c (__strptime_internal): Implement greedy
6947 matching of weekday and month names.
6948
cec5991f
RM
69492007-07-09 Roland McGrath <roland@redhat.com>
6950
6951 * elf/elf.h (NT_GNU_ABI_TAG): New macro.
6952 (ELF_NOTE_ABI): Use it.
6953 (NT_GNU_HWCAP, NT_GNU_BUILD_ID): New macros.
6954
8c1dcd26
UD
69552007-07-09 Ulrich Drepper <drepper@redhat.com>
6956
6957 * sysdeps/x86_64/cacheinfo.c (intel_02_known): Add new entries.
6958 * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
6959
c2c7bd3f
UD
69602007-07-07 Ulrich Drepper <drepper@redhat.com>
6961
6962 [BZ #4745]
0923a2c8
UD
6963 * stdio-common/vfscanf.c (_IO_vfscanf): Add additional test for EOF
6964 in loop to look for conversion specifier to avoid testing of
6965 wrong errno value.
6966 * stdio-common/Makefile (tests): Add bug18, bug18a, bug19, bug19a.
c2c7bd3f 6967 * stdio-common/bug18.c: New file.
0923a2c8
UD
6968 * stdio-common/bug18a.c: New file.
6969 * stdio-common/bug19.c: New file.
6970 * stdio-common/bug19a.c: New file.
c2c7bd3f 6971
4facf4af
RM
69722007-07-05 Mike Frysinger <vapier@gentoo.org>
6973
6974 * Makeconfig ($(common-objpfx)gnu/lib-names.stmp): Use LC_ALL=C when
6975 running awk script.
6976
1311e86e
UD
69772007-07-01 Jakub Jelinek <jakub@redhat.com>
6978
6979 * elf/dl-sysdep.c (_dl_important_hwcaps): Add integer overflow check.
6980 * elf/dl-minimal.c (__libc_memalign): Likewise. Handle malloc (0).
6981 Return NULL if mmap failed instead of asserting it does not.
6982 (calloc): Check for integer overflow.
6983
6984 * elf/dl-minimal.c (__strtoul_internal): Fix parsing of numbers bigger
6985 than LONG_MAX / 10.
6986
57c9179c
UD
69872007-07-03 Jakub Jelinek <jakub@redhat.com>
6988
6989 [BZ #4702]
6990 * nis/nss-default.c: Include errno.h.
6991 (init): Preserve errno.
6992
d0b283a8
UD
69932007-07-02 Ulrich Drepper <drepper@redhat.com>
6994
6995 * sysdeps/unix/sysv/linux/bits/socket.h (PF_UNIX): Update comment.
6996
34e0bbaf
UD
69972007-06-30 Ulrich Drepper <drepper@redhat.com>
6998
6999 * sysdeps/unix/sysv/linux/bits/socket.h: Add PF_RXRPC and AF_RXRPC.
7000
70012007-06-29 Martin Schwidefsky <schwidefsky@de.ibm.com>
7002
7003 * sysdeps/unix/sysv/linux/bits/socket.h: Add PF_IUCV and AF_IUCV.
7004
34e0bbaf 70052007-06-29 Martin Schwidefsky <schwidefsky@de.ibm.com>
33516494
UD
7006
7007 * sysdeps/s390/dl-procinfo.c: New file.
7008 * sysdeps/s390/dl-procinfo.h: New file.
7009 * sysdeps/unix/sysv/linux/s390/dl-procinfo.h: New file.
7010
0e508a6e
UD
70112007-06-29 Jakub Jelinek <jakub@redhat.com>
7012
7013 * elf/dl-load.c (open_verify): Find .note.ABI-tag notes even
7014 in PT_NOTE segments with multiple notes.
7015 * elf/readelflib.c (process_elf_file): Likewise.
7016
e22c61fb
UD
70172007-06-22 Ulrich Drepper <drepper@redhat.com>
7018
7019 * nis/nis_domain_of.c (__nis_domain_of): Make the code a bit more
7020 ISO C compliant.
7021
e4eb675d
UD
70222007-06-19 Ulrich Drepper <drepper@redhat.com>
7023
7024 * elf/dl-close.c (free_mem): Free _dl_scope_free_list.
7025
70262007-06-13 Jakub Jelinek <jakub@redhat.com>
7027
7028 * include/link.h: Don't include rtld-lowlevel.h.
7029 (struct link_map): Remove l_scope_lock.
7030 * sysdeps/generic/ldsodefs.h: Don't include rtld-lowlevel.h.
7031 (_dl_scope_free_list): New field (variable) in _rtld_global.
7032 (DL_LOOKUP_SCOPE_LOCK): Remove.
7033 (_dl_scope_free): New prototype.
7034 * elf/dl-runtime.c (_dl_fixup): Don't use __rtld_mrlock_*lock.
7035 Don't pass DL_LOOKUP_SCOPE_LOCK to _dl_lookup_symbol_x.
7036 (_dl_profile_fixup): Likewise.
7037 * elf/dl-sym.c (do_sym): Likewise. Use wrapped _dl_lookup_symbol_x
7038 whenever !RTLD_SINGLE_THREAD_P, use THREAD_GSCOPE_SET_FLAG and
7039 THREAD_GSCOPE_RESET_FLAG around it.
7040 * elf/dl-close.c (_dl_close_worker): Don't use
7041 __rtld_mrlock_{change,done}. Call _dl_scope_free on the old
7042 scope. Make sure THREAD_GSCOPE_WAIT () happens if any old
7043 scopes were queued or if l_scope_mem has been abandoned.
7044 * elf/dl-open.c (_dl_scope_free): New function.
7045 (dl_open_worker): Use it. Don't use __rtld_mrlock_{change,done}.
7046 * elf/dl-support.c (_dl_scope_free_list): New variable.
7047 * elf/dl-lookup.c (add_dependency): Remove flags argument.
7048 Remove DL_LOOKUP_SCOPE_LOCK handling.
7049 (_dl_lookup_symbol_x): Adjust caller. Remove DL_LOOKUP_SCOPE_LOCK
7050 handling.
7051 * elf/dl-object.c (_dl_new_object): Don't use
7052 __rtld_mrlock_initialize.
7053
9be09e06
UD
70542007-06-19 Ulrich Drepper <drepper@redhat.com>
7055
7056 * sysdeps/generic/ldsodefs.h (rtld_global): Reorder some elements
7057 to fill in holes
7058 (rtld_global_ro): Likewise.
7059
70602007-06-18 Jakub Jelinek <jakub@redhat.com>
7061
7062 * elf/dl-addr.c (_dl_addr): Skip PT_LOAD checking if l_contiguous.
7063 Move PT_LOAD checking to...
7064 (_dl_addr_inside_object): ... here, new function.
7065 * elf/dl-sym.c (do_sym): If not l_contiguous,
7066 call _dl_addr_inside_object.
7067 * elf/dl-iteratephdr.c (__dl_iterate_phdr): Likewise.
7068 * dlfcn/dlinfo.c (dlinfo_doit): Likewise.
7069 * elf/dl-open.c (dl_open_worker): Likewise.
7070 (_dl_addr_inside_object): New function if IS_IN_rtld.
7071 * elf/dl-load.c (_dl_map_object_from_fd): Set l_contiguous if no
7072 holes are present or are PROT_NONE protected.
7073 * include/link.h (struct link_map): Add l_contiguous field.
7074 * sysdeps/generic/ldsodefs.h (_dl_addr_inside_object): New prototype.
7075
ae1ad3ae 70762007-06-18 Jakub Jelinek <jakub@redhat.com>
f00d47a3
AS
7077 Tomas Janousek <tjanouse@redhat.com>
7078 Ulrich Drepper <drepper@redhat.com>
ae1ad3ae
UD
7079
7080 [BZ #4647]
7081 * resolv/res_send.c (send_dg): Remove socket_pf. Use ipv6_unavail
7082 member in __res_state, only convaddr4to6 if nssocks[ns] is a PF_INET6
7083 socket.
7084 * resolv/resolv.h (__res_state): Add ipv6_unavail member. Make
7085 unused member a bitmap.
7086 * resolv/res_init.c (__res_vinit): Reset ipv6_unavail if IPv6
7087 servers are configured.
7088
3abee0b7
UD
70892007-06-18 Jakub Jelinek <jakub@redhat.com>
7090
7091 * elf/rtld.c (dl_main): Don't call init_tls more than once.
7092
89074592
UD
70932007-06-17 Andreas Schwab <schwab@suse.de>
7094
7095 * sysdeps/generic/initfini.c: Tell gcc about the nonstandard sections.
7096
b26e274d
AJ
70972007-06-16 Andreas Jaeger <aj@suse.de>
7098
7099 [BZ #4125]
7100 * sysdeps/unix/sysv/linux/sys/ptrace.h
7101 (PTRACE_O_TRACESYSGOOD, PTRACE_O_TRACEFORK,
7102 PTRACE_O_TRACEVFORK, PTRACE_O_TRACECLONE, PTRACE_O_TRACEEXEC,
89074592 7103 PTRACE_O_TRACEVFORKDONE, PTRACE_O_TRACEEXIT, PTRACE_O_MASK,
b26e274d
AJ
7104 PTRACE_EVENT_FORK, PTRACE_EVENT_VFORK, PTRACE_EVENT_CLONE,
7105 PTRACE_EVENT_EXEC, PTRACE_EVENT_VFORK_DONE, PTRACE_EVENT_EXIT):
7106 Define.
7107 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
7108 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
7109 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
7110 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
7111
e0d4a4e5
UD
71122007-06-16 Ulrich Drepper <drepper@redhat.com>
7113
7114 [BZ #4599]
7115 * sysdeps/unix/sysv/linux/check_pf.c (make_request): When
7116 determining whether there are IPv4/IPv6 addresses, ignore loopback
7117 addresses.
7118
ae8e81f5
JJ
71192007-06-14 Uros Bizjak <ubizjak@gmail.com>
7120
7121 * soft-fp/soft-fp.h (CMPtype): Define to "int" if undefined.
7122 * soft-fp/eqdf2.c (__eqdf2): Use CMPtype instead of int
7123 as the return type. Change type of "r" variable to CMPtype.
7124 * soft-fp/eqsf2.c (__eqsf2): Likewise.
7125 * soft-fp/eqtf2.c (__eqtf2): Likewise.
7126 * soft-fp/gedf2.c (__gedf2): Likewise.
7127 * soft-fp/gesf2.c (__gesf2): Likewise.
7128 * soft-fp/getf2.c (__getf2): Likewise.
7129 * soft-fp/ledf2.c (__ledf2): Likewise.
7130 * soft-fp/lesf2.c (__lesf2): Likewise.
7131 * soft-fp/letf2.c (__letf2): Likewise.
7132 * soft-fp/unorddf2 (__unorddf2): Likewise.
7133 * soft-fp/unordsf2 (__unordsf2): Likewise.
7134 * soft-fp/unordtf2 (__unordtf2): Likewise.
7135
90cd2413
UD
71362007-06-09 Ulrich Drepper <drepper@redhat.com>
7137
7138 * elf/do-lookup.h (do_lookup_x): Read r_nlist before r_list and
7139 make sure gcc doesn't mess around with this.
7140
3c457089
UD
71412007-06-08 Ulrich Drepper <drepper@redhat.com>
7142
7143 * elf/dl-lookup.c (_dl_lookup_symbol_x): Remove use of r_nlist.
7144
e8b6b64d
UD
71452007-06-08 Jakub Jelinek <jakub@redhat.com>
7146
7147 * elf/dl-close.c (_dl_close_worker): Remove all to be removed
7148 libraries from the global scope at once and call THREAD_GSCOPE_WAIT
7149 at most once per _dl_close_worker.
7150
36dffb22
UD
71512007-06-08 Ulrich Drepper <drepper@redhat.com>
7152
755db8c5
UD
7153 * sysdeps/unix/sysv/linux/bits/sched.h: Make second parameter of
7154 __sched_cpucount as const.
7155 * posix/sched_cpucount.c: Adjust.
7156
36dffb22
UD
7157 * posix/sched_cpucount.c (__sched_cpucount): Allow using special
7158 instruction for counting bits.
7159 * sysdeps/x86_64/sched_cpucount.c: New file.
7160
26f56c1c
UD
71612007-06-07 Ulrich Drepper <drepper@redhat.com>
7162
7163 * configure.in: Avoid variable named BASH.
e967d385 7164 * config.make.in: Likewise.
26f56c1c 7165 Patch in part by Mike Frysinger.
835abc5c 7166
26f56c1c 71672007-06-06 Jakub Jelinek <jakub@redhat.com>
47779a7d
JJ
7168
7169 [BZ #4586]
835abc5c
UD
7170 * sysdeps/i386/ldbl2mpn.c (__mpn_extract_long_double): Treat
7171 pseudo-zeros as zero.
7172 * sysdeps/x86_64/ldbl2mpn.c: New file.
7173 * sysdeps/ia64/ldbl2mpn.c: New file.
7174
7e3706ea
UD
71752007-06-04 Jakub Jelinek <jakub@redhat.com>
7176
7177 * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (nextafterl): Remove
7178 unused ily variable. Fix nextafterl on +-__LDBL_MAX__ and +-Inf.
7179 Remove unreachable code at the end.
7180
71812007-06-01 Steven Munroe <sjmunroe@us.ibm.com>
7182
7183 * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c: Correct description of
7184 ldbl-128ibm in comment.
7185 (fpclassifyl): Correct classification of denormals.
7186 * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (nextafterl): Correct
7187 return value for MIN denormal. Rewrite using long double math too
7188 correctly handle denormals and canonicalize the results.
7189
71902007-06-05 Jakub Jelinek <jakub@redhat.com>
7191
7192 * sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c
7193 (__mpn_construct_long_double): Fix conversion where result ought
7194 to be smaller than __LDBL_MIN__, or the low double should be
7195 denormal. Fix decision where to negate low double - honor round
7196 to even rules.
7197 * stdio-common/tst-sprintf2.c: Include string.h.
7198 (COMPARE_LDBL): Define.
7199 (TEST): Also test whether a string hexadecimal float representation
7200 can be parsed back to the number.
7201 (main): Add a couple of further tests.
7202
43b76828
UD
72032007-06-04 Jakub Jelinek <jakub@redhat.com>
7204
7205 * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c
7206 (PRINT_FPHEX_LONG_DOUBLE): Fix printing numbers where lower double
7207 is non-zero, but smaller than 2 * __DBL_MIN__.
7208 * stdio-common/tst-sprintf2.c: New test.
7209 * stdio-common/Makefile (tests): Add tst-sprintf2.
7210
7211 * math/test-misc.c (main): Don't run last batch of tests with
7212 IBM long double format.
7213
04067002
UD
72142007-05-31 Steven Munroe <sjmunroe@us.ibm.com>
7215
7216 * sysdeps/powerpc/powerpc32/970/fpu/Implies: New file.
7217 * sysdeps/powerpc/powerpc32/power5/fpu/Implies: New file.
7218 * sysdeps/powerpc/powerpc32/power5+/fpu/Implies: New file.
7219 * sysdeps/powerpc/powerpc32/power6/fpu/Implies: New file.
7220 * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: New file.
7221 * sysdeps/powerpc/powerpc64/970/fpu/Implies: New file.
7222 * sysdeps/powerpc/powerpc64/power5/fpu/Implies: New file.
7223 * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: New file.
7224 * sysdeps/powerpc/powerpc64/power6/fpu/Implies: New file.
7225 * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: New file.
7226 * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/fpu/Implies: New file.
7227 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/fpu/Implies:
7228 New file.
7229 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/fpu/Implies:
7230 New file.
7231 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5+/fpu/Implies:
7232 New file.
7233 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/Implies:
7234 New file.
7235 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/fpu/Implies:
7236 New file.
7237 * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/fpu/Implies: New file.
7238 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/fpu/Implies:
7239 New file.
7240 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/fpu/Implies:
7241 New file.
7242 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5+/fpu/Implies:
7243 New file.
7244 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/Implies:
7245 New file.
7246 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/fpu/Implies:
7247 New file.
7248
72492007-05-31 Steven Munroe <sjmunroe@us.ibm.com>
7250
7251 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrint.S: Move.
7252 * sysdeps/powerpc/powerpc32/power4/fpu/s_llrint.S: To here.
7253 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrintf.S: Move.
7254 * sysdeps/powerpc/powerpc32/power4/fpu/s_llrintf.S: To here.
7255 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llround.S: Move.
7256 * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: To here.
7257 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llroundf.S: Move.
7258 * sysdeps/powerpc/powerpc32/power4/fpu/s_llroundf.S: To here.
7259
72602007-05-22 Steven Munroe <sjmunroe@us.ibm.com>
7261
7262 * sysdeps/powerpc/powerpc32/power5+/fpu/s_round.S
7263 (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
7264 * sysdeps/powerpc/powerpc32/power5+/fpu/s_trunc.S
7265 (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
7266 * sysdeps/powerpc/powerpc64/power5+/fpu/s_round.S
7267 (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
7268 * sysdeps/powerpc/powerpc64/power5+/fpu/s_trunc.S
7269 (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
7270
72712007-05-21 Steven Munroe <sjmunroe@us.ibm.com>
7272
7273 * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: New file.
7274 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.c: New file.
7275 * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: New file.
7276 * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: New file.
7277
72782007-03-15 Steven Munroe <sjmunroe@us.ibm.com>
7279
7280 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrint.S
7281 [LONG_DOUBLE_COMPAT]: Add compat_symbol for llrintl@@GLIBC_2_1.
7282
72832006-02-13 Steven Munroe <sjmunroe@us.ibm.com>
7284
7285 * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S: New File
7286 * sysdeps/powerpc/powerpc32/power6/fpu/s_llrintf.S: New File
7287 * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: New File
7288 * sysdeps/powerpc/powerpc32/power6/fpu/s_llroundf.S: New File
7289
72902006-10-20 Steven Munroe <sjmunroe@us.ibm.com>
7291
7292 * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: New file.
7293 * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: New file.
7294
72952006-10-03 Steven Munroe <sjmunroe@us.ibm.com>
7296
7297 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llround.S: New file.
7298 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llroundf.S: New file.
7299
7300 * sysdeps/powerpc/powerpc32/powerpc64/fpu/Makefile: Moved.
7301 * sysdeps/powerpc/powerpc32/powerpc64/fpu/mpa.c: Likewise.
7302 * sysdeps/powerpc/powerpc32/power4/fpu/Makefile: To here.
7303 * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Likewise.
7304
73052006-09-29 Steven Munroe <sjmunroe@us.ibm.com>
7306
7307 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lrint.S: New file.
7308 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lround.S: New file.
7309 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: New file.
7310 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: New file.
7311
73122006-09-28 Steven Munroe <sjmunroe@us.ibm.com>
7313
7314 * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: New file.
7315 * sysdeps/powerpc/powerpc32/power5+/fpu/s_llroundf.S: New file.
7316 * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: New file.
7317 * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: New file.
7318 * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: New file.
7319 * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: New file.
7320
73212006-08-31 Steven Munroe <sjmunroe@us.ibm.com>
7322
7323 * sysdeps/powerpc/powerpc32/powerpc64/fpu/Makefile: New file.
7324 * sysdeps/powerpc/powerpc32/powerpc64/fpu/mpa.c: New file.
7325 * sysdeps/powerpc/powerpc64/power4/fpu/Makefile: New file.
7326 * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: New file.
7327
73282006-06-15 Steven Munroe <sjmunroe@us.ibm.com>
7329
7330 * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceil.S: New file.
7331 * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceilf.S: New file.
7332 * sysdeps/powerpc/powerpc32/power5+/fpu/s_floor.S: New file.
7333 * sysdeps/powerpc/powerpc32/power5+/fpu/s_floorf.S: New file.
7334 * sysdeps/powerpc/powerpc32/power5+/fpu/s_round.S: New file.
7335 * sysdeps/powerpc/powerpc32/power5+/fpu/s_roundf.S: New file.
7336 * sysdeps/powerpc/powerpc32/power5+/fpu/s_trunc.S: New file.
7337 * sysdeps/powerpc/powerpc32/power5+/fpu/s_truncf.S: New file.
7338 * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceil.S: New file.
7339 * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceilf.S: New file.
7340 * sysdeps/powerpc/powerpc64/power5+/fpu/s_floor.S: New file.
7341 * sysdeps/powerpc/powerpc64/power5+/fpu/s_floorf.S: New file.
7342 * sysdeps/powerpc/powerpc64/power5+/fpu/s_round.S: New file.
7343 * sysdeps/powerpc/powerpc64/power5+/fpu/s_roundf.S: New file.
7344 * sysdeps/powerpc/powerpc64/power5+/fpu/s_trunc.S: New file.
7345 * sysdeps/powerpc/powerpc64/power5+/fpu/s_truncf.S: New file.
7346
73472006-03-20 Steven Munroe <sjmunroe@us.ibm.com>
7348
7349 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrint.S: New file.
7350 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrintf.S: New file.
7351
73522007-06-01 Steven Munroe <sjmunroe@us.ibm.com>
7353
7354 * sysdeps/powerpc/powerpc32/power6/memset.S: New file.
7355 * sysdeps/powerpc/powerpc64/power6/memset.S: New file.
7356
73572007-05-31 Steven Munroe <sjmunroe@us.ibm.com>
7358
7359 * sysdeps/powerpc/powerpc32/970/Implies: New file.
7360 * sysdeps/powerpc/powerpc32/power5/Implies: New file.
7361 * sysdeps/powerpc/powerpc32/power5+/Implies: New file.
7362 * sysdeps/powerpc/powerpc32/power6/Implies: New file.
7363 * sysdeps/powerpc/powerpc32/power6x/Implies: New file.
7364 * sysdeps/powerpc/powerpc64/970/Implies: New file.
7365 * sysdeps/powerpc/powerpc64/power5/Implies: New file.
7366 * sysdeps/powerpc/powerpc64/power5+/Implies: New file.
7367 * sysdeps/powerpc/powerpc64/power6/Implies: New file.
7368 * sysdeps/powerpc/powerpc64/power6x/Implies: New file.
7369
73702007-05-21 Steven Munroe <sjmunroe@us.ibm.com>
7371
7372 * sysdeps/powerpc/powerpc32/power4/memset.S: New file
7373
73742007-03-13 Steven Munroe <sjmunroe@us.ibm.com>
7375
7376 * sysdeps/powerpc/powerpc64/memcpy.S: Improve aligned loop to minimize
7377 branch miss-predicts. Ensure that cache line crossing does not impact
7378 dispatch grouping.
7379
73802006-12-13 Steven Munroe <sjmunroe@us.ibm.com>
7381
7382 * sysdeps/powerpc/powerpc64/power4/memcopy.h: Replace with include
7383 "../../powerpc32/power4/memcopy.h".
7384 * sysdeps/powerpc/powerpc64/power4/wordcopy.c: Replace with include
7385 "../../powerpc32/power4/wordcopy.c".
7386
73872006-10-03 Steven Munroe <sjmunroe@us.ibm.com>
7388
7389 * sysdeps/powerpc/powerpc32/powerpc64/Makefile: Moved.
7390 * sysdeps/powerpc/powerpc32/powerpc64/memcopy.h: Likewise.
7391 * sysdeps/powerpc/powerpc32/powerpc64/wordcopy.c: Likewise.
7392 * sysdeps/powerpc/powerpc32/power4/Makefile: To here.
7393 * sysdeps/powerpc/powerpc32/power4/memcopy.h: Likewise.
7394 * sysdeps/powerpc/powerpc32/power4/wordcopy.c: Likewise.
7395
73962006-09-10 Steven Munroe <sjmunroe@us.ibm.com>
7397
7398 * sysdeps/powerpc/powerpc32/power6/memcpy.S: New file.
7399
74002006-08-31 Steven Munroe <sjmunroe@us.ibm.com>
7401
7402 * sysdeps/powerpc/powerpc32/power6/wordcopy.c: New file.
7403 * sysdeps/powerpc/powerpc32/powerpc64/Makefile: New file.
7404 * sysdeps/powerpc/powerpc32/powerpc64/memcopy.h: New file.
7405 * sysdeps/powerpc/powerpc32/powerpc64/wordcopy.c: New file.
7406 * sysdeps/powerpc/powerpc64/power4/Makefile: New file.
7407 * sysdeps/powerpc/powerpc64/power4/memcopy.h: New file.
7408 * sysdeps/powerpc/powerpc64/power4/wordcopy.c: New file.
7409 * sysdeps/powerpc/powerpc64/power6/wordcopy.c: New file.
7410
74112006-07-06 Steven Munroe <sjmunroe@us.ibm.com>
7412
7413 * sysdeps/powerpc/powerpc64/power6/memcpy.S: New file.
7414
74152006-03-20 Steven Munroe <sjmunroe@us.ibm.com>
7416
7417 * sysdeps/powerpc/powerpc32/power4/memcmp.S: New file.
7418 * sysdeps/powerpc/powerpc32/power4/memcpy.S: New file.
7419 * sysdeps/powerpc/powerpc32/power4/memset.S: New file.
7420 * sysdeps/powerpc/powerpc32/power4/strncmp.S: New file.
7421 * sysdeps/powerpc/powerpc64/power4/memcmp.S: New file.
7422 * sysdeps/powerpc/powerpc64/power4/memcpy.S: New file.
7423 * sysdeps/powerpc/powerpc64/power4/strncmp.S: New file.
7424
5b55e1d3
RM
74252007-05-29 Roland McGrath <roland@redhat.com>
7426
7427 * po/Makefile (po-sed-cmd): New variable.
7428 (libc.pot.files): Move sed command text in there, avoid \ inside ''.
7429
5da4373c
UD
74302007-05-29 Ulrich Drepper <drepper@redhat.com>
7431
4b5e7304
UD
7432 * crypt/md5-crypt.c: Fix comment.
7433
5da4373c
UD
7434 * nscd/nscd_helper.c (get_mapping): Handle short replies instead
7435 of crashing. When this is the case or if the reply is malformed,
7436 don't try to close the new file descriptor since it does not
7437 exist.
7438 Patch in part by Guillaume Chazarain <guichaz@yahoo.fr>.
7439
40f57573
UD
74402007-05-28 Jakub Jelinek <jakub@redhat.com>
7441
7442 * sysdeps/unix/sysv/linux/futimes.c (miss_utimensat): Don't define
7443 if __NR_utimensat is not defined.
7444
6df7ffad
UD
74452007-05-26 Ulrich Drepper <drepper@redhat.com>
7446
7447 * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Include <sysdep.h>.
7448
47ad95ab
UD
74492007-05-25 Jakub Jelinek <jakub@redhat.com>
7450
7451 * io/bits/fcntl2.h (__open_2): Add nonnull attribute.
7452 (open): Fix comment typos. Don't call __open_2 if flags
7453 is a compile time constant without O_CREAT.
7454 (__open64_2): Add nonnull attribute.
7455 (open64): Fix comment typos. Don't call __open64_2 if flags
7456 is a compile time constant without O_CREAT.
7457 (__openat_2): Add nonnull attribute, fix nonnull attribute
7458 on redirect.
7459 (openat): Fix comment typos. Don't call __openat_2 if flags
7460 is a compile time constant without O_CREAT.
7461 (__openat64_2): Add nonnull attribute, fix nonnull attribute
7462 on redirect.
7463 (openat64): Fix comment typos. Don't call __openat64_2 if flags
7464 is a compile time constant without O_CREAT.
7465
ddfd0535
UD
74662007-05-24 Ulrich Drepper <drepper@redhat.com>
7467
7468 * Makerules (sysd-rules): Define PTW for ptw-* files.
7469 * Versions: Define GLIBC_2.7 for libc.
7470 * include/stdio.h: Declare __fortify_fail.
7471 * debug/fortify_fail.c: New file.
7472 * debug/Makefile (routines): Add fortify_fail.
7473 * debug/chk_fail.c: Use __fortify_fail.
7474 * debug/stack_chk_fail.c: Likewise.
7475 * io/Versions: Export __open_2, __open64_2, __openat_2, and
7476 __openat64_2 for GLIBC_2.7.
7477 * io/fcntl.h: When compiling with fortification, include bits/fcntl2.h.
7478 * io/open.c: Define *_2 variant of function which checks for O_CREAT
7479 and fails if necessary.
7480 * io/open64.c: Likewise.
7481 * io/openat.c: Likewise.
7482 * io/openat64.c: Likewise.
7483 * sysdeps/unix/sysv/linux/open64.c: Likewise.
7484 * sysdeps/unix/sysv/linux/openat.c: Likewise.
7485 * sysdeps/unix/sysv/linux/openat64.c: Likewise.
7486 * io/bits/fcntl2.h: New file.
7487 * include/fcntl.h: Declare __open_2, __open64_2, __openat_2, and
7488 __openat64_2.
7489 * include/bits/fcntl2.h: New file.
7490 * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
7491 Add open_2.
7492 * sysdeps/unix/sysv/linux/open_2.c: New file.
7493
bfe6f5fa
UD
74942007-05-21 Ulrich Drepper <drepper@redhat.com>
7495
6d59823c
UD
7496 * sysdeps/x86_64/cacheinfo.c (init_cacheinfo): Pass correct value
7497 as second parameter to handle_intel.
7498
e2b1e343
UD
7499 * nscd/aicache.c (addhstaiX): If reported TTL is zero don't cache
7500 the entry.
7501
bfe6f5fa
UD
7502 * sysdeps/unix/sysv/linux/x86_64/sysconf.c: Move cache information
7503 handling to ...
7504 * sysdeps/x86_64/cacheinfo.c: ... here. New file.
7505 * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
7506 cacheinfo.
7507 * sysdeps/x86_64/memcpy.S: Complete rewrite.
7508 * sysdeps/x86_64/mempcpy.S: Adjust appropriately.
7509 Patch by Evandro Menezes <evandro.menezes@amd.com>.
7510
7511 * sysdeps/unix/sysv/linux/i386/epoll_pwait.S: New file.
7512
1f4843fb
UD
75132007-05-21 Jakub Jelinek <jakub@redhat.com>
7514
2c2c003a
UD
7515 [BZ #4525]
7516 * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add epoll_pwait.
7517 * sysdeps/unix/sysv/linux/epoll_pwait.c: New file.
7518 * sysdeps/unix/sysv/linux/syscalls.list (epoll_pwait): Remove.
7519
7520 * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h (epoll_pwait): Declare.
7521
af269dd9
UD
7522 [BZ #4514]
7523 * stdio-common/vfprintf.c (vfprintf): Don't shadow workstart variable,
7524 reinitialize workend at the start of each do_positional format spec
7525 loop, free workstart before do_positional loops.
7526 (printf_unknown): Fix size of work_buffer.
7527 * stdio-common/tst-sprintf.c (main): Add 3 new testcases.
7528
1f4843fb
UD
7529 * malloc/hooks.c (MALLOC_STATE_VERSION): Bump.
7530 (public_sET_STATe): If ms->version < 3, put all chunks into
7531 unsorted chunks and clear {fd,bk}_nextsize fields of largebin
7532 chunks.
7533
7534 * malloc/malloc.c [MALLOC_DEBUG]: Revert 2007-05-13 changes.
7535 * malloc/hooks.c: Likewise.
7536 * malloc/arena.c: Likewise.
7537 * malloc/malloc.c (do_check_malloc_state): Don't assert
7538 n_mmaps is not greater than n_mmaps_max. This removes the need
7539 for the previous change.
7540
7541 * malloc/Makefile (CFLAGS-malloc.c): Revert accidental
7542 2007-05-07 commit.
7543
12e8bbff
UD
75442007-05-19 Ulrich Drepper <drepper@redhat.com>
7545
7546 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_PRIVATE_FUTEX):
7547 Define for kernel >= 2.6.22.
69e5cbf5 7548
12e8bbff 75492007-05-18 Ulrich Drepper <drepper@redhat.com>
6d59823c 7550
df94b641
UD
7551 * elf/dl-close.c (_dl_close_worker): When removing object from
7552 global scope, wait for all lookups to finish afterwards.
7553 * elf/dl-open.c (add_to_global): When global scope array must
7554 grow, allocate a new one and free old array only after all
7555 lookups finish.
7556 * elf/dl-runtime.c (_dl_fixup): Protect using global scope.
7557 (_dl_lookup_symbol_x): Likewise.
7558 * elf/dl-support.c: Define _dl_wait_lookup_done.
7559 * sysdeps/generic/ldsodefs.h (struct rtld_global): Add
7560 _dl_wait_lookup_done.
7561
2acd01ac
UD
7562 * malloc/malloc.c (do_check_chunk): Correct check for mmaped block
7563 not overlapping with arena.
7564
129abdd3
UD
7565 * malloc/mcheck.c (reallochook): If size==0, free the block.
7566
eb4b098a
UD
7567 * rt/tst-shm.c: Use fstat64 instead of fstat.
7568
69e5cbf5
UD
7569 * sysdeps/unix/sysv/linux/i386/sync_file_range.S: Fix case where
7570 __NR_sync_file_range is not defined.
7571
a2ccc760
UD
75722007-05-17 Ulrich Drepper <drepper@redhat.com>
7573
bec51a30
UD
7574 Dummy files to prevent stub versions from being used.
7575 * sysdeps/x86_64/fpu/k_cosl.c: New file.
7576 * sysdeps/x86_64/fpu/k_rem_pio2l.c: New file.
7577 * sysdeps/x86_64/fpu/k_sinl.c: New file.
7578 * sysdeps/x86_64/fpu/k_tanl.c: New file.
7579
a2ccc760
UD
7580 * version.h (VERSION): Set to 2.6.90.
7581
1a31b586
UD
75822007-05-14 Ulrich Drepper <drepper@redhat.com>
7583
a2ccc760
UD
7584 * version.h (VERSION): Define to 2.6.
7585 * include/features.h (__GLIBC_MINOR__): Define to 6.
2c1d6172 7586
1d47e92f
UD
7587 * malloc/malloc.c: Use all small bin slots on 64-bit archs.
7588
7589 * malloc/malloc.c (largebin_index): Really have 32 buckets with 64
7590 sizes.
366ad8fd 7591
1a31b586 75922007-05-13 Ulrich Drepper <drepper@redhat.com>
87e66335 7593
366ad8fd
UD
7594 * malloc/malloc.c [MALLOC_DEBUG]: Keep track of current maximum
7595 number of mmaps. n_mmaps_max is the target.
7596 * malloc/hooks.c: Likewise.
7597 * malloc/arena.c: Likewise.
7598
11ed6713
AJ
75992007-05-12 Andreas Jaeger <aj@suse.de>
7600
7601 * sysdeps/unix/sysv/linux/tst-getcpu.c: Include <unistd.h> for
7602 getpid.
7603
d65ef3dd
UD
76042007-05-11 Ulrich Drepper <drepper@redhat.com>
7605
2e81d449
UD
7606 * elf/dl-close.c (_dl_close_worker): Help gcc to optimize by
7607 adding new variables.
7608
d65ef3dd 7609 * elf/dl-open.c (add_to_global): Introduce variable ns to help gcc
2e81d449 7610 optimize. Completely extend global scope array before making the
d65ef3dd
UD
7611 new entries visible.
7612
c27d2078
UD
76132007-05-10 Ulrich Drepper <drepper@redhat.com>
7614
341c566f
UD
7615 * sysdeps/unix/sysv/linux/tst-getcpu.c: New file.
7616 * sysdeps/unix/sysv/linux/Makefile [subdir=posix] (tests): Add
7617 tst-getcpu.
7618
7619 * include/link.h: Move l_version and l_nversion members around to
7620 fill gaps.
7621
a53fa282
UD
7622 * scripts/check-c++-types.sh: Don't use -fnu89-inline option.
7623
3771196d
UD
7624 * sysdeps/unix/sysv/linux/sched_setaffinity.c
7625 (__sched_setaffinity_new): If syscall was successful and
7626 RESET_VGETCPU_CACHE is defined, use it before returning.
7627 * sysdeps/unix/sysv/linux/x86_64/sched_setaffinity.c: New file.
7628
f9bf102d
UD
7629 * io/sys/stat.h: Make sure struct timespec is defined for
7630 __USE_ATFILE.
7631
c27d2078
UD
7632 * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Define UTIME_NOW and
7633 UTIME_OMIT.
7634 * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
7635 * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
7636 * sysdeps/unix/sysv/linux/alpha/bits/stat.h: Likewise.
7637 * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Likewise.
7638 * sysdeps/unix/sysv/linux/bits/stat.h: Likewise.
7639 * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
7640 * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_UTIMENSAT.
7641 * io/sys/stat.h: Declare utimensat, futimens.
7642 * io/utimensat.c: New file.
7643 * io/futimens.c: New file.
7644 * sysdeps/unix/sysv/linux/utimensat.c: New file.
7645 * sysdeps/unix/sysv/linux/futimens.c: New file.
7646 * io/Makefile (routines): Add utimensat, futimens.
7647 * io/Versions: Add utimensat, futimens to GLIBC_2.6.
7648 * sysdeps/unix/sysv/linux/lutimes.c: New file.
7649 * sysdeps/unix/sysv/linux/futimes.c: Use utimensat syscall if
7650 available.
7651
7652 * include/sys/cdefs.h: Redefine __nonnull so that test for
7653 incorrect parameters in the libc code itself are not omitted.
7654
cf6b0980
JJ
76552007-05-09 Jakub Jelinek <jakub@redhat.com>
7656
c1dfd7e6
JJ
7657 * sysdeps/ia64/fpu/fraiseexcpt.c (feraiseexcept): Don't raise overflow
7658 exception in addition to inexact when asked to raise only FE_INEXACT.
7659
cf6b0980
JJ
7660 [BZ #3427]
7661 * sysdeps/s390/fpu/feholdexcpt.c (feholdexcept): Don't clear exceptions
7662 in *envp.
7663
df7b6fea
UD
76642007-05-07 Ulrich Drepper <drepper@redhat.com>
7665
7666 [BZ #4403]
7667 * string/strfry.c (strfry): Make result more random.
7668
37f40235
RH
76692007-05-07 Richard Henderson <rth@redhat.com>
7670
7671 * sysdeps/alpha/fpu/bits/mathinline.h (__isnanl): Don't define
7672 if __NO_LONG_DOUBLE_MATH.
7673 * sysdeps/unix/sysv/linux/alpha/ioperm.c: If BWX insns not
df7b6fea 7674 available in the compiler, add .arch directive to the assembly.
37f40235
RH
7675
76762007-05-07 Jakub Jelinek <jakub@redhat.com>
7677
7678 * sysdeps/alpha/fpu/s_nearbyint.c (nearbyintl): Fix version on
7679 compat_symbol to GLIBC_2_1.
7680 * sysdeps/alpha/fpu/s_fmin.S (fminl): Likewise.
7681 * sysdeps/alpha/fpu/s_trunc.c (truncl): Likewise.
7682 * sysdeps/alpha/fpu/s_fmax.S (fmaxl): Likewise.
7683 * sysdeps/alpha/fpu/s_lrint.c (lrintl, llrintl): Likewise.
7684 * sysdeps/alpha/fpu/s_lround.c (lroundl, llroundl): Likewise.
7685 * sysdeps/alpha/fpu/s_round.c (roundl): Likewise.
7686 * sysdeps/alpha/fpu/s_isnan.c (isnanl): Provide compat_symbol in
7687 libc, not libm.
7688 (__isnanl): New compat_symbol.
7689
c7fd3362
JJ
76902007-05-07 Ulrich Drepper <drepper@redhat.com>
7691 Jakub Jelinek <jakub@redhat.com>
7692
7693 * malloc/arena.c (heap_info): Add mprotect_size field, adjust pad.
7694 (new_heap): Initialize mprotect_size.
7695 (grow_heap): When growing, only mprotect from mprotect_size till
7696 new_size if mprotect_size is smaller. When shrinking, use PROT_NONE
7697 MMAP for __libc_enable_secure only, otherwise use MADV_DONTNEED.
7698
4a59e9ad 76992007-04-30 Steven Munroe <sjmunroe@us.ibm.com>
37f40235 7700 Peter Bergner <bergner@us.ibm.com>
4a59e9ad
UD
7701
7702 * sysdeps/powerpc/bits/fenv.h: Declare __fe_mask_env extern.
7703 Define FE_NOMASK_ENV as FE_EANBLED_ENV. Define FE_MASK_ENV.
7704 * sysdeps/powerpc/fpu/Makefile: Add fe_mask to libm-support.
7705 * sysdeps/powerpc/fpu/fe_mask.c: New file.
7706 * sysdeps/powerpc/fpu/fe_nomask.c: Correct comment.
7707 * sysdeps/powerpc/fpu/fedisblxcpt.c (fedisableexcept):
7708 Call __fe_mask_env() if all FP exceptions disabled.
7709 * sysdeps/powerpc/fpu/feholdexcpt.c (feholdexcept): Copy high 32-bits
7710 from old FPSCR to new fenv to propagate DFP rounding modes.
7711 Call __fe_mask_env() if FP exceptions previously enabled.
7712 * sysdeps/powerpc/fpu/fesetenv.c (fesetenv): Change mask to merge
7713 exceptions from env. Use __fe_nomask_env() or __fe_mask_env() when
7714 transitioning from all exceptions disabled to any exception enabled
7715 or visa versa.
7716 * sysdeps/powerpc/fpu/feupdateenv.c (__feupdateenv): Change mask to
7717 merge exceptions from env. Call __fe_nomask_env or __fe_mask_env
7718 when transitioning from all exceptions disabled to any exception
7719 enabled or visa versa.
7720 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fe_nomask.c: Moved to...
7721 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c: ...here.
7722 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fe_nomask.c: Moved to...
7723 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c: ...here.
7724 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_mask.c: New file.
7725 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_mask.c: New file.
7726
aa75f64c
UD
77272007-05-06 Ulrich Drepper <drepper@redhat.com>
7728
15eca720 7729 [BZ #4465]
aa75f64c
UD
7730 * posix/unistd.h: Remove __THROW from fdatasync.
7731
711deb05
UD
77322007-05-06 Mike Frysinger <vapier@gentoo.org>
7733
15eca720 7734 [BZ #4465]
711deb05
UD
7735 * sysdeps/unix/sysv/linux/syscalls.list (fdatasync): Add "C" to args.
7736
ffecd39b
UD
77372007-05-06 Ulrich Drepper <drepper@redhat.com>
7738
49a8eb75
UD
7739 * stdio-common/vfprintf.c (process_string_arg): Optimize
7740 ridiculous precision in wide char code printing multi-byte string.
7741 Reported by Jim Meyering <jim@meyering.net>.
7742
ffecd39b
UD
7743 [BZ #4131]
7744 * elf/dl-addr.c (_dl_addr): Compare address with actual segment
7745 boundaries to work around systems with overlapping binary loading.
7746 Based on a patch by Suzuki <suzuki@in.ibm.com>.
7747
b16dba4c
UD
77482007-05-04 Ulrich Drepper <drepper@redhat.com>
7749
30b323ab
UD
7750 * stdio-common/vfprintf.c (process_string_arg): Adjust call to
7751 __mbsnrtowcs after last change.
7752
b16dba4c
UD
7753 * locale/programs/linereader.c (get_symname): Fix adding final NUL.
7754 (get_ident): Likewise.
7755
37002cbc
JJ
77562007-05-03 Jakub Jelinek <jakub@redhat.com>
7757
7758 * soft-fp/op-common.h (FP_TRUNC): Replace raising of FP_EX_INEXACT
7759 with setting the sticky bit.
7760 * math/test-misc.c (main): Add more truncation tests.
7761
77622007-04-14 Uros Bizjak <ubizjak@gmail.com>
7763
7764 * soft-fp/floatunsidf.c (__floatunsidf): Use DFtype instead of
7765 double in the function declaration.
7766 * soft-fp/floatundidf.c (__floatundidf): Use DFtype instead of
7767 double in the function declaration.
7768 * soft-fp/floatunsisf.c (__floatunsisf): Use SFtype instead of
7769 float in the function declaration.
7770 * soft-fp/floatunsisf.c (__floatunsisf): Use SFtype instead of
7771 float in the function declaration.
7772
7773 * soft-fp/extended.h (FP_UNPACK_RAW_E): Do not increase X##_e for
7774 denormal operands. Do not generate FP_EX_DENORM exception.
7775 (FP_UNPACK_RAW_EP): Ditto.
7776 (FP_UNPACK_SEMIRAW_E): Use FP_UNPACK_RAW_E instead of
7777 undefined _FP_UNPACK_RAW_E.
7778 (FP_UNPACK_SEMIRAW_EP): Use FP_UNPACK_RAW_EP instead of
7779 undefined _FP_UNPACK_RAW_EP.
7780 (FP_PACK_SEMIRAW_E): Use FP_PACK_RAW_E instead of
7781 undefined _FP_PACK_RAW_E.
7782 (FP_PACK_SEMIRAW_EP): Use FP_PACK_RAW_EP instead of
7783 undefined _FP_PACK_RAW_EP.
7784
d9ac82d0
UD
7785 * soft-fp/op-2.h (_FP_FRAC_COPY_2_2): Define as alias to
7786 _FP_FRAC_COPY_2.
7787 * soft-fp/op-4.h (_FP_FRAC_COPY_2_2): Define as alias to
7788 _FP_FRAC_COPY_4.
37002cbc
JJ
7789
77902007-04-16 Uros Bizjak <ubizjak@gmail.com>
7791 Jakub Jelinek <jakub@redhat.com>
7792
7793 * soft-fp/op-common.h (FP_EXTEND): Do not abort when
7794 _FP_EXPBIAS_##dfs == _FP_EXPBIAS_##sfs. Handle denormals for
7795 this case.
7796 * soft-fp/op-common.h (FP_TRUNC): Ditto.
7797
002f0b0b
JJ
77982007-05-03 Jakub Jelinek <jakub@redhat.com>
7799
7800 * math/test-misc.c (main): Add tests for rounding long double
7801 values close to smallest double denormalized value to double.
7802
78032007-04-30 Joseph Myers <joseph@codesourcery.com>
7804
7805 * soft-fp/op-common.h (FP_TRUNC): Correct off-by-one error in
7806 condition for truncating to 0. Set sticky bit for such
7807 truncation.
7808
57433ede
UD
78092007-05-02 Jakub Jelinek <jakub@redhat.com>
7810
7811 * stdio-common/vfprintf.c (process_string_arg): Use a VLA rather than
7812 fixed length array for ignore.
7813
c01c2455
UD
78142007-04-30 Ulrich Drepper <drepper@redhat.com>
7815
7816 [BZ #4438]
7817 * stdio-common/vfprintf.c (process_string_arg): Don't overflow the
7818 stack for large precisions.
1cb04337
UD
7819 * stdio-common/test-vfprintf.c (main): Add test for large
7820 precision.
c01c2455 7821
37f02b1d
UD
78222007-04-30 Jakub Jelinek <jakub@redhat.com>
7823
b866373d
UD
7824 * stdio-common/printf_fp.c (___printf_fp): Don't print negative sign
7825 for exponent 0.
7826 * stdio-common/tfformat.c (sprint_doubles): Add a new test.
7827
37f02b1d
UD
7828 [BZ #4439]
7829 * resolv/inet_ntop.c (inet_ntop4): Take terminating '\0' into
7830 account in the size check.
7831 * resolv/tst-inet_ntop.c: New test.
7832 * resolv/Makefile (tests): Add tst-inet_ntop.
7833
7ecfbd38
UD
78342007-04-30 Ulrich Drepper <drepper@redhat.com>
7835 Jakub Jelinek <jakub@redhat.com>
7836
7837 [BZ #4349]
7838 * malloc/malloc.c: Keep separate list for first blocks on the bin
7839 lists with a given size. This helps skipping over list elements
7840 we know won't fit in two places.
7841 Inspired by a patch by Tomash Brechko <tomash.brechko@gmail.com>.
7842
e53f0f51
UD
78432007-04-28 Ulrich Drepper <drepper@redhat.com>
7844
7845 [BZ #4102]
7846 * sysdeps/posix/getaddrinfo.c (default_labels): Assign separate
7847 label to Teredo tunnel addresses 2001://32.
7848
109f51f2
UD
78492007-04-27 Ulrich Drepper <drepper@redhat.com>
7850
762422d1
UD
7851 * locale/programs/ld-collate.c (collate_read): Allow order_start
7852 after copy.
7853
61d5a67f
UD
7854 * locale/programs/ld-collate.c (collate_read): Fix printing of
7855 error message.
7856
7857 [BZ #3213]
7858 * locale/C-translit.h.in: Add entry for U2044.
7859
109f51f2
UD
7860 [BZ #4342]
7861 * stdio-common/vfscanf.c (_IO_vfscanf_internal): Allow
7862 hexa-decimal floats without exponent.
7863 * stdio-common/tstscanf.c (main): Adjust Test 8 test for success.
7864
ec08f13d
UD
78652007-04-25 Ulrich Drepper <drepper@redhat.com>
7866
7867 * sysdeps/unix/sysv/linux/bits/sched.h: Declare sched_getcpu.
7868 * sysdeps/unix/sysv/linux/sched_getcpu.c: New file.
7869 * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: New file.
7870 * sysdeps/unix/sysv/linux/Versions: Export sched_getcpu for
7871 GLIBC_2.6.
bce20b9a
UD
7872 * sysdeps/unix/sysv/linux/Makefile [subdir=posix] (sysdep_routines):
7873 Add sched_getcpu.
ec08f13d 7874
41967e1c
JJ
78752007-04-25 Jakub Jelinek <jakub@redhat.com>
7876
7877 * sysdeps/unix/sysv/linux/check_pf.c (make_request): Return -1 instead
7878 of 0 after the out_fail label.
7879
ba508da3
UD
78802007-04-25 Ulrich Drepper <drepper@redhat.com>
7881
7882 [BZ #4406]
109f51f2 7883 * iconv/gconv_charset.h (strip): Allow ':'.
ba508da3
UD
7884 * iconv/iconv_open.c (iconv_open): Adjust comment.
7885
9c8d03d9
JJ
78862007-04-25 Jakub Jelinek <jakub@redhat.com>
7887
7888 * libio/bits/stdio.h (fgetc_unlocked): Add extern inline optimized
7889 version.
7890
2f1687b9
UD
78912007-04-23 Jakub Jelinek <jakub@redhat.com>
7892
7893 [BZ #4381]
7894 * nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Ensure sufficient
7895 alignment of buffer and tmp_buffer.
7896 * nis/nss_nis/nis-hosts.c (internal_nis_gethostent_r,
7897 internal_gethostbyname2_r, _nss_nis_gethostbyaddr_r): Ensure sufficient
7898 alignment of buffer.
7899 * resolv/nss_dns/dns-hosts.c (getanswer_r): Likewise. Handle buflen
7900 bigger than INT_MAX.
7901 * resolv/nss_dns/dns-network.c (getanswer_r): Likewise. Add errnop and
7902 h_errnop arguments. Fail if buflen is too small.
7903 (_nss_dns_getnetbyname_r, _nss_dns_getnetbyaddr_r): Adjust callers.
7904
b64a9db8
JJ
79052007-04-23 Jakub Jelinek <jakub@redhat.com>
7906
7907 [BZ #4405]
7908 * iconvdata/gconv-modules (E13B): Add a missing slash to the alias
7909 name. Patch by Aurelien Jarno <aurelien@aurel32.net>.
7910
4d3144c9
RM
79112007-04-22 Roland McGrath <roland@redhat.com>
7912
7913 * elf/elf.h (NT_PRXFPREG): New macro.
7914
767b40bf
AJ
79152007-04-19 Andreas Jaeger <aj@suse.de>
7916
7917 [BZ #3905]
7918 * bits/in.h (IPV6_ROUTER_ALERT, IPV6_MTU_DISCOVER, IPV6_MTU,
7919 IPV6_RECVERR, IPV6_V6ONLY, IPV6_JOIN_ANYCAST, IPV6_LEAVE_ANYCAST):
7920 Added.
7921
2592d1ec
UD
79222007-04-19 Ulrich Drepper <drepper@redhat.com>
7923
7924 * include/sys/mman.h: Mark madvise hidden.
d07d044e 7925 * misc/madvise.c: Add libc_hidden_def.
2592d1ec 7926
7ab174ed
UD
79272007-04-06 Jakub Jelinek <jakub@redhat.com>
7928
7929 * nis/nis_domain_of.c (__nis_domain_of): New function.
7930 * include/rpcsvc/nislib.h (__nis_domain_of): New prototype.
7931 * nis/nis_lookup.c (nis_lookup): Use __nis_domain_of.
7932 * nis/nis_call.c (rec_dirsearch): Likewise.
7933 (first_shoot): Likewise. Remove search_parent_first argument.
7934 (struct nis_server_cache): Rename search_parent_first field
7935 to search_parent.
7936 (nis_server_cache_search, nis_server_cache_add): Rename
7937 search_parent_first argument to search_parent.
7938 (__nisfind_server): Likewise. If search_parent, call
7939 __nis_domain_of.
7940
b17c265f
UD
79412007-04-18 Ulrich Drepper <drepper@redhat.com>
7942
7943 * sysdeps/posix/getaddrinfo.c: Remove commented-out code.
7944
b7674b11
UD
79452007-04-17 Ulrich Drepper <drepper@redhat.com>
7946
7947 [BZ #4368]
7948 * stdlib/stdlib.h: Remove obsolete part of comment for realpath.
7949
faf3ad69
UD
79502007-04-16 Ulrich Drepper <drepper@redhat.com>
7951
7952 [BZ #4364]
7953 * posix/unistd.h (_XOPEN_VERSION): Define appropriately for SUSv3.
7954
c14f245c
UD
79552007-04-15 Jakub Jelinek <jakub@redhat.com>
7956
7957 * locale/programs/locarchive.c (INITIAL_NUM_NAMES,
7958 INITIAL_SIZE_STRINGS, INITIAL_NUM_LOCREC): Update to accomodate
7959 current number of locales in SUPPORTED.
7960 (create_archive): Initialize serial.
7961 (enlarge_archive): Preserve aliases rather than duplicating
7962 their locrecs.
7963
d40e67f5
UD
79642007-04-13 Jakub Jelinek <jakub@redhat.com>
7965
993a5d66
UD
7966 * libio/genops.c (_IO_default_finish): Call _IO_lock_fini
7967 after _IO_un_link, not before it.
7968
d40e67f5
UD
7969 * stdio-common/printf_fp.c (___printf_fp): Fix exponent -4
7970 special case handling when wcp == wstartp + 1. Fix a comment typo.
7971 * stdio-common/tfformat.c (sprint_doubles): Add a new testcase.
7972
0fca3153
UD
79732007-03-30 Jakub Jelinek <jakub@redhat.com>
7974
7975 * libio/libio.h (__underflow, __uflow, __overflow, __wunderflow,
7976 __wuflow, __woverflow, _IO_getc, _IO_putc, _IO_peekc_locked, _IO_padn,
7977 _IO_sgetn, _IO_seekoff, _IO_seekpos, _IO_getwc, _IO_putwc, _IO_wpadn):
7978 Remove __THROW.
7979 * libio/fileops.c (new_do_write, _IO_file_xsgetn_mmap,
7980 _IO_file_xsgetn_maybe_mmap): Likewise.
7981 * libio/oldfileops.c (old_do_write): Likewise.
7982 * libio/libioP.h (_IO_switch_to_get_mode, _IO_switch_to_wget_mode,
7983 _IO_init_marker, _IO_init_wmarker, _IO_default_uflow,
7984 _IO_wdefault_uflow, _IO_default_setbuf, _IO_default_seekpos,
7985 _IO_do_write, _IO_new_do_write, _IO_old_do_write, _IO_wdo_write,
7986 _IO_flush_all_lockp, _IO_flush_all, _IO_cleanup,
7987 _IO_flush_all_linebuffered, _IO_new_fgetpos, _IO_old_fgetpos,
7988 _IO_new_fsetpos, _IO_old_fsetpos, _IO_new_fgetpos64,
7989 _IO_old_fgetpos64, _IO_new_fsetpos64, _IO_old_fsetpos64,
7990 _IO_file_setbuf, _IO_file_seekoff, _IO_file_xsputn, _IO_file_xsgetn,
7991 _IO_file_underflow, _IO_file_underflow_mmap,
7992 _IO_file_underflow_maybe_mmap, _IO_file_overflow, _IO_file_attach,
7993 _IO_file_open, _IO_file_fopen, _IO_file_write, _IO_file_read,
7994 _IO_file_sync, _IO_file_close_it, _IO_file_finish,
7995 _IO_new_file_attach, _IO_new_file_close_it, _IO_new_file_finish,
7996 _IO_new_file_fopen, _IO_new_file_setbuf, _IO_file_setbuf_mmap,
7997 _IO_new_file_sync, _IO_new_file_underflow, _IO_new_file_overflow,
7998 _IO_new_file_seekoff, _IO_new_file_write, _IO_new_file_xsputn,
7999 _IO_old_file_setbuf, _IO_old_file_seekoff, _IO_old_file_xsputn,
8000 _IO_old_file_underflow, _IO_old_file_overflow, _IO_old_file_attach,
8001 _IO_old_file_fopen, _IO_old_file_write, _IO_old_file_sync,
8002 _IO_old_file_close_it, _IO_old_file_finish, _IO_wfile_xsputn,
8003 _IO_wfile_setbuf, _IO_wfile_sync, _IO_wfile_underflow,
8004 _IO_wfile_overflow, _IO_wfile_seekoff, _IO_old_proc_open,
8005 _IO_old_proc_close, _IO_getdelim, _IO_flush_all_internal,
8006 _IO_adjust_column_internal, _IO_default_uflow_internal,
8007 _IO_default_xsgetn_internal, _IO_wdefault_xsputn_internal,
8008 _IO_wdefault_xsgetn_internal, _IO_wdefault_uflow_internal,
8009 _IO_file_setbuf_internal, _IO_file_seekoff_internal,
8010 _IO_file_xsputn_internal, _IO_file_xsgetn_internal,
8011 _IO_file_close_it_internal, _IO_file_underflow_internal,
8012 _IO_file_overflow_internal, _IO_file_attach_internal,
8013 _IO_file_fopen_internal, _IO_file_sync_internal,
8014 _IO_file_finish_internal, _IO_wfile_xsputn_internal,
8015 _IO_wfile_seekoff_internal, _IO_wfile_sync_internal,
8016 _IO_switch_to_wget_mode_internal, _IO_padn_internal,
8017 _IO_switch_to_get_mode_internal, _IO_seekoff_unlocked,
8018 _IO_seekpos_unlocked): Likewise.
8019 (_IO_strtod, _IO_dtoa, _IO_outfloat, _IO_read, _IO_write,
8020 _IO_lseek, _IO_close, _IO_fstat): Remove unused prototypes.
8021
07358add
JJ
80222007-04-16 Jakub Jelinek <jakub@redhat.com>
8023
8024 * locale/programs/locarchive.c (show_archive_content): Fix sizeof
8025 argument in xmalloc size computation.
8026
7a82b74f
UD
80272007-04-01 Jakub Jelinek <jakub@redhat.com>
8028
8029 * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (__nextafterl): Use
8030 math_opt_barrier and math_force_eval macros.
8031
3e336a87
UD
80322007-03-27 Jakub Jelinek <jakub@redhat.com>
8033
8034 [BZ #3306]
8035 * math/math_private.h (math_opt_barrier, math_force_eval): Define.
8036 * sysdeps/i386/fpu/math_private.h: New file.
8037 * sysdeps/x86_64/fpu/math_private.h: New file.
8038 * math/s_nexttowardf.c (__nexttowardf): Use math_opt_barrier and
8039 math_force_eval macros. Use "+m" constraint on asm rather than
8040 "=m" and "m".
8041 * math/s_nextafter.c (__nextafter): Likewise.
8042 * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c (__nexttoward):
8043 Likewise.
8044 * sysdeps/ieee754/flt-32/s_nextafterf.c (__nextafterf): Likewise.
8045 * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward): Likewise.
8046 * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
8047 * sysdeps/i386/fpu/s_nextafterl.c (__nextafterl): Use
8048 math_opt_barrier and math_force_eval macros.
8049 * sysdeps/ieee754/ldbl-128/s_nextafterl.c (__nextafterl): Likewise.
8050 * sysdeps/ieee754/ldbl-96/s_nextafterl.c (__nextafterl): Likewise.
8051 * sysdeps/i386/fpu/s_nexttoward.c: Include float.h.
8052 (__nexttoward): Use math_opt_barrier and
8053 math_force_eval macros. Use "+m" constraint on asm rather than
8054 "=m" and "m". Only use asm to force double result if
8055 FLT_EVAL_METHOD is 2.
8056 * sysdeps/i386/fpu/s_nexttowardf.c: Include float.h.
8057 (__nexttowardf): Use math_opt_barrier and
8058 math_force_eval macros. Use "+m" constraint on asm rather than
8059 "=m" and "m". Only use asm to force double result if
8060 FLT_EVAL_METHOD is not 0.
8061 * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Include float.h.
8062 (__nexttowardf): Use math_opt_barrier and
8063 math_force_eval macros. If FLT_EVAL_METHOD is not 0, force
8064 x to float using asm.
8065 * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c: Include float.h.
8066 (__nldbl_nexttowardf): Use math_opt_barrier and
8067 math_force_eval macros. If FLT_EVAL_METHOD is not 0, force
8068 x to float using asm.
8069 * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Include float.h.
8070 (__nexttowardf): Use math_opt_barrier and math_force_eval
8071 macros. If FLT_EVAL_METHOD is not 0, force x to float using asm.
8072 * math/bug-nextafter.c (zero, inf): New variables.
8073 (main): Add new tests.
8074 * math/bug-nexttoward.c (zero, inf): New variables.
8075 (main): Add new tests.
8076
a8c79c40
UD
80772007-03-22 Jakub Jelinek <jakub@redhat.com>
8078
8079 [BZ #3427]
8080 * sysdeps/x86_64/fpu/feholdexcpt.c (feholdexcept): Clear all
8081 exceptions both in SW and MXCSR.
8082 * sysdeps/x86_64/fpu/feupdateenv.c: New file.
8083 * sysdeps/x86_64/fpu/feenablxcpt.c (feenableexcept): Remove dead code.
8084 * sysdeps/x86_64/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
8085 * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Clear all exceptions
8086 in MXCSR if SSE is available.
8087 * sysdeps/i386/fpu/feupdateenv.c: Include unistd.h, dl-procinfo.h
8088 and ldsodefs.h.
8089 (__feupdateenv): Query exceptions also from MXCSR if SSE is available.
8090 Fix comment typo.
8091 * sysdeps/ia64/fpu/feholdexcpt.c (feholdexcept): Clear all exceptions.
8092 Return 0 rather than 1.
8093 * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Fix comment typo.
8094 Remove incorrect part of a comment. Fix argument to feraiseexcept.
8095 * math/test-fenv.c (feholdexcept_tests): New function.
8096 (main): Call it.
8097
80982007-01-05 Richard B. Kreckel <kreckel@ginac.de>
8099
8100 [BZ #3427]
8101 * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Clear all exceptions
8102 in SW.
8103
30a3aa75
JJ
81042007-04-13 Jakub Jelinek <jakub@redhat.com>
8105
8106 [BZ #4344]
8107 * elf/ldconfig.c (search_dir): Fix 2 off-by-2 errors.
8108 Reported by David Anderson <davea42@earthlink.net>.
8109
75587bfe
UD
81102007-04-07 Ulrich Drepper <drepper@redhat.com>
8111
8112 * posix/sys/wait.h: Remove unnecessary forward declaration.
8113
88fa1769
JJ
81142007-04-05 Jakub Jelinek <jakub@redhat.com>
8115
8116 * nis/nis_call.c (__nisfind_server): Replace (*dir)->do_servers
8117 with obj->do_servers after first_shoot.
8118
eab1bdfb
UD
81192007-04-03 Ulrich Drepper <drepper@redhat.com>
8120
8121 * posix/Makefile (routines): Add sched_cpucount.
8122 (tests): Add tst-cpucount.
8123 * posix/sched_cpucount.c: New file.
8124 * posix/tst-cpucount.c: New file.
8125 * posix/Versions: Export __sched_cpucount with version GLIBC_2.6.
b4afdd06
UD
8126 * bits/sched.h: Define __CPU_COUNT. Declare __sched_cpucount.
8127 * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
8128 * posix/sched.h: Define CPU_COUNT.
eab1bdfb 8129
9700b039
UD
81302007-03-27 Jakub Jelinek <jakub@redhat.com>
8131
8132 * posix/fnmatch.c (STRUCT): Define.
8133 (fnmatch): Pass NULL as last argument to internal_fn{,w}match.
8134 * posix/fnmatch_loop.c (struct STRUCT): New type.
8135 (FCT): Add ends argument. If ends != NULL and normal * is
8136 seen in the pattern, store current pattern and string pointers
8137 and return. Adjust recursive calls.
8138 (EXT): Adjust FCT callers.
8139 (STRUCT): Undef at the end of the file.
8140 * posix/Makefile (tests): Add tst-fnmatch2.
8141 * posix/tst-fnmatch2.c: New test.
8142
d64e9790
JJ
81432007-04-01 Jakub Jelinek <jakub@redhat.com>
8144
933dfe7b
JJ
8145 * sysdeps/ia64/fpu/fesetround.c (fesetround): Return 0 on success
8146 and 1 on failure.
8147
d64e9790
JJ
8148 * sysdeps/unix/sysv/linux/sync_file_range.c (sync_file_range):
8149 Change last argument to unsigned int.
8150
e1f0c5bc
UD
81512007-03-23 Jakub Jelinek <jakub@redhat.com>
8152
8153 * scripts/check-local-headers.sh: Filter out sys/capability.h.
8154
81552007-03-22 Jakub Jelinek <jakub@redhat.com>
8156
8157 * config.h.in (HAVE_LIBCAP): Add.
8158 * nscd/selinux.h: Include sys/capability.h rather than non-existent
8159 sys/capabilities.h.
8160 * nscd/selinux.c (preserve_capabilities): Use cap_free instead of
8161 free_caps. Cast away const from 4th cap_set_flag argument.
8162
4e87573f
UD
81632007-03-26 Ulrich Drepper <drepper@redhat.com>
8164
8165 * sysdeps/unix/sysv/linux/Versions: Move sync_file_range to
8166 GLIBC_2.6.
8167 * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
8168 Add sync_file_range.
8169 Reported by Atsushi Nemoto <anemo@mba.ocn.ne.jp>.
8170
fa6e3bc3
UD
81712007-03-19 Steven Munroe <sjmunroe@us.ibm.com>
8172
8173 * sysdeps/powerpc/bits/atomic.h
8174 [!MUTEX_HINT_ACQ]: Define MUTEX_HINT_ACQ.
8175 [!MUTEX_HINT_REL]: Define MUTEX_HINT_REL.
8176 (__arch_compare_and_exchange_val_32_acq): Add MUTEX_HINT_ACQ to lwarx.
8177 (__arch_compare_and_exchange_val_32_rel): Add MUTEX_HINT_REL to lwarx.
8178 (__arch_atomic_exchange_val_32_acq): Add MUTEX_HINT_ACQ to lwarx.
8179 (__arch_atomic_exchange_rel_32_rel): Add MUTEX_HINT_REL to lwarx.
8180 * sysdeps/powerpc/powerpc32/bits/atomic.h [_ARCH_PWR6 || _ARCH_PWR6X]:
8181 Define MUTEX_HINT_ACQ as ",1" and MUTEX_HINT_REL as ",0".
8182 (__arch_compare_and_exchange_bool_32_acq): Add MUTEX_HINT_ACQ to lwarx.
8183 (__arch_compare_and_exchange_bool_32_rel): Add MUTEX_HINT_REL to lwarx.
8184 * sysdeps/powerpc/powerpc64/bits/atomic.h [_ARCH_PWR6 || _ARCH_PWR6D]:
8185 Define MUTEX_HINT_ACQ as ",1" and MUTEX_HINT_REL as ",0".
8186 (__arch_compare_and_exchange_bool_32_acq): Add MUTEX_HINT_ACQ to lwarx.
8187 (__arch_compare_and_exchange_bool_32_rel): Add MUTEX_HINT_REL to lwarx.
8188 (__arch_compare_and_exchange_bool_64_acq): Add MUTEX_HINT_ACQ to lwarx.
8189 (__arch_compare_and_exchange_bool_64_rel): Add MUTEX_HINT_REL to lwarx.
8190 (__arch_compare_and_exchange_val_64_acq): Add MUTEX_HINT_ACQ to lwarx.
8191 (__arch_compare_and_exchange_val_64_rel): Add MUTEX_HINT_REL to lwarx.
8192 (__arch_atomic_exchange_val_64_acq): Add MUTEX_HINT_ACQ to lwarx.
8193 (__arch_atomic_exchange_rel_64_rel): Add MUTEX_HINT_REL to lwarx.
8194
81952007-03-20 Jakub Jelinek <jakub@redhat.com>
c7693af7
UD
8196
8197 * sysdeps/unix/sysv/linux/powerpc/libc-start.c
8198 (__cache_line_size): Define the variable here. Add
8199 attribute_hidden, remove weak_extern.
8200 (__libc_start_main): Set __cache_line_size
8201 unconditionally.
8202 * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c
8203 (__cache_line_size): Define the variable here. Add
8204 attribute_hidden, remove weak_extern.
8205 (DL_PLATFORM_AUXV): Set __cache_line_size
8206 unconditionally.
8207 * sysdeps/powerpc/powerpc32/dl-machine.c (__cache_line_size): Remove
8208 weak_extern, add attribute_hidden.
8209 (__elf_machine_runtime_setup): Assume __cache_line_size is always
8210 defined in ld.so.
8211 * sysdeps/powerpc/powerpc32/memset.S (__cache_line_size): Remove
8212 definition.
8213 * sysdeps/powerpc/powerpc64/memset.S (__cache_line_size): Likewise.
8214
0479e581
JJ
82152007-03-26 Jakub Jelinek <jakub@redhat.com>
8216
8217 [BZ #4276]
8218 * timezone/africa: Update from tzdata2007d.
8219 * timezone/asia: Likewise.
8220 * timezone/australasia: Likewise.
8221 * timezone/backward: Likewise.
8222 * timezone/europe: Likewise.
8223 * timezone/iso3166.tab: Likewise.
8224 * timezone/leapseconds: Likewise.
8225 * timezone/northamerica: Likewise.
8226 * timezone/southamerica: Likewise.
8227 * timezone/zone.tab: Likewise.
8228
8229 * timezone/private.h: Update from tzcode2007d.
8230 * timezone/zdump.c: Likewise.
8231 * timezone/zic.c: Likewise.
8232
697d37b1
JJ
82332007-03-21 Jakub Jelinek <jakub@redhat.com>
8234
8235 * nis/nis_call.c: Include bits/libc-lock.h, sys/stat.h, unistd.h.
8236 (nis_server_cache, nis_server_cache_lock, nis_cold_start_mtime): New
8237 variables.
8238 (nis_server_cache_search, nis_server_cache_add): New functions.
8239 (__nisfind_server): Use them. Add dbp and flags argument, if
8240 call __nisbind_create.
8241 (__nisbind_create): Add server_used and current_ep arguments,
8242 only call __nis_findfastest if server_used is ~0.
8243 (__do_niscall2, __prepare_niscall): Adjust callers.
8244 (ckey_cache, ckey_cache_size, ckey_cache_allocated, ckey_cache_pid,
8245 ckey_cache_euid, ckey_cache_lock): New variables.
8246 (get_ckey): New function.
8247 (__nisbind_connect): If not dbp->use_udp, pass IPPROTO_TCP to
8248 __pmap_getnisport. Save __pmap_getnisport result in
8249 dbp->addr.sin_port if non-zero. Use get_ckey to create conversation
8250 key.
8251 * nis/nis_lookup.c (nis_lookup): Likewise.
8252 * nis/nis_table.c (nis_list): Likewise.
8253 * nis/rpcsvc/nislib.h (__nisbind_create, __nisfind_server): Adjust
8254 prototypes.
8255
8256 * nis/nss_nisplus/nisplus-pwd.c (_nss_nisplus_getpwnam_r,
8257 _nss_nisplus_getpwuid_r): Pass USE_DGRAM flag to nis_list.
8258 * nis/nss_nisplus/nisplus-service.c (_nss_nisplus_getservbyname_r,
8259 _nss_nisplus_getservbyport_r): Likewise.
8260 * nis/nss_nisplus/nisplus-network.c (_nss_nisplus_getnetbyname_r,
8261 _nss_nisplus_getnetbyaddr_r): Likewise.
8262 * nis/nss_nisplus/nisplus-spwd.c (_nss_nisplus_getspnam_r): Likewise.
8263 * nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_gethostton_r,
8264 _nss_nisplus_getntohost_r): Likewise.
8265 * nis/nss_nisplus/nisplus-rpc.c (_nss_nisplus_getrpcbyname_r,
8266 _nss_nisplus_getrpcbynumber_r): Likewise.
8267
06029c20
JJ
82682007-03-20 Jakub Jelinek <jakub@redhat.com>
8269
371f84a4
JJ
8270 * configure.in (libc_cv_gnu89_inline): Only do compile test.
8271 * configure: Rebuilt.
8272
06029c20
JJ
8273 * soft-fp/double.h (_FP_UNION_D): Use _FP_W_TYPE for frac
8274 bit-fields.
8275 * soft-fp/extended.h (_FP_UNION_E): Likewise.
8276
82772006-06-07 Joseph Myers <joseph@codesourcery.com>
8278
8279 [BZ #2831]
8280 * soft-fp/quad.h (_FP_UNION_Q): Use _FP_W_TYPE for frac
8281 bit-fields.
8282
addc8335
UD
82832007-03-18 Jakub Jelinek <jakub@redhat.com>
8284
8285 * nscd/gai.c: Include alloca.h.
8286 (__libc_use_alloca): Define.
8287
b037a293
UD
82882007-03-16 Jakub Jelinek <jakub@redhat.com>
8289
965cba04
UD
8290 * elf/dl-open.c (dl_open_worker): Declare l in 2 different
8291 smaller scopes.
8292 * elf/dl-dst.h (DL_DST_REQ_STATIC): Add l as macro argument.
8293 (DL_DST_REQUIRED): Adjust user.
8294
8295 * include/dlfcn.h (struct link_map): New forward decl.
8296
8297 * inet/getnameinfo.c: Include stddef.h.
8298 (getnameinfo): Use offsetof.
8299
8300 * time/tst-mktime2.c (do_test): Don't rely on signed wrap.
8301
8302 * stdio-common/vfprintf.c (_itoa): Undef before redefining.
8303
8304 * string/strerror_l.c: Include stdlib.h.
8305
b037a293
UD
8306 * configure.in (libc_cv_gnu89_inline): Test for -fgnu89-inline.
8307 * config.make.in (gnu89-inline-CFLAGS): New variable.
8308 * Makeconfig (CFLAGS): Use $(gnu89-inline-CFLAGS) together with
8309 -std=gnu99.
8310 * misc/sys/cdefs.h (__extern_inline, __extern_always_inline): Define.
8311 * argp/argp.h: Use it.
8312 * bits/mathinline.h: Likewise.
8313 * bits/sigset.h: Likewise.
8314 * bits/string.h: Likewise.
8315 * ctype/ctype.h: Likewise.
8316 * hurd/hurd.h: Likewise.
8317 * hurd/hurd/fd.h: Likewise.
8318 * hurd/hurd/port.h: Likewise.
8319 * hurd/hurd/signal.h: Likewise.
8320 * hurd/hurd/threadvar.h: Likewise.
8321 * hurd/hurd/userlink.h: Likewise.
8322 * io/sys/stat.h: Likewise.
8323 * libio/bits/stdio.h: Likewise.
8324 * libio/bits/stdio2.h: Likewise.
8325 * mach/lock-intern.h: Likewise.
8326 * mach/mach/mig_support.h: Likewise.
8327 * math/bits/cmathcalls.h: Likewise.
8328 * posix/bits/unistd.h: Likewise.
8329 * socket/bits/socket2.h: Likewise.
8330 * stdlib/bits/stdlib.h: Likewise.
8331 * stdlib/stdlib.h: Likewise.
8332 * string/argz.h: Likewise.
8333 * string/bits/string2.h: Likewise.
8334 * string/bits/string3.h: Likewise.
8335 * sysdeps/alpha/fpu/bits/mathinline.h: Likewise.
8336 * sysdeps/generic/inttypes.h: Likewise.
8337 * sysdeps/generic/machine-lock.h: Likewise.
8338 * sysdeps/generic/machine-sp.h: Likewise.
8339 * sysdeps/i386/fpu/bits/mathinline.h: Likewise.
8340 * sysdeps/i386/i486/bits/string.h: Likewise.
8341 * sysdeps/ia64/fpu/bits/mathinline.h: Likewise.
8342 * sysdeps/mach/alpha/machine-lock.h: Likewise.
8343 * sysdeps/mach/alpha/machine-sp.h: Likewise.
8344 * sysdeps/mach/i386/machine-lock.h: Likewise.
8345 * sysdeps/mach/powerpc/machine-lock.h: Likewise.
8346 * sysdeps/mach/powerpc/machine-sp.h: Likewise.
8347 * sysdeps/powerpc/fpu/bits/mathinline.h: Likewise.
8348 * sysdeps/s390/bits/string.h: Likewise.
8349 * sysdeps/s390/fpu/bits/mathinline.h: Likewise.
8350 * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
8351 * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Likewise.
8352 * sysdeps/unix/sysv/linux/bits/sigset.h: Likewise.
8353 * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
8354 * sysdeps/unix/sysv/linux/sys/sysmacros.h: Likewise.
8355 * sysdeps/x86_64/fpu/bits/mathinline.h: Likewise.
8356 * wcsmbs/bits/wchar2.h: Likewise.
8357 * wcsmbs/wchar.h: Likewise.
8358 * stdlib/gmp.h: Likewise. Include <features.h> to get
8359 __extern_inline definition.
8360
6b2665f5
UD
83612007-03-15 Jakub Jelinek <jakub@redhat.com>
8362
b037a293
UD
8363 * locale/programs/ld-ctype.c (find_translit): Return NULL if ctype is
8364 NULL.
8365
6b2665f5
UD
8366 [BZ #3919]
8367 * math/libm-test.inc (log_test): Test -Inf and NaN.
8368 (log10_test, log1p_test, log2_test): Test -Inf.
8369 * sysdeps/i386/fpu/e_log.S (__ieee754_log): Don't raise
8370 FE_INVALID when argument is qNaN.
8371 * sysdeps/i386/fpu/e_logl.S (__ieee754_logl): Likewise.
8372 * sysdeps/i386/fpu/e_logf.S (__ieee754_logf): Likewise.
8373 * sysdeps/x86_64/fpu/e_logl.S (__ieee754_logl): Likewise.
8374 * sysdeps/x86_64/fpu/e_log10l.S (__ieee754_log10l): Replace
8375 andb $1, %ah with testb $1, %ah, don't test for parity, instead
8376 testb $4, %ah and jump if non-zero.
8377 * sysdeps/x86_64/fpu/e_log2l.S (__ieee754_log2l): Likewise.
8378 * sysdeps/x86_64/fpu/s_log1pl.S (__log1pl): Likewise.
8379
44969f17
UD
8380 [BZ #4101]
8381 * argp/argp-help.c (hol_cluster_cmp): Fix comparisons used to find
8382 ancestors with the same depths.
8383 Patch by Niels Moeller <nisse@lysator.liu.se>.
8384 (filter_doc): Don't crash if argp is NULL.
8385 * argp/Makefile (tests): Add tst-argp2.
8386 * argp/tst-argp2.c: New test.
8387
05eb8975
UD
8388 [BZ #4130]
8389 * login/utmp_file.c (setutent_file): Use O_LARGEFILE for
8390 open_not_cancel_2.
8391 (updwtmp_file): Likewise.
8392
6cb988fa
UD
8393 [BZ #4181]
8394 * inet/inet6_opt.c (add_padding): Only insert padding if npad > 0.
8395 (inet6_opt_append): Don't check extlen is big enough if extbuf
8396 is NULL.
8397 (inet6_opt_finish): Likewise.
8398 * inet/Makefile (tests): Add test-inet6_opt.
8399 * inet/test-inet6_opt.c: New test.
8400
8401 * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Never
8402 reallocate the buffer, instead fail for MSG_TRUNC or for EBUSY
8403 NLMSG_ERR. Instead use a page sized buffer.
8404 * sysdeps/unix/sysv/linux/check_pf.c (make_request): Use page sized
8405 buffer.
8406
aea1d19e
RH
84072007-03-14 Richard Henderson <rth@redhat.com>
8408
b6df547c
RH
8409 * sysdeps/alpha/fpu/s_llround.c: New file.
8410 * sysdeps/alpha/fpu/s_llroundf.c: New file.
8411 * sysdeps/alpha/fpu/s_lround.c: New file.
8412 * sysdeps/alpha/fpu/s_lroundf.c: New file.
8413 * sysdeps/alpha/fpu/s_round.c: New file.
8414 * sysdeps/alpha/fpu/s_roundf.c: New file.
8415 * sysdeps/alpha/fpu/s_trunc.c: New file.
8416 * sysdeps/alpha/fpu/s_truncf.c: New file.
8417
aea1d19e
RH
8418 * sysdeps/alpha/fpu/s_ceil.c: Rewrite without branches.
8419 * sysdeps/alpha/fpu/s_ceilf.c: Likewise.
8420 * sysdeps/alpha/fpu/s_floor.c: Likewise.
8421 * sysdeps/alpha/fpu/s_floorf.c: Likewise.
8422 * sysdeps/alpha/fpu/s_rint.c: Likewise.
8423 * sysdeps/alpha/fpu/s_rintf.c: Likewise.
8424
8425 * sysdeps/alpha/fpu/s_fmax.S: New file.
8426 * sysdeps/alpha/fpu/s_fmaxf.S: New file.
8427 * sysdeps/alpha/fpu/s_fmin.S: New file.
8428 * sysdeps/alpha/fpu/s_fminf.S: New file.
8429 * sysdeps/alpha/fpu/s_isnan.c: New file.
8430 * sysdeps/alpha/fpu/s_isnanf.c: New file.
8431 * sysdeps/alpha/fpu/s_llrint.c: New file.
8432 * sysdeps/alpha/fpu/s_llrintf.c: New file.
8433 * sysdeps/alpha/fpu/s_lrint.c: New file.
8434 * sysdeps/alpha/fpu/s_lrintf.c: New file.
8435 * sysdeps/alpha/fpu/s_nearbyint.c: New file.
8436 * sysdeps/alpha/fpu/s_nearbyintf.c: New file.
8437
8438 * sysdeps/alpha/fpu/bits/mathinline.h (__floorf, __floor): Remove.
8439 (__fdimf, fdimf, __fdim, fdim): Remove.
8440 (__signbitf, __signbit, __signbitl): Use gcc builtin if available.
8441 (__isnanf, __isnan, __isnanl): New.
8442
9e43b50d
RH
84432007-03-13 Richard Henderson <rth@redhat.com>
8444
8445 * sysdeps/ieee754/ldbl-128/Makefile: New file.
8446
62789da3
RH
84472007-03-13 Richard Henderson <rth@redhat.com>
8448
8449 * sysdeps/alpha/Makefile (sysdep-CFLAGS): Force dynamic rounding.
8450 * sysdeps/alpha/fpu/bits/mathinline.h (__signbitl): New.
8451 * sysdeps/alpha/fpu/libm-test-ulps: Regenerate.
8452 * sysdeps/unix/sysv/linux/alpha/alphaev6/fpu/Implies: New file.
8453 * sysdeps/unix/sysv/linux/alpha/alphaev67/fpu/Implies: New file.
8454 * sysdeps/unix/sysv/linux/alpha/fpu/Implies: New file.
8455
47dbe62b
RH
84562007-03-13 Richard Henderson <rth@redhat.com>
8457
37f40235 8458 * elf/dl-support.c (_dl_aux_init): Honor DL_PLATFORM_AUXV.
47dbe62b
RH
8459 * sysdeps/unix/sysv/linux/alpha/dl-auxv.h: New file.
8460 * sysdeps/unix/sysv/linux/alpha/dl-support.c: New file.
8461 * sysdeps/unix/sysv/linux/alpha/dl-sysdep.c (__libc_alpha_cache_shape):
8462 Move to dl-auxv.h; initialize instead of extern weak.
8463 (DL_PLATFORM_AUXV): Move to dl-auxv.h; don't test for undef
8464 weak symbol.
8465 * sysdeps/unix/sysv/linux/alpha/sysconf.c (__libc_alpha_cache_shape):
8466 Extern instead of initialized.
8467
b8097bed
RH
84682007-03-13 Richard Henderson <rth@redhat.com>
8469
8470 * sysdeps/unix/sysv/linux/alpha/sigsuspend.S: Add support for
8471 __sigsuspend_nocancel.
8472
6bf4a686
UD
84732007-03-06 Ulrich Drepper <drepper@redhat.com>
8474
8475 * sysdeps/posix/getaddrinfo.c (get_scope): Correct test for
8476 172.16/12 address range.
8477
0b3b1a0c
UD
84782007-03-02 Jakub Jelinek <jakub@redhat.com>
8479
8480 * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Retry with
8481 a new netlink socket if NLMSG_ERR -EBUSY is seen after some MSG_TRUNC
8482 message.
8483
8f3edfee
UD
84842007-03-01 Jakub Jelinek <jakub@redhat.com>
8485
c1c5e654 8486 [BZ #4069]
8f3edfee
UD
8487 * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Check for NaN
8488 earlier.
8489 * math/libm-test.inc (pow_test): Add more tests involving NaNs.
8490
8491 * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Avoid invalid exception
8492 for x qNaN and y either +-inf or non-integer value.
8493 * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Likewise.
8494 * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.
8495 * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
8496
245a1481
UD
84972007-02-10 Mike Frysinger <vapier@gentoo.org>
8498
8499 * sysdeps/unix/sysv/linux/sh/Makefile: Remove sys/io.h
8500 from sysdep_headers.
8501
c217692b
UD
85022007-02-28 Jakub Jelinek <jakub@redhat.com>
8503
8504 * time/tzfile.c (find_transition): Instead of a linear search try to
8505 guess the transition index, use a linear search if the result is at
8506 most 10 transitions away from the guess or binary search otherwise.
8507
fe64626c
JJ
85082007-02-27 Jakub Jelinek <jakub@redhat.com>
8509
8510 * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Fix
8511 memory reallocation.
8512
0f7769f7
UD
85132007-02-21 Ulrich Drepper <drepper@redhat.com>
8514
621c133d
UD
8515 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Add branch predictions
8516 and fix some typos.
8517 Optimize use of TOLOWER.
9cf147d8 8518
cdfd61e1
UD
8519 [BZ #3325]
8520 * sysdeps/i386/fpu/e_fmodf.S: Revert last changes, keep using fprem.
8521 * sysdeps/i386/fpu/e_fmodl.c: Likewise.
8522 * sysdeps/i386/fpu/e_fmod.S: Likewise.
8523
8889e7aa
UD
8524 [BZ #3458]
8525 * sysdeps/unix/sysv/linux/posix_madvise.c: New file.
8526 * sysdeps/unix/sysv/linux/syscalls.list: Remove posix_madvise entry.
8527
63a2f305
UD
8528 [BZ #4076]
8529 * io/ftw.c (ftw_startup): Handle special case of FTW_CHDIR in /.
8530 (open_dir_stream): Likewise.
8531 * io/Makefile (tests): Add bug-ftw5.
c536b9b8 8532 * io/bug-ftw5.c: New file.
63a2f305 8533
c8703f88
UD
8534 * nscd/hstcache.c (cache_addhst): Remove unnecessary conditional.
8535 * nscd/servicescache.c (cache_addserv): Likewise.
8536
8537 * nscd/grpcache.c (cache_addgr): In case a record changed on
8538 refresh, adjust key_copy.
8539
61705e06
UD
8540 [BZ #4074]
8541 * nscd/pwdcache.c (cache_addpw): In case a record changed on
8542 refresh, adjust key_copy.
8543
0f7769f7
UD
8544 [BZ #4070]
8545 * stdio-common/printf_fp.c (___printf_fp): Handle a few more
0f7769f7 8546 special cases.
8889e7aa 8547 * stdio-common/tfformat.c (sprint_doubles): Some more tests.
0f7769f7 8548
3979024a
UD
85492007-02-19 Ulrich Drepper <drepper@redhat.com>
8550
4c02bf1a
UD
8551 * stdio-common/printf_fp.c (___printf_fp): Cleanups and minor
8552 optimization.
8553
3979024a
UD
8554 * stdio-common/vfscanf.c: Small cleanups throughout.
8555
821d3e70
UD
85562007-02-18 Ulrich Drepper <drepper@redhat.com>
8557
2484468b
UD
8558 [BZ #3325]
8559 * sysdeps/i386/fpu/e_fmodf.S: Use fprem1 instead of fprem.
8560 * sysdeps/i386/fpu/e_fmodl.c: Likewise.
8561 * sysdeps/i386/fpu/e_fmod.S: Likewise.
8562 Patch by Jared Casper <jaredcasper@gmail.com>.
8563
858ee15d
UD
8564 * sysdeps/unix/closedir.c: Outside libc don't use locking.
8565 * sysdeps/unix/opendir.c: Likewise.
8566 * sysdeps/unix/readdir.c: Likewise.
8567
ecb72bd5
UD
8568 [BZ #2211]
8569 * stdio-common/vfscanf.c: Handle localized digits etc for floating
8570 point numbers.
8571 Patch mostly by Hamed Malek <hamed@farsiweb.info>.
8572
ac2ca022
UD
8573 * stdio-common/vfscanf.c: Fix problems in width accounting.
8574 * stdio-common/tst-sscanf.c (double_tests): New tests.
8575 (main): Hook them up.
8576
e9bb5246 8577 * stdio-common/vfscanf.c: Remove unused WIDTH handling.
da50f001 8578 More simplifications of floating-point reader.
e9bb5246 8579
821d3e70
UD
8580 * stdio-common/Makefile (tests): Add tst-swscanf.
8581 * stdio-common/tst-sscanf.c: Make tests usable for swscanf
8582 testing.
8583 * stdio-common/tst-swscanf.c: New file.
8584
07fb5185
UD
85852007-02-17 Ulrich Drepper <drepper@redhat.com>
8586
9138cc0b
UD
8587 [BZ #2633]
8588 * libio/stdio.h: Define struct _IO_FILE in global namespace.
8589 * setjmp/setjmp.h: Define __jmp_buf_tag in global namespace.
8590 Remove using for __jmp_buf_tag.
8591 * locale/locale.h (struct lconv): Also define in std namespace.
8592 * wcsmbs/wchar.h: Move using declaration for tm out of namespace.
8593
6818d837
UD
8594 [BZ #3842]
8595 * sysdeps/posix/euidaccess.c [_LIBC] (euidaccess): Remove shortcut
8596 using __libc_enable_secure.
8597
15c4b5a4
UD
8598 [BZ #3818]
8599 * sysdeps/unix/sysv/linux/sys/acct.h (struct acct_v3): Define.
8600
5e9e9c14
UD
8601 [BZ #3745]
8602 * locale/programs/ld-collate.c (handle_ellipsis): Fix generation
8603 of names for ellipsises.
8604
07fb5185
UD
8605 [BZ #3348]
8606 * malloc/memusage.sh: Cleanups.
8607 * debug/xtrace.sh: Quoting and trap changes.
8608
8c6d1043
UD
86092007-02-16 Ulrich Drepper <drepper@redhat.com>
8610
07fb5185
UD
8611 * locale/iso-3166.def: Add Jersey, Guernsey, and Isle Of Man entries.
8612
93e66914 8613 * locale/iso-3166.def: Update entry for Serbia.
93e36434
UD
8614 * locale/iso-4217.def: Define RSD, remove CSD.
8615
ad0b348c
UD
8616 * sysdeps/x86_64/bits/atomic.h: One more change, this time for 16-
8617 and 64-bit operations.
8618
8619 [BZ #4040]
8620 * sysdeps/i386/i486/bits/atomic.h: One more change, this time for
8621 16-bit operations.
8622
8c6d1043
UD
8623 * nscd/nscd.c (parse_opt): One more conversion to use send instead
8624 of writev.
8625
987f54c6
UD
86262007-02-15 Ulrich Drepper <drepper@redhat.com>
8627
b3715c05
UD
8628 [BZ #3991]
8629 * assert/assert.h (assert): Simplify.
8630 (assert_perror): Likewise.
8631 Patch by Israel G. Lugo <ilugo@bridonsecurity.com>.
8632
6eea8e0d
UD
8633 * nscd/nscd_helper.c (open_socket): Don't send padding bytes from
8634 reqdata.
8635
987f54c6
UD
8636 * sysdeps/unix/sysv/linux/x86_64/send.c (__libc_send): Cosmetic
8637 change: don't pass NULL in place of an integer.
8638
3dc08a7e
UD
86392007-02-02 Bruno Haible <bruno@clisp.org>
8640
06c17c78
UD
8641 [BZ #3954]
8642 * iconvdata/ksc5601.c (__ksc5601_sym_to_ucs, __ksc5601_sym_from_ucs):
8643 Add mapping for U+327E.
8644 * iconvdata/ksc5601.h (KSC5601_SYMBOL): Increment.
8645 * iconvdata/johab.c (BODY for FROM_LOOP, BODY for TO_LOOP): Enable
8646 mapping of 0xD9 0xE8.
8647 * iconvdata/uhc.c (BODY for FROM_LOOP, BODY for TO_LOOP): Disable
8648 mapping of U+327E.
8649 Reported by Jungshik Shin <jungshik@google.com>.
8650
8651 [BZ #3955]
3dc08a7e
UD
8652 * iconvdata/johab.c (BODY for FROM_LOOP, BODY for TO_LOOP): Enable
8653 mapping of 0xD9 0xE6 and of 0xD9 0xE7.
8654 Reported by Jungshik Shin <jungshik@google.com>.
8655
a810e68c
UD
86562007-02-14 Ulrich Drepper <drepper@redhat.com>
8657
8658 * sysdeps/x86_64/bits/atomic;h: Fix asm parameters for some
8659 byte variants.
8660
8661 [BZ #4040]
8662 * sysdeps/i386/i486/bits/atomic.h: Fix asm parameters for some
8663 byte variants. Patch mostly be tom@tommay.net.
8664
05f135ba
UD
86652007-02-14 Jakub Jelinek <jakub@redhat.com>
8666
8667 [BZ #3996]
8668 * posix/glob.c (attribute_hidden): Define if not defined.
8669 (glob): Unescape dirname, filename or username when needed and not
8670 GLOB_NOESCAPE. Handle \/ correctly. Handle GLOB_MARK if filename
8671 is NULL. Handle unescaped [ in pattern without closing ].
8672 Don't pass GLOB_CHECK down to recursive glob for directories.
8673 (__glob_pattern_type): New function.
8674 (__glob_pattern_p): Implement using __glob_pattern_type.
8675 (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
8676 characters and backslashes if not GLOB_NOESCAPE or unterminated [.
8677 Remove unreachable code.
8678 * posix/globtest.sh: Add a couple of new tests.
8679
2f699967
UD
86802007-02-13 Ulrich Drepper <drepper@redhat.com>
8681
8682 * po/ru.po: Update from translation team.
8683
3a7cd5b4
JJ
86842007-02-12 Jakub Jelinek <jakub@redhat.com>
8685
8686 * sysdeps/i386/bits/byteswap.h (__bswap_32): Add __amdfam10__
8687 to the list of i486+ CPUs.
8688 * sysdeps/x86_64/bits/byteswap.h (__bswap_32): Likewise.
8689
2f978feb
UD
86902007-02-12 Ulrich Drepper <drepper@redhat.com>
8691
8692 * elf/rtld.c (RESOLVE_MAP): Always return bootstrap_map reference.
8693 * elf/Makefile ($(objpfx)ld.so): Check that ld.so has no undefined
8694 references.
8695
2bbb7d5b
UD
86962007-02-09 Ulrich Drepper <drepper@redhat.com>
8697
5ed61e0f
UD
8698 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Remove incorrect comment.
8699
2bbb7d5b
UD
8700 * resolv/res_init.c (res_setoptions): Recognize edns0 option.
8701 * resolv/res_mkquery.c: Define __res_nopt.
8702 * resolv/res_query.c (__libc_res_nquery): If RES_USE_EDNS0 is set
8703 try adding EDNS0 record.
8704 * resolv/res_send.c (send_dg): If request failed with FORMERR and
8705 EDNS0 record was send make sure we don't try it again.
8706 * resolv/resolv.h: Define RES_F_EDNS0ERR and RES_USE_EDNS0.
8707 * include/resolv.h: Declare __res_nopt.
8708
00458b5b
UD
87092007-02-08 Jakub Jelinek <jakub@redhat.com>
8710
8711 [BZ #3944]
8712 * time/strptime_l.c (__strptime_internal): Set have_mon for
8713 %b/%B/%h. Set have_mon and have_mday if tm_mon and tm_mday
8714 have been computed from tm_yday and tm_year. Don't crash
8715 in day_of_the_week or day_of_the_year if not have_mon
8716 and tm_mon contains bogus value.
8717 * time/Makefile (tests): Add tst-strptime3.
8718 * time/tst-strptime3.c: New test.
8719
784aacea
UD
87202007-02-05 Jakub Jelinek <jakub@redhat.com>
8721
8722 [BZ #3957]
8723 * posix/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
8724 bit for RE_HAT_LISTS_NOT_NEWLINE.
8725 (build_charclass_op): Remove bogus comment.
8726 * posix/Makefile (tests): Add bug-regex27 and bug-regex28.
8727 * posix/bug-regex27.c: New test.
8728 * posix/bug-regex28.c: New test.
8729
bf7a2463
UD
87302007-02-03 Ulrich Drepper <drepper@redhat.com>
8731
8732 * po/sv.po: Update from translation team.
8733
f2ccf983
UD
87342007-02-02 Ulrich Drepper <drepper@redhat.com>
8735
8736 * nscd/nscd_helper.c (open_socket): Minor size optimization.
8737
73f50d5a
UD
87382007-02-02 Jakub Jelinek <jakub@redhat.com>
8739
8740 * include/locale.h (__uselocale): Add libc_hidden_proto.
8741 * locale/uselocale.c (__uselocale): Add libc_hidden_def.
8742
f6bf9e59
JJ
8743 * nscd/nscd_helper.c (open_socket): Use __gettimeofday instead of
8744 gettimeofday.
8745
4a44ce79
UD
87462007-02-01 Ulrich Drepper <drepper@redhat.com>
8747
8748 * sysdeps/unix/sysv/linux/i386/sysdep.h (PTR_MANGLE): Roll value before
8749 returning.
8750 (PTR_DEMANGLE): Real definition now that it's not the same as
8751 PRT_MANGLE anymore.
8752 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
8753
8754 * string/strerror_l.c: New file.
8755 * string/Makefile (routines): Add strerror_l.
8756 * string/string.h: Declare strerror_l.
8757 * string/Versions: Export strerror_l for GLIBC_2.6.
8758
58a2d52e
UD
87592007-01-31 Ulrich Drepper <drepper@redhat.com>
8760
8761 * nscd/nscd_helper.c (open_socket): Now takes request type and key
8762 as parameter. Construct request record. Try sending request
8763 before the first poll use, it usually succeeds. Adjust all
8764 callers.
8765 * nscd/nscd-client.h: Define MAXKEYLEN.
4a44ce79 8766 * nscd/connections.c (nscd_run): Don't define MAXKEYLEN here.
58a2d52e 8767
1a77d37f
JJ
87682007-01-31 Jakub Jelinek <jakub@redhat.com>
8769
8770 * nscd/nscd-client.h (__nscd_cache_search): Remove const qualifier
8771 from return value.
8772 * nscd/nscd_helper.c: Include string.h.
8773 (__nscd_cache_search): Remove const qualifier from return value.
8774 On strict alignment architectures check hash entry and data head
8775 alignment.
8776 * nscd/nscd_getpw_r.c (nscd_getpw_r): Don't crash or fail because
8777 mmapped data during GC cycle contains garbage. If
8778 __nscd_drop_map_ref fails, decrement mapped->counter when returning
8779 error or if retrying with NO_MAPPING, only __nscd_unmap if counter
8780 dropped to 0.
8781 * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
8782 * nscd/nscd_initgroups.c (__nscd_getgrouplist): Likewise.
8783 * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
8784 * nscd/nscd_getai.c (__nscd_getai): Likewise.
8785 * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
8786
ee314200
UD
87872007-01-30 Ulrich Drepper <drepper@redhat.com>
8788
8789 * misc/hsearch_r.c (hdestroy_r): Remove unnecessary test.
8790
14c8bf3b
UD
87912007-01-26 Ulrich Drepper <drepper@redhat.com>
8792
8793 * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Use register
8794 names not numbers in cfi_*.
8795
d2708e67
AJ
87962007-01-26 Andreas Jaeger <aj@suse.de>
8797
8798 * sysdeps/unix/sysv/linux/sys/personality.h (ADDR_NO_RANDOMIZE,
14c8bf3b 8799 ADDR_LIMIT_3GB, PER_LINUX_32BIT, PER_LINUX32_3GB): Add.
d2708e67
AJ
8800 Correct values of PER_HPUX and PER_OSF4.
8801
7fbc8784
UD
88022007-01-24 Ulrich Drepper <drepper@redhat.com>
8803
8aaf53ee 8804 * elf/dl-minimal.c: Undefine _itoa first.
7fbc8784
UD
8805 * stdio-common/_itoa.h: Define _itoa and _fitoa for 64-bit platforms.
8806 * malloc/mtrace.c: Revert last change.
8807 * posix/wordexp.c: Likewise.
8808
9d6cde3d
UD
88092007-01-24 Jakub Jelinek <jakub@redhat.com>
8810
8811 * sysdeps/i386/bits/byteswap.h (__bswap_32): Add __nocona__, __core2__
8812 and __geode__ to the list of i486+ CPUs.
8813 * sysdeps/x86_64/bits/byteswap.h (__bswap_32): Likewise.
8814
c1f0486a
UD
88152007-01-23 Ulrich Drepper <drepper@redhat.com>
8816
8817 * stdio-common/_itoa.c: Include <limits.h>.
8818 * stdio-common/_itowa.c: Likewise.
8819
6cae3957
UD
88202007-01-22 Ulrich Drepper <drepper@redhat.com>
8821
765bbb24
UD
8822 * stdio-common/_itowa.c: Don't compile _itowa for 64-bit
8823 platforms.
8824 * stdio-common/_itoa.c: Don't compile in _itoa and _fitoa for
8825 64-bit platforms.
8826 * malloc/mtrace.c (tr_where): Use _fitoa_word instead of _fitoa if
8827 possible.
8828 * posix/wordexp.c (parse_arith): Use _itoa_word instead of _itoa
8829 if possible.
8830
6cae3957
UD
8831 [BZ #3902]
8832 * stdio-common/_itoa.c (_itoa): Make sure at least a zero is emitted.
8833 * stdio-common/Makefile (tests): Add bug17.
8834 * stdio-common/bug17.c: New file.
8835
ddaafd04
UD
88362007-01-19 Ulrich Drepper <drepper@redhat.com>
8837
8838 * iconvdata/brf.c: New file.
439201de
UD
8839 * iconvdata/testdata/BRF: New file.
8840 * iconvdata/testdata/BRF..UTF8: New file.
8841 Contributed by Samuel Thibault <samuel.thibault@ens-lyon.org>.
ddaafd04
UD
8842 * iconvdata/Makefile: Add rules to build BRF.
8843 * iconvdata/TESTS: Add BRF entry.
8844 * iconvdata/gconv-modules: Likewise.
8845 * iconvdata/tst-tables.sh: Likewise.
ddaafd04 8846
9e6e344e
UD
88472007-01-18 Anton Nikishaev <anton.nik@gmail.com>
8848
8849 * wcsmbs/wchar.h (wcstoll): Fix comment, function returns value of
8850 type `long long int', not `long int'.
8851 (wcstoq): Likewise.
8852
299f7b0f
UD
88532007-01-18 Ulrich Drepper <drepper@redhat.com>
8854
8855 * scripts/gen-as-const.awk: Add cast to long to avoid int promotion
8856 of values on 64-bit platforms which are too large.
8857
cd8127cc
JJ
88582007-01-12 Steven Munroe <sjmunroe@us.ibm.com>
8859 Joe Kerian <jkerian@us.us.ibm.com>
8860
8861 [BZ #2749]
8862 * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Include
8863 <math_ldbl_opt.h>. Remove weak_alias. Use long_double_symbol macro.
8864 (__copysignl): Use signbit() for comparison.
8865 * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c (__fabsl): Correct parms for
8866 SET_LDOUBLE_WORDS64.
8867
8868 [BZ #2423, #2749]
8869 * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Don't include <fenv_libc.h>.
8870 (__ceill): Remove calls to fegetround(), fesetround().
8871 * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
8872 * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
8873 * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
8874
b3acfdf7
JJ
88752007-01-17 Jakub Jelinek <jakub@redhat.com>
8876
4a2e03c6
JJ
8877 * nscd/nscd_getserv_r.c (nscd_getserv_r): Fix pastos.
8878
b3acfdf7
JJ
8879 * sysdeps/unix/sysv/linux/getdents.c (offsetof): Remove.
8880
1476bce6
UD
88812007-01-17 Ulrich Drepper <drepper@redhat.com>
8882
8883 * sysdeps/unix/sysv/linux/fatal-prepare.h: Use PTHFCT_CALL to
8884 demangle pointer.
8885 * csu/libc-start.c: Likewise.
8886
d78bce1c
UD
88872007-01-16 Ulrich Drepper <drepper@redhat.com>
8888
8889 * sysdeps/posix/system.c: Remove NO_WAITPID support, it cannot
8890 really work anyway.
8891
1bd79025
UD
88922007-01-15 Ulrich Drepper <drepper@redhat.com>
8893
000b027e
UD
8894 * nscd/connections.c (servinfo): Renamed to reqinfo. Change all
8895 users.
8896 (handle_request): Remove unnecessary tests.
8897
1bd79025
UD
8898 * nscd/cache.c (cache_add): Record the failure to add to the cache.
8899
d68f5d2c
JJ
89002007-01-15 Jakub Jelinek <jakub@redhat.com>
8901
8902 * soft-fp/op-common.h (FP_TRUNC): When truncating a NaN, clear
8903 workbits in semi-raw fraction.
8904
8905 * math/test-misc.c: Add new tests.
8906
89072007-01-14 Steven Munroe <sjmunroe@us.ibm.com>
8908
8909 * math/basic-test.c: Include test-skeleton.c.
8910 (TEST_TRUNC): Define.
8911 (truncdfsf_test, trunctfsf_test, trunctfdf_test): New.
8912 (main): Rename to ...
8913 (do_test): ...this. Run new tests.
8914 (TEST_FUNCTION): Define.
8915
89162006-10-05 Steven Munroe <sjmunroe@us.ibm.com>
8917 Joe Kerian <jkerian@us.us.ibm.com>
8918
8919 [BZ #2749]
8920 * soft-fp/op-4.h (__FP_FRAC_SUB_3, __FP_FRAC_SUB_4): Correct borrow
8921 handling for high words.
8922 * soft-fp/op-common.h (_FP_OVERFLOW_SEMIRAW): Always set inexact
8923 and overflow for infinity.
8924
4e35ef2c
UD
89252007-01-15 Ulrich Drepper <drepper@redhat.com>
8926
2a1dea97
UD
8927 * nscd/connections.c (handle_request): Add a __builtin_expect.
8928
9691d83c
UD
8929 * nscd/connections.c (serv2db): Change type into structure which
8930 also says whether this is a request for data. Renamed to
8931 servinfo. All users changed.
8932 (handle_request): Much simpler test whether we should search the cache.
8933
49ee6d79
UD
8934 * nscd/connections.c (handle_request): Fix thinko in selinux test
8935 invocation.
8936
4e35ef2c
UD
8937 * sysdeps/generic/ldsodefs.h: Define DL_LOOKUP_SCOPE_LOCK.
8938 * elf/dl-lookup.c (add_dependency): If scope map is locked, unlock
8939 it before getting dl_load_lock and then relock.
8940 (_dl_lookup_symbol_x): Pass flags to add_dependency.
8941 When rerunning _dl_lookup_symbol_x, compute symbol_scope again in
8942 case we unlocked the scope.
8943 * elf/dl-runtime.c (_dl_fixup): Pass DL_LOOKUP_SCOPE_LOCK to
8944 _dl_lookup_symbol_x in case we locked the scope.
8945 (_dl_profile_fixup): Likewise.
8946 * elf/dl-sym.c (do_sym): In flags passed to call_dl_lookup, also
8947 set DL_LOOKUP_SCOPE_LOCK.
8948
23691ab2
UD
89492007-01-13 Ulrich Drepper <drepper@redhat.com>
8950
fb453d08
UD
8951 * inet/Makefile: Define CFLAGS-getsrvbynm_r.c and
8952 CFLAGS-getsrvbynpt_r.c.
8953 * nscd/getsrvbynm_r.c: New file.
8954 * nscd/getsrvbypt_r.c: New file.
8955 * nscd/nscd_getserv_r.c: New file.
8956 * nscd/servicescache.c: New file.
8957 * nscd/Makefile (routines): Add nscd_getserv_r.
8958 (nscd-modules): Add getsrvbynm_r, getsrvbypt_r, and servicescache.
8959 Define CFLAGS-servicescache.c, CFLAGS-getsrvbynm_r.c, and
8960 CFLAGS-getsrvbypt_r.c.
8961 * nscd/cache.c (prune_cache): Rewrite to get re-add function from
8962 table. Add entries for services database.
8963 * nscd/connections.c (serv2str): Mark as const. Add entries for
8964 services database.
8965 (dbs): Add .reset_res and servdb initialization.
8966 (serv2db): Add entries for services database.
8967 (verify_persistent_db): Accept dbnr == servdb.
8968 (invalidate_cache): Rewrite database name recognition to use a table.
8969 Call res_init() if .reset_res is set for database.
8970 (handle_request): Add code to handle services database.
8971 * nscd/gai.c: Don't define __getservbyname_r.
8972 * nscd/nscd-client.h (request_type): Remove LASTDBREQ, add
8973 GETSERVBYNAME, GETSERVBYPORT, GETFDSERV.
8974 (serv_response_header): Define.
8975 (struct datahead): Add serv_response_header member.
8976 * nscd/nscd.c (parse_opt): Rewrite parsing of -i parameter value
8977 using table.
8978 * nscd/nscd.conf: Add entries for services database.
8979 * nscd/nscd.h: Adjust declaration of dbnames and serv2str.
8980 Declare serv_iov_disabled.
8981 Declare addservbyname, readdservbyname, addservbyport, and
8982 readdservbyport.
8983 * nscd/nscd_conf.c (dbnames): Mark as const. Add services entry.
8984 (find_db): Fix error message.
8985 * nscd/nscd_proto.h: Declare __nss_not_use_nscd_services,
8986 __nscd_getservbyname_r, and __nscd_getservbyport_r.
8987 * nscd/selinux.c (perms): Add entries for services database.
8988 * nss/Versions: Export __nss_services_lookup with GLIBC_PRIVATE.
8989 * nss/nsswitch.c (__nss_disable_nscd): Also disable services database.
8990
8991 * nscd/grpcache.c: Remove obsolete code. Cleanups.
8992 * nscd/hstcache.c: Likewise.
8993 * nscd/pwdcache.c: Likewise.
8994
b21fa963
UD
8995 * nis/nss_nis/nis-service.c (_nss_nis_getservbyname_r): Correct
8996 computation of keylen.
8997
23691ab2
UD
8998 * include/string.h: Only redefine strndupa if this is really for
8999 libc code.
9000
8980796b
UD
90012007-01-12 Ulrich Drepper <drepper@redhat.com>
9002
4a4a65f2
UD
9003 * nscd/nscd_gethst_r.c: Minor cleanups.
9004
43397eaf
UD
9005 * nscd/connections.c (handle_request): Check selinux permissions
9006 for all non-admin commands.
9007
038a1a9f
UD
9008 * sysdeps/i386/i486/bits/atomic.h: Define
9009 atomic_compare_and_exchange_val_acq,
9010 atomic_compare_and_exchange_bool_acq, and atomic_exchange_and_add
9011 using __sync_* built-ins for gcc >= 4.1.
9012 * sysdeps/x86_64/bits/atomic.h: Likewise.
9013
8980796b
UD
9014 [BZ #3840]
9015 * scripts/check-local-headers.sh: Restrict to testing .o.d, .os.d,
9016 and .oS.d files.
9017
32c075e1
JJ
90182007-01-05 Steven Munroe <sjmunroe@us.ibm.com>
9019
9020 * stdlib/tst-makecontext.c: Include errno.h. Change main()
9021 to do_test(). Define TEST_FUNCTION. Include test-skeleton.c.
9022 (do_test): Check errno and exit(0) if ENOSYS.
9023
90242007-01-11 Jakub Jelinek <jakub@redhat.com>
9025
9026 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix handling of multi-byte
9027 thousands separators.
9028 * stdlib/Makefile: Add rules to build and run tst-strtod4.
9029 * stdlib/tst-strtod4.c: New test.
9030
9031 [BZ #3855]
9032 * stdlib/strtod_l.c (____STRTOF_INTERNAL): 0x. not followed by
9033 hexadecimal digit should accept just the initial 0.
9034 * stdlib/tst-strtod2.c (tests): New variable.
9035 (do_test): Run several tests rather than just one.
9036
11bf311e 90372007-01-11 Jakub Jelinek <jakub@redhat.com>
df859a0c 9038
11bf311e
UD
9039 * sysdeps/i386/soft-fp/sfp-machine.h: Remove.
9040 * sysdeps/x86_64/soft-fp/sfp-machine.h: Likewise.
df859a0c 9041
11bf311e 90422007-01-10 Ulrich Drepper <drepper@redhat.com>
32c075e1 9043
11bf311e
UD
9044 * io/fts.c: Make sure fts_cur is always valid after return from
9045 fts_read.
9046 Patch by Miloslav Trmac <mitr@redhat.com>.
64a0aa0f 9047
11bf311e 90482006-10-27 Richard Sandiford <richard@codesourcery.com>
32c075e1 9049
11bf311e
UD
9050 * elf/elf.h (R_MIPS_GLOB_DAT): Define.
9051 (R_MIPS_NUM): Bump by 1.
32c075e1 9052
11bf311e 90532007-01-03 Jakub Jelinek <jakub@redhat.com>
32c075e1 9054
11bf311e
UD
9055 * posix/execvp.c: Include alloca.h.
9056 (allocate_scripts_argv): Renamed to...
9057 (scripts_argv): ... this. Don't allocate buffer here nor count
9058 arguments.
9059 (execvp): Use alloca if possible.
9060 * posix/Makefile: Add rules to build and run tst-vfork3 test.
9061 * posix/tst-vfork3.c: New test.
32c075e1
JJ
9062
90632007-01-03 Ulrich Drepper <drepper@redhat.com>
9064
9065 * string/Makefile (tst-strxfrm2-ENV): Define.
11bf311e 9066 * stdlib/Makefile (tst-strtod3-ENV): Define.
32c075e1 9067
11bf311e 90682007-01-02 Ulrich Drepper <drepper@redhat.com>
32c075e1 9069
11bf311e
UD
9070 * posix/getconf.c: Update copyright year.
9071 * nss/getent.c: Likewise.
9072 * iconv/iconvconfig.c: Likewise.
9073 * iconv/iconv_prog.c: Likewise.
9074 * elf/ldconfig.c: Likewise.
9075 * catgets/gencat.c: Likewise.
9076 * csu/version.c: Likewise.
9077 * elf/ldd.bash.in: Likewise.
9078 * elf/sprof.c (print_version): Likewise.
9079 * locale/programs/locale.c: Likewise.
9080 * locale/programs/localedef.c: Likewise.
9081 * nscd/nscd.c (print_version): Likewise.
9082 * debug/xtrace.sh: Likewise.
9083 * malloc/memusage.sh: Likewise.
9084 * malloc/mtrace.pl: Likewise.
9085 * debug/catchsegv.sh: Likewise.
64a0aa0f 9086
11bf311e 90872006-12-24 Ulrich Drepper <drepper@redhat.com>
48576885 9088
11bf311e
UD
9089 * malloc/malloc.c (sYSMALLOc): Remove some unnecessary alignment
9090 attempts.
48576885 9091
11bf311e 90922006-12-23 Ulrich Drepper <drepper@redhat.com>
3b6667a4 9093
11bf311e 9094 * posix/wordexp.c: Remove some unnecessary tests.
3b6667a4 9095
33c6de58
UD
90962006-12-22 Gavin Romig-Koch <gavin@redhat.com>
9097
9098 * nis/nss_compat/compat-grp.c (internal_getgrgid_r): Don't
9099 blacklist the group till after we look it up.
9100
fc242bef
UD
91012006-12-21 Ulrich Drepper <drepper@redhat.com>
9102
9103 * include/atomic.h (atomic_forced_read): New macro.
9104
11bf311e
UD
91052006-12-20 SUGIOKA Toshinobu <sugioka@itonet.co.jp>
9106
9107 * sysdeps/unix/sysv/linux/sh/bits/shm.h: New file.
9108
a12dcecc
UD
91092006-12-19 Jakub Jelinek <jakub@redhat.com>
9110
11bf311e
UD
9111 * nss/getXXbyYY_r.c: Include atomic.h.
9112 (INTERNAL (REENTRANT_NAME)): Write startp after start_fct,
9113 add atomic_write_barrier () in between.
9114
a12dcecc
UD
9115 * stdlib/Makefile (tests): Add tst-makecontext.
9116 * stdlib/tst-makecontext.c: New test.
9117
9118 * sysdeps/unix/sysv/linux/powerpc/powerpc32/makecontext.S
9119 (__makecontext): Don't realign uc_mcontext.uc_regs.
9120
11bf311e 91212006-11-28 Jakub Jelinek <jakub@redhat.com>
594d423a 9122
11bf311e
UD
9123 * elf/dl-support.c: Include dl-procinfo.h.
9124 * sysdeps/powerpc/dl-procinfo.h (PPC_PLATFORM_POWER4,
9125 PPC_PLATFORM_PPC970, PPC_PLATFORM_POWER5, PPC_PLATFORM_POWER5_PLUS,
9126 PPC_PLATFORM_POWER6, PPC_PLATFORM_CELL_BE, PPC_PLATFORM_POWER6X):
9127 Define.
9128 (_dl_string_platform): Use PPC_PLATFORM_* macros instead of
9129 hardcoded constants.
9130 * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_platform): Use
9131 PPC_PLATFORM_* macros for array designators.
594d423a 9132
11bf311e 91332006-11-11 Steven Munroe <sjmunroe@us.ibm.com>
594d423a 9134
11bf311e
UD
9135 * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Add 3 new cap
9136 names to the beginning.
9137 (_dl_powerpc_platforms): Add "power6x".
9138 * sysdeps/powerpc/dl-procinfo.h (_DL_HWCAP_FIRST): Decrease.
9139 (HWCAP_IMPORTANT): Add PPC_FEATURE_HAS_DFP.
9140 (_DL_PLATFORMS_COUNT): Increase.
9141 (_dl_string_platform): Handle power6x case.
9142 * sysdeps/powerpc/sysdep.h (PPC_FEATURE_PA6T, PPC_FEATURE_HAS_DFP,
9143 PPC_FEATURE_POWER6_EXT): Define.
9144 (PPC_FEATURE_POWER5, PPC_FEATURE_POWER5_PLUS): Correct Comment.
594d423a 9145
5bcba0ed
UD
91462006-12-18 Jakub Jelinek <jakub@redhat.com>
9147
9148 [BZ #3747]
9149 * stdlib/jrand48_r.c (__jrand48_r): Make sure result is in the
11bf311e 9150 [-2^31 .. 2^31) range.
5bcba0ed
UD
9151 * stdlib/tst-rand48.c (main): Fix expected values for 64-bit
9152 targets.
9153 * stdlib/tst-rand48-2.c: New test.
9154 * stdlib/Makefile (tests): Add tst-rand48-2.
9155
9e1444fc
UD
91562006-12-14 Jakub Jelinek <jakub@redhat.com>
9157
9158 * misc/tst-pselect.c (do_test): Fix sigblock argument.
9159
36775704
UD
91602006-12-14 Ulrich Drepper <drepper@redhat.com>
9161
9162 * misc/tst-pselect.c (do_test): Make sure the helper process is
9163 terminating when the test is aborted.
9164
1e88bd0f
UD
91652006-12-13 Ulrich Drepper <drepper@redhat.com>
9166
11bf311e
UD
9167 * sysdeps/unix/sysv/linux/bits/statvfs.h: Define ST_RELATIME.
9168 * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
9169 Handle relatime mount option.
9170
1e88bd0f
UD
9171 [BZ #2337]
9172 * libio/Makefile (tests): Add tst-setvbuf1.
9173 * libio/tst-setvbuf1.c: New file.
9174
91752006-12-08 Jakub Jelinek <jakub@redhat.com>
9176
9177 [BZ #2337]
9178 * libio/genops.c (__uflow): Fix a typo.
9179 * libio/wfiledoalloc.c (_IO_wfile_doallocate): Don't stat
9180 nor set _IO_LINE_BUF bit here. Size the wide buffer based on
9181 the narrow buffer size.
9182
91832006-11-24 Jakub Jelinek <jakub@redhat.com>
9184
9185 [BZ #2337]
9186 * libio/libio.h (_IO_FLAGS2_USER_WBUF): Define.
9187 * libio/wgenops.c (_IO_wsetb, _IO_wdefault_finish): Test and set
9188 _IO_FLAGS2_USER_WBUF bit in _flags2 instead of _IO_USER_BUF bit
9189 in _flags.
9190 * libio/wstrops.c (_IO_wstr_overflow, enlarge_userbuf,
9191 _IO_wstr_finish): Likewise.
9192 * libio/wmemstream.c (open_wmemstream): Likewise.
9193 * libio/fileops.c (_IO_new_file_close_it): Call _IO_set[bgp]
9194 even for wide streams.
9195
11bf311e 91962006-12-13 Jakub Jelinek <jakub@redhat.com>
1f55ce48 9197
11bf311e
UD
9198 * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S: Include
9199 kernel-features.h.
9200
92012006-12-11 Ulrich Drepper <drepper@redhat.com>
9202
9203 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Parse thousand
9204 separators also if no non-zero digits found.
9205 * stdlib/Makefile (tests): Add tst-strtod3.
1f55ce48 9206
d117c1ce
UD
92072006-12-09 Ulrich Drepper <drepper@redhat.com>
9208
f85fb97b
UD
9209 [BZ #3632]
9210 * include/features.h: Fix comment about default value for
9211 _POSIX_C_SOURCE.
9212
11bf311e
UD
9213 [BZ #3664]
9214 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix test to recognize
9215 empty parsed strings.
9216 * stdlib/Makefile (tests): Add tst-strtod2.
9217 * stdlib/tst-strtod2.c: New file.
9218
9219 [BZ #3673]
9220 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix exp_limit
9221 computation.
9222 * stdlib/Makefile (tests): Add tst-atof2.
9223 * stdlib/tst-atof2.c: New file.
9224
9225 [BZ #3674]
9226 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Adjust exponent value
9227 correctly if removing trailing zero of hex-float.
9228 * stdlib/Makefile (tests): Add tst-atof1.
9229 * stdlib/tst-atof1.c: New file.
9230
a822d9f4
UD
92312006-12-09 Jakub Jelinek <jakub@redhat.com>
9232
11bf311e
UD
9233 * misc/mntent_r.c (__hasmntopt): Check p[optlen] even when p == rest.
9234 Start searching for next comma at p rather than rest.
9235 * misc/Makefile (tests): Add tst-mntent2.
9236 * misc/tst-mntent2.c: New test.
9237
a822d9f4
UD
9238 * misc/getusershell.c (initshells): Check for integer overflows.
9239 Make strings buffer one bigger as fgets always succeeds when second
9240 argument is 1. Don't use calloc for shells array. Disallow
11bf311e 9241 / as shell.
f0d5e1f6 9242
11bf311e 92432006-12-08 Ulrich Drepper <drepper@redhat.com>
f0d5e1f6 9244
11bf311e
UD
9245 * malloc/memusage.c: Handle realloc with new size of zero and
9246 non-NULL pointer correctly.
9247 (me): Really write first record twice.
9248 (struct entry): Make format bi-arch safe.
9249 (dest): Write out more realloc statistics.
9250 * malloc/memusagestat.c (struct entry): Make format bi-arch safe.
32c075e1 9251
11bf311e 92522006-12-05 Jakub Jelinek <jakub@redhat.com>
32c075e1 9253
11bf311e 9254 * nis/nis_subr.c (nis_getnames): Revert last change.
32c075e1 9255
f0d5e1f6
UD
92562006-12-04 Jakub Jelinek <jakub@redhat.com>
9257
9258 * sysdeps/unix/sysv/linux/ttyname.c: Include termios.h.
9259 (ttyname): Use tcgetattr instead of isatty, don't set errno to ENOTTY.
9260 * sysdeps/unix/sysv/linux/ttyname_r.c: Include termios.h.
9261 (__ttyname_r): Use tcgetattr instead of isatty, don't set errno to
9262 ENOTTY.
9263 * io/Makefile: Add rules to build and run tst-ttyname_r test.
9264 * io/tst-ttyname_r.c: New test.
9265
11bf311e 92662006-12-03 Kaz Kojima <kkojima@rr.iij4u.or.jp>
5df4fe08 9267
11bf311e 9268 * sysdeps/unix/sysv/linux/sh/sys/io.h: Removed.
5df4fe08 9269
11bf311e 92702006-11-30 H.J. Lu <hongjiu.lu@intel.com>
ee50871d 9271
11bf311e
UD
9272 * sysdeps/i386/i686/memcmp.S: Use jump table as the base of
9273 jump table entries.
9274
92752006-11-30 Jan Kratochvil <jan.kratochvil@redhat.com>
9276
9277 * sysdeps/unix/sysv/linux/i386/clone.S: Provide CFI for the outermost
9278 `clone' function to ensure proper unwinding stop of gdb.
9279 * sysdeps/unix/sysv/linux/x86_64/clone.S: Likewise.
9280
92812006-12-01 Ulrich Drepper <drepper@redhat.com>
9282
9283 * nscd/nscd.init: Remove obsolete and commented-out -S option
9284 handling.
9285
92862006-11-23 Jakub Jelinek <jakub@redhat.com>
9287
9288 [BZ #3514]
9289 * manual/string.texi (strncmp): Fix pastos from wcscmp description.
9290
9291 [BZ #3515]
9292 * manual/string.texi (strtok): Remove duplicate paragraph.
9293
92942006-12-01 Jan Kratochvil <jan.kratochvil@redhat.com>
9295
9296 * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Fix compatibility with
9297 libgcc not supporting `rflags' unwinding (register # >= 17).
9298
92992006-11-30 Jakub Jelinek <jakub@redhat.com>
9300
9301 * sunrpc/svc_run.c (svc_run): Set my_pollfd to new_pollfd if realloc
9302 succeeded.
9303
93042006-11-29 Daniel Jacobowitz <dan@codesourcery.com>
9305 Jakub Jelinek <jakub@redhat.com>
9306 Jan Kratochvil <jan.kratochvil@redhat.com>
9307
9308 * sysdeps/unix/sysv/linux/x86_64/sigaction.c (restore_rt): Add correct
9309 unwind information.
9310 * sysdeps/unix/sysv/linux/x86_64/Makefile: Provide symbols for
9311 'restore_rt' even in the 'signal' directory.
9312 * sysdeps/unix/sysv/linux/x86_64/ucontext_i.sym: Extend the regs list.
ee50871d 9313
b1a758f3
UD
93142006-11-27 Jakub Jelinek <jakub@redhat.com>
9315
9316 [BZ #3559]
9317 * sunrpc/svc_run.c (svc_run): Fail instead of segfaulting if
11bf311e
UD
9318 malloc crashed. Don't allocate memory unnecessarily in each
9319 loop.
b1a758f3 9320
11bf311e 93212006-10-21 Jakub Jelinek <jakub@redhat.com>
854d1124 9322
11bf311e 9323 * resolv/mapv4v6addr.h (map_v4v6_address): Fix last change.
dfc99a56 9324
11bf311e 93252006-11-20 Ulrich Drepper <drepper@redhat.com>
dfc99a56 9326
11bf311e 9327 * resolv/mapv4v6addr.h (map_v4v6_address): Optimize a bit.
852d657c 9328
11bf311e 93292006-11-18 Bruno Haible <bruno@clisp.org>
852d657c 9330
11bf311e
UD
9331 * sysdeps/unix/sysv/linux/i386/getgroups.c (__getgroups): Invoke
9332 __sysconf only after having tried to call getgroups32.
36c0a636 9333
11bf311e 93342006-11-19 Ulrich Drepper <drepper@redhat.com>
36c0a636 9335
11bf311e
UD
9336 * nss/nss_files/files-hosts.c (LINE_PARSER): Support IPv6-style
9337 addresses for IPv4 queries if they can be mapped.
b1f0c2a6 9338
11bf311e 93392006-11-16 Jakub Jelinek <jakub@redhat.com>
b1f0c2a6 9340
11bf311e
UD
9341 * sysdeps/x86_64/fpu/s_copysignf.S (__copysignf): Switch to .text.
9342 * sysdeps/x86_64/fpu/s_copysign.S (__copysign): Likewise.
9343 (signmask): Add .size directive.
9344 (othermask): Add .type directive.
bef8927a 9345
11bf311e 93462006-11-14 Ulrich Drepper <drepper@redhat.com>
2c53fa20 9347
11bf311e 9348 * po/nl.po: Update from translation team.
854d1124 9349
11bf311e 9350 * timezone/zdump.c: Redo fix for BZ #3137.
3f1e9205 9351
11bf311e 93522006-11-14 Jakub Jelinek <jakub@redhat.com>
bef8927a 9353
11bf311e
UD
9354 * nss/nss_files/files-alias.c (get_next_alias): Set line back
9355 to first_unused after parsing :include: file.
5c2af134 9356
32c075e1 93572006-11-10 Ulrich Drepper <drepper@redhat.com>
e1b37083 9358
11bf311e
UD
9359 * timezone/africa: Update from tzdata2006o.
9360 * timezone/antarctica: Likewise.
9361 * timezone/asia: Likewise.
9362 * timezone/australasia: Likewise.
9363 * timezone/backward: Likewise.
9364 * timezone/europe: Likewise.
9365 * timezone/iso3166.tab: Likewise.
9366 * timezone/northamerica: Likewise.
9367 * timezone/southamerica: Likewise.
9368 * timezone/zone.tab: Likewise.
9369
9370 * time/tzfile.c (__tzfile_read): Extend to handle new file format
9371 on machines with 64-bit time_t.
9372
9373 * timezone/checktab.awk: Update from tzcode2006o.
9374 * timezone/ialloc.c: Likewise.
9375 * timezone/private.h: Likewise.
9376 * timezone/scheck.c: Likewise.
9377 * timezone/tzfile.h: Likewise.
9378 * timezone/tzselect.ksh: Likewise.
9379 * timezone/zdump.c: Likewise.
9380 * timezone/zic.c: Likewise.
9381
9382 [BZ #3483]
9383 * elf/ldconfig.c (main): Call setlocale and textdomain.
9384 Patch mostly by Benno Schulenberg <bensberg@justemail.net>.
9385
9386 [BZ #3480]
9387 * manual/argp.texi: Fix typos.
9388 * manual/charset.texi: Likewise.
9389 * manual/errno.texi: Likewise.
9390 * manual/filesys.texi: Likewise.
9391 * manual/lang.texi: Likewise.
9392 * manual/maint.texi: Likewise.
9393 * manual/memory.texi: Likewise.
9394 * manual/message.texi: Likewise.
9395 * manual/resource.texi: Likewise.
9396 * manual/search.texi: Likewise.
9397 * manual/signal.texi: Likewise.
9398 * manual/startup.texi: Likewise.
9399 * manual/stdio.texi: Likewise.
9400 * manual/sysinfo.texi: Likewise.
9401 * manual/syslog.texi: Likewise.
9402 * manual/time.texi: Likewise.
9403 Patch by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
9404
9405 [BZ #3465]
9406 * sunrpc/clnt_raw.c: Minimal message improvements.
9407 * sunrpc/pm_getmaps.c: Likewise.
9408 * nis/nss_nisplus/nisplus-publickey.c: Likewise.
9409 * nis/nis_print_group_entry.c: Likewise.
9410 * locale/programs/repertoire.c: Likewise.
9411 * locale/programs/charmap.c: Likewise.
9412 * malloc/memusage.sh: Likewise.
9413 * elf/dl-deps.c: Likewise.
9414 * locale/programs/ld-collate.c: Likewise.
9415 * libio/vswprintf.c: Likewise.
9416 * malloc/memusagestat.c: Likewise.
9417 * sunrpc/auth_unix.c: Likewise.
9418 * sunrpc/rpc_main.c: Likewise.
9419 * nscd/cache.c: Likewise.
9420 * locale/programs/repertoire.c: Unify output messages.
9421 * locale/programs/charmap.c: Likewise.
9422 * locale/programs/ld-ctype.c: Likewise.
9423 * locale/programs/ld-monetary.c: Likewise.
9424 * locale/programs/ld-numeric.c: Likewise.
9425 * locale/programs/ld-time.c: Likewise.
9426 * elf/ldconfig.c: Likewise.
9427 * nscd/selinux.c: Likewise.
9428 * elf/cache.c: Likewise.
9429 Patch mostly by Benno Schulenberg <bensberg@justemail.net>.
9430
5c2af134
UD
9431 [BZ #3451]
9432 * sysdeps/i386/fpu/bits/mathinline.h (floor): Make rounding mode
9433 change atomic.
9434 (ceil): Likewise.
9435
11bf311e
UD
94362006-11-10 Jakub Jelinek <jakub@redhat.com>
9437
9438 * string/strxfrm_l.c (STRXFRM): Fix trailing \1 optimization
9439 if N is one bigger than return value.
9440 * string/tst-strxfrm2.c (do_test): Also test strxfrm with l1 + 1
9441 and l1 last arguments, if buf is defined, verify the return value
9442 equals to strlen (buf) and verify no byte beyond passed length
9443 is modified.
9444
94452006-11-10 Ulrich Drepper <drepper@redhat.com>
9446
9447 * po/sv.po: Update from translation team.
9448
37afcf79
UD
94492006-11-09 Ulrich Drepper <drepper@redhat.com>
9450
9451 * sysdeps/unix/sysv/linux/x86_64/sysconf.c (intel_check_word): Add
9452 noinline attribute.
9453
94542006-11-10 Jakub Jelinek <jakub@redhat.com>
9455
9456 * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word): Add
9457 noinline attribute.
9458
11bf311e
UD
9459 * sysdeps/gnu/siglist.c (__old_sys_siglist, __old_sys_sigabbrev):
9460 Use __new_sys_siglist instead of _sys_siglist_internal as
9461 second macro argument.
9462 (_old_sys_siglist): Use declare_symbol_alias macro instead of
9463 strong_alias.
2692deea 9464
11bf311e
UD
94652006-11-09 Ulrich Drepper <drepper@redhat.com>
9466
9467 [BZ #3493]
9468 * posix/unistd.h (sysconf): Remove const attribute.
9469
9470 * sysdeps/posix/getaddrinfo.c (getaddrinfo): Fix test for
9471 temporary or deprecated addresses.
9472 Patch by Sridhar Samudrala <sri@us.ibm.com>.
9473
9474 * string/Makefile (tests): Add tst-strxfrm2.
9475 * string/tst-strxfrm2.c: New file.
9476
94772006-10-09 Jakub Jelinek <jakub@redhat.com>
9478
9479 * elf/dl-debug.c (_dl_debug_initialize): Check r->r_map for 0
9480 rather than r->r_brk.
2692deea
UD
9481
94822006-11-08 Jakub Jelinek <jakub@redhat.com>
9483
11bf311e
UD
9484 * string/strxfrm_l.c (STRXFRM): Do the trailing \1 removal
9485 optimization even if needed > n.
9486
2692deea
UD
9487 * elf/dl-load.c (decompose_rpath): Return bool rather than void.
9488 If l->l_name is on inhibit_rpath list, set sps->dirs to -1 and
9489 return false, otherwise return true.
9490 (cache_rpath): Return decompose_rpath return value.
9491
11bf311e
UD
94922006-11-07 Jakub Jelinek <jakub@redhat.com>
9493
9494 * include/libc-symbols.h (declare_symbol): Rename to...
9495 (declare_symbol_alias): ... this. Add ORIGINAL argument, imply
9496 strong_alias (ORIGINAL, SYMBOL) in asm to make sure it preceedes
9497 .size directive.
9498 * sysdeps/gnu/errlist-compat.awk: Adjust for declare_symbol_alias
9499 changes.
9500 * sysdeps/gnu/siglist.c: Likewise.
9501
95022006-11-03 Steven Munroe <sjmunroe@us.ibm.com>
9503
9504 * sysdeps/powerpc/fpu/bits/mathinline.h
9505 [__LIBC_INTERNAL_MATH_INLINES]: Moved to ...
9506 * sysdeps/powerpc/fpu/math_private.h: ...here. New file.
9507
95082006-11-05 Ulrich Drepper <drepper@redhat.com>
9509
9510 * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word):
9511 Update handling of cache descriptor 0x49 for new models.
9512 * sysdeps/unix/sysv/linux/x86_64/sysconf.c (intel_check_word):
9513 Likewise.
9514
9666e36c
UD
95152006-11-02 Jakub Jelinek <jakub@redhat.com>
9516
9517 * malloc/memusage.c (dest): Reset not_me back to false after
9518 printing statistics.
9519
11bf311e
UD
95202006-11-02 Ulrich Drepper <drepper@redhat.com>
9521
9522 * configure.in: Work around ld --help change and avoid -z relro
9523 test completely if the architecture doesn't care about security.
9524
95252006-11-01 Ulrich Drepper <drepper@redhat.com>
9526
9527 * po/sv.po: Update from translation team.
9528
95292006-10-31 Ulrich Drepper <drepper@redhat.com>
9530
9531 * stdlib/atexit.c (atexit): Don't mark as hidden when used to
9532 generate compatibility version.
9533
95342006-10-29 Ulrich Drepper <drepper@redhat.com>
9535
9536 * configure.in: Relax -z relro requirement a bit.
9537
9538 * po/sv.po: Update from translation team.
9539
95402006-10-29 Jakub Jelinek <jakub@redhat.com>
9541
9542 * elf/dl-sym.c (do_sym): Use RTLD_SINGLE_THREAD_P.
9543 * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Likewise.
9544 * elf/dl-close.c (_dl_close_worker): Likewise.
9545 * elf/dl-open.c (_dl_open_worker): Likewise.
9546 * sysdeps/generic/sysdep-cancel.h (RTLD_SINGLE_THREAD_P): Define.
9547
b2369ca3
UD
95482006-10-27 Ulrich Drepper <drepper@redhat.com>
9549
11bf311e
UD
9550 * configure.in: Require assembler support for visibility, compiler
9551 support for visibility and aliases, linker support for various -z
9552 options.
9553 * Makeconfig: Remove conditional code which now is unnecessary.
9554 * config.h.in: Likewise.
9555 * config.make.in: Likewise.
9556 * dlfcn/Makefile: Likewise.
9557 * elf/Makefile: Likewise.
9558 * elf/dl-load.c: Likewise.
9559 * elf/rtld.c: Likewise.
9560 * include/libc-symbols.h: Likewise.
9561 * include/stdio.h: Likewise.
9562 * io/Makefile: Likewise.
9563 * io/fstat.c: Likewise.
9564 * io/fstat64.c: Likewise.
9565 * io/fstatat.c: Likewise.
9566 * io/fstatat64.c: Likewise.
9567 * io/lstat.c: Likewise.
9568 * io/lstat64.c: Likewise.
9569 * io/mknod.c: Likewise.
9570 * io/mknodat.c: Likewise.
9571 * io/stat.c: Likewise.
9572 * io/stat64.c: Likewise.
9573 * libio/stdio.c: Likewise.
9574 * nscd/Makefile: Likewise.
9575 * stdlib/Makefile: Likewise.
9576 * stdlib/atexit.c: Likewise.
9577 * sysdeps/generic/ldsodefs.h: Likewise.
9578 * sysdeps/i386/dl-machine.h: Likewise.
9579 * sysdeps/i386/sysdep.h: Likewise.
9580 * sysdeps/i386/i686/memcmp.S: Likewise.
9581 * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
9582 * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
9583 * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
9584
9585 * Makerules: USE_TLS support is now default.
9586 * tls.make.c: Likewise.
9587 * csu/Versions: Likewise.
9588 * csu/libc-start.c: Likewise.
9589 * csu/libc-tls.c: Likewise.
9590 * csu/version.c: Likewise.
9591 * dlfcn/dlinfo.c: Likewise.
9592 * elf/dl-addr.c: Likewise.
9593 * elf/dl-cache.c: Likewise.
9594 * elf/dl-close.c: Likewise.
9595 * elf/dl-iteratephdr.c: Likewise.
9596 * elf/dl-load.c: Likewise.
9597 * elf/dl-lookup.c: Likewise.
9598 * elf/dl-object.c: Likewise.
9599 * elf/dl-open.c: Likewise.
9600 * elf/dl-reloc.c: Likewise.
9601 * elf/dl-support.c: Likewise.
9602 * elf/dl-sym.c: Likewise.
9603 * elf/dl-sysdep.c: Likewise.
9604 * elf/dl-tls.c: Likewise.
9605 * elf/ldconfig.c: Likewise.
9606 * elf/rtld.c: Likewise.
9607 * elf/tst-tls-dlinfo.c: Likewise.
9608 * elf/tst-tls1.c: Likewise.
9609 * elf/tst-tls10.h: Likewise.
9610 * elf/tst-tls14.c: Likewise.
9611 * elf/tst-tls2.c: Likewise.
9612 * elf/tst-tls3.c: Likewise.
9613 * elf/tst-tls4.c: Likewise.
9614 * elf/tst-tls5.c: Likewise.
9615 * elf/tst-tls6.c: Likewise.
9616 * elf/tst-tls7.c: Likewise.
9617 * elf/tst-tls8.c: Likewise.
9618 * elf/tst-tls9.c: Likewise.
9619 * elf/tst-tlsmod1.c: Likewise.
9620 * elf/tst-tlsmod13.c: Likewise.
9621 * elf/tst-tlsmod13a.c: Likewise.
9622 * elf/tst-tlsmod14a.c: Likewise.
9623 * elf/tst-tlsmod2.c: Likewise.
9624 * elf/tst-tlsmod3.c: Likewise.
9625 * elf/tst-tlsmod4.c: Likewise.
9626 * elf/tst-tlsmod5.c: Likewise.
9627 * elf/tst-tlsmod6.c: Likewise.
9628 * include/errno.h: Likewise.
9629 * include/link.h: Likewise.
9630 * include/tls.h: Likewise.
9631 * locale/global-locale.c: Likewise.
9632 * locale/localeinfo.h: Likewise.
9633 * malloc/arena.c: Likewise.
9634 * malloc/hooks.c: Likewise.
9635 * malloc/malloc.c: Likewise.
9636 * resolv/Versions: Likewise.
9637 * sysdeps/alpha/dl-machine.h: Likewise.
9638 * sysdeps/alpha/libc-tls.c: Likewise.
9639 * sysdeps/generic/ldsodefs.h: Likewise.
9640 * sysdeps/generic/tls.h: Likewise.
9641 * sysdeps/i386/dl-machine.h: Likewise.
9642 * sysdeps/ia64/dl-machine.h: Likewise.
9643 * sysdeps/ia64/libc-tls.c: Likewise.
9644 * sysdeps/mach/hurd/fork.c: Likewise.
9645 * sysdeps/mach/hurd/i386/tls.h: Likewise.
9646 * sysdeps/powerpc/powerpc32/dl-machine.c: Likwise.
9647 * sysdeps/powerpc/powerpc32/dl-machine.h: Likewise.
9648 * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
9649 * sysdeps/s390/libc-tls.c: Likewise.
9650 * sysdeps/s390/s390-32/dl-machine.h: Likewise.
9651 * sysdeps/s390/s390-64/dl-machine.h: Likewise.
9652 * sysdeps/sh/dl-machine.h: Likewise.
9653 * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
9654 * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
9655 * sysdeps/x86_64/dl-machine.h: Likewise.
9656
131c4428
UD
9657 * elf/dl-close.c (_dl_close_worker): Renamed from _dl_close and
9658 split out locking and parameter checking.
9659 (_dl_close): Call _dl_close_worker after locking and checking.
9660 * elf/dl-open.c (_dl_open): Call _dl_close_worker instead of
9661 _dl_close.
ffd0e1b7
UD
9662 * elf/Makefile: Add rules to build and run tst-thrlock.
9663 * elf/tst-thrlock.c: New file.
131c4428 9664
11bf311e
UD
9665 [BZ #3426]
9666 * stdlib/stdlib.h: Adjust comment for canonicalize_file_name to
9667 reality.
9668
b2369ca3
UD
9669 [BZ #3429]
9670 * elf/dl-open.c (dl_open_worker): Keep holding dl_load_lock until
131c4428 9671 we are sure we do not need it anymore for _dl_close. Also move
b2369ca3
UD
9672 the asserts inside the lock region.
9673 Patch mostly by Suzuki <suzuki@in.ibm.com>.
9674
11bf311e
UD
96752006-10-27 Jakub Jelinek <jakub@redhat.com>
9676
9677 * elf/dl-lookup.c (_dl_debug_bindings): Remove unused symbol_scope
9678 argument.
9679 (_dl_lookup_symbol_x): Adjust caller.
9680
9681 * sysdeps/generic/ldsodefs.h (struct link_namespaces): Remove
9682 _ns_global_scope.
9683 * elf/rtld.c (dl_main): Don't initialize _ns_global_scope.
9684
9685 * elf/dl-libc.c: Revert l_scope name changes.
9686 * elf/dl-load.c: Likewise.
9687 * elf/dl-object.c: Likewise.
9688 * elf/rtld.c: Likewise.
9689 * elf/dl-close.c (_dl_close): Likewise.
9690 * elf/dl-open.c (dl_open_worker): Likewise. If not SINGLE_THREAD_P,
9691 always use __rtld_mrlock_{change,done}. Always free old scope list
9692 here if not l_scope_mem.
9693 * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Revert l_scope name
9694 change. Never free scope list here. Just __rtld_mrlock_lock before
9695 the lookup and __rtld_mrlock_unlock it after the lookup.
9696 * elf/dl-sym.c: Likewise.
9697 * include/link.h (struct r_scoperec): Remove.
9698 (struct link_map): Replace l_scoperec with l_scope, l_scoperec_mem
9699 with l_scope_mem and l_scoperec_lock with l_scope_lock.
9700
97012006-10-25 Ulrich Drepper <drepper@redhat.com>
9702
9703 * sysdeps/gnu/netinet/tcp.h: Define TCP_CONGESTION.
9704
97052006-10-18 Ulrich Drepper <drepper@redhat.com>
9706
9707 * configure.in: Disable building profile libraries by default.
9708
609cf614
UD
97092006-10-17 Jakub Jelinek <jakub@redhat.com>
9710
9711 * sunrpc/xdr_mem.c (xdrmem_setpos): Don't compare addresses
9712 as signed longs, check for x_base + pos overflow.
9713 * sunrpc/Makefile (tests): Add tst-xdrmem2.
9714 * sunrpc/tst-xdrmem2.c: New test.
9715
11bf311e
UD
97162006-10-18 Ulrich Drepper <drepper@redhat.com>
9717
9718 * elf/dl-lookup.c (_dl_lookup_symbol_x): Add warning to
9719 _dl_lookup_symbol_x code.
9720
97212006-10-17 Jakub Jelinek <jakub@redhat.com>
9722
9723 * elf/dl-runtime.c: Include sysdep-cancel.h.
9724 (_dl_fixup, _dl_profile_fixup): Use __rtld_mrlock_* and
9725 scoperec->nusers only if !SINGLE_THREAD_P. Use atomic_*
9726 instead of catomic_* macros.
9727 * elf/dl-sym.c: Include sysdep-cancel.h.
9728 (do_sym): Use __rtld_mrlock_* and scoperec->nusers only
9729 if !SINGLE_THREAD_P. Use atomic_* instead of catomic_* macros.
9730 * elf/dl-close.c: Include sysdep-cancel.h.
9731 (_dl_close): Use __rtld_mrlock_* and scoperec->nusers only
9732 if !SINGLE_THREAD_P. Use atomic_* instead of catomic_* macros.
9733 * elf/dl-open.c: Include sysdep-cancel.h.
9734 (dl_open_worker): Use __rtld_mrlock_* and scoperec->nusers only
9735 if !SINGLE_THREAD_P. Use atomic_* instead of catomic_* macros.
9736
97372006-10-17 Jakub Jelinek <jakub@redhat.com>
9738
9739 [BZ #3313]
9740 * malloc/malloc.c (malloc_consolidate): Set maxfb to address of last
9741 fastbin rather than end of fastbin array.
9742
97432006-10-18 Ulrich Drepper <drepper@redhat.com>
9744
9745 * sysdeps/i386/i486/bits/atomic.h (catomic_decrement): Use correct
9746 body macro.
9747 * sysdeps/x86_64/bits/atomic.h
9748 (__arch_c_compare_and_exchange_val_64_acq): Add missing casts.
9749 (catomic_decrement): Use correct body macro.
9750
97512006-10-17 Jakub Jelinek <jakub@redhat.com>
9752
9753 * include/atomic.h: Add a unique prefix to all local variables
9754 in macros.
9755 * csu/tst-atomic.c (do_test): Test also catomic_* macros.
9756
4a85a8ee
UD
97572006-10-16 Ulrich Drepper <drepper@redhat.com>
9758
9759 [BZ #3369]
9760 * sysdeps/posix/getaddrinfo.c (rfc3484_sort): Fix typos in rules 4
9761 and 7.
9762
11bf311e
UD
97632006-10-14 Ulrich Drepper <drepper@redhat.com>
9764
9765 * resolv/arpa/nameser.h: Document that ns_t_a6 is deprecated.
9766
ff8d96be
UD
97672006-10-13 Ulrich Drepper <drepper@redhat.com>
9768
11bf311e
UD
9769 [BZ #3313]
9770 * malloc/malloc.c (malloc_consolidate): Don't use get_fast_max to
9771 determine highest fast bin to consolidate, always look into all of
9772 them.
9773 (do_check_malloc_state): Only require for empty bins for large
9774 sizes in main arena.
9775
9776 * libio/stdio.h: Add more __wur attributes.
9777
ff8d96be
UD
9778 * elf/dl-minimal.c (realloc): Optimize last patch.
9779
90a0991a
UD
97802006-10-12 Richard Sandiford <richard@codesourcery.com>
9781
9782 [BZ #3352]
9783 * elf/dl-minimal.c (realloc): Let malloc() return a new pointer,
9784 and use memcpy() if it does.
ff8d96be 9785
11bf311e
UD
97862006-11-12 Andreas Jaeger <aj@suse.de>
9787
9788 [BZ #2510]
9789 * manual/search.texi (Hash Search Function): Clarify.
9790 (Array Search Function): Clarify.
9791
97922006-11-12 Joseph Myers <joseph@codesourcery.com>
9793
9794 [BZ #2830]
9795 * math/atest-exp.c (main): Cast hex value to mp_limb_t before
9796 shifting.
9797 * math/atest-exp2.c (read_mpn_hex): Likewise.
9798 * math/atest-sincos.c (main): Likewise.
9799
37fb7595
UD
98002006-10-11 Ulrich Drepper <drepper@redhat.com>
9801
11bf311e
UD
9802 * sysdeps/unix/sysv/linux/syscalls.list: Add epoll_pwait.
9803 * sysdeps/unix/sysv/linux/sys/epoll.h: Declare epoll_pwait.
9804 * sysdeps/unix/sysv/linux/Versions (libc): Add epoll_pwait for
9805 version GLIBC_2.6.
9806 * Versions.def: Add GLIBC_2.6 for libc.
9807
46c38bd7
UD
9808 * sysdeps/unix/sysv/linux/i386/sysdep.h (DOARGS_6): Fix offset.
9809
11bf311e
UD
9810 * sysdeps/i386/i486/bits/atomic.h: Add catomic_* support.
9811
98122006-10-11 Jakub Jelinek <jakub@redhat.com>
9813
9814 * malloc/malloc.c (_int_malloc): Remove unused any_larger variable.
9815
9816 * nis/nis_defaults.c (__nis_default_access): Don't call getenv twice.
9817
9818 * nis/nis_subr.c (nis_getnames): Use __secure_getenv instead of getenv.
9819 * sysdeps/generic/unsecvars.h: Add NIS_PATH.
9820
98212006-10-11 Ulrich Drepper <drepper@redhat.com>
9822
9823 * include/atomic.c: Define catomic_* operations.
9824 * sysdeps/x86_64/bits/atomic.h: Likewise. Fix a few minor problems.
9825 * stdlib/cxa_finalize.c: Use catomic_* operations instead of atomic_*.
9826 * malloc/memusage.c: Likewise.
9827 * gmon/mcount.c: Likewise.
9828 * elf/dl-close.c: Likewise.
9829 * elf/dl-open.c: Likewise.
9830 * elf/dl-profile.c: Likewise.
9831 * elf/dl-sym.c: Likewise.
9832 * elf/dl-runtime.c: Likewise.
9833 * elf/dl-fptr.c: Likewise.
9834 * resolv/res_libc.c: Likewise.
9835
2a6ee549
UD
98362006-10-10 Ulrich Drepper <drepper@redhat.com>
9837
9838 * nis/nis_subr.c (nis_getnames): Add trailing dot to NIS_PATH
9839 components which lack them.
9840
9841 * nis/nis_subr.c (nis_getnames): Make sure that we always return
9842 at least one entry consisting of the parameter concatenated with
9843 the domain.
9844
11bf311e 98452006-10-10 Roland McGrath <roland@frob.com>
c4f9fc3a 9846
11bf311e
UD
9847 * sysdeps/mach/hurd/utimes.c: Use a union to avoid an improper cast.
9848 * sysdeps/mach/hurd/futimes.c: Likewise.
9849 * sysdeps/mach/hurd/lutimes.c: Likewise.
9850
98512006-10-09 Ulrich Drepper <drepper@redhat.com>
9852 Jakub Jelinek <jakub@redhat.com>
9853
9854 Implement reference counting of scope records.
9855 * elf/dl-close.c (_dl_close): Remove all scopes from removed objects
9856 from the list in objects which remain. Always allocate new scope
9857 record.
9858 * elf/dl-open.c (dl_open_worker): When growing array for scopes,
9859 don't resize, allocate a new one.
9860 * elf/dl-runtime.c: Update reference counters before using a scope
9861 array.
9862 * elf/dl-sym.c: Likewise.
9863 * elf/dl-libc.c: Adjust for l_scope name change.
9864 * elf/dl-load.c: Likewise.
9865 * elf/dl-object.c: Likewise.
9866 * elf/rtld.c: Likewise.
9867 * include/link.h: Include <rtld-lowlevel.h>. Define struct
9868 r_scoperec. Replace r_scope with pointer to r_scoperec structure.
9869 Add l_scoperec_lock.
9870 * sysdeps/generic/ldsodefs.h: Include <rtld-lowlevel.h>.
9871 * sysdeps/generic/rtld-lowlevel.h: New file.
9872
9873 * include/atomic.h: Rename atomic_and to atomic_and_val and
9874 atomic_or to atomic_or_val. Define new macros atomic_and and
9875 atomic_or which do not return values.
9876 * sysdeps/x86_64/bits/atomic.h: Define atomic_and and atomic_or.
9877 Various cleanups.
9878 * sysdeps/i386/i486/bits/atomic.h: Likewise.
9879
9880 * po/sv.po: Update from translation team.
9881
98822006-10-07 Ulrich Drepper <drepper@redhat.com>
9883
9884 * Versions.def: Add GLIBC_2.6 to libpthread.
9885
9886 * include/shlib-compat.h (SHLIB_COMPAT): Expand parameters before use.
9887 (versioned_symbol): Likewise.
9888 (compat_symbol): Likewise.
9889
9890 * po/tr.po: Update from translation team.
feb87ad1 9891
4df92d57
UD
98922006-10-06 Ulrich Drepper <drepper@redhat.com>
9893
11bf311e
UD
9894 * nis/Banner: Removed. It's been integral part forever and the
9895 author info is incomplete anyway.
9896 * libio/Banner: Likewise.
9897
4df92d57
UD
9898 * nis/nis_table.c (nis_list): If __follow_path fails in the new
9899 code, make sure the nis_freeresult call doesn't crash and that the
9900 result is reported correctly.
9901
68361572
UD
99022006-09-27 Jakub Jelinek <jakub@redhat.com>
9903
9904 * nis/nis_table.c (nis_list): Handle FOLLOW_PATH | ALL_RESULTS
9905 when callback is NULL.
9906
9907 * nis/Versions (libnss_nisplus): Add
9908 _nss_nisplus_initgroups_dyn@@GLIBC_PRIVATE.
9909 * nis/Makefile (libnss_nisplus-routines): Add nisplus-initgroups.
9910 * nis/nss_nisplus/nisplus-grp.c (tablename_val, tablename_len,
9911 _nss_create_tablename): Rename to...
9912 (grp_tablename_val, grp_tablename_len, _nss_grp_create_tablename):
9913 ... these. No longer static.
9914 (internal_setgrent): Adjust users.
9915 (_nss_nisplus_getgrnam_r, _nss_nisplus_getgrgid_r): Likewise.
9916 Don't use locking around _nss_grp_create_tablename call.
9917 * nis/nss_nisplus/nisplus-initgroups.c: New file.
9918
11bf311e
UD
99192006-10-06 Ulrich Drepper <drepper@redhat.com>
9920
9921 * version.h (VERSION): Bump to 2.5.90 for new development tree.
9922
3a4e0609
UD
99232006-10-06 Andreas Jaeger <aj@suse.de>
9924
9925 * include/features.h (__GLIBC_MINOR__): It's glibc 2.5 now.
9926
99272006-10-06 Ulrich Drepper <drepper@redhat.com>
9928
9929 * po/pl.po: Update from translation team.
9930
9931 * nscd/nscd.c (main): Fix typo in message.
9932 Patch by Jakub Bogsz <qboosh@pld-linux.org>.
9933
97e57dee
UD
99342006-10-02 Jakub Jelinek <jakub@redhat.com>
9935
9936 [BZ #3291]
9937 * sysdeps/unix/sysv/linux/sparc/sparc64/pause.c: Include
9938 errno.h, signal.h, unistd.h and sysdep-cancel.h.
9939 (__sigprocmask): Define.
9940
768027a4
UD
99412006-10-02 Ulrich Drepper <drepper@redhat.com>
9942
9943 * elf/rtld.c (dl_main): Don't use prelinking if LD_DYNAMIC_WEAK is
9944 used.
9945
0b25a49a
UD
99462006-10-02 Jakub Jelinek <jakub@redhat.com>
9947
9948 * nscd/mem.c (mempool_alloc): Round array size to 16 bytes
9949 in oldtotal and newtotal calculation.
9950 * nscd/nscd-client.h (struct mapped_database): Add datasize
9951 field.
9952 * nscd/nscd_helper.c (get_mapping): Initialize datasize field.
9953 (__nscd_get_map_ref): Get a new mapping even if mapping's data_size
9954 increased.
9955 (__nscd_cache_search): Add checks to make sure we never reference
9956 data beyond the current mapping.
9957
a1286745
UD
99582006-10-02 Dmitry V. Levin <ldv@altlinux.org>
9959
d4ed7561
UD
9960 * sysdeps/posix/getaddrinfo.c (match_prefix): Make mask and val
9961 variables const to avoid compiler warnings.
9962
a1286745
UD
9963 * io/fts.c (fts_close): Remove redundant checks.
9964 (fts_build): Likewise.
9965 (fts_palloc): Likewise.
9966
9967 * manual/message.texi (Advanced gettext functions,
9968 Using gettextized software): Fix typos.
9969
f01e4069
UD
99702006-09-30 Ulrich Drepper <drepper@redhat.com>
9971
9972 * posix/glob.c (glob_in_dir): Add some comments and asserts to
9973 explain why there are no leaks.
9974
154619b5
UD
99752006-09-29 Ulrich Drepper <drepper@redhat.com>
9976
690c3947
UD
9977 * libio/wmemstream.c: Include <wchar.h>.
9978 * libio/bug-wmemstream1.c: Likewise.
9979 * libio/tst-wmemstream1.c: Likewise.
9980 * libio/tst-wmemstream2.c: Likewise.
9981
88cc61e8
UD
9982 * version.h (RELEASE): Bump to 2.5.
9983 * README: Regenerated.
9984
a70c18b0
UD
9985 * locale/iso-3166.def: Add Aaland Islands and Montenegro.
9986
154619b5
UD
9987 [BZ #3273]
9988 * nscd/nscd_initgroups.c (__nscd_getgrouplist): It is OK to have
9989 found no group members.
9990 Patch by Petr Baudis.
9991
99922006-09-29 Jakub Jelinek <jakub@redhat.com>
9993
9994 * elf/rtld.c (_dl_start_final): If not USE___THREAD, don't
9995 assert bootstrap_map.l_tls_modid is zero.
9996 (_dl_start): Initialize bootstrap_map.l_tls_modid to 0
9997 if USE___THREAD.
9998
1c31aa79
UD
99992006-09-27 Ulrich Drepper <drepper@redhat.com>
10000
10001 * libio/stdio.h: Move open_wmemstream prototype to ...
10002 * wcsmbs/wchar.h: ... here.
10003
f1122ec3
UD
100042006-09-25 Jakub Jelinek <jakub@redhat.com>
10005
10006 [BZ #3252]
10007 * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat): Handle only
10008 fchownat syscall and __ASSUME_LCHOWN_SYSCALL case inline, call
10009 __{,l}chown to handle the rest.
10010 * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Handle only
10011 fchownat syscall and __ASSUME_32BITUIDS case inline, call
10012 __{,l}chown to handle the rest.
10013 * sysdeps/unix/sysv/linux/sparc/sparc32/fchownat.c: Include
10014 i386/fchownat.c.
10015 * sysdeps/unix/sysv/linux/s390/s390-32/fchownat.c: Likewise.
10016 * sysdeps/unix/sysv/linux/sh/fchownat.c: Likewise.
10017
10018 [BZ #3253]
10019 * posix/glob.c (glob_in_dir): Don't alloca one struct globlink at a
10020 time, rather allocate increasingly bigger arrays of pointers, if
10021 possible with alloca, if too large with malloc.
10022
100232006-09-24 Jakub Jelinek <jakub@redhat.com>
10024
10025 * sysdeps/powerpc/fpu/libm-test-ulps: Updated.
10026
10027 * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Fix 2 typos.
10028
457b559e
UD
100292006-09-24 Ulrich Drepper <drepper@redhat.com>
10030
10031 * sysdeps/posix/getaddrinfo.c (rfc3484_sort): Implement rule 4,
10032 home addresses.
10033 * sysdeps/unix/sysv/linux/check_pf.c (make_request): Recognize
10034 IFA_F_HOMEADDRESS flag for interfaces.
10035 * include/ifaddrs.h (struct in6addrinfo): Define
10036 in6ai_homeaddress.
10037
4a132246
UD
100382006-09-21 Jakub Jelinek <jakub@redhat.com>
10039
10040 [BZ #3225]
10041 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h (PTR_MANGLE3,
10042 PTR_DEMANGLE3): Define.
10043 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h (PTR_MANGLE3,
10044 PTR_DEMANGLE3): Likewise.
10045 * sysdeps/powerpc/powerpc32/__longjmp-common.S (__longjmp): Use them.
10046 * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S (__longjmp):
10047 Likewise.
10048 * sysdeps/powerpc/powerpc64/__longjmp-common.S (__longjmp): Likewise.
10049
c69136ae
UD
100502006-09-20 Jakub Jelinek <jakub@redhat.com>
10051
10052 * po/libc.pot: Regenerated.
10053 * po/be.po: Updated.
10054 * po/ca.po: Likewise.
10055 * po/cs.po: Likewise.
10056 * po/da.po: Likewise.
10057 * po/de.po: Likewise.
10058 * po/el.po: Likewise.
10059 * po/en_GB.po: Likewise.
10060 * po/es.po: Likewise.
10061 * po/fi.po: Likewise.
10062 * po/fr.po: Likewise.
10063 * po/gl.po: Likewise.
10064 * po/hr.po: Likewise.
10065 * po/hu.po: Likewise.
10066 * po/ja.po: Likewise.
10067 * po/ko.po: Likewise.
10068 * po/nb.po: Likewise.
10069 * po/nl.po: Likewise.
10070 * po/pl.po: Likewise.
10071 * po/pt_BR.po: Likewise.
10072 * po/ru.po: Likewise.
10073 * po/rw.po: Likewise.
10074 * po/sk.po: Likewise.
10075 * po/sv.po: Likewise.
10076 * po/tr.po: Likewise.
10077 * po/zh_CN.po: Likewise.
10078 * po/zh_TW.po: Likewise.
10079
10080 [BZ #3137]
10081 * iconv/iconv_prog.c (main): Fix spelling in error message.
10082 * iconv/iconvconfig.c (main): Likewise.
10083 * locale/programs/ld-collate.c (handle_ellipsis): Likewise.
10084 * locale/programs/ld-ctype.c (charclass_symbolic_ellipsis): Likewise.
10085 * locale/programs/localedef.c (main): Likewise.
10086 * locale/programs/repertoire.c (repertoire_read): Likewise.
10087 * timezone/zdump.c (main): Likewise.
10088 * nscd/connections.c (handle_request): Fix spelling in log message.
10089 Patch by Malcolm Parsons <malcolm.parsons@gmail.com>.
10090
83b3108c
UD
100912006-09-20 Ulrich Drepper <drepper@redhat.com>
10092
10093 * inet/inet6_option.c: Also emit linker warnings for the RFC 2292
10094 interfaces.
10095
89210b4c
AJ
100962006-09-20 Andreas Jaeger <aj@suse.de>
10097
10098 * math/libm-test.inc (lrint_test_upward): Fix typo.
10099
6624dbc0
UD
101002006-06-17 Joseph S. Myers <joseph@codesourcery.com>
10101
10102 [BZ #2592]
10103 * math/libm-test.inc (lrint_test_tonearest): New function.
10104 (lrint_test_towardzero): New function.
10105 (lrint_test_downward): New function.
10106 (lrint_test_upward): New function.
10107 (main): Run these new tests.
10108 * sysdeps/ieee754/dbl-64/s_llrint.c (__llrint): Correct rounding
10109 of values near to 0.
10110 (two52): Use double not long double.
10111 * sysdeps/ieee754/dbl-64/s_lrint.c (__lrint): Likewise.
10112 * sysdeps/ieee754/flt-32/s_llrintf.c (__llrintf): Likewise.
10113 (two23): Use float not double.
10114 * sysdeps/ieee754/flt-32/s_lrintf.c (__lrintf): Likewise.
10115 (two23): Use float not double.
10116 * sysdeps/ieee754/ldbl-128/s_llrintl.c (__llrintl): Likewise.
10117 * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Likewise.
10118 * sysdeps/ieee754/ldbl-96/s_llrintl.c (__llrintl): Likewise.
10119 * sysdeps/ieee754/ldbl-96/s_lrintl.c (__lrintl): Likewise.
10120
60cb50c7
UD
101212006-09-20 Martin Schwidefsky <schwidefsky@de.ibm.com>
10122
10123 * sysdeps/unix/sysv/linux/s390/s390-32/makecontext.c (__makecontext):
10124 Cast sp to unsigned long to avoid compiler warning.
10125 Use __makecontext_ret function instead of a trampoline on the stack.
10126 (__makecontext_ret): New function.
10127 * sysdeps/unix/sysv/linux/s390/s390-64/makecontext.c: Likewise.
10128
33315ced
UD
101292006-09-19 Jakub Jelinek <jakub@redhat.com>
10130
10131 * elf/dl-cache.c (HWCAP_CHECK): If _DL_PLATFORMS_COUNT, but
10132 platform == -1, reject any libs with non-zero _DL_HWCAP_PLATFORM
10133 bits.
10134
1ee2ff20
UD
101352006-09-19 Ulrich Drepper <drepper@redhat.com>
10136
10137 * elf/dl-close.c (_dl_close): If dependency is not unloaded make
10138 sure no reference to the unloaded map's search list remains in the
10139 dependency's scope.
10140
101412006-09-16 Jakub Jelinek <jakub@redhat.com>
10142
10143 * elf/Makefile: Add rules to build and run unload7 test.
10144 * elf/unload7.c: New test.
10145 * elf/unload7mod1.c: New file.
10146 * elf/unload7mod2.c: New file.
10147
0466106e
UD
101482006-09-18 Jakub Jelinek <jakub@redhat.com>
10149
10150 * sysdeps/unix/sysv/linux/sys/ptrace.h (PT_GETEVENTMSG): Fix pasto.
10151 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h (PTRACE_SETOPTIONS,
10152 PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
10153 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h (PTRACE_SETOPTIONS,
10154 PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Likewise.
10155 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h (PTRACE_SETOPTIONS,
10156 PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Likewise.
10157 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h (PTRACE_SETOPTIONS,
10158 PTRACE_GETEVENTMSG): Likewise.
10159 (PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Change to the arch independent
10160 values.
10161
9c316a45
UD
101622006-09-17 Mike Frysinger <vapier@gentoo.org>
10163
0466106e
UD
10164 * sysdeps/unix/sysv/linux/sys/ptrace.h (PTRACE_SETOPTIONS,
10165 PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
10166 * sysdeps/unix/sysv/linux/ptrace.c (ptrace): Check PTRACE_SETOPTIONS,
10167 PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO and PTRACE_SETSIGINFO.
9c316a45
UD
10168
101692006-09-16 Jakub Jelinek <jakub@redhat.com>
10170
10171 * sysdeps/powerpc/powerpc32/register-dump.h (register_dump): Don't
10172 write '\0' to the fd.
10173 * sysdeps/mach/hurd/powerpc/register-dump.h (register_dump): Likewise.
10174 * sysdeps/powerpc/powerpc64/register-dump.h (register_dump): Likewise.
10175 Change regs to unsigned long pointer from unsigned int, fix fscr
10176 offset.
10177
fb146a76
UD
101782006-09-14 Jakub Jelinek <jakub@redhat.com>
10179
10180 * io/Makefile (CFLAGS-fstatat.c): Set.
10181 (CFLAGS-fstatat64.c): Likewise.
10182 (CFLAGS-mknodat.c): Likewise.
10183
10184 * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Comment fixes.
10185 * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
10186 * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Rewritten.
10187 * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Rewritten.
10188
4cd3633d
UD
101892006-09-14 Jakub Jelinek <jakub@redhat.com>
10190 Steven Munroe <sjmunroe@us.ibm.com>
fb146a76 10191
4cd3633d
UD
10192 * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Add 4 new cap
10193 names to the beginning. Rename "cell" to "cellbe".
10194 (_dl_powerpc_platforms): New.
10195 * sysdeps/powerpc/dl-procinfo.h (_DL_HWCAP_FIRST): Decrease.
10196 (HWCAP_IMPORTANT): Remove power{4,5,5+} and cell.
10197 (_DL_PLATFORMS_COUNT, _DL_FIRST_PLATFORM): Define.
10198 (_DL_HWCAP_PLATFORM): Define to new mask.
10199 (_dl_platform_string, _dl_string_platform): New functions.
10200 * sysdeps/powerpc/sysdep.h (PPC_FEATURE_BOOKE, PPC_FEATURE_SMT,
10201 PPC_FEATURE_ICACHE_SNOOP, PPC_FEATURE_ARCH_2_05): Define.
10202
30aa5785
UD
102032006-09-12 Jakub Jelinek <jakub@redhat.com>
10204
10205 [BZ #2526]
10206 * README.libm: Fix a thinko in sqrt algorithm description.
10207
10208 [BZ #3143]
10209 * manual/string.texi (argz_delete): Fix prototype.
10210 Patch by <alpt@freaknet.org>.
10211
102122006-08-26 Joseph Myers <joseph@codesourcery.com>
10213
10214 [BZ #3138]
10215 * io/test-lfs.c (do_prepare): Give name_len type size_t.
10216 * io/tst-fcntl.c (do_prepare): Likewise.
10217 * posix/tst-exec.c (do_prepare): Likewise.
10218 * posix/tst-preadwrite.c (do_prepare): Likewise.
10219 * posix/tst-spawn.c (do_prepare): Likewise.
10220 * posix/tst-truncate.c (do_prepare): Likewise.
10221 * rt/tst-aio.c (do_prepare): Likewise.
10222 * rt/tst-aio64.c (do_prepare): Likewise.
10223 * stdlib/test-canon2.c (do_prepare): Give test_dir_len type
10224 size_t.
10225
d26d01d1
UD
102262006-09-09 Ulrich Drepper <drepper@redhat.com>
10227
41aba3d7
UD
10228 [BZ #2821]
10229 * time/mktime.c (guess_time_tm): Fix overflow detection.
10230 * time/Makefile (tests): Add bug-mktime1.
10231 * time/bug-mktime1.c: New file.
10232
eaa51b47 10233 [BZ #3189, #3188]
d26d01d1 10234 * misc/sys/mman.h (remap_file_pages): Make available for _GNU_SOURCE.
eaa51b47 10235 (mremap): Likewise.
d26d01d1 10236
ba40cc15
UD
102372006-09-07 Jakub Jelinek <jakub@redhat.com>
10238
2b6a801e
UD
10239 [BZ #1006]
10240 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela):
10241 Ensure relocation doesn't clobber any bits outside of the
10242 immediate field for R_SPARC_TLS_LE_HIX22, R_SPARC_WDISP30,
10243 R_SPARC_HI22 and R_SPARC_H44.
10244
469615bd
UD
10245 [BZ #2775]
10246 * malloc/malloc.c (sYSMALLOc): Only call grow_heap if
10247 (long) (MINSIZE + nb - old_size) is positive.
10248
10249 * malloc/arena.c (grow_heap): When growing bail even if new_size
10250 is negative.
10251
ba40cc15
UD
10252 [BZ #3155]
10253 * sysdeps/powerpc/powerpc32/fpu/s_lrint.S (__lrint): Don't access
10254 stack below r1.
10255
243b9ac1
UD
102562006-09-06 Jakub Jelinek <jakub@redhat.com>
10257
ba40cc15
UD
10258 * posix/regex_internal.c (re_string_reconstruct): Handle
10259 offset < pstr->valid_raw_len && pstr->offsets_needed case.
10260 Ensure no bytes read before raw_mbs array. Pass a saved copy of
10261 pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
10262 re_string_context_at.
10263 * posix/Makefile: Add rules to build and run bug-regex26 test.
10264 * posix/bug-regex26.c: New test.
10265
243b9ac1
UD
10266 * locale/programs/ld-collate.c (collate_read): Goto sym_equiv_free
10267 rather than col_sym_free. Move seqp declaration earlier.
10268
10269 * resolv/gai_suspend.c (gai_suspend): Make sure result is initialized.
10270
d052233c
UD
102712006-09-05 Jakub Jelinek <jakub@redhat.com>
10272
10273 * nscd/initgrcache.c (addinitgroupsX): Move any_success
10274 decl before first goto out.
10275
71213dc2
UD
102762006-09-04 Jakub Jelinek <jakub@redhat.com>
10277
10278 * Makerules (shlib.lds): If have-hash-style, put .hash section
10279 at the end of the RO segment.
10280
102812006-09-04 Ulrich Drepper <drepper@redhat.com>
10282
10283 * elf/do-lookup.h (do_lookup_x): Initialize symidx in case the new
10284 style hash table format is used.
10285
03eeff83
UD
102862006-09-04 Jakub Jelinek <jakub@redhat.com>
10287
10288 * resolv/res_mkquery.c (res_nmkquery): Set hp->id to statp->id after
10289 randomization rather than before.
10290 * resolv/res_init.c (res_randomid): Don't call gettimeofday here.
10291
b80770b2
UD
102922006-08-31 Jakub Jelinek <jakub@redhat.com>
10293
ba40cc15 10294 * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Add ld.so.
b80770b2
UD
10295
10296 * malloc/malloc.c (_int_malloc): Use full list insert and not
10297 shortcut which assumes the list is empty for large requests
10298 too.
10299
10300 * elf/tst-addr1.c (do_test): Allow i.dli_sname "_IO_printf".
10301
99ea5991
UD
103022006-08-30 Jakub Jelinek <jakub@redhat.com>
10303
10304 * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h (splice): Add offin
10305 and offout arguments to the prototype.
10306 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (splice): Likewise.
10307 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h (splice): Likewise.
10308 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (splice): Likewise.
10309 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h (splice): Likewise.
10310 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h (splice): Likewise.
10311 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h (splice): Likewise.
10312 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h (splice): Likewise.
10313 * sysdeps/unix/sysv/linux/syscalls.list (splice): Adjust args string.
10314
4004a0a5
UD
103152006-08-28 Ulrich Drepper <drepper@redhat.com>
10316
950398e1
UD
10317 * elf/dl-load.c (_dl_init_paths): Expand DSTs.
10318
4004a0a5
UD
10319 * elf/dl-open.c (dl_open_worker): Allow $LIB and $PLATFORM in
10320 dlopen parameters.
10321
6e310111
UD
103222006-08-28 Jakub Jelinek <jakub@redhat.com>
10323
10324 * inet/getnameinfo.c (getnameinfo): For AF_INET, check errno
10325 only if herrno is NETDB_INTERNAL. Handle errors other than
10326 ERANGE outside of the loops, handle TRY_AGAIN.
10327
10328 * locale/programs/ld-ctype.c (translit_flatten): Issue error
10329 if other's ctype category was missing.
10330 * locale/programs/ld-collate.c (collate_read): Return if
10331 copy_locale's collate category is missing.
10332
07014fca
UD
103332006-08-27 Ulrich Drepper <drepper@redhat.com>
10334
10335 [BZ #2684]
10336 * malloc/malloc.c (public_rEALLOc): Try harder by using other
10337 arenas if allocation failed.
10338 Patch mostly by Jan Edler <jan.edler@indexengines.com>.
10339
71663747
UD
103402006-08-26 Ulrich Drepper <drepper@redhat.com>
10341
41999a1a
UD
10342 * malloc/malloc.c (bin_at): Rewrite to be more clear and to not
10343 waste bins[0..1].
10344 (malloc_state): Reduce bins size by 2.
10345 (_int_malloc): Fix test for large enough buffer for early termination.
10346 When no unsorted block matches perfectly and an exiting block has
10347 to be split, use full list insert and not shortcut which assumes
10348 the list is empty.
10349
71663747
UD
10350 * locale/programs/ld-ctype.c (ctype_read): Better patch for read
10351 failure.
10352
93b53ca2
UD
103532006-08-24 Ulrich Drepper <drepper@redhat.com>
10354
f5a82772
UD
10355 * locale/programs/ld-ctype.c (ctype_read): If CTYPE is NULL, don't
10356 do anything.
10357
2ac9ca73
UD
10358 * sysdeps/generic/ldsodefs.h (DL_ADDR_SYM_MATCH): For undefined
10359 symbol require exact match (these are PLTs).
10360 * sysdeps/unix/sysv/linux/powerpc/powerpc64/ldsodefs.h
10361 (_dl_ppc64_addr_sym_match): Likewise.
10362
93b53ca2
UD
10363 [BZ #2683]
10364 * elf/dl-addr.c (_dl_addr): Don't ignore all undefined symbols.
10365 If symbol has a value use it.
10366 * elf/tst-dladdr1.c: New file.
10367 * elf/Makefile: Add rules to build and run tst-addr1.
10368
7463d5cb
UD
103692006-08-24 Jakub Jelinek <jakub@redhat.com>
10370
10371 * malloc/malloc.c (sYSMALLOc): Avoid infinite loop if MMAP
10372 keeps failing and heap growth or new heap creation isn't
10373 successful either.
10374 * malloc/tst-malloc.c (main): Add new tests.
10375
542a6f62
UD
103762006-08-24 Ulrich Drepper <drepper@redhat.com>
10377
10378 [BZ #2734]
10379 * sysdeps/i386/bits/byteswap.h (__bswap_32): Use same conditions
10380 as in the x86-64 code to use bswap.
10381
aa2c6b6d
UD
103822006-05-21 Joseph S. Myers <joseph@codesourcery.com>
10383
24982798 10384 [BZ #2680]
aa2c6b6d
UD
10385 * posix/unistd.h (getlogin_r): Condition on __USE_POSIX199506, not
10386 __USE_UNIX98.
10387 * posix/bits/unistd.h: Likewise.
10388
59776aef
UD
103892006-05-15 Mike Frysinger <vapier@gentoo.org>
10390
10391 [BZ #2751]
10392 * string/strchr.c: Add cast to avoid warning.
10393
e404fb16
UD
103942006-08-21 Ulrich Drepper <drepper@redhat.com>
10395
10396 * malloc/malloc.c (DEFAULT_MMAP_THRESHOLD_MAX): For 32-bit
bd2c2341 10397 platforms define as 512K. For 64-bit platforms as 32MB. The lower
e404fb16
UD
10398 limit is needed to avoid the exploding of the address space
10399 requirement for secondary heaps.
10400 * malloc/arena.c (HEAP_MAX_SIZE): Define using
10401 DEFAULT_MMAP_THRESHOLD_MAX if it is defined.
10402
376e973a
UD
104032006-07-30 Joseph S. Myers <joseph@codesourcery.com>
10404
10405 [BZ #3018]
10406 * Makerules (depfiles): Handle extra-test-objs the same as
10407 extra-objs.
10408 (common-mostlyclean): Likewise.
10409 * dlfcn/Makefile (extra-objs): Add modules to extra-test-objs
10410 instead.
10411 * elf/Makefile (extra-objs): Likewise.
10412 * stdlib/Makefile (extra-objs): Likewise.
10413
240c62a7
UD
104142006-08-14 Eric Blake <ebb9@byu.net>
10415
10416 [BZ #3044]
10417 * misc/error.h: Assume C89 or better.
10418 * misc/error.c: Likewise.
10419
3997b7c4
UD
104202006-08-21 Ulrich Drepper <drepper@redhat.com>
10421
10422 [BZ #3040]
10423 * sysdeps/unix/sysv/linux/openat.c: Fix compilation if
10424 __ASSUME_ATFCTS is defined.
10425
8a6537b0
UD
104262006-08-19 Ulrich Drepper <drepper@redhat.com>
10427
72320021
UD
10428 * malloc/malloc.c (_int_malloc): Limit number of unsorted blocks
10429 to sort in each call.
10430
ed3691ba
UD
10431 * nis/nss_nis/nis-service.c (internal_nis_getservent_r): . If map
10432 is empty simply return and use next service.
10433 * nis/nss_nis/nis-rpc.c (internal_nis_getrpcent_r): Likewise.
10434
8a6537b0
UD
10435 * locale/programs/charmap.c (charmap_read): Add new parameter. It
10436 tells us when not finding a charmap file is an error.
10437 * locale/programs/charmap.h: Adjust charmap_read prototype.
10438 * iconv/iconv_prog.c (main): Tell charmap_read it's no error if we
10439 cannot find a charmap.
10440 * locale/programs/localedef.c (main): Adjust charmap_read call.
10441
ad2a3c07
UD
104422006-08-15 Jakub Jelinek <jakub@redhat.com>
10443
10444 * sysdeps/unix/sysv/linux/sparc/sparc64/pause.c: Use
10445 sysdeps/posix/pause.c implementation instead.
10446
104472006-08-09 Jakub Jelinek <jakub@redhat.com>
10448
10449 * sysdeps/unix/nice.c (nice): Transform EACCES errno from setpriority
10450 to EPERM.
10451
f17efcb4
UD
104522006-08-13 Andreas Schwab <schwab@suse.de>
10453
10454 * sysdeps/powerpc/powerpc32/dl-trampoline.S (_dl_runtime_resolve):
10455 Don't clobber caller's LRSAVE.
10456 (_dl_prof_resolve): Likewise.
10457
107b8a92
UD
104582006-08-14 Ulrich Drepper <drepper@redhat.com>
10459
10460 [BZ #1996]
10461 * libio/memstream.c (open_memstream): Allocate initial buffer with
10462 calloc.
10463 * libio/wmemstream.c (open_wmemstream): Likewise.
10464 * libio/strops.c: Pretty printing.
10465 (_IO_str_overflow): Clear uninitialized part of the new buffer.
10466 (enlarge_userbuf): New function.
10467 (_IO_str_seekoff): Call it if seek position is larger than current
10468 buffer.
10469 * libio/wstrops.c: Likewise.
10470 * libio/vasprintf.c: Add comment as to why we do not have to use
10471 calloc instead of malloc to allocate initial buffer.
10472 * libio/Makefile (tests): Add bug-memstream1 and bug-wmemstream1.
10473 * libio/bug-memstream1.c: New file.
10474 * libio/bug-wmemstream1.c: New file.
10475
fa3ac53f
UD
104762006-08-13 Ulrich Drepper <drepper@redhat.com>
10477
89993734
UD
10478 * libio/wstrops.c: Remove dead macro definitions and comments.
10479 * libio/strops.c: Likewise.
10480
fa3ac53f
UD
10481 [BZ #2764]
10482 * login/utmpname.c (__utmpname): Remove unnecessary test.
10483
f99ed760
UD
104842006-06-08 Joseph Myers <jsm28@gcc.gnu.org>
10485
10486 [BZ #2832]
10487 * math/gen-libm-test.pl (clean_up_number): Do not remove trailing
10488 0s from integers.
10489
104902006-08-13 Ulrich Drepper <drepper@redhat.com>
10491
10492 [BZ #2987]
10493 * sysdeps/unix/sysv/linux/clock_settime.c: Add code to use syscall
10494 for CPU clocks.
10495 * sysdeps/unix/clock_settime.c: Add support for platform-specific
10496 setting of CPU clocks.
10497
4c3f81d0
UD
104982006-06-23 Paul Eggert <eggert@cs.ucla.edu>
10499
10500 [BZ #2841]
10501 * sysdeps/generic/stdint.h (UINT8_C, UINT16_C): Don't append 'U',
10502 since C99 requires the result to promote to 'int' when uint_least8_t
10503 and uint_least16_t promote to 'int'.
10504
cd8e60ce
UD
105052006-08-12 Ulrich Drepper <drepper@redhat.com>
10506
9a5c46e8
UD
10507 [BZ #3013]
10508 * locale/programs/ld-ctype.c (ctype_output): Adjust alignments, fix
10509 lenght of one output field, correct bitmask creation.
10510 * locale/programs/ld-time.c: Add alignment.
10511
cd8e60ce
UD
10512 [BZ #2997]
10513 * misc/error.c: Add space between program name and message if file
10514 name is missing.
10515
9a528884
UD
105162006-08-03 Eric Blake <ebb9@byu.net>
10517
10518 [BZ #2998]
10519 * misc/error.c (error_tail) [_LIBC]: Avoid invalid free.
10520
1d05c2fb
UD
105212006-08-09 Ulrich Drepper <drepper@redhat.com>
10522
0c1c6c6c
UD
10523 * malloc/memusagestat.c: Silence warnings.
10524
1d05c2fb
UD
10525 * malloc/malloc.c: Dynamically size mmap treshold if the program
10526 frees mmaped blocks.
10527 Patch by Valerie Henson and Arjan van de Ven.
10528
2d1e6277
UD
105292006-08-08 Jakub Jelinek <jakub@redhat.com>
10530
be7ffd91
UD
10531 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h (O_DIRECT): Protect with
10532 __USE_GNU.
10533
2d1e6277
UD
10534 * stdlib/strtol_l.c (__strtol_ul_max_tab, __strtol_ul_rem_tab,
10535 __strtol_ull_max_tab, __strtol_ull_rem_tab): Declare.
10536 (DEF): Don't put the var into .gnu.linkonce.r.* section.
10537 Only provide var definitions in strtol_l (or for *ull*
10538 in strtoll_l).
10539
10540 * stdio-common/bug16.c (tests): New array.
10541 (do_tests): Allow the first hexadecimal digit
10542 to be 1, 2, 4 or 8. Do 3 additional tests.
10543
10544 * sysdeps/s390/fpu/libm-test-ulps: Update.
10545
10546 * sysdeps/unix/sysv/linux/s390/s390-32/fchownat.c (fchownat): Use
10547 fchownat syscall if available.
10548 * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat): Likewise.
10549 * sysdeps/unix/sysv/linux/sh/fchownat.c (fchownat): Likewise.
10550 * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Likewise.
10551
d0ccde25
UD
105522006-08-07 Ulrich Drepper <drepper@redhat.com>
10553
10554 * nis/nis_xdr.c: Avoid some function calls.
10555
13a0293d 105562006-08-07 Jakub Jelinek <jakub@redhat.com>
3f7a21a9 10557 Ulrich Drepper <drepper@redhat.com>
13a0293d
UD
10558
10559 * nis/nis_call.c (rec_dirsearch) [case LOWER_NAME]: Don't take
10560 short cut if only one name component is stripped away.
10561
bd1ebae0
UD
105622006-08-07 Ulrich Drepper <drepper@redhat.com>
10563
10564 * nis/nis_call.c: Minor cleanups throughout.
2d1e6277 10565 (rec_dirsearch) [case HIGHER_NAME]: Correctly size ndomain array.
bd1ebae0
UD
10566 (first_shoot): Add search_parent_first parameter. Only if it is set
10567 search parent server first.
10568 If directory for table found through cold start cache is not the same
10569 as referenced in the cache, don't use it.
10570 (__nisfind_server): Take additional parameter. Pass it on to
10571 first_shoot.
10572 (__prepare_niscall): Adjust __nisfind_server call.
10573 * nis/rpcsvc/nislib.h: Adjust __nisfind_server prototype.
10574 * nis/nis_table.c: Adjust __nisfind_server call.
10575 * nis/nis_lookup.c: Likewise.
10576 (nis_lookup): Don't loop endlessly if name is reduced to ".".
10577
f1762c0c
UD
105782006-08-03 Ulrich Drepper <drepper@redhat.com>
10579
fe710250
UD
10580 [BZ #2182]
10581 * math/s_cacosh.c: Return values from positive branch.
10582 * math/s_cacoshf.c: Likewise.
10583 * math/s_cacoshl.c: Likewise.
10584
a5852807
UD
10585 [BZ #2883]
10586 * sysvipc/sys/msg.h: Change return value to ssize_t.
10587 * sysdeps/unix/sysv/linux/msgrcv.c: Likewise.
fe710250
UD
10588 * sysvipc/msgrcv.c: Likewise.
10589 * include/sys/msg.h: Likewise.
39571a13 10590
6c215a8d
UD
10591 * grp/initgroups.c (internal_getgrouplist): Remove unnecessary
10592 test introduced in patch for bz #661.
39571a13 10593 (getgrouplist): Simplify code a bit. Don't allocate one additional
f13bfdd0 10594 element for NEWGROUPS.
6c215a8d 10595
9c06eb66
UD
10596 [BZ #2908]
10597 * stdio-common/printf_fphex.c (__printf_fphex): When rounding up
10598 'f', use '1' as leading digit not '\1'.
10599 * stdio-common/Makefile (tests): Add bug16.
10600 * stdio-common/bug16.c: New file.
10601
10602 [BZ #2914]
10603 * sysdeps/unix/sysv/linux/gethostid.c: Don't define OLD_HOSTIDFILE
10604 and don't try to open it. The patch introducing the macro
10605 contained a bug and used the same file name as the new file
10606 instead of using /var/adm/hostid. Nobody complaint so I'm taking
10607 this out completely.
10608
10609 [BZ #2926]
10610 * assert/assert.h: Move cast to void inside ?: to quiet gcc.
10611 Patch by Jerry James <Jerry.James@usu.edu>.
10612
f1762c0c
UD
10613 * rt/Makefile (tests): Add tst-clock2.
10614 * rt/tst-clock2.c: New file.
10615
10616 [BZ #2978]
10617 * resolv/gai_notify.c (__gai_notify_only): Copy memory for thread
10618 function and its parameters and pass it to new thread.
10619 (__gai_notify): Add support for alternative waiting for completion.
10620 * resolv/gai_suspend.c (gai_suspend): Add support for alternative
10621 waiting for completion.
10622 * resolv/getaddrinfo_a.c: Likewise.
10623 * resolv/gai_misc.h (struct waitlist): Don't add cond if alternative
10624 waiting for completion is used.
10625 * resolv/gai_misc.c: Allow overwriting code to start helper thread.
10626 * resolv/gai_cancel.c: Include <gai_misc.h> not "gai_misc.h".
10627 * resolv/gai_error.c: Likewise.
10628 * resolv/gai_sigqueue.c: Likewise.
10629
83ae6b40
RM
106302006-08-02 Thomas Schwinge <tschwinge@gnu.org>
10631
0e4e62fe 10632 * hurd/getdport.c (__getdport): Don't return EBADF; instead set
f1762c0c 10633 errno to EBADF and return MACH_PORT_NULL.
83ae6b40 10634
82ee37c5
UD
106352006-06-23 Joseph Myers <joseph@codesourcery.com>
10636
10637 [BZ #2980]
f1762c0c 10638 * posix/Makefile (CFLAGS-waitid.c): Add -fasynchronous-unwind-tables.
82ee37c5
UD
10639
106402006-08-02 Ulrich Drepper <drepper@redhat.com>
10641
10642 * elf/dl-addr.c (_dl_addr): If GNU-style hash tables are present,
10643 walk them instead of the symbol table.
10644
7bb1b2c9
UD
106452006-08-01 Ulrich Drepper <drepper@redhat.com>
10646
f13bfdd0 10647 [BZ #2098]
fbbc73b3
UD
10648 * nscd/initgrcache.c (addinitgroupsX): Judge successful lookups by
10649 status of NSS calls, not the number of returned entries.
10650
a4518922
UD
10651 * sysdeps/unix/sysv/linux/syscalls.list: Remove add_key,
10652 request_key, keyctl.
7bb1b2c9 10653
b06e7e9a
UD
106542006-07-31 Ulrich Drepper <drepper@redhat.com>
10655
10656 * sysdeps/unix/sysv/linux/dl-osinfo.h: Remove unnecessary include.
10657
f1227969
UD
106582006-07-16 Jeff Bailey <jbailey@ubuntu.com>
10659
10660 * elf/tst-auditmod1.c: Fix typo in #error.
10661
82ae2712
UD
106622006-07-31 Ulrich Drepper <drepper@redhat.com>
10663
f1227969
UD
10664 * elf/tst-auditmod1.c: Remove code for unsupported architectures.
10665
82ae2712
UD
10666 * iconvdata/run-iconv-test.sh: Run cmp in C locale.
10667
a1260d92
UD
106682006-07-20 Adam Nemet <anemet@caviumnetworks.com>
10669
10670 * stdlib/test-canon.c (do_test): Close fd before unlinking file so
b06e7e9a 10671 that the directory is empty even on non-POSIX filesystems.
a1260d92 10672
d2de41fe
UD
106732006-07-31 Ulrich Drepper <drepper@redhat.com>
10674
13669f2c
UD
10675 * elf/dl-open.c (dl_open_worker): Add branch prediction.
10676
d2de41fe
UD
10677 * nis/nss_compat/compat-grp.c: Avoid unnecessary setgrent calls into
10678 the backend NSS module. If backend setgrent call failed, don't have
10679 internal_setgrent fail. Just remember this until it is needed.
10680 * nis/nss_compat/compat-pwd.c: Likewise.
10681 * nis/nss_compat/compat-spwd.c: Likewise.
10682
b894c2ea
RM
106832006-07-30 Roland McGrath <roland@redhat.com>
10684
10685 * sysdeps/unix/sysv/linux/ia64/sigsuspend.c: File removed.
10686 * sysdeps/unix/sysv/linux/x86_64/sigsuspend.c: File removed.
10687 * sysdeps/unix/sysv/linux/s390/s390-64/sigsuspend.c: File removed.
10688 * sysdeps/unix/sysv/linux/sparc/sparc64/sigsuspend.c: File removed.
10689
10690 * sysdeps/unix/sysv/linux/not-cancel.h (pause_not_cancel): New macro.
10691 (nanosleep_not_cancel): New macro.
10692 (sigsuspend_not_cancel): new macro.
10693 * sysdeps/unix/sysv/linux/sigsuspend.c [__ASSUME_REALTIME_SIGNALS]
10694 (do_sigsuspend): Define as inline.
10695 (__sigsuspend): Always use do_sigsuspend.
10696 [! NO_CANCELLATION] (__sigsuspend_nocancel): New function.
10697 * include/signal.h: Declare __sigsuspend_nocancel.
10698 * sysdeps/posix/pause.c
10699 [! NO_CANCELLATION] (__pause_nocancel): New function.
10700
10701 * include/unistd.h (__pause_nocancel): Add attribute_hidden.
10702 * include/time.h (__nanosleep_nocancel): Likewise.
10703
c10d32c8
UD
107042006-07-30 Ulrich Drepper <drepper@redhat.com>
10705
10706 * locale/programs/localedef.c (add_to_readlist): Rename local
10707 variables to avoid confusion.
10708
10709 * locale/programs/charmap.c (charmap_read): Emit error message if
10710 charmap couldn't be found or read.
10711
6822f056
UD
107122006-07-28 Ulrich Drepper <drepper@redhat.com>
10713
d5ba53f9
UD
10714 * sysdeps/unix/sysv/linux/kernel-features.h: Define
10715 __ASSUME_FUTEX_LOCK_PI.
10716 * include/time.h: Declare __nanosleep_nocancel.
10717 * include/unistd.h: Declare __pause_nocancel.
10718
6822f056
UD
10719 * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Use this instead of
10720 LDFLAGS. Add -lgcc_eh and libc_nonshared (again) to make sure we
10721 get the __stack_chk_fail_local definition when it's needed.
10722
3a975ff5
UD
107232006-07-26 Ulrich Drepper <drepper@redhat.com>
10724
6de1f625
UD
10725 * dlfcn/Makefile: Add rules to build and run bug-atexit3.
10726 * dlfcn/bug-atexit3.c: New file.
10727 * dlfcn/bug-atexit3-lib.cc: New file.
10728
3a975ff5
UD
10729 * dlfcn/dlmopen.c (dlmopen_doit): Don't allow RTLD_GLOBAL to be
10730 used when the namespace is not the base namespace.
10731
a92b1166
UD
107322006-07-26 Gavin Romig-Koch <gavin@redhat.com>
10733
10734 * stdlib/cxa_atexit.c (__new_exitfn_called): New variable.
10735 (__new_exitfn): Bump it in every successful call.
10736 * stdlib/cxa_finalize.c (__cxa_finalize): If destructor registered
10737 more exit handlers, call them right away.
10738 * stdlib/exit.h: Declare __new_exitfn_called.
10739
a08336fb
UD
107402006-07-25 Ulrich Drepper <drepper@redhat.com>
10741
bd3754dc
UD
10742 * stdlib/cxa_finalize.c (__cxa_finalize): Fix race condition when
10743 calling registered handler.
10744
a08336fb
UD
10745 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Fix comment.
10746 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
10747 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
10748 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
10749 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
10750 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
10751 * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
10752 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
10753
871b9158
UD
107542006-07-10 Ulrich Drepper <drepper@redhat.com>
10755
10756 * elf/dl-lookup.c (dl_new_hash): New functions.
10757 (_dl_lookup_symbol_x): Rename hash to old_hash and don't compute
10758 value here. Compute new-style hash value. Pass new hash value
10759 and reference to variable with the old value to do_lookup_x.
10760 (_dl_setup_hash): If DT_GNU_HASH is defined, use it and not
10761 old-style hash table.
10762 (_dl_debug_bindings): Pass new hash value and reference to variable
10763 with the old value to do_lookup_x.
10764 * elf/do-lookup.h (do_lookup_x): Accept additional parameter with
10765 new-style hash value and change old-style hash value parameter to
10766 be a reference. Reoganize functions to determine whether
10767 new-style hash table is available. Only fall back on old-style
10768 table. If old-style hash value is needed, compute it here.
10769 * elf/dynamic-link.h (elf_get_dynamic_info): Relocate DT_GNU_HASH
10770 entry.
10771 * elf/elf.h: Define SHT_GNU_HASH, DT_GNU_HASH, DT_TLSDEC_PLT,
10772 DT_TLSDEC_GOT. Adjust DT_ADDRNUM.
10773 * include/link.h (struct link_map): Add l_gnu_bitmask_idxbits,
10774 l_gnu_shift, l_gnu_bitmask, l_gnu_buckets and l_gnu_chain_zero.
10775 * Makeconfig: If linker supports --hash-style option add it to all
10776 linker command lines to build DSOs.
10777 * config.make.in: Define have-hash-style.
10778 * configure.in: Test whether linker supports --hash-style option.
10779
10780 * elf/dl-misc.c (_dl_name_match_p): Make MAP parameter const.
10781 * sysdeps/generic/ldsodefs.h: Adjust prototype.
10782
a1f0de82
UD
107832006-06-27 Ulrich Drepper <drepper@redhat.com>
10784
361a3706
UD
10785 * elf/dl-load.c (open_path): Fix test to determine whether DSO is
10786 auditing.
10787
a1f0de82
UD
10788 * elf/dl-load.c (_dl_map_object): Try harder to avoid looking at
10789 RPATH of main map twice.
10790
4259230f
UD
107912006-06-22 Ulrich Drepper <drepper@redhat.com>
10792
10793 * intl/dcigettext.c (DCIGETTEXT): If _nl_find_msg returns -1 don't
10794 look further, return original strings.
10795 (_nl_find_msg): Do not return found translation if the conversion
10796 failed. Either signal the string is unusable or that something went
10797 wrong and the original should be used.
10798
107992006-06-21 Ulrich Drepper <drepper@redhat.com>
10800
10801 * string/_strerror.c (__strerror_r): Add __builtin_expect.
10802
f9b7a98b
UD
108032006-06-14 Jakub Jelinek <jakub@redhat.com>
10804
10805 [BZ #2766]
10806 * misc/insremque.c (insque): Handle prev == NULL.
10807 * misc/Makefile (tests): Add tst-insremque.
10808 * misc/tst-insremque.c: New test.
10809
ac55a25b
UD
108102006-06-17 Ulrich Drepper <drepper@redhat.com>
10811
10812 [BZ #2792]
10813 * elf/dl-deps.c (expand_dst): Rename __cnt variable to not
10814 conflict with DL_DST_REQUIRED.
10815
02f366b3
UD
108162006-06-16 Ulrich Drepper <drepper@redhat.com>
10817
10818 * nis/nis_subr.c (nis_getnames): Fix the implementation to better
10819 match what Solaris does.
10820
9009e8f8
UD
108212006-06-04 Ulrich Drepper <drepper@redhat.com>
10822
1b8373f4
UD
10823 * sysdeps/posix/spawni.c (__spawni): Use local_seteuid and
10824 local_setegid instead of seteuid and setegid.
10825 * sysdeps/generic/local-setxid.h: New file.
10826 * sysdeps/unix/sysv/linux/local-setxid.h: New file.
10827
7231452e
UD
10828 * sysdeps/posix/spawni.c (__spawni): Use non-cancelable interfaces.
10829
9009e8f8 10830 * string/Makefile (tests): Add bug-envz1.
02f366b3 10831 * string/bug-envz1.c: New file.
9009e8f8 10832
33e63e79
UD
108332006-06-02 Jakub Jelinek <jakub@redhat.com>
10834
10835 * posix/regex_internal.c (re_string_skip_chars): If no character has
10836 been converted at all, set *last_wc to WEOF. If mbrtowc failed, set wc
10837 to the byte which couldn't be converted.
10838 (re_string_reconstruct): Don't clear valid_raw_len before calling
10839 re_string_skip_chars. If wc is WEOF after re_string_skip_chars, set
10840 tip_context using re_string_context_at.
10841 * posix/Makefile: Add rules to build and run bug-regex25 test.
10842 * posix/bug-regex25.c: New test.
10843
fdc02996
UD
108442006-06-02 Ryan S. Arnold <rsa@us.ibm.com>
10845
10846 [BZ #2703]
10847 * string/envz.c (envz_strip): Correct erroneously reversed src
10848 and dest parameters to memmove() invocation.
10849
902c4291
UD
108502006-05-30 Jakub Jelinek <jakub@redhat.com>
10851
10852 * nscd/nscd.h (prune_cache): Add fd argument to prototype.
10853 * nscd/nscd.c (parse_opt): Read response from INVALIDATE request
10854 to make sure the database has been already invalidated.
10855 * nscd/cache.c (prune_cache): Add fd argument. Write response to fd
10856 after the cache has been invalidated. Use pthread_mutex_lock rather
10857 than pthread_mutex_trylock if fd != -1.
10858 * nscd/connections.c (invalidate_cache): Add fd argument, write
10859 response to fd if not calling prune_cache, pass fd to prune_cache.
10860 (handle_request): Adjust invalidate_cache caller.
10861 (nscd_run): Pass -1 as fd to prune_cache.
10862
ecc68568
UD
108632006-05-30 Ulrich Drepper <drepper@redhat.com>
10864
10865 * sysdeps/posix/getaddrinfo.c (gaiconf_init): Initialize bits in
10866 the correct place.
10867
9636a217
UD
108682006-05-29 Ulrich Drepper <drepper@redhat.com>
10869
10870 * nscd/nscd.h (struct database_dyn): Add prunelock field.
10871 * nscd/cache.c (prune_cache): Take prunelock before starting the
10872 work. Just return in case it is already taken.
cabfcde1 10873 * nscd/connections.c (dbs): Initialize .prunelock.
9636a217 10874
6bcb494a
UD
108752006-05-25 Ulrich Drepper <drepper@redhat.com>
10876
672d5a63 10877 * nis/nis_removemember.c (nis_removemember): Avoid unnecessary
ecc68568 10878 copying. No need to allocate new array for group members. Just
672d5a63
UD
10879 move the pointers and update the size.
10880
1663b44f
UD
10881 * nis/nis_addmember.c (nis_addmember): Avoid unnecessary copying.
10882 Avoid memory leak in case realloc fails. Simplification for
10883 better code generation.
10884
10885 Avoid deprecation warning because of libc_hidden_proto for
10886 inet6_option_alloc.
10887 * inet/inet6_option.c (option_alloc): Renamed from
10888 inet6_option_alloc. Made static.
9636a217 10889 (inet6_option_alloc): Now a simple wrapper around option_alloc.
1663b44f
UD
10890 (inet6_option_append): Call option_alloc.
10891 * include/netinet/in.h: Remove libc_hidden_proto for
10892 inet6_option_alloc.
10893
6bcb494a
UD
10894 * nis/nis_callback.c (__nis_create_callback): Always call xdr_free
10895 for cleanup when cb!=NULL [Coverity CID 233].
10896
aec6b246
UD
108972006-05-24 Ulrich Drepper <drepper@redhat.com>
10898
07bfff20
UD
10899 [BZ #2693]
10900 * inet/Makefile (routines): Add inet6_opt and inet6_rth.
10901 * inet/Versions (libc, GLIBC_2.5): Add inet6_opt_init,
10902 inet6_opt_append, inet6_opt_finish, inet6_opt_set_val, inet6_opt_next,
10903 inet6_opt_find, inet6_opt_get_val, inet6_rth_space, inet6_rth_init,
10904 inet6_rth_add, inet6_rth_reverse, inet6_rth_segments,
10905 and inet6_rth_getaddr.
10906 * inet/netinet/ip6.h (struct ip6_rthdr0): Make ip6r0_addr a flexible
10907 array.
10908 * inet/netinet/in.h (struct ip6_mtuinfo): Define.
10909 Mark inet6_option_* interfaces as deprecated.
10910 Declare inet6_opt_init, inet6_opt_append, inet6_opt_finish,
10911 inet6_opt_set_val, inet6_opt_next, inet6_opt_find, inet6_opt_get_val,
10912 inet6_rth_space, inet6_rth_init, inet6_rth_add, inet6_rth_reverse,
10913 inet6_rth_segments, and inet6_rth_getaddr.
10914 * inet/inet6_opt.c: New file.
10915 * inet/inet6_rth.c: New file.
10916
10917 * inet/netinet/icmp6.h: Pretty printing.
10918
aec6b246
UD
10919 [BZ #2683]
10920 * elf/dl-addr.c (_dl_addr): Don't match undefined references.
10921
2d571cd1
UD
109222006-05-23 Ulrich Drepper <drepper@redhat.com>
10923
062e719b
UD
10924 * nis/nis_lookup.c (nis_lookup): Use __prepare_niscall instead of
10925 doing it all here. When server does not know the answer do not
10926 fail immediate, try parent first.
10927
2d571cd1
UD
10928 * nis/nis_domain_of_r.c (nis_domain_of_r): Add missing buffer
10929 overflow test.
10930
a17fa610
UD
109312006-05-20 Ulrich Drepper <drepper@redhat.com>
10932
10933 * nis/nis_call.c (__prepare_niscall): New function. Split out
10934 from __do_niscall.
10935 * nis/nis_table.c (__create_ib_request): Renamed from create_ib_request
10936 and exported.
10937 (__follow_path): New function. Split out from nis_list.
10938 * nis/nis_xdr.h: Add libnsl_hidden_proto for _xdr_ib_request and
10939 _xdr_nis_result.
10940 * nis/nis_xdr.c: Add libnsl_hidden_def for _xdr_ib_request and
10941 _xdr_nis_result.
10942 * nis/libnsl.h: Declare __prepare_niscall, __create_ib_request,
10943 and __follow_path.
10944 * nis/Versions: Export __prepare_niscall, __create_ib_request,
10945 __follow_path, __do_niscall3, _xdr_ib_request, and _xdr_nis_result
10946 from libnsl for version GLIBC_PRIVATE.
10947 * nis/nisplus-parser.h: Remove _nss_nisplus_parse_pwent_chk.
10948 Remove entry parameter from _nss_nisplus_parse_pwent and
10949 _nss_nisplus_parse_grent.
10950 * nis/nss_nisplus/nisplus-parser.c: Likewise.
10951 * nis/nss_nisplus/nisplus-pwd.c: Remove support for SETENT_BATCH_READ
10952 again. Rewrite getpwent handling to not use nis_first_entry and
10953 nis_next_entry. Roll out own niscall handling.
10954 * nis/nss_nisplus/nisplus-grp.c: Likewise.
10955
10956 * sunrpc/xdr_rec.c: Fix typo in comment.
10957
429bb183
UD
109582006-05-19 Ulrich Drepper <drepper@redhat.com>
10959
1d4f062a
UD
10960 * nis/nis_call.c (__do_niscall3): Avoid code duplication in error
10961 handling.
10962
101cc598
UD
10963 * nis/nis_callback.c (internal_nis_do_callback): Don't use malloc
10964 to allocate memory for my_pollfd. Better initialization of
10965 cb_is_running. Use TEMP_FAILURE_RETRY.
10966
f50fa10c
UD
10967 * malloc/memusage.sh (memusageso): Add quotes.
10968 (memusagestat): Likewise.
10969 * debug/xtrace.sh (pcprofileso): Likewise.
10970 (pcprofiledump): Likewise.
10971 * debug/Makefile ($(objpfx)xtrace): Use $LIB in SLIBDIR
10972 replacement.
10973 * malloc/Makefile ($(objpfx)memusage): Likewise.
10974
882bfe73
UD
10975 * nis/nis_callback.c (__nis_create_callback): Calls to
10976 svcudp_bufcreate and svctcp_create can fail. Free ->xprt if
10977 asprintf call fails.
10978
429bb183
UD
10979 * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_sendreq): Make sure
10980 no uninitialized memory is passed to sendto.
10981
f90de831
UD
109822006-05-18 Ulrich Drepper <drepper@redhat.com>
10983
10984 * nis/nis_callback.c (__nis_create_callback): Use asprinf instead
10985 of snprintf+strdup. Handle OOM.
10986 * nis/nis_callback.c (__nis_create_callback): Allocate cb and
10987 cb->serv together. Remove now obsolete free calls.
10988 (__nis_destroy_callback): Remove now obsolete free call.
10989
a17fa610 109902006-05-18 David Woodhouse <dwmw2@redhat.com>
6e2a7825
UD
10991
10992 * sysdeps/posix/getaddrinfo.c: Add unique labels to the default
10993 RFC3484 precedence table for fec0::/10 and fc00::/7 (site-local
10994 and ULA respectively). Set precedence for IPv4 address to 10 as
10995 defined in RFC3484 for preferring IPv6.
10996 * posix/gai.conf: Update to match the new default tables.
10997
758b9d7e
UD
109982006-05-18 Jakub Jelinek <jakub@redhat.com>
10999
11000 * nis/nss_compat/compat-pwd.c (internal_setpwent): If nss_set*ent
11001 returned NSS_STATUS_UNAVAIL, still return NSS_STATUS_SUCCESS.
11002 * nis/nss_compat/compat-spwd.c (internal_setspent): Likewise.
11003 * nis/nss_compat/compat-grp.c (internal_setgrent): Likewise.
11004
11005 * nis/nss_compat/compat-initgroups.c (nss_setgrent, nss_endgrent):
11006 Removed.
11007 (init_nss_interface): Remove initialization of these variables.
11008
110092006-05-18 Ulrich Drepper <drepper@redhat.com>
11010
11011 * nis/nis_call.c (rec_dirsearch): Little optimization: pull
11012 nis_free_directory forward to avoid duplication.
11013
388c779e
UD
110142006-05-17 Ulrich Drepper <drepper@redhat.com>
11015
5f1724bf
UD
11016 * nis/nis_call.c (rec_dirsearch): Handle __nis_finddirectory and
11017 rec_dirsearch returning NULL.
11018 (first_shoot): Handle __nis_finddirectory returning NULL.
11019 (__nisfind_server): Fix leak when rec_dirsearch returns NULL.
11020
388c779e
UD
11021 * sysdeps/unix/sysv/linux/sys/inotify.h: Define IN_CLOSE, IN_MOVE,
11022 IN_ONLYDIR, IN_DONT_FOLLOW, and IN_MASK_ADD.
11023
360d5cf4
UD
110242006-05-17 Jakub Jelinek <jakub@redhat.com>
11025
11026 * sunrpc/key_call.c (getkeyserv_handle): Call auth_destroy if
11027 pid changed.
11028
88dbff8c
UD
110292006-05-15 Ulrich Drepper <drepper@redhat.com>
11030
6f8a7dff
UD
11031 * include/rpc/pmap_prot.h: Mark all functions as hidden.
11032
11033 * nscd/nscd_initgroups.c: Mark __gr_map_handle as hidden.
11034 * nscd/nscd_getgr_r.c: Likewise.
11035
11036 * include/rpc/pmap_rmt.h: Mark all functions as hidden.
11037
11038 * nscd/nscd_getai.c (__hst_map_handle): Mark as hidden.
11039 * nscd/nscd_gethst_r.c (__hst_map_handle): Likewise.
11040
11041 * stdlib/longlong.h (__clz_tab): Mark as hidden.
11042
11043 * iconv/gconv_int.h: Mark __gconv_lock as hidden.
11044
360d5cf4 11045 * include/rpc/key_prot.h: Mark all _internal functions as hidden.
8263ed62
UD
11046
11047 * include/rpc/auth.h: Mark xdr_des_block_internal and
11048 xdr_opaque_auth_internal as hidden.
11049
11050 * sysdeps/unix/sysv/linux/getdents.c: Mark __have_no_getdents64 as
11051 hidden.
11052
360d5cf4 11053 * include/rpc/xdr.h: Mark all _internal functions as hidden.
8263ed62 11054
02264020
UD
11055 * misc/getusershell.c (okshells): Don't use static initializers,
11056 do it dynamically.
11057
fd5ea238
UD
11058 * stdlib/fmtmsg.c (keywords): Change type of len element to
11059 uint32_t to not waste space on 64bit machines.
11060
9446614c
UD
11061 * locale/setlocale.c: Change _nl_category_names into a string.
11062 Add new _nl_category_name_idxs. Change all users.
11063 * locale/localeinfo.h: Adjust declaration of _nl_category_names.
11064 Declare _nl_category_name_idxs.
11065 * locale/findlocale.c: Adjust for _nl_category_names change.
11066 * locale/loadlocale.c: Likewise.
11067 * locale/newlocale.c: Likewise.
11068 * intl/dcigettext.c: Likewise.
11069
88dbff8c
UD
11070 * iconv/gconv_conf.c (add_alias): Move actual alias handling to...
11071 (add_alias2): ...here. New function.
11072 (__gconv_read_conf): Simplify builtin alias handling.
11073 (builtin_aliases): Convert to string to avoid relocations.
11074 * iconv/gconv_builtin.h: Add comment about correct formatting.
11075
4442d58f
UD
110762006-05-15 Jakub Jelinek <jakub@redhat.com>
11077
11078 * resolv/res_debug.c (loc_ntoa): Make error const.
11079
110802006-05-14 Andreas Schwab <schwab@suse.de>
11081
11082 * math/complex.h [__LDBL_COMPAT]: Use __REDIRECT_NTH.
11083
110842006-05-12 Jakub Jelinek <jakub@redhat.com>
11085
11086 * sysdeps/unix/sysv/linux/sched_getaffinity.c: Include sys/param.h.
11087 (__sched_getaffinity_new): Don't crash if cpusetsize is smaller than
11088 sizeof (cpu_set_t).
11089
a51752b6
UD
110902006-05-11 Ulrich Drepper <drepper@redhat.com>
11091
5d3fd1f6
UD
11092 * resolv/res_debug.c (loc_ntoa): Define error as array, not pointer.
11093
08cfb839
UD
11094 * include/arpa/nameser.h: Declare _ns_flagdata as hidden.
11095
4b481a15
UD
11096 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_master.
11097 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_master.
11098
11099 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypbind_resp.
11100 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypbind_resp.
11101
11102 * nis/nis_xdr.c: Add libnsl_hidden_def for xdr_cback_data.
11103 * include/rpcsvc/nis_callback.h: Add libnsl_hidden_proto for
11104 xdr_cback_data.
11105
11106 * nis/ypupdate_xdr.c: Add libnsl_hidden_def for xdr_ypupdate_args.
11107 * include/rpcsvc/ypupd.h: Add libnsl_hidden_proto for
11108 xdr_ypupdate_args.
11109
11110 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_order.
11111 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_order.
11112
11113 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_maplist.
11114 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_maplist.
11115
11116 * nis/nis_xdr.c: Add libnsl_hidden_def for xdr_obj_p.
11117 * include/rpcsvc/nis_callback.h: New file.
11118
11119 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_val.
11120 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_val.
11121
11122 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypreq_nokey.
11123 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypreq_nokey.
11124
11125 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypmaplist.
11126 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypmaplist.
11127
11128 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypreq_nokey.
11129 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypreq_nokey.
11130
b1ad49c6
UD
11131 * nis/ypupdate_xdr.c: Add libnsl_hidden_def for xdr_ypdelete_args.
11132 * include/rpcsvc/ypupd.h: Add libnsl_hidden_proto for
11133 xdr_ypdelete_args.
11134
cd5f7829
UD
11135 * nis/nis_xdr.h: Mark all functions as hidden. Remove
11136 __BEGIN_DECLS and __END_DECLS, the header is not installed.
11137
a51752b6
UD
11138 * nis/nis_error.c: Remove table of strings. Use position
11139 independent mechanism.
11140 * nis/nis_error.h: New file.
11141
3d237e42
UD
111422006-05-11 Jakub Jelinek <jakub@redhat.com>
11143
11144 * locale/programs/ld-time.c (time_finish): If wide era name or
11145 format aren't provided, set both wname and wformat to L"".
11146
d6c159fe
UD
111472006-05-10 Ulrich Drepper <drepper@redhat.com>
11148
0088b04e
UD
11149 * sysdeps/unix/sysv/linux/tcgetattr.c (__tcgetattr): Only store
11150 results if the call was succesful.
11151
d6c159fe
UD
11152 * nis/nss-nis.h: Mark __yperr2nss_tab and __yperr2nss_count as hidden.
11153
11154 * nis/nss-nisplus.h: Mark __niserr2nss_tab and __niserr2nss_count
11155 as hidden.
11156
5c5acdf0
UD
111572006-05-10 Jakub Jelinek <jakub@redhat.com>
11158
11159 * misc/sys/queue.h: Remove uses of all QUEUEDEBUG_* macros.
11160
16d620db
UD
111612006-05-10 Ulrich Drepper <drepper@redhat.com>
11162
11163 * posix/wordexp.c (parse_glob): No need to check ifs for NULL, the
11164 caller makes sure this is not the case.
11165 (wordexp): Simplify ifs_white creation. [Coverity CID 231]
11166
e7c8359e
UD
111672006-05-09 Ulrich Drepper <drepper@redhat.com>
11168
ecf359c6
UD
11169 * posix/wordexp.c: Remove numerous NULL pointer tests before FREE
11170 calls.
11171
400cc70a
UD
11172 * io/ftw.c (open_dir_stream): Return right away if REALLOC fails.
11173 [Coverity CID 229, 230]
11174
11175 * argp/argp-help.c (hol_entry_help): Handle STATE==NULL in ARG and
11176 DGETTEXT calls.
11177 (hol_help): Likewise. [Coverity CID 226, 227]
11178
11179 * string/argz-replace.c (__argz_replace): Unconditionally call
11180 free on SRC. [Coverity CID 225]
11181
11182 * nis/nis_creategroup.c (nis_creategroup): No need to duplicate
11183 the return value of __nis_default_owner and __nis_default_group,
11184 it has been especially allocated. [Coverity CID 224]
11185
51e59260
UD
11186 * nis/nis_defaults.c (searchXYX): New functions. Used by both
11187 searchgroup and searchowner. Significantly simplified.
11188 (__nis_default_owner): Remove duplication. Do not locally copy the
11189 string before duplicating it.
11190 (__nis_default_group): Likewise.
11191
11192 * nis/nis_lookup.c (nis_lookup): After calling nis_free_directory,
11193 we must clear the variable before calling __nisfind_server.
11194
11195 * nis/nis_lookup.c (nis_lookup): Always free memory allocated with
11196 nis_getnames. [Coverity CID 223]
11197
11198 * locale/programs/locfile.c (locfile_read): Use alloca instead of
11199 xmalloc to allocate local repertoire name. [Coverity CID 222]
11200
11201 * iconv/iconv_charmap.c (use_to_charmap): No need to dynamically
11202 allocate memory for the input to add_bytes. [Coverity CID 221]
11203
e7c8359e 11204 * posix/wordexp.c (w_addword): Free word if realloc fails and it
51e59260 11205 was allocated here. [Coverity CID 219, 220]
e7c8359e
UD
11206
11207 * posix/getconf.c (print_all): Free confstr data after printing.
11208 [Coverity CID 218]
11209
11210 * sysdeps/posix/getaddrinfo.c (gaih_inet): Free canon string if
11211 list allocation fails. [Coverity CID 215]
11212
11213 * nss/nsswitch.c (__nss_configure_lookup): Fix loop end condition.
11214 [Coverity CID 213]
11215
11216 * argp/argp-help.c (hol_entry_cmp): Don't call canon_doc_option if
11217 string is NULL. [Coverity CID 212]
11218 * argp/Makefile: Add rules to build and run bug-argp1.
11219 * argp/bug-argp1.c: New file.
11220
11221 * io/ftw.c (ftw_dir): Use __rawmemchr instead of strchr to find
11222 end of string.
11223 * stdlib/canonicalize.c (__realpath): Likewise.
11224
11225 * locale/programs/ld-time.c (time_finish): Don't dereference NULL
11226 pointer. [Coverity CID 206]
11227
11228 * elf/dl-dst.h (DL_DST_REQUIRED): Be prepared for missing link map
11229 in statically linked code.
11230 * elf/dl-load.c (_dl_dst_substitute): When replacing ORIGIN in
11231 statically built code, be prepared to have no link map.
11232 [Coverity CID 205]
11233
11234 * argp/argp-help.c (fill_in_uparams): Handle STATE==NULL in
11235 dgettext calls. [Coverity CID 204]
11236
11237 * argp/argp-help.c (struct uparams): Remove valid member. Change
11238 the one user.
11239 (uparam_names): Reduce size. Avoid relative relocations.
11240 Moved to read-only segment.
11241 (fill_in_uparams): Update for new layout.
11242
11243 * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs): Parameter can be
11244 assumed to always be != NULL. [Coverity CID 202]
11245
11246 * argp/argp-help.c (hol_entry_help): Remove some dead code
11247 [Coverity CID 200].
11248
11249 * nis/nss_nis/nis-service.c (_nss_nis_getservbyport_r): Optimize
11250 away a few more unconditional yperr2nss calls.
11251 (_nss_nis_getservbyname_r): Likewise.
11252
acf82eaf
UD
112532006-05-06 Ulrich Drepper <drepper@redhat.com>
11254
4461cf48
UD
11255 * sysdeps/generic/ldsodefs.h: Remove support for non-core
11256 architectures.
11257
b74a8c7f
UD
11258 * sysdeps/unix/sysv/linux/check_pf.c (make_request): Make sure
11259 that unused memory passed to sendto is nevertheless initialized.
11260
acb98cb5
UD
11261 [BZ #2499]
11262 * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Avoid
11263 possibly unaligned memory accesses.
11264
bce16467
UD
11265 * include/arpa/nameser.h: Also optimize NS_PUT16 and NS_PUT32.
11266 * resolv/res_mkquery.c: Use NS_PUT16 and NS_PUT32 instead of __putshort
11267 and __putlong respectively. Correct buffer overflow check for
11268 NS_NOTIFY_OP.
11269
11270 * resolv/res_send.c (send_vc): Use ns_put16 instead of putshort.
11271
8e45b1ac
UD
11272 * resolv/res_send.c (res_queriesmatch): Fix typo in comment.
11273 (send_dg): Rewrite error handling to be more compact and avoid
11274 double recomputation of timeouts. Pass MSG_NOSIGNAL to send.
11275
697e1628
UD
11276 * include/arpa/nameser.h: Add optimizations for NS_GET16 and NS_GET32.
11277
11278 * resolv/res_send.c (res_nameinquery): Use NS_GET16 directly
11279 instead of ns_get16.
11280 (res_queriesmatch): Likewise. Minor optimization.
11281
acf82eaf
UD
11282 [BZ #2499]
11283 * resolv/res_query.c (__libc_res_nquery): If answerp != NULL,
11284 __libc_res_nsend might reallocate the buffer for the answer. In
11285 this case we have to reload the HP pointer.
11286
7bfee654
UD
112872006-05-05 Ulrich Drepper <drepper@redhat.com>
11288
694b49ca
UD
11289 * stdio-common/vfscanf.c (memory_error): Remove definition. Add
11290 some branch prediction hints.
11291
7bfee654
UD
11292 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Define SPLICE_F_*.
11293 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
11294 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
11295 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
11296 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
11297 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
11298 * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
11299 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
11300
308bb2d5
UD
113012006-05-05 Martin Schwidefsky <schwidefsky@de.ibm.com>
11302
11303 * sysdeps/s390/s390-32/elf/start.S: Replace pc relative relocation
11304 by a GOT relocation to make Scrt1.o position independent.
11305 * sysdeps/s390/s390-64/elf/start.S: Likewise.
11306
11307 * sysdeps/unix/sysv/linux/s390/s390-32/syscall.S: Add support for
11308 six system call parameters.
11309 * sysdeps/unix/sysv/linux/s390/s390-64/syscall.S: Likewise.
11310
cdb9c321
UD
113112006-05-05 Ulrich Drepper <drepper@redhat.com>
11312
11313 * sunrpc/svcauth_des.c (cache_init): Use calloc instead of
11314 malloc&bzero.
11315
11316 * sunrpc/svc_udp.c (BZERO): Remove definition.
11317 (CALLOC): Define.
11318 (svc_enablecache): Use CALLOC instead of ALLOC&BZERO.
11319
11320 * sunrpc/des_impl.c: Remove ALT_ECB support. We never used it.
11321 (des_SPtrans): Use uint32_t type.
11322 (des_skb): Likewise.
11323
11324 * sunrpc/xdr_ref.c (xdr_reference): Use calloc instead of malloc&bzero.
11325
fff04b32
UD
113262006-05-05 Jakub Jelinek <jakub@redhat.com>
11327
11328 [BZ #2509]
11329 * stdio-common/tst-printf.sh: Adjust for tst-printf.c change even
11330 on 32-bit arches.
11331
113322006-05-05 Ulrich Drepper <drepper@redhat.com>
11333
11334 * locale/programs/ld-address.c (address_finish): Fix one more
cdb9c321 11335 place where the iso639 array might be accessed beyond the limits.
fff04b32 11336
077a30bc 113372006-05-04 Ulrich Drepper <drepper@redhat.com>
77dd4c3b 11338
f2d5cf50
UD
11339 * nis/nis_table.c (nis_list): Avoid clearing res twice before
11340 filling it for the first time.
11341
3e4370cf
UD
11342 * nis/nis_table.c (get_tablepath): Renamed from __get_tablepath.
11343 Adjust all callers.
11344 Free res object content before returning.
11345
5e65a53d
UD
11346 * sunrpc/xdr_array.c (xdr_array): Use calloc instead of malloc&bzero.
11347
48be3114
UD
11348 * sunrpc/key_call.c (__rpc_thread_key_cleanup): Also free
11349 client->cl_auth.
11350
ca4fce0e
UD
11351 * sunrpc/rpc_thread.c (__rpc_thread_destroy): Don't skip entire
11352 cleanup for initial thread, just the free call on TVP.
11353
077a30bc 11354 * nscd/gai.c (__getline): Define.
3b7a95fb 11355
5d37289a 11356
3f87d901 11357See ChangeLog.16 for earlier changes.
This page took 1.616558 seconds and 5 git commands to generate.