]> sourceware.org Git - glibc.git/blame - ChangeLog
* iconvdata/sjis.c (BODY): Don't advance inptr before
[glibc.git] / ChangeLog
CommitLineData
f397be12
UD
12009-04-24 Jakub Jelinek <jakub@redhat.com>
2
3 * iconvdata/sjis.c (BODY): Don't advance inptr before
4 STANDARD_FROM_LOOP_ERR_HANDLER (2) for 2 byte invalid input.
5 Use STANDARD_FROM_LOOP_ERR_HANDLER with 2 instead of 1 for
6 two byte chars.
7
705341a9
UD
82009-04-24 Ulrich Drepper <drepper@redhat.com>
9
10 * locale/locarchive.h (struct locarhandle): Rename len field to
11 mmaped and add new reserved field.
12 * locale/programs/locarchive.c (RESERVE_MMAP_SIZE): Define.
13 (create_archive): Reserve address space and then map file into it.
14 (open_archive): Likewise.
15 (file_data_available_p): New function.
16 (compare_from_file): New function.
17 (close_archive): Adjust to member name changes.
18 (add_locale): Before comparing locale data, check it is mapped.
19 Otherwise fall back to reading from the file.
20
57d2da1c
UD
212009-04-23 H.J. Lu <hongjiu.lu@intel.com>
22
23 * stdio-common/psiginfo.c: Include <errno.h>.
24
3d855f75
UD
252009-04-23 Ulrich Drepper <drepper@redhat.com>
26
fe12c798
UD
27 [BZ #9920]
28 * stdlib/random_r.c (__srandom_r): Change type of word to int32_t
29 to get consistency between 32 and 64 bit architectures.
30
3d855f75
UD
31 [BZ #10052]
32 * sysdeps/unix/make-syscalls.sh: Add rule to create target
33 directory for dummy syscall rules.
34 Patch by Chris Steinbroner <hesh@pobox.com>.
35
95bf537f
UD
362009-04-23 Aurelien Jarno <aurelien@aurel32.net>
37
38 [BZ #10092]
39 * sysdeps/unix/sysv/linux/sys/mount.h: Define MNT_DETACH and
40 MNT_EXPIRE.
41
7f8a28ef
UD
422009-04-23 Ulrich Drepper <drepper@redhat.com>
43
44 * sysdeps/unix/sysv/linux/preadv.c: The kernel API changed. Adjust.
45 * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
46
472009-04-23 Jakub Jelinek <jakub@redhat.com>
48
49 * sysdeps/posix/pwritev.c (PWRITEV): Fix up comment. Copy
50 data from vector to temporary buffer and call PWRITEV after it
51 instead of vice versa.
52 * sysdeps/posix/preadv.c: Fix up comment.
53 * misc/preadv.c: Likewise.
54 * misc/preadv64.c: Likewise.
55 * misc/pwritev.c: Likewise.
56 * misc/pwritev64.c: Likewise.
57 * misc/sys/uio.h (preadv, pwritev, preadv64, pwritev64): Likewise.
58
829fea46
UD
592009-04-23 Ulrich Drepper <drepper@redhat.com>
60
c7e74e59
UD
61 * shadow/sgetspent_r.c (__sgetspent_r): Recognize too small buffers.
62
3b055b47
UD
63 * shadow/Makefile (tests): Add tst-shadow.
64 * shadow/tst-shadow.c: New file.
65
829fea46
UD
66 [BZ #9955]
67 * gshadow/Makefile: New file.
68 * gshadow/Versions: New file.
69 * gshadow/fgetsgent.c: New file.
70 * gshadow/fgetsgent_r.c: New file.
71 * gshadow/getsgent.c: New file.
72 * gshadow/getsgent_r.c: New file.
73 * gshadow/getsgnam.c: New file.
74 * gshadow/getsgnam_r.c: New file.
75 * gshadow/gshadow.h: New file.
76 * gshadow/putsgent.c: New file.
77 * gshadow/sgetsgent.c: New file.
78 * gshadow/sgetsgent_r.c: New file.
79 * gshadow/tst-gshadow.c: New file.
80 * include/gshadow.h: New file.
81 * Makeconfig (all-subdirs): Add gshadow.
82 * Makefile (installed-headers): Add gshadow/gshadow.h.
83 * nss/Makefile (databases): Add sgrp.
84 * nss/Versions: Add gshadow functions as private exports.
85 * nss/nsswitch.conf: Add gshadow entry.
86 * nss/sgrp-lookup.c: New file.
87 * nss/nss_files/files-parse.c: Add STRING_LIST macro. Rewrite
88 parse_list to handle STRING_LIST and TRAILING_LIST_PARSER.
89 * nss/nss_files/files-sgrp.c: New file.
90 * sysdeps/generic/paths.h: Add _PATH_GSHADOW.
91 * sysdeps/unix/sysv/linux/paths.h: Likewise.
92
debafa10
UD
932009-04-22 Ulrich Drepper <drepper@redhat.com>
94
95 * stdio-common/printf.h: Add missing const to register_printf_modifier.
96 * stdio-common/reg-modifier.c: Likewise.
97
982009-04-22 Andrew Stubbs <ams@codesourcery.com>
99
100 * sysdeps/sh/sh4/setjmp.S (__sigsetjmp): Adjust JB_SIZE when there
101 is no FPU.
102
0e04c0b5
UD
1032009-04-20 Ulrich Drepper <drepper@redhat.com>
104
d43f10e7 105 [BZ #10086]
1c376f5b
UD
106 * sysdeps/unix/sysv/linux/sys/timex.h: Add definitions from kernel
107 headers up to 2.6.30.
108
0e04c0b5
UD
109 * po/ca.po: Update from translation team.
110
a245eafd
UD
1112009-04-19 Ulrich Drepper <drepper@redhat.com>
112
113 [BZ #10069]
114 * elf/dl-open.c (dl_open_worker): We cannot guarantee that we can load
115 an object that uses static TLS if the TLS modid is higher than the
116 reserve we always allocate. At least for multi-threaded code.
117
0588a9cb
UD
1182009-04-18 Ulrich Drepper <drepper@redhat.com>
119
153aa31b
UD
120 * stdlib/strfmon_l.c (__vstrfmon_l): Don't wrap when computing width.
121 Numerically stable check for valid width.
122
59a7162b
UD
123 * locale/programs/locarchive.c (open_archive): Map the entire file
124 and not just the administrative data.
125 (add_locale): When we find a hash sum match compare the content
126 to be sure.
127
0588a9cb
UD
128 * malloc/malloc.c (malloc_info): Output address space information.
129
17a5b24e
UD
1302009-04-17 Ulrich Drepper <drepper@redhat.com>
131
da2d2fb6
UD
132 * malloc/malloc.c (malloc_info): Also output system memory information.
133
11cad88c
UD
134 * sysdeps/unix/sysv/linux/kernel-features.h: All supported
135 architectures have preadv/pwritev in 2.6.30.
136
571ac26f
UD
137 * sysdeps/posix/preadv.c: Reading of zero bytes is no error.
138 * sysdeps/posix/readv.c: Likewise.
139 Reported by Markus Armbruster <armbru@redhat.com>.
140
17a5b24e
UD
141 * malloc/hooks.c (top_check): Force hook value into register.
142
57ec6442
RM
1432009-04-16 Samuel Thibault <samuel.thibault@ens-lyon.org>
144
145 * elf/rtld.c (dl_main): Really call _dl_sysdep_start_cleanup after all
146 calls to _dl_relocate_object.
147
df77455c
UD
1482009-04-16 Ulrich Drepper <drepper@redhat.com>
149
150 [BZ #9957]
151 * malloc/malloc.c (force_reg): Define.
152 (sYSMALLOc): Load hook variable into variable
153 before test and force into register.
154 (sYSTRIm): Likewise.
155 (public_mALLOc): Force hook value into register.
156 (public_fREe): Likewise.
157 (public_rEALLOc): Likewise.
158 (public_mEMALIGn): Likewise.
159 (public_vALLOc): Likewise.
160 (public_pVALLOc): Likewise.
161 (public_cALLOc): Likewise.
162 (__posix_memalign): Likewise.
163 * malloc/arena.c (ptmalloc_init): Load hook variable into variable
164 before test and force into register.
165 * malloc/hooks.c (top_check): Likewise.
3b055b47 166 (public_sET_STATe): Pretty printing.
df77455c
UD
167
168 * resolv/res_send.c (send_dg): Don't just ignore the result we got
169 in case we only receive one reply in single-request mode.
170
733ca93a
JJ
1712009-04-16 Jakub Jelinek <jakub@redhat.com>
172
173 * elf/dl-open.c (_dl_open): Bump GL(dl_nns) to 1 if no libraries
174 are dlopened in statically linked program even for __LM_ID_CALLER.
175
d0e81f10
UD
1762009-04-16 Ulrich Drepper <drepper@redhat.com>
177
178 * resolv/res_send.c (send_dg): Don't switch into single-request
179 mode if we already are in it.
180
6a3d03ff
UD
1812009-04-15 Ulrich Drepper <drepper@redhat.com>
182
183 * sysdeps/unix/sysv/linux/getsysstats.c (next_line): Make sure there
184 are always at least 4 bytes in the returned line.
185
1862009-04-15 Jakub Jelinek <jakub@redhat.com>
187
188 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Check
189 __libc_use_alloca (8192), if the stack is too small use 512 bytes
190 instead of 8K. Stop searching in /proc/stat after hitting first
191 line not starting with cpu.
192 (next_line): Truncate too long
193 lines at buffer size * 3/4 instead of pretending there were line
194 breaks inside of large lines.
195
ae650a41
UD
1962009-04-14 Ulrich Drepper <drepper@redhat.com>
197
198 * sysdeps/x86_64/mp_clz_tab.c: New file.
199
353f2107
UD
2002009-03-17 Ryan S. Arnold <rsa@us.ibm.com>
201 Ulrich Drepper <drepper@redhat.com>
202
203 * sysdeps/unix/sysv/linux/fallocate.c: Handle old kernel headers.
204 * sysdeps/unix/sysv/linux/fallocate64.c: Likewise.
e775ec11 205 * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c: Likewise.
353f2107 206
fc0c5705
UD
2072009-03-25 Andrew Stubbs <ams@codesourcery.com>
208
209 * sysdeps/sh/libc-tls.c: New file.
210
211 * sysdeps/sh/bits/setjmp.h (__jmp_buf): Give name to structure type.
212
237a8867
RM
2132009-04-14 Roland McGrath <roland@redhat.com>
214
215 * elf/elf.h: Add various missing ARM constants, to match binutils.
216
893a5fd4
UD
2172009-04-14 Ulrich Drepper <drepper@redhat.com>
218
219 Optimizations from GMP.
220 * sysdeps/x86_64/add_n.S: New file.
221 * sysdeps/x86_64/addmul_1.S: New file.
222 * sysdeps/x86_64/lshift.S: New file.
223 * sysdeps/x86_64/mul_1.S: New file.
224 * sysdeps/x86_64/rshift.S: New file.
225 * sysdeps/x86_64/sub_n.S: New file.
226 * sysdeps/x86_64/submul_1.S: New file.
227
e42e88ab
JJ
2282009-04-14 Jakub Jelinek <jakub@redhat.com>
229
230 * sysdeps/powerpc/powerpc32/elf/start.S: Ensure .data is non-empty.
231 * sysdeps/powerpc/powerpc64/elf/start.S: Likewise.
232 * sysdeps/sparc/sparc32/elf/start.S: Likewise.
233 * sysdeps/sparc/sparc64/elf/start.S: Likewise.
234
b8a3bd82
UD
2352009-04-14 Ulrich Drepper <drepper@redhat.com>
236
237 * sysdeps/unix/sysv/linux/kernel-features.h: SH also has
238 preadv/pwritev.
239
84aa52d7
UD
2402009-04-13 Ulrich Drepper <drepper@redhat.com>
241
242 * sysdeps/x86-64/strrchr.S: New file.
243
9d26efa9
UD
2442009-04-10 Ulrich Drepper <drepper@redhat.com>
245
246 * stdio-common/printf.h (struct printf_info): Add user element.
247 New types printf_arginfo_size_function, printf_va_arg_function.
248 Declare register_printf_specifier, register_printf_modifier,
249 register_printf_type.
250 * stdio-common/printf-parse.h (struct printf_spec): Add size element.
251 (union printf_arg): Add pa_user element.
252 Adjust __printf_arginfo_table type.
253 Add __printf_va_arg_table, __printf_modifier_table,
254 __handle_registered_modifier_mb, and __handle_registered_modifier_wc
255 declarations.
256 * stdio-common/printf-parsemb.c: Recognize registered modifiers.
257 If registered arginfo call failed try normal specifier.
258 * stdio-common/printf-prs.c: Pass additional parameter to arginfo
259 function.
260 * stdio-common/Makefile (routines): Add reg-modifier and reg-type.
261 * stdio-common/Versions: Export register_printf_modifier,
262 register_printf_type, and register_printf_specifier for GLIBC_2.10.
263 * stdio-common/reg-modifier.c: New file.
264 * stdio-common/reg-type.c: New file.
265 * stdio-common/reg-printf.c (__register_printf_specifier): New
266 function. Mostly the old __register_printf_function function but
267 uses locking and type of third parameter changed.
268 (__register_printf_function): Implement using
269 __register_printf_specifier.
270 * stdio-common/vfprintf.c (vfprintf): Collect argument sizes in
271 calls to arginfo functions. Allocate enough memory for user-defined
272 types. Call new va_arg functions to get user-defined types.
273 Try installed handlers even for existing format specifiers first.
274
28b2771a
UD
2752009-04-09 Ulrich Drepper <drepper@redhat.com>
276
f140a0d5
UD
277 * sysdeps/x86_64/rawmemchr.S: New file.
278
e9b4d069 279 * stdio-common/vfprintf.c (vfprintf): Slightly more compact code.
1d498daa 280 Simplified code and possible copy problem fixed.
e9b4d069 281
f9fe75e9 282 * sysdeps/unix/sysv/linux/preadv.c: Avoid prototype for static
24030b0f 283 function if it is not defined. Add some necessary casts.
f9fe75e9
UD
284 * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
285
28b2771a
UD
286 * sysdeps/unix/sysv/linux/kernel-features.h: SPARC and IA64 also
287 have preadv/pwritev in 2.6.30.
288
4c8b8cc3
UD
2892009-04-08 Ulrich Drepper <drepper@redhat.com>
290
bb066545
UD
291 * malloc/malloc.c (malloc_info): New function.
292 * malloc/malloc.h: Declare it.
293 * malloc/Versions: Export malloc_info for GLIBC_2.10.
294
0f9c8b48
UD
295 * sysdeps/unix/sysv/linux/preadv64.c (PREAD): Use __libc_pread64
296 to avoid PLT slot.
297
4c8b8cc3
UD
298 * malloc/malloc.c (_int_realloc): Add parameter with old block
299 size. Remove duplicated test. Don't handle mmap'ed blocks here.
300 Adjust all callers.
301 * malloc/hooks.c (realloc_check): Adjust _int_realloc call.
302
ddba0f17
UD
3032009-04-07 Ulrich Drepper <drepper@redhat.com>
304
cd57745b
UD
305 * sysdeps/x86_64/strchrnul.S: New file.
306
3db6c9a8 307 * crypt/Makefile (LDLIBS-crypt.so): Use this variable instead of
cd57745b 308 depending libcrypt on -lfreebl3.
3db6c9a8 309
1a2ec17b
UD
310 * sysdeps/unix/sysv/linux/kernel-features.h: Power also has
311 preadv/pwritev in 2.6.30.
312
bb066545 313 * resolv/nss_dns/dns-host.c (getanswer_r): Use strcasecmp
c6807d38 314 instead of __strcasecmp.
c6807d38 315
ddba0f17 316 * string/stratcliff.c (do_test): Add memchr tests..
481f9eca 317 * wcsmbs/wcsatcliff.c (MEMCHR): Define.
ddba0f17
UD
318 * sysdeps/x86_64/memchr.S: Fix handling of end of buffer after
319 first read quad word.
320
ae061910
UD
3212009-04-06 Ulrich Drepper <drepper@redhat.com>
322
4bcb2658
UD
323 * string/strverscmp.c (__strverscmp): Fix last cleanups.
324 * string/tst-svc.input: Add new test case.
325 * string/tst-svc.expect: Adjust.
326 * string/Makefile: Don't ignore tst-svc error.
327
322e23db
UD
328 * sysdeps/x86_64/memchr.S: New file.
329
ae061910
UD
330 * resolv/resolv.h (RES_SNGLKUP): Define.
331 * resolv/res_init.c (res_setoptions): Recognize single-request option.
332 * resolv/res_send.c (send_dg): If we sent two requests at once and
333 only get one reply before timeout switch to mode where we send the
334 second request only after the first answer has been received.
335
a152f366
UD
3362009-04-05 Ulrich Drepper <drepper@redhat.com>
337
338 * sysdeps/x86_64/strlen.S: Optimize by using SSE2 instructions.
1df6f9d8 339 * sysdeps/x86_64/strchr.S: Likewise.
a152f366 340
2dbe6afe
UD
3412009-04-03 Ulrich Drepper <drepper@redhat.com>
342
c0bac8b0
UD
343 * configure.in: We need to test for the compiler earlier.
344
e109c612
UD
345 * misc/Makefile (routines): Add preadv, preadv64, pwritev, pwritev64.
346 * misc/Versions: Export preadv, preadv64, pwritev, pwritev64 for
347 GLIBC_2.10.
348 * misc/sys/uio.h: Declare preadv, preadv64, pwritev, pwritev64.
349 * sysdeps/unix/sysv/linux/kernel-features.h: Add entries for preadv
350 and pwritev.
351 * misc/preadv.c: New file.
352 * misc/preadv64.c: New file.
353 * misc/pwritev.c: New file.
354 * misc/pwritev64.c: New file.
355 * sysdeps/posx/preadv.c: New file.
356 * sysdeps/posx/preadv64.c: New file.
357 * sysdeps/posx/pwritev.c: New file.
358 * sysdeps/posx/pwritev64.c: New file.
359 * sysdeps/unix/sysv/linux/preadv.c: New file.
360 * sysdeps/unix/sysv/linux/preadv64.c: New file.
361 * sysdeps/unix/sysv/linux/pwritev.c: New file.
362 * sysdeps/unix/sysv/linux/pwritev64.c: New file.
363 * sysdeps/unix/sysv/linux/wordsize-64/preadv64.c: New file.
364 * sysdeps/unix/sysv/linux/wordsize-64/pwritev64.c: New file.
365
7166c77a
UD
366 * sysdeps/unix/sysv/linux/readv.c (__libc_readv): Fix calling of
367 compatibility code.
368 * sysdeps/unix/sysv/linux/writev.c (__libc_writev): Likewise.
369
2dbe6afe
UD
370 * sysdeps/unix/sysv/linux/kernel-features.h: Define
371 __ASSUME_COMPLETE_READV_WRITEV.
372 * sysdeps/unix/sysv/linux/readv.c: No need for userlevel fallback
373 with modern kernels.
374 * sysdeps/unix/sysv/linux/writev.c: Likewise.
375
376 * sysdeps/posix/readv.c: Since read is a cancellation point we have
377 to free a possible malloced buffer in case of cancellation.
378 * sysdeps/posix/writev.c: Likewise for write.
379
ff886b82
UD
3802009-04-02 Ulrich Drepper <drepper@redhat.com>
381
a065c007
UD
382 * sysdeps/unix/sysv/linux/bits/socket.h: Add missing protocol numbers.
383
ff886b82
UD
384 * configure.in: Recognize --enable-nss-crypt.
385 * config.make.in: Add nss-crypt entry.
386 * crypt/Makefile: If nss-crypt==yes, don't build md5.c, sha256.c,
387 sha512.c. Don't run md5test, sha256test, sha512test. Pass -DUSE_NSS
388 and include path for NSS directory to compiler for md5-crypt,
389 sha256-crypt, sha512-crypt. Link libcrypt.so with -lfreebl3.
390 * crypt/md5-crypt.c: If USE_NSS is defined, don't use local hash
391 function implementation, use NSS. Introduce wrappers around the
392 hash function calls. Little code size optimization.
393 * crypt/sha256-crypt.c: Likewise.
394 * crypt/sha512-crypt.c: Likewise.
395 * scripts/check-local-headers.sh: Ignore nss3 directory.
396
397 * configure.in: Rename pic_default to libc_cv_pic_default.
398 * config.make.in: Likewise.
399
1800de36
RM
4002009-04-01 Roland McGrath <roland@redhat.com>
401
402 * elf/elf.h (R_SPARC_GLOB_JMP): New macro.
403 (R_SPARC_GOTDATA_HIX22, R_SPARC_GOTDATA_LOX10): New macros.
404 (R_SPARC_GOTDATA_OP_HIX22, R_SPARC_GOTDATA_OP_LOX10): Likewise.
405 (R_SPARC_GOTDATA_OP, R_SPARC_H34): Likewise.
406 (R_SPARC_SIZE32, R_SPARC_SIZE64): Likewise.
407 (R_SPARC_GNU_VTINHERIT, R_SPARC_GNU_VTENTRY, R_SPARC_REV32): Likewise.
408 (R_SPARC_NUM): Update.
409 From Dave Miller <davem@davemloft.net>.
410
7166c77a 4112009-04-01 Ulrich Drepper <drepper@redhat.com>
3ce976cd
UD
412
413 * sysdeps/unix/sysv/linux/sys/eventfd.h (EFD_SEMAPHORE): Define.
414
20739e54
UD
4152009-03-31 Ulrich Drepper <drepper@redhat.com>
416
22c83193
UD
417 * elf/dl-open.c: Keep track of used name spaces and only iterate over
418 those which are used.
419 * elf/dl-addr.c: Likewise.
420 * elf/dl-caller.c: Likewise.
421 * elf/dl-fini.c: Likewise.
422 * elf/dl-iteratephdr.c: Likewise.
423 * elf/dl-libc.c: Likewise.
424 * elf/dl-load.c: Likewise.
425 * elf/dl-support.c: Likewise.
426 * elf/dl-sym.c: Likewise.
427 * elf/rtld.c: Likewise.
428 * sysdeps/generic/ldsodefs.h: Likewise.
429
20739e54
UD
430 * elf/dl-load.c: Remove support for systems without MAP_ANON.
431 * elf/dl-minimal.c: Likewise.
432 * elf/dl-misc.c: Likewise.
433 * elf/rtld.c: Likewise.
434 * sysdeps/generic/ldsodefs.h: Likewise.
435
db486995
UD
4362009-03-30 Ulrich Drepper <drepper@redhat.com>
437
cb14424e
UD
438 * elf/do-lookup.h (do_lookup_x): Minor optimization and cleanup.
439 Avoid reuse of complex expression.
440
db486995
UD
441 * po/fr.po: Update from translation team.
442
ae8d7b44
UD
4432009-03-16 Ulrich Drepper <drepper@redhat.com>
444
445 * include/dirent.h: Yet more changes to match sort function type
446 change.
447 * sysdeps/unix/sysv/linux/i386/alphasort64.c: Likewise.
448 * sysdeps/unix/sysv/linux/i386/olddirent.h: Likewise.
449 * sysdeps/unix/sysv/linux/i386/versionsort64.c: Likewise.
450
8efb2f1c
UD
4512009-03-16 Thomas Schwinge <tschwinge@gnu.org>
452
453 * dirent/scandir64.c (scandir64): Adjust declaration to type change.
454
d9822dbe
UD
4552009-03-16 Ulrich Drepper <drepper@redhat.com>
456
457 * nscd/connections.c (restart): Try to preserve the process name
458 by reading the /proc/self/exe symlink and using the return name.
459 Patch by Jeff Bastian <jbastian@redhat.com>.
460
71a5bd3e
UD
4612009-03-15 Ulrich Drepper <drepper@redhat.com>
462
2ca285b0
UD
463 [BZ #9733]
464 * elf/dl-load.c (_dl_map_object_from_fd): Only call audit hooks
465 if we are not loading a new audit library.
466 * elf/dl-reloc (_dl_relocate_object): Third parameter is now a bitmask.
467 Only use profiling trampoline for auditing if we are not relocating
468 an audit library.
469 * elf/dl-open.c (dl_open_worker): Adjust _dl_relocate_object call.
470 * elf/rtld.c: Likewise.
471 * sysdeps/generic/ldsodefs.h: Adjust _dl_relocate_object prototype.
472
7e342603
UD
473 * elf/rtld.c (dl_main): Extend help message for --audit option.
474
eee6b143
UD
475 [BZ #9759]
476 * dirent/dirent.h: Adjust prototypes of scandir, scandir64, alphasort,
477 alphasort64, versionsort, and versionsort64 to POSIX 2008.
478 * dirent/alphasort.c: Adjust implementation to type change.
479 * dirent/alphasort64.c: Likewise.
480 * dirent/scandir.c: Likewise.
481 * dirent/versionsort.c: Likewise.
482 * dirent/versionsort64.c: Likewise.
483 * sysdeps/wordsize-64/alphasort.c: Add hack to hide alphasort64
484 declaration.
485 * sysdeps/wordsize-64/versionsort.c: Add hack to hide versionsort64
486 declaration.
487
cd2d01fa
UD
488 [BZ #9880]
489 * inet/inet6_rth.c (inet6_rth_reverse): Compute number of segments
490 correctly. Set segleft member in output as required.
491 Patch partly by Yang Hongyang <yanghy@cn.fujitsu.com>.
492 * inet/tst-inet6_rth.c (do_test): Add tests for inet6_rth_reverse.
493
906dd40d
UD
494 [BZ #9881]
495 * inet/inet6_rth.c (inet6_rth_add): Add some error checking.
496 Patch mostly by Yang Hongyang <yanghy@cn.fujitsu.com>.
497 * inet/Makefile (tests): Add tst-inet6_rth.
498 * inet/tst-inet6_rth.c: New file.
499
71a5bd3e
UD
500 [BZ #5807]
501 * string/strlen.c (strlen): Fix omission in the expression to test
502 for NUL bytes.
503
878b72c5
UD
5042009-03-14 Ulrich Drepper <drepper@redhat.com>
505
fad070ab
UD
506 * crypt/sha256test.c (main): Perform 100,000 'a' test in a second way.
507
a42ad61b
UD
508 * elf/dl-runtime.c (reloc_offset): Define.
509 (reloc_index): Define.
510 (_dl_fixup): Rename reloc_offset parameter to reloc_arg.
511 (_dl_fixup_profile): Likewise. Use reloc_index instead of
512 computing index from reloc_offset.
513 (_dl_call_pltexit): Likewise.
514 * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_resolve): Just pass
515 the relocation index to _dl_fixup.
516 (_dl_runtime_profile): Likewise for _dl_fixup_profile and
517 _dl_call_pltexit.
518 * sysdeps/x86_64/dl-runtime.c: New file.
519
1f7c90a7
UD
520 [BZ #9893]
521 * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix
906dd40d 522 alignment of La_x86_64_regs. Store xmm parameters.
1f7c90a7
UD
523 Patch mostly by Jiri Olsa <olsajiri@gmail.com>.
524
45466462
UD
525 [BZ #9913]
526 * string/strverscmp.c (__strverscmp): Fix case of different digits
527 in fractional part of string.
528 Patch by Jingyu Liu <jyliu@fortinet.com>.
529 * string/Makefile (tests): Add tst-svc2.
530 * string/tst-svc2.c: New file.
531
532 * string/strverscmp.c (__strverscmp): Optimize size of tables.
533
878b72c5
UD
534 * locale/iso-639.def: Add Min Nan.
535
f53713a8
UD
5362009-03-11 Carlos Eduardo Seo <cseo@linux.vnet.ibm.com>
537
878b72c5 538 [BZ #9948]
f53713a8
UD
539 * elf/dl-sysdep.c (_dl_show_auxv): Add support for AT_BASE_PLATFORM.
540
f81ce288
UD
5412009-03-14 Ulrich Drepper <drepper@redhat.com>
542
f53713a8
UD
543 * elf/dl-sysdep.c (auxvars): Compress data structure.
544
f81ce288
UD
545 * sysdeps/i386/dl-machine.h (elf_machine_rel): Implement
546 STT_GNU_IFUNC handling.
547 (elf_machine_rela): Likewise.
548
425ce2ed
UD
5492009-03-13 Ulrich Drepper <drepper@redhat.com>
550
551 * config.h.in (USE_MULTIARCH): Define.
552 * configure.in: Handle --enable-multi-arch.
553 * elf/dl-runtime.c (_dl_fixup): Handle STT_GNU_IFUNC.
554 (_dl_fixup_profile): Likewise.
555 * elf/do-lookup.c (dl_lookup_x): Likewise.
556 * sysdeps/x86_64/dl-machine.h: Handle STT_GNU_IFUNC.
557 * elf/elf.h (STT_GNU_IFUNC): Define.
558 * include/libc-symbols.h (libc_ifunc): Define.
559 * sysdeps/x86_64/cacheinfo.c: If USE_MULTIARCH is defined, use the
560 framework in init-arch.h to get CPUID values.
561 * sysdeps/x86_64/multiarch/Makefile: New file.
562 * sysdeps/x86_64/multiarch/init-arch.c: New file.
563 * sysdeps/x86_64/multiarch/init-arch.h: New file.
564 * sysdeps/x86_64/multiarch/sched_cpucount.c: New file.
565
566 * config.make.in (experimental-malloc): Define.
567 * configure.in: Handle --enable-experimental-malloc.
568 * malloc/Makefile: Handle experimental-malloc flag.
569 * malloc/malloc.c: Implement PER_THREAD and ATOMIC_FASTBINS features.
570 * malloc/arena.c: Likewise.
571 * malloc/hooks.c: Likewise.
572 * malloc/malloc.h: Define M_ARENA_TEST and M_ARENA_MAX.
573
e7f110cd
UD
5742009-03-11 Ulrich Drepper <drepper@redhat.com>
575
576 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Add branch
577 prediction. A few size optimizations.
578
bd82a247
UD
5792009-03-10 Ulrich Drepper <drepper@redhat.com>
580
581 * time/tzset.c: Optimize a bit for size.
582
a99e59d7
UD
5832009-03-10 Jakub Jelinek <jakub@redhat.com>
584
585 * include/stdio.h (fmemopen): Add libc_hidden_proto.
586 * libio/fmemopen.c (fmemopen): Add libc_hidden_def.
587
588 * elf/sprof.c: Avoid warning about multi-line comment.
589
686f8c9d
UD
5902009-03-10 Ulrich Drepper <drepper@redhat.com>
591
592 * time/tzset.c (__tzset_parse_tz): Use correct string when parsing
593 DST name.
594 * time/tst-posixtz.c: Add tests for quoted timezone names.
595
7db0cc42
UD
5962009-03-10 Jakub Jelinek <jakub@redhat.com>
597
598 * posix/unistd.h (_POSIX_VERSION, _POSIX2_VERSION, _POSIX2_C_BIND,
599 _POSIX2_C_DEV, _POSIX2_SW_DEV, _POSIX2_LOCALEDEF): Define to
600 200809L instead of 200112L.
601 (_XOPEN_VERSION): For __USE_XOPEN2K8 define to 700.
602 * posix/tst-sysconf.c (STDVER): Define to 200809L instead of 200112L.
603
eec4b454
UD
604 * stdlib/quick_exit.c (quick_exit): Pass &__quick_exit_funcs
605 instead of __quick_exit_funcs to __run_exit_handlers.
606 * stdlib/at_quick_exit.c (at_quick_exit): Add attribute_hidden.
607 * stdlib/exit.h (__run_exit_handlers): Add noreturn attribute.
608 (__cxa_at_quick_exit): Remove attribute_hidden.
609 * stdlib/exit.c (exit): Pass &__exit_funcs instead of __exit_funcs
610 to __run_exit_handlers.
611 * stdlib/cxa_at_quick_exit.c (__cxa_at_quick_exit): Remove
612 attribute_hidden.
613
d7276cee
UD
6142009-03-10 Ulrich Drepper <drepper@redhat.com>
615
616 * po/id.po: Update from translation team.
617
1454da21
UD
6182009-02-18 Jakub Jelinek <jakub@redhat.com>
619
620 * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S: Use
621 .machine push; .machine "power6" and .machine pop around mtfsf
622 insns outside of _ARCH_PWR6 define.
623 * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S: Likewise.
624 * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S:
625 Likewise.
626 * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S:
627 Likewise.
628 * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c (_SET_DI_FPSCR): Likewise.
629 * sysdeps/powerpc/fpu/fenv_libc.h (fesetenv_register,
630 relax_fenv_state): Likewise.
631
130ca12e
UD
6322009-03-08 Ulrich Drepper <drepper@redhat.com>
633
610e67ed
UD
634 * stdlib/Makefile (routines): Add quick_exit, at_quick_exit, and
635 cxa_at_quick_exit.
636 (static-only-routines): Add at_quick_exit.
637 * stdlib/Versions: Export quick_exit and __cxa_at_quick_exit for
638 GLIBC_2.10.
639 * stdlib/quick_exit.c: New file.
640 * stdlib/at_quick_exit.c: New file.
641 * stdlib/cxa_at_quick_exit.c: New file.
642 * stdlib/cxa_atexit.c (__cxa_atexit): Move body to new function. Call
643 it appropriately.
644 (__internal_atexit): New function.
645 (__new_exitfn): Now takes parameter to point to the list to use.
646 * stdlib/cxa_finalize.c: Remove quick_exit handlers, don't call them.
647 * stdlib/exit.c (__run_exit_handlers): New function. Split from...
648 (exit): ...here. Just call __run_exit_handlers appropriately.
649 * stdlib/exit.h: Declare __quick_exit_funcs, __run_exit_handlers,
650 __internal_atexit, __cxa_at_quick_exit. Adjust __new_exitfn.
651 * stdlib/on_exit.c: Adjust call to __new_exitfn.
652 * stdlib/stdlib.h: Declare at_quick_exit and quick_exit.
653
130ca12e
UD
654 * po/id.po: Update from translation team.
655
9a4f9d1f
UD
6562009-03-07 Ulrich Drepper <drepper@redhat.com>
657
658 * po/ru.po: Update from translation team.
659
6d781c94
UD
6602009-03-04 Ulrich Drepper <drepper@redhat.com>
661
662 * po/nl.po: Update from translation team.
663
e00c5ece
UD
6642009-03-03 Ulrich Drepper <drepper@redhat.com>
665
99eb932f
UD
666 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Declare fallocate{,64}.
667 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
668 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
669 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
670 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
671 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
672 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
673
e00c5ece
UD
674 * po/pl.po: Update from translation team.
675
749f5cc9
UD
6762009-03-02 Ulrich Drepper <drepper@redhat.com>
677
1b994772 678 [BZ #7083]
749f5cc9
UD
679 * sysdeps/unix/sysv/linux/fallocate.c: New file.
680 * sysdeps/unix/sysv/linux/fallocate64.c: New file.
681 * sysdeps/unix/sysv/linux/wordsize-64/fallocate64.c: New file.
682 * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c: New file.
683 * sysdeps/unix/sysv/linux/i386/fallocate64.c: New file.
684 * sysdeps/unix/sysv/linux/i386/fallocate.c: New file.
685 * sysdeps/unix/sysv/linux/Versions: Export fallocate and fallocate64
686 for GLIBC_2.10.
687 * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
688 Add fallocate and fallocate64.
689
690 * io/fcntl.h: Pretty printing.
691
6219e3cc
JJ
6922009-03-02 Richard Guenther <rguenther@suse.de>
693
694 * misc/sys/cdefs.h (__extern_always_inline): Add __artificial__
695 attribute also for non-C99 inline semantics variant.
696
134a9766
UD
6972009-02-12 Carlos Eduardo Seo <cseo@linux.vnet.ibm.com>
698
699 * sysdeps/powerpc/powerpc32/power7/fpu/Implies: New file.
700 * sysdeps/powerpc/powerpc32/power7/Implies: Likewise.
701 * sysdeps/powerpc/powerpc64/power7/fpu/Implies: Likewise.
702 * sysdeps/powerpc/powerpc64/power7/Implies: Likewise.
703 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/fpu/Implies:
704 Likewise.
705 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/fpu/Implies:
706 Likewise.
707
95bc1633
UD
7082009-03-02 Ulrich Drepper <drepper@redhat.com>
709
710 * po/cs.po: Update from translation team.
711
43ea48a5
UD
7122009-02-28 Ulrich Drepper <drepper@redhat.com>
713
714 * po/bg.po: Update from translation team.
715 * po/sv.po: Likewise.
f5faa3b6 716 * po/fi.po: Likewise.
45572c23 717 * po/vi.po: Likewise.
43ea48a5 718
e965d514
RM
7192009-02-27 Roland McGrath <roland@redhat.com>
720
721 * Makeconfig (%.v.i): Depend on Makeconfig.
722 Exclude % lines from initial #-comment removal.
723
56a9651f
UD
7242009-02-27 Ulrich Drepper <drepper@redhat.com>
725
726 * po/ko.po: Update from translation team.
727
682825ce
RM
7282009-02-26 Roland McGrath <roland@redhat.com>
729
730 * shadow/lckpwdf.c (__lckpwdf): Move FLAGS inside block using it,
731 avoids unused warning.
732
a3c37506
UD
7332009-02-26 Andrew Stubbs <ams@codesourcery.com>
734 SUGIOKA Toshinobu <sugioka@itonet.co.jp>
735
736 * sysdeps/unix/sysv/linux/sh/sys/procfs.h: Don't include signal.h,
737 sys/ucontext.h and asm/elf.h. Include sys/user.h.
738 * sysdeps/unix/sysv/linux/sh/sys/user.h: Don't include features.h
739 and asm/user.h. Include asm/ptrace.h.
740 (PTRACE_GETREGS, PTRACE_SETREGS, PTRACE_GETFPREGS,
741 PTRACE_SETFPREGS, PTRACE_GETFDPIC, PTRACE_GETFDPIC_EXEC,
742 PTRACE_GETFDPIC_INTERP, PTRACE_GETDSPREGS, PTRACE_SETDSPREGS):
743 Undefine.
744 (start_thread): Don't undefine.
745 (elf_greg_t, ELF_NGREG, elf_fpregset_t, user_fpu_struct, user):
746 Define.
747
f503060b
UD
7482009-02-26 Ulrich Drepper <drepper@redhat.com>
749
6cbe890a
UD
750 * wctype/wctype.h: The *_l functions are in POSIX 2008.
751 * wcsmbs/wchar.h: mbsnrtowcs, open_wmemstream, wcpcpy, wcpncpy,
752 wcscasecmp, wcsdup, wcsncasecmp, wcsnlen, wcsnrtombs,
753 wcscasecmp_l, wcsncasecmp_l, wcscoll_l, and wcsxfrm_l.
754 * sysdeps/mach/hurd/bits/posix_opt.h: Reset value of macros from
755 200112L to 200809L.
756 * sysdeps/unix/sysv/linux/bits/posix_opt.h: Likewise.
757 * posix/getconf.c (vars): Add _SC_THREAD_ROBUST_PRIO_INHERIT and
758 _SC_THREAD_ROBUST_PRIO_PROTECT entries.
759 * bits/confname.h: Add _SC_THREAD_ROBUST_PRIO_INHERIT and
760 _SC_THREAD_ROBUST_PRIO_PROTECT.
761 * posix/unistd.h: fexecve is in POSIX 2008.
762 * time/time.h: strftime_l is in POSIX 2008.
763 * io/sys/stat.h: futimens is in POSIX 2008.
764 * string/strings.h: strcasecmp_l and strncasecmp_l are in POSIX 2008.
765 * string/string.h: stpcpy, stpncpy, strndup, strnlen, strsignal,
766 strcoll_l, strerror_l, and strxfrm_l are in POSIX 2008.
767 * stdlib/stdlib.h: mkdtemp is in POSIX 2008.
f503060b
UD
768 * libio/stdio.h: dprintf, fmemopen, getdelim, getline,
769 open_memstream, and vdprintf are in POSIX 2008.
770
2e6d6bac
UD
7712009-02-25 Ulrich Drepper <drepper@redhat.com>
772
3e6b0a28 773 * include/features.h: Define macros for XPG7/POSIX 2008.
77db439e
UD
774 * ctype/ctype.h: The *_l functions are in POSIX 2008.
775 * dirent/dirent.h: alphasort, dirfd, scandir, and fdopendir are in
776 POSIX 2008.
1f04d005
UD
777 * locale/langinfo.h: nl_langinfo_l is in POSIX 2008.
778 * locale/xlocale.h: Define locale_t type.
779 * locale/locale.h: duplocale, freelocale, newlocale, uselocale are
780 in POSIX 2008. Don't define locale_t here.
781 * stdlib/monetary.h: strfmon_l is in POSIX 2008.
3e6b0a28
UD
782 * sysdeps/unix/sysv/linux/bits/stat.h: Protect UTIME_NOW and
783 UTIME_OMIT only with __USE_ATFILE.
1f04d005
UD
784 * signal/signal.h: Declare psignal and psiginfo for POSIX 2008.
785 * stdio-common/psiginfo.c: New file.
786 * stdio-common/psiginfo-data.h: New file.
787 * stdio-common/psiginfo-define.h: New file.
788 * stdio-common/Makefile (routines): Add psiginfo.
789 * stdio-common/Versions: Export psiginfo for GLIBC_2.10.
3e6b0a28
UD
790 * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Likewise.
791 * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Likewise.
792 * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
793 * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
794 * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
795 * io/sys/stat.h: Move mknodat definition into same conditional as
796 mknod.
797 * time/sys/time.h: futimesat is not among the functions accepted
798 into the POSIX standard.
799
2e6d6bac
UD
800 * include/features.h: If no feature selection given and we select
801 by default a POSIX mode, also define __USE_POSIX_IMPLICITLY.
802 * posix/Versions: Export __posix_getopt.
803 * posix/getopt.c (_getopt_initialize): Take additional parameter.
804 Use it to alternatively initialize __posixly_correct.
805 (_getopt_internal_r): Take addition parameter. Pass on to
806 _getopt_initialize.
807 (_getopt_internal): Take addition parameter. Pass on to
808 _getopt_internal_r.
809 (getopt): Pass additional zero to _getopt_internal.
810 (__posix_getopt): New function.
811 * posix/getopt.h: Add redirection for getopt.
812 * posix/getopt1.c (getopt_long): Pass additional zero to
813 _getopt_internal.
814 (getopt_long_only): Likewise.
815 (_getopt_long_r): Pass additional zero to _getopt_internal_r.
816 (_getopt_long_only_r): Likewise.
817 * posix/getopt_int.h: Adjust declarations of _getopt_internal and
818 _getopt_internal_r.
819
67108e40
UD
8202009-02-24 Ulrich Drepper <drepper@redhat.com>
821
822 * bits/confname.h: Define _SC_TRACE_EVENT_NAME_MAX, _SC_TRACE_NAME_MAX,
823 _SC_TRACE_SYS_MAX, _SC_TRACE_USER_EVENT_MAX, _SC_XOPEN_STREAMS.
824 * sysdeps/posix/sysconf.c (__sysconf): Handle
825 _SC_TRACE_EVENT_NAME_MAX, _SC_TRACE_NAME_MAX, _SC_TRACE_SYS_MAX,
826 _SC_TRACE_USER_EVENT_MAX, _SC_XOPEN_STREAMS.
827
1cccb96f
RM
8282009-02-24 Roland McGrath <roland@redhat.com>
829
830 [BZ #9895]
831 * README.template: Reworded not to use substituted version number.
832 Renamed to ...
833 * README: ... here (no longer generated).
834 * Makefile (README): Target removed.
835
82780cbe
UD
8362009-02-24 Ulrich Drepper <drepper@redhat.com>
837
5be0a688 838 * sysdeps/unix/sysv/linux/sysconf.c (__sysconf):
77db439e 839 /proc/sys/kernel/rtsig_max doesn't exist anymore, use getrlimit
5be0a688
UD
840 instead.
841
8c4a5f42
UD
842 * io/sys/stat.h: The lstat functions have been mandatory since 2001.
843
82780cbe
UD
844 * time/tzset.c (tzset_internal): Correct parsing of TZ envvar.
845
77c571dd
UD
8462009-02-22 Ulrich Drepper <drepper@redhat.com>
847
848 * po/bg.po: Update from translation team.
849
d82a27f8
JJ
8502009-02-16 Jakub Jelinek <jakub@redhat.com>
851
852 * stdlib/monetary.h: Uglify function parameter names.
853 * sunrpc/rpc/pmap_clnt.h: Likewise.
854 * sunrpc/rpc/svc.h: Likewise.
855 * sunrpc/rpc/xdr.h: Likewise.
856 * sunrpc/rpc/clnt.h: Likewise.
857 * resolv/netdb.h: Likewise.
858 * resolv/arpa/nameser.h: Likewise.
859 * resolv/resolv.h: Likewise.
860 * argp/argp.h: Likewise.
861 * locale/langinfo.h: Likewise.
862 * io/sys/stat.h: Likewise.
863 * posix/spawn.h: Likewise.
864 * nis/rpcsvc/nislib.h: Likewise.
865 * malloc/obstack.h: Likewise.
866 * sysdeps/ia64/bits/link.h: Likewise.
867 * sysdeps/i386/bits/link.h: Likewise.
868 * sysdeps/s390/bits/link.h: Likewise.
869 * sysdeps/powerpc/bits/link.h: Likewise.
870 * sysdeps/x86_64/bits/link.h: Likewise.
871 * sysdeps/sparc/bits/link.h: Likewise.
872 * sysdeps/sh/bits/link.h: Likewise.
873 * sysdeps/unix/sysv/linux/i386/sys/io.h: Likewise.
874 * sysdeps/unix/sysv/linux/x86_64/sys/io.h: Likewise.
875 * sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: Likewise.
876 * sysdeps/unix/sysv/linux/sys/eventfd.h: Likewise.
877
58a7457e
JJ
8782008-12-01 Fredrik Unger <fred@tree.se>
879
880 * soft-fp/double.h [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_SEMIRAW_D,
881 FP_UNPACK_SEMIRAW_DP): Use _FP_UNPACK_RAW_1 instead of
882 _FP_UNPACK_RAW_2, fix up first argument.
883
f43b4be6
UD
8842009-02-15 Ulrich Drepper <drepper@redhat.com>
885
886 * sysdeps/unix/sysv/linux/getsysstats.c (next_line): New function.
887 (GET_NPROCS_PARSER): Change parameters and use next_line.
888 (__get_nprocs): Rewrite to not use stdio routines.
889 * sysdeps/unix/sysv/linux/sparc/getsysstats.c (GET_NPROCS_PARSER):
890 Change parameters and use next_line.
891
20e498bd
UD
8922009-02-13 Ulrich Drepper <drepper@redhat.com>
893
894 [BZ #5381]
895 * nscd/nscd.h: Remove definitions and declarations for mem_in_flight.
896 Change mempool_alloc prototype.
897 * nscd/mem.c (gc): Don't handle mem_in_flight.
898 (mempool_alloc): Third parameter now only indicates whether this is the
899 first call (to allocate data) or not. If it is, get db rdlock.
900 Release it on error. Don't handle mem_in_flight.
901 * nscd/aicache.c (addhstaiX): Mark he parameter as const.
902 Adjust third parameter of mempool_alloc calls.
903 Nothing to do here in case mempool_alloc fails.
904 Avoid local variable shadowing parameter. No need to get db rdlock
905 before calling cache_add.
906 * nscd/cache.c (cache_add): Adjust call to mempool_alloc. There is
907 no mem_in_flight array anymore.
908 * nscd/connections.c: Remove definition and handling of mem_in_flight.
909 * nscd/grpcache.c (cache_addgr): Adjust third parameter of
910 mempool_alloc calls. Mark he parameter as const. Nothing to do here
911 in case mempool_alloc fails. No need to get db rdlock before calling
912 cache_add.
913 * nscd/hstcache.c (cache_addhst): Likewise.
914 * nscd/initgrcache.c (addinitgroupsX): Likewise.
915 * nscd/servicescache.c (cache_addserv): Likewise.
916 * nscd/pwdcache.c (cache_addpw): Likewise. Remove some debugging code.
917
d8111eac
UD
9182009-02-11 Ulrich Drepper <drepper@redhat.com>
919
920 * po/lt.po: Update from translation team.
921
40e2fc8b
UD
9222009-02-10 Ulrich Drepper <drepper@redhat.com>
923
924 * elf/dl-load.c (open_verify): In case VALID_ELF_HEADER is
925 defined, allow additional data to be added using the optional
926 MORE_ELF_HEADER_DATA macro.
927 * sysdeps/unix/sysv/linux/ldsodefs.h (VALID_ELF_HEADER,
928 VALID_ELF_OSABI, VALID_ELF_ABIVERSION, MORE_ELF_HEADER_DATA): Define.
929
6c03cd11
UD
9302009-02-08 Ulrich Drepper <drepper@redhat.com>
931
932 * include/atomic.h: Define catomic_and if not already defined.
933 * sysdeps/x86_64/bits/atomic.h: Define catomic_and.
934 * sysdeps/i386/i486/bits/atomic.h: Likewise.
935
bc16e0c4
UD
9362009-02-07 Ulrich Drepper <drepper@redhat.com>
937
78ac92ad
UD
938 * malloc/malloc.c (_int_free): Second argument is now mchunkptr.
939 Change all callers.
6dd6a580 940 (_int_realloc): Likewise. Third argument is now padded size
78ac92ad 941 All _int_* functions are now static.
6dd6a580 942
78ac92ad
UD
943 * malloc/hooks.c: Change all callers to _int_free and _int_realloc.
944 * malloc/arena.c: Likewise.
945 * include/malloc.h: Remove now unnecessary declarations of the _int_*
946 functions.
947
7dddb4bd
UD
948 * sunrpc/rpc_common.c: We cannot move _null_auth into .rodata that
949 easily.
950
bfacf1af
UD
951 * malloc/malloc.c: Add branch prediction for use of the hooks.
952
bc16e0c4
UD
953 * grp/compat-initgroups.c [NOT_IN_libc] (__libc_use_alloca): Define.
954
26b62243
UD
9552009-02-06 Ulrich Drepper <drepper@redhat.com>
956
957 [BZ #7095]
958 * bits/confname.h: Add SUSv7 macros for getconf environments.
959 * bits/environments.h: Likewise.
960 * sysdeps/unix/sysv/linux/i386/bits/environments.h: Likewise.
961 * sysdeps/unix/sysv/linux/powerpc/bits/environments.h: Likewise.
962 * sysdeps/unix/sysv/linux/s390/bits/environments.h: Likewise.
963 * sysdeps/unix/sysv/linux/sparc/bits/environments.h: Likewise.
964 * sysdeps/unix/sysv/linux/x86_64/bits/environments.h: Likewise.
965 * posix/confstr.c: Handle SUSv5 and SUSv7 environments.
966 * posix/getconf.c: Likewise.
967 * posix/sysconf.c: Likewise.
968 * sysdeps/posix/sysconf.c: Likewise.
969 * posix/Makefile (getconf.speclist): Also collect SUSv5 and SUSv7
970 environments.
971
3fe4c5b3
UD
9722009-01-16 Petr Baudis <pasky@suse.cz>
973
974 [BZ #9753]
975 * resolv/res_libc.c (__res_maybe_init): Call __res_vinit()
976 even if we currently have zero nscount.
977
cbbcaf23
UD
9782009-02-06 Ulrich Drepper <drepper@redhat.com>
979
1a9dd4e4
UD
980 [BZ #9781]
981 * grp/compat-initgroups.c (compat_call): Switch to use malloc when
982 the input line is too long.
983
51f8846e
UD
984 * po/Makefile (libc.pot): Add f_print as function taking c-format
985 parameter.
986
cbbcaf23
UD
987 * debug/xtrace.sh: Unify translatable messages.
988 * elf/ldd.bash.in: Likewise.
989 * elf/sprof.c: Likewise.
990 * locale/programs/locale.c: Likewise.
991 * malloc/memusage.sh: Likewise.
992 * nss/getent.c: Likewise.
993
9942009-02-06 Joseph Myers <joseph@codesourcery.com>
995
996 * debug/pcprofiledump.c (print_version,
997 argp_program_version_hook): New function.
998 * elf/ldconfig.c (more_help): New function.
999 (argp): Use it.
1000 * elf/sln.c (usage): New function.
1001 (main): Support --help and --version.
1002 * malloc/memusagestat.c (print_version): New function.
1003 (argp_program_version_hook): New variable.
1004 * nscd/nscd.c (more_help): New function.
1005 (argp): Use it.
1006 * posix/getconf.c (main): Send --version output to stdout.
1007 Support --help.
1008 * sunrpc/rpc_main.c (usage, options_usage): Take STREAM and STATUS
1009 arguments. All callers changed.
1010 (print_version): New function.
1011 (parseargs): Support --help and --version.
1012 * sunrpc/rpcinfo.c (usage): Take STREAM argument. All callers
1013 changed.
1014 (print_version): New function.
1015 (main): Use getopt_long. Support --help and --version.
1016 * sysdeps/unix/sysv/linux/lddlibc4.c (main): Support --help and
1017 --version.
1018
88a3b8f9
UD
10192009-02-06 Ulrich Drepper <drepper@redhat.com>
1020
e2e390fa
UD
1021 * malloc/memusage.c (DEFAULT_BUFFER_SIZE): Change to 32768.
1022 (update_data): Fix handling of wrapping back
c3ab42a8
UD
1023 to the beginning of the buffer.
1024
88a3b8f9
UD
1025 [BZ #9823]
1026 * stdio-common/psignal.c (psignal): Fix test for empty string.
1027
62f63c47
UD
10282009-02-05 Ulrich Drepper <drepper@redhat.com>
1029
4f7408c7
UD
1030 * include/rpc/auth.h: Use libc_hidden_proto for _null_auth.
1031 * sunrpc/rpc_common.c: Add libc_hidden_def for _null_auth. Also
1032 move _null_auth to .rodata.
1033
970aa10f
UD
1034 * time/tzset.c (__tzset_parse_tz): DST offset must also allow hour
1035 value of 24.
1036
52de761a
UD
1037 * intl/dcigettext.c (DCIGETTEXT): Avoid some code duplication.
1038
62f63c47
UD
1039 * sysdeps/unix/opendir.c (__alloc_dir): We have a lot more memory
1040 today than when the original code was written. Use larger
1041 buffers. This also makes it unnecessary to have stat information,
1042 if this causes extra efforts.
1043 (__opendir): In case O_DIRECTORY works, don't call fstat just for
1044 __alloc_dir.
1045
0899b889
UD
10462009-02-03 Andrew Stubbs <ams@codesourcery.com>
1047
1048 * sysdeps/sh/sh4/dl-trampoline.S: Only set HAVE_FPU if __SH_FPU_ANY__
1049 is set.
1050 * sysdeps/sh/sh4/setjmp.S: Support SH4-NOFPU.
1051 * sysdeps/sh/sh4/__longjmp.S: Likewise.
1052 * sysdeps/unix/sysv/linux/sh/sh4/getcontext.S: Likewise.
1053 * sysdeps/unix/sysv/linux/sh/sh4/setcontext.S: Likewise.
1054 * sysdeps/unix/sysv/linux/sh/sh4/swapcontext.S: Likewise.
1055 * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Likewise.
1056
22cc3f75
UD
10572009-02-04 Ulrich Drepper <drepper@redhat.com>
1058
1059 * po/ru.po: Update from translation team.
1060
a71433e7
UD
10612008-11-17 Nathan Sidwell <nathan@codesourcery.com>
1062
1063 * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (struct sigevent):
1064 Add _tid slot to maintain consistency with kernel.
1065
82f2e9c6 10662009-02-04 Ulrich Drepper <drepper@redhat.com>
3a2e9947 1067
82f2e9c6
UD
1068 * libio/wfileops.c (_IO_wfile_underflow): Fix handling of
1069 incomplete characters at end of input buffer.
1070 * libio/Makefile (tests): Add tst-fgetwc.
1071 * libio/tst-fgetwc.c: New file.
1072 * libio/tst-fgetwc.input: New file.
3a2e9947 1073
ba022c06
UD
10742009-02-02 Andrew Stubbs <ams@codesourcery.com>
1075
1076 * sysdeps/unix/sysv/linux/sh/Makefile (libm.so-no-z-defs): Define.
1077
1b14353e
UD
10782009-02-02 Ulrich Drepper <drepper@redhat.com>
1079
1080 [BZ #9793]
1081 * iconv/gconv_trans.c (__gconv_transliterate): Don't change
1082 *OUTBUFSTART unless the whole output fit into the buffer.
1083 * iconv/Makefile (tests): Add tst-iconv4.
1084 * iconv/tst-iconv4.c: New file.
1085
ebc22416
UD
10862009-02-01 Ulrich Drepper <drepper@redhat.com>
1087
1088 * sysdeps/x86_64/cacheinfo.c (intel_02_known): Add new descriptors.
1089 * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
1090
7c8a6732
UD
10912009-01-29 Andrew Stubbs <ams@codesourcery.com>
1092
1093 * elf/Makefile (ld.so): Adjust the sed script to insert _begin in to
1094 newer linker scripts.
1095
43149780
UD
10962009-01-30 Ulrich Drepper <drepper@redhat.com>
1097
1098 [BZ #7040]
1099 * sysdeps/unix/sysv/linux/sys/inotify.h: Second parameter of
1100 inotify_rm_watch should have type int.
1101
bd4ace0b
UD
11022009-01-06 Steven Munroe <sjmunroe@us.ibm.com>
1103
1104 * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S (__longjmp):
1105 Make aligned_restore_vmx a local symbol.
1106 * sysdeps/powerpc/powerpc64/__longjmp-common.S (__longjmp):
1107 Likewise.
1108
430902da
AJ
11092009-01-30 Andreas Jaeger <aj@suse.de>
1110
1111 * sysdeps/unix/sysv/linux/bits/shm.h (SHM_EXEC): Define.
1112 * sysdeps/unix/sysv/linux/ia64/bits/shm.h (SHM_EXEC): Define.
1113 * sysdeps/unix/sysv/linux/powerpc/bits/shm.h (SHM_EXEC): Define.
1114 * sysdeps/unix/sysv/linux/s390/bits/shm.h (SHM_EXEC): Define.
1115 * sysdeps/unix/sysv/linux/sh/bits/shm.h (SHM_EXEC): Define.
1116 * sysdeps/unix/sysv/linux/sparc/bits/shm.h (SHM_EXEC): Define.
1117 * sysdeps/unix/sysv/linux/x86_64/bits/shm.h (SHM_EXEC): Define.
1118
b7219e53
UD
11192009-01-11 Ryan S. Arnold <rsa@us.ibm.com>
1120
1121 [BZ #9726]
1122 * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c (_SET_DI_FPSCR,
1123 _SET_SI_FPSCR): Clobber fp0 to prevent erroneous test-case passes.
1124
11252009-01-08 Ryan S. Arnold <rsa@us.ibm.com>
1126
1127 [BZ #9726]
1128 * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S
1129 (__CONTEXT_FUNC_NAME): Fix mtfsf to use fp31 instead of fp0.
1130 * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S
1131 (__CONTEXT_FUNC_NAME): Fix mtfsf to use fp31 instead of fp0.
1132
a3bd2846
UD
11332009-01-11 Thomas Schwinge <tschwinge@gnu.org>
1134
1135 * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Use
1136 memcpy instead of memcmp.
1137 (_dl_setup_pointer_guard): Likewise.
1138
1fdd89a7
UD
11392009-01-30 Ulrich Drepper <drepper@redhat.com>
1140
1141 * malloc/malloc.c (sYSMALLOc): Don't use assert when detecting
1142 manipulated brk, use malloc_printerr.
1143 * misc/sbrk.c (__sbrk): Better error handling for nonsense
1144 requests.
1145
8585cb74
UD
11462009-01-30 Jakub Jelinek <jakub@redhat.com>
1147
1148 * string/string.h (memchr, strchr, strrchr, strpbrk, strstr, index,
1149 rindex): For C++ add inlines so that they can be recognized as
1150 builtins.
1151 * string/strings.h: Define correct C++ prototypes for gcc 4.4.
1152
d8387c7b
UD
11532009-01-29 Ulrich Drepper <drepper@redhat.com>
1154 Jakub Jelinek <jakub@redhat.com>
1155
cdf77dd8
UD
1156 * string/string.h: Define correct C++ prototypes for gcc 4.4.
1157 * wcsmbs/wchar.h: Likewise.
d8387c7b 1158
647925b2
UD
11592009-01-29 Ulrich Drepper <drepper@redhat.com>
1160
1161 * sysdeps/i386/stackinfo.h (stackinfo_get_sp): Define.
1162 (stackinfo_sub_sp): Define.
1163
5627534a
UD
11642009-01-28 Ulrich Drepper <drepper@redhat.com>
1165
fd537e53
UD
1166 [BZ #9750]
1167 * nscd/mem.c (gc): Use alloca_count to get the real stack usage.
1168 * include/alloca.h (alloca_account): Define.
1169 * sysdeps/x86_64/stackinfo.h (stackinfo_get_sp): Define.
1170 (stackinfo_sub_sp): Define.
1171
00f5df0e
UD
1172 * nscd/connections.c (nscd_init): If database file access fails
1173 check whether this is due to permission problems and bail in that
1174 case.
31d322a2 1175
5627534a
UD
1176 [BZ #9741]
1177 * nscd/mem.c (gc): Fix assignment of he_data in case malloc is used.
1178 Reported by Jun'ichi Nomura <j-nomura@ce.jp.nec.com>.
1179
a7bd183f
UD
11802009-01-14 Kaz Kojima <kkojima@rr.iij4u.or.jp>
1181
1182 * sysdeps/unix/sysv/linux/sh/sysdep.h (INTERNAL_SYSCALL):
1183 Add "t" to clobber list.
1184 (INTERNAL_SYSCALL_NCS): Likewise.
1185
1dd75769
UD
11862009-01-28 Ulrich Drepper <drepper@redhat.com>
1187
1188 * nss/getent.c (print_networks): Don't print comma between aliases.
1189
25e84177
UD
11902009-01-23 Ulrich Drepper <drepper@redhat.com>
1191
1192 * sysdeps/unix/sysv/linux/tst-clone.c (do_test): Avoid warning.
1193
1194 * misc/hsearch_r.c (hcreate_r): We need at least three elements in
1195 the hash table.
1196 * misc/Makefile (tests): Add bug-hsearch1.
1197 * misc/bug-hsearch1.c: New file.
1198
0699a0ca
RM
11992009-01-22 Roland McGrath <roland@redhat.com>
1200
1201 * Makeconfig (%.v.i): Strip trailing # comments,
1202 not only whole-line comments.
1203
965cb60a
UD
12042009-01-10 Ulrich Drepper <drepper@redhat.com>
1205
1206 * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Take
1207 one parameter. If non-NULL use it to initialize return value.
1208 (_dl_setup_pointer_guard): New function.
1209 * sysdeps/unix/sysv/linux/dl-osinfo.h: Likewise.
1210 * sysdeps/generic/ldsodefs.h: Declare _dl_random.
1211 * elf/rtld.c (security_init): Pass _dl_random to
1212 _dl_setup_stack_chk_guard. Call _dl_setup_pointer_guard to initialize
1213 pointer_chk_guard.
1214 * elf/dl-sysdep.c (_dl_random): New variable.
1215 (_dl_sysdep_start): Handle AT_RANDOM.
1216 (_dl_show_auxv): Likewise.
1217 * elf/dl-support.c (_dl_random): New variable.
1218 (_dl_aux_init): Handle AT_RANDOM.
1219 * csu/libc-start.c [!SHARED] (libc_start_main): Pass _dl_random
1220 to _dl_setup_stack_chk_guard.
1221
1222 * elf/elf.h (AT_RANDOM): Define AT_BASE_PLATFORM and AT_RANDOM.
1223
8be96dd1
RM
12242009-01-10 Roland McGrath <roland@redhat.com>
1225
1226 * nscd/nscd.c (parse_opt): Use argp_error for bad -i argument.
1227
157cd5ac
UD
12282009-01-08 Ulrich Drepper <drepper@redhat.com>
1229
9b1c750e
UD
1230 * sysdeps/i386/fpu/libm-test-ulps: Adjust expm1 errors.
1231
157cd5ac
UD
1232 [BZ #9706]
1233 * nss/nss_files/files-parse.c (strtou32): New function.
1234 (INT_FIELD): Use strotu32 instead of strtoul to unify behavior
1235 across 32-bit and 64-bit platforms.
1236 (INT_FIELD_MAYBE_NULL): Likewise.
1237
960af8c2
JJ
12382009-01-08 Jakub Jelinek <jakub@redhat.com>
1239
1240 [BZ #9720]
1241 * sysdeps/unix/sysv/linux/bits/resource.h (enum __rusage_who): Avoid
1242 comma after RUSAGE_CHILDREN if not -D_GNU_SOURCE.
1243 * sysdeps/unix/sysv/linux/sparc/bits/resource.h (enum __rusage_who):
1244 Likewise.
1245
76c7f2cd
UD
12462009-01-05 Paolo Bonzini <bonzini@gnu.org>
1247
16c124f7 1248 [BZ #697]
76c7f2cd
UD
1249 * posix/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
1250 being NULL also if there are no backreferences.
1251 * posix/rxspencer/tests: Add testcases.
1252
bdb56bac
UD
12532009-01-04 Paolo Bonzini <bonzini@gnu.org>
1254
16c124f7 1255 [BZ #9697]
bdb56bac
UD
1256 * posix/bug-regex17.c: Add testcases.
1257 * posix/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
1258 handling.
1259
0480c901
UD
12602009-01-05 Martin Schwidefsky <schwidefsky@de.ibm.com>
1261
1262 * sysdeps/unix/sysv/linux/s390/bits/libc-vdso.h: New file.
1263 * sysdeps/unix/sysv/linux/s390/gettimeofday.c: New file.
1264 * sysdeps/unix/sysv/linux/s390/init-first.c: New file.
1265 * sysdeps/unix/sysv/linux/s390/Makefile (sysdep_routines): Add dl-vdso
1266 for elf subdir.
1267 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h (INLINE_VSYSCALL,
1268 INTERNAL_VSYSCALL, INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK,
1269 INTERNAL_SYSCALL_NCS, HAVE_CLOCK_GETRES_VSYSCALL and
1270 HAVE_CLOCK_GETTIME_VSYSCALL: Define.
1271 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
1272 * sysdeps/unix/sysv/linux/s390/Versions: New file.
1273
b3918c7d
UD
12742008-12-31 Paolo Bonzini <bonzini@gnu.org>
1275
1276 * posix/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
1277 * posix/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
1278 re_string_skip_chars, re_string_reconstruct): Likewise.
1279 * posix/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
1280
df9293cb
UD
12812008-12-31 Rafael Avila de Espindola <espindola@google.com>
1282
1283 * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr2_r): Check and
1284 adjust the buffer alignment.
1285
c90c1e1c
RM
12862009-01-07 Samuel Thibault <samuel.thibault@ens-lyon.org>
1287
1288 * sysdeps/mach/hurd/Makefile (sysdep_headers) [subdir=socket]:
1289 Add net/ethernet.h net/if_arp.h net/if_ether.h net/if_ppp.h
1290 net/route.h.
1291
1292 * hurd/report-wait.c (describe_number): Use __stpcpy to prepend
1293 flavor to description only when flavor is not NULL.
1294
1295 * hurd/hurdsig.c (signal_allowed): Unlock _hurd_dtable_lock
1296 mutex after SIGIO/SIGURG lookup loop.
1297
5aff6fdf
RM
12982009-01-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
1299
1300 * bits/resource.h (PRIO_PROCESS, PRIO_PGRP, PRIO_USER): Add macros.
1301
b2bcd249
UD
13022009-01-03 Ulrich Drepper <drepper@redhat.com>
1303
1304 * sysdeps/unix/sysv/linux/i386/sysdep.h: Describe 6th argument
1305 handling.
1306
d36ad871
UD
13072009-01-02 Ulrich Drepper <drepper@redhat.com>
1308
ebb2788e
UD
1309 * sysdeps/unix/sysv/linux/kernel-features.h
1310 (__ASSUME_FUTEX_CLOCK_REALTIME): Define.
1311
72098116
UD
1312 * wcsmbs/wcsnrtombs.c (__wcsnrtombs): Create temporary state object
1313 if no output is written.
1314
623d0bf5
UD
1315 * version.h: Bump to 2.10 development.
1316
d36ad871
UD
1317 * posix/getconf.c: Update copyright year.
1318 * nss/getent.c: Likewise.
1319 * iconv/iconvconfig.c: Likewise.
1320 * iconv/iconv_prog.c: Likewise.
1321 * elf/ldconfig.c: Likewise.
1322 * catgets/gencat.c: Likewise.
1323 * csu/version.c: Likewise.
1324 * elf/ldd.bash.in: Likewise.
1325 * elf/sprof.c (print_version): Likewise.
1326 * locale/programs/locale.c: Likewise.
1327 * locale/programs/localedef.c: Likewise.
1328 * nscd/nscd.c (print_version): Likewise.
1329 * debug/xtrace.sh: Likewise.
1330 * malloc/memusage.sh: Likewise.
1331 * malloc/mtrace.pl: Likewise.
1332 * debug/catchsegv.sh: Likewise.
1333
25df09ab
UD
13342008-12-29 Mike Frysinger <vapier@gentoo.org>
1335
1336 * iconvdata/Makefile (iconv-rules): Use LC_ALL=C when running awk
1337 script.
1338
16b7dc27
UD
13392008-12-29 Ulrich Drepper <drepper@redhat.com>
1340
bfbbc63f
UD
1341 * sysdeps/posix/getaddrinfo.c (gaih_inet): When the
1342 gethostbyname4_r function call succeeded, just leave the loop.
1343
0f2ae55c
UD
1344 [BZ #9694]
1345 * wcsmbs/wchar.h: Move undefs for local __need_* constants to the
1346 very end.
5703f472
UD
1347 * wctype/wctype.h: Get wint_t definition directly from <stddef.h>.
1348 * wctype/Makefile (tests): Add bug-wctypeh.
1349 * wctype/bug-wctypeh.c: New file.
0f2ae55c 1350
50e481ce
UD
1351 * nscd/nscd_gethst_r.c (nscd_gethst_r): Don't use nscd if
1352 LOCALDOMAIN is defined.
1353 * nscd/nscd_getai.c (__nscd_getai): Likewise.
1354
217d45cd
UD
1355 * sysdeps/x86_64/bits/select.h: New file.
1356
16b7dc27
UD
1357 * resolv/res_init.c (__res_vinit): Count all servers in statp->nscount.
1358
bf93cd3b
UD
13592008-12-21 Bruno Haible <bruno@clisp.org>
1360
1361 [BZ #9677]
1362 * wcsmbs/mbsnrtowcs.c (__mbsnrtowcs): Create temporary state object
1363 if no output is written.
1364
49159e12
UD
13652008-12-13 Klaus Dittrich <kladit@arcor.de>
1366
1367 * login/utmp_file.c (pututline_file): Replace call to dup2 with
1368 libc internal symbol __dup2 to avoid access through the PLT.
1369
d4f0720b
UD
13702008-12-08 Ulrich Drepper <drepper@redhat.com>
1371
135460f4
UD
1372 [BZ #6545]
1373 * sysdeps/unix/sysv/linux/bits/socket.h (SCM_CREDENTIALS): Make
1374 available only for __USE_GNU.
1375
ed0da352
UD
1376 * inet/Makefile (tests): Add tst-getni2.
1377 * inet/tst-getni2.c: New file.
1378
d4f0720b
UD
1379 [BZ #7080]
1380 * inet/getnameinfo.c (getnameinfo): Check for output buffers being
1381 NULL when NI_NAMEREQD is set.
1382 Patch mostly by Yang Hongyang <yanghy@cn.fujitsu.com>.
1383 * inet/Makefile (tests): Add tst-getni1.
1384 * inet/tst-getni1.c: New file.
1385
cd72adeb
UD
13862008-12-03 Petr Baudis <pasky@suse.cz>
1387
1388 [BZ #7067]
1389 * nscd/connections.c (invalidate_cache): Use prune_run_lock
1390 instead of prune_lock.
1391 (nscd_run_prune): Before calling prune_cache, take prune_run_lock.
1392 * nscd/nscd.h (database_dyn): Add prune_run_cache.
1393
e87946cc
UD
13942008-12-07 Ulrich Drepper <drepper@redhat.com>
1395
200da00a
UD
1396 * resolv/res_send.c (send_dg): Use correct guards for SOCK_CLOEXEC
1397 use.
1398
1399 * sysdeps/unix/sysv/linux/kernel-features.h: Fix typo in accept4
1400 handling.
1401
905ef0da
UD
1402 * resolv/res_init.c (__res_vinit): Always assign to statp->nscount
1403 after reading name server list.
1404
71053765 1405 [BZ #7058]
e87946cc
UD
1406 * nis/nss_nis/nis-hosts.c (_nss_nis_gethostbyname4_r): Fix memory
1407 handling for host name aliases.
1408
d43b8bdd
JJ
14092008-11-24 Arkadiusz Miśkiewicz <arekm@maven.pl>
1410
1411 * sysdeps/i386/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Use LOAD_PIC_REG
1412 instead of doing things manually.
1413
14142008-11-26 Chris Steel <chris.steel.lnx@googlemail.com>
1415
1416 * posix/regex_internal.h (build_wcs_upper_buffer):
1417 Return type is reg_error_t.
1418
25a34eb7
UD
14192008-12-05 Ulrich Drepper <drepper@redhat.com>
1420
f3721ab2
UD
1421 * posix/globtest.sh: Use mktemp to create temporary file and
1422 directory.
1423
25a34eb7
UD
1424 * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_SET_S): Handle large
1425 sets correctly.
1426 (__CPU_CLR_S): Likewise.
1427 (__CPU_ISSET_S): Likewise.
1428
8680179f
UD
14292008-12-05 Joseph Myers <joseph@codesourcery.com>
1430 Ulrich Drepper <drepper@redhat.com>
1431
1432 * scripts/firstversion.awk: Use custom comparison function to compare
1433 version numbers.
1434 * scripts/versions.awk: Use sort invocation which can handle
1435 multi-digit sub-version numbers.
1436
72d50908
UD
14372008-12-04 Ulrich Drepper <drepper@redhat.com>
1438
1439 * locale/programs/ld-address.c (DEFINE_LANGUAGE_CODE2): Define.
1440 * locale/iso-639.def: Add Chhattisgarhi entry.
1441
f93fc0b7
UD
14422008-12-02 Ulrich Drepper <drepper@redhat.com>
1443
da5ac135
UD
1444 * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname3_r): Recognize
1445 ESRCH return value.
1446 (_nss_dns_gethostbyname4_r): Likewise.
1447 * resolv/res_init.c (__res_vinit): Initialize nscount to zero.
1448 * sysdeps/posix/getaddrinfo.c (gaih_inet): In case we use
1449 gethostbyname4_r, we don't have a separate IPv6 status, so copy
1450 the no_data variable.
1451
6f5c3117
UD
1452 * resolv/res_init.c (__res_vinit): Fill in IPv4 name server
1453 information at the correct index.
1454
f93fc0b7
UD
1455 * socket/sys/socket.h: Declare accept4.
1456 * socket/accept4.c: New file.
1457 * sysdeps/unix/sysv/linux/accept4.c: New file.
1458 * sysdeps/unix/sysv/linux/i386/accept4.S: New file.
1459 * socket/Makefile (routines): Add accept4.
1460 * socket/Versions: Export accept4 with version GLIBC_2.10.
1461 * socket/paccept.c: Removed.
1462 * sysdeps/unix/sysv/linux/paccept.c: Removed.
1463 * sysdeps/unix/sysv/linux/i386/paccept.S: Removed.
1464 * Versions.def: Define GLIBC_2.10 for libc.
1465 * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_ACCEPT4.
1466
1467 * nscd/connections.c: Use accept4.
1468
1469 * sysdeps/unix/sysv/linux/i386/socket.S: Fix comment.
1470
1fa7ae05
UD
14712008-12-01 Ulrich Drepper <drepper@redhat.com>
1472
9744268c
UD
1473 * resolv/res_send.c (send_dg): Create sockets with non-blocking
1474 flag already set.
1475
1fa7ae05
UD
1476 * stdlib/setenv.c (unsetenv): Don't search environment if it does
1477 not exist.
30c06371
UD
1478 * stdlib/Makefile (tests): Add tst-unsetenv1.
1479 * stdlib/tst-unsetenv1.c: New file.
1fa7ae05 1480
37a6a271
UD
14812008-11-29 Ulrich Drepper <drepper@redhat.com>
1482
1483 * login/utmp_file.c (file_writable): New variable.
1484 (setutent_file): Don't try to open file for writing.
1485 (pututline_file): Before writing, make descriptor writable if
1486 necessary.
1487
ca4dc0fe
UD
14882008-11-26 Ulrich Drepper <drepper@redhat.com>
1489
be4607eb
UD
1490 * sysdeps/posix/getaddrinfo.c (getaddrinfo): Only restrict search
1491 to IPv4 or IPv6 if an interface has been found.
ca4dc0fe 1492
01a74645
RM
14932008-11-26 Roland McGrath <roland@redhat.com>
1494
24fd0a5b
RM
1495 * sysdeps/unix/sysv/linux/alpha/ipc_priv.h: Renamed to ...
1496 * sysdeps/unix/sysv/linux/powerpc/ipc_priv.h: ... here.
1497
1498 * sysdeps/unix/sysv/linux/alpha/wordexp.c: Renamed to ...
1499 * sysdeps/unix/sysv/linux/ia64/wordexp.c: ... here.
1500 * sysdeps/unix/sysv/linux/sparc/sparc64/wordexp.c: Change #include.
1501
01a74645
RM
1502 * elf/elf.h (NT_386_IOPERM): New macro.
1503 (NT_PPC_VSX): New macro.
1504
c0439b95
RM
15052008-11-25 Roland McGrath <roland@redhat.com>
1506
1507 * sysdeps/alpha, sysdeps/unix/bsd/osf/alpha,
1508 sysdeps/unix/bsd/Attic/osf1/alpha, sysdeps/unix/sysv/linux/alpha,
1509 sysdeps/unix/sysv/linux/alpha/alpha, sysdeps/unix/alpha,
1510 sysdeps/mach/alpha, sysdeps/mach/hurd/alpha:
1511 Subdirectories moved to ports repository.
1512 * configure.in (base_machine): Remove alpha case.
1513
d3dc523b
RM
15142008-11-25 Thomas Schwinge <tschwinge@gnu.org>
1515
1516 * sysdeps/mach/strerror_l.c: New file.
1517
edba7a54
UD
15182008-11-13 Ryan S. Arnold <rsa@us.ibm.com>
1519
1520 [BZ #6411]
1521 * sysdeps/powerpc/fpu/Makefile: Added test case tst-setcontext-fpscr.
1522 * sysdeps/powerpc/fpu/feholdexcpt.c (_FPU_MASK_ALL): Define to replace
1523 magic numbers.
1524 * sysdeps/powerpc/fpu/fenv_libc.h (fesetenv_register): Dynamically
1525 choose mtfsf insn based on PPC_FEATURE_HAS_DFP.
1526 (relax_fenv_state): Same as above.
1527 (FPSCR_29): Reserve bit in ISA 2.05.
1528 (FPSCR_NI): Provide define for compat.
1529 * sysdeps/powerpc/fpu/fesetenv.c (_FPU_MASK_ALL): Define to replace
1530 magic numbers.
1531 * sysdeps/powerpc/fpu/feupdateenv.c (_FPU_MASK_ALL): Define to replace
1532 magic numbers.
1533 * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c: New file. Test case to
1534 test setcontext and swapcontext with dynamic 64-bit FPSCR detection.
1535 * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S (__longjmp): Adjust
1536 access to hwcap to account for hwcap size increase to uint64_t.
1537 * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S (__sigsetjmp ):
1538 Likewise.
1539 * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext-common.S
1540 (*setcontext): Likewise.
1541 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/setcontext.S:
1542 New file.
1543 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/swapcontext.S:
1544 New file.
1545 * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S
1546 (*setcontext): dynamically select mtfsf insn based on
1547 PPC_FEATURE_HAS_DFP. Adjust access to hwcap to account for hwcap size
1548 increase to uint64_t.
1549 * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S
1550 (*swapcontext): dynamically select mtfsf insn based on
1551 PPC_FEATURE_HAS_DFP. Adjust access to hwcap to account for hwcap size
1552 increase to uint64_t.
1553 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/setcontext.S:
1554 New file.
1555 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/swapcontext.S:
1556 New file.
1557 * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S
1558 (*setcontext): dynamically select mtfsf insn based on
1559 PPC_FEATURE_HAS_DFP.
1560 * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S
1561 (*swapcontext): dynamically select mtfsf insn based on
1562 PPC_FEATURE_HAS_DFP.
1563
ec297962
UD
15642008-11-13 Ulrich Drepper <drepper@redhat.com>
1565
b5449f8a 1566 * version.h: Bump for 2.9 release.
f52bb4d7 1567 * include/features.h (__GLIBC_MINOR__): Bump to 9.
b5449f8a 1568
ec297962
UD
1569 [BZ #7029]
1570 * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_ALLOC_SIZE):
1571 Multiply with sizeof of __cpu_mask, not 8 unconditionally after
1572 all the rounding.
1573
3cac8b75
UD
15742008-11-11 Ulrich Drepper <drepper@redhat.com>
1575
0e54a725 1576 [BZ #7009]
3cac8b75
UD
1577 * resolv/nss_dns/dns-host.c (gaih_getanswer_slice): Don't abort for
1578 unknown request types for now.
1579
58a4b51a
RM
15802008-11-11 Roland McGrath <roland@redhat.com>
1581
1582 * sysdeps/x86_64/configure: New file.
1583
1584 * configure.in: Add AC_SUBST(libc_cv_cpp_asm_debuginfo).
1585 * configure: Regenerated.
1586
01bd5e96
JJ
15872008-11-03 Martin Schwidefsky <schwidefsky@de.ibm.com>
1588
1589 * sysdeps/s390/s390-64/dl-trampoline.S (_dl_runtime_profile): Use the
1590 correct instruction to remove the stack frame.
1591
a9069550
JJ
15922008-11-03 Michael Matz <matz@suse.de>
1593
1594 * sysdeps/s390/bits/atomic.h (__arch_compare_and_exchange_val_32_acq,
1595 __arch_compare_and_exchange_val_64_acq): Add "memory" clobber.
1596
4b23f9bd
JJ
15972008-11-07 Jakub Jelinek <jakub@redhat.com>
1598
09f66a4f
JJ
1599 * include/stdio.h (__builtin_fwrite, __builtin_fwrite_unlocked):
1600 Remove.
1601
4b23f9bd
JJ
1602 * bits/libc-tsd.h (__libc_tsd_define, __libc_tsd_address,
1603 __libc_tsd_get, __libc_tsd_set): Add TYPE argument, use it as the type
1604 of the thread variable instead of void *.
1605 * sysdeps/mach/hurd/bits/libc-tsd.h (__libc_tsd_define,
1606 __libc_tsd_address, __libc_tsd_get, __libc_tsd_set): Likewise.
1607 * include/ctype.h (CTYPE_B, CTYPE_TOUPPER, CTYPE_TOLOWER): Adjust
1608 __libc_tsd_define arguments.
1609 (__ctype_b_loc, __ctype_toupper_loc, __ctype_tolower_loc): Adjust
1610 __libc_tsd_address arguments. Remove union hack.
1611 * include/rpc/rpc.h (RPC_VARS): Adjust __libc_tsd_define arguments.
1612 * sunrpc/rpc_thread.c (RPC_VARS): Likewise.
1613 (__rpc_thread_destroy, rpc_thread_multi, __rpc_thread_variables):
1614 Adjust __libc_tsd_{set,get} arguments.
1615 * ctype/ctype-info.c (CTYPE_B, CTYPE_TOUPPER, CTYPE_TOLOWER): Adjust
1616 __libc_tsd_define arguments.
1617 * locale/uselocale.c (__uselocale): Adjust __libc_tsd_{set,get}
1618 arguments.
1619 * locale/lc-ctype.c (_nl_postload_ctype): Likewise.
1620 * locale/global-locale.c (__libc_tsd_LOCALE): Adjust type.
1621 (LOCALE): Adjust __libc_tsd_define arguments.
1622 * locale/localeinfo.h (_NL_CURRENT_LOCALE): Adjust __libc_tsd_get
1623 arguments.
1624 (LOCALE): Adjust __libc_tsd_define arguments.
1625 * sysdeps/mach/hurd/malloc-machine.h (MALLOC): Adjust __libc_tsd_define
1626 arguments.
1627 (tsd_setspecific, tsd_getspecific): Adjust __libc_tsd_{set,get}
1628 arguments.
1629
486bdb88
UD
16302008-11-02 Ulrich Drepper <drepper@redhat.com>
1631
1632 * malloc/malloc.c (public_rEALLOc): When new arena is used, copy
1633 really all bytes. Patch by Denys Vlasenko <dvlasenk@redhat.com>.
1634
64647f9a
UD
16352008-11-01 Ulrich Drepper <drepper@redhat.com>
1636
1637 [BZ #6966]
1638 * misc/hsearch_r.c (hsearch_r): Fix secondary hash function.
1639
acd44dbc
UD
16402008-10-24 Joseph Myers <joseph@codesourcery.com>
1641 Ulrich Drepper <drepper@redhat.com>
1642
1643 * math/tgmath.h (__floating_type): Use __builtin_classify_type in
1644 definition for GCC 3.1 and later.
64647f9a 1645
41e25904
UD
16462008-10-31 Jakub Jelinek <jakub@redhat.com>
1647
1648 * elf/dl-tls.c (__tls_get_addr): After calling _dl_update_slotinfo
1649 refetch dtv, as it might have changed.
1650 * elf/Makefile: Add rules to build and run tst-tls18.
1651 * elf/tst-tls18.c: New test.
1652 * elf/tst-tlsmod18a.c: New file.
1653
e148a644 16542008-09-09 Aurelien Jarno <aurelien@aurel32.net>
97f12390 1655
da9c2314 1656 [BZ #6875]
e148a644
UD
1657 * iconvdata/gconv-modules: Add LATIN9 as an alias to ISO-8859-15.
1658
16592008-10-31 Ulrich Drepper <drepper@redhat.com>
97f12390 1660
6daf1a2f
UD
1661 [BZ #6867]
1662 * sysdeps/powerpc/elf/rtld-global-offsets.sym: Fix typo.
1663
6f576bf6
UD
1664 [BZ #6919]
1665 * posix/spawnattr_getschedparam.c (posix_spawnattr_getschedparam):
1666 Fix length of copy operation.
1667
45a8beb5
UD
16682008-10-02 Pierre Habouzit <madcoder@debian.org>
1669
1670 * sysdeps/unix/sysv/linux/eventfd.c (eventfd): Use the eventfd2 syscall
1671 and fix its calling convention.
1672
ad12e635
UD
16732008-10-07 Andreas Schwab <schwab@suse.de>
1674
1675 [BZ #6942]
1676 * resolv/res_send.c (send_vc): Fix last change.
1677 (send_dg): Align here as well.
1678
3cf44918
UD
16792008-10-31 Ulrich Drepper <drepper@redhat.com>
1680
dbb6ab3e
UD
1681 * sysdeps/unix/sysv/linux/ulimit.c (__ulimit): Handle UL_GETFSIZE
1682 return value in case rlimit is RLIM_INFINITY.
1683
1684 [BZ #6947]
1685 * sysdeps/unix/sysv/linux/ulimit.c (__ulimit): Fix return value
1686 for UL_SETFSIZE.
1828d6b0
UD
1687 * resource/Makefile (tests): Add bug-ulimit1.
1688 * resource/bug-ulimit1.c: New file.
dbb6ab3e 1689
a5ff533e
UD
1690 [BZ #6974]
1691 * sunrpc/rpc_main.c (mkfile_output): Properly handle filename
1692 without dot. Properly terminate the string with a null byte.
1693 Based on a patch by Aurelien Jarno <aurelien@aurel32.net>.
1694
4bed549a
UD
1695 [BZ #6980]
1696 * debug/getgroups_chk.c (__getgroups_chk): Return EINVAL error for
1697 negative sizees.
1698 * posix/bits/unistd.h (getgroups): Call __getgroups_chk for
1699 negative __size.
1700
3cf44918
UD
1701 [BZ #6995]
1702 * sysdeps/powerpc/powerpc32/dl-machine.c: Fix typo in message.
1703
21b07d8b
UD
17042008-10-30 Ulrich Drepper <drepper@redhat.com>
1705
332c4465
UD
1706 * grp/initgroups.c (internal_getgrouplist): Don't prematurely
1707 abort if there is no initgroups_dyn function.
1708
21b07d8b
UD
1709 * resolv/res_send.c (send_dg): On timeout, only return nonzero
1710 result if any of the queries really provided an answer.
1711
4caa3fb7
UD
17122008-10-28 Ulrich Drepper <drepper@redhat.com>
1713
1714 * po/lt.po: Update from translation team.
1715
a22c3a0d
UD
17162008-10-26 Ulrich Drepper <drepper@redhat.com>
1717
1718 * po/id.po: Update from translation team.
1719
49685151
UD
17202008-10-24 Ulrich Drepper <drepper@redhat.com>
1721
1722 * resolv/res_query.c (__libc_res_nquery): Add a few casts.
660675de 1723 Fix tests for existence of second reply.
49685151 1724
8d9d5d35
UD
17252008-10-23 Ulrich Drepper <drepper@redhat.com>
1726
1727 * po/id.po: New file.
1728 Contributed by the Indonesian translation team.
1729
208bc836
UD
17302008-10-22 Dmitry V. Levin <ldv@altlinux.org>
1731
1732 * misc/syslog.c (openlog_internal): Fix __have_sock_cloexec
1733 initialization.
1734
60a23f5a
UD
17352008-10-17 Jakub Jelinek <jakub@redhat.com>
1736
1737 * elf/Makefile: Add rules to build and run tst-tls17.
1738 * elf/tst-tls17.c: New test.
1739 * elf/tst-tlsmod17a.c: New file.
1740 * elf/tst-tlsmod17b.c: Likewise.
1741
292eb817
UD
17422008-10-17 Ulrich Drepper <drepper@redhat.com>
1743
1744 * stdlib/divmod_1.c: Use correct type for dummy variable.
1745 * stdlib/mod_1.c: Likewise.
1746
5df2a427
UD
17472008-10-16 Ulrich Drepper <drepper@redhat.com>
1748
1749 * elf/dl-tls.c (_dl_update_slotinfo): Copy all of the initial DTV.
1750
472e5e08
JJ
17512008-10-16 Jakub Jelinek <jakub@redhat.com>
1752
1753 * sysdeps/unix/sysv/linux/sys/signalfd.h (signalfd): Fix __THROW vs.
1754 __nonnull order for C++.
1755 * sysdeps/unix/sysv/linux/alpha/sys/signalfd.h (signalfd): Likewise.
1756 * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h (signalfd): Likewise.
1757
86900abd
RM
17582008-10-01 Daniel Jacobowitz <dan@codesourcery.com>
1759
1760 * stdlib/longlong.h: Update from GCC.
1761
19c10a47
JJ
17622008-10-09 Jakub Jelinek <jakub@redhat.com>
1763 David S. Miller <davem@davemloft.net>
1764
1765 * sysdeps/sparc/sparc64/sparcv9v/memcpy.S: When not USE_BPR,
1766 make sure any registers used with 64-bit 'branch-on-register'
1767 instructions have their top 32-bits clear.
1768 * sysdeps/sparc/sparc64/sparcv9v/memset.S: Likewise.
1769 * sysdeps/sparc/sparc64/sparcv9v2/memcpy.S: Likewise.
1770
2fdde3b9
UD
17712008-09-18 Andreas Schwab <schwab@suse.de>
1772
1773 [BZ #6942]
1774 * resolv/res_send.c (send_vc): Fix use of unaligned address.
f00d47a3 1775 Properly handle partial reads.
2fdde3b9 1776
6ba25fcb
RM
17772008-10-01 Mark Shinwell <shinwell@codesourcery.com>
1778
1779 * elf/elf.h (STO_MIPS_PLT): New.
1780 (R_MIPS_COPY): New.
1781 (R_MIPS_JUMP_SLOT): New.
1782 (R_MIPS_NUM): Redefine to 128.
1783 (DT_MIPS_PLTGOT): New.
1784 (DT_MIPS_RWPLT): New.
1785 (DT_MIPS_NUM): Redefine to 0x35.
1786
97898201
UD
17872008-10-01 Ulrich Drepper <drepper@redhat.com>
1788
1789 * timezone/africa: Update from tzdata2008f.
1790 * timezone/asia: Likewise.
1791 * timezone/australasia: Likewise.
1792 * timezone/europe: Likewise.
1793 * timezone/leapseconds: Likewise.
1794 * timezone/northamerica: Likewise.
1795 * timezone/southamerica: Likewise.
1796 * timezone/zone.tab: Likewise.
1797
3452ded5
UD
17982008-09-30 Ulrich Drepper <drepper@redhat.com>
1799
1800 * nscd/connections.c: Disable use of paccept for now.
1801
54ad9327
UD
18022008-09-29 Ulrich Drepper <drepper@redhat.com>
1803
8ec2550e
UD
1804 * socket/Versions: Remove paccept export for GLIBC_2.9.
1805 * socket/Makefile (routines): Remove paccept.
1806 * socket/sys/socket.h: Remove paccept declaration.
1807
54ad9327
UD
1808 * po/sv.po: Update from translation team.
1809
1c5eba39
UD
18102008-09-22 Deborah S. Townsend <dstownse@us.ibm.com>
1811
1812 * sysdeps/s390/s390-64/s390x-mcount.S: Replace ahi with aghi.
1813 * sysdeps/unix/sysv/linux/s390/s390-64/socket.S: Likewise.
1814
0a26fc4d
UD
18152008-09-16 Ulrich Drepper <drepper@redhat.com>
1816
1817 * dlfcn/dlopen.c (dlopen_doit): Allow __RTLD_SPROF flag.
1818 Patch by Olivier Fourdan <ofourdan@redhat.com>.
1819
2bcaff08
UD
18202008-09-15 Ulrich Drepper <drepper@redhat.com>
1821
1822 * sunrpc/rpc/svc.h: Declare svcfd_create.
1823 Patch by Michael Solberg <msolberg@redhat.com>.
1824
caa60cb9 18252008-09-12 Flavio Leitner <fleitner@redhat.com>
f00d47a3 1826 Ulrich Drepper <drepper@redhat.com>
caa60cb9
UD
1827
1828 * malloc/malloc.c (public_vALLOc): Try other arenas in case
1829 _int_valloc fails.
1830 (public_pVALLOc): Likewise.
1831
6c161112
AJ
18322008-09-02 Andreas Jaeger <aj@suse.de>
1833
1834 * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: Fix last
1835 commit.
1836
0cb269d7
RM
18372008-08-26 Aurelien Jarno <aurelien@aurel32.net>
1838
452034cc 1839 [BZ #6860]
2bcaff08 1840 * hurd/hurd/signal.h (HURD_MSGPORT_RPC): Fix a typo.
0cb269d7 1841
13074b5b
RM
18422008-07-18 Daniel Jacobowitz <dan@codesourcery.com>
1843
1844 * Makefile (check-data): Check data directory in add-ons.
1845 * elf/Makefile (check-data): Likewise.
1846
58801a0e
RM
18472008-08-18 Roland McGrath <roland@redhat.com>
1848
1849 * configure.in (--with-cpu): Check compiler support for -march/-mcpu.
1850 * configure: Regenerated.
1851 * config.make.in (cflags-cpu): New substituted variable.
1852 (with-cpu): Variable removed.
1853 * Makeconfig (+cflags): Use $(cflags-cpu), not $(with-cpu).
1854
7df49c5d
UD
18552008-08-14 Ryan S. Arnold <rsa@us.ibm.com>
1856
1857 [BZ #6845]
1858 * sysdeps/powerpc/fpu/bits/mathinline.h (__signbitl): Copy new
1859 __signbitl definition and __LONG_DOUBLE_128__ guard from:
1860 * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h: Remove as
1861 redundant. Functions which call floating point assembler operations
1862 should go into a sysdeps powerpc/fpu directory.
1863
965805e8
UD
18642008-08-15 Ulrich Drepper <drepper@redhat.com>
1865
1866 * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Define MAP_STACK.
1867 * sysdeps/unix/sysv/linux/i386/bits/mman.h: Likewise.
1868
9cf73ab0
UD
18692008-08-14 Ulrich Drepper <drepper@redhat.com>
1870
62a1ffc6
UD
1871 * sysdeps/x86_64/memset.S: Reduce size of tables for PIC.
1872
9cf73ab0
UD
1873 * sysdeps/unix/sysv/linux/dl-origin.c (_dl_get_origin): Undo all
1874 change related to AT_EXECFN. We cannot use that string.
1875 * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Remove
1876 _dl_execfn member.
1877 * elf/dl-support.c: Remove _dl_execfn variable.
1878 (_dl_aux_init): Remove handling of AT_EXECFN.
1879 * elf/dl-sysdep.c (_dl_sysdep_start): Remove handling of AT_EXECFN.
1880 * elf/rtld.c (process_envvars): Remove use of __ASSUME_AT_EXECFN.
1881
1bfa05cf
UD
18822008-08-13 Ulrich Drepper <drepper@redhat.com>
1883
7b3ba2c4
UD
1884 [BZ #6544]
1885 * libio/fmemopen.c: Implement binary mode. In this mode no NUL
1886 byte gets added to writes and seeks from the end use the length of
1887 the buffer and not the currently terminating NUL byte.
1888
1bfa05cf
UD
1889 [BZ #6634]
1890 * login/utmp_file.c (getutent_r_file): Take additional parameter.
1891 Set to true if locking failed.
1892 (getutid_r_file): Adjust caller.
1893 (pututline_file): Likewise. Return NULL in this case.
1894 Patch mostly by halesh.s@gmail.com.
1895
c5671698
UD
18962008-08-12 Ulrich Drepper <drepper@redhat.com>
1897
1898 [BZ #6589]
1899 * sysdeps/unix/sysv/linux/ifaddrs.c (struct sockaddr_ll_max):
1900 Define.
1901 (struct ifaddrs_storage): Use it instead of sockaddr_ll.
1902
4497384e
UD
19032008-08-12 Ryan S. Arnold <rsa@us.ibm.com>
1904
1905 [BZ #6839]
1906 * sysdeps/powerpc/powerpc32/dl-machine.c (CHECK_STATIC_TLS): Remove
1907 macro since it is now available in elf/dynamic-link.h.
1908
675d7111
RM
19092008-08-12 Roland McGrath <roland@frob.com>
1910
1911 * hurd/hurd/signal.h (HURD_MSGPORT_RPC): Avoid -Wparenthesis triggers,
1912 in case used outside of libc.
1913 Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>
1914
8b254432
UD
19152008-08-11 Ulrich Drepper <drepper@redhat.com>
1916
1917 * resolv/res_mkquery.c (res_nmkquery): Call ns_name_compress
1918 directly instead of going through dn_comp.
1919
ac84eeca
RM
19202008-08-11 Aurelien Jarno <aurel32@debian.org>
1921
1922 * sysdeps/mach/i386/machine-lock.h (__spin_unlock, __spin_try_lock):
1923 Fix asm constraints.
1924
f081b451
UD
19252008-08-07 Ulrich Drepper <drepper@redhat.com>
1926
1927 [BZ #6790]
1928 * sysdeps/unix/sysv/linux/bits/in.h (IP_PMTUDISC_PROBE): Define.
1929 (IPV6_PMTUDISC_PROBE): Likewise.
1930
30a4429e
UD
19312008-08-07 Pete Eberlein <eberlein@us.ibm.com>
1932
1933 [BZ #6791]
1934 * sysdeps/unix/sysv/linux/powerpc/bits/mman.h (PROT_SAO): Define.
1935
1642331d 19362008-08-01 Steven Munroe <sjmunroe@us.ibm.com>
626f68ff 1937 Carlos Eduardo Seo <cseo@linux.vnet.ibm.com>
1642331d
UD
1938
1939 [BZ #6817]
1940 * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags):
1941 Added the members 'vsx' and 'arch_2_06'.
1942 (_dl_powerpc_platforms): Add the member 'power7'.
1943 * sysdeps/powerpc/dl-procinfo.h: Modify _DL_HWCAP_FIRST
1944 to reflect the changes required by VSX and ISA 2.06.
1945 Modify _DL_PLATFORMS_COUNT to reflect the addition of
1946 'power7'.
1947 Defined PPC_PLATFORM_POWER7.
1948 (_dl_string_platform): Add support for POWER7.
1949 * sysdeps/powerpc/sysdep.h: Define bit masks for VSX
1950 capability and ISA 2.06.
1951
48b94661
UD
19522008-08-07 Ulrich Drepper <drepper@redhat.com>
1953
1954 [BZ #6824]
1955 * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h: Use correct
1956 macro to detect use of 128 bit long double.
1957 Patch by Ryan S. Arnold <rsa@us.ibm.com>.
1958
9523fd28
UD
19592008-08-05 Ulrich Drepper <drepper@redhat.com>
1960
9c0cb150
UD
1961 * scripts/gen-as-const.awk: Use 32-bit values on 32-bit platforms.
1962
46aea5cb 1963 [BZ #5794]
9523fd28
UD
1964 * sysdeps/i386/fpu/s_expm1l.S: Simply use exp implementation for large
1965 parameters.
1966 * sysdeps/x86_64/fpu/s_expm1l.S: Likewise.
1967 Patch by Denys Vlasenko <dvlasenk@redhat.com>.
1968
c400c931
UD
19692008-08-03 Ulrich Drepper <drepper@redhat.com>
1970
1971 * nscd/connections.c (main_loop_poll): Pass a buffer which is
1972 guaranteed to be large enough to read inotify event. Ignore
1973 EAGAIN error. Better error message. Add branch predicition.
1974 (main_loop_epoll): Likewise.
1975
3f39adac
RM
19762008-08-02 Roland McGrath <roland@frob.com>
1977
1978 * sysdeps/mach/i386/machine-lock.h (__spin_unlock, __spin_try_lock):
1979 Add memory clobbers.
1980
3501542f
UD
19812008-08-02 Ulrich Drepper <drepper@redhat.com>
1982
48b22986
UD
1983 * manual/arith.texi: Avoid @strong{Note:}.
1984 * manual/creature.texi: Likewise.
1985 * manual/filesys.texi: Likewise.
1986 * manual/math.texi: Likewise.
1987 * manual/memory.texi: Likewise.
1988 * manual/resource.texi: Likewise.
1989 * manual/syslog.texi: Likewise.
1990 * manual/time.texi: Likewise.
1991
3501542f
UD
1992 * sysdeps/posix/clock_getres.c (hp_timing_getres): Remove inline
1993 to prevent warning.
1994
17756df3
UD
19952008-08-01 Ulrich Drepper <drepper@redhat.com>
1996
ebcc1f4d
UD
1997 * sysdeps/unix/sysv/linux/Versions: Fix changes due to old patch for
1998 new epoll_create1 interface.
1999 * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
2000 * sysdeps/unix/sysv/linux/sys/epoll.h: Likewise.
2001 * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
2002
144bfa86
UD
2003 * include/arpa/nameser.h (NS_GET16): Use const pointer.
2004 (NS_GET32): Likewise.
2005
7e1b29c6
UD
2006 * sysdeps/unix/sysv/linux/kernel-features.h: s390 has the new
2007 syscalls, too.
2008
42fa1f67
UD
2009 * sysdeps/unix/sysv/linux/dl-origin.c (_dl_get_origin): We cannot
2010 use the AT_EXECFN value if it is no absolute path.
2011 * sysdeps/unix/sysv/linux/kernel-features.h: Never define
2012 __ASSUME_AT_EXECFN.
2013
cd5743fd
UD
2014 * Versions.def: Add GLIBC_2.9 to libresolv.
2015 * include/resolv.h: Remove hidden proto declarations for __ns_*
2016 functions. Add them for __dn_count_labels and __p_secstodate.
2017 * include/arpa/nameser.h: Add a number of hidden proto declarations.
2018 Define ns_msg_getflags macro here.
2019 * resolv/res_debug.c: Add hidden definition for __dn_count_labels
2020 and __p_secstodate.
2021 * resolv/Versions: Export functions from <arpa/nameser.h> from
2022 libresolv in version GLIBC_2.9.
2023 * resolv/ns_name.c: Integrate changes from bind 9.5.0. Add necessary
2024 hidden definitions.
2025 * resolv/ns_netint.c: Likewise.
2026 * resolv/ns_parse.c: Likewise.
2027 * resolv/ns_print.c: Likewise.
2028 * resolv/ns_samedomain.c: Likewise.
2029 * resolv/ns_ttl.c: Likewise.
2030 * resolv/arpa/nameser_compat.h: Likewise.
2031 * resolv/arpa/nameser.h: Likewise. Remove macros which redirect
2032 function calls.
2033 * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Use __ns_get16
2034 instead of ns_get16.
2035 * resolv/nss_dns/dns-host.c (getanswer_r): Use __ns_get16 and
2036 __ns_get32 instead of ns_get16 and ns_get32 respectively.
2037 (gaih_getanswer_slice): Likewise.
2038 * resolv/Makefile (libresolv-routines): Add ns_date.
2039 * resolv/ns_date.c: New file.
2040
17756df3
UD
2041 * elf/Makefile (check-localplt.out): Also check libresolv and
2042 libcrypt.
2043
46bc5d43
UD
20442008-07-31 Ulrich Drepper <drepper@redhat.com>
2045
2046 * sysdeps/unix/sysv/linux/kernel-features.h: Define
2047 __ASSUME_O_CLOEXEC.
2048
a707cff6
UD
20492008-07-30 Ulrich Drepper <drepper@redhat.com>
2050
3c227386
UD
2051 * sysdeps/posix/getaddrinfo.c (gaih_inet): Raise size of initial
2052 buffer passed to NSS functions.
2053
9523fd28 2054 * nscd/connections.c (nscd_init): Typo in preprocessor directive.
bd7f4857
UD
2055
2056 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_PACCEPT):
2057 Define.
2058
a707cff6
UD
2059 * misc/syslog.c (openlog_internal): Fix compile problem.
2060
0424d007
RM
20612008-07-28 Roland McGrath <roland@redhat.com>
2062
2063 * elf/dl-sysdep.c (_dl_show_auxv): Add AT_EXECFN to the table.
2064
b7da31a1
UD
20652008-07-28 Ulrich Drepper <drepper@redhat.com>
2066
300ea0ad
UD
2067 * io/ftw.c (add_object): Remove inline to avoid warning.
2068
d6173baa
UD
2069 * sysdeps/unix/sysv/linux/paccept.c: Fix compile problem.
2070
b7da31a1
UD
2071 * resolv/res_send.c (__libc_res_nsend): Take additional parameter.
2072 Use it instead of locally defined resplen2 variable.
2073 (res_nsend): Adjust for __libc_res_nsend interface change.
2074 (send_vc): Initialize *resplen2 if necessary. Read length of
2075 package into an appropriately aligned variable. Store converted length
2076 in new variable and use it appropriately.
2077 Add branch prediction help.
2078 * resolv/res_query.c (__libc_res_nquery): Take additional parameter
2079 and pass it on to __libc_res_nsend. Adjust all callers.
2080 (__libc_res_nsearch): Likewise.
2081 (__libc_res_nqeurydomain): Likewise.
2082 * resolv/nss_dns/dns-host.c: Adjust for __libc_res_nsearch interface
2083 change.
2084 (_nss_dns_gethostbyname4): Don't unconditionally allocate tmp array.
2085 Define resplen2 variable and pass it to __libc_res_nsearch and then
2086 to gaih_getanswer.
2087 (getanswer_r): In case of incorrect DNS data don't overread buffer.
2088 Add branch prediction.
2089 (gaih_getanswer_slice): Likewise. Check for invalid data types.
2090 (gaih_getanswer): Don't decode second slice if first one failed due
2091 to a too small buffer. Don't let not found status of second
2092 decoder shadow results of the first.
2093 * resolv/gethnamaddr.c (gethostbyname2): Adjust for __libc_res_nsearch
2094 and __libc_res_nquery interface changes
2095 (gethostbyaddr): Adjust for __libc_res_nquery interface change.
2096 * include/resolv.h: Adjust prototypes for __libc_res_nquery,
2097 __libc_res_nsearch, and __libc_res_nsend.
2098 * resolv/nss_dns/dns-canon.c: Adjust for __libc_res_nquery interface
2099 change.
2100 * resolv/nss_dns/dns-network.c: Adjust for __libc_res_nquery and
2101 __libc_res_nsearch interface changes.
2102
11ed3eae
UD
21032008-07-27 Ulrich Drepper <drepper@redhat.com>
2104
372aece0
UD
2105 * libio/iopopen.c (_IO_new_proc_open): Remove unnecessary volatile.
2106
e038616f
UD
2107 * posix/wordexp.c (exec_comm): Use pipe2 if possible to create
2108 file descriptors with close-on-exec set.
2109 (exec_comm_child): Fix the case where the write end of the pipe is
2110 STDOUT_FILENO already. In case it is, clear close-on-exec.
2111
d6e0c2a6
UD
2112 * sysdeps/unix/sysv/linux/syscalls.list: Add __pipe2 alias.
2113 * io/pipe2.c: Likewise.
2114 * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_PIPE2
2115 instead of __ASSUME_PACCEPT.
2116 * include/unistd.h: Declare __have_pipe2.
2117 * libio/iopopen.c: Implement "e" flag.
2118 * libio/Makefile (tests): Add tst-popen1.
2119 * libio/tst-popen1.c: New file.
2120
11ed3eae
UD
2121 * sysdeps/unix/sysv/linux/bits/socket.h: Define PF_ISDN and AF_ISDN.
2122 * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
2123
7438a80d
UD
21242008-07-26 Ulrich Drepper <drepper@redhat.com>
2125
c4a710b6
UD
2126 [BZ #6771]
2127 * libio/fileops.c (_IO_new_file_attach): Preserve errno around
2128 success call of _IO_SEEKOFF or calls which failed because the
2129 descriptor is for a pipe.
2130
31f3b159
UD
2131 * sunrpc/key_call.c (getkeyserv_handle): Use FD_CLOEXEC instead of
2132 magic number.
2133
c0216dfc
UD
2134 * misc/syslog.c (openlog_internal): Use SOCK_CLOEXEC if possible.
2135
72112b0c
UD
2136 * malloc/mtrace.c (mtrace): Use 'e' flag in fopen call. Drop
2137 F_SETFD use if we know fopen set the flag.
2138
7438a80d
UD
2139 * login/utmp_file.c (setutent_file): Minor optimization in case
2140 O_CLOEXEC is available.
2141
7b91359b
UD
21422008-07-24 Tom "spot" Callaway <tcallawa@redhat.com>
2143
2144 * Makeconfig: Define pie-ccflag and PIE-ccflag variables.
2145 * elf/Makefile: Use pie-ccflag variable.
2146 * nscd/Makefile: Likewise.
2147 * sysdeps/sparc/Makefile: Set $(pie-ccflag) to -fPIE.
2148
4057dc45
UD
21492008-07-21 Andreas Krebbel <krebbel1@de.ibm.com>
2150
e7135e24 2151 [BZ #6724]
4057dc45
UD
2152 * Versions.def: Add GLIBC_2.9 version tag for libutil.
2153 * sysdeps/unix/sysv/linux/s390/bits/utmp.h: Copy of
2154 gnu/bits/utmp.h. Check for __WORDSIZE_COMPAT32 removed.
2155 * sysdeps/unix/sysv/linux/s390/bits/utmpx.h: Copy of
2156 gnu/bits/utmpx.h. Check for __WORDSIZE_COMPAT32 removed.
2157 * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Add new files
2158 utmp32, utmpx32 and login32.
2159 * sysdeps/unix/sysv/linux/s390/s390-32/Versions: Add 2.9
2160 versions of struct utmp functions to libc and libutil.
2161 * sysdeps/unix/sysv/linux/s390/s390-32/utmp-compat.h: New file.
2162 * sysdeps/unix/sysv/linux/s390/s390-32/getutent.c: New file.
2163 * sysdeps/unix/sysv/linux/s390/s390-32/getutent_r.c: New file.
2164 * sysdeps/unix/sysv/linux/s390/s390-32/getutid.c: New file.
2165 * sysdeps/unix/sysv/linux/s390/s390-32/getutid_r.c: New file.
2166 * sysdeps/unix/sysv/linux/s390/s390-32/getutline.c: New file.
2167 * sysdeps/unix/sysv/linux/s390/s390-32/getutline_r.c: New file.
2168 * sysdeps/unix/sysv/linux/s390/s390-32/getutmp.c: New file.
2169 * sysdeps/unix/sysv/linux/s390/s390-32/getutxent.c: New file.
2170 * sysdeps/unix/sysv/linux/s390/s390-32/getutxid.c: New file.
2171 * sysdeps/unix/sysv/linux/s390/s390-32/getutxline.c: New file.
2172 * sysdeps/unix/sysv/linux/s390/s390-32/login.c: New file.
2173 * sysdeps/unix/sysv/linux/s390/s390-32/login32.c: New file.
2174 * sysdeps/unix/sysv/linux/s390/s390-32/pututxline.c: New file.
2175 * sysdeps/unix/sysv/linux/s390/s390-32/updwtmp.c: New file.
2176 * sysdeps/unix/sysv/linux/s390/s390-32/updwtmpx.c: New file.
2177 * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: New file.
2178 * sysdeps/unix/sysv/linux/s390/s390-32/utmp32.c: New file.
2179 * sysdeps/unix/sysv/linux/s390/s390-32/utmp32.h: New file.
2180 * sysdeps/unix/sysv/linux/s390/s390-32/utmpx-convert.h: New file.
2181 * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.c: New file.
2182 * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.h: New file.
2183
ff0bf753
UD
21842008-07-26 Ulrich Drepper <drepper@redhat.com>
2185
619cc2f6
UD
2186 * scripts/gen-as-const.awk: Generate more widely usable code by
2187 using 64-bit arithmetic.
2188
1311b164 2189 * stdio-common/printf_fp.c (___printf_fp): Give wide outout code
3f414923 2190 the same treatment as narrow output code in last patch.
1311b164 2191
ff0bf753
UD
2192 * sunrpc/clnt_udp.c (__libc_clntudp_bufcreate): Namespace cleanup.
2193
3f414923 2194 [BZ #6763]
ff0bf753
UD
2195 * elf/dl-load.c (local_strdup): Remove inline.
2196 (_dl_map_object_from_fd): Don't allocate l_symbolic_searchlist.r_list.
2197 * elf/dl-object.c (_dl_new_object): Allocate symbolic searchlist as
2198 part of the object.
2199
2200 * sysdeps/unix/sysv/linux/dl-origin.c: Add const to avoid warning.
2201
8ccf22f9
UD
22022008-07-25 Ulrich Drepper <drepper@redhat.com>
2203
bdd24a30
UD
2204 * sysdeps/unix/sysv/linux/kernel-features.h: IA-64 and SPARC have
2205 the new syscalls, too.
b5c0b5e4 2206
b41f1d14
UD
2207 * sysdeps/i386/i686/memcmp.S: Fix unwind information.
2208 Reported by Paul Pluzhnikov <ppluzhnikov@google.com>.
2209
3703468e
UD
2210 [BZ #6698]
2211 * stdio-common/_i18n_number.h (_i18n_number_rewrite): Take additional
2212 parameter for end of buffer. If temporary copy is too large use
2213 malloc.
2214 * stdio-common/vfprintf.c: Adjust for _i18n_number_rewrite
2215 interface change.
2216 * stdio-common/printf_fp.c (__printf_fp): Likewise.. Account for
2217 string rewrite when allocating buffer.
2218
bb0277bf
UD
2219 * sysdeps/unix/sysv/linux/kernel-features.h: PPC has the new
2220 syscalls, too.
2221
9dd84772
UD
2222 * nscd/connections.c (nscd_init): Clean up fcntl call.
2223
c418b1ba
UD
2224 * nscd/nscd_helper.c (open_socket): Use SOCK_CLOEXEC and
2225 SOCK_NONBLOCK if possible.
2226
b206d8b1
UD
2227 * sysdeps/unix/sysv/linux/opensock.c (__opensock): Use
2228 SOCK_CLOEXEC if available.
2229
8ccf22f9
UD
2230 * include/rpc/clnt.h: Declare __libc_clntudp_bufcreate and
2231 __libc_clntudp_bufcreate_internal.
2232 * include/sys/socket.h: Declare __have_sock_cloexec.
2233 * socket/Makefile (aux): Add have_sock_cloexec.
2234 * socket/have_sock_cloexec.c: New file.
2235 * sunrpc/clnt_udp.h (clntudp_bufcreate): Now a wrapper around
2236 __libc_clntudp_bufcreate.
2237 (__libc_clntudp_bufcreate): Former implementation of clntudp_bufcreate
2238 which takes an additional parameter. Create socket with non-blocking
2239 mode and close-on-exec flag set, if wanted.
2240 * sunrpc/Versions: Export __libc_clntudp_bufcreate@GLIBC_PRIVATE.
2241 * nis/ypclnt.c (yp_bind_client_create): Use __libc_clntpudp_bufcreate
2242 instead of clntudp_create. The socket has already the close-on-exec
2243 flag set if SOCK_CLOEXEC is defined.
2244
579cdf5a
UD
22452008-07-24 Ulrich Drepper <drepper@redhat.com>
2246
3ff2c948
UD
2247 * sysdeps/unix/sysv/linux/kernel-features.h: Define
2248 __ASSUME_PACCEPT, __ASSUME_IN_NONBLOCK, and __ASSUME_PACCEPT if
2249 appropriate.
2250 * nscd/connections.c: Avoid fcntl calls to set close-on-exec flag and
2251 non-blocking mode by using socket, paccept, and inotify_init1.
2252
bdcebfc4
UD
2253 * Versions.def (glibc): Add GLIBC_2.9.
2254 * io/Makefile (routines): Add dup3 and pipe2.
2255 * io/Versions [glibc] (GLIBC_2.9): Add dup3 and pipe2.
2256 * io/dup3.c: New file.
2257 * io/pipe2.c: New file.
2258 * posix/unistd.h: Declare dup3 and pipe2.
2259 * socket/Makefile (routines): Add paccept.
2260 * socket/Versions [glibc] (GLIBC_2.9): Add paccept.
2261 * socket/paccept.c: New file.
2262 * socket/sys/socket.h: Declare paccept.
2263 * sysdeps/unix/syscalls.list: Add entry for dup3.
2264 * sysdeps/unix/sysv/linux/Versions [glibc] (GLIBC_2.9): Add
2265 epoll_create2 and inotify_init1.
2266 * sysdeps/unix/sysv/linux/eventfd.c: Use eventfd1 syscall if possible.
2267 * sysdeps/unix/sysv/linux/paccept.c: New file.
2268 * sysdeps/unix/sysv/linux/signalfd.c: Use signalfd4 syscall if
2269 possible.
2270 * sysdeps/unix/sysv/linux/socketcall.h: Add SOCKOP_paccept.
2271 * sysdeps/unix/sysv/linux/syscalls.list: Add epoll_create2,
2272 inotify_init1, and pipe2 entries.
2273 * sysdeps/unix/sysv/linux/alpha/sys/epoll.h: New file.
2274 * sysdeps/unix/sysv/linux/alpha/sys/eventfd.h: New file.
2275 * sysdeps/unix/sysv/linux/alpha/sys/inotify.h: New file.
2276 * sysdeps/unix/sysv/linux/alpha/sys/signalfd.h: New file.
2277 * sysdeps/unix/sysv/linux/alpha/sys/timerfd.h: New file.
2278 * sysdeps/unix/sysv/linux/bits/socket.h: Define SOCK_CLOEXEC and
2279 SOCK_NONBLOCK.
2280 * sysdeps/unix/sysv/linux/i386/paccept.S: New file.
2281 * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: New file.
2282 * sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: New file.
2283 * sysdeps/unix/sysv/linux/sparc/sys/inotify.h: New file.
2284 * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h: New file.
2285 * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: New file.
2286 * sysdeps/unix/sysv/linux/sparc/bits/socket.h: New file.
2287 * sysdeps/unix/sysv/linux/sys/epoll.h: Define EPOLL_CLOEXEC and
2288 EPOLL_NONBLOCK. Declare epoll_create2.
2289 * sysdeps/unix/sysv/linux/sys/eventfd.h: Define EFD_CLOEXEC and
2290 EFD_NONBLOCK.
2291 * sysdeps/unix/sysv/linux/sys/inotify.h: Define IN_CLOEXEC and
2292 IN_NONBLOCK. Declare inotify_init1.
2293 * sysdeps/unix/sysv/linux/sys/signalfd.h: Define SFD_CLOEXEC and
2294 SFD_NONBLOCK.
2295 * sysdeps/unix/sysv/linux/sys/timerfd.h: Define TFD_CLOEXEC and
2296 TFD_NONBLOCK.
2297
0e077a7e
UD
2298 * elf/elf.h: Define AT_EXECFN.
2299 * elf/rtld.c [!__ASSUME_AT_EXECFN] (process_envvars): Don't handle
2300 LD_ORIGIN_PATH.
2301 * elf/dl-sysdep.c (_dl_sysdep_start): Handle AT_EXECFN.
2302 * elf/dl-support.c: Define _dl_execfn. Don't define _dl_origin_path
2303 if __ASSUME_AT_EXECFN is defined.
2304 (_dl_aux_init): Handle AT_EXECFN.
2305 * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_AT_EXECFN
2306 for 2.6.27 and up.
2307 * sysdeps/generic/ldsodefs.h (rtld_global_ro): Add _dl_execfn.
2308 Don't define _dl_origin_path if __ASSUME_AT_EXECFN is defined.
2309 * sysdeps/unix/sysv/linux/dl-origin.c (_dl_get_origin): Use
2310 _dl_execfn if available and avoid compatibility code if
2311 __ASSUME_AT_EXECFN is defined.
2312
579cdf5a
UD
2313 * sysdeps/unix/sysv/linux/dl-sysdep.h: Don't declare
2314 _dl_discover_osversion only for older kernels.
2315
7385c04c
RM
23162008-07-22 Roland McGrath <roland@frob.com>
2317
2318 * hurd/fd-read.c (_hurd_fd_read): Fix last change.
2319
8a26088d
RM
23202008-07-21 Roland McGrath <roland@frob.com>
2321
2322 * hurd/fd-read.c (_hurd_fd_read): Return EGRATUITOUS if the server
2323 returned too much data out of line.
2324
9f558b80
UD
23252008-07-20 Ulrich Drepper <drepper@redhat.com>
2326
2e79213a
UD
2327 * locale/setlocale.c (setname): Remove inline to avoid compiler
2328 warning.
2329
579cdf5a 2330 [BZ #6712]
9f558b80
UD
2331 * locale/setlocale.c (setlocale): Take the setlocale lock earlier.
2332
9667f97d
UD
23332008-07-15 Ulrich Drepper <drepper@redhat.com>
2334
2486b496
UD
2335 * stdio-common/vfprintf.c (_IO_helper_overflow): In case _IO_sputn
2336 doesn't manage to write anything, fail.
2337
9667f97d
UD
2338 * malloc/hooks.c (__malloc_check_init): Remove printf.
2339
6d4c073b
RM
23402008-07-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
2341
2342 * sysdeps/mach/hurd/bits/fcntl.h: Include <sys/types.h>.
2343
b7432416
UD
23442008-07-12 Ulrich Drepper <drepper@redhat.com>
2345
2346 * nscd/connections.c (main_loop_poll): Fix handling of read errors
2347 from inotify.
2348 (main_loop_epoll): Likewise.
2349
44abc397
UD
23502008-07-09 Ulrich Drepper <drepper@redhat.com>
2351
835113c6
UD
2352 * resolv/res_send.c: Remove unnecessary res_pquery prototype.
2353
fdc769f6
UD
2354 * resolv/res_query.c (__libc_res_nquery): Issue debug message only
2355 if DEBUG is defined.
2356
44abc397
UD
2357 * resolv/res_query.c (__libc_res_nquery): Align buffer for T_AAAA
2358 query. Adjust buffer size computation for padding.
2359
38dc8fad
UD
23602008-07-08 Ulrich Drepper <drepper@redhat.com>
2361
75684bd7
UD
2362 * stdio-common/Makefile: Add rules to build and run tst-setvbuf1.
2363 * stdio-common/tst-setvbuf1.c: New file.
2364 * stdio-common/tst-setvbuf1.expect: New file.
2365
38dc8fad
UD
2366 [BZ #6719]
2367 * libio/iosetvbuf.c (_IO_setvbuf): Correctly clear buffering flags
2368 when selecting fully-buffered stream.
2369 Patch by Wang Xin <wxinee@gmail.com>.
2370
107f4ac2
RM
23712008-07-06 Samuel Thibault <samuel.thibault@ens-lyon.org>
2372
2373 * sysdeps/mach/hurd/open.c: Include <stdio.h>.
2374 (__open_2): New function.
2375 (__open64_2): New alias to __open_2.
2376 * sysdeps/mach/hurd/openat.c: Include <stdio.h>.
2377 (__openat_2): New function.
2378 (__openat64_2): New alias to __openat_2.
2379
45ec3e79
UD
23802008-07-06 Ulrich Drepper <drepper@redhat.com>
2381
2382 [BZ #6723]
2383 * time/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
2384
0a583b54
RM
23852008-07-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
2386
2387 * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Define MSG_NOSIGNAL.
2388 * hurd/hurd/fd.h (__hurd_sockfail): Add extern inline function.
2389 * sysdeps/mach/hurd/recv.c (__recv): Use __hurd_sockfail instead of
2390 __hurd_dfail.
2391 * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Likewise.
2392 * sysdeps/mach/hurd/recvmsg.c (__recvmsg): Likewise.
2393 * sysdeps/mach/hurd/send.c (__send): Likewise.
2394 * sysdeps/mach/hurd/sendto.c (__sendfrom): Likewise.
2395 * sysdeps/mach/hurd/sendmsg.c (__sendmsg): Likewise.
2396
d5a0160b
RM
23972008-03-04 Samuel Thibault <samuel.thibault@ens-lyon.org>
2398
2399 * sysdeps/mach/hurd/recv.c (__recv): Initialize NPORTS.
2400 * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Likewise.
2401 * sysdeps/mach/hurd/recvmsg.c (__recvmsg): Likewise.
2402 * hurd/fd-read.c (_hurd_fd_read): Initialize NREAD.
2403 * hurd/get-host.c (_hurd_get_host_config): Likewise.
2404 * sysdeps/mach/hurd/dl-sysdep.c (__libc_read): Likewise.
2405
80922a99
UD
24062008-06-27 Ulrich Drepper <drepper@redhat.com>
2407
2408 [BZ #6657]
2409 * time/strptime_l.c: Don't clear s.era_cnt after successful match
2410 of %EY.
2411 Patch by Petr Baudis.
2412
34ca2ff7
UD
24132008-06-26 Ulrich Drepper <drepper@redhat.com>
2414
5ee0f5e2 2415 * resolv/res_debug.c (__p_type_syms): Add ns_t_dname entry.
34ca2ff7
UD
2416 Patch by Peter Jones <pjones@redhat.com>.
2417
104426b6
UD
24182008-06-25 Ulrich Drepper <drepper@redhat.com>
2419
2420 [BZ #6654]
2421 * stdlib/canonicalize.c (__realpath): readlink can write too much
2422 into the buffer on platforms without PATH_MAX.
2423
7166d23f
UD
24242008-06-17 Carlos O'Donell <carlos@codesourcery.com>
2425
4cb8e687 2426 [BZ #6653]
7166d23f
UD
2427 * posix/tst-regex.c (main): Rename to...
2428 (do_test): ... this. Remove cmdline option processing.
2429 (TIMEOUT): Define.
2430 (TEST_FUNCTION): Define.
2431 (CMDLINE_OPTIONS): Define.
2432
974069d8
UD
24332008-06-25 Ulrich Drepper <drepper@redhat.com>
2434
2435 [BZ #5210]
2436 * configure.in: Add -Werror to -fstack-protector test to catch
2437 unsupported architectures.
2438 Patch by Gilles Esponasse <g.esp@free.fr>.
2439
cefa2dd3
UD
24402008-06-17 Joseph Myers <joseph@codesourcery.com>
2441
2442 * stdlib/tst-setcontext.c: Set back_in_main before exit if
2443 getcontext returns ENOSYS.
2444
c00d1128
UD
24452008-06-18 Ulrich Drepper <drepper@redhat.com>
2446
2447 * nscd/connections.c (main_loop_poll): Fix test for read error.
2448 (main_loop_epoll): Likewise.
2449
a0edbb48
UD
24502008-06-13 Ulrich Drepper <drepper@redhat.com>
2451
d0a1ae94
UD
2452 * sysdeps/posix/getaddrinfo.c: Move _res_hconf_init call to a
2453 better place so it is not called when nscd is used.
2454
a0edbb48
UD
2455 * nscd/connections.c: Also recognize and handle changes to the
2456 resolver configuration file.
2457
46f70b3c
UD
24582008-06-12 Ulrich Drepper <drepper@redhat.com>
2459
5bcc6c0f
UD
2460 * time/strftime.c: Pass reference to tzset_called around to handle
2461 recursive calls.
2462
2463 [BZ #6612]
2464 * time/strftime.c (__strftime_internal): Call tzset() only
2465 when printing timezone-dependent values.
2466 Based on a patch by Petr Baudis <pasky@suse.cz>.
2467
f854efd7
UD
2468 * resolv/nss_dns/dns-host.c (gaih_getanswer): Don't
2469 unconditionally use second gaih_getanswer_slice result.
2470
46f70b3c
UD
2471 * sysdeps/posix/getaddrinfo.c (gai_inet): Remove unnecessary test.
2472 (getaddrinfo): RES must always be non-NULL.
2473
9ea8bfec
UD
24742008-06-12 Jakub Jelinek <jakub@redhat.com>
2475
2476 * sysdeps/powerpc/powerpc64/fpu/s_llround.S (__llround): Avoid using
2477 cr[34] registers.
2478 * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S (__llroundf): Likewise.
2479 * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S (__llround):
2480 Likewise.
2481 * sysdeps/powerpc/powerpc32/fpu/s_lround.S (__lround): Avoid using cr3
2482 register.
2483
5a337776
UD
24842008-06-12 Ulrich Drepper <drepper@redhat.com>
2485
5228ba2f
UD
2486 * nscd/nscd.h (struct database_dyn): Add inotify_descr and clear_cache
2487 fields.
2488 * nscd/connections.c (inotify_fd): New variable.
2489 (nscd_init): Try to open an inotify descriptor.
2490 If successful, watch files for databases using inotify instead of
2491 having prune threads stat the files.
2492 (nscd_run_prune): Recognize clear_cache flag being set and call
2493 prune_cache appropriately.
2494 (main_loop_poll): Add inotify descriptor to wait set and handle the
2495 reported changes.
2496 (main_loop_epoll): Likewise.
2497 * nscd/cache.c (prune_cache): Don't stat files for databases if
2498 inotify is used.
2499 * sysdeps/unix/sysv/linux/Makefile [subdir=nscd]
2500 (CFLAGS-connections.c): Add -DHAVE_INOTIFY.
2501
5a337776
UD
2502 * nscd/grpcache.c (cache_addgr): Correctly compute size of
2503 fixed-size portion of the record.
2504 * nscd/servicescache.c (cache_addserv): Likewise.
2505 * nscd/pwdcache.c (cache_addpw): Likewise.
2506 * nscd/initgrcache.c (addinitgroupsX): Likewise.
2507
9ad58cc3
UD
25082008-06-11 Ulrich Drepper <drepper@redhat.com>
2509
2510 * nscd/mem.c (gc): Initialize obstack earlier so that if we jump
2511 out we don't use uninitialized memory.
2512
2513 * nscd/hstcache.c (cache_addhst): Send correct number of bytes to
2514 the client.
2515
c1283552
UD
25162008-06-10 Ulrich Drepper <drepper@redhat.com>
2517
2518 * resolv/nss_dns/dns-host.c (gaih_getanswer_slice): Also log and
2519 ignore T_DNAME messages.
2520 * resolv/arpa/nameser_compat.h (T_DNAME): Define.
2521
eef8a803
JJ
25222008-06-05 Jakub Jelinek <jakub@redhat.com>
2523
2524 * misc/regexp.h (compile): Use __REPB_PREFIX macro.
2525 Avoid segfault if first GETC returns eof/'\0'/'\n'.
2526
ee78670e
JJ
25272008-06-03 Jakub Jelinek <jakub@redhat.com>
2528
2529 * nscd/nscd_getserv_r.c (__nscd_getservbyport_r): Pass cp
2530 instead of portstr to nscd_getserv_r. Patch by
2531 Roman Kagan <rkagan@mail.ru>.
2532
62605cbf
UD
25332008-05-26 Jim Meyering <meyering@redhat.com>
2534
10966640 2535 Remove more useless "if" tests before "free".
62605cbf
UD
2536 * include/inline-hashtab.h (htab_delete): Likewise.
2537 * libio/freopen.c (freopen): Likewise.
2538 * libio/freopen64.c (freopen64): Likewise.
2539 * locale/programs/ld-collate.c (collate_read): Likewise.
2540 * misc/fstab.c (libc_freeres_fn): Likewise.
2541 * posix/glob.c (globfree): Likewise.
2542
f63abf58
UD
25432008-05-24 Ulrich Drepper <drepper@redhat.com>
2544
2545 * string/Makefile (strop-tests): Add memmem.
2546 * string/test-memmem.c: New file.
2547 * string/test-string.h (BUF1PAGES): Define to 1 if undefined.
2548 (test_init): Size buf1 according to BUF1PAGES.
2549
ad8a5511
JJ
25502008-05-24 Jakub Jelinek <jakub@redhat.com>
2551
2552 * libio/stdio.h (vscanf): Fix -std=c99 redirect.
2553 * stdio-common/Makefile (tests): Add scanf16 and scanf17.
2554 (CFLAGS-scanf17.c): New.
2555 * stdio-common/scanf14.c (main): Add fscanf and scanf tests.
2556 * stdio-common/scanf15.c (main): Likewise.
f63abf58
UD
2557 * stdio-common/scanf16.c: New file.
2558 * stdio-common/scanf17.c: New file.
ad8a5511 2559
e2003883
UD
25602008-05-24 Ulrich Drepper <drepper@redhat.com>
2561
2562 * resolv/res_send.c (send_dg): If we already have one of two
b5ba2c79 2563 answers and the server reports SERVFAIL, NOTIMP, or REFUSED, then
e2003883
UD
2564 use the one answer insted of failing.
2565
acbb9873
UD
25662008-02-20 Ryan S. Arnold <rsa@us.ibm.com>
2567
2568 * math/libm-test.inc (exp_test): Exclude expl(1000.0L) from
2569 being executed on PowerPC as the expected result exceeds IBM
2570 long double 128 __LDBL_MAX__.
2571
e85f1d6a
RM
25722008-05-21 Roland McGrath <roland@redhat.com>
2573
2574 * shlib-versions (sparc.*-.*-.*, sparc64.*-.*-.*): Add ABI lines.
2575
2576 * Makefile (check-data): Use $(abi-name) before other guesses.
2577 Look in $(add-ons) dirs before scripts/data/.
2578 * elf/Makefile (check-data): Likewise.
2579
2580 * scripts/soversions.awk: Grok ABI line.
2581 * Makeconfig ($(common-objpfx)soversions.mk): Likewise.
2582 Emit definition for abi-name variable.
2583
d8e763c6
UD
25842008-05-21 Ulrich Drepper <drepper@redhat.com>
2585
e92799fc 2586 * string/endian.h: Define new fixed-size hto* and *toh macros only
e85f1d6a 2587 if [__USE_BSD].
e92799fc 2588
d8e763c6
UD
2589 * iconvdata/Depend: Add localedata.
2590
009ef333
RM
25912008-05-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
2592
2593 * bits/termios.h (ONLCR): Define under [__USE_XOPEN] too.
2594
86746abb
JJ
25952008-05-08 David S. Miller <davem@davemloft.net>
2596
2597 * sysdeps/unix/sysv/linux/sparc/sparc32/setcontext.S: Use
2598 HIDDEN_JUMPTARGET.
2599 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
2600 (__SYSCALL_CLOBBERS): Remove %g* registers.
2601 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
2602 (__SYSCALL_CLOBBERS): Likewise.
2603 * scripts/data/localplt-sparc-linux-gnu.data: New file.
f63abf58 2604 * scripts/data/localplt-sparc64-linux-gnu.data: New file.
86746abb 2605
5e6f34c2
JJ
26062008-05-21 Jakub Jelinek <jakub@redhat.com>
2607
2608 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
2609 (CALL_ERRNO_LOCATION): Define.
2610 (__SYSCALL_STRING, __CLONE_SYSCALL_STRING): Use it.
2611 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
2612 (CALL_ERRNO_LOCATION): Define.
2613 (__SYSCALL_STRING, __CLONE_SYSCALL_STRING): Use it.
2614 * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S (__brk): Use
2615 HIDDEN_JUMPTARGET for __errno_location call in libc.so.
2616
4beb4532
UD
26172008-05-20 Ulrich Drepper <drepper@redhat.com>
2618
2619 * include/inline-hashtab.h (higher_prime_number): Fix type of mid
2620 variable.
2621
ed8f38ba
JJ
26222008-05-20 Jakub Jelinek <jakub@redhat.com>
2623
2624 * sysdeps/unix/sysv/linux/sparc/sparc32/sigcontextinfo.h
2625 (FIRST_FRAME_POINTER): Define.
2626
26272008-05-09 David S. Miller <davem@davemloft.net>
2628
2629 * sysdeps/sparc/sparc64/backtrace.c: New file.
2630
c1b8190a
JJ
26312008-05-14 David S. Miller <davem@davemloft.net>
2632
2633 * sysdeps/sparc/machine-gmon.h: New file.
2634 * sysdeps/sparc/sparc-mcount.S: Likewise.
2635 * sysdeps/sparc/Makefile: Add sparc-mcount target to
2636 sysdep_routines in gmon directory.
2637
84aacd93
JJ
26382008-05-19 Jakub Jelinek <jakub@redhat.com>
2639
2640 * elf/soinit.c (__EH_FRAME_BEGIN__): Remove.
2641
5908f779
UD
26422008-05-19 Ulrich Drepper <drepper@redhat.com>
2643
2644 * resolv/res_query.c (__libc_res_nquery): In case one of two
2645 answer was too short don't try to read that answer's header.
2646
2647 * resolv/res_send.c (send_dg): In case of timeout and there are
2648 two queries and one has been answered, return value indicating
2649 success.
2650
528741cb
UD
26512008-05-18 Ulrich Drepper <drepper@redhat.com>
2652
2653 * nscd/cache.c (cache_add): Take additional parameter specifying
2654 whether this is in response of a cache refill. Check alignment
2655 of package data. Revamp waking of pruning thread.
2656 (prune_cache): Small optimization.
2657 * nscd/nscd.h: Adjust cache_add prototypes.
2658 * nscd/aicache.c: Adjust cache_add calls.
2659 * nscd/grpcache.c: Likewise.
2660 * nscd/hstcache.c: Likewise.
2661 * nscd/initgrcache.c: Likewise.
2662 * nscd/pwdcache.c: Likewise.
2663 * nscd/servicescache.c: Likewise.
2664 * nscd/connections.c (restart): Really disable cache use before
2665 exec attempt. If it fails, reenable cache.
2666 (nscd_run_prune): Initialize wakeup_time. After wakeup, set wakeup
2667 time to max to be able to notice concurrent cache additions. Unlock
2668 prune_lock while performing gc. Afterwards compute wakeup time with
2669 current wakeup_time value in mind.
2670
343996c4
UD
26712008-05-17 Ulrich Drepper <drepper@redhat.com>
2672
5811d72b
UD
2673 * nscd/mem.c (gc): Avoid stack overflow when allocating move list.
2674
fa526148
UD
2675 * nscd/mem.c (gc): Correctly determine highest used array element
2676 in mark.
2677
77d40f10
UD
2678 * nscd/mem.c (markrange): Add assert to check entries are all
2679 aligned. Small cleanup in bitmap use.
2680
8884028c
UD
2681 * nscd/nscd.h (mem_in_flight): Replace blockaddr field with
2682 blockoff of type nscd_ssize_t.
2683 * nscd/mem.c (gc): Simplify markrange call for on-flight blocks.
2684 (mempoll_alloc): Record block offset and not address.
2685
b2159575
UD
2686 * nscd/mem.c (gc): Fix test for stack overuse.
2687
5c9629d2
UD
2688 * nscd/aicache.c (addhstaiX): Fix a few small problems, cleanups,
2689 more asserts.
2690
66d90496
UD
2691 * sysdeps/posix/getaddrinfo.c (gaih_inet): If nscd reports no
2692 entry is available, believe it.
2693
343996c4
UD
2694 * resolv/nss_dns/dns-host.c (gaih_getanswer_slice): If there are
2695 no answers return NSS_STATUS_NOTFOUND.
2696 (gaih_getanswer): Don't call gaih_getanswer_slice if the answer
2697 buffer does not have any content.
2698
91c8a74b
UD
26992008-05-16 Ulrich Drepper <drepper@redhat.com>
2700
74e13385
UD
2701 * string/strcasestr.c (CMP_FUNC): Use __strncasecmp, not strncasecmp.
2702
91c8a74b
UD
2703 * sysdeps/posix/getaddrinfo.c (gaih_inet): After gethostbyname4_r
2704 lookup, don't assign canon unconditionally.
2705
0caca71a
UD
27062008-05-14 Ulrich Drepper <drepper@redhat.com>
2707
2708 * string/Makefile (distribute): Add str-two-way.h.
2709
27102008-03-29 Eric Blake <ebb9@byu.net>
2711
2712 Rewrite string searches to O(n) rather than O(n^2).
2713 * string/str-two-way.h: New file. For linear fixed-allocation
2714 string searching.
2715 * string/memmem.c: New implementation.
2716 * string/strstr.c: New implementation.
2717 * string/strcasestr.c: New implementation.
2718
b194db79
UD
27192008-04-11 Paolo Bonzini <bonzini@gnu.org>
2720
2721 * posix/regcomp.c (optimize_utf8): Add a note on why we test
2722 opr.ctx_type.
2723 (calc_first): Initialize constraint field.
2724 (duplicate_node_closure): Use it instead of special casing ANCHORS.
2725 Use search_duplicated_node to avoid loops. Fix grammar.
2726 (duplicate_node): Merge constraint field for all node types.
2727 (calc_eclosure_iter): Look at constraint field for all node types.
2728 * posix/regex_internal.c (create_cd_newstate): Don't look at
2729 create_cd_newstate.
2730
c8d49f05
UD
27312008-05-14 Ulrich Drepper <drepper@redhat.com>
2732
215a8745
UD
2733 [BZ #6428]
2734 * configure.in: Don't use $CFLAGS when assembling, use $ASFLAGS.
2735
2f9a1be8
UD
2736 [BZ #6442]
2737 * string/endian.h: Add macros for fixed-size endian conversion.
2738 * bits/byteswap.h: Allow inclusion from <endian.h>.
2739 * sysdeps/i386/bits/byteswap.h: Likewise.
2740 * sysdeps/ia64/bits/byteswap.h: Likewise.
2741 * sysdeps/s390/bits/byteswap.h: Likewise.
2742 * sysdeps/x86_64/bits/byteswap.h: Likewise.
2743 * string/Makefile (tests): Add tst-endian.
2744 * string/tst-endian.c: New file.
2745
c8d49f05
UD
2746 * iconvdata/run-iconv-test.sh: Use = instead of == in test.
2747 Patch by Reuben Thomas.
2748
a754f018
UD
27492008-05-14 Joseph Myers <joseph@codesourcery.com>
2750
2751 * iconvdata/Makefile (bug-iconv6-ENV, tst-iconv7-ENV): Define.
2752
372bfcac
UD
27532008-05-14 Ulrich Drepper <drepper@redhat.com>
2754
a754f018
UD
2755 * iconvdata/bug-iconv6.c (do_test): Use de_DE.UTF-8 locale.
2756
5deca9bb
UD
2757 [BZ #6461]
2758 * iconv/gconv_simple.c (BODY for __gconv_transform_ascii_internal):
2759 Add missing braces.
2760 (BODY for __gconv_transform_internal_ascii): Likewise.
2761
af77c9b7 2762 [BZ #6472]
5fab5544
UD
2763 * sysdeps/posix/getaddrinfo.c (get_scope): Loopback addresses have
2764 to be treated like link-local addresses.
5846c4e2
UD
2765 (match_prefix): Don't treat IPv4 loopback address special when
2766 converting to v4 mapped addressed.
5fab5544 2767
0caca71a 2768 * sysdeps/posix/getaddrinfo.c (getaddrinfo): Call _res_hconf_init
1f039824 2769 if necessary.
b194db79
UD
2770 * posix/tst-rfc3484.c: Add dummy definition of _res_hconf_init.
2771 * posix/tst-rfc3484-2.c: Likewise.
2772 * posix/tst-rfc3484-3.c: Likewise.
1f039824 2773
18a74157
UD
2774 * sysdeps/posix/getaddrinfo.c: Implement handling of DCCP, UDPlite,
2775 and SCTP.
372bfcac
UD
2776
2777 * nss/getent.c (ahosts_keys_int): Handle all known socket types.
2778
2779 * inet/netinet/in.h (IPPIPPROTO_DCCP, IPPROTO_UDPLITE): Define.
2780
2781 * sysdeps/unix/sysv/linux/bits/socket.h (SOCK_DCCP): Define.
2782
f05ac8f5
UD
27832008-05-13 Ulrich Drepper <drepper@redhat.com>
2784
2785 * po/lt.po: New file. From Lituanian translation team.
2786
c9ff0187
UD
27872008-01-30 Alexandre Oliva <aoliva@redhat.com>
2788
2789 Introduce TLS descriptors for i386 and x86_64.
2790 * include/inline-hashtab.h: New file, copied from 2005's
2791 libiberty, with fix for memory leak imported afterwards by
2792 Glauber de Oliveira Costa.
2793 * elf/tlsdeschtab.h: New file.
2794 * elf/dl-reloc.c (_dl_try_allocate_static_tls): Extract from...
2795 (_dl_allocate_static_tls): ... here. Rearrange failure path.
2796 (CHECK_STATIC_TLS): Move to...
2797 * elf/dynamic-link.h: ... this file.
2798 (TRY_STATIC_TLS): New macro.
2799 * elf/dl-conflict.c (CHECK_STATIC_TLS, TRY_STATIC_TLS): Override.
2800 * elf/elf.h (R_386_TLS_GOTDESC, R_386_TLS_DESC_CALL,
2801 R_386_TLS_DESC): Define.
2802 (R_X86_64_PC64, R_X86_GOTOFF64, R_X86_64_GOTPC32): Merge from
2803 binutils.
2804 (R_X86_64_GOTPC32_TLSDESC, R_X86_64_TLSDESC_CALL,
2805 R_X86_64_TLSDESC): Define.
2806 (R_386_NUM, R_X86_64_NUM): Adjust.
2807 * sysdeps/i386/Makefile (sysdep-dl-routines, sysdep_routines,
f05ac8f5 2808 sysdep-rtld-routines): Add tlsdesc and dl-tlsdesc for elf subdir.
c9ff0187
UD
2809 (gen-as-const-headers): Add tlsdesc.sym to csu subdir.
2810 * sysdeps/i386/dl-lookupcfg.h: New file. Introduce _dl_unmap to
2811 release tlsdesc_table.
2812 * sysdeps/i386/dl-machine.h: Include dl-tlsdesc.h.
2813 (elf_machine_type_class): Mark R_386_TLS_DESC as PLT class.
2814 (elf_machine_rel): Handle R_386_TLS_DESC.
2815 (elf_machine_rela): Likewise.
2816 (elf_machine_lazy_rel): Likewise.
2817 (elf_machine_lazy_rela): Likewise.
2818 * sysdeps/i386/dl-tls.h (struct dl_tls_index): Name it.
2819 * sysdeps/i386/dl-tlsdesc.S: New file.
2820 * sysdeps/i386/dl-tlsdesc.h: New file.
2821 * sysdeps/i386/tlsdesc.c: New file.
2822 * sysdeps/i386/tlsdesc.sym: New file.
2823 * sysdeps/i386/bits/linkmap.h (struct link_map_machine): Add
2824 tlsdesc_table.
2825 * sysdeps/x86_64/Makefile (sysdep-dl-routines, sysdep_routines,
f05ac8f5 2826 sysdep-rtld-routines): Add tlsdesc and dl-tlsdesc for elf subdir.
c9ff0187
UD
2827 (gen-as-const-headers): Add tlsdesc.sym to csu subdir.
2828 * sysdeps/x86_64/dl-lookupcfg.h: New file. Introduce _dl_unmap to
2829 release tlsdesc_table.
2830 * sysdeps/x86_64/dl-machine.h: Include dl-tlsdesc.h.
2831 (elf_machine_runtime_setup): Set up lazy TLSDESC GOT entry.
2832 (elf_machine_type_class): Mark R_X86_64_TLSDESC as PLT class.
2833 (elf_machine_rel): Handle R_X86_64_TLSDESC.
2834 (elf_machine_rela): Likewise.
2835 (elf_machine_lazy_rel): Likewise.
2836 * sysdeps/x86_64/dl-tls.h (struct dl_tls_index): Name it.
2837 (__tls_get_addr): Do not declare for non-shared compiles.
2838 * sysdeps/x86_64/dl-tlsdesc.S: New file.
2839 * sysdeps/x86_64/dl-tlsdesc.h: New file.
2840 * sysdeps/x86_64/tlsdesc.c: New file.
2841 * sysdeps/x86_64/tlsdesc.sym: New file.
2842 * sysdeps/x86_64/bits/linkmap.h (struct link_map_machine): Add
2843 tlsdesc_table for both 32- and 64-bit structs.
2844
a3636e8b
UD
28452008-05-11 Ulrich Drepper <drepper@redhat.com>
2846
2847 * elf/dl-tls.c (__tls_get_addr): Optimize by moving slow path in
2848 its own function. This reduces the frame setup costs and more.
2849
a7eb802f
UD
28502008-02-11 Joseph Myers <joseph@codesourcery.com>
2851
2852 [BZ #3406]
2853 * sysdeps/ieee754/flt-32/w_expf.c (o_threshold): Correct value.
2854 * math/libm-test.inc (exp_test): Test 88.72269439697265625.
2855
3490f01d
UD
28562008-05-11 Ulrich Drepper <drepper@redhat.com>
2857
3d7eeebe
UD
2858 * io/openat.c (__openat_2): Also pass fd to __openat.
2859 * io/openat64.c (__openat64_2): Also pass fd to __openat64.
2860 Patch by Kristian Van Der Vliet <vanders@liqwyd.com>.
2861
3490f01d
UD
2862 * string/tester.c (test_memcmp): Add a few more tests.
2863 Patch by Mats Erik Andersson <ynglingatal@comhem.se>.
2864
7e71e55f
UD
28652008-05-10 Ulrich Drepper <drepper@redhat.com>
2866
2867 * nscd/cache.c (cache_add): Before returning with failure and this
2868 is the first use of the record, mark it as unusable.
2869 * nscd/aicache.c: Don't touch the dataset after cache_add returns
2870 reporting a failure.
2871 * nscd/grpcache.c: Likewise
2872 * nscd/hstcache.c: Likewise.
2873 * nscd/initgrcache.c: Likewise.
2874 * nscd/pwdcache.c: Likewise.
343996c4 2875 * nscd/servicescache.c: Likewise.
7e71e55f 2876
7396d0a9
RM
28772008-05-10 Roland McGrath <roland@redhat.com>
2878
2879 [BZ #6505]
2880 * sysdeps/unix/sysv/linux/sys/user.h: Replace with #error stub.
2881
c5ee217f
UD
28822008-05-08 David S. Miller <davem@davemloft.net>
2883
b29899ae
UD
2884 * misc/truncate64.c (truncate64): Use __truncate not truncate.
2885
c5ee217f
UD
2886 * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee751_j0l): Use __finitel.
2887 (__ieee754_y0l): Likewise.
2888 * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): Likewise.
2889 (__ieee754_y1l): Likewise.
2890 * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Use __ldexpl.
2891 * sysdeps/ieee754/ldbl-128/s_log1pl.c: Kill bogus prototypes for
2892 frexpl and ldexpl. math_private.h provides them and the latter
2893 is not even used.
2894 (__log1pl): Use __frexpl.
2895
1eb946b9
UD
28962008-05-10 Ulrich Drepper <drepper@redhat.com>
2897
2898 * include/resolv.h: Adjust __libc_res_nquery and __libc_res_nsend
2899 prototypes.
2900 * include/arpa/nameser_compat.h: Define T_UNSPEC.
2901 * nis/Versions (libnss_nis): Export _nss_nis_gethostbyname4_r.
2902 (libnss_nisplus): Export _nss_nisplus_gethostbyname4_r.
2903 * nis/nss_nis/nis-hosts.c (LINE_PARSER): Change to also handle
2904 af==AF_UNSPEC.
2905 (_nss_nis_gethostbyname4_r): New function.
2906 * nis/nss_nisplus/nisplus-hosts.c (_nss_nisplus_parse_hostent):
2907 Change to also handle af==AF_UNSPEC.
2908 (get_tablename): New function. Use it to avoid duplication.
2909 (_nss_nisplus_gethostbyname4_r): New function.
2910 * nscd/aicache.c (addhstaiX): Use gethostbyname4_r function is
2911 available.
2912 * nss/Versions (libnss_files): Export _nss_files_gethostbyname4_r.
2913 * nss/nss.h: Define struct gaih_addrtuple.
2914 * nss/nss_files/files-hosts.c (LINE_PARSER): Change to also handle
2915 af==AF_UNSPEC.
2916 (_nss_files_gethostbyname4_r): New function.
2917 * resolv/Versions (libnss_dns): Export _nss_dns_gethostbyname4_r.
2918 * resolv/gethnmaddr.c: Adjust __libc_res_nsearch and __libc_res_nquery
2919 calls.
2920 * resolv/res_query.c (__libc_res_nquery): Take two additional
2921 parameters for second answer buffer. Handle type=T_UNSPEC to mean
2922 look up IPv4 and IPv6.
2923 Change all callers.
2924 * resolv/res_send.c (__libc_res_nsend): Take five aditional parameters
2925 for an additional query and answer buffer. Pass to send_vc and
2926 send_dg.
2927 (send_vc): Send possibly two requests and receive two answers.
2928 (send_dg): Likewise.
2929 * resolv/nss_dns/dns-host.c: Adjust calls to __libc_res_nsearch and
2930 __libc_res_nquery.
2931 (_nss_dns_gethostbyname4_r): New function.
2932 (gaih_getanswer_slice): Likewise.
2933 (gaih_getanswer): Likewise.
2934 * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Adjust
2935 __libc_res_nquery call.
2936 * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyaddr_r): Likewise.
2937 (_nss_dns_getnetbyname_r): Adjust __libc_res_nsearch call.
2938 * sysdeps/posix/getaddrinfo.c: Use gethostbyname4_r function is
2939 available.
2940
b7fb703a
JJ
29412008-05-05 David S. Miller <davem@davemloft.net>
2942
2943 * sysdeps/sparc/sparc32/Makefile: Use -mcpu=v7 for initfini.s build.
2944 * sysdeps/sparc/sparc64/Makefile: Use -mcpu=v9 for initfini.s build.
2945
2256e43d
RM
29462007-09-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
2947
2948 Fix termios bit macros.
2949 Move *DLY definitions where they belong, in termios.h.
2950 Add *[0-3] definitions.
2951 Fixes confusion between VT and FF.
8bb52dbf
RM
2952 * sysdeps/mach/hurd/bits/ioctls.h (NL0, NL1, TAB0, TAB1, TAB2, CR0,
2953 CR1, CR2, CR3, FF0, FF1, BS0, BS1): Undefine these at start if they
2954 are already defined to avoid collision with termios.h.
2256e43d
RM
2955 (NLDLY, TABDLY, TAB3, CRDLY, VTDLY, BSDLY): Remove macros.
2956 * bits/termios.h [__USE_MISC || __USE_XOPEN] (NL0, NL1, TAB0,
2957 TAB1, TAB2, CR0, CR1, CR2, CR3, FF0, FF1, BS0, BS1): Likewise.
2958 [__USE_BSD || __USE_XOPEN] (OCRNL, ONOCR, ONLRET): New macros.
2959 [__USE_MISC || __USE_XOPEN] (NLDLY, NL0, NL1, TABDLY, TAB0, TAB1, TAB2,
2960 TAB3, CRDLY, CR0, CR1, CR2, CR3, FFDLY, FF0, FF1, BSDLY, BS0, BS1,
2961 VTDLY, VT0, VT1): New macros.
2962 [__USE_GNU] (OLCUC): Change value of macro.
2963 [__USE_XOPEN] (OFILL): New macro.
2964 [__USE_BSD] (CRTSCTS): Change value.
2965 (CRTS_IFLOW, CCTS_OFLOW): Change into compatibility macros.
2966 [__USE_BSD] (CDTRCTS, CHWFLOW): New macros.
2967 (B7200, B14400, B28800, B76800): New macros.
2968
4ce349e5
JJ
29692008-05-01 David S. Miller <davem@davemloft.net>
2970
a86a7a39
JJ
2971 * sysdeps/unix/sysv/linux/sparc/sparc32/ucontext_i.sym: New file.
2972 * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile [$(subdir) = stdlib]:
2973 (gen-as-const-headers): Add it.
2974 * sysdeps/unix/sysv/linux/sparc/sparc32/getcontext.S: New file.
2975 * sysdeps/unix/sysv/linux/sparc/sparc32/makecontext.c: Likewise.
2976 * sysdeps/unix/sysv/linux/sparc/sparc32/setcontext.S: Likewise.
2977 * sysdeps/unix/sysv/linux/sparc/sparc32/swapcontext.S: Likewise.
2256e43d 2978
4ce349e5
JJ
2979 * sysdeps/unix/sysv/linux/sparc/sparc32/syscall.S: Add support for
2980 six system call parameters.
2981 * sysdeps/unix/sysv/linux/sparc/sparc64/syscall.S: Likewise.
2982
89a8963d
UD
29832008-04-30 Ulrich Drepper <drepper@redhat.com>
2984
2985 * sysdeps/unix/sysv/linux/bits/resource.h: Define RUSAGE_THREAD and
2986 RUSAGE_LWP.
2987 * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Likewise.
2988 * sysdeps/unix/sysv/linux/alpha/bits/resource.h: Likewise.
2989
b5ec5fce
JJ
29902008-04-30 Jakub Jelinek <jakub@redhat.com>
2991
2992 * stdlib/tst-setcontext.c: Include unistd.h.
2993
d4e92d9e
JJ
29942008-04-25 David S. Miller <davem@davemloft.net>
2995
2996 * sysdeps/unix/sysv/linux/sparc/sparc64/semctl.c (semctl):
2997 Pass "union semun" properly in to sys_ipc, it must be passed
2998 by value, not by reference.
2999
7eb5e6c9
UD
30002008-04-22 Jakub Jelinek <jakub@redhat.com>
3001
3002 * nscd/Makefile (nscd-cflags): Set back to -fpie.
3003 * nscd/nscd.h (mem_in_flight): Add attribute_tls_model_ie.
3004 * nscd/connections.c (mem_in_flight): Likewise.
3005
3006 * nscd/nscd.h (dbs): Make hidden.
3007
3008 * sysdeps/unix/sysv/linux/times.c (__times): Fix check for EFAULT.
3009 Avoid returning -1, return 0 instead.
3010
0073dd2d
UD
30112008-04-19 Ulrich Drepper <drepper@redhat.com>
3012
3013 * resolv/res_mkquery.c (__res_nopt): Use NS_PUT16 instead of ns_put16.
3014
c52137d3
UD
30152008-04-15 Ulrich Drepper <drepper@redhat.com>
3016
3017 [BZ #5209]
3018 * sysdeps/unix/sysv/linux/times.c: New file.
3019
3020 [BZ #5381]
3021 * nscd/nscd.h: Define enum in_flight, mem_in_flight, and
3022 mem_in_flight_list variables. Add new parameter to mempool_alloc
3023 prototype.
3024 * nscd/mem.c (mempool_alloc): Take additional parameter. Initialize
3025 appropriate mem_in_flight element.
3026 (gc): Take allocations which have not yet been committed to the
3027 database into account.
3028 * nscd/cache.c (cache_add): Add new parameter to mempool_alloc call.
3029 Reset mem_in_flight before returning.
3030 * nscd/connections.c (nscd_run_worker): Initialize mem_in_flight and
3031 cue it up in mem_in_flight_list.
3032 * nscd/aicache.c: Adjust mempool_alloc call.
3033 * nscd/grpcache.c: Likewise.
3034 * nscd/hstcache.c: Likewise.
3035 * nscd/initgrcache.c: Likewise.
3036 * nscd/pwdcache.c: Likewise.
3037 * nscd/servicescache.c: Likewise.
3038 * nscd/Makefile (nscd-flags): Until ld is fixed, use -fpic instead
3039 of -fpie.
3040
3041 * nscd/connections.c (handle_request): Provide better error message
3042 in case SELinux forbids the service.
3043
3044 * version.h (VERSION): Bump to 2.8.90.
3045
39546e34
JJ
30462008-04-17 Jakub Jelinek <jakub@redhat.com>
3047
3048 * sysdeps/unix/sysv/linux/dl-osinfo.h: Include fcntl.h.
3049
cf3a8c7f
UD
30502008-04-11 Ulrich Drepper <drepper@redhat.com>
3051
9e113ecd
UD
3052 * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h (__signbitl):
3053 Also use for 32-bit.
3b6d574e
UD
3054 * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c (__nearbyintl): Use
3055 __nextafter instead of nextafter to avoid local PLT.
c3a0ead4
UD
3056 * sysdeps/powerpc/fpu/e_sqrt.c: Avoid call to fetestexcept.
3057 * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
3058
3781ec29
UD
3059 * scripts/data/localplt-powerpc64-linux-gnu.data: New file.
3060
246ec411
UD
3061 * sysdeps/powerpc/fpu/fenv_libc.h: Add libm_hidden_proto for
3062 __fe_nomask_env.
3cc56f92
UD
3063 * sysdeps/powerpc/fpu/fe_nomask.c: Add libm_hidden_def. Include
3064 <fenv_libc.h> instead of <fenv.h>.
246ec411
UD
3065 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c: Likewise.
3066 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c: Likewise.
3067
3068 * sysdeps/powerpc/bits/fenv.h: Make safe for C++.
3069
3070 * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h: New file.
3071 * sysdeps/powerpc/fpu/fegetexcept.c (__fegetexcept): Rename
3072 function from fegetexcept and make old name weak alias.
3073 * include/fenv.h: Declare __fegetexcept.
3074 * sysdeps/powerpc/fpu/fedisblxcpt.c: Use __fegetexcept instead of
3075 fegetexcept.
3076 * sysdeps/powerpc/fpu/feenablxcpt.c: Likewise.
3077 * sysdeps/powerpc/fpu/fraiseexcpt.c (__feraiseexcept): Avoid call
3078 to fetestexcept.
3079 * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (__log1pl): Use __frexpl
3080 instead of frexpl to avoid local PLT.
3081 * math/s_significandl.c (__significandl): Use __ilogbl instead of
3082 ilogbl to avoid local PLT.
3083 * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (__expm1l): Use __ldexpl
3084 instead of ldexpl to avoid local PLT.
3085 * sysdeps/ieee754/ldbl-128ibm/e_expl.c (__ieee754_expl): Use
3086 __roundl not roundl to avoid local PLT.
3087 * sysdeps/ieee754/ldbl-128/e_j0l.c: Use function names which avoid
3088 local PLTs. Use __sincosl instead of separate sinl and cosl
3089 calls.
3090 * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
3091
2dc4a2fd
UD
3092 * sysdeps/unix/sysv/linux/configure.in: Bump minimal kernel
3093 version for ppc64 to 2.4.21 since without it makecontext will fail.
3094
fe3350ee
UD
3095 * elf/tls-macros.h [__powerpc64__] (__TLS_GET_ADDR): Define according
3096 to the ABI in use.
3097 [__powerpc64__] (TLS_LD): Use __TLS_GET_ADDR instead of
3098 .__tls_get_addr.
3099 [__powerpc64__] (TLS_GD): Likewise.
cf3a8c7f 3100
c1e6b459
UD
31012007-11-20 Ryan S. Arnold <rsa@us.ibm.com>
3102
7763d4f1 3103 [BZ #4997]
c1e6b459
UD
3104 * sysdeps/powerpc/powerpc32/fpu/s_lround.S (__lround): Fixed erroneous
3105 result when x is +/-nextafter(+/-0.5,-/+1) i.e. all 1's in the
3106 mantissa.
3107 * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S (__llround):
3108 Likewise. Also account for when x is an odd number between 2^52
3109 and 2^53-1.
3110 * sysdeps/powerpc/powerpc64/fpu/s_llround.S (__llround): Likewise.
3111 * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S (__llroundf): Likewise.
3112 * math/libm-test.inc (lround_test, llround_test): Added test cases to
3113 detect aforementioned erroneous conditions.
3114
22dca1ea
UD
31152008-04-11 Jakub Jelinek <jakub@redhat.com>
3116
3117 * configure.in: Check for -fno-section-anchors in addition to
3118 -fno-toplevel-reorder.
3119
5d59f4a5
UD
31202008-04-11 Ulrich Drepper <drepper@redhat.com>
3121
3122 * include/features.h (__GLIBC_MINOR__): Bump to 8.
3123
3124 * sysdeps/powerpc/powerpc32/fpu/s_lroundf.S: Remove duplicate comment.
3125 * sysdeps/powerpc/powerpc32/power5+/fpu/s_llroundf.S: Likewise.
3126 * sysdeps/powerpc/powerpc32/power6/fpu/s_llroundf.S: Likewise.
3127 * sysdeps/powerpc/powerpc64/fpu/s_lrint.S: Likewise.
3128 * sysdeps/powerpc/powerpc64/fpu/s_lround.S: Likewise.
3129 * sysdeps/powerpc/powerpc64/fpu/s_lroundf.S: Likewise.
3130
91e32540
UD
31312008-04-11 Jakub Jelinek <jakub@redhat.com>
3132
3133 [BZ #5443]
3134 * time/era.c: Transform __libc_setlocale_lock into rwlock.
3135 * time/alt_digit.c: Likewise.
3136 * wcsmbs/wcsmbsload.c: Likewise.
3137
fd490ac8
UD
31382008-04-10 Ulrich Drepper <drepper@redhat.com>
3139
1db5b6f4
UD
3140 * version.h (VERSION): Bump to 2.8.
3141
fd490ac8
UD
3142 * timzeone/asia: Update from tzdata2008b.
3143 * timezone/backward: Likewise.
3144 * timezone/europe: Likewise.
3145 * timezone/northamerica: Likewise.
3146 * timezone/southamerica: Likewise.
3147 * timezone/iso3166.tab: Likewise.
3148 * timezone/leapseconds: Likewise.
3149 * timezone/zone.tab: Likewise.
3150 * timezone/private.h: Update from tzcode2008a.
3151 * timezone/zdump.c: Likewise.
3152 * timezone/zic.c: Likewise.
3153
153cf972
UD
31542008-01-24 Steven Munroe <sjmunroe@us.ibm.com>
3155
3156 [BZ #5741]
3157 * sysdeps/powerpc/powerpc64/dl-machine.h (PPC_DCBT, PPC_DCBF):
3158 Define additonal Data Cache Block instruction macros.
3159 (elf_machine_fixup_plt): Add dcbt for opd and plt entries.
3160 Replace dcbst with dcbf and sync with sync/isync.
3161
d2207f32
UD
31622008-02-21 Alan Modra <amodra@bigpond.net.au>
3163
3164 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_type_class):
3165 Always set ELF_RTYPE_CLASS_PLT.
3166 (elf_machine_lookup_noexec_p, elf_machine_lookup_noplt_p): Delete.
3167
13d83320
UD
31682008-04-03 Steven Munroe <sjmunroe@us.ibm.com>
3169
3170 * sysdeps/powerpc/powerpc32/power4/hp-timing.c: New file.
3171 * sysdeps/powerpc/powerpc32/power4/hp-timing.h: New file.
3172 * sysdeps/powerpc/powerpc64/hp-timing.h [_ARCH_PWR4] (HP_TIMING_NOW):
3173 For ISA 2.01 and later replace mftb with mfspr 268.
3174
5f7aead5
UD
31752008-02-19 Steven Munroe <sjmunroe@us.ibm.com>
3176
3177 [BZ #5768]
3178 * sysdeps/powerpc/fpu/Makefile (libm-tests): Add test-powerpc-snan.
3179 * sysdeps/powerpc/fpu/test-powerpc-snan.c: New file.
3180
31812008-02-18 Steven Munroe <sjmunroe@us.ibm.com>
3182
3183 [BZ #5768]
3184 * sysdeps/powerpc/powerpc32/fpu/s_isnan.S: New file.
3185 * sysdeps/powerpc/powerpc32/fpu/s_isnan.c: Removed.
3186 * sysdeps/powerpc/powerpc64/fpu/s_isnan.S: New file.
3187 * sysdeps/powerpc/powerpc64/fpu/s_isnan.c: Removed.
3188
117df5d9
JJ
31892008-04-10 Jakub Jelinek <jakub@redhat.com>
3190
3191 * stdlib/tst-makecontext.c (othervar): New variable.
3192 (cf): Test sign extending the argument to long.
3193
3b32d8a2
UD
31942008-03-03 Steven Munroe <sjmunroe@us.ibm.com>
3195
3196 * sysdeps/powerpc/powerpc32/power5/fpu/s_isnan.S: New file.
3197 * sysdeps/powerpc/powerpc32/power5/fpu/s_isnanf.S: New file.
3198 * sysdeps/powerpc/powerpc32/power6/fpu/s_isnan.S: New file.
3199 * sysdeps/powerpc/powerpc32/power6/fpu/s_isnanf.S: New file.
3200 * sysdeps/powerpc/powerpc64/power5/fpu/s_isnan.S: New file.
3201 * sysdeps/powerpc/powerpc64/power6/fpu/s_isnan.S: New file.
3202 * sysdeps/powerpc/powerpc64/power6x/fpu/s_isnan.S: New file.
3203
9fb11d4c
UD
32042008-02-22 Alan Modra <amodra@bigpond.net.au>
3205
3206 * elf/Makefile (tests): Substitute tests-vis-yes here.
3207 (tests-vis-yes): Delete.
3208 (modules-name, modules-vis-yes): Similarly.
3209
facd1d8e
UD
32102008-02-12 Pete Eberlein <eberlein@us.ibm.com>
3211
3212 [BZ #4407]
3213 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
3214 Preserve sign in signgamp when x is zero.
3215
aece054b
UD
32162007-10-26 Steven Munroe <sjmunroe@us.ibm.com>
3217
3218 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.S: New File.
3219 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.c: Removed.
3220 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.S: New File.
3221 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.c: Removed.
3222 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt.S: New File.
3223 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf.S: New File.
3224
6c30d38f
UD
32252008-04-09 Ulrich Drepper <drepper@redhat.com>
3226
21208604 3227 [BZ #4314]
13d83320
UD
3228 * sysdeps/i386/i686/memcpy.S: Optimize copying of equally aligned
3229 buffers.
21208604 3230
2f611ada 3231 [BZ #5209]
d1235fdf
UD
3232 * sysdeps/unix/sysv/syscalls.list: The times syscall doesn't have
3233 a reserved error value.
2f611ada 3234
6c30d38f
UD
3235 * stdlib/tst-makecontext.c: Change parameter to cf to negative
3236 value to check for correct sign extension.
3237
3238 [BZ #5436]
3239 * sysdeps/unix/sysv/linux/x86_64/makecontext.c (__makecontext):
3240 Copy 64-bit parameter values even though this is not required in
3241 the standard.
3242
3243 * sysdeps/unix/sysv/linux/x86_64/vfork.S (__vfork): Record return
3244 PC save.
3245
de1bbf68
UD
32462008-02-14 Daniel Jacobowitz <dan@codesourcery.com>
3247
3248 * sysdeps/unix/sysv/linux/i386/vfork.S (__vfork): Record return
3249 PC save.
3250
9aef35a5
UD
32512008-04-09 Jakub Jelinek <jakub@redhat.com>
3252
3253 * nss_files/files-XXX.c (_nss_files_getXXent_r): Restore saved errno.
3254
a7925a24
UD
32552008-04-09 Ulrich Drepper <drepper@redhat.com>
3256
3257 [BZ #5998]
3258 * libio/iofwrite.c (_IO_fwrite): Return correct count if flushing
3259 in line-buffered stream failed.
3260 * libio/iofwrite_u.c (fwrite_unlocked): Likewise.
3261
7b61ef24
UD
32622008-04-08 Ulrich Drepper <drepper@redhat.com>
3263
c2a684a4
UD
3264 [BZ #6024]
3265 * scripts/abi-versions.awk: If the version specified by
3266 --enable-oldest-abi is older than the first version for this
3267 architecture, use the default version.
3268
7b61ef24
UD
3269 * locale/programs/ld-collate.c (collate_read): Ignore script lines
3270 as well when ignoring the whole category.
3271
f6d749f0
UD
32722008-04-07 Ulrich Drepper <drepper@redhat.com>
3273
3274 [BZ #6042]
3275 * sysdeps/unix/sysv/linux/net/ethernet.h: Add a few more
3276 ETHERTYPE_* definitions.
3277 Patch partly by Aurelien Jarno <aurelien@aurel32.net>.
3278
1e99aede
JJ
32792008-04-07 Jakub Jelinek <jakub@redhat.com>
3280
3281 * stdlib/mbtowc.c (__no_r_state): Remove.
3282 (mbtowc): New static state variable. Use it instead of
3283 __no_r_state.
3284 * stdlib/wctomb.c (__no_r_state): Remove extern decl.
3285 (__wctomb_state): New hidden variable.
3286 (wctomb): Use __wctomb_state instead of __no_r_state.
3287 * debug/wctomb_chk.c (__no_r_state): Remove extern decl.
3288 (__wctomb_state): New extern decl.
3289 (__wctomb_chk): Use __wctomb_state instead of __no_r_state.
3290
fcf90e0a
UD
32912008-04-07 Ulrich Drepper <drepper@redhat.com>
3292
3293 [BZ #5475]
3294 * resolv/res_init.c: Handle scope IDs in resolv.conf.
3295
ae39e102
JJ
32962008-04-07 Jakub Jelinek <jakub@redhat.com>
3297
3298 * malloc/mtrace.pl: Use $@ instead of $* to keep perl 5.10 quiet.
3299
2503dd30
UD
33002008-04-06 Ulrich Drepper <drepper@redhat.com>
3301
3302 * po/nl.po: Update from translation team.
3303
3eb9c809
UD
33042008-03-31 Ulrich Drepper <drepper@redhat.com>
3305
3306 [BZ #6007]
3307 * string/strfry.c: Handle empty strings again.
3308
9a69db29
UD
33092008-03-30 Ulrich Drepper <drepper@redhat.com>
3310
3311 [BZ #5443]
3312 * intl/dcigettext.c (__dcigettext): Get reader lock for locale data
3313 before looking for translation.
3314 * locale/duplocale.c: Transform __libc_setlocale_lock into rwlock.
3315 * locale/freelocale.c: Likewise.
3316 * locale/newlocale.c: Likewise.
3317 * locale/setlocale.c: Likewise.
3318 Based partially on a patch by ryo@np.css.fujitsu.com.
3319
2ecc7d93
UD
33202008-03-30 Jakub Jelinek <jakub@redhat.com>
3321
3322 * intl/dcigettext.c (_nl_find_msg): Reread nconversions after
3323 acquiring wrlock. Do conv_tab allocation while holding lock.
3324 * intl/Makefile: Add rules to build and run tst-gettext6.
3325 * intl/tst-gettext6.c: New test.
3326 * intl/tst-gettext6.sh: New file.
3327
221e5230
UD
33282008-03-30 Ulrich Drepper <drepper@redhat.com>
3329
faa091c6
UD
3330 * po/nl.po: Update from translation team.
3331
221e5230
UD
3332 * sysdeps/unix/opendir.c (__alloc_dir): If allocation fails for size
3333 provided through st_blksize, try the default size before giving up.
3334
1c272665
UD
33352008-03-29 Ulrich Drepper <drepper@redhat.com>
3336
43f6bec1
UD
3337 * stdio-common/vfprintf.c (vfprintf): Correct overflow test.
3338
e8a32126
UD
3339 [BZ #5939]
3340 * sysdeps/posix/tempname.c (__gen_tempname): Correct flag selection.
3341
1e489af9
UD
3342 * posix/getopt.c (_getopt_internal_r): Remove old POSIX-demanded
3343 error message. POSIX today does not require the messages to be in
3344 a specific form. Suggested by Jim Meyering <jim@meyering.net>.
3345
1d20f7f8
UD
3346 [BZ #5979]
3347 * sunrpc/auth_unix.c: Unify printed strings.
3348 * sunrpc/clnt_tcp.c: Likewise.
3349 * sunrpc/clnt_udp.c: Likewise.
3350 * sunrpc/clnt_unix.c: Likewise.
3351 * sunrpc/svc_tcp.c: Likewise.
3352 * sunrpc/svc_udp.c: Likewise.
3353 * sunrpc/svc_unix.c: Likewise.
3354 * sunrpc/xdr.c: Likewise.
3355 * sunrpc/xdr_array.c: Likewise.
3356 * sunrpc/xdr_rec.c: Likewise.
3357 * sunrpc/xdr_ref.c: Likewise.
3358 * locale/programs/ld-time.c (time_finish): Unify messages.
3359 * locale/programs/locfile.c (handle_copy): Fix typo.
3360 * nscd/nscd.c (options): Fix typo.
3361
1c272665
UD
3362 [BZ #5995]
3363 * stdlib/strtod_l.c: Use correct sign for result in one more
3364 underflow case.
3365 Patch by Eric Blake <ebb9@byu.net>.
3366
48cc060e
UD
33672008-03-27 Jakub Jelinek <jakub@redhat.com>
3368
3369 * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Add open
3370 and creat system calls.
3371 * sysdeps/unix/sysv/linux/alpha/syscalls.list: Remove open system
3372 call.
3373 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Remove open and creat
3374 system calls.
3375 * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: Likewise.
3376 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
3377 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
3378
f96853be
UD
33792008-03-27 Ulrich Drepper <drepper@redhat.com>
3380
3381 * sysdeps/unix/sysv/linux/bits/local_lim.h: Undefined ARG_MAX if
3382 <linux/limits.h> has defined it.
3383 * sysdeps/unix/sysv/linux/sys/param.h: Define NCARGS to the legacy
3384 ARG_MAX value and prevent ARG_MAX from being defined by the kernel
3385 headers.
3386 * sysdeps/unix/sysv/linux/sysconf.c: Define legacy_ARG_MAX and use
3387 it instead of ARG_MAX.
3388
fde15fdc
UD
33892008-03-25 Jakub Jelinek <jakub@redhat.com>
3390
3391 * posix/gai.conf: Fix comment for scope nullbits.
3392 * sysdeps/posix/getaddrinfo.c (gaiconf_init): If /bits is not present,
3393 default to 128 bits for v4 mapped addresses.
3394
87b9b50f
UD
33952008-03-07 Martin Schwidefsky <schwidefsky@de.ibm.com>
3396
3397 * sysdeps/s390/fpu/fegetenv.c (fegetenv): Remove PTRACE_PEEKUSER
3398 ptrace call to get the ieee_instruction_pointer from the kernel.
3399 * sysdeps/s390/fpu/fesetenv.c (fesetenv): Remove PTRACE_POKEUSER
3400 ptrace call to set the ieee_instructtion_pointer.
3401 * sysdeps/unix/sysv/linux/s390/sys/user.h (struct _user_regs_struct):
3402 Add comment that ieee_instruction_pointer is always 0.
3403
af0498dc
UD
34042008-03-09 Andreas Jaeger <aj@suse.de>
3405
3406 [BZ #5857]
3407 * sysdeps/ieee754/dbl-64/s_rint.c (__rint): Handle j0==18.
3408 * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Likewise.
3409 Patch by Mark Elliott <mark.h.elliott@lmco.com>.
3410
3411 * math/libm-test.inc (nearbyint_test): Add new test cases from #5857.
3412 (rint_test): Likewise.
3413
0ab7632d
UD
34142008-03-24 Ulrich Drepper <drepper@redhat.com>
3415
0facd3df
UD
3416 * nis/nis_call.c (nis_server_cache_search): Save errno around stat
3417 call.
3418 (__nisfind_server): Similar for open readColdStartFile call.
3419 Patch partially by Jim Meyering.
3420 * nss/nss_files/files-XXX.c (_nss_files_getXXent_r): Save errno
3421 around internal_setent call.
3422
7e570c55
UD
3423 * po/vi.po: New Vietnamese translation.
3424
e093c247
UD
3425 * sysdeps/unix/sysv/linux/adjtime.c: Correctly use
3426 ADJ_OFFSET_SS_READ.
3427
0ab7632d
UD
3428 * sysdeps/unix/sysv/linux/bits/sched.h: Add new CLONE_* flags,
3429 remove CLONE_STOPPED.
3430
0726cdf7
UD
34312008-02-10 Jim Meyering <meyering@redhat.com>
3432
3433 Remove useless "if" before "free":
3434 * elf/ldconfig.c (parse_conf_include): Likewise.
3435 * gmon/gmon.c (weak_alias): Likewise.
3436 * iconv/gconv_conf.c (__gconv_get_path): Likewise.
3437 * inet/rcmd.c (__validuser2_sa): Likewise.
3438 * intl/bindtextdom.c (set_binding_values): Likewise.
3439 * intl/loadmsgcat.c (_nl_load_domain, _nl_unload_domain): Likewise.
3440 * libio/genops.c (save_for_backup): Likewise.
3441 * libio/wgenops.c (save_for_wbackup): Likewise.
3442 * locale/programs/ld-collate.c (collate_read): Likewise.
3443 * locale/programs/linereader.c (get_string): Likewise.
3444 * nis/nss_compat/compat-pwd.c (give_pwd_free): Likewise.
3445 * nis/nss_compat/compat-spwd.c (give_spwd_free): Likewise.
3446 * resolv/res_debug.c (do_section): Likewise.
3447 * sunrpc/xdr_sizeof.c (x_inline, xdr_sizeof): Likewise.
3448 * sysdeps/mach/hurd/if_index.c (libc_hidden_def): Likewise.
3449 * sysdeps/posix/sprofil.c (__sprofil): Likewise.
3450 * time/lc-time-cleanup.c (_nl_cleanup_time): Likewise.
3451 * time/tzset.c (tzset_internal): Likewise.
3452
354b7527
JJ
34532008-03-18 Jakub Jelinek <jakub@redhat.com>
3454
3455 * sysdeps/unix/sysv/linux/dl-sysdep.h: Use __ASSEMBLER__ instead
3456 of ASSEMBLER.
3457
ca668b29
UD
34582008-03-11 Ulrich Drepper <drepper@redhat.com>
3459
3460 [BZ #5903]
3461 * iconv/iconv_charmap.c (charmap_conversion): Pass name of output file
3462 not stream for output file. Open output file here.
3463 * iconv/iconv_prog.c (process_lock): Take pointer to output stream
3464 and output file name.
3465 (process_fd): Likewise.
3466 (process_file): Likewise.
3467 (main): Adjust callers of changed functions.
3468 * iconv/iconv_prog.h: Adjust prototype.
3469
f3dc3415
AJ
34702008-03-09 Andreas Jaeger <aj@suse.de>
3471
3472 [BZ #5753]
3473 * sysdeps/ia64/ieee754.h: Use protected namespace
3474 __BIG_ENDIAN/__LITTLE_ENDIAN.
3475 * sysdeps/ieee754/ieee754.h: Likewise.
3476 Patch by Aurelien Jarno <aurelien@aurel32.net>.
3477
a8fd84d4
RM
34782008-03-08 Roland McGrath <roland@frob.com>
3479
2b965f1b
RM
3480 * hurd/hurdsig.c (_hurd_internal_post_signal): When normal rules would
3481 ignore a signal that came from a machine exception, treat it as a
3482 fatal core-dump signal instead.
3483 Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>.
3484
a8fd84d4
RM
3485 * sysdeps/mach/hurd/i386/trampoline.c (_hurd_setup_sighandler):
3486 Clear DF bit in thread state's eflags.
3487 Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>.
3488
368a8dec
UD
34892008-03-08 Ulrich Drepper <drepper@redhat.com>
3490
b3278554
UD
3491 [BZ #5774]
3492 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Consume closing brace
c6c00e0d 3493 of NAN(...) sequence.
b3278554
UD
3494 * stdlib/Makefile (tests): Add tst-strtod6.
3495 * stdlib/tst-strtod6.c: New file.
3496
3497 * inet/inet6_opt.c (inet6_opt_init): Check extlen for overflow.
3498
2127a186
UD
3499 [BZ #5762]
3500 * posix/getopt.c (_getopt_internal_r): Clarify error message by
3501 putting offending option character in quotes. Clean up error
3502 messages.
3503 * po/be.po: Adjust msgstr in translation file.
3504 * po/bg.po: Likewise.
3505 * po/ca.po: Likewise.
3506 * po/cs.po: Likewise.
3507 * po/da.po: Likewise.
3508 * po/de.po: Likewise.
3509 * po/es.po: Likewise.
3510 * po/fr.po: Likewise.
3511 * po/hr.po: Likewise.
3512 * po/ko.po: Likewise.
3513 * po/nl.po: Likewise.
3514 * po/rw.po: Likewise.
3515 * po/sk.po: Likewise.
3516 * po/sv.po: Likewise.
3517 * po/tr.po: Likewise.
3518 * po/zh_CN.po: Likewise.
3519 * po/zh_TW.po: Likewise.
3520
725c0c87
UD
3521 [BZ #5760]
3522 * inet/inet6_opt.c (inet6_opt_init): Fix ip6h_len computation.
3523 Patch by Roland Bless <roland@bless.de>.
3524
368a8dec
UD
3525 * sysdeps/unix/sysv/linux/dl-sysdep.c: Avoid unnecessary code for
3526 .o file.
3527 * elf/Makefile (routines): Add dl-sysdep.
3528 (elide-routines.os): Likewise.
3529
78c2bf0e
UD
35302008-03-07 Ulrich Drepper <drepper@redhat.com>
3531
7c22c7ec
UD
3532 [BZ #5786]
3533 * elf/dl-sysdep.c: Undefine ROUND after use.
3534 * sysdeps/generic/ldsodefs.h [HAVE_DL_DISCOVER_OSVERSION]
3535 (struct rtld_global_ro): Add _dl_tls_get_addr_soft element.
3536 * elf/rtld.c (rtld_global_ro): Initialize _dl_discover_osversion.
3537 * sysdeps/unix/sysv/linux/dl-osinfo.h: Move _dl_discover_osversion
3538 to ...
3539 * sysdeps/unix/sysv/linux/dl-sysdep.c: ...here.
3540 * sysdeps/unix/sysv/linux/dl-sysdep.h: Declare _dl_discover_osversion
3541 if necessary.
3542 * sysdeps/unix/sysv/linux/sysconf.c: Handle _SC_ARG_MAX here.
3543
93025f93
UD
3544 * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Add
3545 _dl_tls_get_addr_soft element.
3546 * elf/rtld.c (rtld_global_ro): Initialize _dl_tls_get_addr_soft.
3547 * elf/Versions (ld): Don't export _dl_tls_get_addr_soft.
3548 * dlfcn/dlinfo.c (dlinfo_doit): Access dl_tls_get_addr_soft through
3549 GLRO.
3550 * elf/dl-iteratephdr.c (__dl_iterate_phdr): Likewise.
3551 * elf/dl-tls.c (_dl_tls_get_addr_soft): Use attribute_hidden instead
3552 of internal_function.
3553
72f10127
UD
3554 * stdlib/Makefile (aux): Add tens_in_limb.
3555 * stdlib/strtod_l.c: Move _tens_in_limb definition to...
3556 * stdlib/tens_in_limb.c: ...here. New file.
3557
443db178
UD
3558 [BZ #5778]
3559 * sysdeps/unix/sysv/linux/pathconf.h: Declare
3560 __statfs_chown_restricted.
3561 * sysdeps/unix/sysv/linux/fpathconf.c: Call __statfs_chown_restricted
3562 for _PC_CHOWN_RESTRICTED.
3563 * sysdeps/unix/sysv/linux/pathconf.c: Likewise.
3564 Implement __statfs_chown_restricted.
3565 * sysdeps/unix/sysv/linux/bits/posix_opt.h: Change
3566 _POSIX_CHOWN_RESTRICTED value to zero.
c71665ad
UD
3567 * io/tst-fchownat.c: Correctly handle _POSIX_CHOWN_RESTRICTED
3568 defined to zero.
443db178 3569
78c2bf0e
UD
3570 * sysdeps/x86_64/rtld-memset.c: New file.
3571
443db178 35722008-02-26 Harsha Jagasia <harsha.jagasia@amd.com>
78c2bf0e
UD
3573
3574 * sysdeps/x86_64/cacheinfo.c (NOT_USED_RIGHT_NOW): Remove ifdef guards.
3575
3576 * sysdeps/x86_64/memset.S: Rewrite non-SSE code path as tuned for AMD
3577 Barcelona machine. Make default fall through branch of
3578 __x86_64_preferred_memory_instruction check as the integer code path.
3579
35802007-10-15 H.J. Lu <hongjiu.lu@intel.com>
3581
3582 * sysdeps/x86_64/cacheinfo.c
3583 (__x86_64_preferred_memory_instruction): New variable.
3584 (init_cacheinfo): Initialize __x86_64_preferred_memory_instruction.
3585
3586 * sysdeps/x86_64/memset.S: Rewrite.
3587
dff37515
UD
35882008-03-04 Jakub Jelinek <jakub@redhat.com>
3589
3590 * include/stdio.h (__asprintf_chk, __dprintf_chk,
3591 __obstack_printf_chk): New prototypes.
3592 (__vasprintf_chk, __vdprintf_chk,
3593 __obstack_vprintf_chk): Likewise.
3594 Add libc_hidden_proto.
3595 * libio/obprintf.c
3596 (_IO_obstack_jumps): No longer static, add attribute_hidden.
3597 * libio/bits/stdio-ldbl.h (__asprintf_chk, __dprintf_chk,
3598 __obstack_printf_chk, __vasprintf_chk, __vdprintf_chk,
3599 __obstack_vprintf_chk): Add __LDBL_REDIR_DECL.
3600 * libio/bits/stdio2.h (__asprintf_chk, __dprintf_chk,
3601 __obstack_printf_chk, __vasprintf_chk, __vdprintf_chk,
3602 __obstack_vprintf_chk): New prototypes.
3603 (asprintf, __asprintf, dprintf, obstack_printf, vasprintf, vdprintf,
3604 obstack_vprintf): New inlines.
3605 * debug/dprintf_chk.c: New file.
3606 * debug/vdprintf_chk.c: New file.
3607 * debug/asprintf_chk.c: New file.
3608 * debug/vasprintf_chk.c: New file.
3609 * debug/obprintf_chk.c: New file.
3610 * debug/tst-chk1.c (do_test): Add asprintf and obstack_printf tests.
3611 * debug/Versions (__asprintf_chk, __dprintf_chk, __obstack_printf_chk,
3612 __vasprintf_chk, __vdprintf_chk, __obstack_vprintf_chk): Export
3613 @@GLIBC_2.8.
3614 * debug/Makefile: Build asprintf_chk, vasprintf_chk, dprintf_chk,
3615 vdprintf_chk and obprintf_chk, set CFLAGS for them.
3616 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c (__nldbl___vasprintf_chk,
3617 __nldbl___vdprintf_chk, __nldbl___obstack_vprintf_chk): Add
3618 libc_hidden_proto.
3619 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl___vasprintf_chk,
3620 __nldbl___vdprintf_chk, __nldbl___obstack_vprintf_chk): New prototypes.
3621 * sysdeps/ieee754/ldbl-opt/Versions (__nldbl___asprintf_chk,
3622 __nldbl___vasprintf_chk, __nldbl___dprintf_chk, __nldbl___vdprintf_chk,
3623 __nldbl___obstack_printf_chk, __nldbl___obstack_vprintf_chk): Export
3624 @@GLIBC_2.8.
3625 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add asprintf_chk,
3626 vasprintf_chk, dprintf_chk, vdprintf_chk, obstack_printf_chk and
3627 obstack_vprintf_chk.
3628 * sysdeps/ieee754/ldbl-opt/nldbl-obstack_vprintf_chk.c: New file.
3629 * sysdeps/ieee754/ldbl-opt/nldbl-dprintf_chk.c: New file.
3630 * sysdeps/ieee754/ldbl-opt/nldbl-obstack_printf_chk.c: New file.
3631 * sysdeps/ieee754/ldbl-opt/nldbl-asprintf_chk.c: New file.
3632 * sysdeps/ieee754/ldbl-opt/nldbl-vdprintf_chk.c: New file.
3633 * sysdeps/ieee754/ldbl-opt/nldbl-vasprintf_chk.c: New file.
3634
d835f136
UD
36352008-03-04 Ulrich Drepper <drepper@redhat.com>
3636
a4bb445a
UD
3637 [BZ #5779]
3638 * misc/sys/queue.h: Add STAILQ_CONCAT and TAILQ_CONCAT definitions.
3639 Patch by Roy Marples <roy@marples.name>.
3640
c958a6a4
UD
3641 [BZ #5736]
3642 * malloc/malloc.c: Fix typo in comment.
3643
d835f136
UD
3644 [BZ #5627]
3645 * locale/iso-639.def: Add Shuswap.
3646
65b4743a
UD
36472008-02-25 Jakub Jelinek <jakub@redhat.com>
3648
3649 [BZ #5790]
3650 * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr2_r): Don't
3651 overwrite *h_errnop/*errnop values from getanswer_r in case of
3652 failure.
3653
3868fb6e
UD
36542008-03-03 Ulrich Drepper <drepper@redhat.com>
3655
27c377dd
UD
3656 [BZ #5818]
3657 * nscd/connections.c (dbs): Add initializers for .suggested_module.
3658 (verify_persistent_db): Remove one unnecessary test and add a new one
3659 for bad configuration.
3660 (nscd_init): Improve error reported when persistent database cannot
3661 be reused.
3662 * nscd/nscd.h (DEFAULT_SUGGESTED_MODULE): Define.
3663 * nscd/nscd_conf.c (nscd_parse_file): Provide default values for
3664 .suggested_module and .max_db_size and case config file says the
3665 values are zero.
3666 * nscd/nscd_helper.c (get_mapping): Fail if hash table module is zero.
3667
0f749099
UD
3668 [BZ #5854]
3669 * nis/ypclnt.c (yp_order): Fix handling of return value of
3670 do_ypcall_tr call.
3671 Patch by Jeff Moyer <jmoyer@redhat.com>.
3672
3868fb6e
UD
3673 * po/fr.po: Update from translation team.
3674
268dbf25
AJ
36752008-02-22 Andreas Jaeger <aj@suse.de>,
3676 Carlos O'Donell <carlos@systemhalted.org>
3677
3678 [BZ #5012]
3679 * FAQ.in: Describe why glibc needs to be compiled with
3680 optimization.
3681
73b82641
RM
36822008-02-19 Roland McGrath <roland@redhat.com>
3683
3684 * elf/elf.h (SHT_GNU_ATTRIBUTES): New macro.
3685
c9136393
UD
36862008-02-15 Ulrich Drepper <drepper@redhat.com>
3687
3688 [BZ #5737]
3689 * resolv/netdb.h: Make NI_MAXHOST and NI_MAXSERV available when
3690 __USE_MISC is defined.
3691
2e3e9ff1
UD
36922008-02-10 Ulrich Drepper <drepper@redhat.com>
3693
3694 * sysdeps/unix/sysv/linux/sys/timerfd.h: New file.
3695 * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers): Add
3696 sys/timerfd.h.
3697 * sysdeps/unix/sysv/linux/syscalls.list: Add timerfd_create,
3698 timerfd_gettime, timerfd_settime.
3699 * sysdeps/unix/sysv/linux/Versions: Add timerfd_create,
3700 timerfd_gettime, timerfd_settime for GLIBC_2.8.
3701
85202a2b
RM
37022008-02-08 Roland McGrath <roland@redhat.com>
3703
3704 * elf/elf.h (NT_PPC_SPE): New macro.
3705
708ef8a4
RM
37062008-02-06 Roland McGrath <roland@redhat.com>
3707
3708 * Makerules ($(common-objpfx)sysd-rules):
3709 Depend on $(sysdep-makeconfigs).
3710
363a641b
RM
37112008-01-31 Roland McGrath <roland@redhat.com>
3712
67fbfa5c
RM
3713 [BZ #5442]
3714 * configure.in: Use -print-file-name if it yields a directory,
3715 for each of include and include-fixed.
3716 * configure: Regenerated.
3717
363a641b
RM
3718 * Makeconfig (sysd-rules-targets): New variable.
3719 * sysdeps/unix/make-syscalls.sh: Use it in the rules emitted.
3720 * sysdeps/unix/Makefile (omit-deps): Append variants for each target.
3721
0f0f9610
RM
37222008-01-30 Roland McGrath <roland@redhat.com>
3723
7bd00dbf
RM
3724 * manual/libc.texinfo: Update back-cover text.
3725
0f0f9610
RM
3726 * elf/elf.h (NT_386_TLS): New macro.
3727
16cd816f
RM
37282008-01-29 Roland McGrath <roland@redhat.com>
3729
3730 * Makeconfig (sysd-rules-patterns): New variable.
3731 * Makerules ($(common-objpfx)sysd-rules): Drive the loop from that.
3732 (check-inhibit-asm): New canned sequence, replaces ...
3733 (open-check-inhibit-asm, close-check-inhibit-asm): ... these, removed.
3734 * elf/rtld-Rules ($(objpfx)rtld-%.os): Use $(rtld-CPPFLAGS) in commands.
3735 (rtld-CPPFLAGS): Renamed from CPPFLAGS-rtld.
3736 (CFLAGS-rtld): Variable removed.
3737
f641ffcc
RM
37382008-01-24 Roland McGrath <roland@redhat.com>
3739
3740 * configure.in: Let configure fragments set base_os.
3741 * configure: Regenerated.
3742
b7e26885
UD
37432008-01-22 Ulrich Drepper <drepper@redhat.com>
3744
3745 * po/ko.po: Update from translation team.
3746
b4b166af
UD
37472008-01-12 H.J. Lu <hongjiu.lu@intel.com>
3748
3749 * sysdeps/i386/fpu/ftestexcept.c (fetestexcept): Use short for fnstsw.
3750
f66def9d
AJ
37512008-01-12 Andreas Jaeger <aj@suse.de>
3752
3753 [BZ #5040]
3754 * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h (enum EPOLL_EVENTS):
3755 Add EPOLLRDHUP.
3756
d3bc5e77
RM
37572008-01-20 Samuel Thibault <samuel.thibault@ens-lyon.org>
3758
3759 * hurd/hurdsock.c (_hurd_socket_server): Return the standard
3760 error EAFNOSUPPORT rather than non-standard EPFNOSUPPORT.
3761 * sunrpc/bindrsvprt.c (bindresvport): Likewise.
3762
4c533566
UD
37632007-10-23 Alexandre Oliva <aoliva@redhat.com>
3764
3765 * include/link.h (FORCED_DYNAMIC_TLS_OFFSET): Define.
3766 * elf/dl-close.c (_dl_close): Check for it.
3767 * elf/dl-reloc.c (CHECK_STATIC_TLS): Likewise.
3768 (_dl_allocate_static_tls): Likewise.
3769 * elf/dl-tls.c (_dl_allocate_tls_init): Likewise.
3770 (__tls_get_addr): Protect from race conditions in setting l_tls_offset
3771 to it.
3772 * elf/tst-tls16.c: New file.
3773 * elf/tst-tlsmod16a.c: New file.
3774 * elf/tst-tlsmod16b.c: New file.
3775 * elf/Makefile: Add rules to build and run tst-tls16.
3776
a53d3f82
UD
37772008-01-16 Ulrich Drepper <drepper@redhat.com>
3778
a0f6c236
UD
3779 [BZ #5628]
3780 * bits/shm.h: Fix comment describing shmid_ds.
3781 * sysdeps/gnu/bits/shm.h: Likewise.
3782 * sysdeps/unix/sysv/linux/alpha/bits/shm.h: Likewise.
3783 * sysdeps/unix/sysv/linux/bits/shm.h: Likewise.
3784 * sysdeps/unix/sysv/linux/ia64/bits/shm.h: Likewise.
3785 * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Likewise.
3786 * sysdeps/unix/sysv/linux/s390/bits/shm.h: Likewise.
3787 * sysdeps/unix/sysv/linux/sh/bits/shm.h: Likewise.
3788 * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Likewise.
3789 * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: Likewise.
3790 Patch by Hareesh Nagarajan <hareesh.nagarajan@gmail.com>.
3791
a53d3f82
UD
3792 [BZ #5607]
3793 * conform/data/fcntl.h-data: Fix posix_fadvise and posix_fallocate
3794 prototypes.
3795 * conform/data/limits.h-data: Adjust limits changed in v6 and add
3796 additional suffixes.
3797 * conform/data/mqueue.h-data: Fix typo in mq_curmsgs entry.
3798 Add optional functions mq_timedreceive and mq_timedsend.
3799 * conform/data/netdb.h-data: Add more AI_* and EAI_* constants.
3800 * conform/data/pthread.h-data: Fix prototype of
3801 pthread_condattr_setclock. pthread_sigmask is not required in v6.
3802 * conform/data/semaphore.h-data: Allow time.h definitions.
3803 * conform/data/signal.h-data: Likewise.
3804 * conform/data/stdio.h-data: getw and putw are not required in v6.
3805 * conform/data/stdlib.h-data: Change setstate prototype.
3806 * conform/data/string.h-data: Fix strerror_r prototype.
3807 * conform/data/time.h-data: Fix typo in TIMER_ABSTIME definition.
3808 * conform/data/unistd.h-data: pthread_atfork not required in v6.
3809 Fix readlink prototype.
3810 * conform/data/netinet/in.h-data: Add const to in6addr_any and
3811 in6addr_loopback.
3812 * inet/netinet/in.h: Cleanup namespace.
3813 * posix/regex.h: Likewise.
3814 * resolv/netdb.h: Likewise.
3815 * sysdeps/unix/sysv/linux/bits/in.h: Likewise.
3816 * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
3817 * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
6107639e
UD
3818 * sysdeps/posix/getaddrinfo.c (default_labels): Adjust for change
3819 of names of in in6_addr.
3820 (default_precedence): Likewise.
3821 * sysdeps/unix/sysv/linux/cmsg_nxthdr.c: Include <stddef.h> for
3822 NULL definition.
a53d3f82 3823
ebca8f73
UD
38242008-01-15 Ulrich Drepper <drepper@redhat.com>
3825
fbe90cd5
UD
3826 * conform/data/fmtmsg.h-data: Add missing allows.
3827 * conform/data/ftw.h-data: Likewise.
3828 * conform/data/inttypes.h-data: Likewise.
3829 * conform/data/math.h-data: Likewise.
3830 * conform/data/signal.h-data: Likewise.
3831 * conform/data/net/if.h-data: Likewise.
3832 * conform/data/netinet/in.h-data: Likewise.
3833 * conform/data/sys/socket.h-data: Likewise.
3834
ebca8f73
UD
3835 [BZ #5614]
3836 * string/bits/string2.h (__strtok_r_1c): Always update *__NEXTP.
3837 (__strtok_r): Simplify.
3838 * string/tester.c (test_strtok_r): Add test case for futile search
3839 with single-character seach string.
3840
7c33ca8b
UD
38412008-01-12 Ulrich Drepper <drepper@redhat.com>
3842
3843 * po/ko.po: Update from translation team.
3844
b8cc0848
AJ
38452008-01-11 Andreas Jaeger <aj@suse.de>
3846
3847 [BZ #5600]
3848 * sysdeps/unix/sysv/linux/sys/signalfd.h (struct
3849 signalfd_siginfo): Use 64-bit type for ssi_ptr to sync with Linux
3850 kernel header.
3851
49029a66
UD
38522008-01-10 Ulrich Drepper <drepper@redhat.com>
3853
3854 * sysdeps/posix/getaddrinfo.c (rfc3484_sort): Store result of
3855 native interface lookup in all the relevant places.
3856
99f05798
UD
38572008-01-10 Jakub Jelinek <jakub@redhat.com>
3858 Ulrich Drepper <drepper@redhat.com>
0efd1956
UD
3859
3860 * sysdeps/posix/getaddrinfo.c (sort_results): Remove service_order
3861 field. Use sockaddr_in6 for source_addr.
3862 (get_scope): Change type of parameter to sockaddr_in6. Adjust.
3863 (match_prefix): Likewise.
3864 (get_label): Likewise.
3865 (get_precedence): Likewise.
3866 (rfc3484_sort): Change to use indirect access to results array.
3867 Adjust to use of sockaddr_in6. Replace service_order test with
3868 simple index comparison.
3869 (getaddrinfo): Define order array. Initialize it. Don't initialize
3870 service_order field. Adjust qsort_t calls. Access sorted result
3871 array indirectly through order array.
3872 * posix/tst-rfc3484.c: Adjust for change of rfc3484_sort.
3873 * posix/tst-rfc3484-2.c: Likewise.
3874 * posix/tst-rfc3484-3.c: Likewise.
3875
b3443701
UD
38762008-01-09 Ulrich Drepper <drepper@redhat.com>
3877
f6bacb8e
UD
3878 [BZ #5541]
3879 * sunrpc/rpc_thread.c (__rpc_thread_destroy): Also free xports and
3880 pollfd structures.
3881 Patch by André Cruz.
3882
aa693c68
UD
3883 [BZ #5545]
3884 * sunrpc/clnt_perr.c (clnt_sperror): Don't use fixed size buffer.
3885 (clnt_spcreateerror): Likewise.
3886
b3443701
UD
3887 [BZ #5553]
3888 * malloc/malloc.c (public_mALLOc): Set ar_ptr when trying main_arena.
3889 (public_mEMALIGn): Likewise.
3890 Patch mostly by Daniel Jacobowitz.
3891
148e12ed
UD
38922008-01-09 Jakub Jelinek <jakub@redhat.com>
3893
3894 * sysdeps/unix/sysv/linux/i386/makecontext.S (__makecontext): Avoid
3895 clobbering memory at or above uc_stack.ss_sp + uc_stack.ss_size.
3896 * stdlib/Makefile: Add rules to build and run tst-makecontext2.
3897 * stdlib/tst-makecontext2.c: New test.
3898
78c2bf0e 38992008-01-08 Jakub Jelinek <jakub@redhat.com>
4b1b449d
UD
3900
3901 * iconv/loop.c (UPDATE_PARAMS): Define to empty statement if not
3902 defined.
3903 (REINIT_PARAMS): Likewise. Undefine before end of file.
3904 (STANDARD_TO_LOOP_ERR_HANDLER): Use UPDATE_PARAMS before calling
3905 transliteration hooks and REINIT_PARAMS afterwards.
3906 * iconvdata/iso-2022-jp.c (BODY): Use a separate variable for
3907 status.
3908 (REINIT_PARAMS): Define.
3909 * iconvdata/ibm1364.c (REINIT_PARAMS): Likewise.
3910 * iconvdata/ibm930.c (REINIT_PARAMS): Likewise.
3911 * iconvdata/ibm933.c (REINIT_PARAMS): Likewise.
3912 * iconvdata/ibm935.c (REINIT_PARAMS): Likewise.
3913 * iconvdata/ibm937.c (REINIT_PARAMS): Likewise.
3914 * iconvdata/ibm939.c (REINIT_PARAMS): Likewise.
3915 * iconvdata/iso-2022-cn.c (REINIT_PARAMS): Likewise.
3916 * iconvdata/iso-2022-cn-ext.c (REINIT_PARAMS): Likewise.
3917 * iconvdata/iso-2022-jp-3.c (REINIT_PARAMS): Likewise.
3918 * iconvdata/iso-2022-kr.c (REINIT_PARAMS): Likewise.
3919 * iconvdata/Makefile: Add rules to build and run tst-iconv7.c.
3920 * iconvdata/tst-iconv7.c: New test.
3921
71edcafa
UD
39222008-01-07 Ulrich Drepper <drepper@redhat.com>
3923
3924 * libio/stdio.h (vscanf): Fix definition for loser compilers.
3925
0fbfe2f7
JJ
39262008-01-05 Jakub Jelinek <jakub@redhat.com>
3927
3928 [BZ #5112]
3929 * nscd/connections.c (restart): Fix condition.
3930
8726a12e
UD
39312008-01-03 Jakub Jelinek <jakub@redhat.com>
3932
3933 * ctype/ctype.h (__ctype_b_loc, __ctype_tolower_loc,
3934 __ctype_toupper_loc): Add __THROW.
3935
f4a1363e
UD
39362008-01-02 Ulrich Drepper <drepper@redhat.com>
3937
ad586879
UD
3938 * sysdeps/unix/sysv/linux/check_pf.c (make_request): Fix
3939 recognition of interface family.
3940
f4a1363e
UD
3941 * posix/getconf.c: Update copyright year.
3942 * nss/getent.c: Likewise.
3943 * iconv/iconvconfig.c: Likewise.
3944 * iconv/iconv_prog.c: Likewise.
3945 * elf/ldconfig.c: Likewise.
3946 * catgets/gencat.c: Likewise.
3947 * csu/version.c: Likewise.
3948 * elf/ldd.bash.in: Likewise.
3949 * elf/sprof.c (print_version): Likewise.
3950 * locale/programs/locale.c: Likewise.
3951 * locale/programs/localedef.c: Likewise.
3952 * nscd/nscd.c (print_version): Likewise.
3953 * debug/xtrace.sh: Likewise.
3954 * malloc/memusage.sh: Likewise.
3955 * malloc/mtrace.pl: Likewise.
3956 * debug/catchsegv.sh: Likewise.
3957
0dc6c5e4
UD
39582007-12-26 Ulrich Drepper <drepper@redhat.com>
3959
3960 * nss/nsswitch.c (__nss_lookup): Actually use alternative name in
3961 second lookup.
3962
80af8b82
UD
39632007-12-23 Ulrich Drepper <drepper@redhat.com>
3964
3965 * sysdeps/x86_64/cacheinfo.c (intel_02_known): New entry 0x3f.
3966 * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
3967
4bcecfb7
RM
39682007-12-17 Roland McGrath <roland@redhat.com>
3969
3970 * inet/ether_line.c (ether_line): Remove unused variable.
3971
39722007-12-17 Samuel Thibault <samuel.thibault@ens-lyon.org>
3973
3974 * login/forkpty.c (forkpty): Add const qualifier to parameters termp
3975 and winp.
3976 * login/openpty.c (openpty): Likewise.
3977 * login/pty.h (openpty, forkpty): Likewise.
3978 * manual/terminal.texi (openpty, forkpty): Likewise.
3979
4cd4c5d6
UD
39802007-12-17 Ulrich Drepper <drepper@redhat.com>
3981
78c2bf0e 3982 * malloc/malloc.c (public_cALLOc): For arenas other than
4cd4c5d6
UD
3983 main_arena, count all bytes inside the mprotect_size range of the
3984 heap as uninitialized.
3985
68631c8e
UD
39862007-12-16 Ulrich Drepper <drepper@redhat.com>
3987
d9961b6a
UD
3988 * elf/tst-execstack.c (do_test): Don't fail if SELinux forbids
3989 executable stacks.
3990
68631c8e
UD
3991 * malloc/malloc.c (public_mTRIm): Iterate over all arenas and call
3992 mTRIm for all of them.
3993 (mTRIm): Additionally iterate over all free blocks and use madvise
3994 to free memory for all those blocks which contain at least one
3995 memory page.
be8c1500
UD
3996 * malloc/tst-trim1.c: New file.
3997 * malloc/Makefile (tests): Add tst-trim1.
68631c8e
UD
3998
3999 * malloc/malloc.c (do_check_malloc_state): Minimal cleanups.
4000
78b767a0
UD
40012007-12-14 Ulrich Drepper <drepper@redhat.com>
4002
4003 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INTERNAL_SYSCALL_ERROR_P):
4004 First cast argument to long
52386be7
UD
4005 * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_gettimeofday):
4006 Return long.
4007 (__vdso_clock_gettime): Likewise.
78b767a0
UD
4008 * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: Functions
4009 return long.
4010
bc3e1c12
UD
40112007-12-13 Ulrich Drepper <drepper@redhat.com>
4012
4013 * locale/nl_langinfo.c (nl_langinfo): Just call __nl_langinfo_l.
4014 * locale/nl_langinfo_l.c: Real implementation, copied from
4015 nl_langinfo.c.
4016 * include/langinfo.h: Add libc_hidden_proto for __nl_langinfo_l.
4017
77751669
UD
40182007-12-01 Jim Meyering <meyering@redhat.com>
4019
4020 * posix/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
4021 that would inhibit utf8-optimization of a regexp containing line-
4022 or buffer-anchors, e.g., `^', `$'.
4023
f63e5063
UD
40242007-12-12 Ulrich Drepper <drepper@redhat.com>
4025
4026 * time/bug-getdate1.c (do_test): Don't use century values which
4027 aren't valid on 32-bit systems.
4028
a78814a9
UD
40292007-12-12 Jakub Jelinek <jakub@redhat.com>
4030
4031 * sysdeps/i386/i486/bits/string.h (memmove): Define as macro.
4032 (memmove): Rename to __memmove_g, with __asm__ ("memmove").
4033 * sysdeps/s390/bits/string.h (__strlen_g, __strcpy_g, __strncpy_g,
4034 __strcat_g, __strncat_g): Add __asm__.
4035
40362007-12-12 Ulrich Drepper <drepper@redhat.com>
4037
4038 [BZ #5477]
4039 * io/fchmodat.c: Fix typo in stub_warning use.
4040 Patch by Petr Salinger.
4041
17edb30c
UD
40422007-12-11 Ulrich Drepper <drepper@redhat.com>
4043
58d11795
UD
4044 * iconvdata/hp-thai8.c: New file.
4045 * iconvdata/Makefile: Add rules for hp-thai8.c.
4046 * iconvdata/tst-tables.sh: Add entry for HP-THAI8.
4047 * iconvdata/gconv-modules: Likewise.
4048
4049 [BZ #5464]
4050 * iconvdata/hp-greek8.c: New file.
4051 * iconvdata/Makefile: Add rules for hp-greek8.c.
4052 * iconvdata/tst-tables.sh: Add entry for HP-GREEK8.
4053 * iconvdata/gconv-modules: Likewise.
4054
4055 [BZ #5463]
4056 * iconvdata/hp-turkish8.c: New file.
4057 * iconvdata/Makefile: Add rules for hp-turkish8.c.
4058 * iconvdata/tst-tables.sh: Add entry for HP-TURKISH8.
4059 * iconvdata/gconv-modules: Likewise.
4060
cbf5760e
UD
4061 * malloc/arena.c (grow_heap): Split out code to shrink heap into...
4062 (shrink_heap): ... this new function.
4063 (heap_trim): Call shrink_heap instead of grow_heap.
4064
17edb30c
UD
4065 * malloc/malloc.c (_int_malloc): sYSMALLOc might fail, in this
4066 case don't call alloc_perturb.
4067
ae18718f
UD
40682007-12-10 Ulrich Drepper <drepper@redhat.com>
4069
4070 * sysdeps/unix/sysv/linux/adjtime.c: Use ADJ_OFFSET_SS_READ if
4071 possible.
4072 * sysdeps/unix/sysv/linux/kernel-features.h
4073 (__ASSUME_ADJ_OFFSET_SS_READ): Define for 2.6.24.
4074 * sysdeps/unix/sysv/linux/sys/timex.h (ADJ_OFFSET_SS_READ): Define.
4075
b4354cf4
UD
40762007-12-08 Ulrich Drepper <drepper@redhat.com>
4077
4078 [BZ #5424]
4079 * stdio-common/vfprintf.c: Do not overflow when adding to done.
4080 * stdio-common/Makefile (tests): Add bug22.
4081 * stdio-common/bug22.c: New file.
4082
4083 [BZ #5451]
4084 * time/getdate.c: Fix filling in default values.
4085 * time/bug-getdate1.c: New file.
4086 * time/Makefile: Add rules to build and run bug-getdate1.
4087
4088 * iconvdata/ebcdic-is-friss.c: Use 8bit-gap instead of 8bit-generic.
4089 * iconvdata/ebcdic-es.c: Likewise.
4090 * iconvdata/ebcdic-es-a.c: Likewise.
4091 * iconvdata/ebcdic-uk.c: Likewise.
4092 * iconvdata/iso8859-16.c: Likewise.
4093 * iconvdata/viscii.c: Likewise.
4094 * iconvdata/iso8859-9e.c: Likewise.
4095 * iconvdata/Makefile: Adjust appropriately.
4096
4097 [BZ #5428]
4098 * wcsmbs/wchar.h: Unconditionally undefine __need_mbstate and
4099 __need_wint_t.
4100
26e21e75
UD
41012007-12-07 Ulrich Drepper <drepper@redhat.com>
4102
87520ccc
UD
4103 [BZ #5427]
4104 * iconvdata/hp-roman9.c: New file.
4105 * iconvdata/Makefile: Add rules for hp-roman9.c.
4106 * iconvdata/tst-tables.sh: Add HP-ROMAN9.
b4354cf4 4107 * iconvdata/gconv-modules: Likewise.
87520ccc
UD
4108
4109 * iconvdata/hp-roman8.c: Use 8bit-gap instead of 8bit-generic.
4110 * iconvdata/Makefile: Adjust appropriately.
4111
26e21e75
UD
4112 [BZ #5441]
4113 * stdio-common/vfscanf.c (_IO_vfwscanf): Don't free ptrs_to_free
4114 structure, it's allocated with alloca.
4115 * stdio-common/Makefile (tests): Add bug21.
4116 * stdio-common/bug21.c: New file.
4117
41182007-12-06 Aurelien Jarno <aurelien@aurel32.net>
4119
4120 [BZ #5452]
4121 * sysdeps/unix/sysv/linux/bits/sched.h: Use __extension__
87520ccc 4122 keyword for gcc's braced-groups.
26e21e75
UD
4123
41242007-12-07 Ulrich Drepper <drepper@redhat.com>
4125
4126 [BZ #5454]
4127 * inet/ether_line.c: Strip hostname of whitespaces.
4128 * inet/Makefile (tests): Add tst-ether_line.
4129 * inet/tst-ether_line.c: New file.
4130
9e80c123
UD
41312007-12-03 Ulrich Drepper <drepper@redhat.com>
4132
da0ff4ae
UD
4133 [BZ #5439]
4134 * sysdeps/unix/sysv/linux/sys/signalfd.h: Fix use of __nonnull.
4135
51bd20d9
UD
4136 [BZ #5435]
4137 * sysdeps/unix/sysv/linux/i386/makecontext.S: Align stack.
4138
d90d0256
UD
4139 * stdlib/tst-setcontext.c: Catch the case where the links gets
4140 messed up and we do not reach main again.
4141
9e80c123
UD
4142 * po/ca.po: Update from translation team.
4143
ae4287f8
UD
41442007-11-26 Ulrich Drepper <drepper@redhat.com>
4145
6701afc7 4146 * posix/unistd.h: Declare fsync also for __USE_XOPEN2K.
79fb2e02 4147 * posix/regex.h (REG_ENOSYS): Likewise.
a912a4f8 4148 * wcsmbs/wchar.h: Define __need_file also for __USE_XOPEN2K.
ae4287f8 4149
30294ea4
UD
41502007-11-25 Ulrich Drepper <drepper@redhat.com>
4151
4152 * nscd/nscd.h (MAX_STACK_USE): Define.
4153 * nscd/mem.c (MAX_STACK_USE): Remove definition here.
4154 (gc): Initialize stack_used based on allocation in prune_cache.
4155 * nscd/cache.c (prune_cache): Use heap for mark array if necessary.
e8667ddc 4156 Clear array before use.
30294ea4
UD
4157
4158 * nscd/aicache.c (addhstaiX): Update statistics counter in case
10a4c1e9 4159 memory allocation failed.
e8667ddc
UD
4160 * nscd/hstcache.c (cache_addhst): Likewise.
4161 * nscd/grpcache.c (cache_addgr): Likewise.
4162 * nscd/servicescache.c (cache_addserv): Likewise.
4163 * nscd/pwdcache.c (cache_addpw): Likewise.
4164 * nscd/initgrcache.c (addinitgroupsX): Likewise.
30294ea4 4165
715db78b
UD
41662007-11-23 Ulrich Drepper <drepper@redhat.com>
4167
609bb071
UD
4168 * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: Add open
4169 and creat system calls.
4170
715db78b
UD
4171 * sysdeps/unix/sysv/linux/check_native.c: Include <asm/types.h>.
4172
ea2c47b6
UD
41732007-11-23 Martin Schwidefsky <schwidefsky@de.ibm.com>
4174
4175 * sysdeps/unix/sysv/linux/Makefile [subdir=inet] (sysdep_headers):
4176 Add netiucv/iucv.h.
4177 * sysdeps/unix/sysv/linux/netiucv/iucv.h: New file.
4178 * sysdeps/unix/sysv/linux/opensock.c (__opensock): Add AF_IUCV
4179 protocol.
4180 * sysdeps/unix/sysv/linux/sa_len.c (__libc_sa_len): Likewise.
4181 * sysdeps/unix/sysv/linux/s390/opensock.c: New file.
4182 * sysdeps/unix/sysv/linux/s390/sa_len.c: New file.
4183
dcdcf4b9
UD
41842007-11-22 Martin Schwidefsky <schwidefsky@de.ibm.com>
4185
37143323
UD
4186 * sysdeps/s390/bits/string.h (strlen, strcpy, strncpy, strcat,
4187 strncat): Define as macros to avoid compile errors.
4188
dcdcf4b9
UD
4189 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Add open and
4190 creat entries.
4191
3a632674
UD
41922007-11-22 Ulrich Drepper <drepper@redhat.com>
4193
7ea8eb02
UD
4194 [BZ #5382]
4195 * nscd/nscd.h (NSCD_THREAD_STACKSIZE): Define.
4196 * nscd/connections.c (start_threads): Use NSCD_THREAD_STACKSIZE.
715db78b 4197 * nscd/mem.c (gc): Don't allocate arrays on the stack if they can
7ea8eb02 4198 overflow it.
70d5b6ef 4199 Partially based on a patch by Petr Baudis <pasky@suse.cz>.
7ea8eb02
UD
4200
4201 * sysdeps/unix/sysv/linux/nscd_setup_thread.c (setup_thread):
715db78b 4202 Return zero in case the thread library is not NPTL.
7ea8eb02 4203
5c3a3dba
UD
4204 [BZ #5375]
4205 * resolv/res_hconf.c (_res_hconf_reorder_addrs): Fix locking when
4206 initializing interface list.
4207
85883123
UD
4208 [BZ #5378]
4209 * nis/nss_compat/compat-initgroups.c (getgrent_next_nss): Don't
4210 use result of nss_getgrgid_r if nothing was found. For other
4211 error return with a failure.
4212 Partially based on a patch by Petr Baudis <pasky@suse.cz>.
4213
3a632674
UD
4214 * locale/programs/ld-collate.c (collate_read): Fix loop to match
4215 macro name.
4216
b73f9135
UD
42172007-11-19 Ulrich Drepper <drepper@redhat.com>
4218
ee72b971
UD
4219 * sysdeps/posix/getaddrinfo.c (defaults_scopes, scopes): New variables.
4220 (get_scope): For IPv4 scope, use scopes table.
4221 (fini): Free scopes table if necessary.
4222 (free_scopelist): New function.
4223 (scopecmp): New function.
4224 (gaiconf_init): Also handle scopev4 entries.
4225 * posix/tst-rfc3484.c (do_test): Initialize scopes.
4226 * posix/tst-rfc3484-2.c (do_test): Likewise.
4227 * posix/gai.conf: Document scopev4 defaults.
4228 * posix/Makefile (tests): Add tst-rfc3484-3.
4229 * posix/tst-rfc3484-3.c: New file.
4230
f4a79765
UD
4231 * sysdeps/posix/getaddrinfo.c (default_labels): Describe entry for
4232 Teredo tunnels.
b73f9135
UD
4233 * posix/gai.conf: Update for current default tables.
4234
429bd64d
UD
42352007-11-19 Ulrich Drepper <drepper@redhat.com>
4236
4237 * po/tr.po: Update from translation team.
4238
3c9af259
RM
42392007-11-18 Roland McGrath <roland@frob.com>
4240
76cf9889
RM
4241 * manual/arith.texi (Remainder Functions): Spelling fix.
4242 From Shaun Silk <genix@mysoul.com.au>.
4243
3c9af259
RM
4244 * sysdeps/mach/hurd/bits/fcntl.h (O_CLOEXEC): Fix value.
4245
238346ab
UD
42462007-11-17 Ulrich Drepper <drepper@redhat.com>
4247
5879ad50
UD
4248 * po/zh_CN.po: Update from translation team.
4249
238346ab
UD
4250 * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers):
4251 Add sys/signalfd.h and sys/eventfd.h.
4252
b80b9c77
UD
42532007-11-15 Bruno Haible <bruno@clisp.org>
4254
4255 [BZ #5346]
4256 * intl/dcigettext.c (struct known_translation_t): Turn msgid into a
4257 union.
4258 (transcmp): Use the appropriate part of s1->msgid and s2->msgid.
4259 (DCIGETTEXT): Change the allocation of the 'search' variable so that
4260 it needs only fixed stack space. Delay the initialization of
4261 msgid_len until it is needed.
4262
2da2501c
AJ
42632007-11-15 Andreas Jaeger <aj@suse.de>
4264
4265 * sysdeps/ieee754/dbl-64/sincos.tbl: Fix size of union.
4266 Reported by Christoph Quirin Lauter <christoph.lauter@ens-lyon.fr>.
4267
68a6dcf5
UD
42682007-11-15 Ulrich Drepper <drepper@redhat.com>
4269
4270 * po/ko.po: Update from translation team.
4271
43850227
UD
42722007-11-14 Ulrich Drepper <drepper@redhat.com>
4273
1e2692c9
UD
4274 * sysdeps/unix/sysv/linux/check_native.c (__check_native): Simplify
4275 significantly. The device type is also part of the ifinfomsg data.
4276
84e6cc7c 4277 * po/sv.po: Update from translation team.
cbd52634 4278 * po/nl.po: Likewise.
84e6cc7c 4279
f9e2261b
UD
4280 * nscd/cache.c (prune_cache): If cache is empty, instruct caller
4281 to wake up in 24 hours.
4282
43850227
UD
4283 * nscd/gai.c (__ioctl): Define. Include check_native.c.
4284
5742e960
UD
42852007-11-13 Ulrich Drepper <drepper@redhat.com>
4286
1a821d82
UD
4287 * po/cs.po: Update from translation team.
4288 * po/pl.po: Likewise.
4289
773e79b3
UD
4290 * include/ifaddrs.h: Remove in6ai_temporary.
4291 (struct in6addrinfo): Add index element.
4292 Declare __check_native.
4293 * inet/Makefile (aux): Add check_native.
4294 * sysdeps/unix/sysv/linux/check_native.c: New file.
4295 * sysdeps/unix/sysv/linux/check_pf.c: No need to recognize
4296 IFA_F_TEMPORARY. Pass back ifa_index.
4297 * sysdeps/posix/getaddrinfo.c: Remove netlink compatibility code.
4298 (rfc3484_sort): Add new parameter. Implement rule 7 correctly:
4299 call __check_native if necessary.
4300 (getaddrinfo): Fill in index field. Use qsort_r instead of qsort
4301 to sort addresses. Pass information about the results.
4302 * posix/tst-rfc3484.c: Adjust for addition of index field and change
4303 of rfc3484_sort interface.
4304 * posix/tst-rfc3484-2.c: Likewise.
4305
e458144c
UD
4306 * stdlib/stdlib.h: Define __compar_d_fn_t. Declare qsort_r.
4307 * include/stdlib.h: Add hidden_proto for qsort_t and adjust protoype
4308 for _quicksort.
4309 * stdlib/msort.c (qsort): Now a wrapper around qsort_r.
4310 (qsort_r): Renamed from qsort. Take additional parameter and pass it
4311 on as third parameter to compare function and _quicksort.
4312 * stdlib/qsort.c (_quicksort): Take additional parameter and pass on
4313 to the compare function.
4314 * stdlib/Versions [libc] (GLIBC_2.8): Add qsort_r.
4315 * Versions.def: Add GLIBC_2.8 for libc.
4316
bd63f380
UD
4317 * posix/tst-rfc3484.c: Adjust for addition of prefixlen field.
4318 * posix/tst-rfc3484-2.c: Likewise.
4319
5742e960
UD
4320 * include/kernel-features.h: Moved to...
4321 * sysdeps/mach/hurd/kernel-features.h: ...here.
4322
a6ac7fdb
RM
43232007-09-13 H.J. Lu <hongjiu.lu@intel.com>
4324
4325 * sysdeps/i386/i586/memcpy_chk.S: New file.
4326 * sysdeps/i386/i586/mempcpy_chk.S: Likewise.
4327 * sysdeps/i386/i586/memset_chk.S: Likewise.
4328
6f3914d5
UD
43292007-11-12 Ulrich Drepper <drepper@redhat.com>
4330
4331 * include/ifaddrs.c (struct in6addrinfo): Add prefixlen field.
4332 * sysdeps/unix/sysv/linux/check_pf.c (make_request): Always return
4333 list of interfaces. Also store prefix length.
4334 * sysdeps/posix/getaddrinfo.c (sort_result): Add prefixlen element.
4335 (rfc3484_sort): In rule 9, for IPv4 addresses count only matching
4336 prefix if source and destination address are in the same subnet.
4337 (getaddrinfo): Always call __check_pf. Fill in prefixlen field.
4338 Always look for matching record in in6ai list.
4339 Correct source_addr_len value for IPv6->IPv4 converted records.
4340
78cf5f6a
RM
43412007-11-11 Roland McGrath <roland@frob.com>
4342
4343 * include/kernel-features.h: New file.
4344
7f745396
UD
43452007-11-10 Ulrich Drepper <drepper@redhat.com>
4346
01e7fdbb
UD
4347 * sysdeps/pthread/aio_misc.c (handle_fildes_io): Avoid unnecessary
4348 complications for 64-bit platforms.
4349
7f745396
UD
4350 * sysdeps/unix/sysv/linux/open64.c: Move __open64_2 implementation to..
4351 * sysdeps/unix/sysv/linux/open64_2.c: ...here. New file.
4352 * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines): Add
4353 open64_2.
4354 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Add open and creat
4355 entries.
4356 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
4357 * sysdeps/wordsize-64/alphasort.c: New file.
4358 * sysdeps/wordsize-64/alphasort64.c: New file.
4359 * sysdeps/wordsize-64/fseeko.c: New file.
4360 * sysdeps/wordsize-64/fseeko64.c: New file.
4361 * sysdeps/wordsize-64/ftello.c: New file.
4362 * sysdeps/wordsize-64/ftello64.c: New file.
4363 * sysdeps/wordsize-64/ftw.c: New file.
4364 * sysdeps/wordsize-64/ftw64.c: New file.
4365 * sysdeps/wordsize-64/iofgetpos.c: New file.
4366 * sysdeps/wordsize-64/iofgetpos64.c: New file.
4367 * sysdeps/wordsize-64/iofopen.c: New file.
4368 * sysdeps/wordsize-64/iofopen64.c: New file.
4369 * sysdeps/wordsize-64/iofsetpos.c: New file.
4370 * sysdeps/wordsize-64/iofsetpos64.c: New file.
4371 * sysdeps/wordsize-64/lockf.c: New file.
4372 * sysdeps/wordsize-64/lockf64.c: New file.
4373 * sysdeps/wordsize-64/mkostemp.c: New file.
4374 * sysdeps/wordsize-64/mkostemp64.c: New file.
4375 * sysdeps/wordsize-64/mkstemp.c: New file.
4376 * sysdeps/wordsize-64/mkstemp64.c: New file.
4377 * sysdeps/wordsize-64/scandir.c: New file.
4378 * sysdeps/wordsize-64/scandir64.c: New file.
4379 * sysdeps/wordsize-64/tmpfile.c: New file.
4380 * sysdeps/wordsize-64/tmpfile64.c: New file.
4381 * sysdeps/wordsize-64/versionsort.c: New file.
4382 * sysdeps/wordsize-64/versionsort64.c: New file.
4383 * sysdeps/unix/sysv/linux/wordsize-64/aio_read.c: New file.
4384 * sysdeps/unix/sysv/linux/wordsize-64/aio_read64.c: New file.
4385 * sysdeps/unix/sysv/linux/wordsize-64/aio_write.c: New file.
4386 * sysdeps/unix/sysv/linux/wordsize-64/aio_write64.c: New file.
4387 * sysdeps/unix/sysv/linux/wordsize-64/creat64.c: New file.
4388 * sysdeps/unix/sysv/linux/wordsize-64/getdirentries.c: New file.
4389 * sysdeps/unix/sysv/linux/wordsize-64/getdirentries64.c: New file.
4390 * sysdeps/unix/sysv/linux/wordsize-64/lio_listio.c: New file.
4391 * sysdeps/unix/sysv/linux/wordsize-64/lio_listio64.c: New file.
4392 * sysdeps/unix/sysv/linux/wordsize-64/open64.c: New file.
4393 * sysdeps/unix/sysv/linux/wordsize-64/openat.c: New file.
4394 * sysdeps/unix/sysv/linux/wordsize-64/openat64.c: New file.
4395
4396 * crypt/sha256-crypt.c: Fix a comment.
4397 * crypt/sha512-crypt.c: Likewise.
4398
f6ed654c
UD
43992007-11-07 H.J. Lu <hongjiu.lu@intel.com>
4400
4401 * sysdeps/x86_64/memset.S: Add sfence after movnti.
4402
f2a8406a
UD
44032007-11-07 Ulrich Drepper <drepper@redhat.com>
4404
4405 [BZ #5277]
4406 * iconv/loop.c (STANDARD_TO_LOOP_ERR_HANDLER): If conversion failed
4407 because output buffer is too small break, don't loop.
4408 * iconvdata/Makefile (tests): Add bug-iconv6.
4409 * iconvdata/bug-iconv6.c: New file.
4410
7fe4e0e8
UD
44112007-11-06 Ulrich Drepper <drepper@redhat.com>
4412
9ca230d6
UD
4413 * stdio-common/vfprintf.c (vfprintf): Compute necessary buffer size
4414 with size_t type.
4415 * stdio-common/printf_fp.c (__print_fp): Change chars_needed type to
4416 size_t. Add casts where needed.
4417
7fe4e0e8
UD
4418 * nscd/selinux.c (nscd_request_avc_has_perm): When compiled with
4419 old headers, don't call avc_has_perm if we don't have the
4420 permission information.
4421
b92e3780
UD
44222007-11-05 Daniel Jacobowitz <dan@codesourcery.com>
4423
4424 * elf/rtld.c (dl_main): Use the page size to find the map start.
4425
ffb1b882
UD
44262007-11-05 Ulrich Drepper <drepper@redhat.com>
4427
94a749f6
UD
4428 * time/tzfile.c (__tzfile_read): Fix check for version 0 data files.
4429 Patch by Szymon Siwek <sls@poczta.wp.pl>.
4430
ffb1b882
UD
4431 * nscd/aicache.c (addhstaiX): Check herrno after IPv4 lookup only
4432 when the lookup call failed.
4433
4434 * nscd/nscd.h (struct database_dyn): Rename prunelock to prune_lock.
4435 Add prune_cond and wakeup_time.
4436 (CACHE_PRUNE_INTERNAL): Define.
4437 Update declarations of prune_cache and setup_thread.
4438 * nscd/connections.c (dbs): Update initializers.
4439 (CACHE_PRUNE_INTERNAL): Moved to nscd.h.
4440 (nscd_init): Default number of threads is now 4.
4441 (invalidate_cache): Take lock before calling prune_cache.
4442 (handle_request): If SELinux forbids the request, say so.
4443 (readylist_cond): Use static initializer.
4444 (nscd_run_prune): New function. Used only by pruning threads.
4445 (nscd_run_worder): Renamed from nscd_run. Remove support for pruning
4446 here.
4447 (fd_ready): Update nscd_run reference.
4448 (start_threads): No need to initialize readylist_cond.
4449 Start pruning threads separately.
4450 * nscd/nscd_setup_thread.c: Change return value type to int and always
4451 return 0.
4452 * sysdeps/unix/sysv/linux/nscd_setup_thread.c: Change return value type
4453 to int and return nonzero value if we can use the TID address hack.
4454 * nscd/cache.c (cache_add): If next wakeup time of cleanup thread for
4455 the database is later than the new entry's timeout, update the
4456 wakeup time and wake the cleanup thread.
4457 (prune_cache): Return seconds the next entry in the database is still
4458 valid. Remove locking for pruning here.
4459 * nscd/nscd.conf: Document default number of threads.
4460
4c48ef06
UD
44612007-10-31 Ulrich Drepper <drepper@redhat.com>
4462
41ff2a49
UD
4463 * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Make sure
4464 stack is properly aligned for the target function.
4465 Correct unwind info.
ffb1b882 4466
4c48ef06
UD
4467 * elf/rtld.c (dl_main): Initialize stack and pointer guard early
4468 when using auditing libraries.
4469
384ca551
UD
44702007-10-29 Ulrich Drepper <drepper@redhat.com>
4471
31e2791c
UD
4472 * resolv/Versions [libresolv] (GLIBC_PRIVATE): Add
4473 _nss_dns_getnetbyaddr2_r.
4474 * resolv/nss_dns/dns-host.c: Define _nss_dns_getnetbyaddr2_r. Pass
4475 extra parameter to getanswer_r.
4476 (_nss_dns_getnetbyaddr_r): Now a wrapper around
4477 _nss_dns_getnetbyaddr2_r.
4478
384ca551
UD
4479 * nscd/Makefile (nscd-modules): Replace gethstbynm2_r with
4480 gethstbynm3_r.
4481 * nscd/gethstbynm2_r.c: Remove.
4482 * nscd/gethstbynm3_r.c: New file.
4483 * nscd/aicache.c (addhstaiX): Use __gethostbyaddr2_r instead of
4484 __gethostbyaddr_r.
4485 * nscd/gethstbyad_r.c: Generate __gethostbyaddr2_r function. Define
4486 __gethostbyaddr_r compatibility wrapper.
4487 * nscd/hstcache.c (cache_addhst): Add ttl parameter. Use it when
4488 determining timeout of entry.
4489 (lookup): Take new parameter and pass it to __gethostbyname3_r and
4490 __gethostbyaddr2_r.
4491 (addhstbyX): Pass reference to variable for TTL to lookup and
4492 cache_addhst.
4493 * nss/Versions [glibc] (GLIBC_PRIVATE): Export __nss_passwd_lookup2,
4494 __nss_group_lookup2, __nss_hosts_lookup2, __nss_services_lookup2,
4495 and __nss_next2. Remove __nss_services_lookup.
4496 * nss/XXX-lookup.c: Name function now *_lookup2. Add new parameter.
4497 Add compat wrapper.
4498 * nss/getXXbyYY_r.c: Changes to call new *_lookup2 functions and
4499 __nss_next2.
4500 * nss/getXXent_r.c: Likewise.
4501 * nss/getnssent_r.c: Likewise.
4502 * nss/nsswitch.c (__nss_lookup): Add new parameter. If first function
4503 does not exist in module, try the optional second name.
4504 (__nss_next2): New function.
4505 (__nss_next): Now wrapper around __nss_next2.
4506 * nss/nsswitch.h: Adjust __nss_lookup prototype.
4507 Declare __nss_next2.
4508 Adjust definition of db_lookup_function type.
4509 * nss/service-lookup.c: Define NO_COMPAT.
4510 * include/netdb.h: Declare __gethostbyaddr2_r and __gethostbyname3_r.
4511 * inet/ether_hton.c: Use __nss_next2 instead of __nss_next.
4512 * inet/ether_ntoh.c: Likewise.
4513 * sunrpc/netname.c: Likewise.
4514 * sunrpc/publickey.c: Likewise.
4515 * inet/getnetgrent.c: Likewise. Adjust calls to __nss_lookup.
4516 * inet/gethstbyad_r.c (DB_LOOKUP_FCT): Change to __nss_hosts_lookup2.
4517 * inet/gethstbynm2_r.c (DB_LOOKUP_FCT): Likewise.
4518 * inet/gethstbynm_r.c (DB_LOOKUP_FCT): Likewise.
4519 * inet/gethstent_r.c (DB_LOOKUP_FCT): Likewise.
4520
4521 * nscd/aicache.c (addhstaiX): Fix default TTL handling.
4522
5e37840c 4523 * inet/getnetgrent_r.c (setup): Encrypt static pointer.
384ca551 4524
88197030
UD
45252007-10-28 Ulrich Drepper <drepper@redhat.com>
4526
f160a450
UD
4527 [BZ #5204]
4528 * crypt/sha256c-test.c: Define TIMEOUT to 6 for ancient hardware.
4529 * crypt/sha512c-test.c: Likewise.
4530
4c6b2202
UD
4531 [BZ #5225]
4532 * stdio-common/vfscanf.c (_IO_vfwscanf): Don't misuse wp pointer
4533 to keep track of end of %[ format string element.
22c915ac
UD
4534 * stdio-common/Makefile (tests): Add bug20.
4535 * stdio-common/bug20.c: New file.
4c6b2202 4536
88197030
UD
4537 [BZ #5222]
4538 * elf/dl-load.c (_dl_rtld_di_serinfo): Correct handling of short
4539 path elements in counting mode.
4540
05d69147
UD
45412007-10-27 Andreas Jaeger <aj@suse.de>
4542
94833f11
UD
4543 [BZ #5040]
4544 * sysdeps/unix/sysv/linux/sys/epoll.h (EPOLLRDHUP): Add value.
4545
05d69147
UD
4546 [BZ #3112]
4547 * sysdeps/ia64/backtrace.c (init): Free shared library if incorrect.
4548 (__cleanup): Free shared library when exiting.
4549 * sysdeps/i386/backtrace.c (init): Free shared library if incorrect.
4550 (__cleanup): Free shared library when exiting.
4551
e6b29af8
UD
45522006-04-14 H.J. Lu <hongjiu.lu@intel.com>
4553
4554 [BZ #2549]
4555 * math/libm-test.inc (check_float_internal): Support
4556 denormalized return.
4557
ad3371fb
UD
45582007-10-23 Andreas Jaeger <aj@suse.de>
4559
4560 [BZ #5208]
4561 * sysdeps/unix/sysv/linux/readahead.c (__readahead): Use
4562 __LONG_LONG_PAIR to handle little endian byte order.
4563 Suggested by abhishekrai@google.com
4564
666aa020
UD
45652007-10-27 Ulrich Drepper <drepper@redhat.com>
4566
4567 * malloc/arena.c [!NO_THREADS]: Use ATFORK_MEM if defined.
4568
8ad343b3
UD
45692007-10-26 Ulrich Drepper <drepper@redhat.com>
4570
4571 * nscd/cache.c (prune_cache): Move test for modified file outside
4572 of locking.
4573
9251c568
AJ
45742007-10-21 Andreas Jaeger <aj@suse.de>
4575
4576 * manual/texinfo.tex: Update to latest version.
4577
4578 * manual/sysinfo.texi (System Parameters): Fix Formatting.
4579
4580 * manual/arith.texi (Status bit operations): Fix formatting.
4581
4582 * manual/errno.texi (Error Messages): Fix formatting.
4583
4584 * manual/sysinfo.texi (System Parameters): Fix formatting.
4585
4586 * manual/libc.texinfo: Update VERSION and UPDATED.
4587
260b2e06
RM
45882007-10-19 Roland McGrath <roland@redhat.com>
4589
4590 * elf/Makefile ($(objpfx)ld.so): Use $(AWK).
4591
46ae8850
JJ
45922007-10-06 David S. Miller <davem@davemloft.net>
4593
4594 * configure.in: Add sparcv9v2 and sparc64v2.
4595 * scripts/config.sub: Likewise.
4596 * configure: Regenerate.
4597 * elf/elf.h (HWCAP_SPARC_N2): New.
4598 * sysdeps/sparc/dl-procinfo.h (_DL_HWCAP_COUNT): Bump to 8.
4599 * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add 'v9v2'.
4600 (HWCAP_IMPORTANT): Add HWCAP_SPARC_N2.
4601 * sysdeps/sparc/sparc32/sparcv9/sparcv9v2/memcpy.S: New file.
4602 * sysdeps/sparc/sparc32/sparcv9/sparcv9v2/memset.S: New file.
4603 * sysdeps/sparc/sparc64/sparcv9v2/memcpy.S: New file.
4604 * sysdeps/sparc/sparc64/sparcv9v2/memset.S: New file.
4605
6fbfbd80
UD
46062007-10-18 Ulrich Drepper <drepper@redhat.com>
4607
4608 * sunrpc/clnt_udp.c (clntudp_call): Don't block in recvfrom call
4609 even if the poll result indicates there is data to read.
4610 Patch by Jeff Moyer <jmoyer@redhat.com>.
4611
39cfc9fa
RM
46122007-10-18 Roland McGrath <roland@redhat.com>
4613
4614 * elf/elf.h (NT_PPC_VMX): New macro.
28919a77 4615
39cfc9fa 46162007-10-17 Ulrich Drepper <drepper@redhat.com>
28919a77
UD
4617
4618 * version.h (VERSION): Set to 2.7.90.
4619
ed13ccf1
JJ
46202007-10-17 Jakub Jelinek <jakub@redhat.com>
4621
4622 * sysdeps/x86_64/memset.S (bzero): Renamed to __bzero. Add
4623 weak_alias.
4624
ee9fd869
RM
46252007-10-17 Roland McGrath <roland@frob.com>
4626
4627 * sysdeps/mach/hurd/bits/fcntl.h [__USE_GNU__] (F_DUPFD_CLOEXEC): New.
4628 * sysdeps/mach/hurd/fcntl.c (__libc_fcntl): Implement it.
4629
1aa5e4d7
UD
46302007-10-17 Ulrich Drepper <drepper@redhat.com>
4631
50c9fbbf 4632 * version.h (VERSION): Bump to 2.7.
777bc4bf 4633 * include/features.h (__GLIBC_MINOR__): Bump to 7.
50c9fbbf 4634
58423c7d
UD
4635 [BZ #5186]
4636 * time/tzset.c (__tz_convert): Don't force testing for a change of
4637 TZ if not called from localtime. But then also see whether the
4638 file changed, in case __use_tzfile is set.
4639
1aa5e4d7
UD
4640 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define F_DUPFD_CLOEXEC.
4641 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
4642 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
4643 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
4644 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
4645 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
4646 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
4647 * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
4648
fc4837e5
UD
46492007-10-17 Jakub Jelinek <jakub@redhat.com>
4650
4651 * sysdeps/posix/getaddrinfo.c (getaddrinfo): When sorting addresses
4652 and admin selects to be able to replace the gai.conf file, lock
4653 data structures around the qsort call.
4654
62eaf7c8
UD
46552007-10-17 Ulrich Drepper <drepper@redhat.com>
4656
406f28db
UD
4657 * sysdeps/x86_64/cacheinfo.c: Comment out code added in support of
4658 new memset.
ac1cb5da 4659 * sysdeps/x86_64/memset.S: Revert to old version for now. The cost is
406f28db
UD
4660 too high for the improvements. Implement bzero unconditionally for
4661 use in libc.
ac1cb5da
UD
4662
46632007-10-17 Ulrich Drepper <drepper@redhat.com>
4664 Jakub Jelinek <jakub@redhat.com>
4665
62eaf7c8
UD
4666 * time/tzfile.c (__tzfile_read): Read POSIX TZ string if available
4667 even when time_t is 32-bit.
4668 (__tzfile_compute): Override POSIX TZ string STD/DST zone names if
4669 timezone data read by __tzfile_default. Ensure __tzname[0] is
4670 always set after the search.
4671
6a649d25
UD
46722007-10-16 Ulrich Drepper <drepper@redhat.com>
4673
4674 * time/tzfile.c (__tzfile_read): Help the compiler recognize
4675 unreachable code on 32-bit machines.
4676
800d6f9e
UD
46772007-10-16 Jakub Jelinek <jakub@redhat.com>
4678
4679 [BZ #5184]
4680 * time/strftime_l.c: Include stdbool.h.
4681 (my_strftime): New wrapper, old function renamed to...
4682 (__strftime_internal): ... new function. Add tzset_called
4683 argument, pass it down to recursive calls, don't call tzset ()
4684 if already true, set to true after call to tzset ().
62eaf7c8 4685
69819d92
UD
46862007-10-16 Ulrich Drepper <drepper@redhat.com>
4687
4688 * time/tzfile.c (__tzfile_read): Take extra memory requested by caller
4689 into account when copying TZ string.
4690
62eaf7c8
UD
46912007-10-16 Jakub Jelinek <jakub@redhat.com>
4692
4693 * time/tzfile.c (__tzfile_compute): For use_last case set i to
4694 num_transition rather than num_transitions - 1.
4695
0308ad66
JJ
46962007-10-16 Jakub Jelinek <jakub@redhat.com>
4697
8d137b60
JJ
4698 * sysdeps/x86_64/memset.S (memset): Fix sse2_nt_move
4699 PIC indirect jump.
4700
0308ad66
JJ
4701 * sysdeps/x86_64/memset.S: Jump from bzero to memset using
4702 a local label rather than HIDDEN_JUMPTARGET.
4703
e2b393bc
UD
47042007-10-15 Ulrich Drepper <drepper@redhat.com>
4705
4706 * sysdeps/x86_64/cacheinfo.c (__x86_64_shared_cache_size): Define.
4707 (init_cacheinfo): Initialize it.
4708 * sysdeps/x86_64/memset.S: Use __x86_64_shared_cache_size.
4709 Always define bzero.
4710 Remove non-glibc code.
4711 * sysdeps/x86_64/bzero.S: Make an empty file.
4712
47132007-10-15 H.J. Lu <hongjiu.lu@intel.com>
4714
4715 * sysdeps/x86_64/cacheinfo.c
4716 (__x86_64_preferred_memory_instruction): New.
4717 (init_cacheinfo): Initialize __x86_64_preferred_memory_instruction.
4718
4719 * sysdeps/x86_64/memset.S: Rewrite.
4720
0fbfcb7b
RM
47212007-10-15 Roland McGrath <roland@redhat.com>
4722
4723 * po/libc.pot: Regenerated.
4724
2884dad4
UD
47252007-10-15 Ulrich Drepper <drepper@redhat.com>
4726
e2b393bc 4727 * nss/getXXbyYY_r.c (REENTRANT_NAME): Mangle startp and start_fct
d96a2216
UD
4728 pointers.
4729
2884dad4
UD
4730 [BZ #3425]
4731 * resolv/nss_dns/dns-host.c (getanswer_r): Fail with
4732 NSS_STATUS_NOTFOUND if the server replied with only a CNAME and no
4733 address record to T_A/T_AAAA requests.
4734
89dc9d4c
UD
47352007-10-14 Ulrich Drepper <drepper@redhat.com>
4736
8d97ac13
UD
4737 * posix/glob.c: Reimplement link_exists_p to use fstatat64.
4738
1b6aa63f
UD
4739 * posix/glob.c: Add some branch prediction throughout.
4740
895a08c0
UD
4741 * nscd/nscd_getgr_r.c (nscd_getgr_r): Store result of successful
4742 read from nscd.
4743
6f55ed88
UD
4744 * sysdeps/posix/getaddrinfo.c (struct sort_result): Add
4745 service_order.
8d62c8ab
UD
4746 (rfc3484_sort): Make sure that even if qsort doesn't support
4747 stable sorting out sorting here is stable by comparing service_order.
6f55ed88 4748 (getaddrinfo): Initialize service_order.
a94673e6
UD
4749 * posix/tst-rfc3484.c (do_test): Adjust for addition of
4750 service_order field to sorting structure.
dfcf64ce 4751 * posix/tst-rfc3484-2.c (do_test): Likewise.
6f55ed88 4752
fa76dde2
UD
4753 * include/time.h: Declare __tzset_parse_tz and __tzset_compute.
4754 * time/tzset.c (tzset_internal): Break TZ string parsing out into
4755 __tzset_parse_tz and updating of daylight, timezone, tzname into
4756 update_vars.
4757 (__tz_compute): Renamed from tz_compute. Take additional parameters.
4758 (__tz_convert): Updating of tm_isdst, tm_zone, and tm_gmtoff now
4759 happens in __tz_compute.
4760 * time/tzfile.c (__tzfile_read): Also read TZ string.
4761 (find_transition): Fold into __tzfile_compute.
4762 (__tzfile_compute): For times beyond the last transition try to
4763 use the TZ string.
4764 * timezone/tst-timezone.c: Information in daylight and tzname does
4765 change for Asia/Tokyo timezone with more concrete information.
4766 Remove the test.
4767
4768 * include/stdio.h: Add libc_hidden_proto for ftello.
4769 * libio/ftello.c: Add libc_hidden_def.
4770
89dc9d4c
UD
4771 [BZ #1140]
4772 * time/tzfile.c (__tzfile_compute): Compute tzname[] values based
4773 on the specified time and not the last entries in the file. Move
4774 code to determine tzname[] to...
4775 (find_transition): ...here. Add ugly guess for times before the
4776 first transition.
4777
f7140274
UD
47782007-10-13 Ulrich Drepper <drepper@redhat.com>
4779
cfca0aa3
UD
4780 [BZ #3195]
4781 * nscd/nscd_getai.c (__nscd_getai): Set errno to 0 in case we found
4782 no entry.
4783 * nscd/nscd_getgr.c (nscd_getgr_r): Likewise.
4784 * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
4785 * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
4786 * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
4787
43d3e6bd
UD
4788 * nscd/nscd_getgr_r.c (nscd_getgr_r): Optimize a bit: use simpler
4789 read mechanism when there are no group members and avoid no-op
4790 read syscall in this case.
4791
f7140274
UD
4792 [BZ #3242]
4793 * nscd/nscd_helper.c (wait_on_socket): Take timeout as parameter.
4794 (__readall): If reading failed due to EAGAIN error wait a bit
4795 and possibly try again.
4796 (__readvall): Likewise.
4797
656f02ce
UD
47982007-10-13 Bruno Haible <bruno@clisp.org>
4799
4800 * intl/dcigettext.c (_nl_find_msg): Unlock the conversions_lock
4801 when we cannot recode the message.
4802
0ea49677
UD
48032007-10-13 Ulrich Drepper <drepper@redhat.com>
4804
4805 [BZ #4359]
4806 * libio/__freading.c (__freading): Don't return true for
ed36f224
UD
4807 write-only streams. For read/write streams, check whether we
4808 performed a read operation already.
7e39d802
UD
4809 * libio/Makefile (tests): Add tst-ext2.
4810 * libio/tst-ext2.c: New file.
0ea49677 4811
78a9b2dc
UD
48122007-10-12 Ulrich Drepper <drepper@redhat.com>
4813
fab1a490
UD
4814 * locale/programs/repertoire.c (repertoire_read): Always free
4815 memory for repertoire file name [Coverity CID 270].
4816
78a9b2dc
UD
4817 * elf/cache.c (save_aux_cache): Free memory allocated for
4818 temporary file name [Coverity CID 267].
4819
29d49a1a
JJ
48202007-10-12 Jakub Jelinek <jakub@redhat.com>
4821
4822 * misc/Makefile (headers): Add bits/error.h.
4823
d074d36d
UD
48242007-10-12 Ulrich Drepper <drepper@redhat.com>
4825
b7d1c5fa
UD
4826 * posix/fnmatch_loop.c: Take rule index returned as part of
4827 findidx return value into account when accessing weights.
4828 * posix/regcomp.c: Likewise.
4829 * posix/regexec.c: Likewise.
4830
d074d36d
UD
4831 * locale/programs/ld-collate.c (collate_read): Optimize a bit.
4832 (skip_to): Fix problems with parameter of elifdef/elifndef.
4833
26a51060
UD
48342007-10-11 Ulrich Drepper <drepper@redhat.com>
4835
4836 * iconv/gconv_simple.c: Add some branch prediction.
4837
6dd3748b
UD
48382007-10-12 Jakub Jelinek <jakub@redhat.com>
4839
4840 * locale/programs/ld-collate.c (collate_read): If ignore_content
4841 and nowtok is tok_define, eat any tok_eol tokens.
4842
d0b5557d
JJ
48432007-10-11 Jakub Jelinek <jakub@redhat.com>
4844
4845 * sysdeps/gnu/netinet/tcp.h: Include sys/socket.h if __USE_MISC.
4846 (struct tcp_md5sig): Change tcpm_addr type to struct sockaddr_storage.
4847
4848 * inet/netinet/in.h: Don't include bits/socket.h.
4849 * sysdeps/unix/sysv/linux/bits/socket.h: Only check _SYS_SOCKET_H
4850 macro.
4851 * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Likewise.
4852
3a054d7a
UD
48532007-10-10 Ulrich Drepper <drepper@redhat.com>
4854
4855 * locale/programs/locfile-token.h: Remove tok_elif, add tok_elifdef
4856 and tok_elifndef.
4857 * locale/programs/locfile-kw.gperf: Likewise.
4858 * locale/programs/ld-collate.c: Implement primitive preprocessor.
4859
c06b7169
UD
48602007-10-10 Jakub Jelinek <jakub@redhat.com>
4861
4862 * stdio-common/printf-parse.h: Include string.h and wchar.h.
4863 (__find_specwc): Change into __extern_always_inline function.
4864 (__find_specmb): Likewise. Remove ps argument. Use __strchrnul.
4865 (__parse_one_specmb): Remove ps argument.
4866 * stdio-common/vfprintf.c (vfprintf): Remove mbstate variable.
4867 Adjust __find_specmb and __parse_one_specmb callers.
4868 * stdio-common/printf-prs.c (parse_printf_format): Likewise.
4869 * stdio-common/printf-parsemb.c (__find_specwc, __find_specmb):
4870 Removed.
4871 (__parse_one_specmb): Remove ps argument, adjust __find_specmb
4872 caller.
4873
5a01ab7b
UD
48742007-10-09 Ulrich Drepper <drepper@redhat.com>
4875
4876 * sysdeps/x86_64/cacheinfo.c (init_cacheinfo): Work around problem
4877 with some Pentium Ds.
4878
e3f8e049
UD
48792007-10-08 Ulrich Drepper <drepper@redhat.com>
4880
4881 * sysdeps/unix/sysv/linux/eventfd_read.c (eventfd_read): Use
4882 __read not read.
4883 * sysdeps/unix/sysv/linux/eventfd_write.c (eventfd_write): Use
4884 __write not write.
4885
a1a363d2
UD
48862007-10-07 Ulrich Drepper <drepper@redhat.com>
4887
a1160714
UD
4888 [BZ #181]
4889 * locale/C-time.c: Set week_1stday data to 19971201.
659a9013
UD
4890 * locale/programs/ld-time.c (time_finish): Default for
4891 first_workday is Monday.
a1160714 4892
bb27a6eb
UD
4893 [BZ #2633]
4894 * wcsmbs/wchar.h: Move many C99 functions into std namespace.
4895
c8d48fae
UD
4896 [BZ #5103]
4897 * posix/glob.c (glob): Recognize patterns starting \/.
4898 * posix/tst-gnuglob.c (find_file): Handle absolute path names.
4899 (main): Add test for pattern starting \/.
4900
a1a363d2
UD
4901 * misc/error.h: Use __const instead of const.
4902 * misc/bits/error.h: Likewise.
4903
49042007-10-07 Andreas Jaeger <aj@suse.de>
4905
4906 * include/bits/error.h: New file.
4907
4908 * misc/bits/error.h (error_at_line): Fix prototype.
4909
71894681
UD
49102007-10-06 Ulrich Drepper <drepper@redhat.com>
4911
a6fa5328
UD
4912 [BZ #3924]
4913 * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Fix a few
4914 more little bugs in creating the stack frame when pltexit has to
4915 be called.
4916
8c7661bc 4917 * nscd/nscd_helper.c (__nscd_cache_search): Prevent endless loops.
50607309 4918 * nscd/connections.c (verify_persistent_db): Recognize circular lists.
8c7661bc 4919
c039eedd
UD
4920 [BZ #4407]
4921 * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Fix *signgamp for -0.0.
4922 * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
4923 * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
4924 * math/libm-test.inc: Add test for this case.
4925
71894681
UD
4926 [BZ #5010]
4927 * sunrpc/svc.c (struct svc_callout): Add sc_mapped element.
4928 (svc_register): Initialize sc_mapped. Set to TRUE if call to
4929 map service succeeded.
4930 (svc_is_mapped): New function.
4931 (svc_unregister): Use it before trying to unmap service.
4932
34c2c092
UD
49332007-10-05 Ulrich Drepper <drepper@redhat.com>
4934
d10737e4
UD
4935 * timezone/zic.c: Update from tzcode2007h.
4936
4937 [BZ #5063]
4938 * timezone/africa: Update from tzdata2007h.
4939 * timezone/antarctica: Likewise.
4940 * timezone/asia: Likewise.
4941 * timezone/australasia: Likewise.
4942 * timezone/europe: Likewise.
4943 * timezone/leapseconds: Likewise.
4944 * timezone/northamerica: Likewise.
4945 * timezone/southamerica: Likewise.
4946 * timzeone/zone.tab: Likewise.
4947
0304f168
UD
4948 [BZ #5104]
4949 * elf/do-lookup.h (do_lookup_x): Don't ignore STT_COMMON symbols.
4950
a83b5649
UD
4951 [BZ #5113]
4952 * string/bits/string2.h (__strdup): Cast parameters to calloc to
4953 avoid warning with -Wconversion.
4954 (__strndup): Likewise.
c039eedd 4955 Half the patch by Christian Iseli <christian.iseli@licr.org>.
a83b5649 4956
3e6ce4d7
UD
4957 [BZ #5112]
4958 * nscd/connections.c (restart): Don't resync if database is
4959 disabled. Patch mostly by Brian De Wolf <bldewolf@csupomona.edu>.
4960
8e351378
UD
4961 * sysdeps/gnu/netinet/tcp.h: Define TCP_MD5SIG, TCP_MD5SIG_MAXKEYLEN,
4962 struct tcp_md5sig. Extend struct tcp_info according to recent kernels.
4963
4964 * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add eventfd,
4965 evetnfd_read, eventfd_write.
4966 * sysdeps/unix/sysv/linux/eventfd.c: New file.
4967 * sysdeps/unix/sysv/linux/eventfd_read.c: New file.
4968 * sysdeps/unix/sysv/linux/eventfd_write.c: New file.
4969 * sysdeps/unix/sysv/linux/sys/eventfd.h: New file.
d10737e4 4970 * sysdeps/unix/sysv/linux/Versions: Export eventfd, eventfd_read,
8e351378
UD
4971 eventfd_write for GLIBC_2.7.
4972
34c2c092
UD
4973 * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add signalfd.
4974 * sysdeps/unix/sysv/linux/signalfd.c: New file.
4975 * sysdeps/unix/sysv/linux/sys/signalfd.h: New file.
4976 * sysdeps/unix/sysv/linux/Versions: Export signalfd for GLIBC_2.7.
4977
6789aaaa 49782007-10-04 Jakub Jelinek <jakub@redhat.com>
375d9429
UD
4979
4980 * stdlib/msort.c: Include stdint.h.
4981 (struct msort_param): New type.
4982 (msort_with_tmp): Use struct msort_param pointer for unchanging
4983 parameters. Add optimized handling for several common sizes
4984 and indirect sorting mode.
4985 (qsort): Adjust msort_with_tmp callers. For big S use indirect
4986 sorting.
4987 Suggested by Belazougui Djamel .
4988
4989 * stdlib/Makefile (tests): Add tst-qsort2.
4990 * stdlib/tst-qsort2.c: New test.
4991
b80bfc8b
UD
49922007-10-04 Ulrich Drepper <drepper@redhat.com>
4993
174420d2
UD
4994 * login/login_tty.c (login_tty): The Linux kernel can return EBUSY
4995 for dup2 in case another thread races with the current one. Retry
4996 in this case.
4997
b80bfc8b
UD
4998 * misc/error.h: Remove support for use outside of libc. We have to
4999 include <features.h> now. Include <bits/error.h> if possible.
5000 * misc/bits/error.h: New file.
5001
6789aaaa 50022007-10-03 Jakub Jelinek <jakub@redhat.com>
ee868c89 5003
e5dd2178
UD
5004 * string/bits/string3.h (memcpy, memmove, mempcpy, memset, bcopy,
5005 bzero, strcpy, stpcpy, strncpy, strcat, strncat): Use
5006 __extern_always_inline functions unconditionally, drop macros.
5007
ac97dec1
UD
5008 * misc/sys/cdefs.h (__REDIRECT_LDBL, __REDIRECT_NTH_LDBL): New macros.
5009 * wcsmbs/bits/wchar2.h (__swprintf_alias, __vswprintf_alias): Use
5010 __REDIRECT_NTH_LDBL macro rather than __REDIRECT_NTH.
5011
ee868c89
UD
5012 * misc/sys/cdefs.h (__extern_always_inline): For GCC 4.3+
5013 add __artificial__ attribute.
5014
80e069e0
UD
50152007-10-02 Ulrich Drepper <drepper@redhat.com>
5016
6e682cf5
UD
5017 * string/strcoll_l.c (STRCOLL): Correct handling of switching from
5018 backward to forward direction.
5019
90241a20
UD
5020 * string/strcoll_l.c (STRCOLL): Correct test for alloca use.
5021
80e069e0
UD
5022 [BZ #645]
5023 * locale/programs/ld-collate.c (collate_finish): Compare against last
5024 used section which is known to have rules defined.
5025 (collate_read): After order_start, correctly record order of sections
5026 and queue sections up.
5027
035ef8d7
UD
50282007-10-01 Ulrich Drepper <drepper@redhat.com>
5029
95bddc0c
UD
5030 [BZ #5071]
5031 * malloc/malloc.c (mremap_chunk): Avoid resizing of new block has
5032 the same number of pages.
5033 Patch by Tomash Brechko <tomash.brechko@gmail.com>.
5034
c8caf089
UD
5035 * locale/programs/ld-collate.c (collate_read): After initial copy
5036 statement, continue in state 0.
5037
035ef8d7
UD
5038 * include/stdio_ext.h (__fsetlocking): Define as macro.
5039
592a95ee
UD
50402007-09-30 Ulrich Drepper <drepper@redhat.com>
5041
56ebeb41
UD
5042 * locale/programs/ld-collate.c (collate_finish): Compare all bytes
5043 of section order.
5044
592a95ee
UD
5045 * po/pt_BR.po: Fix typo.
5046
6c522e21
UD
50472007-09-29 Ulrich Drepper <drepper@redhat.com>
5048
8ad5c3cd
UD
5049 * iconvdata/Makefile (modules): Add ISO8859-9E.
5050 (distribute): Add iso8859-9e.c.
5051 (gen-8bit-gap-modules): Add iso8859-9e.
5052 * iconvdata/iso8859-9e.c: New file.
5053 * iconvdata/gconv-modules: Add entries for ISO-8859-9E.
5054 * iconvdata/TESTS: Likewise.
5055 * iconvdata/tst-tables.sh: Likewise.
5056
5057 * iconvdata/koi8-r.c (HAS_HOLES): Define to 0.
5058
6c522e21
UD
5059 * locale/iso-639.def: Add several new entries.
5060
385b4cf4
UD
50612007-09-24 Jakub Jelinek <jakub@redhat.com>
5062
5063 * sysdeps/generic/ldsodefs.h (struct dl_scope_free_list): Store
5064 void * pointers instead of struct link_map **.
5065 (_dl_scope_free): Change argument type to void *.
5066 * include/link.h (struct link_map): Change type of l_reldeps
5067 to struct link_map_reldeps, move l_reldepsact into that
5068 struct too.
5069 * elf/dl-deps.c: Include atomic.h.
5070 (_dl_map_object_deps): Only change l->l_initfini when it is
5071 fully populated, use _dl_scope_free for freeing it. Optimize
5072 removal of libs from reldeps by using l_reserved flag, when
5073 some removal is needed, allocate a new list instead of
5074 reallocating and free the old with _dl_scope_free. Adjust
5075 for l_reldeps and l_reldepsact changes.
5076 * elf/dl-lookup.c (add_dependency): Likewise. Reorganize to allow
5077 searching in l_initfini and l_reldeps without holding dl_load_lock.
5078 * elf/dl-fini.c (_dl_sort_fini): Adjust for l_reldeps and
5079 l_reldepsact changes.
5080 * elf/dl-close.c (_dl_close_worker): Likewise.
5081 * elf/dl-open.c (_dl_scope_free): Change argument type to void *.
5082
90bf831b
UD
50832007-09-28 Ulrich Drepper <drepper@redhat.com>
5084
5085 * iconvdata/Makefile (modules): Add KOI8-RU.
5086 (distribute): Add koi8-ru.c.
5087 (gen-8bit-gap-modules): Add koi8-ru.
5088 * iconvdata/koi8-ru.c: New file.
5089 * iconvdata/gconv-modules: Add entries for KOI8-RU.
5090 * iconvdata/TESTS: Likewise.
5091 * iconvdata/tst-tables.sh: Likewise.
5092
5093 * iconvdata/koi8-r.c (HAS_HOLES): Define to 0.
5094
d6cd6bf4
UD
50952007-09-26 Jakub Jelinek <jakub@redhat.com>
5096
5097 * misc/sys/cdefs.h (__warndecl, __errordecl): For GCC 4.3+ define
5098 with __warning__/__error__ attributes.
5099 (__warnattr): Define.
5100 * stdlib/bits/stdlib.h (__realpath_chk_warn, __ptsname_r_chk_warn,
5101 __mbstowcs_chk_warn, __wcstombs_chk_warn): New aliases with
5102 __warnattr.
5103 (realpath, ptsname_r, mbstowcs, wcstombs): Call __*_chk_warn instead
5104 of __*_chk if compile time detectable overflow is found.
5105 * libio/bits/stdio2.h (__fgets_chk_warn, __fread_chk_warn,
5106 __fgets_unlocked_chk_warn, __fread_unlocked_chk_warn): New aliases
5107 with __warnattr.
5108 (fgets, fread, fgets_unlocked, fread_unlocked): Call __*_chk_warn
5109 instead of __*_chk if compile time detectable overflow is found.
5110 (__gets_alias): Rename to...
5111 (__gets_warn): ... this. Add __warnattr.
5112 (gets): Call __gets_warn instead of __gets_alias.
5113 * socket/bits/socket2.h (__recv_chk_warn, __recvfrom_chk_warn): New
5114 aliases with __warnattr.
5115 (recv, recvfrom): Call __*_chk_warn instead of __*_chk if compile
5116 time detectable overflow is found.
5117 * posix/bits/unistd.h (__read_chk_warn, __pread_chk_warn,
5118 __pread64_chk_warn, __readlink_chk_warn, __readlinkat_chk_warn,
5119 __getcwd_chk_warn, __confstr_chk_warn, __getgroups_chk_warn,
5120 __ttyname_r_chk_warn, __getlogin_r_chk_warn, __gethostname_chk_warn,
5121 __getdomainname_chk_warn): New aliases with __warnattr.
5122 (read, pread, pread64, readlink, readlinkat, getcwd, confstr,
5123 getgroups, ttyname_r, getlogin_r, gethostname, getdomainname): Call
5124 __*_chk_warn instead of __*_chk if compile time detectable overflow
5125 is found.
5126 (__getgroups_chk): Rename argument to __listlen from listlen.
5127 (__getwd_alias): Rename to...
5128 (__getwd_warn): ... this. Add __warnattr.
5129 (getwd): Call __getwd_warn instead of __getwd_alias.
5130 * wcsmbs/bits/wchar2.h (__wmemcpy_chk_warn, __wmemmove_chk_warn,
5131 __wmempcpy_chk_warn, __wmemset_chk_warn, __wcsncpy_chk_warn,
5132 __wcpncpy_chk_warn, __fgetws_chk_warn, __fgetws_unlocked_chk_warn,
5133 __mbsrtowcs_chk_warn, __wcsrtombs_chk_warn, __mbsnrtowcs_chk_warn,
5134 __wcsnrtombs_chk_warn): New aliases with __warnattr.
5135 (wmemcpy, wmemmove, wmempcpy, wmemset, mbsrtowcs, wcsrtombs,
5136 mbsnrtowcs, wcsnrtombs): Call __*_chk_warn instead of __*_chk if
5137 compile time detectable overflow is found.
5138 (wcsncpy, wcpncpy): Likewise. For constant __n fix check whether
5139 to use __*_chk or not.
5140 (fgetws, fgetws_unlocked): Divide __bos by sizeof (wchar_t), both
5141 in comparisons which function should be called and in __*_chk*
5142 arguments. Call __*_chk_warn instead of __*_chk if compile time
5143 detectable overflow is found.
5144 (swprintf, vswprintf): Divide __bos by sizeof (wchar_t) in
5145 __*_chk argument.
5146 * debug/tst-chk1.c (do_test): Add a few more tests.
5147
408cfca0
UD
51482007-09-24 Ulrich Drepper <drepper@redhat.com>
5149
5150 [BZ #5058]
5151 * intl/gettextP.h (struct loaded_domain): Add conversions_lock member.
5152 * intl/loadmsgcat.c (_nl_load_domain): Initialize conversions_lock.
5153 (_nl_unload_domain): Finalize conversions_lock.
5154 * intl/dcigettext.c (_nl_find_msg): Take conversions_lock before
5155 handling table of known conversions.
5156
e6eec9ce
JJ
51572007-09-24 Jakub Jelinek <jakub@redhat.com>
5158
5159 * sysdeps/posix/getaddrinfo.c (getaddrinfo): Use
5160 close_not_cancel_no_status instead of close.
5161
a532a41d
UD
51622007-09-13 Aurelien Jarno <aurelien@aurel32.net>
5163
682268ef 5164 [BZ #5028]
408cfca0 5165 * posix/regcomp.c (lookup_collation_sequence_value): Check that
a532a41d
UD
5166 nrules != 0 for multibyte chars.
5167
dec9ed9e
UD
51682007-09-23 Ulrich Drepper <drepper@redhat.com>
5169
91633816
UD
5170 * resolv/ns_print.c (ns_sprintrrf): Handle ns_t_a6 and ns_t_opt.
5171 Provide better error message in case the type is unknown.
5172
9cc198f6
UD
5173 [BZ #4963]
5174 * wcsmbs/wcsnlen.c: Don't reference before checking the length.
5175 * string/stratcliff.c: Make usable to test wide char functions.
5176 * wcsmbs/wcsatcliff.c: New file.
5177 * wcsmbs/Makefiel (tests): Add wcsatcliff.
5178
27f3d446
UD
5179 [BZ #4972]
5180 * iconvdata/Makefile (modules): Add MAC-CENTRALEUROPE.
5181 (distribute): Add mac-centraleurope.c.
5182 (gen-8bit-gap-modules): Add mac-centraleurope.
5183 * iconvdata/mac-centraleurope.c: New file.
5184 * iconvdata/gconv-modules: Add entries for MAC-CENTRALEUROPE.
5185 * iconvdata/TESTS: Likewise.
5186 * iconvdata/tst-tables.sh: Likewise.
5187
dec9ed9e
UD
5188 [BZ #5043]
5189 * iconv/iconv_open.c (iconv_open): For large codeset names use malloc.
5190
0435403c
UD
51912007-09-21 Ulrich Drepper <drepper@redhat.com>
5192
5193 * sysdeps/x86_64/cacheinfo.c (__x86_64_data_cache_size_half): Renamed
5194 from __x86_64_core_cache_size_half.
5195 (init_cacheinfo): Compute shared cache size for AMD processors with
5196 shared L3 correctly.
5197 * sysdeps/x86_64/memcpy.S: Adjust for __x86_64_data_cache_size_half
5198 name change.
5199 Patch in large parts by Evandro Menezes.
5200
c3266dc0
UD
52012007-09-19 Ulrich Drepper <drepper@redhat.com>
5202
715899d1
UD
5203 * elf/dl-lookup.c (add_dependency): Handle failing memory
5204 allocation for dependency list. Remove unnecessary check.
5205
e1db0493
UD
5206 * sysdeps/posix/getaddrinfo.c (getaddrinfo): Avoid unnecessary
5207 open/close when determining source addresses.
5208
c3266dc0
UD
5209 * crypt/Makefile (libcrypt-routines): Add sha256-crypt, sha256,
5210 sha512-crypt, and sha512.
5211 (tests): Add sha256test, sha256c-test, sha512test, and sha512c-test.
5212 (distribute): Add sha256.h and sha512.h.
5213 * crypt/crypt-entry.c (crypt): Recognize the new $5$ and $6$ prefixes
5214 and call the appropriate code.
5215 * crypt/sha256-crypt.c: New file.
5216 * crypt/sha256.c: New file.
5217 * crypt/sha256.h: New file.
5218 * crypt/sha256c-test.c: New file.
5219 * crypt/sha256test.c: New file.
5220 * crypt/sha512-crypt.c: New file.
5221 * crypt/sha512.c: New file.
5222 * crypt/sha512.h: New file.
5223 * crypt/sha512c-test.c: New file.
5224 * crypt/sha512test.c: New file.
5225
ddf51ecb
JJ
52262007-09-19 Jakub Jelinek <jakub@redhat.com>
5227
5228 * misc/bits/syslog.h (syslog): Remove extraneous argument from
5229 the inline, pass __USE_FORTIFY_LEVEL - 1 as second argument to
5230 __syslog_chk.
5231
b90395e6
UD
52322007-09-18 Jakub Jelinek <jakub@redhat.com>
5233
76c0bea7
JJ
5234 * locale/programs/charmap-dir.c (charmap_aliases): Use %ms instead of
5235 %as in fscanf format strings.
5236
00680568
JJ
5237 * sysdeps/sparc/sparc32/elf/start.S: Remove cfi_* markup.
5238 * sysdeps/sparc/sparc64/elf/start.S: Likewise.
c3266dc0
UD
5239 * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__thread_start):
5240 Likewise.
5241 * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__thread_start):
5242 Likewise.
00680568 5243
b90395e6
UD
5244 * sysdeps/generic/ldsodefs.h (DL_LOOKUP_GSCOPE_LOCK): New definition.
5245 * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Or in
5246 DL_LOOKUP_GSCOPE_LOCK into flags after THREAD_GSCOPE_SET_FLAG ().
5247 * elf/dl-sym.c (do_sym): Likewise.
5248 * include/link.h (struct link_map): Add l_serial field.
5249 * elf/dl-object.c (_dl_new_object): Initialize l_serial.
5250 * elf/dl-lookup.c (add_dependency): Add flags argument.
5251 Remember map->l_serial, if DL_LOOKUP_GSCOPE_LOCK is among
5252 flags, use THREAD_GSCOPE_RESET_FLAG before and
5253 THREAD_GSCOPE_SET_FLAG after
5254 __rtld_lock_lock_recursive (GL(dl_load_lock)) to avoid deadlock.
5255 Don't dereference map until it has been found on some list.
5256 If map->l_serial changed, return -1.
5257
874aa523
UD
52582007-09-17 Jakub Jelinek <jakub@redhat.com>
5259
5260 * include/stdio.h (__isoc99_fscanf, __isoc99_scanf,
5261 __isoc99_sscanf, __isoc99_vscanf): New prototypes.
5262 (__isoc99_vsscanf, __isoc99_vfscanf): New prototypes, add
5263 libc_hidden_proto.
5264 * include/wchar.h (__isoc99_fwscanf, __isoc99_wscanf,
5265 __isoc99_swscanf, __isoc99_vwscanf): New prototypes.
5266 (__isoc99_vswscanf, __isoc99_vfwscanf): New prototypes,
5267 add libc_hidden_proto.
5268 * libio/stdio.h (fscanf, scanf, sscanf, vfscanf, vscanf,
5269 vsscanf): Redirect to __isoc99_* if strict ISO C99 or POSIX
5270 conformance requested.
5271 * wcsmbs/wchar.h (fwscanf, wscanf, swscanf, vfwscanf, vwscanf,
5272 vswscanf): Redirect to __isoc99_* if strict ISO C99 or POSIX
5273 conformance requested.
5274 * libio/bits/stdio-ldbl.h (fscanf, scanf, sscanf, vfscanf, vscanf,
5275 vsscanf): Redirect to __nldbl___isoc99_* if strict ISO C99 or POSIX
5276 conformance requested.
5277 * wcsmbs/bits/wchar-ldbl.h (fwscanf, wscanf, swscanf, vfwscanf,
5278 vwscanf, vswscanf): Redirect to __nldbl___isoc99_* if strict
5279 ISO C99 or POSIX conformance requested.
5280 * stdio-common/Versions (libc): Export __isoc99_scanf@@GLIBC_2.7,
5281 __isoc99_vscanf@@GLIBC_2.7, __isoc99_fscanf@@GLIBC_2.7,
5282 __isoc99_vfscanf@@GLIBC_2.7, __isoc99_sscanf@@GLIBC_2.7
5283 and __isoc99_vsscanf@@GLIBC_2.7.
5284 * stdio-common/Makefile (routines): Add isoc99_scanf, isoc99_vscanf,
5285 isoc99_fscanf, isoc99_vfscanf, isoc99_sscanf and isoc99_vsscanf.
5286 (tests): Add scanf14.
5287 (CFLAGS-vfprintf.c, CFLAGS-fprintf.c, CFLAGS-printf.c,
5288 CFLAGS-vfwprintf.c, CFLAGS-vfscanf.c, CFLAGS-vfwscanf.c,
5289 CFLAGS-fscanf.c, CFLAGS-scanf.c, CFLAGS-isoc99_vfscanf.c,
5290 CFLAGS-isoc99_vscanf.c, CFLAGS-isoc99_fscanf.c,
5291 CFLAGS-isoc99_scanf.c): Add $(exceptions).
5292 (CFLAGS-scanf15.c): Add various -I paths to prevent the compiler
5293 from using internal headers.
5294 * wcsmbs/Versions (libc): Export __isoc99_wscanf@@GLIBC_2.7,
5295 __isoc99_vwscanf@@GLIBC_2.7, __isoc99_fwscanf@@GLIBC_2.7,
5296 __isoc99_vfwscanf@@GLIBC_2.7, __isoc99_swscanf@@GLIBC_2.7
5297 and __isoc99_vswscanf@@GLIBC_2.7.
5298 * wcsmbs/Makefile (routines): Add isoc99_wscanf, isoc99_vwscanf,
5299 isoc99_fwscanf, isoc99_vfwscanf, isoc99_swscanf and isoc99_vswscanf.
5300 (CFLAGS-isoc99_wscanf.c, CFLAGS-isoc99_fwscanf.c,
5301 CFLAGS-isoc99_vwscanf.c, CFLAGS-isoc99_vfwscanf.c): Add $(exceptions).
5302 (CPPFLAGS): Add -D_IO_MTSAFE_IO if needed.
5303 * stdio-common/isoc99_scanf.c: New file.
5304 * stdio-common/isoc99_vsscanf.c: New file.
5305 * stdio-common/isoc99_vscanf.c: New file.
5306 * stdio-common/isoc99_vfscanf.c: New file.
5307 * stdio-common/isoc99_fscanf.c: New file.
5308 * stdio-common/isoc99_sscanf.c: New file.
5309 * wcsmbs/isoc99_fwscanf.c: New file.
5310 * wcsmbs/isoc99_vswscanf.c: New file.
5311 * wcsmbs/isoc99_swscanf.c: New file.
5312 * wcsmbs/isoc99_wscanf.c: New file.
5313 * wcsmbs/isoc99_vwscanf.c: New file.
5314 * wcsmbs/isoc99_vfwscanf.c: New file.
5315 * libio/libio.h (_IO_FLAGS2_SCANF_STD): Define.
5316 * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct): Also
5317 clear _IO_FLAGS2_SCANF_STD bit from _flags2.
5318 * stdio-common/vfscanf.c (_IO_vfscanf_internal): Don't
5319 handle %as, %aS and %a[ if _IO_FLAGS2_SCANF_STD is set in _flags2.
5320 * stdio-common/scanf14.c: New test.
5321 * stdio-common/scanf15.c: New test.
5322 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add
5323 isoc99_scanf, isoc99_fscanf, isoc99_sscanf,
5324 isoc99_vscanf, isoc99_vfscanf, isoc99_vsscanf,
5325 isoc99_wscanf, isoc99_fwscanf, isoc99_swscanf,
5326 isoc99_vwscanf, isoc99_vfwscanf and isoc99_vswscanf.
5327 * sysdeps/ieee754/ldbl-opt/Versions (libc): Export
5328 __nldbl___isoc99_scanf@@GLIBC_2.7,
5329 __nldbl___isoc99_fscanf@@GLIBC_2.7,
5330 __nldbl___isoc99_sscanf@@GLIBC_2.7,
5331 __nldbl___isoc99_vscanf@@GLIBC_2.7,
5332 __nldbl___isoc99_vfscanf@@GLIBC_2.7,
5333 __nldbl___isoc99_vsscanf@@GLIBC_2.7,
5334 __nldbl___isoc99_wscanf@@GLIBC_2.7,
5335 __nldbl___isoc99_fwscanf@@GLIBC_2.7,
5336 __nldbl___isoc99_swscanf@@GLIBC_2.7,
5337 __nldbl___isoc99_vwscanf@@GLIBC_2.7,
5338 __nldbl___isoc99_vfwscanf@@GLIBC_2.7
5339 and __nldbl___isoc99_vswscanf@@GLIBC_2.7.
5340 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__isoc99_scanf,
5341 __isoc99_fscanf, __isoc99_sscanf, __isoc99_vscanf,
5342 __isoc99_vfscanf, __isoc99_vsscanf, __isoc99_wscanf,
5343 __isoc99_fwscanf, __isoc99_swscanf, __isoc99_vwscanf,
5344 __isoc99_vfwscanf, __isoc99_vswscanf): Add NLDBL_DECL.
5345 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c
5346 (__nldbl___isoc99_scanf, __nldbl___isoc99_fscanf,
5347 __nldbl___isoc99_sscanf, __nldbl___isoc99_vscanf,
5348 __nldbl___isoc99_vfscanf, __nldbl___isoc99_vsscanf,
5349 __nldbl___isoc99_wscanf, __nldbl___isoc99_fwscanf,
5350 __nldbl___isoc99_swscanf, __nldbl___isoc99_vwscanf,
5351 __nldbl___isoc99_vfwscanf, __nldbl___isoc99_vswscanf): New
5352 functions.
5353 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vfscanf.c: New file.
5354 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_swscanf.c: New file.
5355 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vwscanf.c: New file.
5356 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_wscanf.c: New file.
5357 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_scanf.c: New file.
5358 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_sscanf.c: New file.
5359 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vsscanf.c: New file.
5360 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_fwscanf.c: New file.
5361 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vfwscanf.c: New file.
5362 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vswscanf.c: New file.
5363 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vscanf.c: New file.
5364 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_fscanf.c: New file.
5365
5366 * stdio-common/Makefile (tests): Add scanf13.
5367 (scanf13-ENV): New.
5368 * stdio-common/vfscanf.c (_IO_vfscanf_internal): Handle
5369 m modifier followed by l.
5370 (STRING_ARG): Add width argument.
5371 (_IO_vfscanf_internal) <case L_('c')>: Handle %mc.
5372 <case L_('C')>: Handle %mlc and %mC.
5373 <case L_('s'), case L_('S'), case L_('[')>: Adjust STRING_ARG
5374 arguments.
5375 * stdio-common/scanf13.c: New test.
5376
5377 * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct): Clear
5378 the _IO_FLAGS2_FORTIFY bit from _flags2 rather than _flags.
5379
883f7943
UD
53802007-09-18 Ulrich Drepper <drepper@redhat.com>
5381
5382 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Correct return value
874aa523 5383 type and __THROW marker of splice, vmsplice, and tee.
883f7943
UD
5384 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
5385 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
5386 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
5387 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
5388 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
5389 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
5390 * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
5391 * sysdeps/unix/sysv/linux/syscalls.list: Mark splice, vmsplice, and tee
5392 as cancellation points.
5393
3524efe0
UD
53942003-11-01 Daniel Jacobowitz <dan@debian.org>
5395
5396 * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_discover_osversion): Don't
5397 parse more than three parts of the version number.
5398
267c54dc
UD
53992007-09-15 Ulrich Drepper <drepper@redhat.com>
5400
5401 * stdio-common/vfscanf.c (_IO_vfwscanf): Add support for 'm'
5402 modifier. Patch by Jakub Jelinek.
5403
5e17d6b7
UD
54042007-08-26 Jakub Jelinek <jakub@redhat.com>
5405
5406 * sysdeps/unix/sysv/linux/i386/Makefile (sysdep_routines): Add
5407 call_fallocate in misc subdir.
5408 * sysdeps/unix/sysv/linux/i386/call_fallocate.S: New file.
5409 * sysdeps/unix/sysv/linux/i386/syscalls.list (fallocate64): Remove.
5410 * sysdeps/unix/sysv/linux/i386/posix_fallocate.c: Use __call_fallocate
5411 instead of __fallocate64.
5412 * sysdeps/unix/sysv/linux/i386/posix_fallocate64.c: Likewise.
5413
3a50811c
UD
54142007-09-15 Jakub Jelinek <jakub@redhat.com>
5415
5416 * rt/Versions (librt): Export __mq_open_2@@GLIBC_2.7.
5417 * rt/Makefile (headers): Add bits/mqueue2.h.
5418 * rt/mqueue.h: Include bits/mqueue2.h if -D_FORTIFY_SOURCE=2,
5419 optimizing with GCC and __va_arg_pack_len is defined.
5420 * rt/bits/mqueue2.h: New file.
5421 * rt/mq_open.c (__mq_open): Renamed from mq_open.
5422 (mq_open): New strong_alias.
5423 (__mq_open_2): New function.
5424 * sysdeps/unix/sysv/linux/mq_open.c (__mq_open): Renamed from mq_open.
5425 (mq_open): New strong_alias.
5426 (__mq_open_2): New function.
5427 * debug/Versions (libc): Export __fortify_fail@@GLIBC_PRIVATE.
5428 * Versions.def (librt): Add GLIBC_2.7 version.
5429 * debug/fortify_fail.c (__fortify_fail): Add libc_hidden_def.
5430 * include/stdio.h (__fortify_fail): Add libc_hidden_proto.
5431
5432 * misc/sys/cdefs.h (__errordecl, __va_arg_pack_len): Define.
5433 * io/fcntl.h: Include bits/fcntl2.h when __va_arg_pack_len
5434 is defined rather than when not C++.
5435 * io/bits/fcntl2.h (__open_alias, __open64_alias, __openat_alias,
5436 __openat64_alias): New redirects.
5437 (__open_too_many_args, __open_missing_mode, __open64_too_many_args,
5438 __open64_missing_mode, __openat_too_many_args, __openat_missing_mode,
5439 __openat64_too_many_args, __openat64_missing_mode): New __errordecls.
5440 (open, open64, openat, openat64): Rewrite as __extern_always_inline
5441 functions instead of function-like macros.
5442
9bdfff60
UD
54432007-09-14 H.J. Lu <hongjiu.lu@intel.com>
5444
5445 * sysdeps/i386/i586/memcpy.S (__memcpy_chk): New definition.
5446 * sysdeps/i386/i586/mempcpy.S (__memcpy_chk): New definition.
5447 * sysdeps/i386/i586/memset.S (__memset_chk): New definition.
5448
ab905672
UD
54492007-09-15 Mike Frysinger <vapier@gentoo.org>
5450
5451 * inet/inet_net.c: Reset digit to 0 for inputs starting with "0x".
5452 * inet/tst-network.c (tests): Add edge case tests for "0", "0x", "0x0".
5453
9bd68902
RM
54542007-09-14 Mike Frysinger <vapier@gentoo.org>
5455
5456 * inet/tst-network.c: Increment ERRORS for failing tests.
5457
de1c3ebb
UD
54582007-09-07 Jakub Jelinek <jakub@redhat.com>
5459
5460 * misc/sys/cdefs.h (__va_arg_pack): Define for GCC 4.3+.
5461 * misc/bits/syslog.h (syslog): When __va_arg_pack is defined,
5462 implement as __extern_always_inline function.
5463 (vsyslog): Define as __extern_always_inline function unconditionally.
5464 * libio/bits/stdio2.h (sprintf, snprintf, printf, fprintf):
5465 When __va_arg_pack is defined, implement as __extern_always_inline
5466 functions.
5467 (vsprintf, vsnprintf, vprintf, vfprintf): Define as
5468 __extern_always_inline functions unconditionally.
5469 * libio/bits/stdio.h (vprintf): Ifdef out the inline when
5470 bits/stdio2.h will be included.
5471 * wcsmbs/bits/wchar2.h (__swprintf_alias): New redirect.
5472 (swprintf, wprintf, fwprintf): When __va_arg_pack is defined,
5473 implement as __extern_always_inline functions.
5474 (vswprintf, vwprintf, vfwprintf): Define as
5475 __extern_always_inline functions unconditionally.
5476 * debug/tst-chk1.c (do_test): Enable remaining tests for C++.
5477
54782007-09-03 Jakub Jelinek <jakub@redhat.com>
5479
5480 * misc/sys/cdefs.h (__extern_inline, __extern_always_inline): Only
5481 define in C++ for GCC 4.3+, in C++ always use __gnu_inline__
5482 attribute.
5483 * include/features.h (__USE_EXTERN_INLINES): Define only when
5484 __extern_inline is defined.
5485 * stdlib/stdlib.h: Include bits/stdlib.h when __extern_always_inline
5486 is defined instead of when not __cplusplus.
5487 * misc/sys/syslog.h: Include bits/syslog.h when __extern_always_inline
5488 is defined instead of when not __cplusplus.
5489 * socket/sys/socket.h: Include bits/socket2.h when
5490 __extern_always_inline is defined instead of when not __cplusplus.
5491 * libio/stdio.h: Include bits/stdio2.h when __extern_always_inline
5492 is defined instead of when not __cplusplus.
5493 * posix/unistd.h: Include bits/unistd.h when __extern_always_inline
5494 is defined instead of when not __cplusplus.
5495 * string/string.h: Include bits/string3.h when __extern_always_inline
5496 is defined instead of when not __cplusplus.
5497 * wcsmbs/wchar.h: Include bits/wchar2.h when __extern_always_inline
5498 is defined instead of when not __cplusplus.
5499 (btowc, wctob): Don't guard the inlines with ifndef __cplusplus.
5500 * io/fcntl.h: Don't include bits/fcntl2.h if __extern_always_inline
5501 is not defined.
5502 * misc/bits/syslog-ldbl.h: Guard *_chk stuff with
5503 defined __extern_always_inline instead of !defined __cplusplus.
5504 * libio/bits/stdio-ldbl.h: Likewise.
5505 * wcsmbs/bits/wchar-ldbl.h: Likewise.
5506 * misc/bits/syslog.h (syslog): Don't define for C++.
5507 (vsyslog): Use __extern_always_inline function for C++ instead of
5508 a macro.
5509 * libio/bits/stdio.h (__STDIO_INLINE): Define to __extern_inline
5510 whenever that macro is defined.
5511 (vprintf): Don't provide the inline for C++.
5512 (fread_unlocked, fwrite_unlocked): Don't define the macros for C++.
5513 * libio/bits/stdio2.h (sprintf, snprintf, printf, fprintf): Don't
5514 define the macros for C++.
5515 (vsprintf, vsnprintf, vprintf, vfprintf): Define as
5516 __extern_always_inline functions for C++.
5517 * io/sys/stat.h (stat, lstat, fstat, fstatat, mknod, mknodat,
5518 stat64, lstat64, fstat64, fstatat64): Don't define if not
5519 __USE_EXTERN_INLINES.
5520 * wcsmbs/bits/wchar2.h: Fix #error message.
5521 (swprintf, wprintf, fwprintf): Don't define the macros for C++.
5522 (vswprintf, vwprintf, vfwprintf): Define using
5523 __extern_always_inline functions for C++.
5524 * string/bits/string3.h: Don't #undef macros if __cplusplus.
5525 (memcpy, memmove, mempcpy, memset, bcopy, bzero, strcpy, stpcpy,
5526 strncpy, strcat, strncat): Define as __extern_always_inline
5527 functions instead of macros for C++.
5528 * math/bits/cmathcalls.h: Guard __extern_inline routines with
5529 defined __extern_inline.
5530 * sysdeps/alpha/fpu/bits/mathinline.h (__MATH_INLINE): Define
5531 to __extern_inline whenever that macro is defined.
5532 * sysdeps/ia64/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
5533 * sysdeps/i386/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
5534 * sysdeps/i386/i486/bits/string.h (__STRING_INLINE): Likewise.
5535 * sysdeps/s390/bits/string.h (__STRING_INLINE): Likewise.
5536 * sysdeps/s390/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
5537 * sysdeps/powerpc/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
5538 * sysdeps/x86_64/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
5539 * sysdeps/sparc/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
5540 * sysdeps/unix/sysv/linux/sys/sysmacros.h (gnu_dev_major,
5541 gnu_dev_minor, gnu_dev_makedev): Remove __extern_inline from
5542 prototypes. Only provide __extern_inline routines if
5543 __USE_EXTERN_INLINES.
5544 * debug/Makefile: Add rules to build and run tst-{,lfs}chk{4,5,6}
5545 tests.
5546 * debug/tst-chk1.c (do_prepare, do_test): Allow compilation as C++.
5547 For now avoid some *printf tests in C++. Skip all testing
5548 if __USE_FORTIFY_LEVEL is defined, but __extern_always_inline macro
5549 is not.
5550 * debug/tst-chk4.cc: New file.
5551 * debug/tst-chk5.cc: New file.
5552 * debug/tst-chk6.cc: New file.
5553 * debug/tst-lfschk4.cc: New file.
5554 * debug/tst-lfschk5.cc: New file.
5555 * debug/tst-lfschk6.cc: New file.
5556 * include/wchar.h (__vfwprintf_chk, __vswprintf_chk): Avoid
5557 prototypes in C++.
5558 * include/stdio.h (__sprintf_chk, __snprintf_chk, __vsprintf_chk,
5559 __vsnprintf_chk, __printf_chk, __fprintf_chk, __vprintf_chk,
5560 __vfprintf_chk, __fgets_unlocked_chk, __fgets_chk): Likewise.
5561
b53eef9c
UD
55622007-09-13 Ulrich Drepper <drepper@redhat.com>
5563
5564 * po/cs.po: Update from translation team.
5565
af385590
RM
55662007-09-11 Roland McGrath <roland@redhat.com>
5567
5568 * posix/Makefile ($(objpfx)getconf.speclist): Make it empty if cross
5569 compiling.
5570
af2f25a1
RM
55712007-09-07 Samuel Thibault <samuel.thibault@ens-lyon.org>
5572
5573 * sysdeps/mach/hurd/bits/ioctls.h (TAB3): New macro.
5574
94733ae0
RM
55752007-09-05 Roland McGrath <roland@redhat.com>
5576
5577 * manual/signal.texi (Signaling Another Process): Typo fix.
5578 From Karl Berry <karl@freefriends.org>.
5579
de4d8563
UD
55802007-08-29 Ulrich Drepper <drepper@redhat.com>
5581
5582 * sysdeps/unix/sysv/linux/check_pf.c (IFA_F_OPTIMISTIC): Define to
5583 zero if not defined.
5584 (make_request): Recognize optimistic addresses and treat them like
5585 deprecated addresses.
5586 Reported by Neil Horman <nhorman@redhat.com>.
5587
0adfcc05
UD
55882007-08-28 Ulrich Drepper <drepper@redhat.com>
5589
f3c54060
UD
5590 * nscd/connections.c (send_ro_fd): Also transfer file size.
5591 * nscd/nscd_helper.c (get_mapping): If nscd also transfers the
5592 file size don't call fstat.
5593
0adfcc05
UD
5594 * nscd/nscd_helper.c (get_mapping): Avoid the pread call, just go
5595 ahead and map the file. This should always be correct and we can
5596 catch problems later.
5597
3586b2b6
UD
55982007-08-28 Jakub Jelinek <jakub@redhat.com>
5599
5600 * libio/bits/stdio2.h (__fread_chk, __fread_unlocked_chk): New
5601 prototypes.
5602 (__fread_alias, __fread_unlocked_alias): New aliases.
5603 (fread): New extern inline.
5604 (fread_unlocked): Likewise. Undef macro before definition of
5605 the inline function.
5606 * debug/Makefile (routines): Add fread_chk and fread_u_chk.
5607 (CFLAGS-fread_chk.c, CFLAGS-fread_u_chk.c): Add.
5608 * debug/Versions (libc): Export __fread_chk@@GLIBC_2.7
5609 and __fread_unlocked_chk@@GLIBC_2.7.
5610 * debug/fread_chk.c: New file.
5611 * debug/fread_u_chk.c: New file.
5612 * debug/tst-chk1.c (do_test): Add fread and fread_unlocked tests.
5613
3704aa0b
RM
56142007-08-27 Jakub Jelinek <jakub@redhat.com>
5615
5616 * sysdeps/unix/sysv/linux/syscalls.list
5617 (personality): Change caller to EXTRA.
5618
80e7d6a6
UD
56192007-08-25 Ulrich Drepper <drepper@redhat.com>
5620
278bfa00
UD
5621 * iconvdata/iso-2022-kr.c (BODY): Fake initialization of array buf
5622 to keep gcc quiet.
5623 * iconvdata/iso-2022-cn.c (BODY): Likewise.
5624
a45d733c
UD
5625 * locale/programs/ld-collate.c (collate_output): Avoid warning if
5626 NDEBUG is defined.
5627
5dfeae0e
UD
5628 * Makerules: Use -p option with mkdir.
5629
8f1fe057
UD
5630 * sunrpc/key_prot.c (xdr_unixcred): Work around gcc alias warning.
5631 * nis/nis_xdr.c (_xdr_nis_server): Likewise.
bd0dcd28
UD
5632 (_xdr_directory_obj): Likewise.
5633 (xdr_entry_obj): Likewise.
5634 (xdr_group_obj): Likewise.
5635 (xdr_link_obj): Likewise.
5636 (xdr_table_obj): Likewise.
5637 (_xdr_nis_result): Likewise.
5638 (_xdr_ns_request): Likewise.
5639 (_xdr_ib_request): Likewise.
5640 (_xdr_nis_taglist): Likewise.
5641 (xdr_cback_data): Likewise.
8f1fe057 5642 * nis/yp_xdr.c (xdr_ypmaplist): Likewise.
bd0dcd28
UD
5643 (xdr_ypresp_maplist): Likewise.
5644
01339a67
UD
5645 * stdio-common/Makefile: Avoid format string warning for tst-sprint.
5646
3fa10468
UD
5647 * posix/regex_internal.h: Prevent some declarations and definitions
5648 to be seen when used in tests.
5649
ec1e04de
UD
5650 * posix/tst-rfc3484.c (__idna_to_unicode_lzlz): Initialize *OUTPUT.
5651 * posix/tst-rfc3484-2.c (__idna_to_unicode_lzlz): Likewise.
5652
7a344d1d
UD
5653 * debug/Makefile: Disable format checking when compiling tst-chk?.c.
5654
f8f6ff5d
UD
5655 * config.make.in (datarootdir): Add to shut up configure.
5656
76fca9f1
UD
5657 * sysdeps/x86_64/cacheinfo.c (handle_amd): Fix computation of
5658 associativity for fully-associative caches.
5659
80e7d6a6
UD
5660 * sysdeps/x86_64/cacheinfo.c (handle_amd): Handle L3 cache
5661 requests. Fill on more associativity values for L2.
5662 Patch mostly by Evandro Menezes.
5663
cb5ba304
UD
56642007-08-24 Ulrich Drepper <drepper@redhat.com>
5665
d250df8c
UD
5666 * sysdeps/unix/sysv/linux/x86_64/init-first.c
5667 (_libc_vdso_platform_setup): Avoid using exported variable by using
5668 alias.
5669
88f61aaf
UD
5670 * resolv/arpa/nameser.h (NS_OPT_DNSSEC_OK): Define.
5671
cb5ba304 5672 * sysdeps/unix/sysv/linux/i386/syscalls.list: No reason to mark
cb104bd7 5673 fallocate64 as EXTRA. It is not referenced if the symbol isn't
cb5ba304
UD
5674 defined.
5675
62e1b1f5
UD
56762007-08-23 Ulrich Drepper <drepper@redhat.com>
5677
44b2e581
UD
5678 * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Correctly
5679 align stack for call if pltexit is to be used.
5680
73e3ff07
UD
5681 [BZ #3924]
5682 * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Correctly
5683 align for function call in case pltexit has to be called later.
5684
62e1b1f5
UD
5685 * sysdeps/i386/dl-trampoline.S (_dl_runtime_resolve): Avoid
5686 implicit atomic operation when storing function pointer.
5687 (_dl_runtime_profile): Likewise.
5688
0008163a
UD
56892007-08-17 Jakub Jelinek <jakub@redhat.com>
5690
5691 * nis/nis_table.c (nis_list): Don't fail if __follow_path returned
5692 NIS_NOTFOUND.
5693
55ea8790
UD
56942007-08-21 Ulrich Drepper <drepper@redhat.com>
5695
2e0e1a05
UD
5696 [BZ #4566]
5697 * string/strtok.c: Fix typo in comment.
5698
682e4437
UD
5699 [BZ #4582]
5700 * debug/segfault.c: Fix typos in comments.
5701
7d55c9eb
UD
5702 [BZ #4588]
5703 * stdio-common/tempnam.c: Fix comment, it is not checked that
5704 TMPDIR points to a writable directory.
5705
0f8f993c
UD
5706 [BZ #4726]
5707 * resolv/res_send.c (__libc_res_nsend): Initialize all of the
5708 memory allocated for the name server address.
5709
1465dd0f
UD
5710 [BZ #4946]
5711 * nscd/connections.c (handle_request): Using sendfile always
5712 requires that mmap is used for the database.
5713 Patch by Petr Baudis <pasky@suse.cz>.
5714
c44d3bdf
UD
5715 [BZ #4905]
5716 * nscd/hstcache.c (cache_addhst): When reloading an entry which
5717 suddenly has two or more addresses, ignore it and remove the old
5718 entry.
5719
1ce7d80d
UD
5720 [BZ #4814]
5721 * resolv/res_hconf.c: Prepare for compiling outside libc.
5722 * nscd/res_hconf.c: New file.
5723 * nscd/Makefile (nscd-modules): Add res_hconf. Add rules to build
5724 the new file.
5725 * nscd/gethstbynm2_r.c (NEED__RES_HCONF): Define.
5726 * nscd/gethstbyad_r.c (NEED__RES_HCONF): Likewise.
5727
a30d41c1
UD
5728 * nscd/hstcache.c (cache_addhst): Minimal optimization.
5729
45dc3ad7
UD
5730 [BZ #4925]
5731 * debug/pcprofiledump.c: Turn on internationalization by calling
5732 setlocale. Patch mostly by Benno Schulenberg.
5733
55ea8790
UD
5734 [BZ #4936]
5735 * iconv/gconv.c (__gconv): If flush was successful, clear rest of
5736 the state.
5737 * iconvdata/Makefile: Add rules to build and run bug-iconv5.
5738 * iconvdata/bug-iconv5.c: New file.
5739
0b82ff74
UD
57402007-08-04 Carlos O'Donell <carlos@systemhalted.org>
5741
55ea8790 5742 [BZ #4896]
0b82ff74
UD
5743 * elf/elf.h: Define R_PARISC_PLABEL21L, R_PARISC_PLABEL14R,
5744 R_PARISC_GNU_VTENTRY, R_PARISC_GNU_VTINHERIT, R_PARISC_TLS_GD21L,
5745 R_PARISC_TLS_GD14R, R_PARISC_TLS_GDCALL, R_PARISC_TLS_LDM21L,
5746 R_PARISC_TLS_LDM14R, R_PARISC_TLS_LDMCALL, R_PARISC_TLS_LDO21L,
5747 R_PARISC_TLS_LDO14R, R_PARISC_TLS_DTPMOD32, R_PARISC_TLS_DTPMOD64,
5748 R_PARISC_TLS_DTPOFF32, R_PARISC_TLS_DTPOFF64, R_PARISC_TLS_LE21L,
5749 R_PARISC_TLS_LE14R, R_PARISC_TLS_IE21L, R_PARISC_TLS_IE14R,
5750 R_PARISC_TLS_TPREL32, R_PARISC_TLS_TPREL64.
5751
ee16a55a
UD
57522007-08-21 Ulrich Drepper <drepper@redhat.com>
5753
5754 [BZ #4937]
5755 * elf/do-lookup.h (do_lookup_x): Minimal improvement in hash
5756 lookup loop. Suggested by John Reiser.
5757
b211fe0f
JJ
57582007-08-21 Jakub Jelinek <jakub@redhat.com>
5759
5760 * sysdeps/unix/sysv/linux/alpha/sysdep.h: Include tls.h.
5761
fb84593c
UD
57622007-08-20 Ulrich Drepper <drepper@redhat.com>
5763
5764 * csu/libc-start.c: Don't handle VDSO_SETUP here.
5765 * sysdeps/unix/sysv/linux/init-first.c: Handle it here instead.
5766 * sysdeps/unix/sysv/linux/x86_64/libc-start.c: Renamed to...
5767 * sysdeps/unix/sysv/linux/x86_64/init-first.c: ...this. New file.
5768 * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Move VDSO_SETUP code
5769 to...
5770 * sysdeps/unix/sysv/linux/x86_64/init-first.c: ...here. New file.
5771
b83fb35c
UD
57722007-08-18 Ulrich Drepper <drepper@redhat.com>
5773
5774 * po/nl.po: Update from translation team.
5775
20806a70
AJ
57762007-08-16 Andreas Jaeger <aj@suse.de>
5777
5778 * locale/localeinfo.h: Make _nl_category_name_idxs extern.
f00d47a3 5779 Reported by Peter Festner <peter.festner@ewetel.net>.
20806a70 5780
42282d57
JJ
57812007-08-17 Jakub Jelinek <jakub@redhat.com>
5782
5783 * login/tst-grantpt.c (test_einval): Add 3rd argument to open.
5784
8a501135
JJ
57852007-08-16 Jakub Jelinek <jakub@redhat.com>
5786
cb84d1e4
JJ
5787 * elf/Makefile ($(objpfx)ld.so): Use readelf -s and awk instead of nm -u
5788 to check for undefined symbols.
5789
91ddd9c4
JJ
5790 * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__clone):
5791 If the syscall fails, set errno to the actual returned error number
5792 rather than EINVAL.
5793 * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__clone): If
5794 arguments are incorrect, set errno to EINVAL, if the syscall
5795 fails, set errno to the actual returned error number.
5796
18915760
JJ
5797 * stdlib/bits/stdlib-ldbl.h (__strtold_internal): Remove.
5798 * wcsmbs/bits/wchar-ldbl.h (__wcstold_internal): Remove.
5799
8a501135
JJ
5800 * sysdeps/sparc/sparc32/sparcv9b/memcpy.S: Moved to...
5801 * sysdeps/sparc/sparc32/sparcv9/sparcv9b/memcpy.S: ... here. New
5802 file.
5803 (ASI_PNF, ASI_BLK_P): Don't define.
5804 * sysdeps/sparc/sparc32/sparcv9v/memcpy.S: Moved to...
5805 * sysdeps/sparc/sparc32/sparcv9/sparcv9v/memcpy.S: ... here. New
5806 file.
5807 * sysdeps/sparc/sparc32/sparcv9v/memset.S: Moved to...
5808 * sysdeps/sparc/sparc32/sparcv9/sparcv9v/memset.S: ... here. New
5809 file.
5810
e4720b0e
JJ
58112007-08-15 Jakub Jelinek <jakub@redhat.com>
5812
5813 * sysdeps/sparc/fpu/fraiseexcpt.c (__feraiseexcept): Fix raising
5814 FE_UNDERFLOW on Niagara CPUs.
5815
5816 * sysdeps/sparc/fpu/feholdexcpt.c (feholdexcept): Clear all
5817 exceptions.
5818
702a9414
JJ
58192007-08-14 Jakub Jelinek <jakub@redhat.com>
5820
467d1345
JJ
5821 * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_runtime_setup): No
5822 need to check GLRO(dl_hwcap) & HWCAP_SPARC_FLUSH on sparcv9.
5823 (sparc_fixup_plt): Add do_flush argument instead of figuring whether
5824 flush should be used or not inside of the function.
5825 (elf_machine_fixup_plt, elf_machine_rela): Adjust caller.
5826
5827 * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__clone,
5828 __thread_start): Use HIDDEN_JUMPTARGET.
5829 * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__clone,
5830 __thread_start): Likewise.
5831 * sysdeps/unix/sysv/linux/sparc/sysdep.h (JUMPTARGET): Define.
5832
702a9414
JJ
5833 * sysdeps/ieee754/ldbl-64-128/strtold_l.c (__STRTOF): Declare.
5834 Add libc_hidden_proto.
5835 (STRTOF): Add libc_hidden_proto.
5836 (___new_strtold_l, ___new_wcstold_l): New weak aliases.
5837 (strtold_l, wcstold_l): Use them as second argument for
5838 long_double_symbol.
5839
c6c8f0ec
UD
58402007-08-14 Ulrich Drepper <drepper@redhat.com>
5841
5842 * elf/dl-misc.c: Undo last change. The kernel won't allow it.
5843
5e88abf9
UD
58442007-08-13 Kaz Kojima <kkojima@rr.iij4u.or.jp>
5845
5846 * stdlib/strtold_l.c: Include wchar.h if needed. Add libc_hidden_def.
5847
fc4819b0
UD
58482007-08-14 Ulrich Drepper <drepper@redhat.com>
5849
5850 * po/bg.po: New file. From the translation team.
5851
22502ea2
UD
58522007-08-13 Jakub Jelinek <jakub@redhat.com>
5853
5854 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_PSELECT,
5855 __ASSUME_PPOLL, __ASSUME_ATFCTS, __ASSUME_SET_ROBUST_LIST,
5856 __ASSUME_UTIMENSAT, __ASSUME_FALLOCATE): Update per-arch conditions
5857 when each feature was introduced.
5858
5859 * sysdeps/unix/sysv/linux/dl-vdso.c: Don't include dl-hash.h.
5860 * sysdeps/unix/sysv/linux/dl-vdso.h: Don't include dl-hash.h if NDEBUG.
5861 (CHECK_HASH): New macro.
5862 (PREPARE_VERSION): Use it.
5863
5864 * sysdeps/unix/sysv/linux/pselect.c (__generic_pselect): Only provide
5865 prototype if not __ASSUME_PSELECT.
5866 * sysdeps/unix/sysv/linux/ppoll.c (__generic_ppoll): Only provide
5867 prototype if not __ASSUME_PPOLL.
5868
5869 * sysdeps/unix/sysv/linux/dl-osinfo.h (ROUND): #undef after use.
5870
5871 * sysdeps/unix/clock_settime.c (freq, __pthread_clock_settime,
5872 hp_timing_settime): Don't define or declare if HANDLED_CPUTIME
5873 is defined.
5874
9c6f6953
UD
58752007-08-13 Ulrich Drepper <drepper@redhat.com>
5876
5877 * sysdeps/unix/sysv/linux/x86_64/libc-start.c
5878 (_libc_vdso_platform_setup): If vDSO is not available point
5879 __vdso_gettimeofday to the vsyscall.
5880 * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S [SHARED]: Use
5881 __vdso_gettimeofday instead of vsyscall.
5882
f8de5057
UD
58832007-08-13 Jakub Jelinek <jakub@redhat.com>
5884
5885 * nscd/servicescache.c: Include kernel-features.h.
5886 * nscd/gai.c: Likewise.
5887 * sysdeps/unix/sysv/linux/statfs64.c: Likewise.
5888 * sysdeps/unix/sysv/linux/fstatfs64.c: Likewise.
5889 * sysdeps/unix/sysv/linux/fxstatat.c: Likewise.
5890 * sysdeps/unix/sysv/linux/s390/s390-32/mmap.S: Likewise.
5891 * sysdeps/unix/sysv/linux/s390/s390-32/mmap64.S: Likewise.
5892 * sysdeps/unix/sysv/linux/xstatconv.c: Likewise.
5893 * sysdeps/unix/sysv/linux/if_index.c: Likewise.
5894 * sysdeps/unix/sysv/linux/sparc/sparc64/xstat.c: Likewise.
5895 * sysdeps/unix/sysv/linux/ifaddrs.c: Likewise.
5896
3c87d79d
UD
58972007-08-12 Ulrich Drepper <drepper@redhat.com>
5898
ea37207a
UD
5899 * elf/dl-dst.h: No need for _dl_dst_count, _dl_dst_substitute,
5900 and _dl_get_origin defines anymore.
5901
4eb375fe
UD
5902 * sysdeps/unix/sysv/linux/clock_gettime.c (maybe_syscall_gettime_cpu):
5903 Build fix for systems which might lack POSIX timer support.
5904
3c87d79d
UD
5905 * sysdeps/unix/sysv/linux/x86_64/libc-start.c
5906 (_libc_vdso_platform_setup): Mangle function pointers before storing
5907 them.
5908 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INLINE_VSYSCALL):
5909 Demangle vdso pointer before use.
5910 (INTERNAL_VSYSCALL): Likewise.
5911
5912 * elf/cache.c (primes): Mark as const.
5913 Noted by Roland McGrath.
5914
27d9ffda
UD
59152007-08-01 Andreas Jaeger <aj@suse.de>
5916 Jakub Jelinek <jakub@redhat.com>
5917
5918 * elf/ldconfig.c (opt_ignore_aux_cache): Add new option.
5919 (options): Add option.
5920 (parse_opt): Handle option.
5921 (manual_link): Adjust process_file caller. Call implicit_soname.
5922 (search_dir): Formatting. Use and populate auxiliary cache.
5923 (main): Load and save auxiliary cache.
5924 * elf/readlib.c (process_file): Add stat_buf argument. Pass struct
5925 stat64 from fstat64 to caller.
5926 (implicit_soname): New function.
5927 * elf/readelflib.c (process_elf_file): If DT_SONAME is not present,
5928 leave *soname as NULL.
5929 * elf/cache.c: Include libgen.h.
5930 (print_entry, print_cache, compare, save_cache, add_to_cache):
5931 Formatting and cleanups.
5932 (aux_cache_entry_id, aux_cache_entry, aux_cache_file_entry,
5933 aux_cache_file): New structures.
5934 (AUX_CACHEMAGIC): Define.
5935 (primes): New array.
5936 (aux_hash_size, aux_hash): New variables.
5937 (aux_cache_entry_id_hash, nextprime, init_aux_cache,
5938 search_aux_cache, insert_to_aux_cache, add_to_aux_cache,
5939 load_aux_cache, save_aux_cache): New functions.
5940 * sysdeps/generic/ldconfig.h (_PATH_LDCONFIG_AUX_CACHE): Define.
5941 (init_aux_cache, search_aux_cache, add_to_aux_cache,
5942 load_aux_cache, save_aux_cache, implicit_soname): New prototypes.
5943 (process_file): Adjust prototype.
5944
8d944b0f
UD
59452007-08-12 Jakub Jelinek <jakub@redhat.com>
5946
5947 * sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h: Include stddef.h
5948 with __need_size_t.
5949
75fb247e
UD
59502007-08-12 Ulrich Drepper <drepper@redhat.com>
5951
fb86328a
UD
5952 * sysdeps/unix/sysv/linux/dl-vdso.c (_dl_vdso_vsym): Expect
5953 r_found_version structure as second parameter.
5954 * sysdeps/unix/sysv/linux/dl-vdso.h (PREPARE_VERSION): Define.
5955 (_dl_vdso_vsym): Change type of second parameter accordingly.
5956 * sysdeps/unix/sysv/linux/x86-64/libc-start.c
5957 (_libc_vdso_platform_setup): Adjust.
974a1f0f 5958 * sysdeps/unix/sysv/linux/powerpc/libc-start.c
fb86328a
UD
5959 (_libc_vdso_platform_setup): Likewise.
5960
75fb247e
UD
5961 * sysdeps/unix/sysv/linux/powerpc/dl-vdso.c: Move to...
5962 * sysdeps/unix/sysv/linux/dl-vdso.c: ...here.
5963 * sysdeps/unix/sysv/linux/powerpc/dl-vdso.h: Move to...
5964 * sysdeps/unix/sysv/linux/dl-vdso.h: ...here.
5965 * csu/libc-start.c: Pretty printing.
5966 Use VDSO_SETUP if defined.
5967 * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Define VDSO_SETUP
5968 and let generic code call into _libc_vdso_platform_setup.
5969 * sysdeps/unix/sysv/linux/x86_64/libc-start.c: New file.
5970 * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: New file.
5971 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Pretty printing.
5972 Define INLINE_VSYSCALL and INTERNAL_VSYSCALL.
5973 * sysdeps/unix/sysv/linux/x86_64/Versions: Export __vdso_clock_gettime
5974 for GLIBC_PRIVATE.
5975 * sysdeps/unix/sysv/linux/x86_64/Makefile [subdir=elf]
5976 (sysdep_rountines): Add dl-vdso.
5977
5978 * sysdeps/unix/sysv/linux/powerpc/Makefile: Use sysdep_routines instead
5979 of routines.
5980
5981 * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h: Add
5982 attribute_hidden to __vdso_gettimeofday prototype.
5983
9229b83e
RM
59842007-08-12 Roland McGrath <roland@redhat.com>
5985
5986 * manual/stdio.texi (Variable Arguments Output): Fix xref to gcc manual.
5987 From: Karl Berry <karl@freefriends.org>.
5988
4503061f
UD
59892007-08-11 Ulrich Drepper <drepper@redhat.com>
5990
5991 * elf/dl-misc.c (_dl_sysdep_read_whole_file): We really don't need
5992 an atime update for the files we read.
5993
d7e23b02
UD
59942007-08-10 Ulrich Drepper <drepper@redhat.com>
5995
7cf89e95
UD
5996 * shadow/lckpwdf.c (__lckpwdf): Use O_CLOEXEC if possible.
5997
9d169bb3 5998 * nscd/connections.c: Use O_CLOEXEC if possible. Use mkostemp
d7e23b02
UD
5999 instead of mkstemp.
6000
6001 * misc/Makefile (routines): Add mkostemp and mkostemp64.
6002 * misc/Versions: Export mkostemp and mkostemp64 for GLIBC_2.7.
6003 * misc/mkostemp.c: New file.
6004 * misc/mkostemp64.c: New file.
6005 * stdlib/stdlib.h: Declare the new functions.
6006 * sysdeps/posix/tempname.c: Add new parameter which is added to
6007 the flags for open. Remove __GT_BIGFILE handling.
6008 * stdio-common/tempname.c: Likewise.
6009 * include/stdio.h: Adjust __gen_tempname prototype.
6010 Renumber __GT_* constants.
6011 * libio/oldtmpfile.c: Adjust for __gen_tempname interface change.
6012 * misc/mkdtemp.c: Likewise.
6013 * misc/mkstemp.c: Likewise.
6014 * misc/mkstemp64.c: Likewise.
6015 * misc/mktemp.c: Likewise.
6016 * stdio-common/tempnam.c: Likewise.
6017 * stdio-common/tmpfile.c: Likewise.
6018 * stdio-common/tmpfile64.c: Likewise.
6019 * stdio-common/tmpnam.c: Likewise.
6020 * stdio-common/tmpnam_r.c: Likewise.
6021
22532966
RM
60222007-08-10 Roland McGrath <roland@frob.com>
6023
6024 * sysdeps/mach/hurd/bits/ioctls.h (NLDLY, TABDLY, BSDLY, VTDLY):
6025 New macros.
6026 (NLDELAY, CRDELAY, TBDELAY, BSDELAY, VTDELAY): Define to those.
6027 Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>.
6028
673876e6
UD
60292007-08-10 Ulrich Drepper <drepper@redhat.com>
6030
aa132749
UD
6031 * nss/nss_files/files-XXX.c (internal_setent): Use O_CLOEXEC if
6032 possible.
6033 * nss/nss_files/files-alias.c (internal_setent): Likewise.
6034 * nss/Makefile (libnss_files-routines): Add files-have_o_cloexec.
6035 * nss/nss_files/files-have_o_cloexec.c: New file.
6036
22532966 6037 * sysdeps/unix/sysv/linux/shm_open.c (shm_open): Use O_CLOEXEC if
673876e6
UD
6038 available.
6039
1e286653
JJ
60402007-08-10 Jakub Jelinek <jakub@redhat.com>
6041
6042 * sysdeps/ieee754/ldbl-128ibm/strtold_l.c (___new_strtold_l,
6043 ___new_wcstold_l): New weak aliases.
6044 (strtold_l, wcstold_l): Use them as second argument for
6045 long_double_symbol.
6046
f07f72f3
UD
60472007-08-09 Ulrich Drepper <drepper@redhat.com>
6048
6479496a
UD
6049 * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Use correct
6050 register in test for error.
6051
c4adefbd
UD
6052 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_CLOEXEC): Define.
6053 * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h (O_CLOEXEC): Likewise.
6054
f07f72f3
UD
6055 * po/sv.po: Update from translation team.
6056
eef38c28
RM
60572007-08-06 Roland McGrath <roland@redhat.com>
6058
773e305e
RM
6059 * include/stdlib.h: Add libc_hidden_proto for strto*, __strto*_l.
6060 Remove __strto*_l inlines.
6061 * include/wchar.h: Add libc_hidden_proto for wcsto*, __wcsto*_l.
6062 * stdlib/strtod.c: Add libc_hidden_def.
6063 * stdlib/strtod_l.c: Likewise.
6064 * stdlib/strtold.c [__LONG_DOUBLE_MATH_OPTIONAL]: Add libc_hidden_proto
6065 for __new_strtold and __new_wcstold.
6066 * sysdeps/ieee754/ldbl-128ibm/strtold_l.c: Add libc_hidden_proto for
6067 __STRTOF, STRTOF.
6068 * stdlib/strtol.c: Add libc_hidden_def.
6069 * stdlib/strtol_l.c: Likewise.
6070 * sysdeps/wordsize-64/strtol.c: Add libc_hidden_ver for strtoll and
6071 strtoq.
6072
6073 * scripts/data/localplt-powerpc-linux-gnu.data: New file.
6074
6075 * scripts/data/localplt-x86_64-linux-gnu.data: File renamed to ...
6076 * scripts/data/localplt-generic.data: ... here.
6077 * elf/Makefile (check-data): Get generic file if no other.
6078 ($(objpfx)check-localplt.out): Make target unconditional.
6079
eef38c28
RM
6080 * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_discover_osversion):
6081 Use ElfW(Nhdr).
6082
742df3a4
UD
60832007-08-05 Ulrich Drepper <drepper@redhat.com>
6084
6085 * po/zh_CN.po: Updated translation from translation team.
6086
0470fa46
JJ
60872007-08-05 Jakub Jelinek <jakub@redhat.com>
6088
6089 * sysdeps/unix/sysv/linux/powerpc/powerpc32/socket.S (__socket):
6090 Don't use CGOTSETUP and CGOTRESTORE macros.
6091
b5075bdc
RM
60922007-08-04 Roland McGrath <roland@redhat.com>
6093
6094 * posix/Makefile ($(objpfx)getconf.speclist): Fix typo.
6095
9accc268
JJ
60962007-08-04 Jakub Jelinek <jakub@redhat.com>
6097
6098 * io/bits/fcntl2.h (open, open64, openat, openat64): Add
6099 __extension__ around the whole statement expression.
6100
220ae3ef
UD
61012007-08-04 Ulrich Drepper <drepper@redhat.com>
6102
c8ccd8e3
UD
6103 * sysdeps/unix/opendir.c (__alloc_dir): Correct order of DIR
6104 elements during initialization.
6105
220ae3ef
UD
6106 * po/pl.po: Updated translation from translation team.
6107 * po/tr.po: Likewise.
11960f7f 6108 * po/nl.po: Likewise.
220ae3ef 6109
2fb20667
UD
61102007-08-03 Ulrich Drepper <drepper@redhat.com>
6111
6112 * rt/aio.h: Add __nonnull attributes.
6113
ce31a3b1
UD
61142007-08-03 Jakub Jelinek <jakub@redhat.com>
6115
64f6281c
UD
6116 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Properly handle -0.
6117 * stdlib/Makefile (tests): Add tst-strtod5.
6118 (tst-strtod5-ENV): New.
6119 * stdlib/tst-strtod5.c: New file.
6120
ce31a3b1
UD
6121 * intl/dcigettext.c (_nl_find_msg): Free encoding if __gconv_open
6122 failed.
6123 * intl/finddomain.c (_nl_find_domain): Free normalized_codeset
6124 on failure.
6125
6126 * elf/dl-load.c (decompose_rpath): Free copy if result couldn't be
6127 allocated.
6128
754980e4
JJ
61292007-08-03 Jakub Jelinek <jakub@redhat.com>
6130
6131 * rt/mqueue.h (mq_timedreceive, mq_timedsend): Fix nonnull argument
6132 numbers.
6133
497af0cb
UD
61342007-08-02 Ulrich Drepper <drepper@redhat.com>
6135
cbf0489b
UD
6136 * io/Makefile (aux): Add have_o_cloexec.
6137 * include/fcntl.h: Declare __have_o_cloexec.
6138 * io/have_o_cloexec.c: New file.
6139 * sysdeps/unix/opendir.c (__opendir): Use O_CLOEXEC is available.
6140 (__alloc_dir): If O_CLOEXEC has been used, don't duplicate the
6141 fcntl call if not necessary.
6142 * login/utmp_file.c (setutent_file): Use __have_o_cloexec instead
6143 of local variable.
6144
fa39685d
UD
6145 * sysdeps/unix/opendir.c (__alloc_dir): Don't initialize ->data.
6146 Avoid memset, add explicit initialization.
6147 * sysdeps/unix/dirstream.h (struct __dirstream): Move data elemtn
6148 to the end and change into zero-sized array.
6149 Move lock member to fill a hole on 64-bit platforms.
9b2e9577
UD
6150
6151 * stdlib/stdlib.h: Remove __strto*_internal prototypes and strto*
6152 inline functions.
6153 * include/stdlib.h: Add __strto*_internal prototypes here.
6154 * wcsmbs/wchar.h: Remove __wcsto*_internal prototypes and wcsto*
6155 inline functions.
6156 * include/wchar.h: Add __wcsto*_internal prototypes.
6157 * sysdeps/generic/inttypes.h: No need to protect the declaration
6158 of the __strto*_internal and __wcsto*_internal members here.
6159
497af0cb
UD
6160 * rt/mqueue.h: Change const to __const and add nonnull attributes.
6161
d17a8cf0
RM
61622007-08-02 Roland McGrath <roland@redhat.com>
6163
6164 * posix/Makefile ($(inst_libexecdir)/getconf): Make hard links to
6165 $(inst_bindir)/getconf if possible.
6166
6167 * posix/Makefile ($(objpfx)getconf.speclist): New target.
6168 (generated): Add it.
6169 ($(inst_libexecdir)/getconf): Use it.
6170
0abf17de
UD
61712007-08-01 Ulrich Drepper <drepper@redhat.com>
6172
6173 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Using
6174 /proc is faster and sufficient. /sys is still needed for
6175 __get_nprocs_conf.
6176
5e0923ab
UD
61772007-08-01 Jakub Jelinek <jakub@redhat.com>
6178
6179 * sysdeps/unix/sysv/linux/i386/syscalls.list (fallocate): Add fallocate
6180 syscall as __fallocate64.
6181 * sysdeps/unix/sysv/linux/i386/posix_fallocate.c: New file.
6182 * sysdeps/unix/sysv/linux/i386/posix_fallocate64.c: New file.
6183
1475e201
UD
61842007-07-30 Jakub Jelinek <jakub@redhat.com>
6185
6186 * stdlib/tst-strtod2.c (do_test): Use %tu in fmt string for ptrdiff_t
6187 value.
6188
6189 * stdio-common/tst-fmemopen2.c (do_test): Avoid fmt string warning
6190 if off_t is different rank from size_t.
6191
6192 * sysdeps/generic/unwind-dw2.c (extract_cie_info, execute_cfa_program,
6193 uw_frame_state_for): Avoid type punning warnings.
6194 * sysdeps/generic/unwind-dw2-fde-glibc.c
6195 (_Unwind_IteratePhdrCallback): Likewise.
6196 * sysdeps/generic/unwind-dw2-fde.c (_Unwind_Find_FDE): Likewise.
6197 (binary_search_single_encoding_fdes, binary_search_mixed_encoding_fdes,
6198 get_cie_encoding, linear_search_fdes): Don't mix char and unsigned char
6199 pointers.
6200
e076bece
UD
62012007-07-31 Ulrich Drepper <drepper@redhat.com>
6202
9506149a
UD
6203 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs_conf): Count
6204 total processors using sysfs.
6205 (__get_nprocs): Use sysfs to determine which processors are online.
e076bece 6206
bbeaaa84
JJ
62072007-07-31 Jakub Jelinek <jakub@redhat.com>
6208
09881398
JJ
6209 * sysdeps/unix/sysv/linux/posix_fallocate.c (posix_fallocate): Fix
6210 syscall arguments count.
6211
bbeaaa84
JJ
6212 * stdio-common/tfformat.c (sprint_doubles): Add 12 new tests.
6213
087ef75f
RM
62142007-07-30 Roland McGrath <roland@redhat.com>
6215
6216 * manual/libc.texinfo: Update copyrights, formatting magic, and
6217 @dircategory. From Karl Berry <karl@freefriends.org>.
6218
44f08a6e
UD
62192007-07-29 Ulrich Drepper <drepper@redhat.com>
6220
eafaae72
UD
6221 [BZ #4860]
6222 * io/Makefile (headers): Add bits/fcntl2.h.
6223
c5705565
UD
6224 * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_ZERO_S): Optimize
6225 using gcc builtin.
6226 (__CPU_EQUAL_S): Likewise.
6227
44f08a6e
UD
6228 * posix/Makefile (routines): Add sched_cpualloc and sched_cpufree.
6229 (tests): Add tst-cpuset.
6230 * posix/sched_cpualloc.c: New file.
6231 * posix/sched_cpufree.c: New file.
6232 * posix/tst-cpuset.c: New file.
6233 * posix/Versions: Export __sched_cpualloc and __sched_cpufree for
6234 GLIBC_2.7.
6235 * sysdeps/unix/sysv/linux/bits/sched.h: Define __CPU_*_S macros.
6236 * posix/sched.h: Define old CPU_* macros in temers of __CPU_*_S
6237 macros. Define CPU_*_S macros.
6238
8f5e1400
UD
62392007-07-28 Ulrich Drepper <drepper@redhat.com>
6240
5b74caf6
UD
6241 * posix/getconf.c (vars): Add missing _SC_LEVEL4_CACHE_LINESIZE
6242 entry.
6243
a26d01bb 6244 [BZ #4858]
8f5e1400
UD
6245 * stdio-common/printf_fp.c (___printf_fp): Fix special case of
6246 #.0g and value rounded to 1.0.
6247 * stdio-common/tfformat.c (sprint_doubles): Add two new tests.
6248
085a4412
UD
62492007-07-26 Jakub Jelinek <jakub@redhat.com>
6250
cedb4109
UD
6251 * locale/programs/ld-monetary.c (monetary_finish): Avoid range check
6252 for int_frac_digits and frac_digits.
6253
6254 * login/logout.c (logout): Avoid aliasing violation.
6255 * login/logwtmp.c (logwtmp): Likewise.
6256
6257 * libio/genops.c (_IO_un_link): Avoid aliasing violation.
6258
9d9febc7
UD
6259 * nscd/selinux.c (preserve_capabilities): Initialize new_caps
6260 to avoid warning.
6261 * iconv/gconv_open.c (__gconv_open): Initialize ptr to avoid
6262 warning.
6263 * nis/nis_subr.c (nis_getnames): Initialize saveptr to avoid
6264 warning.
6265 * resolv/inet_ntop.c (inet_ntop6): Initialize best.len and cur.len
6266 to avoid warnings.
6267
701666b7
UD
6268 * nss/nsswitch.c (__nss_lookup_function): Don't cast &ni->known to
6269 void **.
6270 * nss/nsswitch.h (service_user): Use void * type for KNOWN field.
6271
6272 * nss/nss_files/files-hosts.c (LINE_PARSER): Cast host_addr to
6273 char * to avoid warning.
6274 * nis/nss_nis/nis-hosts.c (LINE_PARSER): Likewise.
6275
6276 * timezone/Makefile (CFLAGS-zdump.c): Add -fwrapv.
6277
6278 * locale/programs/ld-ctype.c (ctype_finish, set_class_defaults,
6279 allocate_arrays): Cast second argument to charmap_find_symbol
6280 to char * to avoid warnings.
6281
6282 * locale/programs/repertoire.c (repertoire_new_char): Change
6283 from_nr, to_nr and cnt to unsigned long, adjust printf format
6284 string.
6285
6286 * locale/programs/ld-collate.c (insert_value, handle_ellipsis):
6287 Cast second argument to new_element to char * to avoid warnings.
6288
6289 * locale/weightwc.h (findidx): Cast &extra[-i] to const int32_t *.
6290
6291 * intl/gettextP.h (struct loaded_domain): Change plural to const
6292 struct expression *.
6293 * intl/plural-eval.c (plural_eval): Change first argument to
6294 const struct expression *.
6295 * intl/plural-exp.c (EXTRACT_PLURAL_EXPRESSION): Change first
6296 argument to const struct expression **.
6297 * intl/plural-exp.h (EXTRACT_PLURAL_EXPRESSION, plural_eval): Adjust
6298 prototypes.
6299 * intl/loadmsgcat (_nl_unload_domain): Cast away const
6300 in call to __gettext_free_exp.
6301
6302 * posix/fnmatch.c (fnmatch): Rearrange code to avoid maybe
6303 unitialized wstring/wpattern var warnings.
6304
6305 * posix/runtests.c (struct a_test): Make data field const char *.
6306
6307 * stdio-common/tst-sprintf2.c (main): Don't declere u, v and buf
6308 vars if not LDBL_MANT_DIG >= 106.
6309
6310 * stdio-common/Makefile (CFLAGS-vfwprintf.c): Add -Wno-unitialized.
6311
6312 * stdio-common/vfprintf.c (vfprintf): Cast first arugment to
6313 __find_specmb to avoid warning.
6314
6315 * rt/tst-mqueue1.c (do_one_test): Add casts to avoid warnings.
6316
6317 * debug/test-strcpy_chk.c (do_tests, do_random_tests): Add casts
6318 to avoid warnings.
6319
6320 * sysdeps/ieee754/ldbl-96/s_roundl.c (huge): Add L suffix to
6321 initializer.
6322
6323 * sysdeps/unix/clock_gettime.c (clock_gettime): Only define
6324 tv var when it will be actually used.
6325
6326 * sunrpc/rpc_cmsg.c (xdr_callmsg): Cast IXDR_PUT_* to void
6327 to avoid warnings.
6328
085a4412
UD
6329 * iconvdata/gbk.c (BODY): Make buf and cp char instead of unsigned
6330 char array resp. pointer.
6331 * iconvdata/iso-2022-kr.c (BODY): Make buf unsigned char instead of
6332 char array.
6333 * iconvdata/cns11643.h (cns11643_to_ucs4): Change first argument
6334 to const unsigned char **.
6335 (ucs4_to_cns11643): Change second argument to unsigned char *.
6336 * iconvdata/euc-tw.c (BODY): Change endp type to
6337 const unsigned char *.
6338 * iconvdata/iso-ir-165.h (ucs4_to_isoir165): Change second argument
6339 to unsigned char *.
6340 * iconvdata/ibm1008_420.c (LOOP_NEED_FLAGS): Don't define.
6341 * iconvdata/iso-2022-cn.c (BODY): Change buf to unsigned char array.
6342 * iconvdata/iso-2022-cn-ext.c (BODY): Change buf, tmpbuf, tmp
6343 types to unsigned char pointers/arrays instead of char.
6344 * iconvdata/jis0201.h (ucs4_to_jisx0201): Change second argument
6345 to unsigned char *.
6346 * iconvdata/jis0208.h (ucs4_to_jisx0208): Likewise.
6347 * iconvdata/jis0212.h: Include assert.h.
6348 (ucs4_to_jisx0212): Change second argument to unsigned char *.
6349 assert that if cp[0] is not '\0', cp[1] is not '\0' either instead
6350 of trying to handle that.
6351 * iconvdata/euc-kr.c (euckr_from_ucs4): Initialize also cp[1] to
6352 shut up a warning.
6353 * iconvdata/euc-jp-ms.c (from_ucs4_lat1, from_ucs4_greek,
6354 from_ucs4_cjk, from_ucs4_cjkcpt, from_ucs4_extra): Change type to
6355 two dimensional const unsigned char arrays.
6356 (BODY): Cast "" to (const unsigned char *) for assignment to cp.
6357 Initialize endp to inptr to shut up a warning.
6358
fa69dc9c
UD
63592007-07-20 Jakub Jelinek <jakub@redhat.com>
6360
ae1ad762
UD
6361 [BZ #4772]
6362 * time/strptime_l.c (__strptime_internal): Silently ignore
6363 strftime modifiers and field width in recursive calls.
6364
fa69dc9c
UD
6365 * include/time.h (enum ptime_locale_status): Remove.
6366 (__strptime_internal): Remove decided and era_cnt arguments,
6367 add statep argument.
6368 * time/strptime_l.c (__strptime_internal): Remove decided
6369 and era_cnt arguments, add statep argument. Don't recompute
6370 any fields in recursive calls, only update caller's tm
6371 and state, if recursive call fails, don't change tm nor
6372 any state.
6373 (get_alt_number): Adjust.
6374 (recursive): Adjust caller.
6375 (strptime): Likewise.
6376 * time/strptime.c (strptime): Likewise.
6377
7b503bcc
UD
63782007-07-19 Jakub Jelinek <jakub@redhat.com>
6379
6380 * iconv/gconv_int.h (__GCONV_NULCONV): New internal only error code.
6381 * iconv/gconv_cache.c (__gconv_lookup_cache): Return __GCONV_NULCONV
6382 if from and to charsets are the same.
6383 * iconv/gconv_db.c (__gconv_find_transform): Likewise.
6384 * intl/dcigettext.c (_nl_find_msg): Return NULL even if __gconv_open
6385 returns __GCONV_NOCONV, but not for __GCONV_NULCONV.
6386
63872007-07-17 Jakub Jelinek <jakub@redhat.com>
6388
6389 * wcsmbs/wchar.h: Only define wint_t if __need_wint_t.
6390 Don't define wint_t when __need_mbstate_t unless it
6391 is necessary.
6392 (__mbstate_t): Use __WINT_TYPE__ rather than wint_t
6393 in the typedef if possible.
6394 * wctype/wctype.h (wint_t): Define by including
6395 wchar.h with __need_wint_t instead of including stddef.h
6396 with __need_wint_t and as fallback definining it ourselves.
6397 * iconv/gconv.h (__need_wint_t): Define before including
6398 wchar.h.
6399 * sysdeps/gnu/_G_config.h: Don't include gconv.h if not _LIBC
6400 or _GLIBCPP_USE_WCHAR_T.
6401 (__need_wchar_t): Don't define
6402 if not _LIBC or _GLIBCPP_USE_WCHAR_T.
6403 (__need_wint_t): Don't define before including stddef.h,
6404 define before including wchar.h only if _LIBC or
6405 _GLIBCPP_USE_WCHAR_T.
6406 (_G_iconv_t): Don't define if not _LIBC or _GLIBCPP_USE_WCHAR_T.
6407 * sysdeps/mach/hurd/_G_config.h: Likewise.
6408 * sysdeps/generic/_G_config.h: Likewise.
6409 * libio/libio.h (__wunderflow, __wuflow, __woverflow): Only
6410 prototype if _LIBC or _GLIBCPP_USE_WCHAR_T.
6411 (_IO_getwc_unlocked, _IO_putwc_unlocked): Only define
6412 if _LIBC or _GLIBCPP_USE_WCHAR_T.
6413
a95a608f
UD
64142007-07-28 Ulrich Drepper <drepper@redhat.com>
6415
6416 * sysdeps/posix/posix_fallocate64.c: Undefine
6417 __posix_fallocate64_l64 before alias handling.
6418 * sysdeps/unix/sysv/linux/posix_fallocate.c: New file.
6419 * sysdeps/unix/sysv/linux/posix_fallocate64.c: New file.
6420 * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c: New file.
6421 * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate64.c: New file.
6422
6423 * io/tst-posix_fallocate.c: Include <fcntl.h>.
6424
64252007-07-23 Jakub Jelinek <jakub@redhat.com>
6426
6427 * locale/programs/ld-collate.c (atwc): New variable.
6428 (add_to_tablewc): New toplevel function, moved from collate_output.
6429 (collate_output): Remove add_to_tablewc nested function.
6430
6431 * iconv/iconvconfig.c (hash_table, hash_size): New toplevel vars.
6432 (name_insert): New function.
6433 (write_output): Remove hash_table and hash_size vars and name_insert
6434 nested function.
6435
80d4c3b0
RM
64362007-07-24 Roland McGrath <roland@redhat.com>
6437
6438 * Makerules (install-others-programs-nosubdir): New target.
6439 (install-no-libc.a-nosubdir): Depend on it.
6440
6441 * iconv/Makefile (install-others-programs): Set this instead of
6442 install-others.
6443 * login/Makefile (install-others-programs): Likewise.
6444 * posix/Makefile (install-others-programs): Likewise.
6445
6446 * Makerules (install-no-libc.a-nosubdir): Clean up conditional
6447 dependencies.
6448
c1bf9f14
UD
64492007-07-23 Ulrich Drepper <drepper@redhat.com>
6450
6451 * io/Makefile (tests): Add tst-posix_fallocate.
6452 * io/tst-posix_fallocate.c: New file.
6453
6454 * sysdeps/unix/sysv/linux/kernel-features.h: Define
6455 __ASSUME_FALLOCATE.
6456
2320270c
RM
64572007-07-22 Roland McGrath <roland@frob.com>
6458
3dadfa7e
RM
6459 * hurd/getdport.c: Add missing copyright year update.
6460
2320270c
RM
6461 * sysdeps/mach/hurd/bits/fcntl.h [__USE_GNU] (O_CLOEXEC): New macro.
6462 * hurd/port2fd.c (_hurd_port2fd): Implement O_CLOEXEC.
6463
cc783763
UD
64642007-07-22 Ulrich Drepper <drepper@redhat.com>
6465
c942388d
UD
6466 * login/utmp_file.c (setutent_file): Use O_CLOEXEC if possible.
6467
cc783763
UD
6468 * libio/fileops.c (_IO_new_file_fopen): Recognize 'e' flag and set
6469 O_CLOEXEC is needed.
6470 * nis/nss_compat/compat-grp.c: Use 'e' flag when opening file.
6471 Avoid additional fcntl to set O_CLOEXEC if not needed.
6472 * nis/nss_compat/compat-initgroups.c: Likewise.
6473 * nis/nss_compat/compat-pwd.c: Likewise.
6474 * nis/nss_compat/compat-spwd.c: Likewise.
6475
610903b0
RM
64762007-07-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
6477
3dadfa7e 6478 [BZ #3665]
5c3d7832
RM
6479 * manual/errno.texi: Change ECANCELED value to 119.
6480
3dadfa7e 6481 [BZ #4610]
610903b0
RM
6482 * mach/lock-intern.h: Include <sys/cdefs.h>.
6483
3dadfa7e 6484 [BZ #4178]
610903b0
RM
6485 * sysdeps/mach/hurd/sigaction.c (__sigaction): Check ACT != NULL before
6486 reading A.
6487
3dadfa7e
RM
6488 [BZ #4126]
6489 * sysdeps/mach/hurd/sigsuspend.c (sigsuspend_not_cancel): Define alias
6490 to __sigsuspend.
610903b0
RM
6491
6492 * sysdeps/mach/i386/sysdep.h: Include <dl-sysdep.h> and <tls.h>.
6493
64942006-06-13 Thomas Schwinge <tschwinge@gnu.org>
6495
6496 * sysdeps/mach/hurd/tls.h: Change `ASSEMBLER' conditional to
6497 `__ASSEMBLER__'.
6498 * sysdeps/mach/hurd/i386/tls.h: Likewise.
6499
acf79996
UD
65002007-07-21 Ulrich Drepper <drepper@redhat.com>
6501
dde0763a
UD
6502 * nscd/nscd_helper.c (get_mapping): Use MSG_CMSG_CLOEXEC for
6503 descriptor received from nscd.
6504
acf79996
UD
6505 * sysdeps/unix/sysv/linux/bits/socket.h: Define MSG_CMSG_CLOEXEC.
6506
6507 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define O_CLOEXEC.
6508 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
6509 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
6510 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
6511 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
6512 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
6513
00d26929
JJ
65142007-07-20 Jakub Jelinek <jakub@redhat.com>
6515
403445d7
JJ
6516 [BZ #4816]
6517 * manual/signal.texi (Non-atomic Example): Make memory var volatile.
6518
00d26929
JJ
6519 [BZ #4813]
6520 * login/forkpty.c (forkpty): Close master and slave fds on
6521 fork failure. Patch by
6522 Mikulas Patocka <mikulas@artax.karlin.mff.cuni.cz>.
6523
087722b8
UD
65242007-07-18 Jakub Jelinek <jakub@redhat.com>
6525
6526 * include/features.h (__USE_ISOC95): New define.
6527 * wcsmbs/wchar.h (fwprintf, fwscanf, wprintf, wscanf, swprintf,
6528 swscanf, vfwprintf, vwprintf, vswprintf, fwide): Define even
6529 for -std=iso9899:199409.
6530 * CONFORMANCE: Remove comments about unsupported AMD1.
6531
b042b023
UD
65322007-07-17 Jakub Jelinek <jakub@redhat.com>
6533
6534 * sysdeps/ia64/sched_cpucount.c: New file.
6535 * sysdeps/powerpc/sched_cpucount.c: New file.
6536
8381e467
UD
6537 * sysdeps/unix/sysv/linux/bits/sched.h (__sched_cpucount): Add
6538 __BEGIN_DECLS/__END_DECLS around the prototype.
6539 * bits/sched.h (__sched_cpucount): Likewise. Make second argument
6540 pointer to const cpu_set_t.
6541
50e16f85
UD
6542 * bits/types.h: Don't include stddef.h, don't define __need_size_t.
6543 * signal/signal.h <__USE_BSD || __USE_XOPEN_EXTENDED>: Define
6544 __need_size_t and include stddef.h.
6545 * sysvipc/sys/msg.h: Likewise.
6546 * posix/sched.h: Likewise.
6547 * hurd/hurd/signal.h (__need_size_t): Define.
6548
6549 * CONFORMANCE: ctype.h and wctype.h no longer define size_t,
6550 neither does signal.h in pedantic ISO C namespaces. stdio.h
6551 no longer defines wint_t or wchar_t.
6552
b257c726
UD
6553 * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct): New function.
6554 * debug/vfwprintf_chk.c (__vfwprintf_chk): Use
6555 _IO_acquire_lock_clear_flags2 instead of _IO_acquire_lock.
6556 * debug/vprintf_chk.c (__vprintf_chk): Likewise.
6557 * debug/vwprintf_chk.c (__vwprintf_chk): Likewise.
6558 * debug/vfprintf_chk.c (__vfprintf_chk): Likewise.
6559 * debug/fwprintf_chk.c (__fwprintf_chk): Likewise.
6560 * debug/printf_chk.c (__printf_chk): Likewise.
6561 * debug/fprintf_chk.c (__fprintf_chk): Likewise.
6562 * debug/wprintf_chk.c (__wprintf_chk): Likewise.
6563
6564 * sysdeps/pthread/bits/stdio-lock.h (_IO_acquire_lock_clear_flags2):
6565 Define.
6566
d5078b9f
UD
6567 * bits/confname.h (_CS_POSIX_V6_WIDTH_RESTRICTED_ENVS): Define.
6568 * posix/getconf.c (vars): Add POSIX_V6_WIDTH_RESTRICTED_ENVS.
6569
1c3e748e
UD
65702007-07-16 Jakub Jelinek <jakub@redhat.com>
6571
6572 [BZ #4792]
6573 * stdlib/stdlib.h (realloc): Remove __attribute_malloc__.
6574 * malloc/malloc.h (realloc): Likewise.
6575
4e425301
UD
6576 * libio/iopopen.c (_IO_new_proc_open): Don't close child_std_end
6577 if one of proc_file_chain streams has that fileno.
6578 * stdio-common/Makefile (tests): Add tst-popen2.
6579 * stdio-common/tst-popen2.c: New test.
6580
2e2efe65
RM
65812007-07-14 Jakub Jelinek <jakub@redhat.com>
6582
6583 * elf/ldconfig.c: Allow GPLv2 or any later version.
6584 * elf/readlib.c: Likewise.
6585 * elf/chroot_canon.c: Likewise.
6586 * elf/cache.c: Likewise.
6587 * nscd/mem.c: Likewise.
6588 * nscd/getpwuid_r.c: Likewise.
6589 * nscd/grpcache.c: Likewise.
6590 * nscd/aicache.c: Likewise.
6591 * nscd/getsrvbynm_r.c: Likewise.
6592 * nscd/nscd.c: Likewise.
6593 * nscd/servicescache.c: Likewise.
6594 * nscd/getsrvbypt_r.c: Likewise.
6595 * nscd/initgrcache.c: Likewise.
6596 * nscd/gethstbyad_r.c: Likewise.
6597 * nscd/gethstbynm2_r.c: Likewise.
6598 * nscd/getgrnam_r.c: Likewise.
6599 * nscd/nscd_setup_thread.c: Likewise.
6600 * nscd/getpwnam_r.c: Likewise.
6601 * nscd/gai.c: Likewise.
6602 * nscd/connections.c: Likewise.
6603 * nscd/dbg_log.c: Likewise.
6604 * nscd/cache.c: Likewise.
6605 * nscd/hstcache.c: Likewise.
6606 * nscd/nscd_conf.c: Likewise.
6607 * nscd/getgrgid_r.c: Likewise.
6608 * nscd/pwdcache.c: Likewise.
6609 * catgets/gencat.c: Likewise.
6610 * locale/programs/linereader.h: Likewise.
6611 * locale/programs/locarchive.c: Likewise.
6612 * locale/programs/ld-paper.c: Likewise.
6613 * locale/programs/locfile-kw.h: Likewise.
6614 * locale/programs/ld-address.c: Likewise.
6615 * locale/programs/xmalloc.c: Likewise.
6616 * locale/programs/ld-time.c: Likewise.
6617 * locale/programs/localedef.c: Likewise.
6618 * locale/programs/simple-hash.c: Likewise.
6619 * locale/programs/xstrdup.c: Likewise.
6620 * locale/programs/ld-numeric.c: Likewise.
6621 * locale/programs/locfile-kw.gperf: Likewise.
6622 * locale/programs/ld-collate.c: Likewise.
6623 * locale/programs/charmap-kw.gperf: Likewise.
6624 * locale/programs/charmap.h: Likewise.
6625 * locale/programs/charmap-kw.h: Likewise.
6626 * locale/programs/config.h: Likewise.
6627 * locale/programs/locfile.c: Likewise.
6628 * locale/programs/ld-ctype.c: Likewise.
6629 * locale/programs/charmap.c: Likewise.
6630 * locale/programs/ld-messages.c: Likewise.
6631 * locale/programs/repertoire.h: Likewise.
6632 * locale/programs/locale.c: Likewise.
6633 * locale/programs/ld-name.c: Likewise.
6634 * locale/programs/linereader.c: Likewise.
6635 * locale/programs/locfile.h: Likewise.
6636 * locale/programs/3level.h: Likewise.
6637 * locale/programs/ld-monetary.c: Likewise.
6638 * locale/programs/ld-measurement.c: Likewise.
6639 * locale/programs/charmap-dir.c: Likewise.
6640 * locale/programs/ld-identification.c: Likewise.
6641 * locale/programs/localedef.h: Likewise.
6642 * locale/programs/charmap-dir.h: Likewise.
6643 * locale/programs/repertoire.c: Likewise.
6644 * locale/programs/simple-hash.h: Likewise.
6645 * locale/programs/ld-telephone.c: Likewise.
6646 * locale/programs/locale-spec.c: Likewise.
6647 * locale/programs/locfile-token.h: Likewise.
6648 * posix/getconf.c: Likewise.
6649 * iconv/dummy-repertoire.c: Likewise.
6650 * iconv/iconv_charmap.c: Likewise.
6651 * iconv/iconvconfig.c: Likewise.
6652 * iconv/iconv_prog.c: Likewise.
6653 * malloc/memusagestat.c: Likewise.
6654 * sysdeps/unix/sysv/linux/nscd_setup_thread.c: Likewise.
6655
84c23a3d
RM
66562007-07-06 Kaz Kojima <kkojima@rr.iij4u.or.jp>
6657
6658 * sysdeps/sh/bsd-setjmp.S (setjmp): Use correct argument registers.
6659 * sysdeps/sh/bsd-_setjmp.S (_setjmp): Likewise.
6660 * sysdeps/unix/sysv/linux/sh/clone.S (__clone): Do correct sanity
6661 check for the first argument.
6662
1c298d08
UD
66632007-07-12 Jakub Jelinek <jakub@redhat.com>
6664
6665 [BZ #4775]
6666 * math/tgmath.h (__tgmath_real_type_sub): Formatting.
6667 (__tgmath_real_type): Fix if expr is const int or other const
6668 qualified integral type.
6669 (__TGMATH_UNARY_REAL_ONLY): Rewritten to avoid using statement
6670 expressions and handle const qualified arguments.
6671 (__TGMATH_BINARY_FIRST_REAL_ONLY, __TGMATH_UNARY_REAL_IMAG,
6672 __TGMATH_UNARY_REAL_IMAG_RET_REAL): Likewise.
6673 (__TGMATH_UNARY_REAL_RET_ONLY): Rewritten to avoid using
6674 statement expressions.
6675 (__TGMATH_BINARY_REAL_ONLY, __TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY,
6676 __TGMATH_TERNARY_REAL_ONLY, __TGMATH_BINARY_REAL_IMAG): Likewise.
6677 (__TGMATH_UNARY_IMAG): Define.
6678 (conj, cproj): Use __TGMATH_UNARY_IMAG macro.
6679 * math/Makefile (tests): Add test-tgmath2.
6680 (CFLAGS-test-tgmath2.c): Add.
6681 * math/test-tgmath.c (fy, dy, ly, fz, dz, lz, count_cdouble,
6682 count_cfloat, count_cldouble): New variables.
6683 (NCCALLS): Define.
6684 (main): Check number of complex calls as well.
6685 (F(compile_test)): Add complex tests and tests with const qualified
6686 arguments.
6687 (y, z, ccount): Define.
6688 (F(cacos), F(casin), F(catan), F(ccos), F(csin), F(ctan), F(cacosh),
6689 F(casinh), F(catanh), F(ccosh), F(csinh), F(ctanh), F(cexp), F(clog),
6690 F(csqrt), F(cpow), F(cabs), F(carg), F(creal), F(cimag), F(conj),
6691 F(cproj)): New functions.
6692 * math/test-tgmath2.c: New test.
6693
66942007-07-11 Jakub Jelinek <jakub@redhat.com>
6695
6696 [BZ #4776]
6697 * elf/dl-load.c (_dl_rtld_di_serinfo): Output / in LD_LIBRARY_PATH,
6698 RPATH etc. as "/" rather than "", don't segfault on empty paths,
6699 instead output ".".
6700 * dlfcn/Makefile (distribute): Add glreflib3.c.
6701 (module-names): Add glreflib3.
6702 ($(objpfx)tst-dlinfo.out): Depend on glreflib3.so rather than
6703 glreflib1.so.
6704 (LDFLAGS_glreflib3.so): New.
6705 * dlfcn/tst-dlinfo.c (do_test): Load glreflib3.so instead of
6706 glreflib1.so.
6707 * dlfcn/glreflib3.c: New file.
6708
6709 * intl/finddomain.c (_nl_find_domain): If _nl_explode_name
6710 returned -1, return NULL.
6711 * intl/explodename.c (_nl_explode_name): Return -1 if
6712 _nl_normalize_codeset failed.
6713
a88f47a7
UD
67142007-07-07 Steven Munroe <sjmunroe@us.ibm.com>
6715
6716 * sysdeps/powerpc/powerpc32/power6/memset.S: Update comments.
6717 Specify .machine power6 to get ISA-V2.0 branch hints. Unroll loops
6718 and avoid branch misspredicts for > 31 bytes memset case.
6719 * sysdeps/powerpc/powerpc64/power6/memset.S: Likewise.
6720 Remove toc ref to __cache_line_size.
6721
6722 * sysdeps/powerpc/powerpc32/power4/memcmp.S: Specify .machine power4
6723 to get ISA-V2.0 branch hints.
6724 * sysdeps/powerpc/powerpc32/power4/memcpy.S: Likewise
6725 * sysdeps/powerpc/powerpc32/power4/memset.S: Likewise
6726 * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
6727 * sysdeps/powerpc/powerpc64/power4/memcmp.S: Likewise.
6728 * sysdeps/powerpc/powerpc64/power4/memcpy.S: Likewise.
6729 * sysdeps/powerpc/powerpc64/power4/memset.S: Likewise.
6730 Remove toc ref to __cache_line_size.
6731
6732 * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S:
6733 Include math_ldbl_opt.h.
6734
f98c2d06
UD
67352007-07-10 Ulrich Drepper <drepper@redhat.com>
6736
6737 [BZ #4773]
6738 * time/strptime_l.c (__strptime_internal): Implement greedy
6739 matching of weekday and month names.
6740
cec5991f
RM
67412007-07-09 Roland McGrath <roland@redhat.com>
6742
6743 * elf/elf.h (NT_GNU_ABI_TAG): New macro.
6744 (ELF_NOTE_ABI): Use it.
6745 (NT_GNU_HWCAP, NT_GNU_BUILD_ID): New macros.
6746
8c1dcd26
UD
67472007-07-09 Ulrich Drepper <drepper@redhat.com>
6748
6749 * sysdeps/x86_64/cacheinfo.c (intel_02_known): Add new entries.
6750 * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
6751
c2c7bd3f
UD
67522007-07-07 Ulrich Drepper <drepper@redhat.com>
6753
6754 [BZ #4745]
0923a2c8
UD
6755 * stdio-common/vfscanf.c (_IO_vfscanf): Add additional test for EOF
6756 in loop to look for conversion specifier to avoid testing of
6757 wrong errno value.
6758 * stdio-common/Makefile (tests): Add bug18, bug18a, bug19, bug19a.
c2c7bd3f 6759 * stdio-common/bug18.c: New file.
0923a2c8
UD
6760 * stdio-common/bug18a.c: New file.
6761 * stdio-common/bug19.c: New file.
6762 * stdio-common/bug19a.c: New file.
c2c7bd3f 6763
4facf4af
RM
67642007-07-05 Mike Frysinger <vapier@gentoo.org>
6765
6766 * Makeconfig ($(common-objpfx)gnu/lib-names.stmp): Use LC_ALL=C when
6767 running awk script.
6768
1311e86e
UD
67692007-07-01 Jakub Jelinek <jakub@redhat.com>
6770
6771 * elf/dl-sysdep.c (_dl_important_hwcaps): Add integer overflow check.
6772 * elf/dl-minimal.c (__libc_memalign): Likewise. Handle malloc (0).
6773 Return NULL if mmap failed instead of asserting it does not.
6774 (calloc): Check for integer overflow.
6775
6776 * elf/dl-minimal.c (__strtoul_internal): Fix parsing of numbers bigger
6777 than LONG_MAX / 10.
6778
57c9179c
UD
67792007-07-03 Jakub Jelinek <jakub@redhat.com>
6780
6781 [BZ #4702]
6782 * nis/nss-default.c: Include errno.h.
6783 (init): Preserve errno.
6784
d0b283a8
UD
67852007-07-02 Ulrich Drepper <drepper@redhat.com>
6786
6787 * sysdeps/unix/sysv/linux/bits/socket.h (PF_UNIX): Update comment.
6788
34e0bbaf
UD
67892007-06-30 Ulrich Drepper <drepper@redhat.com>
6790
6791 * sysdeps/unix/sysv/linux/bits/socket.h: Add PF_RXRPC and AF_RXRPC.
6792
67932007-06-29 Martin Schwidefsky <schwidefsky@de.ibm.com>
6794
6795 * sysdeps/unix/sysv/linux/bits/socket.h: Add PF_IUCV and AF_IUCV.
6796
34e0bbaf 67972007-06-29 Martin Schwidefsky <schwidefsky@de.ibm.com>
33516494
UD
6798
6799 * sysdeps/s390/dl-procinfo.c: New file.
6800 * sysdeps/s390/dl-procinfo.h: New file.
6801 * sysdeps/unix/sysv/linux/s390/dl-procinfo.h: New file.
6802
0e508a6e
UD
68032007-06-29 Jakub Jelinek <jakub@redhat.com>
6804
6805 * elf/dl-load.c (open_verify): Find .note.ABI-tag notes even
6806 in PT_NOTE segments with multiple notes.
6807 * elf/readelflib.c (process_elf_file): Likewise.
6808
e22c61fb
UD
68092007-06-22 Ulrich Drepper <drepper@redhat.com>
6810
6811 * nis/nis_domain_of.c (__nis_domain_of): Make the code a bit more
6812 ISO C compliant.
6813
e4eb675d
UD
68142007-06-19 Ulrich Drepper <drepper@redhat.com>
6815
6816 * elf/dl-close.c (free_mem): Free _dl_scope_free_list.
6817
68182007-06-13 Jakub Jelinek <jakub@redhat.com>
6819
6820 * include/link.h: Don't include rtld-lowlevel.h.
6821 (struct link_map): Remove l_scope_lock.
6822 * sysdeps/generic/ldsodefs.h: Don't include rtld-lowlevel.h.
6823 (_dl_scope_free_list): New field (variable) in _rtld_global.
6824 (DL_LOOKUP_SCOPE_LOCK): Remove.
6825 (_dl_scope_free): New prototype.
6826 * elf/dl-runtime.c (_dl_fixup): Don't use __rtld_mrlock_*lock.
6827 Don't pass DL_LOOKUP_SCOPE_LOCK to _dl_lookup_symbol_x.
6828 (_dl_profile_fixup): Likewise.
6829 * elf/dl-sym.c (do_sym): Likewise. Use wrapped _dl_lookup_symbol_x
6830 whenever !RTLD_SINGLE_THREAD_P, use THREAD_GSCOPE_SET_FLAG and
6831 THREAD_GSCOPE_RESET_FLAG around it.
6832 * elf/dl-close.c (_dl_close_worker): Don't use
6833 __rtld_mrlock_{change,done}. Call _dl_scope_free on the old
6834 scope. Make sure THREAD_GSCOPE_WAIT () happens if any old
6835 scopes were queued or if l_scope_mem has been abandoned.
6836 * elf/dl-open.c (_dl_scope_free): New function.
6837 (dl_open_worker): Use it. Don't use __rtld_mrlock_{change,done}.
6838 * elf/dl-support.c (_dl_scope_free_list): New variable.
6839 * elf/dl-lookup.c (add_dependency): Remove flags argument.
6840 Remove DL_LOOKUP_SCOPE_LOCK handling.
6841 (_dl_lookup_symbol_x): Adjust caller. Remove DL_LOOKUP_SCOPE_LOCK
6842 handling.
6843 * elf/dl-object.c (_dl_new_object): Don't use
6844 __rtld_mrlock_initialize.
6845
9be09e06
UD
68462007-06-19 Ulrich Drepper <drepper@redhat.com>
6847
6848 * sysdeps/generic/ldsodefs.h (rtld_global): Reorder some elements
6849 to fill in holes
6850 (rtld_global_ro): Likewise.
6851
68522007-06-18 Jakub Jelinek <jakub@redhat.com>
6853
6854 * elf/dl-addr.c (_dl_addr): Skip PT_LOAD checking if l_contiguous.
6855 Move PT_LOAD checking to...
6856 (_dl_addr_inside_object): ... here, new function.
6857 * elf/dl-sym.c (do_sym): If not l_contiguous,
6858 call _dl_addr_inside_object.
6859 * elf/dl-iteratephdr.c (__dl_iterate_phdr): Likewise.
6860 * dlfcn/dlinfo.c (dlinfo_doit): Likewise.
6861 * elf/dl-open.c (dl_open_worker): Likewise.
6862 (_dl_addr_inside_object): New function if IS_IN_rtld.
6863 * elf/dl-load.c (_dl_map_object_from_fd): Set l_contiguous if no
6864 holes are present or are PROT_NONE protected.
6865 * include/link.h (struct link_map): Add l_contiguous field.
6866 * sysdeps/generic/ldsodefs.h (_dl_addr_inside_object): New prototype.
6867
ae1ad3ae 68682007-06-18 Jakub Jelinek <jakub@redhat.com>
f00d47a3
AS
6869 Tomas Janousek <tjanouse@redhat.com>
6870 Ulrich Drepper <drepper@redhat.com>
ae1ad3ae
UD
6871
6872 [BZ #4647]
6873 * resolv/res_send.c (send_dg): Remove socket_pf. Use ipv6_unavail
6874 member in __res_state, only convaddr4to6 if nssocks[ns] is a PF_INET6
6875 socket.
6876 * resolv/resolv.h (__res_state): Add ipv6_unavail member. Make
6877 unused member a bitmap.
6878 * resolv/res_init.c (__res_vinit): Reset ipv6_unavail if IPv6
6879 servers are configured.
6880
3abee0b7
UD
68812007-06-18 Jakub Jelinek <jakub@redhat.com>
6882
6883 * elf/rtld.c (dl_main): Don't call init_tls more than once.
6884
89074592
UD
68852007-06-17 Andreas Schwab <schwab@suse.de>
6886
6887 * sysdeps/generic/initfini.c: Tell gcc about the nonstandard sections.
6888
b26e274d
AJ
68892007-06-16 Andreas Jaeger <aj@suse.de>
6890
6891 [BZ #4125]
6892 * sysdeps/unix/sysv/linux/sys/ptrace.h
6893 (PTRACE_O_TRACESYSGOOD, PTRACE_O_TRACEFORK,
6894 PTRACE_O_TRACEVFORK, PTRACE_O_TRACECLONE, PTRACE_O_TRACEEXEC,
89074592 6895 PTRACE_O_TRACEVFORKDONE, PTRACE_O_TRACEEXIT, PTRACE_O_MASK,
b26e274d
AJ
6896 PTRACE_EVENT_FORK, PTRACE_EVENT_VFORK, PTRACE_EVENT_CLONE,
6897 PTRACE_EVENT_EXEC, PTRACE_EVENT_VFORK_DONE, PTRACE_EVENT_EXIT):
6898 Define.
6899 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
6900 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
6901 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
6902 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
6903
e0d4a4e5
UD
69042007-06-16 Ulrich Drepper <drepper@redhat.com>
6905
6906 [BZ #4599]
6907 * sysdeps/unix/sysv/linux/check_pf.c (make_request): When
6908 determining whether there are IPv4/IPv6 addresses, ignore loopback
6909 addresses.
6910
ae8e81f5
JJ
69112007-06-14 Uros Bizjak <ubizjak@gmail.com>
6912
6913 * soft-fp/soft-fp.h (CMPtype): Define to "int" if undefined.
6914 * soft-fp/eqdf2.c (__eqdf2): Use CMPtype instead of int
6915 as the return type. Change type of "r" variable to CMPtype.
6916 * soft-fp/eqsf2.c (__eqsf2): Likewise.
6917 * soft-fp/eqtf2.c (__eqtf2): Likewise.
6918 * soft-fp/gedf2.c (__gedf2): Likewise.
6919 * soft-fp/gesf2.c (__gesf2): Likewise.
6920 * soft-fp/getf2.c (__getf2): Likewise.
6921 * soft-fp/ledf2.c (__ledf2): Likewise.
6922 * soft-fp/lesf2.c (__lesf2): Likewise.
6923 * soft-fp/letf2.c (__letf2): Likewise.
6924 * soft-fp/unorddf2 (__unorddf2): Likewise.
6925 * soft-fp/unordsf2 (__unordsf2): Likewise.
6926 * soft-fp/unordtf2 (__unordtf2): Likewise.
6927
90cd2413
UD
69282007-06-09 Ulrich Drepper <drepper@redhat.com>
6929
6930 * elf/do-lookup.h (do_lookup_x): Read r_nlist before r_list and
6931 make sure gcc doesn't mess around with this.
6932
3c457089
UD
69332007-06-08 Ulrich Drepper <drepper@redhat.com>
6934
6935 * elf/dl-lookup.c (_dl_lookup_symbol_x): Remove use of r_nlist.
6936
e8b6b64d
UD
69372007-06-08 Jakub Jelinek <jakub@redhat.com>
6938
6939 * elf/dl-close.c (_dl_close_worker): Remove all to be removed
6940 libraries from the global scope at once and call THREAD_GSCOPE_WAIT
6941 at most once per _dl_close_worker.
6942
36dffb22
UD
69432007-06-08 Ulrich Drepper <drepper@redhat.com>
6944
755db8c5
UD
6945 * sysdeps/unix/sysv/linux/bits/sched.h: Make second parameter of
6946 __sched_cpucount as const.
6947 * posix/sched_cpucount.c: Adjust.
6948
36dffb22
UD
6949 * posix/sched_cpucount.c (__sched_cpucount): Allow using special
6950 instruction for counting bits.
6951 * sysdeps/x86_64/sched_cpucount.c: New file.
6952
26f56c1c
UD
69532007-06-07 Ulrich Drepper <drepper@redhat.com>
6954
6955 * configure.in: Avoid variable named BASH.
e967d385 6956 * config.make.in: Likewise.
26f56c1c 6957 Patch in part by Mike Frysinger.
835abc5c 6958
26f56c1c 69592007-06-06 Jakub Jelinek <jakub@redhat.com>
47779a7d
JJ
6960
6961 [BZ #4586]
835abc5c
UD
6962 * sysdeps/i386/ldbl2mpn.c (__mpn_extract_long_double): Treat
6963 pseudo-zeros as zero.
6964 * sysdeps/x86_64/ldbl2mpn.c: New file.
6965 * sysdeps/ia64/ldbl2mpn.c: New file.
6966
7e3706ea
UD
69672007-06-04 Jakub Jelinek <jakub@redhat.com>
6968
6969 * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (nextafterl): Remove
6970 unused ily variable. Fix nextafterl on +-__LDBL_MAX__ and +-Inf.
6971 Remove unreachable code at the end.
6972
69732007-06-01 Steven Munroe <sjmunroe@us.ibm.com>
6974
6975 * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c: Correct description of
6976 ldbl-128ibm in comment.
6977 (fpclassifyl): Correct classification of denormals.
6978 * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (nextafterl): Correct
6979 return value for MIN denormal. Rewrite using long double math too
6980 correctly handle denormals and canonicalize the results.
6981
69822007-06-05 Jakub Jelinek <jakub@redhat.com>
6983
6984 * sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c
6985 (__mpn_construct_long_double): Fix conversion where result ought
6986 to be smaller than __LDBL_MIN__, or the low double should be
6987 denormal. Fix decision where to negate low double - honor round
6988 to even rules.
6989 * stdio-common/tst-sprintf2.c: Include string.h.
6990 (COMPARE_LDBL): Define.
6991 (TEST): Also test whether a string hexadecimal float representation
6992 can be parsed back to the number.
6993 (main): Add a couple of further tests.
6994
43b76828
UD
69952007-06-04 Jakub Jelinek <jakub@redhat.com>
6996
6997 * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c
6998 (PRINT_FPHEX_LONG_DOUBLE): Fix printing numbers where lower double
6999 is non-zero, but smaller than 2 * __DBL_MIN__.
7000 * stdio-common/tst-sprintf2.c: New test.
7001 * stdio-common/Makefile (tests): Add tst-sprintf2.
7002
7003 * math/test-misc.c (main): Don't run last batch of tests with
7004 IBM long double format.
7005
04067002
UD
70062007-05-31 Steven Munroe <sjmunroe@us.ibm.com>
7007
7008 * sysdeps/powerpc/powerpc32/970/fpu/Implies: New file.
7009 * sysdeps/powerpc/powerpc32/power5/fpu/Implies: New file.
7010 * sysdeps/powerpc/powerpc32/power5+/fpu/Implies: New file.
7011 * sysdeps/powerpc/powerpc32/power6/fpu/Implies: New file.
7012 * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: New file.
7013 * sysdeps/powerpc/powerpc64/970/fpu/Implies: New file.
7014 * sysdeps/powerpc/powerpc64/power5/fpu/Implies: New file.
7015 * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: New file.
7016 * sysdeps/powerpc/powerpc64/power6/fpu/Implies: New file.
7017 * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: New file.
7018 * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/fpu/Implies: New file.
7019 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/fpu/Implies:
7020 New file.
7021 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/fpu/Implies:
7022 New file.
7023 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5+/fpu/Implies:
7024 New file.
7025 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/Implies:
7026 New file.
7027 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/fpu/Implies:
7028 New file.
7029 * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/fpu/Implies: New file.
7030 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/fpu/Implies:
7031 New file.
7032 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/fpu/Implies:
7033 New file.
7034 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5+/fpu/Implies:
7035 New file.
7036 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/Implies:
7037 New file.
7038 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/fpu/Implies:
7039 New file.
7040
70412007-05-31 Steven Munroe <sjmunroe@us.ibm.com>
7042
7043 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrint.S: Move.
7044 * sysdeps/powerpc/powerpc32/power4/fpu/s_llrint.S: To here.
7045 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrintf.S: Move.
7046 * sysdeps/powerpc/powerpc32/power4/fpu/s_llrintf.S: To here.
7047 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llround.S: Move.
7048 * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: To here.
7049 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llroundf.S: Move.
7050 * sysdeps/powerpc/powerpc32/power4/fpu/s_llroundf.S: To here.
7051
70522007-05-22 Steven Munroe <sjmunroe@us.ibm.com>
7053
7054 * sysdeps/powerpc/powerpc32/power5+/fpu/s_round.S
7055 (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
7056 * sysdeps/powerpc/powerpc32/power5+/fpu/s_trunc.S
7057 (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
7058 * sysdeps/powerpc/powerpc64/power5+/fpu/s_round.S
7059 (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
7060 * sysdeps/powerpc/powerpc64/power5+/fpu/s_trunc.S
7061 (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
7062
70632007-05-21 Steven Munroe <sjmunroe@us.ibm.com>
7064
7065 * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: New file.
7066 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.c: New file.
7067 * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: New file.
7068 * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: New file.
7069
70702007-03-15 Steven Munroe <sjmunroe@us.ibm.com>
7071
7072 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrint.S
7073 [LONG_DOUBLE_COMPAT]: Add compat_symbol for llrintl@@GLIBC_2_1.
7074
70752006-02-13 Steven Munroe <sjmunroe@us.ibm.com>
7076
7077 * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S: New File
7078 * sysdeps/powerpc/powerpc32/power6/fpu/s_llrintf.S: New File
7079 * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: New File
7080 * sysdeps/powerpc/powerpc32/power6/fpu/s_llroundf.S: New File
7081
70822006-10-20 Steven Munroe <sjmunroe@us.ibm.com>
7083
7084 * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: New file.
7085 * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: New file.
7086
70872006-10-03 Steven Munroe <sjmunroe@us.ibm.com>
7088
7089 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llround.S: New file.
7090 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llroundf.S: New file.
7091
7092 * sysdeps/powerpc/powerpc32/powerpc64/fpu/Makefile: Moved.
7093 * sysdeps/powerpc/powerpc32/powerpc64/fpu/mpa.c: Likewise.
7094 * sysdeps/powerpc/powerpc32/power4/fpu/Makefile: To here.
7095 * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Likewise.
7096
70972006-09-29 Steven Munroe <sjmunroe@us.ibm.com>
7098
7099 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lrint.S: New file.
7100 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lround.S: New file.
7101 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: New file.
7102 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: New file.
7103
71042006-09-28 Steven Munroe <sjmunroe@us.ibm.com>
7105
7106 * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: New file.
7107 * sysdeps/powerpc/powerpc32/power5+/fpu/s_llroundf.S: New file.
7108 * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: New file.
7109 * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: New file.
7110 * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: New file.
7111 * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: New file.
7112
71132006-08-31 Steven Munroe <sjmunroe@us.ibm.com>
7114
7115 * sysdeps/powerpc/powerpc32/powerpc64/fpu/Makefile: New file.
7116 * sysdeps/powerpc/powerpc32/powerpc64/fpu/mpa.c: New file.
7117 * sysdeps/powerpc/powerpc64/power4/fpu/Makefile: New file.
7118 * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: New file.
7119
71202006-06-15 Steven Munroe <sjmunroe@us.ibm.com>
7121
7122 * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceil.S: New file.
7123 * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceilf.S: New file.
7124 * sysdeps/powerpc/powerpc32/power5+/fpu/s_floor.S: New file.
7125 * sysdeps/powerpc/powerpc32/power5+/fpu/s_floorf.S: New file.
7126 * sysdeps/powerpc/powerpc32/power5+/fpu/s_round.S: New file.
7127 * sysdeps/powerpc/powerpc32/power5+/fpu/s_roundf.S: New file.
7128 * sysdeps/powerpc/powerpc32/power5+/fpu/s_trunc.S: New file.
7129 * sysdeps/powerpc/powerpc32/power5+/fpu/s_truncf.S: New file.
7130 * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceil.S: New file.
7131 * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceilf.S: New file.
7132 * sysdeps/powerpc/powerpc64/power5+/fpu/s_floor.S: New file.
7133 * sysdeps/powerpc/powerpc64/power5+/fpu/s_floorf.S: New file.
7134 * sysdeps/powerpc/powerpc64/power5+/fpu/s_round.S: New file.
7135 * sysdeps/powerpc/powerpc64/power5+/fpu/s_roundf.S: New file.
7136 * sysdeps/powerpc/powerpc64/power5+/fpu/s_trunc.S: New file.
7137 * sysdeps/powerpc/powerpc64/power5+/fpu/s_truncf.S: New file.
7138
71392006-03-20 Steven Munroe <sjmunroe@us.ibm.com>
7140
7141 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrint.S: New file.
7142 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrintf.S: New file.
7143
71442007-06-01 Steven Munroe <sjmunroe@us.ibm.com>
7145
7146 * sysdeps/powerpc/powerpc32/power6/memset.S: New file.
7147 * sysdeps/powerpc/powerpc64/power6/memset.S: New file.
7148
71492007-05-31 Steven Munroe <sjmunroe@us.ibm.com>
7150
7151 * sysdeps/powerpc/powerpc32/970/Implies: New file.
7152 * sysdeps/powerpc/powerpc32/power5/Implies: New file.
7153 * sysdeps/powerpc/powerpc32/power5+/Implies: New file.
7154 * sysdeps/powerpc/powerpc32/power6/Implies: New file.
7155 * sysdeps/powerpc/powerpc32/power6x/Implies: New file.
7156 * sysdeps/powerpc/powerpc64/970/Implies: New file.
7157 * sysdeps/powerpc/powerpc64/power5/Implies: New file.
7158 * sysdeps/powerpc/powerpc64/power5+/Implies: New file.
7159 * sysdeps/powerpc/powerpc64/power6/Implies: New file.
7160 * sysdeps/powerpc/powerpc64/power6x/Implies: New file.
7161
71622007-05-21 Steven Munroe <sjmunroe@us.ibm.com>
7163
7164 * sysdeps/powerpc/powerpc32/power4/memset.S: New file
7165
71662007-03-13 Steven Munroe <sjmunroe@us.ibm.com>
7167
7168 * sysdeps/powerpc/powerpc64/memcpy.S: Improve aligned loop to minimize
7169 branch miss-predicts. Ensure that cache line crossing does not impact
7170 dispatch grouping.
7171
71722006-12-13 Steven Munroe <sjmunroe@us.ibm.com>
7173
7174 * sysdeps/powerpc/powerpc64/power4/memcopy.h: Replace with include
7175 "../../powerpc32/power4/memcopy.h".
7176 * sysdeps/powerpc/powerpc64/power4/wordcopy.c: Replace with include
7177 "../../powerpc32/power4/wordcopy.c".
7178
71792006-10-03 Steven Munroe <sjmunroe@us.ibm.com>
7180
7181 * sysdeps/powerpc/powerpc32/powerpc64/Makefile: Moved.
7182 * sysdeps/powerpc/powerpc32/powerpc64/memcopy.h: Likewise.
7183 * sysdeps/powerpc/powerpc32/powerpc64/wordcopy.c: Likewise.
7184 * sysdeps/powerpc/powerpc32/power4/Makefile: To here.
7185 * sysdeps/powerpc/powerpc32/power4/memcopy.h: Likewise.
7186 * sysdeps/powerpc/powerpc32/power4/wordcopy.c: Likewise.
7187
71882006-09-10 Steven Munroe <sjmunroe@us.ibm.com>
7189
7190 * sysdeps/powerpc/powerpc32/power6/memcpy.S: New file.
7191
71922006-08-31 Steven Munroe <sjmunroe@us.ibm.com>
7193
7194 * sysdeps/powerpc/powerpc32/power6/wordcopy.c: New file.
7195 * sysdeps/powerpc/powerpc32/powerpc64/Makefile: New file.
7196 * sysdeps/powerpc/powerpc32/powerpc64/memcopy.h: New file.
7197 * sysdeps/powerpc/powerpc32/powerpc64/wordcopy.c: New file.
7198 * sysdeps/powerpc/powerpc64/power4/Makefile: New file.
7199 * sysdeps/powerpc/powerpc64/power4/memcopy.h: New file.
7200 * sysdeps/powerpc/powerpc64/power4/wordcopy.c: New file.
7201 * sysdeps/powerpc/powerpc64/power6/wordcopy.c: New file.
7202
72032006-07-06 Steven Munroe <sjmunroe@us.ibm.com>
7204
7205 * sysdeps/powerpc/powerpc64/power6/memcpy.S: New file.
7206
72072006-03-20 Steven Munroe <sjmunroe@us.ibm.com>
7208
7209 * sysdeps/powerpc/powerpc32/power4/memcmp.S: New file.
7210 * sysdeps/powerpc/powerpc32/power4/memcpy.S: New file.
7211 * sysdeps/powerpc/powerpc32/power4/memset.S: New file.
7212 * sysdeps/powerpc/powerpc32/power4/strncmp.S: New file.
7213 * sysdeps/powerpc/powerpc64/power4/memcmp.S: New file.
7214 * sysdeps/powerpc/powerpc64/power4/memcpy.S: New file.
7215 * sysdeps/powerpc/powerpc64/power4/strncmp.S: New file.
7216
5b55e1d3
RM
72172007-05-29 Roland McGrath <roland@redhat.com>
7218
7219 * po/Makefile (po-sed-cmd): New variable.
7220 (libc.pot.files): Move sed command text in there, avoid \ inside ''.
7221
5da4373c
UD
72222007-05-29 Ulrich Drepper <drepper@redhat.com>
7223
4b5e7304
UD
7224 * crypt/md5-crypt.c: Fix comment.
7225
5da4373c
UD
7226 * nscd/nscd_helper.c (get_mapping): Handle short replies instead
7227 of crashing. When this is the case or if the reply is malformed,
7228 don't try to close the new file descriptor since it does not
7229 exist.
7230 Patch in part by Guillaume Chazarain <guichaz@yahoo.fr>.
7231
40f57573
UD
72322007-05-28 Jakub Jelinek <jakub@redhat.com>
7233
7234 * sysdeps/unix/sysv/linux/futimes.c (miss_utimensat): Don't define
7235 if __NR_utimensat is not defined.
7236
6df7ffad
UD
72372007-05-26 Ulrich Drepper <drepper@redhat.com>
7238
7239 * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Include <sysdep.h>.
7240
47ad95ab
UD
72412007-05-25 Jakub Jelinek <jakub@redhat.com>
7242
7243 * io/bits/fcntl2.h (__open_2): Add nonnull attribute.
7244 (open): Fix comment typos. Don't call __open_2 if flags
7245 is a compile time constant without O_CREAT.
7246 (__open64_2): Add nonnull attribute.
7247 (open64): Fix comment typos. Don't call __open64_2 if flags
7248 is a compile time constant without O_CREAT.
7249 (__openat_2): Add nonnull attribute, fix nonnull attribute
7250 on redirect.
7251 (openat): Fix comment typos. Don't call __openat_2 if flags
7252 is a compile time constant without O_CREAT.
7253 (__openat64_2): Add nonnull attribute, fix nonnull attribute
7254 on redirect.
7255 (openat64): Fix comment typos. Don't call __openat64_2 if flags
7256 is a compile time constant without O_CREAT.
7257
ddfd0535
UD
72582007-05-24 Ulrich Drepper <drepper@redhat.com>
7259
7260 * Makerules (sysd-rules): Define PTW for ptw-* files.
7261 * Versions: Define GLIBC_2.7 for libc.
7262 * include/stdio.h: Declare __fortify_fail.
7263 * debug/fortify_fail.c: New file.
7264 * debug/Makefile (routines): Add fortify_fail.
7265 * debug/chk_fail.c: Use __fortify_fail.
7266 * debug/stack_chk_fail.c: Likewise.
7267 * io/Versions: Export __open_2, __open64_2, __openat_2, and
7268 __openat64_2 for GLIBC_2.7.
7269 * io/fcntl.h: When compiling with fortification, include bits/fcntl2.h.
7270 * io/open.c: Define *_2 variant of function which checks for O_CREAT
7271 and fails if necessary.
7272 * io/open64.c: Likewise.
7273 * io/openat.c: Likewise.
7274 * io/openat64.c: Likewise.
7275 * sysdeps/unix/sysv/linux/open64.c: Likewise.
7276 * sysdeps/unix/sysv/linux/openat.c: Likewise.
7277 * sysdeps/unix/sysv/linux/openat64.c: Likewise.
7278 * io/bits/fcntl2.h: New file.
7279 * include/fcntl.h: Declare __open_2, __open64_2, __openat_2, and
7280 __openat64_2.
7281 * include/bits/fcntl2.h: New file.
7282 * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
7283 Add open_2.
7284 * sysdeps/unix/sysv/linux/open_2.c: New file.
7285
bfe6f5fa
UD
72862007-05-21 Ulrich Drepper <drepper@redhat.com>
7287
6d59823c
UD
7288 * sysdeps/x86_64/cacheinfo.c (init_cacheinfo): Pass correct value
7289 as second parameter to handle_intel.
7290
e2b1e343
UD
7291 * nscd/aicache.c (addhstaiX): If reported TTL is zero don't cache
7292 the entry.
7293
bfe6f5fa
UD
7294 * sysdeps/unix/sysv/linux/x86_64/sysconf.c: Move cache information
7295 handling to ...
7296 * sysdeps/x86_64/cacheinfo.c: ... here. New file.
7297 * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
7298 cacheinfo.
7299 * sysdeps/x86_64/memcpy.S: Complete rewrite.
7300 * sysdeps/x86_64/mempcpy.S: Adjust appropriately.
7301 Patch by Evandro Menezes <evandro.menezes@amd.com>.
7302
7303 * sysdeps/unix/sysv/linux/i386/epoll_pwait.S: New file.
7304
1f4843fb
UD
73052007-05-21 Jakub Jelinek <jakub@redhat.com>
7306
2c2c003a
UD
7307 [BZ #4525]
7308 * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add epoll_pwait.
7309 * sysdeps/unix/sysv/linux/epoll_pwait.c: New file.
7310 * sysdeps/unix/sysv/linux/syscalls.list (epoll_pwait): Remove.
7311
7312 * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h (epoll_pwait): Declare.
7313
af269dd9
UD
7314 [BZ #4514]
7315 * stdio-common/vfprintf.c (vfprintf): Don't shadow workstart variable,
7316 reinitialize workend at the start of each do_positional format spec
7317 loop, free workstart before do_positional loops.
7318 (printf_unknown): Fix size of work_buffer.
7319 * stdio-common/tst-sprintf.c (main): Add 3 new testcases.
7320
1f4843fb
UD
7321 * malloc/hooks.c (MALLOC_STATE_VERSION): Bump.
7322 (public_sET_STATe): If ms->version < 3, put all chunks into
7323 unsorted chunks and clear {fd,bk}_nextsize fields of largebin
7324 chunks.
7325
7326 * malloc/malloc.c [MALLOC_DEBUG]: Revert 2007-05-13 changes.
7327 * malloc/hooks.c: Likewise.
7328 * malloc/arena.c: Likewise.
7329 * malloc/malloc.c (do_check_malloc_state): Don't assert
7330 n_mmaps is not greater than n_mmaps_max. This removes the need
7331 for the previous change.
7332
7333 * malloc/Makefile (CFLAGS-malloc.c): Revert accidental
7334 2007-05-07 commit.
7335
12e8bbff
UD
73362007-05-19 Ulrich Drepper <drepper@redhat.com>
7337
7338 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_PRIVATE_FUTEX):
7339 Define for kernel >= 2.6.22.
69e5cbf5 7340
12e8bbff 73412007-05-18 Ulrich Drepper <drepper@redhat.com>
6d59823c 7342
df94b641
UD
7343 * elf/dl-close.c (_dl_close_worker): When removing object from
7344 global scope, wait for all lookups to finish afterwards.
7345 * elf/dl-open.c (add_to_global): When global scope array must
7346 grow, allocate a new one and free old array only after all
7347 lookups finish.
7348 * elf/dl-runtime.c (_dl_fixup): Protect using global scope.
7349 (_dl_lookup_symbol_x): Likewise.
7350 * elf/dl-support.c: Define _dl_wait_lookup_done.
7351 * sysdeps/generic/ldsodefs.h (struct rtld_global): Add
7352 _dl_wait_lookup_done.
7353
2acd01ac
UD
7354 * malloc/malloc.c (do_check_chunk): Correct check for mmaped block
7355 not overlapping with arena.
7356
129abdd3
UD
7357 * malloc/mcheck.c (reallochook): If size==0, free the block.
7358
eb4b098a
UD
7359 * rt/tst-shm.c: Use fstat64 instead of fstat.
7360
69e5cbf5
UD
7361 * sysdeps/unix/sysv/linux/i386/sync_file_range.S: Fix case where
7362 __NR_sync_file_range is not defined.
7363
a2ccc760
UD
73642007-05-17 Ulrich Drepper <drepper@redhat.com>
7365
bec51a30
UD
7366 Dummy files to prevent stub versions from being used.
7367 * sysdeps/x86_64/fpu/k_cosl.c: New file.
7368 * sysdeps/x86_64/fpu/k_rem_pio2l.c: New file.
7369 * sysdeps/x86_64/fpu/k_sinl.c: New file.
7370 * sysdeps/x86_64/fpu/k_tanl.c: New file.
7371
a2ccc760
UD
7372 * version.h (VERSION): Set to 2.6.90.
7373
1a31b586
UD
73742007-05-14 Ulrich Drepper <drepper@redhat.com>
7375
a2ccc760
UD
7376 * version.h (VERSION): Define to 2.6.
7377 * include/features.h (__GLIBC_MINOR__): Define to 6.
2c1d6172 7378
1d47e92f
UD
7379 * malloc/malloc.c: Use all small bin slots on 64-bit archs.
7380
7381 * malloc/malloc.c (largebin_index): Really have 32 buckets with 64
7382 sizes.
366ad8fd 7383
1a31b586 73842007-05-13 Ulrich Drepper <drepper@redhat.com>
87e66335 7385
366ad8fd
UD
7386 * malloc/malloc.c [MALLOC_DEBUG]: Keep track of current maximum
7387 number of mmaps. n_mmaps_max is the target.
7388 * malloc/hooks.c: Likewise.
7389 * malloc/arena.c: Likewise.
7390
11ed6713
AJ
73912007-05-12 Andreas Jaeger <aj@suse.de>
7392
7393 * sysdeps/unix/sysv/linux/tst-getcpu.c: Include <unistd.h> for
7394 getpid.
7395
d65ef3dd
UD
73962007-05-11 Ulrich Drepper <drepper@redhat.com>
7397
2e81d449
UD
7398 * elf/dl-close.c (_dl_close_worker): Help gcc to optimize by
7399 adding new variables.
7400
d65ef3dd 7401 * elf/dl-open.c (add_to_global): Introduce variable ns to help gcc
2e81d449 7402 optimize. Completely extend global scope array before making the
d65ef3dd
UD
7403 new entries visible.
7404
c27d2078
UD
74052007-05-10 Ulrich Drepper <drepper@redhat.com>
7406
341c566f
UD
7407 * sysdeps/unix/sysv/linux/tst-getcpu.c: New file.
7408 * sysdeps/unix/sysv/linux/Makefile [subdir=posix] (tests): Add
7409 tst-getcpu.
7410
7411 * include/link.h: Move l_version and l_nversion members around to
7412 fill gaps.
7413
a53fa282
UD
7414 * scripts/check-c++-types.sh: Don't use -fnu89-inline option.
7415
3771196d
UD
7416 * sysdeps/unix/sysv/linux/sched_setaffinity.c
7417 (__sched_setaffinity_new): If syscall was successful and
7418 RESET_VGETCPU_CACHE is defined, use it before returning.
7419 * sysdeps/unix/sysv/linux/x86_64/sched_setaffinity.c: New file.
7420
f9bf102d
UD
7421 * io/sys/stat.h: Make sure struct timespec is defined for
7422 __USE_ATFILE.
7423
c27d2078
UD
7424 * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Define UTIME_NOW and
7425 UTIME_OMIT.
7426 * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
7427 * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
7428 * sysdeps/unix/sysv/linux/alpha/bits/stat.h: Likewise.
7429 * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Likewise.
7430 * sysdeps/unix/sysv/linux/bits/stat.h: Likewise.
7431 * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
7432 * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_UTIMENSAT.
7433 * io/sys/stat.h: Declare utimensat, futimens.
7434 * io/utimensat.c: New file.
7435 * io/futimens.c: New file.
7436 * sysdeps/unix/sysv/linux/utimensat.c: New file.
7437 * sysdeps/unix/sysv/linux/futimens.c: New file.
7438 * io/Makefile (routines): Add utimensat, futimens.
7439 * io/Versions: Add utimensat, futimens to GLIBC_2.6.
7440 * sysdeps/unix/sysv/linux/lutimes.c: New file.
7441 * sysdeps/unix/sysv/linux/futimes.c: Use utimensat syscall if
7442 available.
7443
7444 * include/sys/cdefs.h: Redefine __nonnull so that test for
7445 incorrect parameters in the libc code itself are not omitted.
7446
cf6b0980
JJ
74472007-05-09 Jakub Jelinek <jakub@redhat.com>
7448
c1dfd7e6
JJ
7449 * sysdeps/ia64/fpu/fraiseexcpt.c (feraiseexcept): Don't raise overflow
7450 exception in addition to inexact when asked to raise only FE_INEXACT.
7451
cf6b0980
JJ
7452 [BZ #3427]
7453 * sysdeps/s390/fpu/feholdexcpt.c (feholdexcept): Don't clear exceptions
7454 in *envp.
7455
df7b6fea
UD
74562007-05-07 Ulrich Drepper <drepper@redhat.com>
7457
7458 [BZ #4403]
7459 * string/strfry.c (strfry): Make result more random.
7460
37f40235
RH
74612007-05-07 Richard Henderson <rth@redhat.com>
7462
7463 * sysdeps/alpha/fpu/bits/mathinline.h (__isnanl): Don't define
7464 if __NO_LONG_DOUBLE_MATH.
7465 * sysdeps/unix/sysv/linux/alpha/ioperm.c: If BWX insns not
df7b6fea 7466 available in the compiler, add .arch directive to the assembly.
37f40235
RH
7467
74682007-05-07 Jakub Jelinek <jakub@redhat.com>
7469
7470 * sysdeps/alpha/fpu/s_nearbyint.c (nearbyintl): Fix version on
7471 compat_symbol to GLIBC_2_1.
7472 * sysdeps/alpha/fpu/s_fmin.S (fminl): Likewise.
7473 * sysdeps/alpha/fpu/s_trunc.c (truncl): Likewise.
7474 * sysdeps/alpha/fpu/s_fmax.S (fmaxl): Likewise.
7475 * sysdeps/alpha/fpu/s_lrint.c (lrintl, llrintl): Likewise.
7476 * sysdeps/alpha/fpu/s_lround.c (lroundl, llroundl): Likewise.
7477 * sysdeps/alpha/fpu/s_round.c (roundl): Likewise.
7478 * sysdeps/alpha/fpu/s_isnan.c (isnanl): Provide compat_symbol in
7479 libc, not libm.
7480 (__isnanl): New compat_symbol.
7481
c7fd3362
JJ
74822007-05-07 Ulrich Drepper <drepper@redhat.com>
7483 Jakub Jelinek <jakub@redhat.com>
7484
7485 * malloc/arena.c (heap_info): Add mprotect_size field, adjust pad.
7486 (new_heap): Initialize mprotect_size.
7487 (grow_heap): When growing, only mprotect from mprotect_size till
7488 new_size if mprotect_size is smaller. When shrinking, use PROT_NONE
7489 MMAP for __libc_enable_secure only, otherwise use MADV_DONTNEED.
7490
4a59e9ad 74912007-04-30 Steven Munroe <sjmunroe@us.ibm.com>
37f40235 7492 Peter Bergner <bergner@us.ibm.com>
4a59e9ad
UD
7493
7494 * sysdeps/powerpc/bits/fenv.h: Declare __fe_mask_env extern.
7495 Define FE_NOMASK_ENV as FE_EANBLED_ENV. Define FE_MASK_ENV.
7496 * sysdeps/powerpc/fpu/Makefile: Add fe_mask to libm-support.
7497 * sysdeps/powerpc/fpu/fe_mask.c: New file.
7498 * sysdeps/powerpc/fpu/fe_nomask.c: Correct comment.
7499 * sysdeps/powerpc/fpu/fedisblxcpt.c (fedisableexcept):
7500 Call __fe_mask_env() if all FP exceptions disabled.
7501 * sysdeps/powerpc/fpu/feholdexcpt.c (feholdexcept): Copy high 32-bits
7502 from old FPSCR to new fenv to propagate DFP rounding modes.
7503 Call __fe_mask_env() if FP exceptions previously enabled.
7504 * sysdeps/powerpc/fpu/fesetenv.c (fesetenv): Change mask to merge
7505 exceptions from env. Use __fe_nomask_env() or __fe_mask_env() when
7506 transitioning from all exceptions disabled to any exception enabled
7507 or visa versa.
7508 * sysdeps/powerpc/fpu/feupdateenv.c (__feupdateenv): Change mask to
7509 merge exceptions from env. Call __fe_nomask_env or __fe_mask_env
7510 when transitioning from all exceptions disabled to any exception
7511 enabled or visa versa.
7512 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fe_nomask.c: Moved to...
7513 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c: ...here.
7514 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fe_nomask.c: Moved to...
7515 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c: ...here.
7516 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_mask.c: New file.
7517 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_mask.c: New file.
7518
aa75f64c
UD
75192007-05-06 Ulrich Drepper <drepper@redhat.com>
7520
15eca720 7521 [BZ #4465]
aa75f64c
UD
7522 * posix/unistd.h: Remove __THROW from fdatasync.
7523
711deb05
UD
75242007-05-06 Mike Frysinger <vapier@gentoo.org>
7525
15eca720 7526 [BZ #4465]
711deb05
UD
7527 * sysdeps/unix/sysv/linux/syscalls.list (fdatasync): Add "C" to args.
7528
ffecd39b
UD
75292007-05-06 Ulrich Drepper <drepper@redhat.com>
7530
49a8eb75
UD
7531 * stdio-common/vfprintf.c (process_string_arg): Optimize
7532 ridiculous precision in wide char code printing multi-byte string.
7533 Reported by Jim Meyering <jim@meyering.net>.
7534
ffecd39b
UD
7535 [BZ #4131]
7536 * elf/dl-addr.c (_dl_addr): Compare address with actual segment
7537 boundaries to work around systems with overlapping binary loading.
7538 Based on a patch by Suzuki <suzuki@in.ibm.com>.
7539
b16dba4c
UD
75402007-05-04 Ulrich Drepper <drepper@redhat.com>
7541
30b323ab
UD
7542 * stdio-common/vfprintf.c (process_string_arg): Adjust call to
7543 __mbsnrtowcs after last change.
7544
b16dba4c
UD
7545 * locale/programs/linereader.c (get_symname): Fix adding final NUL.
7546 (get_ident): Likewise.
7547
37002cbc
JJ
75482007-05-03 Jakub Jelinek <jakub@redhat.com>
7549
7550 * soft-fp/op-common.h (FP_TRUNC): Replace raising of FP_EX_INEXACT
7551 with setting the sticky bit.
7552 * math/test-misc.c (main): Add more truncation tests.
7553
75542007-04-14 Uros Bizjak <ubizjak@gmail.com>
7555
7556 * soft-fp/floatunsidf.c (__floatunsidf): Use DFtype instead of
7557 double in the function declaration.
7558 * soft-fp/floatundidf.c (__floatundidf): Use DFtype instead of
7559 double in the function declaration.
7560 * soft-fp/floatunsisf.c (__floatunsisf): Use SFtype instead of
7561 float in the function declaration.
7562 * soft-fp/floatunsisf.c (__floatunsisf): Use SFtype instead of
7563 float in the function declaration.
7564
7565 * soft-fp/extended.h (FP_UNPACK_RAW_E): Do not increase X##_e for
7566 denormal operands. Do not generate FP_EX_DENORM exception.
7567 (FP_UNPACK_RAW_EP): Ditto.
7568 (FP_UNPACK_SEMIRAW_E): Use FP_UNPACK_RAW_E instead of
7569 undefined _FP_UNPACK_RAW_E.
7570 (FP_UNPACK_SEMIRAW_EP): Use FP_UNPACK_RAW_EP instead of
7571 undefined _FP_UNPACK_RAW_EP.
7572 (FP_PACK_SEMIRAW_E): Use FP_PACK_RAW_E instead of
7573 undefined _FP_PACK_RAW_E.
7574 (FP_PACK_SEMIRAW_EP): Use FP_PACK_RAW_EP instead of
7575 undefined _FP_PACK_RAW_EP.
7576
d9ac82d0
UD
7577 * soft-fp/op-2.h (_FP_FRAC_COPY_2_2): Define as alias to
7578 _FP_FRAC_COPY_2.
7579 * soft-fp/op-4.h (_FP_FRAC_COPY_2_2): Define as alias to
7580 _FP_FRAC_COPY_4.
37002cbc
JJ
7581
75822007-04-16 Uros Bizjak <ubizjak@gmail.com>
7583 Jakub Jelinek <jakub@redhat.com>
7584
7585 * soft-fp/op-common.h (FP_EXTEND): Do not abort when
7586 _FP_EXPBIAS_##dfs == _FP_EXPBIAS_##sfs. Handle denormals for
7587 this case.
7588 * soft-fp/op-common.h (FP_TRUNC): Ditto.
7589
002f0b0b
JJ
75902007-05-03 Jakub Jelinek <jakub@redhat.com>
7591
7592 * math/test-misc.c (main): Add tests for rounding long double
7593 values close to smallest double denormalized value to double.
7594
75952007-04-30 Joseph Myers <joseph@codesourcery.com>
7596
7597 * soft-fp/op-common.h (FP_TRUNC): Correct off-by-one error in
7598 condition for truncating to 0. Set sticky bit for such
7599 truncation.
7600
57433ede
UD
76012007-05-02 Jakub Jelinek <jakub@redhat.com>
7602
7603 * stdio-common/vfprintf.c (process_string_arg): Use a VLA rather than
7604 fixed length array for ignore.
7605
c01c2455
UD
76062007-04-30 Ulrich Drepper <drepper@redhat.com>
7607
7608 [BZ #4438]
7609 * stdio-common/vfprintf.c (process_string_arg): Don't overflow the
7610 stack for large precisions.
1cb04337
UD
7611 * stdio-common/test-vfprintf.c (main): Add test for large
7612 precision.
c01c2455 7613
37f02b1d
UD
76142007-04-30 Jakub Jelinek <jakub@redhat.com>
7615
b866373d
UD
7616 * stdio-common/printf_fp.c (___printf_fp): Don't print negative sign
7617 for exponent 0.
7618 * stdio-common/tfformat.c (sprint_doubles): Add a new test.
7619
37f02b1d
UD
7620 [BZ #4439]
7621 * resolv/inet_ntop.c (inet_ntop4): Take terminating '\0' into
7622 account in the size check.
7623 * resolv/tst-inet_ntop.c: New test.
7624 * resolv/Makefile (tests): Add tst-inet_ntop.
7625
7ecfbd38
UD
76262007-04-30 Ulrich Drepper <drepper@redhat.com>
7627 Jakub Jelinek <jakub@redhat.com>
7628
7629 [BZ #4349]
7630 * malloc/malloc.c: Keep separate list for first blocks on the bin
7631 lists with a given size. This helps skipping over list elements
7632 we know won't fit in two places.
7633 Inspired by a patch by Tomash Brechko <tomash.brechko@gmail.com>.
7634
e53f0f51
UD
76352007-04-28 Ulrich Drepper <drepper@redhat.com>
7636
7637 [BZ #4102]
7638 * sysdeps/posix/getaddrinfo.c (default_labels): Assign separate
7639 label to Teredo tunnel addresses 2001://32.
7640
109f51f2
UD
76412007-04-27 Ulrich Drepper <drepper@redhat.com>
7642
762422d1
UD
7643 * locale/programs/ld-collate.c (collate_read): Allow order_start
7644 after copy.
7645
61d5a67f
UD
7646 * locale/programs/ld-collate.c (collate_read): Fix printing of
7647 error message.
7648
7649 [BZ #3213]
7650 * locale/C-translit.h.in: Add entry for U2044.
7651
109f51f2
UD
7652 [BZ #4342]
7653 * stdio-common/vfscanf.c (_IO_vfscanf_internal): Allow
7654 hexa-decimal floats without exponent.
7655 * stdio-common/tstscanf.c (main): Adjust Test 8 test for success.
7656
ec08f13d
UD
76572007-04-25 Ulrich Drepper <drepper@redhat.com>
7658
7659 * sysdeps/unix/sysv/linux/bits/sched.h: Declare sched_getcpu.
7660 * sysdeps/unix/sysv/linux/sched_getcpu.c: New file.
7661 * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: New file.
7662 * sysdeps/unix/sysv/linux/Versions: Export sched_getcpu for
7663 GLIBC_2.6.
bce20b9a
UD
7664 * sysdeps/unix/sysv/linux/Makefile [subdir=posix] (sysdep_routines):
7665 Add sched_getcpu.
ec08f13d 7666
41967e1c
JJ
76672007-04-25 Jakub Jelinek <jakub@redhat.com>
7668
7669 * sysdeps/unix/sysv/linux/check_pf.c (make_request): Return -1 instead
7670 of 0 after the out_fail label.
7671
ba508da3
UD
76722007-04-25 Ulrich Drepper <drepper@redhat.com>
7673
7674 [BZ #4406]
109f51f2 7675 * iconv/gconv_charset.h (strip): Allow ':'.
ba508da3
UD
7676 * iconv/iconv_open.c (iconv_open): Adjust comment.
7677
9c8d03d9
JJ
76782007-04-25 Jakub Jelinek <jakub@redhat.com>
7679
7680 * libio/bits/stdio.h (fgetc_unlocked): Add extern inline optimized
7681 version.
7682
2f1687b9
UD
76832007-04-23 Jakub Jelinek <jakub@redhat.com>
7684
7685 [BZ #4381]
7686 * nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Ensure sufficient
7687 alignment of buffer and tmp_buffer.
7688 * nis/nss_nis/nis-hosts.c (internal_nis_gethostent_r,
7689 internal_gethostbyname2_r, _nss_nis_gethostbyaddr_r): Ensure sufficient
7690 alignment of buffer.
7691 * resolv/nss_dns/dns-hosts.c (getanswer_r): Likewise. Handle buflen
7692 bigger than INT_MAX.
7693 * resolv/nss_dns/dns-network.c (getanswer_r): Likewise. Add errnop and
7694 h_errnop arguments. Fail if buflen is too small.
7695 (_nss_dns_getnetbyname_r, _nss_dns_getnetbyaddr_r): Adjust callers.
7696
b64a9db8
JJ
76972007-04-23 Jakub Jelinek <jakub@redhat.com>
7698
7699 [BZ #4405]
7700 * iconvdata/gconv-modules (E13B): Add a missing slash to the alias
7701 name. Patch by Aurelien Jarno <aurelien@aurel32.net>.
7702
4d3144c9
RM
77032007-04-22 Roland McGrath <roland@redhat.com>
7704
7705 * elf/elf.h (NT_PRXFPREG): New macro.
7706
767b40bf
AJ
77072007-04-19 Andreas Jaeger <aj@suse.de>
7708
7709 [BZ #3905]
7710 * bits/in.h (IPV6_ROUTER_ALERT, IPV6_MTU_DISCOVER, IPV6_MTU,
7711 IPV6_RECVERR, IPV6_V6ONLY, IPV6_JOIN_ANYCAST, IPV6_LEAVE_ANYCAST):
7712 Added.
7713
2592d1ec
UD
77142007-04-19 Ulrich Drepper <drepper@redhat.com>
7715
7716 * include/sys/mman.h: Mark madvise hidden.
d07d044e 7717 * misc/madvise.c: Add libc_hidden_def.
2592d1ec 7718
7ab174ed
UD
77192007-04-06 Jakub Jelinek <jakub@redhat.com>
7720
7721 * nis/nis_domain_of.c (__nis_domain_of): New function.
7722 * include/rpcsvc/nislib.h (__nis_domain_of): New prototype.
7723 * nis/nis_lookup.c (nis_lookup): Use __nis_domain_of.
7724 * nis/nis_call.c (rec_dirsearch): Likewise.
7725 (first_shoot): Likewise. Remove search_parent_first argument.
7726 (struct nis_server_cache): Rename search_parent_first field
7727 to search_parent.
7728 (nis_server_cache_search, nis_server_cache_add): Rename
7729 search_parent_first argument to search_parent.
7730 (__nisfind_server): Likewise. If search_parent, call
7731 __nis_domain_of.
7732
b17c265f
UD
77332007-04-18 Ulrich Drepper <drepper@redhat.com>
7734
7735 * sysdeps/posix/getaddrinfo.c: Remove commented-out code.
7736
b7674b11
UD
77372007-04-17 Ulrich Drepper <drepper@redhat.com>
7738
7739 [BZ #4368]
7740 * stdlib/stdlib.h: Remove obsolete part of comment for realpath.
7741
faf3ad69
UD
77422007-04-16 Ulrich Drepper <drepper@redhat.com>
7743
7744 [BZ #4364]
7745 * posix/unistd.h (_XOPEN_VERSION): Define appropriately for SUSv3.
7746
c14f245c
UD
77472007-04-15 Jakub Jelinek <jakub@redhat.com>
7748
7749 * locale/programs/locarchive.c (INITIAL_NUM_NAMES,
7750 INITIAL_SIZE_STRINGS, INITIAL_NUM_LOCREC): Update to accomodate
7751 current number of locales in SUPPORTED.
7752 (create_archive): Initialize serial.
7753 (enlarge_archive): Preserve aliases rather than duplicating
7754 their locrecs.
7755
d40e67f5
UD
77562007-04-13 Jakub Jelinek <jakub@redhat.com>
7757
993a5d66
UD
7758 * libio/genops.c (_IO_default_finish): Call _IO_lock_fini
7759 after _IO_un_link, not before it.
7760
d40e67f5
UD
7761 * stdio-common/printf_fp.c (___printf_fp): Fix exponent -4
7762 special case handling when wcp == wstartp + 1. Fix a comment typo.
7763 * stdio-common/tfformat.c (sprint_doubles): Add a new testcase.
7764
0fca3153
UD
77652007-03-30 Jakub Jelinek <jakub@redhat.com>
7766
7767 * libio/libio.h (__underflow, __uflow, __overflow, __wunderflow,
7768 __wuflow, __woverflow, _IO_getc, _IO_putc, _IO_peekc_locked, _IO_padn,
7769 _IO_sgetn, _IO_seekoff, _IO_seekpos, _IO_getwc, _IO_putwc, _IO_wpadn):
7770 Remove __THROW.
7771 * libio/fileops.c (new_do_write, _IO_file_xsgetn_mmap,
7772 _IO_file_xsgetn_maybe_mmap): Likewise.
7773 * libio/oldfileops.c (old_do_write): Likewise.
7774 * libio/libioP.h (_IO_switch_to_get_mode, _IO_switch_to_wget_mode,
7775 _IO_init_marker, _IO_init_wmarker, _IO_default_uflow,
7776 _IO_wdefault_uflow, _IO_default_setbuf, _IO_default_seekpos,
7777 _IO_do_write, _IO_new_do_write, _IO_old_do_write, _IO_wdo_write,
7778 _IO_flush_all_lockp, _IO_flush_all, _IO_cleanup,
7779 _IO_flush_all_linebuffered, _IO_new_fgetpos, _IO_old_fgetpos,
7780 _IO_new_fsetpos, _IO_old_fsetpos, _IO_new_fgetpos64,
7781 _IO_old_fgetpos64, _IO_new_fsetpos64, _IO_old_fsetpos64,
7782 _IO_file_setbuf, _IO_file_seekoff, _IO_file_xsputn, _IO_file_xsgetn,
7783 _IO_file_underflow, _IO_file_underflow_mmap,
7784 _IO_file_underflow_maybe_mmap, _IO_file_overflow, _IO_file_attach,
7785 _IO_file_open, _IO_file_fopen, _IO_file_write, _IO_file_read,
7786 _IO_file_sync, _IO_file_close_it, _IO_file_finish,
7787 _IO_new_file_attach, _IO_new_file_close_it, _IO_new_file_finish,
7788 _IO_new_file_fopen, _IO_new_file_setbuf, _IO_file_setbuf_mmap,
7789 _IO_new_file_sync, _IO_new_file_underflow, _IO_new_file_overflow,
7790 _IO_new_file_seekoff, _IO_new_file_write, _IO_new_file_xsputn,
7791 _IO_old_file_setbuf, _IO_old_file_seekoff, _IO_old_file_xsputn,
7792 _IO_old_file_underflow, _IO_old_file_overflow, _IO_old_file_attach,
7793 _IO_old_file_fopen, _IO_old_file_write, _IO_old_file_sync,
7794 _IO_old_file_close_it, _IO_old_file_finish, _IO_wfile_xsputn,
7795 _IO_wfile_setbuf, _IO_wfile_sync, _IO_wfile_underflow,
7796 _IO_wfile_overflow, _IO_wfile_seekoff, _IO_old_proc_open,
7797 _IO_old_proc_close, _IO_getdelim, _IO_flush_all_internal,
7798 _IO_adjust_column_internal, _IO_default_uflow_internal,
7799 _IO_default_xsgetn_internal, _IO_wdefault_xsputn_internal,
7800 _IO_wdefault_xsgetn_internal, _IO_wdefault_uflow_internal,
7801 _IO_file_setbuf_internal, _IO_file_seekoff_internal,
7802 _IO_file_xsputn_internal, _IO_file_xsgetn_internal,
7803 _IO_file_close_it_internal, _IO_file_underflow_internal,
7804 _IO_file_overflow_internal, _IO_file_attach_internal,
7805 _IO_file_fopen_internal, _IO_file_sync_internal,
7806 _IO_file_finish_internal, _IO_wfile_xsputn_internal,
7807 _IO_wfile_seekoff_internal, _IO_wfile_sync_internal,
7808 _IO_switch_to_wget_mode_internal, _IO_padn_internal,
7809 _IO_switch_to_get_mode_internal, _IO_seekoff_unlocked,
7810 _IO_seekpos_unlocked): Likewise.
7811 (_IO_strtod, _IO_dtoa, _IO_outfloat, _IO_read, _IO_write,
7812 _IO_lseek, _IO_close, _IO_fstat): Remove unused prototypes.
7813
07358add
JJ
78142007-04-16 Jakub Jelinek <jakub@redhat.com>
7815
7816 * locale/programs/locarchive.c (show_archive_content): Fix sizeof
7817 argument in xmalloc size computation.
7818
7a82b74f
UD
78192007-04-01 Jakub Jelinek <jakub@redhat.com>
7820
7821 * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (__nextafterl): Use
7822 math_opt_barrier and math_force_eval macros.
7823
3e336a87
UD
78242007-03-27 Jakub Jelinek <jakub@redhat.com>
7825
7826 [BZ #3306]
7827 * math/math_private.h (math_opt_barrier, math_force_eval): Define.
7828 * sysdeps/i386/fpu/math_private.h: New file.
7829 * sysdeps/x86_64/fpu/math_private.h: New file.
7830 * math/s_nexttowardf.c (__nexttowardf): Use math_opt_barrier and
7831 math_force_eval macros. Use "+m" constraint on asm rather than
7832 "=m" and "m".
7833 * math/s_nextafter.c (__nextafter): Likewise.
7834 * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c (__nexttoward):
7835 Likewise.
7836 * sysdeps/ieee754/flt-32/s_nextafterf.c (__nextafterf): Likewise.
7837 * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward): Likewise.
7838 * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
7839 * sysdeps/i386/fpu/s_nextafterl.c (__nextafterl): Use
7840 math_opt_barrier and math_force_eval macros.
7841 * sysdeps/ieee754/ldbl-128/s_nextafterl.c (__nextafterl): Likewise.
7842 * sysdeps/ieee754/ldbl-96/s_nextafterl.c (__nextafterl): Likewise.
7843 * sysdeps/i386/fpu/s_nexttoward.c: Include float.h.
7844 (__nexttoward): Use math_opt_barrier and
7845 math_force_eval macros. Use "+m" constraint on asm rather than
7846 "=m" and "m". Only use asm to force double result if
7847 FLT_EVAL_METHOD is 2.
7848 * sysdeps/i386/fpu/s_nexttowardf.c: Include float.h.
7849 (__nexttowardf): Use math_opt_barrier and
7850 math_force_eval macros. Use "+m" constraint on asm rather than
7851 "=m" and "m". Only use asm to force double result if
7852 FLT_EVAL_METHOD is not 0.
7853 * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Include float.h.
7854 (__nexttowardf): Use math_opt_barrier and
7855 math_force_eval macros. If FLT_EVAL_METHOD is not 0, force
7856 x to float using asm.
7857 * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c: Include float.h.
7858 (__nldbl_nexttowardf): Use math_opt_barrier and
7859 math_force_eval macros. If FLT_EVAL_METHOD is not 0, force
7860 x to float using asm.
7861 * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Include float.h.
7862 (__nexttowardf): Use math_opt_barrier and math_force_eval
7863 macros. If FLT_EVAL_METHOD is not 0, force x to float using asm.
7864 * math/bug-nextafter.c (zero, inf): New variables.
7865 (main): Add new tests.
7866 * math/bug-nexttoward.c (zero, inf): New variables.
7867 (main): Add new tests.
7868
a8c79c40
UD
78692007-03-22 Jakub Jelinek <jakub@redhat.com>
7870
7871 [BZ #3427]
7872 * sysdeps/x86_64/fpu/feholdexcpt.c (feholdexcept): Clear all
7873 exceptions both in SW and MXCSR.
7874 * sysdeps/x86_64/fpu/feupdateenv.c: New file.
7875 * sysdeps/x86_64/fpu/feenablxcpt.c (feenableexcept): Remove dead code.
7876 * sysdeps/x86_64/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
7877 * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Clear all exceptions
7878 in MXCSR if SSE is available.
7879 * sysdeps/i386/fpu/feupdateenv.c: Include unistd.h, dl-procinfo.h
7880 and ldsodefs.h.
7881 (__feupdateenv): Query exceptions also from MXCSR if SSE is available.
7882 Fix comment typo.
7883 * sysdeps/ia64/fpu/feholdexcpt.c (feholdexcept): Clear all exceptions.
7884 Return 0 rather than 1.
7885 * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Fix comment typo.
7886 Remove incorrect part of a comment. Fix argument to feraiseexcept.
7887 * math/test-fenv.c (feholdexcept_tests): New function.
7888 (main): Call it.
7889
78902007-01-05 Richard B. Kreckel <kreckel@ginac.de>
7891
7892 [BZ #3427]
7893 * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Clear all exceptions
7894 in SW.
7895
30a3aa75
JJ
78962007-04-13 Jakub Jelinek <jakub@redhat.com>
7897
7898 [BZ #4344]
7899 * elf/ldconfig.c (search_dir): Fix 2 off-by-2 errors.
7900 Reported by David Anderson <davea42@earthlink.net>.
7901
75587bfe
UD
79022007-04-07 Ulrich Drepper <drepper@redhat.com>
7903
7904 * posix/sys/wait.h: Remove unnecessary forward declaration.
7905
88fa1769
JJ
79062007-04-05 Jakub Jelinek <jakub@redhat.com>
7907
7908 * nis/nis_call.c (__nisfind_server): Replace (*dir)->do_servers
7909 with obj->do_servers after first_shoot.
7910
eab1bdfb
UD
79112007-04-03 Ulrich Drepper <drepper@redhat.com>
7912
7913 * posix/Makefile (routines): Add sched_cpucount.
7914 (tests): Add tst-cpucount.
7915 * posix/sched_cpucount.c: New file.
7916 * posix/tst-cpucount.c: New file.
7917 * posix/Versions: Export __sched_cpucount with version GLIBC_2.6.
b4afdd06
UD
7918 * bits/sched.h: Define __CPU_COUNT. Declare __sched_cpucount.
7919 * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
7920 * posix/sched.h: Define CPU_COUNT.
eab1bdfb 7921
9700b039
UD
79222007-03-27 Jakub Jelinek <jakub@redhat.com>
7923
7924 * posix/fnmatch.c (STRUCT): Define.
7925 (fnmatch): Pass NULL as last argument to internal_fn{,w}match.
7926 * posix/fnmatch_loop.c (struct STRUCT): New type.
7927 (FCT): Add ends argument. If ends != NULL and normal * is
7928 seen in the pattern, store current pattern and string pointers
7929 and return. Adjust recursive calls.
7930 (EXT): Adjust FCT callers.
7931 (STRUCT): Undef at the end of the file.
7932 * posix/Makefile (tests): Add tst-fnmatch2.
7933 * posix/tst-fnmatch2.c: New test.
7934
d64e9790
JJ
79352007-04-01 Jakub Jelinek <jakub@redhat.com>
7936
933dfe7b
JJ
7937 * sysdeps/ia64/fpu/fesetround.c (fesetround): Return 0 on success
7938 and 1 on failure.
7939
d64e9790
JJ
7940 * sysdeps/unix/sysv/linux/sync_file_range.c (sync_file_range):
7941 Change last argument to unsigned int.
7942
e1f0c5bc
UD
79432007-03-23 Jakub Jelinek <jakub@redhat.com>
7944
7945 * scripts/check-local-headers.sh: Filter out sys/capability.h.
7946
79472007-03-22 Jakub Jelinek <jakub@redhat.com>
7948
7949 * config.h.in (HAVE_LIBCAP): Add.
7950 * nscd/selinux.h: Include sys/capability.h rather than non-existent
7951 sys/capabilities.h.
7952 * nscd/selinux.c (preserve_capabilities): Use cap_free instead of
7953 free_caps. Cast away const from 4th cap_set_flag argument.
7954
4e87573f
UD
79552007-03-26 Ulrich Drepper <drepper@redhat.com>
7956
7957 * sysdeps/unix/sysv/linux/Versions: Move sync_file_range to
7958 GLIBC_2.6.
7959 * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
7960 Add sync_file_range.
7961 Reported by Atsushi Nemoto <anemo@mba.ocn.ne.jp>.
7962
fa6e3bc3
UD
79632007-03-19 Steven Munroe <sjmunroe@us.ibm.com>
7964
7965 * sysdeps/powerpc/bits/atomic.h
7966 [!MUTEX_HINT_ACQ]: Define MUTEX_HINT_ACQ.
7967 [!MUTEX_HINT_REL]: Define MUTEX_HINT_REL.
7968 (__arch_compare_and_exchange_val_32_acq): Add MUTEX_HINT_ACQ to lwarx.
7969 (__arch_compare_and_exchange_val_32_rel): Add MUTEX_HINT_REL to lwarx.
7970 (__arch_atomic_exchange_val_32_acq): Add MUTEX_HINT_ACQ to lwarx.
7971 (__arch_atomic_exchange_rel_32_rel): Add MUTEX_HINT_REL to lwarx.
7972 * sysdeps/powerpc/powerpc32/bits/atomic.h [_ARCH_PWR6 || _ARCH_PWR6X]:
7973 Define MUTEX_HINT_ACQ as ",1" and MUTEX_HINT_REL as ",0".
7974 (__arch_compare_and_exchange_bool_32_acq): Add MUTEX_HINT_ACQ to lwarx.
7975 (__arch_compare_and_exchange_bool_32_rel): Add MUTEX_HINT_REL to lwarx.
7976 * sysdeps/powerpc/powerpc64/bits/atomic.h [_ARCH_PWR6 || _ARCH_PWR6D]:
7977 Define MUTEX_HINT_ACQ as ",1" and MUTEX_HINT_REL as ",0".
7978 (__arch_compare_and_exchange_bool_32_acq): Add MUTEX_HINT_ACQ to lwarx.
7979 (__arch_compare_and_exchange_bool_32_rel): Add MUTEX_HINT_REL to lwarx.
7980 (__arch_compare_and_exchange_bool_64_acq): Add MUTEX_HINT_ACQ to lwarx.
7981 (__arch_compare_and_exchange_bool_64_rel): Add MUTEX_HINT_REL to lwarx.
7982 (__arch_compare_and_exchange_val_64_acq): Add MUTEX_HINT_ACQ to lwarx.
7983 (__arch_compare_and_exchange_val_64_rel): Add MUTEX_HINT_REL to lwarx.
7984 (__arch_atomic_exchange_val_64_acq): Add MUTEX_HINT_ACQ to lwarx.
7985 (__arch_atomic_exchange_rel_64_rel): Add MUTEX_HINT_REL to lwarx.
7986
79872007-03-20 Jakub Jelinek <jakub@redhat.com>
c7693af7
UD
7988
7989 * sysdeps/unix/sysv/linux/powerpc/libc-start.c
7990 (__cache_line_size): Define the variable here. Add
7991 attribute_hidden, remove weak_extern.
7992 (__libc_start_main): Set __cache_line_size
7993 unconditionally.
7994 * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c
7995 (__cache_line_size): Define the variable here. Add
7996 attribute_hidden, remove weak_extern.
7997 (DL_PLATFORM_AUXV): Set __cache_line_size
7998 unconditionally.
7999 * sysdeps/powerpc/powerpc32/dl-machine.c (__cache_line_size): Remove
8000 weak_extern, add attribute_hidden.
8001 (__elf_machine_runtime_setup): Assume __cache_line_size is always
8002 defined in ld.so.
8003 * sysdeps/powerpc/powerpc32/memset.S (__cache_line_size): Remove
8004 definition.
8005 * sysdeps/powerpc/powerpc64/memset.S (__cache_line_size): Likewise.
8006
0479e581
JJ
80072007-03-26 Jakub Jelinek <jakub@redhat.com>
8008
8009 [BZ #4276]
8010 * timezone/africa: Update from tzdata2007d.
8011 * timezone/asia: Likewise.
8012 * timezone/australasia: Likewise.
8013 * timezone/backward: Likewise.
8014 * timezone/europe: Likewise.
8015 * timezone/iso3166.tab: Likewise.
8016 * timezone/leapseconds: Likewise.
8017 * timezone/northamerica: Likewise.
8018 * timezone/southamerica: Likewise.
8019 * timezone/zone.tab: Likewise.
8020
8021 * timezone/private.h: Update from tzcode2007d.
8022 * timezone/zdump.c: Likewise.
8023 * timezone/zic.c: Likewise.
8024
697d37b1
JJ
80252007-03-21 Jakub Jelinek <jakub@redhat.com>
8026
8027 * nis/nis_call.c: Include bits/libc-lock.h, sys/stat.h, unistd.h.
8028 (nis_server_cache, nis_server_cache_lock, nis_cold_start_mtime): New
8029 variables.
8030 (nis_server_cache_search, nis_server_cache_add): New functions.
8031 (__nisfind_server): Use them. Add dbp and flags argument, if
8032 call __nisbind_create.
8033 (__nisbind_create): Add server_used and current_ep arguments,
8034 only call __nis_findfastest if server_used is ~0.
8035 (__do_niscall2, __prepare_niscall): Adjust callers.
8036 (ckey_cache, ckey_cache_size, ckey_cache_allocated, ckey_cache_pid,
8037 ckey_cache_euid, ckey_cache_lock): New variables.
8038 (get_ckey): New function.
8039 (__nisbind_connect): If not dbp->use_udp, pass IPPROTO_TCP to
8040 __pmap_getnisport. Save __pmap_getnisport result in
8041 dbp->addr.sin_port if non-zero. Use get_ckey to create conversation
8042 key.
8043 * nis/nis_lookup.c (nis_lookup): Likewise.
8044 * nis/nis_table.c (nis_list): Likewise.
8045 * nis/rpcsvc/nislib.h (__nisbind_create, __nisfind_server): Adjust
8046 prototypes.
8047
8048 * nis/nss_nisplus/nisplus-pwd.c (_nss_nisplus_getpwnam_r,
8049 _nss_nisplus_getpwuid_r): Pass USE_DGRAM flag to nis_list.
8050 * nis/nss_nisplus/nisplus-service.c (_nss_nisplus_getservbyname_r,
8051 _nss_nisplus_getservbyport_r): Likewise.
8052 * nis/nss_nisplus/nisplus-network.c (_nss_nisplus_getnetbyname_r,
8053 _nss_nisplus_getnetbyaddr_r): Likewise.
8054 * nis/nss_nisplus/nisplus-spwd.c (_nss_nisplus_getspnam_r): Likewise.
8055 * nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_gethostton_r,
8056 _nss_nisplus_getntohost_r): Likewise.
8057 * nis/nss_nisplus/nisplus-rpc.c (_nss_nisplus_getrpcbyname_r,
8058 _nss_nisplus_getrpcbynumber_r): Likewise.
8059
06029c20
JJ
80602007-03-20 Jakub Jelinek <jakub@redhat.com>
8061
371f84a4
JJ
8062 * configure.in (libc_cv_gnu89_inline): Only do compile test.
8063 * configure: Rebuilt.
8064
06029c20
JJ
8065 * soft-fp/double.h (_FP_UNION_D): Use _FP_W_TYPE for frac
8066 bit-fields.
8067 * soft-fp/extended.h (_FP_UNION_E): Likewise.
8068
80692006-06-07 Joseph Myers <joseph@codesourcery.com>
8070
8071 [BZ #2831]
8072 * soft-fp/quad.h (_FP_UNION_Q): Use _FP_W_TYPE for frac
8073 bit-fields.
8074
addc8335
UD
80752007-03-18 Jakub Jelinek <jakub@redhat.com>
8076
8077 * nscd/gai.c: Include alloca.h.
8078 (__libc_use_alloca): Define.
8079
b037a293
UD
80802007-03-16 Jakub Jelinek <jakub@redhat.com>
8081
965cba04
UD
8082 * elf/dl-open.c (dl_open_worker): Declare l in 2 different
8083 smaller scopes.
8084 * elf/dl-dst.h (DL_DST_REQ_STATIC): Add l as macro argument.
8085 (DL_DST_REQUIRED): Adjust user.
8086
8087 * include/dlfcn.h (struct link_map): New forward decl.
8088
8089 * inet/getnameinfo.c: Include stddef.h.
8090 (getnameinfo): Use offsetof.
8091
8092 * time/tst-mktime2.c (do_test): Don't rely on signed wrap.
8093
8094 * stdio-common/vfprintf.c (_itoa): Undef before redefining.
8095
8096 * string/strerror_l.c: Include stdlib.h.
8097
b037a293
UD
8098 * configure.in (libc_cv_gnu89_inline): Test for -fgnu89-inline.
8099 * config.make.in (gnu89-inline-CFLAGS): New variable.
8100 * Makeconfig (CFLAGS): Use $(gnu89-inline-CFLAGS) together with
8101 -std=gnu99.
8102 * misc/sys/cdefs.h (__extern_inline, __extern_always_inline): Define.
8103 * argp/argp.h: Use it.
8104 * bits/mathinline.h: Likewise.
8105 * bits/sigset.h: Likewise.
8106 * bits/string.h: Likewise.
8107 * ctype/ctype.h: Likewise.
8108 * hurd/hurd.h: Likewise.
8109 * hurd/hurd/fd.h: Likewise.
8110 * hurd/hurd/port.h: Likewise.
8111 * hurd/hurd/signal.h: Likewise.
8112 * hurd/hurd/threadvar.h: Likewise.
8113 * hurd/hurd/userlink.h: Likewise.
8114 * io/sys/stat.h: Likewise.
8115 * libio/bits/stdio.h: Likewise.
8116 * libio/bits/stdio2.h: Likewise.
8117 * mach/lock-intern.h: Likewise.
8118 * mach/mach/mig_support.h: Likewise.
8119 * math/bits/cmathcalls.h: Likewise.
8120 * posix/bits/unistd.h: Likewise.
8121 * socket/bits/socket2.h: Likewise.
8122 * stdlib/bits/stdlib.h: Likewise.
8123 * stdlib/stdlib.h: Likewise.
8124 * string/argz.h: Likewise.
8125 * string/bits/string2.h: Likewise.
8126 * string/bits/string3.h: Likewise.
8127 * sysdeps/alpha/fpu/bits/mathinline.h: Likewise.
8128 * sysdeps/generic/inttypes.h: Likewise.
8129 * sysdeps/generic/machine-lock.h: Likewise.
8130 * sysdeps/generic/machine-sp.h: Likewise.
8131 * sysdeps/i386/fpu/bits/mathinline.h: Likewise.
8132 * sysdeps/i386/i486/bits/string.h: Likewise.
8133 * sysdeps/ia64/fpu/bits/mathinline.h: Likewise.
8134 * sysdeps/mach/alpha/machine-lock.h: Likewise.
8135 * sysdeps/mach/alpha/machine-sp.h: Likewise.
8136 * sysdeps/mach/i386/machine-lock.h: Likewise.
8137 * sysdeps/mach/powerpc/machine-lock.h: Likewise.
8138 * sysdeps/mach/powerpc/machine-sp.h: Likewise.
8139 * sysdeps/powerpc/fpu/bits/mathinline.h: Likewise.
8140 * sysdeps/s390/bits/string.h: Likewise.
8141 * sysdeps/s390/fpu/bits/mathinline.h: Likewise.
8142 * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
8143 * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Likewise.
8144 * sysdeps/unix/sysv/linux/bits/sigset.h: Likewise.
8145 * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
8146 * sysdeps/unix/sysv/linux/sys/sysmacros.h: Likewise.
8147 * sysdeps/x86_64/fpu/bits/mathinline.h: Likewise.
8148 * wcsmbs/bits/wchar2.h: Likewise.
8149 * wcsmbs/wchar.h: Likewise.
8150 * stdlib/gmp.h: Likewise. Include <features.h> to get
8151 __extern_inline definition.
8152
6b2665f5
UD
81532007-03-15 Jakub Jelinek <jakub@redhat.com>
8154
b037a293
UD
8155 * locale/programs/ld-ctype.c (find_translit): Return NULL if ctype is
8156 NULL.
8157
6b2665f5
UD
8158 [BZ #3919]
8159 * math/libm-test.inc (log_test): Test -Inf and NaN.
8160 (log10_test, log1p_test, log2_test): Test -Inf.
8161 * sysdeps/i386/fpu/e_log.S (__ieee754_log): Don't raise
8162 FE_INVALID when argument is qNaN.
8163 * sysdeps/i386/fpu/e_logl.S (__ieee754_logl): Likewise.
8164 * sysdeps/i386/fpu/e_logf.S (__ieee754_logf): Likewise.
8165 * sysdeps/x86_64/fpu/e_logl.S (__ieee754_logl): Likewise.
8166 * sysdeps/x86_64/fpu/e_log10l.S (__ieee754_log10l): Replace
8167 andb $1, %ah with testb $1, %ah, don't test for parity, instead
8168 testb $4, %ah and jump if non-zero.
8169 * sysdeps/x86_64/fpu/e_log2l.S (__ieee754_log2l): Likewise.
8170 * sysdeps/x86_64/fpu/s_log1pl.S (__log1pl): Likewise.
8171
44969f17
UD
8172 [BZ #4101]
8173 * argp/argp-help.c (hol_cluster_cmp): Fix comparisons used to find
8174 ancestors with the same depths.
8175 Patch by Niels Moeller <nisse@lysator.liu.se>.
8176 (filter_doc): Don't crash if argp is NULL.
8177 * argp/Makefile (tests): Add tst-argp2.
8178 * argp/tst-argp2.c: New test.
8179
05eb8975
UD
8180 [BZ #4130]
8181 * login/utmp_file.c (setutent_file): Use O_LARGEFILE for
8182 open_not_cancel_2.
8183 (updwtmp_file): Likewise.
8184
6cb988fa
UD
8185 [BZ #4181]
8186 * inet/inet6_opt.c (add_padding): Only insert padding if npad > 0.
8187 (inet6_opt_append): Don't check extlen is big enough if extbuf
8188 is NULL.
8189 (inet6_opt_finish): Likewise.
8190 * inet/Makefile (tests): Add test-inet6_opt.
8191 * inet/test-inet6_opt.c: New test.
8192
8193 * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Never
8194 reallocate the buffer, instead fail for MSG_TRUNC or for EBUSY
8195 NLMSG_ERR. Instead use a page sized buffer.
8196 * sysdeps/unix/sysv/linux/check_pf.c (make_request): Use page sized
8197 buffer.
8198
aea1d19e
RH
81992007-03-14 Richard Henderson <rth@redhat.com>
8200
b6df547c
RH
8201 * sysdeps/alpha/fpu/s_llround.c: New file.
8202 * sysdeps/alpha/fpu/s_llroundf.c: New file.
8203 * sysdeps/alpha/fpu/s_lround.c: New file.
8204 * sysdeps/alpha/fpu/s_lroundf.c: New file.
8205 * sysdeps/alpha/fpu/s_round.c: New file.
8206 * sysdeps/alpha/fpu/s_roundf.c: New file.
8207 * sysdeps/alpha/fpu/s_trunc.c: New file.
8208 * sysdeps/alpha/fpu/s_truncf.c: New file.
8209
aea1d19e
RH
8210 * sysdeps/alpha/fpu/s_ceil.c: Rewrite without branches.
8211 * sysdeps/alpha/fpu/s_ceilf.c: Likewise.
8212 * sysdeps/alpha/fpu/s_floor.c: Likewise.
8213 * sysdeps/alpha/fpu/s_floorf.c: Likewise.
8214 * sysdeps/alpha/fpu/s_rint.c: Likewise.
8215 * sysdeps/alpha/fpu/s_rintf.c: Likewise.
8216
8217 * sysdeps/alpha/fpu/s_fmax.S: New file.
8218 * sysdeps/alpha/fpu/s_fmaxf.S: New file.
8219 * sysdeps/alpha/fpu/s_fmin.S: New file.
8220 * sysdeps/alpha/fpu/s_fminf.S: New file.
8221 * sysdeps/alpha/fpu/s_isnan.c: New file.
8222 * sysdeps/alpha/fpu/s_isnanf.c: New file.
8223 * sysdeps/alpha/fpu/s_llrint.c: New file.
8224 * sysdeps/alpha/fpu/s_llrintf.c: New file.
8225 * sysdeps/alpha/fpu/s_lrint.c: New file.
8226 * sysdeps/alpha/fpu/s_lrintf.c: New file.
8227 * sysdeps/alpha/fpu/s_nearbyint.c: New file.
8228 * sysdeps/alpha/fpu/s_nearbyintf.c: New file.
8229
8230 * sysdeps/alpha/fpu/bits/mathinline.h (__floorf, __floor): Remove.
8231 (__fdimf, fdimf, __fdim, fdim): Remove.
8232 (__signbitf, __signbit, __signbitl): Use gcc builtin if available.
8233 (__isnanf, __isnan, __isnanl): New.
8234
9e43b50d
RH
82352007-03-13 Richard Henderson <rth@redhat.com>
8236
8237 * sysdeps/ieee754/ldbl-128/Makefile: New file.
8238
62789da3
RH
82392007-03-13 Richard Henderson <rth@redhat.com>
8240
8241 * sysdeps/alpha/Makefile (sysdep-CFLAGS): Force dynamic rounding.
8242 * sysdeps/alpha/fpu/bits/mathinline.h (__signbitl): New.
8243 * sysdeps/alpha/fpu/libm-test-ulps: Regenerate.
8244 * sysdeps/unix/sysv/linux/alpha/alphaev6/fpu/Implies: New file.
8245 * sysdeps/unix/sysv/linux/alpha/alphaev67/fpu/Implies: New file.
8246 * sysdeps/unix/sysv/linux/alpha/fpu/Implies: New file.
8247
47dbe62b
RH
82482007-03-13 Richard Henderson <rth@redhat.com>
8249
37f40235 8250 * elf/dl-support.c (_dl_aux_init): Honor DL_PLATFORM_AUXV.
47dbe62b
RH
8251 * sysdeps/unix/sysv/linux/alpha/dl-auxv.h: New file.
8252 * sysdeps/unix/sysv/linux/alpha/dl-support.c: New file.
8253 * sysdeps/unix/sysv/linux/alpha/dl-sysdep.c (__libc_alpha_cache_shape):
8254 Move to dl-auxv.h; initialize instead of extern weak.
8255 (DL_PLATFORM_AUXV): Move to dl-auxv.h; don't test for undef
8256 weak symbol.
8257 * sysdeps/unix/sysv/linux/alpha/sysconf.c (__libc_alpha_cache_shape):
8258 Extern instead of initialized.
8259
b8097bed
RH
82602007-03-13 Richard Henderson <rth@redhat.com>
8261
8262 * sysdeps/unix/sysv/linux/alpha/sigsuspend.S: Add support for
8263 __sigsuspend_nocancel.
8264
6bf4a686
UD
82652007-03-06 Ulrich Drepper <drepper@redhat.com>
8266
8267 * sysdeps/posix/getaddrinfo.c (get_scope): Correct test for
8268 172.16/12 address range.
8269
0b3b1a0c
UD
82702007-03-02 Jakub Jelinek <jakub@redhat.com>
8271
8272 * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Retry with
8273 a new netlink socket if NLMSG_ERR -EBUSY is seen after some MSG_TRUNC
8274 message.
8275
8f3edfee
UD
82762007-03-01 Jakub Jelinek <jakub@redhat.com>
8277
c1c5e654 8278 [BZ #4069]
8f3edfee
UD
8279 * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Check for NaN
8280 earlier.
8281 * math/libm-test.inc (pow_test): Add more tests involving NaNs.
8282
8283 * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Avoid invalid exception
8284 for x qNaN and y either +-inf or non-integer value.
8285 * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Likewise.
8286 * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.
8287 * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
8288
245a1481
UD
82892007-02-10 Mike Frysinger <vapier@gentoo.org>
8290
8291 * sysdeps/unix/sysv/linux/sh/Makefile: Remove sys/io.h
8292 from sysdep_headers.
8293
c217692b
UD
82942007-02-28 Jakub Jelinek <jakub@redhat.com>
8295
8296 * time/tzfile.c (find_transition): Instead of a linear search try to
8297 guess the transition index, use a linear search if the result is at
8298 most 10 transitions away from the guess or binary search otherwise.
8299
fe64626c
JJ
83002007-02-27 Jakub Jelinek <jakub@redhat.com>
8301
8302 * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Fix
8303 memory reallocation.
8304
0f7769f7
UD
83052007-02-21 Ulrich Drepper <drepper@redhat.com>
8306
621c133d
UD
8307 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Add branch predictions
8308 and fix some typos.
8309 Optimize use of TOLOWER.
9cf147d8 8310
cdfd61e1
UD
8311 [BZ #3325]
8312 * sysdeps/i386/fpu/e_fmodf.S: Revert last changes, keep using fprem.
8313 * sysdeps/i386/fpu/e_fmodl.c: Likewise.
8314 * sysdeps/i386/fpu/e_fmod.S: Likewise.
8315
8889e7aa
UD
8316 [BZ #3458]
8317 * sysdeps/unix/sysv/linux/posix_madvise.c: New file.
8318 * sysdeps/unix/sysv/linux/syscalls.list: Remove posix_madvise entry.
8319
63a2f305
UD
8320 [BZ #4076]
8321 * io/ftw.c (ftw_startup): Handle special case of FTW_CHDIR in /.
8322 (open_dir_stream): Likewise.
8323 * io/Makefile (tests): Add bug-ftw5.
c536b9b8 8324 * io/bug-ftw5.c: New file.
63a2f305 8325
c8703f88
UD
8326 * nscd/hstcache.c (cache_addhst): Remove unnecessary conditional.
8327 * nscd/servicescache.c (cache_addserv): Likewise.
8328
8329 * nscd/grpcache.c (cache_addgr): In case a record changed on
8330 refresh, adjust key_copy.
8331
61705e06
UD
8332 [BZ #4074]
8333 * nscd/pwdcache.c (cache_addpw): In case a record changed on
8334 refresh, adjust key_copy.
8335
0f7769f7
UD
8336 [BZ #4070]
8337 * stdio-common/printf_fp.c (___printf_fp): Handle a few more
0f7769f7 8338 special cases.
8889e7aa 8339 * stdio-common/tfformat.c (sprint_doubles): Some more tests.
0f7769f7 8340
3979024a
UD
83412007-02-19 Ulrich Drepper <drepper@redhat.com>
8342
4c02bf1a
UD
8343 * stdio-common/printf_fp.c (___printf_fp): Cleanups and minor
8344 optimization.
8345
3979024a
UD
8346 * stdio-common/vfscanf.c: Small cleanups throughout.
8347
821d3e70
UD
83482007-02-18 Ulrich Drepper <drepper@redhat.com>
8349
2484468b
UD
8350 [BZ #3325]
8351 * sysdeps/i386/fpu/e_fmodf.S: Use fprem1 instead of fprem.
8352 * sysdeps/i386/fpu/e_fmodl.c: Likewise.
8353 * sysdeps/i386/fpu/e_fmod.S: Likewise.
8354 Patch by Jared Casper <jaredcasper@gmail.com>.
8355
858ee15d
UD
8356 * sysdeps/unix/closedir.c: Outside libc don't use locking.
8357 * sysdeps/unix/opendir.c: Likewise.
8358 * sysdeps/unix/readdir.c: Likewise.
8359
ecb72bd5
UD
8360 [BZ #2211]
8361 * stdio-common/vfscanf.c: Handle localized digits etc for floating
8362 point numbers.
8363 Patch mostly by Hamed Malek <hamed@farsiweb.info>.
8364
ac2ca022
UD
8365 * stdio-common/vfscanf.c: Fix problems in width accounting.
8366 * stdio-common/tst-sscanf.c (double_tests): New tests.
8367 (main): Hook them up.
8368
e9bb5246 8369 * stdio-common/vfscanf.c: Remove unused WIDTH handling.
da50f001 8370 More simplifications of floating-point reader.
e9bb5246 8371
821d3e70
UD
8372 * stdio-common/Makefile (tests): Add tst-swscanf.
8373 * stdio-common/tst-sscanf.c: Make tests usable for swscanf
8374 testing.
8375 * stdio-common/tst-swscanf.c: New file.
8376
07fb5185
UD
83772007-02-17 Ulrich Drepper <drepper@redhat.com>
8378
9138cc0b
UD
8379 [BZ #2633]
8380 * libio/stdio.h: Define struct _IO_FILE in global namespace.
8381 * setjmp/setjmp.h: Define __jmp_buf_tag in global namespace.
8382 Remove using for __jmp_buf_tag.
8383 * locale/locale.h (struct lconv): Also define in std namespace.
8384 * wcsmbs/wchar.h: Move using declaration for tm out of namespace.
8385
6818d837
UD
8386 [BZ #3842]
8387 * sysdeps/posix/euidaccess.c [_LIBC] (euidaccess): Remove shortcut
8388 using __libc_enable_secure.
8389
15c4b5a4
UD
8390 [BZ #3818]
8391 * sysdeps/unix/sysv/linux/sys/acct.h (struct acct_v3): Define.
8392
5e9e9c14
UD
8393 [BZ #3745]
8394 * locale/programs/ld-collate.c (handle_ellipsis): Fix generation
8395 of names for ellipsises.
8396
07fb5185
UD
8397 [BZ #3348]
8398 * malloc/memusage.sh: Cleanups.
8399 * debug/xtrace.sh: Quoting and trap changes.
8400
8c6d1043
UD
84012007-02-16 Ulrich Drepper <drepper@redhat.com>
8402
07fb5185
UD
8403 * locale/iso-3166.def: Add Jersey, Guernsey, and Isle Of Man entries.
8404
93e66914 8405 * locale/iso-3166.def: Update entry for Serbia.
93e36434
UD
8406 * locale/iso-4217.def: Define RSD, remove CSD.
8407
ad0b348c
UD
8408 * sysdeps/x86_64/bits/atomic.h: One more change, this time for 16-
8409 and 64-bit operations.
8410
8411 [BZ #4040]
8412 * sysdeps/i386/i486/bits/atomic.h: One more change, this time for
8413 16-bit operations.
8414
8c6d1043
UD
8415 * nscd/nscd.c (parse_opt): One more conversion to use send instead
8416 of writev.
8417
987f54c6
UD
84182007-02-15 Ulrich Drepper <drepper@redhat.com>
8419
b3715c05
UD
8420 [BZ #3991]
8421 * assert/assert.h (assert): Simplify.
8422 (assert_perror): Likewise.
8423 Patch by Israel G. Lugo <ilugo@bridonsecurity.com>.
8424
6eea8e0d
UD
8425 * nscd/nscd_helper.c (open_socket): Don't send padding bytes from
8426 reqdata.
8427
987f54c6
UD
8428 * sysdeps/unix/sysv/linux/x86_64/send.c (__libc_send): Cosmetic
8429 change: don't pass NULL in place of an integer.
8430
3dc08a7e
UD
84312007-02-02 Bruno Haible <bruno@clisp.org>
8432
06c17c78
UD
8433 [BZ #3954]
8434 * iconvdata/ksc5601.c (__ksc5601_sym_to_ucs, __ksc5601_sym_from_ucs):
8435 Add mapping for U+327E.
8436 * iconvdata/ksc5601.h (KSC5601_SYMBOL): Increment.
8437 * iconvdata/johab.c (BODY for FROM_LOOP, BODY for TO_LOOP): Enable
8438 mapping of 0xD9 0xE8.
8439 * iconvdata/uhc.c (BODY for FROM_LOOP, BODY for TO_LOOP): Disable
8440 mapping of U+327E.
8441 Reported by Jungshik Shin <jungshik@google.com>.
8442
8443 [BZ #3955]
3dc08a7e
UD
8444 * iconvdata/johab.c (BODY for FROM_LOOP, BODY for TO_LOOP): Enable
8445 mapping of 0xD9 0xE6 and of 0xD9 0xE7.
8446 Reported by Jungshik Shin <jungshik@google.com>.
8447
a810e68c
UD
84482007-02-14 Ulrich Drepper <drepper@redhat.com>
8449
8450 * sysdeps/x86_64/bits/atomic;h: Fix asm parameters for some
8451 byte variants.
8452
8453 [BZ #4040]
8454 * sysdeps/i386/i486/bits/atomic.h: Fix asm parameters for some
8455 byte variants. Patch mostly be tom@tommay.net.
8456
05f135ba
UD
84572007-02-14 Jakub Jelinek <jakub@redhat.com>
8458
8459 [BZ #3996]
8460 * posix/glob.c (attribute_hidden): Define if not defined.
8461 (glob): Unescape dirname, filename or username when needed and not
8462 GLOB_NOESCAPE. Handle \/ correctly. Handle GLOB_MARK if filename
8463 is NULL. Handle unescaped [ in pattern without closing ].
8464 Don't pass GLOB_CHECK down to recursive glob for directories.
8465 (__glob_pattern_type): New function.
8466 (__glob_pattern_p): Implement using __glob_pattern_type.
8467 (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
8468 characters and backslashes if not GLOB_NOESCAPE or unterminated [.
8469 Remove unreachable code.
8470 * posix/globtest.sh: Add a couple of new tests.
8471
2f699967
UD
84722007-02-13 Ulrich Drepper <drepper@redhat.com>
8473
8474 * po/ru.po: Update from translation team.
8475
3a7cd5b4
JJ
84762007-02-12 Jakub Jelinek <jakub@redhat.com>
8477
8478 * sysdeps/i386/bits/byteswap.h (__bswap_32): Add __amdfam10__
8479 to the list of i486+ CPUs.
8480 * sysdeps/x86_64/bits/byteswap.h (__bswap_32): Likewise.
8481
2f978feb
UD
84822007-02-12 Ulrich Drepper <drepper@redhat.com>
8483
8484 * elf/rtld.c (RESOLVE_MAP): Always return bootstrap_map reference.
8485 * elf/Makefile ($(objpfx)ld.so): Check that ld.so has no undefined
8486 references.
8487
2bbb7d5b
UD
84882007-02-09 Ulrich Drepper <drepper@redhat.com>
8489
5ed61e0f
UD
8490 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Remove incorrect comment.
8491
2bbb7d5b
UD
8492 * resolv/res_init.c (res_setoptions): Recognize edns0 option.
8493 * resolv/res_mkquery.c: Define __res_nopt.
8494 * resolv/res_query.c (__libc_res_nquery): If RES_USE_EDNS0 is set
8495 try adding EDNS0 record.
8496 * resolv/res_send.c (send_dg): If request failed with FORMERR and
8497 EDNS0 record was send make sure we don't try it again.
8498 * resolv/resolv.h: Define RES_F_EDNS0ERR and RES_USE_EDNS0.
8499 * include/resolv.h: Declare __res_nopt.
8500
00458b5b
UD
85012007-02-08 Jakub Jelinek <jakub@redhat.com>
8502
8503 [BZ #3944]
8504 * time/strptime_l.c (__strptime_internal): Set have_mon for
8505 %b/%B/%h. Set have_mon and have_mday if tm_mon and tm_mday
8506 have been computed from tm_yday and tm_year. Don't crash
8507 in day_of_the_week or day_of_the_year if not have_mon
8508 and tm_mon contains bogus value.
8509 * time/Makefile (tests): Add tst-strptime3.
8510 * time/tst-strptime3.c: New test.
8511
784aacea
UD
85122007-02-05 Jakub Jelinek <jakub@redhat.com>
8513
8514 [BZ #3957]
8515 * posix/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
8516 bit for RE_HAT_LISTS_NOT_NEWLINE.
8517 (build_charclass_op): Remove bogus comment.
8518 * posix/Makefile (tests): Add bug-regex27 and bug-regex28.
8519 * posix/bug-regex27.c: New test.
8520 * posix/bug-regex28.c: New test.
8521
bf7a2463
UD
85222007-02-03 Ulrich Drepper <drepper@redhat.com>
8523
8524 * po/sv.po: Update from translation team.
8525
f2ccf983
UD
85262007-02-02 Ulrich Drepper <drepper@redhat.com>
8527
8528 * nscd/nscd_helper.c (open_socket): Minor size optimization.
8529
73f50d5a
UD
85302007-02-02 Jakub Jelinek <jakub@redhat.com>
8531
8532 * include/locale.h (__uselocale): Add libc_hidden_proto.
8533 * locale/uselocale.c (__uselocale): Add libc_hidden_def.
8534
f6bf9e59
JJ
8535 * nscd/nscd_helper.c (open_socket): Use __gettimeofday instead of
8536 gettimeofday.
8537
4a44ce79
UD
85382007-02-01 Ulrich Drepper <drepper@redhat.com>
8539
8540 * sysdeps/unix/sysv/linux/i386/sysdep.h (PTR_MANGLE): Roll value before
8541 returning.
8542 (PTR_DEMANGLE): Real definition now that it's not the same as
8543 PRT_MANGLE anymore.
8544 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
8545
8546 * string/strerror_l.c: New file.
8547 * string/Makefile (routines): Add strerror_l.
8548 * string/string.h: Declare strerror_l.
8549 * string/Versions: Export strerror_l for GLIBC_2.6.
8550
58a2d52e
UD
85512007-01-31 Ulrich Drepper <drepper@redhat.com>
8552
8553 * nscd/nscd_helper.c (open_socket): Now takes request type and key
8554 as parameter. Construct request record. Try sending request
8555 before the first poll use, it usually succeeds. Adjust all
8556 callers.
8557 * nscd/nscd-client.h: Define MAXKEYLEN.
4a44ce79 8558 * nscd/connections.c (nscd_run): Don't define MAXKEYLEN here.
58a2d52e 8559
1a77d37f
JJ
85602007-01-31 Jakub Jelinek <jakub@redhat.com>
8561
8562 * nscd/nscd-client.h (__nscd_cache_search): Remove const qualifier
8563 from return value.
8564 * nscd/nscd_helper.c: Include string.h.
8565 (__nscd_cache_search): Remove const qualifier from return value.
8566 On strict alignment architectures check hash entry and data head
8567 alignment.
8568 * nscd/nscd_getpw_r.c (nscd_getpw_r): Don't crash or fail because
8569 mmapped data during GC cycle contains garbage. If
8570 __nscd_drop_map_ref fails, decrement mapped->counter when returning
8571 error or if retrying with NO_MAPPING, only __nscd_unmap if counter
8572 dropped to 0.
8573 * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
8574 * nscd/nscd_initgroups.c (__nscd_getgrouplist): Likewise.
8575 * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
8576 * nscd/nscd_getai.c (__nscd_getai): Likewise.
8577 * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
8578
ee314200
UD
85792007-01-30 Ulrich Drepper <drepper@redhat.com>
8580
8581 * misc/hsearch_r.c (hdestroy_r): Remove unnecessary test.
8582
14c8bf3b
UD
85832007-01-26 Ulrich Drepper <drepper@redhat.com>
8584
8585 * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Use register
8586 names not numbers in cfi_*.
8587
d2708e67
AJ
85882007-01-26 Andreas Jaeger <aj@suse.de>
8589
8590 * sysdeps/unix/sysv/linux/sys/personality.h (ADDR_NO_RANDOMIZE,
14c8bf3b 8591 ADDR_LIMIT_3GB, PER_LINUX_32BIT, PER_LINUX32_3GB): Add.
d2708e67
AJ
8592 Correct values of PER_HPUX and PER_OSF4.
8593
7fbc8784
UD
85942007-01-24 Ulrich Drepper <drepper@redhat.com>
8595
8aaf53ee 8596 * elf/dl-minimal.c: Undefine _itoa first.
7fbc8784
UD
8597 * stdio-common/_itoa.h: Define _itoa and _fitoa for 64-bit platforms.
8598 * malloc/mtrace.c: Revert last change.
8599 * posix/wordexp.c: Likewise.
8600
9d6cde3d
UD
86012007-01-24 Jakub Jelinek <jakub@redhat.com>
8602
8603 * sysdeps/i386/bits/byteswap.h (__bswap_32): Add __nocona__, __core2__
8604 and __geode__ to the list of i486+ CPUs.
8605 * sysdeps/x86_64/bits/byteswap.h (__bswap_32): Likewise.
8606
c1f0486a
UD
86072007-01-23 Ulrich Drepper <drepper@redhat.com>
8608
8609 * stdio-common/_itoa.c: Include <limits.h>.
8610 * stdio-common/_itowa.c: Likewise.
8611
6cae3957
UD
86122007-01-22 Ulrich Drepper <drepper@redhat.com>
8613
765bbb24
UD
8614 * stdio-common/_itowa.c: Don't compile _itowa for 64-bit
8615 platforms.
8616 * stdio-common/_itoa.c: Don't compile in _itoa and _fitoa for
8617 64-bit platforms.
8618 * malloc/mtrace.c (tr_where): Use _fitoa_word instead of _fitoa if
8619 possible.
8620 * posix/wordexp.c (parse_arith): Use _itoa_word instead of _itoa
8621 if possible.
8622
6cae3957
UD
8623 [BZ #3902]
8624 * stdio-common/_itoa.c (_itoa): Make sure at least a zero is emitted.
8625 * stdio-common/Makefile (tests): Add bug17.
8626 * stdio-common/bug17.c: New file.
8627
ddaafd04
UD
86282007-01-19 Ulrich Drepper <drepper@redhat.com>
8629
8630 * iconvdata/brf.c: New file.
439201de
UD
8631 * iconvdata/testdata/BRF: New file.
8632 * iconvdata/testdata/BRF..UTF8: New file.
8633 Contributed by Samuel Thibault <samuel.thibault@ens-lyon.org>.
ddaafd04
UD
8634 * iconvdata/Makefile: Add rules to build BRF.
8635 * iconvdata/TESTS: Add BRF entry.
8636 * iconvdata/gconv-modules: Likewise.
8637 * iconvdata/tst-tables.sh: Likewise.
ddaafd04 8638
9e6e344e
UD
86392007-01-18 Anton Nikishaev <anton.nik@gmail.com>
8640
8641 * wcsmbs/wchar.h (wcstoll): Fix comment, function returns value of
8642 type `long long int', not `long int'.
8643 (wcstoq): Likewise.
8644
299f7b0f
UD
86452007-01-18 Ulrich Drepper <drepper@redhat.com>
8646
8647 * scripts/gen-as-const.awk: Add cast to long to avoid int promotion
8648 of values on 64-bit platforms which are too large.
8649
cd8127cc
JJ
86502007-01-12 Steven Munroe <sjmunroe@us.ibm.com>
8651 Joe Kerian <jkerian@us.us.ibm.com>
8652
8653 [BZ #2749]
8654 * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Include
8655 <math_ldbl_opt.h>. Remove weak_alias. Use long_double_symbol macro.
8656 (__copysignl): Use signbit() for comparison.
8657 * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c (__fabsl): Correct parms for
8658 SET_LDOUBLE_WORDS64.
8659
8660 [BZ #2423, #2749]
8661 * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Don't include <fenv_libc.h>.
8662 (__ceill): Remove calls to fegetround(), fesetround().
8663 * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
8664 * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
8665 * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
8666
b3acfdf7
JJ
86672007-01-17 Jakub Jelinek <jakub@redhat.com>
8668
4a2e03c6
JJ
8669 * nscd/nscd_getserv_r.c (nscd_getserv_r): Fix pastos.
8670
b3acfdf7
JJ
8671 * sysdeps/unix/sysv/linux/getdents.c (offsetof): Remove.
8672
1476bce6
UD
86732007-01-17 Ulrich Drepper <drepper@redhat.com>
8674
8675 * sysdeps/unix/sysv/linux/fatal-prepare.h: Use PTHFCT_CALL to
8676 demangle pointer.
8677 * csu/libc-start.c: Likewise.
8678
d78bce1c
UD
86792007-01-16 Ulrich Drepper <drepper@redhat.com>
8680
8681 * sysdeps/posix/system.c: Remove NO_WAITPID support, it cannot
8682 really work anyway.
8683
1bd79025
UD
86842007-01-15 Ulrich Drepper <drepper@redhat.com>
8685
000b027e
UD
8686 * nscd/connections.c (servinfo): Renamed to reqinfo. Change all
8687 users.
8688 (handle_request): Remove unnecessary tests.
8689
1bd79025
UD
8690 * nscd/cache.c (cache_add): Record the failure to add to the cache.
8691
d68f5d2c
JJ
86922007-01-15 Jakub Jelinek <jakub@redhat.com>
8693
8694 * soft-fp/op-common.h (FP_TRUNC): When truncating a NaN, clear
8695 workbits in semi-raw fraction.
8696
8697 * math/test-misc.c: Add new tests.
8698
86992007-01-14 Steven Munroe <sjmunroe@us.ibm.com>
8700
8701 * math/basic-test.c: Include test-skeleton.c.
8702 (TEST_TRUNC): Define.
8703 (truncdfsf_test, trunctfsf_test, trunctfdf_test): New.
8704 (main): Rename to ...
8705 (do_test): ...this. Run new tests.
8706 (TEST_FUNCTION): Define.
8707
87082006-10-05 Steven Munroe <sjmunroe@us.ibm.com>
8709 Joe Kerian <jkerian@us.us.ibm.com>
8710
8711 [BZ #2749]
8712 * soft-fp/op-4.h (__FP_FRAC_SUB_3, __FP_FRAC_SUB_4): Correct borrow
8713 handling for high words.
8714 * soft-fp/op-common.h (_FP_OVERFLOW_SEMIRAW): Always set inexact
8715 and overflow for infinity.
8716
4e35ef2c
UD
87172007-01-15 Ulrich Drepper <drepper@redhat.com>
8718
2a1dea97
UD
8719 * nscd/connections.c (handle_request): Add a __builtin_expect.
8720
9691d83c
UD
8721 * nscd/connections.c (serv2db): Change type into structure which
8722 also says whether this is a request for data. Renamed to
8723 servinfo. All users changed.
8724 (handle_request): Much simpler test whether we should search the cache.
8725
49ee6d79
UD
8726 * nscd/connections.c (handle_request): Fix thinko in selinux test
8727 invocation.
8728
4e35ef2c
UD
8729 * sysdeps/generic/ldsodefs.h: Define DL_LOOKUP_SCOPE_LOCK.
8730 * elf/dl-lookup.c (add_dependency): If scope map is locked, unlock
8731 it before getting dl_load_lock and then relock.
8732 (_dl_lookup_symbol_x): Pass flags to add_dependency.
8733 When rerunning _dl_lookup_symbol_x, compute symbol_scope again in
8734 case we unlocked the scope.
8735 * elf/dl-runtime.c (_dl_fixup): Pass DL_LOOKUP_SCOPE_LOCK to
8736 _dl_lookup_symbol_x in case we locked the scope.
8737 (_dl_profile_fixup): Likewise.
8738 * elf/dl-sym.c (do_sym): In flags passed to call_dl_lookup, also
8739 set DL_LOOKUP_SCOPE_LOCK.
8740
23691ab2
UD
87412007-01-13 Ulrich Drepper <drepper@redhat.com>
8742
fb453d08
UD
8743 * inet/Makefile: Define CFLAGS-getsrvbynm_r.c and
8744 CFLAGS-getsrvbynpt_r.c.
8745 * nscd/getsrvbynm_r.c: New file.
8746 * nscd/getsrvbypt_r.c: New file.
8747 * nscd/nscd_getserv_r.c: New file.
8748 * nscd/servicescache.c: New file.
8749 * nscd/Makefile (routines): Add nscd_getserv_r.
8750 (nscd-modules): Add getsrvbynm_r, getsrvbypt_r, and servicescache.
8751 Define CFLAGS-servicescache.c, CFLAGS-getsrvbynm_r.c, and
8752 CFLAGS-getsrvbypt_r.c.
8753 * nscd/cache.c (prune_cache): Rewrite to get re-add function from
8754 table. Add entries for services database.
8755 * nscd/connections.c (serv2str): Mark as const. Add entries for
8756 services database.
8757 (dbs): Add .reset_res and servdb initialization.
8758 (serv2db): Add entries for services database.
8759 (verify_persistent_db): Accept dbnr == servdb.
8760 (invalidate_cache): Rewrite database name recognition to use a table.
8761 Call res_init() if .reset_res is set for database.
8762 (handle_request): Add code to handle services database.
8763 * nscd/gai.c: Don't define __getservbyname_r.
8764 * nscd/nscd-client.h (request_type): Remove LASTDBREQ, add
8765 GETSERVBYNAME, GETSERVBYPORT, GETFDSERV.
8766 (serv_response_header): Define.
8767 (struct datahead): Add serv_response_header member.
8768 * nscd/nscd.c (parse_opt): Rewrite parsing of -i parameter value
8769 using table.
8770 * nscd/nscd.conf: Add entries for services database.
8771 * nscd/nscd.h: Adjust declaration of dbnames and serv2str.
8772 Declare serv_iov_disabled.
8773 Declare addservbyname, readdservbyname, addservbyport, and
8774 readdservbyport.
8775 * nscd/nscd_conf.c (dbnames): Mark as const. Add services entry.
8776 (find_db): Fix error message.
8777 * nscd/nscd_proto.h: Declare __nss_not_use_nscd_services,
8778 __nscd_getservbyname_r, and __nscd_getservbyport_r.
8779 * nscd/selinux.c (perms): Add entries for services database.
8780 * nss/Versions: Export __nss_services_lookup with GLIBC_PRIVATE.
8781 * nss/nsswitch.c (__nss_disable_nscd): Also disable services database.
8782
8783 * nscd/grpcache.c: Remove obsolete code. Cleanups.
8784 * nscd/hstcache.c: Likewise.
8785 * nscd/pwdcache.c: Likewise.
8786
b21fa963
UD
8787 * nis/nss_nis/nis-service.c (_nss_nis_getservbyname_r): Correct
8788 computation of keylen.
8789
23691ab2
UD
8790 * include/string.h: Only redefine strndupa if this is really for
8791 libc code.
8792
8980796b
UD
87932007-01-12 Ulrich Drepper <drepper@redhat.com>
8794
4a4a65f2
UD
8795 * nscd/nscd_gethst_r.c: Minor cleanups.
8796
43397eaf
UD
8797 * nscd/connections.c (handle_request): Check selinux permissions
8798 for all non-admin commands.
8799
038a1a9f
UD
8800 * sysdeps/i386/i486/bits/atomic.h: Define
8801 atomic_compare_and_exchange_val_acq,
8802 atomic_compare_and_exchange_bool_acq, and atomic_exchange_and_add
8803 using __sync_* built-ins for gcc >= 4.1.
8804 * sysdeps/x86_64/bits/atomic.h: Likewise.
8805
8980796b
UD
8806 [BZ #3840]
8807 * scripts/check-local-headers.sh: Restrict to testing .o.d, .os.d,
8808 and .oS.d files.
8809
32c075e1
JJ
88102007-01-05 Steven Munroe <sjmunroe@us.ibm.com>
8811
8812 * stdlib/tst-makecontext.c: Include errno.h. Change main()
8813 to do_test(). Define TEST_FUNCTION. Include test-skeleton.c.
8814 (do_test): Check errno and exit(0) if ENOSYS.
8815
88162007-01-11 Jakub Jelinek <jakub@redhat.com>
8817
8818 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix handling of multi-byte
8819 thousands separators.
8820 * stdlib/Makefile: Add rules to build and run tst-strtod4.
8821 * stdlib/tst-strtod4.c: New test.
8822
8823 [BZ #3855]
8824 * stdlib/strtod_l.c (____STRTOF_INTERNAL): 0x. not followed by
8825 hexadecimal digit should accept just the initial 0.
8826 * stdlib/tst-strtod2.c (tests): New variable.
8827 (do_test): Run several tests rather than just one.
8828
11bf311e 88292007-01-11 Jakub Jelinek <jakub@redhat.com>
df859a0c 8830
11bf311e
UD
8831 * sysdeps/i386/soft-fp/sfp-machine.h: Remove.
8832 * sysdeps/x86_64/soft-fp/sfp-machine.h: Likewise.
df859a0c 8833
11bf311e 88342007-01-10 Ulrich Drepper <drepper@redhat.com>
32c075e1 8835
11bf311e
UD
8836 * io/fts.c: Make sure fts_cur is always valid after return from
8837 fts_read.
8838 Patch by Miloslav Trmac <mitr@redhat.com>.
64a0aa0f 8839
11bf311e 88402006-10-27 Richard Sandiford <richard@codesourcery.com>
32c075e1 8841
11bf311e
UD
8842 * elf/elf.h (R_MIPS_GLOB_DAT): Define.
8843 (R_MIPS_NUM): Bump by 1.
32c075e1 8844
11bf311e 88452007-01-03 Jakub Jelinek <jakub@redhat.com>
32c075e1 8846
11bf311e
UD
8847 * posix/execvp.c: Include alloca.h.
8848 (allocate_scripts_argv): Renamed to...
8849 (scripts_argv): ... this. Don't allocate buffer here nor count
8850 arguments.
8851 (execvp): Use alloca if possible.
8852 * posix/Makefile: Add rules to build and run tst-vfork3 test.
8853 * posix/tst-vfork3.c: New test.
32c075e1
JJ
8854
88552007-01-03 Ulrich Drepper <drepper@redhat.com>
8856
8857 * string/Makefile (tst-strxfrm2-ENV): Define.
11bf311e 8858 * stdlib/Makefile (tst-strtod3-ENV): Define.
32c075e1 8859
11bf311e 88602007-01-02 Ulrich Drepper <drepper@redhat.com>
32c075e1 8861
11bf311e
UD
8862 * posix/getconf.c: Update copyright year.
8863 * nss/getent.c: Likewise.
8864 * iconv/iconvconfig.c: Likewise.
8865 * iconv/iconv_prog.c: Likewise.
8866 * elf/ldconfig.c: Likewise.
8867 * catgets/gencat.c: Likewise.
8868 * csu/version.c: Likewise.
8869 * elf/ldd.bash.in: Likewise.
8870 * elf/sprof.c (print_version): Likewise.
8871 * locale/programs/locale.c: Likewise.
8872 * locale/programs/localedef.c: Likewise.
8873 * nscd/nscd.c (print_version): Likewise.
8874 * debug/xtrace.sh: Likewise.
8875 * malloc/memusage.sh: Likewise.
8876 * malloc/mtrace.pl: Likewise.
8877 * debug/catchsegv.sh: Likewise.
64a0aa0f 8878
11bf311e 88792006-12-24 Ulrich Drepper <drepper@redhat.com>
48576885 8880
11bf311e
UD
8881 * malloc/malloc.c (sYSMALLOc): Remove some unnecessary alignment
8882 attempts.
48576885 8883
11bf311e 88842006-12-23 Ulrich Drepper <drepper@redhat.com>
3b6667a4 8885
11bf311e 8886 * posix/wordexp.c: Remove some unnecessary tests.
3b6667a4 8887
33c6de58
UD
88882006-12-22 Gavin Romig-Koch <gavin@redhat.com>
8889
8890 * nis/nss_compat/compat-grp.c (internal_getgrgid_r): Don't
8891 blacklist the group till after we look it up.
8892
fc242bef
UD
88932006-12-21 Ulrich Drepper <drepper@redhat.com>
8894
8895 * include/atomic.h (atomic_forced_read): New macro.
8896
11bf311e
UD
88972006-12-20 SUGIOKA Toshinobu <sugioka@itonet.co.jp>
8898
8899 * sysdeps/unix/sysv/linux/sh/bits/shm.h: New file.
8900
a12dcecc
UD
89012006-12-19 Jakub Jelinek <jakub@redhat.com>
8902
11bf311e
UD
8903 * nss/getXXbyYY_r.c: Include atomic.h.
8904 (INTERNAL (REENTRANT_NAME)): Write startp after start_fct,
8905 add atomic_write_barrier () in between.
8906
a12dcecc
UD
8907 * stdlib/Makefile (tests): Add tst-makecontext.
8908 * stdlib/tst-makecontext.c: New test.
8909
8910 * sysdeps/unix/sysv/linux/powerpc/powerpc32/makecontext.S
8911 (__makecontext): Don't realign uc_mcontext.uc_regs.
8912
11bf311e 89132006-11-28 Jakub Jelinek <jakub@redhat.com>
594d423a 8914
11bf311e
UD
8915 * elf/dl-support.c: Include dl-procinfo.h.
8916 * sysdeps/powerpc/dl-procinfo.h (PPC_PLATFORM_POWER4,
8917 PPC_PLATFORM_PPC970, PPC_PLATFORM_POWER5, PPC_PLATFORM_POWER5_PLUS,
8918 PPC_PLATFORM_POWER6, PPC_PLATFORM_CELL_BE, PPC_PLATFORM_POWER6X):
8919 Define.
8920 (_dl_string_platform): Use PPC_PLATFORM_* macros instead of
8921 hardcoded constants.
8922 * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_platform): Use
8923 PPC_PLATFORM_* macros for array designators.
594d423a 8924
11bf311e 89252006-11-11 Steven Munroe <sjmunroe@us.ibm.com>
594d423a 8926
11bf311e
UD
8927 * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Add 3 new cap
8928 names to the beginning.
8929 (_dl_powerpc_platforms): Add "power6x".
8930 * sysdeps/powerpc/dl-procinfo.h (_DL_HWCAP_FIRST): Decrease.
8931 (HWCAP_IMPORTANT): Add PPC_FEATURE_HAS_DFP.
8932 (_DL_PLATFORMS_COUNT): Increase.
8933 (_dl_string_platform): Handle power6x case.
8934 * sysdeps/powerpc/sysdep.h (PPC_FEATURE_PA6T, PPC_FEATURE_HAS_DFP,
8935 PPC_FEATURE_POWER6_EXT): Define.
8936 (PPC_FEATURE_POWER5, PPC_FEATURE_POWER5_PLUS): Correct Comment.
594d423a 8937
5bcba0ed
UD
89382006-12-18 Jakub Jelinek <jakub@redhat.com>
8939
8940 [BZ #3747]
8941 * stdlib/jrand48_r.c (__jrand48_r): Make sure result is in the
11bf311e 8942 [-2^31 .. 2^31) range.
5bcba0ed
UD
8943 * stdlib/tst-rand48.c (main): Fix expected values for 64-bit
8944 targets.
8945 * stdlib/tst-rand48-2.c: New test.
8946 * stdlib/Makefile (tests): Add tst-rand48-2.
8947
9e1444fc
UD
89482006-12-14 Jakub Jelinek <jakub@redhat.com>
8949
8950 * misc/tst-pselect.c (do_test): Fix sigblock argument.
8951
36775704
UD
89522006-12-14 Ulrich Drepper <drepper@redhat.com>
8953
8954 * misc/tst-pselect.c (do_test): Make sure the helper process is
8955 terminating when the test is aborted.
8956
1e88bd0f
UD
89572006-12-13 Ulrich Drepper <drepper@redhat.com>
8958
11bf311e
UD
8959 * sysdeps/unix/sysv/linux/bits/statvfs.h: Define ST_RELATIME.
8960 * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
8961 Handle relatime mount option.
8962
1e88bd0f
UD
8963 [BZ #2337]
8964 * libio/Makefile (tests): Add tst-setvbuf1.
8965 * libio/tst-setvbuf1.c: New file.
8966
89672006-12-08 Jakub Jelinek <jakub@redhat.com>
8968
8969 [BZ #2337]
8970 * libio/genops.c (__uflow): Fix a typo.
8971 * libio/wfiledoalloc.c (_IO_wfile_doallocate): Don't stat
8972 nor set _IO_LINE_BUF bit here. Size the wide buffer based on
8973 the narrow buffer size.
8974
89752006-11-24 Jakub Jelinek <jakub@redhat.com>
8976
8977 [BZ #2337]
8978 * libio/libio.h (_IO_FLAGS2_USER_WBUF): Define.
8979 * libio/wgenops.c (_IO_wsetb, _IO_wdefault_finish): Test and set
8980 _IO_FLAGS2_USER_WBUF bit in _flags2 instead of _IO_USER_BUF bit
8981 in _flags.
8982 * libio/wstrops.c (_IO_wstr_overflow, enlarge_userbuf,
8983 _IO_wstr_finish): Likewise.
8984 * libio/wmemstream.c (open_wmemstream): Likewise.
8985 * libio/fileops.c (_IO_new_file_close_it): Call _IO_set[bgp]
8986 even for wide streams.
8987
11bf311e 89882006-12-13 Jakub Jelinek <jakub@redhat.com>
1f55ce48 8989
11bf311e
UD
8990 * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S: Include
8991 kernel-features.h.
8992
89932006-12-11 Ulrich Drepper <drepper@redhat.com>
8994
8995 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Parse thousand
8996 separators also if no non-zero digits found.
8997 * stdlib/Makefile (tests): Add tst-strtod3.
1f55ce48 8998
d117c1ce
UD
89992006-12-09 Ulrich Drepper <drepper@redhat.com>
9000
f85fb97b
UD
9001 [BZ #3632]
9002 * include/features.h: Fix comment about default value for
9003 _POSIX_C_SOURCE.
9004
11bf311e
UD
9005 [BZ #3664]
9006 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix test to recognize
9007 empty parsed strings.
9008 * stdlib/Makefile (tests): Add tst-strtod2.
9009 * stdlib/tst-strtod2.c: New file.
9010
9011 [BZ #3673]
9012 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix exp_limit
9013 computation.
9014 * stdlib/Makefile (tests): Add tst-atof2.
9015 * stdlib/tst-atof2.c: New file.
9016
9017 [BZ #3674]
9018 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Adjust exponent value
9019 correctly if removing trailing zero of hex-float.
9020 * stdlib/Makefile (tests): Add tst-atof1.
9021 * stdlib/tst-atof1.c: New file.
9022
a822d9f4
UD
90232006-12-09 Jakub Jelinek <jakub@redhat.com>
9024
11bf311e
UD
9025 * misc/mntent_r.c (__hasmntopt): Check p[optlen] even when p == rest.
9026 Start searching for next comma at p rather than rest.
9027 * misc/Makefile (tests): Add tst-mntent2.
9028 * misc/tst-mntent2.c: New test.
9029
a822d9f4
UD
9030 * misc/getusershell.c (initshells): Check for integer overflows.
9031 Make strings buffer one bigger as fgets always succeeds when second
9032 argument is 1. Don't use calloc for shells array. Disallow
11bf311e 9033 / as shell.
f0d5e1f6 9034
11bf311e 90352006-12-08 Ulrich Drepper <drepper@redhat.com>
f0d5e1f6 9036
11bf311e
UD
9037 * malloc/memusage.c: Handle realloc with new size of zero and
9038 non-NULL pointer correctly.
9039 (me): Really write first record twice.
9040 (struct entry): Make format bi-arch safe.
9041 (dest): Write out more realloc statistics.
9042 * malloc/memusagestat.c (struct entry): Make format bi-arch safe.
32c075e1 9043
11bf311e 90442006-12-05 Jakub Jelinek <jakub@redhat.com>
32c075e1 9045
11bf311e 9046 * nis/nis_subr.c (nis_getnames): Revert last change.
32c075e1 9047
f0d5e1f6
UD
90482006-12-04 Jakub Jelinek <jakub@redhat.com>
9049
9050 * sysdeps/unix/sysv/linux/ttyname.c: Include termios.h.
9051 (ttyname): Use tcgetattr instead of isatty, don't set errno to ENOTTY.
9052 * sysdeps/unix/sysv/linux/ttyname_r.c: Include termios.h.
9053 (__ttyname_r): Use tcgetattr instead of isatty, don't set errno to
9054 ENOTTY.
9055 * io/Makefile: Add rules to build and run tst-ttyname_r test.
9056 * io/tst-ttyname_r.c: New test.
9057
11bf311e 90582006-12-03 Kaz Kojima <kkojima@rr.iij4u.or.jp>
5df4fe08 9059
11bf311e 9060 * sysdeps/unix/sysv/linux/sh/sys/io.h: Removed.
5df4fe08 9061
11bf311e 90622006-11-30 H.J. Lu <hongjiu.lu@intel.com>
ee50871d 9063
11bf311e
UD
9064 * sysdeps/i386/i686/memcmp.S: Use jump table as the base of
9065 jump table entries.
9066
90672006-11-30 Jan Kratochvil <jan.kratochvil@redhat.com>
9068
9069 * sysdeps/unix/sysv/linux/i386/clone.S: Provide CFI for the outermost
9070 `clone' function to ensure proper unwinding stop of gdb.
9071 * sysdeps/unix/sysv/linux/x86_64/clone.S: Likewise.
9072
90732006-12-01 Ulrich Drepper <drepper@redhat.com>
9074
9075 * nscd/nscd.init: Remove obsolete and commented-out -S option
9076 handling.
9077
90782006-11-23 Jakub Jelinek <jakub@redhat.com>
9079
9080 [BZ #3514]
9081 * manual/string.texi (strncmp): Fix pastos from wcscmp description.
9082
9083 [BZ #3515]
9084 * manual/string.texi (strtok): Remove duplicate paragraph.
9085
90862006-12-01 Jan Kratochvil <jan.kratochvil@redhat.com>
9087
9088 * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Fix compatibility with
9089 libgcc not supporting `rflags' unwinding (register # >= 17).
9090
90912006-11-30 Jakub Jelinek <jakub@redhat.com>
9092
9093 * sunrpc/svc_run.c (svc_run): Set my_pollfd to new_pollfd if realloc
9094 succeeded.
9095
90962006-11-29 Daniel Jacobowitz <dan@codesourcery.com>
9097 Jakub Jelinek <jakub@redhat.com>
9098 Jan Kratochvil <jan.kratochvil@redhat.com>
9099
9100 * sysdeps/unix/sysv/linux/x86_64/sigaction.c (restore_rt): Add correct
9101 unwind information.
9102 * sysdeps/unix/sysv/linux/x86_64/Makefile: Provide symbols for
9103 'restore_rt' even in the 'signal' directory.
9104 * sysdeps/unix/sysv/linux/x86_64/ucontext_i.sym: Extend the regs list.
ee50871d 9105
b1a758f3
UD
91062006-11-27 Jakub Jelinek <jakub@redhat.com>
9107
9108 [BZ #3559]
9109 * sunrpc/svc_run.c (svc_run): Fail instead of segfaulting if
11bf311e
UD
9110 malloc crashed. Don't allocate memory unnecessarily in each
9111 loop.
b1a758f3 9112
11bf311e 91132006-10-21 Jakub Jelinek <jakub@redhat.com>
854d1124 9114
11bf311e 9115 * resolv/mapv4v6addr.h (map_v4v6_address): Fix last change.
dfc99a56 9116
11bf311e 91172006-11-20 Ulrich Drepper <drepper@redhat.com>
dfc99a56 9118
11bf311e 9119 * resolv/mapv4v6addr.h (map_v4v6_address): Optimize a bit.
852d657c 9120
11bf311e 91212006-11-18 Bruno Haible <bruno@clisp.org>
852d657c 9122
11bf311e
UD
9123 * sysdeps/unix/sysv/linux/i386/getgroups.c (__getgroups): Invoke
9124 __sysconf only after having tried to call getgroups32.
36c0a636 9125
11bf311e 91262006-11-19 Ulrich Drepper <drepper@redhat.com>
36c0a636 9127
11bf311e
UD
9128 * nss/nss_files/files-hosts.c (LINE_PARSER): Support IPv6-style
9129 addresses for IPv4 queries if they can be mapped.
b1f0c2a6 9130
11bf311e 91312006-11-16 Jakub Jelinek <jakub@redhat.com>
b1f0c2a6 9132
11bf311e
UD
9133 * sysdeps/x86_64/fpu/s_copysignf.S (__copysignf): Switch to .text.
9134 * sysdeps/x86_64/fpu/s_copysign.S (__copysign): Likewise.
9135 (signmask): Add .size directive.
9136 (othermask): Add .type directive.
bef8927a 9137
11bf311e 91382006-11-14 Ulrich Drepper <drepper@redhat.com>
2c53fa20 9139
11bf311e 9140 * po/nl.po: Update from translation team.
854d1124 9141
11bf311e 9142 * timezone/zdump.c: Redo fix for BZ #3137.
3f1e9205 9143
11bf311e 91442006-11-14 Jakub Jelinek <jakub@redhat.com>
bef8927a 9145
11bf311e
UD
9146 * nss/nss_files/files-alias.c (get_next_alias): Set line back
9147 to first_unused after parsing :include: file.
5c2af134 9148
32c075e1 91492006-11-10 Ulrich Drepper <drepper@redhat.com>
e1b37083 9150
11bf311e
UD
9151 * timezone/africa: Update from tzdata2006o.
9152 * timezone/antarctica: Likewise.
9153 * timezone/asia: Likewise.
9154 * timezone/australasia: Likewise.
9155 * timezone/backward: Likewise.
9156 * timezone/europe: Likewise.
9157 * timezone/iso3166.tab: Likewise.
9158 * timezone/northamerica: Likewise.
9159 * timezone/southamerica: Likewise.
9160 * timezone/zone.tab: Likewise.
9161
9162 * time/tzfile.c (__tzfile_read): Extend to handle new file format
9163 on machines with 64-bit time_t.
9164
9165 * timezone/checktab.awk: Update from tzcode2006o.
9166 * timezone/ialloc.c: Likewise.
9167 * timezone/private.h: Likewise.
9168 * timezone/scheck.c: Likewise.
9169 * timezone/tzfile.h: Likewise.
9170 * timezone/tzselect.ksh: Likewise.
9171 * timezone/zdump.c: Likewise.
9172 * timezone/zic.c: Likewise.
9173
9174 [BZ #3483]
9175 * elf/ldconfig.c (main): Call setlocale and textdomain.
9176 Patch mostly by Benno Schulenberg <bensberg@justemail.net>.
9177
9178 [BZ #3480]
9179 * manual/argp.texi: Fix typos.
9180 * manual/charset.texi: Likewise.
9181 * manual/errno.texi: Likewise.
9182 * manual/filesys.texi: Likewise.
9183 * manual/lang.texi: Likewise.
9184 * manual/maint.texi: Likewise.
9185 * manual/memory.texi: Likewise.
9186 * manual/message.texi: Likewise.
9187 * manual/resource.texi: Likewise.
9188 * manual/search.texi: Likewise.
9189 * manual/signal.texi: Likewise.
9190 * manual/startup.texi: Likewise.
9191 * manual/stdio.texi: Likewise.
9192 * manual/sysinfo.texi: Likewise.
9193 * manual/syslog.texi: Likewise.
9194 * manual/time.texi: Likewise.
9195 Patch by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
9196
9197 [BZ #3465]
9198 * sunrpc/clnt_raw.c: Minimal message improvements.
9199 * sunrpc/pm_getmaps.c: Likewise.
9200 * nis/nss_nisplus/nisplus-publickey.c: Likewise.
9201 * nis/nis_print_group_entry.c: Likewise.
9202 * locale/programs/repertoire.c: Likewise.
9203 * locale/programs/charmap.c: Likewise.
9204 * malloc/memusage.sh: Likewise.
9205 * elf/dl-deps.c: Likewise.
9206 * locale/programs/ld-collate.c: Likewise.
9207 * libio/vswprintf.c: Likewise.
9208 * malloc/memusagestat.c: Likewise.
9209 * sunrpc/auth_unix.c: Likewise.
9210 * sunrpc/rpc_main.c: Likewise.
9211 * nscd/cache.c: Likewise.
9212 * locale/programs/repertoire.c: Unify output messages.
9213 * locale/programs/charmap.c: Likewise.
9214 * locale/programs/ld-ctype.c: Likewise.
9215 * locale/programs/ld-monetary.c: Likewise.
9216 * locale/programs/ld-numeric.c: Likewise.
9217 * locale/programs/ld-time.c: Likewise.
9218 * elf/ldconfig.c: Likewise.
9219 * nscd/selinux.c: Likewise.
9220 * elf/cache.c: Likewise.
9221 Patch mostly by Benno Schulenberg <bensberg@justemail.net>.
9222
5c2af134
UD
9223 [BZ #3451]
9224 * sysdeps/i386/fpu/bits/mathinline.h (floor): Make rounding mode
9225 change atomic.
9226 (ceil): Likewise.
9227
11bf311e
UD
92282006-11-10 Jakub Jelinek <jakub@redhat.com>
9229
9230 * string/strxfrm_l.c (STRXFRM): Fix trailing \1 optimization
9231 if N is one bigger than return value.
9232 * string/tst-strxfrm2.c (do_test): Also test strxfrm with l1 + 1
9233 and l1 last arguments, if buf is defined, verify the return value
9234 equals to strlen (buf) and verify no byte beyond passed length
9235 is modified.
9236
92372006-11-10 Ulrich Drepper <drepper@redhat.com>
9238
9239 * po/sv.po: Update from translation team.
9240
37afcf79
UD
92412006-11-09 Ulrich Drepper <drepper@redhat.com>
9242
9243 * sysdeps/unix/sysv/linux/x86_64/sysconf.c (intel_check_word): Add
9244 noinline attribute.
9245
92462006-11-10 Jakub Jelinek <jakub@redhat.com>
9247
9248 * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word): Add
9249 noinline attribute.
9250
11bf311e
UD
9251 * sysdeps/gnu/siglist.c (__old_sys_siglist, __old_sys_sigabbrev):
9252 Use __new_sys_siglist instead of _sys_siglist_internal as
9253 second macro argument.
9254 (_old_sys_siglist): Use declare_symbol_alias macro instead of
9255 strong_alias.
2692deea 9256
11bf311e
UD
92572006-11-09 Ulrich Drepper <drepper@redhat.com>
9258
9259 [BZ #3493]
9260 * posix/unistd.h (sysconf): Remove const attribute.
9261
9262 * sysdeps/posix/getaddrinfo.c (getaddrinfo): Fix test for
9263 temporary or deprecated addresses.
9264 Patch by Sridhar Samudrala <sri@us.ibm.com>.
9265
9266 * string/Makefile (tests): Add tst-strxfrm2.
9267 * string/tst-strxfrm2.c: New file.
9268
92692006-10-09 Jakub Jelinek <jakub@redhat.com>
9270
9271 * elf/dl-debug.c (_dl_debug_initialize): Check r->r_map for 0
9272 rather than r->r_brk.
2692deea
UD
9273
92742006-11-08 Jakub Jelinek <jakub@redhat.com>
9275
11bf311e
UD
9276 * string/strxfrm_l.c (STRXFRM): Do the trailing \1 removal
9277 optimization even if needed > n.
9278
2692deea
UD
9279 * elf/dl-load.c (decompose_rpath): Return bool rather than void.
9280 If l->l_name is on inhibit_rpath list, set sps->dirs to -1 and
9281 return false, otherwise return true.
9282 (cache_rpath): Return decompose_rpath return value.
9283
11bf311e
UD
92842006-11-07 Jakub Jelinek <jakub@redhat.com>
9285
9286 * include/libc-symbols.h (declare_symbol): Rename to...
9287 (declare_symbol_alias): ... this. Add ORIGINAL argument, imply
9288 strong_alias (ORIGINAL, SYMBOL) in asm to make sure it preceedes
9289 .size directive.
9290 * sysdeps/gnu/errlist-compat.awk: Adjust for declare_symbol_alias
9291 changes.
9292 * sysdeps/gnu/siglist.c: Likewise.
9293
92942006-11-03 Steven Munroe <sjmunroe@us.ibm.com>
9295
9296 * sysdeps/powerpc/fpu/bits/mathinline.h
9297 [__LIBC_INTERNAL_MATH_INLINES]: Moved to ...
9298 * sysdeps/powerpc/fpu/math_private.h: ...here. New file.
9299
93002006-11-05 Ulrich Drepper <drepper@redhat.com>
9301
9302 * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word):
9303 Update handling of cache descriptor 0x49 for new models.
9304 * sysdeps/unix/sysv/linux/x86_64/sysconf.c (intel_check_word):
9305 Likewise.
9306
9666e36c
UD
93072006-11-02 Jakub Jelinek <jakub@redhat.com>
9308
9309 * malloc/memusage.c (dest): Reset not_me back to false after
9310 printing statistics.
9311
11bf311e
UD
93122006-11-02 Ulrich Drepper <drepper@redhat.com>
9313
9314 * configure.in: Work around ld --help change and avoid -z relro
9315 test completely if the architecture doesn't care about security.
9316
93172006-11-01 Ulrich Drepper <drepper@redhat.com>
9318
9319 * po/sv.po: Update from translation team.
9320
93212006-10-31 Ulrich Drepper <drepper@redhat.com>
9322
9323 * stdlib/atexit.c (atexit): Don't mark as hidden when used to
9324 generate compatibility version.
9325
93262006-10-29 Ulrich Drepper <drepper@redhat.com>
9327
9328 * configure.in: Relax -z relro requirement a bit.
9329
9330 * po/sv.po: Update from translation team.
9331
93322006-10-29 Jakub Jelinek <jakub@redhat.com>
9333
9334 * elf/dl-sym.c (do_sym): Use RTLD_SINGLE_THREAD_P.
9335 * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Likewise.
9336 * elf/dl-close.c (_dl_close_worker): Likewise.
9337 * elf/dl-open.c (_dl_open_worker): Likewise.
9338 * sysdeps/generic/sysdep-cancel.h (RTLD_SINGLE_THREAD_P): Define.
9339
b2369ca3
UD
93402006-10-27 Ulrich Drepper <drepper@redhat.com>
9341
11bf311e
UD
9342 * configure.in: Require assembler support for visibility, compiler
9343 support for visibility and aliases, linker support for various -z
9344 options.
9345 * Makeconfig: Remove conditional code which now is unnecessary.
9346 * config.h.in: Likewise.
9347 * config.make.in: Likewise.
9348 * dlfcn/Makefile: Likewise.
9349 * elf/Makefile: Likewise.
9350 * elf/dl-load.c: Likewise.
9351 * elf/rtld.c: Likewise.
9352 * include/libc-symbols.h: Likewise.
9353 * include/stdio.h: Likewise.
9354 * io/Makefile: Likewise.
9355 * io/fstat.c: Likewise.
9356 * io/fstat64.c: Likewise.
9357 * io/fstatat.c: Likewise.
9358 * io/fstatat64.c: Likewise.
9359 * io/lstat.c: Likewise.
9360 * io/lstat64.c: Likewise.
9361 * io/mknod.c: Likewise.
9362 * io/mknodat.c: Likewise.
9363 * io/stat.c: Likewise.
9364 * io/stat64.c: Likewise.
9365 * libio/stdio.c: Likewise.
9366 * nscd/Makefile: Likewise.
9367 * stdlib/Makefile: Likewise.
9368 * stdlib/atexit.c: Likewise.
9369 * sysdeps/generic/ldsodefs.h: Likewise.
9370 * sysdeps/i386/dl-machine.h: Likewise.
9371 * sysdeps/i386/sysdep.h: Likewise.
9372 * sysdeps/i386/i686/memcmp.S: Likewise.
9373 * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
9374 * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
9375 * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
9376
9377 * Makerules: USE_TLS support is now default.
9378 * tls.make.c: Likewise.
9379 * csu/Versions: Likewise.
9380 * csu/libc-start.c: Likewise.
9381 * csu/libc-tls.c: Likewise.
9382 * csu/version.c: Likewise.
9383 * dlfcn/dlinfo.c: Likewise.
9384 * elf/dl-addr.c: Likewise.
9385 * elf/dl-cache.c: Likewise.
9386 * elf/dl-close.c: Likewise.
9387 * elf/dl-iteratephdr.c: Likewise.
9388 * elf/dl-load.c: Likewise.
9389 * elf/dl-lookup.c: Likewise.
9390 * elf/dl-object.c: Likewise.
9391 * elf/dl-open.c: Likewise.
9392 * elf/dl-reloc.c: Likewise.
9393 * elf/dl-support.c: Likewise.
9394 * elf/dl-sym.c: Likewise.
9395 * elf/dl-sysdep.c: Likewise.
9396 * elf/dl-tls.c: Likewise.
9397 * elf/ldconfig.c: Likewise.
9398 * elf/rtld.c: Likewise.
9399 * elf/tst-tls-dlinfo.c: Likewise.
9400 * elf/tst-tls1.c: Likewise.
9401 * elf/tst-tls10.h: Likewise.
9402 * elf/tst-tls14.c: Likewise.
9403 * elf/tst-tls2.c: Likewise.
9404 * elf/tst-tls3.c: Likewise.
9405 * elf/tst-tls4.c: Likewise.
9406 * elf/tst-tls5.c: Likewise.
9407 * elf/tst-tls6.c: Likewise.
9408 * elf/tst-tls7.c: Likewise.
9409 * elf/tst-tls8.c: Likewise.
9410 * elf/tst-tls9.c: Likewise.
9411 * elf/tst-tlsmod1.c: Likewise.
9412 * elf/tst-tlsmod13.c: Likewise.
9413 * elf/tst-tlsmod13a.c: Likewise.
9414 * elf/tst-tlsmod14a.c: Likewise.
9415 * elf/tst-tlsmod2.c: Likewise.
9416 * elf/tst-tlsmod3.c: Likewise.
9417 * elf/tst-tlsmod4.c: Likewise.
9418 * elf/tst-tlsmod5.c: Likewise.
9419 * elf/tst-tlsmod6.c: Likewise.
9420 * include/errno.h: Likewise.
9421 * include/link.h: Likewise.
9422 * include/tls.h: Likewise.
9423 * locale/global-locale.c: Likewise.
9424 * locale/localeinfo.h: Likewise.
9425 * malloc/arena.c: Likewise.
9426 * malloc/hooks.c: Likewise.
9427 * malloc/malloc.c: Likewise.
9428 * resolv/Versions: Likewise.
9429 * sysdeps/alpha/dl-machine.h: Likewise.
9430 * sysdeps/alpha/libc-tls.c: Likewise.
9431 * sysdeps/generic/ldsodefs.h: Likewise.
9432 * sysdeps/generic/tls.h: Likewise.
9433 * sysdeps/i386/dl-machine.h: Likewise.
9434 * sysdeps/ia64/dl-machine.h: Likewise.
9435 * sysdeps/ia64/libc-tls.c: Likewise.
9436 * sysdeps/mach/hurd/fork.c: Likewise.
9437 * sysdeps/mach/hurd/i386/tls.h: Likewise.
9438 * sysdeps/powerpc/powerpc32/dl-machine.c: Likwise.
9439 * sysdeps/powerpc/powerpc32/dl-machine.h: Likewise.
9440 * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
9441 * sysdeps/s390/libc-tls.c: Likewise.
9442 * sysdeps/s390/s390-32/dl-machine.h: Likewise.
9443 * sysdeps/s390/s390-64/dl-machine.h: Likewise.
9444 * sysdeps/sh/dl-machine.h: Likewise.
9445 * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
9446 * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
9447 * sysdeps/x86_64/dl-machine.h: Likewise.
9448
131c4428
UD
9449 * elf/dl-close.c (_dl_close_worker): Renamed from _dl_close and
9450 split out locking and parameter checking.
9451 (_dl_close): Call _dl_close_worker after locking and checking.
9452 * elf/dl-open.c (_dl_open): Call _dl_close_worker instead of
9453 _dl_close.
ffd0e1b7
UD
9454 * elf/Makefile: Add rules to build and run tst-thrlock.
9455 * elf/tst-thrlock.c: New file.
131c4428 9456
11bf311e
UD
9457 [BZ #3426]
9458 * stdlib/stdlib.h: Adjust comment for canonicalize_file_name to
9459 reality.
9460
b2369ca3
UD
9461 [BZ #3429]
9462 * elf/dl-open.c (dl_open_worker): Keep holding dl_load_lock until
131c4428 9463 we are sure we do not need it anymore for _dl_close. Also move
b2369ca3
UD
9464 the asserts inside the lock region.
9465 Patch mostly by Suzuki <suzuki@in.ibm.com>.
9466
11bf311e
UD
94672006-10-27 Jakub Jelinek <jakub@redhat.com>
9468
9469 * elf/dl-lookup.c (_dl_debug_bindings): Remove unused symbol_scope
9470 argument.
9471 (_dl_lookup_symbol_x): Adjust caller.
9472
9473 * sysdeps/generic/ldsodefs.h (struct link_namespaces): Remove
9474 _ns_global_scope.
9475 * elf/rtld.c (dl_main): Don't initialize _ns_global_scope.
9476
9477 * elf/dl-libc.c: Revert l_scope name changes.
9478 * elf/dl-load.c: Likewise.
9479 * elf/dl-object.c: Likewise.
9480 * elf/rtld.c: Likewise.
9481 * elf/dl-close.c (_dl_close): Likewise.
9482 * elf/dl-open.c (dl_open_worker): Likewise. If not SINGLE_THREAD_P,
9483 always use __rtld_mrlock_{change,done}. Always free old scope list
9484 here if not l_scope_mem.
9485 * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Revert l_scope name
9486 change. Never free scope list here. Just __rtld_mrlock_lock before
9487 the lookup and __rtld_mrlock_unlock it after the lookup.
9488 * elf/dl-sym.c: Likewise.
9489 * include/link.h (struct r_scoperec): Remove.
9490 (struct link_map): Replace l_scoperec with l_scope, l_scoperec_mem
9491 with l_scope_mem and l_scoperec_lock with l_scope_lock.
9492
94932006-10-25 Ulrich Drepper <drepper@redhat.com>
9494
9495 * sysdeps/gnu/netinet/tcp.h: Define TCP_CONGESTION.
9496
94972006-10-18 Ulrich Drepper <drepper@redhat.com>
9498
9499 * configure.in: Disable building profile libraries by default.
9500
609cf614
UD
95012006-10-17 Jakub Jelinek <jakub@redhat.com>
9502
9503 * sunrpc/xdr_mem.c (xdrmem_setpos): Don't compare addresses
9504 as signed longs, check for x_base + pos overflow.
9505 * sunrpc/Makefile (tests): Add tst-xdrmem2.
9506 * sunrpc/tst-xdrmem2.c: New test.
9507
11bf311e
UD
95082006-10-18 Ulrich Drepper <drepper@redhat.com>
9509
9510 * elf/dl-lookup.c (_dl_lookup_symbol_x): Add warning to
9511 _dl_lookup_symbol_x code.
9512
95132006-10-17 Jakub Jelinek <jakub@redhat.com>
9514
9515 * elf/dl-runtime.c: Include sysdep-cancel.h.
9516 (_dl_fixup, _dl_profile_fixup): Use __rtld_mrlock_* and
9517 scoperec->nusers only if !SINGLE_THREAD_P. Use atomic_*
9518 instead of catomic_* macros.
9519 * elf/dl-sym.c: Include sysdep-cancel.h.
9520 (do_sym): Use __rtld_mrlock_* and scoperec->nusers only
9521 if !SINGLE_THREAD_P. Use atomic_* instead of catomic_* macros.
9522 * elf/dl-close.c: Include sysdep-cancel.h.
9523 (_dl_close): Use __rtld_mrlock_* and scoperec->nusers only
9524 if !SINGLE_THREAD_P. Use atomic_* instead of catomic_* macros.
9525 * elf/dl-open.c: Include sysdep-cancel.h.
9526 (dl_open_worker): Use __rtld_mrlock_* and scoperec->nusers only
9527 if !SINGLE_THREAD_P. Use atomic_* instead of catomic_* macros.
9528
95292006-10-17 Jakub Jelinek <jakub@redhat.com>
9530
9531 [BZ #3313]
9532 * malloc/malloc.c (malloc_consolidate): Set maxfb to address of last
9533 fastbin rather than end of fastbin array.
9534
95352006-10-18 Ulrich Drepper <drepper@redhat.com>
9536
9537 * sysdeps/i386/i486/bits/atomic.h (catomic_decrement): Use correct
9538 body macro.
9539 * sysdeps/x86_64/bits/atomic.h
9540 (__arch_c_compare_and_exchange_val_64_acq): Add missing casts.
9541 (catomic_decrement): Use correct body macro.
9542
95432006-10-17 Jakub Jelinek <jakub@redhat.com>
9544
9545 * include/atomic.h: Add a unique prefix to all local variables
9546 in macros.
9547 * csu/tst-atomic.c (do_test): Test also catomic_* macros.
9548
4a85a8ee
UD
95492006-10-16 Ulrich Drepper <drepper@redhat.com>
9550
9551 [BZ #3369]
9552 * sysdeps/posix/getaddrinfo.c (rfc3484_sort): Fix typos in rules 4
9553 and 7.
9554
11bf311e
UD
95552006-10-14 Ulrich Drepper <drepper@redhat.com>
9556
9557 * resolv/arpa/nameser.h: Document that ns_t_a6 is deprecated.
9558
ff8d96be
UD
95592006-10-13 Ulrich Drepper <drepper@redhat.com>
9560
11bf311e
UD
9561 [BZ #3313]
9562 * malloc/malloc.c (malloc_consolidate): Don't use get_fast_max to
9563 determine highest fast bin to consolidate, always look into all of
9564 them.
9565 (do_check_malloc_state): Only require for empty bins for large
9566 sizes in main arena.
9567
9568 * libio/stdio.h: Add more __wur attributes.
9569
ff8d96be
UD
9570 * elf/dl-minimal.c (realloc): Optimize last patch.
9571
90a0991a
UD
95722006-10-12 Richard Sandiford <richard@codesourcery.com>
9573
9574 [BZ #3352]
9575 * elf/dl-minimal.c (realloc): Let malloc() return a new pointer,
9576 and use memcpy() if it does.
ff8d96be 9577
11bf311e
UD
95782006-11-12 Andreas Jaeger <aj@suse.de>
9579
9580 [BZ #2510]
9581 * manual/search.texi (Hash Search Function): Clarify.
9582 (Array Search Function): Clarify.
9583
95842006-11-12 Joseph Myers <joseph@codesourcery.com>
9585
9586 [BZ #2830]
9587 * math/atest-exp.c (main): Cast hex value to mp_limb_t before
9588 shifting.
9589 * math/atest-exp2.c (read_mpn_hex): Likewise.
9590 * math/atest-sincos.c (main): Likewise.
9591
37fb7595
UD
95922006-10-11 Ulrich Drepper <drepper@redhat.com>
9593
11bf311e
UD
9594 * sysdeps/unix/sysv/linux/syscalls.list: Add epoll_pwait.
9595 * sysdeps/unix/sysv/linux/sys/epoll.h: Declare epoll_pwait.
9596 * sysdeps/unix/sysv/linux/Versions (libc): Add epoll_pwait for
9597 version GLIBC_2.6.
9598 * Versions.def: Add GLIBC_2.6 for libc.
9599
46c38bd7
UD
9600 * sysdeps/unix/sysv/linux/i386/sysdep.h (DOARGS_6): Fix offset.
9601
11bf311e
UD
9602 * sysdeps/i386/i486/bits/atomic.h: Add catomic_* support.
9603
96042006-10-11 Jakub Jelinek <jakub@redhat.com>
9605
9606 * malloc/malloc.c (_int_malloc): Remove unused any_larger variable.
9607
9608 * nis/nis_defaults.c (__nis_default_access): Don't call getenv twice.
9609
9610 * nis/nis_subr.c (nis_getnames): Use __secure_getenv instead of getenv.
9611 * sysdeps/generic/unsecvars.h: Add NIS_PATH.
9612
96132006-10-11 Ulrich Drepper <drepper@redhat.com>
9614
9615 * include/atomic.c: Define catomic_* operations.
9616 * sysdeps/x86_64/bits/atomic.h: Likewise. Fix a few minor problems.
9617 * stdlib/cxa_finalize.c: Use catomic_* operations instead of atomic_*.
9618 * malloc/memusage.c: Likewise.
9619 * gmon/mcount.c: Likewise.
9620 * elf/dl-close.c: Likewise.
9621 * elf/dl-open.c: Likewise.
9622 * elf/dl-profile.c: Likewise.
9623 * elf/dl-sym.c: Likewise.
9624 * elf/dl-runtime.c: Likewise.
9625 * elf/dl-fptr.c: Likewise.
9626 * resolv/res_libc.c: Likewise.
9627
2a6ee549
UD
96282006-10-10 Ulrich Drepper <drepper@redhat.com>
9629
9630 * nis/nis_subr.c (nis_getnames): Add trailing dot to NIS_PATH
9631 components which lack them.
9632
9633 * nis/nis_subr.c (nis_getnames): Make sure that we always return
9634 at least one entry consisting of the parameter concatenated with
9635 the domain.
9636
11bf311e 96372006-10-10 Roland McGrath <roland@frob.com>
c4f9fc3a 9638
11bf311e
UD
9639 * sysdeps/mach/hurd/utimes.c: Use a union to avoid an improper cast.
9640 * sysdeps/mach/hurd/futimes.c: Likewise.
9641 * sysdeps/mach/hurd/lutimes.c: Likewise.
9642
96432006-10-09 Ulrich Drepper <drepper@redhat.com>
9644 Jakub Jelinek <jakub@redhat.com>
9645
9646 Implement reference counting of scope records.
9647 * elf/dl-close.c (_dl_close): Remove all scopes from removed objects
9648 from the list in objects which remain. Always allocate new scope
9649 record.
9650 * elf/dl-open.c (dl_open_worker): When growing array for scopes,
9651 don't resize, allocate a new one.
9652 * elf/dl-runtime.c: Update reference counters before using a scope
9653 array.
9654 * elf/dl-sym.c: Likewise.
9655 * elf/dl-libc.c: Adjust for l_scope name change.
9656 * elf/dl-load.c: Likewise.
9657 * elf/dl-object.c: Likewise.
9658 * elf/rtld.c: Likewise.
9659 * include/link.h: Include <rtld-lowlevel.h>. Define struct
9660 r_scoperec. Replace r_scope with pointer to r_scoperec structure.
9661 Add l_scoperec_lock.
9662 * sysdeps/generic/ldsodefs.h: Include <rtld-lowlevel.h>.
9663 * sysdeps/generic/rtld-lowlevel.h: New file.
9664
9665 * include/atomic.h: Rename atomic_and to atomic_and_val and
9666 atomic_or to atomic_or_val. Define new macros atomic_and and
9667 atomic_or which do not return values.
9668 * sysdeps/x86_64/bits/atomic.h: Define atomic_and and atomic_or.
9669 Various cleanups.
9670 * sysdeps/i386/i486/bits/atomic.h: Likewise.
9671
9672 * po/sv.po: Update from translation team.
9673
96742006-10-07 Ulrich Drepper <drepper@redhat.com>
9675
9676 * Versions.def: Add GLIBC_2.6 to libpthread.
9677
9678 * include/shlib-compat.h (SHLIB_COMPAT): Expand parameters before use.
9679 (versioned_symbol): Likewise.
9680 (compat_symbol): Likewise.
9681
9682 * po/tr.po: Update from translation team.
feb87ad1 9683
4df92d57
UD
96842006-10-06 Ulrich Drepper <drepper@redhat.com>
9685
11bf311e
UD
9686 * nis/Banner: Removed. It's been integral part forever and the
9687 author info is incomplete anyway.
9688 * libio/Banner: Likewise.
9689
4df92d57
UD
9690 * nis/nis_table.c (nis_list): If __follow_path fails in the new
9691 code, make sure the nis_freeresult call doesn't crash and that the
9692 result is reported correctly.
9693
68361572
UD
96942006-09-27 Jakub Jelinek <jakub@redhat.com>
9695
9696 * nis/nis_table.c (nis_list): Handle FOLLOW_PATH | ALL_RESULTS
9697 when callback is NULL.
9698
9699 * nis/Versions (libnss_nisplus): Add
9700 _nss_nisplus_initgroups_dyn@@GLIBC_PRIVATE.
9701 * nis/Makefile (libnss_nisplus-routines): Add nisplus-initgroups.
9702 * nis/nss_nisplus/nisplus-grp.c (tablename_val, tablename_len,
9703 _nss_create_tablename): Rename to...
9704 (grp_tablename_val, grp_tablename_len, _nss_grp_create_tablename):
9705 ... these. No longer static.
9706 (internal_setgrent): Adjust users.
9707 (_nss_nisplus_getgrnam_r, _nss_nisplus_getgrgid_r): Likewise.
9708 Don't use locking around _nss_grp_create_tablename call.
9709 * nis/nss_nisplus/nisplus-initgroups.c: New file.
9710
11bf311e
UD
97112006-10-06 Ulrich Drepper <drepper@redhat.com>
9712
9713 * version.h (VERSION): Bump to 2.5.90 for new development tree.
9714
3a4e0609
UD
97152006-10-06 Andreas Jaeger <aj@suse.de>
9716
9717 * include/features.h (__GLIBC_MINOR__): It's glibc 2.5 now.
9718
97192006-10-06 Ulrich Drepper <drepper@redhat.com>
9720
9721 * po/pl.po: Update from translation team.
9722
9723 * nscd/nscd.c (main): Fix typo in message.
9724 Patch by Jakub Bogsz <qboosh@pld-linux.org>.
9725
97e57dee
UD
97262006-10-02 Jakub Jelinek <jakub@redhat.com>
9727
9728 [BZ #3291]
9729 * sysdeps/unix/sysv/linux/sparc/sparc64/pause.c: Include
9730 errno.h, signal.h, unistd.h and sysdep-cancel.h.
9731 (__sigprocmask): Define.
9732
768027a4
UD
97332006-10-02 Ulrich Drepper <drepper@redhat.com>
9734
9735 * elf/rtld.c (dl_main): Don't use prelinking if LD_DYNAMIC_WEAK is
9736 used.
9737
0b25a49a
UD
97382006-10-02 Jakub Jelinek <jakub@redhat.com>
9739
9740 * nscd/mem.c (mempool_alloc): Round array size to 16 bytes
9741 in oldtotal and newtotal calculation.
9742 * nscd/nscd-client.h (struct mapped_database): Add datasize
9743 field.
9744 * nscd/nscd_helper.c (get_mapping): Initialize datasize field.
9745 (__nscd_get_map_ref): Get a new mapping even if mapping's data_size
9746 increased.
9747 (__nscd_cache_search): Add checks to make sure we never reference
9748 data beyond the current mapping.
9749
a1286745
UD
97502006-10-02 Dmitry V. Levin <ldv@altlinux.org>
9751
d4ed7561
UD
9752 * sysdeps/posix/getaddrinfo.c (match_prefix): Make mask and val
9753 variables const to avoid compiler warnings.
9754
a1286745
UD
9755 * io/fts.c (fts_close): Remove redundant checks.
9756 (fts_build): Likewise.
9757 (fts_palloc): Likewise.
9758
9759 * manual/message.texi (Advanced gettext functions,
9760 Using gettextized software): Fix typos.
9761
f01e4069
UD
97622006-09-30 Ulrich Drepper <drepper@redhat.com>
9763
9764 * posix/glob.c (glob_in_dir): Add some comments and asserts to
9765 explain why there are no leaks.
9766
154619b5
UD
97672006-09-29 Ulrich Drepper <drepper@redhat.com>
9768
690c3947
UD
9769 * libio/wmemstream.c: Include <wchar.h>.
9770 * libio/bug-wmemstream1.c: Likewise.
9771 * libio/tst-wmemstream1.c: Likewise.
9772 * libio/tst-wmemstream2.c: Likewise.
9773
88cc61e8
UD
9774 * version.h (RELEASE): Bump to 2.5.
9775 * README: Regenerated.
9776
a70c18b0
UD
9777 * locale/iso-3166.def: Add Aaland Islands and Montenegro.
9778
154619b5
UD
9779 [BZ #3273]
9780 * nscd/nscd_initgroups.c (__nscd_getgrouplist): It is OK to have
9781 found no group members.
9782 Patch by Petr Baudis.
9783
97842006-09-29 Jakub Jelinek <jakub@redhat.com>
9785
9786 * elf/rtld.c (_dl_start_final): If not USE___THREAD, don't
9787 assert bootstrap_map.l_tls_modid is zero.
9788 (_dl_start): Initialize bootstrap_map.l_tls_modid to 0
9789 if USE___THREAD.
9790
1c31aa79
UD
97912006-09-27 Ulrich Drepper <drepper@redhat.com>
9792
9793 * libio/stdio.h: Move open_wmemstream prototype to ...
9794 * wcsmbs/wchar.h: ... here.
9795
f1122ec3
UD
97962006-09-25 Jakub Jelinek <jakub@redhat.com>
9797
9798 [BZ #3252]
9799 * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat): Handle only
9800 fchownat syscall and __ASSUME_LCHOWN_SYSCALL case inline, call
9801 __{,l}chown to handle the rest.
9802 * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Handle only
9803 fchownat syscall and __ASSUME_32BITUIDS case inline, call
9804 __{,l}chown to handle the rest.
9805 * sysdeps/unix/sysv/linux/sparc/sparc32/fchownat.c: Include
9806 i386/fchownat.c.
9807 * sysdeps/unix/sysv/linux/s390/s390-32/fchownat.c: Likewise.
9808 * sysdeps/unix/sysv/linux/sh/fchownat.c: Likewise.
9809
9810 [BZ #3253]
9811 * posix/glob.c (glob_in_dir): Don't alloca one struct globlink at a
9812 time, rather allocate increasingly bigger arrays of pointers, if
9813 possible with alloca, if too large with malloc.
9814
98152006-09-24 Jakub Jelinek <jakub@redhat.com>
9816
9817 * sysdeps/powerpc/fpu/libm-test-ulps: Updated.
9818
9819 * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Fix 2 typos.
9820
457b559e
UD
98212006-09-24 Ulrich Drepper <drepper@redhat.com>
9822
9823 * sysdeps/posix/getaddrinfo.c (rfc3484_sort): Implement rule 4,
9824 home addresses.
9825 * sysdeps/unix/sysv/linux/check_pf.c (make_request): Recognize
9826 IFA_F_HOMEADDRESS flag for interfaces.
9827 * include/ifaddrs.h (struct in6addrinfo): Define
9828 in6ai_homeaddress.
9829
4a132246
UD
98302006-09-21 Jakub Jelinek <jakub@redhat.com>
9831
9832 [BZ #3225]
9833 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h (PTR_MANGLE3,
9834 PTR_DEMANGLE3): Define.
9835 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h (PTR_MANGLE3,
9836 PTR_DEMANGLE3): Likewise.
9837 * sysdeps/powerpc/powerpc32/__longjmp-common.S (__longjmp): Use them.
9838 * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S (__longjmp):
9839 Likewise.
9840 * sysdeps/powerpc/powerpc64/__longjmp-common.S (__longjmp): Likewise.
9841
c69136ae
UD
98422006-09-20 Jakub Jelinek <jakub@redhat.com>
9843
9844 * po/libc.pot: Regenerated.
9845 * po/be.po: Updated.
9846 * po/ca.po: Likewise.
9847 * po/cs.po: Likewise.
9848 * po/da.po: Likewise.
9849 * po/de.po: Likewise.
9850 * po/el.po: Likewise.
9851 * po/en_GB.po: Likewise.
9852 * po/es.po: Likewise.
9853 * po/fi.po: Likewise.
9854 * po/fr.po: Likewise.
9855 * po/gl.po: Likewise.
9856 * po/hr.po: Likewise.
9857 * po/hu.po: Likewise.
9858 * po/ja.po: Likewise.
9859 * po/ko.po: Likewise.
9860 * po/nb.po: Likewise.
9861 * po/nl.po: Likewise.
9862 * po/pl.po: Likewise.
9863 * po/pt_BR.po: Likewise.
9864 * po/ru.po: Likewise.
9865 * po/rw.po: Likewise.
9866 * po/sk.po: Likewise.
9867 * po/sv.po: Likewise.
9868 * po/tr.po: Likewise.
9869 * po/zh_CN.po: Likewise.
9870 * po/zh_TW.po: Likewise.
9871
9872 [BZ #3137]
9873 * iconv/iconv_prog.c (main): Fix spelling in error message.
9874 * iconv/iconvconfig.c (main): Likewise.
9875 * locale/programs/ld-collate.c (handle_ellipsis): Likewise.
9876 * locale/programs/ld-ctype.c (charclass_symbolic_ellipsis): Likewise.
9877 * locale/programs/localedef.c (main): Likewise.
9878 * locale/programs/repertoire.c (repertoire_read): Likewise.
9879 * timezone/zdump.c (main): Likewise.
9880 * nscd/connections.c (handle_request): Fix spelling in log message.
9881 Patch by Malcolm Parsons <malcolm.parsons@gmail.com>.
9882
83b3108c
UD
98832006-09-20 Ulrich Drepper <drepper@redhat.com>
9884
9885 * inet/inet6_option.c: Also emit linker warnings for the RFC 2292
9886 interfaces.
9887
89210b4c
AJ
98882006-09-20 Andreas Jaeger <aj@suse.de>
9889
9890 * math/libm-test.inc (lrint_test_upward): Fix typo.
9891
6624dbc0
UD
98922006-06-17 Joseph S. Myers <joseph@codesourcery.com>
9893
9894 [BZ #2592]
9895 * math/libm-test.inc (lrint_test_tonearest): New function.
9896 (lrint_test_towardzero): New function.
9897 (lrint_test_downward): New function.
9898 (lrint_test_upward): New function.
9899 (main): Run these new tests.
9900 * sysdeps/ieee754/dbl-64/s_llrint.c (__llrint): Correct rounding
9901 of values near to 0.
9902 (two52): Use double not long double.
9903 * sysdeps/ieee754/dbl-64/s_lrint.c (__lrint): Likewise.
9904 * sysdeps/ieee754/flt-32/s_llrintf.c (__llrintf): Likewise.
9905 (two23): Use float not double.
9906 * sysdeps/ieee754/flt-32/s_lrintf.c (__lrintf): Likewise.
9907 (two23): Use float not double.
9908 * sysdeps/ieee754/ldbl-128/s_llrintl.c (__llrintl): Likewise.
9909 * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Likewise.
9910 * sysdeps/ieee754/ldbl-96/s_llrintl.c (__llrintl): Likewise.
9911 * sysdeps/ieee754/ldbl-96/s_lrintl.c (__lrintl): Likewise.
9912
60cb50c7
UD
99132006-09-20 Martin Schwidefsky <schwidefsky@de.ibm.com>
9914
9915 * sysdeps/unix/sysv/linux/s390/s390-32/makecontext.c (__makecontext):
9916 Cast sp to unsigned long to avoid compiler warning.
9917 Use __makecontext_ret function instead of a trampoline on the stack.
9918 (__makecontext_ret): New function.
9919 * sysdeps/unix/sysv/linux/s390/s390-64/makecontext.c: Likewise.
9920
33315ced
UD
99212006-09-19 Jakub Jelinek <jakub@redhat.com>
9922
9923 * elf/dl-cache.c (HWCAP_CHECK): If _DL_PLATFORMS_COUNT, but
9924 platform == -1, reject any libs with non-zero _DL_HWCAP_PLATFORM
9925 bits.
9926
1ee2ff20
UD
99272006-09-19 Ulrich Drepper <drepper@redhat.com>
9928
9929 * elf/dl-close.c (_dl_close): If dependency is not unloaded make
9930 sure no reference to the unloaded map's search list remains in the
9931 dependency's scope.
9932
99332006-09-16 Jakub Jelinek <jakub@redhat.com>
9934
9935 * elf/Makefile: Add rules to build and run unload7 test.
9936 * elf/unload7.c: New test.
9937 * elf/unload7mod1.c: New file.
9938 * elf/unload7mod2.c: New file.
9939
0466106e
UD
99402006-09-18 Jakub Jelinek <jakub@redhat.com>
9941
9942 * sysdeps/unix/sysv/linux/sys/ptrace.h (PT_GETEVENTMSG): Fix pasto.
9943 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h (PTRACE_SETOPTIONS,
9944 PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
9945 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h (PTRACE_SETOPTIONS,
9946 PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Likewise.
9947 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h (PTRACE_SETOPTIONS,
9948 PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Likewise.
9949 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h (PTRACE_SETOPTIONS,
9950 PTRACE_GETEVENTMSG): Likewise.
9951 (PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Change to the arch independent
9952 values.
9953
9c316a45
UD
99542006-09-17 Mike Frysinger <vapier@gentoo.org>
9955
0466106e
UD
9956 * sysdeps/unix/sysv/linux/sys/ptrace.h (PTRACE_SETOPTIONS,
9957 PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
9958 * sysdeps/unix/sysv/linux/ptrace.c (ptrace): Check PTRACE_SETOPTIONS,
9959 PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO and PTRACE_SETSIGINFO.
9c316a45
UD
9960
99612006-09-16 Jakub Jelinek <jakub@redhat.com>
9962
9963 * sysdeps/powerpc/powerpc32/register-dump.h (register_dump): Don't
9964 write '\0' to the fd.
9965 * sysdeps/mach/hurd/powerpc/register-dump.h (register_dump): Likewise.
9966 * sysdeps/powerpc/powerpc64/register-dump.h (register_dump): Likewise.
9967 Change regs to unsigned long pointer from unsigned int, fix fscr
9968 offset.
9969
fb146a76
UD
99702006-09-14 Jakub Jelinek <jakub@redhat.com>
9971
9972 * io/Makefile (CFLAGS-fstatat.c): Set.
9973 (CFLAGS-fstatat64.c): Likewise.
9974 (CFLAGS-mknodat.c): Likewise.
9975
9976 * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Comment fixes.
9977 * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
9978 * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Rewritten.
9979 * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Rewritten.
9980
4cd3633d
UD
99812006-09-14 Jakub Jelinek <jakub@redhat.com>
9982 Steven Munroe <sjmunroe@us.ibm.com>
fb146a76 9983
4cd3633d
UD
9984 * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Add 4 new cap
9985 names to the beginning. Rename "cell" to "cellbe".
9986 (_dl_powerpc_platforms): New.
9987 * sysdeps/powerpc/dl-procinfo.h (_DL_HWCAP_FIRST): Decrease.
9988 (HWCAP_IMPORTANT): Remove power{4,5,5+} and cell.
9989 (_DL_PLATFORMS_COUNT, _DL_FIRST_PLATFORM): Define.
9990 (_DL_HWCAP_PLATFORM): Define to new mask.
9991 (_dl_platform_string, _dl_string_platform): New functions.
9992 * sysdeps/powerpc/sysdep.h (PPC_FEATURE_BOOKE, PPC_FEATURE_SMT,
9993 PPC_FEATURE_ICACHE_SNOOP, PPC_FEATURE_ARCH_2_05): Define.
9994
30aa5785
UD
99952006-09-12 Jakub Jelinek <jakub@redhat.com>
9996
9997 [BZ #2526]
9998 * README.libm: Fix a thinko in sqrt algorithm description.
9999
10000 [BZ #3143]
10001 * manual/string.texi (argz_delete): Fix prototype.
10002 Patch by <alpt@freaknet.org>.
10003
100042006-08-26 Joseph Myers <joseph@codesourcery.com>
10005
10006 [BZ #3138]
10007 * io/test-lfs.c (do_prepare): Give name_len type size_t.
10008 * io/tst-fcntl.c (do_prepare): Likewise.
10009 * posix/tst-exec.c (do_prepare): Likewise.
10010 * posix/tst-preadwrite.c (do_prepare): Likewise.
10011 * posix/tst-spawn.c (do_prepare): Likewise.
10012 * posix/tst-truncate.c (do_prepare): Likewise.
10013 * rt/tst-aio.c (do_prepare): Likewise.
10014 * rt/tst-aio64.c (do_prepare): Likewise.
10015 * stdlib/test-canon2.c (do_prepare): Give test_dir_len type
10016 size_t.
10017
d26d01d1
UD
100182006-09-09 Ulrich Drepper <drepper@redhat.com>
10019
41aba3d7
UD
10020 [BZ #2821]
10021 * time/mktime.c (guess_time_tm): Fix overflow detection.
10022 * time/Makefile (tests): Add bug-mktime1.
10023 * time/bug-mktime1.c: New file.
10024
eaa51b47 10025 [BZ #3189, #3188]
d26d01d1 10026 * misc/sys/mman.h (remap_file_pages): Make available for _GNU_SOURCE.
eaa51b47 10027 (mremap): Likewise.
d26d01d1 10028
ba40cc15
UD
100292006-09-07 Jakub Jelinek <jakub@redhat.com>
10030
2b6a801e
UD
10031 [BZ #1006]
10032 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela):
10033 Ensure relocation doesn't clobber any bits outside of the
10034 immediate field for R_SPARC_TLS_LE_HIX22, R_SPARC_WDISP30,
10035 R_SPARC_HI22 and R_SPARC_H44.
10036
469615bd
UD
10037 [BZ #2775]
10038 * malloc/malloc.c (sYSMALLOc): Only call grow_heap if
10039 (long) (MINSIZE + nb - old_size) is positive.
10040
10041 * malloc/arena.c (grow_heap): When growing bail even if new_size
10042 is negative.
10043
ba40cc15
UD
10044 [BZ #3155]
10045 * sysdeps/powerpc/powerpc32/fpu/s_lrint.S (__lrint): Don't access
10046 stack below r1.
10047
243b9ac1
UD
100482006-09-06 Jakub Jelinek <jakub@redhat.com>
10049
ba40cc15
UD
10050 * posix/regex_internal.c (re_string_reconstruct): Handle
10051 offset < pstr->valid_raw_len && pstr->offsets_needed case.
10052 Ensure no bytes read before raw_mbs array. Pass a saved copy of
10053 pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
10054 re_string_context_at.
10055 * posix/Makefile: Add rules to build and run bug-regex26 test.
10056 * posix/bug-regex26.c: New test.
10057
243b9ac1
UD
10058 * locale/programs/ld-collate.c (collate_read): Goto sym_equiv_free
10059 rather than col_sym_free. Move seqp declaration earlier.
10060
10061 * resolv/gai_suspend.c (gai_suspend): Make sure result is initialized.
10062
d052233c
UD
100632006-09-05 Jakub Jelinek <jakub@redhat.com>
10064
10065 * nscd/initgrcache.c (addinitgroupsX): Move any_success
10066 decl before first goto out.
10067
71213dc2
UD
100682006-09-04 Jakub Jelinek <jakub@redhat.com>
10069
10070 * Makerules (shlib.lds): If have-hash-style, put .hash section
10071 at the end of the RO segment.
10072
100732006-09-04 Ulrich Drepper <drepper@redhat.com>
10074
10075 * elf/do-lookup.h (do_lookup_x): Initialize symidx in case the new
10076 style hash table format is used.
10077
03eeff83
UD
100782006-09-04 Jakub Jelinek <jakub@redhat.com>
10079
10080 * resolv/res_mkquery.c (res_nmkquery): Set hp->id to statp->id after
10081 randomization rather than before.
10082 * resolv/res_init.c (res_randomid): Don't call gettimeofday here.
10083
b80770b2
UD
100842006-08-31 Jakub Jelinek <jakub@redhat.com>
10085
ba40cc15 10086 * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Add ld.so.
b80770b2
UD
10087
10088 * malloc/malloc.c (_int_malloc): Use full list insert and not
10089 shortcut which assumes the list is empty for large requests
10090 too.
10091
10092 * elf/tst-addr1.c (do_test): Allow i.dli_sname "_IO_printf".
10093
99ea5991
UD
100942006-08-30 Jakub Jelinek <jakub@redhat.com>
10095
10096 * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h (splice): Add offin
10097 and offout arguments to the prototype.
10098 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (splice): Likewise.
10099 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h (splice): Likewise.
10100 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (splice): Likewise.
10101 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h (splice): Likewise.
10102 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h (splice): Likewise.
10103 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h (splice): Likewise.
10104 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h (splice): Likewise.
10105 * sysdeps/unix/sysv/linux/syscalls.list (splice): Adjust args string.
10106
4004a0a5
UD
101072006-08-28 Ulrich Drepper <drepper@redhat.com>
10108
950398e1
UD
10109 * elf/dl-load.c (_dl_init_paths): Expand DSTs.
10110
4004a0a5
UD
10111 * elf/dl-open.c (dl_open_worker): Allow $LIB and $PLATFORM in
10112 dlopen parameters.
10113
6e310111
UD
101142006-08-28 Jakub Jelinek <jakub@redhat.com>
10115
10116 * inet/getnameinfo.c (getnameinfo): For AF_INET, check errno
10117 only if herrno is NETDB_INTERNAL. Handle errors other than
10118 ERANGE outside of the loops, handle TRY_AGAIN.
10119
10120 * locale/programs/ld-ctype.c (translit_flatten): Issue error
10121 if other's ctype category was missing.
10122 * locale/programs/ld-collate.c (collate_read): Return if
10123 copy_locale's collate category is missing.
10124
07014fca
UD
101252006-08-27 Ulrich Drepper <drepper@redhat.com>
10126
10127 [BZ #2684]
10128 * malloc/malloc.c (public_rEALLOc): Try harder by using other
10129 arenas if allocation failed.
10130 Patch mostly by Jan Edler <jan.edler@indexengines.com>.
10131
71663747
UD
101322006-08-26 Ulrich Drepper <drepper@redhat.com>
10133
41999a1a
UD
10134 * malloc/malloc.c (bin_at): Rewrite to be more clear and to not
10135 waste bins[0..1].
10136 (malloc_state): Reduce bins size by 2.
10137 (_int_malloc): Fix test for large enough buffer for early termination.
10138 When no unsorted block matches perfectly and an exiting block has
10139 to be split, use full list insert and not shortcut which assumes
10140 the list is empty.
10141
71663747
UD
10142 * locale/programs/ld-ctype.c (ctype_read): Better patch for read
10143 failure.
10144
93b53ca2
UD
101452006-08-24 Ulrich Drepper <drepper@redhat.com>
10146
f5a82772
UD
10147 * locale/programs/ld-ctype.c (ctype_read): If CTYPE is NULL, don't
10148 do anything.
10149
2ac9ca73
UD
10150 * sysdeps/generic/ldsodefs.h (DL_ADDR_SYM_MATCH): For undefined
10151 symbol require exact match (these are PLTs).
10152 * sysdeps/unix/sysv/linux/powerpc/powerpc64/ldsodefs.h
10153 (_dl_ppc64_addr_sym_match): Likewise.
10154
93b53ca2
UD
10155 [BZ #2683]
10156 * elf/dl-addr.c (_dl_addr): Don't ignore all undefined symbols.
10157 If symbol has a value use it.
10158 * elf/tst-dladdr1.c: New file.
10159 * elf/Makefile: Add rules to build and run tst-addr1.
10160
7463d5cb
UD
101612006-08-24 Jakub Jelinek <jakub@redhat.com>
10162
10163 * malloc/malloc.c (sYSMALLOc): Avoid infinite loop if MMAP
10164 keeps failing and heap growth or new heap creation isn't
10165 successful either.
10166 * malloc/tst-malloc.c (main): Add new tests.
10167
542a6f62
UD
101682006-08-24 Ulrich Drepper <drepper@redhat.com>
10169
10170 [BZ #2734]
10171 * sysdeps/i386/bits/byteswap.h (__bswap_32): Use same conditions
10172 as in the x86-64 code to use bswap.
10173
aa2c6b6d
UD
101742006-05-21 Joseph S. Myers <joseph@codesourcery.com>
10175
24982798 10176 [BZ #2680]
aa2c6b6d
UD
10177 * posix/unistd.h (getlogin_r): Condition on __USE_POSIX199506, not
10178 __USE_UNIX98.
10179 * posix/bits/unistd.h: Likewise.
10180
59776aef
UD
101812006-05-15 Mike Frysinger <vapier@gentoo.org>
10182
10183 [BZ #2751]
10184 * string/strchr.c: Add cast to avoid warning.
10185
e404fb16
UD
101862006-08-21 Ulrich Drepper <drepper@redhat.com>
10187
10188 * malloc/malloc.c (DEFAULT_MMAP_THRESHOLD_MAX): For 32-bit
bd2c2341 10189 platforms define as 512K. For 64-bit platforms as 32MB. The lower
e404fb16
UD
10190 limit is needed to avoid the exploding of the address space
10191 requirement for secondary heaps.
10192 * malloc/arena.c (HEAP_MAX_SIZE): Define using
10193 DEFAULT_MMAP_THRESHOLD_MAX if it is defined.
10194
376e973a
UD
101952006-07-30 Joseph S. Myers <joseph@codesourcery.com>
10196
10197 [BZ #3018]
10198 * Makerules (depfiles): Handle extra-test-objs the same as
10199 extra-objs.
10200 (common-mostlyclean): Likewise.
10201 * dlfcn/Makefile (extra-objs): Add modules to extra-test-objs
10202 instead.
10203 * elf/Makefile (extra-objs): Likewise.
10204 * stdlib/Makefile (extra-objs): Likewise.
10205
240c62a7
UD
102062006-08-14 Eric Blake <ebb9@byu.net>
10207
10208 [BZ #3044]
10209 * misc/error.h: Assume C89 or better.
10210 * misc/error.c: Likewise.
10211
3997b7c4
UD
102122006-08-21 Ulrich Drepper <drepper@redhat.com>
10213
10214 [BZ #3040]
10215 * sysdeps/unix/sysv/linux/openat.c: Fix compilation if
10216 __ASSUME_ATFCTS is defined.
10217
8a6537b0
UD
102182006-08-19 Ulrich Drepper <drepper@redhat.com>
10219
72320021
UD
10220 * malloc/malloc.c (_int_malloc): Limit number of unsorted blocks
10221 to sort in each call.
10222
ed3691ba
UD
10223 * nis/nss_nis/nis-service.c (internal_nis_getservent_r): . If map
10224 is empty simply return and use next service.
10225 * nis/nss_nis/nis-rpc.c (internal_nis_getrpcent_r): Likewise.
10226
8a6537b0
UD
10227 * locale/programs/charmap.c (charmap_read): Add new parameter. It
10228 tells us when not finding a charmap file is an error.
10229 * locale/programs/charmap.h: Adjust charmap_read prototype.
10230 * iconv/iconv_prog.c (main): Tell charmap_read it's no error if we
10231 cannot find a charmap.
10232 * locale/programs/localedef.c (main): Adjust charmap_read call.
10233
ad2a3c07
UD
102342006-08-15 Jakub Jelinek <jakub@redhat.com>
10235
10236 * sysdeps/unix/sysv/linux/sparc/sparc64/pause.c: Use
10237 sysdeps/posix/pause.c implementation instead.
10238
102392006-08-09 Jakub Jelinek <jakub@redhat.com>
10240
10241 * sysdeps/unix/nice.c (nice): Transform EACCES errno from setpriority
10242 to EPERM.
10243
f17efcb4
UD
102442006-08-13 Andreas Schwab <schwab@suse.de>
10245
10246 * sysdeps/powerpc/powerpc32/dl-trampoline.S (_dl_runtime_resolve):
10247 Don't clobber caller's LRSAVE.
10248 (_dl_prof_resolve): Likewise.
10249
107b8a92
UD
102502006-08-14 Ulrich Drepper <drepper@redhat.com>
10251
10252 [BZ #1996]
10253 * libio/memstream.c (open_memstream): Allocate initial buffer with
10254 calloc.
10255 * libio/wmemstream.c (open_wmemstream): Likewise.
10256 * libio/strops.c: Pretty printing.
10257 (_IO_str_overflow): Clear uninitialized part of the new buffer.
10258 (enlarge_userbuf): New function.
10259 (_IO_str_seekoff): Call it if seek position is larger than current
10260 buffer.
10261 * libio/wstrops.c: Likewise.
10262 * libio/vasprintf.c: Add comment as to why we do not have to use
10263 calloc instead of malloc to allocate initial buffer.
10264 * libio/Makefile (tests): Add bug-memstream1 and bug-wmemstream1.
10265 * libio/bug-memstream1.c: New file.
10266 * libio/bug-wmemstream1.c: New file.
10267
fa3ac53f
UD
102682006-08-13 Ulrich Drepper <drepper@redhat.com>
10269
89993734
UD
10270 * libio/wstrops.c: Remove dead macro definitions and comments.
10271 * libio/strops.c: Likewise.
10272
fa3ac53f
UD
10273 [BZ #2764]
10274 * login/utmpname.c (__utmpname): Remove unnecessary test.
10275
f99ed760
UD
102762006-06-08 Joseph Myers <jsm28@gcc.gnu.org>
10277
10278 [BZ #2832]
10279 * math/gen-libm-test.pl (clean_up_number): Do not remove trailing
10280 0s from integers.
10281
102822006-08-13 Ulrich Drepper <drepper@redhat.com>
10283
10284 [BZ #2987]
10285 * sysdeps/unix/sysv/linux/clock_settime.c: Add code to use syscall
10286 for CPU clocks.
10287 * sysdeps/unix/clock_settime.c: Add support for platform-specific
10288 setting of CPU clocks.
10289
4c3f81d0
UD
102902006-06-23 Paul Eggert <eggert@cs.ucla.edu>
10291
10292 [BZ #2841]
10293 * sysdeps/generic/stdint.h (UINT8_C, UINT16_C): Don't append 'U',
10294 since C99 requires the result to promote to 'int' when uint_least8_t
10295 and uint_least16_t promote to 'int'.
10296
cd8e60ce
UD
102972006-08-12 Ulrich Drepper <drepper@redhat.com>
10298
9a5c46e8
UD
10299 [BZ #3013]
10300 * locale/programs/ld-ctype.c (ctype_output): Adjust alignments, fix
10301 lenght of one output field, correct bitmask creation.
10302 * locale/programs/ld-time.c: Add alignment.
10303
cd8e60ce
UD
10304 [BZ #2997]
10305 * misc/error.c: Add space between program name and message if file
10306 name is missing.
10307
9a528884
UD
103082006-08-03 Eric Blake <ebb9@byu.net>
10309
10310 [BZ #2998]
10311 * misc/error.c (error_tail) [_LIBC]: Avoid invalid free.
10312
1d05c2fb
UD
103132006-08-09 Ulrich Drepper <drepper@redhat.com>
10314
0c1c6c6c
UD
10315 * malloc/memusagestat.c: Silence warnings.
10316
1d05c2fb
UD
10317 * malloc/malloc.c: Dynamically size mmap treshold if the program
10318 frees mmaped blocks.
10319 Patch by Valerie Henson and Arjan van de Ven.
10320
2d1e6277
UD
103212006-08-08 Jakub Jelinek <jakub@redhat.com>
10322
be7ffd91
UD
10323 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h (O_DIRECT): Protect with
10324 __USE_GNU.
10325
2d1e6277
UD
10326 * stdlib/strtol_l.c (__strtol_ul_max_tab, __strtol_ul_rem_tab,
10327 __strtol_ull_max_tab, __strtol_ull_rem_tab): Declare.
10328 (DEF): Don't put the var into .gnu.linkonce.r.* section.
10329 Only provide var definitions in strtol_l (or for *ull*
10330 in strtoll_l).
10331
10332 * stdio-common/bug16.c (tests): New array.
10333 (do_tests): Allow the first hexadecimal digit
10334 to be 1, 2, 4 or 8. Do 3 additional tests.
10335
10336 * sysdeps/s390/fpu/libm-test-ulps: Update.
10337
10338 * sysdeps/unix/sysv/linux/s390/s390-32/fchownat.c (fchownat): Use
10339 fchownat syscall if available.
10340 * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat): Likewise.
10341 * sysdeps/unix/sysv/linux/sh/fchownat.c (fchownat): Likewise.
10342 * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Likewise.
10343
d0ccde25
UD
103442006-08-07 Ulrich Drepper <drepper@redhat.com>
10345
10346 * nis/nis_xdr.c: Avoid some function calls.
10347
13a0293d 103482006-08-07 Jakub Jelinek <jakub@redhat.com>
3f7a21a9 10349 Ulrich Drepper <drepper@redhat.com>
13a0293d
UD
10350
10351 * nis/nis_call.c (rec_dirsearch) [case LOWER_NAME]: Don't take
10352 short cut if only one name component is stripped away.
10353
bd1ebae0
UD
103542006-08-07 Ulrich Drepper <drepper@redhat.com>
10355
10356 * nis/nis_call.c: Minor cleanups throughout.
2d1e6277 10357 (rec_dirsearch) [case HIGHER_NAME]: Correctly size ndomain array.
bd1ebae0
UD
10358 (first_shoot): Add search_parent_first parameter. Only if it is set
10359 search parent server first.
10360 If directory for table found through cold start cache is not the same
10361 as referenced in the cache, don't use it.
10362 (__nisfind_server): Take additional parameter. Pass it on to
10363 first_shoot.
10364 (__prepare_niscall): Adjust __nisfind_server call.
10365 * nis/rpcsvc/nislib.h: Adjust __nisfind_server prototype.
10366 * nis/nis_table.c: Adjust __nisfind_server call.
10367 * nis/nis_lookup.c: Likewise.
10368 (nis_lookup): Don't loop endlessly if name is reduced to ".".
10369
f1762c0c
UD
103702006-08-03 Ulrich Drepper <drepper@redhat.com>
10371
fe710250
UD
10372 [BZ #2182]
10373 * math/s_cacosh.c: Return values from positive branch.
10374 * math/s_cacoshf.c: Likewise.
10375 * math/s_cacoshl.c: Likewise.
10376
a5852807
UD
10377 [BZ #2883]
10378 * sysvipc/sys/msg.h: Change return value to ssize_t.
10379 * sysdeps/unix/sysv/linux/msgrcv.c: Likewise.
fe710250
UD
10380 * sysvipc/msgrcv.c: Likewise.
10381 * include/sys/msg.h: Likewise.
39571a13 10382
6c215a8d
UD
10383 * grp/initgroups.c (internal_getgrouplist): Remove unnecessary
10384 test introduced in patch for bz #661.
39571a13 10385 (getgrouplist): Simplify code a bit. Don't allocate one additional
f13bfdd0 10386 element for NEWGROUPS.
6c215a8d 10387
9c06eb66
UD
10388 [BZ #2908]
10389 * stdio-common/printf_fphex.c (__printf_fphex): When rounding up
10390 'f', use '1' as leading digit not '\1'.
10391 * stdio-common/Makefile (tests): Add bug16.
10392 * stdio-common/bug16.c: New file.
10393
10394 [BZ #2914]
10395 * sysdeps/unix/sysv/linux/gethostid.c: Don't define OLD_HOSTIDFILE
10396 and don't try to open it. The patch introducing the macro
10397 contained a bug and used the same file name as the new file
10398 instead of using /var/adm/hostid. Nobody complaint so I'm taking
10399 this out completely.
10400
10401 [BZ #2926]
10402 * assert/assert.h: Move cast to void inside ?: to quiet gcc.
10403 Patch by Jerry James <Jerry.James@usu.edu>.
10404
f1762c0c
UD
10405 * rt/Makefile (tests): Add tst-clock2.
10406 * rt/tst-clock2.c: New file.
10407
10408 [BZ #2978]
10409 * resolv/gai_notify.c (__gai_notify_only): Copy memory for thread
10410 function and its parameters and pass it to new thread.
10411 (__gai_notify): Add support for alternative waiting for completion.
10412 * resolv/gai_suspend.c (gai_suspend): Add support for alternative
10413 waiting for completion.
10414 * resolv/getaddrinfo_a.c: Likewise.
10415 * resolv/gai_misc.h (struct waitlist): Don't add cond if alternative
10416 waiting for completion is used.
10417 * resolv/gai_misc.c: Allow overwriting code to start helper thread.
10418 * resolv/gai_cancel.c: Include <gai_misc.h> not "gai_misc.h".
10419 * resolv/gai_error.c: Likewise.
10420 * resolv/gai_sigqueue.c: Likewise.
10421
83ae6b40
RM
104222006-08-02 Thomas Schwinge <tschwinge@gnu.org>
10423
0e4e62fe 10424 * hurd/getdport.c (__getdport): Don't return EBADF; instead set
f1762c0c 10425 errno to EBADF and return MACH_PORT_NULL.
83ae6b40 10426
82ee37c5
UD
104272006-06-23 Joseph Myers <joseph@codesourcery.com>
10428
10429 [BZ #2980]
f1762c0c 10430 * posix/Makefile (CFLAGS-waitid.c): Add -fasynchronous-unwind-tables.
82ee37c5
UD
10431
104322006-08-02 Ulrich Drepper <drepper@redhat.com>
10433
10434 * elf/dl-addr.c (_dl_addr): If GNU-style hash tables are present,
10435 walk them instead of the symbol table.
10436
7bb1b2c9
UD
104372006-08-01 Ulrich Drepper <drepper@redhat.com>
10438
f13bfdd0 10439 [BZ #2098]
fbbc73b3
UD
10440 * nscd/initgrcache.c (addinitgroupsX): Judge successful lookups by
10441 status of NSS calls, not the number of returned entries.
10442
a4518922
UD
10443 * sysdeps/unix/sysv/linux/syscalls.list: Remove add_key,
10444 request_key, keyctl.
7bb1b2c9 10445
b06e7e9a
UD
104462006-07-31 Ulrich Drepper <drepper@redhat.com>
10447
10448 * sysdeps/unix/sysv/linux/dl-osinfo.h: Remove unnecessary include.
10449
f1227969
UD
104502006-07-16 Jeff Bailey <jbailey@ubuntu.com>
10451
10452 * elf/tst-auditmod1.c: Fix typo in #error.
10453
82ae2712
UD
104542006-07-31 Ulrich Drepper <drepper@redhat.com>
10455
f1227969
UD
10456 * elf/tst-auditmod1.c: Remove code for unsupported architectures.
10457
82ae2712
UD
10458 * iconvdata/run-iconv-test.sh: Run cmp in C locale.
10459
a1260d92
UD
104602006-07-20 Adam Nemet <anemet@caviumnetworks.com>
10461
10462 * stdlib/test-canon.c (do_test): Close fd before unlinking file so
b06e7e9a 10463 that the directory is empty even on non-POSIX filesystems.
a1260d92 10464
d2de41fe
UD
104652006-07-31 Ulrich Drepper <drepper@redhat.com>
10466
13669f2c
UD
10467 * elf/dl-open.c (dl_open_worker): Add branch prediction.
10468
d2de41fe
UD
10469 * nis/nss_compat/compat-grp.c: Avoid unnecessary setgrent calls into
10470 the backend NSS module. If backend setgrent call failed, don't have
10471 internal_setgrent fail. Just remember this until it is needed.
10472 * nis/nss_compat/compat-pwd.c: Likewise.
10473 * nis/nss_compat/compat-spwd.c: Likewise.
10474
b894c2ea
RM
104752006-07-30 Roland McGrath <roland@redhat.com>
10476
10477 * sysdeps/unix/sysv/linux/ia64/sigsuspend.c: File removed.
10478 * sysdeps/unix/sysv/linux/x86_64/sigsuspend.c: File removed.
10479 * sysdeps/unix/sysv/linux/s390/s390-64/sigsuspend.c: File removed.
10480 * sysdeps/unix/sysv/linux/sparc/sparc64/sigsuspend.c: File removed.
10481
10482 * sysdeps/unix/sysv/linux/not-cancel.h (pause_not_cancel): New macro.
10483 (nanosleep_not_cancel): New macro.
10484 (sigsuspend_not_cancel): new macro.
10485 * sysdeps/unix/sysv/linux/sigsuspend.c [__ASSUME_REALTIME_SIGNALS]
10486 (do_sigsuspend): Define as inline.
10487 (__sigsuspend): Always use do_sigsuspend.
10488 [! NO_CANCELLATION] (__sigsuspend_nocancel): New function.
10489 * include/signal.h: Declare __sigsuspend_nocancel.
10490 * sysdeps/posix/pause.c
10491 [! NO_CANCELLATION] (__pause_nocancel): New function.
10492
10493 * include/unistd.h (__pause_nocancel): Add attribute_hidden.
10494 * include/time.h (__nanosleep_nocancel): Likewise.
10495
c10d32c8
UD
104962006-07-30 Ulrich Drepper <drepper@redhat.com>
10497
10498 * locale/programs/localedef.c (add_to_readlist): Rename local
10499 variables to avoid confusion.
10500
10501 * locale/programs/charmap.c (charmap_read): Emit error message if
10502 charmap couldn't be found or read.
10503
6822f056
UD
105042006-07-28 Ulrich Drepper <drepper@redhat.com>
10505
d5ba53f9
UD
10506 * sysdeps/unix/sysv/linux/kernel-features.h: Define
10507 __ASSUME_FUTEX_LOCK_PI.
10508 * include/time.h: Declare __nanosleep_nocancel.
10509 * include/unistd.h: Declare __pause_nocancel.
10510
6822f056
UD
10511 * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Use this instead of
10512 LDFLAGS. Add -lgcc_eh and libc_nonshared (again) to make sure we
10513 get the __stack_chk_fail_local definition when it's needed.
10514
3a975ff5
UD
105152006-07-26 Ulrich Drepper <drepper@redhat.com>
10516
6de1f625
UD
10517 * dlfcn/Makefile: Add rules to build and run bug-atexit3.
10518 * dlfcn/bug-atexit3.c: New file.
10519 * dlfcn/bug-atexit3-lib.cc: New file.
10520
3a975ff5
UD
10521 * dlfcn/dlmopen.c (dlmopen_doit): Don't allow RTLD_GLOBAL to be
10522 used when the namespace is not the base namespace.
10523
a92b1166
UD
105242006-07-26 Gavin Romig-Koch <gavin@redhat.com>
10525
10526 * stdlib/cxa_atexit.c (__new_exitfn_called): New variable.
10527 (__new_exitfn): Bump it in every successful call.
10528 * stdlib/cxa_finalize.c (__cxa_finalize): If destructor registered
10529 more exit handlers, call them right away.
10530 * stdlib/exit.h: Declare __new_exitfn_called.
10531
a08336fb
UD
105322006-07-25 Ulrich Drepper <drepper@redhat.com>
10533
bd3754dc
UD
10534 * stdlib/cxa_finalize.c (__cxa_finalize): Fix race condition when
10535 calling registered handler.
10536
a08336fb
UD
10537 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Fix comment.
10538 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
10539 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
10540 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
10541 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
10542 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
10543 * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
10544 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
10545
871b9158
UD
105462006-07-10 Ulrich Drepper <drepper@redhat.com>
10547
10548 * elf/dl-lookup.c (dl_new_hash): New functions.
10549 (_dl_lookup_symbol_x): Rename hash to old_hash and don't compute
10550 value here. Compute new-style hash value. Pass new hash value
10551 and reference to variable with the old value to do_lookup_x.
10552 (_dl_setup_hash): If DT_GNU_HASH is defined, use it and not
10553 old-style hash table.
10554 (_dl_debug_bindings): Pass new hash value and reference to variable
10555 with the old value to do_lookup_x.
10556 * elf/do-lookup.h (do_lookup_x): Accept additional parameter with
10557 new-style hash value and change old-style hash value parameter to
10558 be a reference. Reoganize functions to determine whether
10559 new-style hash table is available. Only fall back on old-style
10560 table. If old-style hash value is needed, compute it here.
10561 * elf/dynamic-link.h (elf_get_dynamic_info): Relocate DT_GNU_HASH
10562 entry.
10563 * elf/elf.h: Define SHT_GNU_HASH, DT_GNU_HASH, DT_TLSDEC_PLT,
10564 DT_TLSDEC_GOT. Adjust DT_ADDRNUM.
10565 * include/link.h (struct link_map): Add l_gnu_bitmask_idxbits,
10566 l_gnu_shift, l_gnu_bitmask, l_gnu_buckets and l_gnu_chain_zero.
10567 * Makeconfig: If linker supports --hash-style option add it to all
10568 linker command lines to build DSOs.
10569 * config.make.in: Define have-hash-style.
10570 * configure.in: Test whether linker supports --hash-style option.
10571
10572 * elf/dl-misc.c (_dl_name_match_p): Make MAP parameter const.
10573 * sysdeps/generic/ldsodefs.h: Adjust prototype.
10574
a1f0de82
UD
105752006-06-27 Ulrich Drepper <drepper@redhat.com>
10576
361a3706
UD
10577 * elf/dl-load.c (open_path): Fix test to determine whether DSO is
10578 auditing.
10579
a1f0de82
UD
10580 * elf/dl-load.c (_dl_map_object): Try harder to avoid looking at
10581 RPATH of main map twice.
10582
4259230f
UD
105832006-06-22 Ulrich Drepper <drepper@redhat.com>
10584
10585 * intl/dcigettext.c (DCIGETTEXT): If _nl_find_msg returns -1 don't
10586 look further, return original strings.
10587 (_nl_find_msg): Do not return found translation if the conversion
10588 failed. Either signal the string is unusable or that something went
10589 wrong and the original should be used.
10590
105912006-06-21 Ulrich Drepper <drepper@redhat.com>
10592
10593 * string/_strerror.c (__strerror_r): Add __builtin_expect.
10594
f9b7a98b
UD
105952006-06-14 Jakub Jelinek <jakub@redhat.com>
10596
10597 [BZ #2766]
10598 * misc/insremque.c (insque): Handle prev == NULL.
10599 * misc/Makefile (tests): Add tst-insremque.
10600 * misc/tst-insremque.c: New test.
10601
ac55a25b
UD
106022006-06-17 Ulrich Drepper <drepper@redhat.com>
10603
10604 [BZ #2792]
10605 * elf/dl-deps.c (expand_dst): Rename __cnt variable to not
10606 conflict with DL_DST_REQUIRED.
10607
02f366b3
UD
106082006-06-16 Ulrich Drepper <drepper@redhat.com>
10609
10610 * nis/nis_subr.c (nis_getnames): Fix the implementation to better
10611 match what Solaris does.
10612
9009e8f8
UD
106132006-06-04 Ulrich Drepper <drepper@redhat.com>
10614
1b8373f4
UD
10615 * sysdeps/posix/spawni.c (__spawni): Use local_seteuid and
10616 local_setegid instead of seteuid and setegid.
10617 * sysdeps/generic/local-setxid.h: New file.
10618 * sysdeps/unix/sysv/linux/local-setxid.h: New file.
10619
7231452e
UD
10620 * sysdeps/posix/spawni.c (__spawni): Use non-cancelable interfaces.
10621
9009e8f8 10622 * string/Makefile (tests): Add bug-envz1.
02f366b3 10623 * string/bug-envz1.c: New file.
9009e8f8 10624
33e63e79
UD
106252006-06-02 Jakub Jelinek <jakub@redhat.com>
10626
10627 * posix/regex_internal.c (re_string_skip_chars): If no character has
10628 been converted at all, set *last_wc to WEOF. If mbrtowc failed, set wc
10629 to the byte which couldn't be converted.
10630 (re_string_reconstruct): Don't clear valid_raw_len before calling
10631 re_string_skip_chars. If wc is WEOF after re_string_skip_chars, set
10632 tip_context using re_string_context_at.
10633 * posix/Makefile: Add rules to build and run bug-regex25 test.
10634 * posix/bug-regex25.c: New test.
10635
fdc02996
UD
106362006-06-02 Ryan S. Arnold <rsa@us.ibm.com>
10637
10638 [BZ #2703]
10639 * string/envz.c (envz_strip): Correct erroneously reversed src
10640 and dest parameters to memmove() invocation.
10641
902c4291
UD
106422006-05-30 Jakub Jelinek <jakub@redhat.com>
10643
10644 * nscd/nscd.h (prune_cache): Add fd argument to prototype.
10645 * nscd/nscd.c (parse_opt): Read response from INVALIDATE request
10646 to make sure the database has been already invalidated.
10647 * nscd/cache.c (prune_cache): Add fd argument. Write response to fd
10648 after the cache has been invalidated. Use pthread_mutex_lock rather
10649 than pthread_mutex_trylock if fd != -1.
10650 * nscd/connections.c (invalidate_cache): Add fd argument, write
10651 response to fd if not calling prune_cache, pass fd to prune_cache.
10652 (handle_request): Adjust invalidate_cache caller.
10653 (nscd_run): Pass -1 as fd to prune_cache.
10654
ecc68568
UD
106552006-05-30 Ulrich Drepper <drepper@redhat.com>
10656
10657 * sysdeps/posix/getaddrinfo.c (gaiconf_init): Initialize bits in
10658 the correct place.
10659
9636a217
UD
106602006-05-29 Ulrich Drepper <drepper@redhat.com>
10661
10662 * nscd/nscd.h (struct database_dyn): Add prunelock field.
10663 * nscd/cache.c (prune_cache): Take prunelock before starting the
10664 work. Just return in case it is already taken.
cabfcde1 10665 * nscd/connections.c (dbs): Initialize .prunelock.
9636a217 10666
6bcb494a
UD
106672006-05-25 Ulrich Drepper <drepper@redhat.com>
10668
672d5a63 10669 * nis/nis_removemember.c (nis_removemember): Avoid unnecessary
ecc68568 10670 copying. No need to allocate new array for group members. Just
672d5a63
UD
10671 move the pointers and update the size.
10672
1663b44f
UD
10673 * nis/nis_addmember.c (nis_addmember): Avoid unnecessary copying.
10674 Avoid memory leak in case realloc fails. Simplification for
10675 better code generation.
10676
10677 Avoid deprecation warning because of libc_hidden_proto for
10678 inet6_option_alloc.
10679 * inet/inet6_option.c (option_alloc): Renamed from
10680 inet6_option_alloc. Made static.
9636a217 10681 (inet6_option_alloc): Now a simple wrapper around option_alloc.
1663b44f
UD
10682 (inet6_option_append): Call option_alloc.
10683 * include/netinet/in.h: Remove libc_hidden_proto for
10684 inet6_option_alloc.
10685
6bcb494a
UD
10686 * nis/nis_callback.c (__nis_create_callback): Always call xdr_free
10687 for cleanup when cb!=NULL [Coverity CID 233].
10688
aec6b246
UD
106892006-05-24 Ulrich Drepper <drepper@redhat.com>
10690
07bfff20
UD
10691 [BZ #2693]
10692 * inet/Makefile (routines): Add inet6_opt and inet6_rth.
10693 * inet/Versions (libc, GLIBC_2.5): Add inet6_opt_init,
10694 inet6_opt_append, inet6_opt_finish, inet6_opt_set_val, inet6_opt_next,
10695 inet6_opt_find, inet6_opt_get_val, inet6_rth_space, inet6_rth_init,
10696 inet6_rth_add, inet6_rth_reverse, inet6_rth_segments,
10697 and inet6_rth_getaddr.
10698 * inet/netinet/ip6.h (struct ip6_rthdr0): Make ip6r0_addr a flexible
10699 array.
10700 * inet/netinet/in.h (struct ip6_mtuinfo): Define.
10701 Mark inet6_option_* interfaces as deprecated.
10702 Declare inet6_opt_init, inet6_opt_append, inet6_opt_finish,
10703 inet6_opt_set_val, inet6_opt_next, inet6_opt_find, inet6_opt_get_val,
10704 inet6_rth_space, inet6_rth_init, inet6_rth_add, inet6_rth_reverse,
10705 inet6_rth_segments, and inet6_rth_getaddr.
10706 * inet/inet6_opt.c: New file.
10707 * inet/inet6_rth.c: New file.
10708
10709 * inet/netinet/icmp6.h: Pretty printing.
10710
aec6b246
UD
10711 [BZ #2683]
10712 * elf/dl-addr.c (_dl_addr): Don't match undefined references.
10713
2d571cd1
UD
107142006-05-23 Ulrich Drepper <drepper@redhat.com>
10715
062e719b
UD
10716 * nis/nis_lookup.c (nis_lookup): Use __prepare_niscall instead of
10717 doing it all here. When server does not know the answer do not
10718 fail immediate, try parent first.
10719
2d571cd1
UD
10720 * nis/nis_domain_of_r.c (nis_domain_of_r): Add missing buffer
10721 overflow test.
10722
a17fa610
UD
107232006-05-20 Ulrich Drepper <drepper@redhat.com>
10724
10725 * nis/nis_call.c (__prepare_niscall): New function. Split out
10726 from __do_niscall.
10727 * nis/nis_table.c (__create_ib_request): Renamed from create_ib_request
10728 and exported.
10729 (__follow_path): New function. Split out from nis_list.
10730 * nis/nis_xdr.h: Add libnsl_hidden_proto for _xdr_ib_request and
10731 _xdr_nis_result.
10732 * nis/nis_xdr.c: Add libnsl_hidden_def for _xdr_ib_request and
10733 _xdr_nis_result.
10734 * nis/libnsl.h: Declare __prepare_niscall, __create_ib_request,
10735 and __follow_path.
10736 * nis/Versions: Export __prepare_niscall, __create_ib_request,
10737 __follow_path, __do_niscall3, _xdr_ib_request, and _xdr_nis_result
10738 from libnsl for version GLIBC_PRIVATE.
10739 * nis/nisplus-parser.h: Remove _nss_nisplus_parse_pwent_chk.
10740 Remove entry parameter from _nss_nisplus_parse_pwent and
10741 _nss_nisplus_parse_grent.
10742 * nis/nss_nisplus/nisplus-parser.c: Likewise.
10743 * nis/nss_nisplus/nisplus-pwd.c: Remove support for SETENT_BATCH_READ
10744 again. Rewrite getpwent handling to not use nis_first_entry and
10745 nis_next_entry. Roll out own niscall handling.
10746 * nis/nss_nisplus/nisplus-grp.c: Likewise.
10747
10748 * sunrpc/xdr_rec.c: Fix typo in comment.
10749
429bb183
UD
107502006-05-19 Ulrich Drepper <drepper@redhat.com>
10751
1d4f062a
UD
10752 * nis/nis_call.c (__do_niscall3): Avoid code duplication in error
10753 handling.
10754
101cc598
UD
10755 * nis/nis_callback.c (internal_nis_do_callback): Don't use malloc
10756 to allocate memory for my_pollfd. Better initialization of
10757 cb_is_running. Use TEMP_FAILURE_RETRY.
10758
f50fa10c
UD
10759 * malloc/memusage.sh (memusageso): Add quotes.
10760 (memusagestat): Likewise.
10761 * debug/xtrace.sh (pcprofileso): Likewise.
10762 (pcprofiledump): Likewise.
10763 * debug/Makefile ($(objpfx)xtrace): Use $LIB in SLIBDIR
10764 replacement.
10765 * malloc/Makefile ($(objpfx)memusage): Likewise.
10766
882bfe73
UD
10767 * nis/nis_callback.c (__nis_create_callback): Calls to
10768 svcudp_bufcreate and svctcp_create can fail. Free ->xprt if
10769 asprintf call fails.
10770
429bb183
UD
10771 * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_sendreq): Make sure
10772 no uninitialized memory is passed to sendto.
10773
f90de831
UD
107742006-05-18 Ulrich Drepper <drepper@redhat.com>
10775
10776 * nis/nis_callback.c (__nis_create_callback): Use asprinf instead
10777 of snprintf+strdup. Handle OOM.
10778 * nis/nis_callback.c (__nis_create_callback): Allocate cb and
10779 cb->serv together. Remove now obsolete free calls.
10780 (__nis_destroy_callback): Remove now obsolete free call.
10781
a17fa610 107822006-05-18 David Woodhouse <dwmw2@redhat.com>
6e2a7825
UD
10783
10784 * sysdeps/posix/getaddrinfo.c: Add unique labels to the default
10785 RFC3484 precedence table for fec0::/10 and fc00::/7 (site-local
10786 and ULA respectively). Set precedence for IPv4 address to 10 as
10787 defined in RFC3484 for preferring IPv6.
10788 * posix/gai.conf: Update to match the new default tables.
10789
758b9d7e
UD
107902006-05-18 Jakub Jelinek <jakub@redhat.com>
10791
10792 * nis/nss_compat/compat-pwd.c (internal_setpwent): If nss_set*ent
10793 returned NSS_STATUS_UNAVAIL, still return NSS_STATUS_SUCCESS.
10794 * nis/nss_compat/compat-spwd.c (internal_setspent): Likewise.
10795 * nis/nss_compat/compat-grp.c (internal_setgrent): Likewise.
10796
10797 * nis/nss_compat/compat-initgroups.c (nss_setgrent, nss_endgrent):
10798 Removed.
10799 (init_nss_interface): Remove initialization of these variables.
10800
108012006-05-18 Ulrich Drepper <drepper@redhat.com>
10802
10803 * nis/nis_call.c (rec_dirsearch): Little optimization: pull
10804 nis_free_directory forward to avoid duplication.
10805
388c779e
UD
108062006-05-17 Ulrich Drepper <drepper@redhat.com>
10807
5f1724bf
UD
10808 * nis/nis_call.c (rec_dirsearch): Handle __nis_finddirectory and
10809 rec_dirsearch returning NULL.
10810 (first_shoot): Handle __nis_finddirectory returning NULL.
10811 (__nisfind_server): Fix leak when rec_dirsearch returns NULL.
10812
388c779e
UD
10813 * sysdeps/unix/sysv/linux/sys/inotify.h: Define IN_CLOSE, IN_MOVE,
10814 IN_ONLYDIR, IN_DONT_FOLLOW, and IN_MASK_ADD.
10815
360d5cf4
UD
108162006-05-17 Jakub Jelinek <jakub@redhat.com>
10817
10818 * sunrpc/key_call.c (getkeyserv_handle): Call auth_destroy if
10819 pid changed.
10820
88dbff8c
UD
108212006-05-15 Ulrich Drepper <drepper@redhat.com>
10822
6f8a7dff
UD
10823 * include/rpc/pmap_prot.h: Mark all functions as hidden.
10824
10825 * nscd/nscd_initgroups.c: Mark __gr_map_handle as hidden.
10826 * nscd/nscd_getgr_r.c: Likewise.
10827
10828 * include/rpc/pmap_rmt.h: Mark all functions as hidden.
10829
10830 * nscd/nscd_getai.c (__hst_map_handle): Mark as hidden.
10831 * nscd/nscd_gethst_r.c (__hst_map_handle): Likewise.
10832
10833 * stdlib/longlong.h (__clz_tab): Mark as hidden.
10834
10835 * iconv/gconv_int.h: Mark __gconv_lock as hidden.
10836
360d5cf4 10837 * include/rpc/key_prot.h: Mark all _internal functions as hidden.
8263ed62
UD
10838
10839 * include/rpc/auth.h: Mark xdr_des_block_internal and
10840 xdr_opaque_auth_internal as hidden.
10841
10842 * sysdeps/unix/sysv/linux/getdents.c: Mark __have_no_getdents64 as
10843 hidden.
10844
360d5cf4 10845 * include/rpc/xdr.h: Mark all _internal functions as hidden.
8263ed62 10846
02264020
UD
10847 * misc/getusershell.c (okshells): Don't use static initializers,
10848 do it dynamically.
10849
fd5ea238
UD
10850 * stdlib/fmtmsg.c (keywords): Change type of len element to
10851 uint32_t to not waste space on 64bit machines.
10852
9446614c
UD
10853 * locale/setlocale.c: Change _nl_category_names into a string.
10854 Add new _nl_category_name_idxs. Change all users.
10855 * locale/localeinfo.h: Adjust declaration of _nl_category_names.
10856 Declare _nl_category_name_idxs.
10857 * locale/findlocale.c: Adjust for _nl_category_names change.
10858 * locale/loadlocale.c: Likewise.
10859 * locale/newlocale.c: Likewise.
10860 * intl/dcigettext.c: Likewise.
10861
88dbff8c
UD
10862 * iconv/gconv_conf.c (add_alias): Move actual alias handling to...
10863 (add_alias2): ...here. New function.
10864 (__gconv_read_conf): Simplify builtin alias handling.
10865 (builtin_aliases): Convert to string to avoid relocations.
10866 * iconv/gconv_builtin.h: Add comment about correct formatting.
10867
4442d58f
UD
108682006-05-15 Jakub Jelinek <jakub@redhat.com>
10869
10870 * resolv/res_debug.c (loc_ntoa): Make error const.
10871
108722006-05-14 Andreas Schwab <schwab@suse.de>
10873
10874 * math/complex.h [__LDBL_COMPAT]: Use __REDIRECT_NTH.
10875
108762006-05-12 Jakub Jelinek <jakub@redhat.com>
10877
10878 * sysdeps/unix/sysv/linux/sched_getaffinity.c: Include sys/param.h.
10879 (__sched_getaffinity_new): Don't crash if cpusetsize is smaller than
10880 sizeof (cpu_set_t).
10881
a51752b6
UD
108822006-05-11 Ulrich Drepper <drepper@redhat.com>
10883
5d3fd1f6
UD
10884 * resolv/res_debug.c (loc_ntoa): Define error as array, not pointer.
10885
08cfb839
UD
10886 * include/arpa/nameser.h: Declare _ns_flagdata as hidden.
10887
4b481a15
UD
10888 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_master.
10889 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_master.
10890
10891 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypbind_resp.
10892 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypbind_resp.
10893
10894 * nis/nis_xdr.c: Add libnsl_hidden_def for xdr_cback_data.
10895 * include/rpcsvc/nis_callback.h: Add libnsl_hidden_proto for
10896 xdr_cback_data.
10897
10898 * nis/ypupdate_xdr.c: Add libnsl_hidden_def for xdr_ypupdate_args.
10899 * include/rpcsvc/ypupd.h: Add libnsl_hidden_proto for
10900 xdr_ypupdate_args.
10901
10902 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_order.
10903 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_order.
10904
10905 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_maplist.
10906 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_maplist.
10907
10908 * nis/nis_xdr.c: Add libnsl_hidden_def for xdr_obj_p.
10909 * include/rpcsvc/nis_callback.h: New file.
10910
10911 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_val.
10912 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_val.
10913
10914 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypreq_nokey.
10915 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypreq_nokey.
10916
10917 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypmaplist.
10918 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypmaplist.
10919
10920 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypreq_nokey.
10921 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypreq_nokey.
10922
b1ad49c6
UD
10923 * nis/ypupdate_xdr.c: Add libnsl_hidden_def for xdr_ypdelete_args.
10924 * include/rpcsvc/ypupd.h: Add libnsl_hidden_proto for
10925 xdr_ypdelete_args.
10926
cd5f7829
UD
10927 * nis/nis_xdr.h: Mark all functions as hidden. Remove
10928 __BEGIN_DECLS and __END_DECLS, the header is not installed.
10929
a51752b6
UD
10930 * nis/nis_error.c: Remove table of strings. Use position
10931 independent mechanism.
10932 * nis/nis_error.h: New file.
10933
3d237e42
UD
109342006-05-11 Jakub Jelinek <jakub@redhat.com>
10935
10936 * locale/programs/ld-time.c (time_finish): If wide era name or
10937 format aren't provided, set both wname and wformat to L"".
10938
d6c159fe
UD
109392006-05-10 Ulrich Drepper <drepper@redhat.com>
10940
0088b04e
UD
10941 * sysdeps/unix/sysv/linux/tcgetattr.c (__tcgetattr): Only store
10942 results if the call was succesful.
10943
d6c159fe
UD
10944 * nis/nss-nis.h: Mark __yperr2nss_tab and __yperr2nss_count as hidden.
10945
10946 * nis/nss-nisplus.h: Mark __niserr2nss_tab and __niserr2nss_count
10947 as hidden.
10948
5c5acdf0
UD
109492006-05-10 Jakub Jelinek <jakub@redhat.com>
10950
10951 * misc/sys/queue.h: Remove uses of all QUEUEDEBUG_* macros.
10952
16d620db
UD
109532006-05-10 Ulrich Drepper <drepper@redhat.com>
10954
10955 * posix/wordexp.c (parse_glob): No need to check ifs for NULL, the
10956 caller makes sure this is not the case.
10957 (wordexp): Simplify ifs_white creation. [Coverity CID 231]
10958
e7c8359e
UD
109592006-05-09 Ulrich Drepper <drepper@redhat.com>
10960
ecf359c6
UD
10961 * posix/wordexp.c: Remove numerous NULL pointer tests before FREE
10962 calls.
10963
400cc70a
UD
10964 * io/ftw.c (open_dir_stream): Return right away if REALLOC fails.
10965 [Coverity CID 229, 230]
10966
10967 * argp/argp-help.c (hol_entry_help): Handle STATE==NULL in ARG and
10968 DGETTEXT calls.
10969 (hol_help): Likewise. [Coverity CID 226, 227]
10970
10971 * string/argz-replace.c (__argz_replace): Unconditionally call
10972 free on SRC. [Coverity CID 225]
10973
10974 * nis/nis_creategroup.c (nis_creategroup): No need to duplicate
10975 the return value of __nis_default_owner and __nis_default_group,
10976 it has been especially allocated. [Coverity CID 224]
10977
51e59260
UD
10978 * nis/nis_defaults.c (searchXYX): New functions. Used by both
10979 searchgroup and searchowner. Significantly simplified.
10980 (__nis_default_owner): Remove duplication. Do not locally copy the
10981 string before duplicating it.
10982 (__nis_default_group): Likewise.
10983
10984 * nis/nis_lookup.c (nis_lookup): After calling nis_free_directory,
10985 we must clear the variable before calling __nisfind_server.
10986
10987 * nis/nis_lookup.c (nis_lookup): Always free memory allocated with
10988 nis_getnames. [Coverity CID 223]
10989
10990 * locale/programs/locfile.c (locfile_read): Use alloca instead of
10991 xmalloc to allocate local repertoire name. [Coverity CID 222]
10992
10993 * iconv/iconv_charmap.c (use_to_charmap): No need to dynamically
10994 allocate memory for the input to add_bytes. [Coverity CID 221]
10995
e7c8359e 10996 * posix/wordexp.c (w_addword): Free word if realloc fails and it
51e59260 10997 was allocated here. [Coverity CID 219, 220]
e7c8359e
UD
10998
10999 * posix/getconf.c (print_all): Free confstr data after printing.
11000 [Coverity CID 218]
11001
11002 * sysdeps/posix/getaddrinfo.c (gaih_inet): Free canon string if
11003 list allocation fails. [Coverity CID 215]
11004
11005 * nss/nsswitch.c (__nss_configure_lookup): Fix loop end condition.
11006 [Coverity CID 213]
11007
11008 * argp/argp-help.c (hol_entry_cmp): Don't call canon_doc_option if
11009 string is NULL. [Coverity CID 212]
11010 * argp/Makefile: Add rules to build and run bug-argp1.
11011 * argp/bug-argp1.c: New file.
11012
11013 * io/ftw.c (ftw_dir): Use __rawmemchr instead of strchr to find
11014 end of string.
11015 * stdlib/canonicalize.c (__realpath): Likewise.
11016
11017 * locale/programs/ld-time.c (time_finish): Don't dereference NULL
11018 pointer. [Coverity CID 206]
11019
11020 * elf/dl-dst.h (DL_DST_REQUIRED): Be prepared for missing link map
11021 in statically linked code.
11022 * elf/dl-load.c (_dl_dst_substitute): When replacing ORIGIN in
11023 statically built code, be prepared to have no link map.
11024 [Coverity CID 205]
11025
11026 * argp/argp-help.c (fill_in_uparams): Handle STATE==NULL in
11027 dgettext calls. [Coverity CID 204]
11028
11029 * argp/argp-help.c (struct uparams): Remove valid member. Change
11030 the one user.
11031 (uparam_names): Reduce size. Avoid relative relocations.
11032 Moved to read-only segment.
11033 (fill_in_uparams): Update for new layout.
11034
11035 * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs): Parameter can be
11036 assumed to always be != NULL. [Coverity CID 202]
11037
11038 * argp/argp-help.c (hol_entry_help): Remove some dead code
11039 [Coverity CID 200].
11040
11041 * nis/nss_nis/nis-service.c (_nss_nis_getservbyport_r): Optimize
11042 away a few more unconditional yperr2nss calls.
11043 (_nss_nis_getservbyname_r): Likewise.
11044
acf82eaf
UD
110452006-05-06 Ulrich Drepper <drepper@redhat.com>
11046
4461cf48
UD
11047 * sysdeps/generic/ldsodefs.h: Remove support for non-core
11048 architectures.
11049
b74a8c7f
UD
11050 * sysdeps/unix/sysv/linux/check_pf.c (make_request): Make sure
11051 that unused memory passed to sendto is nevertheless initialized.
11052
acb98cb5
UD
11053 [BZ #2499]
11054 * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Avoid
11055 possibly unaligned memory accesses.
11056
bce16467
UD
11057 * include/arpa/nameser.h: Also optimize NS_PUT16 and NS_PUT32.
11058 * resolv/res_mkquery.c: Use NS_PUT16 and NS_PUT32 instead of __putshort
11059 and __putlong respectively. Correct buffer overflow check for
11060 NS_NOTIFY_OP.
11061
11062 * resolv/res_send.c (send_vc): Use ns_put16 instead of putshort.
11063
8e45b1ac
UD
11064 * resolv/res_send.c (res_queriesmatch): Fix typo in comment.
11065 (send_dg): Rewrite error handling to be more compact and avoid
11066 double recomputation of timeouts. Pass MSG_NOSIGNAL to send.
11067
697e1628
UD
11068 * include/arpa/nameser.h: Add optimizations for NS_GET16 and NS_GET32.
11069
11070 * resolv/res_send.c (res_nameinquery): Use NS_GET16 directly
11071 instead of ns_get16.
11072 (res_queriesmatch): Likewise. Minor optimization.
11073
acf82eaf
UD
11074 [BZ #2499]
11075 * resolv/res_query.c (__libc_res_nquery): If answerp != NULL,
11076 __libc_res_nsend might reallocate the buffer for the answer. In
11077 this case we have to reload the HP pointer.
11078
7bfee654
UD
110792006-05-05 Ulrich Drepper <drepper@redhat.com>
11080
694b49ca
UD
11081 * stdio-common/vfscanf.c (memory_error): Remove definition. Add
11082 some branch prediction hints.
11083
7bfee654
UD
11084 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Define SPLICE_F_*.
11085 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
11086 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
11087 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
11088 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
11089 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
11090 * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
11091 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
11092
308bb2d5
UD
110932006-05-05 Martin Schwidefsky <schwidefsky@de.ibm.com>
11094
11095 * sysdeps/s390/s390-32/elf/start.S: Replace pc relative relocation
11096 by a GOT relocation to make Scrt1.o position independent.
11097 * sysdeps/s390/s390-64/elf/start.S: Likewise.
11098
11099 * sysdeps/unix/sysv/linux/s390/s390-32/syscall.S: Add support for
11100 six system call parameters.
11101 * sysdeps/unix/sysv/linux/s390/s390-64/syscall.S: Likewise.
11102
cdb9c321
UD
111032006-05-05 Ulrich Drepper <drepper@redhat.com>
11104
11105 * sunrpc/svcauth_des.c (cache_init): Use calloc instead of
11106 malloc&bzero.
11107
11108 * sunrpc/svc_udp.c (BZERO): Remove definition.
11109 (CALLOC): Define.
11110 (svc_enablecache): Use CALLOC instead of ALLOC&BZERO.
11111
11112 * sunrpc/des_impl.c: Remove ALT_ECB support. We never used it.
11113 (des_SPtrans): Use uint32_t type.
11114 (des_skb): Likewise.
11115
11116 * sunrpc/xdr_ref.c (xdr_reference): Use calloc instead of malloc&bzero.
11117
fff04b32
UD
111182006-05-05 Jakub Jelinek <jakub@redhat.com>
11119
11120 [BZ #2509]
11121 * stdio-common/tst-printf.sh: Adjust for tst-printf.c change even
11122 on 32-bit arches.
11123
111242006-05-05 Ulrich Drepper <drepper@redhat.com>
11125
11126 * locale/programs/ld-address.c (address_finish): Fix one more
cdb9c321 11127 place where the iso639 array might be accessed beyond the limits.
fff04b32 11128
077a30bc 111292006-05-04 Ulrich Drepper <drepper@redhat.com>
77dd4c3b 11130
f2d5cf50
UD
11131 * nis/nis_table.c (nis_list): Avoid clearing res twice before
11132 filling it for the first time.
11133
3e4370cf
UD
11134 * nis/nis_table.c (get_tablepath): Renamed from __get_tablepath.
11135 Adjust all callers.
11136 Free res object content before returning.
11137
5e65a53d
UD
11138 * sunrpc/xdr_array.c (xdr_array): Use calloc instead of malloc&bzero.
11139
48be3114
UD
11140 * sunrpc/key_call.c (__rpc_thread_key_cleanup): Also free
11141 client->cl_auth.
11142
ca4fce0e
UD
11143 * sunrpc/rpc_thread.c (__rpc_thread_destroy): Don't skip entire
11144 cleanup for initial thread, just the free call on TVP.
11145
077a30bc 11146 * nscd/gai.c (__getline): Define.
3b7a95fb 11147
5d37289a 11148
3f87d901 11149See ChangeLog.16 for earlier changes.
This page took 1.661581 seconds and 5 git commands to generate.