]> sourceware.org Git - glibc.git/blame - ChangeLog
* sysdeps/ieee754/dbl-64/s_expm1.c: Set errno for overflow.
[glibc.git] / ChangeLog
CommitLineData
4ec77f72
UD
12009-04-26 Ulrich Drepper <drepper@redhat.com>
2
f0e3c47f
UD
3 * sysdeps/ieee754/dbl-64/s_expm1.c: Set errno for overflow.
4 * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
5 * sysdeps/x86_64/fpu/s_expm1l.S: Likewise.
6
49768bb9
UD
7 * sysdeps/ieee754/k_standard.c (__kernel_standard): Pole errors in
8 atanh should set ERANGE.
9
e49dc847
UD
10 [BZ #10087]
11 * elf/dl-runtime.c (_dl_fixup): Use DL_FIXUP_VALUE_ADDR to access
12 result of lookup to make call to implement STT_GNU_IFUNC.
13 (_dl_profile_fixup): Likewise.
14 Patch by H.J. Lu <hjl.tools@gmail.com>.
15
1ac03a1e
UD
16 * nscd/connections.c (send_ro_fd): Define temporary variable to avoid
17 warning.
18
6cc8844f
UD
19 * sysdeps/unix/sysv/linux/dl-osinfo.h (dl_fatal): Remove inline
20 from definition.
21
22 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Don't define
23 label if it is not used.
24
25 * elf/dl-profile.c (_dl_start_profile): Define real-type variant
26 of gmon_hist_hdr and gmon_hdr structures and use them.
1ac03a1e 27 * elf/sprof.c: Likewise.
6cc8844f
UD
28
29 * elf/dl-load.c (open_verify): Add temporary variable to avoid
30 warning.
31
32 * nscd/nscd_helper.c (get_mapping): Avoid casts to avoid warnings.
33
34 * sunrpc/clnt_raw.c (clntraw_private_s): Use union in definition
35 to avoid cast.
36
37 * inet/rexec.c (rexec_af): Make sa2 a union to avoid warnings.
38 * inet/rcmd.c (rcmd_af): Make from a union of the various needed types
39 to avoid warnings.
40 (iruserok_af): Use ss_family instead of casts.
41
42 * gmon/gmon.c (write_hist): Define real-type variant of
43 gmon_hist_hdr structure and use it.
44 (write_gmon): Likewise for gmon_hdr.
45
46 * sysdeps/unix/sysv/linux/readv.c: Avoid declaration of replacement
47 function if we are not going to define it.
48 * sysdeps/unix/sysv/linux/writev.c: Likewise.
49
218555e9 50 * inet/inet6_option.c (option_alloc): Add temporary variable to
6cc8844f
UD
51 avoid warning.
52
53 * libio/strfile.h (struct _IO_streambuf): Use correct type and
54 name of VTable element.
55 * libio/iovsprintf.c: Avoid casts to avoid warnings.
56 * libio/iovsscanf.c: Likewise.
57 * libio/vasprintf.c: Likewise.
58 * libio/vsnprintf.c: Likewise.
59 * stdio-common/isoc99_vsscanf.c: Likewise.
60 * stdlib/strfmon_l.c: Likewise.
61 * debug/vasprintf_chk.c: Likewise.
62 * debug/vsnprintf_chk.c: Likewise.
63 * debug/vsprintf_chk.c: Likewise.
64
4ec77f72
UD
65 * nss/nsswitch.c (__nss_lookup_function): En/Decrypt cached
66 function pointers.
67
82a1a4da
UD
682009-04-26 Jakub Jelinek <jakub@redhat.com>
69
70 * sysdeps/ieee754/dbl-64/s_tan.c (tan): Fix -Wsequence-point warnings.
71
db6edfb3
UD
722009-04-25 Ulrich Drepper <drepper@redhat.com>
73
27be9b92
UD
74 * posix/bits/posix1_lim.h: Cleanup namespace a bit.
75
337c2708
UD
76 * sysdeps/i386/fpu/s_tan.S: Set errno for ±Inf.
77 * sysdeps/i386/fpu/s_tanf.S: Likewise.
78 * sysdeps/i386/fpu/s_tanl.S: Likewise.
79 * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
80 * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
81 * sysdeps/x86_64/fpu/s_tanl.S: Likewise.
82 * math/libm-test.inc: Add tests for errno after tan calls with
83 ±Inf.
84
002a604f
UD
85 * sysdeps/ieee754/k_standard.c (__kernel_standard): Use correct
86 errno value vor pow(+-0,neg).
87 * math/libm-test.inc (pow_test): Add tests for errno value for
88 pole errors.
89
7095366d
UD
90 * math/w_fmod.c: Also handle x=±Inf as error.
91 * math/w_fmodf.c: Likewise.
92 * math/w_fmodl.c: Likewise.
93 * math/libm-test.inc (fmod_test): Add tests for errno after calls for
94 x=±Inf or y=0.
95
0c59a196
UD
96 * sysdeps/i386/fpu/s_cos.S: Set errno for ±Inf.
97 * sysdeps/i386/fpu/s_cosf.S: Likewise.
98 * sysdeps/i386/fpu/s_cosl.S: Likewise.
99 * sysdeps/i386/fpu/s_sin.S: Likewise.
100 * sysdeps/i386/fpu/s_sinf.S: Likewise.
101 * sysdeps/i386/fpu/s_sinl.S: Likewise.
102 * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
103 * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
104 * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
105 * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
106 * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
107 * sysdeps/x86_64/fpu/s_cosl.S: Likewise.
108 * sysdeps/x86_64/fpu/s_sinl.S: Likewise.
109 * math/libm-test.inc: Add tests for errno after sin/cos calls with
110 ±Inf.
111
4bbf8999
UD
112 * stdlib/strtod_l.c (round_and_return): We have to set errno to
113 ERANGE for underflows.
114 * stdlib/tst-strtod.c (tests): Two tests should set errno to ERANGE.
115
af9f1c48
UD
116 * stdio-common/stdio_lim.h.in (L_cuserid): Not part of POSIX since
117 the 2001 revision.
118
13327042
UD
119 * libio/tst-widetext.input: Remove surrogates.
120
c163ee23
UD
121 * include/features.h: _POSIX_C_SOURCE >= 200112L implies C99.
122
e971e76d 123 * sysdeps/ieee754/k_standard.c (__kernel_standard): Pole errors
81068e35 124 for lgamma should set errno to ERANGE, not EDOM.
e971e76d
UD
125 * math/libm-test.inc (lgamma_test): Check errno for pole errors.
126
c2d5bd5b
UD
1272009-04-24 Ulrich Drepper <drepper@redhat.com>
128
9c32c895
UD
129 [BZ #10093]
130 * iconv/gconv_simple.c (BODY for UTF-8 to INTERNAL): Don't accept
131 UTF-16 surrogates.
132
c9edc889
UD
133 * locale/programs/locarchive.c (enlarge_archive): Conserve address
134 space when temporarily mapping the whole content of the old file.
135
c2d5bd5b
UD
136 [BZ #10100]
137 * misc/hsearch_r.c (hsearch_r): Add back ensurance that hval is
138 not zero.
139
f397be12
UD
1402009-04-24 Jakub Jelinek <jakub@redhat.com>
141
142 * iconvdata/sjis.c (BODY): Don't advance inptr before
143 STANDARD_FROM_LOOP_ERR_HANDLER (2) for 2 byte invalid input.
144 Use STANDARD_FROM_LOOP_ERR_HANDLER with 2 instead of 1 for
145 two byte chars.
146
705341a9
UD
1472009-04-24 Ulrich Drepper <drepper@redhat.com>
148
149 * locale/locarchive.h (struct locarhandle): Rename len field to
150 mmaped and add new reserved field.
151 * locale/programs/locarchive.c (RESERVE_MMAP_SIZE): Define.
152 (create_archive): Reserve address space and then map file into it.
153 (open_archive): Likewise.
154 (file_data_available_p): New function.
155 (compare_from_file): New function.
156 (close_archive): Adjust to member name changes.
157 (add_locale): Before comparing locale data, check it is mapped.
158 Otherwise fall back to reading from the file.
159
57d2da1c
UD
1602009-04-23 H.J. Lu <hongjiu.lu@intel.com>
161
162 * stdio-common/psiginfo.c: Include <errno.h>.
163
3d855f75
UD
1642009-04-23 Ulrich Drepper <drepper@redhat.com>
165
fe12c798
UD
166 [BZ #9920]
167 * stdlib/random_r.c (__srandom_r): Change type of word to int32_t
168 to get consistency between 32 and 64 bit architectures.
169
3d855f75
UD
170 [BZ #10052]
171 * sysdeps/unix/make-syscalls.sh: Add rule to create target
172 directory for dummy syscall rules.
173 Patch by Chris Steinbroner <hesh@pobox.com>.
174
95bf537f
UD
1752009-04-23 Aurelien Jarno <aurelien@aurel32.net>
176
177 [BZ #10092]
178 * sysdeps/unix/sysv/linux/sys/mount.h: Define MNT_DETACH and
179 MNT_EXPIRE.
180
7f8a28ef
UD
1812009-04-23 Ulrich Drepper <drepper@redhat.com>
182
183 * sysdeps/unix/sysv/linux/preadv.c: The kernel API changed. Adjust.
184 * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
185
1862009-04-23 Jakub Jelinek <jakub@redhat.com>
187
188 * sysdeps/posix/pwritev.c (PWRITEV): Fix up comment. Copy
189 data from vector to temporary buffer and call PWRITEV after it
190 instead of vice versa.
191 * sysdeps/posix/preadv.c: Fix up comment.
192 * misc/preadv.c: Likewise.
193 * misc/preadv64.c: Likewise.
194 * misc/pwritev.c: Likewise.
195 * misc/pwritev64.c: Likewise.
196 * misc/sys/uio.h (preadv, pwritev, preadv64, pwritev64): Likewise.
197
829fea46
UD
1982009-04-23 Ulrich Drepper <drepper@redhat.com>
199
c7e74e59
UD
200 * shadow/sgetspent_r.c (__sgetspent_r): Recognize too small buffers.
201
3b055b47
UD
202 * shadow/Makefile (tests): Add tst-shadow.
203 * shadow/tst-shadow.c: New file.
204
829fea46
UD
205 [BZ #9955]
206 * gshadow/Makefile: New file.
207 * gshadow/Versions: New file.
208 * gshadow/fgetsgent.c: New file.
209 * gshadow/fgetsgent_r.c: New file.
210 * gshadow/getsgent.c: New file.
211 * gshadow/getsgent_r.c: New file.
212 * gshadow/getsgnam.c: New file.
213 * gshadow/getsgnam_r.c: New file.
214 * gshadow/gshadow.h: New file.
215 * gshadow/putsgent.c: New file.
216 * gshadow/sgetsgent.c: New file.
217 * gshadow/sgetsgent_r.c: New file.
218 * gshadow/tst-gshadow.c: New file.
219 * include/gshadow.h: New file.
220 * Makeconfig (all-subdirs): Add gshadow.
221 * Makefile (installed-headers): Add gshadow/gshadow.h.
222 * nss/Makefile (databases): Add sgrp.
223 * nss/Versions: Add gshadow functions as private exports.
224 * nss/nsswitch.conf: Add gshadow entry.
225 * nss/sgrp-lookup.c: New file.
226 * nss/nss_files/files-parse.c: Add STRING_LIST macro. Rewrite
227 parse_list to handle STRING_LIST and TRAILING_LIST_PARSER.
228 * nss/nss_files/files-sgrp.c: New file.
229 * sysdeps/generic/paths.h: Add _PATH_GSHADOW.
230 * sysdeps/unix/sysv/linux/paths.h: Likewise.
231
debafa10
UD
2322009-04-22 Ulrich Drepper <drepper@redhat.com>
233
234 * stdio-common/printf.h: Add missing const to register_printf_modifier.
235 * stdio-common/reg-modifier.c: Likewise.
236
2372009-04-22 Andrew Stubbs <ams@codesourcery.com>
238
239 * sysdeps/sh/sh4/setjmp.S (__sigsetjmp): Adjust JB_SIZE when there
240 is no FPU.
241
0e04c0b5
UD
2422009-04-20 Ulrich Drepper <drepper@redhat.com>
243
d43f10e7 244 [BZ #10086]
1c376f5b
UD
245 * sysdeps/unix/sysv/linux/sys/timex.h: Add definitions from kernel
246 headers up to 2.6.30.
247
0e04c0b5
UD
248 * po/ca.po: Update from translation team.
249
a245eafd
UD
2502009-04-19 Ulrich Drepper <drepper@redhat.com>
251
252 [BZ #10069]
253 * elf/dl-open.c (dl_open_worker): We cannot guarantee that we can load
254 an object that uses static TLS if the TLS modid is higher than the
255 reserve we always allocate. At least for multi-threaded code.
256
0588a9cb
UD
2572009-04-18 Ulrich Drepper <drepper@redhat.com>
258
153aa31b
UD
259 * stdlib/strfmon_l.c (__vstrfmon_l): Don't wrap when computing width.
260 Numerically stable check for valid width.
261
59a7162b
UD
262 * locale/programs/locarchive.c (open_archive): Map the entire file
263 and not just the administrative data.
264 (add_locale): When we find a hash sum match compare the content
265 to be sure.
266
0588a9cb
UD
267 * malloc/malloc.c (malloc_info): Output address space information.
268
17a5b24e
UD
2692009-04-17 Ulrich Drepper <drepper@redhat.com>
270
da2d2fb6
UD
271 * malloc/malloc.c (malloc_info): Also output system memory information.
272
11cad88c
UD
273 * sysdeps/unix/sysv/linux/kernel-features.h: All supported
274 architectures have preadv/pwritev in 2.6.30.
275
571ac26f
UD
276 * sysdeps/posix/preadv.c: Reading of zero bytes is no error.
277 * sysdeps/posix/readv.c: Likewise.
278 Reported by Markus Armbruster <armbru@redhat.com>.
279
17a5b24e
UD
280 * malloc/hooks.c (top_check): Force hook value into register.
281
57ec6442
RM
2822009-04-16 Samuel Thibault <samuel.thibault@ens-lyon.org>
283
284 * elf/rtld.c (dl_main): Really call _dl_sysdep_start_cleanup after all
285 calls to _dl_relocate_object.
286
df77455c
UD
2872009-04-16 Ulrich Drepper <drepper@redhat.com>
288
289 [BZ #9957]
290 * malloc/malloc.c (force_reg): Define.
291 (sYSMALLOc): Load hook variable into variable
292 before test and force into register.
293 (sYSTRIm): Likewise.
294 (public_mALLOc): Force hook value into register.
295 (public_fREe): Likewise.
296 (public_rEALLOc): Likewise.
297 (public_mEMALIGn): Likewise.
298 (public_vALLOc): Likewise.
299 (public_pVALLOc): Likewise.
300 (public_cALLOc): Likewise.
301 (__posix_memalign): Likewise.
302 * malloc/arena.c (ptmalloc_init): Load hook variable into variable
303 before test and force into register.
304 * malloc/hooks.c (top_check): Likewise.
3b055b47 305 (public_sET_STATe): Pretty printing.
df77455c
UD
306
307 * resolv/res_send.c (send_dg): Don't just ignore the result we got
308 in case we only receive one reply in single-request mode.
309
733ca93a
JJ
3102009-04-16 Jakub Jelinek <jakub@redhat.com>
311
312 * elf/dl-open.c (_dl_open): Bump GL(dl_nns) to 1 if no libraries
313 are dlopened in statically linked program even for __LM_ID_CALLER.
314
d0e81f10
UD
3152009-04-16 Ulrich Drepper <drepper@redhat.com>
316
317 * resolv/res_send.c (send_dg): Don't switch into single-request
318 mode if we already are in it.
319
6a3d03ff
UD
3202009-04-15 Ulrich Drepper <drepper@redhat.com>
321
322 * sysdeps/unix/sysv/linux/getsysstats.c (next_line): Make sure there
323 are always at least 4 bytes in the returned line.
324
3252009-04-15 Jakub Jelinek <jakub@redhat.com>
326
327 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Check
328 __libc_use_alloca (8192), if the stack is too small use 512 bytes
329 instead of 8K. Stop searching in /proc/stat after hitting first
330 line not starting with cpu.
331 (next_line): Truncate too long
332 lines at buffer size * 3/4 instead of pretending there were line
333 breaks inside of large lines.
334
ae650a41
UD
3352009-04-14 Ulrich Drepper <drepper@redhat.com>
336
337 * sysdeps/x86_64/mp_clz_tab.c: New file.
338
353f2107
UD
3392009-03-17 Ryan S. Arnold <rsa@us.ibm.com>
340 Ulrich Drepper <drepper@redhat.com>
341
342 * sysdeps/unix/sysv/linux/fallocate.c: Handle old kernel headers.
343 * sysdeps/unix/sysv/linux/fallocate64.c: Likewise.
e775ec11 344 * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c: Likewise.
353f2107 345
fc0c5705
UD
3462009-03-25 Andrew Stubbs <ams@codesourcery.com>
347
348 * sysdeps/sh/libc-tls.c: New file.
349
350 * sysdeps/sh/bits/setjmp.h (__jmp_buf): Give name to structure type.
351
237a8867
RM
3522009-04-14 Roland McGrath <roland@redhat.com>
353
354 * elf/elf.h: Add various missing ARM constants, to match binutils.
355
893a5fd4
UD
3562009-04-14 Ulrich Drepper <drepper@redhat.com>
357
358 Optimizations from GMP.
359 * sysdeps/x86_64/add_n.S: New file.
360 * sysdeps/x86_64/addmul_1.S: New file.
361 * sysdeps/x86_64/lshift.S: New file.
362 * sysdeps/x86_64/mul_1.S: New file.
363 * sysdeps/x86_64/rshift.S: New file.
364 * sysdeps/x86_64/sub_n.S: New file.
365 * sysdeps/x86_64/submul_1.S: New file.
366
e42e88ab
JJ
3672009-04-14 Jakub Jelinek <jakub@redhat.com>
368
369 * sysdeps/powerpc/powerpc32/elf/start.S: Ensure .data is non-empty.
370 * sysdeps/powerpc/powerpc64/elf/start.S: Likewise.
371 * sysdeps/sparc/sparc32/elf/start.S: Likewise.
372 * sysdeps/sparc/sparc64/elf/start.S: Likewise.
373
b8a3bd82
UD
3742009-04-14 Ulrich Drepper <drepper@redhat.com>
375
376 * sysdeps/unix/sysv/linux/kernel-features.h: SH also has
377 preadv/pwritev.
378
84aa52d7
UD
3792009-04-13 Ulrich Drepper <drepper@redhat.com>
380
381 * sysdeps/x86-64/strrchr.S: New file.
382
9d26efa9
UD
3832009-04-10 Ulrich Drepper <drepper@redhat.com>
384
385 * stdio-common/printf.h (struct printf_info): Add user element.
386 New types printf_arginfo_size_function, printf_va_arg_function.
387 Declare register_printf_specifier, register_printf_modifier,
388 register_printf_type.
389 * stdio-common/printf-parse.h (struct printf_spec): Add size element.
390 (union printf_arg): Add pa_user element.
391 Adjust __printf_arginfo_table type.
392 Add __printf_va_arg_table, __printf_modifier_table,
393 __handle_registered_modifier_mb, and __handle_registered_modifier_wc
394 declarations.
395 * stdio-common/printf-parsemb.c: Recognize registered modifiers.
396 If registered arginfo call failed try normal specifier.
397 * stdio-common/printf-prs.c: Pass additional parameter to arginfo
398 function.
399 * stdio-common/Makefile (routines): Add reg-modifier and reg-type.
400 * stdio-common/Versions: Export register_printf_modifier,
401 register_printf_type, and register_printf_specifier for GLIBC_2.10.
402 * stdio-common/reg-modifier.c: New file.
403 * stdio-common/reg-type.c: New file.
404 * stdio-common/reg-printf.c (__register_printf_specifier): New
405 function. Mostly the old __register_printf_function function but
406 uses locking and type of third parameter changed.
407 (__register_printf_function): Implement using
408 __register_printf_specifier.
409 * stdio-common/vfprintf.c (vfprintf): Collect argument sizes in
410 calls to arginfo functions. Allocate enough memory for user-defined
411 types. Call new va_arg functions to get user-defined types.
412 Try installed handlers even for existing format specifiers first.
413
28b2771a
UD
4142009-04-09 Ulrich Drepper <drepper@redhat.com>
415
f140a0d5
UD
416 * sysdeps/x86_64/rawmemchr.S: New file.
417
e9b4d069 418 * stdio-common/vfprintf.c (vfprintf): Slightly more compact code.
1d498daa 419 Simplified code and possible copy problem fixed.
e9b4d069 420
f9fe75e9 421 * sysdeps/unix/sysv/linux/preadv.c: Avoid prototype for static
24030b0f 422 function if it is not defined. Add some necessary casts.
f9fe75e9
UD
423 * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
424
28b2771a
UD
425 * sysdeps/unix/sysv/linux/kernel-features.h: SPARC and IA64 also
426 have preadv/pwritev in 2.6.30.
427
4c8b8cc3
UD
4282009-04-08 Ulrich Drepper <drepper@redhat.com>
429
bb066545
UD
430 * malloc/malloc.c (malloc_info): New function.
431 * malloc/malloc.h: Declare it.
432 * malloc/Versions: Export malloc_info for GLIBC_2.10.
433
0f9c8b48
UD
434 * sysdeps/unix/sysv/linux/preadv64.c (PREAD): Use __libc_pread64
435 to avoid PLT slot.
436
4c8b8cc3
UD
437 * malloc/malloc.c (_int_realloc): Add parameter with old block
438 size. Remove duplicated test. Don't handle mmap'ed blocks here.
439 Adjust all callers.
440 * malloc/hooks.c (realloc_check): Adjust _int_realloc call.
441
ddba0f17
UD
4422009-04-07 Ulrich Drepper <drepper@redhat.com>
443
cd57745b
UD
444 * sysdeps/x86_64/strchrnul.S: New file.
445
3db6c9a8 446 * crypt/Makefile (LDLIBS-crypt.so): Use this variable instead of
cd57745b 447 depending libcrypt on -lfreebl3.
3db6c9a8 448
1a2ec17b
UD
449 * sysdeps/unix/sysv/linux/kernel-features.h: Power also has
450 preadv/pwritev in 2.6.30.
451
bb066545 452 * resolv/nss_dns/dns-host.c (getanswer_r): Use strcasecmp
c6807d38 453 instead of __strcasecmp.
c6807d38 454
ddba0f17 455 * string/stratcliff.c (do_test): Add memchr tests..
481f9eca 456 * wcsmbs/wcsatcliff.c (MEMCHR): Define.
ddba0f17
UD
457 * sysdeps/x86_64/memchr.S: Fix handling of end of buffer after
458 first read quad word.
459
ae061910
UD
4602009-04-06 Ulrich Drepper <drepper@redhat.com>
461
4bcb2658
UD
462 * string/strverscmp.c (__strverscmp): Fix last cleanups.
463 * string/tst-svc.input: Add new test case.
464 * string/tst-svc.expect: Adjust.
465 * string/Makefile: Don't ignore tst-svc error.
466
322e23db
UD
467 * sysdeps/x86_64/memchr.S: New file.
468
ae061910
UD
469 * resolv/resolv.h (RES_SNGLKUP): Define.
470 * resolv/res_init.c (res_setoptions): Recognize single-request option.
471 * resolv/res_send.c (send_dg): If we sent two requests at once and
472 only get one reply before timeout switch to mode where we send the
473 second request only after the first answer has been received.
474
a152f366
UD
4752009-04-05 Ulrich Drepper <drepper@redhat.com>
476
477 * sysdeps/x86_64/strlen.S: Optimize by using SSE2 instructions.
1df6f9d8 478 * sysdeps/x86_64/strchr.S: Likewise.
a152f366 479
2dbe6afe
UD
4802009-04-03 Ulrich Drepper <drepper@redhat.com>
481
c0bac8b0
UD
482 * configure.in: We need to test for the compiler earlier.
483
e109c612
UD
484 * misc/Makefile (routines): Add preadv, preadv64, pwritev, pwritev64.
485 * misc/Versions: Export preadv, preadv64, pwritev, pwritev64 for
486 GLIBC_2.10.
487 * misc/sys/uio.h: Declare preadv, preadv64, pwritev, pwritev64.
488 * sysdeps/unix/sysv/linux/kernel-features.h: Add entries for preadv
489 and pwritev.
490 * misc/preadv.c: New file.
491 * misc/preadv64.c: New file.
492 * misc/pwritev.c: New file.
493 * misc/pwritev64.c: New file.
494 * sysdeps/posx/preadv.c: New file.
495 * sysdeps/posx/preadv64.c: New file.
496 * sysdeps/posx/pwritev.c: New file.
497 * sysdeps/posx/pwritev64.c: New file.
498 * sysdeps/unix/sysv/linux/preadv.c: New file.
499 * sysdeps/unix/sysv/linux/preadv64.c: New file.
500 * sysdeps/unix/sysv/linux/pwritev.c: New file.
501 * sysdeps/unix/sysv/linux/pwritev64.c: New file.
502 * sysdeps/unix/sysv/linux/wordsize-64/preadv64.c: New file.
503 * sysdeps/unix/sysv/linux/wordsize-64/pwritev64.c: New file.
504
7166c77a
UD
505 * sysdeps/unix/sysv/linux/readv.c (__libc_readv): Fix calling of
506 compatibility code.
507 * sysdeps/unix/sysv/linux/writev.c (__libc_writev): Likewise.
508
2dbe6afe
UD
509 * sysdeps/unix/sysv/linux/kernel-features.h: Define
510 __ASSUME_COMPLETE_READV_WRITEV.
511 * sysdeps/unix/sysv/linux/readv.c: No need for userlevel fallback
512 with modern kernels.
513 * sysdeps/unix/sysv/linux/writev.c: Likewise.
514
515 * sysdeps/posix/readv.c: Since read is a cancellation point we have
516 to free a possible malloced buffer in case of cancellation.
517 * sysdeps/posix/writev.c: Likewise for write.
518
ff886b82
UD
5192009-04-02 Ulrich Drepper <drepper@redhat.com>
520
a065c007
UD
521 * sysdeps/unix/sysv/linux/bits/socket.h: Add missing protocol numbers.
522
ff886b82
UD
523 * configure.in: Recognize --enable-nss-crypt.
524 * config.make.in: Add nss-crypt entry.
525 * crypt/Makefile: If nss-crypt==yes, don't build md5.c, sha256.c,
526 sha512.c. Don't run md5test, sha256test, sha512test. Pass -DUSE_NSS
527 and include path for NSS directory to compiler for md5-crypt,
528 sha256-crypt, sha512-crypt. Link libcrypt.so with -lfreebl3.
529 * crypt/md5-crypt.c: If USE_NSS is defined, don't use local hash
530 function implementation, use NSS. Introduce wrappers around the
531 hash function calls. Little code size optimization.
532 * crypt/sha256-crypt.c: Likewise.
533 * crypt/sha512-crypt.c: Likewise.
534 * scripts/check-local-headers.sh: Ignore nss3 directory.
535
536 * configure.in: Rename pic_default to libc_cv_pic_default.
537 * config.make.in: Likewise.
538
1800de36
RM
5392009-04-01 Roland McGrath <roland@redhat.com>
540
541 * elf/elf.h (R_SPARC_GLOB_JMP): New macro.
542 (R_SPARC_GOTDATA_HIX22, R_SPARC_GOTDATA_LOX10): New macros.
543 (R_SPARC_GOTDATA_OP_HIX22, R_SPARC_GOTDATA_OP_LOX10): Likewise.
544 (R_SPARC_GOTDATA_OP, R_SPARC_H34): Likewise.
545 (R_SPARC_SIZE32, R_SPARC_SIZE64): Likewise.
546 (R_SPARC_GNU_VTINHERIT, R_SPARC_GNU_VTENTRY, R_SPARC_REV32): Likewise.
547 (R_SPARC_NUM): Update.
548 From Dave Miller <davem@davemloft.net>.
549
7166c77a 5502009-04-01 Ulrich Drepper <drepper@redhat.com>
3ce976cd
UD
551
552 * sysdeps/unix/sysv/linux/sys/eventfd.h (EFD_SEMAPHORE): Define.
553
20739e54
UD
5542009-03-31 Ulrich Drepper <drepper@redhat.com>
555
22c83193
UD
556 * elf/dl-open.c: Keep track of used name spaces and only iterate over
557 those which are used.
558 * elf/dl-addr.c: Likewise.
559 * elf/dl-caller.c: Likewise.
560 * elf/dl-fini.c: Likewise.
561 * elf/dl-iteratephdr.c: Likewise.
562 * elf/dl-libc.c: Likewise.
563 * elf/dl-load.c: Likewise.
564 * elf/dl-support.c: Likewise.
565 * elf/dl-sym.c: Likewise.
566 * elf/rtld.c: Likewise.
567 * sysdeps/generic/ldsodefs.h: Likewise.
568
20739e54
UD
569 * elf/dl-load.c: Remove support for systems without MAP_ANON.
570 * elf/dl-minimal.c: Likewise.
571 * elf/dl-misc.c: Likewise.
572 * elf/rtld.c: Likewise.
573 * sysdeps/generic/ldsodefs.h: Likewise.
574
db486995
UD
5752009-03-30 Ulrich Drepper <drepper@redhat.com>
576
cb14424e
UD
577 * elf/do-lookup.h (do_lookup_x): Minor optimization and cleanup.
578 Avoid reuse of complex expression.
579
db486995
UD
580 * po/fr.po: Update from translation team.
581
ae8d7b44
UD
5822009-03-16 Ulrich Drepper <drepper@redhat.com>
583
584 * include/dirent.h: Yet more changes to match sort function type
585 change.
586 * sysdeps/unix/sysv/linux/i386/alphasort64.c: Likewise.
587 * sysdeps/unix/sysv/linux/i386/olddirent.h: Likewise.
588 * sysdeps/unix/sysv/linux/i386/versionsort64.c: Likewise.
589
8efb2f1c
UD
5902009-03-16 Thomas Schwinge <tschwinge@gnu.org>
591
592 * dirent/scandir64.c (scandir64): Adjust declaration to type change.
593
d9822dbe
UD
5942009-03-16 Ulrich Drepper <drepper@redhat.com>
595
596 * nscd/connections.c (restart): Try to preserve the process name
597 by reading the /proc/self/exe symlink and using the return name.
598 Patch by Jeff Bastian <jbastian@redhat.com>.
599
71a5bd3e
UD
6002009-03-15 Ulrich Drepper <drepper@redhat.com>
601
2ca285b0
UD
602 [BZ #9733]
603 * elf/dl-load.c (_dl_map_object_from_fd): Only call audit hooks
604 if we are not loading a new audit library.
605 * elf/dl-reloc (_dl_relocate_object): Third parameter is now a bitmask.
606 Only use profiling trampoline for auditing if we are not relocating
607 an audit library.
608 * elf/dl-open.c (dl_open_worker): Adjust _dl_relocate_object call.
609 * elf/rtld.c: Likewise.
610 * sysdeps/generic/ldsodefs.h: Adjust _dl_relocate_object prototype.
611
7e342603
UD
612 * elf/rtld.c (dl_main): Extend help message for --audit option.
613
eee6b143
UD
614 [BZ #9759]
615 * dirent/dirent.h: Adjust prototypes of scandir, scandir64, alphasort,
616 alphasort64, versionsort, and versionsort64 to POSIX 2008.
617 * dirent/alphasort.c: Adjust implementation to type change.
618 * dirent/alphasort64.c: Likewise.
619 * dirent/scandir.c: Likewise.
620 * dirent/versionsort.c: Likewise.
621 * dirent/versionsort64.c: Likewise.
622 * sysdeps/wordsize-64/alphasort.c: Add hack to hide alphasort64
623 declaration.
624 * sysdeps/wordsize-64/versionsort.c: Add hack to hide versionsort64
625 declaration.
626
cd2d01fa
UD
627 [BZ #9880]
628 * inet/inet6_rth.c (inet6_rth_reverse): Compute number of segments
629 correctly. Set segleft member in output as required.
630 Patch partly by Yang Hongyang <yanghy@cn.fujitsu.com>.
631 * inet/tst-inet6_rth.c (do_test): Add tests for inet6_rth_reverse.
632
906dd40d
UD
633 [BZ #9881]
634 * inet/inet6_rth.c (inet6_rth_add): Add some error checking.
635 Patch mostly by Yang Hongyang <yanghy@cn.fujitsu.com>.
636 * inet/Makefile (tests): Add tst-inet6_rth.
637 * inet/tst-inet6_rth.c: New file.
638
71a5bd3e
UD
639 [BZ #5807]
640 * string/strlen.c (strlen): Fix omission in the expression to test
641 for NUL bytes.
642
878b72c5
UD
6432009-03-14 Ulrich Drepper <drepper@redhat.com>
644
fad070ab
UD
645 * crypt/sha256test.c (main): Perform 100,000 'a' test in a second way.
646
a42ad61b
UD
647 * elf/dl-runtime.c (reloc_offset): Define.
648 (reloc_index): Define.
649 (_dl_fixup): Rename reloc_offset parameter to reloc_arg.
650 (_dl_fixup_profile): Likewise. Use reloc_index instead of
651 computing index from reloc_offset.
652 (_dl_call_pltexit): Likewise.
653 * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_resolve): Just pass
654 the relocation index to _dl_fixup.
655 (_dl_runtime_profile): Likewise for _dl_fixup_profile and
656 _dl_call_pltexit.
657 * sysdeps/x86_64/dl-runtime.c: New file.
658
1f7c90a7
UD
659 [BZ #9893]
660 * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix
906dd40d 661 alignment of La_x86_64_regs. Store xmm parameters.
1f7c90a7
UD
662 Patch mostly by Jiri Olsa <olsajiri@gmail.com>.
663
45466462
UD
664 [BZ #9913]
665 * string/strverscmp.c (__strverscmp): Fix case of different digits
666 in fractional part of string.
667 Patch by Jingyu Liu <jyliu@fortinet.com>.
668 * string/Makefile (tests): Add tst-svc2.
669 * string/tst-svc2.c: New file.
670
671 * string/strverscmp.c (__strverscmp): Optimize size of tables.
672
878b72c5
UD
673 * locale/iso-639.def: Add Min Nan.
674
f53713a8
UD
6752009-03-11 Carlos Eduardo Seo <cseo@linux.vnet.ibm.com>
676
878b72c5 677 [BZ #9948]
f53713a8
UD
678 * elf/dl-sysdep.c (_dl_show_auxv): Add support for AT_BASE_PLATFORM.
679
f81ce288
UD
6802009-03-14 Ulrich Drepper <drepper@redhat.com>
681
f53713a8
UD
682 * elf/dl-sysdep.c (auxvars): Compress data structure.
683
f81ce288
UD
684 * sysdeps/i386/dl-machine.h (elf_machine_rel): Implement
685 STT_GNU_IFUNC handling.
686 (elf_machine_rela): Likewise.
687
425ce2ed
UD
6882009-03-13 Ulrich Drepper <drepper@redhat.com>
689
690 * config.h.in (USE_MULTIARCH): Define.
691 * configure.in: Handle --enable-multi-arch.
692 * elf/dl-runtime.c (_dl_fixup): Handle STT_GNU_IFUNC.
693 (_dl_fixup_profile): Likewise.
694 * elf/do-lookup.c (dl_lookup_x): Likewise.
695 * sysdeps/x86_64/dl-machine.h: Handle STT_GNU_IFUNC.
696 * elf/elf.h (STT_GNU_IFUNC): Define.
697 * include/libc-symbols.h (libc_ifunc): Define.
698 * sysdeps/x86_64/cacheinfo.c: If USE_MULTIARCH is defined, use the
699 framework in init-arch.h to get CPUID values.
700 * sysdeps/x86_64/multiarch/Makefile: New file.
701 * sysdeps/x86_64/multiarch/init-arch.c: New file.
702 * sysdeps/x86_64/multiarch/init-arch.h: New file.
703 * sysdeps/x86_64/multiarch/sched_cpucount.c: New file.
704
705 * config.make.in (experimental-malloc): Define.
706 * configure.in: Handle --enable-experimental-malloc.
707 * malloc/Makefile: Handle experimental-malloc flag.
708 * malloc/malloc.c: Implement PER_THREAD and ATOMIC_FASTBINS features.
709 * malloc/arena.c: Likewise.
710 * malloc/hooks.c: Likewise.
711 * malloc/malloc.h: Define M_ARENA_TEST and M_ARENA_MAX.
712
e7f110cd
UD
7132009-03-11 Ulrich Drepper <drepper@redhat.com>
714
715 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Add branch
716 prediction. A few size optimizations.
717
bd82a247
UD
7182009-03-10 Ulrich Drepper <drepper@redhat.com>
719
720 * time/tzset.c: Optimize a bit for size.
721
a99e59d7
UD
7222009-03-10 Jakub Jelinek <jakub@redhat.com>
723
724 * include/stdio.h (fmemopen): Add libc_hidden_proto.
725 * libio/fmemopen.c (fmemopen): Add libc_hidden_def.
726
727 * elf/sprof.c: Avoid warning about multi-line comment.
728
686f8c9d
UD
7292009-03-10 Ulrich Drepper <drepper@redhat.com>
730
731 * time/tzset.c (__tzset_parse_tz): Use correct string when parsing
732 DST name.
733 * time/tst-posixtz.c: Add tests for quoted timezone names.
734
7db0cc42
UD
7352009-03-10 Jakub Jelinek <jakub@redhat.com>
736
737 * posix/unistd.h (_POSIX_VERSION, _POSIX2_VERSION, _POSIX2_C_BIND,
738 _POSIX2_C_DEV, _POSIX2_SW_DEV, _POSIX2_LOCALEDEF): Define to
739 200809L instead of 200112L.
740 (_XOPEN_VERSION): For __USE_XOPEN2K8 define to 700.
741 * posix/tst-sysconf.c (STDVER): Define to 200809L instead of 200112L.
742
eec4b454
UD
743 * stdlib/quick_exit.c (quick_exit): Pass &__quick_exit_funcs
744 instead of __quick_exit_funcs to __run_exit_handlers.
745 * stdlib/at_quick_exit.c (at_quick_exit): Add attribute_hidden.
746 * stdlib/exit.h (__run_exit_handlers): Add noreturn attribute.
747 (__cxa_at_quick_exit): Remove attribute_hidden.
748 * stdlib/exit.c (exit): Pass &__exit_funcs instead of __exit_funcs
749 to __run_exit_handlers.
750 * stdlib/cxa_at_quick_exit.c (__cxa_at_quick_exit): Remove
751 attribute_hidden.
752
d7276cee
UD
7532009-03-10 Ulrich Drepper <drepper@redhat.com>
754
755 * po/id.po: Update from translation team.
756
1454da21
UD
7572009-02-18 Jakub Jelinek <jakub@redhat.com>
758
759 * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S: Use
760 .machine push; .machine "power6" and .machine pop around mtfsf
761 insns outside of _ARCH_PWR6 define.
762 * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S: Likewise.
763 * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S:
764 Likewise.
765 * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S:
766 Likewise.
767 * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c (_SET_DI_FPSCR): Likewise.
768 * sysdeps/powerpc/fpu/fenv_libc.h (fesetenv_register,
769 relax_fenv_state): Likewise.
770
130ca12e
UD
7712009-03-08 Ulrich Drepper <drepper@redhat.com>
772
610e67ed
UD
773 * stdlib/Makefile (routines): Add quick_exit, at_quick_exit, and
774 cxa_at_quick_exit.
775 (static-only-routines): Add at_quick_exit.
776 * stdlib/Versions: Export quick_exit and __cxa_at_quick_exit for
777 GLIBC_2.10.
778 * stdlib/quick_exit.c: New file.
779 * stdlib/at_quick_exit.c: New file.
780 * stdlib/cxa_at_quick_exit.c: New file.
781 * stdlib/cxa_atexit.c (__cxa_atexit): Move body to new function. Call
782 it appropriately.
783 (__internal_atexit): New function.
784 (__new_exitfn): Now takes parameter to point to the list to use.
785 * stdlib/cxa_finalize.c: Remove quick_exit handlers, don't call them.
786 * stdlib/exit.c (__run_exit_handlers): New function. Split from...
787 (exit): ...here. Just call __run_exit_handlers appropriately.
788 * stdlib/exit.h: Declare __quick_exit_funcs, __run_exit_handlers,
789 __internal_atexit, __cxa_at_quick_exit. Adjust __new_exitfn.
790 * stdlib/on_exit.c: Adjust call to __new_exitfn.
791 * stdlib/stdlib.h: Declare at_quick_exit and quick_exit.
792
130ca12e
UD
793 * po/id.po: Update from translation team.
794
9a4f9d1f
UD
7952009-03-07 Ulrich Drepper <drepper@redhat.com>
796
797 * po/ru.po: Update from translation team.
798
6d781c94
UD
7992009-03-04 Ulrich Drepper <drepper@redhat.com>
800
801 * po/nl.po: Update from translation team.
802
e00c5ece
UD
8032009-03-03 Ulrich Drepper <drepper@redhat.com>
804
99eb932f
UD
805 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Declare fallocate{,64}.
806 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
807 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
808 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
809 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
810 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
811 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
812
e00c5ece
UD
813 * po/pl.po: Update from translation team.
814
749f5cc9
UD
8152009-03-02 Ulrich Drepper <drepper@redhat.com>
816
1b994772 817 [BZ #7083]
749f5cc9
UD
818 * sysdeps/unix/sysv/linux/fallocate.c: New file.
819 * sysdeps/unix/sysv/linux/fallocate64.c: New file.
820 * sysdeps/unix/sysv/linux/wordsize-64/fallocate64.c: New file.
821 * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c: New file.
822 * sysdeps/unix/sysv/linux/i386/fallocate64.c: New file.
823 * sysdeps/unix/sysv/linux/i386/fallocate.c: New file.
824 * sysdeps/unix/sysv/linux/Versions: Export fallocate and fallocate64
825 for GLIBC_2.10.
826 * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
827 Add fallocate and fallocate64.
828
829 * io/fcntl.h: Pretty printing.
830
6219e3cc
JJ
8312009-03-02 Richard Guenther <rguenther@suse.de>
832
833 * misc/sys/cdefs.h (__extern_always_inline): Add __artificial__
834 attribute also for non-C99 inline semantics variant.
835
134a9766
UD
8362009-02-12 Carlos Eduardo Seo <cseo@linux.vnet.ibm.com>
837
838 * sysdeps/powerpc/powerpc32/power7/fpu/Implies: New file.
839 * sysdeps/powerpc/powerpc32/power7/Implies: Likewise.
840 * sysdeps/powerpc/powerpc64/power7/fpu/Implies: Likewise.
841 * sysdeps/powerpc/powerpc64/power7/Implies: Likewise.
842 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/fpu/Implies:
843 Likewise.
844 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/fpu/Implies:
845 Likewise.
846
95bc1633
UD
8472009-03-02 Ulrich Drepper <drepper@redhat.com>
848
849 * po/cs.po: Update from translation team.
850
43ea48a5
UD
8512009-02-28 Ulrich Drepper <drepper@redhat.com>
852
853 * po/bg.po: Update from translation team.
854 * po/sv.po: Likewise.
f5faa3b6 855 * po/fi.po: Likewise.
45572c23 856 * po/vi.po: Likewise.
43ea48a5 857
e965d514
RM
8582009-02-27 Roland McGrath <roland@redhat.com>
859
860 * Makeconfig (%.v.i): Depend on Makeconfig.
861 Exclude % lines from initial #-comment removal.
862
56a9651f
UD
8632009-02-27 Ulrich Drepper <drepper@redhat.com>
864
865 * po/ko.po: Update from translation team.
866
682825ce
RM
8672009-02-26 Roland McGrath <roland@redhat.com>
868
869 * shadow/lckpwdf.c (__lckpwdf): Move FLAGS inside block using it,
870 avoids unused warning.
871
a3c37506
UD
8722009-02-26 Andrew Stubbs <ams@codesourcery.com>
873 SUGIOKA Toshinobu <sugioka@itonet.co.jp>
874
875 * sysdeps/unix/sysv/linux/sh/sys/procfs.h: Don't include signal.h,
876 sys/ucontext.h and asm/elf.h. Include sys/user.h.
877 * sysdeps/unix/sysv/linux/sh/sys/user.h: Don't include features.h
878 and asm/user.h. Include asm/ptrace.h.
879 (PTRACE_GETREGS, PTRACE_SETREGS, PTRACE_GETFPREGS,
880 PTRACE_SETFPREGS, PTRACE_GETFDPIC, PTRACE_GETFDPIC_EXEC,
881 PTRACE_GETFDPIC_INTERP, PTRACE_GETDSPREGS, PTRACE_SETDSPREGS):
882 Undefine.
883 (start_thread): Don't undefine.
884 (elf_greg_t, ELF_NGREG, elf_fpregset_t, user_fpu_struct, user):
885 Define.
886
f503060b
UD
8872009-02-26 Ulrich Drepper <drepper@redhat.com>
888
6cbe890a
UD
889 * wctype/wctype.h: The *_l functions are in POSIX 2008.
890 * wcsmbs/wchar.h: mbsnrtowcs, open_wmemstream, wcpcpy, wcpncpy,
891 wcscasecmp, wcsdup, wcsncasecmp, wcsnlen, wcsnrtombs,
892 wcscasecmp_l, wcsncasecmp_l, wcscoll_l, and wcsxfrm_l.
893 * sysdeps/mach/hurd/bits/posix_opt.h: Reset value of macros from
894 200112L to 200809L.
895 * sysdeps/unix/sysv/linux/bits/posix_opt.h: Likewise.
896 * posix/getconf.c (vars): Add _SC_THREAD_ROBUST_PRIO_INHERIT and
897 _SC_THREAD_ROBUST_PRIO_PROTECT entries.
898 * bits/confname.h: Add _SC_THREAD_ROBUST_PRIO_INHERIT and
899 _SC_THREAD_ROBUST_PRIO_PROTECT.
900 * posix/unistd.h: fexecve is in POSIX 2008.
901 * time/time.h: strftime_l is in POSIX 2008.
902 * io/sys/stat.h: futimens is in POSIX 2008.
903 * string/strings.h: strcasecmp_l and strncasecmp_l are in POSIX 2008.
904 * string/string.h: stpcpy, stpncpy, strndup, strnlen, strsignal,
905 strcoll_l, strerror_l, and strxfrm_l are in POSIX 2008.
906 * stdlib/stdlib.h: mkdtemp is in POSIX 2008.
f503060b
UD
907 * libio/stdio.h: dprintf, fmemopen, getdelim, getline,
908 open_memstream, and vdprintf are in POSIX 2008.
909
2e6d6bac
UD
9102009-02-25 Ulrich Drepper <drepper@redhat.com>
911
3e6b0a28 912 * include/features.h: Define macros for XPG7/POSIX 2008.
77db439e
UD
913 * ctype/ctype.h: The *_l functions are in POSIX 2008.
914 * dirent/dirent.h: alphasort, dirfd, scandir, and fdopendir are in
915 POSIX 2008.
1f04d005
UD
916 * locale/langinfo.h: nl_langinfo_l is in POSIX 2008.
917 * locale/xlocale.h: Define locale_t type.
918 * locale/locale.h: duplocale, freelocale, newlocale, uselocale are
919 in POSIX 2008. Don't define locale_t here.
920 * stdlib/monetary.h: strfmon_l is in POSIX 2008.
3e6b0a28
UD
921 * sysdeps/unix/sysv/linux/bits/stat.h: Protect UTIME_NOW and
922 UTIME_OMIT only with __USE_ATFILE.
1f04d005
UD
923 * signal/signal.h: Declare psignal and psiginfo for POSIX 2008.
924 * stdio-common/psiginfo.c: New file.
925 * stdio-common/psiginfo-data.h: New file.
926 * stdio-common/psiginfo-define.h: New file.
927 * stdio-common/Makefile (routines): Add psiginfo.
928 * stdio-common/Versions: Export psiginfo for GLIBC_2.10.
3e6b0a28
UD
929 * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Likewise.
930 * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Likewise.
931 * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
932 * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
933 * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
934 * io/sys/stat.h: Move mknodat definition into same conditional as
935 mknod.
936 * time/sys/time.h: futimesat is not among the functions accepted
937 into the POSIX standard.
938
2e6d6bac
UD
939 * include/features.h: If no feature selection given and we select
940 by default a POSIX mode, also define __USE_POSIX_IMPLICITLY.
941 * posix/Versions: Export __posix_getopt.
942 * posix/getopt.c (_getopt_initialize): Take additional parameter.
943 Use it to alternatively initialize __posixly_correct.
944 (_getopt_internal_r): Take addition parameter. Pass on to
945 _getopt_initialize.
946 (_getopt_internal): Take addition parameter. Pass on to
947 _getopt_internal_r.
948 (getopt): Pass additional zero to _getopt_internal.
949 (__posix_getopt): New function.
950 * posix/getopt.h: Add redirection for getopt.
951 * posix/getopt1.c (getopt_long): Pass additional zero to
952 _getopt_internal.
953 (getopt_long_only): Likewise.
954 (_getopt_long_r): Pass additional zero to _getopt_internal_r.
955 (_getopt_long_only_r): Likewise.
956 * posix/getopt_int.h: Adjust declarations of _getopt_internal and
957 _getopt_internal_r.
958
67108e40
UD
9592009-02-24 Ulrich Drepper <drepper@redhat.com>
960
961 * bits/confname.h: Define _SC_TRACE_EVENT_NAME_MAX, _SC_TRACE_NAME_MAX,
962 _SC_TRACE_SYS_MAX, _SC_TRACE_USER_EVENT_MAX, _SC_XOPEN_STREAMS.
963 * sysdeps/posix/sysconf.c (__sysconf): Handle
964 _SC_TRACE_EVENT_NAME_MAX, _SC_TRACE_NAME_MAX, _SC_TRACE_SYS_MAX,
965 _SC_TRACE_USER_EVENT_MAX, _SC_XOPEN_STREAMS.
966
1cccb96f
RM
9672009-02-24 Roland McGrath <roland@redhat.com>
968
969 [BZ #9895]
970 * README.template: Reworded not to use substituted version number.
971 Renamed to ...
972 * README: ... here (no longer generated).
973 * Makefile (README): Target removed.
974
82780cbe
UD
9752009-02-24 Ulrich Drepper <drepper@redhat.com>
976
5be0a688 977 * sysdeps/unix/sysv/linux/sysconf.c (__sysconf):
77db439e 978 /proc/sys/kernel/rtsig_max doesn't exist anymore, use getrlimit
5be0a688
UD
979 instead.
980
8c4a5f42
UD
981 * io/sys/stat.h: The lstat functions have been mandatory since 2001.
982
82780cbe
UD
983 * time/tzset.c (tzset_internal): Correct parsing of TZ envvar.
984
77c571dd
UD
9852009-02-22 Ulrich Drepper <drepper@redhat.com>
986
987 * po/bg.po: Update from translation team.
988
d82a27f8
JJ
9892009-02-16 Jakub Jelinek <jakub@redhat.com>
990
991 * stdlib/monetary.h: Uglify function parameter names.
992 * sunrpc/rpc/pmap_clnt.h: Likewise.
993 * sunrpc/rpc/svc.h: Likewise.
994 * sunrpc/rpc/xdr.h: Likewise.
995 * sunrpc/rpc/clnt.h: Likewise.
996 * resolv/netdb.h: Likewise.
997 * resolv/arpa/nameser.h: Likewise.
998 * resolv/resolv.h: Likewise.
999 * argp/argp.h: Likewise.
1000 * locale/langinfo.h: Likewise.
1001 * io/sys/stat.h: Likewise.
1002 * posix/spawn.h: Likewise.
1003 * nis/rpcsvc/nislib.h: Likewise.
1004 * malloc/obstack.h: Likewise.
1005 * sysdeps/ia64/bits/link.h: Likewise.
1006 * sysdeps/i386/bits/link.h: Likewise.
1007 * sysdeps/s390/bits/link.h: Likewise.
1008 * sysdeps/powerpc/bits/link.h: Likewise.
1009 * sysdeps/x86_64/bits/link.h: Likewise.
1010 * sysdeps/sparc/bits/link.h: Likewise.
1011 * sysdeps/sh/bits/link.h: Likewise.
1012 * sysdeps/unix/sysv/linux/i386/sys/io.h: Likewise.
1013 * sysdeps/unix/sysv/linux/x86_64/sys/io.h: Likewise.
1014 * sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: Likewise.
1015 * sysdeps/unix/sysv/linux/sys/eventfd.h: Likewise.
1016
58a7457e
JJ
10172008-12-01 Fredrik Unger <fred@tree.se>
1018
1019 * soft-fp/double.h [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_SEMIRAW_D,
1020 FP_UNPACK_SEMIRAW_DP): Use _FP_UNPACK_RAW_1 instead of
1021 _FP_UNPACK_RAW_2, fix up first argument.
1022
f43b4be6
UD
10232009-02-15 Ulrich Drepper <drepper@redhat.com>
1024
1025 * sysdeps/unix/sysv/linux/getsysstats.c (next_line): New function.
1026 (GET_NPROCS_PARSER): Change parameters and use next_line.
1027 (__get_nprocs): Rewrite to not use stdio routines.
1028 * sysdeps/unix/sysv/linux/sparc/getsysstats.c (GET_NPROCS_PARSER):
1029 Change parameters and use next_line.
1030
20e498bd
UD
10312009-02-13 Ulrich Drepper <drepper@redhat.com>
1032
1033 [BZ #5381]
1034 * nscd/nscd.h: Remove definitions and declarations for mem_in_flight.
1035 Change mempool_alloc prototype.
1036 * nscd/mem.c (gc): Don't handle mem_in_flight.
1037 (mempool_alloc): Third parameter now only indicates whether this is the
1038 first call (to allocate data) or not. If it is, get db rdlock.
1039 Release it on error. Don't handle mem_in_flight.
1040 * nscd/aicache.c (addhstaiX): Mark he parameter as const.
1041 Adjust third parameter of mempool_alloc calls.
1042 Nothing to do here in case mempool_alloc fails.
1043 Avoid local variable shadowing parameter. No need to get db rdlock
1044 before calling cache_add.
1045 * nscd/cache.c (cache_add): Adjust call to mempool_alloc. There is
1046 no mem_in_flight array anymore.
1047 * nscd/connections.c: Remove definition and handling of mem_in_flight.
1048 * nscd/grpcache.c (cache_addgr): Adjust third parameter of
1049 mempool_alloc calls. Mark he parameter as const. Nothing to do here
1050 in case mempool_alloc fails. No need to get db rdlock before calling
1051 cache_add.
1052 * nscd/hstcache.c (cache_addhst): Likewise.
1053 * nscd/initgrcache.c (addinitgroupsX): Likewise.
1054 * nscd/servicescache.c (cache_addserv): Likewise.
1055 * nscd/pwdcache.c (cache_addpw): Likewise. Remove some debugging code.
1056
d8111eac
UD
10572009-02-11 Ulrich Drepper <drepper@redhat.com>
1058
1059 * po/lt.po: Update from translation team.
1060
40e2fc8b
UD
10612009-02-10 Ulrich Drepper <drepper@redhat.com>
1062
1063 * elf/dl-load.c (open_verify): In case VALID_ELF_HEADER is
1064 defined, allow additional data to be added using the optional
1065 MORE_ELF_HEADER_DATA macro.
1066 * sysdeps/unix/sysv/linux/ldsodefs.h (VALID_ELF_HEADER,
1067 VALID_ELF_OSABI, VALID_ELF_ABIVERSION, MORE_ELF_HEADER_DATA): Define.
1068
6c03cd11
UD
10692009-02-08 Ulrich Drepper <drepper@redhat.com>
1070
1071 * include/atomic.h: Define catomic_and if not already defined.
1072 * sysdeps/x86_64/bits/atomic.h: Define catomic_and.
1073 * sysdeps/i386/i486/bits/atomic.h: Likewise.
1074
bc16e0c4
UD
10752009-02-07 Ulrich Drepper <drepper@redhat.com>
1076
78ac92ad
UD
1077 * malloc/malloc.c (_int_free): Second argument is now mchunkptr.
1078 Change all callers.
6dd6a580 1079 (_int_realloc): Likewise. Third argument is now padded size
78ac92ad 1080 All _int_* functions are now static.
6dd6a580 1081
78ac92ad
UD
1082 * malloc/hooks.c: Change all callers to _int_free and _int_realloc.
1083 * malloc/arena.c: Likewise.
1084 * include/malloc.h: Remove now unnecessary declarations of the _int_*
1085 functions.
1086
7dddb4bd
UD
1087 * sunrpc/rpc_common.c: We cannot move _null_auth into .rodata that
1088 easily.
1089
bfacf1af
UD
1090 * malloc/malloc.c: Add branch prediction for use of the hooks.
1091
bc16e0c4
UD
1092 * grp/compat-initgroups.c [NOT_IN_libc] (__libc_use_alloca): Define.
1093
26b62243
UD
10942009-02-06 Ulrich Drepper <drepper@redhat.com>
1095
1096 [BZ #7095]
1097 * bits/confname.h: Add SUSv7 macros for getconf environments.
1098 * bits/environments.h: Likewise.
1099 * sysdeps/unix/sysv/linux/i386/bits/environments.h: Likewise.
1100 * sysdeps/unix/sysv/linux/powerpc/bits/environments.h: Likewise.
1101 * sysdeps/unix/sysv/linux/s390/bits/environments.h: Likewise.
1102 * sysdeps/unix/sysv/linux/sparc/bits/environments.h: Likewise.
1103 * sysdeps/unix/sysv/linux/x86_64/bits/environments.h: Likewise.
1104 * posix/confstr.c: Handle SUSv5 and SUSv7 environments.
1105 * posix/getconf.c: Likewise.
1106 * posix/sysconf.c: Likewise.
1107 * sysdeps/posix/sysconf.c: Likewise.
1108 * posix/Makefile (getconf.speclist): Also collect SUSv5 and SUSv7
1109 environments.
1110
3fe4c5b3
UD
11112009-01-16 Petr Baudis <pasky@suse.cz>
1112
1113 [BZ #9753]
1114 * resolv/res_libc.c (__res_maybe_init): Call __res_vinit()
1115 even if we currently have zero nscount.
1116
cbbcaf23
UD
11172009-02-06 Ulrich Drepper <drepper@redhat.com>
1118
1a9dd4e4
UD
1119 [BZ #9781]
1120 * grp/compat-initgroups.c (compat_call): Switch to use malloc when
1121 the input line is too long.
1122
51f8846e
UD
1123 * po/Makefile (libc.pot): Add f_print as function taking c-format
1124 parameter.
1125
cbbcaf23
UD
1126 * debug/xtrace.sh: Unify translatable messages.
1127 * elf/ldd.bash.in: Likewise.
1128 * elf/sprof.c: Likewise.
1129 * locale/programs/locale.c: Likewise.
1130 * malloc/memusage.sh: Likewise.
1131 * nss/getent.c: Likewise.
1132
11332009-02-06 Joseph Myers <joseph@codesourcery.com>
1134
1135 * debug/pcprofiledump.c (print_version,
1136 argp_program_version_hook): New function.
1137 * elf/ldconfig.c (more_help): New function.
1138 (argp): Use it.
1139 * elf/sln.c (usage): New function.
1140 (main): Support --help and --version.
1141 * malloc/memusagestat.c (print_version): New function.
1142 (argp_program_version_hook): New variable.
1143 * nscd/nscd.c (more_help): New function.
1144 (argp): Use it.
1145 * posix/getconf.c (main): Send --version output to stdout.
1146 Support --help.
1147 * sunrpc/rpc_main.c (usage, options_usage): Take STREAM and STATUS
1148 arguments. All callers changed.
1149 (print_version): New function.
1150 (parseargs): Support --help and --version.
1151 * sunrpc/rpcinfo.c (usage): Take STREAM argument. All callers
1152 changed.
1153 (print_version): New function.
1154 (main): Use getopt_long. Support --help and --version.
1155 * sysdeps/unix/sysv/linux/lddlibc4.c (main): Support --help and
1156 --version.
1157
88a3b8f9
UD
11582009-02-06 Ulrich Drepper <drepper@redhat.com>
1159
e2e390fa
UD
1160 * malloc/memusage.c (DEFAULT_BUFFER_SIZE): Change to 32768.
1161 (update_data): Fix handling of wrapping back
c3ab42a8
UD
1162 to the beginning of the buffer.
1163
88a3b8f9
UD
1164 [BZ #9823]
1165 * stdio-common/psignal.c (psignal): Fix test for empty string.
1166
62f63c47
UD
11672009-02-05 Ulrich Drepper <drepper@redhat.com>
1168
4f7408c7
UD
1169 * include/rpc/auth.h: Use libc_hidden_proto for _null_auth.
1170 * sunrpc/rpc_common.c: Add libc_hidden_def for _null_auth. Also
1171 move _null_auth to .rodata.
1172
970aa10f
UD
1173 * time/tzset.c (__tzset_parse_tz): DST offset must also allow hour
1174 value of 24.
1175
52de761a
UD
1176 * intl/dcigettext.c (DCIGETTEXT): Avoid some code duplication.
1177
62f63c47
UD
1178 * sysdeps/unix/opendir.c (__alloc_dir): We have a lot more memory
1179 today than when the original code was written. Use larger
1180 buffers. This also makes it unnecessary to have stat information,
1181 if this causes extra efforts.
1182 (__opendir): In case O_DIRECTORY works, don't call fstat just for
1183 __alloc_dir.
1184
0899b889
UD
11852009-02-03 Andrew Stubbs <ams@codesourcery.com>
1186
1187 * sysdeps/sh/sh4/dl-trampoline.S: Only set HAVE_FPU if __SH_FPU_ANY__
1188 is set.
1189 * sysdeps/sh/sh4/setjmp.S: Support SH4-NOFPU.
1190 * sysdeps/sh/sh4/__longjmp.S: Likewise.
1191 * sysdeps/unix/sysv/linux/sh/sh4/getcontext.S: Likewise.
1192 * sysdeps/unix/sysv/linux/sh/sh4/setcontext.S: Likewise.
1193 * sysdeps/unix/sysv/linux/sh/sh4/swapcontext.S: Likewise.
1194 * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Likewise.
1195
22cc3f75
UD
11962009-02-04 Ulrich Drepper <drepper@redhat.com>
1197
1198 * po/ru.po: Update from translation team.
1199
a71433e7
UD
12002008-11-17 Nathan Sidwell <nathan@codesourcery.com>
1201
1202 * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (struct sigevent):
1203 Add _tid slot to maintain consistency with kernel.
1204
82f2e9c6 12052009-02-04 Ulrich Drepper <drepper@redhat.com>
3a2e9947 1206
82f2e9c6
UD
1207 * libio/wfileops.c (_IO_wfile_underflow): Fix handling of
1208 incomplete characters at end of input buffer.
1209 * libio/Makefile (tests): Add tst-fgetwc.
1210 * libio/tst-fgetwc.c: New file.
1211 * libio/tst-fgetwc.input: New file.
3a2e9947 1212
ba022c06
UD
12132009-02-02 Andrew Stubbs <ams@codesourcery.com>
1214
1215 * sysdeps/unix/sysv/linux/sh/Makefile (libm.so-no-z-defs): Define.
1216
1b14353e
UD
12172009-02-02 Ulrich Drepper <drepper@redhat.com>
1218
1219 [BZ #9793]
1220 * iconv/gconv_trans.c (__gconv_transliterate): Don't change
1221 *OUTBUFSTART unless the whole output fit into the buffer.
1222 * iconv/Makefile (tests): Add tst-iconv4.
1223 * iconv/tst-iconv4.c: New file.
1224
ebc22416
UD
12252009-02-01 Ulrich Drepper <drepper@redhat.com>
1226
1227 * sysdeps/x86_64/cacheinfo.c (intel_02_known): Add new descriptors.
1228 * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
1229
7c8a6732
UD
12302009-01-29 Andrew Stubbs <ams@codesourcery.com>
1231
1232 * elf/Makefile (ld.so): Adjust the sed script to insert _begin in to
1233 newer linker scripts.
1234
43149780
UD
12352009-01-30 Ulrich Drepper <drepper@redhat.com>
1236
1237 [BZ #7040]
1238 * sysdeps/unix/sysv/linux/sys/inotify.h: Second parameter of
1239 inotify_rm_watch should have type int.
1240
bd4ace0b
UD
12412009-01-06 Steven Munroe <sjmunroe@us.ibm.com>
1242
1243 * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S (__longjmp):
1244 Make aligned_restore_vmx a local symbol.
1245 * sysdeps/powerpc/powerpc64/__longjmp-common.S (__longjmp):
1246 Likewise.
1247
430902da
AJ
12482009-01-30 Andreas Jaeger <aj@suse.de>
1249
1250 * sysdeps/unix/sysv/linux/bits/shm.h (SHM_EXEC): Define.
1251 * sysdeps/unix/sysv/linux/ia64/bits/shm.h (SHM_EXEC): Define.
1252 * sysdeps/unix/sysv/linux/powerpc/bits/shm.h (SHM_EXEC): Define.
1253 * sysdeps/unix/sysv/linux/s390/bits/shm.h (SHM_EXEC): Define.
1254 * sysdeps/unix/sysv/linux/sh/bits/shm.h (SHM_EXEC): Define.
1255 * sysdeps/unix/sysv/linux/sparc/bits/shm.h (SHM_EXEC): Define.
1256 * sysdeps/unix/sysv/linux/x86_64/bits/shm.h (SHM_EXEC): Define.
1257
b7219e53
UD
12582009-01-11 Ryan S. Arnold <rsa@us.ibm.com>
1259
1260 [BZ #9726]
1261 * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c (_SET_DI_FPSCR,
1262 _SET_SI_FPSCR): Clobber fp0 to prevent erroneous test-case passes.
1263
12642009-01-08 Ryan S. Arnold <rsa@us.ibm.com>
1265
1266 [BZ #9726]
1267 * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S
1268 (__CONTEXT_FUNC_NAME): Fix mtfsf to use fp31 instead of fp0.
1269 * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S
1270 (__CONTEXT_FUNC_NAME): Fix mtfsf to use fp31 instead of fp0.
1271
a3bd2846
UD
12722009-01-11 Thomas Schwinge <tschwinge@gnu.org>
1273
1274 * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Use
1275 memcpy instead of memcmp.
1276 (_dl_setup_pointer_guard): Likewise.
1277
1fdd89a7
UD
12782009-01-30 Ulrich Drepper <drepper@redhat.com>
1279
1280 * malloc/malloc.c (sYSMALLOc): Don't use assert when detecting
1281 manipulated brk, use malloc_printerr.
1282 * misc/sbrk.c (__sbrk): Better error handling for nonsense
1283 requests.
1284
8585cb74
UD
12852009-01-30 Jakub Jelinek <jakub@redhat.com>
1286
1287 * string/string.h (memchr, strchr, strrchr, strpbrk, strstr, index,
1288 rindex): For C++ add inlines so that they can be recognized as
1289 builtins.
1290 * string/strings.h: Define correct C++ prototypes for gcc 4.4.
1291
d8387c7b
UD
12922009-01-29 Ulrich Drepper <drepper@redhat.com>
1293 Jakub Jelinek <jakub@redhat.com>
1294
cdf77dd8
UD
1295 * string/string.h: Define correct C++ prototypes for gcc 4.4.
1296 * wcsmbs/wchar.h: Likewise.
d8387c7b 1297
647925b2
UD
12982009-01-29 Ulrich Drepper <drepper@redhat.com>
1299
1300 * sysdeps/i386/stackinfo.h (stackinfo_get_sp): Define.
1301 (stackinfo_sub_sp): Define.
1302
5627534a
UD
13032009-01-28 Ulrich Drepper <drepper@redhat.com>
1304
fd537e53
UD
1305 [BZ #9750]
1306 * nscd/mem.c (gc): Use alloca_count to get the real stack usage.
1307 * include/alloca.h (alloca_account): Define.
1308 * sysdeps/x86_64/stackinfo.h (stackinfo_get_sp): Define.
1309 (stackinfo_sub_sp): Define.
1310
00f5df0e
UD
1311 * nscd/connections.c (nscd_init): If database file access fails
1312 check whether this is due to permission problems and bail in that
1313 case.
31d322a2 1314
5627534a
UD
1315 [BZ #9741]
1316 * nscd/mem.c (gc): Fix assignment of he_data in case malloc is used.
1317 Reported by Jun'ichi Nomura <j-nomura@ce.jp.nec.com>.
1318
a7bd183f
UD
13192009-01-14 Kaz Kojima <kkojima@rr.iij4u.or.jp>
1320
1321 * sysdeps/unix/sysv/linux/sh/sysdep.h (INTERNAL_SYSCALL):
1322 Add "t" to clobber list.
1323 (INTERNAL_SYSCALL_NCS): Likewise.
1324
1dd75769
UD
13252009-01-28 Ulrich Drepper <drepper@redhat.com>
1326
1327 * nss/getent.c (print_networks): Don't print comma between aliases.
1328
25e84177
UD
13292009-01-23 Ulrich Drepper <drepper@redhat.com>
1330
1331 * sysdeps/unix/sysv/linux/tst-clone.c (do_test): Avoid warning.
1332
1333 * misc/hsearch_r.c (hcreate_r): We need at least three elements in
1334 the hash table.
1335 * misc/Makefile (tests): Add bug-hsearch1.
1336 * misc/bug-hsearch1.c: New file.
1337
0699a0ca
RM
13382009-01-22 Roland McGrath <roland@redhat.com>
1339
1340 * Makeconfig (%.v.i): Strip trailing # comments,
1341 not only whole-line comments.
1342
965cb60a
UD
13432009-01-10 Ulrich Drepper <drepper@redhat.com>
1344
1345 * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Take
1346 one parameter. If non-NULL use it to initialize return value.
1347 (_dl_setup_pointer_guard): New function.
1348 * sysdeps/unix/sysv/linux/dl-osinfo.h: Likewise.
1349 * sysdeps/generic/ldsodefs.h: Declare _dl_random.
1350 * elf/rtld.c (security_init): Pass _dl_random to
1351 _dl_setup_stack_chk_guard. Call _dl_setup_pointer_guard to initialize
1352 pointer_chk_guard.
1353 * elf/dl-sysdep.c (_dl_random): New variable.
1354 (_dl_sysdep_start): Handle AT_RANDOM.
1355 (_dl_show_auxv): Likewise.
1356 * elf/dl-support.c (_dl_random): New variable.
1357 (_dl_aux_init): Handle AT_RANDOM.
1358 * csu/libc-start.c [!SHARED] (libc_start_main): Pass _dl_random
1359 to _dl_setup_stack_chk_guard.
1360
1361 * elf/elf.h (AT_RANDOM): Define AT_BASE_PLATFORM and AT_RANDOM.
1362
8be96dd1
RM
13632009-01-10 Roland McGrath <roland@redhat.com>
1364
1365 * nscd/nscd.c (parse_opt): Use argp_error for bad -i argument.
1366
157cd5ac
UD
13672009-01-08 Ulrich Drepper <drepper@redhat.com>
1368
9b1c750e
UD
1369 * sysdeps/i386/fpu/libm-test-ulps: Adjust expm1 errors.
1370
157cd5ac
UD
1371 [BZ #9706]
1372 * nss/nss_files/files-parse.c (strtou32): New function.
1373 (INT_FIELD): Use strotu32 instead of strtoul to unify behavior
1374 across 32-bit and 64-bit platforms.
1375 (INT_FIELD_MAYBE_NULL): Likewise.
1376
960af8c2
JJ
13772009-01-08 Jakub Jelinek <jakub@redhat.com>
1378
1379 [BZ #9720]
1380 * sysdeps/unix/sysv/linux/bits/resource.h (enum __rusage_who): Avoid
1381 comma after RUSAGE_CHILDREN if not -D_GNU_SOURCE.
1382 * sysdeps/unix/sysv/linux/sparc/bits/resource.h (enum __rusage_who):
1383 Likewise.
1384
76c7f2cd
UD
13852009-01-05 Paolo Bonzini <bonzini@gnu.org>
1386
16c124f7 1387 [BZ #697]
76c7f2cd
UD
1388 * posix/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
1389 being NULL also if there are no backreferences.
1390 * posix/rxspencer/tests: Add testcases.
1391
bdb56bac
UD
13922009-01-04 Paolo Bonzini <bonzini@gnu.org>
1393
16c124f7 1394 [BZ #9697]
bdb56bac
UD
1395 * posix/bug-regex17.c: Add testcases.
1396 * posix/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
1397 handling.
1398
0480c901
UD
13992009-01-05 Martin Schwidefsky <schwidefsky@de.ibm.com>
1400
1401 * sysdeps/unix/sysv/linux/s390/bits/libc-vdso.h: New file.
1402 * sysdeps/unix/sysv/linux/s390/gettimeofday.c: New file.
1403 * sysdeps/unix/sysv/linux/s390/init-first.c: New file.
1404 * sysdeps/unix/sysv/linux/s390/Makefile (sysdep_routines): Add dl-vdso
1405 for elf subdir.
1406 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h (INLINE_VSYSCALL,
1407 INTERNAL_VSYSCALL, INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK,
1408 INTERNAL_SYSCALL_NCS, HAVE_CLOCK_GETRES_VSYSCALL and
1409 HAVE_CLOCK_GETTIME_VSYSCALL: Define.
1410 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
1411 * sysdeps/unix/sysv/linux/s390/Versions: New file.
1412
b3918c7d
UD
14132008-12-31 Paolo Bonzini <bonzini@gnu.org>
1414
1415 * posix/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
1416 * posix/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
1417 re_string_skip_chars, re_string_reconstruct): Likewise.
1418 * posix/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
1419
df9293cb
UD
14202008-12-31 Rafael Avila de Espindola <espindola@google.com>
1421
1422 * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr2_r): Check and
1423 adjust the buffer alignment.
1424
c90c1e1c
RM
14252009-01-07 Samuel Thibault <samuel.thibault@ens-lyon.org>
1426
1427 * sysdeps/mach/hurd/Makefile (sysdep_headers) [subdir=socket]:
1428 Add net/ethernet.h net/if_arp.h net/if_ether.h net/if_ppp.h
1429 net/route.h.
1430
1431 * hurd/report-wait.c (describe_number): Use __stpcpy to prepend
1432 flavor to description only when flavor is not NULL.
1433
1434 * hurd/hurdsig.c (signal_allowed): Unlock _hurd_dtable_lock
1435 mutex after SIGIO/SIGURG lookup loop.
1436
5aff6fdf
RM
14372009-01-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
1438
1439 * bits/resource.h (PRIO_PROCESS, PRIO_PGRP, PRIO_USER): Add macros.
1440
b2bcd249
UD
14412009-01-03 Ulrich Drepper <drepper@redhat.com>
1442
1443 * sysdeps/unix/sysv/linux/i386/sysdep.h: Describe 6th argument
1444 handling.
1445
d36ad871
UD
14462009-01-02 Ulrich Drepper <drepper@redhat.com>
1447
ebb2788e
UD
1448 * sysdeps/unix/sysv/linux/kernel-features.h
1449 (__ASSUME_FUTEX_CLOCK_REALTIME): Define.
1450
72098116
UD
1451 * wcsmbs/wcsnrtombs.c (__wcsnrtombs): Create temporary state object
1452 if no output is written.
1453
623d0bf5
UD
1454 * version.h: Bump to 2.10 development.
1455
d36ad871
UD
1456 * posix/getconf.c: Update copyright year.
1457 * nss/getent.c: Likewise.
1458 * iconv/iconvconfig.c: Likewise.
1459 * iconv/iconv_prog.c: Likewise.
1460 * elf/ldconfig.c: Likewise.
1461 * catgets/gencat.c: Likewise.
1462 * csu/version.c: Likewise.
1463 * elf/ldd.bash.in: Likewise.
1464 * elf/sprof.c (print_version): Likewise.
1465 * locale/programs/locale.c: Likewise.
1466 * locale/programs/localedef.c: Likewise.
1467 * nscd/nscd.c (print_version): Likewise.
1468 * debug/xtrace.sh: Likewise.
1469 * malloc/memusage.sh: Likewise.
1470 * malloc/mtrace.pl: Likewise.
1471 * debug/catchsegv.sh: Likewise.
1472
25df09ab
UD
14732008-12-29 Mike Frysinger <vapier@gentoo.org>
1474
1475 * iconvdata/Makefile (iconv-rules): Use LC_ALL=C when running awk
1476 script.
1477
16b7dc27
UD
14782008-12-29 Ulrich Drepper <drepper@redhat.com>
1479
bfbbc63f
UD
1480 * sysdeps/posix/getaddrinfo.c (gaih_inet): When the
1481 gethostbyname4_r function call succeeded, just leave the loop.
1482
0f2ae55c
UD
1483 [BZ #9694]
1484 * wcsmbs/wchar.h: Move undefs for local __need_* constants to the
1485 very end.
5703f472
UD
1486 * wctype/wctype.h: Get wint_t definition directly from <stddef.h>.
1487 * wctype/Makefile (tests): Add bug-wctypeh.
1488 * wctype/bug-wctypeh.c: New file.
0f2ae55c 1489
50e481ce
UD
1490 * nscd/nscd_gethst_r.c (nscd_gethst_r): Don't use nscd if
1491 LOCALDOMAIN is defined.
1492 * nscd/nscd_getai.c (__nscd_getai): Likewise.
1493
217d45cd
UD
1494 * sysdeps/x86_64/bits/select.h: New file.
1495
16b7dc27
UD
1496 * resolv/res_init.c (__res_vinit): Count all servers in statp->nscount.
1497
bf93cd3b
UD
14982008-12-21 Bruno Haible <bruno@clisp.org>
1499
1500 [BZ #9677]
1501 * wcsmbs/mbsnrtowcs.c (__mbsnrtowcs): Create temporary state object
1502 if no output is written.
1503
49159e12
UD
15042008-12-13 Klaus Dittrich <kladit@arcor.de>
1505
1506 * login/utmp_file.c (pututline_file): Replace call to dup2 with
1507 libc internal symbol __dup2 to avoid access through the PLT.
1508
d4f0720b
UD
15092008-12-08 Ulrich Drepper <drepper@redhat.com>
1510
135460f4
UD
1511 [BZ #6545]
1512 * sysdeps/unix/sysv/linux/bits/socket.h (SCM_CREDENTIALS): Make
1513 available only for __USE_GNU.
1514
ed0da352
UD
1515 * inet/Makefile (tests): Add tst-getni2.
1516 * inet/tst-getni2.c: New file.
1517
d4f0720b
UD
1518 [BZ #7080]
1519 * inet/getnameinfo.c (getnameinfo): Check for output buffers being
1520 NULL when NI_NAMEREQD is set.
1521 Patch mostly by Yang Hongyang <yanghy@cn.fujitsu.com>.
1522 * inet/Makefile (tests): Add tst-getni1.
1523 * inet/tst-getni1.c: New file.
1524
cd72adeb
UD
15252008-12-03 Petr Baudis <pasky@suse.cz>
1526
1527 [BZ #7067]
1528 * nscd/connections.c (invalidate_cache): Use prune_run_lock
1529 instead of prune_lock.
1530 (nscd_run_prune): Before calling prune_cache, take prune_run_lock.
1531 * nscd/nscd.h (database_dyn): Add prune_run_cache.
1532
e87946cc
UD
15332008-12-07 Ulrich Drepper <drepper@redhat.com>
1534
200da00a
UD
1535 * resolv/res_send.c (send_dg): Use correct guards for SOCK_CLOEXEC
1536 use.
1537
1538 * sysdeps/unix/sysv/linux/kernel-features.h: Fix typo in accept4
1539 handling.
1540
905ef0da
UD
1541 * resolv/res_init.c (__res_vinit): Always assign to statp->nscount
1542 after reading name server list.
1543
71053765 1544 [BZ #7058]
e87946cc
UD
1545 * nis/nss_nis/nis-hosts.c (_nss_nis_gethostbyname4_r): Fix memory
1546 handling for host name aliases.
1547
d43b8bdd
JJ
15482008-11-24 Arkadiusz Miśkiewicz <arekm@maven.pl>
1549
1550 * sysdeps/i386/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Use LOAD_PIC_REG
1551 instead of doing things manually.
1552
15532008-11-26 Chris Steel <chris.steel.lnx@googlemail.com>
1554
1555 * posix/regex_internal.h (build_wcs_upper_buffer):
1556 Return type is reg_error_t.
1557
25a34eb7
UD
15582008-12-05 Ulrich Drepper <drepper@redhat.com>
1559
f3721ab2
UD
1560 * posix/globtest.sh: Use mktemp to create temporary file and
1561 directory.
1562
25a34eb7
UD
1563 * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_SET_S): Handle large
1564 sets correctly.
1565 (__CPU_CLR_S): Likewise.
1566 (__CPU_ISSET_S): Likewise.
1567
8680179f
UD
15682008-12-05 Joseph Myers <joseph@codesourcery.com>
1569 Ulrich Drepper <drepper@redhat.com>
1570
1571 * scripts/firstversion.awk: Use custom comparison function to compare
1572 version numbers.
1573 * scripts/versions.awk: Use sort invocation which can handle
1574 multi-digit sub-version numbers.
1575
72d50908
UD
15762008-12-04 Ulrich Drepper <drepper@redhat.com>
1577
1578 * locale/programs/ld-address.c (DEFINE_LANGUAGE_CODE2): Define.
1579 * locale/iso-639.def: Add Chhattisgarhi entry.
1580
f93fc0b7
UD
15812008-12-02 Ulrich Drepper <drepper@redhat.com>
1582
da5ac135
UD
1583 * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname3_r): Recognize
1584 ESRCH return value.
1585 (_nss_dns_gethostbyname4_r): Likewise.
1586 * resolv/res_init.c (__res_vinit): Initialize nscount to zero.
1587 * sysdeps/posix/getaddrinfo.c (gaih_inet): In case we use
1588 gethostbyname4_r, we don't have a separate IPv6 status, so copy
1589 the no_data variable.
1590
6f5c3117
UD
1591 * resolv/res_init.c (__res_vinit): Fill in IPv4 name server
1592 information at the correct index.
1593
f93fc0b7
UD
1594 * socket/sys/socket.h: Declare accept4.
1595 * socket/accept4.c: New file.
1596 * sysdeps/unix/sysv/linux/accept4.c: New file.
1597 * sysdeps/unix/sysv/linux/i386/accept4.S: New file.
1598 * socket/Makefile (routines): Add accept4.
1599 * socket/Versions: Export accept4 with version GLIBC_2.10.
1600 * socket/paccept.c: Removed.
1601 * sysdeps/unix/sysv/linux/paccept.c: Removed.
1602 * sysdeps/unix/sysv/linux/i386/paccept.S: Removed.
1603 * Versions.def: Define GLIBC_2.10 for libc.
1604 * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_ACCEPT4.
1605
1606 * nscd/connections.c: Use accept4.
1607
1608 * sysdeps/unix/sysv/linux/i386/socket.S: Fix comment.
1609
1fa7ae05
UD
16102008-12-01 Ulrich Drepper <drepper@redhat.com>
1611
9744268c
UD
1612 * resolv/res_send.c (send_dg): Create sockets with non-blocking
1613 flag already set.
1614
1fa7ae05
UD
1615 * stdlib/setenv.c (unsetenv): Don't search environment if it does
1616 not exist.
30c06371
UD
1617 * stdlib/Makefile (tests): Add tst-unsetenv1.
1618 * stdlib/tst-unsetenv1.c: New file.
1fa7ae05 1619
37a6a271
UD
16202008-11-29 Ulrich Drepper <drepper@redhat.com>
1621
1622 * login/utmp_file.c (file_writable): New variable.
1623 (setutent_file): Don't try to open file for writing.
1624 (pututline_file): Before writing, make descriptor writable if
1625 necessary.
1626
ca4dc0fe
UD
16272008-11-26 Ulrich Drepper <drepper@redhat.com>
1628
be4607eb
UD
1629 * sysdeps/posix/getaddrinfo.c (getaddrinfo): Only restrict search
1630 to IPv4 or IPv6 if an interface has been found.
ca4dc0fe 1631
01a74645
RM
16322008-11-26 Roland McGrath <roland@redhat.com>
1633
24fd0a5b
RM
1634 * sysdeps/unix/sysv/linux/alpha/ipc_priv.h: Renamed to ...
1635 * sysdeps/unix/sysv/linux/powerpc/ipc_priv.h: ... here.
1636
1637 * sysdeps/unix/sysv/linux/alpha/wordexp.c: Renamed to ...
1638 * sysdeps/unix/sysv/linux/ia64/wordexp.c: ... here.
1639 * sysdeps/unix/sysv/linux/sparc/sparc64/wordexp.c: Change #include.
1640
01a74645
RM
1641 * elf/elf.h (NT_386_IOPERM): New macro.
1642 (NT_PPC_VSX): New macro.
1643
c0439b95
RM
16442008-11-25 Roland McGrath <roland@redhat.com>
1645
1646 * sysdeps/alpha, sysdeps/unix/bsd/osf/alpha,
1647 sysdeps/unix/bsd/Attic/osf1/alpha, sysdeps/unix/sysv/linux/alpha,
1648 sysdeps/unix/sysv/linux/alpha/alpha, sysdeps/unix/alpha,
1649 sysdeps/mach/alpha, sysdeps/mach/hurd/alpha:
1650 Subdirectories moved to ports repository.
1651 * configure.in (base_machine): Remove alpha case.
1652
d3dc523b
RM
16532008-11-25 Thomas Schwinge <tschwinge@gnu.org>
1654
1655 * sysdeps/mach/strerror_l.c: New file.
1656
edba7a54
UD
16572008-11-13 Ryan S. Arnold <rsa@us.ibm.com>
1658
1659 [BZ #6411]
1660 * sysdeps/powerpc/fpu/Makefile: Added test case tst-setcontext-fpscr.
1661 * sysdeps/powerpc/fpu/feholdexcpt.c (_FPU_MASK_ALL): Define to replace
1662 magic numbers.
1663 * sysdeps/powerpc/fpu/fenv_libc.h (fesetenv_register): Dynamically
1664 choose mtfsf insn based on PPC_FEATURE_HAS_DFP.
1665 (relax_fenv_state): Same as above.
1666 (FPSCR_29): Reserve bit in ISA 2.05.
1667 (FPSCR_NI): Provide define for compat.
1668 * sysdeps/powerpc/fpu/fesetenv.c (_FPU_MASK_ALL): Define to replace
1669 magic numbers.
1670 * sysdeps/powerpc/fpu/feupdateenv.c (_FPU_MASK_ALL): Define to replace
1671 magic numbers.
1672 * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c: New file. Test case to
1673 test setcontext and swapcontext with dynamic 64-bit FPSCR detection.
1674 * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S (__longjmp): Adjust
1675 access to hwcap to account for hwcap size increase to uint64_t.
1676 * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S (__sigsetjmp ):
1677 Likewise.
1678 * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext-common.S
1679 (*setcontext): Likewise.
1680 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/setcontext.S:
1681 New file.
1682 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/swapcontext.S:
1683 New file.
1684 * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S
1685 (*setcontext): dynamically select mtfsf insn based on
1686 PPC_FEATURE_HAS_DFP. Adjust access to hwcap to account for hwcap size
1687 increase to uint64_t.
1688 * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S
1689 (*swapcontext): dynamically select mtfsf insn based on
1690 PPC_FEATURE_HAS_DFP. Adjust access to hwcap to account for hwcap size
1691 increase to uint64_t.
1692 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/setcontext.S:
1693 New file.
1694 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/swapcontext.S:
1695 New file.
1696 * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S
1697 (*setcontext): dynamically select mtfsf insn based on
1698 PPC_FEATURE_HAS_DFP.
1699 * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S
1700 (*swapcontext): dynamically select mtfsf insn based on
1701 PPC_FEATURE_HAS_DFP.
1702
ec297962
UD
17032008-11-13 Ulrich Drepper <drepper@redhat.com>
1704
b5449f8a 1705 * version.h: Bump for 2.9 release.
f52bb4d7 1706 * include/features.h (__GLIBC_MINOR__): Bump to 9.
b5449f8a 1707
ec297962
UD
1708 [BZ #7029]
1709 * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_ALLOC_SIZE):
1710 Multiply with sizeof of __cpu_mask, not 8 unconditionally after
1711 all the rounding.
1712
3cac8b75
UD
17132008-11-11 Ulrich Drepper <drepper@redhat.com>
1714
0e54a725 1715 [BZ #7009]
3cac8b75
UD
1716 * resolv/nss_dns/dns-host.c (gaih_getanswer_slice): Don't abort for
1717 unknown request types for now.
1718
58a4b51a
RM
17192008-11-11 Roland McGrath <roland@redhat.com>
1720
1721 * sysdeps/x86_64/configure: New file.
1722
1723 * configure.in: Add AC_SUBST(libc_cv_cpp_asm_debuginfo).
1724 * configure: Regenerated.
1725
01bd5e96
JJ
17262008-11-03 Martin Schwidefsky <schwidefsky@de.ibm.com>
1727
1728 * sysdeps/s390/s390-64/dl-trampoline.S (_dl_runtime_profile): Use the
1729 correct instruction to remove the stack frame.
1730
a9069550
JJ
17312008-11-03 Michael Matz <matz@suse.de>
1732
1733 * sysdeps/s390/bits/atomic.h (__arch_compare_and_exchange_val_32_acq,
1734 __arch_compare_and_exchange_val_64_acq): Add "memory" clobber.
1735
4b23f9bd
JJ
17362008-11-07 Jakub Jelinek <jakub@redhat.com>
1737
09f66a4f
JJ
1738 * include/stdio.h (__builtin_fwrite, __builtin_fwrite_unlocked):
1739 Remove.
1740
4b23f9bd
JJ
1741 * bits/libc-tsd.h (__libc_tsd_define, __libc_tsd_address,
1742 __libc_tsd_get, __libc_tsd_set): Add TYPE argument, use it as the type
1743 of the thread variable instead of void *.
1744 * sysdeps/mach/hurd/bits/libc-tsd.h (__libc_tsd_define,
1745 __libc_tsd_address, __libc_tsd_get, __libc_tsd_set): Likewise.
1746 * include/ctype.h (CTYPE_B, CTYPE_TOUPPER, CTYPE_TOLOWER): Adjust
1747 __libc_tsd_define arguments.
1748 (__ctype_b_loc, __ctype_toupper_loc, __ctype_tolower_loc): Adjust
1749 __libc_tsd_address arguments. Remove union hack.
1750 * include/rpc/rpc.h (RPC_VARS): Adjust __libc_tsd_define arguments.
1751 * sunrpc/rpc_thread.c (RPC_VARS): Likewise.
1752 (__rpc_thread_destroy, rpc_thread_multi, __rpc_thread_variables):
1753 Adjust __libc_tsd_{set,get} arguments.
1754 * ctype/ctype-info.c (CTYPE_B, CTYPE_TOUPPER, CTYPE_TOLOWER): Adjust
1755 __libc_tsd_define arguments.
1756 * locale/uselocale.c (__uselocale): Adjust __libc_tsd_{set,get}
1757 arguments.
1758 * locale/lc-ctype.c (_nl_postload_ctype): Likewise.
1759 * locale/global-locale.c (__libc_tsd_LOCALE): Adjust type.
1760 (LOCALE): Adjust __libc_tsd_define arguments.
1761 * locale/localeinfo.h (_NL_CURRENT_LOCALE): Adjust __libc_tsd_get
1762 arguments.
1763 (LOCALE): Adjust __libc_tsd_define arguments.
1764 * sysdeps/mach/hurd/malloc-machine.h (MALLOC): Adjust __libc_tsd_define
1765 arguments.
1766 (tsd_setspecific, tsd_getspecific): Adjust __libc_tsd_{set,get}
1767 arguments.
1768
486bdb88
UD
17692008-11-02 Ulrich Drepper <drepper@redhat.com>
1770
1771 * malloc/malloc.c (public_rEALLOc): When new arena is used, copy
1772 really all bytes. Patch by Denys Vlasenko <dvlasenk@redhat.com>.
1773
64647f9a
UD
17742008-11-01 Ulrich Drepper <drepper@redhat.com>
1775
1776 [BZ #6966]
1777 * misc/hsearch_r.c (hsearch_r): Fix secondary hash function.
1778
acd44dbc
UD
17792008-10-24 Joseph Myers <joseph@codesourcery.com>
1780 Ulrich Drepper <drepper@redhat.com>
1781
1782 * math/tgmath.h (__floating_type): Use __builtin_classify_type in
1783 definition for GCC 3.1 and later.
64647f9a 1784
41e25904
UD
17852008-10-31 Jakub Jelinek <jakub@redhat.com>
1786
1787 * elf/dl-tls.c (__tls_get_addr): After calling _dl_update_slotinfo
1788 refetch dtv, as it might have changed.
1789 * elf/Makefile: Add rules to build and run tst-tls18.
1790 * elf/tst-tls18.c: New test.
1791 * elf/tst-tlsmod18a.c: New file.
1792
e148a644 17932008-09-09 Aurelien Jarno <aurelien@aurel32.net>
97f12390 1794
da9c2314 1795 [BZ #6875]
e148a644
UD
1796 * iconvdata/gconv-modules: Add LATIN9 as an alias to ISO-8859-15.
1797
17982008-10-31 Ulrich Drepper <drepper@redhat.com>
97f12390 1799
6daf1a2f
UD
1800 [BZ #6867]
1801 * sysdeps/powerpc/elf/rtld-global-offsets.sym: Fix typo.
1802
6f576bf6
UD
1803 [BZ #6919]
1804 * posix/spawnattr_getschedparam.c (posix_spawnattr_getschedparam):
1805 Fix length of copy operation.
1806
45a8beb5
UD
18072008-10-02 Pierre Habouzit <madcoder@debian.org>
1808
1809 * sysdeps/unix/sysv/linux/eventfd.c (eventfd): Use the eventfd2 syscall
1810 and fix its calling convention.
1811
ad12e635
UD
18122008-10-07 Andreas Schwab <schwab@suse.de>
1813
1814 [BZ #6942]
1815 * resolv/res_send.c (send_vc): Fix last change.
1816 (send_dg): Align here as well.
1817
3cf44918
UD
18182008-10-31 Ulrich Drepper <drepper@redhat.com>
1819
dbb6ab3e
UD
1820 * sysdeps/unix/sysv/linux/ulimit.c (__ulimit): Handle UL_GETFSIZE
1821 return value in case rlimit is RLIM_INFINITY.
1822
1823 [BZ #6947]
1824 * sysdeps/unix/sysv/linux/ulimit.c (__ulimit): Fix return value
1825 for UL_SETFSIZE.
1828d6b0
UD
1826 * resource/Makefile (tests): Add bug-ulimit1.
1827 * resource/bug-ulimit1.c: New file.
dbb6ab3e 1828
a5ff533e
UD
1829 [BZ #6974]
1830 * sunrpc/rpc_main.c (mkfile_output): Properly handle filename
1831 without dot. Properly terminate the string with a null byte.
1832 Based on a patch by Aurelien Jarno <aurelien@aurel32.net>.
1833
4bed549a
UD
1834 [BZ #6980]
1835 * debug/getgroups_chk.c (__getgroups_chk): Return EINVAL error for
1836 negative sizees.
1837 * posix/bits/unistd.h (getgroups): Call __getgroups_chk for
1838 negative __size.
1839
3cf44918
UD
1840 [BZ #6995]
1841 * sysdeps/powerpc/powerpc32/dl-machine.c: Fix typo in message.
1842
21b07d8b
UD
18432008-10-30 Ulrich Drepper <drepper@redhat.com>
1844
332c4465
UD
1845 * grp/initgroups.c (internal_getgrouplist): Don't prematurely
1846 abort if there is no initgroups_dyn function.
1847
21b07d8b
UD
1848 * resolv/res_send.c (send_dg): On timeout, only return nonzero
1849 result if any of the queries really provided an answer.
1850
4caa3fb7
UD
18512008-10-28 Ulrich Drepper <drepper@redhat.com>
1852
1853 * po/lt.po: Update from translation team.
1854
a22c3a0d
UD
18552008-10-26 Ulrich Drepper <drepper@redhat.com>
1856
1857 * po/id.po: Update from translation team.
1858
49685151
UD
18592008-10-24 Ulrich Drepper <drepper@redhat.com>
1860
1861 * resolv/res_query.c (__libc_res_nquery): Add a few casts.
660675de 1862 Fix tests for existence of second reply.
49685151 1863
8d9d5d35
UD
18642008-10-23 Ulrich Drepper <drepper@redhat.com>
1865
1866 * po/id.po: New file.
1867 Contributed by the Indonesian translation team.
1868
208bc836
UD
18692008-10-22 Dmitry V. Levin <ldv@altlinux.org>
1870
1871 * misc/syslog.c (openlog_internal): Fix __have_sock_cloexec
1872 initialization.
1873
60a23f5a
UD
18742008-10-17 Jakub Jelinek <jakub@redhat.com>
1875
1876 * elf/Makefile: Add rules to build and run tst-tls17.
1877 * elf/tst-tls17.c: New test.
1878 * elf/tst-tlsmod17a.c: New file.
1879 * elf/tst-tlsmod17b.c: Likewise.
1880
292eb817
UD
18812008-10-17 Ulrich Drepper <drepper@redhat.com>
1882
1883 * stdlib/divmod_1.c: Use correct type for dummy variable.
1884 * stdlib/mod_1.c: Likewise.
1885
5df2a427
UD
18862008-10-16 Ulrich Drepper <drepper@redhat.com>
1887
1888 * elf/dl-tls.c (_dl_update_slotinfo): Copy all of the initial DTV.
1889
472e5e08
JJ
18902008-10-16 Jakub Jelinek <jakub@redhat.com>
1891
1892 * sysdeps/unix/sysv/linux/sys/signalfd.h (signalfd): Fix __THROW vs.
1893 __nonnull order for C++.
1894 * sysdeps/unix/sysv/linux/alpha/sys/signalfd.h (signalfd): Likewise.
1895 * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h (signalfd): Likewise.
1896
86900abd
RM
18972008-10-01 Daniel Jacobowitz <dan@codesourcery.com>
1898
1899 * stdlib/longlong.h: Update from GCC.
1900
19c10a47
JJ
19012008-10-09 Jakub Jelinek <jakub@redhat.com>
1902 David S. Miller <davem@davemloft.net>
1903
1904 * sysdeps/sparc/sparc64/sparcv9v/memcpy.S: When not USE_BPR,
1905 make sure any registers used with 64-bit 'branch-on-register'
1906 instructions have their top 32-bits clear.
1907 * sysdeps/sparc/sparc64/sparcv9v/memset.S: Likewise.
1908 * sysdeps/sparc/sparc64/sparcv9v2/memcpy.S: Likewise.
1909
2fdde3b9
UD
19102008-09-18 Andreas Schwab <schwab@suse.de>
1911
1912 [BZ #6942]
1913 * resolv/res_send.c (send_vc): Fix use of unaligned address.
f00d47a3 1914 Properly handle partial reads.
2fdde3b9 1915
6ba25fcb
RM
19162008-10-01 Mark Shinwell <shinwell@codesourcery.com>
1917
1918 * elf/elf.h (STO_MIPS_PLT): New.
1919 (R_MIPS_COPY): New.
1920 (R_MIPS_JUMP_SLOT): New.
1921 (R_MIPS_NUM): Redefine to 128.
1922 (DT_MIPS_PLTGOT): New.
1923 (DT_MIPS_RWPLT): New.
1924 (DT_MIPS_NUM): Redefine to 0x35.
1925
97898201
UD
19262008-10-01 Ulrich Drepper <drepper@redhat.com>
1927
1928 * timezone/africa: Update from tzdata2008f.
1929 * timezone/asia: Likewise.
1930 * timezone/australasia: Likewise.
1931 * timezone/europe: Likewise.
1932 * timezone/leapseconds: Likewise.
1933 * timezone/northamerica: Likewise.
1934 * timezone/southamerica: Likewise.
1935 * timezone/zone.tab: Likewise.
1936
3452ded5
UD
19372008-09-30 Ulrich Drepper <drepper@redhat.com>
1938
1939 * nscd/connections.c: Disable use of paccept for now.
1940
54ad9327
UD
19412008-09-29 Ulrich Drepper <drepper@redhat.com>
1942
8ec2550e
UD
1943 * socket/Versions: Remove paccept export for GLIBC_2.9.
1944 * socket/Makefile (routines): Remove paccept.
1945 * socket/sys/socket.h: Remove paccept declaration.
1946
54ad9327
UD
1947 * po/sv.po: Update from translation team.
1948
1c5eba39
UD
19492008-09-22 Deborah S. Townsend <dstownse@us.ibm.com>
1950
1951 * sysdeps/s390/s390-64/s390x-mcount.S: Replace ahi with aghi.
1952 * sysdeps/unix/sysv/linux/s390/s390-64/socket.S: Likewise.
1953
0a26fc4d
UD
19542008-09-16 Ulrich Drepper <drepper@redhat.com>
1955
1956 * dlfcn/dlopen.c (dlopen_doit): Allow __RTLD_SPROF flag.
1957 Patch by Olivier Fourdan <ofourdan@redhat.com>.
1958
2bcaff08
UD
19592008-09-15 Ulrich Drepper <drepper@redhat.com>
1960
1961 * sunrpc/rpc/svc.h: Declare svcfd_create.
1962 Patch by Michael Solberg <msolberg@redhat.com>.
1963
caa60cb9 19642008-09-12 Flavio Leitner <fleitner@redhat.com>
f00d47a3 1965 Ulrich Drepper <drepper@redhat.com>
caa60cb9
UD
1966
1967 * malloc/malloc.c (public_vALLOc): Try other arenas in case
1968 _int_valloc fails.
1969 (public_pVALLOc): Likewise.
1970
6c161112
AJ
19712008-09-02 Andreas Jaeger <aj@suse.de>
1972
1973 * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: Fix last
1974 commit.
1975
0cb269d7
RM
19762008-08-26 Aurelien Jarno <aurelien@aurel32.net>
1977
452034cc 1978 [BZ #6860]
2bcaff08 1979 * hurd/hurd/signal.h (HURD_MSGPORT_RPC): Fix a typo.
0cb269d7 1980
13074b5b
RM
19812008-07-18 Daniel Jacobowitz <dan@codesourcery.com>
1982
1983 * Makefile (check-data): Check data directory in add-ons.
1984 * elf/Makefile (check-data): Likewise.
1985
58801a0e
RM
19862008-08-18 Roland McGrath <roland@redhat.com>
1987
1988 * configure.in (--with-cpu): Check compiler support for -march/-mcpu.
1989 * configure: Regenerated.
1990 * config.make.in (cflags-cpu): New substituted variable.
1991 (with-cpu): Variable removed.
1992 * Makeconfig (+cflags): Use $(cflags-cpu), not $(with-cpu).
1993
7df49c5d
UD
19942008-08-14 Ryan S. Arnold <rsa@us.ibm.com>
1995
1996 [BZ #6845]
1997 * sysdeps/powerpc/fpu/bits/mathinline.h (__signbitl): Copy new
1998 __signbitl definition and __LONG_DOUBLE_128__ guard from:
1999 * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h: Remove as
2000 redundant. Functions which call floating point assembler operations
2001 should go into a sysdeps powerpc/fpu directory.
2002
965805e8
UD
20032008-08-15 Ulrich Drepper <drepper@redhat.com>
2004
2005 * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Define MAP_STACK.
2006 * sysdeps/unix/sysv/linux/i386/bits/mman.h: Likewise.
2007
9cf73ab0
UD
20082008-08-14 Ulrich Drepper <drepper@redhat.com>
2009
62a1ffc6
UD
2010 * sysdeps/x86_64/memset.S: Reduce size of tables for PIC.
2011
9cf73ab0
UD
2012 * sysdeps/unix/sysv/linux/dl-origin.c (_dl_get_origin): Undo all
2013 change related to AT_EXECFN. We cannot use that string.
2014 * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Remove
2015 _dl_execfn member.
2016 * elf/dl-support.c: Remove _dl_execfn variable.
2017 (_dl_aux_init): Remove handling of AT_EXECFN.
2018 * elf/dl-sysdep.c (_dl_sysdep_start): Remove handling of AT_EXECFN.
2019 * elf/rtld.c (process_envvars): Remove use of __ASSUME_AT_EXECFN.
2020
1bfa05cf
UD
20212008-08-13 Ulrich Drepper <drepper@redhat.com>
2022
7b3ba2c4
UD
2023 [BZ #6544]
2024 * libio/fmemopen.c: Implement binary mode. In this mode no NUL
2025 byte gets added to writes and seeks from the end use the length of
2026 the buffer and not the currently terminating NUL byte.
2027
1bfa05cf
UD
2028 [BZ #6634]
2029 * login/utmp_file.c (getutent_r_file): Take additional parameter.
2030 Set to true if locking failed.
2031 (getutid_r_file): Adjust caller.
2032 (pututline_file): Likewise. Return NULL in this case.
2033 Patch mostly by halesh.s@gmail.com.
2034
c5671698
UD
20352008-08-12 Ulrich Drepper <drepper@redhat.com>
2036
2037 [BZ #6589]
2038 * sysdeps/unix/sysv/linux/ifaddrs.c (struct sockaddr_ll_max):
2039 Define.
2040 (struct ifaddrs_storage): Use it instead of sockaddr_ll.
2041
4497384e
UD
20422008-08-12 Ryan S. Arnold <rsa@us.ibm.com>
2043
2044 [BZ #6839]
2045 * sysdeps/powerpc/powerpc32/dl-machine.c (CHECK_STATIC_TLS): Remove
2046 macro since it is now available in elf/dynamic-link.h.
2047
675d7111
RM
20482008-08-12 Roland McGrath <roland@frob.com>
2049
2050 * hurd/hurd/signal.h (HURD_MSGPORT_RPC): Avoid -Wparenthesis triggers,
2051 in case used outside of libc.
2052 Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>
2053
8b254432
UD
20542008-08-11 Ulrich Drepper <drepper@redhat.com>
2055
2056 * resolv/res_mkquery.c (res_nmkquery): Call ns_name_compress
2057 directly instead of going through dn_comp.
2058
ac84eeca
RM
20592008-08-11 Aurelien Jarno <aurel32@debian.org>
2060
2061 * sysdeps/mach/i386/machine-lock.h (__spin_unlock, __spin_try_lock):
2062 Fix asm constraints.
2063
f081b451
UD
20642008-08-07 Ulrich Drepper <drepper@redhat.com>
2065
2066 [BZ #6790]
2067 * sysdeps/unix/sysv/linux/bits/in.h (IP_PMTUDISC_PROBE): Define.
2068 (IPV6_PMTUDISC_PROBE): Likewise.
2069
30a4429e
UD
20702008-08-07 Pete Eberlein <eberlein@us.ibm.com>
2071
2072 [BZ #6791]
2073 * sysdeps/unix/sysv/linux/powerpc/bits/mman.h (PROT_SAO): Define.
2074
1642331d 20752008-08-01 Steven Munroe <sjmunroe@us.ibm.com>
626f68ff 2076 Carlos Eduardo Seo <cseo@linux.vnet.ibm.com>
1642331d
UD
2077
2078 [BZ #6817]
2079 * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags):
2080 Added the members 'vsx' and 'arch_2_06'.
2081 (_dl_powerpc_platforms): Add the member 'power7'.
2082 * sysdeps/powerpc/dl-procinfo.h: Modify _DL_HWCAP_FIRST
2083 to reflect the changes required by VSX and ISA 2.06.
2084 Modify _DL_PLATFORMS_COUNT to reflect the addition of
2085 'power7'.
2086 Defined PPC_PLATFORM_POWER7.
2087 (_dl_string_platform): Add support for POWER7.
2088 * sysdeps/powerpc/sysdep.h: Define bit masks for VSX
2089 capability and ISA 2.06.
2090
48b94661
UD
20912008-08-07 Ulrich Drepper <drepper@redhat.com>
2092
2093 [BZ #6824]
2094 * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h: Use correct
2095 macro to detect use of 128 bit long double.
2096 Patch by Ryan S. Arnold <rsa@us.ibm.com>.
2097
9523fd28
UD
20982008-08-05 Ulrich Drepper <drepper@redhat.com>
2099
9c0cb150
UD
2100 * scripts/gen-as-const.awk: Use 32-bit values on 32-bit platforms.
2101
46aea5cb 2102 [BZ #5794]
9523fd28
UD
2103 * sysdeps/i386/fpu/s_expm1l.S: Simply use exp implementation for large
2104 parameters.
2105 * sysdeps/x86_64/fpu/s_expm1l.S: Likewise.
2106 Patch by Denys Vlasenko <dvlasenk@redhat.com>.
2107
c400c931
UD
21082008-08-03 Ulrich Drepper <drepper@redhat.com>
2109
2110 * nscd/connections.c (main_loop_poll): Pass a buffer which is
2111 guaranteed to be large enough to read inotify event. Ignore
2112 EAGAIN error. Better error message. Add branch predicition.
2113 (main_loop_epoll): Likewise.
2114
3f39adac
RM
21152008-08-02 Roland McGrath <roland@frob.com>
2116
2117 * sysdeps/mach/i386/machine-lock.h (__spin_unlock, __spin_try_lock):
2118 Add memory clobbers.
2119
3501542f
UD
21202008-08-02 Ulrich Drepper <drepper@redhat.com>
2121
48b22986
UD
2122 * manual/arith.texi: Avoid @strong{Note:}.
2123 * manual/creature.texi: Likewise.
2124 * manual/filesys.texi: Likewise.
2125 * manual/math.texi: Likewise.
2126 * manual/memory.texi: Likewise.
2127 * manual/resource.texi: Likewise.
2128 * manual/syslog.texi: Likewise.
2129 * manual/time.texi: Likewise.
2130
3501542f
UD
2131 * sysdeps/posix/clock_getres.c (hp_timing_getres): Remove inline
2132 to prevent warning.
2133
17756df3
UD
21342008-08-01 Ulrich Drepper <drepper@redhat.com>
2135
ebcc1f4d
UD
2136 * sysdeps/unix/sysv/linux/Versions: Fix changes due to old patch for
2137 new epoll_create1 interface.
2138 * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
2139 * sysdeps/unix/sysv/linux/sys/epoll.h: Likewise.
2140 * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
2141
144bfa86
UD
2142 * include/arpa/nameser.h (NS_GET16): Use const pointer.
2143 (NS_GET32): Likewise.
2144
7e1b29c6
UD
2145 * sysdeps/unix/sysv/linux/kernel-features.h: s390 has the new
2146 syscalls, too.
2147
42fa1f67
UD
2148 * sysdeps/unix/sysv/linux/dl-origin.c (_dl_get_origin): We cannot
2149 use the AT_EXECFN value if it is no absolute path.
2150 * sysdeps/unix/sysv/linux/kernel-features.h: Never define
2151 __ASSUME_AT_EXECFN.
2152
cd5743fd
UD
2153 * Versions.def: Add GLIBC_2.9 to libresolv.
2154 * include/resolv.h: Remove hidden proto declarations for __ns_*
2155 functions. Add them for __dn_count_labels and __p_secstodate.
2156 * include/arpa/nameser.h: Add a number of hidden proto declarations.
2157 Define ns_msg_getflags macro here.
2158 * resolv/res_debug.c: Add hidden definition for __dn_count_labels
2159 and __p_secstodate.
2160 * resolv/Versions: Export functions from <arpa/nameser.h> from
2161 libresolv in version GLIBC_2.9.
2162 * resolv/ns_name.c: Integrate changes from bind 9.5.0. Add necessary
2163 hidden definitions.
2164 * resolv/ns_netint.c: Likewise.
2165 * resolv/ns_parse.c: Likewise.
2166 * resolv/ns_print.c: Likewise.
2167 * resolv/ns_samedomain.c: Likewise.
2168 * resolv/ns_ttl.c: Likewise.
2169 * resolv/arpa/nameser_compat.h: Likewise.
2170 * resolv/arpa/nameser.h: Likewise. Remove macros which redirect
2171 function calls.
2172 * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Use __ns_get16
2173 instead of ns_get16.
2174 * resolv/nss_dns/dns-host.c (getanswer_r): Use __ns_get16 and
2175 __ns_get32 instead of ns_get16 and ns_get32 respectively.
2176 (gaih_getanswer_slice): Likewise.
2177 * resolv/Makefile (libresolv-routines): Add ns_date.
2178 * resolv/ns_date.c: New file.
2179
17756df3
UD
2180 * elf/Makefile (check-localplt.out): Also check libresolv and
2181 libcrypt.
2182
46bc5d43
UD
21832008-07-31 Ulrich Drepper <drepper@redhat.com>
2184
2185 * sysdeps/unix/sysv/linux/kernel-features.h: Define
2186 __ASSUME_O_CLOEXEC.
2187
a707cff6
UD
21882008-07-30 Ulrich Drepper <drepper@redhat.com>
2189
3c227386
UD
2190 * sysdeps/posix/getaddrinfo.c (gaih_inet): Raise size of initial
2191 buffer passed to NSS functions.
2192
9523fd28 2193 * nscd/connections.c (nscd_init): Typo in preprocessor directive.
bd7f4857
UD
2194
2195 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_PACCEPT):
2196 Define.
2197
a707cff6
UD
2198 * misc/syslog.c (openlog_internal): Fix compile problem.
2199
0424d007
RM
22002008-07-28 Roland McGrath <roland@redhat.com>
2201
2202 * elf/dl-sysdep.c (_dl_show_auxv): Add AT_EXECFN to the table.
2203
b7da31a1
UD
22042008-07-28 Ulrich Drepper <drepper@redhat.com>
2205
300ea0ad
UD
2206 * io/ftw.c (add_object): Remove inline to avoid warning.
2207
d6173baa
UD
2208 * sysdeps/unix/sysv/linux/paccept.c: Fix compile problem.
2209
b7da31a1
UD
2210 * resolv/res_send.c (__libc_res_nsend): Take additional parameter.
2211 Use it instead of locally defined resplen2 variable.
2212 (res_nsend): Adjust for __libc_res_nsend interface change.
2213 (send_vc): Initialize *resplen2 if necessary. Read length of
2214 package into an appropriately aligned variable. Store converted length
2215 in new variable and use it appropriately.
2216 Add branch prediction help.
2217 * resolv/res_query.c (__libc_res_nquery): Take additional parameter
2218 and pass it on to __libc_res_nsend. Adjust all callers.
2219 (__libc_res_nsearch): Likewise.
2220 (__libc_res_nqeurydomain): Likewise.
2221 * resolv/nss_dns/dns-host.c: Adjust for __libc_res_nsearch interface
2222 change.
2223 (_nss_dns_gethostbyname4): Don't unconditionally allocate tmp array.
2224 Define resplen2 variable and pass it to __libc_res_nsearch and then
2225 to gaih_getanswer.
2226 (getanswer_r): In case of incorrect DNS data don't overread buffer.
2227 Add branch prediction.
2228 (gaih_getanswer_slice): Likewise. Check for invalid data types.
2229 (gaih_getanswer): Don't decode second slice if first one failed due
2230 to a too small buffer. Don't let not found status of second
2231 decoder shadow results of the first.
2232 * resolv/gethnamaddr.c (gethostbyname2): Adjust for __libc_res_nsearch
2233 and __libc_res_nquery interface changes
2234 (gethostbyaddr): Adjust for __libc_res_nquery interface change.
2235 * include/resolv.h: Adjust prototypes for __libc_res_nquery,
2236 __libc_res_nsearch, and __libc_res_nsend.
2237 * resolv/nss_dns/dns-canon.c: Adjust for __libc_res_nquery interface
2238 change.
2239 * resolv/nss_dns/dns-network.c: Adjust for __libc_res_nquery and
2240 __libc_res_nsearch interface changes.
2241
11ed3eae
UD
22422008-07-27 Ulrich Drepper <drepper@redhat.com>
2243
372aece0
UD
2244 * libio/iopopen.c (_IO_new_proc_open): Remove unnecessary volatile.
2245
e038616f
UD
2246 * posix/wordexp.c (exec_comm): Use pipe2 if possible to create
2247 file descriptors with close-on-exec set.
2248 (exec_comm_child): Fix the case where the write end of the pipe is
2249 STDOUT_FILENO already. In case it is, clear close-on-exec.
2250
d6e0c2a6
UD
2251 * sysdeps/unix/sysv/linux/syscalls.list: Add __pipe2 alias.
2252 * io/pipe2.c: Likewise.
2253 * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_PIPE2
2254 instead of __ASSUME_PACCEPT.
2255 * include/unistd.h: Declare __have_pipe2.
2256 * libio/iopopen.c: Implement "e" flag.
2257 * libio/Makefile (tests): Add tst-popen1.
2258 * libio/tst-popen1.c: New file.
2259
11ed3eae
UD
2260 * sysdeps/unix/sysv/linux/bits/socket.h: Define PF_ISDN and AF_ISDN.
2261 * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
2262
7438a80d
UD
22632008-07-26 Ulrich Drepper <drepper@redhat.com>
2264
c4a710b6
UD
2265 [BZ #6771]
2266 * libio/fileops.c (_IO_new_file_attach): Preserve errno around
2267 success call of _IO_SEEKOFF or calls which failed because the
2268 descriptor is for a pipe.
2269
31f3b159
UD
2270 * sunrpc/key_call.c (getkeyserv_handle): Use FD_CLOEXEC instead of
2271 magic number.
2272
c0216dfc
UD
2273 * misc/syslog.c (openlog_internal): Use SOCK_CLOEXEC if possible.
2274
72112b0c
UD
2275 * malloc/mtrace.c (mtrace): Use 'e' flag in fopen call. Drop
2276 F_SETFD use if we know fopen set the flag.
2277
7438a80d
UD
2278 * login/utmp_file.c (setutent_file): Minor optimization in case
2279 O_CLOEXEC is available.
2280
7b91359b
UD
22812008-07-24 Tom "spot" Callaway <tcallawa@redhat.com>
2282
2283 * Makeconfig: Define pie-ccflag and PIE-ccflag variables.
2284 * elf/Makefile: Use pie-ccflag variable.
2285 * nscd/Makefile: Likewise.
2286 * sysdeps/sparc/Makefile: Set $(pie-ccflag) to -fPIE.
2287
4057dc45
UD
22882008-07-21 Andreas Krebbel <krebbel1@de.ibm.com>
2289
e7135e24 2290 [BZ #6724]
4057dc45
UD
2291 * Versions.def: Add GLIBC_2.9 version tag for libutil.
2292 * sysdeps/unix/sysv/linux/s390/bits/utmp.h: Copy of
2293 gnu/bits/utmp.h. Check for __WORDSIZE_COMPAT32 removed.
2294 * sysdeps/unix/sysv/linux/s390/bits/utmpx.h: Copy of
2295 gnu/bits/utmpx.h. Check for __WORDSIZE_COMPAT32 removed.
2296 * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Add new files
2297 utmp32, utmpx32 and login32.
2298 * sysdeps/unix/sysv/linux/s390/s390-32/Versions: Add 2.9
2299 versions of struct utmp functions to libc and libutil.
2300 * sysdeps/unix/sysv/linux/s390/s390-32/utmp-compat.h: New file.
2301 * sysdeps/unix/sysv/linux/s390/s390-32/getutent.c: New file.
2302 * sysdeps/unix/sysv/linux/s390/s390-32/getutent_r.c: New file.
2303 * sysdeps/unix/sysv/linux/s390/s390-32/getutid.c: New file.
2304 * sysdeps/unix/sysv/linux/s390/s390-32/getutid_r.c: New file.
2305 * sysdeps/unix/sysv/linux/s390/s390-32/getutline.c: New file.
2306 * sysdeps/unix/sysv/linux/s390/s390-32/getutline_r.c: New file.
2307 * sysdeps/unix/sysv/linux/s390/s390-32/getutmp.c: New file.
2308 * sysdeps/unix/sysv/linux/s390/s390-32/getutxent.c: New file.
2309 * sysdeps/unix/sysv/linux/s390/s390-32/getutxid.c: New file.
2310 * sysdeps/unix/sysv/linux/s390/s390-32/getutxline.c: New file.
2311 * sysdeps/unix/sysv/linux/s390/s390-32/login.c: New file.
2312 * sysdeps/unix/sysv/linux/s390/s390-32/login32.c: New file.
2313 * sysdeps/unix/sysv/linux/s390/s390-32/pututxline.c: New file.
2314 * sysdeps/unix/sysv/linux/s390/s390-32/updwtmp.c: New file.
2315 * sysdeps/unix/sysv/linux/s390/s390-32/updwtmpx.c: New file.
2316 * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: New file.
2317 * sysdeps/unix/sysv/linux/s390/s390-32/utmp32.c: New file.
2318 * sysdeps/unix/sysv/linux/s390/s390-32/utmp32.h: New file.
2319 * sysdeps/unix/sysv/linux/s390/s390-32/utmpx-convert.h: New file.
2320 * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.c: New file.
2321 * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.h: New file.
2322
ff0bf753
UD
23232008-07-26 Ulrich Drepper <drepper@redhat.com>
2324
619cc2f6
UD
2325 * scripts/gen-as-const.awk: Generate more widely usable code by
2326 using 64-bit arithmetic.
2327
1311b164 2328 * stdio-common/printf_fp.c (___printf_fp): Give wide outout code
3f414923 2329 the same treatment as narrow output code in last patch.
1311b164 2330
ff0bf753
UD
2331 * sunrpc/clnt_udp.c (__libc_clntudp_bufcreate): Namespace cleanup.
2332
3f414923 2333 [BZ #6763]
ff0bf753
UD
2334 * elf/dl-load.c (local_strdup): Remove inline.
2335 (_dl_map_object_from_fd): Don't allocate l_symbolic_searchlist.r_list.
2336 * elf/dl-object.c (_dl_new_object): Allocate symbolic searchlist as
2337 part of the object.
2338
2339 * sysdeps/unix/sysv/linux/dl-origin.c: Add const to avoid warning.
2340
8ccf22f9
UD
23412008-07-25 Ulrich Drepper <drepper@redhat.com>
2342
bdd24a30
UD
2343 * sysdeps/unix/sysv/linux/kernel-features.h: IA-64 and SPARC have
2344 the new syscalls, too.
b5c0b5e4 2345
b41f1d14
UD
2346 * sysdeps/i386/i686/memcmp.S: Fix unwind information.
2347 Reported by Paul Pluzhnikov <ppluzhnikov@google.com>.
2348
3703468e
UD
2349 [BZ #6698]
2350 * stdio-common/_i18n_number.h (_i18n_number_rewrite): Take additional
2351 parameter for end of buffer. If temporary copy is too large use
2352 malloc.
2353 * stdio-common/vfprintf.c: Adjust for _i18n_number_rewrite
2354 interface change.
2355 * stdio-common/printf_fp.c (__printf_fp): Likewise.. Account for
2356 string rewrite when allocating buffer.
2357
bb0277bf
UD
2358 * sysdeps/unix/sysv/linux/kernel-features.h: PPC has the new
2359 syscalls, too.
2360
9dd84772
UD
2361 * nscd/connections.c (nscd_init): Clean up fcntl call.
2362
c418b1ba
UD
2363 * nscd/nscd_helper.c (open_socket): Use SOCK_CLOEXEC and
2364 SOCK_NONBLOCK if possible.
2365
b206d8b1
UD
2366 * sysdeps/unix/sysv/linux/opensock.c (__opensock): Use
2367 SOCK_CLOEXEC if available.
2368
8ccf22f9
UD
2369 * include/rpc/clnt.h: Declare __libc_clntudp_bufcreate and
2370 __libc_clntudp_bufcreate_internal.
2371 * include/sys/socket.h: Declare __have_sock_cloexec.
2372 * socket/Makefile (aux): Add have_sock_cloexec.
2373 * socket/have_sock_cloexec.c: New file.
2374 * sunrpc/clnt_udp.h (clntudp_bufcreate): Now a wrapper around
2375 __libc_clntudp_bufcreate.
2376 (__libc_clntudp_bufcreate): Former implementation of clntudp_bufcreate
2377 which takes an additional parameter. Create socket with non-blocking
2378 mode and close-on-exec flag set, if wanted.
2379 * sunrpc/Versions: Export __libc_clntudp_bufcreate@GLIBC_PRIVATE.
2380 * nis/ypclnt.c (yp_bind_client_create): Use __libc_clntpudp_bufcreate
2381 instead of clntudp_create. The socket has already the close-on-exec
2382 flag set if SOCK_CLOEXEC is defined.
2383
579cdf5a
UD
23842008-07-24 Ulrich Drepper <drepper@redhat.com>
2385
3ff2c948
UD
2386 * sysdeps/unix/sysv/linux/kernel-features.h: Define
2387 __ASSUME_PACCEPT, __ASSUME_IN_NONBLOCK, and __ASSUME_PACCEPT if
2388 appropriate.
2389 * nscd/connections.c: Avoid fcntl calls to set close-on-exec flag and
2390 non-blocking mode by using socket, paccept, and inotify_init1.
2391
bdcebfc4
UD
2392 * Versions.def (glibc): Add GLIBC_2.9.
2393 * io/Makefile (routines): Add dup3 and pipe2.
2394 * io/Versions [glibc] (GLIBC_2.9): Add dup3 and pipe2.
2395 * io/dup3.c: New file.
2396 * io/pipe2.c: New file.
2397 * posix/unistd.h: Declare dup3 and pipe2.
2398 * socket/Makefile (routines): Add paccept.
2399 * socket/Versions [glibc] (GLIBC_2.9): Add paccept.
2400 * socket/paccept.c: New file.
2401 * socket/sys/socket.h: Declare paccept.
2402 * sysdeps/unix/syscalls.list: Add entry for dup3.
2403 * sysdeps/unix/sysv/linux/Versions [glibc] (GLIBC_2.9): Add
2404 epoll_create2 and inotify_init1.
2405 * sysdeps/unix/sysv/linux/eventfd.c: Use eventfd1 syscall if possible.
2406 * sysdeps/unix/sysv/linux/paccept.c: New file.
2407 * sysdeps/unix/sysv/linux/signalfd.c: Use signalfd4 syscall if
2408 possible.
2409 * sysdeps/unix/sysv/linux/socketcall.h: Add SOCKOP_paccept.
2410 * sysdeps/unix/sysv/linux/syscalls.list: Add epoll_create2,
2411 inotify_init1, and pipe2 entries.
2412 * sysdeps/unix/sysv/linux/alpha/sys/epoll.h: New file.
2413 * sysdeps/unix/sysv/linux/alpha/sys/eventfd.h: New file.
2414 * sysdeps/unix/sysv/linux/alpha/sys/inotify.h: New file.
2415 * sysdeps/unix/sysv/linux/alpha/sys/signalfd.h: New file.
2416 * sysdeps/unix/sysv/linux/alpha/sys/timerfd.h: New file.
2417 * sysdeps/unix/sysv/linux/bits/socket.h: Define SOCK_CLOEXEC and
2418 SOCK_NONBLOCK.
2419 * sysdeps/unix/sysv/linux/i386/paccept.S: New file.
2420 * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: New file.
2421 * sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: New file.
2422 * sysdeps/unix/sysv/linux/sparc/sys/inotify.h: New file.
2423 * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h: New file.
2424 * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: New file.
2425 * sysdeps/unix/sysv/linux/sparc/bits/socket.h: New file.
2426 * sysdeps/unix/sysv/linux/sys/epoll.h: Define EPOLL_CLOEXEC and
2427 EPOLL_NONBLOCK. Declare epoll_create2.
2428 * sysdeps/unix/sysv/linux/sys/eventfd.h: Define EFD_CLOEXEC and
2429 EFD_NONBLOCK.
2430 * sysdeps/unix/sysv/linux/sys/inotify.h: Define IN_CLOEXEC and
2431 IN_NONBLOCK. Declare inotify_init1.
2432 * sysdeps/unix/sysv/linux/sys/signalfd.h: Define SFD_CLOEXEC and
2433 SFD_NONBLOCK.
2434 * sysdeps/unix/sysv/linux/sys/timerfd.h: Define TFD_CLOEXEC and
2435 TFD_NONBLOCK.
2436
0e077a7e
UD
2437 * elf/elf.h: Define AT_EXECFN.
2438 * elf/rtld.c [!__ASSUME_AT_EXECFN] (process_envvars): Don't handle
2439 LD_ORIGIN_PATH.
2440 * elf/dl-sysdep.c (_dl_sysdep_start): Handle AT_EXECFN.
2441 * elf/dl-support.c: Define _dl_execfn. Don't define _dl_origin_path
2442 if __ASSUME_AT_EXECFN is defined.
2443 (_dl_aux_init): Handle AT_EXECFN.
2444 * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_AT_EXECFN
2445 for 2.6.27 and up.
2446 * sysdeps/generic/ldsodefs.h (rtld_global_ro): Add _dl_execfn.
2447 Don't define _dl_origin_path if __ASSUME_AT_EXECFN is defined.
2448 * sysdeps/unix/sysv/linux/dl-origin.c (_dl_get_origin): Use
2449 _dl_execfn if available and avoid compatibility code if
2450 __ASSUME_AT_EXECFN is defined.
2451
579cdf5a
UD
2452 * sysdeps/unix/sysv/linux/dl-sysdep.h: Don't declare
2453 _dl_discover_osversion only for older kernels.
2454
7385c04c
RM
24552008-07-22 Roland McGrath <roland@frob.com>
2456
2457 * hurd/fd-read.c (_hurd_fd_read): Fix last change.
2458
8a26088d
RM
24592008-07-21 Roland McGrath <roland@frob.com>
2460
2461 * hurd/fd-read.c (_hurd_fd_read): Return EGRATUITOUS if the server
2462 returned too much data out of line.
2463
9f558b80
UD
24642008-07-20 Ulrich Drepper <drepper@redhat.com>
2465
2e79213a
UD
2466 * locale/setlocale.c (setname): Remove inline to avoid compiler
2467 warning.
2468
579cdf5a 2469 [BZ #6712]
9f558b80
UD
2470 * locale/setlocale.c (setlocale): Take the setlocale lock earlier.
2471
9667f97d
UD
24722008-07-15 Ulrich Drepper <drepper@redhat.com>
2473
2486b496
UD
2474 * stdio-common/vfprintf.c (_IO_helper_overflow): In case _IO_sputn
2475 doesn't manage to write anything, fail.
2476
9667f97d
UD
2477 * malloc/hooks.c (__malloc_check_init): Remove printf.
2478
6d4c073b
RM
24792008-07-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
2480
2481 * sysdeps/mach/hurd/bits/fcntl.h: Include <sys/types.h>.
2482
b7432416
UD
24832008-07-12 Ulrich Drepper <drepper@redhat.com>
2484
2485 * nscd/connections.c (main_loop_poll): Fix handling of read errors
2486 from inotify.
2487 (main_loop_epoll): Likewise.
2488
44abc397
UD
24892008-07-09 Ulrich Drepper <drepper@redhat.com>
2490
835113c6
UD
2491 * resolv/res_send.c: Remove unnecessary res_pquery prototype.
2492
fdc769f6
UD
2493 * resolv/res_query.c (__libc_res_nquery): Issue debug message only
2494 if DEBUG is defined.
2495
44abc397
UD
2496 * resolv/res_query.c (__libc_res_nquery): Align buffer for T_AAAA
2497 query. Adjust buffer size computation for padding.
2498
38dc8fad
UD
24992008-07-08 Ulrich Drepper <drepper@redhat.com>
2500
75684bd7
UD
2501 * stdio-common/Makefile: Add rules to build and run tst-setvbuf1.
2502 * stdio-common/tst-setvbuf1.c: New file.
2503 * stdio-common/tst-setvbuf1.expect: New file.
2504
38dc8fad
UD
2505 [BZ #6719]
2506 * libio/iosetvbuf.c (_IO_setvbuf): Correctly clear buffering flags
2507 when selecting fully-buffered stream.
2508 Patch by Wang Xin <wxinee@gmail.com>.
2509
107f4ac2
RM
25102008-07-06 Samuel Thibault <samuel.thibault@ens-lyon.org>
2511
2512 * sysdeps/mach/hurd/open.c: Include <stdio.h>.
2513 (__open_2): New function.
2514 (__open64_2): New alias to __open_2.
2515 * sysdeps/mach/hurd/openat.c: Include <stdio.h>.
2516 (__openat_2): New function.
2517 (__openat64_2): New alias to __openat_2.
2518
45ec3e79
UD
25192008-07-06 Ulrich Drepper <drepper@redhat.com>
2520
2521 [BZ #6723]
2522 * time/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
2523
0a583b54
RM
25242008-07-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
2525
2526 * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Define MSG_NOSIGNAL.
2527 * hurd/hurd/fd.h (__hurd_sockfail): Add extern inline function.
2528 * sysdeps/mach/hurd/recv.c (__recv): Use __hurd_sockfail instead of
2529 __hurd_dfail.
2530 * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Likewise.
2531 * sysdeps/mach/hurd/recvmsg.c (__recvmsg): Likewise.
2532 * sysdeps/mach/hurd/send.c (__send): Likewise.
2533 * sysdeps/mach/hurd/sendto.c (__sendfrom): Likewise.
2534 * sysdeps/mach/hurd/sendmsg.c (__sendmsg): Likewise.
2535
d5a0160b
RM
25362008-03-04 Samuel Thibault <samuel.thibault@ens-lyon.org>
2537
2538 * sysdeps/mach/hurd/recv.c (__recv): Initialize NPORTS.
2539 * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Likewise.
2540 * sysdeps/mach/hurd/recvmsg.c (__recvmsg): Likewise.
2541 * hurd/fd-read.c (_hurd_fd_read): Initialize NREAD.
2542 * hurd/get-host.c (_hurd_get_host_config): Likewise.
2543 * sysdeps/mach/hurd/dl-sysdep.c (__libc_read): Likewise.
2544
80922a99
UD
25452008-06-27 Ulrich Drepper <drepper@redhat.com>
2546
2547 [BZ #6657]
2548 * time/strptime_l.c: Don't clear s.era_cnt after successful match
2549 of %EY.
2550 Patch by Petr Baudis.
2551
34ca2ff7
UD
25522008-06-26 Ulrich Drepper <drepper@redhat.com>
2553
5ee0f5e2 2554 * resolv/res_debug.c (__p_type_syms): Add ns_t_dname entry.
34ca2ff7
UD
2555 Patch by Peter Jones <pjones@redhat.com>.
2556
104426b6
UD
25572008-06-25 Ulrich Drepper <drepper@redhat.com>
2558
2559 [BZ #6654]
2560 * stdlib/canonicalize.c (__realpath): readlink can write too much
2561 into the buffer on platforms without PATH_MAX.
2562
7166d23f
UD
25632008-06-17 Carlos O'Donell <carlos@codesourcery.com>
2564
4cb8e687 2565 [BZ #6653]
7166d23f
UD
2566 * posix/tst-regex.c (main): Rename to...
2567 (do_test): ... this. Remove cmdline option processing.
2568 (TIMEOUT): Define.
2569 (TEST_FUNCTION): Define.
2570 (CMDLINE_OPTIONS): Define.
2571
974069d8
UD
25722008-06-25 Ulrich Drepper <drepper@redhat.com>
2573
2574 [BZ #5210]
2575 * configure.in: Add -Werror to -fstack-protector test to catch
2576 unsupported architectures.
2577 Patch by Gilles Esponasse <g.esp@free.fr>.
2578
cefa2dd3
UD
25792008-06-17 Joseph Myers <joseph@codesourcery.com>
2580
2581 * stdlib/tst-setcontext.c: Set back_in_main before exit if
2582 getcontext returns ENOSYS.
2583
c00d1128
UD
25842008-06-18 Ulrich Drepper <drepper@redhat.com>
2585
2586 * nscd/connections.c (main_loop_poll): Fix test for read error.
2587 (main_loop_epoll): Likewise.
2588
a0edbb48
UD
25892008-06-13 Ulrich Drepper <drepper@redhat.com>
2590
d0a1ae94
UD
2591 * sysdeps/posix/getaddrinfo.c: Move _res_hconf_init call to a
2592 better place so it is not called when nscd is used.
2593
a0edbb48
UD
2594 * nscd/connections.c: Also recognize and handle changes to the
2595 resolver configuration file.
2596
46f70b3c
UD
25972008-06-12 Ulrich Drepper <drepper@redhat.com>
2598
5bcc6c0f
UD
2599 * time/strftime.c: Pass reference to tzset_called around to handle
2600 recursive calls.
2601
2602 [BZ #6612]
2603 * time/strftime.c (__strftime_internal): Call tzset() only
2604 when printing timezone-dependent values.
2605 Based on a patch by Petr Baudis <pasky@suse.cz>.
2606
f854efd7
UD
2607 * resolv/nss_dns/dns-host.c (gaih_getanswer): Don't
2608 unconditionally use second gaih_getanswer_slice result.
2609
46f70b3c
UD
2610 * sysdeps/posix/getaddrinfo.c (gai_inet): Remove unnecessary test.
2611 (getaddrinfo): RES must always be non-NULL.
2612
9ea8bfec
UD
26132008-06-12 Jakub Jelinek <jakub@redhat.com>
2614
2615 * sysdeps/powerpc/powerpc64/fpu/s_llround.S (__llround): Avoid using
2616 cr[34] registers.
2617 * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S (__llroundf): Likewise.
2618 * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S (__llround):
2619 Likewise.
2620 * sysdeps/powerpc/powerpc32/fpu/s_lround.S (__lround): Avoid using cr3
2621 register.
2622
5a337776
UD
26232008-06-12 Ulrich Drepper <drepper@redhat.com>
2624
5228ba2f
UD
2625 * nscd/nscd.h (struct database_dyn): Add inotify_descr and clear_cache
2626 fields.
2627 * nscd/connections.c (inotify_fd): New variable.
2628 (nscd_init): Try to open an inotify descriptor.
2629 If successful, watch files for databases using inotify instead of
2630 having prune threads stat the files.
2631 (nscd_run_prune): Recognize clear_cache flag being set and call
2632 prune_cache appropriately.
2633 (main_loop_poll): Add inotify descriptor to wait set and handle the
2634 reported changes.
2635 (main_loop_epoll): Likewise.
2636 * nscd/cache.c (prune_cache): Don't stat files for databases if
2637 inotify is used.
2638 * sysdeps/unix/sysv/linux/Makefile [subdir=nscd]
2639 (CFLAGS-connections.c): Add -DHAVE_INOTIFY.
2640
5a337776
UD
2641 * nscd/grpcache.c (cache_addgr): Correctly compute size of
2642 fixed-size portion of the record.
2643 * nscd/servicescache.c (cache_addserv): Likewise.
2644 * nscd/pwdcache.c (cache_addpw): Likewise.
2645 * nscd/initgrcache.c (addinitgroupsX): Likewise.
2646
9ad58cc3
UD
26472008-06-11 Ulrich Drepper <drepper@redhat.com>
2648
2649 * nscd/mem.c (gc): Initialize obstack earlier so that if we jump
2650 out we don't use uninitialized memory.
2651
2652 * nscd/hstcache.c (cache_addhst): Send correct number of bytes to
2653 the client.
2654
c1283552
UD
26552008-06-10 Ulrich Drepper <drepper@redhat.com>
2656
2657 * resolv/nss_dns/dns-host.c (gaih_getanswer_slice): Also log and
2658 ignore T_DNAME messages.
2659 * resolv/arpa/nameser_compat.h (T_DNAME): Define.
2660
eef8a803
JJ
26612008-06-05 Jakub Jelinek <jakub@redhat.com>
2662
2663 * misc/regexp.h (compile): Use __REPB_PREFIX macro.
2664 Avoid segfault if first GETC returns eof/'\0'/'\n'.
2665
ee78670e
JJ
26662008-06-03 Jakub Jelinek <jakub@redhat.com>
2667
2668 * nscd/nscd_getserv_r.c (__nscd_getservbyport_r): Pass cp
2669 instead of portstr to nscd_getserv_r. Patch by
2670 Roman Kagan <rkagan@mail.ru>.
2671
62605cbf
UD
26722008-05-26 Jim Meyering <meyering@redhat.com>
2673
10966640 2674 Remove more useless "if" tests before "free".
62605cbf
UD
2675 * include/inline-hashtab.h (htab_delete): Likewise.
2676 * libio/freopen.c (freopen): Likewise.
2677 * libio/freopen64.c (freopen64): Likewise.
2678 * locale/programs/ld-collate.c (collate_read): Likewise.
2679 * misc/fstab.c (libc_freeres_fn): Likewise.
2680 * posix/glob.c (globfree): Likewise.
2681
f63abf58
UD
26822008-05-24 Ulrich Drepper <drepper@redhat.com>
2683
2684 * string/Makefile (strop-tests): Add memmem.
2685 * string/test-memmem.c: New file.
2686 * string/test-string.h (BUF1PAGES): Define to 1 if undefined.
2687 (test_init): Size buf1 according to BUF1PAGES.
2688
ad8a5511
JJ
26892008-05-24 Jakub Jelinek <jakub@redhat.com>
2690
2691 * libio/stdio.h (vscanf): Fix -std=c99 redirect.
2692 * stdio-common/Makefile (tests): Add scanf16 and scanf17.
2693 (CFLAGS-scanf17.c): New.
2694 * stdio-common/scanf14.c (main): Add fscanf and scanf tests.
2695 * stdio-common/scanf15.c (main): Likewise.
f63abf58
UD
2696 * stdio-common/scanf16.c: New file.
2697 * stdio-common/scanf17.c: New file.
ad8a5511 2698
e2003883
UD
26992008-05-24 Ulrich Drepper <drepper@redhat.com>
2700
2701 * resolv/res_send.c (send_dg): If we already have one of two
b5ba2c79 2702 answers and the server reports SERVFAIL, NOTIMP, or REFUSED, then
e2003883
UD
2703 use the one answer insted of failing.
2704
acbb9873
UD
27052008-02-20 Ryan S. Arnold <rsa@us.ibm.com>
2706
2707 * math/libm-test.inc (exp_test): Exclude expl(1000.0L) from
2708 being executed on PowerPC as the expected result exceeds IBM
2709 long double 128 __LDBL_MAX__.
2710
e85f1d6a
RM
27112008-05-21 Roland McGrath <roland@redhat.com>
2712
2713 * shlib-versions (sparc.*-.*-.*, sparc64.*-.*-.*): Add ABI lines.
2714
2715 * Makefile (check-data): Use $(abi-name) before other guesses.
2716 Look in $(add-ons) dirs before scripts/data/.
2717 * elf/Makefile (check-data): Likewise.
2718
2719 * scripts/soversions.awk: Grok ABI line.
2720 * Makeconfig ($(common-objpfx)soversions.mk): Likewise.
2721 Emit definition for abi-name variable.
2722
d8e763c6
UD
27232008-05-21 Ulrich Drepper <drepper@redhat.com>
2724
e92799fc 2725 * string/endian.h: Define new fixed-size hto* and *toh macros only
e85f1d6a 2726 if [__USE_BSD].
e92799fc 2727
d8e763c6
UD
2728 * iconvdata/Depend: Add localedata.
2729
009ef333
RM
27302008-05-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
2731
2732 * bits/termios.h (ONLCR): Define under [__USE_XOPEN] too.
2733
86746abb
JJ
27342008-05-08 David S. Miller <davem@davemloft.net>
2735
2736 * sysdeps/unix/sysv/linux/sparc/sparc32/setcontext.S: Use
2737 HIDDEN_JUMPTARGET.
2738 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
2739 (__SYSCALL_CLOBBERS): Remove %g* registers.
2740 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
2741 (__SYSCALL_CLOBBERS): Likewise.
2742 * scripts/data/localplt-sparc-linux-gnu.data: New file.
f63abf58 2743 * scripts/data/localplt-sparc64-linux-gnu.data: New file.
86746abb 2744
5e6f34c2
JJ
27452008-05-21 Jakub Jelinek <jakub@redhat.com>
2746
2747 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
2748 (CALL_ERRNO_LOCATION): Define.
2749 (__SYSCALL_STRING, __CLONE_SYSCALL_STRING): Use it.
2750 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
2751 (CALL_ERRNO_LOCATION): Define.
2752 (__SYSCALL_STRING, __CLONE_SYSCALL_STRING): Use it.
2753 * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S (__brk): Use
2754 HIDDEN_JUMPTARGET for __errno_location call in libc.so.
2755
4beb4532
UD
27562008-05-20 Ulrich Drepper <drepper@redhat.com>
2757
2758 * include/inline-hashtab.h (higher_prime_number): Fix type of mid
2759 variable.
2760
ed8f38ba
JJ
27612008-05-20 Jakub Jelinek <jakub@redhat.com>
2762
2763 * sysdeps/unix/sysv/linux/sparc/sparc32/sigcontextinfo.h
2764 (FIRST_FRAME_POINTER): Define.
2765
27662008-05-09 David S. Miller <davem@davemloft.net>
2767
2768 * sysdeps/sparc/sparc64/backtrace.c: New file.
2769
c1b8190a
JJ
27702008-05-14 David S. Miller <davem@davemloft.net>
2771
2772 * sysdeps/sparc/machine-gmon.h: New file.
2773 * sysdeps/sparc/sparc-mcount.S: Likewise.
2774 * sysdeps/sparc/Makefile: Add sparc-mcount target to
2775 sysdep_routines in gmon directory.
2776
84aacd93
JJ
27772008-05-19 Jakub Jelinek <jakub@redhat.com>
2778
2779 * elf/soinit.c (__EH_FRAME_BEGIN__): Remove.
2780
5908f779
UD
27812008-05-19 Ulrich Drepper <drepper@redhat.com>
2782
2783 * resolv/res_query.c (__libc_res_nquery): In case one of two
2784 answer was too short don't try to read that answer's header.
2785
2786 * resolv/res_send.c (send_dg): In case of timeout and there are
2787 two queries and one has been answered, return value indicating
2788 success.
2789
528741cb
UD
27902008-05-18 Ulrich Drepper <drepper@redhat.com>
2791
2792 * nscd/cache.c (cache_add): Take additional parameter specifying
2793 whether this is in response of a cache refill. Check alignment
2794 of package data. Revamp waking of pruning thread.
2795 (prune_cache): Small optimization.
2796 * nscd/nscd.h: Adjust cache_add prototypes.
2797 * nscd/aicache.c: Adjust cache_add calls.
2798 * nscd/grpcache.c: Likewise.
2799 * nscd/hstcache.c: Likewise.
2800 * nscd/initgrcache.c: Likewise.
2801 * nscd/pwdcache.c: Likewise.
2802 * nscd/servicescache.c: Likewise.
2803 * nscd/connections.c (restart): Really disable cache use before
2804 exec attempt. If it fails, reenable cache.
2805 (nscd_run_prune): Initialize wakeup_time. After wakeup, set wakeup
2806 time to max to be able to notice concurrent cache additions. Unlock
2807 prune_lock while performing gc. Afterwards compute wakeup time with
2808 current wakeup_time value in mind.
2809
343996c4
UD
28102008-05-17 Ulrich Drepper <drepper@redhat.com>
2811
5811d72b
UD
2812 * nscd/mem.c (gc): Avoid stack overflow when allocating move list.
2813
fa526148
UD
2814 * nscd/mem.c (gc): Correctly determine highest used array element
2815 in mark.
2816
77d40f10
UD
2817 * nscd/mem.c (markrange): Add assert to check entries are all
2818 aligned. Small cleanup in bitmap use.
2819
8884028c
UD
2820 * nscd/nscd.h (mem_in_flight): Replace blockaddr field with
2821 blockoff of type nscd_ssize_t.
2822 * nscd/mem.c (gc): Simplify markrange call for on-flight blocks.
2823 (mempoll_alloc): Record block offset and not address.
2824
b2159575
UD
2825 * nscd/mem.c (gc): Fix test for stack overuse.
2826
5c9629d2
UD
2827 * nscd/aicache.c (addhstaiX): Fix a few small problems, cleanups,
2828 more asserts.
2829
66d90496
UD
2830 * sysdeps/posix/getaddrinfo.c (gaih_inet): If nscd reports no
2831 entry is available, believe it.
2832
343996c4
UD
2833 * resolv/nss_dns/dns-host.c (gaih_getanswer_slice): If there are
2834 no answers return NSS_STATUS_NOTFOUND.
2835 (gaih_getanswer): Don't call gaih_getanswer_slice if the answer
2836 buffer does not have any content.
2837
91c8a74b
UD
28382008-05-16 Ulrich Drepper <drepper@redhat.com>
2839
74e13385
UD
2840 * string/strcasestr.c (CMP_FUNC): Use __strncasecmp, not strncasecmp.
2841
91c8a74b
UD
2842 * sysdeps/posix/getaddrinfo.c (gaih_inet): After gethostbyname4_r
2843 lookup, don't assign canon unconditionally.
2844
0caca71a
UD
28452008-05-14 Ulrich Drepper <drepper@redhat.com>
2846
2847 * string/Makefile (distribute): Add str-two-way.h.
2848
28492008-03-29 Eric Blake <ebb9@byu.net>
2850
2851 Rewrite string searches to O(n) rather than O(n^2).
2852 * string/str-two-way.h: New file. For linear fixed-allocation
2853 string searching.
2854 * string/memmem.c: New implementation.
2855 * string/strstr.c: New implementation.
2856 * string/strcasestr.c: New implementation.
2857
b194db79
UD
28582008-04-11 Paolo Bonzini <bonzini@gnu.org>
2859
2860 * posix/regcomp.c (optimize_utf8): Add a note on why we test
2861 opr.ctx_type.
2862 (calc_first): Initialize constraint field.
2863 (duplicate_node_closure): Use it instead of special casing ANCHORS.
2864 Use search_duplicated_node to avoid loops. Fix grammar.
2865 (duplicate_node): Merge constraint field for all node types.
2866 (calc_eclosure_iter): Look at constraint field for all node types.
2867 * posix/regex_internal.c (create_cd_newstate): Don't look at
2868 create_cd_newstate.
2869
c8d49f05
UD
28702008-05-14 Ulrich Drepper <drepper@redhat.com>
2871
215a8745
UD
2872 [BZ #6428]
2873 * configure.in: Don't use $CFLAGS when assembling, use $ASFLAGS.
2874
2f9a1be8
UD
2875 [BZ #6442]
2876 * string/endian.h: Add macros for fixed-size endian conversion.
2877 * bits/byteswap.h: Allow inclusion from <endian.h>.
2878 * sysdeps/i386/bits/byteswap.h: Likewise.
2879 * sysdeps/ia64/bits/byteswap.h: Likewise.
2880 * sysdeps/s390/bits/byteswap.h: Likewise.
2881 * sysdeps/x86_64/bits/byteswap.h: Likewise.
2882 * string/Makefile (tests): Add tst-endian.
2883 * string/tst-endian.c: New file.
2884
c8d49f05
UD
2885 * iconvdata/run-iconv-test.sh: Use = instead of == in test.
2886 Patch by Reuben Thomas.
2887
a754f018
UD
28882008-05-14 Joseph Myers <joseph@codesourcery.com>
2889
2890 * iconvdata/Makefile (bug-iconv6-ENV, tst-iconv7-ENV): Define.
2891
372bfcac
UD
28922008-05-14 Ulrich Drepper <drepper@redhat.com>
2893
a754f018
UD
2894 * iconvdata/bug-iconv6.c (do_test): Use de_DE.UTF-8 locale.
2895
5deca9bb
UD
2896 [BZ #6461]
2897 * iconv/gconv_simple.c (BODY for __gconv_transform_ascii_internal):
2898 Add missing braces.
2899 (BODY for __gconv_transform_internal_ascii): Likewise.
2900
af77c9b7 2901 [BZ #6472]
5fab5544
UD
2902 * sysdeps/posix/getaddrinfo.c (get_scope): Loopback addresses have
2903 to be treated like link-local addresses.
5846c4e2
UD
2904 (match_prefix): Don't treat IPv4 loopback address special when
2905 converting to v4 mapped addressed.
5fab5544 2906
0caca71a 2907 * sysdeps/posix/getaddrinfo.c (getaddrinfo): Call _res_hconf_init
1f039824 2908 if necessary.
b194db79
UD
2909 * posix/tst-rfc3484.c: Add dummy definition of _res_hconf_init.
2910 * posix/tst-rfc3484-2.c: Likewise.
2911 * posix/tst-rfc3484-3.c: Likewise.
1f039824 2912
18a74157
UD
2913 * sysdeps/posix/getaddrinfo.c: Implement handling of DCCP, UDPlite,
2914 and SCTP.
372bfcac
UD
2915
2916 * nss/getent.c (ahosts_keys_int): Handle all known socket types.
2917
2918 * inet/netinet/in.h (IPPIPPROTO_DCCP, IPPROTO_UDPLITE): Define.
2919
2920 * sysdeps/unix/sysv/linux/bits/socket.h (SOCK_DCCP): Define.
2921
f05ac8f5
UD
29222008-05-13 Ulrich Drepper <drepper@redhat.com>
2923
2924 * po/lt.po: New file. From Lituanian translation team.
2925
c9ff0187
UD
29262008-01-30 Alexandre Oliva <aoliva@redhat.com>
2927
2928 Introduce TLS descriptors for i386 and x86_64.
2929 * include/inline-hashtab.h: New file, copied from 2005's
2930 libiberty, with fix for memory leak imported afterwards by
2931 Glauber de Oliveira Costa.
2932 * elf/tlsdeschtab.h: New file.
2933 * elf/dl-reloc.c (_dl_try_allocate_static_tls): Extract from...
2934 (_dl_allocate_static_tls): ... here. Rearrange failure path.
2935 (CHECK_STATIC_TLS): Move to...
2936 * elf/dynamic-link.h: ... this file.
2937 (TRY_STATIC_TLS): New macro.
2938 * elf/dl-conflict.c (CHECK_STATIC_TLS, TRY_STATIC_TLS): Override.
2939 * elf/elf.h (R_386_TLS_GOTDESC, R_386_TLS_DESC_CALL,
2940 R_386_TLS_DESC): Define.
2941 (R_X86_64_PC64, R_X86_GOTOFF64, R_X86_64_GOTPC32): Merge from
2942 binutils.
2943 (R_X86_64_GOTPC32_TLSDESC, R_X86_64_TLSDESC_CALL,
2944 R_X86_64_TLSDESC): Define.
2945 (R_386_NUM, R_X86_64_NUM): Adjust.
2946 * sysdeps/i386/Makefile (sysdep-dl-routines, sysdep_routines,
f05ac8f5 2947 sysdep-rtld-routines): Add tlsdesc and dl-tlsdesc for elf subdir.
c9ff0187
UD
2948 (gen-as-const-headers): Add tlsdesc.sym to csu subdir.
2949 * sysdeps/i386/dl-lookupcfg.h: New file. Introduce _dl_unmap to
2950 release tlsdesc_table.
2951 * sysdeps/i386/dl-machine.h: Include dl-tlsdesc.h.
2952 (elf_machine_type_class): Mark R_386_TLS_DESC as PLT class.
2953 (elf_machine_rel): Handle R_386_TLS_DESC.
2954 (elf_machine_rela): Likewise.
2955 (elf_machine_lazy_rel): Likewise.
2956 (elf_machine_lazy_rela): Likewise.
2957 * sysdeps/i386/dl-tls.h (struct dl_tls_index): Name it.
2958 * sysdeps/i386/dl-tlsdesc.S: New file.
2959 * sysdeps/i386/dl-tlsdesc.h: New file.
2960 * sysdeps/i386/tlsdesc.c: New file.
2961 * sysdeps/i386/tlsdesc.sym: New file.
2962 * sysdeps/i386/bits/linkmap.h (struct link_map_machine): Add
2963 tlsdesc_table.
2964 * sysdeps/x86_64/Makefile (sysdep-dl-routines, sysdep_routines,
f05ac8f5 2965 sysdep-rtld-routines): Add tlsdesc and dl-tlsdesc for elf subdir.
c9ff0187
UD
2966 (gen-as-const-headers): Add tlsdesc.sym to csu subdir.
2967 * sysdeps/x86_64/dl-lookupcfg.h: New file. Introduce _dl_unmap to
2968 release tlsdesc_table.
2969 * sysdeps/x86_64/dl-machine.h: Include dl-tlsdesc.h.
2970 (elf_machine_runtime_setup): Set up lazy TLSDESC GOT entry.
2971 (elf_machine_type_class): Mark R_X86_64_TLSDESC as PLT class.
2972 (elf_machine_rel): Handle R_X86_64_TLSDESC.
2973 (elf_machine_rela): Likewise.
2974 (elf_machine_lazy_rel): Likewise.
2975 * sysdeps/x86_64/dl-tls.h (struct dl_tls_index): Name it.
2976 (__tls_get_addr): Do not declare for non-shared compiles.
2977 * sysdeps/x86_64/dl-tlsdesc.S: New file.
2978 * sysdeps/x86_64/dl-tlsdesc.h: New file.
2979 * sysdeps/x86_64/tlsdesc.c: New file.
2980 * sysdeps/x86_64/tlsdesc.sym: New file.
2981 * sysdeps/x86_64/bits/linkmap.h (struct link_map_machine): Add
2982 tlsdesc_table for both 32- and 64-bit structs.
2983
a3636e8b
UD
29842008-05-11 Ulrich Drepper <drepper@redhat.com>
2985
2986 * elf/dl-tls.c (__tls_get_addr): Optimize by moving slow path in
2987 its own function. This reduces the frame setup costs and more.
2988
a7eb802f
UD
29892008-02-11 Joseph Myers <joseph@codesourcery.com>
2990
2991 [BZ #3406]
2992 * sysdeps/ieee754/flt-32/w_expf.c (o_threshold): Correct value.
2993 * math/libm-test.inc (exp_test): Test 88.72269439697265625.
2994
3490f01d
UD
29952008-05-11 Ulrich Drepper <drepper@redhat.com>
2996
3d7eeebe
UD
2997 * io/openat.c (__openat_2): Also pass fd to __openat.
2998 * io/openat64.c (__openat64_2): Also pass fd to __openat64.
2999 Patch by Kristian Van Der Vliet <vanders@liqwyd.com>.
3000
3490f01d
UD
3001 * string/tester.c (test_memcmp): Add a few more tests.
3002 Patch by Mats Erik Andersson <ynglingatal@comhem.se>.
3003
7e71e55f
UD
30042008-05-10 Ulrich Drepper <drepper@redhat.com>
3005
3006 * nscd/cache.c (cache_add): Before returning with failure and this
3007 is the first use of the record, mark it as unusable.
3008 * nscd/aicache.c: Don't touch the dataset after cache_add returns
3009 reporting a failure.
3010 * nscd/grpcache.c: Likewise
3011 * nscd/hstcache.c: Likewise.
3012 * nscd/initgrcache.c: Likewise.
3013 * nscd/pwdcache.c: Likewise.
343996c4 3014 * nscd/servicescache.c: Likewise.
7e71e55f 3015
7396d0a9
RM
30162008-05-10 Roland McGrath <roland@redhat.com>
3017
3018 [BZ #6505]
3019 * sysdeps/unix/sysv/linux/sys/user.h: Replace with #error stub.
3020
c5ee217f
UD
30212008-05-08 David S. Miller <davem@davemloft.net>
3022
b29899ae
UD
3023 * misc/truncate64.c (truncate64): Use __truncate not truncate.
3024
c5ee217f
UD
3025 * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee751_j0l): Use __finitel.
3026 (__ieee754_y0l): Likewise.
3027 * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): Likewise.
3028 (__ieee754_y1l): Likewise.
3029 * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Use __ldexpl.
3030 * sysdeps/ieee754/ldbl-128/s_log1pl.c: Kill bogus prototypes for
3031 frexpl and ldexpl. math_private.h provides them and the latter
3032 is not even used.
3033 (__log1pl): Use __frexpl.
3034
1eb946b9
UD
30352008-05-10 Ulrich Drepper <drepper@redhat.com>
3036
3037 * include/resolv.h: Adjust __libc_res_nquery and __libc_res_nsend
3038 prototypes.
3039 * include/arpa/nameser_compat.h: Define T_UNSPEC.
3040 * nis/Versions (libnss_nis): Export _nss_nis_gethostbyname4_r.
3041 (libnss_nisplus): Export _nss_nisplus_gethostbyname4_r.
3042 * nis/nss_nis/nis-hosts.c (LINE_PARSER): Change to also handle
3043 af==AF_UNSPEC.
3044 (_nss_nis_gethostbyname4_r): New function.
3045 * nis/nss_nisplus/nisplus-hosts.c (_nss_nisplus_parse_hostent):
3046 Change to also handle af==AF_UNSPEC.
3047 (get_tablename): New function. Use it to avoid duplication.
3048 (_nss_nisplus_gethostbyname4_r): New function.
3049 * nscd/aicache.c (addhstaiX): Use gethostbyname4_r function is
3050 available.
3051 * nss/Versions (libnss_files): Export _nss_files_gethostbyname4_r.
3052 * nss/nss.h: Define struct gaih_addrtuple.
3053 * nss/nss_files/files-hosts.c (LINE_PARSER): Change to also handle
3054 af==AF_UNSPEC.
3055 (_nss_files_gethostbyname4_r): New function.
3056 * resolv/Versions (libnss_dns): Export _nss_dns_gethostbyname4_r.
3057 * resolv/gethnmaddr.c: Adjust __libc_res_nsearch and __libc_res_nquery
3058 calls.
3059 * resolv/res_query.c (__libc_res_nquery): Take two additional
3060 parameters for second answer buffer. Handle type=T_UNSPEC to mean
3061 look up IPv4 and IPv6.
3062 Change all callers.
3063 * resolv/res_send.c (__libc_res_nsend): Take five aditional parameters
3064 for an additional query and answer buffer. Pass to send_vc and
3065 send_dg.
3066 (send_vc): Send possibly two requests and receive two answers.
3067 (send_dg): Likewise.
3068 * resolv/nss_dns/dns-host.c: Adjust calls to __libc_res_nsearch and
3069 __libc_res_nquery.
3070 (_nss_dns_gethostbyname4_r): New function.
3071 (gaih_getanswer_slice): Likewise.
3072 (gaih_getanswer): Likewise.
3073 * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Adjust
3074 __libc_res_nquery call.
3075 * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyaddr_r): Likewise.
3076 (_nss_dns_getnetbyname_r): Adjust __libc_res_nsearch call.
3077 * sysdeps/posix/getaddrinfo.c: Use gethostbyname4_r function is
3078 available.
3079
b7fb703a
JJ
30802008-05-05 David S. Miller <davem@davemloft.net>
3081
3082 * sysdeps/sparc/sparc32/Makefile: Use -mcpu=v7 for initfini.s build.
3083 * sysdeps/sparc/sparc64/Makefile: Use -mcpu=v9 for initfini.s build.
3084
2256e43d
RM
30852007-09-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
3086
3087 Fix termios bit macros.
3088 Move *DLY definitions where they belong, in termios.h.
3089 Add *[0-3] definitions.
3090 Fixes confusion between VT and FF.
8bb52dbf
RM
3091 * sysdeps/mach/hurd/bits/ioctls.h (NL0, NL1, TAB0, TAB1, TAB2, CR0,
3092 CR1, CR2, CR3, FF0, FF1, BS0, BS1): Undefine these at start if they
3093 are already defined to avoid collision with termios.h.
2256e43d
RM
3094 (NLDLY, TABDLY, TAB3, CRDLY, VTDLY, BSDLY): Remove macros.
3095 * bits/termios.h [__USE_MISC || __USE_XOPEN] (NL0, NL1, TAB0,
3096 TAB1, TAB2, CR0, CR1, CR2, CR3, FF0, FF1, BS0, BS1): Likewise.
3097 [__USE_BSD || __USE_XOPEN] (OCRNL, ONOCR, ONLRET): New macros.
3098 [__USE_MISC || __USE_XOPEN] (NLDLY, NL0, NL1, TABDLY, TAB0, TAB1, TAB2,
3099 TAB3, CRDLY, CR0, CR1, CR2, CR3, FFDLY, FF0, FF1, BSDLY, BS0, BS1,
3100 VTDLY, VT0, VT1): New macros.
3101 [__USE_GNU] (OLCUC): Change value of macro.
3102 [__USE_XOPEN] (OFILL): New macro.
3103 [__USE_BSD] (CRTSCTS): Change value.
3104 (CRTS_IFLOW, CCTS_OFLOW): Change into compatibility macros.
3105 [__USE_BSD] (CDTRCTS, CHWFLOW): New macros.
3106 (B7200, B14400, B28800, B76800): New macros.
3107
4ce349e5
JJ
31082008-05-01 David S. Miller <davem@davemloft.net>
3109
a86a7a39
JJ
3110 * sysdeps/unix/sysv/linux/sparc/sparc32/ucontext_i.sym: New file.
3111 * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile [$(subdir) = stdlib]:
3112 (gen-as-const-headers): Add it.
3113 * sysdeps/unix/sysv/linux/sparc/sparc32/getcontext.S: New file.
3114 * sysdeps/unix/sysv/linux/sparc/sparc32/makecontext.c: Likewise.
3115 * sysdeps/unix/sysv/linux/sparc/sparc32/setcontext.S: Likewise.
3116 * sysdeps/unix/sysv/linux/sparc/sparc32/swapcontext.S: Likewise.
2256e43d 3117
4ce349e5
JJ
3118 * sysdeps/unix/sysv/linux/sparc/sparc32/syscall.S: Add support for
3119 six system call parameters.
3120 * sysdeps/unix/sysv/linux/sparc/sparc64/syscall.S: Likewise.
3121
89a8963d
UD
31222008-04-30 Ulrich Drepper <drepper@redhat.com>
3123
3124 * sysdeps/unix/sysv/linux/bits/resource.h: Define RUSAGE_THREAD and
3125 RUSAGE_LWP.
3126 * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Likewise.
3127 * sysdeps/unix/sysv/linux/alpha/bits/resource.h: Likewise.
3128
b5ec5fce
JJ
31292008-04-30 Jakub Jelinek <jakub@redhat.com>
3130
3131 * stdlib/tst-setcontext.c: Include unistd.h.
3132
d4e92d9e
JJ
31332008-04-25 David S. Miller <davem@davemloft.net>
3134
3135 * sysdeps/unix/sysv/linux/sparc/sparc64/semctl.c (semctl):
3136 Pass "union semun" properly in to sys_ipc, it must be passed
3137 by value, not by reference.
3138
7eb5e6c9
UD
31392008-04-22 Jakub Jelinek <jakub@redhat.com>
3140
3141 * nscd/Makefile (nscd-cflags): Set back to -fpie.
3142 * nscd/nscd.h (mem_in_flight): Add attribute_tls_model_ie.
3143 * nscd/connections.c (mem_in_flight): Likewise.
3144
3145 * nscd/nscd.h (dbs): Make hidden.
3146
3147 * sysdeps/unix/sysv/linux/times.c (__times): Fix check for EFAULT.
3148 Avoid returning -1, return 0 instead.
3149
0073dd2d
UD
31502008-04-19 Ulrich Drepper <drepper@redhat.com>
3151
3152 * resolv/res_mkquery.c (__res_nopt): Use NS_PUT16 instead of ns_put16.
3153
c52137d3
UD
31542008-04-15 Ulrich Drepper <drepper@redhat.com>
3155
3156 [BZ #5209]
3157 * sysdeps/unix/sysv/linux/times.c: New file.
3158
3159 [BZ #5381]
3160 * nscd/nscd.h: Define enum in_flight, mem_in_flight, and
3161 mem_in_flight_list variables. Add new parameter to mempool_alloc
3162 prototype.
3163 * nscd/mem.c (mempool_alloc): Take additional parameter. Initialize
3164 appropriate mem_in_flight element.
3165 (gc): Take allocations which have not yet been committed to the
3166 database into account.
3167 * nscd/cache.c (cache_add): Add new parameter to mempool_alloc call.
3168 Reset mem_in_flight before returning.
3169 * nscd/connections.c (nscd_run_worker): Initialize mem_in_flight and
3170 cue it up in mem_in_flight_list.
3171 * nscd/aicache.c: Adjust mempool_alloc call.
3172 * nscd/grpcache.c: Likewise.
3173 * nscd/hstcache.c: Likewise.
3174 * nscd/initgrcache.c: Likewise.
3175 * nscd/pwdcache.c: Likewise.
3176 * nscd/servicescache.c: Likewise.
3177 * nscd/Makefile (nscd-flags): Until ld is fixed, use -fpic instead
3178 of -fpie.
3179
3180 * nscd/connections.c (handle_request): Provide better error message
3181 in case SELinux forbids the service.
3182
3183 * version.h (VERSION): Bump to 2.8.90.
3184
39546e34
JJ
31852008-04-17 Jakub Jelinek <jakub@redhat.com>
3186
3187 * sysdeps/unix/sysv/linux/dl-osinfo.h: Include fcntl.h.
3188
cf3a8c7f
UD
31892008-04-11 Ulrich Drepper <drepper@redhat.com>
3190
9e113ecd
UD
3191 * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h (__signbitl):
3192 Also use for 32-bit.
3b6d574e
UD
3193 * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c (__nearbyintl): Use
3194 __nextafter instead of nextafter to avoid local PLT.
c3a0ead4
UD
3195 * sysdeps/powerpc/fpu/e_sqrt.c: Avoid call to fetestexcept.
3196 * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
3197
3781ec29
UD
3198 * scripts/data/localplt-powerpc64-linux-gnu.data: New file.
3199
246ec411
UD
3200 * sysdeps/powerpc/fpu/fenv_libc.h: Add libm_hidden_proto for
3201 __fe_nomask_env.
3cc56f92
UD
3202 * sysdeps/powerpc/fpu/fe_nomask.c: Add libm_hidden_def. Include
3203 <fenv_libc.h> instead of <fenv.h>.
246ec411
UD
3204 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c: Likewise.
3205 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c: Likewise.
3206
3207 * sysdeps/powerpc/bits/fenv.h: Make safe for C++.
3208
3209 * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h: New file.
3210 * sysdeps/powerpc/fpu/fegetexcept.c (__fegetexcept): Rename
3211 function from fegetexcept and make old name weak alias.
3212 * include/fenv.h: Declare __fegetexcept.
3213 * sysdeps/powerpc/fpu/fedisblxcpt.c: Use __fegetexcept instead of
3214 fegetexcept.
3215 * sysdeps/powerpc/fpu/feenablxcpt.c: Likewise.
3216 * sysdeps/powerpc/fpu/fraiseexcpt.c (__feraiseexcept): Avoid call
3217 to fetestexcept.
3218 * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (__log1pl): Use __frexpl
3219 instead of frexpl to avoid local PLT.
3220 * math/s_significandl.c (__significandl): Use __ilogbl instead of
3221 ilogbl to avoid local PLT.
3222 * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (__expm1l): Use __ldexpl
3223 instead of ldexpl to avoid local PLT.
3224 * sysdeps/ieee754/ldbl-128ibm/e_expl.c (__ieee754_expl): Use
3225 __roundl not roundl to avoid local PLT.
3226 * sysdeps/ieee754/ldbl-128/e_j0l.c: Use function names which avoid
3227 local PLTs. Use __sincosl instead of separate sinl and cosl
3228 calls.
3229 * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
3230
2dc4a2fd
UD
3231 * sysdeps/unix/sysv/linux/configure.in: Bump minimal kernel
3232 version for ppc64 to 2.4.21 since without it makecontext will fail.
3233
fe3350ee
UD
3234 * elf/tls-macros.h [__powerpc64__] (__TLS_GET_ADDR): Define according
3235 to the ABI in use.
3236 [__powerpc64__] (TLS_LD): Use __TLS_GET_ADDR instead of
3237 .__tls_get_addr.
3238 [__powerpc64__] (TLS_GD): Likewise.
cf3a8c7f 3239
c1e6b459
UD
32402007-11-20 Ryan S. Arnold <rsa@us.ibm.com>
3241
7763d4f1 3242 [BZ #4997]
c1e6b459
UD
3243 * sysdeps/powerpc/powerpc32/fpu/s_lround.S (__lround): Fixed erroneous
3244 result when x is +/-nextafter(+/-0.5,-/+1) i.e. all 1's in the
3245 mantissa.
3246 * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S (__llround):
3247 Likewise. Also account for when x is an odd number between 2^52
3248 and 2^53-1.
3249 * sysdeps/powerpc/powerpc64/fpu/s_llround.S (__llround): Likewise.
3250 * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S (__llroundf): Likewise.
3251 * math/libm-test.inc (lround_test, llround_test): Added test cases to
3252 detect aforementioned erroneous conditions.
3253
22dca1ea
UD
32542008-04-11 Jakub Jelinek <jakub@redhat.com>
3255
3256 * configure.in: Check for -fno-section-anchors in addition to
3257 -fno-toplevel-reorder.
3258
5d59f4a5
UD
32592008-04-11 Ulrich Drepper <drepper@redhat.com>
3260
3261 * include/features.h (__GLIBC_MINOR__): Bump to 8.
3262
3263 * sysdeps/powerpc/powerpc32/fpu/s_lroundf.S: Remove duplicate comment.
3264 * sysdeps/powerpc/powerpc32/power5+/fpu/s_llroundf.S: Likewise.
3265 * sysdeps/powerpc/powerpc32/power6/fpu/s_llroundf.S: Likewise.
3266 * sysdeps/powerpc/powerpc64/fpu/s_lrint.S: Likewise.
3267 * sysdeps/powerpc/powerpc64/fpu/s_lround.S: Likewise.
3268 * sysdeps/powerpc/powerpc64/fpu/s_lroundf.S: Likewise.
3269
91e32540
UD
32702008-04-11 Jakub Jelinek <jakub@redhat.com>
3271
3272 [BZ #5443]
3273 * time/era.c: Transform __libc_setlocale_lock into rwlock.
3274 * time/alt_digit.c: Likewise.
3275 * wcsmbs/wcsmbsload.c: Likewise.
3276
fd490ac8
UD
32772008-04-10 Ulrich Drepper <drepper@redhat.com>
3278
1db5b6f4
UD
3279 * version.h (VERSION): Bump to 2.8.
3280
fd490ac8
UD
3281 * timzeone/asia: Update from tzdata2008b.
3282 * timezone/backward: Likewise.
3283 * timezone/europe: Likewise.
3284 * timezone/northamerica: Likewise.
3285 * timezone/southamerica: Likewise.
3286 * timezone/iso3166.tab: Likewise.
3287 * timezone/leapseconds: Likewise.
3288 * timezone/zone.tab: Likewise.
3289 * timezone/private.h: Update from tzcode2008a.
3290 * timezone/zdump.c: Likewise.
3291 * timezone/zic.c: Likewise.
3292
153cf972
UD
32932008-01-24 Steven Munroe <sjmunroe@us.ibm.com>
3294
3295 [BZ #5741]
3296 * sysdeps/powerpc/powerpc64/dl-machine.h (PPC_DCBT, PPC_DCBF):
3297 Define additonal Data Cache Block instruction macros.
3298 (elf_machine_fixup_plt): Add dcbt for opd and plt entries.
3299 Replace dcbst with dcbf and sync with sync/isync.
3300
d2207f32
UD
33012008-02-21 Alan Modra <amodra@bigpond.net.au>
3302
3303 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_type_class):
3304 Always set ELF_RTYPE_CLASS_PLT.
3305 (elf_machine_lookup_noexec_p, elf_machine_lookup_noplt_p): Delete.
3306
13d83320
UD
33072008-04-03 Steven Munroe <sjmunroe@us.ibm.com>
3308
3309 * sysdeps/powerpc/powerpc32/power4/hp-timing.c: New file.
3310 * sysdeps/powerpc/powerpc32/power4/hp-timing.h: New file.
3311 * sysdeps/powerpc/powerpc64/hp-timing.h [_ARCH_PWR4] (HP_TIMING_NOW):
3312 For ISA 2.01 and later replace mftb with mfspr 268.
3313
5f7aead5
UD
33142008-02-19 Steven Munroe <sjmunroe@us.ibm.com>
3315
3316 [BZ #5768]
3317 * sysdeps/powerpc/fpu/Makefile (libm-tests): Add test-powerpc-snan.
3318 * sysdeps/powerpc/fpu/test-powerpc-snan.c: New file.
3319
33202008-02-18 Steven Munroe <sjmunroe@us.ibm.com>
3321
3322 [BZ #5768]
3323 * sysdeps/powerpc/powerpc32/fpu/s_isnan.S: New file.
3324 * sysdeps/powerpc/powerpc32/fpu/s_isnan.c: Removed.
3325 * sysdeps/powerpc/powerpc64/fpu/s_isnan.S: New file.
3326 * sysdeps/powerpc/powerpc64/fpu/s_isnan.c: Removed.
3327
117df5d9
JJ
33282008-04-10 Jakub Jelinek <jakub@redhat.com>
3329
3330 * stdlib/tst-makecontext.c (othervar): New variable.
3331 (cf): Test sign extending the argument to long.
3332
3b32d8a2
UD
33332008-03-03 Steven Munroe <sjmunroe@us.ibm.com>
3334
3335 * sysdeps/powerpc/powerpc32/power5/fpu/s_isnan.S: New file.
3336 * sysdeps/powerpc/powerpc32/power5/fpu/s_isnanf.S: New file.
3337 * sysdeps/powerpc/powerpc32/power6/fpu/s_isnan.S: New file.
3338 * sysdeps/powerpc/powerpc32/power6/fpu/s_isnanf.S: New file.
3339 * sysdeps/powerpc/powerpc64/power5/fpu/s_isnan.S: New file.
3340 * sysdeps/powerpc/powerpc64/power6/fpu/s_isnan.S: New file.
3341 * sysdeps/powerpc/powerpc64/power6x/fpu/s_isnan.S: New file.
3342
9fb11d4c
UD
33432008-02-22 Alan Modra <amodra@bigpond.net.au>
3344
3345 * elf/Makefile (tests): Substitute tests-vis-yes here.
3346 (tests-vis-yes): Delete.
3347 (modules-name, modules-vis-yes): Similarly.
3348
facd1d8e
UD
33492008-02-12 Pete Eberlein <eberlein@us.ibm.com>
3350
3351 [BZ #4407]
3352 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
3353 Preserve sign in signgamp when x is zero.
3354
aece054b
UD
33552007-10-26 Steven Munroe <sjmunroe@us.ibm.com>
3356
3357 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.S: New File.
3358 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.c: Removed.
3359 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.S: New File.
3360 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.c: Removed.
3361 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt.S: New File.
3362 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf.S: New File.
3363
6c30d38f
UD
33642008-04-09 Ulrich Drepper <drepper@redhat.com>
3365
21208604 3366 [BZ #4314]
13d83320
UD
3367 * sysdeps/i386/i686/memcpy.S: Optimize copying of equally aligned
3368 buffers.
21208604 3369
2f611ada 3370 [BZ #5209]
d1235fdf
UD
3371 * sysdeps/unix/sysv/syscalls.list: The times syscall doesn't have
3372 a reserved error value.
2f611ada 3373
6c30d38f
UD
3374 * stdlib/tst-makecontext.c: Change parameter to cf to negative
3375 value to check for correct sign extension.
3376
3377 [BZ #5436]
3378 * sysdeps/unix/sysv/linux/x86_64/makecontext.c (__makecontext):
3379 Copy 64-bit parameter values even though this is not required in
3380 the standard.
3381
3382 * sysdeps/unix/sysv/linux/x86_64/vfork.S (__vfork): Record return
3383 PC save.
3384
de1bbf68
UD
33852008-02-14 Daniel Jacobowitz <dan@codesourcery.com>
3386
3387 * sysdeps/unix/sysv/linux/i386/vfork.S (__vfork): Record return
3388 PC save.
3389
9aef35a5
UD
33902008-04-09 Jakub Jelinek <jakub@redhat.com>
3391
3392 * nss_files/files-XXX.c (_nss_files_getXXent_r): Restore saved errno.
3393
a7925a24
UD
33942008-04-09 Ulrich Drepper <drepper@redhat.com>
3395
3396 [BZ #5998]
3397 * libio/iofwrite.c (_IO_fwrite): Return correct count if flushing
3398 in line-buffered stream failed.
3399 * libio/iofwrite_u.c (fwrite_unlocked): Likewise.
3400
7b61ef24
UD
34012008-04-08 Ulrich Drepper <drepper@redhat.com>
3402
c2a684a4
UD
3403 [BZ #6024]
3404 * scripts/abi-versions.awk: If the version specified by
3405 --enable-oldest-abi is older than the first version for this
3406 architecture, use the default version.
3407
7b61ef24
UD
3408 * locale/programs/ld-collate.c (collate_read): Ignore script lines
3409 as well when ignoring the whole category.
3410
f6d749f0
UD
34112008-04-07 Ulrich Drepper <drepper@redhat.com>
3412
3413 [BZ #6042]
3414 * sysdeps/unix/sysv/linux/net/ethernet.h: Add a few more
3415 ETHERTYPE_* definitions.
3416 Patch partly by Aurelien Jarno <aurelien@aurel32.net>.
3417
1e99aede
JJ
34182008-04-07 Jakub Jelinek <jakub@redhat.com>
3419
3420 * stdlib/mbtowc.c (__no_r_state): Remove.
3421 (mbtowc): New static state variable. Use it instead of
3422 __no_r_state.
3423 * stdlib/wctomb.c (__no_r_state): Remove extern decl.
3424 (__wctomb_state): New hidden variable.
3425 (wctomb): Use __wctomb_state instead of __no_r_state.
3426 * debug/wctomb_chk.c (__no_r_state): Remove extern decl.
3427 (__wctomb_state): New extern decl.
3428 (__wctomb_chk): Use __wctomb_state instead of __no_r_state.
3429
fcf90e0a
UD
34302008-04-07 Ulrich Drepper <drepper@redhat.com>
3431
3432 [BZ #5475]
3433 * resolv/res_init.c: Handle scope IDs in resolv.conf.
3434
ae39e102
JJ
34352008-04-07 Jakub Jelinek <jakub@redhat.com>
3436
3437 * malloc/mtrace.pl: Use $@ instead of $* to keep perl 5.10 quiet.
3438
2503dd30
UD
34392008-04-06 Ulrich Drepper <drepper@redhat.com>
3440
3441 * po/nl.po: Update from translation team.
3442
3eb9c809
UD
34432008-03-31 Ulrich Drepper <drepper@redhat.com>
3444
3445 [BZ #6007]
3446 * string/strfry.c: Handle empty strings again.
3447
9a69db29
UD
34482008-03-30 Ulrich Drepper <drepper@redhat.com>
3449
3450 [BZ #5443]
3451 * intl/dcigettext.c (__dcigettext): Get reader lock for locale data
3452 before looking for translation.
3453 * locale/duplocale.c: Transform __libc_setlocale_lock into rwlock.
3454 * locale/freelocale.c: Likewise.
3455 * locale/newlocale.c: Likewise.
3456 * locale/setlocale.c: Likewise.
3457 Based partially on a patch by ryo@np.css.fujitsu.com.
3458
2ecc7d93
UD
34592008-03-30 Jakub Jelinek <jakub@redhat.com>
3460
3461 * intl/dcigettext.c (_nl_find_msg): Reread nconversions after
3462 acquiring wrlock. Do conv_tab allocation while holding lock.
3463 * intl/Makefile: Add rules to build and run tst-gettext6.
3464 * intl/tst-gettext6.c: New test.
3465 * intl/tst-gettext6.sh: New file.
3466
221e5230
UD
34672008-03-30 Ulrich Drepper <drepper@redhat.com>
3468
faa091c6
UD
3469 * po/nl.po: Update from translation team.
3470
221e5230
UD
3471 * sysdeps/unix/opendir.c (__alloc_dir): If allocation fails for size
3472 provided through st_blksize, try the default size before giving up.
3473
1c272665
UD
34742008-03-29 Ulrich Drepper <drepper@redhat.com>
3475
43f6bec1
UD
3476 * stdio-common/vfprintf.c (vfprintf): Correct overflow test.
3477
e8a32126
UD
3478 [BZ #5939]
3479 * sysdeps/posix/tempname.c (__gen_tempname): Correct flag selection.
3480
1e489af9
UD
3481 * posix/getopt.c (_getopt_internal_r): Remove old POSIX-demanded
3482 error message. POSIX today does not require the messages to be in
3483 a specific form. Suggested by Jim Meyering <jim@meyering.net>.
3484
1d20f7f8
UD
3485 [BZ #5979]
3486 * sunrpc/auth_unix.c: Unify printed strings.
3487 * sunrpc/clnt_tcp.c: Likewise.
3488 * sunrpc/clnt_udp.c: Likewise.
3489 * sunrpc/clnt_unix.c: Likewise.
3490 * sunrpc/svc_tcp.c: Likewise.
3491 * sunrpc/svc_udp.c: Likewise.
3492 * sunrpc/svc_unix.c: Likewise.
3493 * sunrpc/xdr.c: Likewise.
3494 * sunrpc/xdr_array.c: Likewise.
3495 * sunrpc/xdr_rec.c: Likewise.
3496 * sunrpc/xdr_ref.c: Likewise.
3497 * locale/programs/ld-time.c (time_finish): Unify messages.
3498 * locale/programs/locfile.c (handle_copy): Fix typo.
3499 * nscd/nscd.c (options): Fix typo.
3500
1c272665
UD
3501 [BZ #5995]
3502 * stdlib/strtod_l.c: Use correct sign for result in one more
3503 underflow case.
3504 Patch by Eric Blake <ebb9@byu.net>.
3505
48cc060e
UD
35062008-03-27 Jakub Jelinek <jakub@redhat.com>
3507
3508 * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Add open
3509 and creat system calls.
3510 * sysdeps/unix/sysv/linux/alpha/syscalls.list: Remove open system
3511 call.
3512 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Remove open and creat
3513 system calls.
3514 * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: Likewise.
3515 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
3516 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
3517
f96853be
UD
35182008-03-27 Ulrich Drepper <drepper@redhat.com>
3519
3520 * sysdeps/unix/sysv/linux/bits/local_lim.h: Undefined ARG_MAX if
3521 <linux/limits.h> has defined it.
3522 * sysdeps/unix/sysv/linux/sys/param.h: Define NCARGS to the legacy
3523 ARG_MAX value and prevent ARG_MAX from being defined by the kernel
3524 headers.
3525 * sysdeps/unix/sysv/linux/sysconf.c: Define legacy_ARG_MAX and use
3526 it instead of ARG_MAX.
3527
fde15fdc
UD
35282008-03-25 Jakub Jelinek <jakub@redhat.com>
3529
3530 * posix/gai.conf: Fix comment for scope nullbits.
3531 * sysdeps/posix/getaddrinfo.c (gaiconf_init): If /bits is not present,
3532 default to 128 bits for v4 mapped addresses.
3533
87b9b50f
UD
35342008-03-07 Martin Schwidefsky <schwidefsky@de.ibm.com>
3535
3536 * sysdeps/s390/fpu/fegetenv.c (fegetenv): Remove PTRACE_PEEKUSER
3537 ptrace call to get the ieee_instruction_pointer from the kernel.
3538 * sysdeps/s390/fpu/fesetenv.c (fesetenv): Remove PTRACE_POKEUSER
3539 ptrace call to set the ieee_instructtion_pointer.
3540 * sysdeps/unix/sysv/linux/s390/sys/user.h (struct _user_regs_struct):
3541 Add comment that ieee_instruction_pointer is always 0.
3542
af0498dc
UD
35432008-03-09 Andreas Jaeger <aj@suse.de>
3544
3545 [BZ #5857]
3546 * sysdeps/ieee754/dbl-64/s_rint.c (__rint): Handle j0==18.
3547 * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Likewise.
3548 Patch by Mark Elliott <mark.h.elliott@lmco.com>.
3549
3550 * math/libm-test.inc (nearbyint_test): Add new test cases from #5857.
3551 (rint_test): Likewise.
3552
0ab7632d
UD
35532008-03-24 Ulrich Drepper <drepper@redhat.com>
3554
0facd3df
UD
3555 * nis/nis_call.c (nis_server_cache_search): Save errno around stat
3556 call.
3557 (__nisfind_server): Similar for open readColdStartFile call.
3558 Patch partially by Jim Meyering.
3559 * nss/nss_files/files-XXX.c (_nss_files_getXXent_r): Save errno
3560 around internal_setent call.
3561
7e570c55
UD
3562 * po/vi.po: New Vietnamese translation.
3563
e093c247
UD
3564 * sysdeps/unix/sysv/linux/adjtime.c: Correctly use
3565 ADJ_OFFSET_SS_READ.
3566
0ab7632d
UD
3567 * sysdeps/unix/sysv/linux/bits/sched.h: Add new CLONE_* flags,
3568 remove CLONE_STOPPED.
3569
0726cdf7
UD
35702008-02-10 Jim Meyering <meyering@redhat.com>
3571
3572 Remove useless "if" before "free":
3573 * elf/ldconfig.c (parse_conf_include): Likewise.
3574 * gmon/gmon.c (weak_alias): Likewise.
3575 * iconv/gconv_conf.c (__gconv_get_path): Likewise.
3576 * inet/rcmd.c (__validuser2_sa): Likewise.
3577 * intl/bindtextdom.c (set_binding_values): Likewise.
3578 * intl/loadmsgcat.c (_nl_load_domain, _nl_unload_domain): Likewise.
3579 * libio/genops.c (save_for_backup): Likewise.
3580 * libio/wgenops.c (save_for_wbackup): Likewise.
3581 * locale/programs/ld-collate.c (collate_read): Likewise.
3582 * locale/programs/linereader.c (get_string): Likewise.
3583 * nis/nss_compat/compat-pwd.c (give_pwd_free): Likewise.
3584 * nis/nss_compat/compat-spwd.c (give_spwd_free): Likewise.
3585 * resolv/res_debug.c (do_section): Likewise.
3586 * sunrpc/xdr_sizeof.c (x_inline, xdr_sizeof): Likewise.
3587 * sysdeps/mach/hurd/if_index.c (libc_hidden_def): Likewise.
3588 * sysdeps/posix/sprofil.c (__sprofil): Likewise.
3589 * time/lc-time-cleanup.c (_nl_cleanup_time): Likewise.
3590 * time/tzset.c (tzset_internal): Likewise.
3591
354b7527
JJ
35922008-03-18 Jakub Jelinek <jakub@redhat.com>
3593
3594 * sysdeps/unix/sysv/linux/dl-sysdep.h: Use __ASSEMBLER__ instead
3595 of ASSEMBLER.
3596
ca668b29
UD
35972008-03-11 Ulrich Drepper <drepper@redhat.com>
3598
3599 [BZ #5903]
3600 * iconv/iconv_charmap.c (charmap_conversion): Pass name of output file
3601 not stream for output file. Open output file here.
3602 * iconv/iconv_prog.c (process_lock): Take pointer to output stream
3603 and output file name.
3604 (process_fd): Likewise.
3605 (process_file): Likewise.
3606 (main): Adjust callers of changed functions.
3607 * iconv/iconv_prog.h: Adjust prototype.
3608
f3dc3415
AJ
36092008-03-09 Andreas Jaeger <aj@suse.de>
3610
3611 [BZ #5753]
3612 * sysdeps/ia64/ieee754.h: Use protected namespace
3613 __BIG_ENDIAN/__LITTLE_ENDIAN.
3614 * sysdeps/ieee754/ieee754.h: Likewise.
3615 Patch by Aurelien Jarno <aurelien@aurel32.net>.
3616
a8fd84d4
RM
36172008-03-08 Roland McGrath <roland@frob.com>
3618
2b965f1b
RM
3619 * hurd/hurdsig.c (_hurd_internal_post_signal): When normal rules would
3620 ignore a signal that came from a machine exception, treat it as a
3621 fatal core-dump signal instead.
3622 Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>.
3623
a8fd84d4
RM
3624 * sysdeps/mach/hurd/i386/trampoline.c (_hurd_setup_sighandler):
3625 Clear DF bit in thread state's eflags.
3626 Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>.
3627
368a8dec
UD
36282008-03-08 Ulrich Drepper <drepper@redhat.com>
3629
b3278554
UD
3630 [BZ #5774]
3631 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Consume closing brace
c6c00e0d 3632 of NAN(...) sequence.
b3278554
UD
3633 * stdlib/Makefile (tests): Add tst-strtod6.
3634 * stdlib/tst-strtod6.c: New file.
3635
3636 * inet/inet6_opt.c (inet6_opt_init): Check extlen for overflow.
3637
2127a186
UD
3638 [BZ #5762]
3639 * posix/getopt.c (_getopt_internal_r): Clarify error message by
3640 putting offending option character in quotes. Clean up error
3641 messages.
3642 * po/be.po: Adjust msgstr in translation file.
3643 * po/bg.po: Likewise.
3644 * po/ca.po: Likewise.
3645 * po/cs.po: Likewise.
3646 * po/da.po: Likewise.
3647 * po/de.po: Likewise.
3648 * po/es.po: Likewise.
3649 * po/fr.po: Likewise.
3650 * po/hr.po: Likewise.
3651 * po/ko.po: Likewise.
3652 * po/nl.po: Likewise.
3653 * po/rw.po: Likewise.
3654 * po/sk.po: Likewise.
3655 * po/sv.po: Likewise.
3656 * po/tr.po: Likewise.
3657 * po/zh_CN.po: Likewise.
3658 * po/zh_TW.po: Likewise.
3659
725c0c87
UD
3660 [BZ #5760]
3661 * inet/inet6_opt.c (inet6_opt_init): Fix ip6h_len computation.
3662 Patch by Roland Bless <roland@bless.de>.
3663
368a8dec
UD
3664 * sysdeps/unix/sysv/linux/dl-sysdep.c: Avoid unnecessary code for
3665 .o file.
3666 * elf/Makefile (routines): Add dl-sysdep.
3667 (elide-routines.os): Likewise.
3668
78c2bf0e
UD
36692008-03-07 Ulrich Drepper <drepper@redhat.com>
3670
7c22c7ec
UD
3671 [BZ #5786]
3672 * elf/dl-sysdep.c: Undefine ROUND after use.
3673 * sysdeps/generic/ldsodefs.h [HAVE_DL_DISCOVER_OSVERSION]
3674 (struct rtld_global_ro): Add _dl_tls_get_addr_soft element.
3675 * elf/rtld.c (rtld_global_ro): Initialize _dl_discover_osversion.
3676 * sysdeps/unix/sysv/linux/dl-osinfo.h: Move _dl_discover_osversion
3677 to ...
3678 * sysdeps/unix/sysv/linux/dl-sysdep.c: ...here.
3679 * sysdeps/unix/sysv/linux/dl-sysdep.h: Declare _dl_discover_osversion
3680 if necessary.
3681 * sysdeps/unix/sysv/linux/sysconf.c: Handle _SC_ARG_MAX here.
3682
93025f93
UD
3683 * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Add
3684 _dl_tls_get_addr_soft element.
3685 * elf/rtld.c (rtld_global_ro): Initialize _dl_tls_get_addr_soft.
3686 * elf/Versions (ld): Don't export _dl_tls_get_addr_soft.
3687 * dlfcn/dlinfo.c (dlinfo_doit): Access dl_tls_get_addr_soft through
3688 GLRO.
3689 * elf/dl-iteratephdr.c (__dl_iterate_phdr): Likewise.
3690 * elf/dl-tls.c (_dl_tls_get_addr_soft): Use attribute_hidden instead
3691 of internal_function.
3692
72f10127
UD
3693 * stdlib/Makefile (aux): Add tens_in_limb.
3694 * stdlib/strtod_l.c: Move _tens_in_limb definition to...
3695 * stdlib/tens_in_limb.c: ...here. New file.
3696
443db178
UD
3697 [BZ #5778]
3698 * sysdeps/unix/sysv/linux/pathconf.h: Declare
3699 __statfs_chown_restricted.
3700 * sysdeps/unix/sysv/linux/fpathconf.c: Call __statfs_chown_restricted
3701 for _PC_CHOWN_RESTRICTED.
3702 * sysdeps/unix/sysv/linux/pathconf.c: Likewise.
3703 Implement __statfs_chown_restricted.
3704 * sysdeps/unix/sysv/linux/bits/posix_opt.h: Change
3705 _POSIX_CHOWN_RESTRICTED value to zero.
c71665ad
UD
3706 * io/tst-fchownat.c: Correctly handle _POSIX_CHOWN_RESTRICTED
3707 defined to zero.
443db178 3708
78c2bf0e
UD
3709 * sysdeps/x86_64/rtld-memset.c: New file.
3710
443db178 37112008-02-26 Harsha Jagasia <harsha.jagasia@amd.com>
78c2bf0e
UD
3712
3713 * sysdeps/x86_64/cacheinfo.c (NOT_USED_RIGHT_NOW): Remove ifdef guards.
3714
3715 * sysdeps/x86_64/memset.S: Rewrite non-SSE code path as tuned for AMD
3716 Barcelona machine. Make default fall through branch of
3717 __x86_64_preferred_memory_instruction check as the integer code path.
3718
37192007-10-15 H.J. Lu <hongjiu.lu@intel.com>
3720
3721 * sysdeps/x86_64/cacheinfo.c
3722 (__x86_64_preferred_memory_instruction): New variable.
3723 (init_cacheinfo): Initialize __x86_64_preferred_memory_instruction.
3724
3725 * sysdeps/x86_64/memset.S: Rewrite.
3726
dff37515
UD
37272008-03-04 Jakub Jelinek <jakub@redhat.com>
3728
3729 * include/stdio.h (__asprintf_chk, __dprintf_chk,
3730 __obstack_printf_chk): New prototypes.
3731 (__vasprintf_chk, __vdprintf_chk,
3732 __obstack_vprintf_chk): Likewise.
3733 Add libc_hidden_proto.
3734 * libio/obprintf.c
3735 (_IO_obstack_jumps): No longer static, add attribute_hidden.
3736 * libio/bits/stdio-ldbl.h (__asprintf_chk, __dprintf_chk,
3737 __obstack_printf_chk, __vasprintf_chk, __vdprintf_chk,
3738 __obstack_vprintf_chk): Add __LDBL_REDIR_DECL.
3739 * libio/bits/stdio2.h (__asprintf_chk, __dprintf_chk,
3740 __obstack_printf_chk, __vasprintf_chk, __vdprintf_chk,
3741 __obstack_vprintf_chk): New prototypes.
3742 (asprintf, __asprintf, dprintf, obstack_printf, vasprintf, vdprintf,
3743 obstack_vprintf): New inlines.
3744 * debug/dprintf_chk.c: New file.
3745 * debug/vdprintf_chk.c: New file.
3746 * debug/asprintf_chk.c: New file.
3747 * debug/vasprintf_chk.c: New file.
3748 * debug/obprintf_chk.c: New file.
3749 * debug/tst-chk1.c (do_test): Add asprintf and obstack_printf tests.
3750 * debug/Versions (__asprintf_chk, __dprintf_chk, __obstack_printf_chk,
3751 __vasprintf_chk, __vdprintf_chk, __obstack_vprintf_chk): Export
3752 @@GLIBC_2.8.
3753 * debug/Makefile: Build asprintf_chk, vasprintf_chk, dprintf_chk,
3754 vdprintf_chk and obprintf_chk, set CFLAGS for them.
3755 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c (__nldbl___vasprintf_chk,
3756 __nldbl___vdprintf_chk, __nldbl___obstack_vprintf_chk): Add
3757 libc_hidden_proto.
3758 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl___vasprintf_chk,
3759 __nldbl___vdprintf_chk, __nldbl___obstack_vprintf_chk): New prototypes.
3760 * sysdeps/ieee754/ldbl-opt/Versions (__nldbl___asprintf_chk,
3761 __nldbl___vasprintf_chk, __nldbl___dprintf_chk, __nldbl___vdprintf_chk,
3762 __nldbl___obstack_printf_chk, __nldbl___obstack_vprintf_chk): Export
3763 @@GLIBC_2.8.
3764 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add asprintf_chk,
3765 vasprintf_chk, dprintf_chk, vdprintf_chk, obstack_printf_chk and
3766 obstack_vprintf_chk.
3767 * sysdeps/ieee754/ldbl-opt/nldbl-obstack_vprintf_chk.c: New file.
3768 * sysdeps/ieee754/ldbl-opt/nldbl-dprintf_chk.c: New file.
3769 * sysdeps/ieee754/ldbl-opt/nldbl-obstack_printf_chk.c: New file.
3770 * sysdeps/ieee754/ldbl-opt/nldbl-asprintf_chk.c: New file.
3771 * sysdeps/ieee754/ldbl-opt/nldbl-vdprintf_chk.c: New file.
3772 * sysdeps/ieee754/ldbl-opt/nldbl-vasprintf_chk.c: New file.
3773
d835f136
UD
37742008-03-04 Ulrich Drepper <drepper@redhat.com>
3775
a4bb445a
UD
3776 [BZ #5779]
3777 * misc/sys/queue.h: Add STAILQ_CONCAT and TAILQ_CONCAT definitions.
3778 Patch by Roy Marples <roy@marples.name>.
3779
c958a6a4
UD
3780 [BZ #5736]
3781 * malloc/malloc.c: Fix typo in comment.
3782
d835f136
UD
3783 [BZ #5627]
3784 * locale/iso-639.def: Add Shuswap.
3785
65b4743a
UD
37862008-02-25 Jakub Jelinek <jakub@redhat.com>
3787
3788 [BZ #5790]
3789 * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr2_r): Don't
3790 overwrite *h_errnop/*errnop values from getanswer_r in case of
3791 failure.
3792
3868fb6e
UD
37932008-03-03 Ulrich Drepper <drepper@redhat.com>
3794
27c377dd
UD
3795 [BZ #5818]
3796 * nscd/connections.c (dbs): Add initializers for .suggested_module.
3797 (verify_persistent_db): Remove one unnecessary test and add a new one
3798 for bad configuration.
3799 (nscd_init): Improve error reported when persistent database cannot
3800 be reused.
3801 * nscd/nscd.h (DEFAULT_SUGGESTED_MODULE): Define.
3802 * nscd/nscd_conf.c (nscd_parse_file): Provide default values for
3803 .suggested_module and .max_db_size and case config file says the
3804 values are zero.
3805 * nscd/nscd_helper.c (get_mapping): Fail if hash table module is zero.
3806
0f749099
UD
3807 [BZ #5854]
3808 * nis/ypclnt.c (yp_order): Fix handling of return value of
3809 do_ypcall_tr call.
3810 Patch by Jeff Moyer <jmoyer@redhat.com>.
3811
3868fb6e
UD
3812 * po/fr.po: Update from translation team.
3813
268dbf25
AJ
38142008-02-22 Andreas Jaeger <aj@suse.de>,
3815 Carlos O'Donell <carlos@systemhalted.org>
3816
3817 [BZ #5012]
3818 * FAQ.in: Describe why glibc needs to be compiled with
3819 optimization.
3820
73b82641
RM
38212008-02-19 Roland McGrath <roland@redhat.com>
3822
3823 * elf/elf.h (SHT_GNU_ATTRIBUTES): New macro.
3824
c9136393
UD
38252008-02-15 Ulrich Drepper <drepper@redhat.com>
3826
3827 [BZ #5737]
3828 * resolv/netdb.h: Make NI_MAXHOST and NI_MAXSERV available when
3829 __USE_MISC is defined.
3830
2e3e9ff1
UD
38312008-02-10 Ulrich Drepper <drepper@redhat.com>
3832
3833 * sysdeps/unix/sysv/linux/sys/timerfd.h: New file.
3834 * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers): Add
3835 sys/timerfd.h.
3836 * sysdeps/unix/sysv/linux/syscalls.list: Add timerfd_create,
3837 timerfd_gettime, timerfd_settime.
3838 * sysdeps/unix/sysv/linux/Versions: Add timerfd_create,
3839 timerfd_gettime, timerfd_settime for GLIBC_2.8.
3840
85202a2b
RM
38412008-02-08 Roland McGrath <roland@redhat.com>
3842
3843 * elf/elf.h (NT_PPC_SPE): New macro.
3844
708ef8a4
RM
38452008-02-06 Roland McGrath <roland@redhat.com>
3846
3847 * Makerules ($(common-objpfx)sysd-rules):
3848 Depend on $(sysdep-makeconfigs).
3849
363a641b
RM
38502008-01-31 Roland McGrath <roland@redhat.com>
3851
67fbfa5c
RM
3852 [BZ #5442]
3853 * configure.in: Use -print-file-name if it yields a directory,
3854 for each of include and include-fixed.
3855 * configure: Regenerated.
3856
363a641b
RM
3857 * Makeconfig (sysd-rules-targets): New variable.
3858 * sysdeps/unix/make-syscalls.sh: Use it in the rules emitted.
3859 * sysdeps/unix/Makefile (omit-deps): Append variants for each target.
3860
0f0f9610
RM
38612008-01-30 Roland McGrath <roland@redhat.com>
3862
7bd00dbf
RM
3863 * manual/libc.texinfo: Update back-cover text.
3864
0f0f9610
RM
3865 * elf/elf.h (NT_386_TLS): New macro.
3866
16cd816f
RM
38672008-01-29 Roland McGrath <roland@redhat.com>
3868
3869 * Makeconfig (sysd-rules-patterns): New variable.
3870 * Makerules ($(common-objpfx)sysd-rules): Drive the loop from that.
3871 (check-inhibit-asm): New canned sequence, replaces ...
3872 (open-check-inhibit-asm, close-check-inhibit-asm): ... these, removed.
3873 * elf/rtld-Rules ($(objpfx)rtld-%.os): Use $(rtld-CPPFLAGS) in commands.
3874 (rtld-CPPFLAGS): Renamed from CPPFLAGS-rtld.
3875 (CFLAGS-rtld): Variable removed.
3876
f641ffcc
RM
38772008-01-24 Roland McGrath <roland@redhat.com>
3878
3879 * configure.in: Let configure fragments set base_os.
3880 * configure: Regenerated.
3881
b7e26885
UD
38822008-01-22 Ulrich Drepper <drepper@redhat.com>
3883
3884 * po/ko.po: Update from translation team.
3885
b4b166af
UD
38862008-01-12 H.J. Lu <hongjiu.lu@intel.com>
3887
3888 * sysdeps/i386/fpu/ftestexcept.c (fetestexcept): Use short for fnstsw.
3889
f66def9d
AJ
38902008-01-12 Andreas Jaeger <aj@suse.de>
3891
3892 [BZ #5040]
3893 * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h (enum EPOLL_EVENTS):
3894 Add EPOLLRDHUP.
3895
d3bc5e77
RM
38962008-01-20 Samuel Thibault <samuel.thibault@ens-lyon.org>
3897
3898 * hurd/hurdsock.c (_hurd_socket_server): Return the standard
3899 error EAFNOSUPPORT rather than non-standard EPFNOSUPPORT.
3900 * sunrpc/bindrsvprt.c (bindresvport): Likewise.
3901
4c533566
UD
39022007-10-23 Alexandre Oliva <aoliva@redhat.com>
3903
3904 * include/link.h (FORCED_DYNAMIC_TLS_OFFSET): Define.
3905 * elf/dl-close.c (_dl_close): Check for it.
3906 * elf/dl-reloc.c (CHECK_STATIC_TLS): Likewise.
3907 (_dl_allocate_static_tls): Likewise.
3908 * elf/dl-tls.c (_dl_allocate_tls_init): Likewise.
3909 (__tls_get_addr): Protect from race conditions in setting l_tls_offset
3910 to it.
3911 * elf/tst-tls16.c: New file.
3912 * elf/tst-tlsmod16a.c: New file.
3913 * elf/tst-tlsmod16b.c: New file.
3914 * elf/Makefile: Add rules to build and run tst-tls16.
3915
a53d3f82
UD
39162008-01-16 Ulrich Drepper <drepper@redhat.com>
3917
a0f6c236
UD
3918 [BZ #5628]
3919 * bits/shm.h: Fix comment describing shmid_ds.
3920 * sysdeps/gnu/bits/shm.h: Likewise.
3921 * sysdeps/unix/sysv/linux/alpha/bits/shm.h: Likewise.
3922 * sysdeps/unix/sysv/linux/bits/shm.h: Likewise.
3923 * sysdeps/unix/sysv/linux/ia64/bits/shm.h: Likewise.
3924 * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Likewise.
3925 * sysdeps/unix/sysv/linux/s390/bits/shm.h: Likewise.
3926 * sysdeps/unix/sysv/linux/sh/bits/shm.h: Likewise.
3927 * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Likewise.
3928 * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: Likewise.
3929 Patch by Hareesh Nagarajan <hareesh.nagarajan@gmail.com>.
3930
a53d3f82
UD
3931 [BZ #5607]
3932 * conform/data/fcntl.h-data: Fix posix_fadvise and posix_fallocate
3933 prototypes.
3934 * conform/data/limits.h-data: Adjust limits changed in v6 and add
3935 additional suffixes.
3936 * conform/data/mqueue.h-data: Fix typo in mq_curmsgs entry.
3937 Add optional functions mq_timedreceive and mq_timedsend.
3938 * conform/data/netdb.h-data: Add more AI_* and EAI_* constants.
3939 * conform/data/pthread.h-data: Fix prototype of
3940 pthread_condattr_setclock. pthread_sigmask is not required in v6.
3941 * conform/data/semaphore.h-data: Allow time.h definitions.
3942 * conform/data/signal.h-data: Likewise.
3943 * conform/data/stdio.h-data: getw and putw are not required in v6.
3944 * conform/data/stdlib.h-data: Change setstate prototype.
3945 * conform/data/string.h-data: Fix strerror_r prototype.
3946 * conform/data/time.h-data: Fix typo in TIMER_ABSTIME definition.
3947 * conform/data/unistd.h-data: pthread_atfork not required in v6.
3948 Fix readlink prototype.
3949 * conform/data/netinet/in.h-data: Add const to in6addr_any and
3950 in6addr_loopback.
3951 * inet/netinet/in.h: Cleanup namespace.
3952 * posix/regex.h: Likewise.
3953 * resolv/netdb.h: Likewise.
3954 * sysdeps/unix/sysv/linux/bits/in.h: Likewise.
3955 * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
3956 * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
6107639e
UD
3957 * sysdeps/posix/getaddrinfo.c (default_labels): Adjust for change
3958 of names of in in6_addr.
3959 (default_precedence): Likewise.
3960 * sysdeps/unix/sysv/linux/cmsg_nxthdr.c: Include <stddef.h> for
3961 NULL definition.
a53d3f82 3962
ebca8f73
UD
39632008-01-15 Ulrich Drepper <drepper@redhat.com>
3964
fbe90cd5
UD
3965 * conform/data/fmtmsg.h-data: Add missing allows.
3966 * conform/data/ftw.h-data: Likewise.
3967 * conform/data/inttypes.h-data: Likewise.
3968 * conform/data/math.h-data: Likewise.
3969 * conform/data/signal.h-data: Likewise.
3970 * conform/data/net/if.h-data: Likewise.
3971 * conform/data/netinet/in.h-data: Likewise.
3972 * conform/data/sys/socket.h-data: Likewise.
3973
ebca8f73
UD
3974 [BZ #5614]
3975 * string/bits/string2.h (__strtok_r_1c): Always update *__NEXTP.
3976 (__strtok_r): Simplify.
3977 * string/tester.c (test_strtok_r): Add test case for futile search
3978 with single-character seach string.
3979
7c33ca8b
UD
39802008-01-12 Ulrich Drepper <drepper@redhat.com>
3981
3982 * po/ko.po: Update from translation team.
3983
b8cc0848
AJ
39842008-01-11 Andreas Jaeger <aj@suse.de>
3985
3986 [BZ #5600]
3987 * sysdeps/unix/sysv/linux/sys/signalfd.h (struct
3988 signalfd_siginfo): Use 64-bit type for ssi_ptr to sync with Linux
3989 kernel header.
3990
49029a66
UD
39912008-01-10 Ulrich Drepper <drepper@redhat.com>
3992
3993 * sysdeps/posix/getaddrinfo.c (rfc3484_sort): Store result of
3994 native interface lookup in all the relevant places.
3995
99f05798
UD
39962008-01-10 Jakub Jelinek <jakub@redhat.com>
3997 Ulrich Drepper <drepper@redhat.com>
0efd1956
UD
3998
3999 * sysdeps/posix/getaddrinfo.c (sort_results): Remove service_order
4000 field. Use sockaddr_in6 for source_addr.
4001 (get_scope): Change type of parameter to sockaddr_in6. Adjust.
4002 (match_prefix): Likewise.
4003 (get_label): Likewise.
4004 (get_precedence): Likewise.
4005 (rfc3484_sort): Change to use indirect access to results array.
4006 Adjust to use of sockaddr_in6. Replace service_order test with
4007 simple index comparison.
4008 (getaddrinfo): Define order array. Initialize it. Don't initialize
4009 service_order field. Adjust qsort_t calls. Access sorted result
4010 array indirectly through order array.
4011 * posix/tst-rfc3484.c: Adjust for change of rfc3484_sort.
4012 * posix/tst-rfc3484-2.c: Likewise.
4013 * posix/tst-rfc3484-3.c: Likewise.
4014
b3443701
UD
40152008-01-09 Ulrich Drepper <drepper@redhat.com>
4016
f6bacb8e
UD
4017 [BZ #5541]
4018 * sunrpc/rpc_thread.c (__rpc_thread_destroy): Also free xports and
4019 pollfd structures.
4020 Patch by André Cruz.
4021
aa693c68
UD
4022 [BZ #5545]
4023 * sunrpc/clnt_perr.c (clnt_sperror): Don't use fixed size buffer.
4024 (clnt_spcreateerror): Likewise.
4025
b3443701
UD
4026 [BZ #5553]
4027 * malloc/malloc.c (public_mALLOc): Set ar_ptr when trying main_arena.
4028 (public_mEMALIGn): Likewise.
4029 Patch mostly by Daniel Jacobowitz.
4030
148e12ed
UD
40312008-01-09 Jakub Jelinek <jakub@redhat.com>
4032
4033 * sysdeps/unix/sysv/linux/i386/makecontext.S (__makecontext): Avoid
4034 clobbering memory at or above uc_stack.ss_sp + uc_stack.ss_size.
4035 * stdlib/Makefile: Add rules to build and run tst-makecontext2.
4036 * stdlib/tst-makecontext2.c: New test.
4037
78c2bf0e 40382008-01-08 Jakub Jelinek <jakub@redhat.com>
4b1b449d
UD
4039
4040 * iconv/loop.c (UPDATE_PARAMS): Define to empty statement if not
4041 defined.
4042 (REINIT_PARAMS): Likewise. Undefine before end of file.
4043 (STANDARD_TO_LOOP_ERR_HANDLER): Use UPDATE_PARAMS before calling
4044 transliteration hooks and REINIT_PARAMS afterwards.
4045 * iconvdata/iso-2022-jp.c (BODY): Use a separate variable for
4046 status.
4047 (REINIT_PARAMS): Define.
4048 * iconvdata/ibm1364.c (REINIT_PARAMS): Likewise.
4049 * iconvdata/ibm930.c (REINIT_PARAMS): Likewise.
4050 * iconvdata/ibm933.c (REINIT_PARAMS): Likewise.
4051 * iconvdata/ibm935.c (REINIT_PARAMS): Likewise.
4052 * iconvdata/ibm937.c (REINIT_PARAMS): Likewise.
4053 * iconvdata/ibm939.c (REINIT_PARAMS): Likewise.
4054 * iconvdata/iso-2022-cn.c (REINIT_PARAMS): Likewise.
4055 * iconvdata/iso-2022-cn-ext.c (REINIT_PARAMS): Likewise.
4056 * iconvdata/iso-2022-jp-3.c (REINIT_PARAMS): Likewise.
4057 * iconvdata/iso-2022-kr.c (REINIT_PARAMS): Likewise.
4058 * iconvdata/Makefile: Add rules to build and run tst-iconv7.c.
4059 * iconvdata/tst-iconv7.c: New test.
4060
71edcafa
UD
40612008-01-07 Ulrich Drepper <drepper@redhat.com>
4062
4063 * libio/stdio.h (vscanf): Fix definition for loser compilers.
4064
0fbfe2f7
JJ
40652008-01-05 Jakub Jelinek <jakub@redhat.com>
4066
4067 [BZ #5112]
4068 * nscd/connections.c (restart): Fix condition.
4069
8726a12e
UD
40702008-01-03 Jakub Jelinek <jakub@redhat.com>
4071
4072 * ctype/ctype.h (__ctype_b_loc, __ctype_tolower_loc,
4073 __ctype_toupper_loc): Add __THROW.
4074
f4a1363e
UD
40752008-01-02 Ulrich Drepper <drepper@redhat.com>
4076
ad586879
UD
4077 * sysdeps/unix/sysv/linux/check_pf.c (make_request): Fix
4078 recognition of interface family.
4079
f4a1363e
UD
4080 * posix/getconf.c: Update copyright year.
4081 * nss/getent.c: Likewise.
4082 * iconv/iconvconfig.c: Likewise.
4083 * iconv/iconv_prog.c: Likewise.
4084 * elf/ldconfig.c: Likewise.
4085 * catgets/gencat.c: Likewise.
4086 * csu/version.c: Likewise.
4087 * elf/ldd.bash.in: Likewise.
4088 * elf/sprof.c (print_version): Likewise.
4089 * locale/programs/locale.c: Likewise.
4090 * locale/programs/localedef.c: Likewise.
4091 * nscd/nscd.c (print_version): Likewise.
4092 * debug/xtrace.sh: Likewise.
4093 * malloc/memusage.sh: Likewise.
4094 * malloc/mtrace.pl: Likewise.
4095 * debug/catchsegv.sh: Likewise.
4096
0dc6c5e4
UD
40972007-12-26 Ulrich Drepper <drepper@redhat.com>
4098
4099 * nss/nsswitch.c (__nss_lookup): Actually use alternative name in
4100 second lookup.
4101
80af8b82
UD
41022007-12-23 Ulrich Drepper <drepper@redhat.com>
4103
4104 * sysdeps/x86_64/cacheinfo.c (intel_02_known): New entry 0x3f.
4105 * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
4106
4bcecfb7
RM
41072007-12-17 Roland McGrath <roland@redhat.com>
4108
4109 * inet/ether_line.c (ether_line): Remove unused variable.
4110
41112007-12-17 Samuel Thibault <samuel.thibault@ens-lyon.org>
4112
4113 * login/forkpty.c (forkpty): Add const qualifier to parameters termp
4114 and winp.
4115 * login/openpty.c (openpty): Likewise.
4116 * login/pty.h (openpty, forkpty): Likewise.
4117 * manual/terminal.texi (openpty, forkpty): Likewise.
4118
4cd4c5d6
UD
41192007-12-17 Ulrich Drepper <drepper@redhat.com>
4120
78c2bf0e 4121 * malloc/malloc.c (public_cALLOc): For arenas other than
4cd4c5d6
UD
4122 main_arena, count all bytes inside the mprotect_size range of the
4123 heap as uninitialized.
4124
68631c8e
UD
41252007-12-16 Ulrich Drepper <drepper@redhat.com>
4126
d9961b6a
UD
4127 * elf/tst-execstack.c (do_test): Don't fail if SELinux forbids
4128 executable stacks.
4129
68631c8e
UD
4130 * malloc/malloc.c (public_mTRIm): Iterate over all arenas and call
4131 mTRIm for all of them.
4132 (mTRIm): Additionally iterate over all free blocks and use madvise
4133 to free memory for all those blocks which contain at least one
4134 memory page.
be8c1500
UD
4135 * malloc/tst-trim1.c: New file.
4136 * malloc/Makefile (tests): Add tst-trim1.
68631c8e
UD
4137
4138 * malloc/malloc.c (do_check_malloc_state): Minimal cleanups.
4139
78b767a0
UD
41402007-12-14 Ulrich Drepper <drepper@redhat.com>
4141
4142 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INTERNAL_SYSCALL_ERROR_P):
4143 First cast argument to long
52386be7
UD
4144 * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_gettimeofday):
4145 Return long.
4146 (__vdso_clock_gettime): Likewise.
78b767a0
UD
4147 * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: Functions
4148 return long.
4149
bc3e1c12
UD
41502007-12-13 Ulrich Drepper <drepper@redhat.com>
4151
4152 * locale/nl_langinfo.c (nl_langinfo): Just call __nl_langinfo_l.
4153 * locale/nl_langinfo_l.c: Real implementation, copied from
4154 nl_langinfo.c.
4155 * include/langinfo.h: Add libc_hidden_proto for __nl_langinfo_l.
4156
77751669
UD
41572007-12-01 Jim Meyering <meyering@redhat.com>
4158
4159 * posix/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
4160 that would inhibit utf8-optimization of a regexp containing line-
4161 or buffer-anchors, e.g., `^', `$'.
4162
f63e5063
UD
41632007-12-12 Ulrich Drepper <drepper@redhat.com>
4164
4165 * time/bug-getdate1.c (do_test): Don't use century values which
4166 aren't valid on 32-bit systems.
4167
a78814a9
UD
41682007-12-12 Jakub Jelinek <jakub@redhat.com>
4169
4170 * sysdeps/i386/i486/bits/string.h (memmove): Define as macro.
4171 (memmove): Rename to __memmove_g, with __asm__ ("memmove").
4172 * sysdeps/s390/bits/string.h (__strlen_g, __strcpy_g, __strncpy_g,
4173 __strcat_g, __strncat_g): Add __asm__.
4174
41752007-12-12 Ulrich Drepper <drepper@redhat.com>
4176
4177 [BZ #5477]
4178 * io/fchmodat.c: Fix typo in stub_warning use.
4179 Patch by Petr Salinger.
4180
17edb30c
UD
41812007-12-11 Ulrich Drepper <drepper@redhat.com>
4182
58d11795
UD
4183 * iconvdata/hp-thai8.c: New file.
4184 * iconvdata/Makefile: Add rules for hp-thai8.c.
4185 * iconvdata/tst-tables.sh: Add entry for HP-THAI8.
4186 * iconvdata/gconv-modules: Likewise.
4187
4188 [BZ #5464]
4189 * iconvdata/hp-greek8.c: New file.
4190 * iconvdata/Makefile: Add rules for hp-greek8.c.
4191 * iconvdata/tst-tables.sh: Add entry for HP-GREEK8.
4192 * iconvdata/gconv-modules: Likewise.
4193
4194 [BZ #5463]
4195 * iconvdata/hp-turkish8.c: New file.
4196 * iconvdata/Makefile: Add rules for hp-turkish8.c.
4197 * iconvdata/tst-tables.sh: Add entry for HP-TURKISH8.
4198 * iconvdata/gconv-modules: Likewise.
4199
cbf5760e
UD
4200 * malloc/arena.c (grow_heap): Split out code to shrink heap into...
4201 (shrink_heap): ... this new function.
4202 (heap_trim): Call shrink_heap instead of grow_heap.
4203
17edb30c
UD
4204 * malloc/malloc.c (_int_malloc): sYSMALLOc might fail, in this
4205 case don't call alloc_perturb.
4206
ae18718f
UD
42072007-12-10 Ulrich Drepper <drepper@redhat.com>
4208
4209 * sysdeps/unix/sysv/linux/adjtime.c: Use ADJ_OFFSET_SS_READ if
4210 possible.
4211 * sysdeps/unix/sysv/linux/kernel-features.h
4212 (__ASSUME_ADJ_OFFSET_SS_READ): Define for 2.6.24.
4213 * sysdeps/unix/sysv/linux/sys/timex.h (ADJ_OFFSET_SS_READ): Define.
4214
b4354cf4
UD
42152007-12-08 Ulrich Drepper <drepper@redhat.com>
4216
4217 [BZ #5424]
4218 * stdio-common/vfprintf.c: Do not overflow when adding to done.
4219 * stdio-common/Makefile (tests): Add bug22.
4220 * stdio-common/bug22.c: New file.
4221
4222 [BZ #5451]
4223 * time/getdate.c: Fix filling in default values.
4224 * time/bug-getdate1.c: New file.
4225 * time/Makefile: Add rules to build and run bug-getdate1.
4226
4227 * iconvdata/ebcdic-is-friss.c: Use 8bit-gap instead of 8bit-generic.
4228 * iconvdata/ebcdic-es.c: Likewise.
4229 * iconvdata/ebcdic-es-a.c: Likewise.
4230 * iconvdata/ebcdic-uk.c: Likewise.
4231 * iconvdata/iso8859-16.c: Likewise.
4232 * iconvdata/viscii.c: Likewise.
4233 * iconvdata/iso8859-9e.c: Likewise.
4234 * iconvdata/Makefile: Adjust appropriately.
4235
4236 [BZ #5428]
4237 * wcsmbs/wchar.h: Unconditionally undefine __need_mbstate and
4238 __need_wint_t.
4239
26e21e75
UD
42402007-12-07 Ulrich Drepper <drepper@redhat.com>
4241
87520ccc
UD
4242 [BZ #5427]
4243 * iconvdata/hp-roman9.c: New file.
4244 * iconvdata/Makefile: Add rules for hp-roman9.c.
4245 * iconvdata/tst-tables.sh: Add HP-ROMAN9.
b4354cf4 4246 * iconvdata/gconv-modules: Likewise.
87520ccc
UD
4247
4248 * iconvdata/hp-roman8.c: Use 8bit-gap instead of 8bit-generic.
4249 * iconvdata/Makefile: Adjust appropriately.
4250
26e21e75
UD
4251 [BZ #5441]
4252 * stdio-common/vfscanf.c (_IO_vfwscanf): Don't free ptrs_to_free
4253 structure, it's allocated with alloca.
4254 * stdio-common/Makefile (tests): Add bug21.
4255 * stdio-common/bug21.c: New file.
4256
42572007-12-06 Aurelien Jarno <aurelien@aurel32.net>
4258
4259 [BZ #5452]
4260 * sysdeps/unix/sysv/linux/bits/sched.h: Use __extension__
87520ccc 4261 keyword for gcc's braced-groups.
26e21e75
UD
4262
42632007-12-07 Ulrich Drepper <drepper@redhat.com>
4264
4265 [BZ #5454]
4266 * inet/ether_line.c: Strip hostname of whitespaces.
4267 * inet/Makefile (tests): Add tst-ether_line.
4268 * inet/tst-ether_line.c: New file.
4269
9e80c123
UD
42702007-12-03 Ulrich Drepper <drepper@redhat.com>
4271
da0ff4ae
UD
4272 [BZ #5439]
4273 * sysdeps/unix/sysv/linux/sys/signalfd.h: Fix use of __nonnull.
4274
51bd20d9
UD
4275 [BZ #5435]
4276 * sysdeps/unix/sysv/linux/i386/makecontext.S: Align stack.
4277
d90d0256
UD
4278 * stdlib/tst-setcontext.c: Catch the case where the links gets
4279 messed up and we do not reach main again.
4280
9e80c123
UD
4281 * po/ca.po: Update from translation team.
4282
ae4287f8
UD
42832007-11-26 Ulrich Drepper <drepper@redhat.com>
4284
6701afc7 4285 * posix/unistd.h: Declare fsync also for __USE_XOPEN2K.
79fb2e02 4286 * posix/regex.h (REG_ENOSYS): Likewise.
a912a4f8 4287 * wcsmbs/wchar.h: Define __need_file also for __USE_XOPEN2K.
ae4287f8 4288
30294ea4
UD
42892007-11-25 Ulrich Drepper <drepper@redhat.com>
4290
4291 * nscd/nscd.h (MAX_STACK_USE): Define.
4292 * nscd/mem.c (MAX_STACK_USE): Remove definition here.
4293 (gc): Initialize stack_used based on allocation in prune_cache.
4294 * nscd/cache.c (prune_cache): Use heap for mark array if necessary.
e8667ddc 4295 Clear array before use.
30294ea4
UD
4296
4297 * nscd/aicache.c (addhstaiX): Update statistics counter in case
10a4c1e9 4298 memory allocation failed.
e8667ddc
UD
4299 * nscd/hstcache.c (cache_addhst): Likewise.
4300 * nscd/grpcache.c (cache_addgr): Likewise.
4301 * nscd/servicescache.c (cache_addserv): Likewise.
4302 * nscd/pwdcache.c (cache_addpw): Likewise.
4303 * nscd/initgrcache.c (addinitgroupsX): Likewise.
30294ea4 4304
715db78b
UD
43052007-11-23 Ulrich Drepper <drepper@redhat.com>
4306
609bb071
UD
4307 * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: Add open
4308 and creat system calls.
4309
715db78b
UD
4310 * sysdeps/unix/sysv/linux/check_native.c: Include <asm/types.h>.
4311
ea2c47b6
UD
43122007-11-23 Martin Schwidefsky <schwidefsky@de.ibm.com>
4313
4314 * sysdeps/unix/sysv/linux/Makefile [subdir=inet] (sysdep_headers):
4315 Add netiucv/iucv.h.
4316 * sysdeps/unix/sysv/linux/netiucv/iucv.h: New file.
4317 * sysdeps/unix/sysv/linux/opensock.c (__opensock): Add AF_IUCV
4318 protocol.
4319 * sysdeps/unix/sysv/linux/sa_len.c (__libc_sa_len): Likewise.
4320 * sysdeps/unix/sysv/linux/s390/opensock.c: New file.
4321 * sysdeps/unix/sysv/linux/s390/sa_len.c: New file.
4322
dcdcf4b9
UD
43232007-11-22 Martin Schwidefsky <schwidefsky@de.ibm.com>
4324
37143323
UD
4325 * sysdeps/s390/bits/string.h (strlen, strcpy, strncpy, strcat,
4326 strncat): Define as macros to avoid compile errors.
4327
dcdcf4b9
UD
4328 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Add open and
4329 creat entries.
4330
3a632674
UD
43312007-11-22 Ulrich Drepper <drepper@redhat.com>
4332
7ea8eb02
UD
4333 [BZ #5382]
4334 * nscd/nscd.h (NSCD_THREAD_STACKSIZE): Define.
4335 * nscd/connections.c (start_threads): Use NSCD_THREAD_STACKSIZE.
715db78b 4336 * nscd/mem.c (gc): Don't allocate arrays on the stack if they can
7ea8eb02 4337 overflow it.
70d5b6ef 4338 Partially based on a patch by Petr Baudis <pasky@suse.cz>.
7ea8eb02
UD
4339
4340 * sysdeps/unix/sysv/linux/nscd_setup_thread.c (setup_thread):
715db78b 4341 Return zero in case the thread library is not NPTL.
7ea8eb02 4342
5c3a3dba
UD
4343 [BZ #5375]
4344 * resolv/res_hconf.c (_res_hconf_reorder_addrs): Fix locking when
4345 initializing interface list.
4346
85883123
UD
4347 [BZ #5378]
4348 * nis/nss_compat/compat-initgroups.c (getgrent_next_nss): Don't
4349 use result of nss_getgrgid_r if nothing was found. For other
4350 error return with a failure.
4351 Partially based on a patch by Petr Baudis <pasky@suse.cz>.
4352
3a632674
UD
4353 * locale/programs/ld-collate.c (collate_read): Fix loop to match
4354 macro name.
4355
b73f9135
UD
43562007-11-19 Ulrich Drepper <drepper@redhat.com>
4357
ee72b971
UD
4358 * sysdeps/posix/getaddrinfo.c (defaults_scopes, scopes): New variables.
4359 (get_scope): For IPv4 scope, use scopes table.
4360 (fini): Free scopes table if necessary.
4361 (free_scopelist): New function.
4362 (scopecmp): New function.
4363 (gaiconf_init): Also handle scopev4 entries.
4364 * posix/tst-rfc3484.c (do_test): Initialize scopes.
4365 * posix/tst-rfc3484-2.c (do_test): Likewise.
4366 * posix/gai.conf: Document scopev4 defaults.
4367 * posix/Makefile (tests): Add tst-rfc3484-3.
4368 * posix/tst-rfc3484-3.c: New file.
4369
f4a79765
UD
4370 * sysdeps/posix/getaddrinfo.c (default_labels): Describe entry for
4371 Teredo tunnels.
b73f9135
UD
4372 * posix/gai.conf: Update for current default tables.
4373
429bd64d
UD
43742007-11-19 Ulrich Drepper <drepper@redhat.com>
4375
4376 * po/tr.po: Update from translation team.
4377
3c9af259
RM
43782007-11-18 Roland McGrath <roland@frob.com>
4379
76cf9889
RM
4380 * manual/arith.texi (Remainder Functions): Spelling fix.
4381 From Shaun Silk <genix@mysoul.com.au>.
4382
3c9af259
RM
4383 * sysdeps/mach/hurd/bits/fcntl.h (O_CLOEXEC): Fix value.
4384
238346ab
UD
43852007-11-17 Ulrich Drepper <drepper@redhat.com>
4386
5879ad50
UD
4387 * po/zh_CN.po: Update from translation team.
4388
238346ab
UD
4389 * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers):
4390 Add sys/signalfd.h and sys/eventfd.h.
4391
b80b9c77
UD
43922007-11-15 Bruno Haible <bruno@clisp.org>
4393
4394 [BZ #5346]
4395 * intl/dcigettext.c (struct known_translation_t): Turn msgid into a
4396 union.
4397 (transcmp): Use the appropriate part of s1->msgid and s2->msgid.
4398 (DCIGETTEXT): Change the allocation of the 'search' variable so that
4399 it needs only fixed stack space. Delay the initialization of
4400 msgid_len until it is needed.
4401
2da2501c
AJ
44022007-11-15 Andreas Jaeger <aj@suse.de>
4403
4404 * sysdeps/ieee754/dbl-64/sincos.tbl: Fix size of union.
4405 Reported by Christoph Quirin Lauter <christoph.lauter@ens-lyon.fr>.
4406
68a6dcf5
UD
44072007-11-15 Ulrich Drepper <drepper@redhat.com>
4408
4409 * po/ko.po: Update from translation team.
4410
43850227
UD
44112007-11-14 Ulrich Drepper <drepper@redhat.com>
4412
1e2692c9
UD
4413 * sysdeps/unix/sysv/linux/check_native.c (__check_native): Simplify
4414 significantly. The device type is also part of the ifinfomsg data.
4415
84e6cc7c 4416 * po/sv.po: Update from translation team.
cbd52634 4417 * po/nl.po: Likewise.
84e6cc7c 4418
f9e2261b
UD
4419 * nscd/cache.c (prune_cache): If cache is empty, instruct caller
4420 to wake up in 24 hours.
4421
43850227
UD
4422 * nscd/gai.c (__ioctl): Define. Include check_native.c.
4423
5742e960
UD
44242007-11-13 Ulrich Drepper <drepper@redhat.com>
4425
1a821d82
UD
4426 * po/cs.po: Update from translation team.
4427 * po/pl.po: Likewise.
4428
773e79b3
UD
4429 * include/ifaddrs.h: Remove in6ai_temporary.
4430 (struct in6addrinfo): Add index element.
4431 Declare __check_native.
4432 * inet/Makefile (aux): Add check_native.
4433 * sysdeps/unix/sysv/linux/check_native.c: New file.
4434 * sysdeps/unix/sysv/linux/check_pf.c: No need to recognize
4435 IFA_F_TEMPORARY. Pass back ifa_index.
4436 * sysdeps/posix/getaddrinfo.c: Remove netlink compatibility code.
4437 (rfc3484_sort): Add new parameter. Implement rule 7 correctly:
4438 call __check_native if necessary.
4439 (getaddrinfo): Fill in index field. Use qsort_r instead of qsort
4440 to sort addresses. Pass information about the results.
4441 * posix/tst-rfc3484.c: Adjust for addition of index field and change
4442 of rfc3484_sort interface.
4443 * posix/tst-rfc3484-2.c: Likewise.
4444
e458144c
UD
4445 * stdlib/stdlib.h: Define __compar_d_fn_t. Declare qsort_r.
4446 * include/stdlib.h: Add hidden_proto for qsort_t and adjust protoype
4447 for _quicksort.
4448 * stdlib/msort.c (qsort): Now a wrapper around qsort_r.
4449 (qsort_r): Renamed from qsort. Take additional parameter and pass it
4450 on as third parameter to compare function and _quicksort.
4451 * stdlib/qsort.c (_quicksort): Take additional parameter and pass on
4452 to the compare function.
4453 * stdlib/Versions [libc] (GLIBC_2.8): Add qsort_r.
4454 * Versions.def: Add GLIBC_2.8 for libc.
4455
bd63f380
UD
4456 * posix/tst-rfc3484.c: Adjust for addition of prefixlen field.
4457 * posix/tst-rfc3484-2.c: Likewise.
4458
5742e960
UD
4459 * include/kernel-features.h: Moved to...
4460 * sysdeps/mach/hurd/kernel-features.h: ...here.
4461
a6ac7fdb
RM
44622007-09-13 H.J. Lu <hongjiu.lu@intel.com>
4463
4464 * sysdeps/i386/i586/memcpy_chk.S: New file.
4465 * sysdeps/i386/i586/mempcpy_chk.S: Likewise.
4466 * sysdeps/i386/i586/memset_chk.S: Likewise.
4467
6f3914d5
UD
44682007-11-12 Ulrich Drepper <drepper@redhat.com>
4469
4470 * include/ifaddrs.c (struct in6addrinfo): Add prefixlen field.
4471 * sysdeps/unix/sysv/linux/check_pf.c (make_request): Always return
4472 list of interfaces. Also store prefix length.
4473 * sysdeps/posix/getaddrinfo.c (sort_result): Add prefixlen element.
4474 (rfc3484_sort): In rule 9, for IPv4 addresses count only matching
4475 prefix if source and destination address are in the same subnet.
4476 (getaddrinfo): Always call __check_pf. Fill in prefixlen field.
4477 Always look for matching record in in6ai list.
4478 Correct source_addr_len value for IPv6->IPv4 converted records.
4479
78cf5f6a
RM
44802007-11-11 Roland McGrath <roland@frob.com>
4481
4482 * include/kernel-features.h: New file.
4483
7f745396
UD
44842007-11-10 Ulrich Drepper <drepper@redhat.com>
4485
01e7fdbb
UD
4486 * sysdeps/pthread/aio_misc.c (handle_fildes_io): Avoid unnecessary
4487 complications for 64-bit platforms.
4488
7f745396
UD
4489 * sysdeps/unix/sysv/linux/open64.c: Move __open64_2 implementation to..
4490 * sysdeps/unix/sysv/linux/open64_2.c: ...here. New file.
4491 * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines): Add
4492 open64_2.
4493 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Add open and creat
4494 entries.
4495 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
4496 * sysdeps/wordsize-64/alphasort.c: New file.
4497 * sysdeps/wordsize-64/alphasort64.c: New file.
4498 * sysdeps/wordsize-64/fseeko.c: New file.
4499 * sysdeps/wordsize-64/fseeko64.c: New file.
4500 * sysdeps/wordsize-64/ftello.c: New file.
4501 * sysdeps/wordsize-64/ftello64.c: New file.
4502 * sysdeps/wordsize-64/ftw.c: New file.
4503 * sysdeps/wordsize-64/ftw64.c: New file.
4504 * sysdeps/wordsize-64/iofgetpos.c: New file.
4505 * sysdeps/wordsize-64/iofgetpos64.c: New file.
4506 * sysdeps/wordsize-64/iofopen.c: New file.
4507 * sysdeps/wordsize-64/iofopen64.c: New file.
4508 * sysdeps/wordsize-64/iofsetpos.c: New file.
4509 * sysdeps/wordsize-64/iofsetpos64.c: New file.
4510 * sysdeps/wordsize-64/lockf.c: New file.
4511 * sysdeps/wordsize-64/lockf64.c: New file.
4512 * sysdeps/wordsize-64/mkostemp.c: New file.
4513 * sysdeps/wordsize-64/mkostemp64.c: New file.
4514 * sysdeps/wordsize-64/mkstemp.c: New file.
4515 * sysdeps/wordsize-64/mkstemp64.c: New file.
4516 * sysdeps/wordsize-64/scandir.c: New file.
4517 * sysdeps/wordsize-64/scandir64.c: New file.
4518 * sysdeps/wordsize-64/tmpfile.c: New file.
4519 * sysdeps/wordsize-64/tmpfile64.c: New file.
4520 * sysdeps/wordsize-64/versionsort.c: New file.
4521 * sysdeps/wordsize-64/versionsort64.c: New file.
4522 * sysdeps/unix/sysv/linux/wordsize-64/aio_read.c: New file.
4523 * sysdeps/unix/sysv/linux/wordsize-64/aio_read64.c: New file.
4524 * sysdeps/unix/sysv/linux/wordsize-64/aio_write.c: New file.
4525 * sysdeps/unix/sysv/linux/wordsize-64/aio_write64.c: New file.
4526 * sysdeps/unix/sysv/linux/wordsize-64/creat64.c: New file.
4527 * sysdeps/unix/sysv/linux/wordsize-64/getdirentries.c: New file.
4528 * sysdeps/unix/sysv/linux/wordsize-64/getdirentries64.c: New file.
4529 * sysdeps/unix/sysv/linux/wordsize-64/lio_listio.c: New file.
4530 * sysdeps/unix/sysv/linux/wordsize-64/lio_listio64.c: New file.
4531 * sysdeps/unix/sysv/linux/wordsize-64/open64.c: New file.
4532 * sysdeps/unix/sysv/linux/wordsize-64/openat.c: New file.
4533 * sysdeps/unix/sysv/linux/wordsize-64/openat64.c: New file.
4534
4535 * crypt/sha256-crypt.c: Fix a comment.
4536 * crypt/sha512-crypt.c: Likewise.
4537
f6ed654c
UD
45382007-11-07 H.J. Lu <hongjiu.lu@intel.com>
4539
4540 * sysdeps/x86_64/memset.S: Add sfence after movnti.
4541
f2a8406a
UD
45422007-11-07 Ulrich Drepper <drepper@redhat.com>
4543
4544 [BZ #5277]
4545 * iconv/loop.c (STANDARD_TO_LOOP_ERR_HANDLER): If conversion failed
4546 because output buffer is too small break, don't loop.
4547 * iconvdata/Makefile (tests): Add bug-iconv6.
4548 * iconvdata/bug-iconv6.c: New file.
4549
7fe4e0e8
UD
45502007-11-06 Ulrich Drepper <drepper@redhat.com>
4551
9ca230d6
UD
4552 * stdio-common/vfprintf.c (vfprintf): Compute necessary buffer size
4553 with size_t type.
4554 * stdio-common/printf_fp.c (__print_fp): Change chars_needed type to
4555 size_t. Add casts where needed.
4556
7fe4e0e8
UD
4557 * nscd/selinux.c (nscd_request_avc_has_perm): When compiled with
4558 old headers, don't call avc_has_perm if we don't have the
4559 permission information.
4560
b92e3780
UD
45612007-11-05 Daniel Jacobowitz <dan@codesourcery.com>
4562
4563 * elf/rtld.c (dl_main): Use the page size to find the map start.
4564
ffb1b882
UD
45652007-11-05 Ulrich Drepper <drepper@redhat.com>
4566
94a749f6
UD
4567 * time/tzfile.c (__tzfile_read): Fix check for version 0 data files.
4568 Patch by Szymon Siwek <sls@poczta.wp.pl>.
4569
ffb1b882
UD
4570 * nscd/aicache.c (addhstaiX): Check herrno after IPv4 lookup only
4571 when the lookup call failed.
4572
4573 * nscd/nscd.h (struct database_dyn): Rename prunelock to prune_lock.
4574 Add prune_cond and wakeup_time.
4575 (CACHE_PRUNE_INTERNAL): Define.
4576 Update declarations of prune_cache and setup_thread.
4577 * nscd/connections.c (dbs): Update initializers.
4578 (CACHE_PRUNE_INTERNAL): Moved to nscd.h.
4579 (nscd_init): Default number of threads is now 4.
4580 (invalidate_cache): Take lock before calling prune_cache.
4581 (handle_request): If SELinux forbids the request, say so.
4582 (readylist_cond): Use static initializer.
4583 (nscd_run_prune): New function. Used only by pruning threads.
4584 (nscd_run_worder): Renamed from nscd_run. Remove support for pruning
4585 here.
4586 (fd_ready): Update nscd_run reference.
4587 (start_threads): No need to initialize readylist_cond.
4588 Start pruning threads separately.
4589 * nscd/nscd_setup_thread.c: Change return value type to int and always
4590 return 0.
4591 * sysdeps/unix/sysv/linux/nscd_setup_thread.c: Change return value type
4592 to int and return nonzero value if we can use the TID address hack.
4593 * nscd/cache.c (cache_add): If next wakeup time of cleanup thread for
4594 the database is later than the new entry's timeout, update the
4595 wakeup time and wake the cleanup thread.
4596 (prune_cache): Return seconds the next entry in the database is still
4597 valid. Remove locking for pruning here.
4598 * nscd/nscd.conf: Document default number of threads.
4599
4c48ef06
UD
46002007-10-31 Ulrich Drepper <drepper@redhat.com>
4601
41ff2a49
UD
4602 * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Make sure
4603 stack is properly aligned for the target function.
4604 Correct unwind info.
ffb1b882 4605
4c48ef06
UD
4606 * elf/rtld.c (dl_main): Initialize stack and pointer guard early
4607 when using auditing libraries.
4608
384ca551
UD
46092007-10-29 Ulrich Drepper <drepper@redhat.com>
4610
31e2791c
UD
4611 * resolv/Versions [libresolv] (GLIBC_PRIVATE): Add
4612 _nss_dns_getnetbyaddr2_r.
4613 * resolv/nss_dns/dns-host.c: Define _nss_dns_getnetbyaddr2_r. Pass
4614 extra parameter to getanswer_r.
4615 (_nss_dns_getnetbyaddr_r): Now a wrapper around
4616 _nss_dns_getnetbyaddr2_r.
4617
384ca551
UD
4618 * nscd/Makefile (nscd-modules): Replace gethstbynm2_r with
4619 gethstbynm3_r.
4620 * nscd/gethstbynm2_r.c: Remove.
4621 * nscd/gethstbynm3_r.c: New file.
4622 * nscd/aicache.c (addhstaiX): Use __gethostbyaddr2_r instead of
4623 __gethostbyaddr_r.
4624 * nscd/gethstbyad_r.c: Generate __gethostbyaddr2_r function. Define
4625 __gethostbyaddr_r compatibility wrapper.
4626 * nscd/hstcache.c (cache_addhst): Add ttl parameter. Use it when
4627 determining timeout of entry.
4628 (lookup): Take new parameter and pass it to __gethostbyname3_r and
4629 __gethostbyaddr2_r.
4630 (addhstbyX): Pass reference to variable for TTL to lookup and
4631 cache_addhst.
4632 * nss/Versions [glibc] (GLIBC_PRIVATE): Export __nss_passwd_lookup2,
4633 __nss_group_lookup2, __nss_hosts_lookup2, __nss_services_lookup2,
4634 and __nss_next2. Remove __nss_services_lookup.
4635 * nss/XXX-lookup.c: Name function now *_lookup2. Add new parameter.
4636 Add compat wrapper.
4637 * nss/getXXbyYY_r.c: Changes to call new *_lookup2 functions and
4638 __nss_next2.
4639 * nss/getXXent_r.c: Likewise.
4640 * nss/getnssent_r.c: Likewise.
4641 * nss/nsswitch.c (__nss_lookup): Add new parameter. If first function
4642 does not exist in module, try the optional second name.
4643 (__nss_next2): New function.
4644 (__nss_next): Now wrapper around __nss_next2.
4645 * nss/nsswitch.h: Adjust __nss_lookup prototype.
4646 Declare __nss_next2.
4647 Adjust definition of db_lookup_function type.
4648 * nss/service-lookup.c: Define NO_COMPAT.
4649 * include/netdb.h: Declare __gethostbyaddr2_r and __gethostbyname3_r.
4650 * inet/ether_hton.c: Use __nss_next2 instead of __nss_next.
4651 * inet/ether_ntoh.c: Likewise.
4652 * sunrpc/netname.c: Likewise.
4653 * sunrpc/publickey.c: Likewise.
4654 * inet/getnetgrent.c: Likewise. Adjust calls to __nss_lookup.
4655 * inet/gethstbyad_r.c (DB_LOOKUP_FCT): Change to __nss_hosts_lookup2.
4656 * inet/gethstbynm2_r.c (DB_LOOKUP_FCT): Likewise.
4657 * inet/gethstbynm_r.c (DB_LOOKUP_FCT): Likewise.
4658 * inet/gethstent_r.c (DB_LOOKUP_FCT): Likewise.
4659
4660 * nscd/aicache.c (addhstaiX): Fix default TTL handling.
4661
5e37840c 4662 * inet/getnetgrent_r.c (setup): Encrypt static pointer.
384ca551 4663
88197030
UD
46642007-10-28 Ulrich Drepper <drepper@redhat.com>
4665
f160a450
UD
4666 [BZ #5204]
4667 * crypt/sha256c-test.c: Define TIMEOUT to 6 for ancient hardware.
4668 * crypt/sha512c-test.c: Likewise.
4669
4c6b2202
UD
4670 [BZ #5225]
4671 * stdio-common/vfscanf.c (_IO_vfwscanf): Don't misuse wp pointer
4672 to keep track of end of %[ format string element.
22c915ac
UD
4673 * stdio-common/Makefile (tests): Add bug20.
4674 * stdio-common/bug20.c: New file.
4c6b2202 4675
88197030
UD
4676 [BZ #5222]
4677 * elf/dl-load.c (_dl_rtld_di_serinfo): Correct handling of short
4678 path elements in counting mode.
4679
05d69147
UD
46802007-10-27 Andreas Jaeger <aj@suse.de>
4681
94833f11
UD
4682 [BZ #5040]
4683 * sysdeps/unix/sysv/linux/sys/epoll.h (EPOLLRDHUP): Add value.
4684
05d69147
UD
4685 [BZ #3112]
4686 * sysdeps/ia64/backtrace.c (init): Free shared library if incorrect.
4687 (__cleanup): Free shared library when exiting.
4688 * sysdeps/i386/backtrace.c (init): Free shared library if incorrect.
4689 (__cleanup): Free shared library when exiting.
4690
e6b29af8
UD
46912006-04-14 H.J. Lu <hongjiu.lu@intel.com>
4692
4693 [BZ #2549]
4694 * math/libm-test.inc (check_float_internal): Support
4695 denormalized return.
4696
ad3371fb
UD
46972007-10-23 Andreas Jaeger <aj@suse.de>
4698
4699 [BZ #5208]
4700 * sysdeps/unix/sysv/linux/readahead.c (__readahead): Use
4701 __LONG_LONG_PAIR to handle little endian byte order.
4702 Suggested by abhishekrai@google.com
4703
666aa020
UD
47042007-10-27 Ulrich Drepper <drepper@redhat.com>
4705
4706 * malloc/arena.c [!NO_THREADS]: Use ATFORK_MEM if defined.
4707
8ad343b3
UD
47082007-10-26 Ulrich Drepper <drepper@redhat.com>
4709
4710 * nscd/cache.c (prune_cache): Move test for modified file outside
4711 of locking.
4712
9251c568
AJ
47132007-10-21 Andreas Jaeger <aj@suse.de>
4714
4715 * manual/texinfo.tex: Update to latest version.
4716
4717 * manual/sysinfo.texi (System Parameters): Fix Formatting.
4718
4719 * manual/arith.texi (Status bit operations): Fix formatting.
4720
4721 * manual/errno.texi (Error Messages): Fix formatting.
4722
4723 * manual/sysinfo.texi (System Parameters): Fix formatting.
4724
4725 * manual/libc.texinfo: Update VERSION and UPDATED.
4726
260b2e06
RM
47272007-10-19 Roland McGrath <roland@redhat.com>
4728
4729 * elf/Makefile ($(objpfx)ld.so): Use $(AWK).
4730
46ae8850
JJ
47312007-10-06 David S. Miller <davem@davemloft.net>
4732
4733 * configure.in: Add sparcv9v2 and sparc64v2.
4734 * scripts/config.sub: Likewise.
4735 * configure: Regenerate.
4736 * elf/elf.h (HWCAP_SPARC_N2): New.
4737 * sysdeps/sparc/dl-procinfo.h (_DL_HWCAP_COUNT): Bump to 8.
4738 * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add 'v9v2'.
4739 (HWCAP_IMPORTANT): Add HWCAP_SPARC_N2.
4740 * sysdeps/sparc/sparc32/sparcv9/sparcv9v2/memcpy.S: New file.
4741 * sysdeps/sparc/sparc32/sparcv9/sparcv9v2/memset.S: New file.
4742 * sysdeps/sparc/sparc64/sparcv9v2/memcpy.S: New file.
4743 * sysdeps/sparc/sparc64/sparcv9v2/memset.S: New file.
4744
6fbfbd80
UD
47452007-10-18 Ulrich Drepper <drepper@redhat.com>
4746
4747 * sunrpc/clnt_udp.c (clntudp_call): Don't block in recvfrom call
4748 even if the poll result indicates there is data to read.
4749 Patch by Jeff Moyer <jmoyer@redhat.com>.
4750
39cfc9fa
RM
47512007-10-18 Roland McGrath <roland@redhat.com>
4752
4753 * elf/elf.h (NT_PPC_VMX): New macro.
28919a77 4754
39cfc9fa 47552007-10-17 Ulrich Drepper <drepper@redhat.com>
28919a77
UD
4756
4757 * version.h (VERSION): Set to 2.7.90.
4758
ed13ccf1
JJ
47592007-10-17 Jakub Jelinek <jakub@redhat.com>
4760
4761 * sysdeps/x86_64/memset.S (bzero): Renamed to __bzero. Add
4762 weak_alias.
4763
ee9fd869
RM
47642007-10-17 Roland McGrath <roland@frob.com>
4765
4766 * sysdeps/mach/hurd/bits/fcntl.h [__USE_GNU__] (F_DUPFD_CLOEXEC): New.
4767 * sysdeps/mach/hurd/fcntl.c (__libc_fcntl): Implement it.
4768
1aa5e4d7
UD
47692007-10-17 Ulrich Drepper <drepper@redhat.com>
4770
50c9fbbf 4771 * version.h (VERSION): Bump to 2.7.
777bc4bf 4772 * include/features.h (__GLIBC_MINOR__): Bump to 7.
50c9fbbf 4773
58423c7d
UD
4774 [BZ #5186]
4775 * time/tzset.c (__tz_convert): Don't force testing for a change of
4776 TZ if not called from localtime. But then also see whether the
4777 file changed, in case __use_tzfile is set.
4778
1aa5e4d7
UD
4779 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define F_DUPFD_CLOEXEC.
4780 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
4781 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
4782 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
4783 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
4784 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
4785 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
4786 * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
4787
fc4837e5
UD
47882007-10-17 Jakub Jelinek <jakub@redhat.com>
4789
4790 * sysdeps/posix/getaddrinfo.c (getaddrinfo): When sorting addresses
4791 and admin selects to be able to replace the gai.conf file, lock
4792 data structures around the qsort call.
4793
62eaf7c8
UD
47942007-10-17 Ulrich Drepper <drepper@redhat.com>
4795
406f28db
UD
4796 * sysdeps/x86_64/cacheinfo.c: Comment out code added in support of
4797 new memset.
ac1cb5da 4798 * sysdeps/x86_64/memset.S: Revert to old version for now. The cost is
406f28db
UD
4799 too high for the improvements. Implement bzero unconditionally for
4800 use in libc.
ac1cb5da
UD
4801
48022007-10-17 Ulrich Drepper <drepper@redhat.com>
4803 Jakub Jelinek <jakub@redhat.com>
4804
62eaf7c8
UD
4805 * time/tzfile.c (__tzfile_read): Read POSIX TZ string if available
4806 even when time_t is 32-bit.
4807 (__tzfile_compute): Override POSIX TZ string STD/DST zone names if
4808 timezone data read by __tzfile_default. Ensure __tzname[0] is
4809 always set after the search.
4810
6a649d25
UD
48112007-10-16 Ulrich Drepper <drepper@redhat.com>
4812
4813 * time/tzfile.c (__tzfile_read): Help the compiler recognize
4814 unreachable code on 32-bit machines.
4815
800d6f9e
UD
48162007-10-16 Jakub Jelinek <jakub@redhat.com>
4817
4818 [BZ #5184]
4819 * time/strftime_l.c: Include stdbool.h.
4820 (my_strftime): New wrapper, old function renamed to...
4821 (__strftime_internal): ... new function. Add tzset_called
4822 argument, pass it down to recursive calls, don't call tzset ()
4823 if already true, set to true after call to tzset ().
62eaf7c8 4824
69819d92
UD
48252007-10-16 Ulrich Drepper <drepper@redhat.com>
4826
4827 * time/tzfile.c (__tzfile_read): Take extra memory requested by caller
4828 into account when copying TZ string.
4829
62eaf7c8
UD
48302007-10-16 Jakub Jelinek <jakub@redhat.com>
4831
4832 * time/tzfile.c (__tzfile_compute): For use_last case set i to
4833 num_transition rather than num_transitions - 1.
4834
0308ad66
JJ
48352007-10-16 Jakub Jelinek <jakub@redhat.com>
4836
8d137b60
JJ
4837 * sysdeps/x86_64/memset.S (memset): Fix sse2_nt_move
4838 PIC indirect jump.
4839
0308ad66
JJ
4840 * sysdeps/x86_64/memset.S: Jump from bzero to memset using
4841 a local label rather than HIDDEN_JUMPTARGET.
4842
e2b393bc
UD
48432007-10-15 Ulrich Drepper <drepper@redhat.com>
4844
4845 * sysdeps/x86_64/cacheinfo.c (__x86_64_shared_cache_size): Define.
4846 (init_cacheinfo): Initialize it.
4847 * sysdeps/x86_64/memset.S: Use __x86_64_shared_cache_size.
4848 Always define bzero.
4849 Remove non-glibc code.
4850 * sysdeps/x86_64/bzero.S: Make an empty file.
4851
48522007-10-15 H.J. Lu <hongjiu.lu@intel.com>
4853
4854 * sysdeps/x86_64/cacheinfo.c
4855 (__x86_64_preferred_memory_instruction): New.
4856 (init_cacheinfo): Initialize __x86_64_preferred_memory_instruction.
4857
4858 * sysdeps/x86_64/memset.S: Rewrite.
4859
0fbfcb7b
RM
48602007-10-15 Roland McGrath <roland@redhat.com>
4861
4862 * po/libc.pot: Regenerated.
4863
2884dad4
UD
48642007-10-15 Ulrich Drepper <drepper@redhat.com>
4865
e2b393bc 4866 * nss/getXXbyYY_r.c (REENTRANT_NAME): Mangle startp and start_fct
d96a2216
UD
4867 pointers.
4868
2884dad4
UD
4869 [BZ #3425]
4870 * resolv/nss_dns/dns-host.c (getanswer_r): Fail with
4871 NSS_STATUS_NOTFOUND if the server replied with only a CNAME and no
4872 address record to T_A/T_AAAA requests.
4873
89dc9d4c
UD
48742007-10-14 Ulrich Drepper <drepper@redhat.com>
4875
8d97ac13
UD
4876 * posix/glob.c: Reimplement link_exists_p to use fstatat64.
4877
1b6aa63f
UD
4878 * posix/glob.c: Add some branch prediction throughout.
4879
895a08c0
UD
4880 * nscd/nscd_getgr_r.c (nscd_getgr_r): Store result of successful
4881 read from nscd.
4882
6f55ed88
UD
4883 * sysdeps/posix/getaddrinfo.c (struct sort_result): Add
4884 service_order.
8d62c8ab
UD
4885 (rfc3484_sort): Make sure that even if qsort doesn't support
4886 stable sorting out sorting here is stable by comparing service_order.
6f55ed88 4887 (getaddrinfo): Initialize service_order.
a94673e6
UD
4888 * posix/tst-rfc3484.c (do_test): Adjust for addition of
4889 service_order field to sorting structure.
dfcf64ce 4890 * posix/tst-rfc3484-2.c (do_test): Likewise.
6f55ed88 4891
fa76dde2
UD
4892 * include/time.h: Declare __tzset_parse_tz and __tzset_compute.
4893 * time/tzset.c (tzset_internal): Break TZ string parsing out into
4894 __tzset_parse_tz and updating of daylight, timezone, tzname into
4895 update_vars.
4896 (__tz_compute): Renamed from tz_compute. Take additional parameters.
4897 (__tz_convert): Updating of tm_isdst, tm_zone, and tm_gmtoff now
4898 happens in __tz_compute.
4899 * time/tzfile.c (__tzfile_read): Also read TZ string.
4900 (find_transition): Fold into __tzfile_compute.
4901 (__tzfile_compute): For times beyond the last transition try to
4902 use the TZ string.
4903 * timezone/tst-timezone.c: Information in daylight and tzname does
4904 change for Asia/Tokyo timezone with more concrete information.
4905 Remove the test.
4906
4907 * include/stdio.h: Add libc_hidden_proto for ftello.
4908 * libio/ftello.c: Add libc_hidden_def.
4909
89dc9d4c
UD
4910 [BZ #1140]
4911 * time/tzfile.c (__tzfile_compute): Compute tzname[] values based
4912 on the specified time and not the last entries in the file. Move
4913 code to determine tzname[] to...
4914 (find_transition): ...here. Add ugly guess for times before the
4915 first transition.
4916
f7140274
UD
49172007-10-13 Ulrich Drepper <drepper@redhat.com>
4918
cfca0aa3
UD
4919 [BZ #3195]
4920 * nscd/nscd_getai.c (__nscd_getai): Set errno to 0 in case we found
4921 no entry.
4922 * nscd/nscd_getgr.c (nscd_getgr_r): Likewise.
4923 * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
4924 * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
4925 * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
4926
43d3e6bd
UD
4927 * nscd/nscd_getgr_r.c (nscd_getgr_r): Optimize a bit: use simpler
4928 read mechanism when there are no group members and avoid no-op
4929 read syscall in this case.
4930
f7140274
UD
4931 [BZ #3242]
4932 * nscd/nscd_helper.c (wait_on_socket): Take timeout as parameter.
4933 (__readall): If reading failed due to EAGAIN error wait a bit
4934 and possibly try again.
4935 (__readvall): Likewise.
4936
656f02ce
UD
49372007-10-13 Bruno Haible <bruno@clisp.org>
4938
4939 * intl/dcigettext.c (_nl_find_msg): Unlock the conversions_lock
4940 when we cannot recode the message.
4941
0ea49677
UD
49422007-10-13 Ulrich Drepper <drepper@redhat.com>
4943
4944 [BZ #4359]
4945 * libio/__freading.c (__freading): Don't return true for
ed36f224
UD
4946 write-only streams. For read/write streams, check whether we
4947 performed a read operation already.
7e39d802
UD
4948 * libio/Makefile (tests): Add tst-ext2.
4949 * libio/tst-ext2.c: New file.
0ea49677 4950
78a9b2dc
UD
49512007-10-12 Ulrich Drepper <drepper@redhat.com>
4952
fab1a490
UD
4953 * locale/programs/repertoire.c (repertoire_read): Always free
4954 memory for repertoire file name [Coverity CID 270].
4955
78a9b2dc
UD
4956 * elf/cache.c (save_aux_cache): Free memory allocated for
4957 temporary file name [Coverity CID 267].
4958
29d49a1a
JJ
49592007-10-12 Jakub Jelinek <jakub@redhat.com>
4960
4961 * misc/Makefile (headers): Add bits/error.h.
4962
d074d36d
UD
49632007-10-12 Ulrich Drepper <drepper@redhat.com>
4964
b7d1c5fa
UD
4965 * posix/fnmatch_loop.c: Take rule index returned as part of
4966 findidx return value into account when accessing weights.
4967 * posix/regcomp.c: Likewise.
4968 * posix/regexec.c: Likewise.
4969
d074d36d
UD
4970 * locale/programs/ld-collate.c (collate_read): Optimize a bit.
4971 (skip_to): Fix problems with parameter of elifdef/elifndef.
4972
26a51060
UD
49732007-10-11 Ulrich Drepper <drepper@redhat.com>
4974
4975 * iconv/gconv_simple.c: Add some branch prediction.
4976
6dd3748b
UD
49772007-10-12 Jakub Jelinek <jakub@redhat.com>
4978
4979 * locale/programs/ld-collate.c (collate_read): If ignore_content
4980 and nowtok is tok_define, eat any tok_eol tokens.
4981
d0b5557d
JJ
49822007-10-11 Jakub Jelinek <jakub@redhat.com>
4983
4984 * sysdeps/gnu/netinet/tcp.h: Include sys/socket.h if __USE_MISC.
4985 (struct tcp_md5sig): Change tcpm_addr type to struct sockaddr_storage.
4986
4987 * inet/netinet/in.h: Don't include bits/socket.h.
4988 * sysdeps/unix/sysv/linux/bits/socket.h: Only check _SYS_SOCKET_H
4989 macro.
4990 * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Likewise.
4991
3a054d7a
UD
49922007-10-10 Ulrich Drepper <drepper@redhat.com>
4993
4994 * locale/programs/locfile-token.h: Remove tok_elif, add tok_elifdef
4995 and tok_elifndef.
4996 * locale/programs/locfile-kw.gperf: Likewise.
4997 * locale/programs/ld-collate.c: Implement primitive preprocessor.
4998
c06b7169
UD
49992007-10-10 Jakub Jelinek <jakub@redhat.com>
5000
5001 * stdio-common/printf-parse.h: Include string.h and wchar.h.
5002 (__find_specwc): Change into __extern_always_inline function.
5003 (__find_specmb): Likewise. Remove ps argument. Use __strchrnul.
5004 (__parse_one_specmb): Remove ps argument.
5005 * stdio-common/vfprintf.c (vfprintf): Remove mbstate variable.
5006 Adjust __find_specmb and __parse_one_specmb callers.
5007 * stdio-common/printf-prs.c (parse_printf_format): Likewise.
5008 * stdio-common/printf-parsemb.c (__find_specwc, __find_specmb):
5009 Removed.
5010 (__parse_one_specmb): Remove ps argument, adjust __find_specmb
5011 caller.
5012
5a01ab7b
UD
50132007-10-09 Ulrich Drepper <drepper@redhat.com>
5014
5015 * sysdeps/x86_64/cacheinfo.c (init_cacheinfo): Work around problem
5016 with some Pentium Ds.
5017
e3f8e049
UD
50182007-10-08 Ulrich Drepper <drepper@redhat.com>
5019
5020 * sysdeps/unix/sysv/linux/eventfd_read.c (eventfd_read): Use
5021 __read not read.
5022 * sysdeps/unix/sysv/linux/eventfd_write.c (eventfd_write): Use
5023 __write not write.
5024
a1a363d2
UD
50252007-10-07 Ulrich Drepper <drepper@redhat.com>
5026
a1160714
UD
5027 [BZ #181]
5028 * locale/C-time.c: Set week_1stday data to 19971201.
659a9013
UD
5029 * locale/programs/ld-time.c (time_finish): Default for
5030 first_workday is Monday.
a1160714 5031
bb27a6eb
UD
5032 [BZ #2633]
5033 * wcsmbs/wchar.h: Move many C99 functions into std namespace.
5034
c8d48fae
UD
5035 [BZ #5103]
5036 * posix/glob.c (glob): Recognize patterns starting \/.
5037 * posix/tst-gnuglob.c (find_file): Handle absolute path names.
5038 (main): Add test for pattern starting \/.
5039
a1a363d2
UD
5040 * misc/error.h: Use __const instead of const.
5041 * misc/bits/error.h: Likewise.
5042
50432007-10-07 Andreas Jaeger <aj@suse.de>
5044
5045 * include/bits/error.h: New file.
5046
5047 * misc/bits/error.h (error_at_line): Fix prototype.
5048
71894681
UD
50492007-10-06 Ulrich Drepper <drepper@redhat.com>
5050
a6fa5328
UD
5051 [BZ #3924]
5052 * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Fix a few
5053 more little bugs in creating the stack frame when pltexit has to
5054 be called.
5055
8c7661bc 5056 * nscd/nscd_helper.c (__nscd_cache_search): Prevent endless loops.
50607309 5057 * nscd/connections.c (verify_persistent_db): Recognize circular lists.
8c7661bc 5058
c039eedd
UD
5059 [BZ #4407]
5060 * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Fix *signgamp for -0.0.
5061 * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
5062 * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
5063 * math/libm-test.inc: Add test for this case.
5064
71894681
UD
5065 [BZ #5010]
5066 * sunrpc/svc.c (struct svc_callout): Add sc_mapped element.
5067 (svc_register): Initialize sc_mapped. Set to TRUE if call to
5068 map service succeeded.
5069 (svc_is_mapped): New function.
5070 (svc_unregister): Use it before trying to unmap service.
5071
34c2c092
UD
50722007-10-05 Ulrich Drepper <drepper@redhat.com>
5073
d10737e4
UD
5074 * timezone/zic.c: Update from tzcode2007h.
5075
5076 [BZ #5063]
5077 * timezone/africa: Update from tzdata2007h.
5078 * timezone/antarctica: Likewise.
5079 * timezone/asia: Likewise.
5080 * timezone/australasia: Likewise.
5081 * timezone/europe: Likewise.
5082 * timezone/leapseconds: Likewise.
5083 * timezone/northamerica: Likewise.
5084 * timezone/southamerica: Likewise.
5085 * timzeone/zone.tab: Likewise.
5086
0304f168
UD
5087 [BZ #5104]
5088 * elf/do-lookup.h (do_lookup_x): Don't ignore STT_COMMON symbols.
5089
a83b5649
UD
5090 [BZ #5113]
5091 * string/bits/string2.h (__strdup): Cast parameters to calloc to
5092 avoid warning with -Wconversion.
5093 (__strndup): Likewise.
c039eedd 5094 Half the patch by Christian Iseli <christian.iseli@licr.org>.
a83b5649 5095
3e6ce4d7
UD
5096 [BZ #5112]
5097 * nscd/connections.c (restart): Don't resync if database is
5098 disabled. Patch mostly by Brian De Wolf <bldewolf@csupomona.edu>.
5099
8e351378
UD
5100 * sysdeps/gnu/netinet/tcp.h: Define TCP_MD5SIG, TCP_MD5SIG_MAXKEYLEN,
5101 struct tcp_md5sig. Extend struct tcp_info according to recent kernels.
5102
5103 * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add eventfd,
5104 evetnfd_read, eventfd_write.
5105 * sysdeps/unix/sysv/linux/eventfd.c: New file.
5106 * sysdeps/unix/sysv/linux/eventfd_read.c: New file.
5107 * sysdeps/unix/sysv/linux/eventfd_write.c: New file.
5108 * sysdeps/unix/sysv/linux/sys/eventfd.h: New file.
d10737e4 5109 * sysdeps/unix/sysv/linux/Versions: Export eventfd, eventfd_read,
8e351378
UD
5110 eventfd_write for GLIBC_2.7.
5111
34c2c092
UD
5112 * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add signalfd.
5113 * sysdeps/unix/sysv/linux/signalfd.c: New file.
5114 * sysdeps/unix/sysv/linux/sys/signalfd.h: New file.
5115 * sysdeps/unix/sysv/linux/Versions: Export signalfd for GLIBC_2.7.
5116
6789aaaa 51172007-10-04 Jakub Jelinek <jakub@redhat.com>
375d9429
UD
5118
5119 * stdlib/msort.c: Include stdint.h.
5120 (struct msort_param): New type.
5121 (msort_with_tmp): Use struct msort_param pointer for unchanging
5122 parameters. Add optimized handling for several common sizes
5123 and indirect sorting mode.
5124 (qsort): Adjust msort_with_tmp callers. For big S use indirect
5125 sorting.
5126 Suggested by Belazougui Djamel .
5127
5128 * stdlib/Makefile (tests): Add tst-qsort2.
5129 * stdlib/tst-qsort2.c: New test.
5130
b80bfc8b
UD
51312007-10-04 Ulrich Drepper <drepper@redhat.com>
5132
174420d2
UD
5133 * login/login_tty.c (login_tty): The Linux kernel can return EBUSY
5134 for dup2 in case another thread races with the current one. Retry
5135 in this case.
5136
b80bfc8b
UD
5137 * misc/error.h: Remove support for use outside of libc. We have to
5138 include <features.h> now. Include <bits/error.h> if possible.
5139 * misc/bits/error.h: New file.
5140
6789aaaa 51412007-10-03 Jakub Jelinek <jakub@redhat.com>
ee868c89 5142
e5dd2178
UD
5143 * string/bits/string3.h (memcpy, memmove, mempcpy, memset, bcopy,
5144 bzero, strcpy, stpcpy, strncpy, strcat, strncat): Use
5145 __extern_always_inline functions unconditionally, drop macros.
5146
ac97dec1
UD
5147 * misc/sys/cdefs.h (__REDIRECT_LDBL, __REDIRECT_NTH_LDBL): New macros.
5148 * wcsmbs/bits/wchar2.h (__swprintf_alias, __vswprintf_alias): Use
5149 __REDIRECT_NTH_LDBL macro rather than __REDIRECT_NTH.
5150
ee868c89
UD
5151 * misc/sys/cdefs.h (__extern_always_inline): For GCC 4.3+
5152 add __artificial__ attribute.
5153
80e069e0
UD
51542007-10-02 Ulrich Drepper <drepper@redhat.com>
5155
6e682cf5
UD
5156 * string/strcoll_l.c (STRCOLL): Correct handling of switching from
5157 backward to forward direction.
5158
90241a20
UD
5159 * string/strcoll_l.c (STRCOLL): Correct test for alloca use.
5160
80e069e0
UD
5161 [BZ #645]
5162 * locale/programs/ld-collate.c (collate_finish): Compare against last
5163 used section which is known to have rules defined.
5164 (collate_read): After order_start, correctly record order of sections
5165 and queue sections up.
5166
035ef8d7
UD
51672007-10-01 Ulrich Drepper <drepper@redhat.com>
5168
95bddc0c
UD
5169 [BZ #5071]
5170 * malloc/malloc.c (mremap_chunk): Avoid resizing of new block has
5171 the same number of pages.
5172 Patch by Tomash Brechko <tomash.brechko@gmail.com>.
5173
c8caf089
UD
5174 * locale/programs/ld-collate.c (collate_read): After initial copy
5175 statement, continue in state 0.
5176
035ef8d7
UD
5177 * include/stdio_ext.h (__fsetlocking): Define as macro.
5178
592a95ee
UD
51792007-09-30 Ulrich Drepper <drepper@redhat.com>
5180
56ebeb41
UD
5181 * locale/programs/ld-collate.c (collate_finish): Compare all bytes
5182 of section order.
5183
592a95ee
UD
5184 * po/pt_BR.po: Fix typo.
5185
6c522e21
UD
51862007-09-29 Ulrich Drepper <drepper@redhat.com>
5187
8ad5c3cd
UD
5188 * iconvdata/Makefile (modules): Add ISO8859-9E.
5189 (distribute): Add iso8859-9e.c.
5190 (gen-8bit-gap-modules): Add iso8859-9e.
5191 * iconvdata/iso8859-9e.c: New file.
5192 * iconvdata/gconv-modules: Add entries for ISO-8859-9E.
5193 * iconvdata/TESTS: Likewise.
5194 * iconvdata/tst-tables.sh: Likewise.
5195
5196 * iconvdata/koi8-r.c (HAS_HOLES): Define to 0.
5197
6c522e21
UD
5198 * locale/iso-639.def: Add several new entries.
5199
385b4cf4
UD
52002007-09-24 Jakub Jelinek <jakub@redhat.com>
5201
5202 * sysdeps/generic/ldsodefs.h (struct dl_scope_free_list): Store
5203 void * pointers instead of struct link_map **.
5204 (_dl_scope_free): Change argument type to void *.
5205 * include/link.h (struct link_map): Change type of l_reldeps
5206 to struct link_map_reldeps, move l_reldepsact into that
5207 struct too.
5208 * elf/dl-deps.c: Include atomic.h.
5209 (_dl_map_object_deps): Only change l->l_initfini when it is
5210 fully populated, use _dl_scope_free for freeing it. Optimize
5211 removal of libs from reldeps by using l_reserved flag, when
5212 some removal is needed, allocate a new list instead of
5213 reallocating and free the old with _dl_scope_free. Adjust
5214 for l_reldeps and l_reldepsact changes.
5215 * elf/dl-lookup.c (add_dependency): Likewise. Reorganize to allow
5216 searching in l_initfini and l_reldeps without holding dl_load_lock.
5217 * elf/dl-fini.c (_dl_sort_fini): Adjust for l_reldeps and
5218 l_reldepsact changes.
5219 * elf/dl-close.c (_dl_close_worker): Likewise.
5220 * elf/dl-open.c (_dl_scope_free): Change argument type to void *.
5221
90bf831b
UD
52222007-09-28 Ulrich Drepper <drepper@redhat.com>
5223
5224 * iconvdata/Makefile (modules): Add KOI8-RU.
5225 (distribute): Add koi8-ru.c.
5226 (gen-8bit-gap-modules): Add koi8-ru.
5227 * iconvdata/koi8-ru.c: New file.
5228 * iconvdata/gconv-modules: Add entries for KOI8-RU.
5229 * iconvdata/TESTS: Likewise.
5230 * iconvdata/tst-tables.sh: Likewise.
5231
5232 * iconvdata/koi8-r.c (HAS_HOLES): Define to 0.
5233
d6cd6bf4
UD
52342007-09-26 Jakub Jelinek <jakub@redhat.com>
5235
5236 * misc/sys/cdefs.h (__warndecl, __errordecl): For GCC 4.3+ define
5237 with __warning__/__error__ attributes.
5238 (__warnattr): Define.
5239 * stdlib/bits/stdlib.h (__realpath_chk_warn, __ptsname_r_chk_warn,
5240 __mbstowcs_chk_warn, __wcstombs_chk_warn): New aliases with
5241 __warnattr.
5242 (realpath, ptsname_r, mbstowcs, wcstombs): Call __*_chk_warn instead
5243 of __*_chk if compile time detectable overflow is found.
5244 * libio/bits/stdio2.h (__fgets_chk_warn, __fread_chk_warn,
5245 __fgets_unlocked_chk_warn, __fread_unlocked_chk_warn): New aliases
5246 with __warnattr.
5247 (fgets, fread, fgets_unlocked, fread_unlocked): Call __*_chk_warn
5248 instead of __*_chk if compile time detectable overflow is found.
5249 (__gets_alias): Rename to...
5250 (__gets_warn): ... this. Add __warnattr.
5251 (gets): Call __gets_warn instead of __gets_alias.
5252 * socket/bits/socket2.h (__recv_chk_warn, __recvfrom_chk_warn): New
5253 aliases with __warnattr.
5254 (recv, recvfrom): Call __*_chk_warn instead of __*_chk if compile
5255 time detectable overflow is found.
5256 * posix/bits/unistd.h (__read_chk_warn, __pread_chk_warn,
5257 __pread64_chk_warn, __readlink_chk_warn, __readlinkat_chk_warn,
5258 __getcwd_chk_warn, __confstr_chk_warn, __getgroups_chk_warn,
5259 __ttyname_r_chk_warn, __getlogin_r_chk_warn, __gethostname_chk_warn,
5260 __getdomainname_chk_warn): New aliases with __warnattr.
5261 (read, pread, pread64, readlink, readlinkat, getcwd, confstr,
5262 getgroups, ttyname_r, getlogin_r, gethostname, getdomainname): Call
5263 __*_chk_warn instead of __*_chk if compile time detectable overflow
5264 is found.
5265 (__getgroups_chk): Rename argument to __listlen from listlen.
5266 (__getwd_alias): Rename to...
5267 (__getwd_warn): ... this. Add __warnattr.
5268 (getwd): Call __getwd_warn instead of __getwd_alias.
5269 * wcsmbs/bits/wchar2.h (__wmemcpy_chk_warn, __wmemmove_chk_warn,
5270 __wmempcpy_chk_warn, __wmemset_chk_warn, __wcsncpy_chk_warn,
5271 __wcpncpy_chk_warn, __fgetws_chk_warn, __fgetws_unlocked_chk_warn,
5272 __mbsrtowcs_chk_warn, __wcsrtombs_chk_warn, __mbsnrtowcs_chk_warn,
5273 __wcsnrtombs_chk_warn): New aliases with __warnattr.
5274 (wmemcpy, wmemmove, wmempcpy, wmemset, mbsrtowcs, wcsrtombs,
5275 mbsnrtowcs, wcsnrtombs): Call __*_chk_warn instead of __*_chk if
5276 compile time detectable overflow is found.
5277 (wcsncpy, wcpncpy): Likewise. For constant __n fix check whether
5278 to use __*_chk or not.
5279 (fgetws, fgetws_unlocked): Divide __bos by sizeof (wchar_t), both
5280 in comparisons which function should be called and in __*_chk*
5281 arguments. Call __*_chk_warn instead of __*_chk if compile time
5282 detectable overflow is found.
5283 (swprintf, vswprintf): Divide __bos by sizeof (wchar_t) in
5284 __*_chk argument.
5285 * debug/tst-chk1.c (do_test): Add a few more tests.
5286
408cfca0
UD
52872007-09-24 Ulrich Drepper <drepper@redhat.com>
5288
5289 [BZ #5058]
5290 * intl/gettextP.h (struct loaded_domain): Add conversions_lock member.
5291 * intl/loadmsgcat.c (_nl_load_domain): Initialize conversions_lock.
5292 (_nl_unload_domain): Finalize conversions_lock.
5293 * intl/dcigettext.c (_nl_find_msg): Take conversions_lock before
5294 handling table of known conversions.
5295
e6eec9ce
JJ
52962007-09-24 Jakub Jelinek <jakub@redhat.com>
5297
5298 * sysdeps/posix/getaddrinfo.c (getaddrinfo): Use
5299 close_not_cancel_no_status instead of close.
5300
a532a41d
UD
53012007-09-13 Aurelien Jarno <aurelien@aurel32.net>
5302
682268ef 5303 [BZ #5028]
408cfca0 5304 * posix/regcomp.c (lookup_collation_sequence_value): Check that
a532a41d
UD
5305 nrules != 0 for multibyte chars.
5306
dec9ed9e
UD
53072007-09-23 Ulrich Drepper <drepper@redhat.com>
5308
91633816
UD
5309 * resolv/ns_print.c (ns_sprintrrf): Handle ns_t_a6 and ns_t_opt.
5310 Provide better error message in case the type is unknown.
5311
9cc198f6
UD
5312 [BZ #4963]
5313 * wcsmbs/wcsnlen.c: Don't reference before checking the length.
5314 * string/stratcliff.c: Make usable to test wide char functions.
5315 * wcsmbs/wcsatcliff.c: New file.
5316 * wcsmbs/Makefiel (tests): Add wcsatcliff.
5317
27f3d446
UD
5318 [BZ #4972]
5319 * iconvdata/Makefile (modules): Add MAC-CENTRALEUROPE.
5320 (distribute): Add mac-centraleurope.c.
5321 (gen-8bit-gap-modules): Add mac-centraleurope.
5322 * iconvdata/mac-centraleurope.c: New file.
5323 * iconvdata/gconv-modules: Add entries for MAC-CENTRALEUROPE.
5324 * iconvdata/TESTS: Likewise.
5325 * iconvdata/tst-tables.sh: Likewise.
5326
dec9ed9e
UD
5327 [BZ #5043]
5328 * iconv/iconv_open.c (iconv_open): For large codeset names use malloc.
5329
0435403c
UD
53302007-09-21 Ulrich Drepper <drepper@redhat.com>
5331
5332 * sysdeps/x86_64/cacheinfo.c (__x86_64_data_cache_size_half): Renamed
5333 from __x86_64_core_cache_size_half.
5334 (init_cacheinfo): Compute shared cache size for AMD processors with
5335 shared L3 correctly.
5336 * sysdeps/x86_64/memcpy.S: Adjust for __x86_64_data_cache_size_half
5337 name change.
5338 Patch in large parts by Evandro Menezes.
5339
c3266dc0
UD
53402007-09-19 Ulrich Drepper <drepper@redhat.com>
5341
715899d1
UD
5342 * elf/dl-lookup.c (add_dependency): Handle failing memory
5343 allocation for dependency list. Remove unnecessary check.
5344
e1db0493
UD
5345 * sysdeps/posix/getaddrinfo.c (getaddrinfo): Avoid unnecessary
5346 open/close when determining source addresses.
5347
c3266dc0
UD
5348 * crypt/Makefile (libcrypt-routines): Add sha256-crypt, sha256,
5349 sha512-crypt, and sha512.
5350 (tests): Add sha256test, sha256c-test, sha512test, and sha512c-test.
5351 (distribute): Add sha256.h and sha512.h.
5352 * crypt/crypt-entry.c (crypt): Recognize the new $5$ and $6$ prefixes
5353 and call the appropriate code.
5354 * crypt/sha256-crypt.c: New file.
5355 * crypt/sha256.c: New file.
5356 * crypt/sha256.h: New file.
5357 * crypt/sha256c-test.c: New file.
5358 * crypt/sha256test.c: New file.
5359 * crypt/sha512-crypt.c: New file.
5360 * crypt/sha512.c: New file.
5361 * crypt/sha512.h: New file.
5362 * crypt/sha512c-test.c: New file.
5363 * crypt/sha512test.c: New file.
5364
ddf51ecb
JJ
53652007-09-19 Jakub Jelinek <jakub@redhat.com>
5366
5367 * misc/bits/syslog.h (syslog): Remove extraneous argument from
5368 the inline, pass __USE_FORTIFY_LEVEL - 1 as second argument to
5369 __syslog_chk.
5370
b90395e6
UD
53712007-09-18 Jakub Jelinek <jakub@redhat.com>
5372
76c0bea7
JJ
5373 * locale/programs/charmap-dir.c (charmap_aliases): Use %ms instead of
5374 %as in fscanf format strings.
5375
00680568
JJ
5376 * sysdeps/sparc/sparc32/elf/start.S: Remove cfi_* markup.
5377 * sysdeps/sparc/sparc64/elf/start.S: Likewise.
c3266dc0
UD
5378 * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__thread_start):
5379 Likewise.
5380 * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__thread_start):
5381 Likewise.
00680568 5382
b90395e6
UD
5383 * sysdeps/generic/ldsodefs.h (DL_LOOKUP_GSCOPE_LOCK): New definition.
5384 * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Or in
5385 DL_LOOKUP_GSCOPE_LOCK into flags after THREAD_GSCOPE_SET_FLAG ().
5386 * elf/dl-sym.c (do_sym): Likewise.
5387 * include/link.h (struct link_map): Add l_serial field.
5388 * elf/dl-object.c (_dl_new_object): Initialize l_serial.
5389 * elf/dl-lookup.c (add_dependency): Add flags argument.
5390 Remember map->l_serial, if DL_LOOKUP_GSCOPE_LOCK is among
5391 flags, use THREAD_GSCOPE_RESET_FLAG before and
5392 THREAD_GSCOPE_SET_FLAG after
5393 __rtld_lock_lock_recursive (GL(dl_load_lock)) to avoid deadlock.
5394 Don't dereference map until it has been found on some list.
5395 If map->l_serial changed, return -1.
5396
874aa523
UD
53972007-09-17 Jakub Jelinek <jakub@redhat.com>
5398
5399 * include/stdio.h (__isoc99_fscanf, __isoc99_scanf,
5400 __isoc99_sscanf, __isoc99_vscanf): New prototypes.
5401 (__isoc99_vsscanf, __isoc99_vfscanf): New prototypes, add
5402 libc_hidden_proto.
5403 * include/wchar.h (__isoc99_fwscanf, __isoc99_wscanf,
5404 __isoc99_swscanf, __isoc99_vwscanf): New prototypes.
5405 (__isoc99_vswscanf, __isoc99_vfwscanf): New prototypes,
5406 add libc_hidden_proto.
5407 * libio/stdio.h (fscanf, scanf, sscanf, vfscanf, vscanf,
5408 vsscanf): Redirect to __isoc99_* if strict ISO C99 or POSIX
5409 conformance requested.
5410 * wcsmbs/wchar.h (fwscanf, wscanf, swscanf, vfwscanf, vwscanf,
5411 vswscanf): Redirect to __isoc99_* if strict ISO C99 or POSIX
5412 conformance requested.
5413 * libio/bits/stdio-ldbl.h (fscanf, scanf, sscanf, vfscanf, vscanf,
5414 vsscanf): Redirect to __nldbl___isoc99_* if strict ISO C99 or POSIX
5415 conformance requested.
5416 * wcsmbs/bits/wchar-ldbl.h (fwscanf, wscanf, swscanf, vfwscanf,
5417 vwscanf, vswscanf): Redirect to __nldbl___isoc99_* if strict
5418 ISO C99 or POSIX conformance requested.
5419 * stdio-common/Versions (libc): Export __isoc99_scanf@@GLIBC_2.7,
5420 __isoc99_vscanf@@GLIBC_2.7, __isoc99_fscanf@@GLIBC_2.7,
5421 __isoc99_vfscanf@@GLIBC_2.7, __isoc99_sscanf@@GLIBC_2.7
5422 and __isoc99_vsscanf@@GLIBC_2.7.
5423 * stdio-common/Makefile (routines): Add isoc99_scanf, isoc99_vscanf,
5424 isoc99_fscanf, isoc99_vfscanf, isoc99_sscanf and isoc99_vsscanf.
5425 (tests): Add scanf14.
5426 (CFLAGS-vfprintf.c, CFLAGS-fprintf.c, CFLAGS-printf.c,
5427 CFLAGS-vfwprintf.c, CFLAGS-vfscanf.c, CFLAGS-vfwscanf.c,
5428 CFLAGS-fscanf.c, CFLAGS-scanf.c, CFLAGS-isoc99_vfscanf.c,
5429 CFLAGS-isoc99_vscanf.c, CFLAGS-isoc99_fscanf.c,
5430 CFLAGS-isoc99_scanf.c): Add $(exceptions).
5431 (CFLAGS-scanf15.c): Add various -I paths to prevent the compiler
5432 from using internal headers.
5433 * wcsmbs/Versions (libc): Export __isoc99_wscanf@@GLIBC_2.7,
5434 __isoc99_vwscanf@@GLIBC_2.7, __isoc99_fwscanf@@GLIBC_2.7,
5435 __isoc99_vfwscanf@@GLIBC_2.7, __isoc99_swscanf@@GLIBC_2.7
5436 and __isoc99_vswscanf@@GLIBC_2.7.
5437 * wcsmbs/Makefile (routines): Add isoc99_wscanf, isoc99_vwscanf,
5438 isoc99_fwscanf, isoc99_vfwscanf, isoc99_swscanf and isoc99_vswscanf.
5439 (CFLAGS-isoc99_wscanf.c, CFLAGS-isoc99_fwscanf.c,
5440 CFLAGS-isoc99_vwscanf.c, CFLAGS-isoc99_vfwscanf.c): Add $(exceptions).
5441 (CPPFLAGS): Add -D_IO_MTSAFE_IO if needed.
5442 * stdio-common/isoc99_scanf.c: New file.
5443 * stdio-common/isoc99_vsscanf.c: New file.
5444 * stdio-common/isoc99_vscanf.c: New file.
5445 * stdio-common/isoc99_vfscanf.c: New file.
5446 * stdio-common/isoc99_fscanf.c: New file.
5447 * stdio-common/isoc99_sscanf.c: New file.
5448 * wcsmbs/isoc99_fwscanf.c: New file.
5449 * wcsmbs/isoc99_vswscanf.c: New file.
5450 * wcsmbs/isoc99_swscanf.c: New file.
5451 * wcsmbs/isoc99_wscanf.c: New file.
5452 * wcsmbs/isoc99_vwscanf.c: New file.
5453 * wcsmbs/isoc99_vfwscanf.c: New file.
5454 * libio/libio.h (_IO_FLAGS2_SCANF_STD): Define.
5455 * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct): Also
5456 clear _IO_FLAGS2_SCANF_STD bit from _flags2.
5457 * stdio-common/vfscanf.c (_IO_vfscanf_internal): Don't
5458 handle %as, %aS and %a[ if _IO_FLAGS2_SCANF_STD is set in _flags2.
5459 * stdio-common/scanf14.c: New test.
5460 * stdio-common/scanf15.c: New test.
5461 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add
5462 isoc99_scanf, isoc99_fscanf, isoc99_sscanf,
5463 isoc99_vscanf, isoc99_vfscanf, isoc99_vsscanf,
5464 isoc99_wscanf, isoc99_fwscanf, isoc99_swscanf,
5465 isoc99_vwscanf, isoc99_vfwscanf and isoc99_vswscanf.
5466 * sysdeps/ieee754/ldbl-opt/Versions (libc): Export
5467 __nldbl___isoc99_scanf@@GLIBC_2.7,
5468 __nldbl___isoc99_fscanf@@GLIBC_2.7,
5469 __nldbl___isoc99_sscanf@@GLIBC_2.7,
5470 __nldbl___isoc99_vscanf@@GLIBC_2.7,
5471 __nldbl___isoc99_vfscanf@@GLIBC_2.7,
5472 __nldbl___isoc99_vsscanf@@GLIBC_2.7,
5473 __nldbl___isoc99_wscanf@@GLIBC_2.7,
5474 __nldbl___isoc99_fwscanf@@GLIBC_2.7,
5475 __nldbl___isoc99_swscanf@@GLIBC_2.7,
5476 __nldbl___isoc99_vwscanf@@GLIBC_2.7,
5477 __nldbl___isoc99_vfwscanf@@GLIBC_2.7
5478 and __nldbl___isoc99_vswscanf@@GLIBC_2.7.
5479 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__isoc99_scanf,
5480 __isoc99_fscanf, __isoc99_sscanf, __isoc99_vscanf,
5481 __isoc99_vfscanf, __isoc99_vsscanf, __isoc99_wscanf,
5482 __isoc99_fwscanf, __isoc99_swscanf, __isoc99_vwscanf,
5483 __isoc99_vfwscanf, __isoc99_vswscanf): Add NLDBL_DECL.
5484 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c
5485 (__nldbl___isoc99_scanf, __nldbl___isoc99_fscanf,
5486 __nldbl___isoc99_sscanf, __nldbl___isoc99_vscanf,
5487 __nldbl___isoc99_vfscanf, __nldbl___isoc99_vsscanf,
5488 __nldbl___isoc99_wscanf, __nldbl___isoc99_fwscanf,
5489 __nldbl___isoc99_swscanf, __nldbl___isoc99_vwscanf,
5490 __nldbl___isoc99_vfwscanf, __nldbl___isoc99_vswscanf): New
5491 functions.
5492 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vfscanf.c: New file.
5493 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_swscanf.c: New file.
5494 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vwscanf.c: New file.
5495 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_wscanf.c: New file.
5496 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_scanf.c: New file.
5497 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_sscanf.c: New file.
5498 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vsscanf.c: New file.
5499 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_fwscanf.c: New file.
5500 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vfwscanf.c: New file.
5501 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vswscanf.c: New file.
5502 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vscanf.c: New file.
5503 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_fscanf.c: New file.
5504
5505 * stdio-common/Makefile (tests): Add scanf13.
5506 (scanf13-ENV): New.
5507 * stdio-common/vfscanf.c (_IO_vfscanf_internal): Handle
5508 m modifier followed by l.
5509 (STRING_ARG): Add width argument.
5510 (_IO_vfscanf_internal) <case L_('c')>: Handle %mc.
5511 <case L_('C')>: Handle %mlc and %mC.
5512 <case L_('s'), case L_('S'), case L_('[')>: Adjust STRING_ARG
5513 arguments.
5514 * stdio-common/scanf13.c: New test.
5515
5516 * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct): Clear
5517 the _IO_FLAGS2_FORTIFY bit from _flags2 rather than _flags.
5518
883f7943
UD
55192007-09-18 Ulrich Drepper <drepper@redhat.com>
5520
5521 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Correct return value
874aa523 5522 type and __THROW marker of splice, vmsplice, and tee.
883f7943
UD
5523 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
5524 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
5525 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
5526 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
5527 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
5528 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
5529 * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
5530 * sysdeps/unix/sysv/linux/syscalls.list: Mark splice, vmsplice, and tee
5531 as cancellation points.
5532
3524efe0
UD
55332003-11-01 Daniel Jacobowitz <dan@debian.org>
5534
5535 * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_discover_osversion): Don't
5536 parse more than three parts of the version number.
5537
267c54dc
UD
55382007-09-15 Ulrich Drepper <drepper@redhat.com>
5539
5540 * stdio-common/vfscanf.c (_IO_vfwscanf): Add support for 'm'
5541 modifier. Patch by Jakub Jelinek.
5542
5e17d6b7
UD
55432007-08-26 Jakub Jelinek <jakub@redhat.com>
5544
5545 * sysdeps/unix/sysv/linux/i386/Makefile (sysdep_routines): Add
5546 call_fallocate in misc subdir.
5547 * sysdeps/unix/sysv/linux/i386/call_fallocate.S: New file.
5548 * sysdeps/unix/sysv/linux/i386/syscalls.list (fallocate64): Remove.
5549 * sysdeps/unix/sysv/linux/i386/posix_fallocate.c: Use __call_fallocate
5550 instead of __fallocate64.
5551 * sysdeps/unix/sysv/linux/i386/posix_fallocate64.c: Likewise.
5552
3a50811c
UD
55532007-09-15 Jakub Jelinek <jakub@redhat.com>
5554
5555 * rt/Versions (librt): Export __mq_open_2@@GLIBC_2.7.
5556 * rt/Makefile (headers): Add bits/mqueue2.h.
5557 * rt/mqueue.h: Include bits/mqueue2.h if -D_FORTIFY_SOURCE=2,
5558 optimizing with GCC and __va_arg_pack_len is defined.
5559 * rt/bits/mqueue2.h: New file.
5560 * rt/mq_open.c (__mq_open): Renamed from mq_open.
5561 (mq_open): New strong_alias.
5562 (__mq_open_2): New function.
5563 * sysdeps/unix/sysv/linux/mq_open.c (__mq_open): Renamed from mq_open.
5564 (mq_open): New strong_alias.
5565 (__mq_open_2): New function.
5566 * debug/Versions (libc): Export __fortify_fail@@GLIBC_PRIVATE.
5567 * Versions.def (librt): Add GLIBC_2.7 version.
5568 * debug/fortify_fail.c (__fortify_fail): Add libc_hidden_def.
5569 * include/stdio.h (__fortify_fail): Add libc_hidden_proto.
5570
5571 * misc/sys/cdefs.h (__errordecl, __va_arg_pack_len): Define.
5572 * io/fcntl.h: Include bits/fcntl2.h when __va_arg_pack_len
5573 is defined rather than when not C++.
5574 * io/bits/fcntl2.h (__open_alias, __open64_alias, __openat_alias,
5575 __openat64_alias): New redirects.
5576 (__open_too_many_args, __open_missing_mode, __open64_too_many_args,
5577 __open64_missing_mode, __openat_too_many_args, __openat_missing_mode,
5578 __openat64_too_many_args, __openat64_missing_mode): New __errordecls.
5579 (open, open64, openat, openat64): Rewrite as __extern_always_inline
5580 functions instead of function-like macros.
5581
9bdfff60
UD
55822007-09-14 H.J. Lu <hongjiu.lu@intel.com>
5583
5584 * sysdeps/i386/i586/memcpy.S (__memcpy_chk): New definition.
5585 * sysdeps/i386/i586/mempcpy.S (__memcpy_chk): New definition.
5586 * sysdeps/i386/i586/memset.S (__memset_chk): New definition.
5587
ab905672
UD
55882007-09-15 Mike Frysinger <vapier@gentoo.org>
5589
5590 * inet/inet_net.c: Reset digit to 0 for inputs starting with "0x".
5591 * inet/tst-network.c (tests): Add edge case tests for "0", "0x", "0x0".
5592
9bd68902
RM
55932007-09-14 Mike Frysinger <vapier@gentoo.org>
5594
5595 * inet/tst-network.c: Increment ERRORS for failing tests.
5596
de1c3ebb
UD
55972007-09-07 Jakub Jelinek <jakub@redhat.com>
5598
5599 * misc/sys/cdefs.h (__va_arg_pack): Define for GCC 4.3+.
5600 * misc/bits/syslog.h (syslog): When __va_arg_pack is defined,
5601 implement as __extern_always_inline function.
5602 (vsyslog): Define as __extern_always_inline function unconditionally.
5603 * libio/bits/stdio2.h (sprintf, snprintf, printf, fprintf):
5604 When __va_arg_pack is defined, implement as __extern_always_inline
5605 functions.
5606 (vsprintf, vsnprintf, vprintf, vfprintf): Define as
5607 __extern_always_inline functions unconditionally.
5608 * libio/bits/stdio.h (vprintf): Ifdef out the inline when
5609 bits/stdio2.h will be included.
5610 * wcsmbs/bits/wchar2.h (__swprintf_alias): New redirect.
5611 (swprintf, wprintf, fwprintf): When __va_arg_pack is defined,
5612 implement as __extern_always_inline functions.
5613 (vswprintf, vwprintf, vfwprintf): Define as
5614 __extern_always_inline functions unconditionally.
5615 * debug/tst-chk1.c (do_test): Enable remaining tests for C++.
5616
56172007-09-03 Jakub Jelinek <jakub@redhat.com>
5618
5619 * misc/sys/cdefs.h (__extern_inline, __extern_always_inline): Only
5620 define in C++ for GCC 4.3+, in C++ always use __gnu_inline__
5621 attribute.
5622 * include/features.h (__USE_EXTERN_INLINES): Define only when
5623 __extern_inline is defined.
5624 * stdlib/stdlib.h: Include bits/stdlib.h when __extern_always_inline
5625 is defined instead of when not __cplusplus.
5626 * misc/sys/syslog.h: Include bits/syslog.h when __extern_always_inline
5627 is defined instead of when not __cplusplus.
5628 * socket/sys/socket.h: Include bits/socket2.h when
5629 __extern_always_inline is defined instead of when not __cplusplus.
5630 * libio/stdio.h: Include bits/stdio2.h when __extern_always_inline
5631 is defined instead of when not __cplusplus.
5632 * posix/unistd.h: Include bits/unistd.h when __extern_always_inline
5633 is defined instead of when not __cplusplus.
5634 * string/string.h: Include bits/string3.h when __extern_always_inline
5635 is defined instead of when not __cplusplus.
5636 * wcsmbs/wchar.h: Include bits/wchar2.h when __extern_always_inline
5637 is defined instead of when not __cplusplus.
5638 (btowc, wctob): Don't guard the inlines with ifndef __cplusplus.
5639 * io/fcntl.h: Don't include bits/fcntl2.h if __extern_always_inline
5640 is not defined.
5641 * misc/bits/syslog-ldbl.h: Guard *_chk stuff with
5642 defined __extern_always_inline instead of !defined __cplusplus.
5643 * libio/bits/stdio-ldbl.h: Likewise.
5644 * wcsmbs/bits/wchar-ldbl.h: Likewise.
5645 * misc/bits/syslog.h (syslog): Don't define for C++.
5646 (vsyslog): Use __extern_always_inline function for C++ instead of
5647 a macro.
5648 * libio/bits/stdio.h (__STDIO_INLINE): Define to __extern_inline
5649 whenever that macro is defined.
5650 (vprintf): Don't provide the inline for C++.
5651 (fread_unlocked, fwrite_unlocked): Don't define the macros for C++.
5652 * libio/bits/stdio2.h (sprintf, snprintf, printf, fprintf): Don't
5653 define the macros for C++.
5654 (vsprintf, vsnprintf, vprintf, vfprintf): Define as
5655 __extern_always_inline functions for C++.
5656 * io/sys/stat.h (stat, lstat, fstat, fstatat, mknod, mknodat,
5657 stat64, lstat64, fstat64, fstatat64): Don't define if not
5658 __USE_EXTERN_INLINES.
5659 * wcsmbs/bits/wchar2.h: Fix #error message.
5660 (swprintf, wprintf, fwprintf): Don't define the macros for C++.
5661 (vswprintf, vwprintf, vfwprintf): Define using
5662 __extern_always_inline functions for C++.
5663 * string/bits/string3.h: Don't #undef macros if __cplusplus.
5664 (memcpy, memmove, mempcpy, memset, bcopy, bzero, strcpy, stpcpy,
5665 strncpy, strcat, strncat): Define as __extern_always_inline
5666 functions instead of macros for C++.
5667 * math/bits/cmathcalls.h: Guard __extern_inline routines with
5668 defined __extern_inline.
5669 * sysdeps/alpha/fpu/bits/mathinline.h (__MATH_INLINE): Define
5670 to __extern_inline whenever that macro is defined.
5671 * sysdeps/ia64/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
5672 * sysdeps/i386/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
5673 * sysdeps/i386/i486/bits/string.h (__STRING_INLINE): Likewise.
5674 * sysdeps/s390/bits/string.h (__STRING_INLINE): Likewise.
5675 * sysdeps/s390/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
5676 * sysdeps/powerpc/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
5677 * sysdeps/x86_64/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
5678 * sysdeps/sparc/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
5679 * sysdeps/unix/sysv/linux/sys/sysmacros.h (gnu_dev_major,
5680 gnu_dev_minor, gnu_dev_makedev): Remove __extern_inline from
5681 prototypes. Only provide __extern_inline routines if
5682 __USE_EXTERN_INLINES.
5683 * debug/Makefile: Add rules to build and run tst-{,lfs}chk{4,5,6}
5684 tests.
5685 * debug/tst-chk1.c (do_prepare, do_test): Allow compilation as C++.
5686 For now avoid some *printf tests in C++. Skip all testing
5687 if __USE_FORTIFY_LEVEL is defined, but __extern_always_inline macro
5688 is not.
5689 * debug/tst-chk4.cc: New file.
5690 * debug/tst-chk5.cc: New file.
5691 * debug/tst-chk6.cc: New file.
5692 * debug/tst-lfschk4.cc: New file.
5693 * debug/tst-lfschk5.cc: New file.
5694 * debug/tst-lfschk6.cc: New file.
5695 * include/wchar.h (__vfwprintf_chk, __vswprintf_chk): Avoid
5696 prototypes in C++.
5697 * include/stdio.h (__sprintf_chk, __snprintf_chk, __vsprintf_chk,
5698 __vsnprintf_chk, __printf_chk, __fprintf_chk, __vprintf_chk,
5699 __vfprintf_chk, __fgets_unlocked_chk, __fgets_chk): Likewise.
5700
b53eef9c
UD
57012007-09-13 Ulrich Drepper <drepper@redhat.com>
5702
5703 * po/cs.po: Update from translation team.
5704
af385590
RM
57052007-09-11 Roland McGrath <roland@redhat.com>
5706
5707 * posix/Makefile ($(objpfx)getconf.speclist): Make it empty if cross
5708 compiling.
5709
af2f25a1
RM
57102007-09-07 Samuel Thibault <samuel.thibault@ens-lyon.org>
5711
5712 * sysdeps/mach/hurd/bits/ioctls.h (TAB3): New macro.
5713
94733ae0
RM
57142007-09-05 Roland McGrath <roland@redhat.com>
5715
5716 * manual/signal.texi (Signaling Another Process): Typo fix.
5717 From Karl Berry <karl@freefriends.org>.
5718
de4d8563
UD
57192007-08-29 Ulrich Drepper <drepper@redhat.com>
5720
5721 * sysdeps/unix/sysv/linux/check_pf.c (IFA_F_OPTIMISTIC): Define to
5722 zero if not defined.
5723 (make_request): Recognize optimistic addresses and treat them like
5724 deprecated addresses.
5725 Reported by Neil Horman <nhorman@redhat.com>.
5726
0adfcc05
UD
57272007-08-28 Ulrich Drepper <drepper@redhat.com>
5728
f3c54060
UD
5729 * nscd/connections.c (send_ro_fd): Also transfer file size.
5730 * nscd/nscd_helper.c (get_mapping): If nscd also transfers the
5731 file size don't call fstat.
5732
0adfcc05
UD
5733 * nscd/nscd_helper.c (get_mapping): Avoid the pread call, just go
5734 ahead and map the file. This should always be correct and we can
5735 catch problems later.
5736
3586b2b6
UD
57372007-08-28 Jakub Jelinek <jakub@redhat.com>
5738
5739 * libio/bits/stdio2.h (__fread_chk, __fread_unlocked_chk): New
5740 prototypes.
5741 (__fread_alias, __fread_unlocked_alias): New aliases.
5742 (fread): New extern inline.
5743 (fread_unlocked): Likewise. Undef macro before definition of
5744 the inline function.
5745 * debug/Makefile (routines): Add fread_chk and fread_u_chk.
5746 (CFLAGS-fread_chk.c, CFLAGS-fread_u_chk.c): Add.
5747 * debug/Versions (libc): Export __fread_chk@@GLIBC_2.7
5748 and __fread_unlocked_chk@@GLIBC_2.7.
5749 * debug/fread_chk.c: New file.
5750 * debug/fread_u_chk.c: New file.
5751 * debug/tst-chk1.c (do_test): Add fread and fread_unlocked tests.
5752
3704aa0b
RM
57532007-08-27 Jakub Jelinek <jakub@redhat.com>
5754
5755 * sysdeps/unix/sysv/linux/syscalls.list
5756 (personality): Change caller to EXTRA.
5757
80e7d6a6
UD
57582007-08-25 Ulrich Drepper <drepper@redhat.com>
5759
278bfa00
UD
5760 * iconvdata/iso-2022-kr.c (BODY): Fake initialization of array buf
5761 to keep gcc quiet.
5762 * iconvdata/iso-2022-cn.c (BODY): Likewise.
5763
a45d733c
UD
5764 * locale/programs/ld-collate.c (collate_output): Avoid warning if
5765 NDEBUG is defined.
5766
5dfeae0e
UD
5767 * Makerules: Use -p option with mkdir.
5768
8f1fe057
UD
5769 * sunrpc/key_prot.c (xdr_unixcred): Work around gcc alias warning.
5770 * nis/nis_xdr.c (_xdr_nis_server): Likewise.
bd0dcd28
UD
5771 (_xdr_directory_obj): Likewise.
5772 (xdr_entry_obj): Likewise.
5773 (xdr_group_obj): Likewise.
5774 (xdr_link_obj): Likewise.
5775 (xdr_table_obj): Likewise.
5776 (_xdr_nis_result): Likewise.
5777 (_xdr_ns_request): Likewise.
5778 (_xdr_ib_request): Likewise.
5779 (_xdr_nis_taglist): Likewise.
5780 (xdr_cback_data): Likewise.
8f1fe057 5781 * nis/yp_xdr.c (xdr_ypmaplist): Likewise.
bd0dcd28
UD
5782 (xdr_ypresp_maplist): Likewise.
5783
01339a67
UD
5784 * stdio-common/Makefile: Avoid format string warning for tst-sprint.
5785
3fa10468
UD
5786 * posix/regex_internal.h: Prevent some declarations and definitions
5787 to be seen when used in tests.
5788
ec1e04de
UD
5789 * posix/tst-rfc3484.c (__idna_to_unicode_lzlz): Initialize *OUTPUT.
5790 * posix/tst-rfc3484-2.c (__idna_to_unicode_lzlz): Likewise.
5791
7a344d1d
UD
5792 * debug/Makefile: Disable format checking when compiling tst-chk?.c.
5793
f8f6ff5d
UD
5794 * config.make.in (datarootdir): Add to shut up configure.
5795
76fca9f1
UD
5796 * sysdeps/x86_64/cacheinfo.c (handle_amd): Fix computation of
5797 associativity for fully-associative caches.
5798
80e7d6a6
UD
5799 * sysdeps/x86_64/cacheinfo.c (handle_amd): Handle L3 cache
5800 requests. Fill on more associativity values for L2.
5801 Patch mostly by Evandro Menezes.
5802
cb5ba304
UD
58032007-08-24 Ulrich Drepper <drepper@redhat.com>
5804
d250df8c
UD
5805 * sysdeps/unix/sysv/linux/x86_64/init-first.c
5806 (_libc_vdso_platform_setup): Avoid using exported variable by using
5807 alias.
5808
88f61aaf
UD
5809 * resolv/arpa/nameser.h (NS_OPT_DNSSEC_OK): Define.
5810
cb5ba304 5811 * sysdeps/unix/sysv/linux/i386/syscalls.list: No reason to mark
cb104bd7 5812 fallocate64 as EXTRA. It is not referenced if the symbol isn't
cb5ba304
UD
5813 defined.
5814
62e1b1f5
UD
58152007-08-23 Ulrich Drepper <drepper@redhat.com>
5816
44b2e581
UD
5817 * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Correctly
5818 align stack for call if pltexit is to be used.
5819
73e3ff07
UD
5820 [BZ #3924]
5821 * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Correctly
5822 align for function call in case pltexit has to be called later.
5823
62e1b1f5
UD
5824 * sysdeps/i386/dl-trampoline.S (_dl_runtime_resolve): Avoid
5825 implicit atomic operation when storing function pointer.
5826 (_dl_runtime_profile): Likewise.
5827
0008163a
UD
58282007-08-17 Jakub Jelinek <jakub@redhat.com>
5829
5830 * nis/nis_table.c (nis_list): Don't fail if __follow_path returned
5831 NIS_NOTFOUND.
5832
55ea8790
UD
58332007-08-21 Ulrich Drepper <drepper@redhat.com>
5834
2e0e1a05
UD
5835 [BZ #4566]
5836 * string/strtok.c: Fix typo in comment.
5837
682e4437
UD
5838 [BZ #4582]
5839 * debug/segfault.c: Fix typos in comments.
5840
7d55c9eb
UD
5841 [BZ #4588]
5842 * stdio-common/tempnam.c: Fix comment, it is not checked that
5843 TMPDIR points to a writable directory.
5844
0f8f993c
UD
5845 [BZ #4726]
5846 * resolv/res_send.c (__libc_res_nsend): Initialize all of the
5847 memory allocated for the name server address.
5848
1465dd0f
UD
5849 [BZ #4946]
5850 * nscd/connections.c (handle_request): Using sendfile always
5851 requires that mmap is used for the database.
5852 Patch by Petr Baudis <pasky@suse.cz>.
5853
c44d3bdf
UD
5854 [BZ #4905]
5855 * nscd/hstcache.c (cache_addhst): When reloading an entry which
5856 suddenly has two or more addresses, ignore it and remove the old
5857 entry.
5858
1ce7d80d
UD
5859 [BZ #4814]
5860 * resolv/res_hconf.c: Prepare for compiling outside libc.
5861 * nscd/res_hconf.c: New file.
5862 * nscd/Makefile (nscd-modules): Add res_hconf. Add rules to build
5863 the new file.
5864 * nscd/gethstbynm2_r.c (NEED__RES_HCONF): Define.
5865 * nscd/gethstbyad_r.c (NEED__RES_HCONF): Likewise.
5866
a30d41c1
UD
5867 * nscd/hstcache.c (cache_addhst): Minimal optimization.
5868
45dc3ad7
UD
5869 [BZ #4925]
5870 * debug/pcprofiledump.c: Turn on internationalization by calling
5871 setlocale. Patch mostly by Benno Schulenberg.
5872
55ea8790
UD
5873 [BZ #4936]
5874 * iconv/gconv.c (__gconv): If flush was successful, clear rest of
5875 the state.
5876 * iconvdata/Makefile: Add rules to build and run bug-iconv5.
5877 * iconvdata/bug-iconv5.c: New file.
5878
0b82ff74
UD
58792007-08-04 Carlos O'Donell <carlos@systemhalted.org>
5880
55ea8790 5881 [BZ #4896]
0b82ff74
UD
5882 * elf/elf.h: Define R_PARISC_PLABEL21L, R_PARISC_PLABEL14R,
5883 R_PARISC_GNU_VTENTRY, R_PARISC_GNU_VTINHERIT, R_PARISC_TLS_GD21L,
5884 R_PARISC_TLS_GD14R, R_PARISC_TLS_GDCALL, R_PARISC_TLS_LDM21L,
5885 R_PARISC_TLS_LDM14R, R_PARISC_TLS_LDMCALL, R_PARISC_TLS_LDO21L,
5886 R_PARISC_TLS_LDO14R, R_PARISC_TLS_DTPMOD32, R_PARISC_TLS_DTPMOD64,
5887 R_PARISC_TLS_DTPOFF32, R_PARISC_TLS_DTPOFF64, R_PARISC_TLS_LE21L,
5888 R_PARISC_TLS_LE14R, R_PARISC_TLS_IE21L, R_PARISC_TLS_IE14R,
5889 R_PARISC_TLS_TPREL32, R_PARISC_TLS_TPREL64.
5890
ee16a55a
UD
58912007-08-21 Ulrich Drepper <drepper@redhat.com>
5892
5893 [BZ #4937]
5894 * elf/do-lookup.h (do_lookup_x): Minimal improvement in hash
5895 lookup loop. Suggested by John Reiser.
5896
b211fe0f
JJ
58972007-08-21 Jakub Jelinek <jakub@redhat.com>
5898
5899 * sysdeps/unix/sysv/linux/alpha/sysdep.h: Include tls.h.
5900
fb84593c
UD
59012007-08-20 Ulrich Drepper <drepper@redhat.com>
5902
5903 * csu/libc-start.c: Don't handle VDSO_SETUP here.
5904 * sysdeps/unix/sysv/linux/init-first.c: Handle it here instead.
5905 * sysdeps/unix/sysv/linux/x86_64/libc-start.c: Renamed to...
5906 * sysdeps/unix/sysv/linux/x86_64/init-first.c: ...this. New file.
5907 * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Move VDSO_SETUP code
5908 to...
5909 * sysdeps/unix/sysv/linux/x86_64/init-first.c: ...here. New file.
5910
b83fb35c
UD
59112007-08-18 Ulrich Drepper <drepper@redhat.com>
5912
5913 * po/nl.po: Update from translation team.
5914
20806a70
AJ
59152007-08-16 Andreas Jaeger <aj@suse.de>
5916
5917 * locale/localeinfo.h: Make _nl_category_name_idxs extern.
f00d47a3 5918 Reported by Peter Festner <peter.festner@ewetel.net>.
20806a70 5919
42282d57
JJ
59202007-08-17 Jakub Jelinek <jakub@redhat.com>
5921
5922 * login/tst-grantpt.c (test_einval): Add 3rd argument to open.
5923
8a501135
JJ
59242007-08-16 Jakub Jelinek <jakub@redhat.com>
5925
cb84d1e4
JJ
5926 * elf/Makefile ($(objpfx)ld.so): Use readelf -s and awk instead of nm -u
5927 to check for undefined symbols.
5928
91ddd9c4
JJ
5929 * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__clone):
5930 If the syscall fails, set errno to the actual returned error number
5931 rather than EINVAL.
5932 * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__clone): If
5933 arguments are incorrect, set errno to EINVAL, if the syscall
5934 fails, set errno to the actual returned error number.
5935
18915760
JJ
5936 * stdlib/bits/stdlib-ldbl.h (__strtold_internal): Remove.
5937 * wcsmbs/bits/wchar-ldbl.h (__wcstold_internal): Remove.
5938
8a501135
JJ
5939 * sysdeps/sparc/sparc32/sparcv9b/memcpy.S: Moved to...
5940 * sysdeps/sparc/sparc32/sparcv9/sparcv9b/memcpy.S: ... here. New
5941 file.
5942 (ASI_PNF, ASI_BLK_P): Don't define.
5943 * sysdeps/sparc/sparc32/sparcv9v/memcpy.S: Moved to...
5944 * sysdeps/sparc/sparc32/sparcv9/sparcv9v/memcpy.S: ... here. New
5945 file.
5946 * sysdeps/sparc/sparc32/sparcv9v/memset.S: Moved to...
5947 * sysdeps/sparc/sparc32/sparcv9/sparcv9v/memset.S: ... here. New
5948 file.
5949
e4720b0e
JJ
59502007-08-15 Jakub Jelinek <jakub@redhat.com>
5951
5952 * sysdeps/sparc/fpu/fraiseexcpt.c (__feraiseexcept): Fix raising
5953 FE_UNDERFLOW on Niagara CPUs.
5954
5955 * sysdeps/sparc/fpu/feholdexcpt.c (feholdexcept): Clear all
5956 exceptions.
5957
702a9414
JJ
59582007-08-14 Jakub Jelinek <jakub@redhat.com>
5959
467d1345
JJ
5960 * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_runtime_setup): No
5961 need to check GLRO(dl_hwcap) & HWCAP_SPARC_FLUSH on sparcv9.
5962 (sparc_fixup_plt): Add do_flush argument instead of figuring whether
5963 flush should be used or not inside of the function.
5964 (elf_machine_fixup_plt, elf_machine_rela): Adjust caller.
5965
5966 * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__clone,
5967 __thread_start): Use HIDDEN_JUMPTARGET.
5968 * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__clone,
5969 __thread_start): Likewise.
5970 * sysdeps/unix/sysv/linux/sparc/sysdep.h (JUMPTARGET): Define.
5971
702a9414
JJ
5972 * sysdeps/ieee754/ldbl-64-128/strtold_l.c (__STRTOF): Declare.
5973 Add libc_hidden_proto.
5974 (STRTOF): Add libc_hidden_proto.
5975 (___new_strtold_l, ___new_wcstold_l): New weak aliases.
5976 (strtold_l, wcstold_l): Use them as second argument for
5977 long_double_symbol.
5978
c6c8f0ec
UD
59792007-08-14 Ulrich Drepper <drepper@redhat.com>
5980
5981 * elf/dl-misc.c: Undo last change. The kernel won't allow it.
5982
5e88abf9
UD
59832007-08-13 Kaz Kojima <kkojima@rr.iij4u.or.jp>
5984
5985 * stdlib/strtold_l.c: Include wchar.h if needed. Add libc_hidden_def.
5986
fc4819b0
UD
59872007-08-14 Ulrich Drepper <drepper@redhat.com>
5988
5989 * po/bg.po: New file. From the translation team.
5990
22502ea2
UD
59912007-08-13 Jakub Jelinek <jakub@redhat.com>
5992
5993 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_PSELECT,
5994 __ASSUME_PPOLL, __ASSUME_ATFCTS, __ASSUME_SET_ROBUST_LIST,
5995 __ASSUME_UTIMENSAT, __ASSUME_FALLOCATE): Update per-arch conditions
5996 when each feature was introduced.
5997
5998 * sysdeps/unix/sysv/linux/dl-vdso.c: Don't include dl-hash.h.
5999 * sysdeps/unix/sysv/linux/dl-vdso.h: Don't include dl-hash.h if NDEBUG.
6000 (CHECK_HASH): New macro.
6001 (PREPARE_VERSION): Use it.
6002
6003 * sysdeps/unix/sysv/linux/pselect.c (__generic_pselect): Only provide
6004 prototype if not __ASSUME_PSELECT.
6005 * sysdeps/unix/sysv/linux/ppoll.c (__generic_ppoll): Only provide
6006 prototype if not __ASSUME_PPOLL.
6007
6008 * sysdeps/unix/sysv/linux/dl-osinfo.h (ROUND): #undef after use.
6009
6010 * sysdeps/unix/clock_settime.c (freq, __pthread_clock_settime,
6011 hp_timing_settime): Don't define or declare if HANDLED_CPUTIME
6012 is defined.
6013
9c6f6953
UD
60142007-08-13 Ulrich Drepper <drepper@redhat.com>
6015
6016 * sysdeps/unix/sysv/linux/x86_64/libc-start.c
6017 (_libc_vdso_platform_setup): If vDSO is not available point
6018 __vdso_gettimeofday to the vsyscall.
6019 * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S [SHARED]: Use
6020 __vdso_gettimeofday instead of vsyscall.
6021
f8de5057
UD
60222007-08-13 Jakub Jelinek <jakub@redhat.com>
6023
6024 * nscd/servicescache.c: Include kernel-features.h.
6025 * nscd/gai.c: Likewise.
6026 * sysdeps/unix/sysv/linux/statfs64.c: Likewise.
6027 * sysdeps/unix/sysv/linux/fstatfs64.c: Likewise.
6028 * sysdeps/unix/sysv/linux/fxstatat.c: Likewise.
6029 * sysdeps/unix/sysv/linux/s390/s390-32/mmap.S: Likewise.
6030 * sysdeps/unix/sysv/linux/s390/s390-32/mmap64.S: Likewise.
6031 * sysdeps/unix/sysv/linux/xstatconv.c: Likewise.
6032 * sysdeps/unix/sysv/linux/if_index.c: Likewise.
6033 * sysdeps/unix/sysv/linux/sparc/sparc64/xstat.c: Likewise.
6034 * sysdeps/unix/sysv/linux/ifaddrs.c: Likewise.
6035
3c87d79d
UD
60362007-08-12 Ulrich Drepper <drepper@redhat.com>
6037
ea37207a
UD
6038 * elf/dl-dst.h: No need for _dl_dst_count, _dl_dst_substitute,
6039 and _dl_get_origin defines anymore.
6040
4eb375fe
UD
6041 * sysdeps/unix/sysv/linux/clock_gettime.c (maybe_syscall_gettime_cpu):
6042 Build fix for systems which might lack POSIX timer support.
6043
3c87d79d
UD
6044 * sysdeps/unix/sysv/linux/x86_64/libc-start.c
6045 (_libc_vdso_platform_setup): Mangle function pointers before storing
6046 them.
6047 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INLINE_VSYSCALL):
6048 Demangle vdso pointer before use.
6049 (INTERNAL_VSYSCALL): Likewise.
6050
6051 * elf/cache.c (primes): Mark as const.
6052 Noted by Roland McGrath.
6053
27d9ffda
UD
60542007-08-01 Andreas Jaeger <aj@suse.de>
6055 Jakub Jelinek <jakub@redhat.com>
6056
6057 * elf/ldconfig.c (opt_ignore_aux_cache): Add new option.
6058 (options): Add option.
6059 (parse_opt): Handle option.
6060 (manual_link): Adjust process_file caller. Call implicit_soname.
6061 (search_dir): Formatting. Use and populate auxiliary cache.
6062 (main): Load and save auxiliary cache.
6063 * elf/readlib.c (process_file): Add stat_buf argument. Pass struct
6064 stat64 from fstat64 to caller.
6065 (implicit_soname): New function.
6066 * elf/readelflib.c (process_elf_file): If DT_SONAME is not present,
6067 leave *soname as NULL.
6068 * elf/cache.c: Include libgen.h.
6069 (print_entry, print_cache, compare, save_cache, add_to_cache):
6070 Formatting and cleanups.
6071 (aux_cache_entry_id, aux_cache_entry, aux_cache_file_entry,
6072 aux_cache_file): New structures.
6073 (AUX_CACHEMAGIC): Define.
6074 (primes): New array.
6075 (aux_hash_size, aux_hash): New variables.
6076 (aux_cache_entry_id_hash, nextprime, init_aux_cache,
6077 search_aux_cache, insert_to_aux_cache, add_to_aux_cache,
6078 load_aux_cache, save_aux_cache): New functions.
6079 * sysdeps/generic/ldconfig.h (_PATH_LDCONFIG_AUX_CACHE): Define.
6080 (init_aux_cache, search_aux_cache, add_to_aux_cache,
6081 load_aux_cache, save_aux_cache, implicit_soname): New prototypes.
6082 (process_file): Adjust prototype.
6083
8d944b0f
UD
60842007-08-12 Jakub Jelinek <jakub@redhat.com>
6085
6086 * sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h: Include stddef.h
6087 with __need_size_t.
6088
75fb247e
UD
60892007-08-12 Ulrich Drepper <drepper@redhat.com>
6090
fb86328a
UD
6091 * sysdeps/unix/sysv/linux/dl-vdso.c (_dl_vdso_vsym): Expect
6092 r_found_version structure as second parameter.
6093 * sysdeps/unix/sysv/linux/dl-vdso.h (PREPARE_VERSION): Define.
6094 (_dl_vdso_vsym): Change type of second parameter accordingly.
6095 * sysdeps/unix/sysv/linux/x86-64/libc-start.c
6096 (_libc_vdso_platform_setup): Adjust.
974a1f0f 6097 * sysdeps/unix/sysv/linux/powerpc/libc-start.c
fb86328a
UD
6098 (_libc_vdso_platform_setup): Likewise.
6099
75fb247e
UD
6100 * sysdeps/unix/sysv/linux/powerpc/dl-vdso.c: Move to...
6101 * sysdeps/unix/sysv/linux/dl-vdso.c: ...here.
6102 * sysdeps/unix/sysv/linux/powerpc/dl-vdso.h: Move to...
6103 * sysdeps/unix/sysv/linux/dl-vdso.h: ...here.
6104 * csu/libc-start.c: Pretty printing.
6105 Use VDSO_SETUP if defined.
6106 * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Define VDSO_SETUP
6107 and let generic code call into _libc_vdso_platform_setup.
6108 * sysdeps/unix/sysv/linux/x86_64/libc-start.c: New file.
6109 * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: New file.
6110 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Pretty printing.
6111 Define INLINE_VSYSCALL and INTERNAL_VSYSCALL.
6112 * sysdeps/unix/sysv/linux/x86_64/Versions: Export __vdso_clock_gettime
6113 for GLIBC_PRIVATE.
6114 * sysdeps/unix/sysv/linux/x86_64/Makefile [subdir=elf]
6115 (sysdep_rountines): Add dl-vdso.
6116
6117 * sysdeps/unix/sysv/linux/powerpc/Makefile: Use sysdep_routines instead
6118 of routines.
6119
6120 * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h: Add
6121 attribute_hidden to __vdso_gettimeofday prototype.
6122
9229b83e
RM
61232007-08-12 Roland McGrath <roland@redhat.com>
6124
6125 * manual/stdio.texi (Variable Arguments Output): Fix xref to gcc manual.
6126 From: Karl Berry <karl@freefriends.org>.
6127
4503061f
UD
61282007-08-11 Ulrich Drepper <drepper@redhat.com>
6129
6130 * elf/dl-misc.c (_dl_sysdep_read_whole_file): We really don't need
6131 an atime update for the files we read.
6132
d7e23b02
UD
61332007-08-10 Ulrich Drepper <drepper@redhat.com>
6134
7cf89e95
UD
6135 * shadow/lckpwdf.c (__lckpwdf): Use O_CLOEXEC if possible.
6136
9d169bb3 6137 * nscd/connections.c: Use O_CLOEXEC if possible. Use mkostemp
d7e23b02
UD
6138 instead of mkstemp.
6139
6140 * misc/Makefile (routines): Add mkostemp and mkostemp64.
6141 * misc/Versions: Export mkostemp and mkostemp64 for GLIBC_2.7.
6142 * misc/mkostemp.c: New file.
6143 * misc/mkostemp64.c: New file.
6144 * stdlib/stdlib.h: Declare the new functions.
6145 * sysdeps/posix/tempname.c: Add new parameter which is added to
6146 the flags for open. Remove __GT_BIGFILE handling.
6147 * stdio-common/tempname.c: Likewise.
6148 * include/stdio.h: Adjust __gen_tempname prototype.
6149 Renumber __GT_* constants.
6150 * libio/oldtmpfile.c: Adjust for __gen_tempname interface change.
6151 * misc/mkdtemp.c: Likewise.
6152 * misc/mkstemp.c: Likewise.
6153 * misc/mkstemp64.c: Likewise.
6154 * misc/mktemp.c: Likewise.
6155 * stdio-common/tempnam.c: Likewise.
6156 * stdio-common/tmpfile.c: Likewise.
6157 * stdio-common/tmpfile64.c: Likewise.
6158 * stdio-common/tmpnam.c: Likewise.
6159 * stdio-common/tmpnam_r.c: Likewise.
6160
22532966
RM
61612007-08-10 Roland McGrath <roland@frob.com>
6162
6163 * sysdeps/mach/hurd/bits/ioctls.h (NLDLY, TABDLY, BSDLY, VTDLY):
6164 New macros.
6165 (NLDELAY, CRDELAY, TBDELAY, BSDELAY, VTDELAY): Define to those.
6166 Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>.
6167
673876e6
UD
61682007-08-10 Ulrich Drepper <drepper@redhat.com>
6169
aa132749
UD
6170 * nss/nss_files/files-XXX.c (internal_setent): Use O_CLOEXEC if
6171 possible.
6172 * nss/nss_files/files-alias.c (internal_setent): Likewise.
6173 * nss/Makefile (libnss_files-routines): Add files-have_o_cloexec.
6174 * nss/nss_files/files-have_o_cloexec.c: New file.
6175
22532966 6176 * sysdeps/unix/sysv/linux/shm_open.c (shm_open): Use O_CLOEXEC if
673876e6
UD
6177 available.
6178
1e286653
JJ
61792007-08-10 Jakub Jelinek <jakub@redhat.com>
6180
6181 * sysdeps/ieee754/ldbl-128ibm/strtold_l.c (___new_strtold_l,
6182 ___new_wcstold_l): New weak aliases.
6183 (strtold_l, wcstold_l): Use them as second argument for
6184 long_double_symbol.
6185
f07f72f3
UD
61862007-08-09 Ulrich Drepper <drepper@redhat.com>
6187
6479496a
UD
6188 * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Use correct
6189 register in test for error.
6190
c4adefbd
UD
6191 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_CLOEXEC): Define.
6192 * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h (O_CLOEXEC): Likewise.
6193
f07f72f3
UD
6194 * po/sv.po: Update from translation team.
6195
eef38c28
RM
61962007-08-06 Roland McGrath <roland@redhat.com>
6197
773e305e
RM
6198 * include/stdlib.h: Add libc_hidden_proto for strto*, __strto*_l.
6199 Remove __strto*_l inlines.
6200 * include/wchar.h: Add libc_hidden_proto for wcsto*, __wcsto*_l.
6201 * stdlib/strtod.c: Add libc_hidden_def.
6202 * stdlib/strtod_l.c: Likewise.
6203 * stdlib/strtold.c [__LONG_DOUBLE_MATH_OPTIONAL]: Add libc_hidden_proto
6204 for __new_strtold and __new_wcstold.
6205 * sysdeps/ieee754/ldbl-128ibm/strtold_l.c: Add libc_hidden_proto for
6206 __STRTOF, STRTOF.
6207 * stdlib/strtol.c: Add libc_hidden_def.
6208 * stdlib/strtol_l.c: Likewise.
6209 * sysdeps/wordsize-64/strtol.c: Add libc_hidden_ver for strtoll and
6210 strtoq.
6211
6212 * scripts/data/localplt-powerpc-linux-gnu.data: New file.
6213
6214 * scripts/data/localplt-x86_64-linux-gnu.data: File renamed to ...
6215 * scripts/data/localplt-generic.data: ... here.
6216 * elf/Makefile (check-data): Get generic file if no other.
6217 ($(objpfx)check-localplt.out): Make target unconditional.
6218
eef38c28
RM
6219 * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_discover_osversion):
6220 Use ElfW(Nhdr).
6221
742df3a4
UD
62222007-08-05 Ulrich Drepper <drepper@redhat.com>
6223
6224 * po/zh_CN.po: Updated translation from translation team.
6225
0470fa46
JJ
62262007-08-05 Jakub Jelinek <jakub@redhat.com>
6227
6228 * sysdeps/unix/sysv/linux/powerpc/powerpc32/socket.S (__socket):
6229 Don't use CGOTSETUP and CGOTRESTORE macros.
6230
b5075bdc
RM
62312007-08-04 Roland McGrath <roland@redhat.com>
6232
6233 * posix/Makefile ($(objpfx)getconf.speclist): Fix typo.
6234
9accc268
JJ
62352007-08-04 Jakub Jelinek <jakub@redhat.com>
6236
6237 * io/bits/fcntl2.h (open, open64, openat, openat64): Add
6238 __extension__ around the whole statement expression.
6239
220ae3ef
UD
62402007-08-04 Ulrich Drepper <drepper@redhat.com>
6241
c8ccd8e3
UD
6242 * sysdeps/unix/opendir.c (__alloc_dir): Correct order of DIR
6243 elements during initialization.
6244
220ae3ef
UD
6245 * po/pl.po: Updated translation from translation team.
6246 * po/tr.po: Likewise.
11960f7f 6247 * po/nl.po: Likewise.
220ae3ef 6248
2fb20667
UD
62492007-08-03 Ulrich Drepper <drepper@redhat.com>
6250
6251 * rt/aio.h: Add __nonnull attributes.
6252
ce31a3b1
UD
62532007-08-03 Jakub Jelinek <jakub@redhat.com>
6254
64f6281c
UD
6255 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Properly handle -0.
6256 * stdlib/Makefile (tests): Add tst-strtod5.
6257 (tst-strtod5-ENV): New.
6258 * stdlib/tst-strtod5.c: New file.
6259
ce31a3b1
UD
6260 * intl/dcigettext.c (_nl_find_msg): Free encoding if __gconv_open
6261 failed.
6262 * intl/finddomain.c (_nl_find_domain): Free normalized_codeset
6263 on failure.
6264
6265 * elf/dl-load.c (decompose_rpath): Free copy if result couldn't be
6266 allocated.
6267
754980e4
JJ
62682007-08-03 Jakub Jelinek <jakub@redhat.com>
6269
6270 * rt/mqueue.h (mq_timedreceive, mq_timedsend): Fix nonnull argument
6271 numbers.
6272
497af0cb
UD
62732007-08-02 Ulrich Drepper <drepper@redhat.com>
6274
cbf0489b
UD
6275 * io/Makefile (aux): Add have_o_cloexec.
6276 * include/fcntl.h: Declare __have_o_cloexec.
6277 * io/have_o_cloexec.c: New file.
6278 * sysdeps/unix/opendir.c (__opendir): Use O_CLOEXEC is available.
6279 (__alloc_dir): If O_CLOEXEC has been used, don't duplicate the
6280 fcntl call if not necessary.
6281 * login/utmp_file.c (setutent_file): Use __have_o_cloexec instead
6282 of local variable.
6283
fa39685d
UD
6284 * sysdeps/unix/opendir.c (__alloc_dir): Don't initialize ->data.
6285 Avoid memset, add explicit initialization.
6286 * sysdeps/unix/dirstream.h (struct __dirstream): Move data elemtn
6287 to the end and change into zero-sized array.
6288 Move lock member to fill a hole on 64-bit platforms.
9b2e9577
UD
6289
6290 * stdlib/stdlib.h: Remove __strto*_internal prototypes and strto*
6291 inline functions.
6292 * include/stdlib.h: Add __strto*_internal prototypes here.
6293 * wcsmbs/wchar.h: Remove __wcsto*_internal prototypes and wcsto*
6294 inline functions.
6295 * include/wchar.h: Add __wcsto*_internal prototypes.
6296 * sysdeps/generic/inttypes.h: No need to protect the declaration
6297 of the __strto*_internal and __wcsto*_internal members here.
6298
497af0cb
UD
6299 * rt/mqueue.h: Change const to __const and add nonnull attributes.
6300
d17a8cf0
RM
63012007-08-02 Roland McGrath <roland@redhat.com>
6302
6303 * posix/Makefile ($(inst_libexecdir)/getconf): Make hard links to
6304 $(inst_bindir)/getconf if possible.
6305
6306 * posix/Makefile ($(objpfx)getconf.speclist): New target.
6307 (generated): Add it.
6308 ($(inst_libexecdir)/getconf): Use it.
6309
0abf17de
UD
63102007-08-01 Ulrich Drepper <drepper@redhat.com>
6311
6312 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Using
6313 /proc is faster and sufficient. /sys is still needed for
6314 __get_nprocs_conf.
6315
5e0923ab
UD
63162007-08-01 Jakub Jelinek <jakub@redhat.com>
6317
6318 * sysdeps/unix/sysv/linux/i386/syscalls.list (fallocate): Add fallocate
6319 syscall as __fallocate64.
6320 * sysdeps/unix/sysv/linux/i386/posix_fallocate.c: New file.
6321 * sysdeps/unix/sysv/linux/i386/posix_fallocate64.c: New file.
6322
1475e201
UD
63232007-07-30 Jakub Jelinek <jakub@redhat.com>
6324
6325 * stdlib/tst-strtod2.c (do_test): Use %tu in fmt string for ptrdiff_t
6326 value.
6327
6328 * stdio-common/tst-fmemopen2.c (do_test): Avoid fmt string warning
6329 if off_t is different rank from size_t.
6330
6331 * sysdeps/generic/unwind-dw2.c (extract_cie_info, execute_cfa_program,
6332 uw_frame_state_for): Avoid type punning warnings.
6333 * sysdeps/generic/unwind-dw2-fde-glibc.c
6334 (_Unwind_IteratePhdrCallback): Likewise.
6335 * sysdeps/generic/unwind-dw2-fde.c (_Unwind_Find_FDE): Likewise.
6336 (binary_search_single_encoding_fdes, binary_search_mixed_encoding_fdes,
6337 get_cie_encoding, linear_search_fdes): Don't mix char and unsigned char
6338 pointers.
6339
e076bece
UD
63402007-07-31 Ulrich Drepper <drepper@redhat.com>
6341
9506149a
UD
6342 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs_conf): Count
6343 total processors using sysfs.
6344 (__get_nprocs): Use sysfs to determine which processors are online.
e076bece 6345
bbeaaa84
JJ
63462007-07-31 Jakub Jelinek <jakub@redhat.com>
6347
09881398
JJ
6348 * sysdeps/unix/sysv/linux/posix_fallocate.c (posix_fallocate): Fix
6349 syscall arguments count.
6350
bbeaaa84
JJ
6351 * stdio-common/tfformat.c (sprint_doubles): Add 12 new tests.
6352
087ef75f
RM
63532007-07-30 Roland McGrath <roland@redhat.com>
6354
6355 * manual/libc.texinfo: Update copyrights, formatting magic, and
6356 @dircategory. From Karl Berry <karl@freefriends.org>.
6357
44f08a6e
UD
63582007-07-29 Ulrich Drepper <drepper@redhat.com>
6359
eafaae72
UD
6360 [BZ #4860]
6361 * io/Makefile (headers): Add bits/fcntl2.h.
6362
c5705565
UD
6363 * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_ZERO_S): Optimize
6364 using gcc builtin.
6365 (__CPU_EQUAL_S): Likewise.
6366
44f08a6e
UD
6367 * posix/Makefile (routines): Add sched_cpualloc and sched_cpufree.
6368 (tests): Add tst-cpuset.
6369 * posix/sched_cpualloc.c: New file.
6370 * posix/sched_cpufree.c: New file.
6371 * posix/tst-cpuset.c: New file.
6372 * posix/Versions: Export __sched_cpualloc and __sched_cpufree for
6373 GLIBC_2.7.
6374 * sysdeps/unix/sysv/linux/bits/sched.h: Define __CPU_*_S macros.
6375 * posix/sched.h: Define old CPU_* macros in temers of __CPU_*_S
6376 macros. Define CPU_*_S macros.
6377
8f5e1400
UD
63782007-07-28 Ulrich Drepper <drepper@redhat.com>
6379
5b74caf6
UD
6380 * posix/getconf.c (vars): Add missing _SC_LEVEL4_CACHE_LINESIZE
6381 entry.
6382
a26d01bb 6383 [BZ #4858]
8f5e1400
UD
6384 * stdio-common/printf_fp.c (___printf_fp): Fix special case of
6385 #.0g and value rounded to 1.0.
6386 * stdio-common/tfformat.c (sprint_doubles): Add two new tests.
6387
085a4412
UD
63882007-07-26 Jakub Jelinek <jakub@redhat.com>
6389
cedb4109
UD
6390 * locale/programs/ld-monetary.c (monetary_finish): Avoid range check
6391 for int_frac_digits and frac_digits.
6392
6393 * login/logout.c (logout): Avoid aliasing violation.
6394 * login/logwtmp.c (logwtmp): Likewise.
6395
6396 * libio/genops.c (_IO_un_link): Avoid aliasing violation.
6397
9d9febc7
UD
6398 * nscd/selinux.c (preserve_capabilities): Initialize new_caps
6399 to avoid warning.
6400 * iconv/gconv_open.c (__gconv_open): Initialize ptr to avoid
6401 warning.
6402 * nis/nis_subr.c (nis_getnames): Initialize saveptr to avoid
6403 warning.
6404 * resolv/inet_ntop.c (inet_ntop6): Initialize best.len and cur.len
6405 to avoid warnings.
6406
701666b7
UD
6407 * nss/nsswitch.c (__nss_lookup_function): Don't cast &ni->known to
6408 void **.
6409 * nss/nsswitch.h (service_user): Use void * type for KNOWN field.
6410
6411 * nss/nss_files/files-hosts.c (LINE_PARSER): Cast host_addr to
6412 char * to avoid warning.
6413 * nis/nss_nis/nis-hosts.c (LINE_PARSER): Likewise.
6414
6415 * timezone/Makefile (CFLAGS-zdump.c): Add -fwrapv.
6416
6417 * locale/programs/ld-ctype.c (ctype_finish, set_class_defaults,
6418 allocate_arrays): Cast second argument to charmap_find_symbol
6419 to char * to avoid warnings.
6420
6421 * locale/programs/repertoire.c (repertoire_new_char): Change
6422 from_nr, to_nr and cnt to unsigned long, adjust printf format
6423 string.
6424
6425 * locale/programs/ld-collate.c (insert_value, handle_ellipsis):
6426 Cast second argument to new_element to char * to avoid warnings.
6427
6428 * locale/weightwc.h (findidx): Cast &extra[-i] to const int32_t *.
6429
6430 * intl/gettextP.h (struct loaded_domain): Change plural to const
6431 struct expression *.
6432 * intl/plural-eval.c (plural_eval): Change first argument to
6433 const struct expression *.
6434 * intl/plural-exp.c (EXTRACT_PLURAL_EXPRESSION): Change first
6435 argument to const struct expression **.
6436 * intl/plural-exp.h (EXTRACT_PLURAL_EXPRESSION, plural_eval): Adjust
6437 prototypes.
6438 * intl/loadmsgcat (_nl_unload_domain): Cast away const
6439 in call to __gettext_free_exp.
6440
6441 * posix/fnmatch.c (fnmatch): Rearrange code to avoid maybe
6442 unitialized wstring/wpattern var warnings.
6443
6444 * posix/runtests.c (struct a_test): Make data field const char *.
6445
6446 * stdio-common/tst-sprintf2.c (main): Don't declere u, v and buf
6447 vars if not LDBL_MANT_DIG >= 106.
6448
6449 * stdio-common/Makefile (CFLAGS-vfwprintf.c): Add -Wno-unitialized.
6450
6451 * stdio-common/vfprintf.c (vfprintf): Cast first arugment to
6452 __find_specmb to avoid warning.
6453
6454 * rt/tst-mqueue1.c (do_one_test): Add casts to avoid warnings.
6455
6456 * debug/test-strcpy_chk.c (do_tests, do_random_tests): Add casts
6457 to avoid warnings.
6458
6459 * sysdeps/ieee754/ldbl-96/s_roundl.c (huge): Add L suffix to
6460 initializer.
6461
6462 * sysdeps/unix/clock_gettime.c (clock_gettime): Only define
6463 tv var when it will be actually used.
6464
6465 * sunrpc/rpc_cmsg.c (xdr_callmsg): Cast IXDR_PUT_* to void
6466 to avoid warnings.
6467
085a4412
UD
6468 * iconvdata/gbk.c (BODY): Make buf and cp char instead of unsigned
6469 char array resp. pointer.
6470 * iconvdata/iso-2022-kr.c (BODY): Make buf unsigned char instead of
6471 char array.
6472 * iconvdata/cns11643.h (cns11643_to_ucs4): Change first argument
6473 to const unsigned char **.
6474 (ucs4_to_cns11643): Change second argument to unsigned char *.
6475 * iconvdata/euc-tw.c (BODY): Change endp type to
6476 const unsigned char *.
6477 * iconvdata/iso-ir-165.h (ucs4_to_isoir165): Change second argument
6478 to unsigned char *.
6479 * iconvdata/ibm1008_420.c (LOOP_NEED_FLAGS): Don't define.
6480 * iconvdata/iso-2022-cn.c (BODY): Change buf to unsigned char array.
6481 * iconvdata/iso-2022-cn-ext.c (BODY): Change buf, tmpbuf, tmp
6482 types to unsigned char pointers/arrays instead of char.
6483 * iconvdata/jis0201.h (ucs4_to_jisx0201): Change second argument
6484 to unsigned char *.
6485 * iconvdata/jis0208.h (ucs4_to_jisx0208): Likewise.
6486 * iconvdata/jis0212.h: Include assert.h.
6487 (ucs4_to_jisx0212): Change second argument to unsigned char *.
6488 assert that if cp[0] is not '\0', cp[1] is not '\0' either instead
6489 of trying to handle that.
6490 * iconvdata/euc-kr.c (euckr_from_ucs4): Initialize also cp[1] to
6491 shut up a warning.
6492 * iconvdata/euc-jp-ms.c (from_ucs4_lat1, from_ucs4_greek,
6493 from_ucs4_cjk, from_ucs4_cjkcpt, from_ucs4_extra): Change type to
6494 two dimensional const unsigned char arrays.
6495 (BODY): Cast "" to (const unsigned char *) for assignment to cp.
6496 Initialize endp to inptr to shut up a warning.
6497
fa69dc9c
UD
64982007-07-20 Jakub Jelinek <jakub@redhat.com>
6499
ae1ad762
UD
6500 [BZ #4772]
6501 * time/strptime_l.c (__strptime_internal): Silently ignore
6502 strftime modifiers and field width in recursive calls.
6503
fa69dc9c
UD
6504 * include/time.h (enum ptime_locale_status): Remove.
6505 (__strptime_internal): Remove decided and era_cnt arguments,
6506 add statep argument.
6507 * time/strptime_l.c (__strptime_internal): Remove decided
6508 and era_cnt arguments, add statep argument. Don't recompute
6509 any fields in recursive calls, only update caller's tm
6510 and state, if recursive call fails, don't change tm nor
6511 any state.
6512 (get_alt_number): Adjust.
6513 (recursive): Adjust caller.
6514 (strptime): Likewise.
6515 * time/strptime.c (strptime): Likewise.
6516
7b503bcc
UD
65172007-07-19 Jakub Jelinek <jakub@redhat.com>
6518
6519 * iconv/gconv_int.h (__GCONV_NULCONV): New internal only error code.
6520 * iconv/gconv_cache.c (__gconv_lookup_cache): Return __GCONV_NULCONV
6521 if from and to charsets are the same.
6522 * iconv/gconv_db.c (__gconv_find_transform): Likewise.
6523 * intl/dcigettext.c (_nl_find_msg): Return NULL even if __gconv_open
6524 returns __GCONV_NOCONV, but not for __GCONV_NULCONV.
6525
65262007-07-17 Jakub Jelinek <jakub@redhat.com>
6527
6528 * wcsmbs/wchar.h: Only define wint_t if __need_wint_t.
6529 Don't define wint_t when __need_mbstate_t unless it
6530 is necessary.
6531 (__mbstate_t): Use __WINT_TYPE__ rather than wint_t
6532 in the typedef if possible.
6533 * wctype/wctype.h (wint_t): Define by including
6534 wchar.h with __need_wint_t instead of including stddef.h
6535 with __need_wint_t and as fallback definining it ourselves.
6536 * iconv/gconv.h (__need_wint_t): Define before including
6537 wchar.h.
6538 * sysdeps/gnu/_G_config.h: Don't include gconv.h if not _LIBC
6539 or _GLIBCPP_USE_WCHAR_T.
6540 (__need_wchar_t): Don't define
6541 if not _LIBC or _GLIBCPP_USE_WCHAR_T.
6542 (__need_wint_t): Don't define before including stddef.h,
6543 define before including wchar.h only if _LIBC or
6544 _GLIBCPP_USE_WCHAR_T.
6545 (_G_iconv_t): Don't define if not _LIBC or _GLIBCPP_USE_WCHAR_T.
6546 * sysdeps/mach/hurd/_G_config.h: Likewise.
6547 * sysdeps/generic/_G_config.h: Likewise.
6548 * libio/libio.h (__wunderflow, __wuflow, __woverflow): Only
6549 prototype if _LIBC or _GLIBCPP_USE_WCHAR_T.
6550 (_IO_getwc_unlocked, _IO_putwc_unlocked): Only define
6551 if _LIBC or _GLIBCPP_USE_WCHAR_T.
6552
a95a608f
UD
65532007-07-28 Ulrich Drepper <drepper@redhat.com>
6554
6555 * sysdeps/posix/posix_fallocate64.c: Undefine
6556 __posix_fallocate64_l64 before alias handling.
6557 * sysdeps/unix/sysv/linux/posix_fallocate.c: New file.
6558 * sysdeps/unix/sysv/linux/posix_fallocate64.c: New file.
6559 * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c: New file.
6560 * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate64.c: New file.
6561
6562 * io/tst-posix_fallocate.c: Include <fcntl.h>.
6563
65642007-07-23 Jakub Jelinek <jakub@redhat.com>
6565
6566 * locale/programs/ld-collate.c (atwc): New variable.
6567 (add_to_tablewc): New toplevel function, moved from collate_output.
6568 (collate_output): Remove add_to_tablewc nested function.
6569
6570 * iconv/iconvconfig.c (hash_table, hash_size): New toplevel vars.
6571 (name_insert): New function.
6572 (write_output): Remove hash_table and hash_size vars and name_insert
6573 nested function.
6574
80d4c3b0
RM
65752007-07-24 Roland McGrath <roland@redhat.com>
6576
6577 * Makerules (install-others-programs-nosubdir): New target.
6578 (install-no-libc.a-nosubdir): Depend on it.
6579
6580 * iconv/Makefile (install-others-programs): Set this instead of
6581 install-others.
6582 * login/Makefile (install-others-programs): Likewise.
6583 * posix/Makefile (install-others-programs): Likewise.
6584
6585 * Makerules (install-no-libc.a-nosubdir): Clean up conditional
6586 dependencies.
6587
c1bf9f14
UD
65882007-07-23 Ulrich Drepper <drepper@redhat.com>
6589
6590 * io/Makefile (tests): Add tst-posix_fallocate.
6591 * io/tst-posix_fallocate.c: New file.
6592
6593 * sysdeps/unix/sysv/linux/kernel-features.h: Define
6594 __ASSUME_FALLOCATE.
6595
2320270c
RM
65962007-07-22 Roland McGrath <roland@frob.com>
6597
3dadfa7e
RM
6598 * hurd/getdport.c: Add missing copyright year update.
6599
2320270c
RM
6600 * sysdeps/mach/hurd/bits/fcntl.h [__USE_GNU] (O_CLOEXEC): New macro.
6601 * hurd/port2fd.c (_hurd_port2fd): Implement O_CLOEXEC.
6602
cc783763
UD
66032007-07-22 Ulrich Drepper <drepper@redhat.com>
6604
c942388d
UD
6605 * login/utmp_file.c (setutent_file): Use O_CLOEXEC if possible.
6606
cc783763
UD
6607 * libio/fileops.c (_IO_new_file_fopen): Recognize 'e' flag and set
6608 O_CLOEXEC is needed.
6609 * nis/nss_compat/compat-grp.c: Use 'e' flag when opening file.
6610 Avoid additional fcntl to set O_CLOEXEC if not needed.
6611 * nis/nss_compat/compat-initgroups.c: Likewise.
6612 * nis/nss_compat/compat-pwd.c: Likewise.
6613 * nis/nss_compat/compat-spwd.c: Likewise.
6614
610903b0
RM
66152007-07-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
6616
3dadfa7e 6617 [BZ #3665]
5c3d7832
RM
6618 * manual/errno.texi: Change ECANCELED value to 119.
6619
3dadfa7e 6620 [BZ #4610]
610903b0
RM
6621 * mach/lock-intern.h: Include <sys/cdefs.h>.
6622
3dadfa7e 6623 [BZ #4178]
610903b0
RM
6624 * sysdeps/mach/hurd/sigaction.c (__sigaction): Check ACT != NULL before
6625 reading A.
6626
3dadfa7e
RM
6627 [BZ #4126]
6628 * sysdeps/mach/hurd/sigsuspend.c (sigsuspend_not_cancel): Define alias
6629 to __sigsuspend.
610903b0
RM
6630
6631 * sysdeps/mach/i386/sysdep.h: Include <dl-sysdep.h> and <tls.h>.
6632
66332006-06-13 Thomas Schwinge <tschwinge@gnu.org>
6634
6635 * sysdeps/mach/hurd/tls.h: Change `ASSEMBLER' conditional to
6636 `__ASSEMBLER__'.
6637 * sysdeps/mach/hurd/i386/tls.h: Likewise.
6638
acf79996
UD
66392007-07-21 Ulrich Drepper <drepper@redhat.com>
6640
dde0763a
UD
6641 * nscd/nscd_helper.c (get_mapping): Use MSG_CMSG_CLOEXEC for
6642 descriptor received from nscd.
6643
acf79996
UD
6644 * sysdeps/unix/sysv/linux/bits/socket.h: Define MSG_CMSG_CLOEXEC.
6645
6646 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define O_CLOEXEC.
6647 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
6648 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
6649 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
6650 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
6651 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
6652
00d26929
JJ
66532007-07-20 Jakub Jelinek <jakub@redhat.com>
6654
403445d7
JJ
6655 [BZ #4816]
6656 * manual/signal.texi (Non-atomic Example): Make memory var volatile.
6657
00d26929
JJ
6658 [BZ #4813]
6659 * login/forkpty.c (forkpty): Close master and slave fds on
6660 fork failure. Patch by
6661 Mikulas Patocka <mikulas@artax.karlin.mff.cuni.cz>.
6662
087722b8
UD
66632007-07-18 Jakub Jelinek <jakub@redhat.com>
6664
6665 * include/features.h (__USE_ISOC95): New define.
6666 * wcsmbs/wchar.h (fwprintf, fwscanf, wprintf, wscanf, swprintf,
6667 swscanf, vfwprintf, vwprintf, vswprintf, fwide): Define even
6668 for -std=iso9899:199409.
6669 * CONFORMANCE: Remove comments about unsupported AMD1.
6670
b042b023
UD
66712007-07-17 Jakub Jelinek <jakub@redhat.com>
6672
6673 * sysdeps/ia64/sched_cpucount.c: New file.
6674 * sysdeps/powerpc/sched_cpucount.c: New file.
6675
8381e467
UD
6676 * sysdeps/unix/sysv/linux/bits/sched.h (__sched_cpucount): Add
6677 __BEGIN_DECLS/__END_DECLS around the prototype.
6678 * bits/sched.h (__sched_cpucount): Likewise. Make second argument
6679 pointer to const cpu_set_t.
6680
50e16f85
UD
6681 * bits/types.h: Don't include stddef.h, don't define __need_size_t.
6682 * signal/signal.h <__USE_BSD || __USE_XOPEN_EXTENDED>: Define
6683 __need_size_t and include stddef.h.
6684 * sysvipc/sys/msg.h: Likewise.
6685 * posix/sched.h: Likewise.
6686 * hurd/hurd/signal.h (__need_size_t): Define.
6687
6688 * CONFORMANCE: ctype.h and wctype.h no longer define size_t,
6689 neither does signal.h in pedantic ISO C namespaces. stdio.h
6690 no longer defines wint_t or wchar_t.
6691
b257c726
UD
6692 * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct): New function.
6693 * debug/vfwprintf_chk.c (__vfwprintf_chk): Use
6694 _IO_acquire_lock_clear_flags2 instead of _IO_acquire_lock.
6695 * debug/vprintf_chk.c (__vprintf_chk): Likewise.
6696 * debug/vwprintf_chk.c (__vwprintf_chk): Likewise.
6697 * debug/vfprintf_chk.c (__vfprintf_chk): Likewise.
6698 * debug/fwprintf_chk.c (__fwprintf_chk): Likewise.
6699 * debug/printf_chk.c (__printf_chk): Likewise.
6700 * debug/fprintf_chk.c (__fprintf_chk): Likewise.
6701 * debug/wprintf_chk.c (__wprintf_chk): Likewise.
6702
6703 * sysdeps/pthread/bits/stdio-lock.h (_IO_acquire_lock_clear_flags2):
6704 Define.
6705
d5078b9f
UD
6706 * bits/confname.h (_CS_POSIX_V6_WIDTH_RESTRICTED_ENVS): Define.
6707 * posix/getconf.c (vars): Add POSIX_V6_WIDTH_RESTRICTED_ENVS.
6708
1c3e748e
UD
67092007-07-16 Jakub Jelinek <jakub@redhat.com>
6710
6711 [BZ #4792]
6712 * stdlib/stdlib.h (realloc): Remove __attribute_malloc__.
6713 * malloc/malloc.h (realloc): Likewise.
6714
4e425301
UD
6715 * libio/iopopen.c (_IO_new_proc_open): Don't close child_std_end
6716 if one of proc_file_chain streams has that fileno.
6717 * stdio-common/Makefile (tests): Add tst-popen2.
6718 * stdio-common/tst-popen2.c: New test.
6719
2e2efe65
RM
67202007-07-14 Jakub Jelinek <jakub@redhat.com>
6721
6722 * elf/ldconfig.c: Allow GPLv2 or any later version.
6723 * elf/readlib.c: Likewise.
6724 * elf/chroot_canon.c: Likewise.
6725 * elf/cache.c: Likewise.
6726 * nscd/mem.c: Likewise.
6727 * nscd/getpwuid_r.c: Likewise.
6728 * nscd/grpcache.c: Likewise.
6729 * nscd/aicache.c: Likewise.
6730 * nscd/getsrvbynm_r.c: Likewise.
6731 * nscd/nscd.c: Likewise.
6732 * nscd/servicescache.c: Likewise.
6733 * nscd/getsrvbypt_r.c: Likewise.
6734 * nscd/initgrcache.c: Likewise.
6735 * nscd/gethstbyad_r.c: Likewise.
6736 * nscd/gethstbynm2_r.c: Likewise.
6737 * nscd/getgrnam_r.c: Likewise.
6738 * nscd/nscd_setup_thread.c: Likewise.
6739 * nscd/getpwnam_r.c: Likewise.
6740 * nscd/gai.c: Likewise.
6741 * nscd/connections.c: Likewise.
6742 * nscd/dbg_log.c: Likewise.
6743 * nscd/cache.c: Likewise.
6744 * nscd/hstcache.c: Likewise.
6745 * nscd/nscd_conf.c: Likewise.
6746 * nscd/getgrgid_r.c: Likewise.
6747 * nscd/pwdcache.c: Likewise.
6748 * catgets/gencat.c: Likewise.
6749 * locale/programs/linereader.h: Likewise.
6750 * locale/programs/locarchive.c: Likewise.
6751 * locale/programs/ld-paper.c: Likewise.
6752 * locale/programs/locfile-kw.h: Likewise.
6753 * locale/programs/ld-address.c: Likewise.
6754 * locale/programs/xmalloc.c: Likewise.
6755 * locale/programs/ld-time.c: Likewise.
6756 * locale/programs/localedef.c: Likewise.
6757 * locale/programs/simple-hash.c: Likewise.
6758 * locale/programs/xstrdup.c: Likewise.
6759 * locale/programs/ld-numeric.c: Likewise.
6760 * locale/programs/locfile-kw.gperf: Likewise.
6761 * locale/programs/ld-collate.c: Likewise.
6762 * locale/programs/charmap-kw.gperf: Likewise.
6763 * locale/programs/charmap.h: Likewise.
6764 * locale/programs/charmap-kw.h: Likewise.
6765 * locale/programs/config.h: Likewise.
6766 * locale/programs/locfile.c: Likewise.
6767 * locale/programs/ld-ctype.c: Likewise.
6768 * locale/programs/charmap.c: Likewise.
6769 * locale/programs/ld-messages.c: Likewise.
6770 * locale/programs/repertoire.h: Likewise.
6771 * locale/programs/locale.c: Likewise.
6772 * locale/programs/ld-name.c: Likewise.
6773 * locale/programs/linereader.c: Likewise.
6774 * locale/programs/locfile.h: Likewise.
6775 * locale/programs/3level.h: Likewise.
6776 * locale/programs/ld-monetary.c: Likewise.
6777 * locale/programs/ld-measurement.c: Likewise.
6778 * locale/programs/charmap-dir.c: Likewise.
6779 * locale/programs/ld-identification.c: Likewise.
6780 * locale/programs/localedef.h: Likewise.
6781 * locale/programs/charmap-dir.h: Likewise.
6782 * locale/programs/repertoire.c: Likewise.
6783 * locale/programs/simple-hash.h: Likewise.
6784 * locale/programs/ld-telephone.c: Likewise.
6785 * locale/programs/locale-spec.c: Likewise.
6786 * locale/programs/locfile-token.h: Likewise.
6787 * posix/getconf.c: Likewise.
6788 * iconv/dummy-repertoire.c: Likewise.
6789 * iconv/iconv_charmap.c: Likewise.
6790 * iconv/iconvconfig.c: Likewise.
6791 * iconv/iconv_prog.c: Likewise.
6792 * malloc/memusagestat.c: Likewise.
6793 * sysdeps/unix/sysv/linux/nscd_setup_thread.c: Likewise.
6794
84c23a3d
RM
67952007-07-06 Kaz Kojima <kkojima@rr.iij4u.or.jp>
6796
6797 * sysdeps/sh/bsd-setjmp.S (setjmp): Use correct argument registers.
6798 * sysdeps/sh/bsd-_setjmp.S (_setjmp): Likewise.
6799 * sysdeps/unix/sysv/linux/sh/clone.S (__clone): Do correct sanity
6800 check for the first argument.
6801
1c298d08
UD
68022007-07-12 Jakub Jelinek <jakub@redhat.com>
6803
6804 [BZ #4775]
6805 * math/tgmath.h (__tgmath_real_type_sub): Formatting.
6806 (__tgmath_real_type): Fix if expr is const int or other const
6807 qualified integral type.
6808 (__TGMATH_UNARY_REAL_ONLY): Rewritten to avoid using statement
6809 expressions and handle const qualified arguments.
6810 (__TGMATH_BINARY_FIRST_REAL_ONLY, __TGMATH_UNARY_REAL_IMAG,
6811 __TGMATH_UNARY_REAL_IMAG_RET_REAL): Likewise.
6812 (__TGMATH_UNARY_REAL_RET_ONLY): Rewritten to avoid using
6813 statement expressions.
6814 (__TGMATH_BINARY_REAL_ONLY, __TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY,
6815 __TGMATH_TERNARY_REAL_ONLY, __TGMATH_BINARY_REAL_IMAG): Likewise.
6816 (__TGMATH_UNARY_IMAG): Define.
6817 (conj, cproj): Use __TGMATH_UNARY_IMAG macro.
6818 * math/Makefile (tests): Add test-tgmath2.
6819 (CFLAGS-test-tgmath2.c): Add.
6820 * math/test-tgmath.c (fy, dy, ly, fz, dz, lz, count_cdouble,
6821 count_cfloat, count_cldouble): New variables.
6822 (NCCALLS): Define.
6823 (main): Check number of complex calls as well.
6824 (F(compile_test)): Add complex tests and tests with const qualified
6825 arguments.
6826 (y, z, ccount): Define.
6827 (F(cacos), F(casin), F(catan), F(ccos), F(csin), F(ctan), F(cacosh),
6828 F(casinh), F(catanh), F(ccosh), F(csinh), F(ctanh), F(cexp), F(clog),
6829 F(csqrt), F(cpow), F(cabs), F(carg), F(creal), F(cimag), F(conj),
6830 F(cproj)): New functions.
6831 * math/test-tgmath2.c: New test.
6832
68332007-07-11 Jakub Jelinek <jakub@redhat.com>
6834
6835 [BZ #4776]
6836 * elf/dl-load.c (_dl_rtld_di_serinfo): Output / in LD_LIBRARY_PATH,
6837 RPATH etc. as "/" rather than "", don't segfault on empty paths,
6838 instead output ".".
6839 * dlfcn/Makefile (distribute): Add glreflib3.c.
6840 (module-names): Add glreflib3.
6841 ($(objpfx)tst-dlinfo.out): Depend on glreflib3.so rather than
6842 glreflib1.so.
6843 (LDFLAGS_glreflib3.so): New.
6844 * dlfcn/tst-dlinfo.c (do_test): Load glreflib3.so instead of
6845 glreflib1.so.
6846 * dlfcn/glreflib3.c: New file.
6847
6848 * intl/finddomain.c (_nl_find_domain): If _nl_explode_name
6849 returned -1, return NULL.
6850 * intl/explodename.c (_nl_explode_name): Return -1 if
6851 _nl_normalize_codeset failed.
6852
a88f47a7
UD
68532007-07-07 Steven Munroe <sjmunroe@us.ibm.com>
6854
6855 * sysdeps/powerpc/powerpc32/power6/memset.S: Update comments.
6856 Specify .machine power6 to get ISA-V2.0 branch hints. Unroll loops
6857 and avoid branch misspredicts for > 31 bytes memset case.
6858 * sysdeps/powerpc/powerpc64/power6/memset.S: Likewise.
6859 Remove toc ref to __cache_line_size.
6860
6861 * sysdeps/powerpc/powerpc32/power4/memcmp.S: Specify .machine power4
6862 to get ISA-V2.0 branch hints.
6863 * sysdeps/powerpc/powerpc32/power4/memcpy.S: Likewise
6864 * sysdeps/powerpc/powerpc32/power4/memset.S: Likewise
6865 * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
6866 * sysdeps/powerpc/powerpc64/power4/memcmp.S: Likewise.
6867 * sysdeps/powerpc/powerpc64/power4/memcpy.S: Likewise.
6868 * sysdeps/powerpc/powerpc64/power4/memset.S: Likewise.
6869 Remove toc ref to __cache_line_size.
6870
6871 * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S:
6872 Include math_ldbl_opt.h.
6873
f98c2d06
UD
68742007-07-10 Ulrich Drepper <drepper@redhat.com>
6875
6876 [BZ #4773]
6877 * time/strptime_l.c (__strptime_internal): Implement greedy
6878 matching of weekday and month names.
6879
cec5991f
RM
68802007-07-09 Roland McGrath <roland@redhat.com>
6881
6882 * elf/elf.h (NT_GNU_ABI_TAG): New macro.
6883 (ELF_NOTE_ABI): Use it.
6884 (NT_GNU_HWCAP, NT_GNU_BUILD_ID): New macros.
6885
8c1dcd26
UD
68862007-07-09 Ulrich Drepper <drepper@redhat.com>
6887
6888 * sysdeps/x86_64/cacheinfo.c (intel_02_known): Add new entries.
6889 * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
6890
c2c7bd3f
UD
68912007-07-07 Ulrich Drepper <drepper@redhat.com>
6892
6893 [BZ #4745]
0923a2c8
UD
6894 * stdio-common/vfscanf.c (_IO_vfscanf): Add additional test for EOF
6895 in loop to look for conversion specifier to avoid testing of
6896 wrong errno value.
6897 * stdio-common/Makefile (tests): Add bug18, bug18a, bug19, bug19a.
c2c7bd3f 6898 * stdio-common/bug18.c: New file.
0923a2c8
UD
6899 * stdio-common/bug18a.c: New file.
6900 * stdio-common/bug19.c: New file.
6901 * stdio-common/bug19a.c: New file.
c2c7bd3f 6902
4facf4af
RM
69032007-07-05 Mike Frysinger <vapier@gentoo.org>
6904
6905 * Makeconfig ($(common-objpfx)gnu/lib-names.stmp): Use LC_ALL=C when
6906 running awk script.
6907
1311e86e
UD
69082007-07-01 Jakub Jelinek <jakub@redhat.com>
6909
6910 * elf/dl-sysdep.c (_dl_important_hwcaps): Add integer overflow check.
6911 * elf/dl-minimal.c (__libc_memalign): Likewise. Handle malloc (0).
6912 Return NULL if mmap failed instead of asserting it does not.
6913 (calloc): Check for integer overflow.
6914
6915 * elf/dl-minimal.c (__strtoul_internal): Fix parsing of numbers bigger
6916 than LONG_MAX / 10.
6917
57c9179c
UD
69182007-07-03 Jakub Jelinek <jakub@redhat.com>
6919
6920 [BZ #4702]
6921 * nis/nss-default.c: Include errno.h.
6922 (init): Preserve errno.
6923
d0b283a8
UD
69242007-07-02 Ulrich Drepper <drepper@redhat.com>
6925
6926 * sysdeps/unix/sysv/linux/bits/socket.h (PF_UNIX): Update comment.
6927
34e0bbaf
UD
69282007-06-30 Ulrich Drepper <drepper@redhat.com>
6929
6930 * sysdeps/unix/sysv/linux/bits/socket.h: Add PF_RXRPC and AF_RXRPC.
6931
69322007-06-29 Martin Schwidefsky <schwidefsky@de.ibm.com>
6933
6934 * sysdeps/unix/sysv/linux/bits/socket.h: Add PF_IUCV and AF_IUCV.
6935
34e0bbaf 69362007-06-29 Martin Schwidefsky <schwidefsky@de.ibm.com>
33516494
UD
6937
6938 * sysdeps/s390/dl-procinfo.c: New file.
6939 * sysdeps/s390/dl-procinfo.h: New file.
6940 * sysdeps/unix/sysv/linux/s390/dl-procinfo.h: New file.
6941
0e508a6e
UD
69422007-06-29 Jakub Jelinek <jakub@redhat.com>
6943
6944 * elf/dl-load.c (open_verify): Find .note.ABI-tag notes even
6945 in PT_NOTE segments with multiple notes.
6946 * elf/readelflib.c (process_elf_file): Likewise.
6947
e22c61fb
UD
69482007-06-22 Ulrich Drepper <drepper@redhat.com>
6949
6950 * nis/nis_domain_of.c (__nis_domain_of): Make the code a bit more
6951 ISO C compliant.
6952
e4eb675d
UD
69532007-06-19 Ulrich Drepper <drepper@redhat.com>
6954
6955 * elf/dl-close.c (free_mem): Free _dl_scope_free_list.
6956
69572007-06-13 Jakub Jelinek <jakub@redhat.com>
6958
6959 * include/link.h: Don't include rtld-lowlevel.h.
6960 (struct link_map): Remove l_scope_lock.
6961 * sysdeps/generic/ldsodefs.h: Don't include rtld-lowlevel.h.
6962 (_dl_scope_free_list): New field (variable) in _rtld_global.
6963 (DL_LOOKUP_SCOPE_LOCK): Remove.
6964 (_dl_scope_free): New prototype.
6965 * elf/dl-runtime.c (_dl_fixup): Don't use __rtld_mrlock_*lock.
6966 Don't pass DL_LOOKUP_SCOPE_LOCK to _dl_lookup_symbol_x.
6967 (_dl_profile_fixup): Likewise.
6968 * elf/dl-sym.c (do_sym): Likewise. Use wrapped _dl_lookup_symbol_x
6969 whenever !RTLD_SINGLE_THREAD_P, use THREAD_GSCOPE_SET_FLAG and
6970 THREAD_GSCOPE_RESET_FLAG around it.
6971 * elf/dl-close.c (_dl_close_worker): Don't use
6972 __rtld_mrlock_{change,done}. Call _dl_scope_free on the old
6973 scope. Make sure THREAD_GSCOPE_WAIT () happens if any old
6974 scopes were queued or if l_scope_mem has been abandoned.
6975 * elf/dl-open.c (_dl_scope_free): New function.
6976 (dl_open_worker): Use it. Don't use __rtld_mrlock_{change,done}.
6977 * elf/dl-support.c (_dl_scope_free_list): New variable.
6978 * elf/dl-lookup.c (add_dependency): Remove flags argument.
6979 Remove DL_LOOKUP_SCOPE_LOCK handling.
6980 (_dl_lookup_symbol_x): Adjust caller. Remove DL_LOOKUP_SCOPE_LOCK
6981 handling.
6982 * elf/dl-object.c (_dl_new_object): Don't use
6983 __rtld_mrlock_initialize.
6984
9be09e06
UD
69852007-06-19 Ulrich Drepper <drepper@redhat.com>
6986
6987 * sysdeps/generic/ldsodefs.h (rtld_global): Reorder some elements
6988 to fill in holes
6989 (rtld_global_ro): Likewise.
6990
69912007-06-18 Jakub Jelinek <jakub@redhat.com>
6992
6993 * elf/dl-addr.c (_dl_addr): Skip PT_LOAD checking if l_contiguous.
6994 Move PT_LOAD checking to...
6995 (_dl_addr_inside_object): ... here, new function.
6996 * elf/dl-sym.c (do_sym): If not l_contiguous,
6997 call _dl_addr_inside_object.
6998 * elf/dl-iteratephdr.c (__dl_iterate_phdr): Likewise.
6999 * dlfcn/dlinfo.c (dlinfo_doit): Likewise.
7000 * elf/dl-open.c (dl_open_worker): Likewise.
7001 (_dl_addr_inside_object): New function if IS_IN_rtld.
7002 * elf/dl-load.c (_dl_map_object_from_fd): Set l_contiguous if no
7003 holes are present or are PROT_NONE protected.
7004 * include/link.h (struct link_map): Add l_contiguous field.
7005 * sysdeps/generic/ldsodefs.h (_dl_addr_inside_object): New prototype.
7006
ae1ad3ae 70072007-06-18 Jakub Jelinek <jakub@redhat.com>
f00d47a3
AS
7008 Tomas Janousek <tjanouse@redhat.com>
7009 Ulrich Drepper <drepper@redhat.com>
ae1ad3ae
UD
7010
7011 [BZ #4647]
7012 * resolv/res_send.c (send_dg): Remove socket_pf. Use ipv6_unavail
7013 member in __res_state, only convaddr4to6 if nssocks[ns] is a PF_INET6
7014 socket.
7015 * resolv/resolv.h (__res_state): Add ipv6_unavail member. Make
7016 unused member a bitmap.
7017 * resolv/res_init.c (__res_vinit): Reset ipv6_unavail if IPv6
7018 servers are configured.
7019
3abee0b7
UD
70202007-06-18 Jakub Jelinek <jakub@redhat.com>
7021
7022 * elf/rtld.c (dl_main): Don't call init_tls more than once.
7023
89074592
UD
70242007-06-17 Andreas Schwab <schwab@suse.de>
7025
7026 * sysdeps/generic/initfini.c: Tell gcc about the nonstandard sections.
7027
b26e274d
AJ
70282007-06-16 Andreas Jaeger <aj@suse.de>
7029
7030 [BZ #4125]
7031 * sysdeps/unix/sysv/linux/sys/ptrace.h
7032 (PTRACE_O_TRACESYSGOOD, PTRACE_O_TRACEFORK,
7033 PTRACE_O_TRACEVFORK, PTRACE_O_TRACECLONE, PTRACE_O_TRACEEXEC,
89074592 7034 PTRACE_O_TRACEVFORKDONE, PTRACE_O_TRACEEXIT, PTRACE_O_MASK,
b26e274d
AJ
7035 PTRACE_EVENT_FORK, PTRACE_EVENT_VFORK, PTRACE_EVENT_CLONE,
7036 PTRACE_EVENT_EXEC, PTRACE_EVENT_VFORK_DONE, PTRACE_EVENT_EXIT):
7037 Define.
7038 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
7039 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
7040 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
7041 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
7042
e0d4a4e5
UD
70432007-06-16 Ulrich Drepper <drepper@redhat.com>
7044
7045 [BZ #4599]
7046 * sysdeps/unix/sysv/linux/check_pf.c (make_request): When
7047 determining whether there are IPv4/IPv6 addresses, ignore loopback
7048 addresses.
7049
ae8e81f5
JJ
70502007-06-14 Uros Bizjak <ubizjak@gmail.com>
7051
7052 * soft-fp/soft-fp.h (CMPtype): Define to "int" if undefined.
7053 * soft-fp/eqdf2.c (__eqdf2): Use CMPtype instead of int
7054 as the return type. Change type of "r" variable to CMPtype.
7055 * soft-fp/eqsf2.c (__eqsf2): Likewise.
7056 * soft-fp/eqtf2.c (__eqtf2): Likewise.
7057 * soft-fp/gedf2.c (__gedf2): Likewise.
7058 * soft-fp/gesf2.c (__gesf2): Likewise.
7059 * soft-fp/getf2.c (__getf2): Likewise.
7060 * soft-fp/ledf2.c (__ledf2): Likewise.
7061 * soft-fp/lesf2.c (__lesf2): Likewise.
7062 * soft-fp/letf2.c (__letf2): Likewise.
7063 * soft-fp/unorddf2 (__unorddf2): Likewise.
7064 * soft-fp/unordsf2 (__unordsf2): Likewise.
7065 * soft-fp/unordtf2 (__unordtf2): Likewise.
7066
90cd2413
UD
70672007-06-09 Ulrich Drepper <drepper@redhat.com>
7068
7069 * elf/do-lookup.h (do_lookup_x): Read r_nlist before r_list and
7070 make sure gcc doesn't mess around with this.
7071
3c457089
UD
70722007-06-08 Ulrich Drepper <drepper@redhat.com>
7073
7074 * elf/dl-lookup.c (_dl_lookup_symbol_x): Remove use of r_nlist.
7075
e8b6b64d
UD
70762007-06-08 Jakub Jelinek <jakub@redhat.com>
7077
7078 * elf/dl-close.c (_dl_close_worker): Remove all to be removed
7079 libraries from the global scope at once and call THREAD_GSCOPE_WAIT
7080 at most once per _dl_close_worker.
7081
36dffb22
UD
70822007-06-08 Ulrich Drepper <drepper@redhat.com>
7083
755db8c5
UD
7084 * sysdeps/unix/sysv/linux/bits/sched.h: Make second parameter of
7085 __sched_cpucount as const.
7086 * posix/sched_cpucount.c: Adjust.
7087
36dffb22
UD
7088 * posix/sched_cpucount.c (__sched_cpucount): Allow using special
7089 instruction for counting bits.
7090 * sysdeps/x86_64/sched_cpucount.c: New file.
7091
26f56c1c
UD
70922007-06-07 Ulrich Drepper <drepper@redhat.com>
7093
7094 * configure.in: Avoid variable named BASH.
e967d385 7095 * config.make.in: Likewise.
26f56c1c 7096 Patch in part by Mike Frysinger.
835abc5c 7097
26f56c1c 70982007-06-06 Jakub Jelinek <jakub@redhat.com>
47779a7d
JJ
7099
7100 [BZ #4586]
835abc5c
UD
7101 * sysdeps/i386/ldbl2mpn.c (__mpn_extract_long_double): Treat
7102 pseudo-zeros as zero.
7103 * sysdeps/x86_64/ldbl2mpn.c: New file.
7104 * sysdeps/ia64/ldbl2mpn.c: New file.
7105
7e3706ea
UD
71062007-06-04 Jakub Jelinek <jakub@redhat.com>
7107
7108 * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (nextafterl): Remove
7109 unused ily variable. Fix nextafterl on +-__LDBL_MAX__ and +-Inf.
7110 Remove unreachable code at the end.
7111
71122007-06-01 Steven Munroe <sjmunroe@us.ibm.com>
7113
7114 * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c: Correct description of
7115 ldbl-128ibm in comment.
7116 (fpclassifyl): Correct classification of denormals.
7117 * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (nextafterl): Correct
7118 return value for MIN denormal. Rewrite using long double math too
7119 correctly handle denormals and canonicalize the results.
7120
71212007-06-05 Jakub Jelinek <jakub@redhat.com>
7122
7123 * sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c
7124 (__mpn_construct_long_double): Fix conversion where result ought
7125 to be smaller than __LDBL_MIN__, or the low double should be
7126 denormal. Fix decision where to negate low double - honor round
7127 to even rules.
7128 * stdio-common/tst-sprintf2.c: Include string.h.
7129 (COMPARE_LDBL): Define.
7130 (TEST): Also test whether a string hexadecimal float representation
7131 can be parsed back to the number.
7132 (main): Add a couple of further tests.
7133
43b76828
UD
71342007-06-04 Jakub Jelinek <jakub@redhat.com>
7135
7136 * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c
7137 (PRINT_FPHEX_LONG_DOUBLE): Fix printing numbers where lower double
7138 is non-zero, but smaller than 2 * __DBL_MIN__.
7139 * stdio-common/tst-sprintf2.c: New test.
7140 * stdio-common/Makefile (tests): Add tst-sprintf2.
7141
7142 * math/test-misc.c (main): Don't run last batch of tests with
7143 IBM long double format.
7144
04067002
UD
71452007-05-31 Steven Munroe <sjmunroe@us.ibm.com>
7146
7147 * sysdeps/powerpc/powerpc32/970/fpu/Implies: New file.
7148 * sysdeps/powerpc/powerpc32/power5/fpu/Implies: New file.
7149 * sysdeps/powerpc/powerpc32/power5+/fpu/Implies: New file.
7150 * sysdeps/powerpc/powerpc32/power6/fpu/Implies: New file.
7151 * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: New file.
7152 * sysdeps/powerpc/powerpc64/970/fpu/Implies: New file.
7153 * sysdeps/powerpc/powerpc64/power5/fpu/Implies: New file.
7154 * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: New file.
7155 * sysdeps/powerpc/powerpc64/power6/fpu/Implies: New file.
7156 * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: New file.
7157 * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/fpu/Implies: New file.
7158 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/fpu/Implies:
7159 New file.
7160 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/fpu/Implies:
7161 New file.
7162 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5+/fpu/Implies:
7163 New file.
7164 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/Implies:
7165 New file.
7166 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/fpu/Implies:
7167 New file.
7168 * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/fpu/Implies: New file.
7169 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/fpu/Implies:
7170 New file.
7171 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/fpu/Implies:
7172 New file.
7173 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5+/fpu/Implies:
7174 New file.
7175 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/Implies:
7176 New file.
7177 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/fpu/Implies:
7178 New file.
7179
71802007-05-31 Steven Munroe <sjmunroe@us.ibm.com>
7181
7182 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrint.S: Move.
7183 * sysdeps/powerpc/powerpc32/power4/fpu/s_llrint.S: To here.
7184 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrintf.S: Move.
7185 * sysdeps/powerpc/powerpc32/power4/fpu/s_llrintf.S: To here.
7186 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llround.S: Move.
7187 * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: To here.
7188 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llroundf.S: Move.
7189 * sysdeps/powerpc/powerpc32/power4/fpu/s_llroundf.S: To here.
7190
71912007-05-22 Steven Munroe <sjmunroe@us.ibm.com>
7192
7193 * sysdeps/powerpc/powerpc32/power5+/fpu/s_round.S
7194 (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
7195 * sysdeps/powerpc/powerpc32/power5+/fpu/s_trunc.S
7196 (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
7197 * sysdeps/powerpc/powerpc64/power5+/fpu/s_round.S
7198 (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
7199 * sysdeps/powerpc/powerpc64/power5+/fpu/s_trunc.S
7200 (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
7201
72022007-05-21 Steven Munroe <sjmunroe@us.ibm.com>
7203
7204 * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: New file.
7205 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.c: New file.
7206 * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: New file.
7207 * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: New file.
7208
72092007-03-15 Steven Munroe <sjmunroe@us.ibm.com>
7210
7211 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrint.S
7212 [LONG_DOUBLE_COMPAT]: Add compat_symbol for llrintl@@GLIBC_2_1.
7213
72142006-02-13 Steven Munroe <sjmunroe@us.ibm.com>
7215
7216 * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S: New File
7217 * sysdeps/powerpc/powerpc32/power6/fpu/s_llrintf.S: New File
7218 * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: New File
7219 * sysdeps/powerpc/powerpc32/power6/fpu/s_llroundf.S: New File
7220
72212006-10-20 Steven Munroe <sjmunroe@us.ibm.com>
7222
7223 * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: New file.
7224 * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: New file.
7225
72262006-10-03 Steven Munroe <sjmunroe@us.ibm.com>
7227
7228 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llround.S: New file.
7229 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llroundf.S: New file.
7230
7231 * sysdeps/powerpc/powerpc32/powerpc64/fpu/Makefile: Moved.
7232 * sysdeps/powerpc/powerpc32/powerpc64/fpu/mpa.c: Likewise.
7233 * sysdeps/powerpc/powerpc32/power4/fpu/Makefile: To here.
7234 * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Likewise.
7235
72362006-09-29 Steven Munroe <sjmunroe@us.ibm.com>
7237
7238 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lrint.S: New file.
7239 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lround.S: New file.
7240 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: New file.
7241 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: New file.
7242
72432006-09-28 Steven Munroe <sjmunroe@us.ibm.com>
7244
7245 * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: New file.
7246 * sysdeps/powerpc/powerpc32/power5+/fpu/s_llroundf.S: New file.
7247 * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: New file.
7248 * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: New file.
7249 * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: New file.
7250 * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: New file.
7251
72522006-08-31 Steven Munroe <sjmunroe@us.ibm.com>
7253
7254 * sysdeps/powerpc/powerpc32/powerpc64/fpu/Makefile: New file.
7255 * sysdeps/powerpc/powerpc32/powerpc64/fpu/mpa.c: New file.
7256 * sysdeps/powerpc/powerpc64/power4/fpu/Makefile: New file.
7257 * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: New file.
7258
72592006-06-15 Steven Munroe <sjmunroe@us.ibm.com>
7260
7261 * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceil.S: New file.
7262 * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceilf.S: New file.
7263 * sysdeps/powerpc/powerpc32/power5+/fpu/s_floor.S: New file.
7264 * sysdeps/powerpc/powerpc32/power5+/fpu/s_floorf.S: New file.
7265 * sysdeps/powerpc/powerpc32/power5+/fpu/s_round.S: New file.
7266 * sysdeps/powerpc/powerpc32/power5+/fpu/s_roundf.S: New file.
7267 * sysdeps/powerpc/powerpc32/power5+/fpu/s_trunc.S: New file.
7268 * sysdeps/powerpc/powerpc32/power5+/fpu/s_truncf.S: New file.
7269 * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceil.S: New file.
7270 * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceilf.S: New file.
7271 * sysdeps/powerpc/powerpc64/power5+/fpu/s_floor.S: New file.
7272 * sysdeps/powerpc/powerpc64/power5+/fpu/s_floorf.S: New file.
7273 * sysdeps/powerpc/powerpc64/power5+/fpu/s_round.S: New file.
7274 * sysdeps/powerpc/powerpc64/power5+/fpu/s_roundf.S: New file.
7275 * sysdeps/powerpc/powerpc64/power5+/fpu/s_trunc.S: New file.
7276 * sysdeps/powerpc/powerpc64/power5+/fpu/s_truncf.S: New file.
7277
72782006-03-20 Steven Munroe <sjmunroe@us.ibm.com>
7279
7280 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrint.S: New file.
7281 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrintf.S: New file.
7282
72832007-06-01 Steven Munroe <sjmunroe@us.ibm.com>
7284
7285 * sysdeps/powerpc/powerpc32/power6/memset.S: New file.
7286 * sysdeps/powerpc/powerpc64/power6/memset.S: New file.
7287
72882007-05-31 Steven Munroe <sjmunroe@us.ibm.com>
7289
7290 * sysdeps/powerpc/powerpc32/970/Implies: New file.
7291 * sysdeps/powerpc/powerpc32/power5/Implies: New file.
7292 * sysdeps/powerpc/powerpc32/power5+/Implies: New file.
7293 * sysdeps/powerpc/powerpc32/power6/Implies: New file.
7294 * sysdeps/powerpc/powerpc32/power6x/Implies: New file.
7295 * sysdeps/powerpc/powerpc64/970/Implies: New file.
7296 * sysdeps/powerpc/powerpc64/power5/Implies: New file.
7297 * sysdeps/powerpc/powerpc64/power5+/Implies: New file.
7298 * sysdeps/powerpc/powerpc64/power6/Implies: New file.
7299 * sysdeps/powerpc/powerpc64/power6x/Implies: New file.
7300
73012007-05-21 Steven Munroe <sjmunroe@us.ibm.com>
7302
7303 * sysdeps/powerpc/powerpc32/power4/memset.S: New file
7304
73052007-03-13 Steven Munroe <sjmunroe@us.ibm.com>
7306
7307 * sysdeps/powerpc/powerpc64/memcpy.S: Improve aligned loop to minimize
7308 branch miss-predicts. Ensure that cache line crossing does not impact
7309 dispatch grouping.
7310
73112006-12-13 Steven Munroe <sjmunroe@us.ibm.com>
7312
7313 * sysdeps/powerpc/powerpc64/power4/memcopy.h: Replace with include
7314 "../../powerpc32/power4/memcopy.h".
7315 * sysdeps/powerpc/powerpc64/power4/wordcopy.c: Replace with include
7316 "../../powerpc32/power4/wordcopy.c".
7317
73182006-10-03 Steven Munroe <sjmunroe@us.ibm.com>
7319
7320 * sysdeps/powerpc/powerpc32/powerpc64/Makefile: Moved.
7321 * sysdeps/powerpc/powerpc32/powerpc64/memcopy.h: Likewise.
7322 * sysdeps/powerpc/powerpc32/powerpc64/wordcopy.c: Likewise.
7323 * sysdeps/powerpc/powerpc32/power4/Makefile: To here.
7324 * sysdeps/powerpc/powerpc32/power4/memcopy.h: Likewise.
7325 * sysdeps/powerpc/powerpc32/power4/wordcopy.c: Likewise.
7326
73272006-09-10 Steven Munroe <sjmunroe@us.ibm.com>
7328
7329 * sysdeps/powerpc/powerpc32/power6/memcpy.S: New file.
7330
73312006-08-31 Steven Munroe <sjmunroe@us.ibm.com>
7332
7333 * sysdeps/powerpc/powerpc32/power6/wordcopy.c: New file.
7334 * sysdeps/powerpc/powerpc32/powerpc64/Makefile: New file.
7335 * sysdeps/powerpc/powerpc32/powerpc64/memcopy.h: New file.
7336 * sysdeps/powerpc/powerpc32/powerpc64/wordcopy.c: New file.
7337 * sysdeps/powerpc/powerpc64/power4/Makefile: New file.
7338 * sysdeps/powerpc/powerpc64/power4/memcopy.h: New file.
7339 * sysdeps/powerpc/powerpc64/power4/wordcopy.c: New file.
7340 * sysdeps/powerpc/powerpc64/power6/wordcopy.c: New file.
7341
73422006-07-06 Steven Munroe <sjmunroe@us.ibm.com>
7343
7344 * sysdeps/powerpc/powerpc64/power6/memcpy.S: New file.
7345
73462006-03-20 Steven Munroe <sjmunroe@us.ibm.com>
7347
7348 * sysdeps/powerpc/powerpc32/power4/memcmp.S: New file.
7349 * sysdeps/powerpc/powerpc32/power4/memcpy.S: New file.
7350 * sysdeps/powerpc/powerpc32/power4/memset.S: New file.
7351 * sysdeps/powerpc/powerpc32/power4/strncmp.S: New file.
7352 * sysdeps/powerpc/powerpc64/power4/memcmp.S: New file.
7353 * sysdeps/powerpc/powerpc64/power4/memcpy.S: New file.
7354 * sysdeps/powerpc/powerpc64/power4/strncmp.S: New file.
7355
5b55e1d3
RM
73562007-05-29 Roland McGrath <roland@redhat.com>
7357
7358 * po/Makefile (po-sed-cmd): New variable.
7359 (libc.pot.files): Move sed command text in there, avoid \ inside ''.
7360
5da4373c
UD
73612007-05-29 Ulrich Drepper <drepper@redhat.com>
7362
4b5e7304
UD
7363 * crypt/md5-crypt.c: Fix comment.
7364
5da4373c
UD
7365 * nscd/nscd_helper.c (get_mapping): Handle short replies instead
7366 of crashing. When this is the case or if the reply is malformed,
7367 don't try to close the new file descriptor since it does not
7368 exist.
7369 Patch in part by Guillaume Chazarain <guichaz@yahoo.fr>.
7370
40f57573
UD
73712007-05-28 Jakub Jelinek <jakub@redhat.com>
7372
7373 * sysdeps/unix/sysv/linux/futimes.c (miss_utimensat): Don't define
7374 if __NR_utimensat is not defined.
7375
6df7ffad
UD
73762007-05-26 Ulrich Drepper <drepper@redhat.com>
7377
7378 * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Include <sysdep.h>.
7379
47ad95ab
UD
73802007-05-25 Jakub Jelinek <jakub@redhat.com>
7381
7382 * io/bits/fcntl2.h (__open_2): Add nonnull attribute.
7383 (open): Fix comment typos. Don't call __open_2 if flags
7384 is a compile time constant without O_CREAT.
7385 (__open64_2): Add nonnull attribute.
7386 (open64): Fix comment typos. Don't call __open64_2 if flags
7387 is a compile time constant without O_CREAT.
7388 (__openat_2): Add nonnull attribute, fix nonnull attribute
7389 on redirect.
7390 (openat): Fix comment typos. Don't call __openat_2 if flags
7391 is a compile time constant without O_CREAT.
7392 (__openat64_2): Add nonnull attribute, fix nonnull attribute
7393 on redirect.
7394 (openat64): Fix comment typos. Don't call __openat64_2 if flags
7395 is a compile time constant without O_CREAT.
7396
ddfd0535
UD
73972007-05-24 Ulrich Drepper <drepper@redhat.com>
7398
7399 * Makerules (sysd-rules): Define PTW for ptw-* files.
7400 * Versions: Define GLIBC_2.7 for libc.
7401 * include/stdio.h: Declare __fortify_fail.
7402 * debug/fortify_fail.c: New file.
7403 * debug/Makefile (routines): Add fortify_fail.
7404 * debug/chk_fail.c: Use __fortify_fail.
7405 * debug/stack_chk_fail.c: Likewise.
7406 * io/Versions: Export __open_2, __open64_2, __openat_2, and
7407 __openat64_2 for GLIBC_2.7.
7408 * io/fcntl.h: When compiling with fortification, include bits/fcntl2.h.
7409 * io/open.c: Define *_2 variant of function which checks for O_CREAT
7410 and fails if necessary.
7411 * io/open64.c: Likewise.
7412 * io/openat.c: Likewise.
7413 * io/openat64.c: Likewise.
7414 * sysdeps/unix/sysv/linux/open64.c: Likewise.
7415 * sysdeps/unix/sysv/linux/openat.c: Likewise.
7416 * sysdeps/unix/sysv/linux/openat64.c: Likewise.
7417 * io/bits/fcntl2.h: New file.
7418 * include/fcntl.h: Declare __open_2, __open64_2, __openat_2, and
7419 __openat64_2.
7420 * include/bits/fcntl2.h: New file.
7421 * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
7422 Add open_2.
7423 * sysdeps/unix/sysv/linux/open_2.c: New file.
7424
bfe6f5fa
UD
74252007-05-21 Ulrich Drepper <drepper@redhat.com>
7426
6d59823c
UD
7427 * sysdeps/x86_64/cacheinfo.c (init_cacheinfo): Pass correct value
7428 as second parameter to handle_intel.
7429
e2b1e343
UD
7430 * nscd/aicache.c (addhstaiX): If reported TTL is zero don't cache
7431 the entry.
7432
bfe6f5fa
UD
7433 * sysdeps/unix/sysv/linux/x86_64/sysconf.c: Move cache information
7434 handling to ...
7435 * sysdeps/x86_64/cacheinfo.c: ... here. New file.
7436 * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
7437 cacheinfo.
7438 * sysdeps/x86_64/memcpy.S: Complete rewrite.
7439 * sysdeps/x86_64/mempcpy.S: Adjust appropriately.
7440 Patch by Evandro Menezes <evandro.menezes@amd.com>.
7441
7442 * sysdeps/unix/sysv/linux/i386/epoll_pwait.S: New file.
7443
1f4843fb
UD
74442007-05-21 Jakub Jelinek <jakub@redhat.com>
7445
2c2c003a
UD
7446 [BZ #4525]
7447 * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add epoll_pwait.
7448 * sysdeps/unix/sysv/linux/epoll_pwait.c: New file.
7449 * sysdeps/unix/sysv/linux/syscalls.list (epoll_pwait): Remove.
7450
7451 * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h (epoll_pwait): Declare.
7452
af269dd9
UD
7453 [BZ #4514]
7454 * stdio-common/vfprintf.c (vfprintf): Don't shadow workstart variable,
7455 reinitialize workend at the start of each do_positional format spec
7456 loop, free workstart before do_positional loops.
7457 (printf_unknown): Fix size of work_buffer.
7458 * stdio-common/tst-sprintf.c (main): Add 3 new testcases.
7459
1f4843fb
UD
7460 * malloc/hooks.c (MALLOC_STATE_VERSION): Bump.
7461 (public_sET_STATe): If ms->version < 3, put all chunks into
7462 unsorted chunks and clear {fd,bk}_nextsize fields of largebin
7463 chunks.
7464
7465 * malloc/malloc.c [MALLOC_DEBUG]: Revert 2007-05-13 changes.
7466 * malloc/hooks.c: Likewise.
7467 * malloc/arena.c: Likewise.
7468 * malloc/malloc.c (do_check_malloc_state): Don't assert
7469 n_mmaps is not greater than n_mmaps_max. This removes the need
7470 for the previous change.
7471
7472 * malloc/Makefile (CFLAGS-malloc.c): Revert accidental
7473 2007-05-07 commit.
7474
12e8bbff
UD
74752007-05-19 Ulrich Drepper <drepper@redhat.com>
7476
7477 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_PRIVATE_FUTEX):
7478 Define for kernel >= 2.6.22.
69e5cbf5 7479
12e8bbff 74802007-05-18 Ulrich Drepper <drepper@redhat.com>
6d59823c 7481
df94b641
UD
7482 * elf/dl-close.c (_dl_close_worker): When removing object from
7483 global scope, wait for all lookups to finish afterwards.
7484 * elf/dl-open.c (add_to_global): When global scope array must
7485 grow, allocate a new one and free old array only after all
7486 lookups finish.
7487 * elf/dl-runtime.c (_dl_fixup): Protect using global scope.
7488 (_dl_lookup_symbol_x): Likewise.
7489 * elf/dl-support.c: Define _dl_wait_lookup_done.
7490 * sysdeps/generic/ldsodefs.h (struct rtld_global): Add
7491 _dl_wait_lookup_done.
7492
2acd01ac
UD
7493 * malloc/malloc.c (do_check_chunk): Correct check for mmaped block
7494 not overlapping with arena.
7495
129abdd3
UD
7496 * malloc/mcheck.c (reallochook): If size==0, free the block.
7497
eb4b098a
UD
7498 * rt/tst-shm.c: Use fstat64 instead of fstat.
7499
69e5cbf5
UD
7500 * sysdeps/unix/sysv/linux/i386/sync_file_range.S: Fix case where
7501 __NR_sync_file_range is not defined.
7502
a2ccc760
UD
75032007-05-17 Ulrich Drepper <drepper@redhat.com>
7504
bec51a30
UD
7505 Dummy files to prevent stub versions from being used.
7506 * sysdeps/x86_64/fpu/k_cosl.c: New file.
7507 * sysdeps/x86_64/fpu/k_rem_pio2l.c: New file.
7508 * sysdeps/x86_64/fpu/k_sinl.c: New file.
7509 * sysdeps/x86_64/fpu/k_tanl.c: New file.
7510
a2ccc760
UD
7511 * version.h (VERSION): Set to 2.6.90.
7512
1a31b586
UD
75132007-05-14 Ulrich Drepper <drepper@redhat.com>
7514
a2ccc760
UD
7515 * version.h (VERSION): Define to 2.6.
7516 * include/features.h (__GLIBC_MINOR__): Define to 6.
2c1d6172 7517
1d47e92f
UD
7518 * malloc/malloc.c: Use all small bin slots on 64-bit archs.
7519
7520 * malloc/malloc.c (largebin_index): Really have 32 buckets with 64
7521 sizes.
366ad8fd 7522
1a31b586 75232007-05-13 Ulrich Drepper <drepper@redhat.com>
87e66335 7524
366ad8fd
UD
7525 * malloc/malloc.c [MALLOC_DEBUG]: Keep track of current maximum
7526 number of mmaps. n_mmaps_max is the target.
7527 * malloc/hooks.c: Likewise.
7528 * malloc/arena.c: Likewise.
7529
11ed6713
AJ
75302007-05-12 Andreas Jaeger <aj@suse.de>
7531
7532 * sysdeps/unix/sysv/linux/tst-getcpu.c: Include <unistd.h> for
7533 getpid.
7534
d65ef3dd
UD
75352007-05-11 Ulrich Drepper <drepper@redhat.com>
7536
2e81d449
UD
7537 * elf/dl-close.c (_dl_close_worker): Help gcc to optimize by
7538 adding new variables.
7539
d65ef3dd 7540 * elf/dl-open.c (add_to_global): Introduce variable ns to help gcc
2e81d449 7541 optimize. Completely extend global scope array before making the
d65ef3dd
UD
7542 new entries visible.
7543
c27d2078
UD
75442007-05-10 Ulrich Drepper <drepper@redhat.com>
7545
341c566f
UD
7546 * sysdeps/unix/sysv/linux/tst-getcpu.c: New file.
7547 * sysdeps/unix/sysv/linux/Makefile [subdir=posix] (tests): Add
7548 tst-getcpu.
7549
7550 * include/link.h: Move l_version and l_nversion members around to
7551 fill gaps.
7552
a53fa282
UD
7553 * scripts/check-c++-types.sh: Don't use -fnu89-inline option.
7554
3771196d
UD
7555 * sysdeps/unix/sysv/linux/sched_setaffinity.c
7556 (__sched_setaffinity_new): If syscall was successful and
7557 RESET_VGETCPU_CACHE is defined, use it before returning.
7558 * sysdeps/unix/sysv/linux/x86_64/sched_setaffinity.c: New file.
7559
f9bf102d
UD
7560 * io/sys/stat.h: Make sure struct timespec is defined for
7561 __USE_ATFILE.
7562
c27d2078
UD
7563 * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Define UTIME_NOW and
7564 UTIME_OMIT.
7565 * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
7566 * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
7567 * sysdeps/unix/sysv/linux/alpha/bits/stat.h: Likewise.
7568 * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Likewise.
7569 * sysdeps/unix/sysv/linux/bits/stat.h: Likewise.
7570 * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
7571 * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_UTIMENSAT.
7572 * io/sys/stat.h: Declare utimensat, futimens.
7573 * io/utimensat.c: New file.
7574 * io/futimens.c: New file.
7575 * sysdeps/unix/sysv/linux/utimensat.c: New file.
7576 * sysdeps/unix/sysv/linux/futimens.c: New file.
7577 * io/Makefile (routines): Add utimensat, futimens.
7578 * io/Versions: Add utimensat, futimens to GLIBC_2.6.
7579 * sysdeps/unix/sysv/linux/lutimes.c: New file.
7580 * sysdeps/unix/sysv/linux/futimes.c: Use utimensat syscall if
7581 available.
7582
7583 * include/sys/cdefs.h: Redefine __nonnull so that test for
7584 incorrect parameters in the libc code itself are not omitted.
7585
cf6b0980
JJ
75862007-05-09 Jakub Jelinek <jakub@redhat.com>
7587
c1dfd7e6
JJ
7588 * sysdeps/ia64/fpu/fraiseexcpt.c (feraiseexcept): Don't raise overflow
7589 exception in addition to inexact when asked to raise only FE_INEXACT.
7590
cf6b0980
JJ
7591 [BZ #3427]
7592 * sysdeps/s390/fpu/feholdexcpt.c (feholdexcept): Don't clear exceptions
7593 in *envp.
7594
df7b6fea
UD
75952007-05-07 Ulrich Drepper <drepper@redhat.com>
7596
7597 [BZ #4403]
7598 * string/strfry.c (strfry): Make result more random.
7599
37f40235
RH
76002007-05-07 Richard Henderson <rth@redhat.com>
7601
7602 * sysdeps/alpha/fpu/bits/mathinline.h (__isnanl): Don't define
7603 if __NO_LONG_DOUBLE_MATH.
7604 * sysdeps/unix/sysv/linux/alpha/ioperm.c: If BWX insns not
df7b6fea 7605 available in the compiler, add .arch directive to the assembly.
37f40235
RH
7606
76072007-05-07 Jakub Jelinek <jakub@redhat.com>
7608
7609 * sysdeps/alpha/fpu/s_nearbyint.c (nearbyintl): Fix version on
7610 compat_symbol to GLIBC_2_1.
7611 * sysdeps/alpha/fpu/s_fmin.S (fminl): Likewise.
7612 * sysdeps/alpha/fpu/s_trunc.c (truncl): Likewise.
7613 * sysdeps/alpha/fpu/s_fmax.S (fmaxl): Likewise.
7614 * sysdeps/alpha/fpu/s_lrint.c (lrintl, llrintl): Likewise.
7615 * sysdeps/alpha/fpu/s_lround.c (lroundl, llroundl): Likewise.
7616 * sysdeps/alpha/fpu/s_round.c (roundl): Likewise.
7617 * sysdeps/alpha/fpu/s_isnan.c (isnanl): Provide compat_symbol in
7618 libc, not libm.
7619 (__isnanl): New compat_symbol.
7620
c7fd3362
JJ
76212007-05-07 Ulrich Drepper <drepper@redhat.com>
7622 Jakub Jelinek <jakub@redhat.com>
7623
7624 * malloc/arena.c (heap_info): Add mprotect_size field, adjust pad.
7625 (new_heap): Initialize mprotect_size.
7626 (grow_heap): When growing, only mprotect from mprotect_size till
7627 new_size if mprotect_size is smaller. When shrinking, use PROT_NONE
7628 MMAP for __libc_enable_secure only, otherwise use MADV_DONTNEED.
7629
4a59e9ad 76302007-04-30 Steven Munroe <sjmunroe@us.ibm.com>
37f40235 7631 Peter Bergner <bergner@us.ibm.com>
4a59e9ad
UD
7632
7633 * sysdeps/powerpc/bits/fenv.h: Declare __fe_mask_env extern.
7634 Define FE_NOMASK_ENV as FE_EANBLED_ENV. Define FE_MASK_ENV.
7635 * sysdeps/powerpc/fpu/Makefile: Add fe_mask to libm-support.
7636 * sysdeps/powerpc/fpu/fe_mask.c: New file.
7637 * sysdeps/powerpc/fpu/fe_nomask.c: Correct comment.
7638 * sysdeps/powerpc/fpu/fedisblxcpt.c (fedisableexcept):
7639 Call __fe_mask_env() if all FP exceptions disabled.
7640 * sysdeps/powerpc/fpu/feholdexcpt.c (feholdexcept): Copy high 32-bits
7641 from old FPSCR to new fenv to propagate DFP rounding modes.
7642 Call __fe_mask_env() if FP exceptions previously enabled.
7643 * sysdeps/powerpc/fpu/fesetenv.c (fesetenv): Change mask to merge
7644 exceptions from env. Use __fe_nomask_env() or __fe_mask_env() when
7645 transitioning from all exceptions disabled to any exception enabled
7646 or visa versa.
7647 * sysdeps/powerpc/fpu/feupdateenv.c (__feupdateenv): Change mask to
7648 merge exceptions from env. Call __fe_nomask_env or __fe_mask_env
7649 when transitioning from all exceptions disabled to any exception
7650 enabled or visa versa.
7651 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fe_nomask.c: Moved to...
7652 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c: ...here.
7653 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fe_nomask.c: Moved to...
7654 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c: ...here.
7655 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_mask.c: New file.
7656 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_mask.c: New file.
7657
aa75f64c
UD
76582007-05-06 Ulrich Drepper <drepper@redhat.com>
7659
15eca720 7660 [BZ #4465]
aa75f64c
UD
7661 * posix/unistd.h: Remove __THROW from fdatasync.
7662
711deb05
UD
76632007-05-06 Mike Frysinger <vapier@gentoo.org>
7664
15eca720 7665 [BZ #4465]
711deb05
UD
7666 * sysdeps/unix/sysv/linux/syscalls.list (fdatasync): Add "C" to args.
7667
ffecd39b
UD
76682007-05-06 Ulrich Drepper <drepper@redhat.com>
7669
49a8eb75
UD
7670 * stdio-common/vfprintf.c (process_string_arg): Optimize
7671 ridiculous precision in wide char code printing multi-byte string.
7672 Reported by Jim Meyering <jim@meyering.net>.
7673
ffecd39b
UD
7674 [BZ #4131]
7675 * elf/dl-addr.c (_dl_addr): Compare address with actual segment
7676 boundaries to work around systems with overlapping binary loading.
7677 Based on a patch by Suzuki <suzuki@in.ibm.com>.
7678
b16dba4c
UD
76792007-05-04 Ulrich Drepper <drepper@redhat.com>
7680
30b323ab
UD
7681 * stdio-common/vfprintf.c (process_string_arg): Adjust call to
7682 __mbsnrtowcs after last change.
7683
b16dba4c
UD
7684 * locale/programs/linereader.c (get_symname): Fix adding final NUL.
7685 (get_ident): Likewise.
7686
37002cbc
JJ
76872007-05-03 Jakub Jelinek <jakub@redhat.com>
7688
7689 * soft-fp/op-common.h (FP_TRUNC): Replace raising of FP_EX_INEXACT
7690 with setting the sticky bit.
7691 * math/test-misc.c (main): Add more truncation tests.
7692
76932007-04-14 Uros Bizjak <ubizjak@gmail.com>
7694
7695 * soft-fp/floatunsidf.c (__floatunsidf): Use DFtype instead of
7696 double in the function declaration.
7697 * soft-fp/floatundidf.c (__floatundidf): Use DFtype instead of
7698 double in the function declaration.
7699 * soft-fp/floatunsisf.c (__floatunsisf): Use SFtype instead of
7700 float in the function declaration.
7701 * soft-fp/floatunsisf.c (__floatunsisf): Use SFtype instead of
7702 float in the function declaration.
7703
7704 * soft-fp/extended.h (FP_UNPACK_RAW_E): Do not increase X##_e for
7705 denormal operands. Do not generate FP_EX_DENORM exception.
7706 (FP_UNPACK_RAW_EP): Ditto.
7707 (FP_UNPACK_SEMIRAW_E): Use FP_UNPACK_RAW_E instead of
7708 undefined _FP_UNPACK_RAW_E.
7709 (FP_UNPACK_SEMIRAW_EP): Use FP_UNPACK_RAW_EP instead of
7710 undefined _FP_UNPACK_RAW_EP.
7711 (FP_PACK_SEMIRAW_E): Use FP_PACK_RAW_E instead of
7712 undefined _FP_PACK_RAW_E.
7713 (FP_PACK_SEMIRAW_EP): Use FP_PACK_RAW_EP instead of
7714 undefined _FP_PACK_RAW_EP.
7715
d9ac82d0
UD
7716 * soft-fp/op-2.h (_FP_FRAC_COPY_2_2): Define as alias to
7717 _FP_FRAC_COPY_2.
7718 * soft-fp/op-4.h (_FP_FRAC_COPY_2_2): Define as alias to
7719 _FP_FRAC_COPY_4.
37002cbc
JJ
7720
77212007-04-16 Uros Bizjak <ubizjak@gmail.com>
7722 Jakub Jelinek <jakub@redhat.com>
7723
7724 * soft-fp/op-common.h (FP_EXTEND): Do not abort when
7725 _FP_EXPBIAS_##dfs == _FP_EXPBIAS_##sfs. Handle denormals for
7726 this case.
7727 * soft-fp/op-common.h (FP_TRUNC): Ditto.
7728
002f0b0b
JJ
77292007-05-03 Jakub Jelinek <jakub@redhat.com>
7730
7731 * math/test-misc.c (main): Add tests for rounding long double
7732 values close to smallest double denormalized value to double.
7733
77342007-04-30 Joseph Myers <joseph@codesourcery.com>
7735
7736 * soft-fp/op-common.h (FP_TRUNC): Correct off-by-one error in
7737 condition for truncating to 0. Set sticky bit for such
7738 truncation.
7739
57433ede
UD
77402007-05-02 Jakub Jelinek <jakub@redhat.com>
7741
7742 * stdio-common/vfprintf.c (process_string_arg): Use a VLA rather than
7743 fixed length array for ignore.
7744
c01c2455
UD
77452007-04-30 Ulrich Drepper <drepper@redhat.com>
7746
7747 [BZ #4438]
7748 * stdio-common/vfprintf.c (process_string_arg): Don't overflow the
7749 stack for large precisions.
1cb04337
UD
7750 * stdio-common/test-vfprintf.c (main): Add test for large
7751 precision.
c01c2455 7752
37f02b1d
UD
77532007-04-30 Jakub Jelinek <jakub@redhat.com>
7754
b866373d
UD
7755 * stdio-common/printf_fp.c (___printf_fp): Don't print negative sign
7756 for exponent 0.
7757 * stdio-common/tfformat.c (sprint_doubles): Add a new test.
7758
37f02b1d
UD
7759 [BZ #4439]
7760 * resolv/inet_ntop.c (inet_ntop4): Take terminating '\0' into
7761 account in the size check.
7762 * resolv/tst-inet_ntop.c: New test.
7763 * resolv/Makefile (tests): Add tst-inet_ntop.
7764
7ecfbd38
UD
77652007-04-30 Ulrich Drepper <drepper@redhat.com>
7766 Jakub Jelinek <jakub@redhat.com>
7767
7768 [BZ #4349]
7769 * malloc/malloc.c: Keep separate list for first blocks on the bin
7770 lists with a given size. This helps skipping over list elements
7771 we know won't fit in two places.
7772 Inspired by a patch by Tomash Brechko <tomash.brechko@gmail.com>.
7773
e53f0f51
UD
77742007-04-28 Ulrich Drepper <drepper@redhat.com>
7775
7776 [BZ #4102]
7777 * sysdeps/posix/getaddrinfo.c (default_labels): Assign separate
7778 label to Teredo tunnel addresses 2001://32.
7779
109f51f2
UD
77802007-04-27 Ulrich Drepper <drepper@redhat.com>
7781
762422d1
UD
7782 * locale/programs/ld-collate.c (collate_read): Allow order_start
7783 after copy.
7784
61d5a67f
UD
7785 * locale/programs/ld-collate.c (collate_read): Fix printing of
7786 error message.
7787
7788 [BZ #3213]
7789 * locale/C-translit.h.in: Add entry for U2044.
7790
109f51f2
UD
7791 [BZ #4342]
7792 * stdio-common/vfscanf.c (_IO_vfscanf_internal): Allow
7793 hexa-decimal floats without exponent.
7794 * stdio-common/tstscanf.c (main): Adjust Test 8 test for success.
7795
ec08f13d
UD
77962007-04-25 Ulrich Drepper <drepper@redhat.com>
7797
7798 * sysdeps/unix/sysv/linux/bits/sched.h: Declare sched_getcpu.
7799 * sysdeps/unix/sysv/linux/sched_getcpu.c: New file.
7800 * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: New file.
7801 * sysdeps/unix/sysv/linux/Versions: Export sched_getcpu for
7802 GLIBC_2.6.
bce20b9a
UD
7803 * sysdeps/unix/sysv/linux/Makefile [subdir=posix] (sysdep_routines):
7804 Add sched_getcpu.
ec08f13d 7805
41967e1c
JJ
78062007-04-25 Jakub Jelinek <jakub@redhat.com>
7807
7808 * sysdeps/unix/sysv/linux/check_pf.c (make_request): Return -1 instead
7809 of 0 after the out_fail label.
7810
ba508da3
UD
78112007-04-25 Ulrich Drepper <drepper@redhat.com>
7812
7813 [BZ #4406]
109f51f2 7814 * iconv/gconv_charset.h (strip): Allow ':'.
ba508da3
UD
7815 * iconv/iconv_open.c (iconv_open): Adjust comment.
7816
9c8d03d9
JJ
78172007-04-25 Jakub Jelinek <jakub@redhat.com>
7818
7819 * libio/bits/stdio.h (fgetc_unlocked): Add extern inline optimized
7820 version.
7821
2f1687b9
UD
78222007-04-23 Jakub Jelinek <jakub@redhat.com>
7823
7824 [BZ #4381]
7825 * nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Ensure sufficient
7826 alignment of buffer and tmp_buffer.
7827 * nis/nss_nis/nis-hosts.c (internal_nis_gethostent_r,
7828 internal_gethostbyname2_r, _nss_nis_gethostbyaddr_r): Ensure sufficient
7829 alignment of buffer.
7830 * resolv/nss_dns/dns-hosts.c (getanswer_r): Likewise. Handle buflen
7831 bigger than INT_MAX.
7832 * resolv/nss_dns/dns-network.c (getanswer_r): Likewise. Add errnop and
7833 h_errnop arguments. Fail if buflen is too small.
7834 (_nss_dns_getnetbyname_r, _nss_dns_getnetbyaddr_r): Adjust callers.
7835
b64a9db8
JJ
78362007-04-23 Jakub Jelinek <jakub@redhat.com>
7837
7838 [BZ #4405]
7839 * iconvdata/gconv-modules (E13B): Add a missing slash to the alias
7840 name. Patch by Aurelien Jarno <aurelien@aurel32.net>.
7841
4d3144c9
RM
78422007-04-22 Roland McGrath <roland@redhat.com>
7843
7844 * elf/elf.h (NT_PRXFPREG): New macro.
7845
767b40bf
AJ
78462007-04-19 Andreas Jaeger <aj@suse.de>
7847
7848 [BZ #3905]
7849 * bits/in.h (IPV6_ROUTER_ALERT, IPV6_MTU_DISCOVER, IPV6_MTU,
7850 IPV6_RECVERR, IPV6_V6ONLY, IPV6_JOIN_ANYCAST, IPV6_LEAVE_ANYCAST):
7851 Added.
7852
2592d1ec
UD
78532007-04-19 Ulrich Drepper <drepper@redhat.com>
7854
7855 * include/sys/mman.h: Mark madvise hidden.
d07d044e 7856 * misc/madvise.c: Add libc_hidden_def.
2592d1ec 7857
7ab174ed
UD
78582007-04-06 Jakub Jelinek <jakub@redhat.com>
7859
7860 * nis/nis_domain_of.c (__nis_domain_of): New function.
7861 * include/rpcsvc/nislib.h (__nis_domain_of): New prototype.
7862 * nis/nis_lookup.c (nis_lookup): Use __nis_domain_of.
7863 * nis/nis_call.c (rec_dirsearch): Likewise.
7864 (first_shoot): Likewise. Remove search_parent_first argument.
7865 (struct nis_server_cache): Rename search_parent_first field
7866 to search_parent.
7867 (nis_server_cache_search, nis_server_cache_add): Rename
7868 search_parent_first argument to search_parent.
7869 (__nisfind_server): Likewise. If search_parent, call
7870 __nis_domain_of.
7871
b17c265f
UD
78722007-04-18 Ulrich Drepper <drepper@redhat.com>
7873
7874 * sysdeps/posix/getaddrinfo.c: Remove commented-out code.
7875
b7674b11
UD
78762007-04-17 Ulrich Drepper <drepper@redhat.com>
7877
7878 [BZ #4368]
7879 * stdlib/stdlib.h: Remove obsolete part of comment for realpath.
7880
faf3ad69
UD
78812007-04-16 Ulrich Drepper <drepper@redhat.com>
7882
7883 [BZ #4364]
7884 * posix/unistd.h (_XOPEN_VERSION): Define appropriately for SUSv3.
7885
c14f245c
UD
78862007-04-15 Jakub Jelinek <jakub@redhat.com>
7887
7888 * locale/programs/locarchive.c (INITIAL_NUM_NAMES,
7889 INITIAL_SIZE_STRINGS, INITIAL_NUM_LOCREC): Update to accomodate
7890 current number of locales in SUPPORTED.
7891 (create_archive): Initialize serial.
7892 (enlarge_archive): Preserve aliases rather than duplicating
7893 their locrecs.
7894
d40e67f5
UD
78952007-04-13 Jakub Jelinek <jakub@redhat.com>
7896
993a5d66
UD
7897 * libio/genops.c (_IO_default_finish): Call _IO_lock_fini
7898 after _IO_un_link, not before it.
7899
d40e67f5
UD
7900 * stdio-common/printf_fp.c (___printf_fp): Fix exponent -4
7901 special case handling when wcp == wstartp + 1. Fix a comment typo.
7902 * stdio-common/tfformat.c (sprint_doubles): Add a new testcase.
7903
0fca3153
UD
79042007-03-30 Jakub Jelinek <jakub@redhat.com>
7905
7906 * libio/libio.h (__underflow, __uflow, __overflow, __wunderflow,
7907 __wuflow, __woverflow, _IO_getc, _IO_putc, _IO_peekc_locked, _IO_padn,
7908 _IO_sgetn, _IO_seekoff, _IO_seekpos, _IO_getwc, _IO_putwc, _IO_wpadn):
7909 Remove __THROW.
7910 * libio/fileops.c (new_do_write, _IO_file_xsgetn_mmap,
7911 _IO_file_xsgetn_maybe_mmap): Likewise.
7912 * libio/oldfileops.c (old_do_write): Likewise.
7913 * libio/libioP.h (_IO_switch_to_get_mode, _IO_switch_to_wget_mode,
7914 _IO_init_marker, _IO_init_wmarker, _IO_default_uflow,
7915 _IO_wdefault_uflow, _IO_default_setbuf, _IO_default_seekpos,
7916 _IO_do_write, _IO_new_do_write, _IO_old_do_write, _IO_wdo_write,
7917 _IO_flush_all_lockp, _IO_flush_all, _IO_cleanup,
7918 _IO_flush_all_linebuffered, _IO_new_fgetpos, _IO_old_fgetpos,
7919 _IO_new_fsetpos, _IO_old_fsetpos, _IO_new_fgetpos64,
7920 _IO_old_fgetpos64, _IO_new_fsetpos64, _IO_old_fsetpos64,
7921 _IO_file_setbuf, _IO_file_seekoff, _IO_file_xsputn, _IO_file_xsgetn,
7922 _IO_file_underflow, _IO_file_underflow_mmap,
7923 _IO_file_underflow_maybe_mmap, _IO_file_overflow, _IO_file_attach,
7924 _IO_file_open, _IO_file_fopen, _IO_file_write, _IO_file_read,
7925 _IO_file_sync, _IO_file_close_it, _IO_file_finish,
7926 _IO_new_file_attach, _IO_new_file_close_it, _IO_new_file_finish,
7927 _IO_new_file_fopen, _IO_new_file_setbuf, _IO_file_setbuf_mmap,
7928 _IO_new_file_sync, _IO_new_file_underflow, _IO_new_file_overflow,
7929 _IO_new_file_seekoff, _IO_new_file_write, _IO_new_file_xsputn,
7930 _IO_old_file_setbuf, _IO_old_file_seekoff, _IO_old_file_xsputn,
7931 _IO_old_file_underflow, _IO_old_file_overflow, _IO_old_file_attach,
7932 _IO_old_file_fopen, _IO_old_file_write, _IO_old_file_sync,
7933 _IO_old_file_close_it, _IO_old_file_finish, _IO_wfile_xsputn,
7934 _IO_wfile_setbuf, _IO_wfile_sync, _IO_wfile_underflow,
7935 _IO_wfile_overflow, _IO_wfile_seekoff, _IO_old_proc_open,
7936 _IO_old_proc_close, _IO_getdelim, _IO_flush_all_internal,
7937 _IO_adjust_column_internal, _IO_default_uflow_internal,
7938 _IO_default_xsgetn_internal, _IO_wdefault_xsputn_internal,
7939 _IO_wdefault_xsgetn_internal, _IO_wdefault_uflow_internal,
7940 _IO_file_setbuf_internal, _IO_file_seekoff_internal,
7941 _IO_file_xsputn_internal, _IO_file_xsgetn_internal,
7942 _IO_file_close_it_internal, _IO_file_underflow_internal,
7943 _IO_file_overflow_internal, _IO_file_attach_internal,
7944 _IO_file_fopen_internal, _IO_file_sync_internal,
7945 _IO_file_finish_internal, _IO_wfile_xsputn_internal,
7946 _IO_wfile_seekoff_internal, _IO_wfile_sync_internal,
7947 _IO_switch_to_wget_mode_internal, _IO_padn_internal,
7948 _IO_switch_to_get_mode_internal, _IO_seekoff_unlocked,
7949 _IO_seekpos_unlocked): Likewise.
7950 (_IO_strtod, _IO_dtoa, _IO_outfloat, _IO_read, _IO_write,
7951 _IO_lseek, _IO_close, _IO_fstat): Remove unused prototypes.
7952
07358add
JJ
79532007-04-16 Jakub Jelinek <jakub@redhat.com>
7954
7955 * locale/programs/locarchive.c (show_archive_content): Fix sizeof
7956 argument in xmalloc size computation.
7957
7a82b74f
UD
79582007-04-01 Jakub Jelinek <jakub@redhat.com>
7959
7960 * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (__nextafterl): Use
7961 math_opt_barrier and math_force_eval macros.
7962
3e336a87
UD
79632007-03-27 Jakub Jelinek <jakub@redhat.com>
7964
7965 [BZ #3306]
7966 * math/math_private.h (math_opt_barrier, math_force_eval): Define.
7967 * sysdeps/i386/fpu/math_private.h: New file.
7968 * sysdeps/x86_64/fpu/math_private.h: New file.
7969 * math/s_nexttowardf.c (__nexttowardf): Use math_opt_barrier and
7970 math_force_eval macros. Use "+m" constraint on asm rather than
7971 "=m" and "m".
7972 * math/s_nextafter.c (__nextafter): Likewise.
7973 * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c (__nexttoward):
7974 Likewise.
7975 * sysdeps/ieee754/flt-32/s_nextafterf.c (__nextafterf): Likewise.
7976 * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward): Likewise.
7977 * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
7978 * sysdeps/i386/fpu/s_nextafterl.c (__nextafterl): Use
7979 math_opt_barrier and math_force_eval macros.
7980 * sysdeps/ieee754/ldbl-128/s_nextafterl.c (__nextafterl): Likewise.
7981 * sysdeps/ieee754/ldbl-96/s_nextafterl.c (__nextafterl): Likewise.
7982 * sysdeps/i386/fpu/s_nexttoward.c: Include float.h.
7983 (__nexttoward): Use math_opt_barrier and
7984 math_force_eval macros. Use "+m" constraint on asm rather than
7985 "=m" and "m". Only use asm to force double result if
7986 FLT_EVAL_METHOD is 2.
7987 * sysdeps/i386/fpu/s_nexttowardf.c: Include float.h.
7988 (__nexttowardf): Use math_opt_barrier and
7989 math_force_eval macros. Use "+m" constraint on asm rather than
7990 "=m" and "m". Only use asm to force double result if
7991 FLT_EVAL_METHOD is not 0.
7992 * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Include float.h.
7993 (__nexttowardf): Use math_opt_barrier and
7994 math_force_eval macros. If FLT_EVAL_METHOD is not 0, force
7995 x to float using asm.
7996 * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c: Include float.h.
7997 (__nldbl_nexttowardf): Use math_opt_barrier and
7998 math_force_eval macros. If FLT_EVAL_METHOD is not 0, force
7999 x to float using asm.
8000 * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Include float.h.
8001 (__nexttowardf): Use math_opt_barrier and math_force_eval
8002 macros. If FLT_EVAL_METHOD is not 0, force x to float using asm.
8003 * math/bug-nextafter.c (zero, inf): New variables.
8004 (main): Add new tests.
8005 * math/bug-nexttoward.c (zero, inf): New variables.
8006 (main): Add new tests.
8007
a8c79c40
UD
80082007-03-22 Jakub Jelinek <jakub@redhat.com>
8009
8010 [BZ #3427]
8011 * sysdeps/x86_64/fpu/feholdexcpt.c (feholdexcept): Clear all
8012 exceptions both in SW and MXCSR.
8013 * sysdeps/x86_64/fpu/feupdateenv.c: New file.
8014 * sysdeps/x86_64/fpu/feenablxcpt.c (feenableexcept): Remove dead code.
8015 * sysdeps/x86_64/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
8016 * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Clear all exceptions
8017 in MXCSR if SSE is available.
8018 * sysdeps/i386/fpu/feupdateenv.c: Include unistd.h, dl-procinfo.h
8019 and ldsodefs.h.
8020 (__feupdateenv): Query exceptions also from MXCSR if SSE is available.
8021 Fix comment typo.
8022 * sysdeps/ia64/fpu/feholdexcpt.c (feholdexcept): Clear all exceptions.
8023 Return 0 rather than 1.
8024 * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Fix comment typo.
8025 Remove incorrect part of a comment. Fix argument to feraiseexcept.
8026 * math/test-fenv.c (feholdexcept_tests): New function.
8027 (main): Call it.
8028
80292007-01-05 Richard B. Kreckel <kreckel@ginac.de>
8030
8031 [BZ #3427]
8032 * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Clear all exceptions
8033 in SW.
8034
30a3aa75
JJ
80352007-04-13 Jakub Jelinek <jakub@redhat.com>
8036
8037 [BZ #4344]
8038 * elf/ldconfig.c (search_dir): Fix 2 off-by-2 errors.
8039 Reported by David Anderson <davea42@earthlink.net>.
8040
75587bfe
UD
80412007-04-07 Ulrich Drepper <drepper@redhat.com>
8042
8043 * posix/sys/wait.h: Remove unnecessary forward declaration.
8044
88fa1769
JJ
80452007-04-05 Jakub Jelinek <jakub@redhat.com>
8046
8047 * nis/nis_call.c (__nisfind_server): Replace (*dir)->do_servers
8048 with obj->do_servers after first_shoot.
8049
eab1bdfb
UD
80502007-04-03 Ulrich Drepper <drepper@redhat.com>
8051
8052 * posix/Makefile (routines): Add sched_cpucount.
8053 (tests): Add tst-cpucount.
8054 * posix/sched_cpucount.c: New file.
8055 * posix/tst-cpucount.c: New file.
8056 * posix/Versions: Export __sched_cpucount with version GLIBC_2.6.
b4afdd06
UD
8057 * bits/sched.h: Define __CPU_COUNT. Declare __sched_cpucount.
8058 * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
8059 * posix/sched.h: Define CPU_COUNT.
eab1bdfb 8060
9700b039
UD
80612007-03-27 Jakub Jelinek <jakub@redhat.com>
8062
8063 * posix/fnmatch.c (STRUCT): Define.
8064 (fnmatch): Pass NULL as last argument to internal_fn{,w}match.
8065 * posix/fnmatch_loop.c (struct STRUCT): New type.
8066 (FCT): Add ends argument. If ends != NULL and normal * is
8067 seen in the pattern, store current pattern and string pointers
8068 and return. Adjust recursive calls.
8069 (EXT): Adjust FCT callers.
8070 (STRUCT): Undef at the end of the file.
8071 * posix/Makefile (tests): Add tst-fnmatch2.
8072 * posix/tst-fnmatch2.c: New test.
8073
d64e9790
JJ
80742007-04-01 Jakub Jelinek <jakub@redhat.com>
8075
933dfe7b
JJ
8076 * sysdeps/ia64/fpu/fesetround.c (fesetround): Return 0 on success
8077 and 1 on failure.
8078
d64e9790
JJ
8079 * sysdeps/unix/sysv/linux/sync_file_range.c (sync_file_range):
8080 Change last argument to unsigned int.
8081
e1f0c5bc
UD
80822007-03-23 Jakub Jelinek <jakub@redhat.com>
8083
8084 * scripts/check-local-headers.sh: Filter out sys/capability.h.
8085
80862007-03-22 Jakub Jelinek <jakub@redhat.com>
8087
8088 * config.h.in (HAVE_LIBCAP): Add.
8089 * nscd/selinux.h: Include sys/capability.h rather than non-existent
8090 sys/capabilities.h.
8091 * nscd/selinux.c (preserve_capabilities): Use cap_free instead of
8092 free_caps. Cast away const from 4th cap_set_flag argument.
8093
4e87573f
UD
80942007-03-26 Ulrich Drepper <drepper@redhat.com>
8095
8096 * sysdeps/unix/sysv/linux/Versions: Move sync_file_range to
8097 GLIBC_2.6.
8098 * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
8099 Add sync_file_range.
8100 Reported by Atsushi Nemoto <anemo@mba.ocn.ne.jp>.
8101
fa6e3bc3
UD
81022007-03-19 Steven Munroe <sjmunroe@us.ibm.com>
8103
8104 * sysdeps/powerpc/bits/atomic.h
8105 [!MUTEX_HINT_ACQ]: Define MUTEX_HINT_ACQ.
8106 [!MUTEX_HINT_REL]: Define MUTEX_HINT_REL.
8107 (__arch_compare_and_exchange_val_32_acq): Add MUTEX_HINT_ACQ to lwarx.
8108 (__arch_compare_and_exchange_val_32_rel): Add MUTEX_HINT_REL to lwarx.
8109 (__arch_atomic_exchange_val_32_acq): Add MUTEX_HINT_ACQ to lwarx.
8110 (__arch_atomic_exchange_rel_32_rel): Add MUTEX_HINT_REL to lwarx.
8111 * sysdeps/powerpc/powerpc32/bits/atomic.h [_ARCH_PWR6 || _ARCH_PWR6X]:
8112 Define MUTEX_HINT_ACQ as ",1" and MUTEX_HINT_REL as ",0".
8113 (__arch_compare_and_exchange_bool_32_acq): Add MUTEX_HINT_ACQ to lwarx.
8114 (__arch_compare_and_exchange_bool_32_rel): Add MUTEX_HINT_REL to lwarx.
8115 * sysdeps/powerpc/powerpc64/bits/atomic.h [_ARCH_PWR6 || _ARCH_PWR6D]:
8116 Define MUTEX_HINT_ACQ as ",1" and MUTEX_HINT_REL as ",0".
8117 (__arch_compare_and_exchange_bool_32_acq): Add MUTEX_HINT_ACQ to lwarx.
8118 (__arch_compare_and_exchange_bool_32_rel): Add MUTEX_HINT_REL to lwarx.
8119 (__arch_compare_and_exchange_bool_64_acq): Add MUTEX_HINT_ACQ to lwarx.
8120 (__arch_compare_and_exchange_bool_64_rel): Add MUTEX_HINT_REL to lwarx.
8121 (__arch_compare_and_exchange_val_64_acq): Add MUTEX_HINT_ACQ to lwarx.
8122 (__arch_compare_and_exchange_val_64_rel): Add MUTEX_HINT_REL to lwarx.
8123 (__arch_atomic_exchange_val_64_acq): Add MUTEX_HINT_ACQ to lwarx.
8124 (__arch_atomic_exchange_rel_64_rel): Add MUTEX_HINT_REL to lwarx.
8125
81262007-03-20 Jakub Jelinek <jakub@redhat.com>
c7693af7
UD
8127
8128 * sysdeps/unix/sysv/linux/powerpc/libc-start.c
8129 (__cache_line_size): Define the variable here. Add
8130 attribute_hidden, remove weak_extern.
8131 (__libc_start_main): Set __cache_line_size
8132 unconditionally.
8133 * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c
8134 (__cache_line_size): Define the variable here. Add
8135 attribute_hidden, remove weak_extern.
8136 (DL_PLATFORM_AUXV): Set __cache_line_size
8137 unconditionally.
8138 * sysdeps/powerpc/powerpc32/dl-machine.c (__cache_line_size): Remove
8139 weak_extern, add attribute_hidden.
8140 (__elf_machine_runtime_setup): Assume __cache_line_size is always
8141 defined in ld.so.
8142 * sysdeps/powerpc/powerpc32/memset.S (__cache_line_size): Remove
8143 definition.
8144 * sysdeps/powerpc/powerpc64/memset.S (__cache_line_size): Likewise.
8145
0479e581
JJ
81462007-03-26 Jakub Jelinek <jakub@redhat.com>
8147
8148 [BZ #4276]
8149 * timezone/africa: Update from tzdata2007d.
8150 * timezone/asia: Likewise.
8151 * timezone/australasia: Likewise.
8152 * timezone/backward: Likewise.
8153 * timezone/europe: Likewise.
8154 * timezone/iso3166.tab: Likewise.
8155 * timezone/leapseconds: Likewise.
8156 * timezone/northamerica: Likewise.
8157 * timezone/southamerica: Likewise.
8158 * timezone/zone.tab: Likewise.
8159
8160 * timezone/private.h: Update from tzcode2007d.
8161 * timezone/zdump.c: Likewise.
8162 * timezone/zic.c: Likewise.
8163
697d37b1
JJ
81642007-03-21 Jakub Jelinek <jakub@redhat.com>
8165
8166 * nis/nis_call.c: Include bits/libc-lock.h, sys/stat.h, unistd.h.
8167 (nis_server_cache, nis_server_cache_lock, nis_cold_start_mtime): New
8168 variables.
8169 (nis_server_cache_search, nis_server_cache_add): New functions.
8170 (__nisfind_server): Use them. Add dbp and flags argument, if
8171 call __nisbind_create.
8172 (__nisbind_create): Add server_used and current_ep arguments,
8173 only call __nis_findfastest if server_used is ~0.
8174 (__do_niscall2, __prepare_niscall): Adjust callers.
8175 (ckey_cache, ckey_cache_size, ckey_cache_allocated, ckey_cache_pid,
8176 ckey_cache_euid, ckey_cache_lock): New variables.
8177 (get_ckey): New function.
8178 (__nisbind_connect): If not dbp->use_udp, pass IPPROTO_TCP to
8179 __pmap_getnisport. Save __pmap_getnisport result in
8180 dbp->addr.sin_port if non-zero. Use get_ckey to create conversation
8181 key.
8182 * nis/nis_lookup.c (nis_lookup): Likewise.
8183 * nis/nis_table.c (nis_list): Likewise.
8184 * nis/rpcsvc/nislib.h (__nisbind_create, __nisfind_server): Adjust
8185 prototypes.
8186
8187 * nis/nss_nisplus/nisplus-pwd.c (_nss_nisplus_getpwnam_r,
8188 _nss_nisplus_getpwuid_r): Pass USE_DGRAM flag to nis_list.
8189 * nis/nss_nisplus/nisplus-service.c (_nss_nisplus_getservbyname_r,
8190 _nss_nisplus_getservbyport_r): Likewise.
8191 * nis/nss_nisplus/nisplus-network.c (_nss_nisplus_getnetbyname_r,
8192 _nss_nisplus_getnetbyaddr_r): Likewise.
8193 * nis/nss_nisplus/nisplus-spwd.c (_nss_nisplus_getspnam_r): Likewise.
8194 * nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_gethostton_r,
8195 _nss_nisplus_getntohost_r): Likewise.
8196 * nis/nss_nisplus/nisplus-rpc.c (_nss_nisplus_getrpcbyname_r,
8197 _nss_nisplus_getrpcbynumber_r): Likewise.
8198
06029c20
JJ
81992007-03-20 Jakub Jelinek <jakub@redhat.com>
8200
371f84a4
JJ
8201 * configure.in (libc_cv_gnu89_inline): Only do compile test.
8202 * configure: Rebuilt.
8203
06029c20
JJ
8204 * soft-fp/double.h (_FP_UNION_D): Use _FP_W_TYPE for frac
8205 bit-fields.
8206 * soft-fp/extended.h (_FP_UNION_E): Likewise.
8207
82082006-06-07 Joseph Myers <joseph@codesourcery.com>
8209
8210 [BZ #2831]
8211 * soft-fp/quad.h (_FP_UNION_Q): Use _FP_W_TYPE for frac
8212 bit-fields.
8213
addc8335
UD
82142007-03-18 Jakub Jelinek <jakub@redhat.com>
8215
8216 * nscd/gai.c: Include alloca.h.
8217 (__libc_use_alloca): Define.
8218
b037a293
UD
82192007-03-16 Jakub Jelinek <jakub@redhat.com>
8220
965cba04
UD
8221 * elf/dl-open.c (dl_open_worker): Declare l in 2 different
8222 smaller scopes.
8223 * elf/dl-dst.h (DL_DST_REQ_STATIC): Add l as macro argument.
8224 (DL_DST_REQUIRED): Adjust user.
8225
8226 * include/dlfcn.h (struct link_map): New forward decl.
8227
8228 * inet/getnameinfo.c: Include stddef.h.
8229 (getnameinfo): Use offsetof.
8230
8231 * time/tst-mktime2.c (do_test): Don't rely on signed wrap.
8232
8233 * stdio-common/vfprintf.c (_itoa): Undef before redefining.
8234
8235 * string/strerror_l.c: Include stdlib.h.
8236
b037a293
UD
8237 * configure.in (libc_cv_gnu89_inline): Test for -fgnu89-inline.
8238 * config.make.in (gnu89-inline-CFLAGS): New variable.
8239 * Makeconfig (CFLAGS): Use $(gnu89-inline-CFLAGS) together with
8240 -std=gnu99.
8241 * misc/sys/cdefs.h (__extern_inline, __extern_always_inline): Define.
8242 * argp/argp.h: Use it.
8243 * bits/mathinline.h: Likewise.
8244 * bits/sigset.h: Likewise.
8245 * bits/string.h: Likewise.
8246 * ctype/ctype.h: Likewise.
8247 * hurd/hurd.h: Likewise.
8248 * hurd/hurd/fd.h: Likewise.
8249 * hurd/hurd/port.h: Likewise.
8250 * hurd/hurd/signal.h: Likewise.
8251 * hurd/hurd/threadvar.h: Likewise.
8252 * hurd/hurd/userlink.h: Likewise.
8253 * io/sys/stat.h: Likewise.
8254 * libio/bits/stdio.h: Likewise.
8255 * libio/bits/stdio2.h: Likewise.
8256 * mach/lock-intern.h: Likewise.
8257 * mach/mach/mig_support.h: Likewise.
8258 * math/bits/cmathcalls.h: Likewise.
8259 * posix/bits/unistd.h: Likewise.
8260 * socket/bits/socket2.h: Likewise.
8261 * stdlib/bits/stdlib.h: Likewise.
8262 * stdlib/stdlib.h: Likewise.
8263 * string/argz.h: Likewise.
8264 * string/bits/string2.h: Likewise.
8265 * string/bits/string3.h: Likewise.
8266 * sysdeps/alpha/fpu/bits/mathinline.h: Likewise.
8267 * sysdeps/generic/inttypes.h: Likewise.
8268 * sysdeps/generic/machine-lock.h: Likewise.
8269 * sysdeps/generic/machine-sp.h: Likewise.
8270 * sysdeps/i386/fpu/bits/mathinline.h: Likewise.
8271 * sysdeps/i386/i486/bits/string.h: Likewise.
8272 * sysdeps/ia64/fpu/bits/mathinline.h: Likewise.
8273 * sysdeps/mach/alpha/machine-lock.h: Likewise.
8274 * sysdeps/mach/alpha/machine-sp.h: Likewise.
8275 * sysdeps/mach/i386/machine-lock.h: Likewise.
8276 * sysdeps/mach/powerpc/machine-lock.h: Likewise.
8277 * sysdeps/mach/powerpc/machine-sp.h: Likewise.
8278 * sysdeps/powerpc/fpu/bits/mathinline.h: Likewise.
8279 * sysdeps/s390/bits/string.h: Likewise.
8280 * sysdeps/s390/fpu/bits/mathinline.h: Likewise.
8281 * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
8282 * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Likewise.
8283 * sysdeps/unix/sysv/linux/bits/sigset.h: Likewise.
8284 * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
8285 * sysdeps/unix/sysv/linux/sys/sysmacros.h: Likewise.
8286 * sysdeps/x86_64/fpu/bits/mathinline.h: Likewise.
8287 * wcsmbs/bits/wchar2.h: Likewise.
8288 * wcsmbs/wchar.h: Likewise.
8289 * stdlib/gmp.h: Likewise. Include <features.h> to get
8290 __extern_inline definition.
8291
6b2665f5
UD
82922007-03-15 Jakub Jelinek <jakub@redhat.com>
8293
b037a293
UD
8294 * locale/programs/ld-ctype.c (find_translit): Return NULL if ctype is
8295 NULL.
8296
6b2665f5
UD
8297 [BZ #3919]
8298 * math/libm-test.inc (log_test): Test -Inf and NaN.
8299 (log10_test, log1p_test, log2_test): Test -Inf.
8300 * sysdeps/i386/fpu/e_log.S (__ieee754_log): Don't raise
8301 FE_INVALID when argument is qNaN.
8302 * sysdeps/i386/fpu/e_logl.S (__ieee754_logl): Likewise.
8303 * sysdeps/i386/fpu/e_logf.S (__ieee754_logf): Likewise.
8304 * sysdeps/x86_64/fpu/e_logl.S (__ieee754_logl): Likewise.
8305 * sysdeps/x86_64/fpu/e_log10l.S (__ieee754_log10l): Replace
8306 andb $1, %ah with testb $1, %ah, don't test for parity, instead
8307 testb $4, %ah and jump if non-zero.
8308 * sysdeps/x86_64/fpu/e_log2l.S (__ieee754_log2l): Likewise.
8309 * sysdeps/x86_64/fpu/s_log1pl.S (__log1pl): Likewise.
8310
44969f17
UD
8311 [BZ #4101]
8312 * argp/argp-help.c (hol_cluster_cmp): Fix comparisons used to find
8313 ancestors with the same depths.
8314 Patch by Niels Moeller <nisse@lysator.liu.se>.
8315 (filter_doc): Don't crash if argp is NULL.
8316 * argp/Makefile (tests): Add tst-argp2.
8317 * argp/tst-argp2.c: New test.
8318
05eb8975
UD
8319 [BZ #4130]
8320 * login/utmp_file.c (setutent_file): Use O_LARGEFILE for
8321 open_not_cancel_2.
8322 (updwtmp_file): Likewise.
8323
6cb988fa
UD
8324 [BZ #4181]
8325 * inet/inet6_opt.c (add_padding): Only insert padding if npad > 0.
8326 (inet6_opt_append): Don't check extlen is big enough if extbuf
8327 is NULL.
8328 (inet6_opt_finish): Likewise.
8329 * inet/Makefile (tests): Add test-inet6_opt.
8330 * inet/test-inet6_opt.c: New test.
8331
8332 * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Never
8333 reallocate the buffer, instead fail for MSG_TRUNC or for EBUSY
8334 NLMSG_ERR. Instead use a page sized buffer.
8335 * sysdeps/unix/sysv/linux/check_pf.c (make_request): Use page sized
8336 buffer.
8337
aea1d19e
RH
83382007-03-14 Richard Henderson <rth@redhat.com>
8339
b6df547c
RH
8340 * sysdeps/alpha/fpu/s_llround.c: New file.
8341 * sysdeps/alpha/fpu/s_llroundf.c: New file.
8342 * sysdeps/alpha/fpu/s_lround.c: New file.
8343 * sysdeps/alpha/fpu/s_lroundf.c: New file.
8344 * sysdeps/alpha/fpu/s_round.c: New file.
8345 * sysdeps/alpha/fpu/s_roundf.c: New file.
8346 * sysdeps/alpha/fpu/s_trunc.c: New file.
8347 * sysdeps/alpha/fpu/s_truncf.c: New file.
8348
aea1d19e
RH
8349 * sysdeps/alpha/fpu/s_ceil.c: Rewrite without branches.
8350 * sysdeps/alpha/fpu/s_ceilf.c: Likewise.
8351 * sysdeps/alpha/fpu/s_floor.c: Likewise.
8352 * sysdeps/alpha/fpu/s_floorf.c: Likewise.
8353 * sysdeps/alpha/fpu/s_rint.c: Likewise.
8354 * sysdeps/alpha/fpu/s_rintf.c: Likewise.
8355
8356 * sysdeps/alpha/fpu/s_fmax.S: New file.
8357 * sysdeps/alpha/fpu/s_fmaxf.S: New file.
8358 * sysdeps/alpha/fpu/s_fmin.S: New file.
8359 * sysdeps/alpha/fpu/s_fminf.S: New file.
8360 * sysdeps/alpha/fpu/s_isnan.c: New file.
8361 * sysdeps/alpha/fpu/s_isnanf.c: New file.
8362 * sysdeps/alpha/fpu/s_llrint.c: New file.
8363 * sysdeps/alpha/fpu/s_llrintf.c: New file.
8364 * sysdeps/alpha/fpu/s_lrint.c: New file.
8365 * sysdeps/alpha/fpu/s_lrintf.c: New file.
8366 * sysdeps/alpha/fpu/s_nearbyint.c: New file.
8367 * sysdeps/alpha/fpu/s_nearbyintf.c: New file.
8368
8369 * sysdeps/alpha/fpu/bits/mathinline.h (__floorf, __floor): Remove.
8370 (__fdimf, fdimf, __fdim, fdim): Remove.
8371 (__signbitf, __signbit, __signbitl): Use gcc builtin if available.
8372 (__isnanf, __isnan, __isnanl): New.
8373
9e43b50d
RH
83742007-03-13 Richard Henderson <rth@redhat.com>
8375
8376 * sysdeps/ieee754/ldbl-128/Makefile: New file.
8377
62789da3
RH
83782007-03-13 Richard Henderson <rth@redhat.com>
8379
8380 * sysdeps/alpha/Makefile (sysdep-CFLAGS): Force dynamic rounding.
8381 * sysdeps/alpha/fpu/bits/mathinline.h (__signbitl): New.
8382 * sysdeps/alpha/fpu/libm-test-ulps: Regenerate.
8383 * sysdeps/unix/sysv/linux/alpha/alphaev6/fpu/Implies: New file.
8384 * sysdeps/unix/sysv/linux/alpha/alphaev67/fpu/Implies: New file.
8385 * sysdeps/unix/sysv/linux/alpha/fpu/Implies: New file.
8386
47dbe62b
RH
83872007-03-13 Richard Henderson <rth@redhat.com>
8388
37f40235 8389 * elf/dl-support.c (_dl_aux_init): Honor DL_PLATFORM_AUXV.
47dbe62b
RH
8390 * sysdeps/unix/sysv/linux/alpha/dl-auxv.h: New file.
8391 * sysdeps/unix/sysv/linux/alpha/dl-support.c: New file.
8392 * sysdeps/unix/sysv/linux/alpha/dl-sysdep.c (__libc_alpha_cache_shape):
8393 Move to dl-auxv.h; initialize instead of extern weak.
8394 (DL_PLATFORM_AUXV): Move to dl-auxv.h; don't test for undef
8395 weak symbol.
8396 * sysdeps/unix/sysv/linux/alpha/sysconf.c (__libc_alpha_cache_shape):
8397 Extern instead of initialized.
8398
b8097bed
RH
83992007-03-13 Richard Henderson <rth@redhat.com>
8400
8401 * sysdeps/unix/sysv/linux/alpha/sigsuspend.S: Add support for
8402 __sigsuspend_nocancel.
8403
6bf4a686
UD
84042007-03-06 Ulrich Drepper <drepper@redhat.com>
8405
8406 * sysdeps/posix/getaddrinfo.c (get_scope): Correct test for
8407 172.16/12 address range.
8408
0b3b1a0c
UD
84092007-03-02 Jakub Jelinek <jakub@redhat.com>
8410
8411 * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Retry with
8412 a new netlink socket if NLMSG_ERR -EBUSY is seen after some MSG_TRUNC
8413 message.
8414
8f3edfee
UD
84152007-03-01 Jakub Jelinek <jakub@redhat.com>
8416
c1c5e654 8417 [BZ #4069]
8f3edfee
UD
8418 * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Check for NaN
8419 earlier.
8420 * math/libm-test.inc (pow_test): Add more tests involving NaNs.
8421
8422 * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Avoid invalid exception
8423 for x qNaN and y either +-inf or non-integer value.
8424 * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Likewise.
8425 * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.
8426 * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
8427
245a1481
UD
84282007-02-10 Mike Frysinger <vapier@gentoo.org>
8429
8430 * sysdeps/unix/sysv/linux/sh/Makefile: Remove sys/io.h
8431 from sysdep_headers.
8432
c217692b
UD
84332007-02-28 Jakub Jelinek <jakub@redhat.com>
8434
8435 * time/tzfile.c (find_transition): Instead of a linear search try to
8436 guess the transition index, use a linear search if the result is at
8437 most 10 transitions away from the guess or binary search otherwise.
8438
fe64626c
JJ
84392007-02-27 Jakub Jelinek <jakub@redhat.com>
8440
8441 * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Fix
8442 memory reallocation.
8443
0f7769f7
UD
84442007-02-21 Ulrich Drepper <drepper@redhat.com>
8445
621c133d
UD
8446 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Add branch predictions
8447 and fix some typos.
8448 Optimize use of TOLOWER.
9cf147d8 8449
cdfd61e1
UD
8450 [BZ #3325]
8451 * sysdeps/i386/fpu/e_fmodf.S: Revert last changes, keep using fprem.
8452 * sysdeps/i386/fpu/e_fmodl.c: Likewise.
8453 * sysdeps/i386/fpu/e_fmod.S: Likewise.
8454
8889e7aa
UD
8455 [BZ #3458]
8456 * sysdeps/unix/sysv/linux/posix_madvise.c: New file.
8457 * sysdeps/unix/sysv/linux/syscalls.list: Remove posix_madvise entry.
8458
63a2f305
UD
8459 [BZ #4076]
8460 * io/ftw.c (ftw_startup): Handle special case of FTW_CHDIR in /.
8461 (open_dir_stream): Likewise.
8462 * io/Makefile (tests): Add bug-ftw5.
c536b9b8 8463 * io/bug-ftw5.c: New file.
63a2f305 8464
c8703f88
UD
8465 * nscd/hstcache.c (cache_addhst): Remove unnecessary conditional.
8466 * nscd/servicescache.c (cache_addserv): Likewise.
8467
8468 * nscd/grpcache.c (cache_addgr): In case a record changed on
8469 refresh, adjust key_copy.
8470
61705e06
UD
8471 [BZ #4074]
8472 * nscd/pwdcache.c (cache_addpw): In case a record changed on
8473 refresh, adjust key_copy.
8474
0f7769f7
UD
8475 [BZ #4070]
8476 * stdio-common/printf_fp.c (___printf_fp): Handle a few more
0f7769f7 8477 special cases.
8889e7aa 8478 * stdio-common/tfformat.c (sprint_doubles): Some more tests.
0f7769f7 8479
3979024a
UD
84802007-02-19 Ulrich Drepper <drepper@redhat.com>
8481
4c02bf1a
UD
8482 * stdio-common/printf_fp.c (___printf_fp): Cleanups and minor
8483 optimization.
8484
3979024a
UD
8485 * stdio-common/vfscanf.c: Small cleanups throughout.
8486
821d3e70
UD
84872007-02-18 Ulrich Drepper <drepper@redhat.com>
8488
2484468b
UD
8489 [BZ #3325]
8490 * sysdeps/i386/fpu/e_fmodf.S: Use fprem1 instead of fprem.
8491 * sysdeps/i386/fpu/e_fmodl.c: Likewise.
8492 * sysdeps/i386/fpu/e_fmod.S: Likewise.
8493 Patch by Jared Casper <jaredcasper@gmail.com>.
8494
858ee15d
UD
8495 * sysdeps/unix/closedir.c: Outside libc don't use locking.
8496 * sysdeps/unix/opendir.c: Likewise.
8497 * sysdeps/unix/readdir.c: Likewise.
8498
ecb72bd5
UD
8499 [BZ #2211]
8500 * stdio-common/vfscanf.c: Handle localized digits etc for floating
8501 point numbers.
8502 Patch mostly by Hamed Malek <hamed@farsiweb.info>.
8503
ac2ca022
UD
8504 * stdio-common/vfscanf.c: Fix problems in width accounting.
8505 * stdio-common/tst-sscanf.c (double_tests): New tests.
8506 (main): Hook them up.
8507
e9bb5246 8508 * stdio-common/vfscanf.c: Remove unused WIDTH handling.
da50f001 8509 More simplifications of floating-point reader.
e9bb5246 8510
821d3e70
UD
8511 * stdio-common/Makefile (tests): Add tst-swscanf.
8512 * stdio-common/tst-sscanf.c: Make tests usable for swscanf
8513 testing.
8514 * stdio-common/tst-swscanf.c: New file.
8515
07fb5185
UD
85162007-02-17 Ulrich Drepper <drepper@redhat.com>
8517
9138cc0b
UD
8518 [BZ #2633]
8519 * libio/stdio.h: Define struct _IO_FILE in global namespace.
8520 * setjmp/setjmp.h: Define __jmp_buf_tag in global namespace.
8521 Remove using for __jmp_buf_tag.
8522 * locale/locale.h (struct lconv): Also define in std namespace.
8523 * wcsmbs/wchar.h: Move using declaration for tm out of namespace.
8524
6818d837
UD
8525 [BZ #3842]
8526 * sysdeps/posix/euidaccess.c [_LIBC] (euidaccess): Remove shortcut
8527 using __libc_enable_secure.
8528
15c4b5a4
UD
8529 [BZ #3818]
8530 * sysdeps/unix/sysv/linux/sys/acct.h (struct acct_v3): Define.
8531
5e9e9c14
UD
8532 [BZ #3745]
8533 * locale/programs/ld-collate.c (handle_ellipsis): Fix generation
8534 of names for ellipsises.
8535
07fb5185
UD
8536 [BZ #3348]
8537 * malloc/memusage.sh: Cleanups.
8538 * debug/xtrace.sh: Quoting and trap changes.
8539
8c6d1043
UD
85402007-02-16 Ulrich Drepper <drepper@redhat.com>
8541
07fb5185
UD
8542 * locale/iso-3166.def: Add Jersey, Guernsey, and Isle Of Man entries.
8543
93e66914 8544 * locale/iso-3166.def: Update entry for Serbia.
93e36434
UD
8545 * locale/iso-4217.def: Define RSD, remove CSD.
8546
ad0b348c
UD
8547 * sysdeps/x86_64/bits/atomic.h: One more change, this time for 16-
8548 and 64-bit operations.
8549
8550 [BZ #4040]
8551 * sysdeps/i386/i486/bits/atomic.h: One more change, this time for
8552 16-bit operations.
8553
8c6d1043
UD
8554 * nscd/nscd.c (parse_opt): One more conversion to use send instead
8555 of writev.
8556
987f54c6
UD
85572007-02-15 Ulrich Drepper <drepper@redhat.com>
8558
b3715c05
UD
8559 [BZ #3991]
8560 * assert/assert.h (assert): Simplify.
8561 (assert_perror): Likewise.
8562 Patch by Israel G. Lugo <ilugo@bridonsecurity.com>.
8563
6eea8e0d
UD
8564 * nscd/nscd_helper.c (open_socket): Don't send padding bytes from
8565 reqdata.
8566
987f54c6
UD
8567 * sysdeps/unix/sysv/linux/x86_64/send.c (__libc_send): Cosmetic
8568 change: don't pass NULL in place of an integer.
8569
3dc08a7e
UD
85702007-02-02 Bruno Haible <bruno@clisp.org>
8571
06c17c78
UD
8572 [BZ #3954]
8573 * iconvdata/ksc5601.c (__ksc5601_sym_to_ucs, __ksc5601_sym_from_ucs):
8574 Add mapping for U+327E.
8575 * iconvdata/ksc5601.h (KSC5601_SYMBOL): Increment.
8576 * iconvdata/johab.c (BODY for FROM_LOOP, BODY for TO_LOOP): Enable
8577 mapping of 0xD9 0xE8.
8578 * iconvdata/uhc.c (BODY for FROM_LOOP, BODY for TO_LOOP): Disable
8579 mapping of U+327E.
8580 Reported by Jungshik Shin <jungshik@google.com>.
8581
8582 [BZ #3955]
3dc08a7e
UD
8583 * iconvdata/johab.c (BODY for FROM_LOOP, BODY for TO_LOOP): Enable
8584 mapping of 0xD9 0xE6 and of 0xD9 0xE7.
8585 Reported by Jungshik Shin <jungshik@google.com>.
8586
a810e68c
UD
85872007-02-14 Ulrich Drepper <drepper@redhat.com>
8588
8589 * sysdeps/x86_64/bits/atomic;h: Fix asm parameters for some
8590 byte variants.
8591
8592 [BZ #4040]
8593 * sysdeps/i386/i486/bits/atomic.h: Fix asm parameters for some
8594 byte variants. Patch mostly be tom@tommay.net.
8595
05f135ba
UD
85962007-02-14 Jakub Jelinek <jakub@redhat.com>
8597
8598 [BZ #3996]
8599 * posix/glob.c (attribute_hidden): Define if not defined.
8600 (glob): Unescape dirname, filename or username when needed and not
8601 GLOB_NOESCAPE. Handle \/ correctly. Handle GLOB_MARK if filename
8602 is NULL. Handle unescaped [ in pattern without closing ].
8603 Don't pass GLOB_CHECK down to recursive glob for directories.
8604 (__glob_pattern_type): New function.
8605 (__glob_pattern_p): Implement using __glob_pattern_type.
8606 (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
8607 characters and backslashes if not GLOB_NOESCAPE or unterminated [.
8608 Remove unreachable code.
8609 * posix/globtest.sh: Add a couple of new tests.
8610
2f699967
UD
86112007-02-13 Ulrich Drepper <drepper@redhat.com>
8612
8613 * po/ru.po: Update from translation team.
8614
3a7cd5b4
JJ
86152007-02-12 Jakub Jelinek <jakub@redhat.com>
8616
8617 * sysdeps/i386/bits/byteswap.h (__bswap_32): Add __amdfam10__
8618 to the list of i486+ CPUs.
8619 * sysdeps/x86_64/bits/byteswap.h (__bswap_32): Likewise.
8620
2f978feb
UD
86212007-02-12 Ulrich Drepper <drepper@redhat.com>
8622
8623 * elf/rtld.c (RESOLVE_MAP): Always return bootstrap_map reference.
8624 * elf/Makefile ($(objpfx)ld.so): Check that ld.so has no undefined
8625 references.
8626
2bbb7d5b
UD
86272007-02-09 Ulrich Drepper <drepper@redhat.com>
8628
5ed61e0f
UD
8629 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Remove incorrect comment.
8630
2bbb7d5b
UD
8631 * resolv/res_init.c (res_setoptions): Recognize edns0 option.
8632 * resolv/res_mkquery.c: Define __res_nopt.
8633 * resolv/res_query.c (__libc_res_nquery): If RES_USE_EDNS0 is set
8634 try adding EDNS0 record.
8635 * resolv/res_send.c (send_dg): If request failed with FORMERR and
8636 EDNS0 record was send make sure we don't try it again.
8637 * resolv/resolv.h: Define RES_F_EDNS0ERR and RES_USE_EDNS0.
8638 * include/resolv.h: Declare __res_nopt.
8639
00458b5b
UD
86402007-02-08 Jakub Jelinek <jakub@redhat.com>
8641
8642 [BZ #3944]
8643 * time/strptime_l.c (__strptime_internal): Set have_mon for
8644 %b/%B/%h. Set have_mon and have_mday if tm_mon and tm_mday
8645 have been computed from tm_yday and tm_year. Don't crash
8646 in day_of_the_week or day_of_the_year if not have_mon
8647 and tm_mon contains bogus value.
8648 * time/Makefile (tests): Add tst-strptime3.
8649 * time/tst-strptime3.c: New test.
8650
784aacea
UD
86512007-02-05 Jakub Jelinek <jakub@redhat.com>
8652
8653 [BZ #3957]
8654 * posix/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
8655 bit for RE_HAT_LISTS_NOT_NEWLINE.
8656 (build_charclass_op): Remove bogus comment.
8657 * posix/Makefile (tests): Add bug-regex27 and bug-regex28.
8658 * posix/bug-regex27.c: New test.
8659 * posix/bug-regex28.c: New test.
8660
bf7a2463
UD
86612007-02-03 Ulrich Drepper <drepper@redhat.com>
8662
8663 * po/sv.po: Update from translation team.
8664
f2ccf983
UD
86652007-02-02 Ulrich Drepper <drepper@redhat.com>
8666
8667 * nscd/nscd_helper.c (open_socket): Minor size optimization.
8668
73f50d5a
UD
86692007-02-02 Jakub Jelinek <jakub@redhat.com>
8670
8671 * include/locale.h (__uselocale): Add libc_hidden_proto.
8672 * locale/uselocale.c (__uselocale): Add libc_hidden_def.
8673
f6bf9e59
JJ
8674 * nscd/nscd_helper.c (open_socket): Use __gettimeofday instead of
8675 gettimeofday.
8676
4a44ce79
UD
86772007-02-01 Ulrich Drepper <drepper@redhat.com>
8678
8679 * sysdeps/unix/sysv/linux/i386/sysdep.h (PTR_MANGLE): Roll value before
8680 returning.
8681 (PTR_DEMANGLE): Real definition now that it's not the same as
8682 PRT_MANGLE anymore.
8683 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
8684
8685 * string/strerror_l.c: New file.
8686 * string/Makefile (routines): Add strerror_l.
8687 * string/string.h: Declare strerror_l.
8688 * string/Versions: Export strerror_l for GLIBC_2.6.
8689
58a2d52e
UD
86902007-01-31 Ulrich Drepper <drepper@redhat.com>
8691
8692 * nscd/nscd_helper.c (open_socket): Now takes request type and key
8693 as parameter. Construct request record. Try sending request
8694 before the first poll use, it usually succeeds. Adjust all
8695 callers.
8696 * nscd/nscd-client.h: Define MAXKEYLEN.
4a44ce79 8697 * nscd/connections.c (nscd_run): Don't define MAXKEYLEN here.
58a2d52e 8698
1a77d37f
JJ
86992007-01-31 Jakub Jelinek <jakub@redhat.com>
8700
8701 * nscd/nscd-client.h (__nscd_cache_search): Remove const qualifier
8702 from return value.
8703 * nscd/nscd_helper.c: Include string.h.
8704 (__nscd_cache_search): Remove const qualifier from return value.
8705 On strict alignment architectures check hash entry and data head
8706 alignment.
8707 * nscd/nscd_getpw_r.c (nscd_getpw_r): Don't crash or fail because
8708 mmapped data during GC cycle contains garbage. If
8709 __nscd_drop_map_ref fails, decrement mapped->counter when returning
8710 error or if retrying with NO_MAPPING, only __nscd_unmap if counter
8711 dropped to 0.
8712 * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
8713 * nscd/nscd_initgroups.c (__nscd_getgrouplist): Likewise.
8714 * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
8715 * nscd/nscd_getai.c (__nscd_getai): Likewise.
8716 * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
8717
ee314200
UD
87182007-01-30 Ulrich Drepper <drepper@redhat.com>
8719
8720 * misc/hsearch_r.c (hdestroy_r): Remove unnecessary test.
8721
14c8bf3b
UD
87222007-01-26 Ulrich Drepper <drepper@redhat.com>
8723
8724 * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Use register
8725 names not numbers in cfi_*.
8726
d2708e67
AJ
87272007-01-26 Andreas Jaeger <aj@suse.de>
8728
8729 * sysdeps/unix/sysv/linux/sys/personality.h (ADDR_NO_RANDOMIZE,
14c8bf3b 8730 ADDR_LIMIT_3GB, PER_LINUX_32BIT, PER_LINUX32_3GB): Add.
d2708e67
AJ
8731 Correct values of PER_HPUX and PER_OSF4.
8732
7fbc8784
UD
87332007-01-24 Ulrich Drepper <drepper@redhat.com>
8734
8aaf53ee 8735 * elf/dl-minimal.c: Undefine _itoa first.
7fbc8784
UD
8736 * stdio-common/_itoa.h: Define _itoa and _fitoa for 64-bit platforms.
8737 * malloc/mtrace.c: Revert last change.
8738 * posix/wordexp.c: Likewise.
8739
9d6cde3d
UD
87402007-01-24 Jakub Jelinek <jakub@redhat.com>
8741
8742 * sysdeps/i386/bits/byteswap.h (__bswap_32): Add __nocona__, __core2__
8743 and __geode__ to the list of i486+ CPUs.
8744 * sysdeps/x86_64/bits/byteswap.h (__bswap_32): Likewise.
8745
c1f0486a
UD
87462007-01-23 Ulrich Drepper <drepper@redhat.com>
8747
8748 * stdio-common/_itoa.c: Include <limits.h>.
8749 * stdio-common/_itowa.c: Likewise.
8750
6cae3957
UD
87512007-01-22 Ulrich Drepper <drepper@redhat.com>
8752
765bbb24
UD
8753 * stdio-common/_itowa.c: Don't compile _itowa for 64-bit
8754 platforms.
8755 * stdio-common/_itoa.c: Don't compile in _itoa and _fitoa for
8756 64-bit platforms.
8757 * malloc/mtrace.c (tr_where): Use _fitoa_word instead of _fitoa if
8758 possible.
8759 * posix/wordexp.c (parse_arith): Use _itoa_word instead of _itoa
8760 if possible.
8761
6cae3957
UD
8762 [BZ #3902]
8763 * stdio-common/_itoa.c (_itoa): Make sure at least a zero is emitted.
8764 * stdio-common/Makefile (tests): Add bug17.
8765 * stdio-common/bug17.c: New file.
8766
ddaafd04
UD
87672007-01-19 Ulrich Drepper <drepper@redhat.com>
8768
8769 * iconvdata/brf.c: New file.
439201de
UD
8770 * iconvdata/testdata/BRF: New file.
8771 * iconvdata/testdata/BRF..UTF8: New file.
8772 Contributed by Samuel Thibault <samuel.thibault@ens-lyon.org>.
ddaafd04
UD
8773 * iconvdata/Makefile: Add rules to build BRF.
8774 * iconvdata/TESTS: Add BRF entry.
8775 * iconvdata/gconv-modules: Likewise.
8776 * iconvdata/tst-tables.sh: Likewise.
ddaafd04 8777
9e6e344e
UD
87782007-01-18 Anton Nikishaev <anton.nik@gmail.com>
8779
8780 * wcsmbs/wchar.h (wcstoll): Fix comment, function returns value of
8781 type `long long int', not `long int'.
8782 (wcstoq): Likewise.
8783
299f7b0f
UD
87842007-01-18 Ulrich Drepper <drepper@redhat.com>
8785
8786 * scripts/gen-as-const.awk: Add cast to long to avoid int promotion
8787 of values on 64-bit platforms which are too large.
8788
cd8127cc
JJ
87892007-01-12 Steven Munroe <sjmunroe@us.ibm.com>
8790 Joe Kerian <jkerian@us.us.ibm.com>
8791
8792 [BZ #2749]
8793 * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Include
8794 <math_ldbl_opt.h>. Remove weak_alias. Use long_double_symbol macro.
8795 (__copysignl): Use signbit() for comparison.
8796 * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c (__fabsl): Correct parms for
8797 SET_LDOUBLE_WORDS64.
8798
8799 [BZ #2423, #2749]
8800 * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Don't include <fenv_libc.h>.
8801 (__ceill): Remove calls to fegetround(), fesetround().
8802 * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
8803 * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
8804 * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
8805
b3acfdf7
JJ
88062007-01-17 Jakub Jelinek <jakub@redhat.com>
8807
4a2e03c6
JJ
8808 * nscd/nscd_getserv_r.c (nscd_getserv_r): Fix pastos.
8809
b3acfdf7
JJ
8810 * sysdeps/unix/sysv/linux/getdents.c (offsetof): Remove.
8811
1476bce6
UD
88122007-01-17 Ulrich Drepper <drepper@redhat.com>
8813
8814 * sysdeps/unix/sysv/linux/fatal-prepare.h: Use PTHFCT_CALL to
8815 demangle pointer.
8816 * csu/libc-start.c: Likewise.
8817
d78bce1c
UD
88182007-01-16 Ulrich Drepper <drepper@redhat.com>
8819
8820 * sysdeps/posix/system.c: Remove NO_WAITPID support, it cannot
8821 really work anyway.
8822
1bd79025
UD
88232007-01-15 Ulrich Drepper <drepper@redhat.com>
8824
000b027e
UD
8825 * nscd/connections.c (servinfo): Renamed to reqinfo. Change all
8826 users.
8827 (handle_request): Remove unnecessary tests.
8828
1bd79025
UD
8829 * nscd/cache.c (cache_add): Record the failure to add to the cache.
8830
d68f5d2c
JJ
88312007-01-15 Jakub Jelinek <jakub@redhat.com>
8832
8833 * soft-fp/op-common.h (FP_TRUNC): When truncating a NaN, clear
8834 workbits in semi-raw fraction.
8835
8836 * math/test-misc.c: Add new tests.
8837
88382007-01-14 Steven Munroe <sjmunroe@us.ibm.com>
8839
8840 * math/basic-test.c: Include test-skeleton.c.
8841 (TEST_TRUNC): Define.
8842 (truncdfsf_test, trunctfsf_test, trunctfdf_test): New.
8843 (main): Rename to ...
8844 (do_test): ...this. Run new tests.
8845 (TEST_FUNCTION): Define.
8846
88472006-10-05 Steven Munroe <sjmunroe@us.ibm.com>
8848 Joe Kerian <jkerian@us.us.ibm.com>
8849
8850 [BZ #2749]
8851 * soft-fp/op-4.h (__FP_FRAC_SUB_3, __FP_FRAC_SUB_4): Correct borrow
8852 handling for high words.
8853 * soft-fp/op-common.h (_FP_OVERFLOW_SEMIRAW): Always set inexact
8854 and overflow for infinity.
8855
4e35ef2c
UD
88562007-01-15 Ulrich Drepper <drepper@redhat.com>
8857
2a1dea97
UD
8858 * nscd/connections.c (handle_request): Add a __builtin_expect.
8859
9691d83c
UD
8860 * nscd/connections.c (serv2db): Change type into structure which
8861 also says whether this is a request for data. Renamed to
8862 servinfo. All users changed.
8863 (handle_request): Much simpler test whether we should search the cache.
8864
49ee6d79
UD
8865 * nscd/connections.c (handle_request): Fix thinko in selinux test
8866 invocation.
8867
4e35ef2c
UD
8868 * sysdeps/generic/ldsodefs.h: Define DL_LOOKUP_SCOPE_LOCK.
8869 * elf/dl-lookup.c (add_dependency): If scope map is locked, unlock
8870 it before getting dl_load_lock and then relock.
8871 (_dl_lookup_symbol_x): Pass flags to add_dependency.
8872 When rerunning _dl_lookup_symbol_x, compute symbol_scope again in
8873 case we unlocked the scope.
8874 * elf/dl-runtime.c (_dl_fixup): Pass DL_LOOKUP_SCOPE_LOCK to
8875 _dl_lookup_symbol_x in case we locked the scope.
8876 (_dl_profile_fixup): Likewise.
8877 * elf/dl-sym.c (do_sym): In flags passed to call_dl_lookup, also
8878 set DL_LOOKUP_SCOPE_LOCK.
8879
23691ab2
UD
88802007-01-13 Ulrich Drepper <drepper@redhat.com>
8881
fb453d08
UD
8882 * inet/Makefile: Define CFLAGS-getsrvbynm_r.c and
8883 CFLAGS-getsrvbynpt_r.c.
8884 * nscd/getsrvbynm_r.c: New file.
8885 * nscd/getsrvbypt_r.c: New file.
8886 * nscd/nscd_getserv_r.c: New file.
8887 * nscd/servicescache.c: New file.
8888 * nscd/Makefile (routines): Add nscd_getserv_r.
8889 (nscd-modules): Add getsrvbynm_r, getsrvbypt_r, and servicescache.
8890 Define CFLAGS-servicescache.c, CFLAGS-getsrvbynm_r.c, and
8891 CFLAGS-getsrvbypt_r.c.
8892 * nscd/cache.c (prune_cache): Rewrite to get re-add function from
8893 table. Add entries for services database.
8894 * nscd/connections.c (serv2str): Mark as const. Add entries for
8895 services database.
8896 (dbs): Add .reset_res and servdb initialization.
8897 (serv2db): Add entries for services database.
8898 (verify_persistent_db): Accept dbnr == servdb.
8899 (invalidate_cache): Rewrite database name recognition to use a table.
8900 Call res_init() if .reset_res is set for database.
8901 (handle_request): Add code to handle services database.
8902 * nscd/gai.c: Don't define __getservbyname_r.
8903 * nscd/nscd-client.h (request_type): Remove LASTDBREQ, add
8904 GETSERVBYNAME, GETSERVBYPORT, GETFDSERV.
8905 (serv_response_header): Define.
8906 (struct datahead): Add serv_response_header member.
8907 * nscd/nscd.c (parse_opt): Rewrite parsing of -i parameter value
8908 using table.
8909 * nscd/nscd.conf: Add entries for services database.
8910 * nscd/nscd.h: Adjust declaration of dbnames and serv2str.
8911 Declare serv_iov_disabled.
8912 Declare addservbyname, readdservbyname, addservbyport, and
8913 readdservbyport.
8914 * nscd/nscd_conf.c (dbnames): Mark as const. Add services entry.
8915 (find_db): Fix error message.
8916 * nscd/nscd_proto.h: Declare __nss_not_use_nscd_services,
8917 __nscd_getservbyname_r, and __nscd_getservbyport_r.
8918 * nscd/selinux.c (perms): Add entries for services database.
8919 * nss/Versions: Export __nss_services_lookup with GLIBC_PRIVATE.
8920 * nss/nsswitch.c (__nss_disable_nscd): Also disable services database.
8921
8922 * nscd/grpcache.c: Remove obsolete code. Cleanups.
8923 * nscd/hstcache.c: Likewise.
8924 * nscd/pwdcache.c: Likewise.
8925
b21fa963
UD
8926 * nis/nss_nis/nis-service.c (_nss_nis_getservbyname_r): Correct
8927 computation of keylen.
8928
23691ab2
UD
8929 * include/string.h: Only redefine strndupa if this is really for
8930 libc code.
8931
8980796b
UD
89322007-01-12 Ulrich Drepper <drepper@redhat.com>
8933
4a4a65f2
UD
8934 * nscd/nscd_gethst_r.c: Minor cleanups.
8935
43397eaf
UD
8936 * nscd/connections.c (handle_request): Check selinux permissions
8937 for all non-admin commands.
8938
038a1a9f
UD
8939 * sysdeps/i386/i486/bits/atomic.h: Define
8940 atomic_compare_and_exchange_val_acq,
8941 atomic_compare_and_exchange_bool_acq, and atomic_exchange_and_add
8942 using __sync_* built-ins for gcc >= 4.1.
8943 * sysdeps/x86_64/bits/atomic.h: Likewise.
8944
8980796b
UD
8945 [BZ #3840]
8946 * scripts/check-local-headers.sh: Restrict to testing .o.d, .os.d,
8947 and .oS.d files.
8948
32c075e1
JJ
89492007-01-05 Steven Munroe <sjmunroe@us.ibm.com>
8950
8951 * stdlib/tst-makecontext.c: Include errno.h. Change main()
8952 to do_test(). Define TEST_FUNCTION. Include test-skeleton.c.
8953 (do_test): Check errno and exit(0) if ENOSYS.
8954
89552007-01-11 Jakub Jelinek <jakub@redhat.com>
8956
8957 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix handling of multi-byte
8958 thousands separators.
8959 * stdlib/Makefile: Add rules to build and run tst-strtod4.
8960 * stdlib/tst-strtod4.c: New test.
8961
8962 [BZ #3855]
8963 * stdlib/strtod_l.c (____STRTOF_INTERNAL): 0x. not followed by
8964 hexadecimal digit should accept just the initial 0.
8965 * stdlib/tst-strtod2.c (tests): New variable.
8966 (do_test): Run several tests rather than just one.
8967
11bf311e 89682007-01-11 Jakub Jelinek <jakub@redhat.com>
df859a0c 8969
11bf311e
UD
8970 * sysdeps/i386/soft-fp/sfp-machine.h: Remove.
8971 * sysdeps/x86_64/soft-fp/sfp-machine.h: Likewise.
df859a0c 8972
11bf311e 89732007-01-10 Ulrich Drepper <drepper@redhat.com>
32c075e1 8974
11bf311e
UD
8975 * io/fts.c: Make sure fts_cur is always valid after return from
8976 fts_read.
8977 Patch by Miloslav Trmac <mitr@redhat.com>.
64a0aa0f 8978
11bf311e 89792006-10-27 Richard Sandiford <richard@codesourcery.com>
32c075e1 8980
11bf311e
UD
8981 * elf/elf.h (R_MIPS_GLOB_DAT): Define.
8982 (R_MIPS_NUM): Bump by 1.
32c075e1 8983
11bf311e 89842007-01-03 Jakub Jelinek <jakub@redhat.com>
32c075e1 8985
11bf311e
UD
8986 * posix/execvp.c: Include alloca.h.
8987 (allocate_scripts_argv): Renamed to...
8988 (scripts_argv): ... this. Don't allocate buffer here nor count
8989 arguments.
8990 (execvp): Use alloca if possible.
8991 * posix/Makefile: Add rules to build and run tst-vfork3 test.
8992 * posix/tst-vfork3.c: New test.
32c075e1
JJ
8993
89942007-01-03 Ulrich Drepper <drepper@redhat.com>
8995
8996 * string/Makefile (tst-strxfrm2-ENV): Define.
11bf311e 8997 * stdlib/Makefile (tst-strtod3-ENV): Define.
32c075e1 8998
11bf311e 89992007-01-02 Ulrich Drepper <drepper@redhat.com>
32c075e1 9000
11bf311e
UD
9001 * posix/getconf.c: Update copyright year.
9002 * nss/getent.c: Likewise.
9003 * iconv/iconvconfig.c: Likewise.
9004 * iconv/iconv_prog.c: Likewise.
9005 * elf/ldconfig.c: Likewise.
9006 * catgets/gencat.c: Likewise.
9007 * csu/version.c: Likewise.
9008 * elf/ldd.bash.in: Likewise.
9009 * elf/sprof.c (print_version): Likewise.
9010 * locale/programs/locale.c: Likewise.
9011 * locale/programs/localedef.c: Likewise.
9012 * nscd/nscd.c (print_version): Likewise.
9013 * debug/xtrace.sh: Likewise.
9014 * malloc/memusage.sh: Likewise.
9015 * malloc/mtrace.pl: Likewise.
9016 * debug/catchsegv.sh: Likewise.
64a0aa0f 9017
11bf311e 90182006-12-24 Ulrich Drepper <drepper@redhat.com>
48576885 9019
11bf311e
UD
9020 * malloc/malloc.c (sYSMALLOc): Remove some unnecessary alignment
9021 attempts.
48576885 9022
11bf311e 90232006-12-23 Ulrich Drepper <drepper@redhat.com>
3b6667a4 9024
11bf311e 9025 * posix/wordexp.c: Remove some unnecessary tests.
3b6667a4 9026
33c6de58
UD
90272006-12-22 Gavin Romig-Koch <gavin@redhat.com>
9028
9029 * nis/nss_compat/compat-grp.c (internal_getgrgid_r): Don't
9030 blacklist the group till after we look it up.
9031
fc242bef
UD
90322006-12-21 Ulrich Drepper <drepper@redhat.com>
9033
9034 * include/atomic.h (atomic_forced_read): New macro.
9035
11bf311e
UD
90362006-12-20 SUGIOKA Toshinobu <sugioka@itonet.co.jp>
9037
9038 * sysdeps/unix/sysv/linux/sh/bits/shm.h: New file.
9039
a12dcecc
UD
90402006-12-19 Jakub Jelinek <jakub@redhat.com>
9041
11bf311e
UD
9042 * nss/getXXbyYY_r.c: Include atomic.h.
9043 (INTERNAL (REENTRANT_NAME)): Write startp after start_fct,
9044 add atomic_write_barrier () in between.
9045
a12dcecc
UD
9046 * stdlib/Makefile (tests): Add tst-makecontext.
9047 * stdlib/tst-makecontext.c: New test.
9048
9049 * sysdeps/unix/sysv/linux/powerpc/powerpc32/makecontext.S
9050 (__makecontext): Don't realign uc_mcontext.uc_regs.
9051
11bf311e 90522006-11-28 Jakub Jelinek <jakub@redhat.com>
594d423a 9053
11bf311e
UD
9054 * elf/dl-support.c: Include dl-procinfo.h.
9055 * sysdeps/powerpc/dl-procinfo.h (PPC_PLATFORM_POWER4,
9056 PPC_PLATFORM_PPC970, PPC_PLATFORM_POWER5, PPC_PLATFORM_POWER5_PLUS,
9057 PPC_PLATFORM_POWER6, PPC_PLATFORM_CELL_BE, PPC_PLATFORM_POWER6X):
9058 Define.
9059 (_dl_string_platform): Use PPC_PLATFORM_* macros instead of
9060 hardcoded constants.
9061 * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_platform): Use
9062 PPC_PLATFORM_* macros for array designators.
594d423a 9063
11bf311e 90642006-11-11 Steven Munroe <sjmunroe@us.ibm.com>
594d423a 9065
11bf311e
UD
9066 * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Add 3 new cap
9067 names to the beginning.
9068 (_dl_powerpc_platforms): Add "power6x".
9069 * sysdeps/powerpc/dl-procinfo.h (_DL_HWCAP_FIRST): Decrease.
9070 (HWCAP_IMPORTANT): Add PPC_FEATURE_HAS_DFP.
9071 (_DL_PLATFORMS_COUNT): Increase.
9072 (_dl_string_platform): Handle power6x case.
9073 * sysdeps/powerpc/sysdep.h (PPC_FEATURE_PA6T, PPC_FEATURE_HAS_DFP,
9074 PPC_FEATURE_POWER6_EXT): Define.
9075 (PPC_FEATURE_POWER5, PPC_FEATURE_POWER5_PLUS): Correct Comment.
594d423a 9076
5bcba0ed
UD
90772006-12-18 Jakub Jelinek <jakub@redhat.com>
9078
9079 [BZ #3747]
9080 * stdlib/jrand48_r.c (__jrand48_r): Make sure result is in the
11bf311e 9081 [-2^31 .. 2^31) range.
5bcba0ed
UD
9082 * stdlib/tst-rand48.c (main): Fix expected values for 64-bit
9083 targets.
9084 * stdlib/tst-rand48-2.c: New test.
9085 * stdlib/Makefile (tests): Add tst-rand48-2.
9086
9e1444fc
UD
90872006-12-14 Jakub Jelinek <jakub@redhat.com>
9088
9089 * misc/tst-pselect.c (do_test): Fix sigblock argument.
9090
36775704
UD
90912006-12-14 Ulrich Drepper <drepper@redhat.com>
9092
9093 * misc/tst-pselect.c (do_test): Make sure the helper process is
9094 terminating when the test is aborted.
9095
1e88bd0f
UD
90962006-12-13 Ulrich Drepper <drepper@redhat.com>
9097
11bf311e
UD
9098 * sysdeps/unix/sysv/linux/bits/statvfs.h: Define ST_RELATIME.
9099 * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
9100 Handle relatime mount option.
9101
1e88bd0f
UD
9102 [BZ #2337]
9103 * libio/Makefile (tests): Add tst-setvbuf1.
9104 * libio/tst-setvbuf1.c: New file.
9105
91062006-12-08 Jakub Jelinek <jakub@redhat.com>
9107
9108 [BZ #2337]
9109 * libio/genops.c (__uflow): Fix a typo.
9110 * libio/wfiledoalloc.c (_IO_wfile_doallocate): Don't stat
9111 nor set _IO_LINE_BUF bit here. Size the wide buffer based on
9112 the narrow buffer size.
9113
91142006-11-24 Jakub Jelinek <jakub@redhat.com>
9115
9116 [BZ #2337]
9117 * libio/libio.h (_IO_FLAGS2_USER_WBUF): Define.
9118 * libio/wgenops.c (_IO_wsetb, _IO_wdefault_finish): Test and set
9119 _IO_FLAGS2_USER_WBUF bit in _flags2 instead of _IO_USER_BUF bit
9120 in _flags.
9121 * libio/wstrops.c (_IO_wstr_overflow, enlarge_userbuf,
9122 _IO_wstr_finish): Likewise.
9123 * libio/wmemstream.c (open_wmemstream): Likewise.
9124 * libio/fileops.c (_IO_new_file_close_it): Call _IO_set[bgp]
9125 even for wide streams.
9126
11bf311e 91272006-12-13 Jakub Jelinek <jakub@redhat.com>
1f55ce48 9128
11bf311e
UD
9129 * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S: Include
9130 kernel-features.h.
9131
91322006-12-11 Ulrich Drepper <drepper@redhat.com>
9133
9134 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Parse thousand
9135 separators also if no non-zero digits found.
9136 * stdlib/Makefile (tests): Add tst-strtod3.
1f55ce48 9137
d117c1ce
UD
91382006-12-09 Ulrich Drepper <drepper@redhat.com>
9139
f85fb97b
UD
9140 [BZ #3632]
9141 * include/features.h: Fix comment about default value for
9142 _POSIX_C_SOURCE.
9143
11bf311e
UD
9144 [BZ #3664]
9145 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix test to recognize
9146 empty parsed strings.
9147 * stdlib/Makefile (tests): Add tst-strtod2.
9148 * stdlib/tst-strtod2.c: New file.
9149
9150 [BZ #3673]
9151 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix exp_limit
9152 computation.
9153 * stdlib/Makefile (tests): Add tst-atof2.
9154 * stdlib/tst-atof2.c: New file.
9155
9156 [BZ #3674]
9157 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Adjust exponent value
9158 correctly if removing trailing zero of hex-float.
9159 * stdlib/Makefile (tests): Add tst-atof1.
9160 * stdlib/tst-atof1.c: New file.
9161
a822d9f4
UD
91622006-12-09 Jakub Jelinek <jakub@redhat.com>
9163
11bf311e
UD
9164 * misc/mntent_r.c (__hasmntopt): Check p[optlen] even when p == rest.
9165 Start searching for next comma at p rather than rest.
9166 * misc/Makefile (tests): Add tst-mntent2.
9167 * misc/tst-mntent2.c: New test.
9168
a822d9f4
UD
9169 * misc/getusershell.c (initshells): Check for integer overflows.
9170 Make strings buffer one bigger as fgets always succeeds when second
9171 argument is 1. Don't use calloc for shells array. Disallow
11bf311e 9172 / as shell.
f0d5e1f6 9173
11bf311e 91742006-12-08 Ulrich Drepper <drepper@redhat.com>
f0d5e1f6 9175
11bf311e
UD
9176 * malloc/memusage.c: Handle realloc with new size of zero and
9177 non-NULL pointer correctly.
9178 (me): Really write first record twice.
9179 (struct entry): Make format bi-arch safe.
9180 (dest): Write out more realloc statistics.
9181 * malloc/memusagestat.c (struct entry): Make format bi-arch safe.
32c075e1 9182
11bf311e 91832006-12-05 Jakub Jelinek <jakub@redhat.com>
32c075e1 9184
11bf311e 9185 * nis/nis_subr.c (nis_getnames): Revert last change.
32c075e1 9186
f0d5e1f6
UD
91872006-12-04 Jakub Jelinek <jakub@redhat.com>
9188
9189 * sysdeps/unix/sysv/linux/ttyname.c: Include termios.h.
9190 (ttyname): Use tcgetattr instead of isatty, don't set errno to ENOTTY.
9191 * sysdeps/unix/sysv/linux/ttyname_r.c: Include termios.h.
9192 (__ttyname_r): Use tcgetattr instead of isatty, don't set errno to
9193 ENOTTY.
9194 * io/Makefile: Add rules to build and run tst-ttyname_r test.
9195 * io/tst-ttyname_r.c: New test.
9196
11bf311e 91972006-12-03 Kaz Kojima <kkojima@rr.iij4u.or.jp>
5df4fe08 9198
11bf311e 9199 * sysdeps/unix/sysv/linux/sh/sys/io.h: Removed.
5df4fe08 9200
11bf311e 92012006-11-30 H.J. Lu <hongjiu.lu@intel.com>
ee50871d 9202
11bf311e
UD
9203 * sysdeps/i386/i686/memcmp.S: Use jump table as the base of
9204 jump table entries.
9205
92062006-11-30 Jan Kratochvil <jan.kratochvil@redhat.com>
9207
9208 * sysdeps/unix/sysv/linux/i386/clone.S: Provide CFI for the outermost
9209 `clone' function to ensure proper unwinding stop of gdb.
9210 * sysdeps/unix/sysv/linux/x86_64/clone.S: Likewise.
9211
92122006-12-01 Ulrich Drepper <drepper@redhat.com>
9213
9214 * nscd/nscd.init: Remove obsolete and commented-out -S option
9215 handling.
9216
92172006-11-23 Jakub Jelinek <jakub@redhat.com>
9218
9219 [BZ #3514]
9220 * manual/string.texi (strncmp): Fix pastos from wcscmp description.
9221
9222 [BZ #3515]
9223 * manual/string.texi (strtok): Remove duplicate paragraph.
9224
92252006-12-01 Jan Kratochvil <jan.kratochvil@redhat.com>
9226
9227 * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Fix compatibility with
9228 libgcc not supporting `rflags' unwinding (register # >= 17).
9229
92302006-11-30 Jakub Jelinek <jakub@redhat.com>
9231
9232 * sunrpc/svc_run.c (svc_run): Set my_pollfd to new_pollfd if realloc
9233 succeeded.
9234
92352006-11-29 Daniel Jacobowitz <dan@codesourcery.com>
9236 Jakub Jelinek <jakub@redhat.com>
9237 Jan Kratochvil <jan.kratochvil@redhat.com>
9238
9239 * sysdeps/unix/sysv/linux/x86_64/sigaction.c (restore_rt): Add correct
9240 unwind information.
9241 * sysdeps/unix/sysv/linux/x86_64/Makefile: Provide symbols for
9242 'restore_rt' even in the 'signal' directory.
9243 * sysdeps/unix/sysv/linux/x86_64/ucontext_i.sym: Extend the regs list.
ee50871d 9244
b1a758f3
UD
92452006-11-27 Jakub Jelinek <jakub@redhat.com>
9246
9247 [BZ #3559]
9248 * sunrpc/svc_run.c (svc_run): Fail instead of segfaulting if
11bf311e
UD
9249 malloc crashed. Don't allocate memory unnecessarily in each
9250 loop.
b1a758f3 9251
11bf311e 92522006-10-21 Jakub Jelinek <jakub@redhat.com>
854d1124 9253
11bf311e 9254 * resolv/mapv4v6addr.h (map_v4v6_address): Fix last change.
dfc99a56 9255
11bf311e 92562006-11-20 Ulrich Drepper <drepper@redhat.com>
dfc99a56 9257
11bf311e 9258 * resolv/mapv4v6addr.h (map_v4v6_address): Optimize a bit.
852d657c 9259
11bf311e 92602006-11-18 Bruno Haible <bruno@clisp.org>
852d657c 9261
11bf311e
UD
9262 * sysdeps/unix/sysv/linux/i386/getgroups.c (__getgroups): Invoke
9263 __sysconf only after having tried to call getgroups32.
36c0a636 9264
11bf311e 92652006-11-19 Ulrich Drepper <drepper@redhat.com>
36c0a636 9266
11bf311e
UD
9267 * nss/nss_files/files-hosts.c (LINE_PARSER): Support IPv6-style
9268 addresses for IPv4 queries if they can be mapped.
b1f0c2a6 9269
11bf311e 92702006-11-16 Jakub Jelinek <jakub@redhat.com>
b1f0c2a6 9271
11bf311e
UD
9272 * sysdeps/x86_64/fpu/s_copysignf.S (__copysignf): Switch to .text.
9273 * sysdeps/x86_64/fpu/s_copysign.S (__copysign): Likewise.
9274 (signmask): Add .size directive.
9275 (othermask): Add .type directive.
bef8927a 9276
11bf311e 92772006-11-14 Ulrich Drepper <drepper@redhat.com>
2c53fa20 9278
11bf311e 9279 * po/nl.po: Update from translation team.
854d1124 9280
11bf311e 9281 * timezone/zdump.c: Redo fix for BZ #3137.
3f1e9205 9282
11bf311e 92832006-11-14 Jakub Jelinek <jakub@redhat.com>
bef8927a 9284
11bf311e
UD
9285 * nss/nss_files/files-alias.c (get_next_alias): Set line back
9286 to first_unused after parsing :include: file.
5c2af134 9287
32c075e1 92882006-11-10 Ulrich Drepper <drepper@redhat.com>
e1b37083 9289
11bf311e
UD
9290 * timezone/africa: Update from tzdata2006o.
9291 * timezone/antarctica: Likewise.
9292 * timezone/asia: Likewise.
9293 * timezone/australasia: Likewise.
9294 * timezone/backward: Likewise.
9295 * timezone/europe: Likewise.
9296 * timezone/iso3166.tab: Likewise.
9297 * timezone/northamerica: Likewise.
9298 * timezone/southamerica: Likewise.
9299 * timezone/zone.tab: Likewise.
9300
9301 * time/tzfile.c (__tzfile_read): Extend to handle new file format
9302 on machines with 64-bit time_t.
9303
9304 * timezone/checktab.awk: Update from tzcode2006o.
9305 * timezone/ialloc.c: Likewise.
9306 * timezone/private.h: Likewise.
9307 * timezone/scheck.c: Likewise.
9308 * timezone/tzfile.h: Likewise.
9309 * timezone/tzselect.ksh: Likewise.
9310 * timezone/zdump.c: Likewise.
9311 * timezone/zic.c: Likewise.
9312
9313 [BZ #3483]
9314 * elf/ldconfig.c (main): Call setlocale and textdomain.
9315 Patch mostly by Benno Schulenberg <bensberg@justemail.net>.
9316
9317 [BZ #3480]
9318 * manual/argp.texi: Fix typos.
9319 * manual/charset.texi: Likewise.
9320 * manual/errno.texi: Likewise.
9321 * manual/filesys.texi: Likewise.
9322 * manual/lang.texi: Likewise.
9323 * manual/maint.texi: Likewise.
9324 * manual/memory.texi: Likewise.
9325 * manual/message.texi: Likewise.
9326 * manual/resource.texi: Likewise.
9327 * manual/search.texi: Likewise.
9328 * manual/signal.texi: Likewise.
9329 * manual/startup.texi: Likewise.
9330 * manual/stdio.texi: Likewise.
9331 * manual/sysinfo.texi: Likewise.
9332 * manual/syslog.texi: Likewise.
9333 * manual/time.texi: Likewise.
9334 Patch by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
9335
9336 [BZ #3465]
9337 * sunrpc/clnt_raw.c: Minimal message improvements.
9338 * sunrpc/pm_getmaps.c: Likewise.
9339 * nis/nss_nisplus/nisplus-publickey.c: Likewise.
9340 * nis/nis_print_group_entry.c: Likewise.
9341 * locale/programs/repertoire.c: Likewise.
9342 * locale/programs/charmap.c: Likewise.
9343 * malloc/memusage.sh: Likewise.
9344 * elf/dl-deps.c: Likewise.
9345 * locale/programs/ld-collate.c: Likewise.
9346 * libio/vswprintf.c: Likewise.
9347 * malloc/memusagestat.c: Likewise.
9348 * sunrpc/auth_unix.c: Likewise.
9349 * sunrpc/rpc_main.c: Likewise.
9350 * nscd/cache.c: Likewise.
9351 * locale/programs/repertoire.c: Unify output messages.
9352 * locale/programs/charmap.c: Likewise.
9353 * locale/programs/ld-ctype.c: Likewise.
9354 * locale/programs/ld-monetary.c: Likewise.
9355 * locale/programs/ld-numeric.c: Likewise.
9356 * locale/programs/ld-time.c: Likewise.
9357 * elf/ldconfig.c: Likewise.
9358 * nscd/selinux.c: Likewise.
9359 * elf/cache.c: Likewise.
9360 Patch mostly by Benno Schulenberg <bensberg@justemail.net>.
9361
5c2af134
UD
9362 [BZ #3451]
9363 * sysdeps/i386/fpu/bits/mathinline.h (floor): Make rounding mode
9364 change atomic.
9365 (ceil): Likewise.
9366
11bf311e
UD
93672006-11-10 Jakub Jelinek <jakub@redhat.com>
9368
9369 * string/strxfrm_l.c (STRXFRM): Fix trailing \1 optimization
9370 if N is one bigger than return value.
9371 * string/tst-strxfrm2.c (do_test): Also test strxfrm with l1 + 1
9372 and l1 last arguments, if buf is defined, verify the return value
9373 equals to strlen (buf) and verify no byte beyond passed length
9374 is modified.
9375
93762006-11-10 Ulrich Drepper <drepper@redhat.com>
9377
9378 * po/sv.po: Update from translation team.
9379
37afcf79
UD
93802006-11-09 Ulrich Drepper <drepper@redhat.com>
9381
9382 * sysdeps/unix/sysv/linux/x86_64/sysconf.c (intel_check_word): Add
9383 noinline attribute.
9384
93852006-11-10 Jakub Jelinek <jakub@redhat.com>
9386
9387 * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word): Add
9388 noinline attribute.
9389
11bf311e
UD
9390 * sysdeps/gnu/siglist.c (__old_sys_siglist, __old_sys_sigabbrev):
9391 Use __new_sys_siglist instead of _sys_siglist_internal as
9392 second macro argument.
9393 (_old_sys_siglist): Use declare_symbol_alias macro instead of
9394 strong_alias.
2692deea 9395
11bf311e
UD
93962006-11-09 Ulrich Drepper <drepper@redhat.com>
9397
9398 [BZ #3493]
9399 * posix/unistd.h (sysconf): Remove const attribute.
9400
9401 * sysdeps/posix/getaddrinfo.c (getaddrinfo): Fix test for
9402 temporary or deprecated addresses.
9403 Patch by Sridhar Samudrala <sri@us.ibm.com>.
9404
9405 * string/Makefile (tests): Add tst-strxfrm2.
9406 * string/tst-strxfrm2.c: New file.
9407
94082006-10-09 Jakub Jelinek <jakub@redhat.com>
9409
9410 * elf/dl-debug.c (_dl_debug_initialize): Check r->r_map for 0
9411 rather than r->r_brk.
2692deea
UD
9412
94132006-11-08 Jakub Jelinek <jakub@redhat.com>
9414
11bf311e
UD
9415 * string/strxfrm_l.c (STRXFRM): Do the trailing \1 removal
9416 optimization even if needed > n.
9417
2692deea
UD
9418 * elf/dl-load.c (decompose_rpath): Return bool rather than void.
9419 If l->l_name is on inhibit_rpath list, set sps->dirs to -1 and
9420 return false, otherwise return true.
9421 (cache_rpath): Return decompose_rpath return value.
9422
11bf311e
UD
94232006-11-07 Jakub Jelinek <jakub@redhat.com>
9424
9425 * include/libc-symbols.h (declare_symbol): Rename to...
9426 (declare_symbol_alias): ... this. Add ORIGINAL argument, imply
9427 strong_alias (ORIGINAL, SYMBOL) in asm to make sure it preceedes
9428 .size directive.
9429 * sysdeps/gnu/errlist-compat.awk: Adjust for declare_symbol_alias
9430 changes.
9431 * sysdeps/gnu/siglist.c: Likewise.
9432
94332006-11-03 Steven Munroe <sjmunroe@us.ibm.com>
9434
9435 * sysdeps/powerpc/fpu/bits/mathinline.h
9436 [__LIBC_INTERNAL_MATH_INLINES]: Moved to ...
9437 * sysdeps/powerpc/fpu/math_private.h: ...here. New file.
9438
94392006-11-05 Ulrich Drepper <drepper@redhat.com>
9440
9441 * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word):
9442 Update handling of cache descriptor 0x49 for new models.
9443 * sysdeps/unix/sysv/linux/x86_64/sysconf.c (intel_check_word):
9444 Likewise.
9445
9666e36c
UD
94462006-11-02 Jakub Jelinek <jakub@redhat.com>
9447
9448 * malloc/memusage.c (dest): Reset not_me back to false after
9449 printing statistics.
9450
11bf311e
UD
94512006-11-02 Ulrich Drepper <drepper@redhat.com>
9452
9453 * configure.in: Work around ld --help change and avoid -z relro
9454 test completely if the architecture doesn't care about security.
9455
94562006-11-01 Ulrich Drepper <drepper@redhat.com>
9457
9458 * po/sv.po: Update from translation team.
9459
94602006-10-31 Ulrich Drepper <drepper@redhat.com>
9461
9462 * stdlib/atexit.c (atexit): Don't mark as hidden when used to
9463 generate compatibility version.
9464
94652006-10-29 Ulrich Drepper <drepper@redhat.com>
9466
9467 * configure.in: Relax -z relro requirement a bit.
9468
9469 * po/sv.po: Update from translation team.
9470
94712006-10-29 Jakub Jelinek <jakub@redhat.com>
9472
9473 * elf/dl-sym.c (do_sym): Use RTLD_SINGLE_THREAD_P.
9474 * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Likewise.
9475 * elf/dl-close.c (_dl_close_worker): Likewise.
9476 * elf/dl-open.c (_dl_open_worker): Likewise.
9477 * sysdeps/generic/sysdep-cancel.h (RTLD_SINGLE_THREAD_P): Define.
9478
b2369ca3
UD
94792006-10-27 Ulrich Drepper <drepper@redhat.com>
9480
11bf311e
UD
9481 * configure.in: Require assembler support for visibility, compiler
9482 support for visibility and aliases, linker support for various -z
9483 options.
9484 * Makeconfig: Remove conditional code which now is unnecessary.
9485 * config.h.in: Likewise.
9486 * config.make.in: Likewise.
9487 * dlfcn/Makefile: Likewise.
9488 * elf/Makefile: Likewise.
9489 * elf/dl-load.c: Likewise.
9490 * elf/rtld.c: Likewise.
9491 * include/libc-symbols.h: Likewise.
9492 * include/stdio.h: Likewise.
9493 * io/Makefile: Likewise.
9494 * io/fstat.c: Likewise.
9495 * io/fstat64.c: Likewise.
9496 * io/fstatat.c: Likewise.
9497 * io/fstatat64.c: Likewise.
9498 * io/lstat.c: Likewise.
9499 * io/lstat64.c: Likewise.
9500 * io/mknod.c: Likewise.
9501 * io/mknodat.c: Likewise.
9502 * io/stat.c: Likewise.
9503 * io/stat64.c: Likewise.
9504 * libio/stdio.c: Likewise.
9505 * nscd/Makefile: Likewise.
9506 * stdlib/Makefile: Likewise.
9507 * stdlib/atexit.c: Likewise.
9508 * sysdeps/generic/ldsodefs.h: Likewise.
9509 * sysdeps/i386/dl-machine.h: Likewise.
9510 * sysdeps/i386/sysdep.h: Likewise.
9511 * sysdeps/i386/i686/memcmp.S: Likewise.
9512 * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
9513 * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
9514 * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
9515
9516 * Makerules: USE_TLS support is now default.
9517 * tls.make.c: Likewise.
9518 * csu/Versions: Likewise.
9519 * csu/libc-start.c: Likewise.
9520 * csu/libc-tls.c: Likewise.
9521 * csu/version.c: Likewise.
9522 * dlfcn/dlinfo.c: Likewise.
9523 * elf/dl-addr.c: Likewise.
9524 * elf/dl-cache.c: Likewise.
9525 * elf/dl-close.c: Likewise.
9526 * elf/dl-iteratephdr.c: Likewise.
9527 * elf/dl-load.c: Likewise.
9528 * elf/dl-lookup.c: Likewise.
9529 * elf/dl-object.c: Likewise.
9530 * elf/dl-open.c: Likewise.
9531 * elf/dl-reloc.c: Likewise.
9532 * elf/dl-support.c: Likewise.
9533 * elf/dl-sym.c: Likewise.
9534 * elf/dl-sysdep.c: Likewise.
9535 * elf/dl-tls.c: Likewise.
9536 * elf/ldconfig.c: Likewise.
9537 * elf/rtld.c: Likewise.
9538 * elf/tst-tls-dlinfo.c: Likewise.
9539 * elf/tst-tls1.c: Likewise.
9540 * elf/tst-tls10.h: Likewise.
9541 * elf/tst-tls14.c: Likewise.
9542 * elf/tst-tls2.c: Likewise.
9543 * elf/tst-tls3.c: Likewise.
9544 * elf/tst-tls4.c: Likewise.
9545 * elf/tst-tls5.c: Likewise.
9546 * elf/tst-tls6.c: Likewise.
9547 * elf/tst-tls7.c: Likewise.
9548 * elf/tst-tls8.c: Likewise.
9549 * elf/tst-tls9.c: Likewise.
9550 * elf/tst-tlsmod1.c: Likewise.
9551 * elf/tst-tlsmod13.c: Likewise.
9552 * elf/tst-tlsmod13a.c: Likewise.
9553 * elf/tst-tlsmod14a.c: Likewise.
9554 * elf/tst-tlsmod2.c: Likewise.
9555 * elf/tst-tlsmod3.c: Likewise.
9556 * elf/tst-tlsmod4.c: Likewise.
9557 * elf/tst-tlsmod5.c: Likewise.
9558 * elf/tst-tlsmod6.c: Likewise.
9559 * include/errno.h: Likewise.
9560 * include/link.h: Likewise.
9561 * include/tls.h: Likewise.
9562 * locale/global-locale.c: Likewise.
9563 * locale/localeinfo.h: Likewise.
9564 * malloc/arena.c: Likewise.
9565 * malloc/hooks.c: Likewise.
9566 * malloc/malloc.c: Likewise.
9567 * resolv/Versions: Likewise.
9568 * sysdeps/alpha/dl-machine.h: Likewise.
9569 * sysdeps/alpha/libc-tls.c: Likewise.
9570 * sysdeps/generic/ldsodefs.h: Likewise.
9571 * sysdeps/generic/tls.h: Likewise.
9572 * sysdeps/i386/dl-machine.h: Likewise.
9573 * sysdeps/ia64/dl-machine.h: Likewise.
9574 * sysdeps/ia64/libc-tls.c: Likewise.
9575 * sysdeps/mach/hurd/fork.c: Likewise.
9576 * sysdeps/mach/hurd/i386/tls.h: Likewise.
9577 * sysdeps/powerpc/powerpc32/dl-machine.c: Likwise.
9578 * sysdeps/powerpc/powerpc32/dl-machine.h: Likewise.
9579 * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
9580 * sysdeps/s390/libc-tls.c: Likewise.
9581 * sysdeps/s390/s390-32/dl-machine.h: Likewise.
9582 * sysdeps/s390/s390-64/dl-machine.h: Likewise.
9583 * sysdeps/sh/dl-machine.h: Likewise.
9584 * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
9585 * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
9586 * sysdeps/x86_64/dl-machine.h: Likewise.
9587
131c4428
UD
9588 * elf/dl-close.c (_dl_close_worker): Renamed from _dl_close and
9589 split out locking and parameter checking.
9590 (_dl_close): Call _dl_close_worker after locking and checking.
9591 * elf/dl-open.c (_dl_open): Call _dl_close_worker instead of
9592 _dl_close.
ffd0e1b7
UD
9593 * elf/Makefile: Add rules to build and run tst-thrlock.
9594 * elf/tst-thrlock.c: New file.
131c4428 9595
11bf311e
UD
9596 [BZ #3426]
9597 * stdlib/stdlib.h: Adjust comment for canonicalize_file_name to
9598 reality.
9599
b2369ca3
UD
9600 [BZ #3429]
9601 * elf/dl-open.c (dl_open_worker): Keep holding dl_load_lock until
131c4428 9602 we are sure we do not need it anymore for _dl_close. Also move
b2369ca3
UD
9603 the asserts inside the lock region.
9604 Patch mostly by Suzuki <suzuki@in.ibm.com>.
9605
11bf311e
UD
96062006-10-27 Jakub Jelinek <jakub@redhat.com>
9607
9608 * elf/dl-lookup.c (_dl_debug_bindings): Remove unused symbol_scope
9609 argument.
9610 (_dl_lookup_symbol_x): Adjust caller.
9611
9612 * sysdeps/generic/ldsodefs.h (struct link_namespaces): Remove
9613 _ns_global_scope.
9614 * elf/rtld.c (dl_main): Don't initialize _ns_global_scope.
9615
9616 * elf/dl-libc.c: Revert l_scope name changes.
9617 * elf/dl-load.c: Likewise.
9618 * elf/dl-object.c: Likewise.
9619 * elf/rtld.c: Likewise.
9620 * elf/dl-close.c (_dl_close): Likewise.
9621 * elf/dl-open.c (dl_open_worker): Likewise. If not SINGLE_THREAD_P,
9622 always use __rtld_mrlock_{change,done}. Always free old scope list
9623 here if not l_scope_mem.
9624 * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Revert l_scope name
9625 change. Never free scope list here. Just __rtld_mrlock_lock before
9626 the lookup and __rtld_mrlock_unlock it after the lookup.
9627 * elf/dl-sym.c: Likewise.
9628 * include/link.h (struct r_scoperec): Remove.
9629 (struct link_map): Replace l_scoperec with l_scope, l_scoperec_mem
9630 with l_scope_mem and l_scoperec_lock with l_scope_lock.
9631
96322006-10-25 Ulrich Drepper <drepper@redhat.com>
9633
9634 * sysdeps/gnu/netinet/tcp.h: Define TCP_CONGESTION.
9635
96362006-10-18 Ulrich Drepper <drepper@redhat.com>
9637
9638 * configure.in: Disable building profile libraries by default.
9639
609cf614
UD
96402006-10-17 Jakub Jelinek <jakub@redhat.com>
9641
9642 * sunrpc/xdr_mem.c (xdrmem_setpos): Don't compare addresses
9643 as signed longs, check for x_base + pos overflow.
9644 * sunrpc/Makefile (tests): Add tst-xdrmem2.
9645 * sunrpc/tst-xdrmem2.c: New test.
9646
11bf311e
UD
96472006-10-18 Ulrich Drepper <drepper@redhat.com>
9648
9649 * elf/dl-lookup.c (_dl_lookup_symbol_x): Add warning to
9650 _dl_lookup_symbol_x code.
9651
96522006-10-17 Jakub Jelinek <jakub@redhat.com>
9653
9654 * elf/dl-runtime.c: Include sysdep-cancel.h.
9655 (_dl_fixup, _dl_profile_fixup): Use __rtld_mrlock_* and
9656 scoperec->nusers only if !SINGLE_THREAD_P. Use atomic_*
9657 instead of catomic_* macros.
9658 * elf/dl-sym.c: Include sysdep-cancel.h.
9659 (do_sym): Use __rtld_mrlock_* and scoperec->nusers only
9660 if !SINGLE_THREAD_P. Use atomic_* instead of catomic_* macros.
9661 * elf/dl-close.c: Include sysdep-cancel.h.
9662 (_dl_close): Use __rtld_mrlock_* and scoperec->nusers only
9663 if !SINGLE_THREAD_P. Use atomic_* instead of catomic_* macros.
9664 * elf/dl-open.c: Include sysdep-cancel.h.
9665 (dl_open_worker): Use __rtld_mrlock_* and scoperec->nusers only
9666 if !SINGLE_THREAD_P. Use atomic_* instead of catomic_* macros.
9667
96682006-10-17 Jakub Jelinek <jakub@redhat.com>
9669
9670 [BZ #3313]
9671 * malloc/malloc.c (malloc_consolidate): Set maxfb to address of last
9672 fastbin rather than end of fastbin array.
9673
96742006-10-18 Ulrich Drepper <drepper@redhat.com>
9675
9676 * sysdeps/i386/i486/bits/atomic.h (catomic_decrement): Use correct
9677 body macro.
9678 * sysdeps/x86_64/bits/atomic.h
9679 (__arch_c_compare_and_exchange_val_64_acq): Add missing casts.
9680 (catomic_decrement): Use correct body macro.
9681
96822006-10-17 Jakub Jelinek <jakub@redhat.com>
9683
9684 * include/atomic.h: Add a unique prefix to all local variables
9685 in macros.
9686 * csu/tst-atomic.c (do_test): Test also catomic_* macros.
9687
4a85a8ee
UD
96882006-10-16 Ulrich Drepper <drepper@redhat.com>
9689
9690 [BZ #3369]
9691 * sysdeps/posix/getaddrinfo.c (rfc3484_sort): Fix typos in rules 4
9692 and 7.
9693
11bf311e
UD
96942006-10-14 Ulrich Drepper <drepper@redhat.com>
9695
9696 * resolv/arpa/nameser.h: Document that ns_t_a6 is deprecated.
9697
ff8d96be
UD
96982006-10-13 Ulrich Drepper <drepper@redhat.com>
9699
11bf311e
UD
9700 [BZ #3313]
9701 * malloc/malloc.c (malloc_consolidate): Don't use get_fast_max to
9702 determine highest fast bin to consolidate, always look into all of
9703 them.
9704 (do_check_malloc_state): Only require for empty bins for large
9705 sizes in main arena.
9706
9707 * libio/stdio.h: Add more __wur attributes.
9708
ff8d96be
UD
9709 * elf/dl-minimal.c (realloc): Optimize last patch.
9710
90a0991a
UD
97112006-10-12 Richard Sandiford <richard@codesourcery.com>
9712
9713 [BZ #3352]
9714 * elf/dl-minimal.c (realloc): Let malloc() return a new pointer,
9715 and use memcpy() if it does.
ff8d96be 9716
11bf311e
UD
97172006-11-12 Andreas Jaeger <aj@suse.de>
9718
9719 [BZ #2510]
9720 * manual/search.texi (Hash Search Function): Clarify.
9721 (Array Search Function): Clarify.
9722
97232006-11-12 Joseph Myers <joseph@codesourcery.com>
9724
9725 [BZ #2830]
9726 * math/atest-exp.c (main): Cast hex value to mp_limb_t before
9727 shifting.
9728 * math/atest-exp2.c (read_mpn_hex): Likewise.
9729 * math/atest-sincos.c (main): Likewise.
9730
37fb7595
UD
97312006-10-11 Ulrich Drepper <drepper@redhat.com>
9732
11bf311e
UD
9733 * sysdeps/unix/sysv/linux/syscalls.list: Add epoll_pwait.
9734 * sysdeps/unix/sysv/linux/sys/epoll.h: Declare epoll_pwait.
9735 * sysdeps/unix/sysv/linux/Versions (libc): Add epoll_pwait for
9736 version GLIBC_2.6.
9737 * Versions.def: Add GLIBC_2.6 for libc.
9738
46c38bd7
UD
9739 * sysdeps/unix/sysv/linux/i386/sysdep.h (DOARGS_6): Fix offset.
9740
11bf311e
UD
9741 * sysdeps/i386/i486/bits/atomic.h: Add catomic_* support.
9742
97432006-10-11 Jakub Jelinek <jakub@redhat.com>
9744
9745 * malloc/malloc.c (_int_malloc): Remove unused any_larger variable.
9746
9747 * nis/nis_defaults.c (__nis_default_access): Don't call getenv twice.
9748
9749 * nis/nis_subr.c (nis_getnames): Use __secure_getenv instead of getenv.
9750 * sysdeps/generic/unsecvars.h: Add NIS_PATH.
9751
97522006-10-11 Ulrich Drepper <drepper@redhat.com>
9753
9754 * include/atomic.c: Define catomic_* operations.
9755 * sysdeps/x86_64/bits/atomic.h: Likewise. Fix a few minor problems.
9756 * stdlib/cxa_finalize.c: Use catomic_* operations instead of atomic_*.
9757 * malloc/memusage.c: Likewise.
9758 * gmon/mcount.c: Likewise.
9759 * elf/dl-close.c: Likewise.
9760 * elf/dl-open.c: Likewise.
9761 * elf/dl-profile.c: Likewise.
9762 * elf/dl-sym.c: Likewise.
9763 * elf/dl-runtime.c: Likewise.
9764 * elf/dl-fptr.c: Likewise.
9765 * resolv/res_libc.c: Likewise.
9766
2a6ee549
UD
97672006-10-10 Ulrich Drepper <drepper@redhat.com>
9768
9769 * nis/nis_subr.c (nis_getnames): Add trailing dot to NIS_PATH
9770 components which lack them.
9771
9772 * nis/nis_subr.c (nis_getnames): Make sure that we always return
9773 at least one entry consisting of the parameter concatenated with
9774 the domain.
9775
11bf311e 97762006-10-10 Roland McGrath <roland@frob.com>
c4f9fc3a 9777
11bf311e
UD
9778 * sysdeps/mach/hurd/utimes.c: Use a union to avoid an improper cast.
9779 * sysdeps/mach/hurd/futimes.c: Likewise.
9780 * sysdeps/mach/hurd/lutimes.c: Likewise.
9781
97822006-10-09 Ulrich Drepper <drepper@redhat.com>
9783 Jakub Jelinek <jakub@redhat.com>
9784
9785 Implement reference counting of scope records.
9786 * elf/dl-close.c (_dl_close): Remove all scopes from removed objects
9787 from the list in objects which remain. Always allocate new scope
9788 record.
9789 * elf/dl-open.c (dl_open_worker): When growing array for scopes,
9790 don't resize, allocate a new one.
9791 * elf/dl-runtime.c: Update reference counters before using a scope
9792 array.
9793 * elf/dl-sym.c: Likewise.
9794 * elf/dl-libc.c: Adjust for l_scope name change.
9795 * elf/dl-load.c: Likewise.
9796 * elf/dl-object.c: Likewise.
9797 * elf/rtld.c: Likewise.
9798 * include/link.h: Include <rtld-lowlevel.h>. Define struct
9799 r_scoperec. Replace r_scope with pointer to r_scoperec structure.
9800 Add l_scoperec_lock.
9801 * sysdeps/generic/ldsodefs.h: Include <rtld-lowlevel.h>.
9802 * sysdeps/generic/rtld-lowlevel.h: New file.
9803
9804 * include/atomic.h: Rename atomic_and to atomic_and_val and
9805 atomic_or to atomic_or_val. Define new macros atomic_and and
9806 atomic_or which do not return values.
9807 * sysdeps/x86_64/bits/atomic.h: Define atomic_and and atomic_or.
9808 Various cleanups.
9809 * sysdeps/i386/i486/bits/atomic.h: Likewise.
9810
9811 * po/sv.po: Update from translation team.
9812
98132006-10-07 Ulrich Drepper <drepper@redhat.com>
9814
9815 * Versions.def: Add GLIBC_2.6 to libpthread.
9816
9817 * include/shlib-compat.h (SHLIB_COMPAT): Expand parameters before use.
9818 (versioned_symbol): Likewise.
9819 (compat_symbol): Likewise.
9820
9821 * po/tr.po: Update from translation team.
feb87ad1 9822
4df92d57
UD
98232006-10-06 Ulrich Drepper <drepper@redhat.com>
9824
11bf311e
UD
9825 * nis/Banner: Removed. It's been integral part forever and the
9826 author info is incomplete anyway.
9827 * libio/Banner: Likewise.
9828
4df92d57
UD
9829 * nis/nis_table.c (nis_list): If __follow_path fails in the new
9830 code, make sure the nis_freeresult call doesn't crash and that the
9831 result is reported correctly.
9832
68361572
UD
98332006-09-27 Jakub Jelinek <jakub@redhat.com>
9834
9835 * nis/nis_table.c (nis_list): Handle FOLLOW_PATH | ALL_RESULTS
9836 when callback is NULL.
9837
9838 * nis/Versions (libnss_nisplus): Add
9839 _nss_nisplus_initgroups_dyn@@GLIBC_PRIVATE.
9840 * nis/Makefile (libnss_nisplus-routines): Add nisplus-initgroups.
9841 * nis/nss_nisplus/nisplus-grp.c (tablename_val, tablename_len,
9842 _nss_create_tablename): Rename to...
9843 (grp_tablename_val, grp_tablename_len, _nss_grp_create_tablename):
9844 ... these. No longer static.
9845 (internal_setgrent): Adjust users.
9846 (_nss_nisplus_getgrnam_r, _nss_nisplus_getgrgid_r): Likewise.
9847 Don't use locking around _nss_grp_create_tablename call.
9848 * nis/nss_nisplus/nisplus-initgroups.c: New file.
9849
11bf311e
UD
98502006-10-06 Ulrich Drepper <drepper@redhat.com>
9851
9852 * version.h (VERSION): Bump to 2.5.90 for new development tree.
9853
3a4e0609
UD
98542006-10-06 Andreas Jaeger <aj@suse.de>
9855
9856 * include/features.h (__GLIBC_MINOR__): It's glibc 2.5 now.
9857
98582006-10-06 Ulrich Drepper <drepper@redhat.com>
9859
9860 * po/pl.po: Update from translation team.
9861
9862 * nscd/nscd.c (main): Fix typo in message.
9863 Patch by Jakub Bogsz <qboosh@pld-linux.org>.
9864
97e57dee
UD
98652006-10-02 Jakub Jelinek <jakub@redhat.com>
9866
9867 [BZ #3291]
9868 * sysdeps/unix/sysv/linux/sparc/sparc64/pause.c: Include
9869 errno.h, signal.h, unistd.h and sysdep-cancel.h.
9870 (__sigprocmask): Define.
9871
768027a4
UD
98722006-10-02 Ulrich Drepper <drepper@redhat.com>
9873
9874 * elf/rtld.c (dl_main): Don't use prelinking if LD_DYNAMIC_WEAK is
9875 used.
9876
0b25a49a
UD
98772006-10-02 Jakub Jelinek <jakub@redhat.com>
9878
9879 * nscd/mem.c (mempool_alloc): Round array size to 16 bytes
9880 in oldtotal and newtotal calculation.
9881 * nscd/nscd-client.h (struct mapped_database): Add datasize
9882 field.
9883 * nscd/nscd_helper.c (get_mapping): Initialize datasize field.
9884 (__nscd_get_map_ref): Get a new mapping even if mapping's data_size
9885 increased.
9886 (__nscd_cache_search): Add checks to make sure we never reference
9887 data beyond the current mapping.
9888
a1286745
UD
98892006-10-02 Dmitry V. Levin <ldv@altlinux.org>
9890
d4ed7561
UD
9891 * sysdeps/posix/getaddrinfo.c (match_prefix): Make mask and val
9892 variables const to avoid compiler warnings.
9893
a1286745
UD
9894 * io/fts.c (fts_close): Remove redundant checks.
9895 (fts_build): Likewise.
9896 (fts_palloc): Likewise.
9897
9898 * manual/message.texi (Advanced gettext functions,
9899 Using gettextized software): Fix typos.
9900
f01e4069
UD
99012006-09-30 Ulrich Drepper <drepper@redhat.com>
9902
9903 * posix/glob.c (glob_in_dir): Add some comments and asserts to
9904 explain why there are no leaks.
9905
154619b5
UD
99062006-09-29 Ulrich Drepper <drepper@redhat.com>
9907
690c3947
UD
9908 * libio/wmemstream.c: Include <wchar.h>.
9909 * libio/bug-wmemstream1.c: Likewise.
9910 * libio/tst-wmemstream1.c: Likewise.
9911 * libio/tst-wmemstream2.c: Likewise.
9912
88cc61e8
UD
9913 * version.h (RELEASE): Bump to 2.5.
9914 * README: Regenerated.
9915
a70c18b0
UD
9916 * locale/iso-3166.def: Add Aaland Islands and Montenegro.
9917
154619b5
UD
9918 [BZ #3273]
9919 * nscd/nscd_initgroups.c (__nscd_getgrouplist): It is OK to have
9920 found no group members.
9921 Patch by Petr Baudis.
9922
99232006-09-29 Jakub Jelinek <jakub@redhat.com>
9924
9925 * elf/rtld.c (_dl_start_final): If not USE___THREAD, don't
9926 assert bootstrap_map.l_tls_modid is zero.
9927 (_dl_start): Initialize bootstrap_map.l_tls_modid to 0
9928 if USE___THREAD.
9929
1c31aa79
UD
99302006-09-27 Ulrich Drepper <drepper@redhat.com>
9931
9932 * libio/stdio.h: Move open_wmemstream prototype to ...
9933 * wcsmbs/wchar.h: ... here.
9934
f1122ec3
UD
99352006-09-25 Jakub Jelinek <jakub@redhat.com>
9936
9937 [BZ #3252]
9938 * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat): Handle only
9939 fchownat syscall and __ASSUME_LCHOWN_SYSCALL case inline, call
9940 __{,l}chown to handle the rest.
9941 * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Handle only
9942 fchownat syscall and __ASSUME_32BITUIDS case inline, call
9943 __{,l}chown to handle the rest.
9944 * sysdeps/unix/sysv/linux/sparc/sparc32/fchownat.c: Include
9945 i386/fchownat.c.
9946 * sysdeps/unix/sysv/linux/s390/s390-32/fchownat.c: Likewise.
9947 * sysdeps/unix/sysv/linux/sh/fchownat.c: Likewise.
9948
9949 [BZ #3253]
9950 * posix/glob.c (glob_in_dir): Don't alloca one struct globlink at a
9951 time, rather allocate increasingly bigger arrays of pointers, if
9952 possible with alloca, if too large with malloc.
9953
99542006-09-24 Jakub Jelinek <jakub@redhat.com>
9955
9956 * sysdeps/powerpc/fpu/libm-test-ulps: Updated.
9957
9958 * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Fix 2 typos.
9959
457b559e
UD
99602006-09-24 Ulrich Drepper <drepper@redhat.com>
9961
9962 * sysdeps/posix/getaddrinfo.c (rfc3484_sort): Implement rule 4,
9963 home addresses.
9964 * sysdeps/unix/sysv/linux/check_pf.c (make_request): Recognize
9965 IFA_F_HOMEADDRESS flag for interfaces.
9966 * include/ifaddrs.h (struct in6addrinfo): Define
9967 in6ai_homeaddress.
9968
4a132246
UD
99692006-09-21 Jakub Jelinek <jakub@redhat.com>
9970
9971 [BZ #3225]
9972 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h (PTR_MANGLE3,
9973 PTR_DEMANGLE3): Define.
9974 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h (PTR_MANGLE3,
9975 PTR_DEMANGLE3): Likewise.
9976 * sysdeps/powerpc/powerpc32/__longjmp-common.S (__longjmp): Use them.
9977 * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S (__longjmp):
9978 Likewise.
9979 * sysdeps/powerpc/powerpc64/__longjmp-common.S (__longjmp): Likewise.
9980
c69136ae
UD
99812006-09-20 Jakub Jelinek <jakub@redhat.com>
9982
9983 * po/libc.pot: Regenerated.
9984 * po/be.po: Updated.
9985 * po/ca.po: Likewise.
9986 * po/cs.po: Likewise.
9987 * po/da.po: Likewise.
9988 * po/de.po: Likewise.
9989 * po/el.po: Likewise.
9990 * po/en_GB.po: Likewise.
9991 * po/es.po: Likewise.
9992 * po/fi.po: Likewise.
9993 * po/fr.po: Likewise.
9994 * po/gl.po: Likewise.
9995 * po/hr.po: Likewise.
9996 * po/hu.po: Likewise.
9997 * po/ja.po: Likewise.
9998 * po/ko.po: Likewise.
9999 * po/nb.po: Likewise.
10000 * po/nl.po: Likewise.
10001 * po/pl.po: Likewise.
10002 * po/pt_BR.po: Likewise.
10003 * po/ru.po: Likewise.
10004 * po/rw.po: Likewise.
10005 * po/sk.po: Likewise.
10006 * po/sv.po: Likewise.
10007 * po/tr.po: Likewise.
10008 * po/zh_CN.po: Likewise.
10009 * po/zh_TW.po: Likewise.
10010
10011 [BZ #3137]
10012 * iconv/iconv_prog.c (main): Fix spelling in error message.
10013 * iconv/iconvconfig.c (main): Likewise.
10014 * locale/programs/ld-collate.c (handle_ellipsis): Likewise.
10015 * locale/programs/ld-ctype.c (charclass_symbolic_ellipsis): Likewise.
10016 * locale/programs/localedef.c (main): Likewise.
10017 * locale/programs/repertoire.c (repertoire_read): Likewise.
10018 * timezone/zdump.c (main): Likewise.
10019 * nscd/connections.c (handle_request): Fix spelling in log message.
10020 Patch by Malcolm Parsons <malcolm.parsons@gmail.com>.
10021
83b3108c
UD
100222006-09-20 Ulrich Drepper <drepper@redhat.com>
10023
10024 * inet/inet6_option.c: Also emit linker warnings for the RFC 2292
10025 interfaces.
10026
89210b4c
AJ
100272006-09-20 Andreas Jaeger <aj@suse.de>
10028
10029 * math/libm-test.inc (lrint_test_upward): Fix typo.
10030
6624dbc0
UD
100312006-06-17 Joseph S. Myers <joseph@codesourcery.com>
10032
10033 [BZ #2592]
10034 * math/libm-test.inc (lrint_test_tonearest): New function.
10035 (lrint_test_towardzero): New function.
10036 (lrint_test_downward): New function.
10037 (lrint_test_upward): New function.
10038 (main): Run these new tests.
10039 * sysdeps/ieee754/dbl-64/s_llrint.c (__llrint): Correct rounding
10040 of values near to 0.
10041 (two52): Use double not long double.
10042 * sysdeps/ieee754/dbl-64/s_lrint.c (__lrint): Likewise.
10043 * sysdeps/ieee754/flt-32/s_llrintf.c (__llrintf): Likewise.
10044 (two23): Use float not double.
10045 * sysdeps/ieee754/flt-32/s_lrintf.c (__lrintf): Likewise.
10046 (two23): Use float not double.
10047 * sysdeps/ieee754/ldbl-128/s_llrintl.c (__llrintl): Likewise.
10048 * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Likewise.
10049 * sysdeps/ieee754/ldbl-96/s_llrintl.c (__llrintl): Likewise.
10050 * sysdeps/ieee754/ldbl-96/s_lrintl.c (__lrintl): Likewise.
10051
60cb50c7
UD
100522006-09-20 Martin Schwidefsky <schwidefsky@de.ibm.com>
10053
10054 * sysdeps/unix/sysv/linux/s390/s390-32/makecontext.c (__makecontext):
10055 Cast sp to unsigned long to avoid compiler warning.
10056 Use __makecontext_ret function instead of a trampoline on the stack.
10057 (__makecontext_ret): New function.
10058 * sysdeps/unix/sysv/linux/s390/s390-64/makecontext.c: Likewise.
10059
33315ced
UD
100602006-09-19 Jakub Jelinek <jakub@redhat.com>
10061
10062 * elf/dl-cache.c (HWCAP_CHECK): If _DL_PLATFORMS_COUNT, but
10063 platform == -1, reject any libs with non-zero _DL_HWCAP_PLATFORM
10064 bits.
10065
1ee2ff20
UD
100662006-09-19 Ulrich Drepper <drepper@redhat.com>
10067
10068 * elf/dl-close.c (_dl_close): If dependency is not unloaded make
10069 sure no reference to the unloaded map's search list remains in the
10070 dependency's scope.
10071
100722006-09-16 Jakub Jelinek <jakub@redhat.com>
10073
10074 * elf/Makefile: Add rules to build and run unload7 test.
10075 * elf/unload7.c: New test.
10076 * elf/unload7mod1.c: New file.
10077 * elf/unload7mod2.c: New file.
10078
0466106e
UD
100792006-09-18 Jakub Jelinek <jakub@redhat.com>
10080
10081 * sysdeps/unix/sysv/linux/sys/ptrace.h (PT_GETEVENTMSG): Fix pasto.
10082 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h (PTRACE_SETOPTIONS,
10083 PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
10084 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h (PTRACE_SETOPTIONS,
10085 PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Likewise.
10086 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h (PTRACE_SETOPTIONS,
10087 PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Likewise.
10088 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h (PTRACE_SETOPTIONS,
10089 PTRACE_GETEVENTMSG): Likewise.
10090 (PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Change to the arch independent
10091 values.
10092
9c316a45
UD
100932006-09-17 Mike Frysinger <vapier@gentoo.org>
10094
0466106e
UD
10095 * sysdeps/unix/sysv/linux/sys/ptrace.h (PTRACE_SETOPTIONS,
10096 PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
10097 * sysdeps/unix/sysv/linux/ptrace.c (ptrace): Check PTRACE_SETOPTIONS,
10098 PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO and PTRACE_SETSIGINFO.
9c316a45
UD
10099
101002006-09-16 Jakub Jelinek <jakub@redhat.com>
10101
10102 * sysdeps/powerpc/powerpc32/register-dump.h (register_dump): Don't
10103 write '\0' to the fd.
10104 * sysdeps/mach/hurd/powerpc/register-dump.h (register_dump): Likewise.
10105 * sysdeps/powerpc/powerpc64/register-dump.h (register_dump): Likewise.
10106 Change regs to unsigned long pointer from unsigned int, fix fscr
10107 offset.
10108
fb146a76
UD
101092006-09-14 Jakub Jelinek <jakub@redhat.com>
10110
10111 * io/Makefile (CFLAGS-fstatat.c): Set.
10112 (CFLAGS-fstatat64.c): Likewise.
10113 (CFLAGS-mknodat.c): Likewise.
10114
10115 * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Comment fixes.
10116 * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
10117 * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Rewritten.
10118 * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Rewritten.
10119
4cd3633d
UD
101202006-09-14 Jakub Jelinek <jakub@redhat.com>
10121 Steven Munroe <sjmunroe@us.ibm.com>
fb146a76 10122
4cd3633d
UD
10123 * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Add 4 new cap
10124 names to the beginning. Rename "cell" to "cellbe".
10125 (_dl_powerpc_platforms): New.
10126 * sysdeps/powerpc/dl-procinfo.h (_DL_HWCAP_FIRST): Decrease.
10127 (HWCAP_IMPORTANT): Remove power{4,5,5+} and cell.
10128 (_DL_PLATFORMS_COUNT, _DL_FIRST_PLATFORM): Define.
10129 (_DL_HWCAP_PLATFORM): Define to new mask.
10130 (_dl_platform_string, _dl_string_platform): New functions.
10131 * sysdeps/powerpc/sysdep.h (PPC_FEATURE_BOOKE, PPC_FEATURE_SMT,
10132 PPC_FEATURE_ICACHE_SNOOP, PPC_FEATURE_ARCH_2_05): Define.
10133
30aa5785
UD
101342006-09-12 Jakub Jelinek <jakub@redhat.com>
10135
10136 [BZ #2526]
10137 * README.libm: Fix a thinko in sqrt algorithm description.
10138
10139 [BZ #3143]
10140 * manual/string.texi (argz_delete): Fix prototype.
10141 Patch by <alpt@freaknet.org>.
10142
101432006-08-26 Joseph Myers <joseph@codesourcery.com>
10144
10145 [BZ #3138]
10146 * io/test-lfs.c (do_prepare): Give name_len type size_t.
10147 * io/tst-fcntl.c (do_prepare): Likewise.
10148 * posix/tst-exec.c (do_prepare): Likewise.
10149 * posix/tst-preadwrite.c (do_prepare): Likewise.
10150 * posix/tst-spawn.c (do_prepare): Likewise.
10151 * posix/tst-truncate.c (do_prepare): Likewise.
10152 * rt/tst-aio.c (do_prepare): Likewise.
10153 * rt/tst-aio64.c (do_prepare): Likewise.
10154 * stdlib/test-canon2.c (do_prepare): Give test_dir_len type
10155 size_t.
10156
d26d01d1
UD
101572006-09-09 Ulrich Drepper <drepper@redhat.com>
10158
41aba3d7
UD
10159 [BZ #2821]
10160 * time/mktime.c (guess_time_tm): Fix overflow detection.
10161 * time/Makefile (tests): Add bug-mktime1.
10162 * time/bug-mktime1.c: New file.
10163
eaa51b47 10164 [BZ #3189, #3188]
d26d01d1 10165 * misc/sys/mman.h (remap_file_pages): Make available for _GNU_SOURCE.
eaa51b47 10166 (mremap): Likewise.
d26d01d1 10167
ba40cc15
UD
101682006-09-07 Jakub Jelinek <jakub@redhat.com>
10169
2b6a801e
UD
10170 [BZ #1006]
10171 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela):
10172 Ensure relocation doesn't clobber any bits outside of the
10173 immediate field for R_SPARC_TLS_LE_HIX22, R_SPARC_WDISP30,
10174 R_SPARC_HI22 and R_SPARC_H44.
10175
469615bd
UD
10176 [BZ #2775]
10177 * malloc/malloc.c (sYSMALLOc): Only call grow_heap if
10178 (long) (MINSIZE + nb - old_size) is positive.
10179
10180 * malloc/arena.c (grow_heap): When growing bail even if new_size
10181 is negative.
10182
ba40cc15
UD
10183 [BZ #3155]
10184 * sysdeps/powerpc/powerpc32/fpu/s_lrint.S (__lrint): Don't access
10185 stack below r1.
10186
243b9ac1
UD
101872006-09-06 Jakub Jelinek <jakub@redhat.com>
10188
ba40cc15
UD
10189 * posix/regex_internal.c (re_string_reconstruct): Handle
10190 offset < pstr->valid_raw_len && pstr->offsets_needed case.
10191 Ensure no bytes read before raw_mbs array. Pass a saved copy of
10192 pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
10193 re_string_context_at.
10194 * posix/Makefile: Add rules to build and run bug-regex26 test.
10195 * posix/bug-regex26.c: New test.
10196
243b9ac1
UD
10197 * locale/programs/ld-collate.c (collate_read): Goto sym_equiv_free
10198 rather than col_sym_free. Move seqp declaration earlier.
10199
10200 * resolv/gai_suspend.c (gai_suspend): Make sure result is initialized.
10201
d052233c
UD
102022006-09-05 Jakub Jelinek <jakub@redhat.com>
10203
10204 * nscd/initgrcache.c (addinitgroupsX): Move any_success
10205 decl before first goto out.
10206
71213dc2
UD
102072006-09-04 Jakub Jelinek <jakub@redhat.com>
10208
10209 * Makerules (shlib.lds): If have-hash-style, put .hash section
10210 at the end of the RO segment.
10211
102122006-09-04 Ulrich Drepper <drepper@redhat.com>
10213
10214 * elf/do-lookup.h (do_lookup_x): Initialize symidx in case the new
10215 style hash table format is used.
10216
03eeff83
UD
102172006-09-04 Jakub Jelinek <jakub@redhat.com>
10218
10219 * resolv/res_mkquery.c (res_nmkquery): Set hp->id to statp->id after
10220 randomization rather than before.
10221 * resolv/res_init.c (res_randomid): Don't call gettimeofday here.
10222
b80770b2
UD
102232006-08-31 Jakub Jelinek <jakub@redhat.com>
10224
ba40cc15 10225 * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Add ld.so.
b80770b2
UD
10226
10227 * malloc/malloc.c (_int_malloc): Use full list insert and not
10228 shortcut which assumes the list is empty for large requests
10229 too.
10230
10231 * elf/tst-addr1.c (do_test): Allow i.dli_sname "_IO_printf".
10232
99ea5991
UD
102332006-08-30 Jakub Jelinek <jakub@redhat.com>
10234
10235 * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h (splice): Add offin
10236 and offout arguments to the prototype.
10237 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (splice): Likewise.
10238 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h (splice): Likewise.
10239 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (splice): Likewise.
10240 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h (splice): Likewise.
10241 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h (splice): Likewise.
10242 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h (splice): Likewise.
10243 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h (splice): Likewise.
10244 * sysdeps/unix/sysv/linux/syscalls.list (splice): Adjust args string.
10245
4004a0a5
UD
102462006-08-28 Ulrich Drepper <drepper@redhat.com>
10247
950398e1
UD
10248 * elf/dl-load.c (_dl_init_paths): Expand DSTs.
10249
4004a0a5
UD
10250 * elf/dl-open.c (dl_open_worker): Allow $LIB and $PLATFORM in
10251 dlopen parameters.
10252
6e310111
UD
102532006-08-28 Jakub Jelinek <jakub@redhat.com>
10254
10255 * inet/getnameinfo.c (getnameinfo): For AF_INET, check errno
10256 only if herrno is NETDB_INTERNAL. Handle errors other than
10257 ERANGE outside of the loops, handle TRY_AGAIN.
10258
10259 * locale/programs/ld-ctype.c (translit_flatten): Issue error
10260 if other's ctype category was missing.
10261 * locale/programs/ld-collate.c (collate_read): Return if
10262 copy_locale's collate category is missing.
10263
07014fca
UD
102642006-08-27 Ulrich Drepper <drepper@redhat.com>
10265
10266 [BZ #2684]
10267 * malloc/malloc.c (public_rEALLOc): Try harder by using other
10268 arenas if allocation failed.
10269 Patch mostly by Jan Edler <jan.edler@indexengines.com>.
10270
71663747
UD
102712006-08-26 Ulrich Drepper <drepper@redhat.com>
10272
41999a1a
UD
10273 * malloc/malloc.c (bin_at): Rewrite to be more clear and to not
10274 waste bins[0..1].
10275 (malloc_state): Reduce bins size by 2.
10276 (_int_malloc): Fix test for large enough buffer for early termination.
10277 When no unsorted block matches perfectly and an exiting block has
10278 to be split, use full list insert and not shortcut which assumes
10279 the list is empty.
10280
71663747
UD
10281 * locale/programs/ld-ctype.c (ctype_read): Better patch for read
10282 failure.
10283
93b53ca2
UD
102842006-08-24 Ulrich Drepper <drepper@redhat.com>
10285
f5a82772
UD
10286 * locale/programs/ld-ctype.c (ctype_read): If CTYPE is NULL, don't
10287 do anything.
10288
2ac9ca73
UD
10289 * sysdeps/generic/ldsodefs.h (DL_ADDR_SYM_MATCH): For undefined
10290 symbol require exact match (these are PLTs).
10291 * sysdeps/unix/sysv/linux/powerpc/powerpc64/ldsodefs.h
10292 (_dl_ppc64_addr_sym_match): Likewise.
10293
93b53ca2
UD
10294 [BZ #2683]
10295 * elf/dl-addr.c (_dl_addr): Don't ignore all undefined symbols.
10296 If symbol has a value use it.
10297 * elf/tst-dladdr1.c: New file.
10298 * elf/Makefile: Add rules to build and run tst-addr1.
10299
7463d5cb
UD
103002006-08-24 Jakub Jelinek <jakub@redhat.com>
10301
10302 * malloc/malloc.c (sYSMALLOc): Avoid infinite loop if MMAP
10303 keeps failing and heap growth or new heap creation isn't
10304 successful either.
10305 * malloc/tst-malloc.c (main): Add new tests.
10306
542a6f62
UD
103072006-08-24 Ulrich Drepper <drepper@redhat.com>
10308
10309 [BZ #2734]
10310 * sysdeps/i386/bits/byteswap.h (__bswap_32): Use same conditions
10311 as in the x86-64 code to use bswap.
10312
aa2c6b6d
UD
103132006-05-21 Joseph S. Myers <joseph@codesourcery.com>
10314
24982798 10315 [BZ #2680]
aa2c6b6d
UD
10316 * posix/unistd.h (getlogin_r): Condition on __USE_POSIX199506, not
10317 __USE_UNIX98.
10318 * posix/bits/unistd.h: Likewise.
10319
59776aef
UD
103202006-05-15 Mike Frysinger <vapier@gentoo.org>
10321
10322 [BZ #2751]
10323 * string/strchr.c: Add cast to avoid warning.
10324
e404fb16
UD
103252006-08-21 Ulrich Drepper <drepper@redhat.com>
10326
10327 * malloc/malloc.c (DEFAULT_MMAP_THRESHOLD_MAX): For 32-bit
bd2c2341 10328 platforms define as 512K. For 64-bit platforms as 32MB. The lower
e404fb16
UD
10329 limit is needed to avoid the exploding of the address space
10330 requirement for secondary heaps.
10331 * malloc/arena.c (HEAP_MAX_SIZE): Define using
10332 DEFAULT_MMAP_THRESHOLD_MAX if it is defined.
10333
376e973a
UD
103342006-07-30 Joseph S. Myers <joseph@codesourcery.com>
10335
10336 [BZ #3018]
10337 * Makerules (depfiles): Handle extra-test-objs the same as
10338 extra-objs.
10339 (common-mostlyclean): Likewise.
10340 * dlfcn/Makefile (extra-objs): Add modules to extra-test-objs
10341 instead.
10342 * elf/Makefile (extra-objs): Likewise.
10343 * stdlib/Makefile (extra-objs): Likewise.
10344
240c62a7
UD
103452006-08-14 Eric Blake <ebb9@byu.net>
10346
10347 [BZ #3044]
10348 * misc/error.h: Assume C89 or better.
10349 * misc/error.c: Likewise.
10350
3997b7c4
UD
103512006-08-21 Ulrich Drepper <drepper@redhat.com>
10352
10353 [BZ #3040]
10354 * sysdeps/unix/sysv/linux/openat.c: Fix compilation if
10355 __ASSUME_ATFCTS is defined.
10356
8a6537b0
UD
103572006-08-19 Ulrich Drepper <drepper@redhat.com>
10358
72320021
UD
10359 * malloc/malloc.c (_int_malloc): Limit number of unsorted blocks
10360 to sort in each call.
10361
ed3691ba
UD
10362 * nis/nss_nis/nis-service.c (internal_nis_getservent_r): . If map
10363 is empty simply return and use next service.
10364 * nis/nss_nis/nis-rpc.c (internal_nis_getrpcent_r): Likewise.
10365
8a6537b0
UD
10366 * locale/programs/charmap.c (charmap_read): Add new parameter. It
10367 tells us when not finding a charmap file is an error.
10368 * locale/programs/charmap.h: Adjust charmap_read prototype.
10369 * iconv/iconv_prog.c (main): Tell charmap_read it's no error if we
10370 cannot find a charmap.
10371 * locale/programs/localedef.c (main): Adjust charmap_read call.
10372
ad2a3c07
UD
103732006-08-15 Jakub Jelinek <jakub@redhat.com>
10374
10375 * sysdeps/unix/sysv/linux/sparc/sparc64/pause.c: Use
10376 sysdeps/posix/pause.c implementation instead.
10377
103782006-08-09 Jakub Jelinek <jakub@redhat.com>
10379
10380 * sysdeps/unix/nice.c (nice): Transform EACCES errno from setpriority
10381 to EPERM.
10382
f17efcb4
UD
103832006-08-13 Andreas Schwab <schwab@suse.de>
10384
10385 * sysdeps/powerpc/powerpc32/dl-trampoline.S (_dl_runtime_resolve):
10386 Don't clobber caller's LRSAVE.
10387 (_dl_prof_resolve): Likewise.
10388
107b8a92
UD
103892006-08-14 Ulrich Drepper <drepper@redhat.com>
10390
10391 [BZ #1996]
10392 * libio/memstream.c (open_memstream): Allocate initial buffer with
10393 calloc.
10394 * libio/wmemstream.c (open_wmemstream): Likewise.
10395 * libio/strops.c: Pretty printing.
10396 (_IO_str_overflow): Clear uninitialized part of the new buffer.
10397 (enlarge_userbuf): New function.
10398 (_IO_str_seekoff): Call it if seek position is larger than current
10399 buffer.
10400 * libio/wstrops.c: Likewise.
10401 * libio/vasprintf.c: Add comment as to why we do not have to use
10402 calloc instead of malloc to allocate initial buffer.
10403 * libio/Makefile (tests): Add bug-memstream1 and bug-wmemstream1.
10404 * libio/bug-memstream1.c: New file.
10405 * libio/bug-wmemstream1.c: New file.
10406
fa3ac53f
UD
104072006-08-13 Ulrich Drepper <drepper@redhat.com>
10408
89993734
UD
10409 * libio/wstrops.c: Remove dead macro definitions and comments.
10410 * libio/strops.c: Likewise.
10411
fa3ac53f
UD
10412 [BZ #2764]
10413 * login/utmpname.c (__utmpname): Remove unnecessary test.
10414
f99ed760
UD
104152006-06-08 Joseph Myers <jsm28@gcc.gnu.org>
10416
10417 [BZ #2832]
10418 * math/gen-libm-test.pl (clean_up_number): Do not remove trailing
10419 0s from integers.
10420
104212006-08-13 Ulrich Drepper <drepper@redhat.com>
10422
10423 [BZ #2987]
10424 * sysdeps/unix/sysv/linux/clock_settime.c: Add code to use syscall
10425 for CPU clocks.
10426 * sysdeps/unix/clock_settime.c: Add support for platform-specific
10427 setting of CPU clocks.
10428
4c3f81d0
UD
104292006-06-23 Paul Eggert <eggert@cs.ucla.edu>
10430
10431 [BZ #2841]
10432 * sysdeps/generic/stdint.h (UINT8_C, UINT16_C): Don't append 'U',
10433 since C99 requires the result to promote to 'int' when uint_least8_t
10434 and uint_least16_t promote to 'int'.
10435
cd8e60ce
UD
104362006-08-12 Ulrich Drepper <drepper@redhat.com>
10437
9a5c46e8
UD
10438 [BZ #3013]
10439 * locale/programs/ld-ctype.c (ctype_output): Adjust alignments, fix
10440 lenght of one output field, correct bitmask creation.
10441 * locale/programs/ld-time.c: Add alignment.
10442
cd8e60ce
UD
10443 [BZ #2997]
10444 * misc/error.c: Add space between program name and message if file
10445 name is missing.
10446
9a528884
UD
104472006-08-03 Eric Blake <ebb9@byu.net>
10448
10449 [BZ #2998]
10450 * misc/error.c (error_tail) [_LIBC]: Avoid invalid free.
10451
1d05c2fb
UD
104522006-08-09 Ulrich Drepper <drepper@redhat.com>
10453
0c1c6c6c
UD
10454 * malloc/memusagestat.c: Silence warnings.
10455
1d05c2fb
UD
10456 * malloc/malloc.c: Dynamically size mmap treshold if the program
10457 frees mmaped blocks.
10458 Patch by Valerie Henson and Arjan van de Ven.
10459
2d1e6277
UD
104602006-08-08 Jakub Jelinek <jakub@redhat.com>
10461
be7ffd91
UD
10462 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h (O_DIRECT): Protect with
10463 __USE_GNU.
10464
2d1e6277
UD
10465 * stdlib/strtol_l.c (__strtol_ul_max_tab, __strtol_ul_rem_tab,
10466 __strtol_ull_max_tab, __strtol_ull_rem_tab): Declare.
10467 (DEF): Don't put the var into .gnu.linkonce.r.* section.
10468 Only provide var definitions in strtol_l (or for *ull*
10469 in strtoll_l).
10470
10471 * stdio-common/bug16.c (tests): New array.
10472 (do_tests): Allow the first hexadecimal digit
10473 to be 1, 2, 4 or 8. Do 3 additional tests.
10474
10475 * sysdeps/s390/fpu/libm-test-ulps: Update.
10476
10477 * sysdeps/unix/sysv/linux/s390/s390-32/fchownat.c (fchownat): Use
10478 fchownat syscall if available.
10479 * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat): Likewise.
10480 * sysdeps/unix/sysv/linux/sh/fchownat.c (fchownat): Likewise.
10481 * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Likewise.
10482
d0ccde25
UD
104832006-08-07 Ulrich Drepper <drepper@redhat.com>
10484
10485 * nis/nis_xdr.c: Avoid some function calls.
10486
13a0293d 104872006-08-07 Jakub Jelinek <jakub@redhat.com>
3f7a21a9 10488 Ulrich Drepper <drepper@redhat.com>
13a0293d
UD
10489
10490 * nis/nis_call.c (rec_dirsearch) [case LOWER_NAME]: Don't take
10491 short cut if only one name component is stripped away.
10492
bd1ebae0
UD
104932006-08-07 Ulrich Drepper <drepper@redhat.com>
10494
10495 * nis/nis_call.c: Minor cleanups throughout.
2d1e6277 10496 (rec_dirsearch) [case HIGHER_NAME]: Correctly size ndomain array.
bd1ebae0
UD
10497 (first_shoot): Add search_parent_first parameter. Only if it is set
10498 search parent server first.
10499 If directory for table found through cold start cache is not the same
10500 as referenced in the cache, don't use it.
10501 (__nisfind_server): Take additional parameter. Pass it on to
10502 first_shoot.
10503 (__prepare_niscall): Adjust __nisfind_server call.
10504 * nis/rpcsvc/nislib.h: Adjust __nisfind_server prototype.
10505 * nis/nis_table.c: Adjust __nisfind_server call.
10506 * nis/nis_lookup.c: Likewise.
10507 (nis_lookup): Don't loop endlessly if name is reduced to ".".
10508
f1762c0c
UD
105092006-08-03 Ulrich Drepper <drepper@redhat.com>
10510
fe710250
UD
10511 [BZ #2182]
10512 * math/s_cacosh.c: Return values from positive branch.
10513 * math/s_cacoshf.c: Likewise.
10514 * math/s_cacoshl.c: Likewise.
10515
a5852807
UD
10516 [BZ #2883]
10517 * sysvipc/sys/msg.h: Change return value to ssize_t.
10518 * sysdeps/unix/sysv/linux/msgrcv.c: Likewise.
fe710250
UD
10519 * sysvipc/msgrcv.c: Likewise.
10520 * include/sys/msg.h: Likewise.
39571a13 10521
6c215a8d
UD
10522 * grp/initgroups.c (internal_getgrouplist): Remove unnecessary
10523 test introduced in patch for bz #661.
39571a13 10524 (getgrouplist): Simplify code a bit. Don't allocate one additional
f13bfdd0 10525 element for NEWGROUPS.
6c215a8d 10526
9c06eb66
UD
10527 [BZ #2908]
10528 * stdio-common/printf_fphex.c (__printf_fphex): When rounding up
10529 'f', use '1' as leading digit not '\1'.
10530 * stdio-common/Makefile (tests): Add bug16.
10531 * stdio-common/bug16.c: New file.
10532
10533 [BZ #2914]
10534 * sysdeps/unix/sysv/linux/gethostid.c: Don't define OLD_HOSTIDFILE
10535 and don't try to open it. The patch introducing the macro
10536 contained a bug and used the same file name as the new file
10537 instead of using /var/adm/hostid. Nobody complaint so I'm taking
10538 this out completely.
10539
10540 [BZ #2926]
10541 * assert/assert.h: Move cast to void inside ?: to quiet gcc.
10542 Patch by Jerry James <Jerry.James@usu.edu>.
10543
f1762c0c
UD
10544 * rt/Makefile (tests): Add tst-clock2.
10545 * rt/tst-clock2.c: New file.
10546
10547 [BZ #2978]
10548 * resolv/gai_notify.c (__gai_notify_only): Copy memory for thread
10549 function and its parameters and pass it to new thread.
10550 (__gai_notify): Add support for alternative waiting for completion.
10551 * resolv/gai_suspend.c (gai_suspend): Add support for alternative
10552 waiting for completion.
10553 * resolv/getaddrinfo_a.c: Likewise.
10554 * resolv/gai_misc.h (struct waitlist): Don't add cond if alternative
10555 waiting for completion is used.
10556 * resolv/gai_misc.c: Allow overwriting code to start helper thread.
10557 * resolv/gai_cancel.c: Include <gai_misc.h> not "gai_misc.h".
10558 * resolv/gai_error.c: Likewise.
10559 * resolv/gai_sigqueue.c: Likewise.
10560
83ae6b40
RM
105612006-08-02 Thomas Schwinge <tschwinge@gnu.org>
10562
0e4e62fe 10563 * hurd/getdport.c (__getdport): Don't return EBADF; instead set
f1762c0c 10564 errno to EBADF and return MACH_PORT_NULL.
83ae6b40 10565
82ee37c5
UD
105662006-06-23 Joseph Myers <joseph@codesourcery.com>
10567
10568 [BZ #2980]
f1762c0c 10569 * posix/Makefile (CFLAGS-waitid.c): Add -fasynchronous-unwind-tables.
82ee37c5
UD
10570
105712006-08-02 Ulrich Drepper <drepper@redhat.com>
10572
10573 * elf/dl-addr.c (_dl_addr): If GNU-style hash tables are present,
10574 walk them instead of the symbol table.
10575
7bb1b2c9
UD
105762006-08-01 Ulrich Drepper <drepper@redhat.com>
10577
f13bfdd0 10578 [BZ #2098]
fbbc73b3
UD
10579 * nscd/initgrcache.c (addinitgroupsX): Judge successful lookups by
10580 status of NSS calls, not the number of returned entries.
10581
a4518922
UD
10582 * sysdeps/unix/sysv/linux/syscalls.list: Remove add_key,
10583 request_key, keyctl.
7bb1b2c9 10584
b06e7e9a
UD
105852006-07-31 Ulrich Drepper <drepper@redhat.com>
10586
10587 * sysdeps/unix/sysv/linux/dl-osinfo.h: Remove unnecessary include.
10588
f1227969
UD
105892006-07-16 Jeff Bailey <jbailey@ubuntu.com>
10590
10591 * elf/tst-auditmod1.c: Fix typo in #error.
10592
82ae2712
UD
105932006-07-31 Ulrich Drepper <drepper@redhat.com>
10594
f1227969
UD
10595 * elf/tst-auditmod1.c: Remove code for unsupported architectures.
10596
82ae2712
UD
10597 * iconvdata/run-iconv-test.sh: Run cmp in C locale.
10598
a1260d92
UD
105992006-07-20 Adam Nemet <anemet@caviumnetworks.com>
10600
10601 * stdlib/test-canon.c (do_test): Close fd before unlinking file so
b06e7e9a 10602 that the directory is empty even on non-POSIX filesystems.
a1260d92 10603
d2de41fe
UD
106042006-07-31 Ulrich Drepper <drepper@redhat.com>
10605
13669f2c
UD
10606 * elf/dl-open.c (dl_open_worker): Add branch prediction.
10607
d2de41fe
UD
10608 * nis/nss_compat/compat-grp.c: Avoid unnecessary setgrent calls into
10609 the backend NSS module. If backend setgrent call failed, don't have
10610 internal_setgrent fail. Just remember this until it is needed.
10611 * nis/nss_compat/compat-pwd.c: Likewise.
10612 * nis/nss_compat/compat-spwd.c: Likewise.
10613
b894c2ea
RM
106142006-07-30 Roland McGrath <roland@redhat.com>
10615
10616 * sysdeps/unix/sysv/linux/ia64/sigsuspend.c: File removed.
10617 * sysdeps/unix/sysv/linux/x86_64/sigsuspend.c: File removed.
10618 * sysdeps/unix/sysv/linux/s390/s390-64/sigsuspend.c: File removed.
10619 * sysdeps/unix/sysv/linux/sparc/sparc64/sigsuspend.c: File removed.
10620
10621 * sysdeps/unix/sysv/linux/not-cancel.h (pause_not_cancel): New macro.
10622 (nanosleep_not_cancel): New macro.
10623 (sigsuspend_not_cancel): new macro.
10624 * sysdeps/unix/sysv/linux/sigsuspend.c [__ASSUME_REALTIME_SIGNALS]
10625 (do_sigsuspend): Define as inline.
10626 (__sigsuspend): Always use do_sigsuspend.
10627 [! NO_CANCELLATION] (__sigsuspend_nocancel): New function.
10628 * include/signal.h: Declare __sigsuspend_nocancel.
10629 * sysdeps/posix/pause.c
10630 [! NO_CANCELLATION] (__pause_nocancel): New function.
10631
10632 * include/unistd.h (__pause_nocancel): Add attribute_hidden.
10633 * include/time.h (__nanosleep_nocancel): Likewise.
10634
c10d32c8
UD
106352006-07-30 Ulrich Drepper <drepper@redhat.com>
10636
10637 * locale/programs/localedef.c (add_to_readlist): Rename local
10638 variables to avoid confusion.
10639
10640 * locale/programs/charmap.c (charmap_read): Emit error message if
10641 charmap couldn't be found or read.
10642
6822f056
UD
106432006-07-28 Ulrich Drepper <drepper@redhat.com>
10644
d5ba53f9
UD
10645 * sysdeps/unix/sysv/linux/kernel-features.h: Define
10646 __ASSUME_FUTEX_LOCK_PI.
10647 * include/time.h: Declare __nanosleep_nocancel.
10648 * include/unistd.h: Declare __pause_nocancel.
10649
6822f056
UD
10650 * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Use this instead of
10651 LDFLAGS. Add -lgcc_eh and libc_nonshared (again) to make sure we
10652 get the __stack_chk_fail_local definition when it's needed.
10653
3a975ff5
UD
106542006-07-26 Ulrich Drepper <drepper@redhat.com>
10655
6de1f625
UD
10656 * dlfcn/Makefile: Add rules to build and run bug-atexit3.
10657 * dlfcn/bug-atexit3.c: New file.
10658 * dlfcn/bug-atexit3-lib.cc: New file.
10659
3a975ff5
UD
10660 * dlfcn/dlmopen.c (dlmopen_doit): Don't allow RTLD_GLOBAL to be
10661 used when the namespace is not the base namespace.
10662
a92b1166
UD
106632006-07-26 Gavin Romig-Koch <gavin@redhat.com>
10664
10665 * stdlib/cxa_atexit.c (__new_exitfn_called): New variable.
10666 (__new_exitfn): Bump it in every successful call.
10667 * stdlib/cxa_finalize.c (__cxa_finalize): If destructor registered
10668 more exit handlers, call them right away.
10669 * stdlib/exit.h: Declare __new_exitfn_called.
10670
a08336fb
UD
106712006-07-25 Ulrich Drepper <drepper@redhat.com>
10672
bd3754dc
UD
10673 * stdlib/cxa_finalize.c (__cxa_finalize): Fix race condition when
10674 calling registered handler.
10675
a08336fb
UD
10676 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Fix comment.
10677 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
10678 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
10679 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
10680 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
10681 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
10682 * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
10683 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
10684
871b9158
UD
106852006-07-10 Ulrich Drepper <drepper@redhat.com>
10686
10687 * elf/dl-lookup.c (dl_new_hash): New functions.
10688 (_dl_lookup_symbol_x): Rename hash to old_hash and don't compute
10689 value here. Compute new-style hash value. Pass new hash value
10690 and reference to variable with the old value to do_lookup_x.
10691 (_dl_setup_hash): If DT_GNU_HASH is defined, use it and not
10692 old-style hash table.
10693 (_dl_debug_bindings): Pass new hash value and reference to variable
10694 with the old value to do_lookup_x.
10695 * elf/do-lookup.h (do_lookup_x): Accept additional parameter with
10696 new-style hash value and change old-style hash value parameter to
10697 be a reference. Reoganize functions to determine whether
10698 new-style hash table is available. Only fall back on old-style
10699 table. If old-style hash value is needed, compute it here.
10700 * elf/dynamic-link.h (elf_get_dynamic_info): Relocate DT_GNU_HASH
10701 entry.
10702 * elf/elf.h: Define SHT_GNU_HASH, DT_GNU_HASH, DT_TLSDEC_PLT,
10703 DT_TLSDEC_GOT. Adjust DT_ADDRNUM.
10704 * include/link.h (struct link_map): Add l_gnu_bitmask_idxbits,
10705 l_gnu_shift, l_gnu_bitmask, l_gnu_buckets and l_gnu_chain_zero.
10706 * Makeconfig: If linker supports --hash-style option add it to all
10707 linker command lines to build DSOs.
10708 * config.make.in: Define have-hash-style.
10709 * configure.in: Test whether linker supports --hash-style option.
10710
10711 * elf/dl-misc.c (_dl_name_match_p): Make MAP parameter const.
10712 * sysdeps/generic/ldsodefs.h: Adjust prototype.
10713
a1f0de82
UD
107142006-06-27 Ulrich Drepper <drepper@redhat.com>
10715
361a3706
UD
10716 * elf/dl-load.c (open_path): Fix test to determine whether DSO is
10717 auditing.
10718
a1f0de82
UD
10719 * elf/dl-load.c (_dl_map_object): Try harder to avoid looking at
10720 RPATH of main map twice.
10721
4259230f
UD
107222006-06-22 Ulrich Drepper <drepper@redhat.com>
10723
10724 * intl/dcigettext.c (DCIGETTEXT): If _nl_find_msg returns -1 don't
10725 look further, return original strings.
10726 (_nl_find_msg): Do not return found translation if the conversion
10727 failed. Either signal the string is unusable or that something went
10728 wrong and the original should be used.
10729
107302006-06-21 Ulrich Drepper <drepper@redhat.com>
10731
10732 * string/_strerror.c (__strerror_r): Add __builtin_expect.
10733
f9b7a98b
UD
107342006-06-14 Jakub Jelinek <jakub@redhat.com>
10735
10736 [BZ #2766]
10737 * misc/insremque.c (insque): Handle prev == NULL.
10738 * misc/Makefile (tests): Add tst-insremque.
10739 * misc/tst-insremque.c: New test.
10740
ac55a25b
UD
107412006-06-17 Ulrich Drepper <drepper@redhat.com>
10742
10743 [BZ #2792]
10744 * elf/dl-deps.c (expand_dst): Rename __cnt variable to not
10745 conflict with DL_DST_REQUIRED.
10746
02f366b3
UD
107472006-06-16 Ulrich Drepper <drepper@redhat.com>
10748
10749 * nis/nis_subr.c (nis_getnames): Fix the implementation to better
10750 match what Solaris does.
10751
9009e8f8
UD
107522006-06-04 Ulrich Drepper <drepper@redhat.com>
10753
1b8373f4
UD
10754 * sysdeps/posix/spawni.c (__spawni): Use local_seteuid and
10755 local_setegid instead of seteuid and setegid.
10756 * sysdeps/generic/local-setxid.h: New file.
10757 * sysdeps/unix/sysv/linux/local-setxid.h: New file.
10758
7231452e
UD
10759 * sysdeps/posix/spawni.c (__spawni): Use non-cancelable interfaces.
10760
9009e8f8 10761 * string/Makefile (tests): Add bug-envz1.
02f366b3 10762 * string/bug-envz1.c: New file.
9009e8f8 10763
33e63e79
UD
107642006-06-02 Jakub Jelinek <jakub@redhat.com>
10765
10766 * posix/regex_internal.c (re_string_skip_chars): If no character has
10767 been converted at all, set *last_wc to WEOF. If mbrtowc failed, set wc
10768 to the byte which couldn't be converted.
10769 (re_string_reconstruct): Don't clear valid_raw_len before calling
10770 re_string_skip_chars. If wc is WEOF after re_string_skip_chars, set
10771 tip_context using re_string_context_at.
10772 * posix/Makefile: Add rules to build and run bug-regex25 test.
10773 * posix/bug-regex25.c: New test.
10774
fdc02996
UD
107752006-06-02 Ryan S. Arnold <rsa@us.ibm.com>
10776
10777 [BZ #2703]
10778 * string/envz.c (envz_strip): Correct erroneously reversed src
10779 and dest parameters to memmove() invocation.
10780
902c4291
UD
107812006-05-30 Jakub Jelinek <jakub@redhat.com>
10782
10783 * nscd/nscd.h (prune_cache): Add fd argument to prototype.
10784 * nscd/nscd.c (parse_opt): Read response from INVALIDATE request
10785 to make sure the database has been already invalidated.
10786 * nscd/cache.c (prune_cache): Add fd argument. Write response to fd
10787 after the cache has been invalidated. Use pthread_mutex_lock rather
10788 than pthread_mutex_trylock if fd != -1.
10789 * nscd/connections.c (invalidate_cache): Add fd argument, write
10790 response to fd if not calling prune_cache, pass fd to prune_cache.
10791 (handle_request): Adjust invalidate_cache caller.
10792 (nscd_run): Pass -1 as fd to prune_cache.
10793
ecc68568
UD
107942006-05-30 Ulrich Drepper <drepper@redhat.com>
10795
10796 * sysdeps/posix/getaddrinfo.c (gaiconf_init): Initialize bits in
10797 the correct place.
10798
9636a217
UD
107992006-05-29 Ulrich Drepper <drepper@redhat.com>
10800
10801 * nscd/nscd.h (struct database_dyn): Add prunelock field.
10802 * nscd/cache.c (prune_cache): Take prunelock before starting the
10803 work. Just return in case it is already taken.
cabfcde1 10804 * nscd/connections.c (dbs): Initialize .prunelock.
9636a217 10805
6bcb494a
UD
108062006-05-25 Ulrich Drepper <drepper@redhat.com>
10807
672d5a63 10808 * nis/nis_removemember.c (nis_removemember): Avoid unnecessary
ecc68568 10809 copying. No need to allocate new array for group members. Just
672d5a63
UD
10810 move the pointers and update the size.
10811
1663b44f
UD
10812 * nis/nis_addmember.c (nis_addmember): Avoid unnecessary copying.
10813 Avoid memory leak in case realloc fails. Simplification for
10814 better code generation.
10815
10816 Avoid deprecation warning because of libc_hidden_proto for
10817 inet6_option_alloc.
10818 * inet/inet6_option.c (option_alloc): Renamed from
10819 inet6_option_alloc. Made static.
9636a217 10820 (inet6_option_alloc): Now a simple wrapper around option_alloc.
1663b44f
UD
10821 (inet6_option_append): Call option_alloc.
10822 * include/netinet/in.h: Remove libc_hidden_proto for
10823 inet6_option_alloc.
10824
6bcb494a
UD
10825 * nis/nis_callback.c (__nis_create_callback): Always call xdr_free
10826 for cleanup when cb!=NULL [Coverity CID 233].
10827
aec6b246
UD
108282006-05-24 Ulrich Drepper <drepper@redhat.com>
10829
07bfff20
UD
10830 [BZ #2693]
10831 * inet/Makefile (routines): Add inet6_opt and inet6_rth.
10832 * inet/Versions (libc, GLIBC_2.5): Add inet6_opt_init,
10833 inet6_opt_append, inet6_opt_finish, inet6_opt_set_val, inet6_opt_next,
10834 inet6_opt_find, inet6_opt_get_val, inet6_rth_space, inet6_rth_init,
10835 inet6_rth_add, inet6_rth_reverse, inet6_rth_segments,
10836 and inet6_rth_getaddr.
10837 * inet/netinet/ip6.h (struct ip6_rthdr0): Make ip6r0_addr a flexible
10838 array.
10839 * inet/netinet/in.h (struct ip6_mtuinfo): Define.
10840 Mark inet6_option_* interfaces as deprecated.
10841 Declare inet6_opt_init, inet6_opt_append, inet6_opt_finish,
10842 inet6_opt_set_val, inet6_opt_next, inet6_opt_find, inet6_opt_get_val,
10843 inet6_rth_space, inet6_rth_init, inet6_rth_add, inet6_rth_reverse,
10844 inet6_rth_segments, and inet6_rth_getaddr.
10845 * inet/inet6_opt.c: New file.
10846 * inet/inet6_rth.c: New file.
10847
10848 * inet/netinet/icmp6.h: Pretty printing.
10849
aec6b246
UD
10850 [BZ #2683]
10851 * elf/dl-addr.c (_dl_addr): Don't match undefined references.
10852
2d571cd1
UD
108532006-05-23 Ulrich Drepper <drepper@redhat.com>
10854
062e719b
UD
10855 * nis/nis_lookup.c (nis_lookup): Use __prepare_niscall instead of
10856 doing it all here. When server does not know the answer do not
10857 fail immediate, try parent first.
10858
2d571cd1
UD
10859 * nis/nis_domain_of_r.c (nis_domain_of_r): Add missing buffer
10860 overflow test.
10861
a17fa610
UD
108622006-05-20 Ulrich Drepper <drepper@redhat.com>
10863
10864 * nis/nis_call.c (__prepare_niscall): New function. Split out
10865 from __do_niscall.
10866 * nis/nis_table.c (__create_ib_request): Renamed from create_ib_request
10867 and exported.
10868 (__follow_path): New function. Split out from nis_list.
10869 * nis/nis_xdr.h: Add libnsl_hidden_proto for _xdr_ib_request and
10870 _xdr_nis_result.
10871 * nis/nis_xdr.c: Add libnsl_hidden_def for _xdr_ib_request and
10872 _xdr_nis_result.
10873 * nis/libnsl.h: Declare __prepare_niscall, __create_ib_request,
10874 and __follow_path.
10875 * nis/Versions: Export __prepare_niscall, __create_ib_request,
10876 __follow_path, __do_niscall3, _xdr_ib_request, and _xdr_nis_result
10877 from libnsl for version GLIBC_PRIVATE.
10878 * nis/nisplus-parser.h: Remove _nss_nisplus_parse_pwent_chk.
10879 Remove entry parameter from _nss_nisplus_parse_pwent and
10880 _nss_nisplus_parse_grent.
10881 * nis/nss_nisplus/nisplus-parser.c: Likewise.
10882 * nis/nss_nisplus/nisplus-pwd.c: Remove support for SETENT_BATCH_READ
10883 again. Rewrite getpwent handling to not use nis_first_entry and
10884 nis_next_entry. Roll out own niscall handling.
10885 * nis/nss_nisplus/nisplus-grp.c: Likewise.
10886
10887 * sunrpc/xdr_rec.c: Fix typo in comment.
10888
429bb183
UD
108892006-05-19 Ulrich Drepper <drepper@redhat.com>
10890
1d4f062a
UD
10891 * nis/nis_call.c (__do_niscall3): Avoid code duplication in error
10892 handling.
10893
101cc598
UD
10894 * nis/nis_callback.c (internal_nis_do_callback): Don't use malloc
10895 to allocate memory for my_pollfd. Better initialization of
10896 cb_is_running. Use TEMP_FAILURE_RETRY.
10897
f50fa10c
UD
10898 * malloc/memusage.sh (memusageso): Add quotes.
10899 (memusagestat): Likewise.
10900 * debug/xtrace.sh (pcprofileso): Likewise.
10901 (pcprofiledump): Likewise.
10902 * debug/Makefile ($(objpfx)xtrace): Use $LIB in SLIBDIR
10903 replacement.
10904 * malloc/Makefile ($(objpfx)memusage): Likewise.
10905
882bfe73
UD
10906 * nis/nis_callback.c (__nis_create_callback): Calls to
10907 svcudp_bufcreate and svctcp_create can fail. Free ->xprt if
10908 asprintf call fails.
10909
429bb183
UD
10910 * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_sendreq): Make sure
10911 no uninitialized memory is passed to sendto.
10912
f90de831
UD
109132006-05-18 Ulrich Drepper <drepper@redhat.com>
10914
10915 * nis/nis_callback.c (__nis_create_callback): Use asprinf instead
10916 of snprintf+strdup. Handle OOM.
10917 * nis/nis_callback.c (__nis_create_callback): Allocate cb and
10918 cb->serv together. Remove now obsolete free calls.
10919 (__nis_destroy_callback): Remove now obsolete free call.
10920
a17fa610 109212006-05-18 David Woodhouse <dwmw2@redhat.com>
6e2a7825
UD
10922
10923 * sysdeps/posix/getaddrinfo.c: Add unique labels to the default
10924 RFC3484 precedence table for fec0::/10 and fc00::/7 (site-local
10925 and ULA respectively). Set precedence for IPv4 address to 10 as
10926 defined in RFC3484 for preferring IPv6.
10927 * posix/gai.conf: Update to match the new default tables.
10928
758b9d7e
UD
109292006-05-18 Jakub Jelinek <jakub@redhat.com>
10930
10931 * nis/nss_compat/compat-pwd.c (internal_setpwent): If nss_set*ent
10932 returned NSS_STATUS_UNAVAIL, still return NSS_STATUS_SUCCESS.
10933 * nis/nss_compat/compat-spwd.c (internal_setspent): Likewise.
10934 * nis/nss_compat/compat-grp.c (internal_setgrent): Likewise.
10935
10936 * nis/nss_compat/compat-initgroups.c (nss_setgrent, nss_endgrent):
10937 Removed.
10938 (init_nss_interface): Remove initialization of these variables.
10939
109402006-05-18 Ulrich Drepper <drepper@redhat.com>
10941
10942 * nis/nis_call.c (rec_dirsearch): Little optimization: pull
10943 nis_free_directory forward to avoid duplication.
10944
388c779e
UD
109452006-05-17 Ulrich Drepper <drepper@redhat.com>
10946
5f1724bf
UD
10947 * nis/nis_call.c (rec_dirsearch): Handle __nis_finddirectory and
10948 rec_dirsearch returning NULL.
10949 (first_shoot): Handle __nis_finddirectory returning NULL.
10950 (__nisfind_server): Fix leak when rec_dirsearch returns NULL.
10951
388c779e
UD
10952 * sysdeps/unix/sysv/linux/sys/inotify.h: Define IN_CLOSE, IN_MOVE,
10953 IN_ONLYDIR, IN_DONT_FOLLOW, and IN_MASK_ADD.
10954
360d5cf4
UD
109552006-05-17 Jakub Jelinek <jakub@redhat.com>
10956
10957 * sunrpc/key_call.c (getkeyserv_handle): Call auth_destroy if
10958 pid changed.
10959
88dbff8c
UD
109602006-05-15 Ulrich Drepper <drepper@redhat.com>
10961
6f8a7dff
UD
10962 * include/rpc/pmap_prot.h: Mark all functions as hidden.
10963
10964 * nscd/nscd_initgroups.c: Mark __gr_map_handle as hidden.
10965 * nscd/nscd_getgr_r.c: Likewise.
10966
10967 * include/rpc/pmap_rmt.h: Mark all functions as hidden.
10968
10969 * nscd/nscd_getai.c (__hst_map_handle): Mark as hidden.
10970 * nscd/nscd_gethst_r.c (__hst_map_handle): Likewise.
10971
10972 * stdlib/longlong.h (__clz_tab): Mark as hidden.
10973
10974 * iconv/gconv_int.h: Mark __gconv_lock as hidden.
10975
360d5cf4 10976 * include/rpc/key_prot.h: Mark all _internal functions as hidden.
8263ed62
UD
10977
10978 * include/rpc/auth.h: Mark xdr_des_block_internal and
10979 xdr_opaque_auth_internal as hidden.
10980
10981 * sysdeps/unix/sysv/linux/getdents.c: Mark __have_no_getdents64 as
10982 hidden.
10983
360d5cf4 10984 * include/rpc/xdr.h: Mark all _internal functions as hidden.
8263ed62 10985
02264020
UD
10986 * misc/getusershell.c (okshells): Don't use static initializers,
10987 do it dynamically.
10988
fd5ea238
UD
10989 * stdlib/fmtmsg.c (keywords): Change type of len element to
10990 uint32_t to not waste space on 64bit machines.
10991
9446614c
UD
10992 * locale/setlocale.c: Change _nl_category_names into a string.
10993 Add new _nl_category_name_idxs. Change all users.
10994 * locale/localeinfo.h: Adjust declaration of _nl_category_names.
10995 Declare _nl_category_name_idxs.
10996 * locale/findlocale.c: Adjust for _nl_category_names change.
10997 * locale/loadlocale.c: Likewise.
10998 * locale/newlocale.c: Likewise.
10999 * intl/dcigettext.c: Likewise.
11000
88dbff8c
UD
11001 * iconv/gconv_conf.c (add_alias): Move actual alias handling to...
11002 (add_alias2): ...here. New function.
11003 (__gconv_read_conf): Simplify builtin alias handling.
11004 (builtin_aliases): Convert to string to avoid relocations.
11005 * iconv/gconv_builtin.h: Add comment about correct formatting.
11006
4442d58f
UD
110072006-05-15 Jakub Jelinek <jakub@redhat.com>
11008
11009 * resolv/res_debug.c (loc_ntoa): Make error const.
11010
110112006-05-14 Andreas Schwab <schwab@suse.de>
11012
11013 * math/complex.h [__LDBL_COMPAT]: Use __REDIRECT_NTH.
11014
110152006-05-12 Jakub Jelinek <jakub@redhat.com>
11016
11017 * sysdeps/unix/sysv/linux/sched_getaffinity.c: Include sys/param.h.
11018 (__sched_getaffinity_new): Don't crash if cpusetsize is smaller than
11019 sizeof (cpu_set_t).
11020
a51752b6
UD
110212006-05-11 Ulrich Drepper <drepper@redhat.com>
11022
5d3fd1f6
UD
11023 * resolv/res_debug.c (loc_ntoa): Define error as array, not pointer.
11024
08cfb839
UD
11025 * include/arpa/nameser.h: Declare _ns_flagdata as hidden.
11026
4b481a15
UD
11027 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_master.
11028 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_master.
11029
11030 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypbind_resp.
11031 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypbind_resp.
11032
11033 * nis/nis_xdr.c: Add libnsl_hidden_def for xdr_cback_data.
11034 * include/rpcsvc/nis_callback.h: Add libnsl_hidden_proto for
11035 xdr_cback_data.
11036
11037 * nis/ypupdate_xdr.c: Add libnsl_hidden_def for xdr_ypupdate_args.
11038 * include/rpcsvc/ypupd.h: Add libnsl_hidden_proto for
11039 xdr_ypupdate_args.
11040
11041 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_order.
11042 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_order.
11043
11044 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_maplist.
11045 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_maplist.
11046
11047 * nis/nis_xdr.c: Add libnsl_hidden_def for xdr_obj_p.
11048 * include/rpcsvc/nis_callback.h: New file.
11049
11050 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_val.
11051 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_val.
11052
11053 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypreq_nokey.
11054 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypreq_nokey.
11055
11056 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypmaplist.
11057 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypmaplist.
11058
11059 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypreq_nokey.
11060 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypreq_nokey.
11061
b1ad49c6
UD
11062 * nis/ypupdate_xdr.c: Add libnsl_hidden_def for xdr_ypdelete_args.
11063 * include/rpcsvc/ypupd.h: Add libnsl_hidden_proto for
11064 xdr_ypdelete_args.
11065
cd5f7829
UD
11066 * nis/nis_xdr.h: Mark all functions as hidden. Remove
11067 __BEGIN_DECLS and __END_DECLS, the header is not installed.
11068
a51752b6
UD
11069 * nis/nis_error.c: Remove table of strings. Use position
11070 independent mechanism.
11071 * nis/nis_error.h: New file.
11072
3d237e42
UD
110732006-05-11 Jakub Jelinek <jakub@redhat.com>
11074
11075 * locale/programs/ld-time.c (time_finish): If wide era name or
11076 format aren't provided, set both wname and wformat to L"".
11077
d6c159fe
UD
110782006-05-10 Ulrich Drepper <drepper@redhat.com>
11079
0088b04e
UD
11080 * sysdeps/unix/sysv/linux/tcgetattr.c (__tcgetattr): Only store
11081 results if the call was succesful.
11082
d6c159fe
UD
11083 * nis/nss-nis.h: Mark __yperr2nss_tab and __yperr2nss_count as hidden.
11084
11085 * nis/nss-nisplus.h: Mark __niserr2nss_tab and __niserr2nss_count
11086 as hidden.
11087
5c5acdf0
UD
110882006-05-10 Jakub Jelinek <jakub@redhat.com>
11089
11090 * misc/sys/queue.h: Remove uses of all QUEUEDEBUG_* macros.
11091
16d620db
UD
110922006-05-10 Ulrich Drepper <drepper@redhat.com>
11093
11094 * posix/wordexp.c (parse_glob): No need to check ifs for NULL, the
11095 caller makes sure this is not the case.
11096 (wordexp): Simplify ifs_white creation. [Coverity CID 231]
11097
e7c8359e
UD
110982006-05-09 Ulrich Drepper <drepper@redhat.com>
11099
ecf359c6
UD
11100 * posix/wordexp.c: Remove numerous NULL pointer tests before FREE
11101 calls.
11102
400cc70a
UD
11103 * io/ftw.c (open_dir_stream): Return right away if REALLOC fails.
11104 [Coverity CID 229, 230]
11105
11106 * argp/argp-help.c (hol_entry_help): Handle STATE==NULL in ARG and
11107 DGETTEXT calls.
11108 (hol_help): Likewise. [Coverity CID 226, 227]
11109
11110 * string/argz-replace.c (__argz_replace): Unconditionally call
11111 free on SRC. [Coverity CID 225]
11112
11113 * nis/nis_creategroup.c (nis_creategroup): No need to duplicate
11114 the return value of __nis_default_owner and __nis_default_group,
11115 it has been especially allocated. [Coverity CID 224]
11116
51e59260
UD
11117 * nis/nis_defaults.c (searchXYX): New functions. Used by both
11118 searchgroup and searchowner. Significantly simplified.
11119 (__nis_default_owner): Remove duplication. Do not locally copy the
11120 string before duplicating it.
11121 (__nis_default_group): Likewise.
11122
11123 * nis/nis_lookup.c (nis_lookup): After calling nis_free_directory,
11124 we must clear the variable before calling __nisfind_server.
11125
11126 * nis/nis_lookup.c (nis_lookup): Always free memory allocated with
11127 nis_getnames. [Coverity CID 223]
11128
11129 * locale/programs/locfile.c (locfile_read): Use alloca instead of
11130 xmalloc to allocate local repertoire name. [Coverity CID 222]
11131
11132 * iconv/iconv_charmap.c (use_to_charmap): No need to dynamically
11133 allocate memory for the input to add_bytes. [Coverity CID 221]
11134
e7c8359e 11135 * posix/wordexp.c (w_addword): Free word if realloc fails and it
51e59260 11136 was allocated here. [Coverity CID 219, 220]
e7c8359e
UD
11137
11138 * posix/getconf.c (print_all): Free confstr data after printing.
11139 [Coverity CID 218]
11140
11141 * sysdeps/posix/getaddrinfo.c (gaih_inet): Free canon string if
11142 list allocation fails. [Coverity CID 215]
11143
11144 * nss/nsswitch.c (__nss_configure_lookup): Fix loop end condition.
11145 [Coverity CID 213]
11146
11147 * argp/argp-help.c (hol_entry_cmp): Don't call canon_doc_option if
11148 string is NULL. [Coverity CID 212]
11149 * argp/Makefile: Add rules to build and run bug-argp1.
11150 * argp/bug-argp1.c: New file.
11151
11152 * io/ftw.c (ftw_dir): Use __rawmemchr instead of strchr to find
11153 end of string.
11154 * stdlib/canonicalize.c (__realpath): Likewise.
11155
11156 * locale/programs/ld-time.c (time_finish): Don't dereference NULL
11157 pointer. [Coverity CID 206]
11158
11159 * elf/dl-dst.h (DL_DST_REQUIRED): Be prepared for missing link map
11160 in statically linked code.
11161 * elf/dl-load.c (_dl_dst_substitute): When replacing ORIGIN in
11162 statically built code, be prepared to have no link map.
11163 [Coverity CID 205]
11164
11165 * argp/argp-help.c (fill_in_uparams): Handle STATE==NULL in
11166 dgettext calls. [Coverity CID 204]
11167
11168 * argp/argp-help.c (struct uparams): Remove valid member. Change
11169 the one user.
11170 (uparam_names): Reduce size. Avoid relative relocations.
11171 Moved to read-only segment.
11172 (fill_in_uparams): Update for new layout.
11173
11174 * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs): Parameter can be
11175 assumed to always be != NULL. [Coverity CID 202]
11176
11177 * argp/argp-help.c (hol_entry_help): Remove some dead code
11178 [Coverity CID 200].
11179
11180 * nis/nss_nis/nis-service.c (_nss_nis_getservbyport_r): Optimize
11181 away a few more unconditional yperr2nss calls.
11182 (_nss_nis_getservbyname_r): Likewise.
11183
acf82eaf
UD
111842006-05-06 Ulrich Drepper <drepper@redhat.com>
11185
4461cf48
UD
11186 * sysdeps/generic/ldsodefs.h: Remove support for non-core
11187 architectures.
11188
b74a8c7f
UD
11189 * sysdeps/unix/sysv/linux/check_pf.c (make_request): Make sure
11190 that unused memory passed to sendto is nevertheless initialized.
11191
acb98cb5
UD
11192 [BZ #2499]
11193 * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Avoid
11194 possibly unaligned memory accesses.
11195
bce16467
UD
11196 * include/arpa/nameser.h: Also optimize NS_PUT16 and NS_PUT32.
11197 * resolv/res_mkquery.c: Use NS_PUT16 and NS_PUT32 instead of __putshort
11198 and __putlong respectively. Correct buffer overflow check for
11199 NS_NOTIFY_OP.
11200
11201 * resolv/res_send.c (send_vc): Use ns_put16 instead of putshort.
11202
8e45b1ac
UD
11203 * resolv/res_send.c (res_queriesmatch): Fix typo in comment.
11204 (send_dg): Rewrite error handling to be more compact and avoid
11205 double recomputation of timeouts. Pass MSG_NOSIGNAL to send.
11206
697e1628
UD
11207 * include/arpa/nameser.h: Add optimizations for NS_GET16 and NS_GET32.
11208
11209 * resolv/res_send.c (res_nameinquery): Use NS_GET16 directly
11210 instead of ns_get16.
11211 (res_queriesmatch): Likewise. Minor optimization.
11212
acf82eaf
UD
11213 [BZ #2499]
11214 * resolv/res_query.c (__libc_res_nquery): If answerp != NULL,
11215 __libc_res_nsend might reallocate the buffer for the answer. In
11216 this case we have to reload the HP pointer.
11217
7bfee654
UD
112182006-05-05 Ulrich Drepper <drepper@redhat.com>
11219
694b49ca
UD
11220 * stdio-common/vfscanf.c (memory_error): Remove definition. Add
11221 some branch prediction hints.
11222
7bfee654
UD
11223 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Define SPLICE_F_*.
11224 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
11225 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
11226 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
11227 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
11228 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
11229 * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
11230 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
11231
308bb2d5
UD
112322006-05-05 Martin Schwidefsky <schwidefsky@de.ibm.com>
11233
11234 * sysdeps/s390/s390-32/elf/start.S: Replace pc relative relocation
11235 by a GOT relocation to make Scrt1.o position independent.
11236 * sysdeps/s390/s390-64/elf/start.S: Likewise.
11237
11238 * sysdeps/unix/sysv/linux/s390/s390-32/syscall.S: Add support for
11239 six system call parameters.
11240 * sysdeps/unix/sysv/linux/s390/s390-64/syscall.S: Likewise.
11241
cdb9c321
UD
112422006-05-05 Ulrich Drepper <drepper@redhat.com>
11243
11244 * sunrpc/svcauth_des.c (cache_init): Use calloc instead of
11245 malloc&bzero.
11246
11247 * sunrpc/svc_udp.c (BZERO): Remove definition.
11248 (CALLOC): Define.
11249 (svc_enablecache): Use CALLOC instead of ALLOC&BZERO.
11250
11251 * sunrpc/des_impl.c: Remove ALT_ECB support. We never used it.
11252 (des_SPtrans): Use uint32_t type.
11253 (des_skb): Likewise.
11254
11255 * sunrpc/xdr_ref.c (xdr_reference): Use calloc instead of malloc&bzero.
11256
fff04b32
UD
112572006-05-05 Jakub Jelinek <jakub@redhat.com>
11258
11259 [BZ #2509]
11260 * stdio-common/tst-printf.sh: Adjust for tst-printf.c change even
11261 on 32-bit arches.
11262
112632006-05-05 Ulrich Drepper <drepper@redhat.com>
11264
11265 * locale/programs/ld-address.c (address_finish): Fix one more
cdb9c321 11266 place where the iso639 array might be accessed beyond the limits.
fff04b32 11267
077a30bc 112682006-05-04 Ulrich Drepper <drepper@redhat.com>
77dd4c3b 11269
f2d5cf50
UD
11270 * nis/nis_table.c (nis_list): Avoid clearing res twice before
11271 filling it for the first time.
11272
3e4370cf
UD
11273 * nis/nis_table.c (get_tablepath): Renamed from __get_tablepath.
11274 Adjust all callers.
11275 Free res object content before returning.
11276
5e65a53d
UD
11277 * sunrpc/xdr_array.c (xdr_array): Use calloc instead of malloc&bzero.
11278
48be3114
UD
11279 * sunrpc/key_call.c (__rpc_thread_key_cleanup): Also free
11280 client->cl_auth.
11281
ca4fce0e
UD
11282 * sunrpc/rpc_thread.c (__rpc_thread_destroy): Don't skip entire
11283 cleanup for initial thread, just the free call on TVP.
11284
077a30bc 11285 * nscd/gai.c (__getline): Define.
3b7a95fb 11286
5d37289a 11287
3f87d901 11288See ChangeLog.16 for earlier changes.
This page took 1.639833 seconds and 5 git commands to generate.